1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7426],{38474:(e,t,r)=>{r.d(t,{l:()=>c});var n=r(49607),l=r(57871),o=r(95390),i=r(5501),a=r(26721),s=r(90805),u=r(60730);let d=0;function c(e){let{options:t,value:r,defaultValue:c,onValueChange:f,placeholder:b="Selectâ¦",className:m,id:v,name:h}=e,[p,x]=l.useState(null!=c?c:""),[w,g]=l.useState(!1),y=l.useRef(null),k=l.useRef(null),E=l.useRef(null),j=null!=r?r:p,A=t.find(e=>e.value===j),N=l.useMemo(()=>(d+=1,"select-list-".concat(d)),[]);l.useEffect(()=>{let e=e=>{var t,r;let n=e.target;(null==(t=y.current)?void 0:t.contains(n))||(null==(r=E.current)?void 0:r.contains(n))||g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let[M,R]=l.useState(!1);l.useEffect(()=>R(!0),[]);let S=(0,u.B)({open:w,anchorRef:k,menuRef:E,matchAnchorWidth:!0}),C=l.useRef(!1);l.useEffect(()=>{var e;if(!w){C.current=!1;return}if(C.current||!S||!E.current)return;let t=Array.from(E.current.querySelectorAll('[role="option"]')),r=null!=(e=t.find(e=>"true"===e.getAttribute("aria-selected")))?e:t[0];r&&(r.focus(),C.current=!0)},[w,S]);let D=e=>{var t;g(!1),e&&(null==(t=k.current)||t.focus())};return(0,n.jsxs)("div",{className:"relative",ref:y,children:[h&&(0,n.jsx)("input",{type:"hidden",name:h,value:j}),(0,n.jsxs)("button",{ref:k,type:"button",id:v,onClick:()=>g(e=>!e),onKeyDown:e=>{w||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),g(!0))},className:(0,s.cn)("flex h-11 w-full items-center justify-between rounded-xl border border-input bg-card/60 px-4 py-2 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:border-gold-500 focus-visible:ring-2 focus-visible:ring-gold-500/30",m),"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?N:void 0,children:[(0,n.jsx)("span",{className:(0,s.cn)(!A&&"text-muted-foreground/70"),children:A?A.label:b}),(0,n.jsx)(i.A,{className:(0,s.cn)("h-4 w-4 text-muted-foreground transition-transform",w&&"rotate-180")})]}),w&&M&&(0,o.createPortal)((0,n.jsx)("div",{ref:E,id:N,role:"listbox","aria-labelledby":v,onKeyDown:e=>{var t,r;let n=Array.from(null!=(r=null==(t=E.current)?void 0:t.querySelectorAll('[role="option"]'))?r:[]);if(0===n.length)return;let l=n.indexOf(document.activeElement),o=t=>{var r;e.preventDefault(),null==(r=n[(t+n.length)%n.length])||r.focus()};"ArrowDown"===e.key?o(l+1):"ArrowUp"===e.key?o(l-1):"Home"===e.key?o(0):"End"===e.key?o(n.length-1):"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),D(!0)):"Tab"===e.key&&g(!1)},style:S,className:(0,s.cn)("overflow-auto rounded-xl border border-border bg-popover p-1.5 shadow-card animate-menu-in",u.E,!S&&"invisible"),children:t.map(e=>(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":e.value===j,onClick:()=>{void 0===r&&x(e.value),null==f||f(e.value),D(!0)},className:"flex w-full items-start justify-between rounded-lg px-3 py-2 text-left text-sm text-foreground transition-colors hover:bg-muted focus-visible:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gold-500/40",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-0.5 pr-4",children:[(0,n.jsx)("span",{className:"font-semibold text-brown-900",children:e.label}),e.description&&(0,n.jsx)("span",{className:"text-[0.72rem] text-muted-foreground leading-relaxed font-sans",children:e.description})]}),e.value===j&&(0,n.jsx)(a.A,{className:"h-4 w-4 shrink-0 text-gold-600 self-center"})]},e.value))}),document.body)]})}},45497:(e,t,r)=>{r.d(t,{S:()=>a});var n=r(49607),l=r(57871),o=r(26721),i=r(90805);let a=l.forwardRef((e,t)=>{let{checked:r,defaultChecked:a,onCheckedChange:s,disabled:u,className:d,id:c,"aria-labelledby":f,"aria-label":b,"aria-describedby":m}=e,[v,h]=l.useState(null!=a&&a),p=void 0!==r,x=p?r:v;return(0,n.jsx)("button",{ref:t,id:c,type:"button",role:"checkbox","aria-checked":x,"aria-labelledby":f,"aria-label":b,"aria-describedby":m,disabled:u,onClick:()=>{p||h(e=>!e),null==s||s(!x)},className:(0,i.cn)("flex h-5 w-5 shrink-0 items-center justify-center rounded-[6px] border transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gold-500/40 disabled:opacity-50","relative before:absolute before:-inset-[3px] before:content-['']",x?"border-transparent bg-gradient-gold text-brown-900":"border-input bg-card/60 hover:border-gold-500/60",d),children:x&&(0,n.jsx)(o.A,{className:"h-3.5 w-3.5",
1strokeWidth:3})})});a.displayName="Checkbox"},60730:(e,t,r)=>{r.d(t,{B:()=>o,E:()=>i});var n=r(57871);let l=n.useLayoutEffect;function o(e){let{open:t,anchorRef:r,menuRef:o,align:i="start",matchAnchorWidth:a=!1,gap:s=8,margin:u=8}=e,[d,c]=n.useState();return l(()=>{if(!t)return void c(void 0);let e=()=>{var e;let t=r.current;if(!t)return;let n=o.current,l=t.getBoundingClientRect(),d=document.documentElement.clientWidth,f=document.documentElement.clientHeight,b=f-l.bottom-s-u,m=l.top-s-u,v=n?n.scrollHeight:0,h=v>b&&m>b,p=Math.max(96,Math.min(Math.max(96,f-2*u),h?m:b)),x=Math.min(v||p,p),w=a?l.width:null!=(e=null==n?void 0:n.offsetWidth)?e:l.width,g="end"===i?l.right-w:"center"===i?l.left+l.width/2-w/2:l.left;g=Math.min(Math.max(u,g),Math.max(u,d-w-u));let y=h?l.top-s-x:l.bottom+s;c({position:"fixed",left:g,top:y=Math.min(Math.max(u,y),Math.max(u,f-x-u)),width:a?l.width:void 0,maxHeight:p})};e();let n=window.requestAnimationFrame(e);window.addEventListener("scroll",e,!0),window.addEventListener("resize",e);let l="undefined"==typeof ResizeObserver?null:new ResizeObserver(e);return l&&r.current&&l.observe(r.current),()=>{window.cancelAnimationFrame(n),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e),null==l||l.disconnect()}},[t,i,a,s,u,r,o]),d}let i="z-[120]"}}]);
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.