1import{b as J,d as K}from"./chunk-PD2YUQQF.js";import{Hb as v,Ib as q,Kb as H,Lb as Y,Tb as C}from"./chunk-VNNLH46O.js";import{ca as G,m as W,n as $,r as A,s as b}from"./chunk-3QLFRG4T.js";import{$c as U,Ac as u,Cb as k,Cc as f,Ea as w,Fa as M,Gc as B,Hc as T,Ib as O,Ic as F,Ob as x,Oc as j,Rc as l,Sc as N,Tc as c,Ub as z,Zc as R,_c as V,ec as m,gc as h,hc as D,id as d,jc as E,jd as _,kc as I,kd as Q,lc as g,mc as a,nc as o,oc as s,vc as y,xb as p,zd as L}from"./chunk-6E4BK3UV.js";function en(t,e){if(t&1&&(a(0,"span",1),l(1),o()),t&2){let n=f();p(),c(" -",n.plan.discount," % ")}}function tn(t,e){if(t&1&&(a(0,"span",6),l(1),d(2,"currency"),o()),t&2){let n=f();p(),c(" ",_(2,1,n.plan.rawPricePerMonth)," USD/month ")}}function an(t,e){t&1&&l(0,"month")}function on(t,e){t&1&&l(0,"months")}function ln(t,e){if(t&1&&(a(0,"div",13),l(1),d(2,"date"),o()),t&2){let n=f();p(),c(" Expires in ",Q(2,1,n.expiresDate,"MM/dd/yyyy")," ")}}var P=class t{id;plan;isChosen;isSelectable=!0;size="l";expiresDate=null;chosen=new k;get months(){let e=this.plan?.duration||0;return e<30?e:Math.floor(e/30)}get pricePerMonth(){return this.plan?J(this.plan.pricePerMonth):"0"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=x({type:t,selectors:[["inf-profile-plan-banner"]],inputs:{id:"id",plan:"plan",isChosen:"isChosen",isSelectable:"isSelectable",size:"size",expiresDate:"expiresDate"},outputs:{chosen:"chosen"},decls:21,vars:15,consts:[[1,"inf-profile-plan-banner",3,"click","id"],[1,"inf-profile-plan-banner__discount"],[1,"inf-profile-plan-banner__price"],[1,"inf-profile-plan-banner__price-wrap"],[1,"inf-profile-plan-banner__price-amount"],[1,"inf-profile-plan-banner__price-label"],[1,"inf-profile-plan-banner__original-price"],[1,"inf-profile-plan-banner__divider"],[1,"inf-profile-plan-banner__months"],[1,"inf-profile-plan-banner__months-label"],[3,"ngPlural"],["ngPluralCase","=1"],["ngPluralCase","other"],[1,"inf-profile-plan-banner__expires"]],template:function(n,i){n&1&&(a(0,"div",0),u("click",function(){return i.chosen.emit(i.plan)}),m(1,en,2,1,"span",1),a(2,"div",2)(3,"div",3)(4,"span",4),l(5),d(6,"currency"),o(),a(7,"span",5),l(8," USD"),s(9,"br"),l(10," month "),o()(),m(11,tn,3,3,"span",6),o(),s(12,"div",7),a(13,"div",8)(14,"span",9)(15,"span"),l(16),o(),a(17,"span",10),z(18,an,1,0,"ng-template",11)(19,on,1,0,"ng-template",12),o()()(),m(20,ln,3,4,"div",13),o()),n&2&&(j("inf-profile-plan-banner--chosen",i.isChosen)("inf-profile-plan-banner--choosable",!i.isChosen)("inf-profile-plan-banner--size-s",i.size==="s"),g("id",i.id),p(),h(i.plan&&i.plan.discount>0?1:-1),p(4),c(" ",_(6,13,i.pricePerMonth)," "),p(6),h(i.plan&&i.plan.discount>0?11:-1),p(5),N(i.months),p(),g("ngPlural",i.months),p(3),h(i.expiresDate?20:-1))},dependencies:[W,$,b,A],styles:['.inf-profile-plan-banner[_ngcontent-%COMP%]{position:relative;display:flex;flex-wrap:wrap;width:100%;padding:30px 44px;background:url(/images/star-black-bg.png) no-repeat;background-color:#060c1d;background-blend-mode:lighten;border-radius:16px;outline:1px solid rgba(224,235,242,.2);transition:outline .2s}@media (max-width: 620px){.inf-profile-plan-banner[_ngcontent-%COMP%]{padding:14px 20px}}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%]{cursor:default!important;padding:14px 20px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%]:before{background-size:cover;border-radius:16px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__discount[_ngcontent-%COMP%]{height:24px;top:-10px;padding:3px;font-size:14px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__price-amount[_ngcontent-%COMP%]{color:#fff;font-size:30px;font-weight:600}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__price-label[_ngcontent-%COMP%]{font-size:12px;line-height:16px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__original-price[_ngcontent-%COMP%]{font-size:14px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__divider[_ngcontent-%COMP%]{margin:0 12px}.inf-profile-plan-banner--size-s[_ngcontent-%COMP%] .inf-profile-plan-banner__months[_ngcontent-%COMP%]{justify-content:center;font-size:14px}[_ngcontent-%COMP%]:not(.inf-profile-plan-banner--size-s):hover{outline:2px solid #8052CC}.inf-profile-plan-banner--chosen[_ngcontent-%COMP%]{outline:4px solid #8052CC;box-shadow:0 4px 6px -2px #0000000d;box-shadow:0 10px 15px -3px #0000001a;box-shadow:0 0 30px #8254cf66}.inf-profile-plan-banner--choosable[_ngcontent-%COMP%]{cursor:pointer}.inf-profile-plan-banner[_ngcontent-%COMP%]:not(.inf-profile-plan-banner--choosable){pointer-events:none}.inf-profile-plan-banner[_ngcontent-%COMP%]:before{content:"";position:absolute;z-index:0;width:100%;height:100%;top:0;left:0;background:url(/images/ellipse-bg.png);background-size:cover}@media (max-width: 520px){.inf-profile-plan-banner[_ngcontent-%COMP%]:before{border-radius:16px}}.inf-profile-plan-banner__discount[_ngcontent-%COMP%]{position:absolute;height:28px;top:-5px;right:-8px;padding:5px;font-size:18px;font-weight:600;text-wrap:nowrap;color:#b7ed3f;background:linear-gradient(151.74deg,#11664f 2.48%,#022227 42.6%);border-radius:70px}@media (max-width: 620px){.inf-profile-plan-banner__discount[_ngcontent-%COMP%]{height:24px;top:-6px;padding:3px;font-size:16px}}.inf-profile-plan-banner__price[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column;justify-content:center;margin:0 14px}@media (max-width: 620px){.inf-profile-plan-banner__price[_ngcontent-%COMP%]{margin:0}}.inf-profile-plan-banner__price-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}
1.inf-profile-plan-banner__price-amount[_ngcontent-%COMP%]{font-size:40px;font-weight:700}@media (max-width: 860px){.inf-profile-plan-banner__price-amount[_ngcontent-%COMP%]{font-size:30px;font-weight:600}}.inf-profile-plan-banner__price-label[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:20px;color:#7789a8}@media (max-width: 860px){.inf-profile-plan-banner__price-label[_ngcontent-%COMP%]{font-size:14px}}.inf-profile-plan-banner__original-price[_ngcontent-%COMP%]{display:block;margin-top:4px;font-size:16px;font-weight:400;line-height:24px;color:#8052ccb3;text-decoration:line-through}@media (max-width: 620px){.inf-profile-plan-banner__original-price[_ngcontent-%COMP%]{margin-top:0;font-size:14px;font-weight:500;line-height:20px}}.inf-profile-plan-banner__divider[_ngcontent-%COMP%]{width:2px;height:76px;margin:0 10px;background-color:#60759b;opacity:.2}@media (max-width: 620px){.inf-profile-plan-banner__divider[_ngcontent-%COMP%]{margin:0 12px}}.inf-profile-plan-banner__months[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:var(--primary);flex:1;display:flex;align-items:center;justify-content:center}@media (max-width: 860px){.inf-profile-plan-banner__months[_ngcontent-%COMP%]{font-size:20px}}@media (max-width: 520px){.inf-profile-plan-banner__months[_ngcontent-%COMP%]{justify-content:center}.inf-profile-plan-banner__months[_ngcontent-%COMP%] .inf-profile-plan-banner__choose-btn[_ngcontent-%COMP%]{display:none}}.inf-profile-plan-banner__months-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}.inf-profile-plan-banner__months-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child{font-size:36px;line-height:100%}@media (max-width: 620px){.inf-profile-plan-banner__months-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child{font-size:24px}}.inf-profile-plan-banner__expires[_ngcontent-%COMP%]{width:100%;margin-top:8px;font-size:14px;font-weight:400;text-align:center;color:var(--neutral-50)}'],changeDetection:0})};function pn(t,e){if(t&1){let n=y();a(0,"inf-profile-plan-banner",17),u("chosen",function(r){w(n);let S=f();return M(S.onChoosePlan(r))}),o()}if(t&2){let n=e.$implicit,i=e.$index,r=f();g("plan",n)("isChosen",r.chosenPlanSlug===n.slug)("id","tier-"+(i+1)+"-plan-selection")}}function rn(t,e){if(t&1&&(a(0,"span",18),l(1),d(2,"currency"),o(),s(3,"inf-icon",19)),t&2){f();let n=U(32);p(),c(" ",_(2,1,n==null?null:n.originalPrice)," ")}}var X=class t{constructor(e,n){this._store=e;this._changeDetectorRef=n;this.isFreeSubscription=this._store.selectSignal(C.isFreeSubscription),this.plan=this._store.selectSignal(C.plan),this.plans=this._store.selectSignal(K.plans),this.userSubscription=this._store.selectSignal(C.userSubscription)}static DialogWidth="928px";dialogClose;isFreeSubscription;plans;plan;userSubscription;get isSubmittable(){return this.userSubscription().is_active!==!0||!!this.chosenPlanSlug&&this.chosenPlanSlug!==this.plan()?.slug}get isWindow860Px(){return window.innerWidth<=860}chosenPlanSlug;currentPlanSlug;selectedPlanFreeTokens;ngOnInit(){this.setSelectedPlan(),this.setCurrentPlanSlug()}setCurrentPlanSlug(){this.currentPlanSlug=this.plan()?.slug}setSelectedPlan(){let e=this.isFreeSubscription()?this.plans().find(n=>n.slug==="one-year"):this.plan();e&&(this.chosenPlanSlug=e.slug,this.selectedPlanFreeTokens=e.token_count)}getPlans(){return this.plans()?.filter(e=>e.slug!=="free"&&e.slug!=="premium").reverse()}getPlan(e){return this.plans()?.find(n=>n.slug===e)}onChoosePlan(e){this.chosenPlanSlug=e.slug,this.selectedPlanFreeTokens=e.token_count,this._changeDetectorRef.detectChanges()}onBuyPlan(){this.dialogClose.dialogRef.close({selectedPlanSlug:this.chosenPlanSlug})}static \u0275fac=function(n){return new(n||t)(O(G),O(L))};static \u0275cmp=x({type:t,selectors:[["inf-profile-change-plan-dialog"]],viewQuery:function(n,i){if(n&1&&B(v,7),n&2){let r;T(r=F())&&(i.dialogClose=r.first)}},decls:39,vars:11,consts:[[1,"hide-title-on-desktop",3,"title"],[1,"inf-auth","inf-profile-change-plan-dialog"],[1,"inf-auth__wrap",2,"display","block"],["role","button","icon","close-circle","mat-dialog-close","",1,"inf-auth__wrap-close",3,"useMask","width","height"],[1,"inf-profile-change-plan-dialog__wrap"],[1,"inf-profile-change-plan-dialog__info"],[1,"inf-profile-change-plan-dialog__plans"],[3,"plan","isChosen","id"],[1,"inf-profile-change-plan-dialog__info-wrap"],[1,"inf-profile-change-plan-dialog__info-wrap-left"],[1,"inf-h1"],[1,"inf-profile-change-plan-dialog__features"],[1,"inf-profile-change-plan-dialog__features-item"],[1,"inf-profile-change-plan-dialog__info-subscribe-section"],["id","plan-selected-subscribe",1,"inf-profile-change-plan-dialog__btn","btn","btn--gradient","w-full",3,"click","disabled"],[1,"inf-profile-change-plan-dialog__info-final-charge"],[1,"inf-profile-change-plan-dialog__info-final-charge-price"],[3,"chosen","plan","isChosen","id"],[1,"inf-profile-change-plan-dialog__info-final-charge-original-price"],["icon","arrow-right"]],template:function(n,i){if
1(n&1){let r=y();s(0,"app-dialog-header",0),a(1,"mat-dialog-content")(2,"div",1)(3,"div",2),s(4,"inf-icon",3),a(5,"div",4)(6,"div",5)(7,"div",6),E(8,pn,1,3,"inf-profile-plan-banner",7,D),o(),a(10,"div",8)(11,"div",9)(12,"h1",10),l(13,"Change your plan"),o(),a(14,"ul",11)(15,"li",12),l(16," Chat with AI models "),o(),a(17,"li",12),l(18," Generate AI images "),o(),a(19,"li",12),l(20),o(),a(21,"li",12),l(22," Experience 100% anonymity "),o(),a(23,"li",12),l(24," No hidden fees "),o(),a(25,"li",12),l(26," No adult transaction in your"),s(27,"br"),l(28," bank statement "),o()()(),a(29,"div",13)(30,"button",14),u("click",function(){return w(r),M(i.onBuyPlan())}),l(31," Subscribe "),o(),R(32),a(33,"div",15),l(34," Final charge "),m(35,rn,4,3),a(36,"span",16),l(37),d(38,"currency"),o()()()()()()()()()}if(n&2){g("title","Change your plan"),p(4),g("useMask",!1)("width",32)("height",32),p(4),I(i.getPlans()),p(12),c(" Get ",i.selectedPlanFreeTokens," FREE tokens / month "),p(10),g("disabled",!i.isSubmittable),p(2);let r=V(i.getPlan(i.chosenPlanSlug));p(3),h(r&&r.discount>0?35:-1),p(2),c(" ",_(38,9,r==null?null:r.price)," ")}},dependencies:[q,v,H,P,Y,b],styles:['.inf-profile-change-plan-dialog.inf-auth[_ngcontent-%COMP%]{align-items:unset}.inf-profile-change-plan-dialog__wrap[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:center;padding-top:50px}@media (max-width: 860px){.inf-profile-change-plan-dialog__wrap[_ngcontent-%COMP%]{padding-top:0}}@media (max-width: 620px){.inf-profile-change-plan-dialog__wrap[_ngcontent-%COMP%]{align-items:flex-start;padding-top:0}}.inf-profile-change-plan-dialog__wrap[_ngcontent-%COMP%] .inf-paragraph[_ngcontent-%COMP%]{max-width:412px}.inf-profile-change-plan-dialog__btn[_ngcontent-%COMP%]{min-width:300px;margin-top:30px}@media (max-width: 860px){.inf-profile-change-plan-dialog__btn[_ngcontent-%COMP%]{margin-top:16px}}@media (max-width: 620px){.inf-profile-change-plan-dialog__btn[_ngcontent-%COMP%]{margin-top:0}}.inf-profile-change-plan-dialog__info[_ngcontent-%COMP%]{gap:46px;width:100%;height:100%;display:flex;margin-bottom:14px;align-self:flex-start;flex-direction:row-reverse}@media (max-width: 860px){.inf-profile-change-plan-dialog__info[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:0}}@media (max-width: 620px){.inf-profile-change-plan-dialog__info[_ngcontent-%COMP%]{flex-direction:column;gap:16px;padding-top:14px;padding-left:0;padding-right:0}}.inf-profile-change-plan-dialog__info-wrap[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;flex-direction:column;justify-content:space-between}@media (max-width: 860px){.inf-profile-change-plan-dialog__info-wrap[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;flex-direction:column-reverse}.inf-profile-change-plan-dialog__info-wrap[_ngcontent-%COMP%] .inf-h1[_ngcontent-%COMP%]{display:none;margin-top:0;line-height:36px}}.inf-profile-change-plan-dialog__info-final-charge[_ngcontent-%COMP%]{gap:8px;display:flex;font-size:16px;color:var(--neutral-50);margin-top:16px;line-height:24px;align-items:center;justify-content:center}.inf-profile-change-plan-dialog__info-final-charge-original-price[_ngcontent-%COMP%]{color:rgba(var(--neutral-50),.7);text-decoration:line-through}.inf-profile-change-plan-dialog__info-final-charge-price[_ngcontent-%COMP%]{color:var(--white)}@media (max-width: 620px){.inf-profile-change-plan-dialog__info-wrap-left[_ngcontent-%COMP%], .inf-profile-change-plan-dialog__info-subscribe-section[_ngcontent-%COMP%]{width:100%}}.inf-profile-change-plan-dialog__features[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;list-style:none;margin:0;padding:0}@media (max-width: 860px){.inf-profile-change-plan-dialog__features[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:12px}}.inf-profile-change-plan-dialog__features-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.inf-profile-change-plan-dialog__features-item[_ngcontent-%COMP%]:before{content:"";flex-shrink:0;display:inline-block;width:16px;height:16px;margin-top:2px;background-repeat:no-repeat;background-image:url(/icons/plan-item.svg)}.inf-profile-change-plan-dialog__plans[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;width:100%}.inf-profile-change-plan-dialog__plans[_ngcontent-%COMP%] .inf-h1[_ngcontent-%COMP%]{display:none;line-height:36px}@media (max-width: 860px){.inf-profile-change-plan-dialog__plans[_ngcontent-%COMP%] .inf-h1[_ngcontent-%COMP%]{display:block;margin-bottom:0!important;line-height:36px}}.inf-profile-change-plan-dialog[_ngcontent-%COMP%] .inf-h1[_ngcontent-%COMP%]{text-align:center;line-height:36px}@media (max-width: 860px){.inf-profile-change-plan-dialog[_ngcontent-%COMP%] .inf-h1[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:5px;font-size:24px;text-align:left}}@media (max-width: 620px){.inf-profile-change-plan-dialog[_ngcontent-%COMP%] .inf-paragraph[_ngcontent-%COMP%]{margin-bottom:15px}}.inf-profile-change-plan-dialog[_ngcontent-%COMP%] .inf-auth__wrap-close[_ngcontent-%COMP%]{top:-12px;right:-12px}@media (max-width: 860px){.inf-profile-change-plan-dialog[_ngcontent-%COMP%] .inf-auth__wrap-close[_ngcontent-%COMP%]{display:none}}@media (max-width: 620px){ .cdk-overlay-pane.inf-profile-change-plan-dialog{max-height:85dvh!important}} .inf-profile-change-plan-dialog .mat-mdc-dialog-container{position:relative} .inf-profile-change-plan-dialog .mat-mdc-dialog-container:before{content:"";position:absolute;z-index:10;width:266px;height:148px;top:-85px;left:50%;transform:translate(-50%);background:url(/images/buy-premium-dialog.png) no-repeat;background-size:contain}@media (max-width: 860px){ .inf-profile-change-plan-dialog .mat-mdc-dialog-container:before{width:198px;
1height:88px;top:-35px;left:0;transform:translate(0);background:url(/images/buy-premium-dialog-sm.png) no-repeat;background-size:contain}} .inf-profile-change-plan-dialog .mat-mdc-dialog-content{padding:24px}@media (max-width: 620px){ .inf-profile-change-plan-dialog .mat-mdc-dialog-content{padding:0 16px;margin-bottom:4px}} .inf-profile-change-plan-dialog .mat-mdc-dialog-surface{background:radial-gradient(circle at right bottom,#30217f,#0b1429 50%),url(/images/main-bg.png) no-repeat;background-blend-mode:lighten} .inf-profile-change-plan-dialog--premium .mat-mdc-dialog-surface{box-shadow:0 0 30px 2px var(--primary)}mat-dialog-content[_ngcontent-%COMP%]{overflow:visible}@media (max-width: 860px){mat-dialog-content[_ngcontent-%COMP%]{overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}mat-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}} .hide-title-on-desktop *[mat-dialog-title]{display:none}@media (max-width: 860px){ .hide-title-on-desktop *[mat-dialog-title]{display:block}} .hide-title-on-desktop *[mat-dialog-title]>h1{margin-top:38px!important;margin-bottom:4px!important}'],changeDetection:0})};export{P as a,X as b};
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.