text: import e,{useState as t,useRef as a,useEffect as n}from"react";import r from"react-hubspot-form";import l from"react-modal";import s from"algoliasearch/lite";import{connectStateResults as o,connectCurrentRefinements as i,InstantSearch as c,SearchBox as m,Index as d,Configure as u,Hits as p,connectRefinementList as h,Stats as _,InfiniteHits as g}from"react-instantsearch-dom";import C,{components as E}from"react-select";function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},f.apply(this,arguments)}const w=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 24 24",version:"1.1",viewBox:"0 0 24 24",xmlSpace:"preserve",width:"16",height:"16"},e.createElement("path",{fill:"currentColor",d:"M.748 24a.75.75 0 01-.678-1.072l2.911-6.113a11.245 11.245 0 01-1.484-5.596C1.507 5.033 6.547 0 12.733 0h.034c2.101 0 4.155.587 5.94 1.696a11.172 11.172 0 015.011 7c.683 2.93.187 5.946-1.397 8.494a11.176 11.176 0 01-6.998 5.016 11.208 11.208 0 01-8.139-1.189l-6.112 2.911A.777.777 0 01.748 24zM12.733 1.5c-5.36 0-9.727 4.361-9.735 9.721a9.724 9.724 0 001.47 5.158.745.745 0 01.04.719l-2.174 4.567L6.9 19.49a.747.747 0 01.718.041 9.71 9.71 0 007.362 1.214 9.69 9.69 0 006.066-4.347c2.839-4.566 1.434-10.59-3.132-13.428a9.74 9.74 0 00-5.148-1.47h-.033z"})),v=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 24 24",version:"1.1",viewBox:"0 0 24 24",xmlSpace:"preserve",width:"16",height:"16"},e.createElement("path",{d:"M12 15.75c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"}),e.createElement("path",{d:"M12 24c-2.677 0-5.211-.868-7.332-2.51a.507.507 0 01-.126-.099C1.655 19.094 0 15.674 0 12 0 5.383 5.383 0 12 0s12 5.383 12 12c0 3.674-1.655 7.094-4.543 9.391l-.015.016c-.043.043-.087.069-.112.084A11.868 11.868 0 0112 24zm-5.716-3.199A10.408 10.408 0 0012 22.5a10.41 10.41 0 005.717-1.699 8.966 8.966 0 00-5.716-2.045 8.965 8.965 0 00-5.717 2.045zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 3.023 1.294 5.875 3.562 7.874A10.449 10.449 0 0112 17.257c2.573 0 5.023.927 6.938 2.616 2.268-2 3.562-4.851 3.562-7.874C22.5 6.21 17.79 1.5 12 1.5z"})),b=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 24 24",version:"1.1",viewBox:"0 0 24 24",xmlSpace:"preserve",width:"17",height:"17"},e.createElement("path",{d:"M11.969 24.011c-1.439 0-2.61-1.177-2.61-2.625s1.171-2.625 2.61-2.625a2.62 2.62 0 012.576 2.199 8.226 8.226 0 003.941-2.498 2.998 2.998 0 01-1.002-2.724l.586-3.879a2.988 2.988 0 011.188-1.975c.271-.198.569-.347.889-.444l-.004-.103a8.165 8.165 0 00-8.521-7.828 8.151 8.151 0 00-7.828 7.915c.342.095.66.249.948.46a2.995 2.995 0 011.189 1.981l.586 3.873a2.991 2.991 0 01-2.952 3.449 2.948 2.948 0 01-1.757-.576 2.992 2.992 0 01-1.186-1.976l-.586-3.874a2.99 2.99 0 01.549-2.234 2.937 2.937 0 011.71-1.134A9.628 9.628 0 014.84 3.134 9.62 9.62 0 0111.967.002a9.66 9.66 0 019.674 9.271l.004.104a2.952 2.952 0 011.771 1.151c.475.647.669 1.44.548 2.234l-.585 3.878a2.991 2.991 0 01-1.185 1.971 2.954 2.954 0 01-2.319.523 9.813 9.813 0 01-5.574 3.429 2.598 2.598 0 01-2.332 1.448zm0-3.75c-.612 0-1.11.505-1.11 1.125s.498 1.125 1.11 1.125c.612 0 1.11-.505 1.11-1.125s-.498-1.125-1.11-1.125zm9.042-9.451a1.478 1.478 0 00-1.457 1.267l-.587 3.885a1.5 1.5 0 00.276 1.123 1.466 1.466 0 001.193.603c.314 0 .615-.099.871-.286a1.49 1.49 0 00.589-.981l.586-3.884a1.502 1.502 0 00-.275-1.122 1.468 1.468 0 00-1.196-.605zm-18.024.001c-.471 0-.917.226-1.194.604a1.5 1.5 0 00-.276 1.122l.587 3.88c.057.395.271.753.589.986a1.482 1.482 0 002.064-.318 1.5 1.5 0 00.275-1.122l-.587-3.879a1.494 1.494 0 00-.591-.989 1.452 1.452 0 00-.867-.284z",fill:"currentColor"})),k=()=>e.createElement("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.5 4.39062C5.25586 4.39062 4.26562 5.40625 4.26562 6.625C4.26562 7.86914 5.25586 8.85938 6.5 8.85938C7.71875 8.85938 8.73438 7.86914 8.73438 6.625C8.73438 5.40625 7.71875 4.39062 6.5 4.39062ZM6.5 7.64062C5.91602 7.64062 5.48438 7.20898 5.48438 6.625C5.48438 6.06641 5.91602 5.60938 6.5 5.60938C7.05859 5.60938 7.51562 6.06641 7.51562 6.625C7.51562 7.20898 7.05859 7.64062 6.5 7.64062ZM12.5938 6.01562H11.3242C11.0449 3.83203 9.29297 2.08008 7.10938 1.80078V0.53125C7.10938 0.328125 6.90625 0.125 6.70312 0.125H6.29688C6.06836 0.125 5.89062 0.328125 5.89062 0.53125V1.80078C3.68164 2.08008 1.92969 3.83203 1.65039 6.01562H0.40625C0.177734 6.01562 0 6.21875 0 6.42188V6.82812C0 7.05664 0.177734 7.23438 0.40625 7.23438H1.65039C1.92969 9.44336 3.68164 11.1953 5.89062 11.4746V12.7188C5.89062 12.9473 6.06836 13.125 6.29688 13.125H6.70312C6.90625 13.125 7.10938 12.9473 7.10938 12.7188V11.4746C9.29297 11.1953 11.0449 9.44336 11.3242 7.23438H12.5938C12.7969 7.23438 13 7.05664 13 6.82812V6.42188C13 6.21875 12.7969 6.01562 12.5938 6.01562ZM6.5 10.2812C4.46875 10.2812 2.84375 8.65625 2.84375 6.625C2.84375 4.61914 4.46875 2.96875 6.5 2.96875C8.50586 2.96875 10.1562 4.61914 10.1562 6.625C10.1562 8.65625 8.50586 10.2812 6.5 10.2812Z",fill:"currentColor"})),y={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:99999,backgroundColor:"rgba(10, 19, 24, 0.8)"},content:{position:"absolute",top:"50%",left:"50%",right:"auto",bottom:"auto",margin:"0",maxHeight:"100%",transform:"translate(-50%, -50%)",border:"none",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"0px",outline:"none",padding:"0",boxShadow:"none",width:"95vw",maxWidth:"842px"}},L=t=>{const{modalIsOpen:a,closeModal:n,width:r,children:s}=t;return e.createElement(l,{isOpen:a,onRequestClose:n,style:f({},y,{content:f({},y.content,{width:r||"90%"})}),contentLabel:"Example Modal",ariaHideApp:!1},s)},N=()=>e.createElement("svg",{width:"150px",height:"100px",viewBox:"0 0 187.3 93.7",preserveAspectRatio:"xMidYMid meet"},e.createElement("path",{id:"loading-outline-bg",opacity:"1",fill:"none",stroke:"#0067A6",strokeWidth:"5",strokeMiterlimit:"10",d:"\t\t\t\tM93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 \t\t\t\tc-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"}),e.createElement("path",{stroke:"#ffffff",id:"loading-outline",fill:"none",strokeWidth:"5",strokeMiterlimit:"10",strokeDasharray:"1, 4",d:"M93.9,46.4c9.3,9.5,13.8,17.9,23.5,17.9s17.5-7.8,17.5-17.5s-7.8-17.6-17.5-17.5c-9.7,0.1-13.3,7.2-22.1,17.1 \t\t\t\tc-8.9,8.8-15.7,17.9-25.4,17.9s-17.5-7.8-17.5-17.5s7.8-17.5,17.5-17.5S86.2,38.6,93.9,46.4z"})),S=()=>e.createElement("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M14 1.91757L12.59 0.507568L7 6.09757L1.41 0.507568L0 1.91757L5.59 7.50757L0 13.0976L1.41 14.5076L7 8.91757L12.59 14.5076L14 13.0976L8.41 7.50757L14 1.91757Z",fill:"currentColor"})),M=()=>e.createElement("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.1671 1.3273L17.9997 9.00002L10.1671 16.6727",stroke:"currentColor",strokeWidth:"2"}),e.createElement("path",{d:"M17.5518 9H0.551758",stroke:"currentColor",strokeWidth:"2"})),A=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 24 24",version:"1.1",viewBox:"0 0 24 24",xmlSpace:"preserve",width:"12",height:"12"},e.createElement("path",{d:"M18.023 24.039a6.293 6.293 0 01-3.411-1.01A50.484 50.484 0 01.993 9.406c-1.606-2.524-1.259-5.747.84-7.846l.774-.774A2.58 2.58 0 014.442.028c.694 0 1.345.269 1.834.758l3.262 3.266a2.597 2.597 0 01-.002 3.667 1.098 1.098 0 00.001 1.549l5.232 5.233c.193.192.468.306.76.306s.567-.114.773-.32c.49-.489 1.141-.759 1.835-.759s1.345.269 1.835.758l3.261 3.26a2.598 2.598 0 010 3.669l-.774.774a6.24 6.24 0 01-4.436 1.85zm-2.581-2.26c.798.5 1.683.757 2.583.757 1.267 0 2.464-.5 3.372-1.408l.774-.774a1.098 1.098 0 000-1.549l-3.26-3.259c-.206-.206-.481-.319-.774-.319s-.568.114-.774.32a2.578 2.578 0 01-1.834.759 2.57 2.57 0 01-1.824-.75l-5.228-5.229a2.598 2.598 0 010-3.669 1.096 1.096 0 00.001-1.545l-.027-.028-3.236-3.239a1.09 1.09 0 00-.773-.318c-.293 0-.568.114-.775.32l-.774.773a4.756 4.756 0 00-.653 5.951 48.97 48.97 0 0013.202 13.207z",fill:"currentColor"})),x=({supportURL:l,ticketSubmissionURL:s,salesContactFormId:o,salesContactPortalId:i,headerHeight:c,showTel:m})=>{const[d,u]=t(!1),[p,h]=t(null),[_,g]=t(!1),[C,E]=t([]),[y,x]=t(""),[H,I]=t(null),[z,T]=t(!1),[B,K]=t(!1),[G,R]=t("left"),[F,V]=t([]),P=a(null),Z=[{url:`tel:${m.replace(/ /g,"").replace(/-/g,"").trim()}`,label:m}];e.useEffect(()=>{fetch("https://api.hubapi.com/cms/v3/hubdb/tables/2678791/rows?portalId=1624307&properties=reps").then(e=>e.json()).then(e=>{fetch("https://api.hubapi.com/cms/v3/hubdb/tables/2657473/rows?portalId=1624307&properties=email").then(e=>e.json()).then(t=>{const a=[...e.results.map(e=>e&&e.values&&e.values.reps&&e.values.reps.map(e=>{const a=t.results.find(t=>t.id===e.id);return a&&a.values&&a.values.email||""}))];V(a)})})},[]);const j=()=>{u(!1)};return n(()=>{let e=localStorage.getItem("savedReps");e&&E(JSON.parse(e))},[]),n(()=>{const e=localStorage.getItem("savedZip");e&&x(e)},[]),n(()=>{if("undefined"!=typeof window){function e(){const e=window.innerWidth-P.current.offsetLeft-P.current.offsetWidth;R(e<200?P.current.offsetLeft<150?"center":"right":"left")}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}},[]),n(()=>{if("undefined"!=typeof window){const e=e=>{const t=e.data;if(t){if(t.error&&"not_in_us"===t.error)return;if(t.error&&("invalid_zip"===t.error||"Invalid zip code"===t.error))return h("Invalid zip code, please try again"),E([]),void g(!1);if(t.error&&"unknown_failure"===t.error)return h("Unknown failure, please try again"),E([]),void g(!1);if(t.type&&"default_zip"===t.type&&t.zip&&(localStorage.getItem("savedZip")||(x(t.zip),g(!0),localStorage.setItem("savedZip",t.zip))),t.type&&"zip_search_result_processed"===t.type&&t.result&&t.result.reps&&t.result.reps.length>0){const e=t.result.reps.map(e=>f({},e,{key:e.key,name:e.name,jobtitle:e.details.jobtitle,sales_image:e.details.sales_image}));return E(e),h(null),g(!1),localStorage.setItem("savedZip",t.zip),void localStorage.setItem("savedReps",JSON.stringify(e))}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}},[]),n(()=>{if("undefined"!=typeof window){function e(e){P.current&&!P.current.contains(e.target)&&j()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}},[P]),e.createElement("div",{className:"contact-component",id:"contact-component",ref:P,style:{"--header-height":c?c+"px":"60px"}},e.createElement("link",{rel:"stylesheet",href:"https://hub.permobil.com/hubfs/permobil-navigator-components/permobil-navigator-components.umd.css"}),e.createElement("button",{"aria-haspopup":"true","aria-expanded":d,tabIndex:"0",onClick:e=>{d?j():u(!0)},className:"contact-component__button "+(d?"dropdown-opened":"dropdown-closed")},e.createElement(w,null),e.createElement("span",null,"Contact")),!!B&&e.createElement("div",{style:{display:"none"}},e.createElement("iframe",{title:"sales-locator",src:"https://hub.permobil.com/sales-locator-find-v2"})),d?e.createElement("div",{className:`contact-component__dropdown contact-component__dropdown--${G}`},e.createElement("div",{className:"contact-component__sales "+(C&&C.length>0&&!_&&y?"contact-component__sales--with-results":"")},!!y&&5===y.length&&e.createElement("div",{style:{display:"none"}},e.createElement("iframe",{title:"sales-locator",src:`https://hub.permobil.com/sales-locator-find-v2?zip=${y}`})),e.createElement("p",{className:"contact-component__sales-title"},e.createElement(v,null)," ",e.createElement("span",null,"Sales")),!_&&(!C||C.length<1)&&e.createElement("div",{className:"contact-component__sales-form"},e.createElement("label",{className:"contact-component__sales-form-label",htmlFor:"zipcode"},"Find a sales specialist near you"),e.createElement("div",{className:"contact-component__sales-form-input"},e.createElement(k,null),e.createElement("input",{type:"text",required:!0,value:y,onChange:e=>{g(!!(e.target.value&&e.target.value.length>=5)),h(null),x(e.target.value)},id:"zipcode",name:"zipcode",maxLength:"5",onKeyPress:e=>{13===e.charCode&&e.preventDefault()},placeholder:"Enter zip code"})),!!p&&e.createElement("p",{className:"contact-component__sales-form-input-error"},p)),!!_&&!!y&&5===y.length&&e.createElement("div",{className:"contact-component__sales-results"},e.createElement("p",{className:"contact-component__sales-searching"},"Searching in zip code ",e.createElement("strong",null,y,"...")),e.createElement("div",{className:"contact-component__sales-loading"},e.createElement(N,null))),e.createElement("div",{className:`contact-component__sales-results-wrapper contact-component__sales-results-wrapper--length-${C.length>3?"3":C.length}`},!!C&&C.length>0&&!_&&!!y&&e.createElement("div",{className:"contact-component__sales-results"},e.createElement("p",{className:"contact-component__sales-results-title"},"Specialists found in ",e.createElement("strong",null,y),e.createElement("br",null),"(",e.createElement("span",{className:"contact-component__sales-results-change",onClick:e=>{e.preventDefault(),E([]),x("")}},"change zip code"),")"),C.slice(0,3).map(t=>e.createElement("div",{className:"contact-component__sales-result",key:t.key},e.createElement("div",{className:"contact-component__sales-result-image",style:{backgroundImage:t.sales_image?`url(${t.sales_image})`:"none"}}),e.createElement("div",{className:"contact-component__sales-result-details"},!!t.name&&e.createElement("p",{className:"contact-component__sales-result-details-name"},t.name),!!t.jobtitle&&e.createElement("p",{className:"contact-component__sales-result-details-jobtitle"},t.jobtitle),e.createElement("button",{className:"contact-component__sales-result-details-button",onClick:e=>{((e,t)=>{e.preventDefault(),j(),t&&I(t)})(e,t)}},"Contact"))))))),l?e.createElement("div",{className:"contact-component__dropdown-support"},e.createElement("a",{href:l,className:"contact-component__dropdown-support-link"},e.createElement(b,null),e.createElement("span",null,"Support"))):null,m&&Z&&Z.length>0?e.createElement("ul",{className:"contact-component__dropdown-menu"},Z.map(t=>e.createElement("li",{key:t.url},e.createElement("a",{href:t.url},e.createElement(A,null),e.createElement("span",null,t.label))))):null):null,e.createElement(L,{modalIsOpen:!!H,closeModal:()=>{I(null),T(!1)}},H?e.createElement("div",{className:"sales-modal"},e.createElement("div",{className:"sales-modal__container"},e.createElement("div",{className:"sales-modal__image",style:{backgroundImage:`url(${H.sales_image})`}}),e.createElement("div",{className:"sales-modal__content"},e.createElement("div",{className:"sales-modal__close"},e.createElement("span",{tabIndex:"0",onClick:e=>{e.preventDefault(),I(null),T(!1)},onKeyPress:e=>{13===e.charCode&&(e.preventDefault(),I(null),T(!1))}},e.createElement(S,null))),z&&H.name?null:e.createElement("h2",{className:"sales-modal__title"},"How can we help you?"),!z&&e.createElement("div",{className:"sales-modal__buttons"},!!s&&e.createElement("a",{href:s,className:"sales-modal__button"},e.createElement("span",null,"I need help with a product I purchased"),e.createElement(M,null)),!!o&&!!i&&e.createElement("button",{className:"sales-modal__button",onClick:()=>{T(!0)}},e.createElement("span",null,"I'd like to buy a new product"),e.createElement(M,null))),!!o&&!!i&&!!z&&e.createElement("div",{style:{display:o&&i&&z?"block":"none"}},e.createElement("div",{className:"sales-modal__form",id:"sales-modal__form"},e.createElement(r,{portalId:i,formId:o,inlineMessage:"Thanks for submitting the form",onSubmit:()=>{},onReady:()=>{const e=document.querySelector("#sales-modal__form form"),t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reps:[{name:H&&H.name||"",email:H&&H.details&&H.details.email||""}]})};fetch("https://us-central1-inboundlabs-test.cloudfunctions.net/permobil-sales-locator",t).then(e=>e.json()).then(t=>{const a=t&&t.reps&&t.reps[0]&&t.reps[0].email||H&&H.details&&H.details.email||"",n=[{name:"sales_rep_name",value:t&&t.reps&&t.reps[0]&&t.reps[0].name||H&&H.name||""},{name:"sales_rep_email",value:t&&t.reps&&t.reps[0]&&t.reps[0].email||H&&H.details&&H.details.email||""},{name:"sales_locator_extra_email",value:a},{name:"entered_zip",value:y||""},{name:"sales_rep_owner_id",value:t&&t.reps&&t.reps[0]&&t.reps[0].ownerId||H&&H.ownerId||"30630617"},{name:"sales_locator_form_mode",value:""}];for(let t=0;t<n.length;t++){let a=e.querySelector(`[name=${n[t].name}]`);a&&(a.value=n[t].value,a.dispatchEvent(new Event("change")))}if(a)for(let t=0;t<F.length;t++){let n=F[t].map(e=>e.toLowerCase()),r=n.indexOf(a.toLowerCase());if(r<0)continue;n.splice(r,1);let l=e.querySelector("[name=sales_locator_extra_email]");l&&(l.value=n[0]||"",l.dispatchEvent(new Event("change"))),l=e.querySelector("[name=sales_locator_extra_email_2]"),l&&(l.value=n[1]||"",l.dispatchEvent(new Event("change"))),l=e.querySelector("[name=sales_locator_extra_email_3]"),l&&(l.value=n[2]||"",l.dispatchEvent(new Event("change")))}})},loading:e.createElement("div",null,e.createElement("h2",{className:"sales-modal__title"},"Loading form..."),e.createElement("div",{style:{textAlign:"center"}},e.createElement(N,null)))})))))):null))},H=()=>e.createElement("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M26.4844 22.4451C26.3555 22.1873 26.0117 22.1013 25.7539 22.2302L24.0352 23.1326L21.3711 17.2458C21.2422 16.9021 20.8125 16.6013 20.4688 16.6013H13.8086L13.5078 14.5388H19.6094C19.8672 14.5388 20.125 14.324 20.125 14.0232V12.9919C20.125 12.7341 19.8672 12.4763 19.6094 12.4763H13.25L12.8203 9.38257C13.8516 9.25366 14.668 8.35132 14.582 7.23413C14.5391 6.20288 13.6797 5.34351 12.6055 5.30054C11.4453 5.2146 10.5 6.15991 10.5 7.32007C10.5 7.53491 10.3711 6.67554 11.875 17.8044C11.918 18.3201 12.3477 18.6638 12.9062 18.6638H19.7812L22.5742 24.9373C22.832 25.4958 23.4336 25.7107 23.9922 25.4529L26.6992 24.0779C26.957 23.949 27.043 23.6482 26.9141 23.3904L26.4844 22.4451ZM18.4492 20.7263H17.9336C17.4609 23.3044 15.2266 25.1951 12.5625 25.1951C9.51172 25.1951 7.0625 22.7458 7.0625 19.6951C7.0625 17.8474 8.00781 16.1716 9.42578 15.1833L9.125 12.949C6.67578 14.1951 5 16.7732 5 19.6951C5 23.906 8.35156 27.2576 12.5625 27.2576C15.5703 27.2576 18.1914 25.4958 19.3945 22.9177L18.4492 20.7263Z",fill:"currentColor"})),I=()=>e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.12666 11.7828C8.95791 11.9516 8.95791 12.2328 9.12666 12.4016L12.7642 16.0578C12.9517 16.2266 13.2329 16.2266 13.4017 16.0578L13.8329 15.6266C14.0017 15.4578 14.0017 15.1766 13.8329 14.9891L10.9454 12.0828L13.8329 9.19531C14.0017 9.00781 14.0017 8.72656 13.8329 8.55781L13.4017 8.12656C13.2329 7.95781 12.9517 7.95781 12.7642 8.12656L9.12666 11.7828Z",fill:"currentColor"})),z=()=>e.createElement("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.9375 9.38257C13.5508 9.38257 13.25 9.68335 13.25 10.113V10.8005C13.25 11.1443 13.5078 11.4451 13.8945 11.4451C17.5469 11.7029 20.4688 14.7107 20.7695 18.363C20.8125 18.7498 21.1133 19.0076 21.457 19.0076H22.1445C22.5312 19.0076 22.875 18.7068 22.875 18.3201C22.4883 13.5505 18.707 9.76929 13.9375 9.38257ZM13.9375 5.25757C13.5508 5.25757 13.25 5.60132 13.25 5.98804V6.67554C13.25 7.01929 13.5078 7.32007 13.8945 7.36304C19.8242 7.66382 24.6367 12.4333 24.9375 18.363C24.9375 18.7498 25.2383 19.0076 25.582 19.0076H26.2695C26.6562 19.0076 27 18.7068 27 18.3201C26.6133 11.2732 20.9844 5.64429 13.9375 5.25757ZM10.8867 14.8826H10.5C10.1133 14.8826 9.8125 15.2263 9.8125 15.5701V16.9451C9.8125 17.3318 10.1133 17.6326 10.5 17.6326H10.9297C12.9492 17.6326 14.7109 19.3083 14.582 21.3279C14.4961 23.0466 13.1211 24.4216 11.4023 24.5076C9.38281 24.6365 7.75 22.8748 7.75 20.8552V10.0701C7.75 9.72632 7.40625 9.38257 7.0625 9.38257H5.6875C5.30078 9.38257 5 9.72632 5 10.0701V20.7693C5 24.3357 7.83594 27.3865 11.4023 27.2576C14.625 27.1716 17.2461 24.5505 17.332 21.2849C17.4609 17.7615 14.4102 14.8826 10.8867 14.8826Z",fill:"#0067A6"})),T=()=>e.createElement("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M24.1055 9.46851L20.5391 5.85913C20.1523 5.47241 19.5938 5.25757 19.0781 5.25757H10.3125C9.15234 5.25757 8.25 6.20288 8.25 7.32007V25.1951C8.25 26.3552 9.15234 27.2576 10.3125 27.2576H22.6875C23.8047 27.2576 24.75 26.3552 24.75 25.1951V10.9294C24.75 10.4138 24.4922 9.85522 24.1055 9.46851ZM22.5156 10.7576H19.25V7.49194L22.5156 10.7576ZM10.3125 25.1951V7.32007H17.1875V11.7888C17.1875 12.3904 17.6172 12.8201 18.2188 12.8201H22.6875V25.1951H10.3125ZM21.0547 19.0505C20.5391 18.5349 19.0352 18.6638 18.2617 18.7498C17.5312 18.3201 17.0586 17.6755 16.7148 16.7732C16.8438 16.0857 17.1445 15.0115 16.9297 14.3669C16.7578 13.2498 15.2969 13.3357 15.082 14.1091C14.9102 14.7966 15.082 15.7849 15.3828 16.988C14.9531 18.0193 14.3086 19.3943 13.8789 20.2107C13.0195 20.6404 11.8594 21.3279 11.6875 22.1873C11.5586 22.8748 12.8047 24.5505 14.9531 20.8552C15.8984 20.5115 16.9727 20.1248 17.875 19.9529C18.6914 20.4255 19.6367 20.6833 20.2812 20.6833C21.3984 20.6833 21.4844 19.4802 21.0547 19.0505ZM12.5469 22.4021C12.7617 21.8005 13.5781 21.113 13.8359 20.8982C13.0195 22.1873 12.5469 22.4021 12.5469 22.4021ZM16.0273 14.1951C16.3711 14.1951 16.3281 15.5701 16.1133 15.9568C15.9414 15.3552 15.9414 14.1951 16.0273 14.1951ZM14.9961 20.0818C15.4258 19.3513 15.7695 18.4919 16.0703 17.7185C16.4141 18.363 16.8438 18.8787 17.3594 19.2224C16.457 19.4373 15.6836 19.781 14.9961 20.0818ZM20.625 19.8669C20.625 19.8669 20.4102 20.1248 19.0352 19.5232C20.5391 19.3943 20.7969 19.738 20.625 19.8669Z",fill:"#0067A6"})),B={"products-at":"Product pages",academy_resources_production:"Academy Resources"},K={Webinar:()=>e.createElement("svg",{width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.371 18.978C22.5616 19.3586 22.5412 19.8109 22.3169 20.1728C22.0926 20.5347 21.6967 20.7543 21.271 20.753H2.727C2.30105 20.7549 1.9047 20.5354 1.68032 20.1733C1.45594 19.8112 1.43575 19.3586 1.627 18.978L3 14.749H21L22.371 18.978Z",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M5.99986 2.75299H4.50586C3.67743 2.75299 3.00586 3.42456 3.00586 4.25299V14.753H20.9999V4.25299C20.9999 3.42456 20.3283 2.75299 19.4999 2.75299H17.9999",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M11.25 17.751H12.75",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 6.50299C13.4497 6.50299 14.625 5.32774 14.625 3.87799C14.625 2.42824 13.4497 1.25299 12 1.25299C10.5503 1.25299 9.375 2.42824 9.375 3.87799C9.375 5.32774 10.5503 6.50299 12 6.50299Z",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.5 11.753C7.5 9.26771 9.51472 7.25299 12 7.25299C14.4853 7.25299 16.5 9.26771 16.5 11.753H7.5Z",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),Guide:()=>e.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M17.5003 14.25L15.8243 13C15.4793 12.7412 15.0429 12.6359 14.6179 12.7087C14.1928 12.7816 13.8164 13.0262 13.5773 13.385V13.385C13.2262 13.9119 13.2262 14.5981 13.5773 15.125C20.9773 21.856 19.7473 19.342 19.7473 22.505",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M16.7471 9C21.9941 12 24.2471 12 24.2471 22.5",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M13.7471 21H3.24707C2.41864 21 1.74707 20.3284 1.74707 19.5V3C1.74707 2.17157 2.41864 1.5 3.24707 1.5H15.2471C16.0755 1.5 16.7471 2.17157 16.7471 3V10.5",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M1.74707 17.25H10.7471",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M5.49707 6H12.9971",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M5.49707 9H12.2471",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M5.49707 12H7.74707",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),Video:()=>e.createElement("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 23.3229H9L9.75 19.0029H14.25L15 23.3229V23.3229Z",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.75 23.3229H17.25",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.72287C0.75 3.06601 2.09315 1.72287 3.75 1.72287H20.25C21.9069 1.72287 23.25 3.06602 23.25 4.72287V16.0029C23.25 17.6597 21.9069 19.0029 20.25 19.0029H3.75C2.09315 19.0029 0.75 17.6597 0.75 16.0029V4.72287Z",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 13.4118V7.31487C8.25002 7.05545 8.39539 6.8161 8.63056 6.68832C8.86572 6.56054 9.15431 6.56408 9.386 6.69759L14.678 9.74559C14.9043 9.87563 15.0428 10.1102 15.0428 10.3633C15.0428 10.6165 14.9043 10.8511 14.678 10.9811L9.386 14.0291C9.15431 14.1626 8.86572 14.1662 8.63056 14.0384C8.39539 13.9106 8.25002 13.6712 8.25 13.4118H8.25Z",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),PDF:()=>e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5149 6.723C8.44361 6.20585 8.27061 5.70794 8.0059 5.258C7.73201 4.80367 7.24708 4.5185 6.7169 4.5C6.0331 4.57363 5.48698 5.10285 5.3919 5.784C5.3175 6.45331 5.49074 7.12669 5.8789 7.677C7.10182 9.0864 8.4167 10.4133 9.8149 11.649C11.3801 12.9173 13.151 13.908 15.0509 14.578C15.5716 14.8206 16.1406 14.9417 16.7149 14.932C17.3026 14.9083 17.8106 14.5143 17.9799 13.951C18.0432 13.4917 17.8591 13.0331 17.4959 12.745C17.1343 12.4669 16.7092 12.2831 16.2589 12.21C14.466 11.9482 12.6361 12.1422 10.9379 12.774C9.3159 13.274 4.5759 14.841 4.7939 18.826C4.79367 18.9585 4.82413 19.0892 4.8829 19.208C5.05964 19.4409 5.3546 19.5515 5.6409 19.492C6.35124 19.3534 6.97086 18.9232 7.3489 18.306C8.4419 16.763 8.5559 14.796 8.6989 12.975C8.90984 10.8919 8.84798 8.79012 8.5149 6.723V6.723Z",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.81 5.55999C23.091 5.84119 23.2489 6.22245 23.249 6.61999V21C23.2485 22.2419 22.2419 23.2484 21 23.249H3.00002C2.40329 23.2493 1.83088 23.0125 1.40874 22.5907C0.986596 22.1689 0.749289 21.5967 0.749024 21V2.99999C0.748758 2.40291 0.985831 1.8302 1.40803 1.408C1.83024 0.985801 2.40294 0.748728 3.00002 0.748993H17.378C17.7759 0.748813 18.1576 0.90673 18.439 1.18799L22.81 5.55999Z",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.249 0.748993V5.24899C17.249 6.07742 17.9206 6.74899 18.749 6.74899H23.249",stroke:"#0067A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),QuickStartGuide:()=>e.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M14.4998 22.5L11.5708 20.156C11.0687 19.7573 10.8455 19.1023 10.9998 18.48V18.48C11.1202 17.9981 11.4529 17.5969 11.9043 17.3895C12.3556 17.182 12.8767 17.1906 13.3208 17.413L14.4998 18V12.75C14.4998 11.9216 15.1714 11.25 15.9998 11.25V11.25C16.8283 11.25 17.4998 11.9216 17.4998 12.75V15.75L19.4928 16.082C20.9394 16.323 21.9997 17.5745 21.9998 19.041V22.5",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M6.24707 6H13.7471",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M6.24707 9H13.7471",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M6.24707 12H9.99707",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M8.50007 18H3.24707C2.41864 18 1.74707 17.3284 1.74707 16.5V3C1.74707 2.17157 2.41864 1.5 3.24707 1.5H22.7471C23.5755 1.5 24.2471 2.17157 24.2471 3V15",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M19.7471 1.5V10.5",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),FundingGuide:()=>e.createElement("svg",{width:"24",height:"21",viewBox:"0 0 24 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.25 12.452C17.25 10.96 19.912 10.099 22.729 10.004C22.8608 9.99768 22.9906 10.0377 23.096 10.117C23.1913 10.1875 23.2483 10.2985 23.25 10.417V16.969C23.2248 17.2116 23.0135 17.3916 22.77 17.378C20.8077 17.3437 18.8818 17.9097 17.25 19C15.619 17.9072 13.693 17.3388 11.73 17.371C11.4867 17.3841 11.2757 17.2043 11.25 16.962V10.413C11.2517 10.2945 11.3087 10.1835 11.404 10.113C11.5094 10.0337 11.6392 9.99368 11.771 10C14.588 10.1 17.25 10.96 17.25 12.452Z",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M17.25 12.452V19.003",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M8.25003 15.253H1.75003C1.19386 15.2464 0.747246 14.7922 0.750033 14.236V2.021C0.745584 1.46346 1.19252 1.00714 1.75003 1H17.75C18.3066 1.00659 18.7534 1.4614 18.75 2.018V7.108",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M4.66309 19.003H8.25009",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M8.25 15.253V19.003",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M7.74974 5.04288H5.71674C5.07314 5.04216 4.51963 5.48018 4.39755 6.08681C4.27546 6.69345 4.61918 7.29788 5.21674 7.52736L7.28074 8.31936C7.87691 8.54964 8.21936 9.15332 8.09741 9.75903C7.97547 10.3647 7.42336 10.8024 6.78074 10.8029H4.74974",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M6.25 5.04288V4.32288",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M6.25 11.5229V10.8029",stroke:"#0067A6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))},G="domain=hub.permobil.com&domain=permobil.com&domain=academy.permobil.com",R=Object.keys({af_NA:"Afrikaans (Namibia)",af_ZA:"Afrikaans (South Africa)",af:"Afrikaans",ak_GH:"Akan (Ghana)",ak:"Akan",sq_AL:"Albanian (Albania)",sq:"Albanian",am_ET:"Amharic (Ethiopia)",am:"Amharic",ar_DZ:"Arabic (Algeria)",ar_BH:"Arabic (Bahrain)",ar_EG:"Arabic (Egypt)",ar_IQ:"Arabic (Iraq)",ar_JO:"Arabic (Jordan)",ar_KW:"Arabic (Kuwait)",ar_LB:"Arabic (Lebanon)",ar_LY:"Arabic (Libya)",ar_MA:"Arabic (Morocco)",ar_OM:"Arabic (Oman)",ar_QA:"Arabic (Qatar)",ar_SA:"Arabic (Saudi Arabia)",ar_SD:"Arabic (Sudan)",ar_SY:"Arabic (Syria)",ar_TN:"Arabic (Tunisia)",ar_AE:"Arabic (United Arab Emirates)",ar_YE:"Arabic (Yemen)",ar:"Arabic",hy_AM:"Armenian (Armenia)",hy:"Armenian",as_IN:"Assamese (India)",as:"Assamese",asa_TZ:"Asu (Tanzania)",asa:"Asu",az_Cyrl:"Azerbaijani (Cyrillic)",az_Cyrl_AZ:"Azerbaijani (Cyrillic, Azerbaijan)",az_Latn:"Azerbaijani (Latin)",az_Latn_AZ:"Azerbaijani (Latin, Azerbaijan)",az:"Azerbaijani",bm_ML:"Bambara (Mali)",bm:"Bambara",eu_ES:"Basque (Spain)",eu:"Basque",be_BY:"Belarusian (Belarus)",be:"Belarusian",bem_ZM:"Bemba (Zambia)",bem:"Bemba",bez_TZ:"Bena (Tanzania)",bez:"Bena",bn_BD:"Bengali (Bangladesh)",bn_IN:"Bengali (India)",bn:"Bengali",bs_BA:"Bosnian (Bosnia and Herzegovina)",bs:"Bosnian",bg_BG:"Bulgarian (Bulgaria)",bg:"Bulgarian",my_MM:"Burmese (Myanmar [Burma])",my:"Burmese",yue_Hant_HK:"Cantonese (Traditional, Hong Kong SAR China)",ca_ES:"Catalan (Spain)",ca:"Catalan",tzm_Latn:"Central Morocco Tamazight (Latin)",tzm_Latn_MA:"Central Morocco Tamazight (Latin, Morocco)",tzm:"Central Morocco Tamazight",chr_US:"Cherokee (United States)",chr:"Cherokee",cgg_UG:"Chiga (Uganda)",cgg:"Chiga",zh_Hans:"Chinese (Simplified Han)",zh_Hans_CN:"Chinese (Simplified Han, China)",zh_Hans_HK:"Chinese (Simplified Han, Hong Kong SAR China)",zh_Hans_MO:"Chinese (Simplified Han, Macau SAR China)",zh_Hans_SG:"Chinese (Simplified Han, Singapore)",zh_Hant:"Chinese (Traditional Han)",zh_Hant_HK:"Chinese (Traditional Han, Hong Kong SAR China)",zh_Hant_MO:"Chinese (Traditional Han, Macau SAR China)",zh_Hant_TW:"Chinese (Traditional Han, Taiwan)",zh:"Chinese",kw_GB:"Cornish (United Kingdom)",kw:"Cornish",hr_HR:"Croatian (Croatia)",hr:"Croatian",cs_CZ:"Czech (Czech Republic)",cs:"Czech",da_DK:"Danish (Denmark)",da:"Danish",nl_BE:"Dutch (Belgium)",nl_NL:"Dutch (Netherlands)",nl:"Dutch",ebu_KE:"Embu (Kenya)",ebu:"Embu",en_AS:"English (American Samoa)",en_AU:"English (Australia)",en_BE:"English (Belgium)",en_BZ:"English (Belize)",en_BW:"English (Botswana)",en_CA:"English (Canada)",en_GU:"English (Guam)",en_HK:"English (Hong Kong SAR China)",en_IN:"English (India)",en_IE:"English (Ireland)",en_IL:"English (Israel)",en_JM:"English (Jamaica)",en_MT:"English (Malta)",en_MH:"English (Marshall Islands)",en_MU:"English (Mauritius)",en_NA:"English (Namibia)",en_NZ:"English (New Zealand)",en_MP:"English (Northern Mariana Islands)",en_PK:"English (Pakistan)",en_PH:"English (Philippines)",en_SG:"English (Singapore)",en_ZA:"English (South Africa)",en_TT:"English (Trinidad and Tobago)",en_UM:"English (U.S. Minor Outlying Islands)",en_VI:"English (U.S. Virgin Islands)",en_GB:"English (United Kingdom)",en_US:"English (United States)",en_ZW:"English (Zimbabwe)",en:"English",eo:"Esperanto",et_EE:"Estonian (Estonia)",et:"Estonian",ee_GH:"Ewe (Ghana)",ee_TG:"Ewe (Togo)",ee:"Ewe",fo_FO:"Faroese (Faroe Islands)",fo:"Faroese",fil_PH:"Filipino (Philippines)",fil:"Filipino",fi_FI:"Finnish (Finland)",fi:"Finnish",fr_BE:"French (Belgium)",fr_BJ:"French (Benin)",fr_BF:"French (Burkina Faso)",fr_BI:"French (Burundi)",fr_CM:"French (Cameroon)",fr_CA:"French (Canada)",fr_CF:"French (Central African Republic)",fr_TD:"French (Chad)",fr_KM:"French (Comoros)",fr_CG:"French (Congo - Brazzaville)",fr_CD:"French (Congo - Kinshasa)",fr_CI:"French (Côte d’Ivoire)",fr_DJ:"French (Djibouti)",fr_GQ:"French (Equatorial Guinea)",fr_FR:"French (France)",fr_GA:"French (Gabon)",fr_GP:"French (Guadeloupe)",fr_GN:"French (Guinea)",fr_LU:"French (Luxembourg)",fr_MG:"French (Madagascar)",fr_ML:"French (Mali)",fr_MQ:"French (Martinique)",fr_MC:"French (Monaco)",fr_NE:"French (Niger)",fr_RW:"French (Rwanda)",fr_RE:"French (Réunion)",fr_BL:"French (Saint Barthélemy)",fr_MF:"French (Saint Martin)",fr_SN:"French (Senegal)",fr_CH:"French (Switzerland)",fr_TG:"French (Togo)",fr:"French",ff_SN:"Fulah (Senegal)",ff:"Fulah",gl_ES:"Galician (Spain)",gl:"Galician",lg_UG:"Ganda (Uganda)",lg:"Ganda",ka_GE:"Georgian (Georgia)",ka:"Georgian",de_AT:"German (Austria)",de_BE:"German (Belgium)",de_DE:"German (Germany)",de_LI:"German (Liechtenstein)",de_LU:"German (Luxembourg)",de_CH:"German (Switzerland)",de:"German",el_CY:"Greek (Cyprus)",el_GR:"Greek (Greece)",el:"Greek",gu_IN:"Gujarati (India)",gu:"Gujarati",guz_KE:"Gusii (Kenya)",guz:"Gusii",ha_Latn:"Hausa (Latin)",ha_Latn_GH:"Hausa (Latin, Ghana)",ha_Latn_NE:"Hausa (Latin, Niger)",ha_Latn_NG:"Hausa (Latin, Nigeria)",ha:"Hausa",haw_US:"Hawaiian (United States)",haw:"Hawaiian",he_IL:"Hebrew (Israel)",he:"Hebrew",hi_IN:"Hindi (India)",hi:"Hindi",hu_HU:"Hungarian (Hungary)",hu:"Hungarian",is_IS:"Icelandic (Iceland)",is:"Icelandic",ig_NG:"Igbo (Nigeria)",ig:"Igbo",id_ID:"Indonesian (Indonesia)",id:"Indonesian",ga_IE:"Irish (Ireland)",ga:"Irish",it_IT:"Italian (Italy)",it_CH:"Italian (Switzerland)",it:"Italian",ja_JP:"Japanese (Japan)",ja:"Japanese",kea_CV:"Kabuverdianu (Cape Verde)",kea:"Kabuverdianu",kab_DZ:"Kabyle (Algeria)",kab:"Kabyle",kl_GL:"Kalaallisut (Greenland)",kl:"Kalaallisut",kln_KE:"Kalenjin (Kenya)",kln:"Kalenjin",kam_KE:"Kamba (Kenya)",kam:"Kamba",kn_IN:"Kannada (India)",kn:"Kannada",kk_Cyrl:"Kazakh (Cyrillic)",kk_Cyrl_KZ:"Kazakh (Cyrillic, Kazakhstan)",kk:"Kazakh",km_KH:"Khmer (Cambodia)",km:"Khmer",ki_KE:"Kikuyu (Kenya)",ki:"Kikuyu",rw_RW:"Kinyarwanda (Rwanda)",rw:"Kinyarwanda",kok_IN:"Konkani (India)",kok:"Konkani",ko_KR:"Korean (South Korea)",ko:"Korean",khq_ML:"Koyra Chiini (Mali)",khq:"Koyra Chiini",ses_ML:"Koyraboro Senni (Mali)",ses:"Koyraboro Senni",lag_TZ:"Langi (Tanzania)",lag:"Langi",lv_LV:"Latvian (Latvia)",lv:"Latvian",lt_LT:"Lithuanian (Lithuania)",lt:"Lithuanian",luo_KE:"Luo (Kenya)",luo:"Luo",luy_KE:"Luyia (Kenya)",luy:"Luyia",mk_MK:"Macedonian (Macedonia)",mk:"Macedonian",jmc_TZ:"Machame (Tanzania)",jmc:"Machame",kde_TZ:"Makonde (Tanzania)",kde:"Makonde",mg_MG:"Malagasy (Madagascar)",mg:"Malagasy",ms_BN:"Malay (Brunei)",ms_MY:"Malay (Malaysia)",ms:"Malay",ml_IN:"Malayalam (India)",ml:"Malayalam",mt_MT:"Maltese (Malta)",mt:"Maltese",gv_GB:"Manx (United Kingdom)",gv:"Manx",mr_IN:"Marathi (India)",mr:"Marathi",mas_KE:"Masai (Kenya)",mas_TZ:"Masai (Tanzania)",mas:"Masai",mer_KE:"Meru (Kenya)",mer:"Meru",mfe_MU:"Morisyen (Mauritius)",mfe:"Morisyen",naq_NA:"Nama (Namibia)",naq:"Nama",ne_IN:"Nepali (India)",ne_NP:"Nepali (Nepal)",ne:"Nepali",nd_ZW:"North Ndebele (Zimbabwe)",nd:"North Ndebele",nb_NO:"Norwegian Bokmål (Norway)",nb:"Norwegian Bokmål",nn_NO:"Norwegian Nynorsk (Norway)",nn:"Norwegian Nynorsk",nyn_UG:"Nyankole (Uganda)",nyn:"Nyankole",or_IN:"Oriya (India)",or:"Oriya",om_ET:"Oromo (Ethiopia)",om_KE:"Oromo (Kenya)",om:"Oromo",ps_AF:"Pashto (Afghanistan)",ps:"Pashto",fa_AF:"Persian (Afghanistan)",fa_IR:"Persian (Iran)",fa:"Persian",pl_PL:"Polish (Poland)",pl:"Polish",pt_BR:"Portuguese (Brazil)",pt_GW:"Portuguese (Guinea-Bissau)",pt_MZ:"Portuguese (Mozambique)",pt_PT:"Portuguese (Portugal)",pt:"Portuguese",pa_Arab:"Punjabi (Arabic)",pa_Arab_PK:"Punjabi (Arabic, Pakistan)",pa_Guru:"Punjabi (Gurmukhi)",pa_Guru_IN:"Punjabi (Gurmukhi, India)",pa:"Punjabi",ro_MD:"Romanian (Moldova)",ro_RO:"Romanian (Romania)",ro:"Romanian",rm_CH:"Romansh (Switzerland)",rm:"Romansh",rof_TZ:"Rombo (Tanzania)",rof:"Rombo",ru_MD:"Russian (Moldova)",ru_RU:"Russian (Russia)",ru_UA:"Russian (Ukraine)",ru:"Russian",rwk_TZ:"Rwa (Tanzania)",rwk:"Rwa",saq_KE:"Samburu (Kenya)",saq:"Samburu",sg_CF:"Sango (Central African Republic)",sg:"Sango",seh_MZ:"Sena (Mozambique)",seh:"Sena",sr_Cyrl:"Serbian (Cyrillic)",sr_Cyrl_BA:"Serbian (Cyrillic, Bosnia and Herzegovina)",sr_Cyrl_ME:"Serbian (Cyrillic, Montenegro)",sr_Cyrl_RS:"Serbian (Cyrillic, Serbia)",sr_Latn:"Serbian (Latin)",sr_Latn_BA:"Serbian (Latin, Bosnia and Herzegovina)",sr_Latn_ME:"Serbian (Latin, Montenegro)",sr_Latn_RS:"Serbian (Latin, Serbia)",sr:"Serbian",sn_ZW:"Shona (Zimbabwe)",sn:"Shona",ii_CN:"Sichuan Yi (China)",ii:"Sichuan Yi",si_LK:"Sinhala (Sri Lanka)",si:"Sinhala",sk_SK:"Slovak (Slovakia)",sk:"Slovak",sl_SI:"Slovenian (Slovenia)",sl:"Slovenian",xog_UG:"Soga (Uganda)",xog:"Soga",so_DJ:"Somali (Djibouti)",so_ET:"Somali (Ethiopia)",so_KE:"Somali (Kenya)",so_SO:"Somali (Somalia)",so:"Somali",es_AR:"Spanish (Argentina)",es_BO:"Spanish (Bolivia)",es_CL:"Spanish (Chile)",es_CO:"Spanish (Colombia)",es_CR:"Spanish (Costa Rica)",es_DO:"Spanish (Dominican Republic)",es_EC:"Spanish (Ecuador)",es_SV:"Spanish (El Salvador)",es_GQ:"Spanish (Equatorial Guinea)",es_GT:"Spanish (Guatemala)",es_HN:"Spanish (Honduras)",es_419:"Spanish (Latin America)",es_MX:"Spanish (Mexico)",es_NI:"Spanish (Nicaragua)",es_PA:"Spanish (Panama)",es_PY:"Spanish (Paraguay)",es_PE:"Spanish (Peru)",es_PR:"Spanish (Puerto Rico)",es_ES:"Spanish (Spain)",es_US:"Spanish (United States)",es_UY:"Spanish (Uruguay)",es_VE:"Spanish (Venezuela)",es:"Spanish",sw_KE:"Swahili (Kenya)",sw_TZ:"Swahili (Tanzania)",sw:"Swahili",sv_FI:"Swedish (Finland)",sv_SE:"Swedish (Sweden)",sv:"Swedish",gsw_CH:"Swiss German (Switzerland)",gsw:"Swiss German",shi_Latn:"Tachelhit (Latin)",shi_Latn_MA:"Tachelhit (Latin, Morocco)",shi_Tfng:"Tachelhit (Tifinagh)",shi_Tfng_MA:"Tachelhit (Tifinagh, Morocco)",shi:"Tachelhit",dav_KE:"Taita (Kenya)",dav:"Taita",ta_IN:"Tamil (India)",ta_LK:"Tamil (Sri Lanka)",ta:"Tamil",te_IN:"Telugu (India)",te:"Telugu",teo_KE:"Teso (Kenya)",teo_UG:"Teso (Uganda)",teo:"Teso",th_TH:"Thai (Thailand)",th:"Thai",bo_CN:"Tibetan (China)",bo_IN:"Tibetan (India)",bo:"Tibetan",ti_ER:"Tigrinya (Eritrea)",ti_ET:"Tigrinya (Ethiopia)",ti:"Tigrinya",to_TO:"Tonga (Tonga)",to:"Tonga",tr_TR:"Turkish (Turkey)",tr:"Turkish",uk_UA:"Ukrainian (Ukraine)",uk:"Ukrainian",ur_IN:"Urdu (India)",ur_PK:"Urdu (Pakistan)",ur:"Urdu",uz_Arab:"Uzbek (Arabic)",uz_Arab_AF:"Uzbek (Arabic, Afghanistan)",uz_Cyrl:"Uzbek (Cyrillic)",uz_Cyrl_UZ:"Uzbek (Cyrillic, Uzbekistan)",uz_Latn:"Uzbek (Latin)",uz_Latn_UZ:"Uzbek (Latin, Uzbekistan)",uz:"Uzbek",vi_VN:"Vietnamese (Vietnam)",vi:"Vietnamese",vun_TZ:"Vunjo (Tanzania)",vun:"Vunjo",cy_GB:"Welsh (United Kingdom)",cy:"Welsh",yo_NG:"Yoruba (Nigeria)",yo:"Yoruba",zu_ZA:"Zulu (South Africa)",zu:"Zulu"}).filter(e=>"en_US"!==e).map(e=>`pathPrefix=${e.toLowerCase().replace("_","-")}`).join("&"),F=({algoliaAppID:r,algoliaSearchKey:l,algoliaIndices:h,headerHeight:_,hsPortalId:g})=>{const C=a(null),[E,w]=t(!1),[v,b]=t(!1),[k,y]=t([]),[L,N]=t(0),[M,A]=t([]),[x,F]=t(0),[V,P]=t(""),Z=s(r,l),j=f({},Z,{search:e=>(e.map(e=>("academy_resources_production"==e.indexName&&(e.params.filters="published:1 AND market.name:USA"),e)),e.every(({params:e})=>!e.query)?Promise.resolve({results:e.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0}))}):Z.search(e))}),U=e=>{e&&(window.location.href=e)},D=(e,t)=>{e.preventDefault(),b(t)},O=e=>{e.preventDefault(),b(!1)},q=async(e,t=4)=>{const a=await fetch(`https://api.hubapi.com/contentsearch/v2/search?portalId=${g}&term=${e}&type=BLOG_POST&length=SHORT&limit=${t}&${G}&${R}&matchPrefix=false`),n=await a.json();n&&n.results?(y(n.results),N(n.total)):(y([]),N(0))},W=async(e,t=4)=>{const a=await fetch(`https://api.hubapi.com/contentsearch/v2/search?portalId=${g}&term=${e}&type=SITE_PAGE&type=LANDING_PAGE&length=SHORT&limit=${t}&${G}&${R}&matchPrefix=false`),n=await a.json();n&&n.results?(A(n.results),F(n.total)):(A([]),F(0))},$=({hit:t})=>{try{return e.createElement("span",{className:"search-component__results-hit",onClick:()=>{U(t.url)}},e.createElement("span",{className:"search-component__results-hit-icon"},e.createElement(H,null)),e.createElement("span",{className:"search-component__results-hit-details"},e.createElement("span",{className:"search-component__results-hit-title"},t.title),e.createElement("span",{className:"search-component__results-hit-url"},t.url)))}catch(e){return console.log("renderProductsHit error -> ",e),null}},Y=({hit:t})=>{try{const{name:a}=t.type||{name:null},{name:n}=t.format||{name:null};let r="PDF";t.title.toLowerCase().includes("Quick Start Guide".toLowerCase())?r="QuickStartGuide":"MP4"==n?r="Video":"Webinars"==a?r="Webinar":"Guides"==a?r="Guide":"Funding References"==a?r="FundingGuide":"PDF"==n&&(r="PDF");let l="https://academy.permobilus.com/en-us/resource/";return e.createElement("span",{className:"search-component__results-hit",onClick:()=>{U(l+t.path)}},e.createElement("span",{className:"search-component__results-hit-icon"},e.createElement(K[r])),e.createElement("span",{className:"search-component__results-hit-details"},e.createElement("span",{className:"search-component__results-hit-title"},t.title),e.createElement("span",{className:"search-component__results-hit-tags"},(t.audience||[]).map(t=>e.createElement("span",null,t.name)))))}catch(e){return console.log("renderAcademyHit error -> ",e),null}},J=o(({searchState:t,searchResults:a,children:n,idx:r})=>a&&0!==a.nbHits?e.createElement("div",null,n,a.nbHits>4&&!v&&e.createElement("div",{className:"search-component__results-see-all"},e.createElement("button",{onClick:e=>{D(e,r)}},"See all"))):e.createElement("div",{className:"search-component__results-empty"},'No results have been found for "',t.query,'" in ',B[r])),Q=i(({items:t,refine:a})=>e.createElement("button",{onClick:()=>{b(!1),a(t)},disabled:!t.length},e.createElement(S,null))),X=o(({searchState:t})=>{const a=v&&"blog"===v?k:k.slice(0,4);return!k||v&&"blog"!==v?null:e.createElement("div",{className:"search-component__results-index"},e.createElement("p",{className:"search-component__results-index-title"},"Blog"),e.createElement("div",{className:"search-component__results-index-hits"},k&&k.length>0?e.createElement("div",null,e.createElement("ul",null,a.map(t=>e.createElement("li",{key:`${t.url}${t.rowId?"-"+t.rowId:""}`},e.createElement("span",{className:"search-component__results-hit",onClick:()=>{U(t.url)}},e.createElement("span",{className:"search-component__results-hit-icon"},e.createElement(z,null)),e.createElement("span",{className:"search-component__results-hit-details"},e.createElement("span",{className:"search-component__results-hit-title"},t.title.replace(/(<([^>]+)>)/gi,"")),e.createElement("span",{className:"search-component__results-hit-url"},t.url)))))),e.createElement("div",null,L>4&&!v&&e.createElement("div",{className:"search-component__results-see-all"},e.createElement("button",{onClick:e=>{D(e,"blog")}},"See all")))):e.createElement("div",{className:"search-component__results-empty"},'No results have been found for "',t.query,'" in Blog')))}),ee=o(({searchState:t})=>{const a=v&&"site"===v?M:M.slice(0,4);return!M||v&&"site"!==v?null:e.createElement("div",{className:"search-component__results-index"},e.createElement("p",{className:"search-component__results-index-title"},"Website pages"),e.createElement("div",{className:"search-component__results-index-hits"},M&&M.length>0?e.createElement("div",null,e.createElement("ul",null,a.map(t=>e.createElement("li",{key:`${t.url}${t.rowId?"-"+t.rowId:""}`},e.createElement("span",{className:"search-component__results-hit",onClick:()=>{U(t.url)}},e.createElement("span",{className:"search-component__results-hit-icon"},e.createElement(T,null)),e.createElement("span",{className:"search-component__results-hit-details"},e.createElement("span",{className:"search-component__results-hit-title"},t.title.replace(/(<([^>]+)>)/gi,"")),e.createElement("span",{className:"search-component__results-hit-url"},t.url)))))),e.createElement("div",null,x>4&&!v&&e.createElement("div",{className:"search-component__results-see-all"},e.createElement("button",{onClick:e=>{D(e,"site")}},"See all")))):e.createElement("div",{className:"search-component__results-empty"},'No results have been found for "',t.query,'" in Website Pages')))}),te=o(({searchState:t})=>{let a="";try{a=location.hostname}catch(e){}let n="";try{n=location.pathname}catch(e){}let r=[...h,"blog","site"];const l=new RegExp("^academy.permo.*"),s=new RegExp("^hub.permo.*"),o=new RegExp("^/blog(/.*){0,1}");let i="";return i=l.test(a)?"academy_resources_production":s.test(a)?o.test(n)?"blog":"site":"products-at",r=r.reduce((e,t)=>t==i?[t,...e]:[...e,t],[]),t&&t.query?e.createElement("div",{className:"search-component__results-wrapper"},e.createElement("div",{className:"search-component__results"},e.createElement("div",{className:"search-component__results-header"},v?e.createElement("button",{className:"search-component__results-back",onClick:O},e.createElement(I,null),e.createElement("span",null,'Back to all results for "',t.query,'"')):e.createElement("p",null,'Searching for "',t.query,'"'),e.createElement(Q,{clearsQuery:!0})),e.createElement("div",{className:"search-component__results-container"},!!h&&r.filter(e=>!v||e===v).map(t=>e.createElement(e.Fragment,{key:t},(t=>{const a={"products-at":$,academy_resources_production:Y};return"blog"==t?X():"site"==t?ee():e.createElement("div",{className:"search-component__results-index"},!!B[t]&&e.createElement("p",{className:"search-component__results-index-title"},B[t]),e.createElement("div",{className:"search-component__results-index-hits"},e.createElement(d,{indexName:t},e.createElement(J,{idx:t},e.createElement(u,{hitsPerPage:v?1e3:4,filters:"academy_resources_production"===t?"published:1":void 0}),e.createElement(p,{hitComponent:a[t]})))))})(t)))))):null});function ae(e){C.current&&!C.current.contains(e.target)&&w(!1)}return n(()=>{"blog"===v&&q(V,100),"site"===v&&W(V,100)},[v]),n(()=>{if("undefined"!=typeof window)return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[]),r&&l&&h&&h.length>0?e.createElement(c,{searchClient:j,indexName:h[0]},e.createElement("div",{className:"search-component",id:"search-component",ref:C,style:{"--header-height":_?_+"px":"60px"}},e.createElement("div",{className:"search-component__searchbox"},e.createElement(m,{translations:{submitTitle:"Submit your search query.",resetTitle:"Clear your search query.",placeholder:"Search Permobil..."},onFocus:()=>{w(!0)},onChange:e=>{w(!0),g&&(e.target.value?(q(e.target.value),W(e.target.value)):(y([]),A([]))),P(e.target.value)},onReset:()=>{b(!1),w(!1),y([]),A([])}})),E?te():null)):e.createElement(e.Fragment,null)},V=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 208.24 281.34",version:"1.1",viewBox:"0 0 208.24 281.34",xmlSpace:"preserve",width:"18",height:"18"},e.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"13"},e.createElement("path",{d:"M113.04 72.18c15.34 2.02 29.35-8.28 31.29-23.01s-8.93-28.3-24.27-30.32c-15.34-2.02-29.35 8.28-31.29 23.01s8.93 28.31 24.27 30.32z"}),e.createElement("path",{d:"M110.53 91.23c8.77 1.15 14.97 8.91 13.87 17.33l-8.02 60.95 39.68 5.22c6.01.79 11.08 4.77 13.09 10.29l17.79 48.85c2.93 8.05-1.45 16.78-9.79 19.51-8.34 2.73-17.47-1.57-20.4-9.62h0l-14.52-39.85-45.73-6.02c-8.77-1.15-14.97-8.91-13.87-17.33l4.49-34.09 3.47-27.51-24.35 34.74h0c-4.91 7.01-14.85 8.81-22.2 4.01-7.35-4.8-9.32-14.37-4.41-21.38l29.82-42.58c3.37-4.81 9.3-7.35 15.31-6.55l25.77 4.03z"}),e.createElement("path",{d:"M130.29 238.19c-19.87 28.84-59.42 37.26-88.35 18.81-28.93-18.45-36.28-56.8-16.41-85.64"}))),P={container:(e,t)=>f({},e,{margin:"0 16px 0 0",flex:1}),control:(e,t)=>f({},e,{boxShadow:"none",border:"1px solid #DCDDDE",minHeight:64,borderRadius:4}),indicatorSeparator:(e,t)=>f({},e,{display:"none"}),menu:(e,t)=>f({},e,{padding:"21px 0",border:"1px solid #CCCCCC",boxShadow:"0px 0px 5px rgba(0, 0, 0, 0.17)",top:"100%"}),option:(e,t)=>f({},e,{padding:"11px 32px",fontSize:"13px",lineHeight:"16px",backgroundColor:t.isFocused||t.isSelected?"#F5F8FA":"transparent",color:"#191919"}),singleValue:(e,t)=>f({},e,{fontSize:"13px",lineHeight:"16px",borderColor:"#ccc"}),placeholder:(e,t)=>f({},e,{fontSize:"13px",lineHeight:"16px"})},Z=["children"],j=r=>{const{isOpened:l,onClose:s,selectedCategory:o,menuItems:c,setSelectedCategory:m}=r,d=a(null),[u,p]=t([]),w=a(),v=()=>{s(),p([])};i(({items:t})=>{const a=t.find(e=>"categories"===e.attribute);return a?e.createElement("span",null,a.currentRefinement):null});const b=i(({items:t,refine:a})=>t.length>0||u.length>0?e.createElement("div",{className:"products-display-component__results-refinements"},t.filter(e=>"tags.ID"!==e.attribute).map(t=>e.createElement("button",{key:t.label,onClick:e=>{e.preventDefault(),a(t.value)}},e.createElement("span",null,t.currentRefinement),e.createElement("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.14648 3.875L7.35938 1.68359L7.81055 1.23242C7.875 1.16797 7.875 1.06055 7.81055 0.974609L7.33789 0.501953C7.25195 0.4375 7.14453 0.4375 7.08008 0.501953L4.4375 3.16602L1.77344 0.501953C1.70898 0.4375 1.60156 0.4375 1.51562 0.501953L1.04297 0.974609C0.978516 1.06055 0.978516 1.16797 1.04297 1.23242L3.70703 3.875L1.04297 6.53906C0.978516 6.60352 0.978516 6.71094 1.04297 6.79688L1.51562 7.26953C1.60156 7.33398 1.70898 7.33398 1.77344 7.26953L4.4375 4.60547L6.62891 6.81836L7.08008 7.26953C7.14453 7.33398 7.25195 7.33398 7.33789 7.26953L7.81055 6.79688C7.875 6.71094 7.875 6.60352 7.81055 6.53906L5.14648 3.875Z",fill:"#A7A9AC"})))),t.filter(e=>"tags.ID"===e.attribute).map(t=>e.createElement(e.Fragment,{key:t.label},t.items.map(t=>e.createElement("button",{key:t.label.split("::")[0],onClick:e=>{e.preventDefault(),a(t.value)}},e.createElement("span",null,t.label.split("::")[0]),e.createElement("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.14648 3.875L7.35938 1.68359L7.81055 1.23242C7.875 1.16797 7.875 1.06055 7.81055 0.974609L7.33789 0.501953C7.25195 0.4375 7.14453 0.4375 7.08008 0.501953L4.4375 3.16602L1.77344 0.501953C1.70898 0.4375 1.60156 0.4375 1.51562 0.501953L1.04297 0.974609C0.978516 1.06055 0.978516 1.16797 1.04297 1.23242L3.70703 3.875L1.04297 6.53906C0.978516 6.60352 0.978516 6.71094 1.04297 6.79688L1.51562 7.26953C1.60156 7.33398 1.70898 7.33398 1.77344 7.26953L4.4375 4.60547L6.62891 6.81836L7.08008 7.26953C7.14453 7.33398 7.25195 7.33398 7.33789 7.26953L7.81055 6.79688C7.875 6.71094 7.875 6.60352 7.81055 6.53906L5.14648 3.875Z",fill:"#A7A9AC"})))))),"Accessories"===o&&u.map(t=>e.createElement("button",{key:t,onClick:e=>{e.preventDefault(),p([...u.filter(e=>e!==t)])}},e.createElement("span",null,t),e.createElement("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.14648 3.875L7.35938 1.68359L7.81055 1.23242C7.875 1.16797 7.875 1.06055 7.81055 0.974609L7.33789 0.501953C7.25195 0.4375 7.14453 0.4375 7.08008 0.501953L4.4375 3.16602L1.77344 0.501953C1.70898 0.4375 1.60156 0.4375 1.51562 0.501953L1.04297 0.974609C0.978516 1.06055 0.978516 1.16797 1.04297 1.23242L3.70703 3.875L1.04297 6.53906C0.978516 6.60352 0.978516 6.71094 1.04297 6.79688L1.51562 7.26953C1.60156 7.33398 1.70898 7.33398 1.77344 7.26953L4.4375 4.60547L6.62891 6.81836L7.08008 7.26953C7.14453 7.33398 7.25195 7.33398 7.33789 7.26953L7.81055 6.79688C7.875 6.71094 7.875 6.60352 7.81055 6.53906L5.14648 3.875Z",fill:"#A7A9AC"}))))):null),k=h(({items:t,currentRefinement:a,refine:n})=>{const r=[];t.forEach(e=>{const t=e.label.split("::")[1];r.includes(t)||r.push(t)});const l=(e,t)=>e.label.split("::")[0]>t.label.split("::")[0]?1:t.label.split("::")[0]>e.label.split("::")[0]?-1:0,s=r.sort((e,t)=>e>t?1:t>e?-1:0),o=s.find(e=>"Categories"===e)?["Categories",...s.filter(e=>"Categories"!==e)]:s;return r&&r.length>0?e.createElement("div",{className:"products-display-component__filters-features opened"},e.createElement("div",{className:"products-display-component__filters-features-container"},e.createElement("div",{className:"products-display-component__filters-features-wrapper"},o.map(r=>e.createElement("div",{key:r},e.createElement("span",{className:"products-display-component__filters-checkbox-list-title"},r),e.createElement("ul",{className:"products-display-component__filters-checkbox-list"},t.filter(e=>e.label.split("::")[1]===r).sort(l).map(t=>e.createElement("li",{key:r+"-"+t.label},e.createElement("label",{className:"ais-RefinementList-label"},e.createElement("input",{className:"ais-RefinementList-checkbox",type:"checkbox",checked:a.includes(t.label),value:t.value,onChange:e=>{n(t.value)}}),e.createElement("span",{className:"ais-RefinementList-labelText"},t.label.split("::")[0]," (",t.count,")")))))))))):null}),y=t=>{let a=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)t.indexOf(a=l[n])>=0||(r[a]=e[a]);return r}(t,Z);const n=a.getValue()[0];return e.createElement(E.SingleValue,a,e.createElement("div",{className:"products-display-component__category-select-value"},e.createElement("div",{className:"products-display-component__category-select-value-image",style:{backgroundImage:`url(${n.image})`}}),e.createElement("div",{className:"products-display-component__category-select-value-title"},n.title)))},L=h(({refine:t})=>e.createElement(e.Fragment,null,e.createElement(C,{placeholder:"Select an option",className:"products-display-component__custom-select-container",classNamePrefix:"products-display-component__custom-select",value:c.find(e=>e.categoryName===o),onChange:(e,a)=>{m(e.categoryName),p([]),t([o,...c.filter(e=>e.categoryName!==o).map(e=>`${"Accessories"===o&&"Power Wheelchairs"===e.categoryName?"":"-"}${e.categoryName}`)]),w.current&&(w.current.scrollTop=0)},options:c,theme:e=>f({},e,{borderRadius:4,colors:f({},e.colors,{primary25:"#F5F8FA",primary:"#0067A6"})}),styles:P,components:{SingleValue:y}})));return n(()=>{function e(e){d.current&&!d.current.contains(e.target)&&v()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d]),n(()=>{l?document.querySelector("body").classList.add("products-display-opened"):document.querySelector("body").classList.remove("products-display-opened")},[l]),l?e.createElement("div",{className:"products-display-component",ref:d},e.createElement("div",{className:"products-display-component__filters"},e.createElement("div",{className:"products-display-component__filters-header"},e.createElement(L,{attribute:"categories",defaultRefinement:[..."Accessories"===o&&u.length<1?[o]:"Accessories"===o&&u.length>0?[o,...u]:"SmartDrive"===o||"Connect"===o?[o]:[o,...c.filter(e=>e.categoryName!==o).map(e=>`-${e.categoryName}`)]],limit:100,operator:"and"}),e.createElement("svg",{style:{marginLeft:"auto"},onClick:v,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.0469 8L14.875 3.21875L15.8594 2.23438C16 2.09375 16 1.85938 15.8594 1.67188L14.8281 0.640625C14.6406 0.5 14.4062 0.5 14.2656 0.640625L8.5 6.45312L2.6875 0.640625C2.54688 0.5 2.3125 0.5 2.125 0.640625L1.09375 1.67188C0.953125 1.85938 0.953125 2.09375 1.09375 2.23438L6.90625 8L1.09375 13.8125C0.953125 13.9531 0.953125 14.1875 1.09375 14.375L2.125 15.4062C2.3125 15.5469 2.54688 15.5469 2.6875 15.4062L8.5 9.59375L13.2812 14.4219L14.2656 15.4062C14.4062 15.5469 14.6406 15.5469 14.8281 15.4062L15.8594 14.375C16 14.1875 16 13.9531 15.8594 13.8125L10.0469 8Z",fill:"currentColor"}))),e.createElement("div",{className:"products-display-component__filters-body",ref:w},e.createElement(k,{limit:100,attribute:"tags.ID",operator:"and"}))),e.createElement("div",{className:"products-display-component__results"},e.createElement("div",{className:"products-display-component__results-header"},e.createElement(b,{transformItems:e=>e.filter(e=>"categories"!==e.attribute)}),e.createElement("div",{className:"products-display-component__results-title"},e.createElement(_,{translations:{stats:e=>e}}),o,(()=>{const t=c.find(e=>e.categoryName===o);return t&&t.ctaUrl?e.createElement("div",{className:"products-display-component__results-cta"},e.createElement("a",{href:t.ctaUrl,style:{backgroundColor:t.ctaBgColor?t.ctaBgColor:"#0067a6",color:t.ctaTextColor?t.ctaTextColor:"#ffffff"}},e.createElement("span",null,t.ctaLabel),e.createElement("svg",{style:{width:30,height:30},viewBox:"0 0 24 24"},e.createElement("path",{fill:"currentColor",d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"})))):null})())),e.createElement("div",{className:"products-display-component__results-body"},e.createElement(g,{hitComponent:({hit:t})=>e.createElement("a",{href:t.url,className:"products-display-component__results-hit"},e.createElement("div",{className:"products-display-component__results-hit-image",style:{backgroundImage:`url(${t.media&&t.media.thumbnails&&t.media.thumbnails.large?t.media.thumbnails.large:""})`}}),e.createElement("div",{className:"products-display-component__results-hit-text"},e.createElement("span",null,t.title)))})))):null},U=({algoliaAppID:r,algoliaSearchKey:l,algoliaIndexName:i,hsPortalId:d})=>{const[u,h]=t(!1),[_,g]=t("left"),[C,E]=t(null),w=a(null),{menuItems:v}=(()=>{const[t,a]=e.useState([]),[n,r]=e.useState(!1),[l,s]=e.useState(null);return e.useEffect(()=>{(async()=>{try{await(async()=>{r(!0);const e=await fetch("https://permobil-product-explorer-airtables-api.vercel.app/navigator-product-categories.php"),t=await e.json();t?(a(t),s(null)):(s("No categories found"),a([])),r(!1)})()}catch(e){s("No categories found"),a([])}})()},[]),{menuItems:t,loading:n,error:l}})(),b=s(r,l),k=f({},b,{search:e=>e.every(({params:e})=>!(e.query||e.facets&&e.facets.length||e.facetFilters))?Promise.resolve({results:e.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0}))}):b.search(e)}),y=(e,t)=>{L(),"undefined"!=typeof window&&t.url&&(window.location.href=t.url)},L=()=>{h(!1)},N=({hit:t})=>e.createElement("p",{tabIndex:"0",onKeyPress:e=>{((e,t)=>{13===e.charCode&&y(0,t)})(e,t)},onClick:e=>{y(0,t)}},t.title),S=o(({searchState:t,searchResults:a})=>t&&t.query?a&&0!==a.nbHits?e.createElement(p,{hitComponent:N}):e.createElement("p",{className:"products-component__search-no-results"},"Nothing found in Products"):M()),M=()=>e.createElement("ul",{className:"products-component__dropdown-menu",role:"menu"},!!v&&v.length>0&&v.map((t,a)=>e.createElement("li",{key:`${t.title}-${a}`},e.createElement("a",{href:t.url,role:"menuitem",className:"products-component__dropdown-menu-item",onClick:e=>{((e,t)=>{e.preventDefault(),L(),E(t.categoryName)})(e,t)}},e.createElement("div",{className:"products-component__dropdown-menu-item-image",style:{backgroundImage:`url(${t.image})`}}),e.createElement("div",{className:"products-component__dropdown-menu-item-text"},e.createElement("p",{className:"products-component__dropdown-menu-item-subtitle"},t.subtitle),e.createElement("p",{className:"products-component__dropdown-menu-item-title"},t.title))))));return n(()=>{if("undefined"!=typeof window){function e(){if(w.current){const e=window.innerWidth-w.current.offsetLeft-w.current.offsetWidth;g(e<200?w.current.offsetLeft<150?"center":"right":"left")}}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}},[]),n(()=>{if("undefined"!=typeof window){function e(e){w.current&&!w.current.contains(e.target)&&L()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}},[w]),r&&l&&i&&v&&v.length?e.createElement(e.Fragment,null,e.createElement(c,{searchClient:k,indexName:i},e.createElement("div",{className:"products-component",id:"products-component",ref:w},e.createElement("button",{"aria-haspopup":"true","aria-expanded":u,onClick:e=>{u?L():h(!0)},tabIndex:"0",className:"products-component__button "+(u?"dropdown-opened":"dropdown-closed")},e.createElement(V,null),e.createElement("span",null,"Products")),u?e.createElement("div",{className:`products-component__dropdown products-component__dropdown--${_}`},e.createElement(m,{translations:{submitTitle:"Submit your search query.",resetTitle:"Clear your search query.",placeholder:"Search a product..."},onReset:()=>{}}),S()):null)),e.createElement(c,{searchClient:k,indexName:i},e.createElement(j,{isOpened:!!C,onClose:()=>{E(null)},selectedCategory:C,setSelectedCategory:E,menuItems:v,hsPortalId:d}))):null},D=()=>e.createElement("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.3945 8.88477C10.3438 8.93555 10.3438 8.98633 10.3438 9.03711V11.9062H1.40625V2.96875H7.52539C7.57617 2.96875 7.62695 2.96875 7.67773 2.91797L8.49023 2.10547C8.61719 1.97852 8.51562 1.75 8.33789 1.75H1.40625C0.720703 1.75 0.1875 2.30859 0.1875 2.96875V11.9062C0.1875 12.5918 0.720703 13.125 1.40625 13.125H10.3438C11.0039 13.125 11.5625 12.5918 11.5625 11.9062V8.22461C11.5625 8.04688 11.334 7.94531 11.207 8.07227L10.3945 8.88477ZM14.3555 3.78125C14.9395 3.19727 14.9395 2.25781 14.3555 1.67383L13.2637 0.582031C12.6797 -0.00195312 11.7402 -0.00195312 11.1562 0.582031L4.50391 7.23438L4.25 9.54492C4.17383 10.2051 4.73242 10.7637 5.39258 10.6875L7.70312 10.4336L14.3555 3.78125ZM11.8672 4.54297L7.14453 9.26562L5.46875 9.46875L5.67188 7.79297L10.3945 3.07031L11.8672 4.54297ZM13.4922 2.53711C13.6191 2.63867 13.6191 2.79102 13.5176 2.91797L12.7305 3.70508L11.2578 2.20703L12.0195 1.44531C12.1211 1.31836 12.2988 1.31836 12.4004 1.44531L13.4922 2.53711Z",fill:"currentColor"})),O=()=>e.createElement("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M11.4766 6.14258L12.2891 5.68555C12.5176 5.55859 12.6445 5.2793 12.5684 5C12.2891 3.93359 11.7051 2.96875 10.9434 2.18164C10.7402 2.00391 10.4355 1.95312 10.207 2.08008L9.39453 2.5625C9.19141 2.41016 8.81055 2.18164 8.55664 2.08008V1.14062C8.55664 0.886719 8.35352 0.607422 8.09961 0.556641C7.05859 0.277344 5.91602 0.277344 4.875 0.556641C4.5957 0.632812 4.41797 0.861328 4.41797 1.14062V2.08008C4.16406 2.18164 3.7832 2.41016 3.58008 2.5625L2.76758 2.08008C2.53906 1.95312 2.23438 2.00391 2.03125 2.18164C1.26953 2.96875 0.685547 3.93359 0.40625 5C0.330078 5.2793 0.457031 5.55859 0.685547 5.68555L1.49805 6.14258C1.47266 6.29492 1.47266 6.49805 1.47266 6.625C1.47266 6.77734 1.47266 6.98047 1.49805 7.10742L0.685547 7.58984C0.457031 7.7168 0.330078 7.99609 0.40625 8.27539C0.685547 9.3418 1.26953 10.3066 2.03125 11.0938C2.23438 11.2715 2.53906 11.3223 2.76758 11.1953L3.58008 10.7129C3.7832 10.8652 4.16406 11.0938 4.41797 11.1953V12.1348C4.41797 12.3887 4.62109 12.668 4.875 12.7188C5.91602 12.998 7.05859 12.998 8.09961 12.7188C8.37891 12.6426 8.55664 12.4141 8.55664 12.1348V11.1953C8.81055 11.0938 9.19141 10.8652 9.39453 10.7129L10.207 11.1953C10.4355 11.3223 10.7402 11.2715 10.9434 11.0938C11.7051 10.3066 12.2891 9.3418 12.5684 8.27539C12.6445 7.99609 12.5176 7.7168 12.2891 7.58984L11.4766 7.10742C11.502 6.80273 11.502 6.47266 11.4766 6.14258ZM10.1309 7.76758L11.248 8.40234C11.0957 8.85938 10.6895 9.51953 10.3848 9.875L9.26758 9.24023C8.45508 9.92578 8.35352 10.002 7.33789 10.3574V11.6523C7.10938 11.6777 6.72852 11.7285 6.5 11.7285C6.24609 11.7285 5.86523 11.6777 5.63672 11.6523V10.3574C4.62109 10.002 4.49414 9.92578 3.70703 9.24023L2.58984 9.875C2.28516 9.51953 1.87891 8.85938 1.72656 8.40234L2.84375 7.76758C2.64062 6.70117 2.64062 6.57422 2.84375 5.50781L1.72656 4.87305C1.92969 4.33984 2.20898 3.83203 2.58984 3.40039L3.70703 4.03516C4.51953 3.34961 4.62109 3.27344 5.63672 2.91797V1.62305C5.86523 1.59766 6.24609 1.54688 6.5 1.54688C6.72852 1.54688 7.10938 1.59766 7.33789 1.62305V2.91797C8.35352 3.27344 8.48047 3.34961 9.26758 4.03516L10.3848 3.40039C10.6895 3.75586 11.0957 4.41602 11.248 4.87305L10.1309 5.50781C10.334 6.57422 10.334 6.70117 10.1309 7.76758ZM6.5 4.1875C5.1543 4.1875 4.0625 5.30469 4.0625 6.625C4.0625 7.9707 5.1543 9.0625 6.5 9.0625C7.82031 9.0625 8.9375 7.9707 8.9375 6.625C8.9375 5.30469 7.82031 4.1875 6.5 4.1875ZM6.5 7.84375C5.81445 7.84375 5.28125 7.31055 5.28125 6.625C5.28125 5.96484 5.81445 5.40625 6.5 5.40625C7.16016 5.40625 7.71875 5.96484 7.71875 6.625C7.71875 7.31055 7.16016 7.84375 6.5 7.84375Z",fill:"currentColor"})),q=()=>e.createElement("svg",{width:"13",height:"11",viewBox:"0 0 13 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M2.4375 0.75C1.0918 0.75 0 1.8418 0 3.1875V8.0625C0 9.4082 1.0918 10.5 2.4375 10.5H4.57031C4.72266 10.5 4.875 10.373 4.875 10.1953V9.58594C4.875 9.43359 4.72266 9.28125 4.57031 9.28125H2.4375C1.75195 9.28125 1.21875 8.74805 1.21875 8.0625V3.1875C1.21875 2.52734 1.75195 1.96875 2.4375 1.96875H4.57031C4.72266 1.96875 4.875 1.8418 4.875 1.66406V1.05469C4.875 0.902344 4.72266 0.75 4.57031 0.75H2.4375ZM8.30273 1.25781L7.79492 1.76562C7.66797 1.86719 7.66797 2.07031 7.79492 2.19727L10.6641 4.96484H4.36719C4.18945 4.96484 4.0625 5.11719 4.0625 5.26953V5.98047C4.0625 6.1582 4.18945 6.28516 4.36719 6.28516H10.6641L7.79492 9.07812C7.66797 9.20508 7.66797 9.4082 7.79492 9.50977L8.30273 10.0176C8.4043 10.1445 8.60742 10.1445 8.73438 10.0176L12.8984 5.85352C13.0254 5.72656 13.0254 5.54883 12.8984 5.42188L8.73438 1.25781C8.60742 1.13086 8.4043 1.13086 8.30273 1.25781Z",fill:"currentColor"})),W=({preferencesURL:r})=>{const l=a(null),[s,o]=t(null),[i,c]=t(!1),[m,d]=t(!1),[u,p]=t("left"),[h,_]=t(null);return n(()=>{if("undefined"!=typeof window){function e(){const e=window.innerWidth-l.current.offsetLeft-l.current.offsetWidth;p(e<200?l.current.offsetLeft<150?"center":"right":"left")}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}},[]),n(()=>{"undefined"!=typeof window&&window&&window.booya&&window.booya.ready(function(){_(window.booya)})},[]),n(()=>{h&&(h.on(h.events.IDENTIFY_FAILED,function(e){console.log("auth failed"),o(null)}),h.on(h.events.IDENTIFY_SUCCESS,function(e){console.log("auth success"),o(e.user),d(!1)}),h.on(h.events.PROFILE_UPDATE_SUCCESS,function(e){console.log("profile submitted"),setTimeout(()=>{d(!1)},1e3)}))},[h]),n(()=>{function e(e){l.current&&!l.current.contains(e.target)&&c(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l]),e.createElement("div",{className:"user-component",id:"contact-component",ref:l},s&&s.id?e.createElement(e.Fragment,null,e.createElement("button",{className:"user-component__user-button "+(i?"user-component__user-button--opened":""),"aria-haspopup":"true","aria-expanded":i,tabIndex:"0",onClick:e=>{c(!i)}},!!s.avatar&&e.createElement("span",{className:"user-component__user-button-avatar",style:{backgroundImage:`url(${s.avatar})`}}),e.createElement("span",{className:"user-component__user-button-name"},s.first_name)),i?e.createElement("div",{className:`user-component__dropdown user-component__dropdown--${u}`},e.createElement("ul",null,e.createElement("li",null,e.createElement("a",{href:"#edit-profile",onClick:e=>{e.preventDefault(),h&&(d(!0),setTimeout(()=>{h.widgets.renderProfileForm("<h3>Edit Profile</h3>",null,null,{target:"#booya-wrapper"})},100))}},e.createElement(D,null),e.createElement("span",null,"Edit Profile"))),!!r&&e.createElement("li",null,e.createElement("a",{href:r},e.createElement(O,null),e.createElement("span",null,"Preferences"))),e.createElement("li",null,e.createElement("a",{href:"#logout",onClick:e=>{e.preventDefault(),h&&h.logOut()}},e.createElement(q,null),e.createElement("span",null,"Logout"))))):null):e.createElement(e.Fragment,null,e.createElement("button",{className:"user-component__auth-button",onClick:e=>{h&&setTimeout(()=>{h.widgets.renderAuthWidgets({modal:{isOpen:!0}})},100)}},"Sign In")),e.createElement(L,{modalIsOpen:!!m,closeModal:()=>{d(!1)},width:"auto"},e.createElement("div",{className:"user-component__modal"},e.createElement("div",{id:"booya-wrapper"}))))};export{x as Contact,U as Products,F as Search,W as User};
  //# sourceMappingURL=index.modern.js.map
  