"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[457],{6003:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(5893),o=r(7294),a=r(1163);function s(e){let{opened:t,min:r,max:s,value:l,excluded:c,onValueChange:i}=e,{locale:d}=(0,a.useRouter)(),[u,m]=(0,o.useState)(l);(0,o.useEffect)(()=>{"string"==typeof r&&l<r||"string"==typeof s&&l>s||m(l)},[r,s,l]);let[x,h]=(0,o.useState)(()=>{let e=new Date(l||r||s);return(isNaN(e)?new Date:e).getMonth()}),[p,f]=(0,o.useState)(()=>{let e=new Date(l||r||s);return(isNaN(e)?new Date:e).getFullYear()});(0,o.useEffect)(()=>{if(!t&&u){let[e,r,n]=u.split("-");h(parseInt(r)-1),f(parseInt(e))}},[t,u]);let g=Array.from({length:7},(e,t)=>j(new Date,t-new Date().getDay()).toLocaleDateString(d,{weekday:"short"}).slice(0,2)),w=(0,o.useMemo)(()=>{let e=[],t=new Date(p,x),r=new Date(p,x+1,0);for(let n=j(t,-t.getDay());n<=r;n.setDate(n.getDate()+7)){let o=[];for(let a=0;a<7;a++){let s=j(n,a);o.push({label:s.getDate(),value:"".concat(s.getFullYear().toString().padStart(4,"0"),"-").concat((s.getMonth()+1).toString().padStart(2,"0"),"-").concat(s.getDate().toString().padStart(2,"0"))})}e.push(o)}return e},[x,p]);function y(e){x+e<0?(h(11),f(e=>e-1)):x+e>=12?(h(0),f(e=>e+1)):h(t=>t+e)}function j(e,t){let r=new Date(e);return r.setDate(r.getDate()+t),r}function v(e){let t=e.target.value;"string"==typeof r&&t<r||"string"==typeof s&&t>s||(null==c?void 0:c.includes(t))||u===t||(m(t),"function"==typeof i&&i(t,e.target))}return(0,n.jsxs)("div",{className:"absolute z-50 top-[calc(100%+0.5rem)] left-4 w-fit h-fit bg-white border border-gray-600 rounded-md ".concat(t?"flex":"hidden"," flex-col gap-y-0"),children:[(0,n.jsx)("div",{className:"absolute -top-4 left-2 border-[0.5rem] border-transparent !border-b-gray-600",children:(0,n.jsx)("div",{className:"absolute -top-[0.45rem] -left-2 border-[0.5rem] border-transparent !border-b-gray-300"})}),(0,n.jsxs)("div",{className:"border-0 rounded-t-md bg-gray-300 flex flex-col gap-y-0 p-3 border-b border-gray-600",children:[(0,n.jsxs)("div",{className:"w-full h-fit flex flex-row place-content-between items-center",children:[(0,n.jsx)("button",{onClick:()=>y(-1),type:"button",className:"text-gray-400 hover:text-gray-600 w-6 h-6",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 48 48",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"m26.95 34.9-9.9-9.9q-.25-.25-.35-.5-.1-.25-.1-.55 0-.3.1-.55.1-.25.35-.5L27 12.95q.45-.45 1.075-.45t1.075.45q.45.45.425 1.1-.025.65-.475 1.1l-8.8 8.8 8.85 8.85q.45.45.45 1.05 0 .6-.45 1.05-.45.45-1.1.45-.65 0-1.1-.45Z"})})}),(0,n.jsx)("p",{className:"font-medium text-base",children:new Date(p,x).toLocaleDateString(d,{year:"numeric",month:"long"})}),(0,n.jsx)("button",{onClick:()=>y(1),type:"button",className:"text-gray-400 hover:text-gray-600 w-6 h-6",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 48 48",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M17.7 34.9q-.4-.5-.425-1.1-.025-.6.425-1.05l8.8-8.8-8.85-8.85q-.4-.4-.375-1.075.025-.675.425-1.075.5-.5 1.075-.475.575.025 1.025.475l9.95 9.95q.25.25.35.5.1.25.1.55 0 .3-.1.55-.1.25-.35.5l-9.9 9.9q-.45.45-1.05.425-.6-.025-1.1-.425Z"})})})]}),(0,n.jsx)("div",{className:"w-full h-fit flex flex-row gap-x-2 place-content-evenly items-center text-sm",children:g.map((e,t)=>(0,n.jsx)("p",{className:"w-6 h-fit text-center",children:e},"dow-".concat(t)))})]}),(0,n.jsx)("div",{className:"p-3 bg-transparent flex flex-col gap-y-2 justify-center items-center",children:w.map((e,t)=>(0,n.jsx)("div",{className:"w-full h-fit flex flex-row gap-x-2 place-content-between items-center",children:e.map((e,o)=>{let{label:a,value:l}=e;return(0,n.jsx)("button",{disabled:"string"==typeof r&&l<r||"string"==typeof s&&l>s||(null==c?void 0:c.includes(l)),type:"button",className:"w-6 h-fit border-0 rounded-md disabled:text-gray-300 text-inherit ".concat(l===u?"bg-blue-300":"bg-transparent"),value:l,onClick:v,children:a},"day-".concat(t,"-").concat(o))})},"week-".concat(t)))})]})}let l=(0,o.forwardRef)((e,t)=>{let{name:r,defaultValue:a,onValueChange:l,min:c,max:i,excluded:d,className:u}=e,m=(0,o.useRef)(),x=(0,o.useId)(),[h,p]=(0,o.useState)(!1),[f,g]=(0,o.useState)(a),w=e=>!isNaN(new Date(e));function y(e){let t=document.getElementById(x);try{if(w(e)){if("string"==typeof c&&e<c||"string"==typeof i&&e>i||(null==d?void 0:d.includes(e)))throw"Disabled dates"}else throw"Invalid Date";let r=new Date(e),n="".concat(r.getFullYear().toString().padStart(4,"0"),"-").concat((r.getMonth()+1).toString().padStart(2,"0"),"-").concat(r.getDate().toString().padStart(2,"0"));g(n),"function"==typeof l&&l(n,t)}catch(o){console.error("changeCurrentDate error: ",o),t.value=f}}return(0,o.useEffect)(()=>{let e=document.getElementById(x);e&&(e.value=f)},[f,x]),(0,o.useEffect)(()=>{function e(e){var t;let r=null==m?void 0:null===(t=m.current)||void 0===t?void 0:t.contains(e.target);r||p(!1)}return h?(document.addEventListener("click",e),document.addEventListener("touchstart",e)):(document.removeEventListener("click",e),document.removeEventListener("touchstart",e)),()=>{document.removeEventListener("click",e),document.removeEventListener("touchstart",e)}},[h]),(0,n.jsxs)("div",{className:"relative",ref:m,children:[(0,n.jsx)("input",{ref:t,id:x,type:"text",name:r,defaultValue:a,onFocus:()=>p(!0),onBlur:function(e){y(e.target.value)},className:u}),(0,n.jsx)(s,{opened:h,value:f,min:c,max:i,excluded:d,onValueChange:function(e,t){y(e),p(!1)}})]})});l.displayName="InputDate";let c=(0,o.forwardRef)((e,t)=>{let{type:r="text",name:o,label:a,error:s,onValueChange:c,...i}=e,d=e=>{"function"==typeof c&&c(e.target.value,e.target)};return(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("label",{htmlFor:o,className:"text-sm font-medium text-gray-900 whitespace-pre-wrap",children:a}),"textarea"===r?(0,n.jsx)("textarea",{ref:t,name:o,className:"block w-full shadow-sm rounded-md border border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 outline-none px-7 py-1",onChange:d,...i}):"date"===r?(0,n.jsx)(l,{ref:t,name:o,className:"block w-full shadow-sm rounded-md border border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 outline-none px-7 py-1",onValueChange:c,...i}):(0,n.jsx)("input",{ref:t,type:r,name:o,className:"block w-full shadow-sm rounded-md border border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 outline-none px-7 py-1",onChange:d,...i}),s&&(0,n.jsx)("p",{className:"text-sm text-red-500",children:s})]})});c.displayName="InputField";var i=c},4433:function(e,t,r){var n=r(5893),o=r(7294),a=r(5244);let s=(0,o.forwardRef)((e,t)=>{let{name:r,label:s,options:l,onValueChange:c,defaultValue:i,className:d,selectFit:u,...m}=e,[x,h]=(0,o.useState)(Array.isArray(l)&&l||[]);(0,o.useEffect)(()=>{let e=Array.isArray(l)&&l||[];(e.length!==x.length||e.some(e=>x.every(t=>!(0,a.U)(e,t))))&&h(e)},[l,x]);let[p,f]=(0,o.useState)(i||x.length>0&&x[0].value||null);return(0,o.useEffect)(()=>f(i||x.length>0&&x[0].value||null),[x,i]),(0,n.jsxs)("div",{className:"w-full ".concat(d||""),children:[(0,n.jsx)("label",{htmlFor:r,className:"m-0 p-0 text-sm font-medium text-gray-900",children:s}),(0,n.jsx)("select",{ref:t,name:r,onChange:function(e){f(e.target.value),c&&c(e.target.value,e.target)},className:"block ".concat(u?"w-fit":"w-full"," shadow-sm rounded-md border-gray-300 border px-7 py-1 outline-none focus:border-indigo-500 focus:ring-indigo-500"),value:p||void 0,...m,children:x.map(e=>{let{value:t,label:r}=e;return(0,n.jsx)("option",{value:t,children:r},"option-".concat(r))})})]})});s.displayName="InputSelection",t.Z=s},38:function(e,t,r){r.d(t,{Z:function(){return h}});var n=r(5893),o=r(5675),a=r.n(o),s=r(4426),l=r(7294),c=r(5121),i=r(2920),d=r(2283),u=r(1163);function m(e){let{hiddenPriceDetail:t,canEdit:r,itemId:o,img:l,projectName:c,itemTotal:i,date:u,name:m,quantity:x,price:h,children:p,hour:f}=e,{removeItem:g}=(0,s.j)(),{t:w}=(0,d.$G)(["shopping-cart-preview","common"]);return(0,n.jsxs)("li",{className:"flex flex-row py-6",children:[(0,n.jsx)("div",{className:"relative h-24 w-24 overflow-hidden border border-gray-200 rounded-md flex-shrink-0",children:(0,n.jsx)(a(),{src:l,className:"object-cover object-center",alt:"Product Image",fill:!0})}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col px-4",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-between text-base font-medium text-gray-900",children:[(0,n.jsx)("h3",{className:"w-9/12",children:c}),!1===t&&(0,n.jsxs)("div",{className:"ml-4 flex flex-row gap-y-0 items-center",children:[(0,n.jsx)("span",{className:"flex-1",children:0===i?w("Free",{ns:"common"}):"$".concat((Math.round(100*i)/100).toFixed(2))}),r&&(0,n.jsx)("button",{onClick:()=>g(o),type:"button",className:"h-fit w-fit text-red-600 inline-block",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 48 48",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M13.05 42q-1.2 0-2.1-.9-.9-.9-.9-2.1V10.5H8v-3h9.4V6h13.2v1.5H40v3h-2.05V39q0 1.2-.9 2.1-.9.9-2.1.9Zm5.3-7.3h3V14.75h-3Zm8.3 0h3V14.75h-3Z"})})})]})]}),(0,n.jsxs)("p",{className:"text-sm text-gray-500",children:[u," ",m]}),!1===t?(0,n.jsxs)("p",{className:"text-sm text-gray-500",children:[w("Qty")," ",x," x ",0===h?w("Free",{ns:"common"}):"$".concat((Math.round(100*h)/100).toFixed(2))," ","0"!==f&&0!==f?"x 時數 "+f:""]}):(0,n.jsxs)("p",{className:"text-sm text-gray-500",children:[w("Qty")," ",x]}),p]})]})}function x(e){let{children:t}=e;return(0,n.jsxs)("div",{className:"flex flex-row gap-x-1 items-center text-base text-red-600",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"inline-block h-4 w-4 m-0",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M24 34q.7 0 1.175-.475.475-.475.475-1.175 0-.7-.475-1.175Q24.7 30.7 24 30.7q-.7 0-1.175.475-.475.475-.475 1.175 0 .7.475 1.175Q23.3 34 24 34Zm-1.35-7.65h3V13.7h-3ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 23.95q0-4.1 1.575-7.75 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24.05 4q4.1 0 7.75 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),(0,n.jsx)("span",{className:"flex-1",children:t})]})}function h(e){let{errorItems:t,sessionErrors:r,canEdit:o}=e,{items:a,coupons:h,discountSettings:p,subtotal:f,discount:g,cartTotal:w,bulkAddItems:y,addCoupon:j,removeCoupon:v,hasCoupon:b}=(0,s.j)(),[N,k]=(0,l.useState)(!1),D=(0,l.useMemo)(()=>Object.keys(t||{}).filter(e=>!a.map(e=>e.id).includes(e)),[a,t]),{t:q}=(0,d.$G)(["shopping-cart-preview","common"]),{locale:_}=(0,u.useRouter)(),C=(0,l.useRef)(),[M,E]=(0,l.useState)(!1),S=(0,u.useRouter)();async function F(){if(!N){k(!0);try{let e=[];for(let r of D){let[n,o,a,s]=r.split("&&");console.log("project: ".concat(n,", bookingDate: ").concat(o,", session: ").concat(a,", product: ").concat(s));let l=await c.Z.get("/api/getProductById",{params:{projectId:n,bookingDate:o,sessionKey:a,productId:s}}),d=l.data;e.push({id:r,quantity:t[r].session_min_qty,img:d.project.banner,productId:d.product_id,name:d.name,extra_hour_price:d.extra_hour_price,name_tc:d.name_tc,name_sc:d.name_sc,price:d.price,date:d.date,session:d.session,project:d.project})}console.log("newItems: ",e),e.length>0&&y(e)}catch(u){console.log("addMissingItems Error: ",u),i.Am.error("Error while adding missing items: ".concat(u.message))}k(!1)}}async function Z(){if(!N){k(!0);try{if(!C.current||!C.current.value)return;let e=await c.Z.post("/api/getDiscount",{coupon_code:C.current.value});if(console.log(e.data),console.log("discountSettings: ",p),!("coupon"in e.data&&"name"in e.data.coupon))throw Error(q("couponErrorMsg.invalidCoupon"));if(b(e.data.coupon.name))throw Error(q("couponErrorMsg.alreadyExist"));if(!h.every(t=>t.promotion_discount_type===e.data.coupon.promotion_discount_type))throw Error(q("couponErrorMsg.unmatchType"));if("number"==typeof p[e.data.coupon.promotion_discount_type]&&h.length+1>p[e.data.coupon.promotion_discount_type])throw Error(q("couponErrorMsg.exceedMaxCouponCount"));if(a.every(t=>!e.data.coupon.product_id.find(e=>e.product_id===t.productId)))throw Error(q("couponErrorMsg.noApplicableItem"));j(e.data.coupon),C.current.value=""}catch(t){console.error("addNewCoupon Error: ",t),i.Am.error(/^couponErrorMsg\./.exec(t.message)?q(t.message):t.message)}k(!1)}}return(0,l.useEffect)(()=>{if(S.isReady){let{group_invitation_id:e}=S.query;"357"===e&&E(!0)}},[S.isReady,S.query]),(0,n.jsxs)("div",{className:"h-fit w-full bg-gray-100 border-0 rounded-md py-4 px-6",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-gray-900 pb-4",children:q("Shopping Cart")}),D.length>0&&(0,n.jsxs)("p",{className:"text-red-600 w-full h-fit text-base font-medium",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"inline-block h-4 w-4 mr-1",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M24 34q.7 0 1.175-.475.475-.475.475-1.175 0-.7-.475-1.175Q24.7 30.7 24 30.7q-.7 0-1.175.475-.475.475-.475 1.175 0 .7.475 1.175Q23.3 34 24 34Zm-1.35-7.65h3V13.7h-3ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 23.95q0-4.1 1.575-7.75 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24.05 4q4.1 0 7.75 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),q("Some required items are missing, do you want to "),(0,n.jsx)("button",{onClick:F,disabled:N,type:"button",className:"underline text-red-300 disabled:text-gray-300",children:q("add to shopping cart")}),"?"]}),(0,n.jsx)("ul",{className:"list-none overflow-y-auto divide-y divide-gray-200",children:a.map(e=>(0,n.jsxs)(m,{hiddenPriceDetail:M,canEdit:o,itemId:e.id,img:e.img,projectName:"en"===_?e.project.name:e.project.name_tc,itemTotal:e.itemTotal,date:e.date,name:"en"===_?e.name:"zh-CN"===_?e.name_sc:e.name_tc,quantity:e.quantity,price:e.price,hour:e.hour,children:[e.date&&e.session&&0==e.hour&&Date.parse("".concat(e.date,"T").concat(e.session.start_time,":00"))<Date.now()&&(0,n.jsxs)("div",{className:"flex flex-row gap-x-1 items-center text-base text-yellow-600 ",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"inline-block h-4 w-4 m-0",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M2 42 24 4l22 38Zm22.2-5.85q.65 0 1.075-.425.425-.425.425-1.075 0-.65-.425-1.075-.425-.425-1.075-.425-.65 0-1.075.425Q22.7 34 22.7 34.65q0 .65.425 1.075.425.425 1.075.425Zm-1.5-5.55h3V19.4h-3Z"})}),(0,n.jsx)("span",{className:"flex-1",children:q("This event has already started.")})]}),t&&e.id in t&&t[e.id].errorMsg.map((e,t)=>{let{key:r,value:o}=e;return(0,n.jsx)(x,{children:q(r,o||{})},"error-msg-".concat(t))}),r&&Object.entries(r).filter(t=>{let[r,n]=t;return e.id.includes(r)}).map((e,t)=>{let[r,{key:o,value:a}]=e;return(0,n.jsx)(x,{children:q(o,a||{})},"error-msg-".concat(t))})]},"cart-item-".concat(e.id)))}),!o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-base font-medium text-gray-900 py-4 border-t border-gray-200",children:q("Coupons")}),(0,n.jsx)("ul",{className:"flex flex-row flex-wrap gap-1",children:h.map((e,t)=>(0,n.jsx)("li",{className:"w-full",children:(0,n.jsxs)("div",{className:"w-full flex flex-row",children:[(0,n.jsx)("p",{className:"flex-1",children:e.name}),(0,n.jsxs)("p",{className:"text-end",children:[q("Selected Products")," -","discount_amount"===e.promotion_discount_type?"$".concat((Math.round(100*e.discount_value)/100).toFixed(2)):"".concat((Math.round(100*e.discount_value)/100).toFixed(2),"%")]}),(0,n.jsx)("button",{onClick:()=>v(e.name),type:"button",className:"h-fit w-fit text-red-600 inline-block self-center",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 48 48",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M13.05 42q-1.2 0-2.1-.9-.9-.9-.9-2.1V10.5H8v-3h9.4V6h13.2v1.5H40v3h-2.05V39q0 1.2-.9 2.1-.9.9-2.1.9Zm5.3-7.3h3V14.75h-3Zm8.3 0h3V14.75h-3Z"})})})]})},"coupon-".concat(e.name)))}),(0,n.jsxs)("div",{className:"flex flex-row gap-x-2 my-4",children:[(0,n.jsx)("input",{ref:C,type:"text",placeholder:"GG000001",className:"flex-1 px-2 rounded-md"}),(0,n.jsx)("button",{onClick:Z,disabled:N,type:"button",className:"bg-indigo-400 enabled:bg-indigo-600 enabled:hover:bg-indigo-700 w-fit border-0 rounded-md text-white text-sm px-2 py-1",children:q("Apply")})]})]}),M?(0,n.jsxs)("div",{className:"flex flex-col text-base text-gray-900 border-t border-gray-200 py-4 gap-y-1",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,n.jsx)("p",{children:q("CNY Subtotal")}),(0,n.jsx)("p",{children:0===f?q("Free",{ns:"common"}):"\xa5".concat((Math.round(8800*a[0].quantity)/100).toFixed(2))})]}),(0,n.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,n.jsx)("p",{children:q("Discount")}),(0,n.jsx)("p",{children:"$".concat((Math.round(100*g)/100).toFixed(2))})]}),(0,n.jsxs)("div",{className:"flex flex-row justify-between font-medium",children:[(0,n.jsx)("p",{children:q("CNY Total")}),(0,n.jsx)("p",{children:0===w?q("Free",{ns:"common"}):"\xa5".concat((Math.round(8800*a[0].quantity)/100).toFixed(2))})]}),0!==w&&(0,n.jsxs)("div",{className:"mt-4 text-xs",children:[(0,n.jsx)("p",{children:q("CNY Disclaimer Top",{hkd:w,cny:(Math.round(8800*a[0].quantity)/100).toFixed(2)})}),(0,n.jsx)("p",{children:q("CNY Disclaimer Middle")}),(0,n.jsx)("p",{children:q("CNY Disclaimer Down")})]})]}):(0,n.jsxs)("div",{className:"flex flex-col text-base text-gray-900 border-t border-gray-200 py-4 gap-y-1",children:[(0,n.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,n.jsx)("p",{children:q("Subtotal")}),(0,n.jsx)("p",{children:0===f?q("Free",{ns:"common"}):"$".concat((Math.round(100*f)/100).toFixed(2))})]}),(0,n.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,n.jsx)("p",{children:q("Discount")}),(0,n.jsx)("p",{children:"$".concat((Math.round(100*g)/100).toFixed(2))})]}),(0,n.jsxs)("div",{className:"flex flex-row justify-between font-medium",children:[(0,n.jsx)("p",{children:q("Total")}),(0,n.jsx)("p",{children:0===w?q("Free",{ns:"common"}):"$".concat((Math.round(100*w)/100).toFixed(2))})]})]})]})}},5244:function(e,t,r){r.d(t,{U:function(){return n}});function n(e,t){let r=Object.keys(e),n=Object.keys(t);return r.every(r=>n.includes(r)&&e[r]===t[r])&&n.every(n=>r.includes(n)&&t[n]===e[n])}}}]);