1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6656],{10696:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/claim/properties",function(){return r(52035)}])},52035:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});var s=r(37876),_=r(14232),i=r(48218),o=r(77860),a=r(39149),p=r.n(a),l=r(55649),n=r.n(l),m=r(52935),c=r(45457),d=r(62486),u=r(98591),h=r(98022),x=r(47145),g=r(72767),P=r(12420),y=r(46498),b=r(21734),N=r(338),j=r(61403),w=r(54165),f=r.n(w);let v=()=>{let e=x.S?"":sessionStorage.getItem("propertyName")||"",[t,r]=(0,_.useState)(e),[i,a]=(0,_.useState)([]),l=d.X,w=p()(e=>v(e),250);async function v(e){let t=new URL("".concat("https://thedyrt.com/api/v10","/autocomplete/campgrounds"));t.searchParams.set("q",e),t.searchParams.set("claimable","true");try{let e=await fetch(t.toString(),{headers:l}).then(e=>e.json()).then(e=>e.map(h.sP).slice(0,5));return a(e),e}catch(e){return[]}}(0,P.A)(()=>{e&&v(e)});let A=async e=>{let{data:t}=await (0,g.Ck)("campgrounds",e);o.u4(m.q8,(0,u.aB)(t))};return(0,s.jsx)("div",{className:f().properties,children:(0,s.jsxs)("div",{className:f().properties__container,children:[(0,s.jsx)("h2",{className:f().properties__header,children:"Start by searching for your property"}),(0,s.jsx)("p",{className:f().properties__subtitle,children:"Other campers may have already listed your property on the Dyrt."}),(0,s.jsxs)("p",{className:f().properties__subtitle,children:["Donât see your property in the results?",(0,s.jsx)(N.A,{href:"/claim/add",children:(0,s.jsx)("a",{className:f().properties__link,"data-event":"Manager_Claim_Add-Property",children:"Add Your Property"})})]}),(0,s.jsx)(b.A,{value:t,icon:"magnifying_glass",large:!0,onChange:e=>{r(e.target.value),e.target.value.length>=2?w(e.target.value):a([])},placeholder:"Enter the name of your property"}),(0,s.jsxs)("div",{className:f()["properties__results-container"],children:[(0,s.jsx)("ul",{className:f().properties__results,children:i.map(e=>(0,s.jsx)("li",{className:f()["properties__list-item"],children:(0,s.jsx)(j.A,{campground:e,children:(0,s.jsxs)("div",{className:f()["properties__button-container"],children:[(0,s.jsx)(y.A,{className:f()["properties__first-button"],borderless:!0,label:"View Details",ghost:!0,icon:"open_in_new_window",path:"/camping/".concat(n()(e.regionName),"/").concat(e.slug),target:"_blank",dataEvent:"view-property-details"}),(0,s.jsx)(y.A,{label:"Claim This Listing",path:"/claim/".concat(e.slug),icon:"arrow_right",dataEvent:"claim-listing",onClick:async()=>await A(e.id)})]})})},e.id))}),(0,s.jsxs)("div",{className:f()["no-results"],children:[(0,s.jsx)("img",{className:f()["no-results__image"],src:"".concat(c.K,"/assets/images/search/no_results.png"),alt:""}),(0,s.jsx)("h4",{className:f()["no-results__text"],children:"Don't see your property? Add it to The Dyrt!"}),(0,s.jsx)(y.A,{label:"Add your Property",path:"/claim/add",icon:"arrow_right",dataEvent:"add-property-to-claim"})]})]})]})})},A=()=>(0,s.jsx)(i.A,{pageTitle:"Claim",socialDescription:"Claim a Property",noPadding:!0,content:(0,s.jsx)(v,{})})},54165:e=>{e.exports={"m-t-2xs":"Properties_m-t-2xs__Ny4nM","m-t-xs":"Properties_m-t-xs__gfGcg","m-t-sm":"Properties_m-t-sm__H453_","m-t-md":"Properties_m-t-md__cyrot","m-t-lg":"Properties_m-t-lg___cnNh","m-t-xl":"Properties_m-t-xl__h1vik","m-t-xl--desktop":"Properties_m-t-xl--desktop__x9e_L","m-t-2xl":"Properties_m-t-2xl__l2h_n","m-t-3xl":"Properties_m-t-3xl__OaQFL","m-t-4xl":"Properties_m-t-4xl__EYp2t","m-b-sm":"Properties_m-b-sm___whg7","m-b-md":"Properties_m-b-md__BreP7","m-b-lg":"Properties_m-b-lg___Ks8F","m-b-xl":"Properties_m-b-xl__G8xze","m-b-3xl":"Properties_m-b-3xl__SFshu","m-r-xl":"Properties_m-r-xl__OGgIE","m-l-sm":"Properties_m-l-sm__L0rmm",properties:"Properties_properties__QrJtY",properties__container:"Properties_properties__container__SgnmJ",properties__header:"Properties_properties__header__zMaFx",properties__subtitle:"Properties_properties__subtitle__JHuuq","properties__results-container":"Properties_properties__results-container__YG6KO",properties__link:"Properties_properties__link__9ZXEf",properties__results:"Properties_properties__results__J_NEd","properties__list-item":"Properties_properties__list-item__oOG_y","properties__button-container":"Properties_properties__button-container__rLqG4","properties__first-button":"Properties_properties__first-button__FviFj","no-results":"Properties_no-results__Crc6D","no-results__image":"Properties_no-results__image__1eKNu","no-results__text":"Properties_no-results__text__QPhl8","rotate-three-sixty":"Properties_rotate-three-sixty__kAN6L","slide-in-to-left":"Properties_slide-in-to-left__o4qAy","slide-out-to-left":"Properties_slide-out-to-left__wxwVe","slide-in-to-right":"Properties_slide-in-to-right__c8aTT","slide-out-to-right":"Properties_slide-out-to-right__AyauE"}}},e=>{e.O(0,[9469,4587,2867,9548,6215,7967,2113,4554,636,6593,8792],()=>e(e.s=10696)),_N_E=e.O()}]); 2//# sourceMappingURL=properties-b08f7dd4af7ae68d.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.