PageSourceSearch

https://gadero.nl/assets/useStaffAccess-W8-0Vx0x.js

js gadero.nl collected 2026-09-29 23:19:08 UTC 22,586 bytes, 1 lines download raw bytes

1import{r as o,a as k,R as Me,j as u,b as Le}from"./react-DV1t-RFr.js";import{A as Je,y as Xe,R as et,T as tt,w as nt,F as ot,i as st,j as ce,k as rt,o as at,l as lt,m as ut,n as it,u as ct}from"./useControllable-BR-jvp-h.js";import{$ as dt,a1 as ft,k as q,ag as he,m as pt,ao as Pe,a4 as vt,Y as ee,a5 as U,y as J,e as Te,N as Ne,f as X,d as R,n as ae,x as _e,K as le,T as mt,ap as ht,ac as Ee,aq as re,ar as gt,as as xt,at as bt,au as wt,af as Ct,ak as Pt,av as Ge,h as Ae,j as yt,aw as ye,a6 as Fe,ad as $t,a7 as St,a8 as jt,q as H,ax as Z,V as ge,ay as ze,az as _,aA as xe,s as kt,ab as It,U as be,W as we,aj as G,l as de,p as Rt,al as Et,aB as Ft,r as $e,an as Bt,aC as Dt}from"./User-DHinwHkO.js";import{a as N}from"./Trash-C9p4crdT.js";import{s as He,$ as Ot,b as Mt,w as Lt,e as Tt}from"./actionConstants-C5uiKSe-.js";import{f as Nt}from"./react-router-CRB4Z4yw.js";import{b as _t}from"./Tree-l_KdbifF.js";var Gt=Object.defineProperty,At=(e,n,t)=>n in e?Gt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Be=(e,n,t)=>(At(e,typeof n!="symbol"?n+"":n,t),t),j=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(j||{}),zt=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(zt||{});let Ht={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,n){return e.button===n.button?e:{...e,button:n.button}},3(e,n){return e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId}},4(e,n){return e.panel===n.panel?e:{...e,panel:n.panel}},5(e,n){return e.panelId===n.panelId?e:{...e,panelId:n.panelId}}};class Se extends dt{constructor(n){super(n),Be(this,"actions",{close:()=>this.send({type:1}),refocusableClose:t=>{this.actions.close();let a=t?he(t)?t:"current"in t&&he(t.current)?t.current:this.state.button:this.state.button;a==null||a.focus()},open:()=>this.send({type:0}),setButtonId:t=>this.send({type:3,buttonId:t}),setButton:t=>this.send({type:2,button:t}),setPanelId:t=>this.send({type:5,panelId:t}),setPanel:t=>this.send({type:4,panel:t})}),Be(this,"selectors",{isPortalled:t=>{var a;if(!t.button||!t.panel)return!1;let d=(a=pt(t.button))!=null?a:document;for(let x of d.querySelectorAll("body > *"))if(Number(x==null?void 0:x.contains(t.button))^Number(x==null?void 0:x.contains(t.panel)))return!0;let f=Pe(d),l=f.indexOf(t.button),s=(l+f.length-1)%f.length,g=(l+1)%f.length,$=f[s],r=f[g];return!t.panel.contains($)&&!t.panel.contains(r)}});{let t=this.state.id,a=ft.get(null);this.on(0,()=>a.actions.push(t)),this.on(1,()=>a.actions.pop(t))}}static new({id:n,__demoMode:t=!1}){return new Se({id:n,__demoMode:t,popoverState:t?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(n,t){return q(t.type,Ht,n,t)}}const Ze=o.createContext(null);function fe(e){let n=o.useContext(Ze);if(n===null){let t=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fe),t}return n}function Zt({id:e,__demoMode:n=!1}){let t=o.useMemo(()=>Se.new({id:e,__demoMode:n}),[]);return vt(()=>t.dispose()),t}let je=o.createContext(null);je.displayName="PopoverGroupContext";function Ke(){return o.useContext(je)}let pe=o.createContext(null);pe.displayName="PopoverPanelContext";function Kt(){return o.useContext(pe)}let Qt="div";function Vt(e,n){var t;let a=o.useId(),{__demoMode:d=!1,...f}=e,l=Zt({id:a,__demoMode:d}),s=o.useRef(null),g=J(n,mt(h=>{s.current=h})),[$,r,x,w,p]=U(l,o.useCallback(h=>[h.popoverState,h.button,h.panel,h.buttonId,h.panelId],[])),S=ht((t=s.current)!=null?t:r),v=Ee(w),m=Ee(p),C=o.useMemo(()=>({buttonId:v,panelId:m,close:l.actions.close}),[v,m,l]),P=Ke(),i=P==null?void 0:P.registerPopover,I=R(()=>{var h,E;let B=re((h=s.current)!=null?h:r);return(E=P==null?void 0:P.isFocusWithinPopoverGroup())!=null?E:B&&((r==null?void 0:r.contains(B))||(x==null?void 0:x.contains(B)))});o.useEffect(()=>i==null?void 0:i(C),[i,C]);let[te,ne]=gt(),A=xt(r),L=bt({mainTreeNode:A,portals:te,defaultContainers:[{get current(){return l.state.button}},{get current(){return l.state.panel}}]});
1wt(S,"focus",h=>{var E,B,O,W,M,Y;h.target!==window&&Rt(h.target)&&l.state.popoverState===j.Open&&(I()||l.state.button&&l.state.panel&&(L.contains(h.target)||(B=(E=l.state.beforePanelSentinel.current)==null?void 0:E.contains)!=null&&B.call(E,h.target)||(W=(O=l.state.afterPanelSentinel.current)==null?void 0:O.contains)!=null&&W.call(O,h.target)||(Y=(M=l.state.afterButtonSentinel.current)==null?void 0:M.contains)!=null&&Y.call(M,h.target)||l.actions.close()))},!0);let K=$===j.Open;Ct(K,L.resolveContainers,(h,E)=>{l.actions.close(),Pt(E,Et.Loose)||(h.preventDefault(),r==null||r.focus())});let oe=ae({open:$===j.Open,close:l.actions.refocusableClose}),se=U(l,o.useCallback(h=>q(h.popoverState,{[j.Open]:X.Open,[j.Closed]:X.Closed}),[])),Q={ref:g},V=le();return k.createElement(Ge,{node:A},k.createElement(Je,null,k.createElement(pe.Provider,{value:null},k.createElement(Ze.Provider,{value:l},k.createElement(Ae,{value:l.actions.refocusableClose},k.createElement(yt,{value:se},k.createElement(ne,null,V({ourProps:Q,theirProps:f,slot:oe,defaultTag:Qt,name:"Popover"}))))))))}let Wt="button";function Yt(e,n){let t=o.useId(),{id:a=`headlessui-popover-button-${t}`,disabled:d=!1,autoFocus:f=!1,...l}=e,s=fe("Popover.Button"),[g,$,r,x,w,p,S]=U(s,o.useCallback(c=>[c.popoverState,s.selectors.isPortalled(c),c.button,c.buttonId,c.panel,c.panelId,c.afterButtonSentinel],[])),v=o.useRef(null),m=`headlessui-focus-sentinel-${o.useId()}`,C=Ke(),P=C==null?void 0:C.closeOthers,i=Kt()!==null;o.useEffect(()=>{if(!i)return s.actions.setButtonId(a),()=>s.actions.setButtonId(null)},[i,a,s]);let[I]=o.useState(()=>Symbol()),te=J(v,n,ot(),R(c=>{if(!i){if(c)s.state.buttons.current.push(I);else{let b=s.state.buttons.current.indexOf(I);b!==-1&&s.state.buttons.current.splice(b,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),c&&s.actions.setButton(c)}})),ne=J(v,n),A=R(c=>{var b,F,D;if(i){if(s.state.popoverState===j.Closed)return;switch(c.key){case H.Space:case H.Enter:c.preventDefault(),(F=(b=c.target).click)==null||F.call(b),s.actions.close(),(D=s.state.button)==null||D.focus();break}}else switch(c.key){case H.Space:case H.Enter:c.preventDefault(),c.stopPropagation(),s.state.popoverState===j.Closed?(P==null||P(s.state.buttonId),s.actions.open()):s.actions.close();break;case H.Escape:if(s.state.popoverState!==j.Open)return P==null?void 0:P(s.state.buttonId);if(!v.current)return;let T=re(v.current);if(T&&!v.current.contains(T))return;c.preventDefault(),c.stopPropagation(),s.actions.close();break}}),L=R(c=>{i||c.key===H.Space&&c.preventDefault()}),K=R(c=>{var b,F;He(c.currentTarget)||d||(i?(s.actions.close(),(b=s.state.button)==null||b.focus()):(c.preventDefault(),c.stopPropagation(),s.state.popoverState===j.Closed?(P==null||P(s.state.buttonId),s.actions.open()):s.actions.close(),(F=s.state.button)==null||F.focus()))}),oe=R(c=>{c.preventDefault(),c.stopPropagation()}),{isFocusVisible:se,focusProps:Q}=Ot({autoFocus:f}),{isHovered:V,hoverProps:h}=Mt({isDisabled:d}),{pressed:E,pressProps:B}=Lt({disabled:d}),O=g===j.Open,W=ae({open:O,active:E||O,disabled:d,hover:V,focus:se,autofocus:f}),M=Tt(e,r),Y=i?ge({ref:ne,type:M,onKeyDown:A,onClick:K,disabled:d||void 0,autoFocus:f},Q,h,B):ge({ref:te,id:x,type:M,"aria-expanded":g===j.Open,"aria-controls":w?p:void 0,disabled:d||void 0,autoFocus:f,onKeyDown:A,onKeyUp:L,onClick:K,onMouseDown:oe}
1,Q,h,B),ue=ze(),ve=R(()=>{if(!he(s.state.panel))return;let c=s.state.panel;function b(){q(ue.current,{[_.Forwards]:()=>Z(c,G.First),[_.Backwards]:()=>Z(c,G.Last)})===xe.Error&&Z(Pe(ye(s.state.button)).filter(F=>F.dataset.headlessuiFocusGuard!=="true"),q(ue.current,{[_.Forwards]:G.Next,[_.Backwards]:G.Previous}),{relativeTo:s.state.button})}b()}),y=le();return k.createElement(k.Fragment,null,y({ourProps:Y,theirProps:l,slot:W,defaultTag:Wt,name:"Popover.Button"}),O&&!i&&$&&k.createElement(be,{id:m,ref:S,features:we.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ve}))}let qt="div",Ut=de.RenderStrategy|de.Static;function Qe(e,n){let t=o.useId(),{id:a=`headlessui-popover-backdrop-${t}`,transition:d=!1,...f}=e,l=fe("Popover.Backdrop"),s=U(l,o.useCallback(C=>C.popoverState,[])),[g,$]=o.useState(null),r=J(n,$),x=Te(),[w,p]=Ne(d,g,x!==null?(x&X.Open)===X.Open:s===j.Open),S=R(C=>{if(He(C.currentTarget))return C.preventDefault();l.actions.close()}),v=ae({open:s===j.Open}),m={ref:r,id:a,"aria-hidden":!0,onClick:S,..._e(p)};return le()({ourProps:m,theirProps:f,slot:v,defaultTag:qt,features:Ut,visible:w,name:"Popover.Backdrop"})}let Jt="div",Xt=de.RenderStrategy|de.Static;function en(e,n){let t=o.useId(),{id:a=`headlessui-popover-panel-${t}`,focus:d=!1,anchor:f,portal:l=!1,modal:s=!1,transition:g=!1,...$}=e,r=fe("Popover.Panel"),x=U(r,r.selectors.isPortalled),[w,p,S,v,m]=U(r,o.useCallback(y=>[y.popoverState,y.button,y.__demoMode,y.beforePanelSentinel,y.afterPanelSentinel],[])),C=`headlessui-focus-sentinel-before-${t}`,P=`headlessui-focus-sentinel-after-${t}`,i=o.useRef(null),I=Xe(f),[te,ne]=et(I),A=tt();I&&(l=!0);let[L,K]=o.useState(null),oe=J(i,n,I?te:null,r.actions.setPanel,K),se=Fe(p),Q=Fe(i.current);$t(()=>(r.actions.setPanelId(a),()=>r.actions.setPanelId(null)),[a,r]);let V=Te(),[h,E]=Ne(g,L,V!==null?(V&X.Open)===X.Open:w===j.Open);St(h,p,r.actions.close),jt(S?!1:s&&h,Q);let B=R(y=>{var c;switch(y.key){case H.Escape:if(r.state.popoverState!==j.Open||!i.current)return;let b=re(i.current);if(b&&!i.current.contains(b))return;y.preventDefault(),y.stopPropagation(),r.actions.close(),(c=r.state.button)==null||c.focus();break}});o.useEffect(()=>{var y;e.static||w===j.Closed&&((y=e.unmount)==null||y)&&r.actions.setPanel(null)},[w,e.unmount,e.static,r]),o.useEffect(()=>{if(S||!d||w!==j.Open||!i.current)return;let y=re(i.current);i.current.contains(y)||Z(i.current,G.First)},[S,d,i.current,w]);let O=ae({open:w===j.Open,close:r.actions.refocusableClose}),W=ge(I?A():{},{ref:oe,id:a,onKeyDown:B,onBlur:d&&w===j.Open?y=>{var c,b,F,D,T;let z=y.relatedTarget;z&&i.current&&((c=i.current)!=null&&c.contains(z)||(r.actions.close(),((F=(b=v.current)==null?void 0:b.contains)!=null&&F.call(b,z)||(T=(D=m.current)==null?void 0:D.contains)!=null&&T.call(D,z))&&z.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...$.style,...ne,"--button-width":nt(h,p,!0).width},..._e(E)}),M=ze(),Y=R(()=>{let y=i.current;if(!y)return;function c(){q(M.current,{[_.Forwards]:()=>{var b;Z(y,G.First)===xe.Error&&((b=r.state.afterPanelSentinel.current)==null||b.focus())},[_.Backwards]:()=>{var b;(b=r.state.button)==null||b.focus({preventScroll:!0})}})}c()}),ue=R(()=>{let y=i.current;if(!y)return;function c(){q(M.current,{[_.Forwards]:()=>{var b;if(!r.state.button)return;let F=(b=ye(r.state.button))!=null?b:document.body,D=Pe(F),T=D.indexOf(r.state.button),z=D.slice(0,T+1),ie=[...D.slice(T+1),...z];for(let me of ie.slice())if(me.dataset.headlessuiFocusGuard==="true"||L!=null&&L.contains(me)){let Re=ie.indexOf(me);Re!==-1&&ie.splice(Re,1)}Z(ie,G.First,{sorted:!1})},[_.Backwards]:()=>{var b;Z(y,G.Previous)===xe.Error&&((b=r.state.button)==null||b.focus())}})}c()}),ve=le();return k.createElement(kt,null,k.createElement(pe.Provider,{value:a},k.createElement(Ae,{value:r.actions.refocusableClose},k.createElement(It,{enabled:l?e.static||h:!1,ownerDocument:se},h&&x&&k.createElement(be,{id:C,ref:v,features:we.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Y}),ve({ourProps:W,theirProps:$,slot:O,defaultTag:Jt,features:Xt,visible:h,name:"Popover.Panel"}),h&&x&&k.createElement(be,{id:P,ref:m,features:we.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ue})))))}let tn="div";
1function nn(e,n){let t=o.useRef(null),a=J(t,n),[d,f]=o.useState([]),l=R(v=>{f(m=>{let C=m.indexOf(v);if(C!==-1){let P=m.slice();return P.splice(C,1),P}return m})}),s=R(v=>(f(m=>[...m,v]),()=>l(v))),g=R(()=>{var v;let m=ye(t.current);if(!m)return!1;let C=re(t.current);return(v=t.current)!=null&&v.contains(C)?!0:d.some(P=>{var i,I;return((i=m.getElementById(P.buttonId.current))==null?void 0:i.contains(C))||((I=m.getElementById(P.panelId.current))==null?void 0:I.contains(C))})}),$=R(v=>{for(let m of d)m.buttonId.current!==v&&m.close()}),r=o.useMemo(()=>({registerPopover:s,unregisterPopover:l,isFocusWithinPopoverGroup:g,closeOthers:$}),[s,l,g,$]),x=ae({}),w=e,p={ref:a},S=le();return k.createElement(Ge,null,k.createElement(je.Provider,{value:r},S({ourProps:p,theirProps:w,slot:x,defaultTag:tn,name:"Popover.Group"})))}let on=ee(Vt),sn=ee(Yt),rn=ee(Qe),Ve=ee(Qe),We=ee(en),an=ee(nn),ln=Object.assign(on,{Button:sn,Backdrop:Ve,Overlay:rn,Panel:We,Group:an});const Ye=o.createContext({show:!1,open(){},close(){},toggle(){},triggerRef:{current:null}}),ke=()=>{const e=o.use(Ye);if(!e)throw new Error("usePopoverContext must be used within a GDPopover");return e},qe=({ref:e,children:n,as:t="div",className:a})=>{const{triggerRef:d,show:f}=ke();return o.createElement(t,{ref:l=>{d.current=l,typeof e=="function"?e(l):e&&(e.current=l)},className:N("relative",f&&"z-10 ",a)},n)};var un=typeof document<"u",cn=function(){},Ce=un?o.useLayoutEffect:cn;const dn={...Me},fn=dn.useInsertionEffect,pn=fn||(e=>e());function vn(e){const n=o.useRef(()=>{});return pn(()=>{n.current=e}),o.useCallback(function(){for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return n.current==null?void 0:n.current(...a)},[])}const mn={...Me};let De=!1,hn=0;const Oe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hn++;function gn(){const[e,n]=o.useState(()=>De?Oe():void 0);return Ce(()=>{e==null&&n(Oe())},[]),o.useEffect(()=>{De=!0},[]),e}const xn=mn.useId,bn=xn||gn;function wn(){const e=new Map;return{emit(n,t){var a;(a=e.get(n))==null||a.forEach(d=>d(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var a;(a=e.get(n))==null||a.delete(t)}}}const Cn=o.createContext(null),Pn=o.createContext(null),yn=()=>{var e;return((e=o.useContext(Cn))==null?void 0:e.id)||null},$n=()=>o.useContext(Pn);function Sn(e){const{open:n=!1,onOpenChange:t,elements:a}=e,d=bn(),f=o.useRef({}),[l]=o.useState(()=>wn()),s=yn()!=null,[g,$]=o.useState(a.reference),r=vn((p,S,v)=>{f.current.openEvent=p?S:void 0,l.emit("openchange",{open:p,event:S,reason:v,nested:s}),t==null||t(p,S,v)}),x=o.useMemo(()=>({setPositionReference:$}),[]),w=o.useMemo(()=>({reference:g||a.reference||null,floating:a.floating||null,domReference:a.reference}),[g,a.reference,a.floating]);return o.useMemo(()=>({dataRef:f,open:n,onOpenChange:r,elements:w,events:l,floatingId:d,refs:x}),[n,r,w,l,d,x])}function jn(e){e===void 0&&(e={});const{nodeId:n}=e,t=Sn({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||t,d=a.elements,[f,l]=o.useState(null),[s,g]=o.useState(null),r=(d==null?void 0:d.domReference)||f,x=o.useRef(null),w=$n();Ce(()=>{r&&(x.current=r)},[r]);const p=st({...e,elements:{...d,...s&&{reference:s}}}),S=o.useCallback(i=>{const I=ce(i)?{getBoundingClientRect:()=>i.getBoundingClientRect(),getClientRects:()=>i.getClientRects(),contextElement:i}:i;g(I),p.refs.setReference(I)},[p.refs]),v=o.useCallback(i=>{(ce(i)||i===null)&&(x.current=i,l(i)),(ce(p.refs.reference.current)||p.refs.reference.current===null||i!==null&&!ce(i))&&p.refs.setReference(i)},[p.refs]),m=o.useMemo(()=>({...p.refs,setReference:v,setPositionReference:S,domReference:x}),[p.refs,v,S]),C=o.useMemo(()=>({...p.elements,domReference:r}),[p.elements,r]),P=o.useMemo(()=>({...p,...a,refs:m,elements:C,nodeId:n}),[p,m,C,n,a]);return Ce(()=>{a.dataRef.current.floatingContext=P;const i=w==null?void 0:w.nodesRef.current.find(I=>I.id===n);i&&(i.context=P)}),o.useMemo(()=>({...p,context:P,refs:m,elements:C}),[p,m,C,P])}const Ue=({children:e,className:n,motionProps:t,portal:a=!0,offsetPx:d=8,matchTriggerWidth:f=!1})=>{const{show:l,triggerRef:s,close:g}=ke(),$=o.useRef(null);Ft($,g);const r=f?rt({apply({rects:m,elements:C}){Object.assign(C.floating.style,{width:`${m.reference.width}px`})}}):void 0,x=[at(d),lt(),ut({padding:8}),...r?[r]:[]],{refs:w,floatingStyles:p,update:S}=jn({strategy:"fixed",placement:"bottom-start",whileElementsMounted:it,middleware:x});if(o.useEffect(()=>{const m=s.current;m&&w.setReference(m),l&&S()},[l,w,S,s]),!l)return u.jsx(u.Fragment,{});const v=u.jsx(We,{static:!0,className:"z-[55]",children:u.jsx("div",{ref:w.setFloating,style:p,className:"z-[55]",children:u.jsx($e,{className:N("roun
1ded bg-white shadow-flyout-lg",f?"min-w-0 w-full":"w-max",n),theme:"disclosure",show:l,motionProps:t,children:e})})});return a?Le.createPortal(v,document.body):v},kn=({children:e,contentClassName:n,motionProps:t,breakpoint:a="(max-width: 640px)",maxWidthClassName:d="max-w-screen-sm",overlayClassName:f,initialFocusRef:l})=>{const{show:s,close:g}=ke();return Bt(a,!0)?u.jsxs(Dt,{open:s,onClose:g,className:"relative z-[60]",initialFocus:l,children:[u.jsx("div",{className:N("fixed inset-0 bg-black/40 backdrop-blur-[1px]",f),onClick:g,"aria-hidden":"true"}),u.jsx("div",{className:"fixed inset-x-0 bottom-0",children:u.jsx($e,{theme:"disclosure",show:s,motionProps:{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",stiffness:360,damping:30},...t},className:N("w-full","max-h-[90vh]"),children:u.jsx("div",{className:N("mx-auto w-full",d),children:u.jsxs("div",{className:N("rounded-t-2xl bg-white shadow-2xl","pb-[env(safe-area-inset-bottom)]","overflow-hidden"),children:[u.jsx("div",{className:"flex justify-center pt-2",children:u.jsx("div",{className:"h-1.5 w-10 rounded-full bg-gray-300"})}),u.jsx("div",{ref:r=>{l&&(l.current=r)},tabIndex:-1,"aria-hidden":"true",role:"none"}),u.jsx("div",{className:N("px-4 py-4",n),children:e})]})})})})]}):u.jsx(Ue,{className:n,motionProps:t,children:e})},Ie=({as:e,show:n,onChange:t,defaultShow:a,children:d,showOverlay:f=!0,overlayClassname:l})=>{const[s,g]=ct(n,t,a),$=o.useRef(null),r=o.useCallback(()=>{g(!0)},[g]),x=o.useCallback(()=>{g(!1)},[g]),w=o.useCallback(()=>{g(!s)},[g,s]),p=o.useMemo(()=>({show:s,open:r,close:x,toggle:w,triggerRef:$}),[s,r,x,w]);return u.jsx(ln,{as:e,children:u.jsxs(Ye,{value:p,children:[f&&s&&u.jsx(Ve,{static:!0,onClick:x,className:"z-0",children:u.jsx($e,{show:s,theme:"popover",className:N("fixed inset-0 bg-brown-500 z-0",l)})}),u.jsx(qe,{as:"div",children:d})]})})};Ie.Trigger=qe;Ie.Panel=Ue;Ie.Sheet=kn;const Ln=({children:e,enable:n=!0})=>{const[t,a]=o.useState(!1);return o.useEffect(()=>(a(!0),()=>a(!1)),[]),n?t?Le.createPortal(e,document.body):null:e},In={empty:()=>u.jsx("svg",{width:"11",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"m5.742 1 1.466 2.969 3.277.479-2.371 2.31.56 3.262-2.932-1.541-2.93 1.541.56-3.263L1 4.447l3.277-.478L5.742 1Z",fill:"#none",stroke:"#CB0043",strokeLinecap:"round",strokeLinejoin:"round"})}),full:()=>u.jsx("svg",{width:"11",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"m5.742 1 1.466 2.969 3.277.479-2.371 2.31.56 3.262-2.932-1.541-2.93 1.541.56-3.263L1 4.447l3.277-.478L5.742 1Z",fill:"#CB0043",stroke:"#CB0043",strokeLinecap:"round",strokeLinejoin:"round"})}),half:()=>u.jsx("svg",{width:"11",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19.779a.5.5 0 0 0-.896 0l-1.35 2.733-3.016.441a.5.5 0 0 0-.277.853l2.183 2.126-.515 3.003a.5.5 0 0 0 .725.527l2.698-1.418 2.698 1.418a.5.5 0 0 0 .726-.527l-.515-3.003 2.183-2.126a.5.5 0 0 0-.277-.853L7.54 3.512 6.19.779Zm-.448 1.35v5.85a.5.5 0 0 1 .233.057l2.034 1.07-.388-2.264a.5.5 0 0 1 .144-.443L9.41 4.796l-2.276-.333a.5.5 0 0 1-.376-.273L5.742 2.13Z",fill:"#CB0043"})}),productEmpty:()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#FCD718",children:u.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),productFull:()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#FCD718",stroke:"#FCD718",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),productHalf:()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"#FCD718",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("defs",{children:u.jsxs("linearGradient",{id:"half-fill",x1:"0",x2:"1",y1:"0",y2:"0",children:[u.jsx("stop",{offset:"50%",stopColor:"#FCD718"}),u.jsx("stop",{offset:"50%",stopColor:"white",stopOpacity:"0"})]})}),u.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",fill:"url(#half-fill)",
1stroke:"#FCD718"})]}),productQuarterFull:()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"#FCD718",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("defs",{children:u.jsxs("linearGradient",{id:"half-fill",x1:"0",x2:"1",y1:"0",y2:"0",children:[u.jsx("stop",{offset:"60%",stopColor:"#FCD718"}),u.jsx("stop",{offset:"60%",stopColor:"white",stopOpacity:"0"})]})}),u.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",fill:"url(#half-fill)",stroke:"#FCD718"})]}),productQuarterEmpty:()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"#FCD718",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("defs",{children:u.jsxs("linearGradient",{id:"half-fill",x1:"0",x2:"1",y1:"0",y2:"0",children:[u.jsx("stop",{offset:"40%",stopColor:"#FCD718"}),u.jsx("stop",{offset:"40%",stopColor:"white",stopOpacity:"0"})]})}),u.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",fill:"url(#half-fill)",stroke:"#FCD718"})]})},Tn=({mode:e,...n})=>{const t=In[e];return u.jsx(t,{...n})},Nn=()=>{var t;const e=Nt({key:"staff"}),n=_t();return o.useEffect(()=>{n&&e.state==="idle"&&!e.data&&e.load("/resources/staff")},[e,n]),{isInternal:((t=e.data)==null?void 0:t.isInternal)===!0,isLoading:e.state!=="idle"||!e.data}};export{Ie as G,Ln as R,Tn as S,Nn as u};

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.