1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[6254],{16088:(e,t,s)=>{s.d(t,{o:()=>i});s(47313);var o=s(46417);const i=()=>(0,o.jsxs)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M14.373 3.02421L15.9989 2.56L14.373 2.09579C14.1456 2.0311 13.9678 1.85332 13.9031 1.62586L13.4389 0L12.9747 1.62586C12.91 1.85332 12.7322 2.0311 12.5048 2.09579L10.8789 2.56L12.5048 3.02421C12.7322 3.0889 12.91 3.26668 12.9747 3.49414L13.4389 5.12L13.9031 3.49414C13.9678 3.26668 14.1456 3.0889 14.373 3.02421Z",fill:"#0F00B2"}),(0,o.jsx)("path",{d:"M3.19995 3.75977C3.03023 3.75977 2.86749 3.82726 2.74749 3.94726L0.187413 6.50723C-0.0532283 6.74798 -0.0634071 7.13498 0.164271 7.38793L5.92427 13.7878C6.04566 13.9227 6.21858 13.9998 6.39999 13.9998C6.5814 13.9998 6.75431 13.9227 6.87571 13.7878L12.6357 7.38793C12.8634 7.13496 12.8532 6.74797 12.6126 6.50723L10.0525 3.94726C9.93249 3.82726 9.76973 3.75977 9.60003 3.75977H3.19995Z",fill:"#0F00B2"})]})},82661:(e,t,s)=>{s.d(t,{U:()=>i});s(47313);var o=s(46417);const i=()=>(0,o.jsx)("svg",{width:"13",height:"10",viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M3.14924e-05 7.99593H12.5259C12.5259 8.55705 12.348 9.01801 11.9924 9.41887C11.6369 9.8197 11.2219 10 10.7281 10H1.77812C1.28421 10 0.86934 9.79958 0.513748 9.41887C0.177875 8.99804 3.14924e-05 8.55705 3.14924e-05 7.99593ZM12.2097 0.821614C12.7431 1.36274 13 2.004 13 2.74552C13 3.50708 12.7431 4.14834 12.2097 4.66943C11.6762 5.21055 11.044 5.47112 10.313 5.47112H9.85854V5.69154C9.85854 6.1324 9.70053 6.49323 9.40411 6.81379C9.08795 7.13449 8.73236 7.27475 8.29774 7.27475H3.37839C2.94377 7.27475 2.58805 7.11447 2.27202 6.81379C1.95586 6.4931 1.81758 6.1324 1.81758 5.69154V0.460976C1.81758 0.340698 1.85715 0.240551 1.95588 0.140282C2.03489 0.0601386 2.15346 0 2.27204 0H10.3329C11.0442 0.0198784 11.6766 0.280434 12.2099 0.821559L12.2097 0.821614ZM11.7356 3.98804C12.0715 3.64734 12.2493 3.20648 12.2493 2.72552C12.2493 2.22453 12.0715 1.8037 11.7356 1.463C11.3997 1.12231 10.9651 0.941878 10.491 0.941878H9.8982V4.5292H10.491C10.965 4.52907 11.3799 4.34878 11.7356 3.98807V3.98804Z",fill:"#666666"})})},65320:(e,t,s)=>{s.d(t,{l:()=>p});var o=s(47313),i=s(2135),a=s(58467),l=s(21484),n=s(35775),c=s(53084),r=s(7527),u=s(36439),g=s(54715),h=s(76468),d=s(70816),v=s.n(d),m=s(46417);const p=e=>{let{setCalendarPopup:t}=e;const{setShowCalendarPopup:s}=(0,o.useContext)(u.K),[d,p]=(0,i.lr)(),k=(0,h.A)(),{pathname:$}=((0,a.s0)(),(0,a.TH)()),[x,j]=(0,o.useState)({checkin:""!==(null===k||void 0===k?void 0:k.get("checkin"))&&null!==(null===k||void 0===k?void 0:k.get("checkin"))&&new Date(k.get("checkin"))||"",checkout:""!==(null===k||void 0===k?void 0:k.get("checkout"))&&null!==(null===k||void 0===k?void 0:k.get("checkin"))&&new Date(k.get("checkout"))||""}),[C,b]=(0,o.useState)(!1);return(0,m.jsxs)("div",{className:"search__calendar-container",children:[(0,m.jsx)("div",{className:"search__calendar-close",children:(0,m.jsx)(n.u,{onClick:()=>{"collection"!==$.split("/")[1]?s(!1):t(!1)}})}),(0,m.jsx)("h2",{children:"Add your dates"}),(0,m.jsx)(l.M,{dates:x,open:!0,setOpen:b,setDates:j,sticky:!1,mobile:!0,noMonth:3,sameDay:(0,r.U)(1)?1:0,children:(0,m.jsxs)("div",{className:"search-elements dates",children:[(0,m.jsxs)("div",{className:"dates-input-wrapper",children:[(0,m.jsx)("input",{autoComplete:"off",autoFocus:!0,required:!0,type:"text",name:"checkin",id:"dates-checkin-input",inputMode:"none",value:x.checkin<x.checkout?(0,c.p6)(x.checkin):""}),(0,m.jsx)("label",{children:"Check in"})]}),(0,m.jsx)("span",{className:"dash-span",children:"-"}),(0,m.jsxs)("div",{className:"dates-input-wrapper",children:[(0,m.jsx)("input",{autoComplete:"off",autoFocus:!0,required:!0,type:"text",name:"checkout",inputMode:"none",id:"dates-checkout-input",value:x.checkout>x.checkin?(0,c.p6)(x.checkout):""}),(0,m.jsx)("label",{children:"Check out"})]})]})}),(0,m.jsxs)("div",{className:"btn-wrapper",children:[(0,m.jsx)("button",{"aria-label":"clear-dates",onClick:()=>{j({checkin:"",checkout:""})},children:"Clear"}),(0,m.jsx)("button",{"aria-label":"apply-dates",className:"next-btn",onClick:()=>{"/search"===$?window.location.href=(0,g.vD)(k,x,"/search"):"villas"===$.split("/")[1]?window.location.href=(0,g.vD)(k,x,"villas"):"collection"===$.split("/")[1]?(d.set("checkin",v()(x.checkin).format("YYYY/MM/DD")),d.set("checkout",v()(x.checkout).format("YYYY/MM/DD")),p(d,{replace:!0}),t(!1)):window.location.href=(0,g.US)(k,x,$)},children:"Save"})]})]})}},69468:(e,t,s)=>{s.d(t,{v:()=>d});var o=s(47313),i=s(2135),a=s(58467),l=s(22284),n=s(35775),c=s(34909),r=s(56687),u=s(36439),g=s(54715),h=s(46417);const d=e=>{let{setGuestPopup:t}=e;const{query:s,setShowGuestPopup:d}=(0,o.useContext)(u.K),[v,m]=(0,i.lr)(),[p,k]=(0,o.useState)({rooms:(null===s||void 0===s?void 0:s.get("rooms"))>1?null===s||void 0===s?void 0:s.get("rooms"):1,guests:(null===s||void 0===s?void 0:s.get("guests"))>1?null===s||void 0===s?void 0:s.get("guests"):1,pets:0}),{pathname:$}=(0,a.TH)();return(0,h.jsxs)("div",{className:"search__guest-container",children:[(0,h.jsxs)("div",{className:"search__guest__top_wrapper",children:[(0,h.jsx)("div",{className:"guest-header",children:(0,h.jsx)(n.u,{onClick:()=>{"collection"!==$.split("/")[1]?d(!1):t(!1)}})}),(0,h.jsxs)("div",{className:"guest__content",children:[(0,h.jsx)("h2",{children:"Add guests & room"}),(0,h.jsx)("h6",{children:"You can select multiple options"}),(0,h.jsxs)("div",{className:"select-guest-input",children:[(0,h.jsx)(l.N,{}),(0,h.jsxs)("span",{children:[p.guests," Guests"]}),(0,h.jsx)("span",{children:"-"}),(0,h.jsxs)("span",{children:[p.rooms," Room"]})]}),(0,h.jsxs)("div",{className:"select-room-wrapper",children:[(0,h.jsxs)("div",{className:"guest-elements",children:[(0,h.jsx)("h3",{children:"Guests"}),(0,h.jsxs)("div",{className:"guest-counter",children:[(0,h.jsx)("button",{"aria-label":"minus",className:1===
1p.guests&&"disable",disabled:1===p.guests,onClick:()=>{p.guests>1&&k({...p,guests:+p.guests-1})},children:(0,h.jsx)(r.r,{})}),(0,h.jsx)("span",{className:"counter",children:p.guests}),(0,h.jsx)("button",{"aria-label":"plus",onClick:()=>{k({...p,guests:+p.guests+1})},children:(0,h.jsx)(c.r,{})})]})]}),(0,h.jsxs)("div",{className:"guest-elements",children:[(0,h.jsx)("h3",{children:"Rooms"}),(0,h.jsxs)("div",{className:"guest-counter",children:[(0,h.jsx)("button",{"aria-label":"minus",className:1===p.rooms&&"disable",disabled:1===p.rooms,onClick:()=>{p.rooms>1&&k({...p,rooms:+p.rooms-1})},children:(0,h.jsx)(r.r,{})}),(0,h.jsx)("span",{className:"counter",children:p.rooms}),(0,h.jsx)("button",{"aria-label":"plus",onClick:()=>{k({...p,rooms:+p.rooms+1})},children:(0,h.jsx)(c.r,{})})]})]})]})]})]}),(0,h.jsxs)("div",{className:"btn-wrapper",children:[(0,h.jsx)("button",{"aria-label":"clear",onClick:()=>k({rooms:1,guests:1,pets:0}),children:"Clear"}),(0,h.jsx)("button",{"aria-label":"save",className:"next-btn",onClick:()=>{"/search"===$&&(window.location.href=(0,g.wE)(s,p,"/search")),"villas"===$.split("/")[1]&&(window.location.href=(0,g.wE)(s,p,"villas")),"collection"===$.split("/")[1]&&(v.set("guests",p.guests.toString()),v.set("rooms",p.rooms.toString()),m(v),t(!1))},children:"Save"})]})]})}},19043:(e,t,s)=>{s.d(t,{O:()=>$});var o,i=s(47313),a=s(58467);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},l.apply(this,arguments)}function n(e,t){let{title:s,titleId:a,...n}=e;return i.createElement("svg",l({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),s?i.createElement("title",{id:a},s):null,o||(o=i.createElement("path",{d:"M3.01122 3.01218C4.30879 1.71461 6.03399 1 7.86901 1C9.70403 1 11.4292 1.71461 12.7268 3.01218C14.0243 4.30973 14.739 6.03493 14.739 7.86992C14.739 9.54761 14.1413 11.1333 13.0472 12.3845L16.8626 16.1999C17.0458 16.3831 17.0458 16.6802 16.8626 16.8635C16.7709 16.9551 16.6508 17.001 16.5308 17.001C16.4107 17.001 16.2906 16.9552 16.199 16.8635L12.3836 13.0482C11.1324 14.1422 9.54671 14.7399 7.86901 14.7399C6.03396 14.7399 4.30883 14.0253 3.01125 12.7277C1.7137 11.4302 0.999094 9.70497 0.999094 7.86995C0.999094 6.03493 1.71367 4.30973 3.01122 3.01218ZM3.67488 12.0641C5.98755 14.3767 9.75044 14.3767 12.0631 12.0641C14.3757 9.75144 14.3757 5.98849 12.0631 3.67585C10.9067 2.5194 9.38807 1.94137 7.86898 1.94137C6.35026 1.94137 4.83104 2.51969 3.67485 3.67585C1.36227 5.98846 1.36227 9.75141 3.67488 12.0641Z",fill:"#2368a2",stroke:"#2368a2"})))}const c=i.forwardRef(n);s.p;var r=s(11606),u=s(34681),g=s(35775),h=s(15599),d=s(90668),v=s(36439),m=s(54715),p=s(76468),k=s(46417);const $=e=>{var t;let{setColletionLocationPopup:s}=e;const[o,l]=(0,i.useState)(""),[n,$]=(0,i.useState)(""),{searchBar:x,setSearchQuery:j}=(0,i.useContext)(d.y),{setShowLocationPopup:C,setLocation:b}=(0,i.useContext)(v.K),{pathname:w}=(0,a.TH)(),Y=(0,p.A)(),{data:y}=x,f=null===y||void 0===y||null===(t=y.data)||void 0===t?void 0:t.data,M=(0,a.s0)(),D=f&&(null===Object||void 0===Object?void 0:Object.values(f).slice(0,7));(0,i.useEffect)((()=>{""===o&&$("")}),[o]);return(0,k.jsxs)("div",{className:"search__body-container",children:[(0,k.jsx)("div",{className:"search__body-header",children:(0,k.jsx)(g.u,{onClick:()=>{"/search"===w||"villas"===w.split("/")[1]?C(!1):s(!1)}})}),!n&&(0,k.jsxs)("div",{className:"search__input-box",children:[(0,k.jsx)("input",{id:"search",autoFocus:!0,placeholder:"Search for city, homes...",value:o,onChange:e=>{l(e.target.value),j(e.target.value)}}),o?(0,k.jsx)(r.D,{onClick:()=>{l(""),$("")}}):(0,k.jsx)(c,{})]})," ",(0,k.jsxs)("button",{className:"search_anywhere",onClick:()=>("/search"===w&&(window.location.href=(0,m.K$)(Y,"/search")),void("villas"===w.split("/")[1]&&(window.location.href=(0,m.K$)(Y,"villas")))),children:[(0,k.jsx)("span",{children:(0,k.jsx)(h.a,{})}),"Anywhere"]}),(0,k.jsx)("div",{className:"search__show-wrapper",children:x.isSuccess&&D&&D.length>0&&(null===D||void 0===D?void 0:D.map((e=>(0,k.jsxs)("div",{className:"home__suggest-wrapper",onClick:t=>{"Photos"!==e.type?(e.id||("/search"===w||"villas"===w.split("/")[1]?(l(e.title),j(e.title),C(!1),b({latitude:e.latitude,longitude:e.longitude})):(s(!1),M((0,m.WG)(e,w,Y))),"/search"===w?M((0,m.kG)(e,Y,"/search")):"villas"===w.split("/")[1]&&M((0,m.kG)(e,Y,"villas"))),e.id&&M(`/view/${e.id}`)):window.location.href=`/discovery?tag=${encodeURIComponent(e.title)}`},children:[e.image_id?(0,k.jsx)("div",{className:"home-suggest-img",children:(0,k.jsx)("img",{src:`https://ik.imagekit.io/5tgxhsqev/saffronstays-media/tr:q-40/image/upload/${null===e||void 0===e?void 0:e.image_id}`,alt:"#"})}):(0,k.jsx)(u.r,{}),(0,k.jsxs)("div",{className:"home__suggest-details",children:[(0,k.jsxs)("span",{children:[(0,k.jsx)("h4",{children:e.title}),(0,k.jsx)("h5",{children:e.type})]}
1),(0,k.jsx)("h5",{children:e.subtitle})]})]}))))})]})}},54715:(e,t,s)=>{s.d(t,{K$:()=>a,US:()=>u,WG:()=>r,kG:()=>l,vD:()=>n,wE:()=>c});var o=s(70816),i=s.n(o);const a=(e,t)=>"/search"===t||"villas"===t?`/villas/villa-near-me?&checkin=${e.get("checkin")?e.get("checkin"):""}&checkout=${e.get("checkout")?e.get("checkout"):""}&guests=${e.get("guests")?e.get("guests"):1}&rooms=${e.get("rooms")?e.get("rooms"):1}&lat=&lon=&amenities=${e.get("amenities")?e.get("amenities"):""}&events=${e.get("events")?e.get("events"):""}&club=${e.get("club")?e.get("club"):""}&signature=${e.get("signature")?e.get("signature"):""}&unavail=${e.get("unavail")?e.get("unavail"):""}&sortby=${e.get("sortby")?e.get("sortby"):""}&coupon=${e.get("coupon")?e.get("coupon"):""}`:null,l=(e,t,s)=>"/search"===s?`/search?location=${e.title}&checkin=${t.get("checkin")?t.get("checkin"):""}&checkout=${t.get("checkout")?t.get("checkout"):""}&guests=${t.get("guests")?t.get("guests"):1}&rooms=${t.get("rooms")?t.get("rooms"):1}&lat=${e.latitude}&lon=${e.longitude}&amenities=${t.get("amenities")?t.get("amenities"):""}&events=${t.get("events")?t.get("events"):""}&unavail=${t.get("unavail")?t.get("unavail"):""}&sortby=${t.get("sortby")?t.get("sortby"):""}&coupon=${t.get("coupon")?t.get("coupon"):""}`:"villas"===s?`/villas/villas-in-${e.title}?checkin=${t.get("checkin")?t.get("checkin"):""}&checkout=${t.get("checkout")?t.get("checkout"):""}&guests=${t.get("guests")?t.get("guests"):1}&rooms=${t.get("rooms")?t.get("rooms"):1}&lat=${e.latitude}&lon=${e.longitude}&amenities=${t.get("amenities")?t.get("amenities"):""}&events=${t.get("events")?t.get("events"):""}&unavail=${t.get("unavail")?t.get("unavail"):""}&sortby=${t.get("sortby")?t.get("sortby"):""}&coupon=${t.get("coupon")?t.get("coupon"):""}`:null,n=(e,t,s)=>{var o,a,l,n;return"/search"===s?`/search=${e.get("location")||(null===(o=window.location.pathname)||void 0===o||null===(a=o.split("/")[2])||void 0===a?void 0:a.split("-")[2])}&checkin=${t.checkin?i()(t.checkin).format("YYYY-MM-DD"):i()().add(1,"days").format("YYYY-MM-DD")}&checkout=${t.checkout?i()(t.checkout).format("YYYY-MM-DD"):i()().add(2,"days").format("YYYY-MM-DD")}&guests=${e.get("guests")?e.get("guests"):1}&rooms=${e.get("rooms")?e.get("rooms"):1}&lat=${e.get("lat")?parseFloat(e.get("lat")):""}&lon=${e.get("lon")?parseFloat(e.get("lon")):""}&amenities=${e.get("amenities")?e.get("amenities"):""}&events=${e.get("events")?e.get("events"):""}&unavail=${e.get("unavail")?e.get("unavail"):""}&sortby=${e.get("sortby")?e.get("sortby"):""}&coupon=${e.get("coupon")?e.get("coupon"):""}`:"villas"===s?`/villas/villas-in-${e.get("location")||(null===(l=window.location.pathname)||void 0===l||null===(n=l.split("/")[2])||void 0===n?void 0:n.split("-")[2])}?&checkin=${t.checkin?i()(t.checkin).format("YYYY-MM-DD"):i()().add(1,"days").format("YYYY-MM-DD")}&checkout=${t.checkout?i()(t.checkout).format("YYYY-MM-DD"):i()().add(2,"days").format("YYYY-MM-DD")}&guests=${e.get("guests")?e.get("guests"):1}&rooms=${e.get("rooms")?e.get("rooms"):1}&lat=${e.get("lat")?parseFloat(e.get("lat")):""}&lon=${e.get("lon")?parseFloat(e.get("lon")):""}&amenities=${e.get("amenities")?e.get("amenities"):""}&events=${e.get("events")?e.get("events"):""}&unavail=${e.get("unavail")?e.get("unavail"):""}&sortby=${e.get("sortby")?e.get("sortby"):""}&coupon=${e.get("coupon")?e.get("coupon"):""}`:void 0},c=(e,t,s)=>{var o,i,a,l;return"/search"===s?`/search=${e.get("location")||(null===(o=window.location.pathname)||void 0===o||null===(i=o.split("/")[2])||void 0===i?void 0:i.split("-")[2])}?checkin=${e.get("checkin")?e.get("checkin"):""}&checkout=${e.get("checkout")?e.get("checkout"):""}&guests=${t.guests}&rooms=${t.rooms}&lat=${e.get("lat")}&lon=${e.get("lon")}&amenities=${e.get("amenities")?e.get("amenities"):""}&events=${e.get("events")?e.get("events"):""}&unavail=${e.get("unavail")?e.get("unavail"):""}&sortby=${e.get("sortby")?e.get("sortby"):""}&coupon=${e.get("coupon")?e.get("coupon"):""}`:"villas"===s?`/villas/villas-in-${e.get("location")||(null===(a=window.location.pathname)||void 0===a||null===(l=a.split("/")[2])||void 0===l?void 0:l.split("-")[2])}?checkin=${e.get("checkin")?e.get("checkin"):""}&checkout=${e.get("checkout")?e.get("checkout"):""}&guests=${t.guests}&rooms=${t.rooms}&lat=${e.get("lat")}&lon=${e.get("lon")}&amenities=${e.get("amenities")?e.get("amenities"):""}&events=${e.get("events")?e.get("events"):""}&unavail=${e.get("unavail")?e.get("unavail"):""}&sortby=${e.get("sortby")?e.get("sortby"):""}&coupon=${e.get("coupon")?e.get("coupon"):""}`:void 0},r=(e,t,s)=>`${null===t||void 0===t?void 0:t.split("-in-")[0]}-in-${e.title}?lat=${e.latitude}&lon=${e.longitude}&checkin=${null!==s&&void 0!==s&&s.get("checkin")?i()(null===s||void 0===s?void 0:s.get("checkin")).format("YYYY/MM/DD"):""}&checkout=${null!==s&&void 0!==s&&s.get("checkout")?i()(null===s||void 0===s?void 0:s.get("checkout")).format("YYYY/MM/DD"):""}`,u=(e,t,s)=>`${s}?lat=${e.get("lat")?e.get("lat"):""}&lon=${e.get("lon")?e.get("lon"):""}&checkin=${t.checkin?i()(t.checkin).format("YYYY/MM/DD"):""}&checkout=${t.checkout?i()(t.checkout).format("YYYY/MM/DD"):""}`}}]);
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.