@max-ts/kit 0.11.1 → 0.11.2

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.
Files changed (2) hide show
  1. package/lib/index.mjs +1 -1
  2. package/package.json +1 -1
package/lib/index.mjs CHANGED
@@ -1 +1 @@
1
- import{Fragment as e,jsx as l,jsxs as r}from"react/jsx-runtime";import{Slot as t}from"@radix-ui/react-slot";import a,{clsx as s}from"clsx";import{Root as n}from"@radix-ui/react-label";import{ArrowDownNarrowWide as i,ArrowDownUp as o,ArrowDownWideNarrow as c,Calendar1 as d,Check as _,ChevronDown as m,ChevronLeft as h,ChevronRight as u,ChevronUp as y,Circle as p,CircleIcon as g,Copy as v,Ellipsis as b,EllipsisVertical as f,PanelLeftClose as N,PanelLeftOpen as w,X as k}from"lucide-react";import x,{createContext as C,createElement as z,useCallback as S,useContext as D,useEffect as I,useId as T,useLayoutEffect as P,useMemo as F,useRef as M,useState as R}from"react";import L from"embla-carousel-react";import{Indicator as q,Root as A}from"@radix-ui/react-checkbox";import{Content as O,Popover as $,PopoverTrigger as B,Portal as j}from"@radix-ui/react-popover";import{Arrow as E,Content as H,Portal as V,Provider as W,Root as G,Trigger as Y}from"@radix-ui/react-tooltip";import{CheckboxItem as K,Content as J,Group as U,Item as X,ItemIndicator as Q,Label as Z,Portal as ee,RadioGroup as el,RadioItem as er,Root as et,Separator as ea,Sub as es,SubContent as en,SubTrigger as ei,Trigger as eo}from"@radix-ui/react-dropdown-menu";import{Virtuoso as ec}from"react-virtuoso";import{Close as ed,Content as e_,Description as em,Overlay as eh,Portal as eu,Root as ey,Title as ep,Trigger as eg}from"@radix-ui/react-dialog";import{Drawer as ev,Root as eb}from"vaul";import{OTPInput as ef}from"input-otp";import{useMask as eN}from"@react-input/mask";import{Indicator as ew,Item as ek,Root as ex}from"@radix-ui/react-radio-group";import{Range as eC,Root as ez,Thumb as eS,Track as eD}from"@radix-ui/react-slider";import{Content as eI,Group as eT,Icon as eP,Item as eF,ItemIndicator as eM,ItemText as eR,Label as eL,Portal as eq,Root as eA,ScrollDownButton as eO,ScrollUpButton as e$,Separator as eB,Trigger as ej,Value as eE,Viewport as eH}from"@radix-ui/react-select";import{Content as eV,List as eW,Tabs as eG,Trigger as eY}from"@radix-ui/react-tabs";import{Controller as eK,FormProvider as eJ,useController as eU,useFieldArray as eX,useForm as eQ,useFormContext as eZ,useWatch as e1}from"react-hook-form";import{createTheme as e0,globalKeyframes as e2,globalStyle as e6,keyframes as e5,style as e8,styleVariants as e3}from"@vanilla-extract/css";var e4={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function e9({className:e,variant:r="default",asChild:a=!1,...n}){return l(a?t:"span",{"data-slot":"badge",className:s("style__1af895x0",e4[r],e),...n})}var e7="style__1ersxw10",le={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},ll={default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"};let lr=({className:e,variant:r="default",size:a="md",asChild:n=!1,isLoading:i=!1,fullWidth:o,...c})=>l(n?t:"button",{className:s(e7,ll[r],le[a],{style__1ersxw13:o,style__1ersxw12:i},e),...c}),lt=({className:e,disabled:r,...t})=>l(n,{className:s("style__c31e140",{style__c31e141:r,style__c31e142:t.error},e),...t}),la=({value:e,onChange:t,options:a,size:n,className:i,label:o,multiple:c})=>{let d=!0===c;return r("div",{className:s("style__1iqvz720",i),children:[o&&l(lt,{className:"style__1iqvz723",children:o}),l("div",{className:"style__1iqvz721",children:a.map(r=>{var a;return l(lr,{size:n,className:"style__1iqvz722",disabled:r.disabled,onClick:()=>{var l;return l=r.value,void(d?e.includes(l)?t(e.filter(e=>e!==l)):t([...e,l]):t(l))},variant:(a=r.value,d?e.includes(a):e===a)?"default":"outline",children:r.label},r.value)})})]})},ls=({className:e,...r})=>l("div",{className:s("style__oyalw00",e),...r}),ln=({className:e,...r})=>l("div",{className:s("style__oyalw01",e),...r}),li=({className:e,...r})=>l("h3",{className:s("style__oyalw02",e),...r}),lo=({className:e,...r})=>l("p",{className:s("style__oyalw03",e),...r}),lc=({className:e,...r})=>l("div",{className:s("style__oyalw04",e),...r}),ld=({className:e,...r})=>l("div",{className:s("style__oyalw05",e),...r}),l_=x.createContext(null);function lm(){let e=x.useContext(l_);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var lh={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function lu({className:t,...a}){let{orientation:n="horizontal",canScrollNext:i,scrollNext:o,canScrollPrev:c,scrollPrev:d}=lm();return r(e,{children:[l("button",{className:s("style__2d6ocq1 style__2d6ocq0",lh[n]),type:"button","data-slot":"carousel-next",disabled:!i,onClick:o,...a,children:"horizontal"===n?l(u,{}):l(m,{})}),l("button",{type:"button",className:s("style__2d6ocq2 style__2d6ocq0",lh[n]),"data-slot":"carousel-previous",disabled:!c,onClick:d,...a,children:"horizontal"===n?l(h,{}):l(y,{})})]})}var ly={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function lp(e){let{carouselRef:r,orientation:t="horizontal"}=lm();return l("div",{className:"style__i1lems0",ref:r,"data-slot":"carousel-content",children:l("div",{className:ly[t],...e})})}var lg={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"},lv={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"};let lb=({api:e,orientation:r})=>{let{selectedIndex:t,scrollSnaps:a,onDotButtonClick:n}=(e=>{let[l,r]=R(0),[t,a]=R([]),s=S(l=>{e&&e.scrollTo(l)},[e]),n=S(e=>{e&&a(e.scrollSnapList())},[]),i=S(e=>{e&&r(e.selectedScrollSnap())},[]);return I(()=>{e&&(n(e),i(e),e.on("reInit",n).on("reInit",i).on("select",i))},[e,n,i]),{selectedIndex:l,scrollSnaps:t,onDotButtonClick:s}})(e);return l("div",{className:lg[r],children:a.map((e,a)=>l("button",{type:"button",className:s(lv[r],{style__e2zpp66:a===t}),onClick:()=>n(a)},e))})};function lf(e){return l("div",{className:"style__1gif6yr0",role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function lN({width:e="100%",height:t="100%",...a}){let{canScrollNext:n,canScrollPrev:i,scrollNext:o,scrollPrev:c,api:d,opts:_,orientation:m,carouselRef:h,handleKeyDown:u,data:y,isShowButtons:p,isShowDots:g}=(({orientation:e="horizontal",opts:l,setApi:r,plugins:t,data:a,showDots:s,showArrows:n})=>{let[i,o]=L({...l,axis:"horizontal"===e?"x":"y"},t),[c,d]=R(!1),[_,m]=R(!1),h=!!(n&&a.length>1),u=!!(s&&a.length>1),y=S(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()))},[]),p=S(e=>{o&&o.scrollTo(e)},[o]),g=S(()=>{o?.scrollPrev()},[o]),v=S(()=>{o?.scrollNext()},[o]),b=S(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[g,v]);return I(()=>{o&&r&&r(o)},[o,r]),I(()=>{if(o)return y(o),o.on("reInit",y),o.on("select",y),()=>{o?.off("select",y)}},[o,y]),{carouselRef:i,api:o,scrollPrev:g,scrollNext:v,canScrollPrev:c,canScrollNext:_,handleKeyDown:b,opts:l,orientation:e,onDotButtonClick:p,isShowButtons:h,isShowDots:u,data:a}})(a);return l(l_.Provider,{value:{carouselRef:h,api:d,opts:_,orientation:m||(_?.axis==="y"?"vertical":"horizontal"),scrollPrev:c,scrollNext:o,canScrollPrev:i,canScrollNext:n},children:r("div",{onKeyDownCapture:u,className:s("Carousel__1jbydv50",a.className),"data-slot":"carousel",style:{width:e,height:t},children:[l(lp,{style:{width:e,height:t},children:y.map(e=>l(lf,{children:a.renderItem(e)},`${e[a.keyId]}`))}),p&&l(lu,{}),g&&l(lb,{api:d,orientation:m})]})})}let lw=({className:e,...r})=>l(A,{className:s("style__b7yo4k0",e),...r,children:l(q,{className:"style__b7yo4k1",children:l(_,{className:"style__b7yo4k2"})})});var lk={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},lx={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let lC=({size:e=30,thickness:t=2.6,color:s="primary",value:n=0,variant:i="indeterminate",className:o})=>{let c=(e-t)/2,d=2*Math.PI*c;return l("div",{className:a("style__m6b9n22",lk[i],lx[s],o),style:{width:e,height:e},children:r("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[l("title",{children:"Progress bar"}),l("circle",{className:a("style__m6b9n24","determinate"===i&&lk.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:t,strokeDasharray:d,strokeDashoffset:"determinate"===i?d*(1-n/100):.25*d})]})})},lz=({className:e,align:r="center",sideOffset:t=4,...a})=>l(j,{children:l(O,{align:r,sideOffset:t,className:s("style__1xy4jvu2",e),...a})});var lS={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},lD={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},lI={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"},lT={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},lP={block:"block__1sba6zoo",inline:"inline__1sba6zop"},lF={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},lM={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let lR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},lL=({className:e,variant:r="body1",component:t,color:a="primary",align:n="left",display:i="inline",weight:o="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...h})=>l(t||lR[r||"body1"],{className:s(lF[d],lI[r],lD[a],lM[o],c&&lT[c],lP[i],lS[n],{style__1sba6zo10:_},e),...h,children:m}),lq=e=>{let{open:t,onActionComponentClick:a,onCancel:n,confirmButtonProps:i,onOpenChange:o}=(({skipConfirm:e,onConfirm:l,confirmButtonProps:r})=>{let[t,a]=R(!1);return{open:t,onActionComponentClick:()=>{e?l():a(!0)},confirmButtonProps:{variant:r?.isAccented?"destructive":"default",size:"sm",onClick:()=>{a(!1),l()}},onCancel:()=>{a(!1)},onOpenChange:e=>{a(e)}}})(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:h="Подтвердить"}=d||{},{side:u="bottom",align:y="center"}=_||{};return r($,{open:t,onOpenChange:o,children:[l(B,{asChild:!0,children:m({onClick:a})}),l(lz,{side:u,align:y,className:s("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:r("div",{className:"style__1q1uhgp1",children:[c&&l(lL,{children:c}),r("div",{className:"style__1q1uhgp0",children:[l(lr,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),l(lr,{...i,children:h})]})]})})]})};var lA={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let lO=e=>l("img",{alt:e.alt,src:e.src,className:a("style__1o97kvm0",lA[e.size||"md"],e.className),width:e.width,height:e.height}),l$={sm:"239px",md:"323px",lg:"458px"},lB={sm:"119px",md:"161px",lg:"229px"},lj={sm:"384px",md:"400px",lg:"460px"},lE={sm:"subtitle1",md:"h6",lg:"h5"};var lH={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let lV=({className:e,title:t,imgSrc:s,imgAlt:n,description:i,actions:o,size:c="sm",renderImage:d})=>{let _=F(()=>d||lO,[d]);return r("div",{className:a("style__1nenzg00",lH[c],e),children:[r("div",{className:"style__1nenzg04",style:{maxWidth:lj[c]},children:[s&&l(_,{src:s,alt:n,width:l$[c],height:lB[c],size:c}),l(lL,{align:"center",color:"secondary",variant:lE[c],children:t}),i&&l(lL,{className:"style__1nenzg05",component:"div",variant:"body1",children:i})]}),o&&l("footer",{className:"style__1nenzg06",children:o})]})},lW=({isLoading:e,isError:r,isCustom:t,errorState:a,customState:s,children:n,loadingContent:i=l(lC,{color:"primary"})})=>{if(e)return l("div",{className:"style__nan0ao0",children:i});if(t&&s)return l(lV,{...s});if(r&&a){let{title:e="Произошла ошибка",imgAlt:r,imgSrc:t,errorList:s,onRetry:n,actions:i=l(lr,{onClick:n,children:"Попробовать снова"})}=a,o=s.map(e=>l(lL,{component:"p",children:e},e));return l(lV,{title:e,description:o,imgAlt:r,imgSrc:t,actions:i})}return n},lG=({sideOffset:e=4,alignOffset:r,ref:t,...a})=>l(H,{ref:t,sideOffset:e,...a}),lY=({text:e,content:t,children:s,side:n="top",sideOffset:i,alignOffset:o,delayDuration:c=0,className:d,ref:_,...m})=>l(W,{delayDuration:c,children:r(G,{...m,children:[l(Y,{ref:_,asChild:!0,children:s}),t||e?l(V,{children:r(lG,{className:a("style__izacrl2",d),alignOffset:o,sideOffset:i,hideWhenDetached:!0,side:n,children:[t??l("p",{className:"style__izacrl3",children:e}),m.arrow&&l(E,{className:"style__izacrl4"})]})}):null]})}),lK=e=>{let{children:t,copyPosition:a="right",copyText:n,isShowCopyText:i,color:o,className:c,...d}=e,_=()=>l(v,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:h,handleMouseLeave:u,handleClick:y,tooltipTitle:p,isIconOnLeft:g}=(({children:e,copyText:l,isShowCopyText:r,copyPosition:t})=>{let[a,s]=R("Скопировать"),[n,i]=R(!1);return{handleMouseLeave:()=>{"Скопировать"!==a&&setTimeout(()=>{s("Скопировать")},100),i(!1)},handleClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(l||("string"==typeof e?e:"")).then(()=>s("Скопировано")).catch(()=>s("Ошибка копирования"))},tooltipTitle:r?`${a}: ${l}`:a,isIconOnLeft:"left"===t,tooltipOpen:n,handleMouseEnter:()=>{i(!0)}}})(e);return l(lY,{open:m,arrow:!0,text:p,side:"bottom",children:r(lL,{onMouseLeave:u,onMouseEnter:h,onClick:y,component:"div",color:o,className:s("style__1wpx85c0",c),...d,children:[g&&_(),t,!g&&_()]})})},lJ=C({pinned:!0,hovered:!1,togglePinned:()=>{}}),lU=()=>D(lJ),lX="16rem",lQ=({children:e,className:r})=>{let{pinned:t,togglePinned:a}=(()=>{let[e,l]=((e,l,r)=>{if(void 0===window)return[l,()=>{},()=>{}];if(!e)throw Error("useLocalStorage key may not be falsy");let t=JSON.parse,a=M(e=>{try{let r=(0,JSON.stringify),a=localStorage.getItem(e);if(null!==a)return t(a);return l&&localStorage.setItem(e,r(l)),l}catch{return l}}),[s,n]=R(()=>a.current(e));P(()=>n(a.current(e)),[e]);let i=S(l=>{try{let a,i="function"==typeof l?l(s):l;if(void 0===i)return;a=r?r.raw?"string"==typeof i?i:JSON.stringify(i):r.serializer?r.serializer(i):JSON.stringify(i):JSON.stringify(i),localStorage.setItem(e,a),n(t(a))}catch{}},[e,n]);return[s,i,S(()=>{try{localStorage.removeItem(e),n(void 0)}catch{}},[e,n])]})("dashboard::pinned",!1);return{pinned:e,togglePinned:()=>l(!e)}})();return l(lJ.Provider,{value:{pinned:t,togglePinned:a},children:l("div",{className:s("DashboardLayout__113u7x50",r),children:e})})};function lZ({row:e,column:r,rowIndex:t,height:a}){let{align:n,cellColor:i,isDisabled:o}=r;return l("td",{align:n??"left",style:{backgroundColor:i?.(e),height:a,width:r.width},className:s("style__1047swj0",{style__1047swj1:o},r.cellClassName?.(e)),children:l(()=>r.renderCell?r.renderCell(e,t):r.format?r.format(e)||"—":r.field?`${e[r.field]||"—"}`:"—",{})})}function l1({row:e,rowHeight:r,onRowClick:t,columns:a,rowIndex:n,rowId:i}){let o=S(()=>{t?.(e)},[t,e]);return l("tr",{onClick:o,onKeyDown:o,className:s("style__gsm9mv0",{style__gsm9mv1:!!t}),children:a.map((t,a)=>l(lZ,{row:e,rowIndex:n,column:t,height:r},`${i}-${a}`))})}function l0({isLoading:e,isEmpty:r,columnsLength:t,emptyState:a={text:"Нет данных"},errorState:s={text:"Произошла ошибка"},isError:n,onRetry:i}){let o=({children:e})=>l("tr",{className:"style__15m2ib80",children:l("td",{colSpan:t,align:"center",children:e})});if(e)return l(o,{children:l("span",{className:"style__15m2ib81",children:l(lC,{})})});if(r){let{imgSrc:e,imgAlt:r,text:t}=a;return l(o,{children:l(lV,{title:t,imgSrc:e,imgAlt:r})})}if(n){let{imgSrc:e,imgAlt:r,text:t}=s;return l(o,{children:l(lV,{title:t,imgSrc:e,imgAlt:r,actions:i?l(lr,{variant:"outline",onClick:i,children:"Попробовать снова"}):void 0})})}return null}lQ.Sidebar=({width:e=lX,header:t,footer:a,content:n,className:i})=>{let{pinned:o}=lU();return r("div",{style:{width:o?e:0},className:"style__1low90p0",children:[l("span",{className:"SidebarTrigger__1low90p1"}),r("aside",{style:{width:e},className:s("SidebarContainer__1low90p2",{style__1low90p3:!o},i),children:[t&&l("header",{className:"SidebarHeader__1low90p4",children:t}),l("div",{className:"SidebarContent__1low90p6",children:n}),a&&l("footer",{className:"SidebarFooter__1low90p5",children:a})]})]})},lQ.Main=({children:e,className:r})=>l("main",{className:s("style__whkxou0",r),children:e});var l2="style__82af400";function l6({isError:e,isLoading:r,emptyState:t,errorState:a,columns:s,rows:n,rowHeight:i,keyId:o,onRowClick:c}){let d=0===n.length;return e||r||d?l("tbody",{className:l2,children:l(l0,{emptyState:t,errorState:a,isEmpty:d,isError:e,isLoading:r,columnsLength:s.length})}):l("tbody",{className:l2,children:n.map((e,r)=>{let t=String(e[o]);return l(l1,{row:e,rowId:t,rowHeight:i,columns:s,onRowClick:c,rowIndex:r},e[o])})})}function l5({children:e,className:r}){return l("footer",{className:s("style__2s55b60",r),children:e})}function l8({column:e,height:r,width:t}){return l("th",{style:{color:e.color,height:r,width:t},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function l3({columns:e,height:r,sticky:t}){return l("thead",{children:l("tr",{className:s({style__fkgoub0:t}),children:e.map(e=>l(l8,{column:e,height:r,width:e.width},e.title))})})}function l4({rows:e,columns:t,height:a="100%",className:n,rowHeight:i=40,headerHeight:o=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:h,emptyState:u,errorState:y,footer:p,title:g,stickyHeader:v,onRetry:b}){let f=_||h||0===e.length;return r("div",{"data-slot":"data-grid",style:{height:a},className:s("style__1gqvluf0",n),children:[r("table",{className:s("style__1gqvluf1",{style__1gqvluf3:m,style__1gqvluf4:_,style__1gqvluf2:f},n),children:[g&&l("caption",{className:"style__1gqvluf5",children:g}),l(l3,{columns:t,height:o,sticky:v}),l(l6,{rows:e,columns:t,rowHeight:i,keyId:c,onRowClick:d,isLoading:_,emptyState:u,errorState:y,isError:h,onRetry:b})]}),p&&l(l5,{children:p})]})}var l9="style__1ib8wkt3";let l7=et,re=eo,rl=U,rr=ee,rt=es,ra=el,rs=({className:e,inset:t,children:s,...n})=>r(ei,{className:a("style__1ib8wkt2",{inset:t},e),...n,children:[s,l(u,{className:l9})]}),rn=({className:e,...r})=>l(en,{className:a("style__1ib8wkt4",e),...r}),ri=({className:e,sideOffset:r=4,...t})=>l(ee,{children:l(J,{sideOffset:r,className:a("style__1ib8wkt5",e),...t})}),ro=({className:e,inset:r,...t})=>l(X,{className:a("style__1ib8wkt6",{inset:r},e),...t}),rc=({className:e,children:t,checked:s,...n})=>r(K,{className:a("style__1ib8wkt7",e),checked:s,...n,children:[l("span",{className:"style__1ib8wkt9",children:l(Q,{children:l(_,{className:l9})})}),t]}),rd=({className:e,children:t,...s})=>r(er,{className:a("style__1ib8wkt8",e),...s,children:[l("span",{className:"style__1ib8wkta",children:l(Q,{children:l(p,{className:l9})})}),t]}),r_=({className:e,inset:r,...t})=>l(Z,{className:a("style__1ib8wktb",{inset:r},e),...t}),rm=({className:e,...r})=>l(ea,{className:a("style__1ib8wktc",e),...r}),rh=({className:e,...r})=>l("span",{className:a("style__1ib8wktd",e),...r}),ru=r=>{let{tooltipProps:t}=(({action:e})=>{let{isLoading:l,disabledReason:r,name:t}=e,[a,s]=R(!1);return I(()=>{l&&s(!1)},[l]),{tooltipProps:{text:r||t,open:a,onOpenChange:e=>s(e)}}})(r),{action:a,onActionClick:s,isDisabled:n,tooltipPlacement:i}=r,{name:o,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:h,isLoading:u,onClick:y}=a,p=e=>l(lY,{arrow:!0,side:i,...t,children:l(lr,{disabled:n||h,isLoading:u,variant:"ghost",size:"icon",...e,children:c})},o);return l(e,{children:d?l(lq,{text:_,confirmButtonProps:m,actionComponent:e=>p(e),onConfirm:s(y)}):p({onClick:s(y)})})},ry=({action:e,onActionClick:t,isDisabled:a,tooltipPlacement:s})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:c,actions:d,isLoading:_}=e;return r(l7,{children:[l(re,{asChild:!0,children:l(lY,{text:c||o,side:s,arrow:!0,children:l(lr,{variant:"ghost",size:"icon",isLoading:_,disabled:a||n,children:i})},o)}),l(ri,{children:d.map(({name:e,onClick:r,...a})=>z(ro,{...a,key:e,asChild:!0},l(lr,{size:"sm",onClick:t(r),children:e})))})]})}return l(ru,{action:e,onActionClick:t,isDisabled:a,tooltipPlacement:s})},rp=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:s})=>r(l7,{children:[l(re,{asChild:!0,children:l(lr,{disabled:s,variant:"ghost",size:"icon",children:l(f,{})})}),l(ri,{children:e.map(e=>{let{onClick:r,name:s,disabledReason:n,isLoading:i}=e;return l(ro,{asChild:!0,children:l(lY,{arrow:!0,side:a,text:n,children:l(lr,{onClick:t(r),isLoading:i,variant:"ghost",size:"sm",fullWidth:!0,children:s})})},s)})})]}),rg=e=>{let{isDisabledAction:t,handleWrapperClick:a,handleActionClick:s}=(({row:e,actions:l})=>{let{main:r,secondary:t}=l,a=[...r,...t||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!a,handleActionClick:S(l=>()=>{l?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:n}=e,{main:i,secondary:o}=n;return r("div",{onClick:a,onKeyDown:a,className:"style__y44ln70",children:[i.map(e=>l(ry,{action:e,onActionClick:s,isDisabled:t,tooltipPlacement:"top"},e.name)),o&&l(rp,{actions:o,onActionClick:s,tooltipPlacement:"left",isDisabled:t})]})};var rv={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function rb({sorting:e,setSorting:t,column:{title:a,field:n,align:d="left"},className:_}){return n?r("button",{type:"button",className:s("style__o752f00",rv[d],_),onClick:()=>{e.key===n?t({key:n,order:"asc"===e.order?"desc":"asc"}):t({key:n,order:"asc"})},children:[a,e.key===n?"asc"===e.order?l(i,{size:16}):l(c,{size:16}):l(o,{size:16})]}):null}let rf="Вы достигли конца списка",rN=({endOfScrollMsg:e=rf})=>l("li",{className:"style__1syvw5e0",children:l(lL,{children:e})}),rw=({onRetry:e})=>r("li",{className:"style__qlujai0",children:[l(lL,{align:"center",children:"Ошибка загрузки"}),l(lr,{size:"sm",onClick:e,children:"Попробовать снова"})]}),rk=()=>l("li",{className:"style__111czea0",children:l(lC,{color:"primary"})}),rx=({noDataImgSrc:e})=>l(lV,{title:"Нет данных",imgSrc:e}),rC=({onClick:e,isVisible:r})=>l(lr,{onClick:e,size:"icon",variant:"outline",className:s("style__1jg5nd90",{style__1jg5nd91:r}),children:l(y,{})}),rz=({data:t,keyId:a,className:n,itemContent:i,noDataPlaceholder:o,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:h,onRetry:u,onEndReached:y,scrollTopIsDataChanged:p})=>{let g=M(null),[v,b]=R(!1),f=S(e=>{e.startIndex>2?b(!0):b(!1)},[]),N=S(()=>g.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[g]),w=S(()=>{!h&&y&&y()},[h,y]),k=!!t?.length;return k||_||m?(I(()=>{p&&g.current?.scrollToIndex({index:0,align:"start"})},[p,t]),r(lW,{isLoading:_&&!k,isError:m&&!k,errorState:d,children:[l(ec,{className:s("style__1ezen7g0",n),style:{height:"100%"},data:t,ref:g,overscan:30,endReached:w,rangeChanged:f,itemContent:(e,r)=>l("li",{children:i?.(r,{index:e,className:s("style__1ezen7g1","datalist_item")})},r[a]),components:{Footer:()=>r(e,{children:[_&&l(rk,{}),m&&l(rw,{onRetry:u}),h&&l(rN,{endOfScrollMsg:c})]})}}),l(rC,{isVisible:v,onClick:N})]})):o?l(e,{children:o}):l(rx,{})},rS=":",rD="—",rI="descriptionRoot",rT=C({leader:!1,separator:rS,direction:"default"}),rP=({children:e,leader:r,separator:t,direction:a})=>l(rT.Provider,{value:{leader:r,separator:t,direction:a},children:e});var rF={row:"row__1lociyw1",column:"column__1lociyw2"},rM={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},rR="style__sdcsnp2";let rL=e=>{let{descriptionContextProviderProps:r,direction:t}=(({direction:e="row",separator:l=rS})=>({descriptionContextProviderProps:{separator:"column"===e?"":l},direction:e}))(e),{justifyContent:a="start",component:n="dl",children:i,leader:o=!1,className:c}=e;return l(rP,{leader:o,direction:t,...r,children:l(n,{className:s("style__1lociyw0",rF[t],rM[a],rI,c),children:i})})};rL.Name=({children:t,color:a="secondary",...n})=>{let{leader:i,separator:o}=D(rT);return r(e,{children:[l("dt",{className:s("style__1tsgk1i0",{style__1tsgk1i1:i}),children:r(lL,{...n,color:a,children:[t,!i&&o]})}),i&&l("div",{className:"style__1tsgk1i2"})]})},rL.Value=e=>{let{valueToRender:r,isDefaultValueRender:t,leader:s}=(({canCopy:e,children:l,stub:r="—"})=>{let{leader:t,direction:a}=D(rT);return{valueToRender:l||r,isDefaultValueRender:!e||!l,leader:t,direction:a}})(e),{copyPosition:n="right",copyText:i,canCopy:o,children:c,stub:d,..._}=e;return t?l(lL,{className:a("style__sdcsnp1",{[rR]:s}),component:"dd",..._,children:r}):l("dd",{className:"style__sdcsnp0",children:l(lK,{className:a({[rR]:s}),copyPosition:n,copyText:i,..._,children:r})})};let rq=({title:e,description:t="",trigger:s,className:n,footer:i,children:o,...c})=>r(ey,{...c,children:[s&&l(eg,{asChild:!0,children:s}),r(eu,{children:[l(eh,{className:a("style__8bkmbe2")}),r(e_,{className:a("style__8bkmbe5",n),children:[r("div",{className:a("style__8bkmbe8",{style__8bkmbe9:!!t}),children:[l(ep,{className:"style__8bkmbeb",children:e}),l(em,{className:"style__8bkmbec",children:t}),c.onOpenChange&&r(ed,{className:"style__8bkmbe6",children:[l(k,{size:24}),l("span",{className:"style__8bkmbe7",children:"Close"})]})]}),o,i&&l("div",{className:"style__8bkmbea",children:i})]})]})]}),rA=({children:e,trigger:t,className:a,title:n,description:i="",footer:o,closeButton:c,...d})=>r(eb,{...d,children:[t&&l(ev.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:t}),r(ev.Portal,{"data-slot":"drawer-portal",children:[l(ev.Overlay,{"data-slot":"drawer-overlay",className:s("style__ccss502",a)}),r(ev.Content,{"data-slot":"drawer-content",className:s("group/drawer-content","style__ccss503",a),children:[l("div",{className:"style__ccss504"}),r("div",{"data-slot":"drawer-header",className:s("style__ccss505",a),children:[l(ev.Title,{"data-slot":"drawer-title",className:s("style__ccss507",a),children:n}),l(ev.Description,{"data-slot":"drawer-description",className:s("style__ccss508",a),children:i})]}),e,r("div",{"data-slot":"drawer-footer",className:s("style__ccss506",a),children:[o,c&&l(ev.Close,{"data-slot":"drawer-close",asChild:!0,children:c})]})]})]})]});var rO="style__a5l83v0",r$="style__a5l83v4";let rB=({images:t=[],autoPlay:a=!1,interval:n=5e3})=>{let[i,o]=R(0);return(I(()=>{if(!a)return;let e=setInterval(()=>{o(e=>e===t.length-1?0:e+1)},n);return()=>clearInterval(e)},[a,t.length,n]),0===t.length)?l("div",{className:rO,children:"Нет изображений для отображения"}):r("div",{className:rO,children:[l("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*i}%)`},children:t.map((e,r)=>l("div",{className:"style__a5l83v2",children:l("img",{src:e.src,alt:e.alt||`Slide ${r+1}`,className:"style__a5l83v3"})},e.src))}),t.length>1&&r(e,{children:[l("button",{type:"button",className:s(r$,"style__a5l83v5"),onClick:()=>{o(e=>0===e?t.length-1:e-1)},children:l(h,{size:24})}),l("button",{type:"button",className:s(r$,"style__a5l83v6"),onClick:()=>{o(e=>e===t.length-1?0:e+1)},children:l(u,{size:24})}),l("div",{className:"style__a5l83v7",children:t.map(({src:e},r)=>l("button",{type:"button",className:`style__a5l83v8 ${i===r?"active":""}`,onClick:()=>{o(r)}},e))})]})]})};var rj={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},rE="style__1blk89uc",rH={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"},rV="style__1blk89u6";let rW=({error:e,variant:t="outlined",size:a="md",startAdornment:n,endAdornment:i,className:o,disabled:c,fullWidth:d,value:_,ref:m,...h})=>r("div",{className:s("Input__1blk89u0",rH[t],{style__1blk89u7:e},{[rV]:c},{style__1blk89u3:d},o),children:[n&&l("span",{className:rE,children:n}),l("input",{className:s("style__1blk89u8",rj[a],{[rV]:c,style__1blk89ud:!!n,style__1blk89ue:!!i}),ref:m,disabled:c,value:_||"",...h}),i&&l("span",{className:rE,children:i})]}),rG=({separator:e="•",...r})=>l("div",{...r,children:l("span",{className:"style__te1pgr0",children:e})}),rY=({char:e,hasFakeCaret:t,isActive:a,...n})=>r("div",{className:s("style__rtks2g0",{style__rtks2g1:a}),...n,children:[e,t&&l("div",{className:"style__rtks2g2",children:l("div",{className:"style__rtks2g4"})})]});var rK="style__1iixe0l2";let rJ=({className:t,containerClassName:a,disabled:n,...i})=>l(ef,{containerClassName:s("style__1iixe0l0",{style__1iixe0l3:n},a),className:s("style__1iixe0l1",t),render:({slots:t})=>t.length%2!=0?l("div",{className:rK,children:t.map((e,r)=>l(rY,{...e},`${r}-${e.char}`))}):r(e,{children:[l("div",{className:rK,children:t.slice(0,t.length/2).map((e,r)=>l(rY,{...e},`${r}-${e.char}`))}),l(rG,{}),l("div",{className:rK,children:t.slice(t.length/2).map((e,r)=>l(rY,{...e},`${r}-${e.char}`))})]}),...i}),rU=({label:e,helperText:t,className:a,disabled:n,fullWidth:i,ref:o,labelClassName:c,...d})=>r("div",{className:s("style__kqu4y20",{style__kqu4y25:i},a),children:[e&&l(lt,{htmlFor:d.id||e,disabled:n,error:d.error,className:s("style__kqu4y21",c),children:e}),l(rW,{ref:o,disabled:n,fullWidth:i,id:d.id||e,...d}),t&&l(lL,{variant:"caption",className:s("style__kqu4y22",{style__kqu4y24:d.error,style__kqu4y23:n}),children:t})]}),rX=({maskProps:e,ref:r,...t})=>{let a=eN(e);return l(rU,{ref:S(e=>{a.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[a,r]),...t})},rQ=({children:e,className:r})=>l("div",{className:s("style__adrl250",r),children:e});rQ.Header=e=>{let{title:t,subtitle:a,breadcrumbs:n,actions:i,backButton:o,className:c}=e,{pinned:d,togglePinned:_}=lU();return I(()=>{"string"==typeof t&&(document.title=t)},[t]),r("header",{className:s("page_header","style__nvcxbd1",c),children:[r("div",{className:"style__nvcxbd2",children:[l(lY,{text:d?"Развернуть":"Свернуть",children:l(lr,{variant:"ghost",size:"icon",onClick:_,children:d?l(w,{}):l(N,{})})}),o&&l(lY,{text:"Назад",children:l(lr,{...o,variant:"ghost",children:l(h,{})})})]}),n&&l("div",{className:"Breadcrumbs__nvcxbd0",children:n}),l("div",{className:"style__nvcxbd3",children:i}),"string"==typeof t?l(lL,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:t}):l("div",{className:"style__nvcxbd5",children:t}),a&&"string"==typeof a&&l(lL,{className:"style__nvcxbd6","aria-level":2,children:a}),a&&"string"!=typeof a&&l("div",{className:"style__nvcxbd7",children:a})]})},rQ.Content=e=>{let{className:r,children:t,isFullHeight:a=!0}=e;return l("article",{className:s("page-content","style__1hr0uh00",{style__1hr0uh01:a},r),children:t})},rQ.Footer=e=>{let{children:r,className:t}=e;return l("footer",{className:s("style__1bd8jnw0",t),children:r})},rQ.Aside=({children:e,className:r})=>l("aside",{className:s("PageLayoutAside__1un4hm80",r,"page_aside"),children:e});let rZ=(e,l)=>Array.from({length:l-e+1},(l,r)=>r+e);function r1(e){let{onPageChange:t,totalCount:a,siblingCount:s=1,currentPage:n,pageSize:i,size:o="icon"}=e,c=(({totalCount:e,pageSize:l,siblingCount:r=1,currentPage:t})=>F(()=>{if(l<=0||e<=0)return[];let a=Math.ceil(e/l);if(r+5>=a)return rZ(1,a);let s=Math.max(t-r,1),n=Math.min(t+r,a),i=s>2,o=n<a-2;return!i&&o?[...rZ(1,3+2*r),null,a]:i&&!o?[1,null,...rZ(a-(3+2*r)+1,a)]:i&&o?[1,null,...rZ(s,n),null,a]:[]},[e,l,r,t]))({currentPage:n,totalCount:a,siblingCount:s,pageSize:i});if(0===n||c&&c.length<2)return null;let d=c.at(-1);return r("nav",{className:"style__p708oq0",children:[l(lr,{variant:"ghost",size:o,onClick:()=>{t(n-1)},disabled:1===n,children:l(h,{})}),c?.map((e,r)=>e?l(lr,{size:o,variant:e===n?"default":"outline",onClick:()=>t(+e),children:e},`${e}${r.toString()}`):l("span",{className:"style__p708oq1",children:l(b,{})})),l(lr,{variant:"ghost",size:o,onClick:()=>{t(n+1)},disabled:n===d,children:l(u,{})})]})}let r0=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],r2=["I квартал","II квартал","III квартал","IV квартал"],r6=e=>Math.ceil(e/3);function r5({year:e,onSelect:t,minDate:a,maxDate:s}){let n=Array.from({length:s.getFullYear()-a.getFullYear()+1},(e,l)=>a.getFullYear()+l);return r(to,{onValueChange:e=>{t?.(Number(e))},value:e.toString(),children:[l(t_,{children:l(td,{placeholder:e.toString()})}),l(tu,{children:n.map(e=>l(tp,{value:e.toString(),children:l(lL,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let r8=e=>{let{label:t,disabled:a=!1,value:s,onSelect:n,type:i="month",placeholder:o="month"===i?"Выберите месяц":"Выберите квартал",error:c,helperText:_,max:m=new Date(2050,0,1),min:h=new Date(2e3,0,1),className:u,size:y,fullWidth:p,name:g}=e,v=new Date,[b,f]=R(!1),[N,w]=R(v.getFullYear()),k=e=>{n?.(e),f(!1)},x="month"===i?s?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):s?`${r2[r6(s.getMonth())]} ${s.getFullYear()}`:"";return I(()=>{s&&w(s.getFullYear())},[s]),r($,{open:b,onOpenChange:f,children:[l(rU,{label:t,value:x,disabled:a,size:y,fullWidth:p,name:g,endAdornment:l(B,{asChild:!0,children:l(lr,{disabled:a,variant:"ghost",size:"icon",children:l(d,{})})}),placeholder:o,error:c,helperText:_,className:u}),l(lz,{align:"end",alignOffset:-10,side:"bottom",children:r("div",{className:"style__1izfmw30",children:[l(r5,{year:N,onSelect:w,minDate:h,maxDate:m}),"month"===i?l("div",{className:"style__1izfmw31",children:r0.map((e,r)=>{let t=new Date(N,r,s?.getDate()||1);return l(lr,{variant:s?.getMonth()===r&&s.getFullYear()===t.getFullYear()?"default":"ghost",disabled:t<h||t>m,onClick:()=>k(t),children:e},e)})}):l("div",{className:"style__1izfmw32",children:r2.map((e,r)=>{let t=new Date(N,3*r,1);return l(lr,{variant:s&&[r6(s.getMonth())===r,s.getFullYear()===t.getFullYear()].every(Boolean)?"default":"ghost",disabled:t<h||t>m,onClick:()=>k(t),children:e},e)})})]})})]})},r3=({className:e,...r})=>l(ex,{"data-slot":"radio-group",className:a("RadioGroup__ia95d10",e),...r}),r4=({className:e,label:t,...a})=>r("div",{className:"style__ia95d11",children:[l(ek,{"data-slot":"radio-group-item",id:a.id||a.value,className:s("style__ia95d12",e),...a,children:l(ew,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:l(g,{className:"style__ia95d14"})})}),l(lt,{htmlFor:a.id||a.value,"data-slot":"radio-group-label",children:t})]});var r9="style__h9oy583";let r7=({className:e,...t})=>r(ez,{className:s("style__h9oy580",e),...t,children:[l(eD,{className:"style__h9oy581",children:l(eC,{className:"style__h9oy582"})}),l(eS,{className:r9}),t.value?.length===2&&l(eS,{className:r9})]});var te={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},tl="style__1pnwkko6",tr="style__1pnwkko5";function tt({min:e,max:t,onChange:a,minValue:n,maxValue:i,width:o=150,label:c="",unit:d="",size:_="md",className:m,isActive:h,minInputRef:u,maxInputRef:y}){let{onMinValueChange:p,onMaxValueChange:g,minVal:v,maxVal:b,onKeyDown:f,onValueChange:N,onConfirm:w,id:k}=(({min:e,max:l,maxValue:r,minValue:t,onChange:a})=>{let s=T(),[n,i]=R(e),[o,c]=R(l);return I(()=>{i(t||e),c(r||l)},[t,r,e,l]),{id:s,minVal:n,maxVal:o,onValueChange:e=>{if(e[0]===e[1])return void a(e[0],e[1]);i(e[0]),c(e[1])},onMinValueChange:e=>{let{value:l}=e.target;Number.isNaN(+l)||i(+l)},onMaxValueChange:e=>{let{value:l}=e.target;Number.isNaN(l)||c(+l)},onKeyDown:r=>{"Enter"===r.key&&a(n>=e&&n<=l?n:e,o>=e&&o<=l?o:l)},onConfirm:e=>{a(e[0],e[1])}}})({min:e,max:t,maxValue:i,minValue:n,onChange:a});return r("div",{className:s("style__1pnwkko0",te[_],{style__1pnwkko1:h},m),style:{width:o},children:[l(lL,{className:tr,color:"disabled",variant:"body2",children:c}),l(lL,{className:tr,color:"disabled",variant:"body2",children:"от"}),l("input",{className:tl,type:"text",id:k,value:v,onChange:p,onKeyDown:f,ref:u}),l(lL,{className:tr,color:"disabled",variant:"body2",children:"до"}),l("input",{className:tl,type:"text",id:k,value:b,onChange:g,onKeyDown:f,ref:y}),l(lL,{className:tr,color:"disabled",variant:"body2",children:d}),l("div",{className:"style__1pnwkko7",children:l(r7,{min:e,max:t,value:[Number(v),Number(b)],onValueChange:N,onValueCommit:w})})]})}function ta({onClick:e,variant:r="outline",...t}){let[a,n]=R(!1),i=()=>{window.scrollY>400?n(!0):n(!1)};return I(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),l(lr,{type:"button",variant:r,className:s("style__1ou2vjc0",{style__1ou2vjc1:a}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})}),...t,children:l(y,{})})}var ts={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"},tn="style__5ilg7od",ti="style__5ilg7o6";let to=eA,tc=eT,td=eE,t_=({className:e,children:t,size:a="md",...n})=>r(ej,{className:s("style__5ilg7o2",ts[a],e),...n,children:[t,l(eP,{asChild:!0,children:l(m,{className:"style__5ilg7oe"})})]}),tm=({className:e,...r})=>l(e$,{className:s(ti,e),...r,children:l(y,{className:tn})}),th=({className:e,...r})=>l(eO,{className:s(ti,e),...r,children:l(m,{className:tn})}),tu=({className:e,children:t,position:a="popper",...n})=>l(eq,{children:r(eI,{className:s("style__5ilg7o7",e),position:a,...n,children:[l(tm,{}),l(eH,{className:"style__5ilg7o8",children:t}),l(th,{})]})}),ty=({className:e,...r})=>l(eL,{className:`style__5ilg7o9 ${e||""}`,...r}),tp=({className:e,children:t,...a})=>r(eF,{className:`style__5ilg7oa ${e||""}`,...a,children:[l("span",{className:"style__5ilg7ob",children:l(eM,{children:l(_,{className:tn})})}),l(eR,{children:t})]}),tg=({className:e,...r})=>l(eB,{className:`style__5ilg7oc ${e||""}`,...r});var tv={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let tb=e=>l(eG,{...e});tb.Content=({className:e,...r})=>l(eV,{className:s("style__hworoa5",e),...r}),tb.List=({className:e,...r})=>l(eW,{className:s("style__hworoa0",e),...r}),tb.Trigger=({className:e,size:r="md",...t})=>l(eY,{className:s("style__hworoa1",tv[r],e),...t});let tf=({form:e,children:r,...t})=>l(eJ,{...e,children:l("form",{noValidate:!0,...t,children:r})});function tN({name:e,control:r,...t}){return l(eK,{control:r,name:e,render:({field:e,fieldState:r})=>l(rX,{...t,...e,error:!!r.error,helperText:r.error?.message})})}let tw=({mode:e="onBlur",...l}={})=>eQ({...l,mode:e}),tk=({children:e,isLoading:r,...t})=>{let{formState:a}=eZ();return l(lr,{type:"submit",isLoading:r||a.isSubmitting,...t,children:e})};function tx({name:e,control:r,gridArea:t,...a}){return l(eK,{control:r,name:e,render:({field:e,fieldState:r})=>l(rU,{...a,...e,style:{gridArea:t},value:e.value||"",error:!!r.error,helperText:r.error?.message})})}var tC={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)"},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)"},boxShadow:{sm:"var(--boxShadow-sm)",default:"var(--boxShadow-default)",md:"var(--boxShadow-md)",lg:"var(--boxShadow-lg)",xl:"var(--boxShadow-xl)"}};export{e9 as Badge,lr as Button,la as ButtonGroup,ls as Card,lc as CardContent,lo as CardDescription,ld as CardFooter,ln as CardHeader,li as CardTitle,lN as Carousel,lw as Checkbox,lC as CircularProgress,lq as ConfirmAction,lW as ContentState,lK as CopyTypography,rS as DEFAULT_SEPARATOR,rD as DEFAULT_SYMBOL,rI as DESCRIPTION_ROOT_CLASSNAME,lQ as DashboardLayout,l4 as DataGrid,rg as DataGridActionCell,rb as DataGridSortHeader,rz as DataList,rL as Description,rq as Dialog,rA as Drawer,l7 as DropdownMenu,rc as DropdownMenuCheckboxItem,ri as DropdownMenuContent,rl as DropdownMenuGroup,ro as DropdownMenuItem,r_ as DropdownMenuLabel,rr as DropdownMenuPortal,ra as DropdownMenuRadioGroup,rd as DropdownMenuRadioItem,rm as DropdownMenuSeparator,rh as DropdownMenuShortcut,rt as DropdownMenuSub,rn as DropdownMenuSubContent,rs as DropdownMenuSubTrigger,re as DropdownMenuTrigger,tf as Form,eK as FormController,tN as FormMaskField,eJ as FormProvider,tk as FormSubmitButton,tx as FormTextField,lO as Image,rB as ImageCarousel,rW as Input,rJ as InputOTP,lt as Label,rX as MaskField,rQ as PageLayout,r1 as Pagination,r8 as PeriodPicker,lV as Placeholder,$ as Popover,lz as PopoverContent,B as PopoverTrigger,r3 as RadioGroup,r4 as RadioGroupItem,tt as RangeInput,ta as ScrollTopButton,to as Select,tu as SelectContent,tc as SelectGroup,tp as SelectItem,ty as SelectLabel,th as SelectScrollDownButton,tm as SelectScrollUpButton,tg as SelectSeparator,t_ as SelectTrigger,td as SelectValue,r7 as Slider,tb as Tabs,rU as TextField,lY as Tooltip,lL as Typography,lS as alignments,e4 as badgeVariants,e7 as buttonBaseClass,le as buttonSizes,ll as buttonVariants,lD as colors,e0 as createTheme,lP as displays,e2 as globalKeyframes,e6 as globalStyle,e5 as keyframes,e8 as style,e3 as styleVariants,lT as transforms,lU as useDashboard,tw as useForm,eZ as useFormContext,eU as useFormController,eX as useFormFieldArray,e1 as useFormWatch,lI as variants,tC as vars,lM as weights};
1
+ import{Fragment as e,jsx as l,jsxs as r}from"react/jsx-runtime";import{Slot as t}from"@radix-ui/react-slot";import a,{clsx as s}from"clsx";import{Root as n}from"@radix-ui/react-label";import{ArrowDownNarrowWide as i,ArrowDownUp as o,ArrowDownWideNarrow as c,Calendar1 as d,Check as _,ChevronDown as m,ChevronLeft as h,ChevronRight as u,ChevronUp as y,Circle as p,CircleIcon as g,Copy as v,Ellipsis as b,EllipsisVertical as f,PanelLeftClose as N,PanelLeftOpen as w,X as k}from"lucide-react";import x,{createContext as C,createElement as z,useCallback as S,useContext as D,useEffect as I,useId as T,useLayoutEffect as P,useMemo as F,useRef as M,useState as R}from"react";import L from"embla-carousel-react";import{Indicator as q,Root as A}from"@radix-ui/react-checkbox";import{Content as O,Popover as $,PopoverTrigger as B,Portal as j}from"@radix-ui/react-popover";import{Arrow as E,Content as H,Portal as V,Provider as W,Root as G,Trigger as Y}from"@radix-ui/react-tooltip";import{CheckboxItem as K,Content as J,Group as U,Item as X,ItemIndicator as Q,Label as Z,Portal as ee,RadioGroup as el,RadioItem as er,Root as et,Separator as ea,Sub as es,SubContent as en,SubTrigger as ei,Trigger as eo}from"@radix-ui/react-dropdown-menu";import{Virtuoso as ec}from"react-virtuoso";import{Close as ed,Content as e_,Description as em,Overlay as eh,Portal as eu,Root as ey,Title as ep,Trigger as eg}from"@radix-ui/react-dialog";import{Drawer as ev,Root as eb}from"vaul";import{OTPInput as ef}from"input-otp";import{useMask as eN}from"@react-input/mask";import{Indicator as ew,Item as ek,Root as ex}from"@radix-ui/react-radio-group";import{Range as eC,Root as ez,Thumb as eS,Track as eD}from"@radix-ui/react-slider";import{Content as eI,Group as eT,Icon as eP,Item as eF,ItemIndicator as eM,ItemText as eR,Label as eL,Portal as eq,Root as eA,ScrollDownButton as eO,ScrollUpButton as e$,Separator as eB,Trigger as ej,Value as eE,Viewport as eH}from"@radix-ui/react-select";import{Content as eV,List as eW,Tabs as eG,Trigger as eY}from"@radix-ui/react-tabs";import{Controller as eK,FormProvider as eJ,useController as eU,useFieldArray as eX,useForm as eQ,useFormContext as eZ,useWatch as e1}from"react-hook-form";import{createTheme as e0,globalKeyframes as e2,globalStyle as e6,keyframes as e5,style as e8,styleVariants as e3}from"@vanilla-extract/css";var e4={default:"default__1af895x1",secondary:"secondary__1af895x2",destructive:"destructive__1af895x3",outline:"outline__1af895x4"};function e9({className:e,variant:r="default",asChild:a=!1,...n}){return l(a?t:"span",{"data-slot":"badge",className:s("style__1af895x0",e4[r],e),...n})}var e7="style__1ersxw10",le={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},ll={default:"default__1ersxw14",destructive:"destructive__1ersxw15",outline:"outline__1ersxw16",ghost:"ghost__1ersxw17",link:"link__1ersxw18"};let lr=({className:e,variant:r="default",size:a="md",asChild:n=!1,isLoading:i=!1,fullWidth:o,...c})=>l(n?t:"button",{className:s(e7,ll[r],le[a],{style__1ersxw13:o,style__1ersxw12:i},e),...c}),lt=({className:e,disabled:r,...t})=>l(n,{className:s("style__c31e140",{style__c31e141:r,style__c31e142:t.error},e),...t}),la=({value:e,onChange:t,options:a,size:n,className:i,label:o,multiple:c})=>{let d=!0===c;return r("div",{className:s("style__1iqvz720",i),children:[o&&l(lt,{className:"style__1iqvz723",children:o}),l("div",{className:"style__1iqvz721",children:a.map(r=>{var a;return l(lr,{size:n,className:"style__1iqvz722",disabled:r.disabled,onClick:()=>{var l;return l=r.value,void(d?e.includes(l)?t(e.filter(e=>e!==l)):t([...e,l]):t(l))},variant:(a=r.value,d?e.includes(a):e===a)?"default":"outline",children:r.label},r.value)})})]})},ls=({className:e,...r})=>l("div",{className:s("style__oyalw00",e),...r}),ln=({className:e,...r})=>l("div",{className:s("style__oyalw01",e),...r}),li=({className:e,...r})=>l("h3",{className:s("style__oyalw02",e),...r}),lo=({className:e,...r})=>l("p",{className:s("style__oyalw03",e),...r}),lc=({className:e,...r})=>l("div",{className:s("style__oyalw04",e),...r}),ld=({className:e,...r})=>l("div",{className:s("style__oyalw05",e),...r}),l_=x.createContext(null);function lm(){let e=x.useContext(l_);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}var lh={horizontal:"horizontal__2d6ocq3",vertical:"vertical__2d6ocq4"};function lu({className:t,...a}){let{orientation:n="horizontal",canScrollNext:i,scrollNext:o,canScrollPrev:c,scrollPrev:d}=lm();return r(e,{children:[l("button",{className:s("style__2d6ocq1 style__2d6ocq0",lh[n]),type:"button","data-slot":"carousel-next",disabled:!i,onClick:o,...a,children:"horizontal"===n?l(u,{}):l(m,{})}),l("button",{type:"button",className:s("style__2d6ocq2 style__2d6ocq0",lh[n]),"data-slot":"carousel-previous",disabled:!c,onClick:d,...a,children:"horizontal"===n?l(h,{}):l(y,{})})]})}var ly={horizontal:"horizontal__i1lems1",vertical:"vertical__i1lems2"};function lp(e){let{carouselRef:r,orientation:t="horizontal"}=lm();return l("div",{className:"style__i1lems0",ref:r,"data-slot":"carousel-content",children:l("div",{className:ly[t],...e})})}var lg={horizontal:"horizontal__e2zpp61 style__e2zpp60",vertical:"vertical__e2zpp62 style__e2zpp60"},lv={horizontal:"horizontal__e2zpp64 style__e2zpp63",vertical:"vertical__e2zpp65 style__e2zpp63"};let lb=({api:e,orientation:r})=>{let{selectedIndex:t,scrollSnaps:a,onDotButtonClick:n}=(e=>{let[l,r]=R(0),[t,a]=R([]),s=S(l=>{e&&e.scrollTo(l)},[e]),n=S(e=>{e&&a(e.scrollSnapList())},[]),i=S(e=>{e&&r(e.selectedScrollSnap())},[]);return I(()=>{e&&(n(e),i(e),e.on("reInit",n).on("reInit",i).on("select",i))},[e,n,i]),{selectedIndex:l,scrollSnaps:t,onDotButtonClick:s}})(e);return l("div",{className:lg[r],children:a.map((e,a)=>l("button",{type:"button",className:s(lv[r],{style__e2zpp66:a===t}),onClick:()=>n(a)},e))})};function lf(e){return l("div",{className:"style__1gif6yr0",role:"group","aria-roledescription":"slide","data-slot":"carousel-item",...e})}function lN({width:e="100%",height:t="100%",...a}){let{canScrollNext:n,canScrollPrev:i,scrollNext:o,scrollPrev:c,api:d,opts:_,orientation:m,carouselRef:h,handleKeyDown:u,data:y,isShowButtons:p,isShowDots:g}=(({orientation:e="horizontal",opts:l,setApi:r,plugins:t,data:a,showDots:s,showArrows:n})=>{let[i,o]=L({...l,axis:"horizontal"===e?"x":"y"},t),[c,d]=R(!1),[_,m]=R(!1),h=!!(n&&a.length>1),u=!!(s&&a.length>1),y=S(e=>{e&&(d(e.canScrollPrev()),m(e.canScrollNext()))},[]),p=S(e=>{o&&o.scrollTo(e)},[o]),g=S(()=>{o?.scrollPrev()},[o]),v=S(()=>{o?.scrollNext()},[o]),b=S(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),v())},[g,v]);return I(()=>{o&&r&&r(o)},[o,r]),I(()=>{if(o)return y(o),o.on("reInit",y),o.on("select",y),()=>{o?.off("select",y)}},[o,y]),{carouselRef:i,api:o,scrollPrev:g,scrollNext:v,canScrollPrev:c,canScrollNext:_,handleKeyDown:b,opts:l,orientation:e,onDotButtonClick:p,isShowButtons:h,isShowDots:u,data:a}})(a);return l(l_.Provider,{value:{carouselRef:h,api:d,opts:_,orientation:m||(_?.axis==="y"?"vertical":"horizontal"),scrollPrev:c,scrollNext:o,canScrollPrev:i,canScrollNext:n},children:r("div",{onKeyDownCapture:u,className:s("Carousel__1jbydv50",a.className),"data-slot":"carousel",style:{width:e,height:t},children:[l(lp,{style:{width:e,height:t},children:y.map(e=>l(lf,{children:a.renderItem(e)},`${e[a.keyId]}`))}),p&&l(lu,{}),g&&l(lb,{api:d,orientation:m})]})})}let lw=({className:e,...r})=>l(A,{className:s("style__b7yo4k0",e),...r,children:l(q,{className:"style__b7yo4k1",children:l(_,{className:"style__b7yo4k2"})})});var lk={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},lx={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let lC=({size:e=30,thickness:t=2.6,color:s="primary",value:n=0,variant:i="indeterminate",className:o})=>{let c=(e-t)/2,d=2*Math.PI*c;return l("div",{className:a("style__m6b9n22",lk[i],lx[s],o),style:{width:e,height:e},children:r("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[l("title",{children:"Progress bar"}),l("circle",{className:a("style__m6b9n24","determinate"===i&&lk.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:t,strokeDasharray:d,strokeDashoffset:"determinate"===i?d*(1-n/100):.25*d})]})})},lz=({className:e,align:r="center",sideOffset:t=4,...a})=>l(j,{children:l(O,{align:r,sideOffset:t,className:s("style__1xy4jvu2",e),...a})});var lS={left:"left__1sba6zok",center:"center__1sba6zol",right:"right__1sba6zom",justify:"justify__1sba6zon"},lD={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi",muted:"muted__1sba6zoj"},lI={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"},lT={lowercase:"lowercase__1sba6zou",uppercase:"uppercase__1sba6zov",capitalize:"capitalize__1sba6zow"},lP={block:"block__1sba6zoo",inline:"inline__1sba6zop"},lF={none:"none__1sba6zox",underline:"underline__1sba6zoy",lineThrough:"lineThrough__1sba6zoz"},lM={normal:"normal__1sba6zoq",medium:"medium__1sba6zor",semibold:"semibold__1sba6zos",bold:"bold__1sba6zot"};let lR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},lL=({className:e,variant:r="body1",component:t,color:a="primary",align:n="left",display:i="inline",weight:o="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...h})=>l(t||lR[r||"body1"],{className:s(lF[d],lI[r],lD[a],lM[o],c&&lT[c],lP[i],lS[n],{style__1sba6zo10:_},e),...h,children:m}),lq=e=>{let{open:t,onActionComponentClick:a,onCancel:n,confirmButtonProps:i,onOpenChange:o}=(({skipConfirm:e,onConfirm:l,confirmButtonProps:r})=>{let[t,a]=R(!1);return{open:t,onActionComponentClick:()=>{e?l():a(!0)},confirmButtonProps:{variant:r?.isAccented?"destructive":"default",size:"sm",onClick:()=>{a(!1),l()}},onCancel:()=>{a(!1)},onOpenChange:e=>{a(e)}}})(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:h="Подтвердить"}=d||{},{side:u="bottom",align:y="center"}=_||{};return r($,{open:t,onOpenChange:o,children:[l(B,{asChild:!0,children:m({onClick:a})}),l(lz,{side:u,align:y,className:s("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:r("div",{className:"style__1q1uhgp1",children:[c&&l(lL,{children:c}),r("div",{className:"style__1q1uhgp0",children:[l(lr,{size:"sm",variant:"ghost",onClick:n,children:"Отмена"}),l(lr,{...i,children:h})]})]})})]})};var lA={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let lO=e=>l("img",{alt:e.alt,src:e.src,className:a("style__1o97kvm0",lA[e.size||"md"],e.className),width:e.width,height:e.height}),l$={sm:"239px",md:"323px",lg:"458px"},lB={sm:"119px",md:"161px",lg:"229px"},lj={sm:"384px",md:"400px",lg:"460px"},lE={sm:"subtitle1",md:"h6",lg:"h5"};var lH={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let lV=({className:e,title:t,imgSrc:s,imgAlt:n,description:i,actions:o,size:c="sm",renderImage:d})=>{let _=F(()=>d||lO,[d]);return r("div",{className:a("style__1nenzg00",lH[c],e),children:[r("div",{className:"style__1nenzg04",style:{maxWidth:lj[c]},children:[s&&l(_,{src:s,alt:n,width:l$[c],height:lB[c],size:c}),l(lL,{align:"center",color:"secondary",variant:lE[c],children:t}),i&&l(lL,{className:"style__1nenzg05",component:"div",variant:"body1",children:i})]}),o&&l("footer",{className:"style__1nenzg06",children:o})]})},lW=({isLoading:e,isError:r,isCustom:t,errorState:a,customState:s,children:n,loadingContent:i=l(lC,{color:"primary"})})=>{if(e)return l("div",{className:"style__nan0ao0",children:i});if(t&&s)return l(lV,{...s});if(r&&a){let{title:e="Произошла ошибка",imgAlt:r,imgSrc:t,errorList:s,onRetry:n,actions:i=l(lr,{onClick:n,children:"Попробовать снова"})}=a,o=s.map(e=>l(lL,{component:"p",children:e},e));return l(lV,{title:e,description:o,imgAlt:r,imgSrc:t,actions:i})}return n},lG=({sideOffset:e=4,alignOffset:r,ref:t,...a})=>l(H,{ref:t,sideOffset:e,...a}),lY=({text:e,content:t,children:s,side:n="top",sideOffset:i,alignOffset:o,delayDuration:c=0,className:d,ref:_,...m})=>l(W,{delayDuration:c,children:r(G,{...m,children:[l(Y,{ref:_,asChild:!0,children:s}),t||e?l(V,{children:r(lG,{className:a("style__izacrl2",d),alignOffset:o,sideOffset:i,hideWhenDetached:!0,side:n,children:[t??l("p",{className:"style__izacrl3",children:e}),m.arrow&&l(E,{className:"style__izacrl4"})]})}):null]})}),lK=e=>{let{children:t,copyPosition:a="right",copyText:n,isShowCopyText:i,color:o,className:c,...d}=e,_=()=>l(v,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:h,handleMouseLeave:u,handleClick:y,tooltipTitle:p,isIconOnLeft:g}=(({children:e,copyText:l,isShowCopyText:r,copyPosition:t})=>{let[a,s]=R("Скопировать"),[n,i]=R(!1);return{handleMouseLeave:()=>{"Скопировать"!==a&&setTimeout(()=>{s("Скопировать")},100),i(!1)},handleClick:r=>{r.stopPropagation(),navigator.clipboard.writeText(l||("string"==typeof e?e:"")).then(()=>s("Скопировано")).catch(()=>s("Ошибка копирования"))},tooltipTitle:r?`${a}: ${l}`:a,isIconOnLeft:"left"===t,tooltipOpen:n,handleMouseEnter:()=>{i(!0)}}})(e);return l(lY,{open:m,arrow:!0,text:p,side:"bottom",children:r(lL,{onMouseLeave:u,onMouseEnter:h,onClick:y,component:"div",color:o,className:s("style__1wpx85c0",c),...d,children:[g&&_(),t,!g&&_()]})})},lJ=C({pinned:!0,hovered:!1,togglePinned:()=>{}}),lU=()=>D(lJ),lX="16rem",lQ=({children:e,className:r})=>{let{pinned:t,togglePinned:a}=(()=>{let[e,l]=((e,l,r)=>{if(void 0===window)return[l,()=>{},()=>{}];if(!e)throw Error("useLocalStorage key may not be falsy");let t=JSON.parse,a=M(e=>{try{let r=(0,JSON.stringify),a=localStorage.getItem(e);if(null!==a)return t(a);return l&&localStorage.setItem(e,r(l)),l}catch{return l}}),[s,n]=R(()=>a.current(e));P(()=>n(a.current(e)),[e]);let i=S(l=>{try{let a,i="function"==typeof l?l(s):l;if(void 0===i)return;a=r?r.raw?"string"==typeof i?i:JSON.stringify(i):r.serializer?r.serializer(i):JSON.stringify(i):JSON.stringify(i),localStorage.setItem(e,a),n(t(a))}catch{}},[e,n]);return[s,i,S(()=>{try{localStorage.removeItem(e),n(void 0)}catch{}},[e,n])]})("dashboard::pinned",!1);return{pinned:e,togglePinned:()=>l(!e)}})();return l(lJ.Provider,{value:{pinned:t,togglePinned:a},children:l("div",{className:s("DashboardLayout__113u7x50",r),children:e})})};function lZ({row:e,column:r,rowIndex:t,height:a}){let{align:n,cellColor:i,isDisabled:o}=r;return l("td",{align:n??"left",style:{backgroundColor:i?.(e),height:a,width:r.width},className:s("style__1047swj0",{style__1047swj1:o},r.cellClassName?.(e)),children:l(()=>r.renderCell?r.renderCell(e,t):r.format?r.format(e)||"—":r.field?`${e[r.field]||"—"}`:"—",{})})}function l1({row:e,rowHeight:r,onRowClick:t,columns:a,rowIndex:n,rowId:i}){let o=S(()=>{t?.(e)},[t,e]);return l("tr",{onClick:o,onKeyDown:o,className:s("style__gsm9mv0",{style__gsm9mv1:!!t}),children:a.map((t,a)=>l(lZ,{row:e,rowIndex:n,column:t,height:r},`${i}-${a}`))})}function l0({isLoading:e,isEmpty:r,columnsLength:t,emptyState:a={text:"Нет данных"},errorState:s={text:"Произошла ошибка"},isError:n,onRetry:i}){let o=({children:e})=>l("tr",{className:"style__15m2ib80",children:l("td",{colSpan:t,align:"center",children:e})});if(e)return l(o,{children:l("span",{className:"style__15m2ib81",children:l(lC,{})})});if(r){let{imgSrc:e,imgAlt:r,text:t}=a;return l(o,{children:l(lV,{title:t,imgSrc:e,imgAlt:r})})}if(n){let{imgSrc:e,imgAlt:r,text:t}=s;return l(o,{children:l(lV,{title:t,imgSrc:e,imgAlt:r,actions:i?l(lr,{variant:"outline",onClick:i,children:"Попробовать снова"}):void 0})})}return null}lQ.Sidebar=({width:e=lX,header:t,footer:a,content:n,className:i})=>{let{pinned:o}=lU();return r("div",{style:{width:o?e:0},className:"style__1low90p0",children:[l("span",{className:"SidebarTrigger__1low90p1"}),r("aside",{style:{width:e},className:s("SidebarContainer__1low90p2",{style__1low90p3:!o},i),children:[t&&l("header",{className:"SidebarHeader__1low90p4",children:t}),l("div",{className:"SidebarContent__1low90p6",children:n}),a&&l("footer",{className:"SidebarFooter__1low90p5",children:a})]})]})},lQ.Main=({children:e,className:r})=>l("main",{className:s("style__whkxou0",r),children:e});var l2="style__82af400";function l6({isError:e,isLoading:r,emptyState:t,errorState:a,columns:s,rows:n,rowHeight:i,keyId:o,onRowClick:c}){let d=0===n.length;return e||r||d?l("tbody",{className:l2,children:l(l0,{emptyState:t,errorState:a,isEmpty:d,isError:e,isLoading:r,columnsLength:s.length})}):l("tbody",{className:l2,children:n.map((e,r)=>{let t=String(e[o]);return l(l1,{row:e,rowId:t,rowHeight:i,columns:s,onRowClick:c,rowIndex:r},e[o])})})}function l5({children:e,className:r}){return l("footer",{className:s("style__2s55b60",r),children:e})}function l8({column:e,height:r,width:t}){return l("th",{style:{color:e.color,height:r,width:t},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function l3({columns:e,height:r,sticky:t}){return l("thead",{children:l("tr",{className:s({style__fkgoub0:t}),children:e.map(e=>l(l8,{column:e,height:r,width:e.width},e.title))})})}function l4({rows:e,columns:t,height:a="100%",className:n,rowHeight:i=40,headerHeight:o=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:h,emptyState:u,errorState:y,footer:p,title:g,stickyHeader:v,onRetry:b}){let f=_||h||0===e.length;return r("div",{"data-slot":"data-grid",style:{height:a},className:s("style__1gqvluf0",n),children:[r("table",{className:s("style__1gqvluf1",{style__1gqvluf3:m,style__1gqvluf4:_,style__1gqvluf2:f},n),children:[g&&l("caption",{className:"style__1gqvluf5",children:g}),l(l3,{columns:t,height:o,sticky:v}),l(l6,{rows:e,columns:t,rowHeight:i,keyId:c,onRowClick:d,isLoading:_,emptyState:u,errorState:y,isError:h,onRetry:b})]}),p&&l(l5,{children:p})]})}var l9="style__1ib8wkt3";let l7=et,re=eo,rl=U,rr=ee,rt=es,ra=el,rs=({className:e,inset:t,children:s,...n})=>r(ei,{className:a("style__1ib8wkt2",{inset:t},e),...n,children:[s,l(u,{className:l9})]}),rn=({className:e,...r})=>l(en,{className:a("style__1ib8wkt4",e),...r}),ri=({className:e,sideOffset:r=4,...t})=>l(ee,{children:l(J,{sideOffset:r,className:a("style__1ib8wkt5",e),...t})}),ro=({className:e,inset:r,...t})=>l(X,{className:a("style__1ib8wkt6",{inset:r},e),...t}),rc=({className:e,children:t,checked:s,...n})=>r(K,{className:a("style__1ib8wkt7",e),checked:s,...n,children:[l("span",{className:"style__1ib8wkt9",children:l(Q,{children:l(_,{className:l9})})}),t]}),rd=({className:e,children:t,...s})=>r(er,{className:a("style__1ib8wkt8",e),...s,children:[l("span",{className:"style__1ib8wkta",children:l(Q,{children:l(p,{className:l9})})}),t]}),r_=({className:e,inset:r,...t})=>l(Z,{className:a("style__1ib8wktb",{inset:r},e),...t}),rm=({className:e,...r})=>l(ea,{className:a("style__1ib8wktc",e),...r}),rh=({className:e,...r})=>l("span",{className:a("style__1ib8wktd",e),...r}),ru=r=>{let{tooltipProps:t}=(({action:e})=>{let{isLoading:l,disabledReason:r,name:t}=e,[a,s]=R(!1);return I(()=>{l&&s(!1)},[l]),{tooltipProps:{text:r||t,open:a,onOpenChange:e=>s(e)}}})(r),{action:a,onActionClick:s,isDisabled:n,tooltipPlacement:i}=r,{name:o,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:h,isLoading:u,onClick:y}=a,p=e=>l(lY,{arrow:!0,side:i,...t,children:l(lr,{disabled:n||h,isLoading:u,variant:"ghost",size:"icon",...e,children:c})},o);return l(e,{children:d?l(lq,{text:_,confirmButtonProps:m,actionComponent:e=>p(e),onConfirm:s(y)}):p({onClick:s(y)})})},ry=({action:e,onActionClick:t,isDisabled:a,tooltipPlacement:s})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:c,actions:d,isLoading:_}=e;return r(l7,{children:[l(re,{asChild:!0,children:l(lY,{text:c||o,side:s,arrow:!0,children:l(lr,{variant:"ghost",size:"icon",isLoading:_,disabled:a||n,children:i})},o)}),l(ri,{children:d.map(({name:e,onClick:r,...a})=>z(ro,{...a,key:e,asChild:!0},l(lr,{size:"sm",onClick:t(r),children:e})))})]})}return l(ru,{action:e,onActionClick:t,isDisabled:a,tooltipPlacement:s})},rp=({actions:e,onActionClick:t,tooltipPlacement:a,isDisabled:s})=>r(l7,{children:[l(re,{asChild:!0,children:l(lr,{disabled:s,variant:"ghost",size:"icon",children:l(f,{})})}),l(ri,{children:e.map(e=>{let{onClick:r,name:s,disabledReason:n,isLoading:i}=e;return l(ro,{asChild:!0,children:l(lY,{arrow:!0,side:a,text:n,children:l(lr,{onClick:t(r),isLoading:i,variant:"ghost",size:"sm",fullWidth:!0,children:s})})},s)})})]}),rg=e=>{let{isDisabledAction:t,handleWrapperClick:a,handleActionClick:s}=(({row:e,actions:l})=>{let{main:r,secondary:t}=l,a=[...r,...t||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!a,handleActionClick:S(l=>()=>{l?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}})(e),{actions:n}=e,{main:i,secondary:o}=n;return r("div",{onClick:a,onKeyDown:a,className:"style__y44ln70",children:[i.map(e=>l(ry,{action:e,onActionClick:s,isDisabled:t,tooltipPlacement:"top"},e.name)),o&&l(rp,{actions:o,onActionClick:s,tooltipPlacement:"left",isDisabled:t})]})};var rv={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function rb({sorting:e,setSorting:t,column:{title:a,field:n,align:d="left"},className:_}){return n?r("button",{type:"button",className:s("style__o752f00",rv[d],_),onClick:()=>{e.key===n?t({key:n,order:"asc"===e.order?"desc":"asc"}):t({key:n,order:"asc"})},children:[a,e.key===n?"asc"===e.order?l(i,{size:16}):l(c,{size:16}):l(o,{size:16})]}):null}let rf="Вы достигли конца списка",rN=({endOfScrollMsg:e=rf})=>l("li",{className:"style__1syvw5e0",children:l(lL,{children:e})}),rw=({onRetry:e})=>r("li",{className:"style__qlujai0",children:[l(lL,{align:"center",children:"Ошибка загрузки"}),l(lr,{size:"sm",onClick:e,children:"Попробовать снова"})]}),rk=()=>l("li",{className:"style__111czea0",children:l(lC,{color:"primary"})}),rx=({noDataImgSrc:e})=>l(lV,{title:"Нет данных",imgSrc:e}),rC=({onClick:e,isVisible:r})=>l(lr,{onClick:e,size:"icon",variant:"outline",className:s("style__1jg5nd90",{style__1jg5nd91:r}),children:l(y,{})}),rz=({data:t,keyId:a,className:n,itemContent:i,noDataPlaceholder:o,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:h,onRetry:u,onEndReached:y,scrollTopIsDataChanged:p})=>{let g=M(null),[v,b]=R(!1),f=S(e=>{e.startIndex>2?b(!0):b(!1)},[]),N=S(()=>g.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[g]),w=S(()=>{!h&&y&&y()},[h,y]),k=!!t?.length;return k||_||m?(I(()=>{p&&g.current?.scrollToIndex({index:0,align:"start"})},[p,t]),r(lW,{isLoading:_&&!k,isError:m&&!k,errorState:d,children:[l(ec,{className:s("style__1ezen7g0",n),style:{height:"100%"},data:t,ref:g,overscan:30,endReached:w,rangeChanged:f,itemContent:(e,r)=>l("li",{children:i?.(r,{index:e,className:s("style__1ezen7g1","datalist_item")})},r[a]),components:{Footer:()=>r(e,{children:[_&&l(rk,{}),m&&l(rw,{onRetry:u}),h&&l(rN,{endOfScrollMsg:c})]})}}),l(rC,{isVisible:v,onClick:N})]})):o?l(e,{children:o}):l(rx,{})},rS=":",rD="—",rI="descriptionRoot",rT=C({leader:!1,separator:rS,direction:"default"}),rP=({children:e,leader:r,separator:t,direction:a})=>l(rT.Provider,{value:{leader:r,separator:t,direction:a},children:e});var rF={row:"row__1lociyw1",column:"column__1lociyw2"},rM={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"},rR="style__sdcsnp2";let rL=e=>{let{descriptionContextProviderProps:r,direction:t}=(({direction:e="row",separator:l=rS})=>({descriptionContextProviderProps:{separator:"column"===e?"":l},direction:e}))(e),{justifyContent:a="start",component:n="dl",children:i,leader:o=!1,className:c}=e;return l(rP,{leader:o,direction:t,...r,children:l(n,{className:s("style__1lociyw0",rF[t],rM[a],rI,c),children:i})})};rL.Name=({children:t,color:a="secondary",...n})=>{let{leader:i,separator:o}=D(rT);return r(e,{children:[l("dt",{className:s("style__1tsgk1i0",{style__1tsgk1i1:i}),children:r(lL,{...n,color:a,children:[t,!i&&o]})}),i&&l("div",{className:"style__1tsgk1i2"})]})},rL.Value=e=>{let{valueToRender:r,isDefaultValueRender:t,leader:s}=(({canCopy:e,children:l,stub:r="—"})=>{let{leader:t,direction:a}=D(rT);return{valueToRender:l||r,isDefaultValueRender:!e||!l,leader:t,direction:a}})(e),{copyPosition:n="right",copyText:i,canCopy:o,children:c,stub:d,..._}=e;return t?l(lL,{className:a("style__sdcsnp1",{[rR]:s}),component:"dd",..._,children:r}):l("dd",{className:"style__sdcsnp0",children:l(lK,{className:a({[rR]:s}),copyPosition:n,copyText:i,..._,children:r})})};let rq=({title:e,description:t="",trigger:s,className:n,footer:i,children:o,...c})=>r(ey,{...c,children:[s&&l(eg,{asChild:!0,children:s}),r(eu,{children:[l(eh,{className:a("style__8bkmbe2")}),r(e_,{className:a("style__8bkmbe5",n),children:[r("div",{className:a("style__8bkmbe8",{style__8bkmbe9:!!t}),children:[l(ep,{className:"style__8bkmbeb",children:e}),l(em,{className:"style__8bkmbec",children:t}),c.onOpenChange&&r(ed,{className:"style__8bkmbe6",children:[l(k,{size:24}),l("span",{className:"style__8bkmbe7",children:"Close"})]})]}),o,i&&l("div",{className:"style__8bkmbea",children:i})]})]})]}),rA=({children:e,trigger:t,className:a,title:n,description:i="",footer:o,closeButton:c,...d})=>r(eb,{...d,children:[t&&l(ev.Trigger,{"data-slot":"drawer-trigger",asChild:!0,children:t}),r(ev.Portal,{"data-slot":"drawer-portal",children:[l(ev.Overlay,{"data-slot":"drawer-overlay",className:"style__ccss502"}),r(ev.Content,{"data-slot":"drawer-content",className:s("group/drawer-content","style__ccss503",a),children:[l("div",{className:"style__ccss504"}),r("div",{"data-slot":"drawer-header",className:"style__ccss505",children:[l(ev.Title,{"data-slot":"drawer-title",className:"style__ccss507",children:n}),l(ev.Description,{"data-slot":"drawer-description",className:"style__ccss508",children:i})]}),e,r("div",{"data-slot":"drawer-footer",className:"style__ccss506",children:[o,c&&l(ev.Close,{"data-slot":"drawer-close",asChild:!0,children:c})]})]})]})]});var rO="style__a5l83v0",r$="style__a5l83v4";let rB=({images:t=[],autoPlay:a=!1,interval:n=5e3})=>{let[i,o]=R(0);return(I(()=>{if(!a)return;let e=setInterval(()=>{o(e=>e===t.length-1?0:e+1)},n);return()=>clearInterval(e)},[a,t.length,n]),0===t.length)?l("div",{className:rO,children:"Нет изображений для отображения"}):r("div",{className:rO,children:[l("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*i}%)`},children:t.map((e,r)=>l("div",{className:"style__a5l83v2",children:l("img",{src:e.src,alt:e.alt||`Slide ${r+1}`,className:"style__a5l83v3"})},e.src))}),t.length>1&&r(e,{children:[l("button",{type:"button",className:s(r$,"style__a5l83v5"),onClick:()=>{o(e=>0===e?t.length-1:e-1)},children:l(h,{size:24})}),l("button",{type:"button",className:s(r$,"style__a5l83v6"),onClick:()=>{o(e=>e===t.length-1?0:e+1)},children:l(u,{size:24})}),l("div",{className:"style__a5l83v7",children:t.map(({src:e},r)=>l("button",{type:"button",className:`style__a5l83v8 ${i===r?"active":""}`,onClick:()=>{o(r)}},e))})]})]})};var rj={sm:"sm__1blk89u9",md:"md__1blk89ua",lg:"lg__1blk89ub"},rE="style__1blk89uc",rH={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"},rV="style__1blk89u6";let rW=({error:e,variant:t="outlined",size:a="md",startAdornment:n,endAdornment:i,className:o,disabled:c,fullWidth:d,value:_,ref:m,...h})=>r("div",{className:s("Input__1blk89u0",rH[t],{style__1blk89u7:e},{[rV]:c},{style__1blk89u3:d},o),children:[n&&l("span",{className:rE,children:n}),l("input",{className:s("style__1blk89u8",rj[a],{[rV]:c,style__1blk89ud:!!n,style__1blk89ue:!!i}),ref:m,disabled:c,value:_||"",...h}),i&&l("span",{className:rE,children:i})]}),rG=({separator:e="•",...r})=>l("div",{...r,children:l("span",{className:"style__te1pgr0",children:e})}),rY=({char:e,hasFakeCaret:t,isActive:a,...n})=>r("div",{className:s("style__rtks2g0",{style__rtks2g1:a}),...n,children:[e,t&&l("div",{className:"style__rtks2g2",children:l("div",{className:"style__rtks2g4"})})]});var rK="style__1iixe0l2";let rJ=({className:t,containerClassName:a,disabled:n,...i})=>l(ef,{containerClassName:s("style__1iixe0l0",{style__1iixe0l3:n},a),className:s("style__1iixe0l1",t),render:({slots:t})=>t.length%2!=0?l("div",{className:rK,children:t.map((e,r)=>l(rY,{...e},`${r}-${e.char}`))}):r(e,{children:[l("div",{className:rK,children:t.slice(0,t.length/2).map((e,r)=>l(rY,{...e},`${r}-${e.char}`))}),l(rG,{}),l("div",{className:rK,children:t.slice(t.length/2).map((e,r)=>l(rY,{...e},`${r}-${e.char}`))})]}),...i}),rU=({label:e,helperText:t,className:a,disabled:n,fullWidth:i,ref:o,labelClassName:c,...d})=>r("div",{className:s("style__kqu4y20",{style__kqu4y25:i},a),children:[e&&l(lt,{htmlFor:d.id||e,disabled:n,error:d.error,className:s("style__kqu4y21",c),children:e}),l(rW,{ref:o,disabled:n,fullWidth:i,id:d.id||e,...d}),t&&l(lL,{variant:"caption",className:s("style__kqu4y22",{style__kqu4y24:d.error,style__kqu4y23:n}),children:t})]}),rX=({maskProps:e,ref:r,...t})=>{let a=eN(e);return l(rU,{ref:S(e=>{a.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[a,r]),...t})},rQ=({children:e,className:r})=>l("div",{className:s("style__adrl250",r),children:e});rQ.Header=e=>{let{title:t,subtitle:a,breadcrumbs:n,actions:i,backButton:o,className:c}=e,{pinned:d,togglePinned:_}=lU();return I(()=>{"string"==typeof t&&(document.title=t)},[t]),r("header",{className:s("page_header","style__nvcxbd1",c),children:[r("div",{className:"style__nvcxbd2",children:[l(lY,{text:d?"Развернуть":"Свернуть",children:l(lr,{variant:"ghost",size:"icon",onClick:_,children:d?l(w,{}):l(N,{})})}),o&&l(lY,{text:"Назад",children:l(lr,{...o,variant:"ghost",children:l(h,{})})})]}),n&&l("div",{className:"Breadcrumbs__nvcxbd0",children:n}),l("div",{className:"style__nvcxbd3",children:i}),"string"==typeof t?l(lL,{className:"style__nvcxbd4",component:"h1",variant:"h3","aria-level":1,children:t}):l("div",{className:"style__nvcxbd5",children:t}),a&&"string"==typeof a&&l(lL,{className:"style__nvcxbd6","aria-level":2,children:a}),a&&"string"!=typeof a&&l("div",{className:"style__nvcxbd7",children:a})]})},rQ.Content=e=>{let{className:r,children:t,isFullHeight:a=!0}=e;return l("article",{className:s("page-content","style__1hr0uh00",{style__1hr0uh01:a},r),children:t})},rQ.Footer=e=>{let{children:r,className:t}=e;return l("footer",{className:s("style__1bd8jnw0",t),children:r})},rQ.Aside=({children:e,className:r})=>l("aside",{className:s("PageLayoutAside__1un4hm80",r,"page_aside"),children:e});let rZ=(e,l)=>Array.from({length:l-e+1},(l,r)=>r+e);function r1(e){let{onPageChange:t,totalCount:a,siblingCount:s=1,currentPage:n,pageSize:i,size:o="icon"}=e,c=(({totalCount:e,pageSize:l,siblingCount:r=1,currentPage:t})=>F(()=>{if(l<=0||e<=0)return[];let a=Math.ceil(e/l);if(r+5>=a)return rZ(1,a);let s=Math.max(t-r,1),n=Math.min(t+r,a),i=s>2,o=n<a-2;return!i&&o?[...rZ(1,3+2*r),null,a]:i&&!o?[1,null,...rZ(a-(3+2*r)+1,a)]:i&&o?[1,null,...rZ(s,n),null,a]:[]},[e,l,r,t]))({currentPage:n,totalCount:a,siblingCount:s,pageSize:i});if(0===n||c&&c.length<2)return null;let d=c.at(-1);return r("nav",{className:"style__p708oq0",children:[l(lr,{variant:"ghost",size:o,onClick:()=>{t(n-1)},disabled:1===n,children:l(h,{})}),c?.map((e,r)=>e?l(lr,{size:o,variant:e===n?"default":"outline",onClick:()=>t(+e),children:e},`${e}${r.toString()}`):l("span",{className:"style__p708oq1",children:l(b,{})})),l(lr,{variant:"ghost",size:o,onClick:()=>{t(n+1)},disabled:n===d,children:l(u,{})})]})}let r0=["Янв.","Фев.","Мар.","Апр.","Май","Июн.","Июл.","Авг.","Сен.","Окт.","Ноя.","Дек."],r2=["I квартал","II квартал","III квартал","IV квартал"],r6=e=>Math.ceil(e/3);function r5({year:e,onSelect:t,minDate:a,maxDate:s}){let n=Array.from({length:s.getFullYear()-a.getFullYear()+1},(e,l)=>a.getFullYear()+l);return r(to,{onValueChange:e=>{t?.(Number(e))},value:e.toString(),children:[l(t_,{children:l(td,{placeholder:e.toString()})}),l(tu,{children:n.map(e=>l(tp,{value:e.toString(),children:l(lL,{align:"center",variant:"subtitle1",transform:"capitalize",children:e})},e))})]})}let r8=e=>{let{label:t,disabled:a=!1,value:s,onSelect:n,type:i="month",placeholder:o="month"===i?"Выберите месяц":"Выберите квартал",error:c,helperText:_,max:m=new Date(2050,0,1),min:h=new Date(2e3,0,1),className:u,size:y,fullWidth:p,name:g}=e,v=new Date,[b,f]=R(!1),[N,w]=R(v.getFullYear()),k=e=>{n?.(e),f(!1)},x="month"===i?s?.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):s?`${r2[r6(s.getMonth())]} ${s.getFullYear()}`:"";return I(()=>{s&&w(s.getFullYear())},[s]),r($,{open:b,onOpenChange:f,children:[l(rU,{label:t,value:x,disabled:a,size:y,fullWidth:p,name:g,endAdornment:l(B,{asChild:!0,children:l(lr,{disabled:a,variant:"ghost",size:"icon",children:l(d,{})})}),placeholder:o,error:c,helperText:_,className:u}),l(lz,{align:"end",alignOffset:-10,side:"bottom",children:r("div",{className:"style__1izfmw30",children:[l(r5,{year:N,onSelect:w,minDate:h,maxDate:m}),"month"===i?l("div",{className:"style__1izfmw31",children:r0.map((e,r)=>{let t=new Date(N,r,s?.getDate()||1);return l(lr,{variant:s?.getMonth()===r&&s.getFullYear()===t.getFullYear()?"default":"ghost",disabled:t<h||t>m,onClick:()=>k(t),children:e},e)})}):l("div",{className:"style__1izfmw32",children:r2.map((e,r)=>{let t=new Date(N,3*r,1);return l(lr,{variant:s&&[r6(s.getMonth())===r,s.getFullYear()===t.getFullYear()].every(Boolean)?"default":"ghost",disabled:t<h||t>m,onClick:()=>k(t),children:e},e)})})]})})]})},r3=({className:e,...r})=>l(ex,{"data-slot":"radio-group",className:a("RadioGroup__ia95d10",e),...r}),r4=({className:e,label:t,...a})=>r("div",{className:"style__ia95d11",children:[l(ek,{"data-slot":"radio-group-item",id:a.id||a.value,className:s("style__ia95d12",e),...a,children:l(ew,{"data-slot":"radio-group-indicator",className:"style__ia95d13",children:l(g,{className:"style__ia95d14"})})}),l(lt,{htmlFor:a.id||a.value,"data-slot":"radio-group-label",children:t})]});var r9="style__h9oy583";let r7=({className:e,...t})=>r(ez,{className:s("style__h9oy580",e),...t,children:[l(eD,{className:"style__h9oy581",children:l(eC,{className:"style__h9oy582"})}),l(eS,{className:r9}),t.value?.length===2&&l(eS,{className:r9})]});var te={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},tl="style__1pnwkko6",tr="style__1pnwkko5";function tt({min:e,max:t,onChange:a,minValue:n,maxValue:i,width:o=150,label:c="",unit:d="",size:_="md",className:m,isActive:h,minInputRef:u,maxInputRef:y}){let{onMinValueChange:p,onMaxValueChange:g,minVal:v,maxVal:b,onKeyDown:f,onValueChange:N,onConfirm:w,id:k}=(({min:e,max:l,maxValue:r,minValue:t,onChange:a})=>{let s=T(),[n,i]=R(e),[o,c]=R(l);return I(()=>{i(t||e),c(r||l)},[t,r,e,l]),{id:s,minVal:n,maxVal:o,onValueChange:e=>{if(e[0]===e[1])return void a(e[0],e[1]);i(e[0]),c(e[1])},onMinValueChange:e=>{let{value:l}=e.target;Number.isNaN(+l)||i(+l)},onMaxValueChange:e=>{let{value:l}=e.target;Number.isNaN(l)||c(+l)},onKeyDown:r=>{"Enter"===r.key&&a(n>=e&&n<=l?n:e,o>=e&&o<=l?o:l)},onConfirm:e=>{a(e[0],e[1])}}})({min:e,max:t,maxValue:i,minValue:n,onChange:a});return r("div",{className:s("style__1pnwkko0",te[_],{style__1pnwkko1:h},m),style:{width:o},children:[l(lL,{className:tr,color:"disabled",variant:"body2",children:c}),l(lL,{className:tr,color:"disabled",variant:"body2",children:"от"}),l("input",{className:tl,type:"text",id:k,value:v,onChange:p,onKeyDown:f,ref:u}),l(lL,{className:tr,color:"disabled",variant:"body2",children:"до"}),l("input",{className:tl,type:"text",id:k,value:b,onChange:g,onKeyDown:f,ref:y}),l(lL,{className:tr,color:"disabled",variant:"body2",children:d}),l("div",{className:"style__1pnwkko7",children:l(r7,{min:e,max:t,value:[Number(v),Number(b)],onValueChange:N,onValueCommit:w})})]})}function ta({onClick:e,variant:r="outline",...t}){let[a,n]=R(!1),i=()=>{window.scrollY>400?n(!0):n(!1)};return I(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),l(lr,{type:"button",variant:r,className:s("style__1ou2vjc0",{style__1ou2vjc1:a}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})}),...t,children:l(y,{})})}var ts={sm:"sm__5ilg7o3",md:"md__5ilg7o4",lg:"lg__5ilg7o5"},tn="style__5ilg7od",ti="style__5ilg7o6";let to=eA,tc=eT,td=eE,t_=({className:e,children:t,size:a="md",...n})=>r(ej,{className:s("style__5ilg7o2",ts[a],e),...n,children:[t,l(eP,{asChild:!0,children:l(m,{className:"style__5ilg7oe"})})]}),tm=({className:e,...r})=>l(e$,{className:s(ti,e),...r,children:l(y,{className:tn})}),th=({className:e,...r})=>l(eO,{className:s(ti,e),...r,children:l(m,{className:tn})}),tu=({className:e,children:t,position:a="popper",...n})=>l(eq,{children:r(eI,{className:s("style__5ilg7o7",e),position:a,...n,children:[l(tm,{}),l(eH,{className:"style__5ilg7o8",children:t}),l(th,{})]})}),ty=({className:e,...r})=>l(eL,{className:`style__5ilg7o9 ${e||""}`,...r}),tp=({className:e,children:t,...a})=>r(eF,{className:`style__5ilg7oa ${e||""}`,...a,children:[l("span",{className:"style__5ilg7ob",children:l(eM,{children:l(_,{className:tn})})}),l(eR,{children:t})]}),tg=({className:e,...r})=>l(eB,{className:`style__5ilg7oc ${e||""}`,...r});var tv={sm:"sm__hworoa2",md:"md__hworoa3",lg:"lg__hworoa4"};let tb=e=>l(eG,{...e});tb.Content=({className:e,...r})=>l(eV,{className:s("style__hworoa5",e),...r}),tb.List=({className:e,...r})=>l(eW,{className:s("style__hworoa0",e),...r}),tb.Trigger=({className:e,size:r="md",...t})=>l(eY,{className:s("style__hworoa1",tv[r],e),...t});let tf=({form:e,children:r,...t})=>l(eJ,{...e,children:l("form",{noValidate:!0,...t,children:r})});function tN({name:e,control:r,...t}){return l(eK,{control:r,name:e,render:({field:e,fieldState:r})=>l(rX,{...t,...e,error:!!r.error,helperText:r.error?.message})})}let tw=({mode:e="onBlur",...l}={})=>eQ({...l,mode:e}),tk=({children:e,isLoading:r,...t})=>{let{formState:a}=eZ();return l(lr,{type:"submit",isLoading:r||a.isSubmitting,...t,children:e})};function tx({name:e,control:r,gridArea:t,...a}){return l(eK,{control:r,name:e,render:({field:e,fieldState:r})=>l(rU,{...a,...e,style:{gridArea:t},value:e.value||"",error:!!r.error,helperText:r.error?.message})})}var tC={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)"},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)"},boxShadow:{sm:"var(--boxShadow-sm)",default:"var(--boxShadow-default)",md:"var(--boxShadow-md)",lg:"var(--boxShadow-lg)",xl:"var(--boxShadow-xl)"}};export{e9 as Badge,lr as Button,la as ButtonGroup,ls as Card,lc as CardContent,lo as CardDescription,ld as CardFooter,ln as CardHeader,li as CardTitle,lN as Carousel,lw as Checkbox,lC as CircularProgress,lq as ConfirmAction,lW as ContentState,lK as CopyTypography,rS as DEFAULT_SEPARATOR,rD as DEFAULT_SYMBOL,rI as DESCRIPTION_ROOT_CLASSNAME,lQ as DashboardLayout,l4 as DataGrid,rg as DataGridActionCell,rb as DataGridSortHeader,rz as DataList,rL as Description,rq as Dialog,rA as Drawer,l7 as DropdownMenu,rc as DropdownMenuCheckboxItem,ri as DropdownMenuContent,rl as DropdownMenuGroup,ro as DropdownMenuItem,r_ as DropdownMenuLabel,rr as DropdownMenuPortal,ra as DropdownMenuRadioGroup,rd as DropdownMenuRadioItem,rm as DropdownMenuSeparator,rh as DropdownMenuShortcut,rt as DropdownMenuSub,rn as DropdownMenuSubContent,rs as DropdownMenuSubTrigger,re as DropdownMenuTrigger,tf as Form,eK as FormController,tN as FormMaskField,eJ as FormProvider,tk as FormSubmitButton,tx as FormTextField,lO as Image,rB as ImageCarousel,rW as Input,rJ as InputOTP,lt as Label,rX as MaskField,rQ as PageLayout,r1 as Pagination,r8 as PeriodPicker,lV as Placeholder,$ as Popover,lz as PopoverContent,B as PopoverTrigger,r3 as RadioGroup,r4 as RadioGroupItem,tt as RangeInput,ta as ScrollTopButton,to as Select,tu as SelectContent,tc as SelectGroup,tp as SelectItem,ty as SelectLabel,th as SelectScrollDownButton,tm as SelectScrollUpButton,tg as SelectSeparator,t_ as SelectTrigger,td as SelectValue,r7 as Slider,tb as Tabs,rU as TextField,lY as Tooltip,lL as Typography,lS as alignments,e4 as badgeVariants,e7 as buttonBaseClass,le as buttonSizes,ll as buttonVariants,lD as colors,e0 as createTheme,lP as displays,e2 as globalKeyframes,e6 as globalStyle,e5 as keyframes,e8 as style,e3 as styleVariants,lT as transforms,lU as useDashboard,tw as useForm,eZ as useFormContext,eU as useFormController,eX as useFormFieldArray,e1 as useFormWatch,lI as variants,tC as vars,lM as weights};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/kit",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./lib/index.mjs",
6
6
  "module": "./lib/index.mjs",