import{a9 as o,h as d,bK as l,w as E,aC as s,I as r,g as n,x as T,m as p,b3 as _,b4 as S,b5 as A}from"./index-Csef3-wA.js";const e={INITIALIZING:"checkout/INITIALIZING",INITIALIZED:"checkout/INITIALIZED",INITIALIZING_FAILURE:"checkout/INITIALIZING_FAILURE",SET_PRICES:"checkout/SET_PRICES",SET_USER_COUNTRY:"checkout/SET_USER_COUNTRY",SET_FETCHING_PRICES:"checkout/SET_FETCHING_PRICES",SET_PRICE_ID:"checkout/SET_PRICE_ID",SET_STEP:"checkout/SET_STEP",SHOW_VAT_PERCENT:"checkout/SHOW_VAT_PERCENT",HIDE_VAT_PERCENT:"checkout/HIDE_VAT_PERCENT",CLEAR_DATA:"checkout/CLEAR_DATA",SET_FETCHING_PLAN:"checkout/SET_FETCHING_PLAN",DISABLE_FETCHING_PLAN:"checkout/DISABLE_FETCHING_PLAN",SET_RELEVANT_BILLING_DATA:"checkout/SET_RELEVANT_BILLING_DATA",SET_CLIENT_SECRET:"checkout/SET_CLIENT_SECRET",SET_NEXT_ACTION:"checkout/SET_NEXT_ACTION",SET_FIXED_ERROR:"checkout/SET_FIXED_ERROR",CLEAR_FIXED_ERROR:"checkout/CLEAR_FIXED_ERROR"},R={initializing:o(e.INITIALIZING),initialized:o(e.INITIALIZED),initializingFailure:o(e.INITIALIZING_FAILURE),setPrices:o(e.SET_PRICES),setUserCountry:o(e.SET_USER_COUNTRY),setFetchingPrices:o(e.SET_FETCHING_PRICES),setPriceId:o(e.SET_PRICE_ID),setStep:o(e.SET_STEP),setRelevantBillingData:o(e.SET_RELEVANT_BILLING_DATA),showVATPercent:o(e.SHOW_VAT_PERCENT),hideVATPercent:o(e.HIDE_VAT_PERCENT),clearData:o(e.CLEAR_DATA),setFetchingPlan:o(e.SET_FETCHING_PLAN),disableFetchingPlan:o(e.DISABLE_FETCHING_PLAN),setClientSecret:o(e.SET_CLIENT_SECRET),setNextAction:o(e.SET_NEXT_ACTION),setFixedError:o(e.SET_FIXED_ERROR),clearFixedError:o(e.CLEAR_FIXED_ERROR)},g={BILLING:"BILLING",PAYMENT:"PAYMENT"},I={prices:[],priceId:null,step:g.BILLING,initializing:!1,ready:!1,vatVisible:!1,fetchingPlan:"",fetchingPrices:!1,relevantBillingData:{country:"",accountType:""},nextAction:null,clientSecret:null,userCountry:null,fixedErrorCode:null};function c({priceId:t,step:i,clientSecret:a}){l.save("checkoutClientSecret",{clientSecret:a},15),l.save("checkout",{priceId:t,step:i})}const u=d({[e.INITIALIZING]:t=>({...t,initializing:!0}),[e.INITIALIZED]:t=>({...t,initializing:!1,ready:!0}),[e.INITIALIZING_FAILURE]:t=>({...t,initializing:!1}),[e.SET_PRICES]:(t,i)=>({...t,prices:i.payload}),[e.SET_USER_COUNTRY]:(t,i)=>({...t,userCountry:i.payload}),[e.SET_PRICE_ID]:(t,i)=>{const a={...t,priceId:i.payload};return c(a),a},[e.SET_RELEVANT_BILLING_DATA]:(t,i)=>({...t,relevantBillingData:i.payload}),[e.SET_STEP]:(t,i)=>{const a={...t,step:i.payload};return c(a),a},[e.SHOW_VAT_PERCENT]:t=>({...t,vatVisible:!0}),[e.HIDE_VAT_PERCENT]:t=>({...t,vatVisible:!1}),[e.CLEAR_DATA]:()=>I,[e.SET_FETCHING_PLAN]:(t,i)=>({...t,fetchingPlan:i.payload}),[e.DISABLE_FETCHING_PLAN]:t=>({...t,fetchingPlan:""}),[e.SET_FETCHING_PRICES]:(t,i)=>({...t,fetchingPrices:i.payload}),[e.SET_CLIENT_SECRET]:(t,i)=>{const a={...t,clientSecret:i.payload};return c(a),a},[e.SET_NEXT_ACTION]:(t,i)=>({...t,nextAction:i.payload}),[e.SET_FIXED_ERROR]:(t,i)=>({...t,fixedErrorCode:i.payload}),[e.CLEAR_FIXED_ERROR]:t=>({...t,fixedErrorCode:null})},I),C={Dialog:E(t=>({paper:{padding:i=>i.hasPadding&&"32px 20px 24px",[t.breakpoints.up("md")]:{padding:i=>i.hasPadding&&"42px 30px 30px",width:"auto"}}}),"Dialog")(s),PlansWrapper:r("div")(({theme:t})=>({display:"grid",[t.breakpoints.down("sm")]:{rowGap:"8px",maxWidth:300,width:"100%",margin:"16px auto 0"},[t.breakpoints.up("sm")]:{marginTop:24,columnGap:15,gridAutoFlow:"column",gridAutoColumns:"1fr",maxWidth:"initial",width:"auto",overflow:"auto"}}),"ChoosePlanModal-PlansWrapper")},h={Container:r("div")(({theme:t})=>({border:`2px solid ${n.gray.normal}`,padding:"25px 16px 25px",position:"relative",textAlign:"center",borderRadius:8,minWidth:160,[t.breakpoints.down("sm")]:{padding:"25px 32px 34px"}}),"Plan-Container"),Title:r("h2")(({theme:t})=>({fontSize:16,marginBottom:8,lineHeight:"24px",[t.breakpoints.up("md")]:{marginBottom:28}}),"Plan-Title"),PriceWrapper:r("div")(({theme:t})=>({marginBottom:19,[t.breakpoints.up("md")]:{marginBottom:28}})),Price:r("p")(({theme:t})=>({fontSize:20,fontWeight:700,lineHeight:"28px",[t.breakpoints.up("md")]:{fontSize:32,lineHeight:"34px"}}),"Plan-Price"),LocalPrice:r("p")(({theme:t})=>({fontSize:14,fontWeight:700,lineHeight:"18px",color:"#7B777C",marginTop:2,[t.breakpoints.up("md")]:{fontSize:15}}),"Plan-Price"),Button:E({root:{width:"100%"}},"Plan-Button")(T)},m=p(t=>({root:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",backgroundColor:n.transparent,padding:0,border:0,[t.breakpoints.down("md")]:{marginTop:58,display:"block",padding:0}},title:{fontSize:20,fontWeight:700,lineHeight:"28px",marginBottom:20,textAlign:"left",[t.breakpoints.up("md")]:{fontSize:24,lineHeight:"32px",marginBottom:0,maxWidth:205}},wrapper:{backgroundColor:n.white,borderRadius:8,padding:0,[t.breakpoints.down("lg")]:{maxWidth:"none !important"}}}),"PlansFaqs"),P=E((t,i,a)=>({root:{marginBottom:0,boxShadow:"none",borderRadius:"0px !important","&:not(:last-child)":{borderBottom:`1px solid ${n.gray.normal}`},[`&.${a.expanded}`]:{marginTop:0,marginBottom:0},"&:before":{display:"none"}},expanded:{}}),"Faq-Accordion")(_),L=E((t,i,a)=>({root:{margin:0,minHeight:84,paddingRight:5,paddingLeft:0,color:n.gray.darkest,fontSize:16,fontWeight:500,lineHeight:"28px",[`&.${a.expanded}`]:{minHeight:84,margin:0}},content:{margin:0},expanded:{},expandIconWrapper:{marginRight:0,color:n.primary.blue,[`&.${a.expanded}`]:{transform:"rotate(90deg)"}}}),"Faq-AccordionSummary")(S),x=E(t=>({root:{padding:"0 6px 24px",fontSize:16,fontWeight:500,lineHeight:"26px",position:"relative",display:"block","& a":{color:n.secondary.orange,"&:hover":{textDecoration:"underline"}},[t.breakpoints.up("md")]:{padding:"0 6px 24px"}}}),"Faq-AccordionDetails")(A);export{P as A,g as S,C as a,L as b,R as c,x as d,h as p,u as r,c as s,m as u};