PageSourceSearch

https://portal.privacypillar.com/src_app_privacy_consent-solutions…ent-solutions_module_ts.bcc5215916e03e8b.js

js privacypillar.com collected 2026-09-24 09:08:13 UTC 379,726 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_privacy_consent-solutions_consent-solutions_module_ts"],{73566:(z,E,c)=>{c.d(E,{_:()=>C});var l=c(92340),b=c(27221),v=c(28597),u=c(61737),I=c(85740),L=c(94650),U=c(80529),p=c(46262);let C=(()=>{const A=class{constructor(e,m){this.http=e,this.lokiService=m,this.applicationPath=location.pathname}SaveSystemIntegration(e,m,d,_){const f=`/integration/connection/${d}`;return this.http.post(l.N.apiUrl+f,_).pipe((0,b.K)(Z=>(this.onSendLogs(v.o.INFO,Z,v.X.getWorkflow,e,m,f),(0,u._)(Z))))}UpdateSystemIntegration(e,m,d,_,f){const Z=`/integration/connection/${d}/${_}`;return this.http.put(l.N.apiUrl+Z,f).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}TestSystemIntegration(e,m,d,_,f){const Z="/integration/live-check-connection-status";return this.http.post(l.N.apiUrl+Z,_,{params:f}).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}deleteConnection(e,m,d){const _="/integration/connection/"+d;return this.http.delete(l.N.apiUrl+_).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,m,_),(0,u._)(f))))}SaveConnectionIntegration(e,m,d){const _="/integration/connection";return this.http.post(l.N.apiUrl+_,d).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,m,_),(0,u._)(f))))}GetSystemList(e,m){const d=I.R.SYSTEM_INTEGRATION_LIST;return this.http.get(l.N.apiUrl+d).pipe((0,b.K)(_=>(this.onSendLogs(v.o.INFO,_,v.X.getWorkflow,e,m,d),(0,u._)(_))))}GetCredListByCompany(e,m,d){const _=I.R.CONNECTION_INTEGRATION_LIST;return this.http.get(l.N.apiUrl+_,{params:d}).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,m,_),(0,u._)(f))))}GetConfiguredConsentPreference(e,m,d){const _="/portal-consent/get-integration-consent-preference/"+d;return this.http.get(l.N.apiUrl+_).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,m,_),(0,u._)(f))))}GetConnectionID(e,m,d,_){const f=I.R.GET_CONNECTION_IDS+"/"+d+"/"+_;return this.http.get(l.N.apiUrl+f).pipe((0,b.K)(Z=>(this.onSendLogs(v.o.INFO,Z,v.X.getWorkflow,e,m,f),(0,u._)(Z))))}GetCredListBySystem(e,m){const d=I.R.CONNECTION_INTEGRATION_LIST;return this.http.get(l.N.apiUrl+d).pipe((0,b.K)(_=>(this.onSendLogs(v.o.INFO,_,v.X.getWorkflow,e,m,d),(0,u._)(_))))}GetSqlTables(e,m,d){const _=I.R.SQL_TABLES_LIST+"/"+m;return this.http.get(l.N.apiUrl+_).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,d,_),(0,u._)(f))))}GetSqlTableColumns(e,m,d,_){const f=I.R.SQL_TABLE_COLUMNS_LIST+"/"+m;return this.http.get(l.N.apiUrl+f,{params:d}).pipe((0,b.K)(Z=>(this.onSendLogs(v.o.INFO,Z,v.X.getWorkflow,e,_,f),(0,u._)(Z))))}GetCredList(e,m){const d=I.R.SYSTEM_INTEGRATION_LIST;return this.http.get(l.N.apiUrl+d).pipe((0,b.K)(_=>(this.onSendLogs(v.o.INFO,_,v.X.getWorkflow,e,m,d),(0,u._)(_))))}GetConnectionListBySystemID(e,m,d){const _=`/integration/connection/${d}`;return this.http.get(l.N.apiUrl+_).pipe((0,b.K)(f=>(this.onSendLogs(v.o.INFO,f,v.X.getWorkflow,e,m,_),(0,u._)(f))))}onSendLogs(e,m,d,_,f,Z){this.lokiService.onSendErrorLogs(e,m,d,_,f,Z).subscribe()}saveQueryBuilder(e,m,d,_,f,Z){const S="/integration/save-query-builder/"+_+"/"+f+"/"+Z;return this.http.post(l.N.apiUrl+S,d).pipe((0,b.K)(N=>(this.onSendLogs(v.o.INFO,N,v.X.getWorkflow,e,m,S),(0,u._)(N))))}updateQueryBuilder(e,m,d,_,f,Z){const S="/integration/update-query-builder/"+_+"/"+f+"/"+Z;return this.http.post(l.N.apiUrl+S,d).pipe((0,b.K)(N=>(this.onSendLogs(v.o.INFO,N,v.X.getWorkflow,e,m,S),(0,u._)(N))))}GetIntegratedConnectionsList(e,m,d,_){const f="/integration/get-connection-list-with-query-data/"+e+"/"+m;return this.http.get(l.N.apiUrl+f).pipe((0,b.K)(Z=>(this.onSendLogs(v.o.INFO,Z,v.X.getWorkflow,d,_,f),(0,u._)(Z))))}GetQueryBuilderData(e,m,d,_,f){const Z="/integration/get-query-builder-by-id/"+d+"/"+_+"/"+f;return this.http.get(l.N.apiUrl+Z).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}GetsalesforceColumn(e,m,d,_,f){const Z="/integration/field-objects";return this.http.post(l.N.apiUrl+Z,d,{params:{system:_,object:f}}).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}GetacceloColumn(e,m,d,_){const f="/integration/field-objects";return this.http.post(l.N.apiUrl+f,d,{params:{system:_}}
1).pipe((0,b.K)(Z=>(this.onSendLogs(v.o.INFO,Z,v.X.getWorkflow,e,m,f),(0,u._)(Z))))}Getconsentdetailsschema(e,m){const d="/consent-details-schema";return this.http.get(l.N.apiUrl+d).pipe((0,b.K)(_=>(this.onSendLogs(v.o.INFO,_,v.X.getWorkflow,e,m,d),(0,u._)(_))))}SaveConsentPreferenceConnection(e,m,d,_,f){const Z="/portal-consent/create-integration-consent-preference/"+_+"/"+f;return this.http.post(l.N.apiUrl+Z,d).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}SaveConsentSystemMap(e,m,d,_,f,Z){const S="/portal-consent/create-consent-preference-system-map/"+_+"/"+f+"/"+Z;return this.http.post(l.N.apiUrl+S,d).pipe((0,b.K)(N=>(this.onSendLogs(v.o.INFO,N,v.X.getWorkflow,e,m,S),(0,u._)(N))))}DeleteConsentPreferenceConnection(e,m,d,_,f){const Z="/portal-consent/remove-integration-consent-preference/"+_+"/"+f;return this.http.delete(l.N.apiUrl+Z,{params:{connectionID:d}}).pipe((0,b.K)(S=>(this.onSendLogs(v.o.INFO,S,v.X.getWorkflow,e,m,Z),(0,u._)(S))))}};let x=A;return A.\u0275fac=function(m){return new(m||A)(L.LFG(U.eN),L.LFG(p.L))},A.\u0275prov=L.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),x})()},17375:(z,E,c)=>{c.d(E,{a:()=>C});var l=c(80529),b=c(61737),v=c(27221),u=c(24850),I=c(92340),L=c(85740),U=c(94650),p=c(46262);let C=(()=>{const A=class{constructor(e,m){this.http=e,this.loki=m,this.purposeBasepath="/consent-management/consent-purpose/",this.preferencesBasepath="/consent-management/consent-communication-preference/"}getConsentPurposes(e){return this.http.get(`${I.N.apiUrlV2}${this.purposeBasepath}${e}`).pipe((0,v.K)(m=>(0,b._)(m)))}getPreferences(e){return this.http.get(`${I.N.apiUrlV2}${this.preferencesBasepath}${e}`).pipe((0,v.K)(m=>(0,b._)(m)))}getDataAttibutes(){return this.http.get(`${I.N.keyStoneUrl}/defaults/data-attributes`).pipe((0,u.U)(e=>e.map(m=>({id:m.id,name:m.name,translation_key:m.translation_key}))),(0,v.K)(e=>(0,b._)(e)))}saveConfig(e,m,d,_){let f=new l.LE;return f=f.set("publishType",_),this.http.post(`${I.N.apiUrlV2}/consent-preference/banner-configuration/${e}/${m}`,d,{params:f}).pipe((0,v.K)(Z=>(0,b._)(Z)))}publishConfig(e,m,d,_){let f=new l.LE;return f=f.set("publishType",_),this.http.post(`${I.N.apiUrlV2}/consent-preference/banner-configuration/${e}/${m}`,d,{params:f}).pipe((0,v.K)(Z=>(0,b._)(Z)))}getConfig(e,m){return this.http.get(`${I.N.apiUrlV2}/consent-preference/banner-configuration/${e}/${m}`).pipe((0,v.K)(d=>(0,b._)(d)))}getPropertyPlanDetails(e){return this.http.get(I.N.apiUrl+L.R.PROPERTY_PLAN,{params:{pID:e}}).pipe((0,u.U)(d=>d),(0,v.K)(d=>(0,b._)(d)))}getJurisdictionList(e){return this.http.get(`${I.N.apiUrlV2}/consent-management/get-jurisdiction/${e}`).pipe((0,v.K)(m=>(0,b._)(m)))}};let x=A;return A.\u0275fac=function(m){return new(m||A)(U.LFG(l.eN),U.LFG(p.L))},A.\u0275prov=U.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),x})()},60554:(z,E,c)=>{c.r(E),c.d(E,{ConsentSolutionsModule:()=>il});var l=c(36895),b=c(51692),v=c(15861),u=c(3940),I=c(8929),L=c(80013),U=c(75778),p=c(24006),C=c(68078),x=c(12553),A=c(12225),q=c(92340),e=c(94650),m=c(64491),d=c(45887),_=c(37407),f=c(20388),Z=c(11481),S=c(59922),N=c(96923),w=c(42111),M=c(82778),h=c(22096),T=c(73747),k=c(32320),F=c(4358),we=c(99856),R=c(2854);const Ue=["dt"],qe=["template"];function ke(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"span",42),e.NdJ("click",function(){e.CHM(t),e.oxw();const o=e.MAs(27);return e.KtG(o.show())}),e._UZ(1,"i",43),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngClass",""!==t.searchbydaterange?"fa-times color-red":"fa-search")}}function Se(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"span",44),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clearDatePicker())}),e._UZ(1,"i",45),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngClass",""!==t.searchbydaterange?"fa-times color-red":"fa-caret-down")}}function Pe(n,r){1&n&&(e.TgZ(0,"tr",46)(1,"th"),e._uU(2,"ID"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Owner ID"),e.qZA(),e.TgZ(5,"th",47),e._uU(6,"First Name "),e._UZ(7,"p-sortIcon",48),e.qZA(),e.TgZ(8,"th",49),e._uU(9,"Last Name "),e._UZ(10,"p-sortIcon",50),e.qZA(),e.TgZ(11,"th",51),e._uU(12,"Email "),e._UZ(13,"p-sortIcon",52),e.qZA(),e.TgZ(14,"th",53),e._uU(15,"Phone No"),e.qZA(),e.TgZ(16,"th"),e._uU(17,"Aadhaar"),e.qZA(),e.TgZ(18,"th",54),e._uU(19,"Country "),e._UZ(20,"p-sortIcon",55),e.qZA(),e.TgZ(21,"th",56),e._uU(22,"Data Source "),e._UZ(23,"p-sortIcon",57),e.qZA(),e.TgZ(24,"th"),e._uU(25,"IP Address"),e.qZA(),e.TgZ(26,"th"),e._uU(27,"Verified"),e.qZA(),e.TgZ(28,"th",58),e._uU(29,"Created Date "),e._UZ(30,"p-sortIcon",59),e.qZA()())}function Ie(n,r){1&n&&(e.ynx(0),e._UZ(1,"i",66),e.BQk())}function Ne(n,r){1&n&&e._UZ(0,"i",67)}function Me(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",60)(2,"a",61),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();
1return e.KtG(a.onNavigateToDetails(s))}),e._uU(3),e.qZA()(),e.TgZ(4,"td",60),e._uU(5),e.qZA(),e.TgZ(6,"td",60),e._uU(7),e.qZA(),e.TgZ(8,"td",60),e._uU(9),e.qZA(),e.TgZ(10,"td",62),e._uU(11),e.qZA(),e.TgZ(12,"td",63),e._uU(13),e.qZA(),e.TgZ(14,"td",60),e._uU(15),e.qZA(),e.TgZ(16,"td",60),e._uU(17),e.qZA(),e.TgZ(18,"td",60),e._uU(19),e.qZA(),e.TgZ(20,"td",60),e._uU(21),e.qZA(),e.TgZ(22,"td",60),e.YNc(23,Ie,2,0,"ng-container",64),e.YNc(24,Ne,1,0,"ng-template",null,65,e.W1O),e.qZA(),e.TgZ(26,"td",60),e._uU(27),e.ALo(28,"date"),e.qZA()()}if(2&n){const t=r.$implicit,i=e.MAs(25),o=e.oxw();e.xp6(3),e.Oqu(t.id),e.xp6(2),e.Oqu(t.owner_id),e.xp6(2),e.Oqu(t.first_name),e.xp6(2),e.Oqu(t.last_name),e.xp6(2),e.Oqu(t.email),e.xp6(2),e.Oqu(t.phone_no),e.xp6(2),e.Oqu(t.aadhaar?o.getMaskedAadhaar(t.aadhaar):""),e.xp6(2),e.Oqu(t.country),e.xp6(2),e.Oqu(t.data_source),e.xp6(2),e.Oqu(t.ip_address),e.xp6(2),e.Q6J("ngIf",t.verified)("ngIfElse",i),e.xp6(4),e.Oqu(e.lcZ(28,13,t.created_at))}}function De(n,r){1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2," No records found "),e.qZA()()),2&n&&(e.xp6(1),e.uIk("colspan",12))}function Fe(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Email is required"),e.qZA())}function Oe(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Please enter a valid email"),e.qZA())}function Le(n,r){if(1&n&&(e.TgZ(0,"div",125),e.YNc(1,Fe,2,0,"div",126),e.YNc(2,Oe,2,0,"div",126),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.email.errors.required),e.xp6(1),e.Q6J("ngIf",t.f.email.errors.pattern)}}function Je(n,r){1&n&&(e.TgZ(0,"div",127)(1,"div",128),e._uU(2,"Enter valid phone number"),e.qZA()())}const K=function(n){return{"is-invalid":n}};function Be(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",129)(1,"label",130),e._uU(2,"Preference Name"),e.qZA(),e.TgZ(3,"td",131),e._UZ(4,"input",132),e.qZA(),e.TgZ(5,"label",130),e._uU(6,"Allowed"),e.qZA(),e.TgZ(7,"td",131),e._UZ(8,"input",133),e.qZA(),e.TgZ(9,"td",112)(10,"button",134),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(3);return e.KtG(a.deletePref(s))}),e._UZ(11,"i",135),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(3);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","preference",i,""),e.Q6J("ngClass",e.VKq(4,K,o.submitted&&t.get("preference").errors)),e.xp6(4),e.MGl("id","allow",i,"")}}function Qe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",136),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewPref())}),e._uU(1,"Add Preference"),e._UZ(2,"i",137),e.qZA()}}function Ee(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",138),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewPref())}),e._UZ(1,"i",139),e.qZA()}}function Ye(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",129)(1,"label",130),e._uU(2,"Content"),e.qZA(),e.TgZ(3,"td",131),e._UZ(4,"textarea",140),e.qZA(),e.TgZ(5,"label",130),e._uU(6,"Form"),e.qZA(),e.TgZ(7,"td",131),e._UZ(8,"textarea",141),e.qZA(),e.TgZ(9,"td",112)(10,"button",142),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(3);return e.KtG(a.deleteRow(s))}),e._UZ(11,"i",135),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(3);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","content",i,""),e.Q6J("ngClass",e.VKq(5,K,o.submitted&&t.get("content").errors)),e.xp6(4),e.MGl("id","form",i,""),e.Q6J("ngClass",e.VKq(7,K,o.submitted&&t.get("form").errors))}}function He(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",136),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewRow())}),e._uU(1,"Add Proof"),e._UZ(2,"i",137),e.qZA()}}function Ge(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",143),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewRow())}),e._UZ(1,"i",139),e.qZA()}}function Re(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",129)(1,"label",130),e._uU(2,"Identifier"),e.qZA(),e.TgZ(3,"td",131),e._UZ(4,"textarea",144),e.qZA(),e.TgZ(5,"label",130),e._uU(6,"Version"),e.qZA(),e.TgZ(7,"td",131),e._UZ(8,"input",145),e.qZA(),e.TgZ(9,"label",130),e._uU(10,"Content"),e.qZA(),e.TgZ(11,"td",131),e._UZ(12,"textarea",140),e.qZA(),e.TgZ(13,"td",112)(14,"button",146),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(3);return e.KtG(a.deleteLegalRow(s))}),e._UZ(15,"i",135),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(3);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","identifier",i,""),e.Q6J("ngClass",e.VKq(6,K,o.submitted&&t.get("identifier").errors)),e.xp6(4),e.MGl("id","version",i,""),e.xp6(4),e.MGl("id","content",i,""),e.Q6J("ngClass",e.VKq(8,K,o.submitted&&t.get("content").errors))}}function Ke(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",136),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewLegalRow())}),e._uU(1,"Add LegalNotice"),e._UZ(2,"i",137),e.qZA()}}function Ve(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",147),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewLegalRow())}),e._UZ(1,"i",139),e.qZA()}}function je(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",129)(1,"label",130),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"td",131),e._UZ(4,"input",148),e.qZA(),e.TgZ(5,"label",130),e._uU(6,"Value"),e.qZA(),e.TgZ(7,"td",131),e._UZ(8,"input",149),e.qZA(),e.TgZ(9,"td",112)(10,"button",150),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(3);return e.KtG(a.deleteaddData(s))}),e._UZ(11,"i",135),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(3);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","mvl",i,""),e.Q6J("ngClass",e.VKq(5,K,o.submitted&&t.get("mvl").errors)),e.xp6(4),e.MGl("id","sec",i,""),e.Q6J("ngClass",e.VKq(7,K,o.submitted&&t.get("sec").errors))}}function ze(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",136),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewaddDataRow())}),e._uU(1,"Add Additional Data"),e._UZ(2,"i",137),e.qZA()}}function $e(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",151),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNewaddDataRow())}),e._UZ(1,"i",139),e.qZA()}}const We=function(n){return{"is-invalid-intphone-textbox":n}};function Xe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",74),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAddconsentRecord())}),e.TgZ(1,"div",75)(2,"div",76)(3,"label"),e._uU(4,"First Name "),e.qZA(),e.TgZ(5,"div",77),e._UZ(6,"input",78),e.qZA()(),e.TgZ(7,"div",76)(8,"label"),e._uU(9,"Last Name "),e.qZA(),e.TgZ(10,"div",77),e._UZ(11,"input",79),e.qZA()()(),e.TgZ(12,"div",75)(13,"div",76)(14,"label"),e._uU(15,"Email"),e._UZ(16,"i",80),e.qZA(),e.TgZ(17,"div",77),e._UZ(18,"input",81),e.qZA(),e.YNc(19,Le,3,2,"div",82),e.qZA(),e.TgZ(20,"div",76)(21,"label"),e._uU(22,"Authentication ID "),e.qZA(),e.TgZ(23,"div",77),e._UZ(24,"input",83),e.qZA()()(),e.TgZ(25,"div",84)(26,"label"),e._uU(27,"Data Source "),e.qZA(),e.TgZ(28,"div",85)(29,"div",86),e._UZ(30,"input",87),e.TgZ(31,"label",88),e._uU(32,"Private"),e.qZA()(),e.TgZ(33,"div",86),e._UZ(34,"input",89),e.TgZ(35,"label",90),e._uU(36,"Public"),e.qZA()()()(),e.TgZ(37,"div",91)(38,"div",76)(39,"label"),e._uU(40,"Country "),e.qZA(),e.TgZ(41,"div",77),e._UZ(42,"input",92),e.qZA()(),e.TgZ(43,"div",76)(44,"label"),e._uU(45,"Owner ID "),e.qZA(),e.TgZ(46,"div",77),e._UZ(47,"input",93),e.qZA()()(),e.TgZ(48,"div",94)(49,"div",95)(50,"label"),e._uU(51,"IP Address "),e.qZA(),e.TgZ(52,"div",77),e._UZ(53,"input",96),e.qZA()(),e.TgZ(54,"div",97)(55,"label",98),e._uU(56,"Verified "),e.qZA(),e.TgZ(57,"div",77),e._UZ(58,"input",99),e.qZA()(),e.TgZ(59,"div",97)(60,"label",98),e._uU(61,"MaskIP"),e.qZA(),e.TgZ(62,"div",77),e._UZ(63,"input",100),e.qZA()()(),e.TgZ(64,"div",75)(65,"div",76)(66,"div",101)(67,"label",102),e._uU(68,"Phone"),e.qZA(),e._UZ(69,"ngx-intl-tel-input",103),e.qZA(),e.YNc(70,Je,3,0,"div",104),e.qZA(),e.TgZ(71,"div",76)(72,"label"),e._uU(73,"Landline number"),e.qZA(),e.TgZ(74,"div",77),e._UZ(75,"input",105),e.qZA()()(),e.TgZ(76,"div",75)(77,"div",76)(78,"label"),e._uU(79,"City"),e.qZA(),e.TgZ(80,"div",77),e._UZ(81,"input",106),e.qZA()(),e.TgZ(82,"div",76)(83,"label"),e._uU(84,"Zip Code"),e.qZA(),e.TgZ(85,"div",77),e._UZ(86,"input",107),e.qZA()()(),e.TgZ(87,"label"),e._uU(88,"Preferences "),e.qZA(),e.TgZ(89,"div",108)(90,"div",109)(91,"table",110)(92,"tbody"),e.YNc(93,Be,12,6,"tr",111),e.qZA(),e.TgZ(94,"tfoot")(95,"tr")(96,"td",112),e.YNc(97,Qe,3,0,"button",113),e.YNc(98,Ee,2,0,"button",114),e.qZA()()()()()(),e._UZ(99,"hr"),e.TgZ(100,"div")(101,"label"),e._uU(102,"Proofs "),e.qZA()(),e.TgZ(103,"div",108)(104,"div",115)(105,"table",110)(106,"tbody"),e.YNc(107,Ye,12,9,"tr",111),e.qZA(),e.TgZ(108,"tfoot")(109,"tr")(110,"td",112),e.YNc(111,He,3,0,"button",113),e.YNc(112,Ge,2,0,"button",116),e.qZA()()()()()(),e._UZ(113,"hr"),e.TgZ(114,"div")(115,"label"),e._uU(116,"Legal Notice "),e.qZA()(),e.TgZ(117,"div",108)(118,"div",117)(119,"table",110)(120,"tbody"),e.YNc(121,Re,16,10,"tr",111),e.qZA(),e.TgZ(122,"tfoot")(123,"tr")(124,"td",112),e.YNc(125,Ke,3,0,"button",113),e.YNc(126,Ve,2,0,"button",118),e.qZA()()()()()(),e._UZ(127,"hr"),e.TgZ(128,"div")(129,"label"),e._uU(130,"Additional Data"),e.qZA()(),e.TgZ(131,"div",108)(132,"div",119)(133,"table",110)(134,"tbody"),e.YNc(135,je,12,9,"tr",111),e.qZA(),e.TgZ(136,"tfoot")(137,"tr")(138,"td",112),e.YNc(139,ze,3,0,"button",113),e.YNc(140,$e,2,0,"button",120),e.qZA()()()()()(),e.TgZ(141,"div",121)(142,"div",122)(143,"button",123),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onCancelClick())}),e._uU(144,"Cancel"),e.qZA(),e.TgZ(145,"button",124),e._uU(146,"Add"),e.qZA()()()()}if(2&n){const t=e.oxw(2);e.Q6J("formGroup",t.AddConsentForm),e.xp6(19),e.Q6J("ngIf",t.AddConsentForm.controls.email.invalid&&(t.AddConsentForm.controls.email.dirty||t.AddConsentForm.controls.email.touched)||t.submitted&&t.f.email.errors),e.xp6(
150),e.Q6J("cssClass","int-phone-custom")("enableAutoCountrySelect",!0)("preferredCountries",t.preferredCountries)("enablePlaceholder",!0)("searchCountryFlag",!0)("selectFirstCountry",!0)("maxLength",15)("phoneValidation",!0)("separateDialCode",!0)("ngClass",e.VKq(25,We,t.AddConsentForm.controls.phoneno.touched&&(null==t.AddConsentForm.controls.phoneno?null:t.AddConsentForm.controls.phoneno.invalid)||(null==t.AddConsentForm.controls.phoneno?null:t.AddConsentForm.controls.phoneno.invalid)&&t.submitted)),e.xp6(1),e.Q6J("ngIf",t.AddConsentForm.controls.phoneno.touched&&(null==t.AddConsentForm.controls.phoneno?null:t.AddConsentForm.controls.phoneno.invalid)||(null==t.AddConsentForm.controls.phoneno?null:t.AddConsentForm.controls.phoneno.invalid)&&t.submitted),e.xp6(23),e.Q6J("ngForOf",t.AddConsentForm.controls.preferences.controls),e.xp6(4),e.Q6J("ngIf",0===t.AddConsentForm.value.preferences.length),e.xp6(1),e.Q6J("ngIf",t.AddConsentForm.value.preferences.length>0),e.xp6(9),e.Q6J("ngForOf",t.AddConsentForm.controls.proofs.controls),e.xp6(4),e.Q6J("ngIf",0===t.AddConsentForm.value.proofs.length),e.xp6(1),e.Q6J("ngIf",t.AddConsentForm.value.proofs.length>0),e.xp6(9),e.Q6J("ngForOf",t.AddConsentForm.controls.legalNotices.controls),e.xp6(4),e.Q6J("ngIf",0===t.AddConsentForm.value.legalNotices.length),e.xp6(1),e.Q6J("ngIf",t.AddConsentForm.value.legalNotices.length>0),e.xp6(9),e.Q6J("ngForOf",t.AddConsentForm.controls.additionalData.controls),e.xp6(4),e.Q6J("ngIf",0===t.AddConsentForm.value.additionalData.length),e.xp6(1),e.Q6J("ngIf",t.AddConsentForm.value.additionalData.length>0)}}function et(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",68)(1,"h4",69),e._uU(2,"Add Consent Details "),e.qZA(),e.TgZ(3,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCancelClick())}),e.TgZ(4,"span",71),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",72),e.YNc(7,Xe,147,27,"form",73),e.qZA()}if(2&n){const t=e.oxw();e.xp6(7),e.Q6J("ngIf",t.AddConsentForm)}}function tt(n,r){1&n&&(e.TgZ(0,"p",166),e._uU(1," Selected file format is not supported. Only .csv, .xlsx, and .xls extension files are supported. "),e.qZA())}function nt(n,r){1&n&&e._UZ(0,"span",167)}function ot(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",152)(1,"div",68)(2,"h4",153),e._uU(3," Import Consent Records "),e.qZA(),e.TgZ(4,"button",154),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.closeBulkUploadModal())}),e.TgZ(5,"span",71),e._uU(6,"\xd7"),e.qZA()()(),e.TgZ(7,"div",155)(8,"div",156),e._uU(9," Note : The selected file must be in specific format "),e.TgZ(10,"a",157),e._uU(11," Click to download sample Consent Preference file "),e.qZA(),e._uU(12," and should be saved as CSV/XLSX/XLS "),e.qZA(),e.TgZ(13,"div",158)(14,"input",159),e.NdJ("change",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.handleBulkUploadFileInput(o.target.files))}),e.qZA(),e.TgZ(15,"label",160),e._uU(16),e.qZA()(),e.YNc(17,tt,2,0,"p",161),e.qZA(),e.TgZ(18,"div",162)(19,"button",163),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.closeBulkUploadModal())}),e._uU(20," Cancel "),e.qZA(),e.TgZ(21,"button",164),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onUploadConsentRecords())}),e.YNc(22,nt,1,0,"span",165),e._uU(23),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(4),e.Q6J("disabled",t.isBulkUploadInProgress),e.xp6(10),e.Q6J("disabled",t.isBulkUploadInProgress),e.xp6(2),e.hij(" ",t.bulkUploadFile?t.bulkUploadFile.name:"Choose a file to upload"," "),e.xp6(1),e.Q6J("ngIf",t.isBulkUploadInvalid),e.xp6(2),e.Q6J("disabled",t.isBulkUploadInProgress),e.xp6(2),e.Q6J("disabled",!t.canUploadConsentRecords),e.xp6(1),e.Q6J("ngIf",t.isBulkUploadInProgress),e.xp6(1),e.hij(" ",t.isBulkUploadInProgress?"Importing...":"Import"," ")}}function it(n,r){1&n&&(e.TgZ(0,"div",182)(1,"div",183)(2,"div",184),e._uU(3,"Generating Consents CSV..."),e.qZA()()())}function rt(n,r){1&n&&(e.TgZ(0,"div",185)(1,"div",183)(2,"div",184),e._uU(3,"Generating Legal Notices CSV..."),e.qZA()()())}function st(n,r){1&n&&(e.TgZ(0,"div",185)(1,"div",183)(2,"div",184),e._uU(3,"Generating Proofs CSV..."),e.qZA()()())}function at(n,r){1&n&&(e.TgZ(0,"div",185)(1,"div",183)(2,"div",184),e._uU(3,"Generating Preferences CSV..."),e.qZA()()())}function lt(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",68)(1,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(2,"span",71),e._uU(3,"\xd7"),e.qZA()()(),e.TgZ(4,"div",168)(
15,"p"),e._uU(6,"Export your consent records as a CSV file "),e.qZA(),e.TgZ(7,"div",169)(8,"div",170)(9,"p",171),e._uU(10,"Date Range - "),e.qZA()(),e.TgZ(11,"div",172)(12,"div",173),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(16);return e.KtG(o.show())}),e.TgZ(13,"span",174),e._UZ(14,"i",43),e.qZA()(),e.TgZ(15,"input",20,21),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.searchbydaterangeExport=o)})("onHidden",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSelectDateRangeForCsv())}),e.qZA(),e.TgZ(17,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(16);return e.KtG(o.show())}),e.TgZ(18,"span",23),e._UZ(19,"i",24),e.qZA()()()(),e.TgZ(20,"div",175),e.YNc(21,it,4,0,"div",176),e.YNc(22,rt,4,0,"div",177),e.YNc(23,st,4,0,"div",178),e.YNc(24,at,4,0,"div",178),e.qZA(),e.TgZ(25,"div",179)(26,"button",180),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.generateConsentCsv())}),e._uU(27,"Export Consent Details "),e.qZA(),e.TgZ(28,"button",180),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.generateLegalNoticesCsv())}),e._uU(29,"Export Legal Notices "),e.qZA(),e.TgZ(30,"button",180),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.generateProofsCsv())}),e._uU(31,"Export Proofs "),e.qZA(),e.TgZ(32,"button",180),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.generatePreferenceCsv())}),e._uU(33,"Export Preferences "),e.qZA()(),e.TgZ(34,"p",181),e._uU(35," * Maximum 6 months data can be downloaded "),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(14),e.Q6J("ngClass",""!==t.searchbydaterangeExport?"fa-caret-down":"fa-search"),e.xp6(1),e.Q6J("ngModel",t.searchbydaterangeExport)("bsConfig",t.bsConfig),e.xp6(6),e.Q6J("ngIf",t.downloadStatus.consents),e.xp6(1),e.Q6J("ngIf",t.downloadStatus.legalNotices),e.xp6(1),e.Q6J("ngIf",t.downloadStatus.Proofs),e.xp6(1),e.Q6J("ngIf",t.downloadStatus.Preference),e.xp6(2),e.Q6J("disabled",t.downloadStatus.consents),e.xp6(2),e.Q6J("disabled",t.downloadStatus.legalNotices),e.xp6(2),e.Q6J("disabled",t.downloadStatus.Proofs),e.xp6(2),e.Q6J("disabled",t.downloadStatus.Preference)}}function ct(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",68)(1,"h4",69),e._uU(2,"Filter the results"),e.qZA(),e.TgZ(3,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCancelClick())}),e.TgZ(4,"span",71),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",72)(7,"div",186)(8,"div",108)(9,"div",76)(10,"div",84)(11,"label"),e._uU(12,"First name "),e.qZA(),e.TgZ(13,"input",187),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.firstnameSearch=o)}),e.qZA()()(),e.TgZ(14,"div",76)(15,"div",84)(16,"label"),e._uU(17,"Last name "),e.qZA(),e.TgZ(18,"input",188),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.lastnameSearch=o)}),e.qZA()()()(),e.TgZ(19,"div",108)(20,"div",76)(21,"div",84)(22,"label"),e._uU(23,"Email"),e.qZA(),e.TgZ(24,"input",189),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.emailSearch=o)}),e.qZA()()(),e.TgZ(25,"div",76)(26,"div",84)(27,"label"),e._uU(28,"IP Address"),e.qZA(),e.TgZ(29,"input",190),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.IpAddressSearch=o)}),e.qZA()()()(),e.TgZ(30,"div",108)(31,"div",191)(32,"label"),e._uU(33,"Source"),e.qZA(),e.TgZ(34,"div",192)(35,"div",86)(36,"input",193),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.sourceSearch=o)}),e.qZA(),e.TgZ(37,"label",194),e._uU(38,"Both"),e.qZA()(),e.TgZ(39,"div",86)(40,"input",195),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.sourceSearch=o)}),e.qZA(),e.TgZ(41,"label",196),e._uU(42,"Private"),e.qZA()(),e.TgZ(43,"div",86)(44,"input",197),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.sourceSearch=o)}),e.qZA(),e.TgZ(45,"label",198),e._uU(46,"Public"),e.qZA()()()(),e.TgZ(47,"div",76)(48,"app-customdropdown",199),e.NdJ("onClickValue",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onClickConsentTableCheckbox(o))}),e.qZA()()(),e.TgZ(49,"div",108)(50,"div",200)(51,"div",201)(52,"button",202),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onResetConsentRecord())}),e._uU(53,"Cancel"),e.qZA(),e.TgZ(54,"button",203),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onClickApplyBtn())}),e._uU(55,"Apply"),e.qZA()()()()()()}if(2&n){const t=e.oxw();
1e.xp6(13),e.Q6J("ngModel",t.firstnameSearch),e.xp6(5),e.Q6J("ngModel",t.lastnameSearch),e.xp6(6),e.Q6J("ngModel",t.emailSearch),e.xp6(5),e.Q6J("ngModel",t.IpAddressSearch),e.xp6(7),e.Q6J("ngModel",t.sourceSearch),e.xp6(4),e.Q6J("ngModel",t.sourceSearch),e.xp6(4),e.Q6J("ngModel",t.sourceSearch),e.xp6(4),e.Q6J("ctrlplaceholder","Country")("listName",t.listnamecountrylist)("isclickondocument",!1)("selectedList",t.selectedcountries)("defaultList",t.defaultcountrylist)("isradiobtnrequiredfordefaultfield",!1)}}function dt(n,r){if(1&n&&(e.TgZ(0,"alert",204),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("type",t.alertType)("dismissible",t.dismissible),e.xp6(1),e.Oqu(t.alertMsg)}}const pt=function(){return[10,20,30]},ut=function(){return["email","country","data_source","ip_address","verified","email"]},gt=function(n){return{hide:n}};let _t=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D,Q,Y,J){this.orgservice=i,this.consentSolutionService=o,this.loading=s,this.router=a,this.formBuilder=g,this.modalService=y,this.activateRoute=B,this.titleService=D,this.dataService=Q,this.location=Y,this.authService=J,this.consentRecordList=[],this.consentRecordCount=0,this.tLoading=!0,this.submitted=!1,this.isOpen=!1,this.dismissible=!0,this.showFilters=!1,this.addData={},this.searchDecouncer$=new I.xQ,this.inputSearch="",this.emailDebouncer$=new I.xQ,this.emailSearch="",this.firstnameDebouncer$=new I.xQ,this.firstnameSearch="",this.lastnameDebouncer$=new I.xQ,this.lastnameSearch="",this.IpAddressDebouncer$=new I.xQ,this.IpAddressSearch="",this.source$=new I.xQ,this.sourceSearch="",this.downloadStatus={consents:!1,legalNotices:!1,Proofs:!1,Preference:!1},this.searchbydaterange="",this.searchbydaterangeExport="",this.date1=new Date("yyyy-mm-dd"),this.ranges=[{value:[new Date,new Date],label:"Today"},{value:[new Date((new Date).setDate((new Date).getDate()-1)),new Date((new Date).setDate((new Date).getDate()-1))],label:"Yesterday"},{value:[new Date((new Date).setDate((new Date).getDate()-7)),new Date],label:"Last 7 Days"},{value:[new Date((new Date).setDate((new Date).getDate()-30)),new Date],label:"Last 30 Days"},{value:[new Date((new Date).setDate((new Date).getMonth())),new Date],label:"This Month"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth()-1,1),new Date((new Date).getFullYear(),(new Date).getMonth(),0)],label:"Last Month"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth()-6,1),new Date((new Date).getFullYear(),(new Date).getMonth(),0)],label:"Last 6 Months"}],this.loadingconsentrecordList=!1,this.defaultcountrylist=[],this.selectedcountries=[],this.listnamecountrylist="countries",this.bkpselectedcountries=[],this.bkpdefaultcountrylist=[],this.sortOrder="desc",this.bulkUploadFile=null,this.isBulkUploadInvalid=!1,this.isBulkUploadInProgress=!1,this.CountryISO=x.HT,this.preferredCountries=[],this.countryList=A.k,this.portal=q.N.portalPrefix,this.dateCustomClasses=[{date:new Date,classes:["theme-dark-blue"]}],this.searchbydaterange=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.searchbydaterangeExport=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.titleService.setTitle("Consent Preference Records - "+q.N.portalPrefix)}ngOnInit(){this.preferredCountries=[x.HT.UnitedStates],this.dataService.isSubscriptionExistForConsent()||this.activateRoute.queryParamMap.subscribe(i=>{let o=i.get("oid"),s=i.get("pid");null!=this.queryOID&&(this.queryOID!=o||this.queryPID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.queryOID=o,this.queryPID=s,this.onGetPropsAndOrgId()}),this.dataService.isSubscriptionExistForConsent()||this.onSetUpDebounce(),this.bsConfig=Object.assign({},{containerClass:"theme-dark-blue",showClearButton:!0,returnFocusToInput:!0,dateInputFormat:"yyyy-mm-dd",adaptivePosition:!0,showTodayButton:!0,ranges:this.ranges}),this.initForm(),this.startDateCsv=this.searchbydaterangeExport[0].toJSON().split("T")[0],this.endDateCsv=this.searchbydaterangeExport[1].toJSON().split("T")[0]}onSetUpDebounce(){this.setupSearchDebouncer(),this.setupEmailDebouncer(),this.setupFirstNameDebouncer(),this.setupLastNameDebouncer(),this.setupIpAddressDebouncer(),this.setupSourceDebouncer()}onGetPropsAndOrgId(){if(null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID)this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID;else{let i=(0,C.Dq)(this.location.path());this.currentManagedOrgID=i[0],this.currrentManagedPropID=i[1]}}initForm(){this.AddConsentForm=this.formBuilder.group({firstName:[""],lastName:[""],email:["",[p.kI.required,p.kI.pattern]],dataSource:[""],country:[""],ownerID:[""],ipAddress:[""],AuthID:[""],phoneno:[""],landlineno:[""],city:[""],zipcode:[""],preferences:this.formBuilder.array([]),verified:[""],MaskIP:[""],proofs:this.formBuilder.array([]),legalNotices:this.formBuilder.array([]),additionalData:this.formBuilder.array([])})}get prefArr(){return this.AddConsentForm.get("preferences")}initPrefRows(){return this.formBuilder.group({preference:["",p.kI.required],allow:[!1]})}addNewPref(){this.prefArr.push(this.initPrefRows())}deletePref(i){this.prefArr.removeAt(i)}get formArr(){return this.AddConsentForm.get("proofs")}initItemRows(){return this.formBuilder.group({content:["",p.kI.required],form:["",p.kI.required]})}getMaskedAadhaar(i){const o=String(i);return o.slice(-4).padStart(o.length,"X")}addNewRow(){this.formArr.push(this.initItemRows())}deleteRow(i){this.formArr.removeAt(i)}get LegalArr(){return this.AddConsentForm.get("legalNotices")}get additinalArr(){return this.AddConsentForm.get("additionalData")}initLegalRows(){return this.formBuilder.group({identifier:["",p.kI.required],version:["",Number],content:["",p.kI.required]})}initaddRows(){return this.formBuilder.group({mvl:["",p.kI.required],sec:["",p.kI.required]})}addNewLegalRow(){this.LegalArr.push(this.initLegalRows())}deleteLegalRow(i){this.LegalArr.removeAt(i)}deleteaddData(i){this.additinalArr.removeAt(i)}addNewaddDataRow(){this.additinalArr.push(this.initaddRows())}onAddconsentRecord(){if(this.submitted=!0,this.AddConsentForm.invali
1d)return;var i=this.AddConsentForm.value;for(var o in this.addData={},i)for(var s in i[o]){var a=i[o][s];this.addData[a.mvl]=a.sec}const g={owner_id:this.AddConsentForm.value.ownerID,email:this.AddConsentForm.value.email,first_name:this.AddConsentForm.value.firstName,last_name:this.AddConsentForm.value.lastName,verified:this.AddConsentForm.value.verified,country:this.AddConsentForm.value.country,data_source:this.AddConsentForm.value.dataSource,ip_address:this.AddConsentForm.value.ipAddress,preferences:this.AddConsentForm.value.preferences,proofs:this.AddConsentForm.value.proofs,legal_notices:this.AddConsentForm.value.legalNotices,auth_id:this.AddConsentForm.value.AuthID,additional_data:this.addData,phone_no:null!==this.AddConsentForm.value.phoneno?this.AddConsentForm.value.phoneno.internationalNumber:"",landline_no:this.AddConsentForm.value.landlineno,city:this.AddConsentForm.value.city,zip_code:this.AddConsentForm.value.zipcode};this.loading.start(),this.consentSolutionService.PutConsentRecord(this.constructor.name,u.e.consentSolutionModule,g,this.currrentManagedPropID,this.AddConsentForm.value.MaskIP).subscribe(y=>{if(this.loading.stop(),y){this.isOpen=!0,this.alertMsg=y.message,this.alertType="success",this.modalRef.hide(),this.onGetConsentRecord("add");const B=this.AddConsentForm.controls.preferences;for(let J=B.length-1;J>=0;J--)B.removeAt(J);const D=this.AddConsentForm.controls.proofs;for(let J=D.length-1;J>=0;J--)D.removeAt(J);const Q=this.AddConsentForm.controls.legalNotices;for(let J=Q.length-1;J>=0;J--)Q.removeAt(J);const Y=this.AddConsentForm.controls.additionalData;for(let J=Y.length-1;J>=0;J--)Y.removeAt(J);this.submitted=!1}},y=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=y.error||y,this.alertType="danger",this.onCancelClick()})}AddConsentRecord(i){this.modalRef=this.modalService.show(i,Object.assign({},{class:"gray modal-lg"},{backdrop:!0,ignoreBackdropClick:!0})),this.AddConsentForm.patchValue({firstName:"",lastName:"",email:"",dataSource:"",country:"",ownerID:"",ipAddress:"",verified:!1,MaskIP:!1,AuthID:"",phoneno:"",landlineno:"",city:"",zipcode:"",preferences:[{preference:"",allow:!1}],proofs:[{content:"",form:""}],legalNotices:[{identifier:"",version:"",content:""}],additionalData:[{mvl:"",sec:""}]})}onCancelClick(){this.backupSearchFieldInput(),this.submitted=!1,this.modalRef.hide();const i=this.AddConsentForm.controls.preferences;for(let g=i.length-1;g>=0;g--)i.removeAt(g);const o=this.AddConsentForm.controls.proofs;for(let g=o.length-1;g>=0;g--)o.removeAt(g);const s=this.AddConsentForm.controls.legalNotices;for(let g=s.length-1;g>=0;g--)s.removeAt(g);const a=this.AddConsentForm.controls.additionalData;for(let g=a.length-1;g>=0;g--)a.removeAt(g);this.AddConsentForm.reset()}get f(){return this.AddConsentForm.controls}onGetConsentSolutionData(i){this.lazyevent=i,this.tLoading=!0,this.eventRows=i.rows,this.firstone=0===i.first?1:i.first/i.rows+1,this.lazyevent.sortField=i.sortField||"created_at",this.lazyevent.sortOrder=1===i.sortOrder?1:-1,this.sortOrder=1===this.lazyevent.sortOrder?"asc":"desc",this.pagelimit="?limit="+this.eventRows+"&page="+this.firstone,this.dataService.isSubscriptionExistForConsent()||this.onGetConsentRecord("refresh")}onGetLegalSolutionData(i){this.tLoading=!0,this.eventRows=i.rows,this.firstone=0===i.first?1:i.first/i.rows+1}onGetConsentRecord(i){const o=this.getCurrentPropertyId();if(!o)return this.loading.stop(),void(this.loadingconsentrecordList=!1);"refresh"==i?(sessionStorage.removeItem("customdp_countries"),this.selectedcountries=[],this.bkpdefaultcountrylist=[],this.bkpselectedcountries=[],this.lazyevent.sortOrder=1==this.lazyevent.sortOrder?1:-1,this.lazyevent.sortField="created_at",this.sortOrder=1==this.lazyevent.sortOrder?"asc":"desc"):(this.lazyevent.sortOrder=-1,this.lazyevent.sortField="created_at",this.sortOrder="desc"),this.loadingconsentrecordList=!0,void 0!==this.modalRef&&this.modalRef.hide(),this.loading.start();const s=this.searchbydaterange&&0!==this.searchbydaterange.length?this.searchbydaterange[0].toJSON().split("T")[0]:"",a=this.searchbydaterange&&0!==this.searchbydaterange.length?this.searchbydaterange[1].toJSON().split("T")[0]:"";this.pagelimit={limit:this.eventRows,page:this.firstone,search:this.inputSearch,email:this.emailSearch,country:this.selectedcountries.map(g=>g.value).toString(),first_name:this.firstnameSearch,last_name:this.lastnameSearch,ip_address:this.IpAddressSearch,data_source:"both"!==this.sourceSearch?this.sourceSearch:"",start_date:s,end_date:a,sort_order:this.sortOrder},this.consentSolutionService.getConsentRecord(this.constructor.name,u.e.consentSolutionModule,this.pagelimit,o).subscribe(g=>{this.loading.stop();const y=g;200===y.status&&(this.bkpdefaultcountrylist=[...this.defaultcountrylist],this.defaultcountrylist=this.getCountryList(y.response),this.consentRecordList=(0,C.cn)(this.lazyevent,y.response),this.consentRecordCount=y.count,this.loadingconsentrecordList=!1,"refresh"===i&&this.authService.n
1otificationUpdated.next(!0))},g=>{this.loading.stop()})}onNavigateToDetails(i){var o=this;return(0,v.Z)(function*(){yield o.consentSolutionService.onPushConsentData(i),void 0!==i.id&&(yield o.router.navigate(["/consent-preference/consent-records/details/",i.id],{queryParams:{oid:o.queryOID,pid:o.queryPID},skipLocationChange:!1}))})()}onSearchInputChange(i){this.inputSearch=i.target.value,this.searchDecouncer$.next(i.target.value)}setupSearchDebouncer(){this.searchDecouncer$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onEmailInputChange(i){this.emailSearch=i.target.value,this.emailDebouncer$.next(i.target.value)}openModal(i){this.modalRef=this.modalService.show(i,{animated:!1,keyboard:!1,class:"modal-lg"})}openBulkUploadModal(i){this.resetBulkUploadState(),this.modalRef=this.modalService.show(i,{animated:!1,keyboard:!1,class:"modal-md"})}get canUploadConsentRecords(){return null!==this.bulkUploadFile&&!this.isBulkUploadInvalid&&!this.isBulkUploadInProgress}handleBulkUploadFileInput(i){this.bulkUploadFile=i?.item(0)??null,this.isBulkUploadInvalid=!!this.bulkUploadFile&&!this.validateBulkUploadFile(this.bulkUploadFile.name)}onUploadConsentRecords(){const i=this.getCurrentPropertyId(),o=this.bulkUploadFile;!i||null===o||this.isBulkUploadInvalid||this.isBulkUploadInProgress||(this.isOpen=!1,this.isBulkUploadInProgress=!0,this.loading.start(),this.consentSolutionService.bulkImportConsentRecords(this.constructor.name,u.e.consentSolutionModule,o,i).subscribe(s=>{this.loading.stop(),this.closeBulkUploadModal(),this.isOpen=!0,this.alertMsg=s?.message||"Consent records imported successfully",this.alertType="success",this.onGetConsentRecord("refresh")},s=>{this.isBulkUploadInProgress=!1,this.loading.stop(),this.isOpen=!0,this.alertMsg=s?.error?.message||s?.error?.error||s?.error||`${s?.status||""} ${s?.statusText||""}`.trim()||"Unable to import consent records",this.alertType="danger"}))}closeBulkUploadModal(){void 0!==this.modalRef&&this.modalRef.hide(),this.resetBulkUploadState()}setupEmailDebouncer(){this.emailDebouncer$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onFirstNameInputChange(i){this.firstnameSearch=i.target.value,this.firstnameDebouncer$.next(i.target.value)}setupFirstNameDebouncer(){this.firstnameDebouncer$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onLastNameInputChange(i){this.lastnameSearch=i.target.value,this.lastnameDebouncer$.next(i.target.value)}setupLastNameDebouncer(){this.lastnameDebouncer$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onIpAddressInputChange(i){this.IpAddressSearch=i.target.value,this.IpAddressDebouncer$.next(i.target.value)}setupIpAddressDebouncer(){this.IpAddressDebouncer$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onSourceInputChange(i){this.sourceSearch=i.target.value,this.source$.next(i.target.value)}setupSourceDebouncer(){this.source$.pipe((0,L.b)(1e3),(0,U.x)()).subscribe(i=>{this.onGetConsentRecord()})}onSelectDateRangeForCsv(){this.searchbydaterangeExport.length>0&&(this.startDateCsv=this.searchbydaterangeExport[0].toJSON().split("T")[0],this.endDateCsv=this.searchbydaterangeExport[1].toJSON().split("T")[0])}onDateSelection(){if(this.loadingconsentrecordList=!0,this.searchbydaterange.length>0){const i=this.searchbydaterange[0].toJSON().split("T")[0],o=this.searchbydaterange[1].toJSON().split("T")[0];this.loading.start(),this.pagelimit={limit:this.eventRows,page:this.firstone,search:this.inputSearch,email:this.emailSearch,first_name:this.firstnameSearch,last_name:this.lastnameSearch,ip_address:this.IpAddressSearch,data_source:"both"!==this.sourceSearch?this.sourceSearch:"",start_date:i,end_date:o,sort_order:this.sortOrder||"desc"},this.consentSolutionService.getConsentRecord(this.constructor.name,u.e.consentSolutionModule,this.pagelimit,this.currrentManagedPropID).subscribe(s=>{this.loading.stop();const a=s;200===a.status&&(this.consentRecordList=(0,C.cn)(this.lazyevent,a.response),this.consentRecordCount=a.count,this.loadingconsentrecordList=!1)},s=>{this.loadingconsentrecordList=!1,this.loading.stop()})}}generateConsentCsv(){const i={start_date:this.startDateCsv,end_date:this.endDateCsv};this.downloadStatus.consents=!0,this.consentSolutionService.exportConsentCSv(this.constructor.name,this.currrentManagedPropID,i,u.e.consentSolutionModule).subscribe(o=>{this.downloadStatus.consents=!1,this.downLoadFile(o,"text/csv",this.portal+"-consents~"+this.currrentManagedPropID+"~"+this.startDateCsv+"~"+this.endDateCsv+".csv"),this.modalRef.hide()},o=>{this.downloadStatus.consents=!1})}generateLegalNoticesCsv(){const i={start_date:this.startDateCsv,end_date:this.endDateCsv};this.downloadStatus.legalNotices=!0,this.consentSolutionService.exportConsentLegalNoticesCSv(this.constructor.name,this.currrentManagedPropID,i,u.e.consentSolutionModule).subscribe(o=>{this.downloadStatus.legalNotices=!1,this.downLoadFile(o,"text/csv",this.portal+"-consents-legal-notices~"+this.currrentManagedPropID+"~"+this.startDateCsv+"~"+this.endDateCsv+".csv"),this.modalRef.hide()},o=>{this.downloadStatus.legalNotices=!1})}generateProofsCsv(){const i={start_date:this.startDateCsv,end_date:this.endDateCsv};this.downloadStatus.Proofs=!0,this.consentSolutionService.exportConsentProofsCSv(this.constructor.name,this.currrentManagedPropID,i,u.e.consentSolutionModule).subscribe(o=>{this.downloadStatus.Proofs=!1,this.downLoadFile(o,"text/csv",this.portal+"-consents-proofs~"+this.currrentManagedPropID+"~"+this.startDateCsv+"~"+this.endDateCsv+".csv"),this.modalRef.hide()},o=>{this.downloadStatus.Proofs=!1})}generatePreferenceCsv(){const i={start_date:this.startDateCsv,end_date:this.endDateCsv};this.downloadStatus.Preference=!0,this.consentSolutionService.exportConsentPreferenceCSv(this.constructor.name,this.currrentManagedPropID,i,u.e.consentSolutionModule).subscribe(o=>{this.downloadStatus.Preference=!1,this.downLoadFile(o,"text/csv",this.portal+"-consents-preferences~"+this.currrentManagedPropID+"~"+this.startDateCsv+"~"+this.endDateCsv+".csv"),this.modalRef.hide()},o=>{this.downloadStatus.Preference=!1})}downLoadFile(i,o,s){const a=new Blob([i],{type:o}),g=window.URL.createObjectURL(a),y=document.createElement("a");y.download=s,y.href=g,y.click()}openSearchModal(i){this.onResetConsentRecord(),this.modalRef=this.modalService.show(i,Object.assign({},{class:"modal-lg"},{backdrop:!0,ignoreBackdropClick:!0}))}onClickSearchbtn(){this.pTable.reset(),this.modalRef.hide(),this.onGetConsentRecord()}clearDatePicker(){this.searchbydaterange="",this.firstone=1,this.sortOrder="desc",this.pTable&&(this.pTable.first=0,this.pTable.sortField="created_at",this.pTable.sortOrder=-1),this.lazyevent=this.lazyevent||{},this.lazyevent.first=0,this.lazyevent.sortField="created_at",this.lazyevent.sortOrder=-1,this.onGetConsentRecord("refresh")}onResetConsentRecord(){this.backupSearchFieldInput(),this.eventRows="",void 0!==this.modalRef&&this.modalRef.hide()}onClickApplyBtn(){this.bkpselectedcountries=[...this.selectedcountries],this.onGetConsentRecord()}
1onClickConsentTableCheckbox(i){if("countries"===i.dropdownname){this.selectedcountries=[];for(const o of i.dropdownlist)void 0!==o&&(this.selectedcountries=[...i.dropdownlist])}}getCountryList(i){let o=[];for(let s of i)if(""!==s.country){const a=Object.create({},{value:{value:s.country},key:{value:this.generateRandomKey().toString()+s.country.slice(0,4)}});o.some(g=>g.value.toLowerCase().includes(s.country.toLowerCase()))||o.push(a)}return this.checkForUpdatedValues(o,this.defaultcountrylist)}generateRandomKey(){let i=[],o=Math.floor(100*Math.random());return i.some(a=>-1!==a.indexOf(o))?this.generateRandomKey():(i.push(o),o)}backupSearchFieldInput(){this.selectedcountries=[...this.bkpselectedcountries]}checkForUpdatedValues(i,o){if(i.length<=o.length){if(this.compareArrayHasObjects(i,o))return[...o];{let s=[];for(let a of o){let g=i.findIndex(y=>y.value===a.value);-1!==g&&i.splice(g,1)}return s=o.concat(i),s}}return i}compareArrayHasObjects(i,o){return i.length===o.length&&i.every((s,a)=>s.value===o[a].value)}validateBulkUploadFile(i){const o=i.split(".").pop()?.toLowerCase()||"";return"csv"===o||"xlsx"===o||"xls"===o}getCurrentPropertyId(){return this.onGetPropsAndOrgId(),this.queryPID||this.currrentManagedPropID}resetBulkUploadState(){this.bulkUploadFile=null,this.isBulkUploadInvalid=!1,this.isBulkUploadInProgress=!1}ngOnDestroy(){this.bkpdefaultcountrylist=[],this.bkpselectedcountries=[],sessionStorage.removeItem("customdp_countries")}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(m.Mn),e.Y36(d.e),e.Y36(_.LA),e.Y36(b.F0),e.Y36(p.QS),e.Y36(f.tT),e.Y36(b.gz),e.Y36(Z.Dx),e.Y36(S.D),e.Y36(l.Ye),e.Y36(m.$h))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consent-solutions"]],viewQuery:function(o,s){if(1&o&&(e.Gf(Ue,5),e.Gf(qe,7)),2&o){let a;e.iGM(a=e.CRH())&&(s.pTable=a.first),e.iGM(a=e.CRH())&&(s.template=a.first)}},decls:52,vars:22,consts:[["appTheme",""],[1,"mb-3"],["aria-label","breadcrumb",1,"align-navbtn"],[1,"breadcrumb","breadcrumb-style1","mg-b-0"],[1,"breadcrumb-item"],["aria-current","page",1,"breadcrumb-item","active"],[1,"card"],[1,"card-header","row","ml-1","mr-1","d-flex",2,"justify-content","space-between","align-items","center"],[1,"headings"],[1,"search-controls"],["type","button","tooltip","Bulk upload consent records","container","body","placement","top",1,"btn","btn-white","icon-btns","mr-2",3,"click"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABMklEQVRIid3Vvy4EURTH8Y/lAYTSbkNCo5V4AYk/UWo8gUatkeyqeAylEIVEViMS/1qJV2AbhYgeq3CHyezO36XxS27mzrnnnO+5/2b4r1pBB90CrVUF8FgweWVIFFjUr4u9vwaUglQF9ECGMgKzxpN+SX3HjeTWmK1kAT3AWqwfP5rxgDItU2WPZmlQNHiKCdTRDrZtTGMNH5jEPe4wlQXotwcbOAyJ1vGAE+zjBq9YwAXeQ7+Q4vRkReeYwW54P8IqlnGcNYN+gDqucYVGsG3iBeN4wjPGMBrs0bIWmkE7QBo4C7YmZrGIt2Cbw3ysqFwNcoqSRfbV0gCQQoC4CjvmxdVSHH9NaYBOeKYtyYGfO9SSvlSpP6Ii+5EGyU1eVVux5M3IOPyLgFtfn+9L7ETGTwCcyRbTFlQoAAAAAElFTkSuQmCC","width","24","height","24","alt","Bulk upload consent records"],["type","button","tooltip","Add your visitor\u2019s consent manually.",1,"btn","btn-sm","btn-uppercase","btn-primary","pt-2","lineheight-22","mr-3",2,"text-transform","none","font-size","12px",3,"click"],["name","plus",1,"feather-16"],[1,"d-none","d-sm-inline","mg-l-5"],[1,"ml-2","mr-2"],[1,"col-sm-12","pr-0","pl-0","mr-4","d-flex","row-reverse"],[1,"input-group-prepend"],["class","input-group-text rounded-right border-left-0","id","inputGroup-sizing-sm",3,"click",4,"ngIf"],["class","input-group-text bg-transparent","style","background-color: #fff !important; border-left:0 !important; border-radius: 0px 5px 5px 0px;",3,"click",4,"ngIf"],["type","text","bsDaterangepicker","",1,"form-control","border-left-0","border-right-0","rounded-right",3,"ngModel","bsConfig","ngModelChange","onHidden"],["dp","bsDaterangepicker"],[1,"input-group-prepend","border-left-0",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-left","border-right-0"],[1,"fa","fa-calendar"],["type","reset","tooltip","Refresh",1,"btn","btn-white","icon-btns","mr-1",3,"click"],[1,"fas","fa-sync","feather-16"],["type","button","tooltip","Export consent records as a CSV file",1,"btn","btn-white","icon-btns","mr-2",3,"disabled","click"],["src","../../../../assets/imgs/csvexport.svg","width","24","height","24"],["tooltip","Filter","data-toggle","modal",1,"btn","btn-white","icon-btns",3,"click"],["name","filter",1,"feather-16"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","sortField","created_at","styleClass","p-datatable-sm",1,"consent-record",3,"value","lazy","responsive","paginator","rows","showCurrentPageReport","totalRecords","loading","sortOrder","rowsPerPageOptions","globalFilterFields","onLazyLoad"],["dt",""],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["addrecord",""],["consentBulkUploadModal",""],["template",""],["searchModal",""],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-right","border-left-0",3,"click"],[1,"fa",3,"ngClass"],[1,"input-group-text","bg-transparent",2,"background-color","#fff !important","border-left","0 !important","border-radius","0px 5px 5px 0px",3,"click"],["aria-hidden","true",1,"fa",3,"ngClass"],[2,"text-align","center"],["pSortableColumn","first_name"],["field","first_name"],["pSortableColumn","last_name"],["field","last_name"],["pSortableColumn","email",1,"email-col"],["field","email"],[1,"ph
1one-col"],["pSortableColumn","country"],["field","country"],["pSortableColumn","data_source"],["field","data_source"],["pSortableColumn","created_at"],["field","created_at"],[1,"al"],["href","javascript:;",3,"click"],[1,"al","email-col"],[1,"al","phone-col"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"pi","pi-check",2,"font-size","1.0rem","color","#5cb85c"],[1,"pi","pi-times",2,"font-size","1.0rem","color","#d9534f"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],["appTheme","",1,"modal-body"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"form-group","d-flex","row"],[1,"col-sm-6"],[1,"input-group"],["formControlName","firstName","placeholder","Enter first name",1,"form-control"],["formControlName","lastName","placeholder","Enter last name",1,"form-control"],["aria-hidden","true",1,"tx-8","fa","fa-asterisk","tx-danger","ml-1",2,"vertical-align","super"],["placeholder","[email protected]","pattern","[a-zA-Z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$","formControlName","email","placeholder","Enter Email ID",1,"form-control"],["class","text-danger",4,"ngIf"],["formControlName","AuthID","placeholder","Enter Authentication ID",1,"form-control"],[1,"form-group"],[1,"input-group","d-flex"],[1,"custom-control","custom-radio","custom-control-inline"],["type","radio","id","inlineRadio5","formControlName","dataSource","value","private",1,"custom-control-input"],["for","inlineRadio5",1,"custom-control-label"],["type","radio","id","inlineRadio4","formControlName","dataSource","value","public",1,"custom-control-input"],["for","inlineRadio4",1,"custom-control-label"],[1,"form-group","row","d-flex"],["formControlName","country","placeholder","Enter Country",1,"form-control"],["formControlName","ownerID","placeholder","Enter Owner ID",1,"form-control"],[1,"form-group","row"],[1,"form-group","col-sm-6"],["formControlName","ipAddress","placeholder","Enter IP Address",1,"form-control"],[1,"form-group","d-flex","col-sm-3","mt-4"],[1,"ml-4"],["type","checkbox","formControlName","verified",1,"ml-4","mt-1"],["type","checkbox","formControlName","MaskIP",1,"ml-4","mt-1"],[1,"form-group","mb-1"],["for","phone"],["name","phone","formControlName","phoneno",3,"cssClass","enableAutoCountrySelect","preferredCountries","enablePlaceholder","searchCountryFlag","selectFirstCountry","maxLength","phoneValidation","separateDialCode","ngClass"],["class","is-invalid-intphone",4,"ngIf"],["formControlName","landlineno","placeholder","Enter landline number",1,"form-control"],["formControlName","city","placeholder","Enter your city",1,"form-control"],["formControlName","zipcode","placeholder","Enter Zip code",1,"form-control"],[1,"row"],["formArrayName","preferences",1,"col-sm-12","table-responsive"],[1,"table"],[3,"formGroupName",4,"ngFor","ngForOf"],[2,"border","none"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["type","button","class","btn btn-sm btn-primary","tooltip","Add Preference",3,"click",4,"ngIf"],["formArrayName","proofs",1,"col-sm-12","table-responsive"],["type","button","tooltip","Add proof","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["formArrayName","legalNotices",1,"col-sm-12","table-responsive"],["type","button","tooltip","Add Legal Notice","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["formArrayName","additionalData",1,"col-sm-12","table-responsive"],["type","button","tooltip","Add Additional data","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[1,"d-flex",2,"justify-content","flex-end"],[1,"btn-group"],["type","button",1,"btn","btn-link","btn-sm","pull-right",3,"click"],["type","submit",1,"btn","btn-primary","btn-sm"],[1,"text-danger"],[4,"ngIf"],[1,"is-invalid-intphone"],[1,"tx-danger"],[3,"formGroupName"],[1,"mt-3"],[2,"white-space","nowrap","border","none"],["type","text","formControlName","preference",1,"form-control","mr-3",3,"id","ngClass"],["type","checkbox","formControlName","allow",1,"mt-2",3,"id"],["tooltip","Remove preference","placement","left",1,"btn","btn-sm","btn-danger",3,"click"],["aria-hidden","true",1,"fa","fa-minus-circle"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus","ml-2"],["type","button","tooltip","Add Preference",1,"btn","btn-sm","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus-circle"],["formControlName","content",1,"form-control",3,"id","ngClass"],["formControlName","form",1,"form-control",3,"id","ngClass"],["tooltip","Remove proof",1,"btn","btn-sm","btn-danger",3,"click"],["type","button","tooltip","Add proof",1,"btn","btn-sm","btn-primary",3,"click"],["formControlName","identifier",1,"form-control",3,"id","ngClass"],["type","number","formControlName","version",1,"form-control",3,"id"],["tooltip","Remove Legal Notice","placement","left",1,"btn","btn-sm","btn-danger",3,"click"],["type","button","tooltip","Add Legal Notice",1,"btn","btn-sm","btn-primary",3,"click"],["formControlName","mvl","placeholder","Ex : Age",1,"form-control",3,"id","ngClass"],["type","text","formControlName","sec","placeholder","Ex : 30",1,"form-control",3,"id","ngClass"],["tooltip","Remove Additional Data","placement","left",1,"btn","btn-sm","btn-danger",3,"click"],["type","button","tooltip","Add Additional data",1,"btn","btn-sm","btn-primary",3,"click"],["appTheme","",1,"bulk-upload-modal"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"disabled","click"],[1,"modal-body"],["role","alert",1,"alert","alert-warning"],["download","consent_preference_bulk_upload_template.xlsx","target","_blank","href","/assets/consent_preference_bulk_upload_template.xlsx",1,"bulk-upload-link"],[1,"custom-file","mb-0"],["type","file","id","consentBulkUploadFile",1,"custom-file-input",3,"disabled","change"],["for","consentBulkUploadFile",1,"custom-file-label"],["class","text-danger mt-1",4,"ngIf"],[1,"modal-footer","bulk-upload-actions"],["type","button",1,"btn","btn-link","tx-decoration-underline","tx-13",3,"disabled","click"],["type","button",1,"btn","btn-sm","btn-success","tx-13","bulk-upload-import-btn",3,"disabled","click"],["class","spinner-border spinner-border-sm mr-1","role","status","aria-hidden","true",4,"ngIf"],[1,"text-danger","mt-1"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","mr-1"],["appTheme","",1,"modal-body","modal-lg","text-center"],[1,"row","mb-3"],[1,"col-md-3"],[1,"pt-2","mb-0"],[1,"col-md-8","pr-0","mr-2","d-flex","row-reverse"],[1,"input-group-prepend",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-right","border-left-0"],[1,"row","mb-3","mt-2"],["class","col-md-12 margin-auto justify-content-center",4,"ngIf"],["class","col-md-12 justify-content-center",4,"ngIf"],["class","col-md-12  justify-content-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-primary","mr-3",3,"disabled","click"],[1,"mt-4"],[1,"col-md-12","margin-auto","justify-content-center"],[1,"progress","w-50","margin-auto","mb-2",2,"height","20px"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","progress-bar-animated",2,"width","100%"],[1,"col-md-12","justify-content-center"],[1,"filter"],["type","text","pInputText","","placeholder","First Name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","pInputText","","placeholder","Last Name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","pInputText","","placeholder","Email",1,"form-control",3,"ngModel","ngModelChange"],["type","text","pInputText","","placeholder","IP Address",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-6",2,"justify-content","space-between"],[1,"d-flex"],["type","radio","id","inlineRadio1","name","inlineRadioOptions","value","both",1,"custom-control-input",3,"ngModel","ngModelChange"],["for","inlineRadio1",1,"custom-control-label"],["type","radio","id","inlineRadio2","name","inlineRadioOptions","value","private",1,"custom-control-input",3,"ngModel","ngModelChange"],["for","inlineRadio2",1,"custom-control-label"],["type","radio","id","inlineRadio3","name","inlineRadioOptions","value","public",1,"custom-control-input",3,"ngModel","ngModelChange"],["for","inlineRadio3",1,"custom-control-label"],[3,"ctrlplaceholder","listName","
1isclickondocument","selectedList","defaultList","isradiobtnrequiredfordefaultfield","onClickValue"],[1,"col-sm-12","mt-3"],[1,"applybtn-position"],["type","reset",1,"btn","btn-link","tx-decoration-underline","tx-13",3,"click"],[1,"btn","btn-sm","btn-primary","tx-13",3,"click"],["dismissOnTimeout","5000",3,"type","dismissible"]],template:function(o,s){if(1&o){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4),e._uU(5,"Privacy"),e.qZA(),e.TgZ(6,"li",4),e._uU(7,"Consent Preference"),e.qZA(),e.TgZ(8,"li",5),e._uU(9,"Consent Records"),e.qZA()()()(),e.TgZ(10,"div",6)(11,"div",7)(12,"h4",8),e._uU(13,"Consent Records "),e.qZA(),e.TgZ(14,"div",9)(15,"button",10),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(45);return e.KtG(s.openBulkUploadModal(y))}),e._UZ(16,"img",11),e.qZA(),e.TgZ(17,"button",12),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(43);return e.KtG(s.AddConsentRecord(y))}),e._UZ(18,"i-feather",13),e.TgZ(19,"span",14),e._uU(20," Add Consent "),e.qZA()(),e.TgZ(21,"div",15)(22,"div",16)(23,"div",17),e.YNc(24,ke,2,1,"span",18),e.YNc(25,Se,2,1,"span",19),e.qZA(),e.TgZ(26,"input",20,21),e.NdJ("ngModelChange",function(y){return s.searchbydaterange=y})("onHidden",function(){return s.onDateSelection()}),e.qZA(),e.TgZ(28,"div",22),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(27);return e.KtG(y.show())}),e.TgZ(29,"span",23),e._UZ(30,"i",24),e.qZA()()()(),e.TgZ(31,"button",25),e.NdJ("click",function(){return s.onGetConsentRecord("refresh")}),e._UZ(32,"i",26),e.qZA(),e.TgZ(33,"button",27),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(47);return e.KtG(s.openModal(y))}),e._UZ(34,"img",28),e.qZA(),e.TgZ(35,"button",29),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(49);return e.KtG(s.openSearchModal(y))}),e._UZ(36,"i-feather",30),e.qZA()()(),e.TgZ(37,"p-table",31,32),e.NdJ("onLazyLoad",function(y){return s.onGetConsentSolutionData(y)}),e.YNc(39,Pe,31,0,"ng-template",33),e.YNc(40,Me,29,15,"ng-template",34),e.YNc(41,De,3,1,"ng-template",35),e.qZA()()(),e.YNc(42,et,8,1,"ng-template",null,36,e.W1O),e.YNc(44,ot,24,8,"ng-template",null,37,e.W1O),e.YNc(46,lt,36,11,"ng-template",null,38,e.W1O),e.YNc(48,ct,56,13,"ng-template",null,39,e.W1O),e.TgZ(50,"div",40),e.YNc(51,dt,2,3,"alert",41),e.qZA()}2&o&&(e.xp6(24),e.Q6J("ngIf",""==s.searchbydaterange),e.xp6(1),e.Q6J("ngIf",""!==s.searchbydaterange),e.xp6(1),e.Q6J("ngModel",s.searchbydaterange)("bsConfig",s.bsConfig),e.xp6(7),e.Q6J("disabled",0===s.consentRecordList.length),e.xp6(4),e.Q6J("value",s.consentRecordList)("lazy",!0)("responsive",!0)("paginator",!0)("rows",10)("showCurrentPageReport",!0)("totalRecords",s.consentRecordCount)("loading",s.loadingconsentrecordList)("sortOrder",-1)("rowsPerPageOptions",e.DdM(18,pt))("globalFilterFields",e.DdM(19,ut)),e.xp6(13),e.Q6J("ngClass",e.VKq(20,gt,!s.isOpen)),e.xp6(1),e.Q6J("ngIf",s.isOpen))},dependencies:[l.mk,l.sg,l.O5,N.iA,w.jx,N.lQ,N.fz,M.o,p._Y,p.Fj,p.wV,p.Wl,p._,p.JJ,p.JL,p.c5,p.On,p.sg,p.u,p.x0,p.CE,h.u,T.FR,T.TB,k.i9,F.wx,x.FV,x.mh,we.X,R.E,l.uU],styles:['.consent-record ::ng-deep .p-component{font-weight:400!important;font-size:14px!important}.consent-record ::ng-deep .p-datatable.p-datatable-sm .p-datatable-header{display:flex;width:100%;border-radius:0;border-top:1px solid #dde2ea}.consent-record ::ng-deep .p-datatable{position:relative;border:1px solid #ccc;border-top:0;margin:0;border-radius:0 0 5px 5px}.consent-record ::ng-deep .p-datatable .p-datatable-header{border-bottom:1px solid #ccc;border-top:1px solid #ccc}.consent-record .p-datatable-wrapper>table>.p-datatable-thead>tr>th{font-size:12px;font-weight:500;padding:8px 0;color:#333;text-align:left}.consent-record .p-datatable-wrapper>table>.p-datatable-thead>tr>th:first-child{width:120px;padding-left:10px}.consent-record .p-datatable-wrapper>table>.p-datatable-tbody>tr>td{font-size:12px!important}.consent-record .p-datatable .p-sortable-column:focus{box-shadow:none;outline:0 none}.consent-record .p-datatable .p-sortable-column:not(.p-highlight):hover{background-color:#f8f9fa}.consent-record>.p-datatable .p-paginator-bottom>.p-inputwrapper-filled{position:absolute!important;left:0!important}.consent-record>.p-datatable .p-paginator-bottom>.p-paginator-current{position:absolute!important;right:0!important}.consent-record ::ng-deep .p-datatable .p-datatable-thead>tr>th{font-size:11px!important}.consent-record ::ng-deep .p-datatable .p-datatable-thead>tr>th:first-child{width:60px}.consent-record ::ng-deep .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td>a:hover{text-decoration:underline}.consent-record ::ng-deep .p-datatable .p-sortable-column .p-sortable-column-icon{margin-left:0;font-size:.6rem}.consent-record ::ng-deep .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.8rem .3rem}.consent-record ::ng-deep .p-datatable.p-datatable-sm .p-datatable-thead>tr>th:first-child{padding:.8rem .5rem}.consent-record ::ng-deep .email-col{min-width:190px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.consent-record ::ng-deep .phone-col{min-width:120px;white-space:nowrap}.consent-record ::ng-deep .p-multiselect .p-multiselect-label{padding:.3rem}.consent-record ::ng-deep .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td>a{cursor:pointer}.consent-record ::ng-deep .p-inputtext{padding:.3rem;font-size:.8rem}.consent-record ::ng-deep .p-paginator .p-paginator-pages .p-paginator-page{min-width:1.5rem;height:1.5rem}.consent-record ::ng-deep .p-paginator .p-dropdown{height:2rem;position:absolute;
1left:0;top:12px}.consent-record ::ng-deep .p-multiselect-panel .p-multiselect-header{padding:.3rem 1rem}.consent-record ::ng-deep .p-multiselect-panel .p-multiselect-items{padding:0}.consent-record ::ng-deep .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{background-color:#fff;color:#333}.consent-record ::ng-deep .p-highlight .p-checkbox .p-checkbox-box{border-color:#2196f3}.consent-record ::ng-deep .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus{box-shadow:none}.consent-record ::ng-deep .p-datatable .p-paginator-bottom{border-top:1px solid #ccc;border-radius:0 0 5px 5px;border-bottom:0;position:relative}.consent-record ::ng-deep .p-datatable .p-paginator .p-paginator-current{right:0!important;position:absolute!important}.desk_img{margin-top:20px;margin-right:10px;padding:.25em .3em;border-radius:50%;box-shadow:0 0 4px #888}input[type=checkbox]{width:15px;height:15px}.dust{padding:.25em .4em;border-radius:30%;box-shadow:0 0 2px #636363}.borderless td{border:none}.borderless th{border-bottom:1px solid rgb(218,214,214)}.bulk-upload-link{color:#22c55e}.bulk-upload-link:hover{color:#16a34a}.bulk-upload-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.bulk-upload-import-btn{min-width:88px;color:#fff!important;background-color:#1dab3e!important;border-color:#1dab3e!important}.bulk-upload-import-btn:disabled,.bulk-upload-import-btn[disabled]{cursor:not-allowed!important;pointer-events:auto;opacity:.55;color:#ffffffe6!important;background-color:#8ecf9f!important;border-color:#8ecf9f!important;box-shadow:none!important}.bulk-upload-import-btn:disabled:hover,.bulk-upload-import-btn:disabled:focus,.bulk-upload-import-btn:disabled:active,.bulk-upload-import-btn[disabled]:hover,.bulk-upload-import-btn[disabled]:focus,.bulk-upload-import-btn[disabled]:active{cursor:not-allowed!important;background-color:#8ecf9f!important;border-color:#8ecf9f!important;box-shadow:none!important;outline:none!important}.droped{border-radius:20px;margin-right:10px}.sel{border-radius:25px;background-color:#e6e6e6;height:20px}@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width: 1024px){table,thead,tbody,th,tr,.al{display:block}thead tr{position:absolute;top:-9999px;left:-9999px}.al{border:none;border-bottom:1px solid #eee;position:relative;padding-left:50%}.al:nth-of-type(1):before{content:"Id : "}.al:nth-of-type(2):before{content:"Owner ID  : "}.al:nth-of-type(3):before{content:"First Name  : "}.al:nth-of-type(4):before{content:"Last Name  : "}.al:nth-of-type(5):before{content:"Email  : "}.al:nth-of-type(6):before{content:"Country  : "}.al:nth-of-type(7):before{content:"Data Source  : "}.al:nth-of-type(8):before{content:"IP Address : "}.al:nth-of-type(9):before{content:"Verified  : "}.al:nth-of-type(10):before{content:"Created Date : "}}.dot{height:85px;width:85px;background-color:#f1eded;border-radius:50%;border-color:#cec8c8;display:inline-block}.btn-info{font-weight:700;font-size:13px;letter-spacing:1px;line-height:15px;border-radius:40px;transition:all .3s ease 0s;width:70px;height:40px}.btn-info:hover{color:#fff}.selectWrapper{border-radius:36px;display:inline-block;overflow:hidden;background:#cccccc;border:1px solid #cccccc}.selectBox{width:140px;height:30px;border:0px;outline:none}.pbut{border-radius:30px;text-align:center;width:60px;height:33px}.align-navbtn{display:flex;justify-content:space-between}input[type=radio]:checked:after{width:15px;height:15px;border-radius:15px;top:-1px;left:-1px;position:relative;background-color:#00a2ff;content:"";display:inline-block;visibility:visible;border:2px solid white}.documents{justify-content:space-between}.headings{color:#666;margin-bottom:0}.pi-user{padding:.25em .4em;border-radius:10%;box-shadow:0 0 2px #636363;background-color:#f1efef;opacity:.8;color:gray}.pi-user:hover{background-color:#e6e6e6;color:#0367fa}.pi-eye{padding:.25em .4em;border-radius:10%;box-shadow:0 0 2px #636363;background-color:#f1efef;opacity:.8;color:gray}.pi-eye:hover{background-color:#e6e6e6;color:#0367fa}@media only screen and (max-width: 600px){.fil{margin-bottom:10px;flex-direction:column}.fil .p-inputtext{margin-bottom:4px}.filbutton{width:120px;margin-left:84px;margin-top:5px}.headings{text-align:center}}
1.pi-trash:hover{background-color:#e6e6e6;color:#0367fa}.heading{text-decoration-line:underline;text-decoration-style:solid}.dropbtn{background-color:#a1a8a2;color:#fff;padding:16px;font-size:16px;border:none;cursor:pointer;border-radius:40px;height:50px;margin-right:15px}.dropdown{position:relative;display:inline-block}.dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003}.dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content a:hover{background-color:#f1f1f1}.dropdown:hover .dropdown-content{display:block}.dropdown:hover .dropbtn{background-color:#686868}.text-divider{margin:2em 0;line-height:0;text-align:center}.text-divider span{background-color:#f5f5f5;padding:1em}.text-divider:before{content:" ";display:block;border-top:1px solid #e3e3e3;border-bottom:1px solid #f7f7f7}.theme-dark-blue{flex-direction:row-reverse!important}.theme-dark-blue .bs-datepicker-predefined-btns button{margin-bottom:2px!important;background:#fff;color:#333;border:1px solid #ccc}.theme-dark-blue .bs-datepicker-predefined-btns button.selected{color:#fff;background:#16BF5E}.theme-dark-blue .bs-datepicker-head{background-color:#000!important}.datepickerwrapper{justify-content:flex-end!important;display:flex!important}.border-zero-left{border-left:0}.datepickerwrapper .form-control:focus{outline:none;border-radius:0 5px 5px 0;box-shadow:none;border-color:#c0ccda}.bs-datepicker{right:170px!important;top:5px!important}.datepickerwrapper .form-control{border-radius:0!important}.datepickerwrapper .input-group-prepend{height:38px}.row-reverse{flex-direction:row-reverse}.input-group-prepend span{background-color:#fff;border-color:#c0ccda!important;border-radius:0;cursor:pointer}.lineheight-22{line-height:22px}.flotingdiv{position:fixed;bottom:0;top:77%;right:0;overflow-x:hidden;overflow-y:auto;z-index:0}.chart-size{margin-bottom:30px;margin-top:15px}.no-chart{flex-direction:column;height:300px}#myChart{height:100%;width:100%;min-height:150px}.zc-ref{display:none}.chart-one{margin:10px}.state-count-list{height:170px;overflow:overlay}.state-header{padding-top:10px;padding-bottom:9px}.country-dropdown{height:29px;padding-right:1px;padding-left:5px}.card-height{min-height:450px}.chart-height{min-height:376px}.avr-time-text{margin-left:-3px;margin-right:-5px}.progress{margin:auto}.progress div{font-size:17px;font-weight:600}.search-controls{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;align-content:center}.applybtn-position{position:relative;display:flex;justify-content:flex-end;align-content:flex-end;align-items:flex-end}bs-datepicker-container,bs-daterangepicker-container{z-index:999999!important}\n'],encapsulation:2}),n})();var mt=c(59241),se=c(38611),ee=c(70713),ae=c(45552);const ft=["consentcertificate"];function ht(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"First Name is required"),e.qZA())}function Ct(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,ht,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.firstName.errors.required)}}function bt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Last Name is required"),e.qZA())}function xt(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,bt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.lastName.errors.required)}}function Zt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Email is required"),e.qZA())}function vt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Please enter a valid email"),e.qZA())}function Tt(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,Zt,2,0,"div",12),e.YNc(2,vt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.email.errors.required),e.xp6(1),e.Q6J("ngIf",t.f.email.errors.pattern)}}function yt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Data Source is required"),e.qZA())}function At(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,yt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.dataSource.errors.required)}}function wt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"AuthID is required"),e.qZA())}function Ut(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,wt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.country.errors.required)}}function qt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Country is required"),e.qZA())}function kt(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,qt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.country.errors.required)}}function St(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"IP Address is required"),e.qZA())}function Pt(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"IP address cannot be greater than 40 characters"),e.qZA())}function It(n,r){if(1&n&&(e.TgZ(0,"div",67),e.YNc(1,St,2,0,"div",12),e.YNc(2,Pt,2,0,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.ipAddress.errors.required),e.xp6(1),e.Q6J("ngIf",t.f.ipAddress.errors.maxlength)}}function Nt(n,r){1&n&&(e.TgZ(0,"div",68)(1,"div",67),e._uU(2,"Enter valid phone number"),e.qZA()())}const Mt=function(n){return{"is-invalid-intphone-textbox":n}};function Dt(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",32)(1,"h4",33),e._uU(2,"Update Consent Details "),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(4,"span",35),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",36)(7,"form",37),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onUpdateConsent())}),e.TgZ(8,"div",38)(9,"div")(10,"label"),e._uU(11,"First Name"),e.qZA(),e.TgZ(12,"div",39),e._UZ(13,"input",40),e.qZA(),e.YNc(14,Ct,2,1,"div",41),e.qZA(),e.TgZ(15,"div")(16,"label"),e._uU(17,"Last Name"),e.qZA(),e.TgZ(18,"div",39),e._UZ(19,"input",42),e.qZA(),e.YNc(20,xt,2,1,"div",41),e.qZA()(),e.TgZ(21,"div",43)(22,"label"),e._uU(23,"Email"),e._UZ(24,"i",44),e.qZA(),e.TgZ(25,"div",39),e._UZ(26,"input",45),e.qZA(),e.YNc(27,Tt,3,2,"div",41),e.qZA(),e.TgZ(28,"div",38)(29,"div")(30,"label"),e._uU(31,"Data Source"),e.qZA(),e.TgZ(32,"div",46)(33,"div",47),e._UZ(34,"input",48),e.TgZ(35,"label",49),e._uU(36,"Private"),e.qZA()(),e.TgZ(37,"div",47),e._UZ(38,"input",50),e.TgZ(39,"label",51),e._uU(40,"Public"),e.qZA()()(),e.YNc(41,At,2,1,"div",41),e.qZA(),e.TgZ(42,"div",52)(43,"label"),e._uU(44,"Auth ID"),e.qZA(),e.TgZ(45,"div",39),e._UZ(46,"input",53),e.qZA(),e.YNc(47,Ut,2,1,"div",41),e.qZA()(),e.TgZ(48,"div",38)(49,"div")(50,"label"),e._uU(51,"Country"),e.qZA(),e.TgZ(52,"div",39),e._UZ(53,"input",54),e.qZA(),e.YNc(54,kt,2,1,"div",41),e.qZA(),e.TgZ(55,"div",55)(56,"label"),e._uU(57,"Owner Id"),e.qZA(),e.TgZ(58,"div",39),e._UZ(59,"input",56),e.qZA()()(),e.TgZ(60,"div",43)(61,"label"),e._uU(62,"IP Address"),e.qZA(),e.TgZ(63,"div",39),e._UZ(64,"input",57),e.qZA(),e.YNc(65,It,3,2,"div",41),e.qZA(),e.TgZ(66,"div",38)(67,"div")(68,"label"),e._uU(69,"Phone number"),e.qZA(),e.TgZ(70,"div",39),e._UZ(71,"ngx-intl-tel-input",58),e.qZA(),e.YNc(72,Nt,3,0,"div",59),e.qZA(),e.TgZ(73,"div",55)(74,"label"),e._uU(75,"Landline number"),e.qZA(),e.TgZ(76,"div",39),e._UZ(77,"input",60),e.qZA()()(),e.TgZ(78,"div",38)(79,"div")(80,"label"),e._uU(81,"City"),e.qZA(),e.TgZ(82,"div",39),e._UZ(83,"input",61),e.qZA()(),e.TgZ(84,"div",55)(85,"label"),e._uU(86,"Zip Code"),e.qZA(),e.TgZ(87,"div",39),e._UZ(88,"input",62),e.qZA()()(),e.TgZ(89,"div",63)(90,"div",64)(91,"button",65),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e._uU(92,"Cancel"),e.qZA(),e.TgZ(93,"button",66),e._uU(94,"Update"),e.qZA()()()()()}if(2&n){const t=e.oxw();e.xp6(7),e.Q6J("formGroup",t.editConsentForm),e.xp6(7),e.Q6J("ngIf",t.editConsentForm.controls.firstName.invali
1d&&(t.editConsentForm.controls.firstName.dirty||t.editConsentForm.controls.firstName.touched)||t.submitted&&t.f.firstName.errors),e.xp6(6),e.Q6J("ngIf",t.editConsentForm.controls.lastName.invalid&&(t.editConsentForm.controls.lastName.dirty||t.editConsentForm.controls.lastName.touched)||t.submitted&&t.f.lastName.errors),e.xp6(7),e.Q6J("ngIf",t.editConsentForm.controls.email.invalid&&(t.editConsentForm.controls.email.dirty||t.editConsentForm.controls.email.touched)||t.submitted&&t.f.email.errors),e.xp6(14),e.Q6J("ngIf",t.editConsentForm.controls.dataSource.invalid&&(t.editConsentForm.controls.dataSource.dirty||t.editConsentForm.controls.dataSource.touched)||t.submitted&&t.f.dataSource.errors),e.xp6(6),e.Q6J("ngIf",t.editConsentForm.controls.AuthID.invalid&&(t.editConsentForm.controls.AuthID.dirty||t.editConsentForm.controls.AuthID.touched)||t.submitted&&t.f.country.errors),e.xp6(7),e.Q6J("ngIf",t.editConsentForm.controls.country.invalid&&(t.editConsentForm.controls.country.dirty||t.editConsentForm.controls.country.touched)||t.submitted&&t.f.country.errors),e.xp6(11),e.Q6J("ngIf",t.editConsentForm.controls.ipAddress.invalid&&(t.editConsentForm.controls.ipAddress.dirty||t.editConsentForm.controls.ipAddress.touched)||t.submitted&&t.f.ipAddress.errors),e.xp6(6),e.Q6J("cssClass","int-phone-custom")("enableAutoCountrySelect",!0)("preferredCountries",t.preferredCountries)("enablePlaceholder",!0)("searchCountryFlag",!0)("selectFirstCountry",!0)("maxLength",15)("phoneValidation",!0)("separateDialCode",!0)("ngClass",e.VKq(19,Mt,t.editConsentForm.controls.phoneno.touched&&(null==t.editConsentForm.controls.phoneno?null:t.editConsentForm.controls.phoneno.invalid)||(null==t.editConsentForm.controls.phoneno?null:t.editConsentForm.controls.phoneno.invalid)&&t.submitted)),e.xp6(1),e.Q6J("ngIf",t.editConsentForm.controls.phoneno.touched&&(null==t.editConsentForm.controls.phoneno?null:t.editConsentForm.controls.phoneno.invalid)||(null==t.editConsentForm.controls.phoneno?null:t.editConsentForm.controls.phoneno.invalid)&&t.submitted)}}function Ft(n,r){1&n&&(e.TgZ(0,"div",69)(1,"div",70)(2,"span",71),e._uU(3,"Loading..."),e.qZA()()())}function Ot(n,r){if(1&n&&(e.TgZ(0,"div",77)(1,"label",78),e._uU(2,"Aadhaar"),e.qZA(),e.TgZ(3,"p",79),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.getMaskedAadhaar(null==t.consentData?null:t.consentData.identity)," ")}}function Lt(n,r){if(1&n&&(e.TgZ(0,"div")(1,"td",84),e._uU(2),e.ALo(3,"slice"),e.ALo(4,"titlecase"),e.qZA(),e.TgZ(5,"td",85),e._uU(6),e.ALo(7,"slice"),e.qZA()()),2&n){const t=r.$implicit;e.xp6(1),e.s9C("tooltip",t.key),e.xp6(1),e.hij("",(null==t?null:t.key.length)>9?e.Dn7(3,4,null==t?null:t.key,0,9)+"..":e.lcZ(4,8,null==t?null:t.key)," -\xa0"),e.xp6(3),e.s9C("tooltip",t.value),e.xp6(1),e.hij(" ",(null==t?null:t.value.length)>10?e.Dn7(7,10,null==t?null:t.value,0,10)+"..":null==t?null:t.value,"")}}const Jt=function(n,r){return{"badge-success":n,"badge-danger":r}};function Bt(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",72)(2,"span",73)(3,"h6",74),e._uU(4,"Consent Details"),e.qZA(),e._uU(5," Current Status of Consent "),e.qZA(),e.TgZ(6,"button",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(),s=e.MAs(1);return e.KtG(o.editConsentDetails(s))}),e._uU(7,"Edit Consent "),e.qZA()(),e.TgZ(8,"div",75)(9,"div",76)(10,"div",77)(11,"label",78),e._uU(12,"Consent ID"),e.qZA(),e.TgZ(13,"p",79),e._uU(14),e.qZA()(),e.TgZ(15,"div",77)(16,"label",78),e._uU(17,"Consent type"),e.qZA(),e.TgZ(18,"p",79),e._uU(19),e.qZA()(),e.TgZ(20,"div",77)(21,"label",78),e._uU(22,"Verification Status"),e.qZA(),e.TgZ(23,"p",79)(24,"span",80),e._uU(25),e.qZA()()(),e.TgZ(26,"div",77)(27,"label",78),e._uU(28,"First Name "),e.qZA(),e.TgZ(29,"p",79),e._uU(30),e.qZA()(),e.TgZ(31,"div",77)(32,"label",78),e._uU(33,"Last Name "),e.qZA(),e.TgZ(34,"p",79),e._uU(35),e.qZA()(),e.TgZ(36,"div",77)(37,"label",78),e._uU(38," Email "),e.qZA(),e.TgZ(39,"p",79),e._uU(40),e.qZA()(),e.YNc(41,Ot,5,1,"div",81),e.TgZ(42,"div",77)(43,"label",78),e._uU(44,"Data Source"),e.qZA(),e.TgZ(45,"p",79),e._uU(46),e.qZA()(),e.TgZ(47,"div",77)(48,"label",78),e._uU(49,"Country"),e.qZA(),e.TgZ(50,"p",79),e._uU(51),e.qZA()()(),e.TgZ(52,"div",82)(53,"div",77)(54,"label",78),e._uU(55,"Owner ID"),e.qZA(),e.TgZ(56,"p",79),e._uU(57),e.qZA()(),e.TgZ(58,"div",77)(59,"label",78),e._uU(60,"IP Address "),e.qZA(),e.TgZ(61,"p",79),e._uU(62),e.qZA()(),e.TgZ(63,"div",77)(64,"label",78),e._uU(65,"Created At "),e.qZA(),e.TgZ(66,"p",79),e._uU(67),e.ALo(68,"date"),e.qZA()(),e.TgZ(69,"div",77)(70,"label",78),e._uU(71,"Auth Id "),e.qZA(),e.TgZ(72,"p",79),e._uU(73),e.qZA()(),e.TgZ(74,"div",77)(75,"label",78),e._uU(76,"Updated At "),e.qZA(),e.TgZ(77,"p",79),e._uU(78),e.ALo(79,"date"),e.qZA()(),e.TgZ(80,"div",77)(81,"label",78),e._uU(82,"Additional data "),e.qZA(),e.YNc(83,Lt,8,14,"div",83),e.ALo(84,"keyvalue"),e.qZA()(),e.TgZ(85,"div",82)(86,"div",77)(87,"label",78),e._uU(88,"Phone Number"),e.qZA(),e.TgZ(89,"p",79),e._uU(90),e.qZA()(),e.TgZ(91,"div",77)(92,"label",78),e._uU(93,"Landline Number"),e.qZA(),e.TgZ(94,"p",79),e._uU(95),e.qZA()(),e.TgZ(96,"div",77)(97,"label",78),e._uU(98,"Zip Code"),e.qZA(),e.TgZ(99,"p",79),e._uU(100),e.qZA()(),e.TgZ(101,"div",77)(102,"label",78),e._uU(103,"City"),e.qZA(),e.TgZ(104,"p",79),e._uU(105),e.qZA()()()()()}if(2&n){const t=e.oxw();e.xp6(14),e.Oqu(null==t.consentData?null:t.consentData.id),e.xp6(
15),e.hij(" ",null!=t.consentData&&t.consentData.consent_type?t.consentData.consent_type.charAt(0).toUpperCase()+t.consentData.consent_type.slice(1):"","\n"),e.xp6(5),e.Q6J("ngClass",e.WLB(26,Jt,null==t.consentData?null:t.consentData.verified,!(null!=t.consentData&&t.consentData.verified))),e.xp6(1),e.hij(" ",null!=t.consentData&&t.consentData.verified?"Verified":"Unverified"," "),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.first_name),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.last_name),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.email),e.xp6(1),e.Q6J("ngIf",null==t.consentData?null:t.consentData.is_minor),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.data_source),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.country),e.xp6(6),e.Oqu(null==t.consentData?null:t.consentData.owner_id),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.ip_address),e.xp6(5),e.Oqu(e.lcZ(68,20,null==t.consentData?null:t.consentData.created_at)),e.xp6(6),e.Oqu(null==t.consentData?null:t.consentData.auth_id),e.xp6(5),e.Oqu(e.l
1cZ(79,22,null==t.consentData?null:t.consentData.updated_at)),e.xp6(5),e.Q6J("ngForOf",e.lcZ(84,24,null==t.consentData?null:t.consentData.additional_data)),e.xp6(7),e.Oqu(null==t.consentData?null:t.consentData.phone_no),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.landline_no),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.zip_code),e.xp6(5),e.Oqu(null==t.consentData?null:t.consentData.city)}}function Qt(n,r){1&n&&(e.TgZ(0,"tr",86)(1,"th"),e._uU(2,"Id"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Purposes"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Allowed"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Status"),e.qZA(),e.TgZ(9,"th"),e._uU(10,"Expiration Date"),e.qZA(),e.TgZ(11,"th",87),e._uU(12,"Created At"),e.qZA(),e.TgZ(13,"th",88),e._uU(14,"Updated At"),e.qZA(),e._UZ(15,"th",89),e.qZA())}function Et(n,r){1&n&&(e.ynx(0),e._UZ(1,"i",93),e.BQk())}function Yt(n,r){1&n&&e._UZ(0,"i",94)}function Ht(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td",90),e._uU(4),e.qZA(),e.TgZ(5,"td",90),e.YNc(6,Et,2,0,"ng-container",91),e.YNc(7,Yt,1,0,"ng-template",null,92,e.W1O),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.ALo(13,"date"),e.qZA(),e.TgZ(14,"td"),e._uU(15),e.ALo(16,"date"),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.ALo(19,"date"),e.qZA()()),2&n){const t=r.$implicit,i=e.MAs(8);e.xp6(2),e.Oqu((null==t?null:t.purpose_id)||"----"),e.xp6(2),e.Oqu(null==t?null:t.name),e.xp6(2),e.Q6J("ngIf",null==t?null:t.allow)("ngIfElse",i),e.xp6(4),e.Oqu(t.status||"----"),e.xp6(2),e.Oqu(t.expiration_date?e.xi3(13,8,t.expiration_date,"short"):"----"),e.xp6(3),e.Oqu(t.created_at?e.xi3(16,11,t.created_at,"
1short"):"----"),e.xp6(3),e.Oqu(t.updated_at?e.xi3(19,14,t.updated_at,"short"):"----")}}function Gt(n,r){1&n&&(e.TgZ(0,"tr",86)(1,"th"),e._uU(2,"Preference Name"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Channels"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Status"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Created At"),e.qZA(),e.TgZ(9,"th"),e._uU(10,"Updated At"),e.qZA()())}function Rt(n,r){1&n&&(e.ynx(0),e._UZ(1,"i",99),e.BQk())}function Kt(n,r){1&n&&(e.ynx(0),e._UZ(1,"i",100),e.BQk())}function Vt(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.YNc(2,Rt,2,0,"ng-container",12),e.YNc(3,Kt,2,0,"ng-container",12),e.qZA()),2&n){const t=r.$implicit;e.xp6(1),e.hij(" ",t.name,": "),e.xp6(1),e.Q6J("ngIf",!0===t.value),e.xp6(1),e.Q6J("ngIf",!1===t.value)}}function jt(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Vt,4,3,"div",83),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",t.channel)}}function zt(n,r){1&n&&e._uU(0,"----")}function $t(n,r){1&n&&(e.ynx(0),e.TgZ(1,"span",101),e._uU(2,"Allow All"),e.qZA(),e.BQk())}function Wt(n,r){1&n&&(e.ynx(0),e.TgZ(1,"span",102),e._uU(2,"Disallow All"),e.qZA(),e.BQk())}function Xt(n,r){1&n&&(e.ynx(0),e.TgZ(1,"span",103),e._uU(2,"Partial"),e.qZA(),e.BQk())}function en(n,r){1&n&&(e.ynx(0),e._uU(1,"----"),e.BQk())}function tn(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td",90),e._uU(2),e.qZA(),e.TgZ(3,"td",90),e.YNc(4,jt,2,1,"div",91),e.YNc(5,zt,1,0,"ng-template",null,95,e.W1O),e.qZA(),e.TgZ(7,"td",90),e.ynx(8,96),e.YNc(9,$t,3,0,"ng-container",97),e.YNc(10,Wt,3,0,"ng-container",97),e.YNc(11,Xt,3,0,"ng-container",97),e.YNc(12,en,2,0,"ng-container",98),e.BQk(),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.ALo(15,"date"),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.ALo(18,"date"),e.qZA()()),2&n){const t=r.$implicit,i=e.MAs(6);e.xp6(2),e.Oqu((null==t?null:t.name)||(null==t?null:t.preference)),e.xp6(2),e.Q6J("ngIf",(null==t||null==t.channel?null:t.channel.length)>0)("ngIfElse",i),e.xp6(4),e.Q6J("ngSwitch",null==t?null:t.allow),e.xp6(1),e.Q6J("ngSwitchCase","allow_all"),e.xp6(1),e.Q6J("ngSwitchCase","disallow_all"),e.xp6(1),e.Q6J("ngSwitchCase","partial"),e.xp6(3),e.Oqu(t.created_at?e.xi3(15,9,t.created_at,"
1short"):"----"),e.xp6(3),e.Oqu(t.updated_at?e.xi3(18,12,t.updated_at,"short"):"----")}}function nn(n,r){1&n&&(e.TgZ(0,"tr",86)(1,"th"),e._uU(2,"Proof"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Form"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Created Date"),e.qZA()())}function on(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",104),e._uU(2),e.qZA(),e.TgZ(3,"td",104)(4,"i",105),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw(),g=e.MAs(48);return e.KtG(a.editUser(g,s))}),e.qZA()(),e.TgZ(5,"td",104),e._uU(6),e.ALo(7,"date"),e.qZA()()}if(2&n){const t=r.$implicit;e.xp6(2),e.Oqu(null==t?null:t.content),e.xp6(4),e.Oqu(e.lcZ(7,2,null==t?null:t.created_at))}}function rn(n,r){1&n&&(e.TgZ(0,"tr",86)(1,"th"),e._uU(2,"Version"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Identifier"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Content"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Created Date"),e.qZA(),e._UZ(9,"th",89),e.qZA())}function sn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",90),e._uU(2),e.qZA(),e.TgZ(3,"td",90),e._uU(4),e.qZA(),e.TgZ(5,"td",90),e._uU(6),e.qZA(),e.TgZ(7,"td",90),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"td",106)(11,"i",107),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw(),g=e.MAs(50);return e.KtG(a.editLegal(g,s))}),e.qZA()()()}if(2&n){const t=r.$implicit;e.xp6(2),e.Oqu(null==t?null:t.version),e.xp6(2),e.Oqu(null==t?null:t.identifier),e.xp6(2),e.Oqu(null==t?null:t.content),e.xp6(2),e.Oqu(e.lcZ(9,4,null==t?null:t.created_at))}}function an(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",32)(1,"h4",33),e._uU(2,"Form Consent : "),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(4,"span",35),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",108)(7,"p"),e._uU(8),e.qZA()(),e.TgZ(9,"div",109)(10,"button",110),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e._uU(11,"Close"),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(8),e.hij(" ",t.proofFormConsent," ")}}function ln(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",32)(1,"h4",33),e._uU(2,"Version"),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e.TgZ(4,"span",35),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",108)(7,"p"),e._uU(8),e.qZA()(),e.TgZ(9,"div",32)(10,"h4",33),e._uU(11,"Identifier"),e.qZA()(),e.TgZ(12,"div",108)(13,"p"),e._uU(14),e.qZA()(),e.TgZ(15,"div",32)(16,"h4",33),e._uU(17,"Content"),e.qZA()(),e.TgZ(18,"div",108)(19,"p"),e._uU(20),e.qZA()(),e.TgZ(21,"div",109)(22,"button",110),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.modalRef.hide())}),e._uU(23,"Close"),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(8),e.hij(" ",t.LegalVersion," "),e.xp6(6),e.hij(" ",t.LegalIdentifier," "),e.xp6(6),e.hij(" ",t.LegalContent," ")}}function cn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",32)(1,"h4",33),e._uU(2,"Consent Certificate"),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.modalRef?null:o.modalRef.hide())}),e.TgZ(4,"span",35),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",36)(7,"div",111)(8,"section",112)(9,"div",113)(10,"h4",114),e._uU(11,"Trusted Consent Certificate"),e.qZA(),e.TgZ(12,"h5"),e._uU(13),e.qZA()(),e.TgZ(14,"div",115)(15,"a",116),e._UZ(16,"img",117),e.qZA()()(),e.TgZ(17,"section",118)(18,"h3",119),e._uU(19,"When did they visit ?"),e.qZA(),e._UZ(20,"hr"),e.TgZ(21,"div",120)(22,"div",121)(23,"ul",122)(24,"li",123)(25,"div"),e._uU(26,"Visit date"),e.qZA(),e.TgZ(27,"div")(28,"strong"),e._uU(29),e.qZA()()(),e.TgZ(30,"li",123)(31,"div",124),e._uU(32,"Visit Time"),e.qZA(),e.TgZ(33,"strong"),e._uU(34),e.qZA()()(),e.TgZ(35,"h3",125),e._uU(36," Where did they visit ? "),e.qZA(),e._UZ(37,"hr"),e.TgZ(38,"ul",126)(39,"li",127)(40,"div",128),e._uU(41,"Page URL"),e.qZA(),e.TgZ(42,"strong"),e._uU(43),e.qZA()()(),e.TgZ(44,"h3",125),e._uU(45,"Who visited ?"),e.qZA(),e._UZ(46,"hr"),e.TgZ(47,"ul",122)(48,"li",127)(49,"div",129),e._uU(50,"Remote IP Address"),e.qZA(),e.TgZ(51,"strong"),e._uU(52),e.qZA()(),e.TgZ(53,"li",127)(54,"div",129),e._uU(55," Geographic location "),e.qZA(),e.TgZ(56,"strong"),e._uU(57),e.qZA()(),e.TgZ(58,"li",127)(59,"div",129),e._uU(60,"Browser"),e.qZA(),e.TgZ(61,"strong"),e._uU(62),e.qZA()(),e.TgZ(63,"li",127)(64,"div",129),e._uU(65,"Operating System"),e.qZA(),e.TgZ(66,"strong"),e._uU(67),e.qZA()()(),e.TgZ(68,"h3",125),e._uU(69,"What did they see ?"),e.qZA(),e._UZ(70,"hr"),e.TgZ(71,"ul",122)(72,"li",127)(73,"p",124),e._uU(74,"Consent certificate captures a screenshot of page viewed by the visitor"),e.qZA(),e.TgZ(75,"a",116),e._uU(76,"Right click to open "),e.TgZ(77,"p",130),e._uU(78,"(To view this 
1screenshot right click and open in new tab or copy link and paste in new tab)"),e.qZA()(),e._UZ(79,"br"),e.qZA()()()()()(),e._UZ(80,"br"),e.qZA(),e.TgZ(81,"div",131)(82,"button",132),e._uU(83,"Print"),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(13),e.hij("Certificate ID : ",null==t.certificateModaldata?null:t.certificateModaldata.consent_id,""),e.xp6(2),e.s9C("href",t.corporateURL,e.LSH),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/privacypillarblack.png":"assets/imgs/Full-Color-Tagline.png",e.LSH),e.xp6(13),e.hij("",null==t.certificateModaldata?null:t.certificateModaldata.visit_date," UTC"),e.xp6(5),e.hij("",null==t.certificateModaldata?null:t.certificateModaldata.visit_time," UTC"),e.xp6(9),e.Oqu(null==t.certificateModaldata?null:t.certificateModaldata.page_url),e.xp6(9),e.Oqu(null==t.certificateModaldata?null:t.certificateModaldata.ip_address),e.xp6(5),e.Oqu(null==t.certificateModaldata?null:t.certificateModaldata.location),e.xp6(5),e.Oqu(null==t.certificateModaldata?null:t.certificateModaldata.browser),e.xp6(5),e.Oqu(null==t.certificateModaldata?null:t.certificateModaldata.os),e.xp6(8),e.Q6J("href",null==t.certificateModaldata?null:t.certificateModaldata.screenshot,e.LSH)}}function dn(n,r){if(1&n&&(e.TgZ(0,"alert",133),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("type",t.alertType)("dismissible",t.dismissible),e.xp6(1),e.Oqu(t.alertMsg)}}const le=function(n,r){return{oid:n,pid:r}},pn=function(n){return{hide:n}};let un=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D){this.consentSolutionService=i,this.formBuilder=o,this.loading=s,this.activatedroute=a,this.location=g,this.modalService=y,this.router=B,this.titleService=D,this.consentPrefrenseList=[],this.consentRecordList=[],this.proofFormConsent="",this.consentDatafirstname="",this.consentDatalastname="",this.consentDatads="",this.consentDatacreated="",this.consentDataupadted="",this.LegalVersion="",this.LegalIdentifier="",this.LegalContent="",this.auth_id="",this.videoURL="",this.submitted=!1,this.dismissible=!0,this.isEdit=!1,this.isOpen=!1,this.recordingList=[],this.showVideo=!1,this.certificateModaldata=[],this.loadings=!0,this.CountryISO=x.HT,this.preferredCountries=[],this.countryList=A.k,this.tloading=!0,this.portal=q.N.portalPrefix,this.corporateURL=q.N.corporateURL,this.mergedPreference=[],this.titleService.setTitle("Consent Preference Details - "+q.N.portalPrefix),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1}ngOnInit(){this.preferredCountries=[x.HT.UnitedStates],this.activatedroute.queryParamMap.subscribe(i=>{this.queryOID=i.get("oid"),this.queryPID=i.get("pid")}),this.activatedroute.params.subscribe(i=>{this.consentID=i.id});try{this.consentSolutionService.consentSolutionDetails.subscribe(i=>{null===i&&this.location.back()},i=>{console.error(i)})}catch{}this.initForm(),this.onGetdetailsRecord()}seeHistory(){this.router.navigate(["consent-preference","consent-records","details",this.consentID,"history"],{queryParams:{oid:this.queryOID,pid:this.queryPID}})}initForm(){this.editConsentForm=this.formBuilder.group({firstName:[""],lastName:[""],email:["",[p.kI.required,p.kI.pattern]],dataSource:[""],country:[""],ownerID:[""],AuthID:[""],ipAddress:["",[p.kI.maxLength(42)]],phoneno:[""],landlineno:[""],city:[""],zipcode:[""]})}onGetConsentRecording(){this.loading.start(),this.consentSolutionService.getConsentRecording(this.constructor.name,u.e.consentSolutionModule,this.queryPID,this.consentID).subscribe(i=>{this.loading.stop(),i.response.length>0&&(this.recordingList=i.response)},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i.message,this.alertType="danger"})}onResendEmail(){this.loading.start(),this.isOpen=!1,this.consentSolutionService.resendEmail(this.constructor.name,u.e.consentSolutionModule,this.queryPID,this.consentID).subscribe(i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i.response,this.alertType="success",this.onGetdetailsRecord()},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i.error,this.alertType="danger"})}get f(){return this.editConsentForm.controls}onGenerateConsentCertificate(){this.loading.start(),this.consentSolutionService.GenerateCertificate(this.constructor.name,u.e.consentSolutionModule,this.queryPID,this.consentID).subscribe(i=>{this.loading.stop(),this.onGetConsentCertificate()},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i.message,this.alertType="danger"})}onGetdetailsRecord(){this.loading.start(),this.consentSolutionService.getConsentrecord(this.constructor.name,u.e.consentSolutionModule,this.queryPID,this.consentID).subscribe(i=>{this.loading.stop(),200==i.status&&(this.consentData=i.response,this.mergedPreference=[...this.consentData.preferences,...this.consentData?.communication_preferences?this.consentData.communication_preferences:[]],this.mergedPreference=this.mergedPreference.map(o=>{if(o.channel&&o.channel.length>0){const s=o.channel.some(g=>!0===g.value),a=o.channel.some(g=>!1===g.value);s&&a?o.allow="partial":!s&&a?o.allow="disallow_all":s&&!a&&(o.allow="allow_all")}return o}
1),this.loadings=!1,this.tloading=!1)},i=>{this.loading.stop(),this.loadings=!1,this.tloading=!1,this.isOpen=!0,this.alertMsg=i.message,this.alertType="danger"})}onGetConsentCertificate(){this.loading.start(),this.consentSolutionService.getCertificateRecord(this.constructor.name,u.e.consentSolutionModule,this.queryPID,this.consentID).subscribe(i=>{200==i.status&&"No record found."!==i.response&&(this.loading.stop(),this.certificateList=i.response)},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i.message,this.alertType="danger"})}onUpdateConsent(){if(this.submitted=!0,this.editConsentForm.invalid)return;const i={owner_id:this.editConsentForm.value.ownerID,email:this.editConsentForm.value.email,first_name:this.editConsentForm.value.firstName,last_name:this.editConsentForm.value.lastName,verified:this.consentData.verified,optout:this.consentData.optout,country:this.editConsentForm.value.country,data_source:this.editConsentForm.value.dataSource,ip_address:this.editConsentForm.value.ipAddress,auth_id:this.editConsentForm.value.AuthID,phone_no:null!==this.editConsentForm.value.phoneno?this.editConsentForm.value.phoneno.internationalNumber:"",landline_no:this.editConsentForm.value.landlineno,city:this.editConsentForm.value.city,zip_code:this.editConsentForm.value.zipcode};this.loading.start(),this.consentSolutionService.updateConsent(this.constructor.name,u.e.consentSolutionModule,i,this.consentData.id).subscribe(o=>{this.loading.stop(),200===o.status&&(this.consentData.owner_id=this.editConsentForm.value.ownerID,this.consentData.email=this.editConsentForm.value.email,this.consentData.first_name=this.editConsentForm.value.firstName,this.consentData.last_name=this.editConsentForm.value.lastName,this.consentData.country=this.editConsentForm.value.country,this.consentData.data_source=this.editConsentForm.value.dataSource,this.consentData.ip_address=this.editConsentForm.value.ipAddress,this.consentData.auth_id=this.editConsentForm.value.AuthID,this.consentData.phone_no=this.editConsentForm.value.phoneno,this.consentData.landline_no=this.editConsentForm.value.landlineno,this.consentData.city=this.editConsentForm.value.city,this.consentData.zip_code=this.editConsentForm.value.zipcode,this.isOpen=!0,this.alertMsg=o.message,this.alertType="success",this.modalRef.hide(),this.loadings=!0,this.tloading=!0,this.onGetdetailsRecord())},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o.message,this.alertType="danger",this.modalRef.hide(),this.loadings=!1,this.tloading=!1})}editUser(i,o){this.proofFormConsent=o.form,this.modalRef=this.modalService.show(i,{keyboard:!1,ignoreBackdropClick:!0})}editLegal(i,o){this.LegalVersion=o.version,this.LegalIdentifier=o.identifier,this.LegalContent=o.content,this.modalRef=this.modalService.show(i,{keyboard:!1,ignoreBackdropClick:!0})}editConsentDetails(i){let o;this.editConsentForm.patchValue({firstName:this.consentData.first_name,lastName:this.consentData.last_name,email:this.consentData.email,dataSource:this.consentData.data_source,country:this.consentData.country,ownerID:this.consentData.owner_id,ipAddress:this.consentData.ip_address,AuthID:this.consentData.auth_id,phoneno:this.consentData.phone_no,landlineno:this.consentData.landline_no,city:this.consentData.city,zipcode:this.consentData.zip_code}),this.checkCountryFromPhoneNumber(this.editConsentForm.value.phoneno),void 0!==this.editConsentForm.value.phoneno&&(o=this.editConsentForm.value.phoneno.indexOf(" "),this.editConsentForm.controls.phoneno.setValue(this.editConsentForm.value.phoneno.substring(o))),this.modalRef=this.modalService.show(i,{keyboard:!1,ignoreBackdropClick:!0})}checkCountryFromPhoneNumber(i){if(void 0!==i){let o=this.countryList.findIndex(s=>s.code==Number(i.split(" ")[0]));if(-1!==o){let s=this.countryList[o].iso.toLowerCase();void 0!==s&&(this.preferredCountries=[s])}else this.preferredCountries=[x.HT.UnitedStates]}}openModal(i){this.modalRef=this.modalService.show(i,{animated:!1,keyboard:!1,class:"modal-lg"})}open(i){this.certificateModaldata=[],this.certificateModaldata=i,this.openModal(this.consentcertificate)}selectVideo(i){this.loading.start(),this.consentSolutionService.getVideoURL(this.constructor.name,u.e.consentSolutionModule,this.queryPID,i.id).subscribe(o=>{this.loading.stop(),o.response?(this.recordingObj=i,this.showVideo=!0,this.videoURL=o.response):(this.isOpen=!0,this.alertMsg="video is not val
1id",this.alertType="danger")},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}getMaskedAadhaar(i){if(!Array.isArray(i))return null;const o=i.find(g=>"AADHAAR"===g?.name?.toUpperCase());if(!o?.value)return null;const s=String(o.value);return s.slice(-4).padStart(s.length,"X")}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(d.e),e.Y36(p.QS),e.Y36(_.LA),e.Y36(b.gz),e.Y36(l.Ye),e.Y36(f.tT),e.Y36(b.F0),e.Y36(Z.Dx))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consentlegal-table"]],viewQuery:function(o,s){if(1&o&&e.Gf(ft,7),2&o){let a;e.iGM(a=e.CRH())&&(s.consentcertificate=a.first)}},decls:55,vars:26,consts:[["editdetails",""],["appTheme","",1,"ml-2","bb-crum","d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",2,"margin-left","2px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/consent-preference/consent-records",3,"queryParams"],[1,"breadcrumb-item","active"],["appTheme","",1,"container-fluid"],[1,"row","row-sm"],[1,"col-lg-6","col-xl-12"],[1,"card","w-100",2,"height","270px"],["class","loader",4,"ngIf"],[4,"ngIf"],[1,"card","mt-3"],[1,"card-body"],["customClass","customClass"],["header","Purposes",1,"customs"],[2,"display","flex","justify-content","end","margin-bottom","10px"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],["scrollHeight","300px","styleClass","p-datatable-sm ",3,"value","scrollable","loading"],["pTemplate","header"],["pTemplate","body"],["header","Preferences",1,"customs"],["scrollHeight","185px","styleClass","p-datatable-sm ",3,"value","scrollable","loading"],["header","Proofs",1,"hello"],["scrollHeight","185px","styleClass","p-datatable-sm",3,"value","scrollable","loading"],["header","Legal Notices",1,"customs"],["edit",""],["editLeg",""],["consentcertificate",""],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],["appTheme","",1,"modal-body"],[3,"formGroup","ngSubmit"],[1,"form-group","d-flex","justify-content-between"],[1,"input-group"],["formControlName","firstName","placeholder","Enter first name",1,"form-control"],["class","text-danger",4,"ngIf"],["formControlName","lastName","placeholder","Enter last name",1,"form-control"],[1,"form-group"],["aria-hidden","true",1,"tx-8","fa","fa-asterisk","tx-danger","ml-1",2,"vertical-align","super"],["formControlName","email","pattern","[a-zA-Z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$","placeholder","Enter Email ID",1,"form-control"],[1,"input-group","d-flex"],[1,"custom-control","custom-radio","custom-control-inline"],["type","radio","id","inlineRadio5","formControlName","dataSource","value","private",1,"custom-control-input"],["for","inlineRadio5",1,"custom-control-label"],["type","radio","id","inlineRadio4","formControlName","dataSource","value","public",1,"custom-control-input"],["for","inlineRadio4",1,"custom-control-label"],[2,"margin-left","75px"],["formControlName","AuthID","placeholder","Enter Authentication ID",1,"form-control"],["formControlName","country","placeholder","Enter Country",1,"form-control"],[1,"ml-5"],["formControlName","ownerID","placeholder","Enter Owner ID",1,"form-control"],["formControlName","ipAddress","placeholder","Enter IP Address",1,"form-control"],["name","phoneno","formControlName","phoneno",3,"cssClass","enableAutoCountrySelect","preferredCountries","enablePlaceholder","searchCountryFlag","selectFirstCountry","maxLength","phoneValidation","separateDialCode","ngClass"],["class","is-invalid-intphone",4,"ngIf"],["formControlName","landlineno","placeholder","Enter landline",1,"form-control"],["formControlName","city","placeholder","Enter your city",1,"form-control"],["formControlName","zipcode","placeholder","Enter Zip code",1,"form-control"],[1,"d-flex",2,"justify-content","flex-end"],[1,"btn-group"],["type","button",1,"btn","btn-link","btn-sm","pull-right",3,"click"],["type","submit",1,"btn","btn-primary","btn-sm"],[1,"text-danger"],[1,"is-invalid-intphone"],[1,"loader"],["role","status",1,"spinner-border"],[1,"sr-only"],[1,"card-header","d-flex","align-items-center","justify-content-between","pd-13"],[1,"tx-12","tx-color-03","mg-b-0"],[1,"mg-b-0"],[1,"card-body","pd-10"],[1,"row","row-sm","pd-t-5"],[1,"col-sm"],[1,"tx-11","tx-medium","tx-spacing-1","tx-color-03","tx-sans","mg-y-0"],[1,"mg-b-0",2,"font-size","small"],[1,"badge",3,"ngClass"],["class","col-sm",4,"ngIf"],[1,"row","row-sm","pd-t-10","bd-t"],[4,"ngFor","ngForOf"],[1,"key",3,"tooltip"],[1,"value",3,"tooltip"],[2,"text-align","center"],[2,"padding-left","2rem"],[2,"padding-left","2.5rem"],[2,"width","40px"],[1,"tabledatas"],[4,"ngIf","ngIfElse"],["elseblock",""],[1,"pi","pi-check","ml-2",2,"font-size","1.0rem","color","#5cb85c"],[1,"pi","pi-times","ml-2",2,"font-size","1.0rem","color","#d9534f"],["noChannel",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"pi","pi-check","ml-1",2,"font-size","1rem","color","#5cb85c"],[1,"pi","pi-times","ml-1",2,"font-size","1rem","color","#d9534f"],[2,"color","#5cb85c","font-weight","600"],[2,"color","#d9534f","font-weight","600"],[2,"color","#f0ad4e","font-weight","600"],[1,"tabledata"],["title","View Form Consent",1,"pi","pi-eye",2,"font-size","0.9rem",3,"click"],[1,"tabledatas",2,"text-align-last","right","width","40px"],["title","View details",1,"pi","pi-eye",2,"font-size","0.9rem",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-link","pull-right",3,"click"],["id","demo",1,"container","container-width",2,"border-top","10px solid var(--side-nav-org)","box-shadow","0px 0px 2px 2px grey","padding","20px","width","80%","margin","0 auto"],[2,"display","flex","justify-content","space-between"],[2,"padding-left","10px"],[2,"color","orange"],[2,"padding-right","10px","margin-top","10px"],["target","_blank",3,"href"],["width","160","height","50",3,"src"],[2,"padding","16px"],[2,"font-weight","bold"],[2,"display","flex","flex-direction","row","flex-wrap","wrap","font-family","Arial, Helvetica, sans-serif","font-size","14px"],[2,"width","100%"],[1,"list-unstyled"],[2,"list-style-type","none","align-items","center","display","flex","justify-content","space-between","line-height","30px"],[2,"margin-top","10px"],[2,"font-weight","bold","margin-top","60px"],[1,"list-unstyled",2,"margin-top","10px"],[2,"margin","0","padding","0","list-style-type","none","align-items","center","display","flex","justify-content","space-between","line-height","30px"],[1,"boldtxt"],[1,"boldtxt",2,"margin-top","10px"],[1,"tx-11"],[2,"display","flex","justify-content","center"],["type","button","printSectionId","demo","ngxPrint","",1,"btn","btn-sm","btn-primary","mb-3","mr-3",2,"width","20%"],["dismissOnTimeout","5000",3,"type","dismissible"]],template:function(o,s){1&o&&(e.YNc(0,Dt,95,21,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1)(3,"div")(4,"nav",2)(5,"ol",3)(6,"li",4),e._uU(7,"Privacy"),e.qZA(),e.TgZ(8,"li",4)(9,"a",5),e._uU(10,"Consent Solution"),e.qZA()(),e.TgZ(11,"li",4)(12,"a",5),e._uU(13," C
1onsent Records"),e.qZA()(),e.TgZ(14,"li",6),e._uU(15,"Consent Details"),e.qZA()()()()(),e.TgZ(16,"div",7)(17,"div",8)(18,"div",9)(19,"div",10),e.YNc(20,Ft,4,0,"div",11),e.YNc(21,Bt,106,29,"div",12),e.qZA()()(),e.TgZ(22,"div",13)(23,"div",14)(24,"p-tabView",15)(25,"p-tabPanel",16)(26,"div",17)(27,"button",18),e.NdJ("click",function(){return s.seeHistory()}),e._uU(28,"See History "),e.qZA()(),e.TgZ(29,"p-table",19),e.YNc(30,Qt,16,0,"ng-template",20),e.YNc(31,Ht,20,17,"ng-template",21),e.qZA()(),e.TgZ(32,"p-tabPanel",22)(33,"div",17)(34,"button",18),e.NdJ("click",function(){return s.seeHistory()}),e._uU(35,"See History "),e.qZA()(),e.TgZ(36,"p-table",23),e.YNc(37,Gt,11,0,"ng-template",20),e.YNc(38,tn,19,15,"ng-template",21),e.qZA()(),e.TgZ(39,"p-tabPanel",24)(40,"p-table",25),e.YNc(41,nn,7,0,"ng-template",20),e.YNc(42,on,8,4,"ng-template",21),e.qZA()(),e.TgZ(43,"p-tabPanel",26)(44,"p-table",23),e.YNc(45,rn,10,0,"ng-template",20),e.YNc(46,sn,12,6,"ng-template",21),e.qZA()()()()()(),e.YNc(47,an,12,1,"ng-template",null,27,e.W1O),e.YNc(49,ln,24,3,"ng-template",null,28,e.W1O),e.YNc(51,cn,84,11,"ng-template",null,29,e.W1O),e.TgZ(53,"div",30),e.YNc(54,dn,2,3,"alert",31),e.qZA()),2&o&&(e.xp6(9),e.Q6J("queryParams",e.WLB(18,le,s.queryOID,s.queryPID)),e.xp6(3),e.Q6J("queryParams",e.WLB(21,le,s.queryOID,s.queryPID)),e.xp6(8),e.Q6J("ngIf",s.loadings),e.xp6(1),e.Q6J("ngIf",!s.loadings),e.xp6(8),e.Q6J("value",null==s.consentData?null:s.consentData.purposes)("scrollable",!0)("loading",s.tloading),e.xp6(7),e.Q6J("value",s.mergedPreference)("scrollable",!0)("loading",s.tloading),e.xp6(4),e.Q6J("value",null==s.consentData?null:s.consentData.proofs)("scrollable",!0)("loading",s.tloading),e.xp6(4),e.Q6J("value",null==s.consentData?null:s.consentData.legal_notices)("scrollable",!0)("loading",s.tloading),e.xp6(9),e.Q6J("ngClass",e.VKq(24,pn,!s.isOpen)),e.xp6(1),e.Q6J("ngIf",s.isOpen))},dependencies:[l.mk,l.sg,l.O5,l.RF,l.n9,l.ED,b.rH,N.iA,w.jx,p._Y,p.Fj,p._,p.JJ,p.JL,p.c5,p.sg,p.u,ee.xf,ee.x4,ae.IH,k.i9,F.wx,x.FV,x.mh,R.E,l.OU,l.rS,l.uU,l.Nd],styles:['.headings{color:#666}.text-line{font-size:15px;color:#444;text-transform:capitalize}.head-iab{color:#666;font-weight:600;border-bottom:2px solid #3968fa;padding-bottom:8px;padding-right:170px}.card-body{background:#ffffff}td:nth-child(0){color:#000!important}.product-badge{border-radius:6px;padding:.25em .5rem;text-transform:uppercase;font-weight:700;letter-spacing:.3px;font-size:12px;padding-top:7px;padding-bottom:7px}.product-badge.status-instock{background:#c8e6c9;color:#256029}.product-badge.status-lowstock{background:#feedaf;color:#8a5340}.product-badge.status-outofstock{background:#ffcdd2;color:#c63737}.bb-crum{margin-left:16px!important;margin-bottom:15px}.spinner-border{display:inline-block;width:40px!important;height:40px!important}.loader{display:flex!important;justify-content:center!important;height:100%;align-items:center!important}@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width: 1024px){table,thead,tbody,th,tr,.tabledata,.tabledatas{display:block}thead tr{position:absolute;top:-9999px;left:-9999px}.tabledata,.tabledatas{border:none;border-bottom:1px solid #eee;position:relative;padding-left:50%}.tabledata:nth-of-type(1):before{content:"Proof : "}.tabledata:nth-of-type(2):before{content:"Form  : "}.tabledata:nth-of-type(3):before{content:"Created Date  : "}.tabledatas:nth-of-type(1):before{content:"Version : "}.tabledatas:nth-of-type(2):before{content:"Identifier  : "}.tabledatas:nth-of-type(3):before{content:"Created Date  : "}}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.az-logo{height:75px}.alert-success{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.p-tabview .p-tabview-nav{justify-content:center;flex-direction:initial;padding:0!important}\n'],encapsulation:2}),n})();var gn=c(19119),ce=c(22833),_n=c(85740),mn=c(32270),fn=c(75902),te=c(54781),hn=c(17375);const Cn=["template"],j=function(n,r){return{color:n,"box-shadow":r}};function bn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",10)(1,"div")(2,"div",11)(3,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showVendorType=1)}),e._uU(4,"HTML"),e.qZA(),e.TgZ(5,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showVendorType=2)}),e._uU(6,"WordPress"),e.qZA(),e.TgZ(7,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.showVendorType=3,e.KtG(o.onTabclick("cmp/implementation-videos/consentpreference/consent%20pref%20shopify.webm"))}),e._uU(8,"Shopify"),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.showVendorType=4,e.KtG(o.onTabclick("cmp/implementation-videos/consentpreference/consent%20pref%20bigcommerce.webm"))}),e._uU(10,"BigCommerce"),e.qZA(),e.TgZ(11,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.showVendorType=5,e.KtG(o.onTabclick("cmp/implementation-videos/consentpreference/consent%20pref%20squarespace.webm"))}),e._uU(12,"Squarespace"),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.showVendorType=6,e.KtG(o.onTabclick("cmp/implementation-videos/consentpreference/consent%20preference%20blogger.webm"))}),e._uU(14,"Blogger"),e.qZA()()()()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngStyle",e.WLB(6,j,1===t.showVendorType?"#1B365D":"#555",1===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(9,j,2===t.showVendorType?"#1B365D":"#555",2===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(12,j,3===t.showVendorType?"#1B365D":"#555",3===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(15,j,4===t.showVendorType?"#1B365D":"#555",4===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(18,j,5===t.showVendorType?"#1B365D":"#555",5===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(21,j,6===t.showVendorType?"#1B365D":"#555",6===t.showVendorType?"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)":null))}}function xn(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with HTML"),e.qZA())}function Zn(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with WordPress"),e.qZA())}function vn(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with Shopify"),e.qZA())}function Tn(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with BigCommerce"),e.qZA())}function yn(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with Squarespace"),e.qZA())}function An(n,r){1&n&&(e.TgZ(0,"label"),e._uU(1,"with Blogger"),e.qZA())}function wn(n,r){1&n&&(e.TgZ(0,"h4",48),e._uU(1,"Preference Build Manager Script"),e.qZA())}function Un(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"ul",49)(1,"li")(2,"div",50)(3,"h5",51),e._uU(4,"Copy your Preference Build Manager Script "),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(7,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(8,"i",53),e._uU(9),e.qZA()(),e.TgZ(10,"div",54)(11,"p",55)(12,"span")(13,"code",56),e._uU(14),e.qZA()(),e.TgZ(15,"span",57),e._uU(16),e.qZA(),e.TgZ(17,"span")(18,"code",56),e._uU(19),e.qZA()(),e._UZ(20,"br"),e.qZA()()(),e.TgZ(21,"li")(22,"h5",17),e._uU(23,"Where to Paste!"),e.qZA(),e.TgZ(24,"p"),e._uU(25,"You must insert the Preference Build Manager script before closing the"),e.TgZ(26,"strong"),e._uU(27,"</head>"),e.qZA(),e._uU(28," tag. "),e.qZA(),e.TgZ(29,"div",58)(30,"span"),e._uU(31,"<html>"),e.qZA(),e._UZ(32,"br"),e._uU(33," \xa0\xa0"),e.TgZ(34,"span"),e._uU(35,"<head>"),e.qZA(),e._UZ(36,"br"),e._uU(37," \xa0\xa0\xa0\xa0"),e.TgZ(38,"span"),e._uU(39,"<title>"),e.qZA(),e._UZ(40,"br"),e._uU(41," \xa0\xa0\xa0\xa0"),e.TgZ(42,"span"),e._uU(43,"</title>"),e.qZA(),e._UZ(44,"br"),e._uU(45," \xa0\xa0\xa0\xa0"),e.TgZ(46,"span",59),e._uU(47,"Paste here!"),e.qZA(),e._UZ(48,"br"),e._uU(49," \xa0\xa0"),e.TgZ(50,"span"),e._uU(51,"</head>"),e.qZA(),e._UZ(52,"br"),e._uU(53," \xa0\xa0"),e.TgZ(54,"span"),e._uU(55,"<body>"),e.qZA(),e._UZ(56,"br"),e._uU(57," \xa0\xa0\xa0\xa0"),e.TgZ(58,"span"),e._uU(59,"<p>
1You Should paste your code before closing body tag.</p>"),e.qZA(),e._UZ(60,"br"),e._uU(61," \xa0\xa0"),e.TgZ(62,"span"),e._uU(63,"</body>"),e.qZA(),e._UZ(64,"br"),e.TgZ(65,"span"),e._uU(66,"</html>"),e.qZA()()(),e.TgZ(67,"li")(68,"h5",17),e._uU(69,"Done"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(9),e.hij(" ",t.isCopied.one?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function qn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Preference Build Manager Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function kn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,qn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"WordPress admin panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",17),e._uU(10,"In the left pane, in "),e.TgZ(11,"strong"),e._uU(12,"Plugins"),e.qZA(),e._uU(13," and click "),e.TgZ(14,"strong"),e._uU(15,"Add New"),e.qZA(),e._uU(16,"."),e.qZA(),e._UZ(17,"img",60),e.qZA(),e.TgZ(18,"li")(19,"h5",17),e._uU(20,"In "),e.TgZ(21,"strong"),e._uU(22,"Search Plugins"),e.qZA(),e._uU(23),e.TgZ(24,"strong"),e._uU(25,"Enter"),e.qZA(),e._uU(26,"."),e.qZA()(),e.TgZ(27,"li")(28,"h5",17),e._uU(29,"Click "),e.TgZ(30,"strong"),e._uU(31,"Install Now"),e.qZA(),e._uU(32,", and click "),e.TgZ(33,"strong"),e._uU(34,"Activate"),e.qZA(),e._uU(35,"."),e.qZA(),e._UZ(36,"img",61),e.TgZ(37,"p"),e._uU(38,"The installed plugin will appear under the Settings menu."),e.qZA()(),e.TgZ(39,"li")(40,"h5",17),e._uU(41,"In "),e.TgZ(42,"strong"),e._uU(43,"Settings"),e.qZA(),e._uU(44,", click "),e.TgZ(45,"strong"),e._uU(46),e.qZA(),e._uU(47,"."),e.qZA(),e._UZ(48,"img",62),e.qZA(),e.TgZ(49,"li")(50,"h5",17),e._uU(51,"In the "),e.TgZ(52,"strong"),e._uU(53,"Insert JS Code editor"),e.qZA(),e._uU(54,", insert the Preference Build Manager script and click "),e.TgZ(55,"strong"),e._uU(56,"Save"),e.qZA(),e._uU(57,". "),e.qZA(),e._UZ(58,"img",63),e.qZA(),e.TgZ(59,"li")(60,"h5",17),e._uU(61,"Now run your website. Check that the Preference Build Manager Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript),e.xp6(22),e.hij(', type "',t.portal,'", and press '),e.xp6(23),e.hij("",t.portal," GDPR")}}function Sn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Preference Build Manager Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function Pn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Sn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to "),e.TgZ(5,"strong"),e._uU(6,"Shopify admin panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Home"),e.qZA(),e._uU(13," and select "),e.TgZ(14,"strong"),e._uU(15,"Customize theme"),e.qZA(),e._uU(16,"."),e.qZA(),e._UZ(17,"img",64),e.qZA(),e.TgZ(18,"li")(19,"h5",45),e._uU(20,"In "),e.TgZ(21,"strong"),e._uU(22,"Actions"),e.qZA(),e._uU(23,", click "),e.TgZ(24,"strong"),e._uU(25,"Edit code"),e.qZA(),e._uU(26,"."),e.qZA(),e._UZ(27,"img",65),e.TgZ(28,"p"),e._uU(29,"The code editor window appears."),e.qZA()(),e.TgZ(30,"li")(31,"h
15",45),e._uU(32,"A list of code files is available in the left pane, under the "),e.TgZ(33,"strong"),e._uU(34,"Layout"),e.qZA(),e._uU(35," folder. If you want to publish the Preference Build Manager Banner on every page of your website, you must add the code to the "),e.TgZ(36,"strong"),e._uU(37,"/theme.liquid file"),e.qZA(),e._uU(38,"."),e.qZA(),e._UZ(39,"img",66),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"Insert the Preference Build Manager Banner CDN script before closing the </head> tag and click "),e.TgZ(43,"strong"),e._uU(44,"Save"),e.qZA(),e._uU(45,"."),e.qZA()(),e.TgZ(46,"li")(47,"h5",45),e._uU(48,"Else, if you want to publish on any specific page, open the respective file from the left pane and insert the JS code."),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the Preference Build Manager banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript)}}function In(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Preference Build Manager Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function Nn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,In,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"BigCommerce control panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Storefront"),e.qZA(),e._uU(13," and click "),e.TgZ(14,"strong"),e._uU(15,"Script Manager"),e.qZA(),e._uU(16,"."),e.qZA(),e.TgZ(17,"p"),e._uU(18,"The Script Manager page appears."),e.qZA(),e._UZ(19,"img",67),e.qZA(),e.TgZ(20,"li")(21,"h5",45),e._uU(22,"Click "),e.TgZ(23,"strong"),e._uU(24,"Create a Script"),e.qZA(),e._uU(25,"."),e.qZA(),e.TgZ(26,"p"),e._uU(27,"The Create Script page appears."),e.qZA()(),e.TgZ(28,"li")(29,"h5",45),e._uU(30,"Enter any Name of script and Description. "),e.qZA()(),e.TgZ(31,"li")(32,"h5",45),e._uU(33,'Select a page option where the script needs to be added, and under "Script type", select '),e.TgZ(34,"strong"),e._uU(35,"Script"),e.qZA(),e._uU(36,"."),e.qZA(),e.TgZ(37,"p"),e._uU(38,"The script editor appears."),e.qZA(),e._UZ(39,"img",68),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"In the "),e.TgZ(43,"strong"),e._uU(44,"Script contents"),e.qZA(),e._uU(45,", insert the Preference Build Manager Banner CDN script, and click "),e.TgZ(46,"strong"),e._uU(47,"Save"),e.qZA(),e._uU(48,". "),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the Preference Build Manager Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript)}}function Mn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Preference Build Manager Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function Dn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Mn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to "),e.TgZ(5,"strong"),e._uU(6,"Squarespace"),e.qZA(),e._uU(7," and go to the "),e.TgZ(8,"strong"),e._uU(9,"My Dashboard"),e.qZA(),e._uU(10," page."),e.qZA()(),e.TgZ(11,"li")(12,"h5",45),e._uU(13,"Go to "),e.TgZ(14,"strong"),e._uU(15,"Settings"),e.qZA(),e._uU(16,", click "),e.TgZ(17,"strong"),e._uU(18,"Advanced"),e.qZA(),e._uU(19,", and then click "),e.TgZ(20,"strong"),e._uU(21,"Code Injection"),e.qZA(),e._uU(22,". The code editing window appears."),e.qZA(),e._UZ(23,"img",69),e.qZA(),e.TgZ(24,"li")(25,"h5",45),e._uU(26,"In the "),e.TgZ(27,"strong"),e._uU(28,"HEADER"),e.qZA(),e._uU(29),e.TgZ(30,"strong"),e._uU(31,"Save"),e.qZA(),e._uU(32,". "),e.qZA(),e._UZ(33,"img",70),e.qZA(),e.TgZ(34,"li")(35,"h5",45),e._uU(36,"Now run your website. Check that the Preference Build Manager banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript),e.xp6(28),e.hij(" code editor, insert the copied script from the ",t.portal," Portal, and at the top-left of the window click ")}}function Fn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Preference Build Manager Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.copyToClipboardForPreferenceBuild())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.preferenceBuildManagerScript," "),e.xp6(3),e.Oqu(t.closeScript)}}function On(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Fn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"Blogger application"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Layout"),e.qZA(),e._uU(13,"."),e.qZA(),e.TgZ(14,"p"),e._uU(15,"The layout configuration window appears."),e.qZA(),e._UZ(16,"img",71),e.qZA(),e.TgZ(17,"li")(18,"h5",45),e._uU(19,"Under the Sidebar (Top) module, click "),e.TgZ(20,"strong"),e._uU(21,"Add a Gadget"),e.qZA(),e._uU(22,"."),e.qZA(),e.TgZ(23,"p"),e._uU(24,"A list of gadget options appears."),e.qZA()(),e.TgZ(25,"li")(26,"h5",45),e._uU(27,"Select "),e.TgZ(28,"strong"),e._uU(29,"HTML/JavaScript"),e.qZA(),e._uU(30,"."),e.qZA(),e.TgZ(31,"p"),e._uU(32,"Configure HTML/JavaScript appears."),e.qZA()(),e.TgZ(33,"li")(34,"h5",45),e._uU(35,"In "),e.TgZ(36,"strong"),e._uU(37,"Title"),e.qZA(),e._uU(38,", enter a suitable title for the script. "),e.qZA(),e._UZ(39,"img",72),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"In "),e.TgZ(43,"strong"),e._uU(44,"Content"),e.qZA(),e._uU(45,", insert the Preference Build Manager Banner CDN script, and click "),e.TgZ(46,"strong"),e._uU(47,"SAVE"),e.qZA(),e._uU(48,"."),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the Preference Build Manager Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript)}}function Ln(n,r){if(1&n&&(e.TgZ(0,"div",16)(1,"div",17),e.YNc(2,wn,2,0,"h4",18),e.YNc(3,Un,70,4,"ul",19),e.YNc(4,kn,62,3,"ul",19),e.YNc(5,Pn,52,1,"ul",19),e.YNc(6,Nn,52,1,"ul",19),e.YNc(7,Dn,37,2,"ul",19),e.YNc(8,On,52,1,"ul",19),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",2==t.showVendorType),e.xp6(1),e.Q6J("ngIf",3==t.showVendorType),e.xp6(1),e.Q6J("ngIf",4==t.showVendorType),e.xp6(1),e.Q6J("ngIf",5==t.showVendorType),e.xp6(1),e.Q6J("ngIf",6==t.showVendorType)}}function Jn(n,r){1&n&&(e.TgZ(0,"h4",48),e._uU(1,"JavaScript SDK Script"),e.qZA())}function Bn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"ul",49)(1,"li")(2,"div",50)(3,"h5",51),e._uU(4,"Copy your Javascript SDK Script "),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(7,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.copyToClipboard())}),e._UZ(8,"i",53),e._uU(9),e.qZA()(),e.TgZ(10,"div",54)(11,"p",55)(12,"span")(13,"code",56),e._uU(14),e.qZA()(),e.TgZ(15,"span",57),e._uU(16),e.qZA(),e.TgZ(17,"span")(18,"code",56),e._uU(19),e.qZA()(),e._UZ(20,"br"),e.qZA()()(),e.TgZ(21,"li")(22,"h5",17),e._uU(23,"Where to Paste!"),e.qZA(),e.TgZ(24,"p"),e._uU(25,"You must insert the javascript SDK script before closing the"),e.TgZ(26,"strong"),e._uU(27,"</head>"),e.qZA(),e._uU(28," tag. "),e.qZA(),e.TgZ(29,"div",58)(30,"span"),e._uU(31,"<html>"),e.qZA(),e._UZ(32,"br"),e._uU(33," \xa0\xa0"),e.TgZ(34,"span"),e._uU(35,"<head>"),e.qZA(),e._UZ(36,"br"),e._uU(37," \xa0\xa0\xa0\xa0"),e.TgZ(38,"span"),e._uU(39,"<title>"),e.qZA(),e._UZ(40,"br"),e._uU(41," \xa0\xa0\xa0\xa0"),e.TgZ(42,"span"),e._uU(43,"</title>"),e.qZA(),e._UZ(44,"br"),e._uU(45," \xa0\xa0\xa0\xa0"),e.TgZ(46,"span",59),e._uU(47,"Paste here!"),e.qZA(),e._UZ(48,"br"),e._uU(49," \xa0\xa0"),e.TgZ(50,"span"),e._uU(51,"</head>"),e.qZA(),e._UZ(52,"br"),e._uU(53," \xa0\xa0"),e.TgZ(54,"span"),e._uU(55,"<body>"),e.qZA(),e._UZ(56,"br"),e._uU(57," \xa0\xa0\xa0\xa0"),e.TgZ(58,"span"),e._uU(59,"<p>
1You Should paste your code before closing body tag.</p>"),e.qZA(),e._UZ(60,"br"),e._uU(61," \xa0\xa0"),e.TgZ(62,"span"),e._uU(63,"</body>"),e.qZA(),e._UZ(64,"br"),e.TgZ(65,"span"),e._uU(66,"</html>"),e.qZA()()(),e.TgZ(67,"li")(68,"h5",17),e._uU(69,"Done"),e.qZA()()()}if(2&n){const t=e.oxw(2);e.xp6(9),e.hij(" ",t.isCopied.one?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptUrl," "),e.xp6(3),e.Oqu(t.closeScript)}}function Qn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function En(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Qn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"WordPress admin panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",17),e._uU(10,"In the left pane, in "),e.TgZ(11,"strong"),e._uU(12,"Plugins"),e.qZA(),e._uU(13," and click "),e.TgZ(14,"strong"),e._uU(15,"Add New"),e.qZA(),e._uU(16,"."),e.qZA(),e._UZ(17,"img",60),e.qZA(),e.TgZ(18,"li")(19,"h5",17),e._uU(20,"In "),e.TgZ(21,"strong"),e._uU(22,"Search Plugins"),e.qZA(),e._uU(23),e.TgZ(24,"strong"),e._uU(25,"Enter"),e.qZA(),e._uU(26,"."),e.qZA()(),e.TgZ(27,"li")(28,"h5",17),e._uU(29,"Click "),e.TgZ(30,"strong"),e._uU(31,"Install Now"),e.qZA(),e._uU(32,", and click "),e.TgZ(33,"strong"),e._uU(34,"Activate"),e.qZA(),e._uU(35,"."),e.qZA(),e._UZ(36,"img",61),e.TgZ(37,"p"),e._uU(38,"The installed plugin will appear under the Settings menu."),e.qZA()(),e.TgZ(39,"li")(40,"h5",17),e._uU(41,"In "),e.TgZ(42,"strong"),e._uU(43,"Settings"),e.qZA(),e._uU(44,", click "),e.TgZ(45,"strong"),e._uU(46),e.qZA(),e._uU(47,"."),e.qZA(),e._UZ(48,"img",62),e.qZA(),e.TgZ(49,"li")(50,"h5",17),e._uU(51,"In the "),e.TgZ(52,"strong"),e._uU(53,"Insert JS Code editor"),e.qZA(),e._uU(54,", insert the Subscription Consent Banner CDN script and click "),e.TgZ(55,"strong"),e._uU(56,"Save"),e.qZA(),e._uU(57,". "),e.qZA(),e._UZ(58,"img",63),e.qZA(),e.TgZ(59,"li")(60,"h5",17),e._uU(61,"Now run your website. Check that the Subscription Consent Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner),e.xp6(22),e.hij(', type "',t.portal,'", and press '),e.xp6(23),e.hij("",t.portal," GDPR")}}function Yn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function Hn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Yn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to "),e.TgZ(5,"strong"),e._uU(6,"Shopify admin panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Home"),e.qZA(),e._uU(13," and select "),e.TgZ(14,"strong"),e._uU(15,"Customize theme"),e.qZA(),e._uU(16,"."),e.qZA(),e._UZ(17,"img",64),e.qZA(),e.TgZ(18,"li")(19,"h5",45),e._uU(20,"In "),e.TgZ(21,"strong"),e._uU(22,"Actions"),e.qZA(),e._uU(23,", click "),e.TgZ(24,"strong"),e._uU(25,"Edit code"),e.qZA(),e._uU(26,"."),e.qZA(),e._UZ(27,"img",65),e.TgZ(28,"p"),e._uU(29,"The code editor window appears."),e.qZA()(),e.TgZ(30,"li")(31,"h
15",45),e._uU(32,"A list of code files is available in the left pane, under the "),e.TgZ(33,"strong"),e._uU(34,"Layout"),e.qZA(),e._uU(35," folder. If you want to publish the Subscription Consent Banner on every page of your website, you must add the code to the "),e.TgZ(36,"strong"),e._uU(37,"/theme.liquid file"),e.qZA(),e._uU(38,"."),e.qZA(),e._UZ(39,"img",66),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"Insert the Subscription Consent Banner CDN script before closing the </head> tag and click "),e.TgZ(43,"strong"),e._uU(44,"Save"),e.qZA(),e._uU(45,"."),e.qZA()(),e.TgZ(46,"li")(47,"h5",45),e._uU(48,"Else, if you want to publish on any specific page, open the respective file from the left pane and insert the JS code."),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the subscription consent banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner)}}function Gn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function Rn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Gn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"BigCommerce control panel"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Storefront"),e.qZA(),e._uU(13," and click "),e.TgZ(14,"strong"),e._uU(15,"Script Manager"),e.qZA(),e._uU(16,"."),e.qZA(),e.TgZ(17,"p"),e._uU(18,"The Script Manager page appears."),e.qZA(),e._UZ(19,"img",67),e.qZA(),e.TgZ(20,"li")(21,"h5",45),e._uU(22,"Click "),e.TgZ(23,"strong"),e._uU(24,"Create a Script"),e.qZA(),e._uU(25,"."),e.qZA(),e.TgZ(26,"p"),e._uU(27,"The Create Script page appears."),e.qZA()(),e.TgZ(28,"li")(29,"h5",45),e._uU(30,"Enter any Name of script and Description. "),e.qZA()(),e.TgZ(31,"li")(32,"h5",45),e._uU(33,'Select a page option where the script needs to be added, and under "Script type", select '),e.TgZ(34,"strong"),e._uU(35,"Script"),e.qZA(),e._uU(36,"."),e.qZA(),e.TgZ(37,"p"),e._uU(38,"The script editor appears."),e.qZA(),e._UZ(39,"img",68),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"In the "),e.TgZ(43,"strong"),e._uU(44,"Script contents"),e.qZA(),e._uU(45,", insert the Subscription Consent Banner CDN script, and click "),e.TgZ(46,"strong"),e._uU(47,"Save"),e.qZA(),e._uU(48,". "),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the Subscription Consent Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner)}}function Kn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function Vn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,Kn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to "),e.TgZ(5,"strong"),e._uU(6,"Squarespace"),e.qZA(),e._uU(7," and go to the "),e.TgZ(8,"strong"),e._uU(9,"My Dashboard"),e.qZA(),e._uU(10," page."),e.qZA()(),e.TgZ(11,"li")(12,"h5",45),e._uU(13,"Go to "),e.TgZ(14,"strong"),e._uU(15,"Settings"),e.qZA(),e._uU(16,", click "),e.TgZ(17,"strong"),e._uU(18,"Advanced"),e.qZA(),e._uU(19,", and then click "),e.TgZ(20,"strong"),e._uU(21,"Code Injection"),e.qZA(),e._uU(22,". The code editing window appears."),e.qZA(),e._UZ(23,"img",69),e.qZA(),e.TgZ(24,"li")(25,"h5",45),e._uU(26,"In the "),e.TgZ(27,"strong"),e._uU(28,"HEADER"),e.qZA(),e._uU(29),e.TgZ(30,"strong"),e._uU(31,"Save"),e.qZA(),e._uU(32,". "),e.qZA(),e._UZ(33,"img",70),e.qZA(),e.TgZ(34,"li")(35,"h5",45),e._uU(36,"Now run your website. Check that the subscription consent banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner),e.xp6(28),e.hij(" code editor, insert the copied script from the ",t.portal," Portal, and at the top-left of the window click ")}}function jn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"li")(1,"div",50)(2,"h5",51),e._uU(3,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(4,"p"),e._uU(5,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.TgZ(9,"div",54)(10,"p",55)(11,"span")(12,"code",56),e._uU(13),e.qZA()(),e.TgZ(14,"span",57),e._uU(15),e.qZA(),e.TgZ(16,"span")(17,"code",56),e._uU(18),e.qZA()(),e._UZ(19,"br"),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(8),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function zn(n,r){if(1&n&&(e.TgZ(0,"ul",49),e.YNc(1,jn,20,4,"li",9),e.TgZ(2,"li")(3,"h5",45),e._uU(4,"Log in to the "),e.TgZ(5,"strong"),e._uU(6,"Blogger application"),e.qZA(),e._uU(7,"."),e.qZA()(),e.TgZ(8,"li")(9,"h5",45),e._uU(10,"In the left pane, click "),e.TgZ(11,"strong"),e._uU(12,"Layout"),e.qZA(),e._uU(13,"."),e.qZA(),e.TgZ(14,"p"),e._uU(15,"The layout configuration window appears."),e.qZA(),e._UZ(16,"img",71),e.qZA(),e.TgZ(17,"li")(18,"h5",45),e._uU(19,"Under the Sidebar (Top) module, click "),e.TgZ(20,"strong"),e._uU(21,"Add a Gadget"),e.qZA(),e._uU(22,"."),e.qZA(),e.TgZ(23,"p"),e._uU(24,"A list of gadget options appears."),e.qZA()(),e.TgZ(25,"li")(26,"h5",45),e._uU(27,"Select "),e.TgZ(28,"strong"),e._uU(29,"HTML/JavaScript"),e.qZA(),e._uU(30,"."),e.qZA(),e.TgZ(31,"p"),e._uU(32,"Configure HTML/JavaScript appears."),e.qZA()(),e.TgZ(33,"li")(34,"h5",45),e._uU(35,"In "),e.TgZ(36,"strong"),e._uU(37,"Title"),e.qZA(),e._uU(38,", enter a suitable title for the script. "),e.qZA(),e._UZ(39,"img",72),e.qZA(),e.TgZ(40,"li")(41,"h5",45),e._uU(42,"In "),e.TgZ(43,"strong"),e._uU(44,"Content"),e.qZA(),e._uU(45,", insert the Subscription Consent Banner CDN script, and click "),e.TgZ(46,"strong"),e._uU(47,"SAVE"),e.qZA(),e._uU(48,"."),e.qZA()(),e.TgZ(49,"li")(50,"h5",45),e._uU(51,"Now run your website. Check that the Subscription Consent Banner appears properly."),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner)}}function $n(n,r){1&n&&(e.TgZ(0,"h4",48),e._uU(1,"Subscription Consent Banner Script "),e.qZA())}function Wn(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"ul",49)(1,"li")(2,"div",50)(3,"h5",51),e._uU(4,"Copy your Subscription Consent Banner Script "),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Here is your script kindly click on copy script button to copy the script into clipboard"),e.qZA(),e.TgZ(7,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.copyToClipboardBanner())}),e._UZ(8,"i",53),e._uU(9),e.qZA()(),e.TgZ(10,"div",54)(11,"p",55)(12,"span")(13,"code",56),e._uU(14),e.qZA()(),e.TgZ(15,"span",57),e._uU(16),e.qZA(),e.TgZ(17,"span")(18,"code",56),e._uU(19),e.qZA()(),e._UZ(20,"br"),e.qZA()()(),e.TgZ(21,"li")(22,"h5",17),e._uU(23,"If you want to publish the Subscription Consent Banner on every page of your website, you must add the code to the header file. Open the header file."),e.qZA()(),e.TgZ(24,"li")(25,"h5",17),e._uU(26,"Where to Paste!"),e.qZA(),e.TgZ(27,"p"),e._uU(28,"If you want to publish the subscription consent banner on every page of your website, you must add the code to the header file before"),e.TgZ(29,"strong"),e._uU(30,"</head>"),e.qZA(),e._uU(31," tag. "),e.qZA(),e.TgZ(32,"div",58)(33,"span"),e._uU(34,"<html>"),e.qZA(),e._UZ(35,"br"),e._uU(36," \xa0\xa0"),e.TgZ(37,"span"),e._uU(38,"<head>"),e.qZA(),e._UZ(39,"br"),e._uU(40," \xa0\xa0\xa0\xa0"),e.TgZ(41,"span"),e._uU(42,"<title>"),e.qZA(),e._UZ(43,"br"),e._uU(44," \xa0\xa0\xa0\xa0"),e.TgZ(45,"span"),e._uU(46,"</title>"),e.qZA(),e._UZ(47,"br"),e._uU(48," \xa0\xa0\xa0\xa0"),e.TgZ(49,"span",59),e._uU(50,"Paste here!"),e.qZA(),e._UZ(51,"br"),e._uU(52," \xa0\xa0"),e.TgZ(53,"span"),e._uU(54,"</head>"),e.qZA(),e._UZ(55,"br"),e._uU(56," \xa0\xa0"),e.TgZ(57,"span"),e._uU(58,"<body>"),e.qZA(),e._UZ(59,"br"),e._uU(60," \xa0\xa0\xa0\xa0"),e.TgZ(61,"span"),e._uU(62,"<p>
1You Should paste your code before closing body tag.</p>"),e.qZA(),e._UZ(63,"br"),e._uU(64," \xa0\xa0"),e.TgZ(65,"span"),e._uU(66,"</body>"),e.qZA(),e._UZ(67,"br"),e.TgZ(68,"span"),e._uU(69,"</html>"),e.qZA()()(),e.TgZ(70,"li")(71,"h5",45),e._uU(72,"Else, if you want to publish on a specific page, open that page code and insert the CDN script. code."),e.qZA()(),e.TgZ(73,"li")(74,"h5",45),e._uU(75,"Now run your website. Check that the subscription consent banner appears properly."),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(9),e.hij(" ",t.isCopied.two?"Copied":"Copy Script",""),e.xp6(5),e.Oqu(t.addScript),e.xp6(2),e.hij("",t.scriptURLForBanner," "),e.xp6(3),e.Oqu(t.closeScript)}}function Xn(n,r){if(1&n&&(e.TgZ(0,"div",16)(1,"div",17),e.YNc(2,$n,2,0,"h4",18),e.YNc(3,Wn,76,4,"ul",19),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",1==t.showVendorType)}}function eo(n,r){if(1&n&&(e.TgZ(0,"div",75)(1,"p",55)(2,"span")(3,"code",76),e._uU(4,"//Copy this script and paste it below the setup script on your web page.The AppID and PropID with this script are automatically generated. "),e.qZA(),e._UZ(5,"br"),e.TgZ(6,"code",77),e._uU(7," window."),e.qZA(),e.TgZ(8,"code",56),e._uU(9),e.qZA(),e.TgZ(10,"code",59),e._uU(11,".init"),e.qZA(),e._UZ(12,"code",78),e.qZA(),e._UZ(13,"br"),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(9),e.Oqu(t.sdk),e.xp6(3),e.Q6J("innerHTML",t.initData,e.oJD)}}function to(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",16)(1,"div",20)(2,"h6",73)(3,"b"),e._uU(4,"Initialization (init Configuration) "),e._UZ(5,"span"),e.qZA()(),e.TgZ(6,"button",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.copyToClipboards())}),e._UZ(7,"i",53),e._uU(8),e.qZA()(),e.YNc(9,eo,14,2,"div",74),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(8),e.hij(" ",t.isCopied.three?"Copied":"Copy Script",""),e.xp6(1),e.Q6J("ngIf",!t.loadingSkeleton)}}function no(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",13)(2,"h5",14)(3,"label"),e._uU(4,"Implementing Consent Preference "),e.YNc(5,xn,2,0,"label",9),e.YNc(6,Zn,2,0,"label",9),e.YNc(7,vn,2,0,"label",9),e.YNc(8,Tn,2,0,"label",9),e.YNc(9,yn,2,0,"label",9),e.YNc(10,An,2,0,"label",9),e.qZA()(),e.YNc(11,Ln,9,7,"div",15),e.TgZ(12,"div",16)(13,"div",17),e.YNc(14,Jn,2,0,"h4",18),e.YNc(15,Bn,70,4,"ul",19),e.YNc(16,En,62,3,"ul",19),e.YNc(17,Hn,52,1,"ul",19),e.YNc(18,Rn,52,1,"ul",19),e.YNc(19,Vn,37,2,"ul",19),e.YNc(20,zn,52,1,"ul",19),e.qZA()(),e.YNc(21,Xn,4,2,"div",15),e.YNc(22,to,10,2,"div",15),e.qZA(),e.TgZ(23,"div",16)(24,"div",20)(25,"div",21)(26,"h5"),e._uU(27),e.qZA()(),e.TgZ(28,"div",22)(29,"a",23)(30,"div",24),e._UZ(31,"img",25),e.qZA()(),e.TgZ(32,"a",23)(33,"div",26),e._UZ(34,"img",27),e.qZA()(),e.TgZ(35,"a",23)(36,"div",28),e._UZ(37,"img",29),e.qZA()(),e.TgZ(38,"a",23)(39,"div",30),e._UZ(40,"img",31),e.qZA()(),e.TgZ(41,"a",23)(42,"div",32),e._UZ(43,"img",33),e.qZA()(),e.TgZ(44,"a",23)(45,"div",34),e._UZ(46,"img",35),e.qZA()()()(),e.TgZ(47,"div",36)(48,"div")(49,"ul",37)(50,"li",38)(51,"a",23),e._UZ(52,"img",39)(53,"br"),e.TgZ(54,"h5",40)(55,"label",41),e._uU(56,"Need help!"),e.qZA(),e._UZ(57,"br"),e.TgZ(58,"label",41),e._uU(59),e.qZA()()()(),e.TgZ(60,"li",42)(61,"a",43),e._UZ(62,"img",44)(63,"br"),e.TgZ(64,"h5",45)(65,"label",41),e._uU(66,"Email Code to"),e.qZA(),e._UZ(67,"br"),e.TgZ(68,"label",41),e._uU(69,"your Developer"),e.qZA()()()(),e.TgZ(70,"li",46)(71,"a",23),e._UZ(72,"img",47)(73,"br"),e.TgZ(74,"h5",40)(75,"label",41),e._uU(76,"Learn more"),e.qZA(),e._UZ(77,"br"),e.TgZ(78,"label",41),e._uU(79),e.qZA()()()()()()()(),e.BQk()),2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",2==t.showVendorType),e.xp6(1),e.Q6J("ngIf",3==t.showVendorType),e.xp6(1),e.Q6J("ngIf",4==t.showVendorType),e.xp6(1),e.Q6J("ngIf",5==t.showVendorType),e.xp6(1),e.Q6J("ngIf",6==t.showVendorType),e.xp6(1),e.Q6J("ngIf",t.preferenceBuildManagerScript),e.xp6(3),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",2==t.showVendorType),e.xp6(1),e.Q6J("ngIf",3==t.showVendorType),e.xp6(1),e.Q6J("ngIf",4==t.showVendorType),e.xp6(1),e.Q6J("ngIf",5==t.showVendorType),e.xp6(1),e.Q6J("ngIf",6==t.showVendorType),e.xp6(1),e.Q6J("ngIf",t.scriptURLForBanner&&1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",1==t.showVendorType),e.xp6(5),e.hij("How to integrate ",t.portal," scripts to:"),e.xp6(2),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/63/implement-adzapier-applications-on-website-html",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/40/adzapiers-cookie-banner-integration-with-wordpress",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/44/adzapiers-cookie-banner-integration-with-shopify",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/49/adzapiers-cookie-banner-integration-with-squarespace",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/47/adzapiers-cookie-banner-integration-with-blogger",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/46/adzapiers-cookie-banner-integration-with-bigcommerce",e.LSH),e.xp6(7),e.MGl("href","",t.supportURL,"/help-center/tickets/new",e.
1LSH),e.xp6(8),e.hij("Contact ",t.portal," Support"),e.xp6(12),e.MGl("href","",t.supportURL,"/help-center",e.LSH),e.xp6(8),e.hij("about ",t.portal,"")}}const oo=function(n,r){return{oid:n,pid:r}};let io=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D,Q,Y,J,rl){this.cookieBannerService=i,this.loading=o,this.modalService=s,this.router=a,this.orgservice=g,this.companyService=y,this.activateRoute=B,this.titleService=D,this.NewsLetterService=Q,this.dataService=Y,this.location=J,this.consentManagementApiService=rl,this.env=q.N,this.apiConstant=_n.R,this.isCopied={one:!1,two:!1,three:!1},this.currrentManagedPropID="",this.closeScript='"><\/script>',this.addScript='<script type="application/javascript" src="',this.tagEle={openHead:"<head>",closeHead:"</head>",openScript:"<script>",closeScript:"<\/script>"},this.appId="",this.loadingSkeleton=!1,this.scriptUrl=q.N.consentPreferenceCDN,this.dismissible=!0,this.isOpen=!1,this.initData="",this.scriptURLForBanner="",this.currentStep=1,this.hidevideo=!0,this.showVendorType=1,this.implementationVideoLink=q.N.implementationvideoLink,this.portal=q.N.portalPrefix,this.supportURL=q.N.supportPortalURL,this.sdk=q.N.sdkFunction,this.titleService.setTitle("Consent Preference Setup - "+q.N.portalPrefix)}ngOnInit(){this.activateRoute.queryParamMap.subscribe(i=>{let o=i.get("oid"),s=i.get("pid");null!=this.queryOID&&(this.queryOID!=o||this.queryPID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.queryOID=o,this.queryPID=s,this.initData=`({  <br />\n          <span style="color: #8be9fd">PropID: </span> '${this.queryPID}'    <code style="color: red">// Your Property ID </code><br />\n\n          })`}),this.onGetPropsAndOrgId(),this.dataService.isSubscriptionExistForConsent()||this.onGetNewsLetterConfiguration(),this.onGetPreferenceBannerConfig()}onGetPreferenceBannerConfig(){this.loading.start(),this.consentManagementApiService.getConfig(this.currentManagedOrgID,this.currrentManagedPropID).subscribe(i=>{this.loading.stop(),i?.response.js_location&&(this.preferenceBuildManagerScript=i.response.js_location)},i=>{this.loading.start(),this.isOpen=!0,this.alertMsg=i,this.alertType="danger"})}onGetNewsLetterConfiguration(){this.loading.start(),this.NewsLetterService.onGetNewsLetterData(this.constructor.name,u.e.consentPreferenceNewsLetter).subscribe(i=>{this.loading.stop(),i?.response.hasOwnProperty("configuration")&&(this.scriptURLForBanner="https://"+i.response.js_location)},i=>{this.loading.start(),this.isOpen=!0,this.alertMsg=i,this.alertType="danger"})}onGetPropsAndOrgId(){if(null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID)this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID;else{let i=(0,C.Dq)(this.location.path());this.currentManagedOrgID=i[0],this.currrentManagedPropID=i[1]}}copyToClipboard(){this.isCopied.one=!0;const i=this.addScript+this.scriptUrl+this.closeScript;let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value=i.trim(),o.select(),document.execCommand("copy")}copyToClipboardForPreferenceBuild(){this.isCopied.one=!0;const i=this.addScript+this.preferenceBuildManagerScript+this.closeScript;let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value=i.trim(),o.select(),document.execCommand("copy")}hideshowvideo(){this.hidevideo=!1}showvideo(){this.hidevideo=!0}copyToClipboardBanner(){this.isCopied.two=!0;const i=this.addScript+this.scriptURLForBanner+this.closeScript;let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value=i.trim(),o.select(),document.execCommand("copy")}copyToClipboards(){this.isCopied.three=!0;const i="window."+q.N.sdkFunction+".init({\n      PropID: '"+this.currrentManagedPropID+"', // Your Current Property ID\n    })";let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value=i.trim(),o.select(),document.execCommand("copy")}openModal(i){this.modalRef=this.modalService.show(i,{animated:!1,keyboard:!1,ignoreBackdropClick:!0})}navigate(){this.modalRef.hide(),this.router.navigateByUrl("/cookie-consent/cookie-banner")}onClosed(i){}copyToClipboardMethod(){this.isCopied.two=!0;let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value="<script>\n    // Execute the method for open Preferences\n    window.AzCMP.onOpenPopUp();\n    <\/script> ".trim(),o.select(),document.execCommand("copy")}onTabclick(i){this.tabUrl=this.implementationVideoLink+i}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(mn.s),e.Y36(_.LA),e.Y36(f.tT),e.Y36(b.F0),e.Y36(m.Mn),e.Y36(fn.J),e.Y36(b.gz),e.Y36(Z.Dx),e.Y36(te.M),e.Y36(S.D),e.Y36(l.Ye),e.Y36(hn.a))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consent-setup"]],viewQuery:function(o,s){if(1&o&&e.Gf(Cn,7),2&o){let a;e.iGM(a=e.CRH())&&(s.template=a.first)}},decls:15,vars:6,consts:[["xmlns","http://www.w3.org/1999/html","appTheme",""],[1,"d-sm-flex","align-items-center","justify-content-between","mg-b-5","mg-lg-b-10","mg-xl-b-15"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/consent-preference/consent-records",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"card",2,"background","inherit","border","none"],["class","card-footer setupheader","style","border: none;",4,"ngIf"],[4,"ngIf"],[1,"card-footer","setupheader",2,"border","none"],[1,"btn-group-action"],["type","button",1,"btn","btn-link",3,"ngStyle","click"],[1,"floatingdiv"],[1,"ml-2","mt-3",2,"padding-top","10px","display","flex","justify-content","space-between"],["class","card mt-3",4,"ngIf"],[1,"card","mt-3"],[1,"mt-3"],["class","ml-5",4,"ngIf"],["class","Instru
1ctions-list",4,"ngIf"],[1,"card-header"],[2,"justify-content","center","display","flex"],[1,"platform-list","d-flex","justify-content-center","flex-wrap","mt-3"],["target","_blank",3,"href"],["tooltip","HTML","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/html5.png",1,"platform-logo"],["tooltip","Wordpress","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/wordpress.svg",1,"platform-logo"],["tooltip","Shopify","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/shopify.svg",1,"platform-logo"],["tooltip","Squarespace","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/squarespace.svg",1,"platform-logo"],["tooltip","Blogger","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/blogger.svg",1,"platform-logo"],["tooltip","BigCommerce","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/big-commerce-logo-partner.png",1,"platform-logo"],[1,"card-body"],[2,"display","flex","justify-content","space-between","list-style-type","none"],[2,"width","33.33%","text-align","center","border-right","1px solid #ffc107"],["src","/assets/imgs/icons/help.png",1,"email-logo",2,"width","60px","height","60px"],[1,"mt-2"],[1,"effects"],[1,"text-center",2,"width","33.33%","text-align","center","border-right","1px solid #ffc107"],["href","mailto:"],["src","/assets/imgs/icons/email.svg",1,"email-logo"],[1,"mt-4"],[2,"width","33.33%","text-align","center"],["src","/assets/imgs/icons/neural.png",1,"email-logo",2,"width","50px","height","50px"],[1,"ml-5"],[1,"Instructions-list"],[1,"card-header",2,"border","none"],[1,"mt-1"],["type","button",1,"pull-right","btn-sm","btn","btn-primary",2,"float","right",3,"click"],["aria-hidden","true",1,"mr-1","fa","fa-clipboard"],[1,"card-body","mr-3",2,"background","#282a36","margin-top","60px"],[1,"text-danger","codeText"],[2,"color","#8be9fd"],[2,"color","#fff","font-size","16px"],[1,"Instructions-code","mr-3"],[2,"color","yellow"],["src","/assets/implementationimages/wordpress_1.png"],["src","/assets/implementationimages/wordpress_2.png"],["src","/assets/implementationimages/wordpress_3.png"],["src","/assets/implementationimages/wordpress_4.png"],["src","/assets/implementationimages/shopify.png"],["src","/assets/implementationimages/shopify_1.png"],["src","/assets/implementationimages/shopify_2.png"],["src","/assets/implementationimages/big_1.png"],["src","/assets/implementationimages/big_2.png"],["src","/assets/implementationimages/squarespace_1.png"],["src","/assets/implementationimages/squarespace_2.png"],["src","/assets/implementationimages/blogger_1.png"],["src","/assets/implementationimages/blogger_2.png"],[2,"float","left"],["style","background: #282a36","class","card-body ml-3 mr-3 mb-3",4,"ngIf"],[1,"card-body","ml-3","mr-3","mb-3",2,"background","#282a36"],[2,"color","rgb(116, 116, 116)"],[2,"color","#ff3f7c"],[2,"color","#fff",3,"innerHTML"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),e._uU(6,"Privacy"),e.qZA(),e.TgZ(7,"li",4)(8,"a",5),e._uU(9,"Consent Preference"),e.qZA()(),e.TgZ(10,"li",6),e._uU(11,"Implementation"),e.qZA()()()()(),e.TgZ(12,"div",7),e.YNc(13,bn,15,24,"div",8),e.qZA(),e.YNc(14,no,80,27,"ng-container",9),e.qZA()),2&o&&(e.xp6(8),e.Q6J("queryParams",e.WLB(3,oo,s.queryOID,s.queryPID)),e.xp6(5),e.Q6J("ngIf",1===s.currentStep),e.xp6(1),e.Q6J("ngIf",1===s.currentStep))},dependencies:[l.O5,l.PC,b.rH,k.i9,R.E],styles:['.head[_ngcontent-%COMP%]{border-bottom:1px solid;padding-bottom:10px}.codeText[_ngcontent-%COMP%]{font-size:19px}.card-body-action[_ngcontent-%COMP%]{text-align:center;border-bottom:2px solid lightgray}.smtp-config-text[_ngcontent-%COMP%]{border-bottom:2px solid gray;padding-bottom:10px;width:300px;margin-bottom:32px}.btn-group-action[_ngcontent-%COMP%]{text-align:center;border-bottom:1px solid lightgray}.btn-group-action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#555;font-weight:600}.floatingdiv[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.videosection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.videos[_ngcontent-%COMP%]{background-color:#1d2951;background-image:linear-gradient(315deg,var(--user-preference) 0%,#dbe7fc 74%)}.videotexts[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border:none}.Instructions-list[_ngcontent-%COMP%]{counter-reset:step;list-style-type:none}.Instructions-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding:0 0 60px 60px;min-height:75px;border-left:2px solid #C7E4FF;color:#44484b}.Instructions-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{counter-increment:step;content:counters(step,".") " ";position:absolute;
1left:-26px;top:0;height:50px;width:50px;padding-top:11px;font-size:17px;font-weight:700;line-height:20px;text-align:center;color:#fff;background-color:#001737;border:2px solid #C7E4FF;border-radius:50%;z-index:2}.icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:15px 16px;border-radius:100%;border:.5px solid #c2c3c5;margin-right:14px;cursor:pointer;box-shadow:0 2px 4px #0003,0 6px 20px #00000030}.platform-logo[_ngcontent-%COMP%]{width:25px;height:25px}.email-logo[_ngcontent-%COMP%]{width:40px;height:40px}.Instructions-code[_ngcontent-%COMP%]{margin-bottom:40px;padding:20px;background:linear-gradient(45deg,#202143 0,#303261 100%);color:#aaacd8;font-family:courier,monospace;font-size:16px;-webkit-user-select:none;user-select:none;border-radius:10px;overflow:auto;white-space:nowrap}.Instructions-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child:before{content:"Done"}.Instructions-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-left:none}.effects[_ngcontent-%COMP%]{background-image:linear-gradient(transparent 0%,transparent 90%,#1B365D 90%,#1B365D 100%);background-repeat:no-repeat;background-size:0% 100%;background-position-x:right;transition:background-size .3s}.effects[_ngcontent-%COMP%]:hover{background-size:100% 100%;background-position-x:left}']}),n})();var O=c(57644),ro=c(24850),so=c(18583),$=c(53977),de=c(97028),pe=c(52712),ue=c(18178),ge=c(74146),_e=c(95029),me=c(98473),fe=c(41277),he=c(33169);const ne=function(n){return{display:n}};function ao(n,r){if(1&n&&(e.TgZ(0,"div",6),e._UZ(1,"iframe",7),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ne,t.loading?"none":null))}}function lo(n,r){if(1&n&&(e.TgZ(0,"div",8),e._UZ(1,"iframe",9),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ne,t.loading?"none":null))}}function co(n,r){1&n&&(e.TgZ(0,"div",10)(1,"div",11)(2,"span",12),e._uU(3,"Loading..."),e.qZA()()())}function po(n,r){if(1&n&&e._UZ(0,"iframe",13),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ne,t.loading?"none":null))}}let uo=(()=>{const r=class{constructor(){this.loading=!0,this.selectPreviewLang=new e.vpe}ngOnInit(){}onSelectPreviewLang(i){this.selectPreviewLang.emit(JSON.parse(i))}ngOnChanges(i){for(const o in i)i.hasOwnProperty(o)&&"BundlePayload"===o&&this.onRefreshBanner()}onRefreshBanner(){if(!this.BundlePayload)return;this.loading=!0;const i=this,o=document.getElementById("az-banner");if(o){let s=o.contentDocument;!s&&o.contentWindow&&(s=o.contentWindow.document),o.contentWindow.document.body.innerHTML="",o.contentWindow.document.body.style.margin=0;const a=document.createElement("script");a.type="text/javascript",a.id="az_consent_banner",a.src=q.N.newsletterBannerCDN,a.onload=()=>{const g=document.getElementById("az-banner").contentWindow;i.loading=!1,g.AZSocial.init(this.BundlePayload),g.AZSocial.show()},a.onerror=g=>{console.log("Error",g)},s.body.appendChild(a)}}};let n=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-newsletter-preview"]],inputs:{BundlePayload:"BundlePayload",customerBrandLogo:"customerBrandLogo",ConfigForm:"ConfigForm",customLanguageConfig:"customLanguageConfig",allowedLanguagesForPreview:"allowedLanguagesForPreview"},outputs:{selectPreviewLang:"selectPreviewLang"},features:[e.TTD],decls:6,vars:4,consts:[[1,"newsletter",2,"height","100%"],["class","smartphone",3,"ngStyle",4,"ngIf"],["class","tablet",3,"ngStyle",4,"ngIf"],["class","loader",4,"ngIf"],[1,"web","ml-1"],["style","border: none;width:100%;","height","575","id","az-banner",3,"ngStyle",4,"ngIf"],[1,"smartphone",3,"ngStyle"],["id","az-banner",2,"width","370px","overflow","scroll","height","581px"],[1,"tablet",3,"ngStyle"],["id","az-banner",2,"width","100%","border","none","height","100%"],[1,"loader"],["role","status",1,"spinner-border"],[1,"sr-only"],["height","575","id","az-banner",2,"border","none","width","100%",3,"ngStyle"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0),e.YNc(1,ao,2,3,"div",1),e.YNc(2,lo,2,3,"div",2),e.YNc(3,co,4,0,"div",3),e.TgZ(4,"div",4),e.YNc(5,po,1,3,"iframe",5),e.qZA()()),2&o&&(e.xp6(1),e.Q6J("ngIf","mobile"===s.ConfigForm.CurrentPreviewDevice),e.xp6(1),e.Q6J("ngIf","tablet"===s.ConfigForm.CurrentPreviewDevice),e.xp6(1),e.Q6J("ngIf",s.loading),e.xp6(2),e.Q6J("ngIf","web"===s.ConfigForm.CurrentPreviewDevice))},dependencies:[l.O5,l.PC],styles:['.card[_ngcontent-%COMP%]{box-shadow:0 0 8px #d3d3d3;width:30em}.logo-img[_ngcontent-%COMP%]{height:2.5rem}.right-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}.left-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0}.power-by-tx[_ngcontent-%COMP%]{color:gray;font-size:12px!important}.lang-dropdown-size[_ngcontent-%COMP%]{height:30px;margin-top:3px;font-size:12px}.smartphone[_ngcontent-%COMP%]{position:relative;width:400px;overflow:hidden;height:700px;margin:20px auto;border:16px black solid;border-top-width:60px;border-bottom-width:60px;border-radius:36px}.smartphone[_ngcontent-%COMP%]:before{content:"";display:block;width:60px;height:5px;position:absolute;top:-30px;left:50%;transform:translate(-50%,-50%);background:#333;border-radius:10px}.smartphone[_ngcontent-%COMP%]:after{content:"";display:block;width:35px;height:35px;position:absolute;
1left:50%;bottom:-65px;transform:translate(-50%,-50%);background:#333;border-radius:50%}.smartphone[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:360px;height:640px;background:white}.tablet[_ngcontent-%COMP%]{position:relative;width:800px;height:800px;margin:20px auto;border:16px black solid;border-top-width:60px;border-bottom-width:60px;border-radius:36px}.tablet[_ngcontent-%COMP%]:before{content:"";display:block;width:60px;height:5px;position:absolute;top:-30px;left:50%;transform:translate(-50%,-50%);background:#333;border-radius:10px}.tablet[_ngcontent-%COMP%]:after{content:"";display:block;width:35px;height:35px;position:absolute;left:50%;bottom:-65px;transform:translate(-50%,-50%);background:#333;border-radius:50%}.tablet[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:768px;height:1024px;background:white;margin:-1px}.spinner-border[_ngcontent-%COMP%]{display:inline-block;width:40px!important;height:40px!important}.loader[_ngcontent-%COMP%]{display:flex;justify-content:center;height:100%;align-items:center}']}),n})();const go=["publish"],_o=["fileInput"];function mo(n,r){1&n&&e._UZ(0,"i",98)}function fo(n,r){1&n&&e._UZ(0,"i",98)}function ho(n,r){1&n&&e._UZ(0,"i",98)}function Co(n,r){1&n&&e._UZ(0,"i",98)}function bo(n,r){1&n&&e._UZ(0,"i",98)}function xo(n,r){if(1&n&&(e.TgZ(0,"p",99),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.companyLogoValidation.msg)}}function Zo(n,r){if(1&n&&e._UZ(0,"img",100),2&n){const t=e.oxw(2);e.Q6J("src",t.customerBrandLogo,e.LSH)}}function vo(n,r){1&n&&(e.TgZ(0,"h5",101),e._UZ(1,"i",102),e._uU(2," Image Preview"),e.qZA())}function To(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onResetPreview())}),e._uU(1,"Remove"),e.qZA()}}function yo(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"th",104)(2,"input",105),e.NdJ("change",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onAllowAllLanguage(o))}),e.qZA()(),e.TgZ(3,"th",106),e._uU(4,"Language"),e.qZA(),e._UZ(5,"th",104),e.TgZ(6,"th",107),e._uU(7,"Default"),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("checked",t.languages.length===t.selectedLanguage.length)}}function Ao(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",114),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onResetLang(o.code))}),e._uU(1," Reset "),e.qZA()}}function wo(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",108)(2,"input",109),e.NdJ("change",function(o){const a=e.CHM(t).$implicit,g=e.oxw(2);return e.KtG(g.onSetLanguage(o,a.code))}),e.qZA()(),e.TgZ(3,"td",110),e._uU(4),e.qZA(),e.TgZ(5,"td",108),e.YNc(6,Ao,2,0,"button",111),e.qZA(),e.TgZ(7,"td",112),e._UZ(8,"p-radioButton",113),e.qZA()()}if(2&n){const t=r.$implicit,i=e.oxw(2);e.xp6(2),e.Q6J("checked",i.selectedLanguage.includes(t.code))("value",t.code),e.xp6(2),e.hij(" ",t.title,""),e.xp6(2),e.Q6J("ngIf",i.customLang.includes(t.code)),e.xp6(2),e.Q6J("disabled",!i.selectedLanguage.includes(t.code))("value",t.code)}}function Uo(n,r){if(1&n&&(e.TgZ(0,"div",134)(1,"span",135),e._uU(2),e.qZA()()),2&n){const t=e.oxw(4);e.xp6(2),e.hij(" ",t.ConfigurationForm.value.PreviewLanguage.title," ")}}function qo(n,r){if(1&n&&e.YNc(0,Uo,3,1,"div",133),2&n){const t=e.oxw(3);e.Q6J("ngIf",t.ConfigurationForm.value.PreviewLanguage)}}function ko(n,r){if(1&n&&(e.TgZ(0,"div",136)(1,"span",135),e._uU(2),e.qZA()()),2&n){const t=r.$implicit;e.xp6(2),e.hij("",t.title," ")}}function So(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"Title is required"),e.qZA())}function Po(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,So,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.Title.errors.required)}}function Io(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"Description is required"),e.qZA())}function No(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Io,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.Description.errors.required)}}function Mo(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"This field is required"),e.qZA())}function Do(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Mo,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.TermAndConditionLink.errors.required)}}function Fo(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"This field is required"),e.qZA())}function Oo(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Fo,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.TermAndConditionVersion.errors.required)}}function Lo(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"This field is required"),e.qZA())}function Jo(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Lo,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.PrivacyLink.errors.required)}}function Bo(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"This field is required"),e.qZA())}function Qo(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Bo,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.PrivacyLinkVersion.errors.required)}}function Eo(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"This field is required"),e.qZA())}function Yo(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Eo,2,0,"small",138),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.f.SubscribeButtonText.errors.required)}}function Ho(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",115)(1,"p-divider",63)(2,"b"),e._uU(3,"Content"),e.qZA()(),e.TgZ(4,"div",116)(5,"div",40)(6,"p",117),e._uU(7,"Preview Language"),e.qZA()(),e.TgZ(8,"div",70)(9,"p-dropdown",118),e.NdJ("onChange",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSelectPreviewLang())}),e.YNc(10,qo,1,1,"ng-template",119),e.YNc(11,ko,3,1,"ng-template",120),e.qZA()()(),e.TgZ(12,"div",121),e._UZ(13,"p-divider"),e.TgZ(14,"div",122)(15,"div",123)(16,"label",124),e._uU(17,"Title"),e.qZA(),e._UZ(18,"br")(19,"input",125),e.YNc(20,Po,2,1,"div",126),e.qZA(),e.TgZ(21,"div",123)(22,"label",124),e._uU(23,"Description"),e.qZA(),e._UZ(24,"br")(25,"textarea",127),e.YNc(26,No,2,1,"div",126),e.qZA(),e.TgZ(27,"div",123)(28,"label",124),e._uU(29,"Terms and Conditions Link"),e.qZA(),e._UZ(30,"br")(31,"input",128),e.YNc(32,Do,2,1,"div",126),e.qZA(),e.TgZ(33,"div",123)(34,"label",124),e._uU(35,"Terms and Conditions Version"),e.qZA(),e._UZ(36,"br")(37,"input",129),e.YNc(38,Oo,2,1,"div",126),e.qZA(),e.TgZ(39,"div",123)(40,"label",124),e._uU(41,"Privacy Policy Link"),e.qZA(),e._UZ(42,"br")(43,"input",130),e.YNc(44,Jo,2,1,"div",126),e.qZA(),e.TgZ(45,"div",123)(46,"label",124),e._uU(47,"Privacy Policy Version"),e.qZA(),e._UZ(48,"br")(49,"input",131),e.YNc(50,Qo,2,1,"div",126),e.qZA(),e.TgZ(51,"div",123)(52,"label",124),e._uU(53,"Subscribe Button"),e.qZA(),e._UZ(54,"br")(55,"input",132),e.YNc(56,Yo,2,1,"div",126),e.qZA()()()()}if(2&n){const t=e.oxw(2);e.xp6(9),e.Q6J("options",t.allowedLanguagesForPreview)("showClear",!1),e.xp6(11),e.Q6J("ngIf",t.f.Title.errors),e.xp6(6),e.Q6J("ngIf",t.f.Description.errors),e.xp6(6),e.Q6J("ngIf",t.f.TermAndConditionLink.errors),e.xp6(6),e.Q6J("ngIf",t.f.TermAndConditionVersion.errors),e.xp6(6),e.Q6J("ngIf",t.f.PrivacyLink.errors),e.xp6(6),e.Q6J("ngIf",t.f.PrivacyLinkVersion.errors),e.xp6(6),e.Q6J("ngIf",t.f.SubscribeButtonText.errors)}}function Go(n,r){1&n&&(e.TgZ(0,"span",166),e._UZ(1,"i",167),e.qZA())}function Ro(n,r){1&n&&(e.TgZ(0,"span",166),e._UZ(1,"i",167),e.qZA())}function Ko(n,r){1&n&&(e.TgZ(0,"span",166),e._UZ(1,"i",167),e.qZA())}const oe=function(n){return{display:n}};function Vo(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",139)(1,"p-divider",63)(2,"b"),e._uU(3,"Layout"),e.qZA()(),e.TgZ(4,"div",140)(5,"div",141),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSelectThemeType("light"))}),e._UZ(6,"i",142),e.TgZ(7,"span",143),e._uU(8,"Light Theme"),e.qZA(),e.YNc(9,Go,2,0,"span",144),e.qZA(),e.TgZ(10,"div",145),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSelectThemeType("dark"))}),e._UZ(11,"i",146),e.TgZ(12,"span",143),e._uU(13,"Dark Theme"),e.qZA(),e.YNc(14,Ro,2,0,"span",144),e.qZA(),e.TgZ(15,"div",141),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSelectThemeType("custom"))}),e._UZ(16,"i",147),e.TgZ(17,"span",143),e._uU(18,"Custom Colors"),e.qZA(),e.YNc(19,Ko,2,0,"span",144),e.qZA()(),e.TgZ(20,"div",148)(21,"p-div
1ider",63)(22,"b"),e._UZ(23,"i",149),e.TgZ(24,"span",65),e._uU(25," Customization"),e.qZA()()(),e._UZ(26,"p-divider"),e.TgZ(27,"div",122)(28,"div",150)(29,"div",151)(30,"label",124),e._uU(31,"Header Background Color"),e.qZA(),e._UZ(32,"br"),e.TgZ(33,"div",11)(34,"p-colorPicker",152),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.HeaderBackgroundColor=o)}),e.qZA(),e.TgZ(35,"input",153),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.HeaderBackgroundColor=o)}),e.qZA()()(),e.TgZ(36,"div",151)(37,"label",124),e._uU(38,"Header Text Color"),e.qZA(),e._UZ(39,"br"),e.TgZ(40,"div",11)(41,"p-colorPicker",154),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.HeaderTextColor=o)}),e.qZA(),e.TgZ(42,"input",155),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.HeaderTextColor=o)}),e.qZA()()(),e.TgZ(43,"div",151)(44,"label",124),e._uU(45,"Border Color"),e.qZA(),e._UZ(46,"br"),e.TgZ(47,"div",11)(48,"p-colorPicker",156),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BorderColor=o)}),e.qZA(),e.TgZ(49,"input",157),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BorderColor=o)}),e.qZA()()(),e.TgZ(50,"div",151)(51,"label",124),e._uU(52,"Body Background Color"),e.qZA(),e._UZ(53,"br"),e.TgZ(54,"div",11)(55,"p-colorPicker",158),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BodyBackgroundColor=o)}),e.qZA(),e.TgZ(56,"input",159),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BodyBackgroundColor=o)}),e.qZA()()(),e.TgZ(57,"div",151)(58,"label",124),e._uU(59,"Body Text Color"),e.qZA(),e._UZ(60,"br"),e.TgZ(61,"div",11)(62,"p-colorPicker",160),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BodyTextColor=o)}),e.qZA(),e.TgZ(63,"input",161),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.BodyTextColor=o)}),e.qZA()()(),e.TgZ(64,"div",151)(65,"label",124),e._uU(66,"Subscribe button Background Color"),e.qZA(),e._UZ(67,"br"),e.TgZ(68,"div",11)(69,"p-colorPicker",162),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.SubscribeButtonBackgroundColor=o)}),e.qZA(),e.TgZ(70,"input",163),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.SubscribeButtonBackgroundColor=o)}),e.qZA()()(),e.TgZ(71,"div",151)(72,"label",124),e._uU(73,"Subscribe button Text Color"),e.qZA(),e._UZ(74,"br"),e.TgZ(75,"div",11)(76,"p-colorPicker",164),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.SubscribeButtonTextColor=o)}),e.qZA(),e.TgZ(77,"input",165),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.colorPicker.SubscribeButtonTextColor=o)}),e.qZA()()()()()()()}if(2&n){const t=e.oxw(2);e.xp6(9),e.Q6J("ngIf","light"===t.themeType),e.xp6(5),e.Q6J("ngIf","dark"===t.themeType),e.xp6(5),e.Q6J("ngIf","custom"===t.themeType),e.xp6(1),e.Q6J("ngStyle",e.VKq(32,oe,"custom"===t.themeType?"block":"none")),e.xp6(14),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.HeaderBackgroundColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.HeaderBackgroundColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.HeaderTextColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.HeaderTextColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.BorderColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.BorderColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.BodyBackgroundColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.BodyBackgroundColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.BodyTextColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.BodyTextColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.SubscribeButtonBackgroun
1dColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.SubscribeButtonBackgroundColor),e.xp6(6),e.Q6J("showTransitionOptions","50ms")("ngModel",t.colorPicker.SubscribeButtonTextColor)("hideTransitionOptions","50ms"),e.xp6(1),e.Q6J("ngModel",t.colorPicker.SubscribeButtonTextColor)}}function jo(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",82)(1,"div",176),e._UZ(2,"i",177),e.qZA(),e.TgZ(3,"p",178),e._uU(4),e.qZA(),e.TgZ(5,"div",179),e._UZ(6,"input",180),e.TgZ(7,"button",181),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).index,s=e.oxw(3);return e.KtG(s.onExpandCollapseConf(o+1))}),e._UZ(8,"i",182),e.qZA()()()}if(2&n){const t=e.oxw(2).$implicit;e.xp6(4),e.hij(" ",null==t.value?null:t.value.key.replaceAll("_"," ")," ")}}function zo(n,r){if(1&n&&(e.TgZ(0,"div",188)(1,"label",189),e._uU(2,"Required"),e.qZA(),e.TgZ(3,"div",190),e._UZ(4,"input",191),e.qZA()()),2&n){const t=e.oxw(3).$implicit;e.xp6(4),e.Q6J("disabled",!(null!=t.value&&t.value.display))}}function $o(n,r){if(1&n&&(e.TgZ(0,"div",188)(1,"label",189),e._uU(2,"Email Validation"),e.qZA(),e.TgZ(3,"div",190),e._UZ(4,"input",192),e.qZA()()),2&n){const t=e.oxw(3).$implicit;e.xp6(4),e.Q6J("disabled",!(null!=t.value&&t.value.display))}}function Wo(n,r){if(1&n&&(e.TgZ(0,"div",188)(1,"label",193),e._uU(2,"Min Length"),e.qZA(),e.TgZ(3,"div",194),e._UZ(4,"p-inputNumber",195),e.qZA()()),2&n){const t=e.oxw(3).$implicit;e.xp6(4),e.Q6J("disabled",!(null!=t.value&&t.value.display))("useGrouping",!1)}}function Xo(n,r){if(1&n&&(e.TgZ(0,"div",196)(1,"label",193),e._uU(2,"Max Length"),e.qZA(),e.TgZ(3,"div",194),e._UZ(4,"p-inputNumber",197),e.qZA()()),2&n){const t=e.oxw(3).$implicit;e.xp6(4),e.Q6J("disabled",!(null!=t.value&&t.value.display))("useGrouping",!1)}}function ei(n,r){if(1&n&&(e.TgZ(0,"div",183)(1,"p-divider",184)(2,"b",185),e._uU(3,"Configure Validation"),e.qZA()(),e.YNc(4,zo,5,1,"div",186),e.YNc(5,$o,5,1,"div",186),e.YNc(6,Wo,5,2,"div",186),e.YNc(7,Xo,5,2,"div",187),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(4),e.Q6J("ngIf",t.value.hasOwnProperty("required")),e.xp6(1),e.Q6J("ngIf",t.value.hasOwnProperty("emailValidation")),e.xp6(1),e.Q6J("ngIf",t.value.hasOwnProperty("minLength")),e.xp6(1),e.Q6J("ngIf",t.value.hasOwnProperty("maxLength"))}}const ti=function(n){return{background:n}};function ni(n,r){if(1&n&&(e.TgZ(0,"div",173),e.YNc(1,jo,9,1,"div",174),e.YNc(2,ei,8,4,"div",175),e.qZA()),2&n){const t=e.oxw(),i=t.index,o=t.$implicit,s=e.oxw(3);e.Q6J("formGroupName",i)("ngStyle",e.VKq(4,ti,null!=o.value&&o.value.display?null:"whitesmoke")),e.xp6(1),e.Q6J("ngIf","privacy_Policy"!==(null==o.value?null:o.value.key)),e.xp6(1),e.Q6J("ngIf",s.showInput===i+1&&"privacy_Policy"!==(null==o.value?null:o.value.key))}}function oi(n,r){if(1&n&&(e.ynx(0),e.YNc(1,ni,3,6,"div",172),e.BQk()),2&n){const t=r.$implicit;e.xp6(1),e.Q6J("ngIf","privacy_Policy"!==(null==t.value?null:t.value.key))}}function ii(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",168)(1,"p-divider",63)(2,"b"),e._uU(3,"Form"),e.qZA()(),e.TgZ(4,"div",169),e.NdJ("cdkDropListDropped",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.drop(o))}),e.TgZ(5,"ul",170),e.YNc(6,oi,2,1,"ng-container",171),e.qZA()()()}if(2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngForOf",t.formInputs.controls)}}function ri(n,r){if(1&n&&(e.TgZ(0,"div",206)(1,"label",207),e._uU(2,"For Close Subscription Consent Banner Popup - Show Popup Every "),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"div",208),e._UZ(5,"p-inputNumber",209)(6,"p-dropdown",210),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(5),e.Q6J("useGrouping",!1),e.xp6(1),e.Q6J("options",t.displayFrequency)}}const si=function(n){return{color:n}};function ai(n,r){if(1&n&&(e.TgZ(0,"div",198)(1,"p-divider",63)(2,"b"),e._uU(3,"Display Frequency "),e.qZA()(),e.TgZ(4,"div",199)(5,"div",69)(6,"div",200)(7,"p",201),e._uU(8,"Enable Display Frequency "),e._UZ(9,"i-feather",202),e.qZA()(),e.TgZ(10,"div",203),e._UZ(11,"p-inputSwitch",204),e.qZA()(),e.YNc(12,ri,7,2,"div",205),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(7),e.Q6J("ngStyle",e.VKq(2,si,t.ConfigurationForm.value.EnableDisplayFrequency?"":"#999")),e.xp6(5),e.Q6J("ngIf",t.ConfigurationForm.value.EnableDisplayFrequency)}}function li(n,r){1&n&&(e.TgZ(0,"p",217),e._uU(1,"You cannot disallow path as you are using allow path feature kindly remove allow path to add path in this section"),e.qZA())}function ci(n,r){1&n&&(e.TgZ(0,"p",217),e._uU(1,"You cannot allow path as you are using disallow path feature kindly remove disallow path to add path in this section"),e.qZA())}function di(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"Path is required"),e.qZA())}function pi(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,di,2,0,"small",138),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.errors.required)}}function ui(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"label",221),e._uU(2,"Path"),e.qZA(),e.TgZ(3,"td",222),e._UZ(4,"input",223),e.YNc(5,pi,2,1,"div",126),e.qZA(),e.TgZ(6,"td",224)(7,"button",225),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(4);return e.KtG(a.deleteIncludePath(s))}),e._UZ(8,"i",226),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index;e.xp6(4),e.Q6J("formControlName",i),e.xp6(1),e.Q6J("ngIf",t.errors)}}function gi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",230),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.addNewIncludePath())}),e._uU(1,"Add Path"),e._UZ(2,"i",231),e.qZA()}if(2&n){const t=e.oxw(5);e.Q6J("disabled",t.ConfigurationForm.value.Exclude.length>0)}}function _i(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",232),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.addNewIncludePath())}),e._UZ(1,"i",233),e.qZA()}}function mi(n,r){if(1&n&&(e.TgZ(0,"tfoot")(1,"tr")(2,"td",227),e.YNc(3,gi,3,1,"button",228),e.YNc(4,_i,2,0,"button",229),e.qZA()()()),2&n){const t=e.oxw(4);e.xp6(3),e.Q6J("ngIf",0===t.ConfigurationForm.value.Include.length),e.xp6(1),e.Q6J("ngIf",t.ConfigurationForm.value.Include.length>0)}}function fi(n,r){1&n&&(e.TgZ(0,"strong",217),e._uU(1,' Note : Kindly provide endpoint of URL only for example your URL is "https://code.com/examp1/examp2" just provide endpoint "/examp1/examp2" '),e.qZA())}function hi(n,r){if(1&n&&(e.TgZ(0,"div",11)(1,"div",218)(2,"table",219)(3,"tbody"),e.YNc(4,ui,9,2,"tr",171),e.qZA(),e.YNc(5,mi,5,2,"tfoot",138),e.qZA(),e.TgZ(6,"div",220),e.YNc(7,fi,2,0,"strong",215),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(4),e.Q6J("ngForOf",t.ConfigurationForm.controls.Include.controls),e.xp6(1),e.Q6J("ngIf",t.ConfigurationForm.controls.Exclude.value.length<=0),e.xp6(2),e.Q6J("ngIf",t.ConfigurationForm.controls.Include.value.length>0)}}function Ci(n,r){1&n&&(e.TgZ(0,"small"),e._uU(1,"Path is required"),e.qZA())}function bi(n,r){if(1&n&&(e.TgZ(0,"div",137),e.YNc(1,Ci,2,0,"small",138),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.errors.required)}}function xi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"label",221),e._uU(2,"Path"),e.qZA(),e.TgZ(3,"td",222),e._UZ(4,"input",223),e.YNc(5,bi,2,1,"div",126),e.qZA(),e.TgZ(6,"td",224)(7,"button",225),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(4);return e.KtG(a.deleteExcludePath(s))}),e._UZ(8,"i",226),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index;e.xp6(4),e.Q6J("formControlName",i),e.xp6(1),e.Q6J("ngIf",t.errors)}}function Zi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",230),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.addNewExcludePath())}),e._uU(1,"Add Path"),e._UZ(2,"i",231),e.qZA()}if(2&n){const t=e.oxw(5);e.Q6J("disabled",t.ConfigurationForm.value.Include.length>0)}}function vi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",232),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.addNewExcludePath())}),e._UZ(1,"i",233),e.qZA()}}function Ti(n,r){if(1&n&&(e.TgZ(0,"tfoot")(1,"tr")(2,"td",227),e.YNc(3,Zi,3,1,"button",228),e.YNc(4,vi,2,0,"button",229),e.qZA()()()),2&n){const t=e.oxw(4);e.xp6(3),e.Q6J("ngIf",0===t.ConfigurationForm.value.Exclude.length),e.xp6(1),e.Q6J("ngIf",t.ConfigurationForm.value.Exclude.length>0)}}function yi(n,r){1&n&&(e.TgZ(0,"strong",217),e._uU(1,' Note : Kindly only provide endpoint of URL for example your URL is "https://code.com/examp1/examp2" just provide endpoint "/examp1/examp2" '),e.qZA())}function Ai(n,r){if(1&n&&(e.TgZ(0,"div",11)(1,"div",234)(2,"table",219)(3,"tbody"),e.YNc(4,xi,9,2,"tr",171),e.qZA(),e.YNc(5,Ti,5,2,"tfoot",138),e.qZA(),e.TgZ(6,"div",220),e.YNc(7,yi,2,0,"strong",215),e.qZA()()()),2&n){const t=e.oxw(3);e.xp6(4),e.Q6J("ngForOf",t.ConfigurationForm.controls.Exclude.controls),e.xp6(1),e.Q6J("ngIf",t.ConfigurationForm.controls.Include.value.length<=0),e.xp6(2),e.Q6J("ngIf",t.ConfigurationForm.controls.Exclude.value.length>0)}}const Ce=function(n,r){return{color:n,"border-bottom":r}};function wi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",211)(1,"p-divider",63)(2,"b"),e._uU(3,"Allow/Disallow "),e.qZA()(),e.TgZ(4,"div",212)(5,"div",213)(6,"button",214),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.showVendorType=1)}),e._uU(7,"Allow"),e.qZA(),e.TgZ(8,"button",214),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.showVendorType=2)}),e._uU(9,"Disallow"),e.qZA()(),e.TgZ(10,"div"),e.YNc(11,li,2,0,"p",215),e.qZA(),e.TgZ(12,"div"),e.YNc(13,ci,2,0,"p",215),e.qZA(),e.YNc(14,hi,8,3,"div",216),e.YNc(15,Ai,8,3,"div",216),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngStyle",e.WLB(6,Ce,1===t.showVendorType?"#1b365d":"#555",1===t.showVendorType?"2px solid #FBC02D":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(9,Ce,2===t.showVendorType?"#1b365d":"#555",2===t.showVendorType?"2px solid #FBC02D":null)),e.xp6(3),e.Q6J("ngIf",2==t.showVendorType&&t.ConfigurationForm.controls.Include.value.length>0),e.xp6(2),e.Q6J("ngIf",1==t.showVendorType&&t.ConfigurationForm.controls.Exclude.value.length>0),e.xp6(1),e.Q6J("ngIf",1==t.showVendorType),e.xp6(1),e.Q6J("ngIf",2==t.showVendorType)}}function Ui(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",60)(1,"div",61)(2,"div",62)(3,"p-divider",63)(4,"b"),e._uU(5,"General Configuration"),e.qZA()()(),e.TgZ(6,"div",64)(7,"p-div
1ider",63)(8,"b",65),e._uU(9,"Layout Types"),e.qZA()(),e.TgZ(10,"div",11)(11,"div",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSetBannerType("center"))}),e.YNc(12,mo,1,0,"i",67),e._UZ(13,"img",68),e.qZA(),e.TgZ(14,"div",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSetBannerType("bottom-left"))}),e.YNc(15,fo,1,0,"i",67),e._UZ(16,"img",68),e.qZA(),e.TgZ(17,"div",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSetBannerType("bottom-right"))}),e.YNc(18,ho,1,0,"i",67),e._UZ(19,"img",68),e.qZA(),e.TgZ(20,"div",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSetBannerType("top-left"))}),e.YNc(21,Co,1,0,"i",67),e._UZ(22,"img",68),e.qZA(),e.TgZ(23,"div",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSetBannerType("top-right"))}),e.YNc(24,bo,1,0,"i",67),e._UZ(25,"img",68),e.qZA()(),e.TgZ(26,"div",69)(27,"div",70)(28,"p",71),e._uU(29,"Mute Popup "),e._UZ(30,"i-feather",72),e.qZA()(),e.TgZ(31,"div",40),e._UZ(32,"p-inputSwitch",73),e.qZA()(),e.TgZ(33,"div",69)(34,"div",70)(35,"p",71),e._uU(36,"Show Watermark "),e._UZ(37,"i-feather",74),e.qZA()(),e.TgZ(38,"div",40),e._UZ(39,"p-inputSwitch",75),e.qZA()(),e.TgZ(40,"div",69)(41,"div",70)(42,"p",71),e._uU(43,"Mask IP "),e.qZA()(),e.TgZ(44,"div",40),e._UZ(45,"p-inputSwitch",76),e.qZA()(),e.TgZ(46,"div",77)(47,"p-divider",63)(48,"b",65),e._uU(49,"Branding"),e.qZA()(),e.TgZ(50,"div",69)(51,"div",40)(52,"p",71),e._uU(53,"Company Logo"),e.qZA()(),e.TgZ(54,"div",70)(55,"p",78),e._uU(56,"File Type: .jpg, .png and .jpeg supported"),e.qZA(),e.TgZ(57,"input",79,80),e.NdJ("change",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.changeListener(o))}),e.qZA(),e.YNc(59,xo,2,1,"p",81),e.qZA(),e.TgZ(60,"div",82)(61,"div",83),e.YNc(62,Zo,1,1,"img",84),e.YNc(63,vo,3,0,"h5",85),e.qZA(),e.YNc(64,To,2,0,"button",86),e.qZA()(),e.TgZ(65,"div",87)(66,"p-divider",63)(67,"b"),e._uU(68,"Custom CSS"),e.qZA()(),e.TgZ(69,"div",69)(70,"div",82),e._UZ(71,"textarea",88),e.qZA()()()()()(),e.TgZ(72,"div",89)(73,"p-divider",63)(74,"b"),e._uU(75,"Manage Language"),e.qZA()(),e.TgZ(76,"div",9)(77,"p-table",90),e.YNc(78,yo,8,1,"ng-template",91),e.YNc(79,wo,9,6,"ng-template",92),e.qZA()()(),e.YNc(80,Ho,57,9,"div",93),e.YNc(81,Vo,78,34,"div",94),e.YNc(82,ii,7,1,"div",95),e.YNc(83,ai,13,4,"div",96),e.YNc(84,wi,16,12,"div",97),e.qZA()}if(2&n){const t=e.oxw();e.Tol("steppers-"+t.ConfigurationForm.value.CurrentPreviewDevice),e.xp6(1),e.Q6J("ngStyle",e.VKq(25,oe,1===t.step?"block":"none")),e.xp6(11),e.Q6J("ngIf","center"===t.ConfigurationForm.value.LayoutType),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/banner-types/popup-center.svg":"assets/imgs/banner-types/popup-center.png",e.LSH),e.xp6(2),e.Q6J("ngIf","bottom-left"===t.ConfigurationForm.value.LayoutType),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/banner-types/az-box-bottom-left.svg":"assets/imgs/banner-types/az-box-bottom-left.png",e.LSH),e.xp6(2),e.Q6J("ngIf","bottom-right"===t.ConfigurationForm.value.LayoutType),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/banner-types/az-box-bottom-right.svg":"assets/imgs/banner-types/az-box-bottom-right.png",e.LSH),e.xp6(2),e.Q6J("ngIf","top-left"===t.ConfigurationForm.value.LayoutType),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/banner-types/az-box-top-left.svg":"assets/imgs/banner-types/az-box-top-left.png",e.LSH),e.xp6(2),e.Q6J("ngIf","top-right"===t.ConfigurationForm.value.LayoutType),e.xp6(1),e.Q6J("src","PrivacyPillar"==t.portal?"assets/imgs/banner-types/az-box-top-right.svg":"assets/imgs/banner-types/az-box-top-right.png",e.LSH),e.xp6(12),e.MGl("tooltip","If disabled, ",t.portal," branding will disappear from the bottom right corner of the banner."),e.xp6(22),e.Q6J("ngIf",t.companyLogoValidation.error),e.xp6(3),e.Q6J("ngIf",t.customerBrandLogo),e.xp6(1),e.Q6J("ngIf",!t.customerBrandLogo),e.xp6(1),e.Q6J("ngIf",t.customerBrandLogo),e.xp6(8),e.Q6J("ngStyle",e.VKq(27,oe,2===t.step?"block":"none")),e.xp6(5),e.Q6J("value",t.languages),e.xp6(3),e.Q6J("ngIf",3===t.step),e.xp6(1),e.Q6J("ngIf",4===t.step),e.xp6(1),e.Q6J("ngIf",5===t.step),e.xp6(1),e.Q6J("ngIf",6===t.step),e.xp6(1),e.Q6J("ngIf",7===t.step)}}function qi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",235)(1,"app-newsletter-preview",236),e.NdJ("selectPreviewLang",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onSelectLang(o))}),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("BundlePayload",t.BundlePayload)("allowedLanguagesForPreview",t.allowedLanguagesForPreview)("ConfigForm",t.ConfigurationForm.value)("customLanguageConfig",t.customLanguageConfig)("customerBrandLogo",t.customerBrandLogo)}}function ki(n,r){1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"div",237)(1,"h5",238),e._uU(2,"Creating Your Subscription Consent Banner ..."),e.qZA(),e.TgZ(3,"div",239)(4,"div",240)(5,"span",241),e._uU(6,"Loading..."),e.qZA()(),e.TgZ(7,"div",242)(8,"span",241),e._uU(9,"Loading..."),e.qZA()(),e.TgZ(10,"div",243)(11,"span",241),e._uU(12,"Loading..."),e.qZA()(),e.TgZ(13,"div",244)(14,"span",241),e._uU(15,"Loading..."),e.qZA()(),e.TgZ(16,"div",245)(17,"span",241),e._uU(18,"Loading..."),e.qZA()(),e.TgZ(19,"div",246)(20,"span",241),e._uU(21,"Loading..."),e.qZA()(),e.TgZ(22,"div",247)(23,"span",241),e._uU(24,"Loading..."),e.qZA()(),e.TgZ(25,"div",248)(26,"span",241),e._uU(27,"Loading..."),e.qZA()()()())}function Si(n,r){if(1&n&&(e.TgZ(0,"alert",251),e._UZ(1,"span",252),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("type",t.alertType)("dismissible",t.dismissible),e.xp6(1),e.Q6J("innerHTML",t.alertMsg,e.oJD)}}const Pi=function(n){return{hide:n}};function Ii(n,r){if(1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"div",249),e.YNc(1,Si,2,3,"alert",250),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,Pi,!t.isOpen)),e.xp6(1),e.Q6J("ngIf",t.isOpen)}}function Ni(n,r){if(1&n){const t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"div",253)(1,"button",254),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.modalRef?null:o.modalRef.hide())}),e.TgZ(2,"span",255),e._uU(3,"\xd7"),e.qZA()(),e.TgZ(4,"div",256)(5,"div",257),e._uU(6," Please ignore if you have already saved the script, otherwise copy and paste the code into header of your website."),e.qZA(),e.TgZ(7,"div",10)(8,"h6",258)(9,"b"),e._uU(10,"Production CDN "),e.qZA()(),e.TgZ(11,"button",259),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.copyToClipboard())}),e._UZ(12,"i",260),e._uU(13),e.qZA()(),e.TgZ(14,"div",261)(15,"p",262)(16,"span")(17,"code",263),e._uU(18,"//Please copy and paste this code into the header for each page on your website(s). It is important that this code be the first script in your document. "),e.qZA()(),e._UZ(19,"br"),e.TgZ(20,"span")(21,"code",264),e._uU(22),e.qZA()(),e.TgZ(23,"span",265),e._uU(24),e.qZA(),e.TgZ(25,"span")(26,"code",264),e._uU(27),e.qZA()(),e._UZ(28,"br"),e.qZA()(),e.TgZ(29,"div",266)(30,"div",267)(31,"h5"),e._uU(32),e.qZA()(),e.TgZ(33,"div",268)(34,"a",269)(35,"div",270),e._UZ(36,"img",271),e.qZA()(),e.TgZ(37,"a",269)(38,"div",272),e._UZ(39,"img",273),e.qZA()(),e.TgZ(40,"a",269)(41,"div",274),e._UZ(42,"img",275),e.qZA()(),e.TgZ(43,"a",269)(44,"div",276),e._UZ(45,"img",277),e.qZA()(),e.TgZ(46,"a",269)(47,"div",278),e._UZ(48,"img",279),e.qZA()(),e.TgZ(49,"a",269)(50,"div",280),e._UZ(51,"img",281),e.qZA()()(),e.TgZ(52,"div",282)(53,"button",283),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goToDashboard())}),e._UZ(54,"i",284),e._uU(55," Go to Dashboard "),e.qZA(),e.TgZ(56,"button",285),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goToSetup())}),e._UZ(57,"i",286),e._uU(58," Implementation "),e.qZA()()()()()}if(2&n){const t=e.oxw();e.xp6(13),e.hij(" ",t.isCopied?"Copied":"Copy Script",""),e.xp6(9),e.Oqu(t.addScript),e.xp6(2),e.hij("https://",t.scriptUrl,""),e.xp6(3),e.Oqu(t.closeScript),e.xp6(5),e.hij("How to integrate ",t.portal," scripts to:"),e.xp6(2),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/63/implement-adzapier-applications-on-website-html",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/40/adzapiers-cookie-banner-integration-with-wordpress",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/44/adzapiers-cookie-banner-integration-with-shopify",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/49/adzapiers-cookie-banner-integration-with-squarespace",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/47/adzapiers-cookie-banner-integration-with-blogger",e.LSH),e.xp6(3),e.MGl("href","",t.supportURL,"/help-center/articles/23/25/46/adzapiers-cookie-banner-integration-with-bigcommerce",e.LSH)}}function Mi(n,r){if(1&n){const t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"div",253)(1,"button",254),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.modalRef?null:o.modalRef.hide())}),e.TgZ(2,"span",255),e._uU(3,"\xd7"),e.qZA()(),e.TgZ(4,"h5",287),e._uU(5," Are you sure you want to reset to default? "),e.qZA(),e.TgZ(6,"p"),e._uU(7,"This will reset all the user-defined settings, contents, and layouts into the default."),e.qZA(),e.TgZ(8,"button",288),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.modalRef?null:o.modalRef.hide())}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",285),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onResetEverything())}),e._uU(11,"I Agree"),e.qZA()()}}const Di=function(n){return{display:n}},be=function(n,r){return{oid:n,pid:r}},V=function(n){return{"step-active":n}},Fi=function(){return[26,80]},Oi=function(){return[24,50]},ie=function(n,r){return{"btn-primary device-btn":n,"btn-white":r}},re=function(n){return{fill:n}};let Li=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D,Q,Y){this.formBuilder=i,this.modalService=o,this.cd=s,this.NewsLetterService=a,this.loading=g,this.activatedRouter=y,this.titleService=B,this.router=D,this.userService=Q,this.dataService=Y,this.step=1,this.languages=O.sp,this.selectedLanguage=["enUS"],this.allowedLanguagesForPreview=[{title:"English (United States)",code:"enUS",countryFlag:"us"}],this.customLang=[],this.colorPicker={...O.H0},this.themeType="light",this.publishType="draft",this.isFormUpdate=!1,this.contentSaving="",this.customerBrandLogo=null,this.companyLogoValidation={error:!1,msg:""},this.displayFrequency=O.ei,this.showInput=0,this.submitted=!1,this.publishing=!1,this.dismissible=!0,this.isEdit=!1,this.isOpen=!1,this.showVendorType=1,this.values=O.xI,this.customLanguageConfig={...O.yK},this.allLanguageDefault=O.yK,this.addScript='<script type="application/javascript" src="',this.closeScript='"><\/script>',this.isCopied=!1,this.IncludeData=[],this.ExcludeData=[],this.portal=q.N.portalPrefix,this.supportURL=q.N.supportPortalURL,this.titleService.setTitle("Subscription Consent Banner - "+q.N.portalPrefix)}ngOnInit(){this.deleteCookies("az-consent-preference"),this.activatedRouter.queryParams.subscribe(i=>{let o=i.oid,s=i.pid;null!=this.currentManagedOrgID&&(this.currentManagedOrgID!=o||this.currrentManagedPropID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.currentManagedOrgID=o,this.currrentManagedPropID=s}),this.ConfigurationForm=this.formBuilder.group({PreviewLanguage:[{title:"English (United States)",code:"enUS",countryFlag:"us"}],Title:[O.yK.enUS.title,p.kI.required],Description:[O.yK.enUS.description,p.kI.required],TermAndConditionLink:["",p.kI.required],TermAndConditionVersion:[1,p.kI.required],PrivacyLink:["",p.kI.required],PrivacyLinkVersion:[1,p.kI.required],SubscribeButtonText:[O.yK.enUS.subscribeButtonText,p.kI.required],HeaderBackgroun
1dColor:[""],HeaderTextColor:[""],BorderColor:[""],BodyBackgroundColor:[""],BodyTextColor:[""],SubscribeButtonBackgroundColor:[""],SubscribeButtonTextColor:[""],LayoutType:["center"],MutePopup:[!1],ShowWatermark:[""],mask_ip_address:[!1],FormInputs:this.formBuilder.array([]),DefaultLanguage:["enUS"],CurrentPreviewDevice:["web"],EnableDisplayFrequency:[!1],DisplayClosedConsent:[10],DisplayClosedConsentType:["pageViews"],Include:this.formBuilder.array([]),Exclude:this.formBuilder.array([]),CustomCss:[""]}),this.onSetDefaultStyle(O.H0),this.ConfigurationForm.valueChanges.pipe((0,ro.U)(i=>i),(0,L.b)(2e3)).subscribe(i=>{this.BundlePayloadChange(),this.checkFormDirty()&&this.onSaveCustomLangOnDB()}),this.onGetNewsLetterConfiguration(),this.userService.getLoggedInUserData.pipe((0,so.g)(1e3)).subscribe(i=>{null!==i&&(this.userRole=i.response.role)})}onGetNewsLetterConfiguration(){this.loading.start(),this.NewsLetterService.onGetNewsLetterData(this.constructor.name,u.e.consentPreferenceNewsLetter).subscribe(i=>{this.loading.stop(),i?.response.hasOwnProperty("configuration")?(this.isavailable=!0,this.isFormUpdate=!0,this.onSetSavedConfig(i.response)):(this.BundlePayloadChange(),this.isavailable=!1,this.formInputs.clear(),O.q8.map(o=>{this.formInputs.push(this.newFormInput(o))}))},i=>{this.loading.start(),this.isOpen=!0,this.alertMsg=i,O.q8.map(o=>{this.formInputs.push(this.newFormInput(o))}),this.alertType="danger"})}deleteCookies(i){document.cookie=i+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}onSetSavedConfig(i){const o=i.configuration;this.themeType=o?.Layout?.ThemeType,this.customerBrandLogo=o?.Branding?.CompanyLogo,this.customLanguageConfig=o?.LanguagesConfig?.LanguageData,this.customLang=o?.LanguagesConfig?.CustonLang?o?.LanguagesConfig?.CustonLang:[],this.allowedLanguagesForPreview=o?.LanguagesConfig?.AllowedLang,this.selectedLanguage=[];for(const a of this.allowedLanguagesForPreview)this.selectedLanguage.push(a.code),this.onChekLangExist(a);if(this.IncludeData=[],this.IncludeData=o?.AllowDisallowpath?.Allow,void 0!==this.IncludeData&&this.IncludeData.length>0)for(const a of this.IncludeData){const g=new p.p4(a);this.ConfigurationForm.controls.Include.push(g)}if(this.ExcludeData=[],this.ExcludeData=o?.AllowDisallowpath?.Disallow,void 0!==this.ExcludeData&&this.ExcludeData.length>0)for(const a of this.ExcludeData){const g=new p.p4(a);this.ConfigurationForm.controls.Exclude.push(g)}this.formInputs.clear(),o?.Form?.Validation.map(a=>{this.formInputs.push(this.newFormInput(a))}),this.ConfigurationForm.patchValue({FormInputs:o?.Form?.Validation,HeaderBackgroundColor:o?.Layout?.HeaderBackgroundColor,HeaderTextColor:o?.Layout?.HeaderTextColor,BorderColor:o?.Layout?.BorderColor,BodyBackgroundColor:o?.Layout?.BodyBackgroundColor,BodyTextColor:o?.Layout?.BodyTextColor,SubscribeButtonBackgroundColor:o?.Layout?.SubscribeButtonBackgroundColor,SubscribeButtonTextColor:o?.Layout?.SubscribeButtonTextColor,ShowWatermark:o?.BasicConfig?.WaterMark,mask_ip_address:o?.BasicConfig?.mask_ip_address,LayoutType:o?.BasicConfig?.BoxedType,TermAndConditionLink:o?.Links?.TermAndConditionLink,TermAndConditionVersion:o?.Links?.TermAndConditionVersion,PrivacyLink:o?.Links.PrivacyLink,PrivacyLinkVersion:o?.Links.PrivacyLinkVersion,EnableDisplayFrequency:!!o.DisplayFrequency?.status&&o.DisplayFrequency?.status,DisplayClosedConsent:o?.DisplayFrequency?.DisplayClosedConsent,DisplayClosedConsentType:o?.DisplayFrequency?.DisplayClosedConsentType,DefaultLanguage:o?.LanguagesConfig?.DefaultLanguage,MutePopup:o?.BasicConfig?.MutePopup,CustomCss:o?.hasOwnProperty("CustomCss")?o?.CustomCss:"",PreviewLanguage:this.allowedLanguagesForPreview.length>0?this.allowedLanguagesForPreview[0]:{title:"English (United States)",code:"enUS",countryFlag:"us"}}),this.colorPicker.HeaderBackgroundColor=o?.Layout?.HeaderBackgroundColor,this.colorPicker.HeaderTextColor=o?.Layout?.HeaderTextColor,this.colorPicker.BorderColor=o?.Layout?.BorderColor,this.colorPicker.BodyBackgroundColor=o?.Layout?.BodyBackgroundColor,this.colorPicker.BodyTextColor=o?.Layout?.BodyTextColor,this.colorPicker.SubscribeButtonBackgroun
1dColor=o?.Layout?.SubscribeButtonBackgroundColor,this.colorPicker.SubscribeButtonTextColor=o?.Layout?.SubscribeButtonTextColor,this.allowedLanguagesForPreview.length>0&&(this.ConfigurationForm.patchValue({PreviewLanguage:this.allowedLanguagesForPreview[0]}),this.onLoadContent(this.allowedLanguagesForPreview[0].code))}onChekLangExist(i){this.customLanguageConfig.hasOwnProperty(i.code)||(this.customLanguageConfig[i.code]=this.allLanguageDefault[i.code])}checkFormDirty(){return this.ConfigurationForm.controls.Title.dirty||this.ConfigurationForm.controls.Description.dirty||this.ConfigurationForm.controls.SubscribeButtonText.dirty}addNewIncludePath(){const i=new p.p4("",[p.kI.required]);this.ConfigurationForm.controls.Include.push(i)}deleteIncludePath(i){this.ConfigurationForm.get("Include").removeAt(i)}addNewExcludePath(){const i=new p.p4("",[p.kI.required]);this.ConfigurationForm.controls.Exclude.push(i)}deleteExcludePath(i){this.ConfigurationForm.get("Exclude").removeAt(i)}onSaveCustomLangOnDB(){const i=this.ConfigurationForm.value.PreviewLanguage.code;this.customLanguageConfig[i].title=this.ConfigurationForm.value.Title,this.customLanguageConfig[i].description=this.ConfigurationForm.value.Description,this.customLanguageConfig[i].subscribeButtonText=this.ConfigurationForm.value.SubscribeButtonText,this.customLang.includes(i)||this.customLang.push(i)}get f(){return this.ConfigurationForm.controls}get formInputs(){return this.ConfigurationForm.get("FormInputs")}newFormInput(i){return this.formBuilder.group("email"===i.key?{key:[i.key,{disabled:!0}],display:[i.display,{disabled:!0}],required:[i?.required,{disabled:!0}],emailValidation:[i?.emailValidation,{disabled:!0}]}:"phone_no"===i.key?{key:[i.key],display:[i.display],required:[i?.required],minLength:[i?.minLength],maxLength:[i?.maxLength],phoneValidation:[i?.phoneValidation]}:"landline_no"===i.key?{key:[i.key],display:[i.display],required:[i?.required],minLength:[i?.minLength],maxLength:[i?.maxLength],landlineValidation:[i?.landlineValidation]}:"privacy_Policy"===i.key?{key:[i.key],display:[i.display],required:[i?.required]}:{key:[i.key],display:[i.display],required:[i?.required],minLength:[i?.minLength],maxLength:[i?.maxLength]})}onAllowAllLanguage(i){if(i.target.checked){this.selectedLanguage=[],this.allowedLanguagesForPreview=[];for(const o of O.sp)this.selectedLanguage.push(o.code);this.allowedLanguagesForPreview=[...O.sp]}else this.selectedLanguage=[],this.allowedLanguagesForPreview=[];this.BundlePayloadChange()}onSetDefaultStyle(i){this.ConfigurationForm.patchValue({HeaderBackgroundColor:i.HeaderBackgroundColor,HeaderTextColor:i.HeaderTextColor,BodyBackgroundColor:i.BodyBackgroundColor,BodyTextColor:i.BodyTextColor,BorderColor:i.BorderColor,SubscribeButtonBackgroundColor:i.SubscribeButtonBackgroundColor,SubscribeButtonTextColor:i.SubscribeButtonTextColor})}onSetLanguage(i,o){const a=[...this.selectedLanguage];let g=[...this.allowedLanguagesForPreview];if(i.target.checked)a.includes(o)||(a.push(o),g.push(this.onFindLangByCode(o)));else{const y=this.selectedLanguage.indexOf(o);if(y>-1&&a.splice(y,1),1===this.allowedLanguagesForPreview.length)g=[];else{const B=this.allowedLanguagesForPreview.indexOf(this.onFindLangByCode(o));B>-1&&g.splice(B,1)}}this.selectedLanguage=a,this.allowedLanguagesForPreview=g,this.allowedLanguagesForPreview.length>0&&(this.ConfigurationForm.patchValue({PreviewLanguage:this.allowedLanguagesForPreview[0]}),this.onLoadContent(this.allowedLanguagesForPreview[0].code)),this.BundlePayloadChange()}onFindLangByCode(i){let o={title:"English (United States)",code:"enUS",countryFlag:"us"};for(const s of O.sp)s.code===i&&(o=s);return o}onExpandCollapseConf(i){0==this.showInput||this.showInput!==i?this.showInput=i:this.showInput==i&&(this.showInput=0)}onResetLang(i){this.onGetGlobleLangData(i);const o=this.customLang.indexOf(i);o>-1&&this.customLang.splice(o,1)}onGetGlobleLangData(i){this.onSetDefaultContent()}onSetDefaultContent(){const i=this.ConfigurationForm.value.PreviewLanguage.code,o={...O.yK};this.ConfigurationForm.patchValue({Title:o[i].title,Description:o[i].description,SubscribeButtonText:o[i].subscribeButtonText})}
1onResetEverything(){"View Only"!==this.userRole?(this.themeType="light",this.onSetDefaultStyle(O.H0),this.customLang=[],this.selectedLanguage=["enUS"],this.ConfigurationForm.value.PreviewLanguage="",this.allowedLanguagesForPreview=[{title:"English (United States)",code:"enUS",countryFlag:"us"}],this.ConfigurationForm.patchValue({PreviewLanguage:{title:"English (United States)",code:"enUS",countryFlag:"us"},Title:O.yK.enUS.title,Description:O.yK.enUS.description,TermAndConditionLink:"",TermAndConditionVersion:1,PrivacyLink:"",PrivacyLinkVersion:1,SubscribeButtonText:O.yK.enUS.subscribeButtonText,LayoutType:"center",MutePopup:!1,ShowWatermark:"",mask_ip_address:!1,DefaultLanguage:"enUS",CurrentPreviewDevice:"web",EnableDisplayFrequency:!1,DisplayClosedConsent:10,DisplayClosedConsentType:"pageViews",CustomCss:""}),this.onSaveCustomLangOnDB(),this.onSetDefaultContent(),this.formInputs.clear(),O.q8.map(i=>{this.formInputs.push(this.newFormInput(i))}),this.ConfigurationForm.controls.Include.clear(),this.ConfigurationForm.controls.Exclude.clear(),this.modalRef.hide()):(this.modalRef.hide(),this.dataService.openUnAuthModal.next({isTrue:!0,error:"User is not authorized to access this functionality."}))}onSelectPreviewLang(){this.onLoadContent(this.ConfigurationForm.value.PreviewLanguage.code)}onLoadContent(i){this.customLang.includes(i)?this.onGetCustomLangData():this.onGetGlobleLangData(i)}onGetCustomLangData(){const i=this.ConfigurationForm.value.PreviewLanguage.code;this.ConfigurationForm.patchValue({Title:this.customLanguageConfig[i].title,Description:this.customLanguageConfig[i].description,SubscribeButtonText:this.customLanguageConfig[i].subscribeButtonText})}onSubmit(){this.submitted=!0,!this.ConfigurationForm.invalid&&(this.isFormUpdate?this.onUpdateForm():this.onCreateForm())}onSelectLang(i){this.ConfigurationForm.patchValue({PreviewLanguage:i}),this.onSelectPreviewLang()}onCreateForm(){const i={configuration:this.onSetupConfigurationObject(),mask_ip_address:this.ConfigurationForm.value.mask_ip_address};"draft"===this.publishType?this.loading.start():this.publishing=!0,this.NewsLetterService.onSubmitNewsLetterData(i,this.publishType,this.constructor.name,u.e.consentPreferenceNewsLetter).subscribe(o=>{this.ConfigurationForm.controls.Include.clear(),this.ConfigurationForm.controls.Exclude.clear(),this.ConfigurationForm.markAsPristine(),this.loading.stop(),this.isOpen=!0,this.alertMsg=o.response,this.alertType="success",this.publishing=!1,this.scriptUrl=o.JSPath,setTimeout(()=>{this.isOpen=!1},5e3),this.onGetNewsLetterConfiguration(),"publish"===this.publishType&&this.openModal(this.publishModal)},o=>{this.isOpen=!0,this.alertMsg=o,this.alertType="danger",this.loading.stop(),this.publishing=!1,setTimeout(()=>{this.isOpen=!1},5e3)})}openModal(i){this.modalRef=this.modalService.show(i,{class:"modal-lg setup-modal",animated:!1,keyboard:!1,ignoreBackdropClick:!0})}onUpdateForm(){const i={configuration:this.onSetupConfigurationObject(),mask_ip_address:this.ConfigurationForm.value.mask_ip_address};"draft"===this.publishType?this.loading.start():this.publishing=!0,this.NewsLetterService.onUpdateNewsLetterData(i,this.publishType,this.constructor.name,u.e.consentPreferenceNewsLetter).subscribe(o=>{this.ConfigurationForm.controls.Include.clear(),this.ConfigurationForm.controls.Exclude.clear(),this.ConfigurationForm.markAsPristine(),this.loading.stop(),this.isOpen=!0,setTimeout(()=>{this.isOpen=!1},5e3),this.alertMsg=o.response,this.alertType="success",this.publishing=!1,this.scriptUrl=o.JSPath,this.onGetNewsLetterConfiguration(),"publish"===this.publishType&&this.openModal(this.publishModal)},o=>{this.isOpen=!0,this.alertMsg=o,this.alertType="danger",this.loading.stop(),this.publishing=!1,setTimeout(()=>{this.isOpen=!1},5e3)})}drop(i){const o=this.ConfigurationForm.controls.FormInputs.value;(0,$.bA)(o,i.previousIndex,i.currentIndex),(0,$.bA)(this.values,i.previousIndex,i.currentIndex),this.isavailable?(this.formInputs.clear(),o.map(s=>{this.formInputs.push(this.newFormInput(s))}),this.ConfigurationForm.patchValue({FormInputs:o})):(this.ConfigurationForm.patchValue({FormInputs:o}),this.formInputs.clear(),o.map(s=>{this.formInputs.push(this.newFormInput(s))}))}onSelectSocialNetwork(i,o){const s=this.ConfigurationForm.value.FormInputs.indexOf(i.key);s>-1?(this.ConfigurationForm.value.FormInputs.removeAt(s),this.ConfigurationForm.value.FormInputs.splice(s,1)):this.formInputs.push(this.newFormInput(i));const a=this.getUniqueListBy(this.ConfigurationForm.value.FormInputs,"key");this.ConfigurationForm.patchValue({FormInputs:a})}getUniqueListBy(i,o){return[...new Map(i.map(s=>[s[o],s])).values()]}onSetupConfigurationObject(){const i=this.ConfigurationForm.value;return{Form:{Validation:i?.FormInputs}
1,Layout:{HeaderBackgroundColor:i?.HeaderBackgroundColor,HeaderTextColor:i?.HeaderTextColor,BorderColor:i?.BorderColor,BodyBackgroundColor:i?.BodyBackgroundColor,BodyTextColor:i?.BodyTextColor,SubscribeButtonBackgroundColor:i?.SubscribeButtonBackgroundColor,SubscribeButtonTextColor:i?.SubscribeButtonTextColor,ThemeType:this.themeType},Branding:{CompanyLogo:this.customerBrandLogo},BasicConfig:{WaterMark:i?.ShowWatermark,BoxedType:i?.LayoutType,MutePopup:i?.MutePopup,mask_ip_address:i?.mask_ip_address},LanguagesConfig:{LanguageData:this.customLanguageConfig,CustonLang:this.customLang,AllowedLang:this.allowedLanguagesForPreview,DefaultLanguage:i?.DefaultLanguage},Links:{TermAndConditionLink:i?.TermAndConditionLink,TermAndConditionVersion:i?.TermAndConditionVersion,PrivacyLink:i?.PrivacyLink,PrivacyLinkVersion:i?.PrivacyLinkVersion},DisplayFrequency:{status:i?.EnableDisplayFrequency,DisplayClosedConsent:i?.DisplayClosedConsent,DisplayClosedConsentType:i?.DisplayClosedConsentType},AllowDisallowpath:{Allow:i?.Include,Disallow:i?.Exclude},CustomCss:i?.CustomCss}}onSelectThemeType(i){this.themeType=i,"dark"===i?this.onSetDefaultStyle(O.vh):"light"===i&&this.onSetDefaultStyle(O.H0)}onSetBannerType(i){this.ConfigurationForm.patchValue({LayoutType:i})}changeListener(i){const o=i.target.files[0];return this.validateFile(i.target.files[0].name)?o.size>2e4?(this.companyLogoValidation.error=!0,this.companyLogoValidation.msg="Maximum file size to upload is 20kb.",this.cd.detectChanges(),!1):(this.companyLogoValidation.error=!1,void this.readThis(i.target)):(this.companyLogoValidation.error=!0,this.companyLogoValidation.msg="Selected file format is not supported.",this.cd.detectChanges(),!1)}validateFile(i){const o=i.substring(i.lastIndexOf(".")+1);return"png"===o.toLowerCase()||"jpg"===o.toLowerCase()||"jpeg"===o.toLowerCase()}readThis(i){const o=i.files[0],s=new FileReader;s.onloadend=a=>{this.customerBrandLogo=s.result,this.BundlePayloadChange()},s.readAsDataURL(o)}copyToClipboard(){this.isCopied=!0;const i=this.addScript+"https://"+this.scriptUrl+this.closeScript;let o=null;o=document.createElement("textarea"),o.style.height="0px",o.style.left="-100px",o.style.opacity="0",o.style.position="fixed",o.style.top="-100px",o.style.width="0px",document.body.appendChild(o),o.value=i.trim(),o.select(),document.execCommand("copy")}onResetPreview(){this.customerBrandLogo=null,this.fileInput.nativeElement.value="",this.BundlePayloadChange()}onSelectDevice(i){this.ConfigurationForm.patchValue({CurrentPreviewDevice:i}),this.cd.detectChanges()}goToDashboard(){this.router.navigate(["/home/dashboard/consent-preference"],{queryParams:{oid:this.currentManagedOrgID,pid:this.currrentManagedPropID}}),this.modalRef.hide()}goToSetup(){this.router.navigate(["/consent-preference/setup"],{queryParams:{oid:this.currentManagedOrgID,pid:this.currrentManagedPropID}}),this.modalRef.hide()}BundlePayloadChange(){this.BundlePayload={Configuration:{...this.onSetupConfigurationObject()},PropId:this.currrentManagedPropID,OrgId:this.currentManagedOrgID,LokiConfiguration:{app:q.N.lokiConfig.app,env:q.N.lokiConfig.env},EnvConfig:{ApiBaseUrl:q.N.apiUrl,EndPoint:q.N.newsletterBannerEndPoint.replace(":pid",this.currrentManagedPropID),Env:q.N.lokiConfig.env},LivePreview:!0,PreviewLanguage:this.ConfigurationForm.value?.PreviewLanguage?.code,portal:q.N.portalPrefix.toLowerCase()},"center"!==this.BundlePayload.Configuration.BasicConfig.BoxedType&&"mobile"===this.ConfigurationForm.value.CurrentPreviewDevice&&(this.Bu
1ndlePayload.Configuration.BasicConfig.BoxedType="center")}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(p.QS),e.Y36(f.tT),e.Y36(e.sBO),e.Y36(te.M),e.Y36(_.LA),e.Y36(b.gz),e.Y36(Z.Dx),e.Y36(b.F0),e.Y36(m.KD),e.Y36(S.D))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-newsletter-config"]],viewQuery:function(o,s){if(1&o&&(e.Gf(go,7),e.Gf(_o,5)),2&o){let a;e.iGM(a=e.CRH())&&(s.publishModal=a.first),e.iGM(a=e.CRH())&&(s.fileInput=a.first)}},decls:100,vars:65,consts:[["appTheme","",1,"container-fluid","newsletter-wrapper",3,"ngStyle"],[1,"col-md-12","ml-4"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/dashboard/consent-preference",3,"queryParams"],[1,"breadcrumb-item","active"],[3,"formGroup","ngSubmit"],[1,"card"],[1,"card-header"],[1,"row"],[1,"main-heading","col-md-4","pt-1","pl-4"],[1,"col-md-8","pl-0","text-right"],["pButton","","pRipple","","type","button","label","Reset to Default",1,"p-button-secondary","action-btn","mr-2",3,"disabled","click"],["placement","left",3,"tooltip"],["pButton","","pRipple","","type","submit","label","Save",1,"p-button-warning","action-btn","mr-2",3,"disabled","click"],[3,"tooltip"],["pButton","","pRipple","","type","submit","label","Publish",1,"action-btn",3,"disabled","click"],[1,"card-body","pb-0","pt-0","pl-3"],[1,"col-md-1","p-0",2,"background","#eaf1fe"],[1,"d-flex","step-bg","pt-2","pb-0","flex-column",3,"ngClass","click"],[1,"mb-2","p-0","text-center"],[1,"fas","fa-cogs","tx-25"],[1,"p-0","mb-2","text-center","tx-13","font-weight-bold"],[1,"fas","fa-language","tx-25"],[1,"fas","fa-file-alt","tx-25"],[1,"fas","fa-fill-drip","tx-25"],[1,"p-0","mb-2","text-center","tx-14","font-weight-bold"],[1,"fas","fa-table","tx-25"],[1,"d-flex","step-bg","pt-1","pb-0","flex-column",3,"ngClass","click"],[1,"col-md-12","mt-2","p-0","text-center"],[1,"fas","fa-tv","tx-25"],[1,"col-md-12","p-0","mb-1","text-center","tx-12","font-weight-bold"],[1,"d-flex","step-bg","pt-2","pb-0","flex-column",2,"border-bottom","0px",3,"ngClass","click"],[1,"fas","fa-link","tx-25"],[1,"col-md-11","p-0"],["stateStorage","session",3,"panelSizes","minSizes"],["pTemplate",""],[1,"card-body","p-1"],[1,"col-md-4"],[1,"col-md-2","preview-div"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",2,"height","25px"],["d","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"],[1,"btn-group"],["type","button",1,"btn",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",3,"ngStyle"],["d","M528 0h-480C21.5 0 0 21.5 0 48v320C0 394.5 21.5 416 48 416h192L224 464H152C138.8 464 128 474.8 128 488S138.8 512 152 512h272c13.25 0 24-10.75 24-24s-10.75-24-24-24H352L336 416h192c26.5 0 48-21.5 48-48v-320C576 21.5 554.5 0 528 0zM512 288H64V64h448V288z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",3,"ngStyle"],["d","M384 .0001H64c-35.35 0-64 28.65-64 64v384c0 35.35 28.65 63.1 64 63.1h320c35.35 0 64-28.65 64-63.1v-384C448 28.65 419.3 .0001 384 .0001zM224 480c-17.75 0-32-14.25-32-32s14.25-32 32-32s32 14.25 32 32S241.8 480 224 480zM384 384H64v-320h320V384z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512",3,"ngStyle"],["d","M304 0h-224c-35.35 0-64 28.65-64 64v384c0 35.35 28.65 64 64 64h224c35.35 0 64-28.65 64-64V64C368 28.65 339.3 0 304 0zM192 480c-17.75 0-32-14.25-32-32
1s14.25-32 32-32s32 14.25 32 32S209.8 480 192 480zM304 64v320h-224V64H304z"],[1,"col-md-2"],["routerLink","/consent-preference/subscription-consent-banner-configuration/history",1,"btn","btn-link","float-right",2,"color","var(--side-nav-org)",3,"queryParams"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",2,"fill","var(--side-nav-org)"],["d","M256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C201.7 512 151.2 495 109.7 466.1C95.2 455.1 91.64 436 101.8 421.5C111.9 407 131.8 403.5 146.3 413.6C177.4 435.3 215.2 448 256 448C362 448 448 362 448 256C448 149.1 362 64 256 64C202.1 64 155 85.46 120.2 120.2L151 151C166.1 166.1 155.4 192 134.1 192H24C10.75 192 0 181.3 0 168V57.94C0 36.56 25.85 25.85 40.97 40.97L74.98 74.98C121.3 28.69 185.3 0 255.1 0L256 0zM256 128C269.3 128 280 138.7 280 152V246.1L344.1 311C354.3 320.4 354.3 335.6 344.1 344.1C335.6 354.3 320.4 354.3 311 344.1L239 272.1C234.5 268.5 232 262.4 232 256V152C232 138.7 242.7 128 256 128V128z"],["class","w-100 card mt-3 publish-loader",4,"ngIf"],["class","col-sm-5 mr-0 float-right flotingdiv",3,"ngClass",4,"ngIf"],["publish",""],["resetConfig",""],[2,"width","100%"],[1,"step-1","config-wrapper",3,"ngStyle"],[1,"allow-regulations","mt-3"],["align","left","type","dashed"],[1,"banner-box-type","ml-4"],[1,"tx-15"],["tooltip","Select to see the preview",1,"col-md-4","mb-4","cursor-pointer",3,"click"],["class","fas fa-check-circle banner-types",4,"ngIf"],[1,"w-100",3,"src"],[1,"row","mt-3"],[1,"col-md-8"],[1,"mb-0","input-label","pt-2"],["name","info","tooltip","If enabled, the banner will disappear from your site.",1,"feather-16"],["formControlName","MutePopup"],["name","info",1,"feather-16",3,"tooltip"],["formControlName","ShowWatermark"],["formControlName","mask_ip_address"],[1,"customer-logo","ml-4"],[1,"mb-1","tx-12"],["type","file","accept","image/png, image/jpg, image/jpeg",3,"change"],["fileInput",""],["class","text-danger",4,"ngIf"],[1,"col-md-12"],[1,"mt-4","img-preview"],["class","img-preview-tag",3,"src",4,"ngIf"],["class","text-center mt-4 mb-4 pt-1",4,"ngIf"],["class","btn btn-link mt-1","type","button",3,"click",4,"ngIf"],[1,"customer-logo"],["formControlName","CustomCss","rows","5","cols","30"],[1,"step-2","lang-config",3,"ngStyle"],["styleClass","p-datatable",3,"value"],["pTemplate","header"],["pTemplate","body"],["class","step-3 content",4,"ngIf"],["class","step-4 layout content",4,"ngIf"],["class","step-5 FormBuilder content",4,"ngIf"],["class","step-6 content display-frequency",4,"ngIf"],["class","step-7 content",4,"ngIf"],[1,"fas","fa-check-circle","banner-types"],[1,"text-danger"],[1,"img-preview-tag",3,"src"],[1,"text-center","mt-4","mb-4","pt-1"],[1,"far","fa-image"],["type","button",1,"btn","btn-link","mt-1",3,"click"],[1,"pl-0","pr-0",2,"width","20%"],["type","checkbox","name","group1",1,"lang-checkbox","ml-1",3,"checked","change"],[1,"pl-0","pr-0",2,"width","40%","font-size","13px"],[1,"pl-0","pr-0",2,"width","20%","font-size","13px","text-align","right"],[1,"pl-0","pr-0"],["type","checkbox",1,"lang-checkbox","ml-1",3,"checked","value","change"],[1,"pr-0",2,"font-size","13px"],["type","button","class","btn btn-link tx-13",3,"click",4,"ngIf"],[1,"text-right","pl-0","pr-1"],["formControlName","DefaultLanguage",3,"disabled","value"],["type","button",1,"btn","btn-link","tx-13",3,"click"],[1,"step-3","content"],[1,"row","mb-3"],["for","ccpa_target",1,"mb-0","input-label","pt-2"],["formControlName","PreviewLanguage","placeholder","Select a Language",3,"options","showClear","onChange"],["pTemplate","selectedItem"],["pTemplate","item"],["id","cookieNotice"],[1,"az-input-group"],[1,"p-field"],["for","title",1,"input-label"],["formControlName","Title","type","text","pInputText","",1,"az-input"],["class","text-danger mt-1",4,"ngIf"],["pInputTextarea","","formControlName","Description",1,"az-input"],["formControlName","TermAndConditionLink","type","text","pInputText","",1,"az-input"],["formControlName","TermAndConditionVersion","type","number","pInputText","",1,"az-input"],["type","text","formControlName","PrivacyLink","pInputText","",1,"az-input"],["formControlName","PrivacyLinkVersion","type","number","pInputText","",1,"az-input"],["type","text","formControlName","SubscribeButtonText","pInputText","",1,"az-input"],["class","country-item country-item-value row",4,"ngIf"],[1,"country-item","country-item-value","row"],[1,"pl-2"],[1,"country-item","row"],[1,"text-danger","mt-1"],[4,"ngIf"],[1,"step-4","layout","content"],[1,"card-theme","mb-3","mt-2","ml-2","mr-2"],[1,"theme-btn-l
1ight","mt-2",3,"click"],[1,"fas","fa-tint",2,"color","#4e98fa"],[1,"pl-3"],["class","allowSign",4,"ngIf"],[1,"theme-btn-dark","mt-2",3,"click"],[1,"fas","fa-tint"],[1,"fas","fa-palette"],[1,"banner-color-wrap","mt-3",3,"ngStyle"],[1,"fas","fa-tools","mr-2"],[1,"row","mr-0"],[1,"p-field","col-md-12"],["formControlName","HeaderBackgroundColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","HeaderBackgroundColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","HeaderTextColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","HeaderTextColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","BorderColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","BorderColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","BodyBackgroundColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","BodyBackgroundColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","BodyTextColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","BodyTextColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","SubscribeButtonBackgroundColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","SubscribeButtonBackgroundColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],["format","hex","formControlName","SubscribeButtonTextColor",1,"col-md-3","pr-0",3,"showTransitionOptions","ngModel","hideTransitionOptions","ngModelChange"],["type","text","formControlName","SubscribeButtonTextColor","pInputText","",1,"pl-0","color-input","col-md-9",3,"ngModel","ngModelChange"],[1,"allowSign"],[1,"fas","fa-check-circle"],[1,"step-5","FormBuilder","content"],["cdkDropList","","formArrayName","FormInputs",3,"cdkDropListDropped"],[1,"icon-list"],[4,"ngFor","ngForOf"],["cdkDrag","","class","card-body row p-0",3,"formGroupName","ngStyle",4,"ngIf"],["cdkDrag","",1,"card-body","row","p-0",3,"formGroupName","ngStyle"],["class","col-md-12",4,"ngIf"],["class","input-configuration w-100 ml-3",4,"ngIf"],["cdkDragHandle","",1,"drag-drop",2,"cursor","move"],["tooltip","Drag to move",1,"fas","fa-grip-vertical"],[1,"float-left","tx-13","text-capitalize","mt-2"],[1,"float-right","mb-3"],["type","checkbox","formControlName","display",1,"lang-checkbox"],["type","button","tooltip","Click here to configure the Form Field validation","placement","left",1,"btn","btn-default",3,"click"],[1,"ml-3","fas","fa-sliders-h","mb-2"],[1,"input-configuration","w-100","ml-3"],["align","left","type","dashed",1,"config-divider"],[1,"tx-12"],["class","form-group mb-0 row w-100",4,"ngIf"],["class","form-group mb-0 row w-100 pb-2",4,"ngIf"],[1,"form-group","mb-0","row","w-100"],[1,"col-sm-8","tx-13","col-form-label"],[1,"col-sm-4"],["type","checkbox","formControlName","required",1,"lang-checkbox",3,"disabled"],["type","checkbox","formControlName","emailValidation",1,"lang-checkbox",3,"disabled"],[1,"col-sm-12","tx-13","col-form-label"],[1,"col-sm-12"],["mode","decimal","inputId","withoutgrouping","min","1","formControlName","minLength","maxlength","8",3,"disabled","useGrouping"],[1,"form-group","mb-0","row","w-100","pb-2"],["mode","decimal","inputId","withoutgrouping","min","1","formControlName","maxLength","maxlength","8",3,"disabled","useGrouping"],[1,"step-6","content","display-frequency"],["id","displayFrequency"],[1,"col-md-9"],[1,"mb-0","input-label","pt-2",3,"ngStyle"],["name","info","tooltip","Control how often the subscription banner appears on the domain based on user\u2019s consents",1,"feather-16"],[1,"col-md-3"],["formControlName","EnableDisplayFrequency"],["class","p-field mt-4",4,"ngIf"],[1,"p-field","mt-4"],[1,"input-label"],[1,"row","m-0"],["mode","decimal","inputId","withoutgrouping","min","1","formControlName","DisplayClosedConsent","maxlength","8",1,"az-input","col-md-6","p-0","m-0","p-inputnumber-class",3,"useGrouping"],["formControlName","DisplayClosedConsentType","optionLabel","name","optionValue","code",1,"col-md-6","p-0","m-0",3,"options"],[1,"step-7","content"],[1,"card-body","p-0"],[1,"btn-group-action"],["type","button",1,"btn","btn-sm","btn-link",3,"ngStyle","click"],["style","font-size: small;",4,"ngIf"],["class","row",4,"ngIf"],[2,"font-size","small"],["formArrayName","Include",1,"col-sm-12","table-responsive"],[1,"table"],[2,"margin-top","280px"],[1,"mt-3"],[2,"white-space","nowrap","border","none"],["placeholder","Enter endpoint ex:/example1/example2",1,"form-control",3,"formControlName"],[2,"border","none"],["tooltip","Remove","placement","bottom",1,"btn","btn-sm","btn-default",3,"click"],["aria-hidden","true",1,"fa","fa-minus-circle",2,"color","red"],[2,"border","none","display","grid","place-items","center"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button","tooltip","Add more path","class","btn btn-sm btn-link",3,"click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-plus","ml-2"],["type","button","tooltip","Add more path",1,"btn","btn-sm","btn-link",3,"click"],["aria-hidden","true",1,"fa","fa-plus-circle"],["formArrayName","Exclude",1,"col-sm-12","table-responsive"],[2,"height","100%","width","100%"],[3,"BundlePayload","allowedLanguagesForPreview","ConfigForm","customLanguageConfig","customerBrandLogo","
1selectPreviewLang"],[1,"w-100","card","mt-3","publish-loader"],[1,"text-center"],[1,"loading","text-center"],["role","status",1,"spinner-grow","text-primary"],[1,"sr-only"],["role","status",1,"spinner-grow","text-secondary"],["role","status",1,"spinner-grow","text-success"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],["role","status",1,"spinner-grow","text-light"],["role","status",1,"spinner-grow","text-dark"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],["dismissOnTimeout","5000",3,"type","dismissible"],[3,"innerHTML"],["appTheme","",1,"modal-body","text-center"],["type","button","aria-label","Close",1,"btn-close","close","pull-right",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"card","mt-3"],[1,"alert","alert-info","ccpa-status-text","mt-1","mr-1","ml-1"],[2,"float","left"],["type","button",1,"pull-right","btn-sm","btn","btn-primary",2,"float","right",3,"click"],["aria-hidden","true",1,"mr-1","fa","fa-clipboard"],[1,"card-body",2,"background","#282a36"],[1,"text-danger","codeText"],[2,"color","rgb(116, 116, 116)"],[2,"color","#8be9fd"],[2,"color","#fff","font-size","16px"],[1,"card-footer"],[2,"justify-content","center","display","flex"],[1,"platform-list","d-flex","justify-content-center","flex-wrap","mt-3"],["target","_blank",3,"href"],["tooltip","HTML","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/html5.png",1,"platform-logo"],["tooltip","Wordpress","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/wordpress.svg",1,"platform-logo"],["tooltip","Shopify","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/shopify.svg",1,"platform-logo"],["tooltip","Squarespace","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/squarespace.svg",1,"platform-logo"],["tooltip","Blogger","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/blogger.svg",1,"platform-logo"],["tooltip","BigCommerce","placement","bottom",1,"icon-wrapper"],["src","/assets/imgs/icons/big-commerce-logo-partner.png",1,"platform-logo"],[2,"display","flex","justify-content","center","margin-top","15px"],["type","button",1,"btn","btn-sm","btn-primary","mr-4",3,"click"],[1,"fa-cookie","fas","feather-16","pr-2"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"fa-wrench","fas","feather-16","pr-2"],[1,"mb-3"],["type","button",1,"btn","btn-sm","btn-secondary","mr-2",3,"click"]],template:function(o,s){if(1&o){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"nav",3)(5,"ol",4)(6,"li",5),e._uU(7,"Privacy"),e.qZA(),e.TgZ(8,"li",5)(9,"a",6),e._uU(10,"Consent Preference"),e.qZA()(),e.TgZ(11,"li",7),e._uU(12,"Subscription Consent Banner"),e.qZA()()()()()(),e.TgZ(13,"form",8),e.NdJ("ngSubmit",function(){return s.onSubmit()}),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"h5",12),e._uU(18,"Subscription Consent Banner "),e.qZA(),e.TgZ(19,"div",13)(20,"button",14),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(99);return e.KtG(s.openModal(y))}),e.qZA(),e.TgZ(21,"span",15)(22,"button",16),e.NdJ("click",function(){return s.publishType="draft"}),e.qZA()(),e.TgZ(23,"span",17)(24,"button",18),e.NdJ("click",function(){return s.publishType="publish"}),e.qZA()()()()(),e.TgZ(25,"div",19)(26,"div",11)(27,"div",20)(28,"div",21),e.NdJ("click",function(){return s.step=1}),e.TgZ(29,"p",22),e._UZ(30,"i",23),e.qZA(),e.TgZ(31,"p",24),e._uU(32,"Config"),e.qZA()(),e.TgZ(33,"div",21),e.NdJ("click",function(){return s.step=2}),e.TgZ(34,"p",22),e._UZ(35,"i",25),e.qZA(),e.TgZ(36,"p",24),e._uU(37,"Language"),e.qZA()(),e.TgZ(38,"div",21),e.NdJ("click",function(){return s.step=3}),e.TgZ(39,"p",22),e._UZ(40,"i",26),e.qZA(),e.TgZ(41,"p",24),e._uU(42,"Content"),e.qZA()(),e.TgZ(43,"div",21),e.NdJ("click",function(){return s.step=4}),e.TgZ(44,"p",22),e._UZ(45,"i",27),e.qZA(),e.TgZ(46,"p",28),e._uU(47," Layout"),e.qZA()(),e.TgZ(48,"div",21),e.NdJ("click",function(){return s.step=5}),e.TgZ(49,"p",22),e._UZ(50,"i",29),e.qZA(),e.TgZ(51,"p",24),e._uU(52," Form"),e.qZA()(),e.TgZ(53,"div",30),e.NdJ("click",function(){return s.step=6}),e.TgZ(54,"p",31),e._UZ(55,"i",32),e.qZA(),e.TgZ(56,"p",33),e._uU(57,"Display "),e._UZ(58,"br"),e._uU(59," Frequency"),e.qZA()(),e.TgZ(60,"div",34),e.NdJ("click",function(){return s.step=7}),e.TgZ(61,"p",22),e._UZ(62,"i",35),e.qZA(),e.TgZ(63,"p",24),e._uU(64," Behavior"),e.qZA()()(),e.TgZ(65,"div",36)(66,"p-splitter",37),e.YNc(67,Ui,85,29,"
1ng-template",38),e.YNc(68,qi,2,5,"ng-template",38),e.qZA()()()(),e.TgZ(69,"div",9)(70,"div",39)(71,"div",11),e._UZ(72,"div",40),e.TgZ(73,"div",41)(74,"h5"),e.O4$(),e.TgZ(75,"svg",42),e._UZ(76,"path",43),e.qZA(),e._uU(77," Preview Device"),e.qZA()(),e.kcU(),e.TgZ(78,"div",40)(79,"div",44)(80,"button",45),e.NdJ("click",function(){return s.onSelectDevice("web")}),e.O4$(),e.TgZ(81,"svg",46),e._UZ(82,"path",47),e.qZA()(),e.kcU(),e.TgZ(83,"button",45),e.NdJ("click",function(){return s.onSelectDevice("tablet")}),e.O4$(),e.TgZ(84,"svg",48),e._UZ(85,"path",49),e.qZA()(),e.kcU(),e.TgZ(86,"button",45),e.NdJ("click",function(){return s.onSelectDevice("mobile")}),e.O4$(),e.TgZ(87,"svg",50),e._UZ(88,"path",51),e.qZA()()()(),e.kcU(),e.TgZ(89,"div",52)(90,"a",53),e.O4$(),e.TgZ(91,"svg",54),e._UZ(92,"path",55),e.qZA(),e._uU(93," Publish History "),e.qZA()()()()()()()(),e.YNc(94,ki,28,0,"div",56),e.YNc(95,Ii,2,4,"div",57),e.YNc(96,Ni,59,11,"ng-template",null,58,e.W1O),e.YNc(98,Mi,12,0,"ng-template",null,59,e.W1O)}2&o&&(e.Q6J("ngStyle",e.VKq(26,Di,s.publishing?"none":"block")),e.xp6(9),e.Q6J("queryParams",e.WLB(28,be,s.currentManagedOrgID,s.currrentManagedPropID)),e.xp6(4),e.Q6J("formGroup",s.ConfigurationForm),e.xp6(7),e.Q6J("disabled","saving"===s.contentSaving),e.xp6(1),e.Q6J("tooltip","saving"===s.contentSaving||s.ConfigurationForm.invalid?"Please be sure to fill out all fields, including those on the content tab":"Any changes you make to the configuration will be reflected after it is published again."),e.xp6(1),e.Q6J("disabled","saving"===s.contentSaving||s.ConfigurationForm.invalid),e.xp6(1),e.Q6J("tooltip","saving"===s.contentSaving||s.ConfigurationForm.invalid?"Please be sure to fill out all fields, including those on the content tab":""),e.xp6(1),e.Q6J("disabled","saving"===s.contentSaving||s.ConfigurationForm.invalid),e.xp6(4),e.Q6J("ngClass",e.VKq(31,V,1===s.step)),e.xp6(5),e.Q6J("ngClass",e.VKq(33,V,2===s.step)),e.xp6(5),e.Q6J("ngClass",e.VKq(35,V,3===s.step)),e.xp6(5),e.Q6J("ngClass",e.VKq(37,V,4===s.step)),e.xp6(5),e.Q6J("ngClass",e.VKq(39,V,5===s.step)),e.xp6(5),e.Q6J("ngClass",e.VKq(41,V,6===s.step)),e.xp6(7),e.Q6J("ngClass",e.VKq(43,V,7===s.step)),e.xp6(6),e.Q6J("panelSizes",e.DdM(45,Fi))("minSizes",e.DdM(46,Oi)),e.xp6(14),e.Q6J("ngClass",e.WLB(47,ie,"web"===s.ConfigurationForm.value.CurrentPreviewDevice,"web"!==s.ConfigurationForm.value.CurrentPreviewDevice)),e.xp6(1),e.Q6J("ngStyle",e.VKq(50,re,"web"===s.ConfigurationForm.value.CurrentPreviewDevice?"#ffffff":"#1b365d")),e.xp6(2),e.Q6J("ngClass",e.WLB(52,ie,"tablet"===s.ConfigurationForm.value.CurrentPreviewDevice,"tablet"!==s.ConfigurationForm.value.CurrentPreviewDevice)),e.xp6(1),e.Q6J("ngStyle",e.VKq(55,re,"tablet"===s.ConfigurationForm.value.CurrentPreviewDevice?"#ffffff":"#1b365d")),e.xp6(2),e.Q6J("ngClass",e.WLB(57,ie,"mobile"===s.ConfigurationForm.value.CurrentPreviewDevice,"mobile"!==s.ConfigurationForm.value.CurrentPreviewDevice)),e.xp6(1),e.Q6J("ngStyle",e.VKq(60,re,"mobile"===s.ConfigurationForm.value.CurrentPreviewDevice?"#ffffff":"#1b365d")),e.xp6(3),e.Q6J("queryParams",e.WLB(62,be,s.currentManagedOrgID,s.currrentManagedPropID)),e.xp6(4),e.Q6J("ngIf",s.publishing),e.xp6(1),e.Q6J("ngIf",s.isOpen))},dependencies:[l.mk,l.sg,l.O5,l.PC,b.rH,N.iA,w.jx,se.Hq,M.o,p._Y,p.Fj,p.wV,p.Wl,p.JJ,p.JL,p.nD,p.sg,p.u,p.x0,p.CE,ce.EU,de.q,pe.i,ue.Lt,ge.g,_e.zH,me.H,fe.Ql,he.Rn,$.Wj,$.Zt,$.Bh,h.u,k.i9,F.wx,x.mh,R.E,uo],styles:[".row-cols-group{margin-bottom:50px;background:#fff}.menu-background{background:#eaf2fe}.step-bg{background:#eaf1fe;padding-top:10px;color:#1b365d;border-bottom:1px solid lightblue;cursor:pointer}.tx-35{font-size:35px}.step-active{background:var(--billing-background);color:#fff}.label-tx{font-weight:500;font-size:13px;color:#1b365d}.head-tx{font-size:16px;font-weight:600}.p-checkbox .p-checkbox-box.p-highlight{background:#004097;border-color:#004097}.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover{background:#004097;border-color:#004097}.p-dropdown{width:100%}.flag{margin-top:2px}.p-splitter-horizontal{border-bottom:0px}.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--user-preference)}.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--user-preference)}.flag-gdpr{float:left;margin-right:10px}.p-multiselect,.p-dropdown{width:100%;max-width:240px}.newsletter-wrapper .multiselect-custom .p-multiselect-label{padding-top:.25rem;padding-bottom:.25rem}.newsletter-wrapper .multiselect-custom .country-item-value{padding:.25rem .5rem;border-radius:3px;display:inline-flex;margin-right:.5rem;background-color:var(--primary-color);color:var(--primary-color-text)}.newsletter-wrapper .multiselect-custom .country-item-value img.flag{width:17px}.newsletter-wrapper .multiselect-custom .country-placeholder{padding:.25rem}@media screen and (max-width: 640px){.p-multiselect{width:100%}}.steppers-web{min-height:540px;max-height:540px;overflow:scroll;width:100%;overflow-x:hidden;padding-bottom:20px}.steppers-mobile{max-height:770px;overflow:scroll;overflow-x:hidden}.steppers-tablet{max-height:850px;overflow:scroll;overflow-x:hidden}.icon-list{list-style:none;padding:0;display:flex;flex-wrap:wrap}.drag-drop{float:left!important;font-size:21px;margin-right:0}.newsletter-wrapper .p-selectbutton .p-button.p-highlight{background:#1b365d!important;border-color:#1b365d!important;color:#fff!important}.p-buttonset .p-button{font-size:12px!important}.p-radiobutton .p-radiobutton-box.p-highlight{border-color:#004097;background:#004097}.p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:12px;height:12px;transition-duration:.2s;background-color:#004097}.az-dropdown{cursor:pointer;font-size:15px;font-weight:600;color:#1b365d;width:90%}.az-dropdown span{float:right}.az-purpose-dropdown{cursor:pointer;font-size:15px;font-weight:600;color:#1b365d;width:90%;padding-top:20px;padding-left:12px}.az-purpose-dropdown span{float:right}.p-field{margin-bottom:1rem}.p-field>label{display:inline-block;margin-bottom:.5rem}.az-input{width:100%;font-weight:600;color:#1b365d;font-size:15px!important}
1.p-field{display:block}.input-label{font-size:13px;font-weight:600;color:#1b365d}.p-tabview .p-tabview-nav{justify-content:center;flex-direction:initial;padding:0!important}.p-divider.p-divider-horizontal{width:100%;z-index:0}.p-colorpicker-preview{width:100%;height:100%;border-right:none}.color-input{border-radius:0}.p-colorpicker{height:42px}.p-colorpicker input{border-radius:0}.theme-btn-dark{padding:20px;border:1px solid #e2e5ed;border-radius:6px;background:var(--user-preference);color:#fff;cursor:pointer;font-size:15px;font-weight:600}.theme-btn-light{padding:20px;border:1px solid #e2e5ed;border-radius:6px;cursor:pointer;background:#ffffff;color:#1b365d;font-size:15px;font-weight:600}.allowSign{float:right;color:#9fe0fa;font-size:18px}.p-divider-content{font-size:18px}.p-inputtextarea{width:100%;font-weight:600;color:#1b365d;font-size:15px!important}.content{padding:0 10px 10px}.az-input-group{margin:25px 5%}.example-list{width:500px;max-width:100%;border:solid 1px #ccc;min-height:60px;display:block;background:white;border-radius:4px;overflow:hidden}.example-box{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.purpose-preference{padding:0 7% 7%!important}.p-inputnumber-class .p-inputnumber{width:100%;height:43px;border-right:none}.title-head{border-bottom:none;width:100%}.main-heading{font-size:18px;font-weight:600;color:#1b365d}.action-btn{font-size:12px}.live-preview-type{color:#1b365d;font-weight:600;font-size:18px;padding-top:6px;margin-bottom:0}.preview-radio{vertical-align:inherit}.preview-border-left{border-left:3px solid #1b365d}.lang-checkbox{width:40px;height:20px}.drag-drop{float:left!important;font-size:21px;margin-right:12px;margin-top:3px}.spinner-border{width:1rem;height:1rem}.publish-loader{height:100vh;justify-content:center}.btn-group-action{text-align:center;border-bottom:1px solid lightgray}.btn-group-action button{color:#555;font-weight:600}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.id-cell{text-align:left;border:1px solid #e9ecef;border-width:0 0 1px 0;padding:1rem}.banner-types{position:absolute;right:20px;font-size:20px;color:var(--side-nav-org)}.cursor-pointer{cursor:pointer}.img-preview{max-width:270px;max-height:120px;border:1px solid lightgray;border-radius:2px;padding:10px}.img-preview-tag{max-width:250px;max-height:100px}.publish-date-text{margin-bottom:-15px;margin-top:5px;font-weight:500;font-size:12px}.margin-top-70{margin:70px 0 0}.p-colorpicker-preview{width:57px;height:42px}.p-scrollpanel .p-scrollpanel-bar{background:#0975e0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.config-divider .p-divider{margin-bottom:0}.setup-modal{margin-top:4em!important;max-width:1350px!important}.codeText{font-size:19px}.p-inputnumber{height:33px}.platform-logo{width:25px;height:25px}.icon-wrapper{display:flex;align-items:center;justify-content:center;padding:15px 16px;border-radius:100%;border:.5px solid #c2c3c5;margin-right:14px;cursor:pointer;box-shadow:0 2px 4px #0003,0 6px 20px #00000030}.device-btn{background:var(--user-preference)!important}.device-btn:active{background:var(--user-preference)}.d-flex-center{display:flex;align-content:center;justify-content:flex-start}.preview-div{display:flex;justify-content:flex-end;align-items:center}.preview-div h5{font-size:15px;padding-top:5px}.mobile-height{height:720px}.tx-25{font-size:25px!important}\n"],encapsulation:2}),n})();var xe=c(36358),Ji=c(1061),Bi=c(73566),Ze=c(74642),Qi=c(1637);function Ei(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",18)(1,"h5",19),e._UZ(2,"i",35),e._uU(3),e.qZA(),e.TgZ(4,"i-feather",36),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw(3);return e.KtG(a.onDeleteConnection(s))}),e.qZA()()}if(2&n){const t=r.$implicit;e.xp6(3),e.hij(" ",t.cred_name,"")}}function Yi(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Ei,5,1,"div",34),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.configureConnections)}}function Hi(n,r){if(1&n&&(e.TgZ(0,"div",18)(1,"h5",19),e._uU(2),e.qZA()()),2&n){const t=r.$implicit;e.xp6(2),e.hij(" ",t.cred_name,"")}}function Gi(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Hi,3,1,"div",34),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.newConfigureConnections)}}function Ri(n,r){1&n&&(e.ynx(0),e.TgZ(1,"p",37),e._uU(2,"No Connection Configured"),e.qZA(),e.BQk())}function Ki(n,r){if(1&n&&(e.TgZ(0,"div",32),e.YNc(1,Yi,2,1,"ng-container",33),e.YNc(2,Gi,2,1,"ng-container",33),e.YNc(3,Ri,3,0,"ng-container",33),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.configureConnections.length>0),e.xp6(1),e.Q6J("ngIf",t.newConfigureConnections.length>0),e.xp6(1),e.Q6J("ngIf",0===t.newConfigureConnections.length&&0===t.configureConnections.length)}}const W=function(){return{width:"100%",height:"30px","border-radius":"5px"}};function Vi(n,r){1&n&&(e.TgZ(0,"div",13),e._UZ(1,"ngx-skeleton-loader",38)(2,"
1ngx-skeleton-loader",38)(3,"ngx-skeleton-loader",38)(4,"ngx-skeleton-loader",38),e.qZA()),2&n&&(e.xp6(1),e.Q6J("theme",e.DdM(4,W)),e.xp6(1),e.Q6J("theme",e.DdM(5,W)),e.xp6(1),e.Q6J("theme",e.DdM(6,W)),e.xp6(1),e.Q6J("theme",e.DdM(7,W)))}function ji(n,r){if(1&n&&(e.TgZ(0,"alert",39),e._UZ(1,"span",40),e.qZA()),2&n){const t=e.oxw();e.Q6J("type",t.alertType),e.xp6(1),e.Q6J("innerHTML",t.alertMsg,e.oJD)}}function zi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",45)(1,"p-checkbox",46),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(4);return e.KtG(s.selectedConnection=o)}),e.qZA(),e.TgZ(2,"h5",19),e._uU(3),e.TgZ(4,"span",47),e._uU(5," --Coming Soon"),e.qZA()()()}if(2&n){const t=e.oxw().$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("disabled",!0)("value",t)("ngModel",i.selectedConnection),e.xp6(2),e.hij("",t.cred_name," ")}}function $i(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",50)(1,"p-checkbox",51),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw(5);return e.KtG(s.selectedConnection=o)}),e.qZA(),e.TgZ(2,"h5",19),e._uU(3),e.qZA()()}if(2&n){const t=e.oxw(2).$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("value",t)("disabled",i.configuredConnectionIDs.includes(t.id))("ngModel",i.selectedConnection),e.xp6(2),e.Oqu(t.cred_name)}}function Wi(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",18)(1,"p-checkbox",52),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).$implicit,s=e.oxw(3);return s.stepper="salesforce"===o.system.name||"accelo"===o.system.name||"omnisend"===o.system.name?1:0,e.KtG(s.set__value(o))})("ngModelChange",function(o){e.CHM(t);const s=e.oxw(5);return e.KtG(s.selectedConnection=o)}),e.qZA(),e.TgZ(2,"h5",19),e._uU(3),e.qZA()()}if(2&n){const t=e.oxw(2).$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("value",t)("disabled",i.configuredConnectionIDs.includes(t.id))("ngModel",i.selectedConnection),e.xp6(2),e.Oqu(t.cred_name)}}function Xi(n,r){if(1&n&&(e.YNc(0,$i,4,4,"div",48),e.YNc(1,Wi,4,4,"div",49)),2&n){const t=e.oxw().$implicit,i=e.oxw(3);e.Q6J("ngIf",i.configuredConnectionIDs.includes(t.id)),e.xp6(1),e.Q6J("ngIf",!i.configuredConnectionIDs.includes(t.id))}}function er(n,r){if(1&n&&(e.ynx(0),e.YNc(1,zi,6,4,"div",43),e.YNc(2,Xi,2,2,"ng-template",null,44,e.W1O),e.BQk()),2&n){const t=r.$implicit,i=e.MAs(3);e.xp6(1),e.Q6J("ngIf","http"===t.system.name||"mysql"===t.system.name||"postgresql"===t.system.name)("ngIfElse",i)}}function tr(n,r){if(1&n&&(e.ynx(0),e.YNc(1,er,4,2,"ng-container",42),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.credList)}}function nr(n,r){1&n&&(e.ynx(0),e.TgZ(1,"p",37),e._uU(2,"No Connection "),e.qZA(),e.BQk())}function or(n,r){if(1&n&&(e.TgZ(0,"div",41),e.YNc(1,tr,2,1,"ng-container",33),e.YNc(2,nr,3,0,"ng-container",33),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.credList.length>0),e.xp6(1),e.Q6J("ngIf",0===t.credList.length)}}function ir(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,": For your user's consent data to be entered into your Salesforce account, you must map all the mandatory fields defined by Salesforce/you. "),e.qZA())}function rr(n,r){1&n&&(e.TgZ(0,"p",67),e._uU(1,"Object is Required"),e.qZA())}function sr(n,r){1&n&&(e.TgZ(0,"div",68)(1,"div",69)(2,"span",70),e._uU(3,"Loading..."),e.qZA()(),e.TgZ(4,"div",71)(5,"span",70),e._uU(6,"Loading..."),e.qZA()(),e.TgZ(7,"div",72)(8,"span",70),e._uU(9,"Loading..."),e.qZA()(),e.TgZ(10,"div",73)(11,"span",70),e._uU(12,"Loading..."),e.qZA()()())}function ar(n,r){if(1&n&&(e.TgZ(0,"div")(1,"p",74),e._uU(2),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(2),e.hij("Unable to populate columns. Please make sure you have atleast one record in Salesforce ",t.sales_object,"")}}function lr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function cr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function dr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function pr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function ur(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function gr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function _r(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function mr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}const P=function(n){return{"is-invalid":n}};function fr(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",75),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onSubmit())}),e.TgZ(1,"div",57)(2,"div",14)(3,"label",76),e._uU(4,"First Name"),e.qZA(),e.TgZ(5,"select",77)(6,"option",78),e._uU(7,"Choose field"),e.qZA(),e.YNc(8,lr,2,2,"option",79),e.qZA()()(),e.TgZ(9,"div",57)(10,"div",14)(11,"label",76),e._uU(12,"Last Name"),e.qZA(),e.TgZ(13,"select",80)(14,"option",78),e._uU(15,"Choose field"),e.qZA(),e.YNc(16,cr,2,2,"option",79),e.qZA()()(),e.TgZ(17,"div",57)(18,"div",14)(19,"label",76),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"select",81)(22,"option",78),e._uU(23,"Choose field"),e.qZA(),e.YNc(24,dr,2,2,"option",79),e.qZA()()(),e.TgZ(25,"div",57)(26,"div",14)(27,"label",76),e._uU(28,"City"),e.qZA(),e.TgZ(29,"select",82)(30,"option",78),e._uU(31,"Choose field"),e.qZA(),e.YNc(32,pr,2,2,"option",79),e.qZA()()(),e.TgZ(33,"div",57)(34,"div",14)(35,"label",76),e._uU(36,"Country"),e.qZA(),e.TgZ(37,"select",83)(38,"option",78),e._uU(39,"Choose field"),e.qZA(),e.YNc(40,ur,2,2,"option",79),e.qZA()()(),e.TgZ(41,"div",57)(42,"div",14)(43,"label",76),e._uU(44,"ZIP Code"),e.qZA(),e.TgZ(45,"select",84)(46,"option",78),e._uU(47,"Choose field"),e.qZA(),e.YNc(48,gr,2,2,"option",79),e.qZA()()(),e.TgZ(49,"div",57)(50,"div",14)(51,"label",76),e._uU(52,"Phone no"),e.qZA(),e.TgZ(53,"select",85)(54,"option",78),e._uU(55,"Choose field"),e.qZA(),e.YNc(56,_r,2,2,"option",79),e.qZA()()(),e.TgZ(57,"div",57)(58,"div",14)(59,"label",76),e._uU(60,"Landline no"),e.qZA(),e.TgZ(61,"select",86)(62,"option",78),e._uU(63,"Choose field"),e.qZA(),e.YNc(64,mr,2,2,"option",79),e.qZA()()()()}if(2&n){const t=e.oxw(3);e.Q6J("formGroup",t.CPConfigurationForm),e.xp6(5),e.Q6J("ngClass",e.VKq(17,P,t.CPC
1onfigurationForm.controls.first_name.invalid&&(t.CPConfigurationForm.controls.first_name.dirty||t.CPConfigurationForm.controls.first_name.touched)||t.submitted&&t.f.first_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(19,P,t.CPConfigurationForm.controls.last_name.invalid&&(t.CPConfigurationForm.controls.last_name.dirty||t.CPConfigurationForm.controls.last_name.touched)||t.submitted&&t.f.last_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(21,P,t.CPConfigurationForm.controls.email.invalid&&(t.CPConfigurationForm.controls.email.dirty||t.CPConfigurationForm.controls.email.touched)||t.submitted&&t.f.email.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(23,P,t.CPConfigurationForm.controls.city.invalid&&(t.CPConfigurationForm.controls.city.dirty||t.CPConfigurationForm.controls.city.touched)||t.submitted&&t.f.city.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(25,P,t.CPConfigurationForm.controls.country.invalid&&(t.CPConfigurationForm.controls.country.dirty||t.CPConfigurationForm.controls.country.touched)||t.submitted&&t.f.country.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(27,P,t.CPConfigurationForm.controls.zip_code.invalid&&(t.CPConfigurationForm.controls.zip_code.dirty||t.CPConfigurationForm.controls.zip_code.touched)||t.submitted&&t.f.zip_code.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(29,P,t.CPConfigurationForm.controls.phone_no.invalid&&(t.CPConfigurationForm.controls.phone_no.dirty||t.CPConfigurationForm.controls.phone_no.touched)||t.submitted&&t.f.phone_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce),e.xp6(5),e.Q6J("ngClass",e.VKq(31,P,t.CPConfigurationForm.controls.landline_no.invalid&&(t.CPConfigurationForm.controls.landline_no.dirty||t.CPConfigurationForm.controls.landline_no.touched)||t.submitted&&t.f.landline_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.SalesForce)}}function hr(n,r){1&n&&e._UZ(0,"option",87),2&n&&e.s9C("value",r.$implicit.key)}function Cr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function br(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",94)(1,"label",95),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"td",96),e._UZ(4,"input",97),e.TgZ(5,"datalist",98),e.YNc(6,hr,1,1,"option",79),e.ALo(7,"keyvalue"),e.qZA()(),e.TgZ(8,"label",95),e._uU(9,"Value"),e.qZA(),e.TgZ(10,"td",96)(11,"select",99)(12,"option",78),e._uU(13,"Choose field"),e.qZA(),e.YNc(14,Cr,2,2,"option",79),e.qZA()(),e.TgZ(15,"td",100)(16,"button",101),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(4);return e.KtG(a.deleteaddData(s))}),e._UZ(17,"i",102),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(4);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","mvl",i,""),e.Q6J("ngClass",e.VKq(9,P,o.isSubmitted&&t.get("mvl").errors)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(7,7,o.consent_columns)),e.xp6(
15),e.MGl("id","sec",i,""),e.Q6J("ngClass",e.VKq(11,P,o.isSubmitted&&t.get("sec").errors)),e.xp6(3),e.Q6J("ngForOf",o.SalesForce)}}function xr(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._uU(1,"Add Additional Data"),e._UZ(2,"i",104),e.qZA()}}function Zr(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._UZ(1,"i",105),e.qZA()}}function vr(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,': If you are using key as \'additional_data\' kindly enter in the format "additional_data.company" , "additional_data.city" etc. '),e.qZA())}function Tr(n,r){if(1&n&&(e.TgZ(0,"form",88)(1,"div")(2,"label"),e._uU(3,"Additional Data"),e.qZA()(),e.TgZ(4,"div",14)(5,"div",89)(6,"table",90)(7,"tbody"),e.YNc(8,br,18,13,"tr",91),e.qZA(),e.TgZ(9,"tfoot")(10,"tr")(11,"td",92),e.YNc(12,xr,3,0,"button",93),e.YNc(13,Zr,2,0,"button",93),e.qZA()()()()()(),e.YNc(14,vr,4,0,"div",56),e.qZA()),2&n){const t=e.oxw(3);e.Q6J("formGroup",t.AdditionalForm),e.xp6(8),e.Q6J("ngForOf",t.AdditionalForm.controls.additionalData.controls),e.xp6(4),e.Q6J("ngIf",0===t.AdditionalForm.value.additionalData.length),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0&&!t.iscolLoading)}}function yr(n,r){1&n&&(e.ynx(0),e.TgZ(1,"p",37),e._uU(2,"No Connection "),e.qZA(),e.BQk())}function Ar(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"section"),e.YNc(1,ir,4,0,"div",56),e.TgZ(2,"div",57)(3,"label",58),e._uU(4,"Object"),e.qZA(),e.TgZ(5,"select",59),e.NdJ("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onGetcolumnsList())})("ngModelChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.sales_object=o)}),e.ynx(6),e.TgZ(7,"option",60),e._uU(8,"Lead"),e.qZA(),e.TgZ(9,"option",61),e._uU(10,"Contact"),e.qZA(),e.BQk(),e.qZA(),e.YNc(11,rr,2,0,"p",62),e.qZA(),e.YNc(12,sr,13,0,"div",63),e.YNc(13,ar,3,1,"div",33),e.YNc(14,fr,65,33,"form",64),e.YNc(15,Tr,15,5,"form",65),e.YNc(16,yr,3,0,"ng-container",33),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.iscolLoading),e.xp6(4),e.Q6J("ngModel",t.sales_object),e.xp6(6),e.Q6J("ngIf",""===t.sales_object),e.xp6(1),e.Q6J("ngIf",t.iscolLoading),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&0==(null==t.SalesForce?null:t.SalesForce.length)),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.SalesForce?null:t.SalesForce.length)>0),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.SalesForce?null:t.SalesForce.length)>0),e.xp6(1),e.Q6J("ngIf",0===t.credList.length)}}function wr(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,": For your user's consent data to be entered into your accelo account, you must map all the mandatory fields defined by accelo/you. "),e.qZA())}function Ur(n,r){1&n&&(e.TgZ(0,"div",68)(1,"div",69)(2,"span",70),e._uU(3,"Loading..."),e.qZA()(),e.TgZ(4,"div",71)(5,"span",70),e._uU(6,"Loading..."),e.qZA()(),e.TgZ(7,"div",72)(8,"span",70),e._uU(9,"Loading..."),e.qZA()(),e.TgZ(10,"div",73)(11,"span",70),e._uU(12,"Loading..."),e.qZA()()())}function qr(n,r){1&n&&(e.TgZ(0,"div")(1,"p",74),e._uU(2,"Unable to populate columns. Please make sure you have atleast one record in Accelo"),e.qZA()())}function kr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Sr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Pr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Ir(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Nr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Mr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Dr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Fr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Or(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",75),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onSubmit())}),e.TgZ(1,"div",57)(2,"div",14)(3,"label",76),e._uU(4,"First Name"),e.qZA(),e.TgZ(5,"select",77)(6,"option",78),e._uU(7,"Choose field"),e.qZA(),e.YNc(8,kr,2,2,"option",79),e.qZA()()(),e.TgZ(9,"div",57)(10,"div",14)(11,"label",76),e._uU(12,"Last Name"),e.qZA(),e.TgZ(13,"select",80)(14,"option",78),e._uU(15,"Choose field"),e.qZA(),e.YNc(16,Sr,2,2,"option",79),e.qZA()()(),e.TgZ(17,"div",57)(18,"div",14)(19,"label",76),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"select",81)(22,"option",78),e._uU(23,"Choose field"),e.qZA(),e.YNc(24,Pr,2,2,"option",79),e.qZA()()(),e.TgZ(25,"div",57)(26,"div",14)(27,"label",76),e._uU(28,"City"),e.qZA(),e.TgZ(29,"select",82)(30,"option",78),e._uU(31,"Choose field"),e.qZA(),e.YNc(32,Ir,2,2,"option",79),e.qZA()()(),e.TgZ(33,"div",57)(34,"div",14)(35,"label",76),e._uU(36,"Country"),e.qZA(),e.TgZ(37,"select",83)(38,"option",78),e._uU(39,"Choose field"),e.qZA(),e.YNc(40,Nr,2,2,"option",79),e.qZA()()(),e.TgZ(41,"div",57)(42,"div",14)(43,"label",76),e._uU(44,"ZIP Code"),e.qZA(),e.TgZ(45,"select",84)(46,"option",78),e._uU(47,"Choose field"),e.qZA(),e.YNc(48,Mr,2,2,"option",79),e.qZA()()(),e.TgZ(49,"div",57)(50,"div",14)(51,"label",76),e._uU(52,"Phone no"),e.qZA(),e.TgZ(53,"select",85)(54,"option",78),e._uU(55,"Choose field"),e.qZA(),e.YNc(56,Dr,2,2,"option",79),e.qZA()()(),e.TgZ(57,"div",57)(58,"div",14)(59,"label",76),e._uU(60,"Landline no"),e.qZA(),e.TgZ(61,"select",86)(62,"option",78),e._uU(63,"Choose field"),e.qZA(),e.YNc(64,Fr,2,2,"option",79),e.qZA()()()()}if(2&n){const t=e.oxw(3);e.Q6J("formGroup",t.CPConfigurationForm),e.xp6(5),e.Q6J("ngClass",e.VKq(17,P,t.CPC
1onfigurationForm.controls.first_name.invalid&&(t.CPConfigurationForm.controls.first_name.dirty||t.CPConfigurationForm.controls.first_name.touched)||t.submitted&&t.f.first_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(19,P,t.CPConfigurationForm.controls.last_name.invalid&&(t.CPConfigurationForm.controls.last_name.dirty||t.CPConfigurationForm.controls.last_name.touched)||t.submitted&&t.f.last_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(21,P,t.CPConfigurationForm.controls.email.invalid&&(t.CPConfigurationForm.controls.email.dirty||t.CPConfigurationForm.controls.email.touched)||t.submitted&&t.f.email.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(23,P,t.CPConfigurationForm.controls.city.invalid&&(t.CPConfigurationForm.controls.city.dirty||t.CPConfigurationForm.controls.city.touched)||t.submitted&&t.f.city.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(25,P,t.CPConfigurationForm.controls.country.invalid&&(t.CPConfigurationForm.controls.country.dirty||t.CPConfigurationForm.controls.country.touched)||t.submitted&&t.f.country.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(27,P,t.CPConfigurationForm.controls.zip_code.invalid&&(t.CPConfigurationForm.controls.zip_code.dirty||t.CPConfigurationForm.controls.zip_code.touched)||t.submitted&&t.f.zip_code.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(29,P,t.CPConfigurationForm.controls.phone_no.invalid&&(t.CPConfigurationForm.controls.phone_no.dirty||t.CPConfigurationForm.controls.phone_no.touched)||t.submitted&&t.f.phone_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo),e.xp6(5),e.Q6J("ngClass",e.VKq(31,P,t.CPConfigurationForm.controls.landline_no.invalid&&(t.CPConfigurationForm.controls.landline_no.dirty||t.CPConfigurationForm.controls.landline_no.touched)||t.submitted&&t.f.landline_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.accelo)}}function Lr(n,r){1&n&&e._UZ(0,"option",87),2&n&&e.s9C("value",r.$implicit.key)}function Jr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Br(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",94)(1,"label",95),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"td",96),e._UZ(4,"input",97),e.TgZ(5,"datalist",98),e.YNc(6,Lr,1,1,"option",79),e.ALo(7,"keyvalue"),e.qZA()(),e.TgZ(8,"label",95),e._uU(9,"Value"),e.qZA(),e.TgZ(10,"td",96)(11,"select",99)(12,"option",78),e._uU(13,"Choose field"),e.qZA(),e.YNc(14,Jr,2,2,"option",79),e.qZA()(),e.TgZ(15,"td",100)(16,"button",101),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(4);return e.KtG(a.deleteaddData(s))}),e._UZ(17,"i",102),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(4);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","mvl",i,""),e.Q6J("ngClass",e.VKq(9,P,o.isSubmitted&&t.get("mvl").errors)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(7,7,o.consent_columns)),e.xp6(
15),e.MGl("id","sec",i,""),e.Q6J("ngClass",e.VKq(11,P,o.isSubmitted&&t.get("sec").errors)),e.xp6(3),e.Q6J("ngForOf",o.accelo)}}function Qr(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._uU(1,"Add Additional Data"),e._UZ(2,"i",104),e.qZA()}}function Er(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._UZ(1,"i",105),e.qZA()}}function Yr(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,': If you are using key as \'additional_data\' kindly enter in the format "additional_data.company" , "additional_data.city" etc. '),e.qZA())}function Hr(n,r){if(1&n&&(e.TgZ(0,"form",88)(1,"div")(2,"label"),e._uU(3,"Additional Data"),e.qZA()(),e.TgZ(4,"div",14)(5,"div",89)(6,"table",90)(7,"tbody"),e.YNc(8,Br,18,13,"tr",91),e.qZA(),e.TgZ(9,"tfoot")(10,"tr")(11,"td",92),e.YNc(12,Qr,3,0,"button",93),e.YNc(13,Er,2,0,"button",93),e.qZA()()()()()(),e.YNc(14,Yr,4,0,"div",56),e.qZA()),2&n){const t=e.oxw(3);e.Q6J("formGroup",t.AdditionalForm),e.xp6(8),e.Q6J("ngForOf",t.AdditionalForm.controls.additionalData.controls),e.xp6(4),e.Q6J("ngIf",0===t.AdditionalForm.value.additionalData.length),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0&&!t.iscolLoading)}}function Gr(n,r){1&n&&(e.ynx(0),e.TgZ(1,"p",37),e._uU(2,"No Connection "),e.qZA(),e.BQk())}function Rr(n,r){if(1&n&&(e.TgZ(0,"section"),e.YNc(1,wr,4,0,"div",56),e.YNc(2,Ur,13,0,"div",63),e.YNc(3,qr,3,0,"div",33),e.YNc(4,Or,65,33,"form",64),e.YNc(5,Hr,15,5,"form",65),e.YNc(6,Gr,3,0,"ng-container",33),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.iscolLoading),e.xp6(1),e.Q6J("ngIf",t.iscolLoading),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&0==(null==t.accelo?null:t.accelo.length)),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.accelo?null:t.accelo.length)>0),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.accelo?null:t.accelo.length)>0),e.xp6(1),e.Q6J("ngIf",0===t.credList.length)}}function Kr(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,": For your user's consent data to be entered into your omnisend account, you must map all the mandatory fields defined by omnisend/you. "),e.qZA())}function Vr(n,r){1&n&&(e.TgZ(0,"div",68)(1,"div",69)(2,"span",70),e._uU(3,"Loading..."),e.qZA()(),e.TgZ(4,"div",71)(5,"span",70),e._uU(6,"Loading..."),e.qZA()(),e.TgZ(7,"div",72)(8,"span",70),e._uU(9,"Loading..."),e.qZA()(),e.TgZ(10,"div",73)(11,"span",70),e._uU(12,"Loading..."),e.qZA()()())}function jr(n,r){1&n&&(e.TgZ(0,"div")(1,"p",74),e._uU(2,"Unable to populate columns. Please make sure you have atleast one record in Omnisend"),e.qZA()())}function zr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function $r(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Wr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function Xr(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function es(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function ts(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function ns(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function os(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function is(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",75),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onSubmit())}),e.TgZ(1,"div",57)(2,"div",14)(3,"label",76),e._uU(4,"First Name"),e.qZA(),e.TgZ(5,"select",77)(6,"option",78),e._uU(7,"Choose field"),e.qZA(),e.YNc(8,zr,2,2,"option",79),e.qZA()()(),e.TgZ(9,"div",57)(10,"div",14)(11,"label",76),e._uU(12,"Last Name"),e.qZA(),e.TgZ(13,"select",80)(14,"option",78),e._uU(15,"Choose field"),e.qZA(),e.YNc(16,$r,2,2,"option",79),e.qZA()()(),e.TgZ(17,"div",57)(18,"div",14)(19,"label",76),e._uU(20,"Email"),e.qZA(),e.TgZ(21,"select",81)(22,"option",78),e._uU(23,"Choose field"),e.qZA(),e.YNc(24,Wr,2,2,"option",79),e.qZA()()(),e.TgZ(25,"div",57)(26,"div",14)(27,"label",76),e._uU(28,"City"),e.qZA(),e.TgZ(29,"select",82)(30,"option",78),e._uU(31,"Choose field"),e.qZA(),e.YNc(32,Xr,2,2,"option",79),e.qZA()()(),e.TgZ(33,"div",57)(34,"div",14)(35,"label",76),e._uU(36,"Country"),e.qZA(),e.TgZ(37,"select",83)(38,"option",78),e._uU(39,"Choose field"),e.qZA(),e.YNc(40,es,2,2,"option",79),e.qZA()()(),e.TgZ(41,"div",57)(42,"div",14)(43,"label",76),e._uU(44,"ZIP Code"),e.qZA(),e.TgZ(45,"select",84)(46,"option",78),e._uU(47,"Choose field"),e.qZA(),e.YNc(48,ts,2,2,"option",79),e.qZA()()(),e.TgZ(49,"div",57)(50,"div",14)(51,"label",76),e._uU(52,"Phone no"),e.qZA(),e.TgZ(53,"select",85)(54,"option",78),e._uU(55,"Choose field"),e.qZA(),e.YNc(56,ns,2,2,"option",79),e.qZA()()(),e.TgZ(57,"div",57)(58,"div",14)(59,"label",76),e._uU(60,"Landline no"),e.qZA(),e.TgZ(61,"select",86)(62,"option",78),e._uU(63,"Choose field"),e.qZA(),e.YNc(64,os,2,2,"option",79),e.qZA()()()()}if(2&n){const t=e.oxw(3);e.Q6J("formGroup",t.CPConfigurationForm),e.xp6(5),e.Q6J("ngClass",e.VKq(17,P,t.CPC
1onfigurationForm.controls.first_name.invalid&&(t.CPConfigurationForm.controls.first_name.dirty||t.CPConfigurationForm.controls.first_name.touched)||t.submitted&&t.f.first_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(19,P,t.CPConfigurationForm.controls.last_name.invalid&&(t.CPConfigurationForm.controls.last_name.dirty||t.CPConfigurationForm.controls.last_name.touched)||t.submitted&&t.f.last_name.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(21,P,t.CPConfigurationForm.controls.email.invalid&&(t.CPConfigurationForm.controls.email.dirty||t.CPConfigurationForm.controls.email.touched)||t.submitted&&t.f.email.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(23,P,t.CPConfigurationForm.controls.city.invalid&&(t.CPConfigurationForm.controls.city.dirty||t.CPConfigurationForm.controls.city.touched)||t.submitted&&t.f.city.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(25,P,t.CPConfigurationForm.controls.country.invalid&&(t.CPConfigurationForm.controls.country.dirty||t.CPConfigurationForm.controls.country.touched)||t.submitted&&t.f.country.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(27,P,t.CPConfigurationForm.controls.zip_code.invalid&&(t.CPConfigurationForm.controls.zip_code.dirty||t.CPConfigurationForm.controls.zip_code.touched)||t.submitted&&t.f.zip_code.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(29,P,t.CPConfigurationForm.controls.phone_no.invalid&&(t.CPConfigurationForm.controls.phone_no.dirty||t.CPConfigurationForm.controls.phone_no.touched)||t.submitted&&t.f.phone_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend),e.xp6(5),e.Q6J("ngClass",e.VKq(31,P,t.CPConfigurationForm.controls.landline_no.invalid&&(t.CPConfigurationForm.controls.landline_no.dirty||t.CPConfigurationForm.controls.landline_no.touched)||t.submitted&&t.f.landline_no.errors)),e.xp6(3),e.Q6J("ngForOf",t.omnisend)}}function rs(n,r){1&n&&e._UZ(0,"option",87),2&n&&e.s9C("value",r.$implicit.key)}function ss(n,r){if(1&n&&(e.TgZ(0,"option",87),e._uU(1),e.qZA()),2&n){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij("",t," ")}}function as(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",94)(1,"label",95),e._uU(2,"Key"),e.qZA(),e.TgZ(3,"td",96),e._UZ(4,"input",97),e.TgZ(5,"datalist",98),e.YNc(6,rs,1,1,"option",79),e.ALo(7,"keyvalue"),e.qZA()(),e.TgZ(8,"label",95),e._uU(9,"Value"),e.qZA(),e.TgZ(10,"td",96)(11,"select",99)(12,"option",78),e._uU(13,"Choose field"),e.qZA(),e.YNc(14,ss,2,2,"option",79),e.qZA()(),e.TgZ(15,"td",100)(16,"button",101),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(4);return e.KtG(a.deleteaddData(s))}),e._UZ(17,"i",102),e.qZA()()()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw(4);e.Q6J("formGroupName",i),e.xp6(4),e.MGl("id","mvl",i,""),e.Q6J("ngClass",e.VKq(9,P,o.isSubmitted&&t.get("mvl").errors)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(7,7,o.consent_columns)),e.xp6(
15),e.MGl("id","sec",i,""),e.Q6J("ngClass",e.VKq(11,P,o.isSubmitted&&t.get("sec").errors)),e.xp6(3),e.Q6J("ngForOf",o.omnisend)}}function ls(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._uU(1,"Add Additional Data"),e._UZ(2,"i",104),e.qZA()}}function cs(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",103),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.addNewaddDataRow())}),e._UZ(1,"i",105),e.qZA()}}function ds(n,r){1&n&&(e.TgZ(0,"div",66)(1,"b"),e._uU(2," Note "),e.qZA(),e._uU(3,': If you are using key as \'additional_data\' kindly enter in the format "additional_data.company" , "additional_data.city" etc. '),e.qZA())}function ps(n,r){if(1&n&&(e.TgZ(0,"form",88)(1,"div")(2,"label"),e._uU(3,"Additional Data"),e.qZA()(),e.TgZ(4,"div",14)(5,"div",89)(6,"table",90)(7,"tbody"),e.YNc(8,as,18,13,"tr",91),e.qZA(),e.TgZ(9,"tfoot")(10,"tr")(11,"td",92),e.YNc(12,ls,3,0,"button",93),e.YNc(13,cs,2,0,"button",93),e.qZA()()()()()(),e.YNc(14,ds,4,0,"div",56),e.qZA()),2&n){const t=e.oxw(3);e.Q6J("formGroup",t.AdditionalForm),e.xp6(8),e.Q6J("ngForOf",t.AdditionalForm.controls.additionalData.controls),e.xp6(4),e.Q6J("ngIf",0===t.AdditionalForm.value.additionalData.length),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0),e.xp6(1),e.Q6J("ngIf",t.AdditionalForm.value.additionalData.length>0&&!t.iscolLoading)}}function us(n,r){1&n&&(e.ynx(0),e.TgZ(1,"p",37),e._uU(2,"No Connection "),e.qZA(),e.BQk())}function gs(n,r){if(1&n&&(e.TgZ(0,"section"),e.YNc(1,Kr,4,0,"div",56),e.YNc(2,Vr,13,0,"div",63),e.YNc(3,jr,3,0,"div",33),e.YNc(4,is,65,33,"form",64),e.YNc(5,ps,15,5,"form",65),e.YNc(6,us,3,0,"ng-container",33),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.iscolLoading),e.xp6(1),e.Q6J("ngIf",t.iscolLoading),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&0==(null==t.omnisend?null:t.omnisend.length)),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.omnisend?null:t.omnisend.length)>0),e.xp6(1),e.Q6J("ngIf",!t.iscolLoading&&(null==t.omnisend?null:t.omnisend.length)>0),e.xp6(1),e.Q6J("ngIf",0===t.credList.length)}}function _s(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",53)(1,"div",9)(2,"a",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goBack())}),e._UZ(3,"i",55),e._uU(4," GoBack"),e.qZA()(),e.YNc(5,Ar,17,8,"section",33),e.YNc(6,Rr,7,6,"section",33),e.YNc(7,gs,7,6,"section",33),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngIf","salesforce"===t.selectedData.system.name),e.xp6(1),e.Q6J("ngIf","accelo"===t.selectedData.system.name),e.xp6(1),e.Q6J("ngIf","omnisend"===t.selectedData.system.name)}}function ms(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",108),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSelectConnection())}),e._UZ(1,"i",24),e._uU(2," Submit"),e.qZA()}}function fs(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",109),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(!o.iscolLoading&&(null==o.SalesForce?null:o.SalesForce.length)>0?o.onCheckSalesforceForm():"")}),e._UZ(1,"i",24),e._uU(2," Save"),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("disabled",!(!t.iscolLoading&&0!=(null==t.SalesForce?null:t.SalesForce.length)))}}function hs(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",109),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(!o.iscolLoading&&(null==o.accelo?null:o.accelo.length)>0?o.onCheckSalesforceForm():"")}),e._UZ(1,"i",24),e._uU(2," Save"),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("disabled",!(!t.iscolLoading&&0!=(null==t.accelo?null:t.accelo.length)))}}function Cs(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",109),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(!o.iscolLoading&&o.omnisend.length>0?o.onCheckSalesforceForm():"")}),e._UZ(1,"i",24),e._uU(2," Save"),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("disabled",!(!t.iscolLoading&&0!=t.omnisend.length))}}function bs(n,r){if(1&n&&(e.YNc(0,ms,3,0,"button",106),e.YNc(1,fs,3,1,"button",107),e.YNc(2,hs,3,1,"button",107),e.YNc(3,Cs,3,1,"button",107)),2&n){const t=e.oxw();e.Q6J("ngIf",0==t.stepper),e.xp6(1),e.Q6J("ngIf",1==t.stepper&&"salesforce"===t.selectedData.system.name),e.xp6(1),e.Q6J("ngIf",1==t.stepper&&"accelo"===t.selectedData.system.name),e.xp6(1),e.Q6J("ngIf",1==t.stepper&&"omnisend"===t.selectedData.system.name)}}const xs=function(n,r){return{oid:n,pid:r}},Zs=function(n){return{hide:n}},vs=function(){return{width:"50vw"}};let Ts=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D){this.systemIntegrationService=i,this.fb=o,this.activateRoute=s,this.router=a,this._location=g,this.loading=y,this.dataService=B,this.titleService=D,this.selectedValues={consentPreferenceJS:"yes",consentPreferenceAPI:"yes",subscriptionConsentBanner:"yes"},this.isEdit=!1,this.isOpen=!1,this.credList=[],this.newConfigureConnections=[],this.configureConnections=[],this.selectedConnection=[],this.configuredConnectionIDs=[],this.skLoading=!0,this.stepper=0,this.submitted=!1,this.isSubmitted=!1,this.sales_object="Lead",this.SalesForce=[],this.accelo=[],this.omnisend=[],this.addData={}
1,this.consent_columns=[],this.titleService.setTitle("Connection Manager - "+q.N.portalPrefix)}ngOnInit(){this.activateRoute.queryParamMap.subscribe(i=>{let o=i.get("oid"),s=i.get("pid");null!=this.queryOID&&(this.queryOID!=o||this.queryPID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.queryOID=o,this.queryPID=s}),this.dataService.isSubscriptionExistForConsent()||(this.onGetCredList(),this.onGetconsentdetailsschema()),this.CPConfigurationForm=this.fb.group({first_name:[""],last_name:[""],city:[""],country:[""],zip_code:[""],email:[""],phone_no:[""],landline_no:[""]}),this.AdditionalForm=this.fb.group({additionalData:this.fb.array([])})}showModalDialog(){this.selectedConnection=[],this.addData={},this.newConfigureConnections=[],this.CPConfigurationForm=this.fb.group({first_name:[""],last_name:[""],city:[""],country:[""],zip_code:[""],email:[""],phone_no:[""],landline_no:[""]});const i=this.AdditionalForm.controls.additionalData;for(let o=i.length-1;o>=0;o--)i.removeAt(o);this.AdditionalForm.reset(),this.displayModal=!0}get f(){return this.CPConfigurationForm.controls}deleteaddData(i){this.additinalArr.removeAt(i)}addNewaddDataRow(){this.additinalArr.push(this.initaddRows())}initaddRows(){return this.fb.group({mvl:["",p.kI.required],sec:["",p.kI.required]})}get additinalArr(){return this.AdditionalForm.get("additionalData")}onGetCredList(){this.loading.start("22"),this.skLoading=!0,this.newConfigureConnections=[],this.systemIntegrationService.GetCredListByCompany(this.constructor.name,u.e.systemIntegrationModule,{limit:100,page:1}).subscribe(o=>{this.skLoading=!1,this.loading.stop("22"),this.credList=o.response,this.onGetConfigureData()},o=>{this.isOpen=!0,this.alertMsg=o,this.alertType="error",this.skLoading=!1,this.loading.stop("22")})}onGetconsentdetailsschema(){this.consent_columns=[],this.systemIntegrationService.Getconsentdetailsschema(this.constructor.name,u.e.systemIntegrationModule).subscribe(i=>{this.consent_columns=i.response},i=>{this.isOpen=!0,this.alertMsg=i,this.alertType="error"})}onGetConfigureData(){this.loading.start("33"),this.skLoading=!0,this.systemIntegrationService.GetConfiguredConsentPreference(this.constructor.name,u.e.systemIntegrationModule,this.queryPID).subscribe(i=>{this.skLoading=!1,this.loading.stop("33");const o=[];for(const s of this.credList)for(const a of i.response)s.id===a.ConnectionID&&(s.ConnectionID=a.ConnectionID,o.push(s));this.configuredConnectionIDs=[],i.response.forEach(s=>{this.configuredConnectionIDs.push(s.ConnectionID)}),this.configureConnections=o,this.skLoading=!1},i=>{this.isOpen=!0,this.alertMsg=i,this.alertType="error",this.skLoading=!1,this.loading.stop("33")})}set__value(i){"salesforce"==i.system.name?(this.selectedData=[],this.selectedData=i,this.onGetcolumnsList(),setTimeout(()=>{document.getElementById("toTop").scrollIntoView(!0)},800)):"accelo"==i.system.name?(this.selectedData=[],this.selectedData=i,this.onGetaccelocolumnsList(),setTimeout(()=>{document.getElementById("toTop").scrollIntoView(!0)},800)):"omnisend"==i.system.name&&(this.selectedData=[],this.selectedData=i,this.onGetOmisendcolumnsList(),setTimeout(()=>{document.getElementById("toTop").scrollIntoView(!0)},800))}goBack(){if(confirm("Your changes will be lost")){this.stepper=0,this.selectedConnection=[],this.addData={},this.CPConfigurationForm=this.fb.group({first_name:[""],last_name:[""],city:[""],country:[""],zip_code:[""],email:[""],phone_no:[""],landline_no:[""]});const i=this.AdditionalForm.controls.additionalData;for(let o=i.length-1;o>=0;o--)i.removeAt(o);this.AdditionalForm.reset()}}setformDefaultvalue(){this.CPConfigurationForm.patchValue({first_name:"",last_name:"",city:"",country:"",zip_code:"",email:"",phone_no:"",landline_no:""})}onGetcolumnsList(){this.iscolLoading=!0,this.loading.start(),this.systemIntegrationService.GetsalesforceColumn(this.constructor.name,u.e.systemIntegrationModule,{cred_name:this.selectedData.cred_name,description:this.selectedData.description,connector_type:this.selectedData.connector_type,integration_cred:this.selectedData.integration_cred},this.selectedData.system.name,this.sales_object).subscribe(o=>
1{if(200===o.status&&(this.iscolLoading=!1,this.loading.stop(),this.setformDefaultvalue(),this.SalesForce=[],o.response.records.length>0)){let s=[];Object.keys(o.response.records[0]).forEach(function(a){(null==o.response.records[0][a]||"object"!=typeof o.response.records[0][a]&&"boolean"!=typeof o.response.records[0][a])&&s.push(a)}),s.toString();for(const a of s)this.SalesForce.push(a)}},o=>{this.loading.stop(),this.iscolLoading=!1,this.isOpen=!0,this.alertMsg=o.error_description||o,this.alertType="danger"})}onGetaccelocolumnsList(){this.iscolLoading=!0,this.loading.start(),this.systemIntegrationService.GetacceloColumn(this.constructor.name,u.e.systemIntegrationModule,{cred_name:this.selectedData.cred_name,description:this.selectedData.description,connector_type:this.selectedData.connector_type,integration_cred:this.selectedData.integration_cred},this.selectedData.system.name).subscribe(o=>{if(200===o.status&&(this.iscolLoading=!1,this.loading.stop(),this.setformDefaultvalue(),this.accelo=[],200===o.status)){this.iscolLoading=!1,this.loading.stop(),this.accelo=[];let s=[];Object.keys(o.response).forEach(function(a){(null==o.response[a]||"object"!=typeof o.response[a])&&s.push(a)}),s.toString();for(const a of s)this.accelo.push(a)}},o=>{this.loading.stop(),this.iscolLoading=!1,this.isOpen=!0,this.alertMsg=o.error_description||o,this.alertType="danger"})}onGetOmisendcolumnsList(){this.iscolLoading=!0,this.loading.start(),this.systemIntegrationService.GetacceloColumn(this.constructor.name,u.e.systemIntegrationModule,{cred_name:this.selectedData.cred_name,description:this.selectedData.description,connector_type:this.selectedData.connector_type,integration_cred:this.selectedData.integration_cred},this.selectedData.system.name).subscribe(o=>{if(200===o.status&&(this.iscolLoading=!1,this.loading.stop(),this.setformDefaultvalue(),this.omnisend=[],200===o.status)){this.iscolLoading=!1,this.loading.stop(),this.omnisend=[];let s=[];Object.keys(o.response).forEach(function(a){(null==o.response[a]||"object"!=typeof o.response[a])&&s.push(a)}),s.toString();for(const a of s)this.omnisend.push(a)}},o=>{this.loading.stop(),this.iscolLoading=!1,this.isOpen=!0,this.alertMsg=o.error_description||o||o.response,this.alertType="danger"})}onSubmit(){this.displayModal=!1,this.isOpen=!1;const i=[];for(const o of this.newConfigureConnections)o.id&&"salesforce"!==o.system.name&&i.push({connection_id:o.id,system_name:o.system.name}),o.id&&"salesforce"==o.system.name?i.push({connection_id:o.id,system_name:o.system.name,field:"columns",consent_preference_mapping:this.CPConfigurationForm.value},{connection_id:o.id,field:"object",system_name:o.system.name,value_1:this.sales_object}):o.id&&("accelo"==o.system.name||"omnisend"==o.system.name)&&i.push({connection_id:o.id,system_name:o.system.name,field:"columns",consent_preference_mapping:this.CPConfigurationForm.value});this.loading.start("123"),this.systemIntegrationService.SaveConsentPreferenceConnection(this.constructor.name,u.e.systemIntegrationModule,i,this.queryOID,this.queryPID).subscribe(o=>{this.onGetCredList(),this.loading.stop("123"),this.stepper=0},o=>{this.loading.stop("123"),this.alertMsg=o.error,this.alertType="danger",this.isOpen=!0})}onDeleteConnection(i){this.loading.start("11"),this.systemIntegrationService.DeleteConsentPreferenceConnection(this.constructor.name,u.e.systemIntegrationModule,i.ConnectionID,this.queryOID,this.queryPID).subscribe(o=>{this.loading.stop("11"),this.configuredConnectionIDs=[],this.onGetCredList()},o=>{this.loading.stop("11")})}goBackto(){this.stepper=0}onCheckSalesforceForm(){if(this.isSubmitted=!0,this.AdditionalForm.invali
1d)return;var i=this.AdditionalForm.value;this.addData={};let o=[];if(this.AdditionalForm.controls.additionalData.length>0){for(var a in i)for(var g in i[a]){var y=i[a][g];this.addData[y.mvl]=y.sec}for(const D in this.addData)o.push({key:D,value:this.addData[D]})}for(const D in this.CPConfigurationForm.value)""!==this.CPConfigurationForm.value[D]&&o.push({key:D,value:this.CPConfigurationForm.value[D]});if(new Set(o.map(D=>D.value)).size<o.length)return alert("All Fields value must be unique"),!1;for(const D in this.addData)this.CPConfigurationForm.addControl(D,this.fb.control(this.addData[D]));this.onSelectConnection(),this.isSubmitted=!1}onSelectConnection(){this.displayModal=!1,this.stepper=0;const i=[];this.selectedConnection.forEach(o=>{i.includes(o)||i.push(o)}),this.newConfigureConnections=i}onNavigateToBack(){this.selectedConnection=[],this.newConfigureConnections=[],this.addData={},this.CPConfigurationForm=this.fb.group({first_name:[""],last_name:[""],city:[""],country:[""],zip_code:[""],email:[""],phone_no:[""],landline_no:[""]});const i=this.AdditionalForm.controls.additionalData;for(let o=i.length-1;o>=0;o--)i.removeAt(o);this.AdditionalForm.reset()}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(Bi._),e.Y36(p.QS),e.Y36(b.gz),e.Y36(b.F0),e.Y36(l.Ye),e.Y36(_.LA),e.Y36(S.D),e.Y36(Z.Dx))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consent-preference-integration"]],decls:52,vars:18,consts:[[1,"container-fluid"],[1,"col-md-12","ml-4"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/dashboard/consent-preference",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"card"],[1,"card-header"],[1,"float-left"],["type","button",1,"float-right","btn","btn-sm","btn-primary",3,"click"],[1,"fa","fa-plus"],[1,"card-body"],[1,"row"],[1,"col-md-6"],[1,"mb-4","heading"],[1,"card","w-50"],[1,"card-body","p-3",2,"border-bottom","1px solid lightgray"],[1,"float-left","pl-2","tx-15"],["class","card w-100",4,"ngIf"],["class","card-body",4,"ngIf"],[1,"card-footer"],["Class","btn btn-sm btn-primary float-right ml-2",3,"disabled","click"],[1,"fa","fa-check"],["Class","btn btn-sm btn-secondary float-right",3,"click"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type",4,"ngIf"],["id","dialog","closable","true",3,"header","visible","visibleChange","onHide"],["class","card w-70",4,"ngIf"],["class","card w-100 p-10","style","border: none;",4,"ngIf"],["pTemplate","footer"],[1,"card","w-100"],[4,"ngIf"],["class","card-body p-3","style","border-bottom: 1px solid lightgray;",4,"ngFor","ngForOf"],[1,"pi","pi-check","text-success"],["tooltip","Delete the connection","name","trash-2",1,"float-right","tx-25","text-danger","cursor-pointer",3,"click"],[1,"alert","alert-danger","mb-0"],["appearance","circle",3,"theme"],["dismissOnTimeout","5000",3,"type"],[3,"innerHTML"],[1,"card","w-70"],[4,"ngFor","ngForOf"],["class","card-body p-3","style","border-bottom: 1px solid lightgray; background: #f3f3f3",4,"ngIf","ngIfElse"],["noRecord",""],[1,"card-body","p-3",2,"border-bottom","1px solid lightgray","background","#f3f3f3"],["name","groupname",1,"float-left",3,"disabled","value","ngModel","ngModelChange"],[1,"tx-12"],["class","card-body p-3","style","background: #d2ffd2; border-bottom: 1px solid lightgray;",4,"ngIf"],["class","card-body p-3","style","border-bottom: 1px solid lightgray;",4,"ngIf"],[1,"card-body","p-3",2,"background","#d2ffd2","border-bottom","1px solid lightgray"],["name","groupname",1,"float-left",3,"value","disabled","ngModel","ngModelChange"],["name","groupname",1,"float-left",3,"value","disabled","ngModel","click","ngModelChange"],[1,"card","w-100","p-10",2,"border","none"],["href","javascript:;","id","toTop",1,"back-to-list-btn","mb-2",3,"click"],[1,"fas","fa-chevron-left"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-group"],["for","exampleFormControlSelect2"],["id","exampleFormControlSelect2",1,"form-control",3,"ngModel","change","ngModelChange"],["value","Lead"],["value","Contact"],["class","mt-3 text-danger",4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup",4,"ngIf"],["role","alert",1,"alert","alert-info"],[1,"mt-3","text-danger"],[1,"d-flex","justify-content-center"],["role","status",1,"spinner-grow","text-primary",2,"width","3rem","height","3rem"],[1,"sr-only"],["role","status",1,"spinner-grow","text-secondary",2,"width","3rem","height","3rem"],["role","status",1,"spinner-grow","text-success",2,"width","3rem","height","3rem"],["role","status",1,"spinner-grow","text-danger",2,"width","3rem","height","3rem"],[1,"text-danger","tx-bold"],[3,"formGroup","ngSubmit"],["for","exampleFormControlSelect1",1,"col-sm-6"],["
1id","exampleFormControlSelect1","formControlName","first_name",1,"form-control",2,"width","auto",3,"ngClass"],["value",""],[3,"value",4,"ngFor","ngForOf"],["id","exampleFormControlSelect1","formControlName","last_name",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","email",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","city",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","country",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","zip_code",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","phone_no",1,"form-control",2,"width","auto",3,"ngClass"],["id","exampleFormControlSelect1","formControlName","landline_no",1,"form-control",2,"width","auto",3,"ngClass"],[3,"value"],[3,"formGroup"],["formArrayName","additionalData",1,"col-sm-12","table-responsive"],[1,"table"],[3,"formGroupName",4,"ngFor","ngForOf"],[2,"border","none","display","grid","place-items","center"],["type","button","class","btn btn-sm btn-primary",3,"click",4,"ngIf"],[3,"formGroupName"],[1,"mt-3"],[2,"white-space","nowrap","border","none"],["list","browsers","formControlName","mvl","placeholder","Ex : Age","autocomplete","off",1,"form-control",3,"id","ngClass"],["id","browsers"],["formControlName","sec",1,"form-control",2,"width","auto",3,"id","ngClass"],[2,"border","none"],["placement","left",1,"btn","btn-sm","btn-danger",3,"click"],["aria-hidden","true",1,"fa","fa-minus-circle"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],["aria-hidden","true",1,"fa","fa-plus","ml-2"],["aria-hidden","true",1,"fa","fa-plus-circle"],["appTheme","","Class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["appTheme","","Class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["appTheme","","Class","btn btn-sm btn-primary",3,"click"],["appTheme","","Class","btn btn-sm btn-primary",3,"disabled","click"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"nav",3)(5,"ol",4)(6,"li",5),e._uU(7,"Privacy"),e.qZA(),e.TgZ(8,"li",5)(9,"a",6),e._uU(10,"Consent Preference"),e.qZA()(),e.TgZ(11,"li",7),e._uU(12,"Connection Manager"),e.qZA()()()()()(),e.TgZ(13,"div",8)(14,"div",9)(15,"h5",10),e._uU(16,"Connection Manager"),e.qZA(),e.TgZ(17,"button",11),e.NdJ("click",function(){return s.showModalDialog()}),e._UZ(18,"i",12),e._uU(19," Add Connection"),e.qZA()(),e.TgZ(20,"div",13)(21,"div",14)(22,"div",15)(23,"h5",16),e._uU(24,"Source"),e.qZA(),e.TgZ(25,"div",17)(26,"div",18)(27,"h5",19),e._uU(28,"Consent Preference Javascript"),e.qZA()(),e.TgZ(29,"div",18)(30,"h5",19),e._uU(31,"Consent Preference API"),e.qZA()(),e.TgZ(32,"div",18)(33,"h5",19),e._uU(34,"Subscription Consent Banner"),e.qZA()()()(),e.TgZ(35,"div",15)(36,"h5",16),e._uU(37,"Destination "),e.qZA(),e.YNc(38,Ki,4,3,"div",20),e.YNc(39,Vi,5,8,"div",21),e.qZA()()(),e.TgZ(40,"div",22)(41,"button",23),e.NdJ("click",function(){return s.onSubmit()}),e._UZ(42,"i",24),e._uU(43," Save"),e.qZA(),e.TgZ(44,"button",25),e.NdJ("click",function(){return s.onNavigateToBack()}),e._uU(45,"Cancel"),e.qZA()()()(),e.TgZ(46,"div",26),e.YNc(47,ji,2,2,"alert",27),e.qZA(),e.TgZ(48,"p-dialog",28),e.NdJ("visibleChange",function(g){return s.displayModal=g})("onHide",function(){return s.goBackto()}),e.YNc(49,or,3,2,"div",29),e.YNc(50,_s,8,3,"div",30),e.YNc(51,bs,4,4,"ng-template",31),e.qZA()),2&o&&(e.xp6(9),e.Q6J("queryParams",e.WLB(12,xs,s.queryOID,s.queryPID)),e.xp6(29),e.Q6J("ngIf",!s.skLoading),e.xp6(1),e.Q6J("ngIf",s.skLoading),e.xp6(2),e.Q6J("disabled",0===s.newConfigureConnections.length),e.xp6(5),e.Q6J("ngClass",e.VKq(15,Zs,!s.isOpen)),e.xp6(1),e.Q6J("ngIf",s.isOpen),e.xp6(1),e.Akn(e.DdM(17,vs)),e.Q6J("header",0==s.stepper?"Your Configured Connections":"Configure Connection")("visible",s.displayModal),e.xp6(1),e.Q6J("ngIf",0==s.stepper),e.xp6(1),e.Q6J("ngIf",1==s.stepper))},dependencies:[l.mk,l.sg,l.O5,b.rH,w.jx,p._Y,p.YN,p.Kr,p.Fj,p.EJ,p.JJ,p.JL,p.On,p.sg,p.u,p.x0,p.CE,xe.XZ,Ze.V,Qi.xr,h.u,k.i9,F.wx,x.mh,R.E,l.Nd],styles:[".heading[_ngcontent-%COMP%]{border-bottom:1px solid gray;width:33%;padding-bottom:10px}.heading-dialog[_ngcontent-%COMP%]{border-bottom:1px solid gray;width:60%;padding-bottom:10px}  .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{display:block!important}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto;z-index:1}.hide[_ngcontent-%COMP%]{display:none}"]}),n})();var ys=c(30567),As=c(31496),G=c(43265),ws=c(62976),ve=c(36718),X=c(28255);const Us=["template"];function qs(n,r){1&n&&(e.TgZ(0,"tr",26)(1,"th"),e._uU(2,"Sender Name"),e.qZA(),e.TgZ(3,"th"),e._uU(4,"Sender Email"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Email Subject"),e.qZA(),e.TgZ(7,"th"),e._uU(8,"Status"),e.qZA(),e.TgZ(9,"th",27),e._uU(10,"Created "),e._UZ(11,"p-sortIcon",28),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Action"),e.qZA()())}function ks(n,r){1&n&&(e.TgZ(0,"td")(1,"button",37),e._uU(2,"Active"),e.qZA()())}function Ss(n,r){1&n&&(e.TgZ(0,"td")(1,"button",38),e._uU(2,"Inactive"),e.qZA()())}function Ps(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActiveConfig(o.id))}),e._uU(1,"Active"),e.qZA()}}function Is(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.YNc(7,ks,3,0,"td",29),e.YNc(8,Ss,3,0,"td",29),e.TgZ(9,"td"),e._uU(10),e.ALo(11,"date"),e.qZA(),e.TgZ(12,"td")(13,"div",30)(14,"button",31),e.O4$(),e.TgZ(15,"svg",32),e._UZ(16,"path",33),e.qZA()(),e.kcU(),e.TgZ(17,"div",34),e.YNc(18,Ps,2,0,"button",35),e.TgZ(19,"button",36),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.onDeleteConfig(s.id))}),e._uU(20,"Delete"),e.qZA()()()()()}if(2&n){const t=r.$implicit;e.xp6(2),e.Oqu(t.sender_name),e.xp6(2),e.Oqu(t.sender_email),e.xp6(2),e.Oqu(t.subject),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(2),e.Oqu(e.l
1cZ(11,8,t.created_at)),e.xp6(4),e.Q6J("tooltip",1==(null==t?null:t.active)?"Click to delete the email template":"Click to activate or delete the email template"),e.xp6(4),e.Q6J("ngIf",!t.active)}}function Ns(n,r){1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2," No records found "),e.qZA()()),2&n&&(e.xp6(1),e.uIk("colspan",6))}const Ms=function(){return[10,20,30]};function Ds(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",12)(1,"div",13)(2,"h5",14),e._uU(3,"Email Template"),e.qZA(),e.TgZ(4,"span",15),e._uU(5," Email verification configuration "),e.TgZ(6,"label",16)(7,"input",17),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.configverificationmailSdk=o)})("click",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onClickVerifiyEmail(o,"sdk"))}),e.qZA(),e._uU(8," SDK "),e.qZA(),e.TgZ(9,"label",18)(10,"input",19),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.configverificationmailBanner=o)})("click",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onClickVerifiyEmail(o,"banner"))}),e.qZA(),e._uU(11," Banner"),e.qZA()(),e.TgZ(12,"button",20),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.step=2)}),e._uU(13,"Create Email Configuration"),e.qZA()(),e.TgZ(14,"div",21)(15,"p-table",22),e.YNc(16,qs,14,0,"ng-template",23),e.YNc(17,Is,21,10,"ng-template",24),e.YNc(18,Ns,3,1,"ng-template",25),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(7),e.Q6J("checked",t.configverificationmailSdk)("ngModel",t.configverificationmailSdk),e.xp6(3),e.Q6J("checked",t.configverificationmailBanner)("ngModel",t.configverificationmailBanner),e.xp6(5),e.Q6J("value",t.emailConfigList)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",t.emailConfigList.length)("rowsPerPageOptions",e.DdM(13,Ms))("loading",t.skLoading)}}function Fs(n,r){if(1&n&&(e.TgZ(0,"option",60),e._uU(1),e.TgZ(2,"b"),e._uU(3),e.qZA()()),2&n){const t=r.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij("",t.name," "),e.xp6(2),e.hij(" - ",t.from_email," ")}}function Os(n,r){if(1&n&&(e.TgZ(0,"optgroup",58),e.YNc(1,Fs,4,3,"option",59),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.senderList)}}function Ls(n,r){if(1&n&&(e.TgZ(0,"option",60),e._uU(1),e.TgZ(2,"b"),e._uU(3),e.qZA()()),2&n){const t=r.$implicit;e.Q6J("value",t.id),e.xp6(1),e.Oqu(t.sender_name),e.xp6(2),e.hij("-",t.sender_email,"")}}function Js(n,r){if(1&n&&(e.TgZ(0,"optgroup",61),e.YNc(1,Ls,4,3,"option",59),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.senderSmtpList)}}function Bs(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Sender is required"),e.qZA())}function Qs(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,Bs,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.sender.errors.required)}}function Es(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",63)(1,"p",64),e._uU(2," Please verify the Email ID to complete the configuration. "),e.qZA(),e.TgZ(3,"button",65),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onResentEmailVerification())}),e._uU(4,"Resend Verification Email "),e.qZA()()}}function Ys(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.onDropdownChange(s.name))}),e._uU(1),e.qZA()}if(2&n){const t=r.$implicit;e.xp6(1),e.Oqu(t.label)}}function Hs(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Subject is required"),e.qZA())}function Gs(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,Hs,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.subject.errors.required)}}function Rs(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Email Body is required"),e.qZA())}function Ks(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,Rs,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.f.body.errors.required)}}const H=function(n){return{"is-invalid":n}};function Vs(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",39)(1,"div",21)(2,"form",40),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onSubmit())}),e.TgZ(3,"div",41)(4,"label",42),e._uU(5,"Email Sender"),e._UZ(6,"i",43),e.qZA(),e.TgZ(7,"select",44)(8,"option",45),e._uU(9,"-- Select Sender --"),e.qZA(),e.YNc(10,Os,2,1,"optgroup",46),e.YNc(11,Js,2,1,"optgroup",47),e.qZA(),e.YNc(12,Qs,2,1,"div",48),e.YNc(13,Es,5,0,"div",49),e.TgZ(14,"mat-menu",null,50),e.YNc(16,Ys,2,1,"button",51),e.qZA(),e.TgZ(17,"button",52),e._uU(18,"Create a new Sender "),e.qZA()(),e.TgZ(19,"div",41)(20,"label",53),e._uU(21,"Email Subject"),e._UZ(22,"i",43),e.qZA(),e._UZ(23,"input",54),e.YNc(24,Gs,2,1,"div",48),e.qZA(),e.TgZ(25,"div",41)(26,"label"),e._uU(27,"Email Body"),e.qZA(),e._UZ(28,"quill-editor",55),e.YNc(29,Ks,2,1,"div",48),e.qZA(),e.TgZ(30,"div",26)(31,"button",56),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.step=1)}),e._uU(32,"Cancel"),e.qZA(),e.TgZ(33,"button",57),e._uU(34,"Submit"),e.qZA()()()()()}if(2&n){const t=e.MAs(15),i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.SMTPConfigurationForm),e.xp6(5),e.Q6J("ngClass",e.VKq(14,H,i.SMTPConfigurationForm.controls.sender.invalid&&(i.SMTPConfigurationForm.controls.sender.dirty||i.SMTPConfigurationForm.controls.sender.touched)||i.submitted&&i.f.sender.errors)),e.xp6(3),e.Q6J("ngIf",i.senderList.length>0),e.xp6(1),e.Q6J("ngIf",i.senderSmtpList.length>0),e.xp6(1),e.Q6J("ngIf",i.SMTPConfigurationForm.controls.sender.invalid&&(i.SMTPConfigurationForm.controls.sender.dirty||i.SMTPConfigurationForm.controls.sender.touched)||i.submitted&&i.f.sender.errors),e.xp6(1),e.Q6J("ngIf",i.verficationError),e.xp6(3),e.Q6J("ngForOf",i.configureSenderList),e.xp6(1),e.Q6J("matMenuTriggerFor",t),e.xp6(6),e.Q6J("ngClass",e.VKq(16,H,i.SMTPConfigurationForm.controls.subject.invali
1d&&(i.SMTPConfigurationForm.controls.subject.dirty||i.SMTPConfigurationForm.controls.subject.touched)||i.submitted&&i.f.subject.errors)),e.xp6(1),e.Q6J("ngIf",i.SMTPConfigurationForm.controls.subject.invalid&&(i.SMTPConfigurationForm.controls.subject.dirty||i.SMTPConfigurationForm.controls.subject.touched)||i.submitted&&i.f.subject.errors),e.xp6(4),e.Q6J("modules",i.quillConfig)("ngClass",e.VKq(18,H,i.SMTPConfigurationForm.controls.body.invalid&&(i.SMTPConfigurationForm.controls.body.dirty||i.SMTPConfigurationForm.controls.body.touched)||i.submitted&&i.f.body.errors)),e.xp6(1),e.Q6J("ngIf",i.SMTPConfigurationForm.controls.body.invalid&&(i.SMTPConfigurationForm.controls.body.dirty||i.SMTPConfigurationForm.controls.body.touched)||i.submitted&&i.f.body.errors),e.xp6(4),e.Q6J("disabled",i.SMTPConfigurationForm.invalid)}}function js(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"app-smtp-configuration-modal",67),e.NdJ("closeModal",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.closeModal(o))})("connectionSuccessStatus",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.connectionSuccessStatus(o))})("refreshSmtpList",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onGetSmtpList())}),e.qZA()}}function zs(n,r){if(1&n&&(e.TgZ(0,"li",90)(1,"b"),e._uU(2),e.qZA(),e._uU(3," - "),e.TgZ(4,"span",91),e._uU(5),e.qZA()()),2&n){const t=r.$implicit;e.xp6(2),e.hij("",t.field," "),e.xp6(3),e.Oqu(t.message)}}function $s(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Nick name is required"),e.qZA())}function Ws(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,$s,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.name.errors.required)}}function Xs(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"From Email is required"),e.qZA())}function ea(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Please enter valid email"),e.qZA())}function ta(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,Xs,2,0,"div",29),e.YNc(2,ea,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.from_email.errors.required),e.xp6(1),e.Q6J("ngIf",t.s.from_email.errors.pattern)}}function na(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"From Name is required"),e.qZA())}function oa(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,na,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.from_name.errors.required)}}function ia(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Reply Email is required"),e.qZA())}function ra(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Please enter valid email"),e.qZA())}function sa(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,ia,2,0,"div",29),e.YNc(2,ra,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.reply_email.errors.required),e.xp6(1),e.Q6J("ngIf",t.s.reply_email.errors.pattern)}}function aa(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Address is required"),e.qZA())}function la(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,aa,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.address.errors.required)}}function ca(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"City is required"),e.qZA())}function da(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Only characters are allowed"),e.qZA())}function pa(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,ca,2,0,"div",29),e.YNc(2,da,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.city.errors.required),e.xp6(1),e.Q6J("ngIf",t.s.city.errors.pattern)}}function ua(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Country is required"),e.qZA())}function ga(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Only characters are allowed"),e.qZA())}function _a(n,r){if(1&n&&(e.TgZ(0,"div",62),e.YNc(1,ua,2,0,"div",29),e.YNc(2,ga,2,0,"div",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.s.country.errors.required),e.xp6(1),e.Q6J("ngIf",t.s.country.errors.pattern)}}function ma(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",68)(1,"h4",69),e._uU(2,"Create a new Sender"),e.qZA(),e.TgZ(3,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.oncancel())}),e.TgZ(4,"span",71),e._uU(5,"\xd7"),e.qZA()()(),e.TgZ(6,"div",72)(7,"form",40),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCreateSender())}),e.TgZ(8,"ul",73),e.YNc(9,zs,6,2,"li",74),e.qZA(),e.TgZ(10,"div",41)(11,"label",75),e._uU(12,"Nick Name"),e._UZ(13,"i",43),e.qZA(),e._UZ(14,"input",76),e.YNc(15,Ws,2,1,"div",48),e.qZA(),e.TgZ(16,"div",41)(17,"label",77),e._uU(18,"From Email"),e._UZ(19,"i",43),e.qZA(),e._UZ(20,"input",78),e.YNc(21,ta,3,2,"div",48),e.qZA(),e.TgZ(22,"div",41)(23,"label",79),e._uU(24,"From Name"),e._UZ(25,"i",43),e.qZA(),e._UZ(26,"input",80),e.YNc(27,oa,2,1,"div",48),e.qZA(),e.TgZ(28,"div",41)(29,"label",81),e._uU(30,"Reply Email"),e._UZ(31,"i",43),e.qZA(),e._UZ(32,"input",82),e.YNc(33,sa,3,2,"div",48),e.qZA(),e.TgZ(34,"div",41)(35,"label",83),e._uU(36,"Address"),e._UZ(37,"i",43),e.qZA(),e._UZ(38,"input",84),e.YNc(39,la,2,1,"div",48),e.qZA(),e.TgZ(40,"div",41)(41,"label",85),e._uU(42,"City"),e._UZ(43,"i",43),e.qZA(),e._UZ(44,"input",86),e.YNc(45,pa,3,2,"div",48),e.qZA(),e.TgZ(46,"div",41)(47,"label",87),e._uU(48,"Country"),e._UZ(49,"i",43),e.qZA(),e._UZ(50,"input",88),e.YNc(51,_a,3,2,"div",48),e.qZA(),e.TgZ(52,"button",89),e._uU(53,"Submit"),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(7),e.Q6J("formGroup",t.SenderForm),e.xp6(2),e.Q6J("ngForOf",t.senderErrorBody),e.xp6(
15),e.Q6J("ngClass",e.VKq(16,H,t.SenderForm.controls.name.invalid&&(t.SenderForm.controls.name.dirty||t.SenderForm.controls.name.touched)||t.submitted&&t.s.name.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.name.invalid&&(t.SenderForm.controls.name.dirty||t.SenderForm.controls.name.touched)||t.submitted&&t.s.name.errors),e.xp6(5),e.Q6J("ngClass",e.VKq(18,H,t.SenderForm.controls.from_email.invalid&&(t.SenderForm.controls.from_email.dirty||t.SenderForm.controls.from_email.touched)||t.submitted&&t.s.from_email.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.from_email.invalid&&(t.SenderForm.controls.from_email.dirty||t.SenderForm.controls.from_email.touched)||t.submitted&&t.s.from_email.errors),e.xp6(5),e.Q6J("ngClass",e.VKq(20,H,t.SenderForm.controls.from_name.invalid&&(t.SenderForm.controls.from_name.dirty||t.SenderForm.controls.from_name.touched)||t.submitted&&t.s.from_name.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.from_name.invalid&&(t.SenderForm.controls.from_name.dirty||t.SenderForm.controls.from_name.touched)||t.submitted&&t.s.from_name.errors),e.xp6(
15),e.Q6J("ngClass",e.VKq(22,H,t.SenderForm.controls.reply_email.invalid&&(t.SenderForm.controls.reply_email.dirty||t.SenderForm.controls.reply_email.touched)||t.submitted&&t.s.reply_email.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.reply_email.invalid&&(t.SenderForm.controls.reply_email.dirty||t.SenderForm.controls.reply_email.touched)||t.submitted&&t.s.reply_email.errors),e.xp6(5),e.Q6J("ngClass",e.VKq(24,H,t.SenderForm.controls.address.invalid&&(t.SenderForm.controls.address.dirty||t.SenderForm.controls.address.touched)||t.submitted&&t.s.address.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.address.invalid&&(t.SenderForm.controls.address.dirty||t.SenderForm.controls.address.touched)||t.submitted&&t.s.address.errors),e.xp6(5),e.Q6J("ngClass",e.VKq(26,H,t.SenderForm.controls.city.invalid&&(t.SenderForm.controls.city.dirty||t.SenderForm.controls.city.touched)||t.submitted&&t.s.city.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.city.invalid&&(t.SenderForm.controls.city.dirty||t.SenderForm.controls.city.touched)||t.submitted&&t.s.city.errors),e.xp6(
15),e.Q6J("ngClass",e.VKq(28,H,t.SenderForm.controls.country.invalid&&(t.SenderForm.controls.country.dirty||t.SenderForm.controls.country.touched)||t.submitted&&t.s.country.errors)),e.xp6(1),e.Q6J("ngIf",t.SenderForm.controls.country.invalid&&(t.SenderForm.controls.country.dirty||t.SenderForm.controls.country.touched)||t.submitted&&t.s.country.errors)}}function fa(n,r){if(1&n&&(e.TgZ(0,"alert",92),e._UZ(1,"span",93),e.qZA()),2&n){const t=e.oxw();e.Q6J("type",t.alertType),e.xp6(1),e.Q6J("innerHTML",t.alertMsg,e.oJD)}}const ha=function(n,r){return{oid:n,pid:r}},Ca=function(n){return{hide:n}};let ba=(()=>{const r=class{constructor(i,o,s,a,g,y,B,D,Q){this.formBuilder=i,this.modalService=o,this.activatedRouter=s,this.router=a,this.orgService=g,this.ConsentPreferenceService=y,this.loading=B,this.dataService=D,this.titleService=Q,this.senderList=[],this.cities=[],this.items=[{label:"Active",icon:"pi pi-check"}],this.step=1,this.submitted=!1,this.isOpen=!1,this.verficationError=!1,this.senderID="",this.emailConfigList=[],this.modalConfig={backdrop:!0,keyboard:!1,ignoreBackdropClick:!0},this.lazyevent={},this.skLoading=!1,this.portal=q.N.portalPrefix,this.canShowModal=!1,this.configureSenderList=[{label:"SendGrid",name:"sendgrid"},{label:"SMTP",name:"smtp"}],this.senderSmtpList=[]}ngOnInit(){this.titleService.setTitle("Email Template - "+q.N.portalPrefix),this.dataService.isSubscriptionExistForConsent()||this.onGetPropsAndOrgId(),this.onInitForm(),this.onCreateSendForm()}closeModal(i){this.canShowModal=i}connectionSuccessStatus(i){this.isOpen=!0,this.alertMsg=i.msg,this.alertType=i.status}onGetSmtpList(){this.canShowModal=!1,this.loading.start(),this.orgService.getSmtpList(this.constructor.name,u.e.consentSolutionModule,this.currentManagedOrgID).subscribe(i=>{this.loading.stop(),this.senderSmtpList=i.response},i=>{this.loading.stop()})}onDropdownChange(i){"sendgrid"===i?this.openModal(this.sendgridTemplate):this.openSmtp(!0)}openSmtp(i){this.canShowModal=i}onGetPropsAndOrgId(){this.activatedRouter.queryParams.subscribe(i=>{let o=i.oid,s=i.pid;null!=this.currentManagedOrgID&&(this.currentManagedOrgID!=o||this.currrentManagedPropID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.currentManagedOrgID=o,this.currrentManagedPropID=s,this.onGetSenders(),this.getSentVerificationMail()})}onGetSenders(){this.loading.start(),(0,ys.D)({sendGrid:this.ConsentPreferenceService.GetSenders(this.constructor.name,u.e.consentSolutionModule,this.currentManagedOrgID,this.currrentManagedPropID),smtp:this.orgService.getSmtpList(this.constructor.name,u.e.consentSolutionModule,this.currentManagedOrgID)}).subscribe(i=>{this.loading.stop(),this.senderList=i.sendGrid.response,this.senderSmtpList=i.smtp.response,this.onGetEmailConfiguration()},i=>{this.loading.stop()})}onGetEmailConfiguration(){this.loading.start(),this.skLoading=!0,this.ConsentPreferenceService.GetEmailConfig(this.constructor.name,u.e.consentSolutionModule,this.currentManagedOrgID,this.currrentManagedPropID).subscribe(i=>{this.loading.stop();const o=[];for(const s of i.response){const a=this.search(s.SenderID,this.senderList);if(a)o.push({id:s.id,sender_name:a.from_name,sender_email:a.from_email,subject:s.subject,active:s.active,created_at:s.created_at});else{const g=this.search(s.SenderID,this.senderSmtpList);g&&o.push({id:s.id,sender_name:g.sender_name,sender_email:g.sender_email,subject:s.subject,active:s.active,created_at:s.created_at})}}this.emailConfigList=o,this.skLoading=!1,this.lazyevent.sortField="created_at",this.lazyevent.sortOrder=-1,this.emailConfigList=(0,C.cn)(this.lazyevent,this.emailConfigList)},i=>{this.loading.stop(),this.skLoading=!1})}onResentEmailVerification(){const i=this.search(this.SMTPConfigurationForm.value.sender,this.senderSmtpList),o=this.search(this.SMTPConfigurationForm.value.sender,this.senderList);(!o.hasOwnProperty("send_grid_id")||!i.hasOwnProperty("id"))&&(this.isOpen=!0,this.alertMsg="something went wrong",this.alertType="danger"),this.loading.start(),this.ConsentPreferenceService.ResentVerificationEmailToSender(this.constructor.name,u.e.consentSolutionModule,o.send_grid_id||i.id).subscribe(s=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=s.response,this.alertType="success"},s=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=s,this.alertType="danger"})}search(i,o){for(var s=0;s<o.length;s++)if(o[s].id===i)return o[s]}onInitForm(){this.SMTPConfigurationForm=this.formBuilder.group({sender:["",p.kI.required],subject:[this.portal+"Consent Verification",p.kI.required],body:['<p>Hey <strong>{full_name}</strong>,</p>\n<p><br></p>\n<p>Please verify your email.</p>\n<p><br></p>\n<p class="ql-align-center"><a href=\n   "{verification_url}" rel="noopener noreferrer" target="_blank"><strong>Verify email</strong></a></p>\n<p><br></p>\n',p.kI.required]})}onCreateSendForm(){const i="^[a-zA-Z]+$";this.SenderForm=this.formBuilder.group({name:["",p.kI.required],from_email:["",[p.kI.required,p.kI.pattern]],from_name:["",p.kI.required],reply_email:["",[p.kI.required,p.kI.pattern]],address:["",p.kI.required],city:["",[p.kI.required,p.kI.pattern(i)]],country:["",[p.kI.required,p.kI.pattern(i)]]})}get f(){return this.SMTPConfigurationForm.controls}get s(){return this.SenderForm.controls}onSubmit(){if(this.submitted=!0,this.SMTPConfigurationForm.invali
1d)return;const i={subject:this.SMTPConfigurationForm.value.subject,email_body:this.SMTPConfigurationForm.value.body};this.loading.start(),this.ConsentPreferenceService.CreateEmailConfig(this.constructor.name,u.e.consentSolutionModule,i,this.SMTPConfigurationForm.value.sender,this.currentManagedOrgID,this.currrentManagedPropID).subscribe(o=>{this.loading.stop(),200===o.status?(this.isOpen=!0,this.alertMsg=o.response,this.alertType="success",this.step=1,this.SMTPConfigurationForm.reset(),this.onGetEmailConfiguration()):this.verficationError=!0},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}onReset(){this.submitted=!1,this.SMTPConfigurationForm.reset()}openModal(i){this.modalRef=this.modalService.show(i,this.modalConfig)}onCreateSender(){this.submitted=!0,!this.SenderForm.invalid&&(this.loading.start(),this.ConsentPreferenceService.CreateSender(this.constructor.name,u.e.consentSolutionModule,this.SenderForm.value,this.currentManagedOrgID,this.currrentManagedPropID).subscribe(i=>{this.loading.stop(),i.hasOwnProperty("error")?this.senderErrorBody=JSON.parse(i.error.Body).errors:(this.modalRef.hide(),this.isOpen=!0,this.alertMsg="Sender Created Successfully",this.alertType="success",this.SenderForm.reset(),this.onGetSenders())},i=>{this.modalRef.hide(),this.loading.stop(),this.isOpen=!0,this.alertMsg=i,this.alertType="danger"}))}oncancel(){this.SenderForm.reset(),this.modalRef?.hide()}onActiveConfig(i){this.loading.start(),this.ConsentPreferenceService.ActiveEmailConfig(this.constructor.name,u.e.consentSolutionModule,i,this.currentManagedOrgID,this.currrentManagedPropID).subscribe(o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg="The Email Configuration is Active",this.alertType="success",this.onGetEmailConfiguration()},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}onDeleteConfig(i){this.loading.start(),this.ConsentPreferenceService.DeleteEmailConfig(this.constructor.name,u.e.consentSolutionModule,i,this.currentManagedOrgID,this.currrentManagedPropID).subscribe(o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg="The Email Configuration has been deleted",this.alertType="success",this.onGetEmailConfiguration()},o=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}onClickVerifiyEmail(i,o){if("sdk"==o){this.isOpen=!1;let a,s=i.target.checked;this.ConsentPreferenceService.SendVerificationEmail(this.constructor.name,u.e.consentSolutionModule,this.currrentManagedPropID,s,a).subscribe(g=>{s?(this.isOpen=!0,this.alertMsg="The email verification configuration for SDK is enabled.",this.alertType="success"):(this.isOpen=!0,this.alertMsg="The email verification configuration for SDK is disabled.",this.alertType="success")})}if("banner"==o){this.isOpen=!1;let s,a=i.target.checked;this.ConsentPreferenceService.SendVerificationEmail(this.constructor.name,u.e.consentSolutionModule,this.currrentManagedPropID,s,a).subscribe(g=>{a?(this.isOpen=!0,this.alertMsg="The email verification configuration for the banner is enabled",this.alertType="success"):(this.isOpen=!0,this.alertMsg="The email verification configuration for the banner is disabled.",this.alertType="success")})}}getSentVerificationMail(){this.ConsentPreferenceService.GetSentEmailVerification(this.constructor.name,u.e.consentSolutionModule,this.currrentManagedPropID).subscribe(i=>{i.response.PID==this.currrentManagedPropID&&(this.configverificationmailBanner=i.response.banner,this.configverificationmailSdk=i.response.sdk)})}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(p.QS),e.Y36(f.tT),e.Y36(b.gz),e.Y36(b.F0),e.Y36(As.M),e.Y36(d.e),e.Y36(_.LA),e.Y36(S.D),e.Y36(Z.Dx))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consent-preference-smtp-config"]],viewQuery:function(o,s){if(1&o&&e.Gf(Us,5),2&o){let a;e.iGM(a=e.CRH())&&(s.sendgridTemplate=a.first)}},decls:18,vars:11,consts:[[1,"d-sm-flex","align-items-center","justify-content-between","mg-b-5","mg-lg-b-10","mg-xl-b-15"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/consent-preference/consent-records",3,"queryParams"],[1,"breadcrumb-item","active"],["class","card bg-white pt-2 h-100",4,"ngIf"],["class","smtp-config card","appTheme","",4,"ngIf"],[3,"closeModal","connectionSuccessStatus","refreshSmtpList",4,"ngIf"],["template",""],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type",4,"ngIf"],[1,"card","bg-white","pt-2","h-100"],[1,"card-header","flexdiv"],[1,"float-left","pl-1"],[2,"font-size","14px","font-weight","normal","margin","0"],["for","configverificationmailSdk",1,"mr-1","mb-0"],["type","checkbox","name","configverificationmailSdk","i
1d","configverificationmailSdk","tooltip","Turning it on will send verification email for Consent receive \n        via SDK",3,"checked","ngModel","ngModelChange","click"],["for","configverificationmailBanner",1,"mr-1","mb-0"],["type","checkbox","name","configverificationmailBanner","id","configverificationmailBanner","tooltip","Turning it on will send verification email for Consent receive \n        via Banner",3,"checked","ngModel","ngModelChange","click"],["Class","btn btn-sm btn-primary","type","button",2,"float","right","font-size","13px","margin-top","0px",3,"click"],[1,"card-body"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",1,"email-template-table","p-paginator-alignment",3,"value","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","rowsPerPageOptions","loading"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[2,"text-align","center"],["pSortableColumn","created_at",2,"width","125px"],["field","created_at"],[4,"ngIf"],["ngbDropdown","",1,"d-inline-block"],["id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-light","bg-white","border-0",3,"tooltip"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 128 512"],["d","M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["class","btn btn-link","ngbDropdownItem","",3,"click",4,"ngIf"],["ngbDropdownItem","",1,"btn","btn-link",3,"click"],["type","button",1,"status-btn","btn","btn-success","btn-sm"],["type","button",1,"status-btn","btn","btn-danger","btn-sm"],["appTheme","",1,"smtp-config","card"],[3,"formGroup","ngSubmit"],[1,"form-group"],["for","exampleFormControlSelect1"],["aria-hidden","true",1,"tx-8","fa","fa-asterisk","tx-danger","ml-1",2,"vertical-align","super"],["id","exampleFormControlSelect1","formControlName","sender",1,"form-control",3,"ngClass"],["value",""],["label","SendGrid",4,"ngIf"],["label","SMTP",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],["class","col-md-12 p-0",4,"ngIf"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-link","float-right","tx-12",2,"color","var(--side-nav-org)",3,"matMenuTriggerFor"],["for","emailSubject"],["type","text","id","emailSubject","formControlName","subject","placeholder","Enter subject of email",1,"form-control",3,"ngClass"],["formControlName","body",3,"modules","ngClass"],["type","button",1,"btn","btn-secondary","mr-2",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"],["label","SendGrid"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["label","SMTP"],[1,"invalid-feedback"],[1,"col-md-12","p-0"],[1,"text-danger","tx-12","m-0"],["type","button",1,"btn","pl-0","btn-link","tx-12",3,"click"],["mat-menu-item","",3,"click"],[3,"closeModal","connectionSuccessStatus","refreshSmtpList"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"btn-close","close","pull-right",3,"click"],["aria-hidden","true",1,"visually-hidden"],["appTheme","",1,"modal-body"],[1,"list-style-none"],["class","alert-danger alert",4,"ngFor","ngForOf"],["for","name"],["type","text","id","name","formControlName","name","placeholder","Enter nick name Ex: John",1,"form-control",3,"ngClass"],["for","form_email"],["type","email","id","form_email","formControlName","from_email","pattern","[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$","placeholder","Enter sender email Ex: [email protected]",1,"form-control",3,"ngClass"],["for","from_name"],["type","text","id","from_name","formControlName","from_name","placeholder","Enter sender name Ex: Johnson",1,"form-control",3,"ngClass"],["for","reply_email"],["type","email","id","reply_email","formControlName","reply_email","pattern","[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$","placeholder","Enter reply email Ex: [email protected]",1,"form-control",3,"ngClass"],["for","address"],["type","text","id","address","formControlName","address","placeholder","Enter your address",1,"form-control",3,"ngClass"],["for","city"],["type","text","id","city","formControlName","city","placeholder","Enter your city",1,"form-control",3,"ngClass"],["for","country"],["type","text","id","country","formControlName","country","placeholder","Enter your country",1,"form-control",3,"ngClass"],["type","submit",1,"btn","float-right","btn-primary"],[1,"alert-danger","alert"],[1,"pl-3"],["dismissOnTimeout","5000",3,"type"],[3,"innerHTML"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"div")(2,"nav",1)(3,"ol",2)(4,"li",3),e._uU(5,"Privacy"),e.qZA(),e.TgZ(6,"li",3)(7,"a",4),e._uU(8,"Consent Preference"),e.qZA()(),e.TgZ(9,"li",5),e._uU(10,"Email Template"),e.qZA()()()()(),e.YNc(11,Ds,19,14,"div",6),e.YNc(12,Vs,35,20,"div",7),e.YNc(13,js,1,0,"app-smtp-configuration-modal",8),e.YNc(14,ma,54,30,"ng-template",null,9,e.W1O),e.TgZ(16,"div",10),e.YNc(17,fa,2,2,"alert",11),e.qZA()),2&o&&(e.xp6(7),e.Q6J("queryParams",e.WLB(6,ha,s.currentManagedOrgID,s.currrentManagedPropID)),e.xp6(4),e.Q6J("ngIf",1===s.step),e.xp6(1),e.Q6J("ngIf",2===s.step),e.xp6(1),e.Q6J("ngIf",s.canShowModal),e.xp6(3),e.Q6J("ngClass",e.VKq(9,Ca,!s.isOpen)),e.xp6(1),e.Q6J("ngIf",s.isOpen))},dependencies:[l.mk,l.sg,l.O5,b.rH,N.iA,w.jx,N.lQ,N.fz,p._Y,p.YN,p.Kr,p.Fj,p.Wl,p.EJ,p.JJ,p.JL,p.c5,p.On,p.sg,p.u,G.jt,G.iD,G.Vi,G.TH,ws.g6,k.i9,F.wx,x.mh,R.E,ve.Z,X.VK,X.OP,X.p6,l.uU],styles:[".smtp-config[_ngcontent-%COMP%]{margin:auto;width:35%}.alert-info[_ngcontent-%COMP%]{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success[_ngcontent-%COMP%]{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.status-btn[_ngcontent-%COMP%]{padding:4px 18px;font-size:10px}.flexdiv[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none!important}"]}),n})();var xa=c(49436),Za=c(17489);function va(n,r){1&n&&(e.TgZ(0,"tr",17)(1,"th"),e._uU(2,"Version"),e.qZA(),e.TgZ(3,"th",18),e._uU(4,"Publish Date "),e._UZ(5,"p-sortIcon",19),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Status"),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Action"),e.qZA()())}function Ta(n,r){1&n&&(e.TgZ(0,"span",23),e._uU(1,"Inactive"),e.qZA())}function ya(n,r){1&n&&(e.TgZ(0,"span",24),e._uU(1,"Active"),e.qZA())}function Aa(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",25)(1,"button",26),e.O4$(),e.TgZ(2,"svg",27),e._UZ(3,"path",28),e.qZA()(),e.kcU(),e.TgZ(4,"div",29)(5,"button",30),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,s=e.oxw();return e.KtG(s.onActiveConfig(o.id))}),e._uU(6,"Rollback"),e.qZA(),e.TgZ(7,"button",30),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,s=e.oxw();return e.KtG(s.onDeleteConfig(o.id))}),e._uU(8,"Delete"),e.qZA()()()}}function wa(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"td"),e.YNc(7,Ta,2,0,"span",20),e.YNc(8,ya,2,0,"span",21),e.qZA(),e.TgZ(9,"td"),e.YNc(10,Aa,9,0,"div",22),e.qZA()()),2&n){const t=r.$implicit;e.xp6(2),e.hij("Version - ",t.version_count,""),e.xp6(2),e.Oqu(e.l
1cZ(5,5,t.created_at)),e.xp6(3),e.Q6J("ngIf",!t.active),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(2),e.Q6J("ngIf",!t.active)}}function Ua(n,r){1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2," No records found "),e.qZA()()),2&n&&(e.xp6(1),e.uIk("colspan",4))}function qa(n,r){if(1&n&&(e.TgZ(0,"alert",31),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("type",t.alertType),e.xp6(1),e.Oqu(t.alertMsg)}}const Te=function(n,r){return{oid:n,pid:r}},ka=function(){return[10,20,30]};let Sa=(()=>{const r=class{constructor(i,o,s,a){this.activatedRouter=i,this.router=o,this.newsLetterService=s,this.titleService=a,this.BannerHistoryList=[],this.isEdit=!1,this.isOpen=!1,this.isLoading=!1,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1}ngOnInit(){this.titleService.setTitle("Subscription Consent Banner - Publish History"),this.activatedRouter.queryParams.subscribe(i=>{this.oID=i.oid,this.pID=i.pid}),this.currentManagedOrgID=this.oID,this.currrentManagedPropID=this.pID,this.onGetBannerHistory()}onGetBannerHistory(){this.isLoading=!0,this.newsLetterService.GetConsentPreferenceBannerHistory(this.constructor.name,u.e.cookieBannerModule,this.oID,this.pID).subscribe(i=>{this.BannerHistoryList=i.response,this.BannerHistoryList=(0,Za.orderBy)(this.BannerHistoryList,["created_at"],["desc"]),this.isLoading=!1},i=>{this.isOpen=!0,this.alertMsg=i,this.alertType="danger",this.isLoading=!1})}onActiveConfig(i){this.newsLetterService.ActiveConsentPreferenceBannerHistory(this.constructor.name,u.e.cookieBannerModule,this.pID,this.oID,i).subscribe(o=>{this.onGetBannerHistory(),this.isOpen=!0,this.alertMsg="Configuration Activated",this.alertType="success"},o=>{this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}onDeleteConfig(i){this.newsLetterService.DeleteConsentPreferenceBannerHistory(this.constructor.name,u.e.cookieBannerModule,this.pID,this.oID,i).subscribe(o=>{this.isOpen=!0,this.alertMsg="Configuration Deleted",this.alertType="success",this.onGetBannerHistory()},o=>{this.isOpen=!0,this.alertMsg=o,this.alertType="danger"})}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(b.gz),e.Y36(b.F0),e.Y36(te.M),e.Y36(Z.Dx))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-subscription-consent-banner-publishhistory"]],decls:25,vars:19,consts:[[1,"col-md-9","ml-4"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/dashboard/consent-preference",3,"queryParams"],[1,"breadcrumb-item","active"],["routerLink","/consent-preference/subscription-consent-banner-configuration",3,"queryParams"],[1,"card"],[1,"pl-4","pt-3"],[1,"card-body"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",1,"bannner-history-table","p-paginator-alignment",3,"value","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","loading","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"col-sm-5","mt-3","mr-0","float-right","flotingdiv"],["dismissOnTimeout","5000",3,"type",4,"ngIf"],[2,"text-align","center"],["pSortableColumn","created_at"],["field","created_at"],["class","product-badge status-outofstock",4,"ngIf"],["class","product-badge status-instock",4,"ngIf"],["ngbDropdown","","class","d-inline-block",4,"ngIf"],[1,"product-badge","status-outofstock"],[1,"product-badge","status-instock"],["ngbDropdown","",1,"d-inline-block"],["tooltip"," Click to delete or roll back the version","id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-light","bg-white","border-0"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 128 512"],["d","M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem","",1,"btn","btn-link",3,"click"],["dismissOnTimeout","5000",3,"type"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),e._uU(6,"Privacy"),e.qZA(),e.TgZ(7,"li",4)(8,"a",5),e._uU(9,"Consent Preference"),e.qZA()(),e.TgZ(10,"li",6)(11,"a",7),e._uU(12,"Subscription Consent Banner"),e.qZA()(),e.TgZ(13,"li",6),e._uU(14,"Publish History"),e.qZA()()()()()(),e.TgZ(15,"div",8)(16,"h4",9),e._uU(17,"Publish history"),e.qZA(),e.TgZ(18,"div",10)(19,"p-table",11),e.YNc(20,va,
110,0,"ng-template",12),e.YNc(21,wa,11,7,"ng-template",13),e.YNc(22,Ua,3,1,"ng-template",14),e.qZA()()(),e.TgZ(23,"div",15),e.YNc(24,qa,2,2,"alert",16),e.qZA()),2&o&&(e.xp6(8),e.Q6J("queryParams",e.WLB(12,Te,s.oID,s.pID)),e.xp6(3),e.Q6J("queryParams",e.WLB(15,Te,s.oID,s.pID)),e.xp6(8),e.Q6J("value",s.BannerHistoryList)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",s.BannerHistoryList.length)("loading",s.isLoading)("rowsPerPageOptions",e.DdM(18,ka)),e.xp6(5),e.Q6J("ngIf",s.isOpen))},dependencies:[l.O5,b.rH,N.iA,w.jx,N.lQ,N.fz,G.jt,G.iD,G.Vi,G.TH,k.i9,F.wx,l.uU],styles:[".product-badge[_ngcontent-%COMP%]{border-radius:2px;padding:.25em .5rem;text-transform:uppercase;font-weight:700;font-size:10px;letter-spacing:.3px}.product-badge.status-instock[_ngcontent-%COMP%]{background:#c8e6c9;color:#256029}.product-badge.status-lowstock[_ngcontent-%COMP%]{background:#feedaf;color:#8a5340}.product-badge.status-outofstock[_ngcontent-%COMP%]{background:#ffcdd2;color:#c63737}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none!important}"]}),n})();var Pa=c(43549),Ia=c(23501),Na=c(55466),Ma=c(91742),Da=c(79723),Fa=c(34466),Oa=c(22962),ye=c(87545),La=c(80529);function Ja(n,r){1&n&&(e.TgZ(0,"span"),e._uU(1,"Filter by Date"),e.qZA())}function Ba(n,r){1&n&&(e.TgZ(0,"span",36),e._UZ(1,"span",37),e._uU(2," Filter Applied "),e.qZA())}function Qa(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",38),e.NdJ("click",function(o){return o.stopPropagation()}),e.TgZ(1,"div",39)(2,"div",40)(3,"label",41),e._uU(4,"From Date"),e.qZA(),e.TgZ(5,"div",42)(6,"span",43),e.O4$(),e.TgZ(7,"svg",44),e._UZ(8,"rect",45)(9,"path",46)(10,"path",47),e.qZA()(),e.kcU(),e.TgZ(11,"input",48),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.fromDate=o)}),e.qZA()()(),e.TgZ(12,"div",40)(13,"label",49),e._uU(14,"To Date"),e.qZA(),e.TgZ(15,"div",50)(16,"span",43),e.O4$(),e.TgZ(17,"svg",44),e._UZ(18,"rect",45)(19,"path",46)(20,"path",47),e.qZA()(),e.kcU(),e.TgZ(21,"input",51),e.NdJ("ngModelChange",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.toDate=o)}),e.qZA()()(),e.TgZ(22,"div",52)(23,"button",53),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.clearFilter())}),e._uU(24,"Clear"),e.qZA(),e.TgZ(25,"button",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.applyFilter())}),e._uU(26,"Apply"),e.qZA()()()()}if(2&n){const t=e.oxw();e.xp6(11),e.Q6J("ngModel",t.fromDate),e.xp6(10),e.Q6J("ngModel",t.toDate)}}function Ea(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",55),e.NdJ("click",function(o){e.CHM(t);const s=e.oxw();return e.KtG(s.onBackdropClick(o))}),e.qZA()}}const Ae=function(n,r){return{"pill-green":n,"pill-red":r}};function Ya(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td",88)(2,"span",89),e._uU(3),e.qZA()(),e.TgZ(4,"td",62),e._uU(5),e.qZA(),e.TgZ(6,"td",13),e._uU(7),e.ALo(8,"date"),e.qZA(),e.TgZ(9,"td")(10,"span",64),e._uU(11),e.qZA()()()),2&n){const t=r.$implicit;e.xp6(2),e.Q6J("ngClass",e.WLB(8,Ae,"Active"===(null==t?null:t.status),"Withdrawn"===(null==t?null:t.status)||"NoConsent"===(null==t?null:t.status))),e.xp6(1),e.Oqu(null==t?null:t.status),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.hij(" ",e.xi3(8,5,t.updated_at,"medium")," "),e.xp6(4),e.Oqu(t.purpose_id)}}function Ha(n,r){1&n&&(e.TgZ(0,"tr")(1,"td",90),e._uU(2," No purposes found. "),e.qZA()())}function Ga(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"span",94),e._uU(2),e.qZA(),e.BQk()),2&n){const t=r.$implicit;e.xp6(1),e.Q6J("ngClass",e.WLB(2,Ae,!0===t.value,!1===t.value)),e.xp6(1),e.hij(" ",t.name," ")}}function Ra(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Ga,3,5,"ng-container",33),e.BQk()),2&n){const t=e.oxw().$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.filteredChannels(t.channel))}}function Ka(n,r){1&n&&e._uU(0,"\u2014")}function Va(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"td",62),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.YNc(4,Ra,2,1,"ng-container",91),e.YNc(5,Ka,1,0,"ng-template",null,92,e.W1O),e.qZA(),e.TgZ(7,"td",13),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"td")(11,"span",93),e._uU(12),e.qZA()()()),2&n){const t=r.$implicit,i=e.MAs(6),o=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",o.filteredChannels(t.channel).length)("ngIfElse",i),e.xp6(4),e.hij(" ",e.xi3(9,5,t.updated_at,"medium")," "),e.xp6(4),e.Oqu(t.preference_id)}}function ja(n,r){1&n&&(e.TgZ(0,"tr")(1,"td",95),e._uU(2," No preferences found. "),e.qZA()())}function za(n,r){if(1&n&&(e.TgZ(0,"div",73)(1,"div",74)(2,"div",75),e._UZ(3,"div",76),e.TgZ(4,"div",77)(5,"section",78)(6,"div",79)(7,"div",80),e._UZ(8,"span",81),e._uU(9,"Purposes "),e.qZA(),e.TgZ(10,"div",82)(11,"span",13),e._uU(12),e.qZA()()(),e.TgZ(13,"div",83)(14,"div",84)(15,"table",85)(16,"thead")(17,"tr")(18,"th"),e._uU(19,"Status"),e.qZA(),e.TgZ(20,"th"),e._uU(21,"Name"),e.qZA(),e.TgZ(22,"th"),e._uU(23,"Updated"),e.qZA(),e.TgZ(24,"th"),e._uU(25,"Purpose ID"),e.qZA()()(),e.TgZ(26,"tbody"),e.YNc(27,Ya,12,11,"tr",33),e.YNc(28,Ha,3,0,"tr",17),e.qZA()()()()(),e.TgZ(29,"section",86)(30,"div",79)(31,"div",80),e._UZ(32,"span",87),e._uU(33," Communication Preferences "),e.qZA(),e.TgZ(34,"div",82)(35,"span",13),e._uU(36),e.qZA()()(),e.TgZ(37,"div",83)(38,"div",84)(39,"table",85)(40,"thead")(41,"tr")(42,"th"),e._uU(43,"Name"),e.qZA(),e.TgZ(44,"th"),e._uU(45,"Channels"),e.qZA(),e.TgZ(46,"th"),e._uU(47,"Updated"),e.qZA(),e.TgZ(48,"th"),e._uU(49,"Preference ID"),e.qZA()()(),e.TgZ(50,"tbody"),e.YNc(51,Va,13,8,"tr",33),e.YNc(52,ja,3,0,"tr",17),e.qZA()()()()()()()()()),2&n){const t=e.oxw().$implicit;e.uIk("id","row-"+t.id),e.xp6(12),e.hij("",(null==t.consent||null==t.consent.purposes?null:t.consent.purposes.length)||0," items"),e.xp6(15),e.Q6J("ngForOf",null==t.consent?null:t.consent.purposes),e.xp6(1),e.Q6J("ngIf",!(null!=t.consent&&null!=t.consent.purposes&&t.consent.purposes.length)),e.xp6(8),e.hij("",(null==t.consent||null==t.consent.communication_preferences?null:t.consent.communication_preferences.length)||0," items"),e.xp6(15),e.Q6J("ngForOf",null==t.consent?null:t.consent.communication_preferences),e.xp6(1),e.Q6J("ngIf",!(null!=t.consent&&null!=t.consent.communication_preferences&&t.consent.communication_preferences.length))}}function $a(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",56)(2,"div",57),e._uU(3),e.qZA(),e.TgZ(4,"div",58)(5,"button",59),e.NdJ("click",function(){const s=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.toggle(s.id))}),e._UZ(6,"span",60),e.qZA(),e.TgZ(7,"div",61)(8,"div",62),e._uU(9),e.ALo(10,"date"),e.qZA(),e.TgZ(11,"div",13),e._uU(12),e.ALo(13,"date"),e.qZA()()(),e.TgZ(14,"div",63)(15,"span",64),e._uU(16),e.qZA()(),e.TgZ(17,"div",65)(18,"span",66),e._uU(19),e.qZA()(),e.TgZ(20,"div",67)(21,"span",68),e._uU(22),e.qZA()(),e.TgZ(23,"div",69)(24,"span",70),e._uU(25),e.qZA()(),e.TgZ(26,"div",71)(27,"span",70),e._uU(28),e.qZA()()(),e.YNc(29,za,53,7,"div",72),e.BQk()}if(2&n){const t=r.$implicit,i=r.index,o=e.oxw();e.xp6(1),e.uIk("data-index",i+1),e.xp6(2),e.Oqu(i+1),e.xp6(2),e.uIk("aria-expanded",o.isExpanded(t.id))("aria-controls","row-"+t.id),e.xp6(1),e.ekj("open",o.isExpanded(t.id)),e.xp6(3),e.hij(" ",e.xi3(10,14,t.created_at,"MMM d, y")," "),e.xp6(3),e.hij(" ",e.xi3(13,17,t.created_at,"
1shortTime")," "),e.xp6(4),e.Oqu(o.shortId(t.consent_id,18)),e.xp6(3),e.Oqu(t.action||"CREATED"),e.xp6(3),e.Oqu(null!=t.consent&&t.consent.verified?"Yes":"No"),e.xp6(3),e.Oqu((null==t.consent||null==t.consent.purposes?null:t.consent.purposes.length)||0),e.xp6(3),e.Oqu((null==t.consent||null==t.consent.communication_preferences?null:t.consent.communication_preferences.length)||0),e.xp6(1),e.Q6J("ngIf",o.isExpanded(t.id))}}function Wa(n,r){1&n&&(e.TgZ(0,"div",96),e._uU(1," No consent history found. "),e.qZA())}function Xa(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",101),e.NdJ("click",function(){const s=e.CHM(t).index,a=e.oxw(2);return e.KtG(a.goToPage(s+1))}),e._uU(1),e.qZA()}if(2&n){const t=r.index,i=e.oxw(2);e.ekj("active",i.currentPage===t+1),e.xp6(1),e.hij(" ",t+1," ")}}const el=function(){return[]};function tl(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",97)(1,"button",98),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goToPage(o.currentPage-1))}),e._uU(2," \u2039 Prev "),e.qZA(),e.TgZ(3,"div",99),e.YNc(4,Xa,2,3,"button",100),e.qZA(),e.TgZ(5,"button",98),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goToPage(o.currentPage+1))}),e._uU(6," Next \u203a "),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("disabled",1===t.currentPage),e.xp6(3),e.Q6J("ngForOf",e.DdM(3,el).constructor(t.totalPages)),e.xp6(1),e.Q6J("disabled",t.currentPage===t.totalPages)}}const nl=function(n,r){return{oid:n,pid:r}},ol=[{path:"consent-records",component:_t},{path:"consent-records/details/:id",component:un},{path:"consent-records/details/:id/history",component:(()=>{const r=class{constructor(i,o){this.activatedroute=i,this.httpClient=o,this.email="",this.rows=[],this.viewRows=[],this.expanded=new Set,this.filterOpen=!1,this.fromDate="",this.toDate="",this.isFilterApplied=!1,this.currentPage=1,this.limit=10,this.totalPages=1,this.totalRecords=0}ngOnInit(){this.activatedroute.queryParamMap.pipe((0,ye.w)(i=>(this.oid=i.get("oid"),this.pid=i.get("pid"),this.activatedroute.params)),(0,ye.w)(i=>(this.consentId=i.id,this.getHistory(this.consentId,this.currentPage)))).subscribe(i=>{this.processResponse(i)})}safeDecode(i,o=5){if(!i)return"";let s=i,a=s;for(let g=0;g<o;g++){try{a=decodeURIComponent(a)}catch{break}if(a===s)break;s=a}return s}getHistory(i,o){return this.httpClient.get(`${q.N.apiUrlV2}/consent-management/consent-preference-history/${this.pid}/${i}?page=${o}&limit=${this.limit}`)}processResponse(i){const o=i?.data??[];this.rows=o.sort((g,y)=>new Date(y.created_at).getTime()-new Date(g.created_at).getTime());const s=this.rows[0],a=s?.consent?.identity?.find(g=>"email"===(g.name||"").toLowerCase())?.value||"";this.email=a||s?.email||"",this.totalPages=i.totalPages||1,this.totalRecords=i.total||o.length,this.applyFilter(!1)}goToPage(i){i<1||i>this.totalPages||(this.currentPage=i,this.getHistory(this.consentId,this.currentPage).subscribe(o=>this.processResponse(o)))}get showingText(){const i=this.viewRows.length;return`Showing ${i} consent record${1===i?"":"s"} (Page ${this.currentPage} of ${this.totalPages})`}toggle(i){this.expanded.has(i)?this.expanded.delete(i):this.expanded.add(i)}isExpanded(i){return this.expanded.has(i)}filteredChannels(i=[]){return(i||[]).filter(o=>!!o.name&&o.name.trim().length>0)}shortId(i,o=18){return i?i.length>o?`${i.slice(0,o)}\u2026`:i:""}toggleFilter(i){this.filterOpen="boolean"==typeof i?i:!this.filterOpen}clearFilter(){this.fromDate="",this.toDate="",this.isFilterApplied=!1,this.applyFilter()}applyFilter(i=!0){const o=this.fromDate?new Date(this.fromDate+"T00:00:00Z").getTime():-1/0,s=this.toDate?new Date(this.toDate+"T23:59:59Z").getTime():1/0;this.viewRows=this.rows.filter(a=>{const g=new Date(a.created_at).getTime();return g>=o&&g<=s}),this.isFilterApplied=!(!this.fromDate&&!this.toDate),i&&(this.filterOpen=!1)}onBackdropClick(i){const o=i.target;o&&o.classList.contains("popover-backdrop")&&(this.filterOpen=!1)}};let n=r;return r.\u0275fac=function(o){return new(o||r)(e.Y36(b.gz),e.Y36(La.eN))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-consent-history"]],decls:54,vars:16,consts:[[1,"page"],["appTheme","",1,"ml-2","bb-crum","d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",2,"margin-left","2px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/consent-preference/consent-records",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"hero"],[1,"hero-left"],[1,"hero-title"],[1,"hero-meta"],[1,"meta-line"],[1,"email-pill"],[1,"muted"],[1,"hero-right"],["aria-haspopup","dialog",1,"btn-filter",3,"click"],["aria-hidden","true",1,"icon-filter"],[4,"ngIf"],["class","filter-applied-text",4,"ngIf"],["class","filter-popover",3,"click",4,"ngIf"],["class","filter-popover-backdrop",3,"click",4,"ngIf"],[1,"card","main-card"],[1,"table-head-clean"],[1,"head-row"],[1,"head-cell","head-order"],[1,"head-cell","head-created"],[1,"head-cell","head-consent"],[1,"head-cell","head-action"],[1,"head-cell","head-verified"],[1,"head-cell","head-purposes","center"],[1,"head-cell","head-prefs","center"],[1,"table-wrap"],[1,"table-body"],[4,"ngFor","ngForOf"],["class","empty-muted",4,"ngIf"],["class","pagination-bar",4,"ngIf"],[1,"filter-applied-text"],[1,"dot-green"],[1,"filter-popover",3,"click"],["role","dialog","aria-modal","true","aria-label","Filter by date",1,"filter-popover-inner"],[1,"filter-row"],["for","fromDate",1,"filter-label"],[1,"date-input-wrap","focus-purple"],["aria-hidden","true",1,"icon-cal"],["width","18","height","18","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["x","3","y","5","width","18","height","16","rx","2","stroke","#6B7280","stroke-width","1.25","fill","none"],["d","M16 3v4M8 3v4","stroke","#6B7280","stroke-width","1.25","stroke-linecap","round","stroke-linejoin","round"],["d","M7 11h10","stroke","#6B7280","stroke-width","1.25","stroke-linecap","round"],["id","fromDate","type","date",1,"date-input",3,"ngModel","ngModelChange"],["for","toDate",1,"filter-label"],[1,"date-input-wrap"],["id","toDate","type","date",1,"date-input",3,"ngModel","ngModelChange"],[1,"filter-actions"],[1,"btn-clear",3,"click"],[1,"btn-apply",3,"click"],[1,"filter-popover-backdrop",3,"click"],[1,"row-main","flex-row"],[1,"td","td-order"],[1,"td","td-created"],["aria-label","Toggle details",1,"chev-small",3,"click"],[1,"chev"],[1,"stack"],[1,"strong"],[1,"td","td-consent"],[1,"code-pill","purple-pill","mono"],[1,"td","td-action"],[1,"pill-action"],[1,"td","td-verified"],[1,"pill","pill-verified"],[1,"td","td-purposes","center"],[1,"count-bubble"],[1,"td","td-prefs","center"],["class","row-detail",4,"ngIf"],[1,"row-detail"],[1,"detail-cell"],[1,"detail-inner"],[1,"accent-column"],[1,"stacked-panels"],[1,"panel","panel-purposes","full"],[1,"panel-head"],[1,"panel-title"],[1,"panel-accent"],[1,"panel-count"],[1,"panel-body"],[1,"inner-scroll"],[1,"subtable"],[1,"panel","panel-prefs","full"],[1,"panel-accent","panel-accent-blue"],[1,"nowrap"],[1,"badge","badge-good",3,"ngClass"],["colspan","4",1,"empty","muted"],[4,"ngIf","ngIfElse"],["noCh",""],[1,"code-pill","blue-pill","mono"],[1,"pill",3,"ngClass"],["colspan","6",1,"empty","muted"],[1,"empty-muted"],[1,"pagination-bar"],[1,"page-btn",3,"disabled","click"],[1,"page-numbers"],["class","page-num",3,"active","click",4,"ngFor","ngForOf"],[1,"page-num",3,"click"]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),e._uU(6,"Privacy"),e.qZA(),e.TgZ(7,"li",4)(8,"a",5),e._uU(9,"Consent Record"),e.qZA()(),e.TgZ(10,"li",6),e._uU(11,"Consent History"),e.qZA()()()()(),e.TgZ(12,"header",7)(13,"div",8)(14,"h1",9),e._uU(15,"Consent History"),e.qZA(),e.TgZ(16,"div",10)(17,"div",11),e._uU(18," Consent Id: "),e.TgZ(19,"span",12),e._uU(20),e.qZA()(),e.TgZ(21,"div",11)(22,"span",13),e._uU(23),e.qZA()()()(),e.TgZ(24,"div",14)(25,"button",15),e.NdJ("click",function(){return s.toggleFilter()}),e.TgZ(26,"span",16),e._uU(27,"\u{1f50e}"),e.qZA(),e.YNc(28,Ja,2,0,"span",17),e.YNc(29,Ba,3,0,"span",18),e.qZA()()(),e.YNc(30,Qa,27,2,"div",19),e.YNc(31,Ea,1,0,"div",20),e.TgZ(32,"div",21)(33,"div",22)(34,"div",23)(35,"div",24),e._uU(36,"#"),e.qZA(),e.TgZ(37,"div",25),e._uU(38,"Created"),e.qZA(),e.TgZ(39,"div",26),e._uU(40,"Consent ID"),e.qZA(),e.TgZ(41,"div",27),e._uU(42,"Action"),e.qZA(),e.TgZ(43,"div",28),e._uU(44,"Verified"),e.qZA(),e.TgZ(45,"div",29),e._uU(46,"Purposes"),e.qZA(),e.TgZ(47,"div",30),e._uU(48,"Preferences"),e.qZA()()(),e.TgZ(49,"div",31)(50,"div",32),e.YNc(51,$a,30,20,"ng-container",33),e.YNc(52,Wa,2,0,"div",34),e.qZA()(),e.YNc(53,tl,7,4,"div",35),e.qZA()()),2&o&&(e.xp6(8),e.Q6J("queryParams",e.WLB(13,nl,s.oid,s.pid)),e.xp6(12),e.Oqu(s.consentId||"\u2014"),e.xp6(3),e.Oqu(s.showingText),e.xp6(2),e.ekj("filter-active",s.isFilterApplied),e.uIk("aria-expanded",s.filterOpen),e.xp6(3),e.Q6J("ngIf",!s.isFilterApplied),e.xp6(1),e.Q6J("ngIf",s.isFilterApplied),e.xp6(1),e.Q6J("ngIf",s.filterOpen),e.xp6(1),e.Q6J("ngIf",s.filterOpen),e.xp6(20
1),e.Q6J("ngForOf",s.viewRows),e.xp6(1),e.Q6J("ngIf",!s.viewRows.length),e.xp6(1),e.Q6J("ngIf",s.totalPages>1))},dependencies:[l.mk,l.sg,l.O5,b.rH,p.Fj,p.JJ,p.On,x.mh,R.E,l.uU],styles:["[_ngcontent-%COMP%]:root{--purple-600: #7c3aed;--purple-200: #ddd6fe;--purple-30: rgba(124, 58, 237, .06);--muted: #64748b;--green: #22c55e;--blue: #06b6d4;--border-soft: rgba(15, 23, 42, .06);--border-strong: rgba(15, 23, 42, .12);--shadow-soft: 0 4px 12px rgba(15, 23, 42, .04);--shadow-mid: 0 8px 24px rgba(15, 23, 42, .08);--shadow-strong: 0 16px 48px rgba(15, 23, 42, .1);--panel-shadow: 0 12px 30px rgba(15, 23, 42, .06)}*[_ngcontent-%COMP%]{box-sizing:border-box}.page[_ngcontent-%COMP%]{padding:32px;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;color:#0f172a;background:linear-gradient(180deg,#f9f9ff,#ffffff)}.hero[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(145deg,#ffffff,#f7f4ff);border:1px solid var(--border-soft);border-radius:16px;padding:28px 32px;box-shadow:var(--shadow-mid);margin-bottom:28px}.hero-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.hero-title[_ngcontent-%COMP%]{font-size:42px;font-weight:800;margin:0;color:#0f172a}.hero-meta[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center;margin-top:6px}.email-pill[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f8f6ff,#ffffff);border:1px solid var(--purple-30);padding:6px 12px;border-radius:16px;font-weight:600;color:#0f172a;box-shadow:inset 0 0 6px #7c3aed0d}.status-dot-hero[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px #22c55e14}.hero-right[_ngcontent-%COMP%]{display:flex;align-items:center}.btn-filter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;background:white;border:1px solid var(--border-soft);border-radius:12px;padding:10px 16px;box-shadow:var(--shadow-soft);cursor:pointer;transition:all .2s ease}.btn-filter[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-mid);background:linear-gradient(90deg,#fafaff,#ffffff)}.btn[_ngcontent-%COMP%]{border-radius:10px;padding:8px 12px;border:1px solid rgba(15,23,42,.06);background:#fff;cursor:pointer}.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(90deg,#06b6d4,#00b3e6);color:#fff;border:none;box-shadow:0 8px 20px #06b6e61f}.btn-ghost[_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(15,23,42,.04)}.filter-popover[_ngcontent-%COMP%]{position:absolute;right:26px;top:110px;z-index:80;display:block}.filter-popover-inner[_ngcontent-%COMP%]{width:320px;border-radius:14px;background:#ffffff;padding:18px;box-shadow:0 6px 18px #0f172a14,0 18px 40px #7c3aed0f;border:1px solid rgba(15,23,42,.06);overflow:hidden}.filter-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.filter-label[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#111827}.date-input-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:linear-gradient(180deg,#fbfbfd,#ffffff);border:1px solid rgba(15,23,42,.04);transition:box-shadow .14s ease,border-color .14s ease}.date-input-wrap.focus-purple[_ngcontent-%COMP%], .date-input-wrap[_ngcontent-%COMP%]:focus-within{border-color:#7c3aed47;box-shadow:0 6px 20px #7c3aed0f,0 0 0 6px #7c3aed0f}.icon-cal[_ngcontent-%COMP%]{display:inline-grid;place-items:center;width:36px;height:36px;color:#6b7280;background:linear-gradient(180deg,#ffffff,#fbfbff);border-radius:10px;border:1px solid rgba(15,23,42,.04);font-size:16px}.date-input[_ngcontent-%COMP%]{appearance:none;border:none;outline:none;font-size:15px;color:#111827;background:transparent;width:100%;padding:4px 6px}.date-input[_ngcontent-%COMP%]::-webkit-clear-button, .date-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .date-input[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}.filter-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:12px;margin-top:6px}.btn-clear[_ngcontent-%COMP%]{flex:1;background:#ffffff;border:1px solid rgba(15,23,42,.06);padding:10px 14px;border-radius:12px;font-weight:700;color:#111827;cursor:pointer}.btn-clear[_ngcontent-%COMP%]:hover{background:#faf9ff;box-shadow:0 6px 18px #0f172a0a}.btn-apply[_ngcontent-%COMP%]{flex:1;background:linear-gradient(90deg,#7c3aed,#6f3be6);color:#fff;border:none;padding:10px 14px;border-radius:12px;font-weight:800;cursor:pointer;box-shadow:0 10px 28px #7c3aed2e}.btn-apply[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 14px 34px #7c3aed38}.filter-popover-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:70;background:transparent}.main-card[_ngcontent-%COMP%]{border-radius:18px;padding:20px;background:linear-gradient(180deg,#ffffff,#f9f9ff);border:1px solid var(--border-strong);box-shadow:0 0 0 1px #fff9,0 10px 25px #7c3aed0d,0 25px 50px #0f172a0f}.table-head-clean[_ngcontent-%COMP%]{margin-bottom:10px}.head-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:12px;background:linear-gradient(90deg,#faf9ff,#f7faff);border:1px solid var(--border-soft);box-shadow:inset 0 1px #ffffffb3,var(--shadow-soft)}.head-cell[_ngcontent-%COMP%]{font-size:14px;color:#0f172a;font-weight:700;opacity:.95}.head-order[_ngcontent-%COMP%]{width:52px;text-align:center}.head-created[_ngcontent-%COMP%]{flex:1.4;min-width:160px}
1.head-consent[_ngcontent-%COMP%]{flex:1.6;min-width:220px}.head-action[_ngcontent-%COMP%]{flex:1;min-width:120px}.head-verified[_ngcontent-%COMP%], .head-optout[_ngcontent-%COMP%]{flex:.8;min-width:90px}.head-purposes[_ngcontent-%COMP%], .head-prefs[_ngcontent-%COMP%]{flex:.6;min-width:90px;text-align:center}.table-wrap[_ngcontent-%COMP%]{overflow:auto;margin-top:6px}.table-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px}.flex-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;border-radius:14px;border:1px solid var(--border-soft);background:linear-gradient(180deg,#ffffff,#fafaff);box-shadow:var(--shadow-soft);padding:16px 20px;transition:all .18s}.flex-row[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-mid);transform:translateY(-2px)}.td[_ngcontent-%COMP%]{padding:6px 12px}.td-order[_ngcontent-%COMP%]{width:52px;text-align:center;font-weight:700;color:var(--muted)}.td-created[_ngcontent-%COMP%]{flex:1.4;display:flex;gap:10px;align-items:center;min-width:160px}.td-consent[_ngcontent-%COMP%]{flex:1.6;min-width:220px}.td-action[_ngcontent-%COMP%]{flex:1;min-width:120px}.td-verified[_ngcontent-%COMP%], .td-optout[_ngcontent-%COMP%]{flex:.8;min-width:90px}.td-purposes[_ngcontent-%COMP%], .td-prefs[_ngcontent-%COMP%]{flex:.6;min-width:90px;text-align:center}.chev-small[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid var(--border-soft);cursor:pointer;box-shadow:inset 0 0 6px #0f172a08}.chev-small[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-soft);background:linear-gradient(180deg,#fff,#faf9ff)}.chev[_ngcontent-%COMP%]{width:8px;height:8px;border-right:2px solid #0f172a;border-bottom:2px solid #0f172a;transform:rotate(-45deg);transition:transform .18s ease}.chev.open[_ngcontent-%COMP%]{transform:rotate(45deg)}.purple-pill[_ngcontent-%COMP%]{background:linear-gradient(90deg,#faf7ff,#f6f3ff);border:1px solid rgba(124,58,237,.08);color:var(--purple-600);border-radius:20px;padding:8px 14px;font-weight:700;box-shadow:inset 0 0 4px #7c3aed0d}.pill-action[_ngcontent-%COMP%]{background:#16bf5e;color:#fff;border-radius:20px;padding:8px 14px;font-weight:600}.pill-verified[_ngcontent-%COMP%]{padding:6px 10px;border-radius:14px;border:1px solid rgba(15,23,42,.04);background:#fff}.pill-optout[_ngcontent-%COMP%]{padding:8px 12px;border-radius:999px;background:var(--green);color:#fff;font-weight:700}.count-bubble[_ngcontent-%COMP%]{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:600;color:#fff;background:#16bf5e}.row-detail[_ngcontent-%COMP%]{width:100%}.detail-cell[_ngcontent-%COMP%]{padding:22px 26px;position:relative}.accent-column[_ngcontent-%COMP%]{position:absolute;left:12px;top:22px;bottom:22px;width:10px;background:linear-gradient(180deg,#7c3aed,#5b21b6);border-radius:6px;box-shadow:0 8px 28px #7c3aed14}.stacked-panels[_ngcontent-%COMP%]{margin-left:48px;display:flex;flex-direction:column;gap:18px}.panel[_ngcontent-%COMP%]{background:white;border-radius:12px;border:1px solid rgba(124,58,237,.04);box-shadow:var(--panel-shadow);overflow:hidden}.panel-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid rgba(124,58,237,.02)}.panel-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-weight:700}.panel-accent[_ngcontent-%COMP%]{width:6px;height:24px;border-radius:3px;background:linear-gradient(180deg,#7c3aed,#a78bfa)}.panel-accent-blue[_ngcontent-%COMP%]{background:linear-gradient(180deg,#06b6d4,#0ea5e9)}.panel-count[_ngcontent-%COMP%]{color:var(--muted);font-weight:700}.panel-body[_ngcontent-%COMP%]{padding:12px;overflow:auto;max-height:420px}.inner-scroll[_ngcontent-%COMP%]{overflow:auto}.subtable[_ngcontent-%COMP%]{width:100%;border-collapse:separate;border-spacing:0;min-width:700px}.subtable[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:12px 16px;text-align:left;color:var(--muted);font-weight:700;font-size:13px;background:linear-gradient(90deg,#faf7ff,#f7fcff);border-bottom:1px solid rgba(124,58,237,.02)}.subtable[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:14px 16px;border-top:1px solid rgba(124,58,237,.02);vertical-align:middle}.subtable[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover   td[_ngcontent-%COMP%]{background:#fbfbff}.status-dot[_ngcontent-%COMP%]{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:8px;background:var(--green);box-shadow:0 8px 24px #22c55e0f;vertical-align:middle}.badge[_ngcontent-%COMP%]{display:inline-block;padding:6px 10px;border-radius:14px;background:linear-gradient(90deg,#f0fff6,#f3fff8);color:var(--green);font-weight:700;margin-left:8px;border:1px solid rgba(34,197,94,.06)}.pill-blue[_ngcontent-%COMP%]{display:inline-block;padding:6px 10px;margin:4px 6px 4px 0;border-radius:14px;background:linear-gradient(90deg,#e6f6ff,#ddf6ff);color:#0369a1;border:1px solid rgba(14,165,233,.08);font-weight:600}.code-pill[_ngcontent-%COMP%]{display:inline-block;padding:6px 10px;border-radius:12px;background:linear-gradient(90deg,#faf7ff,#f6f1ff);border:1px solid rgba(124,58,237,.06);color:var(--purple-600);font-weight:600}.stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.strong[_ngcontent-%COMP%]{font-weight:700}.muted[_ngcontent-%COMP%]{color:var(--muted)}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px}.empty[_ngcontent-%COMP%]{text-align:center;padding:14px;color:var(--muted)}.empty-muted[_ngcontent-%COMP%]{padding:28px;color:var(--muted);text-align:center}@media (max-width: 980px){.head-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.flex-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:12px}.td-created[_ngcontent-%COMP%]{min-width:auto}.stacked-panels[_ngcontent-%COMP%]{margin-left:18px}}
1.pagination-bar[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:32px;padding:16px;border-top:1px solid rgba(15,23,42,.06)}.page-btn[_ngcontent-%COMP%], .page-num[_ngcontent-%COMP%]{background:#fff;border:1px solid rgba(15,23,42,.08);color:#0f172a;padding:8px 14px;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.page-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.page-num[_ngcontent-%COMP%]:hover, .page-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f8f6ff;border-color:#7c3aed40}.page-num.active[_ngcontent-%COMP%]{background:linear-gradient(90deg,#7c3aed,#6d28d9);color:#fff;border:none;box-shadow:0 4px 14px #7c3aed33}.pill-green[_ngcontent-%COMP%]{background:linear-gradient(90deg,#dcfce7,#bbf7d0);color:#166534;border:1px solid rgba(34,197,94,.3);border-radius:14px;padding:6px 10px;font-weight:600;margin:3px 6px 3px 0}.pill-red[_ngcontent-%COMP%]{background:linear-gradient(90deg,#fee2e2,#fecaca);color:#991b1b;border:1px solid rgba(239,68,68,.25);border-radius:14px;padding:6px 10px;font-weight:600;margin:3px 6px 3px 0}"]}),n})()},{path:"subscription-consent-banner-configuration",component:Li},{path:"connection-integration",component:Ts},{path:"email-template",component:ba},{path:"setup",component:io},{path:"subscription-consent-banner-configuration/history",component:Sa},{path:"consent-management",loadChildren:()=>Promise.all([c.e("default-src_app_core_state-store_service_ts-node_modules_primeng___ivy_ngcc___fesm2015_primen-853466"),c.e("default-node_modules_angular_material_fesm2020_icon_mjs"),c.e("default-node_modules_quill_dist_quill_js"),c.e("common"),c.e("src_app_privacy_consent-solutions_consent-management_consent-preference-management_module_ts")]).then(c.bind(c,2199)).then(n=>n.ConsentManagementPreferenceModule)},{path:"jurisdiction",loadChildren:()=>Promise.all([c.e("default-src_app_core_state-store_service_ts-node_modules_primeng___ivy_ngcc___fesm2015_primen-853466"),c.e("default-node_modules_primeng___ivy_ngcc___fesm2015_primeng-dynamicdialog_js"),c.e("default-node_modules_primeng___ivy_ngcc___fesm2015_primeng-togglebutton_js-node_modules_prime-64422c"),c.e("default-node_modules_angular_material_fesm2020_icon_mjs"),c.e("common"),c.e("src_app_privacy_consent-solutions_consent-preference-jurisdiction_consent-preference-jurisdic-2baac7")]).then(c.bind(c,65099)).then(n=>n.ConsentPreferenceJurisdictionModule)}];let il=(()=>{const r=class{};let n=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[l.ez,b.Bz.forChild(ol),mt.P4,N.U$,se.hJ,M.j,p.u5,p.UX,ce.cc,ee.LU,f.zk,de.t,pe.x,xe.nD,ue.kW,ge.A,_e.e4,me.T,Ji._,fe.Iu,he.L$,Ze.S,xa.l,ae.K8,gn.J,Pa.H,Da.EV,Fa.D,Oa.q4,Ia.O.forRoot({themes:[Na.W,Ma.$],active:q.N.theme}),ve.Z,X.Tx]}),n})()},1061:(z,E,c)=>{c.d(E,{_:()=>q});var l=c(36895),u=(c(98606),c(42111),c(94650));let q=(()=>{class e{}return e.\u0275fac=function(d){return new(d||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[l.ez]}),e})()},79723:(z,E,c)=>{c.d(E,{EV:()=>N,FN:()=>S});var l=c(94650),b=c(36895),v=c(98606),u=c(42111),I=c(43898),L=c(98473),U=c(37340);const p=["container"],C=function(w,M,h,T){return{"pi-info-circle":w,"pi-exclamation-triangle":M,"pi-times-circle":h,"pi-check":T}};function x(w,M){if(1&w&&(l.ynx(0),l._UZ(1,"span",6),l.TgZ(2,"div",7)(3,"div",8),l._uU(4),l.qZA(),l.TgZ(5,"div",9),l._uU(6),l.qZA()(),l.BQk()),2&w){const h=l.oxw();l.xp6(1),l.Tol("p-toast-message-icon pi"+(h.message.icon?" "+h.message.icon:"")),l.Q6J("ngClass",l.l5B(5,C,"info"==h.message.severity,"warn"==h.message.severity,"error"==h.message.severity,"success"==h.message.severity)),l.xp6(3),l.Oqu(h.message.summary),l.xp6(2),l.Oqu(h.message.detail)}}function A(w,M){1&w&&l.GkF(0)}function q(w,M){if(1&w){const h=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(k){l.CHM(h);const F=l.oxw();return l.KtG(F.onCloseIconClick(k))})("keydown.enter",function(k){l.CHM(h);const F=l.oxw();return l.KtG(F.onCloseIconClick(k))}),l._UZ(1,"span",11),l.qZA()}}const e=function(w){return[w,"p-toast-message"]},m=function(w,M,h,T){return{showTransformParams:w,hideTransformParams:M,showTransitionParams:h,hideTransitionParams:T}},d=function(w){return{value:"visible",params:w}},_=function(w){return{$implicit:w}};function f(w,M){if(1&w){const h=l.EpF();l.TgZ(0,"p-toastItem",3),l.NdJ("onClose",function(k){l.CHM(h);const F=l.oxw();return l.KtG(F.onMessageClose(k))})("@toastAnimation.start",function(k){l.CHM(h);const F=l.oxw();return l.KtG(F.onAnimationStart(k))}),l.qZA()}if(2&w){const h=M.$implicit,T=M.index,k=l.oxw();l.Q6J("message",h)("index",T)("template",k.template)("@toastAnimation",void 0)("showTransformOptions",k.showTransformOptions)("hideTransformOptions",k.hideTransformOptions)("showTransitionOptions",k.showTransitionOptions)("hideTransitionOptions",k.hideTransitionOptions)}}let Z=(()=>{class w{constructor(h){this.zone=h,this.onClose=new l.vpe}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(h){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),h.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return w.\u0275fac=function(h){return new(h||w)(l.Y36(l.R0b))},w.\u0275cmp=l.Xpm({type:w,selectors:[["p-toastItem"]],viewQuery:function(h,T){if(1&h&&l.Gf(p,5),2&h){let k;l.iGM(k=l.CRH())&&(T.containerViewChild=k.first)}},inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(h,T){1&h&&(l.TgZ(0,"div",0,1),l.NdJ("mouseenter",function(){return T.onMouseEnter()})("mouseleave",function(){return T.onMouseLeave()}),l.TgZ(2,"div",2),l.YNc(3,x,7,10,"ng-container",3),l.YNc(4,A,1,0,"ng-container",4),l.YNc(5,q,2,0,"button",5),l.qZA()()),2&h&&(l.Tol(T.message.styleClass),l.Q6J("ngClass",l.VKq(10,e,"p-toast-message-"+T.message.severity)
1)("@messageState",l.VKq(17,d,l.l5B(12,m,T.showTransformOptions,T.hideTransformOptions,T.showTransitionOptions,T.hideTransitionOptions))),l.uIk("id",T.message.id),l.xp6(2),l.Q6J("ngClass",T.message.contentStyleClass),l.xp6(1),l.Q6J("ngIf",!T.template),l.xp6(1),l.Q6J("ngTemplateOutlet",T.template)("ngTemplateOutletContext",l.VKq(19,_,T.message)),l.xp6(1),l.Q6J("ngIf",!1!==T.message.closable))},dependencies:[b.mk,b.O5,b.tP,L.H],encapsulation:2,data:{animation:[(0,U.X$)("messageState",[(0,U.SB)("visible",(0,U.oB)({transform:"translateY(0)",opacity:1})),(0,U.eR)("void => *",[(0,U.oB)({transform:"{{showTransformParams}}",opacity:0}),(0,U.jt)("{{showTransitionParams}}")]),(0,U.eR)("* => void",[(0,U.jt)("{{hideTransitionParams}}",(0,U.oB)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),w})(),S=(()=>{class w{constructor(h,T){this.messageService=h,this.cd=T,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new l.vpe,this.id=(0,I.Th)()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(h=>{if(h)if(h instanceof Array){const T=h.filter(k=>this.canAdd(k));this.add(T)}else this.canAdd(h)&&this.add([h])}),this.clearSubscription=this.messageService.clearObserver.subscribe(h=>{h?this.key===h&&(this.messages=null):this.messages=null,this.cd.markForCheck()}),this.breakpoints&&this.createStyle()}add(h){this.messages=this.messages?[...this.messages,...h]:[...h],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...h]:[...h]),this.cd.markForCheck()}canAdd(h){let T=this.key===h.key;return T&&this.preventOpenDuplicates&&(T=!this.containsMessage(this.messages,h)),T&&this.preventDuplicates&&(T=!this.containsMessage(this.messagesArchieve,h)),T}containsMessage(h,T){return!!h&&null!=h.find(k=>k.summary===T.summary&&k.detail==T.detail&&k.severity===T.severity)}
1ngAfterContentInit(){this.templates.forEach(h=>{h.getType(),this.template=h.template})}onMessageClose(h){this.messages.splice(h.index,1),this.onClose.emit({message:h.message}),this.cd.detectChanges()}onAnimationStart(h){"void"===h.fromState&&this.autoZIndex&&(this.containerViewChild.nativeElement.style.zIndex=String(this.baseZIndex+ ++v.p.zindex),this.containerViewChild.nativeElement.setAttribute(this.id,""))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let h="";for(let T in this.breakpoints){let k="";for(let F in this.breakpoints[T])k+=F+":"+this.breakpoints[T][F]+" !important;";h+=`\n                    @media screen and (max-width: ${T}) {\n                        .p-toast[${this.id}] {\n                           ${k}\n                        }\n                    }\n                `}this.styleElement.innerHTML=h}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return w.\u0275fac=function(h){return new(h||w)(l.Y36(u.ez),l.Y36(l.sBO))},w.\u0275cmp=l.Xpm({type:w,selectors:[["p-toast"]],contentQueries:function(h,T,k){if(1&h&&l.Suo(k,u.jx,4),2&h){let F;l.iGM(F=l.CRH())&&(T.templates=F)}},viewQuery:function(h,T){if(1&h&&l.Gf(p,5),2&h){let k;l.iGM(k=l.CRH())&&(T.containerViewChild=k.first)}},inputs:{autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",key:"key",style:"style",styleClass:"styleClass",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(h,T){1&h&&(l.TgZ(0,"div",0,1),l.YNc(2,f,1,8,"p-toastItem",2),l.qZA()),2&h&&(l.Tol(T.styleClass),l.Q6J("ngClass","p-toast p-component p-toast-"+T.position)("ngStyle",T.style),l.xp6(2),l.Q6J("ngForOf",T.messages))},dependencies:[b.mk,b.sg,b.PC,Z],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{align-items:flex-start;display:flex}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{right:20px;top:20px}.p-toast-top-left{left:20px;top:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{left:50%;top:20px;transform:translateX(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translateX(-50%)}.p-toast-center{left:50%;min-width:20vw;top:50%;transform:translate(-50%,-50%)}.p-toast-icon-close{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}"],encapsulation:2,data:{animation:[(0,U.X$)("toastAnimation",[(0,U.eR)(":enter, :leave",[(0,U.IO)("@*",(0,U.pV)())])])]},changeDetection:0}),w})(),N=(()=>{class w{}return w.\u0275fac=function(h){return new(h||w)},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({imports:[b.ez,L.T,u.m8]}),w})()},45552:(z,E,c)=>{c.d(E,{IH:()=>I,K8:()=>L});var l=c(94650);let b=(()=>{class U{_printStyle=[];_styleSheetFile="";setPrintStyle(C){this._printStyle=[];for(let x in C)C.hasOwnProperty(x)&&this._printStyle.push((x+JSON.stringify(C[x])).replace(/['"]+/g,""))}returnStyleValues(){return`<style> ${this._printStyle.join(" ").replace(/,/g,";")} </style>`}returnStyleSheetLinkTags(){return this._styleSheetFile}setStyleSheetFile(C){let x=function(A){return`<link rel="stylesheet" type="text/css" href="${A}">`};if(-1!==C.indexOf(",")){const A=C.split(",");this._styleSheetFile=A.map(q=>x(q)).join("")}else this._styleSheetFile=x(C)}updateInputDefaults(C){for(let x=0;x<C.length;x++){const A=C[x];A.defaultValue=A.value,A.checked&&(A.defaultChecked=!0)}}updateSelectDefaults(C){for(let x=0;x<C.length;x++){const A=C[x];A.options[A.selectedIndex].defaultSelected=!0}}updateTextAreaDefaults(C){for(let x=0;x<C.length;x++){const A=C[x];A.defaultValue=A.value}}canvasToImageHtml(C){return`<img src="${C.toDataURL()}" style="max-width: 100%;">`}updateCanvasToImage(C){for(let x=0;x<C.length;x++){const A=this.canvasToImageHtml(C[x]);C[x].insertAdjacentHTML("afterend",A),C[x].remove()}}getHtmlContents(C){const x=document.getElementById(C);if(!x)return null;const A=x.getElementsByTagName("input"),q=x.getElementsByTagName("select"),e=x.getElementsByTagName("textarea"),m=x.getElementsByTagName("canvas");return this.updateInputDefaults(A),this.updateSelectDefaults(q),this.updateTextAreaDefaults(e),this.updateCanvasToImage(m),x.innerHTML}getElementTag(C){const x=[],A=document.getElementsByTagName(C);for(let q=0;q<A.length;q++)x.push(A[q].outerHTML);return x.join("\r\n")}print(C){let x="",A="",q="top=0,left=0,height=auto,width=auto";const e=this.getElementTag("base");C.useExistingCss&&(x=this.getElementTag("style"),A=this.getElementTag("link")),C.openNewTab&&(q="");const m=this.getHtmlContents(C.printSectionId);if(!m)return void console.error(`Print section with id ${C.printSectionId} not found.`);const d=window.open("","_blank",q);d?(d.document.open(),d.document.write(`\n          <html>\n            <head>\n              <title>${C.printTitle?C.printTitle:""}</title>\n              ${e}\n              ${this.returnStyleValues()}\n              ${this.returnStyleSheetLinkTags()}\n              ${x}\n              ${A}\n            </head>\n            <body ${C.bodyClass?`class="${C.bodyClass}"`:""}>\n              ${m}\n              <script defer>\n                function triggerPrint(event) {\n                  window.removeEventListener('load', triggerPrint, false);\n                  ${C.previewOnly?"":`setTimeout(function() {\
1n                    closeWindow(window.print());\n                  }, ${C.printDelay});`}\n                }\n                function closeWindow(){\n                  ${C.closeWindow?"window.close();":""}\n                }\n                window.addEventListener('load', triggerPrint, false);\n              <\/script>\n            </body>\n          </html>`),d.document.close()):console.error("Could not open print window.")}static \u0275fac=function(x){return new(x||U)};static \u0275prov=l.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})();class u{printSectionId=null;printTitle=null;useExistingCss=!1;bodyClass="";openNewTab=!1;previewOnly=!1;closeWindow=!0;printDelay=0;constructor(p){p&&Object.assign(this,p)}}let I=(()=>{class U extends b{printOptions=new u;set previewOnly(C){this.printOptions={...this.printOptions,previewOnly:C}}set printSectionId(C){this.printOptions={...this.printOptions,printSectionId:C}}set printTitle(C){this.printOptions={...this.printOptions,printTitle:C}}set useExistingCss(C){this.printOptions={...this.printOptions,useExistingCss:C}}set printDelay(C){this.printOptions={...this.printOptions,printDelay:C}}set closeWindow(C){this.printOptions={...this.printOptions,closeWindow:C}}set bodyClass(C){this.printOptions={...this.printOptions,bodyClass:C}}set openNewTab(C){this.printOptions={...this.printOptions,openNewTab:C}}set printStyle(C){super.setPrintStyle(C)}set styleSheetFile(C){super.setStyleSheetFile(C)}print(){super.print(this.printOptions)}static \u0275fac=function(){let C;return function(A){return(C||(C=l.n5z(U)))(A||U)}}();static \u0275dir=l.lG2({type:U,selectors:[["button","ngxPrint",""]],hostBindings:function(x,A){1&x&&l.NdJ("click",function(){return A.print()})},inputs:{previewOnly:"previewOnly",printSectionId:"printSectionId",printTitle:"printTitle",useExistingCss:"useExistingCss",printDelay:"printDelay",closeWindow:"closeWindow",bodyClass:"bodyClass",openNewTab:"openNewTab",printStyle:"printStyle",styleSheetFile:"styleSheetFile"},standalone:!0,features:[l.qOj]})}return U})(),L=(()=>{class U{static \u0275fac=function(x){return new(x||U)};static \u0275mod=l.oAB({type:U});static \u0275inj=l.cJS({})}return U})()}}]);

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.