"use strict";(self["webpackChunk_coreui_coreui_free_vue_admin_template"]=self["webpackChunk_coreui_coreui_free_vue_admin_template"]||[]).push([[37],{9246:function(e,t,a){a.d(t,{Z:function(){return n}});var s=a(6848);function n(){const e=async e=>{const t=await s.zB(e);return t},t=async e=>{const t=await s.oQ(e);return t},a=async e=>{const t=await s.Dv(e);return t},n=async e=>{const t=await s.y1(e);return t},r=async e=>{const t=await s.bG(e);return t},i=async e=>{const t=await s.xm(e);return t},o=async e=>{const t=await s.MG(e);return t},l=async e=>{const t=await s.x0(e);return t},c=async e=>{const t=await s.BZ(e);return t},u=async e=>{const t=await s.Ml(e);return t},d=async e=>{const t=await s.w7(e);return t},m=async e=>{const t=await s.$m(e);return t};return{signIn:e,getSignList:t,signUp:n,signEdit:a,getUserInfo:r,signDelete:u,signOut:d,signEditPassword:m,getMessageList:i,messageDelete:o,getEmailList:l,setEmailList:c}}},6284:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});a(7658);var s=a(3396),n=a(7139);const r=e=>((0,s.dD)("data-v-414ac4da"),e=e(),(0,s.Cn)(),e),i={class:"header"},o=r((()=>(0,s._)("h1",null,"信箱列表",-1))),l={class:"d-flex align-items-center col-9 justify-content-end"},c={class:"position-relative d-flex align-items-center col-4"},u={class:"d-flex align-items-center",style:{gap:"0 40px","flex-wrap":"wrap"}};function d(e,t,a,r,d,m){const w=(0,s.up)("CFormInput"),g=(0,s.up)("CCol"),p=(0,s.up)("CRow"),f=(0,s.up)("MsgBox");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("div",i,[o,(0,s._)("div",l,[r.isButtonShow("setting/contact-email-update")?((0,s.wg)(),(0,s.iD)("button",{key:0,onClick:t[0]||(t[0]=t=>e.$router.push("/user-management/edit-email-list")),class:"btn btn-outline-primary col-5 add-que me-5"}," 編輯列表 ")):(0,s.kq)("",!0)])]),(0,s.Wm)(p,{class:"my-5 fw-bold col-12 mx-auto list-title"},{default:(0,s.w5)((()=>[(0,s.Wm)(g,{xs:"12",class:"text-center text-nowrap"},{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s.Wm)(w,{class:"rounded-pill pe-5",type:"text",placeholder:"請輸入Email",modelValue:r.mailSearch,"onUpdate:modelValue":t[1]||(t[1]=e=>r.mailSearch=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,s._)("div",u,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.filteredMailList,(e=>((0,s.wg)(),(0,s.iD)("div",{key:e.name,class:"mb-4 border list d-flex align-items-center justify-content-center"},(0,n.zw)(e),1)))),128))]),(0,s.Wm)(f,{show:r.showMsgBox,errorCode:r.errorCode,errorMsg:r.errorMsg,onClose:t[2]||(t[2]=e=>r.showMsgBox=!1)},null,8,["show","errorCode","errorMsg"])],64)}var m=a(9246),w=a(8360),g=a(4870),p=a(7420),f=a(995),v=a(65),_={components:{MsgBox:w.Z},setup(){const{getEmailList:e}=(0,m.Z)(),t=(0,g.iH)(!1),a=(0,g.iH)(""),n=(0,g.iH)(""),r=(0,g.iH)([]),i=(0,v.oR)(),o=(0,g.iH)(""),l=async()=>{(0,f.l)(!0);const s=await e();s.error?((0,f.l)(!1),t.value=!0,a.value=s.msg,n.value=s.error):((0,f.l)(!1),r.value=s.ret.data[0].value.split(","))};l();const c=(0,s.Fl)((()=>r.value?.filter((e=>{const t=!o.value||e.includes(o.value);return t})))),u=e=>!0===i.state.userInfo.auth_data||Object.values(i.state.userInfo.auth_data).includes(e),d=e=>(0,p.p6)(1e3*e);return{mailList:r,formatTimestamp:d,showMsgBox:t,errorMsg:a,errorCode:n,isButtonShow:u,mailSearch:o,filteredMailList:c}}},y=a(89);const h=(0,y.Z)(_,[["render",d],["__scopeId","data-v-414ac4da"]]);var x=h}}]);
//# sourceMappingURL=37.136d3083.js.map