import{c as w,u as y,j as t}from"./app-BiexncSX.js";import{B as C}from"./button-Cwvd_D5X.js";import{S as F}from"./spinner-BshPoFqP.js";import{c as S}from"./utils-DvRnx1Xn.js";function T(g){const e=w.c(5),{value:h,noCurrency:p}=g,{currency:i}=y().props,l=h*i.exchange_rate;if(l==0)return"--";const n=p?"":i.selected;let s;e[0]!==l?(s=l.toLocaleString(),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=t.jsxs(t.Fragment,{children:["  ",n," ",s," "]}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function U(g){const e=w.c(26),{title:h,subTitle:p,price:i,buttonTitle:l,onClick:n,disabled:s,hide:r,loading:v,className:b}=g,N=h===void 0?"Total Price":h;let a;e[0]!==b?(a=S("justify-between items-end pt-3 flex flex-row border-t w-full ease-in",b),e[0]=b,e[1]=a):a=e[1];let c;e[2]!==N?(c=t.jsx("p",{className:"text-xs text-neutral-500",children:N}),e[2]=N,e[3]=c):c=e[3];let o;e[4]!==i?(o=t.jsx("span",{children:t.jsx(T,{value:i})}),e[4]=i,e[5]=o):o=e[5];let x;e[6]!==p?(x=t.jsxs("span",{className:"text-sm font-normal text-neutral-500",children:[" / ",p]}),e[6]=p,e[7]=x):x=e[7];let d;e[8]!==o||e[9]!==x?(d=t.jsxs("h2",{className:"text-xl font-bold text-neutral-900",children:[o,x]}),e[8]=o,e[9]=x,e[10]=d):d=e[10];let f;e[11]!==c||e[12]!==d?(f=t.jsxs("div",{children:[c,d]}),e[11]=c,e[12]=d,e[13]=f):f=e[13];const P=`w-fit  cursor-pointer rounded-full bg-main px-5 hover:bg-main hover:scale-[1.005] active:scale-99 ring-4 ring-main/40 ${r&&"hidden"}`;let m;e[14]!==l||e[15]!==v?(m=v?t.jsxs(t.Fragment,{children:[t.jsx(F,{})," Please Wait"]}):l,e[14]=l,e[15]=v,e[16]=m):m=e[16];let u;e[17]!==s||e[18]!==n||e[19]!==P||e[20]!==m?(u=t.jsxs(C,{disabled:s,className:P,onClick:n,children:[" ",m," "]}),e[17]=s,e[18]=n,e[19]=P,e[20]=m,e[21]=u):u=e[21];let j;return e[22]!==u||e[23]!==a||e[24]!==f?(j=t.jsxs("div",{className:a,children:[f,u]}),e[22]=u,e[23]=a,e[24]=f,e[25]=j):j=e[25],j}export{T as P,U};
