PageSourceSearch

https://myaccount.chelseapiers.com/js/membership-payment.43a94d4f.js

js chelseapiers.com collected 2026-10-02 04:31:29 UTC 41,390 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkwebapp_standard"]=self["webpackChunkwebapp_standard"]||[]).push([[4646],{82016:function(e,t,r){r.d(t,{A:function(){return q}});var a=r(20641),i=r(90033),n=r(53751);const l={"data-cy":"installament-plan-component"},s={class:"flex items-center mt-2 pr-2",id:"faq-0"},d={class:"flex-grow"},o={class:"flex-1 flex"},c={class:"flex flex-1 flex-col justify-between"},p={key:0,class:"flex justify-center pt-2"},u={type:"button",class:"font-medium text-primary-600 hover:text-primary-500","data-cy":"update-button"};function m(e,t,r,m,y,h){const C=(0,a.g2)("RadioGroupLabel"),f=(0,a.g2)("RadioGroupDescription"),v=(0,a.g2)("CheckCircleIcon"),b=(0,a.g2)("RadioGroupOption"),g=(0,a.g2)("RadioGroup");return(0,a.uX)(),(0,a.CE)("div",l,[(0,a.bo)((0,a.Lk)("dd",s,[(0,a.Lk)("div",d,[(0,a.bF)(g,{modelValue:e.selectedPaymentOption,"onUpdate:modelValue":t[0]||(t[0]=t=>e.selectedPaymentOption=t),class:"mt-2","data-cy":"payment-installment-plans"},{default:(0,a.k6)((()=>[(0,a.bF)(C,{class:"text-base font-medium text-gray-900"},{default:(0,a.k6)((()=>[(0,a.eW)((0,i.v_)(e.$t("payment.paymentOptionsLabel")),1)])),_:1}),(0,a.Lk)("section",{class:(0,i.C4)(["grid grid-cols-1 gap-y-6 sm:grid-cols-2 sm:gap-x-4 bg-white px-4 py-6 shadow sm:rounded-lg sm:p-6",[e.disabled?"opacity-50 pointer-events-none":""]])},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.paymentOptions,(t=>((0,a.uX)(),(0,a.Wv)(b,{disabled:e.disabled,as:"template",key:t.externalId,value:t,"data-cy":"payment-installment-plans-"+t.externalId},{default:(0,a.k6)((({checked:r,active:n})=>[(0,a.Lk)("div",{class:(0,i.C4)([r?"border-transparent":"border-gray-300",r?"ring-2 ring-indigo-500":"","relative bg-white border rounded-lg shadow-sm p-4 flex cursor-pointer focus:outline-none"])},[(0,a.Lk)("div",o,[(0,a.Lk)("div",c,[(0,a.bF)(C,{as:"span",class:"block text-sm font-medium text-gray-900","data-cy":"payment-installment-plans-name"},{default:(0,a.k6)((()=>[(0,a.eW)((0,i.v_)(t.name),1)])),_:2},1024),"FULL"!==t.externalId?((0,a.uX)(),(0,a.Wv)(f,{key:0,as:"span",class:"mt-2 text-sm font-medium text-gray-900","data-cy":"payment-installment-plans-initial-amount"},{default:(0,a.k6)((()=>[(0,a.eW)((0,i.v_)(e.$t("payment.dueNow"))+": "+(0,i.v_)(e.formatAmountToLocale(t.amountToPay||t.initialAmount||0,e.currency)),1)])),_:2},1024)):(0,a.Q3)("",!0)])]),(0,a.bF)(v,{class:(0,i.C4)([r?"":"invisible","h-5 w-5 text-indigo-600"]),"aria-hidden":"true","data-cy":"payment-installment-plans-checked"},null,8,["class"]),(0,a.Lk)("div",{class:(0,i.C4)([n?"border":"border-2",r?"border-indigo-500":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2)],2)])),_:2},1032,["disabled","value","data-cy"])))),128))],2)])),_:1},8,["modelValue"])])],512),[[n.aG,!e.hidden]]),e.updating?((0,a.uX)(),(0,a.CE)("div",p,[(0,a.Lk)("button",u,(0,i.v_)(e.$t("general.loading")),1)])):(0,a.Q3)("",!0)])}var y=r(23772),h=r(15215),C=r(37884),f=r(14453),v=r(50953),b=r(46413),g=r(7838),S=r(41417),P=r(98869),x=r(23605);let A=Symbol("LabelContext");function k(){let e=(0,a.WQ)(A,null);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,k),e}return e}function I({slot:e={},name:t="Label",props:r={}}={}){let i=(0,v.KR)([]);function n(e){return i.value.push(e),()=>{let t=i.value.indexOf(e);-1!==t&&i.value.splice(t,1)}}return(0,a.Gt)(A,{register:n,slot:e,name:t,props:r}),(0,a.EW)((()=>i.value.length>0?i.value.join(" "):void 0))}let E=(0,a.pM)({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-label-${(0,P.B)()}`}},setup(e,{slots:t,attrs:r}){let i=k();return(0,a.sV)((()=>(0,a.hi)(i.register(e.id)))),()=>{let{name:a="Label",slot:n={},props:l={}}=i,{id:s,passive:d,...o}=e,c={...Object.entries(l).reduce(((e,[t,r])=>Object.assign(e,{[t]:(0,v.R1)(r)})),{}),id:s};return d&&(delete c.onClick,delete c.htmlFor,delete o.onClick),(0,x.XX)({ourProps:c,theirProps:o,slot:n,attrs:r,slots:t,name:a})}}});var F=r(61567),O=r(8663),w=r(60805);function M(e={},t=null,r=[]){for(let[a,i]of Object.entries(e))L(r,D(t,a),i);return r}function D(e,t){return e?e+"["+t+"]":t}function L(e,t,r){if(Array.isArray(r))for(let[a,i]of r.entries())L(e,D(t,a.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):M(r,t,e)}function T(e){var t,r;let a=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(a){for(let t of a.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=a.requestSubmit)||r.call(a)}}var _=r(50562);function R(e,t,r){let i=(0,v.KR)(null==r?void 0:r.value),n=(0,a.EW)((()=>void 0!==e.value));return[(0,a.EW)((()=>n.value?e.value:i.value)),function(e){return n.value||(i.value=e),null==t?void 0:t(e)}]}function N(e,t){return e===t}let $=Symbol("RadioGroupContext");function X(e){let t=(0,a.WQ)($,null);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,X),t}return t}let W=(0,a.pM)({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>N},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:()=>`headlessui-radiogroup-${(0,P.B)()}`}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:i,expose:n}){let l=(0,v.KR)(null),s=(0,v.KR)([]),d=I({name:"RadioGroupLabel"}),o=(0,F.r)({name:"RadioGroupDescription"});n({el:l,$el:l});let[c,p]=R((0,a.EW)((()=>e.modelValue)),(e=>t("update:modelValue",e)),(0,a.EW)((()=>e.defaultValue))),u={options:s,value:c,disabled:(0,a.EW)((()=>e.disabled)),firstOption:(0,a.EW)((()=>s.value.find((e=>!e.propsRef.disabled)))),containsCheckedOption:(0,a.EW)((()=>s.value.some((t=>u.compare((0,v.ux)(t.propsRef.value),(0,v.ux)(e.modelValue)))))),compare(t,r){if("string"==typeof e.by){let a=e.by;return(null==t?void 0:t[a])===(null==r?void 0:r[a])}return e.by(t,r)},change(t){var r;if(e.disabled||u.compare((0,v.ux)(c.value),(0,v.ux)(t)))return!1;let a=null==(r=s.value.find((e=>u.compare((0,v.ux)(e.propsRef.value),(0,v.ux)(t)))))?void 0:r.propsRef;return(null==a||!a.disabled)&&(p(t),!0)},registerOption(e){s.value.push(e),s.value=(0,S.wl)(s.value,(e=>e.element))},unregisterOption(e){let t=s.value.findIndex((t=>t.id===e));-1!==t&&s.value.splice(t,1)}};function m(e){if(!l.value||!l.value.contains(e.target))return;let t=s.value.filter((e=>!1===e.propsRef.disabled)).map((e=>e.element));switch(e.key){case g.D.Enter:T(e.currentTarget);break;case g.D.ArrowLeft:case g.D.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,S.CU)(t,S.BD.Previous|S.BD.WrapAround)===S.Me.Success){let e=s.value.find((e=>{var t;return e.element===(null==(t=(0,_.T)(l))?void 0:t.activeElement)}));e&&u.change(e.propsRef.value)}break;case g.D.ArrowRight:case g.D.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,S.CU)(t,S.BD.Next|S.BD.WrapAround)===S.Me.Success){let e=s.value.find((e=>{var t;return e.element===(null==(t=(0,_.T)(e.element))?void 0:t.activeElement)}));e&&u.change(e.propsRef.value)}break;case g.D.Space:{e.preventDefault(),e.stopPropagation();let t=s.value.find((e=>{var t;return e.element===(null==(t=(0,_.T)(e.element))?void 0:t.activeElement)}));t&&u.change(t.propsRef.value)}break}}(0,a.Gt)($,u),(0,O.i)({container:(0,a.EW)((()=>
1(0,b.t)(l))),accept(e){return"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute("role","none")}});let y=(0,a.EW)((()=>{var e;return null==(e=(0,b.t)(l))?void 0:e.closest("form")}));return(0,a.sV)((()=>{(0,a.wB)([y],(()=>{if(y.value&&void 0!==e.defaultValue)return y.value.addEventListener("reset",t),()=>{var e;null==(e=y.value)||e.removeEventListener("reset",t)};function t(){u.change(e.defaultValue)}}),{immediate:!0})})),()=>{let{disabled:t,name:n,id:s,form:p,...u}=e,y={ref:l,id:s,role:"radiogroup","aria-labelledby":d.value,"aria-describedby":o.value,onKeydown:m};return(0,a.h)(a.FK,[...null!=n&&null!=c.value?M({[n]:c.value}).map((([e,t])=>(0,a.h)(w.j,(0,x.oE)({features:w.O.Hidden,key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:p,name:e,value:t})))):[],(0,x.XX)({ourProps:y,theirProps:{...r,...(0,x.cJ)(u,["modelValue","defaultValue","by"])},slot:{},attrs:r,slots:i,name:"RadioGroup"})])}}});var z=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(z||{});let j=(0,a.pM)({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-radiogroup-option-${(0,P.B)()}`}},setup(e,{attrs:t,slots:r,expose:i}){let n=X("RadioGroupOption"),l=I({name:"RadioGroupLabel"}),s=(0,F.r)({name:"RadioGroupDescription"}),d=(0,v.KR)(null),o=(0,a.EW)((()=>({value:e.value,disabled:e.disabled}))),c=(0,v.KR)(1);i({el:d,$el:d});let p=(0,a.EW)((()=>(0,b.t)(d)));(0,a.sV)((()=>n.registerOption({id:e.id,element:p,propsRef:o}))),(0,a.hi)((()=>n.unregisterOption(e.id)));let u=(0,a.EW)((()=>{var t;return(null==(t=n.firstOption.value)?void 0:t.id)===e.id})),m=(0,a.EW)((()=>n.disabled.value||e.disabled)),y=(0,a.EW)((()=>n.compare((0,v.ux)(n.value.value),(0,v.ux)(e.value)))),h=(0,a.EW)((()=>m.value?-1:y.value||!n.containsCheckedOption.value&&u.value?0:-1));function C(){var t;n.change(e.value)&&(c.value|=2,null==(t=(0,b.t)(d))||t.focus())}function f(){c.value|=2}function g(){c.value&=-3}return()=>{let{id:a,value:i,disabled:n,...o}=e,p={checked:y.value,disabled:m.value,active:Boolean(2&c.value)},u={id:a,ref:d,role:"radio","aria-checked":y.value?"true":"false","aria-labelledby":l.value,"aria-describedby":s.value,"aria-disabled":!!m.value||void 0,tabIndex:h.value,onClick:m.value?void 0:C,onFocus:m.value?void 0:f,onBlur:m.value?void 0:g};return(0,x.XX)({ourProps:u,theirProps:o,slot:p,attrs:t,slots:r,name:"RadioGroupOption"})}}}),V=E,G=F.V;var Q=r(39340),U=r(66753);let K=class extends C.lD{constructor(...e){super(...e),(0,y.A)(this,"currency",void 0),(0,y.A)(this,"paymentOptions",void 0),(0,y.A)(this,"defaultSelectedPaymentOption",void 0),(0,y.A)(this,"updating",void 0),(0,y.A)(this,"disabled",void 0),(0,y.A)(this,"hidden",void 0),(0,y.A)(this,"selectedPaymentOption",null)}onDefaultSelectedPaymentOptionChanged(){this.selectedPaymentOption=this.defaultSelectedPaymentOption}onSelectedPaymentOptionChanged(){this.$emit("selectedPaymentOptionChanged",this.selectedPaymentOption)}mounted(){}};(0,h.Cg)([(0,f.kv)({type:String,required:!0})],K.prototype,"currency",void 0),(0,h.Cg)([(0,f.kv)({type:Object,required:!0})],K.prototype,"paymentOptions",void 0),(0,h.Cg)([(0,f.kv)({type:Object,required:!0})],K.prototype,"defaultSelectedPaymentOption",void 0),(0,h.Cg)([(0,f.kv)({type:Boolean,required:!1,default:!1})],K.prototype,"updating",void 0),(0,h.Cg)([(0,f.kv)({type:Boolean,required:!1,default:!1})],K.prototype,"disabled",void 0),(0,h.Cg)([(0,f.kv)({type:Boolean,required:!1,default:!1})],K.prototype,"hidden",void 0),(0,h.Cg)([(0,f.ox)("defaultSelectedPaymentOption",{immediate:!0})],K.prototype,"onDefaultSelectedPaymentOptionChanged",null),(0,h.Cg)([(0,f.ox)("selectedPaymentOption",{immediate:!0})],K.prototype,"onSelectedPaymentOptionChanged",null),K=(0,h.Cg)([(0,C.JY)({emits:["selectedPaymentOptionChanged"],components:{RadioGroup:W,RadioGroupDescription:G,RadioGroupLabel:V,RadioGroupOption:j,CheckCircleIcon:Q.A,Spinner:U.A}})],K);var B=K,H=r(66262);const J=(0,H.A)(B,[["render",m]]);var q=J},47669:function(e,t,r){r.r(t),r.d(t,{default:function(){return We}});var a=r(20641),i=r(90033),n=r(53751);const l=e=>((0,a.Qi)("data-v-514da4fc"),e=e(),(0,a.jt)(),e),s={key:0,class:"text-center text-3xl font-bold my-8","data-cy":"summary-loading"},d={key:1,class:"text-center text-3xl text-red-500 font-bold my-8","data-cy":"summary-error"},o={key:2,class:"flex flex-wrap","data-cy":"summary-content"}
1,c={class:"w-full max-w-2xl mx-auto shadow-md rounded px-8 pb-2"},p={class:"text-center text-2xl font-bold pt-2 pb-4"},u={key:0,class:"flex flex-wrap w-full pt-5 justify-center","data-cy":"clipcard-summary-content"},m={class:"text-center text-2xl font-bold pt-2 pb-4"},y={class:"flex flex-wrap justify-center"},h={class:"pb-2 w-1/2 font-bold"},C={class:"pb-2 w-1/2","data-cy":"clipcard-detail-name"},f={class:"pb-2 w-1/2 font-bold"},v={class:"pb-2 w-1/2","data-cy":"clipcard-detail-sessions"},b={key:0,class:"pb-2 w-1/2 font-bold","data-cy":"clipcard-detail-valid-label"},g={key:1,class:"pb-2 w-1/2","data-cy":"clipcard-detail-valid"},S={class:"pb-2 w-1/2 font-bold"},P={class:"pb-2 w-1/2","data-cy":"clipcard-detail-price"},x={key:2,class:"pb-2 w-1/2 font-bold pl-5 ps-5 border-s-2 border-gray-500"},A={key:3,class:"pb-2 w-1/2","data-cy":"clipcard-detail-tax"},k={key:4,class:"max-w-xl mx-auto w-full pt-3 flex items-center justify-center"},I={class:"ml-2 flex checkbox-text","data-cy":"checkbox-clipcard-text"},E=l((()=>(0,a.Lk)("span",{class:"text-red-500","data-cy":"mandatory"},"*",-1))),F={class:"pt-4"},O={key:5,class:"w-full"},w={class:"w-full flex pt-1 justify-center text-red-500","data-cy":"error-buy-clipcard"},M={class:"w-full max-w-2xl mx-auto shadow-md rounded"},D={class:"mx-3 my-2"},L={key:0,class:"w-full max-w-2xl mx-auto shadow-md rounded","data-cy":"select-eft-payment"},T={class:"text-center text-2xl font-bold pt-2 pb-4"},_={key:0,class:"flex flex-wrap justify-center","data-cy":"select-multiple-payment-options"},R={class:"pt-2 mb-3"},N={class:"ml-2"},$={key:0,class:"mr-1 ml-1 font-bold text-highlight-500","data-cy":"preferred-method-cc"},X={class:"ml-2"},W={key:0,class:"mr-1 ml-1 font-bold text-highlight-500","data-cy":"preferred-method-bank"},z={class:"ml-2"},j={key:0,class:"mr-1 ml-1 font-bold text-highlight-500","data-cy":"preferred-method-bank-link"},V={class:"ml-2"},G={key:1,class:"flex flex-wrap justify-center pl-4 pr-4 pb-4","data-cy":"DD-guarantee-text"},Q={class:"w-full pt-2 pb-2"},U={class:"block text-gray-600 text-sm font-bold mb-2"},K={class:"flex w-full"},B={key:2,class:"flex flex-wrap justify-center mx-3","data-cy":"payment-method-cc"},H={key:3,class:"flex flex-wrap justify-center mx-3","data-cy":"payment-method-bank-plink"},J={key:4,class:"flex flex-wrap justify-center pl-4 pr-4 pb-4","data-cy":"payment-method-bank"},q={key:5,class:"text-center py-4 text-lg","data-cy":"payment-method-invoice"},Y={key:6,class:"flex flex-wrap justify-center pl-4 pr-4 pb-4","data-cy":"payment-method-unavailable"},Z={key:1},ee={class:"text-center text-2xl font-bold pt-2 pb-4"},te={class:"flex flex-wrap justify-center mx-3","data-cy":"select-upfront-payment"},re={key:0,class:"w-full","data-cy":"member-payment-error"},ae={class:"w-full flex pt-2 justify-center text-red-500","data-cy":"error-display-global-error"},ie={key:1,class:"w-full"},ne={key:2,class:"w-full"},le={key:3,class:"w-full pt-4 text-center","data-cy":"payment-payment-agreement-or"},se={class:"w-full max-w-2xl mx-auto flex p-5 justify-center"},de={key:4,class:"w-full flex justify-center mx-auto max-w-2xl p-3 bg-red-100 text-center","data-cy":"newSubscriptionWillOverridesExistingPA"},oe={class:"w-full flex p-5 justify-center"},ce=["disabled"],pe={key:0},ue=l((()=>(0,a.Lk)("span",null,null,-1)));function me(e,t,r,l,me,ye){const he=(0,a.g2)("spinner"),Ce=(0,a.g2)("contract-summary"),fe=(0,a.g2)("html-textarea"),ve=(0,a.g2)("InstallmentPlan"),be=(0,a.g2)("cof-and-payment-link-list"),ge=(0,a.g2)("direct-debit-list"),Se=(0,a.g2)("error-display"),Pe=(0,a.g2)("CreatePaymentAgreementButton");return(0,a.uX)(),(0,a.CE)(a.FK,null,[e.loadingSummary?((0,a.uX)(),(0,a.CE)("div",s,[(0,a.bF)(he,{text:e.$t("payment.loadingContract")},null,8,["text"])])):e.loadingSummaryError?((0,a.uX)(),(0,a.CE)("div",d,(0,i.v_)(e.$t(e.loadingSummaryError)),1)):((0,a.uX)(),(0,a.CE)("div",o,[(0,a.Lk)("div",c,[(0,a.Lk)("h1",p,(0,i.v_)(e.$t("payment.contractSummary")),1),(0,a.bF)(Ce,{"subscription-contract-summary":e.subscriptionContractSummary},null,8,["subscription-contract-summary"]),e.clipcard?((0,a.uX)(),(0,a.CE)("div",u,[(0,a.Lk)("div",m,(0,i.v_)(e.$t("payment.clipCardSummary")),1),(0,a.Lk)("div",y,[(0,a.Lk)("div",h,(0,i.v_)(e.$t("clipcards.productName"))+":",1),(0,a.Lk)("div",C,(0,i.v_)(e.clipcard.name),1),(0,a.Lk)("div",f,(0,i.v_)(e.$t("clipcards.sessions"))+":",1),(0,a.Lk)("div",v,(0,i.v_)(e.clipcardSize?e.clipcardSize:e.clipcard.sessions),1),e.$store.state.config.clipcardflow.showValidDateOnClipcardSales&&e.clipcard.validfor?((0,a.uX)(),(0,a.CE)("div",b,(0,i.v_)(e.$t("clipcards.valid"))+": ",1)):(0,a.Q3)("",!0),e.$store.state.config.clipcardflow.showValidDateOnClipcardSales&&e.clipcard.validfor?((0,a.uX)(),(0,a.CE)("div",g,(0,i.v_)(e.$tc("general.FOR-"+e.clipcard.validforUnit,e.clipcard.validfor)),1)):(0,a.Q3)("",!0),(0,a.Lk)("div",S,(0,i.v_)(e.$t("general.price"))+":",1),(0,a.Lk)("div",P,(0,i.v_)(e.formatAmou
1ntToLocale(e.clipcard.price,e.clipcard.currency)),1),void 0===e.clipcard.totalVat||e.checkIfStaffActingForMember(e.$store.state.user.userId)?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",x,(0,i.v_)(e.$t("payment.totalTax"))+": ",1)),void 0===e.clipcard.totalVat||e.checkIfStaffActingForMember(e.$store.state.user.userId)?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",A,(0,i.v_)(e.formatAmountToLocale(e.clipcard.totalVat,e.clipcard.currency)),1)),e.$store.state.config.joinFlow.checkboxWhenClipcardIsSelected?((0,a.uX)(),(0,a.CE)("div",k,[(0,a.bo)((0,a.Lk)("input",{id:"accept-terms",name:"accept-terms",type:"checkbox","onUpdate:modelValue":t[0]||(t[0]=t=>e.clipcardCheckbox=t),"data-cy":"accept-terms-checkbox",class:"w-4 h-4 text-blue-400 border-gray-200 rounded focus:ring-blue-500"},null,512),[[n.lH,e.clipcardCheckbox]]),(0,a.Lk)("span",I,[(0,a.bF)(fe,{value:e.$store.state.config.joinFlow.checkboxWhenClipcardIsSelected},null,8,["value"])]),E])):(0,a.Q3)("",!0),(0,a.Lk)("div",F,[(0,a.Lk)("button",{onClick:t[1]||(t[1]=t=>e.removeClipcard()),class:"btn-positive btn-m","data-cy":"remove-clipcard-button"},(0,i.v_)(e.$t("payment.removeClipCard")),1)]),e.purchaseClipcardExceeded?((0,a.uX)(),(0,a.CE)("div",O,[(0,a.Lk)("div",w,(0,i.v_)(e.$t("basket.clipcardPurchaseLimitExceed")),1)])):(0,a.Q3)("",!0)])])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",M,[(0,a.Lk)("div",D,[e.subscriptionContractSummary.userHasActivePaymentAgreement&&e.paymentOptions.length>0?((0,a.uX)(),(0,a.Wv)(ve,{key:0,loading:e.loadingSummary,paymentOptions:e.paymentOptions,defaultSelectedPaymentOption:e.selectedPaymentOption,currency:e.subscriptionContractSummary?.currency,onSelectedPaymentOptionChanged:e.onSelectedPaymentOptionChanged},null,8,["loading","paymentOptions","defaultSelectedPaymentOption","currency","onSelectedPaymentOptionChanged"])):(0,a.Q3)("",!0)]),e.hasToSelectPaymentOptionForRecurringSub?((0,a.uX)(),(0,a.CE)("div",L,[(0,a.Lk)("h1",T,(0,i.v_)(e.$t("payment.paymentInformation")),1),e.subscriptionContractSummary.canSelectPaymentOption?((0,a.uX)(),(0,a.CE)("div",_,[(0,a.Lk)("div",R,[(0,a.Lk)("div",{class:(0,i.C4)({"flex w-full":!e.preferredPayementMethod,"w-full mt-3 justify-center display: flex flex-wrap flex-col":e.preferredPayementMethod})},[e.hasCCProviders?((0,a.uX)(),(0,a.CE)("label",{key:0,class:(0,i.C4)({"inline-flex items-center mr-6":!e.preferredPayementMethod,"w-full flex pt-2 ml-1":e.preferredPayementMethod})},[(0,a.bo)((0,a.Lk)("input",{type:"radio",class:"form-radio",name:"paymentMethod",value:"CREDIT_CARD","onUpdate:modelValue":t[2]||(t[2]=t=>e.paymentMethod=t),onChange:t[3]||(t[3]=t=>e.paymentMethodChange()),"data-cy":"input-cc"},null,544),[[n.XL,e.paymentMethod]]),(0,a.Lk)("span",N,(0,i.v_)(e.$t("payment.creditCard")),1),"CREDIT_CARD"===e.preferredPayementMethod?((0,a.uX)(),(0,a.CE)("span",$,(0,i.v_)(e.$t("payment.preferredPayementMethod")),1)):(0,a.Q3)("",!0)],2)):(0,a.Q3)("",!0),e.hasDDProviders?((0,a.uX)(),(0,a.CE)("label",{key:1,class:(0,i.C4)({"inline-flex items-center mr-6":!e.preferredPayementMethod,"w-full flex pt-2 ml-1":e.preferredPayementMethod,"order-first":"EFT"===e.preferredPayementMethod})},[(0,a.bo)((0,a.Lk)("input",{type:"radio",class:"form-radio",name:"paymentMethod",value:"EFT","onUpdate:modelValue":t[4]||(t[4]=t=>e.paymentMethod=t),onChange:t[5]||(t[5]=t=>e.paymentMethodChange()),"data-cy":"input-bank"},null,544),[[n.XL,e.paymentMethod]]),(0,a.Lk)("span",X,(0,i.v_)(e.$t("payment.directDebit")),1),"EFT"===e.preferredPayementMethod?((0,a.uX)(),(0,a.CE)("span",W,(0,i.v_)(e.$t("payment.preferredPayementMethod")),1)):(0,a.Q3)("",!0)],2)):(0,a.Q3)("",!0),e.hasDDPLProviders?((0,a.uX)(),(0,a.CE)("label",{key:2,class:(0,i.C4)({"inline-flex items-center mr-6":!e.preferredPayementMethod,"w-full flex pt-2 ml-1":e.preferredPayementMethod,"order-first":"EFT_PAYMENT_LINK"===e.preferredPayementMethod})},[(0,a.bo)((0,a.Lk)("input",{type:"radio",class:"form-radio",name:"paymentMethod",value:"EFT_PAYMENT_LINK","onUpdate:modelValue":t[6]||(t[6]=t=>e.paymentMethod=t),onChange:t[7]||(t[7]=t=>e.paymentMethodChange()),"data-cy":"input-bank-plink"},null,544),[[n.XL,e.paymentMethod]]),(0,a.Lk)("span",z,(0,i.v_)(e.$t("payment.directDebitWithPaymentLink")),1),"EFT_PAYMENT_LINK"===e.preferredPayementMethod?((0,a.uX)(),(0,a.CE)("span",j,(0,i.v_)(e.$t("payment.preferredPayementMethod")),1)):(0,a.Q3)("",!0)],2)):(0,a.Q3)("",!0),e.hasInvoiceProviders?((0,a.uX)(),(0,a.CE)("label",{key:3,class:(0,i.C4)({"inline-flex items-center mr-6":!e.preferredPayementMethod,"w-full flex pt-2 ml-1":e.preferredPayementMethod})},[(0,a.bo)((0,a.Lk)("input",{type:"radio",class:"form-radio",name:"paymentMethod",value:"INVOICE","onUpdate:modelValue":t[8]||(t[8]=t=>e.paymentMethod=t),onChange:t[9]||(t[9]=t=>e.paymentMethodChange()),"data-cy":"input-invoice"},null,544),[[n.XL,e.paymentMethod]]),(0,a.Lk)("span",V,(0,i.v_)(e.$t("payment.invoice")),1)],2)):(0,a.Q3)("",!0)],2)])])):(0,a.Q3)("",!0),"EFT"===e.paymentMethod&&e.$store.state.config.paymentProviderGlobalSettings.ddGuaranteeHtmlText?((0,a.uX)(),(0,a.CE)("div",G,[(0,a.Lk)("div",Q,[(0,a.Lk)("label",U,(0,i.v_)(e.$t("payment.ddguaranteetext")),1),(0,a.Lk)("div",K,[(0,a.bF)(fe,{value:e.$store.state.config.paymentProviderGlobalSettings.ddGuaranteeHtmlText,class:"w-full border-2 max-h-96 p-2 overflow-y-auto","data-cy":"input"},null,8,["value"])])])])):(0,a.Q3)("",!0),"CREDIT_CARD"===e.paymentMethod?((0,a.uX)(),(0,a.CE)("div",B,[((0,a.uX)(),(0,a.Wv)(be,{key:e.creditCardComponentKey,"list-cards-on-file":[],"payment-providers-c-c":e.subscriptionContractSummary.paymentProvidersCCCreatePaymentAgreements,"selected-member-id":e.$store.state.user.userId,"payment-providers-config":e.subscriptionContractSummary.paymentProvidersConfig,onOnCreditCardSelected:e.onCreditCardSelected},null,8,["payment-providers-c-c","selected-member-id","payment-providers-config","onOnCreditCardSelected"]))])):"EFT_PAYMENT_LINK"===e.paymentMethod?((0,a.uX)(),(0,a.CE)("div",H,[((0,a.uX)(),(0,a.Wv)(be,{key:e.creditCardComponentKey,"list-cards-on-file":[],"payment-providers-c-c":e.subscriptionContractSummary.paymentProvidersDDPLCreatePaymentAgreements,"selected-member-id":e.$store.state.user.userId,"payment-providers-config":e.subscriptionContractSummary.paymentProvidersConfig,type:"EFT_PAYMENT_LINK",onOnCreditCardSelected:e.onCreditCardSelected},null,8,["payment-providers-c-c","selected-member-id","payment-providers-config","onOnCreditCardSelected"]))])):"EFT"===e.paymentMethod?((0,a.uX)(),(0,a.CE)("div",J,[(0,a.bF)(ge,{"payment-providers-d-d":e.subscriptionContractSummary.paymentProvidersDDCreatePaymentAgreements,"payment-providers-config":e.subscriptionContractSummary.paymentProvidersConfig,onOnPaymentMethodSelected:e.onDirectDebitMethodSelected},null,8,["payment-providers-d-d","payment-providers-config","onOnPaymentMethodSelected"])])):"INVOICE"===e.paymentMethod?((0,a.uX)(),(0,a.CE)("div",q,(0,i.v_)(e.$t("payment.invoiceDescription")),1)):((0,a.uX)(),(0,a.CE)("div",Y,(0,i.v_)(e.$t("payment.noPaymentMethodsAvailable")),1))])):(0,a.Q3)("",!0),e.upfrontPaymentEnabled?((0,a.uX)(),(0,a.CE)("div",Z,[(0,a.Lk)("h1",ee,(0,i.v_)(e.$t("payment.upfrontPayment")),1),(0,a.Lk)("div",te,[((0,a.uX)(),(0,a.Wv)(be,{key:e.creditCardComponentKey,"list-cards-on-file":e.listCardsOnFile,"payment-providers-c-c":e.subscriptionContractSummary.paymentProvidersJoiningFees,"selected-member-id":e.$store.state.user.userId,"payment-providers-config":e.subscriptionContractSummary.paymentProvidersConfig,onOnCreditCardSelected:e.onFeesCreditCardSelected},null,8,["list-cards-on-file","payment-providers-c-c","selected-member-id","payment-providers-config","onOnCreditCardSelected"]))])])):(0,a.Q3)("",!0)]),e.purchaseClipcardExceeded?((0,a.uX)(),(0,a.CE)("div",re,[(0,a.Lk)("div",ae,(0,i.v_)(e.$t("basket.frequencyRestrictionMet")),1)])):((0,a.uX)(),(0,a.CE)("div",ie,[(0,a.bF)(Se,{"error-model":e.globalError,"data-cy":"member-payment-error"}
1,null,8,["error-model"])])),e.referAFriendWarning?((0,a.uX)(),(0,a.CE)("div",ne,[(0,a.bF)(Se,{"error-model":e.referAFriendWarning,"data-cy":"member-payment-error"},null,8,["error-model"])])):(0,a.Q3)("",!0),!e.subscriptionContractSummary?.userHasActivePaymentAgreement&&e.$store.state.config.features.enableInstallmentsForCashSubscriptions&&"CASH"===e.subscriptionContractSummary?.subscriptionType?((0,a.uX)(),(0,a.CE)("div",le," - OR - ")):(0,a.Q3)("",!0),(0,a.Lk)("div",se,[!e.subscriptionContractSummary?.userHasActivePaymentAgreement&&"CASH"===e.subscriptionContractSummary?.subscriptionType&&e.$store.state.config.features.enableInstallmentsForCashSubscriptions&&(e.isCreateDDPaymentAgreementEnabled||e.isCreateCCPaymentAgreementEnabled)?((0,a.uX)(),(0,a.Wv)(Pe,{key:0,onChangedDD:t[10]||(t[10]=t=>e.loadPageInfos()),onChangedPL:t[11]||(t[11]=t=>e.redirect(t))})):(0,a.Q3)("",!0)]),e.newSubscriptionWillOverridesExistingPaymentAgreement?((0,a.uX)(),(0,a.CE)("div",de,(0,i.v_)(e.$t("payment.changeOfPAMightChangeYourDeductionDate")),1)):(0,a.Q3)("",!0),(0,a.Lk)("div",oe,[(0,a.Lk)("button",{class:"btn-positive btn-xl",disabled:e.loadingSummary||""!==e.loadingSummaryError||e.loadingNext||!e.nextEnabled(),onClick:t[12]||(t[12]=t=>e.next()),"data-cy":"next-button"},[e.loadingNext?((0,a.uX)(),(0,a.Wv)(he,{key:1,text:e.$t("general.loading"),"data-cy":"next-loading"},null,8,["text"])):((0,a.uX)(),(0,a.CE)("span",pe,(0,i.v_)(e.$t("general.next")),1))],8,ce)])])),ue],64)}var ye=r(23772),he=r(15215),Ce=r(82016),fe=r(37884),ve=r(14453),be=r(28581),ge=r(39340),Se=r(24579),Pe=r(99870),xe=r(81459),Ae=r(71263),ke=r(66753),Ie=r(6283),Ee=r.n(Ie),Fe=r(63863),Oe=r(50034),we=r(86498),Me=r(69750),De=r(1450),Le=r(98903),Te=r(51986),_e=r(85812);let Re=class extends fe.lD{constructor(...e){super(...e),(0,ye.A)(this,"paymentAgreementService",void 0),(0,ye.A)(this,"subscriptionService",void 0),(0,ye.A)(this,"paymentService",void 0),(0,ye.A)(this,"clipcardService",void 0),(0,ye.A)(this,"referAFriendService",void 0),(0,ye.A)(this,"currentPlanId",void 0),(0,ye.A)(this,"currentPlanCenterId",void 0),(0,ye.A)(this,"familyMemberId",void 0),(0,ye.A)(this,"familyMemberCenterId",void 0),(0,ye.A)(this,"subscriptionContractSummary",null),(0,ye.A)(this,"loadingSummary",!0),(0,ye.A)(this,"loadingSummaryError",""),(0,ye.A)(this,"loadingNext",!1),(0,ye.A)(this,"globalError",null),(0,ye.A)(this,"referAFriendData",""),(0,ye.A)(this,"referAFriendWarning",null),(0,ye.A)(this,"clipcardCheckbox",!1),(0,ye.A)(this,"listCardsOnFile",[]),(0,ye.A)(this,"selectedFeesCreditCard",!1),(0,ye.A)(this,"selectedCreditCard",!1),(0,ye.A)(this,"selectedDirectDebit",null),(0,ye.A)(this,"paymentMethod",null),(0,ye.A)(this,"previousPaymentMethod",null),(0,ye.A)(this,"selectPlanType",void 0),(0,ye.A)(this,"upfrontPayment",0),(0,ye.A)(this,"fullAmount",0),(0,ye.A)(this,"creditCardComponentKey","0"),(0,ye.A)(this,"clipcard",null),(0,ye.A)(this,"clipcardSize",null),(0,ye.A)(this,"selectedPaymentOption",null),(0,ye.A)(this,"hasDDProviders",!1),(0,ye.A)(this,"hasCCProviders",!1),(0,ye.A)(this,"hasInvoiceProviders",!1),(0,ye.A)(this,"hasDDPLProviders",!1),(0,ye.A)(this,"overrideStartupClipSizeSelected",void 0),(0,ye.A)(this,"recurringClipcardSubClipSize",void 0)}get upfrontPaymentEnabled(){return(this.upfrontPayment||this.upfrontPaymentForClipcardsEnabled)&&("CASH"===this.subscriptionContractSummary?.subscriptionType||"EFT"===this.paymentMethod||"INVOICE"===this.paymentMethod||!this.hasToSelectPaymentOptionForRecurringSub)}onSelectedPaymentOptionChanged(e){this.selectedPaymentOption=e,this.selectedCreditCard=!1,this.selectedFeesCreditCard=!1,this.$nextTick((()=>{this.creditCardComponentKey=Math.random().toString(36).substring(2,15),"FULL"!==e?.externalId?this.upfrontPayment=e?.initialAmount||0:this.updateUpfrontPayment(this.subscriptionContractSummary)}))}setType(){this.currentPlanId?this.selectPlanType="CHANGE":this.selectPlanType="ADD"}paymentMethodChange(){this.selectedFeesCreditCard=!1,this.selectedCreditCard=!1,this.selectedDirectDebit=null;const e=["EFT","EFT_PAYMENT_LINK"],t=e.includes(this.previousPaymentMethod)&&e.includes(this.paymentMethod);t||this.loadPageInfos(),this.previousPaymentMethod=this.paymentMethod}mounted(){}loadPageInfos(){this.loadingSummary=!0,this.setType();const e=this.getQueryParams();if(!e)return void(this.loadingSummary=!1);let t,r;this.paymentMethod&&"error"!==this.paymentMethod&&(r=this.paymentMethod),this.recurringClipcardSubClipSize||(this.recurringClipcardSubClipSize=e?.recurringClipcardSubClipSize?Number(e?.recurringClipcardSubClipSize):void 0),t="ADD"===this.selectPlanType?this.subscriptionService.getContractSummaryForNew(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,r,this.familyMemberId,this.familyMemberCenterId,e?.referAFriend,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.subscriptionService.getContractSummaryForChange(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,r,this.currentPlanId,this.currentPlanCenterId),t.then((e=>{this.subscriptionContractSummary=e,this.recurringClipcardSubClipSize=this.subscriptionContractSummary.recurringClipcardClips,this.setUpfrontAndFullPayment(this.subscriptionContractSummary);const t="EFT"===this.subscriptionContractSummary.paymentMethodRestriction;if(this.hasDDProviders=this.subscriptionContractSummary.paymentProvidersDDCreatePaymentAgreements.length>0,this.hasDDPLProviders=this.subscriptionContractSummary.paymentProvidersDDPLCreatePaymentAgreements.length>0,this.hasCCProviders=this.subscriptionContractSummary.paymentProvidersCCCreatePaymentAgreements.length>0&&!t,this.hasInvoiceProviders=this.subscriptionContractSummary.paymentProvidersInvoiceCreatePaymentAgreements.length>0&&!t,this.paymentMethod=this.subscriptionContractSummary.defaultPaymentMethod||null,this.previousPaymentMethod=this.paymentMethod,e.referAFriend&&!e.referAFriend.valid){const t=e.referAFriend.message;if("referAFriend.noReferralsLeft"===t){const e={errorI18NMessage:t,httpCode:500,errorCode:{}};this.referAFriendWarning=e}else this.loadingSummaryError=t}return this.upfrontPayment&&this.subscriptionContractSummary.hasConfCardOnFile?this.paymentAgreementService.getPersonActiveValidPaymentsAgreement(Fe.A.state.user.userId,Fe.A.state.user.centerId):Promise.resolve({activeValidPaymentAgreements:[]})})).then((t=>{if(this.listCardsOnFile=t.activeValidPaymentAgreements.filter((e=>e.cardOnFile)),e.clipcardId&&"ADD"===this.selectPlanType&&this.subscriptionContractSummary&&this.isClipcardInJoinFlowF
1orMembershipsEnabled(this.subscriptionContractSummary)){const t=Number(e.clipcardId);return this.clipcardSize=Number(e.clipCardSize),this.clipcardService.loadClipcardsForUserById(Fe.A.state.user.userId,Fe.A.state.user.centerId,t,Number(e.centerId),this.clipcardSize,null,this.subscriptionContractSummary.productGlobalId)}this.loadingSummary=!1})).then((e=>{this.loadingSummary=!1,this.isClipCardGroupIdAllowed(e)&&(this.clipcard=e)})).catch((e=>{this.loadingSummaryError=e.errorI18NMessage,this.loadingSummary=!1})),setTimeout((()=>{Ee().scrollTo("body",0,{})}))}setUpfrontAndFullPayment(e){e&&("ADD"===this.selectPlanType?(this.upfrontPayment=e.newSubscriptionPrice?.totalAmount||0,this.fullAmount=e.newSubscriptionPrice?.totalAmount||0):(this.upfrontPayment=e.changeSubscriptionPrice?.changeAmount||0,this.fullAmount=e.changeSubscriptionPrice?.changeAmount||0))}updateUpfrontPayment(e){e&&(this.upfrontPayment=e.newSubscriptionPrice.totalAmount)}onFeesCreditCardSelected(e){this.selectedFeesCreditCard=e}onCreditCardSelected(e){this.selectedCreditCard=e}onDirectDebitMethodSelected(e){this.selectedDirectDebit=e,this.creditCardComponentKey=Math.random().toString(36).substring(2,15)}getQueryParams(){const e=xe.A.currentRoute.value.query,t=Number(e.center);if(!t)return void(this.loadingSummaryError="No center id provided");const r=Number(e.plan);if(!r)return void(this.loadingSummaryError="No plan id provided");const a=String(e.sd);if(!/^\d{4}-\d{2}-\d{2}$/.test(a))return void(this.loadingSummaryError="Wrong startup date provided");let i=[];Array.isArray(e.addOns)?i=e.addOns.map((e=>Number(e))):e.addOns&&(i=[Number(e.addOns)]);const n=e.promoCode,l=e.clipcardId,s=e.clipCardSize,d=e.referAFriend,o=e.rccsClipCardSize;return{centerId:t,planId:r,addOns:i,promoCode:n,sd:a,clipcardId:l,clipCardSize:s,referAFriend:d,recurringClipcardSubClipSize:o}}nextEnabled(){let e=!1;if(this.clipcard&&Fe.A.state.config.joinFlow.checkboxWhenClipcardIsSelected&&!this.clipcardCheckbox)return!1;const t=!1!==this.selectedFeesCreditCard;if(this.hasToSelectPaymentOptionForRecurringSub)switch(this.paymentMethod){case"CREDIT_CARD":e=!1!==this.selectedCreditCard;break;case"EFT_PAYMENT_LINK":e=!1!==this.selectedCreditCard;break;case"EFT":e=this.selectedDirectDebit&&(!this.upfrontPayment||t)||!1;break;case"INVOICE":e=!this.upfrontPayment||t;break;default:e=!1}else e=!this.upfrontPayment||t;return e}next(){this.globalError=null;const e=this.getQueryParams();this.loadingNext=!0;const t="FULL"===this.selectedPaymentOption?.externalId?void 0:this.selectedPaymentOption?.externalId,r="EFT_PAYMENT_LINK"===this.paymentMethod;let a;if("ADD"===this.selectPlanType)a="CASH"===this.subscriptionContractSummary.subscriptionType?"string"===typeof this.selectedFeesCreditCard||!1===this.selectedFeesCreditCard?this.paymentService.makeCCCASHUpfrontPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedFeesCreditCard||this.subscriptionContractSummary.paymentProvidersJoiningFees[0],this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,t,e.clipcardId,e.clipCardSize,e.referAFriend):this.paymentService.makeCoFCASHUpfrontPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedFeesCreditCard,this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,t,e.clipcardId,e.clipCardSize):"INVOICE"===this.paymentMethod&&this.hasToSelectPaymentOptionForRecurringSub?this.paymentService.makeInvoiceUpfrontPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedFeesCreditCard||this.subscriptionContractSummary.paymentProvidersJoiningFees[0],this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,e.referAFriend,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.selectedDirectDebit?this.paymentService.makeACHNewSubscriptionPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedDirectDebit,this.selectedFeesCreditCard||this.subscriptionContractSummary.paymentProvidersJoiningFees[0],this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,e.referAFriend,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.subscriptionContractSummary.userHasActivePaymentAgreement?"string"===typeof this.selectedFeesCreditCard||!1===this.selectedFeesCreditCard?this.selectedCreditCard?this.paymentService.makePLNewSubscriptionPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedCreditCard,this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,r,e.referAFriend,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.paymentService.makeCCEFTUpfrontPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedFeesCreditCard||this.subscriptionContractSummary.paymentProvidersJoiningFees[0],this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.paymentService.makeCoFEFTUpfrontPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedFeesCreditCard,this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected):this.paymentService.makePLNewSubscriptionPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.selectedCreditCard,this.selectPlanType,this.familyMemberId,this.familyMemberCenterId,e.clipcardId,e.clipCardSize,r,e.referAFriend,this.recurringClipcardSubClipSize,this.overrideStartupClipSizeSelected);else if("string"===typeof this.selectedFeesCreditCard||!1===this.selectedFeesCreditCard){let t,r=this.selectedFeesCreditCard||this.subscriptionContractSummary.paymentProvidersJoiningFees[0];this.selectedDirectDebit?t=this.selectedDirectDebit:"INVOICE"===this.paymentMethod&&this.hasToSelectPaymentOptionForRecurringSub?t="INVOICE":this.selectedCreditCard&&(t=this.selectedCreditCard,r=this.selectedCreditCard),a=this.paymentService.makeChangeSubscriptionPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.currentPlanId,this.currentPlanCenterId,r,t)}else a=this.paymentService.makeCoFChangeSubscriptionPayment(e.centerId,e.planId,e.sd,e.addOns,e.promoCode,this.currentPlanId,this.currentPlanCenterId,this.selectedFeesCreditCard);a.then((e=>{this.loadingNext=!0,(0,De.Uw)(e)})).catch((e=>{this.loadingNext=!1,this.globalError=e}))}get paymentOptions(){if(this.subscriptionContractSummary?.paymentOptions?.length){const e=this.subscriptionContractSummary.paymentOptions.filter((e=>e.externalId));if(0===e.length)return[];const t={externalId:"FULL",name:this.$t("payment.payInFull"),firstInstallmentPaidInPOS:!1,initialAmount:this.fullAmount,amountToPay:this.fullAmount,numberOfInstallments:0,type:"FULL"},r=[t].concat(e);return this.selectedPaymentOption=r.find((e=>e.externalId===this.selectedPaymentOption?.externalId))||t,r}return this.selectedPaymentOption=null,[]}get isCreateDDPaymentAgreementEnabled(){return Fe.A.state.config.paymentProvidersDD.createDDPA?.length>0}get isCreateCCPaymentAgreementEnabled(){return Fe.A.state.config.paymentProvidersCC.createCCPA?.length>0}get hasToSelectPaymentOptionForRecurringSub(){return this.subscriptionContractSummary?.hasToSelectPaymentOptionForRecurringSub||!1}get newSubscriptionWillOverridesExistingPaymentAgreement(){return this.subscriptionContractSummary?.newSubscriptionWillOverridesExistingPaymentAgreement||!1}redirect(e){(0,De.Uw)(e)}get preferredPayementMethod(){return this.subscriptionContractSummary?.preferredPayementMethod||null}removeClipcard(){this.clipcard=null,this.clipcardSize=null;const e={...this.$route.query};delete e.clipcardId,delete e.clipCardSize,this.$router.replace({query:e})}
1isClipcardInJoinFlowForMembershipsEnabled(e){if(e&&Fe.A.state.config.joinFlow.enableClipcardInJoinFlowForMemberships){const t=Fe.A.state.config.joinFlow.enableClipcardInJoinFlowForMemberships.split(",").filter((e=>e));if(e.groups&&e.groups.length)for(let r=0;r<e.groups.length;r++)if(t.includes(e.groups[r].id+""))return!0}return!1}isClipCardGroupIdAllowed(e){if(Fe.A.state.config.joinFlow.clipcardProductGroupsInJoinFlow&&e){const t=Fe.A.state.config.joinFlow.clipcardProductGroupsInJoinFlow.split(",").filter((e=>e));if(e.groups&&e.groups.length)for(let r=0;r<e.groups.length;r++)if(t.includes(e.groups[r].id+""))return!0}return!1}get upfrontPaymentForClipcardsEnabled(){return this.clipcard&&0!=this.clipcard.totalVat}get purchaseClipcardExceeded(){return this.globalError?.errorCode?.errorType===Ae.FL.PURCHASE_CLIPCARD_EXCEEDED}};(0,he.Cg)([(0,ve.y_)("paymentAgreementService")],Re.prototype,"paymentAgreementService",void 0),(0,he.Cg)([(0,ve.y_)("subscriptionService")],Re.prototype,"subscriptionService",void 0),(0,he.Cg)([(0,ve.y_)("paymentService")],Re.prototype,"paymentService",void 0),(0,he.Cg)([(0,ve.y_)("clipcardService")],Re.prototype,"clipcardService",void 0),(0,he.Cg)([(0,ve.y_)("referAFriendService")],Re.prototype,"referAFriendService",void 0),(0,he.Cg)([(0,ve.ox)("$store.state.currentLocale.locale",{immediate:!0,deep:!0})],Re.prototype,"loadPageInfos",null),Re=(0,he.Cg)([(0,fe.JY)({components:{ContractSummary:Oe.A,LocationMarkerIcon:be.A,CheckCircleIcon:ge.A,CreditCardIcon:Se.A,IdentificationIcon:Pe.A,Spinner:ke.A,CofAndPaymentLinkList:we.A,DirectDebitList:Me.A,ErrorDisplay:Le.A,HtmlTextarea:Te.A,InstallmentPlan:Ce.A,CreatePaymentAgreementButton:_e.A},props:{currentPlanId:String,currentPlanCenterId:String,familyMemberId:{type:String,required:!1},familyMemberCenterId:{type:String,required:!1}},computed:{}})],Re);var Ne=Re,$e=r(66262);const Xe=(0,$e.A)(Ne,[["render",me],["__scopeId","data-v-514da4fc"]]);var We=Xe}}]);
2//# sourceMappingURL=membership-payment.43a94d4f.js.map

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.