PageSourceSearch

https://guidesly.com/component---src-pages-search-js-fa4a8d8c39203c7ef2e3.js

js guidesly.com collected 2026-10-02 04:53:40 UTC 28,396 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]="67452467-8d70-4b78-8515-73fa97f1d775",e._sentryDebugIdIdentifier="sentry-dbid-67452467-8d70-4b78-8515-73fa97f1d775")}catch(e){}}(),(self.webpackChunkguidesly_marketplace=self.webpackChunkguidesly_marketplace||[]).push([[55],{37730:function(e,t,a){a.r(t),a.d(t,{default:function(){return Ce}});var l=a(96540),n=a(86462),r=a(45137),i=a(51761),o=a(82019),s=a(77528),c=a(87722),u=a(63450),d=a(96007),m=a(64810),v=a(85395),h=a(4938),p=a(76008),g=a(59381),y=a(89090),b=a(32794),w=a(86344),f=a(26243),E=a(74353),S=a.n(E),C=a(72308),N=a(44582),k=a(63904),_=a(31220),x=a(25712),M=a(63428),L=a(47899),A=a(2613),P=a(86798);const T="--search-header-height",Q=(0,A.A)("downloadBlueIcon.png",{version:"mpv1"}),B=a(90445);S().extend(B);const D=(0,d.Ay)(()=>Promise.all([a.e(1869),a.e(2408)]).then(a.bind(a,76281))),$="undefined"!=typeof window;var O=({searchQuery:e={},Mobile:t,setSearchQuery:a,setZoomCount:n})=>{const r=(0,l.useContext)(v.A),i=(0,l.useRef)(null),o=(0,l.useRef)(null),{0:s,1:u}=(0,l.useState)(!1),{0:d,1:E}=(0,l.useState)(!1),{0:A,1:B}=(0,l.useState)(!1);(0,l.useEffect)(()=>(e=>{if(!e)return()=>{};const t=e.closest("#Search")||e,a=()=>{const a=e.offsetHeight;a>0&&t.style.setProperty(T,`${a}px`)};if(a(),"undefined"==typeof ResizeObserver)return()=>t.style.removeProperty(T);const l=new ResizeObserver(a);return l.observe(e),()=>{l.disconnect(),t.style.removeProperty(T)}})(o.current),[]);const O=()=>{if(!(0,y.M3)())return!1;const e=(0,y.HW)();return!(!e||!0===e.isguest)&&Boolean(e.isconsumer&&!e.isguide&&!e.is_padi_guide)},I=()=>{var e;const t=null===(e=(0,y.HW)())||void 0===e?void 0:e.guidepic;return t&&""!==t?`https://dlsmyzcs6vrg4.cloudfront.net/${(0,y.kb)(t)}`:null},G=()=>B(e=>!e);(0,l.useEffect)(()=>{const e=e=>{var t,a,l;A&&(null!==(t=i.current)&&void 0!==t&&t.contains(e.target)||null!==(a=(l=e.target).closest)&&void 0!==a&&a.call(l,"[data-search-profile-menu]")||B(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[A]);const H=["activity_type","trip_type","advanced_filter","species","start_time","min_rate","max_rate","min_time","max_time","currency","benifits"],W=(e={})=>{n(0),a((t={})=>{var a;const l=(0,L.zb)(t,{...e,page:1,mapDrag:!1,ne_lat:null,ne_lng:null,sw_lat:null,sw_lng:null,zoom:null});return null!=e&&e.guest||delete l.guest,((e,t={})=>{H.forEach(a=>{const l=e[a],n=t[a],r=null==l||""===l||Array.isArray(l)&&0===l.length,i=null!=n&&""!==n&&!(Array.isArray(n)&&0===n.length);r&&i&&(e[a]=n)})})(l,t),"undefined"!=typeof window&&"map area"!==(null==l||null===(a=l.address)||void 0===a?void 0:a.toLowerCase())&&window.localStorage.setItem("searchGuides",JSON.stringify(l)),l})};return l.createElement("header",{ref:o,className:`${p.Y9} ${p.eb}`},d&&l.createElement("div",{className:p.au,"aria-hidden":"true"}),l.createElement("div",{className:p.KE},l.createElement("div",{className:p.xt},l.createElement("div",null,l.createElement("div",null,l.createElement(m.N_,{to:"/"},l.createElement("div",{className:p.gu},l.createElement(h.A,{from:"search"})))),l.createElement("div",{className:p.un},l.createElement(M.A,{variant:"searchPage",searchQuery:e,onSearchSubmit:W,onOverlayChange:E}))),l.createElement("div",{className:p.H5},(0,_.W)()&&l.createElement(k.A,{link2:x.Fg,activeNavItem:x.Tq,rightBorder:x.lh,navItem:x.pc,logotitle2:x.Eq}),l.createElement("div",{className:g.profileMenuWrapper,ref:i},(()=>{if(!(0,y.M3)())return!1;const e=(0,y.HW)();return!0!==(null==e?void 0:e.isguest)})()?l.createElement("button",{type:"button",className:g.loggedInProfileBtn,"aria-label":"Profile","aria-expanded":A,onClick:G},l.createElement("span",{className:g.profileGreeting},(()=>{var e,t;const a=null===(e=(0,y.HW)())||void 0===e||null===(t=e.firstname)||void 0===t?void 0:t.trim();return a?`Hi, ${a}`:"Hi"})()),I()?l.createElement("img",{src:I(),alt:"",className:g.profileAvatar,width:32,height:32}):l.createElement("span",{className:g.profileAvatarInitial,"aria-hidden":"true"},(()=>{var e,t;const a=null===(e=(0,y.HW)())||void 0===e||null===(t=e.firstname)||void 0===t?void 0:t.trim();return a?a.charAt(0).toUpperCase():"?"})())):l.createElement("button",{type:"button",className:g.iconBtn,"aria-label":"Profile","aria-expanded":A,onClick:G},l.createElement("img",{src:(0,P.l)("mpv1/navbar/navbar_usericon.svg"),alt:"Guidesly Profile",width:"29",height:"29",className:g.exploreDefault}),l.createElement("img",{src:(0,P.l)("mpv1/navbar/navbar_usericon_blue.svg"),alt:"Guidesly Profile",width:"29",height:"29",className:g.exploreHover})),A&&!O()&&l.createElement("div",{className:g.profileMenuDropdown,"data-search-profile-menu":!0},(z=B,O()||(0,y.M3)()&&!0!==(null===(R=(0,y.HW)())||void 0===R?void 0:R.isguest)?l.createElement(b.A,{setIsOpen:z}):l.createElement(w.A,{setIsOpen:z})))))),A&&O()&&l.createElement("div",{className:g.loggedInProfileDropdown,"data-search-profile-menu":!0},l.createElement(f.A,{setIsOpen:B})),s&&l.createElement(N.default,{close:()=>u(!1),setZoomCount:n,from:"searchpage",handleSearch:W}),l.createElement(D,{show:r.modalShow,onHide:()=>{r.setModalShow(!1),r.setForgotPassword(!1),r.setSignupShow(!1),t||setTimeout(()=>{window.scrollTo(0,0)},500)}})),l.createElement("div",{className:p.OF},l.createElement(m.N_,{to:"/",title:"Guidesly Home","aria-label":"Guidesly Home",className:p.KQ},l.createElement(h.A,null)),l.createElement("div",{className:p.Fy},(0,_.W)()&&l.createElement(k.A,{link2:x.Fg,activeNavItem:x.Tq,rightBorder:x.lh,navItem:x.pc,logotitle2:x.Eq}),l.createElement("button",{type:"button",className:p.hc,onClick:()=>
1{if(!$)return;const e=navigator.userAgent||navigator.vendor||window.opera,t=/android/i.test(e),a=/iPhone|iPad|iPod/i.test(e);if(!t&&!a)return;const l=a?"https://apps.apple.com/us/app/guidesly-fishing-trips/id1529299568":"https://play.google.com/store/apps/details?id=com.guidesly",n=setTimeout(()=>{window.location.href=l},2e3),r=()=>clearTimeout(n);window.addEventListener("blur",r);const i=document.createElement("iframe");i.style.display="none",i.src="guidesly://",document.body.appendChild(i),setTimeout(()=>{document.body.removeChild(i),window.removeEventListener("blur",r)},3e3)}},l.createElement("p",{className:p.Hk},"Open App"),l.createElement("img",{src:Q.src,onError:Q.onError,alt:"download",className:p.TD})))),l.createElement("div",{className:p.sm,style:{marginTop:"10px"}},l.createElement("div",{className:"SubMenuBar HomeMobileBar filterGuides-module--searchText--a9c9f filterGuides-module--mobileView--5340e mobileSearchBar",onClick:()=>{r.setHoverCardId(""),u(!0)}},l.createElement("div",{className:"searchText mobileSearchTextSection",style:{width:"65%"}},l.createElement("div",null,!0===(null==e?void 0:e.mapDrag)||"true"===(null==e?void 0:e.mapDrag)?"Map Area":null!=e&&e.address?e.address:"Anywhere"),l.createElement("div",{style:{display:"flex",alignItems:"center"}},`${null!=e&&e.startDate?S()(null==e?void 0:e.startDate).format("MMM D"):"Anytime"}`,l.createElement("span",{className:"filterGuides-module--point--eae45"})," "+(null!=e&&e.guest&&(null==e?void 0:e.guest)>1?`${null==e?void 0:e.guest} guests`:"Any Group Size"))),l.createElement("span",{className:"iconContainer mobileSearchIconContainer"},l.createElement(c.Ay,{icon:C.$,className:"Searchicon1",size:20})))));var z,R},I=a(15179),G=(a(56908),a(94683),a(57465)),H=a(13225);var W=({options:e=[],value:t="",onChange:a,placeholder:n="Select...",className:r="",styles:i={},showDone:o=!1,showClear:s=!0,label:u="Select",defaultValue:d="",icon:m=null,iconSrc:v,iconWidth:h=16,iconHeight:p=16,total:g=0,hideSelectedLabel:y=!1,fullWidth:b=!0,buttonClassName:w,activeButtonClassName:f="",variant:E="default"})=>{var S;const{0:C,1:N}=(0,l.useState)(!1),{0:k,1:_}=(0,l.useState)(!1),{0:x,1:M}=(0,l.useState)(t),L=(0,l.useRef)(null),A="sort"===E,P=A?k:C;(0,l.useEffect)(()=>{M(t)},[t]);const T=()=>{N(!1),A||_(!1)},Q=()=>{M(t),T()};(0,l.useEffect)(()=>{if(!A||!k||C)return;const e=window.setTimeout(()=>_(!1),280);return()=>window.clearTimeout(e)},[A,k,C]),(0,l.useEffect)(()=>{const e=e=>{L.current&&!L.current.contains(e.target)&&(A?Q():N(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[A,t]);const B=null===(S=e.find(e=>e.value===x))||void 0===S?void 0:S.label,D=w||G.customSelectBtn,$=y?u:`${u}${B?` ${B.toLowerCase()}`:""}`,O=l.createElement(l.Fragment,null,s&&!A&&l.createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},l.createElement("button",{className:"btn btn-link p-0 text-primary",onClick:()=>{M(d),a(d)}},"Clear")),l.createElement("div",null,e.map(e=>l.createElement("div",{key:e.value,className:"form-check mb-1 pl-0 p-1 "+(A?"CustomSelect-module--sortOption--88c58":"CustomSelect-module--optionLabel--e4cd7")},l.createElement("input",{className:"form-check-input CustomSelect-module--hiddenInput--a9054",type:"radio",name:"customSelect",value:e.value,id:e.value,checked:x===e.value,onChange:e=>{return t=e.target.value,M(t),void(A||a(t));var t}}),l.createElement("label",{className:"form-check-label CustomSelect-module--optionLabelContent--1786c "+(A?"CustomSelect-module--sortOptionLabel--2df74":""),htmlFor:e.value},l.createElement("span",null,e.label),x===e.value&&l.createElement("span",{className:A?"CustomSelect-module--checkBadge--05598":void 0,"aria-hidden":"true"},l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},l.createElement("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))))))),(o||A)&&l.createElement("div",{className:A?"CustomSelect-module--applyWrap--8bd1f":"text-end"},l.createElement("button",{type:"button",className:A?"CustomSelect-module--applyBtn--a5d25":"btn btn-primary rounded-pill px-4",onClick:()=>
1{a(x),T()}},A?"Apply":"Done")));return l.createElement("div",{className:"position-relative d-inline-block",style:{width:b?"100%":"auto"},ref:L},l.createElement("button",{type:"button",className:` ${D}  ${g&&g>0&&!C&&H.Sw} ${C&&f?f:""} ${w?"":"rounded-pill"} ${r}`,style:i,"aria-expanded":C,"aria-haspopup":"listbox",onClick:()=>{C?A?Q():N(!1):(A&&_(!0),N(!0))}},v?l.createElement("img",{src:v,alt:"",width:h,height:p,"aria-hidden":"true"}):m&&l.createElement(c.In,{icon:m,className:w?void 0:"me-2"}),$),P&&(A?l.createElement("div",{className:"CustomSelect-module--sortDropdownClip--f689b"},l.createElement("div",{className:"CustomSelect-module--sortDropdownPanel--4ceeb "+(C?"CustomSelect-module--sortDropdownOpen--a61c5":"CustomSelect-module--sortDropdownClose--81c8e"),role:"listbox",onAnimationEnd:e=>{e.target===e.currentTarget&&(C||_(!1))}},O)):l.createElement("div",{className:"position-absolute bg-white rounded p-1 CustomSelect-module--dropdownPanel--5b54d",role:"listbox"},O)))},z=a(23320);const R=({blackSrc:e,whiteSrc:t,mouseoverSrc:a,size:n=18})=>l.createElement("span",{className:"SegmentedTabs-module--iconWrap--0f9af","aria-hidden":"true"},l.createElement("img",{src:e,alt:"",width:n,height:n,className:"SegmentedTabs-module--iconBlack--6ac8d"}),a?l.createElement("img",{src:a,alt:"",width:n,height:n,className:"SegmentedTabs-module--iconMouseover--02642"}):null,l.createElement("img",{src:t,alt:"",width:n,height:n,className:"SegmentedTabs-module--iconWhite--c0609"}));var F=({options:e=[],value:t,onChange:a,className:n="",iconSize:r=18,"data-testid":i,"aria-label":o})=>{const{0:s,1:c}=(0,l.useState)(""),{0:u,1:d}=(0,l.useState)(0),m=Math.max(0,e.findIndex(e=>e.value===t));return l.createElement("div",{className:`SegmentedTabs-module--root--36d13 ${n}`.trim(),style:{"--tab-count":e.length||2,"--tab-index":m,"--thumb-from":u,"--thumb-to":m},"data-testid":i,"data-active":t,"aria-label":o},l.createElement("span",{className:"SegmentedTabs-module--thumb--23cc7 "+("right"===s?"SegmentedTabs-module--thumbTravelRight--403c7":"left"===s?"SegmentedTabs-module--thumbTravelLeft--7c584":""),"aria-hidden":"true",onAnimationEnd:()=>c("")}),e.map(n=>l.createElement("button",{key:n.value,type:"button",className:"SegmentedTabs-module--btn--a4e4c","aria-pressed":t===n.value,"aria-label":n.ariaLabel||n.label,onClick:()=>(l=>{const n=e.findIndex(e=>e.value===l);l!==t&&-1!==n&&(d(m),c(n>m?"right":"left")),null==a||a(l)})(n.value)},n.icon||(n.blackSrc&&n.whiteSrc?l.createElement(R,{blackSrc:n.blackSrc,whiteSrc:n.whiteSrc,mouseoverSrc:n.mouseoverSrc,size:r}):null),n.label)))};const V=(0,P.l)("filter_icon.svg"),j=(0,P.l)("sort_icon.svg"),Y=(0,P.l)("experience_black_icon.svg"),q=(0,P.l)("experience_white_icon.svg"),J=(0,P.l)("company_black_icon.svg"),U=(0,P.l)("company_white_icon.svg"),X=(0,P.l)("search_map_icon_black.svg"),Z=(0,P.l)("search_map_icon_white.svg"),K=(0,P.l)("search_map_icon_black_mouseover.svg"),ee=[{value:"experience",label:"Experience",ariaLabel:"View by Experience",blackSrc:Y,whiteSrc:q},{value:"company",label:"Company",ariaLabel:"View by Company",blackSrc:J,whiteSrc:U}],te=[{value:"collapse",label:"Collapse",ariaLabel:"Collapse map",blackSrc:X,whiteSrc:Z,mouseoverSrc:K},{value:"expand",label:"Expand",ariaLabel:"Expand map",blackSrc:X,whiteSrc:Z,mouseoverSrc:K}],ae=[{value:"recommended",label:"Recommended"},{value:"price_low_to_high",label:"Price: Low to High"},{value:"price_high_to_low",label:"Price: High to Low"},{value:"rating",label:"Guest Rating"},{value:"reviews_count",label:"Number of Reviews"}];var le=({searchQuery:e,setSearchQuery:t,mapExpanded:a=!1,onMapLayoutChange:n})=>{const r=(0,l.useContext)(v.A),i=(0,l.useContext)(I.A),o=e||(null==i?void 0:i.searchQuery)||{},s=t||(null==i?void 0:i.setSearchQuery),c="company"===r.viewBy?"company":"experience",u=a?"expand":"collapse";return l.createElement("div",{className:`${G.searchToolbar} searchListMapLayout-module--searchToolbarColumn--62cc5`},l.createElement("div",{className:G.searchToolbarActions},l.createElement(F,{options:ee,value:c,onChange:e=>{r.setViewBy(e),s({...o,page:1,viewBy:e})},"data-testid":"view-toggle","aria-label":"View by"}),l.createElement(W,{options:ae,value:(null==o?void 0:o.sortBy)||"recommended",onChange:e=>{s({...o,sortBy:e,page:1})},placeholder:"Sort",label:"Sort",defaultValue:"recommended",showClear:!1,hideSelectedLabel:!0,fullWidth:!1,variant:"sort",iconSrc:j,iconWidth:15,iconHeight:15,buttonClassName:G.searchToolbarActionBtn,activeButtonClassName:G.searchToolbarActionBtnActive,total:null!=o&&o.sortBy&&"recommended"!==o.sortBy?1:0}),l.createElement(z.A,{searchQuery:o,setSearchQuery:s,alwaysVisible:!0,buttonClassName:G.searchToolbarActionBtn,iconSrc:V,iconWidth:16,iconHeight:16})),l.createElement("div",{className:"searchListMapLayout-module--searchMapLayoutToggle--f8781"},l.createElement(F,{options:te,value:u,onChange:e=>null==n?void 0:n("expand"===e),"data-testid":"map-layout-toggle","aria-label":"Map layout"})))},ne=a(38798);var re=()=>{const e=(0,n.useLocation)(),t=(0,l.useState)(null),a=t[0],r=t[1];return(0,l.useEffect)(()=>{const t=new URLSearchParams(e.search),a=ne.A.parse(e.search),l=t.get("q"),n=t.get("address"),i=l||(a||null);if(i){let e={address:n||(null!=i&&i.city||null!=i&&i.state?(((null==i?void 0:i.city)||"")+" "+((null==i?void 0:i.state)||"")).trim():null),latitude:(null==i?void 0:i.latitude)||null,longitude:(null==i?void 0:i.longitude)||null,startDate:null!=i&&i.startDate?S()(null==i?void 0:i.startDate).format("YYYY-MM-DD"):null,guest:Number(null==i?void 0:i.guest)||0,city:(null==i?void 0:i.city)||null,state:(null==i?void 0:i.state)||null,category:null!=i&&i.activity_type?null:(null==i?void 0:i.category)||"alltrips",min_rate:(null==i?void 0:i.min_rate)||null,max_rate:(null==i?void 0:i.max_rate)||null,activity_type:(null==i?void 0:i.activity_type)||null,trip_type:(null==i?void 0:i.trip_type)||null,min_time:(null==i?void 0:i.min_time)||null,max_time:(null==i?void 0:i.max_time)||null,species:(null==i?void 0:i.species)||null,start_time:(null==i?void 0:i.start_time)||null,benifits:(null==i?void 0:i.benifits)||null,reviews:(null==i?void 0:i.reviews)||null,ne_lat:(null==i?void 0:i.ne_lat)||null,
1ne_lng:(null==i?void 0:i.ne_lng)||null,sw_lat:(null==i?void 0:i.sw_lat)||null,sw_lng:(null==i?void 0:i.sw_lng)||null,zoom:(null==i?void 0:i.zoom)||null,mapDrag:!0===(null==i?void 0:i.mapDrag)||"true"===(null==i?void 0:i.mapDrag),page:(null==i?void 0:i.page)||1,advanced_filter:!0===(null==i?void 0:i.advanced_filter)||"true"===(null==i?void 0:i.advanced_filter),sortBy:(null==i?void 0:i.sortBy)||"recommended",viewBy:(null==i?void 0:i.viewBy)||null,filter:(null==i?void 0:i.filter)||null,resolveLocation:"true"===(null==i?void 0:i.resolveLocation)||!0===(null==i?void 0:i.resolveLocation)};r(e)}},[e.search]),a},ie=a(38209),oe=a(60436),se=a(39595);var ce=e=>{let t=e.unscroll,a=e.handleSearchPageChange;const n=(0,l.useContext)(v.A),r=(0,l.useState)({limit:20,active:1,numPages:5}),i=r[0],o=r[1];(0,l.useEffect)(()=>{o(n.searchPagination)},[n.searchPagination]);const s=e=>{let l=!t;const r="undefined"!=typeof window;a(e),n.setPageChanged(!0),r&&l&&window.scrollTo({top:0,behavior:"smooth",block:"center"})};let c,u;i.numPages<=5?(c=1,u=i.numPages):i.active<=3?(c=1,u=5):i.active+2>=i.numPages?(c=i.numPages-4,u=i.numPages):(c=i.active-2,u=i.active+2);let d=(0,oe.A)(Array(u+1-c).keys()).map(e=>c+e);return l.createElement("div",{className:se.$r+" "+se.$b},l.createElement("div",{className:se.Mu},l.createElement("div",{className:se.X$},l.createElement("ul",null,1!=i.active&&i.numPages>5&&l.createElement("li",null,l.createElement("button",{onClick:()=>s(1)},"First")),1!=i.active&&l.createElement("li",null,l.createElement("button",{onClick:()=>s(i.active-1)},"<")),d.map((e,t)=>l.createElement("li",{key:t},l.createElement("button",{className:Number(i.active)===e?se.vu:"",onClick:()=>s(e)},e))),i.active!=i.numPages&&l.createElement("li",null,l.createElement("button",{onClick:()=>s(i.active+1)},">")),i.active!=i.numPages&&i.numPages>5&&l.createElement("li",null,l.createElement("button",{onClick:()=>s(i.numPages)},"Last"))))))},ue=a(89359),de=a(79401);const me="undefined"!=typeof window,ve=()=>me&&window.innerWidth<=767;var he=()=>{const e=(0,l.useState)(ve),t=e[0],a=e[1];return(0,l.useEffect)(()=>{if(!me)return;const e=()=>{a(window.innerWidth<=767)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t},pe=a(47918),ge=a(91797);const ye=(0,d.Ay)(()=>Promise.all([a.e(1869),a.e(9153),a.e(9071)]).then(a.bind(a,80621))),be=(0,d.Ay)(()=>Promise.all([a.e(1869),a.e(9578),a.e(1556),a.e(9760)]).then(a.bind(a,69760))),we=(0,d.Ay)(()=>Promise.all([a.e(1869),a.e(3139),a.e(2022),a.e(9578),a.e(8005),a.e(1371)]).then(a.bind(a,1022)),{fallback:l.createElement("div",{style:{width:"100%",height:"100vh",aspectRatio:"1350 / 940"}})}),fe="undefined"!=typeof window,Ee=(e={})=>{const t=(0,de.Sw)();return t?{...e,address:t.address,latitude:t.latitude,longitude:t.longitude,page:e.page||1,mapDrag:!1}:null};var Se=()=>{var e,t,a,d,m,h,p,g;const b=(0,ie.gW)(),w=(0,pe.G)(),f=(0,n.useLocation)(),{0:E,1:S}=(0,l.useState)(fe&&window.innerWidth<=767),{0:C,1:N}=(0,l.useState)(!1),k=(0,l.useContext)(I.A),_=(0,l.useContext)(v.A),{0:x,1:M}=(0,l.useState)(!1),{0:A,1:P}=(0,l.useState)(0),{0:T,1:Q}=(0,l.useState)(!1);let B=re(),D=he();(0,l.useEffect)(()=>{var e;const{setSearchQuery:t}=k||{},a=(0,y.gs)();if(!(B||null!=f&&f.search))return void k.setSearchQuery({page:1,category:"alltrips",zoom:null,ne_lat:null,ne_lng:null,sw_lat:null,sw_lng:null,mapDrag:null,startDate:null,guest:1});if(!B){var l;if(a&&(null===(l=Object.keys(a))||void 0===l?void 0:l.length)>1&&null!=a&&a.address){const e=(0,de.TC)(f.search);null==t||t({...a,...e?{viewBy:e}:{}}),Q(!0)}return}if(((null==B?void 0:B.address)||(null==B?void 0:B.city)||(null==B?void 0:B.state)||(null==B?void 0:B.latitude))&&!(0,de.l9)(B))return null==t||t(B),null!=B&&B.address&&(_.setSearchedValue(B.address),_.setMapDrag(!0===B.mapDrag||"true"===B.mapDrag),null!=B.latitude&&null!=B.longitude&&_.setLocation({lat:Number(B.latitude),lng:Number(B.longitude)})),void Q(!0);const n=Object.fromEntries(Object.entries(B).filter(([e,t])=>null!=t&&""!==t&&!1!==t));if(null!=B&&B.resolveLocation||(0,de.l9)(B)){const e=Ee(n);return e?(delete e.resolveLocation,null==t||t(e),_.setSearchedValue(e.address),_.setMapDrag(!1),_.setLocation({lat:Number(e.latitude),lng:Number(e.longitude)}),void Q(!0)):(null==t||t({page:1,guest:1,...n}),void Q(!0))}const r=a&&(null===(e=Object.keys(a))||void 0===e?void 0:e.length)>1&&null!=a&&a.address?{...a}:{page:1,guest:1};!n.category||n.trip_type||n.activity_type||(delete r.trip_type,delete r.activity_type,delete r.species,delete r.advanced_filter,delete r.address,delete r.latitude,delete r.longitude,r.page=1),null==t||t({...r,...n}),Q(!0)},[B,f.search]),(0,l.useEffect)(()=>{var e,t,a;
1if(null==k||null===(e=k.searchQuery)||void 0===e||!e.resolveLocation)return;if(null!==(t=k.searchQuery)&&void 0!==t&&t.address||null!==(a=k.searchQuery)&&void 0!==a&&a.latitude)return;const l=Ee(k.searchQuery);l&&(delete l.resolveLocation,k.setSearchQuery(l),_.setSearchedValue(l.address),_.setMapDrag(!1),_.setLocation({lat:Number(l.latitude),lng:Number(l.longitude)}))},[null==k||null===(e=k.searchQuery)||void 0===e?void 0:e.resolveLocation,null==k||null===(t=k.searchQuery)||void 0===t?void 0:t.address,null==k||null===(a=k.searchQuery)||void 0===a?void 0:a.latitude]),(0,l.useEffect)(()=>("boolean"==typeof D&&S(D),()=>{_.setMarkerOnClick(null),_.setMarkerOnHover(null),_.setHoverCardId(null)}),[D]);const $=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{var e;const t=f.search,a=$.current!==t;$.current=t;const l=null===(e=k.searchQuery)||void 0===e?void 0:e.viewBy,n=a?(0,de.TC)(t,l):(0,de.TC)("",l)||(0,de.TC)(t,l);n&&n!==_.viewBy&&_.setViewBy(n)},[f.search,null===(d=k.searchQuery)||void 0===d?void 0:d.viewBy,_.viewBy]),(0,l.useEffect)(()=>{const e=k.searchQuery,t=ge.STATIC_SEARCH_REGION_NAMES.some(t=>{var a;return t.toLowerCase()===(null==e||null===(a=e.address)||void 0===a?void 0:a.toLowerCase())});if(null!=e&&e.address||null!=e&&e.latitude){var a;"undefined"!=typeof window&&window.localStorage&&"map area"!==(null===(a=e.address)||void 0===a?void 0:a.toLowerCase())&&!t&&window.localStorage.setItem("searchGuides",JSON.stringify(e));const l={...e};delete l.resolveLocation,H(l)}},[k.searchQuery]);const H=(e=k.searchQuery)=>{if(e&&fe){const t=(0,ie.KL)(e),a=new URLSearchParams(t),l=a&&a.toString()||"";let n=`${f.origin}/search`;l&&(n=`${n}?${l}`,window.history.replaceState({},"",`?${l}`),window.localStorage.setItem("pathname",n))}},W={"@searchContext":"https://schema.org","@type":"Organization",name:"Search guidesly for guides and places",description:"Set filters, choose locations, & scroll through our list of available guides to book your personalized fishing trip today. Our guides are vetted & trusted.",logo:"https://dlsmyzcs6vrg4.cloudfront.net/web/static/images/JointheTeam/jointheteam-image10.png",url:`${(0,r.i)().siteMetadata.siteUrl}${f.pathname}`,sameAs:["https://www.facebook.com/guidesly","https://x.com/guidesly","https://www.instagram.com/guidesly","https://www.linkedin.com/company/guidesly"]},z=()=>{var e,t;if((null===(e=k.searchQuery)||void 0===e?void 0:e.address)==(null===(t=(0,y.X0)())||void 0===t?void 0:t.address))return null;(async()=>{const{city:e,state:t,address:a,lat:l,lng:n}=(0,y.X0)(),r={latitude:l||null,longitude:n||null,city:e||"",state:t||"",page:1,limit:20,address:a||"",zoom:null},i={...k.searchQuery,...r};await k.setSearchQuery(i)})(),_.setMapDrag(!1)},R=(e,t=!1)=>{M(!0),_.setIsShowMore(t),k.setSearchQuery({...k.searchQuery,page:e})},{isLoadingMore:F,showMobileShowMore:V}=(0,L.Mq)({guides:null==_?void 0:_.guides,guidesWithinRange:null==_?void 0:_.guidesWithinRange,experienceCards:null==_?void 0:_.experienceCards,nearbyExperienceCards:null==_?void 0:_.nearbyExperienceCards,nearByGuidesCount:null==_?void 0:_.nearByGuidesCount,isShowMore:_.isShowMore,loadingMask:_.loadingMask,guidesAPICalled:_.guidesAPICalled});return l.createElement(o.A,{hideNav:!0},l.createElement(i.A,null,l.createElement(s.A,{description:"Set filters, choose locations, & scroll through our list of available guides to book your personalized fishing trip today. Our guides are vetted & trusted.",lang:"en",keywords:"Search Guidesly, Fishing, Anglers, Guide, Charter, Fishing Trips",title:"Book Your Fishing Trip & Guide",isCDN:!0,image:"/web/static/images/JointheTeam/jointheteam-image10.png",schemaMarkup:W}),l.createElement("div",{id:"Search"},l.createElement(O,{Mobile:E,searchQuery:k.searchQuery,setSearchQuery:k.setSearchQuery,setZoomCount:P}),l.createElement("div",{className:`${G.rowContainer1} ${G.rowContainer1Experience}${C?` ${G.rowContainer1MapExpanded}`:""}`},l.createElement(le,{searchQuery:k.searchQuery,setSearchQuery:k.setSearchQuery,mapExpanded:C,onMapLayoutChange:N}),l.createElement("div",{className:`${G.guidelistParent} ${G.guidelistParentExperience} searchListMapLayout-module--searchListColumn--d2656`},l.createElement(be,{handleSearchPageChange:R,updateSearchQuery:e=>{k.setSearchQuery(t=>({...t,...e}))},searchQuery:k.searchQuery,setSearchQuery:k.setSearchQuery,mapExpanded:C}),l.createElement("div",{className:"search-module--SearchPaginationDesktop--44520"},!_.loadingMask&&(_.guidesWithinRange.length>0||_.guides.length>0||_.experienceCards.length>0||_.nearbyExperienceCards&&_.nearbyExperienceCards.length>0)&&l.createElement(ce,{handleSearchPageChange:R})),l.createElement("div",{className:"search-module--SearchPaginationmobile--188b6"},V&&l.createElement("div",{className:G.showMoreButtonWrapper,id:"search-show-more"},l.createElement("button",{className:` ${G.pageBtn}`,disabled:F,"aria-busy":F,onClick:()=>{_.setPageChanged(!0),R(Number(_.searchPagination.active)+1,!0)}},F?"Loading...":"Show More")))),(null==_||null===(m=_.markerOnClickGuide)||void 0===m?void 0:m.guid
1)===_.markerOnClick&&fe&&window.matchMedia("only screen and (max-width: 767px)").matches?l.createElement(l.Fragment,null,l.createElement("div",{className:G.mobileMapOverlay},l.createElement("a",{href:null!=_&&null!==(h=_.markerOnClickGuide)&&void 0!==h&&h.is_bs?(0,ie.Wk)(null==_?void 0:_.markerOnClickGuide,w):(0,ie.TT)(null==_?void 0:_.markerOnClickGuide,b)},l.createElement(ye,{getGuide:null==_?void 0:_.markerOnClickGuide,item:null==_?void 0:_.markerOnClickGuide,showClose:!0,handleClear:()=>{_.setMarkerOnClick(null),_.setMarkerOnClickGuide(null)},from:"onMap"})))):null,_.shownavigation&&fe&&window.matchMedia("only screen and (max-width: 767px)").matches?l.createElement(l.Fragment,null,l.createElement("div",{className:_.hoverCardId?G.locationArrow1:G.locationArrow2},l.createElement("button",{onClick:()=>{_.setMarkerOnClick(null),_.setMarkerOnClickGuide(null),z()}},l.createElement(c.Ay,{icon:u.p,style:(null===(p=k.searchQuery)||void 0===p?void 0:p.address)===(null===(g=(0,y.X0)())||void 0===g?void 0:g.address)?{color:"black"}:{color:"lightgrey"}})))):null,l.createElement("div",{className:`${ue.m} searchListMapLayout-module--searchMapColumn--729ea${E&&!_.shownavigation?` ${G.mobileMapHidden}`:""}`,id:"map-search-id","aria-hidden":!(!E||_.shownavigation)||void 0},l.createElement(we,{pageChanged:x,setPageChanged:M,handleSearchData:async e=>{const t={...k.searchQuery,...e};await k.setSearchQuery(t)},mapFullScreen:C,handelmapview:()=>{N(!C)},searchParams:k.searchQuery,isMobileOverlay:E&&_.shownavigation,mapBelowToolbar:!E,zoomCount:A,setZoomCount:P}))))))},Ce=()=>l.createElement("div",null,l.createElement(n.Router,null,l.createElement(Se,{path:"/search/*"})))},89359:function(e,t,a){a.d(t,{m:function(){return l}});var l="searchMap-module--googleMap--32df6"},56908:function(e,t){},94683:function(e,t){t.i=void 0;t.i={viewBox:"0 0 24 24",children:[{name:"path",attribs:{d:"M0 0h24v24H0V0z",fill:"none"},children:[]},{name:"path",attribs:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},children:[]}]}},63450:function(e,t){t.p=void 0;t.p={viewBox:"0 0 24 24",children:[{name:"path",attribs:{d:"M10.368 19.102c.349 1.049 1.011 1.086 1.478.086l5.309-11.375c.467-1.002.034-1.434-.967-.967l-11.376 5.308c-1.001.467-.963 1.129.085 1.479l4.103 1.367 1.368 4.102z"},children:[]}]}}}]);
2//# sourceMappingURL=component---src-pages-search-js-fa4a8d8c39203c7ef2e3.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.