@theroutingcompany/components 0.0.28-alpha.1 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1270,7 +1270,7 @@ object-assign
1270
1270
  cursor: not-allowed;
1271
1271
  --input-border-color: revert;
1272
1272
  }
1273
- `;function Ob(e){const{locale:t}=Le(),r=Ck({...e,locale:t}),n=l.useRef(null),{labelProps:o,fieldProps:a}=mk(e,r,n);return re(Fk,{children:[e.label?w(Qe,{...o,htmlFor:a.id,children:e.label}):w(Qe,{srOnly:!0,...o,children:"Select Time"}),re(zk,{...a,ref:n,id:a.id,children:[r.segments.filter(i=>!(i.type==="literal"&&i.text===" ")).map((i,s)=>w(Lk,{segment:i,state:r},s)),r.validationState==="invalid"&&w("span",{"aria-hidden":"true",children:"🚫"})]})]})}function Lk({segment:e,state:t}){const r=l.useRef(null),{segmentProps:n}=bk(e,t,r),o={};return e.isPlaceholder&&(o["data-placeholder"]=!0),re(Kk,{literal:e.type==="literal",...n,...o,style:{...n.style,minWidth:e.type==="literal"?0:"2ch",color:e.type==="dayPeriod"?m.color_deprecated_text_weak:"inherit"},ref:r,children:[w("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",display:"block",width:"100%",height:e.isPlaceholder?"":0,pointerEvents:"none"},children:e.placeholder}),e.isPlaceholder?"":["hour","minute"].includes(e.type)?e.text.padStart(2,"0"):e.text]})}const Rk=P(nk)`
1273
+ `;function Ob(e){const{locale:t}=Le(),r=Ck({...e,locale:t}),n=l.useRef(null),{labelProps:o,fieldProps:a}=mk(e,r,n);return re(Fk,{children:[e.label?w(Qe,{...o,htmlFor:a.id,children:e.label}):w(Qe,{srOnly:!0,...o,children:"Select Time"}),re(zk,{...a,ref:n,id:a.id,children:[r.segments.filter(i=>!(i.type==="literal"&&i.text===" ")).map((i,s)=>w(Lk,{segment:i,state:r},s)),r.validationState==="invalid"&&w("span",{"aria-hidden":"true",children:"🚫"})]})]})}function Lk({segment:e,state:t}){const r=l.useRef(null),{segmentProps:n}=bk(e,t,r),o={};e.isPlaceholder&&(o["data-placeholder"]=!0);const a=e.isPlaceholder?"":["hour","minute"].includes(e.type)?e.text.padStart(2,"0"):e.text;return re(Kk,{literal:e.type==="literal",...n,...o,style:{...n.style,minWidth:e.type==="literal"?0:"2ch",color:e.type==="dayPeriod"?m.color_deprecated_text_weak:"inherit"},ref:r,children:[w("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",display:"block",width:"100%",height:e.isPlaceholder?"":0,pointerEvents:"none"},children:e.placeholder}),a]})}const Rk=P(nk)`
1274
1274
  position: relative;
1275
1275
  font-family: ${m.font_family_pingo};
1276
1276
  display: flex;
@@ -1296,7 +1296,7 @@ object-assign
1296
1296
  flex: 1;
1297
1297
  justify-content: center;
1298
1298
  align-items: center;
