1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70843,97232],{527:(e,t,a)=>{a.d(t,{k:()=>o});var r=a(34957),n=a(4319);let i={email:"",first_name:"",is_admin:!1,isLoggedIn:!1,last_name:"",loading:!1,mobile:"",name:"",user_type:"",wishList:[]},o=(0,r.vt)()((0,n.Zr)(e=>({...i,resetUser:()=>e(i),setLoggedIn:t=>{let{isLoggedIn:a}=t;return e({isLoggedIn:a})},setUser:t=>e(e=>{let a=t.first_name&&t.last_name?"".concat(t.first_name,"_").concat(t.last_name).substring(0,14):e.name;return{...e,...t,name:a}}),setUserWishList:t=>{let{wishList:a}=t;return e({wishList:a})}}),{name:"user-storage"}))},23866:(e,t,a)=>{function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}a.d(t,{A:()=>y});var n=a(14232),i=a(41945),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),l=a(10670),d=function(e,t,a){var r=e.key+"-"+t.name;!1===a&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},c=function(e,t,a){d(e,t,a);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(void 0!==n)}},u=a(67955),p=a(78455),h=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?s:h},f=function(e,t,a){var r;if(t){var n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof r&&a&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return d(t,a,r),(0,p.s)(function(){return c(t,a,r)}),null},y=(function e(t,a){var i,o,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==a&&(i=a.label,o=a.target);var c=f(t,a,s),p=c||m(d),h=!p("as");return function(){var y=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&v.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)v.push.apply(v,y);else{v.push(y[0][0]);for(var w=y.length,k=1;k<w;
1k++)v.push(y[k],y[0][k])}var x=(0,l.w)(function(e,t,a){var r,i,s,f=h&&e.as||d,y="",w=[],k=e;if(null==e.theme){for(var x in k={},e)k[x]=e[x];k.theme=n.useContext(l.T)}"string"==typeof e.className?(r=t.registered,i=e.className,s="",i.split(" ").forEach(function(e){void 0!==r[e]?w.push(r[e]+";"):e&&(s+=e+" ")}),y=s):null!=e.className&&(y=e.className+" ");var b=(0,u.J)(v.concat(w),t.registered,k);y+=t.key+"-"+b.name,void 0!==o&&(y+=" "+o);var _=h&&void 0===c?m(f):p,T={};for(var P in e)(!h||"as"!==P)&&_(P)&&(T[P]=e[P]);return T.className=y,a&&(T.ref=a),n.createElement(n.Fragment,null,n.createElement(g,{cache:t,serialized:b,isStringTag:"string"==typeof f}),n.createElement(f,T))});return x.displayName=void 0!==i?i:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=d,x.__emotion_styles=v,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+o}}),x.withComponent=function(t,n){return e(t,r({},a,n,{shouldForwardProp:f(x,n,!0)})).apply(void 0,v)},x}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){y[e]=y(e)})},28888:(e,t,a)=>{a.d(t,{_:()=>r});function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},29324:(e,t,a)=>{a.d(t,{x:()=>i});var r=a(34957),n=a(4319);let i=(0,r.vt)()((0,n.Zr)(e=>({adults:1,blockedDates:[],calendarRate:null,children:0,freeDates:{},hasBookNowError:!1,hasUrlDatesInitialized:!1,propertyEndDate:null,propertyGuests:0,propertyStartDate:null,setBlockedDates:t=>e({blockedDates:t}),setBookNowError:t=>e({hasBookNowError:t}),setFreeDates:t=>e({freeDates:t}),setCalendarRate:t=>e({calendarRate:t}),setGuestsAdultChild:t=>{let{adults:a,children:r}=t;return e({adults:a,children:r})},setHasUrlDatesInitialized:t=>e({hasUrlDatesInitialized:t}),setPropertyEndDate:t=>e({propertyEndDate:t}),setPropertyGuests:t=>e({propertyGuests:t}),setPropertyStartDate:t=>e({propertyStartDate:t}),setTempPropertyEndDate:t=>e({tempPropertyEndDate:t}),setTempPropertyStartDate:t=>e({tempPropertyStartDate:t}),tempPropertyEndDate:null,tempPropertyStartDate:null}),{name:"form-storage",partialize:e=>{let{hasUrlDatesInitialized:t,propertyEndDate:a,propertyStartDate:r,setPropertyEndDate:n,setPropertyStartDate:i,setTempPropertyEndDate:o,setTempPropertyStartDate:s,tempPropertyEndDate:l,tempPropertyStartDate:d,...c}=e;return c}}))},31289:(e,t,a)=>{a.d(t,{n:()=>n});let r=!1,n=()=>{r||(r=!0,Promise.all([a.e(69452),a.e(60818)]).then(a.bind(a,60818)))}},38629:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(28888),n=a(37876);function i(){let e=(0,r._)(["\n display: block;\n width: 100%;\n padding-right: 16px;\n padding-left: 16px;\n margin-right: auto;\n margin-left: auto;\n max-width: unset;\n @media (min-width: 768px) {\n max-width: 750px;\n }\n @media (min-width: 992px) {\n max-width: 970px;\n }\n @media (min-width: 1199px) {\n max-width: 1170px;\n }\n @media (min-width: 1300px) {\n max-width: 1270px;\n }\n @media (min-width: 1500px) {\n max-width: 1470px;\n }\n @media (min-width: 1700px) {\n max-width: 1670px;\n }\n"]);return i=function(){return e},e}let o=a(23866).A.div(i()),s=e=>{let{children:t,className:a}=e;return(0,n.jsx)(o,{className:a,children:t})}},41471:(e,t,a)=>{a.d(t,{A:()=>u});var r=a(38248),n=a(14232),i=a(45854),o=a(29324),s=a(527),l=a(97232),d=a(90364),c=a(92495);let u=e=>{let{setBlockedDates:t}=(0,o.x)(),{isLoggedIn:a,resetUser:u,setLoggedIn:p,setUser:h}=(0,s.k)(),m=(0,n.useMemo)(()=>{let{hostname:e,pathname:t}=window.location;return e.includes("thesqua.re")?t.replaceAll("/","%2F"):""},[]);(0,n.useEffect)(()=>
1{if(e)return;let t=!!(0,r.getCookie)(d.p.is_auth_jwt);(a||t)&&(async()=>{var e;let t=await (0,i.c)();if(null==t||null==(e=t.email)?void 0:e.length){p({isLoggedIn:!0}),h({email:null==t?void 0:t.email,first_name:null==t?void 0:t.first_name,is_admin:(null==t?void 0:t.is_admin)||!1,last_name:null==t?void 0:t.last_name,name:"".concat(null==t?void 0:t.first_name," ").concat(null==t?void 0:t.last_name),user_type:(null==t?void 0:t.user_type)||"normal"});let e=()=>(0,r.setCookie)(null===d.p||void 0===d.p?void 0:d.p.user_id,String(null==t?void 0:t.user_id),{expires:new Date(Date.now()+2592e6),path:"/"});"undefined"!=typeof requestIdleCallback?requestIdleCallback(e):setTimeout(e,0)}else(0,r.deleteCookie)(null===d.p||void 0===d.p?void 0:d.p.user_id),(0,r.deleteCookie)("auth_jwt"),(0,r.deleteCookie)("is_auth_jwt")})()},[]);let f=(0,n.useCallback)(async()=>{try{await l.s.get("https://www.thesqua.re/th-api/logout",{credentials:"include"})}catch(e){console.error("Logout failed:",e)}finally{(0,r.deleteCookie)(null===d.p||void 0===d.p?void 0:d.p.user_id,{path:"/"}),(0,r.deleteCookie)("auth_jwt",{path:"/"}),(0,r.deleteCookie)("is_auth_jwt",{path:"/"}),p({isLoggedIn:!1}),u(),t([]),setTimeout(()=>window.location.reload(),2e3)}},[u,t,p]);return{handleNewLogin:(0,n.useCallback)(()=>{window.location.href=(0,c.f)(m)},[m]),onClickSignOut:f}}},45854:(e,t,a)=>{a.d(t,{c:()=>n});var r=a(97232);async function n(){try{let{data:e}=await r.s.get("https://auth.thesqua.re/auth/me",{credentials:"include"});return null==e?void 0:e.user}catch(e){return null}}},51287:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(14232);let n=e=>{(0,r.useEffect)(()=>{if(!e)return;let{body:t}=document,a=t.style.overflow;return t.style.overflow="hidden",()=>{t.style.overflow=a}},[e])}},63851:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(37876),n=a(54587),i=a.n(n);a(14232);let o=e=>{let{alt:t,fetchPriority:a,height:n,id:o,isGoogleBot:s,loading:l,onClick:d,quality:c=75,src:u,width:p,...h}=e,m=s||"high"===a;return(0,r.jsx)(i(),{alt:t,fetchPriority:a,height:n,id:o,loading:m?"eager":l||"lazy",priority:"high"===a,quality:c,src:u,unoptimized:!0,width:p,onClick:d,...h})}},92495:(e,t,a)=>{a.d(t,{f:()=>r});let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return"/newlogin?next=".concat(e)}},97232:(e,t,a)=>{a.d(t,{e:()=>l,s:()=>d});let r=new Set(["dev.thesqua.re","localhost","staging.thesqua.re"]),n=new Set(["www.thesqua.re"]),i=new Set(["emailreputation.abstractapi.com","fastapi.thesqua.re","phoneintelligence.abstractapi.com"]);function o(e){let t,a=window.location.hostname;try{t=new URL(e,window.location.origin).hostname}catch(e){return!1}return!i.has(t)&&(!!r.has(a)||!!n.has(a)&&"auth.thesqua.re"===t)}let s="thesqua.re";function l(e){if(!e)return!1;if(e.startsWith("/")&&!e.startsWith("//"))return!0;try{let t=new URL(e),a=t.hostname;return t.protocol===window.location.protocol&&(a===s||a.endsWith(".".concat(s)))}catch(e){return!1}}let d={async delete(e,t){let a=await fetch(e,{...t,headers:{...null==t?void 0:t.headers},method:"DELETE",...o(e)&&{credentials:"include"}});if(!a.ok)throw Error("HTTP ".concat(a.status,": ").concat(a.statusText));return{data:await a.json(),status:a.status,statusText:a.statusText}},async get(e,t){let a={...t,headers:{...null==t?void 0:t.headers},method:"GET",...o(e)&&{credentials:"include"}},r=await fetch(e,a);if(!r.ok)throw Error("HTTP ".concat(r.status,": ").concat(r.statusText));return{data:await r.json(),responseURL:r.url,status:r.status,statusText:r.statusText}},async post(e,t,a){var r;let n,i,s=t instanceof FormData,l=t instanceof URLSearchParams;s?n=t:l?(n=t.toString(),i="application/x-www-form-urlencoded"):(n=JSON.stringify(t),i="application/json");let d=await fetch(e,{...a,body:n,headers:{...i&&!(null==a||null==(r=a.headers)?void 0:r["Content-Type"])&&{"Content-Type":i},...null==a?void 0:a.headers},method:"POST",...o(e)&&{credentials:"include"}});if(!d.ok)throw Error("HTTP ".concat(d.status,": ").concat(d.statusText));return{data:await d.json(),status:d.status,statusText:d.statusText}},async put(e,t,a){let r=t instanceof FormData,n=await fetch(e,{...a,body:r?t:JSON.stringify(t),headers:{...!r&&{"Content-Type":"application/json"},...null==a?void 0:a.headers},method:"PUT",...o(e)&&{credentials:"include"}});if(!n.ok)throw Error("HTTP ".concat(n.status,": ").concat(n.statusText));return{data:await n.json(),status:n.status,statusText:n.statusText}}}}}]);
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.