1import{_ as x,aU as L,E as B,O as $}from"./index.474d7b13.js";import{f as F}from"./faCheck.c83a3006.js";import{H as w,T as M}from"./index.4b46d770.js";import{N as P,P as S}from"./index.426732af.js";import{N as a,_ as V,D as i,E as m,f as t,U as e,F as A,W as g,S as h,a0 as d,$ as H,a4 as r,R as O,Q as y,H as b}from"./vue.00f7c436.js";import{a as k}from"./sentry.09480738.js";import"./teemail-mailing-list.ae72a50a.js";import"./store.415b1e3e.js";import"./faPaperPlane.6c0a8be2.js";import"./faSlidersH.3deb0409.js";import"./faCog.473b2828.js";import"./faGear.5fe397cf.js";import"./faClock.61ca1c8e.js";import"./faSync.39ce55a9.js";import"./faLink.ae9331bd.js";import"./debounce.b00b40d5.js";import"./copyToClipboard.8e1d81ba.js";import"./startCase.6222b5ca.js";const z={name:"TeemailConfigurations",mixins:[w],data(){return{faTimes:L.faTimes,faCheck:F.faCheck,loading:!0,configurations:[]}},watch:{division:{immediate:!0,async handler(n,u){if(n&&n!==u){this.loading=!0;try{this.configurations=await M.list(n)}catch(o){switch(B.Log.tag("teemail").red(`Provider - ${o.constructor.name}`).space().error(o),o.constructor){case S:snackbar.error(o.message);break;case P:k(o),snackbar.error("Oops... something went wrong fetching your configurations");break;default:k(o),snackbar.error("Oops... something went wrong fetching your configurations");break}this.$router.push({name:"teemail.index"})}finally{this.loading=!1}}}}},methods:{maxDevice:$}},U={class:"teemail-configurations"},j=r(" Looks like you haven't got any configurations setup yet. A configuration should have been configured for you when you setup Teemail. You can "),I=r(" if you don't think you should be seeing this message. "),Q=r(" Domain "),R=r(" Stream "),W=r(" Active "),Y={class:"mr-4 grey text-sm"};function q(n,u,o,C,s,l){const _=a("tml-anchor"),T=a("tml-message"),p=a("tml-data-table-head-cell"),f=a("tml-data-table-body-cell"),v=a("font-awesome-icon"),D=a("tml-data-table"),E=a("tml-loader"),N=V("tml-tooltip");return i(),m("div",U,[t(E,{loading:s.loading,text:"Loading...",height:"7em"},{default:e(()=>[s.loading?y("",!0):(i(),m(A,{key:0},[s.loading?y("",!0):(i(),g(D,{key:0,style:O({margin:l.maxDevice("md")?"auto -1em":"auto -1em auto auto"}),"table-data":s.configurations,"rows-per-page":15,"default-sort":{index:"recipients",direction:"desc"},alternate:"",padded:""},{"no-data":e(()=>[t(T,null,{default:e(()=>[j,t(_,{text:"contact support",href:"/store-help/"}),I]),_:1})]),"table-head":e(()=>[t(p,{width:3,index:"domain"},{default:e(()=>[Q]),_:1}),t(p,{index:"stream"},{default:e(()=>[R]),_:1}),t(p,{index:"active"},{default:e(()=>[W]),_:1})]),"table-body":e(({data:c})=>[t(f,{href:c.url},{default:e(()=>[h("p",null,d(c.domain),1),h("p",Y,d(c.fullFromAddress),1)]),_:2},1032,["href"]),t(f,null,{default:e(()=>[H((i(),m("p",null,[r(d(c.stream),1)])),[[N,{message:"Transactional: automated emails triggered by customer actions (order confirmations, shipping updates). Broadcast: marketing emails sent to multiple recipients (newsletters, promotions)."},void 0,{hover:!0,top:!0}]])]),_:2},1024),t(f,null,{default:e(()=>[c.active?(i(),g(v,{key:0,icon:s.faCheck,class:"primary-text"},null,8,["icon"])):(i(),g(v,{key:1,icon:s.faTimes},null,8,["icon"]))]),_:2},1024)]),_:1},8,["style","table-data"]))],64))]),_:1},8,["loading"])])}const G=x(z,[["render",q]]);const J={name:"TeemailConfigurationListPage",components:{TeemailConfigurations:G},mixins:[w],inject:["operatorMode"]},K={key:0};function X(n,u,o,C,s,l){const _=a("teemail-configurations");return i(),m("div",{class:b({"pt-0 lg:pt-6 px-4":l.operatorMode.value==="default"})},[l.operatorMode.value==="default"?(i(),m("h1",K,d(n.$route.meta.title),1)):y("",!0),h("section",{class:b({"mt-8 mb-16":l.operatorMode.value==="default"})},[t(_,{division:n.division},null,8,["division"])],2)],2)}const he=x(J,[["render",X],["__scopeId","data-v-aa9ef7a0"]]);export{he as default}; 2//# sourceMappingURL=List.2aec97fb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.