@max-ts/kit 0.24.0 → 0.26.0
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.
- package/lib/components/Avatar/Avatar.d.ts +11 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/Avatar/styles.css.d.ts +7 -0
- package/lib/components/Avatar/styles.css.d.ts.map +1 -0
- package/lib/components/Avatar/types.d.ts +13 -0
- package/lib/components/Avatar/types.d.ts.map +1 -0
- package/lib/components/Collapsible/Collapsible.d.ts +8 -0
- package/lib/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/lib/components/Collapsible/index.d.ts +3 -0
- package/lib/components/Collapsible/index.d.ts.map +1 -0
- package/lib/components/Collapsible/types.d.ts +7 -0
- package/lib/components/Collapsible/types.d.ts.map +1 -0
- package/lib/components/Empty/Empty.d.ts +11 -0
- package/lib/components/Empty/Empty.d.ts.map +1 -0
- package/lib/components/Empty/index.d.ts +3 -0
- package/lib/components/Empty/index.d.ts.map +1 -0
- package/lib/components/Empty/styles.css.d.ts +9 -0
- package/lib/components/Empty/styles.css.d.ts.map +1 -0
- package/lib/components/Empty/types.d.ts +23 -0
- package/lib/components/Empty/types.d.ts.map +1 -0
- package/lib/components/Sidebar/Sidebar.d.ts +52 -0
- package/lib/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/lib/components/Sidebar/index.d.ts +3 -0
- package/lib/components/Sidebar/index.d.ts.map +1 -0
- package/lib/components/Sidebar/styles.css.d.ts +38 -0
- package/lib/components/Sidebar/styles.css.d.ts.map +1 -0
- package/lib/components/Sidebar/types.d.ts +70 -0
- package/lib/components/Sidebar/types.d.ts.map +1 -0
- package/lib/components/Slider/Slider.d.ts +5 -3
- package/lib/components/Slider/Slider.d.ts.map +1 -1
- package/lib/components/Slider/styles.css.d.ts +1 -0
- package/lib/components/Slider/styles.css.d.ts.map +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/stories/Empty.stories.d.ts +14 -0
- package/lib/stories/Empty.stories.d.ts.map +1 -0
- package/lib/stories/Sidebar.stories.d.ts +38 -0
- package/lib/stories/Sidebar.stories.d.ts.map +1 -0
- package/lib/stories/Slider.stories.d.ts +4 -0
- package/lib/stories/Slider.stories.d.ts.map +1 -1
- package/lib/stories/sidebarDemo.css.d.ts +24 -0
- package/lib/stories/sidebarDemo.css.d.ts.map +1 -0
- package/lib/styles.css +1 -1
- package/package.json +1 -2
package/lib/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Accordion as a,Checkbox as l}from"@base-ui/react";import o,{clsx as n}from"clsx";import{ArrowDownNarrowWide as s,ArrowDownUp as i,ArrowDownWideNarrow as c,Calendar1 as d,Check as _,CheckIcon as m,ChevronDown as u,ChevronLeft as h,ChevronRight as p,ChevronRightIcon as g,ChevronUp as y,CircleCheck as v,CircleIcon as b,Copy as f,Ellipsis as N,EllipsisVertical as w,Info as k,MoreHorizontalIcon as C,OctagonAlert as z,PanelLeftClose as x,PanelLeftOpen as S,TriangleAlert as T,XIcon as P}from"lucide-react";import{AlertDialog as D}from"@base-ui/react/alert-dialog";import{Button as I}from"@base-ui/react/button";import{mergeProps as R}from"@base-ui/react/merge-props";import{useRender as L}from"@base-ui/react/use-render";import{Separator as j}from"@base-ui/react/separator";import{DayPicker as A}from"react-day-picker";import{ru as F}from"react-day-picker/locale";import O,{createContext as q,createElement as B,useCallback as M,useContext as $,useEffect as H,useId as E,useLayoutEffect as V,useMemo as G,useRef as W,useState as Y}from"react";import K from"embla-carousel-react";import{Popover as U}from"@base-ui/react/popover";import{Arrow as X,Content as J,Portal as Q,Provider as Z,Root as ee,Trigger as et}from"@radix-ui/react-tooltip";import{Menu as er}from"@base-ui/react/menu";import{Virtuoso as ea}from"react-virtuoso";import{useMask as el}from"@react-input/mask";import{Root as eo}from"@radix-ui/react-label";import{Dialog as en}from"@base-ui/react/dialog";import{Drawer as es,Root as ei}from"vaul";import{OTPInput as ec}from"input-otp";import{Toaster as ed,toast as e_}from"sonner";import{Indicator as em,Item as eu,Root as eh}from"@radix-ui/react-radio-group";import{Range as ep,Root as eg,Thumb as ey,Track as ev}from"@radix-ui/react-slider";import{Content as eb,Group as ef,Icon as eN,Item as ew,ItemIndicator as ek,ItemText as eC,Label as ez,Portal as ex,Root as eS,ScrollDownButton as eT,ScrollUpButton as eP,Separator as eD,Trigger as eI,Value as eR,Viewport as eL}from"@radix-ui/react-select";import{Content as ej,List as eA,Tabs as eF,Trigger as eO}from"@radix-ui/react-tabs";import{Controller as eq,FormProvider as eB,useController as eM,useFieldArray as e$,useForm as eH,useFormContext as eE,useWatch as eV}from"react-hook-form";var eG,eW={};eW.d=(e,t)=>{for(var r in t)eW.o(t,r)&&!eW.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},eW.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),eW.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var eY={};function eK({className:e,...r}){return t(a.Root,{"data-slot":"accordion",className:n("style__1b0hb6s2",e),...r})}eW.r(eY),eW.d(eY,{e:()=>eU,dK:()=>eX,ru:()=>eJ,ik:()=>eQ,Fu:()=>eZ,Lq:()=>e1,PM:()=>e0}),eK.Item=function({className:e,...r}){return t(a.Item,{"data-slot":"accordion-item",className:n("style__1b0hb6s3",e),...r})},eK.Trigger=function({className:e,children:l,...o}){return t(a.Header,{className:"style__1b0hb6s4",children:r(a.Trigger,{"data-slot":"accordion-trigger",className:n("style__1b0hb6s5",e),...o,children:[l,t(u,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s7 style__1b0hb6s6"}),t(y,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s8 style__1b0hb6s6"})]})})},eK.Content=function({className:e,children:r,...l}){return t(a.Panel,{"data-slot":"accordion-content",className:n("style__1b0hb6s9",e),...l,children:t("div",{className:n("style__1b0hb6sa",e),children:r})})};var eU="style__1ersxw10",eX={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},eJ={default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"},eQ="style__1ersxw1f",eZ="style__1ersxw13",e1="style__1ersxw12",e0="style__1ersxw1e";let e2=({className:e,variant:a="default",size:l="md",startAdornment:o,endAdornment:s,isLoading:i=!1,fullWidth:c,children:d,..._})=>r(I,{nativeButton:_.nativeButton??!_.render,className:n(eU,eJ[a],eX[l],{[eZ]:c,[e1]:i},e),..._,children:[o&&t("span",{className:e0,children:o}),d,s&&t("span",{className:eQ,children:s})]}),{ru:e6,dK:e5}=eY;function e3({...e}){return t(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function e8({className:e,...r}){return t(D.Backdrop,{"data-slot":"alert-dialog-overlay",className:n("style__qmtpwy4",e),...r})}function e4({...e}){return t(D.Root,{"data-slot":"alert-dialog",...e})}e4.Trigger=function({...e}){return t(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})},e4.Overlay=e8,e4.Content=function({className:e,size:a="default",...l}){return r(e3,{children:[t(e8,{}),t(D.Popup,{"data-slot":"alert-dialog-content","data-size":a,className:n("style__qmtpwy5",e),...l})]})},e4.Header=function({className:e,...r}){return t("div",{"data-slot":"alert-dialog-header",className:n("style__qmtpwy6",e),...r})},e4.Footer=function({className:e,...r}){return t("div",{"data-slot":"alert-dialog-footer",className:n("style__qmtpwy7",e),...r})},e4.Media=function({className:e,...r}){return t("div",{"data-slot":"alert-dialog-media",className:n("style__qmtpwy8",e),...r})},e4.Title=function({className:e,...r}){return t(D.Title,{"data-slot":"alert-dialog-title",className:n("style__qmtpwy9",e),...r})},e4.Description=function({className:e,...r}){return t(D.Description,{"data-slot":"alert-dialog-description",className:n("style__qmtpwya",e),...r})},e4.Action=function({className:e,...r}){return t(e2,{"data-slot":"alert-dialog-action",className:e,...r})},e4.Cancel=function({className:e,variant:r="outline",size:a="md",...l}){return t(D.Close,{"data-slot":"alert-dialog-cancel",className:e,render:t(e2,{variant:r,size:a}),...l})};var e9={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function e7({className:e,variant:t="default",render:r,...a}){return L({defaultTagName:"span",props:R({className:n("style__1af895x0",e9[t],e)},a),render:r,state:{slot:"badge",variant:t}})}function te({className:e,...r}){return t("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:e,...r})}function tt({className:e,orientation:r="horizontal",...a}){return t("fieldset",{"data-slot":"button-group","data-orientation":r,className:n("style__1mf3lgr0",e),...a})}te.List=function({className:e,...r}){return t("ol",{"data-slot":"breadcrumb-list",className:n("style__1dceszz0",e),...r})},te.Item=function({className:e,...r}){return t("li",{"data-slot":"breadcrumb-item",className:n("style__1dceszz1",e),...r})},te.Link=function({className:e,render:t,...r}){return L({defaultTagName:"a",props:R({className:n("style__1dceszz2",e)},r),render:t,state:{slot:"breadcrumb-link"}})},te.Page=function({className:e,...r}){return t("span",{"data-slot":"breadcrumb-page","aria-current":"page",className:n("style__1dceszz3",e),...r})},te.Separator=function({children:e,className:r,...a}){return t("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:n("style__1dceszz4",r),...a,children:e??t(g,{})})},te.Ellipsis=function({className:e,...a}){return r("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:n("style__1dceszz5",e),...a,children:[t(C,{}),t("span",{className:"style__1dceszz6",children:"More"})]})},tt.Text=function({className:e,render:t,...r}){return L({defaultTagName:"div",props:R({className:n("style__1mf3lgr1",e)},r),render:t,state:{slot:"button-group-text"}})},tt.Separator=function({className:e,orientation:r="vertical",...a}){return t(j,{"data-slot":"button-group-separator","data-orientation":r,orientation:r,className:n("style__1mf3lgr2",e),...a})};var tr={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},ta={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},tl={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},to={block:"block__1sba6zoo",inline:"inline__1sba6zop"},tn={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},ts={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},ti={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let tc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},td=({className:e,variant:r="body1",component:a,color:l="primary",align:o="left",display:s="inline",weight:i="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...u})=>t(a||tc[r||"body1"],{className:n(tl[d],ts[r],ta[l],ti[i],c&&tn[c],to[s],tr[o],{style__1sba6zo10:_},e),...u,children:m}),t_=e=>{let{modifiers:r,className:a,...l}=e,o=W(null);return H(()=>{r.focused&&o.current?.focus()},[r.focused]),t(e2,{ref:o,className:n("dayButton__hxs6pw0",{outside__hxs6pw2:r.outside,today__hxs6pw1:r.today},a),variant:r.selected?"default":"ghost",...l})};function tm(e){let{options:a,onChange:l,...o}=e,n=a?.find(({value:e})=>e===o.value);return r(ao,{value:n?.value.toString(),onValueChange:e=>{l&&l({target:{value:e}})},children:[t(ai,{className:"style__1e2msjb0",children:t(as,{placeholder:n?.label})}),t(a_,{children:a?.map(({value:e,label:r,disabled:a})=>t(au,{value:e.toString(),disabled:a,children:t(td,{align:"center",transform:"capitalize",children:r})},e))})]})}var tu="monthButton__14q7je21";let th=({className:e,classNames:r,showOutsideDays:a=!0,...l})=>t(A,{locale:F,showOutsideDays:a,classNames:{month:"month__14q7je23",months:"months__14q7je22",nav:"nav__14q7je20",month_caption:"monthCaption__14q7je24",dropdown:"dropdownNav__14q7je26",dropdowns:"dropdowns__14q7je25"},components:{DayButton:t_,Dropdown:tm,PreviousMonthButton:({className:e,color:r,...a})=>t(e2,{className:o(tu,e),variant:"ghost",...a}),NextMonthButton:({className:e,color:r,...a})=>t(e2,{className:o(tu,e),variant:"ghost",...a}),CaptionLabel:({className:e,color:r,...a})=>t(td,{transform:"capitalize",className:e,...a})},...l});var tp={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)",sidebar:"var(--colors-background-sidebar)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},elevation:{1:"var(--elevation-1)",2:"var(--elevation-2)",3:"var(--elevation-3)",4:"var(--elevation-4)",6:"var(--elevation-5)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"}};let tg=({className:e,elevation:r=2,...a})=>t("div",{style:{boxShadow:tp.elevation[r]},className:n("style__oyalw00",e),...a});tg.Footer=({className:e,...r})=>t("div",{className:n("style__oyalw05",e),...r}),tg.Header=({className:e,...r})=>t("div",{className:n("style__oyalw01",e),...r}),tg.Title=({className:e,...r})=>t("h3",{className:n("style__oyalw02",e),...r}),tg.Description=({className:e,...r})=>t("p",{className:n("style__oyalw03",e),...r}),tg.Content=({className:e,...r})=>t("div",{className:n("style__oyalw04",e),...r});let ty=O.createContext(null);function tv(){let e=O.useContext(ty);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var tb={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function tf({className:a,...l}){let{orientation:o="horizontal",canScrollNext:s,scrollNext:i,canScrollPrev:c,scrollPrev:d}=tv();return r(e,{children:[t("button",{className:n("style__2d6ocq1 style__2d6ocq0",tb[o]),type:"button","data-slot":"carousel-next",disabled:!s,onClick:i,...l,children:"horizontal"===o?t(p,{}):t(u,{})}),t("button",{type:"button",className:n("style__2d6ocq2 style__2d6ocq0",tb[o]),"data-slot":"carousel-previous",disabled:!c,onClick:d,...l,children:"horizontal"===o?t(h,{}):t(y,{})})]})}var tN={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function tw(e){let{carouselRef:r,orientation:a="horizontal"}=tv();return t("div",{className:"style__i1lems0",ref:r,"data-slot":"carousel-content",children:t("div",{className:tN[a],...e})})}var tk={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"},tC={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"};let tz=({api:e,orientation:r})=>{let{selectedIndex:a,scrollSnaps:l,onDotButtonClick:o}=(e=>{let[t,r]=Y(0),[a,l]=Y([]),o=M(t=>{e&&e.scrollTo(t)},[e]),n=M(e=>{e&&l(e.scrollSnapList())},[]),s=M(e=>{e&&r(e.selectedScrollSnap())},[]);return H(()=>{e&&(n(e),s(e),e.on("reInit",n).on("reInit",s).on("select",s))},[e,n,s]),{selectedIndex:t,scrollSnaps:a,onDotButtonClick:o}})(e);return t("div",{className:tC[r],children:l.map((e,l)=>t("button",{type:"button",className:n(tk[r],{style__e2zpp66:l===a}),onClick:()=>o(l)},e))})};function tx(e){return t("div",{className:"style__1gif6yr0",role:"presentation","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function tS({width:e="100%",height:a="100%",...l}){let{canScrollNext:o,canScrollPrev:s,scrollNext:i,scrollPrev:c,api:d,opts:_,orientation:m,carouselRef:u,handleKeyDown:h,data:p,isShowButtons:g,isShowDots:y}=(({orientation:e="horizontal",opts:t,setApi:r,plugins:a,data:l,showDots:o,showArrows:n})=>{let[s,i]=K({...t,axis:"horizontal"===e?"x":"y"},a),[c,d]=Y(!1),[_,m]=Y(!1),u=!!(n&&l.length>1),h=!!(o&&l.length>1),p=M(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()))},[]),g=M(e=>{i&&i.scrollTo(e)},[i]),y=M(()=>{i?.scrollPrev()},[i]),v=M(()=>{i?.scrollNext()},[i]),b=M(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[y,v]);return H(()=>{i&&r&&r(i)},[i,r]),H(()=>{if(i)return p(i),i.on("reInit",p),i.on("select",p),()=>{i?.off("select",p)}},[i,p]),{carouselRef:s,api:i,scrollPrev:y,scrollNext:v,canScrollPrev:c,canScrollNext:_,handleKeyDown:b,opts:t,orientation:e,onDotButtonClick:g,isShowButtons:u,isShowDots:h,data:l}})(l);return t(ty.Provider,{value:{carouselRef:u,api:d,opts:_,orientation:m||(_?.axis==="y"?"vertical":"horizontal"),scrollPrev:c,scrollNext:i,canScrollPrev:s,canScrollNext:o},children:r("div",{onKeyDownCapture:h,className:n("Carousel__1jbydv50",l.className),"data-slot":"carousel",style:{width:e,height:a},children:[t(tw,{style:{width:e,height:a},children:p.map(e=>t(tx,{children:l.renderItem(e)},`${e[l.keyId]}`))}),g&&t(tf,{}),y&&t(tz,{api:d,orientation:m})]})})}let tT=({className:e,...r})=>t(l.Root,{"data-slot":"checkbox",className:n("style__b7yo4k0",e),...r,children:t(l.Indicator,{className:"style__b7yo4k1",children:t(_,{className:"style__b7yo4k2"})})});var tP={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"},tD={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"};let tI=({size:e=30,thickness:a=2.6,color:l="primary",value:n=0,variant:s="indeterminate",className:i})=>{let c=(e-a)/2,d=2*Math.PI*c;return t("div",{className:o("style__m6b9n22",tD[s],tP[l],i),style:{width:e,height:e},children:r("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[t("title",{children:"Progress bar"}),t("circle",{className:o("style__m6b9n24","determinate"===s&&tD.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:a,strokeDasharray:d,strokeDashoffset:"determinate"===s?d*(1-n/100):.25*d})]})})},tR=U.createHandle,tL=({...e})=>t(U.Root,{"data-slot":"popover",...e});tL.Trigger=({...e})=>t(U.Trigger,{"data-slot":"popover-trigger",...e}),tL.Content=({className:e,align:r="center",alignOffset:a=0,side:l="bottom",sideOffset:o=4,...s})=>t(U.Portal,{children:t(U.Positioner,{align:r,alignOffset:a,side:l,sideOffset:o,className:"style__1xy4jvu3",children:t(U.Popup,{"data-slot":"popover-content",className:n("style__1xy4jvu2",e),...s})})}),tL.Root=tL;let tj=e=>{let{open:a,onActionComponentClick:l,onCancel:o,confirmButtonProps:s,onOpenChange:i}=(({skipConfirm:e,onConfirm:t,confirmButtonProps:r})=>{let[a,l]=Y(!1);return{open:a,onActionComponentClick:()=>{e?t():l(!0)},confirmButtonProps:{variant:r?.isAccented?"destructive":"default",size:"sm",onClick:()=>{l(!1),t()}},onCancel:()=>{l(!1)},onOpenChange:e=>{l(e)}}})(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:u="Подтвердить"}=d||{},{side:h="bottom",align:p="center"}=_||{};return r(tL,{open:a,onOpenChange:i,children:[t(tL.Trigger,{children:m({onClick:l})}),t(tL.Content,{side:h,align:p,className:n("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:r("div",{className:"style__1q1uhgp1",children:[c&&t(td,{children:c}),r("div",{className:"style__1q1uhgp0",children:[t(e2,{size:"sm",variant:"ghost",onClick:o,children:"Отмена"}),t(e2,{...s,children:u})]})]})})]})};var tA={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let tF=e=>t("img",{alt:e.alt,src:e.src,className:o("style__1o97kvm0",tA[e.size||"md"],e.className),width:e.width,height:e.height}),tO={sm:"239px",md:"323px",lg:"458px"},tq={sm:"119px",md:"161px",lg:"229px"},tB={sm:"384px",md:"400px",lg:"460px"},tM={sm:"subtitle1",md:"h6",lg:"h5"};var t$={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let tH=({className:e,title:a,imgSrc:l,imgAlt:n,description:s,actions:i,size:c="sm",renderImage:d})=>{let _=G(()=>d||tF,[d]);return r("div",{className:o("style__1nenzg00",t$[c],e),children:[r("div",{className:"style__1nenzg04",style:{maxWidth:tB[c]},children:[l&&t(_,{src:l,alt:n,width:tO[c],height:tq[c],size:c}),t(td,{align:"center",color:"secondary",variant:tM[c],children:a}),s&&t(td,{className:"style__1nenzg05",component:"div",variant:"body1",children:s})]}),i&&t("footer",{className:"style__1nenzg06",children:i})]})},tE=({isLoading:e,isError:r,isCustom:a,errorState:l,customState:o,children:n,loadingContent:s=t(tI,{color:"primary"})})=>{if(e)return t("div",{className:"style__nan0ao0",children:s});if(a&&o)return t(tH,{...o});if(r&&l){let{title:e="Произошла ошибка",imgAlt:r,imgSrc:a,errorList:o,onRetry:n,actions:s=t(e2,{onClick:n,children:"Попробовать снова"})}=l,i=o.map(e=>t(td,{component:"p",children:e},e));return t(tH,{title:e,description:i,imgAlt:r,imgSrc:a,actions:s})}return n},tV=({sideOffset:e=4,alignOffset:r,ref:a,...l})=>t(J,{ref:a,sideOffset:e,...l}),tG=({text:e,content:a,children:l,side:n="top",sideOffset:s=10,alignOffset:i,delayDuration:c=0,className:d,ref:_,...m})=>t(Z,{delayDuration:c,children:r(ee,{...m,children:[t(et,{ref:_,asChild:!0,children:l}),a||e?t(Q,{children:r(tV,{className:o("style__izacrl2",d),alignOffset:i,sideOffset:s,hideWhenDetached:!0,side:n,children:[a??t("p",{className:"style__izacrl3",children:e}),m.arrow&&t(X,{className:"style__izacrl4"})]})}):null]})}),tW=e=>{let{children:a,copyPosition:l="right",copyText:o,isShowCopyText:s,color:i,className:c,...d}=e,_=()=>t(f,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:u,handleMouseLeave:h,handleClick:p,tooltipTitle:g,isIconOnLeft:y}=(({children:e,copyText:t,isShowCopyText:r,copyPosition:a})=>{let[l,o]=Y("Скопировать"),[n,s]=Y(!1);return{handleMouseLeave:()=>{"Скопировать"!==l&&setTimeout(()=>{o("Скопировать")},100),s(!1)},handleClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>o("Скопировано")).catch(()=>o("Ошибка копирования"))},tooltipTitle:r?`${l}: ${t}`:l,isIconOnLeft:"left"===a,tooltipOpen:n,handleMouseEnter:()=>{s(!0)}}})(e);return t(tG,{open:m,arrow:!0,text:g,side:"bottom",children:r(td,{onMouseLeave:h,onMouseEnter:u,onClick:p,component:"div",color:i,className:n("style__1wpx85c0",c),...d,children:[y&&_(),a,!y&&_()]})})},tY=q({pinned:!0,hovered:!1,togglePinned:()=>{}}),tK=()=>$(tY),tU="dashboard::pinned",tX=({children:e,className:r})=>{let{pinned:a,togglePinned:l}=(()=>{let[e,t]=Y("true"===window.localStorage.getItem(tU));return{pinned:e,togglePinned:()=>{t(!e),window.localStorage.setItem(tU,String(!e))}}})();return t(tY.Provider,{value:{pinned:a,togglePinned:l},children:t("div",{className:n("DashboardLayout__113u7x50",r),children:e})})};function tJ({row:e,column:r,rowIndex:a,height:l}){let{align:o,cellColor:s,isDisabled:i}=r;return t("td",{align:o??"left",style:{backgroundColor:s?.(e),height:l,width:r.width},className:n("style__1047swj0",{style__1047swj1:i},r.cellClassName?.(e)),children:t(()=>r.renderCell?r.renderCell(e,a):r.format?r.format(e)||"—":r.field?`${e[r.field]||"—"}`:"—",{})})}function tQ({row:e,rowHeight:r,onRowClick:a,columns:l,rowIndex:o,rowId:s}){let i=M(()=>{a?.(e)},[a,e]);return t("tr",{onClick:i,onKeyDown:i,className:n("style__gsm9mv0",{style__gsm9mv1:!!a}),children:l.map((a,l)=>t(tJ,{row:e,rowIndex:o,column:a,height:r},`${s}-${l}`))})}function tZ({isLoading:e,isEmpty:r,columnsLength:a,emptyState:l={text:"Нет данных"},errorState:o={text:"Произошла ошибка"},isError:n,onRetry:s}){let i=({children:e})=>t("tr",{className:"style__15m2ib80",children:t("td",{colSpan:a,align:"center",children:e})});if(e)return t(i,{children:t("span",{className:"style__15m2ib81",children:t(tI,{})})});if(r){let{imgSrc:e,imgAlt:r,text:a}=l;return t(i,{children:t(tH,{title:a,imgSrc:e,imgAlt:r})})}if(n){let{imgSrc:e,imgAlt:r,text:a}=o;return t(i,{children:t(tH,{title:a,imgSrc:e,imgAlt:r,actions:s?t(e2,{variant:"outline",onClick:s,children:"Попробовать снова"}):void 0})})}return null}tX.Sidebar=({width:e="16rem",header:a,footer:l,content:o,className:s})=>{let{pinned:i}=tK();return r("div",{style:{width:i?e:0},className:"style__1low90p0",children:[t("span",{className:"SidebarTrigger__1low90p1"}),r("aside",{style:{width:e},className:n("SidebarContainer__1low90p2",{style__1low90p3:!i},s),children:[a&&t("header",{className:"SidebarHeader__1low90p4",children:a}),t("div",{className:"SidebarContent__1low90p6",children:o}),l&&t("footer",{className:"SidebarFooter__1low90p5",children:l})]})]})},tX.Main=({children:e,className:r})=>t("main",{className:n("style__whkxou0",r),children:e});var t1="style__82af400";function t0({isError:e,isLoading:r,emptyState:a,errorState:l,columns:o,rows:n,rowHeight:s,keyId:i,onRowClick:c}){let d=0===n.length;return e||r||d?t("tbody",{className:t1,children:t(tZ,{emptyState:a,errorState:l,isEmpty:d,isError:e,isLoading:r,columnsLength:o.length})}):t("tbody",{className:t1,children:n.map((e,r)=>{let a=String(e[i]);return t(tQ,{row:e,rowId:a,rowHeight:s,columns:o,onRowClick:c,rowIndex:r},e[i])})})}function t2({children:e,className:r}){return t("footer",{className:n("style__2s55b60",r),children:e})}function t6({column:e,height:r,width:a}){return t("th",{style:{color:e.color,height:r,width:a},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function t5({columns:e,height:r,sticky:a}){return t("thead",{children:t("tr",{className:n({style__fkgoub0:a}),children:e.map(e=>t(t6,{column:e,height:r,width:e.width},e.title))})})}function t3({rows:e,columns:a,height:l="100%",className:o,rowHeight:s=40,headerHeight:i=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:u,emptyState:h,errorState:p,footer:g,title:y,stickyHeader:v,onRetry:b}){let f=_||u||0===e.length;return r("div",{"data-slot":"data-grid",style:{height:l},className:n("style__1gqvluf0",o),children:[r("table",{className:n("style__1gqvluf1",{style__1gqvluf3:m,style__1gqvluf4:_,style__1gqvluf2:f},o),children:[y&&t("caption",{className:"style__1gqvluf5",children:y}),t(t5,{columns:a,height:i,sticky:v}),t(t0,{rows:e,columns:a,rowHeight:s,keyId:c,onRowClick:d,isLoading:_,emptyState:h,errorState:p,isError:u,onRetry:b})]}),g&&t(t2,{children:g})]})}var t8="style__1ib8wkth",t4="style__1ib8wktf";function t9({...e}){return t(er.Root,{"data-slot":"dropdown-menu",...e})}function t7({align:e="start",alignOffset:r=0,side:a="bottom",sideOffset:l=4,className:o,...s}){return t(er.Portal,{children:t(er.Positioner,{align:e,alignOffset:r,side:a,sideOffset:l,className:"style__1ib8wkt6",children:t(er.Popup,{"data-slot":"dropdown-menu-content",className:n("style__1ib8wkt7",o),...s})})})}t9.Portal=function({...e}){return t(er.Portal,{"data-slot":"dropdown-menu-portal",...e})},t9.Trigger=function({...e}){return t(er.Trigger,{"data-slot":"dropdown-menu-trigger",...e})},t9.Content=t7,t9.Group=function({...e}){return t(er.Group,{"data-slot":"dropdown-menu-group",...e})},t9.Label=function({className:e,inset:r,...a}){return t(er.GroupLabel,{"data-slot":"dropdown-menu-label","data-inset":r?"":void 0,className:n("style__1ib8wkt9",e),...a})},t9.Item=function({className:e,inset:r,variant:a="default",...l}){return t(er.Item,{"data-slot":"dropdown-menu-item","data-inset":r?"":void 0,"data-variant":a,className:n("style__1ib8wkta",e),...l})},t9.Sub=function({...e}){return t(er.SubmenuRoot,{"data-slot":"dropdown-menu-sub",...e})},t9.SubTrigger=function({className:e,inset:a,children:l,...o}){return r(er.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":a?"":void 0,className:n("style__1ib8wktc style__1ib8wkta",e),...o,children:[l,t(g,{className:"style__1ib8wktg"})]})},t9.SubContent=function({align:e="start",alignOffset:r=-3,side:a="right",sideOffset:l=0,className:o,...s}){return t(t7,{"data-slot":"dropdown-menu-sub-content",className:n("style__1ib8wkt8",o),align:e,alignOffset:r,side:a,sideOffset:l,...s})},t9.Shortcut=function({className:e,...r}){return t("span",{"data-slot":"dropdown-menu-shortcut",className:n("style__1ib8wktj",e),...r})},t9.Separator=function({className:e,...r}){return t(er.Separator,{"data-slot":"dropdown-menu-separator",className:n("style__1ib8wkti",e),...r})},t9.RadioGroup=function({...e}){return t(er.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},t9.RadioItem=function({className:e,children:a,inset:l,...o}){return r(er.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":l?"":void 0,className:n("style__1ib8wkte style__1ib8wkta",e),...o,children:[t("span",{className:t4,"data-slot":"dropdown-menu-radio-item-indicator",children:t(er.RadioItemIndicator,{children:t(m,{className:t8})})}),a]})},t9.CheckboxItem=function({className:e,children:a,checked:l,inset:o,...s}){return r(er.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":o?"":void 0,className:n("style__1ib8wktd style__1ib8wkta",e),checked:l,...s,children:[t("span",{className:t4,"data-slot":"dropdown-menu-checkbox-item-indicator",children:t(er.CheckboxItemIndicator,{children:t(m,{className:t8})})}),a]})};let re=r=>{let{tooltipProps:a}=(({action:e})=>{let{isLoading:t,disabledReason:r,name:a}=e,[l,o]=Y(!1);return H(()=>{t&&o(!1)},[t]),{tooltipProps:{text:r||a,open:l,onOpenChange:e=>o(e)}}})(r),{action:l,onActionClick:o,isDisabled:n,tooltipPlacement:s}=r,{name:i,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:u,isLoading:h,onClick:p}=l,g=e=>t(tG,{arrow:!0,side:s,...a,children:t(e2,{disabled:n||u,isLoading:h,variant:"ghost",size:"icon",...e,children:c})},i);return t(e,{children:d?t(tj,{text:_,confirmButtonProps:m,actionComponent:e=>g(e),onConfirm:o(p)}):g({onClick:o(p)})})},rt=({action:e,onActionClick:a,isDisabled:l,tooltipPlacement:o})=>{if("actions"in e){let{disabled:n,icon:s,name:i,disabledReason:c,actions:d,isLoading:_}=e;return r(t9,{children:[t(tG,{text:c||i,side:o,arrow:!0,children:t(t9.Trigger,{render:t(e2,{variant:"ghost",size:"icon",isLoading:_,disabled:l||n,children:s})})},i),t(t9.Content,{children:d.map(({name:e,onClick:r,...l})=>B(t9.Item,{...l,key:e,render:t(e2,{size:"sm",onClick:a(r),children:e})}))})]})}return t(re,{action:e,onActionClick:a,isDisabled:l,tooltipPlacement:o})},rr=({actions:e,onActionClick:a,tooltipPlacement:l,isDisabled:o})=>r(t9,{children:[t(t9.Trigger,{render:t(e2,{disabled:o,variant:"ghost",size:"icon",children:t(w,{})})}),t(t9.Content,{children:e.map(e=>{let{onClick:r,name:o,disabledReason:n,isLoading:s}=e;return t(tG,{arrow:!0,side:l,text:n,children:t(t9.Item,{render:t(e2,{onClick:a(r),isLoading:s,variant:"ghost",size:"sm",fullWidth:!0,children:o})})},o)})})]}),ra=e=>{let{isDisabledAction:a,handleWrapperClick:l,handleActionClick:o}=(({row:e,actions:t})=>{let{main:r,secondary:a}=t,l=[...r,...a||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!l,handleActionClick:M(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:n}=e,{main:s,secondary:i}=n;return r("div",{onClick:l,onKeyDown:l,className:"style__y44ln70",children:[s.map(e=>t(rt,{action:e,onActionClick:o,isDisabled:a,tooltipPlacement:"top"},e.name)),i&&t(rr,{actions:i,onActionClick:o,tooltipPlacement:"left",isDisabled:a})]})};var rl={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function ro({sorting:e,setSorting:a,column:{title:l,field:o,align:d="left"},className:_}){return o?r("button",{type:"button",className:n("style__o752f00",rl[d],_),onClick:()=>{e.key===o?a({key:o,order:"asc"===e.order?"desc":"asc"}):a({key:o,order:"asc"})},children:[l,e.key===o?"asc"===e.order?t(s,{size:16}):t(c,{size:16}):t(i,{size:16})]}):null}let rn="Вы достигли конца списка",rs=({endOfScrollMsg:e=rn})=>t("li",{className:"style__1syvw5e0",children:t(td,{children:e})}),ri=({onRetry:e})=>r("li",{className:"style__qlujai0",children:[t(td,{align:"center",children:"Ошибка загрузки"}),t(e2,{size:"sm",onClick:e,children:"Попробовать снова"})]}),rc=()=>t("li",{className:"style__111czea0",children:t(tI,{color:"primary"})}),rd=({noDataImgSrc:e})=>t(tH,{title:"Нет данных",imgSrc:e}),r_=({onClick:e,isVisible:r})=>t(e2,{onClick:e,size:"icon",variant:"outline",className:n("style__1jg5nd90",{style__1jg5nd91:r}),children:t(y,{})}),rm=({data:a,keyId:l,className:o,itemContent:s,noDataPlaceholder:i,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:u,onRetry:h,onEndReached:p,ref:g})=>{let y=W(null),v=g||y,[b,f]=Y(!1),N=M(e=>{e.startIndex>2?f(!0):f(!1)},[]),w=M(()=>v.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[v]),k=M(()=>{!u&&p&&p()},[u,p]),C=!!a?.length;return C||_||m?r(tE,{isLoading:_&&!C,isError:m&&!C,errorState:d,children:[t(ea,{className:n("style__1ezen7g0",o),style:{height:"100%"},data:a,ref:v,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,r)=>t("li",{children:s?.(r,{index:e,className:n("style__1ezen7g1","datalist_item")})},r[l]),components:{Footer:()=>r(e,{children:[_&&t(rc,{}),m&&t(ri,{onRetry:h}),u&&t(rs,{endOfScrollMsg:c})]})}}),t(r_,{isVisible:b,onClick:w})]}):i?t(e,{children:i}):t(rd,{})};var ru="style__1blk89uc",rh="style__1blk89u6",rp={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},rg={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"};let ry=({error:e,variant:a="outlined",size:l="md",startAdornment:o,endAdornment:s,className:i,disabled:c,fullWidth:d,value:_,ref:m,...u})=>r("div",{className:n("Input__1blk89u0",rg[a],{style__1blk89u7:e},{[rh]:c},{style__1blk89u3:d},i),children:[o&&t("span",{className:ru,children:o}),t("input",{className:n("style__1blk89u8",rp[l],{[rh]:c,style__1blk89ud:!!o,style__1blk89ue:!!s}),ref:m,disabled:c,value:_||"",...u}),s&&t("span",{className:ru,children:s})]}),rv=({className:e,disabled:r,...a})=>t(eo,{className:n("Label__c31e140",{style__c31e141:r,style__c31e142:a.error,style__c31e143:a.required},e),...a}),rb=({label:e,helperText:a,className:l,disabled:o,fullWidth:s,ref:i,labelClassName:c,...d})=>r("div",{className:n("style__kqu4y20",{style__kqu4y25:s},l),children:[e&&t(rv,{htmlFor:d.id||e,disabled:o,required:d.required,error:d.error,className:n("style__kqu4y21",c),children:e}),t(ry,{ref:i,disabled:o,fullWidth:s,id:d.id||e,...d}),a&&t(td,{variant:"caption",className:n("style__kqu4y22",{style__kqu4y24:d.error,style__kqu4y23:o}),children:a})]}),rf=({maskProps:e,ref:r,...a})=>{let l=el(e);return t(rb,{ref:M(e=>{l.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[l,r]),...a})},rN=e=>{let{label:a,disabled:l=!1,selected:o,onSelect:n,selectMonth:s,selectYear:i,error:c,helperText:_,className:m,fullWidth:u,size:h,name:p,...g}=e,[y,v]=Y(null),[b,f]=Y(!1),[N,w]=Y(new Date),[k,C]=Y("");return H(()=>{o?(C(o.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})),w(o)):C("")},[o]),r(tL,{open:b,onOpenChange:f,children:[t(rf,{value:k,onChange:e=>{v(null),C(e.target.value);let[t,r,a]=e.target.value.split(".").map(Number);if(Number.isNaN(t)||Number.isNaN(r)||Number.isNaN(a)||t<1||t>31||r<1||r>12||a<1e3)return void v("Некорректная дата");let l=new Date(a,r-1,t);n?.(l),w(l)},label:a,disabled:l,className:m,fullWidth:u,size:h,name:p,endAdornment:t(tL.Trigger,{render:t(e2,{variant:"ghost",size:"icon",onClick:()=>{f(!0)},children:t(d,{})})}),maskProps:{mask:"__.__.____",replacement:{_:/\d/},showMask:!0},placeholder:"дд.мм.гггг",error:!!y||c,helperText:y||_}),t(tL.Content,{align:"end",alignOffset:-10,side:"bottom",children:t(th,{month:N,onMonthChange:w,selected:o,onSelect:e=>{e?(n?.(e),w(e),C(e.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}))):(C(""),n?.(void 0)),f(!1)},...g,mode:"single",captionLayout:s&&i?"dropdown":s?"dropdown-months":i?"dropdown-years":"label"})})]})},rw="descriptionRoot",rk=q({leader:!1,separator:":",direction:"default"}),rC=({children:e,leader:r,separator:a,direction:l})=>t(rk.Provider,{value:{leader:r,separator:a,direction:l},children:e});var rz={row:"row__1lociyw1",column:"column__1lociyw2"},rx={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},rS="style__sdcsnp2";let rT=e=>{let{descriptionContextProviderProps:r,direction:a}=(({direction:e="row",separator:t=":"})=>({descriptionContextProviderProps:{separator:"column"===e?"":t},direction:e}))(e),{justifyContent:l="start",component:o="dl",children:s,leader:i=!1,className:c}=e;return t(rC,{leader:i,direction:a,...r,children:t(o,{className:n("style__1lociyw0",rz[a],rx[l],rw,c),children:s})})};function rP({...e}){return t(en.Root,{"data-slot":"dialog",...e})}function rD({...e}){return t(en.Portal,{"data-slot":"dialog-portal",...e})}function rI({className:e,...r}){return t(en.Backdrop,{"data-slot":"dialog-overlay",className:n("style__8bkmbe4",e),...r})}rT.Name=({children:a,color:l="secondary",...o})=>{let{leader:s,separator:i}=$(rk);return r(e,{children:[t("dt",{className:n("style__1tsgk1i0",{style__1tsgk1i1:s}),children:r(td,{...o,color:l,children:[a,!s&&i]})}),s&&t("div",{className:"style__1tsgk1i2"})]})},rT.Value=e=>{let{valueToRender:r,isDefaultValueRender:a,leader:l}=(({canCopy:e,children:t,stub:r="—"})=>{let{leader:a,direction:l}=$(rk);return{valueToRender:t||r,isDefaultValueRender:!e||!t,leader:a,direction:l}})(e),{copyPosition:n="right",copyText:s,canCopy:i,children:c,stub:d,..._}=e;return a?t(td,{className:o("style__sdcsnp1",{[rS]:l}),component:"dd",..._,children:r}):t("dd",{className:"style__sdcsnp0",children:t(tW,{className:o({[rS]:l}),copyPosition:n,copyText:s,..._,children:r})})},rP.Trigger=function({...e}){return t(en.Trigger,{"data-slot":"dialog-trigger",...e})},rP.Portal=rD,rP.Close=function({...e}){return t(en.Close,{"data-slot":"dialog-close",...e})},rP.Overlay=rI,rP.Content=function({className:e,children:a,showCloseButton:l=!0,...o}){return r(rD,{children:[t(rI,{}),r(en.Popup,{"data-slot":"dialog-content",className:n("style__8bkmbe5",e),...o,children:[a,l&&r(en.Close,{"data-slot":"dialog-close",render:t(e2,{variant:"ghost",size:"iconSm",className:"style__8bkmbe6"}),children:[t(P,{}),t("span",{className:"style__8bkmbe7",children:"Close"})]})]})]})},rP.Header=function({className:e,...r}){return t("div",{"data-slot":"dialog-header",className:n("style__8bkmbe8",e),...r})},rP.Footer=function({className:e,showCloseButton:a=!1,children:l,...o}){return r("div",{"data-slot":"dialog-footer",className:n("style__8bkmbe9",e),...o,children:[l,a&&t(en.Close,{render:t(e2,{variant:"outline"}),children:"Close"})]})},rP.Title=function({className:e,...r}){return t(en.Title,{"data-slot":"dialog-title",className:n("style__8bkmbea",e),...r})},rP.Description=function({className:e,...r}){return t(en.Description,{"data-slot":"dialog-description",className:n("style__8bkmbeb",e),...r})};let rR=({children:e,trigger:a,className:l,title:o,description:s="",footer:i,closeButton:c,...d})=>r(ei,{...d,children:[a&&t(es.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:a}),r(es.Portal,{"data-slot":"drawer-portal",children:[t(es.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),r(es.Content,{"data-slot":"drawer-content",className:n("group/drawer-content","style__ccss503",l),children:[t("div",{className:"style__ccss504"}),r("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[t(es.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:o}),t(es.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:s})]}),e,r("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[i,c&&t(es.Close,{"data-slot":"drawer-close",asChild:!0,children:c})]})]})]})]});var rL="style__a5l83v4",rj="style__a5l83v0";let rA=({images:a=[],autoPlay:l=!1,interval:o=5e3})=>{let[s,i]=Y(0);return(H(()=>{if(!l)return;let e=setInterval(()=>{i(e=>e===a.length-1?0:e+1)},o);return()=>clearInterval(e)},[l,a.length,o]),0===a.length)?t("div",{className:rj,children:"Нет изображений для отображения"}):r("div",{className:rj,children:[t("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*s}%)`},children:a.map((e,r)=>t("div",{className:"style__a5l83v2",children:t("img",{src:e.src,alt:e.alt||`Slide ${r+1}`,className:"style__a5l83v3"})},e.src))}),a.length>1&&r(e,{children:[t("button",{type:"button",className:n(rL,"style__a5l83v5"),onClick:()=>{i(e=>0===e?a.length-1:e-1)},children:t(h,{size:24})}),t("button",{type:"button",className:n(rL,"style__a5l83v6"),onClick:()=>{i(e=>e===a.length-1?0:e+1)},children:t(p,{size:24})}),t("div",{className:"style__a5l83v7",children:a.map(({src:e},r)=>t("button",{type:"button",className:`style__a5l83v8 ${s===r?"active":""}`,onClick:()=>{i(r)}},e))})]})]})},rF=({separator:e="•",...r})=>t("div",{...r,children:t("span",{className:"style__te1pgr0",children:e})}),rO=({char:e,hasFakeCaret:a,isActive:l,...o})=>r("div",{className:n("style__rtks2g0",{style__rtks2g1:l}),...o,children:[e,a&&t("div",{className:"style__rtks2g2",children:t("div",{className:"style__rtks2g4"})})]});var rq="style__1iixe0l2";let rB=({className:a,containerClassName:l,disabled:o,...s})=>t(ec,{containerClassName:n("style__1iixe0l0",{style__1iixe0l3:o},l),className:n("style__1iixe0l1",a),render:({slots:a})=>a.length%2!=0?t("div",{className:rq,children:a.map((e,r)=>t(rO,{...e},`${r.toString()}-${e.char}`))}):r(e,{children:[t("div",{className:rq,children:a.slice(0,a.length/2).map((e,r)=>t(rO,{...e},`${r.toString()}-${e.char}`))}),t(rF,{}),t("div",{className:rq,children:a.slice(a.length/2).map((e,r)=>t(rO,{...e},`${r.toString()}-${e.char}`))})]}),...s});var rM=((eG={}).info="info",eG.success="success",eG.warning="warning",eG.error="error",eG);let r$={topRight:"top-right",topLeft:"top-left",bottomRight:"bottom-right",bottomLeft:"bottom-left",topCenter:"top-center",bottomCenter:"bottom-center"};class rH{service;constructor(e){this.service=e}message(e,t){return this.service.message(e,{description:t})}success=e=>this.service.success(e);error=e=>this.service.error(e);info=e=>this.service.info(e);warning=e=>this.service.warning(e);loading=e=>this.service.loading(e);dismiss=e=>this.service.dismiss(e);custom=e=>this.service(e);action=({title:e,buttonLabel:t,onClick:r})=>this.service(e,{action:{label:t,onClick:r}})}let rE=new rH(e_),rV=({position:e="bottomRight",...r})=>t(ed,{duration:3e3,icons:{error:t(z,{size:20,color:tp.colors.error}),success:t(v,{size:20,color:tp.colors.success}),warning:t(T,{size:20,color:tp.colors.warning}),info:t(k,{size:20,color:tp.colors.info})},position:r$[e],...r});var rG="style__t5ji060",rW={left:"left__t5ji063",center:"center__t5ji064",right:"right__t5ji065",justify:"justify__t5ji066"};let rY=(e,t=!1)=>{let r=W(null),a=W(void 0),[l,o]=Y(!1),n=M(([{target:e,contentRect:r}])=>{let a=e.scrollHeight>Math.round(r.height),l=e.scrollWidth>Math.round(r.width),n=t?l||a:l;o(e=>e===n?e:n)},[t]),s=M(t=>{r.current=t,((e,t)=>{if(e){if("function"==typeof e)return e(t);e.current=t}})(e,t)},[e]),i=M(e=>{let t=r.current;t&&n([{target:t,contentRect:t.getBoundingClientRect()}])},[n]);return V(()=>{let e=r.current;if(!e)return;i();let t=new ResizeObserver(e=>{clearTimeout(a.current),a.current=setTimeout(()=>{n(e)},500)});return t.observe(e),()=>{clearTimeout(a.current),t.unobserve(e),t.disconnect()}},[i,n]),{check:i,isOverflowed:l,ref:s}},rK=e=>{let{label:a,hasVisibleLastSymbols:l,hasMultipleRows:o,overflowRef:s,tooltipContent:i,restTooltipProps:c,style:d,visibleLastSymbolsCount:_}=(({text:e,children:t,tooltipProps:r,visibleLastSymbolsCount:a=0,rowsCount:l=1,ref:o,style:n})=>{let s={...n,"--rows-count":l},i=e??("string"==typeof t?t:void 0),c=!!(i&&a>0),d=!c&&l>1,_=[i,l,a,c].join("|"),{check:m,isOverflowed:u,ref:h}=rY(o,d),{content:p,text:g,...y}=r||{},v=u?p??g??i:void 0;return V(()=>{m(_)},[m,_]),{label:i,hasVisibleLastSymbols:c,hasMultipleRows:d,overflowRef:h,tooltipContent:v,restTooltipProps:y,style:s,visibleLastSymbolsCount:a}})(e),{align:m="left",className:u,text:h,children:p}=e;if(l&&a){let{firstPartLabel:l,secondPartLabel:o}={firstPartLabel:a.slice(0,-_),secondPartLabel:a.slice(-_)};return t(tG,{...c,arrow:!0,content:i,children:r("div",{className:n("style__t5ji062",rW[m]),"data-slot":"overflow-typography",children:[t(td,{...e,align:m,className:n(rG,u),component:"span","data-slot":"overflow-typography-start",display:"block",ref:s,style:d,children:l}),t(td,{...e,align:m,className:u,component:"span","data-slot":"overflow-typography-end",style:d,children:o})]})})}return t(tG,{...c,arrow:!0,content:i,children:t(td,{...e,align:m,className:n(rG,o&&"style__t5ji061",u),"data-slot":"overflow-typography",display:"block",ref:s,style:d,children:h??p})})},rU=({children:e,className:r})=>t("div",{className:n("style__adrl250",r),children:e});rU.Header=e=>{let{title:a,subtitle:l,breadcrumbs:o,actions:s,backButton:i,className:c}=e,{pinned:d,togglePinned:_}=tK();return H(()=>{"string"==typeof a&&(document.title=a)},[a]),r("header",{className:n("page_header","style__nvcxbd1",c),children:[r("div",{className:"style__nvcxbd2",children:[t(tG,{text:d?"Развернуть":"Свернуть",children:t(e2,{variant:"ghost",size:"icon",onClick:_,children:d?t(S,{}):t(x,{})})}),i&&t(tG,{text:"Назад",children:t(e2,{...i,variant:"ghost",children:t(h,{})})})]}),o&&t("div",{className:"Breadcrumbs__nvcxbd0",children:o}),t("div",{className:"style__nvcxbd3",children:s}),"string"==typeof a?t(td,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:a}):t("div",{className:"style__nvcxbd5",children:a}),l&&"string"==typeof l&&t(td,{className:"style__nvcxbd6","aria-level":2,children:l}),l&&"string"!=typeof l&&t("div",{className:"style__nvcxbd7",children:l})]})},rU.Content=e=>{let{className:r,children:a,isFullHeight:l=!0}=e;return t("article",{className:n("page-content","style__1hr0uh00",{style__1hr0uh01:l},r),children:a})},rU.Footer=e=>{let{children:r,className:a}=e;return t("footer",{className:n("style__1bd8jnw0",a),children:r})},rU.Aside=({children:e,className:r})=>t("aside",{className:n("PageLayoutAside__1un4hm80",r,"page_aside"),children:e});let rX=(e,t)=>Array.from({length:t-e+1},(t,r)=>r+e);function rJ(e){let{onPageChange:a,totalCount:l,siblingCount:o=1,currentPage:n,pageSize:s,size:i="icon"}=e,c=(({totalCount:e,pageSize:t,siblingCount:r=1,currentPage:a})=>G(()=>{if(t<=0||e<=0)return[];let l=Math.ceil(e/t);if(r+5>=l)return rX(1,l);let o=Math.max(a-r,1),n=Math.min(a+r,l),s=o>2,i=n<l-2;return!s&&i?[...rX(1,3+2*r),null,l]:s&&!i?[1,null,...rX(l-(3+2*r)+1,l)]:s&&i?[1,null,...rX(o,n),null,l]:[]},[e,t,r,a]))({currentPage:n,totalCount:l,siblingCount:o,pageSize:s});if(0===n||c&&c.length<2)return null;let d=c.at(-1);return r("nav",{className:"style__p708oq0",children:[t(e2,{variant:"ghost",size:i,onClick:()=>{a(n-1)},disabled:1===n,children:t(h,{})}),c?.map((e,r)=>e?t(e2,{size:i,variant:e===n?"default":"outline",onClick:()=>a(+e),children:e},`${e}${r.toString()}`):t("span",{className:"style__p708oq1",children:t(N,{})})),t(e2,{variant:"ghost",size:i,onClick:()=>{a(n+1)},disabled:n===d,children:t(p,{})})]})}let rQ=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],rZ=["I квартал","II квартал","III квартал","IV квартал"],r1=e=>Math.ceil(e/3);function r0({year:e,onSelect:a,minDate:l,maxDate:o}){let n=Array.from({length:o.getFullYear()-l.getFullYear()+1},(e,t)=>l.getFullYear()+t);return r(ao,{onValueChange:e=>{a?.(Number(e))},value:e.toString(),children:[t(ai,{children:t(as,{placeholder:e.toString()})}),t(a_,{children:n.map(e=>t(au,{value:e.toString(),children:t(td,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let r2=e=>{let{label:a,disabled:l=!1,value:o,onSelect:n,type:s="month",placeholder:i="month"===s?"Выберите месяц":"Выберите квартал",error:c,helperText:_,max:m=new Date(2050,0,1),min:u=new Date(2e3,0,1),className:h,size:p,fullWidth:g,name:y}=e,v=new Date,[b,f]=Y(!1),[N,w]=Y(v.getFullYear()),k=e=>{n?.(e),f(!1)},C="month"===s?o?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):o?`${rZ[r1(o.getMonth())]} ${o.getFullYear()}`:"";return H(()=>{o&&w(o.getFullYear())},[o]),r(tL,{open:b,onOpenChange:f,children:[t(rb,{label:a,value:C,disabled:l,size:p,fullWidth:g,name:y,endAdornment:t(tL.Trigger,{render:t(e2,{disabled:l,variant:"ghost",size:"icon",children:t(d,{})})}),placeholder:i,error:c,helperText:_,className:h}),t(tL.Content,{align:"end",alignOffset:-10,side:"bottom",children:r("div",{className:"style__1izfmw30",children:[t(r0,{year:N,onSelect:w,minDate:u,maxDate:m}),"month"===s?t("div",{className:"style__1izfmw31",children:rQ.map((e,r)=>{let a=new Date(N,r,o?.getDate()||1);return t(e2,{variant:o?.getMonth()===r&&o.getFullYear()===a.getFullYear()?"default":"ghost",disabled:a<u||a>m,onClick:()=>k(a),children:e},e)})}):t("div",{className:"style__1izfmw32",children:rZ.map((e,r)=>{let a=new Date(N,3*r,1);return t(e2,{variant:o&&[r1(o.getMonth())===r,o.getFullYear()===a.getFullYear()].every(Boolean)?"default":"ghost",disabled:a<u||a>m,onClick:()=>k(a),children:e},e)})})]})})]})},r6=({className:e,...r})=>t(eh,{"data-slot":"radio-group",className:o("RadioGroup__ia95d10",e),...r}),r5=({className:e,label:a,...l})=>r("div",{className:"style__ia95d11",children:[t(eu,{"data-slot":"radio-group-item",id:l.id||l.value,className:n("style__ia95d12",e),...l,children:t(em,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:t(b,{className:"style__ia95d14"})})}),t(rv,{htmlFor:l.id||l.value,"data-slot":"radio-group-label",children:a})]});var r3="style__h9oy583";let r8=({className:e,...a})=>r(eg,{className:n("style__h9oy580",e),...a,children:[t(ev,{className:"style__h9oy581",children:t(ep,{className:"style__h9oy582"})}),t(ey,{className:r3}),a.value?.length===2&&t(ey,{className:r3})]});var r4="style__1pnwkko6",r9={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},r7="style__1pnwkko5";function ae({min:e,max:a,onChange:l,minValue:o,maxValue:s,width:i=150,unit:c="",size:d="md",className:_,isActive:m,minInputRef:u,maxInputRef:h}){let{onMinValueChange:p,onMaxValueChange:g,minVal:y,maxVal:v,onKeyDown:b,onValueChange:f,onConfirm:N,minId:w,maxId:k}=(({min:e,max:t,maxValue:r,minValue:a,onChange:l})=>{let o=E(),n=E(),[s,i]=Y(e),[c,d]=Y(t);return H(()=>{i(a||e),d(r||t)},[a,r,e,t]),{maxId:n,minId:o,minVal:s,maxVal:c,onValueChange:e=>{e[0]===e[1]?l(e[0],e[1]):(i(e[0]),d(e[1]))},onMinValueChange:e=>{let{value:t}=e.target;Number.isNaN(+t)||i(+t)},onMaxValueChange:e=>{let{value:t}=e.target;Number.isNaN(t)||d(+t)},onKeyDown:r=>{"Enter"===r.key&&l(s>=e&&s<=t?s:e,c>=e&&c<=t?c:t)},onConfirm:e=>{l(e[0],e[1])}}})({min:e,max:a,maxValue:s,minValue:o,onChange:l});return r("div",{className:n("style__1pnwkko0",r9[d],{style__1pnwkko1:m},_),style:{width:i},children:[t(td,{className:r7,color:"disabled",variant:"caption",children:"от"}),t("input",{className:r4,type:"text",id:w,value:y,onChange:p,onKeyDown:b,ref:u}),t(td,{className:r7,color:"disabled",variant:"caption",children:"до"}),t("input",{className:r4,type:"text",id:k,value:v,onChange:g,onKeyDown:b,ref:h}),t(td,{className:r7,color:"disabled",variant:"caption",children:c}),t("div",{className:"style__1pnwkko7",children:t(r8,{min:e,max:a,value:[Number(y),Number(v)],onValueChange:f,onValueCommit:N})})]})}function at({onClick:e,variant:r="outline",...a}){let[l,o]=Y(!1);return H(()=>{let e=()=>{window.scrollY>400?o(!0):o(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),t(e2,{type:"button",variant:r,className:n("style__1ou2vjc0",{style__1ou2vjc1:l}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),...a,children:t(y,{})})}var ar="style__5ilg7od",aa="style__5ilg7o6",al={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"};let ao=eS,an=ef,as=eR,ai=({className:e,children:a,size:l="md",...o})=>r(eI,{className:n("style__5ilg7o2",al[l],e),...o,children:[a,t(eN,{asChild:!0,children:t(u,{className:"style__5ilg7oe"})})]}),ac=({className:e,...r})=>t(eP,{className:n(aa,e),...r,children:t(y,{className:ar})}),ad=({className:e,...r})=>t(eT,{className:n(aa,e),...r,children:t(u,{className:ar})}),a_=({className:e,children:a,position:l="popper",...o})=>t(ex,{children:r(eb,{className:n("style__5ilg7o7",e),position:l,...o,children:[t(ac,{}),t(eL,{className:"style__5ilg7o8",children:a}),t(ad,{})]})}),am=({className:e,...r})=>t(ez,{className:`style__5ilg7o9 ${e||""}`,...r}),au=({className:e,children:a,...l})=>r(ew,{className:`style__5ilg7oa ${e||""}`,...l,children:[t("span",{className:"style__5ilg7ob",children:t(ek,{children:t(_,{className:ar})})}),t(eC,{children:a})]}),ah=({className:e,...r})=>t(eD,{className:`style__5ilg7oc ${e||""}`,...r});function ap({...e}){return t(en.Root,{"data-slot":"sheet",...e})}function ag({...e}){return t(en.Portal,{"data-slot":"sheet-portal",...e})}function ay({className:e,...r}){return t(en.Backdrop,{"data-slot":"sheet-overlay",className:n("style__5dkj2fa",e),...r})}ap.Trigger=function({...e}){return t(en.Trigger,{"data-slot":"sheet-trigger",...e})},ap.Close=function({...e}){return t(en.Close,{"data-slot":"sheet-close",...e})},ap.Portal=ag,ap.Overlay=ay,ap.Content=function({className:e,children:a,side:l="right",showCloseButton:o=!0,...s}){return r(ag,{children:[t(ay,{}),r(en.Popup,{"data-slot":"sheet-content","data-side":l,className:n("style__5dkj2fb",e),...s,children:[a,o&&r(en.Close,{"data-slot":"sheet-close",render:t(e2,{variant:"ghost",className:"style__5dkj2fc",size:"iconSm"}),children:[t(P,{}),t("span",{className:"style__5dkj2fd",children:"Close"})]})]})]})},ap.Header=function({className:e,...r}){return t("div",{"data-slot":"sheet-header",className:n("style__5dkj2fe",e),...r})},ap.Footer=function({className:e,...r}){return t("div",{"data-slot":"sheet-footer",className:n("style__5dkj2ff",e),...r})},ap.Title=function({className:e,...r}){return t(en.Title,{"data-slot":"sheet-title",className:n("style__5dkj2fg",e),...r})},ap.Description=function({className:e,...r}){return t(en.Description,{"data-slot":"sheet-description",className:n("style__5dkj2fh",e),...r})};var av={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let ab=e=>t(eF,{...e});ab.Content=({className:e,...r})=>t(ej,{className:n("style__hworoa5",e),...r}),ab.List=({className:e,...r})=>t(eA,{className:n("style__hworoa0",e),...r}),ab.Trigger=({className:e,size:r="md",...a})=>t(eO,{className:n("style__hworoa1",av[r],e),...a});let af=({value:e,onChange:a,options:l,size:o,className:s,label:i,multiple:c})=>{let d=!0===c;return r("div",{className:n("style__10hvn8a0",s),children:[i&&t(rv,{className:"style__10hvn8a3",children:i}),t("div",{className:"style__10hvn8a1",children:l.map(r=>{var l;return t(tG,{arrow:!0,text:r.title,children:t(e2,{size:o,className:"style__10hvn8a2",disabled:r.disabled,onClick:()=>{var t;return t=r.value,void(d?e.includes(t)?a(e.filter(e=>e!==t)):a([...e,t]):a(t))},startAdornment:r.startAdornment,endAdornment:r.endAdornment,variant:(l=r.value,d?e.includes(l):e===l)?"default":"outline",children:r.label},r.value)},r.value)})})]})},aN=({form:e,children:r,...a})=>t(eB,{...e,children:t("form",{noValidate:!0,...a,children:r})});function aw({name:e,control:r,...a}){return t(eq,{control:r,name:e,render:({field:e,fieldState:r})=>t(rf,{...a,...e,error:!!r.error,helperText:r.error?.message})})}let ak=({mode:e="onBlur",...t}={})=>eH({...t,mode:e}),aC=({children:e,isLoading:r,...a})=>{let{formState:l}=eE();return t(e2,{type:"submit",isLoading:r||l.isSubmitting,...a,children:e})};function az({name:e,control:r,gridArea:a,...l}){return t(eq,{control:r,name:e,render:({field:e,fieldState:r})=>t(rb,{...l,...e,style:{gridArea:a},value:e.value||"",error:!!r.error,helperText:r.error?.message})})}var ax=":",aS="—",aT="notify";export{eK as Accordion,e4 as AlertDialog,e7 as Badge,te as Breadcrumb,tt as ButtonGroup,e2 as Button,e5 as buttonSizes,e6 as buttonVariants,th as Calendar,tg as Card,tS as Carousel,tT as Checkbox,tI as CircularProgress,tj as ConfirmAction,tE as ContentState,eq as FormController,tW as CopyTypography,rw as DESCRIPTION_ROOT_CLASSNAME,tX as DashboardLayout,t3 as DataGrid,ra as DataGridActionCell,ro as DataGridSortHeader,rm as DataList,rN as DatePicker,rT as Description,rP as Dialog,rR as Drawer,t9 as DropdownMenu,aN as Form,aw as FormMaskField,eB as FormProvider,aC as FormSubmitButton,az as FormTextField,tF as Image,rA as ImageCarousel,ry as Input,rB as InputOTP,rv as Label,rf as MaskField,r$ as NOTIFICATION_POSITIONS,rH as Notification,rV as NotificationContainer,rK as OverflowTypography,rU as PageLayout,rJ as Pagination,r2 as PeriodPicker,tH as Placeholder,tL as Popover,r5 as RadioGroupItem,r6 as RadioGroup,ae as RangeInput,at as ScrollTopButton,ao as Select,a_ as SelectContent,an as SelectGroup,au as SelectItem,am as SelectLabel,ad as SelectScrollDownButton,ac as SelectScrollUpButton,ah as SelectSeparator,ai as SelectTrigger,as as SelectValue,ap as Sheet,r8 as Slider,ab as Tabs,rb as TextField,af as ToggleGroup,tG as Tooltip,td as Typography,tr as alignments,e9 as badgeVariants,ta as colors,rM as NotificationVariantTypes,tR as createHandle,to as displays,rE as notification,ax as DEFAULT_SEPARATOR,aS as DEFAULT_SYMBOL,aT as NOTIFY_CLASSNAME,tp as theme,tn as transforms,eM as useFormController,tK as useDashboard,e$ as useFormFieldArray,eE as useFormContext,ak as useForm,rY as useOverflowed,eV as useFormWatch,ts as variants,ti as weights};
|
|
1
|
+
import{Fragment as e,jsx as t,jsxs as a}from"react/jsx-runtime";import{Accordion as r,Checkbox as l}from"@base-ui/react";import n,{clsx as s}from"clsx";import{ArrowDownNarrowWide as o,ArrowDownUp as i,ArrowDownWideNarrow as d,Calendar1 as c,Check as u,CheckIcon as _,ChevronDown as m,ChevronLeft as h,ChevronRight as p,ChevronRightIcon as g,ChevronUp as y,CircleCheck as b,CircleIcon as f,Copy as v,Ellipsis as N,EllipsisVertical as w,Info as k,MoreHorizontalIcon as x,OctagonAlert as C,PanelLeftClose as z,PanelLeftIcon as S,PanelLeftOpen as T,TriangleAlert as P,XIcon as D}from"lucide-react";import{AlertDialog as I}from"@base-ui/react/alert-dialog";import{Button as A}from"@base-ui/react/button";import{Avatar as L}from"@base-ui/react/avatar";import{mergeProps as R}from"@base-ui/react/merge-props";import{useRender as M}from"@base-ui/react/use-render";import{Separator as j}from"@base-ui/react/separator";import{DayPicker as F}from"react-day-picker";import{ru as O}from"react-day-picker/locale";import q,{createContext as B,createElement as E,useCallback as $,useContext as H,useEffect as G,useId as V,useLayoutEffect as W,useMemo as Y,useRef as K,useState as U}from"react";import X from"embla-carousel-react";import{Collapsible as J}from"@base-ui/react/collapsible";import{Popover as Q}from"@base-ui/react/popover";import{Arrow as Z,Content as ee,Portal as et,Provider as ea,Root as er,Trigger as el}from"@radix-ui/react-tooltip";import{Menu as en}from"@base-ui/react/menu";import{Virtuoso as es}from"react-virtuoso";import{useMask as eo}from"@react-input/mask";import{Root as ei}from"@radix-ui/react-label";import{Dialog as ed}from"@base-ui/react/dialog";import{Drawer as ec,Root as eu}from"vaul";import{OTPInput as e_}from"input-otp";import{Toaster as em,toast as eh}from"sonner";import{Indicator as ep,Item as eg,Root as ey}from"@radix-ui/react-radio-group";import{Slider as eb}from"@base-ui/react/slider";import{Content as ef,Group as ev,Icon as eN,Item as ew,ItemIndicator as ek,ItemText as ex,Label as eC,Portal as ez,Root as eS,ScrollDownButton as eT,ScrollUpButton as eP,Separator as eD,Trigger as eI,Value as eA,Viewport as eL}from"@radix-ui/react-select";import{Content as eR,List as eM,Tabs as ej,Trigger as eF}from"@radix-ui/react-tabs";import{Controller as eO,FormProvider as eq,useController as eB,useFieldArray as eE,useForm as e$,useFormContext as eH,useWatch as eG}from"react-hook-form";import*as eV from"react";var eW,eY={};eY.d=(e,t)=>{for(var a in t)eY.o(t,a)&&!eY.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},eY.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),eY.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var eK={};function eU({className:e,...a}){return t(r.Root,{"data-slot":"accordion",className:s("style__1b0hb6s2",e),...a})}eY.r(eK),eY.d(eK,{e:()=>eX,dK:()=>eJ,ru:()=>eQ,ik:()=>eZ,Fu:()=>e1,Lq:()=>e0,PM:()=>e2}),eU.Item=function({className:e,...a}){return t(r.Item,{"data-slot":"accordion-item",className:s("style__1b0hb6s3",e),...a})},eU.Trigger=function({className:e,children:l,...n}){return t(r.Header,{className:"style__1b0hb6s4",children:a(r.Trigger,{"data-slot":"accordion-trigger",className:s("style__1b0hb6s5",e),...n,children:[l,t(m,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s7 style__1b0hb6s6"}),t(y,{"data-slot":"accordion-trigger-icon",size:16,className:"style__1b0hb6s8 style__1b0hb6s6"})]})})},eU.Content=function({className:e,children:a,...l}){return t(r.Panel,{"data-slot":"accordion-content",className:s("style__1b0hb6s9",e),...l,children:t("div",{className:s("style__1b0hb6sa",e),children:a})})};var eX="style__1ersxw10",eJ={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},eQ={default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"},eZ="style__1ersxw1f",e1="style__1ersxw13",e0="style__1ersxw12",e2="style__1ersxw1e";let e6=({className:e,variant:r="default",size:l="md",startAdornment:n,endAdornment:o,isLoading:i=!1,fullWidth:d,children:c,...u})=>a(A,{nativeButton:u.nativeButton??!u.render,className:s(eX,eQ[r],eJ[l],{[e1]:d,[e0]:i},e),...u,children:[n&&t("span",{className:e2,children:n}),c,o&&t("span",{className:eZ,children:o})]}),{ru:e5,dK:e9}=eK;function e4({...e}){return t(I.Portal,{"data-slot":"alert-dialog-portal",...e})}function e8({className:e,...a}){return t(I.Backdrop,{"data-slot":"alert-dialog-overlay",className:s("style__qmtpwy4",e),...a})}function e3({...e}){return t(I.Root,{"data-slot":"alert-dialog",...e})}function e7({className:e,size:a="default",...r}){return t(L.Root,{"data-slot":"avatar","data-size":a,className:s("style__hhcrfl0",e),...r})}e3.Trigger=function({...e}){return t(I.Trigger,{"data-slot":"alert-dialog-trigger",...e})},e3.Overlay=e8,e3.Content=function({className:e,size:r="default",...l}){return a(e4,{children:[t(e8,{}),t(I.Popup,{"data-slot":"alert-dialog-content","data-size":r,className:s("style__qmtpwy5",e),...l})]})},e3.Header=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-header",className:s("style__qmtpwy6",e),...a})},e3.Footer=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-footer",className:s("style__qmtpwy7",e),...a})},e3.Media=function({className:e,...a}){return t("div",{"data-slot":"alert-dialog-media",className:s("style__qmtpwy8",e),...a})},e3.Title=function({className:e,...a}){return t(I.Title,{"data-slot":"alert-dialog-title",className:s("style__qmtpwy9",e),...a})},e3.Description=function({className:e,...a}){return t(I.Description,{"data-slot":"alert-dialog-description",className:s("style__qmtpwya",e),...a})},e3.Action=function({className:e,...a}){return t(e6,{"data-slot":"alert-dialog-action",className:e,...a})},e3.Cancel=function({className:e,variant:a="outline",size:r="md",...l}){return t(I.Close,{"data-slot":"alert-dialog-cancel",className:e,render:t(e6,{variant:a,size:r}),...l})},e7.Image=function({className:e,...a}){return t(L.Image,{"data-slot":"avatar-image",className:s("style__hhcrfl1",e),...a})},e7.Fallback=function({className:e,...a}){return t(L.Fallback,{"data-slot":"avatar-fallback",className:s("style__hhcrfl2",e),...a})},e7.Badge=function({className:e,...a}){return t("span",{"data-slot":"avatar-badge",className:s("style__hhcrfl3",e),...a})},e7.Group=function({className:e,...a}){return t("div",{"data-slot":"avatar-group",className:s("style__hhcrfl4",e),...a})},e7.GroupCount=function({className:e,...a}){return t("div",{"data-slot":"avatar-group-count",className:s("style__hhcrfl5",e),...a})};var te={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function tt({className:e,variant:t="default",render:a,...r}){return M({defaultTagName:"span",props:R({className:s("style__1af895x0",te[t],e)},r),render:a,state:{slot:"badge",variant:t}})}function ta({className:e,...a}){return t("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:e,...a})}function tr({className:e,orientation:a="horizontal",...r}){return t("fieldset",{"data-slot":"button-group","data-orientation":a,className:s("style__1mf3lgr0",e),...r})}ta.List=function({className:e,...a}){return t("ol",{"data-slot":"breadcrumb-list",className:s("style__1dceszz0",e),...a})},ta.Item=function({className:e,...a}){return t("li",{"data-slot":"breadcrumb-item",className:s("style__1dceszz1",e),...a})},ta.Link=function({className:e,render:t,...a}){return M({defaultTagName:"a",props:R({className:s("style__1dceszz2",e)},a),render:t,state:{slot:"breadcrumb-link"}})},ta.Page=function({className:e,...a}){return t("span",{"data-slot":"breadcrumb-page","aria-current":"page",className:s("style__1dceszz3",e),...a})},ta.Separator=function({children:e,className:a,...r}){return t("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s("style__1dceszz4",a),...r,children:e??t(g,{})})},ta.Ellipsis=function({className:e,...r}){return a("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:s("style__1dceszz5",e),...r,children:[t(x,{}),t("span",{className:"style__1dceszz6",children:"More"})]})},tr.Text=function({className:e,render:t,...a}){return M({defaultTagName:"div",props:R({className:s("style__1mf3lgr1",e)},a),render:t,state:{slot:"button-group-text"}})},tr.Separator=function({className:e,orientation:a="vertical",...r}){return t(j,{"data-slot":"button-group-separator","data-orientation":a,orientation:a,className:s("style__1mf3lgr2",e),...r})};var tl={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},tn={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},ts={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},to={block:"block__1sba6zoo",inline:"inline__1sba6zop"},ti={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},td={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},tc={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let tu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},t_=({className:e,variant:a="body1",component:r,color:l="primary",align:n="left",display:o="inline",weight:i="normal",transform:d,decoration:c="none",gutterBottom:u,children:_,...m})=>t(r||tu[a||"body1"],{className:s(ts[c],td[a],tn[l],tc[i],d&&ti[d],to[o],tl[n],{style__1sba6zo10:u},e),...m,children:_}),tm=e=>{let{modifiers:a,className:r,...l}=e,n=K(null);return G(()=>{a.focused&&n.current?.focus()},[a.focused]),t(e6,{ref:n,className:s("dayButton__hxs6pw0",{outside__hxs6pw2:a.outside,today__hxs6pw1:a.today},r),variant:a.selected?"default":"ghost",...l})};function th(e){let{options:r,onChange:l,...n}=e,s=r?.find(({value:e})=>e===n.value);return a(rd,{value:s?.value.toString(),onValueChange:e=>{l&&l({target:{value:e}})},children:[t(r_,{className:"style__1e2msjb0",children:t(ru,{placeholder:s?.label})}),t(rp,{children:r?.map(({value:e,label:a,disabled:r})=>t(ry,{value:e.toString(),disabled:r,children:t(t_,{align:"center",transform:"capitalize",children:a})},e))})]})}var tp="monthButton__14q7je21";let tg=({className:e,classNames:a,showOutsideDays:r=!0,...l})=>t(F,{locale:O,showOutsideDays:r,classNames:{month:"month__14q7je23",months:"months__14q7je22",nav:"nav__14q7je20",month_caption:"monthCaption__14q7je24",dropdown:"dropdownNav__14q7je26",dropdowns:"dropdowns__14q7je25"},components:{DayButton:tm,Dropdown:th,PreviousMonthButton:({className:e,color:a,...r})=>t(e6,{className:n(tp,e),variant:"ghost",...r}),NextMonthButton:({className:e,color:a,...r})=>t(e6,{className:n(tp,e),variant:"ghost",...r}),CaptionLabel:({className:e,color:a,...r})=>t(t_,{transform:"capitalize",className:e,...r})},...l});var ty={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)",sidebar:"var(--colors-background-sidebar)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},elevation:{1:"var(--elevation-1)",2:"var(--elevation-2)",3:"var(--elevation-3)",4:"var(--elevation-4)",6:"var(--elevation-5)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"}};let tb=({className:e,elevation:a=2,...r})=>t("div",{style:{boxShadow:ty.elevation[a]},className:s("style__oyalw00",e),...r});tb.Footer=({className:e,...a})=>t("div",{className:s("style__oyalw05",e),...a}),tb.Header=({className:e,...a})=>t("div",{className:s("style__oyalw01",e),...a}),tb.Title=({className:e,...a})=>t("h3",{className:s("style__oyalw02",e),...a}),tb.Description=({className:e,...a})=>t("p",{className:s("style__oyalw03",e),...a}),tb.Content=({className:e,...a})=>t("div",{className:s("style__oyalw04",e),...a});let tf=q.createContext(null);function tv(){let e=q.useContext(tf);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var tN={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function tw({className:r,...l}){let{orientation:n="horizontal",canScrollNext:o,scrollNext:i,canScrollPrev:d,scrollPrev:c}=tv();return a(e,{children:[t("button",{className:s("style__2d6ocq1 style__2d6ocq0",tN[n]),type:"button","data-slot":"carousel-next",disabled:!o,onClick:i,...l,children:"horizontal"===n?t(p,{}):t(m,{})}),t("button",{type:"button",className:s("style__2d6ocq2 style__2d6ocq0",tN[n]),"data-slot":"carousel-previous",disabled:!d,onClick:c,...l,children:"horizontal"===n?t(h,{}):t(y,{})})]})}var tk={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function tx(e){let{carouselRef:a,orientation:r="horizontal"}=tv();return t("div",{className:"style__i1lems0",ref:a,"data-slot":"carousel-content",children:t("div",{className:tk[r],...e})})}var tC={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"},tz={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"};let tS=({api:e,orientation:a})=>{let{selectedIndex:r,scrollSnaps:l,onDotButtonClick:n}=(e=>{let[t,a]=U(0),[r,l]=U([]),n=$(t=>{e&&e.scrollTo(t)},[e]),s=$(e=>{e&&l(e.scrollSnapList())},[]),o=$(e=>{e&&a(e.selectedScrollSnap())},[]);return G(()=>{e&&(s(e),o(e),e.on("reInit",s).on("reInit",o).on("select",o))},[e,s,o]),{selectedIndex:t,scrollSnaps:r,onDotButtonClick:n}})(e);return t("div",{className:tz[a],children:l.map((e,l)=>t("button",{type:"button",className:s(tC[a],{style__e2zpp66:l===r}),onClick:()=>n(l)},e))})};function tT(e){return t("div",{className:"style__1gif6yr0",role:"presentation","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function tP({width:e="100%",height:r="100%",...l}){let{canScrollNext:n,canScrollPrev:o,scrollNext:i,scrollPrev:d,api:c,opts:u,orientation:_,carouselRef:m,handleKeyDown:h,data:p,isShowButtons:g,isShowDots:y}=(({orientation:e="horizontal",opts:t,setApi:a,plugins:r,data:l,showDots:n,showArrows:s})=>{let[o,i]=X({...t,axis:"horizontal"===e?"x":"y"},r),[d,c]=U(!1),[u,_]=U(!1),m=!!(s&&l.length>1),h=!!(n&&l.length>1),p=$(e=>{e&&(c(e.canScrollPrev()),_(e.canScrollNext()))},[]),g=$(e=>{i&&i.scrollTo(e)},[i]),y=$(()=>{i?.scrollPrev()},[i]),b=$(()=>{i?.scrollNext()},[i]),f=$(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[y,b]);return G(()=>{i&&a&&a(i)},[i,a]),G(()=>{if(i)return p(i),i.on("reInit",p),i.on("select",p),()=>{i?.off("select",p)}},[i,p]),{carouselRef:o,api:i,scrollPrev:y,scrollNext:b,canScrollPrev:d,canScrollNext:u,handleKeyDown:f,opts:t,orientation:e,onDotButtonClick:g,isShowButtons:m,isShowDots:h,data:l}})(l);return t(tf.Provider,{value:{carouselRef:m,api:c,opts:u,orientation:_||(u?.axis==="y"?"vertical":"horizontal"),scrollPrev:d,scrollNext:i,canScrollPrev:o,canScrollNext:n},children:a("div",{onKeyDownCapture:h,className:s("Carousel__1jbydv50",l.className),"data-slot":"carousel",style:{width:e,height:r},children:[t(tx,{style:{width:e,height:r},children:p.map(e=>t(tT,{children:l.renderItem(e)},`${e[l.keyId]}`))}),g&&t(tw,{}),y&&t(tS,{api:c,orientation:_})]})})}let tD=({className:e,...a})=>t(l.Root,{"data-slot":"checkbox",className:s("style__b7yo4k0",e),...a,children:t(l.Indicator,{className:"style__b7yo4k1",children:t(u,{className:"style__b7yo4k2"})})});var tI={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"},tA={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"};let tL=({size:e=30,thickness:r=2.6,color:l="primary",value:s=0,variant:o="indeterminate",className:i})=>{let d=(e-r)/2,c=2*Math.PI*d;return t("div",{className:n("style__m6b9n22",tA[o],tI[l],i),style:{width:e,height:e},children:a("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[t("title",{children:"Progress bar"}),t("circle",{className:n("style__m6b9n24","determinate"===o&&tA.determinate),cx:e/2,cy:e/2,r:d,fill:"none",strokeWidth:r,strokeDasharray:c,strokeDashoffset:"determinate"===o?c*(1-s/100):.25*c})]})})};function tR({...e}){return t(J.Root,{"data-slot":"collapsible",...e})}tR.Trigger=function({...e}){return t(J.Trigger,{"data-slot":"collapsible-trigger",...e})},tR.Content=function({...e}){return t(J.Panel,{"data-slot":"collapsible-content",...e})};let tM=Q.createHandle,tj=({...e})=>t(Q.Root,{"data-slot":"popover",...e});tj.Trigger=({...e})=>t(Q.Trigger,{"data-slot":"popover-trigger",...e}),tj.Content=({className:e,align:a="center",alignOffset:r=0,side:l="bottom",sideOffset:n=4,...o})=>t(Q.Portal,{children:t(Q.Positioner,{align:a,alignOffset:r,side:l,sideOffset:n,className:"style__1xy4jvu3",children:t(Q.Popup,{"data-slot":"popover-content",className:s("style__1xy4jvu2",e),...o})})}),tj.Root=tj;let tF=e=>{let{open:r,onActionComponentClick:l,onCancel:n,confirmButtonProps:o,onOpenChange:i}=(({skipConfirm:e,onConfirm:t,confirmButtonProps:a})=>{let[r,l]=U(!1);return{open:r,onActionComponentClick:()=>{e?t():l(!0)},confirmButtonProps:{variant:a?.isAccented?"destructive":"default",size:"sm",onClick:()=>{l(!1),t()}},onCancel:()=>{l(!1)},onOpenChange:e=>{l(e)}}})(e),{text:d,confirmButtonProps:c,popoverProps:u,actionComponent:_}=e,{text:m="Подтвердить"}=c||{},{side:h="bottom",align:p="center"}=u||{};return a(tj,{open:r,onOpenChange:i,children:[t(tj.Trigger,{children:_({onClick:l})}),t(tj.Content,{side:h,align:p,className:s("style__1q1uhgp2",{style__1q1uhgp3:!!d}),children:a("div",{className:"style__1q1uhgp1",children:[d&&t(t_,{children:d}),a("div",{className:"style__1q1uhgp0",children:[t(e6,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),t(e6,{...o,children:m})]})]})})]})};var tO={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let tq=e=>t("img",{alt:e.alt,src:e.src,className:n("style__1o97kvm0",tO[e.size||"md"],e.className),width:e.width,height:e.height}),tB={sm:"239px",md:"323px",lg:"458px"},tE={sm:"119px",md:"161px",lg:"229px"},t$={sm:"384px",md:"400px",lg:"460px"},tH={sm:"subtitle1",md:"h6",lg:"h5"};var tG={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let tV=({className:e,title:r,imgSrc:l,imgAlt:s,description:o,actions:i,size:d="sm",renderImage:c})=>{let u=Y(()=>c||tq,[c]);return a("div",{className:n("style__1nenzg00",tG[d],e),children:[a("div",{className:"style__1nenzg04",style:{maxWidth:t$[d]},children:[l&&t(u,{src:l,alt:s,width:tB[d],height:tE[d],size:d}),t(t_,{align:"center",color:"secondary",variant:tH[d],children:r}),o&&t(t_,{className:"style__1nenzg05",component:"div",variant:"body1",children:o})]}),i&&t("footer",{className:"style__1nenzg06",children:i})]})},tW=({isLoading:e,isError:a,isCustom:r,errorState:l,customState:n,children:s,loadingContent:o=t(tL,{color:"primary"})})=>{if(e)return t("div",{className:"style__nan0ao0",children:o});if(r&&n)return t(tV,{...n});if(a&&l){let{title:e="Произошла ошибка",imgAlt:a,imgSrc:r,errorList:n,onRetry:s,actions:o=t(e6,{onClick:s,children:"Попробовать снова"})}=l,i=n.map(e=>t(t_,{component:"p",children:e},e));return t(tV,{title:e,description:i,imgAlt:a,imgSrc:r,actions:o})}return s},tY=({sideOffset:e=4,alignOffset:a,ref:r,...l})=>t(ee,{ref:r,sideOffset:e,...l}),tK=({text:e,content:r,children:l,side:s="top",sideOffset:o=10,alignOffset:i,delayDuration:d=0,className:c,ref:u,..._})=>t(ea,{delayDuration:d,children:a(er,{..._,children:[t(el,{ref:u,asChild:!0,children:l}),r||e?t(et,{children:a(tY,{className:n("style__izacrl2",c),alignOffset:i,sideOffset:o,hideWhenDetached:!0,side:s,children:[r??t("p",{className:"style__izacrl3",children:e}),_.arrow&&t(Z,{className:"style__izacrl4"})]})}):null]})}),tU=e=>{let{children:r,copyPosition:l="right",copyText:n,isShowCopyText:o,color:i,className:d,...c}=e,u=()=>t(v,{className:"style__1wpx85c1"}),{tooltipOpen:_,handleMouseEnter:m,handleMouseLeave:h,handleClick:p,tooltipTitle:g,isIconOnLeft:y}=(({children:e,copyText:t,isShowCopyText:a,copyPosition:r})=>{let[l,n]=U("Скопировать"),[s,o]=U(!1);return{handleMouseLeave:()=>{"Скопировать"!==l&&setTimeout(()=>{n("Скопировать")},100),o(!1)},handleClick:a=>{a.stopPropagation(),navigator.clipboard.writeText(t||("string"==typeof e?e:"")).then(()=>n("Скопировано")).catch(()=>n("Ошибка копирования"))},tooltipTitle:a?`${l}: ${t}`:l,isIconOnLeft:"left"===r,tooltipOpen:s,handleMouseEnter:()=>{o(!0)}}})(e);return t(tK,{open:_,arrow:!0,text:g,side:"bottom",children:a(t_,{onMouseLeave:h,onMouseEnter:m,onClick:p,component:"div",color:i,className:s("style__1wpx85c0",d),...c,children:[y&&u(),r,!y&&u()]})})},tX=B({pinned:!0,hovered:!1,togglePinned:()=>{}}),tJ=()=>H(tX),tQ="dashboard::pinned",tZ=({children:e,className:a})=>{let{pinned:r,togglePinned:l}=(()=>{let[e,t]=U("true"===window.localStorage.getItem(tQ));return{pinned:e,togglePinned:()=>{t(!e),window.localStorage.setItem(tQ,String(!e))}}})();return t(tX.Provider,{value:{pinned:r,togglePinned:l},children:t("div",{className:s("DashboardLayout__113u7x50",a),children:e})})};function t1({row:e,column:a,rowIndex:r,height:l}){let{align:n,cellColor:o,isDisabled:i}=a;return t("td",{align:n??"left",style:{backgroundColor:o?.(e),height:l,width:a.width},className:s("style__1047swj0",{style__1047swj1:i},a.cellClassName?.(e)),children:t(()=>a.renderCell?a.renderCell(e,r):a.format?a.format(e)||"—":a.field?`${e[a.field]||"—"}`:"—",{})})}function t0({row:e,rowHeight:a,onRowClick:r,columns:l,rowIndex:n,rowId:o}){let i=$(()=>{r?.(e)},[r,e]);return t("tr",{onClick:i,onKeyDown:i,className:s("style__gsm9mv0",{style__gsm9mv1:!!r}),children:l.map((r,l)=>t(t1,{row:e,rowIndex:n,column:r,height:a},`${o}-${l}`))})}function t2({isLoading:e,isEmpty:a,columnsLength:r,emptyState:l={text:"Нет данных"},errorState:n={text:"Произошла ошибка"},isError:s,onRetry:o}){let i=({children:e})=>t("tr",{className:"style__15m2ib80",children:t("td",{colSpan:r,align:"center",children:e})});if(e)return t(i,{children:t("span",{className:"style__15m2ib81",children:t(tL,{})})});if(a){let{imgSrc:e,imgAlt:a,text:r}=l;return t(i,{children:t(tV,{title:r,imgSrc:e,imgAlt:a})})}if(s){let{imgSrc:e,imgAlt:a,text:r}=n;return t(i,{children:t(tV,{title:r,imgSrc:e,imgAlt:a,actions:o?t(e6,{variant:"outline",onClick:o,children:"Попробовать снова"}):void 0})})}return null}tZ.Sidebar=({width:e="16rem",header:r,footer:l,content:n,className:o})=>{let{pinned:i}=tJ();return a("div",{style:{width:i?e:0},className:"style__1low90p0",children:[t("span",{className:"SidebarTrigger__1low90p1"}),a("aside",{style:{width:e},className:s("SidebarContainer__1low90p2",{style__1low90p3:!i},o),children:[r&&t("header",{className:"SidebarHeader__1low90p4",children:r}),t("div",{className:"SidebarContent__1low90p6",children:n}),l&&t("footer",{className:"SidebarFooter__1low90p5",children:l})]})]})},tZ.Main=({children:e,className:a})=>t("main",{className:s("style__whkxou0",a),children:e});var t6="style__82af400";function t5({isError:e,isLoading:a,emptyState:r,errorState:l,columns:n,rows:s,rowHeight:o,keyId:i,onRowClick:d}){let c=0===s.length;return e||a||c?t("tbody",{className:t6,children:t(t2,{emptyState:r,errorState:l,isEmpty:c,isError:e,isLoading:a,columnsLength:n.length})}):t("tbody",{className:t6,children:s.map((e,a)=>{let r=String(e[i]);return t(t0,{row:e,rowId:r,rowHeight:o,columns:n,onRowClick:d,rowIndex:a},e[i])})})}function t9({children:e,className:a}){return t("footer",{className:s("style__2s55b60",a),children:e})}function t4({column:e,height:a,width:r}){return t("th",{style:{color:e.color,height:a,width:r},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function t8({columns:e,height:a,sticky:r}){return t("thead",{children:t("tr",{className:s({style__fkgoub0:r}),children:e.map(e=>t(t4,{column:e,height:a,width:e.width},e.title))})})}function t3({rows:e,columns:r,height:l="100%",className:n,rowHeight:o=40,headerHeight:i=40,keyId:d,onRowClick:c,isLoading:u,isDisabled:_,isError:m,emptyState:h,errorState:p,footer:g,title:y,stickyHeader:b,onRetry:f}){let v=u||m||0===e.length;return a("div",{"data-slot":"data-grid",style:{height:l},className:s("style__1gqvluf0",n),children:[a("table",{className:s("style__1gqvluf1",{style__1gqvluf3:_,style__1gqvluf4:u,style__1gqvluf2:v},n),children:[y&&t("caption",{className:"style__1gqvluf5",children:y}),t(t8,{columns:r,height:i,sticky:b}),t(t5,{rows:e,columns:r,rowHeight:o,keyId:d,onRowClick:c,isLoading:u,emptyState:h,errorState:p,isError:m,onRetry:f})]}),g&&t(t9,{children:g})]})}var t7="style__1ib8wkth",ae="style__1ib8wktf";function at({...e}){return t(en.Root,{"data-slot":"dropdown-menu",...e})}function aa({align:e="start",alignOffset:a=0,side:r="bottom",sideOffset:l=4,className:n,...o}){return t(en.Portal,{children:t(en.Positioner,{align:e,alignOffset:a,side:r,sideOffset:l,className:"style__1ib8wkt6",children:t(en.Popup,{"data-slot":"dropdown-menu-content",className:s("style__1ib8wkt7",n),...o})})})}at.Portal=function({...e}){return t(en.Portal,{"data-slot":"dropdown-menu-portal",...e})},at.Trigger=function({...e}){return t(en.Trigger,{"data-slot":"dropdown-menu-trigger",...e})},at.Content=aa,at.Group=function({...e}){return t(en.Group,{"data-slot":"dropdown-menu-group",...e})},at.Label=function({className:e,inset:a,...r}){return t(en.GroupLabel,{"data-slot":"dropdown-menu-label","data-inset":a?"":void 0,className:s("style__1ib8wkt9",e),...r})},at.Item=function({className:e,inset:a,variant:r="default",...l}){return t(en.Item,{"data-slot":"dropdown-menu-item","data-inset":a?"":void 0,"data-variant":r,className:s("style__1ib8wkta",e),...l})},at.Sub=function({...e}){return t(en.SubmenuRoot,{"data-slot":"dropdown-menu-sub",...e})},at.SubTrigger=function({className:e,inset:r,children:l,...n}){return a(en.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":r?"":void 0,className:s("style__1ib8wktc style__1ib8wkta",e),...n,children:[l,t(g,{className:"style__1ib8wktg"})]})},at.SubContent=function({align:e="start",alignOffset:a=-3,side:r="right",sideOffset:l=0,className:n,...o}){return t(aa,{"data-slot":"dropdown-menu-sub-content",className:s("style__1ib8wkt8",n),align:e,alignOffset:a,side:r,sideOffset:l,...o})},at.Shortcut=function({className:e,...a}){return t("span",{"data-slot":"dropdown-menu-shortcut",className:s("style__1ib8wktj",e),...a})},at.Separator=function({className:e,...a}){return t(en.Separator,{"data-slot":"dropdown-menu-separator",className:s("style__1ib8wkti",e),...a})},at.RadioGroup=function({...e}){return t(en.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},at.RadioItem=function({className:e,children:r,inset:l,...n}){return a(en.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":l?"":void 0,className:s("style__1ib8wkte style__1ib8wkta",e),...n,children:[t("span",{className:ae,"data-slot":"dropdown-menu-radio-item-indicator",children:t(en.RadioItemIndicator,{children:t(_,{className:t7})})}),r]})},at.CheckboxItem=function({className:e,children:r,checked:l,inset:n,...o}){return a(en.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":n?"":void 0,className:s("style__1ib8wktd style__1ib8wkta",e),checked:l,...o,children:[t("span",{className:ae,"data-slot":"dropdown-menu-checkbox-item-indicator",children:t(en.CheckboxItemIndicator,{children:t(_,{className:t7})})}),r]})};let ar=a=>{let{tooltipProps:r}=(({action:e})=>{let{isLoading:t,disabledReason:a,name:r}=e,[l,n]=U(!1);return G(()=>{t&&n(!1)},[t]),{tooltipProps:{text:a||r,open:l,onOpenChange:e=>n(e)}}})(a),{action:l,onActionClick:n,isDisabled:s,tooltipPlacement:o}=a,{name:i,icon:d,needConfirm:c,confirmText:u,confirmButtonProps:_,disabled:m,isLoading:h,onClick:p}=l,g=e=>t(tK,{arrow:!0,side:o,...r,children:t(e6,{disabled:s||m,isLoading:h,variant:"ghost",size:"icon",...e,children:d})},i);return t(e,{children:c?t(tF,{text:u,confirmButtonProps:_,actionComponent:e=>g(e),onConfirm:n(p)}):g({onClick:n(p)})})},al=({action:e,onActionClick:r,isDisabled:l,tooltipPlacement:n})=>{if("actions"in e){let{disabled:s,icon:o,name:i,disabledReason:d,actions:c,isLoading:u}=e;return a(at,{children:[t(tK,{text:d||i,side:n,arrow:!0,children:t(at.Trigger,{render:t(e6,{variant:"ghost",size:"icon",isLoading:u,disabled:l||s,children:o})})},i),t(at.Content,{children:c.map(({name:e,onClick:a,...l})=>E(at.Item,{...l,key:e,render:t(e6,{size:"sm",onClick:r(a),children:e})}))})]})}return t(ar,{action:e,onActionClick:r,isDisabled:l,tooltipPlacement:n})},an=({actions:e,onActionClick:r,tooltipPlacement:l,isDisabled:n})=>a(at,{children:[t(at.Trigger,{render:t(e6,{disabled:n,variant:"ghost",size:"icon",children:t(w,{})})}),t(at.Content,{children:e.map(e=>{let{onClick:a,name:n,disabledReason:s,isLoading:o}=e;return t(tK,{arrow:!0,side:l,text:s,children:t(at.Item,{render:t(e6,{onClick:r(a),isLoading:o,variant:"ghost",size:"sm",fullWidth:!0,children:n})})},n)})})]}),as=e=>{let{isDisabledAction:r,handleWrapperClick:l,handleActionClick:n}=(({row:e,actions:t})=>{let{main:a,secondary:r}=t,l=[...a,...r||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!l,handleActionClick:$(t=>()=>{t?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:s}=e,{main:o,secondary:i}=s;return a("div",{onClick:l,onKeyDown:l,className:"style__y44ln70",children:[o.map(e=>t(al,{action:e,onActionClick:n,isDisabled:r,tooltipPlacement:"top"},e.name)),i&&t(an,{actions:i,onActionClick:n,tooltipPlacement:"left",isDisabled:r})]})};var ao={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function ai({sorting:e,setSorting:r,column:{title:l,field:n,align:c="left"},className:u}){return n?a("button",{type:"button",className:s("style__o752f00",ao[c],u),onClick:()=>{e.key===n?r({key:n,order:"asc"===e.order?"desc":"asc"}):r({key:n,order:"asc"})},children:[l,e.key===n?"asc"===e.order?t(o,{size:16}):t(d,{size:16}):t(i,{size:16})]}):null}let ad="Вы достигли конца списка",ac=({endOfScrollMsg:e=ad})=>t("li",{className:"style__1syvw5e0",children:t(t_,{children:e})}),au=({onRetry:e})=>a("li",{className:"style__qlujai0",children:[t(t_,{align:"center",children:"Ошибка загрузки"}),t(e6,{size:"sm",onClick:e,children:"Попробовать снова"})]}),a_=()=>t("li",{className:"style__111czea0",children:t(tL,{color:"primary"})}),am=({noDataImgSrc:e})=>t(tV,{title:"Нет данных",imgSrc:e}),ah=({onClick:e,isVisible:a})=>t(e6,{onClick:e,size:"icon",variant:"outline",className:s("style__1jg5nd90",{style__1jg5nd91:a}),children:t(y,{})}),ap=({data:r,keyId:l,className:n,itemContent:o,noDataPlaceholder:i,endOfScrollMsg:d,errorState:c,isLoading:u,isError:_,isEndReached:m,onRetry:h,onEndReached:p,ref:g})=>{let y=K(null),b=g||y,[f,v]=U(!1),N=$(e=>{e.startIndex>2?v(!0):v(!1)},[]),w=$(()=>b.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[b]),k=$(()=>{!m&&p&&p()},[m,p]),x=!!r?.length;return x||u||_?a(tW,{isLoading:u&&!x,isError:_&&!x,errorState:c,children:[t(es,{className:s("style__1ezen7g0",n),style:{height:"100%"},data:r,ref:b,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,a)=>t("li",{children:o?.(a,{index:e,className:s("style__1ezen7g1","datalist_item")})},a[l]),components:{Footer:()=>a(e,{children:[u&&t(a_,{}),_&&t(au,{onRetry:h}),m&&t(ac,{endOfScrollMsg:d})]})}}),t(ah,{isVisible:f,onClick:w})]}):i?t(e,{children:i}):t(am,{})};var ag="style__1blk89uc",ay="style__1blk89u6",ab={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},af={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"};let av=({error:e,variant:r="outlined",size:l="md",startAdornment:n,endAdornment:o,className:i,disabled:d,fullWidth:c,value:u,ref:_,...m})=>a("div",{className:s("Input__1blk89u0",af[r],{style__1blk89u7:e},{[ay]:d},{style__1blk89u3:c},i),children:[n&&t("span",{className:ag,children:n}),t("input",{className:s("style__1blk89u8",ab[l],{[ay]:d,style__1blk89ud:!!n,style__1blk89ue:!!o}),ref:_,disabled:d,value:u||"",...m}),o&&t("span",{className:ag,children:o})]}),aN=({className:e,disabled:a,...r})=>t(ei,{className:s("Label__c31e140",{style__c31e141:a,style__c31e142:r.error,style__c31e143:r.required},e),...r}),aw=({label:e,helperText:r,className:l,disabled:n,fullWidth:o,ref:i,labelClassName:d,...c})=>a("div",{className:s("style__kqu4y20",{style__kqu4y25:o},l),children:[e&&t(aN,{htmlFor:c.id||e,disabled:n,required:c.required,error:c.error,className:s("style__kqu4y21",d),children:e}),t(av,{ref:i,disabled:n,fullWidth:o,id:c.id||e,...c}),r&&t(t_,{variant:"caption",className:s("style__kqu4y22",{style__kqu4y24:c.error,style__kqu4y23:n}),children:r})]}),ak=({maskProps:e,ref:a,...r})=>{let l=eo(e);return t(aw,{ref:$(e=>{l.current=e,"function"==typeof a?a(e):a&&(a.current=e)},[l,a]),...r})},ax=e=>{let{label:r,disabled:l=!1,selected:n,onSelect:s,selectMonth:o,selectYear:i,error:d,helperText:u,className:_,fullWidth:m,size:h,name:p,...g}=e,[y,b]=U(null),[f,v]=U(!1),[N,w]=U(new Date),[k,x]=U("");return G(()=>{n?(x(n.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})),w(n)):x("")},[n]),a(tj,{open:f,onOpenChange:v,children:[t(ak,{value:k,onChange:e=>{b(null),x(e.target.value);let[t,a,r]=e.target.value.split(".").map(Number);if(Number.isNaN(t)||Number.isNaN(a)||Number.isNaN(r)||t<1||t>31||a<1||a>12||r<1e3)return void b("Некорректная дата");let l=new Date(r,a-1,t);s?.(l),w(l)},label:r,disabled:l,className:_,fullWidth:m,size:h,name:p,endAdornment:t(tj.Trigger,{render:t(e6,{variant:"ghost",size:"icon",onClick:()=>{v(!0)},children:t(c,{})})}),maskProps:{mask:"__.__.____",replacement:{_:/\d/},showMask:!0},placeholder:"дд.мм.гггг",error:!!y||d,helperText:y||u}),t(tj.Content,{align:"end",alignOffset:-10,side:"bottom",children:t(tg,{month:N,onMonthChange:w,selected:n,onSelect:e=>{e?(s?.(e),w(e),x(e.toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}))):(x(""),s?.(void 0)),v(!1)},...g,mode:"single",captionLayout:o&&i?"dropdown":o?"dropdown-months":i?"dropdown-years":"label"})})]})},aC="descriptionRoot",az=B({leader:!1,separator:":",direction:"default"}),aS=({children:e,leader:a,separator:r,direction:l})=>t(az.Provider,{value:{leader:a,separator:r,direction:l},children:e});var aT={row:"row__1lociyw1",column:"column__1lociyw2"},aP={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},aD="style__sdcsnp2";let aI=e=>{let{descriptionContextProviderProps:a,direction:r}=(({direction:e="row",separator:t=":"})=>({descriptionContextProviderProps:{separator:"column"===e?"":t},direction:e}))(e),{justifyContent:l="start",component:n="dl",children:o,leader:i=!1,className:d}=e;return t(aS,{leader:i,direction:r,...a,children:t(n,{className:s("style__1lociyw0",aT[r],aP[l],aC,d),children:o})})};function aA({...e}){return t(ed.Root,{"data-slot":"dialog",...e})}function aL({...e}){return t(ed.Portal,{"data-slot":"dialog-portal",...e})}function aR({className:e,...a}){return t(ed.Backdrop,{"data-slot":"dialog-overlay",className:s("style__8bkmbe4",e),...a})}aI.Name=({children:r,color:l="secondary",...n})=>{let{leader:o,separator:i}=H(az);return a(e,{children:[t("dt",{className:s("style__1tsgk1i0",{style__1tsgk1i1:o}),children:a(t_,{...n,color:l,children:[r,!o&&i]})}),o&&t("div",{className:"style__1tsgk1i2"})]})},aI.Value=e=>{let{valueToRender:a,isDefaultValueRender:r,leader:l}=(({canCopy:e,children:t,stub:a="—"})=>{let{leader:r,direction:l}=H(az);return{valueToRender:t||a,isDefaultValueRender:!e||!t,leader:r,direction:l}})(e),{copyPosition:s="right",copyText:o,canCopy:i,children:d,stub:c,...u}=e;return r?t(t_,{className:n("style__sdcsnp1",{[aD]:l}),component:"dd",...u,children:a}):t("dd",{className:"style__sdcsnp0",children:t(tU,{className:n({[aD]:l}),copyPosition:s,copyText:o,...u,children:a})})},aA.Trigger=function({...e}){return t(ed.Trigger,{"data-slot":"dialog-trigger",...e})},aA.Portal=aL,aA.Close=function({...e}){return t(ed.Close,{"data-slot":"dialog-close",...e})},aA.Overlay=aR,aA.Content=function({className:e,children:r,showCloseButton:l=!0,...n}){return a(aL,{children:[t(aR,{}),a(ed.Popup,{"data-slot":"dialog-content",className:s("style__8bkmbe5",e),...n,children:[r,l&&a(ed.Close,{"data-slot":"dialog-close",render:t(e6,{variant:"ghost",size:"iconSm",className:"style__8bkmbe6"}),children:[t(D,{}),t("span",{className:"style__8bkmbe7",children:"Close"})]})]})]})},aA.Header=function({className:e,...a}){return t("div",{"data-slot":"dialog-header",className:s("style__8bkmbe8",e),...a})},aA.Footer=function({className:e,showCloseButton:r=!1,children:l,...n}){return a("div",{"data-slot":"dialog-footer",className:s("style__8bkmbe9",e),...n,children:[l,r&&t(ed.Close,{render:t(e6,{variant:"outline"}),children:"Close"})]})},aA.Title=function({className:e,...a}){return t(ed.Title,{"data-slot":"dialog-title",className:s("style__8bkmbea",e),...a})},aA.Description=function({className:e,...a}){return t(ed.Description,{"data-slot":"dialog-description",className:s("style__8bkmbeb",e),...a})};let aM=({children:e,trigger:r,className:l,title:n,description:o="",footer:i,closeButton:d,...c})=>a(eu,{...c,children:[r&&t(ec.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:r}),a(ec.Portal,{"data-slot":"drawer-portal",children:[t(ec.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),a(ec.Content,{"data-slot":"drawer-content",className:s("group/drawer-content","style__ccss503",l),children:[t("div",{className:"style__ccss504"}),a("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[t(ec.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:n}),t(ec.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:o})]}),e,a("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[i,d&&t(ec.Close,{"data-slot":"drawer-close",asChild:!0,children:d})]})]})]})]});var aj={default:"default__e4li7y3",icon:"icon__e4li7y4"};function aF({className:e,...a}){return t("div",{"data-slot":"empty",className:s("style__e4li7y0",e),...a})}aF.Header=function({className:e,...a}){return t("div",{"data-slot":"empty-header",className:s("style__e4li7y1",e),...a})},aF.Media=function({className:e,variant:a="default",...r}){return t("div",{"data-slot":"empty-media","data-variant":a,className:s("style__e4li7y2",aj[a],e),...r})},aF.Title=function({className:e,...a}){return t("div",{"data-slot":"empty-title",className:s("style__e4li7y5",e),...a})},aF.Description=function({className:e,...a}){return t("div",{"data-slot":"empty-description",className:s("style__e4li7y6",e),...a})},aF.Content=function({className:e,...a}){return t("div",{"data-slot":"empty-content",className:s("style__e4li7y7",e),...a})};var aO="style__a5l83v4",aq="style__a5l83v0";let aB=({images:r=[],autoPlay:l=!1,interval:n=5e3})=>{let[o,i]=U(0);return(G(()=>{if(!l)return;let e=setInterval(()=>{i(e=>e===r.length-1?0:e+1)},n);return()=>clearInterval(e)},[l,r.length,n]),0===r.length)?t("div",{className:aq,children:"Нет изображений для отображения"}):a("div",{className:aq,children:[t("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*o}%)`},children:r.map((e,a)=>t("div",{className:"style__a5l83v2",children:t("img",{src:e.src,alt:e.alt||`Slide ${a+1}`,className:"style__a5l83v3"})},e.src))}),r.length>1&&a(e,{children:[t("button",{type:"button",className:s(aO,"style__a5l83v5"),onClick:()=>{i(e=>0===e?r.length-1:e-1)},children:t(h,{size:24})}),t("button",{type:"button",className:s(aO,"style__a5l83v6"),onClick:()=>{i(e=>e===r.length-1?0:e+1)},children:t(p,{size:24})}),t("div",{className:"style__a5l83v7",children:r.map(({src:e},a)=>t("button",{type:"button",className:`style__a5l83v8 ${o===a?"active":""}`,onClick:()=>{i(a)}},e))})]})]})},aE=({separator:e="•",...a})=>t("div",{...a,children:t("span",{className:"style__te1pgr0",children:e})}),a$=({char:e,hasFakeCaret:r,isActive:l,...n})=>a("div",{className:s("style__rtks2g0",{style__rtks2g1:l}),...n,children:[e,r&&t("div",{className:"style__rtks2g2",children:t("div",{className:"style__rtks2g4"})})]});var aH="style__1iixe0l2";let aG=({className:r,containerClassName:l,disabled:n,...o})=>t(e_,{containerClassName:s("style__1iixe0l0",{style__1iixe0l3:n},l),className:s("style__1iixe0l1",r),render:({slots:r})=>r.length%2!=0?t("div",{className:aH,children:r.map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))}):a(e,{children:[t("div",{className:aH,children:r.slice(0,r.length/2).map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))}),t(aE,{}),t("div",{className:aH,children:r.slice(r.length/2).map((e,a)=>t(a$,{...e},`${a.toString()}-${e.char}`))})]}),...o});var aV=((eW={}).info="info",eW.success="success",eW.warning="warning",eW.error="error",eW);let aW={topRight:"top-right",topLeft:"top-left",bottomRight:"bottom-right",bottomLeft:"bottom-left",topCenter:"top-center",bottomCenter:"bottom-center"};class aY{service;constructor(e){this.service=e}message(e,t){return this.service.message(e,{description:t})}success=e=>this.service.success(e);error=e=>this.service.error(e);info=e=>this.service.info(e);warning=e=>this.service.warning(e);loading=e=>this.service.loading(e);dismiss=e=>this.service.dismiss(e);custom=e=>this.service(e);action=({title:e,buttonLabel:t,onClick:a})=>this.service(e,{action:{label:t,onClick:a}})}let aK=new aY(eh),aU=({position:e="bottomRight",...a})=>t(em,{duration:3e3,icons:{error:t(C,{size:20,color:ty.colors.error}),success:t(b,{size:20,color:ty.colors.success}),warning:t(P,{size:20,color:ty.colors.warning}),info:t(k,{size:20,color:ty.colors.info})},position:aW[e],...a});var aX="style__t5ji060",aJ={left:"left__t5ji063",center:"center__t5ji064",right:"right__t5ji065",justify:"justify__t5ji066"};let aQ=(e,t=!1)=>{let a=K(null),r=K(void 0),[l,n]=U(!1),s=$(([{target:e,contentRect:a}])=>{let r=e.scrollHeight>Math.round(a.height),l=e.scrollWidth>Math.round(a.width),s=t?l||r:l;n(e=>e===s?e:s)},[t]),o=$(t=>{a.current=t,((e,t)=>{if(e){if("function"==typeof e)return e(t);e.current=t}})(e,t)},[e]),i=$(e=>{let t=a.current;t&&s([{target:t,contentRect:t.getBoundingClientRect()}])},[s]);return W(()=>{let e=a.current;if(!e)return;i();let t=new ResizeObserver(e=>{clearTimeout(r.current),r.current=setTimeout(()=>{s(e)},500)});return t.observe(e),()=>{clearTimeout(r.current),t.unobserve(e),t.disconnect()}},[i,s]),{check:i,isOverflowed:l,ref:o}},aZ=e=>{let{label:r,hasVisibleLastSymbols:l,hasMultipleRows:n,overflowRef:o,tooltipContent:i,restTooltipProps:d,style:c,visibleLastSymbolsCount:u}=(({text:e,children:t,tooltipProps:a,visibleLastSymbolsCount:r=0,rowsCount:l=1,ref:n,style:s})=>{let o={...s,"--rows-count":l},i=e??("string"==typeof t?t:void 0),d=!!(i&&r>0),c=!d&&l>1,u=[i,l,r,d].join("|"),{check:_,isOverflowed:m,ref:h}=aQ(n,c),{content:p,text:g,...y}=a||{},b=m?p??g??i:void 0;return W(()=>{_(u)},[_,u]),{label:i,hasVisibleLastSymbols:d,hasMultipleRows:c,overflowRef:h,tooltipContent:b,restTooltipProps:y,style:o,visibleLastSymbolsCount:r}})(e),{align:_="left",className:m,text:h,children:p}=e;if(l&&r){let{firstPartLabel:l,secondPartLabel:n}={firstPartLabel:r.slice(0,-u),secondPartLabel:r.slice(-u)};return t(tK,{...d,arrow:!0,content:i,children:a("div",{className:s("style__t5ji062",aJ[_]),"data-slot":"overflow-typography",children:[t(t_,{...e,align:_,className:s(aX,m),component:"span","data-slot":"overflow-typography-start",display:"block",ref:o,style:c,children:l}),t(t_,{...e,align:_,className:m,component:"span","data-slot":"overflow-typography-end",style:c,children:n})]})})}return t(tK,{...d,arrow:!0,content:i,children:t(t_,{...e,align:_,className:s(aX,n&&"style__t5ji061",m),"data-slot":"overflow-typography",display:"block",ref:o,style:c,children:h??p})})},a1=({children:e,className:a})=>t("div",{className:s("style__adrl250",a),children:e});a1.Header=e=>{let{title:r,subtitle:l,breadcrumbs:n,actions:o,backButton:i,className:d}=e,{pinned:c,togglePinned:u}=tJ();return G(()=>{"string"==typeof r&&(document.title=r)},[r]),a("header",{className:s("page_header","style__nvcxbd1",d),children:[a("div",{className:"style__nvcxbd2",children:[t(tK,{text:c?"Развернуть":"Свернуть",children:t(e6,{variant:"ghost",size:"icon",onClick:u,children:c?t(T,{}):t(z,{})})}),i&&t(tK,{text:"Назад",children:t(e6,{...i,variant:"ghost",children:t(h,{})})})]}),n&&t("div",{className:"Breadcrumbs__nvcxbd0",children:n}),t("div",{className:"style__nvcxbd3",children:o}),"string"==typeof r?t(t_,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:r}):t("div",{className:"style__nvcxbd5",children:r}),l&&"string"==typeof l&&t(t_,{className:"style__nvcxbd6","aria-level":2,children:l}),l&&"string"!=typeof l&&t("div",{className:"style__nvcxbd7",children:l})]})},a1.Content=e=>{let{className:a,children:r,isFullHeight:l=!0}=e;return t("article",{className:s("page-content","style__1hr0uh00",{style__1hr0uh01:l},a),children:r})},a1.Footer=e=>{let{children:a,className:r}=e;return t("footer",{className:s("style__1bd8jnw0",r),children:a})},a1.Aside=({children:e,className:a})=>t("aside",{className:s("PageLayoutAside__1un4hm80",a,"page_aside"),children:e});let a0=(e,t)=>Array.from({length:t-e+1},(t,a)=>a+e);function a2(e){let{onPageChange:r,totalCount:l,siblingCount:n=1,currentPage:s,pageSize:o,size:i="icon"}=e,d=(({totalCount:e,pageSize:t,siblingCount:a=1,currentPage:r})=>Y(()=>{if(t<=0||e<=0)return[];let l=Math.ceil(e/t);if(a+5>=l)return a0(1,l);let n=Math.max(r-a,1),s=Math.min(r+a,l),o=n>2,i=s<l-2;return!o&&i?[...a0(1,3+2*a),null,l]:o&&!i?[1,null,...a0(l-(3+2*a)+1,l)]:o&&i?[1,null,...a0(n,s),null,l]:[]},[e,t,a,r]))({currentPage:s,totalCount:l,siblingCount:n,pageSize:o});if(0===s||d&&d.length<2)return null;let c=d.at(-1);return a("nav",{className:"style__p708oq0",children:[t(e6,{variant:"ghost",size:i,onClick:()=>{r(s-1)},disabled:1===s,children:t(h,{})}),d?.map((e,a)=>e?t(e6,{size:i,variant:e===s?"default":"outline",onClick:()=>r(+e),children:e},`${e}${a.toString()}`):t("span",{className:"style__p708oq1",children:t(N,{})})),t(e6,{variant:"ghost",size:i,onClick:()=>{r(s+1)},disabled:s===c,children:t(p,{})})]})}let a6=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],a5=["I квартал","II квартал","III квартал","IV квартал"],a9=e=>Math.ceil(e/3);function a4({year:e,onSelect:r,minDate:l,maxDate:n}){let s=Array.from({length:n.getFullYear()-l.getFullYear()+1},(e,t)=>l.getFullYear()+t);return a(rd,{onValueChange:e=>{r?.(Number(e))},value:e.toString(),children:[t(r_,{children:t(ru,{placeholder:e.toString()})}),t(rp,{children:s.map(e=>t(ry,{value:e.toString(),children:t(t_,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let a8=e=>{let{label:r,disabled:l=!1,value:n,onSelect:s,type:o="month",placeholder:i="month"===o?"Выберите месяц":"Выберите квартал",error:d,helperText:u,max:_=new Date(2050,0,1),min:m=new Date(2e3,0,1),className:h,size:p,fullWidth:g,name:y}=e,b=new Date,[f,v]=U(!1),[N,w]=U(b.getFullYear()),k=e=>{s?.(e),v(!1)},x="month"===o?n?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):n?`${a5[a9(n.getMonth())]} ${n.getFullYear()}`:"";return G(()=>{n&&w(n.getFullYear())},[n]),a(tj,{open:f,onOpenChange:v,children:[t(aw,{label:r,value:x,disabled:l,size:p,fullWidth:g,name:y,endAdornment:t(tj.Trigger,{render:t(e6,{disabled:l,variant:"ghost",size:"icon",children:t(c,{})})}),placeholder:i,error:d,helperText:u,className:h}),t(tj.Content,{align:"end",alignOffset:-10,side:"bottom",children:a("div",{className:"style__1izfmw30",children:[t(a4,{year:N,onSelect:w,minDate:m,maxDate:_}),"month"===o?t("div",{className:"style__1izfmw31",children:a6.map((e,a)=>{let r=new Date(N,a,n?.getDate()||1);return t(e6,{variant:n?.getMonth()===a&&n.getFullYear()===r.getFullYear()?"default":"ghost",disabled:r<m||r>_,onClick:()=>k(r),children:e},e)})}):t("div",{className:"style__1izfmw32",children:a5.map((e,a)=>{let r=new Date(N,3*a,1);return t(e6,{variant:n&&[a9(n.getMonth())===a,n.getFullYear()===r.getFullYear()].every(Boolean)?"default":"ghost",disabled:r<m||r>_,onClick:()=>k(r),children:e},e)})})]})})]})},a3=({className:e,...a})=>t(ey,{"data-slot":"radio-group",className:n("RadioGroup__ia95d10",e),...a}),a7=({className:e,label:r,...l})=>a("div",{className:"style__ia95d11",children:[t(eg,{"data-slot":"radio-group-item",id:l.id||l.value,className:s("style__ia95d12",e),...l,children:t(ep,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:t(f,{className:"style__ia95d14"})})}),t(aN,{htmlFor:l.id||l.value,"data-slot":"radio-group-label",children:r})]});function re({className:e,defaultValue:r,value:l,min:n=0,max:o=100,onValueCommit:i,onValueCommitted:d,...c}){let u=eV.useMemo(()=>Array.isArray(l)?l:Array.isArray(r)?r:[n,o],[l,r,n,o]),_=eV.useMemo(()=>Array.from({length:u.length},(e,t)=>({key:`slider-thumb-${t}`,index:t})),[u.length]);return t(eb.Root,{"data-slot":"slider",className:s("style__h9oy580",e),defaultValue:r,value:l,min:n,max:o,thumbAlignment:"edge",onValueCommitted:(e,t)=>{d?.(e,t),i?.(e)},...c,children:a(eb.Control,{className:"style__h9oy581",children:[t(eb.Track,{"data-slot":"slider-track",className:"style__h9oy582",children:t(eb.Indicator,{"data-slot":"slider-range",className:"style__h9oy583"})}),_.map(e=>t(eb.Thumb,{"data-slot":"slider-thumb",index:e.index,className:"style__h9oy584"},e.key))]})})}var rt="style__1pnwkko6",ra={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},rr="style__1pnwkko5";function rl({min:e,max:r,onChange:l,minValue:n,maxValue:o,width:i=150,unit:d="",size:c="md",className:u,isActive:_,minInputRef:m,maxInputRef:h}){let{onMinValueChange:p,onMaxValueChange:g,minVal:y,maxVal:b,onKeyDown:f,onValueChange:v,onConfirm:N,minId:w,maxId:k}=(({min:e,max:t,maxValue:a,minValue:r,onChange:l})=>{let n=V(),s=V(),[o,i]=U(e),[d,c]=U(t);return G(()=>{i(r||e),c(a||t)},[r,a,e,t]),{maxId:s,minId:n,minVal:o,maxVal:d,onValueChange:e=>{e[0]===e[1]?l(e[0],e[1]):(i(e[0]),c(e[1]))},onMinValueChange:e=>{let{value:t}=e.target;Number.isNaN(+t)||i(+t)},onMaxValueChange:e=>{let{value:t}=e.target;Number.isNaN(t)||c(+t)},onKeyDown:a=>{"Enter"===a.key&&l(o>=e&&o<=t?o:e,d>=e&&d<=t?d:t)},onConfirm:e=>{l(e[0],e[1])}}})({min:e,max:r,maxValue:o,minValue:n,onChange:l});return a("div",{className:s("style__1pnwkko0",ra[c],{style__1pnwkko1:_},u),style:{width:i},children:[t(t_,{className:rr,color:"disabled",variant:"caption",children:"от"}),t("input",{className:rt,type:"text",id:w,value:y,onChange:p,onKeyDown:f,ref:m}),t(t_,{className:rr,color:"disabled",variant:"caption",children:"до"}),t("input",{className:rt,type:"text",id:k,value:b,onChange:g,onKeyDown:f,ref:h}),t(t_,{className:rr,color:"disabled",variant:"caption",children:d}),t("div",{className:"style__1pnwkko7",children:t(re,{min:e,max:r,value:[Number(y),Number(b)],onValueChange:v,onValueCommit:N})})]})}function rn({onClick:e,variant:a="outline",...r}){let[l,n]=U(!1);return G(()=>{let e=()=>{window.scrollY>400?n(!0):n(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),t(e6,{type:"button",variant:a,className:s("style__1ou2vjc0",{style__1ou2vjc1:l}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),...r,children:t(y,{})})}var rs="style__5ilg7od",ro="style__5ilg7o6",ri={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"};let rd=eS,rc=ev,ru=eA,r_=({className:e,children:r,size:l="md",...n})=>a(eI,{className:s("style__5ilg7o2",ri[l],e),...n,children:[r,t(eN,{asChild:!0,children:t(m,{className:"style__5ilg7oe"})})]}),rm=({className:e,...a})=>t(eP,{className:s(ro,e),...a,children:t(y,{className:rs})}),rh=({className:e,...a})=>t(eT,{className:s(ro,e),...a,children:t(m,{className:rs})}),rp=({className:e,children:r,position:l="popper",...n})=>t(ez,{children:a(ef,{className:s("style__5ilg7o7",e),position:l,...n,children:[t(rm,{}),t(eL,{className:"style__5ilg7o8",children:r}),t(rh,{})]})}),rg=({className:e,...a})=>t(eC,{className:`style__5ilg7o9 ${e||""}`,...a}),ry=({className:e,children:r,...l})=>a(ew,{className:`style__5ilg7oa ${e||""}`,...l,children:[t("span",{className:"style__5ilg7ob",children:t(ek,{children:t(u,{className:rs})})}),t(ex,{children:r})]}),rb=({className:e,...a})=>t(eD,{className:`style__5ilg7oc ${e||""}`,...a});function rf({...e}){return t(ed.Root,{"data-slot":"sheet",...e})}function rv({...e}){return t(ed.Portal,{"data-slot":"sheet-portal",...e})}function rN({className:e,...a}){return t(ed.Backdrop,{"data-slot":"sheet-overlay",className:s("style__5dkj2fa",e),...a})}rf.Trigger=function({...e}){return t(ed.Trigger,{"data-slot":"sheet-trigger",...e})},rf.Close=function({...e}){return t(ed.Close,{"data-slot":"sheet-close",...e})},rf.Portal=rv,rf.Overlay=rN,rf.Content=function({className:e,children:r,side:l="right",showCloseButton:n=!0,...o}){return a(rv,{children:[t(rN,{}),a(ed.Popup,{"data-slot":"sheet-content","data-side":l,className:s("style__5dkj2fb",e),...o,children:[r,n&&a(ed.Close,{"data-slot":"sheet-close",render:t(e6,{variant:"ghost",className:"style__5dkj2fc",size:"iconSm"}),children:[t(D,{}),t("span",{className:"style__5dkj2fd",children:"Close"})]})]})]})},rf.Header=function({className:e,...a}){return t("div",{"data-slot":"sheet-header",className:s("style__5dkj2fe",e),...a})},rf.Footer=function({className:e,...a}){return t("div",{"data-slot":"sheet-footer",className:s("style__5dkj2ff",e),...a})},rf.Title=function({className:e,...a}){return t(ed.Title,{"data-slot":"sheet-title",className:s("style__5dkj2fg",e),...a})},rf.Description=function({className:e,...a}){return t(ed.Description,{"data-slot":"sheet-description",className:s("style__5dkj2fh",e),...a})};var rw={default:"default__1xiua9nr",sm:"sm__1xiua9ns",lg:"lg__1xiua9nt"},rk={default:"default__1xiua9np",outline:"outline__1xiua9nq"},rx={sm:"sm__1xiua9n13",md:"md__1xiua9n14"},rC="style__1xiua9nx",rz="style__1xiua9n9";let rS=eV.createContext(null);function rT(){let e=eV.useContext(rS);if(!e)throw Error("useSidebar must be used within a Sidebar.Provider.");return e}let rP=Object.assign(function({side:e="left",variant:r="sidebar",collapsible:l="offcanvas",className:n,style:o,children:i,...d}){let{isMobile:c,state:u,openMobile:_,setOpenMobile:m}=rT();return"none"===l?t("div",{"data-slot":"sidebar",style:o,className:s("style__1xiua9n5",n),...d,children:i}):c?t(rf,{open:_,onOpenChange:m,children:a(rf.Content,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",side:e,showCloseButton:!1,style:{"--sidebar-width":"18rem",...o},className:s("style__1xiua9n7",n),...d,children:[a(rf.Header,{className:rz,children:[t(rf.Title,{children:"Sidebar"}),t(rf.Description,{children:"Displays the mobile sidebar."})]}),t("div",{className:"style__1xiua9n8",children:i})]})}):a("div",{"data-state":u,"data-collapsible":"collapsed"===u?l:void 0,"data-variant":r,"data-side":e,"data-slot":"sidebar",className:"style__1xiua9n2",children:[t("div",{"data-slot":"sidebar-gap",className:"style__1xiua9n3"}),t("div",{"data-slot":"sidebar-container",className:s("style__1xiua9n4",n),style:o,...d,children:t("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"style__1xiua9n6",children:i})})]})},{Provider:function({defaultOpen:e=!0,open:a,onOpenChange:r,className:l,style:n,children:o,...i}){let d=function(){let[e,t]=eV.useState(void 0);return eV.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),a=()=>{t(window.innerWidth<768)};return e.addEventListener("change",a),t(window.innerWidth<768),()=>e.removeEventListener("change",a)},[]),!!e}(),[c,u]=eV.useState(!1),[_,m]=eV.useState(e),h=a??_,p=eV.useCallback(e=>{let t="function"==typeof e?e(h):e;r?r(t):m(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[r,h]),g=eV.useCallback(()=>{d?u(e=>!e):p(e=>!e)},[d,p]);eV.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);let y=h?"expanded":"collapsed",b=eV.useMemo(()=>({state:y,open:h,setOpen:p,isMobile:d,openMobile:c,setOpenMobile:u,toggleSidebar:g}),[y,h,p,d,c,g]);return t(rS.Provider,{value:b,children:t("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...n},className:s("style__1xiua9n1",l),...i,children:o})})},Trigger:function({className:r,onClick:l,children:n,...o}){let{toggleSidebar:i}=rT();return t(e6,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:s("style__1xiua9na",r),onClick:e=>{l?.(e),i()},...o,children:n??a(e,{children:[t(S,{}),t("span",{className:rz,children:"Toggle Sidebar"})]})})},Rail:function({className:e,...a}){let{toggleSidebar:r}=rT();return t("button",{type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,title:"Toggle Sidebar",className:s("style__1xiua9nb",e),onClick:r,...a})},Inset:function({className:e,...a}){return t("main",{"data-slot":"sidebar-inset",className:s("style__1xiua9nc",e),...a})},Input:function({className:e,...a}){return t(av,{"data-slot":"sidebar-input","data-sidebar":"input",className:s("style__1xiua9nd",e),...a})},Header:function({className:e,...a}){return t("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s("style__1xiua9ne",e),...a})},Footer:function({className:e,...a}){return t("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s("style__1xiua9nf",e),...a})},Separator:function({className:e,orientation:a="horizontal",...r}){return t(j,{"data-slot":"sidebar-separator","data-sidebar":"separator",orientation:a,className:s("style__1xiua9ng",e),...r})},Content:function({className:e,...a}){return t("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s("style__1xiua9nh",e),...a})},Group:function({className:e,...a}){return t("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s("style__1xiua9ni",e),...a})},GroupLabel:function({className:e,render:t,...a}){return M({defaultTagName:"div",render:t,props:R({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:s("style__1xiua9nj",e)},a)})},GroupAction:function({className:e,render:t,...a}){return M({defaultTagName:"button",render:t,props:R({type:"button","data-slot":"sidebar-group-action","data-sidebar":"group-action",className:s("style__1xiua9nk",e)},a)})},GroupContent:function({className:e,...a}){return t("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s("style__1xiua9nl",e),...a})},Menu:function({className:e,...a}){return t("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s("style__1xiua9nm",e),...a})},MenuItem:function({className:e,...a}){return t("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s("style__1xiua9nn",e),...a})},MenuButton:function({isActive:e=!1,variant:a="default",size:r="default",tooltip:l,className:n,render:o,...i}){let{isMobile:d,state:c}=rT(),u=M({defaultTagName:"button",render:o,props:R({type:"button","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":e?"true":"false",className:s("style__1xiua9no",rk[a],rw[r],n)},i)});return!l||"collapsed"!==c||d?u:t(tK,{side:"right",...function(e){if("string"==typeof e)return{text:e};let{children:t,...a}=e;return{content:t,...a}}(l),children:u})},MenuAction:function({className:e,showOnHover:t=!1,render:a,...r}){return M({defaultTagName:"button",render:a,props:R({type:"button","data-slot":"sidebar-menu-action","data-sidebar":"menu-action","data-show-on-hover":t?"true":void 0,className:s("style__1xiua9nu",e)},r)})},MenuBadge:function({className:e,...a}){return t("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:s("style__1xiua9nv",e),...a})},MenuSkeleton:function({className:e,showIcon:r=!1,...l}){let n=eV.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return a("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:s("style__1xiua9nw",e),...l,children:[r&&t("div",{className:s(rC,"style__1xiua9ny"),"data-sidebar":"menu-skeleton-icon"}),t("div",{className:s(rC,"style__1xiua9nz"),"data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})},MenuSub:function({className:e,...a}){return t("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:s("style__1xiua9n10",e),...a})},MenuSubItem:function({className:e,...a}){return t("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:s("style__1xiua9n11",e),...a})},MenuSubButton:function({size:e="md",isActive:t=!1,className:a,render:r,...l}){return M({defaultTagName:"a",render:r,props:R({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":e,"data-active":t?"true":"false",className:s("style__1xiua9n12",rx[e],a)},l)})}});var rD={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let rI=e=>t(ej,{...e});rI.Content=({className:e,...a})=>t(eR,{className:s("style__hworoa5",e),...a}),rI.List=({className:e,...a})=>t(eM,{className:s("style__hworoa0",e),...a}),rI.Trigger=({className:e,size:a="md",...r})=>t(eF,{className:s("style__hworoa1",rD[a],e),...r});let rA=({value:e,onChange:r,options:l,size:n,className:o,label:i,multiple:d})=>{let c=!0===d;return a("div",{className:s("style__10hvn8a0",o),children:[i&&t(aN,{className:"style__10hvn8a3",children:i}),t("div",{className:"style__10hvn8a1",children:l.map(a=>{var l;return t(tK,{arrow:!0,text:a.title,children:t(e6,{size:n,className:"style__10hvn8a2",disabled:a.disabled,onClick:()=>{var t;return t=a.value,void(c?e.includes(t)?r(e.filter(e=>e!==t)):r([...e,t]):r(t))},startAdornment:a.startAdornment,endAdornment:a.endAdornment,variant:(l=a.value,c?e.includes(l):e===l)?"default":"outline",children:a.label},a.value)},a.value)})})]})},rL=({form:e,children:a,...r})=>t(eq,{...e,children:t("form",{noValidate:!0,...r,children:a})});function rR({name:e,control:a,...r}){return t(eO,{control:a,name:e,render:({field:e,fieldState:a})=>t(ak,{...r,...e,error:!!a.error,helperText:a.error?.message})})}let rM=({mode:e="onBlur",...t}={})=>e$({...t,mode:e}),rj=({children:e,isLoading:a,...r})=>{let{formState:l}=eH();return t(e6,{type:"submit",isLoading:a||l.isSubmitting,...r,children:e})};function rF({name:e,control:a,gridArea:r,...l}){return t(eO,{control:a,name:e,render:({field:e,fieldState:a})=>t(aw,{...l,...e,style:{gridArea:r},value:e.value||"",error:!!a.error,helperText:a.error?.message})})}var rO=":",rq="—",rB="notify";export{eU as Accordion,e3 as AlertDialog,e7 as Avatar,tt as Badge,ta as Breadcrumb,tr as ButtonGroup,e6 as Button,e9 as buttonSizes,e5 as buttonVariants,tg as Calendar,tb as Card,tP as Carousel,tD as Checkbox,tL as CircularProgress,tR as Collapsible,tF as ConfirmAction,tW as ContentState,eO as FormController,tU as CopyTypography,aC as DESCRIPTION_ROOT_CLASSNAME,tZ as DashboardLayout,t3 as DataGrid,as as DataGridActionCell,ai as DataGridSortHeader,ap as DataList,ax as DatePicker,aI as Description,aA as Dialog,aM as Drawer,at as DropdownMenu,aF as Empty,rL as Form,rR as FormMaskField,eq as FormProvider,rj as FormSubmitButton,rF as FormTextField,aB as ImageCarousel,tq as Image,av as Input,aG as InputOTP,aN as Label,ak as MaskField,aW as NOTIFICATION_POSITIONS,aY as Notification,aU as NotificationContainer,aZ as OverflowTypography,a1 as PageLayout,a2 as Pagination,a8 as PeriodPicker,tV as Placeholder,tj as Popover,a7 as RadioGroupItem,a3 as RadioGroup,rl as RangeInput,rn as ScrollTopButton,rd as Select,rp as SelectContent,rc as SelectGroup,ry as SelectItem,rg as SelectLabel,rh as SelectScrollDownButton,rm as SelectScrollUpButton,rb as SelectSeparator,r_ as SelectTrigger,ru as SelectValue,rf as Sheet,rP as Sidebar,re as Slider,rI as Tabs,aw as TextField,rA as ToggleGroup,tK as Tooltip,t_ as Typography,tl as alignments,te as badgeVariants,tn as colors,aV as NotificationVariantTypes,tM as createHandle,to as displays,aK as notification,rO as DEFAULT_SEPARATOR,rq as DEFAULT_SYMBOL,rB as NOTIFY_CLASSNAME,ty as theme,ti as transforms,eB as useFormController,tJ as useDashboard,eE as useFormFieldArray,eH as useFormContext,rM as useForm,aQ as useOverflowed,rT as useSidebar,eG as useFormWatch,td as variants,tc as weights};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Empty } from '../components/index.ts';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof Empty;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare function Default(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function IconMedia(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WithLink(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Empty.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Empty.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Empty.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,EAAS,MAAM,cAAc,CAAC;;;;;;;;;AAEpD,wBAO+B;AAE/B,wBAAgB,OAAO,4CAmBtB;AAED,wBAAgB,SAAS,4CAuBxB;AAED,wBAAgB,QAAQ,4CAiBvB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (({ side, variant, collapsible, className, style, children, ...props }: import("../components/index.ts").SidebarProps.Root) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
+
Provider: ({ defaultOpen, open: openProp, onOpenChange, className, style, children, ...props }: import("../components/index.ts").SidebarProps.Provider) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Trigger: ({ className, onClick, children, ...props }: import("../components/index.ts").SidebarProps.Trigger) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Rail: ({ className, ...props }: import("../components/index.ts").SidebarProps.Rail) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Inset: ({ className, ...props }: import("../components/index.ts").SidebarProps.Inset) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Input: ({ className, ...props }: import("../components/index.ts").SidebarProps.Input) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Header: ({ className, ...props }: import("../components/index.ts").SidebarProps.Header) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Footer: ({ className, ...props }: import("../components/index.ts").SidebarProps.Footer) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Separator: ({ className, orientation, ...props }: import("../components/index.ts").SidebarProps.Separator) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Content: ({ className, ...props }: import("../components/index.ts").SidebarProps.Content) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Group: ({ className, ...props }: import("../components/index.ts").SidebarProps.Group) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
GroupLabel: ({ className, render, ...props }: import("../components/index.ts").SidebarProps.GroupLabel) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
GroupAction: ({ className, render, ...props }: import("../components/index.ts").SidebarProps.GroupAction) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
17
|
+
GroupContent: ({ className, ...props }: import("../components/index.ts").SidebarProps.GroupContent) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
Menu: ({ className, ...props }: import("../components/index.ts").SidebarProps.Menu) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
MenuItem: ({ className, ...props }: import("../components/index.ts").SidebarProps.MenuItem) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
MenuButton: ({ isActive, variant, size, tooltip, className, render, ...props }: import("../components/index.ts").SidebarProps.MenuButton) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
MenuAction: ({ className, showOnHover, render, ...props }: import("../components/index.ts").SidebarProps.MenuAction) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
22
|
+
MenuBadge: ({ className, ...props }: import("../components/index.ts").SidebarProps.MenuBadge) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
MenuSkeleton: ({ className, showIcon, ...props }: import("../components/index.ts").SidebarProps.MenuSkeleton) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
MenuSub: ({ className, ...props }: import("../components/index.ts").SidebarProps.MenuSub) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
MenuSubItem: ({ className, ...props }: import("../components/index.ts").SidebarProps.MenuSubItem) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
MenuSubButton: ({ size, isActive, className, render, ...props }: import("../components/index.ts").SidebarProps.MenuSubButton) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
27
|
+
};
|
|
28
|
+
parameters: {
|
|
29
|
+
layout: string;
|
|
30
|
+
};
|
|
31
|
+
tags: string[];
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
34
|
+
export declare function Default(): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare function CollapsedIcon(): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function FloatingRight(): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function ShadcnDemo(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=Sidebar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Sidebar.stories.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAa/B,wBAOiC;AA0NjC,wBAAgB,OAAO,4CAEtB;AAED,wBAAgB,aAAa,4CAE5B;AAED,wBAAgB,aAAa,4CAE5B;AA6ZD,wBAAgB,UAAU,4CAEzB"}
|
|
@@ -3,4 +3,8 @@ import { Slider } from '../components/index.ts';
|
|
|
3
3
|
declare const _default: Meta<typeof Slider>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare function SliderDemo(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Range(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Vertical(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Disabled(): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
//# sourceMappingURL=Slider.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;wBASjC,IAAI,CAAC,OAAO,MAAM,CAAC;AAPxB,wBAOyB;AAEzB,wBAAgB,UAAU,4CASzB"}
|
|
1
|
+
{"version":3,"file":"Slider.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Slider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;wBASjC,IAAI,CAAC,OAAO,MAAM,CAAC;AAPxB,wBAOyB;AAEzB,wBAAgB,UAAU,4CASzB;AAED,wBAAgB,KAAK,4CASpB;AAED,wBAAgB,QAAQ,4CASvB;AAED,wBAAgB,QAAQ,4CA2BvB;AAED,wBAAgB,QAAQ,4CAUvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const appHeader: string;
|
|
2
|
+
export declare const headerInner: string;
|
|
3
|
+
export declare const triggerNudge: string;
|
|
4
|
+
export declare const workspaceIcon: string;
|
|
5
|
+
export declare const workspaceIconSmall: string;
|
|
6
|
+
export declare const textStack: string;
|
|
7
|
+
export declare const titleText: string;
|
|
8
|
+
export declare const subtitleText: string;
|
|
9
|
+
export declare const chevronAuto: string;
|
|
10
|
+
export declare const dropdownWide: string;
|
|
11
|
+
export declare const dropdownLabelMuted: string;
|
|
12
|
+
export declare const dropdownItemPadded: string;
|
|
13
|
+
export declare const dropdownUserLabel: string;
|
|
14
|
+
export declare const dropdownUserRow: string;
|
|
15
|
+
export declare const collapsibleItem: string;
|
|
16
|
+
export declare const collapsibleChevron: string;
|
|
17
|
+
export declare const projectsGroup: string;
|
|
18
|
+
export declare const mutedIcon: string;
|
|
19
|
+
export declare const mutedMenuButton: string;
|
|
20
|
+
export declare const srOnly: string;
|
|
21
|
+
export declare const avatarSquare: string;
|
|
22
|
+
export declare const insetBody: string;
|
|
23
|
+
export declare const insetPanel: string;
|
|
24
|
+
//# sourceMappingURL=sidebarDemo.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebarDemo.css.d.ts","sourceRoot":"","sources":["../../src/stories/sidebarDemo.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAQpB,CAAC;AASH,eAAO,MAAM,WAAW,QAKtB,CAAC;AAEH,eAAO,MAAM,YAAY,QAEvB,CAAC;AAEH,eAAO,MAAM,aAAa,QAUxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAS7B,CAAC;AAEH,eAAO,MAAM,SAAS,QAMpB,CAAC;AAEH,eAAO,MAAM,SAAS,QAKpB,CAAC;AAEH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,YAAY,QAGvB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAG7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAG5B,CAAC;AAEH,eAAO,MAAM,eAAe,QAO1B,CAAC;AAEH,eAAO,MAAM,eAAe,QAAY,CAAC;AAEzC,eAAO,MAAM,kBAAkB,QAG7B,CAAC;AAMH,eAAO,MAAM,aAAa,QAAY,CAAC;AAMvC,eAAO,MAAM,SAAS,QAEpB,CAAC;AAEH,eAAO,MAAM,eAAe,QAE1B,CAAC;AAEH,eAAO,MAAM,MAAM,QAUjB,CAAC;AAEH,eAAO,MAAM,YAAY,QAEvB,CAAC;AAEH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,UAAU,QAKrB,CAAC"}
|