1(self.webpackChunkwhite_label_dash=self.webpackChunkwhite_label_dash||[]).push([[8792],{5498(j,D,n){"use strict";n.d(D,{u:()=>u});var i=n(4054),t=n(539),s=n(9548),r=n(5261);let u=(()=>{class a{constructor(m,d,A){this.router=m,this.http=d,this.agency=A,this.loggedIn=!1}forgotPassword(m){return this.httpSender.post("oauth/reset-password/request",{email:m})}resetPassword(m,d){return this.httpSender.post("oauth/reset-password/verify",{password:m,token:d})}login(m,d){return this.httpSender.post("oauth/login",{username:m,password:d})}getAuthToken(m){return this.http.get(`${this.agency.agency.server}oauth/login-token`,{params:{token:m}})}register(m,d,A,M,y,C,l){return this.httpSender.post("oauth/register",{name:m,email:d,password:A,phone:M,data:y,captcha_token:C,captcha_version:l})}google(m){let d=new i.Nl;const A=btoa(JSON.stringify(m));return d=d.append("data",A),this.httpSender.get("oauth/social_login",d)}logout(m){m&&this.httpSender.get("oauth/logout").subscribe({next:()=>{},error:M=>{console.error(M)}});const d=localStorage.getItem("language"),A=localStorage.getItem("darkMode");localStorage.clear(),sessionStorage.clear(),this.userService.currentSubscription&&localStorage.setItem("current",this.userService.currentSubscription.uuid),d&&localStorage.setItem("language",d),A&&localStorage.setItem("darkMode",A),this.token=null,this.loggedIn=!1,document.body.scrollTop=document.documentElement.scrollTop=0,this.router.navigateByUrl("/login")}setToken(m){if(m){this.token=m,localStorage.setItem("token",m);try{let d=JSON.parse(atob(m.split(".")[1].split("-").join("+").split("_").join("/")));this.isGoogleAccount=d.sub.startsWith("google-oauth2"),this.accountImg=d.picture,this.name=d.name,this.email=d.email,this.emailVerified=d.email_verified,this.loggedIn=!0}catch{this.logout()}}}static{this.\u0275fac=function(d){return new(d||a)(t.KVO(s.Ix),t.KVO(i.Qq),t.KVO
1(r.z))}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},2101(j,D,n){"use strict";n.d(D,{N:()=>i});var i=function(t){return t[t.GROWTH=1]="GROWTH",t[t.INTERACTIONS=2]="INTERACTIONS",t[t.FOLLOWERS=3]="FOLLOWERS",t}(i||{})},7043(j,D,n){"use strict";n.d(D,{a:()=>i});var i=function(t){return t.WEEK="Last 7 days",t.MONTH="Last 30 days",t.TWO_MONTHS="Last 60 days",t.THREE_MONTHS="Last 90 days",t}(i||{})},5648(j,D,n){"use strict";n.d(D,{$:()=>i});class i{isSuccessfull(){return this.amount/this.goal>.5}constructor(r,u,a){this.date=r,this.goal=u,this.amount=a}}},6784(j,D,n){"use strict";n.d(D,{R:()=>c});var i=n(4054),t=n(539),s=n(5648),r=n(2986),u=n(4652),a=n(7497);let c=(()=>{class d{constructor(M,y,C){this.httpSender=M,this.http=y,this.dateService=C,this.analyticsEmitter=new t.bkB,this.eventsEmitter=new t.bkB,this.statusesEmitter=new t.bkB,this.guaranteedStatusChangeEmitter=new t.bkB,this.day=864e5}getAnalytics(M){let y=localStorage.getItem("testpk"),C=localStorage.getItem("admintoken");if(y&&C){let l=new i.Lr({"Content-Type":"application/json",Accept:"application/json"});return l=l.append("Authorization","Bearer "+C),void this.http.get("https://api.agency.flocksocial.io/api/v2/accounts/"+y+"/guaranteed-growth/summary",{observe:"response",headers:l}).subscribe({next:f=>{const S=f.body.analytics;this.cycleStart=new Date(S.cycle_start),this.cycleEnd=new Date(S.cycle_end),this.cycleGoal=S.cycle_goal,this.cycleAmount=S.cycle,this.weekAmount=S.weekly,this.monthAmount=S.monthly,this.allAmount=S.all_time,this.analyticsEmitter.emit(null)},error:()=>{}})}this.httpSender.get("accounts/"+M.pk+"/guaranteed-growth/summary").subscribe({next:l=>{const f=l.body.analytics;this.cycleStart=new Date(f.cycle_start),this.cycleEnd=new Date(f.cycle_end),this.cycleGoal=f.cycle_goal,this.cycleAmount=f.cycle,this.weekAmount=f.weekly,this.monthAmount=f.monthly,this.allAmount=f.all_time,this.calcOffTime(),this.analyticsEmitter.emit(null)},error:()=>{}})}getEvents(M){if(!M.hasFeature(r.W.FOLLOWER_BURST.id))return;let y=localStorage.getItem("testpk"),C=localStorage.getItem("admintoken");if(y&&C){let l=new i.Lr({"Content-Type":"application/json",Accept:"application/json"});return l=l.append("Authorization","Bearer "+C),void this.http.get("https://api.agency.flocksocial.io/api/v2/accounts/"+y+"/guaranteed-growth/events",{observe:"response",headers:l}).subscribe({next:f=>{const S=f.body.events;this.bursts=[];for(let x of S){const w=new Date(x.date);this.bursts.push(new s.$(w,x.estimate,x.gained))}this.eventsEmitter.emit(null)},error:()=>{}})}this.httpSender.get("accounts/"+M.pk+"/guaranteed-growth/events").subscribe({next:l=>{const f=l.body.events;this.bursts=[];for(let S of f){const x=new Date(S.date);this.bursts.push(new s.$(x,S.estimate,S.gained))}this.eventsEmitter.emit(null)},error:()=>{}})}getStatusHistory(M){this.httpSender.get("accounts/"+M.pk+"/guaranteed-growth/status-history").subscribe({next:y=>{this.statuses=[];const C=y.body.statuses;for(let l of C)this.statuses.push(new m(l.account_status,l.timestamp));this.calcOffTime()},error:()=>{}})}getGuaranteed(M){return this.httpSender.get("accounts/"+M.pk+"/guaranteed-growth")}getGuaranteedProgress(M,y){const C=new Date;C.setHours(0,0,0,0);const l=new Date(C);l.setDate(C.getDate()-60);const f=l.getTime();let S=`accounts/${M.pk}/guaranteed-growth/progress?from=${f}&to=${C.getTime()}`;return y&&(S+=`&events=${y}`),this.httpSender.get(S)}getOrders(M,y){let C=this.dateService.getFromDate(y);return this.httpSender.get("accounts/"+M.pk+"/guaranteed-growth/orders?from="+C.getTime()+"&to="+(Date.now()+864e5))}setGuaranteed(M,y){return this.httpSender.patch("accounts/"+M.pk+"/guaranteed-growth",{active:y})}calcOffTime(){if(!this.cycleStart||!this.statuses)return;let M;this.offTime=0,this.statuses.sort((l,f)=>l.timestamp>f.timestamp?1:-1);const y=this.cycleStart.getTime(),C=this.cycleEnd.getTime();for(let l of this.statuses)if(l.timestamp<y)M=l;else if(l.timestamp<C)M&&!M.enabled?this.offTime+=l.timestamp-Math.max(y,M.timestamp):M||(this.offTime+=l.timestamp-y),M=l;else if(l.timestamp>=C)return void(M&&!M.enabled&&(this.offTime+=C-M.timestamp));M&&!M.enabled&&(this.offTime+=Math.min((new Date).getTime(),C)-M.timestamp)}formatTimestamp(M){const S=Math.floor(M/864e5);M-=864e5*S;const x=Math.floor(M/36e5);M-=36e5*x;const w=Math.floor(M/6e4);M-=6e4*w;const k=Math.floor(M/1e3);return S+" days "+x+" hours "+w+" minutes "+k+" seconds "+(M-=1e3*k)+" mills"}static{this.\u0275fac=function(y){return new(y||d)(t.KVO(u.t),t.KVO
1(i.Qq),t.KVO(a.k))}}static{this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})();class m{constructor(A,M){this.enabled=A,this.timestamp=M}}},7129(j,D,n){"use strict";n.d(D,{i:()=>c});var i=n(559),t=n(74),s=n(539),r=n(5261),u=n(6784),a=n(8836);let c=(()=>{class m{constructor(A,M){this.agency=A,this.service=M,this.faUser=i.X46}ngOnInit(){null==this.service.cycleGoal?this.service.analyticsEmitter.subscribe({next:()=>{this.initValues()}}):this.initValues()}initValues(){this.goalAmount=this.service.cycleGoal,this.currentAmount=this.service.cycleAmount,this.animateAmount()}animateAmount(){if(!this.goalAmount||!this.currentAmount)return;const A=this.currentAmount;this.currentAmount=0;const M=Math.round(this.goalAmount/100);this.interval=setInterval(()=>{this.currentAmount+=M,this.currentAmount>=A&&(this.currentAmount=A,clearInterval(this.interval))},10)}ngOnDestroy(){clearInterval(this.interval)}getProgress(){return this.goalAmount?Math.min(100*this.currentAmount/this.goalAmount,100):0}getClipPath(){return"inset(0 0 50% 0)"}getTransform(){let A=1.8*this.getProgress();return A-=180,"rotate("+A+"deg)"}getBackground(){return"conic-gradient(from "+(360-1.8*this.getProgress())+"deg, "+this.agency.agency.growthColor1+" 90deg,"+this.agency.agency.growthColor2+" 270deg)"}getBallTransform(){let A=1.8*this.getProgress();return A=180+A-180,"rotate("+A+"deg)"}getBallBackground(){return"conic-gradient(from "+(180-1.8*this.getProgress())+"deg, "+this.agency.agency.growthColor1+" 90deg,"+this.agency.agency.growthColor2+" 270deg)"}isMobile(){return window.innerWidth<900}getFormattedCurrentAmount(){return t.D.formatIgStatNumber(this.currentAmount+"")}static{this.\u0275fac=function(M){return new(M||m)(s.rXU(r.z),s.rXU(u.R))}}static{this.\u0275cmp=s.VBU({type:m,selectors:[["app-half-circle-progress"]],standalone:!1,decls:11,vars:14,consts:[[1,"progress"],[1,"bkg-3","bkg-circle"],[1,"progress-line","bkg-blue","fill-bkg-3"],[1,"inner-circle","bkg-1"],[1,"ball"],[1,"info"],[1,"h-box","f-size-36","f-bold","color-text-1"],[1,"icon",3,"icon"],[1,"f-size-14","f-medium","color-text-3"]],template:function(M,y){1&M&&(s.j41(0,"div",0),s.nrm(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),s.j41(5,"div",5)(6,"div",6),s.nrm(7,"fa-icon",7),s.EFF(8),s.k0s(),s.j41(9,"div",8),s.EFF(10),s.k0s()()()),2&M&&(s.R7$(2),s.xc7("clip-path",y.getClipPath())("transform",y.getTransform())("background",y.getBackground()),s.R7$(2),s.xc7("transform",y.getBallTransform())("background",y.getBallBackground()),s.R7$(3),s.Y8G("icon",y.faUser),s.R7$(),s.SpI(" ",y.getFormattedCurrentAmount()," "),s.R7$(2),s.Lme(" ",y.currentAmount," / ",y.goalAmount," "))},dependencies:[a.aY],styles:[".progress[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;overflow:hidden}.bkg-circle[_ngcontent-%COMP%]{width:100%;height:200%;border-radius:50%}.progress-line[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:200%;border-radius:50%;transform:rotate(-180deg)}.ball[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:200%;border-radius:50%;clip-path:circle(16px at 16px 50%);background:#06f}.inner-circle[_ngcontent-%COMP%]{position:absolute;left:32px;top:32px;width:calc(100% - 64px);height:calc(200% - 64px);border-radius:50%}.icon[_ngcontent-%COMP%]{margin-right:8px}.info[_ngcontent-%COMP%]{position:absolute;bottom:15px;left:50%;transform:translate(-50%);display:flex;flex-flow:column;justify-content:center;text-align:center}.info[_ngcontent-%COMP%] .v-box[_ngcontent-%COMP%]{margin-bottom:4px}"]})}}return m})()},6888(j,D,n){"use strict";n.d(D,{X:()=>u});var i=n(1155),t=n(539),s=n(9548),r=n(8839);let u=(()=>{class a{constructor(m,d){this.router=m,this.location=d,this.targetFollowbacks=!1,this.archiveDialog=!1}showTargetFollowbacks(m){this.selectedTarget=m,this.targetFollowbacks=!0,this.mixpanelEvent("target_view_open",{target_pk:m.pk})}hideTargetFollowbacks(){this.targetFollowbacks=!1}showArchiveDialog(m){this.selectedTarget=m,this.archiveDialog=!0}hideArchiveDialog(){this.archiveDialog=!1}showAddPhone(){this.addPhone=!0}hideAddPhone(){this.addPhone=!1}mixpanelEvent(m,d){i.A.__loaded&&i.A.track(m,d)}static{this.\u0275fac=function(d){return new(d||a)(t.KVO(s.Ix),t.KVO(r.Vw))}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},6095(j,D,n){"use strict";n.d(D,{D:()=>r});var i=n(539),t=n(5515),s=n(4652);let r=(()=>{class u{constructor(c){this.httpSender=c,this.onChange=new i.bkB}getAmDM(){this.httpSender.get("customer/communication").subscribe({next:c=>{this.amAutofollow=c.body.communication.account_manager_dm,this.onChange.emit()},error:()=>{}})}getAmInfo(){this.httpSender.get("customer/account-manager").subscribe({next:c=>{const m=c.body.account_manager;m&&(this.amName="@"+m.username,this.amImg=t.b.cndImagePrefix+m.pk+".jpg")},error:()=>{}})}updateAmDM(){return this.httpSender.patch("customer/communication",{account_manager_dm:this.amAutofollow})}static{this.\u0275fac=function(m){return new(m||u)(i.KVO(s.t))}}static{this.\u0275prov=i.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},4652(j,D,n){"use strict";n.d(D,{t:()=>y});var i=n(4054),t=n(5312),s=n(1318),r=n(3942),u=n(7919),a=n(1229),c=n(7935),m=n(539),d=n(5498),A=n(9787),M=n(5261);let y=(()=>{class C{constructor(f,S,x,w){this.auth=f,this.http=S,this.cookieService=x,this.agency=w,this.maxPollRetry=60,f.httpSender=this}get(f,S){const x=this.getAuthHearders(),w=performance.now();return this.http.get(this.agency.agency.server+f,{observe:"response",headers:x,params:S}).pipe((0,s.W)(k=>(k.duration=Math.round(performance.now()-w),401===k.status&&(console.error(k),this.auth.logout()),(0,u.$)(()=>k))))}put(f,S){const x=this.getAuthHearders(),w=performance.now();return this.http.put(this.agency.agency.server+f,S,{observe:"response",headers:x}).pipe((0,s.W)(k=>(k.duration=Math.round(performance.now()-w),401==k.status&&this.auth.logout(),(0,u.$)(k))))}delete(f,S){const x=this.getAuthHearders(),w=performance.now();return this.http.delete(this.agency.agency.server+f,{observe:"response",headers:x,params:S}).pipe((0,s.W)(k=>(k.duration=Math.round(performance.now()-w),401==k.status&&this.auth.logout(),(0,u.$)(k))))}post(f,S){let x=this.getAuthHearders();const w=performance.now();let k=this.agency.agency.server;return this.isLoginTest()&&f.includes("/login")&&!f.includes("oauth")&&(console.log("post login test "+f),k="https://test-rfq.ngrok.app/api/v2/",x=x.set("Authorization","Bearer wdQ6JfYF7RUmrp35YvB97svRzKsTj8QSdNQBw6YD7cUs2FQAv66SWscb3TPUFtV7")),this.http.post(k+f,S,{observe:"response",headers:x}).pipe((0,s.W)(U=>(U.duration=Math.round(performance.now()-w),(0,u.$)(U))))}patch(f,S){const x=this.getAuthHearders(),w=performance.now();return this.http.patch(this.agency.agency.server+f,S,{observe:"response",headers:x}).pipe((0,s.W)(k=>(k.duration=Math.round(performance.now()-w),401===k.status&&this.auth.logout(),(0,u.$)(k))))}postAsync(f,S){if(console.log("postAsync",f,S),this.isLoginTest()&&f.includes("/login"))return console.log("postAsync login test"),this.post(f.replace("/async",""),S);const x=performance.now();return new r.c(w=>{this.post(f,S).subscribe({next:k=>{this.poll(k.body.id,f).subscribe({next:N=>{w.next(N)},error:N=>{N.duration=Math.round(performance.now()-x),w.error(N)}})},error:k=>{const U=f.replace(/accounts\/\d+/,"accounts/{pk}");c.v4(N=>{N.setExtra("path",f),N.setExtra("json",JSON.stringify(k)),N.setExtra("request_body",JSON.stringify(S)),a.wd("Failed to call async "+U)}),w.error(new Error("Failed to call async "+f))}})})}poll(f,S){return new r.c(x=>{const w=k=>{this.pollResponse(f).subscribe({next:U=>{if(0===k)return x.error(new Error("Polling max retry"));if("pending"===U.body.status)return w(k--);if("failed"===U.body.status)return x.error(new Error("Polling failed"));if("completed"===U.body.status){if(U.body.status_code>=200&&U.body.status_code<300){const B=new i.cS({body:U.body.body,headers:U.headers,status:U.body.status_code,statusText:"OK"});return x.next(B)}const N=new i.yz({error:U.body.body,status:U.body.status_code,url:this.agency.agency.server+S});return x.error(N)}},error:U=>{if(c.v4(N=>{N.setExtra("poll_id",f),N.setExtra("path",S),N.setExtra("retry",k),N.setExtra("error",JSON.stringify(U)),a.wd("Failed to call poll")}
1),1===k)return x.error(new Error("Polling max retry"));setTimeout(()=>{w(k-1)},2e3)}})};w(this.maxPollRetry)})}pollResponse(f){return this.get("polling/"+f)}getAuthHearders(){let f=null;f=t.c.production?this.cookieService.get("x-tapfilliate-token"):"fe3f8870-7124-11eb-a262-1f3ef05a16e3";let S=new i.Lr({"Content-Type":"application/json",Accept:"application/json"});return this.auth.token&&(S=S.append("Authorization","Bearer "+this.auth.token)),f&&(S=S.append("x-tapfilliate-token",f)),S}isLoginTest(){return localStorage.getItem("login-test")}static{this.\u0275fac=function(S){return new(S||C)(m.KVO(d.u),m.KVO(i.Qq),m.KVO(A.O1),m.KVO(M.z))}}static{this.\u0275prov=m.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},826(j,D,n){"use strict";n.d(D,{M:()=>t});var i=n(539);let t=(()=>{class s{constructor(){this.waiters={}}registerWaiter(u){this.waiters[u]=!0}unregisterWaiter(u){delete this.waiters[u]}loading(){return Object.keys(this.waiters).length>0}static{this.\u0275fac=function(a){return new(a||s)}}static{this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},6487(j,D,n){"use strict";n.d(D,{I:()=>r});var i=n(539);class t{constructor(a,c,m,d,A){this.id="",this.title="",this.body="",this.id=a,this.title=c,this.body=m,this.seen=d,this.timestamp=A}static parseNotification(a){return new t(a.id,a.title,a.body,a.seen,1e3*a.created_at)}}var s=n(4652);let r=(()=>{class u{constructor(c){this.http=c,this.notificationsEmitter=new i.bkB,this.notifications=[],this.lastNotifications=[]}getNotifications(){this.http.get("notifications").subscribe({next:c=>this.getNotificationsCallback(c),error:()=>{}})}getNotificationsCallback(c){this.notifications=[];let m=c.body.notifications;for(let d of m)this.notifications.push(t.parseNotification(d));this.notificationsEmitter.emit(null)}getNewNotifications(){this.http.get("notifications?limit=5").subscribe({next:c=>this.getNewNotificationsCallback(c),error:()=>{}})}getNewNotificationsCallback(c){this.lastNotifications=[];let m=c.body.notifications;for(let d of m)this.lastNotifications.push(t.parseNotification(d))}sortNotifications(){this.notifications.sort((c,m)=>c.timestamp<m.timestamp?1:-1),this.lastNotifications.sort((c,m)=>c.timestamp<m.timestamp?1:-1)}markAsSeen(c,m){this.http.patch("notifications/"+c.id,{}).subscribe({next:()=>{m&&(c.seen=!0)},error:()=>{}})}static{this.\u0275fac=function(m){return new(m||u)(i.KVO(s.t))}}static{this.\u0275prov=i.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},8183(j,D,n){"use strict";n.d(D,{E:()=>L,F6:()=>O,x$:()=>R});var i=n(4054),t=n(539),s=n(7876),r=n(7774),u=n(9822),a=n(1229),c=n(7935),m=n(2986),d=n(1155),A=n(756),M=n(4652),y=n(826),C=n(9548),l=n(325),f=n(2487),S=n(4409),x=n(6095),w=n(5261),k=n(9787),U=n(6435),N=n(9086),B=n(7711);let R=(()=>{class T{constructor(h,v,E,e,p,P,G,K,W,$,X,Y){this.httpSender=h,this.initLoadingService=v,this.router=E,this.translateService=e,this.couponService=p,this.customerService=P,this.managerService=G,this.agency=K,this.cookieService=W,this.paymentVerification=$,this.paymentService=X,this.icpGtmService=Y,this.plansEmitter=new t.bkB,this.audienceStepCompleted=!1,this.subscriptionJustCreated=!1}getPlans(h,v){if(v&&this.initLoadingService.registerWaiter("plans"),this.plansSubscription)return this.plansSubscription;this.planGroups=null;const E=(new i.Nl).set("onboarding","true");return this.plansSubscription=this.httpSender.get("subscriptions/"+h+"/plans",E).subscribe({next:e=>this.getPlansCallback(e),error:e=>this.getPlansCallback(e)}),this.plansSubscription}getPlansCallback(h){this.plansSubscription=null,200===h.status&&(this.planGroups=[],this.planGroups=u.J.parsePlansResponse(h),this.planGroups.forEach(v=>{v.plans.sort((E,e)=>E.price<e.price?1:-1),v.plans.forEach(E=>{this.subscription&&this.subscription.plan_id==E.id&&(this.selectedPlan=E)})}),this.planGroups.sort((v,E)=>u.J.comparePeriod(v,E))),this.initLoadingService.unregisterWaiter("plans")}choosePlan(h,v){return this.httpSender.patch("subscriptions/"+h.uuid,{pricing_id:v.id,plan_id:v.planGroupId})}getAccountCreatable(h){return this.httpSender.get("accounts/"+h)}createDraftSubscription(h){return this.httpSender.post("subscriptions",{account:{pk:h.pk+"",username:h.username,fullname:h.name,profile_pic_url:h.img,is_verified:h.isVerified,social:h.platform}})}createSubscription(h){return this.errorCreatingSubscription=null,this.loadingCreatingSubscription=!0,this.httpSender.post("subscriptions/"+h.uuid,{username:h.username,pk:h.pk,coupon:this.couponService.selectedCoupon}).subscribe({next:v=>this.onCreateSubscriptionCallback(v),error:v=>this.onCreateSubscriptionErrorCallback(v)})}onCreateSubscriptionCallback(h){this.subscriptionJustCreated=!0,this.subscription.status="active",h.body.subscription&&(this.subscription=r.y.parseSubscription(h.body.subscription),this.userService.currentSubscription=this.subscription,this.userService.updateSubscription(this.subscription),this.selectedPlan||(this.selectedPlan=s.c.parsePlanFromSubscription(h.body.subscription))),this.subscription&&this.subscription.uuid&&(this.couponService.migratePendingCoupon(this.subscription.uuid),this.couponService.removeCouponForSubscription(this.subscription.uuid)),this.sendGTMSubscriptionCreatedEvent(this.subscription,"onb_subscription_created"),this.agency.agency.amAutofollow&&(this.managerService.getAmDM(),this.managerService.getAmInfo()),this.userService.getGuaranteed(this.subscription,!1),this.userService.getAccount(this.subscription,!1),this.userService.getPlan(this.subscription),this.mixpanelEvent("billing_finish",{pk:this.userService.currentSubscription.pk,plan_id:this.selectedPlan?.id,subscription_uuid:this.subscription.uuid,is_first_subscription:1===this.userService.subscriptions.length}),this.paymentVerification.showPaymentVerification(this.selectedPlan)?(this.paymentVerification.onPaymentVerified(),this.navigateSuccessTimeout=setTimeout(()=>{this.loadingCreatingSubscription=!1,this.navigateSubscriptionCreated()},5e3)):(this.loadingCreatingSubscription=!1,this.navigateSubscriptionCreated())}onCreateSubscriptionErrorCallback(h){this.loadingCreatingSubscription=!1,console.error(h);let v="Onboarding: Failed to create subscription",E="subscription_creation_failed",e="Unknown error";if(h.error.error&&h.error.error.message){const p=h.error.error.message;this.errorCreatingSubscription=p,e=p,p.includes("we are not able to collect")?(v+=": unable to collect money",E="payment_collection_failed"):"error verifying customer payment source"===p&&(this.errorCreatingSubscription="Your payment method verification has failed. Please try a different payment method.",E="payment_verification_failed")}else this.errorCreatingSubscription=this.translateService.instant("errors.unknow-exception");this.mixpanelEvent("billing_finish_fail",{pk:this.subscription?.pk,plan_id:this.selectedPlan?.id,error:h,error_type:E,error_message:e,flow_type:this.userService.subscriptions.length<=1?"signup_flow":"inapp_flow",subscription_count:this.userService.subscriptions.length,subscription_status:this.subscription?.status,page_url:window.location.href}),c.v4(p=>{p.setTag("pk",this.subscription?.pk||this.selectedAccount?.pk),p.setTag("username",this.subscription?.username||this.selectedAccount?.username),p.setTag("api_error",e),p.setExtra("error",h),p.setExtra("json",JSON.stringify(h)),a.wd(v)})}deleteDraftSubscription(h){return this.httpSender.delete("subscriptions/"+h)}setSubscription(h){this.subscription=h,h&&((0,A.Z)(h),this.planGroups&&this.planGroups.forEach(v=>{v.plans.forEach(E=>{this.subscription.plan_id==E.id&&(this.selectedPlan=E)})}))}isBigScreen(){return window.innerHeight>1e3}getInstagramHealth(){return this.httpSender.get("instagram/health")}sendGTMSubscriptionCreatedEvent(h,v){this.icpGtmService.sendSubscriptionCreatedEvent(h,v,this.selectedPlan)}nextStep(h,v){if(v==L.CHOOSE_PLATFORM)return void this.router.navigateByUrl("/onboarding");if(!h)return;const E="onboarding/subscriptions/"+h.uuid;v==L.CHOOSE_ACCOUNT?this.router.navigateByUrl(this.agency.agency.onboardingPhone&&!this.customerService.ph
1one?E+"/add-phone":h.plan_id?E+"/billing?plan_id="+h.plan_id:E+"/plan"):v==L.ADD_PHONE?this.router.navigateByUrl(h.plan_id?E+"/billing?plan_id="+h.plan_id:E+"/plan"):v==L.CHOOSE_AUDIENCE?(this.audienceStepCompleted=!0,this.navigateSubscriptionCreated()):v==L.CHOOSE_PLAN?this.agency.agency.billingAddress?(this.onboardingStep=L.BILLING_ADDRESS,this.router.navigateByUrl(E+"/billing-address")):this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id):v==L.BILLING_ADDRESS&&(this.agency.agency.hostedPayment?this.paymentService.paymentMethods&&this.paymentService.paymentMethods.length?this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id):this.paymentService.redirectToHostedPayment(window.location.href.replace("/billing-address","/billing?plan_id="+h.plan_id)):this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id))}hasFollowUnfollow(){return this.userService.currentSubscription.hasFeature(m.W.FOLLOW_UNFOLLOW.id)}hasGuaranteedFollowers(h){return h.hasFeature(m.W.GUARANTEED_FOLLOWERS.id)}nextStepAfterAudience(){this.nextStep(this.subscription,L.CHOOSE_AUDIENCE)}navigateSubscriptionCreated(){const h=()=>{this.subscriptionJustCreated=!1};if(this.hasGuaranteedFollowers(this.subscription)&&this.hasFollowUnfollow()&&this.agency.agency.audienceOnboarding)this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/audience`).finally(h);else if(this.agency.agency.onboardingPhoneLastStep&&!this.customerService.phone)this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/add-phone-whatsapp`).finally(h);else if(this.userService.currentSubscription.hasAccount()){let v=`${this.userService.getSubscriptionPath()}/home`;this.hasFollowUnfollow()||(v=`${v}/welcome`),this.router.navigateByUrl(v).finally(h)}else this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/connect-account/add-password`).finally(h)}mixpanelEvent(h,v){d.A.__loaded&&d.A.track(h,v)}static{this.\u0275fac=function(v){return new(v||T)(t.KVO(M.t),t.KVO(y.M),t.KVO(C.Ix),t.KVO(l.c$),t.KVO(f.O),t.KVO(S.m),t.KVO(x.D),t.KVO(w.z),t.KVO(k.O1),t.KVO(U.t),t.KVO(N.h),t.KVO(B.W))}}static{this.\u0275prov=t.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();var L=function(T){return T[T.CHOOSE_PLATFORM=0]="CHOOSE_PLATFORM",T[T.CHOOSE_ACCOUNT=1]="CHOOSE_ACCOUNT",T[T.ADD_PHONE=2]="ADD_PHONE",T[T.CHOOSE_PLAN=3]="CHOOSE_PLAN",T[T.BILLING_ADDRESS=4]="BILLING_ADDRESS",T[T.CHOOSE_PAYMENT=5]="CHOOSE_PAYMENT",T[T.NEW_PAYMENT=6]="NEW_PAYMENT",T[T.CARD_PAYMENT=7]="CARD_PAYMENT",T[T.CHOOSE_AUDIENCE=8]="CHOOSE_AUDIENCE",T[T.CONGRATS=9]="CONGRATS",T}(L||{}),O=function(T){return T[T.INSTAGRAM=1]="INSTAGRAM",T[T.TIKTOK=2]="TIKTOK",T}(O||{})},3389(j,D,n){"use strict";n.d(D,{L:()=>t,d:()=>i});var i=function(s){return s.CONNECT_ACCOUNT="CONNECT_ACCOUNT",s.ADD_TARGETING="ADD_TARGETING",s.SELECT_GROWTH="SELECT_GROWTH",s}(i||{}),t=function(s){return s.YELLOW="color-yellow",s.GREEN="color-green",s.BLUE="color-blue",s}(t||{})},9399(j,D,n){"use strict";n.d(D,{p:()=>c});var i=n(4205),t=n(5797),s=n(8764),r=n(539),u=n(74),a=n(4652);let c=(()=>{class m{constructor(A,M){this.userService=A,this.httpSender=M,this.tourCompleted=new i.B,this.tourCompleted$=this.tourCompleted.asObservable(),this.showTour=new t.t(!0),this.showTour$=this.showTour.asObservable(),this.TOUR_STORAGE_KEY="onboardingTourProgress"}setTourCompleted(A){const M=this.userService.currentSubscription.uuid,y=localStorage.getItem(this.TOUR_STORAGE_KEY),C=y?JSON.parse(y):{};C[M]={...C[M]||{},[A]:!0},localStorage.setItem(this.TOUR_STORAGE_KEY,JSON.stringify(C)),this.tourCompleted.next(A)}isStepCompleted(A){return!0===this.getTourProgress()[A]}resetTourProgress(){const A=this.userService.currentSubscription.uuid,M=localStorage.getItem(this.TOUR_STORAGE_KEY),y=M?JSON.parse(M):{};delete y[A],localStorage.setItem(this.TOUR_STORAGE_KEY,JSON.stringify(y))}completeOnboardingTour(){return this.httpSender.patch(`subscriptions/${this.userService.currentSubscription.uuid}/onboarding-tour`,{show_onboarding_tour:!1}).pipe((0,s.M)(()=>{this.showTour.next(!1)}))}checkAllStepsCompleted(A){A.every(y=>y.isCompleted)&&this.showTour.next(!1)}getTourProgress(){const A=this.userService.currentSubscription.uuid,M=localStorage.getItem(this.TOUR_STORAGE_KEY);return(M?JSON.parse(M):{})[A]||{CONNECT_ACCOUNT:!1,ADD_TARGETING:!1,SELECT_GROWTH:!1}}static{this.\u0275fac=function(M){return new(M||m)(r.KVO(u.D),r.KVO(a.t))}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},5280(j,D,n){"use strict";n.d(D,{E:()=>L,F6:()=>O,x$:()=>R});var i=n(4054),t=n(539),s=n(7876),r=n(7774),u=n(9822),a=n(1229),c=n(7935),m=n(2986),d=n(1155),A=n(756),M=n(4652),y=n(826),C=n(9548),l=n(325),f=n(2487),S=n(4409),x=n(6095),w=n(5261),k=n(9787),U=n(6435),N=n(9086),B=n(7711);let R=(()=>{class T{constructor(h,v,E,e,p,P,G,K,W,$,X,Y){this.httpSender=h,this.initLoadingService=v,this.router=E,this.translateService=e,this.couponService=p,this.customerService=P,this.managerService=G,this.agency=K,this.cookieService=W,this.paymentVerification=$,this.paymentService=X,this.icpGtmService=Y,this.plansEmitter=new t.bkB,this.audienceStepCompleted=!1,this.subscriptionJustCreated=!1}getPlans(h,v){if(v&&this.initLoadingService.registerWaiter("plans"),this.plansSubscription)return this.plansSubscription;this.planGroups=null;const E=(new i.Nl).set("onboarding","true");return this.plansSubscription=this.httpSender.get("subscriptions/"+h+"/plans",E).subscribe({next:e=>this.getPlansCallback(e),error:e=>this.getPlansCallback(e)}),this.plansSubscription}getPlansCallback(h){this.plansSubscription=null,200===h.status&&(this.planGroups=[],this.planGroups=u.J.parsePlansResponse(h),this.planGroups.forEach(v=>{v.plans.sort((E,e)=>E.price<e.price?1:-1),v.plans.forEach(E=>{this.subscription&&this.subscription.plan_id==E.id&&(this.selectedPlan=E)})}),this.planGroups.sort((v,E)=>
1u.J.comparePeriod(v,E))),this.initLoadingService.unregisterWaiter("plans")}choosePlan(h,v){return this.httpSender.patch("subscriptions/"+h.uuid,{pricing_id:v.id,plan_id:v.planGroupId})}getAccountCreatable(h){return this.httpSender.get("accounts/"+h)}createDraftSubscription(h){return this.httpSender.post("subscriptions",{account:{pk:h.pk+"",username:h.username,fullname:h.name,profile_pic_url:h.img,is_verified:h.isVerified,social:h.platform}})}createSubscription(h){return this.errorCreatingSubscription=null,this.loadingCreatingSubscription=!0,this.httpSender.post("subscriptions/"+h.uuid,{username:h.username,pk:h.pk,coupon:this.couponService.selectedCoupon}).subscribe({next:v=>this.onCreateSubscriptionCallback(v),error:v=>this.onCreateSubscriptionErrorCallback(v)})}onCreateSubscriptionCallback(h){this.subscriptionJustCreated=!0,this.subscription.status="active",h.body.subscription&&(this.subscription=r.y.parseSubscription(h.body.subscription),this.userService.currentSubscription=this.subscription,this.userService.updateSubscription(this.subscription),this.selectedPlan||(this.selectedPlan=s.c.parsePlanFromSubscription(h.body.subscription))),this.subscription&&this.subscription.uuid&&(this.couponService.migratePendingCoupon(this.subscription.uuid),this.couponService.removeCouponForSubscription(this.subscription.uuid)),this.sendGTMSubscriptionCreatedEvent(this.subscription,"onb_subscription_created"),this.agency.agency.amAutofollow&&(this.managerService.getAmDM(),this.managerService.getAmInfo()),this.userService.getGuaranteed(this.subscription,!1),this.userService.getAccount(this.subscription,!1),this.userService.getPlan(this.subscription),this.mixpanelEvent("billing_finish",{pk:this.userService.currentSubscription.pk,plan_id:this.selectedPlan?.id,subscription_uuid:this.subscription.uuid,is_first_subscription:1===this.userService.subscriptions.length,billing_period:this.selectedPlan?.periodUnit}),this.paymentVerification.showPaymentVerification(this.selectedPlan)?(this.paymentVerification.onPaymentVerified(),this.navigateSuccessTimeout=setTimeout(()=>{this.loadingCreatingSubscription=!1,this.navigateSubscriptionCreated()},5e3)):(this.loadingCreatingSubscription=!1,this.navigateSubscriptionCreated())}onCreateSubscriptionErrorCallback(h){this.loadingCreatingSubscription=!1,console.error(h);let v="Onboarding: Failed to create subscription",E="subscription_creation_failed",e="Unknown error";if(h.error.error&&h.error.error.message){const p=h.error.error.message;this.errorCreatingSubscription=p,e=p,p.includes("we are not able to collect")?(v+=": unable to collect money",E="payment_collection_failed"):"error verifying customer payment source"===p&&(this.errorCreatingSubscription="Your payment method verification has failed. Please try a different payment method.",E="payment_verification_failed")}else this.errorCreatingSubscription=this.translateService.instant("errors.unknow-exception");this.mixpanelEvent("billing_finish_fail",{pk:this.subscription?.pk,plan_id:this.selectedPlan?.id,error:h,error_type:E,error_message:e,flow_type:this.userService.subscriptions.length<=1?"signup_flow":"inapp_flow",subscription_count:this.userService.subscriptions.length,subscription_status:this.subscription?.status,page_url:window.location.href}),c.v4(p=>{p.setTag("pk",this.subscription?.pk||this.selectedAccount?.pk),p.setTag("username",this.subscription?.username||this.selectedAccount?.username),p.setTag("api_error",e),p.setExtra("error",h),p.setExtra("json",JSON.stringify(h)),a.wd(v)})}deleteDraftSubscription(h){return this.httpSender.delete("subscriptions/"+h)}setSubscription(h){this.subscription=h,h&&((0,A.Z)(h),this.planGroups&&this.planGroups.forEach(v=>{v.plans.forEach(E=>{this.subscription.plan_id==E.id&&(this.selectedPlan=E)})}))}isBigScreen(){return window.innerHeight>1e3}getInstagramHealth(){return this.httpSender.get("instagram/health")}sendGTMSubscriptionCreatedEvent(h,v){this.icpGtmService.sendSubscriptionCreatedEvent(h,v,this.selectedPlan)}nextStep(h,v){if(v==L.CHOOSE_PLATFORM)return void this.router.navigateByUrl("/onboarding");if(!h)return;const E="onboarding/subscriptions/"+h.uuid;v==L.CHOOSE_ACCOUNT?this.router.navigateByUrl(this.agency.agency.onboardingPhone&&!this.customerService.ph
1one?E+"/add-phone":h.plan_id?E+"/billing?plan_id="+h.plan_id:E+"/plan"):v==L.ADD_PHONE?this.router.navigateByUrl(h.plan_id?E+"/billing?plan_id="+h.plan_id:E+"/plan"):v==L.CHOOSE_AUDIENCE?this.navigateSubscriptionCreated():v==L.CHOOSE_PLAN?this.agency.agency.billingAddress?(this.onboardingStep=L.BILLING_ADDRESS,this.router.navigateByUrl(E+"/billing-address")):this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id):v==L.BILLING_ADDRESS&&(this.agency.agency.hostedPayment?this.paymentService.paymentMethods&&this.paymentService.paymentMethods.length?this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id):this.paymentService.redirectToHostedPayment(window.location.href.replace("/billing-address","/billing?plan_id="+h.plan_id)):this.router.navigateByUrl(E+"/billing?plan_id="+h.plan_id))}hasFollowUnfollow(){return this.userService.currentSubscription.hasFeature(m.W.FOLLOW_UNFOLLOW.id)}hasGuaranteedFollowers(h){return h.hasFeature(m.W.GUARANTEED_FOLLOWERS.id)}nextStepAfterAudience(){this.nextStep(this.subscription,L.CHOOSE_AUDIENCE)}navigateSubscriptionCreated(){const h=()=>{this.subscriptionJustCreated=!1};if(this.hasGuaranteedFollowers(this.subscription)&&this.hasFollowUnfollow()&&this.agency.agency.audienceOnboarding)this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/audience`).finally(h);else if(this.agency.agency.onboardingPhoneLastStep&&!this.customerService.phone)this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/add-phone-whatsapp`).finally(h);else if(this.userService.currentSubscription.hasAccount()){let v=`${this.userService.getSubscriptionPath()}/home`;this.hasFollowUnfollow()||(v=`${v}/welcome`),this.router.navigateByUrl(v).finally(h)}else this.router.navigateByUrl(`onboarding/subscriptions/${this.subscription.uuid}/connect-account/add-password`).finally(h)}mixpanelEvent(h,v){d.A.__loaded&&d.A.track(h,v)}static{this.\u0275fac=function(v){return new(v||T)(t.KVO(M.t),t.KVO(y.M),t.KVO(C.Ix),t.KVO(l.c$),t.KVO(f.O),t.KVO(S.m),t.KVO(x.D),t.KVO(w.z),t.KVO(k.O1),t.KVO(U.t),t.KVO(N.h),t.KVO(B.W))}}static{this.\u0275prov=t.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();var L=function(T){return T[T.CHOOSE_PLATFORM=0]="CHOOSE_PLATFORM",T[T.CHOOSE_ACCOUNT=1]="CHOOSE_ACCOUNT",T[T.ADD_PHONE=2]="ADD_PHONE",T[T.CHOOSE_PLAN=3]="CHOOSE_PLAN",T[T.BILLING_ADDRESS=4]="BILLING_ADDRESS",T[T.CHOOSE_PAYMENT=5]="CHOOSE_PAYMENT",T[T.NEW_PAYMENT=6]="NEW_PAYMENT",T[T.CARD_PAYMENT=7]="CARD_PAYMENT",T[T.CHOOSE_AUDIENCE=8]="CHOOSE_AUDIENCE",T[T.CONGRATS=9]="CONGRATS",T}(L||{}),O=function(T){return T[T.INSTAGRAM=1]="INSTAGRAM",T[T.TIKTOK=2]="TIKTOK",T}(O||{})},574(j,D,n){"use strict";n.d(D,{PD:()=>s,gD:()=>t,u1:()=>i});var i=function(r){return r.VALID="account_valid",r.NEVER_LOGGED_IN="account_never_logged_in",r.INCORRECT_PASSWORD="account_incorrect_password",r.TWO_FACTOR_REQUIRED="account_two_factor_required",r.DISABLED="account_disabled",r.CHALLENGE_REQUIRED="account_challenge_required",r.LOGGED_OUT="account_logout",r}(i||{});class t{constructor(){this.isVerified=!1}static parseAccount(u){let a=new t;return u.account&&(a.isVerified=u.account.is_verified,a.status=u.account.status,a.username=u.account.username,a.isPrivate=u.account.is_private,a.followers=u.account.followers,a.following=u.account.following,a.media=u.account.media,a.img=u.account.profile_pic_url,a.fullName=u.account.full_name,a.pk=u.account.pk,a.category=u.account.category,a.loginTest=u.account.login_test,a.isProxyEnabled=u.account.nord),u.dynamics&&a.parseDynamic(u.dynamics),u.cooldown&&a.parseCooldown(u.cooldown),u.warmup&&a.parseWarmup(u.warmup),a}parseDynamic(u){const a=u.pattern||{},c=!!a.automatic,m=a.type;this.patternMode=c?s.ALL:"follow"==m?s.FOLLOW:s.UNFOLLOW,u.enabled?c?(this.dynamic=s.ALL,this.currentDynamic="follow"==m?s.FOLLOW:s.UNFOLLOW):"follow"==m?(this.dynamic=s.FOLLOW,this.currentDynamic=s.FOLLOW):(this.dynamic=s.UNFOLLOW,this.currentDynamic=s.UNFOLLOW):(this.dynamic=s.OFF,this.currentDynamic=s.OFF)}parseCooldown(u){u.is_active&&"hard_block"==u.type&&(this.hardBlock=new Date(u.start+u.duration))}parseWarmup(u){this.warmupIsActive=u.is_active,u.end&&(this.warmupEnd=new Date(u.end))}getDynamicJSON(){return this.dynamic==s.ALL?{enabled:!0,pattern:{automatic:!0}}:this.dynamic==s.FOLLOW?{enabled:!0,pattern:{automatic:!1,type:"follow"}}:this.dynamic==s.UNFOLLOW?{enabled:!0,pattern:{automatic:!1,type:"unfollow"}}:this.dynamic==s.OFF?{enabled:!1}:{}}}var s=function(r){return r[r.ALL=1]="ALL",r[r.FOLLOW=2]="FOLLOW",r[r.UNFOLLOW=3]="UNFOLLOW",r[r.OFF=4]="OFF",r}(s||{})},5261(j,D,n){"use strict";n.d(D,{z:()=>h});var i=n(9770),t=n(7401),s=n(3465),r=n(6016);class u{static getAgencies(){let E=[];const e=new r.w("blyts");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/blyts/manager.svg",e.hostnames.push("blyts"),e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="Blyts",e.paypal=!1,e.defaultLanguage=new s.T("Dutch","nl",!1),e.languages=[e.defaultLanguage],e.hasGoogle=!0,e.connectBtnSocialSuffix=!1,e.chartColor1="#1BC1A0",e.chartColor2="#6A34FF",e.stripeCurrency="eur",e.chargebeeCurrency="EUR",e.noCancelFlow=!0,e.hostedPayment=!0,e.billingAddress=!0,e.priceDiscount.year="20% off",E.push(e),e.intercom=!1,e.email="[email protected]",e.managerBtn1.setActionLink("https://blyts.io/help-center"),e.managerBtn2.
1setActionEmail(),e.cancelPredictionBtn.setActionEmail(),e.cancelSubmitBtn2.setActionEmail(),e.cancelSubmitBtn1=null,e.helpBtn.setActionLink("https://blyts.io/help-center");const p=e.clone();return p.server="https://api.blyts.io/api/v1/",p.hostnames=["app.blyts.io"],p.chargebeeKey="live_JAsC4QgpTLrkEiZu7cuG0sBSrZIitcp1w",p.chargebeeSite="blyts",E.push(p),E}}class a{static getAgencies(){let E=[];const e=new r.w("engagement");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("app.engagementboost.dev"),e.brandName="EngagementBoost",e.setImg("settings.svg"),e.managerImg="assets/images/engagement/manager.png",e.setImg("ic_filters.svg"),e.customImages["stat_arrow_green.svg"]="assets/images/engagement/stat_arrow.svg",e.customImages["ic_call.svg"]="assets/images/engagement/schedule_call.svg",e.customImages.ic_manager_mail="assets/images/engagement/ic_mail.svg",e.setImg("ic-hide.svg"),e.setImg("ic-show.svg"),e.reverseWhiteAndBlackList=!0,e.blackX=!0,e.chartColor1="#1B89FF",e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.chargebeeTestKey="test_dVY47ut9QSPyQIeY9SeVYJScdckYIPV1z",e.chargebeeTestSite="engagementboostapp-test",e.preselectedPlan=!0,e.noOnboardingAnimations=!0,e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.fullstoryId="o-1E6HM9-na1",e.disableCoupons(),e.couponsDashboard=!0,e.couponsReactivate=!0,e.couponsChangePlan=!0,e.hasGoogle=!0,e.intercom=!0,e.intercomId="hvvs83af",e.disableRegister=!0,e.email="[email protected]",e.cancelEmail="[email protected]",e.helpBtn.setActionChat(),e.managerBtn1=null,e.cancelSubmitBtn1=null,e.managerBtn2.setActionChat(),e.cancelSubmitBtn2.setActionChat(),e.contactSupportLinkBtn.setActionChat(),e.cancelPredictionBtn.setActionChat(),E.push(e);const p=e.clone();return p.server="https://api.engagementboost.net/api/v1/",p.hostnames=["app.engagementboost.com","app.engagementboost.net"],p.chargebeeKey="live_OcAup2DwKe4GhvSsQvdhzYXcu7S8ec9Te",p.chargebeeSite="engagementboostapp",E.push(p),E}}var c=n(2986);class m{static getAgencies(){let E=[];const e=new r.w("flock");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("flockdev"),e.brandName="Flock",e.managerImg="assets/images/flock/manager.png",e.hasGoogle=!0,e.instagramOnly=!0,e.onboardingLogo=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.paypal=!0,e.applePay=r.H2.NONE,e.guaranteedFollowers=!0,e.amAutofollow=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.CLOSE_FRIENDS.id]=!0,e.intercom=!0,e.intercomId="hvvs83af",e.priceDiscount.year="50% off",e.audienceOnboarding=!0,e.showMonthlyPrice=!0,e.email="[email protected]",e.scheduleCallLink="https://book.flocksocial.com/team/account-manager/strategy-call",e.cancelPredictionBtn.setActionCancel(),e.contactSupportLinkBtn.setActionChat(),e.helpBtn.setActionLink("https://intercom.help/flock-social-knowledge-base/en"),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.showProductTour=!0,e.showOnboardingTour=!0,E.push(e);const p=e.clone();return p.server="https://api.flocksocial.com/api/v1/",p.hostnames=["app.flocksocial.com"],p.chargebeeKey="live_NxX2hoZllEQOXtQUlJVKXR0Hzb2d9IEp",p.chargebeeSite="flocks",p.fullstoryId="o-1E6HM9-na1",E.push(p),E}}class d{static getAgencies(){let E=[];const e=new r.w("jumpgram");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/jumpgram/manager.svg",e.managerName="Jumpgram Team",e.hostnames.push("jumpgram"),e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="Jumpgram",e.preselectedPlan=!0,e.paypal=!1,e.hasGoogle=!0,e.chartColor1="#FF790F",e.chartColor2="#00BBFF",e.chartColor3="#31D09F",e.onboardingLogo=!1,e.intercom=!1,e.email="[email protected]",e.scheduleCallLink="https://jumpgram.co/book-a-call.html",e.helpBtn.setActionLink("https://jumpgram.co/book-a-call.html"),e.managerBtn1.setActionCall("https://jumpgram.co/book-a-call.html"),e.managerBtn2.
1setActionEmail("[email protected]"),e.cancelSubmitBtn1.setActionEmail("[email protected]"),e.cancelSubmitBtn2=null,e.contactSupportLinkBtn.setActionLink("https://jumpgram.co/book-a-call.html"),E.push(e);const p=e.clone();return p.server="https://api.jumpgram.co/api/v1/",p.hostnames=["app.jumpgram.co"],p.chargebeeKey="live_xPsoKGDA8GqcdIplgHCoctxlAgEQjgedX",p.chargebeeSite="jump-gram",E.push(p),E}}class A{static getAgencies(){let E=[];const e=new r.w("kenji");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("dashboard.kenji.ai"),e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.chargebeeTestKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeTestSite="kenji-test",e.brandName="KENJI",e.hasGoogle=!0,e.paypal=!1,e.applePay=r.H2.BRAINTREE,e.hasDarkModeFavicon=!0,e.stripeKey="pk_test_t6WunX3SHkD4jN0eEySciLRn",e.setDarkMode(!0),e.amAutofollow=!0,e.couponsDashboard=!1,e.couponsReactivate=!1,e.audienceOnboarding=!0,e.showMonthlyPrice=!0,e.intercom=!0,e.intercomId="hvvs83af",e.email="[email protected]",e.scheduleCallLink="https://book.kenji.ai/team/account-manager/strategy-call",e.cancelPredictionBtn.setActionCancel(),e.contactSupportLinkBtn.setActionChat(),e.helpBtn.setActionLink("https://intercom.help/kenji-knowledge-base/en"),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.showProductTour=!0,e.showOnboardingTour=!0,e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.features[c.W.CLOSE_FRIENDS.id]=!0,e.priceDiscount.year="50% off",E.push(e);const p=e.clone();return p.server="https://api.kenji.ai/api/v1/",p.hostnames=["dashboard.kenji.ai"],p.chargebeeKey="live_nsJSvDe2cGGF94F36
1BwKgqMPcuHvezShw",p.chargebeeSite="kenji",p.fullstoryId="o-1E6HM9-na1",e.stripeKey="pk_live_3psJHoLIQU1lEmzD11kqct1c",E.push(p),E}}class M{static getAgencies(){let E=[];const e=new r.w("kicksta");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/kicksta/manager.svg",e.managerName="Speak with us",e.hostnames.push("kicksta"),e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="Kicksta",e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.hasGoogle=!0,e.chartColor1="#4ED687",e.chartColor2="#5C94FE",e.chartColor3="#FEC149",e.onboardingLogo=!0,e.onboardingSteps=!0,e.couponsOboarding=!0,e.couponsDashboard=!0,e.couponsReactivate=!0,e.couponsChangePlan=!0,e.audienceOnboarding=!0,e.mixpanelToken="1060bdc9ae7acfca043599ffa950eebb",e.showMonthlyPrice=!0,e.peridSelectorYmode=!0,e.intercom=!0,e.intercomId="hvvs83af",e.email="[email protected]",e.managerBtn1.setActionChat(),e.managerBtn2.setActionEmail(),e.helpBtn.setActionLink("https://intercom.help/kicksta-knowledge-base/en"),e.showChatWithSupport=!0,e.cancelPredictionBtn.setActionCancel(),e.contactSupportLinkBtn.setActionChat(),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.cancelViaSupportChat=!0,e.showProductTour=!0,e.showOnboardingTour=!0,e.audienceQualityPills=!0,e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.CLOSE_FRIENDS.id]=!0,e.priceDiscount.year="40% off",e.setImg("feature_icon.svg"),E.push(e);const p=e.clone();return p.server="https://api.kicksta.co/api/v1/",p.hostnames=["app.kicksta.co"],p.chargebeeKey="live_26XNFXOaicdcPqbZfv2EJSnIjRHyc6vRH",p.chargebeeSite="kicksta",p.stripeKey="pk_live_GQCzxKhKgmnsAsjuyvP0edg9",E.push(p),E}}class y{static getAgencies(){let E=[];const e=new r.w("nitreo");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("app.nitreo.dev"),e.managerImg="assets/images/nitreo/manager.png",e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="live_Rdcd49ycuSuU4QzcuC5AtkQXJeUa9N7co51",e.chargebeeSite="nitreo",e.chargebeeTestKey="test_A2E2pAkdqVPE5qcd8b0zX02X7bXt7tunN",e.chargebeeTestSite="nitreo-test",e.stripeKey="pk_test_t6WunX3SHkD4jN0eEySciLRn",e.brandName="Nitreo",e.hasGoogle=!0,e.paypal=!1,e.amAutofollow=!0,e.applePay=r.H2.BRAINTREE,e.intercom=!0,e.intercomId="hvvs83af",e.audienceOnboarding=!0,e.showMonthlyPrice=!0,e.email="[email protected]",e.scheduleCallLink="https://book.nitreo.com/team/account-manager/strategy-call",e.cancelPredictionBtn.setActionCancel(),e.helpBtn.setActionLink("https://intercom.help/nitreo-knowledge-base/en"),e.contactSupportLinkBtn.setActionChat(),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.showProductTour=!0,e.showOnboardingTour=!0,e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.features[c.W.CLOSE_FRIENDS.id]=!0,e.priceDiscount.year="50% off",E.push(e);const p=e.clone();p.server="https://api.nitreo.com/api/v1/",p.hostnames=["app.nitreo.com"],p.chargebeeKey="live_Rdcd49ycuSuU4QzcuC5AtkQXJeUa9N7co51",p.chargebeeSite="nitreo",p.chargebeeTestKey="test_A2E2pAkdqVPE5qcd8b0zX02X7bXt7tunN",p.chargebeeTestSite="nitreo-test",p.fullstoryId="o-1E6HM9-na1",p.stripeKey="pk_live_3psJHoLIQU1lEmzD11kqct1c",E.push(p);const P=p.clone();return P.server="https://api.nitreo.co/api/v1/",P.hostnames=["app.nitreo.co"],E.push(P),E}}class C{static getAgencies(){let E=[];const e=new r.w("socialbooster");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/socialbooster/manager.svg",e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="SocialBooster",e.hasGoogle=!1,e.paypal=!1,e.onboardingLogo=!0,e.chartColor1="#46D490",e.scheduleCallLink="http://calendly.com/social-boost-launch/trial",E.push(e);const p=e.clone();return p.server="https://api.social-booster.co/api/v1/",p.hostnames=["app.social-booster.co"],p.chargebeeKey="live_WPnAY2ALodwSYrbrhP4dXlyHvWessqvX",p.chargebeeSite="socialbooster",p.fullstoryId="o-1E6HM9-na1",E.push(p),E}}class l{static getAgencies(){let E=[];const e=new r.w("socialfollow");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/socialfollow/manager.svg",e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="SocialFollow",e.hasGoogle=!0,e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.onboardingLogo=!0,e.chartColor1="#8C61F4",e.hasDarkModeFavicon=!0,e.preselectedPlan=!1,e.amAutofollow=!0,e.audienceOnboarding=!0,e.stripeKey="pk_test_t6WunX3SHkD4jN0eEySciLRn",e.chatwootToken="iaAnerkMhfyaVJdDCufocgkj",e.intercom=!1,e.email="[email protected]",e.scheduleCallLink="https://book.socialfollow.co/team/account-manager/strategy-call",e.cancelPredictionBtn.setActionCancel(),e.contactSupportLinkBtn.setActionChat(),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.IG_AUDIT.id]=!1,e.features[c.W.GENDER_FILTERING.id]=!0,e.priceDiscount.year="20% off",E.push(e);const p=e.clone();return p.server="https://api.socialfollow.co/api/v1/",p.hostnames=["app.socialfollow.co"],p.chargebeeKey="live_2CgjDNHeaB7j4duBl8finhxy2aXZoJIk",p.chargebeeSite="socialfollow",p.stripeKey="pk_live_3psJHoLIQU1lEmzD11kqct1c",E.push(p),E}}class f{static getAgencies(){let E=[];const e=new r.w("stim");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("app.stimsocial.dev"),e.managerImg="assets/images/stim/manager.png",e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="StimSocial",e.hasGoogle=!0,e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.amAutofollow=!0,e.audienceOnboarding=!0,e.intercom=!0,e.intercomId="hvvs83af",e.hideCancelPlanChange=!0,e.email="[email protected]",e.scheduleCallLink="https://book.stimsocial.com/team/account-manager/strategy-call",e.cancelPredictionBtn.setActionCancel(),e.helpBtn.setActionLink("https://intercom.help/stimsocial-knowledge-base/en"),e.contactSupportLinkBtn.setActionChat(),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),E.push(e),e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.priceDiscount.year="20% off";const p=e.clone();return p.server="https://api.stimsocial.com/api/v1/",p.hostnames=["app.stimsocial.com"],p.chargebeeKey="live_8u7br65N1h0gGfHenKtsatdcdZIEWdppw",p.chargebeeSite="stimsocial",p.chargebeeTestKe
1y="test_v44k9ccdsrDHGLQs1BLW9lMAMAQNpB7BS",p.chargebeeTestSite="stimsocial-test",p.fullstoryId="o-1E6HM9-na1",E.push(p),E}}class S{static getAgencies(){let E=[];const e=new r.w("upgram");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("upgram"),e.brandName="UpGram",e.setImg("settings.svg"),e.managerImg="assets/images/upgram/manager.png",e.setImg("ic_filters.svg"),e.customImages["stat_arrow_green.svg"]="assets/images/upgram/stat_arrow.svg",e.customImages["ic_call.svg"]="assets/images/upgram/schedule_call.svg",e.customImages.ic_manager_mail="assets/images/upgram/ic_mail.svg",e.setImg("ic-hide.svg"),e.setImg("ic-show.svg"),e.reverseWhiteAndBlackList=!0,e.blackX=!0,e.chartColor1="#0065FF",e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.preselectedPlan=!0,e.noOnboardingAnimations=!0,e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.fullstoryId="o-1E6HM9-na1",e.hasGoogle=!0,e.chatwootToken="q2fcWxpdXR5HvRCe6xxsnxHi",e.disableCoupons(),e.guaranteedFollowers=!1,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!1,e.features[c.W.GENDER_FILTERING.id]=!0,e.email="[email protected]",e.cancelEmail="[email protected]",e.helpBtn.setActionChat(),e.managerBtn1.setActionCall("https://upgram.co/consultation"),e.managerBtn1.setIcon("ic_call.svg"),e.cancelSubmitBtn2.setActionCall(),e.managerBtn2.setActionChat(),e.cancelSubmitBtn1.setActionLink("https://upgram.co/consultation"),e.cancelSubmitBtn2.setActionChat(),e.contactSupportLinkBtn.setActionChat(),e.targetingHelpLinkBtn.setActionLink("https://upgram.co/target-finder"),E.push(e);const p=e.clone();return p.server="https://api.upsocial.co/api/v1/",p.hostnames=["app.upgram.co"],p.chargebeeKey="live_yur6eORbtZbGWSd9WFMHJ14YJdPo4wycd",p.chargebeeSite="upgram",E.push(p),E}}class x{static getAgencies(){let E=[];const e=new r.w("upleap");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("upleapDev"),e.brandName="Upleap",e.hasGoogle=!0,e.instagramOnly=!0,e.onboardingLogo=!0,e.managerImg="assets/images/upleap/manager.svg",e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.chartColor1="#7DD49D",e.chartColor2="#FE5252",e.chartColor3="#FEC149",e.preselectedPlan=!1,e.paypal=!1,e.applePay=r.H2.BRAINTREE,e.stripeKey="pk_test_t6WunX3SHkD4jN0eEySciLRn",e.amAutofollow=!0,e.couponsDashboard=!1,e.couponsReactivate=!0,e.couponsChangePlan=!0,e.intercom=!0,e.intercomId="hvvs83af",e.audienceOnboarding=!0,e.showMonthlyPrice=!0,e.email="[email protected]",e.scheduleCallLink="https://book.upleap.com/team/account-manager/strategy-call",e.helpBtn.setActionLink("https://intercom.help/upleap-knowledge-base/en"),e.cancelPredictionBtn.setActionCancel(),e.contactSupportLinkBtn.setActionChat(),e.cancelSubmitBtn1=null,e.cancelSubmitBtn2.setActionChat(),e.showProductTour=!0,e.showOnboardingTour=!0,e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.IG_AUDIT.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.features[c.W.CLOSE_FRIENDS.id]=!0,e.priceDiscount.year="50% off",E.push(e);const p=e.clone();p.server="https://api.upleap.dev/api/v1/",p.hostnames=["app.upleap.dev"],p.hostnames.push("dev--social-growth.netlify.app"),p.chargebeeSite="upleap-test",p.chargebeeKey="test_W7mcdsJycuJAMAkz2UzYxmc8r6KiT6Oik1",p.intercom=!0,p.intercomId="hvvs83af",E.push(p);const P=e.clone();return P.server="https://api.upleap.com/api/v1/",P.hostnames=["app.upleap.com"],P.chargebeeSite="upleap",P.chargebeeKey="live_N3V6zaF89hblPJ9cdRxSyqu7c4tkPX1hH",P.fullstoryId="o-1E6HM9-na1",P.stripeKey="pk_live_3psJHoLIQU1lEmzD11kqct1c",E.push(P),E}}class w{static getAgencies(){let E=[];const e=new r.w("uprell");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/uprell/manager.svg",e.managerName="UpRell Team",e.hostnames.push("uprell"),e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.brandName="UpRell",e.paypal=!1,e.hasGoogle=!0,e.chartColor1="#233565",e.chartColor2="#6622E8",e.chartColor3="#F6D421",e.onboardingLogo=!1,e.intercom=!1,e.email="[email protected]",e.scheduleCallLink="https://www.uprell.com/contact/",e.managerBtn2.
1setActionEmail(),e.helpBtn.setActionLink("https://www.uprell.com/contact/"),e.cancelPredictionBtn.setActionEmail(),e.contactSupportLinkBtn.setActionLink("https://www.uprell.com/contact/"),e.cancelSubmitBtn2.setActionEmail(),E.push(e);const p=e.clone();return p.server="https://api.uprell.com/api/v1/",p.hostnames=["app.uprell.com"],p.chargebeeKey="live_D30MCpYcuFl9nlRCtVcJnhuQrHv1Egqm0",p.chargebeeSite="uprell",E.push(p),E}}class k{static getAgencies(){let E=[];const e=new r.w("viky");e.server="https://localapi.kenji.ai/api/v1/",e.managerImg="assets/images/viky/manager.jpeg",e.hostnames.push("viky"),e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="live_wNiDP7nsCPmEaIVjcuPMeFzwMBePLDmKX",e.chargebeeSite="vikysocial",e.chargebeeTestKey="test_tEy4cMeO8Bhu1CUythn1iiGUkfGhOTVcu",e.chargebeeTestSite="vikysocial-test",e.chargebeeCurrency="EUR",e.brandName="Viky",e.paypal=!1,e.defaultLanguage=new s.T("Italiano","it",!0),e.languages=[e.defaultLanguage],e.hasTos=!0,e.hasGoogle=!0,e.connectBtnSocialSuffix=!1,E.push(e),e.intercom=!0,e.intercomId="u8t7u4k3",e.email="[email protected]",e.managerBtn1.setActionChat(),e.managerBtn2=null,e.cancelPredictionBtn.setActionEmail(),e.cancelSubmitBtn1.setActionEmail(),e.helpBtn.setActionLink("https://intercom.help/viky-help/it");const p=e.clone();return p.server="https://api.viky.social/api/v1/",p.hostnames=["app.viky.social"],p.chargebeeKey="live_wNiDP7nsCPmEaIVjcuPMeFzwMBePLDmKX",p.chargebeeSite="vikysocial",p.chargebeeTestKey="test_tEy4cMeO8Bhu1CUythn1iiGUkfGhOTVcu",p.chargebeeTestSite="vikysocial-test",p.chargebeeCurrency="EUR",E.push(p),E}}var U=n(9645);n(8214);class B{static getAgencies(){let E=[];const e=new r.w("buzzoid");e.server="https://api.upleap.dev/api/v1/",e.hostnames.push("dash.buzzoid.dev"),e.hostnames.push("upleap.dev"),e.managerImg="assets/images/buzzoid/manager.svg",e.instagramOnly=!0,e.noOnboardingAnimations=!0,e.chargebeeKey="test_W7mcdsJycuJAMAkz2UzYxmc8r6KiT6Oik1",e.chargebeeSite="upleap-test",e.brandName="Buzzoid",e.hasGoogle=!1,e.paypal=!0,e.onboardingPhone=!0,e.intercom=!0,e.intercomId="hvvs83af",e.email="[email protected]",e.managerBtn1=null,e.cancelSubmitBtn1=null,e.guaranteedFollowers=!1,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!0,e.features[c.W.GENDER_FILTERING.id]=!0,e.priceDiscount.year="20% off",E.push(e);const p=e.clone();return p.server="https://api2.buzzoid.com/api/v1/",p.hostnames=["dashboard.buzzoid.com"],p.chargebeeKey="live_R1xD2PrJsx1Y8x3n8PWdCXztcdGyfsKuP",p.chargebeeSite="buzzoid",p.chargebeeTestKey="test_A2E2pAkdqVPE5qcd8b0zX02X7bXt7tunN",p.chargebeeTestSite="buzzoid-test",p.fullstoryId="o-1E6HM9-na1",E.push(p),E}}class R{static getAgencies(){let E=[];const e=new r.w("upsocial");e.server="https://localapi.kenji.ai/api/v1/",e.hostnames.push("upsocial"),e.brandName="UpSocial",e.setImg("settings.svg"),e.managerImg="assets/images/upsocial/manager.png",e.setImg("ic_filters.svg"),e.customImages["stat_arrow_green.svg"]="assets/images/upsocial/stat_arrow.svg",e.customImages["ic_call.svg"]="assets/images/upsocial/schedule_call.svg",e.customImages.ic_manager_mail="assets/images/upsocial/ic_mail.svg",e.setImg("ic-hide.svg"),e.setImg("ic-show.svg"),e.reverseWhiteAndBlackList=!0,e.blackX=!0,e.chartColor1="#0065FF",e.instagramOnly=!0,e.chargebeeKey="test_7H9S5rtcibrKq4Cbl7UJsCd7DNU5v2uU",e.chargebeeSite="kenji-test",e.preselectedPlan=!0,e.noOnboardingAnimations=!0,e.paypal=!0,e.applePay=r.H2.BRAINTREE,e.fullstoryId="o-1E6HM9-na1",e.hasGoogle=!0,e.intercom=!0,e.intercomId="hvvs83af",e.disableRegister=!0,e.disableCoupons(),e.guaranteedFollowers=!0,e.features[c.W.LOCATION_TARGETING.id]=!0,e.features[c.W.LIKE_AFTER_FOLLOW.id]=!0,e.features[c.W.WELCOM_DM.id]=!0,e.features[c.W.STORY_LIKING.id]=!1,e.features[c.W.GENDER_FILTERING.id]=!0,e.email="[email protected]",e.cancelEmail="[email protected]",e.helpBtn.setActionChat(),e.managerBtn1=null,e.cancelSubmitBtn2.setActionCall(),e.managerBtn2.setActionChat(),e.cancelSubmitBtn1.setActionLink("https://upsocial.co/consultation"),e.cancelSubmitBtn2.setActionChat(),e.contactSupportLinkBtn.setActionChat(),e.targetingHelpLinkBtn.setActionLink("https://upsocial.co/target-finder"),E.push(e);const p=e.clone();return p.server="https://api.upsocial.co/api/v1/",p.hostnames=["app.upsocial.co"],p.chargebeeKey="live_yur6eORbtZbGWSd9WFMHJ14YJdPo4wycd",p.chargebeeSite="upgram",E.push(p),E}}var L=n(1155),O=n(5312),T=n(539),I=n(2416);let h=(()=>{class v{constructor(e,p){this.document=e,this.intercomService=p,this.agencies=[],this.imgFolder="default",this.initAgencies();let P=window.location.hostname;this.agency=x.getAgencies()[1];let G=localStorage.getItem("test-agency");for(let W of this.agencies)G==W.name&&"https://localapi.kenji.ai/api/v1/"==W.server&&(this.agency=W),G==W.name&&W.server.startsWith("http://10.0.21.")&&(this.agency=W);for(let W of this.agencies)for(let $=0;$<W.hostnames.length;$++)P==W.hostnames[$]&&(this.agency=W);this.name=this.agency.name;let K=localStorage.getItem("darkMode");if(K&&this.agency.setDarkMode("disabled"!=K),this.agency.intercom&&this.agency.intercomId&&this.intercomService.setIntercomId(this.agency.intercomId),this.agency.intercomService=this.intercomService,this.intercomService.brand=this.name,"en"!=this.agency.defaultLanguage.code){const W=this.agency.defaultLanguage.code;n(5359)(`./${W}`),U.locale(W)}"chargebee"==localStorage.getItem("applePayTest")&&(this.agency.applePay=r.H2.CHARGEBEE),this.loadChatwoot(),this.initMixpanel()}
1initAgencies(){a.getAgencies().forEach(p=>this.agencies.push(p)),w.getAgencies().forEach(p=>this.agencies.push(p)),m.getAgencies().forEach(p=>this.agencies.push(p)),d.getAgencies().forEach(p=>this.agencies.push(p)),A.getAgencies().forEach(p=>this.agencies.push(p)),y.getAgencies().forEach(p=>this.agencies.push(p)),f.getAgencies().forEach(p=>this.agencies.push(p)),k.getAgencies().forEach(p=>this.agencies.push(p)),x.getAgencies().forEach(p=>this.agencies.push(p)),C.getAgencies().forEach(p=>this.agencies.push(p)),l.getAgencies().forEach(p=>this.agencies.push(p)),M.getAgencies().forEach(p=>this.agencies.push(p)),S.getAgencies().forEach(p=>this.agencies.push(p)),R.getAgencies().forEach(p=>this.agencies.push(p)),u.getAgencies().forEach(p=>this.agencies.push(p)),B.getAgencies().forEach(p=>this.agencies.push(p));const e=new r.w("tokker");e.hostnames.push("tokker"),e.server="https://localapi.kenji.ai/api/v1/",e.brandName="Tokker",e.intercom=!0,this.agencies.push(e);for(let p of this.agencies)p.intercomService=this.intercomService}addScripts(){}loadChatwoot(){const e=this.agency.chatwootToken;if(!e)return;const p="https://chat.socialgrowth.co",P=document.createElement("script");P.async=!0,P.src=`${p}/packs/js/sdk.js`,P.onload=()=>{window.chatwootSDK.run({websiteToken:e,baseUrl:p})},document.head.appendChild(P)}getCurrency(){return this.agency.chargebeeCurrency}getImg(e){return this.agency.getCustomImage(e)||"assets/images/"+this.imgFolder+"/"+e}updateStyles(){this.agency.hasFavicon&&this.updateFavicon();let e="/"+this.agency.name;"localhost"!=window.location.hostname?(e="/css"+e+"/",e+=this.agency.darkMode?"dark":"light",e+="/"+t.X+"/theme.css",this.loadStyle(e)):(this.agency.darkMode&&(e+="_dark"),this.loadStyle(e+".css"))}loadStyle(e){const p=this.document.getElementsByTagName("head")[0];let P=this.document.getElementById("client-theme");if(P)P.href=e;else{const G=this.document.createElement("link");G.id="client-theme",G.rel="stylesheet",G.href=`${e}`,p.appendChild(G)}}updateFavicon(){const e=this.document.getElementsByTagName("head")[0];for(let p=0;p<e.children.length;p++){let P=e.children.item(p),G=P.href;if(G&&G.match("images/.*/favicon")){let K="favicon";this.agency.darkMode&&this.agency.hasDarkModeFavicon&&(K+="_dark"),P.href=G.replace(/images\/.*\/favicon.*\//,"images/"+this.agency.name+"/"+K+"/")}}}initMixpanel(){const e=this.agency.mixpanelToken;e&&L.A.init(e,{debug:!O.c.production,track_pageview:"url-with-path-and-query-string",persistence:"localStorage",record_sessions_percent:100,record_mask_text_selector:"do-not-mask-text",record_block_selector:"video"})}static{this.\u0275fac=function(p){return new(p||v)(T.KVO(i.q),T.KVO(I.r))}}static{this.\u0275prov=T.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},6016(j,D,n){"use strict";n.d(D,{w:()=>A,Zy:()=>y,H2:()=>M});var i=n(2986),t=n(3465),s=n(6331),r=n(1155);class u{constructor(l,f){this.agency=l,this.action=f,this.btnClass="btn-primary"}mixpanelEvent(l,f){r.A.__loaded&&r.A.track(l,f)}onAction(){this.action==u.Action.CALL?this.callLink?window.open(this.callLink,"_blank"):this.agency.cancelCallLink?window.open(this.agency.cancelCallLink,"_blank"):this.agency.scheduleCallLink&&window.open(this.agency.scheduleCallLink,"_blank"):this.action==u.Action.EMAIL?this.email?window.open("mailto:"+this.email):this.agency.cancelEmail?window.open("mailto:"+this.agency.cancelEmail):this.agency.email&&window.open("mailto:"+this.agency.email):this.action==u.Action.CHAT?(this.agency.addChatwootAttribute("request-cancel_subscription",!0),this.agency.popupIntercom(),this.mixpanelEvent("cancel_support",{})):this.action==u.Action.LINK&&window.open(this.link,"_blank")}setActionCall(l){this.action=u.Action.CALL,l&&(this.callLink=l)}setActionEmail(l){this.action=u.Action.EMAIL,l&&(this.email=l)}setActionLink(l){this.action=u.Action.LINK,l&&(this.link=l)}setActionChat(){this.action=u.Action.CHAT}getTranslateId(){return this.translateId?this.translateId:this.action==u.Action.CALL?"settings.cancel.submit-cancel.btn-call":this.action==u.Action.EMAIL?"settings.cancel.submit-cancel.btn-email":this.action==u.Action.CHAT?"settings.cancel.submit-cancel.btn-chat":this.action==u.Action.LINK?"settings.cancel.submit-cancel.btn-link":""}getIconName(){if(this.icon)return this.icon;switch(this.action){case u.Action.CALL:return"ic_call.svg";case u.Action.CHAT:return"ic_chat.svg";case u.Action.EMAIL:return"ic_mail.svg";case u.Action.LINK:return null}return""}}!function(C){let l;var f;(f=l=C.Action||(C.Action={}))[f.CALL=1]="CALL",f[f.CHAT=2]="CHAT",f[f.EMAIL=3]="EMAIL",f[f.LINK=4]="LINK"}(u||(u={}));class a{constructor(l,f){this.agency=l,this.action=f}onAction(){this.action==a.Action.CHAT?this.agency.popupIntercom():this.action==a.Action.EMAIL?this.email?window.open("mailto:"+this.email):this.agency.email&&window.open("mailto:"+this.agency.email):this.action==a.Action.LINK&&window.open(this.link,"_blank")}setActionLink(l){this.action=a.Action.LINK,l&&(this.link=l)}setActionEmail(l){this.action=a.Action.EMAIL,l&&(this.email=l)}setActionChat(){this.action=a.Action.CHAT}}!function(C){let l;var f;(f=l=C.Action||(C.Action={}
1))[f.CHAT=1]="CHAT",f[f.EMAIL=2]="EMAIL",f[f.LINK=3]="LINK"}(a||(a={}));class c{constructor(l,f){this.agency=l,this.action=f}onAction(){this.action==c.Action.CALL?this.callLink?window.open(this.callLink,"_blank"):this.agency.scheduleCallLink&&window.open(this.agency.scheduleCallLink,"_blank"):this.action==c.Action.EMAIL?this.email?window.open("mailto:"+this.email):this.agency.email&&window.open("mailto:"+this.agency.email):this.action==c.Action.CHAT?this.agency.popupIntercom():this.action==c.Action.LINK&&window.open(this.link,"_blank")}setActionCall(l){this.action=c.Action.CALL,l&&(this.callLink=l)}setActionEmail(l){this.action=c.Action.EMAIL,l&&(this.email=l)}setActionLink(l){this.action=c.Action.LINK,l&&(this.link=l)}setActionChat(){this.action=c.Action.CHAT}setIcon(l){this.icon=l}getIconName(){if(this.icon)return this.icon;switch(this.action){case c.Action.CALL:return"ic_call.svg";case c.Action.CHAT:return"ic_chat.svg";case c.Action.EMAIL:return"ic_mail.svg";case c.Action.LINK:return"ic_help.svg"}return null}getTranslateId(){return this.translateId?this.translateId:this.action==c.Action.CALL?"home.account-manager.schedule-call":this.action==c.Action.EMAIL?"home.account-manager.send-email":this.action==c.Action.CHAT?"home.account-manager.chat":this.action==c.Action.LINK?"home.account-manager.help-link":""}}!function(C){let l;var f;(f=l=C.Action||(C.Action={}))[f.CALL=1]="CALL",f[f.CHAT=2]="CHAT",f[f.EMAIL=3]="EMAIL",f[f.LINK=4]="LINK"}(c||(c={}));class m{constructor(l,f){this.agency=l,this.action=f}onAction(){this.action==m.Action.CHAT?this.agency.popupIntercom():this.action==m.Action.LINK?window.open(this.link,"_blank"):this.action==m.Action.EMAIL&&(this.email?window.open("mailto:"+this.email):this.agency.email&&window.open("mailto:"+this.agency.email))}setActionLink(l){this.action=m.Action.LINK,l&&(this.link=l)}setActionEmail(l){this.action=m.Action.LINK,l&&(this.email=l)}setActionChat(){this.action=m.Action.CHAT}}!function(C){let l;var f;(f=l=C.Action||(C.Action={}))[f.CHAT=1]="CHAT",f[f.LINK=2]="LINK",f[f.EMAIL=3]="EMAIL"}(m||(m={}));class d{constructor(l,f){this.agency=l,this.action=f}onAction(){this.action==d.Action.CHAT?this.agency.popupIntercom():this.action==d.Action.LINK&&this.link&&window.open(this.link,"_blank")}setActionLink(l){this.action=d.Action.LINK,l&&(this.link=l)}setActionChat(){this.action=d.Action.CHAT}}!function(C){let l;var f;(f=l=C.Action||(C.Action={}))[f.CHAT=1]="CHAT",f[f.LINK=2]="LINK"}(d||(d={}));class A{constructor(l){this.name="",this.server="",this.hostnames=[],this.brandName="",this.loginSuccessMessage=y.US_BASED,this.priceDiscount={},this.chartColor1="#23DF85",this.chartColor2="#F7D421",this.chartColor3="#fe2c55",this.growthColor1="#0066FF",this.growthColor2="#23DF85",this.burstColor="#0066ff",this.customImages={},this.features={},this.chargebeeCurrency="USD",this.stripeCountry="US",this.stripeCurrency="usd",this.connectBtnSocialSuffix=!0,this.hasScss=!0,this.hasFavicon=!0,this.name=l,this.hasDarkMode=!0,this.targetingSuggestions=!0,this.audienceOnboarding=!1,this.couponsDashboard=!0,this.couponsOboarding=!0,this.couponsReactivate=!0,this.couponsChangePlan=!0,this.showProductTour=!1,this.showOnboardingTour=!1,this.showChatWithSupport=!1,this.audienceQualityPills=!1,this.onboardingSteps=!1,this.defaultLanguage=new t.T("English","en",!0),this.languages=[this.defaultLanguage],this.managerImg="assets/images/default/manager.svg",this.initImages(),this.helpBtn=new a(this,a.Action.CHAT),this.managerBtn1=new c(this,c.Action.CALL),this.managerBtn2=new c(this,c.Action.CHAT),this.cancelPredictionBtn=new s.K(this,s.K.Action.CALL),this.cancelSubmitBtn1=new u(this,u.Action.CALL),this.cancelSubmitBtn1.btnClass="btn-disabled",this.cancelSubmitBtn2=new u(this,u.Action.CHAT),this.contactSupportLinkBtn=new m(this,m.Action.CHAT),this.targetingHelpLinkBtn=new d(this,d.Action.LINK),this.features[i.W.STORY_LIKING.id]=!1,this.features[i.W.LIKE_AFTER_FOLLOW.id]=!1,this.features[i.W.LOCATION_TARGETING.id]=!1,this.features[i.W.WELCOM_DM.id]=!1,this.features[i.W.GENDER_FILTERING.id]=!1,this.features[i.W.FOLLOWER_BURST.id]=!1,this.features[i.W.STRATEGY_CALLS.id]=!1,this.features[i.W.IG_AUDIT.id]=!1,this.features[i.W.FOLLOW_UNFOLLOW.id]=!1}initImages(){let l="assets/images/"+this.name+"/";this.darkMode&&(l="assets/images/"+this.name+"/logo_dark/"),this.logoAuthBig=l+"logo_auth_desktop.svg",this.logoAuthSmall=l+"logo_auth_mobile.svg",this.logoManagerBoxBig=l+"logo_manager_box_desktop.svg",this.logoManagerBoxSmall=l+"logo_manager_box_mobile.svg",this.logoOnboardingBig=l+"logo_onboarding_big_desktop.svg",this.logoOnboardingMedium=l+"logo_onboarding_small_desktop.svg",this.logoOnboardingSmall=l+"logo_onboarding_mobile.svg",this.logoHeaderBig=l+"logo_header_desktop.svg",this.logoHeaderSmall=l+"logo_header_mobile.svg"}setDarkMode(l){this.hasDarkMode&&(this.darkMode=l,this.initImages())}setImg(l){this.customImages[l]="assets/images/"+this.name+"/"+l}getCustomImage(l){return this.customImages[l]}disableCoupons(){this.couponsDashboard=!1,this.couponsOboarding=!1,this.couponsReactivate=!1,this.couponsChangePlan=!1}
1popupIntercom(){if(this.intercomService){if(window.$chatwoot)return void this.intercomService.popupChatwoot();this.intercom&&this.intercomService&&this.intercomService.popupIntercom()}}addChatwootAttribute(l,f){this.intercomService&&this.intercomService.updateChatwootAttribute(l,f)}clone(){this.removeThisReference();let l=JSON.parse(JSON.stringify(this));return this.addThisReference(),this.setProptotype(l,this),l.addThisReference(),l}setProptotype(l,f){l&&(Object.setPrototypeOf(l,Object.getPrototypeOf(f)),Object.entries(f).forEach(([S,x])=>{x&&"object"==typeof x&&this.setProptotype(l[S],x)}))}removeThisReference(){Object.entries(this).forEach(([,l])=>{l&&"object"==typeof l&&l.agency==this&&(l.agency=null)})}addThisReference(){Object.entries(this).forEach(([,l])=>{if(l&&"object"==typeof l){let f=l;f.hasOwnProperty.call(f,"agency")&&(f.agency=this)}})}hasFeature(l){return this.features[l]}hasDynamicsScreen(){return!!(this.features[i.W.GENDER_FILTERING.id]||this.features[i.W.STORY_LIKING.id]||this.features[i.W.WELCOM_DM.id]||this.features[i.W.LIKE_AFTER_FOLLOW.id])}}var M=function(C){return C[C.BRAINTREE=0]="BRAINTREE",C[C.STRIPE=1]="STRIPE",C[C.CHARGEBEE=2]="CHARGEBEE",C[C.NONE=3]="NONE",C}(M||{}),y=function(C){return C.US_BASED="USA",C.EU_BASED="EU",C}(y||{})},6331(j,D,n){"use strict";n.d(D,{K:()=>i});class i{constructor(s,r){this.agency=s,this.action=r,this.btnClass="btn-disabled"}onAction(){this.action==i.Action.CALL?this.callLink?window.open(this.callLink,"_blank"):this.agency.cancelCallLink?window.open(this.agency.cancelCallLink,"_blank"):this.agency.scheduleCallLink&&window.open(this.agency.scheduleCallLink,"_blank"):this.action==i.Action.EMAIL?this.email?window.open("mailto:"+this.email):this.agency.cancelEmail?window.open("mailto:"+this.agency.cancelEmail):this.agency.email&&window.open("mailto:"+this.agency.email):this.action==i.Action.CHAT?(this.agency.addChatwootAttribute("request-cancel_subscription",!0),this.agency.popupIntercom()):this.action==i.Action.LINK&&window.open(this.link,"_blank")}setActionCall(s){this.action=i.Action.CALL,s&&(this.callLink=s)}setActionEmail(s){this.action=i.Action.EMAIL,s&&(this.email=s)}setActionLink(s){this.action=i.Action.LINK,s&&(this.link=s)}setActionCancel(){this.action=i.Action.CANCEL}setActionChat(){this.action=i.Action.CHAT}getTranslateId(){return this.translateId?this.translateId:this.action==i.Action.CALL?"settings.cancel.prediction.talk-to-expert":this.action==i.Action.EMAIL?"settings.cancel.prediction.email-expert":this.action==i.Action.CHAT?"settings.cancel.prediction.chat-with-expert":this.action==i.Action.CANCEL?"settings.cancel.prediction.btn-cancel":""}}!function(t){let s;var r;(r=s=t.Action||(t.Action={}))[r.CALL=1]="CALL",r[r.CHAT=2]="CHAT",r[r.EMAIL=3]="EMAIL",r[r.LINK=4]="LINK",r[r.CANCEL=5]="CANCEL"}(i||(i={}))},9767(j,D,n){"use strict";n.d(D,{A0:()=>N,B6:()=>l,Eb:()=>x,G3:()=>I,Li:()=>m,Pm:()=>R,Qr:()=>d,Rg:()=>B,SP:()=>U,VC:()=>C,Wm:()=>w,Ws:()=>u,XM:()=>T,_E:()=>c,dK:()=>y,e$:()=>f,gW:()=>k,hq:()=>O,r5:()=>S,uY:()=>M,vR:()=>L});var i=n(2394);const t={optional:!0},u=((0,i.hZ)("fade",[(0,i.kY)("* <=> *",[(0,i.P)(":enter, :leave",[(0,i.iF)({opacity:0})],{optional:!0}),(0,i.P)(":enter",[(0,i.i0)("500ms ease",(0,i.iF)({opacity:1}))],{optional:!0})])]),(0,i.hZ)("fadeIn",[(0,i.kY)("void => *",[(0,i.iF)({opacity:0}),(0,i.i0)(300,(0,i.iF)({opacity:1}))])]),(0,i.hZ)("fadeInOut",[(0,i.kY)("void => *",[(0,i.iF)({opacity:0}),(0,i.i0)(300,(0,i.iF)({opacity:1}))]),(0,i.kY)("* => void",[(0,i.iF)({opacity:1}),(0,i.i0)(300,(0,i.iF)({opacity:0}))])])),c=((0,i.hZ)("darken",[(0,i.kY)("void => *",[(0,i.iF)({"background-color":"#0000"}),(0,i.i0)(300,(0,i.iF)({"background-color":"#0002"}))]),(0,i.kY)("* => void",[(0,i.iF)({"background-color":"#0002"}),(0,i.i0)(300,(0,i.iF)({"background-color":"#0000"}))])]),(0,i.hZ)("disappearRight",[(0,i.kY)("* => void",[(0,i.iF)({transform:"translateX(0)"}),(0,i.i0)(300,(0,i.i7)([(0,i.iF)({transform:"translateX(-20px)",offset:.2}),(0,i.iF)({transform:"translateX(150%)",offset:1})]))])])),m=(0,i.hZ)("appearFromBottom",[(0,i.kY)("void => *",[(0,i.iF)({transform:"translateY(70vh)"}),(0,i.i0)(200,(0,i.iF)({transform:"translateY(0)"}))]),(0,i.kY)("* => void",[(0,i.iF)({transform:"translateY(0)"}),(0,i.i0)(200,(0,i.iF)({transform:"translateY(70vh)"}))])]),d=(0,i.hZ)("shrink",[(0,i.kY)("void => *",[(0,i.iF)({"max-width":"0",transform:"scaleX(0)",opacity:0}
1),(0,i.i0)(300,(0,i.iF)({transform:"scaleX(1)",opacity:1,"max-width":"100px"}))]),(0,i.kY)("* => void",[(0,i.iF)({"max-width":"100px",transform:"scaleX(1)",opacity:1}),(0,i.i0)(300,(0,i.iF)({transform:"scaleX(0)",opacity:0,"max-width":"0"}))])]),M=((0,i.hZ)("expand",[(0,i.kY)("* => void",[(0,i.iF)({transform:"scaleX(1)",opacity:1}),(0,i.i0)(300,(0,i.iF)({transform:"scale(3)",opacity:0}))])]),(0,i.hZ)("fadeInOutDown",[(0,i.wk)("up",(0,i.iF)({top:"30%",opacity:1})),(0,i.kY)("void => up",[(0,i.iF)({top:"50%",opacity:0}),(0,i.i0)(300)]),(0,i.kY)("up => void",[(0,i.i0)(300,(0,i.iF)({top:"50%",opacity:0}))])])),y=(0,i.hZ)("fadeInOutUp",[(0,i.kY)("void => down",[(0,i.iF)({top:"30%",opacity:0}),(0,i.i0)(300,(0,i.iF)({top:"50%",opacity:1}))]),(0,i.kY)("down => void",[(0,i.iF)({top:"50%",opacity:1}),(0,i.i0)(300,(0,i.iF)({top:"30%",opacity:0}))])]),C=(0,i.hZ)("followbacksAnim",[(0,i.wk)("mobile",(0,i.iF)({transform:"translateY(0)",opacity:1})),(0,i.wk)("desktop",(0,i.iF)({opacity:1})),(0,i.kY)("void => mobile",[(0,i.iF)({transform:"translateY(100%)"}),(0,i.i0)(300)]),(0,i.kY)("mobile => void",[(0,i.i0)(300,(0,i.iF)({transform:"translateY(100%)"}))]),(0,i.kY)("void => desktop",[(0,i.iF)({opacity:0}),(0,i.i0)(300)]),(0,i.kY)("desktop => void",[(0,i.i0)(300,(0,i.iF)({opacity:0}))])]),l=(0,i.hZ)("connectAccountAnim",[(0,i.wk)("mobile",(0,i.iF)({transform:"translateY(0)"})),(0,i.wk)("desktop",(0,i.iF)({opacity:1})),(0,i.kY)("void => mobile",[(0,i.iF)({transform:"translateY(100%)"}),(0,i.i0)(300)]),(0,i.kY)("mobile => void",[(0,i.i0)(300,(0,i.iF)({transform:"translateY(100%)"}))]),(0,i.kY)("void => desktop",[(0,i.iF)({opacity:0}),(0,i.i0)(300)]),(0,i.kY)("desktop => void",[(0,i.i0)(300,(0,i.iF)({opacity:0}))])]),f=(0,i.hZ)("connectAccountExitPopup",[(0,i.wk)("mobile",(0,i.iF)({transform:"translateY(0)"})),(0,i.wk)("desktop",(0,i.iF)({opacity:1})),(0,i.kY)("void => mobile",[(0,i.iF)({transform:"translateY(230px)"}),(0,i.i0)(300)]),(0,i.kY)("mobile => void",[(0,i.i0)(300,(0,i.iF)({transform:"translateY(230px)"}))]),(0,i.kY)("void => desktop",[(0,i.iF)({opacity:0}),(0,i.i0)(300)]),(0,i.kY)("desktop => void",[(0,i.i0)(300,(0,i.iF)({opacity:0}))])]),S=(0,i.hZ)("overlayBkg",[(0,i.kY)("void => dark",[(0,i.iF)({backgroundColor:"#FFF0"}),(0,i.i0)(300,(0,i.iF)({backgroundColor:"#FFF2"}))]),(0,i.kY)("dark => void",[(0,i.iF)({backgroundColor:"#FFF2"}),(0,i.i0)(300,(0,i.iF)({backgroundColor:"#FFF0"}))]),(0,i.kY)("void => *",[(0,i.iF)({backgroundColor:"#0000"}),(0,i.i0)(300,(0,i.iF)({backgroundColor:"#0002"}))]),(0,i.kY)("* => void",[(0,i.iF)({backgroundColor:"#0002"}),(0,i.i0)(300,(0,i.iF)({backgroundColor:"#0000"}))])]),x=(0,i.hZ)("routeAnimation",[(0,i.kY)("* <=> *",[(0,i.P)(":enter, :leave",[(0,i.iF)({position:"absolute",top:0,left:0,width:"100%"})],t),(0,i.Os)([(0,i.P)("@overlayBkg",(0,i.MA)(),{optional:!0}),(0,i.P)("@connectAccountAnim",(0,i.MA)(),{optional:!0}),(0,i.P)("@fadeInOut",(0,i.MA)(),{optional:!0}),(0,i.P)(":leave *",[(0,i.iF)({}),(0,i.i0)(1,(0,i.iF)({}))],t)])])]),w=(0,i.hZ)("dropdown",[(0,i.kY)("void => *",[(0,i.iF)({transform:"translateY(-100%)"}),(0,i.i0)(300,(0,i.iF)({transform:"translateY(0)"}))]),(0,i.kY)("* => void",[(0,i.iF)({transform:"translateY(0)"}),(0,i.i0)(300,(0,i.iF)({transform:"translateY(-100%)"}))])]),k=(0,i.hZ)("darkMode",[(0,i.kY)("void => *",[(0,i.iF)({transform:"translateY(-100%)"}),(0,i.i0)(3e3,(0,i.iF)({transform:"translateY(0)"}))]),(0,i.kY)("* => void",[(0,i.iF)({transform:"translateY(0)"}),(0,i.i0)(3e3,(0,i.iF)({transform:"translateY(100%)"}))]),(0,i.kY)("dark => light",[(0,i.iF)({}),(0,i.i0)(5e3,(0,i.i7)([(0,i.iF)({transform:"translateY(0)"}),(0,i.iF)({transform:"translateY(100%)"}),(0,i.iF)({transform:"translateY(0)"})]))]),(0,i.kY)("light => dark",[(0,i.iF)({transform:"translateY(0)"}),(0,i.i0)(300,(0,i.iF)({transform:"translateY(-100%)"}))])]),U=(0,i.hZ)("usernameboxParent",[(0,i.kY)("* <=> *",[(0,i.P)(":enter, :leave",[(0,i.iF)({})],t),(0,i.Os)([(0,i.P)("@usernamebox",(0,i.MA)(),{optional:!0}),(0,i.P)("@usernameboxImg",(0,i.MA)(),{optional:!0}),(0,i.P)("@fadeInOut",(0,i.MA)(),{optional:!0}),(0,i.P)(":leave *",[(0,i.iF)({}),(0,i.i0)(1,(0,i.iF)({}))],t)])])]),N=(0,i.hZ)("usernamebox",[(0,i.kY)("void => usernameSearch",[(0,i.i0)(600,(0,i.i7)([(0,i.iF)({padding:"0px 30px",opacity:0}
1),(0,i.iF)({padding:"20px 30px",opacity:1}),(0,i.iF)({padding:"20px 30px",opacity:1})]))]),(0,i.kY)("usernameSearch => void",[(0,i.i0)(600,(0,i.i7)([(0,i.iF)({padding:"20px 30px",opacity:1}),(0,i.iF)({padding:"0 30px",opacity:1}),(0,i.iF)({padding:"0 30px",opacity:0})]))])]),B=(0,i.hZ)("usernameboxImg",[(0,i.kY)("void => usernameSearch",[(0,i.iF)({scale:0,"margin-right":-10,"margin-left":-20}),(0,i.i0)(300,(0,i.iF)({scale:1,"margin-right":16,"margin-left":0}))]),(0,i.kY)("usernameSearch => void",[(0,i.iF)({scale:1,"margin-right":16,"margin-left":0}),(0,i.i0)(300,(0,i.iF)({scale:0,"margin-right":-10,"margin-left":-20}))])]),R=(0,i.hZ)("searchLoadingNote",[(0,i.kY)("void => *",[(0,i.i0)(2500,(0,i.i7)([(0,i.iF)({"max-height":0,"margin-bottom":0,opacity:0,offset:0}),(0,i.iF)({"max-height":0,"margin-bottom":0,opacity:0,offset:.8}),(0,i.iF)({"max-height":50,"margin-bottom":10,opacity:1,offset:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(500,(0,i.i7)([(0,i.iF)({"max-height":50,"margin-bottom":10,opacity:1,offset:0}),(0,i.iF)({"max-height":0,"margin-bottom":0,opacity:0,offset:1})]))])]),L=(0,i.hZ)("searchLoadingNoteMobile",[(0,i.kY)("void => *",[(0,i.i0)(2500,(0,i.i7)([(0,i.iF)({"max-height":0,"margin-top":0,opacity:0,offset:0}),(0,i.iF)({"max-height":0,"margin-top":0,opacity:0,offset:.8}),(0,i.iF)({"max-height":50,"margin-top":10,opacity:1,offset:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(500,(0,i.i7)([(0,i.iF)({"max-height":50,"margin-top":10,opacity:1,offset:0}),(0,i.iF)({"max-height":0,"margin-top":0,opacity:0,offset:1})]))])]),O=(0,i.hZ)("expandDynamicsWarning",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:0,opacity:0,offset:0}),(0,i.iF)({height:"*",opacity:1,offset:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:"*",opacity:1,offset:0}),(0,i.iF)({height:0,opacity:0,offset:1})]))])]),T=(0,i.hZ)("expandDynamicsMobileWarning",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:0,"padding-top":0,"padding-bottom":0,offset:0}),(0,i.iF)({height:"*","padding-top":"*","padding-bottom":"*",offset:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:"*","padding-top":"*","padding-bottom":"*",offset:0}),(0,i.iF)({height:0,"padding-top":0,"padding-bottom":0,offset:1})]))])]),I=(0,i.hZ)("expandInteractionsMobile",[(0,i.kY)("void => *",[(0,i.i0)(200,(0,i.i7)([(0,i.iF)({height:0,"padding-top":0,"padding-bottom":0,offset:0}),(0,i.iF)({height:"*","padding-top":"*","padding-bottom":"*",offset:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(200,(0,i.i7)([(0,i.iF)({height:"*","padding-top":"*","padding-bottom":"*",offset:0}),(0,i.iF)({height:0,"padding-top":0,"padding-bottom":0,offset:1})]))])]);(0,i.hZ)("graphic1",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({transform:"translateX(120px) rotate(-180deg)"}),(0,i.iF)({transform:"translateX(0) rotate(0)",scale:1})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({transform:"translateX(0) rotate(180deg)",scale:1}),(0,i.iF)({transform:"translateX(120px) rotate(0)"})]))])]),(0,i.hZ)("graphic2",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({transform:"translateX(-120px) rotate(-180deg)"}),(0,i.iF)({transform:"translateX(0) rotate(0)"})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({transform:"translateX(0) rotate(0)"}),(0,i.iF)({transform:"translateX(-120px) rotate(180deg)"})]))])]),(0,i.hZ)("expandAudienceButtons",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:0,"margin-top":0}),(0,i.iF)({height:"*","margin-top":"*"})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:"*","margin-top":"*"}),(0,i.iF)({height:0,"margin-top":0})]))])]),(0,i.hZ)("expandGuaraneedBadge",[(0,i.kY)("void => *",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:0,"margin-bottom":0,"padding-top":0,"padding-bottom":0}),(0,i.iF)({height:"*","margin-bottom":"*","padding-top":"*","padding-bottom":"*"})]))]),(0,i.kY)("* => void",[(0,i.i0)(300,(0,i.i7)([(0,i.iF)({height:"*","margin-bottom":"*","padding-top":"*","padding-bottom":"*"}),(0,i.iF)({height:0,"margin-bottom":0,"padding-top":0,"padding-bottom":0})]))])])},3070(j,D,n){"use strict";n.d(D,{X:()=>i,j:()=>s});const i=[{code:"AD",name:"Andorra"},{code:"AE",name:"United Arab Emirates"},{code:"AF",name:"Afghanistan"},{code:"AG",name:"Antigua and Barbuda"},{code:"AI",name:"Anguilla"},{code:"AL",name:"Albania"},{code:"AM",name:"Armenia"}
1,{code:"AO",name:"Angola"},{code:"AQ",name:"Antarctica"},{code:"AR",name:"Argentina"},{code:"AS",name:"American Samoa"},{code:"AT",name:"Austria"},{code:"AU",name:"Australia"},{code:"AW",name:"Aruba"},{code:"AX",name:"\xc5land Islands"},{code:"AZ",name:"Azerbaijan"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BB",name:"Barbados"},{code:"BD",name:"Bangladesh"},{code:"BE",name:"Belgium"},{code:"BF",name:"Burkina Faso"},{code:"BG",name:"Bulgaria"},{code:"BH",name:"Bahrain"},{code:"BI",name:"Burundi"},{code:"BJ",name:"Benin"},{code:"BL",name:"Saint Barth\xe9lemy"},{code:"BM",name:"Bermuda"},{code:"BN",name:"Brunei Darussalam"},{code:"BO",name:"Bolivia (Plurinational State of)"},{code:"BQ",name:"Bonaire, Sint Eustatius and Saba"},{code:"BR",name:"Brazil"},{code:"BS",name:"Bahamas"},{code:"BT",name:"Bhutan"},{code:"BV",name:"Bouvet Island"},{code:"BW",name:"Botswana"},{code:"BY",name:"Belarus"},{code:"BZ",name:"Belize"},{code:"CA",name:"Canada"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CD",name:"Congo, Democratic Republic of the"},{code:"CF",name:"Central African Republic"},{code:"CG",name:"Congo"},{code:"CH",name:"Switzerland"},{code:"CI",name:"C\xf4te d'Ivoire"},{code:"CK",name:"Cook Islands"},{code:"CL",name:"Chile"},{code:"CM",name:"Cameroon"},{code:"CN",name:"China"},{code:"CO",name:"Colombia"},{code:"CR",name:"Costa Rica"},{code:"CU",name:"Cuba"},{code:"CV",name:"Cabo Verde"},{code:"CW",name:"Cura\xe7ao"},{code:"CX",name:"Christmas Island"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czechia"},{code:"DE",name:"Germany"},{code:"DJ",name:"Djibouti"},{code:"DK",name:"Denmark"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"DZ",name:"Algeria"},{code:"EC",name:"Ecuador"},{code:"EE",name:"Estonia"},{code:"EG",name:"Egypt"},{code:"EH",name:"Western Sahara"},{code:"ER",name:"Eritrea"},{code:"ES",name:"Spain"},{code:"ET",name:"Ethiopia"},{code:"FI",name:"Finland"},{code:"FJ",name:"Fiji"},{code:"FK",name:"Falkland Islands (Malvinas)"},{code:"FM",name:"Micronesia (Federated States of)"},{code:"FO",name:"Faroe Islands"},{code:"FR",name:"France"},{code:"GA",name:"Gabon"},{code:"GB",name:"United Kingdom"},{code:"GD",name:"Grenada"},{code:"GE",name:"Georgia"},{code:"GF",name:"French Guiana"},{code:"GG",name:"Guernsey"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GL",name:"Greenland"},{code:"GM",name:"Gambia"},{code:"GN",name:"Guinea"},{code:"GP",name:"Guadeloupe"},{code:"GQ",name:"Equatorial Guinea"},{code:"GR",name:"Greece"},{code:"GS",name:"South Georgia and the South Sandwich Islands"},{code:"GT",name:"Guatemala"},{code:"GU",name:"Guam"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HK",name:"Hong Kong"},{code:"HM",name:"Heard Island and McDonald Islands"},{code:"HN",name:"Honduras"},{code:"HR",name:"Croatia"},{code:"HT",name:"Haiti"},{code:"HU",name:"Hungary"},{code:"ID",name:"Indonesia"},{code:"IE",name:"Ireland"},{code:"IL",name:"Israel"},{code:"IM",name:"Isle of Man"},{code:"IN",name:"India"},{code:"IO",name:"British Indian Ocean Territory"},{code:"IQ",name:"Iraq"},{code:"IR",name:"Iran (Islamic Republic of)"},{code:"IS",name:"Iceland"},{code:"IT",name:"Italy"},{code:"JE",name:"Jersey"},{code:"JM",name:"Jamaica"},{code:"JO",name:"Jordan"},{code:"JP",name:"Japan"},{code:"KE",name:"Kenya"},{code:"KG",name:"Kyrgyzstan"},{code:"KH",name:"Cambodia"},{code:"KI",name:"Kiribati"},{code:"KM",name:"Comoros"},{code:"KN",name:"Saint Kitts and Nevis"},{code:"KP",name:"Korea (Democratic People's Republic of)"},{code:"KR",name:"Korea, Republic of"},{code:"KW",name:"Kuwait"},{code:"KY",name:"Cayman Islands"},{code:"KZ",name:"Kazakhstan"},{code:"LA",name:"Lao People's Democratic Republic"},{code:"LB",name:"Lebanon"},{code:"LC",name:"Saint Lucia"},{code:"LI",name:"Liechtenstein"},{code:"LK",name:"Sri Lanka"},{code:"LR",name:"Liberia"},{code:"LS",name:"Lesotho"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"LV",name:"Latvia"},{code:"LY",name:"Libya"},{code:"MA",name:"Morocco"},{code:"MC",name:"Monaco"},{code:"MD",name:"Moldova, Republic of"},{code:"ME",name:"Montenegro"},{code:"MF",name:"Saint Martin (French part)"},{code:"MG",name:"Madagascar"},{code:"MH",name:"Marshall Islands"},{code:"MK",name:"North Macedonia"},{code:"ML",name:"Mali"},{code:"MM",name:"Myanmar"},{code:"MN",name:"Mongolia"},{code:"MO",name:"Macao"},{code:"MP",name:"Northern Mariana Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MS",name:"Montserrat"},{code:"MT",name:"Malta"},{code:"MU",name:"Mauritius"},{code:"MV",name:"Maldives"},{code:"MW",name:"Malawi"},{code:"MX",name:"Mexico"},{code:"MY",name:"Malaysia"},{code:"MZ",name:"Mozambique"},{code:"NA",name:"Namibia"},{code:"NC",name:"New Caledonia"},{code:"NE",name:"Niger"},{code:"NF",name:"Norfolk Island"},{code:"NG",name:"Nigeria"},{code:"NI",name:"Nicaragua"},{code:"NL",name:"Netherlands"},{code:"NO",name:"Norway"},{code:"NP",name:"Nepal"},{code:"NR",name:"Nauru"},{code:"NU",name:"Niue"},{code:"NZ",name:"New Zealand"},{code:"OM",name:"Oman"},{code:"PA",name:"Panama"},{code:"PE",name:"Peru"},{code:"PF",name:"French Polynesia"},{code:"PG",name:"Papua New Guinea"},{code:"PH",name:"Philippines"},{code:"PK",name:"Pakistan"},{code:"PL",name:"Poland"},{code:"PM",name:"Saint Pierre and Miquelon"},{code:"PN",name:"Pitcairn"},{code:"PR",name:"Puerto Rico"},{code:"PS",name:"Palestine, State of"},{code:"PT",name:"Portugal"},{code:"PW",name:"Palau"},{code:"PY",name:"Paraguay"},{code:"QA",name:"Qatar"},{code:"RE",name:"R\xe9union"},{code:"RO",name:"Romania"},{code:"RS",name:"Serbia"},{code:"RU",name:"Russian Federation"},{code:"RW",name:"Rwanda"},{code:"SA",name:"Saudi Arabia"}
1,{code:"SB",name:"Solomon Islands"},{code:"SC",name:"Seychelles"},{code:"SD",name:"Sudan"},{code:"SE",name:"Sweden"},{code:"SG",name:"Singapore"},{code:"SH",name:"Saint Helena, Ascension and Tristan da Cunha"},{code:"SI",name:"Slovenia"},{code:"SJ",name:"Svalbard and Jan Mayen"},{code:"SK",name:"Slovakia"},{code:"SL",name:"Sierra Leone"},{code:"SM",name:"San Marino"},{code:"SN",name:"Senegal"},{code:"SO",name:"Somalia"},{code:"SR",name:"Suriname"},{code:"SS",name:"South Sudan"},{code:"ST",name:"Sao Tome and Principe"},{code:"SV",name:"El Salvador"},{code:"SX",name:"Sint Maarten (Dutch part)"},{code:"SY",name:"Syrian Arab Republic"},{code:"SZ",name:"Eswatini"},{code:"TC",name:"Turks and Caicos Islands"},{code:"TD",name:"Chad"},{code:"TF",name:"French Southern Territories"},{code:"TG",name:"Togo"},{code:"TH",name:"Thailand"},{code:"TJ",name:"Tajikistan"},{code:"TK",name:"Tokelau"},{code:"TL",name:"Timor-Leste"},{code:"TM",name:"Turkmenistan"},{code:"TN",name:"Tunisia"},{code:"TO",name:"Tonga"},{code:"TR",name:"T\xfcrkiye"},{code:"TT",name:"Trinidad and Tobago"},{code:"TV",name:"Tuvalu"},{code:"TW",name:"Taiwan, Province of China[note 1]"},{code:"TZ",name:"Tanzania, United Republic of"},{code:"UA",name:"Ukraine"},{code:"UG",name:"Uganda"},{code:"UM",name:"United States Minor Outlying Islands"},{code:"US",name:"United States"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VA",name:"Holy See"},{code:"VC",name:"Saint Vincent and the Grenadines"},{code:"VE",name:"Venezuela (Bolivarian Republic of)"},{code:"VG",name:"Virgin Islands (British)"},{code:"VI",name:"Virgin Islands (U.S.)"},{code:"VN",name:"Viet Nam"},{code:"VU",name:"Vanuatu"},{code:"WF",name:"Wallis and Futuna"},{code:"WS",name:"Samoa"},{code:"YE",name:"Yemen"},{code:"YT",name:"Mayotte"},{code:"ZA",name:"South Africa"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],t={};function s(r){return r?t[r.toUpperCase()]:null}i.forEach(r=>{t[r.code]=r,r.code=r.code.toLowerCase()})},3731(j,D,n){"use strict";n.d(D,{w:()=>s});var i=n(539),t=n(4652);let s=(()=>{class r{constructor(a){this.sender=a}getConfig(){this.sender.get("config").subscribe({next:a=>this.configCallback(a),error:()=>{}})}configCallback(a){this.onDemandFollowersEnabled=a.body.on_demand_enabled}static{this.\u0275fac=function(c){return new(c||r)(i.KVO(t.t))}}static{this.\u0275prov=i.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},650(j,D,n){"use strict";n.d(D,{R:()=>k});var i=n(539),t=n(3421),s=n(559),r=n(1155),u=n(5261);const a=["countryOrigin"],c=["cityOrigin"];function m(N,B){1&N&&(i.j41(0,"span",9),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&N&&(i.R7$(),i.JRh(i.bMT(2,1,"shared.choose-proxy.select-country")))}function d(N,B){1&N&&(i.j41(0,"span",14),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&N&&(i.R7$(),i.SpI(" (",i.bMT(2,1,"shared.choose-proxy.recommended"),") "))}function A(N,B){if(1&N&&(i.j41(0,"div",10),i.nrm(1,"div",11),i.j41(2,"span",12),i.EFF(3),i.k0s(),i.DNE(4,d,3,3,"span",13),i.k0s()),2&N){const R=i.XpG();i.R7$(),i.HbH("iti__"+R.selectedCountry.code),i.R7$(2),i.JRh(R.selectedCountry.name),i.R7$(),i.Y8G("ngIf",R.selectedCountry&&R.selectedCountry.recommended)}}function M(N,B){1&N&&(i.j41(0,"div",15),i.nrm(1,"app-tooltip",16),i.k0s()),2&N&&(i.R7$(),i.Y8G("translateId","select-country"))}function y(N,B){1&N&&(i.j41(0,"span",14),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&N&&(i.R7$(),i.SpI(" (",i.bMT(2,1,"shared.choose-proxy.recommended"),") "))}function C(N,B){if(1&N){const R=i.RV6();i.j41(0,"div",23),i.bIt("click",function(){const O=i.eBV(R).$implicit,T=i.XpG(2);return i.Njj(T.pickCountry(O))}),i.nrm(1,"div",11),i.EFF(2),i.DNE(3,y,3,3,"span",13),i.k0s()}if(2&N){const R=B.$implicit;i.R7$(),i.HbH("iti__"+R.code),i.R7$(),i.SpI(" ",R.name," "),i.R7$(),i.Y8G("ngIf",R.recommended)}}function l(N,B){if(1&N){const R=i.RV6();i.j41(0,"div",17)(1,"div",18),i.nrm(2,"fa-icon",19),i.j41(3,"input",20),i.nI1(4,"translate"),i.mxI("ngModelChange",function(O){i.eBV(R);const T=i.XpG();return i.DH7(T.countriesFilter,O)||(T.countriesFilter=O),i.Njj(O)}),i.k0s()(),i.j41(5,"div",21),i.DNE(6,C,4,4,"div",22),i.k0s()()}if(2&N){const R=i.XpG();i.R7$(2),i.Y8G("icon",R.faMagnifyingGlass),i.R7$(),i.R50("ngModel",R.countriesFilter),i.Y8G("placeholder",i.bMT(4,4,"shared.choose-proxy.search-placeholder")),i.R7$(3),i.Y8G("ngForOf",R.getFilteredCountries())}}
1function f(N,B){if(1&N){const R=i.RV6();i.j41(0,"div",23),i.bIt("click",function(){const O=i.eBV(R).$implicit,T=i.XpG(3);return i.Njj(T.pickCity(O))}),i.EFF(1),i.k0s()}if(2&N){const R=B.$implicit;i.R7$(),i.SpI(" ",R," ")}}function S(N,B){if(1&N){const R=i.RV6();i.j41(0,"div",17)(1,"div",18),i.nrm(2,"fa-icon",19),i.j41(3,"input",20),i.nI1(4,"translate"),i.mxI("ngModelChange",function(O){i.eBV(R);const T=i.XpG(2);return i.DH7(T.citiesFilter,O)||(T.citiesFilter=O),i.Njj(O)}),i.k0s()(),i.j41(5,"div",21)(6,"div",23),i.bIt("click",function(){i.eBV(R);const O=i.XpG(2);return i.Njj(O.pickCity(null))}),i.EFF(7),i.nI1(8,"translate"),i.k0s(),i.DNE(9,f,2,1,"div",22),i.k0s()()}if(2&N){const R=i.XpG(2);i.R7$(2),i.Y8G("icon",R.faMagnifyingGlass),i.R7$(),i.R50("ngModel",R.citiesFilter),i.Y8G("placeholder",i.bMT(4,5,"shared.choose-proxy.search-city-placeholder")),i.R7$(4),i.SpI(" ",i.bMT(8,7,"shared.choose-proxy.any-city")," "),i.R7$(2),i.Y8G("ngForOf",R.getFilteredCities())}}function x(N,B){if(1&N){const R=i.RV6();i.qex(0),i.j41(1,"div",24,1),i.bIt("click",function(){i.eBV(R);const O=i.XpG();return i.Njj(O.toggleCity())}),i.j41(3,"span",12),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.nrm(6,"svg-icon",5),i.k0s(),i.DNE(7,S,10,9,"ng-template",7),i.bIt("overlayOutsideClick",function(){i.eBV(R);const O=i.XpG();return i.Njj(O.openCity=!1)}),i.bVm()}if(2&N){let R;const L=i.sdS(2),O=i.XpG();i.R7$(4),i.JRh(null!==(R=O.selectedCity)&&void 0!==R?R:i.bMT(5,11,"shared.choose-proxy.any-city")),i.R7$(2),i.AVh("flipped",O.openCity),i.Y8G("src",O.getImg("arrow_down_v1.svg")),i.R7$(),i.Y8G("cdkConnectedOverlayOrigin",L)("cdkConnectedOverlayOpen",O.openCity)("cdkConnectedOverlayPositions",O.positions)("cdkConnectedOverlayWidth",O.panelWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayMinHeight",160)("cdkConnectedOverlayViewportMargin",16)}}const w=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:4}];let k=(()=>{class N{constructor(R){this.agency=R,this.countries=[],this.cities=[],this.selectedCity=null,this.select=new i.bkB,this.selectCityChange=new i.bkB,this.openCountry=!1,this.openCity=!1,this.panelWidth=0,this.positions=w,this.faMagnifyingGlass=s.$UM,this.faClose=s.yYc,this.faAngleRight=s.vmR}onWindowResize(){this.overlays?.forEach(R=>R.overlayRef?.updatePosition())}getImg(R){return this.agency.getImg(R)}toggleCountry(){this.openCountry=!this.openCountry,this.openCountry&&(this.openCity=!1,this.panelWidth=this.countryOriginEl?.nativeElement.offsetWidth??0),this.mixpanelEvent("proxy_change")}toggleCity(){this.openCity=!this.openCity,this.openCity&&(this.openCountry=!1,this.panelWidth=this.cityOriginEl?.nativeElement.offsetWidth??0),this.mixpanelEvent("proxy_city_change")}pickCountry(R){this.select.emit(R),this.openCountry=!1}pickCity(R){this.selectCityChange.emit(R),this.openCity=!1}getFilteredCountries(){return this.countriesFilter?this.countries.filter(R=>R.name.toLowerCase().includes(this.countriesFilter.toLowerCase())):this.countries}getFilteredCities(){return this.citiesFilter?this.cities.filter(R=>R.toLowerCase().includes(this.citiesFilter.toLowerCase())):this.cities}mixpanelEvent(R,L){r.A.__loaded&&r.A.track(R,L)}static{this.\u0275fac=function(L){return new(L||N)(i.rXU(u.z))}}static{this.\u0275cmp=i.VBU({type:N,selectors:[["app-country-dropdown"]],viewQuery:function(L,O){if(1&L&&(i.GBs(a,5,i.aKT),i.GBs(c,5,i.aKT),i.GBs(t.b,5)),2&L){let T;i.mGM(T=i.lsd())&&(O.countryOriginEl=T.first),i.mGM(T=i.lsd())&&(O.cityOriginEl=T.first),i.mGM(T=i.lsd())&&(O.overlays=T)}},hostBindings:function(L,O){1&L&&i.bIt("resize",function(){return O.onWindowResize()},!1,i.tSv)},inputs:{countries:"countries",selectedCountry:"selectedCountry",isMobile:"isMobile",showTooltip:"showTooltip",cities:"cities",selectedCity:"selectedCity"},outputs:{select:"select",selectCityChange:"selectCityChange"},standalone:!1,decls:8,vars:14,consts:[["countryOrigin",""],["cityOrigin",""],[1,"dropdown-btn","dropdown-selector-country",3,"click"],["class","f-semi-bold f-size-16 color-text-3",4,"ngIf"],["class","h-box",4,"ngIf"],[1,"ic-arrow","fill-icon",3,"src"],["class","country-tooltip",4,"ngIf"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","country-dropdown-overlay",3,"overlayOutsideClick","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayMinHeight","cdkConnectedOverlayViewportMargin"],[4,"ngIf"],[1,"f-semi-bold","f-size-16","color-text-3"],[1,"h-box"],[1,"iti__flag"],[1,"f-semi-bold","f-size-16","color-text-2"],["class","f-semi-bold f-size-16 color-text-2 recommended",4,"ngIf"],[1,"f-semi-bold","f-size-16","color-text-2","recommended"],[1,"country-tooltip"],[3,"translateId"],[1,"country-dropdown-panel"],[1,"search-box"],[1,"icon-search","f-black",3,"icon"],["type","text",1,"search-input","f-semi-bold","f-size-16",3,"ngModelChange","ngModel","placeholder"],[1,"countries"],["class","dropdown-item f-semi-bold f-size-16",3,"click",4,"ngFor","ngForOf"],[1,"dropdown-item","f-semi-bold","f-size-16",3,"click"],[1,"dropdown-btn","dropdown-selector-country","city-dropdown-trigger",3,"click"]],template:function(L,O){if(1&L){const T=i.RV6();i.j41(0,"div",2,0),i.bIt("click",function(){return i.eBV(T),i.Njj(O.toggleCountry())}),i.DNE(2,m,3,3,"span",3)(3,A,5,4,"div",4),i.nrm(4,"svg-icon",5),i.DNE(5,M,2,1,"div",6),i.k0s(),i.DNE(6,l,7,6,"ng-template",7),i.bIt("overlayOutsideClick",function(){return i.eBV(T),i.Njj(O.openCountry=!1)}),i.DNE(7,x,8,13,"ng-container",8)}if(2&L){const T=i.sdS(1);i.R7$(2),i.Y8G("ngIf",!O.selectedCountry),i.R7$(),i.Y8G("ngIf",O.selectedCountry),i.R7$(),i.AVh("flipped",O.openCountry),i.Y8G("src",O.getImg("arrow_down_v1.svg")),i.R7$(),i.Y8G("ngIf",!O.isMobile&&O.showTooltip),i.R7$(),i.Y8G("cdkConnectedOverlayOrigin",T)("cdkConnectedOverlayOpen",O.openCountry)("cdkConnectedOverlayPositions",O.positions)("cdkConnectedOverlayWidth",O.panelWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayMinHeight",160)("cdkConnectedOverlayViewportMargin",16),i.R7$(),i.Y8G("ngIf",null==O.cities?null:O.cities.length)}},styles:["[_nghost-%COMP%]{display:block}.dropdown-btn[_ngcontent-%COMP%]{margin:0 auto;width:100%;position:relative;cursor:pointer}.city-dropdown-trigger[_ngcontent-%COMP%]{margin-top:12px}.iti__flag[_ngcontent-%COMP%]{border-radius:2px;margin-right:10px}.country-tooltip[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translate(30px,-50%)}.recommended[_ngcontent-%COMP%]{margin-left:2px}.ic-arrow[_ngcontent-%COMP%]{width:14px;position:absolute;right:24px;top:50%;transform:translateY(-50%);transition:transform .15s ease}.ic-arrow.flipped[_ngcontent-%COMP%]{transform:translateY(-50%) rotateX(180deg)}"]})}}return N})()},3929(j,D,n){"use strict";n.d(D,{P:()=>t});var i=n(9556);class t{isOneTime(){return"one_time"==this.durationType}isLimitedTime(){return"limited_period"==this.durationType}isForeverTime(){return"forever"==this.durationType}isExpired(){return"expired"==this.status}initNote(r,u){this.isOneTime()?this.note=u.instant("onboarding.coupon-box.one-month-coupon",{price:r.getPrice(),period:i.I.getPeriod(r.periodUnit,u).toLowerCase(),periody:i.I.getPeriodY(r.periodUnit,u).toLowerCase()}):this.isLimitedTime()?this.note=u.instant("onboarding.coupon-box.limited-coupon",{price:r.getPrice(),coupon_period:this.period,coupon_period_s:i.I.getPeriodS(this.periodUnit,u).toLowerCase(),plan_period_unit_y:i.I.getPeriodY(r.periodUnit,u).toLowerCase()}):this.isForeverTime()&&(this.note=u.instant("onboarding.coupon-box.forever-coupon"))}static parse(r){const u=new t;return u.name=r.name,u.status=r.status,u.durationType=r.duration_type,u.duratioMonth=r.duration_month,u.discountPercentage=r.discount_percentage,u.discountQuantity=r.discount_quantity,u.discountAmount=r.discount_amount,u.period=r.period,u.periodUnit=r.period_unit,u.currencyCode=r.currency_code,u.applyOn=r.apply_on,u}}},2487(j,D,n){"use strict";n.d(D,{O:()=>M});var i=n(539),t=n(7919),s=n(271),r=n(1318),u=n(3929),a=n(5519),c=n(4054),m=n(1081),d=n(4652),A=n(325);let M=(()=>{class y{constructor(l,f){this.httpSender=l,this.translateService=f,this.newTotal=-1,this.couponEmitter=new i.bkB,this.autoApplyCache={},this.clear()}clear(){this.selectedCoupon=null,this.existingCoupon=null}clearLocalStorage(){localStorage.removeItem("couponId")}getCouponForSubscription(l){return l?localStorage.getItem(`couponId_${l}`):null}setCouponForSubscription(l,f){l?localStorage.setItem(`couponId_${l}`,f):localStorage.setItem("couponId_pending",f)}
1removeCouponForSubscription(l){l?localStorage.removeItem(`couponId_${l}`):localStorage.removeItem("couponId_pending")}migratePendingCoupon(l){const f=localStorage.getItem("couponId_pending");f&&l&&(this.setCouponForSubscription(l,f),localStorage.removeItem("couponId_pending"))}getPendingCoupon(){return localStorage.getItem("couponId_pending")}onPlanChange(){}getCoupon(l,f){return f.coupon=new u.P,f.coupon.name=l,f.coupon.loading=!0,this.httpSender.get("billing/coupons/"+l).pipe((0,s.T)(S=>{const x=u.P.parse(S.body.coupon);return x.loading=!0,x.code=l,f.coupon=x,f.coupon.error=null,x.isExpired()?(f.coupon.loading=!1,f.coupon.error=this.translateService.instant("errors.coupons.expired"),x):(x.initNote(f,this.translateService),x)}),(0,r.W)(S=>(this.selectedCoupon=null,f.coupon.loading=!1,f.coupon.error=this.translateService.instant("errors.coupons.not-found"),(0,t.$)(()=>S))))}getNewSubscriptionEstimate(l,f){return this.newTotal=-1,this.httpSender.get("billing/coupons/"+l+"/estimate/"+f.id).pipe((0,s.T)(S=>{f.coupon.loading=!1;const x=m.HM.parse(S.body.estimate);return null!=x.getTotal()&&(f.coupon.newPrice=x.getPrice(),f.coupon.newPriceAmount=x.getTotal(),this.newTotal=x.getTotal()),this.selectedCoupon=l,x}),(0,r.W)(S=>{if(f.coupon.loading=!1,S.error&&S.error.error){let x=S.error.error.message;f.coupon.error=x.includes("has already expired")?this.translateService.instant("errors.coupons.expired"):x.includes("cannot be applied")?this.translateService.instant("errors.coupons.not-applicable-to-plan",{coupon:l}):x||this.translateService.instant("errors.coupons.not-found")}else f.coupon.error=this.translateService.instant("errors.coupons.not-found");return(0,t.$)(()=>S)}))}getUpdateSubscriptionEstimate(l,f,S){let x=new c.Nl;return f&&(x=x.append("coupon_id",f)),this.newTotal=-1,x=x.append("price_id",l.id),this.httpSender.get("subscriptions/"+S.uuid+"/update-estimate",x).pipe((0,s.T)(w=>{const k=m.HM.parse(w.body.estimate),U=k.getTotal();if(k.invoiceEstimate){if(!f)return k;if(!k.hasCoupon())throw new Error("coupon_not_applicable")}else{if(!k.nextInvoiceEstimate)throw new Error("coupon_not_applicable");if(!f)return k;if(!k.hasCoupon())throw new Error("coupon_not_applicable")}return null!=U&&l&&l.coupon&&(l.coupon.newPrice=this.getPrice(U,k.getCurrency()),l.coupon.newPriceAmount=U,this.newTotal=U),this.selectedCoupon=f,k}),(0,r.W)(w=>{if(l.coupon.loading=!1,"coupon_not_applicable"==w.message)l.coupon.error=this.translateService.instant("errors.coupons.not-applicable-to-subscription",{coupon:f});else if(w.error&&w.error.error){let k=w.error.error.message;l.coupon.error=k.includes("has already expired")?this.translateService.instant("errors.coupons.expired"):k.includes("cannot be applied")?this.translateService.instant("errors.coupons.not-applicable-to-plan",{coupon:f}):k||this.translateService.instant("errors.coupons.not-found")}else l.coupon.error=this.translateService.instant("errors.coupons.not-found");return(0,t.$)(()=>w)}))}applyCoupon(l,f,S){return this.httpSender.post("subscriptions/"+f.uuid+"/coupon",{coupon:S}).pipe((0,r.W)(x=>{if(l.coupon.loading=!1,x.error&&x.error.error){let w=x.error.error.message;l.coupon.error=w.includes("has already expired")?this.translateService.instant("errors.coupons.expired"):w.includes("cannot be applied")?this.translateService.instant("errors.coupons.not-applicable-to-plan",{coupon:S}):w?w.includes(" : ")?w.substring(w.indexOf(" : ")+3):w:this.translateService.instant("errors.unknow-exception")}else l.coupon.error=this.translateService.instant("errors.unknow-exception");return(0,t.$)(()=>x)}))}getPrice(l,f){return a.g.getPrice(l,f)}static{this.\u0275fac=function(f){return new(f||y)(i.KVO(d.t),i.KVO(A.c$))}}static{this.\u0275prov=i.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},189(j,D,n){"use strict";n.d(D,{z:()=>r});var i=n(325),t=n(539),s=n(5261);let r=(()=>{class u extends i.B4{constructor(c){super(),this.agency=c,this.defaultParams={},this.defaultParams.brand_name=this.agency.agency.brandName}interpolate(c,m){m||(m={});for(let d of Object.keys(this.defaultParams))m[d]=this.defaultParams[d];return super.interpolate(c,m)}static{this.\u0275fac=function(m){return new(m||u)(t.KVO(s.z))}}static{this.\u0275prov=t.jDH({token:u,factory:u.\u0275fac})}}return u})()},4409(j,D,n){"use strict";n.d(D,{m:()=>m});var i=n(1229),t=n(3213),s=n(3070),r=n(1155),u=n(539),a=n(4652),c=n(2416);let m=(()=>{class d{constructor(M,y){this.http=M,this.intercomSerice=y}getCustomer(){this.http.get("customer").subscribe({next:M=>{let y=M.body.customer;if(this.firstName=y.first_name,this.lastName=y.last_name,this.phone=y.phone,this.isOptedIn=y.opted_in,this.email=y.email,this.paymentVerified=y.payment_verified,this.paymentVerificationEnabled=y.payment_verification_enabled,this.id=y.id,this.createdAt=y.created_at,this.showProductTour=y.show_product_tour,this.intercomSerice.customerEmail=this.email,this.intercomSerice.customerFirstName=this.firstName,this.intercomSerice.customerLastName=this.lastName,this.intercomSerice.customerPhone=this.phone,y.billing_address){const C=y.billing_address;this.billingAddress={firstName:C.first_name,lastName:C.last_name,address:C.line1,city:C.city,company:C.company,country:(0,s.j)(C.country),vat:C.vat_number,zip:C.zip}}this.identifySentry(),this.identifyFullStory(),this.identifyGTM(),this.indentifyCustomerIO(),this.identifyMixpanel(),this.identifyMartech()},error:M=>
1{console.error(M)}})}updatePhone(M,y,C){const l={opted_in:y};return null!==M&&(l.phone=M),this.http.patch("customer/phone?source="+C,l)}updateProductTour(M){return this.http.patch("customer/product-tour",{show_product_tour:M})}updateCustomer(M){return this.http.patch("customer",M)}getFullName(){return this.firstName&&this.lastName?this.firstName+" "+this.lastName:this.firstName?this.firstName:this.lastName}indentifyCustomerIO(){window._cio&&window._cio.identify({id:this.email,first_name:this.firstName,last_name:this.lastName,created_at:Math.floor(Date.now()/1e3)})}identifySentry(){i.gV({email:this.email,first_name:this.firstName,last_name:this.lastName})}identifyFullStory(){t.Dp()&&t.ls(this.id,{displayName:this.firstName+" "+this.lastName,email:this.email})}identifyMartech(){window.martech&&window.martech.identify(this.id,{email:this.email,first_name:this.firstName,last_name:this.lastName,phone:this.phone,customer_id:this.id,created_at:this.createdAt,opted_in:this.isOptedIn,payment_verified:this.paymentVerified,billing_first_name:this.billingAddress?.firstName,billing_last_name:this.billingAddress?.lastName,billing_address:this.billingAddress?.address,billing_city:this.billingAddress?.city,billing_company:this.billingAddress?.company,billing_country:this.billingAddress?.country,billing_vat:this.billingAddress?.vat,billing_zip:this.billingAddress?.zip})}identifyGTM(){window.dataLayer.push({user_id:this.email.split("").map(M=>M.charCodeAt(0).toString(16)).join(""),event:"userIdSet"})}identifyMixpanel(M,y){if(!r.A.__loaded)return;const C=M||this.id;if(!C)return;r.A.identify(C);const l={$first_name:this.firstName,$last_name:this.lastName,$email:this.email,"Customer ID":this.id};M&&(l["Subscription UUID"]=M),y&&(l["User Status"]="unidentified"),r.A.people.set(l)}updateMixpanelSubscriptionStatus(M,y,C){if(!r.A.__loaded)return;const l={};if(M&&(l["Current Subscription Status"]=M),C&&(l["Instagram Username"]=C),y&&y.length>0){const f=y.map(S=>`${S.username?`@${S.username}`:"N/A"}: ${S.status}${S.planName?` (${S.planName})`:""}`).join("\n");l["All Subscriptions"]=f,l["Subscriptions Count"]=y.length}Object.keys(l).length>0&&r.A.people.set(l)}static{this.\u0275fac=function(y){return new(y||d)(u.KVO(a.t),u.KVO(c.r))}}static{this.\u0275prov=u.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},7497(j,D,n){"use strict";n.d(D,{k:()=>s});var i=n(7043),t=n(539);let s=(()=>{class r{constructor(){}getFromDate(a){let c=new Date;switch(a){case i.a.WEEK:c.setDate(c.getDate()-7);break;case i.a.MONTH:c.setDate(c.getDate()-30);break;case i.a.TWO_MONTHS:c.setDate(c.getDate()-60);break;case i.a.THREE_MONTHS:c.setDate(c.getDate()-90)}return c}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},0(j,D,n){"use strict";n.d(D,{I:()=>t});var i=n(539);let t=(()=>{class s{constructor(){}static{this.\u0275fac=function(a){return new(a||s)}}static{this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},1081(j,D,n){"use strict";n.d(D,{HM:()=>s});var i=n(3929),t=n(5519);class s{static parse(c){const m=new s,d=c.subscription_estimate;d&&(m.nextBillingAt=d.next_billing_at);const A=c.invoice_estimate;A&&(m.invoiceEstimate=r.parse(A));const M=c.next_invoice_estimate;return M&&(m.nextInvoiceEstimate=r.parse(M)),m}getInvoiceTotal(){return this.invoiceEstimate?this.invoiceEstimate.amountDue:0}hasCoupon(){return null!=this.getCouponName()}getCoupon(){if(this.invoiceEstimate)for(let c of this.invoiceEstimate.discounts)if(c.isCoupon())return c.coupon;if(this.nextInvoiceEstimate)for(let c of this.nextInvoiceEstimate.discounts)if(c.isCoupon())return c.coupon;return null}getCouponName(){if(this.invoiceEstimate)for(let c of this.invoiceEstimate.discounts)if(c.isCoupon())return c.description.split(" - ")[0].toUpperCase();if(this.nextInvoiceEstimate)for(let c of this.nextInvoiceEstimate.discounts)if(c.isCoupon())return c.description.split(" - ")[0].toUpperCase();return null}getCouponNote(){if(this.invoiceEstimate)for(let c of this.invoiceEstimate.discounts)if(c.coupon)return c.coupon.note;if(this.nextInvoiceEstimate)for(let c of this.nextInvoiceEstimate.discounts)if(c.coupon)return c.coupon.note;return null}getTotal(){return this.invoiceEstimate?this.invoiceEstimate.amountDue:this.nextInvoiceEstimate?this.nextInvoiceEstimate.amountDue:0}getSubstotal(){return this.invoiceEstimate?this.invoiceEstimate.subTotal:this.nextInvoiceEstimate?this.nextInvoiceEstimate.subTotal:0}getCurrency(){return this.invoiceEstimate?this.invoiceEstimate.currencyCode:this.nextInvoiceEstimate?this.nextInvoiceEstimate.currencyCode:""}getPrice(){return t.g.getPrice(this.getTotal(),this.getCurrency())}getOldPrice(){return t.g.getPrice(this.getSubstotal(),this.getCurrency())}hasDiscount(){return this.getTotal()!=this.getSubstotal()}}class r{static parse(c){const m=new r;m.amountDue=c.amount_due,m.total=c.total,m.subTotal=c.sub_total,m.currencyCode=c.currency_code,m.creditsApplied=c.credits_applied,m.discounts=[];const d=c.discounts;if(d)for(let A of d)m.discounts.push(u.parse(A));return m}}class u{static parse(c){const m=new u;m.amount=c.amount,m.description=c.description,m.entityType=c.entity_type;const d=c.coupon;return d&&(m.coupon=i.P.parse(d)),m}isCoupon(){return this.entityType&&this.entityType.includes("coupon")}}},6067(j,D,n){"use strict";n.d(D,{X:()=>t});var i=n(2986);class t{constructor(r,u){this.id=r,this.translateId=u}getName(r){const a=r.instant("shared.features."+this.translateId);return this.id===i.W.FOLLOWER_BURST.id&&this.value?this.value.split(":")[1]+" "+a:this.id===i.W.GUARANTEED_FOLLOWERS.id&&this.value?this.value+" "+a:a}static parse(r){const u=r.feature_id,a=i.W.getTranslateId(u),c=new t(u,a);return c.enabled=r.enabled,c.level=r.feature_level,c.value=r.value,c}}},2986(j,D,n){"use strict";n.d(D,{D:()=>t,W:()=>s});var i=n(539),t=function(r){return r[r.WORKING=1]="WORKING",r[r.BROKEN=2]="BROKEN",r[r.COMMING_SOON=3]="COMMING_SOON",r}(t||{});class s{static{this.FOLLOW_UNFOLLOW={id:"follow-unfollow",translateId:"follow-unfollow",status:t.WORKING}}static{this.CLOSE_FRIENDS={id:"close-friends",translateId:"close-friends",status:t.WORKING}}static{this.STORY_LIKING={id:"story-liking",translateId:"story-liking",status:t.COMMING_SOON}}static{this.LIKE_AFTER_FOLLOW={id:"like-after-followback",translateId:"like-after-follow",status:t.WORKING}}static{this.LOCATION_TARGETING={id:"location-targeting",translateId:"location-targeting",status:t.COMMING_SOON}}static{this.WELCOM_DM={id:"welcome-dm",translateId:"dm",status:t.WORKING}}static{this.GENDER_FILTERING={id:"gender-filtering",translateId:"gender-filtering",status:t.WORKING}}static{this.STRATEGY_CALLS={id:"account-manager-call",translateId:"strategy-calls",status:t.WORKING}}static{this.IG_AUDIT={id:"instagram-audit",translateId:"audit",status:t.WORKING}}
1static{this.FOLLOWER_BURST={id:"follower-bursts",translateId:"follower-burst",status:t.WORKING}}static{this.GUARANTEED_FOLLOWERS={id:"guaranteed-followers",translateId:"guaranteed-followers",status:t.WORKING}}static{this.featureConfigs={}}static{this.featureConfigs[s.STORY_LIKING.id]=s.STORY_LIKING,this.featureConfigs[s.LIKE_AFTER_FOLLOW.id]=s.LIKE_AFTER_FOLLOW,this.featureConfigs[s.LOCATION_TARGETING.id]=s.LOCATION_TARGETING,this.featureConfigs[s.WELCOM_DM.id]=s.WELCOM_DM,this.featureConfigs[s.GENDER_FILTERING.id]=s.GENDER_FILTERING,this.featureConfigs[s.STRATEGY_CALLS.id]=s.STRATEGY_CALLS,this.featureConfigs[s.IG_AUDIT.id]=s.IG_AUDIT,this.featureConfigs[s.FOLLOWER_BURST.id]=s.FOLLOWER_BURST,this.featureConfigs[s.GUARANTEED_FOLLOWERS.id]=s.GUARANTEED_FOLLOWERS,this.featureConfigs[s.FOLLOW_UNFOLLOW.id]=s.FOLLOW_UNFOLLOW,this.featureConfigs[s.CLOSE_FRIENDS.id]=s.CLOSE_FRIENDS}constructor(){}static getTranslateId(u){return s.featureConfigs[u]?s.featureConfigs[u].translateId:null}static getStatus(u){return s.featureConfigs[u]?s.featureConfigs[u].status:null}static{this.\u0275fac=function(a){return new(a||s)}}static{this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}},4676(j,D,n){"use strict";n.d(D,{T:()=>E});var i=n(9767),t=n(539),s=n(5261),r=n(5498),u=n(4409),a=n(74),c=n(5280),m=n(325);function d(e,p){1&e&&t.nrm(0,"div",11),2&e&&t.Y8G("@fadeInOut",void 0)}function A(e,p){if(1&e&&(t.j41(0,"div",12),t.EFF(1),t.k0s()),2&e){const P=t.XpG
1(2);t.R7$(),t.SpI(" ",P.getLetter()," ")}}function M(e,p){if(1&e&&t.nrm(0,"img",13),2&e){const P=t.XpG(2);t.Y8G("src",P.authService.accountImg,t.B4B)}}function y(e,p){if(1&e&&(t.j41(0,"div",12),t.EFF(1),t.k0s()),2&e){const P=t.XpG(3);t.R7$(),t.SpI(" ",P.getLetter()," ")}}function C(e,p){if(1&e&&t.nrm(0,"img",13),2&e){const P=t.XpG(3);t.Y8G("src",P.authService.accountImg,t.B4B)}}function l(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",27),t.bIt("click",function(){const K=t.eBV(P).$implicit,W=t.XpG(4);return t.Njj(W.userService.onChangeSubscription(K))}),t.nrm(1,"img",28),t.j41(2,"div",18),t.EFF(3),t.k0s(),t.nrm(4,"img",29),t.k0s()}if(2&e){const P=p.$implicit;t.R7$(),t.Y8G("src",P.img,t.B4B),t.R7$(2),t.SpI(" @",P.username," "),t.R7$(),t.Y8G("src",P.getSocialNetworkLogo(),t.B4B)}}function f(e,p){if(1&e&&(t.j41(0,"div",24)(1,"div",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,l,5,3,"div",26),t.k0s()),2&e){const P=t.XpG(3);t.R7$(2),t.SpI(" ",t.bMT(3,2,"onboarding.floating-user.accounts")," "),t.R7$(2),t.Y8G("ngForOf",P.activeUsers)}}function S(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",27),t.bIt("click",function(){const K=t.eBV(P).$implicit,W=t.XpG(4);return t.Njj(W.userService.onChangeSubscription(K))}),t.nrm(1,"img",28),t.j41(2,"div",18),t.EFF(3),t.k0s(),t.nrm(4,"img",29),t.k0s()}if(2&e){const P=p.$implicit;t.R7$(),t.Y8G("src",P.img,t.B4B),t.R7$(2),t.SpI(" @",P.username," "),t.R7$(),t.Y8G("src",P.getSocialNetworkLogo(),t.B4B)}}function x(e,p){if(1&e&&(t.j41(0,"div",30)(1,"div",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,S,5,3,"div",26),t.k0s()),2&e){const P=t.XpG
1(3);t.R7$(2),t.SpI(" ",t.bMT(3,2,"onboarding.floating-user.drafts")," "),t.R7$(2),t.Y8G("ngForOf",P.draftUsers)}}function w(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",31),t.bIt("click",function(){t.eBV(P);const K=t.XpG(3);return t.Njj(K.onLogout())}),t.nrm(1,"svg-icon",32),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&e){const P=t.XpG(3);t.R7$(),t.Y8G("src",P.agency.getImg("log_out_v1.svg")),t.R7$(),t.SpI(" ",t.bMT(3,2,"onboarding.floating-user.logout")," ")}}function k(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",33),t.bIt("click",function(){t.eBV(P);const K=t.XpG(3);return t.Njj(K.onExitOnboarding())}),t.nrm(1,"svg-icon",34),t.EFF(2),t.k0s()}if(2&e){const P=t.XpG(3);t.R7$(),t.Y8G("src",P.agency.getImg("log_out_v1.svg")),t.R7$(),t.SpI(" ",P.getExitOnboardingText()," ")}}function U(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",14),t.bIt("click",function(K){return t.eBV(P),t.Njj(K.stopPropagation())}),t.j41(1,"div",15)(2,"div",16),t.DNE(3,y,2,1,"div",8)(4,C,1,1,"img",9),t.k0s(),t.j41(5,"div",17)(6,"div",18),t.EFF(7),t.k0s(),t.j41(8,"div",19),t.EFF(9),t.k0s()()(),t.DNE(10,f,5,4,"div",20)(11,x,5,4,"div",21)(12,w,4,4,"div",22)(13,k,3,2,"div",23),t.k0s()}
1if(2&e){const P=t.XpG(2);t.Y8G("@fadeInOut",void 0),t.R7$(2),t.AVh("bkg-green",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.authService.isGoogleAccount),t.R7$(3),t.SpI(" ",P.authService.name," "),t.R7$(2),t.SpI(" ",P.authService.email," "),t.R7$(),t.Y8G("ngIf",P.activeUsers&&P.activeUsers.length>0),t.R7$(),t.Y8G("ngIf",P.draftUsers.length>0&&P.activeUsers),t.R7$(),t.Y8G("ngIf",!P.activeUsers),t.R7$(),t.Y8G("ngIf",P.activeUsers)}}function N(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",3),t.bIt("click",function(K){t.eBV(P);const W=t.XpG();return t.Njj(W.onToggleShowUser(K))}),t.j41(1,"div",4),t.EFF(2),t.k0s(),t.j41(3,"div",5),t.DNE(4,d,1,1,"div",6),t.j41(5,"div",7),t.DNE(6,A,2,1,"div",8)(7,M,1,1,"img",9),t.k0s()(),t.DNE(8,U,14,11,"div",10),t.k0s()}if(2&e){const P=t.XpG();t.R7$(2),t.SpI(" ",P.authService.name," "),t.R7$(2),t.Y8G("ngIf",P.showUser),t.R7$(),t.AVh("show-user",P.showUser)("bkg-green",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.showUser)}}function B(e,p){1&e&&t.nrm(0,"div",11),2&e&&t.Y8G("@fadeInOut",void 0)}function R(e,p){if(1&e&&(t.j41(0,"div",12),t.EFF(1),t.k0s()),2&e){const P=t.XpG
1(2);t.R7$(),t.SpI(" ",P.getLetter()," ")}}function L(e,p){if(1&e&&t.nrm(0,"img",13),2&e){const P=t.XpG(2);t.Y8G("src",P.authService.accountImg,t.B4B)}}function O(e,p){if(1&e&&(t.j41(0,"div",12),t.EFF(1),t.k0s()),2&e){const P=t.XpG(3);t.R7$(),t.SpI(" ",P.getLetter()," ")}}function T(e,p){if(1&e&&t.nrm(0,"img",13),2&e){const P=t.XpG(3);t.Y8G("src",P.authService.accountImg,t.B4B)}}function I(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",14),t.bIt("click",function(K){return t.eBV(P),t.Njj(K.stopPropagation())}),t.j41(1,"div",15)(2,"div",16),t.DNE(3,O,2,1,"div",8)(4,T,1,1,"img",9),t.k0s(),t.j41(5,"div",17)(6,"div",18),t.EFF(7),t.k0s(),t.j41(8,"div",19),t.EFF(9),t.k0s()()(),t.j41(10,"div",33),t.bIt("click",function(){t.eBV(P);const K=t.XpG(2);return t.Njj(K.onLogout())}),t.nrm(11,"svg-icon",34),t.EFF(12),t.nI1(13,"translate"),t.k0s()()}if(2&e){const P=t.XpG(2);t.Y8G("@fadeInOut",void 0),t.R7$(2),t.AVh("bkg-green",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.authService.isGoogleAccount),t.R7$(3),t.SpI(" ",P.authService.name," "),t.R7$(2),t.SpI(" ",P.authService.email," "),t.R7$(2),t.Y8G("src",P.agency.getImg("log_out_v1.svg")),t.R7$(),t.SpI(" ",t.bMT(13,9,"onboarding.floating-user.logout")," ")}}function h(e,p){if(1&e){const P=t.RV6();t.j41(0,"div",35)(1,"div",36),t.nrm(2,"img",37),t.j41(3,"div",38),t.bIt("click",function(K){t.eBV(P);const W=t.XpG();return t.Njj(W.onToggleShowUser(K))}),t.DNE(4,B,1,1,"div",6),t.j41(5,"div",7),t.DNE(6,R,2,1,"div",8)(7,L,1,1,"img",9),t.k0s()(),t.DNE(8,I,14,11,"div",10),t.k0s()()}
1if(2&e){const P=t.XpG();t.R7$(2),t.Y8G("src",P.agency.agency.logoOnboardingSmall,t.B4B),t.R7$(2),t.Y8G("ngIf",P.showUser),t.R7$(),t.AVh("show-user",P.showUser)("bkg-green",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",!P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.authService.isGoogleAccount),t.R7$(),t.Y8G("ngIf",P.showUser&&!P.activeUsers)}}function v(e,p){if(1&e&&t.nrm(0,"app-mobile-account-chooser",39),2&e){const P=t.XpG();t.Y8G("floatingUser",P)("@routeAnimation",void 0)}}let E=(()=>{class e{constructor(P,G,K,W,$,X){this.agency=P,this.authService=G,this.customerService=K,this.userService=W,this.onboardingService=$,this.translateService=X}ngOnInit(){this.activeUsers=[],this.draftUsers=[];for(let P of this.userService.subscriptions)P.isDraft()?this.draftUsers.push(P):this.activeUsers.push(P);0==this.activeUsers.length&&(this.activeUsers=null)}onToggleShowUser(P){this.showUser=!this.showUser,P.stopPropagation()}onLogout(){this.authService.logout(!0)}getExitSubscription(){let P=null;if(this.onboardingService.lastSubscription&&this.onboardingService.lastSubscription.hasAccount()&&(P=this.onboardingService.lastSubscription),!P)for(let G=0;G<this.activeUsers.length&&!P;G++)this.activeUsers[G].hasAccount()&&(P=this.activeUsers[G]);return P}getExitOnboardingText(){return null!==this.getExitSubscription()?this.translateService.instant("onboarding.floating-user.exit-onboarding"):this.translateService.instant("onboarding.floating-user.logout")}onExitOnboarding(){const P=this.getExitSubscription();P?this.userService.onChangeSubscription(P):this.authService.logout(!0)}getLetter(){return this.customerService.firstName&&this.customerService.firstName.length>0?this.customerService.firstName.substring(0,1).toUpperCase():this.customerService.lastName&&this.customerService.lastName.length>0?this.customerService.lastName.substring(0,1).toUpperCase():this.authService.name&&this.authService.name.length>0?this.authService.name.substring(0,1).toUpperCase():this.customerService.email?this.customerService.email.substring(0,1).toUpperCase():"A"}isMobile(){return window.innerWidth<900}onClick(){this.showUser&&(this.showUser=!1)}static{this.\u0275fac=function(G){return new(G||e)(t.rXU(s.z),t.rXU(r.u),t.rXU(u.m),t.rXU(a.D),t.rXU(c.x$),t.rXU(m.c$))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-floating-user"]],hostBindings:function(G,K){1&G&&t.bIt("click",function($){return K.onClick($)},!1,t.EBC)},standalone:!1,decls:3,vars:3,consts:[["class","h-box floating-user",3,"click",4,"ngIf"],["class","mobile",4,"ngIf"],[3,"floatingUser",4,"ngIf"],[1,"h-box","floating-user",3,"click"],[1,"color-text-3","f-medium","f-size-16"],[1,"img-box"],["class","img-border border-bkg-4",4,"ngIf"],[1,"icon-name","color-white"],["class","f-size-28 f-regular letter",4,"ngIf"],["class","google-img","referrerpolicy","no-referrer",3,"src",4,"ngIf"],["class","dropdown-box",3,"click",4,"ngIf"],[1,"img-border","border-bkg-4"],[1,"f-size-28","f-regular","letter"],["referrerpolicy","no-referrer",1,"google-img",3,"src"],[1,"dropdown-box",3,"click"],[1,"h-box","top","border-bkg-3"],[1,"icon-name-dropdown","color-white"],[1,"right"],[1,"f-size-14","f-medium","color-text-2"],[1,"f-size-12","f-regular","color-text-3"],["class","accounts",4,"ngIf"],["class","drafts border-bkg-3",4,"ngIf"],["class","bottom border-bkg-3 dropdown-item-hover f-size-14 f-regular",3,"click",4,"ngIf"],["class","bottom border-bkg-3 dropdown-item-hover f-size-14 f-regular color-text-2",3,"click",4,"ngIf"],[1,"accounts"],[1,"f-size-14","f-medium","color-text-3","acc-title"],["class","h-box acc dropdown-item-hover",3,"click",4,"ngFor","ngForOf"],[1,"h-box","acc","dropdown-item-hover",3,"click"],[1,"acc-img",3,"src"],[1,"platform-logo",3,"src"],[1,"drafts","border-bkg-3"],[1,"bottom","border-bkg-3","dropdown-item-hover","f-size-14","f-regular",3,"click"],[1,"ic-logout","stroke-icon","color-text-2",3,"src"],[1,"bottom","border-bkg-3","dropdown-item-hover","f-size-14","f-regular","color-text-2",3,"click"],[1,"ic-logout","stroke-icon",3,"src"],[1,"mobile"],[1,"h-box","space-between","header","bkg-2"],[1,"logo",3,"src"],[1,"img-box",3,"click"],[3,"floatingUser"]],template:function(G,K){1&G&&t.DNE(0,N,9,9,"div",0)(1,h,9,9,"div",1)(2,v,1,2,"app-mobile-account-chooser",2),2&G&&(t.Y8G("ngIf",!K.isMobile()),t.R7$(),t.Y8G("ngIf",K.isMobile()),t.R7$(),t.Y8G("ngIf",K.activeUsers&&K.showUser&&K.isMobile()))},styles:[".floating-user[_ngcontent-%COMP%]{position:absolute;right:40px;top:40px;z-index:1;cursor:pointer}
1.icon-name[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%;display:flex;justify-content:center;align-self:center;line-height:50px;cursor:pointer;transition:all .15s ease-in}.icon-name-dropdown[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%;display:flex;justify-content:center;align-self:center;line-height:50px;pointer-events:none}.icon-name[_ngcontent-%COMP%]:hover{filter:brightness(.9)}.icon-name.show-user[_ngcontent-%COMP%]{transform:scale(.8)}.img-border[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:50%;border-width:2px;border-style:solid}.letter[_ngcontent-%COMP%]{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.img-box[_ngcontent-%COMP%]{position:relative;width:50px;height:50px;margin-left:12px;border-radius:50%}.dropdown-box[_ngcontent-%COMP%]{position:absolute;border-radius:10px;top:58px;right:0;box-shadow:0 5px 10px #0a17530d;max-width:400px;min-width:350px;overflow:hidden;z-index:1}.right[_ngcontent-%COMP%]{margin-left:12px}.top[_ngcontent-%COMP%]{padding:20px;border-bottom-style:solid;border-bottom-width:1px;cursor:initial}.bottom[_ngcontent-%COMP%]{height:53px;display:flex;align-items:center;border-top-style:solid;border-top-width:1px}.ic-logout[_ngcontent-%COMP%]{margin-left:20px;margin-right:8px;width:20px;height:20px}.google-img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.logo[_ngcontent-%COMP%]{margin-left:20px}.accounts[_ngcontent-%COMP%]{padding-top:8px;max-height:35vh;overflow-y:auto}.drafts[_ngcontent-%COMP%]{border-top-style:solid;border-top-width:1px;padding-top:8px}.acc[_ngcontent-%COMP%]{position:relative;padding:0 30px;height:55px}.acc-title[_ngcontent-%COMP%]{margin-left:30px}.acc-img[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.platform-logo[_ngcontent-%COMP%]{position:absolute;width:28px;height:28px;right:30px}@media only screen and (max-height: 1000px){.floating-user[_ngcontent-%COMP%]{top:14px;right:14px}.img-box[_ngcontent-%COMP%]{width:32px;height:32px}.icon-name[_ngcontent-%COMP%]{width:32px;height:32px;line-height:32px}.dropdown-box[_ngcontent-%COMP%]{top:40px}.letter[_ngcontent-%COMP%]{font-size:22px}}.mobile[_ngcontent-%COMP%]{height:40px}.header[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100vw;height:60px;box-shadow:0 2px 4px #00000026;margin-bottom:0;z-index:3}@media only screen and (max-width: 899px){.icon-name-dropdown[_ngcontent-%COMP%]{width:40px;height:40px;line-height:40px}.img-box[_ngcontent-%COMP%]{height:60px;width:60px;padding:12.5px;margin-right:7.5px}.img-border[_ngcontent-%COMP%]{position:absolute;left:12.5px;top:12.5px;width:35px;height:35px;border-radius:50%}.icon-name[_ngcontent-%COMP%]{width:35px;height:35px;line-height:35px}.dropdown-box[_ngcontent-%COMP%]{top:70px}.letter[_ngcontent-%COMP%]{font-size:22px}.dropdown-box[_ngcontent-%COMP%]{box-shadow:0 0 10px #0000001a;left:20px;right:20px;max-width:initial;min-width:initial}.bottom[_ngcontent-%COMP%]{height:45px}}"],data:{animation:[i.Ws,i.Eb]}})}}return e})()},5515(j,D,n){"use strict";n.d(D,{b:()=>i});let i=(()=>{class t{static{this.basicPlan={name:"Instagram Rising Star",id:"instagram-rising-star",shortName:"Rising Star"}}static{this.proPlan={name:"Instagram as a Business",id:"instagram-business",shortName:"Business"}}static{this.igImagePrefix="https://corset.flocksocial.io/"}static{this.cndImagePrefix="https://cdninsta.com/instagram-profile/"}}return t})()},6092(j,D,n){"use strict";n.d(D,{d:()=>u});var i=n(539),t=n(2101),s=n(7043),r=n(5261);let u=(()=>{class a{constructor(m){this.agency=m,this.onPeriodChange=new i.bkB,this.onChartChange=new i.bkB,this.selectedPeriod=s.a.WEEK,this.periodList=[s.a.WEEK,s.a.MONTH,s.a.TWO_MONTHS,s.a.THREE_MONTHS],this.chartType=this.agency.agency.guaranteedFollowers?t.N.GROWTH:t.N.FOLLOWERS}setPeriod(m){this.selectedPeriod=m,this.onPeriodChange.emit(),this.onChartChange.emit()}setChartType(m){this.chartType=m,this.onChartChange.emit()}static{this.\u0275fac=function(d){return new(d||a)(i.KVO(r.z))}}static{this.\u0275prov=i.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()}
1,7711(j,D,n){"use strict";n.d(D,{W:()=>L});var i=n(9204);const s=/@(gmail|yahoo|hotmail|outlook|icloud|aol|proton(mail)?|gmx|mail|yandex)\./i,r=O=>!!O&&!O.includes("573323465_1219825463302212_7278921664109726296_n.png"),u=O=>!!O&&!s.test(O);function a(O){return[/\d{5,}/,/^x{1,2}x?.*x{1,2}$/i,/_{3,}/,/^[a-f0-9]{8,}$/i,/^(temp|test|user|demo)\d*/i,/^[a-z]{1,2}\d{6,}$/i,/^\d+[a-z]{1,2}$/i].some(h=>h.test(O))?0:[/\./,/^[a-z]+_[a-z]+$/i,/(official|brand|studio|co|agency|media|creative|design|shop|store)$/i].some(h=>h.test(O))||O.length>=4&&O.length<=25&&!/\d{4,}/.test(O)?1:0}const d=new Set(["att.net","charter.net","cox.net","gmail.com","hey.com","icloud.com","inbox.com","pm.me","proton.me","protonmail.com","sbcglobal.net","verizon.net","yandex.com","zoho.com"]),A=new Set(["10minutemail.com","asimarif.com","besttempmail.com","boxmach.com","gamil.com","gmail.co","gmail.con","gmail10p.com","gmal.com","gmial.com","gmil.com","gnail.com","iridales.com","jxpomup.com","mailinator.com","mechanicspedia.com","mogash.com","necub.com","ofacer.com","powerscrews.com","punkproof.com","tempmail.com","tempmail.edu.pl","tempmailmaster.io","webxio.pro","yopmail.com"]);function M(O){if(!O||!O.includes("@"))return 0;const T=O.split("@")[1]?.toLowerCase();return!T||A.has(T)||d.has(T)?0:11}function y(O){const T=parseInt(String(O),10)||0;return T>=100?14:T>=20?7:0}function C(O){const T=(O||"").trim().toLowerCase();return!(!T||[/\d{5,}/,/^x{1,2}x?.*x{1,2}$/i,/_{3,}/,/^[a-f0-9]{8,}$/i,/^(temp|test|user|demo)\d*/i,/^[a-z]{1,2}\d{6,}/i,/^\d+[a-z]{1,2}$/i].some(h=>h.test(T)))&&(!!(T.includes(".")||/^[a-z]+_[a-z]+$/i.test(T)||/(official|brand|studio|co|agency|media|creative|design|shop|store)$/i.test(T))||T.length>=4&&T.length<=25&&!/\d{4,}/.test(T))}const l=O=>!!O&&!O.includes("573323465_1219825463302212_7278921664109726296_n.png");var S=n(1229),x=n(1155),w=n(539),k=n(4652),U=n(4409),N=n(5261),B=n(2487),R=n(9787);let L=(()=>{class O{constructor(I,h,v,E,e){this.httpSender=I,this.customerService=h,this.agencyService=v,this.couponService=E,this.cookieService=e}sendSubscriptionCreatedEvent(I,h,v){this.httpSender.get("instagram/profiles/"+I.pk).subscribe({next:E=>{const e=E.body?.data||E.body?.profile||E.body||{};this.pushEvent(I,h,v,{email:this.customerService.email,media_count:e.media_count||0,biography:e.biography||"",is_private:!!e.is_private,profile_pic_url:e.profile_pic_url||I.img,is_verified:e.is_verified??I.isVerified,is_business:!!e.category,username:I.username})},error:()=>{this.mixpanelEvent("icp_report",!1),S.wd("ICP: failed to fetch instagram profile for "+I.pk)}})}pushEvent(I,h,v,E){var e=this;return(0,i.A)(function*(){const{raw:p,signals:P}=function c(O){const T={business_email:u(O.email)?10:0,content_volume:O.media_count>20?8:0,bio_present:O.biography?7:0,public_profile:O.is_private?0:6,profile_pic:r(O.profile_pic_url)?4:0,verified:O.is_verified?3:0,business_type:O.is_business?2:0,username:a(O.username)};console.log("ICP signals:",Object.fromEntries(Object.entries(T).map(([h,v])=>[h,v>0])));const I=Object.values(T).reduce((h,v)=>h+v,0);return console.log("ICP raw score:",I),{raw:I,normalized:I/41,signals:T}}(E),G=p+.01;e.mixpanelEvent("icp_report",P),window.dataLayer.push({ecommerce:null});const K={transaction_id:I.uuid,value:G,currency:"USD",tax:0,shipping:0};e.couponService.selectedCoupon&&(K.coupon=e.couponService.selectedCoupon),v&&(K.items=[{item_id:v.id,item_name:v.id,item_brand:e.agencyService.agency.brandName,price:G,affiliation:e.cookieService.get("x-tapfilliate-token"),quantity:1}]);let W=null;try{W=yield Promise.race([Promise.resolve(window.syncer?.get()).catch(()=>null),new Promise(tt=>setTimeout(()=>tt(null),2e3))])}catch{W=null}const $=W?.params?.gclid?.[0]||W?.cookies?._gcl_aw?.[0]?.split(".")?.[2]||null,X=W?.gaClientID?.id||W?.cookies?._ga?.[0]?.split(".").slice(2).join(".")||null;window.dataLayer.push({event:h,transaction_id:K.transaction_id,plan_id:I.plan_id,email:e.customerService.email,gclid:$,ga_client_id:X,ga_session_id:W?.gaSessionID?.session_start||null,ecommerce:K});const Y=function f(O){const T={business_email:M(O.email),content_volume:y(O.media_count),public_profile:O.is_private?0:4,profile_pic:l(O.profile_pic_url)?3:0,verified:O.is_verified?6:0,username:C(O.username)?1:0};console.log("ICP v3 signals:",Object.fromEntries(Object.entries(T).map(([h,v])=>[h,v>0])));const I=Object.values(T).reduce((h,v)=>h+v,0);return console.log("ICP v3 raw score:",I),{raw:I,normalized:I/39,signals:T}}(E),z=Y.raw+.01;e.mixpanelEvent("icp_report_v3",Y.signals),window.dataLayer.push({ecommerce:null});const J={transaction_id:I.uuid,value:z,currency:"USD",tax:0,shipping:0};e.couponService.selectedCoupon&&(J.coupon=e.couponService.selectedCoupon),v&&(J.items=[{item_id:v.id,item_name:v.id,item_brand:e.agencyService.agency.brandName,price:z,affiliation:e.cookieService.get("x-tapfilliate-token"),quantity:1}]),window.dataLayer.push({event:h+"_v3",transaction_id:J.transaction_id,plan_id:I.plan_id,email:e.customerService.email,gclid:$,ga_client_id:X,ga_session_id:W?.gaSessionID?.session_start||null,ecommerce:J})})()}mixpanelEvent(I,h){x.A.__loaded&&x.A.track(I,h)}static{this.\u0275fac=function(h){return new(h||O)(w.KVO(k.t),w.KVO(U.m),w.KVO(N.z),w.KVO(B.O),w.KVO(R.O1))}}static{this.\u0275prov=w.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},2416(j,D,n){"use strict";n.d(D,{r:()=>r});class i{constructor(){this.email=null,this.name=null,this.fullName=null,this.instagramPK=null,this.instagramUsername=null,this.instagramStatus=null,this.instagramURL=null,this.planName=null,this.planPrice=null,this.planID=null,this.planType=null,this.phone=null,this.paymentStatus=null,this.paymentBrand=null,this.paymentType=null,this.ccLast4Digits=null,this.ccExpiryDate=null,this.interactionsAllowed=null,this.nextBilling=null,this.targetingAdded=!1,this.subscriptionStatus=null,this.subscriptionId=null,this.hide_default_lau
1ncher=!0,this.brand=null}}var t=n(539),s=n(80);let r=(()=>{class u{constructor(c){this.intercom=c,this.intercomData=new i,u.inited=!1,this.show=window.innerWidth>800,this.show||this.showChatwootWidget()}initIntercom(){this.intercomData=this.getIntercomData(),this.intercom.boot(this.intercomData),this.saveToSessionStorage()}getIntercomData(){const c=JSON.parse(sessionStorage.getItem("intercomData"));c&&(this.intercomData=c),this.intercomData.brand=this.brand,this.intercomData.email=this.customerEmail,this.intercomData.name=this.customerFirstName+" "+this.customerLastName;const m=this.userService.currentSubscription;return m&&(this.intercomData["Subscription ID"]=m.uuid,this.intercomData["Subscription Status"]=m.status,this.intercomData["Instagram PK"]=m.pk,this.intercomData["Targeting Added"]=this.targetingAdded,this.intercomData["Next Billing Date"]=new Date(1e3*m.nextBilling).toLocaleString(),m.plan&&(this.intercomData["Plan ID"]=m.plan.id,this.intercomData.Period=m.plan.period,this.intercomData["Period Unit"]=m.plan.periodUnit,this.intercomData["Plan Name"]=m.plan.name,this.intercomData["Plan type"]=m.plan.name,this.intercomData["Plan Price"]=m.plan.price),m.account&&(this.intercomData["Login status"]=m.account.status),m.username&&(this.intercomData["Instagram URL"]="https://instagram.com/"+m.username+"/")),this.intercomData.hide_default_launcher=!this.show,this.intercomData.app_id=this.intercomId,this.intercomData}updateIntercomData(){this.intercomId&&(u.inited?this.intercom.boot(this.getIntercomData()):setTimeout(()=>{this.intercom.boot(this.getIntercomData()),u.inited=!0},1e3)),this.updateChatwootData()}updateChatwootData(){if(!window.$chatwoot)return;const c=this.getIntercomData();this.userService.customerService.id?(window.$chatwoot.setUser(this.userService.customerService.id,{name:this.customerFirstName+" "+this.customerLastName,email:this.customerEmail,phone_numner:this.customerPhone}),window.$chatwoot.setCustomAttributes({username:c.instagramUsername,instagram_pk:c.instagramPK,ig_login_status:c.instagramStatus,subscription_status:c.subscriptionStatus,plan_name:c.planName,trial_subscription:"in_trial"===c.subscriptionStatus,brand:this.brand,next_billing_date:c.nextBilling})):window.$chatwoot.setCustomAttributes({brand:this.brand})}updateChatwootAttribute(c,m){window.$chatwoot&&window.$chatwoot.setCustomAttributes({[c]:m})}saveToSessionStorage(){sessionStorage.setItem("intercomData",JSON.stringify(this.intercomData))}saveIntercomData(){this.intercom.update(this.intercomData),this.saveToSessionStorage()}triggerMessage(c){this.intercom.showNewMessage(c)}setIntercomId(c){this.intercomId=c}popupIntercom(){u.inited||(u.inited=!0,this.show=!0,this.initIntercom()),this.intercom.update({hide_default_launcher:!1}),this.intercom.show()}startConversation(c){u.inited||(u.inited=!0,this.show=!0,this.initIntercom()),this.intercom.update({hide_default_launcher:!1}),this.intercom.startConversation(c)}popupChatwoot(){window.$chatwoot&&window.$chatwoot.toggle("open")}showIntercom(){this.show=!0,this.updateIntercomData()}hide(){this.show=!1,this.intercom.update({hide_default_launcher:!0})}showChatwootWidget(){window.addEventListener("chatwoot:ready",function(){window.$chatwoot.toggleBubbleVisibility("hide")})}static{this.\u0275fac=function(m){return new(m||u)(t.KVO(s.C))}}static{this.\u0275prov=t.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},80(j,D,n){"use strict";n.d(D,{C:()=>t});var i=n(539);let t=(()=>{class s{constructor(){this.scriptLoaded=!1}loadScript(u){this.scriptLoaded||!u||(this.scriptLoaded=!0,function(a,c,m){const d=function(...M){d.c(M)};d.q=[],d.c=function(M){d.q.push(M)},a.Intercom=d;const A=c.createElement("script");A.async=!0,A.src="https://widget.intercom.io/widget/"+m,c.head.appendChild(A)}(window,document,u))}boot(u){u?.app_id&&this.loadScript(u.app_id),window.Intercom&&window.Intercom("boot",u)}update(u){window.Intercom&&window.Intercom("update",u)}show(){window.Intercom&&window.Intercom("show")}showNewMessage(u){window.Intercom&&window.Intercom("showNewMessage",u)}startConversation(u){window.Intercom&&window.Intercom("startConversation",u)}shutdown(){window.Intercom&&window.Intercom("shutdown")}static{this.\u0275fac=function(a){return new(a||s)}}static{this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},3465(j,D,n){"use strict";n.d(D,{T:()=>i});class i{constructor(s,r,u){this.name=s,this.code=r,this.agencyTranslate=u}}},8739(j,D,n){"use strict";n.d(D,{i:()=>u});var i=n(3465),t=n(539),s=n(5261),r=n(325);let u=(()=>{class a{constructor(m,d){this.agency=m,this.translateService=d,this.language=new i.T("English","en")}init(){let m=localStorage.getItem("lang");if(!m){let d=window.navigator.language;
1for(let A of this.agency.agency.languages)if(d&&d.startsWith(A.code)){m=A.code;break}}this.language=this.getAgencyLanguage(m),this.language||(this.language=this.agency.agency.defaultLanguage),this.translateService.onDefaultLangChange.subscribe({next:()=>{this.translateService.use(this.language.agencyTranslate?this.language.code+"_"+this.agency.name:this.language.code)}}),this.setLanguage(this.language)}getLangIcon(m){return m||(m=this.language),this.agency.getImg("ic_lang_"+m.code+".svg")}setLanguage(m){localStorage.setItem("lang",m.code),this.language=m,this.translateService.setDefaultLang(m.code)}getLanguage(){return this.language}getLanguages(){return this.agency.agency.languages}getAgencyLanguage(m){for(let d of this.agency.agency.languages)if(d.code==m)return d;return null}showLanguageChooser(){return this.agency.agency.languages.length>1}static{this.\u0275fac=function(d){return new(d||a)(t.KVO(s.z),t.KVO(r.c$))}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},1900(j,D,n){"use strict";n.d(D,{X:()=>d,Y:()=>m});var i=n(4054),t=n(5519),s=n(1081),r=n(539),u=n(4652),a=n(2487),c=n(325);let m=(()=>{class A{constructor(y,C,l){this.httpSender=y,this.couponService=C,this.translateService=l,this.reactivateEstimates={},this.changePlanEstiamtes={},this.isProrated={},this.billingPeriods={day:0,week:1,month:2,year:3},this.defaultClosePath="../",this.isPromotionUpsell=!1}getUpgradePlan(y,C,l){let f=y.plan;if(!f||!y.plans)return null;let S=null;for(let x of y.plans)f.id!=x.id&&f.periodUnit==x.periodUnit&&(C&&null===x.getFeature(C.id)||l&&x.getFeature(C.id).level!=l||(!S||S.price>x.price)&&(S=x));return S}getUpgradePlans(y){let C=[],l=y.plan;if(!l||!y.plans)return null;for(let f of y.plans)l.id!=f.id&&l.periodUnit==f.periodUnit&&l.period==f.period&&(this.feature&&null==f.getFeature(this.feature.id)||C.push(f));return C}getPlanChangeEstimate(y,C){if(!C)return;this.estimatePlan!=C&&(this.loadingEstimate=!0),this.estimatePlan=C;const l=this.changePlanEstiamtes[C.id];l?this.onEstimateCallback(l,C):this.httpSender.get("subscriptions/"+y.uuid+"/pricing-estimate/"+C.id).subscribe({next:f=>{const S=s.HM.parse(f.body.estimate);this.changePlanEstiamtes[C.id]=S,this.onEstimateCallback(S,C)},error:()=>this.onEstimateError()})}onEstimateCallback(y,C){this.loadingEstimate=!1,this.chargeAmount=y.invoiceEstimate?y.getPrice():t.g.getPrice(0,C.currency),this.couponService.existingCoupon=(y.hasCoupon(),y.getCouponName());const l=y.nextBillingAt;let f=new Date;f.setTime(1e3*l),this.billingDate=f.toLocaleDateString(),this.estimate=y,this.estimate.getCoupon()&&this.estimate.getCoupon().initNote(C,this.translateService)}onEstimateError(){this.loadingEstimate=!1}getReactivateEstimate(y,C,l){this.loadingEstimate=!0;const f=this.reactivateEstimates[C.id+"_"+l];f&&this.onReactivateEstimateCallback(f,C,l),this.couponService.getUpdateSubscriptionEstimate(C,l,y).subscribe({next:S=>{this.onReactivateEstimateCallback(S,C,l)},error:()=>{this.loadingEstimate=!1}})}onReactivateEstimateCallback(y,C,l){this.loadingEstimate=!1,this.reactivateEstimates[C.id+"_"+l]=y,this.chargeAmount=t.g.getPrice(y.getTotal(),C.currency),this.couponService.existingCoupon=(y.hasCoupon(),y.getCouponName()),this.estimate=y,this.estimate.getCoupon()&&this.estimate.getCoupon().initNote(C,this.translateService)}periodGreaterThan(y,C){return y.periodUnit==C.periodUnit?y.period>C.period:this.billingPeriods[y.periodUnit]>this.billingPeriods[C.periodUnit]}getIsProrated(y,C){let l=new i.Nl;return l=l.append("plan_id",C.planGroupId),l=l.append("pricing_id",C.id),this.httpSender.get("subscriptions/"+y.uuid+"/plan/prorate",l)}static{this.\u0275fac=function(C){return new(C||A)(r.KVO(u.t),r.KVO(a.O),r.KVO(c.c$))}}static{this.\u0275prov=r.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();var d=function(A){return A[A.UPGRADE=1]="UPGRADE",A[A.DOWNGRADE=2]="DOWNGRADE",A[A.REACTIVATE=3]="REACTIVATE",A[A.CHANGE_PLAN=4]="CHANGE_PLAN",A}(d||{})},6485(j,D,n){"use strict";n.d(D,{i:()=>i});class i{handle(){return null}}},8672(j,D,n){"use strict";n.d(D,{g:()=>i});
1class i{static parse(s){let r=new i;return r.id=s.id,r.type=s.type,"card"==r.type?(r.brand=s.card.brand,r.last4=s.card.last4,r.image="visa"==r.brand?"/assets/images/default/visa.svg":"mastercard"==r.brand?"/assets/images/default/mastercard.svg":"american_express"==r.brand?"/assets/images/default/american-express.svg":"discover"==r.brand?"/assets/images/default/discover.svg":"jcb"==r.brand?"/assets/images/default/jcb.svg":"diners_club"==r.brand?"/assets/images/default/diners.svg":"/assets/images/default/default_card.svg"):"apple_pay"==r.type?(r.image="/assets/images/default/apple-pay.svg",r.last4=s.card.last4,r.brand=s.card.brand):"paypal_express_checkout"==r.type?(r.image="/assets/images/default/paypal.svg",s.paypal?r.email=s.paypal.email:s.pay_pal&&(r.email=s.pay_pal.email)):r.image="/assets/images/default/default_card.svg",r}}},6435(j,D,n){"use strict";n.d(D,{t:()=>s});var i=n(539),t=n(4409);let s=(()=>{class r{constructor(a){this.customerService=a,this.paymentVerifiedEmmiter=new i.bkB}onPaymentVerified(){this.paymentVerifiedEmmiter.emit(!0)}showPaymentVerification(a){return!(!a||!a.hasTrial())&&!this.customerService.paymentVerified&&this.customerService.paymentVerificationEnabled}static{this.\u0275fac=function(c){return new(c||r)(i.KVO(t.m))}}static{this.\u0275prov=i.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},9086(j,D,n){"use strict";n.d(D,{h:()=>C});var i=n(9204),t=n(539),s=n(5312),r=n(8672),u=n(6715),a=n(5756),c=n(6016),m=n(4652),d=n(5261),A=n(826),M=n(0),y=n(325);let C=(()=>{class l{constructor(S,x,w,k,U,N){this.http=S,this.agency=x,this.initLoadingService=w,this.errorService=k,this.translate=U,this.toastService=N,this.paymentMethodsEmitter=new t.bkB,this.primaryPaymentEmitter=new t.bkB,this.paypalEmitter=new t.bkB,this.braintreeEmitter=new t.bkB,this.stripeEmitter=new t.bkB,this.chargebeeEmitter=new t.bkB}getPaymentSources(S){S&&this.initLoadingService.registerWaiter("billing-info"),this.http.get("billing/payment-sources").subscribe({next:x=>this.getPaymentSourcesCallback(x),error:x=>this.getPaymentSourcesCallback(x)})}getPaymentSourcesCallback(S){if(200===S.status){let x=S.body.payment_sources;this.paymentMethods=[];for(let w of x)this.paymentMethods.push(r.g.parse(w));this.paymentMethodsEmitter.emit(null)}else this.errorService.error=this.translate.instant("errors.we-are-working-on-fix");this.initLoadingService.unregisterWaiter("billing-info")}getPrimaryPaymentMethod(S){S&&this.initLoadingService.registerWaiter("billing-primary-method"),this.http.get("billing/payment-sources/primary").subscribe({next:x=>{x.body.payment_source&&(this.primaryPaymentId=x.body.payment_source.id,this.primaryPaymentEmitter.emit(null)),this.initLoadingService.unregisterWaiter("billing-primary-method")},error:x=>{console.error(x),this.initLoadingService.unregisterWaiter("billing-primary-method")}})}setPrimaryPaymentMethod(S){return this.http.patch("billing/payment-sources/"+S.id,{})}primaryPaymentMethod(){if(this.primaryPaymentId&&this.paymentMethods)for(let S of this.paymentMethods)if(S.id==this.primaryPaymentId)return S;return null}changePlan(S,x,w){const k={pricing_id:S.id,plan_id:S.planGroupId};return w&&(k.coupon=w),this.http.patch("subscriptions/"+x.uuid,k)}redirectToHostedPayment(S){this.http.post("billing/payment-sources",{redirect_url:S||window.location.href}).subscribe({next:x=>{window.location.href=x.body.url},error:()=>{this.toastService.showToast(this.translate.instant("errors.we-are-working-on-fix"),a.TS.RED)}})}addPaymentMethodCard(S){return this.http.post("billing/card",{token:S})}addPaymentMethodPaypal(S){return this.http.post("billing/paypal",{token:S})}addPaymentMethodApplePay(S){return this.http.post("billing/apple-pay",{token:S})}createPaymentSourceUsingPaymentIntent(S){return this.http.post("billing/payment-sources/intent",{payment_intent_id:S})}initChargebeeApplePay(){this.agency.agency.applePay===c.H2.CHARGEBEE&&window.Chargebee.getInstance().load("apple-pay").then(S=>{this.applePayHandler=S,S.canMakePayments()&&(this.applePayAvailable=!0,this.chargebeeEmitter.emit())})}initStripe(){this.agency.agency.stripeKey&&(0,u.c)(this.agency.agency.stripeKey).then(S=>{this.stripe=S,this.paymentRequest=this.stripe.paymentRequest({country:this.agency.agency.stripeCountry,currency:this.agency.agency.stripeCurrency,total:{label:"Apple Pay Subscription",amount:0}}),this.paymentRequest.canMakePayment().then(x=>{x&&x.applePay?(this.applePayAvailable=!0,this.stripeEmitter.emit()):(console.error("ApplePay not configured correctly"),console.error(x))})})}preloadBraintree(){if(this.agency.agency.applePay||this.agency.agency.paypal){if(!s.c.production)return void this.initiateBreaintree("sandbox_x6mr6djw_tppvhgzj3dtwdprz");this.http.get("billing/generate_token").subscribe({next:S=>{this.initiateBreaintree(S.body.token)},error:S=>{console.error(S)}})}}initiateBreaintree(S){var x=this;return(0,i.A)(function*(){let w=x;const[{default:k},{default:U}]=yield Promise.all([n.e(5143).then(n.t.bind(n,5143,23)),n.e(4527).then(n.t.bind(n,4527,23))]);k.create({authorization:S},function(N,B){N?console.error("Error creating client:",N):(w.braintreeInstance=B,w.braintreeEmitter.emit(),U.create({client:B},function(R,L){R?console.error("Error creating PayPal:",R):U.isSupported()&&(w.paypalInstance=L,w.paypalEmitter.emit())}
1))})})()}getPaymentIntent(S="apple_pay"){return this.http.post("billing/payment-intent",{type:S})}collectPayment(S){return this.http.post(`subscriptions/${S.uuid}/collect-payment`,{})}static{this.\u0275fac=function(x){return new(x||l)(t.KVO(m.t),t.KVO(d.z),t.KVO(A.M),t.KVO(M.I),t.KVO(y.c$),t.KVO(a.fw))}}static{this.\u0275prov=t.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},9556(j,D,n){"use strict";n.d(D,{I:()=>i});class i{static getPeriod(s,r){return"day"==s?r.instant("shared.time-period.day"):"week"==s?r.instant("shared.time-period.week"):"month"==s?r.instant("shared.time-period.month"):"quarter"==s?r.instant("shared.time-period.quarter"):"year"==s?r.instant("shared.time-period.year"):""}static getPeriodY(s,r){return"day"==s?r.instant("shared.time-period.daily"):"week"==s?r.instant("shared.time-period.weekly"):"month"==s?r.instant("shared.time-period.monthly"):"quarter"==s?r.instant("shared.time-period.quarterly"):"year"==s?r.instant("shared.time-period.yearly"):""}static getPeriodS(s,r){return"day"==s?r.instant("shared.time-period.days"):"week"==s?r.instant("shared.time-period.weeks"):"month"==s?r.instant("shared.time-period.months"):"quarter"==s?r.instant("shared.time-period.quarters"):"year"==s?r.instant("shared.time-period.years"):""}static getTrialPeriod(s,r){const u=i.getPeriod(s.trialUnit,r);return""!=u?u:s.trialUnit}static getTrialPeriods(s,r){const u=i.getPeriod(s.trialUnit,r);return""!=u?u:s.trialUnit}static getPlanPeriod(s,r){let u="";return 1!=s.period&&(u="("+s.period+")"),i.getPeriod(s.periodUnit,r)+u}static getPlanPeriodY(s,r){if("month"==s.periodUnit&&3==s.period)return i.getPeriodY("quarter",r);let u="";return 1!=s.period&&(u="("+s.period+")"),i.getPeriodY(s.periodUnit,r)+u}static getGroupPeriod(s,r){if("month"==s.periodUnit&&3==s.period)return i.getPeriod("quarter",r);let u="";1!=s.period&&(u=s.period+" ");let a="";return s.period>1&&r.currentLang.startsWith("en_")&&(a="s"),u+i.getPeriod(s.periodUnit,r)+a}static getGroupPeriodY(s,r){if("month"==s.periodUnit&&3==s.period)return i.getPeriodY("quarter",r);let u="";return 1!=s.period&&(u="("+s.period+")"),i.getPeriodY(s.periodUnit,r)+u}}},9822(j,D,n){"use strict";n.d(D,{J:()=>s});var i=n(6067),t=n(7876);class s{constructor(){this.features=[],this.plans=[]}static parsePlansResponse(u){let a=u.body.plans,c={};for(let d of a){let S,A=d.description,M=d.name,y=d.id,C=d.prices,l=d.custom_fields,f=[],x=!1;if(d.metadata){if(d.metadata.features)for(let k of d.metadata.features)f.push(k);S=d.metadata.description,x=d.metadata["best-value"]}let w=null;if(d.entitlements){w=[];const k=d.entitlements;for(let U of k)w.push(i.X.parse(U))}if(C)for(let k of C){let N=k.period_unit,B=k.period,O=new t.c(k.price,M,A,k.id,k.currency_code);O.periodUnit=N,O.period=B,O.features=f,O.bottomDescription=S,O.bestValue=x,O.planGroupId=y,O.trialPeriod=k.trial_period,O.trialUnit=k.trial_period_unit,O.entitlemets=w,O.customFields={...l,...k.custom_field},k.custom_field&&"True"==k.custom_field.cf_default&&(O.default=!0);let T=c[N+"-"+B];T||(T=new s,T.periodUnit=N,T.period=B,T.features=f,c[N+"-"+B]=T),T.plans.push(O)}}let m=[];return Object.keys(c).forEach(function(d){m.push(c[d])}),m}static comparePeriod(u,a){const c={day:1,week:7,month:30,year:365},m=u.period*c[u.periodUnit],d=a.period*c[a.periodUnit];return m===d?0:m>d?1:-1}}},7876(j,D,n){"use strict";n.d(D,{c:()=>r});var i=n(6067),t=n(9556),s=n(5519);class r{constructor(a,c,m,d,A){this._price=a,this._name=c,this._description=m,this._id=d,this._currency=A,this.features=[],this.default=!1,this.entitlemets=[]}get price(){return this._price}get name(){return this._name}get description(){return this._description}get id(){return this._id}get currency(){return this._currency}set currency(a){this._currency=a}static parsePlansResponse(a){let c=[],m=a.body.plans;for(let d of m){let S,A=d.description,M=d.name,y=d.id,C=d.prices,l=[],f=d.custom_fields;if(d.metadata){if(d.metadata.features)for(let w of d.metadata.features)l.push(w);S=d.metadata.description}let x=null;if(d.entitlements){x=[];const w=d.entitlements;for(let k of w)x.push(i.X.parse(k))}if(C)for(let w of C){let U=w.period_unit,R=new r(w.price,M,A,w.id,w.currency_code);R.periodUnit=U,R.planGroupId=y,R.features=l,R.bottomDescription=S,R.trialPeriod=w.trial_period,R.trialUnit=w.trial_period_unit,R.period=w.period,R.entitlemets=x,R.customFields={...f,...w.custom_field},c.push(R)}}return c}
1static parsePlanFromSubscription(a){if(!(a.plan_id&&a.pricing_id&&a.item_price&&a.item))return null;const c=a.item_price,m=a.item,l=new r(c.price,m.name,m.description,a.plan_id,c.currency_code);if(l.periodUnit=c.period_unit,l.period=c.period,l.planGroupId=a.plan_id,l.features=a.features||[],l.trialPeriod=c.trial_period,m.entitlements){l.entitlemets=[];const f=m.entitlements;for(let S of f)l.entitlemets.push(i.X.parse(S))}return l}getPrice(){return s.g.getPrice(this.price,this.currency)}getPriceMonhtly(){let a=this.price;return this.coupon&&this.coupon.newPriceAmount&&(a=this.coupon.newPriceAmount),s.g.getPriceMonthly(a,this.currency,this.period,this.periodUnit)}getPriceYearly(){let a=this.price;return this.coupon&&this.coupon.newPriceAmount&&(a=this.coupon.newPriceAmount),s.g.getPrice(a,this.currency)}hasTrial(){return this.trialPeriod>0}getTrialPeriod(a){return t.I.getTrialPeriod(this,a)}getTrialPeriods(a){return t.I.getTrialPeriods(this,a)}getNewPrice(){return this.coupon?this.coupon.newPrice:null}getCouponError(){return this.coupon?this.coupon.error:null}getCouponNote(){return this.coupon?this.coupon.note:null}isLoadingCoupon(){return this.coupon&&this.coupon.loading}getFeature(a){for(let c of this.entitlemets)if(a==c.id)return c;return null}}},4029(j,D,n){"use strict";n.d(D,{O:()=>s});var i=n(9770),t=n(539);let s=(()=>{class r{constructor(a,c){this.rendererFactory=a,this.document=c,this.renderer=this.rendererFactory.createRenderer(null,null)}disableScroll(){const a=this.getScrollbarWidth();a>0&&this.renderer.setStyle(this.document.body,"padding-right",`${a}px`),this.renderer.addClass(this.document.body,"modal--overflow-disabled"),this.renderer.addClass(this.document.documentElement,"modal--overflow-disabled")}enableScroll(){this.renderer.removeStyle(this.document.body,"padding-right"),this.renderer.removeAttribute(this.document.body,"class"),this.renderer.removeAttribute(this.document.documentElement,"class")}getScrollbarWidth(){const a=document.documentElement.clientWidth;return Math.abs(window.innerWidth-a)}static{this.\u0275fac=function(c){return new(c||r)(t.KVO(t._9s),t.KVO(i.q))}}static{this.\u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})()},5519(j,D,n){"use strict";n.d(D,{g:()=>i});class i{static getPrice(s,r){let u=s/100+"";return u.startsWith(".")&&(u="0"+u),u.includes(".")&&u.indexOf(".")==u.length-2&&(u+="0"),"USD"==r?(r="$")+u:"EUR"==r?u+(r="\u20ac"):u+" "+r}static getPriceMonthly(s,r,u,a){return this.getPrice("month"==a?Math.round(s/u):"year"==a?Math.round(s/(12*u)):s,r)}}},756(j,D,n){"use strict";n.d(D,{C:()=>s,Z:()=>t});var i=n(1229);function t(r){r?.pk&&i.NA("pk",r.pk),r?.username&&i.NA("username",r.username)}function s(){i.NA("pk",void 0),i.NA("username",void 0)}},1935(j,D,n){"use strict";n.d(D,{G:()=>h});var i=n(4460),t=n(4456),s=n(4054),r=n(325),u=n(80),a=n(539);let c=(()=>{class v{static forRoot(e){return{ngModule:v,providers:[u.C]}}static{this.\u0275fac=function(p){return new(p||v)}}static{this.\u0275mod=a.$C({type:v})}static{this.\u0275inj=a.G2t({})}}return v})();var m=n(8564),d=n(6485),A=n(189),M=n(3313),y=n(8836),C=n(6399),l=n(4676),f=n(9767),S=n(5261),x=n(4029);function w(v,E){if(1&v&&(a.j41(0,"div",13),a.EFF(1),a.k0s()),2&v){const e=a.XpG();a.R7$(),a.SpI(" ",e.floatingUser.getLetter()," ")}}function k(v,E){if(1&v&&a.nrm(0,"img",14),2&v){const e=a.XpG();a.Y8G("src",e.floatingUser.authService.accountImg,a.B4B)}}function U(v,E){if(1&v){const e=a.RV6();a.j41(0,"div",18),a.bIt("click",function(){const P=a.eBV(e).$implicit,G=a.XpG(2);return a.Njj(G.floatingUser.userService.onChangeSubscription(P))}),a.nrm(1,"img",19),a.j41(2,"div",7),a.EFF(3),a.k0s(),a.nrm(4,"img",20),a.k0s()}if(2&v){const e=E.$implicit,p=E.index,P=a.XpG(2);a.AVh("acc-border",p!=P.floatingUser.activeUsers.length-1)("border-bkg-3",p!=P.floatingUser.activeUsers.length-1),a.R7$(),a.Y8G("src",e.img,a.B4B),a.R7$(2),a.SpI(" @",e.username," "),a.R7$(),a.Y8G("src",e.getSocialNetworkLogo(),a.B4B)}}function N(v,E){if(1&v&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.nI1(3,"translate"),a.k0s(),a.DNE(4,U,5,7,"div",17),a.k0s()),2&v){const e=a.XpG();a.R7$(2),a.SpI(" ",a.bMT(3,2,"onboarding.floating-user.accounts")," "),a.R7$(2),a.Y8G("ngForOf",e.floatingUser.activeUsers)}}function B(v,E){if(1&v){const e=a.RV6();a.j41(0,"div",18),a.bIt("click",function(){const P=a.eBV(e).$implicit,G=a.XpG(2);return a.Njj(G.floatingUser.userService.onChangeSubscription(P))}),a.nrm(1,"img",19),a.j41(2,"div",7),a.EFF(3),a.k0s(),a.nrm(4,"img",20),a.k0s()}if(2&v){const e=E.$implicit,p=E.index,P=a.XpG(2);a.AVh("acc-border",p!=P.floatingUser.draftUsers.length-1)("border-bkg-3",p!=P.floatingUser.draftUsers.length-1),a.R7$(),a.Y8G("src",e.img,a.B4B),a.R7$(2),a.SpI(" @",e.username," "),a.R7$(),a.Y8G("src",e.getSocialNetworkLogo(),a.B4B)}}function R(v,E){if(1&v&&(a.j41(0,"div",21)(1,"div",16),a.EFF(2),a.nI1(3,"translate"),a.k0s(),a.DNE(4,B,5,7,"div",17),a.k0s()),2&v){const e=a.XpG();a.R7$(2),a.SpI(" ",a.bMT(3,2,"onboarding.floating-user.drafts")," "),a.R7$(2),a.Y8G("ngForOf",e.floatingUser.draftUsers)}}let L=(()=>{class v{constructor(e,p){this.agency=e,this.popupService=p}ngOnInit(){this.popupService.disableScroll()}ngOnDestroy(){this.popupService.enableScroll()}static{this.\u0275fac=function(p){return new(p||v)(a.rXU(S.z),a.rXU(x.O))}}static{this.\u0275cmp=a.VBU({type:v,selectors:[["app-mobile-account-chooser"]],inputs:{floatingUser:"floatingUser"},standalone:!1,decls:16,vars:12,consts:[[1,"overlay","show-overlay"],[1,"popup","container-popup-mobile",3,"click"],[1,"h-box","top","border-bkg-3"],[1,"icon-name"],["class","f-size-28 f-regular letter color-white",4,"ngIf"],["class","google-img","referrerpolicy","no-referrer",3,"src",4,"ngIf"],[1,"right"],[1,"f-size-14","f-medium","color-text-2"],[1,"f-size-14","f-regular","color-text-3"],["class","accounts",4,"ngIf"],["class","drafts border-bkg-3",4,"ngIf"],[1,"bottom","dropdown-item-hover","f-size-14","f-regular","color-text-2","bkg-3",3,"click"],[1,"ic-logout","stroke-icon",3,"src"],[1,"f-size-28","f-regular","letter","color-white"],["referrerpolicy","no-referrer",1,"google-img",3,"src"],[1,"accounts"],[1,"f-size-12","f-medium","color-text-3"],["class","h-box acc",3,"acc-border","border-bkg-3","click",4,"ngFor","ngForOf"],[1,"h-box","acc",3,"click"],[1,"acc-img",3,"src"],[1,"platform-logo",3,"src"],[1,"drafts","border-bkg-3"]],template:function(p,P){1&p&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(K){return K.stopPropagation()}),a.j41(2,"div",2)(3,"div",3),a.DNE(4,w,2,1,"div",4)(5,k,1,1,"img",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.EFF(8),a.k0s(),a.j41(9,"div",8),a.EFF(10),a.k0s()()(),a.DNE(11,N,5,4,"div",9)(12,R,5,4,"div",10),a.j41(13,"div",11),a.bIt("click",function(){return P.floatingUser.onExitOnboarding()}
1),a.nrm(14,"svg-icon",12),a.EFF(15),a.k0s()()()),2&p&&(a.Y8G("@overlayBkg",P.agency.agency.darkMode?"dark":"light"),a.R7$(),a.Y8G("@connectAccountAnim","mobile"),a.R7$(2),a.AVh("bkg-green",!P.floatingUser.authService.isGoogleAccount),a.R7$(),a.Y8G("ngIf",!P.floatingUser.authService.isGoogleAccount),a.R7$(),a.Y8G("ngIf",P.floatingUser.authService.isGoogleAccount),a.R7$(3),a.SpI(" ",P.floatingUser.authService.name," "),a.R7$(2),a.SpI(" ",P.floatingUser.authService.email," "),a.R7$(),a.Y8G("ngIf",P.floatingUser.activeUsers.length>0),a.R7$(),a.Y8G("ngIf",P.floatingUser.draftUsers.length>0),a.R7$(2),a.Y8G("src",P.floatingUser.agency.getImg("log_out_v1.svg")),a.R7$(),a.SpI(" ",P.floatingUser.getExitOnboardingText()," "))},dependencies:[i.Sq,i.bT,M.DM,r.D9],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;left:0;top:0;height:100vh;width:100vw;z-index:3}.popup[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 10px #0000001a;position:fixed;bottom:0;left:0;right:0;z-index:1}.top[_ngcontent-%COMP%]{padding:20px 20px 15px;border-bottom-style:solid;border-bottom-width:1px}.icon-name[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;display:flex;justify-content:center;align-self:center;line-height:40px;cursor:pointer;transition:all .15s ease-in;margin-right:8px}.accounts[_ngcontent-%COMP%]{padding:8px 20px 0;max-height:35vh;overflow-y:auto}.drafts[_ngcontent-%COMP%]{border-top-style:solid;border-top-width:1px;padding:8px 20px 0;max-height:35vh;overflow-y:auto}.acc[_ngcontent-%COMP%]{position:relative;padding:16px 0}.acc-border[_ngcontent-%COMP%]{border-bottom-style:solid;border-bottom-width:1px}.acc-img[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.platform-logo[_ngcontent-%COMP%]{position:absolute;width:28px;height:28px;right:0}.google-img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.bottom[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:52px}.ic-logout[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:6px}"],data:{animation:[f.r5,f.B6]}})}}return v})();var O=n(650),T=n(3421),I=n(5997);let h=(()=>{class v{constructor(e){this.agency=e}getAppId(){return"ads"}static{this.\u0275fac=function(p){return new(p||v)(a.KVO(S.z))}}static{this.\u0275mod=a.$C({type:v})}static{this.\u0275inj=a.G2t({imports:[i.MD,s.q1,t.X1,y.dX,t.YN,M.iu,T.m,C.iI,I.RU,r.h.forChild({missingTranslationHandler:{provide:r.er,useClass:d.i},useDefaultLang:!0,parser:{provide:r.Sd,useClass:A.z}}),c.forRoot({appId:null,updateOnRouterChange:!0}),i.MD,t.X1,r.h,c,t.YN,M.iu,y.dX,s.q1]})}}return v})();a.wjB(l.T,function(){return[i.Sq,i.bT,M.DM,L]},function(){return[r.D9]}),a.wjB(O.R,function(){return[i.Sq,i.bT,t.me,t.BC,y.aY,t.vS,M.DM,T.b,m.b]},function(){return[r.D9]})},7774(j,D,n){"use strict";n.d(D,{y:()=>c});var i=n(574),t=n(6067),s=n(2986),r=n(5515),u=n(7876),a=n(74);class c{constructor(d,A,M,y,C,l,f,S,x,w,k,U,N,B,R,L){this.isVerified=!1,this.isPrivate=!1,this.social="",this._username="",this._pk="",this._img="",this._fullName="",this._email="",this._isEmailVerified=!1,this._phoneNumber="",this._status="",this._nextBilling=0,this._plan=null,this._plan_id=null,this._isSubscriptionExpanded=!1,this._ccLast4Digits="",this._ccExpiryDate="",this._ccCredit="",this._uuid="",this._cross_follow=!0,this._interactions=!0,this._notificationCount=0,this._dynamic="all",this.guaranteedFollowers=!1,d&&(this.username=d),A&&(this.pk=A),M&&(this.img=M),y&&(this.fullName=y),C&&(this.email=C),l&&(this.isEmailVerified=l),f&&(this.phoneNumber=f),S&&(this.status=S),x&&(this.nextBilling=x),w&&(this.plan=w),k&&(this.plan_id=k),U&&(this.isSubscriptionExpanded=U),N&&(this.ccLast4Digits=N),B&&(this.ccExpiryDate=B),R&&(this.ccCredit=R),L&&(this.uuid=L),this.features={},this.plans=[],this.charges=null}restore(d){let A=this;Object.keys(d).forEach(function(M){A[M]=d[M]})}get fullName(){return this._fullName}set fullName(d){d&&(this._fullName=d)}get img(){return this._img}set img(d){d&&(this._img=d)}get pk(){return this._pk}set pk(d){d&&(this._pk=d)}get username(){return this._username}set username(d){d&&(this._username=d)}get plan(){return this._plan}set plan(d){this._plan=d}get plan_id(){return this._plan_id}set plan_id(d){this._plan_id=d}get nextBilling(){return this._nextBilling}set nextBilling(d){d&&(this._nextBilling=d)}get status(){return this._status}set status(d){d&&(this._status=d)}get phoneNumber(){return this._phoneNumber}set phoneNumber(d){d&&(this._phoneNumber=d)}get email(){return this._email}set email(d){d&&(this._email=d)}get isEmailVerified(){return this._isEmailVerified}set isEmailVerified(d){null!=d&&(this._isEmailVerified=d)}get isCrossFollow(){return this._cross_follow}set crossFollow(d){this._cross_follow=d}get isInteractions(){return this._interactions}set interactions(d){this._interactions=d}get isSubscriptionExpanded(){return this._isSubscriptionExpanded}set isSubscriptionExpanded(d){null!=d&&(this._isSubscriptionExpanded=d)}get ccCredit(){return this._ccCredit}set ccCredit(d){d&&(this._ccCredit=d)}get ccExpiryDate(){return this._ccExpiryDate}set ccExpiryDate(d){d&&(this._ccExpiryDate=d)}get ccLast4Digits(){return this._ccLast4Digits}set ccLast4Digits(d){d&&(this._ccLast4Digits=d)}get uuid(){return this._uuid}set uuid(d){d&&(this._uuid=d)}get dynamic(){return this._dynamic}set dynamic(d){d&&(this._dynamic=d)}get notificationCount(){return this._notificationCount}set notificationCount(d){d&&(this._notificationCount=d)}isTikTok(){return"tiktok"==this.social}isInstagram(){return"instagram"==this.social}getSocialPrefix(){return this.isInstagram()?"ig":this.isTikTok()?"tt":"ig"}getSocialNetworkLogo(){return this.isTikTok()?"assets/images/default/tiktok.svg":"assets/images/default/instagram.svg"}getSocialName(){return this.isTikTok()?"TikTok":"Instagram"}neverLoggedIn(){return this.account&&this.account.status==i.u1.NEVER_LOGGED_IN}isLoggedIn(){return this.account?.status===i.u1.VALID}static parseSubscription(d,A){if(A||(A=new c),A.uuid=d.id,A.pk=d.account_id,A.nextBilling=d.next_billing_at,A.plan_id=d.pricing_id,A.status=d.status,A.social=d.social,A.createdAt=d.created_at,A.cancelledAt=d.cancelled_at,A.hasScheduledCancel=d.has_scheduled_cancel,A.isDunning=d.is_dunning,A.img=r.b.cndImagePrefix+A.pk+".jpg",A.showOnboardingTour=d.show_onboarding_tour,A.isLifetimeDeal=d.is_ltd,A.onDemand=d.on_demand,A.social||(A.social="instagram"),d.account&&(A.username=d.account.username,A.fullName=d.account.full_name,A.fullName||(A.fullName=d.account.fullname),A.isVerified=d.account.is_verified),d.item&&d.item_price){const M=d.item,y=d.item_price,C=new u.c(y.price,M.name,M.description,y.id,"USD");C.features=M.features,C.entitlemets=[];for(let l of M.entitlements)C.entitlemets.push(t.X.parse(l));C.trialPeriod=y.trial_period,C.trialUnit=y.trial_period_unit,C.period=y.period,C.periodUnit=y.period_unit,A.plan=C}if(d.item&&d.item.entitlements){const M=d.item.entitlements;for(let y of M){const C=t.X.parse(y);C.available=!0,A.features[C.id]=C}}else if(d.features)for(let M of d.features){const y=new t.X(M,s.W.getTranslateId(M));y.available=!0,A.features[M]=y}return A}static addIgImgPrefix(d){return r.b.igImagePrefix+d}parseAccount(d){this.account=i.gD.parseAccount(d),this.account.img&&(this.img=this.account.img)}canUpgrade(){return!1}isActive(){return"active"==this.status}isCancelled(){return"cancelled"==this.status}isDraft(){return"draft"==this.status}isTrial(){return"in_trial"==this.status}isNonRenewing(){return"non_renewing"==this.status}hasDashboardAccess(){return"cancelled"!==this.status&&!(this.hasScheduledCancel&&this.cancelledAt&&Math.floor(Date.now())>=Number(1e3*this.cancelledAt))}followers(d){if(this.account){if(d)return a.D.formatIgStatNumber(this.account.followers);const A=parseInt(this.account.followers);return A>=1e3?(A/1e3).toFixed(3):A.toString()}return"0"}hasAccount(){return!!this.pk}sortNumber(){switch(this.status){case"draft":default:return 0;case"cancelled":return 1;case"non_renewing":return 2;case"in_trial":case"active":return 3}}hasFeature(d){return null!=this.features[d]}getFeature(d){return this.features[d]}}},5756(j,D,n){"use strict";n.d(D,{TS:()=>u,fw:()=>s});var i=n(539),t=n(325);let s=(()=>{class a{constructor(m){this.translateService=m,this.toasts=[]}showToast(m,d){let A=new r(m,d);this.toasts.push(A),setTimeout(()=>{A==this.toasts[0]&&this.toasts.splice(0,1)},5e3)}showUnexpectedToast(){this.showToast(this.translateService.instant("errors.unknow-exception"),u.RED)}static{this.\u0275fac=function(d){return new(d||a)(i.KVO(t.c$))}}static{this.\u0275prov=i.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();
1class r{constructor(c,m){this.text=c,this.color=m}}var u=function(a){return a[a.BLUE=1]="BLUE",a[a.RED=2]="RED",a[a.YELLOW=3]="YELLOW",a[a.GREEN=4]="GREEN",a[a.BLACK=5]="BLACK",a}(u||{})},8564(j,D,n){"use strict";n.d(D,{b:()=>f});var i=n(9767),t=n(559),s=n(539),r=n(325),u=n(5261),a=n(4460),c=n(8836),m=n(3313);const d=["content"];function A(S,x){if(1&S&&s.nrm(0,"svg-icon",7),2&S){const w=s.XpG();s.HbH(w.getIconFill()),s.xc7("width",w.getSize())("height",w.getSize())("font-size",w.getSize()),s.Y8G("src",w.agency.getImg("info_v1.svg"))}}function M(S,x){if(1&S&&s.nrm(0,"fa-icon",8),2&S){const w=s.XpG();s.Y8G("icon",w.faTriangleExclamation)}}function y(S,x){if(1&S&&(s.j41(0,"div",9),s.nrm(1,"svg-icon",10)(2,"div",11),s.k0s()),2&S){const w=s.XpG();s.xc7("top",w.fixedTop,"px")("left",w.fixedLeft,"px"),s.AVh("left",w.left)("right",w.right),s.Y8G("@fadeInOut",void 0),s.R7$(),s.Y8G("src",w.agency.getImg("tooltip_tip_v1.svg")),s.R7$(),s.Y8G("innerHTML",w.getBody(),s.npT)}}function C(S,x){if(1&S&&(s.j41(0,"div",12),s.nrm(1,"div",13),s.k0s()),2&S){const w=s.XpG();s.xc7("transform",w.mobileTransform)("width",w.mobileWidth),s.Y8G("@fadeInOut",void 0),s.R7$(),s.Y8G("innerHTML",w.getBody(),s.npT)}}function l(S,x){if(1&S&&s.nrm(0,"svg-icon",10),2&S){const w=s.XpG();s.AVh("bottom",w.mobileBottom),s.Y8G("src",w.agency.getImg("tooltip_tip_v1.svg"))("@fadeInOut",void 0)}}let f=(()=>{class S{constructor(w,k,U){this.translate=w,this.agency=k,this.zone=U,this.iconSize=20,this.faTriangleExclamation=t.JAe,this.scrollHandler=()=>{this.visible&&this.zone.run(()=>{this.isMobile()?this.calcMobile():this.calcFixedPosition()})}}ngAfterViewInit(){this.calcLeft(),this.calcRight(),this.calcFixedPosition(),this.calcMobile(),document.addEventListener("scroll",this.scrollHandler,!0)}ngOnInit(){}ngOnDestroy(){document.removeEventListener("scroll",this.scrollHandler,!0)}getBody(){return this.tranlaste?this.tranlaste:this.translateId?this.translate.instant("tooltips."+this.translateId,{brand_name:this.agency.agency.brandName}):"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tellus semper amet, proin dignissim magna tristique scelerisque lacus. Platea in commodo, velit, aliquam non ac libero est habitasse. Id ultricies est eget ornare."}calcLeft(){const k=this.contentRef.nativeElement.getBoundingClientRect();this.left=k.right+200>window.innerWidth}calcRight(){const k=this.contentRef.nativeElement.getBoundingClientRect();this.right=k.left-200<0}calcFixedPosition(){const k=this.contentRef.nativeElement.getBoundingClientRect();this.fixedLeft=k.left+k.width/2,this.fixedTop=this.left||this.right?k.top+k.height/2:k.top}calcMobile(){const k=this.contentRef.nativeElement.getBoundingClientRect();this.mobileTransform=`translate(-${k.left-20}px, -20px) translateY(-100%)`,this.mobileWidth=window.innerWidth-40+"px",this.mobileBottom=k.top<200,this.mobileBottom&&(this.mobileTransform="translate(-"+(k.left-20)+"px, 40px)")}show(){this.calcLeft(),this.calcRight(),this.calcFixedPosition(),this.calcMobile(),this.visible=!0}hide(){this.visible=!1}isMobile(){return window.innerWidth<900}getSize(){return this.iconSize+"px"}getIconFill(){return this.visible?this.colorClassVisible?this.colorClassVisible:"fill-icon-link":this.colorClass?this.colorClass:"fill-bkg-4"}static{this.\u0275fac=function(k){return new(k||S)(s.rXU(r.c$),s.rXU(u.z),s.rXU(s.SKi))}}static{this.\u0275cmp=s.VBU({type:S,selectors:[["app-tooltip"]],viewQuery:function(k,U){if(1&k&&s.GBs(d,5),2&k){let N;s.mGM(N=s.lsd())&&(U.contentRef=N.first)}},inputs:{translateId:"translateId",tranlaste:"tranlaste",warning:"warning",colorClass:"colorClass",colorClassVisible:"colorClassVisible",iconSize:"iconSize"},standalone:!1,decls:7,vars:5,consts:[["content",""],[1,"content",3,"mouseenter","mouseleave","click"],["class","ic-info",3,"src","width","height","font-size","class",4,"ngIf"],["class","ic-warning",3,"icon",4,"ngIf"],["class","tooltip info-tooltip bkg-2 box-shadow fixed",3,"left","right","top",4,"ngIf"],["class","tooltip bkg-2 box-shadow info-tooltip",3,"transform","width",4,"ngIf"],["class","tip fill-bkg-2 info-tooltip-tip",3,"bottom","src",4,"ngIf"],[1,"ic-info",3,"src"],[1,"ic-warning",3,"icon"],[1,"tooltip","info-tooltip","bkg-2","box-shadow","fixed"],[1,"tip","fill-bkg-2","info-tooltip-tip",3,"src"],[1,"f-size-14","f-medium","color-text-2",3,"innerHTML"],[1,"tooltip","bkg-2","box-shadow","info-tooltip"],[1,"f-size-12","f-medium","color-text-2",3,"innerHTML"]],template:function(k,U){if(1&k){const N=s.RV6();s.j41(0,"div",1,0),s.bIt("mouseenter",function(){return s.eBV(N),s.Njj(U.show())})("mouseleave",function(){return s.eBV(N),s.Njj(U.hide())})("click",function(R){return s.eBV(N),s.Njj(R.stopPropagation())}),s.DNE(2,A,1,9,"svg-icon",2)(3,M,1,1,"fa-icon",3)(4,y,3,11,"div",4)(5,C,2,6,"div",5)(6,l,1,4,"svg-icon",6),s.k0s()}2&k&&(s.R7$(2),s.Y8G("ngIf",!U.warning),s.R7$(),s.Y8G("ngIf",U.warning),s.R7$(),s.Y8G("ngIf",U.visible&&!U.isMobile()),s.R7$(),s.Y8G("ngIf",U.visible&&U.isMobile()),s.R7$(),s.Y8G("ngIf",U.visible&&U.isMobile()))},dependencies:[a.bT,c.aY,m.DM],styles:[".content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.tooltip[_ngcontent-%COMP%]{font-size:initial;line-height:normal;position:absolute;
1left:50%;bottom:100%;margin-bottom:22px;padding:20px;border-radius:10px;transform:translate(-50%);z-index:2;width:400px}.tip[_ngcontent-%COMP%]{width:34px;height:21px;position:absolute;left:50%;bottom:-20px;transform:translate(-50%) rotate(180deg)}.box-shadow[_ngcontent-%COMP%]{box-shadow:0 0 3px #00000040}.tooltip.fixed[_ngcontent-%COMP%]{position:fixed;bottom:auto;transform:translate(-50%,calc(-100% - 22px));margin:0}.tooltip.fixed[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{position:absolute;left:50%;bottom:-20px;transform:translate(-50%) rotate(180deg)}.tooltip.fixed.left[_ngcontent-%COMP%]{bottom:auto;transform:translate(calc(-100% - 18px),-50%)}.tooltip.fixed.left[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{left:100%;bottom:initial;top:50%;transform:translate(-8px,-50%) rotate(90deg)}.tooltip.fixed.right[_ngcontent-%COMP%]{bottom:auto;transform:translate(18px,-50%)}.tooltip.fixed.right[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{left:0;bottom:initial;top:50%;transform:translate(-27px,-50%) rotate(270deg)}.tooltip.left[_ngcontent-%COMP%]{bottom:50%;margin-bottom:0;left:0;transform:translate(-100%,50%) translate(-18px)}.tooltip.left[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{left:100%;bottom:initial;top:50%;right:initial;transform:translate(-8px,-50%) rotate(90deg)}.tooltip.right[_ngcontent-%COMP%]{bottom:50%;margin-bottom:0;left:100%;transform:translateY(50%) translate(18px)}.tooltip.right[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{left:0;bottom:initial;top:50%;right:initial;transform:translate(-27px,-50%) rotate(270deg)}.ic-info[_ngcontent-%COMP%]{font-size:initial;cursor:pointer;transition:all .1s ease-in}.ic-warning[_ngcontent-%COMP%]{font-size:inherit;color:#ffb600;cursor:pointer;transition:all .1s ease-in}.ic-warning[_ngcontent-%COMP%]:hover{filter:grayscale(.7)}@media only screen and (max-width: 899px){.tooltip[_ngcontent-%COMP%]{left:0;top:0;bottom:auto;margin-bottom:0}.tip[_ngcontent-%COMP%]{position:absolute;left:50%;top:0;bottom:auto;transform:translate(-50%,-96%) rotate(180deg);z-index:2}.tip.bottom[_ngcontent-%COMP%]{transform:translate(-50%,95%)}}"],data:{animation:[i.Ws]}})}}return S})()},1492(j,D,n){"use strict";n.d(D,{g:()=>k});var i=n(6392),t=n(2986);const s=[{popover:{title:"home.product-tour.welcome.title",description:"home.product-tour.welcome.description"}},{element:"#growth-analytics",popover:{description:"home.product-tour.growth-analytics"}}],r=[{element:"#targeting",popover:{description:"home.product-tour.targeting"}},{element:"#followbacks-activity-queue",popover:{description:"home.product-tour.followbacks-activity-queue"}},{element:"#whitelist-blacklist",popover:{description:"home.product-tour.whitelist-blacklist"}},{element:"#btn-add-sources",popover:{title:"home.product-tour.add-sources.title",description:"home.product-tour.add-sources.description"}}],u=[{element:"#ig-audit",popover:{description:"home.product-tour.ig-audit"}},{element:"#targeting",popover:{description:"home.product-tour.targeting"}},{element:"#followbacks-activity-queue",popover:{description:"home.product-tour.followbacks-activity-queue"}},{element:"#whitelist-blacklist",popover:{description:"home.product-tour.whitelist-blacklist"}},{element:"#btn-add-sources",popover:{title:"home.product-tour.add-sources.title",description:"home.product-tour.add-sources.description"}}],a=[{element:"#ig-audit",popover:{description:"home.product-tour.ig-audit"}},{element:"#targeting",popover:{description:"home.product-tour.targeting"}},{element:"#followbacks-activity-queue",popover:{description:"home.product-tour.followbacks-activity-queue"}},{element:"#whitelist-blacklist",popover:{description:"home.product-tour.whitelist-blacklist"}},{element:"#close-friends",popover:{description:"home.product-tour.close-friends"}},{element:"#welcome-dm",popover:{description:"home.product-tour.welcome-dm"}},{element:"#btn-add-sources",popover:{title:"home.product-tour.add-sources.title",description:"home.product-tour.add-sources.description"}}],c=[{element:"#close-friends",popover:{description:"home.product-tour.close-friends"}},{element:"#welcome-dm",popover:{description:"home.product-tour.welcome-dm"}}],m=[{element:"#connect-account-1",popover:{title:"onboarding-tour.connect-account.step-1.title",description:"onboarding-tour.connect-account.step-1.subtitle"}},{element:"#connect-account-2",popover:{title:"onboarding-tour.connect-account.step-2.title",description:"onboarding-tour.connect-account.step-2.subtitle"}},{element:"#connect-account-2",popover:{title:"onboarding-tour.connect-account.step-3.title",description:"onboarding-tour.connect-account.step-3.subtitle"}}],d=[{element:"#targeting",popover:{title:"onboarding-tour.add-targets.step-1.title",description:"onboarding-tour.add-targets.step-1.subtitle"}},{element:"#targeting-filters",popover:{title:"onboarding-tour.add-targets.step-2.title",description:"onboarding-tour.add-targets.step-2.subtitle"}},{element:"#add-targets-3",popover:{title:"onboarding-tour.add-targets.step-3.title",description:"onboarding-tour.add-targets.step-3.subtitle"}},{element:"#add-targets-4",popover:{title:"onboarding-tour.add-targets.step-4.title",description:"onboarding-tour.add-targets.step-4.subtitle"}}],A=[{element:"#dynamics-1",popover:{title:"onboarding-tour.dynamics.step-1.title",description:"onboarding-tour.dynamics.step-1.subtitle"}},{element:"#dynamics-1",popover:{title:"onboarding-tour.dynamics.step-2.title",description:"onboarding-tour.dynamics.step-2.subtitle"}},{element:"#dynamics-1",popover:{title:"onboarding-tour.dynamics.step-3.title",description:"onboarding-tour.dynamics.step-3.subtitle"}}];var M=n(3389),y=n(539),C=n(74),l=n(9548),f=n(4409),S=n(325),x=n(9399),w=n(5261);let k=(()=>{class U{constructor(B,R,L,O,T,I){this.userService=B,this.router=R,this.customerService=L,this.translateService=O,this.onboardingTourService=T,this.agencyService=I}hasFollowUnfollow(){return this.userService.currentSubscription.hasFeature(t.W.FOLLOW_UNFOLLOW.id)}waitForElement(B,R,L=50){let O=0;const T=()=>{O++,document.querySelector(B)?R():O<L?setTimeout(T,100):(console.warn(`Element ${B} not found after ${L} attempts, proceeding with tour`),R())};T()}startProductTour(){const B=`${this.userService.getSubscriptionPath()}/home`;this.router.url.includes(B)||this.router.navigateByUrl(B);const{currentSubscription:R}=this.userService,{account:L}=R||{};L&&(0,i.B)({popoverClass:"driverjs-theme",showProgress:!0,allowClose:!1,disableActiveInteraction:!0,steps:[...s.map(T=>({...T,popover:{title:T.popover.title?this.translateService.instant(T.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(T.popover.description,{brandName:this.agencyService.agency.brandName})}})),...this.hasFollowUnfollow()?r.map(T=>({...T,popover:{title:T.popover.title?this.translateService.instant(T.popover.title):void 0,description:this.translateService.instant(T.popover.description,{brandName:this.agencyService.agency.brandName})}})):[]],onDestroyed:()=>{const{showProductTour:T}=this.customerService;if(T&&this.customerService.updateProductTour(!1).subscribe({next:()=>{localStorage.setItem("productTourCompleted","true")},error:I=>{console.error("Failed to update product tour",I)}}),this.hasFollowUnfollow()){const h=window.innerWidth<801?"add-targeting-mobile":"add-targets";this.router.navigateByUrl(`${B}/${h}`)}}}).drive()}startTierTwoProductTour(){const B=`${this.userService.getSubscriptionPath()}/home`,R=`${this.userService.getSubscriptionPath()}/dynamics`;this.router.url.includes(B)||this.router.navigateByUrl(B);const L=(0,i.B)({popoverClass:"driverjs-theme",showProgress:!0,allowClose:!1,disableActiveInteraction:!0,onNextClick:O=>{if("whitelist-blacklist"!==O?.id)if("welcome-dm"!==O?.id)if("targeting-filters"!==O?.id)L.moveNext();else{const T=`${this.userService.getSubscriptionPath()}/home`,h=window.innerWidth<801?"add-targeting-mobile":"add-targets";this.router.navigate([`${T}/${h}`]).then(()=>{this.waitForElement("#add-targets-3",()=>L.moveNext())})}else this.router.navigateByUrl(B).then(()=>{this.waitForElement("#btn-add-sources",()=>L.moveNext())});else this.router.navigateByUrl(R).then(()=>{this.waitForElement("#close-friends",()=>L.moveNext())})},onPrevClick:O=>{"close-friends"!==O?.id?"btn-add-sources"!==O?.id?L.movePrevious():this.router.navigateByUrl(R).then(()=>{this.waitForElement("#welcome-dm",()=>L.movePrevious())}):this.router.navigateByUrl(B).then(()=>{this.waitForElement("#whitelist-blacklist",()=>L.movePrevious())})},steps:[...s.map(O=>({...O,popover:{title:O.popover.title?this.translateService.instant(O.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(O.popover.description,{brandName:this.agencyService.agency.brandName})}})),...u.map(O=>({...O,popover:{title:O.popover.title?this.translateService.instant(O.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(O.popover.description,{brandName:this.agencyService.agency.brandName})}}))],onDestroyed:()=>
1{if(this.hasFollowUnfollow()){const T=window.innerWidth<801?"add-targeting-mobile":"add-targets";this.router.navigateByUrl(`${B}/${T}`)}}});L.drive()}startTierThreeProductTour(){const B=`${this.userService.getSubscriptionPath()}/home`,R=`${this.userService.getSubscriptionPath()}/dynamics`;this.router.url.includes(B)||this.router.navigateByUrl(B);const L=(0,i.B)({popoverClass:"driverjs-theme",showProgress:!0,allowClose:!1,disableActiveInteraction:!0,onNextClick:O=>{"whitelist-blacklist"!==O?.id?"welcome-dm"!==O?.id?L.moveNext():this.router.navigateByUrl(B).then(()=>{this.waitForElement("#btn-add-sources",()=>L.moveNext())}):this.router.navigateByUrl(R).then(()=>{this.waitForElement("#close-friends",()=>L.moveNext())})},onPrevClick:O=>{"close-friends"!==O?.id?"btn-add-sources"!==O?.id?L.movePrevious():this.router.navigateByUrl(R).then(()=>{this.waitForElement("#welcome-dm",()=>L.movePrevious())}):this.router.navigateByUrl(B).then(()=>{this.waitForElement("#whitelist-blacklist",()=>L.movePrevious())})},steps:[...s.map(O=>({...O,popover:{title:O.popover.title?this.translateService.instant(O.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(O.popover.description,{brandName:this.agencyService.agency.brandName})}})),...a.map(O=>({...O,popover:{title:O.popover.title?this.translateService.instant(O.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(O.popover.description,{brandName:this.agencyService.agency.brandName})}}))],onDestroyed:()=>{if(this.hasFollowUnfollow()){const T=window.innerWidth<801?"add-targeting-mobile":"add-targets";this.router.navigateByUrl(`${B}/${T}`)}}});L.drive()}startGrowthToAdvancedUpgradeTour(){const B=`${this.userService.getSubscriptionPath()}/dynamics`;this.router.url.includes(B)||this.router.navigateByUrl(B).then(()=>{this.waitForElement("#close-friends",()=>{(0,i.B)({popoverClass:"driverjs-theme",showProgress:!0,allowClose:!1,disableActiveInteraction:!0,steps:[...c.map(L=>({...L,popover:{title:L.popover.title?this.translateService.instant(L.popover.title,{brandName:this.agencyService.agency.brandName}):void 0,description:this.translateService.instant(L.popover.description,{brandName:this.agencyService.agency.brandName})}}))],onDestroyed:()=>{const{showProductTour:L}=this.customerService;L&&this.customerService.updateProductTour(!1).subscribe({next:()=>{localStorage.setItem("productTourCompleted","true")},error:O=>{console.error("Failed to update product tour",O)}})}}).drive()})})}startOnboardingTour(B){let R;switch(B){case M.d.CONNECT_ACCOUNT:R=m;break;case M.d.ADD_TARGETING:R=d;break;case M.d.SELECT_GROWTH:R=A}const L=(0,i.B)({popoverClass:"driverjs-theme",showProgress:!0,allowClose:!1,disableActiveInteraction:!0,onNextClick:O=>{if("targeting-filters"!==O?.id)L.moveNext();else{const T=`${this.userService.getSubscriptionPath()}/home`,h=window.innerWidth<801?"add-targeting-mobile":"add-targets";this.router.navigate([`${T}/${h}`],{queryParams:{onboardingTour:B},queryParamsHandling:"merge"}).then(()=>L.moveNext())}},onPrevClick:O=>{if("add-targets-3"!==O?.id)L.movePrevious();else{const T=`${this.userService.getSubscriptionPath()}/home`;this.router.navigate([T],{queryParams:{onboardingTour:B},queryParamsHandling:"merge"}).then(()=>L.movePrevious())}},steps:[...R.map(O=>({...O,popover:{title:this.translateService.instant(O.popover.title,{brandName:this.agencyService.agency.brandName}),description:this.translateService.instant(O.popover.description,{brandName:this.agencyService.agency.brandName})}}))],onDestroyed:()=>{const O=`${this.userService.getSubscriptionPath()}/home`;switch(B){case M.d.CONNECT_ACCOUNT:this.onboardingTourService.setTourCompleted(M.d.CONNECT_ACCOUNT);break;case M.d.ADD_TARGETING:this.onboardingTourService.setTourCompleted(M.d.ADD_TARGETING);break;case M.d.SELECT_GROWTH:this.onboardingTourService.setTourCompleted(M.d.SELECT_GROWTH)}this.router.navigate(B===M.d.CONNECT_ACCOUNT?[`${O}/connect-instagram/add-password`]:[],{queryParams:{onboardingTour:null},queryParamsHandling:"merge"})}});L.drive()}static{this.\u0275fac=function(R){return new(R||U)(y.KVO(C.D),y.KVO(l.Ix),y.KVO(f.m),y.KVO(S.c$),y.KVO(x.p),y.KVO(w.z))}}static{this.\u0275prov=y.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},74(j,D,n){"use strict";n.d(D,{D:()=>L});var i=n(539),t=n(5515),s=n(7774),r=n(7876),u=n(2986),a=n(1229),c=n(3070),m=n(756),d=n(4652),A=n(9548),M=n(5498),y=n(325),C=n(2416),l=n(826),f=n(5280),S=n(8183),x=n(4409),w=n(3731),k=n(6487),U=n(0),N=n(9086),B=n(5261),R=n(6784);let L=(()=>{class O{constructor(I,h,v,E,e,p,P,G,K,W,$,X,Y,z,J){this.httpSender=I,this.router=h,this.authService=v,this.translateService=E,this.intercomService=e,this.initLoaderService=p,this.onboardingService=P,this.kickstaOnboardingService=G,this.customerService=K,this.configService=W,this.notificationService=$,this.errorService=X,this.paymentService=Y,this.agency=z,this.guaranteedService=J,this.planSubscriptions=new Map,this.onInit=new i.bkB,this.authService.userService=this,this.intercomService.userService=this,"kicksta"===this.agency.name?this.kickstaOnboardingService.userService=this:this.onboardingService.userService=this}get currentSubscription(){return this._currentSubscription}set currentSubscription(I){this._currentSubscription=I,I?(0,m.Z)(I):(0,m.C)()}getSubscriptions(I){I||(this.initLoaderService.registerWaiter(this),I=!1),this.httpSender.get("subscriptions").subscribe({next:h=>this.getSubscriptionsCallback(h,I),error:h=>this.getSubscriptionsErrorCallback(h,this)}),this.customerService.getCustomer(),this.notificationService.getNewNotifications(),this.configService.getConfig()}getSubscriptionsOnboarding(){this.initLoaderService.registerWaiter(this),this.customerService.getCustomer(),this.configService.getConfig(),this.httpSender.get("subscriptions").subscribe({next:I=>{const h=I.body.subscriptions;this.subscriptions=[],this.currentSubscription=null;for(let v of h){const E=s.y.parseSubscription(v);E.plan&&(E.plan.currency=this.agency.getCurrency()),this.subscriptions.push(E),this.getAccount(E,!0),this.getGuaranteed(E,!0),this.getPlan(E)}this.sortSubscriptions(),0==h.length?this.navigateOnboardingStart():(this.setCurrentSubscription(),this.updateMixpanelSubscriptionStatus()),this.initLoaderService.unregisterWaiter(this),this.intercomService.updateIntercomData()},error:I=>this.getSubscriptionsErrorCallback(I,this)})}
1getSubscriptionsHome(I){this.initLoaderService.registerWaiter(this),this.customerService.getCustomer(),this.notificationService.getNewNotifications(),this.configService.getConfig(),this.httpSender.get("subscriptions").subscribe({next:h=>{const v=h.body.subscriptions;this.subscriptions=[];for(let E of v){const e=s.y.parseSubscription(E);this.subscriptions.push(e),this.getAccount(e,!0),this.getGuaranteed(e,!0),this.getPlan(e)}this.sortSubscriptions(),this.setCurrentSubscription(),this.updateMixpanelSubscriptionStatus(),this.navigateByCurrentSubscription(I),this.initLoaderService.unregisterWaiter(this),this.intercomService.updateIntercomData()},error:h=>this.getSubscriptionsErrorCallback(h,this)})}getSubscriptionsCallback(I,h){let v=I.body.subscriptions;if(this.subscriptions=[],this.currentSubscription=null,0==v.length)this.navigateOnboardingStart();else{for(let E of v){let e=s.y.parseSubscription(E);this.getAccount(e,!h),this.getGuaranteed(e,!h),this.subscriptions.push(e),this.getPlan(e)}if(this.sortSubscriptions(),this.setCurrentSubscription(),this.updateMixpanelSubscriptionStatus(),h)return;(!this.currentSubscription||this.currentSubscription.isDraft())&&this.navigateByCurrentSubscription()}this.initLoaderService.unregisterWaiter(this)}getSubscriptionsErrorCallback(I,h){401!=I.status&&(this.errorService.error=this.translateService.instant("errors.we-are-working-on-fix")),429==I.status&&a.wd("Rate limit exceeded (429) in UserService",{level:"warning",tags:{service:"UserService",method:"getSubscriptionsErrorCallback",status:"429"},extra:{response:I,url:I.url,headers:I.headers}}),403==I.status&&this.router.navigateByUrl("/login"),h&&this.initLoaderService.unregisterWaiter(this)}setCurrentSubscription(){for(let h of this.subscriptions)if(this.pathMatch(h))return void(this.currentSubscription=h);const I=localStorage.getItem("current");for(let h of this.subscriptions)if(h.uuid==I)return void(this.currentSubscription=h);this.subscriptions.length&&(this.currentSubscription=this.subscriptions[0])}updateMixpanelSubscriptionStatus(){if(this.currentSubscription?.uuid){this.customerService.identifyMixpanel(this.currentSubscription.uuid);const I=this.subscriptions.map(E=>({username:E.username||"N/A",status:E.status||"unknown",planName:E.plan?.name||"N/A"}));this.customerService.updateMixpanelSubscriptionStatus(this.currentSubscription.status,I,this.currentSubscription.username)}else if(this.subscriptions&&this.subscriptions.length>0){const I=this.subscriptions[0];if(I?.uuid){this.customerService.identifyMixpanel(I.uuid);const h=this.subscriptions.map(e=>({username:e.username||"N/A",status:e.status||"unknown",planName:e.plan?.name||"N/A"}));this.customerService.updateMixpanelSubscriptionStatus(I.status,h,I.username)}}else this.customerService.identifyMixpanel(void 0,!0)}getSubscription(I){for(let h of this.subscriptions)if(h.uuid==I)return h;return null}getSubscriptionByPk(I){for(let h of this.subscriptions)if(h.pk==I)return h;return null}sortSubscriptions(){this.subscriptions.sort((I,h)=>h.sortNumber()!=I.sortNumber()?h.sortNumber()-I.sortNumber():h.createdAt-I.createdAt)}pathMatch(I){return!!I&&(I.username==this.pathUsername&&I.getSocialPrefix()==this.pathSocialPrefix||I.uuid==this.pathUuid)}navigateByCurrentSubscription(I){if(!this.currentSubscription)return void this.navigateOnboardingStart();if(this.currentSubscription.isDraft())return this.paymentService.getPrimaryPaymentMethod(!0),void(this.subscriptions[1]&&this.subscriptions[1].isDraft()?this.router.navigateByUrl("/onboarding/drafts"):(this.onboardingService.getPlans(this.currentSubscription.uuid,!0),this.router.navigateByUrl("/onboarding/subscriptions/"+this.currentSubscription.uuid+"/plan")));if(!this.currentSubscription.hasAccount())return void this.navigateAddAccountToSubscrtion(this.currentSubscription);const h=this.getSubscriptionPath()+"/home";I&&Object.keys(I).length>0?this.router.navigate([h],{queryParams:I}):this.router.navigateByUrl(h)}navigateOnboardingStart(){this.paymentService.getPrimaryPaymentMethod(!0),this.router.navigateByUrl("/onboarding")}navigateAddAccountToSubscrtion(I){this.router.navigateByUrl("onboarding/subscriptions/"+I.uuid+"/connect-account/add-password")}updateSubscription(I){if(this.currentSubscription&&this.currentSubscription.uuid==I.uuid&&(this.currentSubscription=I,this.updateMixpanelSubscriptionStatus()),this.subscriptions){for(let h=0;h<this.subscriptions.length;h++)if(this.subscriptions[h].uuid==I.uuid){this.subscriptions.splice(h,1);break}this.subscriptions.push(I)}}static formatIgStatNumber(I){if(null==I)return"";let h=(I+="").length,v=Math.floor((h-1)/3),E=I.substring(h-3*v,h-3*v+1);switch(E="0"==E?"":"."+E,v){case 0:return I;case 1:return I.substring(0,h-3)+E+"K";default:return I.substring(0,h-6)+E+"M"}}getAccount(I,h){!I.hasDashboardAccess()||I.isDraft()||!I.pk||(h&&this.initLoaderService.registerWaiter(I.uuid),this.httpSender.get("accounts/"+I.pk).subscribe({next:v=>this.getAccountCallback(v,I,h),error:v=>{this.getAccountCallback(v,I,h)}}))}getGuaranteed(I,h){I.hasFeature(u.W.GUARANTEED_FOLLOWERS.id)&&(!I.hasDashboardAccess()||I.isDraft()||I.pk&&(h&&this.initLoaderService.registerWaiter(I.uuid+"_gauaranteed"),this.guaranteedService.getGuaranteed(I).subscribe({next:v=>{I.guaranteedFollowers=v.body.account.active,this.initLoaderService.unregisterWaiter(I.uuid+"_gauaranteed")},error:v=>{a.l7("error",v),a.l7("json",JSON.stringify(v)),a.wd("Get guaranteed failed"),this.initLoaderService.unregisterWaiter(I.uuid+"_gauaranteed")}})))}getAccountCallback(I,h,v=!1){if(this.initLoaderService.unregisterWaiter(h.uuid),200==I.status){const E=h.account?.proxyCountry;h.parseAccount(I.body),E&&h.account&&(h.account.proxyCountry=E),this.currentSubscription===h&&this.get
1SelectedProxy(h.account,v)}else console.error("failed to get account")}getUsersLikeOnboarding(I){return this.httpSender.get("instagram/search?context=user&fast=true&query="+I)}getUsersLike(I){return this.httpSender.get("instagram/search?context=user&query="+I)}getUsersLikeAlternative(I){return this.httpSender.get("instagram/usernames/"+I)}getUserDetailsCallBack(I,h){200==I.status&&I.body&&I.body.data&&(h.img=t.b.igImagePrefix+I.body.data.profile_pic_url)}onChangeSubscription(I){const h=this.currentSubscription;if(this.currentSubscription=I,I?.uuid&&(this.customerService.identifyMixpanel(I.uuid),this.updateMixpanelSubscriptionStatus()),localStorage.setItem("current",I.uuid),I.hasAccount()){const v=`${this.getSubscriptionPath()}/home`;this.initLoaderService.registerWaiter("switch-user"),this.router.navigateByUrl(v).then(()=>{window.location.reload()})}else this.onboardingService.lastSubscription=h,this.navigateAddAccountToSubscrtion(this.currentSubscription)}getPlan(I){I.plan_id&&this.planSubscriptions.set(I.uuid,this.httpSender.get("subscriptions/"+I.uuid+"/plans").subscribe({next:h=>{let v=r.c.parsePlansResponse(h);I.plans=v,I.charges=h.body.charges;for(let E of v)E.id==I.plan_id&&(I.plan=E,this.onboardingService.subscription&&this.onboardingService.subscription.uuid==I.uuid&&(this.onboardingService.selectedPlan=E)),I.futurePlanId==E.id&&(I.futurePlan=E)},error:h=>{console.error(h)}}))}getLang(){return localStorage.getItem("language")||"en"}getSubscriptionPath(I){return I||(I=this.currentSubscription),I.username||(I.username="undefined",this.errorService.error=this.translateService.instant("errors.we-are-working-on-fix")),"/"+I.getSocialPrefix()+"/"+I.username}subscriptionsLoaded(){return null!=this.subscriptions}getSelectedProxy(I,h=!0){if(I.proxyCountry)return;const v=I.pk+"_proxy";h&&this.initLoaderService.registerWaiter(v),this.httpSender.get(`accounts/${I.pk}/proxy`).subscribe({next:E=>{const e=E.body.settings?.["location.countryISO"]?.$eq,p=(0,c.j)(e);p&&(I.proxyCountry=p),h&&this.initLoaderService.unregisterWaiter(v)},error:()=>{h&&this.initLoaderService.unregisterWaiter(v)}})}static{this.\u0275fac=function(h){return new(h||O)(i.KVO(d.t),i.KVO(A.Ix),i.KVO(M.u),i.KVO(y.c$),i.KVO(C.r),i.KVO(l.M),i.KVO(f.x$),i.KVO(S.x$),i.KVO(x.m),i.KVO(w.w),i.KVO(k.I),i.KVO(U.I),i.KVO(N.h),i.KVO(B.z),i.KVO(R.R))}}static{this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},7401(j,D,n){"use strict";n.d(D,{X:()=>i,b:()=>t});const i="17e6f940e67b2a220ec0bea36d8f2939061aa37a",t="master"},5312(j,D,n){"use strict";n.d(D,{c:()=>i});const i={production:!0,maintenance:!1,server:"https://api.kenji.ai/api/v1/",paypalToken:"eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpGVXpJMU5pSXNJbXRwWkNJNklqSXdNVGd3TkRJMk1UWXRjSEp2WkhWamRHbHZiaUlzSW1semN5STZJbWgwZEhCek9pOHZZWEJwTG1KeVlXbHVkSEpsWldkaGRHVjNZWGt1WTI5dEluMC5leUpsZUhBaU9qRTJOVGt3TXpFek9EY3NJbXAwYVNJNklqZzJPV1ZsWVdRNExXUTFOVFl0TkROa05DMWlaVFUzTFRabVl6UmpPRGxqWmpSak5pSXNJbk4xWWlJNkluUjBOV3A0WnpoNmFEVTBaMmgzYlhnaUxDSnBjM01pT2lKb2RIUndjem92TDJGd2FTNWljbUZwYm5SeVpXVm5ZWFJsZDJGNUxtTnZiU0lzSW0xbGNtTm9ZVzUwSWpwN0luQjFZbXhwWTE5cFpDSTZJblIwTldwNFp6aDZhRFUwWjJoM2JYZ2lMQ0oyWlhKcFpubGZZMkZ5WkY5aWVWOWtaV1poZFd4MElqcDBjblZsZlN3aWNtbG5hSFJ6SWpwYkltMWhibUZuWlY5MllYVnNkQ0pkTENKelkyOXdaU0k2V3lKQ2NtRnBiblJ5WldVNlZtRjFiSFFpWFN3aWIzQjBhVzl1Y3lJNmUzMTkuQXdkQ0lTRGQ2QjRnMC1fcE1WNFIwbTVRUGVwWDdPTW5hTjdMdHd0WkwxUjJwa29Vb2dSb1FuR3otVXhoVTRycGhZRlhXQkxialllcVp3NXpXdmpxRXciLCJjb25maWdVcmwiOiJodHRwczovL2FwaS5icmFpbnRyZWVnYXRld2F5LmNvbTo0NDMvbWVyY2hhbnRzL3R0NWp4Zzh6aDU0Z2h3bXgvY2xpZW50X2FwaS92MS9jb25maWd1cmF0aW9uIiwiZ3JhcGhRTCI6eyJ1cmwiOiJodHRwczovL3BheW1lbnRzLmJyYWludHJlZS1hcGkuY29tL2dyYXBocWwiLCJkYXRlIjoiMjAxOC0wNS0wOCIsImZlYXR1cmVzIjpbInRva2VuaXplX2NyZWRpdF9jYXJkcyJdfSwiY2xpZW50QXBpVXJsIjoiaHR0cHM6Ly9hcGkuYnJhaW50cmVlZ2F0ZXdheS5jb206NDQzL21lcmNoYW50cy90dDVqeGc4emg1NGdod214L2NsaWVudF9hcGkiLCJlbnZpcm9ubWVudCI6InByb2R1Y3Rpb24iLCJtZXJjaGFudElkIjoidHQ1anhnOHpoNTRnaHdteCIsImFzc2V0c1VybCI6Imh0dHBzOi8vYXNzZXRzLmJyYWludHJlZWdhdGV3YXkuY29tIiwiYXV0aFVybCI6Imh0dHBzOi8vYXV0aC52ZW5tby5jb20iLCJ2ZW5tbyI6Im9mZiIsImNoYWxsZW5nZXMiOlsiY3Z2Il0sInRocmVlRFNlY3VyZUVuYWJsZWQiOmZhbHNlLCJhbmFseXRpY3MiOnsidXJsIjoiaHR0cHM6Ly9jbGllbnQtYW5hbHl0aWNzLmJyYWludHJlZWdhdGV3YXkuY29tL3R0NWp4Zzh6aDU0Z2h3bXgifSwicGF5cGFsRW5hYmxlZCI6dHJ1ZSwiYnJhaW50cmVlX2FwaSI6eyJ1cmwiOiJodHRwczovL3BheW1lbnRzLmJyYWludHJlZS1hcGkuY29tIiwiYWNjZXNzX3Rva2VuIjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKRlV6STFOaUlzSW10cFpDSTZJakl3TVRnd05ESTJNVFl0Y0hKdlpIVmpkR2x2YmlJc0ltbHpjeUk2SW1oMGRIQnpPaTh2WVhCcExtSnlZV2x1ZEhKbFpXZGhkR1YzWVhrdVkyOXRJbjAuZXlKbGVIQWlPakUyTlRrd016RXlNelVzSW1wMGFTSTZJalJpT1RCa01tSTFMVFF4TWpVdE5HVTVOUzFoTVRrMkxXSm1aVEZqTldJd1pqVXlZeUlzSW5OMVlpSTZJblIwTldwNFp6aDZhRFUwWjJoM2JYZ2lMQ0pwYzNNaU9pSm9kSFJ3Y3pvdkwyRndhUzVpY21GcGJuUnlaV1ZuWVhSbGQyRjVMbU52YlNJc0ltMWxjbU5vWVc1MElqcDdJbkIxWW14cFkxOXBaQ0k2SW5SME5XcDRaemg2YURVMFoyaDNiWGdpTENKMlpYSnBabmxmWTJGeVpGOWllVjlrWldaaGRXeDBJanAwY25WbGZTd2ljbWxuYUhSeklqcGJJblJ2YTJWdWFYcGxJaXdpYldGdVlXZGxYM1poZFd4MElsMHNJbk5qYjNCbElqcGJJa0p5WVdsdWRISmxaVHBXWVhWc2RDSmRMQ0p2Y0hScGIyNXpJanA3ZlgwLm1mbXNDMG8wNFEwMm94ZXQ3NHE2WTA5cUpWbDUwZHdfeEtzWEZ1cVdkYW5lQjNKVmd1Q3FsUC1hYmRiWmprU2MzTnJETHNEbnEya3pKT05jZWVJV1FRIn0sInBheXBhbCI6eyJiaWxsaW5nQWdyZWVtZW50c0VuYWJsZWQiOnRydWUsImVudmlyb25tZW50Tm9OZXR3b3JrIjpmYWxzZSwidW52ZXR0ZWRNZXJjaGFudCI6ZmFsc2UsImFsbG93SHR0cCI6ZmFsc2UsImRpc3BsYXlOYW1lIjoiU3RpbSIsImNsaWVudElkIjoiQWVxM2ZDX0c2eExNRnhSOEpJTmNDRU5HVm9zNW9SZExjMDNaR0hzNE4tdElkQm5Gd05HZDY1UWY4cHZRcGRoRFJtWkRSVDJ5em1OT0pmcUgiLCJwcml2YWN5VXJsIjoiaHR0cHM6Ly9zdGltc29jaWFsLmNvbS9wcml2YWN5LXBvbGljeSIsInVzZXJBZ3JlZW1lbnRVcmwiOiJodHRwczovL3N0aW1zb2NpYWwuY29tL3Rlcm1zLWFuZC1jb25kaXRpb25zIiwiYmFzZVVybCI6Imh0dHBzOi8vYXNzZXRzLmJyYWludHJlZWdhdGV3YXkuY29tIiwiYXNzZXRzVXJsIjoiaHR0cHM6Ly9jaGVja291dC5wYXlwYWwuY29tIiwiZGlyZWN0QmFzZVVybCI6bnVsbCwiZW52aXJvbm1lbnQiOiJsaXZlIiwiYnJhaW50cmVlQ2xpZW50SWQiOiJBUktyWVJEaDNBR1hEelc3c09fM2JTa3EtVTFDN0hHX3VXTkMtejU3TGpZU0ROVU9TYU90SWE5cTZWcFciLCJtZXJjaGFudEFjY291bnRJZCI6InN1bm55ZmxvcmlkYWJvYXRjb21wYW5
15X2luc3RhbnQiLCJjdXJyZW5jeUlzb0NvZGUiOiJVU0QifX0"}},5593(j,D,n){"use strict";var i=n(9736),t=n(539),s=n(9208),r=n(6399),u=n(2394),a=n(9770),c=n(9548),m=n(5312),d=n(9767),A=n(3213),M=n(5498),y=n(826),C=n(5261),l=n(325),f=n(74),S=n(0),x=n(2416),w=n(6888),k=n(8739),U=n(4409),N=n(4460);let B=(()=>{class g{constructor(){}ngOnInit(){}static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-loader"]],standalone:!1,decls:22,vars:0,consts:[[1,"container"],[1,"loader"],["id","test","d","M 50,100 A 1,1 0 0 1 50,0"],["id","gradient","x1","0%","y1","0%","x2","0%","y2","100%"],["offset","0%",1,"loader-color-1",2,"stop-color","#ff56a1","stop-opacity","1"],["offset","100%",1,"loader-color-2",2,"stop-color","#ff9350","stop-opacity","1"],["id","gradient2","x1","0%","y1","0%","x2","0%","y2","100%"],["offset","0%",1,"loader-color-2",2,"stop-color","#ff9350","stop-opacity","1"],["offset","100%",1,"loader-color-1",2,"stop-color","#ff56a1","stop-opacity","1"],[1,"right"],["id","test2","d","M 50,75 A 1,1 0 0 0 50,-25"]],template:function(_,b){1&_&&(t.j41(0,"div",0)(1,"div",1),t.qSk(),t.j41(2,"svg")(3,"g"),t.nrm(4,"path",2),t.k0s(),t.j41(5,"defs")(6,"linearGradient",3),t.nrm(7,"stop",4)(8,"stop",5),t.k0s(),t.j41(9,"linearGradient",6),t.nrm(10,"stop",7)(11,"stop",8),t.k0s()()(),t.j41(12,"svg",9)(13,"g"),t.nrm(14,"path",10),t.k0s(),t.j41(15,"defs")(16,"linearGradient",3),t.nrm(17,"stop",4)(18,"stop",5),t.k0s(),t.j41(19,"linearGradient",6),t.nrm(20,"stop",7)(21,"stop",8),t.k0s()()()()())},styles:[".container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100%;width:100%;z-index:10;display:flex;justify-content:center;align-items:center}.loader[_ngcontent-%COMP%]{width:50px;height:150px;position:relative}svg[_ngcontent-%COMP%]{overflow:visible;width:50px;height:150px;position:absolute;left:-25px;animation:_ngcontent-%COMP%_slide 2s linear infinite}svg[_ngcontent-%COMP%] g[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{animation-delay:.5s;background:red}svg[_ngcontent-%COMP%] g[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{animation-delay:.5s;stroke-dasharray:0px 159px;stroke-dashoffset:1px}.right[_ngcontent-%COMP%]{animation-delay:.5s}.right[_ngcontent-%COMP%] g[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{animation-delay:.5s;stroke-dasharray:0px 159px;stroke-dashoffset:1px}path[_ngcontent-%COMP%]{stroke:url(#gradient);stroke-width:20px;stroke-linecap:round;fill:none;stroke-dasharray:0 158px;stroke-dashoffset:0;animation:_ngcontent-%COMP%_escalade 2s cubic-bezier(.8,0,.2,1) infinite,_ngcontent-%COMP%_gradientchange 4s cubic-bezier(.8,0,.2,1) infinite}@keyframes _ngcontent-%COMP%_slide{0%{top:-50px}to{top:50px}}@keyframes _ngcontent-%COMP%_escalade{0%{stroke-dasharray:0 158px;stroke-dashoffset:0}50%{stroke-dasharray:158px 158px;stroke-dashoffset:0}to{stroke-dasharray:158px 158px;stroke-dashoffset:-156px}}@keyframes _ngcontent-%COMP%_gradientchange{0%{stroke:url(#gradient)}to{stroke:url(#gradient2)}}"]})}}return g})(),R=(()=>{class g{constructor(o,_,b,F){this.errorService=o,this.agency=_,this.router=b,this.authService=F}ngOnInit(){this.agency.agency.popupIntercom()}onHome(){this.errorService.error=null,this.authService.loggedIn?this.authService.logout(!0):this.router.navigateByUrl("/login")}isMobile(){return window.innerWidth<900}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(S.I),t.rXU(C.z),t.rXU(c.Ix),t.rXU(M.u))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-error"]],standalone:!1,decls:13,vars:14,consts:[[1,"outer","bkg-3"],[1,"container","container-error"],[1,"error-img",3,"src"],[1,"error-code","f-extra-bold","color-text-1"],[1,"title","f-bold","f-size-20","color-text-1"],[1,"desc","f-size-16","f-regular","color-text-3"],[1,"btn-primary","home-btn","f-size-14","f-medium",3,"click"]],template:function(_,b){1&_&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"img",2),t.j41(3,"div",3),t.EFF(4,"500"),t.k0s(),t.j41(5,"div",4),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",5),t.EFF(9),t.k0s(),t.j41(10,"button",6),t.bIt("click",function(){return b.onHome()}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()),2&_&&(t.R7$(2),t.Y8G("src",b.agency.getImg("error.svg"),t.B4B),t.R7$(3),t.AVh("f-size-32",!b.isMobile()),t.R7$(),t.SpI(" ",t.bMT(7,10,"errors.internal-server-error")," "),t.R7$(2),t.AVh("f-size-24",!b.isMobile()),t.R7$(),t.SpI(" ",b.errorService.error," "),t.R7$(),t.AVh("f-size-20",!b.isMobile()),t.R7$(),t.SpI(" ",t.bMT(12,12,"errors.take-me-home")," "))},dependencies:[l.D9],styles:[".outer[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:100vh;min-width:100vw}.container[_ngcontent-%COMP%]{position:absolute;inset:40px;border-radius:15px;
1display:flex;justify-content:center;align-items:center;flex-flow:column}.error-code[_ngcontent-%COMP%]{font-size:128px}.title[_ngcontent-%COMP%]{margin-top:0}.desc[_ngcontent-%COMP%]{max-width:553px;margin-bottom:32px;text-align:center}.error-img[_ngcontent-%COMP%]{margin-bottom:18px}.home-btn[_ngcontent-%COMP%]{width:329px;height:72px}@media only screen and (max-width: 899px){.container[_ngcontent-%COMP%]{inset:0;border-radius:0}.error-img[_ngcontent-%COMP%]{width:200px;height:200px;margin-bottom:20px}.error-code[_ngcontent-%COMP%]{font-size:62px}.desc[_ngcontent-%COMP%]{max-width:initial;margin-bottom:20px;margin-left:30px;margin-right:30px}.title[_ngcontent-%COMP%]{margin-top:0}.home-btn[_ngcontent-%COMP%]{width:240px;height:52px}}"]})}}return g})();var L=n(5756),O=n(3313);function T(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",2),t.EFF(1),t.j41(2,"svg-icon",3),t.bIt("click",function(){const b=t.eBV(o).index,F=t.XpG();return t.Njj(F.remove(b))}),t.k0s()()}if(2&g){const o=V.$implicit;t.AVh("blue",1==o.color)("red",2==o.color)("yellow",3==o.color)("green",4==o.color)("black",5==o.color),t.Y8G("@disappearRight",void 0),t.R7$(),t.SpI(" ",o.text," "),t.R7$(),t.Y8G("src","assets/images/default/ic_close_v1.svg")}}let I=(()=>{class g{constructor(o){this.toastService=o}ngOnInit(){}remove(o){this.toastService.toasts.splice(o,1)}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(L.fw))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-toast"]],standalone:!1,decls:2,vars:1,consts:[[1,"container"],["class","toast f-size-16 f-medium show",3,"blue","red","yellow","green","black",4,"ngFor","ngForOf"],[1,"toast","f-size-16","f-medium","show"],[1,"ic-close",3,"click","src"]],template:function(_,b){1&_&&(t.j41(0,"div",0),t.DNE(1,T,3,13,"div",1),t.k0s()),2&_&&(t.R7$(),t.Y8G("ngForOf",b.toastService.toasts))},dependencies:[N.Sq,O.DM],styles:[".container[_ngcontent-%COMP%]{position:fixed;top:10px;right:10px;z-index:10000}.toast[_ngcontent-%COMP%]{position:relative;padding:14px 56px 14px 16px;border-width:1px;border-style:solid;border-radius:10px;width:364px;margin-bottom:10px;transition:all 300s ease-in}.ic-close[_ngcontent-%COMP%]{width:24px;height:24px;position:absolute;right:16px;top:14px;cursor:pointer}.show[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_anim .5s ease-in}@keyframes _ngcontent-%COMP%_anim{0%{transform:translate(150%)}50%{transform:translate(-20px)}70%{transform:translate(10px)}90%{transform:translate(-5px)}to{transform:translate(0)}}"],data:{animation:[d._E]}})}}return g})();function h(g,V){1&g&&(t.j41(0,"main",4)(1,"div"),t.nrm(2,"router-outlet",null,0),t.k0s()()),2&g&&(t.Y8G("@fade",void 0),t.R7$(),t.Y8G("@fadeInOut",void 0))}function v(g,V){1&g&&(t.j41(0,"div",5),t.nrm(1,"app-loader"),t.k0s()),2&g&&t.Y8G("@loader",void 0)}function E(g,V){1&g&&(t.j41(0,"div",6),t.nrm(1,"app-error"),t.k0s())}let e=(()=>{class g{constructor(o,_,b,F,H,Z,it,nt,me,fe,_e,ve,be,ye){this.authService=o,this.router=_,this.initLoaderService=b,this.agency=F,this.route=H,this.translateService=Z,this.userService=it,this.errorService=nt,this.intercomService=me,this.homeService=fe,this.loadingService=_e,this.localeService=ve,this.customerService=be,this.document=ye,this.title="white-label-dash";const dt=F.agency.chargebeeSite,ut=F.agency.chargebeeKey;dt&&ut&&this.initChargebee(dt,ut),window.onbeforeunload=()=>{localStorage.removeItem("productTourCompleted")}}empty(){}initChargebee(o,_,b=0){const F=window.Chargebee;F?F.init({site:o,publishableKey:_}):b>=50||setTimeout(()=>this.initChargebee(o,_,b+1),200)}ngOnInit(){this.checkGtag(),this.checkCoupon(),this.addRouterLoading(),m.c.production||(window["ga-disable-GA_MEASUREMENT_ID"]=!0,window.dataLayer.push=this.empty),this.router.events.subscribe(o=>{if(o instanceof c.wF){const _={event:"virtualPageview",pageUrl:window.location.host+o.urlAfterRedirects,pagePath:o.urlAfterRedirects};this.customerService.email&&(_.user_email=this.customerService.email,_.leadsUserData={email:this.customerService.email}),window.dataLayer.push(_),this.rulerTag()}}),this.updateTitle(),this.localeService.init(),this.agency.agency.fullstoryId&&A.Ts({orgId:this.agency.agency.fullstoryId,devMode:!m.c.production,host:window.location.host+"/fs",script:window.location.host+"/fs/s/fs.js"}),this.agency.updateStyles()}rulerTag(){window.locations=window.locations||[document.referrer],window.locations[window.locations.length-1]!==window.location.href&&window.locations.push(window.location.href),window.previousPath=window.locations[window.locations.length-2]}checkGtag(){window.dataLayer||(window.dataLayer={push:()=>{}});const o={event:"virtualPageview"};this.customerService.email&&(o.user_email=this.customerService.email,o.leadsUserData={email:this.customerService.email}),window.dataLayer.push(o)}checkCoupon(){window.syncer.get().then(o=>{const _=o.params?.coupon?.[0];_&&localStorage.setItem("couponId_pending",_)})}addRouterLoading(){this.router.events.subscribe(o=>{o instanceof c.Z?this.authService.loggedIn&&o.id>this.lastNavigatinEndId&&(this.clearLoadingTimeout(),this.loadingTimeoutId=setTimeout(()=>{this.loadingService.registerWaiter("navigation")},500)):o instanceof c.wF&&(this.lastNavigatinEndId=o.id,this.loadingService.unregisterWaiter("navigation"),this.clearLoadingTimeout())})}clearLoadingTimeout(){this.loadingTimeoutId&&(clearTimeout(this.loadingTimeoutId),this.loadingTimeoutId=null)}onClick(o){let _=document.getElementsByClassName("dropdown");for(let b=0;b<_.length;b++){let F=_.item(b);!F||!F.parentElement||F.classList.contains("search-dropdown")||F.classList.contains("show")&&!F.contains(o.target)&&!F.parentElement.contains(o.target)&&F.classList.remove("show")}}updateTitle(){this.document.title=this.agency.agency.brandName}prepareRoute(o){return o&&o.activatedRouteData&&o.activatedRouteData.animation}onResize(){}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(M.u),t.rXU(c.Ix),t.rXU(y.M),t.rXU(C.z),t.rXU(c.nX),t.rXU(l.c$),t.rXU(f.D),t.rXU(S.I),t.rXU(x.r),t.rXU(w.X),t.rXU(y.M),t.rXU(k.i),t.rXU(U.m),t.rXU(a.q))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-root"]],hostBindings:function(_,b){1&_&&t.bIt("click",function(H){return b.onClick(H)},!1,t.EBC)("resize",function(H){return b.onResize(H)},!1,t.tSv)},standalone:!1,decls:4,vars:3,consts:[["outlet",""],["class","main",4,"ngIf"],["class","loader",4,"ngIf"],["class","error",4,"ngIf"],[1,"main"],[1,"loader"],[1,"error"]],template:function(_,b){1&_&&(t.DNE(0,h,4,2,"main",1)(1,v,2,1,"div",2)(2,E,2,0,"div",3),t.nrm(3,"app-toast")),2&_&&(t.Y8G("ngIf",!b.initLoaderService.loading()&&!b.errorService.error),t.R7$(),t.Y8G("ngIf",b.initLoaderService.loading()&&!b.errorService.error),t.R7$(),t.Y8G("ngIf",b.errorService.error))},dependencies:[c.n3,N.bT,B,R,I],styles:["@media only screen and (max-width: 899px){main[_ngcontent-%COMP%]{padding:20px 20px 35px}}"],data:{animation:[d.gW,d.Ws,(0,u.hZ)("fade",[(0,u.kY)("void => *",[(0,u.iF)({opacity:0}
1),(0,u.i0)(".3s .5s ease-in",(0,u.iF)({opacity:1}))])]),(0,u.hZ)("loader",[(0,u.kY)("void => *",[(0,u.iF)({opacity:0}),(0,u.i0)(300,(0,u.iF)({opacity:1}))]),(0,u.kY)("* => void",[(0,u.iF)({opacity:1}),(0,u.i0)("600ms .3s ease-in",(0,u.iF)({opacity:0}))])])]}})}}return g})();var p=n(7935),P=n(1229);let G=(()=>{class g{static{this.TOKEN_PREFIX="m_token:"}constructor(o,_,b,F,H,Z){this.authService=o,this.router=_,this.userService=b,this.toastService=F,this.translateService=H,this.initLoaderService=Z}canActivate(o,_){const b=o.fragment;if(b){if(b.startsWith(g.TOKEN_PREFIX))return this.userService.pathUsername=o.params.username,this.userService.pathSocialPrefix=o.params.social,this.handleMagicToken(b.substring(g.TOKEN_PREFIX.length)),window.location.hash="",!0;this.authService.setToken(b)}else{let F=localStorage.getItem("token");this.authService.setToken(F)}return this.authService.loggedIn?(this.userService.pathUsername=o.params.username,this.userService.pathSocialPrefix=o.params.social,this.userService.subscriptionsLoaded()?!!this.userService.pathMatch(this.userService.currentSubscription)||(this.router.navigateByUrl(""),!1):(this.userService.getSubscriptions(),!0)):(sessionStorage.setItem("loginRedirect",_.url),this.router.navigateByUrl("/login"),!1)}handleMagicToken(o){this.initLoaderService.registerWaiter("magic-token"),this.authService.getAuthToken(o).subscribe({next:_=>{this.initLoaderService.unregisterWaiter("magic-token"),this.authService.setToken(_.token),this.userService.getSubscriptions()},error:_=>{p.v4(b=>{b.setTag("username",this.userService.pathUsername),b.setExtra("error",_),P.wd("Magic token error")}),this.initLoaderService.unregisterWaiter("magic-token"),this.toastService.showToast(this.translateService.instant("errors.magic-token"),L.TS.RED),this.router.navigateByUrl("/login")}})}static{this.\u0275fac=function(_){return new(_||g)(t.KVO(M.u),t.KVO(c.Ix),t.KVO(f.D),t.KVO(L.fw),t.KVO(l.c$),t.KVO(y.M))}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})(),K=(()=>{class g{constructor(o,_,b,F){this.authService=o,this.router=_,this.userService=b,this.intercom=F}canActivate(o){let _=o.fragment;if(_)this.authService.setToken(_);else{let F=localStorage.getItem("token");this.authService.setToken(F)}this.checkQueryParams(o),this.checkSignupParams(o);const b={};if(o.queryParams.on_demand&&(b.on_demand=o.queryParams.on_demand),o.queryParams.order_size&&(b.order_size=o.queryParams.order_size),o.queryParams.blfr_popup&&(b.blfr_popup=o.queryParams.blfr_popup),o.queryParams.coupon&&(b.coupon=o.queryParams.coupon),this.authService.loggedIn){const F=sessionStorage.getItem("loginRedirect");if(F&&F.startsWith("/"))return sessionStorage.removeItem("loginRedirect"),this.router.navigateByUrl(F),!1;this.userService.subscriptionsLoaded()?this.userService.navigateByCurrentSubscription(b):this.userService.getSubscriptionsHome(b)}else this.router.navigateByUrl("/login");return!1}checkQueryParams(o){o.queryParams.coupon&&localStorage.setItem("couponId_pending",o.queryParams.coupon),o.queryParams.plan&&localStorage.setItem("plan",o.queryParams.plan);for(let _ of Object.keys(o.queryParams))_.startsWith("utm")&&(this.intercom.intercomData[_]=o.queryParams[_])}checkSignupParams(o){const _=o.queryParams.signup,b=o.queryParams.email;_&&b&&(console.log("signup event",_,b),this.identifyRulerAnalytics(b,10),window.dataLayer.push({event:"onb_sign_up",leadsUserData:{email:b},user_email:b}))}identifyRulerAnalytics(o,_){if(!this.authService.loggedIn)return;const b=window.location.host.split(":")[0];if("localhost"===b||"app.kicksta.co"===b)try{if(!window.RulerAnalyticsVisitorId)throw"Ruler Analytics is not set on the page";window.RulerAnalytics.trackConversionAsync({Email:o},"","",500),console.log("Ruler Analytics signup")}catch(H){if(_>0){const Z=this;setTimeout(function(){console.error(H),Z.identifyRulerAnalytics(o,_-1)},1e3)}else P.l7("source","HomeGuard"),P.wd("Failed to identify Ruler Analytics")}}static{this.\u0275fac=function(_){return new(_||g)(t.KVO(M.u),t.KVO(c.Ix),t.KVO(f.D),t.KVO(x.r))}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();var W=n(559),$=n(1900);let X=(()=>{class g{constructor(o,_,b){this.userService=o,this.router=_,this.masterPaymentService=b}navigateHome(){this.userService.currentSubscription.hasDashboardAccess()?this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/home"):this.navigateReactivate()}navigateManage(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/manage-accounts")}navigateSettings(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/settings")}navigateDynamics(){this.userService.currentSubscription.hasDashboardAccess()?this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/dynamics"):this.navigateReactivate()}navigateReactivate(){this.masterPaymentService.subscription=this.userService.currentSubscription,this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/settings/c
1hange-plan/payment?subscription="+this.userService.currentSubscription.uuid)}static{this.\u0275fac=function(_){return new(_||g)(t.KVO(f.D),t.KVO(c.Ix),t.KVO($.Y))}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();var Y=function(g){return g[g.HOME=0]="HOME",g[g.DYNAMICS=1]="DYNAMICS",g[g.MANAGE_ACCOUNTS=2]="MANAGE_ACCOUNTS",g[g.SETTINGS=3]="SETTINGS",g}(Y||{}),z=n(8836);function J(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",3),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.navigateDynamics())}),t.nrm(1,"fa-icon",4),t.k0s()}if(2&g){const o=t.XpG(2);t.AVh("bkg-selection-10",1==o.selectedTab)("selected",1==o.selectedTab),t.R7$(),t.AVh("color-text-selection",1==o.selectedTab),t.Y8G("icon",o.faSliders)}}function tt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",1),t.nrm(1,"div",2),t.j41(2,"div",3),t.bIt("click",function(){t.eBV(o);const b=t.XpG();return t.Njj(b.navigateHome())}),t.nrm(3,"fa-icon",4),t.k0s(),t.DNE(4,J,2,7,"div",5),t.j41(5,"div",3),t.bIt("click",function(){t.eBV(o);const b=t.XpG();return t.Njj(b.navigateManage())}),t.nrm(6,"fa-icon",4),t.k0s(),t.j41(7,"div",3),t.bIt("click",function(){t.eBV(o);const b=t.XpG();return t.Njj(b.navigateSettings())}),t.nrm(8,"fa-icon",4),t.k0s()()}if(2&g){const o=t.XpG();t.AVh("no-dynamics",!o.hasDynamics()),t.R7$(),t.xc7("transform",o.getTransform()),t.R7$(),t.AVh("bkg-selection-10",0==o.selectedTab)("selected",0==o.selectedTab),t.R7$(),t.AVh("color-text-selection",0==o.selectedTab),t.Y8G("icon",o.faHome),t.R7$(),t.Y8G("ngIf",o.hasDynamics()),t.R7$(),t.AVh("bkg-selection-10",2==o.selectedTab)("selected",2==o.selectedTab),t.R7$(),t.AVh("color-text-selection",2==o.selectedTab),t.Y8G("icon",o.faGrid),t.R7$(),t.AVh("bkg-selection-10",3==o.selectedTab)("selected",3==o.selectedTab),t.R7$(),t.AVh("color-text-selection",3==o.selectedTab),t.Y8G("icon",o.faCog)}}let ht=(()=>{class g{constructor(o,_,b,F,H){this.router=o,this.route=_,this.contexts=b,this.service=F,this.agency=H,this.faHome=W.v02,this.faSliders=W._$s,this.faGrid=W.Qyz,this.faCog=W.dB}ngOnInit(){this.update(),this.router.events.subscribe(o=>{o instanceof c.wF&&this.update()})}update(){const o=this.contexts.getContext("primary")?.route?.snapshot?.data?.id;this.selectedTab=Y.HOME,"manage"==o?this.selectedTab=Y.MANAGE_ACCOUNTS:"settings"==o?this.selectedTab=Y.SETTINGS:"dynamics"==o&&(this.selectedTab=Y.DYNAMICS);let _=this.route.snapshot;for(;_.firstChild;)_=_.firstChild;this.hide=!!_.data?.hideNavigation}navigateHome(){this.service.navigateHome()}navigateManage(){this.service.navigateManage()}navigateSettings(){this.service.navigateSettings()}navigateDynamics(){this.service.navigateDynamics()}getTransform(){let o=this.selectedTab;return!this.hasDynamics()&&o>Y.DYNAMICS&&o--,"translateX("+100*o+"%)"}hasDynamics(){return this.agency.agency.hasDynamicsScreen()}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(c.Ix),t.rXU(c.nX),t.rXU(c.Zp),t.rXU(X),t.rXU(C.z))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-mobile-navigation"]],standalone:!1,decls:1,vars:1,consts:[["class","navigation bkg-2",3,"no-dynamics",4,"ngIf"],[1,"navigation","bkg-2"],[1,"slider","bkg-selection"],[1,"item",3,"click"],[1,"icon","f-size-18","color-text-3",3,"icon"],["class","item",3,"bkg-selection-10","selected","click",4,"ngIf"]],template:function(_,b){1&_&&t.DNE(0,tt,9,26,"div",0),2&_&&t.Y8G("ngIf",!b.hide)},dependencies:[N.bT,z.aY],styles:[".navigation[_ngcontent-%COMP%]{width:100vw;position:relative;height:48px;display:flex}.item[_ngcontent-%COMP%]{width:25%;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease-in}.item.selected[_ngcontent-%COMP%]{cursor:initial}.slider[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:25%;height:2px;transition:all .3s ease-in}.navigation.no-dynamics[_ngcontent-%COMP%] .item[_ngcontent-%COMP%], .navigation.no-dynamics[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:33.33333%}"]})}}return g})();var Q=n(9645),ot=n(9355),et=n(6487),pt=n(436);let st=(()=>{class g{constructor(o){this.sanitizer=o}transform(o){if(!o)return this.sanitizer.bypassSecurityTrustHtml("");let _=o;return _=_.replace(/@(\w+)/g,'<span class="color-text-link">@$1</span>'),_=_.replace(/\b(\d{2}\/\d{2}\/\d{2})\b/g,'<span class="color-text-link">$1</span>'),this.sanitizer.bypassSecurityTrustHtml(_)}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(pt.up,16))}}static{this.\u0275pipe=t.EJ8({name:"highlightUsername",type:g,pure:!0,standalone:!1})}}return g})();function gt(g,V){if(1&g&&(t.j41(0,"div",8)(1,"div",9)(2,"span",10),t.EFF(3),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()(),t.nrm(6,"div",12),t.nI1(7,"highlightUsername"),t.k0s()),2&g){const o=V.$implicit,_=t.XpG();t.R7$(3),t.SpI(" ",o.title," "),t.R7$(2),t.SpI(" ",_.getTime(o.timestamp)," "),t.R7$(),t.Y8G("innerHTML",t.bMT(7,3,o.body),t.npT)}}let at=(()=>{class g{constructor(o,_,b,F){this.router=o,this.userService=_,this.agency=b,this.notificationsService=F}ngOnDestroy(){this.markAllAsSeen()}ngOnInit(){this.notificationsService.getNotifications(),Q.extend(ot)}
1markAllAsSeen(){for(let o of this.notificationsService.notifications)o.seen||(o.seen=!0,this.notificationsService.markAsSeen(o))}onHome(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/home")}getTime(o){return this.agency.agency.defaultLanguage?Q(o).locale("it").fromNow():Q(o).fromNow()}isMobile(){return window.innerWidth<900}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(c.Ix),t.rXU(f.D),t.rXU(C.z),t.rXU(et.I))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-notification-center"]],standalone:!1,decls:14,vars:12,consts:[[1,"notifications"],[1,"notifications__header"],[1,"notifications__header__title"],[1,"title","f-size-20","f-bold","color-text-1"],[1,"notifications__header__subtitle","f-size-14","f-regular","color-text-5"],[1,"btn-back-to-dashboard",3,"click"],[1,"notifications__list"],["class","notifications__list__item bkg-3",4,"ngFor","ngForOf"],[1,"notifications__list__item","bkg-3"],[1,"notifications__list__item__title"],[1,"color-text-1","f-size-16","f-semi-bold"],[1,"color-text-3","f-size-14","f-regular"],[1,"body","f-size-14","f-regular","color-text-2",3,"innerHTML"]],template:function(_,b){1&_&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"button",5),t.bIt("click",function(){return b.onHome()}),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",6),t.DNE(13,gt,8,5,"div",7),t.k0s()()),2&_&&(t.R7$(3),t.AVh("f-size-24",!b.isMobile()),t.R7$(),t.SpI(" ",t.bMT(5,6,"notifications.title")," "),t.R7$(3),t.SpI(" ",t.bMT(8,8,"notifications.subtitle")," "),t.R7$(3),t.SpI(" ",t.bMT(11,10,"notifications.back-to-dashboard")," "),t.R7$(3),t.Y8G("ngForOf",b.notificationsService.notifications))},dependencies:[N.Sq,l.D9,st],styles:[".notifications[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:1352px;width:100%;margin:0 auto;padding:0rem 1.5rem;margin-top:1.5rem;margin-bottom:1.5rem}@media only screen and (max-width: 800px){.notifications[_ngcontent-%COMP%]{padding:1rem 0;margin-top:0;margin-bottom:0;gap:1rem}}.notifications__header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:1rem}@media only screen and (max-width: 800px){.notifications__header[_ngcontent-%COMP%]{flex-direction:column;gap:.75rem}}.notifications__header__subtitle[_ngcontent-%COMP%]{max-width:55rem;width:100%}.notifications__header__title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-top:1.625rem}@media only screen and (max-width: 800px){.notifications__header__title[_ngcontent-%COMP%]{width:100%}}.notifications__header__title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0}.notifications__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}@media only screen and (max-width: 800px){.notifications__list[_ngcontent-%COMP%]{gap:1rem}}.notifications__list__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:1rem 1.5rem;border-radius:.625rem;gap:.25rem}@media only screen and (max-width: 800px){.notifications__list__item[_ngcontent-%COMP%]{align-items:flex-start;justify-content:flex-start;flex-direction:column;padding:1rem;gap:.25rem}}.notifications__list__item__title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:.5rem}@media only screen and (max-width: 800px){.notifications__list__item__title[_ngcontent-%COMP%]{gap:.25rem;flex-direction:column-reverse;align-items:flex-start}}.btn-back-to-dashboard[_ngcontent-%COMP%]{color:#fff;background-color:#b2b2b2;transition:all .3s ease;border-radius:.625rem;padding:.625rem 1rem;font-weight:500;font-size:1rem;cursor:pointer;min-height:2.75rem;height:2.75rem;width:fit-content}@media only screen and (max-width: 800px){.btn-back-to-dashboard[_ngcontent-%COMP%]{width:100%}}.btn-back-to-dashboard[_ngcontent-%COMP%]:hover{background-color:#bcbcbc}"]})}}return g})();var mt=n(574),ft=n(6092),_t=n(1492);function vt(g,V){if(1&g&&(t.j41(0,"div",8)(1,"div",9)(2,"div",10),t.EFF(3),t.k0s(),t.j41(4,"div",11),t.EFF(5),t.k0s()(),t.nrm(6,"div",12),t.nI1(7,"highlightUsername"),t.k0s()),2&g){const o=V.$implicit,_=t.XpG();t.R7$(3),t.SpI(" ",o.title," "),t.R7$(2),t.SpI(" ",_.getTime(o.timestamp)," "),t.R7$(),t.Y8G("innerHTML",t.bMT(7,3,o.body),t.npT)}}function bt(g,V){1&g&&(t.j41(0,"div",13),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&g&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"home.notification-popup.empty")," "))}let yt=(()=>{class g{constructor(o,_,b,F){this.agency=o,this.notificationService=_,this.router=b,this.userService=F,this.onClose=new t.bkB}ngOnDestroy(){for(let o of this.notificationService.lastNotifications)o.seen||(o.seen=!0,this.notificationService.markAsSeen(o))}ngOnInit(){Q.extend(ot)}onShowAll(){this.onClose.emit(),this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/notification-center")}getTime(o){return Q(o).fromNow()}onClear(o){o.seen=!0,this.notificationService.markAsSeen(o,!0)}lastNotifications(){let o=[];for(let _ of this.notificationService.lastNotifications)o.push(_);return o}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(C.z),t.rXU(et.I),t.rXU(c.Ix),t.rXU(f.D))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-notifications-popup"]],outputs:{onClose:"onClose"},standalone:!1,decls:12,vars:8,consts:[["id","notifications-popup",1,"container","box-shadow","container-popup",3,"click"],[1,"h-box","top","space-between"],[1,"f-size-12","f-medium","color-text-3"],[1,"right","h-box"],[1,"f-size-12","f-medium","color-text-link","show-all",3,"click"],[1,"n
1otifications"],["class","notification dropdown-item-hover",4,"ngFor","ngForOf"],["class","color-text-3 f-size-12 f-regular empty",4,"ngIf"],[1,"notification","dropdown-item-hover"],[1,"h-box"],[1,"f-size-16","f-semi-bold","color-text-1"],[1,"time","color-text-3","f-size-12","f-regular"],[1,"body","f-size-14","f-regular","color-text-3",3,"innerHTML"],[1,"color-text-3","f-size-12","f-regular","empty"]],template:function(_,b){1&_&&(t.j41(0,"div",0),t.bIt("click",function(H){return H.stopPropagation()}),t.j41(1,"div",1)(2,"div",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",3)(6,"div",4),t.bIt("click",function(){return b.onShowAll()}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.j41(9,"div",5),t.DNE(10,vt,8,5,"div",6)(11,bt,3,3,"div",7),t.k0s()()),2&_&&(t.R7$(3),t.SpI(" ",t.bMT(4,4,"home.notification-popup.title")," "),t.R7$(4),t.SpI(" ",t.bMT(8,6,"home.notification-popup.show-all")," "),t.R7$(3),t.Y8G("ngForOf",b.lastNotifications()),t.R7$(),t.Y8G("ngIf",0==b.lastNotifications().length))},dependencies:[N.Sq,N.bT,l.D9,st],styles:[".container[_ngcontent-%COMP%]{width:450px;border-radius:10px;padding-bottom:16px}.top[_ngcontent-%COMP%]{padding:16px 16px 11px}.notification[_ngcontent-%COMP%]{padding:16px;position:relative}.notification[_ngcontent-%COMP%]:hover .ic-clear[_ngcontent-%COMP%]{opacity:1;pointer-events:all}.show-all[_ngcontent-%COMP%]{cursor:pointer}.time[_ngcontent-%COMP%]{margin-left:8px}.empty[_ngcontent-%COMP%]{margin:12px 0;text-align:center;width:100%}@media only screen and (max-width: 800px){.container[_ngcontent-%COMP%]{width:initial}}"]})}}return g})();const Ct=["home"],Et=["dynamics"],St=["manageAccounts"],Ot=["settings"],It=["line"],q=g=>({"tab--selected color-text-selection":g});function Mt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",6,4),t.bIt("click",function(){t.eBV(o);const b=t.XpG();return t.Njj(b.selectTab(1))}),t.nrm(2,"fa-icon",7),t.j41(3,"span",8),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&g){const o=t.XpG();t.Y8G("ngClass",t.eq3(5,q,o.selectedTab===o.tab.DYNAMICS)),t.R7$(2),t.Y8G("icon",o.faSliders),t.R7$(2),t.SpI(" ",t.bMT(5,3,"shared.navigation.dynamics")," ")}}let Pt=(()=>{class g{constructor(o,_,b,F){this.router=o,this.contexts=_,this.service=b,this.agency=F,this.tabElements={},this.tab=Y,this.faHome=W.v02,this.faGrid2=W.Qyz,this.faSliders=W._$s,this.faCog=W.dB}ngAfterViewChecked(){this.updateLine()}ngOnInit(){this.width="0px";const o=this.contexts.getContext("primary")?.route?.snapshot?.data?.id;this.selectedTab=Y.HOME,"manage"==o?this.selectedTab=Y.MANAGE_ACCOUNTS:"settings"==o?this.selectedTab=Y.SETTINGS:"dynamics"==o&&(this.selectedTab=Y.DYNAMICS),this.router.events.subscribe(_=>{_ instanceof c.wF&&this.update()})}update(){const o=this.contexts.getContext("primary")?.route?.snapshot?.data?.id;this.selectedTab=Y.HOME,"manage"==o?this.selectedTab=Y.MANAGE_ACCOUNTS:"settings"==o?this.selectedTab=Y.SETTINGS:"dynamics"==o&&(this.selectedTab=Y.DYNAMICS),this.updateLine()}ngAfterViewInit(){this.tabElements[Y.HOME]=this.tabHome.nativeElement,this.tabDynamics&&(this.tabElements[Y.DYNAMICS]=this.tabDynamics.nativeElement),this.tabElements[Y.MANAGE_ACCOUNTS]=this.tabManageAccounts.nativeElement,this.tabElements[Y.SETTINGS]=this.tabSettings.nativeElement}selectTab(o){o==Y.HOME?this.navigateHome():o==Y.DYNAMICS?this.navigateDynamics():o==Y.MANAGE_ACCOUNTS?this.navigateManage():o==Y.SETTINGS&&this.navigateSettings(),this.previousTab=this.selectedTab,this.selectedTab=o,this.updateLine()}updateLine(){let o=this.tabElements[this.selectedTab],_=.3;_+=.1*(Math.abs(this.previousTab-this.selectedTab)-1),this.line.nativeElement.style.transitionDuration=_+"s",this.line.nativeElement.style.width=this.getLineWidth(o),this.line.nativeElement.style.left=this.getLineLeft(o),this.line.nativeElement.style.top=this.getLineTop(o)}getLineWidth(o){return o&&o.offsetWidth?o.offsetWidth+"px":"0px"}getLineLeft(o){return o&&o.offsetLeft?o.offsetLeft+"px":"0px"}getLineTop(o){return o&&o.offsetHeight?o.offsetTop+o.offsetHeight-3+"px":"0px"}navigateHome(){this.service.navigateHome()}navigateManage(){this.service.navigateManage()}navigateSettings(){this.service.navigateSettings()}navigateDynamics(){this.service.navigateDynamics()}hasDynamics(){return this.agency.agency.hasDynamicsScreen()}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(c.Ix),t.rXU(c.Zp),t.rXU(X),t.rXU(C.z))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-navigation"]],viewQuery:function(_,b){if(1&_&&(t.GBs(Ct,5),t.GBs(Et,5),t.GBs(St,5),t.GBs(Ot,5),t.GBs(It,5)),2&_){let F;t.mGM(F=t.lsd())&&(b.tabHome=F.first),t.mGM(F=t.lsd())&&(b.tabDynamics=F.first),t.mGM(F=t.lsd())&&(b.tabManageAccounts=F.first),t.mGM(F=t.lsd())&&(b.tabSettings=F.first),t.mGM(F=t.lsd())&&(b.line=F.first)}},standalone:!1,decls:22,vars:22,consts:[["home",""],["manageAccounts",""],["settings",""],["line",""],["dynamics",""],[1,"navigation","f-size-18","f-semi-bold","color-text-3"],[1,"tab",3,"click","ngClass"],[3,"icon"],[1,"tab__label"],["class","tab",3,"ngClass","click",4,"ngIf"],[1,"line","bkg-selection"]],template:function(_,b){if(1&_){const F=t.RV6();t.j41(0,"div",5)(1,"div",6,0),t.bIt("click",function(){return t.eBV(F),t.Njj(b.selectTab(0))}),t.nrm(3,"fa-icon",7),t.j41(4,"span",8),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,Mt,6,7,"div",9),t.j41(8,"div",6,1),t.bIt("click",function(){return t.eBV(F),t.Njj(b.selectTab(2))}),t.nrm(10,"fa-icon",7),t.j41(11,"span",8),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"div",6,2),t.bIt("click",function(){return t.eBV(F),t.Njj(b.selectTab(3))}),t.nrm(16,"fa-icon",7),t.j41(17,"span",8),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.nrm(20,"div",10,3),t.k0s()}2&_&&(t.R7$(),t.Y8G("ngClass",t.eq3(16,q,b.selectedTab===b.tab.HOME)),t.R7$(2),t.Y8G("icon",b.faHome),t.R7$(2),t.JRh(t.bMT(6,10,"shared.navigation.home")),t.R7$(2),t.Y8G("ngIf",b.hasDynamics()),t.R7$(),t.Y8G("ngClass",t.eq3(18,q,b.selectedTab===b.tab.MANAGE_ACCOUNTS
1)),t.R7$(2),t.Y8G("icon",b.faGrid2),t.R7$(2),t.SpI(" ",t.bMT(13,12,"shared.navigation.manage-accounts")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(20,q,b.selectedTab===b.tab.SETTINGS)),t.R7$(2),t.Y8G("icon",b.faCog),t.R7$(2),t.SpI(" ",t.bMT(19,14,"shared.navigation.settings")," "))},dependencies:[N.YU,N.bT,z.aY,l.D9],styles:[".navigation[_ngcontent-%COMP%]{display:flex;position:relative;flex-wrap:wrap;justify-content:center}.navigation[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{padding:1.5rem 1.75rem;display:flex;cursor:pointer;transition:all .3s ease-in-out}@media screen and (min-width: 1100px) and (max-width: 1350px){.navigation[_ngcontent-%COMP%] .tab--selected[_ngcontent-%COMP%] .tab__label[_ngcontent-%COMP%]{display:flex;animation:.5s _ngcontent-%COMP%_showLabel ease-in-out}}.navigation[_ngcontent-%COMP%] .tab__label[_ngcontent-%COMP%]{width:100%;overflow:hidden;margin-left:.625rem}@media screen and (min-width: 1000px) and (max-width: 1350px){.navigation[_ngcontent-%COMP%] .tab__label[_ngcontent-%COMP%]{display:none}}.navigation[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{height:3px;position:absolute;border-radius:3px;will-change:left,width,top;transition:left .3s ease-in-out,width .3s ease-in-out,top .3s ease-in-out}@keyframes _ngcontent-%COMP%_showLabel{0%{opacity:0}to{opacity:1}}"]})}}return g})();function Tt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",39),t.bIt("click",function(){const b=t.eBV(o).$implicit,F=t.XpG(4);return t.Njj(F.onChangeAgency(b))}),t.j41(1,"span",40),t.EFF(2),t.k0s()()}if(2&g){const o=V.$implicit;t.R7$(2),t.SpI(" ",o.name," ")}}function At(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",33)(1,"div",34),t.bIt("click",function(){t.eBV(o);const b=t.sdS(4);return t.Njj(b.classList.toggle("show"))}),t.nrm(2,"fa-icon",35),t.j41(3,"div",36,1)(5,"div",37),t.EFF(6," Debug Agencies "),t.k0s(),t.DNE(7,Tt,3,1,"div",38),t.k0s()()()}if(2&g){const o=t.XpG(3);t.R7$(2),t.Y8G("icon",o.faSkull),t.R7$(5),t.Y8G("ngForOf",o.uniqueAgencies)}}function xt(g,V){if(1&g&&t.nrm(0,"img",43),2&g){const o=t.XpG(4);t.Y8G("src",o.getImageSrc("instagram.svg"),t.B4B)}}function wt(g,V){if(1&g&&t.nrm(0,"img",43),2&g){const o=t.XpG(4);t.Y8G("src",o.getImageSrc("tiktok.svg"),t.B4B)}}function kt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){const b=t.eBV(o).$implicit,F=t.XpG(3);return t.Njj(F.onChangeAccount(b))}),t.nrm(1,"img",41),t.j41(2,"div",40),t.EFF(3),t.k0s(),t.DNE(4,xt,1,1,"img",42)(5,wt,1,1,"img",42),t.k0s()}if(2&g){const o=V.$implicit;t.R7$(),t.Y8G("src",o.img,t.B4B),t.R7$(2),t.SpI(" @",o.username," "),t.R7$(),t.Y8G("ngIf","instagram"==o.social),t.R7$(),t.Y8G("ngIf","tiktok"==o.social)}}function Dt(g,V){1&g&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&g&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"home.header.dropdown.dark-mode-on")," "))}function Rt(g,V){1&g&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&g&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"home.header.dropdown.dark-mode-off")," "))}function Lt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.onChatWithSupport())}),t.nrm(1,"svg-icon",32),t.j41(2,"div",29),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&g){const o=t.XpG(3);t.R7$(),t.Y8G("src",o.getImageSrc("ic_chat_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(4,2,"home.header.dropdown.chat-with-support")," ")}}function Nt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.showProductTour())}),t.nrm(1,"svg-icon",30),t.j41(2,"div",29),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&g){const o=t.XpG(3);t.R7$(),t.Y8G("src",o.getImageSrc("see_tutorial.svg")),t.R7$(2),t.SpI(" ",t.bMT(4,2,"home.header.dropdown.see-tutorial")," ")}}function Ut(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",8)(1,"img",9),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHome())}),t.k0s(),t.nrm(2,"app-navigation"),t.j41(3,"div",10),t.DNE(4,At,8,2,"div",11),t.j41(5,"div",12)(6,"svg-icon",13),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.redirectToNotificationCenter())}),t.k0s()(),t.j41(7,"div",14),t.bIt("click",function(){t.eBV(o);const b=t.sdS(12);return t.Njj(b.classList.toggle("show"))}),t.nrm(8,"img",15),t.EFF(9),t.nrm(10,"svg-icon",16),t.j41(11,"div",17,0
1)(13,"div",18),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"div",19),t.DNE(17,kt,6,4,"div",20),t.k0s(),t.nrm(18,"div",21),t.j41(19,"div",18),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"div",22),t.bIt("click",function(b){return t.eBV(o),t.Njj(b.stopPropagation())}),t.nrm(23,"svg-icon",23),t.DNE(24,Dt,3,3,"div",24)(25,Rt,3,3,"div",24),t.j41(26,"div",25),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onDarkMode())}),t.nrm(27,"div",26)(28,"div",27),t.k0s()(),t.j41(29,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onAddAccount())}),t.nrm(30,"svg-icon",28),t.j41(31,"div",29),t.EFF(32),t.nI1(33,"translate"),t.k0s()(),t.j41(34,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHelp())}),t.nrm(35,"svg-icon",30),t.j41(36,"div",29),t.EFF(37),t.nI1(38,"translate"),t.k0s()(),t.DNE(39,Lt,5,4,"div",31)(40,Nt,5,4,"div",31),t.j41(41,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onLogout())}),t.nrm(42,"svg-icon",32),t.j41(43,"div",29),t.EFF(44),t.nI1(45,"translate"),t.k0s()()()()()()}if(2&g){const o=t.XpG(2);t.R7$(),t.Y8G("src",o.logoSrc(),t.B4B),t.R7$(3),t.Y8G("ngIf",o.showAgencySelector),t.R7$(2),t.AVh("bkg-3",o.showNotifications||o.isNotificationCenterOpen())("bkg-1",!o.showNotifications&&!o.isNotificationCenterOpen()),t.Y8G("src",o.getNotificationIcon()),t.R7$(2),t.Y8G("src",o.userService.currentSubscription.img,t.B4B),t.R7$(),t.SpI(" @",o.userService.currentSubscription.username," "),t.R7$(),t.Y8G("src",o.getImageSrc("arrow_down_v1.svg")),t.R7$(4),t.SpI(" ",t.bMT(15,35,"home.header.dropdown.accounts")," "),t.R7$(3),t.Y8G("ngForOf",o.getSubscriptions()),t.R7$(3),t.SpI(" ",t.bMT(21,37,"home.header.dropdown.options")," "),t.R7$(3),t.Y8G("applyClass",!0)("src",o.getImageSrc("ic_moon.svg")),t.R7$(),t.Y8G("ngIf",o.agencyService.agency.darkMode),t.R7$(),t.Y8G("ngIf",!o.agencyService.agency.darkMode),t.R7$(2),t.AVh("animate-dark",!o.agencyService.agency.darkMode)("animate-white",o.agencyService.agency.darkMode),t.R7$(),t.AVh("bkg-selection-color",o.agencyService.agency.darkMode)("bkg-black",!o.agencyService.agency.darkMode)("enabled",o.agencyService.agency.darkMode),t.R7$(2),t.Y8G("src",o.getImageSrc("ic_plus_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(33,39,"home.header.dropdown.add-account")," "),t.R7$(3),t.Y8G("src",o.getImageSrc("help_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(38,41,"home.header.dropdown.support")," "),t.R7$(2),t.Y8G("ngIf",o.agencyService.agency.showChatWithSupport),t.R7$(),t.Y8G("ngIf",o.hasProductTour&&o.isUserLoggedIn()),t.R7$(2),t.Y8G("src",o.getImageSrc("log_out_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(45,43,"home.header.dropdown.log-out")," ")}}function Ft(g,V){if(1&g){const o=t.RV6();t.j41(0,"svg-icon",49),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.redirectToNotificationCenter())}),t.k0s()}if(2&g){const o=t.XpG(3);t.Y8G("src",o.getNotificationIcon())}}function Bt(g,V){if(1&g){const o=t.RV6();t.j41(0,"svg-icon",49),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.onBack.emit())}),t.k0s()}if(2&g){const o=t.XpG(3);t.Y8G("src",o.getImageSrc("arrow_notification_back_v1.svg"))}}function jt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",50),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.showNotifications=!1)}),t.k0s()}2&g&&t.Y8G("@fadeInOut",void 0)}function Gt(g,V){if(1&g){const o=t.RV6();t.j41(0,"app-notifications-popup",51),t.bIt("onClose",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.showNotifications=!1)})("click",function(b){return t.eBV(o),t.Njj(b.stopPropagation())}),t.k0s()}2&g&&t.Y8G("@dropdown",void 0)}function Wt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",44),t.DNE(1,Ft,1,1,"svg-icon",45)(2,Bt,1,1,"svg-icon",45)(3,jt,1,1,"div",46)(4,Gt,1,1,"app-notifications-popup",47),t.j41(5,"img",9),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHome())}),t.k0s(),t.j41(6,"img",48),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onShowMobileDropdown())}),t.k0s()()}if(2&g){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!o.backBtn),t.R7$(),t.Y8G("ngIf",o.backBtn),t.R7$(),t.Y8G("ngIf",o.showNotifications),t.R7$(),t.Y8G("ngIf",o.showNotifications),t.R7$(),t.Y8G("src",o.logoSmallSrc(),t.B4B),t.R7$(),t.Y8G("src",o.userService.currentSubscription.img,t.B4B)}}function Kt(g,V){if(1&g&&t.nrm(0,"img",43),2&g){const o=t.XpG(4);t.Y8G("src",o.getImageSrc("instagram.svg"),t.B4B)}}function Vt(g,V){if(1&g&&t.nrm(0,"img",43),2&g){const o=t.XpG(4);t.Y8G("src",o.getImageSrc("tiktok.svg"),t.B4B)}}function Yt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){const b=t.eBV(o).$implicit,F=t.XpG(3);return t.Njj(F.onChangeAccount(b))}),t.nrm(1,"img",41),t.j41(2,"div",40),t.EFF(3),t.k0s(),t.DNE(4,Kt,1,1,"img",42)(5,Vt,1,1,"img",42),t.k0s()}if(2&g){const o=V.$implicit;t.R7$(),t.Y8G("src",o.img,t.B4B),t.R7$(2),t.SpI(" @",o.username," "),t.R7$(),t.Y8G("ngIf","instagram"==o.social),t.R7$(),t.Y8G("ngIf","tiktok"==o.social)}}function Ht(g,V){1&g&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&g&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"home.header.dropdown.dark-mode-on")," "))}function $t(g,V){1&g&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&g&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"home.header.dropdown.dark-mode-off")," "))}function Xt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){t.eBV(o);
1const b=t.XpG(3);return t.Njj(b.onChatWithSupport())}),t.nrm(1,"svg-icon",32),t.j41(2,"div",58),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&g){const o=t.XpG(3);t.R7$(),t.Y8G("src",o.getImageSrc("ic_chat_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(4,2,"home.header.dropdown.chat-with-support")," ")}}function zt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(3);return t.Njj(b.showProductTour())}),t.nrm(1,"svg-icon",30),t.j41(2,"div",58),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&g){const o=t.XpG(3);t.R7$(),t.Y8G("src",o.getImageSrc("see_tutorial.svg")),t.R7$(2),t.SpI(" ",t.bMT(4,2,"home.header.dropdown.see-tutorial")," ")}}function Jt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",52)(1,"div",53)(2,"img",54),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHome())}),t.k0s(),t.j41(3,"div",55),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHome())}),t.EFF(4),t.k0s(),t.j41(5,"div",56),t.bIt("click",function(b){return t.eBV(o),t.XpG(2).onCloseDropdown(),t.Njj(b.stopPropagation())}),t.nrm(6,"svg-icon",57),t.k0s()(),t.j41(7,"div",18),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.DNE(10,Yt,6,4,"div",20),t.nrm(11,"div",21),t.j41(12,"div",18),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"div",22),t.bIt("click",function(b){return t.eBV(o),t.Njj(b.stopPropagation())}),t.nrm(16,"svg-icon",23),t.DNE(17,Ht,3,3,"div",24)(18,$t,3,3,"div",24),t.j41(19,"div",25),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onDarkMode())}),t.nrm(20,"div",26)(21,"div",27),t.k0s()(),t.j41(22,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onAddAccount())}),t.nrm(23,"svg-icon",28),t.j41(24,"div",58),t.EFF(25),t.nI1(26,"translate"),t.k0s()(),t.j41(27,"div",22),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onHelp())}),t.nrm(28,"svg-icon",30),t.j41(29,"div",58),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.DNE(32,Xt,5,4,"div",31)(33,zt,5,4,"div",31),t.j41(34,"div",59),t.bIt("click",function(){t.eBV(o);const b=t.XpG(2);return t.Njj(b.onLogout())}),t.nrm(35,"svg-icon",32),t.j41(36,"div",58),t.EFF(37),t.nI1(38,"translate"),t.k0s()()()}if(2&g){const o=t.XpG(2);t.AVh("show",o.mobileDropdown)("box-shadow",o.mobileDropdown),t.R7$(2),t.Y8G("src",o.userService.currentSubscription.img,t.B4B),t.R7$(2),t.SpI(" @",o.userService.currentSubscription.username," "),t.R7$(2),t.Y8G("src",o.getImageSrc("ic_close_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(9,32,"home.header.dropdown.accounts")," "),t.R7$(2),t.Y8G("ngForOf",o.getSubscriptions()),t.R7$(3),t.SpI(" ",t.bMT(14,34,"home.header.dropdown.options")," "),t.R7$(3),t.Y8G("applyClass",!0)("src",o.getImageSrc("ic_moon.svg")),t.R7$(),t.Y8G("ngIf",o.agencyService.agency.darkMode),t.R7$(),t.Y8G("ngIf",!o.agencyService.agency.darkMode),t.R7$(2),t.AVh("animate-dark-mobile",!o.agencyService.agency.darkMode)("animate-white-mobile",o.agencyService.agency.darkMode),t.R7$(),t.AVh("bkg-selection-color",o.agencyService.agency.darkMode)("bkg-black",!o.agencyService.agency.darkMode)("enabled",o.agencyService.agency.darkMode),t.R7$(2),t.Y8G("src",o.getImageSrc("ic_plus_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(26,36,"home.header.dropdown.add-account")," "),t.R7$(3),t.Y8G("src",o.getImageSrc("help_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(31,38,"home.header.dropdown.support")," "),t.R7$(2),t.Y8G("ngIf",o.agencyService.agency.showChatWithSupport),t.R7$(),t.Y8G("ngIf",o.hasProductTour&&o.isUserLoggedIn()),t.R7$(2),t.Y8G("src",o.getImageSrc("log_out_v1.svg")),t.R7$(2),t.SpI(" ",t.bMT(38,40,"home.header.dropdown.log-out")," ")}}function Zt(g,V){if(1&g){const o=t.RV6();t.j41(0,"div",3),t.DNE(1,Ut,46,45,"div",4)(2,Wt,7,6,"div",5)(3,Jt,39,42,"div",6),t.j41(4,"div",7),t.bIt("click",function(b){t.eBV(o);const F=t.XpG();return t.Njj(F.onHideMobileDropdown(b))}),t.k0s()()}if(2&g){const o=t.XpG();t.R7$(),t.Y8G("ngIf",!o.isMobile()),t.R7$(),t.Y8G("ngIf",o.isMobile()),t.R7$(),t.Y8G("ngIf",o.isMobile()),t.R7$(),t.AVh("show",o.mobileDropdown)}}let Qt=(()=>{class g{constructor(o,_,b,F,H,Z,it,nt){this.agencyService=o,this.headerService=_,this.userService=b,this.router=F,this.route=H,this.authService=Z,this.notificationService=it,this.tourService=nt,this.showAgencySelector=!1,this.faSliders=W._$s,this.faSkull=W.B0L,this.onBack=new t.bkB,this.showAgencySelector=!m.c.production}ngOnInit(){this.hasProductTour=this.agencyService.agency.showProductTour,this.update(),this.router.events.subscribe(o=>{o instanceof c.wF&&this.update()})}
1update(){let o=this.route.snapshot;for(;o.firstChild;)o=o.firstChild;this.hide=!!o.data?.hideHeader}logoSrc(){return this.agencyService.agency.logoHeaderBig}logoSmallSrc(){return this.agencyService.agency.logoHeaderSmall}onSettings(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/settings")}isHome(){return this.router.url.includes("/home")}onHome(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/home"),this.mobileDropdown=!1}isUserLoggedIn(){if(!this.userService.currentSubscription.account)return!1;const{status:o}=this.userService.currentSubscription.account;return o===mt.u1.VALID}onShowMobileDropdown(){this.mobileDropdown=!0}onHelp(){this.mobileDropdown=!1,this.agencyService.agency.helpBtn.onAction()}onChatWithSupport(){this.mobileDropdown=!1,this.agencyService.agency.popupIntercom()}onHideMobileDropdown(o){this.mobileDropdown=!1,o.stopPropagation()}onCloseDropdown(){this.mobileDropdown=!1}onChangeAccount(o){this.mobileDropdown=!1,this.userService.currentSubscription!=o&&this.userService.onChangeSubscription(o)}onManageAccounts(){this.mobileDropdown=!1,this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/manage-accounts")}onDynamics(){this.mobileDropdown=!1,this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/dynamics")}onAddAccount(){this.router.navigateByUrl("/onboarding")}onLogout(){this.authService.logout(!0)}isMobile(){return window.innerWidth<1001}getNotificationIcon(){for(let o of this.notificationService.lastNotifications)if(!o.seen)return this.agencyService.getImg("notification_v1.svg");return this.agencyService.getImg("notification_empty_v1.svg")}onNotificationsClick(){this.isNotificationCenterOpen()?this.onHome():this.showNotifications=!this.showNotifications}isNotificationCenterOpen(){return this.route.component==at}getSubscriptions(){let o=[];for(let _ of this.userService.subscriptions)_.isDraft()||o.push(_);return o}onDarkMode(){this.agencyService.agency.setDarkMode(!this.agencyService.agency.darkMode),this.agencyService.updateStyles(),this.agencyService.agency.darkMode?localStorage.setItem("darkMode","enabled"):localStorage.setItem("darkMode","disabled")}getImageSrc(o){return this.agencyService.getImg(o)}showProductTour(){this.onCloseDropdown(),this.tourService.startProductTour(),localStorage.removeItem("productTourCompleted")}onChangeAgency(o){m.c.production||(localStorage.setItem("test-agency",o.name),window.location.reload())}get uniqueAgencies(){return this.agencyService.agencies.filter((o,_,b)=>_===b.findIndex(F=>F.name===o.name))}redirectToNotificationCenter(){this.router.navigateByUrl(this.userService.getSubscriptionPath()+"/notification-center")}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(C.z),t.rXU(ft.d),t.rXU(f.D),t.rXU(c.Ix),t.rXU(c.nX),t.rXU(M.u),t.rXU(et.I),t.rXU(_t.g))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-header"]],inputs:{backBtn:"backBtn"},outputs:{onBack:"onBack"},standalone:!1,decls:1,vars:1,consts:[["acc_dropdown",""],["agency_dropdown",""],["class","content",4,"ngIf"],[1,"content"],["class","top",4,"ngIf"],["class","top-mobile",4,"ngIf"],["class","mobile-dropdown",3,"show","box-shadow",4,"ngIf"],[1,"overlay","hidden",3,"click"],[1,"top"],[1,"logo",3,"click","src"],[1,"right"],["class","agency-selector",4,"ngIf"],[1,"notifation-btn-box"],[1,"icon-header-btn","ic-notifation","stroke-icon",3,"click","src"],[1,"f-semi-bold","f-size-18","icon-header-btn","user-box","color-text-2",3,"click"],["onerror","this.src='/assets/images/default/default-user.svg'",1,"ic-user","bkg-3",3,"src"],[1,"ic-arrow","fill-icon",3,"src"],[1,"dropdown","acc-dropdown"],[1,"f-size-14","f-semi-bold","acc-dropdown-title","color-text-3"],[1,"accounts"],["class","acc-dropdown-item",3,"click",4,"ngFor","ngForOf"],[1,"acc-line","bkg-3"],[1,"acc-dropdown-item",3,"click"],[1,"acc-dropdown-icon","fill-icon",3,"applyClass","src"],["class","f-semi-bold f-size-14",4,"ngIf"],[1,"toggle","bkg-4",3,"click"],[1,"anim"],[1,"switch"],[1,"acc-dropdown-icon","ic-plus","stroke-icon",3,"src"],[1,"f-semi-bold","f-size-14"],[1,"acc-dropdown-icon","fill-icon","stroke-icon",3,"src"],["class","acc-dropdown-item",3,"click",4,"ngIf"],[1,"acc-dropdown-icon","stroke-icon",3,"src"],[1,"agency-selector"],[1,"f-semi-bold","f-size-18","icon-header-btn","agency-box","color-text-2",3,"click"],["size","lg",3,"icon"],[1,"dropdown","agency-dropdown"],[1,"f-size-14","f-semi-bold","agency-dropdown-title","color-text-3"],["class","agency-dropdown-item",3,"click",4,"ngFor","ngForOf"],[1,"agency-dropdown-item",3,"click"],[1,"f-medium","f-size-16","single-line-text","color-text-2"],[1,"user-img",3,"src"],["class","ic-account-type",3,"src",4,"ngIf"],[1,"ic-account-type",3,"src"],[1,"top-mobile"],["class","ic-notifation stroke-icon",3,"src","click",4,"ngIf"],["class","overlay show",3,"click",4,"ngIf"],["class","notification-popup",3,"onClose","click",4,"ngIf"],[1,"user-icon",3,"click","
1src"],[1,"ic-notifation","stroke-icon",3,"click","src"],[1,"overlay","show",3,"click"],[1,"notification-popup",3,"onClose","click"],[1,"mobile-dropdown"],[1,"acc-dropdown-item"],[1,"user-img",3,"click","src"],[1,"f-semi-bold","f-size-18","single-line-text","color-text-2",3,"click"],[1,"close",3,"click"],[1,"fill-bkg-4","ic-close",3,"src"],[1,"f-semi-bold","f-size-14","color-text-2"],[1,"acc-dropdown-item","log-out",3,"click"]],template:function(_,b){1&_&&t.DNE(0,Zt,5,5,"div",2),2&_&&t.Y8G("ngIf",!b.hide||!b.isMobile())},dependencies:[N.Sq,N.bT,O.DM,z.aY,yt,Pt,l.D9],styles:[".top[_ngcontent-%COMP%]{display:flex;flex-flow:row;justify-content:space-between;padding:0 24px;box-shadow:0 0 3px #00000040}.logo[_ngcontent-%COMP%]{cursor:pointer;align-self:center;margin-right:80px}.ic-help[_ngcontent-%COMP%], .ic-manage[_ngcontent-%COMP%]{width:30px;height:30px}.icon-header-btn[_ngcontent-%COMP%]{padding:10px;justify-content:center;cursor:pointer;position:relative}.notifation-btn-box[_ngcontent-%COMP%]{width:50px;height:50px;position:relative;display:flex;justify-content:center;align-items:center}.notification-popup[_ngcontent-%COMP%]{position:absolute;right:0;top:60px;z-index:2}.ic-arrow[_ngcontent-%COMP%]{margin-left:12px;width:12px}.manage[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-right:5px;border-radius:50%;width:50px;height:50px;transition:.2s all ease-in}.manage-selected[_ngcontent-%COMP%] .ic-manage[_ngcontent-%COMP%]{filter:invert(1)}.right[_ngcontent-%COMP%]{flex-flow:row;display:flex;align-items:center}.acc-dropdown[_ngcontent-%COMP%]{width:360px;right:0;left:initial;top:50px}.accounts[_ngcontent-%COMP%]{max-height:35vh;overflow-y:auto}.acc-dropdown-item[_ngcontent-%COMP%]{display:flex;flex-flow:row;align-items:center;cursor:pointer;height:55px;padding-left:30px;padding-right:70px;position:relative}.close[_ngcontent-%COMP%]{position:absolute;right:25px;cursor:pointer;display:flex;justify-content:center;align-items:center;padding:5px}.close[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:26px;height:26px}.acc-dropdown-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:18px}.user-img[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;margin-right:12px}.ic-close[_ngcontent-%COMP%]{cursor:pointer;width:26px;height:26px}.user-box[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.ic-user[_ngcontent-%COMP%]{margin-right:8px;width:32px;height:32px;border-radius:50%}.acc-dropdown-title[_ngcontent-%COMP%]{margin:12px 30px}.acc-dropdown-title[_ngcontent-%COMP%]:first-of-type{margin-top:20px}.ic-account-type[_ngcontent-%COMP%]{position:absolute;right:30px;width:28px;height:28px}.acc-line[_ngcontent-%COMP%]{height:1px;margin:0 30px}.acc-dropdown-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:24px}.ic-notifation[_ngcontent-%COMP%]{width:30px;height:30px;cursor:pointer;border-radius:50%;transition:all .2s ease-in}.h-box[_ngcontent-%COMP%]{justify-content:center;align-items:center}.mobile-dropdown[_ngcontent-%COMP%]{max-height:90%;overflow:auto;text-align:start;pointer-events:none;position:fixed;top:0;left:0;transform:translateY(-102%);z-index:3;width:100%;border-radius:0 0 20px 20px;transition:.3s transform ease-in}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:130%;z-index:2;transition:.3s opacity ease-in}.overlay.show[_ngcontent-%COMP%]{background-color:#0002}.ic-plus[_ngcontent-%COMP%], .ic-settings[_ngcontent-%COMP%]{width:24px;height:24px}.toggle[_ngcontent-%COMP%]{position:absolute;right:30px;top:50%;transform:translateY(-50%);width:40px;height:20px;border-radius:20px}.toggle[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;transition:all .2s ease-in;transform:translate(0)}.toggle[_ngcontent-%COMP%] .switch.enabled[_ngcontent-%COMP%]{transform:translate(100%)}.anim[_ngcontent-%COMP%]{width:20px;height:20px;position:absolute;border-radius:50%;background:#fff;transform:scale(0);opacity:90%}.animate-white[_ngcontent-%COMP%]{animation-timing-function:ease-in-out;margin-left:20px;animation:1s _ngcontent-%COMP%_animate-white}.animate-dark[_ngcontent-%COMP%]{animation-timing-function:ease-in-out;animation:1s _ngcontent-%COMP%_animate-dark}.animate-white-mobile[_ngcontent-%COMP%]{animation-timing-function:ease-in-out;margin-left:20px;animation:1s _ngcontent-%COMP%_animate-white-mobile}.animate-dark-mobile[_ngcontent-%COMP%]{animation-timing-function:ease-in-out;animation:1s _ngcontent-%COMP%_animate-dark-mobile}@media only screen and (max-width: 1000px){.logo[_ngcontent-%COMP%]{margin-right:0}.top-mobile[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px;margin-bottom:34px}.ic-notifation[_ngcontent-%COMP%]{width:28px;height:28px}.user-icon[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;cursor:pointer}.user-img[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:10px;margin-right:12px}.mobile-dropdown.show[_ngcontent-%COMP%]{opacity:1;pointer-events:all;transform:translateY(0)}.acc-dropdown-item[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px}.log-out[_ngcontent-%COMP%]{margin-top:50px}.notification-popup[_ngcontent-%COMP%]{right:20px;left:20px;top:20px;z-index:2}}@keyframes _ngcontent-%COMP%_animate-white{0%{transform:scale(200)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_animate-dark{0%{background:#000;transform:scale(200)}to{background:#000;transform:scale(1)}}@keyframes _ngcontent-%COMP%_animate-white-mobile{0%{transform:scale(200);opacity:1}to{transform:scale(200);opacity:0}
1}@keyframes _ngcontent-%COMP%_animate-dark-mobile{0%{opacity:1;background:#000;transform:scale(200)}to{background:#000;transform:scale(200);opacity:0}}@media only screen and (max-width: 1000px) and (min-width: 900px){.top-mobile[_ngcontent-%COMP%]{margin:40px 20px 0}}.agency-selector[_ngcontent-%COMP%]{margin-right:10px}.agency-box[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;padding:0 15px}.agency-dropdown[_ngcontent-%COMP%]{width:260px;right:0;left:initial;top:50px}.agency-dropdown-item[_ngcontent-%COMP%]{display:flex;flex-flow:row;align-items:center;cursor:pointer;height:45px;padding-left:30px;padding-right:30px;position:relative}.agency-dropdown-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:capitalize}.agency-dropdown-title[_ngcontent-%COMP%]{margin:12px 30px}"],data:{animation:[d.Ws,d.Wm]}})}}return g})();function qt(g,V){1&g&&t.nrm(0,"app-mobile-navigation",1)}let te=(()=>{class g{constructor(){}ngOnInit(){}isMobile(){return window.innerWidth<1001}static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-dashboard"]],standalone:!1,decls:3,vars:1,consts:[["class","mobile-navigation",4,"ngIf"],[1,"mobile-navigation"]],template:function(_,b){1&_&&(t.nrm(0,"app-header"),t.DNE(1,qt,1,0,"app-mobile-navigation",0),t.nrm(2,"router-outlet")),2&_&&(t.R7$(),t.Y8G("ngIf",b.isMobile()))},dependencies:[c.n3,N.bT,ht,Qt],styles:[".mobile-navigation[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:4}"]})}}return g})();var ee=n(7129);let rt=(()=>{class g{constructor(o){this.agencyService=o}ngOnInit(){this.brandLogo=this.agencyService.agency.logoHeaderBig}static{this.\u0275fac=function(_){return new(_||g)(t.rXU(C.z))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-maintenance-mode"]],decls:9,vars:1,consts:[[1,"maintenance"],["alt","Logo SVG",1,"maintenance__logo",3,"src"],[1,"maintenance__title"],[1,"maintenance__subtitle"]],template:function(_,b){1&_&&(t.j41(0,"article",0),t.nrm(1,"img",1),t.j41(2,"h1",2),t.EFF(3,"Site is temporarily unavailable."),t.k0s(),t.j41(4,"div",3)(5,"p"),t.EFF(6,"Scheduled maintenance is currently in progress. Please check back soon."),t.k0s(),t.j41(7,"p"),t.EFF(8,"We apologize for any inconvenience."),t.k0s()()()),2&_&&(t.R7$(),t.Y8G("src",b.brandLogo,t.B4B))},styles:[".maintenance[_ngcontent-%COMP%]{height:100vh;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.5rem}.maintenance[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.maintenance__logo[_ngcontent-%COMP%]{margin-bottom:1rem}.maintenance__title[_ngcontent-%COMP%]{font-size:1.5rem;text-align:center}.maintenance__subtitle[_ngcontent-%COMP%]{text-align:center;max-width:40rem;width:100%}"]})}}return g})(),ie=(()=>{class g{constructor(){this.agencyService=(0,t.WQX)(C.z)}canLoad(o,_){return!0}isKicksta(){return"kicksta"===this.agencyService.name}static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();const ne=[{path:"",component:e,canActivate:[K]},{path:"onboarding",loadChildren:()=>{throw new Error("Route loader must be configured")}},{path:"maintenance",component:rt},{path:"test",component:ee.i},{path:"",loadChildren:()=>Promise.all([n.e(1663),n.e(2076),n.e(2846)]).then(n.bind(n,2846)).then(g=>g.AuthModule)},{component:te,path:":social/:username",canActivate:[G],children:[{path:"home",loadChildren:()=>Promise.all([n.e(1663),n.e(1893),n.e(3202),n.e(8747),n.e(3649),n.e(7366),n.e(2076),n.e(1075)]).then(n.bind(n,1075)).then(g=>g.HomeModule),data:{id:"home"}},{path:"settings",loadChildren:()=>Promise.all([n.e(1663),n.e(1893),n.e(3202),n.e(8747),n.e(2076),n.e(325)]).then(n.bind(n,2706)).then(g=>g.SettingsModule),data:{id:"settings"}},{path:"manage-accounts",loadChildren:()=>Promise.all([n.e(1663),n.e(1893),n.e(3202),n.e(8747),n.e(3473)]).then(n.bind(n,3473)).then(g=>g.AccountSelectionModule),data:{id:"manage"}},{path:"notification-center",component:at,data:{hideHeader:!0,hideNavigation:!0}},{path:"dynamics",loadChildren:()=>Promise.all([n.e(1663),n.e(1893),n.e(3202),n.e(8747),n.e(315),n.e(7366),n.e(5380)]).then(n.bind(n,5380)).then(g=>g.DynamicsModule),data:{id:"dynamics"}}]},{path:"sign-up",redirectTo:"register"},{path:"sign-in",redirectTo:"login"},{path:"**",redirectTo:"login"}];let oe=(()=>{class g{constructor(o,_){this.injector=o,this.router=_;const b=this.injector.get(ie),F=this.router.config.find(H=>"onboarding"===H.path);F&&(F.loadChildren=()=>b.isKicksta()?Promise.all([n.e(1663),n.e(1893),n.e(3649),n.e(315),n.e(8918),n.e(2076),n.e(4020)]).then(n.bind(n,4020)).then(H=>H.OnboardingKickstaModule):Promise.all([n.e(1663),n.e(1893),n.e(3649),n.e(315),n.e(8918),n.e(913)]).then(n.bind(n,913)).then(H=>H.OnboardingModule),this.router.resetConfig(this.router.config))}static{this.\u0275fac=function(_){return new(_||g)(t.KVO(t.zZn),t.KVO(c.Ix))}}static{this.\u0275mod=t.$C({type:g})}static{this.\u0275inj=t.G2t({imports:[r.iI.forRoot(ne,{preloadingStrategy:r.Kp}),r.iI]})}}return g})();var ct=n(4054),se=n(2279),ae=n(1935),re=n(2168),ce=n(4781);let le=(()=>{class g{constructor(){this.delegate=s.JF({showDialog:!m.c.production})}handleError(o){const _=o?.ngOriginalError??o;if(_ instanceof ct.yz&&0===_.status){const F=new Error(`Aborted XHR: ${_.url??"(unknown url)"}`);return F.name="AbortedXHR",void p.v4(H=>{H.setTag("aborted_xhr","true"),H.setLevel("info"),H.setFingerprint(["aborted-xhr"]),H.setExtra("original_message",_.message),H.setExtra("original_url",_.url),P.Cp(F,{mechanism:{handled:!0,type:"generic"}})})}this.delegate.handleError(o)}static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac})}}return g})();var de=n(6485),ue=n(189),he=n(9787);let pe=(()=>{class g{static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275mod=t.$C({type:g,bootstrap:[e]})}static{this.\u0275inj=t.G2t({providers:[{provide:t.zcH,useClass:le}],imports:[oe,ae.G,i.Bb,ce.Ph,re.wb,O.iu.forRoot(),he.lX.withOptions(),l.h.forRoot({loader:{provide:l.Wr,useFactory:ge,deps:[ct.Qq]},missingTranslationHandler:{provide:l.er,useClass:de.i},useDefaultLang:!0,parser:{provide:l.Sd,useClass:ue.z}}),z.dX]})}}return g})();function ge(g){return new se.s(g)}var lt=n(7401);s.Ts({dsn:"https://[email protected]/6605499",release:lt.X,environment:lt.b,ignoreErrors:[/Timeout waiting for response/],denyUrls:[/\/assets\/tracking\/storage\.js/],maxBreadcrumbs:200,beforeBreadcrumb(g){if("xhr"===g.category){const V=g.data?.url??"",o=g.data?.status_code;if((V.includes("/polling/")||V.includes("check-notification-status"))&&o>=200&&o<300)return null}return g}}),m.c.production&&(0,t.SmG)(),m.c.maintenance?(document.querySelector("app-root").replaceWith(document.createElement("app-maintenance-mode")),(0,i.B8)(rt).then(g=>g.injector.get(C.z).updateStyles()).catch(g=>console.error(g))):i.sG().bootstrapModule(pe).catch(g=>console.error(g))},5359(j,D,n){var i={"./af":[9386,[9386]],"./af.js":[9386,[9386]],"./am":[7055,[7055]],"./am.js":[7055,[7055]],"./ar":[9718,[9718]],"./ar-dz":[4261,[4261]],"./ar-dz.js":[4261,[4261]],"./ar-iq":[6097,[6097]],"./ar-iq.js":[6097,[6097]],"./ar-kw":[6005,[6005]],"./ar-kw.js":[6005,[6005]],"./ar-ly":[804,[804]],"./ar-ly.js":[804,[804]],"./ar-ma":[3397,[3397]],"./ar-ma.js":[3397,[3397]],"./ar-sa":[2959,[2959]],"./ar-sa.js":[2959,[2959]],"./ar-tn":[5081,[5081]],"./ar-tn.js":[5081,[5081]],"./ar.js":[9718,[9718]],"./az":[8526,[8526]],"./az.js":[8526,[8526]],"./be":[3352,[3352]],"./be.js":[3352,[3352]],"./bg":[1810,[1810]],"./bg.js":[1810,[1810]],"./bi":[3228,[3228]],"./bi.js":[3228,[3228]],"./bm":[4048,[4048]],"./bm.js":[4048,[4048]],"./bn":[9529,[9529]],"./bn-bd":[3348,[3348]],"./bn-bd.js":[3348,[3348]],"./bn.js":[9529,[9529]],"./bo":[4474,[4474]],"./bo.js":[4474,[4474]],"./br":[3469,[3469]],"./br.js":[3469,[3469]],"./bs":[3550,[3550]],"./bs.js":[3550,[3550]],"./ca":[5965,[5965]],"./ca.js":[5965,[5965]],"./cs":[6155,[6155]],"./cs.js":[6155,[6155]],"./cv":[6280,[6280]],"./cv.js":[6280,[6280]],"./cy":[7989,[7989]],"./cy.js":[7989,[7989]],"./da":[1118,[1118]],"./da.js":[1118,[1118]],"./de":[6626,[6626]],"./de-at":[6058,[6058]],"./de-at.js":[
16058,[6058]],"./de-ch":[1615,[3996]],"./de-ch.js":[1615,[3996]],"./de.js":[6626,[6626]],"./dv":[1631,[1631]],"./dv.js":[1631,[1631]],"./el":[396,[396]],"./el.js":[396,[396]],"./en":[8214,[]],"./en-au":[1237,[1237]],"./en-au.js":[1237,[1237]],"./en-ca":[9791,[9791]],"./en-ca.js":[9791,[9791]],"./en-gb":[3238,[3238]],"./en-gb.js":[3238,[3238]],"./en-ie":[3821,[3821]],"./en-ie.js":[3821,[3821]],"./en-il":[9078,[9078]],"./en-il.js":[9078,[9078]],"./en-in":[5372,[2991]],"./en-in.js":[5372,[2991]],"./en-nz":[9679,[9679]],"./en-nz.js":[9679,[9679]],"./en-sg":[6237,[6237]],"./en-sg.js":[6237,[6237]],"./en-tt":[3599,[3599]],"./en-tt.js":[3599,[3599]],"./en.js":[8214,[]],"./eo":[8866,[6485]],"./eo.js":[8866,[6485]],"./es":[3857,[3857]],"./es-do":[495,[495]],"./es-do.js":[495,[495]],"./es-mx":[8403,[8403]],"./es-mx.js":[8403,[8403]],"./es-pr":[8488,[8488]],"./es-pr.js":[8488,[8488]],"./es-us":[1686,[1686]],"./es-us.js":[1686,[1686]],"./es.js":[3857,[3857]],"./et":[8788,[8788]],"./et.js":[8788,[8788]],"./eu":[6731,[6731]],"./eu.js":[6731,[6731]],"./fa":[4848,[4848]],"./fa.js":[4848,[4848]],"./fi":[1624,[1624]],"./fi.js":[1624,[1624]],"./fo":[8126,[8126]],"./fo.js":[8126,[8126]],"./fr":[2121,[2121]],"./fr-ca":[4734,[4734]],"./fr-ca.js":[4734,[4734]],"./fr-ch":[3669,[3669]],"./fr-ch.js":[3669,[3669]],"./fr.js":[2121,[2121]],"./fy":[5688,[5688]],"./fy.js":[5688,[5688]],"./ga":[2310,[9929]],"./ga.js":[2310,[9929]],"./gd":[1190,[1190]],"./gd.js":[1190,[1190]],"./gl":[494,[494]],"./gl.js":[494,[494]],"./gom-latn":[7536,[7536]],"./gom-latn.js":[7536,[7536]],"./gu":[6261,[6261]],"./gu.js":[6261,[6261]],"./he":[598,[598]],"./he.js":[598,[598]],"./hi":[7426,[7426]],"./hi.js":[7426,[7426]],"./hr":[6567,[6567]],"./hr.js":[6567,[6567]],"./ht":[981,[981]],"./ht.js":[981,[981]],"./hu":[6886,[6886]],"./hu.js":[6886,[6886]],"./hy-am":[9457,[9457]],"./hy-am.js":[9457,[9457]],"./id":[7416,[7416]],"./id.js":[7416,[7416]],"./index.d":[8157,[8157]],"./index.d.ts":[8157,[8157]],"./is":[6586,[4205]],"./is.js":[6586,[4205]],"./it":[5416,[5416]],"./it-ch":[2434,[2434]],"./it-ch.js":[2434,[2434]],"./it.js":[5416,[5416]],"./ja":[4684,[4684]],"./ja.js":[4684,[4684]],"./jv":[9193,[9193]],"./jv.js":[9193,[9193]],"./ka":[4757,[4757]],"./ka.js":[4757,[4757]],"./kk":[6571,[6571]],"./kk.js":[6571,[6571]],"./km":[1025,[1025]],"./km.js":[1025,[1025]],"./kn":[6696,[6696]],"./kn.js":[6696,[6696]],"./ko":[623,[623]],"./ko.js":[623,[623]],"./ku":[5897,[5897]],"./ku.js":[5897,[5897]],"./ky":[2733,[2733]],"./ky.js":[2733,[2733]],"./lb":[5555,[5555]],"./lb.js":[5555,[5555]],"./lo":[7688,[7688]],"./lo.js":[7688,[7688]],"./lt":[2009,[2009]],"./lt.js":[2009,[2009]],"./lv":[4327,[4327]],"./lv.js":[4327,[4327]],"./me":[723,[723]],"./me.js":[723,[723]],"./mi":[879,[879]],"./mi.js":[879,[879]],"./mk":[9697,[2078]],"./mk.js":[9697,[2078]],"./ml":[9799,[2180]],"./ml.js":[9799,[2180]],"./mn":[382,[382]],"./mn.js":[382,[382]],"./mr":[5850,[5850]],"./mr.js":[5850,[5850]],"./ms":[6361,[6361]],"./ms-my":[7735,[116]],"./ms-my.js":[7735,[116]],"./ms.js":[6361,[6361]],"./mt":[2991,[5372]],"./mt.js":[2991,[5372]],"./my":[4543,[4543]],"./my.js":[4543,[4543]],"./nb":[2078,[9697]],"./nb.js":[2078,[9697]],"./ne":[5396,[5396]],"./ne.js":[5396,[5396]],"./nl":[3939,[3939]],"./nl-be":[413,[413]],"./nl-be.js":[413,[413]],"./nl.js":[3939,[3939]],"./nn":[3429,[3429]],"./nn.js":[3429,[3429]],"./oc-lnc":[2453,[2453]],"./oc-lnc.js":[2453,[2453]],"./pa-in":[8224,[8224]],"./pa-in.js":[8224,[8224]],"./pl":[9733,[9733]],"./pl.js":[9733,[9733]],"./pt":[9869,[9869]],"./pt-br":[8470,[8470]],"./pt-br.js":[8470,[8470]],"./pt.js":[9869,[9869]],"./rn":[8425,[8425]],"./rn.js":[8425,[8425]],"./ro":[5642,[5642]],"./ro.js":[5642,[5642]],"./ru":[6344,[6344]],"./ru.js":[6344,[6344]],"./rw":[8962,[8962]],"./rw.js":[8962,[8962]],"./sd":[2210,[2210]],"./sd.js":[2210,[2210]],"./se":[625,[625]],"./se.js":[625,[625]],"./si":[8005,[8005]],"./si.js":[8005,[8005]],"./sk":[4867,[4867]],"./sk.js":[4867,[4867]],"./sl":[4826,[4826]],"./sl.js":[4826,[4826]],"./sq":[1805,[1805]],"./sq.js":[1805,[1805]],"./sr":[8007,[388]],"./sr-cyrl":[7323,[7323]],"./sr-cyrl.js":[7323,[7323]],"./sr.js":[8007,[388]],"./ss":[7387,[7387]],"./ss.js":[7387,[7387]],"./sv":[5240,[5240]],"./sv-fi":[3692,[3692]],"./sv-fi.js":[3692,[3692]],"./sv.js":[5240,[5240]],"./sw":[9855,[9855]],"./sw.js":[9855,[9855]],"./ta":[7438,[7438]],"./ta.js":[7438,[7438]],"./te":[2690,[2690]],"./te.js":[2690,[2690]],"./tet":[4516,[4516]],"./tet.js":[4516,[4516]],"./tg":[7288,[7288]],"./tg.js":[7288,[7288]],"./th":[2725,[2725]],"./th.js":[2725,[2725]],"./tk":[2988,[2988]],"./tk.js":[2988,[2988]],"./tl-ph":[2642,[2642]],"./tl-ph.js":[2642,[2642]],"./tlh":[4269,[4269]],"./tlh.js":[4269,[4269]],"./tr":[6795,[6795]],"./tr.js":[6795,[6795]],"./types.d":[2408,[2408]],"./types.d.ts":[2408,[2408]],"./tzl":[5647,[5647]],"./tzl.js":[5647,[5647]],"./tzm":[2488,[2488]],"./tzm-latn":[8440,[8440]],"./tzm-latn.js":[8440,[8440]],"./tzm.js":[2488,[2488]],"./ug-cn":[8035,[8035]],"./ug-cn.js":[8035,[8035]],"./uk":[7974,[5593]],"./uk.js":[7974,[5593]],"./ur":[6130,[6130]],"./ur.js":[6130,[6130]],"./uz":[8746,[8746]],"./uz-latn":[9082,[9082]],"./uz-latn.js":[9082,[9082]],"./uz.js":[8746,[8746]],"./vi":[488,[488]],"./vi.js":[488,[488]],"./x-pseudo":[3564,[3564]],"./x-pseudo.js":[3564,[3564]],"./yo":[8105,[8105]],"./yo.js":[8105,[8105]],"./zh":[9163,[9163]],"./zh-cn":[2925,[2925]],"./zh-cn.js":[2925,[2925]],"./zh-hk":[7889,[7889]],"./zh-hk.js":[7889,[7889]],"./zh-tw":[5817,[5817]],"./zh-tw.js":[5817,[5817]],"./zh.js":[9163,[9163]]};function t(s){if(!n.o(i,s))return Promise.resolve().then(()=>{var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a});var r=i[s],u=r[0];return Promise.all(r[1].map(n.e)).then(()=>n.t(u,23))}t.keys=()=>Object.keys(i),t.id=5359,j.exports=t}},j=>{j.O(0,[4121],()=>j(j.s=5593)),j.O()}]);
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.