1import{i as e,t}from"./jsx-runtime-Cx0BB4qO.js";import{t as n}from"./react-3BKWdGy3.js";import{t as r}from"./useTranslation-CMsiUqXP.js";import{t as i,x as a}from"./hugeicons-icon-g0FMIYd5.js";import{a as o,c as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./dist-Lq7IU4R0.js";import{t as m}from"./utils-DojpP95n.js";import{t as h}from"./button-BSZfzeIl.js";import{t as g}from"./react-m43I1icg.js";import{t as _}from"./use-reduced-motion-BY-Y20sl.js";var v=t();function y({...e}){return(0,v.jsx)(p,{"data-slot":`sheet`,...e})}function b({...e}){return(0,v.jsx)(s,{"data-slot":`sheet-trigger`,...e})}function x({...e}){return(0,v.jsx)(l,{"data-slot":`sheet-close`,...e})}function S({...e}){return(0,v.jsx)(u,{"data-slot":`sheet-portal`,...e})}function C({className:e,...t}){return(0,v.jsx)(o,{"data-slot":`sheet-overlay`,className:m(`data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50`,e),...t})}function w({className:e,children:t,side:n=`right`,showCloseButton:o=!0,...s}){let{t:c}=r();return(0,v.jsxs)(S,{children:[(0,v.jsx)(C,{}),(0,v.jsxs)(d,{"data-slot":`sheet-content`,"data-side":n,className:m(`bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 overscroll-contain overflow-y-auto bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:max-h-[calc(100dvh-env(safe-area-inset-top))] data-[side=bottom]:pb-[env(safe-area-inset-bottom)] data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...s,children:[t,o&&(0,v.jsx)(l,{"data-slot":`sheet-close`,asChild:!0,children:(0,v.jsx)(h,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`,"aria-label":c(`shared.actions.close`),children:(0,v.jsx)(i,{icon:a,strokeWidth:2})})})]})]})}function T({className:e,...t}){return(0,v.jsx)(`div`,{"data-slot":`sheet-header`,className:m(`gap-1.5 p-4 flex flex-col`,e),...t})}function E({className:e,...t}){return(0,v.jsx)(f,{"data-slot":`sheet-title`,className:m(`text-foreground font-medium`,e),...t})}function D({className:e,...t}){return(0,v.jsx)(c,{"data-slot":`sheet-description`,className:m(`text-muted-foreground text-sm`,e),...t})}var O=e(n(),1);function k({children:e,defaultValue:t,onValueChange:n,className:r,transition:i,enableHover:a=!1,resetOnItemLeave:o=!0}){let[s,c]=(0,O.useState)(null),l=(0,O.useId)(),u=_(),d=e=>{c(e),n?.(e)};return(0,O.useEffect)(()=>{t!==void 0&&c(t)},[t]),O.Children.map(e,e=>{let n=e.props[`data-id`],c=a?t??null:null,f=a?{onMouseEnter:()=>d(n),...o?{onMouseLeave:()=>d(c)}:{}}:{onClick:()=>d(n)};return(0,O.cloneElement)(e,{key:n,className:m(`relative inline-flex`,e.props.className),"data-checked":s===n?`true`:`false`,...f},(0,v.jsxs)(v.Fragment,{children:[s===n&&(0,v.jsx)(g.div,{layoutId:`background-${l}`,"aria-hidden":`true`,className:m(`pointer-events-none absolute inset-0`,r),transition:u?{duration:0}:i}),(0,v.jsx)(`div`,{className:`z-10`,children:e.props.children})]}))})}export{D as a,b as c,w as i,y as n,T as o,x as r,E as s,k as t}; 2//# sourceMappingURL=animated-background-DYeX6h0U.js.map
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.