PageSourceSearch

https://cdn.overtheplanet.com/planner/_next/static/chunks/2193.e22d90d94626104b.js

js overtheplanet.com collected 2026-10-01 16:27:07 UTC 9,975 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var l in n)n.hasOwnProperty(l)&&(e[l]=n[l])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:overtheplanet-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="544aa1e5-e17c-4118-ae29-7b4e8f291852",e._sentryDebugIdIdentifier="sentry-dbid-544aa1e5-e17c-4118-ae29-7b4e8f291852")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2193],{26377:(e,t,n)=>{n.d(t,{TJ:()=>u,U5:()=>p,UU:()=>h,oG:()=>x,yM:()=>m,zX:()=>f});var l=n(52229),a=n(55509),s=n(83390),r=n.n(s),o=n(19810),i=n.n(o),c=n(21603),d=n(41374);function u(e){let t=[...e].sort((e,t)=>{let n=(0,d.qE)(e.from),a=(0,d.qE)(t.from);return n||a?n?a?(0,l.f)(n)||(0,l.f)(a)?(0,l.f)(n)?(0,l.f)(a)?n.getTime()-a.getTime():-1:1:0:-1:1:0});return r()(t,e=>{let t=(0,d.qE)(e.from);return!!(t&&(0,l.f)(t)&&(0,a.R)(t))})}let f=({pastPolicies:e,futurePolicies:t,payableAmount:n})=>0===e.length&&t.length>0?"full":e.length>0&&t.length>0||n&&1===e.length&&0===t.length&&parseFloat(e[0].amount.toString())!==n?"partial":"none";function m(e,t){return e.numberOfNights?`${e.numberOfNights} nights`:e.percent?`${e.percent}%`:(0,c.u)(e.amount,{decimalPlaces:2,stripInsignificantZeros:!0,currencyCode:e.currency||t})}function h(e,t){return 100===e.percent||void 0!==t&&.01>Math.abs(parseFloat(e.amount?.toString()||"0")-t)}function p(e,t){return!!e.to&&e.to!==e.from&&!h(e,t)}function x(e,t){let[n,a]=u(e),s=[...n,...a],r=s.some(e=>{if(!e?.to)return!1;let t=(0,d.qE)(e.from),n=(0,d.qE)(e.to);return!!t&&!!n&&!!(0,l.f)(t)&&!!(0,l.f)(n)&&n<t}),o=i()(s,e=>parseFloat(e?.amount?.toString()||"0"));return{hasMalformedPolicyRange:r,malformedFallbackType:(t??0)>0&&o<(t??0)-.01?"partial":"none",hasActiveFullFeePolicy:0===a.length&&n.length>0&&n.every(e=>h(e,t))}}},64706:(e,t,n)=>{n.d(t,{A:()=>d});var l=n(95155),a=n(19749),s=n(33754);n(12115);var r=n(44151),o=n(79630),i=n(44911);let c=e=>{let t,n,s,c,d,u,f,m,h,p,x,g,b,y=(0,a.c)(36),{Component:j,children:v,description:N,getBaseProps:w,getWrapperProps:M,getInputProps:_,getLabelProps:E,getLabelWrapperProps:q,getControlProps:k,getDescriptionProps:T}=(0,r.z)(e);y[0]!==w?(t=w(),y[0]=w,y[1]=t):t=y[1];let F=e.classNames?.base;return y[2]!==F?(n=(0,i.cn)("group inline-flex items-center justify-between hover:bg-content2 flex-row-reverse","max-w-[300px] cursor-pointer border border-default gap-4 p-2 rounded-md","font-medium","data-[selected=true]:border-blue-500 data-[selected=true]:bg-blue-50 data-[selected=true]:border-1.5","dark:data-[selected=true]:bg-blue-500",F),y[2]=F,y[3]=n):n=y[3],y[4]!==_?(s=_(),y[4]=_,y[5]=s):s=y[5],y[6]!==s?(c=(0,l.jsx)(o.s,{children:(0,l.jsx)("input",{...s})}),y[6]=s,y[7]=c):c=y[7],y[8]!==M?(d=M(),y[8]=M,y[9]=d):d=y[9],y[10]!==k?(u=k(),y[10]=k,y[11]=u):u=y[11],y[12]!==u?(f=(0,l.jsx)("span",{...u}),y[12]=u,y[13]=f):f=y[13],y[14]!==d||y[15]!==f?(m=(0,l.jsx)("span",{...d,children:f}),y[14]=d,y[15]=f,y[16]=m):m=y[16],y[17]!==q?(h=q(),y[17]=q,y[18]=h):h=y[18],y[19]!==v||y[20]!==E?(p=v&&(0,l.jsx)("span",{...E(),dangerouslySetInnerHTML:{__html:v}}),y[19]=v,y[20]=E,y[21]=p):p=y[21],y[22]!==N||y[23]!==T?(x=N&&(0,l.jsx)("span",{...T(),dangerouslySetInnerHTML:{__html:N}}),y[22]=N,y[23]=T,y[24]=x):x=y[24],y[25]!==p||y[26]!==x||y[27]!==h?(g=(0,l.jsxs)("div",{...h,children:[p,x]}),y[25]=p,y[26]=x,y[27]=h,y[28]=g):g=y[28],y[29]!==j||y[30]!==t||y[31]!==g||y[32]!==n||y[33]!==c||y[34]!==m?(b=(0,l.jsxs)(j,{...t,className:n,children:[c,m,g]}),y[29]=j,y[30]=t,y[31]=g,y[32]=n,y[33]=c,y[34]=m,y[35]=b):b=y[35],b};function d(e){let t,n,r,o,i=(0,a.c)(14),{label:c,options:d,handleOnChange:f,classNames:m,defaultValue:h,value:p,orientation:x}=e,g=p??h??"";return i[0]!==m?(t={...m},i[0]=m,i[1]=t):t=i[1],i[2]!==f?(n=e=>f(e.target.value),i[2]=f,i[3]=n):n=i[3],i[4]!==d?(r=d.map(u),i[4]=d,i[5]=r):r=i[5],i[6]!==g||i[7]!==h||i[8]!==c||i[9]!==x||i[10]!==t||i[11]!==n||i[12]!==r?(o=(0,l.jsx)(s.U,{classNames:t,defaultValue:h,label:c,orientation:x,value:g,onChange:n,children:r}),i[6]=g,i[7]=h,i[8]=c,i[9]=x,i[10]=t,i[11]=n,i[12]=r,i[13]=o):o=i[13],o}function u(e){return(0,l.jsx)(c,{classNames:{wrapper:"hidden",label:"text-sm font-medium",labelWrapper:"ms-[unset]",...e.classNames},description:e.description,disabled:e.disabled,value:e.value,children:e.label},e.value)}},65706:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(95155),a=n(45778),s=n(44911);
1function r({className:e,height:t=20,outlined:n=!1,type:o="full",width:i=20}){return(0,l.jsx)(a.In,{className:(0,s.cn)("full"===o?"text-green-700":"partial"===o?"text-yellow-700":"text-red-700",e),height:t,icon:n?"material-symbols:free-cancellation-outline":"material-symbols:free-cancellation",width:i})}},66892:(e,t,n)=>{n.d(t,{A:()=>p});var l=n(95155),a=n(19749),s=n(52229),r=n(41545),o=n(19810),i=n.n(o),c=n(12115),d=n(65706),u=n(26377),f=n(41374);function m(e){let t,n,o,i,c=(0,a.c)(7),{date:d}=e;if(c[0]!==d){o=Symbol.for("react.early_return_sentinel");e:{let e=(0,f.qE)(d);if(!e||!(0,s.f)(e)){o=null;break e}t="font-semibold",n=(0,r.GP)(e,"do MMM (h aaaa)")}c[0]=d,c[1]=t,c[2]=n,c[3]=o}else t=c[1],n=c[2],o=c[3];return o!==Symbol.for("react.early_return_sentinel")?o:(c[4]!==t||c[5]!==n?(i=(0,l.jsx)("u",{className:t,children:n}),c[4]=t,c[5]=n,c[6]=i):i=c[6],i)}function h(e){let t,n,s,r=(0,a.c)(5),{cutoffDate:o}=e;return r[0]!==o?(t=(0,l.jsx)(m,{date:o}),r[0]=o,r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("u",{className:"font-semibold",children:"100%"}),r[2]=n):n=r[2],r[3]!==t?(s=(0,l.jsxs)("div",{children:["No-shows, cancellations or changes made after"," ",t," are subject to a fee equal to"," ",n," of the total amount paid for the reservation."]}),r[3]=t,r[4]=s):s=r[4],s}let p=function({cancellationPolicies:e,currencyCode:t,hideTitle:n,payableAmount:a}){let o,p=c.useMemo(()=>t||(e||[]).find(e=>"string"==typeof e?.currency&&e.currency)?.currency||void 0,[e,t]),[x,g]=(0,u.TJ)(e||[]),b=i()(x,e=>e.amount),y=(0,u.zX)({pastPolicies:x,futurePolicies:g,payableAmount:a}),j=(0,u.oG)(e||[],a);if(j.hasMalformedPolicyRange)return"partial"===j.malformedFallbackType?(0,l.jsx)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:(0,l.jsxs)("span",{children:["This booking is"," ",(0,l.jsx)("span",{className:"font-bold",children:"partially refundable"}),". Cancellation fees apply, and your refund depends on the policy window."]})}):(0,l.jsx)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:(0,l.jsxs)("span",{children:["This booking is ",(0,l.jsx)("span",{className:"font-bold",children:"non-refundable"}),". Cancellations or changes incur a"," ",(0,l.jsx)("span",{className:"font-bold",children:"100%"})," fee of the total amount paid."]})});if(j.hasActiveFullFeePolicy)return(0,l.jsx)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:(0,l.jsxs)("span",{children:["This booking is ",(0,l.jsx)("span",{className:"font-bold",children:"non-refundable"}),". Cancellations or changes incur a"," ",(0,l.jsx)("span",{className:"font-bold",children:"100%"})," fee of the total amount paid."]})});if(!g.length){let e=x.length>0?x[x.length-1]:null;return e&&e.to?(0,l.jsxs)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:[(0,l.jsxs)("div",{children:["Cancellations or changes before"," ",(0,l.jsx)(m,{date:e.to})," (destination's local time) will incur a fee equal to"," ",(0,l.jsx)("u",{className:"font-semibold",children:(0,u.yM)({...e,amount:b},p).trim()})," ","of the total amount paid."]}),(0,l.jsx)(h,{cutoffDate:e.to})]}):(0,l.jsx)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:(0,l.jsxs)("span",{children:["This booking is ",(0,l.jsx)("span",{className:"font-bold",children:"non-refundable"}),", if you change or cancel your booking you will not get a refund."]})})}let v=g[g.length-1],N=x.length>0?x[x.length-1].to:null,w=N?(0,f.qE)(N):null,M=w&&(0,s.f)(w)?w:null,_=c.useMemo(()=>{let e=[];
1if(w&&(0,s.f)(w)&&e.push(w),g.forEach(t=>{let n=t.to?(0,f.qE)(t.to):null,l=(0,f.qE)(t.from);n&&(0,s.f)(n)&&e.push(n),l&&(0,s.f)(l)&&e.push(l)}),0===e.length){let e=v?.to?(0,f.qE)(v.to):v?.from?(0,f.qE)(v.from):null;return e&&(0,s.f)(e)?e:null}return new Date(Math.max(...e.map(e=>e.getTime())))},[v,g,w]);return(0,l.jsxs)("div",{className:"flex gap-4 flex-col text-sm py-4 px-6",children:[!n&&(0,l.jsxs)("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,l.jsx)(d.A,{type:y}),"Cancellation Policy"]}),!x.length&&(0,l.jsxs)("div",{className:"text-green-dark font-semibold",children:["Fully refundable before"," ",(0,l.jsxs)("span",{className:"font-semibold",children:[(o=(0,f.qE)(g[0].from))&&(0,s.f)(o)?(0,r.GP)(o,"do MMM (h aaaa)"):""," ","(destination's local time)."]})]}),!!x.length&&(0,l.jsxs)("div",{children:["Cancellations or changes before"," ",(0,l.jsx)(m,{date:x[x.length-1].to})," ","(destination's local time) will incur a fee equal to"," ",(0,l.jsx)("u",{className:"font-semibold",children:(0,u.yM)({...x[0],amount:b},p).trim()})," ","of the total amount paid."]}),g.map((e,t)=>{let n=(0,f.qE)(e.from),a=e.to?(0,f.qE)(e.to):null,r=!!(n&&(0,s.f)(n)),o=!!a&&(0,s.f)(a),i=r&&M?n<M?M:n:r?n:e.from;o&&a&&(M=a);let c=!!e.to&&e.to!==e.from&&o&&(!(i instanceof Date)||!(0,s.f)(i)||i.getTime()<a.getTime());return(0,l.jsxs)("div",{children:["Cancellations or changes"," ",c?(0,l.jsxs)(l.Fragment,{children:["between ",(0,l.jsx)(m,{date:i})," and"," ",(0,l.jsx)(m,{date:a})]}):(0,l.jsxs)(l.Fragment,{children:["after ",(0,l.jsx)(m,{date:i})]})," ","(destination's local time) will incur a fee equal to"," ",(0,l.jsx)("u",{className:"font-semibold",children:(0,u.yM)(e,p).trim()})," ","of the total amount paid."]},t)}),_&&(0,l.jsx)(h,{cutoffDate:_})]})}}}]);

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.