PageSourceSearch

https://www.theunionsports.com/755.c8f880a36e9b2286.js

js theunionsports.com collected 2026-10-04 06:36:16 UTC 989,615 bytes, 1 lines download raw bytes

1(self.webpackChunkthe_union_gk=self.webpackChunkthe_union_gk||[]).push([[755],{12232:(qe,xe,d)=>{var p=d(92488),O=d(26663),u=d(2952),N=d(81690),F=d(93406),_=d(84444),x=d(58845),ue=d(47679),e=Object.prototype.hasOwnProperty;qe.exports=function k(U){if(null==U)return!0;if(F(U)&&(N(U)||"string"==typeof U||"function"==typeof U.splice||_(U)||ue(U)||u(U)))return!U.length;var Ie=O(U);if("[object Map]"==Ie||"[object Set]"==Ie)return!U.size;if(x(U))return!p(U).length;for(var He in U)if(e.call(U,He))return!1;return!0}},16970:(qe,xe,d)=>{"use strict";d.d(xe,{M:()=>O});const O=`<div class='password-menu-reuse'><h5>Secure Password Requirements:</h5><ul><li>${d(84539).hv.ALL_STANDARD_SPECIAL_CHARS}</li><li>Should have at least one special character</li><li>Should have at least one upper case character</li><li>Should have at least one lower case character</li><li>Should have at least one numerical digit</li><li>Should be of at least 8 characters</li></ul></div>`},34362:(qe,xe,d)=>{"use strict";d.d(xe,{Lz:()=>S,Q6:()=>y,x8:()=>A});var p=d(23090),O=d(84539),u=d(59735),N=d(96996),F=d(22798),_=d(37524),x=d.n(_),ue=d(16970);const A=e=>({sections:[{title:"",fields:[{type:O.sf.TEXT,label:"Legal First Name",name:"first_name",class:"col-12 col-lg-6",placeholder:"Enter Personal First Name on Legal Documents",validation:{required:{message:"Legal First Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"Legal First Name is invalid"}}},{type:O.sf.TEXT,label:"Legal Last Name",name:"last_name",class:"col-12 col-lg-6",placeholder:"Enter Personal Last Name on Legal Documents",validation:{required:{message:"Legal Last Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"Legal Last Name is invalid"}}},{type:O.sf.TEXT,label:"Email Address",name:"email",class:"col-12 col-lg-6",placeholder:"Enter Email Address",validation:{required:{message:"Email is required"},pattern:{value:p.mL.EMAIL,message:"Please enter a valid email address"}}},{type:O.sf.DATE_PICKER,label:"Birthdate",name:"birth_date",class:"col-12 col-lg-6",placeholder:"Enter Birthdate",maxDate:e.getPastDate(O.AP),validation:{required:{message:"Birthdate is required"}}},{type:O.sf.PASSWORD,label:"Password",name:"password",class:"col-12",placeholder:"Enter Password",infoIconMessage:ue.M,validation:{required:{message:"Password is required"},minlength:{value:8,message:"Minimum 8 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.PASSWORD,message:"Password is invalid"}}}]}]}),y=e=>{const k=[];return e?.includeSocialName&&k.push({type:O.sf.TEXT,label:"Legal First Name",name:"first_name",class:"col-12 col-lg-6",placeholder:"Enter Personal First Name on Legal Documents",validation:{required:{message:"Legal First Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"Legal First Name is invalid"}}},{type:O.sf.TEXT,label:"Legal Last Name",name:"last_name",class:"col-12 col-lg-6",placeholder:"Enter Personal Last Name on Legal Documents",validation:{required:{message:"Legal Last Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"Legal Last Name is invalid"}}}),e?.includeSocialEmail&&k.push({type:O.sf.TEXT,label:"Email Address",name:"email",class:"col-12",placeholder:"Enter Email Address",validation:{required:{message:"Email is required"},pattern:{value:p.mL.EMAIL,message:"Please enter a valid email address"}}}),e?.includeBirthDate&&k.push({type:O.sf.DATE_PICKER,label:"Birthdate",name:"birth_date",class:"col-12",placeholder:"Enter Birthdate",maxDate:e.commonService?.getPastDate(O.AP),validation:{required:{message:"Birthdate is required"}}}),{sections:[{title:"",fields:[...k,{type:O.sf.TEXT,label:"First Name on Legal Documents",name:"legal_fname",class:"col-12",placeholder:"Enter First Name on Legal Documents",infoIconMessage:"Including your correct First listed on Legal Documents is required for the identify verification process. If you are approved as creator, you can use a different Publicly Displayed Name listed below.",validation:{required:{message:"First Name on Legal Documents is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"First Name on Legal Documents is invali
1d"}}},{type:O.sf.TEXT,label:"Last Name on Legal Documents",name:"legal_lname",class:"col-12",placeholder:"Enter Last Name on Legal Documents",infoIconMessage:"Including your correct Last listed on Legal Documents is required for the identify verification process. If you are approved as creator, you can use a different Publicly Displayed Name listed below.",validation:{required:{message:"Last Name on Legal Documents is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:p.mL.N_W_S_AT_B,message:"Last Name on Legal Documents is invalid"}}},{type:O.sf.TEXT,label:"Publicly Displayed Name",name:"publicly_displayed_name",class:"col-12",placeholder:"Enter Publicly Displayed Name",onKeyDown:p.$2,infoIconMessage:"If you or your organization is approved as a creator, this is the name that will be displayed to users. We recommend using your First Name and Last Name, Organization Name or the name people know you as publicly to ensure fans can easily find you on the platform.",validation:{required:{message:"Publicly Displayed Name is required"},minlength:{value:4,message:"Minimum 4 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},validatorFunctions:[{validatorFn:(0,p.gt)(),message:"Publicly Displayed Name is invalid",errorKey:"notAllowedSpecialChar"},{validatorFn:(0,p.cj)(),message:"Trailing spaces are not allowed.",errorKey:"trailingWhitespaces"}]}},{type:O.sf.ADDRESS,label:"General Location",placeholder:"General Location",name:"general_location",class:"col-12",validation:{required:{message:"General Location is required"}}},{type:O.sf.SELECT,label:"Gender",name:"gender",class:"col-12",placeholder:"Select Gender",labelKey:"name",valueKey:"name",options:[{id:u.Mx.ONE,name:"Male"},{id:u.Mx.TWO,name:"Female"},{id:u.Mx.THREE,name:"Other"}],validation:{required:{message:"Gender is required"}}},{type:O.sf.MOBILE_INPUT,label:"Mobile Number for Verification",name:"mobile_number",class:"col-12",infoIconMessage:"This is only used for verification purposes and never displayed publicly.",mobile:{preferredCountries:[F.HT.UnitedStates,F.HT.UnitedKingdom],enableAutoCountrySelect:!0,enablePlaceholder:!1,searchCountryFlag:!0,searchCountryField:F.wX,selectFirstCountry:!1,selectedCountryISO:F.HT.UnitedStates,phoneValidation:!0,separateDialCode:!0},validation:{required:{message:"Mobile number for verification is required"},validatePhoneNumber:{message:"Please enter a valid mobile number for verification"}}},{type:O.sf.TEXT,label:"Optional: Email Address of Who Referred You",n
1ame:"referred_email",class:"col-12",validation:{pattern:{value:p.mL.EMAIL,message:"Please enter a valid email address"}}}]}]}},S=()=>({sections:[{title:"",fields:x()(N.g)}],buttons:[]})},82244:(qe,xe,d)=>{"use strict";d.d(xe,{J:()=>$t});var p=d(8239),O=d(22798),u=d(88692),N=d(38023),F=d(13528),_=d(5490),x=d(88893),ue=d(37524),A=d.n(ue),y=d(59735),S=d(96996),e=d(34362),k=d(98329),U=d(67030),Ie=d(59302),He=d(42384),Ge=d(96630),me=d(36705),Pe=d(13854),G=d(84539),R=d(87578),I=d(26877),J=d(92340),M=d(22274),ne=d(42443),q=d(18318),v=d(98353),it=d(72400),c=d(64537),ft=d(3942),Qe=d(22597),At=d(35873),X=d(14625),le=d(61354),ke=d(46515),fe=d(65525),ce=d(6913),Ke=d(36194),Ze=d(22864),Fe=d(97003);const De=["avatarCreator"],Ne=function(){return["/edit-preference"]};function ht(E,V){if(1&E&&(c.TgZ(0,"div",37)(1,"a",38),c._UZ(2,"em",39),c.qZA(),c.TgZ(3,"h3"),c._uU(4),c.qZA()()),2&E){const C=c.oxw(2);c.xp6(1),c.Q6J("routerLink",c.DdM(2,Ne)),c.xp6(3),c.Oqu(C.creatorProfileInfo.REVIEW_YOUR_INFORMATION)}}function Ct(E,V){if(1&E&&(c.TgZ(0,"div",40),c._UZ(1,"circle-progress",41),c.qZA()),2&E){const C=c.oxw(2);c.xp6(1),c.Q6J("percent",C.percent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",C.cs.isWhiteLabelWeb?null==C.cs.whiteLabelData||null==C.cs.whiteLabelData.data||null==C.cs.whiteLabelData.data.whiteLabel?null:C.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}function ie(E,V){if(1&E&&c._UZ(0,"img",42),2&E){const C=c.oxw(2);c.Q6J("originalUrl",C.bannerPreview)("src",C.bannerPreview,c.LSH)("format","webp")("alt",C.AUTH_CONSTANTS.COVER_IMAGE)}}function pe(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"button",43),c.NdJ("click",function(m){c.CHM(C);const T=c.oxw(2);return c.KtG(T.removeBannerImage(m))}),c._UZ(1,"em",44),c.qZA()}if(2&E){const C=c.oxw(2);c.uIk("aria-label",C.AUTH_CONSTANTS.REMOVE_BANNER_IMAGE)}}function yt(E,V){if(1&E&&(c.TgZ(0,"div",45)(1,"span",46),c._UZ(2,"em",47),c.qZA(),c.TgZ(3,"span",48),c._uU(4),c.qZA()()),2&E){const C=c.oxw(2);c.xp6(4),c.hij(" ",C.AUTH_CONSTANTS.CLICK_TO_UPLOAD_COVER," ")}}function St(E,V){if(1&E&&(c.TgZ(0,"div",40),c._UZ(1,"circle-progress",41),c.qZA()),2&E){const C=c.oxw(2);c.xp6(1),c.Q6J("percent",C.percent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",C.cs.isWhiteLabelWeb?null==C.cs.whiteLabelData||null==C.cs.whiteLabelData.data||null==C.cs.whiteLabelData.data.whiteLabel?null:C.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}function It(E,V){if(1&E&&c._UZ(0,"img",42),2&E){const C=c.oxw(2);c.Q6J("originalUrl",C.profilePreview)("src",C.profilePreview,c.LSH)("format","webp")("alt",C.AUTH_CONSTANTS.YOUR_PROFILE_IMAGE)}}function kt(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"button",49),c.NdJ("click",function(){c.CHM(C);const m=c.oxw(2);return c.KtG(m.removeProfileImage())}),c._UZ(1,"em",44),c.qZA()}if(2&E){const C=c.oxw(2);c.uIk("aria-label",C.AUTH_CONSTANTS.REMOVE_PROFILE_IMAGE)}}function bt(E,V){1&E&&(c.TgZ(0,"div",57),c._UZ(1,"span",58),c.qZA())}function at(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"li")(1,"input",60),c.NdJ("change",function(m){c.CHM(C);const T=c.oxw(4);return c.KtG(T.onHashTagSelect(m))}),c.qZA(),c.TgZ(2,"span"),c._uU(3),c.qZA()()}if(2&E){const C=V.$implicit,P=c.oxw(4);c.xp6(1),c.Q6J("value",null==C?null:C.sk)("checked",P.isTagSelected(null==C?null:C.sk)),c.xp6(2),c.Oqu(null==C?null:C.name)}}function Dt(E,V){if(1&E&&(c.TgZ(0,"ul"),c.YNc(1,at,4,3,"li",59),c.qZA()),2&E){const C=c.oxw(3);c.xp6(1),c.Q6J("ngForOf",C.hashTagList)}}function Nt(E,V){if(1&E&&(c.TgZ(0,"p",61),c._uU(1),c.qZA()),2&E){const C=c.oxw(3);c.xp6(1),c.hij(" ",C.AUTH_CONSTANTS.CONTENT_TYPE_REQUIRED," ")}}function Lt(E,V){if(1&E&&(c.TgZ(0,"div",50)(1,"div",51)(2,"p",52),c._uU(3),c.qZA(),c.TgZ(4,"div",53),c.YNc(5,bt,2,0,"div",54),c.YNc(6,Dt,2,1,"ul",55),c.YNc(7,Nt,2,1,"p",56),c.qZA()()()),2&E){const C=c.oxw(2);c.xp6(3),c.hij(" ",C.AUTH_CONSTANTS.SELECT_INTERESTS," "),c.xp6(2),c.Q6J("ngIf",C.isHashTagListLoading),c.xp6(1),c.Q6J("ngIf",!C.isHashTagListLoading),c.xp6(1),c.Q6J("ngIf",C.isSelectedContent&&0===C.hashTagSelectedList.length)}}
1function Zt(E,V){if(1&E&&(c.TgZ(0,"div",31),c._UZ(1,"app-dynamic-form-builder",32),c.qZA()),2&E){const C=c.oxw(2);c.xp6(1),c.Q6J("form",C.socialForm)("fields",C.socialFields)}}const Ut=function(E,V,C){return{type:"button",label:E,class:"btn btn-primary creators-signup-continue-btn w-100",loading:V,disabled:C}};function Bt(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"div",62)(1,"div",63)(2,"app-button",64),c.NdJ("click",function(){c.CHM(C);const m=c.oxw(2);return c.KtG(m.onCompleteProfile())}),c.qZA()()()}if(2&E){const C=c.oxw(2);c.xp6(2),c.Q6J("btnField",c.kEZ(1,Ut,C.AUTH_CONSTANTS.CONTINUE_UPPER,C.isSubmitting,C.form.invalid||!C.bannerPreview||!C.profilePreview||!C.atLeastOneFieldHasValue||C.requiresCreatorInterests&&!C.hashTagSelectedList.length||C.isSubmitting))}}const Rt=function(E,V,C){return{type:"button",label:E,class:"btn btn-primary",loading:V,disabled:C}};function qt(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"div",63)(1,"app-button",64),c.NdJ("click",function(){c.CHM(C);const m=c.oxw(2);return c.KtG(m.updateProfile())}),c.qZA()()}if(2&E){const C=c.oxw(2);c.xp6(1),c.Q6J("btnField",c.kEZ(1,Rt,C.creatorProfileInfo.NEXT,C.isSubmitting,C.form.invalid||!C.bannerPreview||!C.profilePreview||!C.atLeastOneFieldHasValue||C.isSubmitting))}}const Gt=function(E){return{cropperMinWidth:425,cropperMinHeight:165,maintainAspectRatio:!0,aspectRatio:E}},Yt=function(E){return{isMultiple:!1,imageType:"profileBanner",cropperOptions:E}},Jt=function(E){return{type:"button",label:E,class:"btn profile-image-action",prefixIconClass:"icon-profile"}},vt=function(){return{cropperMinWidth:300,cropperMinHeight:250,cropperStaticWidth:null,cropperStaticHeight:null,aspectRatio:1,maintainAspectRatio:!0}},Vt=function(E){return{isMultiple:!1,imageType:"profileImage",cropperOptions:E,roundCropper:!0}},Wt=function(E){return{type:"button",label:E,class:"btn profile-image-action",prefixIconClass:"icon-w-upload"}};function Ht(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"div",5)(1,"div",6),c.YNc(2,ht,5,3,"div",7),c.TgZ(3,"div",8)(4,"div",9)(5,"span",10),c._uU(6),c.qZA()(),c.TgZ(7,"div",11)(8,"div",12)(9,"h3",13),c._uU(10),c.qZA()(),c.TgZ(11,"label",14)(12,"input",15,16),c.NdJ("click",function(){c.CHM(C);const m=c.MAs(13);return c.KtG(m.value="")})("change",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.pickBannerImage(m))})("mobileFileChange",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.mobileChange(m))}),c.qZA(),c.YNc(14,Ct,2,14,"div",17),c.YNc(15,ie,1,4,"img",18),c.YNc(16,pe,2,1,"button",19),c.YNc(17,yt,5,1,"div",20),c.qZA()(),c.TgZ(18,"div",21)(19,"div",22)(20,"h3",13),c._uU(21),c.qZA(),c.TgZ(22,"div",23)(23,"div",24)(24,"div",25),c.YNc(25,St,2,14,"div",17),c.YNc(26,It,1,4,"img",18),c.YNc(27,kt,2,1,"button",26),c.qZA(),c.TgZ(28,"div",27)(29,"app-button",28),c.NdJ("handleButtonClick",function(){c.CHM(C);const m=c.oxw();return c.KtG(m.openAvatarCreator())}),c.qZA(),c.TgZ(30,"input",29,30),c.NdJ("click",function(){c.CHM(C);const m=c.MAs(31);return c.KtG(m.value="")})("change",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.fileChangeEvent(m))})("mobileFileChange",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.mobileChange(m))}),c.qZA(),c.TgZ(32,"app-button",28),c.NdJ("handleButtonClick",function(){c.CHM(C);const m=c.MAs(31);return c.KtG(m.click())}),c.qZA()()()()(),c.TgZ(33,"div",31),c._UZ(34,"app-dynamic-form-builder",32),c.qZA()(),c.YNc(35,Lt,8,4,"div",33),c.YNc(36,Zt,2,2,"div",34),c.YNc(37,Bt,3,5,"div",35),c.qZA(),c.YNc(38,qt,2,5,"div",36),c.qZA()()}if(2&E){const C=c.oxw();c.xp6(2),c.Q6J("ngIf",!C.isCreatorSignUp),c.xp6(4),c.Oqu(C.isCreatorSignUp?C.AUTH_CONSTANTS.STEP_2_4:C.creatorProfileInfo.STEP_1_OF_3),c.xp6(4),c.Oqu(C.AUTH_CONSTANTS.COVER_IMAGE),c.xp6(1),c.ekj("cover-image-upload--filled",C.hasBannerPreview),c.xp6(1),c.Q6J("accept",C.Application.IMAGE_ACCEPT_TYPES)("fileConfig",c.VKq(27,Yt,c.VKq(25,Gt,425/165))),c.xp6(2),c.Q6J("ngIf",C.showProgress&&C.isUploadingBannerImage&&C.cs.isBrowser),c.xp6(1),c.Q6J("ngIf",C.hasBannerPreview),c.xp6(1),c.Q6J("ngIf",C.hasBannerPreview&&!C.isUploadingBannerImage),c.xp6(1),c.Q6J("ngIf",!C.hasBannerPreview),c.xp6(4),c.Oqu(C.AUTH_CONSTANTS.YOUR_PROFILE_IMAGE),c.xp6(4),c.Q6J("ngIf",C.showProgress&&C.isUploadingProfileImage&&C.cs.isBrowser),c.xp6(1),c.Q6J("ngIf",C.hasCustomProfileImage),c.xp6(1),c.Q6J("ngIf",C.hasCustomProfileImage&&!C.isUploadingProfileImage),c.xp6(2),c.Q6J("btnField",c.VKq(29,Jt,C.AUTH_CONSTANTS.CREATE_AVATAR_WITH_AI)),c.xp6(1),c.Q6J("accept",C.Application.IMAGE_ACCEPT_TYPES)("fileConfig",c.VKq(32,Vt,c.DdM(31,vt))),c.xp6(2),c.Q6J("btnField",c.VKq(34,Wt,C.AUTH_CONSTANTS.UPLOAD_IMAGE)),c.xp6(2),c.Q6J("form",C.form)("fields",C.fields),c.xp6(1),c.Q6J("ngIf",C.requiresCreatorInterests),c.xp6(1),c.Q6J("ngIf",C.socialFields&&C.socialForm),c.xp6(1),c.Q6J("ngIf",C.isCreatorSignUp),c.xp6(1),c.Q6J("ngIf",!C.isCreatorSignUp)}}const Qt=function(E){return{cropperMinWidth:800,cropperMinHeight:400,recommendedWidth:800,recommendedHeight:400,maintainAspectRatio:!0,aspectRatio:E}};
1function Kt(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"app-image-cropper",65),c.NdJ("closeCrop",function(m){c.CHM(C);const T=c.oxw();return T.cancelCropBanner(m),c.KtG(T.banner.value="")})("cropImageUpload",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.pickBanner(m))}),c.qZA()}if(2&E){const C=c.oxw();c.Q6J("imageChangeEvent",C.bannerChangedEvent)("isOpen",C.isOpenBanner)("spinner",C.isUploadingBannerImage)("cropperOptions",c.VKq(5,Qt,2))("imageWidth",C.imageWidth)}}function zt(E,V){if(1&E){const C=c.EpF();c.TgZ(0,"app-image-cropper",66),c.NdJ("closeCrop",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.cancelCrop(m))})("cropImageUpload",function(m){c.CHM(C);const T=c.oxw();return c.KtG(T.pickProfile(m))}),c.qZA()}if(2&E){const C=c.oxw();c.Q6J("imageChangeEvent",C.imageChangedEvent)("isOpen",C.isOpen)("spinner",C.isUploadingProfileImage)("cropperOptions",c.DdM(6,vt))("imageWidth",C.imageWidth)("roundCropper",!0)}}let $t=(()=>{const V=class{constructor(P,m,T,D,Z,K,z,he,re,Ce,ze,Ye,st,rt,et){this.apiCallService=P,this.cs=m,this.becomeACreatorService=T,this.uploadService=D,this.store=Z,this.document=z,this.formService=he,this.authService=re,this.headerFooterStateService=Ce,this.coreService=ze,this.countryStateCityService=Ye,this.ngZone=st,this.cdr=rt,this.socialAuth=et,this.formFields=null,this.isCreatorSignUp=!1,this.socialSignupKey="",this.AUTH_CONSTANTS=ne.$X,this.fields=null,this.socialFields=null,this.PhoneNumberFormat=O.M9,this.images=[],this.isOpen=!1,this.isOpenBanner=!1,this.imageChangedEvent="",this.croppedImage="",this.croppedBanner="",this.creatorProfileInfo=G.uM,this.messages=Ge.Vm,this.destroy$=new N.x,this.webSiteUrl=J.N.websiteURL,this.isProfileImagesUploadedByUser=!1,this.isBannerImagesUploadedByUser=!1,this.imageWidth=0,this.Application=y.Mx,this.isSubmitting=!1,this.isUploadingProfileImage=!1,this.isUploadingBannerImage=!1,this.percent=y.Mx.ZERO,this.showProgress=!1,this.dummyMarkers=["privaterelay.appleid.com","noreply","users.noreply"],this.hashTagList=[],this.hashTagSelectedList=[],this.isHashTagListLoading=!1,this.isSelectedContent=!1,this.uploadService=K.get(me.C)}ngOnInit(){if(this.becomeACreatorService.creatorProfileSubmitReset$.pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.isSubmitting=!1}),this.cs.isBrowser){if(this.countryStateCityService.getJSONCountry().pipe((0,F.R)(this.destroy$)).subscribe(m=>{this.countryList=m}),this.formFields){if(this.fields=A()(this.formFields),this.isCreatorSignUp&&this.removeLegalNameFields(),this.socialFields=(0,e.Lz)(),this.form=this.formService.toFormGroup(this.fields),this.socialForm=this.formService.toFormGroup(this.socialFields),this.isCreatorSignUp){const m=this.formService.getField(this.fields,0,"mobile_number");m&&(m.hideErrorsUntilSubmit=!0)}this.coreService.refferalEmail.subscribe(m=>{m&&(this.form.patchValue({referred_email:m}),this.form.get("referred_email")?.disable())}),this.setValues()}else this.initCreatorProfileForm();this.requiresCreatorInterests&&this.getHashtagList()}window.addEventListener("message",m=>{if(m.origin+"/"===J.N.EMBED_BASE_URL&&m.data?.type===G.Iv.ADDRESS_INPUT_SELECTED){const T=(0,I.b3)(m.data?.address_components);this.selectedCountry=this.cs.getLabelFromData(m.data?.address_components,"country"),this.form.patchValue({general_location:T,latitude:m.data?.lat,longitude:m.data?.long})}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.coreService.refferalEmail.next("")}initCreatorProfileForm(){this.fields=A()((0,S.Z)()),this.isCreatorSignUp&&this.removeLegalNameFields(),this.socialFields=(0,e.Lz)(),this.form=this.formService.toFormGroup(this.fields),this.socialForm=this.formService.toFormGroup(this.socialFields),this.isCreatorSignUp||(this.legalFirstNameField=A()(this.formService.getField(this.fields,0,"legal_fname")),this.legalLastNameField=A()(this.formService.getField(this.fields,0,"legal_lname"))),this.displayedCreatorNameFieldWithUnderScore=A()(this.formService.getField(this.fields,0,"displayed_creator_name_with_underscore")),this.mobileNumberField=A()(this.formService.getField(this.fields,0,"mobile_number")),this.isCreatorSignUp&&this.mobileNumberField&&(this.mobileNumberField.hideErrorsUntilSubmit=!0),this.twitterHandleField=A()(this.formService.getField(this.fields,0,"twitter_handle")),this.facebookHandleField=A()(this.formService.getField(this.fields,0,"facebook_handle")),this.instagramHandleField=A()(this.formService.getField(this.fields,0,"instagram_handle")),this.youtubeHandleField=A()(this.formService.getField(this.fields,0,"youtube_handle")),this.tiktokHandleField=A()(this.formService.getField(this.fields,0,"tiktok_handle")),this.spotifyHandleField=A()(this.formService.getField(this.fields,0,"spotify_handle")),this.websitURLField=A()(this.formService.getField(this.fields,0,"website_url")),this.setValues()}removeLegalNameFields(){this.fields?.sections?.[0]?.fields&&(this.fields.sections[0].fields=this.fields.sections[0].fields.filter(P=>"legal_fname"!==P.name&&"legal_lname"!==P.name))}get atLeastOneFieldHasValue(){return["twitter_handle","facebook_handle","
1instagram_handle","youtube_handle","spotify_handle","tiktok_handle","linkedin_handle","snapchat_handle","website_url"].some(T=>this.socialForm?.get(T)?.value)}getProfile(){this.store.select(R.SJ).pipe((0,F.R)(this.destroy$)).subscribe(P=>{this.userProfileData=P;const{internationalNumber:m="",countryCode:T="",dialCode:D=""}=this.userProfileData?.phone_number?this.userProfileData?.phone_number:this.creatorsSignUpFormData?.mobile_number?this.creatorsSignUpFormData?.mobile_number:{};this.userProfileData={...this.userProfileData,first_name:this.userProfileData?.first_name?.trim()||this.creatorsSignUpFormData?.first_name?.trim(),last_name:this.userProfileData?.last_name?.trim()||this.creatorsSignUpFormData?.last_name?.trim()};const Z=this.form.get("publicly_displayed_name")?.value;this.userProfileData.publicly_displayed_name=Z??this.userProfileData?.first_name+" "+this.userProfileData?.last_name;const K=(0,I.un)(m,T,D),z={publicly_displayed_name:this.userProfileData.publicly_displayed_name,...K&&{mobile_number:K}};this.isCreatorSignUp||(z.legal_fname=this.userProfileData?.first_name,z.legal_lname=this.userProfileData?.last_name),this.form.patchValue(z),this.socialForm&&this.userProfileData?.social_handles&&this.socialForm.patchValue(this.userProfileData.social_handles);const he=this.formService.getField(this.fields,0,"mobile_number");this.setMobileDialCode(he),this.setMobileDialCode(this.mobileNumberField);const re=this.becomeACreatorService.creatorProfileData.step1Data,ze="string"==typeof this.bannerPreview&&this.bannerPreview;"string"==typeof this.profilePreview&&this.profilePreview||(re.profile_image_url=this.profilePreview=this.userProfileData?.profile_image_url),ze||(re.banner_image_url=this.bannerPreview=this.userProfileData?.banner_image_url)})}setMobileDialCode(P){this.userProfileData?.phone_number&&(P.mobile.selectedCountryISO=this.userProfileData?.phone_number?.countryCode??O.HT.UnitedStates)}setValues(){if(this.becomeACreatorService.creatorProfileData.isBecomeACreatorFlowStarted){const P=this.becomeACreatorService.creatorProfileData.step1Data,m={},T={},D=S.g.map(Z=>Z.name);Object.keys(P.formData||{}).forEach(Z=>{D.includes(Z)?T[Z]=P.formData[Z]:m[Z]=P.formData[Z]}),this.form.patchValue(m),this.socialForm&&Object.keys(T).length>0&&this.socialForm.patchValue(T),this.isCreatorSignUp||this.store.select(R.SJ).pipe((0,F.R)(this.destroy$)).subscribe(Z=>{Z?.referrer_info?.email&&this.form.patchValue({referred_email:Z?.referrer_info?.email})}),this.userProfileData=P.formData,this.bannerPreview=P.bannerPreview,this.profilePreview=P.profilePreview,this.banner_image_url=P.banner_image_url,this.profile_image_url=P.profile_image_url,P.images&&(this.images=P.images)}else this.isCreatorSignUp?(this.applyCreatorSignUpPrefill(),this.authService.isAuthenticated()&&this.getProfile()):this.getProfile()}applyCreatorSignUpPrefill(){const P=(this.creatorsSignUpFormData?.first_name||this.form?.get("first_name")?.value||"").trim(),m=(this.creatorsSignUpFormData?.last_name||this.form?.get("last_name")?.value||"").trim(),T=(this.creatorsSignUpFormData?.email||this.form?.get("email")?.value||"").trim(),D=this.form?.get("birth_date")?.value||this.creatorsSignUpFormData?.birth_date;this.userProfileData={...this.userProfileData||{},first_name:P,last_name:m,email:T};
1const Z=[P,m].filter(Boolean).join(" ");this.form?.patchValue({...Z&&!this.form.get("publicly_displayed_name")?.value&&{publicly_displayed_name:Z},...P&&this.form.get("first_name")&&{first_name:P},...m&&this.form.get("last_name")&&{last_name:m},...T&&this.form.get("email")&&{email:T},...D&&this.form.get("birth_date")&&{birth_date:D}})}get hasCustomProfileImage(){return!!this.profilePreview}get hasBannerPreview(){return!!this.bannerPreview}get requiresCreatorInterests(){return!!this.isCreatorSignUp&&!!this.socialSignupKey}getHashtagList(){this.isHashTagListLoading=!0,this.apiCallService.get(Ie.Y9.getHashtagList,!1).pipe((0,F.R)(this.destroy$),(0,_.x)(()=>{this.isHashTagListLoading=!1})).subscribe({next:P=>{P.status?(P.data.sort((m,T)=>(void 0!==m?.sequence_number?m.sequence_number:1/0)-(void 0!==T?.sequence_number?T.sequence_number:1/0)),this.hashTagList=P.data):this.cs.showErrorMessage(P.message)},error:P=>{this.cs.showErrorMessage(P.message)}})}isTagSelected(P){return this.hashTagSelectedList.some(m=>m.sk===P)}onHashTagSelect(P){this.isSelectedContent=!0;const m=P.target;if(m?.checked){const D=this.hashTagList.find(Z=>Z.sk===m.value);if(!D)return;return void this.hashTagSelectedList.push({name:D.name,sk:D.sk,pk:D.pk})}const T=this.hashTagSelectedList.findIndex(D=>D.sk===m.value);-1!==T&&this.hashTagSelectedList.splice(T,y.Mx.ONE)}removeProfileImage(){this.profile=void 0,this.profilePreview="",this.profile_image_url="",this.imageChangedEvent=void 0;const P=this.images?.findIndex(m=>m.folder===y.D4.ProfileFolder);void 0!==P&&-1!==P&&this.images.splice(P,1)}removeBannerImage(P){P.preventDefault(),P.stopPropagation(),this.bannerPreview="",this.banner=void 0,this.banner_image_url="",this.bannerChangedEvent=void 0;const m=this.images?.findIndex(T=>T.folder===y.D4.bannerFolder);void 0!==m&&-1!==m&&this.images.splice(m,1)}openAvatarCreator(){this.avatarCreator?.openModal()}onAvatarSaved(P){var m=this;return(0,p.Z)(function*(){if(m.cs.isBrowser&&P?.imageUrl)try{const T=yield m.avatarImageToFile(P.imageUrl);yield m.applyProfileFile(T)}catch{m.cs.showErrorMessage(Ge.Vm.SOMETHING_WENT_WRONG)}})()}avatarImageToFile(P){return(0,p.Z)(function*(){if(P.startsWith("data:")){const D=(0,x.Ll)(P);return new File([D],`ai_avatar_${Date.now()}.png`,{type:D.type||"image/png"})}const T=yield(yield fetch(P)).blob();return new File([T],`ai_avatar_${Date.now()}.png`,{type:T.type||"image/png"})})()}applyProfileFile(P){return this.saveProfileFile(P)}updateProfile(){if(this.cs.isBrowser){if(!this.bannerPreview)return window.scrollTo(0,0),void this.cs.showErrorMessage(this.messages.BANNER_IMAGE_NOT_SELECTED);if(!this.profilePreview)return window.scrollTo(0,0),void this.cs.showErrorMessage(this.messages.PROFILE_IMAGE_NOT_SELECTED)}if(this.atLeastOneFieldHasValue){if(this.form.invalid||this.socialForm?.invalid)return this.cs.showErrorMessage(this.messages.REQUIRED_FIELDS),this.form.markAllAsTouched(),void this.socialForm?.markAllAsTouched();if(this.isSubmitting=!0,this.isCreatorSignUp)this.setProfileData();else{const m=this.form.get("referred_email")?.value?.trim();m?this.callCompleteProfileWithReferredEmail(m).subscribe({next:T=>{T.status?this.setProfileData():(this.isSubmitting=!1,this.cs.showErrorMessage(T.message))},error:T=>{this.isSubmitting=!1,this.cs.showErrorMessage(T.message)}}):this.setProfileData()}}else this.cs.showErrorMessage(this.messages.PROVIDE_ATLEAST_ONE_HANDLE)}checkMononym(){const P=this.form?.value?.displayed_creator_name_with_underscore;P&&this.apiCallService.get(`${Ie.Y9.mononymAvailability}/${P}`,!0).pipe((0,F.R)(this.destroy$)).subscribe({next:D=>{D.status?D.data.isAvailable?this.setProfileData():this.cs.showErrorMessage(this.messages.DISPLAYED_CREATOR_NAME_ALREADY_TAKEN):this.cs.showErrorMessage(D.message)},error:D=>{this.cs.showErrorMessage(D?.message)}})}setProfileData(){const P={...this.form.value,...this.socialForm?.value,displayed_creator_name_with_underscore:this.form?.value?.publicly_displayed_name?.replace(/ /g,"-"),user_name:this.form?.value?.publicly_displayed_name?.replace(/ /g,"-"),first_name:this.userProfileData?.first_name||"",last_name:this.userProfileData?.last_name||""};this.isCreatorSignUp&&(delete P.legal_fname,delete P.legal_lname);
1const m=this.becomeACreatorService.creatorProfileData.step1Data;m.formData=P,m.images=this.images,m.bannerPreview=this.bannerPreview,m.profilePreview=this.profilePreview,m.profile_image_url=this.profile_image_url??this.userProfileData?.profile_image_url,m.banner_image_url=this.banner_image_url??this.userProfileData?.banner_image_url,this.becomeACreatorService.nextStep=G.Iv.STEP2,this.isCreatorSignUp&&(this.becomeACreatorService.isCreatorsHomeSignUp=!0,this.authService.setIsCreator(!1)),this.becomeACreatorService.updateCreatorData()}pickBanner(P){var m=this;return(0,p.Z)(function*(T,D=!1){let Z,K,z;m.isUploadingBannerImage=!0,m.showProgress=!0,m.percent=y.Mx.ZERO,m.cdr.detectChanges(),z=m.bannerChangedEvent?.target?.files?.[y.Mx.ZERO],D?(K=(0,I.qM)(T?.uri,T?.fileName),Z=K):(K=(0,x.Ll)(T),Z=new File([K],z.name,{type:K.type||z.type})),m.uploadService.uploadImageCompress(Z,y.Mx.ZERO_POINT_FOUR).then(function(){var he=(0,p.Z)(function*(re){m.isUploadingBannerImage=!1,m.showProgress=!1,m.percent=y.Mx.ZERO,m.cdr.detectChanges();const Ce=re;m.isOpenBanner=!1,m.banner=re;const ze=m.cs.isValidFile(m.banner);if(m.cs.isBrowser&&(m.document?.documentElement?.classList?.remove("page-hidden"),m.cs.setBodyClass(!0)),ze){const Ye=new FileReader;Ye.onload=lt=>{m.bannerPreview=lt.target.result},Ye.readAsDataURL(m.banner);const st=`${y.Mx.BANNER+Date.now()}_${Ce.name.toLowerCase().split(" ").join("_")}`,rt={file:m.banner,fileName:st,folder:y.D4.bannerFolder},et=m.images?.findIndex(lt=>lt.folder===y.D4.bannerFolder);-1!==et&&m.images?.splice(et,1),m.images?.push(rt)}else m.isUploadingBannerImage=!1,m.cs.showErrorMessage(Ge.Vm.INVALID_FILE_TYPE);m.bannerChangedEvent?.target?.value&&(m.bannerChangedEvent.target.value=""),m.bannerChangedEvent=void 0});return function(re){return he.apply(this,arguments)}}()).catch(()=>{m.isSubmitting=!1,m.isUploadingBannerImage=!1,m.showProgress=!1,m.percent=y.Mx.ZERO,m.cdr.detectChanges()})}).apply(this,arguments)}pickProfile(P){var m=this;return(0,p.Z)(function*(T,D=!1){let Z,K;m.isUploadingProfileImage=!0,m.showProgress=!0,m.percent=y.Mx.ZERO,m.cdr.detectChanges();const z=m.imageChangedEvent?.target?.files?.[y.Mx.ZERO];return D?(K=(0,I.qM)(T?.uri,T?.fileName),Z=K):(K=(0,x.Ll)(T),Z=new File([K],z?.name??"image.jpg",{type:K.type||z?.type||K.type})),m.saveProfileFile(Z)}).apply(this,arguments)}saveProfileFile(P){var m=this;return this.isUploadingProfileImage=!0,this.showProgress=!0,this.percent=y.Mx.ZERO,this.cdr.detectChanges(),this.uploadService.uploadImageCompress(P,y.Mx.ZERO_POINT_FOUR).then(function(){var T=(0,p.Z)(function*(D){m.isUploadingProfileImage=!1,m.showProgress=!1,m.percent=y.Mx.ZERO,m.cdr.detectChanges(),m.isOpen=!1,m.profile=D;const Z=m.cs.isValidFile(m.profile);if(m.cs.setBodyClass(!0),m.cs.isBrowser&&m.document?.documentElement?.classList?.remove("page-hidden"),Z){const K=new FileReader;K.onload=Ce=>{m.profilePreview=Ce.target.result},K.readAsDataURL(m.profile);const z=`${y.Mx.PROFILE+Date.now()}_${m.profile.name.toLowerCase().split(" ").join("_")}`,he={file:m.profile,fileName:z,folder:y.D4.ProfileFolder},re=m.images?.findIndex(Ce=>Ce.folder===y.D4.ProfileFolder);-1!==re&&m.images?.splice(re,1),m.images?.unshift(he)}else m.isUploadingProfileImage=!1,m.cs.showErrorMessage(Ge.Vm.INVALID_FILE_TYPE)});return function(D){return T.apply(this,arguments)}}()).catch(()=>{this.isSubmitting=!1,this.isUploadingProfileImage=!1,this.showProgress=!1,this.percent=y.Mx.ZERO,this.cdr.detectChanges()})}getbase64CroppedImage(){return new Promise(P=>{this.cropme.crop({type:"base64",scale:y.Mx.ONE_POINT_SEVEN_FIVE,quality:y.Mx.ONE}).then(function(m){return P(m)})})}cancelCrop(){this.isOpen=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}cancelCropBanner(){this.isOpenBanner=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}pickBannerImage(P){const m=P?.target;if(!(m instanceof HTMLInputElement&&m.files?.length))return;const T=m.files.item(y.Mx.ZERO);this.uploadService.uploadImageCompress(T,y.Mx.ZERO_POINT_FOUR).then(D=>{this.cs.setBodyClass(!1);const Z=new FileReader;Z.readAsDataURL(D),Z.onload=K=>{const z=new Image;z.src=K.target.result,z.onload=he=>{this.ngZone.run(()=>{const re=he?.path||he.composedPath&&he.composedPath();
1if(this.imageWidth=re[y.Mx.ZERO].naturalWidth,re[y.Mx.ZERO].naturalWidth>=y.Mx.BANNER_WIDTH&&re[y.Mx.ZERO].naturalHeight>=y.Mx.BANNER_HEIGHT){const Ce=new DataTransfer;Ce.items.add(D),m.files=Ce.files,this.bannerChangedEvent=P,this.isOpenBanner=!0}else m.value="",this.cancelCropBanner(),this.cs.showErrorMessage(`Width of image should be greater than ${y.Mx.BANNER_WIDTH}\n                pixels and height of image should be greater than ${y.Mx.BANNER_HEIGHT} pixels`)})}}}).catch(()=>{this.isSubmitting=!1})}bannerCropped(P){P&&P.base64&&(this.croppedBanner=P.base64,this.cs.setBodyClass(!1))}imageCropped(P){P&&P.base64&&(this.croppedImage=P.base64)}mobileChange(P){const{imageType:m,files:T}=P;"profileImage"===m?this.pickProfile(T[0],!0):"profileBanner"===m&&this.pickBanner(T[0],!0)}fileChangeEvent(P){const T=P.target.files?.[0];this.uploadService.uploadImageCompress(T,y.Mx.ZERO_POINT_FOUR).then(D=>{this.cs.setBodyClass(!1);const Z=new FileReader;Z.readAsDataURL(D),Z.onload=z=>{const he=new Image;he.src=z.target.result,he.onload=re=>{this.ngZone.run(()=>{const Ce=re?.path||re.composedPath&&re.composedPath();this.imageWidth=Ce[0]?.naturalWidth,this.isOpen=!0})}};const K=new DataTransfer;K.items.add(D),P.target.files=K.files,this.ngZone.run(()=>{this.imageChangedEvent=P})}).catch(()=>{this.isSubmitting=!1})}onCompleteProfile(){this.mobileNumberField&&(this.mobileNumberField.hideErrorsUntilSubmit=!1);const P=this.formService.getField(this.fields,0,"mobile_number");return P&&(P.hideErrorsUntilSubmit=!1),this.cs.isBrowser&&!this.profilePreview?(window.scrollTo(0,0),void this.cs.showErrorMessage(this.messages.PROFILE_IMAGE_NOT_SELECTED)):this.requiresCreatorInterests&&!this.hashTagSelectedList.length?(this.isSelectedContent=!0,void this.cs.showErrorMessage(ne.$X.CONTENT_TYPE_REQUIRED)):this.atLeastOneFieldHasValue?this.form.invalid||this.socialForm?.invalid?(this.cs.showErrorMessage(this.messages.REQUIRED_FIELDS),this.form.markAllAsTouched(),void this.socialForm?.markAllAsTouched()):(this.isSubmitting=!0,void(this.socialSignupKey?this.createSocialAccountThenComplete():this.submitCompleteProfile())):void this.cs.showErrorMessage(this.messages.PROVIDE_ATLEAST_ONE_HANDLE)}createSocialAccountThenComplete(){const P=this.form?.getRawValue()||{},m=(P.first_name||this.creatorsSignUpFormData?.first_name||"").trim(),T=(P.last_name||this.creatorsSignUpFormData?.last_name||"").trim(),D=(P.email||this.creatorsSignUpFormData?.email||"").toLowerCase(),Z=P.birth_date||this.creatorsSignUpFormData?.birth_date;if(this.dummyMarkers.some(z=>D.includes(z)))return this.isSubmitting=!1,void this.cs.showErrorMessage(ne.$X.DUMMY_EMAIL);if(!Z)return this.isSubmitting=!1,void this.cs.showErrorMessage(this.messages.REQUIRED_FIELDS);const K=`${this.cs.currentDate(Z).day}-${this.cs.currentDate(Z).month}-${this.cs.currentDate(Z).year}`;this.socialAuth.completeSignup({signup_key:this.socialSignupKey,first_name:m,last_name:T,email:D,birth_date:K,flow:ne.$X.CREATOR_FLOW,content_creator:this.hashTagSelectedList}).subscribe({next:z=>{if(!z?.token)return this.isSubmitting=!1,void this.cs.showErrorMessage(z?.message);this.socialAuth.establishSession(z).then(()=>{this.authService.setIsContent(!0),this.authService.setIsCreator(!0),this.userProfileData={...this.userProfileData||{},first_name:m,last_name:T,email:D},this.submitCompleteProfile()}).catch(()=>{this.isSubmitting=!1})},error:z=>{this.isSubmitting=!1,this.cs.showErrorMessage(z?.message)}})}submitCompleteProfile(){const P={...this.form?.getRawValue(),...this.socialForm?.getRawValue()};let m={general_location:P?.general_location,referred_email:P?.referred_email,gender:P?.gender,create_session:!0,...this.hashTagSelectedList.length&&{content_creator:this.hashTagSelectedList}};if(this.countryList?.length&&this.selectedCountry){const T=this.countryList.find(D=>D.name===this.selectedCountry);T&&(m={...m,preferred_currency:T.currency,currency_symbol:T.currency_symbol,currency_name:T.currency_name})}this.apiCallService.put(Ie.Y9.completeProfile,m,!1).subscribe(T=>{T.status?(this.updateProfile(),this.authService.setLastLoginEmail(this.form?.get("email")?.value||this.creatorsSignUpFormData?.email),this.cs.setGTag("New-user-registration-verified","user"),this.authService.userUnconfirmedStatus(!0),this.authService.setIsContent(!1),this.headerFooterStateService.updateState({reTriggerNeeded:!0})):(this.isSubmitting=!1,this.cs.showErrorMessage(T.message))},T=>{this.isSubmitting=!1,this.cs.showErrorMessage(T.message)})}callCompleteProfileWithReferredEmail(P){return this.apiCallService.put(Ie.Y9.completeProfile,{referred_email:P,create_session:!0},!1)}};let E=V;return V.\u0275fac=function(m){return new(m||V)(c.Y36(U.F),c.Y36(He.v),c.Y36(Pe.f),c.Y36(me.C),c.Y36(ft.yh),c.Y36(c.zs3),c.Y36(u.K0),c.Y36(k.D),c.Y36(M.AuthService),c.Y36(q.P),c.Y36(Qe.p),c.Y36(At.Z),c.Y36(c.R0b),c.Y36(c.sBO),c.Y36(v.x))},V.\u0275cmp=c.Xpm({type:V,selectors:[["app-creator-profile-info"]],viewQuery:function(m,T){if(1&m&&c.Gf(De,5),2&m){let D;c.iGM(D=c.CRH())&&(T.avatarCreator=D.first)}},inputs:{formFields:"formFields",isCreatorSignUp:"isCreatorSignUp",creatorsSignUpFormData:"creatorsSignUpFormData",socialSignupKey:"socialSignupKey"},decls:5,vars:6,consts:[["class","user-profile inside-container preference-container",4,"ngIf"],[3,"imageChangeEvent","isOpen","spinner","cropperOptions","imageWidth","closeCrop","cropImageUpload",4,"ngIf"],[3,"imageChangeEvent","isOpen","spinner","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload",4,"ngIf"],[3,"signupKey","location","country","avatarSaved"],["avatarCreator",""],[1,"user-profile","inside-container","preference-container"],[1,"walletform-container","preference-privacy-container"],["class","review-info",4,"ngIf"],[1,"walletform-content"],[1,"d-flex"],[1,"step1","steps-circle"],[1,"cover-image-block"],[1,"cover-image-header"],[1,"review-information"],[1,"cover-image-upload"],["type","file","appMobileBridgeFileInput","",1,"cover-image-file-input",3,"accept","fileConfig","click","change","mobileFileChange"],["banner",""],["class","show-progress-bar pointer-none",4,"ngIf"],["appDisableRightClick","","appMobileOptimization","","loading","lazy","decoding","async",3,"originalUrl","src","format","alt",4,"ngIf"],["type","button","class","cover-image-remove",3,"click",4,"ngIf"],["class","cover-image-prompt",4,"ngIf"],[1,"form-container"],[1,"form-items"],[1,"preference-banner-profile"],[1,"profile-image-card"],[1,"profile-image-preview"],["type","button","class","profile-image-remove",3,"click",4,"ngIf"],[1,"profile-image-actions"],[3,"btnField","handleButtonClick"],["type","file","appMobileBridgeFileInput","",1,"profile-image-file-input",3,"accept","fileConfig","click","change","mobileFileChange"],["profileUpload",""],[1,"form-builder","form-items"],[3,"form","fields"],["class","onboarding-content creator-interests",4,"ngIf"],["class","form-builder form-items",4,"ngIf"],["class","creators-signup-continue-btn-container",4,"ngIf"],["class","next-btn",4,"ngIf"],[1,"review-info"],[1,"icon-back",3,"routerLink"],[1,"icon-arrow-back"],[1,"show-progress-bar","pointer-none"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","showSubtitle","backgroundPadding","titleFontSize","titleColor","unitsColor","space"],["appDisableRightClick","","appMobileOptimization","","loading","lazy","decoding","async",3,"originalUrl","src","format","alt"],["type","button",1,"cover-image-remove",3,"click"],[1,"icon-liteicon-close"],[1,"cover-image-prompt"],[1,"cover-image-icon"],[1,"icon-w-upload"],[1,"cover-image-title"],["type","button",1,"profile-image-remove",3,"click"],[1,"onboarding-content","creator-interests"],[1,"onboarding-data"],[1,"mb-2"],[1,"onboarding-checkboxes"],["class","hashtag-list-loader",4,"ngIf"],[4,"ngIf"],["class","alert-dang pt-2",4,"ngIf"],[1,"hashtag-list-loader"],[1,"loading-spinner"],[4,"ngFor","ngForOf"],["type","checkbox",3,"value","checked","change"],[1,"alert-dang","pt-2"],[1,"creators-signup-continue-btn-container"],[1,"next-btn"],[3,"btnField","click"],[3,"imageChangeEvent","isOpen","spinner","cropperOptions","imageWidth","closeCrop","cropImageUpload"],[3,"imageChangeEvent","isOpen","spinner","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload"]],template:function(m,T){if(1&m&&(c.YNc(0,Ht,39,36,"div",0),c.YNc(1,Kt,1,7,"app-image-cropper",1),c.YNc(2,zt,1,7,"app-image-cropper",2),c.TgZ(3,"a
1pp-avatar-creator-modal",3,4),c.NdJ("avatarSaved",function(Z){return T.onAvatarSaved(Z)}),c.qZA()),2&m){let D;c.Q6J("ngIf",T.cs.isBrowser),c.xp6(1),c.Q6J("ngIf",T.cs.isBrowser&&T.isOpenBanner),c.xp6(1),c.Q6J("ngIf",T.cs.isBrowser&&T.isOpen),c.xp6(1),c.Q6J("signupKey",T.socialSignupKey)("location",null==T.form||null==(D=T.form.get("general_location"))?null:D.value)("country",T.selectedCountry)}},dependencies:[u.sg,u.O5,X.U,le.r,ke.e,fe.a,ce.m,Ke.J,Ze.rH,Fe.nu,it.C],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:100%;min-width:0}[_nghost-%COMP%]     .user-profile{width:100%;max-width:100%;min-width:0;overflow-x:hidden}[_nghost-%COMP%]     .user-profile .fb-monetize-card{padding:0rem}.preference-container[_ngcontent-%COMP%]   .preference-banner-profile[_ngcontent-%COMP%]   .preference-banner[_ngcontent-%COMP%]{margin:0}.step1[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:1.0256rem;margin-bottom:0rem}.preference-container[_ngcontent-%COMP%]   .preference-banner-profile[_ngcontent-%COMP%]   .preference-profile[_ngcontent-%COMP%]{margin-left:3.125rem}.pref-banner-height[_ngcontent-%COMP%]{height:320px!important;aspect-ratio:2/1}@media (max-width: 1150px){.pref-banner-height[_ngcontent-%COMP%]{height:250px!important}}@media (max-width: 992px){.pref-banner-height[_ngcontent-%COMP%]{height:auto!important}}.preference-container[_ngcontent-%COMP%]   .preference-banner-profile[_ngcontent-%COMP%]   .preference-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover}.review-info[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:2.5rem}.review-info[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.review-info[_ngcontent-%COMP%]   .icon-back[_ngcontent-%COMP%]{font-size:1.5rem}.review-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:auto;font-size:1.5rem;font-weight:500}.social-media[_ngcontent-%COMP%]{margin-top:2.5rem}.social-media[_ngcontent-%COMP%]   .social-media-hdn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.875rem}.social-media[_ngcontent-%COMP%]   .social-media-hdn[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1rem}.next-btn[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:flex-end}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:30px;margin-top:10px;width:100%;min-width:0}@media (max-width: 992px){.form-container[_ngcontent-%COMP%]{flex-direction:column}}.form-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}@media (max-width: 995px){.review-info[_ngcontent-%COMP%]{margin:0 12px 12px}.review-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500;padding-right:20px}.next-btn[_ngcontent-%COMP%]{margin-right:12px}.social-media-handle[_ngcontent-%COMP%]{width:14rem}.preference-container[_ngcontent-%COMP%]   .preference-banner-profile[_ngcontent-%COMP%]   .preference-profile[_ngcontent-%COMP%]{margin-left:1rem;margin-top:-4.375rem}}.review-information[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-top:20px;margin-bottom:16px}.cover-image-block[_ngcontent-%COMP%]{width:100%;max-width:100%;min-width:0;margin-top:10px}.cover-image-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.cover-image-header[_ngcontent-%COMP%]   .review-information[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:12px}.cover-image-optional[_ngcontent-%COMP%]{font-size:13px;color:var(--configPostTextColor);opacity:.7}.cover-image-file-input[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cover-image-upload[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;box-sizing:border-box;min-height:168px;aspect-ratio:2/1;max-height:400px;margin:0;overflow:hidden;cursor:pointer;border:1px dashed var(--theme-interactive-link);border-radius:20px;background-color:var(--configBgColor)}.cover-image-upload[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}
1.cover-image-upload[_ngcontent-%COMP%]   .show-progress-bar[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1;background-color:var(--configBgColor);opacity:.7}.cover-image-upload--filled[_ngcontent-%COMP%]{border-style:solid}.cover-image-remove[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--theme-interactive-link);border-radius:50%;background-color:var(--configSecondaryBgColor);color:var(--configPostTextColor);cursor:pointer}.cover-image-remove[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:12px;color:var(--configPostTextColor);line-height:1}.cover-image-prompt[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px 16px;text-align:center}.cover-image-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1.5px dashed var(--theme-interactive-link);border-radius:50%;color:var(--theme-interactive-link)}.cover-image-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:18px;color:var(--theme-interactive-link)}.cover-image-title[_ngcontent-%COMP%]{font-size:15px;font-weight:500;color:var(--configBgTextColor)}.cover-image-hint[_ngcontent-%COMP%]{font-size:13px;color:var(--configBgTextColor);opacity:.7}.creator-interests[_ngcontent-%COMP%]{width:100%;margin-top:20px}.creator-interests[_ngcontent-%COMP%]   .onboarding-data[_ngcontent-%COMP%]{margin:0}.creator-interests[_ngcontent-%COMP%]   .hashtag-list-loader[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 0}.creator-interests[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -4px;padding:0;list-style:none}.creator-interests[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;margin:12px 0 0}.creator-interests[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}.creator-interests[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ span[_ngcontent-%COMP%]{background:var(--configThemeColor);color:var(--configButtonTextColor);border-color:transparent}.creator-interests[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;padding:11px 16px;border:1px solid var(--theme-interactive-link);border-radius:28px;margin:0 4px;color:var(--configPostTextColor);font-size:13px;font-weight:600}.creators-signup-continue-btn[_ngcontent-%COMP%]{width:100%;height:48px}@media (max-width: 767px){.preference-container[_ngcontent-%COMP%]   .walletform-container.preference-privacy-container[_ngcontent-%COMP%]   .walletform-content[_ngcontent-%COMP%]{margin:0!important}}@media (max-width: 767px){.creators-signup-continue-btn-container[_ngcontent-%COMP%]   .form-group-link[_ngcontent-%COMP%]{margin:40px auto 0}}[_nghost-%COMP%]     .creators-signup-continue-btn-container app-button{width:100%}[_nghost-%COMP%]     .creators-signup-continue-btn-container app-button button{width:100%}.profile-image-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:28px;width:100%;padding:32px 20px;border-radius:24px;background-color:var(--configBgColor)}.profile-image-preview[_ngcontent-%COMP%]{position:relative;width:148px;height:148px;border-radius:50%;border:4px solid var(--theme-interactive-link)!important;background-color:var(--configBgColor)!important;background-image:url(ic-profile.2b1ccb90001537bc.svg)!important;background-repeat:no-repeat!important;background-position:center!important}.profile-image-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-image-preview[_ngcontent-%COMP%]   .show-progress-bar[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1}.profile-image-remove[_ngcontent-%COMP%]{position:absolute;top:15px;right:5px;z-index:2;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;transform:translate(20%,-20%);border:1px solid var(--theme-interactive-link);border-radius:50%;background-color:var(--configSecondaryBgColor);color:var(--configPostTextColor);cursor:pointer}.profile-image-remove[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:15px;color:var(--configPostTextColor)!important;line-height:1}.profile-image-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px}.profile-image-file-input[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
1[_nghost-%COMP%]     .profile-image-action{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:48px;padding:0 20px;border:1px solid var(--configThemeColor)!important;border-radius:999px;background-color:var(--configSecondaryBgColor);color:var(--configThemeColor)!important;font-weight:600;text-transform:none}[_nghost-%COMP%]     .profile-image-action:hover, [_nghost-%COMP%]     .profile-image-action:focus, [_nghost-%COMP%]     .profile-image-action:active{border:1px solid var(--configThemeColor)!important;background-color:var(--configSecondaryBgColor);color:var(--configThemeColor)}[_nghost-%COMP%]     .profile-image-action em{margin-right:8px;color:var(--configThemeColor)}[_nghost-%COMP%]     .profile-image-action .btn-text{color:var(--configThemeColor)}"]}),E})()},96996:(qe,xe,d)=>{"use strict";d.d(xe,{Z:()=>_,g:()=>F});var p=d(22798),O=d(84539),u=d(23090);const F=[{type:O.sf.TEXT,label:"Social Media Handles*",subLabel:"(You need to provide at least one Social Media Handle)",placeholder:"",name:"twitter_handle",class:"col-12",styleClass:"mt-40",infoIconMessage:"Ensure your social media handles must be public for verification. This helps us confirm your identity and verify your account's authenticity.",socialMediaPrefix:{iconPath:"./assets/images/twitter-logo.svg",name:"Twitter",url:O.uM.TWITTER_URL},validation:{pattern:{value:u.mL.TWITTER_USERNAME,message:"Twitter URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"facebook_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/facebook-logo.svg",iconClass:"icon-liteFB-1",name:"Facebook",url:O.uM.FACEBOOK_URL},validation:{pattern:{value:u.mL.FACEBOOK_USERNAME,message:"Facebook URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"instagram_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/instagram-logo.svg",name:"Instagram",url:O.uM.INSTAGRAM_URL},validation:{pattern:{value:u.mL.INSTAGRAM_USERNAME,message:"Instagram URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"tiktok_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/tiktok-logo.svg",name:"Tik Tok",url:O.uM.TIKTOK_URL},validation:{pattern:{value:u.mL.TIKTOK_USERNAME,message:"Tiktok URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"youtube_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/youtube-logo.svg",name:"Youtube",url:O.uM.YOUTUBE_URL},validation:{pattern:{value:u.mL.YOUTUBE_USERNAME,message:"Youtube URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"spotify_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/spotify-logo.svg",name:"Spotify",url:O.uM.SPOTIFY_URL},validation:{pattern:{value:u.mL.SPOTIFY_USERNAME,message:"Spotify URL is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"linkedin_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconClass:"icon-litelikedin",name:"LinkedIn",url:O.uM.LINKEDIN_URL},validation:{pattern:{value:u.mL.LINKEDIN_USERNAME,message:"LinkedIn handle is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"",name:"snapchat_handle",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconClass:"icon-litesnapchat",name:"Snapchat",url:O.uM.SNAPCHAT_URL},validation:{pattern:{value:u.mL.SNAPCHAT_USERNAME,message:"Snapchat username is not valid"}}},{type:O.sf.TEXT,label:"",placeholder:"Add Website URL",name:"website_url",class:"col-12",styleClass:"mt-2",socialMediaPrefix:{iconPath:"./assets/images/globe-logo.svg",name:"Website",url:""},validation:{pattern:{value:u.mL.WEBSITE_URL,message:"Website URL is not valid"}}}],_=()=>({sections:[{title:"",fields:[{type:O.sf.TEXT,label:"First Name on Legal Documents",placeholder:"Enter First Name on Legal Documents",infoIconMessage:"Including your correct First and Last listed on Legal Documents is required for the identify verification process. If you are approved as creator, you can use a different Publicly Displayed Name listed below.",name:"legal_fname",class:"col-12",validation:{required:{message:"First Name on Legal Documents is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:u.mL.N_W_S_AT_B,message:"First Name on Legal Documents is invali
1d"}}},{type:O.sf.TEXT,label:"Last Name on Legal Documents",placeholder:"Enter Last Name on Legal Documents",name:"legal_lname",class:"col-12",validation:{required:{message:"Last Name on Legal Documents is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:u.mL.N_W_S_AT_B,message:"Last Name  on Legal Documents is invalid"}}},{type:O.sf.TEXT,label:"Publicly Displayed Name",placeholder:"Enter Publicly Displayed Name",infoIconMessage:"If you or your organization is approved as a creator, this is the name that will be displayed to users. We recommend using your First Name and Last Name, Organization Name or the name people know you as publicly to ensure fans can easily find you on the platform.",name:"publicly_displayed_name",class:"col-12",onKeyDown:u.$2,validation:{required:{message:"Publicly Displayed Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},validatorFunctions:[{validatorFn:(0,u.gt)(),message:"Displayed creator name is invalid.",errorKey:"notAllowedSpecialChar"},{validatorFn:(0,u.cj)(),message:"Trailing spaces are not allowed.",errorKey:"trailingWhitespaces"}]}},{type:O.sf.MOBILE_INPUT,label:"Mobile Number for Verification",name:"mobile_number",class:"col-12",infoIconMessage:"This is only used for verification purposes and never displayed publicly.",mobile:{preferredCountries:[p.HT.UnitedStates,p.HT.UnitedKingdom],enableAutoCountrySelect:!0,enablePlaceholder:!1,searchCountryFlag:!0,searchCountryField:p.wX,selectFirstCountry:!1,selectedCountryISO:p.HT.UnitedStates,phoneValidation:!0,separateDialCode:!0},validation:{required:{message:"Mobile number for verification is required"},validatePhoneNumber:{message:"Please enter a valid mobile number for verification"}}},{type:O.sf.TEXT,label:"Optional: Email Address of who Referred you",placeholder:"Enter Referral Email",name:"referred_email",class:"col-12",validation:{pattern:{value:u.mL.EMAIL,message:"Please enter valid reference email"}}}]}],buttons:[]})},60755:(qe,xe,d)=>{"use strict";d.r(xe),d.d(xe,{EditPreferenceModule:()=>_f});var p=d(88692),O=d(22864),u=d(20092),N=d(67030),F=d(23090),_=d(59735),x=d(59302),ue=d(22274),A=d(42384),y=d(87578),S=d(96630),e=d(64537),k=d(75728),U=d(82954);const Ie=["alertmodal"];function He(i,s){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.shareInfoBody," ")}}function Ge(i,s){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.stopSharingInfoBody," ")}}function me(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",1,2),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onRestrictUser())})("canceled",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.closeModal(o))}),e.YNc(2,He,2,1,"div",3),e.YNc(3,Ge,2,1,"div",3),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("headerLabel",t.modalInfo.is_restricted?t.messages.SHARE_INFO:t.messages.STOP_SHARING_INFO)("cancelBtnLabel",t.messages.NO)("confirmBtnLabel",t.messages.YES)("showCrossBtn",!1)("isDeleteModal",!0),e.xp6(2),e.Q6J("ngIf",t.modalInfo.is_restricted),e.xp6(1),e.Q6J("ngIf",!t.modalInfo.is_restricted)}}let Pe=(()=>{const s=class{constructor(n,o,a){this.modalService=n,this.apiCallService=o,this.cs=a,this.messages=S.Vm,this.modalInfo={userDetails:{gsi4pk:"",first_name:"",last_name:""},is_restricted:!1}}ngOnInit(){this.modalInfo=Object.assign({userDetails:this.modalService.config.initialState?.userDetails,is_restricted:this.modalService.config.initialState?.is_restricted})}openModal(){this.alertmodal?.openModal()}ngAfterViewInit(){this.openModal()}onRestrictUser(){this.apiCallService.put(x.Y9.sharingUserDetails,{following_email:this.modalInfo.userDetails?.gsi4pk,is_restricted:this.modalInfo?.is_restricted},!0).subscribe(o=>{o.status&&this.cs.showSuccessMessage(o.message)},o=>{this.cs.showErrorMessage(o.message),this.closeModal("close")})}closeModal(n){this.modalService.setDismissReason(null===n?this.messages.SUCCESS:this.messages.CLOSE),this.modalService.hide()}get fullName(){return`${this.modalInfo?.userDetails?.first_name||""} ${this.modalInfo?.userDetails?.last_name||""}`.trim()}get shareInfoBody(){return this.messages.SHARE_INFO_BODY.replace("[name]",this.fullName)}get stopSharingInfoBody(){return this.messages.STOP_SHARING_INFO_BODY.replace("[name]",this.fullName)}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(k.tT),e.Y36(N.F),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-restrict-basic-info-dialog"]],viewQuery:function(o,a){if(1&o&&e.Gf(Ie,5),2&o){let r;e.iGM(r=e.CRH())&&(a.alertmodal=r.first)}},decls:1,vars:1,consts:[[3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","isDeleteModal","confirmed","canceled",4,"ngIf"],[3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","isDeleteModal","confirmed","canceled"],["alertmodal",""],[4,"ngIf"]],template:function(o,a){1&o&&e.YNc(0,me,4,7,"app-alert-modal",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[U.F,p.O5],encapsulation:2}),i})();var G=d(33021);const R={titles:{PAGE:"Privacy Password",AUDIENCE_VISIBILITY:"Audience & Visibility",ACCOUNT_INFORMATION:"Account Information",ALLOW_SHARING_WITH_CREATORS:"Allow Sharing of My Information with Creators",CHANGE_PASSWORD:"Change Password",DELETE_WARNING:"Warning!",CONFIRM_PAUSE_ACCOUNT:"Confirm Pause Account",PASSWORD_RESET_COMPLETE:"Password Reset Complete",PERMANENT_DELETION:"Warning! Permanent Deletion of Account"},labels:{BLOCKED_USERS:"Blocked Users",PAUSE_ACCOUNT:"Pause Account",DELET
1E_ACCOUNT:"Delete Account",ALLOW_SHARING_WITH:"Allow Sharing of My Information with",EMAIL:"Email",OLD_PASSWORD:"Old Password",NEW_PASSWORD:"New Password",CONFIRM_NEW_PASSWORD:"Confirm New Password",ENTER_PASSWORD:"Enter Password *",SEE_MORE:"See More",PROFILE_ALT:"Profile"},messages:{PAUSE_ACCOUNT_INFO:"Your account will be paused and other people won\u2019t see your profile and your content until you resume your account.",PAUSE_ACCOUNT_CREATOR_NOTE:"Note: If you are a creator with active subscribers, you may\n                    upset users who paid you and now won\u2019t be able to access your\n                    content, so we recommend communicating with them before\n                    pausing your account.",PAUSE_ACCOUNT_FAN:"Your account will be paused and other people won\u2019t see your profile until you resume your account.",DELETE_CREATOR_CONTENT:"All your content, settings, posts, comments, digital purchases and order history will be deleted and lost forever. This action is not reversible.",DELETE_FAN_CONTENT:"All your settings, comments, digital purchases and order history will be deleted and lost forever. This action is not reversible.",NO_FUTURE_EARNINGS:"No future earnings or referral commission will be paid.",DELETE_CREATOR_COMMUNICATE:"If you are a creator, we strongly suggest communicating with your fans and subscribers, as your digital products will no longer be available for those fans.",DELETE_CONSIDER_PAUSE:"If you don't want to delete your account, but want to take a break from TopFan, consider using the Pause Account feature option.",NOT_SHARING_INFO:"You are not sharing your information with any creators.",DELETE_MODAL_WARNING:"All Content will be deleted and no future earnings or referral commissions will be paid.",PAUSE_ENTER_PASSWORD:"Please enter your password to temporarily pause your account?",PAUSE_CONFIRM:"Are you sure you want to temporarily pause your account?",PASSWORD_CHANGED:"Your password has been changed successfully."},validation:{OLD_PASSWORD_REQUIRED:"* Old password is required",PASSWORD_REQUIRED:"* Password is required",PASSWORD_MIN_LENGTH:"* Password should contain at least 8 characters",PASSWORD_MAX_LENGTH:"* The password length should not exceed 24 Characters",PASSWORD_FORMAT:"* The entered password should match the valid format",PASSWORD_MISMATCH:"* The password confirmation does not match"},actions:{SUSPEND:"Suspend",DELETE:"Delete"},buttons:{CANCEL:"Cancel",DELETE:"Delete",PAUSE_TEMPORARILY:"PAUSE TEMPORARILY",OK:"Ok"}};var I=d(53778),J=d(99393),M=d(84539),ne=d(32401),q=d(38023),v=d(13528),it=d(5490),c=d(18318),ft=d(16970),Qe=d(42443),At=d(98353),X=d(96993),le=d(3942),ke=d(8267),fe=d(3706),ce=d(22348),Ke=d(76553),Ze=d(6913),Fe=d(28262),De=d(50668),Ne=d(36194),ht=d(51898),Ct=d(96980),ie=d(26695);let pe=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-preference-mobile-header-skeleton"]],standalone:!0,features:[e.jDz],decls:4,vars:0,consts:[[1,"preference-mobile-header-skeleton"],["className","h-20 w-20 r-4 c-post"],["className","h-20 w-20 r-50% c-post"],["className","h-16 w-140 r-4 c-post"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"app-skeleton",1)(2,"app-skeleton",2)(3,"app-skeleton",3),e.qZA())},dependencies:[ie._],styles:[".preference-mobile-header-skeleton[_ngcontent-%COMP%]{display:none;align-items:center;gap:9px;position:fixed;top:50px;left:0;right:0;height:50px;padding:0 12px;z-index:999;background:var(--configBgColor);border-bottom:1px solid var(--configBorderColor)}@media (max-width: 992px){.preference-mobile-header-skeleton[_ngcontent-%COMP%]{display:flex}}"]}),i})();function yt(i,s){1&i&&(e.TgZ(0,"div",9),e._UZ(1,"app-skeleton",10)(2,"app-skeleton",11),e.qZA())}function St(i,s){1&i&&(e.TgZ(0,"div",12),e._UZ(1,"app-skeleton",13),e.qZA())}function It(i,s){1&i&&(e.TgZ(0,"div",14)(1,"div",15),e._UZ(2,"app-skeleton",16)(3,"app-skeleton",17),e.qZA(),e._UZ(4,"app-skeleton",11),e.qZA())}function kt(i,s){1&i&&(e.TgZ(0,"div",18),e._UZ(1,"app-skeleton",19),e.qZA())}let bt=(()=>{const s=class{constructor(){this.toggleRows=Array(2),this.linkRows=Array(3),this.passwordFields=Array(3),this.sharingRows=Array(2)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-privacy-password-skeleton"]],standalone:!0,features:[e.jDz],decls:17,vars:4,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-20 w-180 r-4 c-post"],["class","skeleton-toggle-row",4,"ngFor","ngForOf"],["className","h-20 w-200 r-4 c-post"],["class","skeleton-link-row",4,"ngFor","ngForOf"],["className","h-20 w-300 r-4 c-post"],["class","skeleton-sharing-row",4,"ngFor","ngForOf"],["class","skeleton-field",4,"ngFor","ngForOf"],[1,"skeleton-toggle-row"],["className","h-16 w-60% r-4 c-post"],["className","h-24 w-44 r-12 c-post"],[1,"skeleton-link-row"],["className","h-16 w-40% r-4 c-post"],[1,"skeleton-sharing-row"],[1,"skeleton-sharing-info"],["className","h-40 w-40 r-50% c-post"],["className","h-16 w-120 r-4 c-post"],[1,"skeleton-field"],["className","h-36 w-100% r-8 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.YNc(4,yt,3,0,"div",3),e.qZA(),e.TgZ(5,"div",0)(6,"div",1),e._UZ(7,"app-skeleton",4),e.qZA(),e.YNc(8,St,2,0,"div",5),e.qZA(),e.TgZ(9,"div",0)(10,"div",1),e._UZ(11,"app-skeleton",6),e.qZA(),e.YNc(12,It,5,0,"div",7),e.qZA(),e.TgZ(13,"div",0)(14,"div",1),e._UZ(15,"app-skeleton",2),e.qZA(),e.YNc(16,kt,2,0,"div",8),e.qZA()),2&o&&(e.xp6(4),e.Q6J("ngForOf",a.toggleRows),e.xp6(4),e.Q6J("ngForOf",a.linkRows),e.xp6(4),e.Q6J("ngForOf",a.sharingRows),e.xp6(4),e.Q6J("ngForOf",a.passwordFields))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-section[_ngcontent-%COMP%] + .skeleton-section[_ngcontent-%COMP%]{margin-top:15px}.skeleton-heading[_ngcontent-%COMP%]{margin-bottom:20px}.skeleton-toggle-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.skeleton-link-row[_ngcontent-%COMP%]{padding:14px 0}.skeleton-sharing-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.skeleton-sharing-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.skeleton-field[_ngcontent-%COMP%]{margin-top:20px}"]}),i})();var at=d(84127);const Dt=["unlinkConfirmModal"];function Nt(i,s){1&i&&e._UZ(0,"app-privacy-password-skeleton")}
1function Lt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",27)(1,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",29),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",30),e._uU(6),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.titles.PAGE)}}function Zt(i,s){if(1&i&&e._UZ(0,"app-info-icon",50),2&i){const t=e.oxw(2).$implicit;e.Q6J("message",null==t?null:t.infoIconLabel)("height",18)("width",29)}}function Ft(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",44)(1,"div",45)(2,"p"),e._uU(3),e.YNc(4,Zt,1,3,"app-info-icon",46),e.qZA()(),e.TgZ(5,"label",47)(6,"input",48),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(4);return e.KtG(r.displayAudience(o,a.key))}),e.qZA(),e._UZ(7,"span",49),e.qZA()()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(4);e.xp6(3),e.hij(" ",t.label," "),e.xp6(1),e.Q6J("ngIf",null==t?null:t.infoIconLabel),e.xp6(2),e.Q6J("checked",n.getPrivacySettingChecked(t))}}function Ut(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Ft,8,3,"div",43),e.BQk()),2&i){const t=s.$implicit,n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.checkvisibility(t))}}function Bt(i,s){if(1&i&&(e.TgZ(0,"div",33)(1,"div",34),e._uU(2),e.qZA(),e.TgZ(3,"div",35),e.YNc(4,Ut,2,1,"ng-container",42),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(2),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.titles.AUDIENCE_VISIBILITY),e.xp6(2),e.Q6J("ngForOf",t.privacySettings)}}function Rt(i,s){if(1&i&&(e.TgZ(0,"div")(1,"p"),e._uU(2),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"p"),e._uU(5),e.qZA()()),2&i){const t=e.oxw(5);e.xp6(2),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.PAUSE_ACCOUNT_INFO," "),e.xp6(3),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.PAUSE_ACCOUNT_CREATOR_NOTE," ")}}function qt(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.PAUSE_ACCOUNT_FAN," ")}}function Gt(i,s){if(1&i&&(e.TgZ(0,"div",56),e.YNc(1,Rt,6,2,"div",57),e.YNc(2,qt,2,1,"ng-template",null,58,e.W1O),e.qZA()),2&i){const t=e.MAs(3),n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.isCreator)("ngIfElse",t)}}function Yt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",36)(1,"div",51)(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"div",52)(5,"button",53),e._UZ(6,"em",54),e.qZA(),e.YNc(7,Gt,4,2,"div",55),e.qZA()(),e.TgZ(8,"a",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3),a=e.MAs(3);return o.openAccountAction(o.PRIVACY_PASSWORD_CONSTANTS.actions.SUSPEND),e.KtG(a.show())}),e._UZ(9,"em",38),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.labels.PAUSE_ACCOUNT),e.xp6(1),e.Q6J("insideClick",!0)}}function Jt(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.DELETE_CREATOR_CONTENT," ")}}function vt(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.DELETE_FAN_CONTENT," ")}}function Vt(i,s){if(1&i&&(e.TgZ(0,"p"),e._UZ(1,"br"),e._uU(2),e.qZA()),2&i){const t=e.oxw(5);e.xp6(2),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.DELETE_CREATOR_COMMUNICATE," ")}}function Wt(i,s){if(1&i&&(e.TgZ(0,"div",56)(1,"p"),e._uU(2),e.qZA(),e._UZ(3,"br"),e.YNc(4,Jt,2,1,"p",0),e.YNc(5,vt,2,1,"p",0),e._UZ(6,"br"),e.TgZ(7,"p"),e._uU(8),e.qZA(),e.YNc(9,Vt,3,1,"p",0),e._UZ(10,"br"),e.TgZ(11,"p"),e._uU(12),e.qZA()()),2&i){const t=e.oxw(4);e.xp6(2),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.titles.PERMANENT_DELETION),e.xp6(2),e.Q6J("ngIf",t.isCreator),e.xp6(1),e.Q6J("ngIf",!t.isCreator),e.xp6(3),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.messages.NO_FUTURE_EARNINGS),e.xp6(1),e.Q6J("ngIf",t.isCreator),e.xp6(3),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.DELETE_CONSIDER_PAUSE," ")}}function Ht(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",36)(1,"div",51)(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"div",52)(5,"button",53),e._UZ(6,"em",54),e.qZA(),e.YNc(7,Wt,13,6,"div",55),e.qZA()(),e.TgZ(8,"a",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3),a=e.MAs(3);return o.openAccountAction(o.PRIVACY_PASSWORD_CONSTANTS.actions.DELETE),e.KtG(a.show())}),e._UZ(9,"em",38),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.labels.DELETE_ACCOUNT),e.xp6(1),e.Q6J("insideClick",!0)}}function Qt(i,s){1&i&&(e.TgZ(0,"div",64),e._UZ(1,"app-loader"),e.qZA())}
1function Kt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",33)(1,"div",35)(2,"div",59)(3,"div",60)(4,"p",61),e._uU(5),e._UZ(6,"app-info-icon",62),e.qZA()(),e.TgZ(7,"label",47)(8,"input",48),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.switchBasicInfo(o,a.getSharingDataInfo[0]))}),e.qZA(),e._UZ(9,"span",49),e.qZA()()(),e.YNc(10,Qt,2,0,"div",63),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(5),e.lnq(" ",t.PRIVACY_PASSWORD_CONSTANTS.labels.ALLOW_SHARING_WITH," ",null==t.getSharingDataInfo[0]?null:t.getSharingDataInfo[0].first_name," ",null==t.getSharingDataInfo[0]?null:t.getSharingDataInfo[0].last_name," "),e.xp6(1),e.Q6J("message",t.Messages.ALLOW_BASIC_INFO_TO_SHARE),e.xp6(2),e.Q6J("checked",!0===(null==t.getSharingDataInfo[0]?null:t.getSharingDataInfo[0].consent)),e.xp6(2),e.Q6J("ngIf",t.isLoading)}}function zt(i,s){if(1&i&&e._UZ(0,"img",72),2&i){const t=e.oxw().$implicit,n=e.oxw(5);e.Q6J("originalUrl",null==t?null:t.profile_image)("src",null==t?null:t.profile_image,e.LSH)("format","webp")("alt",n.PRIVACY_PASSWORD_CONSTANTS.labels.PROFILE_ALT)}}function $t(i,s){1&i&&e._UZ(0,"em",73)}function E(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",68)(1,"div",60)(2,"div",69),e.YNc(3,zt,1,4,"img",70),e.YNc(4,$t,1,0,"em",71),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA()(),e.TgZ(7,"label",47)(8,"input",48),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(5);return e.KtG(l.switchBasicInfo(o,r))}),e.qZA(),e._UZ(9,"span",49),e.qZA()()}if(2&i){const t=s.$implicit;e.xp6(3),e.Q6J("ngIf",null==t?null:t.profile_image),e.xp6(1),e.Q6J("ngIf",!(null!=t&&t.profile_image)),e.xp6(2),e.AsE("",null==t?null:t.first_name," ",null==t?null:t.last_name,""),e.xp6(2),e.Q6J("checked",!0===(null==t?null:t.consent))}}function V(i,s){if(1&i&&(e.TgZ(0,"div",76),e._UZ(1,"app-circle-background-icon",77),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(6);e.xp6(3),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.messages.NOT_SHARING_INFO)}}function C(i,s){if(1&i&&(e.TgZ(0,"div",74),e.YNc(1,V,4,1,"div",75),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("ngIf",!(null!=t.getSharingDataInfo&&t.getSharingDataInfo.length))}}function P(i,s){1&i&&(e.TgZ(0,"div",64),e._UZ(1,"app-loader"),e.qZA())}function m(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",78),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.seeMoreBasicInfo())}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&i){const t=e.oxw(5);e.xp6(2),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.labels.SEE_MORE)}}function T(i,s){if(1&i&&(e.TgZ(0,"div",33)(1,"div",34),e._uU(2),e._UZ(3,"app-info-icon",62),e.qZA(),e.TgZ(4,"div",35),e.YNc(5,E,10,5,"div",65),e.qZA(),e.YNc(6,C,2,1,"div",66),e.YNc(7,P,2,0,"div",63),e.YNc(8,m,3,1,"div",67),e.qZA()),2&i){const t=e.oxw(4);e.xp6(2),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.titles.ALLOW_SHARING_WITH_CREATORS," "),e.xp6(1),e.Q6J("message",t.Messages.ALLOW_BASIC_INFO_TO_SHARE),e.xp6(2),e.Q6J("ngForOf",t.getSharingDataInfo),e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",t.isLoading),e.xp6(1),e.Q6J("ngIf",t.totalSharingCount>5)}}function D(i,s){if(1&i&&e.YNc(0,T,9,6,"div",32),2&i){const t=e.oxw(3);e.Q6J("ngIf",(null==t.getSharingDataInfo?null:t.getSharingDataInfo.length)&&!t.isLoading)}}function Z(i,s){1&i&&(e.TgZ(0,"div",64),e._UZ(1,"app-loader"),e.qZA())}function K(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" (",t.AUTH_CONSTANTS.PASSWORD_NOT_SET,") ")}}function z(i,s){if(1&i&&(e.TgZ(0,"button",91),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.ACTIVE," ")}}function he(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",92),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.connectProvider("google"))}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.ACTIVATE," ")}}const re=function(i){return{"social-active":i}};function Ce(i,s){if(1&i&&(e.TgZ(0,"button",93),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(2,re,t.googleConnected)),e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.ACTIVE," ")}}function ze(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"em",94),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.unlinkProvider("google"))}),e.qZA()}}
1function Ye(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",92),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.connectProvider("apple"))}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.ACTIVATE," ")}}function st(i,s){if(1&i&&(e.TgZ(0,"button",93),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(2,re,t.appleConnected)),e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.ACTIVE," ")}}function rt(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"em",94),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.unlinkProvider("apple"))}),e.qZA()}}function et(i,s){if(1&i&&(e.TgZ(0,"div",35)(1,"div",80)(2,"div",81),e._UZ(3,"em",82),e.TgZ(4,"p"),e._uU(5),e.qZA(),e.YNc(6,K,2,1,"span",0),e.qZA(),e.YNc(7,z,2,1,"button",83),e.qZA(),e.TgZ(8,"div",80)(9,"p",84),e._UZ(10,"img",85),e._uU(11),e.qZA(),e.TgZ(12,"div",86),e.YNc(13,he,2,1,"button",87),e.YNc(14,Ce,2,4,"button",88),e.YNc(15,ze,1,0,"em",89),e.qZA()(),e.TgZ(16,"div",80)(17,"p",84),e._UZ(18,"span",90),e._uU(19),e.qZA(),e.TgZ(20,"div",86),e.YNc(21,Ye,2,1,"button",87),e.YNc(22,st,2,4,"button",88),e.YNc(23,rt,1,0,"em",89),e.qZA()()()),2&i){const t=e.oxw(4);e.xp6(5),e.Oqu(t.PRIVACY_PASSWORD_CONSTANTS.labels.EMAIL),e.xp6(1),e.Q6J("ngIf",!t.hasPassword),e.xp6(1),e.Q6J("ngIf",t.hasPassword),e.xp6(3),e.Q6J("src",t.AUTH_CONSTANTS.GOOGLE_LOGO,e.LSH),e.xp6(1),e.hij(" ",t.AUTH_CONSTANTS.GOOGLE," "),e.xp6(2),e.Q6J("ngIf",!t.googleConnected),e.xp6(1),e.Q6J("ngIf",t.googleConnected),e.xp6(1),e.Q6J("ngIf",t.googleConnected&&t.canUnlink("google")),e.xp6(4),e.hij(" ",t.AUTH_CONSTANTS.APPLE," "),e.xp6(2),e.Q6J("ngIf",!t.appleConnected),e.xp6(1),e.Q6J("ngIf",t.appleConnected),e.xp6(1),e.Q6J("ngIf",t.appleConnected&&t.canUnlink("apple"))}}function lt(i,s){if(1&i&&(e.TgZ(0,"div",33)(1,"div",34),e._uU(2),e._UZ(3,"app-info-icon",62),e.qZA(),e.YNc(4,Z,2,0,"div",63),e.YNc(5,et,24,12,"div",79),e.qZA()),2&i){const t=e.oxw(3);e.xp6(2),e.hij(" ",t.AUTH_CONSTANTS.CONNECTED_ACCOUNTS," "),e.xp6(1),e.Q6J("message",t.AUTH_CONSTANTS.SIGN_IN_INFO_MSG),e.xp6(1),e.Q6J("ngIf",t.identitiesLoading),e.xp6(1),e.Q6J("ngIf",!t.identitiesLoading)}}function Oo(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.OLD_PASSWORD_REQUIRED," ")}}function Mo(i,s){if(1&i&&(e.TgZ(0,"div",74)(1,"div",104),e._UZ(2,"app-password-input",105),e.qZA(),e.YNc(3,Oo,2,1,"div",99),e.qZA()),2&i){const t=e.oxw(4);let n;e.xp6(2),e.Q6J("control",t.changePasswordForm.get("oldPassword"))("label",t.PRIVACY_PASSWORD_CONSTANTS.labels.OLD_PASSWORD),e.xp6(1),e.Q6J("ngIf",(null==(n=t.changePasswordForm.get("oldPassword"))||null==n.errors?null:n.errors.required)&&(t.changePassSubmitted||(null==(n=t.changePasswordForm.get("oldPassword"))?null:n.dirty)))}}function To(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_REQUIRED," ")}}function wo(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_MIN_LENGTH," ")}}function Eo(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_MAX_LENGTH," ")}}function Ao(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_FORMAT," ")}}function yo(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_MISMATCH," ")}}function So(i,s){1&i&&e._UZ(0,"span",107)}const jt=function(i){return{"input-error":i}};function Io(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",33)(1,"form",95)(2,"div",34),e._uU(3),e.qZA(),e.TgZ(4,"div",96),e.YNc(5,Mo,4,3,"div",66),e.TgZ(6,"div",74)(7,"div",97)(8,"app-password-input",98),e.NdJ("keypressEvent",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.cs.restrictSpace(o))}),e.qZA(),e.YNc(9,To,2,1,"div",99),e.YNc(10,wo,2,1,"div",99),e.YNc(11,Eo,2,1,"div",99),e.YNc(12,Ao,2,1,"div",99),e.qZA()(),e.TgZ(13,"div",74)(14,"div",97),e._UZ(15,"app-password-input",100),e.qZA(),e.YNc(16,yo,2,1,"div",99),e.qZA(),e.TgZ(17,"div",74)(18,"div",101)(19,"button",102),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3),a=e.MAs(11);return e.KtG(o.changePassword(a))}),e.YNc(20,So,1,0,"span",103),e._uU(21),e.qZA()()()()()()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("formGroup",t.changePasswordForm),e.xp6(2),e.hij(" ",t.hasPassword?t.PRIVACY_PASSWORD_CONSTANTS.titles.CHANGE_PASSWORD:t.AUTH_CONSTANTS.SET_PASSWORD," "),e.xp6(2),e.Q6J("ngIf",t.hasPassword),e.xp6(3),e.Q6J("control",t.changePasswordForm.get("password"))("label",t.PRIVACY_PASSWORD_CONSTANTS.labels.NEW_PASSWORD)("infoMessage",t.passwordRulesMessage)("inputId","exampleInputPassword1")("inputClass",e.VKq(20,jt,t.changePasswordForm.get("password").invalid&&(t.changePassSubmitted||t.changePasswordForm.get("password").dirty))),e.xp6(1),e.Q6J("ngIf",(null==t.changePasswordForm.get("password").errors?null:t.changePasswordForm.get("password").errors.required)&&(t.changePassSubmitted||t.changePasswordForm.get("password").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.changePasswordForm.get("password").errors?null:t.changePasswordForm.get("password").errors.minlength)&&(t.changePassSubmitted||t.changePasswordForm.get("password").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.changePasswordForm.get("password").errors?null:t.changePasswordForm.get("password").errors.maxlength)&&(t.changePassSubmitted||t.changePasswordForm.get("password").dirty)),e.xp6(1),e.Q6J("ngIf",!(null!=t.changePasswordForm.get("password").errors&&t.changePasswordForm.get("password").errors.minlength)&&!(null!=t.changePasswordForm.get("password").errors&&t.changePasswordForm.get("password").errors.maxlength)&&(null==t.changePasswordForm.get("password").errors?null:t.changePasswordForm.get("password").errors.pattern)&&(t.changePassSubmitted||t.changePasswordForm.get("password").dirty)),e.xp6(3),e.Q6J("control",t.changePasswordForm.get("confirmPassword"))("label",t.PRIVACY_PASSWORD_CONSTANTS.labels.CONFIRM_NEW_PASSWORD)("inputId","exampleInputPassword2")("inputClass",e.VKq(22,jt,t.changePasswordForm.get("confirmPassword").invalid&&(t.changePassSubmitted||t.changePasswordForm.get("confirmPassword").dirty))),e.xp6(1),e.Q6J("ngIf",t.changePasswordForm.get("confirmPassword").invalid&&(t.changePassSubmitted||t.changePasswordForm.get("confirmPassword").dirty)),e.xp6(3),e.Q6J("disabled",t.changePasswordForm.invali
1d||t.isChangePasswordSubmitting),e.xp6(1),e.Q6J("ngIf",t.isChangePasswordSubmitting),e.xp6(1),e.hij(" ",t.hasPassword?t.PRIVACY_PASSWORD_CONSTANTS.titles.CHANGE_PASSWORD:t.AUTH_CONSTANTS.SET_PASSWORD," ")}}function ko(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",31),e.YNc(1,Bt,5,2,"div",32),e.TgZ(2,"div",33)(3,"div",34),e._uU(4),e.qZA(),e.TgZ(5,"div",35)(6,"div",36)(7,"p"),e._uU(8),e.qZA(),e.TgZ(9,"a",37),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.goToBlockUsers())}),e._UZ(10,"em",38),e.qZA()(),e.YNc(11,Yt,10,2,"div",39),e.ALo(12,"async"),e.ALo(13,"hasPermission"),e.YNc(14,Ht,10,2,"div",39),e.ALo(15,"async"),e.ALo(16,"hasPermission"),e.qZA()(),e.TgZ(17,"div",33),e._UZ(18,"app-calendar-link"),e.qZA(),e.YNc(19,Kt,11,6,"div",40),e.YNc(20,D,1,1,"ng-template",null,41,e.W1O),e.YNc(22,lt,6,4,"div",32),e.ALo(23,"async"),e.ALo(24,"hasPermission"),e.YNc(25,Io,22,24,"div",32),e.ALo(26,"async"),e.ALo(27,"hasPermission"),e.qZA()}if(2&i){const t=e.MAs(21),n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!(null!=n.userProfile&&n.userProfile.is_white_label)||(null==n.userProfile?null:n.userProfile.is_white_label)&&(null==n.userProfile?null:n.userProfile.is_host_owner)),e.xp6(3),e.Oqu(n.PRIVACY_PASSWORD_CONSTANTS.titles.ACCOUNT_INFORMATION),e.xp6(4),e.Oqu(n.PRIVACY_PASSWORD_CONSTANTS.labels.BLOCKED_USERS),e.xp6(3),e.Q6J("ngIf",!e.lcZ(12,9,e.gM2(13,11,"",null,!1,!0))),e.xp6(3),e.Q6J("ngIf",!e.lcZ(15,16,e.gM2(16,18,"",null,!1,!0))),e.xp6(5),e.Q6J("ngIf",n.cs.isWhiteLabelWeb&&(null==n.userProfile?null:n.userProfile.gsi4pk)!==(null==n.whiteLabelConfig||null==n.whiteLabelConfig.user?null:n.whiteLabelConfig.user.gsi4pk)&&(null==n.getSharingDataInfo?null:n.getSharingDataInfo.length)&&!n.isLoading)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",!e.lcZ(23,23,e.gM2(24,25,"",null,!1,!0))),e.xp6(3),e.Q6J("ngIf",!n.identitiesLoading&&!e.lcZ(26,30,e.gM2(27,32,"",null,!1,!0)))}}function Do(i,s){if(1&i&&(e.TgZ(0,"div",24),e.YNc(1,Lt,7,1,"div",25),e.YNc(2,ko,28,37,"div",26),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isPageLoading),e.xp6(1),e.Q6J("ngIf",!t.isPageLoading)}}function No(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.DELETE_MODAL_WARNING," ")}}function Lo(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.PAUSE_ENTER_PASSWORD," ")}}function Zo(i,s){if(1&i&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.messages.PAUSE_CONFIRM," ")}}function Fo(i,s){if(1&i&&(e.TgZ(0,"div",106),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.validation.PASSWORD_REQUIRED," ")}}function Uo(i,s){if(1&i&&(e.TgZ(0,"div",104),e._UZ(1,"app-password-input",100),e.YNc(2,Fo,2,1,"div",99),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("control",t.deleteForm.get("password"))("label",t.PRIVACY_PASSWORD_CONSTANTS.labels.ENTER_PASSWORD)("inputId","exampleInputPassword3")("inputClass",e.VKq(5,jt,t.deleteForm.get("password").invalid&&(t.submitted||t.deleteForm.get("password").dirty))),e.xp6(1),e.Q6J("ngIf",(null==t.deleteForm.get("password").errors?null:t.deleteForm.get("password").errors.required)&&(t.submitted||t.deleteForm.get("password").dirty))}}function Bo(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"form",108),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw(),a=e.MAs(3);return e.KtG(o.deleteAccount(a))}),e.TgZ(1,"div",109),e.YNc(2,No,2,1,"p",0),e.YNc(3,Lo,2,1,"p",0),e.YNc(4,Zo,2,1,"p",0),e.YNc(5,Uo,3,7,"div",110),e.qZA(),e.TgZ(6,"div",23)(7,"button",111),e.NdJ("click",function(){e.CHM(t),e.oxw();const o=e.MAs(3);return e.KtG(o.hide())}),e._uU(8),e.qZA(),e.TgZ(9,"button",112),e._uU(10),e.qZA()()()}if(2&i){const t=e.oxw();e.Q6J("formGroup",t.deleteForm),e.xp6(2),e.Q6J("ngIf",t.accountStatus===t.PRIVACY_PASSWORD_CONSTANTS.actions.DELETE),e.xp6(1),e.Q6J("ngIf",t.accountStatus===t.PRIVACY_PASSWORD_CONSTANTS.actions.SUSPEND&&t.hasPassword),e.xp6(1),e.Q6J("ngIf",t.accountStatus===t.PRIVACY_PASSWORD_CONSTANTS.actions.SUSPEND&&!t.hasPassword),e.xp6(1),e.Q6J("ngIf",t.hasPassword),e.xp6(3),e.hij(" ",t.PRIVACY_PASSWORD_CONSTANTS.buttons.CANCEL," "),e.xp6(1),e.Q6J("disabled",t.deleteForm.invali
1d),e.xp6(1),e.hij(" ",t.accountStatus===t.PRIVACY_PASSWORD_CONSTANTS.actions.DELETE?t.PRIVACY_PASSWORD_CONSTANTS.buttons.DELETE:t.PRIVACY_PASSWORD_CONSTANTS.buttons.PAUSE_TEMPORARILY," ")}}const _n=function(){return{backdrop:"static",keyboard:!1}},Ro=function(){return{class:"modal-sm"}};let qo=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b,w){this.fb=n,this.apiCallService=o,this.cs=a,this.router=r,this.authService=l,this.store=g,this.modalService=h,this.headerFooterStateService=b,this.socialAuth=w,this.getSharingDataInfo=[],this.totalSharingCount=0,this.successMessage="",this.Messages=S.Vm,this.isFirstload=!1,this.searchData="",this.isWaterMarkSettingEnabled=!1,this.isCreator=!1,this.PrivacySettingsMessage=G.Et,this.PRIVACY_PASSWORD_CONSTANTS=R,this.privacySettings=[{label:G.Et.DisplayMyChatRooms,key:"display_my_forums",visible:!0,visibleForFan:!1},{label:G.Et.DisplayMyTextChannels,key:"display_my_text_channels",visible:!1,visibleForFan:!1},{label:G.Et.DisplayWhoIFollow,key:"display_who_i_am_following",visible:!0,visibleForFan:!0},{label:G.Et.DisplayWhoFollowsMe,key:"display_who_follows_me",visible:!0,visibleForFan:!1},{label:G.Et.DisplayMyAwards,key:"display_my_awards",visible:!1,visibleForFan:!0},{label:G.Et.DisplayMyNFTs,key:"dispaly_my_nfts",visible:!1,visibleForFan:!1},{label:G.Et.DisplayContentPostTimeStamps,key:"display_post_timestamp",visible:!0,visibleForFan:!1},{label:G.Et.DisplayAvailabilityToCollaborate,key:"display_that_i_am_available_to_collaborate",visible:!0,visibleForFan:!1},{label:G.Et.DisplayInCreatorDirectory,key:"display_in_creator_directory",visible:!0,visibleForFan:!1},{label:G.Et.OnlyAllowFollowers,infoIconLabel:"",key:"only_followers_can_access_content",visible:!0,visibleForFan:!1},{label:G.Et.MakeMyAccountPrivate,infoIconLabel:"",key:"is_private",visible:!0,visibleForFan:!1},{label:G.Et.DisplayMyGeneralLocationOnHomeScreen,key:"display_my_general_location_on_home_screen",visible:!0,visibleForFan:!1,defaultValue:!0}],this.permissionKeys=I.S,this.destroy$=new q.x,this.isLoading=!1,this.isChangePasswordSubmitting=!1,this.isPageLoading=!0,this.whiteLabelConfig={},this.passwordRulesMessage=ft.M,this.AUTH_CONSTANTS=Qe.$X,this.hasPassword=!0,this.googleConnected=!1,this.appleConnected=!1,this.identitiesLoading=!0,this.unlinkProviderName="",this.commonEnum=X.i4}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.initPrivacySettingsInfoLabels(),this.initChangePasswordForm(),this.initDeleteAccount(),this.getProfile(),this.getUsers(),this.loadIdentities(),this.whiteLabelConfig=this.cs.getWhiteLabelConfiguration(),this.isFirstload=!1)}initPrivacySettingsInfoLabels(){const n=this.cs.isWhiteLabelWeb?_.Mx.FollowersOnTopFans:_.Mx.Followers,o=this.privacySettings.find(b=>"only_followers_can_access_content"===b.key),a=this.privacySettings.find(b=>"is_private"===b.key),r=this.privacySettings.find(b=>"display_who_i_am_following"===b.key),l=this.privacySettings.find(b=>"display_who_follows_me"===b.key),g=this.privacySettings.find(b=>"display_that_i_am_available_to_collaborate"===b.key),h=this.privacySettings.find(b=>"display_in_creator_directory"===b.key);o&&(o.infoIconLabel=this.Messages.ONLY_FOLLOWERS_TOGGLE_INFO.replace(/followers/g,n),this.cs.isWhiteLabelWeb&&(o.visible=!1,o.visibleForFan=!1)),a&&(a.infoIconLabel=this.Messages.MAKE_ACCOUNT_PRIVATE.replace(/followers/g,n)),this.cs.isWhiteLabelWeb&&(r&&(r.visible=!1,r.visibleForFan=!1),l&&(l.visible=!1,l.visibleForFan=!1),g&&(g.visible=!1,g.visibleForFan=!1),h&&(h.visible=!1,h.visibleForFan=!1))}initDeleteAccount(){this.deleteForm=this.fb.group({password:new u.p4("",this.deletePasswordValidators())})}deletePasswordValidators(){return this.hasPassword?[u.kI.required,u.kI.pattern(F.mL.PASSWORD),u.kI.minLength(_.Mx.EIGHT),u.kI.maxLength(_.Mx.TWENTY_FOUR)]:[]}openAccountAction(n){this.accountStatus=n,this.submitted=!1;const o=this.deleteForm.get("password");o.setValidators(this.deletePasswordValidators()),o.updateValueAndValidity()}checkvisibility(n){return this.isCreator?n.visible:n.visibleForFan}getPrivacySettingChecked(n){return this.getUserData&&Object.prototype.hasOwnProperty.call(this.getUserData,n.key)?!!this.getUserData[n.key]:n.defaultValue??!1}initChangePasswordForm(){const n=[u.kI.required,u.kI.pattern(F.mL.PASSWORD),u.kI.minLength(_.Mx.EIGHT),u.kI.maxLength(_.Mx.TWENTY_FOUR)];this.changePasswordForm=this.fb.group(this.hasPassword?{oldPassword:new u.p4("",[u.kI.required]),password:new u.p4("",n),confirmPassword:new u.p4("",[u.kI.required])}:{password:new u.p4("",n),confirmPassword:new u.p4("",[u.kI.required])},{validator:this.cs.checkMatch})}resetChangePasswordForm(){this.changePassSubmitted=!1,this.initChangePasswordForm()}loadIdentities(){this.identitiesLoading=!0,this.socialAuth.identities().pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.hasPassword=!1!==n?.has_password,this.googleConnected=!!n?.google,this.appleConnected=!!n?.apple,this.identitiesLoading=!1,this.initChangePasswordForm(),this.initDeleteAccount()},error:()=>{this.identitiesLoading=!1}})}connectProvider(n){this.socialAuth.start(n,"link").subscribe()}unlinkConfirmMessage(){return Qe.$X.DISCONNECT_CONFIRM.replace("{{provider}}","apple"===this.unlinkProviderName?Qe.$X.APPLE:Qe.$X.GOOGLE)}canUnlink(n){return!!this.hasPassword||("google"===n?this.appleConnected:"apple"===n&&this.googleConnected)}unlinkProvider(n){this.canUnlink(n)&&(this.unlinkProviderName=n,this.unlinkConfirmModal?.openModal())}confirmUnlink(){const n=this.unlinkProviderName;n&&this.socialAuth.unlink(n).pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{o?.status?this.loadIdentities():this.cs.showErrorMessage(o?.message)},error:o=>this.cs.showErrorMessage(o?.message)})}scrollToPassword(){this.cs.isBrowser&&document.getElementById("set-password")?.scrollIntoView({behavior:"smooth"})}
1getProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.isCreator=n?.is_creator,this.isFirstload||(this.isFirstload=!0,this.userProfile?.email&&this.getSharingData()),n?.sk&&(this.isPageLoading=!1)})}getNavigationURL(){return ne._1.AUTH_LOGIN}getMessage(){return`Your account has been ${this.accountStatus===M.Iv.DELETE?M.Iv.DELETED:M.Iv.SUSPENDED} successfully.`}getImage(){return this.accountStatus===M.Iv.DELETE?"../../../../../assets/images/svg/delete.svg":"../../../../../assets/images/svg/red-info-blank.svg"}showSuccessModal(){this.modalService.show(J.S,{initialState:{icon:this.getImage(),heading:`${this.accountStatus===M.Iv.SUSPEND?M.Iv.ACCOUNT_PAUSED:M.Iv.ACCOUNT_DELETED}`,navigateUrl:this.getNavigationURL(),description:this.successMessage,iconStyleClass:"confirm-creator-icon-bg",showCrossBtn:!1,buttonField:{type:"button",class:"btn btn-primary",label:M.Iv.OK}},class:"modal-lg",backdrop:"static"})}deleteAccount(n){this.submitted=!0,this.deleteForm.invalid||this.apiCallService.put(this.accountStatus===S.Vm.DELETE?x.Y9.deleteAccount:x.Y9.pauseAccount,this.hasPassword?{password:this.deleteForm.value.password}:{},!0).subscribe(r=>{r.status&&(this.successMessage=r.message,this.authService.removeDetails(),n.hide(),this.showSuccessModal())},r=>{this.cs.showErrorMessage(r.message)})}getSharingData(){const n={page:"1",limit:"5"};this.searchData&&(n.search=this.searchData);const o=new URLSearchParams(n).toString(),a=`${x.Y9.consentSharedByMe}?${o}`;this.isLoading=!0,this.apiCallService.get(a,!0).subscribe(r=>{r.status&&(this.totalSharingCount=r.total||0,this.getSharingDataInfo=r.data),this.isLoading=!1},r=>{this.cs.showErrorMessage(r.message),this.isLoading=!1})}switchBasicInfo(n,o){const a=Object.assign({userDetails:{gsi4pk:o.gsi4pk,first_name:o.first_name,last_name:o.last_name},is_restricted:n.target.checked});this.modalRef=this.modalService.show(Pe,{initialState:a,backdrop:"static"}),this.modalRef.onHide.subscribe(r=>{"success"===r?this.getSharingData():n.target.checked=!n.target.checked})}changePassword(n){this.changePassSubmitted=!0,this.changePasswordForm.invalid||this.isChangePasswordSubmitting||(this.isChangePasswordSubmitting=!0,this.hasPassword?this.apiCallService.put(x.Y9.changePassword,{password:this.changePasswordForm.controls.oldPassword.value,new_password:this.changePasswordForm.controls.password.value},!0).pipe((0,v.R)(this.destroy$),(0,it.x)(()=>{this.isChangePasswordSubmitting=!1})).subscribe(a=>{a.status?(this.resetChangePasswordForm(),this.authService.removeDetails(),this.authService.removeTheme(),this.cs.showSuccessMessage(a.message),n.show()):this.cs.showErrorMessage(a.message)},a=>{this.cs.showErrorMessage(a.message)}):this.socialAuth.setPassword(this.changePasswordForm.controls.password.value).pipe((0,v.R)(this.destroy$),(0,it.x)(()=>{this.isChangePasswordSubmitting=!1})).subscribe(a=>{a.status?(this.cs.showSuccessMessage(a.message),this.hasPassword=!0,this.resetChangePasswordForm()):this.cs.showErrorMessage(a.message)},a=>this.cs.showErrorMessage(a.message)))}getUsers(){this.apiCallService.get(x.Y9.getUsers,!0).subscribe(n=>{n.status&&(this.getUserData=n.data)})}allowOnlySubscribers(n,o){this.apiCallService.get(x.Y9.userPlan,!0).subscribe(a=>{0===a.data.length&&n.target.checked?(this.cs.showErrorMessage(G.w0.YOU_DOES_NOT_HAVE_ANY_ACTIVE_SUBSCRIPTION),n.target.checked=!n.target.checked):this.apiCallService.put(x.Y9.editUserPreferences,{[o]:n.target.checked},!0).subscribe(l=>{l.status&&this.cs.showSuccessMessage(l.message)},l=>{this.cs.showErrorMessage(l.message)})},a=>(this.cs.showErrorMessage(a.message),!1))}toggleAccountPrivacy(n,o){this.apiCallService.put(x.Y9.editUserPreferences,{[o]:n.target?.checked},!0).subscribe({next:r=>{r.status&&this.cs.showSuccessMessage(r.message)},error:r=>{this.cs.showErrorMessage(r.message),n.target&&(n.target.checked=!n.target?.checked)}})}displayAudience(n,o){o!==G.aV.IS_PRIVATE&&o!==G.aV.ONLY_FOLLOWERS_CAN_ACCESS_CONTENT?this.updatePrivacySettings({[o]:n.target.checked}):this.toggleAccountPrivacy(n,o)}updatePrivacySettings(n){this.apiCallService.put(x.Y9.editUserPreferences,n,!0).subscribe({next:o=>{o.status&&this.cs.showSuccessMessage(o.message)},error:o=>{this.cs.showErrorMessage(o.message)}})}moveToDashboard(){this.router.navigate(["dashboard"])}goToBlockUsers(){this.router.navigate(["edit-preference/block-users"])}seeMoreBasicInfo(){this.router.navigate(["edit-preference/basic-seeMore"],{queryParams:{email:this.userProfile.gsi4pk}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.QS),e.Y36(N.F),e.Y36(A.v),e.Y36(O.F0),e.Y36(ue.AuthService),e.Y36(le.yh),e.Y36(k.tT),e.Y36(c.P),e.Y36(At.x))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-privacy-password"]],viewQuery:function(o,a){if(1&o&&e.Gf(Dt,5),2&o){let r;e.iGM(r=e.CRH())&&(a.unlinkConfirmModal=r.first)}},decls:35,vars:21,consts:[[4,"ngIf"],["class","inside-container preference-container",4,"ngIf"],["bsModal","","id","warningModal","tabindex","-1","role","dialog","aria-labelledby","dialog-sizes-name1",1,"modal","fade"],["warningModal","bs-modal"],[1,"modal-dialog"],[1,"modal-content","modal
1-theme2"],[1,"modal-header"],[1,"modal-title"],["autocomplete","off",3,"formGroup","ngSubmit",4,"ngIf"],["bsModal","","id","lgModal","tabindex","-1","role","dialog",1,"modal","fade",3,"config"],["lgModal","bs-modal"],[1,"modal-dialog","modal-sm"],[1,"modal-content"],[1,"modal-successfull"],[1,"modal-body"],[1,"succesfull-image"],[1,"icon-litereset-password-success"],[1,"btn","btn-primary",3,"routerLink"],[3,"dynamicClass","ConfirmationMessage","headerLabel","commonEnum","modalOptions","confirmDelete"],["unlinkConfirmModal",""],["bsModal","","id","successModel","tabindex","-1","role","dialog",1,"modal","fade",3,"config"],["successModel","bs-modal"],[1,"modal-content","modal-theme2","modal-basic","modal-center-aligned"],[1,"modal-footer"],[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container"],["class","walletform-content",4,"ngIf"],[1,"walletform-content"],[1,"walletform-title"],[1,"allowContent"],[1,"preference-privacy-row","align-items-center"],[1,"info-link",3,"click"],[1,"icon-drop-down"],["class","preference-privacy-row align-items-center",4,"ngIf"],["class","walletform-content",4,"ngIf","ngIfElse"],["nonWhitelabelSharingInfo",""],[4,"ngFor","ngForOf"],["class","preference-privacy-row",4,"ngIf"],[1,"preference-privacy-row"],[1,"privacy-label","d-flex"],[3,"message","height","width",4,"ngIf"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[3,"message","height","width"],[1,"pause-info"],["dropdown","",1,"onboarding-validInfo","block-hint",3,"insideClick"],["dropdownToggle","","type","button",1,"dropdown-toggle"],[1,"icon-liteic-pass-info"],["class","dropdown-menu","role","menu",4,"dropdownMenu"],["role","menu",1,"dropdown-menu"],[4,"ngIf","ngIfElse"],["notACreator",""],[1,"preference-privacy-row","preference-privacy-allow","wls-sharing-info"],[1,"preference-privacy-image"],[1,"wls-sharing-info-text"],[1,"text-trans-none",3,"message"],["class","loader-container",4,"ngIf"],[1,"loader-container"],["class","preference-privacy-row preference-privacy-allow",4,"ngFor","ngForOf"],["class","col-12",4,"ngIf"],["class","allowContent-seeMore",3,"click",4,"ngIf"],[1,"preference-privacy-row","preference-privacy-allow"],[1,"profileImage"],["appDisableRightClick","","appMobileOptimization","","loading","lazy","decoding","async",3,"originalUrl","src","format","alt",4,"ngIf"],["class","icon-litesingle_profile",4,"ngIf"],["appDisableRightClick","","appMobileOptimization","","loading","lazy","decoding","async",3,"originalUrl","src","format","alt"],[1,"icon-litesingle_profile"],[1,"col-12"],["class","not-found-pane card-not-found",4,"ngIf"],[1,"not-found-pane","card-not-found"],["icomoonClassName","icon-litenouser_icon"],[1,"allowContent-seeMore",3,"click"],["class","allowContent",4,"ngIf"],[1,"preference-privacy-row","align-items-center","social-signin-row"],[1,"email-icon-container"],[1,"icon-litesimple-envelope"],["type","button","class","btn btn-link social-disconnect-btn social-active",4,"ngIf"],[1,"social-provider-label"],["alt","",1,"social-provider-logo",3,"src"],[1,"social-provider-actions"],["type","button","class","btn btn-secondary social-connect-btn",3,"click",4,"ngIf"],["type","button","class","btn btn-link social-disconnect-btn",3,"ngClass",4,"ngIf"],["class","cursor-pointer icon-delete-filled",3,"click",4,"ngIf"],[1,"social-provider-logo","social-provider-logo-apple"],["type","button",1,"btn","btn-link","social-disconnect-btn","social-active"],["type","button",1,"btn","btn-secondary","social-connect-btn",3,"click"],["type","button",1,"btn","btn-link","social-disconnect-btn",3,"ngClass"],[1,"cursor-pointer","icon-delete-filled",3,"click"],["id","set-password",3,"formGroup"],[1,"row"],[1,"form-group","position-relative"],[3,"control","label","infoMessage","inputId","inputClass","keypressEvent"],["class","alert-dang",4,"ngIf"],[3,"control","label","inputId","inputClass"],[1,"form-group-btn"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["class","loading-spinner",4,"ngIf"],[1,"form-group"],[3,"control","label"],[1,"alert-dang"],[1,"loading-spinner"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"modal-body","modal-warning"],["class","form-group",4,"ngIf"],["type","reset",1,"btn","btn-default",3,"click"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(o,a){1&o&&(e.YNc(0,Nt,1,0,"app-privacy-password-skeleton",0),e.YNc(1,Do,3,2,"div",1),e.TgZ(2,"div",2,3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h4",7),e._uU(8),e.qZA()(),e.YNc(9,Bo,11,8,"form",8),e.qZA()()(),e.TgZ(10,"div",9,10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",14)(16,"div",15),e._UZ(17,"em",16),e.qZA(),e.TgZ(18,"h4",7),e._uU(19),e.qZA(),e.TgZ(20,"p"),e._uU(21),e.qZA(),e.TgZ(22,"a",17),e._uU(23),e.qZA()()()()()(),e.TgZ(24,"a
1pp-confirmation-modal",18,19),e.NdJ("confirmDelete",function(){return a.confirmUnlink()}),e.qZA(),e.TgZ(26,"div",20,21)(28,"div",11)(29,"div",22)(30,"div",14),e._uU(31),e.qZA(),e.TgZ(32,"div",23)(33,"a",17),e._uU(34),e.qZA()()()()()),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isPageLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(7),e.hij(" ",a.accountStatus===a.PRIVACY_PASSWORD_CONSTANTS.actions.SUSPEND?a.PRIVACY_PASSWORD_CONSTANTS.titles.CONFIRM_PAUSE_ACCOUNT:a.PRIVACY_PASSWORD_CONSTANTS.titles.DELETE_WARNING," "),e.xp6(1),e.Q6J("ngIf",a.deleteForm),e.xp6(1),e.Q6J("config",e.DdM(18,_n)),e.xp6(9),e.Oqu(a.PRIVACY_PASSWORD_CONSTANTS.titles.PASSWORD_RESET_COMPLETE),e.xp6(2),e.Oqu(a.PRIVACY_PASSWORD_CONSTANTS.messages.PASSWORD_CHANGED),e.xp6(1),e.Q6J("routerLink","/auth/login"),e.xp6(1),e.Oqu(a.AUTH_CONSTANTS.SIGN_IN),e.xp6(1),e.Q6J("dynamicClass","delete-modal")("ConfirmationMessage",a.unlinkConfirmMessage())("headerLabel",a.AUTH_CONSTANTS.DISCONNECT_CONFIRM_TITLE)("commonEnum",a.commonEnum)("modalOptions",e.DdM(19,Ro)),e.xp6(2),e.Q6J("config",e.DdM(20,_n)),e.xp6(5),e.Oqu(a.successMessage),e.xp6(2),e.Q6J("routerLink",a.accountStatus===a.PRIVACY_PASSWORD_CONSTANTS.actions.DELETE?"/home":"/auth/login"),e.xp6(1),e.hij(" ",a.PRIVACY_PASSWORD_CONSTANTS.buttons.OK," "))},dependencies:[p.mk,p.sg,p.O5,u._Y,u.JL,u.sg,ke.e,fe.Hz,fe.Mq,fe.TO,ce.l,Ke.R,k.oB,Ze.m,Fe.Y,De.z,Ne.J,O.rH,ht.v,Ct.C,bt,p.Ov,at.j],styles:['.pencil-edit[_ngcontent-%COMP%]{cursor:pointer;top:calc(50% - 11px)!important;font-size:20px!important}.watermark-input-container[_ngcontent-%COMP%]{width:calc(100% - 140px)}.watermark-btn[_ngcontent-%COMP%]{max-width:120px}.watermark-input-enable[_ngcontent-%COMP%]{padding-right:46px!important}.profileImage[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:var(--configBgColor)!important}.profileImage[_ngcontent-%COMP%]   .icon-litesingle_profile[_ngcontent-%COMP%]:before{color:#09c6da;font-size:14px}.checkmark[_ngcontent-%COMP%]{top:-3px;display:flex!important;align-items:center;justify-content:center}.checkmark[_ngcontent-%COMP%]:after{display:none!important}.checkmark.icon-liteicon-black-tick[_ngcontent-%COMP%]:before{line-height:0;font-size:10px;color:var(--configButtonTextColor)}@media (min-width: 992px){.checkmark.icon-liteicon-black-tick[_ngcontent-%COMP%]:before{font-size:14px}}.checkmark.icon-liteicon-black-tick.checkbox-dummy-disabled[_ngcontent-%COMP%]:before{color:transparent}.watermark-form[_ngcontent-%COMP%]{display:flex;gap:16px}.watermark-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:50%}.watermark-form[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%]{top:50%;transform:translateY(-50%);bottom:unset}@media (max-width: 768px){.watermark-form[_ngcontent-%COMP%]{flex-direction:column}.watermark-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%}}@media (max-width: 992px){[_nghost-%COMP%]     .watermark-form .ng-select-container{height:55px!important}}.watermark-sub-row[_ngcontent-%COMP%]{padding:0!important}@media (max-width: 992px){.watermark-row[_ngcontent-%COMP%]{padding-bottom:0!important}}.watermark-row[_ngcontent-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding-left:0}.watermark-row[_ngcontent-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:unset}.watermark-row[_ngcontent-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]   .option-label[_ngcontent-%COMP%]{order:1}@media screen and (max-width: 991px){.input-watermark-container[_ngcontent-%COMP%]{flex-direction:column!important;align-items:unset!important}.watermark-input-container[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 767px){.pencil-edit[_ngcontent-%COMP%]{top:calc(50% - 6px)!important}}  .privacy-label .info-icon-toggle{margin-left:8px!important}  .privacy-label p{margin-right:5px!important;padding-right:0!important}  .privacy-label .onboarding-validInfo .left-0{left:-27px!important}  .privacy-label .onboarding-validInfo .left-0.dropdown-menu:before{left:33px!important}  .privacy-label .onboarding-validInfo .left-0.dropdown-menu:after{left:33px!important}  .privacy-label .dropdown-menu{left:-88px!important}  .privacy-label .dropdown-menu:before{content:"";border-left:solid 8px transparent;border-right:solid 8px transparent;border-bottom:solid 8px rgba(29,233,182,.3);height:0;position:absolute;width:0;left:93px;right:0;display:flex;justify-content:center;align-items:center;top:-8px}  .privacy-label .dropdown-menu:after{content:"";border-left:solid 8px transparent;border-right:solid 8px transparent;border-bottom:solid 8px #000000;height:0;position:absolute;width:0;left:93px;right:0;display:flex;justify-content:center;align-items:center;top:-6px}.text-trans-none[_ngcontent-%COMP%]{text-transform:none}.wls-sharing-info[_ngcontent-%COMP%]{margin:0!important}.wls-sharing-info[_ngcontent-%COMP%]   .wls-sharing-info-text[_ngcontent-%COMP%]{font-size:16px!important}
1.social-provider-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin:0}.social-provider-logo[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;flex-shrink:0}.social-provider-logo-apple[_ngcontent-%COMP%]{background:currentColor;mask:url(/assets/images/svg/apple-logo.svg) center/contain no-repeat;-webkit-mask:url(/assets/images/svg/apple-logo.svg) center/contain no-repeat}.social-signin-row[_ngcontent-%COMP%]{align-items:center!important;border:none!important}.social-signin-row[_ngcontent-%COMP%]   .social-connect-btn[_ngcontent-%COMP%], .social-signin-row[_ngcontent-%COMP%]   .social-disconnect-btn[_ngcontent-%COMP%]{margin:0;display:inline-flex;align-items:center;justify-content:flex-end;min-height:36px;padding:8px 15px;text-transform:none;line-height:1.2;box-sizing:border-box;background:var(--configThemeColor)!important;color:var(--configButtonTextColor)!important;font-weight:800}.social-signin-row[_ngcontent-%COMP%]   .social-active[_ngcontent-%COMP%]{border:1px solid var(--theme-interactive-link)!important;background:none!important;color:var(--configThemeColor)!important}.social-provider-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.social-provider-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:26px}.social-provider-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]:before{color:var(--configThemeColor)!important}body.theme-whiteLabel[_nghost-%COMP%]   .social-connect-btn[_ngcontent-%COMP%], body.theme-whiteLabel   [_nghost-%COMP%]   .social-connect-btn[_ngcontent-%COMP%]{background:var(--configThemeColor)!important;color:var(--configButtonTextColor)!important}.icon-litereset-password-success[_ngcontent-%COMP%]:before{font-size:80px;color:var(--theme-interactive-link)}[_nghost-%COMP%]     .preference-container .walletform-container .form-group .icon-litepassword-eye-closed, [_nghost-%COMP%]     .preference-container .walletform-container .form-group .icon-litepassword-eye-open{position:unset!important}.email-icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}']}),i})();var ge=d(8239),Ue=d(36705),un=d(81037),Go=d(61528),f=d(75078),Oe=d(92340),mn=d(11853),ae=d(61354),tt=d(42478);function Yo(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.closeModal())}),e._UZ(1,"em",4),e.qZA()}}function Jo(i,s){1&i&&e._UZ(0,"app-loader")}function Vo(i,s){if(1&i&&(e.TgZ(0,"div",12)(1,"span"),e._uU(2),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.LABELS.STEP_INDICATOR)}}function Wo(i,s){if(1&i&&(e.TgZ(0,"div")(1,"p",13),e._uU(2),e.qZA(),e.TgZ(3,"p",14),e._uU(4),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.LABELS.SECTION_DESCRIPTION),e.xp6(2),e.Oqu(t.LABELS.CNAME_NOTE)}}function Ho(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",15)(2,"div",16)(3,"label",17),e._uU(4),e.qZA(),e._UZ(5,"app-input",18),e.qZA(),e.TgZ(6,"div",16)(7,"label",17),e._uU(8),e.qZA(),e._UZ(9,"app-input",18),e.qZA()(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);e.xp6(4),e.Oqu(o.getCnameHostLabel(n)),e.xp6(1),e.Q6J("field",o.getFieldConfig("host_"+n,t.host))("form",o.recordsForm),e.xp6(3),e.Oqu(o.getCnameValueLabel(n)),e.xp6(1),e.Q6J("field",o.getFieldConfig("value_"+n,t.value))("form",o.recordsForm)}}function Qo(i,s){if(1&i&&(e.TgZ(0,"div",19)(1,"div",16)(2,"label",17),e._uU(3),e.qZA(),e._UZ(4,"app-input",18),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.ekj("full-width",!t.viewOnly),e.xp6(2),e.Oqu(t.getForwardHostLabel()),e.xp6(1),e.Q6J("field",t.getFieldConfig("forwardHost",t.forwardHost))("form",t.recordsForm)}}function Ko(i,s){if(1&i&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&i){const t=s.$implicit;e.xp6(1),e.Oqu(t)}}function zo(i,s){if(1&i&&(e.TgZ(0,"div",23)(1,"h5",24),e._uU(2),e.qZA(),e.TgZ(3,"ul",25),e.YNc(4,Ko,2,1,"li",8),e.qZA()()),2&i){const t=s.$implicit;e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngForOf",t.items)}}function $o(i,s){if(1&i&&(e.TgZ(0,"div",20)(1,"h4",21),e._uU(2),e.qZA(),e.YNc(3,zo,5,2,"div",22),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.providerInstructions.title),e.xp6(1),e.Q6J("ngForOf",t.providerInstructions.steps)}}function jo(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",26)(1,"app-button",27),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBack())}),e.qZA(),e.TgZ(2,"app-button",27),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onVerify())}),e.qZA(),e.TgZ(3,"span",28),e._uU(4),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("btnField",t.backBtn),e.xp6(1),e.Q6J("btnField",t.verifyBtnConfig),e.xp6(2),e.Oqu(t.LABELS.DNS_PROPAGATION_NOTE_LONG)}}function Xo(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Vo,3,1,"div",5),e.TgZ(2,"h3",6),e._uU(3),e.qZA(),e.YNc(4,Wo,5,2,"div",2),e.TgZ(5,"div",7),e.YNc(6,Ho,10,6,"ng-container",8),e.YNc(7,Qo,5,5,"div",9),e.qZA(),e.YNc(8,$o,4,2,"div",10),e.YNc(9,jo,5,3,"div",11),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.viewOnly),e.xp6(2),e.AsE("",t.viewOnly?t.LABELS.MODAL_TITLE:t.LABELS.SECTION_TIT
1LE," ",null!=t.dnsProviderDetail&&t.dnsProviderDetail.name?"("+(null==t.dnsProviderDetail?null:t.dnsProviderDetail.name)+")":"",""),e.xp6(1),e.Q6J("ngIf",!t.viewOnly),e.xp6(2),e.Q6J("ngForOf",t.cnameRecords),e.xp6(1),e.Q6J("ngIf",t.forwardHost),e.xp6(1),e.Q6J("ngIf",t.providerInstructions),e.xp6(1),e.Q6J("ngIf",!t.viewOnly)}}let fn=(()=>{const s=class{constructor(n,o,a,r){this.fb=n,this.clipboardService=o,this.cs=a,this.bsModalRef=r,this.cnameData=null,this.isVerifying=!1,this.domainType="",this.isForwarding=!1,this.viewOnly=!1,this.isLoading=!1,this.dnsProviderDetail=null,this.verify=new e.vpe,this.back=new e.vpe,this.LABELS=f.xE,this.cnameRecords=[],this.forwardHost="",this.providerInstructions=null}closeModal(){this.bsModalRef?.hide()}ngOnInit(){this.initRecords(),this.loadProviderInstructions(),this.initForm(),this.initButtonConfigs()}ngOnChanges(n){(n.dnsProviderDetail||n.domainType||n.isForwarding||n.cnameData)&&(this.initRecords(),this.loadProviderInstructions())}loadProviderInstructions(){const n=this.dnsProviderDetail?.id,a="root"===this.domainType;let r;r=(n?f.H1[n]:null)||(a&&this.isForwarding?f.A4:a&&!this.isForwarding?f.yF:"subdomain"===this.domainType?f.D7:f.H1.other);const l=(this.forwardHost||this.LABELS.DEFAULT_FORWARD_URL).replace(/^https?:\/\//,"");this.providerInstructions={title:r.title,steps:r.steps.map(g=>({title:g.title,items:g.items.map(h=>h.replace("{forwardUrl}",l))}))}}initRecords(){this.cnameData&&(this.cnameRecords=this.cnameData.cnameRecords,this.forwardHost=this.cnameData.forwardHost||"")}initForm(){const n={};this.forwardHost&&(n.forwardHost=[{value:this.forwardHost,disabled:!0}]),this.cnameRecords.forEach((o,a)=>{n[`host_${a}`]=[{value:o.host,disabled:!0}],n[`value_${a}`]=[{value:o.value,disabled:!0}]}),this.recordsForm=this.fb.group(n)}initButtonConfigs(){this.backBtn={type:"button",label:this.LABELS.BACK_BTN,class:"btn",name:"back"},this.verifyBtn={type:"button",label:this.LABELS.VERIFY_CONTINUE_BTN,class:"btn btn-primary",name:"verify"}}getFieldConfig(n,o){return{type:M.sf.TEXT,name:n,label:"",class:"",disabled:!0,suffixButton:{label:this.LABELS.COPY_BTN,onClick:()=>this.copyToClipboard(o)}}}get verifyBtnConfig(){return{...this.verifyBtn,disabled:this.isVerifying,loading:this.isVerifying}}getCnameHostLabel(n){const a=this.cnameRecords[n]?.type||"CNAME";return this.isForwarding?this.LABELS.FORWARDING_CNAME_NAME_LABEL.replace("{number}",String(n+1)):`${a} Host #${n+1}`}getCnameValueLabel(n){return this.LABELS.CNAME_VALUE_LABEL.replace("{number}",String(n+1))}getForwardHostLabel(){return this.isForwarding?this.LABELS.FORWARDING_HOST_LABEL:this.LABELS.FORWARD_HOST_LABEL}copyToClipboard(n){this.clipboardService.copy(n),this.cs.showSuccessMessage("Copied successfully")}onBack(){this.back.emit()}onVerify(){this.verify.emit()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu),e.Y36(mn.Yv),e.Y36(A.v),e.Y36(k.UZ,8))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-wls-dns-records"]],inputs:{cnameData:"cnameData",isVerifying:"isVerifying",domainType:"domainType",isForwarding:"isForwarding",viewOnly:"viewOnly",isLoading:"isLoading",dnsProviderDetail:"dnsProviderDetail"},outputs:{verify:"verify",back:"back"},features:[e.TTD],decls:4,vars:6,consts:[[1,"wls-dns-records",3,"formGroup"],["type","button","class","modal-close-btn",3,"click",4,"ngIf"],[4,"ngIf"],["type","button",1,"modal-close-btn",3,"click"],[1,"icon-liteicon-close"],["class","steps-circle",4,"ngIf"],[1,"section-title"],[1,"cname-records"],[4,"ngFor","ngForOf"],["class","forward-host-row",4,"ngIf"],["class","provider-instructions",4,"ngIf"],["class","action-buttons",4,"ngIf"],[1,"steps-circle"],[1,"section-description","mb-2"],[1,"cname-note"],[1,"cname-row"],[1,"cname-field"],[1,"field-label"],[3,"field","form"],[1,"forward-host-row"],[1,"provider-instructions"],[1,"instructions-title"],["class","instruction-step",4,"ngFor","ngForOf"],[1,"instruction-step"],[1,"step-title"],[1,"step-items"],[1,"action-buttons"],[3,"btnField","handleButtonClick"],[1,"dns-propagation-note"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Yo,2,0,"button",1),e.YNc(2,Jo,1,0,"app-loader",2),e.YNc(3,Xo,10,8,"ng-container",2),e.qZA()),2&o&&(e.ekj("view-only-mode",a.viewOnly),e.Q6J("formGroup",a.recordsForm),e.xp6(1),e.Q6J("ngIf",a.viewOnly),e.xp6(1),e.Q6J("ngIf",a.isLoading),e.xp6(1),e.Q6J("ngIf",!a.isLoading))},dependencies:[p.sg,p.O5,u.JL,u.sg,ae.r,tt.s,Ke.R],styles:[".wls-dns-records[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:24px;padding:24px;border-radius:12px}
1.wls-dns-records[_ngcontent-%COMP%]   .modal-close-btn[_ngcontent-%COMP%]{position:absolute;top:21px;right:16px;background:none;border:none;cursor:pointer;font-size:20px;color:var(--configBgTextColor);padding:4px;line-height:1}.wls-dns-records[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configPostTextColor);margin:0}.wls-dns-records[_ngcontent-%COMP%]   .section-description[_ngcontent-%COMP%], .wls-dns-records[_ngcontent-%COMP%]   .cname-note[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0;line-height:1.5}.wls-dns-records[_ngcontent-%COMP%]   .cname-records[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.wls-dns-records[_ngcontent-%COMP%]   .cname-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:24px}.wls-dns-records[_ngcontent-%COMP%]   .forward-host-row[_ngcontent-%COMP%]{display:flex;width:100%}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]{flex:1;min-width:280px;display:flex;flex-direction:column;gap:8px}.wls-dns-records[_ngcontent-%COMP%]   .cname-field.full-width[_ngcontent-%COMP%]{max-width:calc(50% - 12px)}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configPostTextColor)}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .form-group{margin:0}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .input-container{background-color:var(--configBgColor);border-radius:28px;overflow:hidden}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .form-control{background-color:transparent;border:none;border-radius:28px;color:var(--configBgTextColor)!important;font-size:14px;font-family:monospace;padding-right:70px}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .form-control:focus{outline:none;box-shadow:none}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .form-control.disable-input{cursor:default;opacity:1}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]     app-input .suffix-btn{right:12px}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;padding:24px;background-color:var(--configBgColor);color:var(--configBgTextColor)!important;border-radius:16px;margin-top:8px}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instructions-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--configBgTextColor)!important;margin:0}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instruction-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instruction-step[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--configThemeColor);margin:0}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instruction-step[_ngcontent-%COMP%]   .step-items[_ngcontent-%COMP%]{margin:0;padding-left:20px}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instruction-step[_ngcontent-%COMP%]   .step-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor)!important;line-height:1.6;margin-bottom:8px}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]   .instruction-step[_ngcontent-%COMP%]   .step-items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-top:16px}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-back[_ngcontent-%COMP%]{background:transparent;border:none;color:var(--configPostTextColor);font-size:14px;font-weight:600;cursor:pointer;padding:12px 24px}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-back[_ngcontent-%COMP%]:hover{color:var(--configThemeColor)}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;background-color:var(--configThemeColor);color:var(--configButtonTextColor);border:none;border-radius:8px;padding:12px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s ease}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){opacity:.9}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{width:16px;height:16px;border:2px solid var(--configButtonTextColor);border-top-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.wls-dns-records.view-only-mode[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:16px;min-height:200px}.wls-dns-records.view-only-mode[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{font-size:20px;margin-bottom:8px}.wls-dns-records.view-only-mode[_ngcontent-%COMP%]   app-loader[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:150px}@media (max-width: 768px){.wls-dns-records[_ngcontent-%COMP%]{padding:16px;gap:20px}.wls-dns-records[_ngcontent-%COMP%]   .cname-row[_ngcontent-%COMP%]{flex-direction:column;gap:16px}.wls-dns-records[_ngcontent-%COMP%]   .cname-field[_ngcontent-%COMP%]{min-width:100%}.wls-dns-records[_ngcontent-%COMP%]   .cname-field.full-width[_ngcontent-%COMP%]{max-width:100%}.wls-dns-records[_ngcontent-%COMP%]   .provider-instructions[_ngcontent-%COMP%]{padding:16px}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{flex-direction:row}.wls-dns-records[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{flex:1}}"]}),i})();var Je=d(88893),Y=(()=>{return(i=Y||(Y={})).STANDARD="Standard",i.CUSTOM="Custom",i.THEME="Theme",Y;var i})();const ct={standard:{"STANDARD-DEFAULT":{id:"STANDARD-DEFAULT",type:Y.STANDARD,background_color:"#013956",background_text_color:"#ffffff",card_background_color:"#002740",card_text_color:"#ffffff",button_color:"#09c6da",button_text_color:"#000000"}
1,"STANDARD-LIGHT":{id:"STANDARD-LIGHT",type:Y.STANDARD,background_color:"#f7f8fa",background_text_color:"#292929",card_background_color:"#ffffff",card_text_color:"#292929",button_color:"#09c6da",button_text_color:"#000000"},"STANDARD-DARK":{id:"STANDARD-DARK",type:Y.STANDARD,background_color:"#191a1c",background_text_color:"#ffffff",card_background_color:"#272a2b",card_text_color:"#ffffff",button_color:"#09c6da",button_text_color:"#000000"},"STANDARD-1":{id:"STANDARD-1",type:Y.STANDARD,background_color:"#FCB904",background_text_color:"#463811",card_background_color:"#FFC937",card_text_color:"#463811",button_color:"#463811",button_text_color:"#FCB904"},"STANDARD-2":{id:"STANDARD-2",type:Y.STANDARD,background_color:"#CF2F2F",background_text_color:"#FFFFFF",card_background_color:"#E04545",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#CF2F2F"},"STANDARD-3":{id:"STANDARD-3",type:Y.STANDARD,background_color:"#9C51E2",background_text_color:"#FFFFFF",card_background_color:"#AC5EF5",card_text_color:"#FFFFFF",button_color:"#200737",button_text_color:"#FFFFFF"},"STANDARD-4":{id:"STANDARD-4",type:Y.STANDARD,background_color:"#002033",background_text_color:"#FFFFFF",card_background_color:"#0B4466",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#002033"},"STANDARD-5":{id:"STANDARD-5",type:Y.STANDARD,background_color:"#F68DA7",background_text_color:"#6A001A",card_background_color:"#FC9EB6",card_text_color:"#6A001A",button_color:"#6A001A",button_text_color:"#FFFFFF"},"STANDARD-6":{id:"STANDARD-6",type:Y.STANDARD,background_color:"#FF6A00",background_text_color:"#FFFFFF",card_background_color:"#FF7A1B",card_text_color:"#FFFFFF",button_color:"#693510",button_text_color:"#FFFFFF"},"STANDARD-7":{id:"STANDARD-7",type:Y.STANDARD,background_color:"#7DDCB7",background_text_color:"#194030",card_background_color:"#8FE7C5",card_text_color:"#194030",button_color:"#1F543F",button_text_color:"#FFFFFF"},"STANDARD-8":{id:"STANDARD-8",type:Y.STANDARD,background_color:"#000000",background_text_color:"#FFFFFF",card_background_color:"#242424",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#000000"}},theme:{NATURE:{id:"NATURE",type:Y.THEME,background_color:"#001E0C",background_text_color:"#FFFFFF",card_background_color:"#29583C",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#002033",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/nature.png"},SPACE:{id:"SPACE",type:Y.THEME,background_color:"#000000",background_text_color:"#FFFFFF",card_background_color:"#0D2843E5",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#000000",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/space.jpg"},SPEED:{id:"SPEED",type:Y.THEME,background_color:"#002740",background_text_color:"#FFFFFF",card_background_color:"#206484",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#0081BD",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/speed.jpg"},CALM:{id:"CALM",type:Y.THEME,background_color:"#8DDAF6",background_text_color:"#004E6A",card_background_color:"#9EE3FC",card_text_color:"#165971",button_color:"#004E6A",button_text_color:"#FFFFFF",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/calm.jpg"},VINTAGE:{id:"VINTAGE",type:Y.THEME,background_color:"#EDDDB5",background_text_color:"#463811",card_background_color:"#EDDDB5",card_text_color:"#463811",button_color:"#463811",button_text_color:"#FCB904",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/old.png"},GAMING:{id:"GAMING",type:Y.THEME,background_color:"#781D0E",background_text_color:"#FFFFFF",card_background_color:"#C63033",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#380203",background_image:"https://cdn-www.topfans.com/TopFans/Home/1761655458_gaming.jpg"},DREAMY:{id:"DREAMY",type:Y.THEME,background_color:"#ABD0FF",background_text_color:"#FFFFFF",card_background_color:"#EDF5FF",card_text_color:"#063B7C",button_color:"#066CEA",button_text_color:"#FFF4F2",background_image:"https://cdn-www.topfans.com/TopFans/Home/1761654831_dreaming.png"},DOODLE:{id:"DOODLE",type:Y.THEME,background_color:"#F6DAD8",background_text_color:"#461111",card_background_color:"#F6D8D8",card_text_color:"#7B5C0D",button_color:"#D25E47",button_text_color:"#FFF4F2",background_image:"https://cdn-www.topfans.com/To
1pFans/LIB-Themes/doodle.png"},"POLYGONS/BLUE":{id:"POLYGONS/BLUE",type:Y.THEME,background_color:"#2D75A2",background_text_color:"#FFFFFF",card_background_color:"#3798D6",card_text_color:"#FFFFFF",button_color:"#00395E",button_text_color:"#FFF4F2",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/1761743705_polygon_blue.png"},"POLYGONS/GREEN":{id:"POLYGONS/GREEN",type:Y.THEME,background_color:"#67884A",background_text_color:"#FFFFFF",card_background_color:"#84AE60",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#5D7F40",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/1761743755_polygon_green.png"},"POLYGONS/WHITE":{id:"POLYGONS/WHITE",type:Y.THEME,background_color:"#FFFFFF",background_text_color:"#3E3E3E",card_background_color:"#F0F0F0",card_text_color:"#000000",button_color:"#3E3E3E",button_text_color:"#FFFFFF",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/1761743755_polygon_grey.png"},"POLYGONS/GRAY":{id:"POLYGONS/GRAY",type:Y.THEME,background_color:"#3C3C3C",background_text_color:"#FFFFFF",card_background_color:"#414141",card_text_color:"#FFFFFF",button_color:"#FFFFFF",button_text_color:"#282828",background_image:"https://cdn-www.topfans.com/TopFans/LIB-Themes/1761803478_polygon_light_black.png"}},custom:{DEFAULT_CUSTOM:{id:"custom",type:Y.CUSTOM,background_color:"#FFFFFF",background_text_color:"#000000",card_background_color:"#F0F0F0",card_text_color:"#333333",button_color:"#007BFF",button_text_color:"#FFFFFF"}}};var Xt=d(36748),Ee=d(98329),xt=d(90883),hn=d(5998),Le=d(14625),en=d(87680),dt=d(72632),tn=d(65525),nn=d(53794),ei=d(58107),pt=d(97003);const ti=["previewIframe"],ni=["appearanceUpdatingModal"],oi=["advancedSettingsModal"];function ii(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",33),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.applyPalette(a.id))}),e._UZ(1,"div",34)(2,"div",34)(3,"div",34)(4,"div",34)(5,"div",34)(6,"div",34),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw(2);e.ekj("selected",n.selectedPaletteId===t.id),e.xp6(1),e.Udp("background",t.background_color),e.xp6(1),e.Udp("background",t.background_text_color),e.xp6(1),e.Udp("background",t.card_background_color),e.xp6(1),e.Udp("background",t.card_text_color),e.xp6(1),e.Udp("background",t.button_color),e.xp6(1),e.Udp("background",t.button_text_color)}}function ai(i,s){if(1&i&&(e.TgZ(0,"div",29)(1,"label",30),e._uU(2),e.qZA(),e.TgZ(3,"div",31),e.YNc(4,ii,7,14,"div",32),e.qZA()()),2&i){const t=e.oxw();e.xp6(2),e.Oqu(t.LABELS.CHOOSE_COLOR_PALETTE),e.xp6(2),e.Q6J("ngForOf",t.STANDARD_PALETTES)}}function si(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",35)(1,"div",36)(2,"label",37),e._uU(3),e.qZA(),e.TgZ(4,"div",38),e._UZ(5,"div",39),e.TgZ(6,"div",40),e._uU(7),e.qZA(),e.TgZ(8,"div",41),e._UZ(9,"span",42)(10,"span",42),e.TgZ(11,"input",43),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.bgColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.BG_COLOR,o))}),e.qZA()()()(),e.TgZ(12,"div",36)(13,"label",44),e._uU(14),e.qZA(),e.TgZ(15,"div",38),e._UZ(16,"div",39),e.TgZ(17,"div",40),e._uU(18),e.qZA(),e.TgZ(19,"div",41),e._UZ(20,"span",42)(21,"span",42),e.TgZ(22,"input",45),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.bgTextColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.BG_TEXT_COLOR,o))}),e.qZA()()()(),e.TgZ(23,"div",36)(24,"label",46),e._uU(25),e.qZA(),e.TgZ(26,"div",38),e._UZ(27,"div",39),e.TgZ(28,"div",40),e._uU(29),e.qZA(),e.TgZ(30,"div",41),e._UZ(31,"span",42)(32,"span",42),e.TgZ(33,"input",47),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.secondaryBgColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.SECONDARY_BG_COLOR,o))}),e.qZA()()()(),e.TgZ(34,"div",36)(35,"label",48),e._uU(36),e.qZA(),e.TgZ(37,"div",38),e._UZ(38,"div",39),e.TgZ(39,"div",40),e._uU(40),e.qZA(),e.TgZ(41,"div",41),e._UZ(42,"span",42)(43,"
1span",42),e.TgZ(44,"input",49),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.postTextColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.POST_TEXT_COLOR,o))}),e.qZA()()()(),e.TgZ(45,"div",36)(46,"label",50),e._uU(47),e.qZA(),e.TgZ(48,"div",38),e._UZ(49,"div",39),e.TgZ(50,"div",40),e._uU(51),e.qZA(),e.TgZ(52,"div",41),e._UZ(53,"span",42)(54,"span",42),e.TgZ(55,"input",51),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.themeColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.THEME_COLOR,o))}),e.qZA()()()(),e.TgZ(56,"div",36)(57,"label",52),e._uU(58),e.qZA(),e.TgZ(59,"div",38),e._UZ(60,"div",39),e.TgZ(61,"div",40),e._uU(62),e.qZA(),e.TgZ(63,"div",41),e._UZ(64,"span",42)(65,"span",42),e.TgZ(66,"input",53),e.NdJ("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.buttonTextColor=o)})("colorPickerChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onCustomColorChange(a.COLOR_TYPE.BUTTON_TEXT_COLOR,o))}),e.qZA()()()()()}if(2&i){const t=e.oxw();e.xp6(3),e.Oqu(t.LABELS.PAGE_BG_COLOR),e.xp6(2),e.Udp("background",t.bgColor),e.xp6(2),e.Oqu(t.bgColor),e.xp6(4),e.Q6J("colorPicker",t.bgColor)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(t.LABELS.BG_TEXT_COLOR),e.xp6(2),e.Udp("background",t.bgTextColor),e.xp6(2),e.Oqu(t.bgTextColor),e.xp6(4),e.Q6J("colorPicker",t.bgTextColor)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(t.LABELS.POST_BG_COLOR),e.xp6(2),e.Udp("background",t.secondaryBgColor),e.xp6(2),e.Oqu(t.secondaryBgColor),e.xp6(4),e.Q6J("colorPicker",t.secondaryBgColor)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(t.LABELS.POST_TEXT_COLOR),e.xp6(2),e.Udp("background",t.postTextColor),e.xp6(2),e.Oqu(t.postTextColor),e.xp6(4),e.Q6J("colorPicker",t.postTextColor)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(t.LABELS.LOGO_BUTTON_COLOR),e.xp6(2),e.Udp("background",t.themeColor),e.xp6(2),e.Oqu(t.themeColor),e.xp6(4),e.Q6J("colorPicker",t.themeColor)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(t.LABELS.BUTTON_TEXT_COLOR),e.xp6(2),e.Udp("background",t.buttonTextColor),e.xp6(2),e.Oqu(t.buttonTextColor),e.xp6(4),e.Q6J("colorPicker",t.buttonTextColor)("cpOutputFormat","hex")}}const ri=function(i){return{selected:i}};function li(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",56),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.applyThemePreset(a.id))}),e.TgZ(1,"div",57),e._uU(2),e.qZA()()}if(2&i){const t=s.$implicit,n=e.oxw(2);e.Q6J("ngClass",e.VKq(2,ri,n.selectedPaletteId===t.id)),e.xp6(2),e.hij(" ",n.formatPresetName(t.id)," ")}}function ci(i,s){if(1&i&&(e.TgZ(0,"div",54),e.YNc(1,li,3,4,"div",55),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.THEME_PRESETS)}}function di(i,s){if(1&i&&e._UZ(0,"img",66),2&i){const t=e.oxw(2);e.Q6J("src",t.fontPreviewDataUrl,e.LSH)}}function pi(i,s){if(1&i&&(e.TgZ(0,"span",67),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);let n;e.xp6(1),e.hij(" ",(null==(n=t.appearanceForm.get("user_text"))?null:n.value)||t.userFullName," ")}}function gi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",58),e._UZ(1,"app-input",6),e.TgZ(2,"div",59),e._uU(3),e.qZA(),e.TgZ(4,"div",60)(5,"button",61),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectPrevFont())}),e._UZ(6,"em",62),e.qZA(),e.YNc(7,di,1,1,"img",63),e.YNc(8,pi,2,1,"span",64),e.TgZ(9,"button",61),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectNextFont())}),e._UZ(10,"em",65),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("field",t.userTextField)("form",t.appearanceForm),e.xp6(2),e.hij(" ",t.LABELS.LOGO_FONT," "),e.xp6(1),e.Udp("background-color",t.bgColor)("--pill-theme-color",t.themeColor)("--pill-bg-text-color",t.bgTextColor),e.xp6(1),e.Udp("color",t.bgTextColor),e.Q6J("disabled",t.currentFontIndex<=0),e.xp6(2),e.Q6J("ngIf",t.fontPreviewDataUrl),e.xp6(1),e.Q6J("ngIf",!t.fontPreviewDataUrl),e.xp6(1),e.Udp("color",t.bgTextColor),e.Q6J("disabled",t.currentFontIndex>=t.fonts.length-1)}}const _i=function(i){return{type:"button",label:i,class:"btn btn-primary select-file-btn"}};function ui(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",71)(1,"label",72)(2,"input",73,74),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.pickBannerImage(o))}),e.qZA(),e.TgZ(4,"div",75),e._UZ(5,"em",76),e.TgZ(6,"div",77),e._uU(7),e.qZA(),e.TgZ(8,"div",78),e._uU(9),e.qZA(),e.TgZ(10,"app-button",21),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.MAs(3);return e.KtG(o.click())}),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(7),e.Oqu(t.LABELS.UPLOAD_LOGO_IMAGE),e.xp6(2),e.hij(" ",t.LABELS.LOGO_IMAGE_RECOMMENDATION," "),e.xp6(1),e.Q6J("btnField",e.VKq(3,_i,t.LABELS.SELECT_FILE))}}function mi(i,s){if(1&i&&(e.TgZ(0,"div",83),e._UZ(1,"circle-progress",84),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("percent",t.percent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",t.cs.isWhiteLabelWeb?null==t.cs.whiteLabelData||null==t.cs.whiteLabelData.data||null==t.cs.whiteLabelData.data.whiteLabel?null:t.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}function fi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",79),e.YNc(1,mi,2,14,"div",80),e._UZ(2,"img",81),e.TgZ(3,"button",82),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.deleteCurrentLogo())}),e.TgZ(4,"span"),e._uU(5,"\xd7"),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.showProgress&&t.cs.isBrowser),e.xp6(1),e.Q6J("src",t.logoPreview.includes("blob:")?t._d.bypassSecurityTrustUrl(t.logoPreview):t.logoPreview,e.LSH)}}function hi(i,s){if(1&i&&(e.TgZ(0,"div",68),e.YNc(1,ui,11,5,"div",69),e.YNc(2,fi,6,2,"div",70),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.logoPreview),e.xp6(1),e.Q6J("ngIf",t.logoPreview)}}function Ci(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",85)(1,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setActivePreviewTab(o.PREVIEW_TABS.COVER_PAGE))}),e.TgZ(2,"span"),e._uU(3),e.qZA()(),e.TgZ(4,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setActivePreviewTab(o.PREVIEW_TABS.FEED_PAGE))}),e.TgZ(5,"span"),e._uU(6),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(1),e.ekj("active",t.isCoverPagePreviewActive),e.xp6(2),e.Oqu(t.PREVIEW_TABS.COVER_PAGE),e.xp6(1),e.ekj("active",t.activePreviewTab===t.PREVIEW_TABS.FEED_PAGE),e.xp6(2),e.Oqu(t.PREVIEW_TABS.FEED_PAGE)}}function bi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"h4",19),e._uU(2),e.qZA(),e.TgZ(3,"p",20),e._uU(4),e.qZA(),e.TgZ(5,"app-button",21),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openFullPreview())}),e.qZA(),e._UZ(6,"app-whitelabel-cover-page-preview",87),e.qZA()}if(2&i){const t=e.oxw();e.Udp("display",t.isCoverPagePreviewActive?null:"none"),e.xp6(2),e.Oqu(t.LABELS.COVER_PREVIEW_TITLE),e.xp6(2),e.Oqu(t.LABELS.COVER_PREVIEW_DESCRIPTION),e.xp6(1),e.Q6J("btnField",t.fullPreviewBtnConfig),e.xp6(1),e.Q6J("coverPageData",t.coverPageData)("isSelectorUsed",!0)("isNeedToRefreshColors",!0)("previewViewport",t.coverPagePreviewViewport)("previewBranding",t.coverPreviewBranding)}}function vi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"iframe",88,89),e.NdJ("load",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onIframeLoad())}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("src",t.profilePreviewUrl,e.uOi)}}function xi(i,s){if(1&i&&(e.TgZ(0,"p",90),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.AsE(" ",t.LABELS.PUBLISH_TIME_TEXT," ",e.xi3(2,2,t.expectedPublishTime,"MMM d, yyyy, h:mm a")," ")}}const Pi=function(i,s,t,n,o){return{cropperMinWidth:i,cropperMinHeight:s,cropperMaxWidth:t,cropperMaxHeight:n,recommendedText:o,maintainAspectRatio:!1}};function Oi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-image-cropper",91),e.NdJ("closeCrop",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancelCrop())})("cropImageUpload",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.pickLogo(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("imageChangeEvent",t.imageChangedEvent)("isOpen",t.isOpen)("cropperOptions",e.qbA(4,P
1i,t.LOGO_IMAGE_DIMENSIONS.MIN_WIDTH,t.LOGO_IMAGE_DIMENSIONS.HEIGHT,t.LOGO_IMAGE_DIMENSIONS.MAX_WIDTH,t.LOGO_IMAGE_DIMENSIONS.HEIGHT,t.LABELS.LOGO_IMAGE_CROPPER_RECOMMENDATION))("imageWidth",t.imageWidth)}}function Mi(i,s){if(1&i&&(e.TgZ(0,"p",95),e._uU(1),e.TgZ(2,"strong"),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.APPEARANCE_UPDATING_MODAL.READY_BY_PREFIX," "),e.xp6(2),e.Oqu(e.xi3(4,2,t.appearanceReadyAt,t.APPEARANCE_UPDATING_MODAL.DATE_FORMAT))}}function Ti(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",95),e._uU(1),e.TgZ(2,"strong",96),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onViewMySite())}),e._uU(3),e.qZA(),e._uU(4),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.APPEARANCE_UPDATING_MODAL.LOGIN_INFO_PREFIX," "),e.xp6(2),e.Oqu(t.wlsFullUrl),e.xp6(1),e.hij(" ",t.APPEARANCE_UPDATING_MODAL.LOGIN_INFO_SUFFIX," ")}}function wi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",92,93),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onViewMySite())}),e.YNc(2,Mi,5,5,"p",94),e.YNc(3,Ti,5,3,"p",94),e.TgZ(4,"p",95),e._uU(5),e.TgZ(6,"a",96),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.downloadOnboardingGuide())}),e._uU(7),e.qZA(),e._uU(8),e.qZA()()}if(2&i){const t=e.oxw();
1e.Q6J("headerLabel",t.APPEARANCE_UPDATING_MODAL.HEADER)("confirmBtnLabel",t.APPEARANCE_UPDATING_MODAL.VIEW_MY_SITE_BTN)("showCrossBtn",!0)("modalOptions",t.appearanceUpdatingModalOptions),e.xp6(2),e.Q6J("ngIf",t.appearanceReadyAt),e.xp6(1),e.Q6J("ngIf",t.wlsFullUrl),e.xp6(2),e.hij(" ",t.APPEARANCE_UPDATING_MODAL.ONBOARDING_GUIDE_PREFIX," "),e.xp6(2),e.Oqu(t.ONBOARDING_GUIDE.LINK),e.xp6(1),e.hij(" ",t.APPEARANCE_UPDATING_MODAL.ONBOARDING_GUIDE_SUFFIX," ")}}function Ei(i,s){if(1&i&&e._UZ(0,"app-dynamic-form-builder",100),2&i){const t=e.oxw(2);e.Q6J("form",t.advancedSettingsForm)("fields",t.advancedSettingsFields)("isEditMode",!1)}}const Ai=function(){return{backdrop:"static",class:"modal-dialog-centered modal-lg"}};function yi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",97,98),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onAdvancedSettingsConfirmed())}),e.YNc(2,Ei,1,3,"app-dynamic-form-builder",99),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("headerLabel",t.ADVANCED_SETTINGS.HEADER)("subHeader",t.ADVANCED_SETTINGS.SUBHEADER)("confirmBtnLabel",t.ADVANCED_SETTINGS.CONFIRM_BUTTON)("showCrossBtn",!0)("saveOnEnter",!0)("disableConfirmButton",t.isSaving||t.isPublishing)("confirmBtnLoading",t.isSaving||t.isPublishing)("modalOptions",e.DdM(9,Ai)),e.xp6(2),e.Q6J("ngIf",t.advancedSettingsForm&&t.advancedSettingsFields)}}let Si=(()=>{const s=class{get userTextField(){return{...f.lQ,placeholder:this.userFullName}}constructor(n,o,a,r,l,g,h,b){this.fb=n,this.renderer=o,this.cd=a,this._d=r,this.cs=l,this.uploadService=g,this.downloadService=h,this.formService=b,this.initialData=null,this.webURL="",this.isSaving=!1,this.userId="",this.userFullName="",this.userProfile=null,this.isPublishing=!1,this.isPreviewLoading=!1,this.lastPublishedAt=null,this.coverPageData=null,this.updateAndPublish=new e.vpe,this.advancedSettingsSave=new e.vpe,this.back=new e.vpe,this.delete=new e.vpe,this.preview=new e.vpe,this.publish=new e.vpe,this.LOGO_CANVAS_FONT_SIZE=144,this.FONT_PREVIEW_FONT_SIZE=64,this.LOGO_IMAGE_DIMENSIONS=f.fv,this.LABELS=f.MI,this.ADVANCED_SETTINGS=f.RV,this.APPEARANCE_UPDATING_MODA
1L=f.Bs,this.PREVIEW_TABS=f.Cf,this.coverPagePreviewViewport=xt.Y6.VIEWPORT.MOBILE,this.ONBOARDING_GUIDE=f.Gf.ONBOARDING_GUIDE,this.appearanceUpdatingModalOptions={backdrop:"static",class:"modal-dialog-centered modal-lg"},this.QUICK_PREVIEW=f.l0,this.ColorPaletteTypeEnum=f.gf,this.WhiteLableSiteEnum=f.Lz,this.COLOR_TYPE=f._P,this.STANDARD_PALETTES=Object.values(ct.standard),this.THEME_PRESETS=Object.values(ct.theme),this.fonts=f.RK,this.activePreviewTab=f.Cf.FEED_PAGE,this.advancedSettingsFields=f.dW,this.colorPaletteTypeField=f.UJ,this.logoTypeField=f.Fw,this.fontField=f.jL,this.fullPreviewBtn=f.Le,this.deleteBtn=f.TH,this.saveBtn=f.On,this.updateAndPublishBtn=f.zF,this.colorPaletteType=f.gf.STANDARD,this.selectedPaletteId="STANDARD-DEFAULT",this.backgroundImage=null,this.savedCustomColors=null,this.logoType=f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE,this.currentFont={name:f.RK[0]?.name??f.Lz.DEFAULT_FONT},this.logoPreview="",this.canvasImageDataUrl="",this.fontPreviewDataUrl="",this.percent=_.Mx.ZERO,this.showProgress=!1,this.destroy$=new q.x,this.isOpen=!1,this.imageChangedEvent="",this.imageWidth=0,this.profilePreviewUrl=null,this.appearanceReadyAt=null}updateProfilePreviewUrl(){if(!this.userId)return void(this.profilePreviewUrl=null);const n=this.cs.isBrowser?window.location.origin:"",o=new URLSearchParams({embed:"true",preview:"true",bg_color:this.bgColor||"",bg_text_color:this.bgTextColor||"",secondary_bg_color:this.secondaryBgColor||"",post_text_color:this.postTextColor||"",theme_color:this.themeColor||"",button_text_color:this.buttonTextColor||"",background_image:this.backgroundImage||""}),a=`${n}/${this.userId}/?${o.toString()}`;this.profilePreviewUrl=this._d.bypassSecurityTrustResourceUrl(a)}onIframeLoad(){setTimeout(()=>this.sendPreviewMessage(),_.Mx.THREE_HUNDRED)}sendPreviewMessage(){if(!this.cs.isBrowser||!this.previewIframe?.nativeElement?.contentWindow)return;const n=this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?this.canvasImageDataUrl||"":this.logoPreview||"",o={type:f.tm,data:{bg_color:this.bgColor,bg_text_color:this.bgTextColor,secondary_bg_color:this.secondaryBgColor,post_text_color:this.postTextColor,theme_color:this.themeColor,button_text_color:this.buttonTextColor,background_image:this.backgroundImage,is_text_logo:this.isTextLogo,user_text:this.appearanceForm?.get("user_text")?.value||"",user_font:this.appearanceForm?.get("user_font")?.value||"",logo_url:n}};this.previewIframe.nativeElement.contentWindow.postMessage(o,"*")}ngOnChanges(n){n.initialData&&!n.initialData.firstChange&&n.initialData.currentValue&&(this.initializeColors(),this.patchFormData(),this.updateProfilePreviewUrl()),n.userId&&n.userId.currentValue&&this.updateProfilePreviewUrl(),n.coverPageData&&this.syncPreviewTabWithCoverPageData(!!n.coverPageData.previousValue),n.userProfile&&!n.userProfile.firstChange&&this.patchAdvancedSettingsForm()}ngOnInit(){this.initForm(),this.initializeColors(),this.syncPreviewTabWithCoverPageData(!1),this.THEME_PRESETS.sort((n,o)=>n.id.localeCompare(o.id)),this.initialData?this.patchFormData():this.applyPalette(this.selectedPaletteId),this.updateProfilePreviewUrl(),this.scrollToTop(),this.cs.isBrowser&&(this.resizeListener=()=>this.updateCanvas(),window.addEventListener("resize",this.resizeListener)),this.appearanceForm.get("colorPaletteType")?.valueChanges.subscribe(n=>{this.setColorPaletteType(n)}),this.appearanceForm.get("logoType")?.valueChanges.subscribe(n=>{this.logoType=n,n===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?(this.logoPreview="",this.loadFont(this.currentFont.name)):(this.logoPreview&&this.logoPreview.startsWith("data:")&&(this.logoPreview=""),this.canvasImageDataUrl=""),this.sendPreviewMessage()}),this.appearanceForm.get("user_font")?.valueChanges.subscribe(n=>{n&&(this.currentFont={name:n},this.loadFont(n))}),this.appearanceForm.get("user_text")?.valueChanges.subscribe(()=>{this.updateCanvas()})}scrollToTop(){this.cs.isBrowser&&window.requestAnimationFrame(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})})}initForm(){this.appearanceForm=this.fb.group({colorPaletteType:[f.gf.STANDARD],logoType:[f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE],user_text:["",u.kI.required],user_font:[f.RK[0]?.name??f.Lz.DEFAULT_FONT]}),this.advancedSettingsForm=this.formService.toFormGroup(this.advancedSettingsFields)}syncPreviewTabWithCoverPageData(n){this.coverPageData?n||(this.activePreviewTab=this.PREVIEW_TABS.COVER_PAGE):this.activePreviewTab=this.PREVIEW_TABS.FEED_PAGE}initializeColors(){this.bgColor=this.initialData?.bg_color||f.fj.bg_color,this.bgTextColor=this.initialData?.bg_text_color||f.fj.bg_text_color,this.secondaryBgColor=this.initialData?.secondary_bg_color||f.fj.secondary_bg_color,this.postTextColor=this.initialData?.post_text_color||f.fj.post_text_color,this.themeColor=this.initialData?.theme_color||f.fj.theme_color,this.buttonTextColor=this.initialData?.button_text_color||f.fj.button_text_color,this.backgroundImage=this.initialData?.background_image||null,this.saveCurrentCustomColors()}patchFormData(){this.initialData&&(this.colorPaletteType=this.initialData.colorPaletteType,this.selectedPaletteId=this.initialData.colorPaletteType===f.gf.CUSTOM?"":this.initialData.selectedPaletteId,this.bgColor=this.initialData.bg_color,this.bgTextColor=this.initialData.bg_text_color,this.secondaryBgColor=this.initialData.secondary_bg_color,this.postTextColor=this.initialData.post_text_color,this.themeColor=this.initialData.theme_color,this.buttonTextColor=this.initialData.button_text_color,this.backgroundImage=this.initialData.background_image||null,this.logoType=this.initialData.logoType,this.logoPreview=this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?"":this.initialData.logo_url,this.currentFont={name:this.initialData.user_font||(this.fonts[0]?.n
1ame??f.Lz.DEFAULT_FONT)},this.initialData.custom_color?this.setSavedCustomColors({bgColor:this.initialData.custom_color.bgColor,bgTextColor:this.initialData.custom_color.bgTextColor,secondaryBgColor:this.initialData.custom_color.secondaryBgColor,postTextColor:this.initialData.custom_color.postTextColor,themeColor:this.initialData.custom_color.themeColor,buttonTextColor:this.initialData.custom_color.buttonTextColor,backgroundImage:this.initialData.custom_color.backgroundImage}):this.saveCurrentCustomColors(),this.appearanceForm.patchValue({colorPaletteType:this.initialData.colorPaletteType,logoType:this.initialData.logoType,user_text:this.initialData.user_text,user_font:this.initialData.user_font??this.fonts[0]?.name??f.Lz.DEFAULT_FONT},{emitEvent:!1}),this.patchAdvancedSettingsForm(),this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE&&this.loadFont(this.currentFont.name))}patchAdvancedSettingsForm(){const n=(this.initialData?.seo_title??"").trim()||(this.initialData?.metaTag??"").trim(),o=(this.initialData?.seo_keywords??"").trim(),a=(this.initialData?.seo_description??"").trim();this.advancedSettingsForm?.patchValue({gTagId:this.initialData?.gTagId??"",seo_title:n,seo_keywords:o||(0,f.gS)(this.userFullName,this.userProfile,this.cs),seo_description:a||(0,f.wA)(this.userProfile)},{emitEvent:!1})}saveCurrentCustomColors(n){this.setSavedCustomColors({bgColor:n?.bgColor??this.bgColor,bgTextColor:n?.bgTextColor??this.bgTextColor,secondaryBgColor:n?.secondaryBgColor??this.secondaryBgColor,postTextColor:n?.postTextColor??this.postTextColor,themeColor:n?.themeColor??this.themeColor,buttonTextColor:n?.buttonTextColor??this.buttonTextColor,backgroundImage:n?.backgroundImage??this.backgroundImage})}setSavedCustomColors(n){this.savedCustomColors={bgColor:n.bgColor,bgTextColor:n.bgTextColor,secondaryBgColor:n.secondaryBgColor,postTextColor:n.postTextColor,themeColor:n.themeColor,buttonTextColor:n.buttonTextColor,backgroundImage:n.backgroundImage}}setColorPaletteType(n){this.colorPaletteType===f.gf.CUSTOM&&this.saveCurrentCustomColors(),this.colorPaletteType=n,n===f.gf.STANDARD||n===f.gf.THEME?this.selectedPaletteId="":n===f.gf.CUSTOM&&(this.selectedPaletteId="",this.savedCustomColors&&(this.bgColor=this.savedCustomColors.bgColor,this.bgTextColor=this.savedCustomColors.bgTextColor,this.secondaryBgColor=this.savedCustomColors.secondaryBgColor,this.postTextColor=this.savedCustomColors.postTextColor,this.themeColor=this.savedCustomColors.themeColor,this.buttonTextColor=this.savedCustomColors.buttonTextColor,this.backgroundImage=this.savedCustomColors.backgroundImage),this.updateCanvas(),this.sendPreviewMessage())}applyPalette(n){this.selectedPaletteId=n;const o=this.STANDARD_PALETTES.find(a=>a.id===n);o&&(this.bgColor=o.background_color,this.bgTextColor=o.background_text_color,this.secondaryBgColor=o.card_background_color,this.postTextColor=o.card_text_color,this.themeColor=o.button_color,this.buttonTextColor=o.button_text_color),this.backgroundImage=null,this.updateCanvas(),this.sendPreviewMessage()}applyThemePreset(n){this.selectedPaletteId=n;const o=this.THEME_PRESETS.find(a=>a.id===n);o&&(this.bgColor=o.background_color,this.bgTextColor=o.background_text_color,this.secondaryBgColor=o.card_background_color,this.postTextColor=o.card_text_color,this.themeColor=o.button_color,this.buttonTextColor=o.button_text_color,this.backgroundImage=o.background_image||null),this.updateCanvas(),this.sendPreviewMessage()}onCustomColorChange(n,o){switch(n){case f._P.BG_COLOR:this.bgColor=o;break;case f._P.BG_TEXT_COLOR:this.bgTextColor=o;break;case f._P.SECONDARY_BG_COLOR:this.secondaryBgColor=o;break;case f._P.POST_TEXT_COLOR:this.postTextColor=o;break;case f._P.THEME_COLOR:this.themeColor=o,this.updateCanvas();break;case f._P.BUTTON_TEXT_COLOR:this.buttonTextColor=o}this.colorPaletteType===f.gf.CUSTOM&&this.saveCurrentCustomColors(),this.sendPreviewMessage()}loadFont(n,o){if(!this.cs.isBrowser)return;const a=(0,f.iM)(n),r=this.renderer.createElement("link");this.renderer.setAttribute(r,"href",a),this.renderer.setAttribute(r,"rel","stylesheet");const l=()=>{o?o():(this.updateCanvas(),this.cd.detectChanges())};this.renderer.listen(r,"load",()=>{document.fonts.load(`1rem ${n}`).then(l).catch(g=>{console.error(`Failed to load font ${n}:`,g),o?.()})}),this.renderer.appendChild(document.head,r)}updateCanvas(){if(!this.cs.isBrowser)return;const n=this.appearanceForm.get("user_text")?.value||"";n?this.generateCanvasDataUrl(n):this.canvasImageDataUrl="",this.generateFontPreview(),this.sendPreviewMessage()}renderTextToDataUrl(n,o){if(!this.cs.isBrowser||!n)return"";const a=this.renderer.createElement("canvas"),r=a.getContext("2d");if(!r)return"";r.font=`${o}px ${this.currentFont.name}`,r.fillStyle=this.themeColor;const l=r.measureText(n),h=l.actualBoundingBoxAscent+l.actualBoundingBoxDescent;a.width=Math.ceil(l.actualBoundingBoxLeft+l.actualBoundingBoxRight),a.height=Math.ceil(h),r.font=`${o}px ${this.currentFont.name}`,r.fillStyle=this.themeColor,r.textBaseline="alphabetic",r.fillText(n,l.actualBoundingBoxLeft,l.actualBoundingBoxAscent);try{return a.toDataURL("image/png")}catch{return""}}generateCanvasDataUrl(n){this.canvasImageDataUrl=this.renderTextToDataUrl(n,this.LOGO_CANVAS_FONT_SIZE)}generateFontPreview(){const n=this.appearanceForm?.get("user_text")?.value||this.userFullName||"";this.fontPreviewDataUrl=this.renderTextToDataUrl(n,this.FONT_PREVIEW_FONT_SIZE)}pickBannerImage(n){var o=this;if(!n.target.files||!n.target.files[0])return;const a=n.target.files[0];if("image/png"!==a.type)return this.cs.showWarningMessage("Please select PNG format image only"),void(n.target.value="");if(a.size>5242880)return this.cs.showWarningMessage("Image size should be less than 5MB"),void(n.target.value="");const r=new FileReader;
1r.readAsDataURL(a),r.onload=l=>{const g=new Image;g.src=l.target.result,g.onload=(0,ge.Z)(function*(){const h=g.naturalWidth,b=g.naturalHeight;b===f.fv.HEIGHT&&h>=f.fv.MIN_WIDTH&&h<=f.fv.MAX_WIDTH?yield o.pickLogo(r.result):h>=_.Mx.THIRTY_TWO&&b>=_.Mx.THIRTY_TWO?(o.imageWidth=h,o.imageChangedEvent=n,o.isOpen=!0):o.cs.showErrorMessage(f.Lz.LOGO_IMAGE_SIZE_CONSTRAINTS)})}}cancelCrop(){this.isOpen=!1,this.cs.setBodyClass(!0)}pickLogo(n){if(!this.cs.isBrowser)return;this.isOpen=!1,this.cs.setBodyClass(!0);const o=(0,Je.Ll)(n),a=`logo_${Date.now()}.png`;this.logoPreview=window.URL.createObjectURL(o),this.sendPreviewMessage();const r={file:o,fileName:a,folder:_.D4.bannerFolder};this.showProgress=!0,this.percent=_.Mx.ZERO,this.cd.detectChanges(),this.uploadService.uploadFileData(x.Y9.uploadFile,r,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:l=>{if(l.progressStatus===_.Mx.UPLOADING)return this.percent=l.progress,void this.cd.detectChanges();l.progressStatus===_.Mx.COMPLETED&&(this.showProgress=!1,this.percent=_.Mx.ZERO,this.logoPreview=(0,Ue.u)(l.data?.Location||l.data),this.sendPreviewMessage(),this.cd.detectChanges())},error:()=>{this.showProgress=!1,this.percent=_.Mx.ZERO,this.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),this.logoPreview="",this.cd.detectChanges()}})}deleteCurrentLogo(){this.logoPreview="",this.sendPreviewMessage()}openFullPreview(){const n=this.appearanceForm.get("logoType")?.value||this.logoType,a={...this.buildAdvancedSettingsData(),colorPaletteType:this.appearanceForm.get("colorPaletteType")?.value||this.colorPaletteType,selectedPaletteId:this.selectedPaletteId,bg_color:this.bgColor,bg_text_color:this.bgTextColor,secondary_bg_color:this.secondaryBgColor,post_text_color:this.postTextColor,theme_color:this.themeColor,button_text_color:this.buttonTextColor,logoType:n,logo_url:n===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?this.canvasImageDataUrl:this.logoPreview,user_text:this.appearanceForm.get("user_text")?.value||"",user_font:this.appearanceForm.get("user_font")?.value||this.currentFont.name,background_image:this.backgroundImage,custom_color:this.savedCustomColors,previewTab:this.activePreviewTab};this.preview.emit(a)}onBack(){this.back.emit()}onDelete(){this.delete.emit()}buildAppearanceData(){const n=this.appearanceForm.get("logoType")?.value||this.logoType,o=this.appearanceForm.get("colorPaletteType")?.value||this.colorPaletteType,a=this.buildAdvancedSettingsData();return o===f.gf.CUSTOM&&this.saveCurrentCustomColors(),{...a,colorPaletteType:o,selectedPaletteId:this.selectedPaletteId,bg_color:this.bgColor,bg_text_color:this.bgTextColor,secondary_bg_color:this.secondaryBgColor,post_text_color:this.postTextColor,theme_color:this.themeColor,button_text_color:this.buttonTextColor,logoType:n,logo_url:n===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?this.canvasImageDataUrl:this.logoPreview,user_text:this.appearanceForm.get("user_text")?.value||"",user_font:this.appearanceForm.get("user_font")?.value||this.currentFont.name,background_image:this.backgroundImage,custom_color:this.savedCustomColors}}openAdvancedSettingsModal(){this.patchAdvancedSettingsForm(),this.advancedSettingsModal?.openModal()}setActivePreviewTab(n){this.activePreviewTab=n}get hasCoverPagePreview(){return!!this.coverPageData}get isCoverPagePreviewActive(){return this.activePreviewTab===this.PREVIEW_TABS.COVER_PAGE}get coverPreviewBranding(){return{background_color:this.bgColor||null,text_color:this.themeColor||null,secondary_background_color:this.secondaryBgColor||null,post_text_color:this.postTextColor||null,background_text_color:this.bgTextColor||null,button_text_color:this.buttonTextColor||null,logo_url:this.getCurrentLogoPreviewUrl(),user_text:this.appearanceForm?.get("user_text")?.value||null,user_font:this.appearanceForm?.get("user_font")?.value||this.currentFont.name,is_text_logo:this.isTextLogo,background_image:this.backgroundImage}}getCurrentLogoPreviewUrl(){return this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?this.canvasImageDataUrl||null:this.logoPreview||null}onAdvancedSettingsConfirmed(){this.advancedSettingsForm?.markAsPristine(),this.advancedSettingsSave.emit(this.buildAdvancedSettingsData())}buildAdvancedSettingsData(){const n=this.advancedSettingsForm?.getRawValue?.()??{},o=String(n.seo_title??"").trim();return{metaTag:o||String(this.initialData?.metaTag??""),gTagId:String(n.gTagId??"").trim()||void 0,seo_title:o||void 0,seo_keywords:String(n.seo_keywords??"").trim()||void 0,seo_de
1scription:String(n.seo_description??"").trim()||void 0}}onUpdateAndPublish(){this.updateAndPublish.emit(this.buildAppearanceData())}openAppearanceUpdatingModal(n){!this.cs.isBrowser||this.appearanceUpdatingModal?.isModalOpen||(this.appearanceReadyAt=n??(this.lastPublishedAt?this.lastPublishedAt+M.QG.HOURS_TO_MILLISECONDS:Date.now()+M.QG.HOURS_TO_MILLISECONDS),setTimeout(()=>{this.appearanceUpdatingModal?.isModalOpen||(this.cd.detectChanges(),this.appearanceUpdatingModal?.openModal())}))}onViewMySite(){this.wlsFullUrl&&this.cs.openUrl(this.wlsFullUrl)}downloadOnboardingGuide(){const{PDF_URL:n,FILE_NAME:o}=this.ONBOARDING_GUIDE;this.downloadService.downloadFileViaLink(n,o)}get wlsFullUrl(){return this.webURL?this.webURL.startsWith("http")?this.webURL:`https://${this.webURL}`:""}formatPresetName(n){return n?n.split("/").map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("/"):""}get isFormValid(){return this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE?!!this.appearanceForm.get("user_text")?.value:!!this.logoPreview}get isTextLogo(){return this.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE}get currentFontIndex(){const n=this.fonts.findIndex(o=>o.name===this.currentFont.name);return n>=_.Mx.ZERO?n:_.Mx.ZERO}selectPrevFont(){if(this.currentFontIndex<=_.Mx.ZERO)return;const n=this.fonts[this.currentFontIndex-_.Mx.ONE];this.loadFont(n.name,()=>this.applyFontSelection(n))}selectNextFont(){if(this.currentFontIndex>=this.fonts.length-_.Mx.ONE)return;const n=this.fonts[this.currentFontIndex+_.Mx.ONE];this.loadFont(n.name,()=>this.applyFontSelection(n))}applyFontSelection(n){this.currentFont=n,this.appearanceForm.patchValue({user_font:n.name},{emitEvent:!1}),this.updateCanvas(),this.cd.detectChanges()}get saveBtnConfig(){return{...this.saveBtn,disabled:!this.isFormValid||this.isSaving||this.isPublishing,loading:this.isSaving}}get updateAndPublishBtnConfig(){return{...this.updateAndPublishBtn,disabled:!this.isFormValid||this.isSaving||this.isPublishing,loading:this.isSaving||this.isPublishing}}get fullPreviewBtnConfig(){return{...this.fullPreviewBtn,disabled:this.isPreviewLoading}}get expectedPublishTime(){return this.lastPublishedAt?this.lastPublishedAt+M.QG.HOURS_TO_MILLISECONDS:null}get isPublishPending(){return!!this.lastPublishedAt&&this.lastPublishedAt+18e5>Date.now()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.cs.isBrowser&&this.resizeListener&&window.removeEventListener("resize",this.resizeListener)}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(hn.H7),e.Y36(A.v),e.Y36(Ue.C),e.Y36(Xt.K),e.Y36(Ee.D))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-wls-appearance"]],viewQuery:function(o,a){if(1&o&&(e.Gf(ti,5),e.Gf(ni,5),e.Gf(oi,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.previewIframe=r.first),e.iGM(r=e.CRH())&&(a.appearanceUpdatingModal=r.first),e.iGM(r=e.CRH())&&(a.advancedSettingsModal=r.first)}},inputs:{initialData:"initialData",webURL:"webURL",isSaving:"isSaving",userId:"userId",userFullName:"userFullName",userProfile:"userProfile",isPublishing:"isPublishing",isPreviewLoading:"isPreviewLoading",lastPublishedAt:"lastPublishedAt",coverPageData:"coverPageData"},outputs:{updateAndPublish:"updateAndPublish",advancedSettingsSave:"advancedSettingsSave",back:"back",delete:"delete",preview:"preview",publish:"publish"},features:[e.TTD],decls:40,vars:28,consts:[[1,"wls-appearance"],[1,"appearance-content"],[1,"form-column"],[1,"section-title"],[1,"form-section","colors-section",3,"formGroup"],[1,"section-heading"],[3,"field","form"],["class","palette-grid-container",4,"ngIf"],["class","custom-colors",4,"ngIf"],["class","theme-presets",4,"ngIf"],[1,"form-section","logo-section"],["class","text-logo-options",4,"ngIf"],["class","image-logo-options",4,"ngIf"],["type","button",1,"advanced-settings-btn",3,"click"],[3,"ngClass"],[1,"preview-column"],[1,"preview-card"],["class","preview-viewport-toggle wls-preview-tabs","role","group",4,"ngIf"],[3,"display",4,"ngIf"],[1,"preview-title"],[1,"preview-description"],[3,"btnField","handleButtonClick"],[1,"preview-content","profile-preview-wrapper"],["class","profile-preview-iframe","frameborder","0","scrolling","yes",3,"src","load",4,"ngIf"],[1,"action-buttons"],["class","publish-time-info",4,"ngIf"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload",4,"ngIf"],["dynamicClass","wls-appearance-updating-modal",3,"headerLabel","confirmBtnLabel","showCrossBtn","modalOptions","confirmed",4,"ngIf"],["dynamicClass","wls-advanced-settings-modal",3,"headerLabel","subHeader","confirmBtnLabel","showCrossBtn","saveOnEnter","disableConfirmButton","confirmBtnLoading","modalOptions","confirmed",4,"ngIf"],[1,"palette-grid-container"],[1,"form-label"],[1,"palette-grid"],["class","palette-item",3,"selected","click",4,"ngFor","ngForOf"],[1,"palette-item",3,"click"],[1,"color-box"],[1,"custom-colors"],[1,"color-picker-group"],["for","bg_color"],[1,"form-theme-control"],[1,"color-pickers"],[1,"color-code"],[1,"color-icon"],[1,"iconRing"],["id","bg_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","bg_text_color"],["id","bg_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","secondary_bg_color"],["id","secondary_bg_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","post_text_color"],["id","post_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","theme_color"],["id","theme_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","button_text_color"],["id","button_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],[1,"theme-presets"],["class","theme-preset-item",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"theme-preset-item",3,"ngClass","click"],[1,"theme-preset-item-inner"],[1,"text-logo-options"],[1,"font-selector-container"],[1,"font-selector-pill"],["type","button",1,"font-arrow",3,"disabled","click"],[1,"pi","pi-chevron-left"],["class","font-preview-img","alt","Font preview",3,"src",4,"ngIf"],["class","font-preview-text",4,"ngIf"],[1,"pi","pi-chevron-right"],["alt","Font preview",1,"font-preview-img",3,"src"],[1,"font-preview-text"],[1,"image-logo-options"],["class","upload-container",4,"ngIf"],["class","logo-preview-container",4,"ngIf"],[1,"upload-container"],["for","logoUpload",1,"upload-label"],["type","file","id","logoUpload","accept",".png",1,"d-none",3,"change"],["logoPicker",""],[1,"banner-image-type-portfolio"],[1,"icon-litebanner-upload"],[1,"image-title"],[1,"image-msg"],[1,"logo-preview-container"],["class","show-progress-bar pointer-none",4,"ngIf"],["alt","Logo Preview",1,"logo-preview-image",3,"src"],["type","button",1,"delete-btn",3,"click"],[1,"show-progress-bar","pointer-none"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","showSubtitle","backgroundPadding","titleFontSize","titleColor","unitsColor","space"],["role","group",1,"preview-viewport-toggle","wls-preview-tabs"],["type","button",1,"preview-viewport-toggle__option",3,"click"],[1,"wls-cover-preview-embed",3,"coverPageData","isSelectorUsed","isNeedToRefreshColors","previewViewport","previewBranding"],["frameborder","0","scrolling","yes",1,"profile-preview-iframe",3,"src","load"],["previewIframe",""],[1,"publish-time-info"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload"],["dynamicClass","wls-appearance-updating-modal",3,"headerLabel","confirmBtnLabel","showCrossBtn","modalOptions","confirmed"],["appearanceUpdatingModal",""],["class","wls-appearance-updating-modal__text",4,"ngIf"],[1,"wls-appearance-updating-modal__text"],[1,"wls-appearance-updating-modal__link",3,"click"],["dynamicClass","wls-advanced-settings-modal",3,"headerLabel","subHeader","confirmBtnLabel","showCrossBtn","saveOnEnter","disableConfirmButton","confirmBtnLoading","modalOptions","confirmed"],["advancedSettingsModal",""],[3,"form","fields","isEditMode",4,"ngIf"],[3,"form","fields","isEditMode"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),e._uU(4),e.qZA(),e.TgZ(5,"div",4)(6,"h4",5),e._uU(7),e.qZA(),e._UZ(8,"a
1pp-select",6),e.YNc(9,ai,5,2,"div",7),e.YNc(10,si,67,36,"div",8),e.YNc(11,ci,2,1,"div",9),e.qZA(),e.TgZ(12,"div",10)(13,"h4",5),e._uU(14),e.qZA(),e._UZ(15,"app-radio-button",6),e.YNc(16,gi,11,17,"div",11),e.YNc(17,hi,3,2,"div",12),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return a.openAdvancedSettingsModal()}),e._UZ(19,"em",14),e.TgZ(20,"span"),e._uU(21),e.qZA()()(),e.TgZ(22,"div",15)(23,"div",16),e.YNc(24,Ci,7,6,"div",17),e.YNc(25,bi,7,10,"div",18),e.TgZ(26,"div")(27,"h4",19),e._uU(28),e.qZA(),e.TgZ(29,"p",20),e._uU(30),e.qZA(),e.TgZ(31,"app-button",21),e.NdJ("handleButtonClick",function(){return a.openFullPreview()}),e.qZA(),e.TgZ(32,"div",22),e.YNc(33,vi,2,1,"iframe",23),e.qZA()()()()(),e.TgZ(34,"div",24)(35,"app-button",21),e.NdJ("handleButtonClick",function(){return a.onUpdateAndPublish()}),e.qZA(),e.YNc(36,xi,3,5,"p",25),e.qZA()(),e.YNc(37,Oi,1,10,"app-image-cropper",26),e.YNc(38,wi,9,9,"app-alert-modal",27),e.YNc(39,yi,3,10,"app-alert-modal",28)),2&o&&(e.xp6(4),e.Oqu(a.LABELS.SECTION_TITLE),e.xp6(1),e.Q6J("formGroup",a.appearanceForm),e.xp6(2),e.Oqu(a.LABELS.SITE_COLORS_TITLE),e.xp6(1),e.Q6J("field",a.colorPaletteTypeField)("form",a.appearanceForm),e.xp6(1),e.Q6J("ngIf",a.colorPaletteType===a.ColorPaletteTypeEnum.STANDARD),e.xp6(1),e.Q6J("ngIf",a.colorPaletteType===a.ColorPaletteTypeEnum.CUSTOM),e.xp6(1),e.Q6J("ngIf",a.colorPaletteType===a.ColorPaletteTypeEnum.THEME),e.xp6(3),e.Oqu(a.LABELS.SITE_LOGO_TITLE),e.xp6(1),e.Q6J("field",a.logoTypeField)("form",a.appearanceForm),e.xp6(1),e.Q6J("ngIf",a.isTextLogo),e.xp6(1),e.Q6J("ngIf",!a.isTextLogo),e.xp6(2),e.Q6J("ngClass",a.ADVANCED_SETTINGS.ICON_CLASS),e.xp6(2),e.Oqu(a.ADVANCED_SETTINGS.BUTTON_LABEL),e.xp6(3),e.Q6J("ngIf",a.hasCoverPagePreview),e.xp6(1),e.Q6J("ngIf",a.hasCoverPagePreview),e.xp6(1),e.Udp("display",a.isCoverPagePreviewActive?"none":null),e.xp6(2),e.Oqu(a.LABELS.QUICK_PREVIEW_TITLE),e.xp6(2),e.Oqu(a.LABELS.QUICK_PREVIEW_DESCRIPTION),e.xp6(1),e.Q6J("btnField",a.fullPreviewBtnConfig),e.xp6(2),e.Q6J("ngIf",a.userId),e.xp6(2),e.Q6J("btnField",a.updateAndPublishBtnConfig),e.xp6(1),e.Q6J("ngIf",a.isPublishPending),e.xp6(1),e.Q6J("ngIf",a.isOpen),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.mk,p.sg,p.O5,u.JL,u.sg,Le.U,en._,ae.r,U.F,tt.s,dt.o,tn.a,nn.Kk,ei.U,pt.nu,p.uU],styles:[".wls-appearance[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.wls-appearance[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%]{color:var(--configBgTextColor)}.wls-appearance[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configPostTextColor);margin:0}.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:stretch}.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .form-column[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:24px;min-width:0;background-color:var(--configSecondaryBgColor);padding:24px;border-radius:16px}@media (max-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .form-column[_ngcontent-%COMP%]{padding:20px 12px}}.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .preview-column[_ngcontent-%COMP%]{flex:0 0 400px;max-width:400px;display:flex;flex-direction:column;align-self:flex-start;position:sticky;top:-16px}.whitelabel-site-container--topfans[_nghost-%COMP%]   .wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .preview-column[_ngcontent-%COMP%], .whitelabel-site-container--topfans   [_nghost-%COMP%]   .wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .preview-column[_ngcontent-%COMP%]{flex:1!important;max-width:100%!important}.wls-appearance[_ngcontent-%COMP%]   .form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.wls-appearance[_ngcontent-%COMP%]   .form-section[_ngcontent-%COMP%]   .section-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--configPostTextColor);margin:0 0 8px}.wls-appearance[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configPostTextColor)}.wls-appearance[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{padding:12px 16px;background-color:var(--configBgColor);border:1px solid transparent;border-radius:8px;color:var(--configBgTextColor);font-size:14px;transition:border-color .2s ease}.wls-appearance[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::placeholder{color:var(--configBgTextColor);opacity:.7}.wls-appearance[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--configThemeColor)}.wls-appearance[_ngcontent-%COMP%]   .colors-section[_ngcontent-%COMP%]{padding:20px;background-color:var(--configBgColor);border-radius:16px}.wls-appearance[_ngcontent-%COMP%]   .palette-grid-container[_ngcontent-%COMP%]{margin-top:16px}.wls-appearance[_ngcontent-%COMP%]   .palette-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:8px}.wls-appearance[_ngcontent-%COMP%]   .palette-item[_ngcontent-%COMP%]{display:flex;border-radius:6px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:border-color .2s ease}.wls-appearance[_ngcontent-%COMP%]   .palette-item[_ngcontent-%COMP%]:hover, .wls-appearance[_ngcontent-%COMP%]   .palette-item.selected[_ngcontent-%COMP%]{border-color:var(--configThemeColor)}.wls-appearance[_ngcontent-%COMP%]   .palette-item[_ngcontent-%COMP%]   .color-box[_ngcontent-%COMP%]{flex:1;height:24px}.wls-appearance[_ngcontent-%COMP%]   .custom-colors[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-top:16px}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:0;font-size:14px;font-weight:500;color:var(--configBgTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--configSecondaryBgColor);padding:12px 22px 12px 24px;border-radius:28px;height:46px;position:relative}@media (min-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]{height:56px}}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-pickers[_ngcontent-%COMP%]{width:30px;height:24px;margin:0 20px 0 0;border-radius:5px;border:1px solid var(--configThemeColor);background-color:none;flex:none}@media (min-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-pickers[_ngcontent-%COMP%]{width:44px;height:32px}}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-code[_ngcontent-%COMP%]{font-size:14px;font-weight:900}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-picker[_ngcontent-%COMP%]{left:auto!important;right:35px!important;margin:10px 0 0}@media (min-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-picker[_ngcontent-%COMP%]{right:0!important}}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-picker[_ngcontent-%COMP%]   .arrow.arrow-bottom[_ngcontent-%COMP%]{left:auto;right:5px}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]{margin-left:auto;position:relative;display:flex;cursor:pointer;width:34px;height:100%}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   input.form-control[_ngcontent-%COMP%]{position:absolute;right:-8px;top:0;opacity:0;width:100%;background-color:transparent;cursor:pointer}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]{border:var(--theme-interactive-link) 1px solid;border-radius:100%;width:18px;height:18px;display:block;position:absolute;top:6px;right:0}@media (min-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]{top:8px}}.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]:nth-child(2){top:0;right:-7px}@media (min-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]:nth-child(2){top:2px;right:-7px}}.wls-appearance[_ngcontent-%COMP%]   .theme-presets[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.wls-appearance[_ngcontent-%COMP%]   .theme-preset-item[_ngcontent-%COMP%]{background:var(--configThemeColor);border-radius:28px;padding:1px;overflow:hidden}.wls-appearance[_ngcontent-%COMP%]   .theme-preset-item[_ngcontent-%COMP%]   .theme-preset-item-inner[_ngcontent-%COMP%]{padding:10px 20px;border-radius:28px;background:var(--configBgColor);color:var(--configBgTextColor);font-size:14px;cursor:pointer;font-weight:900}.wls-appearance[_ngcontent-%COMP%]   .theme-preset-item.selected[_ngcontent-%COMP%]   .theme-preset-item-inner[_ngcontent-%COMP%]{background:var(--configThemeColor);color:var(--configButtonTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .logo-section[_ngcontent-%COMP%]{padding:20px;background-color:var(--configBgColor);border-radius:16px}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;min-width:0;min-height:64px;padding:12px 20px;border-radius:28px;gap:12px;overflow:hidden}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-arrow[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;cursor:pointer;transition:opacity .2s ease}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-arrow[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:default}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-arrow[_ngcontent-%COMP%]:not(:disabled):hover{opacity:1}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-arrow[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-arrow[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--pill-bg-text-color)!important}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-preview-img[_ngcontent-%COMP%]{flex:1;min-width:0;max-height:40px;object-fit:contain}.wls-appearance[_ngcontent-%COMP%]   .text-logo-options[_ngcontent-%COMP%]   .font-selector-pill[_ngcontent-%COMP%]   .font-preview-text[_ngcontent-%COMP%]{flex:1;min-width:0;text-align:center;font-size:32px;color:var(--pill-theme-color)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]{display:flex;margin-top:16px}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .upload-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:12px}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .upload-container[_ngcontent-%COMP%]   .upload-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:15px 5px;border:.1rem dashed var(--theme-interactive-link);border-radius:15px;cursor:pointer;transition:border-color .2s ease}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .upload-container[_ngcontent-%COMP%]   .upload-label[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:32px}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .upload-container[_ngcontent-%COMP%]   .upload-label[_ngcontent-%COMP%]   .upload-text[_ngcontent-%COMP%]{font-size:14px;color:var(--configPostTextColor)}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .upload-container[_ngcontent-%COMP%]   .upload-hint[_ngcontent-%COMP%]{font-size:12px;color:var(--configBgTextColor);text-align:center;margin:0}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .logo-preview-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .logo-preview-container[_ngcontent-%COMP%]   .logo-preview-image[_ngcontent-%COMP%]{max-width:100%;max-height:120px;border-radius:8px}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .logo-preview-container[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:var(--configThemeColor);border:none;border-radius:50%;color:var(--configButtonTextColor);font-size:16px;cursor:pointer}.wls-appearance[_ngcontent-%COMP%]   .image-logo-options[_ngcontent-%COMP%]   .logo-preview-container[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configButtonTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]{border-radius:16px;overflow:hidden;flex:1;padding:24px;display:flex;flex-direction:column;background:var(--configSecondaryBgColor)}@media (max-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]{padding:20px 12px}}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin:0 0 8px;color:var(--configPostTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-description[_ngcontent-%COMP%]{font-size:16px;line-height:1.5;margin:0 0 16px;color:var(--configPostTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-content[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;flex:1;display:flex;flex-direction:column;height:calc(100vh - 88px);min-height:500px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .profile-preview-wrapper[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;flex:1;display:flex;flex-direction:column}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .profile-preview-wrapper[_ngcontent-%COMP%]   .profile-preview-iframe[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 88px);border:none;border-radius:16px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-banner[_ngcontent-%COMP%]{height:120px;overflow:hidden}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]{
1padding:16px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .profile-avatar[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:50%;overflow:hidden}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .profile-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .profile-info[_ngcontent-%COMP%]{flex:1}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .profile-info[_ngcontent-%COMP%]   .profile-name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;margin:0}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .profile-info[_ngcontent-%COMP%]   .profile-location[_ngcontent-%COMP%]{font-size:11px;margin:4px 0 0}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .share-btn[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-header[_ngcontent-%COMP%]   .share-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:14px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .action-buttons-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .action-buttons-grid[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{padding:6px 12px;background:transparent;border:1px solid;border-radius:16px;font-size:10px;font-weight:600;cursor:pointer}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .profile-bio[_ngcontent-%COMP%]{font-size:11px;line-height:1.5;margin:0 0 12px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .cta-btn[_ngcontent-%COMP%]{width:100%;padding:12px;border:none;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;margin-bottom:16px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .stats-row[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .stats-row[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .stats-row[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]   .stat-value[_ngcontent-%COMP%]{font-size:14px;font-weight:600}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-profile[_ngcontent-%COMP%]   .stats-row[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]   .stat-label[_ngcontent-%COMP%]{font-size:9px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]{margin-top:12px;padding:12px;border-radius:8px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-avatar[_ng
1content-%COMP%]{width:32px;height:32px;border-radius:50%;overflow:hidden}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-user-info[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:8px}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-user-info[_ngcontent-%COMP%]   .post-user-name[_ngcontent-%COMP%]{font-size:12px;font-weight:600}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-user-info[_ngcontent-%COMP%]   .post-badge[_ngcontent-%COMP%]{padding:2px 8px;border-radius:4px;font-size:9px;font-weight:600}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-header[_ngcontent-%COMP%]   .post-menu-btn[_ngcontent-%COMP%]{background:transparent;border:none;font-size:16px;cursor:pointer}.wls-appearance[_ngcontent-%COMP%]   .preview-card[_ngcontent-%COMP%]   .preview-post[_ngcontent-%COMP%]   .post-content[_ngcontent-%COMP%]{font-size:11px;line-height:1.5;margin:0}.wls-appearance[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-top:16px;flex-wrap:wrap}.wls-appearance[_ngcontent-%COMP%]   .publish-time-info[_ngcontent-%COMP%]{margin-top:12px;font-size:14px;color:var(--configBgTextColor)!important;opacity:.8}.wls-appearance[_ngcontent-%COMP%]   .advanced-settings-btn[_ngcontent-%COMP%]{align-items:center;background:var(--configSecondaryBgColor);border:1px solid var(--theme-interactive-link);border-radius:50px;cursor:pointer;display:flex;flex-wrap:wrap;gap:10px;padding:14px 18px;justify-content:center;transition:border-color .2s ease,color .2s ease}.wls-appearance[_ngcontent-%COMP%]   .advanced-settings-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:var(--theme-interactive-link)!important;font-size:18px}.wls-appearance[_ngcontent-%COMP%]   .advanced-settings-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:var(--theme-interactive-link)!important}.wls-appearance[_ngcontent-%COMP%]   .advanced-settings-btn[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;font-size:12px;opacity:.75}.wls-appearance[_ngcontent-%COMP%]   .preview-viewport-toggle[_ngcontent-%COMP%]{align-items:center;background-color:var(--configBgColor);border-radius:999px;display:inline-flex;flex-shrink:0;gap:4px;padding:4px}.wls-appearance[_ngcontent-%COMP%]   .preview-viewport-toggle__option[_ngcontent-%COMP%]{align-items:center;background:transparent;border:none;border-radius:999px;color:var(--configBgTextColor)!important;cursor:pointer;display:inline-flex;font-size:14px;font-weight:900;gap:8px;justify-content:center;line-height:1.71;padding:8px 20px;white-space:nowrap}.wls-appearance[_ngcontent-%COMP%]   .preview-viewport-toggle__option[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:inherit!important}.wls-appearance[_ngcontent-%COMP%]   .preview-viewport-toggle__option.active[_ngcontent-%COMP%]{background:var(--configThemeColor);color:var(--configButtonTextColor)!important}.wls-appearance[_ngcontent-%COMP%]   .wls-preview-tabs[_ngcontent-%COMP%]{margin-bottom:16px;width:100%}.wls-appearance[_ngcontent-%COMP%]   .wls-preview-tabs[_ngcontent-%COMP%]   .preview-viewport-toggle__option[_ngcontent-%COMP%]{flex:1}.wls-appearance[_ngcontent-%COMP%]   .wls-cover-preview-embed[_ngcontent-%COMP%]{display:block;height:calc(100vh - 88px);max-height:900px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;border-radius:16px}.wls-appearance[_ngcontent-%COMP%]   .wls-cover-preview-embed[_ngcontent-%COMP%]     .marketing-page-full-preview__sections--mobile-frame{max-width:100%!important}.wls-appearance[_ngcontent-%COMP%]   .wls-cover-preview-embed[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.wls-appearance[_ngcontent-%COMP%]     .btn-full-preview span{color:var(--configThemeColor)!important}@media (max-width: 992px){.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]{flex-direction:column}.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]   .preview-column[_ngcontent-%COMP%]{flex:none;max-width:100%;width:100%;position:static;order:-1}.wls-appearance[_ngcontent-%COMP%]   .appearance-content[_ngcontent-%COMP%]     .marketing-page-full-preview__sections--mobile-frame{max-width:100%!important}}@media (max-width: 768px){.wls-appearance[_ngcontent-%COMP%]   .palette-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 480px){.wls-appearance[_ngcontent-%COMP%]   .palette-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}  .wls-appearance-updating-modal .wls-appearance-updating-modal__text{margin:0 0 16px;color:var(--configBgTextColor);line-height:1.5}  .wls-appearance-updating-modal .wls-appearance-updating-modal__text strong{white-space:nowrap}  .wls-appearance-updating-modal .wls-appearance-updating-modal__link{color:var(--theme-interactive-link)!important;text-decoration:none;cursor:pointer}
1  .wls-advanced-settings-modal .dynamic-form-builder-wrapper{text-align:left!important}  .wls-advanced-settings-modal .dynamic-form-builder-wrapper .dynamic-module-main-class{padding:0!important}  .wls-advanced-settings-modal .dynamic-form-builder-wrapper .form-control{background:var(--configBgColor)!important;color:var(--configBgTextColor)!important}  .wls-advanced-settings-modal .dynamic-form-builder-wrapper .form-control::placeholder{color:var(--configBgTextColor)!important}  .theme-whiteLabel .advanced-settings-btn{--theme-interactive-link: var(--configThemeColor) !important}.font-selector-container[_ngcontent-%COMP%]{font-size:16px!important}"]}),i})();function Ii(i,s){1&i&&(e.TgZ(0,"div",10),e._uU(1," DNS Setup Verified "),e.qZA())}function ki(i,s){1&i&&(e.TgZ(0,"div",10),e._uU(1," Unable to Verify DNS Entries "),e.qZA())}function Di(i,s){1&i&&e._UZ(0,"hr")}function Ni(i,s){1&i&&(e.TgZ(0,"div",11),e._uU(1," White Labeled Site has been updated successfully "),e.qZA())}function Li(i,s){1&i&&(e.TgZ(0,"div",12),e._uU(1," We were unable to verify your DNS entries. Please double check the values match at your domain provider. "),e._UZ(2,"br")(3,"br"),e._uU(4,' Note: It is common for your domain provider to take up to 60 minutes to update records. So please return to this screen in a while and reclick the "Verify & Continue" button. '),e.qZA())}function Zi(i,s){1&i&&(e.TgZ(0,"div",12),e._uU(1," We were able to verify that your CNAME records have been setup correctly. "),e.qZA())}function Fi(i,s){if(1&i&&(e.TgZ(0,"div",13),e._uU(1," By clicking Remove below, your white-label site will no longer be available. It may take up to 1 hour for the removal process to complete, at which point you can setup a new white-label site. You will need to go to "),e.TgZ(2,"a",14),e._uU(3,"TopFan"),e.qZA(),e._uU(4," to setup your new white-label site. "),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("href",t.environment.original_web_url,e.LSH)}}function Ui(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeModal())}),e._uU(1," OK "),e.qZA()}}function Bi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeModal())}),e._uU(1," CLOSE "),e.qZA()}}function Ri(i,s){if(1&i&&(e.TgZ(0,"div",1),e.YNc(1,Ii,2,0,"div",2),e.YNc(2,ki,2,0,"div",2),e.YNc(3,Di,1,0,"hr",3),e.TgZ(4,"div",4),e.YNc(5,Ni,2,0,"div",5),e.YNc(6,Li,5,0,"div",6),e.YNc(7,Zi,2,0,"div",6),e.YNc(8,Fi,5,1,"div",7),e.qZA(),e.TgZ(9,"div",8),e.YNc(10,Ui,2,0,"button",9),e.YNc(11,Bi,2,0,"button",9),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","verify_success"===t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","verify_error"===t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","verify_error"===t.modalInfo.type||"verify_success"===t.modalInfo.type),e.xp6(2),e.Q6J("ngIf","update-whitelabel"===t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","verify_error"===t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","verify_success"===t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","white-label"===t.modalInfo.type),e.xp6(2),e.Q6J("ngIf","verify_error"!==t.modalInfo.type),e.xp6(1),e.Q6J("ngIf","verify_error"===t.modalInfo.type)}}let qi=(()=>{const s=class{constructor(n,o,a){this.modalService=n,this.modalRef=o,this.cs=a,this.modalInfo={type:""}}ngOnInit(){this.cs.isBrowser&&(this.modalInfo=Object.assign({type:this.modalService.config.initialState?.type}))}closeModal(){this.modalRef.hide()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(k.tT),e.Y36(k.UZ),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-white-label-dialog-box"]],decls:1,vars:1,consts:[["class","modal-content modal-theme2 modal-basic modal-center-aligned",4,"ngIf"],[1,"modal-content","modal-theme2","modal-basic","modal-center-aligned"],["class","verify-status",4,"ngIf"],[4,"ngIf"],[1,"modal-body","custom-body"],["class","pt-4 ml-3",4,"ngIf"],["class","",4,"ngIf"],["class","white-label-dialog-message",4,"ngIf"],[1,"modal-footer","pt-2","text-right","remove-botton-space"],["class","btn btn-primary",3,"click",4,"ngIf"],[1,"verify-status"],[1,"pt-4","ml-3"],[1,""],[1,"white-label-dialog-message"],["target","_blank",3,"href"],[1,"btn","btn-primary",3,"click"]],template:function(o,a){1&o&&e.YNc(0,Ri,12,9,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5],styles:[".white-label-dialog-message[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--topfan-theme-color);text-decoration:none!important}  .theme-whiteLabel .white-label-dialog-message a{color:var(--topfan-theme-color)!important}"]}),i})();var Gi=d(5481),Yi=d(53009),Ji=d(29806),nt=d(14121);function Vi(i,s){if(1&i&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&i){const t=s.$implicit;e.xp6(1),e.Oqu(t)}}function Wi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",8)(1,"h4",9),e._uU(2),e.qZA(),e.TgZ(3,"p",10),e._uU(4),e.qZA(),e.TgZ(5,"p",11),e._uU(6),e.qZA(),e.TgZ(7,"p",12),e._uU(8),e.qZA(),e.TgZ(9,"ol",13),e.YNc(10,Vi,2,1,"li",14),e.qZA(),e.TgZ(11,"app-button",15),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openNamecheap())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(2),e.Oqu(t.LABELS.NO_DOMAIN_TITLE),e.xp6(2),e.Oqu(t.LABELS.NO_DOMAIN_DESCRIPTION),e.xp6(2),e.Oqu(t.LABELS.NO_DOMAIN_RECOMMENDATION),e.xp6(2),e.Oqu(t.LABELS.NO_DOMAIN_STEPS_TIT
1LE),e.xp6(2),e.Q6J("ngForOf",t.LABELS.NO_DOMAIN_STEPS),e.xp6(1),e.Q6J("btnField",t.purchaseDomainBtn)}}function Hi(i,s){if(1&i&&(e.TgZ(0,"div",24)(1,"div",25),e._UZ(2,"app-input",4),e.TgZ(3,"span",26),e._uU(4),e.qZA()()()),2&i){const t=e.oxw(3);e.xp6(2),e.Q6J("field",t.subDomainNameField)("form",t.domainForm),e.xp6(2),e.hij(".",t.currentDomainName,"")}}function Qi(i,s){if(1&i&&(e.TgZ(0,"div",20)(1,"div",21)(2,"label",2),e._uU(3),e.qZA(),e.TgZ(4,"p",22),e._uU(5),e.qZA()(),e._UZ(6,"app-radio-button",4),e.YNc(7,Hi,5,3,"div",23),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.Oqu(t.LABELS.URL_PREFERENCE_LABEL),e.xp6(2),e.Oqu(t.LABELS.URL_PREFERENCE_DESCRIPTION),e.xp6(1),e.Q6J("field",t.urlPreferenceField)("form",t.domainForm),e.xp6(1),e.Q6J("ngIf",t.isSubdomain)}}function Ki(i,s){if(1&i&&(e.TgZ(0,"div",16)(1,"div",17)(2,"div",18),e._UZ(3,"app-select",4),e.qZA(),e.TgZ(4,"div",18),e._UZ(5,"app-input",4),e.qZA()(),e.YNc(6,Qi,8,5,"div",19),e.qZA()),2&i){const t=e.oxw();e.xp6(3),e.Q6J("field",t.dnsProviderField)("form",t.domainForm),e.xp6(2),e.Q6J("field",t.domainNameField)("form",t.domainForm),e.xp6(1),e.Q6J("ngIf",t.showUrlPreference)}}function zi(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",27)(1,"app-button",15),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onContinue())}),e.qZA(),e.TgZ(2,"div"),e._uU(3),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("btnField",t.continueBtnConfig),e.xp6(2),e.Oqu(t.LABELS.DNS_PROPAGATION_NOTE)}}let $i=(()=>{const s=class{constructor(n){this.fb=n,this.initialData=null,this.isLoading=!1,this.continue=new e.vpe,this.LABELS=f.iP,this.DNS_PROVIDERS=f.ee,this.UrlPreferenceEnum=f.Hl,this.hasDomainField=f.X0.hasDomainField,this.dnsProviderField=f.X0.dnsProviderField,this.domainNameField=f.X0.domainNameField,this.subDomainNameField=f.X0.subDomainNameField,this.continueBtn=f.eK.continueBtn,this.purchaseDomainBtn=f.eK.purchaseDomainBtn}ngOnInit(){this.initForm(),this.updateUrlPreferenceField(),this.initialData&&this.patchFormData()}initForm(){this.domainForm=this.fb.group({hasDomain:[!0],dnsProvider:[null,u.kI.required],domainName:["",[u.kI.required,u.kI.pattern(F.mL.DOMAIN_NAME)]],urlPreference:[f.Hl.ROOT_DOMAIN,u.kI.required],subDomainName:[""]}),this.domainForm.get("hasDomain")?.valueChanges.subscribe(n=>{n||this.domainForm.patchValue({dnsProvider:null,domainName:"",urlPreference:f.Hl.ROOT_DOMAIN,subDomainName:""})}),this.domainForm.get("urlPreference")?.valueChanges.subscribe(n=>{this.updateSubdomainValidation(n)}),this.domainForm.get("domainName")?.valueChanges.subscribe(()=>{this.updateUrlPreferenceField()})}updateUrlPreferenceField(){const n=this.domainForm.get("domainName")?.value||"";n&&(this.urlPreferenceField={type:M.sf.RADIO,name:"urlPreference",class:"",optionDirection:X.jR.VERTICAL,options:[{label:this.LABELS.ROOT_DOMAIN_OPTION.replace(/{domain}/g,n),value:f.Hl.ROOT_DOMAIN},{label:this.LABELS.SUBDOMAIN_OPTION.replace(/{domain}/g,n),value:f.Hl.SUBDOMAIN}]})}patchFormData(){this.initialData&&(this.domainForm.patchValue({hasDomain:this.initialData.hasDomain,dnsProvider:this.initialData.dnsProvider,domainName:this.initialData.domainName,urlPreference:this.initialData.urlPreference,subDomainName:this.initialData.subDomainName}),this.updateSubdomainValidation(this.initialData.urlPreference),this.updateUrlPreferenceField())}updateSubdomainValidation(n){const o=this.domainForm.get("subDomainName");n===f.Hl.SUBDOMAIN?o?.setValidators([u.kI.required,u.kI.pattern(F.mL.SUBDOMAIN_NAME)]):(o?.clearValidators(),o?.setValue("")),o?.updateValueAndValidity()}onDomainNameChange(){this.updateUrlPreferenceField()}openNamecheap(){window.open(this.LABELS.NAMECHEAP_URL,"_blank")}onContinue(){if(this.hasDomain)if(this.domainForm.valid){const n=this.domainForm.value;this.continue.emit({hasDomain:n.hasDomain,dnsProvider:n.dnsProvider,domainName:n.domainName,urlPreference:n.urlPreference,subDomainName:n.subDomainName||""})}else this.domainForm.markAllAsTouched()}get hasDomain(){return this.domainForm?.get("hasDomain")?.value??!0}get isFormValid(){return this.hasDomain&&this.domainForm.valid}
1get showUrlPreference(){const n=this.domainForm.get("domainName");return this.hasDomain&&n?.value&&n?.valid}get currentDomainName(){return this.domainForm.get("domainName")?.value||""}get isSubdomain(){return this.domainForm.get("urlPreference")?.value===f.Hl.SUBDOMAIN}get continueBtnConfig(){return{...this.continueBtn,disabled:!this.isFormValid||this.isLoading,loading:this.isLoading}}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-wls-domain-info"]],inputs:{initialData:"initialData",isLoading:"isLoading"},outputs:{continue:"continue"},decls:11,vars:8,consts:[[1,"wls-domain-info",3,"formGroup"],[1,"steps-circle"],[1,"section-title"],[1,"domain-radio-group"],[3,"field","form"],["class","no-domain-section",4,"ngIf"],["class","domain-form-section",4,"ngIf"],["class","action-buttons",4,"ngIf"],[1,"no-domain-section"],[1,"no-domain-title"],[1,"no-domain-description"],[1,"no-domain-recommendation"],[1,"steps-title"],[1,"steps-list"],[4,"ngFor","ngForOf"],[3,"btnField","handleButtonClick"],[1,"domain-form-section"],[1,"form-row"],[1,"form-group"],["class","url-preference-section",4,"ngIf"],[1,"url-preference-section"],[1,"url-preference-header"],[1,"url-preference-description"],["class","form-group subdomain-group",4,"ngIf"],[1,"form-group","subdomain-group"],[1,"subdomain-input-wrapper"],[1,"domain-suffix"],[1,"action-buttons"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA()(),e.TgZ(4,"h3",2),e._uU(5),e.qZA(),e.TgZ(6,"div",3),e._UZ(7,"app-radio-button",4),e.qZA(),e.YNc(8,Wi,12,6,"div",5),e.YNc(9,Ki,7,5,"div",6),e.YNc(10,zi,4,2,"div",7),e.qZA()),2&o&&(e.Q6J("formGroup",a.domainForm),e.xp6(3),e.Oqu(a.LABELS.STEP_INDICATOR),e.xp6(2),e.Oqu(a.LABELS.SECTION_TITLE),e.xp6(2),e.Q6J("field",a.hasDomainField)("form",a.domainF
1orm),e.xp6(1),e.Q6J("ngIf",!a.hasDomain),e.xp6(1),e.Q6J("ngIf",a.hasDomain),e.xp6(1),e.Q6J("ngIf",a.hasDomain))},dependencies:[p.sg,p.O5,u.JL,u.sg,en._,ae.r,tt.s,dt.o],styles:[".wls-domain-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;padding:24px;border-radius:12px}.wls-domain-info[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configPostTextColor);margin:0}.wls-domain-info[_ngcontent-%COMP%]   .domain-radio-group[_ngcontent-%COMP%]     .radio-btn-head{gap:24px}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:24px;background-color:var(--configBgColor);border-radius:16px}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .no-domain-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configBgTextColor);margin:0}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .no-domain-description[_ngcontent-%COMP%], .wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .no-domain-recommendation[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0;line-height:1.5}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .steps-title[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:8px 0 0}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .steps-list[_ngcontent-%COMP%]{margin:0;padding-left:20px}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .steps-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);line-height:1.8}.wls-domain-info[_ngcontent-%COMP%]   .no-domain-section[_ngcontent-%COMP%]   .purchase-btn[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:8px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:24px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{flex:1;min-width:280px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--configPostTextColor)}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--configThemeColor)}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{padding:12px 16px;background-color:var(--configBgColor);border:1px solid transparent;border-radius:8px;color:var(--configBgTextColor);font-size:14px;transition:border-color .2s ease}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::placeholder{color:var(--configBgTextColor);opacity:.7}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--configThemeColor)}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#f44336}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{font-size:12px;color:#f44336}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]     app-select .ng-dropdown-panel{z-index:1000!important}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;margin-top:8px}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .url-preference-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .url-preference-description[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0;opacity:.7}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .subdomain-group[_ngcontent-%COMP%]{margin-top:8px!important;max-width:500px}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .subdomain-group[_ngcontent-%COMP%]   .subdomain-in
1put-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .subdomain-group[_ngcontent-%COMP%]   .subdomain-input-wrapper[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]{flex:1}.wls-domain-info[_ngcontent-%COMP%]   .url-preference-section[_ngcontent-%COMP%]   .subdomain-group[_ngcontent-%COMP%]   .subdomain-input-wrapper[_ngcontent-%COMP%]   .domain-suffix[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configBgTextColor);white-space:nowrap;padding-top:35px}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-top:16px;flex-wrap:wrap}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-back[_ngcontent-%COMP%]{background:transparent;border:none;color:var(--configPostTextColor);font-size:14px;font-weight:600;cursor:pointer;padding:12px 24px}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-back[_ngcontent-%COMP%]:hover{color:var(--configThemeColor)}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:var(--configThemeColor);color:var(--configButtonTextColor);border:none;border-radius:8px;padding:12px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s ease}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){opacity:.9}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.wls-domain-info[_ngcontent-%COMP%]{padding:16px;gap:20px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{flex-direction:column;gap:16px}.wls-domain-info[_ngcontent-%COMP%]   .domain-form-section[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{min-width:100%}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{flex-direction:row}.wls-domain-info[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{flex:1}}"]}),i})();const gt={COMPLETED:"completed",ACTIVE:"active",UPCOMING:"upcoming"};function ji(i,s){if(1&i&&(e.TgZ(0,"h3",7),e._uU(1),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.LABELS.SUBTITLE)}}function Xi(i,s){if(1&i&&(e.ynx(0),e._UZ(1,"em"),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Tol(t.iconClass)}}function ea(i,s){if(1&i&&e._uU(0),2&i){const t=e.oxw().index,n=e.oxw();e.Oqu(t+n.Application.ONE)}}function ta(i,s){if(1&i&&e._UZ(0,"div",30),2&i){const t=e.oxw().$implicit;e.Q6J("ngClass",t.status)}}function na(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",24)(2,"div",25),e.YNc(3,Xi,2,2,"ng-container",26),e.YNc(4,ea,1,1,"ng-template",null,27,e.W1O),e.qZA(),e.TgZ(6,"div",28),e._uU(7),e.qZA()(),e.YNc(8,ta,1,1,"div",29),e.BQk()),2&i){const t=s.$implicit,n=s.last,o=e.MAs(5);e.xp6(2),e.Q6J("ngClass",t.status),e.xp6(1),e.Q6J("ngIf",t.iconClass)("ngIfElse",o),e.xp6(4),e.Oqu(t.label),e.xp6(1),e.Q6J("ngIf",!n)}}let oa=(()=>{const s=class{constructor(n){this.downloadService=n,this.remainingSeconds=_.Mx.ZERO,this.Application=_.Mx,this.VERIFICATION_STEP_STATUS=gt,this.LABELS=f.Gf,this.steps=[{label:this.LABELS.STEP_ONE,status:gt.COMPLETED,iconClass:"icon-litecheckmark-outline"},{label:this.LABELS.STEP_TWO,status:gt.COMPLETED,iconClass:"icon-litecheckmark-outline"},{label:this.LABELS.STEP_THREE,status:gt.ACTIVE,iconClass:"icon-literefresh"},{label:this.LABELS.STEP_FOUR,status:gt.UPCOMING,iconClass:""}]}get minutesText(){return this.padValue(Math.floor(this.remainingSeconds/M.QG.MINUTES_TO_SECONDS))}get secondsText(){return this.padValue(this.remainingSeconds%M.QG.MINUTES_TO_SECONDS)}padValue(n){return n.toString().padStart(2,"0")}downloadOnboardingGuide(){const{PDF_URL:n,FILE_NAME:o}=this.LABELS.ONBOARDING_GUIDE;this.downloadService.downloadFileViaLink(n,o)}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Xt.K))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-wls-verification-pending"]],inputs:{remainingSeconds:"remainingSeconds"},decls:41,vars:15,consts:[[1,"wls-verification-pending"],[1,"verification-badge"],[1,"verification-content"],[1,"verification-icon"],["src","assets/images/hourglass.png",1,"verification-icon-image",3,"alt"],[1,"verification-copy"],[1,"verification-title-container"],[1,"verification-title"],["class","verification-title",4,"ngIf"],[1,"verification-description"],[1,"verification-timer"],[1,"timer-values"],[1,"timer-value-row"],[1,"timer-segment"],[1,"timer-value"],[1,"timer-separator"],[1,"timer-label-row"],[1,"timer-label"],[1,"verification-steps"],[4,"ngFor","ngForOf"],[1,"verification-info-banner"],[1,"icon-liteAlert"],[1,"verification-info-banner-text"],[1,"verification-info-banner-link",3,"click"],[1,"verification-step"],[1,"step-marker",3,"ngClass"],[4,"ngIf","ngIfElse"],["stepNumber",""],[1,"step-label"],["class","step-connector",3,"ngClass",4,"ngIf"],[1,"step-connector",3,"ngClass"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._uU(2),e.qZA(),e.TgZ(3,"div",2)(4,"div",3),e._UZ(5,"img",4),e.qZA(),e.TgZ(6,"div",5)(7,"div",6)(8,"h3",7),e._uU(9),e.qZA(),e.YNc(10,ji,2,1,"h3",8),e.qZA(),e.TgZ(11,"p",9),e._uU(12),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._uU(15),e.qZA()(),e.TgZ(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"span",14),e._uU(21),e.qZA()(),e.TgZ(22,"span",15),e._uU(23,":"),e.qZA(),e.TgZ(24,"div",13)(25,"span",14),e._uU(26),e.qZA()()(),e.TgZ(27,"div",16)(28,"span",17),e._uU(29),e.qZA(),e.TgZ(30,"span",17),e._uU(31),e.qZA()()()()(),e.TgZ(32,"div",18),e.YNc(33,na,9,5,"ng-container",19),e.qZA(),e.TgZ(34,"div",20),e._UZ(35,"em",21),e.TgZ(36,"span",22),e._uU(37),e.TgZ(38,"a",23),e.NdJ("click",function(){return a.downloadOnboardingGuide()}),e._uU(39),e.qZA(),e._uU(40),e.qZA()()()),2&o&&(e.xp6(2),e.Oqu(a.LABELS.STATUS_BADGE),e.xp6(3),e.Q6J("alt",a.LABELS.ICON_ALT),e.xp6(4),e.Oqu(a.LABELS.TITLE),e.xp6(1),e.Q6J("ngIf",a.LABELS.SUBTITLE),e.xp6(2),e.hij(" ",a.LABELS.DESCRIPTION_PREFIX," "),e.xp6(2),e.Oqu(a.LABELS.DESCRIPTION_HIGHLIGHT),e.xp6(1),e.hij(" ",a.LABELS.DESCRIPTION_SUFFIX," "),e.xp6(6),e.Oqu(a.minutesText),e.xp6(5),e.Oqu(a.secondsText),e.xp6(3),e.Oqu(a.LABELS.MINUTES),e.xp6(2),e.Oqu(a.LABELS.SECONDS),e.xp6(2),e.Q6J("ngForOf",a.steps),e.xp6(4),e.hij(" ",a.LABELS.ONBOARDING_GUIDE.PREFIX," "),e.xp6(2),e.Oqu(a.LABELS.ONBOARDING_GUIDE.LINK),e.xp6(1),e.hij("",a.LABELS.ONBOARDING_GUIDE.SUFFIX," "))},dependencies:[p.mk,p.sg,p.O5],styles:['[_nghost-%COMP%]{--verification-opacity-muted: .5;--verification-surface-subtle: rgba(255, 255, 255, .04);--verification-connector-muted: rgba(255, 255, 255, .14);--verification-alert-color: #ffd60a;--verification-radius-circle: 50%;--verification-gap-sm: 12px;--verification-gap-md: 24px;--verification-space-md: 18px;--verification-weight-bold: 700;--verification-font-sm: 14px;--verification-font-md: 16px;--verification-border-interactive: 1px solid var(--theme-interactive-link);--verification-icon-wrapper-size: 120px;--verification-icon-wrapper-size-mobile: 96px;--verification-icon-size: 36px;--verification-step-marker-size: 40px}.wls-verification-pending[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px;padding:48px 32px;border-radius:24px;background-color:var(--configSecondaryBgColor);color:var(--configBgTextColor)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-badge[_ngcontent-%COMP%]{display:flex;justify-content:center;align-self:center;padding:10px 18px;
1border:var(--verification-border-interactive);border-radius:999px;color:var(--theme-interactive-link);font-size:var(--verification-font-sm);font-weight:var(--verification-weight-bold);letter-spacing:.08em;text-wrap:balance;text-align:center}.wls-verification-pending[_ngcontent-%COMP%]   .verification-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--verification-gap-md);text-align:center}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:var(--verification-icon-wrapper-size);height:var(--verification-icon-wrapper-size);border-radius:var(--verification-radius-circle);background-color:var(--verification-surface-subtle)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:18px;border-radius:var(--verification-radius-circle);background:var(--theme-interactive-link);filter:blur(100px)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;border-radius:var(--verification-radius-circle);border:3px solid rgba(29,233,182,.16);border-top-color:var(--theme-interactive-link);border-right-color:var(--theme-interactive-link);animation:_ngcontent-%COMP%_verification-loader-spin 3s linear infinite}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]   .verification-icon-image[_ngcontent-%COMP%]{position:relative;width:var(--verification-icon-size);height:var(--verification-icon-size);object-fit:contain}.wls-verification-pending[_ngcontent-%COMP%]   .verification-copy[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--verification-gap-sm);max-width:640px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-title[_ngcontent-%COMP%], .wls-verification-pending[_ngcontent-%COMP%]   .verification-description[_ngcontent-%COMP%]{margin:0;text-wrap:balance}.wls-verification-pending[_ngcontent-%COMP%]   .verification-title[_ngcontent-%COMP%]{color:var(--configPostTextColor);font-size:28px;font-weight:600}.wls-verification-pending[_ngcontent-%COMP%]   .verification-description[_ngcontent-%COMP%]{color:var(--configBgTextColor);font-size:var(--verification-font-md);opacity:var(--verification-opacity-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--theme-interactive-link);font-weight:var(--verification-weight-bold)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-timer[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:20px 28px;border-radius:16px;background-color:var(--verification-surface-subtle);border:1px solid rgba(255,255,255,.08)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-values[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px}.wls-verification-pending[_ngcontent-%COMP%]   .timer-value-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--verification-space-md)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-label-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(92px,1fr));gap:calc(var(--verification-space-md) * 2)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-segment[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:92px}.wls-verification-pending[_ngcontent-%COMP%]   .timer-value[_ngcontent-%COMP%]{color:var(--theme-interactive-link);font-size:54px;font-weight:var(--verification-weight-bold)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-separator[_ng
1content-%COMP%]{position:relative;top:2px;align-self:start;display:flex;align-items:center;justify-content:center;color:var(--theme-interactive-link);font-size:54px;font-weight:var(--verification-weight-bold);line-height:1;opacity:var(--verification-opacity-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-label[_ngcontent-%COMP%]{color:var(--configBgTextColor);font-size:12px;font-weight:var(--verification-weight-bold);letter-spacing:.2em;opacity:var(--verification-opacity-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-steps[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;gap:var(--verification-gap-sm);width:100%}.wls-verification-pending[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--verification-gap-sm);flex:1;max-width:150px;text-align:center}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:var(--verification-step-marker-size);height:var(--verification-step-marker-size);border-radius:var(--verification-radius-circle);border:var(--verification-border-interactive);color:var(--configBgTextColor);font-size:var(--verification-font-md);font-weight:var(--verification-weight-bold);background-color:transparent}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:var(--verification-font-md)}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker.completed[_ngcontent-%COMP%]{border-color:var(--theme-interactive-link);background-color:var(--theme-interactive-link);color:var(--configButtonTextColor)}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker.active[_ngcontent-%COMP%]{border-color:var(--theme-interactive-link);background-color:transparent;color:var(--theme-interactive-link)}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker.active[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:14px}.wls-verification-pending[_ngcontent-%COMP%]   .step-marker.upcoming[_ngcontent-%COMP%]{color:var(--theme-interactive-link);opacity:var(--verification-opacity-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .step-label[_ngcontent-%COMP%]{color:var(--configBgTextColor);font-size:var(--verification-font-sm);font-weight:500;opacity:var(--verification-opacity-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .step-connector[_ngcontent-%COMP%]{flex:1;height:2px;margin-top:19px;background-color:var(--verification-connector-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .step-connector.completed[_ngcontent-%COMP%]{background-color:var(--theme-interactive-link)}.wls-verification-pending[_ngcontent-%COMP%]   .step-connector.active[_ngcontent-%COMP%]{background-color:var(--verification-connector-muted)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-info-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--verification-gap-sm);
1padding:14px var(--verification-space-md);border:1px solid rgba(255,214,10,.35);border-radius:14px;background-color:#ffd60a14;color:var(--verification-alert-color);font-size:15px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-info-banner[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:var(--verification-space-md)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-info-banner[_ngcontent-%COMP%]   .verification-info-banner-text[_ngcontent-%COMP%]{color:var(--verification-alert-color)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-info-banner[_ngcontent-%COMP%]   .verification-info-banner-link[_ngcontent-%COMP%]{color:inherit;text-decoration:underline;cursor:pointer;font-weight:var(--verification-weight-bold)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-info-banner[_ngcontent-%COMP%]   .verification-info-banner-link[_ngcontent-%COMP%]:hover{opacity:.85}@media (max-width: 992px){.wls-verification-pending[_ngcontent-%COMP%]{padding:24px;gap:var(--verification-gap-md)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-title[_ngcontent-%COMP%]{font-size:34px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-subtitle[_ngcontent-%COMP%]{font-size:20px}.wls-verification-pending[_ngcontent-%COMP%]   .timer-value[_ngcontent-%COMP%], .wls-verification-pending[_ngcontent-%COMP%]   .timer-separator[_ng
1content-%COMP%]{font-size:44px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-steps[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:20px}}@media (max-width: 768px){.wls-verification-pending[_ngcontent-%COMP%]{padding:20px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-title[_ngcontent-%COMP%]{font-size:28px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-subtitle[_ngcontent-%COMP%]{font-size:18px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-description[_ngcontent-%COMP%]{font-size:15px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]{width:var(--verification-icon-wrapper-size-mobile);height:var(--verification-icon-wrapper-size-mobile)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:var(--verification-icon-size)}.wls-verification-pending[_ngcontent-%COMP%]   .verification-timer[_ngcontent-%COMP%]{padding:18px 20px}.wls-verification-pending[_ngcontent-%COMP%]   .timer-values[_ngcontent-%COMP%], .wls-verification-pending[_ngcontent-%COMP%]   .timer-value-row[_ngcontent-%COMP%]{gap:var(--verification-gap-sm)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-label-row[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(72px,1fr));gap:var(--verification-gap-md)}.wls-verification-pending[_ngcontent-%COMP%]   .timer-segment[_ngcontent-%COMP%]{min-width:72px}.wls-verification-pending[_ngcontent-%COMP%]   .timer-value[_ngcontent-%COMP%], .wls-verification-pending[_ngcontent-%COMP%]   .timer-separator[_ng
1content-%COMP%]{font-size:36px}.wls-verification-pending[_ngcontent-%COMP%]   .verification-steps[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:0}.wls-verification-pending[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]{flex-direction:row;align-items:center;gap:16px;max-width:none;width:100%;text-align:left}.wls-verification-pending[_ngcontent-%COMP%]   .step-label[_ngcontent-%COMP%]{font-size:var(--verification-font-md)}.wls-verification-pending[_ngcontent-%COMP%]   .step-connector[_ngcontent-%COMP%]{display:block;width:2px;height:40px;margin:8px 0 8px 19px;flex:none}}@keyframes _ngcontent-%COMP%_verification-loader-spin{to{transform:rotate(360deg)}}'],changeDetection:0}),i})();const ia=["deleteConfirmModal"],aa=["provisioningCompleteModal"],sa=["loginViaSiteModal"],ra=["wlsAppearance"];function la(i,s){1&i&&e._UZ(0,"app-loader",7)}function ca(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.openDnsRecordsModal())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.WLS_URL_CONFIG.VIEW_DNS_RECORDS_LINK)}}function da(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"div",20)(2,"span",21),e._UZ(3,"em",22),e._uU(4),e.qZA(),e.TgZ(5,"button",23),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAppearanceDelete())}),e._UZ(6,"em",24),e.qZA()(),e.YNc(7,ca,2,1,"a",25),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.WLS_PAGE_LABELS.ACTIVE_BADGE," "),e.xp6(3),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&t.wlsFullUrl)}}function pa(i,s){if(1&i&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.WLS_URL_CONFIG.STEP_4_4," ")}}function ga(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.YNc(1,pa,2,1,"div",27),e.TgZ(2,"div",28)(3,"div",29)(4,"label",30),e._uU(5),e.qZA(),e.TgZ(6,"div",31),e._uU(7),e.qZA()(),e.TgZ(8,"app-button",32),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.copyWlsUrl())}),e.qZA()(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!(null!=t.cs&&t.cs.isWhiteLabelWeb)),e.xp6(4),e.Oqu(t.WLS_URL_CONFIG.URL_LABEL),e.xp6(2),e.Oqu(t.wlsFullUrl),e.xp6(1),e.Q6J("btnField",t.WLS_URL_CONFIG.copyBtn)}}function _a(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"a",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.openDnsRecordsModal())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.WLS_URL_CONFIG.VIEW_DNS_RECORDS_LINK)}}function ua(i,s){1&i&&e._UZ(0,"app-loader",37)}function ma(i,s){if(1&i&&(e.TgZ(0,"span",50),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.ekj("wls-cover-page-card__badge--enabled",t.isCoverPageEnabled)("wls-cover-page-card__badge--disabled",!t.isCoverPageEnabled),e.xp6(1),e.hij(" ",t.coverPageStatusLabel," ")}}function fa(i,s){if(1&i&&(e.TgZ(0,"span",50),e._uU(1),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.WLS_COVER_PAGE_CARD.OPTIONAL_BADGE," ")}}function ha(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-toggle-enable",51),e.NdJ("toggleChanged",function(o){e.CHM(t);const a=e.oxw(4);return e.KtG(a.onCoverPageToggleChange(o))}),e.qZA()}if(2&i){const t=e.oxw(4);e.ekj("wls-cover-page-card__toggle--loading",t.isCoverPageToggleLoading),e.Q6J("currentState",t.isCoverPageEnabled)("disableMessage",t.WLS_COVER_PAGE_CARD.DISABLE_MESSAGE)("enableMessage",t.WLS_COVER_PAGE_CARD.ENABLE_MESSAGE)}}function Ca(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",38)(2,"div",39),e._UZ(3,"em",40),e.qZA(),e.TgZ(4,"div",41)(5,"div",42)(6,"h4",43),e._uU(7),e.qZA(),e.YNc(8,ma,2,5,"span",44),e.YNc(9,fa,2,1,"span",45),e.qZA(),e.TgZ(10,"p",46),e._uU(11),e.qZA()()(),e.TgZ(12,"div",47),e.YNc(13,ha,1,5,"app-toggle-enable",48),e.TgZ(14,"button",49),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.goToWhitelabelCoverPage())}),e._uU(15),e.qZA()(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(7),e.hij(" ",t.hasCoverPage?t.WLS_COVER_PAGE_CARD.EXISTING_TITLE:t.WLS_COVER_PAGE_CARD.ADD_TITLE," "),e.xp6(1),e.Q6J("ngIf",t.hasCoverPage),e.xp6(1),e.Q6J("ngIf",!t.hasCoverPage),e.xp6(2),e.hij(" ",t.hasCoverPage?t.WLS_COVER_PAGE_CARD.DESCRIPTION_EXISTING:t.WLS_COVER_PAGE_CARD.DESCRIPTION_ADD," "),e.xp6(2),e.Q6J("ngIf",t.hasCoverPage),e.xp6(2),e.hij(" ",t.hasCoverPage?t.WLS_COVER_PAGE_CARD.EDIT_BUTTON:t.WLS_COVER_PAGE_CARD.SETUP_BUTTON," ")}}function ba(i,s){if(1&i&&(e.TgZ(0,"div",35),e.YNc(1,ua,1,0,"app-loader",36),e.YNc(2,Ca,16,6,"ng-container",2),e.qZA()),2&i){const t=e.oxw(2);e.ekj("wls-cover-page-card--existing",t.hasCoverPage),e.xp6(1),e.Q6J("ngIf",t.isCoverPageLoading),e.xp6(1),e.Q6J("ngIf",!t.isCoverPageLoading)}}function va(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-wls-domain-info",52),e.NdJ("continue",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onDomainInfoContinue(o))}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("initialData",t.domainInfoData)("isLoading",t.isVerifying)}}function xa(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-wls-dns-records",53),e.NdJ("verify",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onDnsVerify())})("back",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onDnsBack())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("cnameData",t.dnsRecordsData)("dnsProviderDetail",t.dnsProviderDetail)("isVerifying",t.isVerifying)("domainType",t.dnsDomainType)("isForwarding",t.dnsIsForwarding)}}function Pa(i,s){if(1&i&&e._UZ(0,"app-wls-verification-pending",54),2&i){const t=e.oxw(2);e.Q6J("remainingSeconds",t.remainingVerificationSeconds)}}function Oa(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-wls-appearance",55,56),e.NdJ("updateAndPublish",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAppearanceSaveAndPublish(o))})("advancedSettingsSave",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAdvancedSettingsSave(o))})("back",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAppearanceBack())})("delete",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAppearanceDelete())})("preview",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAppearancePreview(o))})("publish",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAppearancePublish())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("initialData",t.appearanceData)("webURL",t.webURL)("isSaving",t.isSaving)("userId",t.currentUserId)("userFullName",t.currentUserName)("userProfile",t.userProfile)("isPublishing",t.isPublishing)("isPreviewLoading",t.isPreviewLoading)("lastPublishedAt",t.lastPublishedAt)("coverPageData",t.coverPageData)}}function Ma(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",8)(2,"a",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e._UZ(3,"em",10),e.qZA(),e.TgZ(4,"div",11)(5,"h3",12),e._uU(6),e.qZA(),e.YNc(7,da,8,2,"div",2),e.qZA()(),e.YNc(8,ga,9,4,"ng-container",2),e.YNc(9,_a,2,1,"a",13),e.YNc(10,ba,3,4,"div",14),e.TgZ(11,"div",15),e.YNc(12,va,1,2,"app-wls-domain-info",16),e.YNc(13,xa,1,5,"app-wls-dns-records",17),e.YNc(14,Pa,1,1,"app-wls-verification-pending",18),e.YNc(15,Oa,2,10,"app-wls-appearance",19),e.qZA(),e.BQk()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.WLS_PAGE_LABELS.PAGE_HEADING),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&!t.showVerificationPending),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&t.wlsFullUrl&&!t.showVerificationPending),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&t.wlsFullUrl&&!t.showVerificationPending),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&t.wlsFullUrl&&!t.showVerificationPending),e.xp6(2),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.DOMAIN_INFO),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.DNS_RECORDS),e.xp6(1),e.Q6J("ngIf",t.showVerificationPending),e.xp6(1),e.Q6J("ngIf",t.currentStep===t.WLS_STEPS.APPEARANCE&&!t.showVerificationPending)}}function Ta(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",57,58),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onProvisioningCompleteModalContinue())})("canceled",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onProvisioningCompleteModalContinue())}),e.TgZ(2,"p",59),e._uU(3),e.qZA(),e.TgZ(4,"p",60),e._uU(5),e.qZA()()}if(2&i){const t=e.oxw();
1e.Q6J("headerLabel",t.WLS_PROVISIONING_COMPLETE_MODAL.HEADER)("confirmBtnLabel",t.WLS_PROVISIONING_COMPLETE_MODAL.CONTINUE_BTN)("showCrossBtn",!0)("modalOptions",t.provisioningCompleteModalOptions),e.xp6(3),e.hij(" ",t.WLS_PROVISIONING_COMPLETE_MODAL.BODY_PARA_1," "),e.xp6(2),e.hij(" ",t.WLS_PROVISIONING_COMPLETE_MODAL.NOTE," ")}}function wa(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"p",64),e._uU(1),e.TgZ(2,"strong",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onLoginViaSiteGoToMySite())}),e._uU(3),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.WLS_LOGIN_VIA_SITE_MODAL.BODY_PREFIX," "),e.xp6(2),e.Oqu(t.wlsFullUrl)}}function Ea(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",61,62),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onLoginViaSiteGoToMySite())})("secondaryConfirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.dismissLoginViaSiteModal())})("canceled",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.dismissLoginViaSiteModal())}),e.YNc(2,wa,4,2,"p",63),e.TgZ(3,"p",64),e._uU(4),e.qZA(),e.TgZ(5,"p",65)(6,"strong"),e._uU(7),e.qZA(),e._uU(8),e.qZA()()}if(2&i){const t=e.oxw();e.Q6J("headerLabel",t.WLS_LOGIN_VIA_SITE_MODAL.HEADER)("confirmBtnLabel",t.WLS_LOGIN_VIA_SITE_MODAL.GO_TO_MY_SITE_BTN)("secondaryBtnLabel",t.WLS_LOGIN_VIA_SITE_MODAL.CHANGE_DNS_BTN)("showCrossBtn",!0)("modalOptions",t.loginViaSiteModalOptions),e.xp6(2),e.Q6J("ngIf",t.wlsFullUrl),e.xp6(2),e.hij(" ",t.WLS_LOGIN_VIA_SITE_MODAL.BODY_INSTRUCTION," "),e.xp6(3),e.Oqu(t.WLS_LOGIN_VIA_SITE_MODAL.NOTE_PREFIX),e.xp6(1),e.hij(" ",t.WLS_LOGIN_VIA_SITE_MODAL.NOTE," ")}}let Aa=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b,w){this.router=n,this.modalService=o,this.cd=a,this.store=l,this.authService=g,this.headerFooterStateService=h,this.coverPageApi=b,this.coverPageCmsState=w,this.VERIFICATION_PENDING_DURATION_MS=M.QG.HOURS_TO_MILLISECONDS,this.currentStep=null,this.TOTAL_STEPS=f.uk.APPEARANCE,this.domainInfoData=null,this.dnsRecordsData=null,this.appearanceData=null,this.isStatusCall=!0,this.isSslStatusResolved=!1,this.isWhitelabelDataResolved=!1,this.isVerifying=!1,this.isSaving=!1,this.isPublishing=!1,this.isPreviewLoading=!1,this.isCoverPageLoading=!1,this.isDeletingCoverPage=!1,this.isCoverPageToggleLoading=!1,this.coverPageData=null,this.hasCoverPage=!1,this.coverPageStatusLabel=f.p8.STATUS_DISABLED,this.isCoverPageEnabled=!1,this.lastPublishedAt=null,this.updatedAt=null,this.remainingVerificationSeconds=_.Mx.ZERO,this.whiteLabelData=null,this.webURL="",this.whiteLabelStatus="",this.dnsDomainType="",this.dnsIsForwarding=!1,this.dnsForwardHostOverride=null,this.WLS_URL_CONFIG=f.BO,this.WLS_STEPS=f.uk,this.WLS_PAGE_LABELS=f.Nb,this.WLS_COVER_PAGE_CARD=f.p8,this.WLS_PROVISIONING_COMPLETE_MODAL=f.Dg,this.WLS_LOGIN_VIA_SITE_MODAL=f._K,this.topfansWebsiteUrl=Oe.N.websiteURL,this.topfansWebsiteDisplayUrl=Oe.N.websiteURL?.replace(/^https?:\/\//,"").replace(/\/$/,"")||"",this.provisioningCompleteModalOptions={backdrop:"static",class:"modal-dialog-centered modal-lg"},this.loginViaSiteModalOptions={backdrop:"static",class:"modal-dialog-centered modal-lg"},this.deleteConfirmConfig={headerLabel:f.Ts.HEADER,message:f.Ts.MESSAGE,commonEnum:{YES:f.Ts.YES,NO:f.Ts.NO}},this.isDnsBackAction=!1,this.isCoverPageDeleteAction=!1,this.hasRequestedCoverPageStatus=!1,this.currentUserName="",this.userDataLoaded=!1,this.hasInitialized=!1,this.currentUserId="",this.subscriptionList=[],this.destroy$=new q.x,this.verificationCountdownInterval=null,this.WLS_STEP3_LABELS=f.MI,this.dnsProviderDetail=null,this.uploadService=r.get(Ue.C),this.cs=r.get(A.v),this.apiCallService=r.get(N.F)}ngOnInit(){this.cs.isBrowser&&!this.hasInitialized&&(this.hasInitialized=!0,this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.userProfileSubscription(),this.checkExistingWhitelabelStatus())}userProfileSubscription(){const n=this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.userProfile=o;const{first_name:a,last_name:r,user_name:l}=o||{};this.currentUserName=`${a||""} ${r||""}`.trim(),this.currentUserId=l||"",this.userProfile?.user_name&&!this.userDataLoaded&&(this.userDataLoaded=!0,this.getUserData())});this.subscriptionList.push(n)}checkExistingWhitelabelStatus(){this.isStatusCall=!0;const n=this.apiCallService.get(x.Y9.userSslStatus,!0).subscribe({next:o=>{this.isStatusCall=!1,o?.data?("APPROVED"===o.data.cloud_front?.status?(this.whiteLabelStatus="verified",this.currentStep=f.uk.APPEARANCE,this.loadCoverPageStatus()):(this.whiteLabelStatus="cname",this.currentStep=f.uk.DNS_RECORDS,this.loadCnameData(o.data)),this.dnsProviderDetail=o.data.dns_provider):this.currentStep=f.uk.DOMAIN_INFO,this.isSslStatusResolved=!0,this.startVerificationCountdown(),this.maybeOpenStepModals()},error:()=>{this.isStatusCall=!1,this.whiteLabelStatus="",this.currentStep=f.uk.DOMAIN_INFO,this.isSslStatusResolved=!0,this.startVerificationCountdown(),this.maybeOpenStepModals()}});this.subscriptionList.push(n)}getUserData(){this.isStatusCall=!0;const n=this.apiCallService.get(`${x.Y9.getUsersWhitelabel}`,!0).subscribe({next:o=>{this.isStatusCall=!1,o.status&&o.data&&Object.keys(o.data).length&&(this.whiteLabelData=o.data.whiteLabel,this.webURL=o.data.whiteLabel?.web_url??"",this.cs.setWhiteLabelOwnerEmail(o?.data?.sk),this.loadExistingData(o.data.whiteLabel),this.lastPublishedAt=o.data?.last_published_at??null,this.updatedAt=o.data?.updated_at??null,this.startVerificationCountdown()),this.isWhitelabelDataResolved=!0,this.maybeOpenStepModals()},error:o=>{this.isStatusCall=!1,this.isWhitelabelDataResolved=!0,this.cs.showErrorMessage(o.message),this.maybeOpenStepModals()}});this.subscriptionList.push(n)}loadExistingData(n){if(!n)return;n.web_url&&(this.domainInfoData={hasDomain:!0,dnsProvider:n.dns_provider||"",domainName:n.web_url||"",urlPreference:n.url_preference||f.Hl.ROOT_DOMAIN,subDomainName:n.subdomain_name||""});const o=(n.seo_title??"").trim()||(n.metaTag??"").trim(),a=(n.seo_keywords??"").trim(),r
1=(n.seo_description??"").trim();this.appearanceData={metaTag:n.metaTag||"Official Website of "+(this.authService.userData?.first_name||"")+(this.authService.userData?.last_name?" "+this.authService.userData?.last_name:""),gTagId:n.gTagId??n.gtag_id??"",seo_title:o,seo_keywords:a||(0,f.gS)(this.currentUserName,this.userProfile,this.cs),seo_description:r||(0,f.wA)(this.userProfile),colorPaletteType:n.color_palette_type||f.gf.CUSTOM,selectedPaletteId:n.selected_palette_id||"STANDARD-DEFAULT",bg_color:n.bg_color||"#013956",bg_text_color:n.bg_text_color||"#FFFFFF",secondary_bg_color:n.secondary_bg_color||"#000000",post_text_color:n.post_text_color||"#FFFFFF",theme_color:n.theme_color||"#09c6da",button_text_color:n.button_text_color||"#000000",logoType:n.upload_type||f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE,logo_url:n.logo_url||"",user_text:n.user_text||this.currentUserName,user_font:n.user_font||f.RK[0]?.name,background_image:n.background_image||null,custom_color:n.custom_color||null}}loadCoverPageStatus(n=!1){if(!n&&this.hasRequestedCoverPageStatus)return;this.hasRequestedCoverPageStatus=!0,this.isCoverPageLoading=!0;const a=this.coverPageApi.getOwnPage(!this.cs.isWhiteLabelWeb).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{this.isCoverPageLoading=!1,this.setCoverPageData(r?.status?this.resolveCoverPageData(r.data):null),this.cd.detectChanges()},error:()=>{this.isCoverPageLoading=!1,this.setCoverPageData(null),this.cd.detectChanges()}});this.subscriptionList.push(a)}loadCnameData(n){if(!n)return;const o=[];this.dnsDomainType=n.domain_type||"",this.dnsIsForwarding=n.is_forwarding||!1;const l=this.dnsIsForwarding;"root"!==this.dnsDomainType?(n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"",value:n.cloud_front.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),this.dnsRecordsData={cnameRecords:o}):l?(n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"www",value:n.cloud_front.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),n.ssl_root&&o.push({host:n.ssl_root.cname_name||"",value:n.ssl_root.cname_value||""}),this.dnsRecordsData={cnameRecords:o,forwardHost:this.consumeDnsForwardHostOverride()}):(n.cloud_front_root&&o.push({host:n.cloud_front_root.cname_name?.split(".")[0]||"@",value:n.cloud_front_root.cname_value||"",type:"ANAME"}),n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"www",value:n.cloud_front.cname_value||""}),n.ssl_root&&o.push({host:n.ssl_root.cname_name||"",value:n.ssl_root.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),this.dnsRecordsData={cnameRecords:o})}isForwardingTypeSetup(n){return n.urlPreference===f.Hl.ROOT_DOMAIN&&f.Aj.has(n.dnsProvider)}getForwardingWebUrl(n){return n?n.startsWith("www.")?n:`www.${n}`:""}getForwardingHostUrl(n){const o=this.getForwardingWebUrl(n);return o?`https://${o}`:""}consumeDnsForwardHostOverride(){const n=this.dnsForwardHostOverride;return this.dnsForwardHostOverride=null,n||(this.webURL?`https://${this.webURL}`:"")}goToStep(n){n>=_.Mx.ONE&&n<=this.TOTAL_STEPS&&(n!==f.uk.DNS_RECORDS&&(this.dnsForwardHostOverride=null),n===f.uk.APPEARANCE&&!this.appearanceData&&this.initDefaultAppearanceData(),this.currentStep=n,n===f.uk.APPEARANCE&&this.loadCoverPageStatus(),this.cd.detectChanges())}initDefaultAppearanceData(){const n=this.currentUserName||`${this.authService.userData?.first_name||""} ${this.authService.userData?.last_name||""}`.trim();this.appearanceData={metaTag:`Official Website of ${n}`,gTagId:"",seo_keywords:(0,f.gS)(n,this.userProfile,this.cs),seo_description:(0,f.wA)(this.userProfile),colorPaletteType:f.gf.STANDARD,selectedPaletteId:"STANDARD-DEFAULT",bg_color:"#013956",bg_text_color:"#ffffff",secondary_bg_color:"#000000",post_text_color:"#ffffff",theme_color:"#09c6da",button_text_color:"#000000",logoType:f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE,logo_url:"",user_text:n,user_font:"Roboto",background_image:null,custom_color:null}}onDomainInfoContinue(n){const o=this.isForwardingTypeSetup(n);this.domainInfoData=n,this.dnsForwardHostOverride=o?this.getForwardingHostUrl(n.domainName):null,this.webURL=n.urlPreference===f.Hl.SUBDOMAIN&&n.subDomainName?`${n.subDomainName}.${n.domainName}`:o?this.getForwardingWebUrl(n.domainName):n.domainName,this.requestCertificate(n)}requestCertificate(n){this.isVerifying=!0;const o=n.urlPreference===f.Hl.SUBDOMAIN&&n.subDomainName?`${n.subDomainName}.${n.domainName}`:n.domainName,a=this.isForwardingTypeSetup(n),r=this.apiCallService.post(x.Y9.userCertificate,{domainName:o,dns_provider:n.dnsProvider,url_preference:n.urlPreference,subdomain_name:n.subDomainName,...a&&{is_forwarding:!0}},!0).subscribe({next:l=>{this.isVerifying=!1,l.status&&l.data&&Object.keys(l.data).length?(this.loadCnameData(l.data),this.dnsProviderDetail=l.data.dns_provider??this.dnsProviderDetail,this.whiteLabelStatus="cname",this.goToStep(f.uk.DNS_RECORDS)):this.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG)},error:l=>{this.isVerifying=!1,this.cs.showErrorMessage(l?.statusCode===_.Mx.ACCOUNT_EXITS?l.message:f.gZ.INVALID_DOMAIN_NAME)}});this.subscriptionList.push(r)}onDnsVerify(){this.isVerifying=!0;const n=this.apiCallService.post(x.Y9.verifyCertificate,{},!0).subscribe({next:o=>{this.isVerifying=!1,o.status?(this.whiteLabelStatus="verified",this.cs.showSuccessMessage(o.message||f.gZ.DOMAIN_VERIFIED_SUCCESS),this.lastPublishedAt=o.data?.last_published_at??null,this.updatedAt=o.data?.updated_at??Date.now(),this.goToStep(f.uk.APPEARANCE),this.startVerificationCountdown(),this.maybeOpenStepModals()):this.showVerificationErrorDialog()},error:()=>{this.isVerifying=!1,this.showVerificationErrorDialog()}});this.subscriptionList.push(n)}showVerificationErrorDialog(){this.modalService.show(qi,{initialState:{type:"verify_error"},backdrop:"static"})}onDnsBack(){this.isDnsBackAction=!0,this.isCoverPageDeleteAction=!1,this.deleteConfirmConfig={headerLabel:f.Ts.HEADER,message:f.Ts.MESSAGE,commonEnum:{YES:f.Ts.YES,NO:f.Ts.NO}},this.deleteConfirmModal?.openModal()}onAppearanceSaveAndPublish(n){var o=this;return(0,ge.Z)(function*(){if(o.isValidColorCombos(n)){o.isSaving=!0;try{let a=n.logo_url;n.logo_url&&n.logo_url.startsWith("data:image/")&&(a=yield o.uploadLogoImage(n.logo_url));const r={web_url:o.webURL,metaTag:n.seo_title||n.metaTag,gTagId:n.gTagId||void 0,seo_title:n.seo_title||void 0,seo_keywords:n.seo_keywords||void 0,seo_de
1scription:n.seo_description||void 0,bg_color:n.bg_color,bg_text_color:n.bg_text_color,secondary_bg_color:n.secondary_bg_color,post_text_color:n.post_text_color,theme_color:n.theme_color,button_text_color:n.button_text_color,logo_url:a,upload_type:n.logoType,user_text:n.user_text,user_font:n.user_font,is_text_logo:n.logoType===f.Lz.WHITELABEL_CUSTOM_LOGO_TYPE,color_palette_type:n.colorPaletteType,selected_palette_id:n.selectedPaletteId,dns_provider:o.domainInfoData?.dnsProvider,url_preference:o.domainInfoData?.urlPreference,subdomain_name:o.domainInfoData?.subDomainName,is_update:!!o.whiteLabelData,background_image:n.background_image,custom_color:n.custom_color},l=o.apiCallService.put(x.Y9.whitelabel,r,!0).subscribe({next:g=>{o.isSaving=!1,g.status?(o.whiteLabelData=r,o.updatedAt=g.data?.updated_at??o.updatedAt,o.onAppearancePublish(),o.cd.detectChanges()):o.cs.showErrorMessage(g.message)},error:g=>{o.isSaving=!1,o.cs.showErrorMessage(g.message)}});o.subscriptionList.push(l)}catch{o.isSaving=!1,o.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG)}}})()}onAdvancedSettingsSave(n){if(this.isSaving)return;this.isSaving=!0;const o={web_url:this.webURL,metaTag:n.seo_title||n.metaTag,gTagId:n.gTagId||void 0,seo_title:n.seo_title||void 0,seo_keywords:n.seo_keywords||void 0,seo_description:n.seo_description||void 0,is_update:!!this.whiteLabelData},a=this.apiCallService.put(x.Y9.whitelabel,o,!0).subscribe({next:r=>{this.isSaving=!1,r.status?(this.whiteLabelData={...this.whiteLabelData??{},...o},this.appearanceData={...this.appearanceData??{},...n},this.cs.showSuccessMessage(r.message||f.RV.SAVE_SUCCESS),this.cd.detectChanges()):this.cs.showErrorMessage(r.message||f.RV.SAVE_FAILED)},error:r=>{this.isSaving=!1,this.cs.showErrorMessage(r?.message||f.RV.SAVE_FAILED)}});this.subscriptionList.push(a)}uploadLogoImage(n){var o=this;return(0,ge.Z)(function*(){const a=(0,f.rw)(n),r=`logo_${Date.now()}.png`;try{const l=yield o.uploadService.uploadFile({file:a,fileName:r,folder:_.D4.bannerFolder});return(0,Ue.u)(l.data.Location)}finally{}})()}onAppearanceBack(){if("verified"===this.whiteLabelStatus){const n=Object.assign({type:"white-label-back"}),a=this.modalService.show(un.y,{initialState:n,backdrop:"static"}).onHide?.subscribe(r=>{r===f.Wv.CONFIRM&&this.goToStep(f.uk.DNS_RECORDS)});a&&this.subscriptionList.push(a)}else this.goToStep(f.uk.DNS_RECORDS)}onAppearanceDelete(){this.isDnsBackAction=!1,this.isCoverPageDeleteAction=!1,this.deleteConfirmConfig={headerLabel:f.Ts.HEADER,message:f.Ts.MESSAGE,commonEnum:{YES:f.Ts.YES,NO:f.Ts.NO}},this.deleteConfirmModal?.openModal()}onCoverPageDelete(){this.isDnsBackAction=!1,this.isCoverPageDeleteAction=!0,this.deleteConfirmConfig={headerLabel:f.l2.HEADER,message:f.l2.MESSAGE,commonEnum:{YES:f.l2.YES,NO:f.l2.NO}},this.deleteConfirmModal?.openModal()}onDeleteConfirmed(){if(this.isCoverPageDeleteAction)return void this.deleteCoverPage();if(this.isDnsBackAction){const o=this.apiCallService.delete(x.Y9.deleteWhiteLabel,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status?(this.whiteLabelStatus="",this.whiteLabelData=null,this.lastPublishedAt=null,this.updatedAt=null,this.currentStep=f.uk.DOMAIN_INFO,this.dnsRecordsData=null,this.dnsProviderDetail=null,this.resetDomainInfoKeepProvider(),this.cs.showSuccessMessage(f.gZ.DELETED_SUCCESSFULLY),this.cd.detectChanges()):this.cs.showErrorMessage(a.message||S.Vm.SOMETHING_WENT_WRONG)},error:a=>{this.cs.showErrorMessage(a?.message||S.Vm.SOMETHING_WENT_WRONG)}});return void this.subscriptionList.push(o)}const n=this.apiCallService.delete(x.Y9.deleteWhiteLabel,!0).subscribe({next:o=>{o.status?(this.whiteLabelStatus="",this.whiteLabelData=null,this.lastPublishedAt=null,this.updatedAt=null,this.currentStep=f.uk.DOMAIN_INFO,this.dnsRecordsData=null,this.dnsProviderDetail=null,this.appearanceData=null,this.resetDomainInfoKeepProvider(),this.cs.showSuccessMessage(f.gZ.DELETED_SUCCESSFULLY),this.cd.detectChanges()):this.cs.showErrorMessage(o.message||S.Vm.SOMETHING_WENT_WRONG)},error:o=>{this.cs.showErrorMessage(o?.message||S.Vm.SOMETHING_WENT_WRONG)}});this.subscriptionList.push(n)}deleteCoverPage(){this.isDeletingCoverPage=!0;const n=this.coverPageApi.deletePage().pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{this.isDeletingCoverPage=!1,this.isCoverPageDeleteAction=!1,o?.status?(this.setCoverPageData(null),this.hasRequestedCoverPageStatus=!1,this.cs.showSuccessMessage(f.p8.DELET
1E_SUCCESS)):this.cs.showErrorMessage(o?.message||f.p8.DELETE_FAILED)},error:o=>{this.isDeletingCoverPage=!1,this.isCoverPageDeleteAction=!1,this.cs.showErrorMessage(o?.message||f.p8.DELETE_FAILED)}});this.subscriptionList.push(n)}resetDomainInfoKeepProvider(){this.domainInfoData=this.domainInfoData?{hasDomain:!0,dnsProvider:this.domainInfoData.dnsProvider,domainName:"",urlPreference:f.Hl.ROOT_DOMAIN,subDomainName:""}:null,this.dnsForwardHostOverride=null,this.webURL=""}onAppearancePublish(){this.isPublishing=!0;const n=this.apiCallService.post(x.Y9.publishCloudfront,{},!0).subscribe({next:o=>{if(this.isPublishing=!1,o.status){this.lastPublishedAt=o.data?.last_published_at??this.lastPublishedAt,this.updatedAt=o.data?.updated_at??this.updatedAt,this.startVerificationCountdown(),this.cd.detectChanges();const a=this.lastPublishedAt?this.lastPublishedAt+M.QG.HOURS_TO_MILLISECONDS:Date.now()+M.QG.HOURS_TO_MILLISECONDS;if(this.cs.isWhiteLabelWeb){const r=(0,p.p6)(a,"MMM d, yyyy, h:mm a","en-US");this.cs.showSuccessMessage(`${f.MI.PUBLISH_TIME_TEXT} ${r}`)}else this.wlsAppearance?.openAppearanceUpdatingModal(a)}else this.cs.showErrorMessage(o.message||f.gZ.PUBLISH_FAILED);this.cd.detectChanges()},error:o=>{this.isPublishing=!1,this.cs.showErrorMessage(o?.message||f.gZ.PUBLISH_FAILED),this.cd.detectChanges()}});this.subscriptionList.push(n)}getPreviewBaseUrl(){if(!this.webURL)return this.cs.showErrorMessage(f.gZ.COMPLETE_DOMAIN_SETUP_FIRST),null;let n=this.webURL.startsWith("http")?this.webURL:`https://${this.webURL}`;return n.endsWith("/")||(n+="/"),n}buildAppearancePreviewParams(n){var o=this;return(0,ge.Z)(function*(){if(!n)return null;const a=new URLSearchParams;let r=n.logo_url||"";if(r&&r.startsWith("data:image/"))try{o.isPreviewLoading=!0,o.cd.detectChanges(),r=yield o.uploadLogoImage(r)}catch{r=""}finally{o.isPreviewLoading=!1,o.cd.detectChanges()}return r&&a.append("logo_url",r),n.background_image&&a.append("background_image",n.background_image),n.bg_color&&a.append("bg_color",n.bg_color),n.bg_text_color&&a.append("bg_text_color",n.bg_text_color),n.secondary_bg_color&&a.append("secondary_bg_color",n.secondary_bg_color),n.post_text_color&&a.append("post_text_color",n.post_text_color),n.theme_color&&a.append("theme_color",n.theme_color),n.button_text_color&&a.append("button_text_color",n.button_text_color),n.user_text&&a.append("user_text",n.user_text),n.user_font&&a.append("user_font",n.user_font),a.append(f.aO.PREVIEW,f.Hm),a})()}onAppearancePreview(n){var o=this;return(0,ge.Z)(function*(){const a=o.getPreviewBaseUrl();if(!a)return;const r=yield o.buildAppearancePreviewParams(n);r&&(n.previewTab===f.Cf.COVER_PAGE&&r.append(f.aO.COVER_PAGE_PREVIEW,f.Hm),window.open(`${a}?${r.toString()}`,"_blank"))})()}isValidColorCombos(n){return n.bg_color===n.bg_text_color?(this.cs.showErrorMessage(f.cF.BG_BG_TEXT),!1):n.secondary_bg_color===n.post_text_color?(this.cs.showErrorMessage(f.cF.POST_BG_POST_TEXT),!1):n.theme_color===n.button_text_color?(this.cs.showErrorMessage(f.cF.THEME_BUTTON_TEXT),!1):n.bg_color!==n.secondary_bg_color||(this.cs.showErrorMessage(f.cF.BG_SECONDARY_BG),!1)}moveToDashboard(){this.router.navigate(["/dashboard"])}goToWhitelabelCoverPage(){this.coverPageCmsState.clearCurrentPage(),this.router.navigate([ne._1.WHITELABEL_COVER_PAGE],{state:{forceCoverPageReload:!0}})}onCoverPageToggleChange(n){if(!this.coverPageData||this.isCoverPageToggleLoading)return;const o=this.isCoverPageEnabled;this.isCoverPageEnabled=n,this.syncCoverPageStatusLabel(),this.isCoverPageToggleLoading=!0;const a=n?xt.zj.STATUS_PUBLISHED:xt.zj.STATUS_DRAFT;this.coverPageCmsState.hydrateFromApi(this.coverPageData);const r=this.coverPageApi.updatePageFromState(this.coverPageCmsState.getCurrentPageState(),a).pipe((0,Go.w)(l=>{if(!l?.status)throw new Error(l?.message||f.p8.TOGGLE_FAILED);return this.apiCallService.post(x.Y9.publishCloudfront,{},!0)}),(0,v.R)(this.destroy$)).subscribe({next:l=>{if(this.isCoverPageToggleLoading=!1,!l?.status)return this.revertCoverPageToggle(o),void this.cs.showErrorMessage(l?.message||f.gZ.PUBLISH_FAILED);this.setCoverPageData({...this.coverPageData,status:a}),this.coverPageCmsState.setCurrentPageState({status:a}),this.cs.showSuccessMessage(l.message||(n?f.p8.ENABLE_MESSAGE:f.p8.DISABLE_MESSAGE)),this.cd.detectChanges()},error:l=>{this.isCoverPageToggleLoading=!1,this.revertCoverPageToggle(o),this.cs.showErrorMessage(l?.message||f.p8.TOGGLE_FAILED),this.cd.detectChanges()}});this.subscriptionList.push(r)}revertCoverPageToggle(n){this.isCoverPageEnabled=n,this.syncCoverPageStatusLabel()}syncCoverPageStatusLabel(){this.coverPageStatusLabel=this.isCoverPageEnabled?f.p8.STATUS_PUBLISHED:f.p8.
1STATUS_DISABLED}deleteWhiteLabel(){const n=Object.assign({type:"white-label"}),a=this.modalService.show(un.y,{initialState:n,backdrop:"static"}).onHide.subscribe(r=>{r&&r===_.Mx.FIVE_HUNDRED_THREE?(this.whiteLabelStatus="",this.whiteLabelData=null,this.lastPublishedAt=null,this.updatedAt=null,this.currentStep=f.uk.DOMAIN_INFO,this.dnsRecordsData=null,this.dnsProviderDetail=null,this.appearanceData=null,this.resetDomainInfoKeepProvider()):r&&r===_.Mx.TWO_HUNDRED&&(this.whiteLabelStatus=""),this.cd.detectChanges()});this.subscriptionList.push(a)}get wlsFullUrl(){return this.webURL?this.webURL.startsWith("http")?this.webURL:`https://${this.webURL}`:""}setCoverPageData(n){this.coverPageData=n,this.hasCoverPage=!!n,this.isCoverPageEnabled=n?.status===xt.zj.STATUS_PUBLISHED,this.syncCoverPageStatusLabel()}resolveCoverPageData(n){if(!n||!Object.keys(n).length)return null;if(n.sections?.length)return n;const o=Gi.a?.data;return{...n,sections:o?.sections??[]}}get showVerificationPending(){return this.currentStep===f.uk.APPEARANCE&&!this.lastPublishedAt&&!!this.updatedAt&&this.updatedAt+this.VERIFICATION_PENDING_DURATION_MS>Date.now()}get shouldShowProvisioningCompleteModal(){return this.isSslStatusResolved&&this.isWhitelabelDataResolved&&this.currentStep===f.uk.APPEARANCE&&!!this.wlsFullUrl&&!this.lastPublishedAt&&!this.showVerificationPending&&!this.cs.isWhiteLabelWeb}get shouldShowLoginViaSiteModal(){return this.isSslStatusResolved&&this.isWhitelabelDataResolved&&this.currentStep===f.uk.APPEARANCE&&!!this.wlsFullUrl&&!!this.lastPublishedAt&&!this.showVerificationPending&&!this.cs.isWhiteLabelWeb}hasDismissedProvisioningCompleteModal(){return!this.cs.isBrowser||"true"===sessionStorage.getItem(f.Dg.SESSION_STORAGE_KEY)}maybeOpenStepModals(){this.maybeOpenProvisioningCompleteModal(),this.maybeOpenLoginViaSiteModal()}maybeOpenProvisioningCompleteModal(){!this.cs.isBrowser||this.hasDismissedProvisioningCompleteModal()||!this.shouldShowProvisioningCompleteModal||this.provisioningCompleteModal?.isModalOpen||setTimeout(()=>{!this.hasDismissedProvisioningCompleteModal()&&this.shouldShowProvisioningCompleteModal&&!this.provisioningCompleteModal?.isModalOpen&&this.provisioningCompleteModal?.openModal()})}onProvisioningCompleteModalContinue(){this.cs.isBrowser&&sessionStorage.setItem(f.Dg.SESSION_STORAGE_KEY,"true")}hasDismissedLoginViaSiteModal(){return!this.cs.isBrowser||"true"===sessionStorage.getItem(f._K.SESSION_STORAGE_KEY)}maybeOpenLoginViaSiteModal(){!this.cs.isBrowser||this.hasDismissedLoginViaSiteModal()||!this.shouldShowLoginViaSiteModal||this.loginViaSiteModal?.isModalOpen||setTimeout(()=>{!this.hasDismissedLoginViaSiteModal()&&this.shouldShowLoginViaSiteModal&&!this.loginViaSiteModal?.isModalOpen&&this.loginViaSiteModal?.openModal()})}dismissLoginViaSiteModal(){this.cs.isBrowser&&sessionStorage.setItem(f._K.SESSION_STORAGE_KEY,"true"),this.loginViaSiteModal?.closeModal()}onLoginViaSiteGoToMySite(){this.dismissLoginViaSiteModal(),this.wlsFullUrl&&this.cs.openUrl(this.wlsFullUrl)}copyWlsUrl(){this.wlsFullUrl&&navigator.clipboard.writeText(this.wlsFullUrl).then(()=>{this.cs.showSuccessMessage(f.gZ.URL_COPIED)}).catch(()=>{this.cs.showErrorMessage(f.gZ.URL_COPY_FAILED)})}openDnsRecordsModal(){const o=this.modalService.show(fn,{initialState:{viewOnly:!0,isLoading:!0}
1,class:"modal-lg dns-records-modal"}),a=o.content,r=this.apiCallService.get(x.Y9.userSslStatus,!1).subscribe({next:l=>{if(l?.data){const g=this.parseDnsRecordsFromResponse(l.data);a.cnameData=g.cnameRecords,a.domainType=g.domainType,a.isForwarding=g.isForwarding,a.dnsProviderDetail=l.data.dns_provider??this.dnsProviderDetail,a.isLoading=!1,a.ngOnInit()}else o.hide(),this.cs.showErrorMessage(f.gZ.DNS_RECORDS_NOT_FOUND)},error:l=>{o.hide(),this.cs.showErrorMessage(l?.message||f.gZ.DNS_RECORDS_NOT_FOUND)}});this.subscriptionList.push(r)}parseDnsRecordsFromResponse(n){const o=[],a=n.domain_type||"",r=n.is_forwarding||!1;return"root"===a?r?(n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"www",value:n.cloud_front.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),n.ssl_root&&o.push({host:n.ssl_root.cname_name||"",value:n.ssl_root.cname_value||""}),{cnameRecords:{cnameRecords:o,forwardHost:this.consumeDnsForwardHostOverride()},domainType:a,isForwarding:r}):(n.cloud_front_root&&o.push({host:n.cloud_front_root.cname_name?.split(".")[0]||"@",value:n.cloud_front_root.cname_value||"",type:"ANAME"}),n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"www",value:n.cloud_front.cname_value||""}),n.ssl_root&&o.push({host:n.ssl_root.cname_name||"",value:n.ssl_root.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),{cnameRecords:{cnameRecords:o},domainType:a,isForwarding:r}):(n.cloud_front&&o.push({host:n.cloud_front.cname_name?.split(".")[0]||"",value:n.cloud_front.cname_value||""}),n.ssl&&o.push({host:n.ssl.cname_name||"",value:n.ssl.cname_value||""}),{cnameRecords:{cnameRecords:o},domainType:a,isForwarding:r})}ngOnDestroy(){this.clearVerificationCountdown(),this.hasInitialized=!1,this.userDataLoaded=!1,this.subscriptionList.forEach(n=>n?.unsubscribe?.()),this.destroy$.next(),this.destroy$.complete()}startVerificationCountdown(){this.clearVerificationCountdown(),this.updateVerificationCountdown(),this.cs.isBrowser&&this.showVerificationPending&&(this.verificationCountdownInterval=setInterval(()=>{this.updateVerificationCountdown()},M.QG.SECONDS_TO_MILLISECONDS))}updateVerificationCountdown(){if(!this.updatedAt||this.lastPublishedAt)return this.remainingVerificationSeconds=_.Mx.ZERO,void this.clearVerificationCountdown();const n=this.updatedAt+this.VERIFICATION_PENDING_DURATION_MS-Date.now();this.remainingVerificationSeconds=n>_.Mx.ZERO?Math.ceil(n/M.QG.SECONDS_TO_MILLISECONDS):_.Mx.ZERO,n<=_.Mx.ZERO&&(this.clearVerificationCountdown(),this.maybeOpenStepModals()),this.cd.detectChanges()}clearVerificationCountdown(){this.verificationCountdownInterval&&(clearInterval(this.verificationCountdownInterval),this.verificationCountdownInterval=null)}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(k.tT),e.Y36(e.sBO),e.Y36(e.zs3),e.Y36(le.yh),e.Y36(ue.AuthService),e.Y36(c.P),e.Y36(Yi.$),e.Y36(Ji.u))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-whitelabel-site"]],viewQuery:function(o,a){if(1&o&&(e.Gf(ia,5),e.Gf(aa,5),e.Gf(sa,5),e.Gf(ra,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.deleteConfirmModal=r.first),e.iGM(r=e.CRH())&&(a.provisioningCompleteModal=r.first),e.iGM(r=e.CRH())&&(a.loginViaSiteModal=r.first),e.iGM(r=e.CRH())&&(a.wlsAppearance=r.first)}},decls:7,vars:10,consts:[[1,"whitelabel-site-container"],["class","loader-container",4,"ngIf"],[4,"ngIf"],["dynamicClass","wls-delete-modal",3,"headerLabel","ConfirmationMessage","commonEnum","isDeleteModal","confirmDelete"],["deleteConfirmModal",""],["dynamicClass","wls-provisioning-complete-modal",3,"headerLabel","confirmBtnLabel","showCrossBtn","modalOptions","confirmed","canceled",4,"ngIf"],["dynamicClass","wls-login-via-site-modal",3,"headerLabel","confirmBtnLabel","secondaryBtnLabel","showCrossBtn","modalOptions","confirmed","secondaryConfirmed","canceled",4,"ngIf"],[1,"loader-container"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-liteicon-close"],[1,"heading-row"],[1,"main-heading"],["class","view-dns-link wls-section",3,"click",4,"ngIf"],["class","wls-cover-page-card",3,"wls-cover-page-card--existing",4,"ngIf"],[1,"step-content"],[3,"initialData","isLoading","continue",4,"ngIf"],[3,"cnameData","dnsProviderDetail","isVerifying","domainType","isForwarding","verify","back",4,"ngIf"],[3,"remainingSeconds",4,"ngIf"],[3,"initialData","webURL","isSaving","userId","userFullName","userProfile","isPublishing","isPreviewLoading","lastPublishedAt","coverPageData","updateAndPublish","advancedSettingsSave","back","delete","preview","publish",4,"ngIf"],[1,"header-actions"],[1,"active-badge"],[1,"icon-litecheckmark-outline"],["type","button",1,"header-delete-btn",3,"click"],[1,"icon-litedelete-new"],["class","view-dns-link mt-2",3,"click",4,"ngIf"],[1,"view-dns-link","mt-2",3,"click"],["class","onboarding-step steps-circle mb-4",4,"ngIf"],[1,"wls-url-section"],[1,"url-field"],[1,"url-label"],[1,"url-input-display"],[3,"btnField","handleButtonClick"],[1,"onboarding-step","steps-circle","mb-4"],[1,"view-dns-link","wls-section",3,"click"],[1,"wls-cover-page-card"],["class","wls-cover-page-card__loader",4,"ngIf"],[1,"wls-cover-page-card__loader"],[1,"wls-cover-page-card__content"],[1,"wls-cover-page-card__icon"],[1,"icon-litecover_page"],[1,"wls-cover-page-card__title-row"],[1,"wls-cover-page-card__title-row-content"],[1,"wls-cover-page-card__title"],["class","wls-cover-page-card__badge",3,"wls-cover-page-card__badge--enabled","wls-cover-page-card__badge--disabled",4,"ngIf"],["class","wls-cover-page-card__badge",4,"ngIf"],[1,"wls-cover-page-card__description"],[1,"wls-cover-page-card__actions"],["class","wls-cover-page-card__toggle",3,"wls-cover-page-card__toggle--loading","currentState","disableMessage","enableMessage","toggleChanged",4,"ngIf"],["type","button",1,"btn","btn-primary","wls-cover-page-card__primary",3,"click"],[1,"wls-cover-page-card__badge"],[1,"wls-cover-page-card__toggle",3,"currentState","disableMessage","enableMessage","toggleChanged"],[3,"initialData","isLoading","continue"],[3,"cnameData","dnsProviderDetail","isVerifying","domainType","isForwarding","verify","back"],[3,"remainingSeconds"],[3,"initialData","webURL","isSaving","userId","userFullName","userProfile","isPublishing","isPreviewLoading","lastPublishedAt","coverPageData","updateAndPublish","advancedSettingsSave","back","delete","preview","publish"],["wlsAppearance",""],["dynamicClass","wls-provisioning-complete-modal",3,"headerLabel","confirmBtnLabel","showCrossBtn","modalOptions","confirmed","canceled"],["provisioningCompleteModal",""],[1,"wls-provisioning-complete-modal__text"],[1,"wls-provisioning-complete-modal__note"],["dynamicClass","wls-login-via-site-modal",3,"headerLabel","confirmBtnLabel","secondaryBtnLabel","showCrossBtn","modalOptions","confirmed","secondaryConfirmed","canceled"],["loginViaSiteModal",""],["class","wls-login-via-site-modal__text",4,"ngIf"],[1,"wls-login-via-site-modal__text"],[1,"wls-login-via-site-modal__note"],[1,"wls-login-via-site-modal__link",3,"click"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e.YNc(1,la,1,0,"app-loader",1),e.YNc(2,Ma,16,9,"ng-container",2),e.qZA(),e.TgZ(3,"a
1pp-confirmation-modal",3,4),e.NdJ("confirmDelete",function(){return a.onDeleteConfirmed()}),e.qZA(),e.YNc(5,Ta,6,6,"app-alert-modal",5),e.YNc(6,Ea,9,9,"app-alert-modal",6)),2&o&&(e.ekj("whitelabel-site-container--topfans",!a.cs.isWhiteLabelWeb),e.xp6(1),e.Q6J("ngIf",a.isStatusCall),e.xp6(1),e.Q6J("ngIf",!a.isStatusCall),e.xp6(1),e.Q6J("headerLabel",a.deleteConfirmConfig.headerLabel)("ConfirmationMessage",a.deleteConfirmConfig.message)("commonEnum",a.deleteConfirmConfig.commonEnum)("isDeleteModal",!0),e.xp6(2),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.O5,ae.r,U.F,Ke.R,Fe.Y,nt.w,$i,fn,Si,oa],styles:[".wls-provisioning-complete-modal .wls-provisioning-complete-modal__text,   .wls-provisioning-complete-modal .wls-provisioning-complete-modal__note{margin:0 0 16px;color:var(--configBgTextColor);line-height:1.5}  .wls-provisioning-complete-modal .wls-provisioning-complete-modal__link{color:var(--theme-interactive-link)!important;text-decoration:none;cursor:pointer}  .wls-login-via-site-modal .wls-login-via-site-modal__text,   .wls-login-via-site-modal .wls-login-via-site-modal__note{margin:0 0 16px;color:var(--configBgTextColor);line-height:1.5}  .wls-login-via-site-modal .wls-login-via-site-modal__link{color:var(--theme-interactive-link)!important;text-decoration:none;cursor:pointer}.whitelabel-site-container[_ngcontent-%COMP%]{min-height:300px}@media (max-width: 991.98px){.whitelabel-site-container[_ngcontent-%COMP%]{margin-top:20px;overflow:visible}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]{z-index:500!important}.whitelabel-site-container[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{position:relative;z-index:1}}.whitelabel-site-container.whitelabel-site-container--topfans[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{max-width:100%!important}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:16px;margin-bottom:8px}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{height:unset!important;margin-top:0!important}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   .icon-liteicon-close[_ngcontent-%COMP%]{line-height:unset!important}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   .icon-liteicon-close[_ngcontent-%COMP%]:before{color:var(--configBgTextColor)!important}@media (min-width: 992px){.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]{padding:16px 0}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{display:none}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   .icon-liteicon-close[_ngcontent-%COMP%]:before{font-size:18px;color:var(--configBgTextColor)!important}}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .main-heading[_ngcontent-%COMP%]{margin:0}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .active-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;background-color:#2e8b2a;color:#fff}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .active-badge[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:12px}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .header-delete-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background-color:var(--theme-interactive-link);color:var(--configButtonTextColor);cursor:pointer;transition:opacity .2s ease}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .header-delete-btn[_ngcontent-%COMP%]:hover{opacity:.85}.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .header-delete-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px}@media (max-width: 992px){.whitelabel-site-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .heading-row[_ngcontent-%COMP%]   .view-dns-link[_ngcontent-%COMP%]{display:none}}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-url-section[_ngcontent-%COMP%]{display:flex;align-items:flex-end;
1gap:12px;margin-bottom:16px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-url-section[_ngcontent-%COMP%]   .url-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-url-section[_ngcontent-%COMP%]   .url-field[_ngcontent-%COMP%]   .url-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configBgTextColor)!important}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-url-section[_ngcontent-%COMP%]   .url-field[_ngcontent-%COMP%]   .url-input-display[_ngcontent-%COMP%]{padding:10px 16px;background-color:var(--configSecondaryBgColor);border:1px solid transparent;border-radius:28px;color:var(--configPostTextColor);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:20px;min-height:124px;padding:24px;margin:20px 0;background-color:var(--configSecondaryBgColor);border-radius:28px;color:var(--configPostTextColor)}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__loader[_ngcontent-%COMP%]{width:100%;min-height:76px;display:flex;align-items:center;justify-content:center}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__icon[_ngcontent-%COMP%]{width:38px;height:38px;flex:0 0 38px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--theme-interactive-link)!important}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:24px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--configButtonTextColor)!important}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__content[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;gap:16px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__title-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:12px;flex-wrap:wrap}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__title-row-content[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__toggle[_ngcontent-%COMP%]{flex-shrink:0}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__toggle--loading[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;cursor:not-allowed}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__title[_ngcontent-%COMP%]{margin:0;font-size:24px;line-height:1.2;font-weight:700;color:var(--configPostTextColor)!important}@media (max-width: 992px){.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__title[_ngcontent-%COMP%]{font-size:18px}}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:28px;padding:5px 12px;border-radius:999px;font-size:13px;line-height:1;font-weight:700;background-color:var(--configBgColor);color:var(--configBgTextColor)!important}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__description[_ngcontent-%COMP%]{max-width:760px;margin:0;color:var(--configPostTextColor)!important;font-size:16px;line-height:1.45}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__actions[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-left:auto}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__primary[_ngcontent-%COMP%]{white-space:nowrap;min-width:166px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__delete[_ngcontent-%COMP%]{width:54px;height:44px;border:0;border-radius:999px;display:flex;align-items:center;justify-content:center;background-color:var(--theme-interactive-link);color:var(--configButtonTextColor)!important;cursor:pointer;transition:opacity .2s ease}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__delete[_ng
1content-%COMP%]:disabled{cursor:not-allowed;opacity:.65}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__delete[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:18px}@media (max-width: 992px){.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card[_ngcontent-%COMP%]{align-items:flex-start;flex-wrap:wrap;padding:20px}.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__actions[_ngcontent-%COMP%]{width:100%;justify-content:flex-start;margin-left:0}}@media (max-width: 576px){.whitelabel-site-container[_ngcontent-%COMP%]   .wls-cover-page-card__primary[_ngcontent-%COMP%]{flex:1;min-width:0}}.whitelabel-site-container[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:16px;max-width:1200px;margin:0 auto}@media (max-width: 992px){.whitelabel-site-container[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{margin-top:24px}}.whitelabel-site-container[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]:has(app-wls-appearance){background-color:transparent}.whitelabel-site-container[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]:has(app-wls-verification-pending){background-color:transparent}.preset-radio-options[_ngcontent-%COMP%]{margin-top:16px}@media (max-width: 768px){.preset-radio-options[_ngcontent-%COMP%]{width:100%!important}.preset-radio-options[_ngcontent-%COMP%]   .custom-radio[_ngcontent-%COMP%]{min-width:50%}}.form-theme-control[_ngcontent-%COMP%]:has(input:disabled){cursor:not-allowed;opacity:.5}.form-theme-control[_ngcontent-%COMP%]:has(input:disabled)   .color-icon[_ngcontent-%COMP%], .form-theme-control[_ngcontent-%COMP%]:has(input:disabled)   input[_ngcontent-%COMP%]{cursor:not-allowed!important}.main-heading-info-icon[_ngcontent-%COMP%]{vertical-align:middle}.main-heading-info-icon[_ngcontent-%COMP%]:before{font-size:22px}.domain-name-info-icon[_ngcontent-%COMP%]{position:unset!important;vertical-align:middle}.domain-name-info-icon[_ngcontent-%COMP%]:before{font-size:22px}.cname-info-icon[_ngcontent-%COMP%]{vertical-align:middle}.cname-info-icon[_ngcontent-%COMP%]:before{font-size:18px}.custom-url-saved-info[_ngcontent-%COMP%]{position:unset!important}.custom-url-saved-info[_ngcontent-%COMP%]:before{font-size:22px}@media (max-width: 992px){.custom-radio[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{margin-top:-2px}}.btn-primary[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 8px)}.btn-primary.next-step-btn[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%], .btn-primary.update-btn[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{left:calc(50% - 65px)}.btn-primary.verify-btn[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{left:calc(50% - 45px)}.view-dns-link[_ngcontent-%COMP%]{color:var(--theme-interactive-link)!important;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;padding-bottom:10px;margin-left:auto;text-decoration:none}.view-dns-link.wls-section[_ngcontent-%COMP%]{display:none}@media (max-width: 992px){.view-dns-link.wls-section[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]     .steps-circle{width:-moz-fit-content;width:fit-content;margin:0}[_nghost-%COMP%]     .form-group{margin:0!important}  .dns-records-modal .modal-content{background-color:var(--configBgColor);border:none;border-radius:16px}  .dns-records-modal .modal-body{padding:0}  .wls-delete-modal .modal-footer .btn-default{min-width:95px!important}  .theme-whiteLabel .whitelabel-site-container{--theme-interactive-link: var(--configThemeColor)}  .theme-whiteLabel .wls-cover-page-card__actions .toggle-enable-container .disable-btn:not(.active-enable),   .theme-whiteLabel .wls-cover-page-card__actions .toggle-enable-container .enable-btn:not(.active-enable){background:var(--configBgColor)!important;color:var(--configBgTextColor)!important}"]}),i})();var Me=d(22798),Pt=d(46359),ya=d(54121),Sa=d(16738),Cn=d.n(Sa),Ia=d(35873),be=d(65737),bn=d(94183),de=d(26877),vn=d(59792),Ot=d(11031),ka=d(81690),Da=d.n(ka),on=d(28141),Na=d(24529),La=d.n(Na),Ae=d(56380),xn=d(72400);
1const Za={LABELS:{TITLE:"Profile Photo",CREATE_AVATAR:"Create Your Avatar",UPLOAD_IMAGE:"Upload Image",OR:"or"}},Fa=["choiceModal"],Ua=function(){return{class:"modal-dialog-centered"}},Pn=function(i){return{type:"button",label:i,class:"btn btn-primary"}};let On=(()=>{const s=class{constructor(){this.createAvatarSelected=new e.vpe,this.uploadImageSelected=new e.vpe,this.CONSTANTS=Za}openModal(){this.choiceModal?.openModal()}closeModal(){this.choiceModal?.closeModal()}handleCreateAvatar(){this.closeModal(),setTimeout(()=>this.createAvatarSelected.emit(),200)}handleUploadImage(){this.closeModal(),setTimeout(()=>this.uploadImageSelected.emit(),200)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-profile-image-choice-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(Fa,5),2&o){let r;e.iGM(r=e.CRH())&&(a.choiceModal=r.first)}},outputs:{createAvatarSelected:"createAvatarSelected",uploadImageSelected:"uploadImageSelected"},standalone:!0,features:[e.jDz],decls:8,vars:12,consts:[[3,"headerLabel","showConfirmationBtn","dynamicClass","modalOptions"],["choiceModal",""],[1,"profile-image-choice"],[3,"btnField","handleButtonClick"],[1,"or-divider"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1)(2,"div",2)(3,"app-button",3),e.NdJ("handleButtonClick",function(){return a.handleCreateAvatar()}),e.qZA(),e.TgZ(4,"div",4)(5,"span"),e._uU(6),e.qZA()(),e.TgZ(7,"app-button",3),e.NdJ("handleButtonClick",function(){return a.handleUploadImage()}),e.qZA()()()),2&o&&(e.Q6J("headerLabel",a.CONSTANTS.LABELS.TITLE)("showConfirmationBtn",!1)("dynamicClass","profile-image-choice-modal")("modalOptions",e.DdM(7,Ua)),e.xp6(3),e.Q6J("btnField",e.VKq(8,Pn,a.CONSTANTS.LABELS.CREATE_AVATAR)),e.xp6(3),e.Oqu(a.CONSTANTS.LABELS.OR),e.xp6(1),e.Q6J("btnField",e.VKq(10,Pn,a.CONSTANTS.LABELS.UPLOAD_IMAGE)))},dependencies:[p.ez,U.F,ae.r],styles:['.profile-image-choice-modal .modal-footer{display:none}.profile-image-choice[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:8px 0 16px}.profile-image-choice[_ngcontent-%COMP%]     .btn{width:100%}.or-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:inherit;opacity:.7;font-size:14px;text-transform:lowercase}.or-divider[_ngcontent-%COMP%]:before, .or-divider[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:currentColor;opacity:.3}']}),i})();var an=d(46515),Ba=d(57131),Ra=d(64950),sn=d(15140),rn=d(11208);function qa(i,s){1&i&&(e.TgZ(0,"div",14)(1,"div",10),e._UZ(2,"app-skeleton",15),e.qZA()())}function Ga(i,s){1&i&&(e.TgZ(0,"div",14)(1,"div",10),e._UZ(2,"app-skeleton",15),e.qZA()())}let Mn=(()=>{const s=class{constructor(){this.topFields=Array(10),this.bottomFields=Array(5)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-personal-info-skeleton"]],standalone:!0,features:[e.jDz],decls:16,vars:2,consts:[[1,"skeleton-personal-info"],[1,"skeleton-banner-profile"],[1,"skeleton-banner"],["className","h-100% w-100% r-0 c-post"],[1,"skeleton-avatar"],["className","h-96 w-96 r-50% c-post"],[1,"skeleton-fields"],[1,"row"],["class","col-12 col-lg-6",4,"ngFor","ngForOf"],[1,"col-12"],[1,"skeleton-field"],["className","h-160 w-100% r-20 c-post"],[1,"col-12","skeleton-heading"],["className","h-20 w-180 r-4 c-post"],[1,"col-12","col-lg-6"],["className","h-48 w-100% r-28 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1)(3,"div",2),e._UZ(4,"app-skeleton",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"app-skeleton",5),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7),e.YNc(9,qa,3,0,"div",8),e.TgZ(10,"div",9)(11,"div",10),e._UZ(12,"app-skeleton",11),e.qZA()(),e.TgZ(13,"div",12),e._UZ(14,"app-skeleton",13),e.qZA(),e.YNc(15,Ga,3,0,"div",8),e.qZA()()()),2&o&&(e.xp6(9),e.Q6J("ngForOf",a.topFields),e.xp6(6),e.Q6J("ngForOf",a.bottomFields))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-personal-info[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;overflow:hidden;margin:12px}@media (min-width: 992px){.skeleton-personal-info[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-banner-profile[_ngcontent-%COMP%]{position:relative;margin:-30px -30px 0}@media (max-width: 992px){.skeleton-banner-profile[_ngcontent-%COMP%]{margin:-24px -12px 0}}.skeleton-banner[_ngcontent-%COMP%]{overflow:hidden;aspect-ratio:2/1}
1.skeleton-avatar[_ngcontent-%COMP%]{margin:-48px 0 0 20px;position:relative;z-index:1;background-color:var(--configSecondaryBgColor);border-radius:50%;padding:5px;width:-moz-fit-content;width:fit-content}.skeleton-fields[_ngcontent-%COMP%]{margin-top:20px}.skeleton-field[_ngcontent-%COMP%]{margin:25px 0 0}@media (min-width: 992px){.skeleton-field[_ngcontent-%COMP%]{margin:20px 0 0}}.skeleton-heading[_ngcontent-%COMP%]{margin-top:30px;padding-top:10px}"]}),i})();const Tn={sections:[{title:"",fields:[{type:M.sf.TEXT,label:"New Email Address",name:"newEmailAddress",class:"col-12",autoComplete:"new-email",placeholder:"Enter New Email Address",validation:{required:{message:"New Email is required"},pattern:{value:F.mL.EMAIL,message:"Email is invalid"},mismatch:{message:"New email must be different from the old one"}}},{type:M.sf.PASSWORD,label:"Enter Current Password",name:"oldPassword",class:"col-12",autoComplete:"new-password",placeholder:"Enter Current Password",infoIconMessage:ft.M,validation:{required:{message:"Current Password is required"},minlength:{value:8,message:"Minimum 8 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:F.mL.PASSWORD,message:"Current Password is invalid"},mismatch:{message:"The password confirmation does not match"}}}]}],buttons:[]};var Ya=d(37524),_e=d.n(Ya),Ja=d(91786),wn=d(65598);const _t={proceed:"Proceed",resendCode:"Resend Code",verifyOTP:"Verify Your New Email Address",update:"Update",emailUpdated:"Email Address Updated",EMAIL_SUCCESS_UPDATED:"Your email address has been successfully updated to: [newEmail].",updateEmailAddress:"Update Email Address",enterVerificationCode:"Enter Verification Code",OTP_SENT_ON_NEW_EMAIL:"We sent a verification code to your new email at",otpNotReceived:"Didn\u2019t receive your Verification Code? You can request a new one in:",emailChangedSuccessfully:"Your email address has been updated successfully. You can now log in with your new email.",SIGN_IN_WITH_EMAIL:"You'll need to Sign In with your new email address."};var En=d(95356),Va=d(8465);const Wa=["updateEmailRef"];function Ha(i,s){if(1&i&&e._UZ(0,"app-dynamic-form-builder",4),2&i){const t=e.oxw();e.Q6J("form",t.form)("fields",t.formFields)}}function Qa(i,s){if(1&i&&(e.TgZ(0,"p",15),e._uU(1),e.ALo(2,"formatTime"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.AsE(" ",t.labels.otpNotReceived," ",e.lcZ(2,2,t.counter)," ")}}function Ka(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"p",8),e._uU(4),e.TgZ(5,"b"),e._uU(6),e.qZA()(),e.TgZ(7,"p",9),e._uU(8),e.qZA(),e.TgZ(9,"div",10)(10,"div",11)(11,"ng-otp-input",12,13),e.NdJ("onInputChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onNewOtpChange(o))}),e.qZA()()(),e.YNc(13,Qa,3,4,"p",14),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(4),e.hij(" ",t.labels.OTP_SENT_ON_NEW_EMAIL," "),e.xp6(2),e.Oqu(null==t.emailPayload?null:t.emailPayload.newEmail),e.xp6(2),e.Oqu(t.labels.enterVerificationCode),e.xp6(3),e.Q6J("config",t.otpConfig),e.xp6(2),e.Q6J("ngIf",t.isResend)}}const za=function(){return{class:"modal-sm"}};let $a=(()=>{const s=class{constructor(n,o,a,r){this.formService=n,this.cs=a,this.modalService=r,this.confirmed=new e.vpe,this.canceled=new e.vpe,this.formFields=_e()(Tn),this.emailPayload=null,this.step=1,this.otpConfig={allowNumbersOnly:!0,length:6,placeholder:""},this.destroy$=new q.x,this.newOtp="",this.isResend=!1,this.labels=_t,this.apiCallService=o.get(N.F)}onNewOtpChange(n){this.newOtp=n}sendOtp(){this.apiCallService.put(x.Y9.initiateEmailChange,{newEmail:this.emailPayload.newEmail,password:this.emailPayload.password},!0).pipe((0,v.R)(this.destroy$)).subscribe(n=>{n.status?(this.step=2,this.timerCheck(_.Mx.ONE_HUNDRED_EIGHTY,!0),this.cs.showSuccessMessage(n.body)):this.cs.showErrorMessage(n.message||n.body)},n=>{this.cs.showErrorMessage(n.message)})}verifyOtp(){6===this.newOtp?.length&&this.apiCallService.put(x.Y9.verifyEmailChangeOTP,{new_email:this.emailPayload.newEmail,new_email_otp:this.newOtp,password:this.emailPayload.password},!0).pipe((0,v.R)(this.destroy$)).subscribe(n=>{n.status&&this.showResetConfirmModal()},n=>{this.cs.showErrorMessage(n.message)})}showResetConfirmModal(){this.closeModal(),this.modalService.show(J.
1S,{initialState:{icon:"/assets/images/svg/email-update.svg",heading:_t.emailUpdated,description:`${_t.EMAIL_SUCCESS_UPDATED.replace("[newEmail]",this.emailPayload?.newEmail)}<br>${_t.SIGN_IN_WITH_EMAIL}`,showCrossBtn:!1,buttonField:{type:"button",class:"btn btn-primary min-width-100",label:_t.proceed}},class:"modal-lg",backdrop:"static"}).onHide.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.cs.logoutUser()})}confirmedClicked(){if(2===this.step)this.verifyOtp();else if(1===this.step){const n=this.form.get("newEmailAddress"),o=this.form.get("oldPassword"),a=n.errors||{};delete a.mismatch,Object.keys(a).length>0?n.setErrors(a):n.setErrors(null),this.form.markAllAsTouched(),this.form.invalid?this.form.markAllAsTouched():(this.emailPayload={newEmail:n?.value,password:o?.value},this.sendOtp())}}openModal(){this.step=1,this.emailPayload=null,this.formFields=_e()(Tn),this.form=this.formService.toFormGroup(this.formFields),this.form.reset(),this.updateEmailRef?.openModal()}closeModal(){this.resetData(),this.updateEmailRef?.closeModal()}resetData(){this.form.reset()}handleCancel(){this.closeModal(),this.canceled.emit()}timerCheck(n,o){this.subscription&&this.subscription.unsubscribe(),this.isResend=o,this.counter=n,this.subscription=(0,Ja.H)(_.Mx.ZERO,_.Mx.ONE_THOUSAND).pipe((0,wn.q)(this.counter)).subscribe(()=>{this.counter>_.Mx.ZERO&&--this.counter,this.counter===_.Mx.ZERO&&(this.isResend=!1,this.counter=0,this.subscription.unsubscribe())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(e.zs3),e.Y36(A.v),e.Y36(k.tT))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-update-email-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(Wa,5),2&o){let r;e.iGM(r=e.CRH())&&(a.updateEmailRef=r.first)}},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:4,vars:10,consts:[["dynamicClass","update-email-modal",3,"confirmBtnLabel","cancelBtnLabel","secondaryBtnLabel","closeModalOnSuccess","modalOptions","headerLabel","disableConfirmButton","confirmed","canceled","secondaryConfirmed"],["updateEmailRef",""],[3,"form","fields",4,"ngIf"],["class","modal-verification",4,"ngIf"],[3,"form","fields"],[1,"modal-verification"],[1,"d-flex","mt-3"],[1,"modal-verify","mt-0"],[1,"mt-0"],[1,"mt-20px"],[1,"modal-verify-form"],[1,"modal-verify-input"],[3,"config","onInputChange"],["ngOtpInput",""],["class","mt-3 mb-0",4,"ngIf"],[1,"mt-3","mb-0"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.confirmedClicked()})("canceled",function(){return a.handleCancel()})("secondaryConfirmed",function(){return a.sendOtp()}),e.YNc(2,Ha,1,2,"app-dynamic-form-builder",2),e.YNc(3,Ka,14,5,"div",3),e.qZA()),2&o&&(e.Q6J("confirmBtnLabel",2===a.step?a.labels.update:a.labels.proceed)("cancelBtnLabel","")("secondaryBtnLabel",a.isResend||2!==a.step?"":a.labels.resendCode)("closeModalOnSuccess",!1)("modalOptions",e.DdM(9,za))("headerLabel",2===a.step?a.labels.verifyOTP:a.labels.updateEmailAddress)("disableConfirmButton",2===a.step&&6!==(null==a.newOtp?null:a.newOtp.length)),e.xp6(2),e.Q6J("ngIf",1===a.step),e.xp6(1),e.Q6J("ngIf",2===a.step))},dependencies:[p.O5,Le.U,U.F,En.df,Va.p],styles:[".modal-break-line[_ngcontent-%COMP%]{margin:29px 0 19px!important}.mt-20px[_ngcontent-%COMP%]{margin-top:20px}  .update-email-modal .modal-body{padding:0 20px 28px!important;text-align:left!important}  .update-email-modal .fb-monetize-card{padding:0!important}"]}),i})();var An=d(57310);const ja=["updateEmailModalRef"],Xa=["avatarCreator"],es=["profileImageChoice"],ts=["item"];function ns(i,s){1&i&&e._UZ(0,"app-personal-info-skeleton")}function os(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",15),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",16),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.BQk()}}const is=function(i){return{active:i}};function as(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",37),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(6);return e.KtG(r.switchTheme(a))}),e._UZ(1,"div",38),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw(6);e.Q6J("ngClass",e.VKq(3,is,n.currentTheme===t.value))("title",t.label),e.xp6(1),e.uIk("data-theme",t.value)}}function ss(i,s){if(1&i&&(e.TgZ(0,"li",32)(1,"div",33)(2,"div",34),e._uU(3),e.qZA(),e.TgZ(4,"div",35),e.YNc(5,as,2,5,"div",36),e.qZA()()()),2&i){const t=e.oxw(5);e.xp6(3),e.Oqu(t.headerLabels.SITE_EXPERIENCE),e.xp6(2),e.Q6J("ngForOf",t.themes)}}const rs=function(){return["/edit-preference/edit-content"]};function ls(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ul",20)(1,"li"),e._UZ(2,"app-user-profile"),e.TgZ(3,"div",21),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.hideDropdown())}),e._UZ(4,"em",22),e.qZA()(),e.YNc(5,ss,6,2,"li",23),e.TgZ(6,"li",24)(7,"h4"),e._uU(8),e.qZA(),e.TgZ(9,"ul",25)(10,"li")(11,"a",26),e._UZ(12,"em",27),e._uU(13),e.qZA()(),e.TgZ(14,"li")(15,"a",28),e._UZ(16,"em",29),e._uU(17),e.qZA()()()(),e.TgZ(18,"li",30)(19,"a",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.logOut())}),e.TgZ(20,"span"),e._uU(21),e.qZA()()()()}if(2&i){const t=e.oxw(4);e.xp6(5),e.Q6J("ngIf",!(null!=t.userProfileData&&t.userProfileData.is_white_label)),e.xp6(3),e.hij("",t.PROFILE_CONST.EDIT_PREFERENCES," "),e.xp6(5),e.hij(" ",t.PROFILE_CONST.PROFILE," "),e.xp6(2),e.Q6J("routerLink",e.DdM(6,rs)),e.xp6(2),e.hij(" ",t.PROFILE_CONST.INTERESTS," "),e.xp6(4),e.Oqu(t.PROFILE_CONST.SIGN_OUT)}}function cs(i,s){1&i&&(e.TgZ(0,"div",17)(1,"a",18),e._UZ(2,"app-user-image"),e.qZA(),e.YNc(3,ls,22,7,"ul",19),e.qZA())}function ds(i,s){if(1&i&&(e.TgZ(0,"div",12),e.YNc(1,os,5,0,"ng-container",0),e.ALo(2,"showTabByApproval"),e.YNc(3,cs,4,0,"div",13),e.ALo(4,"showTabByApproval"),e.TgZ(5,"span",14),e._uU(6),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,3,t.userProfileData,t.SIDEBAR_TABS.PERSONAL_INFO_CLOSE_BTN)),e.xp6(2),e.Q6J("ngIf",!e.xi3(4,6,t.userProfileData,t.SIDEBAR_TABS.PERSONAL_INFO_DROPDOWN)),e.xp6(3),e.Oqu(t.PROFILE_CONST.EDIT_PERSONAL_INFO)}}function ps(i,s){if(1&i&&(e.TgZ(0,"div",54),e._UZ(1,"circle-progress",55),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("percent",t.percent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",t.cs.isWhiteLabelWeb?null==t.cs.whiteLabelData||null==t.cs.whiteLabelData.data||null==t.cs.whiteLabelData.data.whiteLabel?null:t.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}const gs=function(i){return{cropperMinWidth:425,cropperMinHeight:165,maintainAspectRatio:!0,aspectRatio:i}},_s=function(i){return{isMultiple:!1,imageType:"profileBanner",cropperOptions:i}};function us(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",56)(1,"label")(2,"input",57,58),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.pickBannerImage(o))})("mobileFileChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.mobileChange(o))}),e.qZA(),e.TgZ(4,"span"),e._UZ(5,"em",59),e.qZA()()()}if(2&i){const t=e.oxw(3);e.xp6(2),e.Q6J("accept",t.Application.IMAGE_ACCEPT_TYPES)("fileConfig",e.VKq(4,_s,e.VKq(2,gs,425/165)))}}const ms=function(i){return{cropperMinWidth:800,cropperMinHeight:400,recommendedWidth:800,recommendedHeight:400,maintainAspectRatio:!0,aspectRatio:i}};function fs(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-image-cropper",60),e.NdJ("closeCrop",function(o){e.CHM(t);const a=e.oxw(3);return a.cancelCropBanner(o),e.KtG(a.banner.value="")}
1)("cropImageUpload",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.pickBanner(o))}),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("imageChangeEvent",t.bannerChangedEvent)("isOpen",t.isOpenBanner)("cropperOptions",e.VKq(4,ms,2))("imageWidth",t.imageWidth)}}const yn=function(){return{cropperMinWidth:300,cropperMinHeight:250,cropperStaticWidth:null,cropperStaticHeight:null,aspectRatio:1,maintainAspectRatio:!0}},hs=function(i){return{isMultiple:!1,imageType:"profileImage",cropperOptions:i,roundCropper:!0}};function Cs(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",61)(1,"input",62,63),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.fileChangeEvent(o))})("mobileFileChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.mobileChange(o))}),e.qZA(),e.TgZ(3,"span",64),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.openProfileImageChoice())}),e._UZ(4,"em",59),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("accept",t.Application.IMAGE_ACCEPT_TYPES)("fileConfig",e.VKq(3,hs,e.DdM(2,yn)))}}function bs(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",65)(1,"div",66),e._UZ(2,"div",67),e.TgZ(3,"div",68)(4,"button",69),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.cancelCrop())}),e._uU(5," Cancel "),e.qZA(),e.TgZ(6,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.pickProfile())}),e._uU(7," Upload "),e.qZA()()()()}}function vs(i,s){if(1&i&&(e.TgZ(0,"div",75)(1,"label",78),e._uU(2),e._UZ(3,"app-info-icon",79),e.qZA(),e._UZ(4,"input",105),e.qZA()),2&i){const t=e.oxw(4);e.xp6(2),e.hij(" ","Legal First Name *"," "),e.xp6(1),e.Q6J("message",t.messages.LEGAL_FIRST_LAST_NAME_MESSAGE)}}function xs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Legal First Name is required "),e.qZA())}function Ps(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Minimum 2 characters allowed "),e.qZA())}function Os(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Maximum 24 characters allowed "),e.qZA())}function Ms(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Invalid Legal First Name "),e.qZA())}function Ts(i,s){if(1&i&&(e.TgZ(0,"div",75)(1,"label",78),e._uU(2),e._UZ(3,"app-info-icon",79),e.qZA(),e._UZ(4,"input",107),e.qZA()),2&i){const t=e.oxw(4);e.xp6(2),e.hij(" ","Legal Last Name"," "),e.xp6(1),e.Q6J("message",t.messages.LEGAL_FIRST_LAST_NAME_MESSAGE)}}function ws(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Minimum 2 characters allowed "),e.qZA())}function Es(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Maximum 24 characters allowed "),e.qZA())}function As(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Invalid Legal Last Name "),e.qZA())}function ys(i,s){1&i&&(e.TgZ(0,"div",75)(1,"label"),e._uU(2),e.qZA(),e._UZ(3,"input",108),e.qZA()),2&i&&(e.xp6(2),e.hij(" ","First Name *"," "))}function Ss(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * First Name is required "),e.qZA())}function Is(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Minimum 2 characters allowed "),e.qZA())}function ks(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Maximum 24 characters allowed "),e.qZA())}function Ds(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Invalid First Name "),e.qZA())}function Ns(i,s){1&i&&(e.TgZ(0,"div",75)(1,"label"),e._uU(2),e.qZA(),e._UZ(3,"input",109),e.qZA()),2&i&&(e.xp6(2),e.hij(" ","Last Name *"," "))}function Ls(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Last Name is required "),e.qZA())}function Zs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Minimum 2 characters allowed "),e.qZA())}function Fs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Maximum 24 characters allowed "),e.qZA())}function Us(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Invalid Last Name "),e.qZA())}function Bs(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"em",110),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.openEmailUpdateModal())}),e.qZA()}}function Rs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Email Address is required "),e.qZA())}function qs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Please enter a valid email address "),e.qZA())}function Gs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," Please enter a valid mobile phone number "),e.qZA())}function Ys(i,s){1&i&&(e.TgZ(0,"div",111),e._uU(1," * Please select a valid location "),e.qZA())}function Js(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Birthday is required "),e.qZA())}function Vs(i,s){if(1&i&&(e.TgZ(0,"ng-option",112),e._uU(1),e.qZA()),2&i){const t=s.$implicit;e.Q6J("value",t.name),e.xp6(1),e.hij(" ",t.name," ")}}function Ws(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Gender is required "),e.qZA())}function Hs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Displayed creator name is required "),e.qZA())}function Qs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * The displayed creator name should contain atleast 2 characters. "),e.qZA())}function Ks(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * The displayed creator name should not exceed 30 characters. "),e.qZA())}function zs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Displayed creator name is invali
1d "),e.qZA())}function $s(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Trailing whitespaces are not allowed. "),e.qZA())}function js(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",113)(1,"label",114),e._uU(2,"Publicly Displayed Name *"),e.qZA(),e.TgZ(3,"input",115,116),e.NdJ("keydown",function(o){e.CHM(t);const a=e.oxw(4);return e.KtG(a.publiclyDisplayedNameKeyDown(o))}),e.qZA(),e.YNc(5,Hs,2,0,"div",74),e.YNc(6,Qs,2,0,"div",74),e.YNc(7,Ks,2,0,"div",74),e.YNc(8,zs,2,0,"div",74),e.YNc(9,$s,2,0,"div",74),e.qZA()}if(2&i){const t=e.oxw(4);e.xp6(5),e.Q6J("ngIf",(null==t.profileForm.get("publicly_displayed_name").errors?null:t.profileForm.get("publicly_displayed_name").errors.required)&&(t.submitted||t.profileForm.get("publicly_displayed_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("publicly_displayed_name").errors?null:t.profileForm.get("publicly_displayed_name").errors.minlength)&&!(null!=t.profileForm.get("publicly_displayed_name").errors&&t.profileForm.get("publicly_displayed_name").errors.notAllowedSpecialChar)&&(t.submitted||t.profileForm.get("publicly_displayed_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("publicly_displayed_name").errors?null:t.profileForm.get("publicly_displayed_name").errors.maxlength)&&!(null!=t.profileForm.get("publicly_displayed_name").errors&&t.profileForm.get("publicly_displayed_name").errors.notAllowedSpecialChar)&&(t.submitted||t.profileForm.get("publicly_displayed_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("publicly_displayed_name").errors?null:t.profileForm.get("publicly_displayed_name").errors.notAllowedSpecialChar)&&(t.submitted||t.profileForm.get("publicly_displayed_name").dirty)),e.xp6(1),e.Q6J("ngIf",!(null!=t.profileForm.get("publicly_displayed_name").errors&&t.profileForm.get("publicly_displayed_name").errors.minlength)&&(null==t.profileForm.get("publicly_displayed_name").errors?null:t.profileForm.get("publicly_displayed_name").errors.trailingWhitespaces)&&(t.submitted||t.profileForm.get("publicly_displayed_name").dirty))}}function Xs(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Profile URL is required "),e.qZA())}function er(i,s){if(1&i&&(e.TgZ(0,"div",72)(1,"div",75)(2,"label",78),e._uU(3,"Profile URL * "),e._UZ(4,"app-info-icon",79),e.qZA(),e.TgZ(5,"div",117)(6,"div",118)(7,"span",119),e._uU(8),e.qZA()(),e._UZ(9,"input",120),e.qZA(),e.YNc(10,Xs,2,0,"div",74),e.qZA()()),2&i){const t=e.oxw(4);e.xp6(4),e.Q6J("message","Provide a custom name to complete your public URL at "+t.webSiteUrl+"yourname"),e.xp6(4),e.Oqu(t.webSiteUrl),e.xp6(2),e.Q6J("ngIf",(null==t.profileForm.get("updated_profile_url").errors?null:t.profileForm.get("updated_profile_url").errors.required)&&(t.submitted||t.profileForm.get("updated_profile_url").dirty))}}function tr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * The bio length should not exceed 1000 Characters "),e.qZA())}function nr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Invalid bio "),e.qZA())}function or(i,s){if(1&i&&(e._UZ(0,"span"),e.ALo(1,"lowercase")),2&i){const t=e.oxw().$implicit;e.Gre("flag-icon flag-icon-",e.lcZ(1,3,null==t?null:t.iso2)," flag-icon-squared")}}function ir(i,s){if(1&i&&(e.TgZ(0,"ng-option",112),e.YNc(1,or,2,5,"span",121),e._uU(2),e.qZA()),2&i){const t=s.$implicit;e.Q6J("value",null==t?null:t.name),e.xp6(1),e.Q6J("ngIf",null==t?null:t.iso2),e.xp6(1),e.hij(" \xa0 ",null==t?null:t.name," ")}}function ar(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Country required "),e.qZA())}function sr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Minimum 5 characters allowed "),e.qZA())}function rr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * Maximum 35 characters allowed "),e.qZA())}function lr(i,s){if(1&i&&(e.TgZ(0,"ng-option",112),e._uU(1),e.qZA()),2&i){const t=s.$implicit;e.Q6J("value",null==t?null:t.name),e.xp6(1),e.hij(" ",null==t?null:t.name," ")}}function cr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * State is required "),e.qZA())}function dr(i,s){if(1&i&&(e.TgZ(0,"ng-option",112),e._uU(1),e.qZA()),2&i){const t=s.$implicit;e.Q6J("value",t.name),e.xp6(1),e.hij(" ",t.name," ")}}function pr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," * City is required "),e.qZA())}function gr(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," Postal code invalid "),e.qZA())}function _r(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," Postal code invalid "),e.qZA())}function ur(i,s){1&i&&(e.TgZ(0,"div",106),e._uU(1," Postal code invalid "),e.qZA())}const mr=function(i){return[i]},fr=function(){return{startView:"year",dateInputFormat:"MMMM D, YYYY",adaptivePosition:!0}};
1function hr(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",71)(1,"div",72),e.YNc(2,vs,5,2,"div",73),e.YNc(3,xs,2,0,"div",74),e.YNc(4,Ps,2,0,"div",74),e.YNc(5,Os,2,0,"div",74),e.YNc(6,Ms,2,0,"div",74),e.qZA(),e.TgZ(7,"div",72),e.YNc(8,Ts,5,2,"div",73),e.YNc(9,ws,2,0,"div",74),e.YNc(10,Es,2,0,"div",74),e.YNc(11,As,2,0,"div",74),e.qZA(),e.TgZ(12,"div",72),e.YNc(13,ys,4,1,"div",73),e.YNc(14,Ss,2,0,"div",74),e.YNc(15,Is,2,0,"div",74),e.YNc(16,ks,2,0,"div",74),e.YNc(17,Ds,2,0,"div",74),e.qZA(),e.TgZ(18,"div",72),e.YNc(19,Ns,4,1,"div",73),e.YNc(20,Ls,2,0,"div",74),e.YNc(21,Zs,2,0,"div",74),e.YNc(22,Fs,2,0,"div",74),e.YNc(23,Us,2,0,"div",74),e.qZA(),e.TgZ(24,"div",72)(25,"div",75)(26,"label"),e._uU(27,"Email Address *"),e.qZA(),e._UZ(28,"input",76),e.YNc(29,Bs,1,0,"em",77),e.ALo(30,"async"),e.ALo(31,"hasPermission"),e.qZA(),e.YNc(32,Rs,2,0,"div",74),e.YNc(33,qs,2,0,"div",74),e.qZA(),e.TgZ(34,"div",72)(35,"div",75)(36,"label",78),e._uU(37," Mobile Phone Number "),e._UZ(38,"app-info-icon",79),e.qZA(),e.TgZ(39,"div",80)(40,"ngx-intl-tel-input",81),e.NdJ("countryChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onCountryChange(o))})("keypress",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onKeyPress(o))}),e.qZA()(),e.YNc(41,Gs,2,0,"div",74),e.qZA()(),e.TgZ(42,"div",72)(43,"div",82)(44,"label"),e._uU(45,"General Location *"),e.qZA(),e.TgZ(46,"div",83)(47,"iframe",84),e.NdJ("load",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onMapIframeLoad())}),e.qZA()()(),e.YNc(48,Ys,2,0,"div",85),e.qZA(),e.TgZ(49,"div",86)(50,"div",75)(51,"label",78),e._uU(52),e._UZ(53,"app-info-icon",79),e.qZA(),e._UZ(54,"input",87),e.qZA()(),e.TgZ(55,"div",72)(56,"div",75)(57,"label"),e._uU(58,"Birthday *"),e.qZA(),e._UZ(59,"input",88,89),e.TgZ(61,"em",90),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(60);return e.KtG(o.toggle())}),e.qZA()(),e.YNc(62,Js,2,0,"div",74),e.qZA(),e.TgZ(63,"div",72)(64,"div",75)(65,"label"),e._uU(66,"Gender"),e.qZA(),e.TgZ(67,"ng-select",91),e.YNc(68,Vs,2,2,"ng-option",92),e.qZA(),e.YNc(69,Ws,2,0,"div",74),e.qZA()(),e.YNc(70,js,10,5,"div",93),e.YNc(71,er,11,3,"div",94),e.TgZ(72,"div",95)(73,"div",75)(74,"label"),e._uU(75,"Bio"),e.qZA(),e.TgZ(76,"div",96),e._UZ(77,"textarea",97),e.qZA(),e.YNc(78,tr,2,0,"div",74),e.YNc(79,nr,2,0,"div",74),e.qZA()(),e.TgZ(80,"div",98)(81,"p")(82,"span"),e._uU(83,"Shipping Address"),e.qZA()()(),e.TgZ(84,"div",99)(85,"div",71)(86,"div",72)(87,"div",75)(88,"label"),e._uU(89,"Country of Residence"),e.qZA(),e.TgZ(90,"ng-select",100),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onChangeCountry(o))}),e.YNc(91,ir,3,3,"ng-option",92),e.qZA()(),e.YNc(92,ar,2,0,"div",74),e.qZA(),e.TgZ(93,"div",72)(94,"div",75)(95,"label"),e._uU(96,"Address"),e.qZA(),e._UZ(97,"input",101),e.qZA(),e.YNc(98,sr,2,0,"div",74),e.YNc(99,rr,2,0,"div",74),e.qZA(),e.TgZ(100,"div",72)(101,"div",75)(102,"label"),e._uU(103,"State / Province / District"),e.qZA(),e.TgZ(104,"ng-select",102),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onChangeState(o))}),e.YNc(105,lr,2,2,"ng-option",92),e.ALo(106,"async"),e.qZA()(),e.YNc(107,cr,2,0,"div",74),e.qZA(),e.TgZ(108,"div",72)(109,"div",75)(110,"label"),e._uU(111,"City"),e.qZA(),e.TgZ(112,"ng-select",103),e.YNc(113,dr,2,2,"ng-option",92),e.qZA()(),e.YNc(114,pr,2,0,"div",74),e.qZA(),e.TgZ(115,"div",72)(116,"div",75)(117,"label"),e._uU(118,"Postal Code"),e.qZA(),e._UZ(119,"input",104),e.qZA(),e.YNc(120,gr,2,0,"div",74),e.YNc(121,_r,2,0,"div",74),e.YNc(122,ur,2,0,"div",74),e.qZA()()()()}if(2&i){const t=e.oxw(3);e.xp6(2),e.Q6J("ngIf",null==t.userProfileData?null:t.userProfileData.is_creator),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_fname").errors?null:t.profileForm.get("legal_fname").errors.required)&&(t.submitted||t.profileForm.get("legal_fname").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_fname").errors?null:t.profileForm.get("legal_fname").errors.minlength)&&!(null!=t.profileForm.get("legal_fname").errors&&t.profileForm.get("legal_fname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_fname").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_fname").errors?null:t.profileForm.get("legal_fname").errors.maxlength)&&!(null!=t.profileForm.get("legal_fname").errors&&t.profileForm.get("legal_fname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_fname").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_fname").errors?null:t.profileForm.get("legal_fname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_fname").dirty)),e.xp6(2),e.Q6J("ngIf",null==t.userProfileData?null:t.userProfileData.is_creator),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_lname").errors?null:t.profileForm.get("legal_lname").errors.minlength)&&!(null!=t.profileForm.get("legal_lname").errors&&t.profileForm.get("legal_lname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_lname").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_lname").errors?null:t.profileForm.get("legal_lname").errors.maxlength)&&!(null!=t.profileForm.get("legal_lname").errors&&t.profileForm.get("legal_lname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_lname").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_lname").errors?null:t.profileForm.get("legal_lname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_lname").dirty)),e.xp6(2),e.Q6J("ngIf",!(null!=t.userProfileData&&t.userProfileData.is_creator)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("first_name").errors?null:t.profileForm.get("first_name").errors.required)&&(t.submitted||t.profileForm.get("first_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("first_name").errors?null:t.profileForm.get("first_name").errors.minlength)&&!(null!=t.profileForm.get("first_name").errors&&t.profileForm.get("first_name").errors.pattern)&&(t.submitted||t.profileForm.get("first_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("first_name").errors?null:t.profileForm.get("first_name").errors.maxlength)&&!(null!=t.profileForm.get("first_name").errors&&t.profileForm.get("first_name").errors.pattern)&&(t.submitted||t.profileForm.get("first_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("first_name").errors?null:t.profileForm.get("first_name").errors.pattern)&&(t.submitted||t.profileForm.get("first_name").dirty)),e.xp6(2),e.Q6J("ngIf",!(null!=t.userProfileData&&t.userProfileData.is_creator)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("last_name").errors?null:t.profileForm.get("last_name").errors.required)&&(t.submitted||t.profileForm.get("last_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("last_name").errors?null:t.profileForm.get("last_name").errors.minlength)&&!(null!=t.profileForm.get("last_name").errors&&t.profileForm.get("last_name").errors.pattern)&&(t.submitted||t.profileForm.get("last_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("last_name").errors?null:t.profileForm.get("last_name").errors.maxlength)&&!(null!=t.profileForm.get("last_name").errors&&t.profileForm.get("last_name").errors.pattern)&&(t.submitted||t.profileForm.get("last_name").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("legal_lname").errors?null:t.profileForm.get("legal_lname").errors.pattern)&&(t.submitted||t.profileForm.get("legal_lname").dirty)),e.xp6(6),e.Q6J("ngIf",!e.lcZ(30,64,e.gM2(31,66,"",null,!1,!0))),e.xp6(3),e.Q6J("ngIf",(null==t.profileForm.get("email").errors?null:t.profileForm.get("email").errors.required)&&(t.submitted||t.profileForm.get("email").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("email").errors?null:t.profileForm.get("email").errors.pattern)&&(t.submitted||t.profileForm.get("email").dirty)),e.xp6(
15),e.Q6J("message",t.messages.MOBILE_PHONE_NUMBER_INFO_MESSAGE),e.xp6(2),e.Q6J("cssClass","custom")("preferredCountries",t.preferredCountries)("enableAutoCountrySelect",!0)("enablePlaceholder",!1)("searchCountryFlag",!0)("searchCountryField",e.VKq(73,mr,t.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",t.dailedCode)("phoneValidation",!0)("separateDialCode",t.separateDialCode),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("phone_number").errors?null:t.profileForm.get("phone_number").errors.validatePhoneNumber)&&(t.submitted||t.profileForm.get("phone_number").dirty)),e.xp6(5),e.ekj("map-iframe-ready",t.isMapIframeReady),e.xp6(1),e.Udp("height",t.iframeHeight)("border-radius",t.iframeBorderRadius),e.Q6J("src",t.mapUrl,e.uOi),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("general_location").errors?null:t.profileForm.get("general_location").errors.required)&&(t.submitted||t.profileForm.get("general_location").dirty)),e.xp6(4),e.hij(" ",t.messages.CURRENCY," "),e.xp6(1),e.Q6J("message",t.MESSAGE_HINTS.CURRENCY_CHANGE),e.xp6(6),e.Q6J("bsConfig",e.DdM(75,fr))("maxDate",t.maxDate),e.xp6(3),e.Q6J("ngIf",(null==t.profileForm.get("birth_date").errors?null:t.profileForm.get("birth_date").errors.required)&&(t.submitted||t.profileForm.get("birth_date").dirty)),e.xp6(6),e.Q6J("ngForOf",t.genders),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("gender").errors?null:t.profileForm.get("gender").errors.required)&&(t.submitted||t.profileForm.get("gender").dirty)),e.xp6(1),e.Q6J("ngIf",null==t.userProfileData?null:t.userProfileData.is_creator),e.xp6(1),e.Q6J("ngIf",(null==t.userProfileData?null:t.userProfileData.is_creator)&&!t.cs.isWhiteLabelWeb),e.xp6(7),e.Q6J("ngIf",(null==t.profileForm.get("bio").errors?null:t.profileForm.get("bio").errors.maxlength)&&!(null!=t.profileForm.get("bio").errors&&t.profileForm.get("bio").errors.pattern)&&(t.submitted||t.profileForm.get("bio").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("bio").errors?null:t.profileForm.get("bio").errors.pattern)&&(t.submitted||t.profileForm.get("bio").dirty)),e.xp6(12),e.Q6J("ngForOf",t.countryList),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("country").errors?null:t.profileForm.get("shipping_address").get("country").errors.required)&&(t.submitted||t.profileForm.get("shipping_address").get("country").dirty)),e.xp6(6),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("address").errors?null:t.profileForm.get("shipping_address").get("address").errors.minlength)&&(t.submitted||t.profileForm.get("shipping_address").get("address").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("address").errors?null:t.profileForm.get("shipping_address").get("address").errors.maxlength)&&(t.submitted||t.profileForm.get("shipping_address").get("address").dirty)),e.xp6(6),e.Q6J("ngForOf",e.lcZ(106,71,t.stateList)),e.xp6(2),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("state").errors?null:t.profileForm.get("shipping_address").get("state").errors.required)&&(t.submitted||t.profileForm.get("shipping_address").get("state").dirty)),e.xp6(6),e.Q6J("ngForOf",t.cityList),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("city").errors?null:t.profileForm.get("shipping_address").get("city").errors.required)&&(t.submitted||t.profileForm.get("shipping_address").get("city").dirty)),e.xp6(6),e.Q6J("ngIf",!(null!=t.profileForm.get("shipping_address").get("postal_code").errors&&t.profileForm.get("shipping_address").get("postal_code").errors.pattern)&&(null==t.profileForm.get("shipping_address").get("postal_code").errors?null:t.profileForm.get("shipping_address").get("postal_code").errors.minlength)&&(t.submitted||t.profileForm.get("shipping_address").get("postal_code").dirty)),e.xp6(1),e.Q6J("ngIf",!(null!=t.profileForm.get("shipping_address").get("postal_code").errors&&t.profileForm.get("shipping_address").get("postal_code").errors.pattern)&&(null==t.profileForm.get("shipping_address").get("postal_code").errors?null:t.profileForm.get("shipping_address").get("postal_code").errors.maxlength)&&(t.submitted||t.profileForm.get("shipping_address").get("postal_code").dirty)),e.xp6(1),e.Q6J("ngIf",(null==t.profileForm.get("shipping_address").get("postal_code").errors?null:t.profileForm.get("shipping_address").get("postal_code").errors.pattern)&&(t.submitted||t.profileForm.get("shipping_address").get("postal_code").dirty))}}const Cr=function(i,s){return{type:"button",label:"Update Profile",class:"btn btn-primary",disabled:i,loading:s}};
1function br(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",122)(1,"div",123)(2,"app-button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.updateProfile())}),e.qZA()()()}if(2&i){const t=e.oxw(3);e.xp6(2),e.Q6J("btnField",e.WLB(1,Cr,t.profileForm.invalid||(null==t.userProfileData?null:t.userProfileData.is_creator)&&!t.profileForm.value.profile_image_url||t.isUpdatingProfile,t.isUpdatingProfile))}}const vr=function(i){return{"white-label-creator-profile":i}},xr=function(i){return{"default-banner-img":i}},Pr=function(i){return{"default-profile-img":i}};function Or(i,s){if(1&i&&(e.TgZ(0,"form",39)(1,"div",40)(2,"div",41)(3,"div",42),e._UZ(4,"img",43),e.YNc(5,ps,2,14,"div",44),e.YNc(6,us,6,6,"div",45),e.qZA(),e.YNc(7,fs,1,6,"app-image-cropper",46),e.TgZ(8,"div",47)(9,"div",48),e._UZ(10,"img",49),e.YNc(11,Cs,5,5,"div",50),e.qZA()(),e.YNc(12,bs,8,0,"div",51),e.qZA(),e.YNc(13,hr,123,76,"div",52),e.qZA(),e.YNc(14,br,3,4,"div",53),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("formGroup",t.profileForm),e.xp6(1),e.Q6J("ngClass",e.VKq(17,vr,!t.checkPendingCreatorApproval)),e.xp6(2),e.Q6J("ngClass",e.VKq(19,xr,!t.bannerPreview)),e.xp6(1),e.Q6J("originalUrl",t.bannerPreview)("src",t.bannerPreview,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",t.showProgress&&t.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",t.checkPendingCreatorApproval),e.xp6(1),e.Q6J("ngIf",t.isOpenBanner),e.xp6(2),e.Q6J("ngClass",e.VKq(21,Pr,!t.profilePreview)),e.xp6(1),e.Q6J("originalUrl",t.profilePreview)("src",t.profilePreview,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",t.checkPendingCreatorApproval),e.xp6(1),e.Q6J("ngIf",t.isOpen),e.xp6(1),e.Q6J("ngIf",t.checkPendingCreatorApproval),e.xp6(1),e.Q6J("ngIf",t.checkPendingCreatorApproval)}}function Mr(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",4),e.YNc(1,ds,7,9,"div",5),e.TgZ(2,"div",6),e.YNc(3,Or,15,23,"form",7),e.qZA(),e.TgZ(4,"app-profile-image-choice-modal",8,9),e.NdJ("createAvatarSelected",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openAvatarCreator())})("uploadImageSelected",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onAvatarComputerUpload())}),e.qZA(),e.TgZ(6,"app-avatar-creator-modal",10,11),e.NdJ("avatarSaved",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onAvatarSaved(o))}),e.qZA()()}if(2&i){const t=e.oxw();let n,o;e.xp6(1),e.Q6J("ngIf",!t.isLoading&&t.checkPendingCreatorApproval),e.xp6(2),e.Q6J("ngIf",!t.isLoading),e.xp6(3),e.Q6J("location",(null==(n=t.profileForm.get("general_location"))?null:n.value)||(null==t.userProfileData?null:t.userProfileData.general_location))("country",(null==(o=t.profileForm.get("country"))?null:o.value)||(null==t.userProfileData?null:t.userProfileData.country))}}function Tr(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-image-cropper",125),e.NdJ("closeCrop",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.cancelCrop(o))})("cropImageUpload",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.pickProfile(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("imageChangeEvent",t.imageChangedEvent)("isOpen",t.isOpen)("cropperOptions",e.DdM(5,yn))("imageWidth",t.imageWidth)("roundCropper",!0)}}const Sn_parseFormats=["DD-MM-YYYY","YYYY-MM-DD","MMMM D, YYYY"];let wr=(()=>{const s=class{changePreferredCountries(){this.preferredCountries=[Me.HT.India,Me.HT.Canada]}constructor(n,o,a,r,l,g,h,b,w,L,j,W,ee){this.fb=n,this.store=o,this.router=a,this.titlecasePipe=r,this.document=g,this.mbs=h,this.sanitizer=b,this.modalHandlerService=w,this.headerFooterStateService=L,this.renderer=j,this.el=W,this.ngZone=ee,this.separateDialCode=!0,this.SearchCountryField=Me.wX,this.CountryISO=Me.HT,this.PhoneNumberFormat=Me.M9,this.preferredCountries=[Me.HT.UnitedStates,Me.HT.UnitedKingdom],this.maxDate="",this.options={types:["geocode"],strictBounds:!0},this.images={},this.submitted=!1,this.isUpdatingProfile=!1,this.publiclyDisplayedNameKeyDown=F.$2,this.isOpen=!1,this.isOpenBanner=!1,this.imageChangedEvent="",this.croppedImage="",this.croppedBanner="",this.countryList=null,this.stateList$=new ya.X([]),this.stateList=this.stateList$.asObservable(),this.cityList=[],this.countrySelected="",this.dailedCode=Me.HT.UnitedStates,this.webSiteUrl=Oe.N.websiteURL,this.messages=S.Vm,this.applicationStatusEnums=be.gy,this.maxLength=0,this.imageWidth=0,this.isUSCountry=!0,this.destroy$=new q.x,this.Ap
1plication=_.Mx,this.currentMapUrl="",this.LOCATION_MAX_HEIGHT=M.pf.MAX_DROPDOWN_HEIGHT_PX,this.iframeHeight=M.pf.COLLAPSED_HEIGHT,this.iframeBorderRadius=M.pf.COLLAPSED_RADIUS,this.isMapIframeReady=!1,this.restrictedImages=[],this.MESSAGE_HINTS=S.DQ,this.headerLabels=M.SG,this.themes=M.CO.THEMES,this.currentTheme=_.Mx.THEME_DARK,this.SIDEBAR_TABS=Ae.eE,this.PROFILE_CONST=M.CO,this.percent=_.Mx.ZERO,this.showProgress=!1,this.isLoading=!0,this.genders=[{id:_.Mx.ONE,name:"Male"},{id:_.Mx.TWO,name:"Female"},{id:_.Mx.THREE,name:"Other"}],this.uploadService=l.get(Ue.C),this.cs=l.get(A.v),this.apiCallService=l.get(N.F),this.service=l.get(Ia.Z),this.authService=l.get(ue.AuthService),this.cdr=l.get(e.sBO)}ngOnInit(){this.cs.isBrowser&&(this.currentTheme=localStorage.getItem("theme")||_.Mx.THEME_DARK,this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.initEditProfileForm(),this.updateMapUrl(),this.service.getJSONCountry().subscribe(n=>{this.countryList=n,this.getCountryMaxLength(this.dailedCode)}),this.headerFooterStateService.themeChangeSubject.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.updateMapUrl()}),this.ngZone.runOutsideAngular(()=>{this.messageEventListener=n=>{if(n.origin+"/"===Oe.N.EMBED_BASE_URL)switch(n.data?.type){case M.Iv.ADDRESS_DROPDOWN_CLOSED:this.setMapIframeHeight();break;case M.Iv.ADDRESS_DROPDOWN_OPENED:case M.Iv.ADDRESS_INPUT_CHANGE:this.setMapIframeHeight(n.data?.totalHeight);break;case M.Iv.ADDRESS_INPUT_SELECTED:this.ngZone.run(()=>this.applySelectedAddress(n.data))}},window.addEventListener("message",this.messageEventListener)}))}setMapIframeHeight(n){const o=Math.min(Number(n)||_.Mx.ZERO,M.pf.MAX_DROPDOWN_HEIGHT),a=o<=_.Mx.ZERO,r=a?M.pf.COLLAPSED_HEIGHT:`${o+M.pf.INPUT_ROW_HEIGHT}px`,l=a?M.pf.COLLAPSED_RADIUS:M.pf.EXPANDED_RADIUS;r===this.iframeHeight&&l===this.iframeBorderRadius||this.ngZone.run(()=>{this.iframeHeight=r,this.iframeBorderRadius=l})}applySelectedAddress(n){if(!n?.lat||!n?.long)return;const o=(0,de.b3)(n?.address_components);this.profileForm?.get("general_location")?.setValue(o),this.profileForm?.get("latitude")?.setValue(n?.lat),this.profileForm?.get("longitude")?.setValue(n?.long),Da()(n?.address_components)&&this.profileForm.controls.country.setValue(this.cs.getLabelFromData(n?.address_components,"country")),this.profileForm.get("general_location")?.markAsDirty()}onMapIframeLoad(){this.isMapIframeReady=!0,clearTimeout(this.mapIframeRevealTimer)}updateMapUrl(){let o,n=this.userProfileData?.profile_theme||(this.cs.isBrowser?localStorage.getItem("theme"):null)||_.Mx.THEME_DARK;
1if(this.cs.isWhiteLabelWeb){const g=document.documentElement,h=getComputedStyle(g);o={configSecondaryBgColor:h.getPropertyValue("--configSecondaryBgColor").trim(),configPostTextColor:h.getPropertyValue("--configPostTextColor").trim(),configBgColor:h.getPropertyValue("--configBgColor").trim(),configBgTextColor:h.getPropertyValue("--configBgTextColor").trim(),configThemeColor:h.getPropertyValue("--configThemeColor").trim()},o=JSON.stringify(o),o=encodeURIComponent(o),n="theme-whiteLabel"}const a=Oe.N.websiteURL,r=this.profileForm?.get("general_location")?.value??"",l=`${Oe.N.EMBED_BASE_URL}location?theme=${n}&location=${encodeURIComponent(r)}&parentUrl=${a}&maxHeight=${this.LOCATION_MAX_HEIGHT}&whiteLabelThemeData=${o}`;l!==this.currentMapUrl&&(this.currentMapUrl||(this.mapIframeRevealTimer=setTimeout(()=>this.isMapIframeReady=!0,M.pf.REVEAL_FALLBACK_MS)),this.currentMapUrl=l,this.mapUrl=this.sanitizer.bypassSecurityTrustResourceUrl(l))}ngAfterViewInit(){this.getProfile()}getFlag(n){return this.cs.getFlag(n)}initEditProfileForm(){this.profileForm=this.fb.group({profile_image_url:new u.p4(""),banner_image_url:new u.p4(""),legal_fname:new u.p4({value:"",disabled:!0},[u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FOUR),u.kI.pattern(F.mL.N_W_S_AT_B),u.kI.required]),preferred_currency:new u.p4({value:"",disabled:!0}),legal_lname:new u.p4({value:"",disabled:!0},[u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FOUR),u.kI.pattern(F.mL.N_W_S_AT_B)]),first_name:new u.p4("",[u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FOUR),u.kI.pattern(F.mL.N_W_S_AT_B),u.kI.required]),last_name:new u.p4("",[u.kI.required,u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FOUR),u.kI.pattern(F.mL.N_W_S_AT_B)]),email:new u.p4("",[u.kI.required,u.kI.pattern(F.mL.EMAIL)]),phone_number:new u.p4(""),website_url:new u.p4("",[u.kI.pattern(F.mL.WEBSITE_URL)]),general_location:new u.p4("",[u.kI.required]),latitude:new u.p4(""),longitude:new u.p4(""),country:new u.p4(""),updated_profile_url:new u.p4("",[u.kI.required]),birth_date:new u.p4("",[u.kI.required]),gender:new u.p4([],[u.kI.required]),bio:new u.p4("",[u.kI.maxLength(_.Mx.ONE_THOUSAND)]),publicly_displayed_name:new u.p4("",[u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FOUR),(0,F.gt)(),(0,F.cj)(),u.kI.required]),shipping_address:new u.nJ({country:new u.p4(""),address:new u.p4("",[u.kI.minLength(_.Mx.FIVE),u.kI.maxLength(_.Mx.THIRTY_FIVE)]),city:new u.p4(""),state:new u.p4(""),postal_code:new u.p4("",[u.kI.pattern(F.mL.POSTAL_CODE)])})})}getCountryMaxLength(n){n=n.toUpperCase();const o=this.countryList.find(a=>a.iso2===n);this.maxLength=o?.phoneLength,this.isUSCountry=n==_.Mx.US,this.profileForm.get("shipping_address").get("postal_code").setValidators([u.kI.pattern(F.mL.POSTAL_CODE)])}onKeyPress(n){(0,de.W0)(n,this.maxLength,this.profileForm.get("phone_number"))}getProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{if(n.sk){this.userProfileData=n,this.userProfileData?.is_creator?(this.profileForm?.get("first_name")?.setValidators([]),this.profileForm?.get("last_name")?.setValidators([]),this.maxDate=this.cs.getPastDate(M.AP)):(this.profileForm?.get("legal_fname")?.setValidators([]),this.profileForm?.get("legal_lname")?.setValidators([]),this.profileForm?.get("updated_profile_url")?.setValidators([]),this.profileForm?.get("updated_profile_url")?.setErrors(null),this.maxDate=this.cs.getPastDate()),this.userProfileData?.email&&(this.setStates(this.userProfileData?.shipping_address.country),this.setCity(this.userProfileData?.shipping_address.state)),this.dailedCode=this.userProfileData?.phone_number?.countryCode?this.userProfileData?.phone_number?.countryCode:Me.HT.UnitedStates;const{internationalNumber:o="",countryCode:a="",dialCode:r=""}=this.userProfileData?.phone_number??{};this.isLoading=!1,this.profileForm.patchValue({profile_image_url:this.userProfileData?.profile_image_url,banner_image_url:this.userProfileData?.banner_image_url,first_name:this.userProfileData?.first_name,last_name:this.userProfileData?.last_name,legal_fname:this.userProfileData?.legal_fname,preferred_currency:this.userProfileData?.currency_symbol?`${La()(this.userProfileData?.currency_name)} (${this.userProfileData?.preferred_currency}) ${this.userProfileData?.currency_symbol}`:M.Iv.USD_DEFAULT,legal_lname:this.userProfileData?.legal_lname,email:this.userProfileData?.email,phone_number:this.pmd?.onPhoneMaskFormat(o,a,r),website_url:this.userProfileData?.website_url,general_location:this.userProfileData?.general_location,birth_date:this.parseBirthDate(this.userProfileData?.birth_date),gender:this.titlecasePipe.transform(this.userProfileData?.gender),bio:this.userProfileData?.bio,updated_profile_url:this.userProfileData?.user_name,publicly_displayed_name:this.userProfileData?.first_name+(this.userProfileData?.last_name?" "+this.userProfileData?.last_name:""),shipping_address:{...this.userProfileData?.shipping_address},country:this.userProfileData.country,latitude:this.userProfileData.latitude,longitude:this.userProfileData.longitude}),this.bannerPreview=this.userProfileData?.banner_image_url,this.profilePreview=this.userProfileData?.profile_image_url,this.updateMapUrl()}})}updateProfileUrl(){const n=this.profileForm?.get("user_name")?.value.replace(/ /g,"_"),o=this.webSiteUrl+n;this.profileForm?.get("updated_profile_url")?.setValue(o)}isValidLocation(){this.location="",this.location||this.profileForm.controls.general_location.setValidators([u.kI.requiredTrue])}onCountryChange(n){this.profileForm.get("phone_number")?.setValue(""),this.getCountryMaxLength(n.iso2)}pickBanner(n){var o=this;return(0,ge.Z)(function*(a,r=!1){let l,g,h;h=o.bannerChangedEvent?.target?.files?.[_.Mx.ZERO],r?(g=(0,de.qM)(a?.uri,a?.fileName),l=g):(g=(0,Je.Ll)(a),l=new File([g],h.name,{type:h.type})),o.uploadService.uploadImageCompress(l).then(function(){var b=(0,ge.Z)(function*(w){o.banner=w;const L=w;o.isOpenBanner=!1;const j=o.cs.isValidFile(o.banner);if(o.cs.isBrowser&&o.document?.documentElement?.classList?.remove("page-hidden"),o.cs.setBodyClass(!0),j){const W=new FileReader;W.onload=uf=>{o.bannerPreview=uf.target.result}
1,W.readAsDataURL(o.banner);const ee=`${_.Mx.BANNER+Date.now()}_${L.name.toLowerCase().replace(/[&\/\\#, +()$~%'":*?<>{}]/g,"_").split(" ").join("_")}`;o.profileForm.patchValue({banner_image_url:Oe.N.s3Config.bucketUrl+_.D4.bannerFolder+ee}),o.images.banner={file:o.banner,fileName:ee,folder:_.D4.bannerFolder,contentType:"banner"}}else o.cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE);o.bannerChangedEvent?.target?.value&&(o.bannerChangedEvent.target.value=""),o.bannerChangedEvent=void 0});return function(w){return b.apply(this,arguments)}}()).catch(()=>{})}).apply(this,arguments)}pickProfile(n){var o=this;return(0,ge.Z)(function*(a,r=!1){let l,g,h;g=o.imageChangedEvent?.target?.files?.[_.Mx.ZERO],r?(h=(0,de.qM)(a?.uri,a?.fileName),l=h):(h=(0,Je.Ll)(a),l=new File([h],g.name,{type:g.type})),o.applyProfileImageFile(l,!0)}).apply(this,arguments)}updateProfile(){this.submitted=!0,!this.profileForm.invalid&&(this.userProfileData?.is_creator&&!this.profileForm.value.profile_image_url?(this.cs.scrollToTop(),this.cs.showErrorMessage(S.Vm.PROFILE_IMAGE_NOT_SELECTED)):this.userProfileData?.is_creator?(this.isUpdatingProfile=!0,this.checkMononym()):(this.isUpdatingProfile=!0,this.images&&Object.keys(this.images)?.length>Number(_.Mx.ZERO)?this.uploadFile():this.completeProfile()))}checkMononym(){const n=this.profileForm?.value?.updated_profile_url;this.apiCallService.get(`${x.Y9.mononymAvailability}/${n}`,!0).subscribe({next:r=>{r.status?r.data.isAvailable?this.images&&Object.keys(this.images)?.length>Number(_.Mx.ZERO)?this.uploadFile():this.completeProfile():(this.isUpdatingProfile=!1,this.cs.showErrorMessage(S.Vm.DISPLAYED_CREATOR_NAME_ALREADY_TAKEN)):(this.isUpdatingProfile=!1,this.cs.showErrorMessage(r.message))},error:r=>{this.isUpdatingProfile=!1,this.cs.showErrorMessage(r?.message)}})}uploadFile(){var n=this;return(0,ge.Z)(function*(){if(!n.images||!Object.keys(n.images)?.length)return void(n.isUpdatingProfile=!1);n.restrictedImages=[];const o=[];if(Object.entries(n.images).forEach(([a,r])=>{const l=new Promise(g=>{n.uploadService.uploadFileData(x.Y9.uploadFile,r,!0).pipe((0,v.R)(n.destroy$)).subscribe({next:h=>{if(h.progressStatus===_.Mx.UPLOADING)return n.showProgress=!0,n.percent=h.progress,void n.cdr.detectChanges();h.progressStatus===_.Mx.RESTRICTED&&h.restrictedImage&&(n.showProgress=!1,n.percent=_.Mx.ZERO,n.restrictedImages.push({...h.restrictedImage,type:a}),g()),h.progressStatus===_.Mx.COMPLETED&&(n.showProgress=!1,n.percent=_.Mx.ZERO,a===be.i4.PROFILE&&h.data&&n.profileForm.patchValue({profile_image_url:h.data}),a===be.i4.BANNER&&h.data&&n.profileForm.patchValue({banner_image_url:h.data}),g())},error:h=>{n.showProgress=!1,n.percent=_.Mx.ZERO,h?.statusCode!==X.SM.RESTRICTED_CONTENT&&n.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),g()}})});o.push(l)}),yield Promise.all(o),n.restrictedImages?.length>0){for(const a of n.restrictedImages)a.type===be.i4.PROFILE&&(n.profilePreview=n.userProfileData?.profile_image_url||"",n.profileForm.patchValue({profile_image_url:""}),delete n.images[be.i4.PROFILE]),a.type===be.i4.BANNER&&(n.bannerPreview=n.userProfileData?.banner_image_url||"",n.profileForm.patchValue({banner_image_url:""}),delete n.images[be.i4.BANNER]);n.modalHandlerService.showRestrictedContentCarouselModal(n.restrictedImages),n.isUpdatingProfile=!1}else n.completeProfile()})()}checkProfileUserName(n){return n.startsWith(this.webSiteUrl)?n.slice(this.webSiteUrl.length)||(this.cs.showErrorMessage("Username is missing in the URL"),null):(this.cs.showErrorMessage("Invalid URL format"),null)}completeProfile(){const n=this.formatBirthDateForApi(this.profileForm.controls.birth_date.value);let o={};if(this.userProfileData?.is_creator){const a=this.profileForm?.value?.updated_profile_url;if(!a)return void(this.isUpdatingProfile=!1);const r=this.profileForm?.value?.publicly_displayed_name?.trim().split(" ");o={...this.profileForm.value,user_name:a,first_name:r[_.Mx.ZERO],last_name:r.slice(1).join(" ")||"",birth_date:n}}else o={...this.profileForm.value,birth_date:n};this.apiCallService.put(x.Y9.completeProfile,o,!0).pipe((0,it.x)(()=>{this.isUpdatingProfile=!1})).subscribe({next:a=>{a.status?this.handleSuccessResponse():this.cs.showErrorMessage(
1a.message)},error:a=>{this.cs.showErrorMessage(a.message)}})}handleSuccessResponse(){let n={};const o=this.formatBirthDateForApi(this.profileForm.controls.birth_date.value);if(this.userProfileData?.is_creator){const r=this.profileForm?.value?.publicly_displayed_name.split(" ");n={...this.profileForm.value,user_name:this.profileForm?.value?.updated_profile_url,first_name:r[_.Mx.ZERO],last_name:r.slice(1).join(" ")||"",birth_date:o}}else n={...this.profileForm.value,birth_date:o};const a={...this.userProfileData,...n};this.store.dispatch(new Pt.me(a)),this.cs.showSuccessMessage(S.Vm.USER_PROFILE_UPDATED)}parseBirthDate(n){if(!n)return"";if(n instanceof Date&&!isNaN(n.getTime()))return n;const o=Cn()(String(n),Sn_parseFormats,!0);return o.isValid()?o.startOf("day").hour(12).toDate():""}formatBirthDateForApi(n){const o=this.parseBirthDate(n);return o?Cn()(o).format("DD-MM-YYYY"):""}onChangeCountry(n){this.stateList$.next([]),this.cityList=[],this.profileForm.get("shipping_address").patchValue({state:"",city:""}),this.setStates(n)}setStates(n){this.service.getJSONStates().subscribe(o=>{const a=Array.isArray(o)?o.filter(r=>r.country_name===n):[];this.stateList$.next(a)})}onChangeState(n){this.cityList=[],this.profileForm.get("shipping_address").patchValue({city:""}),this.setCity(n)}setCity(n){this.service.getJSONCityByState(n).subscribe(o=>{this.cityList=o},()=>{this.cityList=[]})}moveToDashboard(){this.router.navigate(["dashboard"])}cancelCrop(){this.isOpen=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}cancelCropBanner(){this.isOpenBanner=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}pickBannerImage(n){const o=n?.target;if(!(this.mbs.isMobileApp||o instanceof HTMLInputElement&&o.files?.length))return;let a;if(this.mbs.isMobileApp){const r=this.mbs.messageSubject.subscribe(l=>{l.type===Ot.IV.SET_IMAGE_UPLOAD&&l.payload?.files?.[0]&&(a=l.payload.files[0]),r?.unsubscribe()})}else a=n.target.files?.[0];this.uploadService.checkAndConvertHeicOrAvifToJpeg(a).then(r=>{const l=r,g=new FileReader;g.readAsDataURL(l),g.onload=h=>{const b=new Image;b.src=h.target.result,b.onload=w=>{const L=w?.path||w.composedPath&&w.composedPath();if(this.imageWidth=L[_.Mx.ZERO].naturalWidth,L[_.Mx.ZERO].naturalWidth>=_.Mx.BANNER_WIDTH&&L[_.Mx.ZERO].naturalHeight>=_.Mx.BANNER_HEIGHT){const j=new DataTransfer;j.items.add(l),o.files=j.files,this.bannerChangedEvent=n,this.isOpenBanner=!0}else o.value="",this.cancelCropBanner(),this.cs.showErrorMessage(`Width of image should be greater than ${_.Mx.BANNER_WIDTH}\n              pixels and height of image should be greater than ${_.Mx.BANNER_HEIGHT} pixels`)}}}).catch(()=>{})}bannerCropped(n){n&&n.base64&&(this.croppedBanner=n.base64,this.cs.setBodyClass(!1))}imageCropped(n){n&&n.base64&&(this.croppedImage=n.base64)}mobileChange(n){const{imageType:o,files:a}=n;"profileImage"===o?this.pickProfile(a[0],!0):"profileBanner"===o&&this.pickBanner(a[0],!0)}fileChangeEvent(n){let o;if(this.mbs.isMobileApp){const a=this.mbs.messageSubject.subscribe(r=>{r.type===Ot.IV.SET_IMAGE_UPLOAD&&r.payload?.files?.[0]&&(o=r.payload.files[0]),a?.unsubscribe()})}else o=n.target.files?.[0];this.uploadService.checkAndConvertHeicOrAvifToJpeg(o).then(a=>{const r=a,l=new FileReader;l.readAsDataURL(r),l.onload=h=>{const b=new Image;b.src=h.target.result,b.onload=w=>{const L=w?.path||w.composedPath&&w.composedPath();this.imageWidth=L[0]?.naturalWidth}};const g=new DataTransfer;g.items.add(r),n.target.files=g.files,this.imageChangedEvent=n,this.isOpen=!0}).catch(()=>{})}get isCreatorRequestApproved(){return this.userProfileData?.admin_approval_status===this.applicationStatusEnums.APPROVED}openEmailUpdateModal(){this.updateEmailModalRef?.openModal()}switchTheme(n){this.userProfileData?.is_white_label||this.cs.isWhiteLabelWeb||this.currentTheme===n.value||(this.cs.isBrowser&&(this.document.body.classList.remove(this.currentTheme),this.document.body.classList.add(n.value)),this.currentTheme=n.value,this.cs.updateTheme(n.value),this.authService.setUserProfileTheme(n.value),this.headerFooterStateService.emitThemeChange(n.value),this.apiCallService.put(x.Y9.getUsers,{profile_theme:n.value},!1).subscribe())}logOut(){this.cs.logoutUser()}hideDropdown(n){this.cs.isBrowser&&!this.el.nativeElement.contains(n?.target)&&!n?.target?.outerHTML?.includes("<em>\u2715</em>")&&(this.el.nativeElement.querySelector(".header")&&this.renderer.removeClass(this.el.nativeElement.querySelector(".header"),"header-opened"),this.el.nativeElement.querySelector(".dropdown-menu")&&this.renderer.removeClass(this.el.nativeElement.querySelector(".dropdown-menu"),"show"))}get checkPendingCreatorApproval(){return this.userProfileData?.admin_approval_status!==be.gy.PENDING}openProfileImageChoice(){this.profileImageChoice?.openModal()}openAvatarCreator(){this.avatarCreator?.openModal()}onAvatarComputerUpload(){const n=this.profileUploadInput?.nativeElement;n&&(n.value="",setTimeout(()=>n.click(),100))}onAvatarSaved(n){var o=this;return(0,ge.Z)(function*(){if(o.cs.isBrowser&&n?.imageUrl)try{const a=yield o.avatarImageToFile(n.imageUrl);o.applyProfileImageFile(a)}catch{o.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG)}})()}avatarImageToFile(n){return(0,ge.Z)(function*(){if(n.startsWith("data:")){const r=(0,Je.Ll)(n);return new File([r],`ai_avatar_${Date.now()}.png`,{type:r.type||"image/png"})}const a=yield(yield fetch(n)).blob();return new File([a],`ai_avatar_${Date.now()}.png`,{type:a.type||"image/png"})})()}applyProfileImageFile(n,o=!1){var a=this;this.uploadService.uploadImageCompress(n).then(function(){var r=(0,ge.Z)(function*(l){if(o&&(a.isOpen=!1,a.cs.setBodyClass(!0),a.cs.isBrowser&&a.document?.documentElement?.classList?.remove("page-hidden")),a.profile=l,a.cs.isValidFile(a.profile)){const h=new FileReader;h.onload=w=>
1{a.profilePreview=w.target.result,a.cdr.detectChanges()},h.readAsDataURL(a.profile);const b=`${_.Mx.PROFILE+Date.now()}_${a.profile.name.toLowerCase().split(" ").join("_")}`;a.profileForm.patchValue({profile_image_url:Oe.N.s3Config.bucketUrl+_.D4.ProfileFolder+b}),a.images.profile={file:a.profile,fileName:b,folder:_.D4.ProfileFolder,contentType:"profile"}}else a.cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE)});return function(l){return r.apply(this,arguments)}}()).catch(()=>{})}ngOnDestroy(){this.cs.isBrowser&&this.messageEventListener&&window.removeEventListener("message",this.messageEventListener),clearTimeout(this.mapIframeRevealTimer),this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.QS),e.Y36(le.yh),e.Y36(O.F0),e.Y36(p.rS),e.Y36(e.zs3),e.Y36(p.K0),e.Y36(vn.N),e.Y36(hn.H7),e.Y36(on.Y),e.Y36(c.P),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-personal-info"]],viewQuery:function(o,a){if(1&o&&(e.Gf(bn.v,5),e.Gf(ja,5),e.Gf(Xa,5),e.Gf(es,5),e.Gf(ts,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.pmd=r.first),e.iGM(r=e.CRH())&&(a.updateEmailModalRef=r.first),e.iGM(r=e.CRH())&&(a.avatarCreator=r.first),e.iGM(r=e.CRH())&&(a.profileImageChoice=r.first),e.iGM(r=e.CRH())&&(a.profileUploadInput=r.first)}},hostBindings:function(o,a){1&o&&e.NdJ("click",function(l){return a.hideDropdown(l)},!1,e.evT)("touchstart",function(l){return a.hideDropdown(l)},!1,e.evT)},decls:5,vars:3,consts:[[4,"ngIf"],["class","inside-container preference-container",4,"ngIf"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload",4,"ngIf"],["updateEmailModalRef",""],[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],[1,"walletform-container","preference-privacy-container"],[3,"formGroup",4,"ngIf"],[3,"createAvatarSelected","uploadImageSelected"],["profileImageChoice",""],[3,"location","country","avatarSaved"],["avatarCreator",""],[1,"inside-header"],["class","btn-group profile-dropdown-wrapper personal-info-dropdown-wrapper","dropdown","",4,"ngIf"],[1,"mobile-title"],[1,"close-btn",3,"click"],[1,"icon-close"],["dropdown","",1,"btn-group","profile-dropdown-wrapper","personal-info-dropdown-wrapper"],["dropdownToggle","","id","personal-info-dropdown-toggle","aria-controls","personal-info-dropdown",1,"dropdown-toggle"],["id","personal-info-dropdown","class","dropdown-menu dropdown-menu-right header-dropdown-menu personal-info-dropdown-menu","role","menu","style","z-index: 550","aria-labelledby","personal-info-dropdown-toggle",4,"dropdownMenu"],["id","personal-info-dropdown","role","menu","aria-labelledby","personal-info-dropdown-toggle",1,"dropdown-menu","dropdown-menu-right","header-dropdown-menu","personal-info-dropdown-menu",2,"z-index","550"],[1,"icon-close-btn",3,"click"],[1,"icon-liteicon-close","cursor-pointer"],["role","menuitem","class","dropdown-border-item theme-selector-item",4,"ngIf"],["role","menuitem",1,"dropdown-border-item"],[1,"preference-nav-list"],["routerLink","/edit-preference"],[1,"icon-res-editfill"],[3,"routerLink"],[1,"icon-liteinterests"],["role","menuitem",1,"dropdown-border-item","sign-out-option"],[1,"btn","btn-basic",3,"click"],["role","menuitem",1,"dropdown-border-item","theme-selector-item"],[1,"theme-selector-container"],[1,"theme-selector-label"],[1,"theme-circles"],["class","theme-circle",3,"ngClass","title","click",4,"ngFor","ngForOf"],[1,"theme-circle",3,"ngClass","title","click"],[1,"theme-circle-inner"],[3,"formGroup"],[1,"walletform-content",3,"ngClass"],[1,"preference-banner-profile"],[1,"preference-banner",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","banner","loading","lazy","decoding","async","width","800","height","400",3,"originalUrl","src","format"],["class","show-progress-bar pointer-none",4,"ngIf"],["class","preference-banner-upload",4,"ngIf"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload",4,"ngIf"],[1,"preference-profile"],[1,"preference-profile-inner",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","logo","loading","lazy","decoding","async",3,"originalUrl","src","format"],["class","preference-profile-upload",4,"ngIf"],["class","imageCropper-overlay",4,"ngIf"],["class","row",4,"ngIf"],["class","walletform-bottom",4,"ngIf"],[1,"show-progress-bar","pointer-none"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","showSubtitle","backgroundPadding","titleFontSize","titleColor","unitsColor","space"],[1,"preference-banner-upload"],["onclick","this.value = null","type","file","appMobileBridgeFileInput","",3,"accept","fileConfig","change","mobileFileChange"],["banner",""],[1,"icon-forum-cam"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload"],[1,"preference-profile-upload"],["type","file","appMobileBridgeFileInput","",1,"preference-profile-file-input",3,"accept","fileConfig","change","mobileFileChange"],["item",""],[1,"profile-image-choice-btn",3,"click"],[1,"imageCropper-overlay"],[1,"imageCropper-container","imageCropper-container-profile-image","profile-cropper"],["id","container",1,"zoomProfileCropper"],[1,"imageCropper-footer"],[1,"btn","btn-default",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"row"],[1,"col-12","col-lg-6"],["class","form-group",4,"ngIf"],["class","alert-dang",4,"ngIf"],[1,"form-group"],["type","text","formControlName","email","readonly","",1,"form-control"],["class","icon-res-editfill pencil-edit email-pencil-update cursor-pointer",3,"click",4,"ngIf"],[1,"d-flex","align-items-center"],[3,"message"],[1,"custom-phoneno"],["name","phone","formControlName","phone_number","phoneMask","",3,"cssClass","preferredCountries","enableAutoCountrySelect","enablePlaceholder","searchCountryFlag","searchCountryField","selectFirstCountry","selectedCountryISO","phoneValidation","separateDialCode","countryChange","keypress"],[1,"form-group","pos-relative"],[1,"map-iframe-container"],["id","map-iframe","frameborder","0","scrolling","no",3,"src","load"],["class","alert-dang valid-location",4,"ngIf"],[1,"col-12","col-lg-6","valid-location-mt"],["type","text","formControlName","preferred_currency","disabled","",1,"form-control","disable-input"],["type","text","bsDatepicker","","readonly","","id","birthDate","aria-describedby","birthDate","formControlName","birth_date",1,"form-control",3,"bsConfig","maxDate"],["d","bsDatepicker"],[1,"icon-calendar",3,"click"],["formControlName","gender",1,"gender-mobile"],[3,"value",4,"ngFor","ngForOf"],["class","col-12 col-lg-6 form-group",4,"ngIf"],["class","col-12 col-lg-6",4,"ngIf"],[1,"col-12"],[1,"form-control","textarea-control"],["formControlName","bio","id","exampleInputEmail1",1,"form-control"],[1,"col-12","form-group-paragraph"],["formGroupName","shipping_address",1,"edit-valid-info"],["formControlName","country",3,"change"],["type","text","formControlName","address",1,"form-control"],["formControlName","state",3,"change"],["formControlName","city"],["type","text","formControlName","postal_code",1,"form-control"],["type","text","formControlName","legal_fname","disabled","",1,"form-control","disable-input"],[1,"alert-dang"],["type","text","formControlName","legal_lname","disabled","",1,"form-control","disable-input"],["type","text","formControlName","first_name",1,"form-control"],["type","text","formControlName","last_name",1,"form-control"],[1,"icon-res-editfill","pencil-edit","email-pencil-update","cursor-pointer",3,"click"],[1,"alert-dang","valid-location"],[3,"value"],[1,"col-12","col-lg-6","form-group"],["for","exampleInputEmail1"],["type","text","formControlName","publicly_displayed_name","id","exampleInputEmail1","aria-describedby","emailHelp",1,"form-control",3,"keydown"],["username",""],[1,"personal-info-prefix-content"],[1,"form-control","predefined-url"],[1,"span","url-disable"],["type","text","formControlName","updated_profile_url",1,"form-control"],[3,"class",4,"ngIf"],[1,"walletform-bottom"],[1,"form-group-btn","wide-btn","d-flex"],[3,"btnField","click"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload"]],template:function(o,a){1&o&&(e.YNc(0,ns,1,0,"app-personal-info-skeleton",0),e.YNc(1,Mr,8,4,"div",1),e.YNc(2,Tr,1,6,"app-image-cropper",2),e._UZ(3,"app-update-email-modal",null,3)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",a.isOpen))},dependencies:[p.mk,p.sg,p.O5,u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,u.x0,ke.e,bn.v,ae.r,an.e,Ba.Y,fe.Hz,fe.Mq,fe.TO,ce.l,Ra.t,sn.Np,sn.Y5,Me.FV,Me.mh,tn.a,Ze.m,Ne.J,O.rH,rn.w9,rn.jq,pt.nu,Mn,xn.C,On,$a,p.Ov,p.i8,at.j,An.J],styles:['img[_ngcontent-%COMP%]{text-indent:-9999px}.preference-banner-profile[_ngcontent-%COMP%]{margin:0 -30px}.preference-banner-profile[_ngcontent-%COMP%]   .preference-banner[_ngcontent-%COMP%]{aspect-ratio:2/1;width:100%;height:auto;left:30px;margin:-30px -30px 0}@media (max-width: 992px){.preference-banner-profile[_ngcontent-%COMP%]{margin:-24px -12px 0}.preference-banner-profile[_ngcontent-%COMP%]   .preference-banner[_ngcontent-%COMP%]{left:unset;margin:unset;border-radius:15px}}[_nghost-%COMP%]     .map-iframe-container iframe{position:absolute;width:100%;z-index:49;opacity:0;transition:opacity .2s ease-in}[_nghost-%COMP%]     .map-iframe-container.map-iframe-ready iframe{opacity:1}.valid-location[_ngcontent-%COMP%]{margin-top:60px}@media (max-width: 992px){.valid-location-mt[_ngcontent-%COMP%]{margin-top:50px}}.profile-dropdown-wrapper[_ngcontent-%COMP%]{position:relative}.profile-dropdown-wrapper[_ngcontent-%COMP%]   .dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;margin:0}.profile-dropdown-wrapper[_ngcontent-%COMP%]   .dropdown-toggle[_ngcontent-%COMP%]:after{display:none}@media (max-width: 992px){.profile-dropdown-wrapper[_ngcontent-%COMP%]{position:static}}@media (max-width: 992px){.profile-dropdown-wrapper.show[_ngcontent-%COMP%]:after{position:fixed;inset:50px 0 0;background:rgba(0,0,0,.8);content:"";z-index:540}}@media (max-width: 992px){.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]{position:fixed!important;left:0!important;right:0!important;width:auto!important;max-width:none!important;min-width:0!important;top:50px!important;margin:0!important;transform:none!important;border-radius:0 0 20px 20px;max-height:calc(100dvh - 50px);overflow-y:auto}}@media (min-width: 992px){.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]{min-width:186px}}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-selector-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-selector-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:16.41px;color:var(--configPostTextColor);margin-bottom:4px;text-transform:none}@media (max-width: 992px){.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-selector-item[_ngcontent-%COMP%]{padding:12px 16px}}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circles[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center;padding:0 8px 16px}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ng
1content-%COMP%]{width:32px;height:32px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;border:2px solid transparent;transition:all .2s ease;position:relative}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle.active[_ngcontent-%COMP%]{border-color:var(--theme-interactive-link);box-shadow:0 0 0 2px #1de9b64d}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]   .theme-circle-inner[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;border:1px solid rgba(255,255,255,.2)}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]   .theme-circle-inner[data-theme=theme-default][_ngcontent-%COMP%]{background:linear-gradient(135deg,#013956 0%,#002740 100%)}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]   .theme-circle-inner[data-theme=theme-light][_ngcontent-%COMP%]{background:#ffffff}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]   .theme-circle-inner[data-theme=theme-dark][_ngcontent-%COMP%]{background:#000000}@media (max-width: 992px){.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-selector-label[_ngcontent-%COMP%]{font-size:13px}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]{width:28px;height:28px}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .theme-circle[_ngcontent-%COMP%]   .theme-circle-inner[_ngcontent-%COMP%]{width:20px;height:20px}}.personal-info-dropdown-menu.header-dropdown-menu[_ngcontent-%COMP%]   .preference-nav-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}  .personal-info-dropdown-wrapper .profileImage-title{text-transform:none}  .personal-info-dropdown-wrapper .icon-close-btn{position:absolute;height:22.5px!important;top:20px!important;right:20px!important}  .personal-info-dropdown-wrapper .icon-close-btn .icon-liteicon-close:before{font-size:24px!important}.white-label-creator-profile[_ngcontent-%COMP%]{background:transparent!important}.preference-profile-file-input[_ngcontent-%COMP%]{position:absolute;width:0;height:0;opacity:0;overflow:hidden;pointer-events:none}.profile-image-choice-btn[_ngcontent-%COMP%]{line-height:0}  .edit-valid-info .ng-select.ng-select-single .ng-select-container .ng-value-container{color:var(--configBgTextColor)!important}']}),i})();var Er=d(22157),In=d(17959);const Ar={TITLE:"You are now an Approved Creator!",BODY_PARA_1:"This is your temporary interface until you setup your White-Label Site. Once you have your White-Label Site setup, you can login directly to your own personal URL (creator-name.com) instead of topfan.com, to manage your content and interact with your fans.",BODY_PARA_2:"To get started, click the White-Label Site button below.",BUTTON_TEXT:"Setup White Label Site"};var yr=d(69394);let kn=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-preference-tab-skeleton"]],standalone:!0,features:[e.jDz],decls:9,vars:0,consts:[[1,"skeleton-preference-tab"],[1,"skeleton-title"],["className","h-24 w-150 r-4 c-bgt"],[1,"skeleton-tab-list"],["className","h-42 w-90 r-28 c-bgt"],["className","h-42 w-100 r-28 c-bgt"],["className","h-42 w-240 r-28 c-bgt"],["className","h-42 w-110 r-28 c-bgt"],["className","h-42 w-310 r-28 c-bgt"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-skeleton",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"app-skeleton",4)(5,"app-skeleton",5)(6,"app-skeleton",6)(7,"app-skeleton",7)(8,"app-skeleton",8),e.qZA()())},dependencies:[p.ez,ie._],styles:[".skeleton-preference-tab[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-preference-tab[_ngcontent-%COMP%]{display:block}}.skeleton-title[_ngcontent-%COMP%]{margin-bottom:30px}.skeleton-tab-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px 8px;padding-bottom:10px}"]}),i})(),Sr=(()=>{const s=class{constructor(){this.creatorProfile=M.uM}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-pending-request-popup"]],decls:4,vars:1,consts:[[1,"pending-msg"],[1,"icon-liteschedule"],[1,"desc"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"em",1),e.TgZ(2,"p",2),e._uU(3),e.qZA()()),2&o&&(e.xp6(3),e.Oqu(a.creatorProfile.CREATOR_REQUEST_PENDING_MSG))},styles:[".pending-msg[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);padding:.75rem;border-radius:.5rem;display:flex;gap:.75rem;
1align-items:center;justify-content:flex-start;margin-bottom:1.875rem}.icon[_ngcontent-%COMP%]{height:1.75rem;width:1.5rem}.desc[_ngcontent-%COMP%]{font-size:1rem;color:#fff;margin:0rem}@media (max-width: 995px){.pending-msg[_ngcontent-%COMP%]{margin:1rem .875rem 1.875rem}}.icon-liteschedule[_ngcontent-%COMP%]:before{font-size:24px}"]}),i})();function Ir(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e._UZ(2,"em",3),e.TgZ(3,"div",4)(4,"h6"),e._uU(5),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.qZA()()(),e.TgZ(8,"em",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.hidePopup())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.creatorProfile.CREATOR_REQUEST_FAILURE_HEADING),e.xp6(2),e.hij("Reason: ",t.failedReason,"")}}let kr=(()=>{const s=class{constructor(n,o){this.store=n,this.cs=o,this.destroy$=new q.x,this.onHide=new e.vpe,this.creatorProfile=M.uM}ngOnInit(){this.cs.isBrowser&&this.getProfileData()}getProfileData(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.failedReason=this.userProfile?.admin_action_reason})}hidePopup(){this.cs.setValueInocalStorage("showFailedPopup",!1),this.onHide.emit()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-failed-request-popup"]],outputs:{onHide:"onHide"},decls:1,vars:1,consts:[["class","failure-msg",4,"ngIf"],[1,"failure-msg"],[1,"failure-info"],[1,"icon-litered-info"],[1,"desc"],[1,"icon-liteicon-close","pointer",3,"click"]],template:function(o,a){1&o&&e.YNc(0,Ir,9,2,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5],styles:[".failure-msg[_ngcontent-%COMP%]{background:#000000;padding:.75rem;border-radius:.5rem;display:flex;gap:.75rem;justify-content:space-between;margin:.875rem .875rem 1.875rem;word-break:break-all}.failure-info[_ngcontent-%COMP%]{display:flex;gap:.75rem}.icon[_ngcontent-%COMP%]{height:1.75rem;width:1.5rem}.desc[_ngcontent-%COMP%]{font-size:1rem;color:#fff}.desc[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin-top:.25rem}.desc[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9375rem;margin:0rem;opacity:.6}.cross-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;cursor:pointer}@media (max-width: 995px){.pending-msg[_ngcontent-%COMP%]{margin-top:.875rem}}.icon-litered-info[_ngcontent-%COMP%]{margin-top:2px}.icon-litered-info[_ngcontent-%COMP%]:before{font-size:24px}.icon-liteicon-close[_ngcontent-%COMP%]:before{font-size:16px}"]}),i})();const Dr=function(i){return{type:"button",class:"btn btn-primary",label:i}};function Nr(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),e._UZ(4,"em",5),e.qZA(),e.TgZ(5,"div")(6,"div",6)(7,"h6",7),e._uU(8),e.qZA()(),e.TgZ(9,"div",8)(10,"p",7),e._uU(11),e.qZA()()()(),e.TgZ(12,"app-button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onResubmit.emit())}),e.qZA()(),e.TgZ(13,"em",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.hidePopup())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(8),e.Oqu(t.creatorProfile.VERIFICATION_FAILED_MSG),e.xp6(3),e.AsE("",t.creatorProfile.REASON,"",t.resubmissionReason,""),e.xp6(1),e.Q6J("btnField",e.VKq(4,Dr,t.creatorProfile.RESUBMIT))}}let Lr=(()=>{const s=class{constructor(n,o){this.store=n,this.cs=o,this.onHide=new e.vpe,this.onResubmit=new e.vpe,this.creatorProfile=M.uM,this.destroy$=new q.x}ngOnInit(){this.cs.isBrowser&&this.getProfileData()}getProfileData(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.resubmissionReason=this.userProfile?.meta_data?.reason})}hidePopup(){this.cs.setValueInocalStorage("showFailedPopup",!1),this.onHide.emit()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-resubmission-request-popup"]],outputs:{onHide:"onHide",onResubmit:"onResubmit"},decls:1,vars:1,consts:[["class","resubmission-msg",4,"ngIf"],[1,"resubmission-msg"],[1,"msg"],[1,"info"],[1,"resubmit-icon"],[1,"icon-literesubmit-icon"],[1,"hdn"],[1,"m-0"],[1,"desc"],[3,"btnField","click"],[1,"icon-liteicon-close",3,"click"]],template:function(o,a){1&o&&e.YNc(0,Nr,14,6,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5,ae.r],styles:[".resubmission-msg{background:#000000;padding:1rem;border-radius:.5rem;display:flex;gap:.75rem;justify-content:space-between;margin:.875rem .875rem 1.875rem;word-break:break-all}  .resubmission-msg app-button button{width:172px;height:48px}@media (max-width: 992px){  .resubmission-msg .msg{flex-wrap:wrap;gap:8px}  .resubmission-msg .msg .hdn h6{line-height:22px!important}  .resubmission-msg app-button{margin-left:auto}  .resubmission-msg app-button button{width:inherit;height:inherit}}@media (max-width: 540px){  .resubmission-msg app-button{margin-right:-28px}}.msg[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center}.msg[_ngcontent-%COMP%]   .hdn[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{line-height:32px;word-break:break-word}.msg[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:21px;opacity:60%;word-break:break-word}.failure-info[_ngcontent-%COMP%]{display:flex;gap:.75rem}.icon[_ngcontent-%COMP%]{height:1.75rem;width:1.5rem}.desc[_ngcontent-%COMP%]{font-size:1rem;color:#fff}.desc[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{margin-top:.25rem}.desc[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9375rem;margin:0rem;opacity:.6}.cross-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;cursor:pointer}.resubmit-icon[_ngcontent-%COMP%]{background:#09c6da;height:20px;min-width:20px;border-radius:100%;display:flex;justify-content:center;align-items:center}.info[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:12px}.icon-literesubmit-icon[_ngcontent-%COMP%]{margin-top:-2px}.icon-literesubmit-icon[_ngcontent-%COMP%]:before{font-size:12px;color:#000}.icon-liteicon-close[_ngcontent-%COMP%]{cursor:pointer;height:min-content}.icon-liteicon-close[_ngcontent-%COMP%]:before{font-size:16px}"]}),i})();const Zr=["creatorRequirementsModal"],Fr=["approvedCreatorModal"];function Ur(i,s){1&i&&(e.ynx(0),e._UZ(1,"app-pending-request-popup"),e.BQk())}
1function Br(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-failed-request-popup",16),e.NdJ("onHide",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.hidePopup())}),e.qZA(),e.BQk()}}function Rr(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-resubmission-request-popup",17),e.NdJ("onHide",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.hidePopup())})("onResubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToBecomeACreatorPage())}),e.qZA(),e.BQk()}}function qr(i,s){1&i&&e._UZ(0,"app-preference-tab-skeleton")}function Gr(i,s){1&i&&(e.TgZ(0,"h4"),e._uU(1,"Preferences"),e.qZA())}const Yr=function(){return["/edit-preference"]};function Jr(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3,"profile"),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.DdM(2,Yr)),e.xp6(1),e.Q6J("checked","/edit-preference"===t.href)}}const Mt=function(i){return[i]};function Vr(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.VKq(3,Mt,t.ROUTE_PATHS.EDIT_WELCOME_MESSAGE)),e.xp6(1),e.Q6J("checked",t.href===t.ROUTE_PATHS.EDIT_WELCOME_MESSAGE),e.xp6(2),e.Oqu(t.fields.WELCOME_MESSAGE)}}const Wr=function(){return["/edit-preference/edit-content"]};function Hr(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.DdM(3,Wr)),e.xp6(1),e.Q6J("checked","/edit-preference/edit-content"===t.href),e.xp6(2),e.Oqu(t.fields.INTERESTS)}}const Qr=function(){return["/edit-preference/edit-creator"]};function Kr(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.DdM(3,Qr)),e.xp6(1),e.Q6J("checked","/edit-preference/edit-creator"===t.href),e.xp6(2),e.Oqu(t.fields.CREATOR_TYPE)}}function zr(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"label",28),e._UZ(2,"input",26),e.TgZ(3,"span",27),e._uU(4),e.qZA()(),e.BQk()),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("checked","/edit-preference/notifications"===t.href),e.xp6(2),e.Oqu(t.NEWS_CONSTANTS.NOTIFICATIONS_NEWSLETTERS)}}const $r=function(){return["/edit-preference/connect-nft-wallet"]};function jr(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3,"NFT Wallet"),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.DdM(2,$r)),e.xp6(1),e.Q6J("checked","/edit-preference/connect-nft-wallet"===t.href)}}const Xr=function(){return["/edit-preference/monetization"]};function el(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3,"Monetization"),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.DdM(2,Xr)),e.xp6(1),e.Q6J("checked","/edit-preference/monetization"===t.href)}}const tl=function(i){return{"mr-10":i}},nl=function(){return["/edit-preference/privacy"]};function ol(i,s){if(1&i&&(e.TgZ(0,"label",29),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(4,tl,null==t.userProfile?null:t.userProfile.is_creator))("routerLink",e.DdM(6,nl)),e.xp6(1),e.Q6J("checked","/edit-preference/privacy"===t.href),e.xp6(2),e.Oqu(t.fields.PRIVACY_PASSWORD_INTEGRATION)}}function il(i,s){if(1&i&&(e.TgZ(0,"label",30),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3,"White-Label Site"),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("checked","/edit-preference/whitelabel"===t.href)}}function al(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",t.ROUTE_PATHS.OUTBOUND_EMAILS),e.xp6(1),e.Q6J("checked",t.isLinkActive("outbound-emails")),e.xp6(2),e.Oqu(t.fields.OUTBOUND_EMAILS)}}function sl(i,s){if(1&i&&(e.TgZ(0,"label",31),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("checked",t.isLinkActive("link-in-bio")),e.xp6(2),e.Oqu(t.fields.LINK_IN_BIO)}}function rl(i,s){if(1&i&&(e.TgZ(0,"label",32),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("checked",t.isDelegationTabActive),e.xp6(2),e.Oqu(t.fields.DELEGATION)}}
1function ll(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.VKq(3,Mt,t.ROUTE_PATHS.TOPIC_TAGS)),e.xp6(1),e.Q6J("checked",t.href===t.ROUTE_PATHS.TOPIC_TAGS),e.xp6(2),e.Oqu(t.fields.TOPIC_TAGS)}}function cl(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.VKq(3,Mt,t.ROUTE_PATHS.GROUPS)),e.xp6(1),e.Q6J("checked",t.isLinkActive("groups")),e.xp6(2),e.Oqu(t.fields.GROUPS)}}function dl(i,s){if(1&i&&(e.TgZ(0,"label",25),e._UZ(1,"input",26),e.TgZ(2,"span",27),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2);e.Q6J("routerLink",e.VKq(3,Mt,t.ROUTE_PATHS.GAMIFICATION)),e.xp6(1),e.Q6J("checked",t.isLinkActive("gamification")),e.xp6(2),e.Oqu(t.fields.GAMIFICATION)}}function pl(i,s){if(1&i&&(e.TgZ(0,"div",18),e.YNc(1,Gr,2,0,"h4",4),e.TgZ(2,"div",19),e.YNc(3,Jr,4,3,"label",20),e.ALo(4,"async"),e.ALo(5,"hasPermission"),e.ALo(6,"showTabByApproval"),e.YNc(7,Vr,4,5,"label",20),e.ALo(8,"async"),e.ALo(9,"hasPermission"),e.ALo(10,"showTabByApproval"),e.YNc(11,Hr,4,4,"label",20),e.ALo(12,"showTabByApproval"),e.YNc(13,Kr,4,4,"label",20),e.ALo(14,"async"),e.ALo(15,"hasPermission"),e.ALo(16,"showTabByApproval"),e.YNc(17,zr,5,2,"ng-container",4),e.ALo(18,"showTabByApproval"),e.YNc(19,jr,4,3,"label",20),e.ALo(20,"async"),e.ALo(21,"hasPermission"),e.ALo(22,"showTabByApproval"),e.YNc(23,el,4,3,"label",20),e.ALo(24,"async"),e.ALo(25,"hasPermission"),e.ALo(26,"showTabByApproval"),e.YNc(27,ol,4,7,"label",21),e.ALo(28,"async"),e.ALo(29,"hasPermission"),e.ALo(30,"showTabByApproval"),e.YNc(31,il,4,1,"label",22),e.ALo(32,"async"),e.ALo(33,"hasPermission"),e.ALo(34,"showTabByApproval"),e.YNc(35,al,4,3,"label",20),e.ALo(36,"async"),e.ALo(37,"hasPermission"),e.ALo(38,"showTabByApproval"),e.YNc(39,sl,4,2,"label",23),e.ALo(40,"async"),e.ALo(41,"hasPermission"),e.ALo(42,"showTabByApproval"),e.YNc(43,rl,4,2,"label",24),e.ALo(44,"async"),e.ALo(45,"hasPermission"),e.ALo(46,"async"),e.ALo(47,"hasPermission"),e.ALo(48,"showTabByApproval"),e.YNc(49,ll,4,5,"label",20),e.ALo(50,"showTabByApproval"),e.YNc(51,cl,4,5,"label",20),e.ALo(52,"showTabByApproval"),e.YNc(53,dl,4,5,"label",20),e.ALo(54,"showTabByApproval"),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.checkPendingCreatorApproval),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,16,e.lcZ(5,18,t.permissionKeys.PROFILE))&&e.xi3(6,20,t.userProfile,t.SIDEBAR_TABS.PROFILE)&&t.checkPendingCreatorApproval),e.xp6(4),e.Q6J("ngIf",e.lcZ(8,23,e.lcZ(9,25,t.permissionKeys.WELCOME_MESSAGE))&&e.xi3(10,27,t.userProfile,t.SIDEBAR_TABS.WELCOME_MESSAGE)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(4),e.Q6J("ngIf",(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))&&e.xi3(12,30,t.userProfile,t.SIDEBAR_TABS.INTERESTS)),e.xp6(2),e.Q6J("ngIf",e.lcZ(14,33,e.lcZ(15,35,t.permissionKeys.CREATOR_TYPES))&&e.xi3(16,37,t.userProfile,t.SIDEBAR_TABS.CREATOR_TYPE)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(4),e.Q6J("ngIf",e.xi3(18,40,t.userProfile,t.SIDEBAR_TABS.NOTIFICATIONS)&&!(t.whitelabelData&&null!=t.userProfile&&t.userProfile.is_host_owner)),e.xp6(2),e.Q6J("ngIf",(e.lcZ(20,43,e.lcZ(21,45,t.permissionKeys.NFT_WALLET))&&!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_white_label)&&(null==t.userProfile?null:t.userProfile.is_host_owner))&&e.xi3(22,47,t.userProfile,t.SIDEBAR_TABS.NFT_WALLET)),e.xp6(4),e.Q6J("ngIf",(e.lcZ(24,50,e.lcZ(25,52,t.permissionKeys.MONETIZATION))&&!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_white_label)&&(null==t.userProfile?null:t.userProfile.is_host_owner))&&e.xi3(26,54,t.userProfile,t.SIDEBAR_TABS.MONETIZE)),e.xp6(4),e.Q6J("ngIf",e.lcZ(28,57,e.lcZ(29,59,t.permissionKeys.PRIVACY_AND_PASSWORD))&&e.xi3(30,61,t.userProfile,t.SIDEBAR_TABS.PRIVACY_AND_PASSWORD)),e.xp6(4),e.Q6J("ngIf",e.lcZ(32,64,e.lcZ(33,66,t.permissionKeys.WHITE_LABELED_SITE))&&
1(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_white_label)&&(null==t.userProfile?null:t.userProfile.is_host_owner))&&e.xi3(34,68,t.userProfile,t.SIDEBAR_TABS.WHITE_LABELED_SITE)),e.xp6(4),e.Q6J("ngIf",e.lcZ(36,71,e.lcZ(37,73,t.permissionKeys.WHITE_LABELED_SITE))&&t.whitelabelData&&t.cs.isWlsVerified&&e.xi3(38,75,t.userProfile,t.SIDEBAR_TABS.OUTBOUND_EMAILS)&&(null==t.userProfile?null:t.userProfile.is_host_owner)),e.xp6(4),e.Q6J("ngIf",(e.lcZ(40,78,e.lcZ(41,80,t.permissionKeys.LINK_IN_BIO))&&!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_white_label)&&(null==t.userProfile?null:t.userProfile.is_host_owner))&&e.xi3(42,82,t.userProfile,t.SIDEBAR_TABS.LINK_IN_BIO)),e.xp6(4),e.Q6J("ngIf",!e.lcZ(44,85,e.gM2(45,87,"",null,!1,!0))&&(e.lcZ(46,92,e.lcZ(47,94,t.permissionKeys.DELEGATION))||t.showDelegationTab)&&e.xi3(48,96,t.userProfile,t.SIDEBAR_TABS.DELEGATION)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(6),e.Q6J("ngIf",(null==t.userProfile?null:t.userProfile.is_creator)&&e.xi3(50,99,t.userProfile,t.SIDEBAR_TABS.TOPIC_TAGS)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(2),e.Q6J("ngIf",(null==t.userProfile?null:t.userProfile.is_creator)&&e.xi3(52,102,t.userProfile,t.SIDEBAR_TABS.GAMIFICATION)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(2),e.Q6J("ngIf",(null==t.userProfile?null:t.userProfile.is_creator)&&e.xi3(54,105,t.userProfile,t.SIDEBAR_TABS.GAMIFICATION)&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner)))}}const gl=function(i){return{"creator-pending-approval-profile":i}};let _l=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b){this.router=n,this.authService=o,this.cs=a,this.activatedRoute=r,this.apiCallService=l,this.store=g,this.headerFooterStateService=h,this.permissionService=b,this.isLoaded=!1,this.permissionsLoaded=!1,this.showFailedPopup=!1,this.showResubmissionPopup=!1,this.failedPopupDisplayed=!1,this.applicationStatusEnums=be.gy,this.isWhiteLabelWebsite=this.authService.isWhiteLabelWebsite(),this.permissionKeys=I.S,this.fields=M.Iv,this.isDelegationTabActive=!1,this.destroy$=new q.x,this.showDelegationTab=!1,this.ROUTE_PATHS=ne._1,this.NEWS_CONSTANTS=In.Z8,this.SIDEBAR_TABS=Ae.eE,this.APPROVED_CREATOR_MODAL=Ar,this.approvedCreatorModalOptions={class:"modal-dialog-centered modal-lg"}}ngOnInit(){this.cs.isBrowser&&(this.activatedRoute.queryParams.subscribe(n=>{this.href=n&&n.profile?"/edit-preference":this.router.url}),this.getProfileData(),this.permissionService.hasPermission(this.permissionKeys.PROFILE).pipe((0,wn.q)(_.Mx.ONE)).subscribe(()=>{this.permissionsLoaded=!0}),this.checkTabStatus(),this.getAccessList(),this.subscribeAccessList(),this.subscribeWhitelabelData(),"true"==localStorage?.getItem("creator_upgraded")&&(setTimeout(()=>{this.openApprovedCreatorModal()},_.Mx.ONE_THOUSAND),localStorage?.setItem("creator_upgraded","false")))}subscribeAccessList(){this.cs.delegateAccessListLength$.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.userProfile.is_creator||this.router.navigate(["/dashboard/posts"])})}ngAfterViewInit(){this.isLoaded=!0,this.headerFooterStateService.updateFooterState({isFooterVisible:this.isLoaded&&!this.cs.isWhiteLabelWeb})}getProfileData(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.showFailedPopup=this.isCreatorRequestFailed,this.showResubmissionPopup=n.id_verification_status===this.applicationStatusEnums.RESUBMIT&&!n.is_creator,this.failedPopupDisplayed=!!this.cs.getValueFromLocalStorage("showFailedPopup")})}subscribeWhitelabelData(){this.cs.creatorWhitelabelData.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.whitelabelData=n||void 0})}hidePopup(){this.showFailedPopup=!1,this.showResubmissionPopup=!1,this.cs.setValueInocalStorage("showFailedPopup",!1)}get isCreatorRequestPending(){return this.userProfile?.admin_approval_status===this.applicationStatusEnums.PEND
1ING}get isCreatorRequestFailed(){return this.userProfile?.admin_approval_status===this.applicationStatusEnums.FAILED}getAccessList(){this.apiCallService.get(x.$_.getDelegationList(),!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n.status&&(this.showDelegationTab=n.data.length>=1)},error:n=>{this.cs.showErrorMessage(n)}})}navigateToBecomeACreatorPage(){this.router.navigate([X.dp.BECOME_A_CREATOR])}openApprovedCreatorModal(){this.approvedCreatorModal?.openModal()}checkTabStatus(){this.isDelegationTabActive=this.router.url.startsWith("/edit-preference/delegation")}isLinkActive(n){return this.href?.includes(n)}get checkPendingCreatorApproval(){return this.userProfile?.admin_approval_status!==be.gy.PENDING}navigateToWhiteLabelSite(){this.approvedCreatorModal?.closeModal(),this.router.navigate([ne._1.EDIT_PREFERENCE_WHITELABEL])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(ue.AuthService),e.Y36(A.v),e.Y36(O.gz),e.Y36(N.F),e.Y36(le.yh),e.Y36(c.P),e.Y36(Er.$))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-editprofile-container"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Zr,5),e.Gf(Fr,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.creatorRequirementsModal=r.first),e.iGM(r=e.CRH())&&(a.approvedCreatorModal=r.first)}},decls:25,vars:17,consts:[[1,"main-wrapper","container","mt-0",3,"ngClass"],[1,"main-content"],[1,"inner-content"],[1,"preference-container"],[4,"ngIf"],["class","preference-tab",4,"ngIf"],["creatorRequirementsModal",""],[3,"showConfirmationBtn","showCrossBtnInBody","notShowConfirmBtn","dynamicClass","modalOptions"],["approvedCreatorModal",""],[1,"approved-creator-modal__inner"],[1,"approved-creator-modal__badge"],["aria-hidden","true",1,"icon-litefi-ic-verified-star","approved-creator-modal__star"],[1,"approved-creator-modal__title"],[1,"approved-creator-modal__text","approved-creator-modal__text_body"],[1,"approved-creator-modal__text"],[1,"btn","btn-primary","approved-creator-modal__button","mt-2",3,"click"],[3,"onHide"],[3,"onHide","onResubmit"],[1,"preference-tab"],[1,"preference-tabList"],[3,"routerLink",4,"ngIf"],[3,"ngClass","routerLink",4,"ngIf"],["routerLink","/edit-preference/whitelabel",4,"ngIf"],["routerLink","/edit-preference/link-in-bio",4,"ngIf"],["routerLink","/edit-preference/delegation",4,"ngIf"],[3,"routerLink"],["type","radio","name","steps",3,"checked"],[1,"active"],["routerLink","/edit-preference/notifications"],[3,"ngClass","routerLink"],["routerLink","/edit-preference/whitelabel"],["routerLink","/edit-preference/link-in-bio"],["routerLink","/edit-preference/delegation"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,Ur,2,0,"ng-container",4),e.YNc(5,Br,2,0,"ng-container",4),e.YNc(6,Rr,2,0,"ng-container",4),e.YNc(7,qr,1,0,"app-preference-tab-skeleton",4),e.YNc(8,pl,55,108,"div",5),e._UZ(9,"router-outlet"),e.qZA()()()(),e._UZ(10,"app-creator-requirements-modal",null,6),e.TgZ(12,"app-alert-modal",7,8)(14,"div",9)(15,"div",10),e._UZ(16,"em",11),e.qZA(),e.TgZ(17,"h2",12),e._uU(18),e.qZA(),e.TgZ(19,"p",13),e._uU(20),e.qZA(),e.TgZ(21,"p",14),e._uU(22),e.qZA(),e.TgZ(23,"button",15),e.NdJ("click",function(){return a.navigateToWhiteLabelSite()}),e._uU(24),e.qZA()()()),2&o&&(e.Q6J("ngClass",e.VKq(15,gl,!a.checkPendingCreatorApproval)),e.xp6(4),e.Q6J("ngIf",a.isCreatorRequestPending&&(null==a.userProfile?null:a.userProfile.id_verification_status)!==a.applicationStatusEnums.RESUBMIT),e.xp6(1),e.Q6J("ngIf",a.showFailedPopup&&!a.failedPopupDisplayed),e.xp6(1),e.Q6J("ngIf",!a.failedPopupDisplayed&&a.showResubmissionPopup),e.xp6(1),e.Q6J("ngIf",!a.cs.isBrowser||!a.permissionsLoaded),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser&&a.permissionsLoaded),e.xp6(4),e.Q6J("showConfirmationBtn",!1)("showCrossBtnInBody",!0)("notShowConfirmBtn",!1)("dynamicClass","approved-creator-modal")("modalOptions",a.approvedCreatorModalOptions),e.xp6(6),e.hij(" ",a.APPROVED_CREATOR_MODAL.TITLE," "),e.xp6(2),e.hij(" ",a.APPROVED_CREATOR_MODAL.BODY_PARA_1," "),e.xp6(2),e.hij(" ",a.APPROVED_CREATOR_MODAL.BODY_PARA_2," "),e.xp6(2),e.hij(" ",a.APPROVED_CREATOR_MODAL.BUTTON_TEXT," "))},dependencies:[p.mk,p.O5,U.F,yr.t,O.lC,O.rH,kn,Sr,kr,Lr,p.Ov,at.j,An.J],styles:["@media (min-width: 992px){.main-wrapper[_ngcontent-%COMP%]   .main-content.remove-left-margin[_ngcontent-%COMP%]{width:unset!important}}.main-wrapper[_ngcontent-%COMP%]:has(.whitelabel-site-container--topfans)   .main-content[_ngcontent-%COMP%]{width:100%!important;margin:0!important}.main-wrapper[_ngcontent-%COMP%]:has(.whitelabel-site-container--topfans)   .preference-tab[_ngcontent-%COMP%]{display:none}  .theme-whiteLabel .approved-creator-modal__star:before{color:var(--configThemeColor)!important}.creator-pending-approval-profile[_ngcontent-%COMP%]{margin-top:-30px!important}"]}),i})();var se=d(6971),ul=d(16852),ml=d(59622),fl=d(15704);let Dn=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-monetization-skeleton"]],standalone:!0,features:[e.jDz],decls:25,vars:0,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-20 w-180 r-4 c-post"],[1,"skeleton-rows"],[1,"skeleton-row"],["className","h-16 w-280 r-4 c-post"],["className","h-24 w-44 r-12 c-post"],["className","h-16 w-260 r-4 c-post"],["className","h-16 w-220 r-4 c-post"],["className","h-16 w-240 r-4 c-post"],[1,"skeleton-row-controls"],["className","h-16 w-120 r-4 c-post"],["className","h-16 w-16 r-4 c-post"],["className","h-16 w-200 r-4 c-post"],["className","h-16 w-140 r-4 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.TgZ(4,"div",3)(5,"div",4),e._UZ(6,"app-skeleton",5)(7,"app-skeleton",6),e.qZA(),e.TgZ(8,"div",4),e._UZ(9,"app-skeleton",7)(10,"app-skeleton",6),e.qZA(),e.TgZ(11,"div",4),e._UZ(12,"app-skeleton",8)(13,"a
1pp-skeleton",6),e.qZA(),e.TgZ(14,"div",4),e._UZ(15,"app-skeleton",9),e.TgZ(16,"div",10),e._UZ(17,"app-skeleton",11)(18,"app-skeleton",12),e.qZA()(),e.TgZ(19,"div",4),e._UZ(20,"app-skeleton",13),e.TgZ(21,"div",10),e._UZ(22,"app-skeleton",14)(23,"app-skeleton",12)(24,"app-skeleton",6),e.qZA()()()())},dependencies:[ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-section[_ngcontent-%COMP%]   .skeleton-heading[_ngcontent-%COMP%]{margin-bottom:20px}.skeleton-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--configBorderColor)}.skeleton-row[_ngcontent-%COMP%]:last-child{border-bottom:0}.skeleton-row-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-shrink:0}"]}),i})();function hl(i,s){1&i&&e._UZ(0,"app-monetization-skeleton")}function Cl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",7),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",8),e._uU(6,"Monetization"),e.qZA()()}}function bl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"app-minimum-tip",18),e.NdJ("onEditMinTip",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.editMinTip(o,a.VALIDATION_PAYLOAD_KEYS.guaranteed_reply,"international_prices_for_min_tip_guaranteed_reply"))}),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("key",t.VALIDATION_PAYLOAD_KEYS.guaranteed_reply)("minimumTip",null==t.userDetails?null:t.userDetails[null==t.payloadKeys?null:t.payloadKeys[t.VALIDATION_PAYLOAD_KEYS.guaranteed_reply]])("internationalPrices",null==t.userDetails?null:t.userDetails.international_prices_for_min_tip_guaranteed_reply)}}function vl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",9)(1,"div",10)(2,"div",11),e._uU(3,"MONETIZATION"),e.qZA(),e.TgZ(4,"div",12)(5,"div",13)(6,"p"),e._uU(7),e.qZA(),e.TgZ(8,"label",14)(9,"input",15),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.displayAudience(o,"only_subscriber_can_access_chatroom"))}),e.qZA(),e._UZ(10,"span",16),e.qZA()(),e.TgZ(11,"div",13)(12,"p"),e._uU(13),e.qZA(),e.TgZ(14,"label",14)(15,"input",15),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.displayAudience(o,"only_subscriber_can_comment_on_post"))}),e.qZA(),e._UZ(16,"span",16),e.qZA()(),e.TgZ(17,"div",13)(18,"p"),e._uU(19),e.qZA(),e.TgZ(20,"label",14)(21,"input",15),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.displayAudience(o,"accept_tips_post"))}),e.qZA(),e._UZ(22,"span",16),e.qZA()(),e.TgZ(23,"div",13)(24,"p"),e._uU(25),e.qZA(),e.TgZ(26,"div",17)(27,"div")(28,"app-minimum-tip",18),e.NdJ("onEditMinTip",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.editMinTip(o,a.VALIDATION_PAYLOAD_KEYS.price_for_dm,"international_prices_for_dm"))}),e.qZA()()()(),e.TgZ(29,"div",13)(30,"p"),e._uU(31),e.TgZ(32,"em",19),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.showInfoModal())}),e.qZA()(),e.TgZ(33,"div",17),e.YNc(34,bl,2,3,"div",0),e.TgZ(35,"label",14)(36,"input",15),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.displayAudience(o,a.VALIDATION_PAYLOAD_KEYS.guaranteed_reply))}),e.qZA(),e._UZ(37,"span",16),e.qZA()()()()()()}if(2&i){const t=e.oxw(2);e.xp6(7),e.Oqu(t.PrivacySettingsMessage.OnlySubscribersAccessChatRoom),e.xp6(2),e.Q6J("checked",null==t.userDetails?null:t.userDetails.only_subscriber_can_access_chatroom),e.xp6(4),e.Oqu(t.PrivacySettingsMessage.OnlySubscribersCommentOnPosts),e.xp6(2),e.Q6J("checked",null==t.userDetails?null:t.userDetails.only_subscriber_can_comment_on_post),e.xp6(4),e.Oqu(t.MESSAGES.ACCEPT_TIPS_ON_POST),e.xp6(2),e.Q6J("checked",t.acceptTipsPost),e.xp6(4),e.Oqu(t.MESSAGES.PRICE_FOR_DM_LABEL),e.xp6(3),e.Q6J("key",t.VALIDATION_PAYLOAD_KEYS.price_for_dm)("minimumTip",null==t.userDetails?null:t.userDetails[null==t.payloadKeys?null:t.payloadKeys[t.VALIDATION_PAYLOAD_KEYS.price_for_dm]])("internationalPrices",null==t.userDetails?null:t.userDetails.international_prices_for_dm),e.xp6(3),e.hij(" ",t.MESSAGES.GUARANTEED_REPLY_TOGGLE," "),e.xp6(3),e.Q6J("ngIf",null==t.userDetails?null:t.userDetails.guaranteed_reply),e.xp6(2),e.Q6J("checked",null==t.userDetails?null:t.userDetails.guaranteed_reply)}}
1function xl(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,Cl,7,0,"div",3),e.YNc(2,vl,38,13,"div",4),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading)}}let Pl=(()=>{const s=class{constructor(n,o,a,r,l,g,h){this.apiCallService=n,this.cs=o,this.fb=a,this.modal=r,this.modalService=l,this.router=g,this.headerFooterStateService=h,this.MESSAGES=se.X3,this.planStatus=!1,this.VALIDATION_PAYLOAD_KEYS=se.Rr,this.minTipField={type:M.sf.TEXT,placeholder:"Enter Amount",name:"minimumAmount",class:"col-12"},this.payloadKeys={guaranteed_reply:se.Rr.min_tip_guaranteed_reply,price_for_dm:se.Rr.price_for_dm},this.minTipForm=this.fb.group({minimumAmount:new u.NI("")}),this.PrivacySettingsMessage=G.Et,this.isLoading=!0}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.getMonetizeStatus())}showInfoModal(){this.modalService.show(J.S,{initialState:{icon:"../../../../../assets/images/svg/Refund.svg",heading:se.X3.GUARANTEED_REPLY,description:se.X3.GUARANTEED_REPLY_INFO,iconStyleClass:"confirm-creator-icon-bg",buttonField:{type:"button",class:"btn btn-primary w-200",label:se.X3.OKAY}},class:"modal-lg",backdrop:"static"})}getMonetizeStatus(){this.apiCallService.get(x.Y9.Monetization,!0).subscribe(n=>{n.status&&(this.acceptTipsPost=n.data.accept_tips_post,this.userDetails=n?.data,this.userDetails.price_for_dm=n?.data?.price_for_dm??1,this.planStatus=!!Array.isArray(n?.subscriptions)&&!!n.subscriptions.length),this.isLoading=!1},n=>{this.cs.showErrorMessage(n.message),this.isLoading=!1})}editMinTip(n,o,a){this.updateToggle({[o]:!0,[this.payloadKeys[o]]:n?.amount,[a]:n.international_prices||[]},{target:{checked:!0}},o)}updateToggle(n,o,a=""){this.apiCallService.put(x.Y9.Monetization,n,!0).subscribe({next:r=>{r.status&&(this.cs.showSuccessMessage(r.message),a&&(this.userDetails[a]=o.target?.checked,this.userDetails[this.payloadKeys[a]]=n[this.payloadKeys[a]]))},error:r=>{o.target&&(o.target.checked=!o.target?.checked),this.cs.showErrorMessage(r.message),a&&(this.userDetails[a]=o.target?.checked)}})}openMinimumTipModal(n,o,a=""){const r=this.modal.open(ul.k,{backdrop:"static"});r.componentInstance.data={toSetMinimumTip:!0,isEdit:!1,minimumTip:"1",heading:this.payloadKeys[a]===se.Rr.min_tip_guaranteed_reply?se.X3.GURANTEED_REPLY_MSG:""},r.componentInstance.currencyConversionData={adjustedPrices:this.userDetails?.international_prices_for_min_tip_guaranteed_reply||[]},r.result.then(g=>{g?(this.minimumTip=g?.amount,n={...n,[this.payloadKeys[a]]:this.minimumTip,international_prices_for_min_tip_guaranteed_reply:g.international_prices||[]},this.updateToggle(n,o,a)):o.target&&(o.target.checked=!o.target?.checked)}).catch(()=>{})}displayAudience(n,o){let a={[o]:n.target.checked};o!==G.w0.ONLY_SUBSCRIBER_CAN_ACCESS_CHATROOM&&o!==G.w0.ONLY_SUBSCRIBER_CAN_COMMENT_ON_POST?o===se.Rr.guaranteed_reply&&n.target.checked?this.openMinimumTipModal(a,n,o):this.updateToggle(a,n,o):this.allowOnlySubscribers(n,o)}allowOnlySubscribers(n,o){this.apiCallService.get(x.Y9.userPlan,!0).subscribe(a=>{0===a.data.length&&n.target.checked?(this.cs.showErrorMessage(G.w0.YOU_DOES_NOT_HAVE_ANY_ACTIVE_SUBSCRIPTION),n.target.checked=!n.target.checked):this.apiCallService.put(x.Y9.editUserPreferences,{[o]:n.target.checked},!0).subscribe(l=>{l.status&&this.cs.showSuccessMessage(l.message)},l=>{this.cs.showErrorMessage(l.message)})},a=>(this.cs.showErrorMessage(a.message),!1))}moveToDashboard(){this.router.navigate(["dashboard"])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(A.v),e.Y36(u.qu),e.Y36(ml.FF),e.Y36(k.tT),e.Y36(O.F0),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-monetization"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","inside-container preference-container",4,"ngIf"],[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container"],[1,"walletform-content"],[1,"walletform-title"],[1,"allowContent"],[1,"preference-privacy-row"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"d-flex","align-items-center","gap-3"],[3,"key","minimumTip","internationalPrices","onEditMinTip"],[1,"icon-liteic-pass-info","cursor-pointer",3,"click"]],template:function(o,a){1&o&&(e.YNc(0,hl,1,0,"app-monetization-skeleton",0),e.YNc(1,xl,3,2,"div",1)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.O5,ce.l,fl.g,Dn],styles:[".info-icon[_ngcontent-%COMP%]{height:15px;margin-bottom:2px;margin-left:5px}.icon-liteic-pass-info[_ngcontent-%COMP%]{display:inline-flex;height:17px;vertical-align:middle;margin-left:8px}.icon-liteic-pass-info[_ngcontent-%COMP%]:before{font-size:15px}"]}),i})();const Ol=["alertmodal"];
1function Ml(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"div",4),e._uU(3),e.qZA(),e.TgZ(4,"div",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeModal("close"))}),e._UZ(5,"em",6),e.qZA()(),e._UZ(6,"hr",7),e.TgZ(7,"div",8),e._uU(8),e.ALo(9,"titlecase"),e.ALo(10,"titlecase"),e.qZA(),e.TgZ(11,"div",9)(12,"button",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeModal("close"))}),e._uU(13),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onNotificationChange())}),e._uU(15),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.messages.NOTIFICATIONS_SETTINGS," "),e.xp6(5),e.lnq(" ",t.messages.NOTIFICATION_ENABLE_FOR_FOLLOWERS(t.modalInfo.enable,t.modalInfo.notificationType)," ",e.lcZ(9,6,null==t.modalInfo||null==t.modalInfo.userDetails?null:t.modalInfo.userDetails.first_name)," ",e.lcZ(10,8,null==t.modalInfo||null==t.modalInfo.userDetails?null:t.modalInfo.userDetails.last_name),"? "),e.xp6(5),e.hij(" ",t.messages.NO," "),e.xp6(2),e.hij(" ",t.messages.YES," ")}}function Tl(i,s){1&i&&e.YNc(0,Ml,16,10,"ng-template")}function wl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",12,13),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onNotificationChange())})("canceled",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.closeModal(o))}),e.TgZ(2,"div"),e._uU(3),e.ALo(4,"titlecase"),e.ALo(5,"titlecase"),e.qZA()()}if(2&i){const t=e.oxw();e.Q6J("headerLabel",t.heading)("cancelBtnLabel",t.messages.NO)("confirmBtnLabel",t.messages.YES)("showCrossBtn",!1)("isDeleteModal",!0),e.xp6(3),e.lnq(" ",t.messages.NOTIFICATION_ENABLE_FOR_FOLLOWERS(t.modalInfo.enable,t.modalInfo.notificationType)," ",e.lcZ(4,8,null==t.modalInfo||null==t.modalInfo.userDetails?null:t.modalInfo.userDetails.first_name)," ",e.lcZ(5,10,null==t.modalInfo||null==t.modalInfo.userDetails?null:t.modalInfo.userDetails.last_name),"? ")}}let Nn=(()=>{const s=class{constructor(n,o,a){this.modalService=n,this.apiCallService=o,this.cs=a,this.messages=se.X3,this.modalInfo={userDetails:{email:"",first_name:"",last_name:"",gsi4pk:""},enable:!1,notificationSettings:{},notificationType:""},this.message=S.Vm,this.heading=se.X3.NOTIFICATIONS_SETTINGS}ngOnInit(){this.cs.isBrowser&&(this.modalInfo=Object.assign({userDetails:this.modalService.config.initialState?.userDetails,notificationSettings:this.modalService.config.initialState?.notificationSettings,notificationType:this.modalService.config.initialState?.notificationType,enable:this.modalService.config.initialState?.enable}),this.heading=se.X3.NOTIFICATION_TYPE_HEADING(this.modalService.config.initialState?.notificationType))}openModal(){this.alertmodal?.openModal()}ngAfterViewInit(){this.openModal()}onNotificationChange(){const n={...this.modalInfo.notificationSettings,[this.modalInfo.notificationType]:this.modalInfo.enable};this.apiCallService.put(x.$_.updateNotificationSetting(this.modalInfo.userDetails.gsi4pk),n,!0).subscribe({next:o=>{o.status&&this.cs.showSuccessMessage(o.message)},error:o=>{this.cs.showErrorMessage(o.message),this.closeModal("close")}})}closeModal(n){this.modalService.setDismissReason(null===n?this.message.SUCCESS:this.message.CLOSE),this.modalService.hide()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(k.tT),e.Y36(N.F),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-notification-following-dialog"]],viewQuery:function(o,a){if(1&o&&e.Gf(Ol,5),2&o){let r;e.iGM(r=e.CRH())&&(a.alertmodal=r.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","isDeleteModal","confirmed","canceled",4,"ngIf"],[1,"admin-modaldialog","modal
1-basic"],[1,"modal-header","dialog-header","d-flex","justify-content-between"],[1,"modal-title"],[1,"pt-3","cursor-pointer",3,"click"],[1,"icon-cross"],[1,"mb-0"],[1,"modal-body","text-start"],[1,"modal-footer"],[1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary","px-5",3,"click"],[3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","isDeleteModal","confirmed","canceled"],["alertmodal",""]],template:function(o,a){1&o&&(e.YNc(0,Tl,1,0,null,0),e.YNc(1,wl,6,12,"app-alert-modal",1)),2&o&&(e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[U.F,p.O5,p.rS],styles:[".dialog-header[_ngcontent-%COMP%]   .icon-cross[_ngcontent-%COMP%]{display:inline-block;width:15px;height:15px;background:url(icon-cross.0f62594714b28d07.jpeg) no-repeat center center;background-size:contain;vertical-align:middle}"]}),i})();function El(i,s){1&i&&e._UZ(0,"app-skeleton",7)}function Al(i,s){1&i&&e._UZ(0,"app-skeleton",14)}function yl(i,s){1&i&&(e.TgZ(0,"div",15),e._UZ(1,"app-skeleton",16)(2,"app-skeleton",14),e.qZA())}function Sl(i,s){if(1&i&&(e.TgZ(0,"div",8)(1,"div",2),e._UZ(2,"app-skeleton",9)(3,"app-skeleton",10),e.qZA(),e.TgZ(4,"div",4),e.YNc(5,Al,1,0,"app-skeleton",11),e.qZA(),e.TgZ(6,"div",12),e.YNc(7,yl,3,0,"div",13),e.qZA()()),2&i){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.togglePills),e.xp6(2),e.Q6J("ngForOf",t.togglePills)}}let Ln=(()=>{const s=class{constructor(){this.followerRows=Array(4),this.togglePills=Array(5)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-notifications-skeleton"]],standalone:!0,features:[e.jDz],decls:8,vars:2,consts:[[1,"skeleton-section"],[1,"skeleton-follower-row","skeleton-header-row"],[1,"skeleton-follower-info"],["className","h-20 w-300 r-4 c-post"],[1,"skeleton-follower-toggles"],["className","h-14 w-44 r-4 c-post",4,"ngFor","ngForOf"],["class","skeleton-follower-row",4,"ngFor","ngForOf"],["className","h-14 w-44 r-4 c-post"],[1,"skeleton-follower-row"],["className","h-40 w-40 r-50% c-post"],["className","h-16 w-120 r-4 c-post"],["className","h-24 w-44 r-12 c-post",4,"ngFor","ngForOf"],[1,"skeleton-follower-mobile"],["class","skeleton-mobile-toggle-row",4,"ngFor","ngForOf"],["className","h-24 w-44 r-12 c-post"],[1,"skeleton-mobile-toggle-row"],["className","h-14 w-80 r-4 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1)(3,"div",2),e._UZ(4,"app-skeleton",3),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,El,1,0,"app-skeleton",5),e.qZA()(),e.YNc(7,Sl,8,2,"div",6),e.qZA()),2&o&&(e.xp6(6),e.Q6J("ngForOf",a.togglePills),e.xp6(1),e.Q6J("ngForOf",a.followerRows))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-header-row[_ngcontent-%COMP%]{padding-bottom:16px}.skeleton-header-row[_ngcontent-%COMP%]   .skeleton-follower-toggles[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-header-row[_ngcontent-%COMP%]   .skeleton-follower-toggles[_ngcontent-%COMP%]{display:flex}}.skeleton-follower-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:22px 0}.skeleton-follower-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.skeleton-follower-toggles[_ngcontent-%COMP%]{display:none;gap:16px}@media (min-width: 992px){.skeleton-follower-toggles[_ngcontent-%COMP%]{display:flex}}.skeleton-follower-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}@media (min-width: 992px){.skeleton-follower-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-mobile-toggle-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:10px}"]}),i})();function Il(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",7),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",8),e._uU(6,"Notifications"),e.qZA()()}}const Zn=function(i){return{"icon-liteicon-black-tick":i}};
1function kl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",11)(1,"div",21)(2,"div",22)(3,"h3"),e._uU(4,"RECEIVE ACTIVITY NOTIFICATIONS ON MY POSTS"),e.qZA(),e.TgZ(5,"div",23)(6,"div",24)(7,"label",25),e._uU(8," New comments on my posts "),e._UZ(9,"input",26)(10,"span",27),e.qZA()(),e.TgZ(11,"label",28)(12,"input",29),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setNotification(o,"new_comment_on_post"))}),e.qZA(),e._UZ(13,"span",30),e.qZA()(),e.TgZ(14,"div",23)(15,"div",24)(16,"label",25),e._uU(17," New reactions on my posts "),e._UZ(18,"input",26)(19,"span",27),e.qZA()(),e.TgZ(20,"label",28)(21,"input",29),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.setNotification(o,"new_reaction_on_post"))}),e.qZA(),e._UZ(22,"span",30),e.qZA()()()()()}if(2&i){const t=e.oxw(3);e.xp6(9),e.Q6J("checked",null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_comment_on_post),e.xp6(1),e.Q6J("ngClass",e.VKq(6,Zn,null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_comment_on_post)),e.xp6(2),e.Q6J("checked",null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_comment_on_post),e.xp6(6),e.Q6J("checked",null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_reaction_on_post),e.xp6(1),e.Q6J("ngClass",e.VKq(8,Zn,null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_reaction_on_post)),e.xp6(2),e.Q6J("checked",null==t.userProfile||null==t.userProfile.notifications?null:t.userProfile.notifications.new_reaction_on_post)}}function Dl(i,s){if(1&i&&e._UZ(0,"img",40),2&i){const t=e.oxw().$implicit;e.Q6J("originalUrl",null==t||null==t.following_user?null:t.following_user.profile_image_url)("src",null==t||null==t.following_user?null:t.following_user.profile_image_url,e.LSH)("format","webp")}}function Nl(i,s){1&i&&e._UZ(0,"em",41)}const Ll=function(i){return{"notification-switch-column-small":i}};function Zl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",42)(1,"span",43),e._uU(2),e.qZA(),e.TgZ(3,"label",28)(4,"input",29),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw().$implicit,g=e.oxw(4);return e.KtG(g.changeNotificationInfo(o,l.following_user,null==l?null:l.notification_settings,r.type))}),e.qZA(),e._UZ(5,"span",30),e.qZA()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(3,Ll,2===n||3===n)),e.xp6(2),e.hij("",t.label,":"),e.xp6(2),e.Q6J("checked",!0===(null==o?null:o.notification_settings[t.type]))}}function Fl(i,s){if(1&i&&(e.TgZ(0,"div",33)(1,"div",34)(2,"div",35),e.YNc(3,Dl,1,3,"img",36),e.YNc(4,Nl,1,0,"em",37),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.ALo(7,"titlecase"),e.ALo(8,"titlecase"),e.qZA()(),e.TgZ(9,"div",38),e.YNc(10,Zl,6,5,"div",39),e.qZA()()),2&i){const t=s.$implicit,n=e.oxw(4);e.xp6(3),e.Q6J("ngIf",null==t||null==t.following_user?null:t.following_user.profile_image_url),e.xp6(1),e.Q6J("ngIf",!(null!=t&&null!=t.following_user&&t.following_user.profile_image_url)),e.xp6(2),e.AsE(" ",e.lcZ(7,5,null==t||null==t.following_user?null:t.following_user.first_name)," ",e.lcZ(8,7,null==t||null==t.following_user?null:t.following_user.last_name)," "),e.xp6(4),e.Q6J("ngForOf",n.notificationSettings)}}function Ul(i,s){if(1&i&&(e.TgZ(0,"div",31),e.YNc(1,Fl,11,9,"div",32),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.getFollowingData)}}function Bl(i,s){if(1&i&&(e.TgZ(0,"div",44),e._UZ(1,"app-circle-background-icon",45),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.messages.NO_FOLLOWERS)}}function Rl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",46),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.seeMoreFollowers())}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(2),e.Oqu(t.messages.SEE_MORE)}}
1function ql(i,s){if(1&i&&(e.TgZ(0,"div",9),e.YNc(1,kl,23,10,"div",10),e.TgZ(2,"div",11)(3,"div",12)(4,"div"),e._uU(5),e._UZ(6,"app-info-icon",13),e.qZA(),e.TgZ(7,"div",14)(8,"p",15),e._uU(9),e.qZA(),e.TgZ(10,"p",15),e._uU(11),e.qZA(),e.TgZ(12,"p",16),e._uU(13),e.qZA(),e.TgZ(14,"p",16),e._uU(15),e.qZA(),e.TgZ(16,"p",15),e._uU(17),e.qZA()()(),e.YNc(18,Ul,2,1,"div",17),e.TgZ(19,"div",18),e.YNc(20,Bl,4,1,"div",19),e.qZA(),e.YNc(21,Rl,3,1,"div",20),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.isCreator&&(!(null!=t.userProfile&&t.userProfile.is_white_label)||(null==t.userProfile?null:t.userProfile.is_host_owner))),e.xp6(4),e.hij(" ",t.messages.RECEIVE_NOTIFICATIONS_FROM_FOLLOWERS," "),e.xp6(1),e.Q6J("message",t.messages.RECEIVE_NOTIFICATION_MESSAGE),e.xp6(3),e.Oqu(t.messages.ACTIVITY),e.xp6(2),e.Oqu(t.messages.BROWSER),e.xp6(2),e.Oqu(t.messages.EMAIL),e.xp6(2),e.Oqu(t.messages.SMS),e.xp6(2),e.Oqu(t.messages.NEWSLETTER),e.xp6(1),e.Q6J("ngIf",null==t.getFollowingData?null:t.getFollowingData.length),e.xp6(2),e.Q6J("ngIf",!(null!=t.getFollowingData&&t.getFollowingData.length)),e.xp6(1),e.Q6J("ngIf",(null==t.getTotalFollowingData?null:t.getTotalFollowingData.length)>t.followerListLimit)}}function Gl(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,Il,7,0,"div",3),e.YNc(2,ql,22,11,"div",4),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading)}}function Yl(i,s){1&i&&e._UZ(0,"app-notifications-skeleton")}let Jl=(()=>{const s=class{constructor(n,o,a,r,l,g){this.router=n,this.store=o,this.apiCallService=a,this.cs=r,this.modalService=l,this.headerFooterStateService=g,this.getFollowingData=[],this.getTotalFollowingData=[],this.isCreator=!1,this.messages=se.X3,this.followerListLimit=10,this.notificationSettings=[{type:"activity",label:this.messages.ACTIVITY},{type:"browser",label:this.messages.BROWSER},{type:"email",label:this.messages.EMAIL},{type:"sms",label:this.messages.SMS},{type:"newsletter",label:this.messages.NEWSLETTER}],this.destroy$=new q.x,this.isLoading=!0}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.subscription=this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.isCreator=this.userProfile?.is_creator,this.userProfile?.email&&this.getFollowersData()}))}getFollowersData(){const o=new URLSearchParams({isNotification:"true"}).toString(),a=`${x.$_.followersList(this.userProfile.gsi4pk)}?${o}`;this.isLoading=!0,this.apiCallService.get(a,!0).subscribe({next:r=>{r.status&&(this.getTotalFollowingData=r.data,this.getFollowingData=r.data.slice(_.Mx.ZERO,this.followerListLimit)),this.isLoading=!1},error:r=>{this.cs.showErrorMessage(r.message),this.isLoading=!1}})}setNotification(n,o){this.apiCallService.put(x.Y9.users,{notifications:this.setNotificationType(o,n.target.checked)},!0).subscribe(a=>{a.status?this.cs.showSuccessMessage(a.message):this.cs.showErrorMessage(a.message)},a=>{this.cs.showErrorMessage(a.message)})}setNotificationType(n,o){const a=Object.assign({...this.userProfile});switch(n){case"email_notifications":const r={email_notifications:o};return this.setDispatcher({...a.notifications,...r}),{...a.notifications,...r};case"subscription_notification":const l={subscription_notification:o};return this.setDispatcher({...a.notifications,...l}),{...a.notifications,...l};case"new_comment_on_post":const g={new_comment_on_post:o};return this.setDispatcher({...a.notifications,...g}),{...a.notifications,...g};case"new_reaction_on_post":const h={new_reaction_on_post:o};return this.setDispatcher({...a.notifications,...h}),{...a.notifications,...h};case"new_post_of_followers":const b={new_post_of_followers:o};return this.setDispatcher({...a.notifications,...b}),{...a.notifications,...b};default:return{...a.notifications,...r}}}setDispatcher(n){const o={...this.userProfile};o.notifications=n,this.store.dispatch(new Pt.me(o))}moveToDashboard(){this.router.navigate(["dashboard"])}ngOnDestroy(){this.subscription?.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}seeMoreFollowers(){this.router.navigate([X.dp.NOTIFICATION_FOLLOWING],{queryParams:{email:this.userProfile.email}})}changeNotificationInfo(n,o,a,r){const l=Object.assign({userDetails:o,enable:n.target.checked,notificationSettings:a,notificationType:r});this.modalRef=this.modalService.show(Nn,{initialState:l,backdrop:"static"}),this.modalRef.onHide.subscribe(g=>{"success"===g?r===In.Z8.NEWSLETTER.toLowerCase()?this.getNewsletterData(n.target.checked,o):this.getFollowersData():n.target.checked=!n.target.checked})}getNewsletterData(n,o){const a={creator_id:o?.gsi4pk};let r=x.Y9.newsletterSubscribe,l="post";n||(r=x.Y9.newsletterUnsubscribe,a.recipient_id=this.userProfile?.gsi4pk,l="put"),this.apiCallService[l](r,a,!0).subscribe({next:g=>{this.cs.showSuccessMessage(g.message)},error:g=>{this.cs.showErrorMessage(g.message)}})}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(le.yh),e.Y36(N.F),e.Y36(A.v),e.Y36(k.tT),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-notifications"]],decls:2,vars:2,consts:[["class","inside-container preference-container",4,"ngIf"],[4,"ngIf"],[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container"],["class","walletform-content",4,"ngIf"],[1,"walletform-content"],[1,"walletform-title","d-flex","align-center","justify-content-between"],[1,"n
1otification-hint-icon",3,"message"],[1,"notification-columns"],[1,"notification-column"],[1,"notification-column-small"],["class","allowContent",4,"ngIf"],[1,"col-12"],["class","not-found-pane card-not-found",4,"ngIf"],["class","allowContent-seeMore",3,"click",4,"ngIf"],[1,"allowContent","notifications-content"],[1,"preference-privacy-events","m-0"],[1,"preference-privacy-row"],[1,"preference-notifcation-left"],[1,"custom-checkbox"],["type","checkbox","disabled","",3,"checked"],[1,"not-a-robot-checkmark","checkmark","checkmark-lg","rounded",3,"ngClass"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"allowContent"],["class","preference-privacy-row preference-privacy-allow",4,"ngFor","ngForOf"],[1,"preference-privacy-row","preference-privacy-allow"],[1,"preference-privacy-image"],[1,"profileImage"],["appDisableRightClick","","appMobileOptimization","","alt","Profile","loading","lazy","decoding","async",3,"originalUrl","src","format",4,"ngIf"],["class","icon-litesingle_profile",4,"ngIf"],[1,"notification-switches"],["class","notification-switch-column",3,"ngClass",4,"ngFor","ngForOf"],["appDisableRightClick","","appMobileOptimization","","alt","Profile","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"icon-litesingle_profile"],[1,"notification-switch-column",3,"ngClass"],[1,"d-md-none","d-block","mr-40"],[1,"not-found-pane","card-not-found"],["icomoonClassName","icon-litenouser_icon"],[1,"allowContent-seeMore",3,"click"]],template:function(o,a){1&o&&(e.YNc(0,Gl,3,2,"div",0),e.YNc(1,Yl,1,0,"app-notifications-skeleton",1)),2&o&&(e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading))},dependencies:[p.mk,p.sg,p.O5,ke.e,ce.l,Ze.m,De.z,Ne.J,Ln,p.rS],styles:[".mr-25[_ngcontent-%COMP%]{margin-right:25px}.mr-40[_ngcontent-%COMP%]{margin-right:40px}.mr-60[_ngcontent-%COMP%]{margin-right:60px}@media (max-width: 767px){.mr-60[_ngcontent-%COMP%]{margin:0}}.notification-columns[_ngcontent-%COMP%]{display:none}@media (min-width: 768px){.notification-columns[_ngcontent-%COMP%]{display:flex;align-items:center}}.notification-column[_ngcontent-%COMP%]{width:100px;text-align:center}.notification-column-small[_ngcontent-%COMP%]{width:60px;text-align:center}.notification-switches[_ngcontent-%COMP%]{display:block}@media (min-width: 768px){.notification-switches[_ngcontent-%COMP%]{display:flex;align-items:center}}.notification-switch-column[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media (min-width: 768px){.notification-switch-column[_ngcontent-%COMP%]{width:100px;justify-content:center}}.notification-switch-column-small[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media (min-width: 768px){.notification-switch-column-small[_ngcontent-%COMP%]{width:60px;justify-content:center}}.checkmark[_ngcontent-%COMP%]{display:flex!important;align-items:center;justify-content:center}.checkmark[_ngcontent-%COMP%]:after{display:none!important}.checkmark.icon-liteicon-black-tick[_ngcontent-%COMP%]:before{line-height:0;font-size:10px;color:var(--configButtonTextColor)}@media (min-width: 992px){.checkmark.icon-liteicon-black-tick[_ngcontent-%COMP%]:before{font-size:12px}}.profileImage[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:var(--configBgColor)!important}.profileImage[_ngcontent-%COMP%]   .icon-litesingle_profile[_ngcontent-%COMP%]:before{color:#09c6da;font-size:14px}  .notification-hint-icon .message{text-transform:none}.loader-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:450px}"]}),i})();function Vl(i,s){1&i&&e._UZ(0,"app-skeleton",5)}let Fn=(()=>{const s=class{constructor(){this.pills=Array(12)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-interests-skeleton"]],standalone:!0,features:[e.jDz],decls:6,vars:1,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-20 w-250 r-4 c-post"],[1,"skeleton-pills"],["className","h-36 w-120 r-18 c-post",4,"ngFor","ngForOf"],["className","h-36 w-120 r-18 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.TgZ(4,"div",3),e.YNc(5,Vl,1,0,"app-skeleton",4),e.qZA()()),2&o&&(e.xp6(5),e.Q6J("ngForOf",a.pills))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-heading[_ngcontent-%COMP%]{margin-bottom:20px}.skeleton-pills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px}"]}),i})();function Wl(i,s){1&i&&e._UZ(0,"app-interests-skeleton")}
1function Hl(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",6)(1,"a",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",8),e._uU(3,"\xd7"),e.qZA()(),e._uU(4," Edit My Interests "),e.qZA()}}function Ql(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"label")(1,"input",16),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(3);return e.KtG(l.onCategory(o,r))}),e.qZA(),e.TgZ(2,"span",17),e._uU(3),e.qZA()()}if(2&i){const t=s.$implicit;e.xp6(1),e.Q6J("value",null==t?null:t.sk)("checked",null==t?null:t.isHashTag),e.xp6(2),e.Oqu(null==t?null:t.name)}}function Kl(i,s){1&i&&(e.TgZ(0,"p",18),e._uU(1," * Category is Required "),e.qZA())}function zl(i,s){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),e._uU(4," What are your Interests? (Select as many as you like): "),e.qZA(),e.TgZ(5,"div",13),e.YNc(6,Ql,4,3,"label",14),e.YNc(7,Kl,2,0,"p",15),e.qZA()()()()),2&i){const t=e.oxw(2);e.xp6(6),e.Q6J("ngForOf",t.hashTagList),e.xp6(1),e.Q6J("ngIf",t.isClicked&&0===t.selectedHashTags.length)}}function $l(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",19)(1,"button",20),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.updateCategory())}),e._uU(2," Update "),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("disabled",0===t.selectedHashTags.length)}}function jl(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,Hl,5,0,"div",3),e.YNc(2,zl,8,2,"div",4),e.YNc(3,$l,3,1,"div",5),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading)}}let Xl=(()=>{const s=class{constructor(n,o,a,r,l){this.store=n,this.cs=o,this.apiCallService=a,this.router=r,this.headerFooterStateService=l,this.selectedHashTags=[],this.hashTagList=[],this.isMax=!1,this.isClicked=!1,this.onFirstLoad=!0,this.lastEvaluatedKeyHashTags={pk:"",sk:"",gsi1pk:"",gsi1sk:""},this.destroy$=new q.x,this.isLoading=!0}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.subscription=this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.userProfile?.email&&this.onFirstLoad&&(this.getHashTags(),this.onFirstLoad=!1)}),this.clearInterval=setInterval(()=>{this.isMax=!1},_.Mx.FIVE_THOUSAND))}getHashTags(){this.subscription=this.apiCallService.get(x.Y9.getHashtagList,!0).subscribe({next:n=>{n.status?(n.data.sort((o,a)=>(void 0!==o?.sequence_number?o.sequence_number:1/0)-(void 0!==a?.sequence_number?a.sequence_number:1/0)),this.hashTagList=n.data,this.lastEvaluatedKeyHashTags=n.LastEvaluatedKey,this.setDefaultHashTags()):this.cs.showErrorMessage(n.message),this.isLoading=!1},error:n=>{this.cs.showErrorMessage(n.message),this.isLoading=!1}})}setDefaultHashTags(){this.selectedHashTags=[...this.userProfile?.content_creator||[]],this.hashTagList?.forEach(n=>{this.selectedHashTags?.forEach(o=>{n.sk===o.sk&&(n.isHashTag=!0)})})}onCategory(n,o){if(n.target.checked){const r=this.hashTagList.find(l=>l.sk===o.sk);this.selectedHashTags.push(Object.assign({name:r?.name,pk:r.pk,sk:r.sk}))}else{this.isMax=!1;const r=this.selectedHashTags.findIndex(l=>l.sk===o.sk);this.selectedHashTags.splice(r,_.Mx.ONE)}}updateCategory(){this.selectedHashTags.length?this.apiCallService.put(x.Y9.users,{content_creator:this.selectedHashTags},!0).subscribe({next:n=>{if(n.status){const o=Object.assign({...this.userProfile});o.content_creator=this.selectedHashTags,this.store.dispatch(new Pt.me(o)),this.router.navigate(["/dashboard"])}else this.cs.showErrorMessage(n.message)},error:n=>{this.cs.showErrorMessage(n.message)}}):this.isClicked=!0}hashtagPagination(){this.lastEvaluatedKeyHashTags.pk&&this.lastEvaluatedKeyHashTags.sk&&(this.subscription=this.apiCallService.get(x.$_.adminHashTags(this.cs.encodeToUTF(this.lastEvaluatedKeyHashTags.pk),this.cs.encodeToUTF(this.lastEvaluatedKeyHashTags.sk),this.cs.encodeToUTF(this.lastEvaluatedKeyHashTags.gsi1pk),this.cs.encodeToUTF(this.lastEvaluatedKeyHashTags.gsi1sk)),!0).subscribe({next:n=>{n&&n.status&&(this.hashTagList=[...this.hashTagList,...n.data],this.hashTagList=[...new Map(this.hashTagList.map(o=>[o.sk,o])).values()],this.lastEvaluatedKeyHashTags=n.LastEvaluatedKey)},error:()=>{}}))}moveToDashboard(){this.router.navigate(["dashboard"])}ngOnDestroy(){clearInterval(this.clearInterval),this.subscription?.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(A.v),e.Y36(N.F),e.Y36(O.F0),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-edit-content-category"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","inside-container",4,"ngIf"],[1,"inside-container"],["class","inside-header",4,"ngIf"],["class","walletform-container",4,"ngIf"],["class","form-group-btn wide-btn mt-30 mobile-update-btn",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"walletform-container"],[1,"walletform-content"],[1,"form-group","mt-0"],["for","",1,"mb-4","pb-2"],[1,"form-categories"],[4,"ngFor","ngForOf"],["class","alert-dang pt-2",4,"ngIf"],["type","checkbox",3,"value","checked","change"],[1,"active"],[1,"alert-dang","pt-2"],[1,"form-group-btn","wide-btn","mt-30","mobile-update-btn"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(o,a){1&o&&(e.YNc(0,Wl,1,0,"app-interests-skeleton",0),e.YNc(1,jl,4,3,"div",1)),2&o&&(e.Q6J("ngIf",a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.sg,p.O5,Fn],styles:[".mt-30[_ngcontent-%COMP%]{margin-top:30px}"]}),i})();var Un=d(25610),ec=d(87674),Bn=d(20708),ln=d(53742),tc=d(32335),$e=d.n(tc);function nc(i,s){1&i&&(e.TgZ(0,"div",10),e._UZ(1,"app-skeleton",11)(2,"app-skeleton",12)(3,"div",13)(4,"app-skeleton",14),e.qZA())}function oc(i,s){if(1&i&&(e.TgZ(0,"div",6)(1,"div",7),e._UZ(2,"app-skeleton",8),e.qZA(),e.YNc(3,nc,5,0,"div",9),e.qZA()),2&i){const t=e.oxw();e.xp6(3),e.Q6J("ngForOf",t.questions)}}let Rn=(()=>{const s=class{constructor(){this.cards=Array(2),this.questions=Array(2)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-creator-types-skeleton"]],standalone:!0,features:[e.jDz],decls:7,vars:1,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-20 w-250 r-4 c-post"],[1,"skeleton-subtitle"],["className","h-14 w-100% r-4 c-post"],["class","skeleton-card",4,"ngFor","ngForOf"],[1,"skeleton-card"],[1,"skeleton-card-header"],["className","h-18 w-200 r-4 c-bgt"],["class","skeleton-question",4,"ngFor","ngForOf"],[1,"skeleton-question"],["className","h-14 w-80 r-4 c-post"],["className","h-14 w-70% r-4 c-post"],[1,"skeleton-question-divider"],["className","h-14 w-40% r-4 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"app-skeleton",4),e.qZA(),e.YNc(6,oc,4,1,"div",5),e.qZA()),2&o&&(e.xp6(6),e.Q6J("ngForOf",a.cards))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-heading[_ngcontent-%COMP%]{margin-bottom:12px}.skeleton-subtitle[_ngcontent-%COMP%]{margin-bottom:24px}.skeleton-card[_ngcontent-%COMP%]{background:var(--configBgColor);border-radius:16px;padding:20px;margin-top:16px}.skeleton-card-header[_ngcontent-%COMP%]{margin-bottom:16px}.skeleton-question[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:12px;padding:16px;margin-top:12px;display:flex;flex-direction:column;gap:10px}.skeleton-question-divider[_ngcontent-%COMP%]{border-top:1px solid var(--configPostTextColor);opacity:.15}"]}),i})();function ic(i,s){1&i&&e._UZ(0,"app-creator-types-skeleton")}function ac(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",6)(1,"a",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",8),e._uU(3,"\xd7"),e.qZA()(),e._uU(4," Edit My Creator Type "),e.qZA()}}function sc(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",22)(2,"div",23)(3,"h4"),e._uU(4),e.qZA(),e.TgZ(5,"div",24)(6,"a",25),e.NdJ("click",function(){const o=e.CHM(t),a=o.index,r=o.$implicit,l=e.oxw().index,g=e.oxw().$implicit,h=e.oxw(3);return e.KtG(h.editSubCategory(l,a,r,g))}),e._UZ(7,"em",26),e.qZA()(),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.TgZ(10,"div",27),e._uU(11),e.qZA()()(),e.BQk()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(5);e.xp6(4),e.hij("Question ",n+1,""),e.xp6(5),e.Oqu(null==t?null:t.question),e.xp6(2),e.hij(" ",o.getSubCatName(t)," ")}}function rc(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",18)(2,"div",19)(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"a",20),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw().$implicit,l=e.oxw(3);return e.KtG(l.deleteCategory(a,null==r?null:r.category_name,null==r?null:r.sk))}),e._UZ(6,"em",21),e.qZA()(),e.YNc(7,sc,12,3,"ng-container",17),e.qZA(),e.BQk()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(),a=o.index,r=o.$implicit,l=e.oxw(3);e.xp6(4),e.lnq(" ",l.Fields.CREATOR_TYPE," ",l.getIndex(a,n),": ",null==r?null:r.category_name," "),e.xp6(3),e.Q6J("ngForOf",t)}}function lc(i,s){if(1&i&&(e.ynx(0),e.YNc(1,rc,8,4,"ng-container",17),e.BQk()),2&i){const t=s.$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.options)}}function cc(i,s){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div",14),e._uU(6," Select what Type of Creator you are: "),e.qZA(),e.TgZ(7,"p",15),e._uU(8),e.qZA(),e.TgZ(9,"div",16),e.YNc(10,lc,2,1,"ng-container",17),e.qZA()()()()()()),2&i){const t=e.oxw(2);e.xp6(8),e.hij(" ",t.EDIT_CREATOR_NOTE," "),e.xp6(2),e.Q6J("ngForOf",t.newObject)}}function dc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",28)(1,"div",29)(2,"button",30),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.updateCategory())}),e._uU(3," Submit "),e.qZA(),e.TgZ(4,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.addAnotherCategory())}),e._uU(5," Add Another Creator Type "),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("disabled",0===t.newObject.length),e.xp6(2),e.Q6J("disabled",(null==t.newObject?null:t.newObject.length)>=5)}}function pc(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,ac,5,0,"div",3),e.YNc(2,cc,11,2,"div",4),e.YNc(3,dc,6,2,"div",5),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",t.userProfile.is_creator)}}let gc=(()=>{const s=class{constructor(n,o,a,r,l,g){this.store=n,this.cs=o,this.modalService=a,this.apiCallService=r,this.router=l,this.headerFooterStateService=g,this.Fields=M.Iv,this.categoryList=[],this.subCategoryList=new Map,this.subscriptionList=[],this.destroy$=new q.x,this.existingCreaterTypes=[],this.newObject=[],this.isLoading=!0,this.subCatAfterEdit=[]}ngOnInit(){if(this.cs.isBrowser){this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.EDIT_CREATOR_NOTE=ln.G;
1const n=this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.userProfile=o,this.setTaxonomyData()});this.subscriptionList.push(n),this.categoryObservable()}}setTaxonomyData(){this.userProfile?.gsi4pk&&this.apiCallService.get(x.$_.getTaxonomyByUserId(this.userProfile?.gsi4pk),!0).subscribe(n=>{n.status&&(n?.category?.forEach(o=>{"sub_category"in n?.category&&(o.options=$e()(o,"options")&&o.options?.length>0?o.options:[[]],n.sub_category.forEach(a=>{o.sk===a.category_id&&o.options[0].push(a)}))}),this.userProfile.user_category=n.category,n.user_category=n.category,n&&Array.isArray(n?.user_category)&&(this.newObject=[...n?.user_category],this.newObject.forEach(o=>{const a=o.options.reduce((r,l)=>{const g=l.map(b=>b?.tempSK||b?.sk).join(""),h=`${o?.sk}${g}`;return this.existingCreaterTypes.includes(h)||r.push(h),r},[]);this.existingCreaterTypes.push(...a)}))),this.isLoading=!1},n=>{this.isLoading=!1})}getSubCatName(n){return n?.tempCategory_name?n?.tempCategory_name:n?.category_name}createNewObject(n){let o=this.newObject.find(a=>a?.sk===n?.category?.sk);if(n?.subCategory?.length)if(o){const a=n?.subCategory?.[n.subCategory.length-1]?.pk,r=[...n?.subCategory];let l=-1;l=o.options.findIndex(g=>g.some(h=>h.pk===a)),l>-1?o.options[l]=r:o.options?.[0]?.length?o.options.push(r):o.options[0]=r}else{let a={...n.category,options:[]};a.options.push([...n?.subCategory]),this.newObject.push({...a})}}saveSelections(n,o){n.subCategory.forEach(a=>o+=a?.tempSK?a?.tempSK:a.sk),this.existingCreaterTypes.push(o),this.createNewObject(n),this.closeModalSub?.unsubscribe()}updateSelections(n,o,a,r,l){let g=this.newObject?.find(b=>b.sk===a.sk),h=g?.options?.[n];h=h?.filter((b,w)=>w<o&&b),h?.push(...this.subCatAfterEdit),h?.forEach(b=>r+=b?.tempSK?b?.tempSK:b.sk),this.checkDuplicateCategory(r)?this.cs.showErrorMessage(ln.d):(this.existingCreaterTypes=this.removeKey(l),this.existingCreaterTypes.push(r),g.options[n]=h),h=[],this.subCatAfterEdit=[],this.Subs?.unsubscribe(),this.closeModalSub?.unsubscribe()}categoryObservable(){this.cs.setEditMode(!1),this.cs.setSelectedCategories([],!0),this.categorySubs=this.cs.getSelectedCategory().subscribe(n=>{if(n.length){let o={category:n?.length?n[0]:{},subCategory:[]},a=""+(n?.length?n[0].sk:"");n?.length&&0===n[0].total_level_count?this.checkDuplicateCategory(a)?this.cs.showErrorMessage(ln.d):(this.existingCreaterTypes.push(a),this.createNewObject(o)):(this.cs.selectedSubCategory.next([]),this.subCatSub=this.cs.selectedSubCategory.subscribe(r=>{if(r?.length){if(o.subCategory.push({...r[0]}),r?.length>1){let l=""+r[0].sk,g=""+r[0].category_name;const h=[];r.forEach((b,w)=>{w>0&&(l+=b.sk,g+=" , "+b.category_name,o.subCategory[o.subCategory.length-1][b.category_name+"SK"]=b.sk,o.subCategory[o.subCategory.length-1][b.category_name+"PK"]=b.pk,o.subCategory[o.subCategory.length-1][b.category_name+"category_id"]=b.category_id),h.push({pk:b.pk,sk:b.sk})}),o.subCategory[o.subCategory.length-1]={...o.subCategory[o.subCategory.length-1],tempSK:l.split("").sort().join(""),tempCategory_name:g,multiselected_subcategories:h}}this.cs.isLastLevelReached()&&this.saveSelections(o,a)}}),this.closeModalSub?.unsubscribe(),this.closeModalSub=this.cs.subCategoryModalClosed.subscribe(r=>{r&&!this.cs.editMode.value&&(this.saveSelections(o,a),this.cs.subCategoryModalClosed.next(!1))}))}}),this.subscriptionList.push(this.categorySubs)}checkDuplicateCategory(n){return this.existingCreaterTypes.some(o=>o===n)}addAnotherCategory(){this.categorySubs?.unsubscribe(),this.subCatSub?.unsubscribe(),this.closeModalSub?.unsubscribe(),this.categoryObservable();const n=Object.assign({pk:"",sk:"",name:"",isEdit:!1,isLoggedIn:!0});this.modalService.show(Un.O,{initialState:n,class:"modal-lg"})}editCategory(n){this.modalService.show(Un.O,{initialState:{pk:n.pk,sk:n.sk,name:n.category_name,isEdit:!0},backdrop:"static"})}editSubCategory(n,o,a,r){this.cs.setEditMode(!0);let l=""+r.sk;r.options[n].forEach(b=>l+=b?.tempSK?b?.tempSK:b.sk);let g=""+r.sk;this.Subs?.unsubscribe(),this.cs.editEmit.next([]),this.Subs=this.cs.editEmit.subscribe({next:b=>{if(b.length){if(this.subCatAfterEdit?.[this.subCatAfterEdit.length-1]?.category_name!==b[0].category_name&&this.subCatAfterEdit.push({...b[0]}),b?.length>1){let w=""+b[0].sk;const L=[];let j=""+b[0].category_name;b.forEach((W,ee)=>{ee>0&&(w+=W.sk,j+=" , "+W.category_name,this.subCatAfterEdit[this.subCatAfterEdit.length-1][W.category_name+"SK"]=W.sk,this.subCatAfterEdit[this.subCatAfterEdit.length-1][W.category_name+"PK"]=W.pk,this.subCatAfterEdit[this.subCatAfterEdit.length-1][W.category_name+"category_id"]=W.category_id),L.push({pk:W.pk,sk:W.sk})}),this.subCatAfterEdit[this.subCatAfterEdit.length-1]={...this.subCatAfterEdit[this.subCatAfterEdit.length-1],tempSK:w.split("").sort().join(""),tempCategory_name:j,multiselected_subcategories:L}}if(this.cs.isLastLevelReached())return this.updateSelections(n,o,r,g,l),void this.cs.setEditMode(!1);this.closeModalSub?.unsubscribe(),this.closeModalSub=this.cs.subCategoryModalClosed.subscribe(w=>{w&&this.cs.editMode.value&&(this.updateSelections(n,o,r,g,l),this.cs.setEditMode(!1),this.cs.subCategoryModalClosed.next(!1))})}},error:b=>{this.cs.showErrorMessage(b.message)}}),this.modalService.show(ec.$,{initialState:{index:o,pk:a.pk,sk:a.sk,name:a.category_name,mainCategory:r.category_name,isEdit:!0,isLoggedIn:!0,question:a.question,levelCount:a.level_count,is_next:a.is_next,totalLevelCount:r.total_level_count,category_id:a?.category_id},backdrop:"static",class:"modal-lg"})}deleteCategory(n,o,a){if(n.length>_.Mx.ZERO){const r=this.modalService.show(Bn.$,{initialState:n[0]?.mainCategory,backdrop:"static"}),l=r.onHidden.subscribe(g=>{if("yes"===g){let h=""+a;
1n.forEach(w=>h+=w?.tempSK?w?.tempSK:w.sk);let b=this.newObject.find(w=>w.sk===n[0]?.category_id);b.options=b.options.filter(w=>JSON.stringify(w)!==JSON.stringify(n)),b.options.length===_.Mx.ZERO&&(this.newObject=this.newObject.filter(w=>w.sk!==b.sk)),this.taskAfterDeletion(h)}else r.hide()});this.subscriptionList.push(l)}else{const r=this.modalService.show(Bn.$,{initialState:o,backdrop:"static"}),l=r.onHidden.subscribe(g=>{"yes"===g?(this.newObject=this.newObject.filter(h=>h.category_name!==o),this.taskAfterDeletion(a)):r.hide()});this.subscriptionList.push(l)}}removeKey(n){return this.existingCreaterTypes.filter(o=>o!==n)}getIndex(n,o){return(0,de.rw)(n,o,this.newObject)}taskAfterDeletion(n){this.existingCreaterTypes=this.removeKey(n),this.userProfile.user_category=this.newObject}updateCategory(){const n={...this.userProfile},o=[],a=[];if(Array.isArray(o)&&Array.isArray(a))for(const l of o)l?.sk&&(l.subCategory=a.filter(g=>g.category_id===l.sk).sort((g,h)=>g.level_count-h.level_count));n.category=o,n.sub_category=a;const r=this.apiCallService.put(x.Y9.users,{category:this.newObject,sub_category:a,user_category:this.newObject},!0).subscribe({next:l=>{l.status?(this.store.dispatch(new Pt.me(n)),this.router.navigate(["/dashboard"])):this.cs.showErrorMessage(l.message)},error:l=>{this.cs.showErrorMessage(l.message)}});this.subscriptionList.push(r)}moveToDashboard(){this.router.navigate(["dashboard"])}ngOnDestroy(){this.subscriptionList.forEach(n=>n?.unsubscribe?.()),this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(A.v),e.Y36(k.tT),e.Y36(N.F),e.Y36(O.F0),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-edit-creator-types"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","inside-container",4,"ngIf"],[1,"inside-container"],["class","inside-header",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],["class","walletform-bottom mt-30",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"walletform-container","preference-privacy-container"],[1,"walletform-content"],[1,"onboarding"],[1,"onboarding-card"],[1,"onboarding-content"],[1,"onboarding-step"],[1,"onboarding-note"],[1,"onboarding-data"],[4,"ngFor","ngForOf"],[1,"onboardingCardEdit"],[1,"onboardingCardEdit-head"],[1,"pointer",3,"click"],[1,"icon-delete-filled"],[1,"onboardingCardEdit-body"],[1,"onboardingCardEdit-question"],[1,"onboardingCardEdit-action"],[3,"click"],[1,"icon-res-editfill"],[1,"answer"],[1,"walletform-bottom","mt-30"],[1,"onboarding-content-btn","creator-btn"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"btn","btn-primary","mt-0",3,"disabled","click"]],template:function(o,a){1&o&&(e.YNc(0,ic,1,0,"app-creator-types-skeleton",0),e.YNc(1,pc,4,3,"div",1)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.sg,p.O5,Rn],styles:[".mt-30[_ngcontent-%COMP%]{margin-top:30px}@media screen and (max-width: 767px){.creator-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:left;gap:8px;margin:0 12px}}"]}),i})();function _c(i,s){1&i&&(e.TgZ(0,"div",3),e._UZ(1,"app-skeleton",4),e.TgZ(2,"div",5),e._UZ(3,"app-skeleton",6),e.qZA()())}function uc(i,s){1&i&&(e.TgZ(0,"div",7)(1,"div",8),e._UZ(2,"app-skeleton",9)(3,"app-skeleton",10),e.qZA(),e._UZ(4,"app-skeleton",11),e.qZA())}let qn=(()=>{const s=class{constructor(){this.rowsOnly=!1,this.userRows=Array(4)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-block-users-skeleton"]],inputs:{rowsOnly:"rowsOnly"},standalone:!0,features:[e.jDz],decls:3,vars:4,consts:[[1,"skeleton-section"],["class","skeleton-title",4,"ngIf"],["class","skeleton-user-row",4,"ngFor","ngForOf"],[1,"skeleton-title"],["className","h-16 w-64 r-4 c-post"],[1,"skeleton-search"],["className","h-40 w-100% r-20 c-post"],[1,"skeleton-user-row"],[1,"skeleton-user-info"],["className","h-30 w-30 r-50% c-post"],["className","h-14 w-120 r-4 c-post"],["className","h-24 w-44 r-12 c-post"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e.YNc(1,_c,4,0,"div",1),e.YNc(2,uc,5,0,"div",2),e.qZA()),2&o&&(e.ekj("skeleton-section--rows-only",a.rowsOnly),e.xp6(1),e.Q6J("ngIf",!a.rowsOnly),e.xp6(1),e.Q6J("ngForOf",a.userRows))},dependencies:[p.ez,p.sg,p.O5,ie._],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:20px 30px 40px}}.skeleton-section--rows-only[_ngcontent-%COMP%]{background:transparent;border-radius:0;padding:0;margin:0}.skeleton-title[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid color-mix(in srgb,var(--configPostTextColor) 12%,transparent)}.skeleton-search[_ngcontent-%COMP%]{width:100%;
1max-width:200px}.skeleton-user-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:22px 0}@media (min-width: 992px){.skeleton-user-row[_ngcontent-%COMP%]{padding:0;margin:26px 0 0}}.skeleton-user-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}"]}),i})();const mc=["alertModal"],fc=function(){return["/edit-preference/privacy"]};function hc(i,s){1&i&&(e.TgZ(0,"div",8)(1,"a",9),e._UZ(2,"em",10),e.qZA(),e._uU(3," Blocked Users "),e.qZA()),2&i&&(e.xp6(1),e.Q6J("routerLink",e.DdM(1,fc)))}function Cc(i,s){1&i&&e._UZ(0,"app-block-users-skeleton")}function bc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",18)(1,"span"),e._uU(2,"Users"),e.qZA(),e.TgZ(3,"div",19),e._UZ(4,"span",20),e.TgZ(5,"div",21)(6,"input",22),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.searchObj.text=o)})("keyup",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.searchUser())}),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Q6J("ngModel",t.searchObj.text)}}function vc(i,s){1&i&&e._UZ(0,"app-block-users-skeleton",23),2&i&&e.Q6J("rowsOnly",!0)}function xc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",26)(1,"div",27)(2,"div",28),e._UZ(3,"img",29),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.qZA()(),e.TgZ(6,"p"),e._uU(7),e.qZA(),e.TgZ(8,"label",30)(9,"input",31),e.NdJ("ngModelChange",function(o){const r=e.CHM(t).$implicit;return e.KtG(r.isSelected=o)})("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(3);return e.KtG(l.openConfirmPopup(r,o))}),e.qZA(),e._UZ(10,"span",32),e.qZA()()}if(2&i){const t=s.$implicit;e.xp6(3),e.Q6J("originalUrl",t.blocked_user.profile_image_url||"")("src",t.blocked_user.profile_image_url||"",e.LSH)("format","webp"),e.xp6(2),e.AsE(" ",t.blocked_user.first_name," ",t.blocked_user.last_name," "),e.xp6(2),e.Oqu(t.reason),e.xp6(2),e.Q6J("ngModel",t.isSelected)}}function Pc(i,s){if(1&i&&(e.TgZ(0,"div",24),e.YNc(1,xc,11,7,"div",25),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.blockUserList)}}function Oc(i,s){1&i&&e._UZ(0,"app-loader")}function Mc(i,s){1&i&&(e.TgZ(0,"div",33),e._UZ(1,"app-circle-background-icon",34),e.TgZ(2,"p"),e._uU(3,"You are not blocking any users."),e.qZA()())}function Tc(i,s){if(1&i&&(e.TgZ(0,"div",11)(1,"div",12),e.YNc(2,bc,7,1,"div",13),e.YNc(3,vc,1,1,"app-block-users-skeleton",14),e.YNc(4,Pc,2,1,"div",15),e.YNc(5,Oc,1,0,"app-loader",5),e.TgZ(6,"div",16),e.YNc(7,Mc,4,0,"div",17),e.qZA()()()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.isFirstSearch||t.blockUserList.length),e.xp6(1),e.Q6J("ngIf",t.isSearchLoading),e.xp6(1),e.Q6J("ngIf",!t.apiCalled&&t.blockUserList.length),e.xp6(1),e.Q6J("ngIf",t.loadmoreLoader),e.xp6(2),e.Q6J("ngIf",!t.apiCalled&&!t.blockUserList.length)}}function wc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-alert-modal",35,36),e.NdJ("confirmed",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.unblockUser())})("canceled",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.closeModal())}),e.TgZ(2,"div"),e._uU(3),e.qZA()()}if(2&i){const t=e.oxw();e.Q6J("headerLabel",t.Fields.UNBLOCK)("cancelBtnLabel",t.Fields.NO)("confirmBtnLabel",t.Fields.YES)("showCrossBtn",!1),e.xp6(3),e.AsE(" Are you sure you want to unblock ",null==t.currSelectedUser||null==t.currSelectedUser.blocked_user?null:t.currSelectedUser.blocked_user.first_name," ",null==t.currSelectedUser||null==t.currSelectedUser.blocked_user?null:t.currSelectedUser.blocked_user.last_name,"? ")}}let Ec=(()=>{const s=class{get isInitialLoading(){return this.apiCalled&&!this.loadmoreLoader&&this.isFirstSearch}get isSearchLoading(){return this.apiCalled&&!this.loadmoreLoader&&!this.isFirstSearch}constructor(n,o,a){this.apiCallService=n,this.cs=o,this.document=a,this.blockUserList=[],this.apiCalled=!0,this.Fields=M.Iv,this.searchObj={text:""},this.isFirstSearch=!0}ngOnInit(){this.cs.isBrowser&&this.getBlockUserList(!0)}openModal(){this.alertModal?.openModal()}searchUser(){(this.searchObj.text.trim().length>_.Mx.TWO||!this.searchObj.text.trim().length)&&(this.subscription?.unsubscribe(),this.getBlockUserList(!1))}getBlockUserList(n,o=!1){let a;if(this.isFirstSearch=n,this.apiCalled=!0,this.loadmoreLoader=o,o){const r=this.cs.encodeToUTF(this.nextPage.pk),l=this.cs.encodeToUTF(this.nextPage.sk);a=`${x.Y9.usersBlockList}?search_value=${this.searchObj.text}&last_evaluated_key_pk=${r}&last_evaluated_key_sk=${l}`}else a=`${x.Y9.usersBlockList}?search_value=${this.searchObj.text}`;this.subscription=this.apiCallService.get(a,n).subscribe({next:r=>{this.apiCalled=!1,this.loadmoreLoader=!1,r.status?(this.nextPage=r?.LastEvaluatedKey||null,this.blockUserList=o?[...this.blockUserList,...r.data]:r.data,this.blockUserList.forEach(l=>{l.isSelected=!0})):(this.blockUserList=[],this.cs.showWarningMessage(r.message))},error:r=>{this.apiCalled=!1,this.loadmoreLoader=!1,this.cs.showErrorMessage(r.message)}})}onScroll(){this.cs.isBrowser&&(window.innerHeight+window.scrollY>=this.document.body.offsetHeight&&!this.emitted?(this.emitted=!0,this.nextPage&&this.getBlockUserList(!1,!0)):window.innerHeight+window.scrollY<this.document.body.offsetHeight&&(this.emitted=!1))}openConfirmPopup(n,o){this.currSelectedUser=n,this.currCheckbox=o,this.openModal()}closeModal(){this.currCheckbox.target.checked=!0}unblockUser(){this.apiCallService.put(`${x.Y9.unblockUser}/${this.currSelectedUser.blocked_user.gsi4pk}`,{},!0).subscribe({next:n=>{n.status?(this.cs.showSuccessMessage("User unblocked successfully"),this.handleUnblockResponse()):(this.currCheckbox.target.checked=!this.currCheckbox.target.checked,this.cs.showWarningMessage(n.message))},error:n=>{this.currCheckbox.target.checked=!this.currCheckbox.target.checked,this.cs.showErrorMessage(n.message)}})}handleUnblockResponse(){this.cs.userBlockListUpdated.next(!0);const n=this.blockUserList.findIndex(o=>o.blocked_user.email===this.currSelectedUser.blocked_user.email);n!==_.Mx.MINUS_ONE&&this.blockUserList.splice(n,_.Mx.ONE)}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(A.v),e.Y36(p.K0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-block-users"]],viewQuery:function(o,a){if(1&o&&e.Gf(mc,5),2&o){let r;e.iGM(r=e.CRH())&&(a.alertModal=r.first)}},hostBindings:function(o,a){1&o&&e.NdJ("scroll",function(l){return a.onScroll(l)},!1,e.Jf7)},decls:8,vars:4,consts:[[1,"main-wrapper","container","mt-0"],[1,"main-content"],[1,"inner-content"],[1,"inside-container","preference-container"],["class","inside-header d-flex",4,"ngIf"],[4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],["dynamicClass","blocked-users",3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","confirmed","canceled",4,"ngIf"],[1,"inside-header","d-flex"],[3,"routerLink"],[1,"icon-arrow-back"],[1,"walletform-container","preference-privacy-container"],[1,"walletform-content","walletform-contentwithSearch"],["class","walletform-title",4,"ngIf"],[3,"rowsOnly",4,"ngIf"],["class","allowContent",4,"ngIf"],[1,"col-12"],["class","not-found-pane card-not-found",4,"ngIf"],[1,"walletform-title"],[1,"search-bar"],[1,"search-icon"],[1,"form-inner"],["type","text","placeholder","Search by Name",3,"ngModel","ngModelChange","keyup"],[3,"rowsOnly"],[1,"allowContent"],["class","preference-privacy-row preference-privacy-allow",4,"ngFor","ngForOf"],[1,"preference-privacy-row","preference-privacy-allow"],[1,"preference-privacy-image"],[1,"profileImage"],["appDisableRightClick","","appMobileOptimization","","alt","ic-profile","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"switch"],["type","checkbox",3,"ngModel","ngModelChange","change"],[1,"slider"],[1,"not-found-pane","card-not-found"],["icomoonClassName","icon-liteblock-user_icon"],["dynamicClass","blocked-users",3,"headerLabel","cancelBtnLabel","confirmBtnLabel","showCrossBtn","confirmed","canceled"],["alertModal",""]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,hc,4,2,"div",4),e.YNc(5,Cc,1,0,"app-block-users-skeleton",5),e.YNc(6,Tc,8,5,"div",6),e.qZA()()()(),e.YNc(7,wc,4,6,"app-alert-modal",7)),2&o&&(e.xp6(4),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",!a.cs.isBrowser||a.isInitialLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser&&!a.isInitialLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.sg,p.O5,u.Fj,u.Wl,u.JJ,u.On,U.F,Ke.R,Me.mh,Ze.m,De.z,Ne.J,O.rH,qn],styles:[".blocked-users .modal-footer{gap:0px!important}"]}),i})();function Ac(i,s){if(1&i&&(e.TgZ(0,"div",24)(1,"div",25)(2,"p",26),e._uU(3),e.qZA(),e.TgZ(4,"p",26),e._uU(5),e.qZA(),e.TgZ(6,"p",26),e._uU(7),e.qZA(),e.TgZ(8,"p"),e._uU(9),e.qZA()()()),2&i){const t=e.oxw(4);e.xp6(3),e.Oqu(t.messages.ACTIVITY),e.xp6(2),e.Oqu(t.messages.BROWSER),e.xp6(2),e.Oqu(t.messages.EMAIL),e.xp6(2),e.Oqu(t.messages.SMS)}}function yc(i,s){if(1&i&&e._UZ(0,"img",34),2&i){const t=e.oxw().$implicit;e.Q6J("originalUrl",null==t?null:t.profile_image)("src",null==t?null:t.profile_image,e.LSH)("format","webp")}}function Sc(i,s){1&i&&e._UZ(0,"em",35)}function Ic(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"label",36)(1,"input",37),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(4);return e.KtG(r.switchBasicInfo(o,a))}
1),e.qZA(),e._UZ(2,"span",38),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("checked",!0===(null==t?null:t.consent))}}const kc=function(i){return{"mr-60":i}};function Dc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",41)(1,"span",42),e._uU(2),e.qZA(),e.TgZ(3,"label",43)(4,"input",37),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(2).$implicit,g=e.oxw(4);return e.KtG(g.changeNotificationInfo(o,l,null==l?null:l.notification_settings,r.type))}),e.qZA(),e._UZ(5,"span",38),e.qZA()()}if(2&i){const t=s.$implicit,n=s.last,o=e.oxw(2).$implicit;e.xp6(2),e.hij(" ",t.label,": "),e.xp6(1),e.Q6J("ngClass",e.VKq(3,kc,!n)),e.xp6(1),e.Q6J("checked",!0===(null==o||null==o.notification_settings?null:o.notification_settings[t.type]))}}function Nc(i,s){if(1&i&&(e.TgZ(0,"div",39),e.YNc(1,Dc,6,5,"div",40),e.qZA()),2&i){const t=e.oxw(5);e.xp6(1),e.Q6J("ngForOf",t.notificationSettings)}}function Lc(i,s){if(1&i&&(e.TgZ(0,"div",27)(1,"div",28)(2,"div",29),e.YNc(3,yc,1,3,"img",30),e.YNc(4,Sc,1,0,"em",31),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA()(),e.YNc(7,Ic,3,1,"label",32),e.YNc(8,Nc,2,1,"div",33),e.qZA()),2&i){const t=s.$implicit,n=e.oxw(4);e.xp6(3),e.Q6J("ngIf",null==t?null:t.profile_image),e.xp6(1),e.Q6J("ngIf",!(null!=t&&t.profile_image)),e.xp6(2),e.AsE(" ",null==t?null:t.first_name," ",null==t?null:t.last_name," "),e.xp6(1),e.Q6J("ngIf",!n.fromNotifications),e.xp6(1),e.Q6J("ngIf",n.fromNotifications)}}function Zc(i,s){if(1&i&&(e.TgZ(0,"div",21),e.YNc(1,Ac,10,4,"div",22),e.YNc(2,Lc,9,6,"div",23),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.fromNotifications),e.xp6(1),e.Q6J("ngForOf",t.getSharingDataInfo)}}function Fc(i,s){1&i&&e._UZ(0,"app-loader")}function Uc(i,s){if(1&i&&(e.TgZ(0,"div",44),e._UZ(1,"app-circle-background-icon",45),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.messages.NO_USERS_FOUND)}}const Gn=function(i){return[i]};function Bc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"a",7),e._UZ(4,"em",8),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"div",9)(7,"div",10)(8,"div",11)(9,"span"),e._uU(10),e.qZA(),e.TgZ(11,"div",12),e._UZ(12,"span",13),e.TgZ(13,"div",14)(14,"input",15,16),e.NdJ("keyup",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.searchUser(o))}),e.qZA()()()(),e.YNc(16,Zc,3,2,"div",17),e.TgZ(17,"div",18),e.YNc(18,Fc,1,0,"app-loader",19),e.YNc(19,Uc,4,1,"div",20),e.qZA()()()()()}if(2&i){const t=e.oxw(2);e.xp6(3),e.Q6J("routerLink",t.fromNotifications?e.VKq(7,Gn,t.appRoutingUrls.PREFERENCE_NOTIFICATION):e.VKq(9,Gn,t.appRoutingUrls.PREFERENCE_PRIVACY)),e.xp6(2),e.hij(" ",t.fromNotifications?t.messages.RECEIVE_NOTIFICATIONS_FROM_FOLLOWERS:t.messages.ALLOW_SHARING_BASIC_INFO," "),e.xp6(5),e.AsE(" ",t.messages.CREATORS," (",t.totalSharingCount,") "),e.xp6(6),e.Q6J("ngIf",null==t.getSharingDataInfo?null:t.getSharingDataInfo.length),e.xp6(2),e.Q6J("ngIf",t.isLoading),e.xp6(1),e.Q6J("ngIf",!(t.isLoading||null!=t.getSharingDataInfo&&t.getSharingDataInfo.length))}}function Rc(i,s){if(1&i&&(e.TgZ(0,"div",1)(1,"div",2),e.YNc(2,Bc,20,11,"div",3),e.qZA()()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.userObject.is_white_label||t.userObject.is_host_owner)}}let Yn=(()=>{const s=class{constructor(n,o,a,r,l,g){this.apiCallService=n,this.modalService=o,this.cs=a,this.activatedRoute=r,this.store=l,this.document=g,this.getSharingDataInfo=[],this.searchData="",this.timeout=null,this.email="",this.emitted=!1,this.currentPage=1,this.hasNextPage=!1,this.pageLimit=20,this.userObject={},this.isLoading=!1,this.fromNotifications=!1,this.messages=se.X3,this.appRoutingUrls=X.dp,this.notificationSettings=[{type:"activity",label:this.messages.ACTIVITY},{type:"browser",label:this.messages.BROWSER},{type:"email",label:this.messages.EMAIL},{type:"sms",label:this.messages.SMS}],this.destroy$=new q.x,this.totalSharingCount=0}ngOnInit(){this.cs.isBrowser&&(this.fromNotifications=X.dp.NOTIFICATION_FOLLOWING.includes(this.activatedRoute.snapshot.url.toString()),this.activatedRoute.queryParams.subscribe(n=>{n&&n.email&&(this.email=n.email,this.cs.isBrowser&&this.userProfile())}))}
1userProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userObject=n,this.userObject?.gsi4pk&&this.getSharingData(this.searchData)})}getSharingData(n){this.currentPage=1,this.hasNextPage=!1,this.isLoading=!0,this.getSharingDataInfo=[],this.totalSharingCount=0;const o={page:"1",limit:String(this.pageLimit)};n&&(o.search=n),this.fromNotifications&&(o.isNotification="true");const a=new URLSearchParams(o).toString();this.apiCallService.get(`${x.Y9.consentSharedByMe}?${a}`,!1).subscribe({next:l=>{l.status&&(this.getSharingDataInfo=l.data,this.hasNextPage=l.hasNextPage,this.currentPage=l.page,this.totalSharingCount=l.total||0),this.isLoading=!1},error:l=>{this.cs.showErrorMessage(l.message),this.isLoading=!1}})}searchUser(n){this.searchData=n.target.value,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.getSharingData(n.target.value)},_.Mx.FIVE_HUNDRED)}makeLazyLoad(){const o={page:String(this.currentPage+1),limit:String(this.pageLimit)};this.searchData&&(o.search=this.searchData),this.fromNotifications&&(o.isNotification="true");const a=new URLSearchParams(o).toString(),r=`${x.Y9.consentSharedByMe}?${a}`;this.isLoading=!0,this.apiCallService.get(r,!1).subscribe(l=>{l.status&&(this.getSharingDataInfo=[...this.getSharingDataInfo,...l.data],this.hasNextPage=l.hasNextPage,this.currentPage=l.page),this.isLoading=!1},l=>{this.cs.showErrorMessage(l.message),this.isLoading=!1})}onScroll(){this.cs.isBrowser&&(window.innerHeight+window.scrollY>=this.document.body.offsetHeight&&!this.emitted?(this.emitted=!0,this.hasNextPage&&this.makeLazyLoad()):window.innerHeight+window.scrollY<this.document.body.offsetHeight&&(this.emitted=!1))}switchBasicInfo(n,o){const a=Object.assign({userDetails:{gsi4pk:o.gsi4pk,first_name:o.first_name,last_name:o.last_name},is_restricted:n.target.checked});this.modalService.show(Pe,{initialState:a,backdrop:"static"}).onHide.subscribe(l=>{if("success"===l){const g=this.getSharingDataInfo?.findIndex(h=>h.gsi4pk===o.gsi4pk);-1!==g&&(this.getSharingDataInfo[g].consent=n.target.checked)}else n.target.checked=!n.target.checked})}changeNotificationInfo(n,o,a,r){const l=Object.assign({userDetails:{gsi4pk:o.gsi4pk,first_name:o.first_name,last_name:o.last_name},enable:n.target.checked,notificationSettings:a,notificationType:r});this.modalService.show(Nn,{initialState:l,backdrop:"static"}).onHide.subscribe(h=>{"success"===h?this.getSharingData(this.searchData):n.target.checked=!n.target.checked})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(k.tT),e.Y36(A.v),e.Y36(O.gz),e.Y36(le.yh),e.Y36(p.K0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-basic-see-more"]],hostBindings:function(o,a){1&o&&e.NdJ("scroll",function(l){return a.onScroll(l)},!1,e.Jf7)},decls:1,vars:1,consts:[["class","main-wrapper container mt-0",4,"ngIf"],[1,"main-wrapper","container","mt-0"],[1,"main-content"],["class","inner-content",4,"ngIf"],[1,"inner-content"],[1,"inside-container","preference-container"],[1,"inside-header","d-flex"],[3,"routerLink"],[1,"icon-arrow-back"],[1,"walletform-container","preference-privacy-container"],[1,"walletform-content","walletform-contentwithSearch"],[1,"walletform-title"],[1,"search-bar"],[1,"search-icon"],[1,"form-inner"],["type","text","placeholder","Search by Name",3,"keyup"],["searchInput",""],["class","allowContent",4,"ngIf"],[1,"col-12"],[4,"ngIf"],["class","not-found-pane card-not-found",4,"ngIf"],[1,"allowContent"],["class","walletform-title pb-0 pt-4 d-none d-sm-flex align-center justify-content-end",4,"ngIf"],["class","preference-privacy-row preference-privacy-allow",4,"ngFor","ngForOf"],[1,"walletform-title","pb-0","pt-4","d-none","d-sm-flex","align-center","justify-content-end"],[1,"d-flex","align-center"],[1,"mr-25"],[1,"preference-privacy-row","preference-privacy-allow"],[1,"preference-privacy-image"],[1,"profileImage"],["appDisableRightClick","","appMobileOptimization","","alt","Profile","loading","lazy","decoding","async",3,"originalUrl","src","format",4,"ngIf"],["class","icon-litesingle_profile",4,"ngIf"],["class","switch",4,"ngIf"],["class","d-block d-sm-flex",4,"ngIf"],["appDisableRightClick","","appMobileOptimization","","alt","Profile","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"icon-litesingle_profile"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"d-block","d-sm-flex"],["class","d-flex justify-content-between",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between"],[1,"d-sm-none","d-block","mr-40"],[1,"switch",3,"ngClass"],[1,"n
1ot-found-pane","card-not-found"],["icomoonClassName","icon-litenouser_icon"]],template:function(o,a){1&o&&e.YNc(0,Rc,3,1,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.mk,p.sg,p.O5,Ke.R,Ze.m,De.z,Ne.J,O.rH],styles:[".mr-25[_ngcontent-%COMP%]{margin-right:25px}.mr-40[_ngcontent-%COMP%]{margin-right:40px}.mr-60[_ngcontent-%COMP%]{margin-right:60px}@media (max-width: 575px){.mr-60[_ngcontent-%COMP%]{margin:0}}.profileImage[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:var(--configBgColor)!important}.profileImage[_ngcontent-%COMP%]   .icon-litesingle_profile[_ngcontent-%COMP%]:before{color:#09c6da;font-size:14px}"]}),i})(),Jn=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-nft-wallet-skeleton"]],standalone:!0,features:[e.jDz],decls:10,vars:0,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-60 w-60 r-50% c-post"],["className","h-20 w-200 r-4 c-post"],[1,"skeleton-description"],["className","h-14 w-300 r-4 c-post"],["className","h-14 w-260 r-4 c-post"],[1,"skeleton-button"],["className","h-40 w-200 r-28 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2)(4,"app-skeleton",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"app-skeleton",5)(7,"app-skeleton",6),e.qZA(),e.TgZ(8,"div",7),e._UZ(9,"app-skeleton",8),e.qZA()())},dependencies:[p.ez,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:30px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:40px 30px}}.skeleton-heading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:30px}.skeleton-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:30px}.skeleton-button[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),i})();function qc(i,s){1&i&&e._UZ(0,"app-nft-wallet-skeleton")}const Gc=function(){return["/dashboard"]};function Yc(i,s){1&i&&(e.TgZ(0,"div",6)(1,"a",7)(2,"em",8),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",9),e._uU(6,"NFT Wallet"),e.qZA()()),2&i&&(e.xp6(1),e.Q6J("routerLink",e.DdM(1,Gc)))}function Jc(i,s){1&i&&(e.TgZ(0,"div",25)(1,"p"),e._uU(2," 1. Add the MetaMask extension in your browser (we recommend using Chrome). "),e.qZA(),e.TgZ(3,"p"),e._uU(4," 2. Create or Connect your MetaMask account that contains the NFTs you want to use to unlock content. "),e.qZA(),e.TgZ(5,"p"),e._uU(6," 3. Any locked content that matches the NFTs in your MetaMask Wallet will automatically be unlocked in the feed. "),e.qZA()())}function Vc(i,s){1&i&&(e.TgZ(0,"div",18)(1,"em",19),e._UZ(2,"app-circle-background-icon",20),e.qZA(),e._uU(3," Connect my NFT Wallet "),e.TgZ(4,"div",21)(5,"button",22),e._UZ(6,"em",23),e.qZA(),e.YNc(7,Jc,7,0,"div",24),e.qZA()()),2&i&&(e.xp6(4),e.Q6J("insideClick",!0))}function Wc(i,s){1&i&&(e.TgZ(0,"div",18)(1,"em",19),e._UZ(2,"img",26),e.qZA(),e._uU(3," My MetaMask Wallet "),e.qZA()),2&i&&(e.xp6(2),e.Q6J("originalUrl","../assets/images/svg/ic_metamask.svg")("format","webp"))}function Hc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",27)(1,"p"),e._uU(2,"Link your MetaMask Wallet to access content"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"that has been locked with an NFT by Creators."),e.qZA(),e.TgZ(5,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNFT())}),e._uU(6,"Link my NFT Wallet"),e.qZA()()}}function Qc(i,s){if(1&i&&(e.TgZ(0,"div",29),e._uU(1),e.ALo(2,"slice"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" *** *** ",e.xi3(2,1,null==t.walletData?null:t.walletData.ehereumAddress,-4)," ")}}function Kc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",30)(1,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.addNFT())}),e._uU(2,"Resync"),e.qZA()()}}function zc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",31)(1,"a",32),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.openRemoveDetails(o.ConfirmModal,"NFTs"))}),e._uU(2," Unlink Wallet "),e.qZA()()}}function $c(i,s){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11),e.YNc(2,Vc,8,1,"div",12),e.YNc(3,Wc,4,2,"div",12),e.YNc(4,Hc,7,0,"div",13),e.TgZ(5,"div",14),e.YNc(6,Qc,3,4,"div",15),e.YNc(7,Kc,3,0,"div",16),e.YNc(8,zc,3,0,"div",17),e.qZA()()()),2&i){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!(null!=t.walletData&&t.walletData.ehereumAddress)),e.xp6(1),e.Q6J("ngIf",null==t.
1walletData?null:t.walletData.ehereumAddress),e.xp6(1),e.Q6J("ngIf",!(null!=t.walletData&&t.walletData.ehereumAddress)),e.xp6(2),e.Q6J("ngIf",null==t.walletData?null:t.walletData.ehereumAddress),e.xp6(1),e.Q6J("ngIf",null==t.walletData?null:t.walletData.ehereumAddress),e.xp6(1),e.Q6J("ngIf",null==t.walletData?null:t.walletData.ehereumAddress)}}function jc(i,s){if(1&i&&(e.TgZ(0,"div",3),e.YNc(1,Yc,7,2,"div",4),e.YNc(2,$c,9,6,"div",5),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading)}}function Xc(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",33,34)(2,"div",35)(3,"div",36)(4,"div",37)(5,"div",38),e._uU(6," Are you sure you want to disconnect your MetaMask Wallet? "),e.qZA(),e.TgZ(7,"div",39)(8,"button",40),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1);return e.KtG(o.hide())}),e._uU(9," No "),e.qZA(),e.TgZ(10,"button",41),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1),a=e.oxw();return e.KtG(a.DeleteDetails(o))}),e._uU(11," Yes "),e.qZA()()()()()()}}let ed=(()=>{const s=class{constructor(n,o,a){this._apiCallService=n,this.cs=o,this.headerFooterStateService=a,this.modalType=_.Mx.BLANK,this.showCustoumAmountError=!1,this.showCustomWithdrawalError=!1,this.sendTipValue=null,this.chooseAccount=null,this.chooseWithdrawalAccount="bank",this.sendTipWithdrwalValue=null,this.isLoading=!0,this.succModal={type:"",amount:_.Mx.ZERO}}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.getWalletAmmountData())}getWalletAmmountData(n=!0){this._apiCallService.get(x.Y9.user_Wallet,n).subscribe({next:o=>{o.status?(this.walletData=o.data,this.walletData?.amount&&(this.walletData.amount=this.cs.getExactWalletAmount(this.walletData.amount))):this.cs.showWarningMessage(o.message),this.isLoading=!1},error:o=>{this.cs.showErrorMessage(o.message),this.isLoading=!1},complete:()=>{}})}addNFT(){this.cs.isBrowser&&(window.ethereum?window.ethereum.request({method:"eth_requestAccounts"}).then(n=>{const o=n[_.Mx.ZERO];o?this.setEthereumAddressToUserAccount(o):this.cs.showWarningMessage("Something went wrong")}).catch(n=>{this.cs.showErrorMessage(-32002===n?.code?"Metamask request is already processing, please check metamask extension.":n.message||"Something went wrong")}):this.cs.showWarningMessage("Ethereum metamask is not available in your system"))}setEthereumAddressToUserAccount(n){this._apiCallService.post(x.Y9.setEthereumAddress,{ehereumAddress:n},!0).subscribe({next:o=>{o.status?(this.cs.showSuccessMessage(o.data),this.getWalletAmmountData(!1)):this.cs.showWarningMessage(o.data)},error:o=>{this.cs.showErrorMessage(o.message)}})}openRemoveDetails(n,o){this.modalType=_.Mx.BLANK,this.modalType=o,n.show()}selectAmount(n){this.customAmountAddWallet=_.Mx.BLANK,this.selectedAmmout=n}ValueFromCustomInput(n){n<=_.Mx.ONE_THOUSAND?(this.selectedAmmout=n,this.showCustoumAmountError=X.Oq.FALSE):(this.selectedAmmout=_.Mx.BLANK,this.showCustoumAmountError=X.Oq.TRUE)}saveMoneyToWallet(n,o){if(void 0===this.sourceType||void 0===this.selectedAmmout)return this.cs.showErrorMessage(S.Vm.SELECTE_SOURCE_TYPE);if(this.selectedAmmout===_.Mx.BLANK)return this.cs.showErrorMessage(S.Vm.SELECT_AMMOUNT);const a={source:this.sourceType,amount:Number(this.selectedAmmout),currency:X.i4.usd};this.AddMonyToWallet(a,n,o)}AddMonyToWallet(n,o,a){this._apiCallService.post(x.Y9.addMoneyToWallet,n,!0).subscribe({next:r=>{r.status?(this.getWalletAmmountData(!1),o.hide(),this.succModal.type="add",this.succModal.amount=n.amount,a.show(),this.sourceType=void 0,this.chooseAccount=_.Mx.BLANK,this.selectedAmmout=_.Mx.BLANK,this.customAmountAddWallet=_.Mx.BLANK,this.sendTipValue=null):this.cs.showWarningMessage(r.message)},error:r=>{r.statusCode===_.Mx.FOUR_HUNDRED?this.cs.showWarningMessage(r.message):this.cs.showErrorMessage(r.message)}})}getSourceType(n){this.sourceType=n,this.chooseAccount=n}focusFunction(){this.sendTipValue=null,this.selectedAmmout=_.Mx.BLANK}hideModal(n){n.hide(),this.chooseAccount=_.Mx.BLANK,this.selectedAmmout=_.Mx.BLANK,this.customAmountAddWallet=_.Mx.BLANK,this.sendTipValue=null,this.showCustoumAmountError=!1}DeleteDetails(n){this._apiCallService.delete(x.Y9.removeNFTFromAccount,!0).subscribe({next:a=>{a.status?(n.hide(),this.cs.showSuccessMessage(a.data),this.getWalletAmmountData()):this.cs.showWarningMessage(
1a.message)},error:a=>{this.cs.showErrorMessage(a.message),n.hide()},complete:()=>{}})}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(A.v),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-connect-nft-wallet"]],decls:3,vars:3,consts:[[4,"ngIf"],["class","inside-container preference-container nft-wallet-preference",4,"ngIf"],["bsModal","","class","modal fade","tabindex","-1","role","dialog","aria-labelledby","dialog-sizes-name1",4,"ngIf"],[1,"inside-container","preference-container","nft-wallet-preference"],["class","inside-header",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"routerLink"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container"],[1,"walletform-content","connectNFT-content"],["class","walletform-title",4,"ngIf"],["class","connectNFT-empty",4,"ngIf"],[1,"connectNFT-box"],["class","connectNFT-title",4,"ngIf"],["class","connectNFT-btn",4,"ngIf"],["class","connectNFT-footer",4,"ngIf"],[1,"walletform-title"],[1,"ic-bank"],["icomoonClassName","icon-liteic-nft","backgroundCircleDiameter","60px","backgroundCircleDiameterMobile","60px","iconSize","34px","iconSizeMobile","34px"],["dropdown","",1,"onboarding-validInfo",3,"insideClick"],["dropdownToggle","","type","button",1,"dropdown-toggle"],[1,"icon-liteic-pass-info"],["class","dropdown-menu","role","menu",4,"dropdownMenu"],["role","menu",1,"dropdown-menu"],["appDisableRightClick","","appMobileOptimization","","src","../assets/images/svg/ic_metamask.svg","alt","MetaMask","loading","lazy","decoding","async",3,"originalUrl","format"],[1,"connectNFT-empty"],[1,"btn","btn-primary",3,"click"],[1,"connectNFT-title"],[1,"connectNFT-btn"],[1,"connectNFT-footer"],[1,"decoration-none",3,"click"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","dialog-sizes-name1",1,"modal","fade"],["ConfirmModal","bs-modal"],[1,"modal-dialog"],[1,"modal-content"],[1,"admin-modaldialog","modal
1-basic"],[1,"modal-body"],[1,"modal-footer"],[1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary","px-5",3,"click"]],template:function(o,a){1&o&&(e.YNc(0,qc,1,0,"app-nft-wallet-skeleton",0),e.YNc(1,jc,3,2,"div",1),e.YNc(2,Xc,12,0,"div",2)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser))},dependencies:[p.O5,fe.Hz,fe.Mq,fe.TO,ce.l,k.oB,Ze.m,De.z,Ne.J,O.rH,Jn,p.OU],styles:["[_nghost-%COMP%]     .nft-wallet-preference app-circle-background-icon .circle-background-container .circle-background{background-color:#fdd964;border-radius:15px;opacity:.25}[_nghost-%COMP%]     .nft-wallet-preference app-circle-background-icon .circle-background-container .icon-liteic-nft{margin-right:0!important}[_nghost-%COMP%]     .nft-wallet-preference app-circle-background-icon .circle-background-container .icon-liteic-nft:before{color:#fdd964}"]}),i})();var Vn=d(13854),Ve=d(64210);function td(i,s){1&i&&(e.ynx(0),e.TgZ(1,"div",1),e._UZ(2,"router-outlet"),e.qZA(),e.BQk())}let nd=(()=>{const s=class{constructor(n,o,a,r,l,g){this.becomeACreatorService=n,this.router=o,this.apiCallService=a,this.cs=r,this.store=l,this.headerFooterStateService=g,this.applicationStatusEnums=be.gy,this.isBecomeACreatorDataThere=!1,this.destroy$=new q.x,this.userProfileSubscription=this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(h=>{h&&h.sk&&(this.userProfile=h,this.userProfile?.admin_approval_status&&this.userProfile.id_verification_status!==this.applicationStatusEnums.RESUBMIT&&this.router.navigate(["/edit-preference"]))}),this.getCreatorData()}getCreatorData(){this.apiCallService.get(x.Y9.creatorRequest,!0).subscribe({next:n=>{n.status?n?.data?.Item?.cover_img?this.setCreatorData(n?.data?.Item):this.isBecomeACreatorDataThere=!0:this.cs.showErrorMessage(n.message)},error:n=>{this.cs.showErrorMessage(n.message)}})}setCreatorData(n){const o=l=>n?.social_handles?.find(g=>Boolean(g?.[l]))?.[l]||"";this.becomeACreatorService.creatorProfileData.isBecomeACreatorFlowStarted=!0;const a=this.becomeACreatorService.creatorProfileData;a.step1Data.formData||(a.step1Data.formData={});const r=a.step1Data;r.formData={legal_fname:n?.legal_fname,legal_lname:n?.legal_lname,first_name:n?.first_name||n?.legal_fname,last_name:n?.last_name||n?.legal_lname,mobile_number:n?.phone_no||"",publicly_displayed_name:n?.publicly_displayed_name,displayed_creator_name_with_underscore:n?.creator_name||"",twitter_handle:o("twitter").replace(Ve.i.TWITTER_URL,"")||"",facebook_handle:o("facebook").replace(Ve.i.FACEBOOK_URL,"")||"",instagram_handle:o("instagram").replace(Ve.i.INSTAGRAM_URL,"")||"",youtube_handle:o("youtube").replace(Ve.i.YOUTUBE_URL,"")||"",tiktok_handle:o("tiktok").replace(Ve.i.TIKTOK_URL,"")||"",spotify_handle:o("spotify").replace(Ve.i.SPOTIFY_URL,"")||"",linkedin_handle:o("linkedin").replace(Ve.i.LINKEDIN_URL,"")||"",snapchat_handle:o("snapchat").replace(Ve.i.SNAPCHAT_URL,"")||"",website_url:o("website")},r.banner_image_url=r.bannerPreview=n?.cover_img||"",r.profile_image_url=r.profilePreview=n?.profile_img||"",n?.category?.length&&(a.step2Data.creatorTypes=n?.category||[]),this.isBecomeACreatorDataThere=!0}ngOnDestroy(){this.headerFooterStateService.updateState({reTriggerNeeded:!0}),this.userProfileSubscription.unsubscribe(),this.becomeACreatorService.resetCreatorProfileData(),this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Vn.f),e.Y36(O.F0),e.Y36(N.F),e.Y36(A.v),e.Y36(le.yh),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"component"]],template:function(o,a){1&o&&e.YNc(0,td,3,0,"ng-container",0),2&o&&e.Q6J("ngIf",a.userProfile&&a.isBecomeACreatorDataThere&&(!(null!=a.userProfile&&a.userProfile.admin_approval_status)||a.userProfile.id_verification_status===a.applicationStatusEnums.RESUBMIT))},dependencies:[p.O5,O.lC],styles:[".component[_ngcontent-%COMP%]{width:90%;margin:auto;margin-top:1.25rem}@media (min-width: 1366px){[_nghost-%COMP%]     .component{max-width:1280px}}@media (max-width: 995px){[_nghost-%COMP%]     .component{width:100%}}"]}),i})();var od=d(78866),id=d(25221),ad=d(12232),sd=d.n(ad);const rd=function(){return["../confirm-creator"]};function ld(i,s){1&i&&(e.TgZ(0,"a",12),e._UZ(1,"em",13),e.qZA()),2&i&&e.Q6J("routerLink",e.DdM(1,rd))}const dd=function(i,s,t){return{type:"button",label:i,loading:s,disabled:t,class:"btn btn-primary",prefixIconPath:"./../../../../../../../assets/images/svg/shield-tick.svg"}};function pd(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.YNc(2,ld,2,2,"a",3),e.TgZ(3,"h3"),e._uU(4),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"span",6),e._uU(8),e.qZA()(),e.TgZ(9,"h3",7),e._uU(10),e.qZA(),e.TgZ(11,"p",8),e._uU(12),e.qZA(),e.TgZ(13,"p",9),e._uU(14),e.qZA()(),e.TgZ(15,"div",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onIdentityVerification())}),e._UZ(16,"app-button",11),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.isCreatorsHome),e.xp6(2),e.Oqu(t.AUTH_CONSTANTS.APPLY_CREATE_NEW_ACCOUNT),e.xp6(4),e.Oqu(t.isCreatorsHome?t.AUTH_CONSTANTS.STEP_4_4:t.verifyIdentity.STEP_3_OF_3),e.xp6(2),e.Oqu(t.AUTH_CONSTANTS.VERIFY_YOUR_IDENTITY),e.xp6(2),e.Oqu(t.verifyIdentity.DESCRIPTION),e.xp6(2),e.Oqu(t.verifyIdentity.THANKYOU_MSG),e.xp6(2),e.Q6J("btnField",e.kEZ(7,dd,t.verifyIdentity.VERIFY_MY_IDENTITY,t.isVerifying,t.isVerifying))}}let gd=(()=>{const s=class{constructor(n,o,a,r,l,g,h){this.modalService=n,this.router=o,this.becomeACreatorService=a,this.apiCallService=r,this.cs=l,this.uploadService=g,this.route=h,this.verifyIdentity=M.ow,this.isProfileImagesUploadedByUser=!1,this.isBannerImagesUploadedByUser=!1,this.messages=S.Vm,this.applicationEnums=_.Mx,this.AUTH_CONSTANTS=Qe.$X,this.isCreatorsHome=!1,this.destroy$=new q.x,this.isVerifying=!1}ngOnInit(){this.cs.isBrowser&&(this.checkRoute(),this.route.queryParams.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n.creators&&(this.isCreatorsHome=n.creators)}))}checkRoute(){this.becomeACreatorService.creatorProfileData.isBecomeACreatorFlowStarted&&this.becomeACreatorService.creatorProfileData.step2Data.creatorTypes?this.setValues():this.naviagteTo1stStep()}setValues(){this.failureModalField={icon:"./assets/images/svg/red-info-blank.svg",heading:"Identity Verification Failed",description:'Unfortunately, your identity was not able to be verified. <br>
1For this reason we cant evaluate your application to Become a Creator. <br> If you think this is a mistake, please contact <a href="'+Oe.N.websiteURL+'help-faq" target="_blank" class="highlight">Customer Support</a>.',iconStyleClass:"red-bg",buttonField:{type:"button",class:"btn btn-primary",label:"Done"}},this.successModalField={icon:"./assets/images/svg/checkmark-outline.svg",heading:"Your Identity Has Been Verified",description:"The TopFan team will now evaluate your application to Become a Creator and you will typically receive a status update by email within one business day. <br> You can now return to TopFan to continue exploring the community.",iconStyleClass:"confirm-creator-icon-bg",buttonField:{type:"button",class:"btn btn-primary",label:"Done"}},this.pendingModalField={icon:"./assets/images/svg/pending.svg",heading:"Identity Verification in Progress",description:'Once your identity verification completes, a member of our team will evaluate your application to Become a Creator. We try to make determinations within one business day. If you have any questions, please contact <a href="'+Oe.N.websiteURL+'help-faq" target="_blank" class="highlight">Customer&nbsp;Support</a>.',iconStyleClass:"yellow-bg",buttonField:{type:"button",class:"btn btn-primary",label:"Done"}},this.isProfileImagesUploadedByUser=this.becomeACreatorService.creatorProfileData.step1Data.images?.length;const n=this.becomeACreatorService.creatorProfileData.step1Data.images;n?.length&&n[0].folder===_.D4.bannerFolder?(n.unshift([]),this.isBannerImagesUploadedByUser=!0):2===n?.length&&(this.isProfileImagesUploadedByUser=!0,this.isBannerImagesUploadedByUser=!0)}get getBecomeACreatorData(){return this.becomeACreatorService.creatorProfileData}onIdentityVerification(){this.becomeACreatorData=this.getBecomeACreatorData,this.createVeriffSession()}createVeriffSession(){this.becomeACreatorData=this.getBecomeACreatorData;const n=this.becomeACreatorData.step1Data.formData,o=`${x.Y9.createVeriffSession}`,a={firstName:n.first_name,lastName:n.last_name};this.isVerifying=!0,this.apiCallService.post(o,a,!0).subscribe({next:l=>{l.status?this.openVeriffModal(l?.data?.url):this.cs.showErrorMessage(l?.message)},error:l=>{this.cs.showErrorMessage(l.message),this.isVerifying=!1}})}openVeriffModal(n){this.cs.isBrowser&&(window[this.applicationEnums.VERIFF_SDK]?window[this.applicationEnums.VERIFF_SDK].createVeriffFrame({url:n,onEvent:o=>{o===this.applicationEnums.FINISHED?this.creatorRequest():o===this.applicationEnums.CANCELED&&(this.isVerifying=!1)}}):this.cs.showErrorMessage(this.messages.VERIFF_SDK_NOT_AVAILABEL))}creatorRequest(){this.isBannerImagesUploadedByUser||this.isProfileImagesUploadedByUser?this.uploadImages():this.makeCreatorRequest()}uploadImages(){let n=this.becomeACreatorData.step1Data.images;n.forEach((o,a,r)=>{if(sd()(o))return!0;this.uploadService.uploadFile(o).then(()=>{a===r.length-_.Mx.ONE&&this.makeCreatorRequest()}).catch(()=>{n=[],this.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),this.isVerifying=!1})})}makeCreatorRequest(){const n=`${x.Y9.creatorRequest}`,o=this.becomeACreatorService.getBecomeACreatorPayload();this.apiCallService.post(n,o,!0).subscribe({next:r=>{if(r.status){switch(r?.data?.id_verification_status){case M.bR.APPROVED:this.openModal(this.successModalField);break;case M.bR.PENDING:this.openModal(this.pendingModalField);break;default:this.openModal(this.failureModalField)}this.router.navigate(["/edit-preference"])}else this.cs.showErrorMessage(r?.message),this.isVerifying=!1},error:r=>{this.cs.showErrorMessage(r.message),this.isVerifying=!1}})}openModal(n){this.modalService.show(J.S,{initialState:n,class:"modal-lg",backdrop:"static"})}naviagteTo1stStep(){this.router.navigate(["../creator-profile-info"],{relativeTo:this.route})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(k.tT),e.Y36(O.F0),e.Y36(Vn.f),e.Y36(N.F),e.Y36(A.v),e.Y36(Ue.C),e.Y36(O.gz))},s.\u0275cmp=e.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:1,consts:[["class","verify-identity",4,"ngIf"],[1,"verify-identity"],[1,"review-info"],["class","icon-back",3,"routerLink",4,"ngIf"],[1,"step3-card"],[1,"d-flex"],[1,"step1","steps-circle"],[1,"confirm-your-creator-type"],[1,"desc"],[1,"thank-msg"],[1,"verify-btn",3,"click"],[3,"btnField"],[1,"icon-back",3,"routerLink"],[1,"icon-arrow-back"]],template:function(o,a){1&o&&e.YNc(0,pd,17,11,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5,ae.r,O.rH],styles:[".verify-identity[_ngcontent-%COMP%]{width:100%;margin:auto}.review-info[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:2.5rem}.review-info[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.review-info[_ngcontent-%COMP%]   .icon-back[_ngcontent-%COMP%]{font-size:1.5rem}.review-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:auto;font-size:1.5rem}@media (max-width: 767px){.review-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}}.step3-card[_ngcontent-%COMP%]{border-radius:2rem;margin:1.875rem .75rem;background:#000000;padding:1.875rem}@media (max-width: 767px){.step3-card[_ngcontent-%COMP%]{margin:.875rem .75rem;padding:.875rem}}.step-1[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;line-height:1.0256rem;margin-bottom:0rem}.desc[_ngcontent-%COMP%]{line-height:1.5rem;margin-top:1.875rem;margin-bottom:0;font-size:1rem}.thank-msg[_ngcontent-%COMP%]{margin-top:1.875rem;font-size:1rem}  .verify-btn{text-align:center}  .verify-btn app-button button img{margin-top:-2px}@media (max-width: 995px){.review-info[_ngcontent-%COMP%]{margin:0 12px}.review-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500;padding-right:1.25rem}}.confirm-your-creator-type[_ngcontent-%COMP%]{margin-top:20px;font-size:20px;font-weight:700}@media (max-width: 767px){.confirm-your-creator-type[_ngcontent-%COMP%]{text-align:center;font-size:18px}}"]}),i})();var _d=d(82244),ud=d(82946),We=d(18796),Be=d(66747),ve=d(87617);let md=(()=>{const s=class{constructor(n,o){this.cs=n,this.headerFooterStateService=o}ngOnInit(){this.cs.isBrowser&&this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb})}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(A.v),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegation"]],decls:1,vars:0,template:function(o,a){1&o&&e._UZ(0,"router-outlet")},dependencies:[O.lC],styles:["[_nghost-%COMP%]     app-table .avatar-name:has(.desc){flex-wrap:wrap}[_nghost-%COMP%]     app-table .avatar-name:has(.desc) .desc{flex:100%}"]}),i})();const oe={MY_DELEGATES:"MY DELEGATES",DELEGATED_ACCESS:"DELEGATED ACCESS",DELEGATE_DETAILS:"Delegate Details",ADD_NEW:"ADD NEW",ADD_NEW_DELEGATE:"Add New Delegate",EDIT_DELEGATE:"Edit Delegate Details",DELEGATION:"DELEGATION",FILTER_BY:"FILTER BY:",DELEGATE_NOT_FOUND_DESC:"There are Currently No Delegates for Your Account",NEXT:"NEXT",SUBMIT:"SUBMIT",STEP_1:"Step 1 of 2",STEP_2:"Step 2 of 2",DELEGATE_SHARE_PERC:"Delegate Revenue Share Percentages",EXCEED_MSG:"This exceeds the maximum allowable threshold of ",PROFILE_MATCH_FOUND:"Profile Match Found",PROFILE_MATCH_NOT_FOUND:"Existing User Not Found",PROFILE_MATCH_DESC:"This email you entered matches an existing TopFan user.  Please confirm you want to grant delegate access to your account to the person listed below.",PROFILE_NOT_MATCH_DESC:"The email you entered does not match an existing TopFan user. Please confirm if you want to grant delegate access to your account to the person listed below and we will send an email to help onboard them onto TopFan.",CANCEL:"Cancel",CONFIRM:"Confirm",DETAILS:"Details",DELETE_ACCESS:"Are you sure you want to decline this delegation request from",REMOVE_ACCESS:"Decline request",DELET
1E:"Delete",DELETE_DELEGATE:"Delete Delegate",DELETE_MSG:"Are you sure you want to delete this Delegate?",CURRENT_REVENUE_SHARE_PERCENTAGES:"Current Revenue Share Percentages",FINANCIAL:"Financial",CONTENT:"Content",HISTORICAL_REVENUE_SHARE_AMOUNTS:"Historical Revenue Share Amounts",DOWNLOAD_CSV:"Download CSV",TOTAL_REVENUE_SHARE:" Total Revenue Share",LAST_SESSION:"Last Session",DEFAULT_DATE_TIME_FORMAT:"MMM d, y h:mm a",ACTIVE:"Active",PENDING:"Pending",REMOVED:"Removed",DECLINED:"Declined",BACK_TO_DELEGATE_SUMMARY:"BACK TO DELEGATE SUMMARY",VIEW:"View",PENDING_SMALL_CAPS:"pending",ON_HOLD:"on_hold",FAILED_SMALL_CAPS:"failed",FAILED:"Failed",COMPLETED:"Completed",TRANSACTION_TYPE_PURCHASE:"Purchase",PENDING_PAYMENT_INFO:"Your payment is currently on hold. It will be released once 3rd party Veriff verifies your payment. If verification fails, the amount will be refunded to your wallet.",NO_TRANSACTION_HISTORY:"No Transaction History Found",TRANSACTION_HISTORY:"Transaction History",DELEGATE_INFO:"Setup Delegates to allow others (i.e., content agents, managers, financial advisors, etc) to access specified sections of your account and share revenues.",MY_DELEGATES_DESC:"You have granted the following people access to your account:",DELEGATE_ACCESS_DESC:"The following creators have granted you access to their accounts:",CONFIRM_DELEGATE_STATUS_REMOVAL:"Confirm Delegate Status Removal",REMOVE_DELEGATE_MSG:"Are you sure you want to remove yourself as a Delegate from ",DELEGATE_RECIEVE_MSG:"You are recieving the following Revenue Share Percentages:",FINANCIAL_CAPABILITIES_MSG:"You are being granted the following financial capabilities:",CONTENT_CAPABILITIES_MSG:"You are being granted the following content capabilities:",RESEND_INVITE:"Resend Invite",PENDING_WITHDRAWAL_PAYMENT:'Your payment is currently being processed and will be credited to your bank account within 2\u20135 business days. If need further assistance, please contact <a href="'+Oe.N.websiteURL+'help-faq" target="_blank" class="highlight">TopFan&nbsp;Customer&nbsp;Support.</a>',DELEGATE_REFUND:"Delegate Refund",TABLE:{CREATOR_NAME_CLASS:"avatar-name-white"}},fd={FINANCIAL:{VIEW_MY_WALLET_BALANCE:{READ:!1,WRITE:!1},VIEW_TRANSACTION_HISTORY:{READ:!1,WRITE:!1},VIEW_REFERRALS:{READ:!1,WRITE:!1},VIEW_EARNING_METRICS:{READ:!1,WRITE:!1},WITHDRAW_MONEY_TO_MY_BANK_ACCOUNT:{READ:!1,WRITE:!1},ADD_REMOVE_BANK_ACCOUNT_AND_CREDIT_CARD:{READ:!1,WRITE:!1},ADD_FUND_TO_THE_WALLET:{READ:!1,WRITE:!1}},CONTENT:{MAKE_EDIT_FEED_POSTS:{READ:!1,WRITE:!1},MAKE_EDIT_CHAT_ROOM_POSTS:{READ:!1,WRITE:!1},SEND_REPLY_TO_DIRECT_MESSAGES:{READ:!1,WRITE:!1},ADD_EDIT_SUBSCRIPTION_ITEMS:{READ:!1,WRITE:!1},ADD_EDIT_STORE_ITEMS_VIP_OFFERS_AND_EVENTS:{READ:!1,WRITE:!1},VIEW_EARNING_METRICS:{READ:!1,WRITE:!1},MAKE_COMMENTS_ON_FEED_AND_CHAT_ROOMS:{READ:!1,WRITE:!1},VIEW_ENGAGEMENT_METRICS:{READ:!1,WRITE:!1},VIEW_FULFILLMENT_REQUESTS:{READ:!1,WRITE:!1},VIEW_AND_ISSUE_REFUND_REQUESTS:{READ:!1,WRITE:!1},EDIT_MY_PREFERENCES:{READ:!1,WRITE:!1},ACCESS_USER_SEGMENTATION:{READ:!1,WRITE:!1},FAN_MANAGEMENT:{READ:!1,WRITE:!1}}};var hd=d(98038);function Cd(i,s){1&i&&(e.ynx(0),e.TgZ(1,"div",1),e._UZ(2,"app-skeleton",2)(3,"app-skeleton",3),e.qZA(),e.TgZ(4,"div",4)(5,"div",5),e._UZ(6,"app-skeleton",6),e.qZA(),e.TgZ(7,"div",5),e._UZ(8,"app-skeleton",7),e.qZA()(),e.BQk())}function bd(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",8)(2,"div",9)(3,"div",10)(4,"span",11),e._uU(5),e.qZA(),e.TgZ(6,"div",12),e._UZ(7,"app-skeleton",13),e.qZA()(),e._UZ(8,"app-skeleton",14),e.qZA(),e.TgZ(9,"div",15),e._UZ(10,"app-skeleton",16),e.qZA()(),e.BQk()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.consts.FILTER_BY)}}let cn=(()=>{const s=class{constructor(){this.consts=oe,this.section="all"}get showTabs(){return"all"===this.section||"tabs"===this.section}get showControls(){return"all"===this.section||"controls"===this.section}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegation-view-header-skeleton"]],inputs:{section:"section"},standalone:!0,features:[e.jDz],decls:2,vars:2,consts:[[4,"ngIf"],[1,"delegation-tabs-skeleton","delegation-tabs-skeleton--desktop"],["className","h-42 w-130 r-28 c-bgt"],["className","h-42 w-160 r-28 c-bgt"],[1,"delegation-tabs-skeleton","delegation-tabs-skeleton--mobile"],[1,"delegation-tabs-skeleton__item"],["className","h-14 w-100 r-4 c-post"],["className","h-14 w-120 r-4 c-post"],[1,"delegation-controls-skeleton"],[1,"delegation-controls-skeleton__row"],[1,"delegation-controls-skeleton__filter"],["aria-hidden","true",1,"delegation-controls-skeleton__label-spacer"],[1,"delegation-controls-skeleton__dropdown"],["className","h-41 w-100% r-28 c-bgt"],["className","h-41 w-130 r-28 c-bgt"],[1,"delegation-controls-skeleton__description"],["className","h-16 w-90% r-4 c-bgt"]],template:function(o,a){1&o&&(e.YNc(0,Cd,9,0,"ng-container",0),e.YNc(1,bd,11,1,"ng-container",0)),2&o&&(e.Q6J("ngIf",a.showTabs),e.xp6(1),e.Q6J("ngIf",a.showControls))},dependencies:[p.ez,p.O5,ie._],styles:[".delegation-tabs-skeleton--desktop[_ngcontent-%COMP%]{display:none;flex-wrap:wrap;gap:8px;margin-top:30px}@media (min-width: 992px){.delegation-tabs-skeleton--desktop[_ngcontent-%COMP%]{display:flex}}.delegation-tabs-skeleton--mobile[_ngcontent-%COMP%]{display:none;align-items:stretch;width:100%;border-bottom:1px solid rgba(255,255,255,.16);background:var(--configSecondaryBgColor)}@media (max-width: 991px){.delegation-tabs-skeleton--mobile[_ngcontent-%COMP%]{display:flex;position:fixed;top:100px;left:0;right:0;z-index:920;margin-top:-1px}}.delegation-tabs-skeleton__item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:12px 20px 16px}.delegation-tabs-skeleton--mobile[_ngcontent-%COMP%]   .delegation-tabs-skeleton__item[_ngcontent-%COMP%]{padding:14px 20px}.delegation-controls-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;margin:24px 0 0}.delegation-controls-skeleton__row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;width:100%;margin-bottom:24px}.delegation-controls-skeleton__description[_ngcontent-%COMP%]{margin-bottom:24px}.delegation-controls-skeleton__label-spacer[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.875rem;font-weight:500;line-height:1.5rem;visibility:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none}.delegation-controls-skeleton__filter[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;min-width:0}.delegation-controls-skeleton__dropdown[_ngcontent-%COMP%]{width:200
1px;min-width:0}@media (max-width: 480px){.delegation-controls-skeleton__dropdown[_ngcontent-%COMP%]{width:100px}}"]}),i})();function vd(i,s){1&i&&e._UZ(0,"app-preference-mobile-header-skeleton")}function xd(i,s){1&i&&e._UZ(0,"app-delegation-view-header-skeleton",15)}function Pd(i,s){1&i&&(e.TgZ(0,"div",16)(1,"div",7),e._UZ(2,"app-skeleton",17),e.qZA(),e.TgZ(3,"div",9),e._UZ(4,"app-skeleton",17),e.qZA(),e.TgZ(5,"div",10),e._UZ(6,"app-skeleton",17),e.qZA(),e.TgZ(7,"div",11),e._UZ(8,"app-skeleton",17),e.qZA()())}function Od(i,s){1&i&&(e.TgZ(0,"div",18)(1,"div",19),e._UZ(2,"app-skeleton",20),e.TgZ(3,"div",21),e._UZ(4,"app-skeleton",22)(5,"app-skeleton",23),e.qZA()(),e.TgZ(6,"div",24),e._UZ(7,"app-skeleton",25)(8,"app-skeleton",26),e.qZA(),e.TgZ(9,"div",24),e._UZ(10,"app-skeleton",27)(11,"app-skeleton",28),e.qZA(),e.TgZ(12,"div",24),e._UZ(13,"app-skeleton",29)(14,"app-skeleton",26),e.qZA()())}let Wn=(()=>{const s=class{constructor(){this.showMobileHeader=!0,this.showControls=!0,this.parentPadded=!1,this.rows=Array(4)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-my-delegates-skeleton"]],inputs:{showMobileHeader:"showMobileHeader",showControls:"showControls",parentPadded:"parentPadded"},standalone:!0,features:[e.jDz],decls:18,vars:6,consts:[[4,"ngIf"],[1,"skeleton-my-delegates"],["section","controls",4,"ngIf"],[1,"skeleton-table-desktop"],[1,"skeleton-section"],[1,"skeleton-table"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-name"],["className","h-14 w-80% r-4 c-post"],[1,"skeleton-col","col-type"],[1,"skeleton-col","col-status"],[1,"skeleton-col","col-action"],["class","skeleton-row",4,"ngFor","ngForOf"],[1,"skeleton-cards-mobile"],["class","skeleton-card",4,"ngFor","ngForOf"],["section","controls"],[1,"skeleton-row"],["className","h-16 w-70% r-4 c-post"],[1,"skeleton-card"],[1,"skeleton-card-user"],["className","h-40 w-40 r-50% c-post"],[1,"skeleton-card-user-info"],["className","h-14 w-120 r-4 c-post"],["className","h-12 w-160 r-4 c-post"],[1,"skeleton-card-field"],["className","h-14 w-100 r-4 c-post"],["className","h-12 w-40 r-4 c-post"],["className","h-14 w-60 r-4 c-post"],["className","h-12 w-100 r-4 c-post"],["className","h-14 w-50 r-4 c-post"]],template:function(o,a){1&o&&(e.YNc(0,vd,1,0,"app-preference-mobile-header-skeleton",0),e.TgZ(1,"div",1),e.YNc(2,xd,1,0,"app-delegation-view-header-skeleton",2),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),e._UZ(8,"app-skeleton",8),e.qZA(),e.TgZ(9,"div",9),e._UZ(10,"app-skeleton",8),e.qZA(),e.TgZ(11,"div",10),e._UZ(12,"app-skeleton",8),e.qZA(),e.TgZ(13,"div",11),e._UZ(14,"app-skeleton",8),e.qZA()(),e.YNc(15,Pd,9,0,"div",12),e.qZA()()(),e.TgZ(16,"div",13),e.YNc(17,Od,15,0,"div",14),e.qZA()()),2&o&&(e.Q6J("ngIf",a.showMobileHeader),e.xp6(1),e.ekj("skeleton-my-delegates--parent-padded",a.parentPadded),e.xp6(1),e.Q6J("ngIf",a.showControls),e.xp6(13),e.Q6J("ngForOf",a.rows),e.xp6(2),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,p.O5,ie._,pe,cn],styles:[".skeleton-my-delegates[_ngcontent-%COMP%]{padding:0 20px 20px}@media (max-width: 992px){.skeleton-my-delegates[_ngcontent-%COMP%]{padding:0 12px 20px}}.skeleton-my-delegates--parent-padded[_ngcontent-%COMP%]{padding:0 0 20px}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:12px 20px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{border-radius:30px;padding:10px 30px}}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-table[_ngcontent-%COMP%]{width:100%}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:20px 0;border-bottom:1px solid color-mix(in srgb,var(--configPostTextColor) 12%,transparent)}.skeleton-row[_ngcontent-%COMP%]:last-child{border-bottom:0}.skeleton-header[_ngcontent-%COMP%]{padding:26px 0 28px}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}.skeleton-col.col-name[_ngcontent-%COMP%]{width:40%}.skeleton-col.col-type[_ngcontent-%COMP%]{width:20%}.skeleton-col.col-status[_ngcontent-%COMP%]{width:25%}.skeleton-col.col-action[_ngcontent-%COMP%]{width:15%}.skeleton-cards-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media (min-width: 992px){.skeleton-cards-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-card[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:16px}.skeleton-card-user[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.skeleton-card-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.skeleton-card-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-top:12px}"]}),i})();function Md(i,s){1&i&&e._UZ(0,"app-preference-mobile-header-skeleton")}function Td(i,s){1&i&&(e.TgZ(0,"div",15)(1,"div",8),e._UZ(2,"app-skeleton",16),e.qZA(),e.TgZ(3,"div",10),e._UZ(4,"app-skeleton",16),e.qZA(),e.TgZ(5,"div",11),e._UZ(6,"app-skeleton",16),e.qZA()())}function wd(i,s){1&i&&(e.TgZ(0,"div",17)(1,"div",18),e._UZ(2,"app-skeleton",19),e.TgZ(3,"div",20),e._UZ(4,"app-skeleton",21)(5,"app-skeleton",22),e.qZA()(),e.TgZ(6,"div",23),e._UZ(7,"app-skeleton",24)(8,"app-skeleton",25),e.qZA(),e.TgZ(9,"div",23),e._UZ(10,"app-skeleton",26)(11,"app-skeleton",25),e.qZA()())}let Hn=(()=>{const s=class{constructor(){this.showMobileHeader=!0,this.rows=Array(2)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegated-access-skeleton"]],inputs:{showMobileHeader:"showMobileHeader"},standalone:!0,features:[e.jDz],decls:17,vars:3,consts:[[4,"ngIf"],[1,"skeleton-delegated-access"],[1,"skeleton-description"],["className","h-16 w-90% r-4 c-bgt"],[1,"skeleton-table-desktop"],[1,"skeleton-section"],[1,"skeleton-table"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-name"],["className","h-14 w-80% r-4 c-post"],[1,"skeleton-col","col-type"],[1,"skeleton-col","col-action"],["class","skeleton-row",4,"ngFor","ngForOf"],[1,"skeleton-cards-mobile"],["class","skeleton-card",4,"ngFor","ngForOf"],[1,"skeleton-row"],["className","h-16 w-70% r-4 c-post"],[1,"skeleton-card"],[1,"skeleton-card-user"],["className","h-40 w-40 r-50% c-post"],[1,"skeleton-card-user-info"],["className","h-14 w-120 r-4 c-post"],["className","h-12 w-160 r-4 c-post"],[1,"skeleton-card-field"],["className","h-14 w-100 r-4 c-post"],["className","h-12 w-40 r-4 c-post"],["className","h-14 w-50 r-4 c-post"]],template:function(o,a){1&o&&(e.YNc(0,Md,1,0,"app-preference-mobile-header-skeleton",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"app-skeleton",3),e.qZA(),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),e._UZ(9,"app-skeleton",9),e.qZA(),e.TgZ(10,"div",10),e._UZ(11,"app-skeleton",9),e.qZA(),e.TgZ(12,"div",11),e._UZ(13,"app-skeleton",9),e.qZA()(),e.YNc(14,Td,7,0,"div",12),e.qZA()()(),e.TgZ(15,"div",13),e.YNc(16,wd,12,0,"div",14),e.qZA()()),2&o&&(e.Q6J("ngIf",a.showMobileHeader),e.xp6(14),e.Q6J("ngForOf",a.rows),e.xp6(2),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,p.O5,ie._,pe],styles:[".skeleton-delegated-access[_ngcontent-%COMP%]{padding:24px 20px 20px}@media (max-width: 992px){.skeleton-delegated-access[_ngcontent-%COMP%]{padding:24px 12px 20px}}.skeleton-description[_ngcontent-%COMP%]{margin-bottom:24px}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:12px 20px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{border-radius:30px;padding:10px 30px}}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-table[_ngcontent-%COMP%]{width:100%}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:20px 0;border-bottom:1px solid color-mix(in srgb,var(--configPostTextColor) 12%,transparent)}.skeleton-row[_ngcontent-%COMP%]:last-child{border-bottom:0}.skeleton-header[_ngcontent-%COMP%]{padding:26px 0 28px}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}
1.skeleton-col.col-name[_ngcontent-%COMP%], .skeleton-col.col-type[_ngcontent-%COMP%]{width:40%}.skeleton-col.col-action[_ngcontent-%COMP%]{width:20%}.skeleton-cards-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media (min-width: 992px){.skeleton-cards-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-card[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:16px}.skeleton-card-user[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:16px}.skeleton-card-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.skeleton-card-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-top:12px}"]}),i})();var Tt=d(76679),wt=d(52468),Et=d(49767);const Ad=function(i){return{type:"button",class:"btn btn-primary",label:i,prefixIconClass:"icon-newpost-plus"}};function yd(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"div",7),e._uU(3),e.qZA(),e._UZ(4,"app-select",8),e.qZA(),e.TgZ(5,"app-button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.navigateToDetailsPage(null))}),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.consts.FILTER_BY," "),e.xp6(1),e.Q6J("field",t.statusField)("form",t.form),e.xp6(1),e.Q6J("btnField",e.VKq(4,Ad,t.consts.ADD_NEW))}}function Sd(i,s){if(1&i&&(e.TgZ(0,"div",10)(1,"p",11),e._uU(2),e.qZA(),e._UZ(3,"app-table",12),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.consts.MY_DELEGATES_DESC),e.xp6(1),e.Q6J("headers",t.tableHeaders)("rows",t.myDelegatesListing)}}function Id(i,s){if(1&i&&(e.TgZ(0,"div",13),e._UZ(1,"app-circle-background-icon",14),e.TgZ(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"p",15),e._uU(5),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(3),e.Oqu(t.consts.DELEGATE_NOT_FOUND_DESC),e.xp6(2),e.Oqu(t.consts.DELEGATE_INFO)}}function kd(i,s){if(1&i&&(e.TgZ(0,"div",1),e.YNc(1,yd,6,6,"div",2),e.YNc(2,Sd,4,3,"div",3),e.YNc(3,Id,6,2,"div",4),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",!t.isLoading&&t.myDelegatesListing.length>0),e.xp6(1),e.Q6J("ngIf",!t.isLoading&&0===t.myDelegatesListing.length)}}let Dd=(()=>{const s=class{constructor(n,o,a,r,l){this.formService=n,this.cs=o,this.apiCallService=a,this.dataService=r,this.router=l,this.loadingChange=new e.vpe,this.destroy$=new q.x,this.form=null,this.statusField=null,this.consts=oe,this.myDelegatesListing=[],this.sk="",this.isLoading=!1,this.tableHeaders=[{label:"NAME / EMAIL",keyGroup:{src:"user.profile_image_url",firstName:"user.first_name",lastName:"user.last_name",desc:"user.email"},link:!0,width:"w-40 w-m-100",type:Tt.i.AVTARIMAGETEXT,clickEvent:g=>{this.navigateToProfile(g?.user)},hideHeaderLabel:!0},{label:"TYPE",key:"delegate_type",width:"w-20 w-m-100"},{label:"STATUS / LAST SESSION",keyGroup:{status:"status",lastSession:"user.last_session_timestamp"},width:"w-30 w-m-100",type:Tt.i.LAST_SESSION},{label:"ACTION",key:"details",width:"w-10 w-m-100",link:!0,clickEvent:g=>{this.navigateToDetailsPage(g)}}]}ngOnInit(){this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.SELECT,label:"",name:"status_filter",class:"col-12",labelKey:"label",valueKey:"value",options:[{label:"All",value:""},{label:"Active",value:"ACTIVE"},{label:"Pending",value:"PENDING"},{label:"Removed",value:"REMOVED"},{label:"Declined",value:"DECLINED"}]}]}]}),this.form=this.formService.toFormGroup(this.fields),this.statusField=this.formService.getField(this.fields,0,"status_filter"),this.form.get(this.statusField.name).setValue("All"),this.getMyDelegatesListing(),this.subscribeStatusFilter()}subscribeStatusFilter(){const n=this.form.get(this.statusField.name);n?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.getMyDelegatesListing(n.value)})}getMyDelegatesListing(n){this.setLoading(!0),this.apiCallService.get(x.Y9.delegates+(n?"?status="+n:""),!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{this.myDelegatesListing=a.data,this.formatData(),this.setLoading(!1)},error:a=>{this.setLoading(!1),this.cs.showErrorMessage(a.message)}})}setLoading(n){this.isLoading=n,this.loadingChange.emit(n)}formatData(){this.myDelegatesListing.forEach(n=>
1{n.status=n.status.charAt(0).toUpperCase()+n.status.slice(1).toLowerCase();const o=n.type.map(a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase());n.status===oe.PENDING&&(n.user.last_session_timestamp=""),n.delegate_type=o.join(", "),n.details=oe.DETAILS,n.delete=oe.DELETE})}navigateToDetailsPage(n){this.dataService.setDelegateDetails(n),this.router.navigate(n?["/edit-preference/delegation/delegate-details"]:["/edit-preference/delegation/add-edit-delegate"])}navigateToProfile(n){n?.is_creator?this.router.navigate(["/"+n?.user_name]):n?.refer_id&&this.router.navigate(["/"+n?.refer_id])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(A.v),e.Y36(N.F),e.Y36(wt.D),e.Y36(O.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-my-delegates"]],outputs:{loadingChange:"loadingChange"},decls:1,vars:1,consts:[["class","main-container",4,"ngIf"],[1,"main-container"],["class","my-delegates-container",4,"ngIf"],["class","table-cls",4,"ngIf"],["class","not-found",4,"ngIf"],[1,"my-delegates-container"],[1,"filter"],[1,"hdn"],[3,"field","form"],[3,"btnField","click"],[1,"table-cls"],[1,"listing-info"],[3,"headers","rows"],[1,"not-found"],["icomoonClassName","icon-litedelegate-not-found"],[1,"content-info"]],template:function(o,a){1&o&&e.YNc(0,kd,4,3,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5,ae.r,dt.o,De.z,Et.a],styles:[".my-delegates-container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin:24px 0}  .my-delegates-container .filter{display:flex;align-items:center;gap:.75rem}  .my-delegates-container .filter .hdn{font-size:.875rem;font-weight:500;line-height:1.5rem}  .my-delegates-container app-select .form-group{margin-top:0}  .my-delegates-container app-select .ng-select-container{min-width:200
1px;height:41px!important}  .my-delegates-container app-select .ng-select-container .ng-value-container .ng-input{top:-9px!important}  .my-delegates-container app-button{margin-left:auto}  .my-delegates-container app-button em{margin-right:8px}@media screen and (max-width: 480px){  .my-delegates-container app-select .ng-select-container{min-width:100px}  .my-delegates-container app-select .ng-select-container .ng-value-container .ng-input{top:-4px!important}  .my-delegates-container app-select .ng-select-container .ng-arrow-wrapper{margin-right:10px;height:22px}}.not-found[_ngcontent-%COMP%]{text-align:center;background:var(--theme-bg-tertiary);border-radius:16px;min-height:240px;padding:48px 0}.not-found[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:24px;font-weight:500;padding:0 8px}.main-container[_ngcontent-%COMP%]{padding:0 20px 20px;min-height:18.75rem}.table-cls[_ngcontent-%COMP%]{background:none}.listing-info[_ngcontent-%COMP%]{font-size:16px;margin-bottom:24px}.content-info[_ngcontent-%COMP%]{max-width:800px;margin:auto;line-height:24px;margin-top:0!important}.icon-litedelegate-not-found[_ngcontent-%COMP%]:before{font-size:45px;color:var(--theme-interactive-link)}"]}),i})();const Qn=(i,s=!1)=>{const t={type:M.sf.CHECKBOX,label:"Delegate Type",name:"type",class:"col-12 type-field",placeholder:"Select Delegate Type",options:i,labelKey:"label",valueKey:"value",validation:{required:{message:"Delegate Type is required"}}};s||delete t.validation;const n={sections:[{title:"",fields:[t,{type:M.sf.CHECKBOX,label:"You have been granted the following financial capabilities:",placeholder:"",name:"financial_delegate_capabilities",class:"col-12",labelKey:"label",valueKey:"value",visible:!1,options:[{label:"View My Wallet Balance",value:"VIEW_MY_WALLET_BALANCE",disabled:!0},{label:"View Transaction History",value:"VIEW_TRANSACTION_HISTORY",disabled:!0},{label:"View Referrals",value:"VIEW_REFERRALS",disabled:!0},{label:"View Earning Metrics",value:"VIEW_EARNING_METRICS",disabled:!0},{label:"Withdraw Money to My Bank Account",value:"WITHDRAW_MONEY_TO_MY_BANK_ACCOUNT",disabled:!0},{label:"Add/Remove Bank Account & Credit Card",value:"ADD_REMOVE_BANK_ACCOUNT_AND_CREDIT_CARD",disabled:!0},{label:"Add Funds to My Wallet",value:"ADD_FUND_TO_THE_WALLET",disabled:!0}]},{type:M.sf.CHECKBOX,label:"You have been granted the following content capabilities:",placeholder:"",name:"content_delegate_capabilities",class:"col-12",labelKey:"label",valueKey:"value",visible:!1,options:[{label:"Make/Edit Feed Posts",value:"MAKE_EDIT_FEED_POSTS",disabled:!0},{label:"Make/Edit Chat Room Posts",value:"MAKE_EDIT_CHAT_ROOM_POSTS",disabled:!0},{label:"Send/Reply to Direct Messages",value:"SEND_REPLY_TO_DIRECT_MESSAGES",disabled:!0},{label:"Add/Edit Subscription Items",value:"ADD_EDIT_SUBSCRIPTION_ITEMS",disabled:!0},{label:"Add/Edit Store Items, VIP Offers, Discount Codes, Newsletter and Events",value:"ADD_EDIT_STORE_ITEMS_VIP_OFFERS_AND_EVENTS",disabled:!0},{label:"View Earning Metrics",value:"VIEW_EARNING_METRICS",disabled:!0},{label:"Make Comments on Feed and Chat Rooms",value:"MAKE_COMMENTS_ON_FEED_AND_CHAT_ROOMS",disabled:!0},{label:"View Engagement Metrics",value:"VIEW_ENGAGEMENT_METRICS",disabled:!0},{label:"View Fulfillment Requests",value:"VIEW_FULFILLMENT_REQUESTS",disabled:!0},{label:"View and Issue Refund Requests",value:"VIEW_AND_ISSUE_REFUND_REQUESTS",disabled:!0},{label:"Edit My Preferences",value:"EDIT_MY_PREFERENCES",disabled:!0},{label:"Access Fan Segmentation",value:"ACCESS_USER_SEGMENTATION",disabled:!0},{label:"Access Fan Management",value:"FAN_MANAGEMENT",disabled:!0}]}]}],buttons:[]};return _e()(n)},Nd={REVENUE_PERCENTAGE:"You will recieve the following Revenue Share Percentages:",CONFIRM:"Confirm",CANCEL:"Cancel",SELECT_TYPE:"Delegate Access Details"},Kn={subscription:"Subscription",newsletter:"Newsletters",experience:"Experiences",courses:"Courses",downloadables:"Downloadables",merchandise:"Merchandise",event_tickets:"Event Ticketing",vip_offers:"VIP Offers",portfolio:"Portfolios",posts:"Posts",tips:"Tips",direct_message:"Paid Direct Messages",fundraiser:"Fundraiser",livestream:"Livestream"};var Ld=d(69780);const Zd=["accessTypeSelectionModal"],Fd=["verifyOtpModal"];function Ud(i,s){if(1&i&&(e.TgZ(0,"div",8)(1,"div",9),e._uU(2),e.qZA(),e.TgZ(3,"div",10),e._uU(4),e.qZA()()),2&i){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Oqu(t.value),e.xp6(2),e.hij(" ",((null==n.accessData||null==n.accessData.share_percent?null:n.accessData.share_percent[t.key])||0)+" %"," ")}}const Bd=function(){return{class:"modal-xl"}},Rd=function(){return{action:"accept_delegate_request"}};let qd=(()=>{const s=class{constructor(n,o,a,r,l){this.formService=n,this.cs=a,this.renderer=r,this.platformId=l,this.confirmed=new e.vpe,this.canceled=new e.vpe,this.accessData=null,this.isAccept=!0,this.API_URLS=x.Y9,this.fieldLabels=Nd,this.percentageFields=Kn,this.destroy$=new q.x,this.contentDelegateCapabilitiesField=null,this.financialDelegateCapabilitiesField=null,this.isContentDelegateTypeSelected=!1,this.isFinancialDelegateTypeSelected=!1,this.apiCallService=o.get(N.F)}openModal(){const n=this.accessData?.type?.map(o=>({label:(0,de.LF)(o),value:o}));if(this.formFields=_e()(Qn(n,this.isAccept)),this.form=this.formService.toFormGroup(this.formFields),this.financialDelegateCapabilitiesField=this.formService.getField(this.formFields,0,"financial_delegate_capabilities"),this.financialDelegateCapabilitiesField.label=oe.FINANCIAL_CAPABILITIES_MSG,this.contentDelegateCapabilitiesField=this.formService.getField(this.formFields,0,"content_delegate_capabilities"),this.contentDelegateCapabilitiesField.label=oe.CONTENT_CAPABILITIES_MSG,this.subscribeDelegateTypeField(),this.accessData?.type?.length){const o=[],a=[];$e()(this.accessData?.permission,"FINANCIAL")&&Object.keys(this.accessData?.permission.FINANCIAL).forEac
1h(r=>{this.accessData?.permission.FINANCIAL[r]?.WRITE&&o.push(r)}),$e()(this.accessData?.permission,"CONTENT")&&Object.keys(this.accessData?.permission.CONTENT).forEach(r=>{this.accessData?.permission.CONTENT[r]?.WRITE&&a.push(r)}),this.form.patchValue({type:this.accessData.type,financial_delegate_capabilities:o,content_delegate_capabilities:a})}this.form.get("financial_delegate_capabilities")?.disable(),this.form.get("content_delegate_capabilities")?.disable(),this.accessTypeSelectionModal?.openModal()}subscribeDelegateTypeField(){const n=this.form.get("type");n?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{const o=n.value;this.financialDelegateCapabilitiesField.visible=o.includes("FINANCIAL"),this.contentDelegateCapabilitiesField.visible=o.includes("CONTENT"),this.isContentDelegateTypeSelected=o.includes("CONTENT"),this.isFinancialDelegateTypeSelected=o.includes("FINANCIAL")})}closeModal(){this.resetData(),this.accessTypeSelectionModal?.closeModal()}hideMainModal(n=!0){if((0,p.NF)(this.platformId)){const o=document.querySelector(".access-type-selection-modal");o&&this.renderer.setStyle(o,"display",n?"none":"flex")}}setupDirectMessage(){if(this.form.invalid)this.form.markAllAsTouched();else if(this.isAccept){if(!this.form.value.type.length)return;this.hideMainModal(),this.verifyOtpModal.openModal()}else this.otpVerified()}otpCancelled(){this.closeModal()}otpVerified(){const n=this.accessData.permission,o=this.form.value?.type.includes("CONTENT"),a=this.form.value?.type.includes("FINANCIAL");$e()(n,"CONTENT")&&!o&&Object.keys(n.CONTENT).forEach(r=>{n.CONTENT[r]={READ:!1,WRITE:!1}}),$e()(n,"FINANCIAL")&&!a&&Object.keys(n.FINANCIAL).forEach(r=>{n.FINANCIAL[r]={READ:!1,WRITE:!1}}),this.apiCallService.put(x.Y9.acceptDelegationRequest,{...this.form.value,pk:this.accessData?.pk,sk:this.accessData?.sk,permission:n},!0).pipe((0,v.R)(this.destroy$)).subscribe(r=>{this.cs.showSuccessMessage(r.message),this.isAccept&&(this.verifyOtpModal.closeModal(),this.hideMainModal(!1)),this.confirmed.emit()},r=>{this.isAccept&&(this.verifyOtpModal.closeModal(),this.hideMainModal(!1)),this.cs.showErrorMessage(r.message)})}resetData(){this.form.reset()}handleCancel(){this.closeModal(),this.canceled.emit()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(e.zs3),e.Y36(A.v),e.Y36(e.Qsj),e.Y36(e.Lbi))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegate-access-selection-modal"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Zd,5),e.Gf(Fd,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.accessTypeSelectionModal=r.first),e.iGM(r=e.CRH())&&(a.verifyOtpModal=r.first)}},inputs:{accessData:"accessData",isAccept:"isAccept"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:11,vars:18,consts:[["dynamicClass","access-type-selection-modal",3,"confirmBtnLabel","cancelBtnLabel","disableConfirmButton","closeModalOnSuccess","headerLabel","modalOptions","confirmed","canceled"],["accessTypeSelectionModal",""],[3,"form","fields","isEditMode"],[1,"mt-24px"],[1,"d-flex","flex-wrap","gap-12px"],["class","share-field",4,"ngFor","ngForOf"],[3,"sendOtpAPIUrl","sendOtpPayload","verifyOtpAPIUrl","confirmed","canceled"],["verifyOtpModal",""],[1,"share-field"],[1,"label"],[1,"value"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.setupDirectMessage()})("canceled",function(){return a.handleCancel()}),e._UZ(2,"app-dynamic-form-builder",2),e.TgZ(3,"div",3)(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Ud,5,2,"div",5),e.ALo(8,"keyvalue"),e.qZA()()(),e.TgZ(9,"app-verify-otp-modal",6,7),e.NdJ("confirmed",function(){return a.otpVerified()})("canceled",function(){return a.otpCancelled()}),e.qZA()),2&o&&(e.Q6J("confirmBtnLabel",a.fieldLabels.CONFIRM)("cancelBtnLabel",a.fieldLabels.CANCEL)("disableConfirmButton",null==a.form?null:a.form.invalid)("closeModalOnSuccess",!1)("headerLabel",(null==a.accessData||null==a.accessData.user?null:a.accessData.user.first_name)+" "+(null==a.accessData||null==a.accessData.user?null:a.accessData.user.last_name)+" "+a.fieldLabels.SELECT_TYPE)("modalOptions",e.DdM(16,Bd)),e.xp6(2),e.Q6J("form",a.form)("fields",a.formFields)("isEditMode",!a.isAccept),e.xp6(3),e.Oqu(a.fieldLabels.REVENUE_PERCENTAGE),e.xp6(2),e.Q6J("ngForOf",e.lcZ(8,14,a.percentageFields)),e.xp6(2),e.Q6J("sendOtpAPIUrl",a.API_URLS.delegateSendOtp)("sendOtpPayload",e.DdM(17,Rd))("verifyOtpAPIUrl",a.API_URLS.delegateVerifyOtp))},dependencies:[p.sg,Le.U,U.F,Ld.H,p.Nd],styles:[".access-type-selection-modal .modal-body{padding:0 20px 28px!important;text-align:left!important}  .access-type-selection-modal .modal-body app-dynamic-form-builder app-checkbox .cb-option-container{flex-wrap:wrap}  .access-type-selection-modal .modal-body app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox{width:calc(50% - 6px)!important;pointer-events:none}  .access-type-selection-modal .modal-body app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .checkmark{pointer-events:auto}  .access-type-selection-modal .modal-body app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .option-label{pointer-events:auto;overflow:unset;white-space:wrap;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 750px){  .access-type-selection-modal .modal-body app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox{width:100%!important}}  .access-type-selection-modal .fb-monetize-card{padding:0!important}.mt-24px[_ngcontent-%COMP%]{margin-top:24px}.gap-12px[_ngcontent-%COMP%]{gap:12px;margin-top:24px}.share-field[_ngcontent-%COMP%]{width:calc(33% - 6px)}.share-field[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:16px;text-align:left;color:#bbb}.share-field[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;font-weight:500;line-height:16px}@media screen and (max-width: 750px){.share-field[_ngcontent-%COMP%]{width:calc(50% - 6px)}}"]}),i})();const Gd=["accessSelectionModal"],Yd=["deleteTemplate"];function Jd(i,s){if(1&i&&(e.TgZ(0,"div")(1,"p",8),e._uU(2),e.qZA(),e._UZ(3,"app-table",9),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.delegationConstant.DELEGATE_ACCESS_DESC),e.xp6(1),e.Q6J("headers",t.tableHeaders)("rows",t.accessList)}}function Vd(i,s){1&i&&(e.TgZ(0,"div",10)(1,"div",11),e._UZ(2,"em",12),e.qZA()())}function Wd(i,s){if(1&i&&(e.TgZ(0,"div",5),e.YNc(1,Jd,4,3,"div",6),e.YNc(2,Vd,3,0,"div",7),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading&&t.accessList.length>0),e.xp6(1),e.Q6J("ngIf",!t.isLoading&&0===t.accessList.length)}}let Hd=(()=>{const s=class{constructor(n,o,a){this._apiCallService=n,this.cs=o,this.dataService=a,this.tableHeaders=[{label:"NAME/EMAIL",width:"w-40 w-m-100",keyGroup:{src:"user.profile_image_url",firstName:"user.first_name",lastName:"user.last_name",desc:"user.email"},titleClass:oe.TABLE.CREATOR_NAME_CLASS,descAsMailto:!0,link:!0,clickEvent:r=>{this.goToUserProfile(r)},type:Tt.i.AVTARIMAGETEXT,hideHeaderLabel:!0},{key:"typeView",label:"TYPE",width:"w-40 w-m-50"},{label:"ACTION",width:"w-20 w-m-100 md:justify-content-end",key:"action",type:Tt.i.IN_ROW_ACTION}],this.accessList=[],this.isLoading=!1,this.dataUpdated=new e.vpe,this.loadingChange=new e.vpe,this.commonEnum=X.i4,this.acceptRequest=!1,this.delegationConstant=oe,this.destroy$=new q.x}ngOnInit(){this.getAccessList()}handleAcceptActionEvent(n){this.acceptRequest=!0,this.selectedAccessData=_e()(n),setTimeout(()=>{this.accessSelectionModal.openModal()}
1,0)}closeAcceptanceModal(){this.acceptRequest=!1,this.selectedAccessData=null}handleRejectActionEvent(n){this.acceptRequest=!1,this.selectedAccessData=_e()(n),this.deleteTemplate.openModal()}onCancel(){this.selectedAccessData=null,this.deleteTemplate.closeModal()}refreshData(){this.getAccessList(),this.dataUpdated.emit(),this.dataService.getDelegatedAccessList()}closeAcceptModalOnConfirm(){this.refreshData(),this.accessSelectionModal?.closeModal()}onConfirmationDelete(){this._apiCallService.put(x.Y9.declineRequest,{pk:this.selectedAccessData.pk,sk:this.selectedAccessData.sk},!0).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.cs.showSuccessMessage(n.message),this.refreshData()},n=>{this.cs.showErrorMessage(n.message)})}handleRemoveActionEvent(n){this.acceptRequest=!1,this.selectedAccessData=n,setTimeout(()=>{this.accessSelectionModal.openModal()},0)}getAccessList(){this.setLoading(!0),this._apiCallService.get(x.$_.getDelegationList(),!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n.status?this.accessList=n.data?.map(o=>this.formatData(o)):this.cs.showWarningMessage(n.message),this.setLoading(!1)},error:n=>{this.setLoading(!1),this.cs.showErrorMessage(n.message)}})}setLoading(n){this.isLoading=n,this.loadingChange.emit(n)}navigateToDetailsPage(n){this.dataService.setDelegateDetails({...n,disableEdit:!0}),this.cs.router.navigate(n?["/edit-preference/delegation/delegate-details"]:["/edit-preference/delegation/add-edit-delegate"])}formatData(n){let o=[];switch(n.status){case"PENDING":o=[{class:"active-link",label:this.commonEnum.ACCEPT,clickEvent:a=>{this.handleAcceptActionEvent(a)}},{class:"red-active-link",label:this.commonEnum.DECLINE,clickEvent:a=>{this.handleRejectActionEvent(a)}}];break;case"ACTIVE":o=[{class:"active-link",label:this.commonEnum.DETAILS,clickEvent:a=>{this.navigateToDetailsPage(a)}}]}return{...n,typeView:n.type?.map(a=>(0,de.LF)(a)).join(", ").trim(),action:o}}goToUserProfile(n){const o=n?.user?.wls_url||n?.wls_url;o?this.cs.openUrl(o):this.cs.redirectToTopFansV2(n.user)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(A.v),e.Y36(wt.D))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegated-access"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Gd,5),e.Gf(Yd,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.accessSelectionModal=r.first),e.iGM(r=e.CRH())&&(a.deleteTemplate=r.first)}},outputs:{dataUpdated:"dataUpdated",loadingChange:"loadingChange"},decls:5,vars:6,consts:[["class","access-list",4,"ngIf"],[3,"commonEnum","ConfirmationMessage","headerLabel","confirmDelete","cancelDelete"],["deleteTemplate",""],[3,"isAccept","accessData","cancelled","confirmed"],["accessSelectionModal",""],[1,"access-list"],[4,"ngIf"],["class","not-found-pane card-not-found mx-0",4,"ngIf"],[1,"listing-info"],[3,"headers","rows"],[1,"not-found-pane","card-not-found","mx-0"],[1,"not-found-image"],[1,"icon-litetransaction-not-found"]],template:function(o,a){1&o&&(e.YNc(0,Wd,3,2,"div",0),e.TgZ(1,"app-confirmation-modal",1,2),e.NdJ("confirmDelete",function(){return a.onConfirmationDelete()})("cancelDelete",function(){return a.onCancel()}),e.qZA(),e.TgZ(3,"app-delegate-access-selection-modal",3,4),e.NdJ("cancelled",function(){return a.closeAcceptanceModal()})("confirmed",function(){return a.closeAcceptModalOnConfirm()}),e.qZA()),2&o&&(e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("commonEnum",a.commonEnum)("ConfirmationMessage",a.delegationConstant.DELETE_ACCESS+" "+(null==a.selectedAccessData||null==a.selectedAccessData.user?null:a.selectedAccessData.user.first_name)+" "+(null==a.selectedAccessData||null==a.selectedAccessData.user?null:a.selectedAccessData.user.last_name)+".")("headerLabel",a.delegationConstant.REMOVE_ACCESS),e.xp6(2),e.Q6J("isAccept",a.acceptRequest)("accessData",a.selectedAccessData))},dependencies:[p.O5,Fe.Y,Et.a,qd],styles:[".access-list[_ngcontent-%COMP%]{min-height:300px}.listing-info[_ngcontent-%COMP%]{font-size:16px;margin-bottom:24px;margin-top:18px}"]}),i})();function Qd(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",9)(1,"a",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",11),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",12),e._uU(6),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.consts.DELEGATION)}}function Kd(i,s){1&i&&e._UZ(0,"app-preference-mobile-header-skeleton")}function zd(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-tab-view",13),e.NdJ("tabChanged",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.changeTab(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("field",t.tabField)}}function $d(i,s){1&i&&e._UZ(0,"app-delegation-view-header-skeleton",14)}
1function jd(i,s){1&i&&e._UZ(0,"app-delegation-view-header-skeleton",19)}function Xd(i,s){1&i&&e._UZ(0,"app-my-delegates-skeleton",20),2&i&&e.Q6J("showMobileHeader",!1)("showControls",!1)("parentPadded",!0)}function ep(i,s){1&i&&e._UZ(0,"app-delegated-access-skeleton",21),2&i&&e.Q6J("showMobileHeader",!1)}function tp(i,s){if(1&i&&(e.TgZ(0,"div",15),e.YNc(1,jd,1,0,"app-delegation-view-header-skeleton",16),e.YNc(2,Xd,1,3,"app-my-delegates-skeleton",17),e.YNc(3,ep,1,1,"app-delegated-access-skeleton",18),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.activeTab===t.consts.MY_DELEGATES||!t.isDataFetched),e.xp6(1),e.Q6J("ngIf",t.activeTab===t.consts.MY_DELEGATES||!t.isDataFetched),e.xp6(1),e.Q6J("ngIf",t.isDataFetched&&t.activeTab===t.consts.DELEGATED_ACCESS)}}function np(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"app-my-delegates",23),e.NdJ("loadingChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onMyDelegatesLoading(o))}),e.qZA()()}}function op(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"app-delegated-access",24),e.NdJ("dataUpdated",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.getAccessList())})("loadingChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onDelegatedAccessLoading(o))}),e.qZA()()}}function ip(i,s){if(1&i&&(e.TgZ(0,"div",22),e.YNc(1,np,2,0,"div",2),e.YNc(2,op,2,0,"div",2),e.qZA()),2&i){const t=e.oxw();e.Q6J("hidden",t.showPageSkeleton),e.xp6(1),e.Q6J("ngIf",t.activeTab===t.consts.MY_DELEGATES),e.xp6(1),e.Q6J("ngIf",t.activeTab===t.consts.DELEGATED_ACCESS)}}let ap=(()=>{const s=class{get showPageSkeleton(){return!(this.cs.isBrowser&&this.isDataFetched&&(this.activeTab===this.consts.MY_DELEGATES?this.myDelegatesReady:this.delegatedAccessReady))}constructor(n,o,a,r){this._apiCallService=n,this.router=o,this.cs=a,this.store=r,this.tabField={type:null,options:[{key:oe.MY_DELEGATES,label:oe.MY_DELEGATES}],activeTab:oe.MY_DELEGATES.toString(),name:"tabs",class:""},this.activeTab=oe.MY_DELEGATES,this.consts=oe,this.haveAccessTab=!1,this.showTabs=!1,this.destroy$=new q.x,this.isDataFetched=!1,this.myDelegatesReady=!1,this.delegatedAccessReady=!1}ngOnInit(){this.cs.isBrowser&&this.getAccessList()}changeTab(n){this.activeTab=n}onMyDelegatesLoading(n){n||(this.myDelegatesReady=!0)}onDelegatedAccessLoading(n){n||(this.delegatedAccessReady=!0)}getAccessList(){this._apiCallService.get(x.$_.getDelegationList(),!0).subscribe({next:n=>{n.status?(this.haveAccessTab=n.data?.length>0,!this.haveAccessTab&&this.activeTab===this.consts.DELEGATED_ACCESS&&(this.activeTab=this.consts.MY_DELEGATES),this.haveAccessTab||this.cs.delegateAccessListLength$.next(!1)):this.haveAccessTab=!1,this.addAccessTabField()},error:()=>{this.isDataFetched=!0,this.haveAccessTab=!1}})}addAccessTabField(){this.haveAccessTab&&1===this.tabField.options?.length&&this.tabField.options?.[0]?.key!==oe.DELEGATED_ACCESS?this.tabField.options?.push({key:oe.DELEGATED_ACCESS,label:oe.DELEGATED_ACCESS}):!this.haveAccessTab&&2===this.tabField.options?.length&&(this.tabField.options=[this.tabField.options[0]],this.tabField.activeTab=oe.MY_DELEGATES.toString(),this.tabField=_e()(this.tabField)),this.userProfile()}userProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfileData=n,this.userProfileData?.is_creator||(this.tabField.options?.[0]?.key===oe.MY_DELEGATES&&this.tabField.options?.shift(),this.tabField.activeTab=oe.DELEGATED_ACCESS.toString(),this.activeTab=oe.DELEGATED_ACCESS.toString()),this.showTabs=!0,this.isDataFetched=!0})}moveToDashboard(){this.router.navigate(["/dashboard"])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(N.F),e.Y36(O.F0),e.Y36(A.v),e.Y36(le.yh))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegation-view"]],decls:10,vars:6,consts:[[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],[4,"ngIf"],[1,"delegate-container"],[3,"field","tabChanged",4,"ngIf"],["section","tabs",4,"ngIf"],[1,"views"],["class","delegation-skeleton-main",4,"ngIf"],[3,"hidden",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[3,"field","tabChanged"],["section","tabs"],[1,"delegation-skeleton-main"],["section","controls",4,"ngIf"],[3,"showMobileHeader","showControls","parentPadded",4,"ngIf"],[3,"showMobileHeader",4,"ngIf"],["section","controls"],[3,"showMobileHeader","showControls","parentPadded"],[3,"showMobileHeader"],[3,"hidden"],[3,"loadingChange"],[3,"dataUpdated","loadingChange"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div"),e.YNc(2,Qd,7,1,"div",1),e.YNc(3,Kd,1,0,"app-preference-mobile-header-skeleton",2),e.qZA(),e.TgZ(4,"div",3),e.YNc(5,zd,1,1,"app-tab-view",4),e.YNc(6,$d,1,0,"app-delegation-view-header-skeleton",5),e.qZA()(),e.TgZ(7,"div",6),e.YNc(8,tp,4,3,"div",7),e.YNc(9,ip,3,3,"div",8),e.qZA()),2&o&&(e.xp6(2),e.Q6J("ngIf",a.isDataFetched),e.xp6(1),e.Q6J("ngIf",a.showPageSkeleton&&!a.isDataFetched),e.xp6(2),e.Q6J("ngIf",a.isDataFetched&&!a.showPageSkeleton),e.xp6(1),e.Q6J("ngIf",a.showPageSkeleton),e.xp6(2),e.Q6J("ngIf",a.showPageSkeleton),e.xp6(1),e.Q6J("ngIf",a.showTabs&&a.isDataFetched))},dependencies:[p.O5,ce.l,hd.X,Wn,Hn,pe,cn,Dd,Hd],styles:["@media screen and (min-width: 992px){  .delegate-container{margin-top:30px}  .delegate-container app-tab-view .nav-tabs{border:none}  .delegate-container app-tab-view .nav-link{background:var(--theme-bg
1-tertiary);padding:13px 18px;border-radius:28px;font-size:13px;font-weight:500;cursor:pointer;display:block;margin-bottom:10px!important;margin-right:8px;white-space:nowrap;color:#fff;letter-spacing:.4px;border-top-left-radius:28px!important;border-top-right-radius:28px!important;border:none}  .delegate-container app-tab-view .nav-link.active{background:var(--configThemeColor);font-weight:900}  .delegate-container app-tab-view .nav-link.active span{color:var(--configButtonTextColor)!important}}@media screen and (max-width: 991px){  .delegate-container{margin-top:-12px;position:relative;z-index:920;background:#272a2b}  .delegate-container .nav-tabs{position:fixed;width:100%;border:none!important;border-bottom:1px solid rgba(255,255,255,.16)!important;background:#013956}  .delegate-container .nav-link{background:transparent!important;border:none;width:auto;padding:12px 20px 16px;margin-right:0;font-size:14px}  .delegate-container .nav-link span{font-weight:900}  .delegate-container .nav-link.active{border-bottom:1px solid var(--theme-interactive-link)}  .delegate-container .nav-link.active span{color:var(--theme-interactive-link)}}  .delegation-skeleton-main{padding:0 20px 20px;min-height:18.75rem}@media (max-width: 991px){  .delegation-skeleton-main{padding:0 12px 20px}}  .views{min-height:18.75rem}@media screen and (max-width: 991px){  .views{padding-top:45px}}"]}),i})();const lp=["confirmDelegate"];function cp(i,s){if(1&i&&(e.TgZ(0,"div")(1,"div",39),e._uU(2),e.ALo(3,"titlecase"),e.qZA()()),2&i){const t=s.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t))}}function dp(i,s){if(1&i&&(e.TgZ(0,"span",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_session_timestamp,t.consts.DEFAULT_DATE_TIME_FORMAT)+" "+t.timeZoneAbbr+" ("+t.consts.LAST_SESSION+")"," ")}}const zn=function(i){return{"has-image":i}},pp=function(i){return{active:i}};function gp(i,s){if(1&i&&(e.TgZ(0,"div",25)(1,"div",26)(2,"div",27)(3,"div",28),e._UZ(4,"img",29),e.qZA()(),e.TgZ(5,"div",13)(6,"p",30),e._uU(7),e.qZA(),e.TgZ(8,"p",31),e._uU(9),e.qZA(),e.TgZ(10,"div",32),e.YNc(11,cp,4,3,"div",33),e.qZA()()(),e.TgZ(12,"div",34)(13,"div",35)(14,"span",36),e._uU(15),e.qZA(),e.TgZ(16,"span",37),e._uU(17),e.qZA(),e.YNc(18,dp,3,4,"span",38),e.qZA()()()),2&i){const t=e.oxw(2);e.xp6(3),e.Q6J("ngClass",e.VKq(11,zn,!(null==t.delegateDetails||null==t.delegateDetails.user||!t.delegateDetails.user.profile_image_url))),e.xp6(1),e.Q6J("originalUrl",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.profile_image_url)("src",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.profile_image_url,e.LSH)("format","webp"),e.xp6(3),e.hij(" ",(null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.first_name)+" "+(null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_name)," "),e.xp6(2),e.hij(" ",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.email," "),e.xp6(2),e.Q6J("ngForOf",null==t.delegateDetails?null:t.delegateDetails.type),e.xp6(3),e.Q6J("ngClass",e.VKq(13,pp,(null==t.delegateDetails?null:t.delegateDetails.status)===t.consts.ACTIVE)),e.xp6(1),e.hij(" ",null==t.delegateDetails?null:t.delegateDetails.status," "),e.xp6(2),e.Oqu("|"),e.xp6(1),e.Q6J("ngIf",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_session_timestamp)}}const _p=function(i,s){return{type:"button",class:"btn btn-primary w-100",label:i,disabled:s}};function up(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",16)(1,"div",17)(2,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToBack())}),e._UZ(3,"em",3),e.qZA(),e.TgZ(4,"div",19)(5,"h4"),e._uU(6),e.qZA()()(),e.TgZ(7,"div",20)(8,"p"),e._uU(9),e.qZA(),e.YNc(10,gp,19,15,"div",21),e.TgZ(11,"div"),e._UZ(12,"app-dynamic-form-builder",22),e.qZA()(),e.TgZ(13,"div",23)(14,"app-button",24),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showNextStep())}),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(6),e.hij(" ",t.isEditMode?t.consts.EDIT_DELEGATE:t.consts.ADD_NEW_DELEGATE," "),e.xp6(3),e.Oqu(t.consts.STEP_1),e.xp6(1),e.Q6J("ngIf",t.isEditMode),e.xp6(2),e.Q6J("form",t.form)("fields",t.f
1ields),e.xp6(2),e.Q6J("btnField",e.WLB(6,_p,t.consts.NEXT,t.form.invalid||t.isFieldsInvalid))}}const mp=function(i,s,t){return{type:"button",class:"btn btn-primary w-100",label:i,disabled:s,loading:t}};function fp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",41)(1,"div",17)(2,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToBack())}),e._UZ(3,"em",3),e.qZA(),e.TgZ(4,"div",19)(5,"h4"),e._uU(6),e.qZA()()(),e.TgZ(7,"div",20)(8,"p"),e._uU(9),e.qZA(),e.TgZ(10,"h5"),e._uU(11),e.qZA(),e.TgZ(12,"div"),e._UZ(13,"app-dynamic-form-builder",22),e.qZA()(),e.TgZ(14,"div",23)(15,"app-button",24),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.submitForm())}),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(6),e.hij(" ",t.isEditMode?t.consts.EDIT_DELEGATE:t.consts.ADD_NEW_DELEGATE," "),e.xp6(3),e.Oqu(t.consts.STEP_2),e.xp6(2),e.Oqu(t.consts.DELEGATE_SHARE_PERC),e.xp6(2),e.Q6J("form",t.sharePercentageForm)("fields",t.sharePercentagefields),e.xp6(2),e.Q6J("btnField",e.kEZ(6,mp,t.consts.SUBMIT,t.sharePercentageForm.invalid||t.isSubmitting,t.isSubmitting))}}function hp(i,s){if(1&i&&e._UZ(0,"img",44),2&i){const t=e.oxw(2);e.Q6J("src",null==t.delegateUserDetails?null:t.delegateUserDetails.profile_image_url,e.LSH)}}function Cp(i,s){1&i&&e._UZ(0,"em",45)}function bp(i,s){if(1&i&&(e.TgZ(0,"div",27)(1,"div",28),e.YNc(2,hp,1,1,"img",42),e.YNc(3,Cp,1,0,"em",43),e.qZA()()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(3,zn,!(null==t.delegateUserDetails||!t.delegateUserDetails.profile_image_url))),e.xp6(1),e.Q6J("ngIf",null==t.delegateUserDetails?null:t.delegateUserDetails.profile_image_url),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateUserDetails&&t.delegateUserDetails.profile_image_url))}}let vp=(()=>{const s=class{constructor(n,o,a,r,l){this.formService=n,this.router=o,this.cs=a,this.apiCallService=r,this.dataService=l,this.destroy$=new q.x,this.form=null,this.sharePercentageForm=null,this.consts=oe,this.isStep2=!1,this.percentageAvailabilityData=null,this.isContentDelegateTypeSelected=!1,this.isFinancialDelegateTypeSelected=!0,this.isContentDelegateCapabilitiesFieldSelected=!1,this.isFinancialDelegateCapabilitiesFieldSelected=!1,this.isFieldsInvalid=!0,this.delegateUserDetails=null,this.isProfileMatched=!1,this.isEditMode=!1,this.delegateDetails=null,this.timeZoneAbbr="",this.isSubmitting=!1,this.isModalConfirming=!1,this.getTimeZone()}ngOnInit(){this.dataService.delegateDetails&&(this.isEditMode=!0,this.delegateDetails=this.dataService.delegateDetails),this.initForm()}initForm(){this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.TEXT,label:"First Name",name:"first_name",class:"col-12 col-lg-6",validation:{required:{message:"First Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:F.mL.N_W_S_AT_B,message:"First Name is invalid"}}},{type:M.sf.TEXT,label:"Last Name",name:"last_name",class:"col-12 col-lg-6",validation:{required:{message:"Last Name is required"},minlength:{value:2,message:"Minimum 2 characters allowed"},maxlength:{value:24,message:"Maximum 24 characters allowed"},pattern:{value:F.mL.N_W_S_AT_B,message:"Last Name is invalid"}}},{type:M.sf.TEXT,label:"Email Address",name:"email",class:"col-12 col-lg-6",validation:{required:{message:"Email Address is required"},pattern:{value:F.mL.EMAIL,message:"Email is invalid"}}},{type:M.sf.CHECKBOX,label:"Delegate Type",placeholder:"",name:"type",class:"col-12",labelKey:"label",valueKey:"value",options:[{label:"Financial",value:"FINANCIAL"},{label:"Content & Store",value:"CONTENT"}],validation:{required:{message:"Delegate Type is required"}}},{type:M.sf.CHECKBOX,label:"Financial Delegate Capabilities:",placeholder:"",name:"financial_delegate_capabilities",class:"col-12",labelKey:"label",valueKey:"value",visible:!1,options:[{label:"View My Wallet Balance",value:"VIEW_MY_WALLET_BALANCE"},{label:"View Transaction History",value:"VIEW_TRANSACTION_HISTORY"},{label:"View Referrals",value:"VIEW_REFERRALS"},{label:"View Earning Metrics",value:"VIEW_EARNING_METRICS"},{label:"Withdraw Money to My Bank Account",value:"WITHDRAW_MONEY_TO_MY_BANK_ACCOUNT"},{label:"Add/Remove Bank Account & Credit Card",value:"ADD_REMOVE_BANK_ACCOUNT_AND_CREDIT_CARD"},{label:"Add Funds to My Wallet",value:"ADD_FUND_TO_THE_WALLET"}]},{type:M.sf.CHECKBOX,label:"Content Delegate Capabilities:",placeholder:"",name:"content_delegate_capabilities",class:"col-12",labelKey:"label",valueKey:"value",visible:!1,options:[{label:"Make/Edit Feed Posts",value:"MAKE_
1EDIT_FEED_POSTS"},{label:"Make/Edit Chat Room Posts",value:"MAKE_EDIT_CHAT_ROOM_POSTS"},{label:"Send/Reply to Direct Messages",value:"SEND_REPLY_TO_DIRECT_MESSAGES"},{label:"Add/Edit Subscription Items",value:"ADD_EDIT_SUBSCRIPTION_ITEMS"},{label:"Add/Edit Store Items, VIP Offers, Discount Codes, Newsletter and Event Ticketing",value:"ADD_EDIT_STORE_ITEMS_VIP_OFFERS_AND_EVENTS"},{label:"View Earning Metrics",value:"VIEW_EARNING_METRICS"},{label:"Make Comments on Feed and Chat Rooms",value:"MAKE_COMMENTS_ON_FEED_AND_CHAT_ROOMS"},{label:"View Engagement Metrics",value:"VIEW_ENGAGEMENT_METRICS"},{label:"View Fulfillment Requests",value:"VIEW_FULFILLMENT_REQUESTS"},{label:"View and Issue Refund Requests",value:"VIEW_AND_ISSUE_REFUND_REQUESTS"},{label:"Edit My Preferences",value:"EDIT_MY_PREFERENCES"},{label:"Access Fan Segmentation",value:"ACCESS_USER_SEGMENTATION"},{label:"Access Fan Management",value:"FAN_MANAGEMENT"}]}]}]}),this.form=this.formService.toFormGroup(this.fields),this.firstNameField=this.formService.getField(this.fields,0,"first_name"),this.lastNameField=this.formService.getField(this.fields,0,"last_name"),this.emailField=this.formService.getField(this.fields,0,"email"),this.delegateTypeField=this.formService.getField(this.fields,0,"type"),this.financialDelegateCapabilitiesField=this.formService.getField(this.fields,0,"financial_delegate_capabilities"),this.contentDelegateCapabilitiesField=this.formService.getField(this.fields,0,"content_delegate_capabilities"),this.setValues(),this.subscribeDelegateTypeField()}setValues(){if(this.isEditMode){if(this.form.patchValue({first_name:this.delegateDetails.user.first_name,last_name:this.delegateDetails.user.last_name,email:this.delegateDetails.user.email,type:this.delegateDetails.type}),this.firstNameField.visible=!1,this.lastNameField.visible=!1,this.emailField.visible=!1,this.financialDelegateCapabilitiesField.visible=!1,this.isFinancialDelegateTypeSelected=!1,this.isContentDelegateTypeSelected=!1,this.delegateDetails.type.includes("FINANCIAL")){this.isFinancialDelegateTypeSelected=!0,this.financialDelegateCapabilitiesField.visible=!0,this.isFinancialDelegateCapabilitiesFieldSelected=!0;const n=this.delegateDetails.permission.FINANCIAL,o=Object.keys(n).filter(a=>!0===n[a].READ&&!0===n[a].WRITE);this.form.get("financial_delegate_capabilities").setValue(o)}if(this.delegateDetails.type.includes("CONTENT")){this.isContentDelegateTypeSelected=!0,this.contentDelegateCapabilitiesField.visible=!0,this.isContentDelegateCapabilitiesFieldSelected=!0;const n=this.delegateDetails.permission.CONTENT,o=Object.keys(n).filter(a=>!0===n[a].READ&&!0===n[a].WRITE);this.form.get("content_delegate_capabilities").setValue(o)}this.isFieldsInvalid=!1}this.getPercentageAvalaibility()}subscribeDelegateTypeField(){const n=this.form.get(this.delegateTypeField.name);n?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{const o=n.value;this.financialDelegateCapabilitiesField.visible=o.includes("FINANCIAL"),this.contentDelegateCapabilitiesField.visible=o.includes("CONTENT"),this.isContentDelegateTypeSelected=o.includes("CONTENT"),this.isFinancialDelegateTypeSelected=o.includes("FINANCIAL"),this.checkIsFormValid()}),this.subscribeContentDelegateCapabilitiesField(),this.subscribeFinancialDelegateCapabilitiesField()}subscribeContentDelegateCapabilitiesField(){const n=this.form.get(this.contentDelegateCapabilitiesField.name);n?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.isContentDelegateCapabilitiesFieldSelected=0!==n.value.length,this.checkIsFormValid()})}subscribeFinancialDelegateCapabilitiesField(){const n=this.form.get(this.financialDelegateCapabilitiesField.name);n?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.isFinancialDelegateCapabilitiesFieldSelected=0!==n.value.length,this.checkIsFormValid()})}checkIsFormValid(){this.isFieldsInvalid=!this.isFinancialDelegateTypeSelected&&!this.isContentDelegateTypeSelected||!(!this.isFinancialDelegateTypeSelected||this.isFinancialDelegateCapabilitiesFieldSelected)||!(!this.isContentDelegateTypeSelected||this.isContentDelegateCapabilitiesFieldSelected)}getPercentageAvalaibility(){this.apiCallService.get(x.Y9.delegatePercentageAvailability,!1).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.percentageAvailabilityData=n.data,this.initSharePercentageForm()},error:n=>{this.cs.showErrorMessage(n.message)}})}initSharePercentageForm(){this.sharePercentagefields=_e()({sections:[{title:"",fields:[{type:M.sf.TEXT,label:"Subscriptions (%)",name:"subscription",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Newsletters (%)",name:"newsletter",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Experiences (%)",name:"experience",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Courses (%)",name:"courses",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Downloadables (%)",name:"downloadables",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Merchandise (%)",name:"merchandise",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Event Ticketing (%)",name:"event_tickets",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"VIP Offers (%)",name:"vip_offers",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Portfolio (%)",name:"portfolio",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Posts (%)",name:"posts",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Tips (%)",name:"tips",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Paid Direct Messages (%)",name:"direct_message",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Fundraiser (%)",name:"fundraiser",class:"col-12 col-lg-6"},{type:M.sf.TEXT,label:"Livestream (%)",name:"livestream",class:"col-12 col-lg-6"}]}]});const n=this.sharePercentagefields.sections[0].fields;if(n.forEach(o=>{o.validation={max:{value:100-this.percentageAvailabilityData[o.name]+(this.isEditMode?this.delegateDetails.share_percent[o.name]:0),message:oe.EXCEED_MSG+(100-this.percentageAvailabilityData[o.name]+(this.isEditMode?this.delegateDetails.share_percent[o.name]:0))+"% "},required:{message:"Field is required"},pattern:{value:F.mL.NUMBER,message:o.label.replace(/\s\(%\)$/,"")+" is invali
1d"}}}),this.sharePercentageForm=this.formService.toFormGroup(this.sharePercentagefields),this.isEditMode){const o={},a=this.delegateDetails.share_percent||{};n.forEach(r=>{const l=a[r.name];o[r.name]=""===l||null==l?0:l}),this.sharePercentageForm=this.formService.toFormGroup(this.sharePercentagefields),this.sharePercentageForm.patchValue(o)}else n.forEach(o=>{this.sharePercentageForm.get(o.name).setValue(0)})}showNextStep(){this.cs.scrollToTop(),this.isStep2=!0}navigateToBack(){this.isStep2?this.isStep2=!1:this.router.navigate(["/edit-preference/delegation/delegation-view"])}submitForm(n=!1){let o={};const a=_e()(fd);this.isFinancialDelegateTypeSelected&&this.form.get("financial_delegate_capabilities").value.forEach(b=>{a.FINANCIAL[b]&&(a.FINANCIAL[b]={READ:!0,WRITE:!0})}),this.isContentDelegateTypeSelected&&this.form.get("content_delegate_capabilities").value.forEach(b=>{a.CONTENT[b]&&(a.CONTENT[b]={READ:!0,WRITE:!0})});const r=this.sharePercentageForm.value,l=Object.keys(r).reduce((h,b)=>(h[b]=parseInt(r[b],10),h),{});o={permission:a,first_name:this.form.get("first_name").value,last_name:this.form.get("last_name").value,email:this.form.get("email").value,type:this.form.get("type").value,share_percent:l,confirm:n||this.isEditMode},this.isEditMode&&(o={...o,sk:this.delegateDetails.sk,pk:this.delegateDetails.pk}),n||(this.isProfileMatched=!1);const g=this.isEditMode?"put":"post";n?this.isModalConfirming=!0:this.isSubmitting=!0,this.apiCallService[g](x.Y9.delegate,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:h=>{h.status&&(n||this.isEditMode?(this.cs.showSuccessMessage(h.message),this.router.navigate(["/edit-preference/delegation/delegation-view"])):(this.delegateUserDetails=h?.data,this.delegateUserDetails?.first_name&&(this.isProfileMatched=!0),this.openModal())),this.isSubmitting=!1,this.isModalConfirming=!1,this.closeModal()},error:h=>{this.cs.showErrorMessage(h.message),this.closeModal(),this.isSubmitting=!1,this.isModalConfirming=!1}})}openModal(){this.userName=this.form.get("first_name").value+" "+this.form.get("last_name").value,this.email=this.form.get("email").value,this.confirmDelegateModal?.openModal()}closeModal(){this.confirmDelegateModal?.closeModal()}getTimeZone(){this.timeZoneAbbr=this.cs.getTimeZoneAbbreviation()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(O.F0),e.Y36(A.v),e.Y36(N.F),e.Y36(wt.D))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-add-edit-delegate"]],viewQuery:function(o,a){if(1&o&&e.Gf(lp,5),2&o){let r;e.iGM(r=e.CRH())&&(a.confirmDelegateModal=r.first)}},decls:21,vars:13,consts:[[1,"inside-container","preference-container","add-new-delegate"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-arrow-back"],[1,"mobile-title"],["class","walletform-container preference-privacy-container pb-4",4,"ngIf"],["class","walletform-container preference-privacy-container",4,"ngIf"],["dynamicClass","profile-match-fou
1nd-modal",3,"confirmBtnLabel","cancelBtnLabel","headerLabel","confirmBtnLoading","disableConfirmButton","closeModalOnSuccess","confirmed","canceled"],["confirmDelegate",""],[1,"d-flex","flex-column","c-gap-30","text-left"],[1,"delegate-desc"],[1,"user-details"],["class","user-imgs",4,"ngIf"],[1,"user-desc"],[1,"user-name"],[1,"user-mail"],[1,"walletform-container","preference-privacy-container","pb-4"],[1,"hdr"],[3,"click"],[1,"heading"],[1,"walletform-content","p-0"],["class","delegate-user-detailss",4,"ngIf"],[3,"form","fields"],[1,"submit-btn"],[3,"btnField","handleButtonClick"],[1,"delegate-user-detailss"],[1,"user-info"],[1,"user-imgs"],[1,"user-image","collab-single-user",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","User Image","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"user-name","p-0"],[1,"user-mail","p-0"],[1,"types"],[4,"ngFor","ngForOf"],[1,"status-session"],[1,"session-details"],[1,"status",3,"ngClass"],[1,"vertical-sep"],["class","last-session",4,"ngIf"],[1,"chip"],[1,"last-session"],[1,"walletform-container","preference-privacy-container"],["alt","User Image",3,"src",4,"ngIf"],["class","icon-litesingle_profile",4,"ngIf"],["alt","User Image",3,"src"],[1,"icon-litesingle_profile"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e.NdJ("click",function(){return a.navigateToBack()}),e._UZ(3,"em",3),e.qZA(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",4),e._uU(6),e.qZA()(),e.YNc(7,up,15,9,"div",5),e.YNc(8,fp,16,10,"div",6),e.qZA(),e.TgZ(9,"app-alert-modal",7,8),e.NdJ("confirmed",function(){return a.submitForm(!0)})("canceled",function(){return a.closeModal()}),e.TgZ(11,"div",9)(12,"div",10),e._uU(13),e.qZA(),e.TgZ(14,"div",11),e.YNc(15,bp,4,5,"div",12),e.TgZ(16,"div",13)(17,"p",14),e._uU(18),e.qZA(),e.TgZ(19,"p",15),e._uU(20),e.qZA()()()()()),2&o&&(e.xp6(6),e.hij(" ",a.isEditMode?a.consts.EDIT_DELEGATE:a.consts.ADD_NEW_DELEGATE," "),e.xp6(1),e.Q6J("ngIf",!a.isStep2),e.xp6(1),e.Q6J("ngIf",a.isStep2),e.xp6(1),e.Q6J("confirmBtnLabel",a.consts.CONFIRM)("cancelBtnLabel",a.consts.CANCEL)("headerLabel",a.isProfileMatched?a.consts.PROFILE_MATCH_FOUND:a.consts.PROFILE_MATCH_NOT_FOUND)("confirmBtnLoading",a.isModalConfirming)("disableConfirmButton",a.isModalConfirming)("closeModalOnSuccess",!1),e.xp6(4),e.hij(" ",a.isProfileMatched?a.consts.PROFILE_MATCH_DESC:a.consts.PROFILE_NOT_MATCH_DESC," "),e.xp6(2),e.Q6J("ngIf",a.isProfileMatched),e.xp6(3),e.hij(" ",a.isProfileMatched?(null==a.delegateUserDetails?null:a.delegateUserDetails.first_name)+" "+(null==a.delegateUserDetails?null:a.delegateUserDetails.last_name):a.userName," "),e.xp6(2),e.hij(" ",a.isProfileMatched?null==a.delegateUserDetails?null:a.delegateUserDetails.email:a.email," "))},dependencies:[p.mk,p.sg,p.O5,Le.U,ae.r,U.F,ce.l,Ze.m,Ne.J,p.rS,p.uU],styles:['.add-new-delegate .hdr{margin-top:35px;display:flex;gap:16px;align-items:flex-start}  .add-new-delegate .hdr .heading h4{font-size:24px;font-weight:700;line-height:24px}  .add-new-delegate .hdr .icon-arrow-back{font-size:24px;font-weight:500;cursor:pointer}  .add-new-delegate app-dynamic-form-builder app-checkbox .form-group{margin-top:40px!important}  .add-new-delegate app-dynamic-form-builder app-checkbox .app-checkbox-container .parent-label{margin-bottom:24px!important}  .add-new-delegate app-dynamic-form-builder app-checkbox .cb-option-container{display:flex;flex-wrap:wrap;column-gap:0px;row-gap:24px;align-items:baseline}  .add-new-delegate app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox{width:50%!important;pointer-events:none;margin-bottom:0}  .add-new-delegate app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .checkmark{pointer-events:auto}  .add-new-delegate app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .option-label{pointer-events:auto;overflow:unset;white-space:wrap;width:-moz-fit-content;width:fit-content}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(4) app-checkbox .cb-option-container{justify-content:flex-start}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(4) a
1pp-checkbox .cb-option-container .custom-checkbox{width:20%!important}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container{justify-content:flex-start}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container .custom-checkbox{width:20%!important}  .add-new-delegate .submit-btn{width:174px;margin-top:14px}  .add-new-delegate .walletform-content p{font-size:14px;font-weight:400;line-height:16.41px;text-align:left;margin-bottom:0;padding-top:28px;padding-left:30px}  .add-new-delegate .walletform-content h5{font-size:20px;font-weight:600;margin-bottom:0;padding-top:20px;padding-left:30px}@media screen and (max-width: 991px){  .add-new-delegate .hdr{display:none}  .add-new-delegate .icon-arrow-back{font-size:20px!important}  .add-new-delegate .submit-btn{margin-left:12px}  .add-new-delegate app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .checkmark{margin:3px 0 0}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(4) app-checkbox .cb-option-container{justify-content:space-between}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(4) app-checkbox .cb-option-container .custom-checkbox{width:100%!important}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container{justify-content:space-between}  .add-new-delegate app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container .custom-checkbox{width:100%!important}}  .delegate-user-detailss{padding:0 30px;display:flex;gap:30%;margin-top:40px}  .delegate-user-detailss .user-info{display:flex;align-items:flex-start;gap:32px}  .delegate-user-detailss .user-imgs{width:100px}  .delegate-user-detailss .user-desc{gap:8px}  .delegate-user-detailss .user-desc .user-mail{margin-bottom:8px}  .delegate-user-detailss .user-name{font-size:18px}  .delegate-user-detailss .collab-single-user{height:100px;min-width:100px;max-width:100px}  .delegate-user-detailss .types{display:flex;gap:8px;align-items:center}  .delegate-user-detailss .types .chip{background:#14364c;font-size:14px;font-weight:400;line-height:16.41px;padding:6px 12px;border-radius:28px}.collab-single-user[_ngcontent-%COMP%]{background:#005369;display:flex;align-items:center;justify-content:center;height:100px;min-width:100px;max-width:100px;border-radius:100%;background-size:30px 30px!important}.collab-single-user[_ngcontent-%COMP%]   .icon-litesingle_profile[_ngcontent-%COMP%]:before{font-size:30px;color:#09c6da}.user-image[_ngcontent-%COMP%]{cursor:pointer;position:relative}.user-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:100%;height:100%;width:100%}.user-imgs[_ngcontent-%COMP%]{width:100px;margin-left:2px;border-radius:100%;position:relative;z-index:1}.user-imgs[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:-1;margin:-2px;border-radius:inherit;background:var(--configThemeColor)!important}.delegate-desc[_ngcontent-%COMP%]{font-size:16px;font-weight:500;line-height:24px;text-align:left}.user-details[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px;margin-top:24px}.user-desc[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.user-desc[_ngcontent-%COMP%]   .user-name[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:25.78px;margin:0}.user-desc[_ngcontent-%COMP%]   .user-mail[_ngcontent-%COMP%]{font-size:16px;text-align:left;font-weight:400;line-height:18.75px;margin:0}@media screen and (max-width: 767px){.delegate-user-detailss[_ngcontent-%COMP%]{gap:0px;flex-wrap:wrap}.delegate-user-detailss[_ngcontent-%COMP%]   .user-imgs[_ngcontent-%COMP%]{width:90px}.delegate-user-detailss[_ngcontent-%COMP%]   .mobile-icons[_ngcontent-%COMP%]{display:none}.delegate-user-detailss[_ngcontent-%COMP%]   .collab-single-user[_ngcontent-%COMP%]{height:90px;min-width:90px;max-width:90px}.delegate-user-detailss[_ngcontent-%COMP%]   .session-details[_ngcontent-%COMP%]{flex-direction:row;gap:9px;align-items:center}
1.delegate-user-detailss[_ngcontent-%COMP%]   .session-details[_ngcontent-%COMP%]   .last-session[_ngcontent-%COMP%]{margin:0}.delegate-user-detailss[_ngcontent-%COMP%]   .vertical-sep[_ngcontent-%COMP%]{display:inline;color:#979797;opacity:.25}.delegate-user-detailss[_ngcontent-%COMP%]   .status-session[_ngcontent-%COMP%]{width:100%;margin-top:18px;display:flex;justify-content:space-between;flex-direction:row}.delegate-user-detailss[_ngcontent-%COMP%]   .status-session[_ngcontent-%COMP%]   .mobile-icons[_ngcontent-%COMP%]{display:flex;gap:12px}.delegate-user-detailss[_ngcontent-%COMP%]   .status-session[_ngcontent-%COMP%]   .mobile-icons[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{cursor:pointer;font-size:20px}}']}),i})();const xp=[{label:"January",value:0,key:1},{label:"February",value:0,key:2},{label:"March",value:0,key:3},{label:"April",value:0,key:4},{label:"May",value:0,key:5},{label:"June",value:0,key:6},{label:"July",value:0,key:7},{label:"August",value:0,key:8},{label:"September",value:0,key:9},{label:"October",value:0,key:10},{label:"November",value:0,key:11},{label:"December",value:0,key:12}];var $n=d(15433);const Op=["deleteTemplate"],Mp=["transactionDetail"];function Tp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",40)(1,"em",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.deleteDetail())}),e.qZA()()}}function wp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"em",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.navigateToEditPage())}),e.qZA()}}function Ep(i,s){1&i&&e._UZ(0,"em",42)}const Ap=function(i){return{active:i}};function yp(i,s){if(1&i&&(e.TgZ(0,"span",43),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(2,Ap,(null==t.delegateDetails?null:t.delegateDetails.status)===t.consts.ACTIVE)),e.xp6(1),e.hij(" ",null==t.delegateDetails?null:t.delegateDetails.status," ")}}function Sp(i,s){if(1&i&&(e.TgZ(0,"span",44),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_session_timestamp,t.consts.DEFAULT_DATE_TIME_FORMAT)+" "+t.timeZoneAbbr+" ("+t.consts.LAST_SESSION+")"," ")}}function Ip(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendDelegationRequest())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.consts.RESEND_INVITE," ")}}function kp(i,s){if(1&i&&(e.TgZ(0,"div")(1,"div",48),e._uU(2),e.ALo(3,"titlecase"),e.qZA()()),2&i){const t=s.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t))}}function Dp(i,s){if(1&i&&(e.TgZ(0,"div",46),e.YNc(1,kp,4,3,"div",47),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",null==t.delegateDetails?null:t.delegateDetails.type)}}function Np(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",49)(1,"span",50)(2,"em",41),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.navigateToEditPage())}),e.qZA(),e.TgZ(3,"em",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.deleteDetail())}),e.qZA()()()}}function Lp(i,s){if(1&i&&(e.TgZ(0,"div",51),e._UZ(1,"app-dynamic-form-builder",52),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("form",t.permissionForm)("fields",t.permissionFormFields)}}function Zp(i,s){if(1&i&&(e.TgZ(0,"div",69)(1,"div",70),e._uU(2),e.qZA(),e.TgZ(3,"div",71),e._uU(4),e.qZA()()),2&i){const t=s.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(t.value),e.xp6(2),e.hij(" ",((null==n.delegateDetails||null==n.delegateDetails.share_percent?null:n.delegateDetails.share_percent[t.key])||0)+" %"," ")}}function Fp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",72)(1,"div",73),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.showTransactionListing(a))}),e._uU(2),e.qZA(),e.TgZ(3,"div",74),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.showTransactionListing(a))}),e._uU(4),e.ALo(5,"currency"),e.qZA()()}if(2&i){const t=s.$implicit;e.xp6(2),e.hij(" ",null==t?null:t.label," "),e.xp6(2),e.hij(" ",e.lcZ(5,2,null==t?null:t.value)," ")}}const dn=function(i){return{type:"button",class:"btn btn-primary",label:i}};function Up(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",53)(1,"div",54)(2,"div",55),e._uU(3),e.qZA(),e.TgZ(4,"div",56),e.YNc(5,Zp,5,2,"div",57),e.ALo(6,"keyvalue"),e.qZA()(),e.TgZ(7,"div",58)(8,"div",59)(9,"div",55),e._uU(10),e.qZA(),e.TgZ(11,"div",60),e._UZ(12,"app-select",61),e.TgZ(13,"div",62)(14,"app-button",63),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.getDelegateMonthlySummary(!0))}),e.qZA()()()(),e.TgZ(15,"div",64)(16,"div",65)(17,"div"),e._uU(18),e.qZA(),e.TgZ(19,"div"),e._uU(20),e.ALo(21,"currency"),e.qZA()(),e.TgZ(22,"div",66),e.YNc(23,Fp,6,4,"div",67),e.qZA()()(),e.TgZ(24,"div",68)(25,"app-button",63),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.getDelegateMonthlySummary(!0))}),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",null!=t.delegateDetails&&t.delegateDetails.disableEdit?t.consts.DELEGATE_RECIEVE_MSG:t.consts.CURRENT_REVENUE_SHARE_PERCENTAGES," "),e.xp6(2),e.Q6J("ngForOf",e.xi3(6,10,t.percentageFields,t.keepOrder)),e.xp6(
15),e.hij(" ",t.consts.HISTORICAL_REVENUE_SHARE_AMOUNTS," "),e.xp6(2),e.Q6J("field",t.yearField)("form",t.form),e.xp6(2),e.Q6J("btnField",e.VKq(15,dn,t.consts.DOWNLOAD_CSV)),e.xp6(4),e.hij(" ",t.currentYear+t.consts.TOTAL_REVENUE_SHARE," "),e.xp6(2),e.Oqu(e.lcZ(21,13,t.totalRevenue)),e.xp6(3),e.Q6J("ngForOf",t.everyMonthRevenue),e.xp6(2),e.Q6J("btnField",e.VKq(17,dn,t.consts.DOWNLOAD_CSV))}}function Bp(i,s){if(1&i&&e._UZ(0,"app-table",80),2&i){const t=e.oxw(3);e.Q6J("headers",t.tableHeaders)("rows",t.delegateMonthlyTransactions)}}function Rp(i,s){if(1&i&&(e.TgZ(0,"div",81),e._UZ(1,"app-circle-background-icon",82),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.consts.NO_TRANSACTION_HISTORY)}}const qp=function(i){return{"mt-0":i}};function Gp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",75)(1,"div",59)(2,"div",55)(3,"em",76),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.backToDelegateDetails())}),e.qZA(),e._uU(4),e.qZA(),e.TgZ(5,"div",60),e._UZ(6,"app-select",61)(7,"app-select",61),e.TgZ(8,"div")(9,"app-button",63),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.getDelegateMonthlyTransactions(!0))}),e.qZA()()()(),e.TgZ(10,"div",77),e.YNc(11,Bp,1,2,"app-table",78),e.YNc(12,Rp,4,1,"div",79),e.qZA()()}if(2&i){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(9,qp,null==t.delegateDetails?null:t.delegateDetails.disableEdit)),e.xp6(4),e.hij(" ",t.consts.BACK_TO_DELEGATE_SUMMARY," "),e.xp6(2),e.Q6J("field",t.yearField)("form",t.form),e.xp6(1),e.Q6J("field",t.monthField)("form",t.form),e.xp6(2),e.Q6J("btnField",e.VKq(11,dn,t.consts.DOWNLOAD_CSV)),e.xp6(2),e.Q6J("ngIf",(null==t.delegateMonthlyTransactions?null:t.delegateMonthlyTransactions.length)>0),e.xp6(1),e.Q6J("ngIf",0===(null==t.delegateMonthlyTransactions?null:t.delegateMonthlyTransactions.length)&&!t.isLoading)}}function Yp(i,s){if(1&i&&e._UZ(0,"app-table",80),2&i){const t=e.oxw(3);e.Q6J("headers",t.tableHeaders)("rows",t.delegateMonthlyTransactions)}}function Jp(i,s){if(1&i&&(e.TgZ(0,"div",81),e._UZ(1,"app-circle-background-icon",84),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(3),e.Oqu(t.consts.NO_TRANSACTION_HISTORY)}}function Vp(i,s){if(1&i&&(e.TgZ(0,"div",83),e.YNc(1,Yp,1,2,"app-table",78),e.YNc(2,Jp,4,1,"div",79),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(null==t.delegateMonthlyTransactions?null:t.delegateMonthlyTransactions.length)>0),e.xp6(1),e.Q6J("ngIf",0===(null==t.delegateMonthlyTransactions?null:t.delegateMonthlyTransactions.length)&&!t.isLoading)}}const Wp=function(i){return{"min-h-0":i}},Hp=function(i){return{"align-items-center":i}},Qp=function(i){return{"has-image":i}};function Kp(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"a",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToBack())}),e._UZ(3,"em",8),e.qZA(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",9),e._uU(6),e.qZA()(),e.TgZ(7,"div",10),e.YNc(8,Tp,2,0,"div",11),e.TgZ(9,"div",12)(10,"div",13)(11,"a",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToBack())}),e._UZ(12,"em",8),e.qZA(),e.TgZ(13,"div",15)(14,"h4"),e._uU(15),e.qZA()()(),e.TgZ(16,"span",16),e.YNc(17,wp,1,0,"em",17),e.TgZ(18,"em",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.deleteDetail())}),e.qZA()()(),e.TgZ(19,"div",19)(20,"div")(21,"div",20)(22,"div",21)(23,"div",22)(24,"div",23),e._UZ(25,"img",24),e.YNc(26,Ep,1,0,"em",25),e.qZA()(),e.TgZ(27,"div",26)(28,"div",27)(29,"p",28),e._uU(30),e.qZA(),e.YNc(31,yp,2,4,"span",29),e.YNc(32,Sp,3,4,"span",30),e.qZA(),e.TgZ(33,"div",31)(34,"p",32),e._uU(35),e.qZA(),e.YNc(36,Ip,2,1,"span",33),e.qZA(),e.YNc(37,Dp,2,1,"div",34),e.qZA()(),e.YNc(38,Np,4,0,"div",35),e.qZA(),e.YNc(39,Lp,2,2,"div",36),e.YNc(40,Up,26,19,"div",37),e.YNc(41,Gp,13,13,"div",38),e.qZA()(),e.YNc(42,Vp,3,2,"div",39),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.consts.DELEGATE_DETAILS),e.xp6(2),e.Q6J("ngIf",null==t.delegateDetails?null:t.delegateDetails.disableEdit),e.xp6(7),e.hij(" ",t.consts.DELEGATE_DETAILS," "),e.xp6(2),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit)),e.xp6(2),e.Q6J("ngClass",e.VKq(22,Wp,null==t.delegateDetails?null:t.delegateDetails.disableEdit)),e.xp6(3),e.Q6J("ngClass",e.VKq(24,Hp,null==t.delegateDetails?null:t.delegateDetails.disableEdit)),e.xp6(2),e.Q6J("ngClass",e.VKq(26,Qp,!(null==t.delegateDetails||null==t.delegateDetails.user||!t.delegateDetails.user.profile_image_url))),e.xp6(1),e.Q6J("originalUrl",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.profile_image_url)("src",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.profile_image_url,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&null!=t.delegateDetails.user&&t.delegateDetails.user.profile_image_url)),e.xp6(4),e.hij(" ",(null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.first_name)+" "+(null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_name)," "),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit)),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit)&&(null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.last_session_timestamp)),e.xp6(3),e.hij(" ",null==t.delegateDetails||null==t.delegateDetails.user?null:t.delegateDetails.user.email," "),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit||(null==t.delegateDetails?null:t.delegateDetails.status)!==t.consts.PENDING&&(null==t.delegateDetails?null:t.delegateDetails.status)!==t.consts.DECLINED)),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit)),e.xp6(1),e.Q6J("ngIf",!(null!=t.delegateDetails&&t.delegateDetails.disableEdit)),e.xp6(1),e.Q6J("ngIf",(null==t.delegateDetails?null:t.delegateDetails.disableEdit)&&!t.isTransactionListingVisible),e.xp6(1),e.Q6J("ngIf",!t.isTransactionListingVisible),e.xp6(1),e.Q6J("ngIf",t.isTransactionListingVisible),e.xp6(1),e.Q6J("ngIf",t.isTransactionListingVisible)}}let zp=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b,w){this.router=n,this.dataService=o,this.formService=a,this.cs=r,this.apiCallService=l,this.datePipe=g,this.currencyPipe=h,this.downloadService=b,this.store=w,this.destroy$=new q.x,this.consts=oe,this.percentageFields=Kn,this.everyMonthRevenue=null,this.form=null,this.fields=null,this.yearField=null,this.monthField=null,this.commonEnum=X.i4,this.dateText=_.vb,this.timeZoneAbbr="",this.isTransactionListingVisible=!1,this.delegateMonthlyData=null,this.delegateMonthlyTransactions=null,this.totalRevenue=0,this.isLoading=!1,this.transactionDetailData=null,this.tableHeaders=[{key:"created_at",label:"Date",width:"w-25 w-m-50 "},{key:"type",label:"Type",width:"w-30 w-m-50 "},{key:"view",label:"Details",width:"w-20 w-m-50 ",link:!0,clickEvent:L=>
1{this.showTransactionDetails(L)}},{key:"amount_formatted",label:"Delegate Revenue Share",width:"w-25 w-m-50 "}],this.userProfileData=null,this.keepOrder=(L,j)=>_.Mx.ZERO,this.getTimeZone()}ngOnInit(){this.everyMonthRevenue=_e()(xp),this.dataService.delegateDetails?this.delegateDetails=this.dataService.delegateDetails:this.navigateToBack();const n=[{label:"Financial",value:"FINANCIAL",disabled:!0},{label:"Content & Store",value:"CONTENT",disabled:!0}];if(this.delegateDetails?.type.includes("CONTENT")||n.pop(),this.delegateDetails?.type.includes("FINANCIAL")||n.shift(),this.permissionFormFields=_e()(Qn(n,!1)),this.formService.getField(this.permissionFormFields,0,"financial_delegate_capabilities").visible=this.delegateDetails?.type.includes("FINANCIAL"),this.formService.getField(this.permissionFormFields,0,"content_delegate_capabilities").visible=this.delegateDetails?.type.includes("CONTENT"),this.permissionForm=this.formService.toFormGroup(this.permissionFormFields),this.delegateDetails?.type?.length){const o=[],a=[];$e()(this.delegateDetails?.permission,"FINANCIAL")&&Object.keys(this.delegateDetails?.permission.FINANCIAL).forEach(r=>{this.delegateDetails?.permission.FINANCIAL[r]?.WRITE&&o.push(r)}),$e()(this.delegateDetails?.permission,"CONTENT")&&Object.keys(this.delegateDetails?.permission.CONTENT).forEach(r=>{this.delegateDetails?.permission.CONTENT[r]?.WRITE&&a.push(r)}),this.permissionForm.patchValue({type:this.delegateDetails.type,financial_delegate_capabilities:o,content_delegate_capabilities:a})}this.permissionForm.get("financial_delegate_capabilities")?.disable(),this.permissionForm.get("content_delegate_capabilities")?.disable(),this.permissionForm.get("type")?.disable(),this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.SELECT,label:"",name:"year_filter",class:"col-12",labelKey:"label",valueKey:"value",options:[{label:"2025",value:"2025"}]},{type:M.sf.SELECT,label:"",name:"month_filter",class:"col-12",labelKey:"label",valueKey:"value",options:[{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}]}]}]}),this.form=this.formService.toFormGroup(this.fields),this.yearField=this.formService.getField(this.fields,0,"year_filter"),this.monthField=this.formService.getField(this.fields,0,"month_filter"),this.currentYear=(new Date).getFullYear(),this.form.get(this.yearField?.name)?.setValue(this.currentYear),this.delegateDetails&&this.subscribeMonthField(),this.getProfile()}getProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfileData=n,this.delegateDetails&&this.getDelegateMonthlySummary()})}navigateToBack(){this.router.navigate(["/edit-preference/delegation/delegation-view"])}navigateToEditPage(){this.router.navigate(["/edit-preference/delegation/add-edit-delegate"])}deleteDetail(){this.deleteTemplate.openModal()}onCancel(){this.deleteTemplate.closeModal()}deleteDelegate(){const n=`${x.Y9.delegate}/${encodeURIComponent(this.delegateDetails.sk)}`;this.apiCallService.delete(n,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{o.status&&(this.cs.showSuccessMessage(o.message),this.navigateToBack())},error:o=>{this.cs.showErrorMessage(o.message)}})}getDelegateMonthlySummary(n=!1){const o=x.$_.delegateMonthlySummary(this.delegateDetails?.user?.pk,this.currentYear,n,this.delegateDetails?.disableEdit),a={};n&&(a.responseType=M.sf.TEXT),this.apiCallService.get(o,!0,a).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{n?this.downloadService.saveFile(r,`${this.consts.TRANSACTION_HISTORY}.csv`):r.status&&(this.totalRevenue=0,this.delegateMonthlyData=r.data,this.delegateMonthlyData.forEach(l=>{this.everyMonthRevenue[l.month-1].value=l.total,this.totalRevenue+=l.total}))},error:r=>{this.cs.showErrorMessage(r.message)}})}getTimeZone(){this.timeZoneAbbr=this.cs.getTimeZoneAbbreviation()}asIsOrder(){return _.Mx.ZERO}
1showTransactionDetails(n){const o=x.$_.delegateTransactionDetails(n?.pk,n?.sk);this.apiCallService.get(o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status&&(this.transactionDetailData=a.data,this.transactionDetailData={...this.transactionDetailData,created_at_details:this.transactionDetailData?.transaction_date?(0,de.OZ)(this.transactionDetailData?.transaction_date):""},this.transactionDetailModal?.openModal())},error:a=>{this.cs.showErrorMessage(a.message)}})}handleCancel(){this.transactionDetailData=null,this.transactionDetailModal.closeModal()}showTransactionListing(n){const o=this.form.get(this.monthField.name).value;this.form.get(this.monthField.name).setValue(String(n.key)),this.isTransactionListingVisible=!0,this.currentMonth=n.key,this.cs.scrollToTop(),o===String(n.key)&&this.getDelegateMonthlyTransactions()}backToDelegateDetails(){this.isTransactionListingVisible=!1}subscribeMonthField(){this.form.get(this.monthField.name).valueChanges?.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.currentMonth=n,this.getDelegateMonthlyTransactions()})}getDelegateMonthlyTransactions(n=!1){const o=x.$_.delegateMonthlyTransaction(this.delegateDetails?.user?.pk,this.currentYear,this.currentMonth,n,this.delegateDetails?.disableEdit),a={};n?a.responseType=M.sf.TEXT:this.isLoading=!0,this.apiCallService.get(o,!0,a).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{n?this.downloadService.saveFile(r,`${this.consts.TRANSACTION_HISTORY}.csv`):r.status&&(this.isLoading=!1,this.delegateMonthlyTransactions=r.list.map(l=>this.formatData(l)))},error:r=>{this.isLoading=!1,this.cs.showErrorMessage(r.message)}})}formatData(n){return{...n,created_at:this.datePipe.transform(n?.created_at,M.K_),view:this.consts.VIEW,payment_status:n?.status===this.consts.FAILED_SMALL_CAPS?this.consts.FAILED:n?.status===this.consts.PENDING_SMALL_CAPS||n?.status===this.consts.ON_HOLD?this.consts.PENDING:this.consts.COMPLETED,amount_formatted:+n.amount?`${this.delegateDetails?.disableEdit?n?.type===this.consts.DELEGATE_REFUND?"-":"+":n?.type===this.consts.DELEGATE_REFUND?"+":"-"}${this.currencyPipe.transform(+n.amount)}`:"-"}}removeDelegate(){this.apiCallService.put(x.Y9.acceptDelegationRequest,{pk:this.delegateDetails?.pk,sk:this.delegateDetails?.sk,permission:{},type:[]},!0).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.deleteTemplate.closeModal(),this.cs.router.navigate(["/edit-preference/delegation"]),this.cs.showSuccessMessage(n.message)},n=>{this.cs.showErrorMessage(n.message)})}sendDelegationRequest(){const{permission:n,user:o,type:a,share_percent:r}=this.delegateDetails;this.apiCallService.post(x.Y9.delegate,{permission:n,first_name:o.first_name,last_name:o.last_name,email:o.email,type:a,share_percent:r,confirm:!0},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:g=>{g.status&&this.cs.showSuccessMessage(g.message)},error:g=>{this.cs.showErrorMessage(g.message)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(wt.D),e.Y36(Ee.D),e.Y36(A.v),e.Y36(N.F),e.Y36(p.uU),e.Y36(p.H9),e.Y36(Xt.K),e.Y36(le.yh))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-delegate-details"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Op,5),e.Gf(Mp,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.deleteTemplate=r.first),e.iGM(r=e.CRH())&&(a.transactionDetailModal=r.first)}},decls:5,vars:5,consts:[["class","inside-container preference-container delegate-details",4,"ngIf"],[3,"ConfirmationMessage","headerLabel","commonEnum","confirmDelete","cancelDelete"],["deleteTemplate",""],[3,"transactionDetailData","canceled"],["transactionDetail",""],[1,"inside-container","preference-container","delegate-details"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-arrow-back"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container"],["class","remove-delegate-icon",4,"ngIf"],[1,"main-hdr"],[1,"hdr"],[3,"click"],[1,"heading"],[1,"icons"],["class","icon-res-editfill",3,"click",4,"ngIf"],[1,"icon-delete-filled",3,"click"],[1,"walletform-content",3,"ngClass"],[1,"delegate-user-details"],[1,"user-info",3,"ngClass"],[1,"user-imgs"],[1,"user-image","collab-single-user",3,"ngClass"],["appMobileOptimization","","alt","User Image","loading","lazy","decoding","async",3,"originalUrl","src","format"],["class","icon-litesingle_profile",4,"ngIf"],[1,"user-desc"],[1,"user-name-row"],[1,"user-name"],["class","status",3,"ngClass",4,"ngIf"],["class","last-session",4,"ngIf"],[1,"resend-user-btn"],[1,"user-mail"],["class","resend-btn",3,"click",4,"ngIf"],["class","types",4,"ngIf"],["class","status-session",4,"ngIf"],["class","permission-form",4,"ngIf"],["class","revenues",4,"ngIf"],["class","transaction-listing",3,"ngClass",4,"ngIf"],["class","mobile-listing",4,"ngIf"],[1,"remove-delegate-icon"],[1,"icon-res-editfill",3,"click"],[1,"icon-litesingle_profile"],[1,"status",3,"ngClass"],[1,"last-session"],[1,"resend-btn",3,"click"],[1,"types"],[4,"ngFor","ngForOf"],[1,"chip"],[1,"status-session"],[1,"mobile-icons"],[1,"permission-form"],[3,"form","fields"],[1,"revenues"],[1,"current-revenue"],[1,"sub-hdr"],[1,"percent","d-flex","flex-wrap","gap-12px"],["class","share-field",4,"ngFor","ngForOf"],[1,"historical-revenue"],[1,"headr"],[1,"right-hdr"],[3,"field","form"],[1,"select-btn"],[3,"btnField","click"],[1,"details"],[1,"total-share"],[1,"list"],["class","share-list",4,"ngFor","ngForOf"],[1,"mobile-select-btn"],[1,"share-field"],[1,"label"],[1,"value"],[1,"share-list"],[1,"month",3,"click"],[1,"revenue",3,"click"],[1,"transaction-listing",3,"ngClass"],[1,"icon-arrow-back",3,"click"],[1,"listing"],[3,"headers","rows",4,"ngIf"],["class","not-found",4,"ngIf"],[3,"headers","rows"],[1,"n
1ot-found"],["icomoonClassName","icon-litetransaction-not-found","iconSize","45px","backgroundCircleDiameter","120px","iconSizeMobile","45px","backgroundCircleDiameterMobile","120px"],[1,"mobile-listing"],["icomoonClassName","icon-litetransaction-not-found","iconSize","45px","iconSizeMobile","45px"]],template:function(o,a){1&o&&(e.YNc(0,Kp,43,28,"div",0),e.TgZ(1,"app-confirmation-modal",1,2),e.NdJ("confirmDelete",function(){return null!=a.delegateDetails&&a.delegateDetails.disableEdit?a.removeDelegate():a.deleteDelegate()})("cancelDelete",function(){return a.onCancel()}),e.qZA(),e.TgZ(3,"app-transaction-detail-modal",3,4),e.NdJ("canceled",function(){return a.handleCancel()}),e.qZA()),2&o&&(e.Q6J("ngIf",a.delegateDetails),e.xp6(1),e.Q6J("ConfirmationMessage",null!=a.delegateDetails&&a.delegateDetails.disableEdit?a.consts.REMOVE_DELEGATE_MSG+(null==a.delegateDetails||null==a.delegateDetails.user?null:a.delegateDetails.user.first_name)+" "+(null==a.delegateDetails||null==a.delegateDetails.user?null:a.delegateDetails.user.last_name)+" Account.":a.consts.DELETE_MSG)("headerLabel",null!=a.delegateDetails&&a.delegateDetails.disableEdit?a.consts.CONFIRM_DELEGATE_STATUS_REMOVAL:a.consts.DELETE_DELEGATE)("commonEnum",a.commonEnum),e.xp6(2),e.Q6J("transactionDetailData",a.transactionDetailData))},dependencies:[p.mk,p.sg,p.O5,Le.U,ae.r,dt.o,ce.l,Fe.Y,De.z,Ne.J,Et.a,$n.i,p.rS,p.H9,p.uU,p.Nd],styles:['.icon-litetransaction-not-found[_ngcontent-%COMP%]{color:var(--theme-interactive-link);font-size:45px}  .delegate-details .permission-form .type-field .checkbox-form-group{margin-top:0!important}  .delegate-details .permission-form .fb-monetize-card{padding:0 0 30px!important}  .delegate-details .permission-form app-dynamic-form-builder app-checkbox .cb-option-container{flex-wrap:wrap}  .delegate-details .permission-form app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox{width:calc(50% - 6px)!important;pointer-events:none}  .delegate-details .permission-form app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .checkmark{pointer-events:auto}  .delegate-details .permission-form app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox .option-label{pointer-events:auto;overflow:unset;white-space:wrap;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 750px){  .delegate-details .permission-form app-dynamic-form-builder app-checkbox .cb-option-container .custom-checkbox{width:100%!important}}  .delegate-details .permission-form app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container{justify-content:flex-start}  .delegate-details .permission-form app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container .custom-checkbox{width:20%!important}  .delegate-details .hdr{margin-top:35px;display:flex;gap:16px;align-items:flex-start}  .delegate-details .hdr .heading h4{font-size:24px;font-weight:700;line-height:24px}  .delegate-details .hdr .icon-arrow-back{font-size:24px;font-weight:500;cursor:pointer}  .delegate-details .walletform-content{min-height:20rem}  .delegate-details .walletform-content .sub-hdr{font-size:16px;font-weight:500;line-height:18.75px;text-align:left}  .delegate-details .walletform-content .share-field{width:calc(33% - 6px);margin-top:16px}  .delegate-details .walletform-content .share-field .label{font-size:14px;font-weight:700;line-height:16px;text-align:left;color:#bbb}  .delegate-details .walletform-content .share-field .value{margin-top:16px;font-size:14px;font-weight:400;line-height:16px}  .delegate-details .walletform-content .current-revenue .percent{background:#003550;padding:20px;border-radius:16px;margin-top:16px}  .delegate-details .walletform-content .historical-revenue,   .delegate-details .walletform-content .transaction-listing{margin-top:32px}  .delegate-details .walletform-content .historical-revenue .sub-hdr,   .delegate-details .walletform-content .transaction-listing .sub-hdr{font-size:16px;font-weight:500;line-height:18.75px;text-align:left;display:flex;gap:8px}  .delegate-details .walletform-content .historical-revenue .sub-hdr em,   .delegate-details .walletform-content .transaction-listing .sub-hdr em{font-size:18px;line-height:16px;cursor:pointer}  .delegate-details .walletform-content .historical-revenue .headr,   .delegate-details .walletform-content .transaction-listing .headr{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:12px;gap:1rem}  .delegate-details .walletform-content .historical-revenue .headr .right-hdr,   .delegate-details .walletform-content .transaction-listing .headr .right-hdr{display:flex;flex-wrap:wrap;gap:12px;align-items:center}  .delegate-details .walletform-content .historical-revenue .headr .right-hdr app-select .form-group,   .delegate-details .walletform-content .transaction-listing .headr .right-hdr app-select .form-group{margin-top:0}  .delegate-details .walletform-content .historical-revenue .headr .right-hdr app-select .ng-select-container,   .delegate-details .walletform-content .transaction-listing .headr .right-hdr app-select .ng-select-container{min-width:200
1px;height:41px!important}  .delegate-details .walletform-content .historical-revenue .headr .right-hdr app-select .ng-select-container .ng-value-container .ng-input,   .delegate-details .walletform-content .transaction-listing .headr .right-hdr app-select .ng-select-container .ng-value-container .ng-input{top:-9px!important}  .delegate-details .walletform-content .historical-revenue .details,   .delegate-details .walletform-content .transaction-listing .details{background:#003550;padding:20px;border-radius:16px}  .delegate-details .walletform-content .historical-revenue .details .total-share,   .delegate-details .walletform-content .transaction-listing .details .total-share{display:flex;justify-content:space-between;align-items:center}  .delegate-details .walletform-content .historical-revenue .details .total-share div,   .delegate-details .walletform-content .transaction-listing .details .total-share div{font-size:16px;font-weight:400;line-height:18.75px}  .delegate-details .walletform-content .historical-revenue .details .list,   .delegate-details .walletform-content .transaction-listing .details .list{margin-top:14px}  .delegate-details .walletform-content .historical-revenue .details .share-list,   .delegate-details .walletform-content .transaction-listing .details .share-list{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}  .delegate-details .walletform-content .historical-revenue .details .share-list .month,   .delegate-details .walletform-content .transaction-listing .details .share-list .month{font-size:14px;font-weight:400;line-height:16.41px;color:#bbb;cursor:pointer}  .delegate-details .walletform-content .historical-revenue .details .share-list .revenue,   .delegate-details .walletform-content .transaction-listing .details .share-list .revenue{cursor:pointer;font-size:14px;font-weight:400;line-height:16.41px;color:#15dbc5}  .delegate-details .resend-user-btn{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}  .delegate-details .resend-btn{font-size:14px;color:#09c6da;cursor:pointer}  .collab-single-user{background:var(--configBgColor);height:73px;min-width:73px;max-width:73px;border-radius:100%;display:flex;align-items:center;justify-content:center}  .collab-single-user em{display:flex;align-items:center;justify-content:center;font-size:32px;width:100%;height:100%;border-radius:50%;background:var(--configThemeColor);-webkit-background-clip:text;-webkit-text-fill-color:transparent}  .user-image{cursor:pointer;position:relative}  .user-image img{border-radius:100%;height:100%;width:100%}  .user-imgs{width:73px;margin-left:2px;border-radius:100%;position:relative;z-index:1}  .user-imgs:before{content:"";position:absolute;inset:0;z-index:-1;margin:-2px;border-radius:inherit;background:var(--configThemeColor)!important}  .delegate-desc{margin-top:-15px;font-size:16px;font-weight:500;line-height:24px;text-align:left}  .user-details{display:flex;align-items:center;gap:32px;margin-top:24px}  .delegate-user-details{display:flex;gap:48px;margin-top:24px;margin-bottom:40px}  .delegate-user-details .user-info{display:flex;align-items:flex-start;gap:32px;flex:1}  .delegate-user-details .user-imgs{width:100px}  .delegate-user-details .user-desc{gap:8px;flex:1}  .delegate-user-details .user-desc .user-mail{margin-bottom:8px}  .delegate-user-details .user-name{font-size:18px}  .delegate-user-details .collab-single-user{height:100px;min-width:100px;max-width:100px}  .delegate-user-details .types{display:flex;gap:8px;align-items:center}  .delegate-user-details .types .chip{background:#14364c;font-size:14px;font-weight:400;line-height:16.41px;padding:6px 12px;border-radius:28px}  .user-desc{display:flex;flex-direction:column;align-items:flex-start;gap:12px}  .user-desc .user-name-row{display:flex;align-items:center;gap:8px;width:100%}  .user-desc .user-name-row .last-session{margin-left:auto;color:var(--topfan-theme-color)!important}  .user-desc .user-name{font-size:22px;font-weight:700;line-height:25.78px;margin:0;opacity:.8;word-break:break-word}  .user-desc .user-mail{font-size:16px;font-weight:400;line-height:18.75px;margin:0;opacity:.8;word-break:break-word}  .user-data{display:flex;align-items:flex-start;position:relative;z-index:10}  .status{font-size:13px;font-weight:700;line-height:16px;text-align:left}  .last-session{font-size:12px;font-weight:400;line-height:14px;text-align:right;opacity:.8}  .status-session{display:flex;flex-direction:column}
1  .session-details{display:flex;flex-direction:column}  .active{color:var(--topfan-theme-color)}  .mobile-icons{display:none}  .icons{display:flex;gap:12px}  .icons em{font-size:20px;cursor:pointer}  .icons .icon-delete-filled{color:#f27474e8}  .main-hdr{display:flex;justify-content:space-between;align-items:baseline}  .vertical-sep,   .mobile-select-btn{display:none}.not-found[_ngcontent-%COMP%]{text-align:center;background:var(--theme-bg-tertiary);border-radius:16px;min-height:240px;padding:48px 0}.not-found[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:24px;font-weight:500;padding:0 8px}.listing[_ngcontent-%COMP%]{margin-top:24px}.mobile-listing[_ngcontent-%COMP%], .remove-delegate-icon[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 991px){  .delegate-details app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .app-checkbox-container .parent-label{margin-bottom:24px!important}  .delegate-details app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container{justify-content:flex-start}  .delegate-details app-dynamic-form-builder .col-12:nth-child(1) app-checkbox .cb-option-container .custom-checkbox{width:100%!important}  .right-hdr app-select .ng-select-container{width:120px!important;min-width:auto!important}  .min-h-0{min-height:0rem!important}  .walletform-content .share-field{width:100%}  .walletform-content .sub-hdr{font-size:14px}  .walletform-content .resend-user-btn{gap:0px;flex-direction:column}  .main-hdr{display:none}  .delegate-user-details{gap:0px;flex-wrap:wrap}  .delegate-user-details .user-imgs{width:90px}  .delegate-user-details .mobile-icons{display:none}  .delegate-user-details .collab-single-user{height:90px;min-width:90px;max-width:90px}  .delegate-user-details .session-details{flex-direction:row;gap:9px;align-items:center}  .delegate-user-details .session-details .last-session{margin:0}  .delegate-user-details .vertical-sep{display:inline;color:#979797;opacity:.25}  .delegate-user-details .status-session{width:100%;margin-top:18px;display:flex;justify-content:space-between;flex-direction:row}  .delegate-user-details .status-session .mobile-icons{display:flex;gap:12px}  .delegate-user-details .status-session .mobile-icons em{cursor:pointer;font-size:20px}  .historical-revenue app-select .ng-select-container{width:120px!important}  .select-btn{display:none}  .mobile-select-btn{display:block;margin-top:12px}  .remove-delegate-icon{display:block!important;padding:12px 12px 0;margin-left:auto;text-align:end;font-size:18px;line-height:16px;color:#f27474e8;cursor:pointer}  .mobile-listing{display:block!important;padding:0 12px}  .listing{display:none}  .not-found{margin-bottom:12px}}  .theme-whiteLabel .user-name-row .active{color:var(--configThemeColor)!important}  .theme-whiteLabel .user-name-row .last-session{color:var(--configThemeColor)!important}']}),i})();var $p=d(87919),jn=d(44689),Xn=d(23854);let eo=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-welcome-message-skeleton"]],standalone:!0,features:[e.jDz],decls:11,vars:0,consts:[[1,"skeleton-welcome-message"],[1,"skeleton-title"],["className","h-20 w-250 r-4 c-bgt"],[1,"skeleton-subtext"],["className","h-14 w-100% r-4 c-bgt"],["className","h-14 w-80% r-4 c-bgt"],[1,"skeleton-video"],["className","h-100% w-100% r-12 c-bgt"],[1,"skeleton-textarea"],["className","h-100 w-100% r-20 c-bgt"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"app-skeleton",4)(6,"app-skeleton",5),e.qZA(),e.TgZ(7,"div",6),e._UZ(8,"app-skeleton",7),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"app-skeleton",9),e.qZA()())},dependencies:[p.ez,ie._,pe],styles:[".skeleton-welcome-message[_ngcontent-%COMP%]{padding:12px}@media (min-width: 992px){.skeleton-welcome-message[_ngcontent-%COMP%]{padding:30px 0 0}}.skeleton-title[_ngcontent-%COMP%]{margin-bottom:12px}.skeleton-subtext[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}.skeleton-video[_ngcontent-%COMP%]{aspect-ratio:16/9;margin-bottom:20px}.skeleton-textarea[_ngcontent-%COMP%]{margin-bottom:20px}"]}),i})();var Xp=d(33460);const eg=["enableToggle"],tg=["filePicker1"];function ng(i,s){1&i&&e._UZ(0,"app-welcome-message-skeleton")}
1function og(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",7),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",8),e._uU(6),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Oqu(t.Fields.WELCOME_MESSAGE)}}function ig(i,s){1&i&&(e.TgZ(0,"em"),e._uU(1,"+"),e.qZA())}function ag(i,s){1&i&&(e.TgZ(0,"span"),e._uU(1,"Upload Video"),e.qZA())}function sg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",30)(1,"label",31)(2,"input",32,33),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw(4);return e.KtG(a.fileChangeOnUploadVideo(o))}),e.qZA(),e.YNc(4,ig,2,0,"em",0),e.YNc(5,ag,2,0,"span",0),e.qZA(),e.TgZ(6,"p",34),e._uU(7,"Any MP4 or MOV file up to 512MB"),e.qZA()()}if(2&i){const t=e.oxw(4);e.xp6(2),e.Q6J("accept",t.validationMessage.ACCEPTED_VIDEO_FORMATS),e.xp6(2),e.Q6J("ngIf",!t.showProgress),e.xp6(1),e.Q6J("ngIf",!t.showProgress)}}function rg(i,s){if(1&i&&(e.TgZ(0,"div",35),e._UZ(1,"circle-progress",36),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("percent",t.percent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",t.cs.isWhiteLabelWeb?null==t.cs.whiteLabelData||null==t.cs.whiteLabelData.data||null==t.cs.whiteLabelData.data.whiteLabel?null:t.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}const lg=function(){return{autoPlay:!0,muted:!0}};function cg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",39)(1,"div",40)(2,"div",41),e._UZ(3,"vjs-ivs-player",42),e.ALo(4,"videoOption"),e.TgZ(5,"a",43),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.closeVideo())}),e._uU(6,"\xd7"),e.qZA()()()()}if(2&i){const t=e.oxw(5);e.xp6(2),e.Q6J("ngClass",t.isPortrait?"reel-video-card":""),e.xp6(1),e.Q6J("options",e.xi3(4,2,t.resItems,e.DdM(5,lg)))}}const dg=function(i,s){return{"videoPreviewer-container":i,"videoPreviewer-welcome-container":s}};function pg(i,s){if(1&i&&(e.TgZ(0,"div",37),e.YNc(1,cg,7,6,"div",38),e.qZA()),2&i){const t=e.oxw(4);e.Q6J("ngClass",e.WLB(2,dg,!t.isPortrait,t.isPortrait)),e.xp6(1),e.Q6J("ngIf",null!==t.isPortrait)}}function gg(i,s){1&i&&e._UZ(0,"span",44)}const _g=function(i,s){return{"reel-card-wrapper":i,"video-card-wrapper":s}};function ug(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"form",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"div",21),e.YNc(5,sg,8,3,"div",22),e.YNc(6,rg,2,14,"div",23),e.YNc(7,pg,2,5,"div",24),e.qZA()()()(),e._UZ(8,"app-dynamic-form-builder",25),e.TgZ(9,"div",26)(10,"div",19)(11,"div",20)(12,"p")(13,"span"),e._uU(14,"Note:"),e.qZA(),e._uU(15),e.qZA()()()(),e.TgZ(16,"div",27)(17,"button",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onWelcomeMessageSubmit())}),e.YNc(18,gg,1,0,"span",29),e._uU(19),e.qZA()()()}if(2&i){const t=e.oxw(3);e.Q6J("formGroup",t.addWelcomeForm),e.xp6(1),e.Q6J("ngClass",e.WLB(11,_g,t.isPortrait,!t.isPortrait)),e.xp6(4),e.Q6J("ngIf",0===(null==t.resItems?null:t.resItems.length)&&!t.showProgress),e.xp6(1),e.Q6J("ngIf",t.showProgress&&t.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",null==t.resItems?null:t.resItems.length),e.xp6(1),e.Q6J("form",t.form)("fields",t.fields),e.xp6(7),e.hij(" ",t.MessageConst.WELCOME_MESSAGE_NOTE," "),e.xp6(2),e.Q6J("disabled",t.addWelcomeForm.invalid||!(null!=t.resItems&&t.resItems.length)||t.form.invalid||t.isSubmitting),e.xp6(1),e.Q6J("ngIf",t.isSubmitting),e.xp6(1),e.hij(" ",t.isUpdateVideoMessage?t.ButtonConst.updateNow:t.ButtonConst.publishNow," ")}}function mg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"div"),e._uU(4),e.qZA()(),e.TgZ(5,"div",12)(6,"app-toggle-enable",13,14),e.NdJ("toggleChanged",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.toggleChanged(o))}),e.qZA()()(),e.TgZ(8,"p",15),e._uU(9),e.qZA(),e.YNc(10,ug,20,14,"form",16),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.MessageConst.ADD_WELCOME_VIDEO," "),e.xp6(2),e.Q6J("isPostScheduled",t.isPostScheduled)("adminMarkedDisabled",t.adminMarkedDisabled)("currentState",t.enable)("disableMessage",t.MessageConst.DISABLE_WELCOME_MESSAGE)("enableMessage",t.MessageConst.ENABLE_WELCOME_MESSAGE)("isWelcomeMessage",!0),e.xp6(3),e.hij(" ",t.MessageConst.WELCOME_MESSAGE_TITLE_DESC," "),e.xp6(1),e.Q6J("ngIf",t.resItems)}}
1function fg(i,s){if(1&i&&(e.TgZ(0,"div",2),e.YNc(1,og,7,1,"div",3),e.YNc(2,mg,11,9,"div",4),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(1),e.Q6J("ngIf",t._cs.isBrowser&&!t.isLoading)}}let hg=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b,w,L,j,W,ee,Te){this._fb=n,this.store=o,this.uploadService=a,this._router=r,this._apiCallService=l,this.cdRef=h,this.modalService=b,this.cs=w,this.formService=L,this.modalHandlerService=j,this.authService=W,this.headerFooterStateService=ee,this.apiCacheService=Te,this.videosForUploading=[],this.videoSelected=!1,this.resItems=[],this.timestamp=null,this.enable=!0,this.isPostScheduled=!1,this.adminMarkedDisabled=!1,this.isPostDataFetched=!1,this.submitted=!1,this.mainLoader=!1,this.images=[],this.imageChangedEvent="",this.isPortrait=null,this.percent=0,this.showProgress=!1,this.destroy$=new q.x,this.Application=_.Mx,this.imageUploadToS3=[],this.ButtonConst=S.zx,this.MessageConst=S.Vm,this.Fields=M.Iv,this.validationMessage=M.hv,this.isUpdateVideoMessage=!1,this.restrictedImages=[],this.isSubmitting=!1,this.isLoading=!0,this._cs=g.get(A.v),this.initAddWelcomeForm()}ngOnInit(){if(this._cs.isBrowser){this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.TEXT_AREA,label:"",placeholder:"Enter Welcome Message",name:"welcome_description",class:"col-12",maxlength:200,validation:{required:{message:"Message is required"},maxlength:{value:200,message:"Maximum 200 characters are allowed"}}}]}]}),this.form=this.formService.toFormGroup(this.fields);const n=this.form.get("welcome_description");n&&(n.setValidators([...n.validator?[n.validator]:[],this.noWhitespace]),n.updateValueAndValidity()),this.getUserProfile()}}getWelcomeVideoMessage(n){this._apiCallService.get(`${x.Y9.welcomeMessage}/${n}`,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status&&(Object.keys(a.data).length>0?(this.isUpdateVideoMessage=!!a.data?.media_url?.[0],this.addWelcomeForm.patchValue({video_url:a.data?.media_url?.[0]||"",feed_preview_image_url:a.data?.feed_preview_image_url||""}),this.form.patchValue({welcome_description:a.data?.description}),a.data.media_url?.[0]&&(this.timestamp=(0,de.Oy)(a.data.media_url?.[0]),this.isPortrait=(0,de.p4)(a.data.media_url?.[0],["post"])===_.Mx.PORTRAIT,this.resItems.push(a.data?.media_url?.[0])),this.enable=a.data?.is_active,this.adminMarkedDisabled=a.data?.admin_marked_disabled||!1):this.form.patchValue({welcome_description:this.authService.isWhiteLabelWebsite()?S.Vm.WELCOME_TO_NEW_FAN_COMMUNITY:S.Vm.WELCOME_TO_MY_TOPFANS}),this.cs.showSuccessMessage(a.message)),this.isLoading=!1},error:a=>{this.cs.showErrorMessage(a.message),this.isLoading=!1}})}initAddWelcomeForm(){this.addWelcomeForm=this._fb.group({video_url:[""],feed_preview_image_url:""})}getUserProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n,this.userProfile?.gsi4pk&&this.getWelcomeVideoMessage(this.userProfile?.gsi4pk)})}toggleChanged(n){this.enable=n}setToggleChange(n){this.isPostDataFetched=!0,this.enableToggle&&(this.enableToggle.enable=n.enable),this.enable=n.enable,this.adminMarkedDisabled=n.adminMarkedDisabled||!1,this.isPostScheduled=n.isPostScheduled}noWhitespace(n){return(n.value||"").trim().length!==_.Mx.ZERO?null:{whitespace:!0}}fileChangeOnUploadVideo(n){if(n.target.files&&n.target.files[_.Mx.ZERO]){const o=n.target.files[_.Mx.ZERO];if(!this._cs.isValidAudioVideo(o,"video"))return void this._cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE);if(o.size/_.Mx.BYTE_TO_MB>_.Mx.FIVE_ONE_TWO)return void this._cs.showErrorMessage("Video size c
1annot be more than 512 MB.");(0,de.j5)(o).then(r=>{const l={file:URL.createObjectURL(o),videoFile:o};this.videoSelected=!0,this.videosForUploading=[];const g=o.name.split(".").pop()||"mp4",h=`post_${this.timestamp||Date.now()}_${(0,de.D1)()}_${(0,de.D1)()}.${g}`;this.addWelcomeForm.patchValue({video_url:Oe.N.s3Config.bucketUrl+_.D4.createPostVideoFolder+h}),this.videosForUploading.push({file:o,fileName:h,folder:_.D4.createPostVideoFolder}),this.trimModalForVideo(l,r)}).catch(r=>{console.error("Video metadata error:",r)})}}trimModalForVideo(n,o){const a=Object.assign({isMyProfile:!1,otherUserEmail:this.userProfile.email,gsi4pk:this.userProfile?.gsi4pk,username:this.userProfile.user_name,firstName:this.userProfile.first_name,lastName:this.userProfile.last_name,pk:this.userProfile.pk,sk:this.userProfile.original_sk||this.userProfile.sk,originalPk:this.userProfile.gsi1pk,originalSk:this.userProfile.sk,video:n,videoMode:o});this.modalRef=this.modalService.show($p.M,{initialState:a,ignoreBackdropClick:!0,class:"video-trim-modal",keyboard:!1});const r=this.modalRef.content;r&&(r.confirmed.subscribe(l=>{this.videoPreview=l.src,this.uploadVideoFileOnS3Bucket(),this.VideoFeedClicked(l.src)}),r.cancelled.subscribe(()=>{this.videoSelected=!1,this.videosForUploading=[],this.addWelcomeForm.patchValue({video_url:""}),this.removeVideoFeedImage()}))}uploadVideoFileOnS3Bucket(){this.videosForUploading.forEach(n=>{this.showProgress=!0,this.uploadXHR?.abort();const o=this.uploadService.uploadFiles(n);o.on("httpUploadProgress",a=>{this.percent=Math.round(a.loaded/a.total*100),this.cdRef.detectChanges()}),this.uploadXHR=o,this.uploadXHR.promise().then(a=>{const r=(0,Ue.u)(a.Location);this.resItems.push(r),this.uploadXHR=void 0,this.showProgress=!1,this.isPortrait=(0,de.p4)(r,["post"])===_.Mx.PORTRAIT,this.enable=!0},()=>{this.uploadXHR=void 0})})}uploadImageFileToS3Bucket(){var n=this;return(0,ge.Z)(function*(){n.restrictedImages=[];const o=[];return new Promise((a,r)=>{let l=0;n.imageUploadToS3?.length?n.imageUploadToS3.forEach(g=>{n.uploadService.uploadFileData(x.Y9.uploadFile,g,!0).pipe((0,v.R)(n.destroy$)).subscribe({next:h=>{if(h.progressStatus===_.Mx.RESTRICTED&&h.restrictedImage)return n.restrictedImages.push(h.restrictedImage),n.imageUploadToS3=[],n.modalHandlerService.showRestrictedContentCarouselModal(n.restrictedImages),void r();h.progressStatus===_.Mx.COMPLETED&&(o.push(h.data),l++,n.addWelcomeForm.patchValue({feed_preview_image_url:h.data}),l===n.imageUploadToS3.length&&a(o))},error:h=>{n.imageUploadToS3=[],h?.statusCode!==X.SM.RESTRICTED_CONTENT&&n._cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),r(h)}})}):a([])})})()}moveToDashboard(){this._router.navigate(["dashboard"])}removeVideoFromVideos(){this.videoSelected=!1,this.videosForUploading=[],this.percent=0,this.showProgress=!1,this.videoPreview="",this.uploadXHR&&(this.uploadXHR.abort(),this.uploadXHR=void 0),this.filePicker1&&(this.filePicker1.nativeElement.value="")}removeVideoFeedImage(){this.videoFeedPreview=""}VideoFeedClicked(n){const o=(0,Je.Ll)(n),a=`post_${Date.now()}.png`,r=new File([o],a,{type:"image/png"}),l=this.cs.isValidFile(r);if(this.cs.setBodyClass(!0),l){const g=r,h=new FileReader;h.onload=L=>{this.videoFeedPreview=L.target.result},h.readAsDataURL(r);const b=`${_.Mx.POST+Date.now()}_${g.name.toLowerCase().split(" ").join("_")}`,w={file:g,fileName:b,folder:_.D4.createPostImageFolder};this.addWelcomeForm.patchValue({feed_preview_image_url:Oe.N.s3Config.bucketUrl+_.D4.createPostImageFolder+b}),this.imageUploadToS3.push(w),this.videosForUploading.push(w)}else this.removeVideoFeedImage(),this.cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE)}closeVideo(){this.videoPreview="",this.videoFeedPreview="",this.mainLoader=!1,this.resItems=[],this.percent=0,this.showProgress=!1,this.isPortrait=!1,this.uploadXHR&&(this.uploadXHR.abort(),this.uploadXHR=void 0),this.filePicker1&&(this.filePicker1.nativeElement.value="")}uploadImageFile(){this.images.forEach((n,o,a)=>{this.uploadService.uploadFile(n).then(r=>{o===a.length-_.Mx.ONE&&r&&this.addWelcomeDetails()}).catch(r=>{r&&(this.images=[],this._cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG))})})}onWelcomeMessageSubmit(){var n=this;return(0,ge.Z)(function*(){if(n.submitted=!0,!n.addWelcomeForm.invali
1d||n.resItems.length){n.isSubmitting=!0;try{if(n.imageUploadToS3?.length>0){const o=yield n.uploadImageFileToS3Bucket();if(!o.length)return void(n.isSubmitting=!1);n.resItems=o}n.addWelcomeVideo()}catch(o){console.error(o),n.isSubmitting=!1}}})()}addWelcomeVideo(){this.images.length>_.Mx.ZERO?this.uploadImageFile():this.addWelcomeDetails()}addWelcomeDetails(){const n={media_url:[this.addWelcomeForm.value.video_url],feed_preview_image_url:this.addWelcomeForm.value.feed_preview_image_url,description:this.form.get("welcome_description")?.value||"",enable:this.enable},o=x.Y9.welcomeMessage,a=this.isUpdateVideoMessage?this._apiCallService.put(o,n,!0):this._apiCallService.post(o,n,!0);this.isSubmitting=!0,a.pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{r.status&&(this._cs.showSuccessMessage(r.message),this.apiCacheService.clearAllCache(),this._router.navigate([`/${this.userProfile?.user_name}`])),this.videosForUploading=[],this.isSubmitting=!1},error:r=>{this._cs.showErrorMessage(r.message),this.isSubmitting=!1}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.QS),e.Y36(le.yh),e.Y36(Ue.C),e.Y36(O.F0),e.Y36(N.F),e.Y36(e.zs3),e.Y36(e.sBO),e.Y36(k.tT),e.Y36(A.v),e.Y36(Ee.D),e.Y36(on.Y),e.Y36(ue.AuthService),e.Y36(c.P),e.Y36(jn.G))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-edit-welcome-message"]],viewQuery:function(o,a){if(1&o&&(e.Gf(eg,5),e.Gf(tg,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.enableToggle=r.first),e.iGM(r=e.CRH())&&(a.filePicker1=r.first)}},decls:2,vars:2,consts:[[4,"ngIf"],["class","monetize-content edit-welcome-message-container",4,"ngIf"],[1,"monetize-content","edit-welcome-message-container"],["class","inside-header",4,"ngIf"],["class","monetize-editContent",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"monetize-editContent"],[1,"main-title","mobile-main-title","d-flex","align-items-center","justify-content-between","flex-wrap"],[1,"title-main-left"],[1,"title-toggle-right"],[3,"isPostScheduled","adminMarkedDisabled","currentState","disableMessage","enableMessage","isWelcomeMessage","toggleChanged"],["enableToggle",""],[1,"title-desc","mt-3"],["autocomplete","off",3,"formGroup",4,"ngIf"],["autocomplete","off",3,"formGroup"],[1,"monetize-card","addLesson-card",3,"ngClass"],[1,"row"],[1,"col-12"],[1,"form-group","upload-welcome-video"],["class","newpost-upload",4,"ngIf"],["class","show-progress-bar pointer-none",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"form","fields"],[1,"monetize-card","addLesson-card","welcome-message-note"],[1,"monetize-card-button"],["type","button",1,"btn","btn-primary","btn-wide",3,"disabled","click"],["class","loading-spinner",4,"ngIf"],[1,"newpost-upload"],["for","newpostUpload1",1,"uploadFile"],["type","file","name","newpostUpload1","id","filePicker1","appMobileBridgeFileInput","",1,"upload",3,"accept","change"],["filePicker1",""],[1,"extension","pt-2"],[1,"show-progress-bar","pointer-none"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","showSubtitle","backgroundPadding","titleFontSize","titleColor","unitsColor","space"],[3,"ngClass"],["class","newpost-upload-data",4,"ngIf"],[1,"newpost-upload-data"],[1,"uploadContainer"],[1,"uploadFileImageData",3,"ngClass"],[3,"options"],[1,"close",3,"click"],[1,"loading-spinner"]],template:function(o,a){1&o&&(e.YNc(0,ng,1,0,"app-welcome-message-skeleton",0),e.YNc(1,fg,3,2,"div",1)),2&o&&(e.Q6J("ngIf",!a._cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a._cs.isBrowser))},dependencies:[p.mk,p.O5,u._Y,u.JL,u.sg,Le.U,an.e,ce.l,Xn.q,pt.nu,nt.w,eo,Xp.D],styles:[".edit-welcome-message-container[_ngcontent-%COMP%]{margin-top:28px}.edit-welcome-message-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;font-size:14px;line-height:160%;letter-spacing:0px;opacity:.8}.edit-welcome-message-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700!important}.edit-welcome-message-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{background:transparent}.edit-welcome-message-container[_ngcontent-%COMP%]   .title-main-left[_ngcontent-%COMP%]{width:70%}.edit-welcome-message-container[_ngcontent-%COMP%]   .title-main-left[_ngcontent-%COMP%]   .title-desc[_ngcontent-%COMP%]{font-size:16px}@media screen and (max-width: 991px){.edit-welcome-message-container[_ngcontent-%COMP%]   .title-main-left[_ngcontent-%COMP%]{width:100%;order:2}}.edit-welcome-message-container[_ngcontent-%COMP%]   .mobile-main-title[_ngcontent-%COMP%]{position:relative;margin:0!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .title-toggle-right[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-34px;
1min-width:200px;margin:10px 10px 20px 0}@media screen and (max-width: 991px){.edit-welcome-message-container[_ngcontent-%COMP%]   .title-toggle-right[_ngcontent-%COMP%]{position:relative;order:1;margin-left:auto}}.edit-welcome-message-container[_ngcontent-%COMP%]   .video-card-wrapper[_ngcontent-%COMP%]{padding:10px!important;border-radius:20px!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .addLesson-card[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]{min-height:135px}.edit-welcome-message-container[_ngcontent-%COMP%]   .addLesson-card[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .uploadContainer[_ngcontent-%COMP%]{justify-content:center}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]{height:auto!important;width:404px!important;padding:0!important;margin:0 auto 20px}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{height:100%}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]{height:100%;margin:0!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-welcome-container[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-welcome-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%]   .uploadContainer[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-welcome-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%]   .uploadContainer[_ngcontent-%COMP%]{height:100%!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%]   .uploadContainer[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%], .edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .upload-welcome-video[_ngcontent-%COMP%]   .videoPreviewer-welcome-container[_ngcontent-%COMP%]   .newpost-upload-data[_ngcontent-%COMP%]   .uploadContainer[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{top:20px!important;right:20px!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]   .reel-video-card[_ngcontent-%COMP%]{height:100%!important;padding:12px}@media screen and (max-width: 475px){.edit-welcome-message-container[_ngcontent-%COMP%]   .reel-card-wrapper[_ngcontent-%COMP%]{width:100%!important}}.edit-welcome-message-container[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%]{min-height:186px!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .videoPreviewer-container[_ngcontent-%COMP%]   .video-js[_ngcontent-%COMP%]:after{height:auto!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .welcome-message-note[_ngcontent-%COMP%]{padding:0!important;border-radius:12px!important}.edit-welcome-message-container[_ngcontent-%COMP%]   .welcome-message-note[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0!important;padding:16px!important}@media screen and (max-width: 992px){.edit-welcome-message-container[_ngcontent-%COMP%]{margin:0}}  .edit-welcome-message-container .extension{color:var(--theme-interactive-link)!important;opacity:.5!important}  .edit-welcome-message-container .newpost-upload{padding:10px}  .edit-welcome-message-container .newpost-upload .uploadFile{width:200
1px!important;height:68px!important;margin:auto!important}  .edit-welcome-message-container .form-group{margin:0!important}  .edit-welcome-message-container .form-group .form-control{background:transparent;padding:0 12px 8px!important;font-size:18px;font-weight:400;height:70px!important}@media screen and (max-width: 992px){  .edit-welcome-message-container .form-group .form-control{font-size:14px}}  .edit-welcome-message-container .uploadFileImageData{height:auto!important}  .edit-welcome-message-container app-dynamic-form-builder .fb-monetize-card{padding:24px!important;border-radius:20px!important}  .edit-welcome-message-container app-dynamic-form-builder .fb-monetize-card .row .col-12{padding:0!important}  .edit-welcome-message-container .reel-card-wrapper .videoPreviewer-welcome-container .video-js.vjs-fluid{height:100%!important;min-height:690px!important}  .edit-welcome-message-container .reel-card-wrapper .videoPreviewer-welcome-container .video-js.vjs-fluid.vjs-fullscreen video{object-fit:contain!important}  .edit-welcome-message-container .video-card-wrapper .videoPreviewer-container .video-js.vjs-fluid{height:auto!important;aspect-ratio:16/9}  .edit-welcome-message-container .video-card-wrapper .videoPreviewer-container .video-js.vjs-fluid.vjs-fullscreen video{object-fit:contain!important}@media screen and (max-width: 992px){  .edit-welcome-message-container app-dynamic-form-builder form .monetize-card.fb-monetize-card:first-child{border-top-left-radius:20px!important;border-top-right-radius:20px!important}}  .loading-spinner{position:absolute;top:calc(50% - 8px);left:calc(50% - 68px)}"]}),i})();var Cg=d(37652),bg=d(77019),mt=d(66471),B=d(68259),vg=d(74970),xg=d(24580);let to=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-link-in-bio-skeleton"]],standalone:!0,features:[e.jDz],decls:38,vars:0,consts:[[1,"lib-skeleton"],[1,"lib-skeleton__profile-card"],[1,"lib-skeleton__banner"],["className","h-165 w-100% r-8"],[1,"lib-skeleton__profile-image"],["className","h-90 w-90 r-50%"],[1,"lib-skeleton__name"],["className","h-22 w-140 r-4"],[1,"lib-skeleton__bio"],["className","h-40 w-80% r-8"],[1,"lib-skeleton__socials"],["className","h-24 w-24 r-50%"],[1,"lib-skeleton__products"],[1,"lib-skeleton__product-card"],["className","h-20 w-60% r-4"],["className","h-14 w-40% r-4"],["className","h-16 w-90 r-4"],["className","h-18 w-70 r-4"],["className","h-36 w-120 r-20"],["className","h-20 w-75% r-4"],["className","h-16 w-50% r-4"],["className","h-14 w-60% r-4"],["className","h-16 w-100% r-4"],[1,"lib-skeleton__tier-row"],["className","h-14 w-60 r-4"],["className","h-14 w-55% r-4"],["className","h-20 w-65% r-4"],["className","h-16 w-45% r-4"],["className","h-14 w-70% r-4"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1)(3,"div",2),e._UZ(4,"app-skeleton",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"app-skeleton",5),e.qZA(),e.TgZ(7,"div",6),e._UZ(8,"app-skeleton",7),e.qZA(),e.TgZ(9,"div",8),e._UZ(10,"app-skeleton",9),e.qZA(),e.TgZ(11,"div",10),e._UZ(12,"app-skeleton",11)(13,"app-skeleton",11)(14,"app-skeleton",11),e.qZA()(),e.TgZ(15,"div",12)(16,"div",13),e._UZ(17,"app-skeleton",14)(18,"app-skeleton",15)(19,"app-skeleton",16)(20,"app-skeleton",17)(21,"app-skeleton",18),e.qZA(),e.TgZ(22,"div",13),e._UZ(23,"app-skeleton",19)(24,"app-skeleton",20)(25,"app-skeleton",21)(26,"app-skeleton",22),e.TgZ(27,"div",23),e._UZ(28,"app-skeleton",21)(29,"app-skeleton",24),e.qZA(),e.TgZ(30,"div",23),e._UZ(31,"app-skeleton",25)(32,"app-skeleton",24),e.qZA()(),e.TgZ(33,"div",13),e._UZ(34,"app-skeleton",26)(35,"app-skeleton",27)(36,"app-skeleton",28)(37,"app-skeleton",22),e.qZA()()())},dependencies:[p.ez,ie._,pe],styles:[".lib-skeleton[_ngcontent-%COMP%]{display:flex;gap:24px;padding:20px;border-radius:8px;background-color:var(--bgColorLinkInBio, var(--configSecondaryBgColor));min-height:500px;align-items:center}@media screen and (max-width: 992px){.lib-skeleton[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}.lib-skeleton__profile-card[_ngcontent-%COMP%]{width:50%;min-width:255px;padding:10px 10px 20px;background-color:var(--cardBgLinkInBio, var(--configSecondaryBgColor));border-radius:20px;
1display:flex;flex-direction:column;align-items:center;position:relative}@media screen and (max-width: 992px){.lib-skeleton__profile-card[_ngcontent-%COMP%]{width:100%}}.lib-skeleton__banner[_ngcontent-%COMP%]{width:100%;border-radius:8px;overflow:hidden}.lib-skeleton__profile-image[_ngcontent-%COMP%]{margin-top:-45px;background-color:var(--cardBgLinkInBio, var(--configSecondaryBgColor));border-radius:50%;padding:5px;z-index:1}.lib-skeleton__name[_ngcontent-%COMP%]{margin-top:12px}.lib-skeleton__bio[_ngcontent-%COMP%]{margin-top:10px;width:100%;display:flex;justify-content:center}.lib-skeleton__socials[_ngcontent-%COMP%]{display:flex;gap:15px;margin-top:15px}.lib-skeleton__products[_ngcontent-%COMP%]{width:50%;min-width:300px;display:flex;flex-direction:column;gap:16px}@media screen and (max-width: 992px){.lib-skeleton__products[_ngcontent-%COMP%]{width:100%;min-width:250px}}.lib-skeleton__product-card[_ngcontent-%COMP%]{padding:20px;border-radius:16px;display:flex;flex-direction:column;gap:10px}.lib-skeleton__tier-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-radius:8px}"]}),i})();function Pg(i,s){1&i&&(e.TgZ(0,"div",2),e._UZ(1,"app-link-in-bio-skeleton"),e.qZA())}function Og(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-toggle-enable",14),e.NdJ("toggleChanged",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onToggleChange(o))}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("currentState",t.linkInBioEnabled)("disableMessage",t.LINK_IN_BIO_LABELS.DISABLE_MESSAGE)("enableMessage",t.LINK_IN_BIO_LABELS.ENABLE_MESSAGE)}}const Mg=function(){return{label:"COPY LINK",class:"btn btn-primary w-100 w-lg-auto"}};function Tg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",15)(1,"div")(2,"form",16)(3,"div",17)(4,"div",18)(5,"div",19)(6,"span",20),e._uU(7),e.qZA()()(),e.TgZ(8,"app-button",21),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.copyLink())}),e.qZA()(),e.TgZ(9,"div",17),e._UZ(10,"app-info-icon",11),e.TgZ(11,"label",22),e._uU(12),e.qZA(),e.TgZ(13,"label",23),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onIncludeMyReferralLinkToggle(o))}),e._UZ(14,"input",24)(15,"span",25),e.qZA()()()()()}if(2&i){const t=e.oxw(2);e.xp6(7),e.Oqu(t.webSiteUrl),e.xp6(1),e.Q6J("btnField",e.DdM(5,Mg)),e.xp6(2),e.Q6J("message",t.LINK_IN_BIO_LABELS.INCLUDE_MY_REFERRAL_LINK_INFO),e.xp6(2),e.hij(" ",t.LINK_IN_BIO_LABELS.INCLUDE_MY_REFERRAL_LINK," "),e.xp6(2),e.Q6J("checked",t.includeMyReferralLink)}}function wg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"a",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(3,"em",6),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",7),e._uU(7),e.qZA()(),e.TgZ(8,"div",8)(9,"div",9)(10,"div",10),e._uU(11),e.qZA(),e._UZ(12,"app-info-icon",11),e.qZA(),e.YNc(13,Og,1,3,"app-toggle-enable",12),e.qZA(),e.YNc(14,Tg,16,6,"div",13),e._UZ(15,"router-outlet"),e.qZA()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.commonEnums.LINK_IN_BIO),e.xp6(4),e.Oqu(t.commonEnums.LINK_IN_BIO),e.xp6(1),e.Q6J("message",t.InfoIconMessage),e.xp6(1),e.Q6J("ngIf",!t.isDefaultBio||t.isEdit),e.xp6(1),e.Q6J("ngIf",t.linkInBioEnabled&&(!t.isDefaultBio||t.isEdit))}}let Eg=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b,w,L){this.clipboard=n,this.cs=o,this.linkInBioDataService=a,this.cacheService=r,this.authService=l,this.router=g,this.apiCallService=h,this.store=b,this.document=w,this.headerFooterStateService=L,this.commonEnums=X.i4,this.linkInBioEnabled=!0,this.webSiteUrl="",this.isEdit=!1,this.isLoading=!0,this.destroy$=new q.x,this.InfoIconMessage=B.J_,this.PRESET_COLORS=ct,this.isDefaultBio=!1,this.LINK_IN_BIO_LABELS=B.mG,this.includeMyReferralLink=!0,this.window=this.cs.getWindow()}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.linkInBioDataService.linkInBioStatusChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.linkInBioEnabled=n}),this.linkInBioDataService.refreshBioData$.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.getLinkInBioData(!0)}),this.getLinkInBioData(),this.isEdit=this.router.url.includes(ne._1.ADD_LINK_IN_BIO),this.router.events.pipe((0,vg.h)(n=>n instanceof O.m2),(0,v.R)(this.destroy$)).subscribe(n=>{this.isEdit=n.url.includes(ne._1.ADD_LINK_IN_BIO)}),this.linkInBioDataService.bioFormChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.isDefaultBio=n.default||!1}
1),this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{n&&(this.userProfile=n,n?.is_creator||n?.refer_id)&&this.fetchShortenUrl(`auth/signup?key=${n.is_creator?n?.user_name:n?.refer_id}`)}))}fetchShortenUrl(n){if(!this.cs.isBrowser||!this.userProfile)return;const a={url:new URL(n,this.window.location.origin).href,sk:this.userProfile.sk,pk:this.userProfile.pk,firstName:this.userProfile.first_name,lastName:this.userProfile.last_name,profileUrl:this.userProfile.profile_image_url,is_refer:!0};this.apiCallService.put(x.$_.createShortenUrl(),a,!1).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{r?.status&&this.linkInBioDataService.setReferralShortenUrl(`${Oe.N.original_web_url}share/`+r?.data||"")},error:r=>{this.cs.showErrorMessage(r?.message||S.Vm.SOMETHING_WENT_WRONG)}})}getLinkInBioData(n=!1){this.isLoading=!0,this.linkInBioDataService.setLoading(!0),this.cacheService.get(x.Y9.LINK_IN_BIO,"link-in-bio-data",{useStore:!this.authService.isLogin,expiry:3e5},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{if(r.status&&r.details){const l=r.details;if(this.linkInBioEnabled=l.enable,l?.wls_colors?.id){const w={id:l.wls_colors.id,type:Y.STANDARD,background_color:l.wls_colors.background_color,background_text_color:l.wls_colors.background_text_color,button_color:l.wls_colors.button_color,button_text_color:l.wls_colors.button_text_color,card_background_color:l.wls_colors.card_background_color,card_text_color:l.wls_colors.card_text_color};this.PRESET_COLORS.standard={[w.id]:w,...this.PRESET_COLORS.standard},this.linkInBioDataService.notifyStandardColorsUpdated(Object.values(this.PRESET_COLORS.standard))}this.linkInBioDataService.updateLinkInBioStatus(this.linkInBioEnabled),l.link_in_bio_url&&(this.webSiteUrl=l.link_in_bio_url),this.includeMyReferralLink=!!l.referral_link,l.referral_link&&this.linkInBioDataService.setReferralShortenUrl(l.referral_link),this.linkInBioDataService.setIncludeMyReferralLink(this.includeMyReferralLink);const g=this.normalizeSocialHandles(l.social_handles||[]);this.linkInBioDataService.updateBioForm({updated_profile_url:l?.user_name,profile_image_url:l?.profile_image_url,banner_image_url:l?.banner_image_url,bio:l?.bio,is_creator:l?.is_creator,gsi4pk:l?.gsi4pk,publicly_displayed_name:l?.publicly_displayed_name,user_name:l?.user_name,social_handles:g,first_name:l?.first_name,last_name:l?.last_name,default:l?.default});let b=null;if(l.appearance){const{id:w,type:L}=l.appearance;if(L===Y.CUSTOM)b=l.appearance;else{const j={...this.PRESET_COLORS.standard,...this.PRESET_COLORS.theme};b=Object.values(j).find(W=>W.id===w&&W.type===L)||null}}if(b||(b=this.PRESET_COLORS.standard[B.Bg.DEFAULT_COLOR]),this.linkInBioDataService.updateLinkInBioAppearance(b),this.applyColorsToCss(b),l?.default_custom_appearance?.background_color){const w={...this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR],background_color:l.default_custom_appearance.background_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].background_color,background_text_color:l.default_custom_appearance.background_text_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].background_text_color,card_background_color:l.default_custom_appearance.card_background_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].card_background_color,card_text_color:l.default_custom_appearance.card_text_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].card_text_color,button_color:l.default_custom_appearance.button_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].button_color,button_text_color:l.default_custom_appearance.button_text_color||this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR].button_text_color};this.linkInBioDataService.updateDefaultCustomColor(w)}else this.linkInBioDataService.updateDefaultCustomColor(b?.type===Y.CUSTOM?b:this.PRESET_COLORS.custom[B.Bg.DEFAULT_CUSTOM_COLOR])}r?.items&&this.linkInBioDataService.updateBioItems(r?.items||[]),this.isLoading=!1,this.linkInBioDataService.setLoading(!1),n&&this.router.navigate([ne._1.EDIT_PREFERENCE_LIB])},error:r=>{this.isLoading=!1,this.linkInBioDataService.setLoading(!1),this.cs.showErrorMessage(r?.message||S.Vm.SOMETHING_WENT_WRONG)}})}normalizeSocialHandles(n){return Array.isArray(n)?n.map(o=>{const a=Object.keys(o)[0],r=o[a],l=bg.G.find(h=>h.key===a);if(!l||!r)return null;let g="";if(r){const b=r.trim().replace(/^https?:\/\//,"").replace(/^www\./,"").split("/");g=b[b.length-1]||""}return{icon:l.icon,name:l.name,platform:l.key,url:r||"",username:g,previewIcon:l.previewIcon}}
1).filter(Boolean):[]}onToggleChange(n){const o=this.linkInBioEnabled;this.linkInBioEnabled=n,this.linkInBioDataService.updateLinkInBioStatus(this.linkInBioEnabled),this.updateLinkInBioSettings({enable:n},()=>{this.linkInBioEnabled=o,this.linkInBioDataService.updateLinkInBioStatus(this.linkInBioEnabled)})}onIncludeMyReferralLinkToggle(n){n.preventDefault(),n.stopPropagation();const o=this.includeMyReferralLink,a=!this.includeMyReferralLink,r=a?this.linkInBioDataService.getReferralShortenUrl():"";!a||r?(this.includeMyReferralLink=a,this.linkInBioDataService.setIncludeMyReferralLink(this.includeMyReferralLink),this.updateLinkInBioSettings({referral_link:r},()=>{this.includeMyReferralLink=o,this.linkInBioDataService.setIncludeMyReferralLink(this.includeMyReferralLink)})):this.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG)}updateLinkInBioSettings(n,o){this.apiCallService.put(x.Y9.LINK_IN_BIO_MANAGE,{action:B.mG.UPDATE,details:n},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{r?.status?(this.cacheService.clearCache("link-in-bio-data"),r?.message&&this.cs.showSuccessMessage(r.message)):(o?.(),this.cs.showErrorMessage(r?.message||S.Vm.SOMETHING_WENT_WRONG))},error:r=>{o?.(),this.cs.showErrorMessage(r?.message||S.Vm.SOMETHING_WENT_WRONG)}})}copyLink(){this.clipboard.copy(this.webSiteUrl),this.cs.showSuccessMessage(B.mG.LINK_COPIED)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}moveToDashboard(){this.router.navigate([ne._1.DASHBOARD])}applyColorsToCss(n){if(this.cs.isBrowser){let o=this.document.getElementById("link-in-bio-theme-variables");o||(o=this.document.createElement("style"),o.id="link-in-bio-theme-variables",this.document.head.appendChild(o)),o.textContent=`\n        :root {\n          --bgColorLinkInBio: ${n?.background_color};\n          --bgTextColorLinkInBio: ${n?.background_text_color};\n          --cardBgLinkInBio: ${n?.card_background_color};\n          --cardTextColorLinkInBio: ${n?.card_text_color};\n          --buttonColorLinkInBio: ${n?.button_color};\n          --buttonTextColorLinkInBio: ${n?.button_text_color};\n        }\n      `}}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(xg.TU),e.Y36(A.v),e.Y36(mt.y),e.Y36(Cg.Q),e.Y36(ue.AuthService),e.Y36(O.F0),e.Y36(N.F),e.Y36(le.yh),e.Y36(p.K0),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-link-in-bio-container"]],decls:2,vars:2,consts:[["class","monetize-content preview-link-in-bio mt-4",4,"ngIf"],["class","monetize-content preview-link-in-bio",4,"ngIf"],[1,"monetize-content","preview-link-in-bio","mt-4"],[1,"monetize-content","preview-link-in-bio"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"upper-content","full-width"],[1,"d-flex","align-items-center","justify-content-center"],[1,"header-label"],[3,"message"],["class","toggle-btn",3,"currentState","disableMessage","enableMessage","toggleChanged",4,"ngIf"],["class","mt-3 bio-link",4,"ngIf"],[1,"toggle-btn",3,"currentState","disableMessage","enableMessage","toggleChanged"],[1,"mt-3","bio-link"],[1,"bio-link-form"],[1,"bio-link-form-item"],[1,"personal-info-prefix-content"],[1,"form-control","predefined-url"],[1,"span","url-disable"],[3,"btnField","handleButtonClick"],[1,"label-margin","label-white-theme","mb-0"],[1,"switch","switch-positing",3,"click"],["type","checkbox",3,"checked"],[1,"slider"]],template:function(o,a){1&o&&(e.YNc(0,Pg,2,0,"div",0),e.YNc(1,wg,16,5,"div",1)),2&o&&(e.Q6J("ngIf",a.isLoading),e.xp6(1),e.Q6J("ngIf",a.webSiteUrl&&!a.isLoading))},dependencies:[p.O5,u._Y,u.JL,u.F,ke.e,ae.r,ce.l,O.lC,nt.w,to],styles:[".upper-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px}@media (max-width: 992px){.upper-content[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{min-width:unset}}.disabled_toggle[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;cursor:not-allowed}.header-label[_ngcontent-%COMP%]{font-size:24px;font-weight:700;line-height:28.13px;text-align:left}.full-width[_ngcontent-%COMP%]{width:100%}.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}@media (max-width: 768px){.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]{justify-content:flex-end}}.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]   .personal-info-prefix-content[_ngcontent-%COMP%]{width:auto!important;overflow:hidden!important}.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]   .personal-info-prefix-content[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor)!important;color:var(--configPostTextColor)!important;border:0px;height:40px;line-height:1!important;box-shadow:none!important;width:auto}.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]   .personal-info-prefix-content[_ngcontent-%COMP%]   .form-control.predefined-url[_ng
1content-%COMP%]{border-radius:50px!important;padding:12px 24px!important;overflow:hidden;text-overflow:ellipsis}.bio-link[_ngcontent-%COMP%]   .bio-link-form[_ngcontent-%COMP%]   .personal-info-prefix-content[_ngcontent-%COMP%]   .form-control.predefined-url[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap}.bio-link[_ngcontent-%COMP%]   .bio-link-form-item[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bio-link[_ngcontent-%COMP%]   .bio-link-form-item[_ngcontent-%COMP%]   .label-margin[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:var(--configBgTextColor)!important}@media screen and (max-width: 992px){.preview-link-in-bio[_ngcontent-%COMP%]{padding:0 0 22px!important;margin:0 12px}}.preview-link-in-bio[_ngcontent-%COMP%]{margin-top:15px}"]}),i})();var we=d(44350),$=d(61375),je=d(44077);const Ag=["generalActionEditModal"],yg=function(){return{class:"modal-md"}};let Sg=(()=>{const s=class{constructor(n,o){this.formService=n,this.cs=o,this.isModalOpen=!1,this.selectedAction=null,this.saveChanges=new e.vpe,this.commonEnums=X.i4,this.modalHeaderLabel="Edit General Action",this.destroy$=new q.x,this.fields=B.zu}ngOnInit(){this.cs.isBrowser&&(this.form=this.formService.toFormGroup(this.fields))}openModal(){if(this.generalActionEditModal?.openModal(),this.selectedAction&&this.selectedAction.value){const n=this.selectedAction.value;this.form.patchValue({action_label:n.value||n.title})}else this.form?.reset()}closeModal(){this.generalActionEditModal?.closeModal()}onSaveChanges(){if(!this.form?.invalid){const n=this.form.getRawValue();this.saveChanges.emit(n),this.closeModal()}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-general-action-edit-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(Ag,5),2&o){let r;e.iGM(r=e.CRH())&&(a.generalActionEditModal=r.first)}},inputs:{isModalOpen:"isModalOpen",selectedAction:"selectedAction"},outputs:{saveChanges:"saveChanges"},decls:4,vars:10,consts:[["dynamicClass","general-action-edit-modal",3,"headerLabel","confirmBtnLabel","cancelBtnLabel","showConfirmationBtn","showCrossBtn","disableConfirmButton","modalOptions","confirmed","canceled"],["generalActionEditModal",""],[1,"general-action-edit-modal-content"],[3,"form","fields"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.onSaveChanges()})("canceled",function(){return a.closeModal()}),e.TgZ(2,"div",2),e._UZ(3,"app-dynamic-form-builder",3),e.qZA()()),2&o&&(e.Q6J("headerLabel",a.modalHeaderLabel)("confirmBtnLabel",a.commonEnums.SAVE_ACTION)("cancelBtnLabel",a.commonEnums.CANCEL)("showConfirmationBtn",!0)("showCrossBtn",!0)("disableConfirmButton",a.form.invalid)("modalOptions",e.DdM(9,yg)),e.xp6(3),e.Q6J("form",a.form)("fields",a.fields))},dependencies:[Le.U,U.F],styles:[".general-action-edit-modal .modal-body{padding:0!important}  .general-action-edit-modal .modal-body .fb-monetize-card{text-align:left!important}  .general-action-edit-modal .modal-body .form-control{background:var(--configBgColor)!important;color:var(--configBgTextColor)!important}  .general-action-edit-modal .modal-body input::placeholder{color:var(--configBgTextColor)!important}"]}),i})();var Ig=d(52382),kg=d(40175),Dg=d(65535),Ng=d(35531),no=d(58691),oo=d(39769),io=d(56717),ao=d(25087),Lg=d(99306);const Zg=["generalActionEditModal"],Fg=["bioTextarea"];function Ug(i,s){1&i&&e._UZ(0,"div",33)}function Bg(i,s){if(1&i&&(e.TgZ(0,"div",34),e._UZ(1,"circle-progress",35),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("percent",t.bannerPercent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",t.cs.isWhiteLabelWeb?null==t.cs.whiteLabelData||null==t.cs.whiteLabelData.data||null==t.cs.whiteLabelData.data.whiteLabel?null:t.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}const so=function(i){return{cropperMinWidth:1275,cropperMinHeight:495,maintainAspectRatio:!0,aspectRatio:i}},Rg=function(i){return{isMultiple:!1,imageType:"profileBanner",cropperOptions:i}};
1function qg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",36)(1,"label")(2,"input",37,38),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.pickBannerImage(o))})("mobileFileChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.mobileChange(o))}),e.qZA(),e.TgZ(4,"span"),e._UZ(5,"em",39),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(2),e.Q6J("accept",t.Application.IMAGE_ACCEPT_TYPES)("fileConfig",e.VKq(4,Rg,e.VKq(2,so,1275/495)))}}function Gg(i,s){if(1&i&&(e.TgZ(0,"div",34),e._UZ(1,"circle-progress",35),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("percent",t.profilePercent)("radius",23)("outerStrokeWidth",3)("innerStrokeWidth",3)("outerStrokeColor",t.cs.isWhiteLabelWeb?null==t.cs.whiteLabelData||null==t.cs.whiteLabelData.data||null==t.cs.whiteLabelData.data.whiteLabel?null:t.cs.whiteLabelData.data.whiteLabel.theme_color:"#09c6da")("innerStrokeColor","#47665f")("animation",!1)("animationDuration",300)("showSubtitle",!1)("backgroundPadding",0)("titleFontSize",10)("titleColor","#ffffff")("unitsColor","#ffffff")("space",-3)}}const ro=function(){return{cropperMinWidth:300,cropperMinHeight:250,cropperStaticWidth:null,cropperStaticHeight:null,aspectRatio:1,maintainAspectRatio:!0}},Yg=function(i){return{isMultiple:!1,imageType:"profileImage",cropperOptions:i,roundCropper:!0}};function Jg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",40)(1,"label")(2,"input",37,41),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.fileChangeEvent(o))})("mobileFileChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.mobileChange(o))}),e.qZA(),e.TgZ(4,"span"),e._UZ(5,"em",39),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(2),e.Q6J("accept",t.Application.IMAGE_ACCEPT_TYPES)("fileConfig",e.VKq(3,Yg,e.DdM(2,ro)))}}function Vg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",42)(1,"div",43),e._UZ(2,"div",44),e.TgZ(3,"div",45)(4,"button",46),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancelCrop())}),e._uU(5," Cancel "),e.qZA(),e.TgZ(6,"button",47),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.pickProfile())}),e._uU(7," Upload "),e.qZA()()()()}}function Wg(i,s){if(1&i&&e._UZ(0,"app-tick-icon",50),2&i){const t=e.oxw(2);e.Q6J("creatorData",t.creatorData)}}function Hg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",48),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateToProfile(o.creatorData))}),e.TgZ(1,"p"),e._uU(2),e.YNc(3,Wg,1,1,"app-tick-icon",49),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(2),e.AsE("",null==t.creatorData?null:t.creatorData.first_name,"",null!=t.creatorData&&t.creatorData.last_name?" "+(null==t.creatorData?null:t.creatorData.last_name):""," "),e.xp6(1),e.Q6J("ngIf",null==t.creatorData?null:t.creatorData.is_creator)}}function Qg(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"span")(2,"em",53),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.navigateToSocialLink(a.url))}),e.qZA()(),e.BQk()}if(2&i){const t=s.$implicit;e.xp6(2),e.Tol(t.previewIcon)}}function Kg(i,s){if(1&i&&(e.TgZ(0,"div",51),e.YNc(1,Qg,3,2,"ng-container",52),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.socialHandles)}}function zg(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onOpenSocialLinksModal())}),e._UZ(1,"em",55),e.qZA()}}function $g(i,s){1&i&&e.GkF(0)}function jg(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",56),e.YNc(2,$g,1,0,"ng-container",57),e.qZA(),e.BQk()),2&i){e.oxw();const t=e.MAs(27);e.xp6(2),e.Q6J("ngTemplateOutlet",t)}}function Xg(i,s){1&i&&e.GkF(0)}function e_(i,s){if(1&i&&(e.TgZ(0,"div",58),e.YNc(1,Xg,1,0,"ng-container",57),e.qZA()),2&i){e.oxw();const t=e.MAs(27);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function t_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-share-details-preview",71),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.handleProductClick(o))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.Q6J("selectedShareDetails",t.value)("creatorUserName",null==n.creatorData?null:n.creatorData.user_name)("isAllowedToRedirect",!1)("useCache",!0)("isPreventClick",!0)("isAllowedToUnlock",!1)("showLoader",!1)("isLIBForm",!0)}}
1function n_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-portfolio-item-preview",72),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.handleProductClick(o))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);let o;e.Q6J("creatorId",(null==n.creatorData?null:n.creatorData.user_name)||"")("contentSk",null!==(o=null!==(o=null==t||null==t.value?null:t.value.sk)&&void 0!==o?o:null==t||null==t.value?null:t.value.id)&&void 0!==o?o:"")("portfolioType",null==t||null==t.value?null:t.value.type)("isAlbum",!1===(null==t||null==t.value?null:t.value.isIndividual))("creatorProfile",n.creatorData)("isPreventClick",!0)("customStyle","lib-portfolio-preview")("useCache",!0)("selectorMaxItems",n.Application.TWO)}}function o_(i,s){if(1&i&&(e.TgZ(0,"div",73),e._UZ(1,"app-feed-content-preview",74),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("profile",n.creatorData)("feedContentData",t.value)("heading",null==t||null==t.value?null:t.value.title)("modalClass","gift-details-modal gift-details-modal-link-in-bio")}}function i_(i,s){if(1&i&&(e.TgZ(0,"div",84)(1,"div",85),e._UZ(2,"img",86),e.qZA()()),2&i){const t=e.oxw(2).$implicit;e.xp6(2),e.Q6J("src",null==t||null==t.value?null:t.value.image,e.LSH)("alt",(null==t||null==t.value?null:t.value.event_name)||(null==t||null==t.value?null:t.value.title))}}const a_=function(){return{showMapIcon:!0,showMapIconOnLeft:!0,fontSize:"18px"}};function s_(i,s){if(1&i&&(e.TgZ(0,"div",87),e._UZ(1,"app-venue-address-display",88),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("address",null==t?null:t.value)("showVenueName",!0)("emphasizeFirstLine",!1)("showState",!0)("showCountry",!0)("showZip",!1)("showCity",!0)("showStreet",!1)("mapIconConfig",e.DdM(9,a_))}}function r_(i,s){if(1&i&&(e.TgZ(0,"div",87),e._UZ(1,"em",89),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(2).$implicit,n=e.oxw(2);e.xp6(3),e.Oqu(n.getFormattedEventDateTime(t))}}const l_=function(i){return{type:"button",class:"btn btn-primary",label:i}};function c_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",75),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.handleProductClick(o))}),e.TgZ(1,"div",76),e.YNc(2,i_,3,2,"div",77),e.TgZ(3,"div",78)(4,"div",79)(5,"p",80),e._uU(6),e.qZA(),e.YNc(7,s_,2,10,"div",81),e.ALo(8,"addressFormatting"),e.YNc(9,r_,4,1,"div",81),e.TgZ(10,"div",82)(11,"app-button",83),e.NdJ("handleButtonClick",function(o){e.CHM(t);const a=e.oxw().$implicit,r=e.oxw(2);return o.stopPropagation(),e.KtG(r.handleProductClick(a))}),e.qZA()()()()()()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(2),e.Q6J("ngIf",null==t||null==t.value?null:t.value.image),e.xp6(1),e.Q6J("ngClass",null!=t&&null!=t.value&&t.value.image?"col-8":"col-12"),e.xp6(3),e.Oqu((null==t||null==t.value?null:t.value.event_name)||(null==t||null==t.value?null:t.value.title)),e.xp6(1),e.Q6J("ngIf",e.lcZ(8,6,null==t?null:t.value)),e.xp6(2),e.Q6J("ngIf",n.getFormattedEventDateTime(t)),e.xp6(2),e.Q6J("btnField",e.VKq(8,l_,n.BIO_URL_SEGMENTS.VIEW_TICKET))}}function d_(i,s){if(1&i&&(e.TgZ(0,"div",73),e._UZ(1,"app-monetize-carousel",90),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("monetizeType",n.GENERAL_ACTION_ITEMS_REVERSE_MAP[null==t||null==t.value?null:t.value.name])("profile",n.creatorData)("generalActionIconClass",null==t||null==t.value?null:t.value.iconClass)("heading",null==t||null==t.value?null:t.value.value)}}function p_(i,s){if(1&i&&(e.TgZ(0,"div",73),e._UZ(1,"app-welcome-video-preview",92),e.qZA()),2&i){const t=e.oxw(2).$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("profile",n.creatorData)("generalActionIconClass",null==t||null==t.value?null:t.value.iconClass)("heading",null==t||null==t.value?null:t.value.value)}}function g_(i,s){if(1&i&&e._UZ(0,"em"),2&i){const t=e.oxw(4).$implicit;e.Tol(null==t||null==t.value?null:t.value.iconClass)}}function __(i,s){if(1&i&&e._UZ(0,"img",98),2&i){const t=e.oxw(6);e.Q6J("src",t.profilePreview,e.LSH)}}function u_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",94),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3).$implicit,a=e.oxw(2);return e.KtG(a.handleProductClick(o))}),e.TgZ(1,"div",95),e.YNc(2,g_,1,2,"em",96),e.YNc(3,__,1,1,"img",97),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.qZA()()}if(2&i){const t=e.oxw(3).$implicit;e.xp6(2),e.Q6J("ngIf",null==t||null==t.value?null:t.value.iconClass),e.xp6(1),e.Q6J("ngIf",!(null!=t&&null!=t.value&&t.value.iconClass)),e.xp6(2),e.Oqu((null==t||null==t.value?null:t.value.value)||(null==t||null==t.value?null:t.value.title))}}
1function m_(i,s){if(1&i&&e.YNc(0,u_,6,3,"div",93),2&i){const t=e.oxw(2).$implicit,n=e.oxw(2);e.Q6J("ngIf",(null==t||null==t.value?null:t.value.action_type)===n.BIO_ACTION_TYPES.GENERAL_ACTION||(null==t||null==t.value?null:t.value.action_type)===n.BIO_ACTION_TYPES.EXTERNAL_ACTION)}}function f_(i,s){if(1&i&&(e.YNc(0,p_,2,3,"div",66),e.YNc(1,m_,1,1,"ng-template",null,91,e.W1O)),2&i){const t=e.MAs(2),n=e.oxw().$implicit,o=e.oxw(2);e.Q6J("ngIf",o.GENERAL_ACTION_ITEMS.includes(null==n||null==n.value?null:n.value.name))("ngIfElse",t)}}function h_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",99),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.editItem(o))}),e._UZ(1,"em",55),e.qZA()}}function C_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"span",100),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.removeItem(null==o||null==o.value?null:o.value.sk))}),e._UZ(1,"em",101),e.qZA()}}function b_(i,s){1&i&&(e.TgZ(0,"span",102),e._UZ(1,"em",103),e.qZA())}const v_=function(i){return{"mobile-product-item-container":i}};function x_(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",61),e.NdJ("cdkDragStarted",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.isDragging=!0)})("cdkDragEnded",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.isDragging=!1)}),e.YNc(2,t_,1,8,"app-share-details-preview",62),e.YNc(3,n_,1,9,"app-portfolio-item-preview",63),e.YNc(4,o_,2,4,"div",64),e.YNc(5,c_,12,10,"div",65),e.YNc(6,d_,2,4,"div",66),e.YNc(7,f_,3,2,"ng-template",null,67,e.W1O),e.YNc(9,h_,2,0,"span",68),e.YNc(10,C_,2,0,"span",69),e.YNc(11,b_,2,0,"span",70),e.qZA(),e.BQk()}if(2&i){const t=s.$implicit,n=e.MAs(8),o=e.oxw(2);e.xp6(1),e.Q6J("cdkDragDisabled",o.isFanPreview)("ngClass",e.VKq(11,v_,o.isMobileView)),e.xp6(1),e.Q6J("ngIf",(null==t||null==t.value?null:t.value.action_type)===o.BIO_ACTION_TYPES.SPECIFIC_ITEM),e.xp6(1),e.Q6J("ngIf",(null==t||null==t.value?null:t.value.action_type)===o.BIO_ACTION_TYPES.SPECIFIC_PORTFOLIO),e.xp6(1),e.Q6J("ngIf","specific_feed_content"===(null==t||null==t.value?null:t.value.action_type)),e.xp6(1),e.Q6J("ngIf",(null==t||null==t.value?null:t.value.action_type)===o.BIO_ACTION_TYPES.SPECIFIC_EVENT_TICKETING),e.xp6(1),e.Q6J("ngIf",o.GENERAL_ACTION_ITEMS_REVERSE_MAP[null==t||null==t.value?null:t.value.name]&&"specific_feed_content"!==(null==t||null==t.value?null:t.value.action_type))("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",!o.isFanPreview&&(null==t||null==t.value?null:t.value.action_type)!==o.BIO_ACTION_TYPES.SPECIFIC_ITEM&&(null==t||null==t.value?null:t.value.action_type)!==o.BIO_ACTION_TYPES.SPECIFIC_FEED_CONTENT&&(null==t||null==t.value?null:t.value.action_type)!==o.BIO_ACTION_TYPES.SPECIFIC_PORTFOLIO&&(null==t||null==t.value?null:t.value.action_type)!==o.BIO_ACTION_TYPES.SPECIFIC_EVENT_TICKETING&&!o.GENERAL_ACTION_ITEMS_REVERSE_MAP[null==t||null==t.value?null:t.value.name]&&"welcome_video"!==(null==t||null==t.value?null:t.value.name)),e.xp6(1),e.Q6J("ngIf",!o.isFanPreview),e.xp6(1),e.Q6J("ngIf",!o.isFanPreview)}}function P_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",59),e.NdJ("cdkDropListDropped",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.drop(o))}),e.YNc(1,x_,12,13,"ng-container",60),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("cdkDropListAutoScrollStep",35)("cdkDropListData",t.products)("cdkDropListDisabled",t.isFanPreview),e.xp6(1),e.Q6J("ngForOf",t.products)("ngForTrackBy",t.trackByProduct)}}function O_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-image-cropper",104),e.NdJ("closeCrop",function(o){e.CHM(t);const a=e.oxw();return a.cancelCropBanner(o),e.KtG(a.banner.value="")})("cropImageUpload",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.pickBanner(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("imageChangeEvent",t.bannerChangedEvent)("isOpen",t.isOpenBanner)("cropperOptions",e.VKq(4,so,1275/495))("imageWidth",t.imageWidth)}}function M_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-image-cropper",105),e.NdJ("closeCrop",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.cancelCrop(o))})("cropImageUpload",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.pickProfile(o))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("imageChangeEvent",t.imageChangedEvent)("isOpen",t.isOpen)("cropperOptions",e.DdM(5,ro))("imageWidth",t.imageWidth)("roundCropper",!0)}}const T_=function(i,s){return{"mobile-preview-your-bio-container":i,"referral-link-container":s}
1},w_=function(i){return{"theme-transparent-form":i}},E_=function(i){return{"default-banner-img":i}},A_=function(i){return{"default-profile-img":i}},y_=function(i,s){return{"fan-preview-bio-text":i,"d-none":s}};let lo=(()=>{const s=class{constructor(n,o,a,r,l,g,h,b){this.fb=n,this.cdr=o,this.document=r,this.linkInBioDataService=l,this.modalHandlerService=g,this.router=h,this.ngZone=b,this.socialHandles=[],this.isFanPreview=!1,this.openSocialLinks=new e.vpe,this.openEditModal=new e.vpe,this.products=[],this.isOpen=!1,this.isOpenBanner=!1,this.imageChangedEvent="",this.imageWidth=0,this.Application=_.Mx,this.percent=_.Mx.ZERO,this.showProgress=!1,this.bannerPercent=_.Mx.ZERO,this.showBannerProgress=!1,this.profilePercent=_.Mx.ZERO,this.showProfileProgress=!1,this.destroy$=new q.x,this.images={},this.CommonEnums=be.i4,this.isMobileView=!1,this.themeBackgroundImageUrl=null,this.isDragging=!1,this.BIO_ACTION_TYPES=$.P8,this.GENERAL_ACTION_ITEMS_REVERSE_MAP=B.o9,this.GENERAL_ACTION_ITEMS=$.I1,this.environment=Oe.N,this.LINK_IN_BIO_MESSAGES=$.tB,this.poweredByTopfansUrl=$.tB.TOPFANS_URL,this.referralLink="",this.BIO_URL_SEGMENTS=$.h_,this.uploadService=a.get(Ue.C),this.cs=a.get(A.v),this.apiCallService=a.get(N.F),this.mbs=a.get(vn.N)}ngOnInit(){this.cs.isBrowser&&(this.initPreviewBioForm(),this.setPoweredByTopfansUrl(),this.setupAudioPlayerChangeDetection(),this.setupTextareaAutoResize(),this.linkInBioDataService.isMobileViewChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.isMobileView=n,this.cdr.detectChanges(),setTimeout(()=>this.autoResizeTextarea(),0)}),this.linkInBioDataService.linkInBioAppearanceChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>
1{this.themeBackgroundImageUrl=n?.background_image||null,this.cdr.detectChanges()}),this.previewBioForm.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(n=>{const o={...this.creatorData,profile_image_url:n?.profile_image_url,banner_image_url:n?.banner_image_url,bio:n?.bio};this.linkInBioDataService.updateBioForm(o)}),this.linkInBioDataService.bioFormChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n&&(this.previewBioForm.patchValue({profile_image_url:n.profile_image_url,banner_image_url:n.banner_image_url,bio:n.bio},{emitEvent:!1}),this.bannerPreview=n.banner_image_url,this.profilePreview=n.profile_image_url,this.creatorData=n,this.socialHandles=n.social_handles||[],this.cdr.detectChanges(),setTimeout(()=>this.autoResizeTextarea(),0))}),this.linkInBioDataService.bioItemsChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.products=n,this.cdr.detectChanges()}),this.linkInBioDataService.referralLinkChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.referralLink=n,this.cdr.detectChanges()}))}ngAfterViewInit(){this.cs.isBrowser&&setTimeout(()=>{this.autoResizeTextarea()},0)}initPreviewBioForm(){this.previewBioForm=this.fb.group({profile_image_url:new u.p4(""),banner_image_url:new u.p4(""),bio:new u.p4("",[u.kI.maxLength(_.Mx.FIVE_HUNDRED)])})}setupAudioPlayerChangeDetection(){!this.cs.isBrowser||typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{const n=this.document.querySelector(".preview-your-merchandise");n&&(this.audioPlayerObserver=new MutationObserver(()=>{this.changeDetectionTimeout&&clearTimeout(this.changeDetectionTimeout),this.changeDetectionTimeout=setTimeout(()=>{this.ngZone.run(()=>{this.cdr.markForCheck()})},_.Mx.FIFTY)}),this.audioPlayerObserver.observe(n,{childList:!0,subtree:!0,characterData:!0,attributes:!0}))},_.Mx.FIVE_HUNDRED)})}pickBanner(n){var o=this;return(0,ge.Z)(function*(a,r=!1){let l,g,h;o.showBannerProgress=!0,o.bannerPercent=_.Mx.ZERO,o.cdr.detectChanges(),h=o.bannerChangedEvent?.target?.files?.[_.Mx.ZERO],r?(g=(0,de.qM)(a?.uri,a?.fileName),l=g):(g=(0,Je.Ll)(a),l=new File([g],h?.name||"banner.jpg",{type:h?.type||"image/jpeg"})),o.uploadService.uploadImageCompress(l).then(function(){var b=(0,ge.Z)(function*(w){o.banner=w;const L=w;o.isOpenBanner=!1;const j=o.cs.isValidFile(o.banner);if(o.cs.isBrowser&&o.document?.documentElement?.classList?.remove("page-hidden"),o.cs.setBodyClass(!0),j){const W=`${_.Mx.BANNER+Date.now()}_${L.name.toLowerCase().split(" ").join("_")}`,ee={file:o.banner,fileName:W,folder:_.D4.bannerFolder,contentType:be.i4.BANNER};o.images[be.i4.BANNER]=ee,o.uploadService.uploadFileData(x.Y9.uploadFile,ee,!0,o.cdr).pipe((0,v.R)(o.destroy$)).subscribe({next:Te=>{Te.progressStatus===_.Mx.UPLOADING&&(o.bannerPercent=Te.progress,o.cdr.detectChanges()),Te.progressStatus===_.Mx.RESTRICTED&&Te.restrictedImage&&(o.showBannerProgress=!1,o.bannerPercent=_.Mx.ZERO,o.restrictedBannerImage={...Te.restrictedImage,type:o.CommonEnums.BANNER},o.bannerPreview=o.creatorData?.banner_image_url||"",o.previewBioForm.patchValue({banner_image_url:o.bannerPreview}),delete o.images[o.CommonEnums.BANNER],o.modalHandlerService.showRestrictedContentCarouselModal([o.restrictedBannerImage]),o.cdr.detectChanges()),Te.progressStatus===_.Mx.COMPLETED&&(o.showBannerProgress=!1,o.bannerPercent=_.Mx.ZERO,Te.data&&(o.bannerPreview=Te.data,o.previewBioForm.patchValue({banner_image_url:Te.data})),o.cdr.detectChanges())},error:Te=>{o.showBannerProgress=!1,o.bannerPercent=_.Mx.ZERO,Te?.statusCode!==X.SM.RESTRICTED_CONTENT&&o.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),o.cdr.detectChanges()}})}else o.cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE);o.bannerChangedEvent?.target?.value&&(o.bannerChangedEvent.target.value=""),o.bannerChangedEvent=void 0});return function(w){return b.apply(this,arguments)}}()).catch(()=>{o.showBannerProgress=!1,o.bannerPercent=_.Mx.ZERO,o.cdr.detectChanges()})}).apply(this,arguments)}pickProfile(n){var o=this;return(0,ge.Z)(function*(a,r=!1){let l,g,h;o.showProfileProgress=!0,o.profilePercent=_.Mx.ZERO,o.cdr.detectChanges(),g=o.imageChangedEvent?.target?.files?.[_.Mx.ZERO],r?(h=(0,de.qM)(a?.uri,a?.fileName),l=h):(h=(0,Je.Ll)(a),l=new File([h],g?.name||"profile.jpg",{type:g?.type||"image/jpeg"})),o.uploadService.uploadImageCompress(l).then(function(){var b=(0,ge.Z)(function*(w){o.isOpen=!1,o.profile=w;const L=o.cs.isValidFile(o.profile);if(o.cs.setBodyClass(!0),o.cs.isBrowser&&o.document?.documentElement?.classList?.remove("page-hidden"),L){const j=`${_.Mx.PROFILE+Date.now()}_${o.profile.name.toLowerCase().split(" ").join("_")}`,W={file:o.profile,fileName:j,folder:_.D4.ProfileFolder,contentType:be.i4.PROFILE};o.images[be.i4.PROFILE]=W,o.uploadService.uploadFileData(x.Y9.uploadFile,W,!0,o.cdr).pipe((0,v.R)(o.destroy$)).subscribe({next:ee=>{ee.progressStatus===_.Mx.UPLOADING&&(o.profilePercent=ee.progress,o.cdr.detectChanges()),ee.progressStatus===_.Mx.RESTRICTED&&ee.restrictedImage&&(o.showProfileProgress=!1,o.profilePercent=_.Mx.ZERO,o.restrictedProfileImage={...ee.restrictedImage,type:o.CommonEnums.PROFILE},o.profilePreview=o.creatorData?.profile_image_url||"",o.previewBioForm.patchValue({profile_image_url:o.profilePreview}),delete o.images[o.CommonEnums.PROFILE],o.modalHandlerService.showRestrictedContentCarouselModal([o.restrictedProfileImage]),o.cdr.detectChanges()),ee.progressStatus===_.Mx.COMPLETED&&(o.showProfileProgress=!1,o.profilePercent=_.Mx.ZERO,ee.data&&(o.profilePreview=ee.data,o.previewBioForm.patchValue({profile_image_url:ee.data}
1)),o.cdr.detectChanges())},error:ee=>{o.showProfileProgress=!1,o.profilePercent=_.Mx.ZERO,ee?.statusCode!==X.SM.RESTRICTED_CONTENT&&o.cs.showErrorMessage(S.Vm.SOMETHING_WENT_WRONG),o.cdr.detectChanges()}})}else o.showProfileProgress=!1,o.profilePercent=_.Mx.ZERO,o.cs.showErrorMessage(S.Vm.INVALID_FILE_TYPE),o.cdr.detectChanges()});return function(w){return b.apply(this,arguments)}}()).catch(()=>{o.showProfileProgress=!1,o.profilePercent=_.Mx.ZERO,o.cdr.detectChanges()})}).apply(this,arguments)}cancelCrop(){this.isOpen=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}cancelCropBanner(){this.isOpenBanner=!1,this.cs.isBrowser&&this.document?.documentElement?.classList?.remove("page-hidden"),this.cs.setBodyClass(!0)}onOpenSocialLinksModal(){this.openSocialLinks.emit(this.socialHandles)}navigateToSocialLink(n){if(this.cs.isBrowser&&n){const o=n.startsWith("http")?n:`https://${n}`;window.open(o,"_blank")}}removeItem(n){this.products=this.products.filter(o=>o?.value?.sk!==n),this.linkInBioDataService.updateBioItems(this.products)}editItem(n){n?.value?.action_type===$.P8.GENERAL_ACTION?(this.generalActionEditModal.selectedAction=n,this.generalActionEditModal.openModal()):this.openEditModal.emit(n)}onSaveGeneralActionLabel(n){if(this.generalActionEditModal.selectedAction){const o=this.products.findIndex(a=>a?.value?.sk===this.generalActionEditModal.selectedAction?.value?.sk);-1!==o&&(this.products[o].value.value=n.action_label,this.products[o].value.title=n.action_label,this.linkInBioDataService.updateBioItems(this.products),this.cdr.detectChanges())}}drop(n){(0,we.bA)(this.products,n.previousIndex,n.currentIndex),this.linkInBioDataService.updateBioItems(this.products)}pickBannerImage(n){const o=n?.target;if(!(this.mbs.isMobileApp||o&&o.files?.length))return;let a;if(this.mbs.isMobileApp){const r=this.mbs.messageSubject.subscribe(l=>{l.type===Ot.IV.SET_IMAGE_UPLOAD&&l.payload?.files?.[0]&&(a=l.payload.files[0]),r?.unsubscribe()})}else a=n.target.files?.[0];this.uploadService.checkAndConvertHeicOrAvifToJpeg(a).then(r=>{const l=r,g=new FileReader;g.readAsDataURL(l),g.onload=h=>{const b=new Image;b.src=h.target.result,b.onload=w=>{const L=w?.path||w.composedPath&&w.composedPath();if(this.imageWidth=L?.[_.Mx.ZERO]?.naturalWidth||0,L?.[_.Mx.ZERO]?.naturalWidth>=_.Mx.BANNER_WIDTH&&L?.[_.Mx.ZERO]?.naturalHeight>=_.Mx.BANNER_HEIGHT){const j=new DataTransfer;j.items.add(l),o.files=j.files,this.bannerChangedEvent=n,this.isOpenBanner=!0,this.cdr.detectChanges()}else o.value="",this.cancelCropBanner(),this.cs.showErrorMessage(`Width of image should be greater than ${_.Mx.BANNER_WIDTH}\n              pixels and height of image should be greater than ${_.Mx.BANNER_HEIGHT} pixels`)}}}).catch(()=>{})}bannerCropped(n){n&&n.base64&&this.cs.setBodyClass(!1)}mobileChange(n){const{imageType:o,files:a}=n;o===$.v5.PROFILE_IMAGE?this.pickProfile(a[0],!0):o===$.v5.PROFILE_BANNER&&this.pickBanner(a[0],!0)}fileChangeEvent(n){let o;const a=n?.target;if(this.mbs.isMobileApp){const r=this.mbs.messageSubject.subscribe(l=>{l.type===Ot.IV.SET_IMAGE_UPLOAD&&l.payload?.files?.[0]&&(o=l.payload.files[0]),r?.unsubscribe()})}else o=a.files?.[0];this.uploadService.checkAndConvertHeicOrAvifToJpeg(o).then(r=>{const l=r,g=new FileReader;g.readAsDataURL(l),g.onload=b=>{const w=new Image;w.src=b.target.result,w.onload=L=>{const j=L?.path||L.composedPath&&L.composedPath();this.imageWidth=j?.[_.Mx.ZERO]?.naturalWidth||0}};const h=new DataTransfer;h.items.add(l),a.files=h.files,this.imageChangedEvent=n,this.isOpen=!0,this.cdr.detectChanges()}).catch(()=>{})}navigateToProfile(n){n?.is_creator?this.router.navigate(["/"+n?.user_name]):n?.refer_id&&this.router.navigate(["/"+n?.refer_id])}handleProductClick(n){const o=n?.value;let a="";if(o)if(o?.action_type===$.P8.SPECIFIC_ITEM){let r="",l="";if(o?.product_type===je.W8.merchandise||o?.product_type===je.W8.nfts||o?.product_type===je.W8.nft){r=o.pk?.replace($.rr.USER,"")||"",l=o.sk?.replace($.rr.USER,"")||"";const g=l?.split($.rr.HASH)?.[1];a=o?.product_type===je.W8.merchandise?`${$.h_.DASHBOARD_MERCHANDISE_DETAIL}/${this.creatorData?.user_name}/${encodeURIComponent(g)}/${$.h_.STORE}/${je.W8.merchandise}`:`${$.h_.DASHBOARD_MERCHANDISE_DETAIL}/${this.creatorData?.user_name}/${encodeURIComponent(g)}/${$.h_.STORE}/${je.W8.nft}`}else if(o?.product_type===je.W8.downloadables){const g=o.sk?.split($.rr.HASH)?.[1];a=`${$.h_.DASHBOARD_MERCHANDISE_DETAILS}/${this.creatorData?.user_name}&${this.creatorData?.gsi4pk}/${$.h_.DOWNLOADABLE}/${g}/${$.h_.DOWNLOADABLES_UPPER}`}else r=o.pk?.replace($.rr.USER,"")||"",l=o.sk?.replace($.rr.USER,"")||"",a=`${$.h_.DASHBOARD_MERCHANDISE_DETAILS}/${this.creatorData?.user_name}&${this.creatorData?.gsi4pk}/${encodeURIComponent(r)}/${encodeURIComponent(l)}/${$.h_.STORE}`;a&&this.router.navigate([a])}else if(o?.action_type===$.P8.SPECIFIC_PORTFOLIO){const r=(0,de.mh)({sk:o.sk,type:o.type,isIndividual:o.isIndividual},this.creatorData?.user_name||"");r&&this.router.navigate([r],{queryParams:o.isIndividual?{openPlayer:"true"}:{}})}else if(o?.action_type===$.P8.SPECIFIC_EVENT_TICKETING){const r=o?.url;r&&this.cs.isBrowser&&this.router.navigate([r])}else if(o?.action_type===$.P8.EXTERNAL_ACTION){const r=o?.url||o?.action_url;r&&this.cs.isBrowser&&window.open(r,"_blank")}else{if(o?.action_type!==$.P8.GENERAL_ACTION)return;{let r=o?.url||o?.action_url;if(r){r=r?.replace("<baseurl>/",""),r=r?.replace(/<creator-username>/g,this.creatorData?.user_name||""),r=r?.replace(/<profile>/g,this.creatorData?.user_name||""),r=r?.replace(/<sk>/g,this.creatorData?.gsi4pk||"");const l=r?.split("?"),g=l[0];let h={};l.length>
11&&new URLSearchParams(l[1]).forEach((L,j)=>{h[j]=L}),this.router.navigate([g],{queryParams:h})}}}}onBioInput(n){const o=n.target.value;if(o.length>_.Mx.FIVE_HUNDRED){const a=o.substring(0,_.Mx.FIVE_HUNDRED);this.previewBioForm.get("bio")?.setValue(a,{emitEvent:!1}),n.target.value=a}this.autoResizeTextarea(n.target)}onBioPaste(n){n.preventDefault(),n.stopPropagation();const o=n.clipboardData?.getData("text")||"",a=n.target,r=a.value||"",l=a.selectionStart||0,g=a.selectionEnd||0,h=r.substring(0,l)+o+r.substring(g);let b=h,w=l+o.length;h.length>_.Mx.FIVE_HUNDRED&&(b=h.substring(0,_.Mx.FIVE_HUNDRED),w=Math.min(l+o.length,_.Mx.FIVE_HUNDRED)),a.value=b,this.previewBioForm.get("bio")?.setValue(b,{emitEvent:!1});const L={...this.creatorData,profile_image_url:this.previewBioForm.get("profile_image_url")?.value,banner_image_url:this.previewBioForm.get("banner_image_url")?.value,bio:b};this.linkInBioDataService.updateBioForm(L),setTimeout(()=>{a.setSelectionRange(w,w),this.autoResizeTextarea(a)},0)}setupTextareaAutoResize(){this.cs.isBrowser&&(this.resizeHandler=()=>{this.ngZone.run(()=>{this.autoResizeTextarea()})},this.ngZone.runOutsideAngular(()=>{window.addEventListener("resize",this.resizeHandler)}))}autoResizeTextarea(n){if(!this.cs.isBrowser)return;const o=n||this.bioTextarea?.nativeElement||this.document.getElementById("bio-textarea");o&&(o.style.height="0px",o.style.height=`${o.scrollHeight}px`)}setPoweredByTopfansUrl(){const n=this.cs.getWhiteLabelConfiguration()?.user?.user_name;this.poweredByTopfansUrl=n?$.tB.TOPFANS_URL:this.environment.websiteURL}get poweredByHref(){return this.referralLink||this.poweredByTopfansUrl}getFormattedEventDateTime(n){const o=n?.value?.event_date,a=n?.value?.event_time;return o||a?`${(0,de.B9)(o,a,r=>this.cs.formatTo12HourTime(r))} ${n?.value?.timezone||""}`:""}trackByProduct(n,o){return o?.value?.sk||o?.value?.pk||n.toString()}ngOnDestroy(){this.audioPlayerObserver&&this.audioPlayerObserver.disconnect(),this.changeDetectionTimeout&&clearTimeout(this.changeDetectionTimeout),this.cs.isBrowser&&this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.QS),e.Y36(e.sBO),e.Y36(e.zs3),e.Y36(p.K0),e.Y36(mt.y),e.Y36(on.Y),e.Y36(O.F0),e.Y36(e.R0b))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-preview-creator-bio"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Zg,5),e.Gf(Fg,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.generalActionEditModal=r.first),e.iGM(r=e.CRH())&&(a.bioTextarea=r.first)}},inputs:{socialHandles:"socialHandles",isFanPreview:"isFanPreview"},outputs:{openSocialLinks:"openSocialLinks",openEditModal:"openEditModal"},decls:37,vars:43,consts:[[1,"preview-your-bio-container",3,"ngClass"],["class","background-overlay",4,"ngIf"],[1,"link-in-bio-form",3,"ngClass"],[3,"formGroup"],[1,"preference-banner-profile"],[1,"preference-banner",3,"ngClass"],["class","show-progress-bar pointer-none",4,"ngIf"],["appDisableRightClick","","appMobileOptimization","","alt","banner","loading","lazy","decoding","async",3,"originalUrl","src","format"],["class","preference-banner-upload",4,"ngIf"],[1,"preference-profile"],[1,"preference-profile-inner",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","logo","loading","lazy","decoding","async",3,"originalUrl","src","format"],["class","preference-profile-upload",4,"ngIf"],["class","imageCropper-overlay",4,"ngIf"],["class","display-name",3,"click",4,"ngIf"],[1,"form-group"],["formControlName","bio","id","bio-textarea","rows","1",1,"form-control",3,"readonly","ngClass","maxlength","input","paste"],["bioTextarea",""],[1,"social-links-container"],["class","social-links",4,"ngIf"],["class","social-links-edit-icon",3,"click",4,"ngIf"],["cdkDropListGroup","",1,"preview-your-merchandise"],[4,"ngIf","ngIfElse"],["mobileView",""],["productList",""],[1,"powered-by-topfans"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"powered-by-label"],[1,"icon-liteTopfan-logo"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload",4,"ngIf"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload",4,"ngIf"],[3,"saveChanges"],["generalActionEditModal",""],[1,"background-overlay"],[1,"show-progress-bar","pointer-none"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","showSubtitle","backgroundPadding","titleFontSize","titleColor","unitsColor","space"],[1,"preference-banner-upload"],["onclick","this.value = null","type","file","appMobileBridgeFileInput","",3,"accept","fileConfig","change","mobileFileChange"],["banner",""],[1,"icon-forum-cam"],[1,"preference-profile-upload"],["item",""],[1,"imageCropper-overlay"],[1,"imageCropper-container","imageCropper-container-profile-image","profile-cropper"],["id","container",1,"zoomProfileCropper"],[1,"imageCropper-footer"],[1,"btn","btn-default",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"display-name",3,"click"],["cls","lg",3,"creatorData",4,"ngIf"],["cls","lg",3,"creatorData"],[1,"social-links"],[4,"ngFor","ngForOf"],[3,"click"],[1,"social-links-edit-icon",3,"click"],[1,"icon-profileedit"],["cdkScrollable","",1,"overflow-y-auto"],[4,"ngTemplateOutlet"],[1,"mobile-view-products"],["cdkDropList","",3,"cdkDropListAutoScrollStep","cdkDropListData","cdkDropListDisabled","cdkDropListDropped"],[4,"ngFor","ngForOf","ngForTrackBy"],["cdkDrag","",1,"product-item-container",3,"cdkDragDisabled","ngClass","cdkDragStarted","cdkDragEnded"],[3,"selectedShareDetails","creatorUserName","isAllowedToRedirect","useCache","isPreventClick","isAllowedToUnlock","showLoader","isLIBForm","click",4,"ngIf"],[3,"creatorId","contentSk","portfolioType","isAlbum","creatorProfile","isPreventClick","customStyle","useCache","selectorMaxItems","click",4,"ngIf"],["class","general-action-carousel-preview",4,"ngIf"],["class","event-ticketing-preview",3,"click",4,"ngIf"],["class","general-action-carousel-preview",4,"ngIf","ngIfElse"],["checkWelcomeVideo",""],["class","remove-item-btn edit-btn",3,"click",4,"ngIf"],["class","remove-item-btn",3,"click",4,"ngIf"],["class","drag-handle remove-item-btn","cdkDragHandle","",4,"ngIf"],[3,"selectedShareDetails","creatorUserName","isAllowedToRedirect","useCache","isPreventClick","isAllowedToUnlock","showLoader","isLIBForm","click"],[3,"creatorId","contentSk","portfolioType","isAlbum","creatorProfile","isPreventClick","customStyle","useCache","selectorMaxItems","click"],[1,"general-action-carousel-preview"],[3,"profile","feedContentData","heading","modalClass"],[1,"event-ticketing-preview",3,"click"],[1,"row","g-3"],["class","col-4",4,"ngIf"],[3,"ngClass"],[1,"event-ticketing-preview-info"],[1,"event-ticketing-preview-title"],["class","event-ticketing-preview-meta",4,"ngIf"],[1,"event-ticketing-preview-btn"],[3,"btnField","handleButtonClick"],[1,"col-4"],[1,"event-ticketing-preview-image"],["loading","lazy","decoding","async",3,"src","alt"],[1,"event-ticketing-preview-meta"],[1,"ticket-details-address",3,"address","showVenueName","emphasizeFirstLine","showState","showCountry","showZip","showCity","showStreet","mapIconConfig"],["aria-hidden","true",1,"icon-calendar"],[3,"monetizeType","profile","generalActionIconClass","heading"],["generalActionPreview",""],[3,"profile","generalActionIconClass","heading"],["class","general-action-preview",3,"click",4,"ngIf"],[1,"general-action-preview",3,"click"],[1,"general-action-img"],[3,"class",4,"ngIf"],["alt","logo",3,"src",4,"ngIf"],["alt","logo",3,"src"],[1,"remove-item-btn","edit-btn",3,"click"],[1,"remove-item-btn",3,"click"],[1,"icon-delete-filled"],["cdkDragHandle","",1,"drag-handle","remove-item-btn"],[1,"icon-drag"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","closeCrop","cropImageUpload"],[3,"imageChangeEvent","isOpen","cropperOptions","imageWidth","roundCropper","closeCrop","cropImageUpload"]],template:function(o,a){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,Ug,1,0,"div",1),e.TgZ(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5),e.YNc(6,Bg,2,14,"div",6),e._UZ(7,"img",7),e.YNc(8,qg,6,6,"div",8),e.qZA(),e.TgZ(9,"div",9)(10,"div",10),e.YNc(11,Gg,2,14,"div",6),e._UZ(12,"img",11),e.YNc(13,Jg,6,5,"div",12),e.qZA()(),e.YNc(14,Vg,8,0,"div",13),e.qZA(),e.YNc(15,Hg,4,3,"div",14),e.TgZ(16,"div",15)(17,"textarea",16,17),e.NdJ("input",function(l){return a.onBioInput(l)})("paste",function(l){return a.onBioPaste(l)}),e.qZA()(),e.TgZ(19,"div",18),e.YNc(20,Kg,2,1,"div",19),e.YNc(21,zg,2,0,"div",20),e.qZA()()(),e.TgZ(22,"div",21),e.YNc(23,jg,3,1,"ng-container",22),e.YNc(24,e_,2,1,"ng-template",null,23,e.W1O),e.YNc(26,P_,2,5,"ng-template",null,24,e.W1O),e.qZA(),e.TgZ(28,"div",25)(29,"a",26)(30,"span",27),e._uU(31),e.qZA(),e._UZ(32,"em",28),e.qZA()()(),e.YNc(33,O_,1,6,"app-image-cropper",29),e.YNc(34,M_,1,6,"app-image-cropper",30),e.TgZ(35,"app-general-action-edit-modal",31,32),e.NdJ("saveChanges",function(l){return a.onSaveGeneralActionLabel(l)}),e.qZA()),2&o){const r=e.MAs(25);let l;
1e.Udp("background-image",a.themeBackgroundImageUrl?"url("+a.themeBackgroundImageUrl+")":"none"),e.Q6J("ngClass",e.WLB(31,T_,a.isMobileView,a.referralLink)),e.xp6(1),e.Q6J("ngIf",a.themeBackgroundImageUrl),e.xp6(1),e.Q6J("ngClass",e.VKq(34,w_,a.themeBackgroundImageUrl)),e.xp6(1),e.Q6J("formGroup",a.previewBioForm),e.xp6(2),e.Q6J("ngClass",e.VKq(36,E_,!a.bannerPreview)),e.xp6(1),e.Q6J("ngIf",a.showBannerProgress&&a.cs.isBrowser),e.xp6(1),e.Q6J("originalUrl",a.bannerPreview)("src",a.bannerPreview,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",!a.isFanPreview),e.xp6(2),e.Q6J("ngClass",e.VKq(38,A_,!a.profilePreview)),e.xp6(1),e.Q6J("ngIf",a.showProfileProgress&&a.cs.isBrowser),e.xp6(1),e.Q6J("originalUrl",a.profilePreview)("src",a.profilePreview,e.LSH)("format","webp"),e.xp6(1),e.Q6J("ngIf",!a.isFanPreview),e.xp6(1),e.Q6J("ngIf",a.isOpen&&!a.isFanPreview),e.xp6(1),e.Q6J("ngIf",null==a.creatorData?null:a.creatorData.first_name),e.xp6(2),e.Q6J("readonly",a.isFanPreview)("ngClass",e.WLB(40,y_,a.isFanPreview,a.isFanPreview&&!(null!=(l=a.previewBioForm.get("bio"))&&l.value)))("maxlength",a.Application.FIVE_HUNDRED),e.xp6(3),e.Q6J("ngIf",(null==a.socialHandles?null:a.socialHandles.length)>0),e.xp6(1),e.Q6J("ngIf",!a.isFanPreview),e.xp6(2),e.Q6J("ngIf",!a.isMobileView)("ngIfElse",r),e.xp6(6),e.Q6J("href",a.poweredByHref,e.LSH),e.xp6(2),e.Oqu(a.referralLink?a.LINK_IN_BIO_MESSAGES.GET_YOUR_OWN_PLATFORM:a.LINK_IN_BIO_MESSAGES.POWERED_BY_TOPFANS),e.xp6(2),e.Q6J("ngIf",a.isOpenBanner&&!a.isFanPreview),e.xp6(1),e.Q6J("ngIf",a.isOpen&&!a.isFanPreview)}},dependencies:[p.mk,p.sg,p.O5,p.tP,u._Y,u.Fj,u.JJ,u.JL,u.nD,u.sg,u.u,ae.r,an.e,Me.mh,Ig.h,tn.a,Ze.m,kg.D,Ne.J,Dg.p,pt.nu,Ng.PQ,we.Wj,we.Fd,we.Zt,we.Bh,no.c,oo.y,io.d,ao.M,Sg,Lg.H],styles:['.preview-your-bio-container[_ngcontent-%COMP%]{border-radius:8px!important;background-color:var(--bgColorLinkInBio)!important;color:var(--bgTextColorLinkInBio)!important;padding:20px 20px 65px;display:flex;flex-direction:row;align-items:center;justify-content:center;max-height:1000px;gap:24px;background-position:center;background-repeat:no-repeat;background-size:cover;overflow:hidden;position:relative}@media screen and (max-width: 992px){.preview-your-bio-container[_ngcontent-%COMP%]{padding:10px 10px 65px}}.general-action-carousel-preview[_ngcontent-%COMP%]{margin-right:auto;flex:1}.overflow-y-auto[_ngcontent-%COMP%]{overflow-y:auto;height:900px}.powered-by-topfans[_ngcontent-%COMP%]{position:absolute;bottom:5px}.powered-by-topfans[_ngcontent-%COMP%]   .powered-by-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.powered-by-topfans[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--buttonColorLinkInBio)!important;position:relative;text-transform:none;text-decoration:none;font-size:14px;font-weight:700;z-index:2;display:flex;flex-direction:column;gap:10px;align-items:center;margin-bottom:10px}.powered-by-topfans[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .topfans-logo[_ngcontent-%COMP%]{width:90px;height:auto;position:relative;bottom:-10px;left:3px}.powered-by-topfans[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .icon-liteTopfan-logo[_ngcontent-%COMP%]:before{color:var(--buttonColorLinkInBio)!important;font-weight:600}.background-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--bgColorLinkInBio);opacity:.4;z-index:1}.link-in-bio-form[_ngcontent-%COMP%], .preview-your-merchandise[_ngcontent-%COMP%]{position:relative;z-index:2}.mobile-preview-your-bio-container[_ngcontent-%COMP%]{max-height:100%!important;max-width:400px!important;flex-direction:column!important;align-items:center!important;margin:0 auto}.mobile-preview-your-bio-container[_ngcontent-%COMP%]   .preview-your-merchandise[_ngcontent-%COMP%]{width:100%;min-width:250px}.mobile-preview-your-bio-container[_ngcontent-%COMP%]   .preview-your-merchandise[_ngcontent-%COMP%]   .scroll-event[_ngcontent-%COMP%]{height:0px;display:none}.mobile-preview-your-bio-container[_ngcontent-%COMP%]   .link-in-bio-form[_ngcontent-%COMP%]{width:100%!important}.preference-banner-profile[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.preference-banner[_ngcontent-%COMP%]{position:relative;width:100%!important;height:165px!important;overflow:hidden;border-radius:8px!important;background-color:var(--bgColorLinkInBio)!important;display:flex;justify-content:center;align-items:center;margin:0!important}.preference-banner.default-banner-img[_ngcontent-%COMP%]{background-color:var(--bgColorLinkInBio)!important}.preference-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.preference-banner-upload[_ngcontent-%COMP%]{position:absolute;top:10px!important;right:10px!important;background-color:var(--cardBgLinkInBio)!important;border-radius:50%;width:40px;height:40px;
1display:flex;justify-content:center;align-items:center;cursor:pointer}.preference-banner-upload[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.preference-banner-upload[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:var(--buttonColorLinkInBio)!important;font-size:16px;line-height:0}.preference-profile[_ngcontent-%COMP%]{position:absolute;bottom:-50px!important;left:calc(50% - 50px);width:100px!important;height:100px!important;border-radius:50%;background:var(--cardBgLinkInBio)!important;padding:5px;margin-left:0!important}.preference-profile[_ngcontent-%COMP%]   .preference-profile-inner[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;overflow:hidden;background-color:var(--bgColorLinkInBio)!important;display:flex;justify-content:center;align-items:center}.preference-profile[_ngcontent-%COMP%]   .preference-profile-inner.default-profile-img[_ngcontent-%COMP%]{background-color:var(--bgColorLinkInBio)!important}.preference-profile[_ngcontent-%COMP%]   .preference-profile-inner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.preference-profile-upload[_ngcontent-%COMP%]{position:absolute;right:auto!important;bottom:-14px!important;background-color:var(--cardBgLinkInBio)!important;border-radius:50%!important;width:30px!important;height:30px!important;display:flex;justify-content:center;align-items:center;cursor:pointer}.preference-profile-upload[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none}.preference-profile-upload[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--buttonColorLinkInBio)!important;font-size:1em}.imageCropper-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.imageCropper-container[_ngcontent-%COMP%]{background-color:#fff;padding:20px;border-radius:8px;box-shadow:0 4px 8px #0003}.imageCropper-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}.imageCropper-footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px}.link-in-bio-form[_ngcontent-%COMP%]{width:50%;padding:10px;background-color:var(--cardBgLinkInBio)!important;color:var(--cardTextColorLinkInBio)!important;border-radius:20px;min-width:255px;position:relative;backdrop-filter:blur(5px)}.link-in-bio-form.theme-transparent-form[_ngcontent-%COMP%]{background-color:transparent!important}.link-in-bio-form.theme-transparent-form[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--cardBgLinkInBio);opacity:.5;border-radius:inherit;z-index:-1}.link-in-bio-form[_ngcontent-%COMP%]   .display-name[_ngcontent-%COMP%]{margin-top:70px}.link-in-bio-form[_ngcontent-%COMP%]   .display-name[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:700;margin-bottom:0!important;color:var(--cardTextColorLinkInBio)!important}.link-in-bio-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{background-color:transparent!important;position:relative}.link-in-bio-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;pointer-events:none}.link-in-bio-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{background-color:transparent!important;backdrop-filter:none!important;color:var(--cardTextColorLinkInBio)!important;padding:10px!important;border-radius:8px!important;border:1px solid var(--buttonColorLinkInBio)!important;font-weight:400!important;overflow-x:hidden!important;overflow-y:hidden!important;resize:none!important;height:auto;box-sizing:border-box}.link-in-bio-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin:5px 0!important}.link-in-bio-form[_ngcontent-%COMP%]   .icon-forum-cam[_ngcontent-%COMP%]{color:var(--buttonColorLinkInBio)!important}.link-in-bio-form[_ngcontent-%COMP%]   .icon-forum-cam[_ngcontent-%COMP%]:before{color:var(--buttonColorLinkInBio)!important}@media screen and (max-width: 992px){.link-in-bio-form[_ngcontent-%COMP%]{width:100%}}.social-links-container[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:15px;margin-bottom:5px}.social-links-container[_ngcontent-%COMP%]   .social-links[_ngcontent-%COMP%]{display:flex;gap:15px;align-items:center;justify-content:center;width:90%}.social-links-container[_ngcontent-%COMP%]   .social-links[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--buttonColorLinkInBio)!important}.social-links-container[_ngcontent-%COMP%]   .social-links-edit-icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background-color:#ffffff1a}.social-links-container[_ngcontent-%COMP%]   .social-links-edit-icon[_ngcontent-%COMP%]:hover{background-color:#fff3}.social-links-container[_ngcontent-%COMP%]   .icon-profileedit[_ngcontent-%COMP%]{font-size:16px!important}.social-links-container[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:24px;color:var(--buttonColorLinkInBio)!important;cursor:pointer}.link-in-bio-form[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--buttonColorLinkInBio)!important}.link-in-bio-form[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--cardBgLinkInBio)!important}.overflow-y-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--buttonColorLinkInBio)!important}.overflow-y-auto[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--cardBgLinkInBio)!important}@media screen and (max-width: 992px){.preview-your-bio-container[_ngcontent-%COMP%]{flex-direction:column;align-items:center;max-height:100%;max-width:100%!important}.preview-your-bio-container[_ngcontent-%COMP%]   .preview-your-merchandise[_ngcontent-%COMP%]{width:100%;min-width:250px}.preview-your-bio-container[_ngcontent-%COMP%]   .preview-your-merchandise[_ngcontent-%COMP%]   .scroll-event[_ngcontent-%COMP%]{height:0px;display:none}}  .display-name{cursor:pointer}  .display-name app-tick-icon svg path.verify-outer-path{fill:var
1(--buttonColorLinkInBio)!important}  .display-name app-tick-icon svg path.verify-tick-path{fill:var(--buttonTextColorLinkInBio)!important}  .preview-your-bio-container .preview-your-merchandise{width:50%;display:flex;flex-direction:column;min-width:435px}  .preview-your-bio-container .preview-your-merchandise .scroll-event{height:900px;--scrollbar-size: 1px !important;--scrollbar-hover-size: 1px !important;--scrollbar-border-radius: 10px !important;--scrollbar-track-color: var(--cardBgLinkInBio) !important;--scrollbar-thumb-color: var(--buttonColorLinkInBio) !important}  .preview-your-bio-container .preview-your-merchandise .scroll-event .ng-scroll-content{padding:0}  .preview-your-bio-container .preview-your-merchandise .mobile-view-products{display:flex;flex-direction:column;align-items:center;gap:10px}  .preview-your-bio-container .scrollbar-control{right:-10px!important}  .preview-your-bio-container .mc-footer,   .preview-your-bio-container .fcp-actions,   .preview-your-bio-container app-button:has(.see-all-btn),   .preview-your-bio-container app-button:has(.btn-primary.w-100),   .preview-your-bio-container app-button:has(.plan-card__select-btn),   .preview-your-bio-container app-button:has(.unlock-with-points-btn){width:100%!important;display:block}  .preview-your-bio-container .mc-footer{align-self:stretch}  .preview-your-bio-container .mc-footer app-button,   .preview-your-bio-container .mc-footer .app-btn,   .preview-your-bio-container .mc-footer .see-all-btn{width:100%!important;min-width:0!important}  .preview-your-bio-container .btn-primary.w-100,   .preview-your-bio-container .priceCall a,   .preview-your-bio-container .see-all-btn,   .preview-your-bio-container .plan-card__select-btn,   .preview-your-bio-container .unlock-with-points-btn,   .preview-your-bio-container app-button .btn{width:100%!important;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;padding:8px 15px!important;font-size:10px!important;font-weight:900!important;text-align:center;text-transform:uppercase}  .preview-your-bio-container .see-all-btn{background:var(--buttonColorLinkInBio)!important;border-color:var(--buttonColorLinkInBio)!important;color:var(--buttonTextColorLinkInBio)!important}  .preview-your-bio-container .see-all-btn span{color:var(--buttonTextColorLinkInBio)!important}@media screen and (min-width: 768px){  .preview-your-bio-container .btn-primary.w-100,   .preview-your-bio-container .priceCall a,   .preview-your-bio-container .see-all-btn,   .preview-your-bio-container .plan-card__select-btn,   .preview-your-bio-container .unlock-with-points-btn,   .preview-your-bio-container app-button .btn{padding:8px 20px!important}}  .preview-your-bio-container app-portfolio-item-preview{width:100%!important;border-radius:16px;overflow:hidden}  .preview-your-bio-container app-portfolio-item-preview .portfolio-item-preview-container{border:2px solid var(--buttonColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview:hover{cursor:pointer;background:var(--cardBgLinkInBio)!important;transition:background .3s ease-in-out}  .preview-your-bio-container app-portfolio-item-preview:hover .album-header-info .album-title{color:var(--cardTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview:hover .album-header-info .album-meta{color:var(--cardTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview:hover .album-header-info .album-meta span{color:var(--cardTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview:hover .album-description-section .description-heading{color:var(--cardTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview:hover .album-description-section .description-text{color:var(--cardTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .album-header-info .album-title{font-size:24px!important;color:var(--bgTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .album-header-info .album-meta{color:var(--bgTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .album-header-info .album-meta span{color:var(--bgTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .album-description-section .description-heading{color:var(--bgTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .album-description-section .description-text{color:var(--bgTextColorLinkInBio)!important}  .preview-your-bio-container app-portfolio-item-preview .portfolio-selector-see-all .see-all-btn{width:100%!important}  .preview-your-bio-container app-portfolio-item-preview .portfolio-selector-see-all .see-all-btn .btn-text{color:var(--buttonTextColorLinkInBio)!important}  .theme-whiteLabel .preview-your-merchandise .cdk-drag .icon-drag{background:transparent!important}  .event-ticketing-preview{padding:16px;border-radius:16px;border:2px solid var(--buttonColorLinkInBio);background:transparent;backdrop-filter:blur(5px);color:var(--bgTextColorLinkInBio);cursor:pointer;width:70%;min-width:300px;flex:1;overflow:hidden;transition:background .3s ease-in-out}  .event-ticketing-preview:hover{background-color:var(--cardBgLinkInBio);color:var(--cardTextColorLinkInBio)}  .event-ticketing-preview:hover .event-ticketing-preview-title,   .event-ticketing-preview:hover .event-ticketing-preview-meta{color:var(--cardTextColorLinkInBio)}  .event-ticketing-preview .event-ticketing-preview-image{width:100%;height:132px!important;border-radius:8px;overflow:hidden}  .event-ticketing-preview .event-ticketing-preview-image img{width:100%;height:100%;object-fit:cover}  .event-ticketing-preview .event-ticketing-preview-info{overflow:hidden;border-radius:8px!important;padding:20px!important;background-color:var(--cardBgLinkInBio)!important}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-title{color:var(--cardTextColorLinkInBio)!important;font-size:16px!important;font-weight:700;margin-bottom:4px;text-transform:none;letter-spacing:.6px;line-height:100%;padding-bottom:8px}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-meta{display:flex;align-items:flex-start;gap:10px;font-size:12px;margin-bottom:2px;color:var(--cardTextColorLinkInBio)!important;font-weight:700;margin-top:10px}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-meta em{font-size:14px;margin-top:1px}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-meta em:before{color:var(--buttonColorLinkInBio)!important}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-btn{margin-top:30px}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-btn   .btn{background-color:var(--buttonColorLinkInBio)!important;color:var(--buttonTextColorLinkInBio)!important;border-color:var(--buttonColorLinkInBio)!important;border-radius:50px;font-size:13px;font-weight:600;padding:6px 16px}  .event-ticketing-preview .event-ticketing-preview-info .event-ticketing-preview-btn   .btn span{color:var(--buttonTextColorLinkInBio)!important}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}
1.cdk-drag-preview[_ngcontent-%COMP%]{cursor:move}.cdk-drag[_ngcontent-%COMP%]{width:auto}'],changeDetection:0}),i})();const S_=function(){return{label:"Edit",class:"btn btn-primary",prefixIconClass:"icon-profileedit lib-edit"}};function I_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"p",5),e._uU(3),e.qZA(),e.TgZ(4,"div",6)(5,"p",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setMobileView())}),e._UZ(6,"em",8),e.qZA(),e.TgZ(7,"p",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setDesktopView())}),e._UZ(8,"em",10),e.qZA()(),e.TgZ(9,"div",11)(10,"app-button",12),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editBio())}),e.qZA()()(),e._UZ(11,"app-preview-creator-bio",13),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.Oqu(t.LINK_IN_BIO_LABELS.PREVIEW),e.xp6(2),e.ekj("active",t.isMobileView),e.xp6(2),e.ekj("active",!t.isMobileView),e.xp6(3),e.Q6J("btnField",e.DdM(7,S_)),e.xp6(1),e.Q6J("isFanPreview",!0)}}const k_=function(i){return{label:i,class:"btn btn-primary mt-3"}};function D_(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",14),e._UZ(1,"app-circle-background-icon",15),e.TgZ(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"app-button",12),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editBio())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(3),e.Oqu(t.LINK_IN_BIO_LABELS.CREATE_YOUR_LINK_IN_BIO),e.xp6(1),e.Q6J("btnField",e.VKq(2,k_,t.LINK_IN_BIO_LABELS.GET_STARTED))}}let co=(()=>{const s=class{constructor(n,o,a,r){this.router=n,this.linkInBioDataService=o,this.cs=a,this.headerFooterStateService=r,this.commonEnums=X.i4,this.isMobileView=!1,this.isDefaultBio=!1,this.linkInBioEnabled=!0,this.destroy$=new q.x,this.LINK_IN_BIO_LABELS=B.mG}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.linkInBioDataService.isMobileViewChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.isMobileView=n}),this.linkInBioDataService.bioFormChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.isDefaultBio=n.default||!1}),this.linkInBioDataService.linkInBioStatusChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.linkInBioEnabled=n}))}setMobileView(){this.linkInBioDataService.setMobileView(!0)}setDesktopView(){this.linkInBioDataService.setMobileView(!1)}editBio(){this.isDefaultBio&&this.linkInBioDataService.updateLinkInBioStatus(!0),this.router.navigate(["/edit-preference/link-in-bio/add-link-in-bio"])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(mt.y),e.Y36(A.v),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-preview-link-in-bio"]],decls:3,vars:2,consts:[[1,"link-in-bio-wrapper","mt-3"],["class","monetize-card",4,"ngIf"],["class","not-found-pane card-not-found mx-0",4,"ngIf"],[1,"monetize-card"],[1,"link-in-bio-header"],[1,"preview"],[1,"responsive-icon"],[3,"click"],[1,"icon-litemobile"],[1,"desktop",3,"click"],[1,"icon-litedesktop"],[1,"justify-content-between","gap-4","align-items-center"],[3,"btnField","handleButtonClick"],[3,"isFanPreview"],[1,"not-found-pane","card-not-found","mx-0"],["icomoonClassName","icon-litelinkInBio"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e.YNc(1,I_,12,8,"div",1),e.YNc(2,D_,5,4,"div",2),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",!a.isDefaultBio),e.xp6(1),e.Q6J("ngIf",a.isDefaultBio))},dependencies:[p.O5,ae.r,De.z,lo],styles:[".link-in-bio-wrapper[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);padding:28px;border-radius:30px}@media screen and (max-width: 992px){.link-in-bio-wrapper[_ngcontent-%COMP%]{padding:20px 5px}}.monetize-card[_ngcontent-%COMP%]{padding:0!important;box-shadow:none!important}.link-in-bio-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 0 16px}.link-in-bio-header[_ngcontent-%COMP%]   .preview[_ngcontent-%COMP%]{font-size:18px;font-weight:400;margin-bottom:0;color:var(--configTextColor)}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:.5rem;align-items:center;background-color:var(--configBgColor);padding:5px;border-radius:6px;min-width:100px}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{cursor:pointer;padding:4px;border-radius:4px;color:var(--configBgTextColor);font-size:14px;font-weight:500;margin-bottom:0;width:100%;text-align:center;line-height:normal;height:30px}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px;vertical-align:sub;color:var(--configThemeColor)!important}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   p.active[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor)}@media screen and (max-width: 992px){.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   .desktop[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 992px){.link-in-bio-header[_ngcontent-%COMP%]{padding:0 10px 10px}}  .link-in-bio-wrapper .link-in-bio-header app-button .btn-primary{min-width:40px}  .link-in-bio-wrapper .link-in-bio-header .lib-edit{margin-right:5px;font-size:12px!important}"]}),i})();var N_=d(78649),L_=d(1427),Z_=d(46534),F_=d(83533),U_=d(62492);const B_={ADD_GENERAL_ACTION:"Add General Action Buttons",SAVE_ACTIONS:"Save Actions",CANCEL:"Cancel"},R_=["generalActionModal"];
1function q_(i,s){if(1&i&&(e.TgZ(0,"div",5),e._UZ(1,"app-circle-background-icon",6),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw();e.xp6(3),e.Oqu(t.LINK_IN_BIO_LABELS.NO_GENERAL_ACTION_AVAILABLE)}}function G_(i,s){if(1&i&&e._UZ(0,"app-dynamic-form-builder",7),2&i){const t=e.oxw();e.Q6J("form",t.form)("fields",t.fields)}}const Y_=function(){return{class:"modal-lg"}};let J_=(()=>{const s=class{constructor(n,o,a,r){this.formService=n,this.linkInBioDataService=o,this.cs=a,this.apiCallService=r,this.isModalOpen=!1,this.selectedActions=[],this.saveChanges=new e.vpe,this.commonEnums=X.i4,this.LINK_IN_BIO_LABELS=B.mG,this.GENERAL_ACTION_MODAL_LABELS=B_,this.destroy$=new q.x,this.fields=_e()(B.lS)}ngOnInit(){this.cs.isBrowser&&(this.fetchGeneralActions(),this.linkInBioDataService.bioItemsChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.selectedActions=n.filter(o=>"general_action"===o?.value?.action_type),this.form&&this.patchFormWithSelectedActions()}))}fetchGeneralActions(){this.apiCallService.get(x.Y9.GENERAL_ACTIONS,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n?.status&&n?.data&&Array.isArray(n.data)?(this.filterFieldsByApiResponse(n.data),this.form=this.formService.toFormGroup(this.fields),this.patchFormWithSelectedActions()):(this.form=this.formService.toFormGroup(this.fields),this.patchFormWithSelectedActions())},error:n=>{console.error("Error fetching general actions:",n),this.cs.showErrorMessage(n?.message||S.Vm.SOMETHING_WENT_WRONG),this.form=this.formService.toFormGroup(this.fields),this.patchFormWithSelectedActions()}})}filterFieldsByApiResponse(n){const o=n.map(a=>a?.name).filter(Boolean);this.fields?.sections?.[0]?.fields&&(this.fields.sections[0].fields=this.fields.sections[0].fields.filter(a=>o.includes(a?.name)))}get hasNoFields(){return!this.fields?.sections?.[0]?.fields||0===this.fields.sections[0].fields.length}patchFormWithSelectedActions(){this.form&&(this.fields?.sections?.[0]?.fields?.forEach(n=>{n?.type===M.sf.CHECKBOX&&this.form.get(n?.name)&&this.form.get(n?.name)?.setValue([])}),this.selectedActions.forEach(n=>{if(n?.value?.name&&this.form.get(n.value.name)){const o=this.fields.sections[0].fields.find(a=>a.name===n.value.name);if(o&&o.options&&o.options.length>0){const a=o.options[0].value;this.form.get(n.value.name)?.setValue([a])}}}))}openModal(){this.generalActionModal?.openModal()}closeModal(){this.generalActionModal?.closeModal()}onSaveChanges(){const n=this.form.getRawValue();this.saveChanges.emit(n),this.closeModal()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(mt.y),e.Y36(A.v),e.Y36(N.F))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-general-action-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(R_,5),2&o){let r;e.iGM(r=e.CRH())&&(a.generalActionModal=r.first)}},inputs:{isModalOpen:"isModalOpen",selectedActions:"selectedActions"},outputs:{saveChanges:"saveChanges"},decls:5,vars:9,consts:[["dynamicClass","general-action-modal",3,"headerLabel","confirmBtnLabel","cancelBtnLabel","showConfirmationBtn","showCrossBtn","modalOptions","confirmed","canceled"],["generalActionModal",""],[1,"general-action-modal-content"],["class","not-found-pane card-not-found",4,"ngIf"],[3,"form","fields",4,"ngIf"],[1,"not-found-pane","card-not-found"],["icomoonClassName","icon-liteempty_offers","iconSize","45px","iconSizeMobile","38px"],[3,"form","fields"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.onSaveChanges()})("canceled",function(){return a.closeModal()}),e.TgZ(2,"div",2),e.YNc(3,q_,4,1,"div",3),e.YNc(4,G_,1,2,"app-dynamic-form-builder",4),e.qZA()()),2&o&&(e.Q6J("headerLabel",a.GENERAL_ACTION_MODAL_LABELS.ADD_GENERAL_ACTION)("confirmBtnLabel",a.GENERAL_ACTION_MODAL_LABELS.SAVE_ACTIONS)("cancelBtnLabel",a.GENERAL_ACTION_MODAL_LABELS.CANCEL)("showConfirmationBtn",!0)("showCrossBtn",!0)("modalOptions",e.DdM(8,Y_)),e.xp6(3),e.Q6J("ngIf",a.hasNoFields),e.xp6(1),e.Q6J("ngIf",!a.hasNoFields))},dependencies:[p.O5,Le.U,U.F,De.z],styles:[".general-action-modal-content[_ngcontent-%COMP%]{max-height:400px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.general-action-modal-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}  .general-action-modal .modal-body{padding:0!important}  .general-action-modal .modal-title{text-transform:none!important}"]}),i})();const V_=["externalActionModal"],W_=function(){return{class:"modal-md"}};let H_=(()=>{const s=class{constructor(n,o){this.formService=n,this.cs=o,this.isModalOpen=!1,this.selectedActions=[],this.isEdit=!1,this.saveChanges=new e.vpe,this.commonEnums=X.i4,this.modalHeaderLabel="",this.destroy$=new q.x,this.fields=B.Y}ngOnInit(){this.cs.isBrowser&&(this.form=this.formService.toFormGroup(this.fields),this.modalHeaderLabel=this.isEdit?this.commonEnums.EDIT_EXTERNAL_ACTION:this.commonEnums.ADD_EXTERNAL_ACTION)}openModal(){if(this.modalHeaderLabel=this.isEdit?this.commonEnums.EDIT_EXTERNAL_ACTION:this.commonEnums.ADD_EXTERNAL_ACTION,this.externalActionModal?.openModal(),this.isEdit&&this.selectedActions&&this.selectedActions.length>0){const n=this.selectedActions[0].value;this.form.patchValue({action_label:n.title,action_url:n.url})}else this.form?.reset()}closeModal(){this.externalActionModal?.closeModal()}
1onSaveChanges(){if(!this.form?.invalid){const n=this.form.getRawValue();this.saveChanges.emit(n)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(Ee.D),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-external-action-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(V_,5),2&o){let r;e.iGM(r=e.CRH())&&(a.externalActionModal=r.first)}},inputs:{isModalOpen:"isModalOpen",selectedActions:"selectedActions",isEdit:"isEdit"},outputs:{saveChanges:"saveChanges"},decls:4,vars:10,consts:[["dynamicClass","external-action-modal",3,"headerLabel","confirmBtnLabel","cancelBtnLabel","showConfirmationBtn","showCrossBtn","disableConfirmButton","modalOptions","confirmed","canceled"],["externalActionModal",""],[1,"external-action-modal-content"],[3,"form","fields"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.onSaveChanges()})("canceled",function(){return a.closeModal()}),e.TgZ(2,"div",2),e._UZ(3,"app-dynamic-form-builder",3),e.qZA()()),2&o&&(e.Q6J("headerLabel",a.modalHeaderLabel)("confirmBtnLabel",a.commonEnums.SAVE_ACTION)("cancelBtnLabel",a.commonEnums.CANCEL)("showConfirmationBtn",!0)("showCrossBtn",!0)("disableConfirmButton",a.form.invalid)("modalOptions",e.DdM(9,W_)),e.xp6(3),e.Q6J("form",a.form)("fields",a.fields))},dependencies:[Le.U,U.F],styles:[".external-action-modal .modal-body{padding:0!important}  .external-action-modal .modal-body .fb-monetize-card{text-align:left!important}  .external-action-modal .modal-body .form-control{background:var(--configBgColor)!important;color:var(--configBgTextColor)!important}  .external-action-modal .modal-body input::placeholder{color:var(--configBgTextColor)!important}  .external-action-modal .modal-title{text-transform:none!important}"]}),i})();var po=d(63868);const Q_=function(i){return{label:i,class:"btn btn-default"}},K_=function(i){return{label:i,class:"btn btn-primary"}};let z_=(()=>{const s=class{constructor(){this.isCustomSelected=!1,this.save=new e.vpe,this.cancel=new e.vpe,this.back=new e.vpe,this.liveUpdate=new e.vpe,this.CUSTOM_COLOR_POPOVER_LABELS=B.Bg}ngOnInit(){this.currentColors={...this.initialColors}}ngOnChanges(n){n&&n.initialColors&&n.initialColors.currentValue!==n.initialColors.previousValue&&(this.currentColors={...this.initialColors})}onColorChange(n,o){this.currentColors[n]=o,this.isCustomSelected&&this.liveUpdate.emit({...this.currentColors})}saveChanges(){this.save.emit(this.currentColors)}cancelChanges(){this.cancel.emit()}goBack(){this.back.emit()}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-custom-color-popover"]],inputs:{initialColors:"initialColors",isCustomSelected:"isCustomSelected"},outputs:{save:"save",cancel:"cancel",back:"back",liveUpdate:"liveUpdate"},features:[e.TTD],decls:74,vars:43,consts:[[1,"popover-header","custom-color-popover-header"],[1,"icon-arrow-back","back-button",3,"click"],[1,"popover-title"],[1,"popover-content","custom-color-popover-content"],[1,"color-picker-group"],["for","background_color"],[1,"form-theme-control"],[1,"color-pickers"],[1,"color-code"],[1,"color-icon"],[1,"iconRing"],["id","background_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","background_text_color"],["id","background_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","card_background_color"],["id","card_background_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","card_text_color"],["id","card_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","button_color"],["id","button_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],["for","button_text_color"],["id","button_text_color",1,"form-control",3,"colorPicker","cpOutputFormat","colorPickerChange"],[1,"popover-footer","custom-color-popover-footer"],[3,"btnField","handleButtonClick"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"em",1),e.NdJ("click",function(){return a.goBack()}),e.qZA(),e.TgZ(2,"p",2),e._uU(3),e.qZA()(),e.TgZ(4,"div",3)(5,"div",4)(6,"label",5),e._uU(7),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"div",7),e.TgZ(10,"div",8),e._uU(11),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"span",10)(14,"span",10),e.TgZ(15,"input",11),e.NdJ("colorPickerChange",function(l){return a.currentColors.background_color=l})("colorPickerChange",function(l){return a.onColorChange("background_color",l)}),e.qZA()()()(),e.TgZ(16,"div",4)(17,"label",12),e._uU(18),e.qZA(),e.TgZ(19,"div",6),e._UZ(20,"div",7),e.TgZ(21,"div",8),e._uU(22),e.qZA(),e.TgZ(23,"div",9),e._UZ(24,"span",10)(25,"span",10),e.TgZ(26,"input",13),e.NdJ("colorPickerChange",function(l){return a.currentColors.background_text_color=l})("colorPickerChange",function(l){return a.onColorChange("background_text_color",l)}),e.qZA()()()(),e.TgZ(27,"div",4)(28,"label",14),e._uU(29),e.qZA(),e.TgZ(30,"div",6),e._UZ(31,"div",7),e.TgZ(32,"div",8),e._uU(33),e.qZA(),e.TgZ(34,"div",9),e._UZ(35,"span",10)(36,"span",10),e.TgZ(37,"input",15),e.NdJ("colorPickerChange",function(l){return a.currentColors.card_background_color=l})("colorPickerChange",function(l){return a.onColorChange("card_background_color",l)}),e.qZA()()()(),e.TgZ(38,"div",4)(39,"label",16),e._uU(40),e.qZA(),e.TgZ(41,"div",6),e._UZ(42,"div",7),e.TgZ(43,"div",8),e._uU(44),e.qZA(),e.TgZ(45,"div",9),e._UZ(46,"span",10)(47,"span",10),e.TgZ(48,"input",17),e.NdJ("colorPickerChange",function(l){return a.currentColors.card_text_color=l})("colorPickerChange",function(l){return a.onColorChange("card_text_color",l)}),e.qZA()()()(),e.TgZ(49,"div",4)(50,"label",18),e._uU(51),e.qZA(),e.TgZ(52,"div",6),e._UZ(53,"div",7),e.TgZ(54,"div",8),e._uU(55),e.qZA(),e.TgZ(56,"div",9),e._UZ(57,"span",10)(58,"span",10),e.TgZ(59,"input",19),e.NdJ("colorPickerChange",function(l){return a.currentColors.button_color=l})("colorPickerChange",function(l){return a.onColorChange("button_color",l)}),e.qZA()()()(),e.TgZ(60,"div",4)(61,"label",20),e._uU(62),e.qZA(),e.TgZ(63,"div",6),e._UZ(64,"div",7),e.TgZ(65,"div",8),e._uU(66),e.qZA(),e.TgZ(67,"div",9),e._UZ(68,"span",10)(69,"span",10),e.TgZ(70,"input",21),e.NdJ("colorPickerChange",function(l){return a.currentColors.button_text_color=l})("colorPickerChange",function(l){return a.onColorChange("button_text_color",l)}),e.qZA()()()()(),e.TgZ(71,"div",22)(72,"app-button",23),e.NdJ("handleButtonClick",function(){return a.cancelChanges()}),e.qZA(),e.TgZ(73,"app-button",23),e.NdJ("handleButtonClick",function(){return a.saveChanges()}),e.qZA()()),2&o&&(e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.CUSTOMIZE_COLORS),e.xp6(4),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.BACKGROUND_COLOR),e.xp6(2),e.Udp("background",a.currentColors.background_color),e.xp6(2),e.Oqu(a.currentColors.background_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.background_color)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.BACKGROUND_TEXT_COLOR),e.xp6(2),e.Udp("background",a.currentColors.background_text_color),e.xp6(2),e.Oqu(a.currentColors.background_text_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.background_text_color)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.CARD_BACKGROUND_COLOR),e.xp6(2),e.Udp("background",a.currentColors.card_background_color),e.xp6(2),e.Oqu(a.currentColors.card_background_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.card_background_color)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.CARD_TEXT_COLOR),e.xp6(2),e.Udp("background",a.currentColors.card_text_color),e.xp6(2),e.Oqu(a.currentColors.card_text_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.card_text_color)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.BUTTON_COLOR),e.xp6(2),e.Udp("background",a.currentColors.button_color),e.xp6(2),e.Oqu(a.currentColors.button_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.button_color)("cpOutputFormat","hex"),e.xp6(3),e.Oqu(a.CUSTOM_COLOR_POPOVER_LABELS.BUTTON_TEXT_COLOR),e.xp6(2),e.Udp("background",a.currentColors.button_text_color),e.xp6(2),e.Oqu(a.currentColors.button_text_color),e.xp6(4),e.Q6J("colorPicker",a.currentColors.button_text_color)("cpOutputFormat","hex"),e.xp6(2),e.Q6J("btnField",e.VKq(39,Q_,a.CUSTOM_COLOR_POPOVER_LABELS.CANCEL)),e.xp6(1),e.Q6J("btnField",e.VKq(41,K_,a.CUSTOM_COLOR_POPOVER_LABELS.SAVE_CUSTOM_COLORS)))},dependencies:[ae.r,nn.Kk],styles:[".custom-color-popover-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.custom-color-popover-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{font-size:20px;margin-right:10px;cursor:pointer;color:var(--configTextColor)}.custom-color-popover-header[_ngcontent-%COMP%]   .popover-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;letter-spacing:.6px;color:var(--configPostTextColor);margin-bottom:0}.custom-color-popover-content[_ngcontent-%COMP%]{padding:16px;border-radius:16px;background:var(--configBgColor);color:var(--configBgTextColor)}.custom-color-popover-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:0 15px}.color-picker-group[_ngcontent-%COMP%]{margin-bottom:1rem;text-align:left!important;display:flex;justify-content:space-between;align-items:center;gap:10px}.color-picker-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:12px;font-weight:700;color:var(--configBgTextColor)!important}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--configSecondaryBgColor)!important;color:var(--configPostTextColor)!important;padding:8px;border-radius:8px;height:40px;min-width:144px;
1max-width:200px;position:relative}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-pickers[_ngcontent-%COMP%]{width:32px;height:20px;border-radius:5px;margin:0 8px 0 0;cursor:pointer}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-code[_ngcontent-%COMP%]{flex-grow:1;font-size:12px;font-weight:700}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]{margin-left:auto;position:relative;display:flex;cursor:pointer;width:34px;height:100%}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]{position:absolute;top:8px;right:7px;border:1px solid var(--theme-interactive-link);border-radius:100%;width:14px;height:14px;display:block}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .iconRing[_ngcontent-%COMP%]:first-child{top:2px;right:0}.color-picker-group[_ngcontent-%COMP%]   .form-theme-control[_ngcontent-%COMP%]   .color-icon[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{position:absolute;right:-8px;top:0;opacity:0;width:100%;background-color:transparent;cursor:pointer}  .custom-color-popover-footer app-button button{font-size:11px!important}"]}),i})();const $_=["colorThemeDropdown"],j_=["socialLinksModal"],X_=["merchandiseShareModal"],eu=["feedContentShareModal"],tu=["portfolioShareModal"],nu=["generalActionModal"],ou=["externalActionModal"],iu=["eventTicketingShareModal"];function au(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"span",42),e._uU(2),e.qZA(),e.BQk()),2&i){const t=e.oxw();e.xp6(2),e.Oqu(null==t.selectedPreset?null:t.selectedPreset.id)}}function su(i,s){if(1&i&&e._UZ(0,"div",43)(1,"div",43)(2,"div",43)(3,"div",43)(4,"div",43)(5,"div",43),2&i){const t=e.oxw();e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.background_color),e.xp6(1),e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.background_text_color),e.xp6(1),e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.card_background_color),e.xp6(1),e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.card_text_color),e.xp6(1),e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.button_color),e.xp6(1),e.Udp("background",null==t.selectedPreset?null:t.selectedPreset.button_text_color)}}function ru(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",60),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(3),l=e.MAs(15);return r.selectPreset(a),e.KtG(l.hide())}),e._UZ(1,"div",43)(2,"div",43)(3,"div",43)(4,"div",43)(5,"div",43)(6,"div",43),e.qZA()}if(2&i){const t=s.$implicit,n=e.oxw(3);e.ekj("selected",(null==n.selectedPreset?null:n.selectedPreset.id)===(null==t?null:t.id)),e.xp6(1),e.Udp("background",t.background_color),e.xp6(1),e.Udp("background",t.background_text_color),e.xp6(1),e.Udp("background",t.card_background_color),e.xp6(1),e.Udp("background",t.card_text_color),e.xp6(1),e.Udp("background",t.button_color),e.xp6(1),e.Udp("background",t.button_text_color)}}function lu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",61),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(3),l=e.MAs(15);return r.selectPreset(a),e.KtG(l.hide())}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&i){const t=s.$implicit,n=e.oxw(3);e.ekj("selected",(null==n.selectedPreset?null:n.selectedPreset.id)===(null==t?null:t.id)),e.xp6(2),e.Oqu(t.id)}}function cu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div")(1,"div",47)(2,"p",48),e._uU(3),e.qZA()(),e.TgZ(4,"div",49)(5,"div",50)(6,"p",51),e._uU(7),e.qZA(),e.TgZ(8,"div",52),e.YNc(9,ru,7,14,"div",53),e.qZA()(),e.TgZ(10,"div",50)(11,"p",51),e._uU(12),e.qZA(),e.TgZ(13,"div",54)(14,"div",55),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2),a=e.MAs(15);return o.selectPreset(o.customColors),e.KtG(a.hide())}),e._UZ(15,"div",43)(16,"div",43)(17,"div",43)(18,"div",43)(19,"div",43)(20,"div",43),e.qZA(),e.TgZ(21,"div",56),e.NdJ("click",function(o){return e.CHM(t),e.oxw(2).openCustomColorPopover(),e.KtG(o.stopPropagation())}),e._UZ(22,"em",57),e.qZA()()(),e.TgZ(23,"div",50)(24,"p",51),e._uU(25),e.qZA(),e.TgZ(26,"div",58),e.YNc(27,lu,3,3,"div",59),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(3),e.Oqu(t.CUSTOM_COLOR_POPOVER_LABELS.COLORS_AND_THEMES),e.xp6(4),e.Oqu(t.CUSTOM_COLOR_POPOVER_LABELS.STANDARD_COLOR_PALETTES),e.xp6(2),e.Q6J("ngForOf",t.standardColors),e.xp6(3),e.Oqu(t.CUSTOM_COLOR_POPOVER_LABELS.MAKE_CUSTOM_COLOR_PALETTE),e.xp6(2),e.ekj("selected",(null==t.selectedPreset?null:t.selectedPreset.id)===(null==t.customColors?null:t.customColors.id)),e.xp6(1),e.Udp("background",t.customColors.background_color),e.xp6(1),e.Udp("background",t.customColors.background_text_color),e.xp6(1),e.Udp("background",t.customColors.card_background_color),e.xp6(1),e.Udp("background",t.customColors.card_text_color),e.xp6(1),e.Udp("background",t.customColors.button_color),e.xp6(1),e.Udp("background",t.customColors.button_text_color),e.xp6(5),e.Oqu(t.CUSTOM_COLOR_POPOVER_LABELS.AVAILABLE_THEMES),e.xp6(2),e.Q6J("ngForOf",t.themeColors)}}
1function du(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",62)(1,"app-custom-color-popover",63),e.NdJ("save",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onCustomColorsSaved(o))})("cancel",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onCustomColorsCanceled())})("back",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeCustomColorPopoverAndShowMain())})("liveUpdate",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onCustomColorsLiveUpdate(o))}),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("initialColors",t.customColors)("isCustomSelected",(null==t.selectedPreset?null:t.selectedPreset.id)===(null==t.customColors?null:t.customColors.id))}}function pu(i,s){if(1&i&&(e.TgZ(0,"ul",44),e.YNc(1,cu,28,20,"div",45),e.YNc(2,du,2,2,"div",46),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.showCustomColorPopover),e.xp6(1),e.Q6J("ngIf",t.showCustomColorPopover)}}function gu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"ul",64)(1,"li",65)(2,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.GENERAL_ACTION))}),e._uU(3),e.qZA()(),e.TgZ(4,"li",65)(5,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.SPECIFIC_ITEM))}),e._uU(6),e.qZA()(),e.TgZ(7,"li",65)(8,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.SPECIFIC_FEED_CONTENT))}),e._uU(9),e.qZA()(),e.TgZ(10,"li",65)(11,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.SPECIFIC_PORTFOLIO))}),e._uU(12),e.qZA()(),e.TgZ(13,"li",65)(14,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.SPECIFIC_EVENT_TICKETING))}),e._uU(15),e.qZA()(),e.TgZ(16,"li",65)(17,"a",66),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openMailerType(o.LINK_IN_BIO_LABELS.EXTERNAL_ACTION))}),e._uU(18),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_GENERAL_ACTION_BUTTON," "),e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_SPECIFIC_ITEM," "),e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_SPECIFIC_FEED_CONTENT," "),e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_SPECIFIC_PORTFOLIO," "),e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_SPECIFIC_EVENT_TICKETING," "),e.xp6(3),e.hij(" ",t.LINK_IN_BIO_LABELS.ADD_EXTERNAL_ACTION_BUTTON," ")}}const go=function(i){return{label:i,class:"btn btn-default"}},_u=function(i){return{label:i,class:"btn btn-primary "}},uu=function(i){return{"theme-option-pill selected":i}},mu=function(i){return{label:i,class:"btn btn-primary"}};let fu=(()=>{const s=class{constructor(n,o,a,r,l,g,h){this.document=n,this.linkInBioDataService=o,this.apiCallService=a,this.cs=r,this.router=l,this.store=g,this.headerFooterStateService=h,this.standardColors=Object.values(ct.standard),this.themeColors=Object.values(ct.theme),this.PresetTypeEnum=Y,this.LINK_IN_BIO_LABELS=B.mG,this.PRODUCT_TYPES=B.Pm,this.socialHandles=[],this.selectedProducts=[],this.isMobileView=!1,this.CUSTOM_COLOR_POPOVER_LABELS=B.Bg,this.customColors={id:"custom",type:"Custom",background_color:"#FFFFFF",background_text_color:"#000000",card_background_color:"#F0F0F0",card_text_color:"#333333",button_color:"#007BFF",button_text_color:"#FFFFFF"},this.API_URLS=x.Y9,this.showCustomColorPopover=!1,this.showMainColorPopover=!0,this.destroy$=new q.x,this.currentLinkInBioEnabled=!0,this.messageLabels=N_.wS,this.userId="",this.selectedPreset=this.standardColors[0]}ngOnInit(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{n&&(this.userProfile=n,this.userId=n?.gsi4pk||n?.user_name||"")}),this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.linkInBioDataService.linkInBioAppearanceChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n&&(this.selectedPreset=n,n?.type===Y.CUSTOM&&(this.customColors=n),this.applyColorsToCss(this.selectedPreset))}),this.linkInBioDataService.linkInBioStatusChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.currentLinkInBioEnabled=n}),this.linkInBioDataService.bioFormChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n&&(this.currentBioFormData=n,this.socialHandles=n.social_handles||[])}),this.linkInBioDataService.bioItemsChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.selectedProducts=n}),this.linkInBioDataService.isMobileViewChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.isMobileView=n}),this.linkInBioDataService.standardColorsUpdated$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.standardColors=n}),this.linkInBioDataService.defaultCustomColorChanges$.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n?(this.customColors=n,"custom"===this.selectedPreset?.id&&(this.selectedPreset=this.customColors,this.applyColorsToCss(this.customColors),this.linkInBioDataService?.updateLinkInBioAppearance(this.selectedPreset))):this.selectedPreset?.type===Y.CUSTOM&&(this.customColors=this.selectedPreset)}))}selectPreset(n){const o=n.type===Y.THEME?n:{...n,background_image:void 0};this.selectedPreset=o,n.id===this.customColors?.id&&(this.customColors=o),this.applyColorsToCss(o),this.linkInBioDataService?.updateLinkInBioAppearance(this.selectedPreset)}openCustomColorPopover(){this.showCustomColorPopover=!0}closeCustomColorPopoverAndShowMain(){this.showCustomColorPopover=!1,setTimeout(()=>{this.colorThemeDropdown&&this.colorThemeDropdown.show()},0)}onCustomColorsSaved(n){this.customColors={...n,background_image:void 0},this.selectedPreset=this.customColors,this.applyColorsToCss(this.customColors),this.linkInBioDataService?.updateLinkInBioAppearance(this.selectedPreset),this.showCustomColorPopover=!1}onCustomColorsLiveUpdate(n){this.selectedPreset?.id===this.customColors?.id&&(this.customColors={...n,background_image:void 0},this.selectedPreset=this.customColors,this.applyColorsToCss(this.customColors),this.linkInBioDataService?.updateLinkInBioAppearance(this.selectedPreset))}onCustomColorsCanceled(){this.showCustomColorPopover=!1}openSocialLinksModal(){this.socialLinksModal?.openModal()}closeSocialLinksModal(){this.socialLinksModal?.closeModal()}saveSocialLinks(n){this.socialHandles=n.filter(o=>o.username),this.socialLinksModal?.closeModal()}applyColorsToCss(n){let o=this.document.getElementById("link-in-bio-theme-variables");o||(o=this.document.createElement("style"),o.id="link-in-bio-theme-variables",this.document.head.appendChild(o)),o.textContent=`\n      :root {\n        --bgColorLinkInBio: ${n.background_color};\n        --bgTextColorLinkInBio: ${n.background_text_color};\n        --cardBgLinkInBio: ${n.card_background_color};\n        --cardTextColorLinkInBio: ${n.card_text_color};\n        --buttonColorLinkInBio: ${n.button_color};\n        --buttonTextColorLinkInBio: ${n.button_text_color};\n      }\n    `}saveChanges(){const n=this.socialHandles.map(a=>({[a.platform]:a.url||""})),o={action:B.mG.SAVE,details:{enable:this.currentLinkInBioEnabled,appearance:this.selectedPreset,bio:this.currentBioFormData.bio,banner_image_url:this.currentBioFormData.banner_image_url,profile_image_url:this.currentBioFormData.profile_image_url,social_handles:n,default_custom_appearance:{background_color:this.customColors.background_color,background_text_color:this.customColors.background_text_color,card_background_color:this.customColors.card_background_color,card_text_color:this.customColors.card_text_color,button_color:this.customColors.button_color,button_text_color:this.customColors.button_text_color},referral_link:this.linkInBioDataService.getReferralLink()},items:this.linkInBioDataService.getBioItems()};this.apiCallService.put(x.Y9.LINK_IN_BIO_MANAGE,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a?.status?(this.router.navigate([ne._1.EDIT_PREFERENCE_LIB]),this.cs.showSuccessMessage(a?.message),this.discardChanges()):this.cs.showErrorMessage(
1a?.message||S.Vm.SOMETHING_WENT_WRONG)},error:a=>{this.cs.showErrorMessage(a?.message||S.Vm.SOMETHING_WENT_WRONG)}})}discardChanges(){this.linkInBioDataService.refreshBioData()}openMerchandiseShareModal(){this.merchandiseShareModal.disabledOptionsByTab=this.buildDisabledOptionsByTab(),this.merchandiseShareModal.openModal()}onMerchandiseShareConfirmed(n){if(n){const a=[...this.selectedProducts,{value:n?.product}];this.linkInBioDataService.updateBioItems(a)}}openFeedContentShareModal(){this.feedContentShareModal&&this.userId&&(this.feedContentShareModal.userId=this.userId,this.feedContentShareModal.disabledOptionsByTab=this.buildDisabledFeedContentOptionsByTab(),this.feedContentShareModal.openModal())}get disabledPortfolioItemIds(){return this.selectedProducts.filter(n=>n?.value?.action_type===this.LINK_IN_BIO_LABELS.SPECIFIC_PORTFOLIO&&(n?.value?.id??n?.value?.sk)).map(n=>n?.value?.id??n?.value?.sk??"").filter(Boolean)}openPortfolioShareModal(){this.portfolioShareModal&&this.portfolioShareModal.openModal()}onPortfolioShareConfirmed(n){if(n&&n?.length){const o=n.map(r=>({value:{action_type:this.LINK_IN_BIO_LABELS.SPECIFIC_PORTFOLIO,title:r?.title??"",image:r?.thumbnail,sk:r?.sk??r?.id,pk:r?.pk,id:r?.id,type:r?.type,isIndividual:r?.isIndividual,portfolioSk:r?.portfolioSk}})),a=[...this.selectedProducts,...o];this.linkInBioDataService.updateBioItems(a)}}onFeedContentShareConfirmed(n){if(n&&n.length>0){const o=n.map(r=>{let l="";if(this.cs.isBrowser&&r?.sk&&r?.pk){const g=r.sk.split("#");if(g.length>1){const h=window.btoa(`${g[1]}:${r.pk}`);l=`/post/${this.userProfile?.user_name}/${h}`}else{const h=window.btoa(`${r.sk}:${r.pk}`);l=`/post/${this.userProfile?.user_name}/${h}`}}else l=`/post/${this.userProfile?.user_name}/${r?.sk||r?.value}`;return{value:{action_type:this.LINK_IN_BIO_LABELS.SPECIFIC_FEED_CONTENT,title:r?.label||r?.description||"",url:l,sk:r?.sk||r?.value,pk:r?.pk,post_type:r?.type,image:r?.image}}}),a=[...this.selectedProducts,...o];this.linkInBioDataService.updateBioItems(a)}}buildDisabledFeedContentOptionsByTab(){const n={};return this.selectedProducts.forEach(o=>{if(o?.value?.action_type===B.mG.SPECIFIC_FEED_CONTENT){const a=o.value.post_type||"all";n[a]||(n[a]=[]),n[a].push(o.value.sk)}}),n}buildDisabledOptionsByTab(){const n={};return this.selectedProducts.forEach(o=>{if(o?.value?.action_type===B.mG.SPECIFIC_ITEM){let a=o.value.product_type;a=a===B.Pm.NFT||a===B.Pm.NFTS?B.Pm.NFTS:a===B.Pm.COURSE||a===B.Pm.COURSES?B.Pm.COURSES:a===B.Pm.EXPERIENCE||a===B.Pm.EXPERIENCES?B.Pm.EXPERIENCES:a===B.Pm.DOWNLOADABLE||a===B.Pm.DOWNLOADABLES?B.Pm.DOWNLOADABLES:B.Pm.MERCHANDISE,n[a]||(n[a]=[]),n[a].push(o.value.sk)}}),n}setMobileView(){this.linkInBioDataService.setMobileView(!0)}setDesktopView(){this.linkInBioDataService.setMobileView(!1)}openMailerType(n){n===this.LINK_IN_BIO_LABELS.SPECIFIC_ITEM?this.openMerchandiseShareModal():n===this.LINK_IN_BIO_LABELS.SPECIFIC_FEED_CONTENT?this.openFeedContentShareModal():n===this.LINK_IN_BIO_LABELS.SPECIFIC_PORTFOLIO?this.openPortfolioShareModal():n===this.LINK_IN_BIO_LABELS.GENERAL_ACTION?this.generalActionModal?.openModal():n===this.LINK_IN_BIO_LABELS.SPECIFIC_EVENT_TICKETING?this.openEventTicketingShareModal():n===this.LINK_IN_BIO_LABELS.EXTERNAL_ACTION&&this.externalActionModal?.openModal()}onOpenEditModal(n){n?.value?.action_type===this.LINK_IN_BIO_LABELS.GENERAL_ACTION?this.generalActionModal?.openModal():n?.value?.action_type===this.LINK_IN_BIO_LABELS.EXTERNAL_ACTION?(this.externalActionModal.selectedActions=[n],this.externalActionModal.isEdit=!0,this.externalActionModal?.openModal()):n?.value?.action_type===this.LINK_IN_BIO_LABELS.SPECIFIC_ITEM?this.merchandiseShareModal?.openModal():n?.value?.action_type===this.LINK_IN_BIO_LABELS.SPECIFIC_FEED_CONTENT?this.openFeedContentShareModal():n?.value?.action_type===this.LINK_IN_BIO_LABELS.SPECIFIC_PORTFOLIO?this.openPortfolioShareModal():n?.value?.action_type===this.LINK_IN_BIO_LABELS.SPECIFIC_EVENT_TICKETING&&this.openEventTicketingShareModal()}saveGeneralAction(n){const o=[];n&&Object.keys(n).forEach(g=>{const h=n[g];Array.isArray(h)&&h.length&&h[0]&&o.push({value:h[0]})});const a=this.selectedProducts.filter(g=>g?.value?.action_type!==B.mG.GENERAL_ACTION||o.some(h=>h?.value?.sk===g?.value?.sk)),r=o.filter(g=>!a.some(h=>h?.value?.name===g?.value?.name)),l=[...a,...r];this.linkInBioDataService.updateBioItems(l)}saveExternalAction(n){const o={value:{action_type:this.LINK_IN_BIO_LABELS.EXTERNAL_ACTION,title:n?.action_label,url:n?.action_url,sk:`${n.action_label}-${n.action_url}-${Date.now()}`}},a=this.selectedProducts.findIndex(r=>r?.value?.action_type===this.LINK_IN_BIO_LABELS.EXTERNAL_ACTION&&r?.value?.sk===this.externalActionModal.selectedActions[0]?.value?.sk);if(-1!==a){const r=[...this.selectedProducts];r[a]=o,this.linkInBioDataService.updateBioItems(r)}else{const r=[...this.selectedProducts,o];this.linkInBioDataService.updateBioItems(r)}}get disabledEventTicketingOptionsByTab(){const n={};
1return this.selectedProducts.forEach(o=>{o?.value?.action_type===B.mG.SPECIFIC_EVENT_TICKETING&&o?.value?.sk&&["upcoming","past"].forEach(a=>{n[a]||(n[a]=[]),n[a].push(o.value.sk)})}),n}openEventTicketingShareModal(){this.eventTicketingShareModal&&this.userId&&(this.eventTicketingShareModal.disabledOptionsByTab=this.disabledEventTicketingOptionsByTab,this.eventTicketingShareModal.openModal())}onEventTicketingShareConfirmed(n){if(n?.length){const o=this.userProfile?.user_name||"",a=n.map(l=>{const g=(l.sk||"").replace(/^EVENT#/,"");return{value:{action_type:B.mG.SPECIFIC_EVENT_TICKETING,title:l.event_name||l.label||"",image:l.preview_image_url||l.image||"",url:g&&o?`/dashboard/event-listing/${o}/ticket-purchase/${g}`:"#",sk:l.sk||l.value,pk:l.pk,event_name:l.event_name,event_date:l.event_date,event_time:l.event_time,timezone:l.timezone,venue_name:l.venue_name,city:l.city,state:l.state,country:l.country}}}),r=[...this.selectedProducts,...a];this.linkInBioDataService.updateBioItems(r)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(p.K0),e.Y36(mt.y),e.Y36(N.F),e.Y36(A.v),e.Y36(O.F0),e.Y36(le.yh),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-add-edit-link-in-bio"]],viewQuery:function(o,a){if(1&o&&(e.Gf($_,5),e.Gf(j_,5),e.Gf(X_,5),e.Gf(eu,5),e.Gf(tu,5),e.Gf(nu,5),e.Gf(ou,5),e.Gf(iu,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.colorThemeDropdown=r.first),e.iGM(r=e.CRH())&&(a.socialLinksModal=r.first),e.iGM(r=e.CRH())&&(a.merchandiseShareModal=r.first),e.iGM(r=e.CRH())&&(a.feedContentShareModal=r.first),e.iGM(r=e.CRH())&&(a.portfolioShareModal=r.first),e.iGM(r=e.CRH())&&(a.generalActionModal=r.first),e.iGM(r=e.CRH())&&(a.externalActionModal=r.first),e.iGM(r=e.CRH())&&(a.eventTicketingShareModal=r.first)}},decls:50,vars:44,consts:[[1,"add-link-in-bio-container"],[1,"monetize-card"],[1,"link-in-bio-header"],[1,"preview"],[1,"responsive-icon"],[3,"click"],[1,"icon-litemobile"],[1,"desktop",3,"click"],[1,"icon-litedesktop"],[1,"justify-content-between","gap-2","align-items-center","d-none","d-lg-flex"],[3,"btnField","handleButtonClick"],[1,"color-selection-section-new"],["dropdown","",1,"btn-group","theme-dropdown-1","new-action-dropdown",3,"insideClick"],["colorThemeDropdown","bs-dropdown"],["dropdownToggle","",1,"dropdown-toggle","select-colors-themes-btn"],[1,"selected-color-theme"],[1,"selected-color-preview",3,"ngClass"],[4,"ngIf","ngIfElse"],["showColors",""],[1,"icon-litechevron_down","ms-1"],["class","dropdown-menu alignExportEsp dropdown-menu-right color-theme-popover","role","menu",4,"dropdownMenu"],[1,"new-action-btn"],["dropdown","bs-dropdown"],["dropdownToggle","",1,"dropdown-toggle","send-to-btn"],[1,"icon-litechevron_down"],["class","dropdown-menu alignExportEsp dropdown-menu-right","role","menu",4,"dropdownMenu"],[3,"openSocialLinks","openEditModal"],[1,"mt-4","gap-2","align-items-center","d-flex","d-lg-none","flex-wrap"],[1,"w-100","d-flex","justify-content-center",3,"btnField","handleButtonClick"],[3,"socialHandles","saveChanges"],["socialLinksModal",""],[3,"modalHeader","isTransparentBackground","btnLabel","apiEndPoint","confirmed"],["merchandiseShareModal",""],[3,"saveChanges"],["generalActionModal",""],["externalActionModal",""],[3,"modalHeader","isTransparentBackground","btnLabel","userId","confirmed"],["feedContentShareModal",""],[3,"modalHeader","isTransparentBackground","btnLabel","disabledItems","confirmed"],["portfolioShareModal",""],[3,"modalHeader","isTransparentBackground","btnLabel","userId","disabledOptionsByTab","confirmed"],["eventTicketingShareModal",""],[1,"theme-name"],[1,"color-box"],["role","menu",1,"dropdown-menu","alignExportEsp","dropdown-menu-right","color-theme-popover"],[4,"ngIf"],["class","custom-color-edit-popover-content",4,"ngIf"],[1,"popover-header"],[1,"popover-title"],[1,"popover-content"],[1,"popover-section"],[1,"group-label"],[1,"color-options-grid"],["class","color-option-box",3,"selected","click",4,"ngFor","ngForOf"],[1,"custom-color-wrapper"],[1,"color-option-box","custom-color-box-option",3,"click"],[1,"edit-custom-color-icon",3,"click"],[1,"icon-profileedit"],[1,"theme-options-grid"],["class","theme-option-pill",3,"selected","click",4,"ngFor","ngForOf"],[1,"color-option-box",3,"click"],[1,"theme-option-pill",3,"click"],[1,"custom-color-edit-popover-content"],[3,"initialColors","isCustomSelected","save","cancel","back","liveUpdate"],["role","menu",1,"dropdown-menu","alignExportEsp","dropdown-menu-right"],["role","menuitem"],["type","button",1,"dropdown-item",3,"click"]],template:function(o,a){if(1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4),e.qZA(),e.TgZ(5,"div",4)(6,"p",5),e.NdJ("click",function(){return a.setMobileView()}),e._UZ(7,"em",6),e.qZA(),e.TgZ(8,"p",7),e.NdJ("click",function(){return a.setDesktopView()}),e._UZ(9,"em",8),e.qZA()(),e.TgZ(10,"div",9)(11,"app-button",10),e.NdJ("handleButtonClick",function(){return a.discardChanges()}),e.qZA(),e.TgZ(12,"app-button",10),e.NdJ("handleButtonClick",function(){return a.saveChanges()}),e.qZA()()(),e.TgZ(13,"div",11)(14,"div",12,13)(16,"button",14),e._uU(17),e.TgZ(18,"div",15)(19,"div",16),e.YNc(20,au,3,1,"ng-container",17),e.YNc(21,su,6,12,"ng-template",null,18,e.W1O),e.qZA(),e._UZ(23,"em",19),e.qZA()(),e.YNc(24,pu,3,2,"ul",20),e.qZA(),e.TgZ(25,"div",21)(26,"div",12,22)(28,"button",23),e._uU(29),e._UZ(30,"em",24),e.qZA(),e.YNc(31,gu,19,6,"ul",25),e.qZA()()(),e.TgZ(32,"a
1pp-preview-creator-bio",26),e.NdJ("openSocialLinks",function(){return a.openSocialLinksModal()})("openEditModal",function(l){return a.onOpenEditModal(l)}),e.qZA(),e.TgZ(33,"div",27)(34,"app-button",28),e.NdJ("handleButtonClick",function(){return a.discardChanges()}),e.qZA(),e.TgZ(35,"app-button",28),e.NdJ("handleButtonClick",function(){return a.saveChanges()}),e.qZA()()()(),e.TgZ(36,"app-social-media-links-modal",29,30),e.NdJ("saveChanges",function(l){return a.saveSocialLinks(l)}),e.qZA(),e.TgZ(38,"app-merchandise-share-modal",31,32),e.NdJ("confirmed",function(l){return a.onMerchandiseShareConfirmed(l)}),e.qZA(),e.TgZ(40,"app-general-action-modal",33,34),e.NdJ("saveChanges",function(l){return a.saveGeneralAction(l)}),e.qZA(),e.TgZ(42,"app-external-action-modal",33,35),e.NdJ("saveChanges",function(l){return a.saveExternalAction(l)}),e.qZA(),e.TgZ(44,"app-feed-content-share-modal",36,37),e.NdJ("confirmed",function(l){return a.onFeedContentShareConfirmed(l)}),e.qZA(),e.TgZ(46,"app-portfolio-share-modal",38,39),e.NdJ("confirmed",function(l){return a.onPortfolioShareConfirmed(l)}),e.qZA(),e.TgZ(48,"app-event-ticketing-share-modal",40,41),e.NdJ("confirmed",function(l){return a.onEventTicketingShareConfirmed(l)}),e.qZA()),2&o){const r=e.MAs(22);e.xp6(4),e.Oqu(a.LINK_IN_BIO_LABELS.PREVIEW),e.xp6(2),e.ekj("active",a.isMobileView),e.xp6(2),e.ekj("active",!a.isMobileView),e.xp6(3),e.Q6J("btnField",e.VKq(34,go,a.LINK_IN_BIO_LABELS.DISCARD)),e.xp6(1),e.Q6J("btnField",e.VKq(36,_u,a.LINK_IN_BIO_LABELS.SAVE_CHANGES)),e.xp6(2),e.Q6J("insideClick",!0),e.xp6(3),e.hij(" ",a.LINK_IN_BIO_LABELS.SELECT_COLORS_AND_THEMES," "),e.xp6(2),e.Q6J("ngClass",e.VKq(38,uu,(null==a.selectedPreset?null:a.selectedPreset.type)===a.PresetTypeEnum.THEME)),e.xp6(1),e.Q6J("ngIf",(null==a.selectedPreset?null:a.selectedPreset.type)===a.PresetTypeEnum.THEME)("ngIfElse",r),e.xp6(6),e.Q6J("insideClick",!0),e.xp6(3),e.hij(" ",a.LINK_IN_BIO_LABELS.NEW_ACTION," "),e.xp6(5),e.Q6J("btnField",e.VKq(40,go,a.LINK_IN_BIO_LABELS.DISCARD)),e.xp6(1),e.Q6J("btnField",e.VKq(42,mu,a.LINK_IN_BIO_LABELS.SAVE_CHANGES)),e.xp6(1),e.Q6J("socialHandles",a.socialHandles),e.xp6(2),e.Q6J("modalHeader",a.messageLabels.SHARE_SPECIFIC_ITEMS)("isTransparentBackground",!1)("btnLabel",a.messageLabels.ADD)("apiEndPoint",a.API_URLS.getSpecificStores),e.xp6(6),e.Q6J("modalHeader",a.messageLabels.SHARE_SPECIFIC_ITEMS_FEED_CONTENT)("isTransparentBackground",!1)("btnLabel",a.messageLabels.ADD)("userId",a.userId),e.xp6(2),e.Q6J("modalHeader",a.messageLabels.SHARE_SPECIFIC_ITEMS_PORTFOLIO)("isTransparentBackground",!1)("btnLabel",a.messageLabels.ADD)("disabledItems",a.disabledPortfolioItemIds),e.xp6(2),e.Q6J("modalHeader",a.messageLabels.SHARE_SPECIFIC_ITEMS_EVENT_TICKETING)("isTransparentBackground",!1)("btnLabel",a.messageLabels.ADD)("userId",a.userId)("disabledOptionsByTab",a.disabledEventTicketingOptionsByTab)}},dependencies:[p.mk,p.sg,p.O5,ae.r,fe.Hz,fe.Mq,fe.TO,L_.K,Z_.R,U_.m,F_.Z,po.P,z_,lo,J_,H_],styles:[".add-l
1ink-in-bio-container[_ngcontent-%COMP%]{margin-top:1rem;background:var(--configSecondaryBgColor);padding:28px;border-radius:30px}.monetize-card[_ngcontent-%COMP%]{padding:0!important;box-shadow:none!important}.link-in-bio-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:.5rem;align-items:center;background-color:var(--configBgColor);padding:5px;border-radius:4px;min-width:100px}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0;cursor:pointer;width:100%;text-align:center;line-height:normal;height:30px;padding:4px}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px;vertical-align:sub;color:var(--configThemeColor)!important}.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{border-radius:4px;background-color:var(--configSecondaryBgColor)!important}@media screen and (max-width: 992px){.link-in-bio-header[_ngcontent-%COMP%]   .responsive-icon[_ngcontent-%COMP%]   .desktop[_ngcontent-%COMP%]{display:none}}.link-in-bio-header[_ngcontent-%COMP%]   .preview[_ngcontent-%COMP%]{font-size:16px;font-weight:700;vertical-align:middle;text-transform:uppercase;margin-bottom:0}.color-selection-section-new[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px;padding:8px;border-radius:8px;background-color:var(--configBgColor);display:flex;justify-content:space-between;gap:10px}.color-selection-section-new[_ngcontent-%COMP%]   .select-colors-themes-btn[_ngcontent-%COMP%]{height:45px;background:var(--configSecondaryBgColor)!important;border-radius:6px;display:flex;justify-content:space-between;gap:12px;align-items:center;border:0;padding:12px;font-size:12px;text-transform:uppercase;font-weight:900;line-height:100%;color:var(--configPostTextColor)!important}.color-selection-section-new[_ngcontent-%COMP%]   .select-colors-themes-btn[_ngcontent-%COMP%]:after{display:none}.color-selection-section-new[_ngcontent-%COMP%]   .select-colors-themes-btn[_ngcontent-%COMP%]   .icon-litechevron_down[_ngcontent-%COMP%]:before{margin-left:5px;font-size:8px}.color-selection-section-new[_ngcontent-%COMP%]   .select-colors-themes-btn[_ngcontent-%COMP%]   .selected-color-theme[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:6px;height:36px;border-radius:8px;color:var(--configThemeColor)!important;background:var(--configBgColor)!important}.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]{display:flex;border-radius:3px;border:1px solid rgba(255,255,255,.1)}.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]   .color-box[_ngcontent-%COMP%]{width:14px;height:24px}
1.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]   .color-box[_ngcontent-%COMP%]:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]   .color-box[_ngcontent-%COMP%]:last-child{margin-right:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview.theme-option-pill[_ngcontent-%COMP%]{padding:8px 10px!important;height:24px!important}.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]   .theme-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}@media screen and (max-width: 992px){.color-selection-section-new[_ngcontent-%COMP%]   .selected-color-preview[_ngcontent-%COMP%]   .theme-name[_ngcontent-%COMP%]{max-width:80px}}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]{width:345px;padding:15px;border-radius:20px;background:var(--configSecondaryBgColor)!important}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-header[_ngcontent-%COMP%]{margin-bottom:15px}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-header[_ngcontent-%COMP%]   .popover-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;letter-spacing:.6px;color:var(--configPostTextColor);margin-bottom:0}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .popover-section[_ngcontent-%COMP%]{background:var(--configBgColor)!important;padding:16px;border-radius:20px;color:var(--configBgTextColor)!important;margin-bottom:20px}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .popover-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .popover-section[_ngcontent-%COMP%]   .group-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:100%;letter-spacing:.6px;color:var(--configTextColor);margin-bottom:10px}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .popover-section[_ngcontent-%COMP%]   .color-options-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.color-selection-section-new[_ngcontent-%COMP%]   .color-theme-popover[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .popover-section[_ngcontent-%COMP%]   .theme-options-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.color-selection-section-new[_ngcontent-%COMP%]   .theme-option-pill[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background:var(--configSecondaryBgColor);padding:10px 15px;border-radius:20px;cursor:pointer;white-space:nowrap;font-weight:500;transition:all .2s ease-in-out;flex-shrink:0;height:34px;width:auto;color:var(--configPostTextColor)!important}.color-selection-section-new[_ngcontent-%COMP%]   .theme-option-pill.
1selected[_ngcontent-%COMP%]{background-color:var(--theme-interactive-link);color:#283a4a}.color-selection-section-new[_ngcontent-%COMP%]   .theme-option-pill.selected[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configButtonTextColor)!important}.color-selection-section-new[_ngcontent-%COMP%]   .theme-option-pill[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;letter-spacing:.6px;white-space:nowrap}.color-selection-section-new[_ngcontent-%COMP%]   .color-option-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:6px;overflow:hidden;height:max-content;border:1px solid rgba(255,255,255,.1);cursor:pointer;transition:all .2s ease-in-out;flex-shrink:0;position:relative}.color-selection-section-new[_ngcontent-%COMP%]   .color-option-box.selected[_ngcontent-%COMP%]{border-width:2px;border-color:var(--theme-interactive-link)}.color-selection-section-new[_ngcontent-%COMP%]   .color-option-box[_ngcontent-%COMP%]   .color-box[_ngcontent-%COMP%]{width:14px;height:24px}.color-selection-section-new[_ngcontent-%COMP%]   .custom-color-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.color-selection-section-new[_ngcontent-%COMP%]   .custom-color-wrapper[_ngcontent-%COMP%]   .color-option-box[_ngcontent-%COMP%]{justify-content:flex-start}.color-selection-section-new[_ngcontent-%COMP%]   .edit-custom-color-icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background-color:#ffffff1a;transition:background-color .2s ease-in-out;margin-left:auto}.color-selection-section-new[_ngcontent-%COMP%]   .edit-custom-color-icon[_ngcontent-%COMP%]:hover{background-color:#fff3}.color-selection-section-new[_ngcontent-%COMP%]   .new-action-btn[_ngcontent-%COMP%]{margin-left:auto}.color-selection-section-new[_ngcontent-%COMP%]   .new-action-btn[_ngcontent-%COMP%]   .icon-litechevron_down[_ngcontent-%COMP%]{margin-top:-2px;color:inherit!important}.color-selection-section-new[_ngcontent-%COMP%]   .send-to-btn[_ngcontent-%COMP%]{height:45px;background:transparent;border-radius:22px;display:flex;justify-content:center;align-items:center;border:0;padding:0 15px;font-size:12px;text-transform:uppercase;font-weight:900;line-height:100%;border:1px solid var(--theme-interactive-link);color:var(--theme-interactive-link)}.color-selection-section-new[_ngcontent-%COMP%]   .send-to-btn[_ngcontent-%COMP%]:after{display:none}.color-selection-section-new[_ngcontent-%COMP%]   .send-to-btn[_ngcontent-%COMP%]   .icon-litechevron_down[_ngcontent-%COMP%]:before{margin-left:5px;font-size:8px}.color-selection-section-new[_ngcontent-%COMP%]   .icon-liteicon-black-tick[_ngcontent-%COMP%]{vertical-align:middle}.color-selection-section-new[_ngcontent-%COMP%]   .icon-liteicon-black-tick[_ngcontent-%COMP%]:before{margin:3px}@media screen and (max-width: 756px){.color-selection-section-new[_ngcontent-%COMP%]{flex-wrap:wrap}.send-to-btn[_ngcontent-%COMP%]{font-size:10px!important}.btn-group[_ngcontent-%COMP%]{width:100%}.add-link-in-bio-container[_ngcontent-%COMP%]{padding:20px 5px 1px}.link-in-bio-header[_ngcontent-%COMP%]{padding:0 10px}.select-colors-themes-btn[_ngcontent-%COMP%]{width:100%!important;gap:5px!important}}  app-add-edit-link-in-bio app-downloadable-details .downlodables-details .priceCall a{white-space:normal}"]}),i})();function hu(i,s){1&i&&e._UZ(0,"app-preference-mobile-header-skeleton")}function Cu(i,s){1&i&&(e.TgZ(0,"div",13)(1,"div",5),e._UZ(2,"app-skeleton",14),e.qZA(),e.TgZ(3,"div",7),e._UZ(4,"app-skeleton",15)(5,"app-skeleton",16),e.qZA(),e.TgZ(6,"div",9),e._UZ(7,"app-skeleton",17),e.qZA()())}function bu(i,s){1&i&&(e.TgZ(0,"div",18)(1,"div",19),e._UZ(2,"app-skeleton",20)(3,"app-skeleton",21),e.qZA(),e.TgZ(4,"div",19),e._UZ(5,"app-skeleton",22)(6,"app-skeleton",15)(7,"app-skeleton",16),e.qZA(),e.TgZ(8,"div",23),e._UZ(9,"app-skeleton",17),e.qZA()())}let pn=(()=>{const s=class{constructor(){this.hideMobileHeader=!1,this.rows=Array(5)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-topic-tags-skeleton"]],inputs:{hideMobileHeader:"hideMobileHeader"},standalone:!0,features:[e.jDz],decls:14,vars:3,consts:[[4,"ngIf"],[1,"skeleton-topic-tags"],[1,"skeleton-table-desktop"],[1,"skeleton-section"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-title"],["className","h-14 w-60 r-4 c-post"],[1,"skeleton-col","col-desc"],["className","h-14 w-90 r-4 c-post"],[1,"skeleton-col","col-action"],["class","skeleton-row",4,"ngFor","ngForOf"],[1,"skeleton-cards-mobile"],["class","skeleton-card",4,"ngFor","ngForOf"],[1,"skeleton-row"],["className","h-16 w-70% r-4 c-post"],["className","h-14 w-100% r-4 c-post"],["className","h-14 w-80% r-4 c-post"],["className","h-24 w-80 r-12 c-post"],[1,"skeleton-card"],[1,"skeleton-card-field"],["className","h-12 w-40 r-4 c-post"],["className","h-14 w-50% r-4 c-post"],["className","h-12 w-70 r-4 c-post"],[1,"skeleton-card-action"]],template:function(o,a){1&o&&(e.YNc(0,hu,1,0,"app-preference-mobile-header-skeleton",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),e._UZ(6,"app-skeleton",6),e.qZA(),e.TgZ(7,"div",7),e._UZ(8,"a
1pp-skeleton",8),e.qZA(),e.TgZ(9,"div",9),e._UZ(10,"app-skeleton",6),e.qZA()(),e.YNc(11,Cu,8,0,"div",10),e.qZA()(),e.TgZ(12,"div",11),e.YNc(13,bu,10,0,"div",12),e.qZA()()),2&o&&(e.Q6J("ngIf",!a.hideMobileHeader),e.xp6(11),e.Q6J("ngForOf",a.rows),e.xp6(2),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,p.O5,ie._,pe],styles:[".skeleton-topic-tags[_ngcontent-%COMP%]{margin-top:20px}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:30px;padding:20px 30px}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:20px 0}.skeleton-header[_ngcontent-%COMP%]{padding:14px 0}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}.skeleton-col.col-title[_ngcontent-%COMP%]{width:25%}.skeleton-col.col-desc[_ngcontent-%COMP%]{width:55%;display:flex;flex-direction:column;gap:6px}.skeleton-col.col-action[_ngcontent-%COMP%]{width:20%;display:flex;justify-content:flex-end}.skeleton-cards-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media (min-width: 992px){.skeleton-cards-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-card[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:16px}.skeleton-card-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;margin-top:12px}.skeleton-card-field[_ngcontent-%COMP%]:first-child{margin-top:0}.skeleton-card-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:12px}"]}),i})();const vu=["deleteModal"];function xu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",15)(1,"a",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",17),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",18),e._uU(6),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Oqu(t.fields.TOPIC_TAGS)}}function Pu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",30)(1,"div",22)(2,"div",23)(3,"div",31),e._UZ(4,"em",32),e.qZA()(),e.TgZ(5,"div",24)(6,"label"),e._uU(7),e.qZA(),e.TgZ(8,"p"),e._uU(9),e.qZA()(),e.TgZ(10,"div",25)(11,"label"),e._uU(12),e.qZA(),e.TgZ(13,"p"),e._uU(14),e.qZA()(),e.TgZ(15,"div",26)(16,"div",33)(17,"em",34),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.editTopicTag(a))}),e.qZA(),e.TgZ(18,"em",35),e.NdJ("click",function(o){const r=e.CHM(t).$implicit,l=e.oxw(3);return e.KtG(l.onDeleteClick(r,o))}),e.qZA(),e.TgZ(19,"label",36)(20,"input",37),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(3);return e.KtG(l.toggleTopicTag(r,o))}),e.qZA(),e._UZ(21,"span",38),e.qZA()()()()()}if(2&i){const t=s.$implicit;e.oxw();const n=e.MAs(12),o=e.oxw(2);e.Q6J("cdkDragData",t)("cdkDragBoundary",n),e.xp6(7),e.Oqu(o.fields.TITLE),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Oqu(o.fields.DESCRIPTION),e.xp6(2),e.Oqu(t.description||"-"),e.xp6(3),e.Q6J("title",o.fields.EDIT),e.xp6(1),e.Q6J("title",o.fields.DELETE),e.xp6(2),e.Q6J("checked",t.status)}}function Ou(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22),e._UZ(4,"div",23),e.TgZ(5,"div",24),e._uU(6),e.qZA(),e.TgZ(7,"div",25),e._uU(8),e.qZA(),e.TgZ(9,"div",26),e._uU(10),e.qZA()()(),e.TgZ(11,"div",27,28),e.NdJ("cdkDropListDropped",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.drop(o))}),e.YNc(13,Pu,22,9,"div",29),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(6),e.Oqu(t.fields.TITLE),e.xp6(2),e.hij(" ",t.fields.DESCRIPTION," "),e.xp6(2),e.Oqu(t.fields.ACTION),e.xp6(1),e.Q6J("cdkDropListData",t.topicTags),e.xp6(2),e.Q6J("ngForOf",t.topicTags)}}function Mu(i,s){if(1&i&&(e.TgZ(0,"div",39)(1,"div",40)(2,"p",41),e._uU(3),e.qZA()()()),2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.fields.NO_TOPIC_TAGS_FOUND," ")}}
1function Tu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",4),e.YNc(1,xu,7,1,"div",5),e.TgZ(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"h2",10),e._uU(7),e.qZA(),e._UZ(8,"app-info-icon",11),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.addNewTopicTag())}),e._uU(10),e.qZA()(),e.YNc(11,Ou,14,5,"div",13),e.YNc(12,Mu,4,1,"div",14),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isLoading),e.xp6(6),e.Oqu(t.fields.TOPIC_TAGS),e.xp6(1),e.Q6J("message",t.fields.TOPIC_TAGS_DESCRIPTION)("height",18)("width",29),e.xp6(2),e.hij(" ",t.fields.ADD_NEW_TOPIC_TAG," "),e.xp6(1),e.Q6J("ngIf",!t.isLoading&&(null==t.topicTags?null:t.topicTags.length)),e.xp6(1),e.Q6J("ngIf",!(null!=t.topicTags&&t.topicTags.length||t.isLoading))}}function wu(i,s){1&i&&e._UZ(0,"app-topic-tags-skeleton")}let Eu=(()=>{const s=class{constructor(n,o,a,r){this.cs=n,this.apiCallService=o,this.router=a,this.headerFooterStateService=r,this.topicTags=[],this.fields=M.Iv,this.destroy$=new q.x,this.isLoading=!1,this.selectedItemDelete=null,this.commonEnum=X.i4,this.appRoutingUrl=X.dp}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.getTopicTags())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getTopicTags(){this.isLoading=!0,this.apiCallService.get(x.Y9.postTopics,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n.status?this.topicTags=n.data||[]:this.cs.showErrorMessage(n.message)},error:n=>{this.isLoading=!1,this.cs.showErrorMessage(n.message)}})}addNewTopicTag(){this.router.navigate(["/edit-preference/topic-tags/add"])}editTopicTag(n){this.router.navigate(["/edit-preference/topic-tags/edit",n.sk])}onDeleteClick(n,o){o.stopPropagation(),this.selectedItemDelete=n,this.deleteModal?.openModal()}onCancelDeleteModal(){this.deleteModal&&(this.deleteModal.closeModal(),this.selectedItemDelete=null)}deleteTopicTag(){const n=`${x.Y9.postTopics}/${this.cs.encodeToUTF(this.selectedItemDelete.sk)}`;this.apiCallService.delete(n,!1).pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{o.status?(this.cs.showSuccessMessage(o.message),this.topicTags=this.topicTags.filter(a=>a.sk!==this.selectedItemDelete.sk)):this.cs.showErrorMessage(o.message)},error:o=>{this.cs.showErrorMessage(o.message)}})}toggleTopicTag(n,o){const a=o.target.checked,r=`${x.Y9.postTopics}/${this.cs.encodeToUTF(n.sk)}`;this.apiCallService.put(r,{status:a},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:l=>{l.status?(n.status=a,this.cs.showSuccessMessage(l.message)):(o.target.checked=!a,this.cs.showErrorMessage(l.message))},error:l=>{o.target.checked=!a,this.cs.showErrorMessage(l.message)}})}drop(n){if((0,we.bA)(this.topicTags,n.previousIndex,n.currentIndex),n.previousIndex===n.currentIndex)return;const o=this.topicTags.map((a,r)=>({sk:a.sk,sequence_number:r+1,pk:a.pk}));this.apiCallService.put(`${x.Y9.portfolioSequenceNumber}?itemType=postTopic`,{data:o},!1).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status&&(this.topicTags.forEach((r,l)=>{r.sequence_number=l+1}),this.cs.showSuccessMessage(a.message))},error:a=>{this.cs.showErrorMessage(a.message)}})}getActiveTopicTagsCount(){return this.topicTags.filter(n=>n.status).length}moveToDashboard(){this.router.navigate(["dashboard"])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(A.v),e.Y36(N.F),e.Y36(O.F0),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-topic-tags"]],viewQuery:function(o,a){if(1&o&&e.Gf(vu,5),2&o){let r;e.iGM(r=e.CRH())&&(a.deleteModal=r.first)}},decls:4,vars:6,consts:[["class","inside-container preference-container",4,"ngIf"],[4,"ngIf"],[3,"dynamicClass","ConfirmationMessage","headerLabel","commonEnum","confirmDelete","cancelDelete"],["deleteModal",""],[1,"inside-container","preference-container"],["class","inside-header",4,"ngIf"],[1,"walletform-container","preference-privacy-container","topic-tags-container"],[1,"topic-tags-content"],[1,"topic-tags-header"],[1,"topic-tags-title-section"],[1,"walletform-title"],[3,"message","height","width"],[1,"btn","btn-primary",3,"click"],["class","topic-tags-table-wrapper",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"topic-tags-table-wrapper"],[1,"dataTable","dataTable-count","topic-tags-table"],[1,"dataTable-head"],[1,"dataTable-inner"],[1,"dataTable-col","drag-col"],[1,"dataTable-col","title-col"],[1,"dataTable-col","description-col"],[1,"dataTable-col","action-col"],["cdkDropList","",1,"dataTable-body",3,"cdkDropListData","cdkDropListDropped"],["dropListContainer",""],["cdkDrag","","class","dataTable-row topic-tag-row",3,"cdkDragData","cdkDragBoundary",4,"ngFor","ngForOf"],["cdkDrag","",1,"dataTable-row","topic-tag-row",3,"cdkDragData","cdkDragBoundary"],["cdkDragHandle","",1,"drag-handle"],[1,"icon-drag"],[1,"topic-tag-actions"],[1,"icon-res-editfill","change-pointer",3,"title","click"],[1,"icon-delete-filled","change-pointer",3,"title","click"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"empty-state"],[1,"empty-state-content"],[1,"empty-state-text"]],template:function(o,a){1&o&&(e.YNc(0,Tu,13,8,"div",0),e.YNc(1,wu,1,0,"app-topic-tags-skeleton",1),e.TgZ(2,"app-confirmation-modal",2,3),e.NdJ("confirmDelete",function(){return a.deleteTopicTag()})("cancelDelete",function(){return a.onCancelDeleteModal()}),e.qZA()),2&o&&(e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("dynamicClass","delete-modal portfolio-banner-delete-modal")("ConfirmationMessage",a.fields.DELETE_TOPIC_TAG_MSG.replace("{{title}}",null==a.selectedItemDelete?null:a.selectedItemDelete.title))("headerLabel",a.fields.DELETE_TOPIC_TAG)("commonEnum",a.commonEnum))},dependencies:[p.sg,p.O5,ke.e,ce.l,Fe.Y,we.Wj,we.Zt,we.Bh,pn],styles:['.topic-tags-container[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.8!important;background:rgba(255,255,255,.02)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:12px!important;pointer-events:none!important;box-sizing:border-box!important}.topic-tags-container[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{opacity:.8!important}.topic-tags-container[_ngcontent-%COMP%]   .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)!important}
1.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:24px 0;flex-wrap:wrap;gap:20px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-header[_ngcontent-%COMP%]   app-info-icon[_ngcontent-%COMP%]{padding-top:3px!important}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-header[_ngcontent-%COMP%]   .topic-tags-title-section[_ngcontent-%COMP%]{display:flex;align-items:center}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-header[_ngcontent-%COMP%]   .topic-tags-title-section[_ngcontent-%COMP%]   .walletform-title[_ngcontent-%COMP%]{margin-bottom:0;padding-bottom:0;color:var(--configBgTextColor)!important;font-size:24px;font-weight:600;text-transform:capitalize;border-bottom:none!important}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:30px;padding:20px;margin-top:20px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]{background:transparent!important}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:50px 1fr 1fr 200px;gap:15px;padding:0;border-bottom:1px solid rgba(255,255,255,.1);align-items:center}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:var(--configBgTextColor);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.drag-col[_ngcontent-%COMP%]{justify-content:center}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.title-col[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.description-col[_ngcontent-%COMP%]{text-align:left;justify-content:flex-start}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.action-col[_ngcontent-%COMP%]{text-align:right;justify-content:flex-end}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]{transition:background-color .2s ease;cursor:default;position:relative}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row.cdk-drag[_ngcontent-%COMP%]{cursor:grab}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row.cdk-drag[_ngcontent-%COMP%]:active{cursor:grabbing}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:50px 1fr 1fr 200px;gap:15px;padding:0;border-bottom:1px solid rgba(255,255,255,.05);align-items:center;min-height:60px}
1.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]{justify-content:center;min-width:50px;flex-shrink:0}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:grab;padding:8px;display:flex;align-items:center;justify-content:center;color:var(--configBgTextColor);opacity:.6;transition:opacity .2s ease;user-select:none;-webkit-user-select:none;touch-action:none}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]:hover{opacity:1}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing;opacity:1}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]{font-size:18px;color:var(--configBgTextColor);display:block;pointer-events:none;background:unset!important}@media (max-width: 992px){.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]:before{color:var(--configBgTextColor)!important}}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none;font-size:12px;font-weight:600;color:var(--configBgTextColor);opacity:.7;margin-bottom:5px;text-transform:uppercase}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:var(--configBgTextColor);font-size:14px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .to
1pic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]{text-align:left;justify-content:flex-start}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]{justify-content:flex-end;gap:15px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:18px;opacity:.7;transition:opacity .2s ease;cursor:pointer}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%]:hover, .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]:hover{opacity:1}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{position:relative;display:inline-block!important;width:22px;height:14px;flex:none;margin-bottom:0!important}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .slider[_ngcontent-%COMP%]{border-color:#09c6da}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .to
1pic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .slider[_ngcontent-%COMP%]:before{transform:translate(8px,50%)!important;background-color:#09c6da}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:transparent;transition:.4s;border:#9198ab 2px solid;border-radius:34px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:6px;width:6px;left:2px;bottom:50%;border-radius:50%;background-color:#9198ab;transition:.4s;transform:translateY(50%)!important}@media (max-width: 992px){.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important}}.cdk-drag-preview[_ngcontent-%COMP%]{display:none!important}@media screen and (max-width: 992px){.topic-tags-header[_ngcontent-%COMP%]{margin:18px 0}.topic-tags-header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:12px}.topic-tags-header[_ngcontent-%COMP%]   .walletform-title[_ngcontent-%COMP%]{font-size:20px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]{padding:15px;overflow-x:auto}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]{min-width:600px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{grid-template-columns:40px 1fr 1fr 180px;gap:15px;padding:15px 0}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]{min-width:40px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]{gap:10px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ng
1content-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:16px}}@media (max-width: 992px){.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]{padding:12px;overflow-x:visible}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]{min-width:auto}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]{display:none}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]{background:var(--configBgColor);border-radius:16px;padding:12px;border-bottom:none;transition:background-color .2s ease}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;gap:12px;padding:0;border-bottom:none;min-height:auto}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]{grid-column:1;grid-row:1;min-width:auto;padding:6px;display:flex;align-items:center}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{padding:6px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]{font-size:16px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);word-break:break-word;white-space:normal;margin:0;width:100%}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]{grid-column:1/-1;grid-row:2;flex-direction:column;align-items:flex-start;width:100%}
1.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;font-size:12px;font-weight:600;color:var(--configBgTextColor);opacity:.7;margin-bottom:5px;text-transform:uppercase}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);word-break:break-word;white-space:normal}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]{grid-column:1/-1;grid-row:3;width:100%;justify-content:flex-end;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]{gap:12px;flex-wrap:wrap;justify-content:flex-end}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%], .topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:18px}.topic-tags-container[_ngcontent-%COMP%]   .topic-tags-table-wrapper[_ngcontent-%COMP%]   .topic-tags-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .topic-tag-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .topic-tag-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{margin-left:auto}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:1!important;background:rgba(255,255,255,.02)!important;border:1px dashed rgba(255,255,255,.1)!important;border-radius:12px!important;padding:12px!important;min-height:60px!important;display:flex!important;align-items:center!important;box-sizing:border-box!important;pointer-events:none!important}.cdk-drag-preview[_ngcontent-%COMP%]{display:none!important}}.empty-state[_ngcontent-%COMP%]{margin-top:16px;display:flex;justify-content:center;align-items:center;padding:60px 48px;background:var(--configSecondaryBgColor);border-radius:32px}.empty-state[_ngcontent-%COMP%]   .empty-state-content[_ngcontent-%COMP%]{text-align:center;width:100%;max-width:600px}.empty-state[_ngcontent-%COMP%]   .empty-state-content[_ngcontent-%COMP%]   .empty-state-text[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:var(--configPostTextColor)!important;margin:0;padding-top:20px}.empty-state[_ngcontent-%COMP%]   .mt-15[_ngcontent-%COMP%]{margin-top:15px}  .theme-whiteLabel .switch input:checked~.slider{border-color:var(--configThemeColor)!important}  .theme-whiteLabel .switch input:checked~.slider:before{background-color:var(--configThemeColor)!important}']}),i})();function yu(i,s){if(1&i&&e._UZ(0,"app-dynamic-form-builder",15),2&i){const t=e.oxw(2);e.Q6J("form",t.form)("fields",t.fields)("isEditMode",t.isEditMode)}}const Su=function(i,s,t){return{type:"button",class:"btn btn-primary btn-submit",label:i,disabled:s,loading:t}};
1function Iu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"a",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateBack())}),e.TgZ(3,"em",4),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",5),e._uU(7),e.qZA()(),e.TgZ(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateBack())}),e._UZ(12,"em",10),e.TgZ(13,"span"),e._uU(14),e.qZA()()(),e.TgZ(15,"div",11),e.YNc(16,yu,1,3,"app-dynamic-form-builder",12),e.TgZ(17,"div",13)(18,"app-button",14),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.handleSubmit())}),e.qZA()()()()()()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.isEditMode?t.fieldsConstants.EDIT:t.fieldsConstants.ADD_NEW_TOPIC_TAG),e.xp6(7),e.Oqu(t.isEditMode?t.fieldsConstants.EDIT_TOPIC_TAG_TITLE:t.fieldsConstants.ADD_NEW_TOPIC_TAG_TITLE),e.xp6(2),e.Q6J("ngIf",t.form&&t.fields),e.xp6(2),e.Q6J("btnField",e.kEZ(4,Su,t.isEditMode?t.fieldsConstants.UPDATE_TOPIC_TAG:t.fieldsConstants.CREATE_TOPIC_TAG,(null==t.form?null:t.form.invalid)||t.isLoading,t.isLoading))}}let _o=(()=>{const s=class{constructor(n,o,a,r,l,g){this.router=n,this.route=o,this.apiCallService=a,this.cs=r,this.headerFooterStateService=l,this.formService=g,this.form=null,this.fields=null,this.fieldsConstants=M.Iv,this.isEditMode=!1,this.topicTagId=null,this.isLoading=!1,this.destroy$=new q.x}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.route.params.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n.id&&(this.isEditMode=!0,this.topicTagId=n.id),this.initForm(),this.isEditMode&&this.topicTagId&&this.loadTopicTag()}))}initForm(){this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.TEXT,label:"Title",name:"title",placeholder:"Enter Title",class:"col-12",autoComplete:"off",validation:{required:{message:"Title is required"},maxlength:{value:20,message:"Maximum 20 characters allowed"},minlength:{value:2,message:"Minimum 2 characters allowed"}}},{type:M.sf.TEXT_AREA,label:"Optional Description (Not publicly visible)",name:"description",placeholder:"Write Description",class:"col-12",maxlength:500,validation:{maxlength:{value:500,message:"Maximum 500 characters allowed"}}}]}],buttons:[]}),this.form=this.formService.toFormGroup(this.fields)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadTopicTag(){!this.topicTagId||!this.form||(this.isLoading=!0,this.apiCallService.get(x.Y9.postTopics,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{if(this.isLoading=!1,n.status&&n.data?.length){const o=n.data.find(a=>a.sk===this.topicTagId);this.form?.patchValue({title:o.title||"",description:o.description||""})}else this.cs.showErrorMessage(n.message),this.navigateBack()},error:n=>{this.isLoading=!1,this.cs.showErrorMessage(n.message),this.navigateBack()}}))}handleSubmit(){if(!this.form||this.form.invalid)return void(this.form&&this.form.markAllAsTouched());const n=this.form.value,o={title:n.title.trim(),description:n.description?.trim()||""};if(this.isLoading=!0,this.isEditMode&&this.topicTagId){const a=`${x.Y9.postTopics}/${this.cs.encodeToUTF(this.topicTagId)}`;this.apiCallService.put(a,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{this.isLoading=!1,r.status?(this.cs.showSuccessMessage(r.message),this.navigateBack()):this.cs.showErrorMessage(r.message)},error:r=>{this.isLoading=!1,this.cs.showErrorMessage(r.message)}})}else this.apiCallService.post(x.Y9.postTopics,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{this.isLoading=!1,r.status?(this.cs.showSuccessMessage(r.message),this.navigateBack()):this.cs.showErrorMessage(r.message)},error:r=>{this.isLoading=!1,this.cs.showErrorMessage(r.message)}})}navigateBack(){this.router.navigate([ne._1.TOPIC_TAGS])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(O.gz),e.Y36(N.F),e.Y36(A.v),e.Y36(c.P),e.Y36(Ee.D))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-add-edit-topic-tag"]],decls:1,vars:1,consts:[["class","inside-container preference-container",4,"ngIf"],[1,"inside-container","preference-container"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container","add-edit-topic-tag-container"],[1,"add-edit-topic-tag-content"],[1,"navigation-header"],[1,"back-button",3,"click"],[1,"icon-arrow-back"],[1,"form-card"],[3,"form","fields","isEditMode",4,"ngIf"],[1,"form-actions"],[3,"btnField","handleButtonClick"],[3,"form","fields","isEditMode"]],template:function(o,a){1&o&&e.YNc(0,Iu,19,8,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5,Le.U,ae.r,ce.l],styles:[".add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]{margin:0 auto;padding:10px 0}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]{margin-bottom:20px;
1display:flex;flex-direction:column;gap:16px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .topic-tags-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:8px 16px;background:#09c6da;color:#fff;border-radius:20px;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;width:-moz-fit-content;width:fit-content}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:none;border:none;color:var(--configBgTextColor)!important;font-size:24px;cursor:pointer;padding:8px 0;transition:opacity .2s ease}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   .icon-arrow-back[_ngcontent-%COMP%]{font-size:24px;display:flex;align-items:center}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:24px;padding:12px 12px 24px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card{background:transparent;padding:0;margin:0;box-shadow:none}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card h2{display:none}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card .row{margin:0}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]{margin-top:32px;display:flex;justify-content:flex-start;padding-left:12px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]{min-width:200
1px;padding:14px 32px;font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-radius:12px;transition:opacity .2s ease,transform .2s ease}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]:hover:not(:disabled){opacity:.9;transform:translateY(-1px)}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]   .spinner-border-sm[_ngcontent-%COMP%]{width:16px;height:16px;border-width:2px}@media screen and (max-width: 992px){.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]{padding:16px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]{padding:24px 20px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:20px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-size:13px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:15px;padding:10px 14px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]{margin-top:24px}.add-edit-topic-tag-container[_ngcontent-%COMP%]   .add-edit-topic-tag-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]{width:100%;min-width:unset}}"]}),i})();var H=(()=>{return(i=H||(H={})).STARTED="started",i.PENDING_VERIFICATION="pending_verification",i.VERIFIED="verified",i.FAILED="failed",H;var i})();const te={LOADING:"loading",WLS_NOT_VERIFIED:"wls_not_verified",SETUP:"setup",DNS_RECORDS:"dns_records",PENDING_VERIFICATION:"pending_verification",VERIFIED:"verified",FAILED:"failed"},ye={TOPFAN:"topfan",CUSTOM:"custom"},Se={TITLE:"Outbound Email Address Preferences",VERIFICATION_TITLE:"Outbound Email Address Verification",DNS_TITLE:"DNS Records for Custom Outbound Email Address",VERIFYING_TITLE:"Verifying Your Domain...",SUCCESS_TITLE:"Domain Verified",FAILED_TITLE:"We Couldn't Verify Your Domain",ADD_DNS_RECORDS:"Add DNS Records",WLS_NOT_VERIFIED:"For setting custom bound emails, first setup and verify your White Labeled Site.",SETUP_DESCRIPTION:"Choose the domain name you would like your outbound emails to originate from including newsletters and marketing emails:",DNS_INSTRUCTIONS:"Add these records to your DNS with your provider. Once they are added, click on VERIFY OUTBOUND EMAIL SETTINGS.",VERIFYING_DESC:"The verification process may take anywhere from 30 minutes to 24 hours depending on your DNS provider. Emails will continue to be sent from <strong>[email protected]</strong> in the meantime.",SUCCESS_MESSAGE:"Your newsletter and segmentation marketing emails will now be sent from",FAILED_DESC:"The verification process failed. This usually happens when DNS records are not properly configured or haven't propagated yet. Review the common issues below and try again.",FAILED_DNS_DESC:"We couldn't detect the DNS records in your domain settings. Make sure all records are added correctly.",FAILED_EMAIL_DESC:"Waiting for confirmation",CURRENTLY_SENDING_FROM:"",NO_REPLY_PREFIX:"no-reply@",TOPFAN_DOMAIN:"topfan.com",CUSTOM_DOMAIN:"creatordomain.com",
1USING_DOMAIN:"Using",BENEFITS_TITLE:"will provide the following benefits:",BENEFIT_DELIVERABILITY:"Better deliverability",BENEFIT_OPEN_RATES:"Higher open rates",BENEFIT_BRANDING:"Professional branding",DNS_VERIFIED:"DNS Records Verification",EMAIL_CONFIGURED:"Outbound Email Services Configuration",CHECKING_DNS:"Checking for DNS propagation...",WAITING_CONFIRMATION:"Waiting for confirmation",VERIFIED_DOMAIN_LABEL:"VERIFIED DOMAIN",SENDER_EMAIL_LABEL:"SENDER EMAIL",STATUS_LABEL:"STATUS",ACTIVE:"Active",TXT_NAME:"TXT Name",TXT_VALUE:"Value",CNAME_NAME:"CNAME Name",MX_NAME:"MX Name",TXT_AMAZONSES_DESC:"Confirms that this domain belongs to you and can send emails",TXT_SPF_DESC:"Allows this subdomain to send emails safely",TXT_DMARC_DESC:"Helps prevent fake emails and improves trust in your domain",CNAME_DKIM1_DESC:"Points your domain to another service so features like websites or tracking links work correctly",CNAME_DKIM2_DESC:"Helps connect additional subdomains to the same service without managing IP addresses",CNAME_DKIM3_DESC:"Used for advanced setup (like email tracking or custom links) to ensure proper routing",MX_DESC:"Tells the internet where your emails should be delivered",CONFIRM_RESET_TITLE:"Reset Email Configuration",CONFIRM_RESET_MESSAGE:"You already have an email configuration in progress or verified. Are you sure you want to reset and start over? This will require you to update your DNS records again.",CONFIRM_DELETE_TITLE:"Delete Email Configuration",CONFIRM_DELETE_MESSAGE:"Are you sure you want to delete your email configuration? This action cannot be undone and you will need to set up DNS records again if you want to use custom emails in the future.",DNS_RECORDS_MODAL_TITLE:"DNS Records",VIEW_DNS_RECORDS:"View DNS Records",BTN_SETUP_DNS:"SETUP DNS RECORDS",BTN_SHOW_DNS_RECORDS:"SHOW DNS RECORDS",BTN_VERIFICATION_STATUS:"VERIFICATION STATUS",BTN_DELETE:"DELETE",BTN_VERIFY:"VERIFY OUTBOUND EMAIL SETTINGS",BTN_BACK:"BACK",BTN_CHANGE_DOMAIN:"UPDATE DOMAIN",BTN_RECHECK:"RECHECK STATUS",BTN_SETUP_AGAIN:"Setup Again",BTN_COPY:"Copy",STATUS_NOT_VERIFIED:"NOT VERIFIED",STATUS_STARTED:"STARTED",STATUS_IN_PROGRESS:"VERIFICATION IN PROCESS",STATUS_VERIFIED:"VERIFIED",STATUS_PENDING:"PENDING",STATUS_IN_PROGRESS_BADGE:"IN PROGRESS",STATUS_FAILED:"VERIFICATION FAILED",STATUS_FAILED_BADGE:"Failed",MSG_VERIFICATION_FAILED:"Verification failed. Please check your DNS records.",MSG_DOMAIN_VERIFIED:"Domain verified successfully!",MSG_VERIFICATION_IN_PROGRESS:"Verification still in progress. Please try again later.",MSG_FAILED_TO_CHECK_STATUS:"Failed to check status",MSG_FAILED_SETUP_DNS:"Failed to setup DNS records",MSG_VERIFICATION_RESTARTED:"Verification restarted. Please wait while we verify your DNS records.",MSG_FAILED_SETUP_AGAIN:"Failed to setup again",MSG_DELETE_SUCCESS:"Email configuration deleted successfully",MSG_FAILED_DELETE:"Failed to delete email configuration",MSG_COPIED:"Copied to clipboard"},uo={type:M.sf.RADIO,name:"emailSource",label:"",class:"email-source-radio",optionDirection:X.jR.HORIZONTAL,options:[{label:Se.TOPFAN_DOMAIN,value:ye.TOPFAN},{label:Se.CUSTOM_DOMAIN,value:ye.CUSTOM}]},Re={setupDnsBtn:{type:"button",label:Se.BTN_SETUP_DNS,class:"btn btn-primary",name:"setupDns"},backBtn:{type:"button",label:Se.BTN_BACK,class:"btn btn-default",name:"back"},verifyBtn:{type:"button",label:Se.BTN_VERIFY,class:"btn btn-primary",name:"verify"},changeDomainBtn:{type:"button",label:Se.BTN_CHANGE_DOMAIN,class:"btn btn-primary",name:"changeDomain"},recheckBtn:{type:"button",label:Se.BTN_RECHECK,class:"btn btn-primary",name:"recheck"},setupAgainBtn:{type:"button",label:Se.BTN_SETUP_AGAIN,class:"btn btn-primary",name:"setupAgain"},deleteBtn:{type:"button",label:Se.BTN_DELETE,class:"btn btn-secondary",name:"delete"},showDnsRecordsBtn:{type:"button",label:Se.BTN_SHOW_DNS_RECORDS,class:"btn btn-primary",name:"showDnsRecords"},verificationStatusBtn:{type:"button",label:Se.BTN_VERIFICATION_STATUS,class:"btn btn-primary",name:"verificationStatus"}};function Du(i,s){1&i&&(e.TgZ(0,"div",7),e._UZ(1,"app-skeleton",8),e.qZA())}let mo=(()=>{const s=class{constructor(){this.benefitCards=Array(3)}};let i=s;return s.\u0275fac=function(o){return new(o||s)}
1,s.\u0275cmp=e.Xpm({type:s,selectors:[["app-outbound-emails-skeleton"]],standalone:!0,features:[e.jDz],decls:10,vars:1,consts:[[1,"skeleton-section"],[1,"skeleton-heading"],["className","h-20 w-200 r-4 c-post"],[1,"skeleton-radio-row"],["className","h-16 w-70% r-4 c-post"],[1,"skeleton-benefits"],["class","skeleton-benefit-card",4,"ngFor","ngForOf"],[1,"skeleton-benefit-card"],["className","h-120 w-100% r-12 c-post"]],template:function(o,a){1&o&&(e._UZ(0,"app-preference-mobile-header-skeleton"),e.TgZ(1,"div",0)(2,"div",1),e._UZ(3,"app-skeleton",2),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"app-skeleton",4),e.qZA(),e.TgZ(6,"div",3),e._UZ(7,"app-skeleton",4),e.qZA(),e.TgZ(8,"div",5),e.YNc(9,Du,2,0,"div",6),e.qZA()()),2&o&&(e.xp6(9),e.Q6J("ngForOf",a.benefitCards))},dependencies:[p.ez,p.sg,ie._,pe],styles:[".skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:24px 12px;margin:12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{margin:30px 0 0;border-radius:30px;padding:30px}}.skeleton-heading[_ngcontent-%COMP%]{margin-bottom:24px}.skeleton-radio-row[_ngcontent-%COMP%]{padding:16px 0}.skeleton-benefits[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-top:24px}@media (min-width: 992px){.skeleton-benefits[_ngcontent-%COMP%]{flex-direction:row}}.skeleton-benefit-card[_ngcontent-%COMP%]{flex:1}"]}),i})();const Nu=["resetConfirmModal"],Lu=["deleteConfirmModal"],Zu=["dnsRecordsModal"];function Fu(i,s){1&i&&e._UZ(0,"app-outbound-emails-skeleton")}function Uu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",12)(1,"a",13),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.moveToDashboard())}),e._UZ(2,"em",14),e.qZA(),e.TgZ(3,"span",15),e._uU(4),e.qZA()()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.LABELS.TITLE)}}function Bu(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",16)(2,"div",17)(3,"p",18),e._uU(4),e.qZA()()(),e.BQk()),2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.LABELS.WLS_NOT_VERIFIED)}}function Ru(i,s){if(1&i&&(e.TgZ(0,"div",38),e._UZ(1,"em",39),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.statusBadgeClass),e.xp6(1),e.Q6J("ngClass",t.statusBadgeIcon),e.xp6(2),e.Oqu(t.statusBadgeLabel)}}function qu(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onSetupDns())}),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("btnField",t.setupDnsBtnConfig)}}function Gu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.onShowDnsRecords())}),e.qZA()}if(2&i){const t=e.oxw(4);e.Q6J("btnField",t.showDnsRecordsBtn)}}function Yu(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.onVerificationStatus())}),e.qZA()}if(2&i){const t=e.oxw(4);e.Q6J("btnField",t.verificationStatusBtn)}}const Ju=function(i,s,t){return[i,s,t]},Vu=function(i,s){return[i,s]};function Wu(i,s){if(1&i&&(e.ynx(0),e.YNc(1,Gu,1,1,"app-button",41),e.YNc(2,Yu,1,1,"app-button",41),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",e.kEZ(2,Ju,t.CustomEmailStatus.STARTED,t.CustomEmailStatus.PENDING_VERIFICATION,t.CustomEmailStatus.FAILED).includes(t.customEmailStatus)),e.xp6(1),e.Q6J("ngIf",e.WLB(6,Vu,t.CustomEmailStatus.PENDING_VERIFICATION,t.CustomEmailStatus.FAILED).includes(t.customEmailStatus))}}function Hu(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",19)(2,"div",20)(3,"h2",21),e._uU(4),e.qZA(),e.YNc(5,Ru,4,3,"div",22),e.qZA(),e.TgZ(6,"div",23)(7,"p",24),e._uU(8),e.qZA(),e.TgZ(9,"div",25)(10,"span",26),e._uU(11),e.qZA(),e.TgZ(12,"div",27),e._UZ(13,"app-radio-button",28),e.qZA()(),e.TgZ(14,"p",29),e._uU(15),e.TgZ(16,"span",30),e._uU(17),e.qZA(),e._uU(18),e.qZA(),e.TgZ(19,"div",31)(20,"div",32),e._UZ(21,"em",33),e.TgZ(22,"span",34),e._uU(23),e.qZA()(),e.TgZ(24,"div",32),e._UZ(25,"em",35),e.TgZ(26,"span",34),e._uU(27),e.qZA()(),e.TgZ(28,"div",32),e._UZ(29,"em",36),e.TgZ(30,"span",34),e._uU(31),e.qZA()()()(),e.TgZ(32,"div",37),e.YNc(33,qu,2,1,"ng-container",0),e.YNc(34,Wu,3,9,"ng-container",0),e.qZA()(),e.BQk()),2&i){const t=e.oxw(2);let n,o;e.xp6(1),e.Q6J("formGroup",t.setupForm),e.xp6(3),e.Oqu(t.LABELS.TITLE),e.xp6(1),e.Q6J("ngIf",t.statusBadgeLabel),e.xp6(3),e.Oqu(t.LABELS.SETUP_DESCRIPTION),e.xp6(3),e.Oqu(t.LABELS.CURRENTLY_SENDING_FROM),e.xp6(2),e.Q6J("field",t.emailSourceFieldConfig)("form",t.setupForm),e.xp6(2),e.hij(" ",t.LABELS.USING_DOMAIN," "),e.xp6(2),e.Oqu(t.displayDomain||t.LABELS.CUSTOM_DOMAIN),e.xp6(1),e.hij(" ",t.LABELS.BENEFIT
1S_TITLE," "),e.xp6(5),e.Oqu(t.LABELS.BENEFIT_DELIVERABILITY),e.xp6(4),e.Oqu(t.LABELS.BENEFIT_OPEN_RATES),e.xp6(4),e.Oqu(t.LABELS.BENEFIT_BRANDING),e.xp6(2),e.Q6J("ngIf",!t.customEmailStatus&&(null==(n=t.setupForm.get("emailSource"))?null:n.value)!==t.EMAIL_SOURCE.TOPFAN),e.xp6(1),e.Q6J("ngIf",!!t.customEmailStatus&&(null==(o=t.setupForm.get("emailSource"))?null:o.value)!==t.EMAIL_SOURCE.TOPFAN)}}function Qu(i,s){if(1&i&&(e.TgZ(0,"div",38),e._UZ(1,"em",39),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.statusBadgeClass),e.xp6(1),e.Q6J("ngClass",t.statusBadgeIcon),e.xp6(2),e.Oqu(t.statusBadgeLabel)}}function Ku(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",48)(2,"div",49)(3,"div",50)(4,"div",51)(5,"label",52),e._uU(6),e.qZA(),e._UZ(7,"app-info-icon",53),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.TgZ(9,"div",50)(10,"label",52),e._uU(11),e.qZA(),e._UZ(12,"app-input",28),e.qZA()()(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw(3);e.xp6(6),e.AsE("",o.LABELS.TXT_NAME," #",n+1,""),e.xp6(1),e.Q6J("message",o.getRecordDescription(t,n)),e.xp6(1),e.Q6J("field",o.getFieldConfig("txt_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("txt_value_"+n,t.value))("form",o.dnsForm)}}function zu(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",48)(2,"div",49)(3,"div",50)(4,"div",51)(5,"label",52),e._uU(6),e.qZA(),e._UZ(7,"app-info-icon",53),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.TgZ(9,"div",50)(10,"label",52),e._uU(11),e.qZA(),e._UZ(12,"app-input",28),e.qZA()()(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw(3);e.xp6(6),e.AsE("",o.LABELS.CNAME_NAME," #",n+1,""),e.xp6(1),e.Q6J("message",o.getRecordDescription(t,n)),e.xp6(1),e.Q6J("field",o.getFieldConfig("cname_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("cname_value_"+n,t.value))("form",o.dnsForm)}}function $u(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",48)(2,"div",49)(3,"div",50)(4,"div",51)(5,"label",52),e._uU(6),e.qZA(),e._UZ(7,"app-info-icon",53),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.TgZ(9,"div",50)(10,"label",52),e._uU(11),e.qZA(),e._UZ(12,"app-input",28),e.qZA()()(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw(3);e.xp6(6),e.AsE("",o.LABELS.MX_NAME," #",n+1,""),e.xp6(1),e.Q6J("message",o.getRecordDescription(t,n)),e.xp6(1),e.Q6J("field",o.getFieldConfig("mx_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("mx_value_"+n,t.value))("form",o.dnsForm)}}function ju(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",42)(2,"div",20)(3,"h2",21),e._uU(4),e.qZA(),e.YNc(5,Qu,4,3,"div",22),e.qZA(),e.TgZ(6,"div",43)(7,"div",44)(8,"h3",45),e._uU(9),e.qZA(),e.TgZ(10,"p",46),e._uU(11),e.qZA()(),e.TgZ(12,"div",47),e.YNc(13,Ku,13,9,"ng-container",9),e.YNc(14,zu,13,9,"ng-container",9),e.YNc(15,$u,13,9,"ng-container",9),e.qZA()(),e.TgZ(16,"div",37)(17,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onBack())}),e.qZA(),e.TgZ(18,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onVerifySettings())}),e.qZA()()(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("formGroup",t.dnsForm),e.xp6(3),e.Oqu(t.LABELS.DNS_TITLE),e.xp6(1),e.Q6J("ngIf",t.statusBadgeLabel),e.xp6(4),e.Oqu(t.LABELS.ADD_DNS_RECORDS),e.xp6(2),e.Oqu(t.LABELS.DNS_INSTRUCTIONS),e.xp6(2),e.Q6J("ngForOf",t.getTxtRecords()),e.xp6(1),e.Q6J("ngForOf",t.getCnameRecords()),e.xp6(1),e.Q6J("ngForOf",t.getMxRecords()),e.xp6(2),e.Q6J("btnField",t.backBtn),e.xp6(1),e.Q6J("btnField",t.verifyBtnConfig)}}function Xu(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",54)(2,"div",20)(3,"h2",21),e._uU(4),e.qZA(),e.TgZ(5,"div",55),e._UZ(6,"em",56),e.TgZ(7,"span"),e._uU(8),e.qZA()()(),e.TgZ(9,"div",57)(10,"div",44)(11,"h3",45),e._uU(12),e.qZA(),e._UZ(13,"p",58),e.qZA(),e.TgZ(14,"div",59)(15,"div",60)(16,"div",61),e._UZ(17,"em",56),e.qZA(),e.TgZ(18,"div",62)(19,"span",63),e._uU(20),e.qZA(),e.TgZ(21,"span",64),e._uU(22),e.qZA()(),e.TgZ(23,"div",65),e._uU(24),e.qZA()(),e.TgZ(25,"div",66)(26,"div",61),e._UZ(27,"em",67),e.qZA(),e.TgZ(28,"div",62)(29,"span",63),e._uU(30),e.qZA(),e.TgZ(31,"span",64),e._uU(32),e.qZA()(),e.TgZ(33,"div",68),e._uU(34),e.qZA()()()(),e.TgZ(35,"div",37)(36,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onChangeDomain())}),e.qZA(),e.TgZ(37,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onRecheckStatus())}),e.qZA()()(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.LABELS.VERIFICATION_TITLE),e.xp6(4),e.Oqu(t.LABELS.STATUS_IN_PROGRESS),e.xp6(4),e.Oqu(t.LABELS.VERIFYING_TITLE),e.xp6(1),e.Q6J("innerHTML",t.LABELS.VERIFYING_DESC,e.oJD),e.xp6(7),e.Oqu(t.LABELS.DNS_VERIFIED),e.xp6(2),e.Oqu(t.LABELS.CHECKING_DNS),e.xp6(2),e.hij(" ",t.LABELS.STATUS_IN_PROGRESS_BADGE," "),e.xp6(6),e.Oqu(t.LABELS.EMAIL_CONFIGURED),e.xp6(2),e.Oqu(t.LABELS.WAITING_CONFIRMATION),e.xp6(2),e.hij(" ",t.LABELS.STATUS_PENDING," "),e.xp6(2),e.Q6J("btnField",t.changeDomainBtn),e.xp6(1),e.Q6J("btnField",t.recheckBtnConfig)}
1}function em(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",69)(2,"div",20)(3,"h2",21),e._uU(4),e.qZA(),e.TgZ(5,"div",70),e._UZ(6,"em",71),e.TgZ(7,"span"),e._uU(8),e.qZA()()(),e.TgZ(9,"div",72)(10,"div",44)(11,"h3",45),e._uU(12),e.qZA(),e.TgZ(13,"p",46),e._uU(14),e.qZA()(),e.TgZ(15,"div",59)(16,"div",73)(17,"div",74),e._UZ(18,"em",71),e.qZA(),e.TgZ(19,"div",62)(20,"span",63),e._uU(21),e.qZA(),e.TgZ(22,"span",64),e._uU(23),e.qZA()(),e.TgZ(24,"div",75),e._uU(25),e.qZA()(),e.TgZ(26,"div",73)(27,"div",74),e._UZ(28,"em",71),e.qZA(),e.TgZ(29,"div",62)(30,"span",63),e._uU(31),e.qZA(),e.TgZ(32,"span",64),e._uU(33),e.qZA()(),e.TgZ(34,"div",75),e._uU(35),e.qZA()()()(),e.TgZ(36,"div",37)(37,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onSetupAgain())}),e.qZA()()(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.LABELS.VERIFICATION_TITLE),e.xp6(4),e.Oqu(t.LABELS.STATUS_FAILED),e.xp6(4),e.Oqu(t.LABELS.FAILED_TITLE),e.xp6(2),e.Oqu(t.LABELS.FAILED_DESC),e.xp6(7),e.Oqu(t.LABELS.DNS_VERIFIED),e.xp6(2),e.Oqu(t.LABELS.FAILED_DNS_DESC),e.xp6(2),e.hij(" ",t.LABELS.STATUS_FAILED_BADGE," "),e.xp6(6),e.Oqu(t.LABELS.EMAIL_CONFIGURED),e.xp6(2),e.Oqu(t.LABELS.FAILED_EMAIL_DESC),e.xp6(2),e.hij(" ",t.LABELS.STATUS_FAILED_BADGE," "),e.xp6(2),e.Q6J("btnField",t.setupAgainBtnConfig)}}function tm(i,s){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",76)(2,"div",20)(3,"h2",21),e._uU(4),e.qZA(),e.TgZ(5,"div",77),e._UZ(6,"em",78),e.TgZ(7,"span"),e._uU(8),e.qZA()()(),e.TgZ(9,"div",79)(10,"div",80)(11,"h3",45),e._uU(12),e.qZA(),e.TgZ(13,"a",81),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.openDnsRecordsModal())}),e._uU(14),e.qZA()(),e.TgZ(15,"div",82)(16,"div",83)(17,"p",84),e._uU(18),e.TgZ(19,"span",85),e._uU(20),e.qZA()()(),e.TgZ(21,"div",86)(22,"div",87)(23,"div",88),e._UZ(24,"em",89),e.qZA(),e.TgZ(25,"div",90)(26,"span",91),e._uU(27),e.qZA(),e.TgZ(28,"span",92),e._uU(29),e.qZA()()(),e._UZ(30,"div",93),e.TgZ(31,"div",87)(32,"div",88),e._UZ(33,"em",94),e.qZA(),e.TgZ(34,"div",90)(35,"span",91),e._uU(36),e.qZA(),e.TgZ(37,"span",92),e._uU(38),e.qZA()()(),e._UZ(39,"div",93),e.TgZ(40,"div",87)(41,"div",95),e._UZ(42,"em",96),e.qZA(),e.TgZ(43,"div",90)(44,"span",91),e._uU(45),e.qZA(),e.TgZ(46,"span",97),e._uU(47),e.qZA()()()()()(),e.TgZ(48,"div",37)(49,"app-button",40),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onChangeDomain())}),e.qZA()()(),e.BQk()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.LABELS.VERIFICATION_TITLE),e.xp6(4),e.Oqu(t.LABELS.STATUS_VERIFIED),e.xp6(4),e.Oqu(t.LABELS.SUCCESS_TITLE),e.xp6(2),e.Oqu(t.LABELS.VIEW_DNS_RECORDS),e.xp6(4),e.hij(" ",t.LABELS.SUCCESS_MESSAGE," "),e.xp6(2),e.Oqu(t.senderEmail||t.LABELS.NO_REPLY_PREFIX+t.domain),e.xp6(7),e.Oqu(t.LABELS.VERIFIED_DOMAIN_LABEL),e.xp6(2),e.Oqu(t.domain),e.xp6(7),e.Oqu(t.LABELS.SENDER_EMAIL_LABEL),e.xp6(2),e.Oqu(t.senderEmail||t.LABELS.NO_REPLY_PREFIX+t.domain),e.xp6(7),e.Oqu(t.LABELS.STATUS_LABEL),e.xp6(2),e.Oqu(t.LABELS.ACTIVE),e.xp6(2),e.Q6J("btnField",t.changeDomainBtn)}}function nm(i,s){if(1&i&&(e.TgZ(0,"div",10),e.YNc(1,Uu,5,1,"div",11),e.YNc(2,Bu,5,1,"ng-container",0),e.YNc(3,Hu,35,15,"ng-container",0),e.YNc(4,ju,19,10,"ng-container",0),e.YNc(5,Xu,38,12,"ng-container",0),e.YNc(6,em,38,11,"ng-container",0),e.YNc(7,tm,50,13,"ng-container",0),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.currentView!==t.VIEW_STATE.LOADING),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.WLS_NOT_VERIFIED),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.SETUP),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.DNS_RECORDS),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.PENDING_VERIFICATION),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.FAILED),e.xp6(1),e.Q6J("ngIf",t.currentView===t.VIEW_STATE.VERIFIED)}}function om(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",98)(2,"label",99),e._uU(3),e.qZA(),e._UZ(4,"app-input",28),e.qZA(),e.TgZ(5,"div",98)(6,"label",99),e._uU(7),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw();e.xp6(3),e.AsE("",o.LABELS.TXT_NAME," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("txt_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("txt_value_"+n,t.value))("form",o.dnsForm)}}
1function im(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",98)(2,"label",99),e._uU(3),e.qZA(),e._UZ(4,"app-input",28),e.qZA(),e.TgZ(5,"div",98)(6,"label",99),e._uU(7),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw();e.xp6(3),e.AsE("",o.LABELS.CNAME_NAME," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("cname_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("cname_value_"+n,t.value))("form",o.dnsForm)}}function am(i,s){if(1&i&&(e.ynx(0),e.TgZ(1,"div",98)(2,"label",99),e._uU(3),e.qZA(),e._UZ(4,"app-input",28),e.qZA(),e.TgZ(5,"div",98)(6,"label",99),e._uU(7),e.qZA(),e._UZ(8,"app-input",28),e.qZA(),e.BQk()),2&i){const t=s.$implicit,n=s.index,o=e.oxw();e.xp6(3),e.AsE("",o.LABELS.MX_NAME," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("mx_name_"+n,t.name))("form",o.dnsForm),e.xp6(3),e.AsE("",o.LABELS.TXT_VALUE," #",n+1,""),e.xp6(1),e.Q6J("field",o.getFieldConfig("mx_value_"+n,t.value))("form",o.dnsForm)}}const sm=function(){return{class:"modal-lg"}};let rm=(()=>{const s=class{constructor(n,o,a,r,l,g){this.fb=n,this.router=o,this.apiCallService=a,this.clipboardService=r,this.cs=l,this.headerFooterStateService=g,this.LABELS=Se,this.commonEnum=X.i4,this.CustomEmailStatus=H,this.VIEW_STATE=te,this.EMAIL_SOURCE=ye,this.currentView=te.LOADING,this.isWlsVerified=!1,this.customEmailStatus="",this.domain="",this.senderEmail="",this.dnsRecords=[],this.domainVerified=!1,this.dkimVerified=!1,this.emailReady=!1,this.isLoading=!1,this.isSettingUp=!1,this.isVerifying=!1,this.isDeleting=!1,this.setupDnsBtn=Re.setupDnsBtn,this.backBtn=Re.backBtn,this.verifyBtn=Re.verifyBtn,this.changeDomainBtn=Re.changeDomainBtn,this.recheckBtn=Re.recheckBtn,this.setupAgainBtn=Re.setupAgainBtn,this.deleteBtn=Re.deleteBtn,this.showDnsRecordsBtn=Re.showDnsRecordsBtn,this.verificationStatusBtn=Re.verificationStatusBtn,this.destroy$=new q.x,this.emailSourceFieldConfig={...uo}}ngOnInit(){this.initForms(),this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.checkWlsStatus())}initForms(){this.setupForm=this.fb.group({emailSource:[ye.TOPFAN]}),this.dnsForm=this.fb.group({})}updateEmailSourceFieldConfig(){this.emailSourceFieldConfig={...uo,options:[{label:this.LABELS.TOPFAN_DOMAIN,value:ye.TOPFAN},{label:this.displayDomain||this.LABELS.CUSTOM_DOMAIN,value:ye.CUSTOM}]}}get setupDnsBtnConfig(){const n=this.setupForm?.get("emailSource")?.value===ye.CUSTOM;return{...this.setupDnsBtn,disabled:this.isSettingUp||!n,loading:this.isSettingUp}}get verifyBtnConfig(){return{...this.verifyBtn,disabled:this.isVerifying,loading:this.isVerifying}}get recheckBtnConfig(){return{...this.recheckBtn,disabled:this.isLoading,loading:this.isLoading}}get setupAgainBtnConfig(){return{...this.setupAgainBtn,disabled:this.isVerifying,loading:this.isVerifying}}get statusBadgeClass(){switch(this.customEmailStatus){case H.VERIFIED:return"verified";case H.STARTED:case H.PENDING_VERIFICATION:return"in-progress";case H.FAILED:return"failed";default:return"not-verified"}}get statusBadgeIcon(){switch(this.customEmailStatus){case H.VERIFIED:return"pi pi-check-circle";case H.STARTED:case H.PENDING_VERIFICATION:return"pi pi-sync pi-spin";case H.FAILED:return"pi pi-exclamation-circle";default:return"pi pi-times-circle"}}get statusBadgeLabel(){switch(this.customEmailStatus){case H.VERIFIED:return this.LABELS.STATUS_VERIFIED;case H.STARTED:return this.LABELS.STATUS_STARTED;case H.PENDING_VERIFICATION:return this.LABELS.STATUS_IN_PROGRESS;case H.FAILED:return this.LABELS.STATUS_FAILED;default:return""}}get displayDomain(){return(0,de.JG)(this.domain)}getFieldConfig(n,o){return this.dnsForm.contains(n)||this.dnsForm.addControl(n,this.fb.control({value:o,disabled:!0})),{type:M.sf.TEXT,name:n,label:"",class:"dns-field",disabled:!0,suffixButton:{label:this.LABELS.BTN_COPY,onClick:()=>this.copyToClipboard(o)}}}checkWlsStatus(){this.currentView=te.LOADING,this.apiCallService.get(x.Y9.userSslStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{"APPROVED"===n?.data?.cloud_front?.status?(this.isWlsVerified=!0,this.loadEmailStatus()):(this.isWlsVerified=!1,this.currentView=te.WLS_NOT_VERIFIED)},error:()=>{this.isWlsVerified=!1,this.currentView=te.WLS_NOT_VERIFIED}})}loadEmailStatus(){this.isLoading=!0,this.apiCallService.get(x.Y9.getUsersWhitelabel,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{if(this.isLoading=!1,n?.status&&n?.data?.whiteLabel){const o=n.data.whiteLabel;this.customEmailStatus=n.data.custom_email_status||"",this.domain=o.web_url||"",this.updateEmailSourceFieldConfig();const a=[H.STARTED,H.PENDING_VERIFICATION,H.VERIFIED].includes(this.customEmailStatus);this.setupForm.patchValue({emailSource:a?ye.CUSTOM:ye.TOPFAN}),this.updateViewBasedOnStatus()}else this.currentView=te.SETUP},error:()=>{this.isLoading=!1,this.currentView=te.SETUP}})}updateViewBasedOnStatus(){switch(this.customEmailStatus){case H.STARTED:this.loadDnsRecords();break;case H.PENDING_VERIFICATION:this.loadPendingVerificationStatus();break;case H.FAILED:this.setupForm.patchValue({emailSource:ye.TOPFAN}),this.loadFailedStatus();break;case H.VERIFIED:this.loadVerifiedStatus();break;default:this.currentView=te.SETUP}}loadDnsRecords(){this.isLoading=!0,this.apiCallService.get(x.Y9.sesStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n?.status&&n?.data&&(this.processSesStatusResponse(n.data),this.currentView=te.DNS_RECORDS)},error:()=>{this.isLoading=!1,this.currentView=te.DNS_RECORDS}})}loadPendingVerificationStatus(){this.isLoading=!0,this.apiCallService.get(x.Y9.sesStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n?.status&&n?.data&&this.processSesStatusResponse(n.data),this.currentView=te.PENDING_VERIFICATION},error:()=>{this.isLoading=!1,this.currentView=te.PENDING_VERIFICATION}})}loadVerifiedStatus(){this.isLoading=!0,this.apiCallService.get(x.Y9.sesStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n?.status&&n?.data&&(this.processSesStatusResponse(n.data),this.currentView=te.VERIFIED)},error:()=>{this.isLoading=!1,this.currentView=te.VERIFIED}})}loadFailedStatus(){this.isLoading=!0,this.apiCallService.get(x.Y9.sesStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n?.status&&n?.data&&this.processSesStatusResponse(n.data),this.currentView=te.FAILED},error:()=>{this.isLoading=!1,this.currentView=te.FAILED}})}processSesStatusResponse(n){this.domain=n.domain||this.domain,this.customEmailStatus=n.custom_email_status||this.customEmailStatus,this.domainVerified=n.domain_verified||!1,this.dkimVerified=n.dkim_verified||!1,this.emailReady=n.email_ready||!1,this.senderEmail=n.sender_email||"",this.dnsRecords=n.dns_records||[],this.updateEmailSourceFieldConfig()}onSetupDns(){this.customEmailStatus!==H.PENDING_VERIFICATION&&this.customEmailStatus!==H.VERIFIED?this.callSesSetup():this.resetConfirmModal?.openModal()}onConfirmReset(){this.resetConfirmModal?.closeModal(),this.callSesSetup()}onCancelReset(){this.resetConfirmModal?.closeModal()}callSesSetup(){this.isSettingUp=!0,this.apiCallService.post(x.Y9.sesSetup,{},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isSettingUp=!1,n?.status&&n?.data?(this.domain=n.data.domain||this.domain,this.customEmailStatus=n.data.custom_email_status||H.STARTED,this.dnsRecords=n.data.dns_records||[],this.updateEmailSourceFieldConfig(),this.currentView=te.DNS_RECORDS):this.cs.showErrorMessage(n?.message||this.LABELS.MSG_FAILED_SETUP_DNS)},error:n=>{this.isSettingUp=!1,this.cs.showErrorMessage(n?.message||this.LABELS.MSG_FAILED_SETUP_DNS)}})}onVerifySettings(){this.isVerifying=!0,this.apiCallService.put(x.Y9.sesVerify,{},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isVerifying=!1,n?.status?(this.customEmailStatus=n.data?.custom_email_status||H.PENDING_VERIFICATION,this.currentView=te.PENDING_VERIFICATION):this.cs.showErrorMessage(n?.message||this.LABELS.MSG_VERIFICATION_FAILED)},error:n=>{this.isVerifying=!1,this.cs.showErrorMessage(n?.message||this.LABELS.MSG_VERIFICATION_FAILED)}})}onRecheckStatus(){this.isLoading=!0,this.apiCallService.get(x.Y9.sesStatus,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoading=!1,n?.status&&n?.data&&(this.processSesStatusResponse(n.data),n.data.custom_email_status===H.VERIFIED?(this.currentView=te.VERIFIED,this.cs.showSuccessMessage(this.LABELS.MSG_DOMAIN_VERIFIED)):n.data.custom_email_status===H.FAILED?(this.currentView=te.FAILED,this.cs.showErrorMessage(this.LABELS.MSG_VERIFICATION_FAILED)):this.cs.showErrorMessage(this.LABELS.MSG_VERIFICATION_IN_PROGRESS))},error:()=>{this.isLoading=!1,this.cs.showErrorMessage(this.LABELS.MSG_FAILED_TO_CHECK_STATUS)}})}onSetupAgain(){this.customEmailStatus="",this.senderEmail="",this.dnsRecords=[],this.domainVerified=!1,this.dkimVerified=!1,this.emailReady=!1,this.currentView=te.SETUP,this.setupForm.patchValue({emailSource:ye.TOPFAN}),this.updateEmailSourceFieldConfig()}onChangeDomain(){this.deleteConfirmModal?.openModal()}onDeleteRecord(){this.deleteConfirmModal?.openModal()}onConfirmDelete(){this.callSesDelete()}onCancelDelete(){this.deleteConfirmModal?.closeModal()}callSesDelete(){this.isDeleting=!0,this.apiCallService.delete(x.Y9.sesDelete,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isDeleting=!1,this.deleteConfirmModal?.closeModal(),n?.status?(this.customEmailStatus="",this.senderEmail="",this.dnsRecords=[],this.domainVerified=!1,this.dkimVerified=!1,this.emailReady=!1,this.currentView=te.SETUP,this.setupForm.patchValue({emailSource:ye.TOPFAN}),this.updateEmailSourceFieldConfig(),this.cs.showSuccessMessage(n.data?.message||this.LABELS.MSG_DELETE_SUCCESS)):this.cs.showErrorMessage(n?.message||this.LABELS.MSG_FAILED_DELET
1E)},error:n=>{this.isDeleting=!1,this.deleteConfirmModal?.closeModal(),this.cs.showErrorMessage(n?.message||this.LABELS.MSG_FAILED_DELETE)}})}onShowDnsRecords(){this.currentView=te.DNS_RECORDS}onVerificationStatus(){this.currentView=this.customEmailStatus===H.FAILED?te.FAILED:te.PENDING_VERIFICATION}onBack(){this.deleteConfirmModal?.openModal()}openDnsRecordsModal(){this.dnsRecordsModal?.openModal()}copyToClipboard(n){this.clipboardService.copy(n),this.cs.showSuccessMessage(this.LABELS.MSG_COPIED)}getTxtRecords(){return this.dnsRecords.filter(n=>"TXT"===n.type)}getCnameRecords(){return this.dnsRecords.filter(n=>"CNAME"===n.type)}getMxRecords(){return this.dnsRecords.filter(n=>"MX"===n.type)}getRecordDescription(n,o){return"TXT"===n.type?n.name.includes("_amazonses")?this.LABELS.TXT_AMAZONSES_DESC:n.name.includes("_dmarc")?this.LABELS.TXT_DMARC_DESC:this.LABELS.TXT_SPF_DESC:"CNAME"===n.type?0===o?this.LABELS.CNAME_DKIM1_DESC:1===o?this.LABELS.CNAME_DKIM2_DESC:this.LABELS.CNAME_DKIM3_DESC:"MX"===n.type?this.LABELS.MX_DESC:""}moveToDashboard(){this.router.navigate(["/dashboard"])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu),e.Y36(O.F0),e.Y36(N.F),e.Y36(mn.Yv),e.Y36(A.v),e.Y36(c.P))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-outbound-emails"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Nu,5),e.Gf(Lu,5),e.Gf(Zu,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.resetConfirmModal=r.first),e.iGM(r=e.CRH())&&(a.deleteConfirmModal=r.first),e.iGM(r=e.CRH())&&(a.dnsRecordsModal=r.first)}},decls:13,vars:19,consts:[[4,"ngIf"],["class","outbound-emails-container",4,"ngIf"],[3,"dynamicClass","ConfirmationMessage","headerLabel","commonEnum","confirmDelete","cancelDelete"],["resetConfirmModal",""],["deleteConfirmModal",""],[3,"headerLabel","showConfirmationBtn","dynamicClass","modalOptions"],["dnsRecordsModal",""],[1,"dns-records-modal-content",3,"formGroup"],[1,"dns-records-modal-list"],[4,"ngFor","ngForOf"],[1,"outbound-emails-container"],["class","inside-header",4,"ngIf"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-liteicon-close"],[1,"mobile-title"],[1,"wls-not-verified"],[1,"info-card"],[1,"info-message"],[1,"setup-view",3,"formGroup"],[1,"header-row"],[1,"page-title"],["class","status-badge",3,"ngClass",4,"ngIf"],[1,"setup-card"],[1,"setup-description"],[1,"sending-from-section"],[1,"label"],[1,"radio-options"],[3,"field","form"],[1,"benefits-intro"],[1,"domain-highlight"],[1,"benefits-grid"],[1,"benefit-card"],[1,"pi","pi-chart-line","benefit-icon"],[1,"benefit-text"],[1,"pi","pi-envelope","benefit-icon"],[1,"pi","pi-briefcase","benefit-icon"],[1,"action-buttons"],[1,"status-badge",3,"ngClass"],[3,"ngClass"],[3,"btnField","handleButtonClick"],[3,"btnField","handleButtonClick",4,"ngIf"],[1,"dns-records-view",3,"formGroup"],[1,"dns-card"],[1,"card-header"],[1,"card-title"],[1,"card-description"],[1,"records-list"],[1,"record-section"],[1,"record-row"],[1,"record-field"],[1,"field-label-row"],[1,"field-label"],[3,"message"],[1,"pending-verification-view"],[1,"status-badge","in-progress"],[1,"pi","pi-sync","pi-spin"],[1,"pending-verification-card"],[1,"card-description",3,"innerHTML"],[1,"verification-steps"],[1,"verification-step"],[1,"step-icon"],[1,"step-content"],[1,"step-title"],[1,"step-status"],[1,"step-badge","in-progress"],[1,"verification-step","disabled"],[1,"pi","pi-circle"],[1,"step-badge","pending"],[1,"failed-view"],[1,"status-badge","failed"],[1,"pi","pi-exclamation-circle"],[1,"failed-card"],[1,"verification-step","failed"],[1,"step-icon","failed"],[1,"step-badge","failed"],[1,"verified-view"],[1,"status-badge","verified"],[1,"pi","pi-check-circle"],[1,"verified-card"],[1,"card-header","card-header-row"],[1,"view-records-link",3,"click"],[1,"success-info-card"],[1,"success-header"],[1,"success-message"],[1,"email-highlight"],[1,"verified-details"],[1,"detail-row"],[1,"detail-icon"],[1,"pi","pi-clock"],[1,"detail-content"],[1,"detail-label"],[1,"detail-value"],[1,"divider"],[1,"pi","pi-envelope"],[1,"detail-icon","active"],[1,"pi","pi-circle-fill"],[1,"detail-value","active"],[1,"dns-record-row"],[1,"dns-record-label"]],template:function(o,a){1&o&&(e.YNc(0,Fu,1,0,"app-outboun
1d-emails-skeleton",0),e.YNc(1,nm,8,7,"div",1),e.TgZ(2,"app-confirmation-modal",2,3),e.NdJ("confirmDelete",function(){return a.onConfirmReset()})("cancelDelete",function(){return a.onCancelReset()}),e.qZA(),e.TgZ(4,"app-confirmation-modal",2,4),e.NdJ("confirmDelete",function(){return a.onConfirmDelete()})("cancelDelete",function(){return a.onCancelDelete()}),e.qZA(),e.TgZ(6,"app-alert-modal",5,6)(8,"div",7)(9,"div",8),e.YNc(10,om,9,8,"ng-container",9),e.YNc(11,im,9,8,"ng-container",9),e.YNc(12,am,9,8,"ng-container",9),e.qZA()()()),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.currentView===a.VIEW_STATE.LOADING),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser),e.xp6(1),e.Q6J("dynamicClass","delete-modal")("ConfirmationMessage",a.LABELS.CONFIRM_RESET_MESSAGE)("headerLabel",a.LABELS.CONFIRM_RESET_TITLE)("commonEnum",a.commonEnum),e.xp6(2),e.Q6J("dynamicClass","delete-modal")("ConfirmationMessage",a.LABELS.CONFIRM_DELETE_MESSAGE)("headerLabel",a.LABELS.CONFIRM_DELETE_TITLE)("commonEnum",a.commonEnum),e.xp6(2),e.Q6J("headerLabel",a.LABELS.DNS_RECORDS_MODAL_TITLE)("showConfirmationBtn",!1)("dynamicClass","outbound-dns-records-modal")("modalOptions",e.DdM(18,sm)),e.xp6(2),e.Q6J("formGroup",a.dnsForm),e.xp6(2),e.Q6J("ngForOf",a.getTxtRecords()),e.xp6(1),e.Q6J("ngForOf",a.getCnameRecords()),e.xp6(1),e.Q6J("ngForOf",a.getMxRecords()))},dependencies:[p.mk,p.sg,p.O5,u.JL,u.sg,ke.e,en._,ae.r,U.F,tt.s,Fe.Y,mo],styles:[".outbound-emails-container[_ngcontent-%COMP%]{min-height:300px;padding:16px 0}.outbound-emails-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{height:5px!important}.outbound-emails-container[_ngcontent-%COMP%]   .inside-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:200px}.outbound-emails-container[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{width:24px;height:24px;border:3px solid var(--configThemeColor);border-top-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite;display:inline-block}.outbound-emails-container[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}.outbound-emails-container[_ngcontent-%COMP%]   .page-title[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:var(--configBgTextColor)!important;margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 16px;border-radius:16px;font-size:12px;font-weight:600;text-transform:uppercase}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:14px}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge.not-verified[_ngcontent-%COMP%]{background-color:#ef444433;color:#ef4444!important}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge.in-progress[_ngcontent-%COMP%]{background-color:#f9731633;color:#f97316!important}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge.verified[_ngcontent-%COMP%]{background-color:#22c55e33;color:#22c55e!important}.outbound-emails-container[_ngcontent-%COMP%]   .status-badge.failed[_ngcontent-%COMP%]{background-color:#ef444433;color:#fff!important}.outbound-emails-container[_ngcontent-%COMP%]   .wls-not-verified[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .wls-not-verified[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px;padding:24px;background-color:var(--configSecondaryBgColor);border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .wls-not-verified[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{font-size:24px;color:var(--configThemeColor)}.outbound-emails-container[_ngcontent-%COMP%]   .wls-not-verified[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .info-message[_ngcontent-%COMP%]{font-size:16px;color:var(--configBgTextColor);margin:0;line-height:1.5}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .setup-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configSecondaryBgColor);border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .setup-description[_ngcontent-%COMP%]{font-size:16px;color:var(--configBgTextColor);margin:0;line-height:1.5}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .sending-from-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:16px 20px;background-color:var(--configBgColor);border-radius:16px;flex-wrap:wrap}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .sending-from-section[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .sending-from-section[_ngcontent-%COMP%]   .radio-options[_ngcontent-%COMP%]{display:flex;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefits-intro[_ngcontent-%COMP%]{font-size:16px;color:var(--configBgTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefits-intro[_ngcontent-%COMP%]   .domain-highlight[_ngcontent-%COMP%]{color:var(--configThemeColor);font-weight:500}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefits-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}@media (max-width: 768px){.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefits-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefit-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 16px;background-color:var(--configBgColor);border-radius:16px;text-align:center}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefit-card[_ngcontent-%COMP%]   .benefit-icon[_ngcontent-%COMP%]{font-size:32px;color:var(--configThemeColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .benefit-card[_ngcontent-%COMP%]   .benefit-text[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor)!important;font-weight:500}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .dns-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configSecondaryBgColor);border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--configPostTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .card-description[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0;line-height:1.5}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .records-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-row[_ngcontent-%COMP%]{display:flex;gap:16px}@media (max-width: 768px){.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-row[_ngcontent-%COMP%]{flex-direction:column}}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]   .field-label-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configPostTextColor)}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .form-group{margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .input-container{background-color:var(--configBgColor);border-radius:28px;overflow:hidden}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .form-control{background-color:transparent;border:none;border-radius:28px;color:var(--configBgTextColor)!important;font-size:14px;font-family:monospace;padding-right:70px}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .form-control:focus{outline:none;box-shadow:none}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .form-control.disable-input{cursor:default;opacity:1}.outbound-emails-container[_ngcontent-%COMP%]   .dns-records-view[_ngcontent-%COMP%]   .record-field[_ngcontent-%COMP%]     app-input .suffix-btn{right:12px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .pending-verification-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configSecondaryBgColor);border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:var(--configPostTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .card-description[_ngcontent-%COMP%]{font-size:16px;color:var(--configBgTextColor);margin:0;line-height:1.5}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:20px;background-color:var(--configBgColor);color:var(--configBgTextColor)!important;border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step.disabled[_ngcontent-%COMP%]{opacity:.5}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]{width:40px;height:40px;
1display:flex;align-items:center;justify-content:center;background-color:var(--configSecondaryBgColor);border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:20px;color:var(--configThemeColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]   .step-status[_ngcontent-%COMP%]{font-size:12px;color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-badge[_ngcontent-%COMP%]{padding:6px 12px;border-radius:16px;font-size:11px;font-weight:600;text-transform:uppercase}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-badge.in-progress[_ngcontent-%COMP%], .outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-badge.pending[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);color:var(--configPostTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-badge.failed[_ngcontent-%COMP%]{background-color:#ef444433;color:#fff!important}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step.failed[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]{background-color:#ef44441a}.outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step.failed[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%], .outbound-emails-container[_ngcontent-%COMP%]   .pending-verification-view[_ngcontent-%COMP%]   .verification-step.failed[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{color:#ef4444}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .failed-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configSecondaryBgColor);border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configPostTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .card-description[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0;line-height:1.5}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:20px;background-color:var(--configBgColor);border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]{width:40px;height:40px;
1display:flex;align-items:center;justify-content:center;background-color:#ef44441a;border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:20px;color:#ef4444}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-content[_ngcontent-%COMP%]   .step-status[_ngcontent-%COMP%]{font-size:12px;color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .failed-view[_ngcontent-%COMP%]   .verification-step[_ngcontent-%COMP%]   .step-badge[_ngcontent-%COMP%]{padding:6px 12px;border-radius:16px;font-size:11px;font-weight:600;text-transform:capitalize;background-color:#ef444433;color:#ef4444}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .verified-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configSecondaryBgColor);border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .card-header.card-header-row[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--configPostTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .card-description[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;background-color:var(--configBgColor);color:var(--configBgTextColor)!important;border-radius:16px;padding:24px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .success-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .success-message[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .success-message[_ngcontent-%COMP%]   .email-highlight[_ngcontent-%COMP%]{color:var(--configThemeColor);font-weight:500}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .success-trust[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);margin:0}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .verified-details[_ngcontent-%COMP%]{display:flex;flex-direction:column}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:16px 0}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-icon[_ngcontent-%COMP%]{width:40px;height:40px;
1display:flex;align-items:center;justify-content:center;background-color:var(--configSecondaryBgColor);border-radius:16px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:18px;color:var(--configThemeColor)!important}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-icon.active[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#22c55e;font-size:12px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-content[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%]{font-size:11px;color:var(--configBgTextColor);text-transform:uppercase;letter-spacing:.5px}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-content[_ngcontent-%COMP%]   .detail-value[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--configPostTextColor)}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-content[_ngcontent-%COMP%]   .detail-value.active[_ngcontent-%COMP%]{color:#22c55e}.outbound-emails-container[_ngcontent-%COMP%]   .verified-view[_ngcontent-%COMP%]   .success-info-card[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{height:1px;background-color:var(--configSecondaryBgColor)}.outbound-emails-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.outbound-emails-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]{width:40px;height:40px;border:none;border-radius:16px;background-color:#ef444433;color:#ef4444;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:all .3s ease}.outbound-emails-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]:hover{background-color:#ef44444d}.outbound-emails-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:18px}.outbound-emails-container[_ngcontent-%COMP%]     app-radio-button label{color:var(--configBgTextColor)!important}.outbound-emails-container[_ngcontent-%COMP%]     .action-buttons app-button .btn-default{color:var(--configBgTextColor)!important}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media (max-width: 768px){.outbound-emails-container[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%], .outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .sending-from-section[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.outbound-emails-container[_ngcontent-%COMP%]   .setup-view[_ngcontent-%COMP%]   .sending-from-section[_ngcontent-%COMP%]   .radio-options[_ngcontent-%COMP%]{flex-direction:column;gap:12px}.outbound-emails-container[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{flex-direction:column;width:100%}}.view-records-link[_ngcontent-%COMP%]{color:var(--theme-interactive-link)!important;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;display:inline-block;white-space:nowrap}.view-records-link[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%]     .form-group{margin:0!important}  .outbound-dns-records-modal .modal-content{border:none;border-radius:16px}  .outbound-dns-records-modal .modal-body{padding:24px}  .outbound-dns-records-modal .dns-records-modal-content{display:flex;flex-direction:column;gap:16px}  .outbound-dns-records-modal .dns-records-modal-list{display:flex;flex-direction:column;gap:16px}  .outbound-dns-records-modal .dns-record-row{display:flex;flex-direction:column;gap:8px}  .outbound-dns-records-modal .dns-record-row .field-label,   .outbound-dns-records-modal .dns-record-row .dns-record-label{font-size:14px;font-weight:500;color:var(--configBgTextColor);margin:0;text-align:left}  .outbound-dns-records-modal .dns-record-row app-input .form-group{margin:0}  .outbound-dns-records-modal .dns-record-row app-input .input-container{background-color:var(--configBgColor);border-radius:28px;overflow:hidden}  .outbound-dns-records-modal .dns-record-row app-input .form-control{background-color:transparent;border:none;border-radius:28px;color:var(--configBgTextColor)!important;font-size:14px;font-family:monospace;padding-right:70px}  .outbound-dns-records-modal .dns-record-row app-input .form-control:focus{outline:none;box-shadow:none}  .outbound-dns-records-modal .dns-record-row app-input .form-control.disable-input{cursor:default;opacity:1}  .outbound-dns-records-modal .dns-record-row app-input .suffix-btn{right:12px}  .outbound-dns-records-modal .dns-record-label{font-size:14px;font-weight:500;color:var(--configBgTextColor);margin:0;text-align:left}"]}),i})();function lm(i,s){1&i&&(e.TgZ(0,"div",16)(1,"div",4),e._UZ(2,"app-skeleton",17),e.qZA(),e.TgZ(3,"div",6),e._UZ(4,"app-skeleton",18),e.qZA(),e.TgZ(5,"div",8),e._UZ(6,"app-skeleton",18),e.qZA(),e.TgZ(7,"div",9),e._UZ(8,"a
1pp-skeleton",19),e.qZA()())}function cm(i,s){1&i&&(e.TgZ(0,"div",20)(1,"div",21),e._UZ(2,"app-skeleton",22)(3,"app-skeleton",7),e.qZA(),e.TgZ(4,"div",23),e._UZ(5,"app-skeleton",19)(6,"app-skeleton",24),e.qZA()())}let fo=(()=>{const s=class{constructor(){this.rows=Array(10)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-badges-skeleton"]],standalone:!0,features:[e.jDz],decls:20,vars:2,consts:[[1,"skeleton-badges"],[1,"skeleton-section"],[1,"skeleton-table-desktop"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-icon"],["className","h-14 w-70 r-4 c-post"],[1,"skeleton-col","col-label"],["className","h-14 w-80 r-4 c-post"],[1,"skeleton-col","col-assign"],[1,"skeleton-col","col-status"],["className","h-14 w-50 r-4 c-post"],["class","skeleton-row",4,"ngFor","ngForOf"],[1,"skeleton-badges-mobile"],[1,"skeleton-badges-mobile-header"],[1,"skeleton-badges-mobile-header-right"],["class","skeleton-badges-mobile-row",4,"ngFor","ngForOf"],[1,"skeleton-row"],["className","h-36 w-36 r-50% c-post"],["className","h-36 w-100% r-20 c-post"],["className","h-24 w-44 r-12 c-post"],[1,"skeleton-badges-mobile-row"],[1,"skeleton-badges-mobile-left"],["className","h-30 w-30 r-50% c-post"],[1,"skeleton-badges-mobile-right"],["className","h-24 w-24 r-4 c-post"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e._UZ(5,"app-skeleton",5),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"app-skeleton",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"app-skeleton",7),e.qZA(),e.TgZ(10,"div",9),e._UZ(11,"app-skeleton",10),e.qZA()(),e.YNc(12,lm,9,0,"div",11),e.qZA(),e.TgZ(13,"div",12)(14,"div",13),e._UZ(15,"app-skeleton",7),e.TgZ(16,"div",14),e._UZ(17,"app-skeleton",10)(18,"app-skeleton",10),e.qZA()(),e.YNc(19,cm,7,0,"div",15),e.qZA()()()),2&o&&(e.xp6(12),e.Q6J("ngForOf",a.rows),e.xp6(7),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,ie._],styles:[".skeleton-badges[_ngcontent-%COMP%]{margin-top:20px}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:20px 12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{border-radius:30px;padding:20px 30px}}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:14px 0}.skeleton-header[_ngcontent-%COMP%]{padding:10px 0 16px}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}.skeleton-col.col-icon[_ngcontent-%COMP%]{width:10%}.skeleton-col.col-label[_ngcontent-%COMP%]{width:40%}.skeleton-col.col-assign[_ngcontent-%COMP%]{width:30%}.skeleton-col.col-status[_ngcontent-%COMP%]{width:20%;display:flex;justify-content:flex-end}.skeleton-badges-mobile[_ngcontent-%COMP%]{display:block}@media (min-width: 992px){.skeleton-badges-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-badges-mobile-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.skeleton-badges-mobile-header-right[_ngcontent-%COMP%]{display:flex;gap:16px}.skeleton-badges-mobile-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.skeleton-badges-mobile-left[_ngcontent-%COMP%], .skeleton-badges-mobile-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}"]}),i})();const dm=["badgeEditModal"];function pm(i,s){1&i&&e._UZ(0,"app-badges-skeleton")}function gm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",25)(1,"div",26)(2,"div",27),e._UZ(3,"em",28),e.qZA()(),e.TgZ(4,"div",29),e._UZ(5,"app-input",30),e.qZA(),e.TgZ(6,"div",31),e._UZ(7,"app-input",30),e.qZA(),e.TgZ(8,"div",32)(9,"label",33)(10,"input",34),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleStatus(o,r))}),e.qZA(),e._UZ(11,"span",35),e.qZA(),e.TgZ(12,"span",36),e._uU(13),e.qZA()()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r,l;e.Q6J("formGroupName",n),e.xp6(3),e.Q6J("ngClass",o.BADGES_CONSTANTS.BADGE_CODE_TO_ICON[null==(a=t.get("badge_code"))?null:a.value]),e.xp6(2),e.Q6J("form",t)("field",o.labelField),e.xp6(2),e.Q6J("form",t)("field",o.autoAssignField),e.xp6(3),e.Q6J("checked",null==(r=t.get("status"))?null:r.value),e.xp6(3),e.Oqu(null!=(l=t.get("status"))&&l.value?o.BADGES_CONSTANTS.ACTIVE:o.BADGES_CONSTANTS.INACTIVE)}}
1function _m(i,s){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw().index,n=e.oxw(2);e.xp6(1),e.Oqu(n.getBadgeLabel(t))}}function um(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",37)(1,"div",38),e._UZ(2,"em",28),e.YNc(3,_m,2,1,"span",0),e.qZA(),e.TgZ(4,"div",39)(5,"label",33)(6,"input",34),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleStatus(o,r))}),e.qZA(),e._UZ(7,"span",35),e.qZA()(),e.TgZ(8,"button",40),e.NdJ("click",function(){const a=e.CHM(t).index,r=e.oxw(2);return e.KtG(r.openBadgeEditModal(a))}),e._UZ(9,"em",41),e.qZA()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r;e.Q6J("formGroupName",n),e.xp6(2),e.Q6J("ngClass",o.BADGES_CONSTANTS.BADGE_CODE_TO_ICON[null==(a=t.get("badge_code"))?null:a.value]),e.xp6(1),e.Q6J("ngIf",o.getBadgeLabel(n)),e.xp6(3),e.Q6J("checked",null==(r=t.get("status"))?null:r.value)}}function mm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"a",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(3,"em",8),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",9),e._uU(7),e.qZA()(),e.TgZ(8,"div",10)(9,"div",11)(10,"div",12)(11,"div",13)(12,"span"),e._uU(13),e.qZA()(),e.TgZ(14,"div",14)(15,"span"),e._uU(16),e.qZA(),e._UZ(17,"app-info-icon",15),e.qZA(),e.TgZ(18,"div",14)(19,"span"),e._uU(20),e.qZA(),e._UZ(21,"app-info-icon",15),e.qZA(),e.TgZ(22,"div",16)(23,"span"),e._uU(24),e.qZA()()(),e.TgZ(25,"div",17),e.YNc(26,gm,14,8,"div",18),e.qZA()(),e.TgZ(27,"div",19)(28,"div",20)(29,"span"),e._uU(30),e.qZA(),e.TgZ(31,"span"),e._uU(32),e.qZA(),e.TgZ(33,"span"),e._uU(34),e.qZA()(),e.TgZ(35,"div",21),e.YNc(36,um,10,4,"div",22),e.qZA()(),e.TgZ(37,"div",23)(38,"app-button",24),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.discard())}),e.qZA(),e.TgZ(39,"app-button",24),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.saveChanges())}),e.qZA()()()()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.BADGES_CONSTANTS.BADGES),e.xp6(2),e.Q6J("formGroup",t.badgesForm),e.xp6(4),e.Oqu(t.BADGES_CONSTANTS.HEADERS.ICON),e.xp6(3),e.Oqu(t.BADGES_CONSTANTS.HEADERS.LABEL),e.xp6(1),e.Q6J("message",t.BADGES_CONSTANTS.BADGE_LABEL_HINT),e.xp6(3),e.Oqu(t.BADGES_CONSTANTS.HEADERS.AUTO_ASSIGN),e.xp6(1),e.Q6J("message",t.BADGES_CONSTANTS.AUTO_ASSIGN_HINT),e.xp6(3),e.Oqu(t.BADGES_CONSTANTS.HEADERS.STATUS),e.xp6(2),e.Q6J("ngForOf",t.badgesFormArray.controls),e.xp6(1),e.Q6J("formGroup",t.badgesForm),e.xp6(3),e.Oqu(t.BADGES_CONSTANTS.MOBILE_HEADERS.ICON_BADGES),e.xp6(2),e.Oqu(t.BADGES_CONSTANTS.MOBILE_HEADERS.STATUS),e.xp6(2),e.Oqu(t.BADGES_CONSTANTS.MOBILE_HEADERS.ACTION),e.xp6(2),e.Q6J("ngForOf",t.badgesFormArray.controls),e.xp6(2),e.Q6J("btnField",t.discardButton),e.xp6(1),e.Q6J("btnField",t.saveChangesButton)}}function fm(i,s){if(1&i&&(e.TgZ(0,"div",42)(1,"div",43)(2,"div",44),e._UZ(3,"em",28),e.qZA(),e.TgZ(4,"div",45)(5,"p",46),e._uU(6),e.qZA(),e._UZ(7,"app-input",30),e.qZA(),e.TgZ(8,"div",45)(9,"p",46),e._uU(10),e.qZA(),e.TgZ(11,"div",47),e._UZ(12,"app-input",30),e.qZA()()()()),2&i){const t=s.ngIf,n=e.oxw();let o;e.xp6(3),e.Q6J("ngClass",n.BADGES_CONSTANTS.BADGE_CODE_TO_ICON[null==(o=t.get("badge_code"))?null:o.value]),e.xp6(3),e.Oqu(n.BADGES_CONSTANTS.BADGE_LABEL),e.xp6(1),e.Q6J("form",t)("field",n.labelField),e.xp6(3),e.Oqu(n.BADGES_CONSTANTS.AUTO_ASSIGNMENT_POINTS),e.xp6(2),e.Q6J("form",t)("field",n.autoAssignField)}}let hm=(()=>{const s=class{constructor(n,o,a,r){this.cs=n,this.router=o,this.fb=a,this.apiCallService=r,this.BADGES_CONSTANTS=se.Rv,this.fieldTypes=M.sf,this.destroy$=new q.x,this.isLoading=!0,this.serverBadgeSnapshot=new Map,this.isSaving=!1,this.isMobile=!1,this.selectedBadgeIndex=null,this.closeModalAfterSave=!1,this.duplicateAutoAssignThresholdValidator=l=>{const h=l.parent?.parent;if(!h)return null;const b=l.value;if(""===b||null==b)return null;const w=Number(b);if(!Number.isInteger(w)||0===w)return null;let L=0;for(const j of h.controls){const W=j.get("auto_assign_threshold")?.value;if(""===W||null==W)continue;const ee=Number(W);!Number.isInteger(ee)||0===ee||ee===w&&L++}
1return L>1?{duplicateAutoAssign:!0}:null},this.badgesForm=this.fb.group({badges:this.fb.array([])})}ngOnInit(){this.cs.isBrowser?(this.checkMobileView(),this.initForm(),this.initSubscriptions(),this.fetchBadges()):this.isLoading=!0}get badgesFormArray(){return this.badgesForm.get("badges")}get labelField(){return se.Rv.LABEL_FIELD}get autoAssignField(){return{...se.Rv.AUTO_ASSIGN_FIELD,onKeyDown:n=>this.preventInvalidNumberKeys(n),suffixButton:{label:se.Rv.POINTS,styleClass:"cb-points-suffix-btn",onClick:()=>{}}}}get discardButton(){return se.Rv.BUTTONS.DISCARD}get saveChangesButton(){return{...se.Rv.BUTTONS.SAVE_CHANGES,disabled:this.badgesForm.pristine||this.badgesForm.invalid||this.isSaving,loading:this.isSaving}}onWindowResize(){this.checkMobileView()}initForm(){const n=this.badgesFormArray;Object.keys(se.Rv.BADGE_CODE_TO_ICON).forEach(o=>{n.push(this.fb.group({badge_code:o,label:this.fb.control("",[u.kI.minLength(_.Mx.TWO),u.kI.maxLength(_.Mx.TWENTY_FIVE),(0,F.cj)()]),auto_assign_threshold:this.fb.control("",[u.kI.min(_.Mx.ZERO),u.kI.pattern(/^(0|[1-9]\d*)$/),this.duplicateAutoAssignThresholdValidator]),status:this.fb.control(!1)}))})}fetchBadges(){this.isLoading=!0,this.apiCallService.post(x.Y9.badges,{action:"get"},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{o?.status&&Array.isArray(o.data)&&(this.serverBadgeSnapshot.clear(),o.data.forEach(a=>{const r=a.sk?.split("#")?.[_.Mx.ONE];r&&this.serverBadgeSnapshot.set(r,{label:a.label||"",status:a.is_active??!1,auto_assign_threshold:Number.isInteger(Number(a?.auto_assign_threshold))?Number(a.auto_assign_threshold):void 0})}),this.populateFormFromServer()),this.isLoading=!1},error:()=>{this.isLoading=!1}})}populateFormFromServer(){this.badgesFormArray.controls.forEach(n=>{const o=n.get("badge_code")?.value,a=this.serverBadgeSnapshot.get(o);n.patchValue(a?{label:a.label,status:a.status,auto_assign_threshold:a.auto_assign_threshold??""}:{label:"",status:!1,auto_assign_threshold:""})}),this.refreshDuplicateAutoAssignValidity(),this.badgesForm.markAsPristine()}initSubscriptions(){this.badgesFormArray.controls.forEach(n=>{n.get("status")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.badgesForm.markAsDirty()}),n.get("label")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(o=>{o?.trim()||n.patchValue({status:!1})}),n.get("auto_assign_threshold")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.badgesForm.markAsDirty(),this.refreshDuplicateAutoAssignValidity()})})}refreshDuplicateAutoAssignValidity(){this.badgesFormArray.controls.forEach(n=>{n.get("auto_assign_threshold")?.updateValueAndValidity({emitEvent:!1})})}saveChanges(){if(this.badgesForm.invalid)return void this.badgesForm.markAllAsTouched();this.isSaving=!0;const o=this.badgesFormArray.value.map(r=>{const l=Number(r.auto_assign_threshold);return{badge_code:r.badge_code,label:r.label,auto_assign_threshold:Number.isInteger(l)?l:void 0,is_active:r.status}});this.apiCallService.post(x.Y9.badges,{action:"update",badges:o},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:r=>{r?.status?(o.forEach(l=>{this.serverBadgeSnapshot.set(l.badge_code,{label:l.label,status:l.is_active,auto_assign_threshold:Number.isInteger(Number(l.auto_assign_threshold))?Number(l.auto_assign_threshold):void 0})}),this.badgesForm.markAsPristine(),this.cs.showSuccessMessage(r.message),this.closeModalAfterSave&&this.closeBadgeEditModal()):this.cs.showErrorMessage(r?.message),this.closeModalAfterSave=!1,this.isSaving=!1},error:r=>{this.cs.showErrorMessage(r?.message),this.closeModalAfterSave=!1,this.isSaving=!1}})}discard(){this.populateFormFromServer()}moveToDashboard(){this.router.navigate([_.Mx.DASHBOARD])}toggleStatus(n,o){const a=n.target.checked;if(a&&!this.badgesFormArray.at(o).get("label")?.value?.trim())return this.cs.showErrorMessage(se.Rv.ERROR_MESSAGES.BADGE_LABEL_REQUIRED),void(n.target.checked=!1);this.badgesFormArray.at(o).patchValue({status:a})}openBadgeEditModal(n){this.isMobile&&(this.selectedBadgeIndex=n,this.badgeEditModal?.openModal())}closeBadgeEditModal(){this.badgeEditModal?.closeModal(),this.selectedBadgeIndex=null}saveBadgeFromModal(){this.closeModalAfterSave=!0,this.saveChanges()}discardSelectedBadgeChanges(){if(null===this.selectedBadgeIndex)return;const n=this.badgesFormArray.at(this.selectedBadgeIndex),o=n.get("badge_code")?.value,a=this.serverBadgeSnapshot.get(o);a&&n.patchValue({label:a.label,status:a.status,auto_assign_threshold:a.auto_assign_threshold??""}),this.closeBadgeEditModal()}getBadgeLabel(n){const o=this.badgesFormArray.at(n)?.get("label")?.value;return o?.trim()?o:""}get selectedBadgeGroup(){return null===this.selectedBadgeIndex?null:this.badgesFormArray.at(this.selectedBadgeIndex)}checkMobileView(){this.cs.isBrowser&&(this.isMobile=window.innerWidth<992,this.isMobile||this.closeBadgeEditModal())}preventInvalidNumberKeys(n){["e","E","+","-","."].includes(n.key)&&n.preventDefault()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(A.v),e.Y36(O.F0),e.Y36(u.qu),e.Y36(N.F))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-badges"]],viewQuery:function(o,a){if(1&o&&e.Gf(dm,5),2&o){let r;e.iGM(r=e.CRH())&&(a.badgeEditModal=r.first)}},hostBindings:function(o,a){1&o&&e.NdJ("resize",function(){return a.onWindowResize()},!1,e.Jf7)},decls:5,vars:6,consts:[[4,"ngIf"],["class","inside-container preference-container cb-badges-page",4,"ngIf"],["dynamicClass","badge-edit-modal-container",3,"headerLabel","showConfirmationBtn","showCrossBtn","canceled"],["badgeEditModal",""],["class","cb-badge-edit-sheet",4,"ngIf"],[1,"inside-container","preference-container","cb-badges-page"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"cb-badges-container"],[1,"cb-badges-table","cb-badges-desktop-table",3,"formGroup"],[1,"cb-badges-table-header"],[1,"cb-badges-table-header-item","cb-badges-table-header-icon"],[1,"cb-badges-table-header-item"],[3,"message"],[1,"cb-badges-table-header-item","cb-badges-table-header-status"],["formArrayName","badges",1,"cb-badges-table-body"],["class","cb-badges-table-row",3,"formGroupName",4,"ngFor","ngForOf"],[1,"cb-badges-mobile-table",3,"formGroup"],[1,"cb-badges-mobile-header"],["formArrayName","badges",1,"cb-badges-mobile-body"],["class","cb-badges-mobile-row",3,"formGroupName",4,"ngFor","ngForOf"],[1,"cb-badges-actions"],[3,"btnField","handleButtonClick"],[1,"cb-badges-table-row",3,"formGroupName"],[1,"cb-badges-table-body-item","cb-badges-table-body-icon"],[1,"badge-icon-container"],[3,"ngClass"],[1,"cb-badges-table-body-item","cb-badges-table-body-label"],[3,"form","field"],[1,"cb-badges-table-body-item","cb-badges-table-body-auto-assign"],[1,"cb-badges-table-body-item","cb-badges-table-body-status"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"status-label"],[1,"cb-badges-mobile-row",3,"formGroupName"],[1,"cb-badges-mobile-icon-label"],[1,"cb-badges-mobile-status"],["type","button",1,"cb-badges-mobile-edit-btn",3,"click"],[1,"icon-liteicon_edit","cb-badges-mobile-edit-icon"],[1,"cb-badge-edit-sheet"],[1,"cb-badge-edit-body"],[1,"cb-badge-edit-icon-wrap"],[1,"cb-badge-edit-field"],[1,"cb-badge-edit-label"],[1,"cb-badge-edit-auto-assign"]],template:function(o,a){1&o&&(e.YNc(0,pm,1,0,"app-badges-skeleton",0),e.YNc(1,mm,40,16,"div",1),e.TgZ(2,"app-alert-modal",2,3),e.NdJ("canceled",function(){return a.closeBadgeEditModal()}),e.YNc(4,fm,13,7,"div",4),e.qZA()),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser&&!a.isLoading),e.xp6(1),e.Q6J("headerLabel",a.BADGES_CONSTANTS.EDIT_BADGE)("showConfirmationBtn",!1)("showCrossBtn",!0),e.xp6(2),e.Q6J("ngIf",a.selectedBadgeGroup))},dependencies:[p.mk,p.sg,p.O5,u.JL,u.sg,u.x0,u.CE,ke.e,ae.r,U.F,tt.s,ce.l,fo],styles:[".preference-container[_ngcontent-%COMP%]{padding-top:16px!important}.cb-badges-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.cb-badges-header[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px}.cb-badges-table[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);color:var(--configPostTextColor)!important;display:flex;--cb-badges-icon-col-width: 86px;padding:24px;border-radius:16px;flex-direction:column;gap:24px}@media (max-width: 991px){.cb-badges-desktop-table[_ngcontent-%COMP%]{display:none}}.cb-badges-mobile-table[_ngcontent-%COMP%]{display:none}@media (max-width: 991px){.cb-badges-mobile-table[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:16px;color:var(--configPostTextColor)!important;display:flex;flex-direction:column;gap:0;padding:16px}}.cb-badges-mobile-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:0 0 8px}.cb-badges-mobile-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;font-weight:600}.cb-badges-mobile-body[_ngcontent-%COMP%]{display:flex;flex-direction:column}.cb-badges-mobile-row[_ngcontent-%COMP%]{align-items:center;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:12px;grid-template-columns:1fr auto auto;min-height:62px;padding:8px 0}.cb-badges-mobile-icon-label[_ngcontent-%COMP%]{align-items:center;display:flex;gap:10px;min-width:0}.cb-badges-mobile-icon-label[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--theme-interactive-link);font-size:28px}.cb-badges-mobile-icon-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cb-badges-mobile-status[_ngcontent-%COMP%]{display:flex;justify-content:center}.cb-badges-mobile-edit-btn[_ngcontent-%COMP%]{align-items:center;background:transparent;border:none;cursor:pointer;display:flex;justify-content:center;padding:0}.cb-badges-mobile-edit-icon[_ngcontent-%COMP%]{display:inline-flex}.cb-badges-mobile-edit-icon[_ngcontent-%COMP%]:before{color:var(--theme-interactive-link);font-size:28px}.cb-badges-table-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--cb-badges-icon-col-width) 2fr 1.4fr 1fr;gap:16px;align-items:center}@media (max-width: 992px){.cb-badges-table-header[_ngcontent-%COMP%]{grid-template-columns:var(--cb-badges-icon-col-width) 2fr 1.4fr 1fr}}.cb-badges-table-header-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;font-weight:600}.cb-badges-table-header-item.cb-badges-table-header-icon[_ngcontent-%COMP%]{justify-self:start;text-align:left}.cb-badges-table-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.cb-badges-table-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--cb-badges-icon-col-width) 2fr 1.4fr 1fr;gap:16px;align-items:center}@media (max-width: 992px){.cb-badges-table-row[_ngcontent-%COMP%]{grid-template-columns:var(--cb-badges-icon-col-width) 2fr 1.4fr 1fr}}.cb-badges-table-body-item[_ngcontent-%COMP%]{min-width:0}.cb-badges-table-body-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.cb-badges-table-body-icon[_ngcontent-%COMP%]   .badge-icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:28px}.cb-badges-table-body-icon[_ngcontent-%COMP%]   .badge-icon-container[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{font-size:28px;color:var(--theme-interactive-link)}.cb-badges-table-body-label[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:0}.cb-badges-table-body-label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:empty{display:none}.cb-badges-table-body-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-left:auto}@media (max-width: 992px){.cb-badges-table-body-status[_ngcontent-%COMP%]{margin:auto}}@media (min-width: 993px){.cb-badges-table-body-status[_ngcontent-%COMP%]{width:80px}}.cb-badges-table-body-status[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;font-size:14px}@media (max-width: 992px){.cb-badges-table-body-status[_ngcontent-%COMP%]   .status-label[_ngcontent-%COMP%]{display:none}}.cb-badges-table-body-auto-assign[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cb-badges-table-body-auto-assign[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:0;width:96px}.cb-badges-table-body-auto-assign[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:empty{display:none}.cb-badges-table-body-auto-assign[_ngcontent-%COMP%]   .points-label[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important}.cb-badges-table-header-status[_ngcontent-%COMP%]{margin-left:auto}@media (max-width: 992px){.cb-badges-table-header-status[_ngcontent-%COMP%]{margin:auto}}@media (min-width: 993px){.cb-badges-table-header-status[_ngcontent-%COMP%]{width:80px}}.cb-badges-actions[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.cb-badge-edit-sheet[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:-16px -16px 0}.cb-badge-edit-sheet[_ngcontent-%COMP%]   .cb-badge-edit-label[_ngcontent-%COMP%]{margin:unset;text-align:start}.cb-badge-edit-sheet[_ngcontent-%COMP%]     .form-group{margin:unset}.cb-badge-edit-body[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);display:flex;flex-direction:column;gap:16px;padding:16px}.cb-badge-edit-icon-wrap[_ngcontent-%COMP%]{align-items:center;background-color:var(--configBgColor);border-radius:16px;display:flex;height:80px;justify-content:center;width:80px}.cb-badge-edit-icon-wrap[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]:before{color:var(--theme-interactive-link);font-size:28px}.cb-badge-edit-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.cb-badge-edit-label[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;margin:0}.cb-badge-edit-auto-assign[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px}.cb-badge-edit-auto-assign[_ngcontent-%COMP%]     .form-group{margin-bottom:0;width:100%}.cb-badge-edit-auto-assign[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:empty{display:none}.cb-badge-edit-auto-assign[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important}.cb-badge-edit-actions[_ngcontent-%COMP%]{align-items:center;display:flex;gap:12px;justify-content:space-between;padding:16px}  .modal:has(.badge-edit-modal-container).fade.show .modal-content{transform:translateY(0)}  .modal:has(.badge-edit-modal-container).fade .modal-content{transform:translateY(100%)}  .modal:has(.badge-edit-modal-container) .cb-points-suffix-btn{color:var(--configBgTextColor)!important;cursor:default!important;font-weight:400!important;pointer-events:none}  .modal-dialog:has(.badge-edit-modal-container){align-items:flex-end;margin:0;padding:0}
1@media (min-width: 992px){  .modal-dialog:has(.badge-edit-modal-container){align-items:center;margin:1.75rem auto;padding:0 .5rem}}  .modal-dialog:has(.badge-edit-modal-container) .modal-content{border-radius:30px 30px 0 0!important;transform:translateY(100%);transition:transform .3s ease-out}@media (min-width: 992px){  .modal-dialog:has(.badge-edit-modal-container) .modal-content{border-radius:24px!important}}[_nghost-%COMP%]     .form-group{margin-top:0}[_nghost-%COMP%]     .btn-discard .btn-text{color:var(--configBgTextColor)!important}"]}),i})();var Cm=d(84967),Q=d(34307);const bm=["warningModalRef"],vm=function(){return{class:"modal-dialog-centered",backdrop:"static",keyboard:!1}};let xm=(()=>{const s=class{constructor(){this.proceeded=new e.vpe,this.LOYALTY_TEXT=Q.nI}get isModalOpen(){return!!this.warningModalRef?.isModalOpen}openModal(){this.warningModalRef?.openModal()}closeModal(){this.warningModalRef?.closeModal()}handleProceed(){this.proceeded.emit()}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-earn-points-warning-modal"]],viewQuery:function(o,a){if(1&o&&e.Gf(bm,5),2&o){let r;e.iGM(r=e.CRH())&&(a.warningModalRef=r.first)}},outputs:{proceeded:"proceeded"},decls:6,vars:10,consts:[[3,"showCrossBtn","closeModalOnEsc","confirmBtnLabel","cancelBtnLabel","confirmButtonClass","cancelButtonClass","dynamicClass","modalOptions","confirmed"],["warningModalRef",""],[1,"earn-points-warning-modal-content"],[1,"icon-liteAlert"]],template:function(o,a){1&o&&(e.TgZ(0,"app-alert-modal",0,1),e.NdJ("confirmed",function(){return a.handleProceed()}),e.TgZ(2,"div",2),e._UZ(3,"em",3),e.TgZ(4,"p"),e._uU(5),e.qZA()()()),2&o&&(e.Q6J("showCrossBtn",!1)("closeModalOnEsc",!1)("confirmBtnLabel",a.LOYALTY_TEXT.PROCEED_ANYWAY)("cancelBtnLabel",a.LOYALTY_TEXT.CANCEL)("confirmButtonClass","btn btn-default")("cancelButtonClass","btn btn-primary")("dynamicClass","earn-points-warning-modal")("modalOptions",e.DdM(9,vm)),e.xp6(5),e.Oqu(a.LOYALTY_TEXT.POINTS_EDIT_WARNING))},dependencies:[U.F],styles:[".earn-points-warning-modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding-top:16px}.icon-liteAlert[_ngcontent-%COMP%]:before{font-size:60px;color:var(--configThemeColor)!important}"]}),i})();function Pm(i,s){1&i&&(e.TgZ(0,"div",13)(1,"div",4),e._UZ(2,"app-skeleton",14),e.qZA(),e.TgZ(3,"div",6),e._UZ(4,"app-skeleton",15),e.qZA(),e.TgZ(5,"div",8),e._UZ(6,"app-skeleton",16),e.qZA()())}function Om(i,s){1&i&&(e.TgZ(0,"div",17)(1,"div",18),e._UZ(2,"app-skeleton",19)(3,"app-skeleton",16),e.qZA(),e._UZ(4,"div",20),e.TgZ(5,"div",21),e._UZ(6,"app-skeleton",22)(7,"app-skeleton",23)(8,"app-skeleton",24),e.qZA()())}let ho=(()=>{const s=class{constructor(){this.rows=Array(7)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-earn-points-skeleton"]],standalone:!0,features:[e.jDz],decls:13,vars:2,consts:[[1,"skeleton-earn-points"],[1,"skeleton-section"],[1,"skeleton-table-desktop"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-activity"],["className","h-14 w-160 r-4 c-post"],[1,"skeleton-col","col-points"],["className","h-14 w-100 r-4 c-post"],[1,"skeleton-col","col-status"],["className","h-14 w-50 r-4 c-post"],["class","skeleton-card-row",4,"ngFor","ngForOf"],[1,"skeleton-cards-mobile"],["class","skeleton-mobile-card",4,"ngFor","ngForOf"],[1,"skeleton-card-row"],["className","h-16 w-80% r-4 c-bgt"],["className","h-16 w-60 r-4 c-bgt"],["className","h-24 w-44 r-12 c-bgt"],[1,"skeleton-mobile-card"],[1,"skeleton-mobile-card-header"],["className","h-12 w-50 r-4 c-bgt"],[1,"skeleton-mobile-card-divider"],[1,"skeleton-mobile-card-body"],["className","h-14 w-70% r-4 c-bgt"],["className","h-12 w-80 r-4 c-bgt"],["className","h-36 w-100% r-20 c-bgt"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e._UZ(5,"app-skeleton",5),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"app-skeleton",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"app-skeleton",9),e.qZA()(),e.YNc(10,Pm,7,0,"div",10),e.qZA(),e.TgZ(11,"div",11),e.YNc(12,Om,9,0,"div",12),e.qZA()()()),2&o&&(e.xp6(10),e.Q6J("ngForOf",a.rows),e.xp6(2),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,ie._],styles:[".skeleton-earn-points[_ngcontent-%COMP%]{margin-top:20px}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:20px 12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{border-radius:30px;padding:20px 30px}}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:14px 0}.skeleton-header[_ngcontent-%COMP%]{padding:10px 0 16px}.skeleton-card-row[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--configBgColor);border-radius:30px;padding:16px 20px;margin-top:10px}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}.skeleton-col.col-activity[_ngcontent-%COMP%]{width:60%}.skeleton-col.col-points[_ngcontent-%COMP%]{width:25%}.skeleton-col.col-status[_ngcontent-%COMP%]{width:15%;display:flex;justify-content:flex-end}.skeleton-cards-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media (min-width: 992px){.skeleton-cards-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-mobile-card[_ngcontent-%COMP%]{background:var(--configBgColor);border-radius:15px;padding:16px}.skeleton-mobile-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}
1.skeleton-mobile-card-divider[_ngcontent-%COMP%]{height:1px;background:var(--configPostTextColor);opacity:.15;margin:12px 0}.skeleton-mobile-card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]}),i})();const Mm=["pointsEditWarningModal"];function Tm(i,s){1&i&&e._UZ(0,"app-earn-points-skeleton")}function wm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.handlePointsFieldClick(o))}),e.qZA()}}function Em(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",29)(1,"div",30)(2,"span",31),e._uU(3),e.qZA()(),e.TgZ(4,"div",32)(5,"div",33),e._UZ(6,"app-input",34),e.YNc(7,wm,1,0,"button",35),e.qZA(),e.TgZ(8,"span",36),e._uU(9),e.qZA()(),e.TgZ(10,"div",37)(11,"label",12)(12,"input",13),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleActivity(o,r))}),e.qZA(),e._UZ(13,"span",14),e.qZA(),e.TgZ(14,"span",38),e._uU(15),e.qZA()()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r;e.Q6J("formGroupName",n),e.xp6(3),e.Oqu(null==(a=t.get("activity_name"))?null:a.value),e.xp6(3),e.Q6J("form",t)("field",o.pointsField),e.xp6(1),e.Q6J("ngIf",!o.hasPointsEditAccess),e.xp6(2),e.Oqu(o.pointsLabel),e.xp6(3),e.Q6J("checked",null==(r=t.get("is_active"))?null:r.value),e.xp6(3),e.Oqu(o.getStatusLabel(n))}}function Am(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.handlePointsFieldClick(o))}),e.qZA()}}function ym(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"span",42),e._uU(3),e.qZA(),e.TgZ(4,"label",12)(5,"input",13),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleActivity(o,r))}),e.qZA(),e._UZ(6,"span",14),e.qZA()(),e._UZ(7,"div",43),e.TgZ(8,"div",44)(9,"span",42),e._uU(10),e.qZA(),e.TgZ(11,"span",45),e._uU(12),e.qZA()(),e.TgZ(13,"div",44)(14,"span",42),e._uU(15),e.qZA(),e.TgZ(16,"div",46)(17,"div",33),e._UZ(18,"app-input",34),e.YNc(19,Am,1,0,"button",35),e.qZA()()()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r;e.Q6J("formGroupName",n),e.xp6(3),e.Oqu(o.LOYALTY_TEXT.STATUS),e.xp6(2),e.Q6J("checked",null==(a=t.get("is_active"))?null:a.value),e.xp6(5),e.Oqu(o.LOYALTY_TEXT.ACTIVITY),e.xp6(2),e.Oqu(null==(r=t.get("activity_name"))?null:r.value),e.xp6(3),e.Oqu(o.LOYALTY_TEXT.POINTS_EARNED),e.xp6(3),e.Q6J("form",t)("field",o.mobilePointsField),e.xp6(1),e.Q6J("ngIf",!o.hasPointsEditAccess)}}function Sm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"a",4),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(3,"em",5),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",6),e._uU(7),e.qZA()(),e.TgZ(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"p",11),e._uU(13),e.qZA(),e.TgZ(14,"label",12)(15,"input",13),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onLeaderboardVisibilityChange(o))}),e.qZA(),e._UZ(16,"span",14),e.qZA()()(),e.TgZ(17,"app-toggle-enable",15),e.NdJ("toggleChanged",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onToggleEnableChanged(o))}),e.qZA()(),e.TgZ(18,"div",16)(19,"div",17)(20,"div",18)(21,"span"),e._uU(22),e.qZA()(),e.TgZ(23,"div",18)(24,"span"),e._uU(25),e.qZA()(),e.TgZ(26,"div",19)(27,"span"),e._uU(28),e.qZA()()(),e.TgZ(29,"div",20),e.YNc(30,Em,16,8,"div",21),e.qZA()(),e.TgZ(31,"div",22)(32,"div",23),e.YNc(33,ym,20,9,"div",24),e.qZA()(),e.TgZ(34,"div",25)(35,"app-button",26),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.discardChanges())}),e.qZA(),e.TgZ(36,"app-button",26),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.saveChanges())}),e.qZA()()(),e.TgZ(37,"app-earn-points-warning-modal",27,28),e.NdJ("proceeded",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.handleProceedAnyway())}),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.LOYALTY_TEXT.PREFERENCES_TITLE),e.xp6(6),e.Oqu(t.LOYALTY_TEXT.DISPLAY_MY_LEADERBOARD_TO_OTHER_USERS),e.xp6(2),e.Q6J("checked",null==t.preferenceUserData?null:t.preferenceUserData.display_my_leaderboards),e.xp6(2),e.Q6J("currentState",t.isEnabled)("disableMessage",t.LOYALTY_TEXT.DISABLED)("enableMessage",t.LOYALTY_TEXT.ENABLE),e.xp6(1),e.Q6J("formGroup",t.earnPointsForm),e.xp6(4),e.Oqu(t.LOYALTY_TEXT.ACTIVITY_TO_EARN_POINTS),e.xp6(3),e.Oqu(t.LOYALTY_TEXT.POINTS_EARNED),e.xp6(3),e.Oqu(t.LOYALTY_TEXT.STATUS),e.xp6(2),e.Q6J("ngForOf",t.activitiesFormArray.controls),e.xp6(1),e.Q6J("formGroup",t.earnPointsForm),e.xp6(2),e.Q6J("ngForOf",t.activitiesFormArray.controls),e.xp6(2),e.Q6J("btnField",t.discardButton),e.xp6(1),e.Q6J("btnField",t.saveChangesButton)}}let Im=(()=>{const s=class{constructor(n,o,a,r,l){this.fb=n,this.router=o,this.apiCallService=a,this.cs=r,this.LOYALTY_TEXT=Q.nI,this.LOYALTY_ACTIVITY_LABELS=Q.N_,this.discardButton=Q.ns,this.pointsLabel=Q.nI.POINTS,this.activityCodeOrder=Q.rO,this.destroy$=new q.x,this.serverSnapshot=new Map,this.serverConfigSnapshot={is_enabled:!1,updated_at:null},this.isLoading=!0,this.isSaving=!1,this.isStatusUpdating=!1,this.isEnabled=!1,this.hasPointsEditAccess=!1,this.isBrowser=(0,p.NF)(l),this.earnPointsForm=this.fb.group({activities:this.fb.array([])})}ngOnInit(){this.isBrowser&&(this.loadPreferenceUserData(),this.initForm(),this.bindControlSubscriptions(),this.fetchEarnPointsData())}get activitiesFormArray(){return this.earnPointsForm.get("activities")}get saveChangesButton(){return{...Q.ee,disabled:this.earnPointsForm.pristine||this.earnPointsForm.invali
1d||this.isSaving,loading:this.isSaving}}get canEnableEarnPoints(){const o=this.earnPointsForm.getRawValue().activities.filter(a=>a.is_active);return!!o.length&&o.every(a=>Number.isInteger(Number(a.points_earned))&&Number(a.points_earned)>0)}get pointsField(){return{...Q.Ru,onKeyDown:n=>this.handlePointsKeydown(n)}}get mobilePointsField(){return{...this.pointsField,suffixButton:{label:Q.nI.POINTS,styleClass:"cb-points-suffix-btn",onClick:()=>{}}}}moveToDashboard(){this.router.navigate([_.Mx.DASHBOARD])}onLeaderboardVisibilityChange(n,o=!0){const a=n.target,r=a.checked;if(!this.isEnabled&&o)return a.checked=!r,void this.cs.showErrorMessage(S.Vm.NEED_TO_ENABLE_EARN_POINTS);this.apiCallService.put(x.Y9.editUserPreferences,{[s.LEADERBOARD_VISIBILITY_KEY]:r},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:g=>{o&&this.cs.showSuccessMessage(g.message),this.preferenceUserData={...this.preferenceUserData??{},display_my_leaderboards:r}},error:g=>{this.cs.showErrorMessage(g?.message),a.checked=!r}})}loadPreferenceUserData(){this.apiCallService.get(x.Y9.getUsers,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n?.status&&(this.preferenceUserData=n.data)},error:n=>{this.cs.showErrorMessage(n?.message)}})}getStatusLabel(n){const o=!!this.activitiesFormArray.at(n).get("is_active")?.value;return Q.LC[String(o)]}toggleActivity(n,o){const a=n.target.checked,r=this.activitiesFormArray.at(o),l=r.get("points_earned")?.value??Q.oO[r.get("activity_code")?.value];if(a&&l<=s.ZERO)return this.cs.showErrorMessage(Q.nI.POINTS_REQUIRED_FOR_ACTIVE),void(n.target.checked=!1);r.patchValue({is_active:a}),this.earnPointsForm.markAsDirty()}updateEarnPointsStatus(n){if(n&&!this.canEnableEarnPoints)return void this.cs.showErrorMessage(Q.nI.ATLEAST_ONE_REQUIRED_FOR_ACTIVE);if(this.isEnabled===n||this.isStatusUpdating)return;const o=n?Q.qT.ENABLE:Q.qT.DISABLE;this.isStatusUpdating=!0,this.apiCallService.post(x.Y9.loyaltyPoints,{action:o},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a?.status?(this.isEnabled=n,this.serverConfigSnapshot={...this.serverConfigSnapshot,is_enabled:n},this.cs.showSuccessMessage(a.message),this.onLeaderboardVisibilityChange({target:{checked:this.isEnabled}},!1)):this.cs.showErrorMessage(a?.message),this.isStatusUpdating=!1},error:a=>{this.cs.showErrorMessage(a?.message),this.isStatusUpdating=!1}})}onToggleEnableChanged(n){this.updateEarnPointsStatus(n)}handlePointsFieldClick(n){this.hasPointsEditAccess||(n.preventDefault(),n.stopPropagation(),this.openPointsEditWarningModal())}handleProceedAnyway(){this.hasPointsEditAccess=!0,this.setPointsControlsDisabledState(!1)}saveChanges(){if(this.earnPointsForm.invalid)return void this.earnPointsForm.markAllAsTouched();this.isSaving=!0;const n=this.earnPointsForm.getRawValue().activities.map(a=>({activity_code:a.activity_code,points_earned:a.points_earned??Q.oO[a.activity_code],is_active:!!a.is_active}));this.apiCallService.post(x.Y9.loyaltyPoints,{action:Q.qT.UPDATE,activities:n,is_points_edited:!!this.hasPointsEditAccess},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{if(a?.status){if(n.forEach(l=>{this.serverSnapshot.set(l.activity_code,l)}),this.earnPointsForm.markAsPristine(),this.cs.showSuccessMessage(a.message),n.some(l=>l.is_active)&&!this.isEnabled)return void this.apiCallService.post(x.Y9.loyaltyPoints,{action:Q.qT.ENABLE},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:l=>{l?.status?(this.isEnabled=!0,this.serverConfigSnapshot={...this.serverConfigSnapshot,is_enabled:!0}):l?.message&&this.cs.showErrorMessage(l.message),this.onLeaderboardVisibilityChange({target:{checked:this.isEnabled}},!1),this.isSaving=!1},error:l=>{this.cs.showErrorMessage(l?.message),this.isSaving=!1}})}else this.cs.showErrorMessage(a?.message);this.isSaving=!1},error:a=>{this.cs.showErrorMessage(a?.message),this.isSaving=!1}})}discardChanges(){this.activitiesFormArray.controls.forEach(n=>{const o=n.get("activity_code")?.value,a=this.serverSnapshot.get(o);a&&n.patchValue(a,{emitEvent:!1})}),this.isEnabled=this.serverConfigSnapshot.is_enabled,this.earnPointsForm.markAsPristine()}initForm(){const n=this.activitiesFormArray;this.activityCodeOrder.forEach(o=>{n.push(this.fb.group({activity_code:o,activity_name:Q.N_[o],points_earned:this.fb.control(Q.oO[o],[u.kI.required,u.kI.min(s.ZERO),u.kI.pattern(Q.aN.NON_NEGATIVE_INTEGER_PATTERN)]),is_active:this.fb.control(!1)}))}
1),this.setPointsControlsDisabledState(!0)}bindControlSubscriptions(){this.activitiesFormArray.controls.forEach(n=>{n.get("is_active")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>this.earnPointsForm.markAsDirty()),n.get("points_earned")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(o=>{Number(o||s.ZERO)<=s.ZERO&&n.get("is_active")?.value&&n.patchValue({is_active:!1},{emitEvent:!1})})})}fetchEarnPointsData(){this.isLoading=!0,(0,Cm.D)({activitiesRes:this.apiCallService.post(x.Y9.loyaltyPoints,{action:Q.qT.GET},!0),configRes:this.apiCallService.post(x.Y9.loyaltyPoints,{action:Q.qT.GET_CONFIG},!0)}).pipe((0,v.R)(this.destroy$)).subscribe({next:({activitiesRes:n,configRes:o})=>{n?.status?this.applyServerActivities(n.data):n?.message&&this.cs.showErrorMessage(n.message),o?.status?(this.isEnabled=!!o?.data?.is_enabled,this.hasPointsEditAccess=!!o?.data?.is_points_edited,this.setPointsControlsDisabledState(!this.hasPointsEditAccess),this.serverConfigSnapshot={is_enabled:!!o?.data?.is_enabled,updated_at:o?.data?.updated_at??null,is_points_edited:o?.data?.is_points_edited}):o?.message&&this.cs.showErrorMessage(o.message),this.isLoading=!1},error:n=>{this.cs.showErrorMessage(n?.message),this.isLoading=!1}})}applyServerActivities(n){this.serverSnapshot.clear(),this.activityCodeOrder.forEach(o=>{this.serverSnapshot.set(o,{activity_code:o,activity_name:Q.N_[o],points_earned:Q.oO[o],is_active:!1})}),n.forEach(o=>{!o?.activity_code||!this.serverSnapshot.has(o.activity_code)||this.serverSnapshot.set(o.activity_code,{activity_code:o.activity_code,activity_name:Q.N_[o.activity_code],points_earned:o.points_earned??Q.oO[o.activity_code],is_active:!!o.is_active})}),this.activitiesFormArray.controls.forEach(o=>{const a=o.get("activity_code")?.value,r=this.serverSnapshot.get(a);r&&o.patchValue(r,{emitEvent:!1})}),this.earnPointsForm.markAsPristine()}handlePointsKeydown(n){["e","E","+","-","."].includes(n.key)&&n.preventDefault()}setPointsControlsDisabledState(n){this.activitiesFormArray.controls.forEach(o=>{n?o.get("points_earned")?.disable({emitEvent:!1}):o.get("points_earned")?.enable({emitEvent:!1})})}openPointsEditWarningModal(){this.pointsEditWarningModal?.isModalOpen||this.pointsEditWarningModal?.openModal()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let i=s;return s.ZERO=0,s.LEADERBOARD_VISIBILITY_KEY="display_my_leaderboards",s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu),e.Y36(O.F0),e.Y36(N.F),e.Y36(A.v),e.Y36(e.Lbi))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-earn-points"]],viewQuery:function(o,a){if(1&o&&e.Gf(Mm,5),2&o){let r;e.iGM(r=e.CRH())&&(a.pointsEditWarningModal=r.first)}},decls:2,vars:2,consts:[[4,"ngIf"],["class","inside-container preference-container earn-points-page",4,"ngIf"],[1,"inside-container","preference-container","earn-points-page"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"earn-points-container"],[1,"earn-points-header"],[1,"earn-points-settings-card","earn-points-settings-card--toolbar"],[1,"earn-points-settings-card-row"],[1,"earn-points-settings-card-label"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"earn-points-toggle-enable",3,"currentState","disableMessage","enableMessage","toggleChanged"],[1,"earn-points-table","earn-points-desktop-table",3,"formGroup"],[1,"earn-points-table-header"],[1,"earn-points-table-header-item"],[1,"earn-points-table-header-item","earn-points-table-header-status"],["formArrayName","activities",1,"earn-points-table-body"],["class","earn-points-table-row",3,"formGroupName",4,"ngFor","ngForOf"],[1,"earn-points-mobile-cards",3,"formGroup"],["formArrayName","activities",1,"earn-points-mobile-cards-body"],["class","earn-points-mobile-card",3,"formGroupName",4,"ngFor","ngForOf"],[1,"earn-points-actions"],[3,"btnField","handleButtonClick"],[3,"proceeded"],["pointsEditWarningModal",""],[1,"earn-points-table-row",3,"formGroupName"],[1,"earn-points-table-body-item","earn-points-table-body-activity"],[1,"earn-points-card-value"],[1,"earn-points-table-body-item","earn-points-table-body-points"],[1,"earn-points-input-lock-area"],[3,"form","field"],["type","button","class","earn-points-input-overlay",3,"click",4,"ngIf"],[1,"points-label"],[1,"earn-points-table-body-item","earn-points-table-body-status"],[1,"status-label"],["type","button",1,"earn-points-input-overlay",3,"click"],[1,"earn-points-mobile-card",3,"formGroupName"],[1,"earn-points-mobile-card-status-row"],[1,"earn-points-mobile-card-label"],[1,"earn-points-mobile-card-div
1ider"],[1,"earn-points-mobile-card-field"],[1,"earn-points-mobile-card-value"],[1,"earn-points-mobile-card-points-row"]],template:function(o,a){1&o&&(e.YNc(0,Tm,1,0,"app-earn-points-skeleton",0),e.YNc(1,Sm,39,15,"div",1)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser&&!a.isLoading))},dependencies:[p.sg,p.O5,u.JL,u.sg,u.x0,u.CE,ae.r,tt.s,ce.l,nt.w,ho,xm],styles:["[_nghost-%COMP%]{--earn-points-gap-xs: 8px;--earn-points-gap-sm: 12px;--earn-points-gap-md: 16px;--earn-points-gap-lg: 24px;--earn-points-gap-mobile-header: 10px;--earn-points-input-width: 80px;--earn-points-status-width: 100px;--earn-points-table-column-gap: 24px;--earn-points-border-radius: 16px;--earn-points-status-radius: 999px;--earn-points-table-padding: 24px;--earn-points-row-border-radius: 22px;--earn-points-row-height: 64px;--earn-points-mobile-card-radius: 20px;--earn-points-mobile-card-padding: 14px;--earn-points-title-font-size: 24px;--earn-points-title-font-weight: 600;--earn-points-status-font-size: 14px;--earn-points-divider-border: 1px solid rgba(255, 255, 255, .08);--earn-points-grid-columns: minmax(0, 1fr) max-content minmax(var(--earn-points-status-width), max-content);--earn-points-grid-columns-tablet: minmax(0, 1fr) max-content minmax(var(--earn-points-status-width), max-content)}.preference-container[_ngcontent-%COMP%]{padding-top:var(--earn-points-gap-md)!important}.earn-points-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--earn-points-gap-lg)}.earn-points-header[_ngcontent-%COMP%]{align-items:stretch;display:flex;flex-direction:column;gap:var(--earn-points-gap-md)}@media (min-width: 993px){.earn-points-header[_ngcontent-%COMP%]{align-items:center;flex-direction:row;justify-content:space-between;gap:var(--earn-points-gap-md)}}.earn-points-title-wrap[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--earn-points-gap-xs)}.earn-points-toggle-enable[_ngcontent-%COMP%]{align-self:flex-end;flex-shrink:0}@media (min-width: 993px){.earn-points-toggle-enable[_ngcontent-%COMP%]{align-self:center;margin-left:auto}}.earn-points-table[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:var(--earn-points-border-radius);color:var(--configPostTextColor)!important;display:flex;flex-direction:column;gap:var(--earn-points-gap-lg);padding:var(--earn-points-table-padding)}@media (max-width: 992px){.earn-points-desktop-table[_ngcontent-%COMP%]{display:none}}.earn-points-mobile-cards[_ngcontent-%COMP%]{display:none}@media (max-width: 992px){.earn-points-mobile-cards[_ngcontent-%COMP%]{display:block}}.earn-points-card-value[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important}.earn-points-mobile-cards-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--earn-points-gap-md)}.earn-points-mobile-card[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:var(--earn-points-mobile-card-radius);display:flex;flex-direction:column;gap:var(--earn-points-gap-sm);padding:var(--earn-points-mobile-card-padding)}.earn-points-mobile-card-status-row[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;gap:var(--earn-points-gap-sm)}.earn-points-mobile-card-divider[_ngcontent-%COMP%]{border-top:var(--earn-points-divider-border)}.earn-points-mobile-card-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--earn-points-gap-xs)}.earn-points-mobile-card-label[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;opacity:.7}.earn-points-mobile-card-value[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important}.earn-points-mobile-card-points-row[_ngcontent-%COMP%]{align-items:center;display:flex;gap:0;width:100%}.earn-points-input-lock-area[_ngcontent-%COMP%]{position:relative;width:100%}.earn-points-input-lock-area[_ngcontent-%COMP%]   app-input[_ngcontent-%COMP%]{flex:1;min-width:0}.earn-points-table-body-points[_ngcontent-%COMP%]   .earn-points-input-lock-area[_ngcontent-%COMP%]{flex:0 0 auto;max-width:var(--earn-points-input-width);width:auto}.earn-points-table-header[_ngcontent-%COMP%]{align-items:center;column-gap:var(--earn-points-table-column-gap);display:grid;grid-template-columns:var(--earn-points-grid-columns)}@media (max-width: 992px){.earn-points-table-header[_ngcontent-%COMP%]{grid-template-columns:var(--earn-points-grid-columns-tablet)}}.earn-points-table-header[_ngcontent-%COMP%]   .earn-points-table-header-item[_ngcontent-%COMP%]:nth-child(2){min-width:145px}.earn-points-table-header-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;
1font-weight:var(--earn-points-title-font-weight)}.earn-points-table-header-status[_ngcontent-%COMP%]{justify-self:end;margin-left:0;min-width:var(--earn-points-status-width);text-align:end;width:max-content}@media (max-width: 992px){.earn-points-table-header-status[_ngcontent-%COMP%]{justify-self:center;margin:0 auto;text-align:center}}.earn-points-table-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--earn-points-gap-md)}.earn-points-table-row[_ngcontent-%COMP%]{align-items:center;background-color:var(--configBgColor);border-radius:var(--earn-points-row-border-radius);column-gap:var(--earn-points-table-column-gap);display:grid;grid-template-columns:var(--earn-points-grid-columns);min-height:var(--earn-points-row-height);padding:0 var(--earn-points-gap-md)}@media (max-width: 992px){.earn-points-table-row[_ngcontent-%COMP%]{grid-template-columns:var(--earn-points-grid-columns-tablet)}}.earn-points-table-body-item[_ngcontent-%COMP%]{min-width:0}.earn-points-table-body-activity[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important}.earn-points-table-body-points[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--earn-points-gap-sm);justify-content:flex-start;justify-self:start}.earn-points-table-body-points[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:0;width:var(--earn-points-input-width)}.earn-points-table-body-points[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:empty{display:none}.points-label[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important}.earn-points-input-overlay[_ngcontent-%COMP%]{background:transparent;border:none;cursor:text;inset:0;padding:0;position:absolute;z-index:2}.earn-points-table-body-status[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--earn-points-gap-xs);justify-content:flex-end;justify-self:end;margin-left:0;min-width:var(--earn-points-status-width);width:max-content}@media (max-width: 992px){.earn-points-table-body-status[_ngcontent-%COMP%]{justify-content:center;justify-self:center;margin:0 auto}}.status-label[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important;font-size:var(--earn-points-status-font-size)}@media (max-width: 992px){.status-label[_ngcontent-%COMP%]{display:none}}.earn-points-actions[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--earn-points-gap-sm)}.earn-points-settings-card[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:var(--earn-points-border-radius);color:var(--configPostTextColor)!important;padding:var(--earn-points-table-padding)}.earn-points-settings-card--toolbar[_ngcontent-%COMP%]{align-self:flex-start;flex:0 0 auto;max-width:100%;padding:var(--earn-points-mobile-card-padding);width:-moz-fit-content;width:fit-content}@media (min-width: 993px){.earn-points-settings-card--toolbar[_ngcontent-%COMP%]{padding:var(--earn-points-gap-sm) var(--earn-points-gap-md)}}.earn-points-settings-card-row[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--earn-points-gap-md);justify-content:flex-start}.earn-points-settings-card-label[_ngcontent-%COMP%]{color:var(--configPostTextColor)!important;margin:0;min-width:0}@media (max-width: 992px){.earn-points-header[_ngcontent-%COMP%]{gap:var(--earn-points-gap-lg);margin-top:var(--earn-points-gap-md)}.earn-points-table[_ngcontent-%COMP%]{padding:0;background-color:transparent;border-radius:0}}[_nghost-%COMP%]     .earn-points-toggle-enable .toggle-enable-container{display:flex;align-items:center}[_nghost-%COMP%]     .earn-points-table-body-points app-input{display:block;flex:0 0 auto;max-width:var(--earn-points-input-width);min-width:0;width:var(--earn-points-input-width)}[_nghost-%COMP%]     .earn-points-table-body-points .form-group{box-sizing:border-box;margin-bottom:0;margin-top:0;max-width:var(--earn-points-input-width);width:var(--earn-points-input-width)}[_nghost-%COMP%]     .earn-points-table-body-points .form-group .input-container{max-width:var(--earn-points-input-width);width:100%}[_nghost-%COMP%]     .earn-points-table-body-points .form-group .prefix-content{max-width:var(--earn-points-input-width);width:100%}[_nghost-%COMP%]     .earn-points-table-body-points .form-group input.form-control{box-sizing:border-box;max-width:100%;min-width:0;padding:10px 12px;width:100%}[_nghost-%COMP%]     .earn-points-mobile-card-points-row .form-group{margin-top:0;margin-bottom:0;width:100%}[_nghost-%COMP%]     .points-suffix-btn{color:var(--configPostTextColor)!important;cursor:default!important;font-weight:400!important;pointer-events:none}[_nghost-%COMP%]     .btn-discard .btn-text{color:var(--configBgTextColor)!important}"]}),i})();const km={TITLE:"Gamification",TAB_BUY_POINTS:"BUY POINTS",TAB_EARN_POINTS:"EARN POINTS",TAB_BADGES:"BADGES",HINT:"If you enable Gamification fans can earn Points and earn graphical Badges that display next to their names, for earning a set number of points in a 30-day period. Points can be earned by completing various activities that you enable in the Earn Points section. You can choose to lock your content by points. Points can be purchased as well in the Buy Points section."},gn=function(){return{exact:!0}};let Dm=(()=>{const s=class{constructor(n,o,a,r){this.store=n,this.router=o,this.headerFooterStateService=a,this.cs=r,this.ROUTE_PATHS=ne._1,this.TEXT=km,this.SIDEBAR_TABS=Ae.eE,this.userProfile=null,this.destroy$=new q.x,this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb})}
1ngOnInit(){this.cs.isBrowser&&this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}moveToDashboard(){this.router.navigate([ne._1.DASHBOARD])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(O.F0),e.Y36(c.P),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-gamification-container"]],decls:21,vars:12,consts:[[1,"gamification-container"],[1,"inside-header","gamification-mobile-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"gamification-section-header"],[1,"gamification-title-row"],[1,"gamification-title"],[3,"message"],["aria-label","Gamification sections",1,"gamification-subtabs"],["routerLink","earn-points","routerLinkActive","gamification-subtab--active",1,"gamification-subtab",3,"routerLinkActiveOptions"],["routerLink","buy-points","routerLinkActive","gamification-subtab--active",1,"gamification-subtab",3,"routerLinkActiveOptions"],["routerLink","badges","routerLinkActive","gamification-subtab--active",1,"gamification-subtab",3,"routerLinkActiveOptions"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e.NdJ("click",function(){return a.moveToDashboard()}),e.TgZ(3,"em",3),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",4),e._uU(7),e.qZA()(),e.TgZ(8,"div",5)(9,"div",6)(10,"h2",7),e._uU(11),e.qZA(),e._UZ(12,"app-info-icon",8),e.qZA(),e.TgZ(13,"nav",9)(14,"a",10),e._uU(15),e.qZA(),e.TgZ(16,"a",11),e._uU(17),e.qZA(),e.TgZ(18,"a",12),e._uU(19),e.qZA()()(),e._UZ(20,"router-outlet"),e.qZA()),2&o&&(e.xp6(7),e.Oqu(a.TEXT.TITLE),e.xp6(4),e.Oqu(a.TEXT.TITLE),e.xp6(1),e.Q6J("message",a.TEXT.HINT),e.xp6(2),e.Q6J("routerLinkActiveOptions",e.DdM(9,gn)),e.xp6(1),e.hij(" ",a.TEXT.TAB_EARN_POINTS," "),e.xp6(1),e.Q6J("routerLinkActiveOptions",e.DdM(10,gn)),e.xp6(1),e.hij(" ",a.TEXT.TAB_BUY_POINTS," "),e.xp6(1),e.Q6J("routerLinkActiveOptions",e.DdM(11,gn)),e.xp6(1),e.hij(" ",a.TEXT.TAB_BADGES," "))},dependencies:[ke.e,ce.l,O.lC,O.rH,O.Od],styles:["[_nghost-%COMP%]{--border-color: rgba(255, 255, 255, .1)}.gamification-container[_ngcontent-%COMP%]{width:100%}.gamification-mobile-header[_ngcontent-%COMP%]{display:none}.gamification-section-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}@media screen and (min-width: 992px){.gamification-section-header[_ngcontent-%COMP%]{margin-top:24px}}.gamification-title[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important;font-size:24px;font-weight:600;line-height:1.2;margin:0}.gamification-title-row[_ngcontent-%COMP%]{align-items:center;display:flex}.gamification-title-row[_ngcontent-%COMP%]   app-info-icon[_ngcontent-%COMP%]{padding-top:3px!important}.gamification-subtabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.gamification-subtab[_ngcontent-%COMP%]{align-items:center;background:var(--configSecondaryBgColor);border-radius:28px;color:var(--configBgTextColor);display:inline-flex;font-size:14px;font-weight:900;justify-content:center;letter-spacing:.4px;padding:11px 25px;text-decoration:none;text-transform:uppercase}.gamification-subtab--active[_ngcontent-%COMP%]{color:var(--configButtonTextColor)!important;background:var(--configThemeColor)}@media (max-width: 991px){.gamification-mobile-header[_ngcontent-%COMP%]{display:flex}.gamification-title[_ngcontent-%COMP%], .gamification-title-row[_ngcontent-%COMP%]{display:none}.gamification-section-header[_ngcontent-%COMP%]{gap:0;margin-bottom:0}.gamification-subtabs[_ngcontent-%COMP%]{gap:24px;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--border-color);scrollbar-width:none}.gamification-subtabs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.gamification-subtab[_ngcontent-%COMP%]{padding:14px 0;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:var(--configBgTextColor)!important;font-size:13px;line-height:1;white-space:nowrap}.gamification-subtab--active[_ngcontent-%COMP%]{color:var(--theme-interactive-link)!important;background:transparent;border-bottom-color:var(--theme-interactive-link)}  .gamification-container .buy-points-page>.inside-header,   .gamification-container .cb-badges-page>.inside-header,   .gamification-container .earn-points-page>.inside-header{display:none}}"]}),i})();const Nm={PREFERENCES_TITLE:"Buy Points",ENABLE:"Enable",DISABLED:"Disabled",POINTS_BUNDLE:"Points Bundle",PRICE:"Price",STATUS:"Status"},Co=[{bundle_id:"BUNDLE_500",points:500,bonus:0,total_points:500,price:5,is_active:!0},{bundle_id:"BUNDLE_1100",points:1e3,bonus:100,total_points:1100,price:10,is_active:!0},{bundle_id:"BUNDLE_2300",points:2e3,bonus:300,total_points:2300,price:20,is_active:!0},{bundle_id:"BUNDLE_4500",points:4e3,bonus:500,total_points:4500,price:40,is_active:!0},{bundle_id:"BUNDLE_9000",points:8e3,bonus:1e3,total_points:9e3,price:80,is_active:!0}];var Lm=d(62305);function Zm(i,s){1&i&&(e.TgZ(0,"div",12)(1,"div",4),e._UZ(2,"app-skeleton",13),e.qZA(),e.TgZ(3,"div",6),e._UZ(4,"app-skeleton",14),e.qZA(),e.TgZ(5,"div",8),e._UZ(6,"app-skeleton",15),e.qZA()())}function Fm(i,s){1&i&&(e.TgZ(0,"div",16)(1,"div",17),e._UZ(2,"app-skeleton",18)(3,"app-skeleton",15),e.qZA(),e.TgZ(4,"div",19)(5,"div",20),e._UZ(6,"app-skeleton",21)(7,"app-skeleton",22),e.qZA(),e.TgZ(8,"div",23),e._UZ(9,"app-skeleton",24)(10,"app-skeleton",25),e.qZA()()())}let bo=(()=>{const s=class{constructor(){this.rows=Array(5)}};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-buy-points-skeleton"]],standalone:!0,features:[e.jDz],decls:13,vars:2,consts:[[1,"skeleton-buy-points"],[1,"skeleton-section"],[1,"skeleton-table-desktop"],[1,"skeleton-row","skeleton-header"],[1,"skeleton-col","col-bundle"],["className","h-14 w-100 r-4 c-post"],[1,"skeleton-col","col-price"],["className","h-14 w-50 r-4 c-post"],[1,"skeleton-col","col-status"],["class","skeleton-card-row",4,"ngFor","ngForOf"],[1,"skeleton-cards-mobile"],["class","skeleton-mobile-card",4,"ngFor","ngForOf"],[1,"skeleton-card-row"],["className","h-16 w-70% r-4 c-bgt"],["className","h-16 w-60 r-4 c-bgt"],["className","h-24 w-44 r-12 c-bgt"],[1,"skeleton-mobile-card"],[1,"skeleton-mobile-card-header"],["className","h-12 w-50 r-4 c-bgt"],[1,"skeleton-mobile-card-body"],[1,"skeleton-mobile-card-labels"],["className","h-12 w-80 r-4 c-bgt"],["className","h-12 w-40 r-4 c-bgt"],[1,"skeleton-mobile-card-values"],["className","h-16 w-60% r-4 c-bgt"],["className","h-16 w-50 r-4 c-bgt"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e._UZ(5,"app-skeleton",5),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"app-skeleton",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"app-skeleton",7),e.qZA()(),e.YNc(10,Zm,7,0,"div",9),e.qZA(),e.TgZ(11,"div",10),e.YNc(12,Fm,11,0,"div",11),e.qZA()()()),2&o&&(e.xp6(10),e.Q6J("ngForOf",a.rows),e.xp6(2),e.Q6J("ngForOf",a.rows))},dependencies:[p.ez,p.sg,ie._],styles:[".skeleton-buy-points[_ngcontent-%COMP%]{margin-top:20px}.skeleton-section[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:15px;padding:20px 12px}@media (min-width: 992px){.skeleton-section[_ngcontent-%COMP%]{border-radius:30px;padding:20px 30px}}.skeleton-table-desktop[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.skeleton-table-desktop[_ngcontent-%COMP%]{display:block}}.skeleton-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:14px 0}.skeleton-header[_ngcontent-%COMP%]{padding:10px 0 16px}.skeleton-card-row[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--configBgColor);border-radius:30px;padding:16px 20px;margin-top:10px}.skeleton-col[_ngcontent-%COMP%]{padding:0 10px}
1.skeleton-col.col-bundle[_ngcontent-%COMP%]{width:45%}.skeleton-col.col-price[_ngcontent-%COMP%]{width:35%}.skeleton-col.col-status[_ngcontent-%COMP%]{width:20%;display:flex;justify-content:flex-end}.skeleton-cards-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media (min-width: 992px){.skeleton-cards-mobile[_ngcontent-%COMP%]{display:none}}.skeleton-mobile-card[_ngcontent-%COMP%]{background:var(--configBgColor);border-radius:15px;padding:16px}.skeleton-mobile-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.skeleton-mobile-card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.skeleton-mobile-card-labels[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.skeleton-mobile-card-values[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}"]}),i})();function Um(i,s){1&i&&e._UZ(0,"app-buy-points-skeleton")}function Bm(i,s){if(1&i&&(e.TgZ(0,"span",32),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw().$implicit;let n;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==(n=t.get("bonus"))?null:n.value)," Bonus Points ")}}function Rm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",22)(1,"div",12)(2,"div",23),e._UZ(3,"img",24),e.TgZ(4,"span",25),e._uU(5),e.ALo(6,"number"),e.qZA(),e.YNc(7,Bm,3,3,"span",26),e.qZA()(),e.TgZ(8,"div",13)(9,"span",27),e._uU(10),e.ALo(11,"currency"),e.qZA()(),e.TgZ(12,"div",14)(13,"label",28)(14,"input",29),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleBundle(o,r))}),e.qZA(),e._UZ(15,"span",30),e.qZA(),e.TgZ(16,"span",31),e._uU(17),e.qZA()()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r,l,g;e.Q6J("formGroupName",n),e.xp6(3),e.Q6J("src",o.pointCoinIconSrc,e.LSH),e.xp6(2),e.hij(" ",e.lcZ(6,7,null==(a=t.get("total_points"))?null:a.value)," Points "),e.xp6(2),e.Q6J("ngIf",(null==(r=t.get("bonus"))?null:r.value)>o.Application.ZERO),e.xp6(3),e.hij(" ",e.lcZ(11,9,null==(l=t.get("price"))?null:l.value)," "),e.xp6(4),e.Q6J("checked",null==(g=t.get("is_active"))?null:g.value),e.xp6(3),e.Oqu(o.getStatusLabel(n))}}function qm(i,s){if(1&i&&(e.TgZ(0,"span",32),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw().$implicit;let n;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==(n=t.get("bonus"))?null:n.value)," Bonus Points ")}}function Gm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",33)(1,"div",34)(2,"span",35),e._uU(3),e.qZA(),e.TgZ(4,"div",36)(5,"label",28)(6,"input",29),e.NdJ("change",function(o){const r=e.CHM(t).index,l=e.oxw(2);return e.KtG(l.toggleBundle(o,r))}),e.qZA(),e._UZ(7,"span",30),e.qZA()()(),e.TgZ(8,"div",37)(9,"div",38)(10,"span",35),e._uU(11),e.qZA(),e.TgZ(12,"div",23),e._UZ(13,"img",24),e.TgZ(14,"span",25),e._uU(15),e.ALo(16,"number"),e.qZA(),e.YNc(17,qm,3,3,"span",26),e.qZA()(),e.TgZ(18,"div",39)(19,"span",35),e._uU(20),e.qZA(),e.TgZ(21,"span",27),e._uU(22),e.ALo(23,"currency"),e.qZA()()()()}if(2&i){const t=s.$implicit,n=s.index,o=e.oxw(2);let a,r,l,g;e.Q6J("formGroupName",n),e.xp6(3),e.Oqu(o.BUY_POINTS_TEXT.STATUS),e.xp6(3),e.Q6J("checked",null==(a=t.get("is_active"))?null:a.value),e.xp6(5),e.Oqu(o.BUY_POINTS_TEXT.POINTS_BUNDLE),e.xp6(2),e.Q6J("src",o.pointCoinIconSrc,e.LSH),e.xp6(2),e.hij(" ",e.lcZ(16,9,null==(r=t.get("total_points"))?null:r.value)," Points "),e.xp6(2),e.Q6J("ngIf",(null==(l=t.get("bonus"))?null:l.value)>o.Application.ZERO),e.xp6(3),e.Oqu(o.BUY_POINTS_TEXT.PRICE),e.xp6(2),e.hij(" ",e.lcZ(23,11,null==(g=t.get("price"))?null:g.value)," ")}}function Ym(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"a",4),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(3,"em",5),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",6),e._uU(7),e.qZA()(),e.TgZ(8,"div",7)(9,"div",8)(10,"app-toggle-enable",9),e.NdJ("toggleChanged",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onToggleEnableChanged(o))}),e.qZA()(),e.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"span"),e._uU(15),e.qZA()(),e.TgZ(16,"div",13)(17,"span"),e._uU(18),e.qZA()(),e.TgZ(19,"div",14)(20,"span"),e._uU(21),e.qZA()()(),e.TgZ(22,"div",15),e.YNc(23,Rm,18,11,"div",16),e.qZA()(),e.TgZ(24,"div",17)(25,"div",18),e.YNc(26,Gm,24,13,"div",19),e.qZA()(),e.TgZ(27,"div",20)(28,"app-button",21),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.discardChanges())}),e.qZA(),e.TgZ(29,"app-button",21),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.saveChanges())}),e.qZA()()()()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.BUY_POINTS_TEXT.PREFERENCES_TITLE),e.xp6(3),e.Q6J("currentState",t.isEnabled)("disableMessage",t.BUY_POINTS_TEXT.DISABLED)("enableMessage",t.BUY_POINTS_TEXT.ENABLE),e.xp6(1),e.Q6J("formGroup",t.buyPointsForm),e.xp6(4),e.Oqu(t.BUY_POINTS_TEXT.POINTS_BUNDLE),e.xp6(3),e.Oqu(t.BUY_POINTS_TEXT.PRICE),e.xp6(3),e.Oqu(t.BUY_POINTS_TEXT.STATUS),e.xp6(2),e.Q6J("ngForOf",t.bundlesFormArray.controls)("ngForTrackBy",t.trackByBundle),e.xp6(1),e.Q6J("formGroup",t.buyPointsForm),e.xp6(2),e.Q6J("ngForOf",t.bundlesFormArray.controls)("ngForTrackBy",t.trackByBundle),e.xp6(2),e.Q6J("btnField",t.discardButton),e.xp6(1),e.Q6J("btnField",t.saveChangesButton)}}let Jm=(()=>{const s=class{constructor(n,o,a,r,l,g){this.fb=n,this.router=o,this.store=a,this.apiCacheService=r,this.apiCallService=l,this.cs=g,this.BUY_POINTS_TEXT=Nm,this.discardButton=Q.ns,this.pointCoinIconSrc=Lm.YJ.POINT_COIN_ICON_PATH,this.destroy$=new q.x,this.serverSnapshot=new Map,this.creatorId="",this.serverConfigSnapshot=!1,this.isEnabled=!1,this.isLoading=!0,this.isSaving=!1,this.isStatusUpdating=!1,this.Ap
1plication=_.Mx,this.buyPointsForm=this.fb.group({bundles:this.fb.array([])})}ngOnInit(){this.initForm(),this.bindControlSubscriptions(),this.listenToCreatorProfile()}get bundlesFormArray(){return this.buyPointsForm.get("bundles")}get saveChangesButton(){return{...Q.ee,disabled:this.buyPointsForm.pristine||this.isSaving,loading:this.isSaving}}moveToDashboard(){this.router.navigate([_.Mx.DASHBOARD])}getStatusLabel(n){const o=!!this.bundlesFormArray.at(n).get("is_active")?.value;return Q.LC[String(o)]}trackByBundle(n,o){return o.get("bundle_id")?.value??n}toggleBundle(n,o){const a=n.target.checked;this.bundlesFormArray.at(o).patchValue({is_active:a})}onToggleEnableChanged(n){this.updateBuyPointsStatus(n)}saveChanges(){if(this.isSaving)return;const o={bundles:this.bundlesFormArray.value.reduce((a,r)=>(a[r.bundle_id]=!!r.is_active,a),{})};this.isSaving=!0,this.apiCallService.put(x.Y9.loyaltyPointsPackages,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a?.status?(this.bundlesFormArray.value.forEach(r=>{this.serverSnapshot.set(r.bundle_id,!!r.is_active)}),this.buyPointsForm.markAsPristine(),this.cs.showSuccessMessage(a.message)):a?.message&&this.cs.showErrorMessage(a.message),this.isSaving=!1},error:a=>{this.cs.showErrorMessage(a?.message),this.isSaving=!1}})}discardChanges(){this.bundlesFormArray.controls.forEach(n=>{const o=n.get("bundle_id")?.value,a=this.serverSnapshot.get(o);void 0!==a&&n.patchValue({is_active:a},{emitEvent:!1})}),this.isEnabled=this.serverConfigSnapshot,this.buyPointsForm.markAsPristine()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}listenToCreatorProfile(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{const o=n?.gsi4pk??"";!o||o===this.creatorId||(this.creatorId=o,this.fetchBuyPointsData())})}initForm(){const n=this.bundlesFormArray;Co.forEach(o=>{n.push(this.fb.group({bundle_id:o.bundle_id,total_points:o.total_points,bonus:o.bonus,price:o.price,is_active:o.is_active}))})}bindControlSubscriptions(){this.bundlesFormArray.controls.forEach(n=>{n.get("is_active")?.valueChanges.pipe((0,v.R)(this.destroy$)).subscribe(()=>this.buyPointsForm.markAsDirty())})}fetchBuyPointsData(){this.isLoading=!0,this.apiCacheService.get(x.$_.loyaltyPointsPackages(this.creatorId)).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n?.status?(this.isEnabled=!!n.data?.is_active,this.serverConfigSnapshot=!!n.data?.is_active,this.applyServerBundles(n.data?.bundles??[])):n?.message&&this.cs.showErrorMessage(n.message),this.isLoading=!1},error:n=>{this.cs.showErrorMessage(n?.message),this.isLoading=!1}})}applyServerBundles(n){this.serverSnapshot.clear(),Co.forEach(o=>{this.serverSnapshot.set(o.bundle_id,!!o.is_active)}),n.forEach(o=>{!o?.bundle_id||!this.serverSnapshot.has(o.bundle_id)||this.serverSnapshot.set(o.bundle_id,!!o.is_active)}),this.bundlesFormArray.controls.forEach(o=>{const a=o.get("bundle_id")?.value,r=this.serverSnapshot.get(a);void 0!==r&&o.patchValue({is_active:r},{emitEvent:!1})}),this.buyPointsForm.markAsPristine()}updateBuyPointsStatus(n){this.isEnabled===n||this.isStatusUpdating||(this.isStatusUpdating=!0,this.apiCallService.put(x.Y9.loyaltyPointsPackages,{is_active:n},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a?.status?(this.isEnabled=n,this.serverConfigSnapshot=n,this.cs.showSuccessMessage(a.message)):a?.message&&this.cs.showErrorMessage(a.message),this.isStatusUpdating=!1},error:a=>{this.cs.showErrorMessage(a?.message),this.isStatusUpdating=!1}}))}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(u.qu),e.Y36(O.F0),e.Y36(le.yh),e.Y36(jn.G),e.Y36(N.F),e.Y36(A.v))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-buy-points"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","inside-container preference-container buy-points-page",4,"ngIf"],[1,"inside-container","preference-container","buy-points-page"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"buy-points-container"],[1,"buy-points-header"],[1,"buy-points-toggle-enable",3,"currentState","disableMessage","enableMessage","toggleChanged"],[1,"buy-points-table","buy-points-desktop-table",3,"formGroup"],[1,"buy-points-table-header"],[1,"buy-points-table-cell","buy-points-table-cell--bundle"],[1,"buy-points-table-cell","buy-points-table-cell--price"],[1,"buy-points-table-cell","buy-points-table-cell--status"],["formArrayName","bundles",1,"buy-points-table-body"],["class","buy-points-table-row",3,"formGroupName",4,"ngFor","ngForOf","ngForTrackBy"],[1,"buy-points-mobile-cards",3,"formGroup"],["formArrayName","bundles",1,"buy-points-mobile-cards-body"],["class","buy-points-mobile-card",3,"formGroupName",4,"ngFor","ngForOf","ngForTrackBy"],[1,"buy-points-actions"],[3,"btnField","handleButtonClick"],[1,"buy-points-table-row",3,"formGroupName"],[1,"buy-points-bundle"],["alt","",1,"buy-points-bundle-icon",3,"src"],[1,"buy-points-bundle-value"],["class","buy-points-bonus",4,"ngIf"],[1,"buy-points-price-value"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],[1,"status-label"],[1,"buy-points-bonus"],[1,"buy-points-mobile-card",3,"formGroupName"],[1,"buy-points-mobile-card-status-row"],[1,"buy-points-mobile-card-label"],[1,"buy-points-mobile-card-status-control"],[1,"buy-points-mobile-card-detail
1s"],[1,"buy-points-mobile-card-field","buy-points-mobile-card-field--bundle"],[1,"buy-points-mobile-card-field","buy-points-mobile-card-field--price"]],template:function(o,a){1&o&&(e.YNc(0,Um,1,0,"app-buy-points-skeleton",0),e.YNc(1,Ym,30,15,"div",1)),2&o&&(e.Q6J("ngIf",!a.cs.isBrowser||a.isLoading),e.xp6(1),e.Q6J("ngIf",a.cs.isBrowser&&!a.isLoading))},dependencies:[p.sg,p.O5,u.JL,u.sg,u.x0,u.CE,ae.r,ce.l,nt.w,bo,p.JJ,p.H9],styles:["[_nghost-%COMP%]{--buy-points-gap-xs: 8px;--buy-points-gap-sm: 12px;--buy-points-gap-md: 16px;--buy-points-gap-lg: 24px;--buy-points-border-radius: 16px;--buy-points-table-padding: 24px;--buy-points-row-radius: 22px;--buy-points-mobile-card-radius: 20px;--buy-points-mobile-card-padding: 14px;--buy-points-status-width: 120px;--buy-points-coin-size: 24px;--text-color: var(--configPostTextColor);--alt-text-color: var(--configBgTextColor)}@media (max-width: 992px){[_nghost-%COMP%]{--alt-text-color: var(--configPostTextColor)}}.preference-container[_ngcontent-%COMP%]{padding-top:var(--buy-points-gap-md)!important}.buy-points-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--buy-points-gap-lg)}.buy-points-header[_ngcontent-%COMP%]{display:flex;gap:var(--buy-points-gap-md);justify-content:flex-end}.buy-points-toggle-enable[_ngcontent-%COMP%]{margin-left:auto}.buy-points-table[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:var(--buy-points-border-radius);color:var(--text-color)!important;display:flex;flex-direction:column;gap:var(--buy-points-gap-lg);padding:var(--buy-points-table-padding)}@media (max-width: 992px){.buy-points-desktop-table[_ngcontent-%COMP%]{display:none}}.buy-points-table-header[_ngcontent-%COMP%], .buy-points-table-row[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--buy-points-gap-md)}.buy-points-table-header[_ngcontent-%COMP%]{color:var(--text-color)!important;font-weight:600}.buy-points-table-header[_ngcontent-%COMP%]   .buy-points-table-cell--status[_ngcontent-%COMP%]{justify-content:center}.buy-points-table-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--buy-points-gap-md)}.buy-points-table-row[_ngcontent-%COMP%]{background-color:var(--configBgColor);border-radius:var(--buy-points-row-radius);min-height:64px;padding:0 var(--buy-points-gap-md)}.buy-points-table-cell[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--buy-points-gap-sm);min-width:0}.buy-points-table-cell--bundle[_ngcontent-%COMP%], .buy-points-table-cell--price[_ngcontent-%COMP%]{flex:1}.buy-points-table-cell--status[_ngcontent-%COMP%]{display:flex;gap:var(--buy-points-gap-xs);justify-content:flex-end;width:var(--buy-points-status-width)}.buy-points-bundle[_ngcontent-%COMP%]{align-items:center;color:var(--alt-text-color)!important;display:flex;gap:var(--buy-points-gap-sm)}.buy-points-bundle-icon[_ngcontent-%COMP%]{display:block;height:var(--buy-points-coin-size);width:var(--buy-points-coin-size)}.buy-points-bundle-value[_ngcontent-%COMP%], .buy-points-price-value[_ngcontent-%COMP%], .status-label[_ngcontent-%COMP%]{color:var(--alt-text-color)!important}.buy-points-bonus[_ngcontent-%COMP%]{background:linear-gradient(135deg,#1de9b6 .33%,#00b6ea 99.62%);color:var(--configButtonTextColor)!important;border-radius:28px;font-size:12px;font-weight:500;margin-left:10px;padding:5px 8px}.buy-points-mobile-cards[_ngcontent-%COMP%]{display:none}@media (max-width: 992px){.buy-points-mobile-cards[_ngcontent-%COMP%]{display:block}}.buy-points-mobile-cards-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--buy-points-gap-md)}.buy-points-mobile-card[_ngcontent-%COMP%]{background-color:var(--configSecondaryBgColor);border-radius:var(--buy-points-mobile-card-radius);display:flex;flex-direction:column;gap:var(--buy-points-gap-md);padding:var(--buy-points-mobile-card-padding)}.buy-points-mobile-card-status-row[_ngcontent-%COMP%], .buy-points-mobile-card-status-control[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--buy-points-gap-sm);justify-content:space-between}.buy-points-mobile-card-details[_ngcontent-%COMP%]{border-top:1px solid var(--configBgColor);display:grid;gap:var(--buy-points-gap-md);grid-template-columns:minmax(0,1fr) auto;padding-top:var(--buy-points-gap-md)}.buy-points-mobile-card-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--buy-points-gap-sm)}.buy-points-mobile-card-field--price[_ngcontent-%COMP%]{align-items:flex-end;text-align:right}
1.buy-points-mobile-card-field--bundle[_ngcontent-%COMP%]   .buy-points-bundle-value[_ngcontent-%COMP%], .buy-points-mobile-card-field--price[_ngcontent-%COMP%]   .buy-points-price-value[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.buy-points-mobile-card-label[_ngcontent-%COMP%]{color:var(--text-color)!important;opacity:.7}.buy-points-actions[_ngcontent-%COMP%]{align-items:center;display:flex;gap:var(--buy-points-gap-sm)}@media (max-width: 992px){.buy-points-table[_ngcontent-%COMP%]{background-color:transparent;border-radius:0;padding:0}.buy-points-actions[_ngcontent-%COMP%]{flex-wrap:wrap}}  .theme-whiteLabel .buy-points-bonus{background:var(--configThemeColor)!important}[_nghost-%COMP%]     .buy-points-toggle-enable .toggle-enable-container{align-items:center;display:flex}[_nghost-%COMP%]     .btn-discard .btn-text{color:var(--alt-text-color)!important}@media (max-width: 992px){[_nghost-%COMP%]     .btn-discard .btn-text{color:var(--configBgTextColor)!important}}"]}),i})();const vo={TITLE:"Groups",HINT:"This feature allow you create micro-communities inside your platform, by assigning your fans to Groups. You add specific Fans to Groups inside Insights & Fans > Fan Relationship Management. Once a Fan is inside a Group, certain Content can be restricted to just members of a Group when you post in your Feed. You can also restrict various monetization options including Experiences, Courses, Merchandise, VIP Offers, Portfolios, to Groups as well. Finally, Chat Room and Direct Messaging can be resorted to Groups using the sub-settings below.",RESTRICT_CHAT_ROOM_POST_VISIBILITY:"Chat Room posts visibility is restricted to those in the same Group",RESTRICT_DIRECT_MESSAGE_ABILITY:"Direct Messages can only be exchanged by those in the same Group",SUCCESS_MSG:"Groups Setting Updated Successfully.",CHAT_ROOM_HINT:"If enabled, only fans in the same group will see each other's Chat Room posts. If disabled, fans will have the option to create posts in the Chat Room that \u201cEveryone\u201d can see or restrict the post to those in a specific Group that they belong to.",MESSAGE_HINT:"If enabled, only fans in the same Group will be able to direct message each other. If disabled, fans will be able to direct message any other fan and the creator. Note: Fan to Fan direct messaging must be enabled by TopFan Customer Support and this feature is not available for all creator communities.",GROUP_FEATURE_TOGGLE_MSG:"A Group Badge must be active to enable this feature.",CONTACT_ADMIN_MODAL:{HEADER:"User-to-User DMs Not Enabled",BODY:"Contact TopFan Customer Support to enable User-to-User Direct Messages.",CONFIRM_BTN:"Ok"},GROUPS_TABLE:{ADD_NEW_GROUP:"Add New Group",TITLE:"Title",DESCRIPTION:"Description",ACTION:"Action",EDIT:"Edit",DELETE:"Delete",NO_GROUPS_FOUND:"Create your first group to get started.",DELETE_GROUP:"Delete Group",DELETE_GROUP_MSG:"Are you sure you want to delete {{title}} group?"}};let xo=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-groups-settings-skeleton"]],standalone:!0,features:[e.jDz],decls:14,vars:0,consts:[[1,"skeleton-settings-card"],[1,"skeleton-settings-rows"],[1,"skeleton-settings-row"],[1,"skeleton-settings-row-label"],["className","h-16 w-100% r-4 c-post md:w-380"],[1,"skeleton-settings-row-controls"],["className","h-16 w-16 r-50% c-post"],["className","h-24 w-44 r-12 c-post"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"app-skeleton",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"app-skeleton",6)(7,"app-skeleton",7),e.qZA()(),e.TgZ(8,"div",2)(9,"div",3),e._UZ(10,"app-skeleton",4),e.qZA(),e.TgZ(11,"div",5),e._UZ(12,"app-skeleton",6)(13,"app-skeleton",7),e.qZA()()()())},dependencies:[ie._],styles:["[_nghost-%COMP%]{display:block;width:100%;margin-top:15px}.skeleton-settings-card[_ngcontent-%COMP%]{width:100%;padding:15px;display:flex;flex-direction:column;border-radius:12px;background:var(--configSecondaryBgColor)}.skeleton-settings-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px;width:100%}.skeleton-settings-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%}.skeleton-settings-row-label[_ngcontent-%COMP%]{flex:1;min-width:0}.skeleton-settings-row-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-shrink:0}@media (min-width: 993px){[_nghost-%COMP%]{display:flex;justify-content:flex-end}.skeleton-settings-card[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;max-width:100%;align-items:flex-end}.skeleton-settings-rows[_ngcontent-%COMP%], .skeleton-settings-row[_ngcontent-%COMP%]{width:auto}.skeleton-settings-row-label[_ngcontent-%COMP%]{flex:0 0 auto}}"]}),i})();const Vm=["contactAdminModal"],Wm=["deleteModal"];
1function Hm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",15)(1,"a",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.moveToDashboard())}),e.TgZ(2,"em",17),e._uU(3,"\xd7"),e.qZA()(),e._UZ(4,"app-user-image"),e.TgZ(5,"span",18),e._uU(6),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(6),e.Oqu(t.TEXT.TITLE)}}function Qm(i,s){1&i&&(e.ynx(0),e._UZ(1,"app-preference-mobile-header-skeleton")(2,"app-groups-settings-skeleton")(3,"app-topic-tags-skeleton",19),e.BQk()),2&i&&(e.xp6(3),e.Q6J("hideMobileHeader",!0))}function Km(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",39)(1,"div",31)(2,"div",32)(3,"div",40),e._UZ(4,"em",41),e.qZA()(),e.TgZ(5,"div",33)(6,"label"),e._uU(7),e.qZA(),e.TgZ(8,"p"),e._uU(9),e.qZA()(),e.TgZ(10,"div",34)(11,"label"),e._uU(12),e.qZA(),e.TgZ(13,"p"),e._uU(14),e.qZA()(),e.TgZ(15,"div",35)(16,"div",42)(17,"em",43),e.NdJ("click",function(){const a=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.editGroup(a))}),e.qZA(),e.TgZ(18,"em",44),e.NdJ("click",function(o){const r=e.CHM(t).$implicit,l=e.oxw(2);return e.KtG(l.onDeleteClick(r,o))}),e.qZA(),e.TgZ(19,"label",25)(20,"input",45),e.NdJ("change",function(o){const r=e.CHM(t).$implicit,l=e.oxw(2);return e.KtG(l.toggleGroup(r,o))}),e.qZA(),e._UZ(21,"span",27),e.qZA()()()()()}if(2&i){const t=s.$implicit;e.oxw();const n=e.MAs(29),o=e.oxw();e.Q6J("cdkDragData",t)("cdkDragBoundary",n),e.xp6(7),e.Oqu(o.TEXT.GROUPS_TABLE.TITLE),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Oqu(o.TEXT.GROUPS_TABLE.DESCRIPTION),e.xp6(2),e.Oqu(t.description||"-"),e.xp6(3),e.Q6J("title",o.TEXT.GROUPS_TABLE.EDIT),e.xp6(1),e.Q6J("title",o.TEXT.GROUPS_TABLE.DELETE),e.xp6(2),e.Q6J("checked",t.status)}}function zm(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",20)(1,"div",21)(2,"div",22)(3,"div",23)(4,"span",24),e._uU(5),e.qZA(),e._UZ(6,"app-info-icon",5),e.TgZ(7,"label",25)(8,"input",26),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.restrict_forum_visibility_by_group=o)})("change",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onRestrictionChange())}),e.qZA(),e._UZ(9,"span",27),e.qZA()(),e.TgZ(10,"div",23)(11,"span",24),e._uU(12),e.qZA(),e._UZ(13,"app-info-icon",5),e.TgZ(14,"label",25)(15,"input",26),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.restrict_dm_by_group=o)})("change",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onRestrictDmToggle())}),e.qZA(),e._UZ(16,"span",27),e.qZA()()()(),e.TgZ(17,"div",28)(18,"div",29)(19,"div",30)(20,"div",31),e._UZ(21,"div",32),e.TgZ(22,"div",33),e._uU(23),e.qZA(),e.TgZ(24,"div",34),e._uU(25),e.qZA(),e.TgZ(26,"div",35),e._uU(27),e.qZA()()(),e.TgZ(28,"div",36,37),e.NdJ("cdkDropListDropped",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.drop(o))}),e.YNc(30,Km,22,9,"div",38),e.qZA()()()()}if(2&i){const t=e.oxw();e.xp6(5),e.hij(" ",t.TEXT.RESTRICT_CHAT_ROOM_POST_VISIBILITY," "),e.xp6(1),e.Q6J("message",t.TEXT.CHAT_ROOM_HINT),e.xp6(2),e.Q6J("ngModel",t.restrict_forum_visibility_by_group),e.xp6(4),e.hij(" ",t.TEXT.RESTRICT_DIRECT_MESSAGE_ABILITY," "),e.xp6(1),e.Q6J("message",t.TEXT.MESSAGE_HINT),e.xp6(2),e.Q6J("ngModel",t.restrict_dm_by_group),e.xp6(8),e.hij(" ",t.TEXT.GROUPS_TABLE.TITLE," "),e.xp6(2),e.hij(" ",t.TEXT.GROUPS_TABLE.DESCRIPTION," "),e.xp6(2),e.hij(" ",t.TEXT.GROUPS_TABLE.ACTION," "),e.xp6(1),e.Q6J("cdkDropListData",t.groups),e.xp6(2),e.Q6J("ngForOf",t.groups)}}function $m(i,s){if(1&i&&(e.TgZ(0,"div",46)(1,"div",47)(2,"p",48),e._uU(3),e.qZA()()()),2&i){const t=e.oxw();e.xp6(3),e.hij(" ",t.TEXT.GROUPS_TABLE.NO_GROUPS_FOUND," ")}}const jm=function(){return{class:"groups-badges-contact-modal"}};let Xm=(()=>{const s=class{constructor(n,o,a,r,l){this.store=n,this.router=o,this.headerFooterStateService=a,this.cs=r,this.apiCallService=l,this.ROUTE_PATHS=ne._1,this.TEXT=vo,this.commonEnum=X.i4,this.restrict_dm_by_group=!1,this.restrict_forum_visibility_by_group=!1,this.hasRestrictDmByGroupKey=!1,this.hasRestrictForumVisibilityByGroupKey=!1,this.userProfile=null,this.usersData=null,this.groups=[],this.isLoadingGroups=!0,this.selectedItemDelete=null,this.destroy$=new q.x,this.allowToggleUpdates=!0,this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb})}
1ngOnInit(){this.store.select(y.SJ).pipe((0,v.R)(this.destroy$)).subscribe(n=>{this.userProfile=n}),this.getUsersData(),this.cs.isBrowser&&this.getGroups()}getUsersData(){this.apiCallService.get(`${x.Y9.getUsers}?include_group_features=true`,!1).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{n?.status&&(this.usersData=n.data,this.restrict_dm_by_group=this.usersData?.restrict_dm_by_group??!1,this.restrict_forum_visibility_by_group=this.usersData?.restrict_forum_visibility_by_group??!1,this.hasRestrictDmByGroupKey=Object.prototype.hasOwnProperty.call(this.usersData,"restrict_dm_by_group"))},error:n=>{this.cs.showErrorMessage(n?.message)}})}getGroups(){this.apiCallService.get(x.Y9.groups,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{this.isLoadingGroups=!1,n.data?.length&&(this.groups=n.data||[],this.checkGroupsStatus())},error:n=>{this.isLoadingGroups=!1,this.cs.showErrorMessage(n.message)}})}addNewGroup(){this.router.navigate([ne._1.GROUPS+"/add"])}editGroup(n){this.router.navigate([ne._1.GROUPS+"/edit",n.sk])}onDeleteClick(n,o){o.stopPropagation(),this.selectedItemDelete=n,this.deleteModal?.openModal()}onCancelDeleteModal(){this.deleteModal&&(this.deleteModal.closeModal(),this.selectedItemDelete=null)}deleteGroup(){if(!this.selectedItemDelete)return;const n=this.selectedItemDelete?.sk?.replace("GROUP#","");this.apiCallService.delete(`${x.Y9.groups}/${n}`,!1).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status?(this.cs.showSuccessMessage(a.message),this.groups=this.groups.filter(r=>r.sk!==this.selectedItemDelete?.sk),this.selectedItemDelete=null,this.checkGroupsStatus()):this.cs.showErrorMessage(a.message)},error:a=>{this.cs.showErrorMessage(a.message)}})}checkGroupsStatus(){this.groups?.some(o=>!0===o.status)?this.allowToggleUpdates=!0:(this.restrict_dm_by_group=!1,this.restrict_forum_visibility_by_group=!1,this.allowToggleUpdates=!1)}toggleGroup(n,o){const a=o.target.checked,r=n.sk?.replace("GROUP#","");this.apiCallService.put(`${x.Y9.groups}/${r}`,{status:a},!0).pipe((0,v.R)(this.destroy$)).subscribe({next:g=>{g.status?(n.status=a,this.cs.showSuccessMessage(g.message),this.checkGroupsStatus()):(o.target.checked=!a,this.cs.showErrorMessage(g.message))},error:g=>{o.target.checked=!a,this.cs.showErrorMessage(g.message)}})}drop(n){if((0,we.bA)(this.groups,n.previousIndex,n.currentIndex),n.previousIndex===n.currentIndex)return;const o=this.groups.map((a,r)=>({sk:a.sk,sequence_number:r+1,pk:a.pk}));this.apiCallService.post(`${x.Y9.groupsReorder}`,{groups:o},!1).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{a.status&&(this.groups.forEach((r,l)=>{r.sequence_number=l+1}),this.cs.showSuccessMessage(a.message))},error:a=>{this.cs.showErrorMessage(a.message)}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onRestrictDmToggle(){return!this.allowToggleUpdates&&this.restrict_dm_by_group?(this.cs.showErrorMessage(this.TEXT.GROUP_FEATURE_TOGGLE_MSG),void setTimeout(()=>{this.restrict_dm_by_group=!1})):this.hasRestrictDmByGroupKey?void this.onRestrictionChange():(setTimeout(()=>{this.restrict_dm_by_group=!1}),void this.contactAdminModal.openModal())}onRestrictionChange(){if(!this.allowToggleUpdates&&this.restrict_forum_visibility_by_group)return this.cs.showErrorMessage(this.TEXT.GROUP_FEATURE_TOGGLE_MSG),void setTimeout(()=>{this.restrict_forum_visibility_by_group=!1});this.apiCallService.put(x.Y9.getUsers,{restrict_dm_by_group:this.restrict_dm_by_group,restrict_forum_visibility_by_group:this.restrict_forum_visibility_by_group},!1).pipe((0,v.R)(this.destroy$)).subscribe({next:o=>{o?.status&&this.cs.showSuccessMessage(vo.SUCCESS_MSG)},error:o=>{this.cs.showErrorMessage(o?.message)}})}moveToDashboard(){this.router.navigate([ne._1.DASHBOARD])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(le.yh),e.Y36(O.F0),e.Y36(c.P),e.Y36(A.v),e.Y36(N.F))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-group-badges"]],viewQuery:function(o,a){if(1&o&&(e.Gf(Vm,5),e.Gf(Wm,5)),2&o){let r;e.iGM(r=e.CRH())&&(a.contactAdminModal=r.first),e.iGM(r=e.CRH())&&(a.deleteModal=r.first)}},decls:17,vars:17,consts:[[1,"gamification-container"],["class","inside-header gamification-mobile-header",4,"ngIf"],[1,"gamification-section-header"],[1,"gamification-title-row"],[1,"gamification-title"],[3,"message"],[1,"groups-list-header"],[1,"btn","btn-primary",3,"click"],[4,"ngIf"],["class","groups-list-section",4,"ngIf"],["class","empty-state",4,"ngIf"],[3,"dynamicClass","ConfirmationMessage","headerLabel","commonEnum","confirmDelete","cancelDelete"],["deleteModal",""],[3,"headerLabel","bodyContent","confirmBtnLabel","showCrossBtn","modalOptions"],["contactAdminModal",""],[1,"inside-header","gamification-mobile-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[3,"hideMobileHeader"],[1,"groups-list-section"],[1,"checkbox-settings-card"],[1,"checkbox-settings-card-inner"],[1,"earn-points-settings-card-row"],[1,"earn-points-settings-card-label"],[1,"switch"],["type","checkbox",3,"ngModel","ngModelChange","change"],[1,"slider"],[1,"groups-table-wrapper"],[1,"dataTable","dataTable-count","groups-table"],[1,"dataTable-head"],[1,"dataTable-inner"],[1,"dataTable-col","drag-col"],[1,"dataTable-col","title-col"],[1,"dataTable-col","description-col"],[1,"dataTable-col","action-col"],["cdkDropList","",1,"dataTable-body",3,"cdkDropListData","cdkDropListDropped"],["dropListContainer",""],["cdkDrag","","class","dataTable-row group-row",3,"cdkDragData","cdkDragBoundary",4,"ngFor","ngForOf"],["cdkDrag","",1,"dataTable-row","group-row",3,"cdkDragData","cdkDragBoundary"],["cdkDragHandle","",1,"drag-handle"],[1,"icon-drag"],[1,"group-actions"],[1,"icon-res-editfill","change-pointer",3,"title","click"],[1,"icon-delete-filled","change-pointer",3,"title","click"],["type","checkbox",3,"checked","change"],[1,"empty-state"],[1,"empty-state-content"],[1,"empty-state-text"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0),e.YNc(1,Hm,7,
11,"div",1),e.TgZ(2,"div",2)(3,"div",3)(4,"h2",4),e._uU(5),e.qZA(),e._UZ(6,"app-info-icon",5),e.qZA(),e.TgZ(7,"div",6)(8,"button",7),e.NdJ("click",function(){return a.addNewGroup()}),e._uU(9),e.qZA()()(),e.YNc(10,Qm,4,1,"ng-container",8),e.YNc(11,zm,31,11,"div",9),e.YNc(12,$m,4,1,"div",10),e.qZA(),e.TgZ(13,"app-confirmation-modal",11,12),e.NdJ("confirmDelete",function(){return a.deleteGroup()})("cancelDelete",function(){return a.onCancelDeleteModal()}),e.qZA(),e._UZ(15,"app-alert-modal",13,14)),2&o&&(e.xp6(1),e.Q6J("ngIf",!a.isLoadingGroups),e.xp6(4),e.Oqu(a.TEXT.TITLE),e.xp6(1),e.Q6J("message",a.TEXT.HINT),e.xp6(3),e.hij(" ",a.TEXT.GROUPS_TABLE.ADD_NEW_GROUP," "),e.xp6(1),e.Q6J("ngIf",!a.cs.isBrowser||a.isLoadingGroups),e.xp6(1),e.Q6J("ngIf",!a.isLoadingGroups&&(null==a.groups?null:a.groups.length)),e.xp6(1),e.Q6J("ngIf",!(null!=a.groups&&a.groups.length||a.isLoadingGroups)),e.xp6(1),e.Q6J("dynamicClass","delete-modal portfolio-banner-delete-modal")("ConfirmationMessage",a.TEXT.GROUPS_TABLE.DELETE_GROUP_MSG.replace("{{title}}",null==a.selectedItemDelete?null:a.selectedItemDelete.title))("headerLabel",a.TEXT.GROUPS_TABLE.DELETE_GROUP)("commonEnum",a.commonEnum),e.xp6(2),e.Q6J("headerLabel",a.TEXT.CONTACT_ADMIN_MODAL.HEADER)("bodyContent",a.TEXT.CONTACT_ADMIN_MODAL.BODY)("confirmBtnLabel",a.TEXT.CONTACT_ADMIN_MODAL.CONFIRM_BTN)("showCrossBtn",!0)("modalOptions",e.DdM(16,jm)))},dependencies:[p.sg,p.O5,u.Wl,u.JJ,u.On,ke.e,U.F,ce.l,Me.mh,Fe.Y,we.Wj,we.Zt,we.Bh,pn,xo,pe],styles:['[_nghost-%COMP%]{--border-color: rgba(255, 255, 255, .1)}.gamification-container[_ngcontent-%COMP%]{width:100%}.gamification-mobile-header[_ngcontent-%COMP%]{display:none}.gamification-section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:24px}@media screen and (min-width: 992px){.gamification-section-header[_ngcontent-%COMP%]{margin-top:24px}}.gamification-title[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important;font-size:24px;font-weight:600;line-height:1.2;margin:0}.gamification-title-row[_ngcontent-%COMP%]{align-items:center;display:flex}.gamification-title-row[_ngcontent-%COMP%]   app-info-icon[_ngcontent-%COMP%]{padding-top:3px!important}@media (max-width: 991px){.gamification-mobile-header[_ngcontent-%COMP%]{display:flex}.gamification-title[_ngcontent-%COMP%], .gamification-title-row[_ngcontent-%COMP%]{display:none}.gamification-section-header[_ngcontent-%COMP%]{gap:0;margin-bottom:0;justify-content:flex-end}  .gamification-container .buy-points-page>.inside-header,   .gamification-container .cb-badges-page>.inside-header,   .gamification-container .earn-points-page>.inside-header{display:none}}.checkbox-settings-card[_ngcontent-%COMP%]{width:100%}.checkbox-settings-card[_ngcontent-%COMP%]   .checkbox-settings-card-inner[_ngcontent-%COMP%]{padding:15px;display:flex;flex-direction:column;gap:15px;border-radius:12px;justify-content:flex-end;align-items:flex-end;background:var(--configSecondaryBgColor)!important;color:var(--configPostTextColor)!important;justify-self:flex-end}.checkbox-settings-card[_ngcontent-%COMP%]   .earn-points-settings-card-row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center}@media screen and (max-width: 992px){.checkbox-settings-card[_ngcontent-%COMP%]   .earn-points-settings-card-row[_ngcontent-%COMP%]{font-size:13px}}.checkbox-settings-card[_ngcontent-%COMP%]     .info-icon-toggle{margin-left:0}  .groups-badges-contact-modal .modal-title{text-transform:none!important}.groups-list-section[_ngcontent-%COMP%]{margin-top:15px}.groups-list-section[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.8!important;background:rgba(255,255,255,.02)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:12px!important;pointer-events:none!important;box-sizing:border-box!important}.groups-list-section[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{opacity:.8!important}.groups-list-section[_ngcontent-%COMP%]   .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)!important}.groups-list-section[_ngcontent-%COMP%]   .groups-list-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-bottom:20px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:30px;padding:20px;margin-top:15px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]{background:transparent!important}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:50px 1fr 1fr 200px;gap:15px;padding:0;border-bottom:1px solid rgba(255,255,255,.1);align-items:center}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:var(--configBgTextColor);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.drag-col[_ngcontent-%COMP%]{justify-content:center}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.title-col[_ngcontent-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.description-col[_ngcontent-%COMP%]{text-align:left;justify-content:flex-start}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col.action-col[_ngcontent-%COMP%]{text-align:right;justify-content:flex-end}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]{transition:background-color .2s ease;cursor:default;position:relative}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row.cdk-drag[_ngcontent-%COMP%]{cursor:grab}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row.cdk-drag[_ngcontent-%COMP%]:active{cursor:grabbing}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:50px 1fr 1fr 200px;gap:15px;padding:0;border-bottom:1px solid rgba(255,255,255,.05);align-items:center;min-height:60px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .dataTable-col[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]{justify-content:center;min-width:50px;flex-shrink:0}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:grab;padding:8px;display:flex;align-items:center;justify-content:center;color:var(--configBgTextColor);opacity:.6;transition:opacity .2s ease;user-select:none;-webkit-user-select:none;touch-action:none}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]:hover{opacity:1}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing;opacity:1}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]{font-size:18px;color:var(--configBgTextColor);display:block;pointer-events:none;background:unset!important}@media (max-width: 992px){.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]:before{color:var(--configBgTextColor)!important}}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none;font-size:12px;font-weight:600;color:var(--configBgTextColor);opacity:.7;margin-bottom:5px;text-transform:uppercase}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:var(--configBgTextColor);font-size:14px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]{text-align:left;justify-content:flex-start}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]{justify-content:flex-end;
1gap:15px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:18px;opacity:.7;transition:opacity .2s ease;cursor:pointer}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ngcontent-%COMP%]:hover, .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]:hover{opacity:1}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{position:relative;display:inline-block!important;width:22px;height:14px;flex:none;margin-bottom:0!important}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .slider[_ngcontent-%COMP%]{border-color:#09c6da}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ .slider[_ngcontent-%COMP%]:before{transform:translate(8px,50%)!important;background-color:#09c6da}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:transparent;transition:.4s;border:#9198ab 2px solid;border-radius:34px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:6px;width:6px;left:2px;bottom:50%;border-radius:50%;background-color:#9198ab;transition:.4s;transform:translateY(50%)!important}@media (max-width: 992px){.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]{color:var(--configBgTextColor)!important}}.cdk-drag-preview[_ngcontent-%COMP%]{display:none!important}.empty-state[_ngcontent-%COMP%]{margin-top:16px;display:flex;justify-content:center;align-items:center;padding:60px 48px;background:var(--configSecondaryBgColor);border-radius:32px}.empty-state[_ngcontent-%COMP%]   .empty-state-content[_ngcontent-%COMP%]{text-align:center;width:100%;max-width:600px}.empty-state[_ngcontent-%COMP%]   .empty-state-content[_ngcontent-%COMP%]   .empty-state-text[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:var(--configPostTextColor)!important;margin:0;padding-top:20px}@media screen and (max-width: 992px){.groups-list-section[_ngcontent-%COMP%]   .groups-list-header[_ngcontent-%COMP%]{margin-bottom:18px}.groups-list-section[_ngcontent-%COMP%]   .groups-list-header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:12px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]{padding:12px;overflow-x:visible}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]{min-width:auto}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-head[_ngcontent-%COMP%]{display:none}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]{background:var(--configBgColor);border-radius:16px;padding:12px;border-bottom:none;transition:background-color .2s ease}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;gap:12px;padding:0;border-bottom:none;min-height:auto}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]{grid-column:1;grid-row:1;min-width:auto;padding:6px;display:flex;align-items:center}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{padding:6px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .drag-col[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]   .icon-drag[_ngcontent-%COMP%]{font-size:16px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .title-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);word-break:break-word;white-space:normal;margin:0;width:100%}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]{grid-column:1/-1;grid-row:2;flex-direction:column;align-items:flex-start;width:100%}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;font-size:12px;font-weight:600;color:var(--configBgTextColor);opacity:.7;margin-bottom:5px;text-transform:uppercase}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .description-col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;color:var(--configBgTextColor);word-break:break-word;white-space:normal}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]{grid-column:1/-1;grid-row:3;width:100%;justify-content:flex-end;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]{gap:12px;flex-wrap:wrap;justify-content:flex-end}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-res-editfill[_ng
1content-%COMP%], .groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .icon-delete-filled[_ngcontent-%COMP%]{font-size:18px}.groups-list-section[_ngcontent-%COMP%]   .groups-table-wrapper[_ngcontent-%COMP%]   .groups-table[_ngcontent-%COMP%]   .dataTable-body[_ngcontent-%COMP%]   .group-row[_ngcontent-%COMP%]   .dataTable-inner[_ngcontent-%COMP%]   .action-col[_ngcontent-%COMP%]   .group-actions[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{margin-left:auto}.groups-list-section[_ngcontent-%COMP%]   .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:1!important;background:rgba(255,255,255,.02)!important;border:1px dashed rgba(255,255,255,.1)!important;border-radius:12px!important;padding:12px!important;min-height:60px!important;display:flex!important;align-items:center!important;box-sizing:border-box!important;pointer-events:none!important}.groups-list-section[_ngcontent-%COMP%]   .cdk-drag-preview[_ngcontent-%COMP%]{display:none!important}}  .theme-whiteLabel .switch input:checked~.slider{border-color:var(--configThemeColor)!important}  .theme-whiteLabel .switch input:checked~.slider:before{background-color:var(--configThemeColor)!important}']}),i})();const tf={ADD_NEW_GROUP:"Add New Group",EDIT_GROUP:"Edit Group",CREATE_GROUP:"Create Group",UPDATE_GROUP:"Update Group",EDIT:"Edit"};function nf(i,s){if(1&i&&e._UZ(0,"app-dynamic-form-builder",15),2&i){const t=e.oxw(2);e.Q6J("form",t.form)("fields",t.fields)("isEditMode",t.isEditMode)}}const of=function(i,s,t){return{type:"button",class:"btn btn-primary btn-submit",label:i,disabled:s,loading:t}};
1function af(i,s){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"a",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateBack())}),e.TgZ(3,"em",4),e._uU(4,"\xd7"),e.qZA()(),e._UZ(5,"app-user-image"),e.TgZ(6,"span",5),e._uU(7),e.qZA()(),e.TgZ(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateBack())}),e._UZ(12,"em",10),e.TgZ(13,"span"),e._uU(14),e.qZA()()(),e.TgZ(15,"div",11),e.YNc(16,nf,1,3,"app-dynamic-form-builder",12),e.TgZ(17,"div",13)(18,"app-button",14),e.NdJ("handleButtonClick",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.handleSubmit())}),e.qZA()()()()()()}if(2&i){const t=e.oxw();e.xp6(7),e.Oqu(t.isEditMode?t.TEXT.EDIT:t.TEXT.ADD_NEW_GROUP),e.xp6(7),e.Oqu(t.isEditMode?t.TEXT.EDIT_GROUP:t.TEXT.ADD_NEW_GROUP),e.xp6(2),e.Q6J("ngIf",t.form&&t.fields),e.xp6(2),e.Q6J("btnField",e.kEZ(4,of,t.isEditMode?t.TEXT.UPDATE_GROUP:t.TEXT.CREATE_GROUP,(null==t.form?null:t.form.invalid)||t.isLoading,t.isLoading))}}let Po=(()=>{const s=class{constructor(n,o,a,r,l,g){this.router=n,this.route=o,this.apiCallService=a,this.cs=r,this.headerFooterStateService=l,this.formService=g,this.form=null,this.fields=null,this.TEXT=tf,this.isEditMode=!1,this.groupId=null,this.isLoading=!1,this.destroy$=new q.x}ngOnInit(){this.cs.isBrowser&&(this.headerFooterStateService.updateFooterState({isFooterVisible:!this.cs.isWhiteLabelWeb}),this.route.params.pipe((0,v.R)(this.destroy$)).subscribe(n=>{n.id&&(this.isEditMode=!0,this.groupId=n.id),this.initForm(),this.isEditMode&&this.groupId&&this.loadGroup()}))}initForm(){this.fields=_e()({sections:[{title:"",fields:[{type:M.sf.TEXT,label:"Title",name:"title",placeholder:"Enter Title",class:"col-12",autoComplete:"off",validation:{required:{message:"Title is required"},maxlength:{value:20,message:"Maximum 20 characters allowed"},minlength:{value:2,message:"Minimum 2 characters allowed"}}},{type:M.sf.TEXT_AREA,label:"Optional Description (Not publicly visible)",name:"description",placeholder:"Write Description",class:"col-12",maxlength:500,validation:{maxlength:{value:500,message:"Maximum 500 characters allowed"}}}]}],buttons:[]}),this.form=this.formService.toFormGroup(this.fields)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadGroup(){!this.groupId||!this.form||(this.isLoading=!0,this.apiCallService.get(x.Y9.groups,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:n=>{if(this.isLoading=!1,n.data?.length){const o=n.data.find(a=>a.sk===this.groupId);o?this.form?.patchValue({title:o.title||"",description:o.description||""}):(this.cs.showErrorMessage(n.message),this.navigateBack())}else this.cs.showErrorMessage(n.message),this.navigateBack()},error:n=>{this.isLoading=!1,this.cs.showErrorMessage(n.message),this.navigateBack()}}))}handleSubmit(){if(!this.form||this.form.invalid)return void(this.form&&this.form.markAllAsTouched());const n=this.form.value,o={title:n.title.trim(),description:n.description?.trim()||"",status:!0};if(this.isLoading=!0,this.isEditMode&&this.groupId){const a=this.groupId.replace("GROUP#",""),r=`${x.Y9.groups}/${this.cs.encodeToUTF(a)}`;this.apiCallService.put(r,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:l=>{this.isLoading=!1,l?.data?.group_id?(this.cs.showSuccessMessage(l.message),this.navigateBack()):this.cs.showErrorMessage(l.message)},error:l=>{this.isLoading=!1,this.cs.showErrorMessage(l.message)}})}else this.apiCallService.post(x.Y9.groups,o,!0).pipe((0,v.R)(this.destroy$)).subscribe({next:a=>{this.isLoading=!1,a?.data?.group_id?(this.cs.showSuccessMessage(a.message),this.navigateBack()):this.cs.showErrorMessage(a.message)},error:a=>{this.isLoading=!1,this.cs.showErrorMessage(a.message)}})}navigateBack(){this.router.navigate([ne._1.GROUPS])}};let i=s;return s.\u0275fac=function(o){return new(o||s)(e.Y36(O.F0),e.Y36(O.gz),e.Y36(N.F),e.Y36(A.v),e.Y36(c.P),e.Y36(Ee.D))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-add-edit-group"]],decls:1,vars:1,consts:[["class","inside-container preference-container",4,"ngIf"],[1,"inside-container","preference-container"],[1,"inside-header"],[1,"close-btn",3,"click"],[1,"icon-close"],[1,"mobile-title"],[1,"walletform-container","preference-privacy-container","add-edit-group-container"],[1,"add-edit-group-content"],[1,"navigation-header"],[1,"back-button",3,"click"],[1,"icon-arrow-back"],[1,"form-card"],[3,"form","fields","isEditMode",4,"ngIf"],[1,"form-actions"],[3,"btnField","handleButtonClick"],[3,"form","fields","isEditMode"]],template:function(o,a){1&o&&e.YNc(0,af,19,8,"div",0),2&o&&e.Q6J("ngIf",a.cs.isBrowser)},dependencies:[p.O5,Le.U,ae.r,ce.l],styles:[".add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]{margin:0 auto;padding:10px 0}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]{margin-bottom:20px;
1display:flex;flex-direction:column;gap:16px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:none;border:none;color:var(--configBgTextColor)!important;font-size:24px;cursor:pointer;padding:8px 0;transition:opacity .2s ease}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   .icon-arrow-back[_ngcontent-%COMP%]{font-size:24px;display:flex;align-items:center}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .navigation-header[_ngcontent-%COMP%]   .back-button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]{background:var(--configSecondaryBgColor);border-radius:24px;padding:12px 12px 24px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card{background:transparent;padding:0;margin:0;box-shadow:none}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card h2{display:none}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]     .monetize-card.fb-monetize-card .row{margin:0}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]{margin-top:32px;display:flex;justify-content:flex-start;padding-left:12px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]{min-width:200
1px;padding:14px 32px;font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-radius:12px;transition:opacity .2s ease,transform .2s ease}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]:hover:not(:disabled){opacity:.9;transform:translateY(-1px)}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]   .spinner-border-sm[_ngcontent-%COMP%]{width:16px;height:16px;border-width:2px}@media screen and (max-width: 992px){.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]{padding:16px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]{padding:24px 20px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:20px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-size:13px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:15px;padding:10px 14px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]{margin-top:24px}.add-edit-group-container[_ngcontent-%COMP%]   .add-edit-group-content[_ngcontent-%COMP%]   .form-card[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]   .btn-submit[_ngcontent-%COMP%]{width:100%;min-width:unset}}"]}),i})();const Xe=I.S,sf=[{path:"",component:_l,children:[{path:"",component:wr},{path:"privacy",component:qo},{path:"edit-content",component:Xl},{path:"edit-welcome-message",component:hg,canActivate:[We.n,ve.C],data:{path:Xe.WELCOME_MESSAGE}},{path:"edit-creator",component:gc,canActivate:[We.n,ve.C],data:{path:Xe.CREATOR_TYPES}},{path:"whitelabel",component:Aa,canActivate:[We.n,Be.g,ve.C],data:{tabKey:Ae.eE.WHITE_LABELED_SITE,path:Xe.WHITE_LABELED_SITE}},{path:"outbound-emails",component:rm,canActivate:[We.n,Be.g,ve.C],data:{tabKey:Ae.eE.OUTBOUND_EMAILS,path:Xe.WHITE_LABELED_SITE}},{path:"monetization",component:Pl,canActivate:[We.n,Be.g,ve.C],data:{path:Xe.MONETIZATION,tabKey:Ae.eE.MONETIZE}},{path:"notifications",component:Jl,canActivate:[Be.g],data:{tabKey:Ae.eE.NOTIFICATIONS}},{path:"gamification",component:Dm,canActivate:[ve.C],children:[{path:"",redirectTo:"earn-points",pathMatch:"full"},{path:"buy-points",component:Jm},{path:"earn-points",component:Im},{path:"badges",component:hm,canActivate:[Be.g],data:{tabKey:Ae.eE.BADGES}}]},{path:"groups",component:Xm,canActivate:[ve.C]},{path:"groups/add",component:Po,canActivate:[ve.C]},{path:"groups/edit/:id",component:Po,canActivate:[ve.C]},{path:"connect-nft-wallet",component:ed,canActivate:[ve.C]},{path:"delegation",component:md,canActivate:[We.n,Be.g,ve.C],data:{checkDelegateUser:!0,tabKey:Ae.eE.DELEGATION},children:[{path:"",redirectTo:"delegation-view",pathMatch:"full"},{path:"delegation-view",component:ap},{path:"add-edit-delegate",component:vp},{path:"delegate-details",component:zp}]},{path:"link-in-bio",component:Eg,canActivate:[We.n,Be.g,ve.C],data:{path:Xe.LINK_IN_BIO,tabKey:Ae.eE.LINK_IN_BIO},children:[{path:"",component:co},{path:"preview",component:co},{path:"add-link-in-bio",component:fu}]},{path:"topic-tags",component:Eu,canActivate:[Be.g,ve.C],data:{tabKey:Ae.eE.TOPIC_TAGS}},{path:"topic-tags/add",component:_o,canActivate:[ve.C]},{path:"topic-tags/edit/:id",component:_o,canActivate:[ve.C]}]},{path:"whitelabel-cover-page",loadChildren:()=>Promise.all([d.e(8592),d.e(319)]).then(d.bind(d,60319)).then(i=>
1i.WhitelabelCoverPageModule),canActivate:[ud.a,We.n,Be.g,ve.C],data:{tabKey:Ae.eE.WHITE_LABELED_SITE,path:Xe.WHITE_LABELED_SITE}},{path:"block-users",component:Ec},{path:"basic-seeMore",component:Yn},{path:"following-seeMore",component:Yn},{path:"become-a-creator",component:nd,children:[{path:"",redirectTo:"creator-profile-info",pathMatch:"full"},{path:"creator-profile-info",component:_d.J},{path:"content-creator",component:id.W},{path:"confirm-creator",component:od.s},{path:"verify-identity",component:gd},{path:"**",redirectTo:"creator-profile-info",pathMatch:"full"}]}];let rf=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[O.Bz.forChild(sf),O.Bz]}),i})();var lf=d(30404),cf=d(58670),df=d(90404),pf=d(80164),gf=d(79272);let _f=(()=>{const s=class{};let i=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({providers:[cf.r,p.uU,p.rS],imports:[p.ez,u.u5,u.UX,Je.QG,lf.m,fe.mr,sn.kn,fe.mr,df.kb,Me.J7,rf,rn.A0,k.zk.forRoot(),O.Bz,nn.e4,ae.r,U.F,pf.d,gf.I,U.F,En.Xz,Et.a,Fe.Y,$n.i,Xn.i,pt.hy,nt.w,we._t,no.c,oo.y,io.d,dt.o,ao.M,ht.v,Ct.C,po.P,to,Mn,bt,Dn,Ln,Fn,Rn,eo,mo,Jn,Wn,Hn,pn,ho,bo,fo,kn,xo,pe,cn,qn,xn.C,On]}),i})()},63868:(qe,xe,d)=>{"use strict";d.d(xe,{P:()=>Ge});var p=d(64537),O=d(20092),u=d(88692),N=d(96993),F=d(38023),_=d(13528),x=d(77019),ue=d(66471),A=d(42384),y=d(82954),S=d(25356);const e=["socialLinksModal"];function k(me,Pe){if(1&me){const G=p.EpF();p.TgZ(0,"button",13),p.NdJ("click",function(){p.CHM(G);const I=p.oxw().$implicit,J=p.oxw();return p.KtG(J.removeHandle(I.key))}),p._UZ(1,"em",14),p.qZA()}}function U(me,Pe){if(1&me&&(p.TgZ(0,"p",15),p._uU(1),p.qZA()),2&me){const G=p.oxw().$implicit,R=p.oxw();p.xp6(1),p.hij(" ",R.getPlatformErrorMessage(G.key)," ")}}function Ie(me,Pe){if(1&me&&(p.TgZ(0,"div",5)(1,"div",6)(2,"div",7),p._UZ(3,"em"),p.TgZ(4,"span",8),p._uU(5),p.qZA()(),p.TgZ(6,"div",9),p._UZ(7,"input",10),p.YNc(8,k,2,0,"button",11),p.qZA()(),p.YNc(9,U,2,1,"p",12),p.qZA()),2&me){const G=Pe.$implicit,R=p.oxw();p.xp6(1),p.ekj("is-invalid",R.isPlatformInvalid(G.key)),p.xp6(2),p.Tol(null==G?null:G.icon),p.xp6(2),p.Oqu(G.name),p.xp6(2),p.Q6J("formControlName",G.ke
1y)("placeholder",R.socialMediaLinksModal.labels.placeholder),p.xp6(1),p.Q6J("ngIf",R.hasValue(G.key)),p.xp6(1),p.Q6J("ngIf",R.isPlatformInvalid(G.key))}}const He=function(){return{class:"modal-lg"}};let Ge=(()=>{const Pe=class{constructor(R,I,J){this.fb=R,this.linkInBioDataService=I,this.cs=J,this.isModalOpen=!1,this.standaloneMode=!1,this.initialHandles=[],this.saveChanges=new p.vpe,this.socialLinksModal=null,this.commonEnums=N.i4,this.socialMediaLinksModal=x.M,this.destroy$=new F.x,this.currentSocialHandles=[],this.socialPlatforms=x.G,this.socialLinksForm=this.fb.group({})}ngOnInit(){if(this.cs.isBrowser){if(this.initializeForm(),this.standaloneMode)return void this.patchFormWithSocialHandles(this.initialHandles);this.linkInBioDataService.bioFormChanges$.pipe((0,_.R)(this.destroy$)).subscribe(R=>{R&&(this.bioFormData=R,this.currentSocialHandles=(0,S.w)(R.social_handles||[]),this.patchFormWithSocialHandles(this.currentSocialHandles))})}}initializeForm(){this.socialPlatforms.forEach(R=>{const I="urlPattern"in R&&R.urlPattern?[O.kI.pattern(R.urlPattern)]:[];this.socialLinksForm.addControl(R.key,this.fb.control("",I))})}patchFormWithSocialHandles(R){const I={};this.socialPlatforms.forEach(J=>{const M=R.find(ne=>ne?.platform===J?.key);I[J.key]=M?M.url:""}),this.socialLinksForm.patchValue(I,{emitEvent:!1})}openModal(R){this.standaloneMode&&this.patchFormWithSocialHandles(R??this.initialHandles??[]),this.socialLinksModal?.openModal()}closeModal(){this.socialLinksModal?.closeModal()}onSaveChanges(){if(this.socialLinksForm.invalid){this.socialLinksForm.markAllAsTouched();const I=this.socialPlatforms.find(M=>this.isPlatformInvalid(M.key));return void this.cs.showErrorMessage(I&&"invalidUrlMessage"in I&&I.invalidUrlMessage?I.invalidUrlMessage:this.socialMediaLinksModal.messages.invalidLinkedInUrl)}const R=this.socialPlatforms.map(I=>{const J=this.socialLinksForm.get(I.key)?.value?.trim();return J?{platform:I.key,name:I.name,icon:I.icon,username:J,url:J,previewIcon:I.previewIcon}:null}).filter(I=>null!==I);if(this.saveChanges.emit(R),!this.standaloneMode){const I={...this.bioFormData,social_handles:R};this.linkInBioDataService.updateBioForm(I)}this.closeModal()}removeHandle(R){const I=this.socialLinksForm.get(R);I&&(I.setValue(""),I.markAsDirty(),I.markAsTouched(),this.socialLinksForm.updateValueAndValidity())}hasValue(R){return!!this.socialLinksForm.get(R)?.value?.trim()}isPlatformInvalid(R){const I=this.socialLinksForm.get(R);return!(!I||!I.invalid||!I.dirty&&!I.touched)}getPlatformErrorMessage(R){const I=this.socialPlatforms.find(J=>J.key===R);return I&&"invalidUrlMessage"in I&&I.invalidUrlMessage?I.invalidUrlMessage:this.socialMediaLinksModal.messages.invalidLinkedInUrl}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let me=Pe;return Pe.\u0275fac=function(I){return new(I||Pe)(p.Y36(O.qu),p.Y36(ue.y),p.Y36(A.v))},Pe.\u0275cmp=p.Xpm({type:Pe,selectors:[["app-social-media-links-modal"]],viewQuery:function(I,J){if(1&I&&p.Gf(e,5),2&I){let M;p.iGM(M=p.CRH())&&(J.socialLinksModal=M.first)}},inputs:{isModalOpen:"isModalOpen",standaloneMode:"standaloneMode",initialHandles:"initialHandles"},outputs:{saveChanges:"saveChanges"},standalone:!0,features:[p.jDz],decls:5,vars:9,consts:[[3,"headerLabel","confirmBtnLabel","cancelBtnLabel","showConfirmationBtn","showCrossBtn","modalOptions","confirmed","canceled"],["socialLinksModal",""],[1,"social-links-modal-content"],[3,"formGroup"],["class","social-link-item-wrapper",4,"ngFor","ngForOf"],[1,"social-link-item-wrapper"],[1,"social-link-item"],[1,"platform-info"],[1,"platform-name"],[1,"input-group"],["type","text",1,"form-control",3,"formControlName","placeholder"],["type","button","class","btn btn-clear",3,"click",4,"ngIf"],["class","error-message",4,"ngIf"],["type","button",1,"btn","btn-clear",3,"click"],[1,"icon-liteicon-close"],[1,"error-message"]],template:function(I,J){1&I&&(p.TgZ(0,"app-alert-modal",0,1),p.NdJ("confirmed",function(){return J.onSaveChanges()})("canceled",function(){return J.closeModal()}),p.TgZ(2,"div",2)(3,"form",3),p.YNc(4,Ie,10,9,"div",4),p.qZA()()()),2&I&&(p.Q6J("headerLabel",J.socialMediaLinksModal.labels.header)("confirmBtnLabel",J.socialMediaLinksModal.labels.confirm)("cancelBtnLabel",J.socialMediaLinksModal.labels.cancel)("showConfirmationBtn",!0)("showCrossBtn",!0)("modalOptions",p.DdM(8,He)),p.xp6(3),p.Q6J("formGroup",J.socialLinksForm),p.xp6(1),p.Q6J("ngForOf",J.socialPlatforms))},dependencies:[u.ez,u.sg,u.O5,O.UX,O._Y,O.Fj,O.JJ,O.JL,O.sg,O.u,y.F],styles:[".social-links-modal-content[_ngcontent-%COMP%]   .social-link-item-wrapper[_ngcontent-%COMP%]{margin-bottom:10px}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;border-radius:50px;background:var(--configBgColor);color:var(--configBgTextColor)!important;overflow:hidden}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item.is-invalid[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px var(--configPostTextColor)}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:190px;padding:16px;border-right:2px solid var(--configSecondaryBgColor)}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]   .icon-litetwitter-logo[_ngcontent-%COMP%]{font-size:18px!important}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:24px;width:24px}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]   .platform-name[_ng
1content-%COMP%]{font-size:16px;font-weight:500}@media screen and (max-width: 992px){.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]{width:60px}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .platform-info[_ngcontent-%COMP%]   .platform-name[_ngcontent-%COMP%]{display:none}}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{display:flex;align-items:center;width:75%;gap:10px;position:relative}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{flex-grow:1;border-radius:4px;border:none;background:var(--configBgColor);color:var(--configBgTextColor)!important;padding:12px 34px 12px 12px!important}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]::placeholder{opacity:.7;color:var(--configBgTextColor)!important}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border:none;box-shadow:none}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .btn-clear[_ngcontent-%COMP%]{background:transparent;border:none;padding:0;cursor:pointer;position:absolute;right:10px;z-index:99}.social-links-modal-content[_ngcontent-%COMP%]   .social-link-item[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   .btn-clear[_ngcontent-%COMP%]   .icon-liteicon-close[_ngcontent-%COMP%]:before{color:var(--configBgTextColor)!important}.social-links-modal-content[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin:6px 0 0 16px;color:var(--configPostTextColor);opacity:.8;font-size:12px}"]}),me})()},66471:(qe,xe,d)=>{"use strict";d.d(xe,{y:()=>A});var p=d(54121),O=d(38023),u=d(14581),N=d(42384),F=d(83151),_=d(51927),x=d(13528),ue=d(64537);let A=(()=>{const S=class{constructor(k){this.cs=k,this.bioFormSubject=new p.X({updated_profile_url:"",profile_image_url:"",banner_image_url:"",bio:"",gsi4pk:"",publicly_displayed_name:"",user_name:"",is_creator:!1,social_handles:[],first_name:"",last_name:""}),this.bioFormChanges$=this.bioFormSubject.asObservable(),this.bioItemsSubject=new p.X([]),this.bioItemsChanges$=this.bioItemsSubject.asObservable(),this.linkInBioStatusSubject=new p.X(!0),this.linkInBioStatusChanges$=this.linkInBioStatusSubject.asObservable(),this.linkInBioAppearanceSubject=new p.X(null),this.linkInBioAppearanceChanges$=this.linkInBioAppearanceSubject.asObservable(),this.isMobileViewSubject=new p.X(!1),this.isMobileViewChanges$=this.isMobileViewSubject.asObservable(),this.isLoadingSubject=new p.X(!0),this.isLoading$=this.isLoadingSubject.asObservable(),this.refreshBioDataSubject=ne
1w O.x,this.refreshBioData$=this.refreshBioDataSubject.asObservable(),this.standardColorsUpdatedSubject=new O.x,this.standardColorsUpdated$=this.standardColorsUpdatedSubject.asObservable(),this.defaultCustomColorSubject=new p.X(null),this.defaultCustomColorChanges$=this.defaultCustomColorSubject.asObservable(),this.includeMyReferralLinkSubject=new p.X(!0),this.includeMyReferralLinkChanges$=this.includeMyReferralLinkSubject.asObservable(),this.referralLinkSubject=new p.X(""),this.referralLinkChanges$=this.referralLinkSubject.asObservable(),this.referralShortenUrl="",this.destroy$=new O.x,this.cs.isBrowser&&(0,u.R)(window,"resize").pipe((0,F.b)(100),(0,_.O)(null),(0,x.R)(this.destroy$)).subscribe(()=>this.checkMobileView())}updateBioForm(k){this.bioFormSubject.next(k)}updateLinkInBioStatus(k){this.linkInBioStatusSubject.next(k)}updateLinkInBioAppearance(k){this.linkInBioAppearanceSubject.next(k)}updateBioItems(k){this.bioItemsSubject.next(k)}getBioItems(){return this.bioItemsSubject.getValue()}checkMobileView(){this.cs.isBrowser&&this.isMobileViewSubject.next(window.innerWidth<=992)}setMobileView(k){this.isMobileViewSubject.next(k)}setLoading(k){this.isLoadingSubject.next(k)}refreshBioData(){this.refreshBioDataSubject.next()}notifyStandardColorsUpdated(k){this.standardColorsUpdatedSubject.next(k)}updateDefaultCustomColor(k){this.defaultCustomColorSubject.next(k)}getDefaultCustomColor(){return this.defaultCustomColorSubject.getValue()}setReferralShortenUrl(k){this.referralShortenUrl=k||"",this.includeMyReferralLinkSubject.getValue()&&this.referralLinkSubject.next(this.referralShortenUrl)}setIncludeMyReferralLink(k){this.includeMyReferralLinkSubject.next(k),this.referralLinkSubject.next(k?this.referralShortenUrl:"")}getReferralLink(){return this.referralLinkSubject.getValue()}getReferralShortenUrl(){return this.referralShortenUrl}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};let y=S;return S.\u0275fac=function(U){return new(U||S)(ue.LFG(N.v))},S.\u0275prov=ue.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),y})()}}]);

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.