import{c as g,r as f,j as e}from"./app-BiexncSX.js";import{b as y,C as v}from"./card-DJd5CcuI.js";import{L as S}from"./label-BACPLsln.js";import{a as w,R as _}from"./radio-group-BX1IFCBp.js";import{e as C,D,d as k,a as B,b as h,f as j}from"./dialog-CRgq9Gqn.js";import{I as b}from"./Icon-DEKRlUi3.js";import{P as I,U as P}from"./UiCardFooter-DanosNug.js";import{U as R}from"./UiItemDatesSelector-BMHiyR9P.js";/* empty css            */import"./utils-DvRnx1Xn.js";import"./index-Dql7-O7m.js";import"./index-BLf-KPWz.js";import"./button-Cwvd_D5X.js";import"./index-BKRdUh5V.js";import"./index-CW_Do8vH.js";import"./index-B9bcoF29.js";import"./index-DRVc8jnD.js";import"./index-3q7cNFQn.js";import"./index-BxgPClSG.js";import"./index-Crj9qdjp.js";import"./index-CqDcnRSI.js";import"./lucide-react-C-jOYeYF.js";import"./createLucideIcon-CiyItOCI.js";import"./send-D-Y6pdiK.js";import"./wifi-yGaHKi1T.js";import"./bed-double-DlbqgL2k.js";import"./sun-D646Bdfj.js";import"./phone-Bieilqj-.js";import"./check-Do_LJdyj.js";import"./chevron-up-D0SwuXIU.js";import"./chevron-left-CfTNJLZd.js";import"./chevron-right-D-bIFB2o.js";import"./chevrons-up-down-B23gAN10.js";import"./shield-check-BcGX3gbR.js";import"./triangle-alert-Dp60wOMH.js";import"./youtube-C8R3zjo2.js";import"./plus-Cm0TKlUw.js";import"./clock-CXI9z3-R.js";import"./credit-card-DrNFemOT.js";import"./ellipsis-BcGSaUdp.js";import"./globe-CZ3jv1ui.js";import"./house-CmuRWHdh.js";import"./key-Dw2ORQjm.js";import"./loader-circle-C36m3ppM.js";import"./loader-uls-v5oU.js";import"./minus-BQGRvjuE.js";import"./monitor-4BAY-8Q0.js";import"./save-BnaHUyyd.js";import"./search-DVB94mIy.js";import"./sparkles-duG_NONK.js";import"./trash-2-B8EoOc8P.js";import"./users-B6ln6dzh.js";import"./utensils-CU7nxPop.js";import"./x-Cp4MPESs.js";import"./index-Bx9iUFeV.js";import"./spinner-BshPoFqP.js";function Ue(){const t=g.c(10),s={title:"Full Board",description:"Breakfast, lunch, and dinner included daily.",price:8500,variants:[{id:"standard",title:"Standard Full Board",price:8500},{id:"premium",title:"Premium Full Board",price:12500}]},[a,N]=f.useState(null);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],t[0]=r):r=t[0],f.useState(r);const[u]=f.useState(null);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=e.jsx("div",{className:"h-10 w-10 rounded-lg bg-main/10 flex items-center justify-center shrink-0",children:e.jsx(b,{icon:"Box",className:"text-main w-5 h-5"})}),t[1]=l):l=t[1];let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=e.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-main text-white",children:"Best"}),t[2]=m):m=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx("div",{className:"h-10 w-10 min-w-10 mt-1 rounded-md bg-main/10 flex items-center justify-center",children:e.jsx(b,{icon:"Box",className:"text-main w-6 h-6"})}),t[3]=o):o=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx("p",{className:"text-xs text-neutral-500",children:"Choose variant"}),t[4]=n):n=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=i=>N(i),t[5]=c):c=t[5];let p;t[6]!==a?(p=i=>e.jsx("div",{className:`flex justify-between items-center border p-2 rounded cursor-pointer ${a===i.id?"bg-main/10 border-main/40 text-main":"hover:bg-neutral-100"}`,children:e.jsxs(S,{className:"flex items-start gap-2",children:[e.jsx(_,{value:i.id,className:"mt-1"}),e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"flex justify-between text-black",children:[e.jsx(h,{className:"text-sm",children:i.title}),e.jsxs("span",{className:"text-sm font-semibold whitespace-nowrap",children:["LKR ",i.price]})]}),e.jsx(j,{className:"text-xs text-neutral-500",children:"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Non aut ad"})]})]})},i.id),t[6]=a,t[7]=p):p=t[7];let d,x;return t[8]===Symbol.for("react.memo_cache_sentinel")?(d=e.jsx(R,{stayDays:[]}),x=e.jsx(P,{title:"Total Price",subTitle:"package",price:200,buttonTitle:"Apply Selection",onClick:F}),t[8]=d,t[9]=x):(d=t[8],x=t[9]),e.jsxs(e.Fragment,{children:[e.jsxs(C,{children:[e.jsx(D,{asChild:!0,children:e.jsxs("label",{className:`group relative h-fit flex gap-3 rounded-sm border p-3 bg-white border-neutral-200 cursor-pointer transition-all
                                    border-main bg-white
                                `,children:[l,e.jsxs("div",{className:"flex-1 space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"font-semibold text-sm text-neutral-900",children:s.title}),m]}),e.jsx("p",{className:"text-xs text-neutral-500",children:s.description})]}),e.jsx("div",{className:"flex flex-col items-end justify-end",children:e.jsx("span",{className:"text-sm font-semibold text-neutral-900",children:e.jsx(I,{value:s.price})})})]})}),e.jsxs(k,{className:"w-105 p-4 rounded-sm gap-4",children:[e.jsx(B,{className:"flex justify-start items-start",children:e.jsxs("div",{className:"flex items-start gap-2 w-full",children:[o,e.jsxs("div",{className:"",children:[e.jsx(h,{className:"text-base",children:s.title}),e.jsx(j,{className:"text-sm text-neutral-500",children:s.description})]})]})}),e.jsxs("div",{className:"space-y-2",children:[n,e.jsx(w,{value:a||"",onValueChange:c,className:"space-y-1",children:s.variants.map(p)})]}),d,x]})]}),u&&e.jsx(y,{className:"w-[380px]",children:e.jsxs(v,{className:"text-sm text-neutral-700",children:["Selected Variant:"," ",s.variants.find(i=>i.id===u.variantId)?.title||"-"," ",e.jsx("br",{}),"Days: ",u.days.join(", ")||"-"]})})]})}function F(){}export{Ue as default};