1299
- `;function jk(e,t){const r={day:"numeric",month:"numeric",year:"numeric",timeZone:t},o=new Intl.DateTimeFormat(void 0,r).formatToParts(e);let a,i,s;for(const c of o)switch(c.type){case"day":a=Number(c.value);break;case"month":i=Number(c.value);break;case"year":s=Number(c.value);break}return{day:a,month:i,year:s}}function Wk(e,t){const r={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!1,timeZone:t},n=e.toLocaleTimeString(void 0,r),[o,a,i]=n.split(":").map(c=>parseInt(c,10)),s=e.getMilliseconds();return{hour:o,minute:a,second:i,millisecond:s}}function Uk(e){if(e.year)return`${e.month}-${e.day}-${e.year}`}const Nb=l.forwardRef(({dateString:e,timeZone:t,onChange:r,...n},o)=>{const a=new Date(e),[i,s]=l.useState(!1),c=Wk(a,t),d=jk(a,t),[u,f]=l.useState(c),[p,h]=l.useState(new Se(d.year??0,d.month??0,d.day??0)),{day:g,month:b,year:v}=p,{hour:y,minute:_,second:x,millisecond:$}=u;l.useEffect(()=>{r&&r({day:g,month:b,year:v,hour:y,minute:_,second:x,millisecond:$,timeZone:t})},[r,t,y,_,x,$,g,b,v]);const k=gt(o);return re(rk,{...n,onOpenChange:O=>s(O),children:[re(Rk,{children:[re(ar,{maxWidth:"155px",overflow:"hidden",children:[w(Bk,{children:Uk(p)}),w(ar,{ml:m.spacing_200,alignItems:"center",children:w(Ob,{"aria-label":"time select",defaultValue:new sn(c.hour,c.minute,c.second,c.millisecond),value:u,onChange:O=>{const{hour:S,minute:A,second:M,millisecond:R}=O;f({hour:S,minute:A,second:M,millisecond:R})}})})]}),i?w(ve.KeyboardArrowUp,{}):w(ve.KeyboardArrowDown,{})]}),w(ok,{children:w(Vk,{ref:k,position:"popper",children:w(ik,{children:w(A3,{value:p,onChange:O=>{const{day:S,month:A,year:M}=O;h(new Se(M,A,S))},timeZone:t})})})})]})});Nb.displayName="TimeDateSelect";const Fb=l.forwardRef(({children:e,...t},r)=>re(sk,{...t,ref:r,children:[w(lk,{children:e}),w(ck,{children:w(ve.Check,{})})]}));Fb.displayName="TimeDateSelectItem";const zb="Collapsible",[Hk,Kb]=Ae(zb),[Gk,Yl]=Hk(zb),Yk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c=!1,d]=ze({prop:n,defaultProp:o,onChange:i});return l.createElement(Gk,{scope:r,disabled:a,contentId:Ve(),open:c,onOpenToggle:l.useCallback(()=>d(u=>!u),[d])},l.createElement(ie.div,C({"data-state":ql(c),"data-disabled":a?"":void 0},s,{ref:t})))}),qk="CollapsibleTrigger",Zk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Yl(qk,r);return l.createElement(ie.button,C({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ql(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},n,{ref:t,onClick:Y(e.onClick,o.onOpenToggle)}))}),Lb="CollapsibleContent",Jk=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Yl(Lb,e.__scopeCollapsible);return l.createElement(Ne,{present:r||o.open},({present:a})=>l.createElement(Xk,C({},n,{ref:t,present:a})))}),Xk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Yl(Lb,r),[s,c]=l.useState(n),d=l.useRef(null),u=ue(t,d),f=l.useRef(0),p=f.current,h=l.useRef(0),g=h.current,b=i.open||s,v=l.useRef(b),y=l.useRef();return l.useEffect(()=>{const _=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(_)},[]),tt(()=>{const _=d.current;if(_){y.current=y.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const x=_.getBoundingClientRect();f.current=x.height,h.current=x.width,v.current||(_.style.transitionDuration=y.current.transitionDuration,_.style.animationName=y.current.animationName),c(n)}},[i.open,n]),l.createElement(ie.div,C({"data-state":ql(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b},a,{ref:u,style:{["--radix-collapsible-content-height"]:p?`${p}px`:void 0,["--radix-collapsible-content-width"]:g?`${g}px`:void 0,...e.style}}),b&&o)});function ql(e){return e?"open":"closed"}const Qk=Yk,e6=Zk,t6=Jk,sr="Accordion",r6=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Zl,n6,o6]=uo(sr),[ai,$F]=Ae(sr,[o6,Kb]),Jl=Kb(),Rb=l.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return l.createElement(Zl.Provider,{scope:e.__scopeAccordion},r==="multiple"?l.createElement(l6,C({},a,{ref:t})):l.createElement(s6,C({},o,{ref:t})))});Rb.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Vb,a6]=ai(sr),[Bb,i6]=ai(sr,{collapsible:!1}),s6=l.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=ze({prop:r,defaultProp:n,onChange:o});return l.createElement(Vb,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:l.useCallback(()=>a&&c(""),[a,c])},l.createElement(Bb,{scope:e.__scopeAccordion,collapsible:a},l.createElement(jb,C({},i,{ref:t}))))}),l6=l.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=ze({prop:r,defaultProp:n,onChange:o}),c=l.useCallback(u=>s((f=[])=>[...f,u]),[s]),d=l.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return l.createElement(Vb,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d},l.createElement(Bb,{scope:e.__scopeAccordion,collapsible:!0},l.createElement(jb,C({},a,{ref:t}))))}),[c6,ii]=ai(sr),jb=l.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=l.useRef(null),c=ue(s,t),d=n6(r),f=pn(o)==="ltr",p=Y(e.onKeyDown,h=>{var g;if(!r6.includes(h.key))return;const b=h.target,v=d().filter(M=>{var R;return!((R=M.ref.current)!==null&&R!==void 0&&R.disabled)}),y=v.findIndex(M=>M.ref.current===b),_=v.length;if(y===-1)return;h.preventDefault();let x=y;const $=0,k=_-1,O=()=>{x=y+1,x>k&&(x=$)},S=()=>{x=y-1,x<$&&(x=k)};switch(h.key){case"Home":x=$;break;case"End":x=k;break;case"ArrowRight":a==="horizontal"&&(f?O():S());break;case"ArrowDown":a==="vertical"&&O();break;case"ArrowLeft":a==="horizontal"&&(f?S():O());break;case"ArrowUp":a==="vertical"&&S();break}const A=x%_;(g=v[A].ref.current)===null||g===void 0||g.focus()});return l.createElement(c6,{scope:r,disabled:n,direction:o,orientation:a},l.createElement(Zl.Slot,{scope:r},l.createElement(ie.div,C({},i,{"data-orientation":a,ref:c,onKeyDown:n?void 0:p}))))}),Xl="AccordionItem",[d6,Ql]=ai(Xl),u6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=ii(Xl,r),i=a6(Xl,r),s=Jl(r),c=Ve(),d=n&&i.value.includes(n)||!1,u=a.disabled||e.disabled;return l.createElement(d6,{scope:r,open:d,disabled:u,triggerId:c},l.createElement(Qk,C({"data-orientation":a.orientation,"data-state":Ub(d)},s,o,{ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(n):i.onItemClose(n)}})))}),f6="AccordionHeader",p6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(f6,r);return l.createElement(ie.h3,C({"data-orientation":o.orientation,"data-state":Ub(a.open),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),Wb="AccordionTrigger",m6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(Wb,r),i=i6(Wb,r),s=Jl(r);return l.createElement(Zl.ItemSlot,{scope:r},l.createElement(e6,C({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},s,n,{ref:t})))}),h6="AccordionContent",g6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(h6,r),i=Jl(r);return l.createElement(t6,C({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,n,{ref:t,style:{["--radix-accordion-content-height"]:"var(--radix-collapsible-content-height)",["--radix-accordion-content-width"]:"var(--radix-collapsible-content-width)",...e.style}}))});function Ub(e){return e?"open":"closed"}const b6=Rb,v6=u6,y6=p6,$6=m6,_6=g6,x6=P.keyframes`
1299
+ `;function jk(e,t){const r={day:"numeric",month:"numeric",year:"numeric",timeZone:t},o=new Intl.DateTimeFormat(void 0,r).formatToParts(e);let a,i,s;for(const c of o)switch(c.type){case"day":a=Number(c.value);break;case"month":i=Number(c.value);break;case"year":s=Number(c.value);break}return{day:a,month:i,year:s}}function Wk(e,t){const r={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!1,timeZone:t},n=e.toLocaleTimeString(void 0,r),[o,a,i]=n.split(":").map(c=>parseInt(c,10)),s=e.getMilliseconds();return{hour:o,minute:a,second:i,millisecond:s}}function Uk(e){if(e.year)return`${e.month}-${e.day}-${e.year}`}const Nb=l.forwardRef(({dateString:e,timeZone:t,onChange:r,...n},o)=>{const a=new Date(e),[i,s]=l.useState(!1),c=Wk(a,t),d=jk(a,t),[u,f]=l.useState(c),[p,h]=l.useState(new Se(d.year??0,d.month??0,d.day??0)),{day:g,month:b,year:v}=p,{hour:y,minute:_,second:x,millisecond:$}=u;l.useEffect(()=>{r&&r({day:g,month:b,year:v,hour:y,minute:_,second:x,millisecond:$,timeZone:t})},[r,t,y,_,x,$,g,b,v]);const k=gt(o);return re(rk,{...n,onOpenChange:O=>s(O),children:[re(Rk,{children:[re(ar,{maxWidth:"155px",overflow:"hidden",children:[w(Bk,{children:Uk(p)}),w(ar,{ml:m.spacing_200,alignItems:"center",children:w(Ob,{hourCycle:12,"aria-label":"time select",defaultValue:new sn(c.hour,c.minute,c.second,c.millisecond),value:u,onChange:O=>{const{hour:S,minute:A,second:M,millisecond:R}=O;f({hour:S,minute:A,second:M,millisecond:R})}})})]}),i?w(ve.KeyboardArrowUp,{}):w(ve.KeyboardArrowDown,{})]}),w(ok,{children:w(Vk,{ref:k,position:"popper",children:w(ik,{children:w(A3,{value:p,onChange:O=>{const{day:S,month:A,year:M}=O;h(new Se(M,A,S))},timeZone:t})})})})]})});Nb.displayName="TimeDateSelect";const Fb=l.forwardRef(({children:e,...t},r)=>re(sk,{...t,ref:r,children:[w(lk,{children:e}),w(ck,{children:w(ve.Check,{})})]}));Fb.displayName="TimeDateSelectItem";const zb="Collapsible",[Hk,Kb]=Ae(zb),[Gk,Yl]=Hk(zb),Yk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c=!1,d]=ze({prop:n,defaultProp:o,onChange:i});return l.createElement(Gk,{scope:r,disabled:a,contentId:Ve(),open:c,onOpenToggle:l.useCallback(()=>d(u=>!u),[d])},l.createElement(ie.div,C({"data-state":ql(c),"data-disabled":a?"":void 0},s,{ref:t})))}),qk="CollapsibleTrigger",Zk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Yl(qk,r);return l.createElement(ie.button,C({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ql(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},n,{ref:t,onClick:Y(e.onClick,o.onOpenToggle)}))}),Lb="CollapsibleContent",Jk=l.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Yl(Lb,e.__scopeCollapsible);return l.createElement(Ne,{present:r||o.open},({present:a})=>l.createElement(Xk,C({},n,{ref:t,present:a})))}),Xk=l.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Yl(Lb,r),[s,c]=l.useState(n),d=l.useRef(null),u=ue(t,d),f=l.useRef(0),p=f.current,h=l.useRef(0),g=h.current,b=i.open||s,v=l.useRef(b),y=l.useRef();return l.useEffect(()=>{const _=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(_)},[]),tt(()=>{const _=d.current;if(_){y.current=y.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const x=_.getBoundingClientRect();f.current=x.height,h.current=x.width,v.current||(_.style.transitionDuration=y.current.transitionDuration,_.style.animationName=y.current.animationName),c(n)}},[i.open,n]),l.createElement(ie.div,C({"data-state":ql(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b},a,{ref:u,style:{["--radix-collapsible-content-height"]:p?`${p}px`:void 0,["--radix-collapsible-content-width"]:g?`${g}px`:void 0,...e.style}}),b&&o)});function ql(e){return e?"open":"closed"}const Qk=Yk,e6=Zk,t6=Jk,sr="Accordion",r6=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Zl,n6,o6]=uo(sr),[ai,$F]=Ae(sr,[o6,Kb]),Jl=Kb(),Rb=l.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return l.createElement(Zl.Provider,{scope:e.__scopeAccordion},r==="multiple"?l.createElement(l6,C({},a,{ref:t})):l.createElement(s6,C({},o,{ref:t})))});Rb.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Vb,a6]=ai(sr),[Bb,i6]=ai(sr,{collapsible:!1}),s6=l.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=ze({prop:r,defaultProp:n,onChange:o});return l.createElement(Vb,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:l.useCallback(()=>a&&c(""),[a,c])},l.createElement(Bb,{scope:e.__scopeAccordion,collapsible:a},l.createElement(jb,C({},i,{ref:t}))))}),l6=l.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=ze({prop:r,defaultProp:n,onChange:o}),c=l.useCallback(u=>s((f=[])=>[...f,u]),[s]),d=l.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return l.createElement(Vb,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d},l.createElement(Bb,{scope:e.__scopeAccordion,collapsible:!0},l.createElement(jb,C({},a,{ref:t}))))}),[c6,ii]=ai(sr),jb=l.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=l.useRef(null),c=ue(s,t),d=n6(r),f=pn(o)==="ltr",p=Y(e.onKeyDown,h=>{var g;if(!r6.includes(h.key))return;const b=h.target,v=d().filter(M=>{var R;return!((R=M.ref.current)!==null&&R!==void 0&&R.disabled)}),y=v.findIndex(M=>M.ref.current===b),_=v.length;if(y===-1)return;h.preventDefault();let x=y;const $=0,k=_-1,O=()=>{x=y+1,x>k&&(x=$)},S=()=>{x=y-1,x<$&&(x=k)};switch(h.key){case"Home":x=$;break;case"End":x=k;break;case"ArrowRight":a==="horizontal"&&(f?O():S());break;case"ArrowDown":a==="vertical"&&O();break;case"ArrowLeft":a==="horizontal"&&(f?S():O());break;case"ArrowUp":a==="vertical"&&S();break}const A=x%_;(g=v[A].ref.current)===null||g===void 0||g.focus()});return l.createElement(c6,{scope:r,disabled:n,direction:o,orientation:a},l.createElement(Zl.Slot,{scope:r},l.createElement(ie.div,C({},i,{"data-orientation":a,ref:c,onKeyDown:n?void 0:p}))))}),Xl="AccordionItem",[d6,Ql]=ai(Xl),u6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=ii(Xl,r),i=a6(Xl,r),s=Jl(r),c=Ve(),d=n&&i.value.includes(n)||!1,u=a.disabled||e.disabled;return l.createElement(d6,{scope:r,open:d,disabled:u,triggerId:c},l.createElement(Qk,C({"data-orientation":a.orientation,"data-state":Ub(d)},s,o,{ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(n):i.onItemClose(n)}})))}),f6="AccordionHeader",p6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(f6,r);return l.createElement(ie.h3,C({"data-orientation":o.orientation,"data-state":Ub(a.open),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),Wb="AccordionTrigger",m6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(Wb,r),i=i6(Wb,r),s=Jl(r);return l.createElement(Zl.ItemSlot,{scope:r},l.createElement(e6,C({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},s,n,{ref:t})))}),h6="AccordionContent",g6=l.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ii(sr,r),a=Ql(h6,r),i=Jl(r);return l.createElement(t6,C({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,n,{ref:t,style:{["--radix-accordion-content-height"]:"var(--radix-collapsible-content-height)",["--radix-accordion-content-width"]:"var(--radix-collapsible-content-width)",...e.style}}))});function Ub(e){return e?"open":"closed"}const b6=Rb,v6=u6,y6=p6,$6=m6,_6=g6,x6=P.keyframes`
1300
1300
  0% {
1301
1301
  transform: translateX(100%);
1302
1302
  }