1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58070,e=>{"use strict";let t,r,n,a;var o,i,l,s,c,u,d,f=e.i(43476),p=e.i(71645),m=e.i(46932),h=e.i(88653),v=e.i(75254);let g=(0,v.default)("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),x=(0,v.default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);var y=e.i(19455),b=e.i(93479),w=e.i(74080);function j(e,[t,r]){return Math.min(r,Math.max(t,e))}var C=e.i(81140),E=e.i(30030),S=e.i(20783);function N(e){var t;let r,n=(t=e,(r=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(l.ref=t?(0,S.composeRefs)(t,i):i),p.cloneElement(r,l)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=p.forwardRef((e,t)=>{let{children:r,...a}=e,o=p.Children.toArray(r),i=o.find(R);if(i){let e=i.props.children,r=o.map(t=>t!==i?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,f.jsx)(n,{...a,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,f.jsx)(n,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var k=Symbol("radix.slottable");function R(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===k}var P=new WeakMap;function L(e,t){var r,n;let a,o,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,a=r.length,(i=(o=A(n))>=0?o:a+o)<0||i>=a?-1:i);return -1===l?void 0:e[l]}function A(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],P.set(this,!0)}set(e,t){return P.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,a=this.has(t),o=this.#e.length,i=A(e),l=i>=0?i:o+i,s=l<0||l>=o?-1:l;if(s===this.size||a&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!a;i<0&&l++;let u=[...this.#e],d=!1;for(let e=l;e<c;e++)if(l===e){let o=u[e];u[e]===t&&(o=u[e+1]),a&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],a=n;n=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=L(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=L(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return L(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(...e){let[t,r]=e,n=0,a=r??this.at(0);for(let r of this)a=0===n&&1===e.length?r:Reflect.apply(t,this,[a,r,n,this]),n++;return a}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);n=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[n,a,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,a=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var T=p.createContext(void 0),M=e.i(26330),I=0;function D(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var z=e.i(48425),O=e.i(30207),_="focusScope.autoFocusOnMount",F="focusScope.autoFocusOnUnmount",B={bubbles:!1,cancelable:!0},H=p.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,s]=p.useState(null),c=(0,O.useCallbackRef)(a),u=(0,O.useCallbackRef)(o),d=p.useRef(null),m=(0,S.useComposedRefs)(t,e=>s(e)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:V(d.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||V(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&V(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,h.paused]),p.useEffect(()=>{if(l){$.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(_,B);l.addEventListener(_,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(V(n,{select:t}),document.activeElement!==r)return}(W(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&V(l))}return()=>{l.removeEventListener(_,c),setTimeout(()=>{let t=new CustomEvent(F,B);l.addEventListener(F,u),l.dispatchEvent(t),t.defaultPrevented||V(e??document.body,{select:!0}),l.removeEventListener(F,u),$.remove(h)},0)}}},[l,c,u,h]);let v=p.useCallback(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var o;let t,n=e.currentTarget,[i,l]=[q(t=W(o=n),o),q(t.reverse(),o)];i&&l?e.shiftKey||a!==l?e.shiftKey&&a===i&&(e.preventDefault(),r&&V(l,{select:!0})):(e.preventDefault(),r&&V(i,{select:!0})):a===n&&e.preventDefault()}},[r,n,h.paused]);return(0,f.jsx)(z.Primitive.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});function W(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function q(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function V(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}H.displayName="FocusScope";var $=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=K(n,e)).unshift(e)},remove(e){n=K(n,e),n[0]?.resume()}});function K(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var U=e.i(10772),Z=e.i(53660),X=e.i(74606),Y=Symbol("radix.slottable");function G(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Y}var J=e.i(69340),Q=e.i(34620);function ee(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var et=e.i(59411),er=new WeakMap,en=new WeakMap,ea={},eo=0,ei=function(e){return e&&(e.host||ei(e.parentNode))},el=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=ei(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ea[r]||(ea[r]=new WeakMap);var o=ea[r],i=[],l=new Set,s=new Set(a),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(er.get(e)||0)+1,c=(o.get(e)||0)+1;er.set(e,s),o.set(e,c),i.push(e),1===s&&a&&en.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
1return u(t),l.clear(),eo++,function(){i.forEach(function(e){var t=er.get(e)-1,a=o.get(e)-1;er.set(e,t),o.set(e,a),t||(en.has(e)||e.removeAttribute(n),en.delete(e)),a||e.removeAttribute(r)}),--eo||(er=new WeakMap,er=new WeakMap,en=new WeakMap,ea={})}},es=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),el(n,a,r,"aria-hidden")):function(){return null}},ec=function(){return(ec=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function eu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var ed=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ef="width-before-scroll-bar";function ep(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var em="u">typeof window?p.useLayoutEffect:p.useEffect,eh=new WeakMap,ev=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),l=[],s=!1,c={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=i(e,s);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){s=!0;var t=[];if(l.length){var r=l;l=[],r.forEach(e),t=l}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),l={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),l}}}}).options=ec({async:!0,ssr:!1},o),c),eg=function(){},ex=p.forwardRef(function(e,t){var r,n,a,o,i=p.useRef(null),l=p.useState({onScrollCapture:eg,onWheelCapture:eg,onTouchMoveCapture:eg}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,x=e.noRelative,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,j=e.as,C=e.gapMode,E=eu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(r=[i,t],n=function(e){return r.forEach(function(t){return ep(t,e)})},(a=(0,p.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,em(function(){var e=eh.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||ep(e,null)}),n.forEach(function(e){t.has(e)||ep(e,a)})}eh.set(o,r)},[r]),o),N=ec(ec({},E),s);return p.createElement(p.Fragment,null,h&&p.createElement(g,{sideCar:ev,removeScrollBar:m,shards:v,noRelative:x,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:C}),u?p.cloneElement(p.Children.only(d),ec(ec({},N),{ref:S})):p.createElement(void 0===j?"div":j,ec({},N,{className:f,ref:S}),d))});ex.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ex.classNames={fullWidth:ef,zeroRight:ed};var ey=function(e){var t=e.sideCar,r=eu(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return p.createElement(n,ec({},r))};ey.isSideCarExport=!0;var eb=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ew=function(){var e=eb();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ej=function(){var e=ew();return function(t){return e(t.styles,t.dynamic),null}},eC={left:0,top:0,right:0,gap:0},eE=function(e){return parseInt(e||"",10)||0},eS=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[eE(r),eE(n),eE(a)]},eN=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eC;var t=eS(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ek=ej(),eR="data-scroll-locked",eP=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(eR,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(ed," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ef," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ed," .").concat(ed," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ef," .").concat(ef," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(eR,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},eL=function(){var e=parseInt(document.body.getAttribute(eR)||"0",10);return isFinite(e)?e:0},eA=function(){p.useEffect(function(){return document.body.setAttribute(eR,(eL()+1).toString()),function(){var e=eL()-1;e<=0?document.body.removeAttribute(eR):document.body.setAttribute(eR,e.toString())}},[])},eT=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;eA();var o=p.useMemo(function(){return eN(a)},[a]);return p.createElement(ek,{styles:eP(o,!t,a,r?"":"!important")})},eM=!1;if("u">typeof window)try{var eI=Object.defineProperty({},"passive",{get:function(){return eM=!0,!0}});window.addEventListener("test",eI,eI),window.removeEventListener("test",eI,eI)}catch(e){eM=!1}var eD=!!eM&&{passive:!1},ez=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eO=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),e_(e,n)){var a=eF(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},e_=function(e,t){return"v"===e?ez(t,"overflowY"):ez(t,"overflowX")},eF=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eB=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=i*n,s=r.target,c=t.contains(s),u=!1,d=l>0,f=0,p=0;do{if(!s)break;var m=eF(e,s),h=m[0],v=m[1]-m[2]-i*h;(h||v)&&e_(e,s)&&(f+=v,p+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(a&&1>Math.abs(f)||!a&&l>f)?u=!0:!d&&(a&&1>Math.abs(p)||!a&&-l>p)&&(u=!0),u},eH=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eW=function(e){return[e.deltaX,e.deltaY]},eq=function(e){return e&&"current"in e?e.current:e},eV=0,e$=[];let eK=(u=function(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(eV++)[0],o=p.useState(ej)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eq),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=eH(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=eO(d,u);if(!m)return!0;if(m?a=d:(a="v"===d?"h":"v",m=eO(d,u)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var h=n.current||a;return eB(h,t,e,"h"===h?s:c,!0)},[]),s=p.useCallback(function(e){if(e$.length&&e$[e$.length-1]===o){var r="deltaY"in e?eW(e):eH(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}
1if(!n){var a=(i.current.shards||[]).map(eq).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=p.useCallback(function(e){r.current=eH(e),n.current=void 0},[]),d=p.useCallback(function(t){c(t.type,eW(t),t.target,l(t,e.lockRef.current))},[]),f=p.useCallback(function(t){c(t.type,eH(t),t.target,l(t,e.lockRef.current))},[]);p.useEffect(function(){return e$.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,eD),document.addEventListener("touchmove",s,eD),document.addEventListener("touchstart",u,eD),function(){e$=e$.filter(function(e){return e!==o}),document.removeEventListener("wheel",s,eD),document.removeEventListener("touchmove",s,eD),document.removeEventListener("touchstart",u,eD)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?p.createElement(eT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ev.useMedium(u),ey);var eU=p.forwardRef(function(e,t){return p.createElement(ex,ec({},e,{ref:t,sideCar:eK}))});eU.classNames=ex.classNames;var eZ=[" ","Enter","ArrowUp","ArrowDown"],eX=[" ","Enter"],eY="Select",[eG,eJ,eQ]=function(e){let t=e+"CollectionProvider",[r,n]=(0,E.createContextScope)(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:r}=e,n=p.default.useRef(null),o=p.default.useRef(new Map).current;return(0,f.jsx)(a,{scope:t,itemMap:o,collectionRef:n,children:r})};i.displayName=t;let l=e+"CollectionSlot",s=N(l),c=p.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=o(l,r),i=(0,S.useComposedRefs)(t,a.collectionRef);return(0,f.jsx)(s,{ref:i,children:n})});c.displayName=l;let u=e+"CollectionItemSlot",d="data-radix-collection-item",m=N(u),h=p.default.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,i=p.default.useRef(null),l=(0,S.useComposedRefs)(t,i),s=o(u,r);return p.default.useEffect(()=>(s.itemMap.set(i,{ref:i,...a}),()=>void s.itemMap.delete(i))),(0,f.jsx)(m,{...{[d]:""},ref:l,children:n})});return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){let r=o(e+"CollectionConsumer",t);return p.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(eY),[e0,e1]=(0,E.createContextScope)(eY,[eQ,Z.createPopperScope]),e2=(0,Z.createPopperScope)(),[e4,e5]=e0(eY),[e3,e6]=e0(eY),e8=e=>{let t,{__scopeSelect:r,children:n,open:a,defaultOpen:o,onOpenChange:i,value:l,defaultValue:s,onValueChange:c,dir:u,name:d,autoComplete:m,disabled:h,required:v,form:g}=e,x=e2(r),[y,b]=p.useState(null),[w,j]=p.useState(null),[C,E]=p.useState(!1),S=(t=p.useContext(T),u||t||"ltr"),[N,k]=(0,J.useControllableState)({prop:a,defaultProp:o??!1,onChange:i,caller:eY}),[R,P]=(0,J.useControllableState)({prop:l,defaultProp:s,onChange:c,caller:eY}),L=p.useRef(null),A=!y||g||!!y.closest("form"),[M,I]=p.useState(new Set),D=Array.from(M).map(e=>e.props.value).join(";");return(0,f.jsx)(Z.Root,{...x,children:(0,f.jsxs)(e4,{required:v,scope:r,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:(0,U.useId)(),value:R,onValueChange:P,open:N,onOpenChange:k,dir:S,triggerPointerDownPosRef:L,disabled:h,children:[(0,f.jsx)(eG.Provider,{scope:r,children:(0,f.jsx)(e3,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:p.useCallback(e=>{I(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),A?(0,f.jsxs)(tI,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:m,value:R,onChange:e=>P(e.target.value),disabled:h,form:g,children:[void 0===R?(0,f.jsx)("option",{value:""}):null,Array.from(M)]},D):null]})})};e8.displayName=eY;var e7="SelectTrigger",e9=p.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:n=!1,...a}=e,o=e2(r),i=e5(e7,r),l=i.disabled||n,s=(0,S.useComposedRefs)(t,i.onTriggerChange),c=eJ(r),u=p.useRef("touch"),[d,m,h]=tz(e=>{let t=c().filter(e=>!e.disabled),r=t.find(e=>e.value===i.value),n=tO(t,e,r);void 0!==n&&i.onValueChange(n.value)}),v=e=>{l||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,f.jsx)(Z.Anchor,{asChild:!0,...o,children:(0,f.jsx)(z.Primitive.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":tD(i.value)?"":void 0,...a,ref:s,onClick:(0,C.composeEventHandlers)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&v(e)}),onPointerDown:(0,C.composeEventHandlers)(a.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,C.composeEventHandlers)(a.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&eZ.includes(e.key)&&(v(),e.preventDefault())})})})});e9.displayName=e7;var te="SelectValue",tt=p.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:o,placeholder:i="",...l}=e,s=e5(te,r),{onValueNodeHasChildrenChange:c}=s,u=void 0!==o,d=(0,S.useComposedRefs)(t,s.onValueNodeChange);return(0,Q.useLayoutEffect)(()=>{c(u)},[c,u]),(0,f.jsx)(z.Primitive.span,{...l,ref:d,style:{pointerEvents:"none"},children:tD(s.value)?(0,f.jsx)(f.Fragment,{children:i}):o})});tt.displayName=te;var tr=p.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,f.jsx)(z.Primitive.span,{"aria-hidden":!0,...a,ref:t,children:n||"â¼"})});tr.displayName="SelectIcon";var tn=e=>(0,f.jsx)(X.Portal,{asChild:!0,...e});tn.displayName="SelectPortal";var ta="SelectContent",to=p.forwardRef((e,t)=>{let r=e5(ta,e.__scopeSelect),[n,a]=p.useState();return((0,Q.useLayoutEffect)(()=>{a(new DocumentFragment)},[]),r.open)?(0,f.jsx)(tc,{...e,ref:t}):n?w.createPortal((0,f.jsx)(ti,{scope:e.__scopeSelect,children:(0,f.jsx)(eG.Slot,{scope:e.__scopeSelect,children:(0,f.jsx)("div",{children:e.children})})}),n):null});to.displayName=ta;var[ti,tl]=e0(ta),ts=((a=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(l.ref=t?(0,S.composeRefs)(t,i):i),p.cloneElement(r,l)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName="SelectContent.RemoveScroll.SlotClone",t=a,(r=p.forwardRef((e,r)=>{let{children:n,...a}=e,o=p.Children.toArray(n),i=o.find(G);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...a,ref:r,children:p.isValidElement(e)?p.cloneElement(e,void 0,n):null})}return(0,f.jsx)(t,{...a,ref:r,children:n})})).displayName="SelectContent.RemoveScroll.Slot",r),tc=p.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:x,...y}=e,b=e5(ta,r),[w,j]=p.useState(null),[E,N]=p.useState(null),k=(0,S.useComposedRefs)(t,e=>j(e)),[R,P]=p.useState(null),[L,A]=p.useState(null),T=eJ(r),[z,O]=p.useState(!1),_=p.useRef(!1);p.useEffect(()=>{if(w)return es(w)},[w]),p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??D()),document.body.insertAdjacentElement("beforeend",e[1]??D()),I++,()=>{1===I&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),I--}},[]);let F=p.useCallback(e=>{let[t,...r]=T().map(e=>e.ref.current),[n]=r.slice(-1),a=document.activeElement;for(let r of e)if(r===a||(r?.scrollIntoView({block:"nearest"}),r===t&&E&&(E.scrollTop=0),r===n&&E&&(E.scrollTop=E.scrollHeight),r?.focus(),document.activeElement!==a))return},[T,E]),B=p.useCallback(()=>F([R,w]),[F,R,w]);p.useEffect(()=>{z&&B()},[z,B]);let{onOpenChange:W,triggerPointerDownPosRef:q}=b;p.useEffect(()=>{if(w){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(q.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():w.contains(r.target)||W(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[w,W,q]),p.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[V,$]=tz(e=>{let t=T().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=tO(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),K=p.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==b.value&&b.value===t||n)&&(P(e),n&&(_.current=!0))},[b.value]),U=p.useCallback(()=>w?.focus(),[w]),Z=p.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==b.value&&b.value===t||n)&&A(e)},[b.value]),X="popper"===n?td:tu,Y=X===td?{side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:x}:{};return(0,f.jsx)(ti,{scope:r,content:w,viewport:E,onViewportChange:N,itemRefCallback:K,selectedItem:R,onItemLeave:U,itemTextRefCallback:Z,focusSelectedItem:B,selectedItemText:L,position:n,isPositioned:z,searchRef:V,children:(0,f.jsx)(eU,{as:ts,allowPinchZoom:!0,children:(0,f.jsx)(H,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,C.composeEventHandlers)(a,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,f.jsx)(M.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,f.jsx)(X,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...Y,onPlaced:()=>O(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:(0,C.composeEventHandlers)(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=T().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});tc.displayName="SelectContentImpl";var tu=p.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...a}=e,o=e5(ta,r),i=tl(ta,r),[l,s]=p.useState(null),[c,u]=p.useState(null),d=(0,S.useComposedRefs)(t,e=>u(e)),m=eJ(r),h=p.useRef(!1),v=p.useRef(!0),{viewport:g,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=i,w=p.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&c&&g&&x&&y){let e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),r=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){let n=a.left-t.left,o=r.left-n,i=e.left-o,s=e.width+i,c=Math.max(s,t.width),u=j(o,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=s+"px",l.style.left=u+"px"}else{let n=t.right-a.right,o=window.innerWidth-r.right-n,i=window.innerWidth-e.right-o,s=e.width+i,c=Math.max(s,t.width),u=j(o,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=s+"px",l.style.right=u+"px"}let i=m(),s=window.innerHeight-20,u=g.scrollHeight,d=window.getComputedStyle(c),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),b=f+p+u+parseInt(d.paddingBottom,10)+v,w=Math.min(5*x.offsetHeight,b),C=window.getComputedStyle(g),E=parseInt(C.paddingTop,10),S=parseInt(C.paddingBottom,10),N=e.top+e.height/2-10,k=x.offsetHeight/2,R=f
1+p+(x.offsetTop+k);if(R<=N){let e=i.length>0&&x===i[i.length-1].ref.current;l.style.bottom="0px";let t=Math.max(s-N,k+(e?S:0)+(c.clientHeight-g.offsetTop-g.offsetHeight)+v);l.style.height=R+t+"px"}else{let e=i.length>0&&x===i[0].ref.current;l.style.top="0px";let t=Math.max(N,f+g.offsetTop+(e?E:0)+k);l.style.height=t+(b-R)+"px",g.scrollTop=R-N+g.offsetTop}l.style.margin="10px 0",l.style.minHeight=w+"px",l.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,l,c,g,x,y,o.dir,n]);(0,Q.useLayoutEffect)(()=>w(),[w]);let[C,E]=p.useState();(0,Q.useLayoutEffect)(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);let N=p.useCallback(e=>{e&&!0===v.current&&(w(),b?.(),v.current=!1)},[w,b]);return(0,f.jsx)(tf,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:(0,f.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,f.jsx)(z.Primitive.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});tu.displayName="SelectItemAlignedPosition";var td=p.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=10,...o}=e,i=e2(r);return(0,f.jsx)(Z.Content,{...i,...o,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});td.displayName="SelectPopperPosition";var[tf,tp]=e0(ta,{}),tm="SelectViewport",th=p.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...a}=e,o=tl(tm,r),i=tp(tm,r),l=(0,S.useComposedRefs)(t,o.onViewportChange),s=p.useRef(0);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,f.jsx)(eG.Slot,{scope:r,children:(0,f.jsx)(z.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,C.composeEventHandlers)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=i;if(n?.current&&r){let e=Math.abs(s.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,a=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(a<n){let o=a+e,i=Math.min(n,o),l=o-i;r.style.height=i+"px","0px"===r.style.bottom&&(t.scrollTop=l>0?l:0,r.style.justifyContent="flex-end")}}}s.current=t.scrollTop})})})]})});th.displayName=tm;var tv="SelectGroup",[tg,tx]=e0(tv);p.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=(0,U.useId)();return(0,f.jsx)(tg,{scope:r,id:a,children:(0,f.jsx)(z.Primitive.div,{role:"group","aria-labelledby":a,...n,ref:t})})}).displayName=tv;var ty="SelectLabel";p.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=tx(ty,r);return(0,f.jsx)(z.Primitive.div,{id:a.id,...n,ref:t})}).displayName=ty;var tb="SelectItem",[tw,tj]=e0(tb),tC=p.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:a=!1,textValue:o,...i}=e,l=e5(tb,r),s=tl(tb,r),c=l.value===n,[u,d]=p.useState(o??""),[m,h]=p.useState(!1),v=(0,S.useComposedRefs)(t,e=>s.itemRefCallback?.(e,n,a)),g=(0,U.useId)(),x=p.useRef("touch"),y=()=>{a||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,f.jsx)(tw,{scope:r,value:n,disabled:a,textId:g,isSelected:c,onItemTextChange:p.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,f.jsx)(eG.ItemSlot,{scope:r,value:n,disabled:a,textValue:u,children:(0,f.jsx)(z.Primitive.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:v,onFocus:(0,C.composeEventHandlers)(i.onFocus,()=>h(!0)),onBlur:(0,C.composeEventHandlers)(i.onBlur,()=>h(!1)),onClick:(0,C.composeEventHandlers)(i.onClick,()=>{"mouse"!==x.current&&y()}),onPointerUp:(0,C.composeEventHandlers)(i.onPointerUp,()=>{"mouse"===x.current&&y()}),onPointerDown:(0,C.composeEventHandlers)(i.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,C.composeEventHandlers)(i.onPointerMove,e=>{x.current=e.pointerType,a?s.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focu
1s({preventScroll:!0})}),onPointerLeave:(0,C.composeEventHandlers)(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&s.onItemLeave?.()}),onKeyDown:(0,C.composeEventHandlers)(i.onKeyDown,e=>{(s.searchRef?.current===""||" "!==e.key)&&(eX.includes(e.key)&&y()," "===e.key&&e.preventDefault())})})})})});tC.displayName=tb;var tE="SelectItemText",tS=p.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,...o}=e,i=e5(tE,r),l=tl(tE,r),s=tj(tE,r),c=e6(tE,r),[u,d]=p.useState(null),m=(0,S.useComposedRefs)(t,e=>d(e),s.onItemTextChange,e=>l.itemTextRefCallback?.(e,s.value,s.disabled)),h=u?.textContent,v=p.useMemo(()=>(0,f.jsx)("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:x}=c;return(0,Q.useLayoutEffect)(()=>(g(v),()=>x(v)),[g,x,v]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(z.Primitive.span,{id:s.textId,...o,ref:m}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?w.createPortal(o.children,i.valueNode):null]})});tS.displayName=tE;var tN="SelectItemIndicator",tk=p.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return tj(tN,r).isSelected?(0,f.jsx)(z.Primitive.span,{"aria-hidden":!0,...n,ref:t}):null});tk.displayName=tN;var tR="SelectScrollUpButton",tP=p.forwardRef((e,t)=>{let r=tl(tR,e.__scopeSelect),n=tp(tR,e.__scopeSelect),[a,o]=p.useState(!1),i=(0,S.useComposedRefs)(t,n.onScrollButtonChange);return(0,Q.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,f.jsx)(tT,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tP.displayName=tR;var tL="SelectScrollDownButton",tA=p.forwardRef((e,t)=>{let r=tl(tL,e.__scopeSelect),n=tp(tL,e.__scopeSelect),[a,o]=p.useState(!1),i=(0,S.useComposedRefs)(t,n.onScrollButtonChange);return(0,Q.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,f.jsx)(tT,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tA.displayName=tL;var tT=p.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...a}=e,o=tl("SelectScrollButton",r),i=p.useRef(null),l=eJ(r),s=p.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>s(),[s]),(0,Q.useLayoutEffect)(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,f.jsx)(z.Primitive.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,C.composeEventHandlers)(a.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(n,50))}),onPointerMove:(0,C.composeEventHandlers)(a.onPointerMove,()=>{o.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(n,50))}),onPointerLeave:(0,C.composeEventHandlers)(a.onPointerLeave,()=>{s()})})});p.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,f.jsx)(z.Primitive.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var tM="SelectArrow";p.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=e2(r),o=e5(tM,r),i=tl(tM,r);return o.open&&"popper"===i.position?(0,f.jsx)(Z.Arrow,{...a,...n,ref:t}):null}).displayName=tM;var tI=p.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{let a=p.useRef(null),o=(0,S.useComposedRefs)(n,a),i=ee(t);return p.useEffect(()=>{let e=a.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,f.jsx)(z.Primitive.select,{...r,style:{...et.VISUALLY_HIDDEN_STYLES,...r.style},ref:o,defaultValue:t})});function tD(e){return""===e||void 0===e}function tz(e){let t=(0,O.useCallbackRef)(e),r=p.useRef(""),n=p.useRef(0),a=p.useCallback(e=>{let a=r.current+e;t(a),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(a)},[t]),o=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,o]}function tO(e,t,r){var n,a;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,l=(n=e,a=Math.max(i,0),n.map((e,t)=>n[(a+t)%n.length]));1===o.length&&(l=l.filter(e=>e!==r));let s=l.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}tI.displayName="SelectBubbleInput";let t_=(0,v.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var tF=e.i(31171),tF=tF;let tB=(0,v.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var tH=e.i(75157);function tW({...e}){return(0,f.jsx)(e8,{"data-slot":"select",...e})}function tq({...e}){return(0,f.jsx)(tt,{"data-slot":"select-value",...e})}function tV({className:e,size:t="default",children:r,...n}){return(0,f.jsxs)(e9,{"data-slot":"select-trigger","data-size":t,className:(0,tH.cn)("border-[#4D4D4D]/10 data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-[20px] border bg-white px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-10 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,(0,f.jsx)(tr,{asChild:!0,children:(0,f.jsx)(tF.default,{className:"size-4 opacity-50"})})]})}function t$({className:e,children:t,position:r="popper",...n}){return(0,f.jsx)(tn,{children:(0,f.jsxs)(to,{"data-slot":"select-content",className:(0,tH.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[(0,f.jsx)(tU,{}),(0,f.jsx)(th,{className:(0,tH.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,f.jsx)(tZ,{})]})})}function tK({className:e,children:t,...r}){return(0,f.jsxs)(tC,{"data-slot":"select-item",className:(0,tH.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[(0,f.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,f.jsx)(tk,{children:(0,f.jsx)(t_,{className:"size-4"})})}),(0,f.jsx)(tS,{children:t})]})}function tU({className:e,...t}){return(0,f.jsx)(tP,{"data-slot":"select-scroll-up-button",className:(0,tH.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,f.jsx)(tB,{className:"size-4"})})}function tZ({className:e,...t}){return(0,f.jsx)(tA,{"data-slot":"select-scroll-down-button",className:(0,tH.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,f.jsx)(tF.default,{className:"size-4"})})}var tX=e.i(61745),tY=e.i(99973),tG=e.i(37548),tJ=e.i(57688),tQ=e.i(22016),t0=e.i(18566),t1=p["use".trim()],t2=e.i(49092),t4=e.i(77105),t5=e.i(89790),t3=e.i(33165),t6=e.i(59426);let{Link:t8,redirect:t7,usePathname:t9,useRouter:re,getPathname:rt}=function(e){let{Link:t,config:r,getPathname:n,...a}=function(e,t){var r,n,a;let o={...r=t||{},localePrefix:"object"==typeof(a=r.localePrefix)?a:{mode:a||"always"},localeCookie:!!((n=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof n&&n},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},i=o.pathnames,l=(0,p.forwardRef)(function({href:t,locale:r,...n},a){let l,c;"object"==typeof t?(l=t.pathname,c=t.params):l=t;let u=(0,t2.isLocalizableHref)(t),d=e(),p=(0,t2.isPromise)(d)?t1(d):d,m=u?s({locale:r||p,href:null==i?l:{pathname:l,params:c},forcePrefix:null!=r||void 0}):l;return(0,f.jsx)(t4.default,{ref:a,href:"object"==typeof t?{...t,pathname:m}:m,locale:r,localeCookie:o.localeCookie,...n})});function s(e){let t,{forcePrefix:r,href:n,locale:a}=e;return null==i?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,t5.serializeSearchParams)(n.query))):t=n:t=(0,t5.compileLocalizedPathname)({locale:a,...(0,t5.normalizeNameOrNameWithParams)(n),pathnames:o.pathnames}),(0,t5.applyPathnamePrefix)(t,a,o,r)}function c(e){return function(t,...r){return e(s(t),...r)}}return{config:o,Link:l,redirect:c(t0.redirect),permanentRedirect:c(t0.permanentRedirect),getPathname:s}}(tX.useLocale,e);return{...a,Link:t,usePathname:function(){let e,t,n=(e=(0,t0.usePathname)(),t=(0,tX.useLocale)(),(0,p.useMemo)(()=>{if(!e)return e;let n=e,a=(0,t2.getLocalePrefix)(t,r.localePrefix);if((0,t2.hasPathnamePrefixed)(a,e))n=(0,t2.unprefixPathname)(e,a);else if("never"!==r.localePrefix.mode&&r.localePrefix.prefixes){let r=(0,t2.getLocaleAsPrefix)(t);(0,t2.hasPathnamePrefixed)(r,e)&&(n=(0,t2.unprefixPathname)(e,r))}return n},[r.localePrefix,t,e])),a=(0,tX.useLocale)();return(0,p.useMemo)(()=>n&&r.pathnames?(0,t5.getRoute)(a,n,r.pathnames):n,[a,n])},useRouter:function(){let e=(0,t0.useRouter)(),t=(0,tX.useLocale)(),a=(0,t0.usePathname)();return(0,p.useMemo)(()=>{function o(e){return function(o,i){let{locale:l,...s}=i||{},c=[n({href:o,locale:l||t,forcePrefix:null!=l||void 0})];Object.keys(s).length>0&&c.push(s),(0,t3.default)(r.localeCookie,a,t,l),e(...c)}}return{...e,push:o(e.push),replace:o(e.replace),prefetch:o(e.prefetch)}},[t,a,e])},getPathname:n}}({locales:t6.LOCALES,defaultLocale:t6.DEFAULT_LOCALE,localePrefix:"always",localeDetection:!1,alternateLinks:!1,pathnames:{"/about":{en:"/who-we-are",pt:"/quem-somos",es:"/quienes-somos"},"/about/esg":{en:"/who-we-are/esg",pt:"/quem-somos/esg",es:"/quienes-somos/esg"},"/brands":{en:"/brands",pt:"/marcas",es:"/marcas"},"/products":{en:"/products",pt:"/produtos",es:"/productos"},"/contact":{en:"/contact",pt:"/contato",es:"/contacto"},"/opportunities":{en:"/opportunities",pt:"/oportunidades",es:"/oportunidades"},"/terms-of-use":{en:"/terms-of-use",pt:"/termos-de-uso",es:"/terminos-de-uso"},"/privacy-policy":{en:"/privacy-policy",pt:"/politica-de-privacidade",es:"/politica-de-privacidad"},"/cookies-policy":{en:"/cookies-policy",pt:"/politica-de-cookie
1s",es:"/politica-de-cookies"},"/predictive":{en:"/predictive",pt:"/preditiva",es:"/predictiva"},"/lubrification":{en:"/lubrification",pt:"/lubrificacao",es:"/lubricacion"},"/lubrification-plan":{en:"/lubrification-plan",pt:"/plano-de-lubrificacao",es:"/plan-de-lubricacion"},"/products/[category]":{en:"/products/[category]",pt:"/produtos/[category]",es:"/productos/[category]"},"/products/[category]/[product]":{en:"/products/[category]/[product]",pt:"/produtos/[category]/[product]",es:"/productos/[category]/[product]"},"/products/line/[subcategory]":{en:"/products/line/[subcategory]",pt:"/produtos/linha/[subcategory]",es:"/productos/linea/[subcategory]"},"/brands/[brand]":{en:"/brands/[brand]",pt:"/marcas/[brand]",es:"/marcas/[brand]"},"/opportunities/[id]":{en:"/opportunities/[id]",pt:"/oportunidades/[id]",es:"/oportunidades/[id]"}}});function rr(e){let t=decodeURIComponent(e).replace(/-/g," ");return t?t[0].toUpperCase()+t.slice(1):t}function rn(e){return"pt"===e?"Página Inicial":"es"===e?"Inicio":"Home"}function ra(e){return"pt"===e?"Ir para a página inicial":"es"===e?"Ir al inicio":"Go to Home"}function ro({locale:e,href:t,segments:r,className:n="",activeClassName:a="font-semibold text-gray-900",baseUrl:o="https://www.nexux.com",withJsonLd:i=!1,lastLabel:l}){let s=[];if(Array.isArray(r)&&r.length>0)s=r.filter(Boolean);else{var c,u;if(!((c=t)&&("string"==typeof c?c.startsWith("/"):"string"==typeof c.pathname&&c.pathname.startsWith("/"))))return(0,f.jsx)("nav",{"aria-label":"breadcrumb",className:n,children:(0,f.jsx)("ol",{className:"flex items-center text-sm text-gray-600",children:(0,f.jsx)("li",{className:"hover:underline",children:(0,f.jsx)(tQ.default,{href:`/${e}`,className:"text-nowrap",title:ra(e),children:rn(e)})})})});s=(u=rt({locale:e,href:t}),u.replace(RegExp(`^/${e}(?=/|$)`),"")).split("/").filter(Boolean)}if(0===s.length)return(0,f.jsx)("nav",{"aria-label":"breadcrumb",className:n,children:(0,f.jsx)("ol",{className:"flex items-center text-sm text-gray-600",children:(0,f.jsx)("li",{className:"hover:underline",children:(0,f.jsx)(tQ.default,{href:`/${e}`,className:"text-nowrap",title:ra(e),children:rn(e)})})})});let d=s.map((e,t)=>({slug:e,label:t===s.length-1?l??rr(e):rr(e)})),p=t=>`/${e}/${s.slice(0,t+1).join("/")}`.replace(/\/+/g,"/"),m=i?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:rn(e),item:new URL(`/${e}`,o).toString()},...d.map((e,t)=>({"@type":"ListItem",position:t+2,name:e.label,item:new URL(p(t),o).toString()}))]}:null;return(0,f.jsxs)("nav",{"aria-label":"breadcrumb",className:n,children:[(0,f.jsxs)("ol",{className:"flex flex-wrap gap-y-1 items-center text-sm ",children:[(0,f.jsx)("li",{className:"hover:underline",children:(0,f.jsx)(tQ.default,{href:`/${e}`,className:"text-nowrap",title:ra(e),children:rn(e)})}),d.map((t,r)=>{var n;let o=r===s.length-1,i=p(r);return(0,f.jsxs)("li",{className:"flex items-center truncate",children:[(0,f.jsx)("span",{"aria-hidden":"true",className:"mx-2",children:"/"}),o?(0,f.jsx)("span",{"aria-current":"page",className:`truncate cursor-default ${a}`,children:t.label}):(0,f.jsx)(tQ.default,{href:i,className:"text-nowrap hover:underline",title:(n=t.label,"pt"===e?`Ir para ${n}`:"es"===e?`Ir a ${n}`:`Go to ${n}`),children:t.label})]},i)})]}),i&&m&&(0,f.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m)}})]})}e.i(31338);let ri={pt:{title1:"Explore nossos",title2:"PRODUTOS",subtitle:"Nossos produtos e equipamentos são fruto de um compromisso contÃnuo com a inovação, a qualidade e a confiança. Cada solução foi cuidadosamente projetada para proporcionar alto desempenho, segurança e durabilidade."},en:{title1:"Explore our",title2:"PRODUCTS",subtitle:"Our products and equipment are the result of a continuous commitment to innovation, quality, and trust. Each solution has been carefully designed to deliver high performance, safety, and durability."},es:{title1:"Explora nuestros",title2:"PRODUCTOS",subtitle:"Nuestros productos y equipos son resultado de un compromiso continuo con la innovacion, la calidad y la confianza. Cada solucion fue disenada para ofrecer alto desempeno, seguridad y durabilidad."}};function rl({locale:e}){let t=ri[e]||ri.pt;return(0,f.jsxs)("div",{className:"mx-auto pt-0 pb-24",children:[(0,f.jsx)(ro,{locale:e,href:"/products",className:"md:mt-24 mt-16 pb-4",itemClassName:"hover:underline",activeClassName:"font-bold text-black"}),(0,f.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[(0,f.jsxs)("div",{className:"xl:-mt-10 lg:-mt-4 mt-0",children:[(0,f.jsxs)("h1",{className:"xl:text-3xl lg:text-2xl text-2xl font-[900] text-gray-900 md:mb-4 mb-0 h-28",children:[(0,f.jsx)(tG.default,{text:t.title1,delay:200}),(0,f.jsx)("br",{}),(0,f.jsx)("span",{className:"xl:text-7xl lg:text-6xl text-5xl",children:(0,f.jsx)(tG.default,{text:t.title2,delay:1e3})})]}),(0,f.jsx)("p",{className:"text-[#4D4D4D] leading-relaxed xl:text-xl lg:text-base md:text-xs text-sm md:pt-2 pt-0",children:t.subtitle})]}),(0,f.jsxs)("div",{className:"relative -mt-8",children:[(0,f.jsx)("div",{className:"relative w-full md:h-[60vh] h-[40vh]",children:(0,f.jsx)(tJ.default,{src:"/partners/partners.png",alt:"equipamentos juntos",fill:!0,loading:"lazy",className:"object-contain pl-2",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100v
1w, 1200px"})}),(0,f.jsx)("div",{className:"absolute right-5 md:mt-4 -mt-2 w-14 h-14",children:(0,f.jsx)(tY.default,{})})]})]})]})}var rs=e.i(63059),rc=e.i(35804),ru=e.i(96626),rd="Checkbox",[rf,rp]=(0,E.createContextScope)(rd),[rm,rh]=rf(rd);function rv(e){let{__scopeCheckbox:t,checked:r,children:n,defaultChecked:a,disabled:o,form:i,name:l,onCheckedChange:s,required:c,value:u="on",internal_do_not_use_render:d}=e,[m,h]=(0,J.useControllableState)({prop:r,defaultProp:a??!1,onChange:s,caller:rd}),[v,g]=p.useState(null),[x,y]=p.useState(null),b=p.useRef(!1),w=!v||!!i||!!v.closest("form"),j={checked:m,disabled:o,setChecked:h,control:v,setControl:g,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:b,required:c,defaultChecked:!rE(a)&&a,isFormControl:w,bubbleInput:x,setBubbleInput:y};return(0,f.jsx)(rm,{scope:t,...j,children:"function"==typeof d?d(j):n})}var rg="CheckboxTrigger",rx=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},a)=>{let{control:o,value:i,disabled:l,checked:s,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:v}=rh(rg,e),g=(0,S.useComposedRefs)(a,u),x=p.useRef(s);return p.useEffect(()=>{let e=o?.form;if(e){let t=()=>d(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,d]),(0,f.jsx)(z.Primitive.button,{type:"button",role:"checkbox","aria-checked":rE(s)?"mixed":s,"aria-required":c,"data-state":rS(s),"data-disabled":l?"":void 0,disabled:l,value:i,...n,ref:g,onKeyDown:(0,C.composeEventHandlers)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,C.composeEventHandlers)(r,e=>{d(e=>!!rE(e)||!e),v&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});rx.displayName=rg;var ry=p.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:s,onCheckedChange:c,form:u,...d}=e;return(0,f.jsx)(rv,{__scopeCheckbox:r,checked:a,defaultChecked:o,disabled:l,required:i,onCheckedChange:c,name:n,form:u,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(rx,{...d,ref:t,__scopeCheckbox:r}),e&&(0,f.jsx)(rC,{__scopeCheckbox:r})]})})});ry.displayName=rd;var rb="CheckboxIndicator",rw=p.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,o=rh(rb,r);return(0,f.jsx)(ru.Presence,{present:n||rE(o.checked)||!0===o.checked,children:(0,f.jsx)(z.Primitive.span,{"data-state":rS(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});rw.displayName=rb;var rj="CheckboxBubbleInput",rC=p.forwardRef(({__scopeCheckbox:e,...t},r)=>{let{control:n,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:i,required:l,disabled:s,name:c,value:u,form:d,bubbleInput:m,setBubbleInput:h}=rh(rj,e),v=(0,S.useComposedRefs)(r,h),g=ee(o),x=(0,rc.useSize)(n);p.useEffect(()=>{if(!m)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(g!==o&&e){let r=new Event("click",{bubbles:t});m.indeterminate=rE(o),e.call(m,!rE(o)&&o),m.dispatchEvent(r)}},[m,g,o,a]);let y=p.useRef(!rE(o)&&o);return(0,f.jsx)(z.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:l,disabled:s,name:c,value:u,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function rE(e){return"indeterminate"===e}function rS(e){return rE(e)?"indeterminate":e?"checked":"unchecked"}function rN({className:e,...t}){return(0,f.jsx)(ry,{"data-slot":"checkbox",className:(0,tH.cn)("peer border-[#4D4D4D] dark:bg-input/30 data-[state=checked]:bg-[#2078BC] data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive xl:size-[22px] lg:size-[18px] md:size-[18px] size-[18px] shrink-0 border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,f.jsx)(rw,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,f.jsx)(t_,{className:"size-4.5"})})})}rC.displayName=rj;var rk=e.i(91918),rR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,rk.createSlot)(`Primitive.${t}`),n=p.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(a?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),rP=p.forwardRef((e,t)=>(0,f.jsx)(rR.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));function rL({className:e,...t}){return(0,f.jsx)(rP,{"data-slot":"label",className:(0,tH.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}rP.displayName="Label";let rA={pt:"Categorias",en:"Categories",es:"CategorÃas"};function rT({categories:e,selectedCategories:t,selectedSubcategories:r,onCategoryChange:n,onSubcategoryChange:a,isMobile:o=!1,locale:i}){let[l,s]=(0,p.useState)([]),c=e=>{s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])};return(0,f.jsx)("div",{className:o?"space-y-4":"bg-white rounded-[20px] px-4 pt-6 pb-8 shadow-md w-full",children:(0,f.jsxs)("div",{className:o?"":"xl:pl-1",children:[(0,f.jsx)("h3",{className:`font-[800] mb-4 w-fit ${o?"text-lg text-gray-900":"xl:text-2xl lg:text-xl md:text-xl"}`,children:rA[i]}),(0,f.jsx)("div",{className:o?"space-y-3":"space-y-[14px]",children:e.map(e=>{let i=l.includes(e.name),s=e.subcategories.length>0;return(0,f.jsxs)("div",{className:"space-y-2",children:[(0,f.jsxs)("div",{className:"flex items-start gap-2 text-[#181818]",children:[(0,f.jsx)(rN,{className:"cursor-pointer shrink-0 mt-0.5 size-4 md:size-4 lg:size-4 xl:size-[18px] [&_svg]:size-3",id:`category-${e.slug}`,checked:t.includes(e.name),onCheckedChange:t=>n(e.name,t)}),(0,f.jsxs)("span",{role:s?"button":void 0,tabIndex:s?0:void 0,"aria-expanded":s?i:void 0,onClick:()=>s&&c(e.name),onKeyDown:t=>{s&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e.name))},className:`font-[500] leading-snug mt-px ${s?"cursor-pointer hover:text-[#226BA2]":""} ${o?"text-sm":"whitespace-nowrap xl:text-[15px] lg:text-sm"}`,children:[e.name,s&&(0,f.jsx)(rs.ChevronRight,{"aria-hidden":"true",className:`inline-block ml-1.5 -mt-px h-3.5 w-3.5 text-gray-400 transition-transform duration-200 ${i?"rotate-90":""}`})]})]}),(0,f.jsx)(h.AnimatePresence,{initial:!1,children:s&&i&&(0,f.jsx)(m.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,f.jsx)("div",{className:"ml-6 space-y-2 border-l border-gray-200 pl-3 pt-1.5 pb-1",children:e.subcategories.map(e=>(0,f.jsxs)("div",{className:"flex items-center space-x-2.5 text-[#4D4D4D]",children:[(0,f.jsx)(rN,{className:"cursor-pointer shrink-0 mt-0.5 size-4 md:size-4 lg:size-4 xl:size-[18px] [&_svg]:size-3",id:`subcategory-${e.slug}`,checked:r.includes(e.name),onCheckedChange:t=>a(e.name,t)}),(0,f.jsx)(rL,{htmlFor:`subcategory-${e.slug}`,className:"font-[400] cursor-pointer text-sm mt-px",children:e.name})]},e.slug))})},"subs")})]},e.slug)})})]})})}let rM={pt:{clearFilters:"Limpar filtros"},en:{clearFilters:"Clear filters"},es:{clearFilters:"Limpiar filtros"}},rI=(0,p.memo)(function({categories:e,selectedCategories:t,selectedSubcategories:r,onCategoryChange:n,onSubcategoryChange:a,onClearFilters:o,locale:i}){let l=rM[i],s=t.length>0||r.length>0;return(0,f.jsxs)("div",{className:"lg:col-span-1",children:[(0,f.jsx)(rT,{categories:e,selectedCategories:t,selectedSubcategories:r,onCategoryChange:n,onSubcategoryChange:a,locale:i}),s&&(0,f.jsx)("div",{className:"mt-6 w-full flex items-center justify-center",children:(0,f.jsx)(m.motion.div,{className:"w-fit",whileHover:{scale:1.02},whileTap:{scale:.98},initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:(0,f.jsx)(y.Button,{size:"lg",onClick:o,variant:"outline",children:l.clearFilters})})})]})});var rD=e.i(37727);let rz={pt:{filters:"Filtros",clear:"Limpar filtros",filter:"Filtrar",activeSingular:"filtro ativo",activePlural:"filtros ativos"},en:{filters:"Filters",clear:"Clear filters",filter:"Filter",activeSingular:"active filter",activePlural:"active filters"},es:{filters:"Filtros",clear:"Limpiar filtros",filter:"Filtrar",activeSingular:"filtro activo",activePlural:"filtros activos"}};function rO({isOpen:e,onClose:t,categories:r,selectedCategories:n,selectedSubcategories:a,onCategoryChange:o,onSubcategoryChange:i,onClearFilters:l,onApplyFilters:s,totalProducts:c,locale:u}){let d=rz[u],p=n.length+a.length;return(0,f.jsx)(h.AnimatePresence,{children:e&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(m.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 z-40",onClick:t}),(0,f.jsxs)(m.motion.div,{initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"100%"},transition:{type:"spring",damping:25,stiffness:300},className:"fixed inset-x-0 bottom-0 top-0 bg-white z-50 flex flex-col",children:[(0,f.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:[(0,f.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:d.filters}),(0,f.jsx)(y.Button,{variant:"ghost",size:"sm",onClick:t,className:"p-2",children:(0,f.jsx)(rD.X,{className:"w-5 h-5"})})]}),(0,f.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:(0,f.jsx)(rT,{categories:r,selectedCategories:n,selectedSubcategories:a,onCategoryChange:o,onSubcategoryChange:i,isMobile:!0,locale:u})}),(0,f.jsxs)("div",{className:"p-4 border-t border-gray-200 space-y-3",children:[(0,f.jsxs)("div",{className:"flex gap-3",children:[(0,f.jsx)(y.Button,{onClick:()=>{l(),t()},className:"flex-1",disabled:0===p,children:d.clear}),(0,f.jsxs)(y.Button,{onClick:()=>{s(),t()},className:"flex-1",children:[d.filter," (",c,")"]})]}),p>0&&(0,f.jsxs)("p",{className:"text-sm text-center text-gray-600",children:[p," ",1===p?d.activeSingular:d.activePlural]})]})]})]})})}let r_={pt:{title:"Pesquisar Produtos",placeholder:"Digite o nome do produto...",clear:"Limpar",search:"Pesquisar",current:"Pesquisa atual:"},en:{title:"Search Products",placeholder:"Enter the product name...",clear:"Clear",search:"Search",current:"Current search:"},es:{title:"Buscar Productos",placeholder:"Escribe el nombre del producto...",clear:"Limpiar",search:"Buscar",current:"Busqueda actual:"}};function rF({isOpen:e,onClose:t,searchTerm:r,onSearchChange:n,locale:a}){let o=r_[a],[i,l]=(0,p.useState)(r),s=()=>{n(i),t()};return(0,f.jsx)(h.AnimatePresence,{children:e&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(m.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 z-40",onClick:t}),(0,f.jsxs)(m.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{type:"spring",damping:25,stiffness:300},className:"fixed top-0 inset-x-0 bg-white z-50 shadow-lg",children:[(0,f.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:[(0,f.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:o.title}),(0,f.jsx)(y.Button,{variant:"ghost",size:"sm",onClick:t,className:"p-2",children:(0,f.jsx)(rD.X,{className:"w-5 h-5"})})]}),(0,f.jsxs)("div",{className:"p-4 space-y-4",children:[(0,f.jsxs)("div",{className:"relative",children:[(0,f.jsx)(g,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5"}),(0,f.jsx)(b.Input,{placeholder:o.placeholder,value:i,onChange:e=>l(e.target.value),className:"pl-10 text-base",autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&s()}})]}),(0,f.jsxs)("div",{className:"flex gap-3",children:[(0,f.jsx)(y.Button,{onClick:()=>{l(""),n(""),t()},className:"flex-1",disabled:!i,children:o.clear}),(0,f.jsx)(y.Button,{onClick:s,className:"flex-1",children:o.search})]}),r&&(0,f.jsx)("div",{className:"pt-2 border-t border-gray-200",children:(0,f.jsxs)("p",{className:"text-sm text-gray-600",children:[o.current," ",(0,f.jsx)("span",{className:"font-medium",children:r})]})})]})]})]})})}var rB=e.i(58512),rH=e.i(36719);let rW=(e,t)=>"string"==typeof e?e:e[t]||e.pt||e.en||"",rq={pt:{searchPlaceholder:"Pesquisar produto por nome",sortBy:"Ordenar por",relevance:"Relevância",newest:"Mais recentes",oldest:"Mais antigos",aToZ:"De A a Z",zToA:"De Z a A",filters:"Filtros",search:"Pesquisar",seeMore:"Ver mais",noProducts:"Nenhum produto encontrado com os filtros selecionados.",clearFilters:"Limpar filtros",loading:"Carregando produtos...",text:"Todos os produtos e equipamentos em um só lugar"},en:{searchPlaceholder:"Search product by name",sortBy:"Sort by",relevance:"Relevance",newest:"Newest",oldest:"Oldest",aToZ:"A to Z",zToA:"Z to A",filters:"Filters",search:"Search",seeMore:"See more",noProducts:"No products found with the selected filters.",clearFilters:"Clear filters",loading:"Loading products...",text:"All products and equipment in one place"},es:{searchPlaceholder:"Buscar producto por nombre",sortBy:"Ordenar por",relevance:"Relevancia",newest:"Mas recientes",oldest:"Mas antiguos",aToZ:"De A a Z",zToA:"De Z a A",filters:"Filtros",search:"Buscar",seeMore:"Ver mas",noProducts:"No se encontraron productos con los filtros seleccionados.",clearFilters:"Limpiar filtros",loading:"Cargando productos...",text:"Todos los productos y equipos en un solo lugar"}};function rV({initialProducts:t,categories:r,totalCount:n}){let a=(0,t6.normalizeLocale)((0,tX.useLocale)()),o=rq[a],[i,l]=(0,p.useState)(t),[s,c]=(0,p.useState)(n),[u,d]=(0,p.useState)({categories:[],subcategories:[],search:"",sort:"relevance",page:1}),[v,w]=(0,p.useState)(!1),[j,C]=(0,p.useState)(!1),E=(0,p.useRef)(null),S=(0,p.useRef)(!0),{sourceRef:N}=function(e,t={}){let{threshold:r=50,offset:n=100,scrollOffset:a=-50,disabled:o=!1}=t,i=(0,p.useRef)(null),[l,s]=(0,p.useState)(!1),c=(0,p.useCallback)(()=>{if(l||o||!e.current||!i.current)return;let t=window.scrollY,u=i.current.offsetHeight||0;if(t>r&&t<u-n){s(!0);let t=e.current.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:t+a,behavior:"smooth"}),window.removeEventListener("scroll",c)}},[l,o,e,r,n,a]);return(0,p.useEffect)(()=>{if(!o&&!l)return window.addEventListener("scroll",c,{passive:!0}),()=>{window.removeEventListener("scroll",c)}},[c,o,l]),{sourceRef:i,hasTriggered:l}}(E,{threshold:50,offset:100,scrollOffset:-50,disabled:!0}),k=function(t,r,n,a){var o=this,i=(0,p.useRef)(null),l=(0,p.useRef)(0),s=(0,p.useRef)(0),c=(0,p.useRef)(null),u=(0,p.useRef)([]),d=(0,p.useRef)(),f=(0,p.useRef)(),m=(0,p.useRef)(t),h=(0,p.useRef)(!0),v=(0,p.useRef)(),g=(0,p.useRef)();m.current=t;var x="u">typeof window,y=!r&&0!==r&&x;if("function"!=typeof t)throw TypeError("Expected a function");r=+r||0;var b=!!(n=n||{}).leading,w=!("trailing"in n)||!!n.trailing,j=!!n.flushOnExit&&w,C="maxWait"in n,E="debounceOnServer"in n&&!!n.debounceOnServer,S=C?Math.max(+n.maxWait||0,r):null,N=(0,p.useMemo)(function(){var t=function(e){var t=u.current,r=d.current;return u.current=d.current=null,l.current=e,s.current=s.current||e,f.current=m.current.apply(r,t)},n=function(e,t){y&&cancelAnimationFrame(c.current),c.current=y?requestAnimationFrame(e):setTimeout(e,t)},p=function(e){if(!h.current)return!1;var t=e-i.current;return!i.current||t>=r||t<0||C&&e-l.current>=S},N=function(e){return c.current=null,w&&u.current?t(e):(u.current=d.current=null,f.current)},k=function e(){var t=Date.now();if(b&&s.current===l.current&&R(),p(t))return N(t);if(h.current){var a=r-(t-i.current);n(e,C?Math.min(a,S-(t-l.current)):a)}},R=function(){a&&a({})},P=function(){if(x||E){var a,s=Date.now(),m=p(s);if(u.current=[].slice.call(arguments),d.current=o,i.current=s,j&&!v.current&&(v.current=function(){var t;"hidden"===(null==(t=e.g.document)?void 0:t.visibilityState)&&g.current.flush()},null==(a=e.g.document)||null==a.addEventListener||a.addEventListener("visibilitychange",v.current)),m){if(!c.current&&h.current)return l.current=i.current,n(k,r),b?t(i.current):f.current;if(C)return n(k,r),t(i.current)}return c.current||n(k,r),f.current}};return P.cancel=function(){var e=c.current;e&&(y?cancelAnimationFrame(c.current):clearTimeout(c.current)),l.current=0,u.current=i.current=d.current=c.current=null,e&&a&&a({})},P.isPending=function(){return!!c.current},P.flush=function(){return c.current?N(Date.now()):f.current},P},[b,C,r,S,w,j,y,x,E,a]);return g.current=N,(0,p.useEffect)(function(){return h.current=!0,function(){var t;j&&g.current.flush(),v.current&&(null==(t=e.g.document)||null==t.removeEventListener||t.removeEventListener("visibilitychange",v.current),v.current=null),h.current=!1}},[j]),N}(e=>{R({search:e,page:1})},500),R=(0,p.useCallback)(e=>{d(t=>({...t,...e}))},[]),P=(0,p.useCallback)(async()=>{try{let e=new URLSearchParams;u.categories.length>
10&&u.categories.forEach(t=>e.append("categoria",t)),u.search&&e.set("search",u.search),u.subcategories.length>0&&u.subcategories.forEach(t=>e.append("subcategoria",t)),u.page>1&&e.set("page",u.page.toString()),u.sort&&"relevance"!==u.sort&&e.set("sort",u.sort),e.set("limit","20"),e.set("locale",a);let t=await fetch(`/api/products?${e.toString()}`),r=await t.json();r.success&&(l(r.products),"number"==typeof r.totalCount&&c(r.totalCount))}catch(e){console.error("Erro ao buscar produtos",e)}},[u.categories,u.search,u.page,u.sort,u.subcategories,a]);(0,p.useEffect)(()=>{P()},[u.categories,u.search,u.page,u.sort,u.subcategories,P]),(0,p.useEffect)(()=>{if(S.current){S.current=!1;return}let e=document.getElementById("products");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},[u.page,u.categories,u.subcategories]);let L=(0,p.useMemo)(()=>{var e;return e=u.sort,"relevance"===e?i:[...i].sort((t,r)=>{let n=rW(t.name??"",a).toLowerCase(),o=rW(r.name??"",a).toLowerCase();switch(e){case"a-z":return n.localeCompare(o);case"z-a":return o.localeCompare(n);case"newest":return new Date(r.createdAt||0).getTime()-new Date(t.createdAt||0).getTime();case"oldest":return new Date(t.createdAt||0).getTime()-new Date(r.createdAt||0).getTime();default:return 0}})},[i,u.sort,a]),A=(0,p.useCallback)((e,t)=>{R({categories:t?[...u.categories,e]:u.categories.filter(t=>t!==e),page:1})},[u.categories,R]),T=(0,p.useCallback)((e,t)=>{R({subcategories:t?[...u.subcategories,e]:u.subcategories.filter(t=>t!==e),page:1})},[u.subcategories,R]),M=(0,p.useCallback)(e=>{d(t=>({...t,search:e})),k(e)},[k]),I=(0,p.useCallback)(e=>{R({sort:e,page:1})},[R]),D=(0,p.useCallback)(e=>{R({page:e})},[R]),z=(0,p.useCallback)(()=>{if(d({categories:[],subcategories:[],search:"",sort:"relevance",page:1}),S.current){S.current=!1;return}let e=document.getElementById("products");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},[]),O=Math.max(1,Math.ceil((s||0)/20)),_=u.categories.length+u.subcategories.length;return(0,f.jsxs)("div",{className:"w-full mx-auto",children:[(0,f.jsx)("div",{ref:N,className:"xl:px-20 lg:px-16 md:px-10 px-6 h-full max-h-[1900px] w-full overflow-hidden max-w-[115rem] mx-auto",children:(0,f.jsx)(rl,{locale:a})}),(0,f.jsx)("div",{id:"products",className:"mx-auto py-10 bg-[#F9FAFA] mt-2",children:(0,f.jsxs)("div",{ref:E,className:"gap-8 xl:px-20 lg:px-16 md:px-10 px-6 pt-14 max-w-[115rem] mx-auto block md:grid md:grid-cols-[20rem_1fr] xl:grid-cols-[22rem_1fr]",children:[(0,f.jsx)("div",{className:"hidden md:block",children:(0,f.jsx)(rI,{categories:r,selectedCategories:u.categories,selectedSubcategories:u.subcategories,onCategoryChange:A,onSubcategoryChange:T,onClearFilters:z,locale:a})}),(0,f.jsxs)("div",{className:"md:ml-0",children:[(0,f.jsxs)("div",{className:"mb-4 flex gap-1 md:hidden",children:[(0,f.jsxs)(y.Button,{onClick:()=>w(!0),variant:"outline",className:"gap-1 relative h-10",children:[(0,f.jsx)(x,{className:"w-4 h-4"}),o.filters,_>0&&(0,f.jsx)("span",{className:"absolute -top-2 -right-2 bg-[#2078BC] text-white text-xs rounded-full w-5 h-5 flex items-center justify-center z-20",children:_})]}),(0,f.jsxs)(y.Button,{onClick:()=>C(!0),variant:"outline",className:"gap-1 relative h-10",children:[(0,f.jsx)(g,{className:"w-4 h-4 text-gray-700"}),o.search,u.search.length>0&&(0,f.jsx)("span",{className:"absolute -top-2 -right-2 bg-[#2078BC] text-white text-xs rounded-full w-5 h-5 flex items-center justify-center",children:"1"})]}),(0,f.jsxs)(tW,{value:u.sort,onValueChange:I,children:[(0,f.jsx)(tV,{className:"w-full sm:w-48 text-[#212121] font-[700] pl-4 xl:text-base lg:text-sm md:text-sm rounded-lg",children:(0,f.jsx)(tq,{placeholder:o.sortBy})}),(0,f.jsxs)(t$,{children:[(0,f.jsx)(tK,{value:"relevance",children:o.relevance}),(0,f.jsx)(tK,{value:"newest",children:o.newest}),(0,f.jsx)(tK,{value:"oldest",children:o.oldest}),(0,f.jsx)(tK,{value:"a-z",children:o.aToZ}),(0,f.jsx)(tK,{value:"z-a",children:o.zToA})]})]})]}),(0,f.jsxs)("div",{className:"hidden md:flex flex-col sm:flex-row gap-4 mb-5",children:[(0,f.jsxs)("div",{className:"relative flex-1",children:[(0,f.jsx)(g,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-600 w-6 h-6"}),(0,f.jsx)(b.Input,{placeholder:o.searchPlaceholder,value:u.search,onChange:e=>M(e.target.value),className:"pl-6 xl:placeholder:text-base lg:placeholder:text-sm"})]}),(0,f.jsxs)(tW,{value:u.sort,onValueChange:I,children:[(0,f.jsx)(tV,{className:"w-full sm:w-48 text-[#212121] font-[500] pl-4 xl:text-base lg:text-sm md:text-sm",children:(0,f.jsx)(tq,{placeholder:o.sortBy})}),(0,f.jsxs)(t$,{children:[(0,f.jsx)(tK,{value:"relevance",children:o.relevance}),(0,f.jsx)(tK,{value:"newest",children:o.newest}),(0,f.jsx)(tK,{value:"oldest",children:o.oldest}),(0,f.jsx)(tK,{value:"a-z",children:o.aToZ}),(0,f.jsx)(tK,{value:"z-a",children:o.zToA})]})]})]}),(0,f.jsx)(h.AnimatePresence,{mode:"wait",children:(0,f.jsx)(m.motion.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},className:"mb-8 pt-2 min-h-screen grid grid-cols-1 sm:grid-cols-2 gap-4 md:flex md:flex-wrap md:gap-x-5 md:gap-y-8",children:L.map((e,t)=>{let r=rW(e.name??"",a),n=e.slug||(0,tH.generateSlug)(r),i=(0,tH.generateSlug)(rW(e.category,a)),l=`/${a}/${t6.LOCALE_PREFIXES.products[a]}/${i}`;return(0,f.jsx)(m.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},whileHover:{scale:1.04},transition:{duration:.3,ease:"easeInOut"},children:(0,f.jsx)(rH.ProductListCard,{href:`${l}/${n}`,name:r,imageUrl:e.imageUrl,actionLabel:o.seeMore,eager:1===u.page,external:!0})},t)})},u.page)}),O>1&&(0,f.jsx)("div",{className:"mt-8",children:(0,f.jsx)(rB.Pagination,{currentPage:u.page,totalPages:O,onPageChange:D})})]}),(0,f.jsx)(rO,{isOpen:v,onClose:()=>w(!1),categories:r,selectedCategories:u.categories,selectedSubcategories:u.subcategories,onCategoryChange:A,onSubcategoryChange:T,onClearFilters:z,onApplyFilters:()=>w(!1),totalProducts:L.length,locale:a}),(0,f.jsx)(rF,{isOpen:j,onClose:()=>C(!1),searchTerm:u.search,onSearchChange:M,locale:a})]})})]})}e.s(["default",()=>rV],58070)}]);
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.