1import{a as X}from"./chunk-7OOJ7Z3P.js";import{a as $}from"./chunk-2YO56RR7.js";import{a as Q}from"./chunk-H6ZB2FGC.js";import{a as Z}from"./chunk-IMIW5YUT.js";import{M as J,t as f}from"./chunk-BAYI4RWW.js";import"./chunk-U2CNWYQO.js";import{d as R}from"./chunk-HLNUXTVN.js";import{j as z}from"./chunk-TG43JR7R.js";import{C as F,V as G,k as j,n as q}from"./chunk-VO5CTXAY.js";import{c as K,e as N,j as W,s as Y,w as B}from"./chunk-AIUBJ5HQ.js";import{$b as L,Ab as o,Bb as p,Cb as r,Db as m,Hb as C,Ib as b,Lb as y,Nb as M,Pb as l,Ta as n,Ya as h,Zb as I,_b as u,_c as D,ac as T,cb as S,gb as E,ha as x,hb as c,hc as P,ia as v,ic as k,jc as U,nc as V,nd as A,qc as O,ub as H,vb as w}from"./chunk-TMTVDZ6H.js";import"./chunk-66YHNWRR.js";function ee(t,s){t&1&&(p(0,"div",9),u(1," The wrong approach. (There shoud be a partner ID.) "),r())}function te(t,s){if(t&1&&(p(0,"div",14),u(1),r()),t&2){let e=l(3);n(),T(" ",e.failedMessage," ")}}function ie(t,s){t&1&&(C(0),u(1," You have been unsubscribed. "),b())}function ne(t,s){if(t&1){let e=y();p(0,"div",14)(1,"button",20),M("click",function(){x(e);let a=l(3);return v(a.addSuppressionList())}),u(2,"Unsubscribe"),r()()}if(t&2){let e=l(3);n(),o("disabled",!e.isValid())}}function re(t,s){if(t&1&&(p(0,"div",10)(1,"div",14)(2,"p",21),u(3),r()()()),t&2){let e=l(3);n(3),L(e.failedMessage)}}function oe(t,s){if(t&1){let e=y();p(0,"div",10)(1,"div",12)(2,"div",10)(3,"div",13)(4,"div",10)(5,"h1"),u(6,"Unsubscribe?"),r()(),p(7,"div",10)(8,"div",14)(9,"input",15),U("ngModelChange",function(a){x(e);let i=l(2);return k(i.params.identifier,a)||(i.params.identifier=a),v(a)}),r()()(),p(10,"div",10),c(11,te,2,1,"div",16),r(),p(12,"div",10)(13,"div",17),c(14,ie,2,0,"ng-container",1),r(),c(15,ne,3,1,"div",16),r(),c(16,re,4,1,"div",18),r(),p(17,"div",19)(18,"h4"),m(19,"uxtemplate",8),r(),p(20,"div"),m(21,"uxtemplate",8),r()()()()()}if(t&2){let e=l(2);n(9),P("ngModel",e.params.identifier),n(2),o("ngIf",!e.isValid()||e.fail),n(3),o("ngIf",e.unsubscribed),n(),o("ngIf",!e.unsubscribed),n(),o("ngIf",e.fail),n(3),o("uxHelper",e.uxHelper)("key",e.uxHelper.getUxcompKey("rhs.title")),n(2),o("uxHelper",e.uxHelper)("key",e.uxHelper.getUxcompKey("rhs.content"))}}function ae(t,s){if(t&1&&(C(0),p(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h1"),m(7,"uxtemplate",8),r(),p(8,"p"),m(9,"uxtemplate",8),r()()(),H(10,ee,2,0,"div",9)(11,oe,22,9,"div",10),r()()(),m(12,"app-sales-footer",11)(13,"app-sales-disclaimer",11),b()),t&2){let e=l();n(7),o("uxHelper",e.uxHelper)("key",e.uxHelper.getUxcompKey("headline")),n(2),o("uxHelper",e.uxHelper)("key",e.uxHelper.getUxcompKey("headline.sub")),n(),w(e.params.partnerId?11:10),n(2),o("uxHelper",e.uxHelper),n(),o("uxHelper",e.uxHelper)}}function se(t,s){if(t&1&&m(0,"dev-message",11),t&2){let e=l();o("uxHelper",e.uxHelper)}}var we=(()=>{let s=class s extends f{constructor(d,a){super(d,a),this.failedMessage="",this.unsubscribed=!1,this.params={},this.fail=!1,this.getParams=()=>{let i={type:"email"};return new URLSearchParams(window.location.search).forEach((_,g)=>{switch(g){case"email":case"phone":i[g]=_,i.identifier=_;break;case"ptrid":case"affid":i[g]=_.replace(/:/g,"_");break;default:i[g]=_;break}}),i?.ptrid&&i?.affid&&(i.partnerId=`${i.ptrid}:${i.affid}`),i},this.pageType=f.PAGE_TYPE.sales,this.pageCategory=f.PAGE_CATOGORY.general,this.page=f.PAGE.suppressionList}ngOnInit(){return this.baseInit().then(()=>{this.params.type="email",this.params=this.getParams()})}ngOnDestroy(){return super.onDestroy()}isValid(){return!!(this.params?.identifier&&this.params?.partnerId&&F.validateEmail(this.params?.identifier))}addSuppressionList(){if(this.isValid()){this.fail=!1,this.failedMessage="";let d=new G;return d.param=this.params,this.serviceHelperService.jsonService.json(q.suppressionListAdd,d).then(a=>(this.unsubscribed=!0,!0)).catch(a=>{this.fail=!0,this.failedMessage="Please verify that the information you entered is correct.",j.error(a)})}}};s.\u0275fac=function(a){return new(a||s)(h(J),h(R))},s.\u0275cmp=S({type:s,selectors:[["ng-component"]],features:[E],decls:4,vars:9,consts:[[3,"id"],[4,"ngIf"],[3,"uxHelper",4,"ngIf"],[1,"review"],[1,"container-fluid","content-wrapper","signup"],[1,"container"],[1,"row","text-center"],[1,"col-sm-12","loader-header"],[3,"uxHelper","key"],[2,"font-size","21p
1x","text-align","center"],[1,"row"],[3,"uxHelper"],[1,"col-md-10","col-md-offset-1"],[1,"col-md-8","content-box"],[1,"col-xs-12"],["type","email","placeholder","Enter your email address","name","email","required","",1,"form-control",3,"ngModelChange","ngModel"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12","unsubLabel"],["class","row",4,"ngIf"],[1,"col-md-4","side-column"],[1,"unsubscribe",3,"click","disabled"],[1,"contact-us-error"]],template:function(a,i){a&1&&(p(0,"div",0),c(1,ae,14,7,"ng-container",1),r(),m(2,"app-sales-closure"),c(3,se,1,1,"dev-message",2)),a&2&&(I(O("theme-legacy theme-",i.uxHelper.getTheme()," article-like ",i.pageType," ",i.pageCategory)),o("id",V(i.page)),n(),o("ngIf",i.uxHelper.hasUxComposite()),n(2),o("ngIf",i.uxHelper.hasUxComposite()))},dependencies:[A,D,B,K,N,Y,W,z,Q,X,Z,$],styles:[".form-control[_ngcontent-%COMP%]{border-radius:.5rem;border:1px solid #ced4da;padding:.375rem .75rem;width:100%;margin-bottom:1.33rem}.unsubLabel[_ngcontent-%COMP%]{text-align:center;color:#333}.unsubscribe[_ngcontent-%COMP%]{border-radius:.5rem;padding:.375rem .75rem;margin:0 auto;border:1px solid;display:flex;cursor:pointer;color:#fff;background-color:#007bff}.unsubscribe[_ngcontent-%COMP%]:hover{background-color:#0069d9}.unsubscribe[_ngcontent-%COMP%]:disabled{background-color:#9ecdff;cursor:not-allowed}h1[_ngcontent-%COMP%]{text-align:center;color:#333}"]});let t=s;return t})();export{we as SuppressionListComponent};
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.