PageSourceSearch

https://www.xn--hofldeli-3za.ch/assets/Disclosure-C0MqEs07.js

js xn--hofldeli-3za.ch collected 2026-10-04 16:17:46 UTC 4,555 bytes, 1 lines download raw bytes

1import{b1 as b,cI as F,r as d,bB as W,a_ as M,bI as I,b4 as g,b9 as x,ba as $,aF as f,bb as h,bz as P,cl as V,a$ as m,bg as w,bi as D,b7 as k,c9 as N}from"./main-BmEzoXqE.js";function z(n,e,t){let{isDisabled:s}=n,i=b(),l=b(),r=F(),o=d.useRef(null),c=d.useCallback(()=>{o.current=requestAnimationFrame(()=>{t.current&&t.current.setAttribute("hidden","until-found")}),W.flushSync(()=>{e.toggle()})},[t,e]);M(t,"beforematch",c);let u=d.useRef(null);return I(()=>{if(o.current&&cancelAnimationFrame(o.current),t.current&&!r){let a=t.current;u.current==null||typeof a.getAnimations!="function"?e.isExpanded?(a.removeAttribute("hidden"),a.style.setProperty("--disclosure-panel-width","auto"),a.style.setProperty("--disclosure-panel-height","auto")):(a.setAttribute("hidden","until-found"),a.style.setProperty("--disclosure-panel-width","0px"),a.style.setProperty("--disclosure-panel-height","0px")):e.isExpanded!==u.current&&(e.isExpanded?(a.removeAttribute("hidden"),a.style.setProperty("--disclosure-panel-width",a.scrollWidth+"px"),a.style.setProperty("--disclosure-panel-height",a.scrollHeight+"px"),Promise.all(a.getAnimations().map(p=>p.finished)).then(()=>{a.style.setProperty("--disclosure-panel-width","auto"),a.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(a.style.setProperty("--disclosure-panel-width",a.scrollWidth+"px"),a.style.setProperty("--disclosure-panel-height",a.scrollHeight+"px"),window.getComputedStyle(a).height,a.style.setProperty("--disclosure-panel-width","0px"),a.style.setProperty("--disclosure-panel-height","0px"),Promise.all(a.getAnimations().map(p=>p.finished)).then(()=>a.setAttribute("hidden","until-found")).catch(()=>{}))),u.current=e.isExpanded}},[s,t,e.isExpanded,r]),d.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current)},[]),{buttonProps:{id:i,"aria-expanded":e.isExpanded,"aria-controls":l,onPress:a=>{!s&&a.pointerType!=="keyboard"&&e.toggle()},isDisabled:s,onPressStart(a){a.pointerType==="keyboard"&&!s&&e.toggle()}},panelProps:{id:l,role:"group","aria-labelledby":i,"aria-hidden":!e.isExpanded,hidden:r?!e.isExpanded:void 0}}}function B(n){let{allowsMultipleExpanded:e=!1,isDisabled:t=!1}=n,[s,i]=g(d.useMemo(()=>n.expandedKeys?new Set(n.expandedKeys):void 0,[n.expandedKeys]),d.useMemo(()=>n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,[n.defaultExpandedKeys]),n.onExpandedChange);return d.useEffect(()=>{if(!e&&s.size>1){let l=s.values().next().value;l!=null&&i(new Set([l]))}}),{allowsMultipleExpanded:e,isDisabled:t,expandedKeys:s,setExpandedKeys:i,toggleKey(l){let r;e?(r=new Set(s),r.has(l)?r.delete(l):r.add(l)):r=new Set(s.has(l)?[]:[l]),i(r)}}}function G(n){let[e,t]=g(n.isExpanded,n.defaultExpanded||!1,n.onExpandedChange);const s=d.useCallback(()=>{t(!0)},[t]),i=d.useCallback(()=>{t(!1)},[t]),l=d.useCallback(()=>{t(!e)},[t,e]);return{isExpanded:e,setExpanded:t,expand:s,collapse:i,toggle:l}}const C=d.createContext(null),O=d.forwardRef(function(e,t){let s=B(e),i=x({...e,defaultClassName:"react-aria-DisclosureGroup",values:{isDisabled:s.isDisabled,state:s}}
1),l=$(e,{global:!0});return f.createElement(h.div,{...l,...i,ref:t,"data-disabled":e.isDisabled||void 0},f.createElement(C.Provider,{value:s},i.children))}),H=d.createContext(null),T=d.createContext(null),v=d.createContext(null),_=d.forwardRef(function(e,t){[e,t]=k(e,t,H);let s=d.useContext(C),{id:i,...l}=e,r=b();i||=r;let o=s?s.expandedKeys.has(i):e.isExpanded,c=G({...e,isExpanded:o,onExpandedChange(A){s&&s.toggleKey(i),e.onExpandedChange?.(A)}}),u=f.useRef(null),a=e.isDisabled||s?.isDisabled||!1,{buttonProps:p,panelProps:K}=z({...e,isExpanded:o,isDisabled:a},c,u),{isFocusVisible:E,focusProps:R}=P({within:!0}),y=x({...e,id:void 0,defaultClassName:"react-aria-Disclosure",values:{isExpanded:c.isExpanded,isDisabled:a,isFocusVisibleWithin:E,state:c}}),S=$(l,{global:!0});return f.createElement(w,{values:[[D,{slots:{[N]:{},trigger:p}}],[v,{panelProps:K,panelRef:u}],[T,c]]},f.createElement(h.div,{...m(S,y,R),ref:t,"data-expanded":c.isExpanded||void 0,"data-disabled":a||void 0,"data-focus-visible-within":E||void 0},y.children))}),j=d.forwardRef(function(e,t){let{role:s="group"}=e,{panelProps:i,panelRef:l}=d.useContext(v),{isFocusVisible:r,focusProps:o}=P({within:!0}),c=x({...e,defaultClassName:"react-aria-DisclosurePanel",values:{isFocusVisibleWithin:r}}),u=$(e,{global:!0,labelable:!0});return f.createElement(h.div,{...m(u,c,i,o),ref:V(t,l),role:s,"data-focus-visible-within":r||void 0},f.createElement(w,{values:[[D,null]]},e.children))});export{_ as $,T as a,j as b,O as c};

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.