PageSourceSearch

https://travelpal.ai/_next/static/chunks/0k8axyy6tcchj.js?dpl=dpl_3qvkVdEiQutFuo1eWzMBJ2HYy68p

js travelpal.ai collected 2026-09-25 01:00:36 UTC 24,931 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="322ef96b-0686-5e27-217a-97999b465dab")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,815484,e=>{"use strict";var t=e.i(271645),a=e.i(769464),r=e.i(275880);let l=t.forwardRef((e,l)=>t.createElement(a.default,{ref:l,...e,weights:r.default}));l.displayName="ArrowUpIcon",e.s(["ArrowUpIcon",0,l])},551385,e=>{"use strict";var t=e.i(843476),a=e.i(749702),r=e.i(271645),l=e.i(77254);function n(e){return"[object Object]"===Object.prototype.toString.call(e)}new WeakMap;var i=new WeakMap,s=new WeakMap,o=new WeakMap,u={isHistoryEditor:e=>{var t,a,r;return!1!==n(t=e.history)&&(void 0===(a=t.constructor)||!1!==n(r=a.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||l.Operation.isOperationList(t.redos[0].operations))&&(0===t.undos.length||l.Operation.isOperationList(t.undos[0].operations))&&l.Editor.isEditor(e)},isMerging:e=>s.get(e),isSplittingOnce:e=>o.get(e),setSplittingOnce(e,t){o.set(e,t)},isSaving:e=>i.get(e),redo(e){e.redo()},undo(e){e.undo()},withMerging(e,t){var a=u.isMerging(e);s.set(e,!0),t(),s.set(e,a)},withNewBatch(e,t){var a=u.isMerging(e);s.set(e,!0),o.set(e,!0),t(),s.set(e,a),o.delete(e)},withoutMerging(e,t){var a=u.isMerging(e);s.set(e,!1),t(),s.set(e,a)},withoutSaving(e,t){var a=u.isSaving(e);i.set(e,!1);try{t()}finally{i.set(e,a)}}},d=e.i(233078),c=e.i(279615),f=e.i(599115);let m=e=>l.Element.isElement(e)&&"mention"===e.type,p=e=>{if(l.Text.isText(e)){let t=e.text;return e.bold&&(t=`**${t}**`),e.italic&&(t=`_${t}_`),e.code&&(t=`\`${t}\``),t}return l.Element.isElement(e)?e.children.map(e=>p(e)).join(""):""},h=e=>e.map(e=>p(e)).join("\n");e.s(["useRichMessageInput",0,function({onSend:e,locked:n=!1,validator:i=f.aiChatMessageValidation,validateOnChange:s=!1}){let{windowType:o}=(0,c.default)(),p=(0,r.useMemo)(()=>(e=>{var{apply:t}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:a}=t;if(a.length>0){var r=a[a.length-1];r.selectionBefore&&l.Transforms.setSelection(e,r.selectionBefore),u.withoutSaving(e,()=>{l.Editor.withoutNormalizing(e,()=>{for(var t of r.operations)e.apply(t)})}),t.redos.pop(),e.writeHistory("undos",r)}},e.undo=()=>{var{history:t}=e,{undos:a}=t;if(a.length>0){var r=a[a.length-1];u.withoutSaving(e,()=>{l.Editor.withoutNormalizing(e,()=>{for(var t of r.operations.map(l.Operation.inverse).reverse())e.apply(t);r.selectionBefore&&l.Transforms.setSelection(e,r.selectionBefore)})}),e.writeHistory("redos",r),t.undos.pop()}},e.apply=a=>{var{operations:r,history:n}=e,{undos:i}=n,s=i[i.length-1],o=s&&s.operations[s.operations.length-1],d=u.isSaving(e),c=u.isMerging(e);if(null==d&&(d="set_selection"!==a.type),d){let t,d;if(null==c&&(c=null!=s&&(0!==r.length||(t=a,!!((d=o)&&"insert_text"===t.type&&"insert_text"===d.type&&t.offset===d.offset+d.text.length&&l.Path.equals(t.path,d.path)||d&&"remove_text"===t.type&&"remove_text"===d.type&&t.offset+t.text.length===d.offset&&l.Path.equals(t.path,d.path))))),u.isSplittingOnce(e)&&(c=!1,u.setSplittingOnce(e,void 0)),s&&c)s.operations.push(a);else{var f={operations:[a],selectionBefore:e.selection};e.writeHistory("undos",f)}for(;i.length>100;)i.shift();n.redos=[]}t(a)},e.writeHistory=(t,a)=>{e.history[t].push(a)},e})((e=>{let{isInline:t,isVoid:a}=e;return e.isInline=e=>!!m(e)||t(e),e.isVoid=e=>!!m(e)||a(e),e})((0,d.withReact)((0,l.createEditor)()))),[]),[g,v]=(0,r.useState)([{type:"paragraph",children:[{text:""}]}]),[x,y]=(0,r.useState)(null),b=(0,r.useCallback)(e=>{v([...e])},[]),w=e=>{let t=l.Editor.marks(p);t?.[e]?l.Transforms.unsetNodes(p,e,{match:l.Text.isText}):l.Transforms.setNodes(p,{[e]:!0},{match:l.Text.isText,split:!0})},E=(0,r.useCallback)(()=>{0===p.children.length||l.Editor.withoutNormalizing(p,()=>{let e={anchor:l.Editor.start(p,[]),focus:l.Editor.end(p,[])};l.Transforms.delete(p,{at:e})}),y(null)},[p]),M=(0,r.useCallback)(()=>h(g).trim()||null,[g]),j=(0,r.useCallback)(async e=>{if(!i)return null;
2try{if("function"==typeof i.validate)return await i.validate(e),null;return await i(e)}catch(e){return e?.message??"Invalid value"}},[i]),C=(0,r.useCallback)(async()=>{let e=h(g).trim(),t=await j(e);return y(t),t},[j,g]);(0,r.useEffect)(()=>{s&&i&&(async()=>{let e=h(g).trim();y(await j(e))})()},[g,s,i,j]);let A=(0,r.useCallback)(async t=>{if(n)return;if(t&&t.message)return void e({message:t.message,icon:t.icon});let a=h(g).trim();if(!a)return;let r=await j(a);r?y(r):(e({message:a}),E())},[g,n,e,j,E]),N=(0,r.useCallback)(e=>{let{selection:t}=p;if(!t||!l.Range.isCollapsed(t))return!1;let a="backward"===e?l.Editor.before(p,t.anchor,{unit:"offset"}):l.Editor.after(p,t.anchor,{unit:"offset"});if(!a)return!1;let r=l.Editor.above(p,{at:a,match:e=>m(e)});if(!r&&(()=>{if("backward"!==e)return!1;let a=l.Editor.before(p,t.anchor,{unit:"offset"});return!!a&&" "===l.Editor.string(p,{anchor:a,focus:t.anchor})})()){let e=l.Editor.before(p,a,{unit:"offset"});e&&(r=l.Editor.above(p,{at:e,match:e=>m(e)}))&&l.Transforms.delete(p,{at:{anchor:a,focus:t.anchor}})}if(!r)return!1;let[,n]=r;return l.Transforms.removeNodes(p,{at:n}),!0},[p]),L=(0,r.useCallback)((e,t)=>{if((0,a.default)("backspace",e)&&N("backward")||(0,a.default)("delete",e)&&N("forward"))return void e.preventDefault();if((0,a.default)("mod+b",e)){e.preventDefault(),w("bold");return}if((0,a.default)("mod+i",e)){e.preventDefault(),w("italic");return}if((0,a.default)("mod+`",e)){e.preventDefault(),w("code");return}if((0,a.default)("shift+enter",e)){e.preventDefault(),l.Editor.insertText(p,"\n");return}if((0,a.default)("enter",e)&&!e.shiftKey){if(e.nativeEvent?.isComposing||e?.isComposing||e?.keyCode===229)return;if(e.preventDefault(),"lg"===o){if(t)return void t();A()}else l.Editor.insertText(p,"\n");return}},[p,A,o,w,N]),S=(0,r.useCallback)(({attributes:e,children:a,element:r})=>m(r)?(0,t.jsxs)("span",{...e,contentEditable:!1,"data-mention-value":r.value,"data-mention-id":r.placeId??"",className:"inline-flex items-center rounded-12 bg-primary/10 px-1.5 py-0.5 text-primary font-medium",children:["@",r.value,a]}):(0,t.jsx)("div",{...e,children:a}),[]),k=(0,r.useCallback)(({attributes:e,children:a,leaf:r})=>(r.bold&&(a=(0,t.jsx)("strong",{children:a})),r.italic&&(a=(0,t.jsx)("em",{children:a})),r.code&&(a=(0,t.jsx)("code",{children:a})),(0,t.jsx)("span",{...e,children:a})),[]),Z=(0,r.useCallback)((e,t)=>{let a=e.trim();if(!a)return;let r={type:"mention",value:a,placeId:t?.trim()||void 0,children:[{text:`@${a}`}]};l.Editor.withoutNormalizing(p,()=>{l.Transforms.select(p,l.Editor.end(p,[])),l.Transforms.insertNodes(p,r),l.Transforms.insertText(p," ")}),d.ReactEditor.focus(p)},[p]),T=(0,r.useCallback)((e,t=!1)=>{0===p.children.length?v([{type:"paragraph",children:[{text:e}]}]):(t&&E(),l.Editor.withoutNormalizing(p,()=>{l.Transforms.insertNodes(p,{type:"paragraph",children:[{text:e}]},{at:[t?0:p.children.length]})}))},[p,E]);return{slate:{editor:p,initialValue:g,onChange:b,renderElement:S,renderLeaf:k,onKeyDown:L,clear:E},value:g,send:A,getCurrentValue:M,validateCurrent:C,validationError:x,transformTextIntoNodes:T,insertMention:Z,canSend:!n&&!x}}],551385)},601655,e=>{"use strict";var t=e.i(843476),a=e.i(846932),r=e.i(618566),l=e.i(271645),n=e.i(583398),i=e.i(833845),s=e.i(839865),o=e.i(248206),u=e.i(263002),d=e.i(551385),c=e.i(815484),f=e.i(343794),m=e.i(233078),p=e.i(149666);function h({slate:e,onSendMessage:a,preventSendMessage:r=!1,placeholder:n="Ask me anything...",maxLength:i,className:s}){let[o,u]=(0,l.useState)(!1),[d,g]=(0,l.useState)(!1),[v,x]=(0,l.useState)(0);(0,l.useLayoutEffect)(()=>u(!0),[]);let y=e=>e.reduce((e,t)=>{let a=t.children;return a?e+y(a):e+(t.text??"").length},0),b=!!i&&v>i;return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r||b||a()},className:(0,f.default)("flex items-center gap-3 w-full px-4 py-3 rounded-12","bg-gray-0/90 border-2 shadow-elevation-2","transition-all duration-200",{"border-transparent":!d&&!b,"border-primary":d&&!b,"border-error":b},s),children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:o?(0,t.jsx)(m.Slate,{editor:e.editor,initialValue:e.initialValue,onChange:t=>{e.onChange(t),x(y(t))},children:(0,t.jsx)(m.Editable,{"aria-label":"Chat input",placeholder:n,renderElement:e.renderElement,renderLeaf:e.renderLeaf,onKeyDown:e.onKeyDown,onFocus:()=>g(!0),onBlur:()=>g(!1),className:(0,f.default)("outline-none w-full text-body-lg","text-gray-500","max-h-20 overflow-y-auto scrollbar-hide"),renderPlaceholder:({children:e,attributes:a})=>(0,t.jsx)("div",{...a,className:"!text-gray-300 !opacity-100",children:e})})}):(0,t.jsx)("div",{className:"outline-none w-full text-body lg:text-body-lg h-6","aria-hidden":!0,suppressHydrationWarning:!0})}),i&&(0,t.jsxs)("span",{className:(0,f.default)("text-body-sm shrink-0",{"text-gray-500":!b,"text-error":b}),children:[v,"/",i]}),(0,t.jsx)(p.Button,{type:"submit",variant:"solid",color:"primary",disabled:r||b||0===v,className:"!w-8 !h-8 !p-0 shrink-0","aria-label":"Send",children:(0,t.jsx)(c.ArrowUpIcon,{size:20})})]})}let g="tp_floating_chat_sessions_v1";function v(e){return"destinations"===e||"blog"===e}function x(){try{let e=localStorage.getItem(g);if(!e)return{};let t=JSON.parse(e);if(!t||"object"!=typeof t)return{};return t}catch{return{}}}function y(e){try{localStorage.setItem(g,JSON.stringify(e))}catch{}}function b(e){let t=Date.now(),a=!1,r={...e};
2return Object.keys(r).forEach(e=>{let l=r[e];l&&l.expiresAt<=t&&(delete r[e],a=!0)}),a&&y(r),r}e.s(["default",0,function({maxLength:e=200,placeholder:c="Ask TravelPal",className:f,pageContext:m,variant:p="default"}){let w=(0,r.usePathname)(),E=(0,s.useUserStore)(e=>e.user),M=(0,l.useMemo)(()=>E?.id?`user:${E.id}`:"anon",[E?.id]),j=(0,l.useMemo)(()=>{var e;return(e=w||"/").startsWith("/destinations")?"destinations":e.startsWith("/blog")?"blog":"/"===e?"home":"other"},[w]),C=(0,l.useRef)(E?.id??null),[A,N]=(0,l.useState)(null),[L,S]=(0,l.useState)(!1),{send:k}=(0,n.default)({source:"floating_chat_cta"}),Z=(0,l.useCallback)(e=>{if(!e)return;let t=e.id.toString();v(j)&&function(e,t,a){if(!v(e))return;let r=b(x());r[e]={chatId:a,userKey:t,expiresAt:Date.now()+864e5},y(r)}(j,M,t),N({uuid:t}),L&&(k(t),S(!1),window.location.href=i.routes.chat(t))},[L,j,k,M]),{createChat:T,loading:F}=(0,u.default)({onSuccess:Z});(0,l.useEffect)(()=>{let e=C.current,t=E?.id??null;(null!==e&&null===t||null!==e&&null!==t&&e!==t)&&(localStorage.removeItem(g),N(null)),C.current=t},[E?.id]),(0,l.useEffect)(()=>{let e=function(e,t){if(!v(e))return null;let a=b(x())[e];return a&&a.userKey===t?a.chatId:null}(j,M);N(e?{uuid:e}:null)},[j,M]);let R=(0,l.useCallback)(e=>{if(!F){if(e.message&&((0,o.setMessageToSend)(e.message),(0,o.setMessageContext)(m)),!A?.uuid){S(!0),T({pageContext:m});return}k(A.uuid),window.location.href=i.routes.chat(A.uuid)}},[A,T,F,m,k]),{slate:I,send:O,validationError:V}=(0,d.useRichMessageInput)({onSend:R,locked:F,validateOnChange:!0}),D=(0,l.useRef)(""),B=(0,l.useCallback)(()=>{D.current=document.body.style.overflow,document.body.style.overflow="hidden"},[]),z=(0,l.useCallback)(()=>{document.body.style.overflow=D.current},[]),P=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"aurora-glow absolute -inset-2 rounded-[24px] blur-xl opacity-50"}),(0,t.jsx)("div",{className:"absolute inset-0 rounded-[14px] overflow-hidden",children:(0,t.jsx)("div",{className:"conic-border-rotator absolute inset-0 scale-[3]"})}),(0,t.jsx)("div",{className:"absolute inset-[2px] rounded-[12px] bg-gray-0 shadow-elevation-2"}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(h,{slate:{...I,onKeyDown:e=>I.onKeyDown(e,O)},onSendMessage:O,preventSendMessage:F||!!V,placeholder:c,maxLength:e})})]});return"animated"===p?(0,t.jsx)(a.motion.div,{initial:{opacity:0,y:20,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:20,x:"-50%"},transition:{duration:.3,ease:"easeInOut"},onFocusCapture:B,onBlurCapture:z,className:`fixed bottom-8 left-1/2 w-[90%] max-w-[600px] z-50 ${f||""}`,children:P}):(0,t.jsx)("div",{onFocusCapture:B,onBlurCapture:z,className:`fixed bottom-8 left-1/2 w-[90%] max-w-[600px] -translate-x-1/2 z-50 ${f||""}`,children:P})}],601655)},516928,e=>{"use strict";var t=e.i(271645);let a=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),t.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]);e.s(["default",0,a])},640397,e=>{"use strict";var t=e.i(271645),a=e.i(575108),r=e.i(516928);let l=t.forwardRef((e,l)=>t.createElement(a.default,{ref:l,...e,weights:r.default}));
2l.displayName="CaretRightIcon",e.s(["CaretRight",0,l,"CaretRightIcon",0,l])},773987,e=>{"use strict";var t=e.i(271645);let a=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),t.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]);e.s(["default",0,a])},914444,e=>{"use strict";var t=e.i(271645),a=e.i(575108),r=e.i(773987);let l=t.forwardRef((e,l)=>t.createElement(a.default,{ref:l,...e,weights:r.default}));l.displayName="CaretLeftIcon",e.s(["CaretLeft",0,l,"CaretLeftIcon",0,l])},839821,634928,67190,e=>{"use strict";e.i(247167);var t=e.i(271645);e.s(["default",0,function(e={}){let{boundaryCount:a=1,componentName:r="usePagination",count:l=1,defaultPage:n=1,disabled:i=!1,hideNextButton:s=!1,hidePrevButton:o=!1,onChange:u,page:d,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:m=1,...p}=e,[h,g]=function({controlled:e,default:a,name:r,state:l="value"}){let{current:n}=t.useRef(void 0!==e),[i,s]=t.useState(a),o=t.useCallback(e=>{n||s(e)},[]);return[n?e:i,o]}({controlled:d,default:n,name:r,state:"page"}),v=(e,t)=>{d||g(t),u&&u(e,t)},x=(e,t)=>Array.from({length:t-e+1},(t,a)=>e+a),y=x(1,Math.min(a,l)),b=x(Math.max(l-a+1,a+1),l),w=Math.max(Math.min(h-m,l-a-2*m-1),a+2),E=Math.min(Math.max(h+m,a+2*m+2),l-a-1),M=[...c?["first"]:[],...o?[]:["previous"],...y,...w>a+2?["start-ellipsis"]:a+1<l-a?[a+1]:[],...x(w,E),...E<l-a-1?["end-ellipsis"]:l-a>a?[l-a]:[],...b,...s?[]:["next"],...f?["last"]:[]],j=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return l;default:return null}};return{items:M.map(e=>"number"==typeof e?{onClick:t=>{v(t,e)},type:"page",page:e,selected:e===h,disabled:i,"aria-current":e===h?"page":void 0}:{onClick:t=>{v(t,j(e))},type:e,page:j(e),selected:!1,disabled:i||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=l:h<=1)}),...p}}],839821);let a=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M200,48V208l-80-80Z",opacity:"0.2"}),t.createElement("path",{d:"M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z"}))]]);e.s(["default",0,a],634928);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M136,128,56,208V48Z",opacity:"0.2"}),t.createElement("path",{d:"M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z"}))]]);e.s(["default",0,r],67190)},923176,e=>{"use strict";var t,a=e.i(843476),r=e.i(343794),l=e.i(271645);e.i(247167);var n=((t={}).POSTS="posts",t.CATEGORIES="categories",t.TAGS="tags",t.MEDIA="media",t),i=e.i(972403);e.s(["default",0,function({alt:e,imageId:t,placeholder:s,className:o,...u}){let[d,c]=(0,l.useState)(void 0),[f,m]=(0,l.useState)(!!t);return(0,l.useEffect)(()=>
2{if(!t){c(void 0),m(!1);return}let e=new AbortController,a=new URL(`${n.MEDIA}/${t}`,"https://wordpress.travelpal.ai/wp-json/wp/v2/");return(async()=>{try{let t=await fetch(a.toString(),{signal:e.signal,next:{revalidate:!1}});if(!t.ok)throw Error(`HTTP ${t.status}`);let r=await t.json(),l=r?.source_url;c(l||void 0)}catch{c(void 0)}})(),()=>e.abort()},[t]),(0,a.jsxs)("div",{className:(0,r.default)("relative aspect-[3/2] w-full rounded-24 overflow-hidden",o),children:[f&&(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-300 animate-pulse"}),d&&(0,a.jsx)(i.default,{fill:!0,src:d,alt:e,sizes:"(max-width:768px) 100vw, 50vw",className:(0,r.default)("object-cover object-center transition-opacity duration-300 w-full h-full","group-hover:opacity-95 group-hover:scale-[103%] group-hover:transition-transform",f?"opacity-0":"opacity-100"),onLoad:()=>m(!1),onError:()=>{c(void 0),m(!1)},...u}),!d&&!f&&(0,a.jsx)(i.default,{fill:!0,src:s,alt:e,sizes:"(max-width:768px) 100vw, 50vw",className:(0,r.default)("object-cover object-center w-full h-full","group-hover:opacity-95 group-hover:scale-[103%] group-hover:transition-transform"),placeholder:"blurDataURL"in s?"blur":void 0,blurDataURL:"object"==typeof s&&"blurDataURL"in s?s.blurDataURL:void 0,...u})]})}],923176)},541394,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(839821),l=e.i(271645),n=e.i(575108),i=e.i(634928);let s=l.forwardRef((e,t)=>l.createElement(n.default,{ref:t,...e,weights:i.default}));s.displayName="CaretDoubleLeftIcon";var o=e.i(67190);let u=l.forwardRef((e,t)=>l.createElement(n.default,{ref:t,...e,weights:o.default}));u.displayName="CaretDoubleRightIcon";var d=e.i(914444),c=e.i(640397),f=e.i(343794);let m=(e="default")=>(0,f.default)("text-body lg:text-body-lg font-semibold text-center text-nowrap","default"===e?"text-gray-500 group-hover:text-primary":"text-gray-0");function p({as:e="div",className:a,children:r,onClick:l,disabled:n}){return(0,t.jsx)(e,{className:(0,f.default)("flex items-center justify-center","w-8 h-8 rounded-full border border-gray-300","group",{"cursor-pointer":!n,"cursor-default bg-gray-200 border-none":n},a),onClick:n?void 0:l,disabled:n,"aria-disabled":n||void 0,children:r})}function h({page:e,selected:a,disabled:r,onClick:l}){return(0,t.jsx)("div",{className:"flex flex-col items-stretch",children:(0,t.jsx)(p,{as:"button",onClick:l,disabled:r,className:(0,f.default)({"bg-primary border-none":a,"hover:text-primary hover:border-primary":!a}),children:(0,t.jsx)("span",{className:m(a?"muted":"default"),children:e})})})}function g(){return(0,t.jsx)(p,{children:(0,t.jsx)("p",{className:m("default"),children:"…"})})}function v({type:e,onClick:a,disabled:r}){return"next"===e||"previous"===e?(0,t.jsx)(p,{as:"button",onClick:a,disabled:r,className:"hover:text-primary hover:border-primary",children:"next"===e?(0,t.jsx)(c.CaretRightIcon,{size:16}):(0,t.jsx)(d.CaretLeftIcon,{size:16})}):(0,t.jsx)(p,{as:"button",onClick:a,disabled:r,className:"hover:text-primary hover:border-primary",children:"first"===e?(0,t.jsx)(s,{size:16}):(0,t.jsx)(u,{size:16})})}let x=({boundaryCount:e=0,count:a=10,disabled:l=!1,hideNextButton:n=!1,hidePrevButton:i=!1,showFirstButton:s=!1,showLastButton:o=!1,onChange:u,page:d=1,siblingCount:c=1})=>{let{items:f}=(0,r.default)({boundaryCount:e,count:a,disabled:l,hideNextButton:n,hidePrevButton:i,showFirstButton:s,showLastButton:o,onChange:u,page:d,siblingCount:c});return f.length<=1?null:(0,t.jsx)("div",{className:"flex w-full items-center justify-center gap-x-1",children:f.map((e,a)=>{switch(e.type){case"page":return(0,t.jsx)(h,{page:e.page,selected:!!e.selected,disabled:!!e.disabled,onClick:e.onClick},e.page??a);case"start-ellipsis":case"end-ellipsis":return(0,t.jsx)(g,{},`${e.type}-${a}`);case"previous":case"next":case"first":case"last":return(0,t.jsx)(v,{type:e.type,onClick:e.onClick,disabled:e.disabled},`${e.type}-${a}`);default:return null}})})};var y=e.i(833845);e.s(["default",0,function({page:e,next:r,pageNmb:l}){let n=(0,a.useRouter)();return e?(0,t.jsx)("div",{className:"flex justify-center w-full md:col-span-2 lg:col-span-3",children:(0,t.jsx)(x,{componentName:"BlogPagination",boundaryCount:0,count:l,hideNextButton:!r,hidePrevButton:1===e,showFirstButton:!1,showLastButton:!1,siblingCount:2,onChange:(e,t)=>
2{n.push(y.routes.blog.page(t))},page:e})}):null}],541394)}]);
3
4//# debugId=322ef96b-0686-5e27-217a-97999b465dab

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.