PageSourceSearch

https://guidesly.com/0d3af1a09a976b82aa4636a862f130c70fa85c1c-bb6586a7d46b24056aec.js

js guidesly.com collected 2026-10-02 04:57:13 UTC 14,616 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"6ab90d4d2597c0495eb880181613613c3d27146c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72452052-0898-4910-bd5d-baa334739a04",e._sentryDebugIdIdentifier="sentry-dbid-72452052-0898-4910-bd5d-baa334739a04")}catch(e){}}(),(self.webpackChunkguidesly_marketplace=self.webpackChunkguidesly_marketplace||[]).push([[9318,2208],{32208:function(e,t,a){a.r(t),a.d(t,{default:function(){return i}});var l=a(96540);const n="undefined"!=typeof window,s=()=>{n&&window.mapkit&&window.mapkit.init({authorizationCallback:function(e){e("eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlMzMkpSNDhRRlQifQ.eyJpc3MiOiJTTUNHNDc0MkdEIiwiaWF0IjoxNzc4MjE1NTg0LjIzOCwiZXhwIjoxNzkzOTk0Mzg0LjIzOH0.ruEFGJC4dSjGb7-m0Ns3cv8leRtpTy_yjIi6DToFscqVgA6qkPl4u7T3Suyx37fIQCWh9sCWF-hX5uxxpDrB1A")}})};var i=e=>{let t=e.renderMap;return(0,l.useEffect)(()=>{if("undefined"!=typeof window){try{const e=document.createElement("script");e.src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js",e.async=!0,e.onload=()=>{s()},document.body.appendChild(e)}catch(e){}if(t)new window.mapkit.Map("mapkit")}},[]),l.createElement("div",{id:"mapkit"})}},44582:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var l=a(96540),n=a(40961),s=a(87722),i=a(87222),o=a(23384),r=a(72308),d=a(47764),c=a(74353),u=a.n(c),m=a(86462),v=a(64810),f=a(85395),g=a(40539),p=a(38209),b=a(32208),y=a(52217),h=a(74866),E=a(76008),N=a(89090);var w=({reset:e,setReset:t,setAddress:a,address:n,alldetails:i,setAllDetails:o,from:r})=>{var d,c;const u=(0,m.useLocation)(),v=(0,l.useContext)(f.A),w=(0,l.useContext)(g.A),{0:C,1:D}=(0,l.useState)(n||""),{0:S,1:k}=(0,l.useState)([]),{0:A,1:_}=(0,l.useState)([]),{0:I,1:M}=(0,l.useState)(!1),{0:x,1:R}=(0,l.useState)(!1),{0:L,1:F}=(0,l.useState)([]),W=(0,l.useRef)();var Y=u.search.split("&");let z="",$="",T="";const H="undefined"!=typeof window,O=H&&(/Mobi|Android|iPad|iPhone|iPod/i.test(navigator.userAgent)||window.innerWidth<=800||((window.screen||{}).width||0)<=800);Y.filter(e=>{e.includes("city")&&(z=e.split("=")[1].replace(/%20/g," ")),e.includes("state")&&($=e.split("=")[1].replace(/%20/g," ")),e.includes("address")&&(T=e.split("=")[1].replace(/%20/g," "))});(0,l.useEffect)(()=>{var l;e?(D(""),a(""),t(!1)):v.clearSearch||!v.mapDrag&&!u.search.includes("mapDrag=true")||(v.setSearchedValue("Map Area"),D(l="Map Area"),a(l))},[e,u.search]);const V=async(e,t,l,n,s,r)=>{if(v.setLoadingMask(!0),e!==t)try{var d,c,u,m,f,g;if(!H||null===(d=window.google)||void 0===d||null===(c=d.maps)||void 0===c||!c.Geocoder)return;const e=new window.google.maps.Geocoder,t=await new Promise((t,a)=>{e.geocode({address:r},(e,l)=>{"OK"===l?t({results:e}):a(new Error(l))})});if(null==t||null===(u=t.results)||void 0===u||null===(m=u[0])||void 0===m||!m.geometry)return;const l=(null===(f=t.results[0])||void 0===f||null===(g=f.geometry)||void 0===g?void 0:g.location)||{},n=Number(l.lat())||0,s=Number(l.lng())||0;let b="",y="";(Array.isArray(t.results)?t.results:[]).forEach(function(e){e.address_components.forEach(function(e){e.types.forEach(function(t){switch(t){case"administrative_area_level_1":y=e.long_name;break;case"locality":b=e.long_name}})})}),b||(b=r),o({...i,city:b,state:y,address:r||"",latitude:n,longitude:s}),a(r||""),(p=v||{}).location.lat=Number.isNaN(n)?void 0:n,p.location.lng=Number.isNaN(s)?void 0:s,p.searchedCity=b,p.city=b,p.state=y,p.address=r,v.setLocation({lat:n,lng:s}),w.setGeoLocation({lat:n,lng:s})}catch(e){}else{const s=Number(l),d=Number(n);var p;o({...i,city:e,state:t,address:r||"",latitude:s,longitude:d}),a(r||""),v.setLocation({lat:s,lng:d}),w.setGeoLocation({lat:s,lng:d}),(p=v||{}).location.lat=Number.isNaN(s)?void 0:s,p.location.lng=Number.isNaN(d)?void 0:d,p.searchedCity=e,p.city=e,p.state=t,p.address=r,v.setLoadingMask(!0)}},X=e=>{var t,l;""===e?(a(null===(t=(0,N.X0)())||void 0===t?void 0:t.address),o({...i,address:null===(l=(0,N.X0)())||void 0===l?void 0:l.address}),_([]),R(!1)):R(!0);if(v.setMapDrag(!1),D(e),null!=e&&e.trim()){var n,s;if(H&&null!==(n=window)&&void 0!==n&&n.mapkit&&null!==(s=window.mapkit)&&void 0!==s&&s.Coordinate)if((null==e?void 0:e.trim().length)>=1&&"Map Area"!=e)try{const t=44.4499802,a=-103.7856,l=new window.mapkit.Coordinate(t,a),n=new window.mapkit.CoordinateSpan(.016,.016),s=new window.mapkit.CoordinateRegion(l,n);new window.mapkit.Search({region:s,includeAddresses:!0,includePointsOfInterest:!0,includeQueries:!1}).autocomplete(null==e?void 0:e.trim(),(t,a)=>{if(t)return;const l=(0,p.hz)(a.results,null==e?void 0:e.trim());0===l.length||_(l)})}catch(e){_([{citystate:"Record not found. Something went wrong"}])}else _([])}else{const t=A.filter(t=>-1!==t.citystate.toLowerCase().indexOf(e.toLowerCase()));_(t)}};(0,l.useEffect)(()=>(document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}),[]);const j=e=>{var t;null!==(t=W.current)&&void 0!==t&&t.contains(e.target)||R(!1)};return l.createElement("div",{className:E.wd,ref:W},l.createElement("input",{type:"text",onKeyUp:e=>{var t,a,l,n,s,i;"Enter"===e.key&&(null==C?void 0:C.length)>=1&&(e.target.blur(),D(null===(t=A[0])||void 0===t?void 0:t.citystate),V(null===(a=A[0])||void 0===a?void 0:a.city,null===(l=A[0])||void 0===l?void 0:l.state,null===(n=A[0])||void 0===n?void 0:n.latitude,null===(s=A[0])||void 0===s?void 0:s.longitude,0,null===(i=A[0])||void 0===i?void 0:i.display),R(!1))},id:"destination",autoComplete:"off",value:C,onChange:e=>X(e.target.value),placeholder:"Search Destination",onClick:()=>{R(!0),X(C)}}),u.pathname.includes("/search")&&O||"home-mobile"===r?l.createElement(s.In,{icon:h.e,size:16,className:C?"icon-cancel":"icon-cancel-hide",onClick:()=>{var e,t;D(""),a(null===(e=(0,N.X0)())||void 0===e?void 0:e.address),o({city:null,state:null,address:null===(t=(0,N.X0)())||void 0===t?void 0:t.address,latitude:null,longitude:null}),R(!1)}}):null,x&&"Map Area"!=C&&l.createElement("div",{className:A&&(null==A?void 0:A.length)>0&&null!==(d=A[0])&&void 0!==d&&null!==(c=d.citystate)&&void 0!==c&&c.includes("went wrong")||0===(null==A?void 0:A.length)||C.length<1?`${E.F_}`:`${E.F_}  ${E.hj}`,style:{maxHeight:300}},l.createElement("div",{className:E.xw},A.map((e,t)=>{var a;return l.createElement("div",{key:t},l.createElement("p",{onClick:()=>{D(e.citystate),V(e.city,e.state,e.latitude,e.longitude,0,e.display),R(!1)}},!(null!==(a=e.citystate)&&void 0!==a&&a.includes("went wrong"))&&l.createElement(s.In,{icon:y.I,className:E.V,size:18})," ",e.citystate))}),A&&0===A.length&&l.createElement("p",{style:{textAlign:"center"}},"No Matches Found"))),l.createElement(b.default,null))},C=a(63674),D=a(15179);const S={city:null,state:null,address:null,latitude:null,longitude:null};var k=({close:e,handleSearch:t,from:a,setZoomCount:c}
1)=>{const g=(0,l.useContext)(f.A),b=(0,l.useContext)(D.A),{0:y,1:h}=(0,l.useState)({tab1:!0,tab2:!1,tab3:!1}),{0:E,1:k}=(0,l.useState)(g.datefromHome&&""!=g.datefromHome?u()(g.datefromHome).toDate():null),{0:A,1:_}=(0,l.useState)(g.searchedValue),{0:I,1:M}=(0,l.useState)(S),{0:x,1:R}=(0,l.useState)(g.count?g.count:0),{0:L,1:F}=(0,l.useState)(0),{0:W,1:Y}=(0,l.useState)(!1),{0:z,1:$}=(0,l.useState)(!0),{0:T,1:H}=(0,l.useState)(!1),O=((0,m.useLocation)(),(0,l.useRef)());(0,l.useEffect)(()=>{var e,t;const a=(0,N.gs)();null!=a&&a.startDate&&(null!==(e=u()(null==a?void 0:a.startDate))&&void 0!==e&&e.isSame(u()(),"day")||null!==(t=u()(null==a?void 0:a.startDate))&&void 0!==t&&t.isAfter(u()(),"day"))&&(g.setDateFromHome(null==a?void 0:a.startDate),k(u()(null==a?void 0:a.startDate).toDate())),g.setCount((null==a?void 0:a.guest)||0),R((null==a?void 0:a.guest)||0)},[]),(0,l.useEffect)(()=>{_(g.searchedValue)},[g.searchedValue]);const V=()=>{O.current.classList.add(C.jD),setTimeout(()=>{e()},350)};(0,l.useEffect)(()=>{null!=I&&I.state||""==I.state||I.address||""==I.address||M({city:g.searchedCity,state:g.searchedState,address:g.searchedValue,latitude:g.location.lat,longitude:g.location.lng})},[g.location,g.searchedValue,g.searchedState]),(0,l.useEffect)(()=>{Number(x+L)>0&&g.setCount(Number(x+L))},[x,L]);const X={Adults:{count:x,setCount:R,min:0},Children:{count:L,setCount:F,min:0}},j=(e,t)=>l.createElement("div",{key:e,className:C.tI},l.createElement("div",{className:C.XT},l.createElement("div",null,e),l.createElement("div",null,t)),l.createElement("div",{className:C.OF},l.createElement("button",{type:"button",id:"group-size-decrement",className:C.ZE,disabled:X[e].count===X[e].min,onClick:()=>X[e].count>X[e].min&&X[e].setCount(X[e].count-1)},l.createElement(s.Ay,{icon:i.R})),l.createElement("span",{className:C.form__guest__count},X[e].count),l.createElement("button",{type:"button",id:"group-size-increment",className:C.ZE,onClick:()=>X[e].setCount(X[e].count+1)},l.createElement(s.Ay,{icon:o.t})))),P={latitude:I.latitude,longitude:I.longitude,page:1,address:I.address,zoom:null,city:null,state:null,ne_lat:null,ne_lng:null,sw_lat:null,sw_lng:null,mapDrag:null,startDate:E?u()(E).format("YYYY-MM-DD"):null,guest:Number(x+L)},G=()=>{const{city:e,state:t,address:a,latitude:l,longitude:n}=I;let s=P;return e||e===t||(s={...s,address:a,latitude:l,longitude:n}),t||(s={...s,address:a,latitude:l,longitude:n}),null!==E&&(s={...s,startDate:E?u()(E).format("YYYY-MM-DD"):null}),s={...s,guest:Number(x+L)},g.searchPagination&&(s={...s,page:1}),e===t&&(s={...s,city:null}),""===t&&""===a&&(s={...s,latitude:null,longitude:null}),s},J=()=>{g.setSearchedCity(I.city?I.city:""),g.setSearchedState(I.state?I.state:""),g.setSearchedValue(A||"")},Q=()=>{if(g.clearSearch){let e=P;(()=>{const{city:e,state:t,address:a}=I;g.setEndDate(null),g.setDateFromHome(null),g.setStartDate(null),g.setSearchedValue(e||""),g.setSearchedCity(t||""),g.setSearchedState(a||""),g.setCount(0)})(),t(e),V(),g.setClearSearch(!1)}else{J();let e=G();t(e),V(),g.setClearSearch(!1)}};let q={unavailablity:[{before:new Date}],Avail:[{after:new Date}],today:new Date};const Z=l.createElement("div",{ref:O,className:C.sI},l.createElement("div",{className:C.b},l.createElement("button",{type:"button",className:C.VN,onClick:V},l.createElement("span",{"aria-hidden":"true"},"×")),l.createElement("div",{className:C.DD},"Find Your Trip")),l.createElement("div",{className:C.kR},l.createElement("div",{className:`${C.f1} ${C.Tb}`,style:{position:"relative"}},l.createElement("div",{className:C.Ri,style:y.tab1?{display:"none"}:{display:"flex"},onClick:()=>h({tab1:!0,tab2:!1,tab3:!1})},l.createElement("div",{className:C.cards__item__label},"Where"),l.createElement("div",{className:C.Sy},A||"I'm flexible")),l.createElement("div",{className:C.AW,style:y.tab1?{display:"block"}:{display:"none"}},l.createElement("div",{className:C.mp},"Where to?"),l.createElement("div",{className:C.IH,style:{padding:"0px 20px"}},l.createElement("span",null,l.createElement(s.Ay,{icon:r.$,className:"Searchicon",size:20})),l.createElement(w,{reset:W,setReset:Y,from:"home-mobile",setAddress:_,address:A,alldetails:I,setAllDetails:M})))),l.createElement("div",{className:`${C.f1} ${C.el}`},!y.tab2&&l.createElement("div",{className:C.Ri,onClick:()=>h({tab1:!1,tab2:!0,tab3:!1})},l.createElement("div",{className:C.cards__item__label},"When"),l.createElement("div",{className:C.Sy},E?u()(E).format("MMM D"):T?"I'm flexible":"Add dates")),y.tab2&&l.createElement("div",{className:C.AW},l.createElement("div",{className:C.mp},"When's your trip?"),l.createElement("div",{className:C.vL},l.createElement("div",{className:C.RT},l.createElement("button",{onClick:()=>{$(!z),H(!T)},className:z?C.fX:C.WF},"Choose Date"),l.createElement("button",{onClick:()=>($(!z),H(!T),h({tab1:!1,tab2:!1,tab3:!0}),k(null),g.setEndDate(null),g.setDateFromHome(null),void g.setStartDate(null)),className:T?C.fX:C.WF}," I'm flexible"))),z&&l.createElement(l.Fragment,null,l.createElement("div",{className:`${C.IH} customSearch`,style:{padding:0,border:"none"}},l.createElement(d.DayPicker,{defaultMonth:E&&""!=E?u()(E).toDate():new Date,fromMonth:new Date,modifiers:q,modifiersStyles:{unavailablity:{color:"lightgrey ",cursor:"pointer",fontWeight:600,background:"#f5f5f5",border:"1px solid #eee",pointerEvents:"none "},Avail:{color:"black ",cursor:"pointer",fontWeight:600,border:"1px solid  #eee"},day:{border:"1px solid #eee",borderRadius:" 0 !important",fontWeight:600,margin:0}},selected:""!=E?u()(E).toDate():null,onDayClick:e=>{const t=e?u()(e).format("YYYY-MM-DD"):null;g.setEndDate(u()(e).format("YYYY-MM-DD")),g.setDateFromHome(t),g.setStartDate(t),k(e),h({tab1:!1,tab2:!1,tab3:!0})},numberOfMonths:1,pagedNavigation:!0})),l.createElement("div",{className:C.qX,onClick:()=>{k(""),g.setEndDate(null),g.setDateFromHome(null),g.setStartDate(null)}},"Clear")))),l.createElement("div",{className:`${C.f1} ${C.q7}`},!y.tab3&&l.createElement("div",{className:C.Ri,onClick:()=>h({tab1:!1,tab2:!1,tab3:!0})},l.createElement("div",{className:C.cards__item__label},"Who"),l.createElement("div",{className:C.Sy},Number(x)+Number(L)>0?Number(x)+Number(L)>1?`${Number(x)+Number(L)} guests`:"1 guest":"Add guests")),y.tab3&&l.createElement("div",{className:C.AW},l.createElement("div",{className:C.mp},"Who's coming?"),l.createElement("div",{className:C.IH,style:{padding:0,border:"none",flexDirection:"column"}},j("Adults","Ages 13 or above"),j("Children","Ages 2-12"))))),l.createElement("div",{className:C.qr},l.createElement("div",{className:C.JR,onClick:()=>{k(""),_("");const e=localStorage.getItem("currentlocation"),t=e?JSON.parse(e):{},a=null!=t&&t.address?t:S;M(a),R(0),F(0),_(""),g.setClearSearch(!0),g.setMapDrag(!1),Y(!0),h({tab1:!1,tab2:!1,tab3:!1})}},"Clear all"),l.createElement("div",null,l.createElement("button",{className:`${C.Cd} btn btn--blue--solid`,onClick:e=>{a&&"searchpage"===a?Q():(g.setClearSearch(!1),(e=>{var t;e.preventDefault(),J();let a=G();const l={...b.searchQuery,...a};if(b.setSearchQuery(l),"undefined"!=typeof window&&"map area"!=(null===(t=l.address)||void 0===t?void 0:t.toLowerCase())&&window.localStorage.setItem("searchGuides",JSON.stringify(l)),c&&c(0),a){const e=(0,p.KL)({...l}),t=new URLSearchParams(e),a=t&&t.toString()||"";let n="/search";a&&(n=`${n}?${a}`),(0,v.oo)(n),V()}})(e))}},l.createElement("span",null,l.createElement(s.Ay,{icon:r.$,className:"Searchicon",size:18,style:{color:"white",paddingRight:"10px"}})),"Search"))));return"undefined"!=typeof document?(0,n.createPortal)(Z,document.body):Z}}}]);
2//# sourceMappingURL=0d3af1a09a976b82aa4636a862f130c70fa85c1c-bb6586a7d46b24056aec.js.map

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.