PageSourceSearch

https://vedius-brasil.firebaseapp.com/chunk-CCEIHTTA.js

js vedius-brasil.firebaseapp.com collected 2026-10-03 14:09:13 UTC 17,805 bytes, 2 lines download raw bytes

1import{a as pe,b as ce,c as n,d as le,e as de,f as ue,g as Se}from"./chunk-BRARETZ3.js";import{a as ie,c as ne,d as se,j as re,l as oe,m as ae}from"./chunk-LE44DDZT.js";import{a as Z}from"./chunk-5HI72EE4.js";import{a as te}from"./chunk-DMB4Z5T6.js";import{c as ee}from"./chunk-BQSYM23H.js";import"./chunk-UJLMMLUM.js";import{a as $}from"./chunk-5CRQFKDA.js";import"./chunk-7AAUCWQR.js";import"./chunk-4TJQHVPV.js";import"./chunk-XGHI7KS5.js";import"./chunk-Z36TISWV.js";import"./chunk-SRUBCUSW.js";import"./chunk-52TU3IL6.js";import"./chunk-TDIWFVPA.js";import"./chunk-MN2F2UI2.js";import"./chunk-LJV7ZYHU.js";import"./chunk-25QDB3SE.js";import"./chunk-KJ3PV2LN.js";import"./chunk-35M7AFQZ.js";import"./chunk-HCVRNL4G.js";import"./chunk-INMDLS22.js";import"./chunk-AJZMXFMA.js";import"./chunk-YE7HTOLI.js";import"./chunk-NZ4I6U2Z.js";import"./chunk-23N7CA4O.js";import"./chunk-YI7ZQONV.js";import"./chunk-54IZQ3MU.js";import"./chunk-QUO3WGUK.js";import"./chunk-GZLC4DDF.js";import"./chunk-74YMZKOK.js";import"./chunk-6IH4M65S.js";import"./chunk-NGAT3XSV.js";import{a as J}from"./chunk-6DMACB4X.js";import{a as Q}from"./chunk-SXLHBEO2.js";import"./chunk-IUPWKUGB.js";import"./chunk-C5J3HTKX.js";import"./chunk-56FUNJ2L.js";import"./chunk-KORPXNVS.js";import"./chunk-W4BNGQYG.js";import"./chunk-OSVOK6WL.js";import"./chunk-WXXKR7LF.js";import"./chunk-R2NO6V5K.js";import"./chunk-FV2Q4OA6.js";import"./chunk-QPZCEWML.js";import"./chunk-L44SDTPC.js";import"./chunk-CLQP3QCS.js";import{a as G}from"./chunk-TWVMK4TV.js";import"./chunk-EGNI2XJ3.js";import"./chunk-A3N634GV.js";import"./chunk-F457L6VT.js";import"./chunk-6BC3ZOBR.js";import{K as A,O as h}from"./chunk-4U4PLY73.js";import"./chunk-RQ4F2COW.js";import"./chunk-7RWCIHFI.js";import"./chunk-GP7G4HVV.js";import"./chunk-X5ROTD3U.js";import{a as q}from"./chunk-V4NS6LW3.js";import"./chunk-VFTYDXHH.js";import"./chunk-LJSWAOQY.js";import"./chunk-RFPVTC6I.js";import"./chunk-SPFBMSSO.js";import"./chunk-TZOYHBJT.js";import"./chunk-34KEMFZC.js";import{j as W,k as K}from"./chunk-4BUGZAA4.js";import"./chunk-3TCRHIAB.js";import{p as j}from"./chunk-76JNFTGE.js";import{Ua as F,g as U}from"./chunk-C7VFP4N4.js";import{c as Y,d as X}from"./chunk-CYMQMRSQ.js";import"./chunk-SAPP7HDL.js";import"./chunk-YJOTM47P.js";import{g as H}from"./chunk-2PJAPLDY.js";import"./chunk-UQ5LDOFJ.js";import"./chunk-C2CO7BOS.js";import"./chunk-UVTXHEDZ.js";import{f as B,i as k,k as D}from"./chunk-3APTCJCW.js";import"./chunk-EMVJM2S7.js";import"./chunk-KDTKTPR2.js";import"./chunk-TPWGF6XO.js";import{Cb as o,Cc as P,Dc as N,Ia as g,Ib as u,Ic as _,Ja as b,Jc as S,Tb as z,Wc as v,Xc as f,Yb as E,Yc as w,Zc as T,lc as p,pd as C,qd as y,sd as O,xc as c,yc as l,zc as R}from"./chunk-MH4BPXDL.js";import{a as V,b as L,l as M}from"./chunk-CU44V7JF.js";function Ce(s,a){s&1&&P(0)}function ye(s,a){s&1&&P(0)}function Te(s,a){s&1&&P(0)}function xe(s,a){s&1&&P(0)}function Ee(s,a){if(s&1&&R(0,"app-subscription-step-header",11),s&2){let t=S();p("options",t.subscriptionStepHeaderOption)}}function Pe(s,a){if(s&1&&(c(0,"vedius-text",14),f(1),C(2,"translate"),l()),s&2){let t=S(2);o(),T(" ",y(2,1,t.TranslationKeys.AssistantSubscriptionStepCurrentPlanTitle)," ")}}function ve(s,a){if(s&1&&(c(0,"vedius-text",14),f(1),C(2,"translate"),l()),s&2){let t=S(2);o(),T(" ",y(2,1,t.TranslationKeys.AssistantSubscriptionSelectPlanTitle)," ")}}function Oe(s,a){s&1&&(c(0,"vedius-text",14),f(1),C(2,"translate"),l()),s&2&&(o(),T(" ",y(2,1,"CUSTOMER_SUBSCRIPTION.CHOOSE_YOUR_PAYMENT_METHOD")," "))}function Ae(s,a){s&1&&(c(0,"vedius-text",14),f(1),C(2,"translate"),l()),s&2&&(o(),T(" ",y(2,1,"CUSTOMER_SUBSCRIPTION.SUBSCRIPTION_OVERVIEW")," "))}function Ie(s,a){if(s&1&&(c(0,"div",12),E(1,Pe,3,3,"vedius-text",13)(2,ve,3,3,"vedius-text",13)(3,Oe,3,3,"vedius-text",13)(4,Ae,3,3,"vedius-text",13),l()),s&2){let t=S();o(),p("ngIf",t.currentStep===t.AssistantSubscriptionStepType.CHOOSE_PLAN),o(),p("ngIf",t.currentStep===t.AssistantSubscriptionStepType.SELECT_PLAN),o(),p("ngIf",t.currentStep===t.AssistantSubscriptionStepType.SELECT_PAYMENT_METHOD),o(),p("ngIf",t.currentStep===t.AssistantSubscriptionStepType.SUBSCRIPTION_OVERVIEW)}}function Me(s,a){if(s&1){let t=N();c(0,"app-choose-assistant-plan-subscription",15),_("planTierSelected",function(i){g(t);let r=S();return b(r.onPlanTierSelected(i))}),l(),c(1,"app-subscription-assistant-available-plans",16),_("plansSelected",function(i){g(t);let r=S();return b(r.onPlansSelected(i))}),l(),c(2,"app-subscription-storage-payment-methods-options",17),_("paymentMethodSelected",function(i){g(t);let r=S();return b(r.onPaymentMethodSelected(i))}),l(),c(3,"app-subscription-assistant-overview",18),_("onChangeCardInfo",function(i){g(t);let r=S();return b(r.onOverviewChangeCardInfo(i))}),l()}if(s&2){let t=S();p("hidden",t.currentStep!==t.AssistantSubscriptionStepType.CHOOSE_PLAN)("initialSelectedPlanTier",t.userPlanTierSelected),o(),p("hidden",t.currentStep!==t.AssistantSubscriptionStepType.SELECT_PLAN)("planTierSelected",t.userPlanTierSelected),o(),p("hidden",t.currentStep!==t.AssistantSubscriptionStepType.SELECT_PAYMENT_METHOD)("selectedPaymentMethod",t.paymentMethodSelected)("initialCardInfo",t.initialCardInfo)("paymentMethodCodes",t.userAvailablePaymentMethodCodes),o(),p("hidden",t.currentStep!==t.AssistantSubscriptionStepType.SUBSCRIPTION_OVERVIEW)("isSmallScreen",t.isSmallScreen)("option",t.subscriptionOverviewOption)}}function Re(s,a){if(s&1){let t=N();c(0,"div",19)(1,"vedius-button",20),_("onClick",function(){g(t);let i=S();return b(i.onBack())}),f(2),C(3,"translate"),l()(),c(4,"div",21)(5,"vedius-button",22),_("onClick",function(){g(t);let i=S();return b(i.onNext())}),f(6),C(7,"translate"),l(),c(8,"vedius-button",23),_("click",function(){g(t);let i=S();return b(i.processSubscription())}),f(9),C(10,"translate"),l()()}if(s&2){let t=S();o(2),w(y(3,6,"BUTTONS.BACK")),o(3),p("hidden",t.currentStep===t.AssistantSubscriptionStepType.SUBSCRIPTION_OVERVIEW)("disabled",t.isActionButtonDisabledBasedOnState()),o(),T(" ",y(7,8,"BUTTONS.NEXT"),""),o(2),p("hidden",t.currentStep!==t.AssistantSubscriptionStepType.SUBSCRIPTION_OVERVIEW),o(),T(" ",y(10,10,"BUTTONS.CONFIRM_SUBSCRIPTION"),"")}}var St=(()=>{let a=class a{handleKeyUp(e){e.key===G&&!this.isActionButtonDisabledBasedOnState()&&this.onNext()}constructor(e,i,r,d,m,x,I,me,he,_e,ge,be,fe){this.sidebarService=e,this.evolutionProgressTrackerService=i,this.userVediusContext=r,this.breakpointObserver=d,this.translationService=m,this.assistantSubscriptionSuccessRouteStrategy=x,this.assistantSubscriptionErrorFeedbackRouteStrategy=I,this.pixPaymentAssistantDetailsRouteStrategy=me,this.bankslipPaymentAssistantDetailsRouteStrategy=he,this.location=_e,this.assistantSubscriptionRouteStrategy=ge,this.route=be,this.TranslationKeys=U,this.AssistantSubscriptionStepType=n,this.currentStep=n.CHOOSE_PLAN,this.userPlansSelected=[],this.userAvailablePaymentMethodCodes=[],this.isLoading=!1,this.translateLoaded=!1,this.paymentMethodStepMapping={[h.CREDIT_CARD]:[n.CHOOSE_PLAN,n.SELECT_PLAN,n.SELECT_PAYMENT_METHOD,n.SUBSCRIPTION_OVERVIEW],[h.BANK_SLIP]:[n.CHOOSE_PLAN,n.SELECT_PLAN,n.SELECT_PAYMENT_METHOD,n.SUBSCRIPTION_OVERVIEW],[h.PIX]:[n.CHOOSE_PLAN,n.SELECT_PLAN,n.SELECT_PAYMENT_METHOD,n.SUBSCRIPTION_OVERVIEW]},this.buttonStateChecks={[n.CHOOSE_PLAN]:()=>!this.userPlanTierSelected,[n.SELECT_PLAN]:()=>this.userPlansSelected.length===0,[n.SELECT_PAYMENT_METHOD]:()=>!this.paymentMethodSelected,[n.SUBSCRIPTION_OVERVIEW]:()=>!1},this.stepValidityMapping={[n.CHOOSE_PLAN]:()=>!!this.userPlanTierSelected,[n.SELECT_PLAN]:()=>this.userPlansSelected.length>0,[n.SELECT_PAYMENT_METHOD]:()=>!!this.paymentMethodSelected,[n.SUBSCRIPTION_OVERVIEW]:()=>this.currentStep===n.SUBSCRIPTION_OVERVIEW},this.percentageStepMapping={[h.CREDIT_CARD]:{[n.CHOOSE_PLAN]:25,[n.SELECT_PLAN]:25,[n.SELECT_PAYMENT_METHOD]:25,[n.SUBSCRIPTION_OVERVIEW]:25},[h.PIX]:{[n.CHOOSE_PLAN]:25,[n.SELECT_PLAN]:25,[n.SELECT_PAYMENT_METHOD]:25,[n.SUBSCRIPTION_OVERVIEW]:25},[h.BANK_SLIP]:{[n.CHOOSE_PLAN]:25,[n.SELECT_PLAN]:25,[n.SELECT_PAYMENT_METHOD]:25,[n.SUBSCRIPTION_OVERVIEW]:25}},this.isSmallScreen=!1,e.hideSidebar(),i.invisible(),this.customerSubscriptionService=fe.create()}ngAfterViewInit(){setTimeout(()=>{this.evolutionProgressTrackerService.invisible()},500)}ngOnInit(){this.applyPreselectedPlanTierFromRoute(),this.checkPaymentMethodSelected(),this.updateTimelineProgress(),this.listenScreenSize(),this.translationService.loaded().then(()=>{this.translateLoaded=!0})}ngOnDestroy(){this.sidebarService.showSidebar(),this.evolutionProgressTrackerService.visible()}listenScreenSize(){this.breakpointObserver.observe([F]).subscribe(e=>{this.isSmallScreen=e.matches})}get userVedius(){return this.userVediusContext.current}get paymentMethodCodeSelectedOrDefault(){return this.paymentMethodSelected?.paymentMethodCode||h.CREDIT_CARD}get userPlanSelected(){return this.userPlansSelected.find(e=>e.paymentMethodCode===this.paymentMethodSelected?.paymentMethodCode)}
1get fromErrorRoute(){return this.route.snapshot.queryParams.fromError==="true"}onOverviewChangeCardInfo(e){this.initialCardInfo=e}onPlanTierSelected(e){this.userPlanTierSelected=e,this.updateTimelineProgress()}onPlansSelected(e){this.userPlansSelected=e,this.userPlansSelected?.length&&(this.userAvailablePaymentMethodCodes=this.userPlansSelected?.map(i=>i.paymentMethodCode)),this.updateTimelineProgress()}onPaymentMethodSelected(e){if(this.paymentMethodSelected=e?.paymentMethodSelected,this.paymentMethodSelected){let i=this.userPlansSelected.find(r=>r.paymentMethodCode===this.paymentMethodSelected?.paymentMethodCode);this.createSubscriptionOverviewOption(i,this.paymentMethodSelected),e?.cardRegisteredAction===se.FromModal&&this.onNext()}else this.subscriptionOverviewOption=void 0;this.updateTimelineProgress()}checkSubscriptionOverviewOption(){if(this.paymentMethodSelected){let e=this.userPlansSelected.find(i=>i.paymentMethodCode===this.paymentMethodSelected?.paymentMethodCode);this.createSubscriptionOverviewOption(e,this.paymentMethodSelected)}}onBack(){let e=this.paymentMethodStepMapping[this.paymentMethodCodeSelectedOrDefault],i=e.indexOf(this.currentStep);i>0?this.currentStep=e[i-1]:i===0&&this.currentStep===n.CHOOSE_PLAN&&(this.fromErrorRoute?this.assistantSubscriptionRouteStrategy.redirect():this.location.back()),this.updateTimelineProgress()}onNext(){this.checkSubscriptionOverviewOption(),this.goToNextStep(),this.updateTimelineProgress()}isActionButtonDisabledBasedOnState(){let e=this.buttonStateChecks[this.currentStep];return e?e():!0}processSubscription(){let{paymentMethodCodeSelectedOrDefault:e}=this;e===h.CREDIT_CARD?this.processCreditCardSubscription():this.processPixOrBankSlipSubscription()}applyPreselectedPlanTierFromRoute(){let e=te(this.route);e&&(this.userPlanTierSelected=e)}goToNextStep(){let e=this.paymentMethodStepMapping[this.paymentMethodCodeSelectedOrDefault],i=e.indexOf(this.currentStep);i<e.length-1&&(this.currentStep=e[i+1])}checkPaymentMethodSelected(){if(this.userVedius.subscriptions?.vediusAssistantDetails){let i=this.userVedius.subscriptions?.getSelectedPaymentMethodCode(A.VEDIUS_ASSISTANT),r=i===h.CREDIT_CARD,d={paymentMethodCode:i};if(r){let m=this.userVedius.subscriptions?.getActivePaymentProfileInfo(A.VEDIUS_ASSISTANT);if(m){let x=ne.fromPaymentProfileSubscription(m);d=L(V({},d),{cardInfo:x}),this.initialCardInfo=x}}this.initialPaymentMethodSelected=d,this.paymentMethodSelected=d}}processPixOrBankSlipSubscription(){return M(this,null,function*(){let e=this.userPlanSelected;if(!e)return;let i=e.key,r=e.paymentMethodCode;this.isLoading=!0;try{if((yield this.customerSubscriptionService.processCustomerSubscription({planSubscriptionKey:i,paymentMethodCode:r,customerPlanSubscriptionType:A.VEDIUS_ASSISTANT}))?.error){this.assistantSubscriptionErrorFeedbackRouteStrategy.redirect();return}r===h.PIX&&this.pixPaymentAssistantDetailsRouteStrategy.redirect(),r===h.BANK_SLIP&&this.bankslipPaymentAssistantDetailsRouteStrategy.redirect()}catch(d){console.error(d),this.assistantSubscriptionErrorFeedbackRouteStrategy.redirect()}finally{this.isLoading=!1}})}processCreditCardSubscription(){return M(this,null,function*(){let e=this.userPlanSelected;if(!e)return;let i=e.key,r=e.paymentMethodCode,d=this.paymentMethodSelected?.cardInfo;this.isLoading=!0;try{let m=yield this.customerSubscriptionService.processCustomerSubscription({planSubscriptionKey:i,paymentMethodCode:r,cardInfo:d,customerPlanSubscriptionType:A.VEDIUS_ASSISTANT});if(m?.error||!m?.isAccessGranted){this.assistantSubscriptionErrorFeedbackRouteStrategy.redirect();return}this.assistantSubscriptionSuccessRouteStrategy.redirect()}catch(m){console.error(m),this.assistantSubscriptionErrorFeedbackRouteStrategy.redirect()}finally{this.isLoading=!1}})}createSubscriptionOverviewOption(e,i){this.subscriptionOverviewOption={planSelected:e,paymentMethodSelected:i,availablePlans:this.userPlansSelected}}updateTimelineProgress(){this.subscriptionStepHeaderOption={currentSubscriptionStep:this.currentStep,currentPaymentMethodCode:this.paymentMethodSelected?.paymentMethodCode,paymentMethodStepMapping:this.paymentMethodStepMapping,stepValidityMapping:this.stepValidityMapping,percentageStepMapping:this.percentageStepMapping}}};a.\u0275fac=function(i){return new(i||a)(u(Z),u($),u(J),u(j),u(q),u(de),u(ue),u(oe),u(Se),u(B),u(ee),u(H),u(ie))},a.\u0275cmp=z({type:a,selectors:[["app-regularize-assistant-subscription"]],hostBindings:function(i,r){i&1&&_("keyup",function(m){return r.handleKeyUp(m)})},decls:18,vars:5,consts:[["HeaderPage",""],["stepHeaderLabel",""],["stepContent",""],["FooterActions",""],[1,"regularize-assistant-subscription-page"],[1,"container"],[1,"subscription-header-content"],[4,"ngTemplateOutlet"],[1,"regularize-subscription-body-content"],[1,"subcription-footer-content"],[3,"active"],[3,"options"],[1,"text-content"],["class","title","variant","display","size","micro",4,"ngIf"],["variant","display","size","micro",1,"title"],[3,"planTierSelected","hidden","initialSelectedPlanTier"],[3,"plansSelected","hidden","planTierSelected"],[3,"paymentMethodSelected","hidden","selectedPaymentMethod","initialCardInfo","paymentMethodCodes"],[3,"onChangeCardInfo","hidden","isSmallScreen","option"],[1,"content-1"],["variant","tertiary",3,"onClick"],[1,"content-2"],["variant","primary",3,"onClick","hidden","disabled"],["variant","primary",1,"confirm-subscription-button",3,"click","hidden"]],template:function(i,r){if(i&1&&(c(0,"aside",4)(1,"div",5)(2,"header",6),E(3,Ce,1,0,"ng-container",7),l(),c(4,"div",8),E(5,ye,1,0,"ng-container",7)(6,Te,1,0,"ng-container",7),l(),c(7,"div",9),E(8,xe,1,0,"ng-container",7),l()()(),E(9,Ee,1,1,"ng-template",null,0,O)(11,Ie,5,4,"ng-template",null,1,O)(13,Me,4,11,"ng-template",null,2,O)(15,Re,11,12,"ng-template",null,3,O),R(17,"vedius-page-loading",10)),i&2){let d=v(10),m=v(12),x=v(14),I=v(16);o(3),p("ngTemplateOutlet",d),o(2),p("ngTemplateOutlet",m),o(),p("ngTemplateOutlet",x),o(2),p("ngTemplateOutlet",I),o(9),p("active",r.isLoading)}},dependencies:[D,re,le,W,K,Q,X,Y,ce,ae,pe,k],styles:[`.disable-text-copies{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.enable-text-copies{-webkit-user-select:text!important;-moz-user-select:text!important;
1-ms-user-select:text!important;user-select:text!important}.icon-circle{width:40px;height:40px;padding:8px;background:#f5f6f8;border-radius:100px;justify-content:center;align-items:center;gap:10px;display:inline-flex;box-sizing:border-box}.regularize-assistant-subscription-page{padding:40px 0;flex-direction:row;box-sizing:border-box;display:flex;place-content:center;min-height:100vh;background-color:#fff}.regularize-assistant-subscription-page .container{width:615px;display:flex;flex-direction:column}.regularize-assistant-subscription-page .container .subscription-header-content{width:100%}.regularize-assistant-subscription-page .container .regularize-subscription-body-content{display:flex;flex-direction:column;gap:48px}.regularize-assistant-subscription-page .container .regularize-subscription-body-content .text-content .select-plan-container{display:flex;flex-direction:column;gap:16px}.regularize-assistant-subscription-page .container .regularize-subscription-body-content .text-content .select-plan-container .title-info{color:#6d7a8e}.regularize-assistant-subscription-page .container .regularize-subscription-body-content .text-content .select-plan-container .title-info .bold{font-weight:700}.regularize-assistant-subscription-page .container .regularize-subscription-body-content .text-content .title{color:#192840}.regularize-assistant-subscription-page .container .regularize-subscription-body-content .text-content .sub-title{color:#425168}.regularize-assistant-subscription-page .container .subcription-footer-content{width:100%;margin-top:48px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.regularize-assistant-subscription-page .container .subcription-footer-content .content-1{display:flex;align-items:flex-start;justify-content:flex-start;flex:1}.regularize-assistant-subscription-page .container .subcription-footer-content .content-2{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex:1}@media screen and (max-width: 960px){.regularize-assistant-subscription-page{padding:32px 24px 24px}.regularize-assistant-subscription-page .container{width:100%}.regularize-assistant-subscription-page .container .regularize-subscription-body-content{gap:40px}.regularize-assistant-subscription-page .container .subcription-footer-content{gap:8px;margin-top:40px}.regularize-assistant-subscription-page .container .subcription-footer-content .confirm-subscription-button{min-width:200
1px}}
2`],encapsulation:2});let s=a;return s})();export{St as RegularizeAssistantSubscriptionComponent};

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.