1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,595927,e=>{"use strict";var t=e.i(848277),s=e.i(330668),a=e.i(783828);e.i(639057);var i=e.i(442588),l=e.i(696086),r=e.i(232890),n=e.i(437683),o=/[\\\/_+.#"@\[\(\{&]/,c=/[\\\/_+.#"@\[\(\{&]/g,d=/[\s-]/,p=/[\s-]/g;function u(e){return e.toLowerCase().replace(p," ")}var h=e.i(874538),m=e.i(611432),g=e.i(674327),x=e.i(181500),f='[cmdk-group=""]',v='[cmdk-group-items=""]',j='[cmdk-item=""]',b=`${j}:not([aria-disabled="true"])`,w="cmdk-item-select",y="data-value",_=(e,t,s)=>{var a;return a=e,function e(t,s,a,i,l,r,n){if(r===s.length)return l===t.length?1:.99;var u=`${l},${r}`;if(void 0!==n[u])return n[u];for(var h,m,g,x,f=i.charAt(r),v=a.indexOf(f,l),j=0;v>=0;)(h=e(t,s,a,i,v+1,r+1,n))>j&&(v===l?h*=1:o.test(t.charAt(v-1))?(h*=.8,(g=t.slice(l,v-1).match(c))&&l>0&&(h*=Math.pow(.999,g.length))):d.test(t.charAt(v-1))?(h*=.9,(x=t.slice(l,v-1).match(p))&&l>0&&(h*=Math.pow(.999,x.length))):(h*=.17,l>0&&(h*=Math.pow(.999,v-l))),t.charAt(v)!==s.charAt(r)&&(h*=.9999)),(h<.1&&a.charAt(v-1)===i.charAt(r+1)||i.charAt(r+1)===i.charAt(r)&&a.charAt(v-1)!==i.charAt(r))&&.1*(m=e(t,s,a,i,v+1,r+2,n))>h&&(h=.1*m),h>j&&(j=h),v=a.indexOf(f,v+1);return n[u]=j,j}(a=s&&s.length>0?`${a+" "+s.join(" ")}`:a,t,u(a),u(t),0,0,{})},N=s.createContext(void 0),C=s.createContext(void 0),k=s.createContext(void 0),S=s.forwardRef((e,t)=>{let a=$(()=>{var t,s;return{search:"",value:null!=(s=null!=(t=e.value)?t:e.defaultValue)?s:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=$(()=>new Set),l=$(()=>new Map),r=$(()=>new Map),n=$(()=>new Set),o=T(e),{label:c,children:d,value:p,onValueChange:u,filter:h,shouldFilter:x,loop:k,disablePointerSelection:S=!1,vimBindings:M=!0,...R}=e,E=(0,g.useId)(),A=(0,g.useId)(),P=(0,g.useId)(),I=s.useRef(null),D=B();L(()=>{if(void 0!==p){let e=p.trim();a.current.value=e,z.emit()}},[p]),L(()=>{D(6,G)},[]);let z=s.useMemo(()=>({subscribe:e=>(n.current.add(e),()=>n.current.delete(e)),snapshot:()=>a.current,setState:(e,t,s)=>{var i,l,r,n;if(!Object.is(a.current[e],t)){if(a.current[e]=t,"search"===e)Y(),U(),D(1,V);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(P);e?e.focus():null==(i=document.getElementById(E))||i.focus()}if(D(7,()=>{var e;a.current.selectedItemId=null==(e=W())?void 0:e.id,z.emit()}),s||D(5,G),(null==(l=o.current)?void 0:l.value)!==void 0){null==(n=(r=o.current).onValueChange)||n.call(r,null!=t?t:"");return}}z.emit()}},emit:()=>{n.current.forEach(e=>e())}}),[]),F=s.useMemo(()=>({value:(e,t,s)=>{var i;t!==(null==(i=r.current.get(e))?void 0:i.value)&&(r.current.set(e,{value:t,keywords:s}),a.current.filtered.items.set(e,Z(t,s)),D(2,()=>{U(),z.emit()}))},item:(e,t)=>(i.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),D(3,()=>{Y(),U(),a.current.value||V(),z.emit()}),()=>{r.current.delete(e),i.current.delete(e),a.current.filtered.items.delete(e);let t=W();D(4,()=>{Y(),(null==t?void 0:t.getAttribute("id"))===e&&V(),z.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{r.current.delete(e),l.current.delete(e)}),filter:()=>o.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:E,inputId:P,labelId:A,listInnerRef:I}),[]);function Z(e,t){var s,i;let l=null!=(i=null==(s=o.current)?void 0:s.filter)?i:_;return e?l(e,a.current.search,t):0}function U(){if(!a.current.search||!1===o.current.shouldFilter)return;let e=a.current.filtered.items,t=[];a.current.filtered.groups.forEach(s=>{let a=l.current.get(s),i=0;a.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([s,i])});let s=I.current;q().sort((t,s)=>{var a,i;let l=t.getAttribute("id"),r=s.getAttribute("id");return(null!=(a=e.get(r))?a:0)-(null!=(i=e.get(l))?i:0)}).forEach(e=>{let t=e.closest(v);t?t.appendChild(e.parentElement===t?e:e.closest(`${v} > *`)):s.appendChild(e.parentElement===s?e:e.closest(`${v} > *`))}),t.sort((e,t)=>
1t[1]-e[1]).forEach(e=>{var t;let s=null==(t=I.current)?void 0:t.querySelector(`${f}[${y}="${encodeURIComponent(e[0])}"]`);null==s||s.parentElement.appendChild(s)})}function V(){let e=q().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(y);z.setState("value",t||void 0)}function Y(){var e,t,s,n;if(!a.current.search||!1===o.current.shouldFilter){a.current.filtered.count=i.current.size;return}a.current.filtered.groups=new Set;let c=0;for(let l of i.current){let i=Z(null!=(t=null==(e=r.current.get(l))?void 0:e.value)?t:"",null!=(n=null==(s=r.current.get(l))?void 0:s.keywords)?n:[]);a.current.filtered.items.set(l,i),i>0&&c++}for(let[e,t]of l.current)for(let s of t)if(a.current.filtered.items.get(s)>0){a.current.filtered.groups.add(e);break}a.current.filtered.count=c}function G(){var e,t,s;let a=W();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(s=null==(t=a.closest(f))?void 0:t.querySelector('[cmdk-group-heading=""]'))||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=I.current)?void 0:e.querySelector(`${j}[aria-selected="true"]`)}function q(){var e;return Array.from((null==(e=I.current)?void 0:e.querySelectorAll(b))||[])}function K(e){let t=q()[e];t&&z.setState("value",t.getAttribute(y))}function J(e){var t;let s=W(),a=q(),i=a.findIndex(e=>e===s),l=a[i+e];null!=(t=o.current)&&t.loop&&(l=i+e<0?a[a.length-1]:i+e===a.length?a[0]:a[i+e]),l&&z.setState("value",l.getAttribute(y))}function X(e){let t=W(),s=null==t?void 0:t.closest(f),a;for(;s&&!a;)a=null==(s=e>0?function(e,t){let s=e.nextElementSibling;for(;s;){if(s.matches(t))return s;s=s.nextElementSibling}}(s,f):function(e,t){let s=e.previousElementSibling;for(;s;){if(s.matches(t))return s;s=s.previousElementSibling}}(s,f))?void 0:s.querySelector(b);a?z.setState("value",a.getAttribute(y)):J(e)}let Q=()=>K(q().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?X(1):J(1)},et=e=>{e.preventDefault(),e.metaKey?K(0):e.altKey?X(-1):J(-1)};return s.createElement(m.Primitive.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=R.onKeyDown)||t.call(R,e);let s=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":M&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":M&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),K(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(w);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:O},c),H(e,e=>s.createElement(C.Provider,{value:z},s.createElement(N.Provider,{value:F},e))))}),M=s.forwardRef((e,t)=>{var a,i;let l=(0,g.useId)(),r=s.useRef(null),n=s.useContext(k),o=s.useContext(N),c=T(e),d=null!=(i=null==(a=c.current)?void 0:a.forceMount)?i:null==n?void 0:n.forceMount;L(()=>{if(!d)return o.item(l,null==n?void 0:n.id)},[d]);let p=F(l,r,[e.value,e.children,r],e.keywords),u=s.useContext(C),h=z(e=>e.value&&e.value===p.current),f=z(e=>!!d||!1===o.filter()||!e.search||e.filtered.items.get(l)>0);function v(){var e,t;j(),null==(t=(e=c.current).onSelect)||t.call(e,p.current)}function j(){u.setState("value",p.current,!0)}if(s.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(w,v),()=>t.removeEventListener(w,v)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:b,value:y,onSelect:_,forceMount:S,keywords:M,...R}=e;return s.createElement(m.Primitive.div,{ref:(0,x.composeRefs)(r,t),...R,id:l,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||o.getDisablePointerSelection()?void 0:j,onClick:b?void 0:v},e.children)}),R=s.forwardRef((e,t)=>{let{heading:a,children:i,forceMount:l,...r}=e,n=(0,g.useId)(),o=s.useRef(null),c=s.useRef(null),d=(0,g.useId)(),p=s.useContext(N),u=z(e=>!!l||!1===p.filter()||!e.search||e.filtered.groups.has(n));L(()=>p.group(n),[]),F(n,o,[e.value,e.heading,c]);let h=s.useMemo(()=>({id:n,forceMount:l}),[l]);return s.createElement(m.Primitive.div,{ref:(0,x.composeRefs)(o,t),...r,"cmdk-group":"",role:"presentation",hidden:!u||void 0},a&&s.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},a),H(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?d:void 0},s.createElement(k.Provider,{value:h},e))))}),E=s.forwardRef((e,t)=>
1{let{alwaysRender:a,...i}=e,l=s.useRef(null),r=z(e=>!e.search);return a||r?s.createElement(m.Primitive.div,{ref:(0,x.composeRefs)(l,t),...i,"cmdk-separator":"",role:"separator"}):null}),A=s.forwardRef((e,t)=>{let{onValueChange:a,...i}=e,l=null!=e.value,r=s.useContext(C),n=z(e=>e.search),o=z(e=>e.selectedItemId),c=s.useContext(N);return s.useEffect(()=>{null!=e.value&&r.setState("search",e.value)},[e.value]),s.createElement(m.Primitive.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":o,id:c.inputId,type:"text",value:l?e.value:n,onChange:e=>{l||r.setState("search",e.target.value),null==a||a(e.target.value)}})}),P=s.forwardRef((e,t)=>{let{children:a,label:i="Suggestions",...l}=e,r=s.useRef(null),n=s.useRef(null),o=z(e=>e.selectedItemId),c=s.useContext(N);return s.useEffect(()=>{if(n.current&&r.current){let e=n.current,t=r.current,s,a=new ResizeObserver(()=>{s=requestAnimationFrame(()=>{let s=e.offsetHeight;t.style.setProperty("--cmdk-list-height",s.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(s),a.unobserve(e)}}},[]),s.createElement(m.Primitive.div,{ref:(0,x.composeRefs)(r,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":i,id:c.listId},H(e,e=>s.createElement("div",{ref:(0,x.composeRefs)(n,c.listInnerRef),"cmdk-list-sizer":""},e)))}),I=s.forwardRef((e,t)=>{let{open:a,onOpenChange:i,overlayClassName:l,contentClassName:r,container:n,...o}=e;return s.createElement(h.Root,{open:a,onOpenChange:i},s.createElement(h.Portal,{container:n},s.createElement(h.Overlay,{"cmdk-overlay":"",className:l}),s.createElement(h.Content,{"aria-label":e.label,"cmdk-dialog":"",className:r},s.createElement(S,{ref:t,...o}))))}),D=Object.assign(S,{List:P,Item:M,Input:A,Group:R,Separator:E,Dialog:I,Empty:s.forwardRef((e,t)=>z(e=>0===e.filtered.count)?s.createElement(m.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:a,children:i,label:l="Loading...",...r}=e;return s.createElement(m.Primitive.div,{ref:t,...r,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},H(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function T(e){let t=s.useRef(e);return L(()=>{t.current=e}),t}var L="u"<typeof window?s.useEffect:s.useLayoutEffect;function $(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function z(e){let t=s.useContext(C),a=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,a,a)}function F(e,t,a,i=[]){let l=s.useRef(),r=s.useContext(N);return L(()=>{var s;let n=(()=>{var e;for(let t of a){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),o=i.map(e=>e.trim());r.value(e,n,o),null==(s=t.current)||s.setAttribute(y,n),l.current=n}),l}var B=()=>{let[e,t]=s.useState(),a=$(()=>new Map);return L(()=>{a.current.forEach(e=>e()),a.current=new Map},[e]),(e,s)=>{a.current.set(e,s),t({})}};function H({asChild:e,children:t},a){let i;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(i=t.type)?i(t.props):"render"in i?i.render(t.props):t,{ref:t.ref},a(t.props.children)):a(t)}var O={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},Z=e.i(765750);e.i(96007);let U=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(D,{ref:a,className:(0,Z.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...s}));U.displayName=D.displayName;let V=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)("div",{className:"flex items-center","cmdk-input-wrapper":"",children:(0,t.jsx)(D.Input,{ref:a,className:(0,Z.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...s})}));V.displayName=D.Input.displayName;let Y=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(D.List,{ref:a,className:(0,Z.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...s}));Y.displayName=D.List.displayName;let G=s.forwardRef((e,s)=>(0,t.jsx)(D.Empty,{ref:s,className:"py-6 text-center text-sm",...e}));G.displayName=D.Empty.displayName,s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(D.Group,{ref:a,className:(0,Z.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...s})).displayName=D.Group.displayName,s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(D.Separator,{ref:a,className:(0,Z.cn)("-mx-1 h-px bg-border",e),...s})).displayName=D.Separator.displayName;let W=s.forwardRef(({className:e,...s},a)=>(0,t.jsx)(D.Item,{ref:a,className:(0,Z.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...s}));W.displayName=D.Item.displayName;let q=(0,s.createContext)({});function K({value:e,onValueChange:a,children:i}
1){let[l,r]=(0,s.useState)(!1),[o,c]=(0,s.useState)(e||""),d=(0,s.useRef)(null),p=(0,s.useRef)(!1);(0,s.useEffect)(()=>{0===o.trim().length&&r(!1)},[o]);let u=(0,s.useCallback)(()=>{r(!1),p.current=!0,requestAnimationFrame(()=>{let e=d.current;if(e){e.focus();let t=e.value?.length||0;e.setSelectionRange(t,t)}setTimeout(()=>{p.current=!1},150)})},[]);return(0,t.jsx)(q.Provider,{value:{setOpen:r,handleClose:u,onValueChange:a,inputValue:o,setInputValue:c,inputRef:d,justSelected:p},children:(0,t.jsx)(n.Popover,{open:l,onOpenChange:r,children:(0,t.jsx)(U,{filter:(e,t)=>+!!e.toLowerCase().includes(t.toLowerCase()),children:i})})})}function J({children:e,className:s}){return(0,t.jsx)(n.PopoverAnchor,{asChild:!0,children:(0,t.jsx)("div",{className:s,children:e})})}function X({className:e,placeholder:a,...i}){let{setOpen:l,inputValue:r,setInputValue:n,inputRef:o,justSelected:c}=(0,s.useContext)(q);return(0,t.jsx)(V,{ref:o,className:e,placeholder:a,value:r,onValueChange:e=>{n(e),e.trim().length>0?l(!0):l(!1)},onFocus:()=>{c.current||l(!0)},...i})}function Q({children:e,className:s}){return(0,t.jsx)(n.PopoverContent,{align:"start",sideOffset:6,className:s,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),children:e})}function ee(e){return(0,t.jsx)(Y,{...e})}function et(e){return(0,t.jsx)(G,{...e})}function es({value:e,children:a}){let{handleClose:i,onValueChange:l,setInputValue:r}=(0,s.useContext)(q);return(0,t.jsx)(W,{value:e,onSelect:()=>{r(""),l?.(e),i()},children:a})}var ea=e.i(316634),ei=e.i(803769),el=e.i(427111),er=e.i(987499),en=e.i(341341),eo=e.i(848981),ec=e.i(516590),ed=e.i(919165);let ep=ed.default.default,eu=({destination:e="",packages:a=[],isLoading:l=!1,categoryId:r=null})=>{let n,o=(n=ed.default[String(r)])&&n.headline?{headline:n.headline||ep.headline,heroDesc:n.heroDesc||ep.heroDesc,imgCard:n.imgCard||ep.imgCard,heroBadgeStat:{bold:n.heroBadgeStat?.bold||ep.heroBadgeStat.bold,text:n.heroBadgeStat?.text||ep.heroBadgeStat.text},btnPrimary:n.btnPrimary||ep.btnPrimary,btnGhost:n.btnGhost||ep.btnGhost,stats:n.stats?.map((e,t)=>({val:e.val||ep.stats[t]?.val||"",desc:e.desc||ep.stats[t]?.desc||""}))??ep.stats,whyEyebrow:n.whyEyebrow||ep.whyEyebrow,whyTitle:n.whyTitle||ep.whyTitle,whySubtitle:n.whySubtitle||ep.whySubtitle,whyBody:n.whyBody||ep.whyBody,whyCards:n.whyCards?.map((e,t)=>({num:e.num??t+1,title:e.title||ep.whyCards[t]?.title||"",desc:e.desc||ep.whyCards[t]?.desc||""}))??ep.whyCards}:ep,c=ed.default[String(r)]?.imgCard||"",d=a[0]?.bannerImage||"https://d230lfojd95r73.cloudfront.net/Content/cultureApi/bali-top-banner.jpg",[p,u]=(0,s.useState)(c||d);(0,s.useEffect)(()=>{u(c||d)},[r,c,d]);let h=(e||"Browse Packages").toUpperCase();return(0,t.jsxs)("section",{className:"new-categ-top-sec",children:[(0,t.jsxs)("div",{className:"new-categ-top-sec__hero",children:[(0,t.jsx)("div",{className:"new-categ-top-sec__title-wrap",children:l?(0,t.jsx)(ei.Skeleton,{className:"new-categ-top-sec__title-skel"}):(0,t.jsx)("h1",{className:"new-categ-top-sec__title",children:h})}),(0,t.jsx)("div",{className:"new-categ-top-sec__hero-sep","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"new-categ-top-sec__body",children:[(0,t.jsxs)("div",{className:"new-categ-top-sec__left",children:[(0,t.jsx)("p",{className:"new-categ-top-sec__headline",children:o.headline}),(0,t.jsxs)("p",{className:"new-categ-top-sec__hero-stat",children:[(0,t.jsx)("strong",{className:"new-categ-top-sec__hero-stat-bold",children:o.heroBadgeStat.bold})," ",o.heroBadgeStat.text]})]}),(0,t.jsx)("div",{className:"new-categ-top-sec__body-center","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"new-categ-top-sec__right",children:[(0,t.jsx)("p",{className:"new-categ-top-sec__hero-desc",children:o.heroDesc}),(0,t.jsxs)("div",{className:"new-categ-top-sec__hero-btns",children:[(0,t.jsxs)("button",{type:"button",className:"new-categ-top-sec__btn-primary",onClick:()=>document.querySelector(".listing-components")?.scrollIntoView({behavior:"smooth"}),children:[o.btnPrimary,(0,t.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.5 8h9M8.5 4l4 4-4 4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsx)("button",{type:"button",className:"new-categ-top-sec__btn-ghost",onClick:()=>document.querySelector(".new-categ-top-sec__why")?.scrollIntoView({behavior:"smooth"}
1),children:o.btnGhost})]})]})]})]}),(0,t.jsx)("div",{className:"new-categ-top-sec__img-float",children:l?(0,t.jsx)(ei.Skeleton,{className:"new-categ-top-sec__img-skel"}):(0,t.jsx)("div",{className:"new-categ-top-sec__img-card",children:(0,t.jsx)(i.default,{src:p,alt:e||"Category",fill:!0,sizes:"(max-width: 768px) 80vw, 28vw",className:"new-categ-top-sec__img",priority:!0,unoptimized:!0,onError:()=>u(d)})})}),(0,t.jsxs)("div",{className:"new-categ-top-sec__stats",children:[(0,t.jsx)("div",{className:"new-categ-top-sec__stat-pair",children:o.stats.slice(0,2).map((e,s)=>(0,t.jsxs)("div",{className:"new-categ-top-sec__stat-card",children:[(0,t.jsx)("span",{className:"new-categ-top-sec__stat-val",children:l?"â":e.val}),(0,t.jsx)("p",{className:"new-categ-top-sec__stat-desc",children:e.desc})]},s))}),(0,t.jsx)("div",{className:"new-categ-top-sec__stats-center-gap",children:(0,t.jsx)("div",{className:"new-categ-top-sec__img-icon-wrap","aria-hidden":"true",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"53",height:"53",viewBox:"0 0 53 53",fill:"none",children:[(0,t.jsx)("circle",{cx:"26.018",cy:"26.018",r:"26.018",fill:"#0451BA"}),(0,t.jsx)("path",{d:"M39.6893 22.5804C39.5504 22.2819 36.1701 15.2698 26.0179 15.2698C15.8657 15.2698 12.4855 22.2819 12.3465 22.5804C12.291 22.6994 12.2782 22.8339 12.3102 22.9613C12.3421 23.0886 12.417 23.2011 12.5221 23.2798L25.0623 32.6462L22.8155 34.3224C22.756 34.3672 22.706 34.4234 22.6683 34.4877C22.6306 34.552 22.606 34.6231 22.5959 34.6969C22.5858 34.7707 22.5904 34.8458 22.6095 34.9179C22.6285 34.9899 22.6616 35.0575 22.7069 35.1167C22.7289 35.1466 22.754 35.1742 22.7818 35.199C23.165 35.6844 23.6526 36.0772 24.2083 36.3485C24.764 36.6198 25.3737 36.7625 25.9921 36.766C26.6105 36.7696 27.2218 36.6339 27.7806 36.3691C28.3394 36.1043 28.8315 35.7171 29.2203 35.2362C29.2638 35.2038 29.3023 35.1653 29.3347 35.1218C29.3798 35.0617 29.4125 34.9934 29.4312 34.9206C29.4498 34.8479 29.4539 34.7722 29.4433 34.6978C29.4327 34.6235 29.4075 34.552 29.3693 34.4873C29.331 34.4227 29.2804 34.3663 29.2203 34.3212L26.9758 32.6451L39.5138 23.2798C39.6189 23.2011 39.6937 23.0886 39.7257 22.9613C39.7576 22.8339 39.7448 22.6994 39.6893 22.5804ZM21.9337 28.8817C22.4533 28.3164 23.0846 27.865 23.7876 27.5563C24.4906 27.2476 25.2501 27.0882 26.0179 27.0882C26.7858 27.0882 27.5452 27.2476 28.2483 27.5563C28.9513 27.865 29.5826 28.3164 30.1021 28.8817L26.0179 31.9326L21.9337 28.8817ZM26.5898 25.9772V16.4346C27.8769 16.4657 29.1564 16.6418 30.4041 16.9596L27.5396 26.1179C27.2268 26.0484 26.9094 26.0014 26.5898 25.9772ZM25.4461 25.9772C25.1265 26.0014 24.8091 26.0484 24.4962 26.1179L21.6306 16.9562C22.8789 16.6401 24.1587 16.4651 25.4461 16.4346V25.9772ZM23.4103 26.4776C23.1815 26.574 22.9583 26.6832 22.7417 26.8047L17.1747 18.9577C18.2137 18.2499 19.3441 17.6868 20.535 17.2839L23.4103 26.4776ZM28.6256 26.4776L31.4997 17.2884C32.6892 17.6926 33.8183 18.2564 34.856 18.9645L29.2941 26.8047C29.0776 26.6825 28.8544 26.5725 28.6256 26.4753V26.4776ZM16.262 19.6479L21.793 27.4441C21.5147 27.6741 21.2552 27.9259 21.017 28.1972L13.6086 22.661C14.3196 21.5163 15.2164 20.498 16.262 19.6479ZM26.0179 35.625C25.2779 35.6288 24.5635 35.3542 24.0164 34.8559L26.0179 33.3599L28.0194 34.853C27.4728 35.3524 26.7583 35.628 26.0179 35.625ZM31.0188 28.2C30.7806 27.9288 30.5211 27.6769 30.2428 27.4469L35.7687 19.6576C36.8141 20.5061 37.7124 21.5212 38.4272 22.6622L31.0188 28.2Z",fill:"white",fillOpacity:"0.92"})]})})}),(0,t.jsx)("div",{className:"new-categ-top-sec__stat-pair",children:o.stats.slice(2,4).map((e,s)=>(0,t.jsxs)("div",{className:"new-categ-top-sec__stat-card",children:[(0,t.jsx)("span",{className:"new-categ-top-sec__stat-val",children:l?"â":e.val}),(0,t.jsx)("p",{className:"new-categ-top-sec__stat-desc",children:e.desc})]},s))})]}),(0,t.jsx)("div",{className:"new-categ-top-sec__divider",children:(0,t.jsx)("div",{className:"new-categ-top-sec__divider-dot"})}),(0,t.jsx)("div",{className:"new-categ-top-sec__why",children:(0,t.jsxs)("div",{className:"new-categ-top-sec__why-inner",children:[(0,t.jsxs)("div",{className:"new-categ-top-sec__why-left",children:[(0,t.jsx)("p",{className:"new-categ-top-sec__why-eyebrow",children:o.whyEyebrow}),(0,t.jsx)("h2",{className:"new-categ-top-sec__why-title",children:o.whyTitle}),(0,t.jsx)("p",{className:"new-categ-top-sec__why-subtitle",children:o.whySubtitle}),(0,t.jsx)("p",{className:"new-categ-top-sec__why-body",children:o.whyBody})]}),(0,t.jsx)("div",{className:"new-categ-top-sec__why-right",children:(0,t.jsx)("div",{className:"new-categ-top-sec__why-grid",children:o.whyCards.map(e=>(0,t.jsxs)("div",{className:"new-categ-top-sec__why-card",children:[(0,t.jsx)("span",{className:"new-categ-top-sec__why-num",children:e.num}),(0,t.jsx)("h3",{className:"new-categ-top-sec__why-card-title",children:e.title}),(0,t.jsx)("p",{className:"new-categ-top-sec__why-card-desc",children:e.desc})]},e.num))})})]})})]})},eh={JP:"/japan-sales-toolkit",GHA:"/ghana-sales-toolkit",IO:"/bali-sales-toolkit",TH:"/thailand-sales-toolkit",SO:"/south-africa-sales-toolkit",DU:"/dubai-sales-toolkit",GR:"/greece-sales-toolkit"},em=[{icon:"/icons/must-see-icon.svg",label:"Must See",section:"experiences"},{icon:"/icons/quick-facts-icon.svg",label:"Quick Facts",section:"atlas"},{icon:"/icons/fun-activity-icon.svg",label:"Fun Activities",section:"festivals"},{icon:"/icons/blog-icon.svg",label:"Linguistics",section:"language"},{icon:"/icons/passport-visa-icon.svg",label:"Passport & Visa",section:"logistics"}],eg={country:{getTitle:e=>`${e}`,tagline:null,getDescription:e=>`Explore ${e}. Your 15% commission is included in every itinerary.`,getStats:e=>[{bold:"2.5k people",text:`traveled to ${e} with Culture`},{bold:"85",text:`agents booked ${e} trip`}],showTabs:!0},customized:{getTitle:()=>"My Custom Trip",tagline:"Crafted around your clients.",getDescription:()=>"Your personalized itinerary is ready to sell. Your 15% commission is included in every package.",getStats:()=>[{bold:"100% tailored",text:"itineraries built to your brief"},{bold:"15% commission",text:"locked in on every booking"}],showTabs:!1},category:{getTitle:e=>`${e}`,tagline:"Curated for every kind of traveler.",getDescription:e=>`Explore our ${e} collection. Your 15% commission is included in every itinerary.`,getStats:()=>[{bold:"50+ itineraries",text:"across top destinations"},{bold:"15% commission",text:"included in all packages"}],showTabs:!1},offer:{getTitle:()=>"Exclusive Offers",tagline:"Deals that move. Commissions that stay.",getDescription:()=>"Limited-time deals for your clients. Your 15% commission is always included.",getStats:()=>[{bold:"Handpicked deals",text:"updated every week"},{bold:"15% commission",text:"on every offer you sell"}],showTabs:!1}},ex=({countryData:e,packages:a=[],isLoading:n,currentDestination:o="",countryCode:c="",tourType:d="c
1ountry"})=>{let p,[u,h]=(0,s.useState)(""),m=(0,l.useRouter)(),{countryNames:g}=(0,el.useRegionsWithCountries)(null,1,1),{regions:x}=(0,el.useRegionsWithCountries)(),f=(0,s.useMemo)(()=>(g??[]).map(e=>({name:e.countryName,code:e.countryCode,image:e.imageUrl?e.imageUrl.startsWith("http")?e.imageUrl:`${e.imageUrl.replace("..","")}`:"https://d230lfojd95r73.cloudfront.net/Content/cultureApi/Rectangle%2090%20(4).webp"})),[g]),{profile:v}=(0,er.useUserProfile)(),{openModal:j}=(0,eo.useModal)(),b=v?.offer??null,{goToPackageDetail:w}=(0,en.useCreateHolidayDetails)(),y=(0,l.useSearchParams)(),_=y.get("destination")||e?.country||o||"â",N=(c||"").toUpperCase(),C="country"===d?_:o||"â",k=(0,s.useMemo)(()=>{if(!N||!x?.length)return null;for(let e of x){let t=(e.countryList??[]).find(e=>(e.countryCode||"").toUpperCase()===N);if(t)return t}return null},[x,N]),S=eg[d]??eg.country,M=S.getTitle(C),R=S.showTabs,E="country"===d?k?.mainHeadline||null:S.tagline,A=(0,s.useMemo)(()=>{if("country"===d){let e=[],t=k?.totalGuestCount??0,s=k?.totalAgentsBooked??0;if(t>=10){let s=t>=1e3?`${parseFloat((t/1e3).toFixed(1))}k`:`${t}`;e.push({bold:`${s} people`,text:`traveled to ${C} with Culture`})}return s>=10&&e.push({bold:`${s}`,text:`agents booked ${C} trip`}),e}return S.getStats?S.getStats(C):[]},[C,S,d,k]),P="country"===d?eh[N]:null,I=a[0]?.bannerImage,D=I||"https://d230lfojd95r73.cloudfront.net/Content/cultureApi/bali-top-banner.jpg",T=!n||!!I,[L,$]=(0,s.useState)(!1);(0,s.useEffect)(()=>{$(!1)},[D]),(0,s.useEffect)(()=>{n&&$(!1)},[n]);let z=!!b&&!!N&&(b.countryCode||"").toUpperCase()===N,F=b?.pkG_IMAGE||null,B=b?.discount>0?`${b.discount}% OFF`:null,H=b?.package_Name||"",O=b?.minAgentPrice>0?`$${b.minAgentPrice}`:null;return"category"===d?(0,t.jsx)(eu,{destination:o,packages:a,isLoading:n,categoryId:y.get("id")}):(0,t.jsxs)("div",{className:"listing-top-banner",children:[(0,t.jsxs)("div",{className:"listing-top-banner__left",children:[(0,t.jsxs)("div",{className:"listing-top-banner__title-row",children:[n?(0,t.jsx)(ei.Skeleton,{style:{width:200,height:48,borderRadius:8}}):(0,t.jsx)("h1",{className:"listing-top-banner__country",children:M?.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}),(0,t.jsx)("div",{className:"listing-top-banner__award"})]}),E&&(0,t.jsx)("p",{className:"listing-top-banner__tagline",children:E}),(0,t.jsx)("div",{className:"listing-top-banner__stats",children:A.map((e,a)=>(0,t.jsxs)(s.Fragment,{children:[a>0&&(0,t.jsx)("span",{className:"listing-top-banner__stat-divider",children:"|"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"listing-top-banner__stat-bold",children:n?"â":e.bold})," ",e.text]})]},a))}),(0,t.jsxs)("div",{className:"listing-top-banner__cta-row",children:[(0,t.jsx)("button",{className:"listing-top-banner__cta-btn",onClick:()=>j("connectWithExpert",{destination:o}),children:"Connect with an Expert"}),(0,t.jsxs)("button",{className:"listing-top-banner__cta-btn listing-top-banner__cta-btn--expert",onClick:()=>{(0,ec.getAccessToken)()||(0,ec.getRefreshToken)()?window.open("https://academy.cultureholidays.com/home","_blank"):m.push(`/login?redirect=${encodeURIComponent("/academy/home")}`)},children:["Become a ",C," Expert",(0,t.jsx)("img",{src:"https://culturestorage.s3.ap-south-1.amazonaws.com/Culture%20Holidays/expert-button-gif-ezgif.com-crop.gif",alt:"Become an expert",className:"listing-top-banner__cta-btn-gif"})]}),P&&(0,t.jsxs)("button",{className:"listing-top-banner__cta-btn listing-top-banner__cta-btn--kit",onClick:()=>m.push(P),children:[C," Sale Kit"]})]}),R&&(0,t.jsxs)("a",{href:(p=new URLSearchParams({countryName:_,countryCode:N,section:em[0].section}),`/countryDetails?${p.toString()}`),target:"_blank",rel:"noopener noreferrer",className:"listing-top-banner__know-before",children:[(0,t.jsxs)("svg",{className:"listing-top-banner__know-before-icon",xmlns:"http://www.w3.org/2000/svg",width:"27",height:"15",viewBox:"0 0 27 15",fill:"none",children:[(0,t.jsx)("path",{d:"M12.75 7.5C12.75 11.6415 9.8955 15 6.375 15C2.8545 15 0 11.6415 0 7.5C0 3.35775 2.8545 9.53674e-07 6.375 9.53674e-07C9.8955 9.53674e-07 12.75 3.35775 12.75 7.5ZM27 7.5C27 11.6415 24.1455 15 20.625 15C17.1045 15 14.25 11.6415 14.25 7.5C14.25 3.35775 17.1045 9.53674e-07 20.625 9.53674e-07C24.1455 9.53674e-07 27 3.35775 27 7.5Z",fill:"#E1E8ED"}),(0,t.jsx)("path",{d:"M6 10.5C6 11.0967 5.76295 11.669 5.34099 12.091C4.91903 12.5129 4.34674 12.75 3.75 12.75C3.15326 12.75 2.58097 12.5129 2.15901 12.091C1.73705 11.669 1.5 11.0967 1.5 10.5C1.5 9.90326 1.73705 9.33097 2.15901 8.90901C2.58097 8.48705 3.15326 8.25 3.75 8.25C4.34674 8.25 4.91903 8.48705 5.34099 8.90901C5.76295 9.33097 6 9.90326 6 10.5ZM20.25 10.5C20.25 10.7955 20.1918 11.0881 20.0787 11.361C19.9657 11.634
119.7999 11.8821 19.591 12.091C19.3821 12.2999 19.134 12.4657 18.861 12.5787C18.5881 12.6918 18.2955 12.75 18 12.75C17.7045 12.75 17.4119 12.6918 17.139 12.5787C16.866 12.4657 16.6179 12.2999 16.409 12.091C16.2001 11.8821 16.0343 11.634 15.9213 11.361C15.8082 11.0881 15.75 10.7955 15.75 10.5C15.75 9.90326 15.9871 9.33097 16.409 8.90901C16.831 8.48705 17.4033 8.25 18 8.25C18.5967 8.25 19.169 8.48705 19.591 8.90901C20.0129 9.33097 20.25 9.90326 20.25 10.5Z",fill:"#292F33"})]}),"Know before you go to ",C]})]}),(0,t.jsxs)("div",{className:"listing-top-banner__right",children:[(!T||!L)&&(0,t.jsx)(ei.Skeleton,{style:{position:"absolute",inset:0,borderRadius:0,zIndex:0}}),T&&(0,t.jsx)(i.default,{src:D,alt:`${_} destination`,fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:"listing-top-banner__right-image",priority:!0,unoptimized:D.includes("unsplash.com"),onLoad:()=>$(!0),style:{opacity:+!!L}}),(0,t.jsx)("div",{className:"listing-top-banner__right-overlay"}),(0,t.jsx)("div",{className:"listing-top-banner__search-wrapper",children:(0,t.jsxs)(K,{value:u,onValueChange:e=>{let t=f.find(t=>t.name.toLowerCase()===e.toLowerCase());if(!t)return;h("");let s=new URLSearchParams({destination:t.name,type:"country",id:t.code.toLowerCase()});m.push(`/packagelisting?${s.toString()}`)},children:[(0,t.jsxs)(J,{className:"listing-top-banner__combobox-trigger",children:[(0,t.jsx)(X,{placeholder:"Search for other destinations",className:"listing-top-banner__combobox-input"}),(0,t.jsx)("span",{className:"listing-top-banner__search-icon-btn",children:(0,t.jsx)(r.Search,{size:15})})]}),(0,t.jsx)(Q,{className:"listing-top-banner__combobox-content",children:(0,t.jsxs)(ee,{children:[(0,t.jsx)(et,{children:"No destinations found."}),f.map((e,s)=>(0,t.jsx)(es,{value:e.name,children:(0,t.jsxs)("div",{className:"listing-top-banner__combobox-item",children:[(0,t.jsx)("img",{src:e.image,alt:e.name,className:"listing-top-banner__combobox-item-img"}),(0,t.jsx)("span",{className:"listing-top-banner__combobox-item-name",children:e.name})]})},s))]})})]})}),!z&&(0,t.jsxs)("div",{className:"listing-top-banner__card-wrapper",children:[(0,t.jsxs)("div",{className:"listing-top-banner__ep-card",children:[(0,t.jsx)("div",{className:"listing-top-banner__ep-watermark",children:"easypay"}),(0,t.jsx)("div",{className:"listing-top-banner__ep-img-wrap",children:(0,t.jsx)("img",{src:"https://d230lfojd95r73.cloudfront.net/Content/cultureApi/easy-pay-image.png",alt:"EasyPay",className:"listing-top-banner__ep-img"})}),(0,t.jsxs)("p",{className:"listing-top-banner__ep-text",children:["Your dream holiday doesn't have to wait anymore."," ",(0,t.jsx)("strong",{children:"Secure Today, pay securely tomorrow"})]})]}),(0,t.jsxs)("div",{className:"listing-top-banner__ep-footer",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"easy"}),(0,t.jsx)("span",{style:{fontWeight:300},children:"pay"})]}),(0,t.jsx)("span",{className:"listing-top-banner__ep-footer-sep"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"easy"}),(0,t.jsx)("span",{style:{fontWeight:300},children:"holidays"})]})]})]}),z&&(0,t.jsxs)("div",{className:"listing-top-banner__card-wrapper",children:[n?(0,t.jsxs)(ea.Card,{className:"listing-top-banner__card",children:[(0,t.jsx)("div",{className:"listing-top-banner__card-image-wrapper",children:(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:"100%",borderRadius:0}})}),(0,t.jsxs)(ea.CardContent,{className:"listing-top-banner__card-body",children:[(0,t.jsx)(ei.Skeleton,{style:{width:"80%",height:14,borderRadius:4,marginBottom:8}}),(0,t.jsx)(ei.Skeleton,{style:{width:60,height:12,borderRadius:4,marginBottom:6}}),(0,t.jsx)(ei.Skeleton,{style:{width:90,height:20,borderRadius:4}})]})]}):(0,t.jsxs)(ea.Card,{className:"listing-top-banner__card",style:{cursor:"pointer"},onClick:()=>w(b.pkG_ID),children:[(0,t.jsxs)("div",{className:"listing-top-banner__card-image-wrapper",children:[F?(0,t.jsx)(i.default,{src:F,alt:H,fill:!0,sizes:"320px",className:"listing-top-banner__card-img",unoptimized:!0}):(0,t.jsx)("div",{style:{width:"100%",height:"100%",background:"#e5e7eb"}}),B&&(0,t.jsx)("span",{className:"listing-top-banner__card-badge",children:B})]}),(0,t.jsxs)(ea.CardContent,{className:"listing-top-banner__card-body",children:[(0,t.jsx)("h3",{className:"listing-top-banner__card-title",children:H}),null,O&&(0,t.jsxs)("div",{className:"listing-top-banner__card-price-row",children:[(0,t.jsx)("span",{className:"listing-top-banner__card-price",children:O}),(0,t.jsxs)("span",{className:"listing-top-banner__card-price-note",children:["per person",(0,t.jsx)("br",{}),"double occupancy"]})]})]})]}),(0,t.jsx)("div",{className:"listing-top-banner__card-footer",children:"TRIP OF THE WEEK"})]})]})]})};var ef=e.i(394756),ev=e.i(471238),ej=e.i(487635),eb=e.i(603333);let ew=(0,e.i(235884).default)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var ey=e.i(119649),e_=e.i(26145),eN=e.i(709166),eC=e.i(907950),ek=e.i(611126),eS=e.i(304746),eM=e.i(945661),eR=e.i(255204),eE=["PageUp","PageDown"],eA=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],eP={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},eI="Slider",[eD,eT,eL]=(0,eR.createCollection)(eI),[e$,ez]=(0,eN.createContextScope)(eI,[eL]),[eF,eB]=e$(eI),eH=s.forwardRef((e,a)=>{let{name:i,min:l=0,max:r=100,step:n=1,orientation:o="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:p=[l],value:u,onValueChange:h=()=>{},onValueCommit:m=()=>{},inverted:g=!1,form:f,...v}=e,j=s.useRef(new Set),b=s.useRef(0),w=s.useRef(!1),y="horizontal"===o,[_,N]=s.useState(null),C=(0,x.useComposedRefs)(a,N),[k=[],S]=(0,eC.useControllableState)({prop:u,defaultProp:p,onChange:e=>{let t=[...j.current];t[b.current]?.focus({preventScroll:!0,focusVisible:w.current}),w.current=!1,h(e)}}),M=s.useRef(k),R=s.useRef(k);function E(e,t,{commit:s}={commit:!1}){let a=e3(n),i=te(Math.round((e-l)/n)*n+l,a),o=(0,ey.clamp)(i,[l,r]);S((e=[])=>{let a=function(e=[],t,s){let a=[...e];return a[s]=t,a.sort((e,t)=>
1e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,s)=>e[s+1]-t))>=t;return!0}(a,d*n))return e;{b.current=a.indexOf(o);let t=String(a)!==String(e);return t&&s&&m(a),t?a:e}})}return s.useEffect(()=>{let e=f?_?.ownerDocument.getElementById(f):_?.closest("form");if(e instanceof HTMLFormElement){let t=()=>S(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[_,f,S]),(0,t.jsx)(eF,{scope:e.__scopeSlider,name:i,disabled:c,min:l,max:r,valueIndexToChangeRef:b,thumbs:j.current,values:k,orientation:o,form:f,children:(0,t.jsx)(eD.Provider,{scope:e.__scopeSlider,children:(0,t.jsx)(eD.Slot,{scope:e.__scopeSlider,children:(0,t.jsx)(y?eU:eV,{"aria-disabled":c,"data-disabled":c?"":void 0,...v,ref:C,onPointerDown:(0,e_.composeEventHandlers)(v.onPointerDown,()=>{c||(M.current=k,w.current=!1)}),min:l,max:r,inverted:g,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let s=e.map(e=>Math.abs(e-t)),a=Math.min(...s);return s.indexOf(a)}(k,e);E(e,t)},onSlideMove:c?void 0:function(e){E(e,b.current)},onSlideEnd:c?void 0:function(){let e=M.current[b.current];k[b.current]!==e&&m(k)},onHomeKeyDown:()=>{c||(w.current=!0,E(l,0,{commit:!0}))},onEndKeyDown:()=>{c||(w.current=!0,E(r,k.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!c){w.current=!0;let s=eE.includes(e.key)||e.shiftKey&&eA.includes(e.key),a=b.current;E(function(e,{min:t,step:s,direction:a,multiplier:i}){let l,r=e3(s),n=(e-t)/s,o=Math.round(n);return l=te(o*s+t,r)===te(e,r)?o+i*a:a>0?Math.ceil(n):Math.floor(n),te(l*s+t,r)}(k[a],{min:l,step:n,direction:t,multiplier:s?10:1}),a,{commit:!0})}}})})})})});eH.displayName=eI;var[eO,eZ]=e$(eI,{startEdge:"left",endEdge:"right",size:"width",direction:1}),eU=s.forwardRef((e,a)=>{let{min:i,max:l,dir:r,inverted:n,onSlideStart:o,onSlideMove:c,onSlideEnd:d,onStepKeyDown:p,...u}=e,[h,m]=s.useState(null),g=(0,x.useComposedRefs)(a,m),f=s.useRef(void 0),v=(0,ek.useDirection)(r),j="ltr"===v,b=j&&!n||!j&&n;function w(e){let t=f.current||h.getBoundingClientRect(),s=e7([0,t.width],b?[i,l]:[l,i]);return f.current=t,s(e-t.left)}return(0,t.jsx)(eO,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,t.jsx)(eY,{dir:v,"data-orientation":"horizontal",...u,ref:g,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=w(e.clientX);o?.(t)},onSlideMove:e=>{let t=w(e.clientX);c?.(t)},onSlideEnd:()=>{f.current=void 0,d?.()},onStepKeyDown:e=>{let t=eP[b?"from-left":"from-right"].includes(e.key);p?.({event:e,direction:t?-1:1})}})})}),eV=s.forwardRef((e,a)=>{let{min:i,max:l,inverted:r,onSlideStart:n,onSlideMove:o,onSlideEnd:c,onStepKeyDown:d,...p}=e,u=s.useRef(null),h=(0,x.useComposedRefs)(a,u),m=s.useRef(void 0),g=!r;function f(e){let t=m.current||u.current.getBoundingClientRect(),s=e7([0,t.height],g?[l,i]:[i,l]);return m.current=t,s(e-t.top)}return(0,t.jsx)(eO,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,t.jsx)(eY,{"data-orientation":"vertical",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=f(e.clientY);n?.(t)},onSlideMove:e=>{let t=f(e.clientY);o?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{let t=eP[g?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),eY=s.forwardRef((e,s)=>{let{__scopeSlider:a,onSlideStart:i,onSlideMove:l,onSlideEnd:r,onHomeKeyDown:n,onEndKeyDown:o,onStepKeyDown:c,...d}=e,p=eB(eI,a);return(0,t.jsx)(m.Primitive.span,{...d,ref:s,onKeyDown:(0,e_.composeEventHandlers)(e.onKeyDown,e=>{"Home"===e.key?(n(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):eE.concat(eA).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,e_.composeEventHandlers)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):i(e)}),onPointerMove:(0,e_.composeEventHandlers)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&l(e)}),onPointerUp:(0,e_.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),r(e))})})}),eG="SliderTrack",eW=s.forwardRef((e,s)=>{let{__scopeSlider:a,...i}=e,l=eB(eG,a);return(0,t.jsx)(m.Primitive.span,{"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,...i,ref:s})});
1eW.displayName=eG;var eq="SliderRange",eK=s.forwardRef((e,a)=>{let{__scopeSlider:i,...l}=e,r=eB(eq,i),n=eZ(eq,i),o=s.useRef(null),c=(0,x.useComposedRefs)(a,o),d=r.values.length,p=r.values.map(e=>e9(e,r.min,r.max)),u=d>1?Math.min(...p):0,h=100-Math.max(...p);return(0,t.jsx)(m.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...l,ref:c,style:{...e.style,[n.startEdge]:u+"%",[n.endEdge]:h+"%"}})});eK.displayName=eq;var eJ="SliderThumb",[eX,eQ]=e$(eJ),e0="SliderThumbProvider";function e1(e){let{__scopeSlider:a,name:i,children:l,internal_do_not_use_render:r}=e,n=eB(e0,a),o=eT(a),[c,d]=s.useState(null),p=s.useMemo(()=>c?o().findIndex(e=>e.ref.current===c):-1,[o,c]),u=(0,eM.useSize)(c),h=!c||!!n.form||!!c.closest("form"),m=n.values[p],g=i??(n.name?n.name+(n.values.length>1?"[]":""):void 0),x=void 0===m?0:e9(m,n.min,n.max);s.useEffect(()=>{if(c)return n.thumbs.add(c),()=>{n.thumbs.delete(c)}},[c,n.thumbs]);let f={value:m,name:g,form:n.form,isFormControl:h,index:p,thumb:c,onThumbChange:d,percent:x,size:u};return(0,t.jsx)(eX,{scope:a,...f,children:"function"==typeof r?r(f):l})}e1.displayName=e0;var e2="SliderThumbTrigger",e6=s.forwardRef((e,s)=>{var a,i,l,r,n;let o,c,{__scopeSlider:d,...p}=e,u=eB(e2,d),h=eZ(e2,d),{index:g,value:f,percent:v,size:j,onThumbChange:b}=eQ(e2,d),w=(0,x.useComposedRefs)(s,b),y=(a=g,(i=u.values.length)>2?`Value ${a+1} of ${i}`:2===i?["Minimum","Maximum"][a]:void 0),_=j?.[h.size],N=_?(l=_,r=v,n=h.direction,c=e7([0,50],[0,o=l/2]),(o-c(r)*n)*n):0;return(0,t.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[h.startEdge]:`calc(${v}% + ${N}px)`},children:(0,t.jsx)(eD.ItemSlot,{scope:d,children:(0,t.jsx)(m.Primitive.span,{role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":u.min,"aria-valuenow":f,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...p,ref:w,style:void 0===f?{display:"none"}:e.style,onFocus:(0,e_.composeEventHandlers)(e.onFocus,()=>{u.valueIndexToChangeRef.current=g})})})})});e6.displayName=e2;var e4=s.forwardRef((e,s)=>{let{__scopeSlider:a,name:i,...l}=e;return(0,t.jsx)(e1,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:e,isFormControl:i})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e6,{...l,ref:s,__scopeSlider:a}),i?(0,t.jsx)(e5,{__scopeSlider:a},e):null]})})});e4.displayName=eJ;var e8="SliderBubbleInput",e5=s.forwardRef(({__scopeSlider:e,...a},i)=>{let{value:l,name:r,form:n}=eQ(e8,e),o=s.useRef(null),c=(0,x.useComposedRefs)(o,i),d=(0,eS.usePrevious)(l);return s.useEffect(()=>{let e=o.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(d!==l&&t){let s=new Event("input",{bubbles:!0});t.call(e,l),e.dispatchEvent(s)}},[d,l]),(0,t.jsx)(m.Primitive.input,{style:{display:"none"},name:r,form:n,...a,ref:c,defaultValue:l})});function e9(e,t,s){return(0,ey.clamp)(100/(s-t)*(e-t),[0,100])}function e7(e,t){return s=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(s-e[0])}}function e3(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[e,s]=t.split("e"),a=e.split(".")[1]||"",i=Number(s);return Math.max(0,a.length-i)}let s=t.split(".")[1];return s?s.length:0}function te(e,t){let s=Math.pow(10,t);return Math.round(e*s)/s}e5.displayName=e8;let tt=s.forwardRef(({className:e,value:s,defaultValue:a,...i},l)=>{let r=(s??a??[0]).length;return(0,t.jsxs)(eH,{ref:l,value:s,defaultValue:a,className:(0,Z.cn)("relative flex w-full touch-none select-none items-center",e),...i,children:[(0,t.jsx)(eW,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:(0,t.jsx)(eK,{className:"absolute h-full bg-primary"})}),Array.from({length:r}).map((e,s)=>(0,t.jsx)(e4,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"},s))]})});tt.displayName=eH.displayName;var ts=e.i(196405),ta=e.i(515074),ti=e.i(987323);let tl=["January","February","March","April","May","June","July","August","September","October","November","December"],tr=({count:e,active:s,onClick:a})=>(0,t.jsx)("button",{className:`listing-filter__rating-pill${s?" listing-filter__rating-pill--active":""}`,onClick:a,type:"button",children:[1,2,3,4,5].map(s=>(0,t.jsx)("span",{className:`listing-filter__star${s>e?" listing-filter__star--empty":""}`,children:"â
"},s))}),tn=({allPackages:e=[],filters:i,setFilters:l,suggestedDates:o=[],noDateMatch:c=!1,defaultBudgetRange:d=[0,99999],isFilterActive:p=!1,clearAllFilters:u})=>
1{let[h,m]=(0,s.useState)(!1),g=(0,s.useMemo)(()=>{let t=new Set;return e.forEach(e=>{null!=e.nights&&t.add(e.nights)}),[...t].sort((e,t)=>e-t).map(e=>`${e} Night${1!==e?"s":""}`)},[e]),x=(0,s.useMemo)(()=>{let t=new Set;return e.flatMap(e=>e.activities||[]).map(e=>e.activity).filter(e=>!(!e||t.has(e))&&(t.add(e),!0))},[e]),f=(0,s.useMemo)(()=>{let t=new Set;return e.forEach(e=>{(e.hotels||[]).forEach(e=>{let s=parseInt(e.htL_STAR);s>=1&&s<=5&&t.add(s)})}),[...t].sort((e,t)=>e-t)},[e]),v=(0,s.useMemo)(()=>{let t=new Set;return e.flatMap(e=>e.availableDatesList||[]).forEach(e=>{let s=e.ratE_AVIAL_DATE?.split("/")?.[2];s&&t.add(s)}),[...t].sort()},[e]),j=(0,s.useMemo)(()=>{let[e,t]=d;if(e===t||99999===t)return[];let s=Math.max(50,50*Math.ceil((t-e)/3/50));return[[e,e+s],[e+s+1,e+2*s],[e+2*s+1,t]].filter(([s,a])=>s<=t&&a>=e&&s<a).map(([e,t])=>`$${e} - $${t}`)},[d]),[b,w]=d,y=(e,t)=>l(s=>({...s,[e]:t}));return(0,t.jsxs)("div",{className:"listing-filter",children:[(0,t.jsxs)("div",{className:"listing-filter__hero-row",children:[(0,t.jsx)("h2",{className:"listing-filter__hero-title",children:"Find the right journey for your client"}),p&&(0,t.jsxs)("button",{type:"button",className:"listing-filter__clear-all",onClick:u,style:{display:"flex",alignItems:"center",gap:5,background:"none",border:"1px solid #e5e7eb",borderRadius:6,padding:"4px 10px",fontSize:"clamp(11px,1vw,12px)",color:"#374151",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:[(0,t.jsx)(ew,{size:11}),"Reset"]})]}),(0,t.jsx)("p",{className:"listing-filter__hero-sub",children:"Use filters below to narrow down the perfect package"}),(0,t.jsxs)("div",{className:"listing-filter__search-wrap",style:{position:"relative"},children:[(0,t.jsx)("span",{className:"listing-filter__search-icon",children:(0,t.jsx)(r.Search,{size:16})}),(0,t.jsx)(ts.Input,{className:"listing-filter__input listing-filter__search-input !pl-10",type:"text",placeholder:"Search for trip",value:i.searchText,onChange:e=>y("searchText",e.target.value)}),i.searchText&&(0,t.jsx)("button",{type:"button",onClick:()=>y("searchText",""),style:{position:"absolute",right:10,top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",display:"flex",color:"#9ca3af"},children:(0,t.jsx)(ej.X,{size:14})})]}),g.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"listing-filter__section",children:[(0,t.jsx)("p",{className:"listing-filter__section-title",children:"Duration of Trip"}),(0,t.jsx)("div",{className:"listing-filter__pill-grid",children:g.map(e=>{let s=i.duration===e;return(0,t.jsxs)("button",{type:"button",className:`listing-filter__pill${s?" listing-filter__pill--active":""}`,onClick:()=>y("duration",s?"":e),children:[e,s?(0,t.jsx)("span",{className:"listing-filter__pill-x",children:(0,t.jsx)(ej.X,{size:12})}):(0,t.jsx)("span",{className:"listing-filter__pill-plus",children:(0,t.jsx)(eb.Plus,{size:13})})]},e)})})]}),(0,t.jsx)("div",{className:"listing-filter__divider"})]}),w>0&&99999!==w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"listing-filter__section",children:[(0,t.jsx)("p",{className:"listing-filter__section-title",children:"Budget"}),(0,t.jsx)("p",{className:"listing-filter__section-sub",children:"Set a Budget Range"}),(0,t.jsxs)("div",{className:"listing-filter__budget-inputs",children:[(0,t.jsxs)("div",{className:"listing-filter__budget-input-box",children:[(0,t.jsx)("span",{className:"listing-filter__budget-label",children:"Min Price"}),(0,t.jsxs)("span",{className:"listing-filter__budget-value",children:["$",i.budgetRange[0].toLocaleString()]})]}),(0,t.jsx)("span",{className:"listing-filter__budget-dash",children:"-"}),(0,t.jsxs)("div",{className:"listing-filter__budget-input-box",children:[(0,t.jsx)("span",{className:"listing-filter__budget-label",children:"Max Price"}),(0,t.jsxs)("span",{className:"listing-filter__budget-value",children:["$",i.budgetRange[1].toLocaleString()]})]})]}),(0,t.jsx)(tt,{min:b,max:w,step:1,value:i.budgetRange,onValueChange:e=>{e[0]<=e[1]&&y("budgetRange",e)},className:"listing-filter__slider"}),(0,t.jsxs)("div",{className:"listing-filter__slider-labels",children:[(0,t.jsxs)("span",{className:"listing-filter__slider-label",children:["$",b.toLocaleStr
1ing()]}),(0,t.jsxs)("span",{className:"listing-filter__slider-label listing-filter__slider-label--right",children:["$",w.toLocaleString()]})]}),(i.budgetRange[0]>b||i.budgetRange[1]<w)&&(0,t.jsxs)("button",{type:"button",onClick:()=>y("budgetRange",[b,w]),style:{background:"none",border:"none",cursor:"pointer",fontSize:"clamp(11px,1vw,12px)",color:"#6b7280",display:"flex",alignItems:"center",gap:4,padding:"2px 0",marginTop:4},children:[(0,t.jsx)(ej.X,{size:11})," Reset price range"]}),j.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"listing-filter__date-or",style:{marginTop:"clamp(10px,1vw,14px)"},children:"Or Choose from below"}),(0,t.jsx)("div",{className:"listing-filter__range-list",children:j.map(e=>{let s=i.budgetPreset===e;return(0,t.jsxs)("button",{type:"button",className:`listing-filter__range-btn${s?" listing-filter__range-btn--active":""}`,onClick:()=>y("budgetPreset",s?"":e),children:[e,s?(0,t.jsx)("span",{className:"listing-filter__range-btn-x",children:(0,t.jsx)(ej.X,{size:14})}):(0,t.jsx)("span",{className:"listing-filter__range-btn-plus",children:(0,t.jsx)(eb.Plus,{size:15})})]},e)})})]})]}),(0,t.jsx)("div",{className:"listing-filter__divider"})]}),x.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"listing-filter__section",children:[(0,t.jsx)("p",{className:"listing-filter__section-title",children:"Activities"}),(0,t.jsx)("p",{className:"listing-filter__section-sub",children:"Select must do activities from the list"}),(0,t.jsxs)(ti.Select,{value:"",onValueChange:e=>{e&&(i.activities.includes(e)||l(t=>({...t,activities:[...t.activities,e]})))},children:[(0,t.jsx)(ti.SelectTrigger,{className:"listing-filter__select-trigger",children:(0,t.jsx)(ti.SelectValue,{placeholder:"Select Activities"})}),(0,t.jsx)(ti.SelectContent,{children:x.map(e=>(0,t.jsx)(ti.SelectItem,{value:e,children:e},e))})]}),i.activities.length>0&&(0,t.jsx)("div",{className:"listing-filter__tags",children:i.activities.map((e,s)=>(0,t.jsxs)("span",{className:"listing-filter__tag",children:[e,(0,t.jsx)("span",{className:"listing-filter__tag-x",onClick:()=>l(e=>({...e,activities:e.activities.filter((e,t)=>t!==s)})),children:(0,t.jsx)(ej.X,{size:11})})]},s))})]}),(0,t.jsx)("div",{className:"listing-filter__divider"})]}),(0,t.jsxs)("div",{className:"listing-filter__section",children:[(0,t.jsx)("p",{className:"listing-filter__section-title",children:"Travel Date"}),(0,t.jsxs)("div",{className:"listing-filter__date-dropdowns",children:[(0,t.jsxs)(ti.Select,{value:i.travelYear,onValueChange:e=>{y("travelYear",e),y("travelDate",null)},children:[(0,t.jsx)(ti.SelectTrigger,{className:"listing-filter__select-trigger flex-1",children:(0,t.jsx)(ti.SelectValue,{placeholder:"Year"})}),(0,t.jsx)(ti.SelectContent,{children:(v.length>0?v:["2025","2026","2027","2028"]).map(e=>(0,t.jsx)(ti.SelectItem,{value:String(e),children:e},e))})]}),(0,t.jsxs)(ti.Select,{value:i.travelMonth,onValueChange:e=>{y("travelMonth",e),y("travelDate",null)},children:[(0,t.jsx)(ti.SelectTrigger,{className:"listing-filter__select-trigger flex-1",children:(0,t.jsx)(ti.SelectValue,{placeholder:"Month"})}),(0,t.jsx)(ti.SelectContent,{children:tl.map(e=>(0,t.jsx)(ti.SelectItem,{value:e,children:e},e))})]})]}),(i.travelYear||i.travelMonth)&&(0,t.jsxs)("button",{type:"button",onClick:()=>l(e=>({...e,travelDate:null,travelYear:"",travelMonth:""})),style:{background:"none",border:"none",cursor:"pointer",fontSize:"clamp(11px,1vw,12px)",color:"#6b7280",display:"flex",alignItems:"center",gap:4,padding:"2px 0"},children:[(0,t.jsx)(ej.X,{size:12})," Clear date"]}),(0,t.jsx)("p",{className:"listing-filter__date-or",children:"Or Choose a specific travel date"}),(0,t.jsxs)(n.Popover,{open:h,onOpenChange:m,children:[(0,t.jsx)(n.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("div",{className:"listing-filter__datepicker-wrap",style:{cursor:"pointer"},children:[(0,t.jsx)(ts.Input,{className:"listing-filter__input listing-filter__datepicker-input",readOnly:!0,placeholder:"Select Travel Date",value:i.travelDate?(0,a.format)(i.travelDate,"MMMM d, yyyy"):""}),(0,t.jsx)("span",{className:"listing-filter__datepicker-icon",children:(0,t.jsx)(ev.CalendarDays,{size:16})})]})}),(0,t.jsx)(n.PopoverContent,{className:"p-0 w-auto",align:"start",children:(0,t.jsx)(ta.Calendar,{mode:"single",selected:i.travelDate,onSelect:e=>{e&&l(t=>({...t,travelDate:e,travelYear:String(e.getFullYear()),travelMonth:tl[e.getMonth()]})),m(!1)},disabled:{before:new Date},fromDate:new Date,initialFocus:!0})})]}),c&&o.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"listing-filter__date-error",children:"No packages found for this date. Try:"}),(0,t.jsx)("div",{className:"listing-filter__date-suggestions",children:o.map(e=>(0,t.jsxs)("button",{type:"button",className:"listing-filter__date-pill",onClick:()=>{let t;!isNaN(t=new Date(e))&&l(e=>({...e,travelDate:t,travelYear:String(t.getFullYear()),travelMonth:tl[t.getMonth()]}))},children:[e,(0,t.jsx)("span",{className:"listing-filter__date-pill-plus",children:(0,t.jsx)(eb.Plus,{size:13})})]},e))})]})]}),f.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"listing-filter__divider"}),(0,t.jsxs)("div",{className:"listing-filter__section",children:[(0,t.jsx)("p",{className:"listing-filter__section-title",children:"Accommodation Rating"}),(0,t.jsx)("div",{className:"listing-filter__rating-grid",children:f.map(e=>
1(0,t.jsx)(tr,{count:e,active:i.accommodationRating===e,onClick:()=>y("accommodationRating",i.accommodationRating===e?null:e)},e))})]})]})]})};var to=e.i(70014),tc="Toggle",td=s.forwardRef((e,s)=>{let{pressed:a,defaultPressed:i,onPressedChange:l,...r}=e,[n,o]=(0,eC.useControllableState)({prop:a,onChange:l,defaultProp:i??!1,caller:tc});return(0,t.jsx)(m.Primitive.button,{type:"button","aria-pressed":n,"data-state":n?"on":"off","data-disabled":e.disabled?"":void 0,...r,ref:s,onClick:(0,e_.composeEventHandlers)(e.onClick,()=>{e.disabled||o(!n)})})});td.displayName=tc;let tp=(0,e.i(657838).cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),tu=s.forwardRef(({className:e,variant:s,size:a,...i},l)=>(0,t.jsx)(td,{ref:l,className:(0,Z.cn)(tp({variant:s,size:a,className:e})),...i}));tu.displayName=td.displayName;var th=e.i(326808);let tm=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,64V192H88V64Z",opacity:"0.2"}),s.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z"}))]]),tg=s.forwardRef((e,t)=>s.createElement(th.default,{ref:t,...e,weights:tm}));tg.displayName="ListBulletsIcon";var tx=e.i(354285);let tf=["January","February","March","April","May","June","July","August","September","October","November","December"],tv=()=>(0,t.jsx)("svg",{className:"tbf-chevron",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),tj=({totalCount:e,filteredCount:a,countryName:i,viewMode:l,setViewMode:r,isLoading:n,allPackages:o=[],filters:c,setFilters:d,sort:p,setSort:u,tourType:h="country"})=>{let m={customized:{singular:"Customized Trip",plural:"Customized Trips"},category:{singular:"Package",plural:"Packages"}
1,offer:{singular:"Offer",plural:"Offers"}}[h],g=!!m,x=(0,s.useMemo)(()=>{let e=new Set;return o.map(e=>e.pkG_DESTINATION||e.country).filter(t=>t&&!e.has(t)&&e.add(t))},[o]),f=(0,s.useMemo)(()=>{let e=new Set;return o.map(e=>e.nights).filter(t=>null!=t&&!e.has(t)&&e.add(t)).sort((e,t)=>e-t).map(e=>({label:`${e} Night${1!==e?"s":""}`,value:String(e)}))},[o]),v=(0,s.useMemo)(()=>{if(!o.length)return[];let e=o.map(e=>e.offerPrice).filter(Boolean),t=Math.max(0,100*Math.floor(Math.min(...e)/100)-1),s=100*Math.ceil((Math.max(...e)+1)/100)-1;if(t===s)return[{label:`$${t}`,value:`$${t} - $${t}`}];let a=Math.max(50,50*Math.ceil((s-t)/3/50));return[[t,t+a],[t+a+1,t+2*a],[t+2*a+1,s]].filter(([e,a])=>e<=s&&a>t&&e<a).map(([e,t])=>({label:`$${e} â $${t}`,value:`$${e} - $${t}`}))},[o]),j=(0,s.useMemo)(()=>{let e=new Date,t=new Set,s=[];return o.flatMap(e=>e.availableDatesList||[]).forEach(a=>{let i=a.ratE_AVIAL_DATE?.split("/");if(!i||i.length<3)return;let[,l,r]=i;if(new Date(parseInt(r),parseInt(l)-1,1)<=e)return;let n=`${tf[parseInt(l)-1]} ${r}`;t.has(n)||(t.add(n),s.push({label:n,month:tf[parseInt(l)-1],year:String(r)}))}),s.sort((e,t)=>new Date(`${e.month} 1, ${e.year}`)-new Date(`${t.month} 1, ${t.year}`)).slice(0,8)},[o]),b=(0,s.useMemo)(()=>{let e=new Set;return o.flatMap(e=>e.activities||[]).map(e=>e.activity).filter(t=>t&&!e.has(t)&&e.add(t))},[o]),w=c?.destination||"",y=c?.duration||"",_=c?.budgetPreset||"",N=c?.travelMonth&&c?.travelYear?`${c.travelMonth} ${c.travelYear}`:"",C=c?.activities?.length===1?c.activities[0]:"",k=(0,s.useMemo)(()=>{if(!o?.length)return 0;let e=o.map(e=>e.offerPrice).filter(Boolean);return e.length?Math.max(0,100*Math.floor(Math.min(...e)/100)-1):0},[o]),S=(0,s.useMemo)(()=>{if(!o?.length)return 99999;let e=o.map(e=>e.offerPrice).filter(Boolean);return e.length?100*Math.ceil((Math.max(...e)+1)/100)-1:99999},[o]),M=c?.budgetRange?.[0]!=null&&c.budgetRange[0]>k||c?.budgetRange?.[1]!=null&&c.budgetRange[1]<S,R=!!(w||y||_||N||C||M),E=R?a:e,A=(e,t)=>d(s=>({...s,[e]:t})),P=({label:e,activeLabel:s,items:a,onSelect:i,onClear:l,isLast:r})=>{let n=!!s;return(0,t.jsxs)("div",{className:"tbf-dropdown-wrapper",children:[(0,t.jsxs)(to.DropdownMenu,{modal:!1,children:[(0,t.jsx)(to.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:`tbf-dropdown-btn${!r?" tbf-dropdown-btn--bordered":""}${n?" tbf-dropdown-btn--active":""}`,children:[(0,t.jsx)("span",{className:"tbf-dropdown-btn-label",children:n?s:e}),(0,t.jsx)(tv,{})]})}),(0,t.jsx)(to.DropdownMenuContent,{className:"tbf-dropdown-content",children:a})]}),n&&(0,t.jsx)("button",{className:"tbf-dropdown-clear-btn",onClick:l,"aria-label":`Clear ${e}`,children:(0,t.jsx)(ej.X,{size:12})})]})};return(0,t.jsxs)("div",{className:"tbf-wrapper",children:[(0,t.jsxs)("div",{className:"tbf-header",children:[(0,t.jsx)("div",{className:"tbf-title-block",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ei.Skeleton,{style:{width:220,height:28,borderRadius:6,marginBottom:6}}),(0,t.jsx)(ei.Skeleton,{style:{width:260,height:14,borderRadius:4}})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("h1",{className:"tbf-title",children:g?(0,t.jsx)("span",{className:"tbf-title-highlight",children:E>0?`${E} ${1!==E?m.plural:m.singular}`:"No Results"}):(0,t.jsxs)(t.Fragment,{children:[i||"Results",":"," ",(0,t.jsx)("span",{className:"tbf-title-highlight",children:E>0?`${E} Package${1!==E?"s":""}`:"No Results"})]})})})}),(0,t.jsx)(tx.TooltipProvider,{delayDuration:200,children:(0,t.jsx)("div",{className:"tbf-toggle-group",children:(0,t.jsxs)(tx.Tooltip,{children:[(0,t.jsx)(tx.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(tu,{pressed:"list"===l,onPressedChange:()=>r("list"),"aria-label":"List view",className:`tbf-toggle-btn${"list"===l?" tbf-toggle-btn--active":""}`,children:(0,t.jsx)(tg,{size:14,weight:"bold"})})}),(0,t.jsx)(tx.TooltipContent,{side:"top",className:"tbf-tooltip",children:"List view"})]})})})]}),(0,t.jsxs)("div",{className:"tbf-filter-section",children:[R&&(0,t.jsxs)("button",{className:"tbf-reset-btn",onClick:()=>{d(e=>({...e,destination:"",duration:"",budgetPreset:"",travelMonth:"",travelYear:"",travelDate:null,activities:[],budgetRange:[k,S]})),u("recommended")},children:[(0,t.jsx)(ej.X,{size:13}),"Reset"]}),(0,t.jsxs)("div",{className:"tbf-filter-bar",children:[x.length>0&&(0,t.jsx)(P,{label:"Destinations",activeLabel:w,onClear:()=>A("destination",""),items:x.map(e=>(0,t.jsx)(to.DropdownMenuItem,{className:`tbf-dropdown-item${w===e?" tbf-dropdown-item--active":""}`,onClick:()=>{A("destination",w===e?"":e)},children:e},e))}),j.length>0&&(0,t.jsx)(P,{label:"Dates",activeLabel:N,onClear:()=>d(e=>({...e,travelMonth:"",travelYear:"",travelDate:null})),items:j.map(({label:e,month:s,year:a})=>(0,t.jsx)(to.DropdownMenuItem,{className:`tbf-dropdown-item${N===e?" tbf-dropdown-item--active":""}`,onClick:()=>{let e;return e=c?.travelMonth===s&&c?.travelYear===a,void d(t=>({...t,travelMonth:e?"":s,travelYear:e?"":a,travelDate:null}))},children:e},e))}),f.length>0&&(0,t.jsx)(P,{label:"Duration",activeLabel:y,onClear:()=>A("duration",""),items:f.map(({label:e,value:s})=>(0,t.jsx)(to.DropdownMenuItem,{className:`tbf-dropdown-item${y===e?" tbf-dropdown-item--active":""}`,onClick:()=>{let e;A("duration",y===(e=`${s} Night${1!==parseInt(s)?"s":""}`)?"":e)},children:e},s))}),v.length>0&&(0,t.jsx)(P,{label:"Price",activeLabel:_,onClear:()=>A("budgetPreset",""),items:v.map(({label:e,value:s})=>(0,t.jsx)(to.DropdownMenuItem,{className:`tbf-dropdown-item${_===s?" tbf-dropdown-item--active":""}`,onClick:()=>{A("budgetPreset",_===s?"":s)},children:e},s))}),b.length>0&&(0,t.jsx)(P,{label:"Activity",activeLabel:C,onClear:()=>A("activities",[]),items:b.map(e=>(0,t.jsx)(to.DropdownMenuItem,{className:`tbf-dropdown-item${c?.activities?.includes(e)?" tbf-dropdown-item--active":""}`,onClick:()=>{d(t=>{let s=t.activities.includes(e);return{...t,activities:s?t.activities.filter(t=>t!==e):[e]}})},children:e},e))})]})]})]})};var tb=e.i(755788),tw=e.i(228653),ty=e.i(935654),t_=e.i(251424),tN=e.i(29324),tC=e.i(499942),tk=e.i(314085);let tS=()=>(0,t.jsx)("div",{className:"tl-skel-card",children:(0,t.jsxs)("div",{className:"tl-skel-inner",children:[(0,t.jsxs)("div",{className:"tl-skel-img-col",children:[(0,t.jsx)(ei.Skeleton,{className:"tl-skel-img"}),(0,t.jsx)("div",{className:"tl-skel-img-badge",children:(0,t.jsx)(ei.Skeleton,{style:{width:72,height:24,borderRadius:999,background:"rgba(200,200,200,0.5)"}})}),(0,t.jsxs)("div",{className:"tl-skel-img-actions",children:[(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:28,borderRadius:6,background:"rgba(200,200,200,0.4)"}}),(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:28,borderRadius:6,background:"rgba(200,200,200,0.4)"}})]})]}),(0,t.jsxs)("div",{className:"tl-skel-body",children:[(0,t.jsxs)("div",{className:"tl-skel-details",children:[(0,t.jsx)(ei.Skeleton,{style:{width:"75%",height:"clamp(16px,1.8vw,22px)",borderRadius:4}}),(0,t.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,t.jsx)(ei.Skeleton,{style:{width:56,height:14,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:4,height:4,borderRadius:999}}),(0,t.jsx)(ei.Skeleton,{style:{width:56,height:14,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:4,height:4,borderRadius:999}}),(0,t.jsx)(ei.Skeleton,{style:{width:80,height:14,borderRadius:4}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:"90%",height:13,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:"80%",height:13,borderRadius:4}}),(0,t.jsxs)("div",{style:{display:"flex",gap:8,marginTop:4},children:[(0,t.jsx)(ei.Skeleton,{style:{width:120,height:22,borderRadius:999}}),(0,t.jsx)(ei.Skeleton,{style:{width:110,height:22,borderRadius:999}})]}),(0,t.jsx)("div",{style:{display:"flex",gap:6,marginTop:6},children:[1,2,3,4,5].map(e=>(0,t.jsx)(ei.Skeleton,{style:{width:52,height:44,borderRadius:6}},e))})]}),(0,t.jsxs)("div",{className:"tl-skel-accom",children:[(0,t.jsx)(ei.Skeleton,{style:{width:"80%",height:13,borderRadius:4}}),[1,2].map(e=>(0,t.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,t.jsx)(ei.Skeleton,{style:{width:52,height:40,borderRadius:4,flexShrink:0}}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,t.jsx)(ei.Skeleton,{style:{width:80,height:11,borderRadius:3}}),(0,t.jsx)(ei.Skeleton,{style:{width:60,height:10,borderRadius:3}})]})]},e))]})]}),(0,t.jsxs)("div",{className:"tl-skel-pricing",children:[(0,t.jsx)(ei.Skeleton,{style:{width:"55%",height:12,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:"85%",height:14,borderRadius:4}}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,t.jsx)(ei.Skeleton,{style:{width:"65%",height:32,borderRadius:8}}),(0,t.jsx)(ei.Skeleton,{style:{width:"25%",height:12,borderRadius:4}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:"90%",height:12,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:"80%",height:12,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:"clamp(38px,4.5vw,52px)",borderRadius:8,marginTop:"auto"}})]})]})}),tM=()=>(0,t.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",style:{width:12,height:12},children:[(0,t.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.5"}),(0,t.jsx)("path",{d:"M15 15l-3-3",strokeLinecap:"round"})]}),tR=()=>(0,t.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",style:{width:12,height:12},children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,t.jsx)("path",{d:"M10 6v8M6 10h8",strokeLinecap:"round"})]}),tE=()=>(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",xmlns:"http://www.w3.org/2000/svg",style:{width:13,height:13},children:(0,t.jsx)("path",{d:"M3 8l3.5 3.5L13 4.5",strokeLinecap:"round",strokeLinejoin:"round"})}),tA=()=>(0,t.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",xmlns:"http://www.w3.org/2000/svg",style:{width:13,height:13},children:(0,t.jsx)("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-8.5 8.5-3.914.914.914-3.914 8.672-8.328z",strokeLinecap:"round",strokeLinejoin:"round"})}),tP=()=>(0,t.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{width:18,height:18,color:"#2563eb"},children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),tI="https://d230lfojd95r73.cloudfront.net/Content/cultureApi/no-activity-placeholder.png",tD=({src:e,alt:a})=>
1{let[l,r]=(0,s.useState)(e||tI);return(0,t.jsx)(i.default,{src:l,alt:a,fill:!0,className:"tl-cards-list-pp-carousel-img",style:{objectFit:"cover"},sizes:"(max-width: 768px) 100vw, 28vw",unoptimized:!0,onError:()=>r(tI)})},tT=e=>({id:e.packageId,tourType:e.tripType||"schedule",title:e.title,categoryName:e.categoryName||"",nights:String(e.nights??0).padStart(2,"0"),days:String(e.days??0).padStart(2,"0"),destination:e.pkG_DESTINATION||e.country||"",discount:e.discount>0?`${e.discount}% OFF`:null,images:[e.image].filter(Boolean),highlights:(e.highlightsList||[]).map(e=>e.highltTitle).filter(Boolean),moreHighlights:Math.max(0,(e.highlightsList||[]).length-2),recommended:e.packageRecommend||null,accommodations:(e.hotels||[]).map(e=>({name:e.htL_NAME,stars:parseInt(e.htL_STAR)||0,image:e.imagE_PATH||"",nights:e.htL_NIGHTS||0})),originalPrice:e.cutPrice?`$${e.cutPrice}`:null,currentPrice:e.price?`$${e.price}`:null,savings:e.cutPrice&&e.price&&e.cutPrice-e.price>0?`Save upto $${e.cutPrice-e.price} per person`:null,depositAmt:e.pkG_DEPOSIT_AMT||0,hasHotel:e.pkG_HTL_ID,hasActivity:e.pkG_SIGHTSEEN,hasTransfer:e.pkG_TRN_ID,hasMeal:e.pkG_FOOD,hasEasyPay:!0}),tL=({count:e})=>(0,t.jsx)("div",{className:"tl-cards-list-pp-accom-stars",children:Array.from({length:5}).map((s,a)=>(0,t.jsx)("span",{className:"tl-cards-list-pp-star",children:a<e?"â
":"â"},a))}),t$=({trip:e,viewMode:a="list"})=>{let l=[e.hasHotel&&{icon:tb.LuHotel,name:"Hotel"},e.hasActivity&&{icon:tw.MdOutlineKitesurfing,name:"Activity"},e.hasTransfer&&{icon:ty.IoCarSportSharp,name:"Transfer"},e.hasMeal&&{icon:t_.GiHotMeal,name:"Meal"},e.hasEasyPay&&{icon:ty.IoCashOutline,name:"Easy Pay"}].filter(Boolean),[r,n]=(0,s.useState)(!1),[o,c]=(0,s.useState)(!1),d=r?e.highlights:e.highlights.slice(0,2),p=o?e.accommodations:e.accommodations.slice(0,2),{goToPackageDetail:u,isLoading:h}=(0,en.useCreateHolidayDetails)(),{openModal:m}=(0,eo.useModal)(),{toggleCompare:g,isInCompare:x}=(0,tk.useCompare)(),f=x(e.id);return(0,t.jsx)("div",{className:`tl-cards-list-pp-card-group${"grid"===a?" tl-cards-list-pp-card-group--grid":""}`,children:(0,t.jsx)(ea.Card,{className:"tl-cards-list-pp-card",children:(0,t.jsx)(ea.CardContent,{className:"p-0",children:(0,t.jsxs)("div",{className:"tl-cards-list-pp-card-inner",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-carousel-col",children:[e.discount&&(0,t.jsx)("span",{className:"tl-cards-list-pp-discount-badge",children:e.discount}),(0,t.jsx)("div",{className:"tl-cards-list-pp-wishlist-btn",children:(0,t.jsx)(tC.default,{packageId:e.id,size:16,variant:"icon"})}),(0,t.jsxs)(tN.Carousel,{className:"w-full h-full",children:[(0,t.jsx)(tN.CarouselContent,{children:(e.images.length>0?e.images:[tI]).map((s,a)=>(0,t.jsx)(tN.CarouselItem,{children:(0,t.jsx)("div",{className:"tl-cards-list-pp-carousel-img-wrap",children:(0,t.jsx)(tD,{src:s,alt:`${e.title} photo ${a+1}`})})},a))}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-carousel-controls",children:[(0,t.jsx)(tN.CarouselPrevious,{className:"tl-cards-list-pp-carousel-arrow"}),(0,t.jsxs)("span",{className:"tl-cards-list-pp-carousel-count",children:["1/",e.images.length||1]}),(0,t.jsx)(tN.CarouselNext,{className:"tl-cards-list-pp-carousel-arrow"})]})]}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-img-actions",children:[(0,t.jsxs)("button",{className:"tl-cards-list-pp-img-action-btn",onClick:()=>{m("findMyDate",{card:{id:e.id,title:e.title,country:e.destination,image:e.images[0]||tI}})},children:[(0,t.jsx)(tM,{})," Find my date"]}),(0,t.jsx)("div",{className:"tl-cards-list-pp-img-action-divider"}),(0,t.jsxs)("button",{className:`tl-cards-list-pp-img-action-btn${f?" tl-cards-list-pp-img-action-btn--selected":""}`,onClick:()=>{g(e)},children:[(0,t.jsx)(tR,{})," ",f?"Selected":"Compare"]})]})]}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-middle-col",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-details-col",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-details-top",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"tl-cards-list-pp-badge-row",children:[(0,t.jsx)("h2",{className:"tl-cards-list-pp-trip-title",children:e.title}),(0,t.jsx)("span",{className:"tl-cards-list-pp-badge tl-cards-list-pp-badge--category xxx",children:e.categoryName.toLowerCase().replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())})]})}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-meta-row",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-meta-item",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-meta-num",children:e.nights})," ","Night"]}),(0,t.jsx)("div",{className:"tl-cards-list-pp-meta-divider"}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-meta-item",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-meta-num",children:e.days})," ","Day"]}),e.destination&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"tl-cards-list-pp-meta-divider"}),(0,t.jsx)("span",{className:"tl-cards-list-pp-meta-cities",children:e.destination})]})]}),d.length>0&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-highlights",children:[d.map((e,s)=>(0,t.jsxs)("div",{className:"tl-cards-list-pp-highlight-row",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-check-icon",children:(0,t.jsx)(tE,{})}),(0,t.jsx)("span",{children:e})]},s)),e.moreHighlights>0&&(0,t.jsx)("button",{className:"tl-cards-list-pp-more-link",onClick:()=>n(e=>!e),children:r?"View Less":`+${e.moreHighlights} more`})]}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-badge-row",children:[e.recommended&&(0,t.jsxs)("span",{className:"tl-cards-list-pp-badge tl-cards-list-pp-badge--thumb",children:[(0,t.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{width:14,height:14,flexShrink:0},children:(0,t.jsx)("path",{d:"M2 10.5a1.5 1.5 0 113 0v5a1.5 1.5 0 01-3 0v-5zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"})}),(0,t.jsx)("strong",{children:e.recommended})]}),(0,t.jsxs)("a",{href:"/EasyPay",className:"tl-cards-list-pp-badge tl-cards-list-pp-badge--easypay",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("strong",{children:"easy"}),(0,t.jsx)("span",{style:{fontWeight:300},children:"pay"})]})]})]}),l.length>0&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-amenities",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-amenities-label",children:"Inclusions and Amenities"}),(0,t.jsx)("div",{className:"tl-cards-list-pp-amenities-icons",children:l.map((e,a)=>{let i=e.icon;return(0,t.jsxs)(s.default.Fragment,{children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-amenity-item",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-amenity-icon",children:(0,t.jsx)(i,{size:16})}),(0,t.jsx)("span",{className:"tl-cards-list-pp-amenity-name",children:e.name})]}),a<l.length-1&&(0,t.jsx)("div",{className:"tl-cards-list-pp-amenity-divider"})]},e.name)})})]})]}),e.accommodations.length>0&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-accom-col",children:[(0,t.jsx)("p",{className:"tl-cards-list-pp-accom-title",children:"Hotel Accommodations"}),p.map((e,s)=>(0,t.jsxs)("div",{className:"tl-cards-list-pp-accom-item",children:[(0,t.jsx)(i.default,{src:e.image||tI,alt:e.name,width:52,height:40,className:"tl-cards-list-pp-accom-thumb",style:{objectFit:"cover"}}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-accom-info",children:[(0,t.jsx)("p",{className:"tl-cards-list-pp-accom-name",children:e.name}),(0,t.jsx)(tL,{count:e.stars})]})]},s)),e.accommodations.length>2&&(0,t.jsx)("button",{className:"tl-cards-list-pp-more-link",onClick:()=>c(e=>!e),children:o?"View Less":`+${e.accommodations.length-2} View More`}),"customized"!==e.tourType&&(0,t.jsxs)("button",{className:"tl-cards-list-pp-customize-link",onClick:()=>{m("requestQuote",{packageId:e.id,packageName:e.title,country:e.destination,packageImage:e.images?.[0]||tI})},children:[(0,t.jsx)(tA,{})," Customize this trip"]})]})]}),(0,t.jsxs)("div",{className:"tl-cards-list-pp-pricing-col",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-pricing-content",children:[(e.originalPrice||e.currentPrice)&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-tour-cost",children:[(0,t.jsx)("p",{className:"tl-cards-list-pp-pricing-label",children:"Tour Cost"}),e.originalPrice&&(0,t.jsxs)("p",{className:"tl-cards-list-pp-original-price",children:["USD ",(0,t.jsx)("span",{children:e.originalPrice})]})]}),e.currentPrice&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-price-row",children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-price-pill",children:e.currentPrice}),(0,t.jsx)("span",{className:"tl-cards-list-pp-per-person",children:"/person"})]}),e.savings&&(0,t.jsxs)("div",{className:"tl-cards-list-pp-savings",children:[(0,t.jsx)("span",{children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[(0,t.jsx)("path",{d:"M6.21484 12.4297C9.64721 12.4297 12.4297 9.64721 12.4297 6.21484C12.4297 2.78248 9.64721 0 6.21484 0C2.78248 0 0 2.78248 0 6.21484C0 9.64721 2.78248 12.4297 6.21484 12.4297Z",fill:"url(#paint0_linear_savings)"}),(0,t.jsx)("path",{d:"M7.19054 5.90643C6.91728 5.75543 6.62679 5.64038 6.33916 5.52101C6.17184 5.45614 6.0145 5.36802 5.87176 5.25926C5.5942 5.03778 5.64741 4.67824 5.97243 4.53581C6.06354 4.4992 6.16047 4.47923 6.25863 4.47685C6.62951 4.45463 6.99989 4.52792 7.33436 4.6897C7.50405 4.77169 7.56013 4.74578 7.61767 4.5689C7.67807 4.38197 7.72839 4.1921 7.7845 4.00372C7.82188 3.87716 7.77588 3.79375 7.65651 3.74053C7.43999 3.64379 7.21181 3.57562 6.97771 3.53775C6.66995 3.49029 6.66995 3.48885 6.66849 3.17964C6.66704 2.74392 6.66704 2.74392 6.22984 2.74392C6.16655 2.74392 6.10328 2.74249 6.03999 2.74392C5.83578 2.74968 5.80126 2.78563 5.7955 2.99128C5.79264 3.08331 5.7955 3.17537 5.79407 3.26883C5.79264 3.54209 5.79121 3.53777 5.52945 3.63269C4.89666 3.86279 4.50549 4.29424 4.46371 4.98457C4.42632 5.59578 4.74558 6.00854 5.2475 6.30911C5.55672 6.49463 5.89899 6.60392 6.22688 6.74917C6.35517 6.8018 6.47527 6.87251 6.58355 6.95914C6.89852 7.21944 6.84088 7.65234 6.46702 7.81628C6.26902 7.90076 6.05159 7.92912 5.83855 7.89826C5.50471 7.86097 5.18029 7.76404 4.88073 7.61206C4.70383 7.52003 4.65207 7.54448 4.59167 7.73587C4.53989 7.90127 4.49388 8.06808 4.44785 8.23491C4.38602 8.45925 4.40901 8.51246 4.6233 8.61746C4.89656 8.74977 5.18849 8.8
11735 5.48619 8.86482C5.71925 8.9022 5.72636 8.91228 5.72925 9.15388C5.73068 9.26312 5.73068 9.37392 5.73212 9.48322C5.73355 9.62128 5.7997 9.70171 5.94209 9.70469C6.10316 9.70756 6.26567 9.70756 6.42675 9.70326C6.55905 9.7004 6.62664 9.62849 6.62664 9.49472C6.62664 9.34516 6.63392 9.19415 6.62807 9.04458C6.62079 8.89215 6.68704 8.81449 6.83372 8.77421C7.16656 8.6872 7.46319 8.49681 7.68093 8.23046C8.29652 7.48264 8.06208 6.3882 7.19054 5.90643Z",fill:"white"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_savings",x1:"6.21484",y1:"0",x2:"6.21484",y2:"12.4297",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FFB508"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#FC2A02"})]})})]})}),(0,t.jsx)("span",{children:e.savings})]}),(0,t.jsxs)("p",{className:"tl-cards-list-pp-installment",children:["Pay as low as ",(0,t.jsx)("span",{className:"tl-cards-list-pp-installment-amt",children:"$80/month"})," with easy installments"]})]}),(0,t.jsxs)("button",{className:"tl-cards-list-pp-view-btn",onClick:()=>u(e.id),disabled:h,children:[(0,t.jsx)("span",{className:"tl-cards-list-pp-view-btn-main",children:h?"Please wait...":"View Trip"}),!h&&e.depositAmt>0&&(0,t.jsxs)("span",{className:"tl-cards-list-pp-view-btn-sub",children:["Deposit $",e.depositAmt," only"]})]})]})]})})})})},tz=({packages:e=[],isLoading:s,hideNoResults:a=!1,viewMode:i="list"})=>{if(s)return(0,t.jsx)("div",{className:"tl-cards-list-pp-wrapper",children:(0,t.jsx)("div",{className:"tl-skel-grid",children:[1,2,3,4].map(e=>(0,t.jsx)(tS,{},e))})});if(!s&&0===e.length&&a)return null;if(!s&&0===e.length)return(0,t.jsxs)("div",{className:"tl-cards-list-pp-wrapper",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",color:"#6b7280"},children:[(0,t.jsx)("p",{style:{fontSize:"clamp(16px,1.8vw,20px)",fontWeight:600,marginBottom:0,color:"#111827"},children:"Can't find what you're looking for?"}),(0,t.jsx)("p",{style:{fontSize:"clamp(13px,1.2vw,15px)",marginBottom:0},children:"Let us build a trip tailored just for you."}),(0,t.jsx)("a",{href:"/free-quote",style:{display:"inline-flex",alignItems:"center",gap:8,background:"#F1921A",color:"#fff",fontWeight:600,fontSize:"clamp(13px,1.1vw,15px)",padding:"10px 24px",borderRadius:999,textDecoration:"none",transition:"opacity 0.15s"},onMouseEnter:e=>e.currentTarget.style.opacity="0.85",onMouseLeave:e=>e.currentTarget.style.opacity="1",children:"Customize your package"})]});let l=e.map(tT),r=new Set,n=l.filter(e=>!r.has(e.id)&&(r.add(e.id),!0)),o=n.filter(e=>"customized"===e.tourType),c=n.filter(e=>"customized"!==e.tourType);return(0,t.jsxs)("div",{className:"tl-cards-list-pp-wrapper",children:[o.length>0&&(0,t.jsxs)("div",{className:`tl-cards-list-pp-customized-section${"grid"===i?" tl-cards-list-pp-customized-section--grid":""}`,children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-custom-banner",children:[(0,t.jsxs)("div",{className:"tl-cards-list-pp-banner-left",children:[(0,t.jsx)("div",{className:"tl-cards-list-pp-banner-icon",children:(0,t.jsx)(tP,{})}),(0,t.jsx)("p",{className:"tl-cards-list-pp-banner-title",children:"My Custom Trip is Ready"})]}),(0,t.jsx)("span",{className:"tl-cards-list-pp-banner-center",children:"Your 15% commission is included in all packages"}),(0,t.jsx)("div",{className:"tl-cards-list-pp-banner-right",children:(0,t.jsx)("span",{className:"tl-cards-list-pp-expires-label",children:"Customized"})})]}),o.map(e=>(0,t.jsx)(t$,{trip:e,viewMode:i},e.id))]}),(0,t.jsx)("div",{className:`tl-cards-list-pp-schedule-section${"grid"===i?" tl-cards-list-pp-schedule-section--grid":""}`,children:c.map(e=>(0,t.jsx)(t$,{trip:e,viewMode:i},e.id))})]})},tF=({videoUrl:e,quote:s})=>(0,t.jsxs)("div",{className:"trip-video",children:[(0,t.jsx)("video",{className:"trip-video__bg",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata","aria-hidden":"true",children:(0,t.jsx)("source",{src:e,type:"video/mp4"})}),(0,t.jsx)("div",{className:"trip-video__overlay"}),(0,t.jsx)("div",{className:"trip-video__bottom",children:(0,t.jsx)("p",{className:"trip-video__quote",children:s})})]});e.i(541387),e.i(10504),e.i(729888);let tB=({packages:e,allPackages:a,otherPackagesCount:i=0,isLoading:l,isError:r,countryName:n,filters:o,setFilters:c,sort:d,setSort:p,hideNoResults:u=!1,tourType:h="country"})=>
1{let[m,g]=(0,s.useState)("list");return(0,t.jsxs)("div",{className:"listing-components",children:[(0,t.jsx)("div",{className:"listing-components__topbar",children:(0,t.jsx)(tj,{totalCount:a?.length??0,filteredCount:(e?.length??0)+i,countryName:n,viewMode:m,setViewMode:g,isLoading:l,allPackages:a,filters:o,setFilters:c,sort:d,setSort:p,tourType:h})}),(0,t.jsx)("div",{className:"listing-components__list",children:r?(0,t.jsx)("div",{style:{padding:"clamp(24px,4vw,48px)",textAlign:"center",color:"#6b7280",fontSize:"clamp(14px,1.4vw,16px)"},children:"Failed to load packages. Please try again later."}):(0,t.jsx)(tz,{packages:e,isLoading:l,viewMode:m,hideNoResults:u})})]})},tH="https://d230lfojd95r73.cloudfront.net/Content/cultureApi/no-activity-placeholder.png",tO=()=>(0,t.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{width:12,height:12},children:[(0,t.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.5"}),(0,t.jsx)("path",{d:"M15 15l-3-3",strokeLinecap:"round"})]}),tZ=()=>(0,t.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{width:12,height:12},children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,t.jsx)("path",{d:"M10 6v8M6 10h8",strokeLinecap:"round"})]}),tU=({pkg:e})=>{let[a,l]=(0,s.useState)(e.image||tH),{openModal:r}=(0,eo.useModal)(),{goToPackageDetail:n,isLoading:o}=(0,en.useCreateHolidayDetails)(),{toggleCompare:c,isInCompare:d}=(0,tk.useCompare)(),p=d(e.packageId),u=e.discount>0?`${e.discount}% OFF`:null,h=String(e.nights??0).padStart(2,"0"),m=String(e.days??0).padStart(2,"0"),g=e.cutPrice?`$${e.cutPrice}`:null,x=e.price?`$${e.price}`:null,f=e.cutPrice&&e.price&&e.cutPrice-e.price>0?`Save upto $${e.cutPrice-e.price} per person`:null,v=e.pkG_DEPOSIT_AMT||0;return(0,t.jsxs)("div",{className:"pgs-card",children:[(0,t.jsx)("div",{className:"pgs-card__img-container",children:(0,t.jsxs)("div",{className:"pgs-card__img-wrap",children:[u&&(0,t.jsx)("span",{className:"pgs-card__discount",children:u}),(0,t.jsx)("div",{className:"pgs-card__wishlist",children:(0,t.jsx)(tC.default,{packageId:e.packageId,size:16,variant:"icon"})}),(0,t.jsx)(i.default,{src:a,alt:e.title,fill:!0,className:"pgs-card__img",sizes:"(max-width: 768px) 100vw, 33vw",unoptimized:!0,onError:()=>l(tH)})]})}),(0,t.jsxs)("div",{className:"pgs-card__body",children:[(0,t.jsx)("h3",{className:"pgs-card__title",children:e.title}),(0,t.jsxs)("div",{className:"pgs-card__meta-price-row",children:[(0,t.jsxs)("div",{className:"pgs-card__meta",children:[(0,t.jsxs)("div",{className:"pgs-card__meta-item",children:[(0,t.jsx)("span",{className:"pgs-card__meta-num",children:m}),(0,t.jsx)("span",{className:"pgs-card__meta-label",children:"DAYS"})]}),(0,t.jsx)("span",{className:"pgs-card__meta-sep"}),(0,t.jsxs)("div",{className:"pgs-card__meta-item",children:[(0,t.jsx)("span",{className:"pgs-card__meta-num",children:h}),(0,t.jsx)("span",{className:"pgs-card__meta-label",children:"NIGHTS"})]})]}),(g||x)&&(0,t.jsxs)("div",{className:"pgs-card__pricing",children:[g&&(0,t.jsxs)("p",{className:"pgs-card__original-price",children:["USD ",(0,t.jsx)("span",{children:g})]}),x&&(0,t.jsxs)("div",{className:"pgs-card__price-row",children:[(0,t.jsx)("span",{className:"pgs-card__price-pill",children:x}),(0,t.jsx)("span",{className:"pgs-card__per-person",children:"/person"})]})]})]}),f&&(0,t.jsxs)("div",{className:"pgs-card__savings",children:[(0,t.jsx)("span",{className:"pgs-card__savings-icon",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[(0,t.jsx)("path",{d:"M6.21484 12.4297C9.64721 12.4297 12.4297 9.64721 12.4297 6.21484C12.4297 2.78248 9.64721 0 6.21484 0C2.78248 0 0 2.78248 0 6.21484C0 9.64721 2.78248 12.4297 6.21484 12.4297Z",fill:"url(#pgs_savings_grad)"}),(0,t.jsx)("path",{d:"M7.19054 5.90643C6.91728 5.75543 6.62679 5.64038 6.33916 5.52101C6.17184 5.45614 6.0145 5.36802 5.87176 5.25926C5.5942 5.03778 5.64741 4.67824 5.97243 4.53581C6.06354 4.4992 6.16047 4.47923 6.25863 4.47685C6.62951 4.45463 6.99989 4.52792 7.33436 4.6897C7.50405 4.77169 7.56013 4.74578 7.61767 4.5689C7.67807 4.38197 7.72839 4.1921 7.7845 4.00372C7.82188 3.87716 7.77588 3.79375 7.65651 3.74053C7.43999 3.64379 7.21181 3.57562 6.97771 3.53775C6.66995 3.49029 6.66995 3.48885 6.66849 3.17964C6.66704 2.74392 6.66704 2.74392 6.22984 2.74392C6.16655 2.74392 6.10328 2.74249 6.03999 2.74392C5.83578 2.74968 5.80126 2.78563 5.7955 2.99128C5.79264 3.08331 5.7955 3.17537 5.79407 3.26883C5.79264 3.54209 5.79121 3.53777 5.52945 3.63269C4.89666 3.86279 4.50549 4.29424 4.46371 4.98457C4.42632 5.59578 4.74558 6.00854 5.2475 6.30911C5.55672 6.49463 5.89899 6.60392 6.22688 6.74917C6.35517 6.8018 6.47527 6.87251 6.58355 6.95914C6.89852 7.21944 6.84088 7.65234 6.46702 7.81628C6.26902 7.90076 6.05159 7.92912 5.83855 7.89826C5.50471 7.86097 5.18029 7.76404 4.88073 7.61206C4.70383 7.52003 4.65207 7.54448 4.59167 7.73587C4.53989 7.90127 4.49388 8.06808 4.44785 8.23491C4.38602 8.45925 4.40901 8.51246 4.6233 8.61746C4.89656 8.74977 5.18849 8.8
11735 5.48619 8.86482C5.71925 8.9022 5.72636 8.91228 5.72925 9.15388C5.73068 9.26312 5.73068 9.37392 5.73212 9.48322C5.73355 9.62128 5.7997 9.70171 5.94209 9.70469C6.10316 9.70756 6.26567 9.70756 6.42675 9.70326C6.55905 9.7004 6.62664 9.62849 6.62664 9.49472C6.62664 9.34516 6.63392 9.19415 6.62807 9.04458C6.62079 8.89215 6.68704 8.81449 6.83372 8.77421C7.16656 8.6872 7.46319 8.49681 7.68093 8.23046C8.29652 7.48264 8.06208 6.3882 7.19054 5.90643Z",fill:"white"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"pgs_savings_grad",x1:"6.21484",y1:"0",x2:"6.21484",y2:"12.4297",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#FFB508"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#FC2A02"})]})})]})}),(0,t.jsx)("span",{children:f})]}),(0,t.jsx)("hr",{className:"pgs-card__divider"}),(0,t.jsxs)("div",{className:"pgs-card__actions",children:[(0,t.jsxs)("button",{className:"pgs-card__action-btn",onClick:()=>{r("findMyDate",{card:{id:e.packageId,title:e.title,country:e.pkG_DESTINATION||e.country}})},children:[(0,t.jsx)(tO,{})," Find my date"]}),(0,t.jsx)("span",{className:"pgs-card__action-sep"}),(0,t.jsxs)("button",{className:`pgs-card__action-btn${p?" pgs-card__action-btn--selected":""}`,onClick:()=>c({id:e.packageId,title:e.title,images:[e.image].filter(Boolean),days:e.days??0,nights:e.nights??0,destination:e.pkG_DESTINATION||e.country||"",recommendation:e.packageRecommend||null,highlights:(e.highlightsList||[]).map(e=>e.highltTitle).filter(Boolean),accommodations:(e.hotels||[]).map(e=>({name:e.htL_NAME,stars:parseInt(e.htL_STAR)||0,image:e.imagE_PATH||""})),originalPrice:e.cutPrice?`$${e.cutPrice}`:null,currentPrice:e.price?`$${e.price}`:null,savings:e.cutPrice&&e.price?`${Math.round((e.cutPrice-e.price)/e.cutPrice*100)}% OFF \xb7 SAVE $${e.cutPrice-e.price}`:null,deposit:e.pkG_DEPOSIT_AMT>0?`$${e.pkG_DEPOSIT_AMT}`:null}),children:[(0,t.jsx)(tZ,{})," ",p?"Selected":"Compare"]})]}),(0,t.jsx)("hr",{className:"pgs-card__divider"}),(0,t.jsxs)("div",{className:"pgs-card__footer",children:[(0,t.jsx)("p",{className:"pgs-card__installment",children:v>0?(0,t.jsxs)(t.Fragment,{children:["Deposit only ",(0,t.jsxs)("strong",{children:["$",v]})," to book"]}):""}),(0,t.jsx)("button",{className:"pgs-card__view-btn",onClick:()=>n(e.packageId),disabled:o,children:"View Tour"})]})]})]})},tV={package:{main:"More destinations",accent:"explore all"},customized:{main:"Customized Trips",accent:"tailor-made for you"},category:{main:"More in this Category",accent:"handpicked for you"}},tY=({packages:e=[],countryName:s="",tourType:a="country"})=>{if(!e.length)return null;let i=tV[a];return(0,t.jsxs)("section",{className:"pgs-section",children:[(0,t.jsxs)("div",{className:"pgs-header",children:[(0,t.jsxs)("h2",{className:"pgs-title",children:[i?i.main:`${s}:`," ",(0,t.jsx)("span",{className:"pgs-title__accent",children:i?i.accent:"and beyond"})]}),(0,t.jsx)("p",{className:"pgs-subtitle",children:"Your 15% commission is included in all packages"})]}),(0,t.jsx)("div",{className:"pgs-grid",children:e.map(e=>(0,t.jsx)(tU,{pkg:e},e.packageId))})]})},tG="https://d230lfojd95r73.cloudfront.net/Content/cultureApi/no-activity-placeholder.png",tW=({place:e,description:a,imageUrl:l})=>{let[r,n]=(0,s.useState)(l||tG);return(0,t.jsxs)("div",{className:"td-card",children:[(0,t.jsx)("div",{className:"td-card-img-wrap",children:(0,t.jsx)(i.default,{src:r,alt:e,fill:!0,className:"td-card-img",style:{objectFit:"cover"},sizes:"(max-width: 768px) 100vw, 22vw",unoptimized:!0,onError:()=>n(tG)})}),(0,t.jsxs)("div",{className:"td-card-body",children:[(0,t.jsx)("h3",{className:"td-card-name",children:e}),(0,t.jsx)("p",{className:"td-card-desc",children:a})]})]})},tq=({destinations:e=[],countryName:s="",bgImage:a="https://d230lfojd95r73.cloudfront.net/Content/cultureApi/all-destinations-list-image.jpg"})=>{if(!e.length)return null;let[l,...r]=e,n=a||l?.imageUrl||tG;return(0,t.jsxs)("section",{className:"td-section",children:[(0,t.jsxs)("div",{className:"td-wrapper",children:[(0,t.jsx)("div",{className:"td-bg-block",children:(0,t.jsx)(i.default,{src:n,alt:s,fill:!0,className:"td-bg-img",style:{objectFit:"cover"},sizes:"100vw",unoptimized:!0,priority:!0})}),(0,t.jsx)("div",{className:"td-content",children:(0,t.jsxs)("h2",{className:"td-title",children:["Experiences that make ",s," unskipable"]})})]}),(0,t.jsxs)("div",{className:"td-cards-layer",children:[(0,t.jsx)("div",{className:"td-featured-wrap",children:(0,t.jsx)(tW,{place:l.place,description:l.description,imageUrl:l.imageUrl})}),r.length>0&&(0,t.jsx)("div",{className:"td-cards-row",children:r.map(e=>(0,t.jsx)(tW,{place:e.place,description:e.description,imageUrl:e.imageUrl},e.place))})]})]})}
1,tK=[{icon:tb.LuMapPinned,title:"Choose the right journey",body:"Access 50+ curated, high-converting itineraries across global destinations. Each program is designed to sellânot just travel."},{icon:tb.LuUsersRound,title:"Hold & sell with confidence",body:"Hold up to 30 seats for 30 days at just $200. Get the time you need to promoteâwith ready-to-use marketing materials that help you convert faster."},{icon:tb.LuCalendarDays,title:"Flexible bookings, zero pressure",body:"Make changes to your booking up to 60 days before departureâgiving you and your clients complete peace of mind."},{icon:tb.LuBanknote,title:"Earn 15% commission on every booking",body:"Add your markup, control your pricing, and unlock high commissionsâbuilt for agents who want to grow, not just book."}],tJ=["Low-Risk Entry","Agent-Controlled Pricing","Flexible Planning"],tX=()=>(0,t.jsx)("section",{className:"af-section",children:(0,t.jsx)("div",{className:"af-scroll-wrapper",children:(0,t.jsxs)("div",{className:"af-track",children:[(0,t.jsxs)("div",{className:"af-hero-card",children:[(0,t.jsx)("p",{className:"af-hero-title",children:"High-value travel, made effortless for agents"}),(0,t.jsx)("div",{className:"af-badges",children:tJ.map(e=>(0,t.jsx)("span",{className:"af-badge",children:e},e))})]}),tK.map(({icon:e,title:s,body:a})=>(0,t.jsxs)("div",{className:"af-card",children:[(0,t.jsx)("span",{className:"af-card__icon",children:(0,t.jsx)(e,{size:28})}),(0,t.jsxs)("div",{className:"af-card-new-wrap",children:[(0,t.jsx)("p",{className:"af-card__title",children:s}),(0,t.jsx)("p",{className:"af-card__body",children:a})]})]},s))]})})}),tQ={dubai:{videoUrl:"https://d230lfojd95r73.cloudfront.net/Content/cultureApi/desert-safari-video.mp4",quote:'"The moment your client steps off the plane in Dubai, you become the agent they trust with every journey after this one."'}};var t0=e.i(392173),t1=e.i(123207);let t2={bali:[{id:1,name:"Emily Parker",location:"New York, USA",review:"We were very happy with our tour, itinerary, accommodation and guides at each location. The airport transfers for domestic flights were also coordinated well. There were times that we spent long hours at the airport but I guess this is to be expected due to a limited amount of direct flights. The guides we had at each destination were excellent. They spoke English very well, were accommodating and most importantly, very knowledgeable especially with the history. If there was anything on the negative side, it was our accommodation at the cave hotel in Cappadocia. There was no hot water and we were dropped off at the bottom of the hill. We had to carry our luggage on the paved area up the hill and down. At least, hotel staff should assist with this.",images:[{src:"https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=800&q=80",alt:"Bali rice terraces"},{src:"https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=800&q=80",alt:"Couple on boat Bali"},{src:"https://images.unsplash.com/photo-1555400038-63f5ba517a47?w=800&q=80",alt:"Waterfall Bali"},{src:"https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=800&q=80",alt:"Bali temple"}]},{id:2,name:"James Thornton",location:"London, UK",review:"An absolutely breathtaking experience from start to finish. Our guide, Made, was phenomenal â deeply knowledgeable about Balinese culture and always went above and beyond. The rice terrace walks were magical, especially at sunrise. The villa we stayed in had a private pool overlooking the jungle, which felt almost surreal. I'd highly recommend adding extra days in Ubud to fully soak up the art and craft markets. The cooking class was a highlight â learning to make rendang and satay from local families was something we'll treasure forever.",images:[{src:"https://images.unsplash.com/photo-1518548419970-58e3b4079ab2?w=800&q=80",alt:"Bali sunset"},{src:"https://images.unsplash.com/photo-1604999333679-b86d54738315?w=800&q=80",alt:"Bali villa pool"},{src:"https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=800&q=80",alt:"Bali market"},{src:"https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=800&q=80",alt:"Bali jungle"}]},{id:3,name:"Priya Mehta",location:"Mumbai, India",review:"Bali exceeded every expectation. The combination of spiritual calm and natural beauty is unlike anywhere I've visited. We were greeted by a local ceremony at our first hotel which immediately set the tone. The snorkelling at Menjangan Island was world-class â crystal clear waters and vibrant coral. Our driver for the week, Wayan, knew every hidden warung and secret viewpoint. The only suggestion I'd make is to allocate more time to the south coast â Uluwatu and the cliff-side cafés deserve a full day, not just an evening.",images:[{src:"https://images.unsplash.com/photo-1555400038-63f5ba517a47?w=800&q=80",alt:"Bali coast"},{src:"https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=800&q=80",alt:"Bali terraces"},{src:"https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=800&q=80",alt:"Snorkelling"},{src:"https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=800&q=80",alt:"Uluwatu temple"}]}]};function t6({review:e}
1){let[a,l]=(0,s.useState)(0),{api:r}=(0,tN.useCarousel)(),n=()=>r?.scrollNext();return(0,s.useEffect)(()=>{r&&r.scrollTo(a)},[r,a]),(0,s.useEffect)(()=>{if(!r)return;let e=()=>l(r.selectedScrollSnap());return r.on("select",e),()=>r.off("select",e)},[r]),(0,t.jsxs)("div",{className:"trip-rev-list-slide",children:[(0,t.jsx)("div",{className:"trip-rev-list-thumbs",children:e.images.map((e,s)=>(0,t.jsx)("button",{onClick:()=>l(s),className:`trip-rev-list-thumb${s===a?" trip-rev-list-thumb--active":""}`,"aria-label":`View image ${s+1}`,children:(0,t.jsx)(i.default,{src:e.src,alt:e.alt,fill:!0,className:"trip-rev-list-thumb-img",sizes:"80px"})},s))}),(0,t.jsx)("div",{className:"trip-rev-list-main-img-wrap",children:(0,t.jsx)(i.default,{src:e.images[a].src,alt:e.images[a].alt,fill:!0,className:"trip-rev-list-main-img",sizes:"(max-width: 900px) 80vw, 40vw",priority:!0})}),(0,t.jsxs)("div",{className:"trip-rev-list-content",children:[(0,t.jsxs)("div",{className:"trip-rev-list-reviewer",children:[(0,t.jsx)("h3",{className:"trip-rev-list-name",children:e.name}),(0,t.jsx)("p",{className:"trip-rev-list-location",children:e.location})]}),(0,t.jsx)("p",{className:"trip-rev-list-body",children:e.review}),(0,t.jsxs)("div",{className:"trip-rev-list-footer",children:[(0,t.jsxs)("div",{className:"trip-rev-list-nav-btns",children:[(0,t.jsx)("button",{className:"trip-rev-list-nav-btn",onClick:()=>r?.scrollPrev(),"aria-label":"Previous",children:(0,t.jsx)(t0.ChevronLeft,{size:16})}),(0,t.jsx)("button",{className:"trip-rev-list-nav-btn",onClick:n,"aria-label":"Next",children:(0,t.jsx)(t1.ChevronRight,{size:16})})]}),(0,t.jsx)("button",{className:"trip-rev-list-next-link",onClick:n,children:"Read Next Review"})]})]})]})}function t4({destination:e="Bali"}){let s=t2[e.toLowerCase()];return s?.length?(0,t.jsxs)("section",{className:"trip-rev-list-section",children:[(0,t.jsxs)("h2",{className:"trip-rev-list-heading",children:["What travelers are saying about our ",e," trips"]}),(0,t.jsx)("div",{className:"trip-rev-list-carousel-wrap",children:(0,t.jsx)(tN.Carousel,{opts:{loop:!0},className:"trip-rev-list-carousel",children:(0,t.jsx)(tN.CarouselContent,{className:"trip-rev-list-carousel-content",children:s.map(e=>(0,t.jsx)(tN.CarouselItem,{className:"trip-rev-list-carousel-item",children:(0,t.jsx)(t6,{review:e})},e.id))})})})]}):null}var t8=e.i(583026);let t5=({titleWidth:e=100,children:s})=>(0,t.jsxs)("div",{style:{padding:"clamp(14px,1.6vw,20px) 0"},children:[(0,t.jsx)(ei.Skeleton,{style:{width:e,height:13,borderRadius:4,marginBottom:"clamp(10px,1.2vw,14px)"}}),s,(0,t.jsx)("div",{style:{height:1,background:"#f3f4f6",marginTop:"clamp(14px,1.6vw,20px)"}})]}),t9=()=>(0,t.jsxs)("div",{style:{padding:"clamp(14px,1.6vw,20px)"},children:[(0,t.jsxs)("div",{style:{marginBottom:"clamp(6px,0.8vw,10px)"},children:[(0,t.jsx)(ei.Skeleton,{style:{width:"85%",height:"clamp(16px,1.8vw,20px)",borderRadius:5,marginBottom:8}}),(0,t.jsx)(ei.Skeleton,{style:{width:"70%",height:12,borderRadius:4}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:"clamp(36px,4vw,42px)",borderRadius:8,margin:"clamp(12px,1.4vw,16px) 0"}}),(0,t.jsx)(t5,{titleWidth:120,children:(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[72,80,72,80,72].map((e,s)=>(0,t.jsx)(ei.Skeleton,{style:{width:e,height:32,borderRadius:999}},s))})}),(0,t.jsxs)(t5,{titleWidth:60,children:[(0,t.jsx)(ei.Skeleton,{style:{width:100,height:11,borderRadius:4,marginBottom:12}}),(0,t.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:14},children:[(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:44,borderRadius:8}}),(0,t.jsx)(ei.Skeleton,{style:{width:12,height:2,borderRadius:2}}),(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:44,borderRadius:8}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:6,borderRadius:999,marginBottom:8}}),(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:14},children:[(0,t.jsx)(ei.Skeleton,{style:{width:40,height:11,borderRadius:4}}),(0,t.jsx)(ei.Skeleton,{style:{width:40,height:11,borderRadius:4}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:120,height:11,borderRadius:4,marginBottom:10}}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[1,2,3].map(e=>(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:36,borderRadius:8}},e))})]}),(0,t.jsxs)(t5,{titleWidth:80,children:[(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:"clamp(36px,4vw,42px)",borderRadius:8,marginBottom:10}}),(0,t.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:[90,110,80].map((e,s)=>(0,t.jsx)(ei.Skeleton,{style:{width:e,height:26,borderRadius:999}},s))})]}),(0,t.jsxs)(t5,{titleWidth:90,children:[(0,t.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:10},children:[(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:"clamp(36px,4vw,42px)",borderRadius:8}}),(0,t.jsx)(ei.Skeleton,{style:{flex:1,height:"clamp(36px,4vw,42px)",borderRadius:8}})]}),(0,t.jsx)(ei.Skeleton,{style:{width:160,height:11,borderRadius:4,marginBottom:10}}),(0,t.jsx)(ei.Skeleton,{style:{width:"100%",height:"clamp(36px,4vw,42px)",borderRadius:8}})]}),(0,t.jsx)(t5,{titleWidth:150,children:(0,t.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,t.jsx)(ei.Skeleton,{style:{width:110,height:36,borderRadius:8}}),(0,t.jsx)(ei.Skeleton,{style:{width:120,height:36,borderRadius:8}})]})})]}),t7=({packages:e,allPackages:a,otherPackages:i=[],isLoading:r,isError:n,filters:o,setFilters:c,sort:d,setSort:p,suggestedDates:u,noDateMatch:h,defaultBudgetRange:m,isFilterActive:g,clearAllFilters:x,countryData:f,tourType:v="country"})=>
1{let[j,b]=(0,s.useState)(!1),w=(0,l.useSearchParams)(),y=w.get("destination")||f?.country||"",_="category"===w.get("type"),N=function(e){if(!e)return null;let t=tQ[e.toLowerCase()];return t?.videoUrl?t:null}(y);return(0,t.jsxs)(tk.CompareProvider,{children:[(0,t.jsxs)("div",{className:"listing-body",children:[(0,t.jsxs)("aside",{className:`listing-body__filter${j?" listing-body__filter--collapsed":""}`,"data-lenis-prevent":!0,children:[(0,t.jsx)("button",{className:"listing-body__filter-toggle",onClick:()=>b(e=>!e),"aria-label":j?"Expand filter":"Collapse filter",children:(0,t.jsx)(ef.CaretLeftIcon,{size:14,weight:"bold",className:`listing-body__filter-toggle-icon${j?" listing-body__filter-toggle-icon--flipped":""}`})}),(0,t.jsx)("div",{className:"listing-body__filter-content",children:r&&0===a.length?(0,t.jsx)(t9,{}):(0,t.jsx)(tn,{allPackages:a,filters:o,setFilters:c,suggestedDates:u,noDateMatch:h,defaultBudgetRange:m,isFilterActive:g,clearAllFilters:x})})]}),(0,t.jsxs)("main",{className:"listing-body__components",children:[(0,t.jsx)(tB,{packages:e,allPackages:a,otherPackagesCount:i.length,isLoading:r,isError:n,countryName:y,filters:o,setFilters:c,sort:d,setSort:p,hideNoResults:!r&&0===e.length&&i.length>0,tourType:v}),(0,t.jsx)(tY,{packages:i,countryName:y,tourType:v}),N&&(0,t.jsx)("div",{className:"listing-components__video",children:(0,t.jsx)(tF,{videoUrl:N.videoUrl,quote:N.quote})}),!_&&(0,t.jsx)(tq,{destinations:f?.topDestinationsList??[],countryName:y,bgImage:f?.topDestinationsList?.[1]?.imageUrl||""}),(0,t.jsx)(tX,{}),(0,t.jsx)(t4,{destination:y})]})]}),(0,t.jsx)(t8.default,{})]})};var t3=e.i(587814);let se=["January","February","March","April","May","June","July","August","September","October","November","December"],st=(e,t)=>e.filter(e=>{if(t.searchText){let s=t.searchText.toLowerCase();if(!e.title?.toLowerCase().includes(s)&&!e.pkG_DESTINATION?.toLowerCase().includes(s)&&!e.country?.toLowerCase().includes(s))return!1}if(t.destination){let s=t.destination.toLowerCase(),a=(e.country||"").split(",").map(e=>e.trim().toLowerCase());if(e.pkG_DESTINATION?.toLowerCase()!==s&&!a.includes(s))return!1}if(t.duration&&e.nights!==parseInt(t.duration))return!1;let s=e.offerPrice||e.price||0,[a,i]=t.budgetRange;if(s<a||s>i)return!1;if(t.budgetPreset){let e=t.budgetPreset.replace(/\$|,/g,"").split(" - ").map(Number);if(2===e.length){let[t,a]=e;if(s<t||s>a)return!1}}if(t.activities.length>0){let s=(e.activities||[]).map(e=>e.activity.toLowerCase());if(!t.activities.some(e=>s.some(t=>t.includes(e.toLowerCase()))))return!1}if(t.travelDate||t.travelYear&&t.travelMonth){let s=(e.availableDatesList||[]).map(e=>e.ratE_AVIAL_DATE),a=!1;for(let e of s){let[s,i,l]=e.split("/");if(t.travelDate){let e=t.travelDate;if(parseInt(s)===e.getDate()&&parseInt(i)===e.getMonth()+1&&parseInt(l)===e.getFullYear()){a=!0;break}}else{let e=se.indexOf(t.travelMonth);if(parseInt(l)===parseInt(t.travelYear)&&parseInt(i)-1===e){a=!0;break}}}if(!a)return!1}return(!t.accommodationRating||!!(e.hotels||[]).some(e=>parseInt(e.htL_STAR)>=t.accommodationRating))&&!0}),ss=["January","February","March","April","May","June","July","August","September","October","November","December"],sa={searchText:"",destination:"",duration:"",budgetRange:[0,99999],budgetPreset:"",activities:[],travelYear:"",travelMonth:"",travelDate:null,accommodationRating:null};e.s(["DEFAULT_FILTERS",0,sa,"default",0,({type:e="country",id:i="du",destination:l="",initialActivities:r="",initialMonth:n="",initialPrice:o=""})=>{let{packages:c,countryData:d,isLoading:p,isError:u}=(({type:e,id:t})=>{let{data:a,isLoading:i,isError:l}=(0,t3.useApiQuery)(["packageList",e,t],"Search/PackageList",{method:"POST",body:{type:e,id:t},enabled:!!(e&&t),staleTime:3e5,gcTime:18e5,refetchOnWindowFocus:!1}),r=(0,s.useMemo)(()=>Array.isArray(a)?a:Array.isArray(a?.data)?a.data:[],[a]),n=(0,s.useMemo)(()=>{if(a&&!Array.isArray(a)&&a.data){let{data:e,...t}=a;return t}return r[0]??{}},[a,r]);return{packages:r,countryData:n,isLoading:i,isError:l}})({type:e,id:i}),h=(0,s.useMemo)(()=>c.filter(e=>!(e.country||"").includes(",")||"customized"===(e.tripType||"")),[c]),m=(0,s.useMemo)(()=>c.filter(e=>(e.country||"").includes(",")&&"customized"!==(e.tripType||"")),[c]),[g,x]=(0,s.use
1State)(()=>{let e=function(e){if(!e)return null;let t=e.match(/under(\d+)/i);return t?[0,parseInt(t[1])]:null}(o);return{...sa,activities:r?r.split(",").filter(Boolean):[],travelMonth:n||"",...e&&{budgetRange:e}}}),[f,v]=(0,s.useState)("recommended"),j=(0,s.useMemo)(()=>{if(!c.length)return[0,99999];let e=c.map(e=>e.offerPrice||e.price).filter(Boolean);return[Math.max(0,100*Math.floor(Math.min(...e)/100)-1),100*Math.ceil((Math.max(...e)+1)/100)-1]},[c]);(0,s.useEffect)(()=>{c.length>0&&!o&&x(e=>({...e,budgetRange:j}))},[c.length]),(0,s.useEffect)(()=>{if(!n||!c.length)return;let e=ss.indexOf(n);if(-1===e)return;let t=new Date,s=null;for(let a of c)for(let i of a.availableDatesList||[]){let a=i.ratE_AVIAL_DATE?.split("/");if(!a||a.length<3)continue;let[,l,r]=a;parseInt(l)-1===e&&new Date(parseInt(r),parseInt(l)-1,1)>t&&(!s||parseInt(r)<parseInt(s))&&(s=r)}s&&x(e=>({...e,travelYear:s}))},[c.length,n]);let b=(0,s.useMemo)(()=>{let[e,t]=j;return""!==g.searchText||""!==g.destination||""!==g.duration||g.budgetRange[0]>e||g.budgetRange[1]<t||""!==g.budgetPreset||g.activities.length>0||""!==g.travelYear||""!==g.travelMonth||null!==g.travelDate||null!==g.accommodationRating||"recommended"!==f},[g,j,f]),w=(0,s.useMemo)(()=>st(h,g),[h,g]),y=(0,s.useMemo)(()=>st(m,g),[m,g]),_=e=>{let t=[...e];return"price_asc"===f?t.sort((e,t)=>e.offerPrice-t.offerPrice):"price_desc"===f?t.sort((e,t)=>t.offerPrice-e.offerPrice):t},N=(0,s.useMemo)(()=>_(w),[w,f]),C=(0,s.useMemo)(()=>_(y),[y,f]),k=(0,s.useMemo)(()=>{if(!g.travelDate&&!(g.travelYear&&g.travelMonth))return[];let e=new Date,t=new Set;return h.flatMap(e=>e.availableDatesList||[]).map(e=>{let[t,s,a]=e.ratE_AVIAL_DATE.split("/");return new Date(parseInt(a),parseInt(s)-1,parseInt(t))}).filter(t=>t>e).sort((e,t)=>e-t).filter(e=>{let s=e.toDateString();return!t.has(s)&&(t.add(s),!0)}).slice(0,3).map(e=>(0,a.format)(e,"MMMM d, yyyy"))},[h,g.travelDate,g.travelYear,g.travelMonth]),S=h.length>0&&0===w.length&&(g.travelDate||g.travelYear&&g.travelMonth);return(0,t.jsxs)("div",{children:[(0,t.jsx)(ex,{countryData:d,packages:c,isLoading:p,currentDestination:l,countryCode:i,tourType:e}),(0,t.jsx)(t7,{packages:N,allPackages:c,otherPackages:C,isLoading:p,isError:u,filters:g,setFilters:x,sort:f,setSort:v,suggestedDates:k,noDateMatch:S,defaultBudgetRange:j,isFilterActive:b,clearAllFilters:()=>{x({...sa,budgetRange:j}),v("recommended")},countryData:d,tourType:e})]})}],595927)}]);
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.