1"use strict";(self.webpackChunkaccount_settings=self.webpackChunkaccount_settings||[]).push([[2953],{82953:(R,y,r)=>{r.r(y),r.d(y,{CcpaModule:()=>Q});var h=r(96814),T=r(40285),I=r(20434),S=r(3609),t=r(19212),f=r(39346),w=r(69862);let d=(()=>{class s{constructor(e,n){this.http=e,this.ConfigManagerService=n,this.content_config=this.ConfigManagerService.getConfig("content")}getContentSection(e,n){return this.http.get(this.content_config.api_url+"/app-content?app_code="+e+"&app_page_code="+n)}replaceTextValues(e){const i=e.match(/%%%(?:(?!%%%).)*?%%%/g);return typeof i<"u"&&null!==i&&i}humanize(e){const n=e.split("_");for(let i=0;i<n.length;i++)n[i]=n[i].charAt(0).toUpperCase()+n[i].slice(1);return n.join(" ")}static{this.\u0275fac=function(n){return new(n||s)(t.LFG(w.eN),t.LFG(f.Q))}}static{this.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac})}}return s})(),x=(()=>{class s{decodeText(e){const i=e.match(/\[\[(?:(?!{{).)*?\]\]/g);if(typeof i<"u"&&null!==i)for(const c in i)if(i.hasOwnProperty(c)){const a=i[c].replace("[[","").replace("]]","").split("|");e=e.replace(i[c],`<a href="${a[1]?a[1]:"#"}" ${a[2]?` target="${a[2]}"`:""}>${a[0]?a[0]:"link"}</a>`)}return e}static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var _=r(6593);let A=(()=>{class s{constructor(e){this._sanitizer=e}transform(e){return this._sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||s)(t.Y36(_.H7,16))}}static{this.\u0275pipe=t.Yjl({name:"sanitizeHtml",type:s,pure:!0})}}return s})(),F=(()=>{class s{constructor(e,n){this.displayVarAsValue=0,this.isPreview=!1,this.s3Path="",this.textDecoderService=e,this.appContentService=n}ngOnChanges(e){e.html&&(this.html=e.html.currentValue),e.values&&(this.values=e.values.currentValue),(e.html||e.values)&&this.loadContentComponents()}ngOnInit(){this.loadContentComponents()}loadContentComponents(){if(this.originalHTML?this.html=this.originalHTML:this.originalHTML=this.html,typeof this.values>"u")this.values={};else if("string"==typeof this.values)try{this.values=JSON.parse(this.values)}catch(e){console.log("Error: "+e)}this.text=this.values.textContents||{},this.images=this.values.imageContents||{},this.html=this.replaceTextValues(),this.html=this.replaceImages()}replaceTextValues(){let e=this.html;const n=this.appContentService.replaceTextValues(e);if(n){const i=/\['([^)]+)']/;for(const c in n)if(n.hasOwnProperty(c)){const a=n[c].match(i);if(typeof a>"u"&&null===a)return;const o=typeof this.text[a[1]]<"u"&&this.text[a[1]].length?this.textDecoderService.decodeText(this.text[a[1]]):this.displayVarAsValue?this.appContentService.humanize(a[1]):"";e=e.replace(n[c],o)}}return e}replaceImages(){let n=this.html;const i=n.match(/<content-img (.*?)content-img>/g);if(i)for(let c=0;c<i.length;c++){const o=this.stringToDOM(i[c]).getAttribute("[imagedata]");let u="";if(Object.keys(this.images).length){for(const l in this.images[o].image_sizes)if(this.images[o].image_sizes.hasOwnProperty(l)&&"0"!==l&&l){let g=typeof this.images[o].image_sizes[l].image_path<"u"?this.images[o].image_sizes[l].image_path:this.images[o].image_path;g=encodeURI(this.s3Path+"/"+g).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\+/g,"%2B"),g&&(u+=u.length?", "+g+" "+l+"w":g+" "+l+"w")}const C=encodeURI(this.s3Path+"/"+this.images[o].image_path).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\+/g,"%2B"),p=new Image;p.setAttribute("srcset",u),p.setAttribute("src",C),p.setAttribute("alt",this.images[o].alt_text?this.images[o].alt_text:this.images[o].file_name?this.images[o].file_name:"");const v=document.createElement("div");if(this.images[o].link&&this.images[o].link.length){const l=document.createElement("a");l.setAttribute("href",this.images[o].link),v.appendChild(l),l.appendChild(p)}else v.appendChild(p);n=n.replace(i[c],v.innerHTML)}else n=n.replace(i[c],'<img width="100" src="assets/img/broken-image.jpg"/>')}return n}stringToDOM(e){const n=document.createElement("div");return n.innerHTML=e,n.children[0]}static{this.\u0275fac=function(n){return new(n||s)(t.Y36(x),t.Y36(d))}}static{this.\u0275cmp=t.Xpm({type:s,selectors:[["app-content-renderer"]],inputs:{values:"values",html:"html",displayVarAsValue:"displayVarAsValue",isPreview:"isPreview",s3Path:"s3Path"},features:[t.TTD],decls:2,vars:6,consts:[[3,"innerHTML"]],template:function(n,i){1&n&&(t._UZ(0,"div",0),t.ALo(1,"s
1anitizeHtml")),2&n&&(t.Tol(i.isPreview?"disableEvents":""),t.Q6J("innerHTML",t.lcZ(1,4,i.html),t.oJD))},dependencies:[A],styles:[".disableEvents[_ngcontent-%COMP%]{pointer-events:none}"]})}}return s})();function Z(s,m){if(1&s&&(t.TgZ(0,"div",2),t._UZ(1,"app-content-renderer",3),t.qZA()),2&s){const e=m.$implicit,n=t.oxw();t.xp6(),t.Q6J("s3Path",n.s3Path)("values",e)("html",n.templates[e.app_template_code].html)}}let b=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275cmp=t.Xpm({type:s,selectors:[["content-placeholder"]],inputs:{contents:"contents",templates:"templates",s3Path:"s3Path"},decls:2,vars:1,consts:[[1,"comp-content-placeholder-container"],["class","content",4,"ngFor","ngForOf"],[1,"content"],[3,"s3Path","values","html"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t.YNc(1,Z,2,3,"div",1),t.qZA()),2&n&&(t.xp6(),t.Q6J("ngForOf",i.contents))},dependencies:[h.sg,F],encapsulation:2})}}return s})();var P=r(33727),M=r(75832);function E(s,m){1&s&&t._UZ(0,"page-loader",3)}const L=s=>({hidden:s});let Y=(()=>{class s{constructor(e,n,i){this.elementRef=e,this.ConfigManagerService=n,this.customerService=i,this.onSuccess=new t.vpe,this.onError=new t.vpe,this.ccpaFormId="ccpaForm",this.isLoaded=!1,this.appConfig=this.ConfigManagerService.getConfig("app"),this.ccpaFormConfig=this.ConfigManagerService.getConfig("ccpa")}ngAfterViewInit(){this.getCustomerInfo()}getCustomerInfo(){this.customerService.getCustomer().subscribe(e=>{e.status&&(this.customerInfo={firstName:e.data.first_name,lastName:e.data.last_name,email:e.data.email}),this.renderForm()})}renderForm(){const e=this.elementRef.nativeElement.querySelector(`#${this.ccpaFormId}`);if(e){setTimeout(()=>{e.addEventListener("ccpa.loaded",()=>{this.isLoaded=!0}),e.addEventListener("ccpa.createInquirySuccess",()=>{this.onSuccess.emit()}),e.addEventListener("ccpa.createInquiryError",()=>{this.onError.emit()})},0);const n=document.createElement("script");n.src=this.ccpaFormConfig.scriptSrc,n.type="text/javascript";let i={websiteCode:this.appConfig.website_code,pageType:this.ccpaFormConfig.pageType,containerId:this.ccpaFormId,app:this.ccpaFormConfig.app,origin:"SETTINGS"};this.customerInfo&&(i={...i,customerInfo:this.customerInfo}),n.setAttribute("params",JSON.stringify(i)),e.appendChild(n)}}static{this.\u0275fac=function(n){return new(n||s)(t.Y36(t.SBq),t.Y36(f.Q),t.Y36(P.v))}}static{this.\u0275cmp=t.Xpm({type:s,selectors:[["ccpa-form"]],outputs:{onSuccess:"onSuccess",onError:"onError"},decls:3,vars:5,consts:[[1,"comp-ccpa-form-container"],["class","account-loader",4,"ngIf"],[3,"id","ngClass"],[1,"account-loader"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t.YNc(1,E,1,0,"page-loader",1),t._UZ(2,"div",2),t.qZA()),2&n&&(t.xp6(),t.Q6J("ngIf",!i.isLoaded),t.xp6(),t.s9C("id",i.ccpaFormId),t.Q6J("ngClass",t.VKq(3,L,!i.isLoaded)))},dependencies:[h.mk,h.O5,M.f],encapsulation:2})}}return s})();function O(s,m){if(1&s&&(t.ynx(0),t._UZ(1,"content-placeholder",9),t.BQk()),2&s){const e=t.oxw(2);t.xp6(),t.Q6J("s3Path",e.contentS3Path)("contents",e.content.RIGHT)("templates",e.templates)}}function z(s,m){if(1&s){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",3)(2,"h3",4),t._uU(3),t.qZA(),t.TgZ(4,"div",5)(5,"ccpa-form",6),t.NdJ("onSuccess",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onSuccess())})("onError",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onError())}),t.qZA()()(),t.TgZ(6,"div",7),t.YNc(7,O,2,3,"ng-container",8),t.qZA(),t.BQk()}if(2&s){const e=t.oxw();
1t.xp6(3),t.Oqu(e.ccpaConfig.label),t.xp6(4),t.Q6J("ngIf",e.contentLoaded&&e.content.RIGHT)}}function H(s,m){if(1&s&&(t.TgZ(0,"div",10),t._UZ(1,"i"),t.TgZ(2,"h3",11),t._uU(3," You have successfully submitted a Data Privacy Request "),t.qZA(),t.TgZ(4,"ul",12)(5,"li"),t._uU(6," You will be contacted by our Privacy Response Team within two business days by email. "),t.qZA(),t.TgZ(7,"li"),t._uU(8," Your online account may be deleted within one week but completing the full deletion within our systems may take longer. "),t.qZA(),t.TgZ(9,"li"),t._uU(10," Completely fulfilling your request will take 4\u20136 weeks. "),t.qZA()()()),2&s){const e=t.oxw();t.xp6(),t.Gre("",e.successIcon," submission-success-icon")}}const V=[{path:"",component:(()=>{class s{constructor(e,n){this.ConfigManagerService=e,this.AppContentService=n,this.showSuccessMessage=!1,this.contentLoaded=!1,this.successIcon="i-check",this.settingsConfig=this.ConfigManagerService.getConfig("settings"),this.ccpaConfig=this.settingsConfig.ccpa,this.successIcon=this.ccpaConfig.successIcon;const i=this.ConfigManagerService.getConfig("content_s3_bucket");this.contentS3Path=i.path}ngOnInit(){this.getContentSection("SETTINGS","CCPA")}getContentSection(e,n){this.AppContentService.getContentSection(e,n).subscribe(i=>{i.success&&(this.contentLoaded=i.success,this.content=i.content,this.templates=i.templates)})}onSuccess(){this.showSuccessMessage=!0}onError(){this.showSuccessMessage=!1,this.scrollTop()}scrollTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||s)(t.Y36(f.Q),t.Y36(d))}}static{this.\u0275cmp=t.Xpm({type:s,selectors:[["app-ccpa"]],decls:4,vars:2,consts:[[1,"page-ccpa-container"],[4,"ngIf","ngIfElse"],["ccpaSubmissionSuccess",""],[1,"ccpa-form-container"],["tabindex","0",1,"ccpa-label","first-focus-element"],[1,"ccpa-form-wrapper"],[3,"onSuccess","onError"],["tabindex","0",1,"ccpa-description-container"],[4,"ngIf"],[3,"s3Path","contents","templates"],[1,"submission-success-container"],[1,"submission-success-heading"],[1,"submission-success-list"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0),t.YNc(1,z,8,2,"ng-container",1),t.qZA(),t.YNc(2,H,11,3,"ng-template",null,2,t.W1O)),2&n){const c=t.MAs(3);t.xp6(),t.Q6J("ngIf",!i.showSuccessMessage)("ngIfElse",c)}},dependencies:[h.O5,b,Y],encapsulation:2})}}return s})()}];let J=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=t.oAB({type:s})}static{this.\u0275inj=t.cJS({imports:[S.Bz.forChild(V),S.Bz]})}}return s})(),U=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=t.oAB({type:s})}static{this.\u0275inj=t.cJS({providers:[d],imports:[h.ez]})}}return s})();var N=r(38168);let Q=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=t.oAB({type:s})}static{this.\u0275inj=t.cJS({imports:[h.ez,T.u5,T.UX,J,I.b,U,N.r]})}}return s})()}}]);
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.