1import"./chunk-UEKSI4IO.js";import{a as an,b as on}from"./chunk-2FOYPPZP.js";import{b as nn}from"./chunk-L4UIUEMH.js";import{a as en,b as tn}from"./chunk-YUHTPRSI.js";import"./chunk-VJYSMFQZ.js";import{a as Zn}from"./chunk-HTZNWCQQ.js";import{B as ee,Hb as Et,Ig as Wt,Jb as Ot,Kh as Q,Lg as Yt,Qb as se,Sg as Xe,Wh as Xt,cf as Kt,df as me,ef as Gt,gc as Bt,gf as zt,jf as Ze,kf as Qt,qe as $t,r as xt,sc as Le,tc as Lt,te as jt,wh as Jt,yh as y,ze as Vt}from"./chunk-LWDJIZOJ.js";import{Aa as $e,Ba as je,Ca as Ve,Ea as Ue,Fa as He,Ha as Ke,Ia as Ge,Ja as ze,Ka as Qe,La as We,Na as Ht,Oa as Ye,Sa as Je,Ta as Zt,va as qt,wa as Nt}from"./chunk-7GJ722E5.js";import{e as Be,f as Rt,g as ae,i as Ae,j as Ut}from"./chunk-RMAGOQNX.js";import{b as It,e as Ne,f as Ft,n as At}from"./chunk-DKMSCW6I.js";import"./chunk-4PH35PLU.js";import"./chunk-ELTKO6WM.js";import{J as Mt,L as Fe,M as K,N as St,R as qe,T as ce,ga as Dt,ka as E,la as O}from"./chunk-VT3TFGH4.js";import{$a as Re,Ba as I,Cc as B,Ea as De,Ga as Ie,Ja as Ee,Ka as Oe,Qa as wt,_a as Tt,ab as ie,b as _t,bb as Pt,db as kt,i as xe,m as bt,ra as Te,ta as re,u as yt,uc as R,w as F,wa as ne,xa as Pe,ya as ke}from"./chunk-ACLOMNIY.js";import{Cc as U,Da as P,Ea as k,Gc as b,Ic as _,Mc as we,Nc as Me,Oc as Se,P as dt,Pa as u,Qb as D,Rb as gt,Sa as ve,Va as ft,Vc as H,Wb as V,Xc as s,Yc as q,Zc as ue,_c as te,ad as ht,kc as S,ld as $,mc as x,md as Ct,nc as _e,oc as be,pc as ye,qc as w,qd as fe,ra as m,rc as a,rd as ge,sa as ut,sc as o,t as p,tc as h,wa as r,xb as l,xc as G,xd as vt,yc as z}from"./chunk-4BB3KLHH.js";import{a as C,b as Z,g as J,h as d}from"./chunk-WWX6BADO.js";var sn=(()=>{class t{constructor(){this.routes=[{title:"Subscribers",route:"/marketing/subscribers/contacts"},{title:"Rules",route:"/marketing/subscribers/rules"}]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-promotions"]],standalone:!1,decls:1,vars:0,template:function(n,i){n&1&&h(0,"router-outlet")},dependencies:[Re],styles:[".shell[_ngcontent-%COMP%]{display:grid;height:100%;overflow:auto;background-color:var(--chattys-primary)}"]})}}return t})();var W=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.baseUrl=`${R.baseUrl}/promotions/forms/links`,this.links=u([]),this.loading=u(!1),this.filter=u({query:""}),this.link=u(void 0)}filterFormLinks(e){return d(this,null,function*(){this.loading.set(!0),this.filter.set(e);let n=yield p(this._filterFormLinks(e));this.links.set(n),this.loading.set(!1)})}addFormLink(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._addFormLink(e));this.links.set([n,...this.links()]),this.loading.set(!1)})}getFormLink(e){return d(this,null,function*(){this.link.set(void 0),this.loading.set(!0);let n=yield p(this._getLink(e));this.link.set(n),this.loading.set(!1)})}updateFormLink(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._updateLink(e,n)),c=this.links(),M=c.findIndex(N=>N.id===n);M>-1&&(c[M]=C({},i)),this.links.set(c),this.link.set(i),this.loading.set(!1),this.store.dispatch(new y(`Successfully updated ${i.name}`))})}_filterFormLinks(e){return this.http.post(`${this.baseUrl}/filter`,e)}_addFormLink(e){return this.http.post(this.baseUrl,e)}_getLink(e){return this.http.get(`${this.baseUrl}/${e}`)}_updateLink(e,n){return this.http.patch(`${this.baseUrl}/${n}`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Y=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.baseUrl=`${R.baseUrl}/promotions/keywords`,this.keywords=u([]),this.loading=u(!1),this.keyword=u(void 0)}getKeywords(){return d(this,null,function*(){this.loading.set(!0);let e=yield p(this._getKeywords());this.keywords.set(e),this.loading.set(!1)})}getKeyword(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._getKeyword(e));this.keyword.set(n),this.loading.set(!1)})}addKeyword(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._addKeyword(e));this.keywords.set([n,...this.keywords()]),this.loading.set(!1),this.store.dispatch(new y(`Added ${n.word} as a keyword!`))})}updateKeyword(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._updateKeyword(e,n)),c=this.keywords(),M=c.findIndex(N=>N.id===e);c[M]=C({},i),this.keywords.set([...c]),this.keyword.set(i),this.store.dispatch(new y(`Successfully updated ${i.word}`))})}_getKeywords(){return this.http.get(this.baseUrl)}_addKeyword(e){return this.http.post(this.baseUrl,e)}_getKeyword(e){return this.http.get(`${this.baseUrl}/${e}`)}_updateKeyword(e,n){return this.http.patch(`${this.baseUrl}/${e}`,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var j=(()=>{class t{constructor(){this.http=r(F),this.baseUrl=`${R.baseUrl}/promotions`,this.contactsData=u({contacts:[],page:1,perPage:20,totalCount:0,next:1}),this.loading=u(!1),this.contactFilter=u({query:"",contactTagIds:[],locationIds:[],campaignIds:[],campaignIdsToExclude:[],from:new Date,to:new Date,allTime:!0,keywordIds:[]}),this.preferences=u([]),this.selectedContact=u(void 0),this.optInTagsSidebar=u(!1)}loadContacts(e,n){return d(this,null,function*(){this.loading.set(!0),this.contactFilter.set(e);let i=yield p(this._getContacts(e,n));this.contactsData.set(i),this.loading.set(!1)})}getPreferences(){return d(this,null,function*(){this.loading.set(!0);let e=yield p(this._getPreferences());this.preferences.set(e),this.loading.set(!1)})}addPreference(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._addPreference(e));this.preferences.set([...this.preferences(),n]),this.loading.set(!1)})}updatePreference(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._updatePreference(e,n)),c=[...this.preferences()],M=c.findIndex(N=>N.id===i.id);M>-1&&(c[M]=C({},i)),this.preferences.set(c),this.loading.set(!1)})}_getContacts(e,n){return this.http.post(`${this.baseUrl}/contacts/filter?page=${n}`,e)}_getPreferences(){return this.http.get(`${this.baseUrl}/preferences`)}_addPreference(e){return this.http.post(`${this.baseUrl}/preferences`,e)}_updatePreference(e,n){return this.http.put(`${this.baseUrl}/preferences/${n}`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var ln=()=>({width:"100%"}),cn=()=>({width:"100%",background:"var(--chattys-secondary)"}),ni=()=>({border:"none"});function ii(t,f){if(t&1&&(a(0,"p-floatlabel",3),h(1,"p-multiSelect",12),fe(2,"async"),a(3,"label"),s(4,"Select a location"),o()()),t&2){let e=_();l(),w("options",ge(2,2,e.locations$))("inputStyle",$(4,ni))}}var tt=(()=>{class t{constructor(){this.service=r(j),this.store=r(B),this.dialogRef=r(qe),this.form=new ke({formOptInMessage:new I(""),privacyPolicyUrl:new I(""),proposedMonthlyMessageCount:new I(0,re.required),smsOptInInstructionsMessage:new I(""),smsWelcomeMessage:new I(""),locations:new I([],re.required)}),this.locations$=this.store.select(e=>se(e))}ngOnInit(){this.locations$.subscribe(e=>{e?.length===1&&this.form.get("locations").setValue([e[0]])})}close(){this.dialogRef.close()}submit(){this.service.addPreference({formOptInMessage:this.form.get("formOptInMessage").value,privacyPolicyUrl:this.form.get("privacyPolicyUrl").value,proposedMonthlyMessageCount:this.form.get("proposedMonthlyMessageCount").value,smsOptInInstructionsMessage:this.form.get("smsOptInInstructionsMessage").value,smsWelcomeMessage:this.form.get("smsWelcomeMessage").value,locationIds:this.form.get("locations").value?.map(e=>e.id),twoStepConsent:!0}),this.close()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-add-promotions-preference-modal"]],standalone:!1,decls:29,vars:21,consts:[["title","New Subscriber Rule",3,"closeDialogEmitter"],[1,"promotion-preference-form",3,"formGroup"],[1,"promotion-preference-body"],["variant","on",1,"mb-4"],["pInputText","","formControlName","privacyPolicyUrl"],["formControlName","proposedMonthlyMessageCount"],[1,"table-value-container","mb-3",2,"display","block","font-weight","300"],["variant","on",1,"mb-2"],["pTextarea","","formControlName","smsWelcomeMessage"],["pTextarea","","formControlName","smsOptInInstructionsMessage"],[2,"display","flex","justify-content","center"],["mat-button","",1,"action-button",3,"click","disabled"],["formControlName","locations","appendTo","body","optionLabel","name",3,"options","inputStyle"]],template:function(n,i){if
1(n&1&&(a(0,"app-dialog-title-bar",0),b("closeDialogEmitter",function(){return i.close()}),o(),a(1,"app-modal-body-wrapper")(2,"form",1)(3,"div",2)(4,"p-floatlabel",3),h(5,"input",4),a(6,"label"),s(7,"Privacy policy URL"),o()(),a(8,"p-floatlabel",3),h(9,"p-inputNumber",5),a(10,"label"),s(11,"Monthly message count"),o()(),a(12,"div",6)(13,"p-floatlabel",7),h(14,"textarea",8),a(15,"label"),s(16,"Opt-in confirmed message"),o()(),s(17),o(),a(18,"div",6)(19,"p-floatlabel",7),h(20,"textarea",9),a(21,"label"),s(22,"2nd step opt-in instructions"),o()(),s(23),o(),S(24,ii,5,5,"p-floatlabel",3),fe(25,"async"),o(),a(26,"div",10)(27,"button",11),b("click",function(){return i.submit()}),s(28," Save "),o()()()()),n&2){let c;l(2),w("formGroup",i.form),l(3),H($(17,ln)),l(4),H($(18,ln)),l(5),H($(19,cn)),l(3),te(" Up to ",i.form.get("proposedMonthlyMessageCount").value," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",i.form.get("privacyPolicyUrl").value,` 2`),l(3),H($(20,cn)),l(3),te(" Up to ",i.form.get("proposedMonthlyMessageCount").value," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",i.form.get("privacyPolicyUrl").value,` To complete your opt-in, please reply with "Yes" or "Y" 3`),l(),x(((c=ge(25,15,i.locations$))==null?null:c.length)>1?24:-1),l(3),w("disabled",!i.form.valid)}},dependencies:[E,O,ae,K,Be,De,Te,ne,Pe,Oe,Ee,Le,Je,Ze,xe],encapsulation:2})}}return t})();var pn=(()=>{class t{constructor(){this.dialogRef=r(qe)}close(){this.dialogRef.close()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-one-step-consent-warning-modal"]],standalone:!1,decls:7,vars:0,consts:[["title","Warning",3,"closeDialogEmitter"],[2,"display","flex","flex-direction","column","justify-content","center","align-items","center"],["mat-button","",1,"mt-3","action-button",3,"click"]],template:function(n,i){n&1&&(a(0,"app-dialog-title-bar",0),b("closeDialogEmitter",function(){return i.close()}),o(),a(1,"app-modal-body-wrapper")(2,"div",1)(3,"span"),s(4,"WARNING: It is highly recommended to use 2-step opt-in consent when gather opt-in from contacts before you send campaigns. This can help protect yourself and show evidence that the particular phone number that you are sending promotional messages to did in fact agree to receive messages. At times, a form can be submitted by anyone with any information."),o(),a(5,"button",2),b("click",function(){return i.close()}),s(6,"I understand"),o()()())},dependencies:[E,O,K],encapsulation:2})}}return t})();var dn=()=>({width:"100%"}),un=()=>({width:"100%",background:"var(--chattys-secondary)"}),ri=()=>({border:"none"});function si(t,f){t&1&&h(0,"mat-progress-bar",7)}function li(t,f){if(t&1){let e=U();a(0,"form",0)(1,"div",2)(2,"button",3),b("click",function(){P(e);let i=_();return k(i.reset())}),h(3,"i",4),o(),a(4,"button",5),b("click",function(){P(e);let i=_();return k(i.submit())}),h(5,"i",6),o()(),S(6,si,1,0,"mat-progress-bar",7),a(7,"div",8)(8,"p-floatlabel",9),h(9,"input",10),a(10,"label"),s(11,"Privacy policy URL"),o()(),a(12,"p-floatlabel",9),h(13,"p-inputNumber",11),a(14,"label"),s(15,"Monthly message count"),o()(),a(16,"div",12)(17,"p-floatlabel",13),h(18,"textarea",14),a(19,"label"),s(20,"Opt-in confirmed message"),o()(),s(21),o(),a(22,"mat-checkbox",15),b("change",function(i){P(e);let c=_();return k(c.handleTwoStepConsentChange(i))}),s(23,"Two step consent "),o(),a(24,"div",12)(25,"p-floatlabel",13),h(26,"textarea",16),a(27,"label"),s(28,"2nd step opt-in instructions"),o()(),s(29),o(),a(30,"p-floatlabel",17),h(31,"p-multiSelect",18),fe(32,"async"),a(33,"label"),s(34,"Select a location"),o()()()()}if(t&2){let e=_();w("formGroup",e.form),l(6),x(e.loading()?6:-1),l(3),H($(18,dn)),l(4),H($(19,dn)),l(5),H($(20,un)),l(3),te(" Up to ",e.preference.proposedMonthlyMessageCount," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",e.preference.privacyPolicyUrl," "),l(5),H($(21,un)),l(3),te("Up to ",e.preference.proposedMonthlyMessageCount," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",e.preference.privacyPolicyUrl,'. To complete your opt-in, please reply with "Yes" or "Y" '),l(2),w("options",ge(32,16,e.locations$))("inputStyle",$(22,ri))}}function ci(t,f){if(t&1&&(a(0,"div",28),s(1),o()),t&2){let e=f.$implicit;l(),ue(" ",e.name," ")}}function mi(t,f){if(t&1&&(a(0,"div",27),be(1,ci,2,1,"div",28,_e),o()),t&2){let e=_(2);l(),ye(e.preference.locations)}}function pi(t,f){if(t&1&&(a(0,"div",27),s(1),o()),t&2){let e=_(2);l(),ue(" (",e.preference.locations.length,") Locations ")}}function di(t,f){if(t&1){let e=U();a(0,"div",1)(1,"div",2)(2,"button",3),b("click",function(){P(e);let i=_();return k(i.editEnabled.set(!0))}),h(3,"i",19),o()(),a(4,"div",8)(5,"b",20),s(6,"Privacy policy URL"),o(),a(7,"span"),s(8),o(),a(9,"div",21)(10,"b",22),s(11,"Monthly message estimate"),o(),a(12,"div",23),s(13),o()(),a(14,"b",24),s(1
35,"Opt-in confirmed message"),o(),a(16,"div",25)(17,"span",26),s(18),o(),s(19),o(),a(20,"div",21)(21,"b",22),s(22,"Two step opt-in"),o(),a(23,"div",23),s(24),o()(),a(25,"b",24),s(26,"2nd step opt-in instructions"),o(),a(27,"div",25)(28,"span",26),s(29),o(),s(30),o(),a(31,"b",24),s(32,"Locations"),o(),S(33,mi,3,0,"div",27),S(34,pi,2,1,"div",27),o()()}if(t&2){let e=_();l(8),q(e.preference.privacyPolicyUrl??"none"),l(5),q(e.preference.proposedMonthlyMessageCount),l(5),q(e.preference.smsWelcomeMessage),l(),te(" Up to ",e.preference.proposedMonthlyMessageCount," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",e.preference.privacyPolicyUrl," "),l(5),q(e.preference.twoStepConsent?"Yes":"No"),l(5),q(e.preference.smsOptInInstructionsMessage),l(),te(" Up to ",e.preference.proposedMonthlyMessageCount," messages/month. Reply STOP to opt out or HELP for help. Msg & Data rates may apply. Terms & privacy: ",e.preference.privacyPolicyUrl,'. To complete your opt-in, please reply with "Yes" or "Y" '),l(3),x(e.preference.locations.length<3?33:-1),l(),x(e.preference.locations.length>=3?34:-1)}}var fn=(()=>{class t{constructor(){this.service=r(j),this.store=r(B),this.dialog=r(ce),this.locations$=this.store.select(e=>se(e)),this.form=new ke({formOptInMessage:new I(""),privacyPolicyUrl:new I(""),proposedMonthlyMessageCount:new I(0,re.required),smsOptInInstructionsMessage:new I(""),smsWelcomeMessage:new I(""),locationIds:new I([]),twoStepConsent:new I(!0)}),this.editEnabled=u(!1),this.loading=this.service.loading}ngOnChanges(){this.reset()}reset(){this.form.get("formOptInMessage").setValue(this.preference.formOptInMessage),this.form.get("privacyPolicyUrl").setValue(this.preference.privacyPolicyUrl),this.form.get("proposedMonthlyMessageCount").setValue(this.preference.proposedMonthlyMessageCount),this.form.get("smsOptInInstructionsMessage").setValue(this.preference.smsOptInInstructionsMessage),this.form.get("smsWelcomeMessage").setValue(this.preference.smsWelcomeMessage),this.form.get("twoStepConsent").setValue(this.preference.twoStepConsent),this.form.get("locationIds").setValue(this.preference.locations?.map(e=>e.id)),this.editEnabled.set(!1),console.log(this.form.get("locationIds").value)}submit(){this.service.updatePreference({formOptInMessage:this.form.get("formOptInMessage").value,privacyPolicyUrl:this.form.get("privacyPolicyUrl").value,proposedMonthlyMessageCount:this.form.get("proposedMonthlyMessageCount").value,smsOptInInstructionsMessage:this.form.get("smsOptInInstructionsMessage").value,smsWelcomeMessage:this.form.get("smsWelcomeMessage").value,locationIds:this.form.get("locationIds").value,twoStepConsent:this.form.get("twoStepConsent").value},this.preference.id)}handleTwoStepConsentChange(e){e.checked||this.dialog.open(pn,{width:"400px"}).afterClosed()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-promotion-preference-form"]],inputs:{preference:"preference"},standalone:!1,features:[ft],decls:2,vars:2,consts:[[1,"promotion-preference-form","elevate","mb-3",3,"formGroup"],[1,"promotion-preference-form","elevate"],[1,"promotion-preference-form-header"],["mat-icon-button","",1,"action-icon-button","secondary-icon-button","mr-2",3,"click"],[1,"fa-sharp","fa-light","fa-xmark"],["mat-icon-button","",1,"action-icon-button","action-button",3,"click"],[1,"fa-sharp","fa-light","fa-save"],["mode","indeterminate"],[1,"promotion-preference-body"],["variant","on",1,"mb-3"],["pInputText","","formControlName","privacyPolicyUrl"],["formControlName","proposedMonthlyMessageCount"],[1,"table-value-container","mb-3",2,"display","block","font-weight","300"],["variant","on",1,"mb-2"],["pTextarea","","formControlName","smsWelcomeMessage"],["formControlName","twoStepConsent",1,"mb-3",3,"change"],["pTextarea","","formControlName","smsOptInInstructionsMessage"],["variant","on"],["formControlName","locationIds","appendTo","body","optionLabel","name","optionValue","id",3,"options","inputStyle"],[1,"fa-sharp","fa-light","fa-pencil"],[1,"mt-2"],[1,"mt-3",2,"display","flex","align-items","center"],[1,"mr-3"],[1,"table-value-container"],[1,"mt-3","mb-2"],[1,"table-value-container",2,"display","block","font-weight","300"],[2,"font-weight","600"],[2,"display","flex","align-items","center"],[1,"table-value-container","mr-3"]],template:function(n,i){n&1&&(S(0,li,35,23,"form",0),S(1,di,35,11,"div",1)),n&2&&(x(i.editEnabled()?0:-1),l(),x(i.editEnabled()?-1:1))},dependencies:[ae,Fe,Ne,Be,De,Te,ne,Pe,Oe,Ee,Ae,Le,Je,Ze,xe],styles:[".promotion-preference-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--chattys-secondary);margin-bottom:12px}.promotion-preference-form[_ngcontent-%COMP%] .promotion-preference-form-header[_ngcontent-%COMP%]{width:100%;padding:12px;border-bottom:1px solid var(--chattys-divider);display:flex;justify-content:flex-end}.promotion-preference-form[_ngcontent-%COMP%] .promotion-preference-body[_ngcontent-%COMP%]{padding:12px;display:flex;flex-direction:column}"]})}}return t})();function fi(t,f){t&1&&h(0,"mat-progress-bar",0)}function gi(t,f){if(t&1&&h(0,"app-promotion-preference-form",6),t&2){let e=f.$implicit;w("preference",e)}}function hi(t,f){if(t&1){let e=U();a(0,"div",1)(1,"div",2),s(2,"' "),a(3,"h5"),s(4,"Opt-in Rules"),o(),h(5,"span",3),a(6,"button",4),b("click",function(){P(e);let i=_();return k(i.openNewRuleModal())}),s(7," Add rule "),o()(),a(8,"div",5),be(9,gi,1,1,"app-promotion-preference-form",6,_e),o()()}if(t&2){let e=_();l(9),ye(e.preferences())}}var gn=(()=>{class t{constructor(){this.linkService=r(W),this.keywordService=r(Y),this.promotionsService=r(j),this.dialog=r(ce),this.links=this.linkService.links,this.loading=this.linkService.loading,this.keywords=this.keywordService.keywords,this.activeMenuItem=u("Setup"),this.preferences=this.promotionsService.preferences}
3openNewRuleModal(){let e=window.innerHeight<=700?{height:"100%",width:"100%"}:{width:"600px"};this.dialog.open(tt,C({},e)).afterClosed()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-opt-in-management-page"]],standalone:!1,decls:3,vars:2,consts:[["mode","indeterminate"],[1,"campaigns-page"],[1,"mb-3",2,"display","flex","align-items","center"],[2,"flex","auto"],["mat-button","",1,"action-button",3,"click"],[1,"preference-list"],[3,"preference"]],template:function(n,i){n&1&&(S(0,fi,1,0,"mat-progress-bar",0),S(1,hi,11,0,"div",1),h(2,"router-outlet")),n&2&&(x(i.loading()?0:-1),l(),x(i.activeMenuItem().includes("Setup")?1:-1))},dependencies:[Re,K,Ne,fn],styles:[".campaigns-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:24px}.campaigns-page[_ngcontent-%COMP%] .preference-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}}return t})();var nt=(()=>{class t{constructor(){this.service=r(W)}resolve(){this.service.filterFormLinks({query:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var it=(()=>{class t{constructor(){this.service=r(Y)}resolve(){this.service.getKeywords()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var X=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.router=r(ie),this.rawData=u(void 0),this.contacts=u([]),this.formatRules=u([]),this.stepIndex=u(0),this.loading=u(!1)}updateRawData(e){this.rawData.set(e),e?this.setFormatRules():this.formatRules.set([])}setFormatRules(){let e=this.rawData()?.headers,n=this.rawData()?.data[0];this.formatRules.set(e.map((i,c)=>({columnHeader:i,preview:n[c],chataviseProperty:void 0})))}updateFormatRules(e){let n=this.formatRules(),i=n.findIndex(c=>c.columnHeader===e.columnHeader);i>-1&&(n[i]=C({},e)),this.formatRules.set([...n]),this.updateContactData()}updateContactData(){if(this.rawData()){let e=this.rawData()?.data.map(n=>{let i={};for(let c of this.formatRules()){if(!c.chataviseProperty)continue;let M=this.rawData().headers.findIndex(N=>N===c.columnHeader);i[c.chataviseProperty]=n[M]}return i});this.contacts.set([...e])}}uploadContacts(e){return d(this,null,function*(){this.loading.set(!0),yield p(this._uploadContacts(e)),this.loading.set(!1),this.store.dispatch(new y(`Successfully uploaded ${e.contacts.length} contacts`)),setTimeout(()=>this.router.navigateByUrl("/promotions/contacts"),500)})}_uploadContacts(e){return this.http.post(`${R.baseUrl}/promotions/contacts/upload`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();function vi(t,f){t&1&&(a(0,"th",15),s(1,"First name"),o())}function _i(t,f){if(t&1&&(a(0,"td",16),s(1),o()),t&2){let e=f.$implicit;l(),q(e.firstName)}}function bi(t,f){t&1&&(a(0,"th",15),s(1,"Last name"),o())}function yi(t,f){if(t&1&&(a(0,"td",16),s(1),o()),t&2){let e=f.$implicit;l(),q(e.lastName)}}function wi(t,f){t&1&&(a(0,"th",15),s(1,"Phone"),o())}function Mi(t,f){if(t&1&&(a(0,"td",16),s(1),o()),t&2){let e=f.$implicit;l(),q(e.phone)}}function Si(t,f){t&1&&(a(0,"th",15),s(1,"Email"),o())}function xi(t,f){if(t&1&&(a(0,"td",16),s(1),o()),t&2){let e=f.$implicit;l(),q(e.email)}}function Ti(t,f){t&1&&(a(0,"th",15),s(1,"Address"),o())}function Pi(t,f){if(t&1&&(a(0,"span"),s(1),o()),t&2){let e=_().$implicit;l(),ht(" ",e.address,", ",e.city,", ",e.state," , ",e.zipCode," ")}}function ki(t,f){if(t&1&&(a(0,"td",16),S(1,Pi,2,4,"span"),o()),t&2){let e=f.$implicit;l(),x(e.city?1:-1)}}function Di(t,f){t&1&&(a(0,"th",15),s(1,"Location Key"),o())}function Ii(t,f){if(t&1&&(a(0,"td",16),s(1),o()),t&2){let e=f.$implicit;l(),q(e.locationKey)}}function Ei(t,f){t&1&&h(0,"tr",17)}function Oi(t,f){t&1&&h(0,"tr",18)}var hn=(()=>{class t{constructor(){this.service=r(X),this.contacts=this.service.contacts,this.displayColumns=["firstName","lastName","phone","email","address","locationKey"],ve(()=>{this.data=new Ye(this.contacts()),this.data.paginator=this.paginator})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-upload-contacts-preview-table"]],viewQuery:function(n,i){if
3(n&1&&we(me,5),n&2){let c;Me(c=Se())&&(i.paginator=c.first)}},standalone:!1,decls:28,vars:4,consts:[[1,"campaigns-table","elevate"],["mat-table","",3,"dataSource"],["matColumnDef","firstName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastName"],["matColumnDef","phone"],["matColumnDef","email"],["matColumnDef","address"],["matColumnDef","locationKey"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[2,"background-color","var(--chattys-secondary)"],[1,"mt-3",2,"display","flex","align-items","center","justify-content","space-between"],["mat-button","",1,"action-button",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(a(0,"div",0)(1,"table",1),G(2,2),V(3,vi,2,0,"th",3)(4,_i,2,1,"td",4),z(),G(5,5),V(6,bi,2,0,"th",3)(7,yi,2,1,"td",4),z(),G(8,6),V(9,wi,2,0,"th",3)(10,Mi,2,1,"td",4),z(),G(11,7),V(12,Si,2,0,"th",3)(13,xi,2,1,"td",4),z(),G(14,8),V(15,Ti,2,0,"th",3)(16,ki,2,1,"td",4),z(),G(17,9),V(18,Di,2,0,"th",3)(19,Ii,2,1,"td",4),z(),V(20,Ei,1,0,"tr",10)(21,Oi,1,0,"tr",11),o()(),h(22,"mat-paginator",12),a(23,"div",13)(24,"button",14),b("click",function(){return i.service.stepIndex.set(1)}),s(25,"Go Back"),o(),a(26,"button",14),b("click",function(){return i.service.stepIndex.set(3)}),s(27,"Next"),o()()),n&2&&(l(),w("dataSource",i.data),l(19),w("matHeaderRowDef",i.displayColumns)("matHeaderRowDefSticky",!0),l(),w("matRowDefColumns",i.displayColumns))},dependencies:[K,me,$e,Ve,Ge,Ue,je,ze,He,Ke,Qe,We],styles:[".campaigns-table[_ngcontent-%COMP%]{max-height:80vh;overflow:hidden;background-color:var(--chattys-secondary)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;background-color:var(--chattys-secondary)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{background-color:var(--chattys-action-blue);height:35px;width:35px;border-radius:8px;display:flex!important;align-items:center!important;justify-content:center!important}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;color:var(--chattys-button-text)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .message-container[_ngcontent-%COMP%]{background-color:var(--chattys-primary);border-radius:8px;display:flex;align-items:center;justify-content:center;padding:8px 12px;width:fit-content}.campaigns-table[_ngcontent-%COMP%]:hover{overflow-y:auto}.table-row[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return t})();var Cn=(()=>{class t{constructor(){this.service=r(X),this.fields=[{name:"First name",value:"firstName"},{name:"Last name",value:"lastName"},{name:"Mobile number",value:"phone"},{name:"Email",value:"email"},{name:"Address",value:"address"},{name:"City",value:"city"},{name:"State",value:"state"},{name:"Zip code",value:"zipCode"},{name:"Location Key",value:"locationKey"},{name:"Ignore",value:void 0}],this.fieldControl=new I(this.fields[9],re.required)}ngOnInit(){switch(this.fieldControl.valueChanges.subscribe(e=>{console.log(e),e.value!==this.rule.chataviseProperty&&this.service.updateFormatRules({columnHeader:this.rule.columnHeader,preview:this.rule.preview,chataviseProperty:e.value})}),!0){case this.rule.columnHeader.toLowerCase().includes("first"):this.fieldControl.setValue(this.fields[0]);break;case this.rule.columnHeader.toLowerCase().includes("last"):this.fieldControl.setValue(this.fields[1]);break;case(this.rule.columnHeader.toLowerCase().includes("number")||this.rule.columnHeader.toLowerCase().includes("phone")):this.fieldControl.setValue(this.fields[2]);break;case this.rule.columnHeader.toLowerCase().includes("email"):this.fieldControl.setValue(this.fields[3]);break;case this.rule.columnHeader.toLowerCase().includes("address"):this.fieldControl.setValue(this.fields[4]);break;case this.rule.columnHeader.toLowerCase().includes("city"):this.fieldControl.setValue(this.fields[5]);break;case this.rule.columnHeader.toLowerCase().includes("state"):this.fieldControl.setValue(this.fields[6]);break;case this.rule.columnHeader.toLowerCase().includes("zip"):this.fieldControl.setValue(this.fields[7]);break;case this.rule.columnHeader.toLowerCase().includes("key"):this.fieldControl.setValue(this.fields[8]);break;default:this.fieldControl.setValue(this.fields[9]);break}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-upload-contacts-mapping-table-field-form"]],inputs:{rule:"rule"},standalone:!1,decls:4,vars:2,consts:[["variant","on"],["appendTo","body","optionLabel","name",3,"options","formControl"]],template:function(n,i){n&1&&(a(0,"p-floatlabel",0),h(1,"p-select",1),a(2,"label"),s(3,"Field"),o()()),n&2&&(l(),w("options",i.fields)("formControl",i.fieldControl))},dependencies:[ae,ne,Ie,qt],encapsulation:2})}}return t})();function qi(t,f){t&1&&(a(0,"th",11),s(1,"Column Header"),o())}function Ni(t,f){if(t&1&&(a(0,"td",12),s(1),o()),t&2){let e=f.$implicit;l(),q(e.columnHeader)}}function Bi(t,f){t&1&&(a(0,"th",11),s(1,"Preview"),o())}function Li(t,f){if(t&1&&(a(0,"td",12),s(1),o()),t&2){let e=f.$implicit;l(),q(e.preview)}}function Ai(t,f){t&1&&(a(0,"th",11),s(1,"Property"),o())}function $i(t,f){if(t&1&&(a(0,"td",12),h(1,"app-upload-contacts-mapping-table-field-form",13),o()),t&2){let e=f.$implicit;l(),w("rule",e)}}function ji(t,f){t&1&&h(0,"tr",14)}function Vi(t,f){t&1&&h(0,"tr",15)}function Ui(t,f){if(t&1){let e=U();a(0,"button",16),b("click",function(){P(e);let i=_();return k(i.service.stepIndex.set(2))}),s(1,"Next"),o()}}var vn=(()=>{class t{constructor(){this.service=r(X),this.formatters=this.service.formatRules,this.displayColumns=["columnHeader","preview","chataviseProperty"],ve(()=>{this.data=new Ye(this.formatters()),this.data.paginator=this.paginator})}hasLocationKey(){return this.formatters()?.findIndex(e=>e.chataviseProperty==="locationKey")>-1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-upload-contacts-mapping-table"]],viewQuery:function(n,i){if
3(n&1&&we(me,5),n&2){let c;Me(c=Se())&&(i.paginator=c.first)}},standalone:!1,decls:15,vars:5,consts:[[1,"campaigns-table"],["mat-table","",3,"dataSource"],["matColumnDef","columnHeader"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","preview"],["matColumnDef","chataviseProperty"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-3",2,"display","flex","align-items","center","justify-content","flex-end"],["mat-button","",1,"action-button"],["mat-header-cell",""],["mat-cell",""],[3,"rule"],["mat-header-row",""],["mat-row",""],["mat-button","",1,"action-button",3,"click"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"table",1),G(2,2),V(3,qi,2,0,"th",3)(4,Ni,2,1,"td",4),z(),G(5,5),V(6,Bi,2,0,"th",3)(7,Li,2,1,"td",4),z(),G(8,6),V(9,Ai,2,0,"th",3)(10,$i,2,1,"td",4),z(),V(11,ji,1,0,"tr",7)(12,Vi,1,0,"tr",8),o()(),a(13,"div",9),S(14,Ui,2,0,"button",10),o()),n&2&&(l(),w("dataSource",i.data),l(10),w("matHeaderRowDef",i.displayColumns)("matHeaderRowDefSticky",!0),l(),w("matRowDefColumns",i.displayColumns),l(2),x(i.hasLocationKey()?14:-1))},dependencies:[K,$e,Ve,Ge,Ue,je,ze,He,Ke,Qe,We,Cn],styles:[".campaigns-table[_ngcontent-%COMP%]{max-height:80vh;overflow:hidden;background-color:var(--chattys-secondary)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;background-color:var(--chattys-secondary)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{background-color:var(--chattys-action-blue);height:35px;width:35px;border-radius:8px;display:flex!important;align-items:center!important;justify-content:center!important}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;color:var(--chattys-button-text)}.campaigns-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .message-container[_ngcontent-%COMP%]{background-color:var(--chattys-primary);border-radius:8px;display:flex;align-items:center;justify-content:center;padding:8px 12px;width:fit-content}.campaigns-table[_ngcontent-%COMP%]:hover{overflow-y:auto}.table-row[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return t})();var Ki=t=>({highlight:t}),Gi=()=>({width:"100%"});function zi(t,f){if(t&1){let e=U();a(0,"div",5)(1,"div",12),b("dragover",function(i){P(e);let c=_();return k(c.onDragCustomerFile(i))})("dragleave",function(i){P(e);let c=_();return k(c.onDragLeave(i))})("drop",function(i){P(e);let c=_();return k(c.onDropCustomerFile(i))}),a(2,"button",13),b("click",function(){P(e);let i=_();return k(i.onClickCustomerFile())}),h(3,"i",14),o(),a(4,"p"),s(5),o(),a(6,"input",15),b("change",function(i){P(e);let c=_();return k(c.uploadFile(i.target.files))}),o()()()}if(t&2){let e=_();l(),w("ngClass",Ct(2,Ki,e.highlight)),l(4),q(e.uploadText)}}function Qi(t,f){if(t&1){let e=U();a(0,"div",6),s(1),h(2,"span",16),a(3,"button",13),b("click",function(){P(e);let i=_();return k(i.service.updateRawData(void 0))}),h(4,"i",17),o()()}if(t&2){let e,n=_();l(),ue(" ",(e=n.rawData())==null?null:e.title," ")}}function Wi(t,f){t&1&&(a(0,"div",7)(1,"h5"),s(2,"Formatting"),o(),h(3,"app-upload-contacts-mapping-table"),o())}function Yi(t,f){t&1&&(a(0,"div",8)(1,"h5"),s(2,"Preview"),o(),h(3,"app-upload-contacts-preview-table"),o())}function Zi(t,f){if(t&1){let e=U();a(0,"p-floatlabel",18),h(1,"p-listbox",19),a(2,"div",20)(3,"button",21),b("click",function(){P(e);let i=_(2);return k(i.service.stepIndex.set(2))}),s(4,"Go Back"),o(),a(5,"button",21),b("click",function(){P(e);let i=_(2);return k(i.service.stepIndex.set(4))}),s(6,"Next"),o()()()}if(t&2){let e=_(2);l(),H($(6,Gi)),w("options",e.lists())("formControl",e.listsControl)("multiple",!0)("metaKeySelection",!1)}}function Ji(t,f){if(t&1&&(a(0,"div",9)(1,"h5"),s(2,"Append to contact lists"),o(),S(3,Zi,7,7,"p-floatlabel",18),o()),t&2){let e,n=_();l(3),x(((e=n.lists())==null?null:e.length)>0?3:-1)}}function Xi(t,f){if(t&1){let e=U();a(0,"button",21),b("click",function(){P(e);let i=_(2);return k(i.upload())}),s(1," Upload "),o()}}function ea(t,f){if(t&1){let e=U();a(0,"div",10)(1,"div",22)(2,"h5"),s(3,"By uploading these contacts, you agree that you have gained prior written consent to send promotional messages"),o(),a(4,"span"),s(5,"Terms & Conditions"),o(),a(6,"div",23),s(7," You warrant that you will use this platform in full compliance with "),a(8,"a",24),s(9,"Terms of service"),o(),s(10," including Section 5.2, along with applicable regulations "),o(),a(11,"mat-checkbox",25),s(12,"I have read and accepted these terms"),o()(),a(13,"div",20)(14,"button",21),b("click",function(){P(e);let i=_();return k(i.service.stepIndex.set(2))}
3),s(15,"Go Back"),o(),S(16,Xi,2,0,"button",26),o()()}if(t&2){let e,n=_();l(11),w("formControl",n.termsControl),l(5),x(n.termsControl.valid&&((e=n.contacts())==null?null:e.length)>0?16:-1)}}function ta(t,f){t&1&&h(0,"app-processing-indicator",11)}var _n=(()=>{class t{constructor(){this.papa=r(Kt),this.service=r(X),this.listsService=r(Xe),this.rawData=this.service.rawData,this.contacts=this.service.contacts,this.lists=this.listsService.lists,this.loading=this.service.loading,this.highlight=!1,this.uploadText="Click or drag customer CSV file",this.termsControl=new I(!0),this.listsControl=new I([]),this.stepIndex=this.service.stepIndex,this.steps=[{label:"Upload",command:()=>this.service.stepIndex.set(0)},{label:"Map fields",command:()=>this.service.stepIndex.set(1)},{label:"Preview",command:()=>this.service.stepIndex.set(2)},{label:"Contact lists",command:()=>this.service.stepIndex.set(3)},{label:"Confirmation",command:()=>this.service.stepIndex.set(4)}]}onActiveIndexChange(e){this.service.stepIndex.set(e)}uploadFile(e){let n=e.item(0);this.papa.parse(n,{complete:i=>{this.service.updateRawData({headers:i.data.shift(),data:i.data,title:`${e.item(0).name}: ${e.item(0).size/1e3}kb`}),this.service.stepIndex.set(1)}})}onDragCustomerFile(e){e.preventDefault(),this.highlight=!0}onDragLeave(e){e.preventDefault(),this.highlight=!1}onDropCustomerFile(e){e.preventDefault();let n=e.dataTransfer.files;this.uploadFile(n)}onClickCustomerFile(){document.getElementById("import_contact_input").click()}upload(){this.service.uploadContacts({contacts:this.contacts(),acknowledgedOptInConsent:this.termsControl.value,contactListIds:this.listsControl.value?.map(e=>e.id)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-contacts-upload-page"]],standalone:!1,decls:17,vars:11,consts:[[1,"contacts-upload-page"],[2,"display","flex","align-items","center"],[2,"font-size","18px","font-weight","400","color","var(--chattys-text-primary)",3,"routerLink"],[1,"mr-2","ml-2","material-icons"],[3,"activeIndexChange","model","readonly","activeIndex"],[1,"mt-3",2,"display","flex","justify-content","center"],[1,"file"],[1,"formatting"],[1,"preview"],[1,"lists"],[1,"confirmation"],["message","UPLOADING"],[1,"uploader","mb-3",3,"dragover","dragleave","drop","ngClass"],["mat-icon-button","",3,"click"],[1,"fa","fa-upload","mb-3"],["type","file","id","import_contact_input","hidden","",3,"change"],[2,"flex","auto"],[1,"fa-light","fa-sharp","fa-trash"],["variant","on",1,"mb-4"],["optionLabel","name",3,"options","formControl","multiple","metaKeySelection"],[1,"mt-3",2,"display","flex","align-items","center","justify-content","space-between"],["mat-button","",1,"action-button",3,"click"],[2,"display","flex","flex-direction","column","align-items","center"],[1,"terms","elevate","mt-2"],["target","_blank","href","https://www.chatavise.com/terms-of-service",1,"mr-1","ml-1"],[3,"formControl"],["mat-button","",1,"action-button"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"a",2),s(3,"Contacts"),o(),a(4,"i",3),s(5,"keyboard_arrow_right"),o(),a(6,"span"),s(7,"Upload contacts"),o()(),a(8,"div")(9,"p-steps",4),b("activeIndexChange",function(M){return i.onActiveIndexChange(M)}),o()(),S(10,zi,7,4,"div",5),S(11,Qi,5,1,"div",6),S(12,Wi,4,0,"div",7),S(13,Yi,4,0,"div",8),S(14,Ji,4,1,"div",9),S(15,ea,17,2,"div",10),S(16,ta,1,0,"app-processing-indicator",11),o()),n&2&&(l(2),w("routerLink","/marketing/subscribers/contacts"),l(7),w("model",i.steps)("readonly",!1)("activeIndex",i.stepIndex()),l(),x(i.stepIndex()===0?10:-1),l(),x(i.stepIndex()!==0?11:-1),l(),x(i.stepIndex()===1?12:-1),l(),x(i.stepIndex()===2?13:-1),l(),x(i.stepIndex()===3?14:-1),l(),x(i.stepIndex()===4?15:-1),l(),x(i.loading()?16:-1))},dependencies:[_t,Pt,Jt,ae,K,Fe,ne,Ie,Ae,en,an,hn,vn],styles:[".contacts-upload-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:24px;height:100%;background-color:var(--chattys-primary)}.contacts-upload-page[_ngcontent-%COMP%] .terms[_ngcontent-%COMP%]{background-color:var(--chattys-secondary);padding:16px;display:flex;align-items:center;justify-content:center;width:fit-content}
3.file[_ngcontent-%COMP%]{display:flex;align-items:center}.formatting[_ngcontent-%COMP%]{display:flex;flex-direction:column}.uploader[_ngcontent-%COMP%]{background-color:var(--chattys-secondary);width:400px;height:300px;border:1px dashed var(--chattys-text-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center}.uploader[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .uploader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--chattys-text-secondary)}.uploader[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.highlight[_ngcontent-%COMP%]{background-color:var(--chattys-primary);border:1px solid var(--chattys-divider)}"]})}}return t})();var at=(()=>{class t{constructor(){this.service=r(j)}resolve(){this.service.getPreferences()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var bn=(()=>{class t{constructor(){this.dialog=r(ce),this.router=r(ie),this.route=r(Tt)}ngOnInit(){this.route.paramMap.pipe(dt(1)).subscribe(e=>{let n=window.innerHeight<=700?{height:"100%",width:"100%"}:{width:"400px"};this.dialog.open(tt,C({},n)).afterClosed().subscribe(c=>this.router.navigateByUrl("/marketing/subscribers/rules"))})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["ng-component"]],standalone:!1,decls:0,vars:0,template:function(n,i){},encapsulation:2})}}return t})();var yn=[{path:"contacts/upload",component:_n},{path:"",component:sn,children:[{path:"rules",component:gn,resolve:[nt,it,at],children:[{path:"rules/new",component:bn}]},{path:"**",redirectTo:"rules"}]}];var oe=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.baseUrl=`${R.baseUrl}/promotions/deals`,this.deals=u([]),this.loading=u(!1)}getDeals(){return d(this,null,function*(){this.loading.set(!0);let e=yield p(this._getDeals());this.deals.set(e),this.loading.set(!1)})}addDeal(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._addDeal(e));this.deals.set([n,...this.deals()]),this.loading.set(!1),this.store.dispatch(new y(`Successfully added ${e.name}`))})}_getDeals(){return this.http.get(`${this.baseUrl}`)}_addDeal(e){return this.http.post(`${this.baseUrl}`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var wn=J(ee());var v=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.router=r(ie),this.baseUrl=`${R.baseUrl}/promotions/campaigns`,this.campaign=u(void 0),this.loading=u(!1),this.contactResult=u({contacts:[],page:1,totalCount:0,next:1,perPage:20}),this.contactFilter=u({query:"",contactTagIds:[],locationIds:[],campaignIds:[],campaignIdsToExclude:[],from:new Date,to:new Date,allTime:!0,keywordIds:[]}),this.batchData=u({batches:[],page:1,next:1,count:0,totalCount:0,perPage:0}),this.batchFilter=u({from:(0,wn.default)().subtract(30,"day").toDate(),to:new Date,showAllTime:!0,status:"all"}),this.batch=u(void 0),this.rules=u([]),this.rule=u(void 0)}getCampaign(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._getCampaign(e));this.campaign.set(n),this.loading.set(!1)})}updateCampaign(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._updateCampaign(e,n));this.campaign.set(i),this.loading.set(!1),this.store.dispatch(new y(`Successfully updated ${n.name}`))})}filterContacts(e,n,i){return d(this,null,function*(){this.loading.set(!0),this.contactFilter.set(n);let c=yield p(this._getContacts(e,n,i));this.contactResult.set(c),this.loading.set(!1)})}addContacts(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._addContacts(e,n)),this.loading.set(!1),this.store.dispatch(new y("Contacts have been added to campaign")),setTimeout(()=>{this.router.navigateByUrl(`/promotions/campaigns/${e}/contacts`)},1e3)})}filterBatches(e,n,i){return d(this,null,function*(){this.loading.set(!0),this.batchFilter.set(n);let c=yield p(this._filterBatches(e,n,i));this.batchData.set(c),this.loading.set(!1)})}getBatch(e,n){return d(this,null,function*(){let i=yield p(this._getBatch(e,n));this.batch.set(i)})}updateBatch(e,n,i){return d(this,null,function*(){let c=yield p(this._updateBatch(e,n,i));this.batch.set(c);let M=[...this.batchData()?.batches],N=M.findIndex(de=>de.id===n);N>-1&&(M[N]=Z(C({},c),{contactCount:0})),this.batchData.set(Z(C({},this.batchData()),{batches:M})),this.store.dispatch(new y("Updated batch successfully"))})}removeBatch(e,n){return d(this,null,function*(){yield p(this._removeBatch(e,n)),this.batch.set(void 0),this.batchData.set(Z(C({},this.batchData()),{batches:this.batchData()?.batches.filter(i=>i.id!==n),totalCount:this.batchData()?.totalCount-1})),this.store.dispatch(new y("Successfully removed batch"))})}addBatch(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._addBatch(e,n));this.batchData.set(Z(C({},this.batchData()),{batches:[i,...this.batchData()?.batches],totalCount:this.batchData()?.totalCount+1})),this.loading.set(!1),this.store.dispatch(new y("Successfully added batch"))})}getRules(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._getRules(e));this.rules.set(n),this.loading.set(!1)})}addRule(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._addRule(e,n));this.rules.set([i,...this.rules()]),this.loading.set(!1)})}getRule(e,n){return d(this,null,function*(){let i=yield p(this._getRule(e,n));this.rule.set(i)})}removeRule(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._removeRule(e,n)),this.rule.set(void 0),this.rules.set([...this.rules()?.filter(i=>i.id!==n)]),this.loading.set(!1),this.store.dispatch(new y("Successfully removed rule"))})}_getCampaign(e){return this.http.get(`${this.baseUrl}/${e}`)}
3_updateCampaign(e,n){return this.http.patch(`${this.baseUrl}/${e}`,n)}_getContacts(e,n,i){return this.http.post(`${this.baseUrl}/${e}/contacts/filter?page=${i}`,n)}_addContacts(e,n){return this.http.post(`${this.baseUrl}/${e}/contacts`,n)}_filterBatches(e,n,i){return this.http.post(`${this.baseUrl}/${e}/batches/filter?page=${i}`,n)}_getBatch(e,n){return this.http.get(`${this.baseUrl}/${e}/batches/${n}`)}_updateBatch(e,n,i){return this.http.patch(`${this.baseUrl}/${e}/batches/${n}`,i)}_removeBatch(e,n){return this.http.delete(`${this.baseUrl}/${e}/batches/${n}`)}_addBatch(e,n){return this.http.post(`${this.baseUrl}/${e}/batches`,n)}_getRules(e){return this.http.get(`${this.baseUrl}/${e}/rules`)}_addRule(e,n){return this.http.post(`${this.baseUrl}/${e}/rules`,n)}_getRule(e,n){return this.http.get(`${this.baseUrl}/${e}/rules/${n}`)}_removeRule(e,n){return this.http.delete(`${this.baseUrl}/${e}/rules/${n}`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var aa=J(ee());var Sn=(()=>{class t{intercept(e,n){return e=e.clone({setHeaders:{"Content-type":"application/json",Authorization:`Bearer ${localStorage.getItem("chatavise_jwt")}`}}),n.handle(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var xn=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.paramMap.get("campaignId"));this.service.getCampaign(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Tn=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId"));this.service.getCampaign(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Pn=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId"));this.service.filterContacts(n,{locationIds:[],query:"",contactTagIds:[],campaignIds:[],campaignIdsToExclude:[],from:new Date,to:new Date,allTime:!0,keywordIds:[]},1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var kn=(()=>{class t{constructor(){this.service=r(j)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId"));this.service.loadContacts({locationIds:[],query:"",contactTagIds:[],campaignIds:[],campaignIdsToExclude:[n],from:new Date,to:new Date,allTime:!0,keywordIds:[]},1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Dn=J(ee());var In=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId"));this.service.filterBatches(n,{from:(0,Dn.default)().subtract(30,"day").toDate(),to:new Date,showAllTime:!0,status:"all"},1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var En=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.parent.paramMap.get("campaignId")),i=Number.parseInt(e.paramMap.get("batchId"));this.service.getBatch(n,i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Rn=J(ee()),qn=J(Zn());Rn.default.extend(qn.default);var ua=J(ee());var Nn=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId"));this.service.getRules(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Bn=(()=>{class t{constructor(){this.service=r(v)}resolve(e){let n=Number.parseInt(e.parent.parent.paramMap.get("campaignId")),i=Number.parseInt(e.paramMap.get("ruleId"));this.service.getRule(n,i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Ln=(()=>{class t{constructor(){this.dealsService=r(oe)}resolve(){this.dealsService.getDeals()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var An=J(ee());var Ce=(()=>{class t{constructor(){this.http=r(F),this.baseUrl=`${R.baseUrl}/promotions/contacts`,this.contactResult=u({contacts:[],page:0,perPage:10,next:0,totalCount:0}),this.contactFilter=u({query:"",contactTagIds:[],locationIds:[],campaignIds:[],campaignIdsToExclude:[],from:(0,An.default)().add(7,"day").toDate(),to:new Date,allTime:!0,keywordIds:[]}),this.loading=u(!1)}filterContacts(e,n){return d(this,null,function*(){this.loading.set(!0),this.contactFilter.set(e);let i=yield p(this._getContacts(e,n));this.contactResult.set(i),this.loading.set(!1)})}_getContacts(e,n){return this.http.post(`${this.baseUrl}/filter?page=${n}`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var $n=J(ee());var jn=(()=>{class t{constructor(){this.service=r(Ce)}resolve(){this.service.filterContacts({locationIds:[],query:"",contactTagIds:[],campaignIds:[],campaignIdsToExclude:[],from:(0,$n.default)().add(-7,"day").toDate(),to:new Date,allTime:!0,keywordIds:[]},1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Vn=(()=>{class t{constructor(){this.service=r(W)}resolve(e){let n=Number.parseInt(e.paramMap.get("linkId"));this.service.getFormLink(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Un=(()=>{class t{constructor(){this.service=r(Y)}resolve(e){let n=Number.parseInt(e.paramMap.get("keywordId"));this.service.getKeyword(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var le=(()=>{class t{constructor(){this.http=r(F),this.baseUrl=`${R.baseUrl}/promotions/campaigns/batches`,this.batches=u([]),this.loading=u(!1)}getBatches(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._getBatches(e));this.batches.set(n),this.loading.set(!1)})}addBatch(e){return d(this,null,function*(){this.loading.set(!0);let n=yield p(this._addBatch(e));this.batches.set([n,...this.batches()]),this.loading.set(!1)})}_getBatches(e){return this.http.post(`${this.baseUrl}/filter`,e)}_addBatch(e){return this.http.post(`${this.baseUrl}`,e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Hn=(()=>{class t{constructor(){this.service=r(le)}resolve(){this.service.getBatches({campaignIds:[],from:new Date,to:new Date,status:"all",showAllTime:!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();
3var Ca=J(ee());var va=J(ee());var T=(()=>{class t{constructor(){this.http=r(F),this.store=r(B),this.router=r(ie),this.service=r(Q),this.baseUrl=`${R.baseUrl}/promotions/sequences`,this.loading=u(!1),this.sequence=u(void 0),this.keywords=u([]),this.formLinks=u([]),this.lists=u([]),this.steps=u([]),this.nextStep=vt(()=>this.steps()?.length===0?1:this.steps()[this.steps().length-1].position+1),this.contactResult=u({contacts:[],next:0,perPage:0,totalCount:0,page:0}),this.contactLoading=u(!1)}getSequence(e){return d(this,null,function*(){this.loading.set(!0),this.sequence.set(void 0);let n=yield p(this._getSequence(e)),i=yield p(this._getMessages(e));this.sequence.set(n),this.steps.set(i),this.loading.set(!1)})}addSequenceStep(e,n,i){return d(this,null,function*(){this.loading.set(!0);try{let c=yield p(this._addMessage(e,n,i)),M=this.steps(),N=M.findIndex(de=>de.position===n);N>-1?(M[N]=C({},c),this.steps.set(M)):this.steps.set([...M,c]),this.loading.set(!1),this.store.dispatch(new y(`Successfully added step ${c.position}.`))}catch(c){console.log(c)}})}updateSequenceStep(e,n,i){return d(this,null,function*(){this.loading.set(!0);try{let c=yield p(this._updateStep(e,n,i)),M=this.steps(),N=M.findIndex(de=>de.position===n);N>-1?(M[N]=C({},c),this.steps.set(M)):this.steps.set([...M,c]),this.loading.set(!1),this.store.dispatch(new y(`Successfully updated step ${c.position}.`))}catch(c){console.log(c)}})}updateSequence(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._updateSequence(e,n)),this.sequence.set(Z(C({},this.sequence()),{name:n.name})),this.loading.set(!1),this.store.dispatch(new y("Sequence was updated successfully"))})}removeSequenceMessage(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._removeSequenceMessage(e,n));this.steps.set(i),this.loading.set(!1),this.store.dispatch(new y(`Successfully removed step ${n}`))})}getKeywords(e){return d(this,null,function*(){let n=yield p(this._keywords(e));this.keywords.set(n)})}addKeyword(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._addKeyword(e,n.id)),this.keywords.set([...this.keywords(),n]),this.loading.set(!1),this.store.dispatch(new y(`Added ${n.word} to sequence`))})}removeKeyword(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._removeKeyword(e,n.id)),this.keywords.set([...this.keywords().filter(i=>i.id!==n.id)]),this.loading.set(!1),this.store.dispatch(new y(`Removed ${n.word} from sequence`))})}getFormLinks(e){return d(this,null,function*(){let n=yield p(this._formLinks(e));this.formLinks.set(n)})}addFormLinks(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._addFormLink(e,n.id)),this.formLinks.set([...this.formLinks(),n]),this.loading.set(!1),this.store.dispatch(new y(`Added ${n.name} to sequence`))})}removeFormLink(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._removeKeyword(e,n.id)),this.formLinks.set([...this.formLinks().filter(i=>i.id!==n.id)]),this.loading.set(!1),this.store.dispatch(new y(`Removed ${n.name} from sequence`))})}getLists(e){return d(this,null,function*(){let n=yield p(this._lists(e));this.lists.set(n)})}addLists(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._addList(e,n.id)),this.lists.set([...this.lists(),n]),this.loading.set(!1),this.store.dispatch(new y(`Added ${n.name} to sequence`))})}removeList(e,n){return d(this,null,function*(){this.loading.set(!0),yield p(this._removeKeyword(e,n.id)),this.lists.set([...this.lists().filter(i=>i.id!==n.id)]),this.loading.set(!1),this.store.dispatch(new y(`Removed ${n.name} from sequence`))})}clone(e,n){return d(this,null,function*(){this.loading.set(!0);let i=yield p(this._clone(e,n));this.loading.set(!1),this.service.sequences.set([...this.service.sequences(),{stepCount:i.steps.length,name:i.name,id:i.id,active:i.active,duration:0}]),this.store.dispatch(new y(`Cloned sequence ${i.name}`)),setTimeout(()=>{this.router.navigateByUrl(`/promotions/sequences/${i.id}`)},600)})}filterContacts(e,n,i){return d(this,null,function*(){this.contactLoading.set(!0);let c=yield p(this._getContacts(e,n,i));this.contactResult.set(c),this.contactLoading.set(!1)})}_getSequence(e){return this.http.get(`${this.baseUrl}/${e}`)}_getMessages(e){return this.http.get(`${this.baseUrl}/${e}/steps`)}_addMessage(e,n,i){return this.http.post(`${this.baseUrl}/${e}/steps/${n}`,i)}_updateStep(e,n,i){return this.http.put(`${this.baseUrl}/${e}/steps/${n}`,i)}_updateSequence(e,n){return this.http.patch(`${this.baseUrl}/${e}`,n)}_removeSequenceMessage(e,n){return this.http.delete(`${this.baseUrl}/${e}/steps/${n}`)}_keywords(e){return this.http.get(`${this.baseUrl}/${e}/keywords`)}_addKeyword(e,n){return this.http.post(`${this.baseUrl}/${e}/keywords/${n}`,null)}_removeKeyword(e,n){return this.http.delete(`${this.baseUrl}/${e}/keywords/${n}`)}_formLinks(e){return this.http.get(`${this.baseUrl}/${e}/forms`)}_addFormLink(e,n){return this.http.post(`${this.baseUrl}/${e}/forms/${n}`,null)}_removeFormLink(e,n){return this.http.delete(`${this.baseUrl}/${e}/forms/${n}`)}_lists(e){return this.http.get(`${this.baseUrl}/${e}/lists`)}_addList(e,n){return this.http.post(`${this.baseUrl}/${e}/lists/${n}`,null)}_removeList(e,n){return this.http.delete(`${this.baseUrl}/${e}/lists/${n}`)}_getContacts(e,n,i){return this.http.post(`${this.baseUrl}/${n}/contacts/filter?page=${i}`,e)}_clone(e,n){return this.http.post(`${this.baseUrl}/${e}/clone`,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Kn=(()=>{class t{constructor(){this.service=r(Q)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("campaignId")),i=Number.parseInt(e.parent.paramMap.get("sequenceId"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Gn=(()=>{class t{constructor(){this.service=r(T)}resolve(e){let n=Number.parseInt(e.paramMap.get("sequenceId"));this.service.getSequence(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var zn=(()=>{class t{constructor(){this.service=r(T)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("sequenceId"));this.service.getKeywords(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Qn=(()=>{class t{constructor(){this.service=r(T)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("sequenceId"));this.service.getFormLinks(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Wn=(()=>{class t{constructor(){this.service=r(T)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("sequenceId"));this.service.getLists(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var Yn=(()=>{class t{constructor(){this.service=r(T)}resolve(e){let n=Number.parseInt(e.parent.paramMap.get("sequenceId"));this.service.filterContacts({query:"",contactTagIds:[],campaignIds:[],locationIds:[],campaignIdsToExclude:[],from:new Date,to:new Date,keywordIds:[],allTime:!0},n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();var wg=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ut({providers:[{multi:!0,provide:yt,useClass:Sn},v,xn,Tn,Pn,j,kn,In,En,Nn,Bn,oe,Ln,Ce,jn,Vn,Un,le,Hn,Kn,Gn,X,zn,Qn,Wn,Yn,at,T,Y,W,it,nt],imports:[bt,kt.forChild(yn),Xt,$t,St,Gt,Ht,Ft,Rt,wt,Ut,Lt,Dt,Vt,It,xt,Et,Ot,Wt,Zt,nn,Nt,jt,Mt,tn,Qt,on,Bt,At,zt,Yt]})}}return t})();export{wg as PromotionsModule};
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.