File: /home/dmstechonline/whatsapp.dmstech.online/public/build/assets/Plan-48020b08.js
import{r as h,T as et,f as ut,g as pt,o as n,a as t,t as l,c as a,e as P,n as F,u as p,b as r,F as D,h as $,k as ct,w as ht,v as vt,O as st}from"./app-884e4ce3.js";import{_ as mt}from"./App-faae56c7.js";import"./Sidebar-ec4f7223.js";import"./Menu-58091ecb.js";import"./Modal-a947e544.js";import"./transition-15fedc5d.js";import"./hidden-733404a0.js";import"./use-outside-click-1c7dcbeb.js";import"./micro-task-89dcd6af.js";import"./ProfileModal-268f6e59.js";import"./FormInput-ab713954.js";import"./FormPhoneInput-8c055c19.js";/* empty css */import"./FormSelect-1f27a419.js";import"./index-d349a931.js";import"./use-text-value-48384026.js";import"./use-resolve-button-type-261165f4.js";import"./tabs-3ad99d3f.js";import"./LangToggle-54d6b98e.js";import"./OrganizationModal-83fb7cbd.js";import"./index-ff0eb693.js";import"./MobileSidebar-4319591b.js";/* empty css */import"./pusher-e63f75b9.js";import"./useRtl-295d8c04.js";const wt={class:"bg-white md:bg-inherit pt-0 px-4 md:pt-8 md:p-8 rounded-[5px] text-[#000] overflow-y-scroll"},gt={class:"flex justify-between mt-8 md:mt-0"},xt={class:"text-xl mb-1"},_t={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},ft={class:"ml-1 mt-1"},bt={class:"md:flex gap-4"},yt={class:"md:w-[65%]"},kt={class:"grid grid-cols-2 gap-4"},Ct=["onClick"],At={class:"flex justify-between"},$t={class:""},jt={class:""},Mt={for:"myCheckbox",class:"cursor-pointer"},St={key:0,class:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Bt={class:"text-2xl"},Pt={key:0,class:"text-sm mb-4"},Ft={key:1,class:"text-sm mb-4"},Dt={class:"mb-1"},Zt={class:"flex justify-between text-sm"},Vt={class:"flex space-x-1"},Lt={class:"flex justify-between text-sm"},zt={class:"flex space-x-1"},Ut={class:"flex justify-between text-sm"},Rt={class:"flex space-x-1"},Tt={class:"flex justify-between text-sm"},It={class:"flex space-x-1"},Nt={class:"flex justify-between text-sm"},Ot={class:"flex space-x-1"},Ht={class:"flex justify-between text-sm"},Jt={class:"flex space-x-1"},Et={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},Gt={key:1,class:"text-red-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 26 26"},qt={key:2,class:"flex justify-between text-sm"},Kt={class:"flex space-x-1"},Qt={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},Wt={key:1,class:"text-red-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 26 26"},Xt={key:0},Yt={key:3,class:"flex justify-between text-sm"},te={class:"flex space-x-1"},ee={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},se={key:1,class:"text-red-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 26 26"},oe={key:0},le={class:"md:w-[35%]"},ne={class:"bg-white rounded-md shadow-md p-5"},ae={class:"text-xl mb-4"},ie={key:0},re={class:"border border-dashed flex itens-center justify-center p-10 rounded-md"},de={key:1},ue={class:"flex justify-between mb-4 text-sm"},pe={class:"bg-slate-100 w-[fit-content] py-1 px-2 rounded-md capitalize text-xs"},ce={class:"flex justify-between mt-4 text-sm"},he={key:0,class:"bg-slate-100 px-2 py-2 space-y-2 rounded-md mt-2 mb-2"},ve={class:"text-sm border-b border-dashed"},me={class:""},we={key:1,class:"bg-slate-100 px-2 py-2 space-y-2 rounded-md mt-2 mb-2"},ge={class:"flex justify-between text-sm"},xe={class:"text-xs"},_e={key:0,class:"text-red-500"},fe={key:1,class:"text-red-500"},be={key:2,class:"bg-slate-100 px-2 py-2 space-y-2 rounded-md mt-2 mb-2"},ye={class:"flex justify-between text-sm"},ke={class:"text-xs"},Ce={key:3,class:"bg-slate-100 px-2 py-2 space-y-2 rounded-md mt-2 mb-2"},Ae={class:"text-sm"},$e={class:"text-sm border-b border-dashed"},je={class:"flex items-center justify-between"},Me=["disabled"],Se={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Be={key:1},Pe={key:0,class:"text-red-500 text-xs"},Fe={key:1,class:"mt-2 flex justify-between text-sm"},De={class:"flex items-center"},Ze={key:0,class:""},Ve={class:"text-red-500"},Le={class:"flex justify-between text-xl mt-4 mb-4"},ze={key:4,class:"text-[14px] mt-3 mb-2"},Ue={key:5,class:"flex grid grid-cols-2 gap-2"},Re={class:"flex items-center"},Te=["onClick"],Ie={key:0,class:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ne=["onClick"],Oe={class:"mt-8"},He={key:1,class:"w-full flex justify-center items-center space-x-1 rounded-md bg-gray-300 px-3 py-2 text-sm text-gray-400 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},Je={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},Ee={key:1},Ge={key:2,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},qe={key:3},fs={__name:"Plan",props:["addons","enable_ai_billing","plans","methods","subscription","subscriptionDetails"],setup(ot){var L,z,U,R,T,I,N,O,H,J,E,G,q,K,Q,W,X;const v=ot,c=h(v.subscriptionDetails),d=et({plan:(L=v.subscription)==null?void 0:L.plan_id,method:null}),m=et({coupon:(U=(z=c.value)==null?void 0:z.coupon)==null?void 0:U.code}),_=h(!1),Z=h({name:(T=(R=v.subscription)==null?void 0:R.plan)==null?void 0:T.name,period:(N=(I=v.subscription)==null?void 0:I.plan)==null?void 0:N.period,amount:(H=(O=v.subscription)==null?void 0:O.plan)==null?void 0:H.price}),j=h((J=c.value)==null?void 0:J.grossAmount),b=h((E=c.value)==null?void 0:E.netAmount),w=h((G=c.value)==null?void 0:G.amountDue),y=h((q=c.value)==null?void 0:q.taxRates),f=h((K=c.value)==null?void 0:K.credit),k=h((Q=c.value)==null?void 0:Q.debit),M=h((W=c.value)==null?void 0:W.basePrice),g=h((X=c.value)==null?void 0:X.coupon),lt=(o,s,i,x)=>{d.plan=o,Z.value={name:s,period:i,amount:x},nt(o)},V=o=>{d.method=o},u=(o,s)=>{if(o){const i=JSON.parse(o);return(i==null?void 0:i[s])??null}else return null},C=o=>{const s=JSON.parse(o.metadata).addons;return!s||typeof s!="object"?{}:Object.entries(v.addons).reduce((i,[x,S])=>(S===1&&s.hasOwnProperty(x)&&(i[x]=s[x]),i),{})},nt=o=>{st.visit("/subscription/"+o,{method:"get",preserveState:!0,onSuccess:s=>{d.plan=o;const i=s.props.response_data.data;c.value=s.props.response_data.data,j.value=i.grossAmount,y.value=i.taxRates,b.value=i.netAmount,f.value=i.credit,k.value=i.debit,M.value=i.basePrice,w.value=i.amountDue,g.value=i.coupon}})},at=()=>{const o=d.plan;st.visit("/subscription/coupon/remove/"+o,{method:"get",preserveState:!0,onSuccess:s=>{d.plan=o;const i=s.props.response_data.data;c.value=s.props.response_data.data,j.value=i.grossAmount,y.value=i.taxRates,b.value=i.netAmount,f.value=i.credit,k.value=i.debit,M.value=i.basePrice,w.value=i.amountDue,g.value=i.coupon}})},it=()=>{const o=d.plan;m.post("/subscription/coupon/apply/"+o,{preserveScroll:!0,onSuccess:s=>{d.plan=o;const i=s.props.response_data.data;c.value=s.props.response_data.data,j.value=i.grossAmount,y.value=i.taxRates,b.value=i.netAmount,f.value=i.credit,k.value=i.debit,M.value=i.basePrice,w.value=i.amountDue,g.value=i.coupon}})},rt=async()=>{_.value=!0,d.post("/subscription",{preserveScroll:!0})};return(o,s)=>(n(),ut(mt,null,{default:pt(()=>{var i,x,S,Y,tt;return[t("div",wt,[t("div",gt,[t("div",null,[t("h2",xt,l(o.$t("Billing and subscription")),1),t("p",_t,[s[2]||(s[2]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),t("span",ft,l(o.$t("Select the plan that you want to subscribe to")),1)])])]),t("div",bt,[t("div",yt,[t("div",kt,[(n(!0),a(D,null,P((i=v.plans)==null?void 0:i.data,(e,A)=>(n(),a("div",{key:A,onClick:B=>lt(e.id,e.name,e.period,e.price),class:F(["rounded-[0.5rem] shadow-sm p-5 cursor-pointer border-2 col-span-2 md:col-span-1",p(d).plan===e.id?"border-gray-700 bg-slate-50":"border-slate-100 md:border-white bg-slate-20 md:bg-white"])},[t("div",At,[t("div",$t,[t("h3",null,l(e.name),1)]),t("div",jt,[t("label",Mt,[t("div",{class:F(["w-5 h-5 border border-gray-400 rounded-md flex items-center justify-center",p(d).plan===e.id?"bg-[#000]":""])},[p(d).plan===e.id?(n(),a("svg",St,s[3]||(s[3]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):r("",!0)],2)])])]),t("h2",Bt,l(e.price),1),e.period==="monthly"?(n(),a("h3",Pt,l(o.$t("Per month")),1)):r("",!0),e.period==="yearly"?(n(),a("h3",Ft,l(o.$t("Per year")),1)):r("",!0),t("h3",Dt,l(o.$t("Features")),1),t("div",Zt,[t("div",Vt,[s[4]||(s[4]=t("span",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})])])],-1)),t("h3",null,l(u(e==null?void 0:e.metadata,"campaign_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"campaign_limit"))+" "+l(o.$t("Campaigns")),1)])]),t("div",Lt,[t("div",zt,[s[5]||(s[5]=t("span",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})])])],-1)),t("h3",null,l(u(e==null?void 0:e.metadata,"message_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"message_limit"))+" "+l(o.$t("Messages")),1)])]),t("div",Ut,[t("div",Rt,[s[6]||(s[6]=t("span",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})])])],-1)),t("h3",null,l(u(e==null?void 0:e.metadata,"contacts_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"contacts_limit"))+" "+l(o.$t("Contacts")),1)])]),t("div",Tt,[t("div",It,[s[7]||(s[7]=t("span",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})])])],-1)),t("h3",null,l(u(e==null?void 0:e.metadata,"canned_replies_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"canned_replies_limit"))+" "+l(o.$t("Canned replies")),1)])]),t("div",Nt,[t("div",Ot,[s[8]||(s[8]=t("span",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16"},[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})])])],-1)),t("h3",null,l(u(e==null?void 0:e.metadata,"team_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"team_limit"))+" "+l(o.$t("Users")),1)])]),(n(!0),a(D,null,P(C(e),(B,dt)=>(n(),a("div",Ht,[t("div",Jt,[t("span",null,[B==!0?(n(),a("svg",Et,s[9]||(s[9]=[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})],-1)]))):(n(),a("svg",Gt,s[10]||(s[10]=[t("g",{fill:"currentColor"},[t("path",{d:"M10.172 17.243a1 1 0 1 1-1.415-1.415l7.071-7.07a1 1 0 1 1 1.415 1.414z"}),t("path",{d:"M8.757 10.172a1 1 0 0 1 1.415-1.415l7.07 7.071a1 1 0 1 1-1.414 1.415z"}),t("path",{"fill-rule":"evenodd",d:"M13 24c6.075 0 11-4.925 11-11S19.075 2 13 2S2 6.925 2 13s4.925 11 11 11m0 2c7.18 0 13-5.82 13-13S20.18 0 13 0S0 5.82 0 13s5.82 13 13 13","clip-rule":"evenodd"})],-1)])))]),t("h3",null,l(dt),1)])]))),256)),v.enable_ai_billing==1?(n(),a("div",qt,[t("div",Kt,[t("span",null,[u(e==null?void 0:e.metadata,"ai_text_response_limit")&&C(e)["AI Assistant"]?(n(),a("svg",Qt,s[11]||(s[11]=[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})],-1)]))):(n(),a("svg",Wt,s[12]||(s[12]=[t("g",{fill:"currentColor"},[t("path",{d:"M10.172 17.243a1 1 0 1 1-1.415-1.415l7.071-7.07a1 1 0 1 1 1.415 1.414z"}),t("path",{d:"M8.757 10.172a1 1 0 0 1 1.415-1.415l7.07 7.071a1 1 0 1 1-1.414 1.415z"}),t("path",{"fill-rule":"evenodd",d:"M13 24c6.075 0 11-4.925 11-11S19.075 2 13 2S2 6.925 2 13s4.925 11 11 11m0 2c7.18 0 13-5.82 13-13S20.18 0 13 0S0 5.82 0 13s5.82 13 13 13","clip-rule":"evenodd"})],-1)])))]),t("h3",null,[C(e)["AI Assistant"]?(n(),a("span",Xt,l(u(e==null?void 0:e.metadata,"ai_text_response_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"ai_text_response_limit")),1)):r("",!0),$(" "+l(o.$t("AI Text Response Limit")),1)])])])):r("",!0),v.enable_ai_billing==1?(n(),a("div",Yt,[t("div",te,[t("span",null,[u(e==null?void 0:e.metadata,"ai_audio_response_limit")&&C(e)["AI Assistant"]?(n(),a("svg",ee,s[13]||(s[13]=[t("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t("path",{d:"M14.25 8.75c-.5 2.5-2.385 4.854-5.03 5.38A6.25 6.25 0 0 1 3.373 3.798C5.187 1.8 8.25 1.25 10.75 2.25"}),t("path",{d:"m5.75 7.75l2.5 2.5l6-6.5"})],-1)]))):(n(),a("svg",se,s[14]||(s[14]=[t("g",{fill:"currentColor"},[t("path",{d:"M10.172 17.243a1 1 0 1 1-1.415-1.415l7.071-7.07a1 1 0 1 1 1.415 1.414z"}),t("path",{d:"M8.757 10.172a1 1 0 0 1 1.415-1.415l7.07 7.071a1 1 0 1 1-1.414 1.415z"}),t("path",{"fill-rule":"evenodd",d:"M13 24c6.075 0 11-4.925 11-11S19.075 2 13 2S2 6.925 2 13s4.925 11 11 11m0 2c7.18 0 13-5.82 13-13S20.18 0 13 0S0 5.82 0 13s5.82 13 13 13","clip-rule":"evenodd"})],-1)])))]),t("h3",null,[C(e)["AI Assistant"]?(n(),a("span",oe,l(u(e==null?void 0:e.metadata,"ai_audio_response_limit")=="-1"?o.$t("Unlimited"):u(e==null?void 0:e.metadata,"ai_audio_response_limit")),1)):r("",!0),$(" "+l(o.$t("AI Audio Response Limit")),1)])])])):r("",!0)],10,Ct))),128))])]),t("div",le,[t("div",ne,[t("h3",ae,l(o.$t("Summary")),1),p(d).plan?r("",!0):(n(),a("div",ie,[t("div",re,[t("h3",null,l(o.$t("Select plan to continue")),1)])])),p(d).plan?(n(),a("div",de,[t("div",ue,[t("div",null,[t("h3",null,l(Z.value.name),1),t("h3",pe,l(Z.value.period),1)]),t("h3",null,l(M.value),1)]),s[23]||(s[23]=t("hr",null,null,-1)),t("div",ce,[t("h3",null,l(o.$t("Gross total")),1),t("h3",null,l(j.value),1)]),y.value.length>0?(n(),a("div",he,[t("h3",ve,l(o.$t("Tax")),1),(n(!0),a(D,null,P(y.value,(e,A)=>(n(),a("div",{key:A,class:"flex justify-between text-sm"},[t("h3",null,[$(l(e.name)+" ",1),t("span",me,"("+l(e.percentage)+"%)",1)]),t("h3",null,l(e.amount),1)]))),128))])):r("",!0),f.value.total>0?(n(),a("div",we,[t("div",ge,[t("div",null,[$(l(o.$t("Available credits"))+" ",1),s[15]||(s[15]=t("br",null,null,-1)),t("span",xe,"("+l(o.$t("Applicable credits for this invoice"))+")",1)]),parseFloat(-f.value.total)<=parseFloat(b.value)?(n(),a("h3",_e,l(f.value.total),1)):r("",!0),parseFloat(-f.value.total)>parseFloat(b.value)?(n(),a("h3",fe," ("+l(b.value)+") ",1)):r("",!0)])])):r("",!0),k.value.total>0?(n(),a("div",be,[t("div",ye,[t("div",null,[$(l(o.$t("Available debits"))+" ",1),s[16]||(s[16]=t("br",null,null,-1)),t("span",ke,"("+l(o.$t("Applicable debits due"))+")",1)]),t("h3",null,l(k.value.total),1)])])):r("",!0),parseFloat(w.value)>0?(n(),a("div",Ce,[t("div",Ae,[t("div",$e,l(o.$t("Coupon code")),1),g.value.length===0?(n(),a("form",{key:0,onSubmit:ct(it,["prevent"]),class:"mt-2 bg-white w-full rounded-md border-0 py-1 pl-2 pr-1 text-gray-900 shadow-sm outline-none ring-1 ring-inset placeholder:text-gray-400 sm:text-sm sm:leading-6"},[t("div",je,[ht(t("input",{"onUpdate:modelValue":s[0]||(s[0]=e=>p(m).coupon=e),class:"h-full w-3/4 outline-none"},null,512),[[vt,p(m).coupon]]),t("button",{class:F(["h-full w-[fit-content] py-0.5 px-2 text-[12px] flex items-center justify-center bg-primary text-white rounded-md",{"opacity-50":p(m).processing}]),disabled:p(m).processing},[p(m).processing?(n(),a("svg",Se,s[17]||(s[17]=[t("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"},null,-1),t("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[t("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})],-1)]))):(n(),a("span",Be,l(o.$t("Apply")),1))],10,Me)]),p(m).errors.coupon?(n(),a("span",Pe,l(p(m).errors.coupon),1)):r("",!0)],32)):(n(),a("div",Fe,[t("div",De,[t("h3",null,l((x=g.value)==null?void 0:x.code),1),((S=g.value)==null?void 0:S.type)=="percentage"?(n(),a("span",Ze,"("+l((Y=g.value)==null?void 0:Y.amount)+"% OFF)",1)):r("",!0),t("button",{onClick:at,class:"text-red-500"},s[18]||(s[18]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M12 20a8 8 0 1 1 0-16a8 8 0 0 1 0 16M9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586z"})],-1)]))]),t("h3",Ve,l((tt=g.value)==null?void 0:tt.discount),1)]))])])):r("",!0),t("div",Le,[t("h3",null,l(o.$t("Total due")),1),t("h3",null,l(w.value),1)]),s[24]||(s[24]=t("hr",null,null,-1)),parseFloat(w.value)>0?(n(),a("h2",ze,l(o.$t("Pay via")),1)):r("",!0),parseFloat(w.value)>0?(n(),a("div",Ue,[(n(!0),a(D,null,P(v.methods,(e,A)=>(n(),a("div",{key:A,class:""},[t("div",Re,[t("label",{onClick:B=>V(e.name),for:"myCheckbox",class:"cursor-pointer"},[t("div",{class:F(["w-5 h-5 border border-gray-400 rounded-md flex items-center justify-center",p(d).method===e.name?"bg-[#000]":""])},[p(d).method===e.name?(n(),a("svg",Ie,s[19]||(s[19]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)]))):r("",!0)],2)],8,Te),t("span",{onClick:B=>V(e.name),class:"ml-2 text-sm cursor-pointer"},l(e.name),9,Ne)])]))),128))])):r("",!0),t("div",Oe,[_.value==!1&&p(d).method!=null||_.value==!1&&w.value<=0?(n(),a("button",{key:0,onClick:s[1]||(s[1]=e=>rt()),type:"button",class:"w-full flex justify-center items-center space-x-1 rounded-md bg-primary px-3 py-2 text-sm text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[s[20]||(s[20]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[t("path",{fill:"currentColor",d:"M12 13a1.49 1.49 0 0 0-1 2.61V17a1 1 0 0 0 2 0v-1.39A1.49 1.49 0 0 0 12 13m5-4V7A5 5 0 0 0 7 7v2a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3M9 7a3 3 0 0 1 6 0v2H9Zm9 12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1Z"})],-1)),t("span",null,l(o.$t("Continue")),1)])):(n(),a("div",He,[_.value==!1?(n(),a("svg",Je,s[21]||(s[21]=[t("path",{fill:"currentColor",d:"M12 13a1.49 1.49 0 0 0-1 2.61V17a1 1 0 0 0 2 0v-1.39A1.49 1.49 0 0 0 12 13m5-4V7A5 5 0 0 0 7 7v2a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3M9 7a3 3 0 0 1 6 0v2H9Zm9 12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1Z"},null,-1)]))):r("",!0),_.value==!1?(n(),a("span",Ee,l(o.$t("Continue")),1)):r("",!0),_.value!=!1?(n(),a("svg",Ge,s[22]||(s[22]=[t("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:"0.5"},null,-1),t("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[t("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})],-1)]))):r("",!0),_.value!=!1?(n(),a("span",qe,l(o.$t("Redirecting you")),1)):r("",!0)]))])])):r("",!0)])])])])]}),_:1}))}};export{fs as default};