1var t1=Object.defineProperty,i1=Object.defineProperties;var s1=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var _=(t,i,s)=>i in t?t1(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,q=(t,i)=>{for(var s in i||(i={}))z.call(i,s)&&_(t,s,i[s]);if(k)for(var s of k(i))G.call(i,s)&&_(t,s,i[s]);return t},E=(t,i)=>i1(t,s1(i));var N=(t,i)=>{var s={};for(var n in t)z.call(t,n)&&i.indexOf(n)<0&&(s[n]=t[n]);if(t!=null&&k)for(var n of k(t))i.indexOf(n)<0&&G.call(t,n)&&(s[n]=t[n]);return s};var S=(t,i,s)=>new Promise((n,h)=>{var d=u=>{try{p(s.next(u))}catch(C){h(C)}},L=u=>{try{p(s.throw(u))}catch(C){h(C)}},p=u=>u.done?n(u.value):Promise.resolve(u.value).then(d,L);p((s=s.apply(t,i)).next())});import{aS as o,B as f,T as j,r as c,j as e,h as n1,i as a1}from"./vendor.CYM1i3H9.js";import{p as m,aj as F,bk as W,l as Z,bl as H,f as v,bm as o1,G as r1,bn as l1,bo as A,bp as c1,bq as p1,br as d1,bs as Q,bt as h1,bu as x1,i as U,j as K}from"./shared.CcrhZAEO.js";import{E as m1,f as $}from"./equipmentList.C-DkMS9E.js";import{Y as u1,W as I}from"./vendor-alpha.BuJrCbgH.js";import{r as C1}from"../index.DKfes_ao.js";const g1=o(f)` 2 width: 100%; 3`,X=o(j)` 4 color: ${m.primary.main}; 5 font-size: 14px; 6 font-style: normal; 7 font-weight: 700; 8 line-height: 32px; 9 letter-spacing: 0.35px; 10 cursor: pointer; 11`,f1=o(X)` 12 width: 144px; 13 height: 42px; 14 color: ${m.custom.darkGrey}; 15 display: flex; 16 align-items: center; 17 justify-content: center; 18 border-radius: 5px; 19 border: 1px solid ${m.primary.main}; 20 text-transform: uppercase; 21`,H1=o(g1)` 22 margin-top: 25px; 23 .equipment-list-wrapper > *:not(:last-child) { 24 margin-bottom: 0px !important; 25 box-shadow: none; 26 border-radius: 5px; 27 28 &:nth-child(even) { 29 background: #f6f6f6; 30 } 31 } 32 .esr-equipment-webflow-list-item { 33 box-shadow: none; 34 background-blend-mode: overlay; 35 .esr-cp-item-card { 36 box-shadow: none; 37 } 38 .esr-cp-item-image-block { 39 grid-area: Area; 40 } 41 .esr-cp-item-image { 42 mix-blend-mode: darken; 43 } 44 } 45 46 .esr-equipment-list-price { 47 .MuiButtonBase-root { 48 width: 189px; 49 } 50 @media (max-width: 767px) { 51 grid-area: Area-3; 52 width: 100% !important; 53 .MuiButtonBase-root { 54 width: 100%; 55 } 56 } 57 } 58`,L1=o(f,{shouldForwardProp:t=>t!=="isFlexEnd"})` 59 display: flex; 60 justify-content: ${t=>t.isFlexEnd?"flex-end":"space-between"}; 61 align-items: center; 62 margin-top: 25px; 63 height: 40px; 64 color: rgba(36, 36, 45, 0.8); 65 @media (max-width: 767px) { 66 display: flex; 67 justify-content: center; 68 flex-direction: column-reverse; 69 height: auto; 70 gap: 10px; 71 } 72`,V1=o(X)` 73 margin-left: auto; 74 color: ${m.custom.darkGrey}; 75 text-align: right; 76 display: contents; 77`,O=o(f)` 78 display: flex; 79 justify-content: center; 80 align-items: center; 81 height: 100px; 82 width: 100%; 83`;function w1(){const[t,i]=c.useState(null),[s,n]=c.useState(!0),[h,d]=c.useState(0),[L,p]=c.useState(0),[u,C]=c.useState(!1),[g,M]=c.useState(null),y=new URLSearchParams(window.location.search).get("query")||null,D=()=>S(this,null,function*(){i(!0),n(!0);try{if(y){const a=yield W(y,1,$);M(a);const l=a.pagination.object_count,w=l<$?l:a.pagination.page_number*a.pagination.page_size;C(a.pagination.has_more_items),d(w),p(l);const r=document.getElementById("es-search-result-count");r&&(r.textContent=`(${l})`)}}catch(a){Z("error","error at initData Fn in EquipmentList Component"),C(!1)}i(!1),n(!1)}),x=()=>S(this,null,function*(){var a,l;i(!0);try{if(y){const w=(a=g==null?void 0:g.pagination)!=null&&a.page_number?((l=g==null?void 0:g.pagination)==null?void 0:l.page_number)+1:2,r=yield W(y,w,$);M(V=>{var B;return{equipment_classes:[...(B=V==null?void 0:V.equipment_classes)!=null?B:[],...r.equipment_classes],pagination:r.pagination}}),C(r.pagination.has_more_items),d(V=>V+r.equipment_classes.length)}}catch(w){Z("error","error at handleShowmore Fn in EquipmentList Component")}i(!1)}),b=()=>{const a=document.getElementById("es-search-results-webflow");a&&a.parentNode&&a.parentNode.removeChild(a)};return c.useEffect(()=>{D(),b()},[]),e.jsx(H1,{children:s?e.jsx(O,{children:e.jsx(F,{})}):L===0?e.jsx(f,{children:"No matching results."}):e.jsxs(f,{className:"equipment-list-wrapper",children:[g==null?void 0:g.equipment_classes.map(a=>e.jsx(m1,{equipmentClass:a},a.equipment_class_id)),e.jsxs(L1,{isFlexEnd:!t&&!u,children:[t&&e.jsx(O,{children:e.jsx(F,{})}),!t&&u&&e.jsx(f1,{onClick:x,children:"See more"}),!t&&e.jsxs(V1,{children:["Showing ",h," of ",L]})]})]})})}const b1=o(f)` 84 width: 100%; 85 margin-top: 25px; 86`,y1=o(f)` 87 display: flex; 88 flex-direction: row; 89 align-items: center; 90 gap: 16px 35px; 91 padding: 24px 35px 24px 29px; 92 margin-bottom: 13px; 93 border: 1px solid ${m.collection.grey.d225}; 94 border-radius: 8px; 95 background: ${m.custom.white}; 96 box-sizing: border-box; 97 98 @media (max-width: ${H.values.md}px) { 99 gap: 16px; 100 padding: 24px 20px; 101 } 102 103 @media (max-width: ${H.values.sm}px) { 104 gap: 14px; 105 padding: 0; 106 border: none; 107 } 108`,j1=o(f)` 109 display: flex; 110 flex: 1; 111 flex-direction: row; 112 gap: 16px 32px; 113 min-width: 0; 114 align-items: center; 115 116 @media (max-width: ${H.values.md}px) { 117 gap: 16px; 118 } 119 120 @media (max-width: ${H.values.sm}px) { 121 flex-direction: column; 122 align-items: stretch; 123 gap: 4px; 124 } 125`,S1=o(f)` 126 flex: 1 1 40%; 127 min-width: 150px; 128 max-width: 360px; 129 @media (max-width: ${H.values.sm}px) { 130 flex: 1 1 auto; 131 max-width: none; 132 } 133`,M1=o(j)` 134 color: ${m.primary.main}; 135 font-size: 16px; 136 font-weight: ${v.regular}; 137 line-height: 24px; 138 letter-spacing: 0.4px; 139 text-transform: capitalize; 140 margin-bottom: 6px; 141 min-width: 150px; 142 143 @media (max-width: ${H.values.sm}px) { 144 margin-bottom: 0px; 145 } 146`,P=o(j)` 147 font-size: 20px; 148 font-weight: ${v.heavy}; 149 color: ${m.custom.black};
150 line-height: 26px; 151 text-transform: capitalize; 152 font-family: ${o1.condensed}; 153 overflow: hidden; 154 text-overflow: ellipsis; 155 display: -webkit-box; 156 -webkit-box-orient: vertical; 157 -webkit-line-clamp: 3; 158 159 :hover { 160 text-decoration: underline; 161 } 162`;P.defaultProps={variant:"h3"};const k1=o(j)` 163 flex: 1 1 40%; 164 font-weight: ${v.regular}; 165 color: ${m.custom.darkGrey}; 166 font-size: 18px; 167 line-height: 32px; 168 letter-spacing: 0.45px; 169 min-width: 150px; 170 overflow: hidden; 171 text-overflow: ellipsis; 172 display: -webkit-box; 173 -webkit-box-orient: vertical; 174 -webkit-line-clamp: 3; 175`,e1=o(r1)` 176 min-width: 189px; 177 min-height: 34px; 178 179 @media (max-width: ${H.values.md}px) { 180 min-width: 120px; 181 } 182`;e1.defaultProps={$buttonVariant:"primary-stroke"};const $1=o(j)` 183 color: ${m.custom.darkGrey}; 184 font-size: 18px; 185 font-weight: ${v.regular}; 186 line-height: 1.6em; 187 margin-top: 24px; 188`,F1=o(f)` 189 display: flex; 190 flex-direction: row; 191 align-items: center; 192 justify-content: flex-start; 193 gap: 16px; 194 margin-top: 26px; 195 min-height: 48px; 196 197 @media (max-width: ${H.values.sm}px) { 198 justify-content: center; 199 } 200`,v1=o(j)` 201 color: ${m.primary.main}; 202 font-size: 14px; 203 font-style: normal; 204 font-weight: 700; 205 line-height: 32px; 206 letter-spacing: 0.35px; 207 cursor: pointer; 208`,D1=o(v1)` 209 width: 144px; 210 height: 42px; 211 color: ${m.custom.darkGrey}; 212 display: flex; 213 align-items: center; 214 justify-content: center; 215 border-radius: 5px; 216 border: 1px solid ${m.primary.main}; 217 text-transform: uppercase; 218`,Y=o(f)` 219 display: flex; 220 justify-content: center; 221 align-items: center; 222 height: 100px; 223 width: 100%; 224`;function q1(n){var h=n,{width:t=93,height:i=22}=h,s=N(h,["width","height"]);const d=`${c.useId().replace(/:/g,"")}-es-full-logo-clip`;return e.jsxs("svg",E(q({width:t,height:i,viewBox:"0 0 93 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[e.jsxs("g",{clipPath:`url(#${d})`,children:[e.jsx("path",{d:"M61.8916 14.2469C61.8916 14.4901 61.8485 14.7123 61.7659 14.9135C61.6816 15.1148 61.5663 15.2863 61.4234 15.428C61.2789 15.5697 61.1119 15.68 60.9226 15.7587C60.7333 15.8374 60.5336 15.8759 60.3253 15.8759C60.0947 15.8759 59.8813 15.8339 59.6885 15.7517C59.4958 15.6695 59.3305 15.5557 59.1911 15.4105C59.0517 15.2653 58.945 15.0938 58.8658 14.8943C58.7867 14.6948 58.7471 14.4796 58.7471 14.2469C58.7471 14.0036 58.7901 13.7814 58.8744 13.5802C58.9588 13.3807 59.0724 13.2092 59.2169 13.0657C59.3615 12.924 59.5285 12.8138 59.7195 12.735C59.9106 12.6563 60.1119 12.6178 60.3236 12.6178C60.5353 12.6178 60.7315 12.6563 60.9209 12.735C61.1102 12.8138 61.2771 12.924 61.4217 13.0657C61.5663 13.2075 61.6799 13.379 61.7642 13.5802C61.8485 13.7814 61.8899 14.0019 61.8899 14.2469H61.8916ZM61.5491 14.2469C61.5491 14.0491 61.5181 13.8672 61.4544 13.7027C61.3907 13.5364 61.3047 13.3947 61.1928 13.2757C61.0809 13.1567 60.9518 13.064 60.8021 12.9993C60.6541 12.9345 60.494 12.9013 60.3219 12.9013C60.1498 12.9013 59.9863 12.9345 59.8348 12.9993C59.6851 13.064 59.5543 13.1567 59.4424 13.2757C59.3305 13.3947 59.2445 13.5364 59.1808 13.7027C59.1171 13.8689 59.0861 14.0491 59.0861 14.2469C59.0861 14.4323 59.1154 14.6073 59.1722 14.7701C59.229 14.9328 59.3116 15.0745 59.4183 15.197C59.525 15.3195 59.6541 15.4157 59.8056 15.4857C59.957 15.5575 60.1291 15.5925 60.3202 15.5925C60.4906 15.5925 60.6506 15.5592 60.8004 15.4945C60.9484 15.4297 61.0792 15.337 61.1911 15.218C61.303 15.099 61.389 14.9573 61.4527 14.7928C61.5164 14.6283 61.5474 14.4463 61.5474 14.2469H61.5491ZM60.0069 15.1795H59.7161V13.3755H60.389C60.6025 13.3755 60.7642 13.4157 60.8727 13.498C60.9811 13.5784 61.0345 13.7114 61.0345 13.8934C61.0345 14.0561 60.9897 14.1751 60.9019 14.2504C60.8124 14.3256 60.704 14.3711 60.5715 14.3851L61.0689 15.1778H60.7384L60.2806 14.4061H60.0069V15.1778V15.1795ZM60.3322 14.1559C60.3856 14.1559 60.4389 14.1541 60.4889 14.1489C60.5388 14.1436 60.5818 14.1314 60.6197 14.1121C60.6575 14.0911 60.6868 14.0631 60.7092 14.0264C60.7315 13.9896 60.7436 13.9389 60.7436 13.8724C60.7436 13.8164 60.7315 13.7744 60.7074 13.7412C60.6833 13.7079 60.6524 13.6852 60.6145 13.6677C60.5766 13.6502 60.537 13.6397 60.4906 13.6344C60.4441 13.6292 60.4011 13.6274 60.3581 13.6274H60.0069V14.1541H60.3322V14.1559Z",fill:"#FD6600"}),e.jsx("path",{d:"M20.4971 7.66415H21.3129V1.69906H20.4971V0H28.2766V2.77169H26.1252V1.69731H23.8395V3.62735H27.3282V5.55739H23.8395V7.66415H26.1527V6.53553H28.2921V9.37547H20.4988V7.66241L20.4971 7.66415Z",fill:"#FD6600"}),e.jsx("path",{d:"M32.6735 10.2189H33.7165V8.67032L33.0349 9.37724H30.3758L29.0918 8.05963V3.71136L30.3758 2.40601H33.2896L34.1846 3.31591L34.3051 2.40601H36.7904V3.98258H36.1484V10.2206H36.7904V11.7692H32.6735V10.2206V10.2189ZM33.102 7.77266L33.7165 7.14798V4.52502L33.1554 3.95459H31.8456L31.5117 4.29405V7.4332L31.8456 7.77266H33.102Z",fill:"#FD6600"}),e.jsx("path",{d:"M37.9108 8.05797V3.98091H37.3359V2.40434H40.3307V7.20056L40.6646 7.54002H41.7214L42.31 6.94159V3.97916H41.4804V2.40259H44.7282V7.82524H45.3564V9.37382H42.8831L42.7627 8.42193L41.8264 9.37382H39.193L37.9091 8.05622L37.9108 8.05797Z",fill:"#FD6600"}),e.jsx("path",{d:"M45.9023 7.82689H46.651V3.98081H45.9023V2.40423H49.083V7.82689H49.7646V9.37547H45.9023V7.82689ZM46.5701 0H49.083V1.75331H46.5701V0Z",fill:"#FD6600"}),e.jsx("path",{d:"M49.9521 10.2189H50.5941V3.98087H49.9521V2.4043H52.4392L52.5459 3.3142L53.4546 2.4043H56.3548L57.6508 3.70965V8.05792L56.3548 9.37553H53.6147L53.014 8.76485V10.2189H54.057V11.7675H49.9539V10.2189H49.9521ZM54.8849 7.7727L55.2188 7.43324V4.29409L54.8849 3.95463H53.5751L53.014 4.52506V7.24251L53.5355 7.7727H54.8849Z",fill:"#FD6600"}),e.jsx("path",{d:"M58.3242 7.82695H58.9662V3.98087H58.3242V2.4043H60.8113L60.9317 3.35619L61.868 2.4043H64.4205L65.2621 3.25995L66.1175 2.4043H68.7371L70.021 3.70965V7.82695H70.5959V9.37553H66.9471V7.82695H67.6028V4.57931L67.2689 4.23984H66.2931L65.7044 4.83828V7.8287H66.3602V9.37728H62.6305V7.8287H63.2862V4.58106L62.9523 4.24159H61.9765L61.3878 4.84003V7.83045H62.0436V9.37903H58.3277V7.83045L58.3242 7.82695Z",fill:"#FD6600"}),e.jsx("path",{d:"M71.2891 8.05792V3.70965L72.573 2.4043H76.8242L78.1082 3.70965V6.4271H73.6298V7.59597L73.9103 7.88119H75.5953L75.702 7.75871V7.24251H78.1082V8.2609L77.0256 9.37553H72.5747L71.2908 8.05792H71.2891ZM75.7795 5.13575V4.12961L75.5248 3.88463H73.8811L73.6264 4.12961V5.13575H75.7778H75.7795Z",fill:"#FD6600"}),e.jsx("path",{d:"M78.7715 7.82695H79.4135V3.98087H78.7715V2.4043H81.2585L81.379 3.35619L82.3153 2.4043H84.9486L86.2326 3.70965V7.82695H86.8074V9.37553H83.1586V7.82695H83.8144V4.57931L83.4805 4.23984H82.4237L81.8351 4.83828V7.8287H82.4908V9.37728H78.7749V7.8287L78.7715 7.82695Z",fill:"#FD6600"}),e.jsx("path",{d:"M87.9913 8.23454V3.98076H87.043V2.40418H87.9913V0.692871H90.4112V2.40418H92.3096V3.98076H90.4112V7.55561L90.678 7.82683H92.3079V9.37541H89.0997L87.9896 8.23454H87.9913Z",fill:"#FD6600"}),e.jsx("path",{d:"M20.3906 20.3152V18.7124H22.9172V19.4875L23.2116 19.7727H25.2425L25.5093 19.5015V18.1419L25.3096 17.9389H21.5679L20.4319 16.7701V13.6169L21.7693 12.2573H26.7278L28.0238 13.5749V15.1778H25.4972V14.4026L25.2029 14.1034H23.2374L22.9706 14.3886V15.6939L23.172 15.9109H26.9137L28.0497 17.0658V20.2732L26.7123 21.6328H21.6866L20.3906 20.3152Z",fill:"#FD6600"}),e.jsx("path",{d:"M28.7666 20.0842H29.4086V13.8339H28.7666V12.2573H31.8268V15.4367L32.6013 14.6616H34.9403L36.2243 15.9669V20.0842H36.7991V21.6328H33.1503V20.0842H33.8061V16.8366L33.4722 16.4971H32.4154L31.8268 17.0955V20.086H32.4825V21.6345H28.7666V20.086V20.0842Z",fill:"#FD6600"}),e.jsx("path",{d:"M37.4189 20.4658V18.59L38.5687 17.4211H41.8973V16.3608L41.6564 16.1298H40.2123L40.1056 16.2383V16.7142H37.6203V15.8043L38.7304 14.6635H43.0075L44.3035 15.9688V20.0861H44.8783V21.6347H42.4584L42.3379 20.7248L41.4429 21.6347H38.5687L37.4189 20.4658ZM41.4154 20.0984
224L41.8973 19.6224V18.6443H40.0523L39.8647 18.835V19.9094L40.0523 20.1001H41.4154V20.0984Z",fill:"#FD6600"}),e.jsx("path",{d:"M45.4287 20.0843H46.0707V16.2382H45.4287V14.6616H47.9157L48.0362 15.6135L48.9725 14.6616H50.6833V16.7001H49.0396L48.4923 17.2566V20.0825H49.5474V21.6311H45.4304V20.0825L45.4287 20.0843Z",fill:"#FD6600"}),e.jsx("path",{d:"M51.3467 20.3152V15.967L52.6306 14.6616H56.8818L58.1658 15.967V18.6844H53.6874V19.8533L53.968 20.1385H55.653L55.7597 20.016V19.4998H58.1658V20.5182L57.0832 21.6329H52.6324L51.3484 20.3152H51.3467ZM55.8371 17.3931V16.3869L55.5824 16.142H53.9387L53.684 16.3869V17.3931H55.8354H55.8371Z",fill:"#FD6600"}),e.jsx("path",{d:"M2.79684 15.6923L0 10.7684H1.49222C1.49222 10.5619 1.50255 10.3589 1.51976 10.1577C1.53869 9.93721 1.56623 9.71848 1.60409 9.50325L0.545599 8.53211C0.611001 8.28364 0.686731 8.03866 0.772788 7.79894C0.858844 7.55747 0.955228 7.31949 1.06194 7.08852C1.16865 6.85579 1.28568 6.62657 1.41305 6.40609C1.54041 6.18387 1.67638 5.96689 1.82096 5.75692C1.96553 5.54694 2.12043 5.34396 2.28222 5.14623L3.66945 5.46995C3.82091 5.31421 3.98098 5.16548 4.14793 5.02375C4.31315 4.88201 4.48527 4.74903 4.66254 4.62304L4.59026 3.17595C4.80712 3.04821 5.03087 2.92923 5.2615 2.82074C5.48869 2.71225 5.72276 2.61426 5.96028 2.52502C6.19607 2.43753 6.43703 2.36054 6.68143 2.29405C6.92411 2.22755 7.17023 2.17156 7.42152 2.12782C7.66764 2.08407 7.91892 2.04907 8.17193 2.02808L8.92923 3.25469C9.14781 3.25469 9.36295 3.26344 9.57637 3.28269C9.79323 3.30194
22410.0084 3.32993 10.2201 3.36843L11.1753 2.29405C11.4197 2.36054 11.6607 2.43753 11.8965 2.52502C12.134 2.61251 12.368 2.7105 12.5952 2.82074C12.8241 2.92923 13.0496 3.04821 13.2665 3.17595C13.4851 3.30544 13.6985 3.44367 13.905 3.59065C14.072 3.70964 14.2338 3.83388 14.3904 3.96336L12.4902 7.31074C12.4713 7.2915 12.4524 7.27225 12.4334 7.253C12.3319 7.14976 12.2252 7.05002 12.115 6.95553C12.0049 6.86104 11.8896 6.7718 11.7725 6.68781C11.6555 6.60382 11.5333 6.52508 11.4094 6.45159C11.2855 6.3781 11.1564 6.30985 11.0256 6.24861C10.8948 6.18562 10.7622 6.12962 10.6263 6.08063C10.492 6.02989 10.3543 5.98614 10.2132 5.94764C10.0755 5.90915 9.93437 5.87765 9.79151 5.85316C9.65038 5.82691 9.50753 5.80766 9.36295 5.79716C9.2201 5.78316 9.07724 5.77791 8.93095 5.77791C8.78465 5.77791 8.6418 5.78491 8.49894 5.79716C8.35437 5.80941 8.21152 5.82866 8.07038 5.85316C7.92753 5.87765 7.7864 5.90915 7.64698 5.94764C7.50585 5.98614 7.36988 6.02989 7.23391 6.08063C7.09794 6.13137 6.96542 6.18737 6.83461 6.24861C6.7038 6.30985 6.57472 6.37985 6.4508 6.45159C6.32688 6.52508 6.20468 6.60382 6.08592 6.68956C5.96716 6.77355 5.85357 6.86279 5.74341 6.95728C5.63326 7.05177 5.52655 7.15151 5.425 7.25475C5.32346 7.35799 5.22535 7.46648 5.13241 7.57847C5.03947 7.69045 4.95169 7.80769 4.86908 7.92668C4.78647 8.04566 4.70729 8.1699 4.63673 8.29764C4.56444 8.42362 4.49732 8.55486 4.43535 8.68784C4.37511 8.82083 4.32004 8.95556 4.27013 9.0938C4.22193 9.23028 4.17891 9.37027 4.14104 9.51375C4.10318 9.65374 4.0722 9.79722 4.0481 9.94245C4.02228 10.0859 4.00507 10.2312 3.99302 10.3782C3.98098 10.5076 3.97581 10.6389 3.97409 10.7701H5.5954L2.79856 15.6941L2.79684 15.6923Z",fill:"#FD6600"}),e.jsx("path",{d:"M12.354 10.7683H13.884C13.884 10.9101 13.8772 11.092 13.8651 11.2233C13.8531 11.3703 13.8359 11.5172 13.81 11.659C13.7859 11.8042 13.755 11.9477 13.7171 12.0877C13.6792 12.2312 13.6362 12.3694 13.588 12.5076C13.5381 12.6459 13.483 12.7806 13.4228 12.9136C13.3625 13.0466 13.2954 13.1778 13.2231 13.3038C13.1508 13.4298 13.0734 13.554 12.9908 13.673C12.9082 13.7937 12.8204 13.9092 12.7274 14.0212C12.6362 14.1332 12.5381 14.2417 12.4349 14.3449C12.3333 14.4482 12.2266 14.5479 12.1164 14.6424C12.0063 14.7369 11.891 14.8261 11.7739 14.9101C11.6569 14.9941 11.5347 15.0746 11.4091 15.1481C11.2851 15.2216 11.1578 15.2898 11.0252 15.3511C10.8944 15.4123 10.7619 15.4683 10.6259 15.519C10.4917 15.568 10.354 15.6118 10.2129 15.6503C10.0752 15.6888 9.93405 15.7203 9.78948 15.7448C9.64834 15.7693 9.50549 15.7903 9.36091 15.8008C9.21806 15.813 9.07349 15.82 8.92891 15.82C8.78434 15.82 8.63976 15.813 8.49691 15.8008C8.35233 15.7885 8.20776 15.7693 8.06835 15.7448C7.92549 15.7203 7.78436 15.6888 7.64667 15.6503C7.50554 15.6118 7.36957 15.568 7.2336 15.5173C7.09763 15.4665 6.9651 15.4106 6.83429 15.3493C6.70349 15.2881 6.5744 15.2198 6.45048 15.1463C6.32656 15.0728 6.20436 14.9941 6.08732 14.9101C5.96857 14.8261 5.85497 14.7369 5.7431 14.6424C5.63294 14.5479 5.52624 14.4482 5.42469 14.3449C5.4178 14.3379 5.4092 14.3292 5.40231 14.3222L3.50391 17.6643C3.6502 17.7833 3.79994 17.897 3.95312 18.0073C4.15966 18.1543 4.37308 18.2925 4.59166 18.422C4.80852 18.5497 5.03399 18.6687 5.2629 18.7789C5.49009 18.8874 5.72416 18.9854 5.96168 19.0747C6.19748 19.1621 6.43843 19.2391 6.68284 19.3056L7.63806 18.2312C7.84976 18.2697 8.06318 18.2977 8.28177 18.317C8.49519 18.3362 8.71033 18.345 8.92891 18.345L9.68449 19.5716C9.93921 19.5506 10.1888 19.5156 10.4349 19.4719C10.6845 19.4281 10.9323 19.3721 11.175 19.3056C11.4194 19.2391 11.6603 19.1621 11.8961 19.0747C12.1337 18.9872 12.3677 18.8892 12.5949 18.7789C12.8238 18.6704 13.0476 18.5515 13.2662 18.4237L13.1939 16.9766C13.3712 16.8506 13.5433 16.7159 13.7085 16.5759C13.8754 16.4342 14.0338 16.2855 14.187 16.1297L15.5742 16.4552C15.736 16.2592 15.8909 16.0562 16.0355 15.8445C16.18 15.6345 16.316 15.4193 16.4434 15.1953C16.569 14.9749 16.686 14.7456 16.7945 14.5129C16.9012 14.2819 16.9976 14.044 17.0836 13.8025C17.1697 13.5628 17.2454 13.3178 17.3108 13.0693L16.2523 12.0982C16.2902 11.8829 16.3177 11.666 16.3367 11.4437C16.3556 11.2338 16.3642 10.9853 16.3642 10.7683H17.9476L15.1508 5.84436L12.354 10.7683Z",fill:"#FD6600"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:d,children:e.jsx("rect",{width:"92.3077",height:"21.6346",fill:"white"})})})]}))}const E1=o("img")` 225 width: 184px; 226 height: auto; 227 aspect-ratio: 2 / 1; 228 object-fit: cover; 229 border-radius: 4px; 230 flex-shrink: 0; 231 232 @media (max-width: ${H.values.md}px) { 233 width: 125px; 234 } 235`,I1=o(f)` 236 width: 184px; 237 height: auto; 238 aspect-ratio: 2 / 1; 239 display: flex; 240 align-items: center; 241 justify-content: center; 242 border-radius: 4px; 243 flex-shrink: 0; 244 box-sizing: border-box; 245 background: ${m.custom.darkGrey}; 246 247 @media (max-width: ${H.values.md}px) { 248 width: 125px; 249 } 250`;function J({image:t}){const i=u1(),[s,n]=c.useState(!1);c.useEffect(()=>{n(!1)},[t]);const h=typeof t=="string"?t.trim():"",d=!!h&&!s,L=()=>{n(!0)};
250return d?e.jsx(E1,{src:h,alt:"",onError:L}):e.jsx(I1,{"data-testid":"site-search-thumbnail-fallback",role:"img","aria-label":i.formatMessage({id:"siteSearch.thumbnailFallbackLabel"}),children:e.jsx(q1,{width:93,height:22,"aria-hidden":!0})})}function R(){return new URLSearchParams(window.location.search).get("query")}function R1(){const t=n1(),i=a1(t.breakpoints.down("sm")),s=R(),[n,h]=c.useState(()=>!!R()),[d,L]=c.useState([]),[p,u]=c.useState(null),C=c.useCallback(w=>S(this,[w],function*({query:x,page:b,appendRows:a,loggerContext:l}){try{h(!0);const r=yield l1(x,b,$);L(V=>a?[...V,...r.results]:r.results),u({total:r.total,from:r.from,size:r.size}),A(x,{object_count:r.total})}catch(r){Z("error",l,r)}finally{h(!1)}}),[]);c.useEffect(()=>{c1()},[]),c.useEffect(()=>{if(!s){L([]),u(null),h(!1),A(null,null);return}C({query:s,page:1,appendRows:!1,loggerContext:"SiteSearchResults initial load"})},[C,s]);const g=p!=null&&p.from+p.size<p.total,M=c.useCallback(()=>S(this,null,function*(){const x=R();if(!x||!p||n)return;const b=Math.floor(p.from/p.size)+1;yield C({query:x,page:b+1,appendRows:!0,loggerContext:"SiteSearchResults handleShowMore"})}),[C,n,p]),T=s&&n&&d.length===0,y=!n&&d.length===0&&(p==null||p.total===0),D=!!g||!!(n&&d.length>0&&s);return e.jsxs(b1,{children:[T&&e.jsx(Y,{children:e.jsx(F,{})}),y&&e.jsx($1,{children:e.jsx(I,{id:"siteSearch.emptyNoResults"})}),d.map((x,b)=>{const a=p1(x),l=d1(x),w=!!(i&&l),r=!!(!i&&l),V=`${a||"site-search-row"}-${l||"no-link"}-${b}`;return e.jsxs(y1,E(q({component:w?"a":"div"},w?{href:l}:{}),{sx:w?{textDecoration:"none",color:"inherit",cursor:"pointer"}:void 0,children:[r?e.jsx("a",{href:l,style:{display:"block"},children:e.jsx(J,{image:Q(x)})}):e.jsx(J,{image:Q(x)}),e.jsxs(j1,{children:[e.jsxs(S1,{children:[e.jsx(M1,{variant:"body2",children:h1(x)}),r?e.jsx("a",{href:l,style:{textDecoration:"none",color:"inherit"},children:e.jsx(P,{variant:"subtitle1",children:a})}):e.jsx(P,{variant:"subtitle1",children:a})]}),!i&&e.jsx(k1,{variant:"body2",component:"span",dangerouslySetInnerHTML:{__html:x1(x)}}),l&&!i&&e.jsx(e1,{href:l,children:e.jsx(I,{id:"siteSearch.viewPage"})})]})]}),V)}),D&&e.jsxs(F1,{children:[n&&d.length>0&&e.jsx(Y,{children:e.jsx(F,{})}),!n&&g&&e.jsx(D1,{onClick:()=>void M(),children:e.jsx(I,{id:"siteSearch.seeMore"})})]})]})}const Z1=[{componentType:U.GENERIC,selectorType:K.ID,selector:"es-equipment-search",component:()=>e.jsx(w1,{})},{componentType:U.GENERIC,selectorType:K.ID,selector:"es-site-search",component:()=>e.jsx(R1,{})}];function W1(){return c.useEffect(()=>{C1(Z1)},[]),null}export{W1 as default}; 251//# sourceMappingURL=Search.DMIvCI_x.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.