PageSourceSearch

https://hotelsunstargroup.com/assets/PackageDetail-DcX1sWCa.js

js hotelsunstargroup.com collected 2026-10-09 17:19:07 UTC 20,952 bytes, 16 lines download raw bytes

1import{r as g,j as e,d as q,u as F,s as G,C as V}from"./index-Dqjr8Yhf.js";import{a as X,k as J}from"./useTravelPackagesHook-Knoj6kCv.js";import{m as U}from"./slugify-DncMt51I.js";import{C as Y}from"./chevron-left-CVJHTWby.js";import{C as Q}from"./chevron-right-DaZjn19H.js";import{M as Z}from"./map-pin-Td88MxBV.js";import{H as ee}from"./hotel-Ckc4VgRk.js";import{U as se}from"./utensils-D2ntG2o-.js";import{c as R}from"./createLucideIcon-Blvc5dSz.js";import{i as te,b as le,e as M,g as $,p as ae}from"./itineraryHelpers-CnfLzuTk.js";import{R as E}from"./rotate-ccw-XaNAyNGy.js";import{M as A}from"./minus-Bpt6xCf2.js";import{P as H}from"./plus-kx0jpkyK.js";import{X as K}from"./x-nFHJXzu0.js";import{C as re}from"./circle-check-DppnKfPK.js";import{C as ne}from"./circle-x-6gg0j3-B.js";import{T as ie}from"./TestimonialSection-CcdYmjvG.js";import{P as oe}from"./PageSeo-BGhTUfgW.js";import{L as ce}from"./loader-C9kYF0uV.js";import"./CommonSlider-DOfoDWf-.js";import"./effect-fade-IWpFbnZr.js";import"./Icons-BF-q90O-.js";import"./proxy-CZ1SbDk5.js";import"./useTestimonialHook-D1jfCYWl.js";import"./seo-BXL82IDv.js";/**
2 * @license lucide-react v0.468.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const de=R("Binoculars",[["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3",key:"3apit1"}],["path",{d:"M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z",key:"rhpgnw"}],["path",{d:"M 22 16 L 2 16",key:"14lkq7"}],["path",{d:"M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z",key:"104b3k"}],["path",{d:"M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3",key:"14fczp"}]]);/**
7 * @license lucide-react v0.468.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const me=R("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]),xe=({packageDetails:s})=>{var w,N,C;const[l,t]=g.useState(0),[r,u]=g.useState(!0),[c,b]=g.useState(!1),n=g.useRef(null),p=3e3,i=s==null?void 0:s.images;g.useEffect(()=>(r&&!c?n.current=setInterval(()=>{t(x=>x===i.length-1?0:x+1)},p):n.current&&clearInterval(n.current),()=>{n.current&&clearInterval(n.current)}),[r,c]);const h=()=>{t(x=>x===0?i.length-1:x-1),r&&(clearInterval(n.current),setTimeout(()=>{r&&!c&&(n.current=setInterval(()=>{t(x=>x===i.length-1?0:x+1)},p))},100))},o=()=>{t(x=>x===i.length-1?0:x+1),r&&(clearInterval(n.current),setTimeout(()=>{r&&!c&&(n.current=setInterval(()=>{t(x=>x===i.length-1?0:x+1)},p))},100))},a=x=>{t(x),r&&(clearInterval(n.current),setTimeout(()=>{r&&!c&&(n.current=setInterval(()=>{t(v=>v===i.length-1?0:v+1)},p))},100))};return i!=null&&i.length?e.jsxs("div",{className:"relative group w-full",children:[e.jsxs("div",{className:"relative w-full overflow-hidden rounded-xl bg-gray-100 shadow-sm border border-gray-200",children:[e.jsx("img",{src:typeof i[l]=="string"?i[l]:((w=i[l])==null?void 0:w.url)||"/placeholder.svg",alt:((N=i[l])==null?void 0:N.alt)||"Tour Image",title:((C=i[l])==null?void 0:C.alt)||"Tour Image",className:"w-full h-[280px] sm:h-[320px] lg:h-[360px] object-cover transition-opacity duration-300"}),i.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:h,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-teal-600/80 hover:bg-teal-700 text-white p-2 rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 focus:opacity-100 shadow-md","aria-label":"Previous image",children:e.jsx(Y,{className:"w-6 h-6"})}),e.jsx("button",{onClick:o,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-teal-600/80 hover:bg-teal-700 text-white p-2 rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 focus:opacity-100 shadow-md","aria-label":"Next image",children:e.jsx(Q,{className:"w-6 h-6"})})]}),i.length>0&&e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2 bg-black/20 p-2 rounded-full backdrop-blur-sm",children:i.map((x,v)=>e.jsx("button",{onClick:()=>a(v),className:`w-2 h-2 rounded-full transition-all ${v===l?"bg-primary-yellow w-4":"bg-white/70 hover:bg-white"}`,"aria-label":`Go to slide ${v+1}`},v))})]}),e.jsx("style",{jsx:!0,children:`
12          @keyframes progress {
13            0% { width: 0%; }
14            100% { width: 100%; }
15          }
16        `})]}):e.jsx("div",{className:"relative w-full overflow-hidden rounded-xl border border-gray-200 bg-gray-100 shadow-sm",children:e.jsx("div",{className:"flex h-[280px] sm:h-[320px] items-center justify-center text-gray-400 text-sm",children:"No images available"})})},he="/images/TourAndTravel/night.svg",ue="/images/TourAndTravel/day.svg",ge=({packageDetails:s})=>{const{title:l,description:t,duration:r,price:u,highlights:c=[],inclusions:b=[],destination:n}=s||{},p=Array.isArray(b)&&b.length>0?b:Array.isArray(c)?c:[],i=q(),h=o=>{const a=(o==null?void 0:o.toLowerCase())||"";return a.includes("hotel")||a.includes("stay")?e.jsx(ee,{className:"w-4 h-4"}):a.includes("meal")||a.includes("food")||a.includes("breakfast")?e.jsx(se,{className:"w-4 h-4"}):a.includes("transfer")||a.includes("transport")||a.includes("cab")||a.includes("pickup")||a.includes("drop")||a.includes("parking")?e.
16jsx(me,{className:"w-4 h-4"}):a.includes("sightseeing")||a.includes("tour")||a.includes("itinerary")?e.jsx(de,{className:"w-4 h-4"}):e.jsx("span",{className:"flex h-4 w-4 items-center justify-center text-[10px] font-bold",children:"✓"})};return e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 shadow-sm p-5 md:p-6 w-full",children:[e.jsx("h1",{className:"text-xl md:text-2xl font-bold text-teal-700 mb-2 leading-tight",children:l}),t!=null&&t.trim()?e.jsx("p",{className:"mb-3 text-gray-600 text-sm leading-relaxed",children:t.trim()}):null,e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-gray-600 text-sm mb-4",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("img",{src:he,alt:"Nights",title:"Nights",className:"w-4 h-4"}),e.jsxs("span",{className:"font-semibold text-teal-600",children:[(r==null?void 0:r.nights)||0," Nights"]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("img",{src:ue,alt:"Days",title:"Days",className:"w-4 h-4"}),e.jsxs("span",{className:"font-semibold text-primary-yellow",children:[(r==null?void 0:r.days)||0," Days"]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-gray-500",children:[e.jsx(Z,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:n||"India"})]})]}),e.jsx("div",{className:"border-t border-gray-100 pt-4",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6 items-start",children:[e.jsxs("div",{className:"min-w-0 sm:pr-2",children:[e.jsx("p",{className:"text-gray-400 text-[10px] uppercase font-semibold tracking-wider mb-1",children:"Package Cost"}),u?e.jsxs("div",{className:"mb-0.5",children:[e.jsxs("span",{className:"text-2xl md:text-3xl font-bold text-teal-700",children:["₹",u]}),e.jsx("span",{className:"text-lg font-bold text-teal-700",children:"/-"})]}):e.jsx("div",{className:"text-lg md:text-xl font-bold text-teal-700",children:"On Request"}),e.jsx("p",{className:"text-[10px] text-gray-400 font-medium",children:"*Per Person on twin sharing"})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-teal-700 font-semibold mb-2 text-sm",children:"Package Inclusions:"}),p.length>0?e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-2 gap-y-2.5",children:p.map((o,a)=>e.jsxs("li",{className:"flex min-w-0 items-start gap-2 rounded-md bg-gray-50/80 px-1.5 py-1.5 border border-gray-100",title:o,children:[e.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-gray-100 bg-white text-teal-600",children:h(o)}),e.jsx("span",{className:"min-w-0 flex-1 text-[10px] sm:text-[11px] font-medium leading-snug text-gray-600 break-words",children:o})]},`${a}-${o}`))}):e.jsx("p",{className:"text-xs text-gray-400 italic",children:"No inclusions listed."})]})]})}),e.jsx("button",{type:"button",onClick:()=>i("/travel-booking-form",{state:{packageData:s}}),className:"mt-5 w-full shrink-0 rounded-lg bg-primary-yellow py-3 px-6 text-sm font-bold uppercase tracking-wide text-white shadow-md transition-all hover:opacity-95",children:"Enquire Now"})]})},B="sunstar-package-closed-cards",L=(s,l)=>{const t=String((s==null?void 0:s.title)||"").trim(),r=String((s==null?void 0:s.day)||"").trim();return t?`${t}::${r}`:`item-${l}`},pe=s=>{if(!s||typeof window=="undefined")return new Set;try{const l=localStorage.getItem(`${B}:${s}`),t=l?JSON.parse(l):[];return new Set(Array.isArray(t)?t:[])}catch(l){return new Set}},ye=(s,l)=>{if(!(!s||typeof window=="undefined"))try{localStorage.setItem(`${B}:${s}`,JSON.stringify([...l]))}catch(t){}},O=({item:s,index:l,isOpen:t,onToggle:r,onClose:u=null,showClose:c=!0})=>{const b=ae(s==null?void 0:s.details),n=b.length>0,p=!!(s!=null&&s.image),i=n||p,h=(s==null?void 0:s.timing)||(s==null?void 0:s.day)||"";return e.jsxs("div",{className:"rounded-lg border border-primary-yellow bg-white p-4 shadow-sm transition hover:shadow-md",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"shrink-0 font-semibold text-primary-yellow text-mobile/h5 md:text-desktop/h5",children:l+1}),e.jsxs("div",{className:"min-w-0 flex-1 text-start",children:[e.jsx("h4",{className:"text-gray-800 text-mobile/h5 md:text-desktop/h5/medium",children:s.title}),h?e.jsx("p",{className:"mt-0.5 text-gray-500 text-mobile/body/2 md:text-desktop/body/2",children:h}):null]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[i?e.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),r()},className:"rounded-full p-1.5 text-primary-yellow transition-colors hover:bg-primary-yellow/10","aria-expanded":t,"aria-label":t?"Hide details":"Show details",children:t?e.jsx(A,{size:22}):e.jsx(H,{size:22})}):null,c&&u?e.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),u()},className:"rounded-full p-1.5 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-800","aria-label":"Hide card",children:e.jsx(K,{size:20})}):null]})]}),t&&i?e.jsxs("div",{className:"mt-4 flex flex-col gap-4 border-t border-gray-100 pt-4 sm:flex-row",children:[n?e.jsx("div",{className:"min-w-0 flex-1 text-start",children:e.jsx("ul",{className:"list-disc space-y-1 pl-5 text-gray-600 text-mobile/body/2 md:text-desktop/body/1",children:b.map((o,a)=>e.jsx("li",{children:o},a))})}):null,p?e.jsx("div",{className:"h-48 w-full shrink-0 overflow-hidden rounded-lg border border-gray-100 sm:h-auto sm:min-h-[10rem] sm:w-44 md:min-h-[11rem] md:w-52 lg:w-56",children:e.jsx("img",{src:s.image,alt:s.title||`Description ${l+1}`,title:s.title||`Description ${l+1}`,className:"h-full min-h-[10rem] w-full object-cover sm:min-h-full",loading:"lazy"})}):null]}):null]})},fe=({dayItem:s,dayIndex:l,isOpen:t,onToggle:r,onClose:u,openSightKey:c,onToggleSight:b})=>{const n=s.sights||[],p=n.length>0,i=s.day||`Day ${l+1}`;return e.jsxs("div",{className:"w-full rounded-lg border border-primary-yellow bg-white p-4 shadow-sm transition hover:shadow-md",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"shrink-0 font-semibold uppercase text-primary-yellow text-mobile/h5 md:text-desktop/h5",children:l+1}),e.jsxs("div",{className:"min-w-0 flex-1 text-start",children:[e.jsxs("h3",{className:"font-semibold text-gray-800 text-mobile/h5 md:text-desktop/h5",children:[i,s.title?e.jsxs("span",{className:"font-medium text-gray-600",children:[" — ",s.title]}):null]}),p?e.jsxs("p",{className:"mt-1 text-gray-500 text-sm",children:[n.length," sightseeing ",n.length===1?"spot":"spots"]}):e.jsx("p",{className:"mt-1 text-gray-400 text-sm",children:"No sightseeing added yet"})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[p?e.jsx("button",{type:"button",onClick:h=>{h.preventDefault(),h.stopPropagation(),r()},className:"rounded-full p-1.5 text-primary-yellow transition-colors hover:bg-primary-yellow/10","aria-expanded":t,"aria-label":t?"Collapse day":"Expand day",children:t?e.jsx(A,{size:22}):e.jsx(H,{size:22})}):null,e.jsx("button",{type:"button",onClick:h=>{h.preventDefault(),h.stopPropagation(),u()},className:"rounded-full p-1.5 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-800","aria-label":"Hide day",children:e.jsx(K,{size:20})})]})]}),t&&p?e.jsx("div",{className:"mt-4 border-t border-gray-100 pt-4",children:e.jsx("div",{className:"grid w-full grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",children:n.map((h,o)=>{const a=`${l}-${o}
16`,w=c===a;return e.jsx("div",{className:"min-w-0",children:e.jsx(O,{item:{title:h.title,details:h.details,image:h.image,timing:h.timing},index:o,isOpen:w,onToggle:()=>b(a),showClose:!1})},a)})})}):null]})},z=({closedItems:s,activeCount:l,onRestore:t,getLabel:r})=>s.length===0?null:e.jsxs("div",{className:`rounded-lg border border-primary-yellow bg-white p-4 shadow-sm ${l>0?"mt-6":""}`,children:[e.jsx("h3",{className:"font-semibold text-gray-800 text-mobile/h5 md:text-desktop/h5",children:"Your closed cards"}),e.jsx("p",{className:"mt-1 text-gray-500 text-sm",children:"Saved on this device. Restore any card to show it again above."}),e.jsx("div",{className:"mt-4 space-y-3",children:s.map(({key:u},c)=>e.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-primary-yellow/50 bg-gray-50 px-3 py-3",children:[e.jsx("div",{className:"min-w-0 text-start",children:e.jsxs("p",{className:"font-medium text-gray-800 text-sm md:text-base",children:[c+1,". ",r(u)]})}),e.jsxs("button",{type:"button",onClick:()=>t(u),className:"flex shrink-0 items-center gap-1 rounded-full border border-primary-yellow px-3 py-1.5 text-xs font-medium text-primary-dark-green transition-colors hover:bg-primary-yellow/20 md:text-sm",children:[e.jsx(E,{size:16}),"Restore"]})]},u))})]}),be=({packageDetails:s})=>{const{itinerary:l=[]}=s||{},t=s==null?void 0:s._id,r=g.useMemo(()=>te(s),[s]),u=g.useMemo(()=>le(l),[l]),c=g.useMemo(()=>M(l),[l]),[b,n]=g.useState(null),[p,i]=g.useState(null),[h,o]=g.useState(null),[a,w]=g.useState(()=>new Set);g.useEffect(()=>{i(null),o(null),w(pe(t)),n(r?null:0)},[t,r]);const N=g.useCallback(d=>ye(t,d),[t]),C=g.useCallback(d=>{w(m=>{const y=new Set(m);return y.add(d),N(y),y}),r?i(m=>{const y=u.findIndex((k,f)=>$(k,f)===d);return m===y?null:m}):n(m=>{const k=M(l).findIndex((f,j)=>L(f,j)===d);return m===k?null:m}),o(null)},[r,u,l,N]),x=g.useCallback(d=>{w(m=>{const y=new Set(m);return y.delete(d),N(y),y})},[N]),v=g.useCallback(()=>{w(new Set),N(new Set),r||n(0)},[r,N]),W=g.useCallback(d=>{o(m=>m===d?null:d)},[]);if(l.length===0&&c.length===0)return null;if(r){const d=u.map((f,j)=>({dayItem:f,index:j,key:$(f,j)})),m=d.filter(({key:f})=>!a.has(f)),y=d.filter(({key:f})=>a.has(f)),k=f=>{const j=d.find(T=>T.key===f);if(!j)return f;const{dayItem:S}=j;return[S.day,S.title].filter(Boolean).join(" — ")||f};return e.jsx("div",{className:"w-full bg-primary-green py-6",children:e.jsxs("div",{className:"w-full px-4 sm:px-6 lg:px-8",children:[e.jsx("h2",{className:"mb-6 font-semibold text-white text-mobile/h3 md:text-desktop/h3",children:"Description"}),m.length>0?e.jsx("div",{className:"flex w-full flex-col gap-4 md:gap-6",children:m.map(({dayItem:f,index:j,key:S})=>e.jsx(fe,{dayItem:f,dayIndex:j,isOpen:p===j,onToggle:()=>i(T=>T===j?null:j),onClose:()=>C(S),openSightKey:h,onToggleSight:W},S))}):null,e.jsx(z,{closedItems:y,activeCount:m.length,onRestore:x,getLabel:k})]})})}const I=c.map((d,m)=>({item:d,index:m,key:L(d,m)})),P=I.filter(({key:d})=>!a.has(d)),D=I.filter(({key:d})=>a.has(d)),_=d=>{const m=I.find(k=>k.key===d);if(!m)return d;const{item:y}=m;return[y.title,y.day].filter(Boolean).join(" — ")};return e.jsx("div",{className:"w-full bg-primary-green py-6",children:e.jsxs("div",{className:"w-full px-4 sm:px-6 lg:px-8",children:[e.jsx("h2",{className:"mb-6 font-semibold text-white text-mobile/h3 md:text-desktop/h3",children:"Description"}),P.length>0?e.jsx("div",{className:"grid w-full grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",children:P.map(({item:d,index:m,key:y},k)=>{const f=b===m;return e.jsx("div",{className:"min-w-0",children:e.jsx(O,{item:d,index:k,isOpen:f,onToggle:()=>n(j=>j===m?null:m),onClose:()=>C(y)})},y)})}):D.length>0&&c.length>0?e.jsxs("div",{className:"mb-4 rounded-lg border border-white/30 bg-white/10 px-4 py-4 text-white",children:[e.jsx("p",{className:"text-sm md:text-base",children:"Description cards are hidden on this device. Restore them to view the tour details."}),e.jsxs("button",{type:"button",onClick:v,className:"mt-3 inline-flex items-center gap-2 rounded-full border border-primary-yellow bg-white px-4 py-2 text-sm font-semibold text-primary-dark-green transition hover:bg-primary-yellow/90",children:[e.jsx(E,{size:16}),"Show all description cards"]})]}):null,e.jsx(z,{closedItems:D,activeCount:P.length,onRestore:x,getLabel:_})]})})},je=({packageDetails:s})=>{const{inclusions:l=[],exclusions:t=[]}=s||{};return l.length===0&&t.length===0?null:e.jsx("div",{className:"py-10 md:py-12 bg-gray-50/80",children:e.jsxs("div",{className:"content mx-auto px-4",children:[e.jsx("h2",{className:"text-mobile/h4 md:text-desktop/h4 font-bold text-gray-800 mb
16-6 text-center md:text-left",children:"What's included in this package"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8",children:[e.jsxs("div",{className:"rounded-xl border border-primary-yellow/40 bg-white p-6 shadow-sm md:p-7",children:[e.jsx("h3",{className:"text-mobile/h5 md:text-desktop/h5 font-bold text-emerald-800 mb-4",children:"Includes"}),l.length>0?e.jsx("ul",{className:"space-y-3.5",children:l.map((r,u)=>e.jsxs("li",{className:"flex gap-3 items-start text-mobile/body/2 md:text-desktop/body/1 text-gray-700 leading-relaxed",children:[e.jsx(re,{className:"h-5 w-5 shrink-0 text-emerald-600 mt-0.5",strokeWidth:2,"aria-hidden":!0}),e.jsx("span",{children:r})]},u))}):e.jsx("p",{className:"text-sm text-gray-500 italic",children:"No inclusions listed."})]}),e.jsxs("div",{className:"rounded-xl border border-primary-yellow/40 bg-white p-6 shadow-sm md:p-7",children:[e.jsx("h3",{className:"text-mobile/h5 md:text-desktop/h5 font-bold text-red-800 mb-4",children:"Not Includes"}),t.length>0?e.jsx("ul",{className:"space-y-3.5",children:t.map((r,u)=>e.jsxs("li",{className:"flex gap-3 items-start text-mobile/body/2 md:text-desktop/body/1 text-gray-700 leading-relaxed",children:[e.jsx(ne,{className:"h-5 w-5 shrink-0 text-red-500 mt-0.5",strokeWidth:2,"aria-hidden":!0}),e.jsx("span",{children:r})]},u))}):e.jsx("p",{className:"text-sm text-gray-500 italic",children:"No exclusions listed."})]})]})]})})},Ge=()=>{const{state:s}=F(),{title:l}=G(),{data:t=[],isLoading:r}=X(),u=g.useMemo(()=>{if(!l||!t.length)return null;const C=t.find(x=>String(x._id)===String(l));return C||t.find(x=>U(l,x.title))||null},[l,t]),c=(s==null?void 0:s.pkg)||u,b=c==null?void 0:c._id,{data:n,isLoading:p,isError:i,error:h}=J(b,{enabled:!!b}),{setIsNavColor:o}=V();if(g.useEffect(()=>(o(!0),()=>{o(!1)}),[o]),g.useEffect(()=>{window.scrollTo(0,0)},[]),!c&&!n&&!p&&!r)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"text-xl text-gray-600",children:"Package not found"})});if((p||r)&&!c)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx(ce,{})});if(i&&!c)return e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-teal-400 to-teal-600 flex items-center justify-center",children:e.jsxs("div",{className:"text-white text-xl",children:["Error loading packages: ",h==null?void 0:h.message]})});const a=n||c,w=`${(a==null?void 0:a.title)||"Tour Package"} | Hotel Sunstar Group`,N=(a==null?void 0:a.description)||"Discover this tour package with Hotel Sunstar Group — curated itineraries and memorable travel experiences.";return e.jsxs("div",{className:"fade-in",children:[e.jsx(oe,{title:w,description:N}),e.jsx("div",{className:"content mx-auto pt-24 p-4 my-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-8 items-start",children:[e.jsx("div",{className:"w-full lg:sticky lg:top-24",children:e.jsx(xe,{packageDetails:a})}),e.jsx("div",{className:"w-full min-w-0",children:e.jsx(ge,{packageDetails:a})})]})}),e.jsx(be,{packageDetails:a}),e.jsx(je,{packageDetails:a}),e.jsx(ie,{page:"tours and travel"})]})};export{Ge as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.