1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1062],{5640:function(e,t,a){"use strict";a.d(t,{Z:function(){return F}});var n=a(85893),i=a(25675),o=a.n(i),r=a(67294),c=a(81028),l=a(47568),s=a(51438),_=a(97582),u=a(87862),d=new(function(){function e(){(0,s.Z)(this,e),this.openClickChangeLocation="Click - Location Input Field Change Button - Universal Search",this.openClickEnterLocation="Click - Location Input Field - Universal Search",this.openClickSearchEquipment="Click - Equipment Input Field - Universal Search",this.closeUniversalSearchModal="Click - Modal Close Button - Universal Search",this.selectPrepopulatedLocation="Click - Select Prepopulated Location - Universal Search Location Modal",this.focusLocationSearchField="Focus - Location Search Field - Universal Search Location Modal",this.selectLocationFromSearchResults="Click - Select Location - Universal Search Location Modal Search Results",this.selectPrepopulatedCategory="Click - Select Prepopulated Category - Universal Search Equipment Modal",this.focusEquipmentSearchField="Focus - Equipment Search Field - Universal Search Equipment Modal",this.selectEquipmentFromSearchResults="Click - Select Equipment - Universal Search Equipment Modal Search Results",this.selectCategoryFromSearchResults="Click - Select Category - Universal Search Equipment Modal Search Results",this.clickChangeLocation="Click - Change Button - Universal Search Equipment Modal"}var t=e.prototype;return t.changeLocationInputFieldClick=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"CHANGE_LOCATION_INPUT_FIELD",type:"Button",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.openClickChangeLocation,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.enterLocationInputFieldClick=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"ENTER_LOCATION_INPUT_FIELD",type:"Button",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.openClickEnterLocation,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.equipmentInputFieldClick=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"EQUIPMENT_INPUT_FIELD",type:"Button",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.openClickSearchEquipment,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.closeModalClick=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"MODAL_CLOSE_BUTTON",type:"Button",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.closeUniversalSearchModal,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.selectPrepopulatedLocationClick=function(e){var t=this;return(0,l.Z)((function(){var a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return a={name:"SELECT_PREPOPULATED_LOCATION",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:t.selectPrepopulatedLocation,properties:{selectedLocation:e}}},[4,(0,u.Kz)(a)];case 1:return n.sent(),[2,!0]}}))}))()},t.focusLocation=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"FOCUS_LOCATION_SEARCH_FIELD",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.focusLocationSearchField,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.selectLocationClick=function(e){var t=this;return(0,l.Z)((function(){var a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return a={name:"SELECT_LOCATION_SEARCH_RESULTS",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:t.selectLocationFromSearchResults,properties:{selectedLocation:e}}},[4,(0,u.Kz)(a)];case 1:return n.sent(),[2,!0]}}))}))()},t.selectPrepopulatedCategoryClick=function(e){var t=this;return(0,l.Z)((function(){var a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return a={name:"SELECT_PREPOPULATED_CATEGORY",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:t.selectPrepopulatedCategory,properties:{selectedCategory:e}}},[4,(0,u.Kz)(a)];case 1:return n.sent(),[2,!0]}}))}))()},t.focusEquipment=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"FOCUS_EQUIPMENT_SEARCH_FIELD",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}}
1,mixpanel:{eventName:e.focusEquipmentSearchField,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},t.selectEquipmentClick=function(e){var t=this;return(0,l.Z)((function(){var a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return a={name:"SELECT_EQUIPMENT_SEARCH_RESULTS",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:t.selectEquipmentFromSearchResults,properties:{selectedEquipment:e}}},[4,(0,u.Kz)(a)];case 1:return n.sent(),[2,!0]}}))}))()},t.selectCategoryClick=function(e){var t=this;return(0,l.Z)((function(){var a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return a={name:"SELECT_CATEGORY_SEARCH_RESULTS",type:"click",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:t.selectCategoryFromSearchResults,properties:{selectedCategory:e}}},[4,(0,u.Kz)(a)];case 1:return n.sent(),[2,!0]}}))}))()},t.changeLocationOnEquipmentModal=function(){var e=this;return(0,l.Z)((function(){var t;return(0,_.__generator)(this,(function(a){switch(a.label){case 0:return t={name:"CHANGE_LOCATION_ON_EQUIPMENT_MODAL",type:"Button",data:{section:"universal search",format:"click",navigate:{type:"internal"}},mixpanel:{eventName:e.clickChangeLocation,properties:{}}},[4,(0,u.Kz)(t)];case 1:return a.sent(),[2,!0]}}))}))()},e}()),m=a(91926),p=a(26042),h=a(69396),v=a(83074),f=a(19070),g=a.n(f),q=function(e){return(0,n.jsx)("a",{href:e.url,className:g().equipment_cat_item_link,onClick:function(){return t=e.title,void d.selectPrepopulatedCategoryClick(t);var t},children:(0,n.jsxs)("div",{className:g().equipment_cat_item_wrapper,children:[(0,n.jsx)("div",{className:g().equipment_cat_item_img_wrapper,children:(0,n.jsx)(o(),{src:e.src,alt:e.alt,className:g().equipment_cat_item_img,layout:"fill",objectFit:"contain",loader:c.ZP})}),(0,n.jsx)("div",{className:g().equipment_cat_item_title,children:e.title})]})})},y=a(5306),k=a.n(y),S=function(e){return(0,n.jsxs)("div",{className:k().equipment_cat_list_wrapper,children:[(0,n.jsxs)("div",{className:k().equipment_cat_wrapper,children:[(0,n.jsx)("div",{className:k().equipment_cat_title,children:"Lifts & Aerial Work Platforms"}),(0,n.jsxs)("div",{className:k().equipment_cat_items_list,children:[(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/articulating_boom_lift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/q_auto:eco/f_auto/v1556747003/Search%20Equipment/articulating_boom_lift.png",alt:"Articulating Boom Lift",title:"Articulating Boom Lifts"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/forklift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1583958119/category-images/Forklift.png",alt:"Forklift",title:"Forklift"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/scissor-lift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801191/category-images/r1l5roa8rzbgofw1fqix.png",alt:"Scissor Lift",title:"Scissor Lift"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/straight-boom-lift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579730844/category-images/ffuforcxwyxxfyovbg0n.png",alt:"Straight Boom Lift",title:"Straight Boom Lift"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/telehandler-reach-forklift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801889/category-images/zbiwut6je3jvxjokm8dy.png",alt:"Telehandler",title:"Telehandler"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/towable-boom-lift/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1585090021/category-images/Towable_Boom_Lift.png",alt:"Towable Boom Lift",title:"Towable Boom Lift"})]})]}),(0,n.jsxs)("div",{className:k().equipment_cat_wrapper,children:[(0,n.jsx)("div",{className:k().equipment_cat_title,children:"Compact Equipment"}),(0,n.jsxs)("div",{className:k().equipment_cat_items_list,children:[(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/backhoe/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579792332/category-images/v9tmfvbgmcvwpulbtbuk.png",alt:"Backhoe",title:"Backhoe"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/mini-excavator/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801774/category-images/oe7vkvckwoate1hmafvw.png",alt:"Mini Excavator",title:"Mini Excavator"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/tracked-skid-steer/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801919/category-images/qjks9e3dtpditwt5ih9e.png",alt:"Tracked Skid Steer",title:"Tracked Skid Steer"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/wheeled-skid-steer/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579725846/category-images/aqm5zjghjyjhtpxohde3.png",alt:"Wheeled Skid Steer",title:"Wheeled Skid Steer"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/tractor/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1612466607/category-images/Tractor.png",alt:"Tractor",title:"Tractor"})]})]}),(0,n.jsxs)("div",{className:k().equipment_cat_wrapper,children:[(0,n.jsx)("div",{className:k().equipment_cat_title,children:"Heavy Earthmoving Equipment"}),(0,n.jsxs)("div",{className:k().equipment_cat_items_list,children:[(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/dozer/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801738/category-images/xkxol9oux57gmv4bxzkl.png",alt:"Dozer",title:"Dozer"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/excavator/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801759/category-images/yxngmjjtgj9q4ug4qh4c.png",alt:"Excavator",title:"Excavator"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/rock-truck/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1556747003/Search%20Equipment/articulated_dump_truck.png",alt:"Rock Truck",title:"Rock Truck"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/wheel-loader/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579726877/category-images/qug9fch2frtpxhqx4erz.png",alt:"Wheel Loader",title:"Wheel Loader"})]})]}),(0,n.jsxs)("div",{className:k().equipment_cat_wrapper,children:[(0,n.jsx)("div",{className:k().equipment_cat_title,children:"Rollers & Compaction Equipment"}),(0,n.jsxs)("div",{className:k().equipment_cat_items_list,children:[(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/asphalt-compaction-double-drum/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801678/category-images/ebbccigp0qz40sozs6do.png",alt:"Asphalt Compaction Double Drum",title:"Asphalt Compaction Double Drum"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/soil-compaction-pad-foot/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579801808/category-images/rncu3kcolp8d8pxkcv80.png",alt:"Soil Compaction Pad Foot",title:"Soil Compaction Pad Foot"}),(0,n.jsx)(q,{url:"".concat("https://dozr.com","/rent/soil-compaction-smooth-drum/").concat(e.locationUrlParam),src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/w_100/v1579731230/category-images/ihkevnhlvnudgncru7cc.png",alt:"Soil Compaction Smooth Drum",title:"Soil Compaction Smooth Drum"})]})]})]})},x=a(4103),L=a.n(x),C=function(e){var t=(0,r.useState)(""),a=t[0],i=t[1],l=(0,r.useState)([]),s=l[0],_=l[1],u=(0,r.useState)(L().universal_search_input_error),m=u[0],f=u[1],g=(0,r.useState)(L().equipment_modal_content),q=g[0],y=g[1],k=v.wY,x=[],C=[];!function(e){for(var t in e)if(!(0,v.Mq)(t)){var a=e[t],n=a.name;for(var i in a.children){var o=a.children[i];C.push(o);var r=null===o||void 0===o?void 0:o.urlParamUsa;for(var c in o.children){var l=o.children[c];o.children[c].type=r,o.children[c].categoryName=n,x.push(l)}}}}(k);var j=C.map((function(t){var a="".concat("https://dozr.com","/rent/").concat(null===t||void 0===t?void 0:t.urlParamUsa,"/").concat(e.locationUrlParam);return(0,h.Z)((0,p.Z)({},t),{url:a})})),E=(0,r.useRef)(null);(0,r.useEffect)((function(){var t=setTimeout((function(){e.focusOnInput&&E.current&&E.current.focus()}),800);return function(){return clearTimeout(t)}}),[e.focusOnInput]),(0,r.useEffect)((function(){y("".concat(L().equipment_modal_content," ").concat(L().slide_in))}),[]),(0,r.useEffect)((function(){return a.length||(_([]),f("".concat(L().closed," ").concat(L().universal_search_input_error))),function(){f(L().universal_search_input_error)}}),[a]);return(0,n.jsx)("div",{className:L().equipment_modal_wrapper,children:(0,n.jsxs)("div",{className:q,children:[(0,n.jsxs)("div",{className:L().equipment_modal_header,children:["Available now in"," ",(0,n.jsx)("div",{children:(0,n.jsxs)("button",{onClick:function(){e.onClick(!1),e.clearedLocation(!0),d.changeLocationOnEquipmentModal()},children:[(0,n.jsx)("span",{children:e.selectedLocation})," change"]})})]}),(0,n.jsxs)("div",{className:L().equipment_modal_search_bar,children:[(0,n.jsx)("div",{style:{paddingRight:"8px",paddingTop:"3px"},children:(0,n.jsx)(o(),{src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/v1648243454/universal-search/magnifying-glass_grey.svg",alt:"magnifying glass icon",className:L().magnifying_glass_icon,width:18,height:18,objectFit:"contain",loader:c.ZP})}),(0,n.jsx)("input",{placeholder:"Search Equipment...",type:"text",value:a,onChange:function(t){var a=t.target.value,n=x.filter((function(e){return e.name.toLowerCase().indexOf(a.toLowerCase())>-1})).map((function(t){var n=t.name.replace(new RegExp(a,"gi"),(function(e){return'<span style="font-weight: 700;">'.concat(e,"</span>")})),i="".concat("https://dozr.com","/rent/").concat(t.type,"/").concat(null===t||void 0===t?void 0:t.urlParamUsa,"/").concat(e.locationUrlParam);return(0,h.Z)((0,p.Z)({},t),{name:n,mixpanelName:t.name,url:i,category:t.categoryName})}));i(a),_(n)},onFocus:function(){d.focusEquipment()},ref:E}),(0,n.jsx)("button",{className:""===a?"closed":"",onClick:function(){return i((function(){return""}))},children:"Clear"})]}),0!==s.length?(0,n.jsxs)("div",{className:L().equipment_modal_search_results_wrapper,children:[(0,n.jsxs)("div",{className:L().equipment_modal_search_results_title,children:['Results for "',a,'"']}),s.map((function(e,t){return(0,n.jsx)("a",{href:e.url,className:L().equipment_cat_item_link,onClick:function(){return function(e){d.selectEquipmentClick(e)}(e.mixpanelName)},rel:"nofollow",children:(0,n.jsxs)("div",{className:L().equipment_modal_search_result,children:[(0,n.jsx)("div",{className:L().equipment_modal_search_result_img_wrapper,children:(0,n.jsx)(o(),{src:e.cloudinaryImgPath,layout:"fill",objectFit:"contain",loader:c.ZP})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:L().equipment_modal_search_result_title,dangerouslySetInnerHTML:{__html:e.name}}),(0,n.jsxs)("div",{className:L().equipment_modal_search_result_cat,children:["in ",e.category]})]})]})},t)})),(0,n.jsx)("div",{className:L().equipment_modal_search_results_title,children:"Related categories"}),j.map((function(e,t){return(0,n.jsx)("a",{href:e.url,className:L().equipment_cat_item_link,onClick:function(){return function(e){d.selectCategoryClick(e)}(e.name)},children:(0,n.jsxs)("div",{className:L().equipment_modal_search_result,children:[(0,n.jsx)("div",{className:L().equipment_modal_search_result_img_wrapper,children:(0,n.jsx)(o(),{src:e.cloudinaryImgPath,layout:"fill",objectFit:"contain",loader:c.ZP})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:L().equipment_modal_search_result_title,children:e.name}),(0,n.jsx)("div",{className:L().equipment_modal_search_result_cat,children:"in All Sizes"})]})]})},t)}))]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:m,children:["Sorry, no results for results for '",a,"'. Please try another term"]}),(0,n.jsx)(S,{locationUrlParam:e.locationUrlParam})]})]})})},j=a(96400),E=a(50490),w=a(76494),N=a.n(w),b=[{description:"Chicago, IL, USA",placeId:"ChIJ7cv00DwsDogRAMDACa2m4K8",shortDe
1scription:"Chicago, IL",urlParam:"Chicago-IL"},{description:"Dallas, TX, USA",placeId:"ChIJS5dFe_cZTIYRj2dH9qSb7Lk",shortDescription:"Dallas, TX",urlParam:"Dallas-TX"},{description:"Houston, TX, USA",placeId:"ChIJAYWNSLS4QIYROwVl894CDco",shortDescription:"Houston, TX",urlParam:"Houston-TX"},{description:"Los Angeles, CA, USA",placeId:"ChIJE9on3F3HwoAR9AhGJW_fL-I",shortDescription:"Los Angeles, CA",urlParam:"Los_Angeles-CA"},{description:"Miami, FL, USA",placeId:"ChIJEcHIDqKw2YgRZU-t3XHylv8",shortDescription:"Miami, FL",urlParam:"Miami-FL"},{description:"New York, NY, USA",placeId:"ChIJOwg_06VPwokRYv534QaPC8g",shortDescription:"New York, NY",urlParam:"New_York-NY"}],U=function(e){var t,a,i,o,c=(0,r.useState)(""),s=c[0],u=c[1],m=(0,r.useState)(),p=m[0],h=m[1],v=(0,r.useState)(!1),f=v[0],g=v[1],q=(0,r.useState)(!1),y=q[0],k=q[1],S=(0,r.useState)(!1),x=S[0],L=S[1],C=(0,E.C)((function(e){return e.location})),w=(0,r.useRef)(null);(0,r.useEffect)((function(){k(!0);var e=setTimeout((function(){U(s)}),100);return function(){return clearTimeout(e)}}),[s]);var U=function(){var e=(0,l.Z)((function(e){var t,a;return(0,_.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,j.v)(e)];case 1:return(t=n.sent())&&t.suggestions?(h(t.suggestions),g(!0)):(h(b),g(!0)),k(!1),[3,3];case 2:return a=n.sent(),console.log("Error Occurred While Fetching Location Suggestions: ",a),[3,3];case 3:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){var e;null===(e=w.current)||void 0===e||e.focus()}),[]),(0,r.useEffect)((function(){return x?(document.body.style.overflow="hidden",document.body.style.height="100%"):document.body.style.overflow="scroll",function(){document.body.style.overflow="scroll"}}),[x]);e.locationInfo;return(0,n.jsx)("div",{className:N().location_modal_wrapper,children:(0,n.jsxs)("div",{className:N().location_modal_content,children:[(0,n.jsx)("h3",{className:N().location_modal_header,children:"Set Job Site for Accurate Rates"}),(0,n.jsx)("div",{className:N().location_modal_search_bar,children:(0,n.jsx)("input",{placeholder:"Enter your city, address, or ZIP/postal code",ref:w,defaultValue:(null===C||void 0===C?void 0:C.formattedAddress)&&(null===C||void 0===C||null===(t=C.locality)||void 0===t?void 0:t.short)&&(null===C||void 0===C||null===(a=C.region)||void 0===a?void 0:a.short)?"".concat(null===C||void 0===C||null===(i=C.locality)||void 0===i?void 0:i.short,", ").concat(null===C||void 0===C||null===(o=C.region)||void 0===o?void 0:o.short):s,id:"locationinput",autoComplete:"off",onFocus:function(e){d.focusLocation(),e.currentTarget.select()},type:"text",onChange:function(e){return u(e.target.value)}})}),f&&p&&(0,n.jsxs)("div",{className:N().location_modal_search_results_wrapper,children:[(null===s||void 0===s?void 0:s.length)&&(null===p||void 0===p?void 0:p.length)>=1?(0,n.jsx)("div",{className:N().location_modal_search_results_title,children:'Results for "'.concat(s,'"')}):"",p.length>=1?p.map((function(t){return(0,n.jsx)("div",{className:N().location_modal_search_result,id:t.placeId,tabIndex:0,onClick:function(){var a;a=t,g(!1),e.onSelectedLocation(!0),e.userLocation(a.shortDescription),e.locationUrlParam(null===a||void 0===a?void 0:a.urlParam),b.find((function(e){return e.placeId===a.placeId}))?d.selectPrepopulatedLocationClick(a):d.selectLocationClick(a),L(!1)},children:(0,n.jsx)("span",{children:t.description})},t.placeId)})):!y&&(null===s||void 0===s?void 0:s.length)>0&&(0,n.jsx)("div",{children:"Sorry, we couldn't find any results for \"".concat(s,'".\n Please try another term')})]})]})})},M=a(22253),P=a.n(M),z=function(e){var t=(0,r.useState)(!0),a=t[0],i=t[1],l=(0,r.useState)(!1),s=l[0],_=l[1],u=(0,r.useState)(!0),d=u[0],p=u[1],h=(0,r.useState)(""),v=h[0],f=h[1],g=(0,r.useState)(""),q=g[0],y=g[1],k=(0,r.useState)(P().closed),S=k[0],x=k[1],L=(0,r.useState)(P().universal_modal_content),j=L[0],E=L[1],w=(0,r.useState)(!1),N=(w[0],w[1]),b=(0,r.useState)(!1),M=b[0],z=b[1],T=(0,m.Z)()<768,I=function(t){27===(t.charCode||t.keyCode)&&e.onClose()};(0,r.useEffect)((function(){return document.body.addEventListener("keydown",I),function(){document.body.removeEventListener("keydown",I)}})),(0,r.useEffect)((function(){if(!d){e.show&&(document.body.style.overflow="hidden",F(e.userDefaultLocation,e.changeLocationClick));var t=setTimeout((function(){O(e.show)}),100);return function(){return clearTimeout(t)}}p(!1)}),[e.show]);var F=function(t,a){if(""==e.userDefaultLocation||e.changeLocationClick)_(!1),i(!0),N(!0),z(!1);else{_(!0),i(!1),f(e.userDefaultLocation);var n=A(e.userDefaultLocation);y(n),N(!1),z(!0)}},A=function(e){var t=e.split(",");return t[0].length>1&&(t[0]=t[0].split(/\s+/).join("-")),"".concat(t[0],"_").concat(t[1].trim())},D=(0,r.useRef)(null),R=function(e){if(e)return _(!0),i(!1),z(!0),void N(!1);_(!1),i(!0),z(!1),N(!0)},O=function(t){if(t&&T){x("".concat(P().universal_search_modal," ").concat(P().mobile_overlay));var a=setTimeout((function(){E("".concat(P().universal_modal_content," ").concat(P().modal_content_slide))}),200);return function(){return clearTimeout(a)}}if(t&&!T)x(P().universal_search_modal),E(P().universal_modal_content);else{if(!t&&T){E(P().universal_modal_content);var n=setTimeout((function(){x(P().closed),e.onClose()}),1e3);return function(){return clearTimeout(n)}}t||T||x(P().closed)}};return(0,n.jsx)("div",{className:S,onClick:e.onClose,tabIndex:-1,role:"dialog","aria-label":"Location and Equipment Selection Modal","aria-hidden":e.show?"false":"true",children:(0,n.jsxs)("div",{className:j,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){if("Tab"===e.key&&9===e.keyCode&&D.current){var t=D.current.querySelectorAll("a[href], button:not([disabled]), textarea, input, select"),a=t[0],n=t[t.length-1];if(!e.shiftKey&&document.activeElement===n)return a.focus(),e.preventDefault();e.shiftKey&&document.activeElement===a&&(n.focus(),e.preventDefault())}},ref:D,children:[a?(0,n.jsx)(U,{onSelectedLocation:R,userLocation:function(t){f(t),e.changeUserLocation(t)},locationUrlParam:function(e){return y(e)}}):"",s?(0,n.jsx)(C,{onClick:R,selectedLocation:v,locationUrlParam:q,focu
1sOnInput:M,clearedLocation:function(t){return function(t){t&&(f(""),e.clearDefaultLocation(!0))}(t)}}):"",(0,n.jsxs)("button",{className:P().universal_search_modal_close_btn,onClick:e.onClose,children:[(0,n.jsx)(o(),{src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/v1563309364/Icons/2pnt/close.svg",alt:"close modal icon",className:"close_icon","aria-hidden":"true",layout:"fill",objectFit:"contain",loader:c.ZP}),(0,n.jsx)("span",{className:P().sr_only,children:"Close"})]})]})})},T=a(40115),I=a.n(T);var F=function(e){var t=(0,r.useState)(!1),a=t[0],i=t[1],l=(0,r.useState)(""),s=l[0],_=l[1],u=(0,r.useState)(!1),m=u[0],p=u[1];(0,r.useEffect)((function(){var e=localStorage.getItem("locationInfo");if(null!=e){var t=JSON.parse(e);h(t)}}),[]);var h=function(e){var t=e.formattedAddress;_(t)},v=(0,r.useState)(!1);return v[0],v[1],(0,n.jsxs)("div",{className:"withEase"==e?I().universal_search_container:I().universal_search_container2,children:[(0,n.jsxs)("div",{className:"withEase"==e?I().universal_search_inputs_container:I().universal_search_inputs_container2,children:[(0,n.jsxs)("div",{onClick:""==s?function(){i(!0),d.enterLocationInputFieldClick()}:function(){i(!0),p(!0),_(""),d.changeLocationInputFieldClick()},className:"withEase"==e?I().universal_search_input_location:I().universal_search_input_location2,children:[(0,n.jsx)("div",{className:I().location_dot_icon,children:(0,n.jsx)(o(),{src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/v1650464107/location-dot_cdppbx.svg",alt:"location dot icon",width:14,height:18,loader:c.ZP})}),(0,n.jsx)("div",{className:I().universal_search_enter_location_btn,children:""===s?(0,n.jsx)("div",{style:{color:"#949390"},children:"Set Location"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:s}),"change"]})})]}),(0,n.jsxs)("div",{onClick:function(){i(!0),d.equipmentInputFieldClick()},className:"withEase"==e?I().universal_search_input_equipment:I().universal_search_input_equipment2,children:[(0,n.jsx)("div",{className:I().magnifying_glass_icon,children:(0,n.jsx)(o(),{src:"https://res.cloudinary.com/dsfzcj5qk/image/upload/v1648243454/universal-search/magnifying-glass_grey.svg",alt:"magnifying glass icon",width:18,height:18,loader:c.ZP})}),(0,n.jsx)("div",{className:I().universal_search_enter_equipment_btn,children:"Select Equipment"})]})]}),(0,n.jsx)(z,{onClose:function(){i(!1),p(!1),d.closeModalClick(),document.body.style.overflow="auto"},show:a,userDefaultLocation:s,changeLocationClick:m,changeUserLocation:function(e){return _(e)},clearDefaultLocation:function(e){return e?_(""):""}})]})}},91926:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var n=a(67294);function i(){var e=(0,n.useState)(0),t=e[0],a=e[1];return(0,n.useEffect)((function(){return a(window.innerWidth),window.addEventListener("resize",(function(){return a(window.innerWidth)})),function(){return window.removeEventListener("resize",(function(){return a(window.innerWidth)}))}}),[]),t}},19070:function(e){e.exports={equipment_cat_item_link:"EquipmentCat_equipment_cat_item_link__wRJRl",equipment_cat_item_wrapper:"EquipmentCat_equipment_cat_item_wrapper__u4FZp",equipment_cat_item_img_wrapper:"EquipmentCat_equipment_cat_item_img_wrapper__Pmbf7",equipment_cat_item_img:"EquipmentCat_equipment_cat_item_img__9TpzP",equipment_cat_item_title:"EquipmentCat_equipment_cat_item_title__q0f4K"}},5306:function(e){e.exports={equipment_cat_list_wrapper:"EquipmentCatList_equipment_cat_list_wrapper__GqKDh",equipment_cat_title:"EquipmentCatList_equipment_cat_title___zLTi",equipment_cat_item_link:"EquipmentCatList_equipment_cat_item_link__Jgdvl",equipment_cat_items_list:"EquipmentCatList_equipment_cat_items_list__0dvtj"}},4103:function(e){e.exports={equipment_modal_wrapper:"EquipmentModal_equipment_modal_wrapper__6rNb1",equipment_modal_content:"EquipmentModal_equipment_modal_content__orvYe",location_modal_content:"EquipmentModal_location_modal_content__X6nKv",slide_in:"EquipmentModal_slide_in__HoGKR",equipment_cat_item_link:"EquipmentModal_equipment_cat_item_link__Env3l",equipment_modal_header:"EquipmentModal_equipment_modal_header__lq5L5",equipment_modal_search_bar:"EquipmentModal_equipment_modal_search_bar__TqdW4",magnifying_glass_icon:"EquipmentModal_magnifying_glass_icon__6hWPb",equipment_modal_search_results_title:"EquipmentModal_equipment_modal_search_results_title__B4I9H",location_modal_search_results_title:"EquipmentModal_location_modal_search_results_title___aC5m",universal_search_input_error:"EquipmentModal_universal_search_input_error__bIBFQ",equipment_modal_search_result:"EquipmentModal_equipment_modal_search_result___JcuB",equipment_modal_search_result_img_wrapper:"EquipmentModal_equipment_modal_search_result_img_wrapper__9GnjS",equipment_modal_search_result_title:"EquipmentModal_equipment_modal_search_result_title__80pfa",equipment_modal_search_result_cat:"EquipmentModal_equipment_modal_search_result_cat__Ahn55",closed:"EquipmentModal_closed__uBVQT"}},76494:function(e){e.exports={equipment_modal_wrapper:"LocationModal_equipment_modal_wrapper__VB_q2",equipment_modal_content:"LocationModal_equipment_modal_content__WMkSQ",equipment_modal_header:"LocationModal_equipment_modal_header__wiGqh",equipment_modal_search_bar:"LocationModal_equipment_modal_search_bar__qQQOA",magnifying_glass_icon:"LocationModal_magnifying_glass_icon__Loruk",equipment_modal_search_results_title:"LocationModal_equipment_modal_search_results_title__MZDz0",location_modal_search_results_title:"LocationModal_location_modal_search_results_title__bNeEB",universal_search_input_error:"LocationModal_universal_search_input_error__U4ojq",equipment_modal_search_result:"LocationModal_equipment_modal_search_result__BDwr1",equipment_modal_search_result_img_wrapper:"LocationModal_equipment_modal_search_result_img_wrapper__YE7fd",equipment_modal_search_result_title:"LocationModal_equipment_modal_search_result_title__gS9Wl",equipment_modal_search_result_cat:"LocationModal_equipment_modal_search_result_cat__9T2Br",universal_search_modal:"LocationModal_universal_search_modal__jM6qn",mobile_overlay:"LocationModal_mobile_overlay__Xh4PM",universal_modal_content:"LocationModal_universal_modal_content__afEpV",modal_content_slide:"LocationModal_modal_content_slide___3eQM",universal_search_modal_close_btn:"LocationModal_universal_search_modal_close_btn__MKDRg",closed:"LocationModal_closed__nOi3p",sr_only:"LocationModal_sr_only__Aw6bX",sr_only_focu
1sable:"LocationModal_sr_only_focusable__q8K2p",slide_in:"LocationModal_slide_in__3KPaZ",location_modal_wrapper:"LocationModal_location_modal_wrapper__ljzLg",location_modal_header:"LocationModal_location_modal_header__tJli6",location_modal_search_bar:"LocationModal_location_modal_search_bar__C988e",location_dot_icon:"LocationModal_location_dot_icon__QHIn6",location_modal_search_result:"LocationModal_location_modal_search_result___uX2Y"}},22253:function(e){e.exports={universal_search_modal:"UniversalSearchModal_universal_search_modal__tXeqt",mobile_overlay:"UniversalSearchModal_mobile_overlay__kGE5r",universal_modal_content:"UniversalSearchModal_universal_modal_content__nxkfu",modal_content_slide:"UniversalSearchModal_modal_content_slide__7P5TB",universal_search_modal_close_btn:"UniversalSearchModal_universal_search_modal_close_btn__E_FCN",closed:"UniversalSearchModal_closed__dPrl5",sr_only:"UniversalSearchModal_sr_only__LKKeS",sr_only_focusable:"UniversalSearchModal_sr_only_focusable__YXMaI",slide_in:"UniversalSearchModal_slide_in__wxS_J"}},40115:function(e){e.exports={universal_search_container:"UniversalSearchWidget_universal_search_container__UvsvM",universal_search_inputs_container:"UniversalSearchWidget_universal_search_inputs_container__CgTTs",universal_search_enter_equipment_btn:"UniversalSearchWidget_universal_search_enter_equipment_btn__8UGf7",universal_search_input_equipment:"UniversalSearchWidget_universal_search_input_equipment__gVUpm",universal_search_input_location:"UniversalSearchWidget_universal_search_input_location__JHNT3",universal_search_enter_location_btn:"UniversalSearchWidget_universal_search_enter_location_btn__WKA6k",location_dot_icon:"UniversalSearchWidget_location_dot_icon__9yBHo",magnifying_glass_icon:"UniversalSearchWidget_magnifying_glass_icon__6HNAl",sr_only:"UniversalSearchWidget_sr_only__Yr2yZ",sr_only_focu
1sable:"UniversalSearchWidget_sr_only_focusable__fPt7k",universal_search_container2:"UniversalSearchWidget_universal_search_container2__4ydF6",universal_search_inputs_container2:"UniversalSearchWidget_universal_search_inputs_container2__FeutW",universal_search_input_location2:"UniversalSearchWidget_universal_search_input_location2__liIyw",universal_search_input_equipment2:"UniversalSearchWidget_universal_search_input_equipment2__S4J9r"}},9008:function(e,t,a){e.exports=a(5443)}}]);
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.