dxd-style-code 0.1.0 → 0.1.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.
@@ -1 +1 @@
1
- (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.DXComponents={},p.Vue))})(this,function(p,e){"use strict";const P={__name:"DXHeading",props:{level:{type:[Number,String],default:1},size:{type:String,default:""},weight:{type:String,default:"semibold"},color:{type:String,default:"default"},truncate:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>`h${l.level}`),n={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},a={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},r={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},s={default:"text-slate-900",muted:"text-slate-500",primary:"text-slate-800",success:"text-emerald-700",warning:"text-amber-700",danger:"text-rose-700"},i=e.computed(()=>[l.size?n[l.size]:a[l.level],r[l.weight]||r.semibold,s[l.color]||s.default,"tracking-tight",l.truncate&&"truncate"]);return(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(i.value),"data-component":"DXHeading","data-level":t.level},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["class","data-level"]))}},F={__name:"DXText",props:{tag:{type:String,default:"p"},size:{type:String,default:"md"},weight:{type:String,default:"normal"},color:{type:String,default:"default"},align:{type:String,default:"left"},truncate:{type:Boolean,default:!1},lines:{type:Number,default:0}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},a={default:"text-slate-700",muted:"text-slate-500",primary:"text-slate-900",success:"text-emerald-700",warning:"text-amber-700",danger:"text-rose-700"},r={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},s=e.computed(()=>[o[l.size]||o.md,n[l.weight]||n.normal,a[l.color]||a.default,r[l.align]||r.left,"leading-relaxed",l.truncate&&"truncate",l.lines>0&&`line-clamp-${l.lines}`]);return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(s.value),"data-component":"DXText"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["class"]))}},R=["for"],q={key:0,class:"text-rose-500 ml-0.5"},H={__name:"DXLabel",props:{htmlFor:{type:String,default:""},size:{type:String,default:"sm"},weight:{type:String,default:"medium"},color:{type:String,default:"default"},required:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold"},a={default:"text-slate-700",muted:"text-slate-500",primary:"text-slate-900"},r=e.computed(()=>["block",o[l.size]||o.sm,n[l.weight]||n.medium,a[l.color]||a.default]);return(s,i)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(r.value),for:t.htmlFor,"data-component":"DXLabel"},[e.renderSlot(s.$slots,"default"),t.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)],10,R))}},G={key:0},U={__name:"DXCode",props:{block:{type:Boolean,default:!1},size:{type:String,default:"sm"},lineNumbers:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base"},n=e.computed(()=>l.block?["block w-full overflow-x-auto rounded-xl bg-slate-900 text-slate-100 p-4",o[l.size]||o.sm,"font-mono leading-relaxed"]:["inline-block px-1.5 py-0.5 rounded bg-slate-100 text-slate-800",o[l.size]||o.sm,"font-mono"]);return(a,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.block?"pre":"code"),{class:e.normalizeClass(n.value),"data-component":"DXCode","data-block":t.block},{default:e.withCtx(()=>[t.block?(e.openBlock(),e.createElementBlock("code",G,[e.renderSlot(a.$slots,"default")])):e.renderSlot(a.$slots,"default",{key:1})]),_:3},8,["class","data-block"]))}},K=["data-variant"],W={key:0,class:"mt-2 text-sm text-slate-500"},Y={__name:"DXBlockquote",props:{variant:{type:String,default:"bordered"},size:{type:String,default:"md"},cite:{type:String,default:""}},setup(t){const l=t,o={sm:"text-sm",md:"text-base",lg:"text-lg"},n={default:"text-slate-600 italic",bordered:"border-l-4 border-slate-300 pl-4 text-slate-600 italic",highlighted:"bg-slate-50 border-l-4 border-slate-400 pl-4 pr-4 py-3 rounded-r-lg text-slate-700"},a=e.computed(()=>[o[l.size]||o.md,n[l.variant]||n.bordered,"leading-relaxed"]);return(r,s)=>(e.openBlock(),e.createElementBlock("blockquote",{class:e.normalizeClass(a.value),"data-component":"DXBlockquote","data-variant":t.variant},[e.renderSlot(r.$slots,"default"),t.cite||r.$slots.cite?(e.openBlock(),e.createElementBlock("footer",W,[s[0]||(s[0]=e.createTextVNode(" — ",-1)),e.createElementVNode("cite",null,[e.renderSlot(r.$slots,"cite",{},()=>[e.createTextVNode(e.toDisplayString(t.cite),1)])])])):e.createCommentVNode("",!0)],10,K))}},J={__name:"DXList",props:{ordered:{type:Boolean,default:!1},marker:{type:String,default:""},size:{type:String,default:"md"},spacing:{type:String,default:"sm"}},setup(t){const l=t,o={sm:"text-sm",md:"text-base",lg:"text-lg"},n={none:"space-y-0",sm:"space-y-1",md:"space-y-2",lg:"space-y-3"},a={disc:"list-disc",circle:"list-circle",square:"list-square",decimal:"list-decimal",none:"list-none"},r=e.computed(()=>[o[l.size]||o.md,n[l.spacing]||n.sm,l.marker?a[l.marker]:l.ordered?"list-decimal":"list-disc","pl-5 text-slate-700"]);return(s,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.ordered?"ol":"ul"),{class:e.normalizeClass(r.value),"data-component":"DXList"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["class"]))}},Q=["data-size"],v={__name:"DXContainer",props:{size:{type:String,default:"lg"},center:{type:Boolean,default:!0},padding:{type:String,default:"md"}},setup(t){const l=t,o={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},n={none:"",sm:"px-4",md:"px-6",lg:"px-8"},a=e.computed(()=>["w-full",o[l.size]||o.lg,n[l.padding]||n.md,l.center&&"mx-auto"]);return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),"data-component":"DXContainer","data-size":t.size},[e.renderSlot(r.$slots,"default")],10,Q))}},ee={__name:"DXGrid",props:{cols:{type:[Number,String],default:12},colsSm:{type:[Number,String],default:""},colsMd:{type:[Number,String],default:""},colsLg:{type:[Number,String],default:""},gap:{type:String,default:"md"},gapX:{type:String,default:""},gapY:{type:String,default:""}},setup(t){const l=t,o={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},n={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",auto:"grid-cols-[repeat(auto-fit,minmax(250px,1fr))]"},a=e.computed(()=>["grid",n[l.cols]||`grid-cols-${l.cols}`,l.colsSm&&`sm:grid-cols-${l.colsSm}`,l.colsMd&&`md:grid-cols-${l.colsMd}`,l.colsLg&&`lg:grid-cols-${l.colsLg}`,!l.gapX&&!l.gapY&&(o[l.gap]||o.md),l.gapX&&`gap-x-${l.gapX}`,l.gapY&&`gap-y-${l.gapY}`]),r=e.computed(()=>l.cols==="auto"?{}:{});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(r.value),"data-component":"DXGrid"},[e.renderSlot(s.$slots,"default")],6))}},te={__name:"DXFlex",props:{direction:{type:String,default:"row"},justify:{type:String,default:"start"},align:{type:String,default:"center"},wrap:{type:String,default:"nowrap"},gap:{type:String,default:"md"},inline:{type:Boolean,default:!1}},setup(t){const l=t,o={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},n={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},a={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},r={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},s={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},i=e.computed(()=>[l.inline?"inline-flex":"flex",o[l.direction]||o.row,n[l.justify]||n.start,a[l.align]||a.center,r[l.wrap]||r.nowrap,s[l.gap]||s.md]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),"data-component":"DXFlex"},[e.renderSlot(d.$slots,"default")],2))}},le=["data-direction"],oe={__name:"DXStack",props:{direction:{type:String,default:"vertical"},gap:{type:String,default:"md"},align:{type:String,default:"stretch"},justify:{type:String,default:"start"},dividers:{type:Boolean,default:!1}},setup(t){const l=t,o={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},n={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},a={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"},r=e.computed(()=>["flex",l.direction==="horizontal"?"flex-row":"flex-col",o[l.gap]||o.md,n[l.align]||n.stretch,a[l.justify]||a.start,l.dividers&&(l.direction==="horizontal"?"divide-x divide-slate-200":"divide-y divide-slate-200")]);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),"data-component":"DXStack","data-direction":t.direction},[e.renderSlot(s.$slots,"default")],10,le))}},ne={__name:"DXSpacer",props:{size:{type:[String,Number],default:"md"},direction:{type:String,default:"vertical"},grow:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:{v:"h-1",h:"w-1"},sm:{v:"h-2",h:"w-2"},md:{v:"h-4",h:"w-4"},lg:{v:"h-8",h:"w-8"},xl:{v:"h-12",h:"w-12"},"2xl":{v:"h-16",h:"w-16"}},n=e.computed(()=>{if(l.grow)return["flex-grow"];const r=o[l.size];return r?l.direction==="horizontal"?[r.h]:l.direction==="both"?[r.v,r.h]:[r.v]:[]}),a=e.computed(()=>{if(l.grow)return{};if(typeof l.size=="number"){const r=`${l.size}px`;return l.direction==="horizontal"?{width:r}:l.direction==="both"?{height:r,width:r}:{height:r}}return{}});return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value),style:e.normalizeStyle(a.value),"data-component":"DXSpacer","aria-hidden":"true"},null,6))}},ae={__name:"DXBox",props:{tag:{type:String,default:"div"},p:{type:String,default:""},px:{type:String,default:""},py:{type:String,default:""},m:{type:String,default:""},mx:{type:String,default:""},my:{type:String,default:""},rounded:{type:String,default:""},bg:{type:String,default:""},shadow:{type:String,default:""},border:{type:Boolean,default:!1}},setup(t){const l=t,o={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8"},n={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8",auto:"auto"},a={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"},r={white:"bg-white",slate:"bg-slate-50",transparent:"bg-transparent"},s={none:"shadow-none",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},i=e.computed(()=>[l.p&&`p-${o[l.p]||l.p}`,l.px&&`px-${o[l.px]||l.px}`,l.py&&`py-${o[l.py]||l.py}`,l.m&&`m-${n[l.m]||l.m}`,l.mx&&`mx-${n[l.mx]||l.mx}`,l.my&&`my-${n[l.my]||l.my}`,l.rounded&&(a[l.rounded]||`rounded-${l.rounded}`),l.bg&&(r[l.bg]||l.bg),l.shadow&&(s[l.shadow]||`shadow-${l.shadow}`),l.border&&"border border-slate-200"]);return(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(i.value),"data-component":"DXBox"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["class"]))}};function re(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 1 1-7.48 0 24.585 24.585 0 0 1-4.831-1.244.75.75 0 0 1-.298-1.205A8.217 8.217 0 0 0 5.25 9.75V9Zm4.502 8.9a2.25 2.25 0 1 0 4.496 0 25.057 25.057 0 0 1-4.496 0Z","clip-rule":"evenodd"})])}function se(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.32 2.577a49.255 49.255 0 0 1 11.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 0 1-1.085.67L12 18.089l-7.165 3.583A.75.75 0 0 1 3.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93Z","clip-rule":"evenodd"})])}function E(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function ie(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function N(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function ce(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),e.createElementVNode("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),e.createElementVNode("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function de(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z"})])}function D(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function me(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z","clip-rule":"evenodd"})])}function ue(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z","clip-rule":"evenodd"})])}function pe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function fe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM17.78 9.22a.75.75 0 1 0-1.06 1.06L18.44 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06l1.72-1.72 1.72 1.72a.75.75 0 1 0 1.06-1.06L20.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-1.72 1.72-1.72-1.72Z"})])}function ge(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z","clip-rule":"evenodd"})])}function he(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z","clip-rule":"evenodd"})])}function _(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function be(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}const $=(t,l)=>{const o=t.__vccOpts||t;for(const[n,a]of l)o[n]=a;return o},k=$({__name:"DXIcon",props:{icon:{type:Object,required:!0},size:{type:String,default:"md"},animation:{type:String,default:"none"},class:{type:[String,Array,Object],default:""}},setup(t){const l=t,o={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},n={none:"",wiggle:"dx-icon-wiggle",scale:"dx-icon-scale",rotate:"dx-icon-rotate"},a=e.computed(()=>[o[l.size]||o.md,n[l.animation]||"",l.class]);return(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:e.normalizeClass(a.value),"data-component":"DXIcon","data-size":t.size,"data-animation":t.animation},null,8,["class","data-size","data-animation"]))}},[["__scopeId","data-v-9441a40d"]]),ke=["data-size"],xe=["src","alt"],ye={__name:"DXAvatar",props:{src:{type:String,default:""},alt:{type:String,default:"Avatar"},initials:{type:String,default:""},size:{type:String,default:"md"},shape:{type:String,default:"circle"},status:{type:String,default:""},icon:{type:Object,default:null},iconAnimation:{type:String,default:"none"}},setup(t){const l=t,o=e.ref(!1),n={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"},a={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},r={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},s={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-4 h-4"},i={online:"bg-emerald-500",offline:"bg-slate-400",busy:"bg-rose-500",away:"bg-amber-500"},d=e.computed(()=>["relative inline-flex items-center justify-center overflow-hidden bg-slate-100 transition-transform",n[l.size]||n.md,a[l.shape]||a.circle,l.iconAnimation!=="none"&&"hover:scale-105"]),m=e.computed(()=>["text-slate-600 uppercase",r[l.size]||r.md]),c=e.computed(()=>[s[l.size]||s.md,i[l.status]||""]),u=e.computed(()=>l.icon||he),g={xs:"sm",sm:"sm",md:"md",lg:"lg",xl:"xl"},f=e.computed(()=>g[l.size]||"md");return(x,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),"data-component":"DXAvatar","data-size":t.size},[t.src&&!o.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.alt,class:"w-full h-full object-cover",onError:C[0]||(C[0]=B=>o.value=!0)},null,40,xe)):t.initials?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["font-medium",m.value])},e.toDisplayString(t.initials),3)):(e.openBlock(),e.createBlock(k,{key:2,icon:u.value,size:f.value,animation:t.iconAnimation,class:"text-slate-400"},null,8,["icon","size","animation"])),t.status?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["absolute bottom-0 right-0 block rounded-full ring-2 ring-white",c.value])},null,2)):e.createCommentVNode("",!0)],10,ke))}},we=["data-variant"],Be="inline-flex items-center gap-1 px-2 py-1 text-[11px] rounded-full border font-semibold",Ve={__name:"DXBadge",props:{variant:{type:String,default:"slate"},iconLeft:{type:Object,default:null},iconRight:{type:Object,default:null}},setup(t){const l=t,o={slate:"bg-slate-50 text-slate-700 border-slate-100",success:"bg-emerald-50 text-emerald-700 border-emerald-100",warning:"bg-amber-50 text-amber-700 border-amber-100",danger:"bg-rose-50 text-rose-700 border-rose-100",info:"bg-blue-50 text-blue-700 border-blue-100"},n=e.computed(()=>{const a=o[l.variant]||o.slate;return`${Be} ${a}`});return(a,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(n.value),"data-component":"DXBadge","data-variant":t.variant},[t.iconLeft?(e.openBlock(),e.createBlock(k,{key:0,icon:t.iconLeft,size:"xs",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default"),t.iconRight?(e.openBlock(),e.createBlock(k,{key:1,icon:t.iconRight,size:"xs",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0)],10,we))}},Ce=$({__name:"DXButton",props:{variant:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},type:{type:String,default:"button"},disabled:{type:Boolean,default:!1},to:{type:[String,Object],default:null},href:{type:String,default:null},target:{type:String,default:null},rel:{type:String,default:null}},setup(t){const l=t,o=e.computed(()=>l.to?"router-link":l.href?"a":"button"),n=e.computed(()=>l.iconOnly?l.size==="sm"?"h-9 w-9 text-xs":l.size==="lg"?"h-12 w-12 text-sm":"h-10 w-10 text-sm":l.size==="sm"?"px-3 py-2 text-xs":l.size==="lg"?"px-5 py-3 text-base":"px-4 py-2 text-sm"),a=e.computed(()=>{switch(l.variant){case"ghost":return"border border-slate-200 text-slate-700 hover:border-slate-300 bg-white";case"danger":return"bg-rose-600 text-white hover:bg-rose-500";case"outline":return"border border-slate-200 text-slate-700 hover:border-slate-300 bg-white";default:return"bg-slate-800 text-white hover:bg-slate-700"}});return(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{type:o.value==="button"?t.type:void 0,disabled:t.disabled,to:t.to,href:t.href,target:t.target,rel:t.rel,class:e.normalizeClass(["btn inline-flex items-center justify-center gap-2 rounded-xl font-semibold transition focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-60",[n.value,a.value,{"w-full":t.block,"px-0 py-0":t.iconOnly}]]),"data-component":"DXButton","data-variant":t.variant},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["type","disabled","to","href","target","rel","class","data-variant"]))}},[["__scopeId","data-v-99117d90"]]),$e={},Se={class:"bg-white border border-slate-100 rounded-2xl shadow-sm p-5","data-component":"DXCard"};function Ee(t,l){return e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(t.$slots,"default")])}const Ne=$($e,[["render",Ee]]),De=["checked","value","disabled"],ze={key:0,class:"text-sm text-slate-700 select-none"},Xe={__name:"DXCheckbox",props:{modelValue:{type:[Boolean,Array],default:!1},value:{type:[String,Number],default:void 0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>{switch(o.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}}),r=e.computed(()=>Array.isArray(o.modelValue)?o.modelValue.includes(o.value):o.modelValue),s=i=>{if(Array.isArray(o.modelValue)){const d=[...o.modelValue];if(i.target.checked)d.push(o.value);else{const m=d.indexOf(o.value);m>-1&&d.splice(m,1)}n("update:modelValue",d)}else n("update:modelValue",i.target.checked)};return(i,d)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXCheckbox"},[e.createElementVNode("input",{type:"checkbox",checked:r.value,value:t.value,disabled:t.disabled,class:e.normalizeClass(["rounded border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",a.value]),onChange:s},null,42,De),t.label?(e.openBlock(),e.createElementBlock("span",ze,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}};function Ie(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})])}function Ae(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function Le(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function Me(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function z(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function je(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function T(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function _e(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function Te(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"})])}function Oe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Ze(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function Pe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function X(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Fe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"})])}function Re(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])}function qe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function He(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function Ge(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Ue(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"})])}function Ke(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"})])}function We(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})])}function Ye(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"})])}function Je(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})])}function Qe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function ve(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"})])}function O(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const et=["aria-label"],I={__name:"DXCloseButton",props:{size:{type:String,default:"md"},variant:{type:String,default:"default"},ariaLabel:{type:String,default:"Закрыть"}},emits:["click"],setup(t){const l=t,o={sm:"p-0.5",md:"p-1",lg:"p-1.5"},n={sm:"sm",md:"md",lg:"lg"},a={default:"text-slate-400 hover:text-slate-600",light:"text-white/70 hover:text-white",danger:"text-rose-400 hover:text-rose-600"},r=e.computed(()=>n[l.size]||n.md),s=e.computed(()=>["inline-flex items-center justify-center rounded transition-colors",o[l.size]||o.md,a[l.variant]||a.default]);return(i,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(s.value),onClick:d[0]||(d[0]=m=>i.$emit("click",m)),"aria-label":t.ariaLabel,"data-component":"DXCloseButton"},[e.createVNode(k,{icon:e.unref(O),size:r.value,animation:"scale"},null,8,["icon","size"])],10,et))}},tt=["data-orientation"],lt={key:0,class:"flex items-center w-full"},ot={class:"px-3 text-sm text-slate-500 whitespace-nowrap"},nt={__name:"DXDivider",props:{orientation:{type:String,default:"horizontal"},color:{type:String,default:"default"},thickness:{type:String,default:"default"},spacing:{type:String,default:"md"}},setup(t){const l=t,o={light:"border-slate-100",default:"border-slate-200",dark:"border-slate-300"},n={thin:"border-t",default:"border-t",thick:"border-t-2"},a={thin:"border-l",default:"border-l",thick:"border-l-2"},r={none:"",sm:"my-2",md:"my-4",lg:"my-6"},s={none:"",sm:"mx-2",md:"mx-4",lg:"mx-6"},i=e.computed(()=>[l.orientation==="vertical"?"inline-flex h-full":"w-full",l.orientation==="horizontal"?r[l.spacing]:s[l.spacing]]),d=e.computed(()=>[l.orientation==="vertical"?"h-full":"flex-1",o[l.color]||o.default,l.orientation==="vertical"?a[l.thickness]:n[l.thickness]]);return(m,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),"data-component":"DXDivider","data-orientation":t.orientation},[m.$slots.default&&t.orientation==="horizontal"?(e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2),e.createElementVNode("span",ot,[e.renderSlot(m.$slots,"default")]),e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(d.value)},null,2))],10,tt))}},at=["disabled"],rt={class:"flex-1"},st={key:1,class:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},it=$({__name:"DXDropdownItem",props:{icon:{type:Object,default:null},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},submenu:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0}},emits:["click"],setup(t,{emit:l}){const o=t,n=l,a=e.inject("dropdown",null),r=s=>{o.disabled||(n("click",s),o.closeOnClick&&a&&a.close())};return(s,i)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["dropdown-item w-full flex items-center gap-3 px-4 py-2 text-sm text-left transition",[t.danger?"text-rose-600 hover:bg-rose-50":"text-slate-700 hover:bg-slate-50",t.disabled&&"opacity-60 cursor-not-allowed"]]),disabled:t.disabled,onClick:r,"data-component":"DXDropdownItem"},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"w-4 h-4 flex-shrink-0"})):e.createCommentVNode("",!0),e.createElementVNode("span",rt,[e.renderSlot(s.$slots,"default",{},void 0,!0)]),t.submenu?(e.openBlock(),e.createElementBlock("svg",st,[...i[0]||(i[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])])):e.createCommentVNode("",!0)],10,at))}},[["__scopeId","data-v-b0daf145"]]);function A(t,l="input"){var n,a;const o={button:{sm:"h-8 px-3 py-1.5 text-xs",md:"h-10 px-4 py-2.5 text-sm",lg:"h-12 px-5 py-3 text-base"},input:{sm:"h-8 px-3 py-1.5 text-xs",md:"h-10 px-4 py-2.5 text-sm",lg:"h-12 px-5 py-3 text-base"},icon:{xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-10 h-10"},text:{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}};return((n=o[l])==null?void 0:n[t])||((a=o[l])==null?void 0:a.md)||""}const ct={class:"w-full","data-component":"DXInput"},dt={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},mt={class:"relative"},ut={key:0,class:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"},pt=["type","placeholder","value","disabled"],ft={key:1,class:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400"},gt={key:1,class:"mt-1 text-xs text-rose-500"},ht={key:2,class:"mt-1 text-xs text-slate-500"},bt={__name:"DXInput",props:{modelValue:[String,Number],type:{type:String,default:"text"},placeholder:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},error:{type:String,default:""},helper:{type:String,default:""},size:{type:String,default:"md"},inputClass:{type:[String,Array,Object],default:""},prefixIcon:{type:Object,default:null},suffixIcon:{type:Object,default:null}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{var n,a;return["w-full rounded-xl border border-slate-200 bg-white transition-colors",A(l.size,"input"),"text-slate-700 placeholder:text-slate-400",!l.disabled&&"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300",l.disabled&&"opacity-60 cursor-not-allowed bg-slate-50",l.error&&"border-rose-300 focus:ring-rose-500/10",(l.prefixIcon||((n=l.$slots)==null?void 0:n.prefix))&&"pl-10",(l.suffixIcon||((a=l.$slots)==null?void 0:a.suffix))&&"pr-10",l.inputClass]});return(n,a)=>(e.openBlock(),e.createElementBlock("div",ct,[t.label?(e.openBlock(),e.createElementBlock("label",dt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",mt,[t.prefixIcon||n.$slots.prefix?(e.openBlock(),e.createElementBlock("div",ut,[t.prefixIcon?(e.openBlock(),e.createBlock(k,{key:0,icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.renderSlot(n.$slots,"prefix",{key:1})])):e.createCommentVNode("",!0),e.createElementVNode("input",{type:t.type,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(o.value),onInput:a[0]||(a[0]=r=>n.$emit("update:modelValue",r.target.value))},null,42,pt),t.suffixIcon||n.$slots.suffix?(e.openBlock(),e.createElementBlock("div",ft,[t.suffixIcon?(e.openBlock(),e.createBlock(k,{key:0,icon:t.suffixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.renderSlot(n.$slots,"suffix",{key:1})])):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",gt,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",ht,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},kt={__name:"DXInputAddon",props:{icon:{type:Object,default:null}},setup(t){const l=e.inject("inputGroup",{size:"md"}),o=e.computed(()=>{const n={sm:"h-9",md:"h-11",lg:"h-13"};return n[l.size]||n.md});return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center px-3 border border-r-0 bg-slate-50 text-slate-600 text-sm first:rounded-l-xl last:rounded-r-xl last:border-r",o.value]),"data-component":"DXInputGroupAddon"},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],2))}},xt={},yt={class:"flex items-center justify-center gap-2 text-sm text-slate-600","data-component":"DXLoader"};function wt(t,l){return e.openBlock(),e.createElementBlock("div",yt,[l[1]||(l[1]=e.createElementVNode("span",{class:"w-4 h-4 border-2 border-slate-300 border-t-slate-900 rounded-full animate-spin"},null,-1)),e.renderSlot(t.$slots,"default",{},()=>[l[0]||(l[0]=e.createTextVNode("Загрузка...",-1))])])}const Bt=$(xt,[["render",wt]]),Vt={class:"w-full","data-component":"DXProgress"},Ct={key:0,class:"flex justify-between items-center mb-1"},$t={class:"text-sm font-medium text-slate-700"},St={key:0,class:"text-sm font-semibold text-slate-900"},Et=["aria-valuenow","aria-valuemin","aria-valuemax"],Nt={key:0,class:"text-xs font-medium text-white px-1"},Dt=$({__name:"DXProgress",props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},label:{type:String,default:""},showLabel:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},showInnerValue:{type:Boolean,default:!1},size:{type:String,default:"md"},color:{type:String,default:"default"},animated:{type:Boolean,default:!1},striped:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>{const d=l.max-l.min;return Math.min(100,Math.max(0,(l.value-l.min)/d*100))}),n=e.computed(()=>`${Math.round(o.value)}%`),a={xs:"h-1",sm:"h-2",md:"h-3",lg:"h-4"},r={default:"bg-slate-800",success:"bg-emerald-500",warning:"bg-amber-500",danger:"bg-rose-500",info:"bg-blue-500"},s=e.computed(()=>["w-full bg-slate-200 rounded-full overflow-hidden",a[l.size]||a.md]),i=e.computed(()=>["h-full rounded-full transition-all duration-300 flex items-center justify-end",r[l.color]||r.default,l.striped&&"bg-stripes",l.animated&&l.striped&&"animate-stripes"]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",Vt,[t.showLabel||d.$slots.label?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("span",$t,[e.renderSlot(d.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),t.showValue?(e.openBlock(),e.createElementBlock("span",St,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(s.value)},[e.createElementVNode("div",{class:e.normalizeClass(i.value),style:e.normalizeStyle({width:`${o.value}%`}),role:"progressbar","aria-valuenow":t.value,"aria-valuemin":t.min,"aria-valuemax":t.max},[t.showInnerValue&&o.value>10?(e.openBlock(),e.createElementBlock("span",Nt,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)],14,Et)],2)]))}},[["__scopeId","data-v-e469818e"]]),zt=["value","checked","disabled"],Xt={key:0,class:"text-sm text-slate-700 select-none"},It={__name:"DXRadio",props:{modelValue:[String,Number,Boolean],value:{type:[String,Number,Boolean],required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{switch(l.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}});return(n,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXRadio"},[e.createElementVNode("input",{type:"radio",value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,class:e.normalizeClass(["rounded-full border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",o.value]),onChange:a[0]||(a[0]=r=>n.$emit("update:modelValue",t.value))},null,42,zt),t.label?(e.openBlock(),e.createElementBlock("span",Xt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}},At={class:"w-full","data-component":"DXSelect"},Lt={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},Mt={class:"relative"},jt={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-slate-400"},_t=["value","disabled"],Tt={key:0,value:"",disabled:"",selected:""},Ot=["value"],Zt={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},Pt={key:1,class:"mt-1 text-xs text-rose-500"},Ft={key:2,class:"mt-1 text-xs text-slate-500"},Rt={__name:"DXSelect",props:{modelValue:[String,Number],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},prefixIcon:{type:Object,default:null},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>["w-full appearance-none rounded-xl border border-slate-200 bg-white transition-colors pr-10",A(l.size,"input"),"text-slate-700",l.prefixIcon&&"pl-10",!l.disabled&&"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300",l.disabled&&"opacity-60 cursor-not-allowed bg-slate-50",l.error&&"border-rose-300 focus:ring-rose-500/10"]);return(n,a)=>(e.openBlock(),e.createElementBlock("div",At,[t.label?(e.openBlock(),e.createElementBlock("label",Lt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Mt,[t.prefixIcon?(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(k,{icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("select",{value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(o.value),onChange:a[0]||(a[0]=r=>n.$emit("update:modelValue",r.target.value))},[t.placeholder?(e.openBlock(),e.createElementBlock("option",Tt,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("option",{key:r.value,value:r.value},e.toDisplayString(r.label),9,Ot))),128))],42,_t),e.createElementVNode("div",Zt,[e.createVNode(k,{icon:e.unref(z),size:"sm",animation:"none",class:"text-slate-400"},null,8,["icon"])])]),t.error?(e.openBlock(),e.createElementBlock("p",Pt,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",Ft,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},qt={__name:"DXSkeleton",props:{width:{type:String,default:"100%"},height:{type:String,default:"1rem"},rounded:{type:String,default:"rounded-md"}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["animate-pulse bg-slate-200",t.rounded]),style:e.normalizeStyle({width:t.width,height:t.height}),"data-component":"DXSkeleton"},null,6))}},Ht={class:"w-full","data-component":"DXSlider"},Gt={class:"flex items-center justify-between mb-2"},Ut={key:0,class:"text-sm font-medium text-slate-700"},Kt={key:1,class:"text-sm font-semibold text-slate-900"},Wt={class:"relative"},Yt={key:0,class:"absolute top-1/2 left-0 right-0 flex justify-between pointer-events-none",style:{transform:"translateY(-50%)"}},Jt=["value","min","max","step","disabled"],Qt={key:0,class:"flex justify-between mt-1 px-1"},vt={key:1,class:"mt-1 text-xs text-slate-500"},el=$({__name:"DXSlider",props:{modelValue:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},label:{type:String,default:""},helper:{type:String,default:""},showValue:{type:Boolean,default:!0},ticks:{type:Boolean,default:!1},showTickLabels:{type:Boolean,default:!0},tickCount:{type:Number,default:5},tickIcons:{type:Array,default:null},tickIconAnimation:{type:String,default:"wiggle"},unit:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>`${o.modelValue}${o.unit}`),r=e.computed(()=>{if(!o.ticks)return[];const c=o.tickCount,u=(o.max-o.min)/(c-1);return Array.from({length:c},(g,f)=>Math.round(o.min+u*f))}),s=c=>{n("update:modelValue",Number(c.target.value))},i=e.computed(()=>{if(!o.ticks||!r.value.length)return-1;let c=0,u=Math.abs(o.modelValue-r.value[0]);return r.value.forEach((g,f)=>{const x=Math.abs(o.modelValue-g);x<u&&(u=x,c=f)}),c}),d=c=>i.value===c,m=c=>d(c)?o.tickIconAnimation:"none";return(c,u)=>(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",Gt,[t.label?(e.openBlock(),e.createElementBlock("label",Ut,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.showValue?(e.openBlock(),e.createElementBlock("span",Kt,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wt,[t.ticks?(e.openBlock(),e.createElementBlock("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(g,f)=>(e.openBlock(),e.createElementBlock("div",{key:`tick-${f}`,class:"w-0.5 h-3 bg-slate-400 rounded-full"}))),128))])):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"range",value:t.modelValue,min:t.min,max:t.max,step:t.step,disabled:t.disabled,class:"slider w-full appearance-none cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed relative z-10",onInput:s},null,40,Jt)]),t.ticks&&(t.showTickLabels||t.tickIcons)?(e.openBlock(),e.createElementBlock("div",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(g,f)=>(e.openBlock(),e.createElementBlock("span",{key:g,class:e.normalizeClass(["flex flex-col items-center gap-0.5 transition-transform duration-200",{"scale-110":d(f)}])},[t.tickIcons&&t.tickIcons[f]?(e.openBlock(),e.createBlock(k,{key:0,icon:t.tickIcons[f],size:"sm",animation:m(f),class:e.normalizeClass(d(f)?"text-slate-900":"text-slate-400")},null,8,["icon","animation","class"])):e.createCommentVNode("",!0),t.showTickLabels?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["text-xs transition-colors duration-200",d(f)?"text-slate-900 font-semibold":"text-slate-500"])},e.toDisplayString(g)+e.toDisplayString(t.unit),3)):e.createCommentVNode("",!0)],2))),128))])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",vt,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-d55b8f6a"]]),tl={class:"flex flex-wrap gap-2","data-component":"DXTags"},ll=["onClick","aria-label"],ol={__name:"DXTags",props:{tags:{type:Array,default:()=>[]},variant:{type:String,default:"default"},color:{type:String,default:"default"},closable:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>o.tags.map(m=>typeof m=="string"?{label:m,icon:null,closable:o.closable,color:o.color,iconAnimation:"none"}:{label:m.label||m,icon:m.icon||null,closable:m.closable!==void 0?m.closable:o.closable,color:m.color||o.color,iconAnimation:m.iconAnimation||"none"})),r=(m,c)=>`${m.label}-${c}`,s={default:"bg-slate-100 text-slate-800 border-slate-200",primary:"bg-blue-100 text-blue-800 border-blue-200",success:"bg-green-100 text-green-800 border-green-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",danger:"bg-red-100 text-red-800 border-red-200",info:"bg-cyan-100 text-cyan-800 border-cyan-200"},i=m=>{const c=o.variant==="large"?"px-3 py-1.5 text-sm":"px-2 py-1 text-xs",u=s[m.color]||s.default;return`${c} ${u} rounded-full border`},d=(m,c)=>{n("remove",{tag:m,index:c})};return(m,c)=>(e.openBlock(),e.createElementBlock("div",tl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,g)=>(e.openBlock(),e.createElementBlock("span",{key:r(u,g),class:e.normalizeClass([i(u),"inline-flex items-center gap-1.5 transition-all duration-200"])},[u.icon?(e.openBlock(),e.createBlock(k,{key:0,icon:u.icon,size:t.variant==="large"?"sm":"xs",animation:u.iconAnimation||"none"},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(u.label),1),u.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",onClick:f=>d(u,g),class:"ml-0.5 -mr-1 hover:bg-slate-200/50 rounded-full p-0.5 transition-colors","aria-label":`Remove ${u.label}`},[e.createVNode(k,{icon:e.unref(be),size:"xs",animation:"scale"},null,8,["icon"])],8,ll)):e.createCommentVNode("",!0)],2))),128))]))}},nl={class:"w-full","data-component":"DXTextarea"},al={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},rl={class:"relative"},sl={key:0,class:"absolute left-3 top-3 text-slate-400 z-10"},il=["rows","placeholder","value","disabled","maxlength"],cl={key:1,class:"absolute right-3 top-3 text-slate-400 z-10"},dl={key:2,class:"absolute right-3 bottom-3 text-xs text-slate-400"},ml={key:1,class:"mt-1 text-xs text-rose-500"},ul={key:2,class:"mt-1 text-xs text-slate-500"},pl={__name:"DXTextarea",props:{modelValue:String,placeholder:{type:String,default:""},rows:{type:Number,default:3},label:{type:String,default:""},disabled:{type:Boolean,default:!1},error:{type:String,default:""},helper:{type:String,default:""},prefixIcon:{type:Object,default:null},suffixIcon:{type:Object,default:null},maxLength:{type:Number,default:0},showCount:{type:Boolean,default:!1},autoResize:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){var i;const o=t,n=l,a=e.ref(((i=o.modelValue)==null?void 0:i.length)||0),r=d=>{const m=d.target.value;a.value=m.length,n("update:modelValue",m),o.autoResize&&(d.target.style.height="auto",d.target.style.height=d.target.scrollHeight+"px")};e.watch(()=>o.modelValue,d=>{a.value=(d==null?void 0:d.length)||0});const s=e.computed(()=>["w-full rounded-xl border border-slate-200 px-4 py-3 text-sm text-slate-700 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 transition-colors disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",o.prefixIcon&&"pl-10",o.suffixIcon&&"pr-10",o.maxLength&&o.showCount&&"pb-8",o.error&&"border-rose-300 focus:ring-rose-500/10"]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",nl,[t.label?(e.openBlock(),e.createElementBlock("label",al,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",rl,[t.prefixIcon?(e.openBlock(),e.createElementBlock("div",sl,[e.createVNode(k,{icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("textarea",{rows:t.rows,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,maxlength:t.maxLength,class:e.normalizeClass(s.value),onInput:r},null,42,il),t.suffixIcon?(e.openBlock(),e.createElementBlock("div",cl,[e.createVNode(k,{icon:t.suffixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),t.maxLength&&t.showCount?(e.openBlock(),e.createElementBlock("div",dl,e.toDisplayString(a.value)+" / "+e.toDisplayString(t.maxLength),1)):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",ml,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",ul,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},S={info:{bg:"bg-blue-50",text:"text-blue-800",border:"border-blue-200",icon:D,iconColor:"text-blue-500"},success:{bg:"bg-emerald-50",text:"text-emerald-800",border:"border-emerald-200",icon:E,iconColor:"text-emerald-500"},warning:{bg:"bg-amber-50",text:"text-amber-800",border:"border-amber-200",icon:N,iconColor:"text-amber-500"},danger:{bg:"bg-rose-50",text:"text-rose-800",border:"border-rose-200",icon:_,iconColor:"text-rose-500"}};function fl(t){const l=S[t]||S.info;return`${l.bg} ${l.text} ${l.border}`}function gl(t){return(S[t]||S.info).icon}function Z(t){return S[t]||S.info}const hl=["data-variant"],bl={class:"flex-1"},kl={__name:"DXToast",props:{variant:{type:String,default:"info"},showIcon:{type:Boolean,default:!0}},setup(t){const l=t,o=e.computed(()=>Z(l.variant)),n=e.computed(()=>`${o.value.bg} ${o.value.border} ${o.value.text}`),a=e.computed(()=>l.showIcon?o.value.icon:null),r=e.computed(()=>o.value.iconColor);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-3 rounded-2xl border px-4 py-3 text-sm",n.value]),"data-component":"DXToast","data-variant":t.variant},[a.value?(e.openBlock(),e.createBlock(k,{key:0,icon:a.value,size:"md",animation:"none",class:e.normalizeClass([r.value,"shrink-0 mt-0.5"])},null,8,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",bl,[e.renderSlot(s.$slots,"default")])],10,hl))}},xl=["aria-checked","disabled"],yl={key:0,class:"text-sm text-slate-700 select-none"},wl={__name:"DXToggle",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXToggle"},[e.createElementVNode("button",{type:"button",role:"switch","aria-checked":t.modelValue,disabled:t.disabled,class:e.normalizeClass(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:ring-offset-2",t.modelValue?"bg-slate-900":"bg-slate-200"]),onClick:o[0]||(o[0]=n=>l.$emit("update:modelValue",!t.modelValue))},[e.createElementVNode("span",{class:e.normalizeClass(["inline-block h-4 w-4 transform rounded-full bg-white transition-transform",t.modelValue?"translate-x-6":"translate-x-1"])},null,2)],10,xl),t.label?(e.openBlock(),e.createElementBlock("span",yl,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}},Bl=["disabled","aria-pressed","aria-label"],Vl={key:1},Cl=$({__name:"DXToggleButton",props:{modelValue:{type:Boolean,default:!1},activeIcon:{type:Object,required:!0},inactiveIcon:{type:Object,required:!0},activeLabel:{type:String,default:null},inactiveLabel:{type:String,default:null},activeVariant:{type:String,default:"primary"},inactiveVariant:{type:String,default:"ghost"},size:{type:String,default:"md"},iconAnimation:{type:String,default:"wiggle"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},emits:["update:modelValue","change"],setup(t,{emit:l}){const o=t,n=l,a=()=>{const u=!o.modelValue;n("update:modelValue",u),n("change",u)},r=e.computed(()=>o.modelValue?o.activeIcon:o.inactiveIcon),s=e.computed(()=>o.modelValue?o.activeLabel:o.inactiveLabel),i=e.computed(()=>o.size==="sm"?"xs":o.size==="lg"?"md":"sm"),d=e.computed(()=>s.value?o.size==="sm"?"px-3 py-2 text-xs":o.size==="lg"?"px-5 py-3 text-base":"px-4 py-2.5 text-sm":o.size==="sm"?"h-9 w-9 text-xs":o.size==="lg"?"h-12 w-12 text-base":"h-10 w-10 text-sm"),m={primary:"bg-slate-800 text-white hover:bg-slate-700 focus:ring-slate-500",ghost:"border border-slate-200 text-slate-700 hover:border-slate-300 hover:bg-slate-50 bg-white focus:ring-slate-400",danger:"bg-rose-600 text-white hover:bg-rose-500 focus:ring-rose-500",success:"bg-green-600 text-white hover:bg-green-500 focus:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-400 focus:ring-amber-500",outline:"border border-slate-200 text-slate-700 hover:border-slate-300 bg-transparent focus:ring-slate-400"},c=e.computed(()=>{const u=o.modelValue?o.activeVariant:o.inactiveVariant;return m[u]||m.ghost});return(u,g)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["toggle-btn inline-flex items-center justify-center gap-2 rounded-xl font-semibold transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed",[d.value,c.value,{"w-full":t.block}]]),disabled:t.disabled,onClick:a,"aria-pressed":t.modelValue,"aria-label":t.ariaLabel,"data-component":"DXToggleButton"},[r.value?(e.openBlock(),e.createBlock(k,{key:0,icon:r.value,size:i.value,animation:t.iconAnimation},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("span",Vl,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],10,Bl))}},[["__scopeId","data-v-249aa090"]]),$l=$({__name:"DXTooltip",props:{content:{type:String,default:""},position:{type:String,default:"top"},color:{type:String,default:"dark"},maxWidth:{type:String,default:"200px"}},setup(t){const l=t,o=e.ref(!1),n={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},a={top:"top-full left-1/2 -translate-x-1/2 border-t-slate-900 border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-b-slate-900 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-l-slate-900 border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-r-slate-900 border-t-transparent border-b-transparent border-l-transparent"},r={top:"top-full left-1/2 -translate-x-1/2 border-t-white border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-b-white border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-l-white border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-r-white border-t-transparent border-b-transparent border-l-transparent"},s={dark:"bg-slate-900 text-white",light:"bg-white text-slate-900 border border-slate-200 shadow-lg"},i=e.computed(()=>["absolute z-50 px-3 py-2 text-sm rounded-lg whitespace-normal",n[l.position]||n.top,s[l.color]||s.dark]),d=e.computed(()=>["absolute w-0 h-0 border-4",l.color==="light"?r[l.position]:a[l.position]]);return(m,c)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",onMouseenter:c[0]||(c[0]=u=>o.value=!0),onMouseleave:c[1]||(c[1]=u=>o.value=!1),onFocus:c[2]||(c[2]=u=>o.value=!0),onBlur:c[3]||(c[3]=u=>o.value=!1),"data-component":"DXTooltip"},[e.renderSlot(m.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"tooltip"},{default:e.withCtx(()=>[o.value&&(t.content||m.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.value),role:"tooltip"},[e.renderSlot(m.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0),e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2)],2)):e.createCommentVNode("",!0)]),_:3})],32))}},[["__scopeId","data-v-bd65e96f"]]),L={__name:"DXValidationIcon",props:{state:{type:String,required:!0},size:{type:String,default:"md"}},setup(t){const l=t,o={success:{icon:E,color:"text-emerald-500"},error:{icon:ie,color:"text-rose-500"},warning:{icon:N,color:"text-amber-500"},info:{icon:D,color:"text-blue-500"}},n=e.computed(()=>o[l.state]||o.info),a=e.computed(()=>n.value.icon),r=e.computed(()=>n.value.color);return(s,i)=>a.value?(e.openBlock(),e.createBlock(k,{key:0,icon:a.value,size:t.size,animation:"scale",class:e.normalizeClass(r.value),"data-component":"DXValidationIcon","data-state":t.state},null,8,["icon","size","class","data-state"])):e.createCommentVNode("",!0)}},Sl=["disabled"],El={key:0},Nl=["disabled"],Dl={key:0},zl=["disabled"],Xl={key:0},Il={__name:"DXActionButtons",props:{showView:{type:Boolean,default:!1},showEdit:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},viewLabel:{type:String,default:"Просмотр"},editLabel:{type:String,default:"Редактировать"},deleteLabel:{type:String,default:"Удалить"},viewIcon:{type:Object,default:()=>X},editIcon:{type:Object,default:()=>qe},deleteIcon:{type:Object,default:()=>Qe},size:{type:String,default:"sm"},iconOnly:{type:Boolean,default:!1},align:{type:String,default:"left"},disabled:{type:Boolean,default:!1}},emits:["view","edit","delete"],setup(t){const l=t,o=e.computed(()=>l.size==="xs"?"xs":l.size==="md"?"sm":"xs"),n=e.computed(()=>{const a="font-semibold rounded-xl";return l.iconOnly?l.size==="xs"?`${a} p-1.5`:l.size==="md"?`${a} p-2.5`:`${a} p-2`:l.size==="xs"?`${a} px-2 py-1 text-xs`:l.size==="md"?`${a} px-4 py-2.5 text-sm`:`${a} px-3 py-2 text-xs`});return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"justify-end":t.align==="right","justify-center":t.align==="center"}]),"data-component":"DXActionButtons"},[t.showView?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",n.value]),disabled:t.disabled,onClick:r[0]||(r[0]=s=>a.$emit("view"))},[e.createVNode(k,{icon:t.viewIcon,size:o.value,animation:"scale"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",El,e.toDisplayString(t.viewLabel),1))],10,Sl)):e.createCommentVNode("",!0),t.showEdit?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 border border-slate-200 text-slate-700 hover:border-slate-300 hover:bg-slate-50 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",n.value]),disabled:t.disabled,onClick:r[1]||(r[1]=s=>a.$emit("edit"))},[e.createVNode(k,{icon:t.editIcon,size:o.value,animation:"wiggle"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Dl,e.toDisplayString(t.editLabel),1))],10,Nl)):e.createCommentVNode("",!0),t.showDelete?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 bg-rose-600 text-white hover:bg-rose-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",n.value]),disabled:t.disabled,onClick:r[2]||(r[2]=s=>a.$emit("delete"))},[e.createVNode(k,{icon:t.deleteIcon,size:o.value,animation:"scale"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Xl,e.toDisplayString(t.deleteLabel),1))],10,zl)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],2))}},Al=["data-variant"],Ll={class:"flex items-start gap-3"},Ml={class:"flex-1 min-w-0"},jl={key:0,class:"mt-3 flex gap-2"},_l={__name:"DXAlert",props:{variant:{type:String,default:"info"},title:{type:String,default:""},icon:{type:Object,default:void 0},showIcon:{type:Boolean,default:!0},dismissible:{type:Boolean,default:!1}},emits:["dismiss"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=()=>{a.value=!0,n("dismiss")},s={info:{bg:"bg-blue-50 border-blue-200",icon:"text-blue-500",title:"text-blue-900",content:"text-blue-800",close:"text-blue-500",defaultIcon:D},success:{bg:"bg-emerald-50 border-emerald-200",icon:"text-emerald-500",title:"text-emerald-900",content:"text-emerald-800",close:"text-emerald-500",defaultIcon:E},warning:{bg:"bg-amber-50 border-amber-200",icon:"text-amber-500",title:"text-amber-900",content:"text-amber-800",close:"text-amber-500",defaultIcon:N},danger:{bg:"bg-rose-50 border-rose-200",icon:"text-rose-500",title:"text-rose-900",content:"text-rose-800",close:"text-rose-500",defaultIcon:_}},i=e.computed(()=>s[o.variant]||s.info),d=e.computed(()=>o.showIcon?o.icon!==void 0?o.icon:i.value.defaultIcon:null),m=e.computed(()=>["rounded-xl border p-4",i.value.bg]),c=e.computed(()=>["w-5 h-5 flex-shrink-0 mt-0.5",i.value.icon]),u=e.computed(()=>i.value.title),g=e.computed(()=>["text-sm",i.value.content,o.title&&"mt-1"]);return e.computed(()=>i.value.close),(f,x)=>a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(m.value),role:"alert","data-component":"DXAlert","data-variant":t.variant},[e.createElementVNode("div",Ll,[d.value?(e.openBlock(),e.createBlock(k,{key:0,icon:d.value,size:"md",animation:"none",class:e.normalizeClass(c.value)},null,8,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ml,[t.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["font-semibold",u.value])},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(g.value)},[e.renderSlot(f.$slots,"default")],2)]),t.dismissible?(e.openBlock(),e.createBlock(I,{key:1,size:"sm",variant:"default",onClick:r})):e.createCommentVNode("",!0)]),f.$slots.actions?(e.openBlock(),e.createElementBlock("div",jl,[e.renderSlot(f.$slots,"actions")])):e.createCommentVNode("",!0)],10,Al))}},Tl={"aria-label":"Breadcrumb","data-component":"DXBreadcrumb"},Ol={key:0,class:"mx-2 text-slate-400","aria-hidden":"true"},Zl={key:1},Pl="inline-flex items-center transition-colors",Fl={__name:"DXBreadcrumb",props:{items:{type:Array,required:!0},separator:{type:String,default:"chevron"},size:{type:String,default:"md"},iconAnimation:{type:String,default:"none"},animateCurrentOnly:{type:Boolean,default:!1}},setup(t){const l=t,o={sm:"text-xs",md:"text-sm",lg:"text-base"},n=e.computed(()=>o[l.size]||o.md),a=e.computed(()=>l.size==="sm"?"xs":l.size==="lg"?"sm":"xs"),r=i=>i.to?"router-link":i.href?"a":"span",s=(i,d)=>i.iconAnimation?i.iconAnimation:l.animateCurrentOnly?d===l.items.length-1?l.iconAnimation:"none":l.iconAnimation;return(i,d)=>(e.openBlock(),e.createElementBlock("nav",Tl,[e.createElementVNode("ol",{class:e.normalizeClass(["flex items-center flex-wrap",n.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,c)=>(e.openBlock(),e.createElementBlock("li",{key:c,class:"flex items-center"},[c>0?(e.openBlock(),e.createElementBlock("span",Ol,[e.renderSlot(i.$slots,"separator",{},()=>[t.separator==="chevron"?(e.openBlock(),e.createBlock(k,{key:0,icon:e.unref(T),size:a.value,animation:"none"},null,8,["icon","size"])):(e.openBlock(),e.createElementBlock("span",Zl,"/"))])])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(m)),{href:m.href,to:m.to,class:e.normalizeClass([Pl,c===t.items.length-1?"text-slate-900 font-medium":"text-slate-500 hover:text-slate-700"]),"aria-current":c===t.items.length-1?"page":void 0},{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createBlock(k,{key:0,icon:m.icon,size:a.value,animation:s(m,c),class:"mr-1.5"},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1032,["href","to","class","aria-current"]))]))),128))],2)]))}},Rl={class:"inline-flex","data-component":"DXButtonGroup"},ql={key:0,class:"text-sm font-medium text-slate-700 mb-2"},Hl={__name:"DXButtonGroup",props:{modelValue:[String,Number,Array],label:{type:String,default:""},multiple:{type:Boolean,default:!1},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>{switch(o.size){case"sm":return"h-8";case"lg":return"h-12";default:return"h-10"}}),r=i=>{if(!o.disabled)if(o.multiple){const d=Array.isArray(o.modelValue)?o.modelValue:[],m=d.indexOf(i);if(m>-1){const c=[...d];c.splice(m,1),n("update:modelValue",c)}else n("update:modelValue",[...d,i])}else n("update:modelValue",i)},s=i=>o.multiple?Array.isArray(o.modelValue)&&o.modelValue.includes(i):o.modelValue===i;return e.provide("buttonGroup",{modelValue:o.modelValue,multiple:o.multiple,size:o.size,disabled:o.disabled,handleSelect:r,isSelected:s}),(i,d)=>(e.openBlock(),e.createElementBlock("div",Rl,[t.label?(e.openBlock(),e.createElementBlock("p",ql,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["inline-flex border border-slate-200 rounded-xl overflow-hidden divide-x divide-slate-200",a.value])},[e.renderSlot(i.$slots,"default")],2)]))}},Gl={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},Ul={class:"relative"},Kl=["placeholder","disabled","onKeydown"],Wl={key:1,class:"absolute z-20 mt-2 w-full bg-white border border-slate-200 rounded-xl shadow-lg py-2 max-h-48 overflow-y-auto"},Yl=["onClick","onMouseenter"],Jl={class:"flex items-center gap-2"},Ql={key:0,class:"w-4 h-4 text-slate-900",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},vl={key:0,class:"px-4 py-2 text-sm text-slate-500"},eo={key:0},to={key:1},lo={key:2,class:"mt-1 text-xs text-slate-500"},oo={__name:"DXComboBox",props:{modelValue:[String,Number],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},allowCustom:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(null),s=e.ref(""),i=e.ref(!1),d=e.ref(0),m=e.computed(()=>o.options.find(h=>h.value===o.modelValue)),c=e.computed(()=>{if(!o.filterable||!s.value)return o.options;const h=s.value.toLowerCase();return o.options.filter(b=>b.label.toLowerCase().includes(h))}),u=()=>{if(i.value=!0,d.value=0,!o.filterable)return;!o.options.find(b=>b.label===s.value)&&!o.allowCustom&&n("update:modelValue",null)},g=()=>{i.value=!0,d.value=0},f=h=>{s.value=h.label,n("update:modelValue",h.value),i.value=!1},x=()=>{if(!i.value){i.value=!0;return}d.value<c.value.length-1&&d.value++},C=()=>{d.value>0&&d.value--},B=()=>{if(i.value&&c.value.length>0){const h=c.value[d.value];h&&f(h)}else o.allowCustom&&s.value&&(n("update:modelValue",s.value),i.value=!1)},y=h=>{a.value&&!a.value.contains(h.target)&&(i.value=!1,!o.allowCustom&&m.value&&(s.value=m.value.label))};return e.watch(()=>o.modelValue,h=>{const b=o.options.find(V=>V.value===h);s.value=b?b.label:o.allowCustom?String(h||""):""},{immediate:!0}),e.onMounted(()=>document.addEventListener("click",y)),e.onBeforeUnmount(()=>document.removeEventListener("click",y)),(h,b)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"root",ref:a,"data-component":"DXComboBox"},[t.label?(e.openBlock(),e.createElementBlock("label",Gl,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ul,[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:r,"onUpdate:modelValue":b[0]||(b[0]=V=>s.value=V),type:"text",placeholder:t.placeholder,disabled:t.disabled,class:e.normalizeClass(["w-full pr-10 rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm text-slate-900 placeholder:text-slate-400 hover:border-slate-300 focus:border-slate-300 focus:outline-none transition-colors",t.disabled&&"opacity-60 cursor-not-allowed bg-slate-50"]),onInput:u,onFocus:g,onKeydown:[e.withKeys(e.withModifiers(x,["prevent"]),["down"]),e.withKeys(e.withModifiers(C,["prevent"]),["up"]),e.withKeys(e.withModifiers(B,["prevent"]),["enter"]),b[1]||(b[1]=e.withKeys(V=>i.value=!1,["escape"]))]},null,42,Kl),[[e.vModelText,s.value]]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none transition-transform",{"rotate-180":i.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...b[2]||(b[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))]),i.value&&(c.value.length>0||t.allowCustom&&s.value)?(e.openBlock(),e.createElementBlock("div",Wl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(V,w)=>(e.openBlock(),e.createElementBlock("button",{key:V.value,type:"button",class:e.normalizeClass(["w-full text-left px-4 py-2 text-sm hover:bg-slate-50 flex items-center justify-between",{"bg-slate-100":w===d.value}]),onClick:j=>f(V),onMouseenter:j=>d.value=w},[e.createElementVNode("span",Jl,[V.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(V.label),1)]),t.modelValue===V.value?(e.openBlock(),e.createElementBlock("svg",Ql,[...b[3]||(b[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],42,Yl))),128)),c.value.length===0&&s.value?(e.openBlock(),e.createElementBlock("div",vl,[t.allowCustom?(e.openBlock(),e.createElementBlock("span",eo,'Нажмите Enter для "'+e.toDisplayString(s.value)+'"',1)):(e.openBlock(),e.createElementBlock("span",to,"Не найдено"))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",lo,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)],512))}},no={class:"space-y-1","data-component":"DXCopyField"},ao={key:0,class:"text-[11px] uppercase tracking-wide text-slate-500 font-semibold"},ro={class:"flex items-center justify-between gap-2 rounded-lg border border-slate-200 bg-white px-3 py-3"},so={class:"text-base font-semibold text-slate-900 break-all flex-1 text-center"},io=["aria-label"],co={__name:"DXCopyField",props:{label:{type:String,default:""},value:{type:String,default:""},copyIcon:{type:Object,default:()=>Te},successIcon:{type:Object,default:()=>_e},copyIconAnimation:{type:String,default:"scale"},copiedIconAnimation:{type:String,default:"scale"},successDuration:{type:Number,default:2e3}},emits:["copied"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=async()=>{if(o.value)try{await navigator.clipboard.writeText(o.value),a.value=!0,n("copied",o.value),setTimeout(()=>{a.value=!1},o.successDuration)}catch(s){console.error("Не удалось скопировать",s)}};return(s,i)=>(e.openBlock(),e.createElementBlock("div",no,[t.label?(e.openBlock(),e.createElementBlock("p",ao,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ro,[e.createElementVNode("p",so,e.toDisplayString(t.value||"—"),1),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["h-9 w-9 inline-flex items-center justify-center rounded-xl border border-slate-200 text-slate-700 hover:border-slate-300 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"border-emerald-300 bg-emerald-50":a.value}]),"aria-label":`Скопировать ${t.label||"значение"}`,onClick:r},[a.value?(e.openBlock(),e.createBlock(k,{key:0,icon:e.unref(Me),size:"sm",animation:t.copiedIconAnimation,class:"text-emerald-600"},null,8,["icon","animation"])):(e.openBlock(),e.createBlock(k,{key:1,icon:t.copyIcon,size:"sm",animation:t.copyIconAnimation},null,8,["icon","animation"]))],10,io)])]))}},mo={class:"w-full","data-component":"DXDatePicker"},uo={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},po={class:"relative"},fo=["type","value","placeholder","disabled","readonly"],go={key:1,class:"absolute z-20 mt-2 p-4 bg-white border border-slate-200 rounded-xl shadow-lg"},ho={class:"space-y-3"},bo={class:"flex gap-2"},ko={key:2,class:"mt-1 text-xs text-slate-500"},xo={__name:"DXDatePicker",props:{modelValue:[String,Object],label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=e.ref(""),s=e.ref(""),i=e.computed(()=>{if(o.range&&typeof o.modelValue=="object"&&o.modelValue){const{start:g,end:f}=o.modelValue;return g&&f?`${d(g)} - ${d(f)}`:""}return o.modelValue||""}),d=g=>g?new Date(g).toLocaleDateString("ru-RU"):"",m=g=>n("update:modelValue",g),c=()=>{o.disabled||(a.value=!a.value,a.value&&typeof o.modelValue=="object"&&o.modelValue&&(r.value=o.modelValue.start||"",s.value=o.modelValue.end||""))},u=()=>{r.value&&s.value&&n("update:modelValue",{start:r.value,end:s.value}),a.value=!1};return(g,f)=>(e.openBlock(),e.createElementBlock("div",mo,[t.label?(e.openBlock(),e.createElementBlock("label",uo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",po,[e.createElementVNode("input",{type:t.range?"text":"date",value:i.value,placeholder:t.placeholder,disabled:t.disabled,class:"w-full h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",readonly:t.range,onChange:f[0]||(f[0]=x=>!t.range&&m(x.target.value)),onClick:f[1]||(f[1]=x=>t.range&&c())},null,40,fo),f[5]||(f[5]=e.createElementVNode("svg",{class:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1))]),t.range&&a.value?(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",ho,[e.createElementVNode("div",null,[f[6]||(f[6]=e.createElementVNode("label",{class:"text-xs text-slate-600"},"От",-1)),e.withDirectives(e.createElementVNode("input",{type:"date","onUpdate:modelValue":f[2]||(f[2]=x=>r.value=x),class:"w-full mt-1 px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10"},null,512),[[e.vModelText,r.value]])]),e.createElementVNode("div",null,[f[7]||(f[7]=e.createElementVNode("label",{class:"text-xs text-slate-600"},"До",-1)),e.withDirectives(e.createElementVNode("input",{type:"date","onUpdate:modelValue":f[3]||(f[3]=x=>s.value=x),class:"w-full mt-1 px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10"},null,512),[[e.vModelText,s.value]])]),e.createElementVNode("div",bo,[e.createElementVNode("button",{type:"button",class:"flex-1 px-3 py-2 text-sm bg-slate-900 text-white rounded-lg hover:bg-slate-800",onClick:u}," Применить "),e.createElementVNode("button",{type:"button",class:"px-3 py-2 text-sm border border-slate-200 rounded-lg hover:bg-slate-50",onClick:f[4]||(f[4]=x=>a.value=!1)}," Отмена ")])])])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",ko,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},yo={class:"w-full","data-component":"DXFileUpload"},wo={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},Bo=["accept","multiple","disabled"],Vo={key:0,class:"text-center"},Co={class:"text-sm font-medium text-slate-700 mb-1"},$o=["disabled"],So={class:"text-xs text-slate-500"},Eo={key:1,class:"space-y-2"},No={key:0,class:"w-12 h-12 flex-shrink-0 rounded overflow-hidden bg-slate-200"},Do=["src","alt"],zo={class:"flex-1 min-w-0"},Xo={class:"text-sm font-medium text-slate-900 truncate"},Io={class:"text-xs text-slate-500"},Ao=["onClick"],Lo=["disabled"],Mo={key:1,class:"mt-1 text-xs text-slate-500"},jo={key:2,class:"mt-1 text-xs text-rose-500"},_o={__name:"DXFileUpload",props:{modelValue:[File,FileList,Array],label:{type:String,default:""},helper:{type:String,default:""},accept:{type:String,default:""},multiple:{type:Boolean,default:!1},maxSize:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","upload"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(null),s=e.ref(!1),i=e.ref([]),d=e.ref(""),m=B=>{const y=Array.from(B.target.files||[]);f(y)},c=B=>{var h;if(s.value=!1,o.disabled)return;const y=Array.from(((h=B.dataTransfer)==null?void 0:h.files)||[]);f(y)},u=()=>{o.disabled||(s.value=!0)},g=B=>{B.target===r.value&&(s.value=!1)},f=B=>{d.value="";const y=B.map(h=>{if(h.type.startsWith("image/")){const b=URL.createObjectURL(h);return Object.assign(h,{preview:b})}return h});o.multiple?i.value=[...i.value,...y]:i.value=y.slice(0,1),n("update:modelValue",o.multiple?i.value:i.value[0])},x=B=>{const y=i.value[B];y.preview&&URL.revokeObjectURL(y.preview),i.value.splice(B,1),n("update:modelValue",o.multiple?i.value:i.value[0]||null)},C=B=>{if(B===0)return"0 Bytes";const y=1024,h=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(B)/Math.log(y));return Math.round(B/Math.pow(y,b)*100)/100+" "+h[b]};return e.watch(()=>o.modelValue,B=>{B||(i.value=[])}),(B,y)=>(e.openBlock(),e.createElementBlock("div",yo,[t.label?(e.openBlock(),e.createElementBlock("label",wo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"dropZone",ref:r,class:e.normalizeClass(["relative border-2 border-dashed rounded-xl p-6 transition-all",[s.value?"border-slate-900 bg-slate-50 scale-105":"border-slate-300 bg-white hover:border-slate-400",t.disabled&&"opacity-60 cursor-not-allowed"]]),onDragenter:e.withModifiers(u,["prevent"]),onDragover:y[2]||(y[2]=e.withModifiers(()=>{},["prevent"])),onDragleave:e.withModifiers(g,["prevent"]),onDrop:e.withModifiers(c,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",accept:t.accept,multiple:t.multiple,disabled:t.disabled,class:"hidden",onChange:m},null,40,Bo),i.value.length?(e.openBlock(),e.createElementBlock("div",Eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(h,b)=>{var V;return e.openBlock(),e.createElementBlock("div",{key:b,class:"flex items-center gap-3 p-3 bg-slate-50 rounded-lg"},[(V=h.type)!=null&&V.startsWith("image/")?(e.openBlock(),e.createElementBlock("div",No,[e.createElementVNode("img",{src:h.preview,alt:h.name,class:"w-full h-full object-cover"},null,8,Do)])):(e.openBlock(),e.createBlock(k,{key:1,icon:e.unref(Ze),size:"lg",animation:"none",class:"text-slate-400 flex-shrink-0"},null,8,["icon"])),e.createElementVNode("div",zo,[e.createElementVNode("p",Xo,e.toDisplayString(h.name),1),e.createElementVNode("p",Io,e.toDisplayString(C(h.size)),1)]),e.createElementVNode("button",{type:"button",class:"text-slate-400 hover:text-slate-600 transition-colors",onClick:w=>x(b),"aria-label":"Удалить файл"},[e.createVNode(k,{icon:e.unref(O),size:"md",animation:"scale"},null,8,["icon"])],8,Ao)])}),128)),t.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"w-full py-2 text-sm text-slate-600 hover:text-slate-900 border border-slate-200 rounded-lg hover:bg-slate-50",disabled:t.disabled,onClick:y[1]||(y[1]=h=>{var b;return(b=a.value)==null?void 0:b.click()})},[e.createVNode(k,{icon:e.unref(Ge),size:"sm",animation:"none",class:"inline mr-1"},null,8,["icon"]),y[4]||(y[4]=e.createTextVNode(" Добавить ещё ",-1))],8,Lo)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Vo,[e.createVNode(k,{icon:e.unref(Oe),size:"xl",animation:"none",class:"mx-auto text-slate-400 mb-3 w-12 h-12"},null,8,["icon"]),e.createElementVNode("p",Co,[y[3]||(y[3]=e.createTextVNode(" Перетащите файлы сюда или ",-1)),e.createElementVNode("button",{type:"button",class:"text-slate-900 underline hover:no-underline",disabled:t.disabled,onClick:y[0]||(y[0]=h=>{var b;return(b=a.value)==null?void 0:b.click()})}," выберите ",8,$o)]),e.createElementVNode("p",So,e.toDisplayString(t.accept||"Любые файлы")+" "+e.toDisplayString(t.maxSize?`• Макс. ${t.maxSize}`:""),1)]))],34),t.helper?(e.openBlock(),e.createElementBlock("p",Mo,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("p",jo,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)]))}},To={class:"space-y-2","data-component":"DXFilterGroup"},Oo={class:"text-xs font-semibold text-slate-500 uppercase tracking-wide"},Zo={class:"flex flex-wrap gap-2"},Po=["onClick"],Fo={__name:"DXFilterGroup",props:{label:{type:String,required:!0},options:{type:Array,default:()=>[]},modelValue:[String,Boolean],clearable:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",To,[e.createElementVNode("p",Oo,e.toDisplayString(t.label),1),e.createElementVNode("div",Zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,n=>(e.openBlock(),e.createElementBlock("button",{key:n.value,type:"button",class:e.normalizeClass(["px-3 py-2 rounded-full text-xs font-semibold border transition",t.modelValue===n.value?"bg-slate-800 text-white border-slate-800":"border-slate-200 text-slate-700 hover:border-slate-300 bg-white"]),onClick:a=>l.$emit("update:modelValue",n.value)},e.toDisplayString(n.label),11,Po))),128)),t.modelValue&&t.clearable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"px-3 py-2 rounded-full text-xs font-semibold border border-amber-300 text-amber-700 bg-amber-50 hover:bg-amber-100 transition",onClick:o[0]||(o[0]=n=>l.$emit("update:modelValue",null))}," Сбросить ")):e.createCommentVNode("",!0)])]))}},Ro={class:"w-full","data-component":"DXFormControl"},qo={class:"flex items-center justify-between mb-1"},Ho={key:0,class:"text-sm font-medium text-slate-700"},Go={key:0,class:"text-rose-500"},Uo={key:1,class:"text-xs text-slate-500"},Ko={class:"relative"},Wo={key:0,class:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"},Yo={key:1,class:"absolute right-3 top-1/2 -translate-y-1/2"},Jo={key:0,class:"mt-1 text-xs text-rose-500 flex items-center gap-1"},Qo={key:1,class:"mt-1 text-xs text-slate-500"},vo={__name:"DXFormControl",props:{label:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},required:{type:Boolean,default:!1},validationState:{type:String,default:""},prefixIcon:{type:Object,default:null},maxLength:{type:Number,default:0},currentLength:{type:Number,default:0},showCount:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>l.validationState==="success"||l.validationState==="error");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Ro,[e.createElementVNode("div",qo,[t.label?(e.openBlock(),e.createElementBlock("label",Ho,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.required?(e.openBlock(),e.createElementBlock("span",Go,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.maxLength&&t.showCount?(e.openBlock(),e.createElementBlock("span",Uo,e.toDisplayString(t.currentLength)+" / "+e.toDisplayString(t.maxLength),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ko,[n.$slots.prefix||t.prefixIcon?(e.openBlock(),e.createElementBlock("div",Wo,[t.prefixIcon?(e.openBlock(),e.createBlock(k,{key:0,icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"pl-10":n.$slots.prefix||t.prefixIcon,"pr-10":o.value})},[e.renderSlot(n.$slots,"default")],2),o.value?(e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(L,{state:t.validationState,size:"md"},null,8,["state"])])):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",Jo,[e.createVNode(L,{state:"error",size:"xs"}),e.createTextVNode(" "+e.toDisplayString(t.error),1)])):t.helper?(e.openBlock(),e.createElementBlock("p",Qo,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},en={class:"w-full","data-component":"DXInputGroup"},tn={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},ln={class:"flex"},on={key:1,class:"mt-1 text-xs text-slate-500"},nn={__name:"DXInputGroup",props:{label:{type:String,default:""},helper:{type:String,default:""},size:{type:String,default:"md"}},setup(t){const l=t;return e.provide("inputGroup",{size:l.size}),(o,n)=>(e.openBlock(),e.createElementBlock("div",en,[t.label?(e.openBlock(),e.createElementBlock("label",tn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ln,[e.renderSlot(o.$slots,"default")]),t.helper?(e.openBlock(),e.createElementBlock("p",on,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},an={class:"w-full","data-component":"DXInputMask"},rn={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},sn=["type","placeholder","value","disabled"],cn={key:1,class:"mt-1 text-xs text-slate-500"},dn={__name:"DXInputMask",props:{modelValue:{type:String,default:""},mask:{type:String,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(""),s=c=>{const u=c.replace(/\D/g,"");let g="",f=0;for(let x=0;x<o.mask.length&&f<u.length;x++)o.mask[x]==="#"?(g+=u[f],f++):g+=o.mask[x];return g},i=c=>c.replace(/\D/g,""),d=c=>{const u=i(c.target.value),g=s(u);r.value=g,n("update:modelValue",u),setTimeout(()=>{if(a.value){const f=g.length;a.value.setSelectionRange(f,f)}},0)},m=c=>{["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight"].includes(c.key)||/^\d$/.test(c.key)||c.preventDefault()};return e.watch(()=>o.modelValue,c=>{c!==i(r.value)&&(r.value=s(c))},{immediate:!0}),(c,u)=>(e.openBlock(),e.createElementBlock("div",an,[t.label?(e.openBlock(),e.createElementBlock("label",rn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputRef",ref:a,type:t.type,placeholder:t.placeholder,value:r.value,disabled:t.disabled,class:"w-full h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",onInput:d,onKeydown:m},null,40,sn),t.helper?(e.openBlock(),e.createElementBlock("p",cn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},mn={class:"flex items-center gap-1","aria-label":"Pagination","data-component":"DXPagination"},un=["disabled"],pn={key:0,class:"px-2 text-slate-400"},fn=["aria-current","onClick"],gn=["disabled"],hn="bg-slate-900 text-white hover:bg-slate-800",bn={__name:"DXPagination",props:{modelValue:{type:Number,default:1},totalPages:{type:Number,required:!0},siblingCount:{type:Number,default:1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=m=>{m>=1&&m<=o.totalPages&&n("update:modelValue",m)},r=e.computed(()=>{const m=o.modelValue,c=o.totalPages,u=o.siblingCount,g=[];g.push(1);const f=Math.max(2,m-u),x=Math.min(c-1,m+u);f>2&&g.push("...");for(let C=f;C<=x;C++)C!==1&&C!==c&&g.push(C);return x<c-1&&g.push("..."),c>1&&g.push(c),g}),s={sm:"h-7 min-w-7 text-xs",md:"h-9 min-w-9 text-sm",lg:"h-11 min-w-11 text-base"},i=e.computed(()=>["inline-flex items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 hover:bg-slate-50 hover:border-slate-300 transition-colors",s[o.size]||s.md]),d=e.computed(()=>["inline-flex items-center justify-center rounded-lg font-medium transition-colors",s[o.size]||s.md,"text-slate-600 hover:bg-slate-100"]);return(m,c)=>(e.openBlock(),e.createElementBlock("nav",mn,[e.createElementVNode("button",{type:"button",disabled:t.modelValue<=1,class:e.normalizeClass([i.value,t.modelValue<=1&&"opacity-50 cursor-not-allowed"]),onClick:c[0]||(c[0]=u=>a(t.modelValue-1)),"aria-label":"Предыдущая"},[e.createVNode(k,{icon:e.unref(je),size:"sm",animation:"none"},null,8,["icon"])],10,un),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[u==="..."?(e.openBlock(),e.createElementBlock("span",pn,"...")):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass([d.value,u===t.modelValue&&hn]),"aria-current":u===t.modelValue?"page":void 0,onClick:g=>a(u)},e.toDisplayString(u),11,fn))],64))),128)),e.createElementVNode("button",{type:"button",disabled:t.modelValue>=t.totalPages,class:e.normalizeClass([i.value,t.modelValue>=t.totalPages&&"opacity-50 cursor-not-allowed"]),onClick:c[1]||(c[1]=u=>a(t.modelValue+1)),"aria-label":"Следующая"},[e.createVNode(k,{icon:e.unref(T),size:"sm",animation:"none"},null,8,["icon"])],10,gn)]))}},kn={class:"w-full","data-component":"DXPasswordInput"},xn={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},yn={class:"relative"},wn=["type","placeholder","value","disabled"],Bn=["disabled","aria-label"],Vn={key:1,class:"mt-1 text-xs text-rose-500"},Cn={key:2,class:"mt-1 text-xs text-slate-500"},$n={__name:"DXPasswordInput",props:{modelValue:{type:String,default:""},label:{type:String,default:""},placeholder:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){const l=e.ref(!1);return(o,n)=>(e.openBlock(),e.createElementBlock("div",kn,[t.label?(e.openBlock(),e.createElementBlock("label",xn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",yn,[e.createElementVNode("input",{type:l.value?"text":"password",placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(["w-full pr-11 h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",{"border-rose-300 focus:ring-rose-500/10":t.error}]),onInput:n[0]||(n[0]=a=>o.$emit("update:modelValue",a.target.value))},null,42,wn),e.createElementVNode("button",{type:"button",class:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition",disabled:t.disabled,onClick:n[1]||(n[1]=a=>l.value=!l.value),"aria-label":l.value?"Скрыть пароль":"Показать пароль"},[e.createVNode(k,{icon:l.value?e.unref(Pe):e.unref(X),size:"md",animation:"scale"},null,8,["icon"])],8,Bn)]),t.error?(e.openBlock(),e.createElementBlock("p",Vn,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",Cn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},Sn=["value","checked","disabled"],En={class:"flex items-start gap-3"},Nn={class:"flex-1 min-w-0"},Dn={class:"flex items-center justify-between"},zn={key:0,class:"w-5 h-5 rounded-full bg-slate-900 flex items-center justify-center flex-shrink-0"},Xn={key:0,class:"text-sm text-slate-600 mt-1"},In={__name:"DXRadioCard",props:{modelValue:[String,Number,Boolean],value:{type:[String,Number,Boolean],required:!0},title:{type:String,required:!0},description:{type:String,default:""},icon:{type:Object,default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["block relative cursor-pointer group",{"cursor-not-allowed opacity-60":t.disabled}]),"data-component":"DXRadioCard"},[e.createElementVNode("input",{type:"radio",value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,class:"sr-only peer",onChange:o[0]||(o[0]=n=>l.$emit("update:modelValue",t.value))},null,40,Sn),e.createElementVNode("div",{class:e.normalizeClass(["border-2 rounded-xl p-4 transition-all",[t.modelValue===t.value?"border-slate-900 bg-slate-50":"border-slate-200 bg-white",!t.disabled&&"hover:border-slate-300 hover:shadow-sm",t.disabled&&"bg-slate-50"]])},[e.createElementVNode("div",En,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:e.normalizeClass(["w-6 h-6 flex-shrink-0",t.modelValue===t.value?"text-slate-900":"text-slate-400"])},null,8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("div",Nn,[e.createElementVNode("div",Dn,[e.createElementVNode("p",{class:e.normalizeClass(["font-semibold",t.modelValue===t.value?"text-slate-900":"text-slate-700"])},e.toDisplayString(t.title),3),t.modelValue===t.value?(e.openBlock(),e.createElementBlock("div",zn,[...o[1]||(o[1]=[e.createElementVNode("svg",{class:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"})],-1)])])):e.createCommentVNode("",!0)]),t.description?(e.openBlock(),e.createElementBlock("p",Xn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")])])],2)],2))}},An={class:"space-y-2","data-component":"DXRadioGroup"},Ln={key:0,class:"text-sm font-medium text-slate-700 mb-3"},Mn=["value","checked","disabled","onChange"],jn={class:"text-sm text-slate-700 select-none"},_n={key:1,class:"text-xs text-slate-500 mt-1"},Tn={__name:"DXRadioGroup",props:{modelValue:[String,Number,Boolean],options:{type:Array,required:!0},label:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"},layout:{type:String,default:"vertical"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{switch(l.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}});return(n,a)=>(e.openBlock(),e.createElementBlock("div",An,[t.label?(e.openBlock(),e.createElementBlock("p",Ln,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.layout==="horizontal"?"flex flex-wrap gap-3":"space-y-2")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("label",{key:r.value,class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled||r.disabled}])},[e.createElementVNode("input",{type:"radio",value:r.value,checked:t.modelValue===r.value,disabled:t.disabled||r.disabled,class:e.normalizeClass(["rounded-full border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",o.value]),onChange:s=>n.$emit("update:modelValue",r.value)},null,42,Mn),e.createElementVNode("span",jn,e.toDisplayString(r.label),1)],2))),128))],2),t.helper?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},On={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},Zn={key:1,class:"flex flex-wrap gap-2 mb-2"},Pn=["onClick"],Fn={class:"truncate flex items-center gap-2"},Rn={key:2,class:"absolute z-20 mt-2 w-full bg-white border border-slate-200 rounded-xl shadow-lg p-3 space-y-2"},qn={class:"relative"},Hn=["placeholder"],Gn={class:"max-h-48 overflow-y-auto space-y-1"},Un=["onClick"],Kn={class:"flex items-center gap-2 flex-1 truncate"},Wn={key:0,class:"w-4 h-4 text-slate-900 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Yn={key:1,class:"text-xs text-slate-500 px-3 py-2"},Jn={__name:"DXSearchSelect",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Выбрать"},searchPlaceholder:{type:String,default:"Поиск..."},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1}},emits:["update:modelValue","create"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=e.ref(""),s=e.ref(null),i=e.ref(null),d=e.computed(()=>o.multiple?null:o.options.find(h=>String(h.value)===String(o.modelValue))),m=e.computed(()=>{if(!o.multiple)return[];const h=Array.isArray(o.modelValue)?o.modelValue:[];return o.options.filter(b=>h.includes(b.value))}),c=e.computed(()=>{if(o.multiple){const h=m.value.length;return h>0?`Выбрано: ${h}`:o.placeholder}return d.value?d.value.label:o.placeholder}),u=e.computed(()=>{const h=r.value.toLowerCase().trim();return h?o.options.filter(b=>b.label.toLowerCase().includes(h)):o.options}),g=h=>o.multiple?(Array.isArray(o.modelValue)?o.modelValue:[]).includes(h):o.modelValue===h,f=()=>{a.value=!a.value,a.value&&e.nextTick(()=>{var h;return(h=i.value)==null?void 0:h.focus()})},x=h=>{if(o.multiple){const b=Array.isArray(o.modelValue)?o.modelValue:[],V=b.indexOf(h);if(V>-1){const w=[...b];w.splice(V,1),n("update:modelValue",w)}else n("update:modelValue",[...b,h])}else n("update:modelValue",h),a.value=!1;r.value=""},C=h=>{if(o.multiple){const b=Array.isArray(o.modelValue)?o.modelValue:[];n("update:modelValue",b.filter(V=>V!==h))}},B=()=>{o.creatable&&r.value&&(n("create",r.value),r.value="")},y=h=>{s.value&&!s.value.contains(h.target)&&(a.value=!1,r.value="")};return e.watch(a,h=>{h||(r.value="")}),e.onMounted(()=>document.addEventListener("click",y)),e.onBeforeUnmount(()=>document.removeEventListener("click",y)),(h,b)=>{var V;return e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"root",ref:s,"data-component":"DXSearchSelect"},[t.label?(e.openBlock(),e.createElementBlock("label",On,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.multiple&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,w=>(e.openBlock(),e.createElementBlock("span",{key:w.value,class:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium bg-slate-100 text-slate-700 rounded-lg"},[w.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.icon),{key:0,class:"w-3 h-3"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(w.label)+" ",1),e.createElementVNode("button",{type:"button",class:"hover:text-slate-900",onClick:e.withModifiers(j=>C(w.value),["stop"])},[...b[3]||(b[3]=[e.createElementVNode("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Pn)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["w-full flex items-center justify-between h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white transition-colors",[!a.value&&"hover:border-slate-300",a.value&&"ring-2 ring-slate-900/10 border-slate-300"]]),onClick:f},[e.createElementVNode("span",Fn,[!t.multiple&&((V=d.value)!=null&&V.icon)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(c.value),1)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-4 h-4 text-slate-400 transition-transform",{"rotate-180":a.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...b[4]||(b[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],2),a.value?(e.openBlock(),e.createElementBlock("div",Rn,[e.createElementVNode("div",qn,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:i,"onUpdate:modelValue":b[0]||(b[0]=w=>r.value=w),class:"w-full px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10",placeholder:t.searchPlaceholder,onKeydown:[b[1]||(b[1]=e.withModifiers(()=>{},["stop"])),b[2]||(b[2]=e.withKeys(w=>a.value=!1,["escape"]))]},null,40,Hn),[[e.vModelText,r.value]]),b[5]||(b[5]=e.createElementVNode("svg",{class:"absolute right-3 top-2.5 w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),e.createElementVNode("div",Gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,w=>(e.openBlock(),e.createElementBlock("button",{key:w.value,type:"button",class:e.normalizeClass(["w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center justify-between gap-2",{"bg-slate-100":g(w.value)}]),onClick:j=>x(w.value)},[e.createElementVNode("span",Kn,[w.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(w.label),1)]),g(w.value)?(e.openBlock(),e.createElementBlock("svg",Wn,[...b[6]||(b[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,Un))),128)),t.creatable&&r.value&&!u.value.length?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center gap-2 text-slate-600",onClick:B},[b[7]||(b[7]=e.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1)),e.createTextVNode(' Создать "'+e.toDisplayString(r.value)+'" ',1)])):u.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",Yn,"Не найдено"))])])):e.createCommentVNode("",!0)],512)}}},Qn={class:"inline-flex","data-component":"DXSegmentedControl"},vn={key:0,class:"text-sm font-medium text-slate-700 mb-2"},ea={class:"relative inline-flex p-1 bg-slate-100 rounded-xl gap-1"},ta=["disabled","onClick"],la={key:1},oa={__name:"DXSegmentedControl",props:{modelValue:[String,Number,Boolean],options:{type:Array,required:!0},label:{type:String,default:""},iconAnimation:{type:String,default:"none"},animateActiveOnly:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref([]),r=e.ref({}),s=e.computed(()=>o.options.findIndex(c=>c.value===o.modelValue)),i=()=>{const c=s.value;if(c>=0&&a.value[c]){const u=a.value[c];r.value={width:`${u.offsetWidth}px`,height:`${u.offsetHeight}px`,left:`${u.offsetLeft}px`,top:`${u.offsetTop}px`}}},d=c=>{o.disabled||n("update:modelValue",c)},m=c=>o.iconAnimation==="none"?"none":o.animateActiveOnly?o.modelValue===c.value?o.iconAnimation:"none":o.iconAnimation;return e.watch(()=>o.modelValue,()=>{e.nextTick(i)}),e.onMounted(()=>{e.nextTick(i)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",Qn,[t.label?(e.openBlock(),e.createElementBlock("p",vn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ea,[e.createElementVNode("div",{class:"absolute bg-white rounded-lg shadow-sm transition-all duration-200 ease-out",style:e.normalizeStyle(r.value)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(g,f)=>(e.openBlock(),e.createElementBlock("button",{key:g.value,type:"button",ref_for:!0,ref:x=>{x&&(a.value[f]=x)},class:e.normalizeClass(["relative z-10 px-4 py-1.5 text-sm font-medium transition-colors duration-150 rounded-lg whitespace-nowrap min-w-[60px] text-center inline-flex items-center justify-center gap-1.5",[t.modelValue===g.value?"text-slate-900":"text-slate-600 hover:text-slate-900",t.disabled&&"opacity-60 cursor-not-allowed"]]),disabled:t.disabled,onClick:x=>d(g.value)},[g.icon?(e.openBlock(),e.createBlock(k,{key:0,icon:g.icon,size:"xs",animation:m(g)},null,8,["icon","animation"])):e.createCommentVNode("",!0),g.label?(e.openBlock(),e.createElementBlock("span",la,e.toDisplayString(g.label),1)):e.createCommentVNode("",!0),g.count!==void 0&&g.count!==null?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold rounded-full",t.modelValue===g.value?"bg-slate-800 text-white":"bg-slate-200 text-slate-700"])},e.toDisplayString(g.count),3)):e.createCommentVNode("",!0)],10,ta))),128))])]))}},na=["onClick","aria-expanded"],aa={class:"flex items-center gap-2"},ra={class:"text-slate-900"},sa={class:"overflow-hidden"},ia={class:"pb-4 px-1 text-sm text-slate-600"},ca={__name:"DXAccordion",props:{items:{type:Array,required:!0},multiple:{type:Boolean,default:!1},defaultOpen:{type:Array,default:()=>[]},variant:{type:String,default:"default"}},setup(t){const l=t,o=e.ref(new Set(l.defaultOpen)),n=i=>o.value.has(i),a=i=>{l.multiple?(o.value.has(i)?o.value.delete(i):o.value.add(i),o.value=new Set(o.value)):o.value.has(i)?o.value=new Set:o.value=new Set([i])},r={default:"",bordered:"border border-slate-200 rounded-xl overflow-hidden",separated:"space-y-2"},s=e.computed(()=>[r[l.variant]||r.default]);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),"data-component":"DXAccordion"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"border-b border-slate-200 last:border-b-0"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["w-full flex items-center justify-between py-4 px-1 text-left transition-colors hover:bg-slate-50",{"font-semibold":n(c)}]),onClick:u=>a(c),"aria-expanded":n(c)},[e.createElementVNode("span",aa,[m.icon?(e.openBlock(),e.createBlock(k,{key:0,icon:m.icon,size:"md",animation:"none",class:"text-slate-500"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",ra,e.toDisplayString(m.title),1)]),e.createVNode(k,{icon:e.unref(z),size:"md",animation:"none",class:e.normalizeClass(["text-slate-400 transition-transform duration-200",{"rotate-180":n(c)}])},null,8,["icon","class"])],10,na),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-96","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-96","leave-to-class":"opacity-0 max-h-0"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sa,[e.createElementVNode("div",ia,[e.renderSlot(i.$slots,`item-${c}`,{},()=>[e.createTextVNode(e.toDisplayString(m.content),1)])])],512),[[e.vShow,n(c)]])]),_:2},1024)]))),128))],2))}},da={key:0,class:"absolute right-0 mt-2 w-56 bg-white border border-slate-200 rounded-2xl shadow-lg py-2 z-20"},ma={__name:"DXDropdown",setup(t){const l=e.ref(!1),o=e.ref(null),n=()=>l.value=!l.value,a=()=>l.value=!1,r=s=>{o.value&&!o.value.contains(s.target)&&a()};return e.onMounted(()=>document.addEventListener("click",r)),e.onBeforeUnmount(()=>document.removeEventListener("click",r)),(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"root",ref:o,"data-component":"DXDropdown"},[e.createElementVNode("button",{type:"button",class:"dropdown-btn inline-flex items-center gap-2 px-3 py-2 rounded-xl border border-slate-200 text-sm font-semibold text-slate-700 hover:border-slate-300 transition",onClick:n},[e.renderSlot(s.$slots,"trigger",{},()=>[i[0]||(i[0]=e.createTextVNode("Меню",-1))]),e.createVNode(k,{icon:e.unref(z),size:"sm",animation:"wiggle",class:"text-slate-400"},null,8,["icon"])]),l.value?(e.openBlock(),e.createElementBlock("div",da,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)],512))}},ua={class:"bg-white border border-slate-100 rounded-3xl shadow-sm p-8 text-center space-y-3","data-component":"DXEmptyState"},pa={class:"text-base font-semibold text-slate-900"},fa={key:0,class:"text-sm text-slate-600"},ga=$({__name:"DXEmptyState",props:{icon:{type:Object,required:!0},title:{type:String,required:!0},description:{type:String,default:""},animated:{type:Boolean,default:!1}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",ua,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:e.normalizeClass(["w-10 h-10 text-slate-500 mx-auto",t.animated&&"animate-bounce-slow"])},null,8,["class"])),e.createElementVNode("p",pa,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",fa,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"action",{},void 0,!0)]))}},[["__scopeId","data-v-0d333d18"]]),ha=["data-variant"],ba={class:"flex items-center justify-between flex-shrink-0 mb-4 gap-4"},ka={class:"text-lg font-semibold tracking-tight text-slate-900 flex-1"},xa={key:0,class:"flex items-center gap-1 rounded-xl border border-slate-200 bg-slate-50 p-1"},ya=["title","onClick"],wa={class:"text-slate-700 overflow-y-auto flex-1 min-h-0"},Ba={key:0,class:"flex justify-end gap-2 flex-shrink-0 mt-4 pt-4 border-t border-slate-200"},Va=$({__name:"DXModal",props:{open:{type:Boolean,default:!1},variant:{type:String,default:"modal"},width:{type:String,default:"md"},closable:{type:Boolean,default:!0},showModeSwitcher:{type:Boolean,default:!1}},emits:["close","opened","closed","update:variant"],setup(t,{emit:l}){const o=t,n=l,a=[{value:"modal",label:"Модальное окно",icon:We},{value:"fullscreen",label:"На весь экран",icon:Ie},{value:"sidebar-right",label:"Боковая панель",icon:ve},{value:"half-right",label:"Половина справа",icon:Ue}],r=()=>{o.closable&&o.variant!=="half-right"&&n("close")},s=u=>{n("update:variant",u)},i=e.computed(()=>{switch(o.variant){case"sidebar-right":case"half-right":return"slide-right";default:return"fade-scale"}}),d=e.computed(()=>{switch(o.variant){case"fullscreen":return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-center justify-center p-0";case"sidebar-right":return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-end justify-end";case"half-right":return"fixed top-[73px] bottom-0 right-0 z-20 flex w-1/2 pointer-events-none";default:return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-center justify-center px-4 py-4 overflow-y-auto"}}),m=e.computed(()=>{const u="bg-white shadow-2xl flex flex-col";switch(o.variant){case"fullscreen":return`${u} w-full h-full p-8`;case"sidebar-right":return`${u} h-full w-full max-w-md p-6 border-l border-slate-200`;case"half-right":return`${u} h-full w-full p-6 border-l border-slate-200 pointer-events-auto`;default:return`${u} rounded-2xl w-full max-h-[90vh] p-6 my-auto ${c.value}`}}),c=e.computed(()=>{if(o.variant!=="modal")return"";switch(o.width){case"sm":return"max-w-md";case"lg":return"max-w-3xl";case"xl":return"max-w-5xl";default:return"max-w-xl"}});return(u,g)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:i.value,onAfterEnter:g[1]||(g[1]=f=>u.$emit("opened")),onAfterLeave:g[2]||(g[2]=f=>u.$emit("closed"))},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value),onClick:e.withModifiers(r,["self"]),"data-component":"DXModal","data-variant":t.variant},[e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.createElementVNode("div",ba,[e.createElementVNode("h3",ka,[e.renderSlot(u.$slots,"title",{},()=>[g[3]||(g[3]=e.createTextVNode("Диалог",-1))],!0)]),t.showModeSwitcher?(e.openBlock(),e.createElementBlock("div",xa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,f=>e.createElementVNode("button",{key:f.value,type:"button",class:e.normalizeClass(["rounded-lg p-1.5 transition-colors",t.variant===f.value?"bg-white text-slate-900 shadow-sm":"text-slate-400 hover:text-slate-600 hover:bg-white/50"]),title:f.label,onClick:x=>s(f.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.icon),{class:"h-4 w-4"}))],10,ya)),64))])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createBlock(I,{key:1,size:"md",variant:"default",onClick:g[0]||(g[0]=f=>u.$emit("close"))})):e.createCommentVNode("",!0)]),e.createElementVNode("div",wa,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),u.$slots.actions?(e.openBlock(),e.createElementBlock("div",Ba,[e.renderSlot(u.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)],2)],10,ha)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}},[["__scopeId","data-v-d02ee1db"]]),Ca={class:"border border-slate-200 rounded-2xl overflow-hidden","data-component":"DXTable"},$a={class:"min-w-full divide-y divide-slate-200"},Sa={class:"bg-slate-50"},Ea={class:"divide-y divide-slate-200 bg-white"},Na={__name:"DXTable",props:{headers:{type:Array,default:()=>[]}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",Ca,[e.createElementVNode("table",$a,[e.createElementVNode("thead",Sa,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.headers,n=>(e.openBlock(),e.createElementBlock("th",{key:n,class:"px-4 py-3 text-left text-xs font-semibold text-slate-600 uppercase tracking-wide"},e.toDisplayString(n),1))),128))])]),e.createElementVNode("tbody",Ea,[e.renderSlot(l.$slots,"default")])])]))}},Da={class:"flex flex-wrap gap-2","data-component":"DXTabs"},za=["onClick"],Xa={class:"flex items-center gap-2"},Ia={__name:"DXTabs",props:{modelValue:[String,Number],tabs:{type:Array,default:()=>[]},iconAnimation:{type:String,default:"wiggle"},animateActiveOnly:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t){const l=t,o=n=>n.iconAnimation?n.iconAnimation:l.animateActiveOnly?l.modelValue===n.value?l.iconAnimation:"none":l.iconAnimation;return(n,a)=>(e.openBlock(),e.createElementBlock("div",Da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass(["tab-btn px-3 py-2 rounded-xl text-sm font-semibold border transition",t.modelValue===r.value?"bg-slate-800 text-white border-slate-800":"border-slate-200 text-slate-700 hover:border-slate-300"]),onClick:s=>n.$emit("update:modelValue",r.value)},[e.createElementVNode("span",Xa,[r.icon?(e.openBlock(),e.createBlock(k,{key:0,icon:r.icon,size:"sm",animation:o(r)},null,8,["icon","animation"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(r.label),1),r.count!==void 0?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["inline-flex items-center justify-center min-w-[24px] px-2 py-1 text-[11px] rounded-full",t.modelValue===r.value?"bg-white/20 text-white":"bg-slate-100 text-slate-700"])},e.toDisplayString(r.count),3)):e.createCommentVNode("",!0)])],10,za))),128))]))}},Aa={type:String,default:"md",validator:t=>["xs","sm","md","lg","xl"].includes(t)},La={type:String,default:"info",validator:t=>["info","success","warning","danger"].includes(t)},Ma={type:String,default:"primary",validator:t=>["primary","ghost","danger","success","warning","outline"].includes(t)},ja={type:String,default:"none",validator:t=>["none","wiggle","scale","rotate"].includes(t)},_a={type:Boolean,default:!1},Ta={type:String,default:""},Oa={type:String,default:""},Za={type:String,default:""},Pa={type:String,default:""},M={favorite:{activeIcon:de,inactiveIcon:Fe,activeVariant:"danger",inactiveVariant:"ghost",iconAnimation:"scale"},bookmark:{activeIcon:se,inactiveIcon:Le,activeVariant:"warning",inactiveVariant:"ghost",iconAnimation:"scale"},star:{activeIcon:ge,inactiveIcon:Ye,activeVariant:"warning",inactiveVariant:"ghost",iconAnimation:"scale"},notifications:{activeIcon:re,inactiveIcon:Ae,activeVariant:"primary",inactiveVariant:"ghost",iconAnimation:"wiggle"},visibility:{activeIcon:X,inactiveIcon:ce,activeLabel:"Visible",inactiveLabel:"Hidden",activeVariant:"success",inactiveVariant:"ghost",iconAnimation:"scale"},lock:{activeIcon:me,inactiveIcon:Re,activeLabel:"Locked",inactiveLabel:"Unlocked",activeVariant:"danger",inactiveVariant:"success",iconAnimation:"rotate"},theme:{activeIcon:ue,inactiveIcon:Je,activeLabel:"Dark",inactiveLabel:"Light",activeVariant:"primary",inactiveVariant:"warning",iconAnimation:"rotate"},sound:{activeIcon:fe,inactiveIcon:Ke,activeVariant:"danger",inactiveVariant:"primary",iconAnimation:"scale"},playPause:{activeIcon:pe,inactiveIcon:He,activeLabel:"Pause",inactiveLabel:"Play",activeVariant:"warning",inactiveVariant:"success",iconAnimation:"scale"}};function Fa(t){return M[t]||M.favorite}p.DXAccordion=ca,p.DXActionButtons=Il,p.DXAlert=_l,p.DXAvatar=ye,p.DXBadge=Ve,p.DXBlockquote=Y,p.DXBox=ae,p.DXBreadcrumb=Fl,p.DXButton=Ce,p.DXButtonGroup=Hl,p.DXCard=Ne,p.DXCheckbox=Xe,p.DXCloseButton=I,p.DXCode=U,p.DXComboBox=oo,p.DXContainer=v,p.DXCopyField=co,p.DXDatePicker=xo,p.DXDivider=nt,p.DXDropdown=ma,p.DXDropdownItem=it,p.DXEmptyState=ga,p.DXFileUpload=_o,p.DXFilterGroup=Fo,p.DXFlex=te,p.DXFormControl=vo,p.DXGrid=ee,p.DXHeading=P,p.DXIcon=k,p.DXInput=bt,p.DXInputAddon=kt,p.DXInputGroup=nn,p.DXInputMask=dn,p.DXLabel=H,p.DXList=J,p.DXLoader=Bt,p.DXModal=Va,p.DXPagination=bn,p.DXPasswordInput=$n,p.DXProgress=Dt,p.DXRadio=It,p.DXRadioCard=In,p.DXRadioGroup=Tn,p.DXSearchSelect=Jn,p.DXSegmentedControl=oa,p.DXSelect=Rt,p.DXSkeleton=qt,p.DXSlider=el,p.DXSpacer=ne,p.DXStack=oe,p.DXTable=Na,p.DXTabs=Ia,p.DXTags=ol,p.DXText=F,p.DXTextarea=pl,p.DXToast=kl,p.DXToggle=wl,p.DXToggleButton=Cl,p.DXTooltip=$l,p.DXValidationIcon=L,p.TOGGLE_PRESETS=M,p.VARIANT_CONFIGS=S,p.buttonVariantProp=Ma,p.disabledProp=_a,p.errorProp=Za,p.helperProp=Pa,p.iconAnimationProp=ja,p.labelProp=Ta,p.placeholderProp=Oa,p.sizeProp=Aa,p.useComponentSize=A,p.useTogglePreset=Fa,p.useVariantClasses=fl,p.useVariantConfig=Z,p.useVariantIcon=gl,p.variantProp=La,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
1
+ (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.DXComponents={},p.Vue))})(this,function(p,e){"use strict";const U={__name:"DXHeading",props:{level:{type:[Number,String],default:1},size:{type:String,default:""},weight:{type:String,default:"semibold"},color:{type:String,default:"default"},truncate:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>`h${l.level}`),n={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},a={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},r={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},s={default:"text-slate-900",muted:"text-slate-500",primary:"text-slate-800",success:"text-emerald-700",warning:"text-amber-700",danger:"text-rose-700"},i=e.computed(()=>[l.size?n[l.size]:a[l.level],r[l.weight]||r.semibold,s[l.color]||s.default,"tracking-tight",l.truncate&&"truncate"]);return(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(i.value),"data-component":"DXHeading","data-level":t.level},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["class","data-level"]))}},K={__name:"DXText",props:{tag:{type:String,default:"p"},size:{type:String,default:"md"},weight:{type:String,default:"normal"},color:{type:String,default:"default"},align:{type:String,default:"left"},truncate:{type:Boolean,default:!1},lines:{type:Number,default:0}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},a={default:"text-slate-700",muted:"text-slate-500",primary:"text-slate-900",success:"text-emerald-700",warning:"text-amber-700",danger:"text-rose-700"},r={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},s=e.computed(()=>[o[l.size]||o.md,n[l.weight]||n.normal,a[l.color]||a.default,r[l.align]||r.left,"leading-relaxed",l.truncate&&"truncate",l.lines>0&&`line-clamp-${l.lines}`]);return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(s.value),"data-component":"DXText"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["class"]))}},Y=["for"],W={key:0,class:"text-rose-500 ml-0.5"},J={__name:"DXLabel",props:{htmlFor:{type:String,default:""},size:{type:String,default:"sm"},weight:{type:String,default:"medium"},color:{type:String,default:"default"},required:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold"},a={default:"text-slate-700",muted:"text-slate-500",primary:"text-slate-900"},r=e.computed(()=>["block",o[l.size]||o.sm,n[l.weight]||n.medium,a[l.color]||a.default]);return(s,i)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(r.value),for:t.htmlFor,"data-component":"DXLabel"},[e.renderSlot(s.$slots,"default"),t.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],10,Y))}},Q={key:0},v={__name:"DXCode",props:{block:{type:Boolean,default:!1},size:{type:String,default:"sm"},lineNumbers:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:"text-xs",sm:"text-sm",md:"text-base"},n=e.computed(()=>l.block?["block w-full overflow-x-auto rounded-xl bg-slate-900 text-slate-100 p-4",o[l.size]||o.sm,"font-mono leading-relaxed"]:["inline-block px-1.5 py-0.5 rounded bg-slate-100 text-slate-800",o[l.size]||o.sm,"font-mono"]);return(a,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.block?"pre":"code"),{class:e.normalizeClass(n.value),"data-component":"DXCode","data-block":t.block},{default:e.withCtx(()=>[t.block?(e.openBlock(),e.createElementBlock("code",Q,[e.renderSlot(a.$slots,"default")])):e.renderSlot(a.$slots,"default",{key:1})]),_:3},8,["class","data-block"]))}},ee=["data-variant"],te={key:0,class:"mt-2 text-sm text-slate-500"},le={__name:"DXBlockquote",props:{variant:{type:String,default:"bordered"},size:{type:String,default:"md"},cite:{type:String,default:""}},setup(t){const l=t,o={sm:"text-sm",md:"text-base",lg:"text-lg"},n={default:"text-slate-600 italic",bordered:"border-l-4 border-slate-300 pl-4 text-slate-600 italic",highlighted:"bg-slate-50 border-l-4 border-slate-400 pl-4 pr-4 py-3 rounded-r-lg text-slate-700"},a=e.computed(()=>[o[l.size]||o.md,n[l.variant]||n.bordered,"leading-relaxed"]);return(r,s)=>(e.openBlock(),e.createElementBlock("blockquote",{class:e.normalizeClass(a.value),"data-component":"DXBlockquote","data-variant":t.variant},[e.renderSlot(r.$slots,"default"),t.cite||r.$slots.cite?(e.openBlock(),e.createElementBlock("footer",te,[s[0]||(s[0]=e.createTextVNode(" — ",-1)),e.createElementVNode("cite",null,[e.renderSlot(r.$slots,"cite",{},()=>[e.createTextVNode(e.toDisplayString(t.cite),1)])])])):e.createCommentVNode("",!0)],10,ee))}},oe={__name:"DXList",props:{ordered:{type:Boolean,default:!1},marker:{type:String,default:""},size:{type:String,default:"md"},spacing:{type:String,default:"sm"}},setup(t){const l=t,o={sm:"text-sm",md:"text-base",lg:"text-lg"},n={none:"space-y-0",sm:"space-y-1",md:"space-y-2",lg:"space-y-3"},a={disc:"list-disc",circle:"list-circle",square:"list-square",decimal:"list-decimal",none:"list-none"},r=e.computed(()=>[o[l.size]||o.md,n[l.spacing]||n.sm,l.marker?a[l.marker]:l.ordered?"list-decimal":"list-disc","pl-5 text-slate-700"]);return(s,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.ordered?"ol":"ul"),{class:e.normalizeClass(r.value),"data-component":"DXList"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["class"]))}},ne=["data-size"],ae={__name:"DXContainer",props:{size:{type:String,default:"lg"},center:{type:Boolean,default:!0},padding:{type:String,default:"md"}},setup(t){const l=t,o={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},n={none:"",sm:"px-4",md:"px-6",lg:"px-8"},a=e.computed(()=>["w-full",o[l.size]||o.lg,n[l.padding]||n.md,l.center&&"mx-auto"]);return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),"data-component":"DXContainer","data-size":t.size},[e.renderSlot(r.$slots,"default")],10,ne))}},re={__name:"DXGrid",props:{cols:{type:[Number,String],default:12},colsSm:{type:[Number,String],default:""},colsMd:{type:[Number,String],default:""},colsLg:{type:[Number,String],default:""},gap:{type:String,default:"md"},gapX:{type:String,default:""},gapY:{type:String,default:""}},setup(t){const l=t,o={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},n={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",auto:"grid-cols-[repeat(auto-fit,minmax(250px,1fr))]"},a=e.computed(()=>["grid",n[l.cols]||`grid-cols-${l.cols}`,l.colsSm&&`sm:grid-cols-${l.colsSm}`,l.colsMd&&`md:grid-cols-${l.colsMd}`,l.colsLg&&`lg:grid-cols-${l.colsLg}`,!l.gapX&&!l.gapY&&(o[l.gap]||o.md),l.gapX&&`gap-x-${l.gapX}`,l.gapY&&`gap-y-${l.gapY}`]),r=e.computed(()=>l.cols==="auto"?{}:{});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(r.value),"data-component":"DXGrid"},[e.renderSlot(s.$slots,"default")],6))}},se={__name:"DXFlex",props:{direction:{type:String,default:"row"},justify:{type:String,default:"start"},align:{type:String,default:"center"},wrap:{type:String,default:"nowrap"},gap:{type:String,default:"md"},inline:{type:Boolean,default:!1}},setup(t){const l=t,o={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},n={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},a={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},r={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},s={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},i=e.computed(()=>[l.inline?"inline-flex":"flex",o[l.direction]||o.row,n[l.justify]||n.start,a[l.align]||a.center,r[l.wrap]||r.nowrap,s[l.gap]||s.md]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),"data-component":"DXFlex"},[e.renderSlot(d.$slots,"default")],2))}},ie=["data-direction"],ce={__name:"DXStack",props:{direction:{type:String,default:"vertical"},gap:{type:String,default:"md"},align:{type:String,default:"stretch"},justify:{type:String,default:"start"},dividers:{type:Boolean,default:!1}},setup(t){const l=t,o={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},n={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},a={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"},r=e.computed(()=>["flex",l.direction==="horizontal"?"flex-row":"flex-col",o[l.gap]||o.md,n[l.align]||n.stretch,a[l.justify]||a.start,l.dividers&&(l.direction==="horizontal"?"divide-x divide-slate-200":"divide-y divide-slate-200")]);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),"data-component":"DXStack","data-direction":t.direction},[e.renderSlot(s.$slots,"default")],10,ie))}},de={__name:"DXSpacer",props:{size:{type:[String,Number],default:"md"},direction:{type:String,default:"vertical"},grow:{type:Boolean,default:!1}},setup(t){const l=t,o={xs:{v:"h-1",h:"w-1"},sm:{v:"h-2",h:"w-2"},md:{v:"h-4",h:"w-4"},lg:{v:"h-8",h:"w-8"},xl:{v:"h-12",h:"w-12"},"2xl":{v:"h-16",h:"w-16"}},n=e.computed(()=>{if(l.grow)return["flex-grow"];const r=o[l.size];return r?l.direction==="horizontal"?[r.h]:l.direction==="both"?[r.v,r.h]:[r.v]:[]}),a=e.computed(()=>{if(l.grow)return{};if(typeof l.size=="number"){const r=`${l.size}px`;return l.direction==="horizontal"?{width:r}:l.direction==="both"?{height:r,width:r}:{height:r}}return{}});return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value),style:e.normalizeStyle(a.value),"data-component":"DXSpacer","aria-hidden":"true"},null,6))}},me={__name:"DXBox",props:{tag:{type:String,default:"div"},p:{type:String,default:""},px:{type:String,default:""},py:{type:String,default:""},m:{type:String,default:""},mx:{type:String,default:""},my:{type:String,default:""},rounded:{type:String,default:""},bg:{type:String,default:""},shadow:{type:String,default:""},border:{type:Boolean,default:!1}},setup(t){const l=t,o={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8"},n={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8",auto:"auto"},a={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"},r={white:"bg-white",slate:"bg-slate-50",transparent:"bg-transparent"},s={none:"shadow-none",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},i=e.computed(()=>[l.p&&`p-${o[l.p]||l.p}`,l.px&&`px-${o[l.px]||l.px}`,l.py&&`py-${o[l.py]||l.py}`,l.m&&`m-${n[l.m]||l.m}`,l.mx&&`mx-${n[l.mx]||l.mx}`,l.my&&`my-${n[l.my]||l.my}`,l.rounded&&(a[l.rounded]||`rounded-${l.rounded}`),l.bg&&(r[l.bg]||l.bg),l.shadow&&(s[l.shadow]||`shadow-${l.shadow}`),l.border&&"border border-slate-200"]);return(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(i.value),"data-component":"DXBox"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["class"]))}};function ue(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 1 1-7.48 0 24.585 24.585 0 0 1-4.831-1.244.75.75 0 0 1-.298-1.205A8.217 8.217 0 0 0 5.25 9.75V9Zm4.502 8.9a2.25 2.25 0 1 0 4.496 0 25.057 25.057 0 0 1-4.496 0Z","clip-rule":"evenodd"})])}function pe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.32 2.577a49.255 49.255 0 0 1 11.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 0 1-1.085.67L12 18.089l-7.165 3.583A.75.75 0 0 1 3.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93Z","clip-rule":"evenodd"})])}function D(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function fe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function z(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function ge(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),e.createElementVNode("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),e.createElementVNode("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function he(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z"})])}function X(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function ke(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z","clip-rule":"evenodd"})])}function be(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z","clip-rule":"evenodd"})])}function xe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z","clip-rule":"evenodd"})])}function ye(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM17.78 9.22a.75.75 0 1 0-1.06 1.06L18.44 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06l1.72-1.72 1.72 1.72a.75.75 0 1 0 1.06-1.06L20.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-1.72 1.72-1.72-1.72Z"})])}function we(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z","clip-rule":"evenodd"})])}function Be(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z","clip-rule":"evenodd"})])}function T(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function Ce(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}const $=(t,l)=>{const o=t.__vccOpts||t;for(const[n,a]of l)o[n]=a;return o},y=$({__name:"DXIcon",props:{icon:{type:Object,required:!0},size:{type:String,default:"md"},animation:{type:String,default:"none"},class:{type:[String,Array,Object],default:""}},setup(t){const l=t,o={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},n={none:"",wiggle:"dx-icon-wiggle",scale:"dx-icon-scale",rotate:"dx-icon-rotate"},a=e.computed(()=>[o[l.size]||o.md,n[l.animation]||"",l.class]);return(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:e.normalizeClass(a.value),"data-component":"DXIcon","data-size":t.size,"data-animation":t.animation},null,8,["class","data-size","data-animation"]))}},[["__scopeId","data-v-9441a40d"]]),Ve=["data-size"],$e=["src","alt"],Se={__name:"DXAvatar",props:{src:{type:String,default:""},alt:{type:String,default:"Avatar"},initials:{type:String,default:""},size:{type:String,default:"md"},shape:{type:String,default:"circle"},status:{type:String,default:""},icon:{type:Object,default:null},iconAnimation:{type:String,default:"none"}},setup(t){const l=t,o=e.ref(!1),n={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"},a={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},r={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},s={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-4 h-4"},i={online:"bg-emerald-500",offline:"bg-slate-400",busy:"bg-rose-500",away:"bg-amber-500"},d=e.computed(()=>["relative inline-flex items-center justify-center overflow-hidden bg-slate-100 transition-transform",n[l.size]||n.md,a[l.shape]||a.circle,l.iconAnimation!=="none"&&"hover:scale-105"]),m=e.computed(()=>["text-slate-600 uppercase",r[l.size]||r.md]),c=e.computed(()=>[s[l.size]||s.md,i[l.status]||""]),u=e.computed(()=>l.icon||Be),h={xs:"sm",sm:"sm",md:"md",lg:"lg",xl:"xl"},g=e.computed(()=>h[l.size]||"md");return(x,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),"data-component":"DXAvatar","data-size":t.size},[t.src&&!o.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.alt,class:"w-full h-full object-cover",onError:V[0]||(V[0]=w=>o.value=!0)},null,40,$e)):t.initials?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["font-medium",m.value])},e.toDisplayString(t.initials),3)):(e.openBlock(),e.createBlock(y,{key:2,icon:u.value,size:g.value,animation:t.iconAnimation,class:"text-slate-400"},null,8,["icon","size","animation"])),t.status?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["absolute bottom-0 right-0 block rounded-full ring-2 ring-white",c.value])},null,2)):e.createCommentVNode("",!0)],10,Ve))}},Ee=["data-variant"],Ne="inline-flex items-center gap-1 px-2 py-1 text-[11px] rounded-full border font-semibold",I={__name:"DXBadge",props:{variant:{type:String,default:"slate"},iconLeft:{type:Object,default:null},iconRight:{type:Object,default:null}},setup(t){const l=t,o={slate:"bg-slate-50 text-slate-700 border-slate-100",success:"bg-emerald-50 text-emerald-700 border-emerald-100",warning:"bg-amber-50 text-amber-700 border-amber-100",danger:"bg-rose-50 text-rose-700 border-rose-100",info:"bg-blue-50 text-blue-700 border-blue-100"},n=e.computed(()=>{const a=o[l.variant]||o.slate;return`${Ne} ${a}`});return(a,r)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(n.value),"data-component":"DXBadge","data-variant":t.variant},[t.iconLeft?(e.openBlock(),e.createBlock(y,{key:0,icon:t.iconLeft,size:"xs",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default"),t.iconRight?(e.openBlock(),e.createBlock(y,{key:1,icon:t.iconRight,size:"xs",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0)],10,Ee))}},De=$({__name:"DXButton",props:{variant:{type:String,default:"primary"},size:{type:String,default:"md"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},type:{type:String,default:"button"},disabled:{type:Boolean,default:!1},to:{type:[String,Object],default:null},href:{type:String,default:null},target:{type:String,default:null},rel:{type:String,default:null}},setup(t){const l=t,o=e.computed(()=>l.to?"router-link":l.href?"a":"button"),n=e.computed(()=>l.iconOnly?l.size==="sm"?"h-9 w-9 text-xs":l.size==="lg"?"h-12 w-12 text-sm":"h-10 w-10 text-sm":l.size==="sm"?"px-3 py-2 text-xs":l.size==="lg"?"px-5 py-3 text-base":"px-4 py-2 text-sm"),a=e.computed(()=>{switch(l.variant){case"ghost":return"border border-slate-200 text-slate-700 hover:border-slate-300 bg-white";case"danger":return"bg-rose-600 text-white hover:bg-rose-500";case"outline":return"border border-slate-200 text-slate-700 hover:border-slate-300 bg-white";default:return"bg-slate-800 text-white hover:bg-slate-700"}});return(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{type:o.value==="button"?t.type:void 0,disabled:t.disabled,to:t.to,href:t.href,target:t.target,rel:t.rel,class:e.normalizeClass(["btn inline-flex items-center justify-center gap-2 rounded-xl font-semibold transition focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-60",[n.value,a.value,{"w-full":t.block,"px-0 py-0":t.iconOnly}]]),"data-component":"DXButton","data-variant":t.variant},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["type","disabled","to","href","target","rel","class","data-variant"]))}},[["__scopeId","data-v-99117d90"]]),ze={},Xe={class:"bg-white border border-slate-100 rounded-2xl shadow-sm p-5","data-component":"DXCard"};function Ie(t,l){return e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(t.$slots,"default")])}const Ae=$(ze,[["render",Ie]]),Me=["checked","value","disabled"],Le={key:0,class:"text-sm text-slate-700 select-none"},je={__name:"DXCheckbox",props:{modelValue:{type:[Boolean,Array],default:!1},value:{type:[String,Number],default:void 0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>{switch(o.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}}),r=e.computed(()=>Array.isArray(o.modelValue)?o.modelValue.includes(o.value):o.modelValue),s=i=>{if(Array.isArray(o.modelValue)){const d=[...o.modelValue];if(i.target.checked)d.push(o.value);else{const m=d.indexOf(o.value);m>-1&&d.splice(m,1)}n("update:modelValue",d)}else n("update:modelValue",i.target.checked)};return(i,d)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXCheckbox"},[e.createElementVNode("input",{type:"checkbox",checked:r.value,value:t.value,disabled:t.disabled,class:e.normalizeClass(["rounded border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",a.value]),onChange:s},null,42,Me),t.label?(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}};function _e(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})])}function Te(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function Oe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function Ze(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Fe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Pe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function N(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Re(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function O(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function qe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function He(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"})])}function Ge(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Ue(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function Ke(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function A(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Ye(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"})])}function We(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])}function Je(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function Qe(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function ve(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function et(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function tt(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"})])}function lt(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"})])}function ot(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})])}function nt(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"})])}function at(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})])}function rt(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function st(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"})])}function Z(t,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const it=["aria-label"],M={__name:"DXCloseButton",props:{size:{type:String,default:"md"},variant:{type:String,default:"default"},ariaLabel:{type:String,default:"Закрыть"}},emits:["click"],setup(t){const l=t,o={sm:"p-0.5",md:"p-1",lg:"p-1.5"},n={sm:"sm",md:"md",lg:"lg"},a={default:"text-slate-400 hover:text-slate-600",light:"text-white/70 hover:text-white",danger:"text-rose-400 hover:text-rose-600"},r=e.computed(()=>n[l.size]||n.md),s=e.computed(()=>["inline-flex items-center justify-center rounded transition-colors",o[l.size]||o.md,a[l.variant]||a.default]);return(i,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(s.value),onClick:d[0]||(d[0]=m=>i.$emit("click",m)),"aria-label":t.ariaLabel,"data-component":"DXCloseButton"},[e.createVNode(y,{icon:e.unref(Z),size:r.value,animation:"scale"},null,8,["icon","size"])],10,it))}},ct=["data-orientation"],dt={key:0,class:"flex items-center w-full"},mt={class:"px-3 text-sm text-slate-500 whitespace-nowrap"},F={__name:"DXDivider",props:{orientation:{type:String,default:"horizontal"},color:{type:String,default:"default"},thickness:{type:String,default:"default"},spacing:{type:String,default:"md"}},setup(t){const l=t,o={light:"border-slate-100",default:"border-slate-200",dark:"border-slate-300"},n={thin:"border-t",default:"border-t",thick:"border-t-2"},a={thin:"border-l",default:"border-l",thick:"border-l-2"},r={none:"",sm:"my-2",md:"my-4",lg:"my-6"},s={none:"",sm:"mx-2",md:"mx-4",lg:"mx-6"},i=e.computed(()=>[l.orientation==="vertical"?"inline-flex h-full":"w-full",l.orientation==="horizontal"?r[l.spacing]:s[l.spacing]]),d=e.computed(()=>[l.orientation==="vertical"?"h-full":"flex-1",o[l.color]||o.default,l.orientation==="vertical"?a[l.thickness]:n[l.thickness]]);return(m,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),"data-component":"DXDivider","data-orientation":t.orientation},[m.$slots.default&&t.orientation==="horizontal"?(e.openBlock(),e.createElementBlock("div",dt,[e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2),e.createElementVNode("span",mt,[e.renderSlot(m.$slots,"default")]),e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(d.value)},null,2))],10,ct))}},ut=["disabled"],pt={class:"flex-1"},ft={key:1,class:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},gt=$({__name:"DXDropdownItem",props:{icon:{type:Object,default:null},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},submenu:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0}},emits:["click"],setup(t,{emit:l}){const o=t,n=l,a=e.inject("dropdown",null),r=s=>{o.disabled||(n("click",s),o.closeOnClick&&a&&a.close())};return(s,i)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["dropdown-item w-full flex items-center gap-3 px-4 py-2 text-sm text-left transition",[t.danger?"text-rose-600 hover:bg-rose-50":"text-slate-700 hover:bg-slate-50",t.disabled&&"opacity-60 cursor-not-allowed"]]),disabled:t.disabled,onClick:r,"data-component":"DXDropdownItem"},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"w-4 h-4 flex-shrink-0"})):e.createCommentVNode("",!0),e.createElementVNode("span",pt,[e.renderSlot(s.$slots,"default",{},void 0,!0)]),t.submenu?(e.openBlock(),e.createElementBlock("svg",ft,[...i[0]||(i[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])])):e.createCommentVNode("",!0)],10,ut))}},[["__scopeId","data-v-b0daf145"]]);function L(t,l="input"){var n,a;const o={button:{sm:"h-8 px-3 py-1.5 text-xs",md:"h-10 px-4 py-2.5 text-sm",lg:"h-12 px-5 py-3 text-base"},input:{sm:"h-8 px-3 py-1.5 text-xs",md:"h-10 px-4 py-2.5 text-sm",lg:"h-12 px-5 py-3 text-base"},icon:{xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-10 h-10"},text:{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}};return((n=o[l])==null?void 0:n[t])||((a=o[l])==null?void 0:a.md)||""}const ht={class:"w-full","data-component":"DXInput"},kt={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},bt={class:"relative"},xt={key:0,class:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"},yt=["type","placeholder","value","disabled"],wt={key:1,class:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400"},Bt={key:1,class:"mt-1 text-xs text-rose-500"},Ct={key:2,class:"mt-1 text-xs text-slate-500"},P={__name:"DXInput",props:{modelValue:[String,Number],type:{type:String,default:"text"},placeholder:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},error:{type:String,default:""},helper:{type:String,default:""},size:{type:String,default:"md"},inputClass:{type:[String,Array,Object],default:""},prefixIcon:{type:Object,default:null},suffixIcon:{type:Object,default:null}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{var n,a;return["w-full rounded-xl border border-slate-200 bg-white transition-colors",L(l.size,"input"),"text-slate-700 placeholder:text-slate-400",!l.disabled&&"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300",l.disabled&&"opacity-60 cursor-not-allowed bg-slate-50",l.error&&"border-rose-300 focus:ring-rose-500/10",(l.prefixIcon||((n=l.$slots)==null?void 0:n.prefix))&&"pl-10",(l.suffixIcon||((a=l.$slots)==null?void 0:a.suffix))&&"pr-10",l.inputClass]});return(n,a)=>(e.openBlock(),e.createElementBlock("div",ht,[t.label?(e.openBlock(),e.createElementBlock("label",kt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",bt,[t.prefixIcon||n.$slots.prefix?(e.openBlock(),e.createElementBlock("div",xt,[t.prefixIcon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.renderSlot(n.$slots,"prefix",{key:1})])):e.createCommentVNode("",!0),e.createElementVNode("input",{type:t.type,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(o.value),onInput:a[0]||(a[0]=r=>n.$emit("update:modelValue",r.target.value))},null,42,yt),t.suffixIcon||n.$slots.suffix?(e.openBlock(),e.createElementBlock("div",wt,[t.suffixIcon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.suffixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.renderSlot(n.$slots,"suffix",{key:1})])):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",Bt,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",Ct,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},Vt={__name:"DXInputAddon",props:{icon:{type:Object,default:null}},setup(t){const l=e.inject("inputGroup",{size:"md"}),o=e.computed(()=>{const n={sm:"h-9",md:"h-11",lg:"h-13"};return n[l.size]||n.md});return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center px-3 border border-r-0 bg-slate-50 text-slate-600 text-sm first:rounded-l-xl last:rounded-r-xl last:border-r",o.value]),"data-component":"DXInputGroupAddon"},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],2))}},$t={},St={class:"flex items-center justify-center gap-2 text-sm text-slate-600","data-component":"DXLoader"};function Et(t,l){return e.openBlock(),e.createElementBlock("div",St,[l[1]||(l[1]=e.createElementVNode("span",{class:"w-4 h-4 border-2 border-slate-300 border-t-slate-900 rounded-full animate-spin"},null,-1)),e.renderSlot(t.$slots,"default",{},()=>[l[0]||(l[0]=e.createTextVNode("Загрузка...",-1))])])}const Nt=$($t,[["render",Et]]),Dt={class:"w-full","data-component":"DXProgress"},zt={key:0,class:"flex justify-between items-center mb-1"},Xt={class:"text-sm font-medium text-slate-700"},It={key:0,class:"text-sm font-semibold text-slate-900"},At=["aria-valuenow","aria-valuemin","aria-valuemax"],Mt={key:0,class:"text-xs font-medium text-white px-1"},Lt=$({__name:"DXProgress",props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},label:{type:String,default:""},showLabel:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},showInnerValue:{type:Boolean,default:!1},size:{type:String,default:"md"},color:{type:String,default:"default"},animated:{type:Boolean,default:!1},striped:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>{const d=l.max-l.min;return Math.min(100,Math.max(0,(l.value-l.min)/d*100))}),n=e.computed(()=>`${Math.round(o.value)}%`),a={xs:"h-1",sm:"h-2",md:"h-3",lg:"h-4"},r={default:"bg-slate-800",success:"bg-emerald-500",warning:"bg-amber-500",danger:"bg-rose-500",info:"bg-blue-500"},s=e.computed(()=>["w-full bg-slate-200 rounded-full overflow-hidden",a[l.size]||a.md]),i=e.computed(()=>["h-full rounded-full transition-all duration-300 flex items-center justify-end",r[l.color]||r.default,l.striped&&"bg-stripes",l.animated&&l.striped&&"animate-stripes"]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",Dt,[t.showLabel||d.$slots.label?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("span",Xt,[e.renderSlot(d.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)]),t.showValue?(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(s.value)},[e.createElementVNode("div",{class:e.normalizeClass(i.value),style:e.normalizeStyle({width:`${o.value}%`}),role:"progressbar","aria-valuenow":t.value,"aria-valuemin":t.min,"aria-valuemax":t.max},[t.showInnerValue&&o.value>10?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)],14,At)],2)]))}},[["__scopeId","data-v-e469818e"]]),jt=["value","checked","disabled"],_t={key:0,class:"text-sm text-slate-700 select-none"},Tt={__name:"DXRadio",props:{modelValue:[String,Number,Boolean],value:{type:[String,Number,Boolean],required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{switch(l.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}});return(n,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXRadio"},[e.createElementVNode("input",{type:"radio",value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,class:e.normalizeClass(["rounded-full border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",o.value]),onChange:a[0]||(a[0]=r=>n.$emit("update:modelValue",t.value))},null,42,jt),t.label?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}},Ot={class:"w-full","data-component":"DXSelect"},Zt={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},Ft={class:"relative"},Pt={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-slate-400"},Rt=["value","disabled"],qt={key:0,value:"",disabled:"",selected:""},Ht=["value"],Gt={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},Ut={key:1,class:"mt-1 text-xs text-rose-500"},Kt={key:2,class:"mt-1 text-xs text-slate-500"},Yt={__name:"DXSelect",props:{modelValue:[String,Number],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},prefixIcon:{type:Object,default:null},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>["w-full appearance-none rounded-xl border border-slate-200 bg-white transition-colors pr-10",L(l.size,"input"),"text-slate-700",l.prefixIcon&&"pl-10",!l.disabled&&"hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300",l.disabled&&"opacity-60 cursor-not-allowed bg-slate-50",l.error&&"border-rose-300 focus:ring-rose-500/10"]);return(n,a)=>(e.openBlock(),e.createElementBlock("div",Ot,[t.label?(e.openBlock(),e.createElementBlock("label",Zt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ft,[t.prefixIcon?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(y,{icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("select",{value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(o.value),onChange:a[0]||(a[0]=r=>n.$emit("update:modelValue",r.target.value))},[t.placeholder?(e.openBlock(),e.createElementBlock("option",qt,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("option",{key:r.value,value:r.value},e.toDisplayString(r.label),9,Ht))),128))],42,Rt),e.createElementVNode("div",Gt,[e.createVNode(y,{icon:e.unref(N),size:"sm",animation:"none",class:"text-slate-400"},null,8,["icon"])])]),t.error?(e.openBlock(),e.createElementBlock("p",Ut,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",Kt,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},Wt={__name:"DXSkeleton",props:{width:{type:String,default:"100%"},height:{type:String,default:"1rem"},rounded:{type:String,default:"rounded-md"}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["animate-pulse bg-slate-200",t.rounded]),style:e.normalizeStyle({width:t.width,height:t.height}),"data-component":"DXSkeleton"},null,6))}},Jt={class:"w-full","data-component":"DXSlider"},Qt={class:"flex items-center justify-between mb-2"},vt={key:0,class:"text-sm font-medium text-slate-700"},el={key:1,class:"text-sm font-semibold text-slate-900"},tl={class:"relative"},ll={key:0,class:"absolute top-1/2 left-0 right-0 flex justify-between pointer-events-none",style:{transform:"translateY(-50%)"}},ol=["value","min","max","step","disabled"],nl={key:0,class:"flex justify-between mt-1 px-1"},al={key:1,class:"mt-1 text-xs text-slate-500"},rl=$({__name:"DXSlider",props:{modelValue:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},label:{type:String,default:""},helper:{type:String,default:""},showValue:{type:Boolean,default:!0},ticks:{type:Boolean,default:!1},showTickLabels:{type:Boolean,default:!0},tickCount:{type:Number,default:5},tickIcons:{type:Array,default:null},tickIconAnimation:{type:String,default:"wiggle"},unit:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>`${o.modelValue}${o.unit}`),r=e.computed(()=>{if(!o.ticks)return[];const c=o.tickCount,u=(o.max-o.min)/(c-1);return Array.from({length:c},(h,g)=>Math.round(o.min+u*g))}),s=c=>{n("update:modelValue",Number(c.target.value))},i=e.computed(()=>{if(!o.ticks||!r.value.length)return-1;let c=0,u=Math.abs(o.modelValue-r.value[0]);return r.value.forEach((h,g)=>{const x=Math.abs(o.modelValue-h);x<u&&(u=x,c=g)}),c}),d=c=>i.value===c,m=c=>d(c)?o.tickIconAnimation:"none";return(c,u)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Qt,[t.label?(e.openBlock(),e.createElementBlock("label",vt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.showValue?(e.openBlock(),e.createElementBlock("span",el,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",tl,[t.ticks?(e.openBlock(),e.createElementBlock("div",ll,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(h,g)=>(e.openBlock(),e.createElementBlock("div",{key:`tick-${g}`,class:"w-0.5 h-3 bg-slate-400 rounded-full"}))),128))])):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"range",value:t.modelValue,min:t.min,max:t.max,step:t.step,disabled:t.disabled,class:"slider w-full appearance-none cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed relative z-10",onInput:s},null,40,ol)]),t.ticks&&(t.showTickLabels||t.tickIcons)?(e.openBlock(),e.createElementBlock("div",nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(h,g)=>(e.openBlock(),e.createElementBlock("span",{key:h,class:e.normalizeClass(["flex flex-col items-center gap-0.5 transition-transform duration-200",{"scale-110":d(g)}])},[t.tickIcons&&t.tickIcons[g]?(e.openBlock(),e.createBlock(y,{key:0,icon:t.tickIcons[g],size:"sm",animation:m(g),class:e.normalizeClass(d(g)?"text-slate-900":"text-slate-400")},null,8,["icon","animation","class"])):e.createCommentVNode("",!0),t.showTickLabels?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["text-xs transition-colors duration-200",d(g)?"text-slate-900 font-semibold":"text-slate-500"])},e.toDisplayString(h)+e.toDisplayString(t.unit),3)):e.createCommentVNode("",!0)],2))),128))])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",al,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-d55b8f6a"]]),sl={class:"flex flex-wrap gap-2","data-component":"DXTags"},il=["onClick","aria-label"],cl={__name:"DXTags",props:{tags:{type:Array,default:()=>[]},variant:{type:String,default:"default"},color:{type:String,default:"default"},closable:{type:Boolean,default:!1}},emits:["remove"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>o.tags.map(m=>typeof m=="string"?{label:m,icon:null,closable:o.closable,color:o.color,iconAnimation:"none"}:{label:m.label||m,icon:m.icon||null,closable:m.closable!==void 0?m.closable:o.closable,color:m.color||o.color,iconAnimation:m.iconAnimation||"none"})),r=(m,c)=>`${m.label}-${c}`,s={default:"bg-slate-100 text-slate-800 border-slate-200",primary:"bg-blue-100 text-blue-800 border-blue-200",success:"bg-green-100 text-green-800 border-green-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",danger:"bg-red-100 text-red-800 border-red-200",info:"bg-cyan-100 text-cyan-800 border-cyan-200"},i=m=>{const c=o.variant==="large"?"px-3 py-1.5 text-sm":"px-2 py-1 text-xs",u=s[m.color]||s.default;return`${c} ${u} rounded-full border`},d=(m,c)=>{n("remove",{tag:m,index:c})};return(m,c)=>(e.openBlock(),e.createElementBlock("div",sl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,h)=>(e.openBlock(),e.createElementBlock("span",{key:r(u,h),class:e.normalizeClass([i(u),"inline-flex items-center gap-1.5 transition-all duration-200"])},[u.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:u.icon,size:t.variant==="large"?"sm":"xs",animation:u.iconAnimation||"none"},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(u.label),1),u.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",onClick:g=>d(u,h),class:"ml-0.5 -mr-1 hover:bg-slate-200/50 rounded-full p-0.5 transition-colors","aria-label":`Remove ${u.label}`},[e.createVNode(y,{icon:e.unref(Ce),size:"xs",animation:"scale"},null,8,["icon"])],8,il)):e.createCommentVNode("",!0)],2))),128))]))}},dl={class:"w-full","data-component":"DXTextarea"},ml={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},ul={class:"relative"},pl={key:0,class:"absolute left-3 top-3 text-slate-400 z-10"},fl=["rows","placeholder","value","disabled","maxlength"],gl={key:1,class:"absolute right-3 top-3 text-slate-400 z-10"},hl={key:2,class:"absolute right-3 bottom-3 text-xs text-slate-400"},kl={key:1,class:"mt-1 text-xs text-rose-500"},bl={key:2,class:"mt-1 text-xs text-slate-500"},xl={__name:"DXTextarea",props:{modelValue:String,placeholder:{type:String,default:""},rows:{type:Number,default:3},label:{type:String,default:""},disabled:{type:Boolean,default:!1},error:{type:String,default:""},helper:{type:String,default:""},prefixIcon:{type:Object,default:null},suffixIcon:{type:Object,default:null},maxLength:{type:Number,default:0},showCount:{type:Boolean,default:!1},autoResize:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){var i;const o=t,n=l,a=e.ref(((i=o.modelValue)==null?void 0:i.length)||0),r=d=>{const m=d.target.value;a.value=m.length,n("update:modelValue",m),o.autoResize&&(d.target.style.height="auto",d.target.style.height=d.target.scrollHeight+"px")};e.watch(()=>o.modelValue,d=>{a.value=(d==null?void 0:d.length)||0});const s=e.computed(()=>["w-full rounded-xl border border-slate-200 px-4 py-3 text-sm text-slate-700 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 transition-colors disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",o.prefixIcon&&"pl-10",o.suffixIcon&&"pr-10",o.maxLength&&o.showCount&&"pb-8",o.error&&"border-rose-300 focus:ring-rose-500/10"]);return(d,m)=>(e.openBlock(),e.createElementBlock("div",dl,[t.label?(e.openBlock(),e.createElementBlock("label",ml,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ul,[t.prefixIcon?(e.openBlock(),e.createElementBlock("div",pl,[e.createVNode(y,{icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),e.createElementVNode("textarea",{rows:t.rows,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,maxlength:t.maxLength,class:e.normalizeClass(s.value),onInput:r},null,42,fl),t.suffixIcon?(e.openBlock(),e.createElementBlock("div",gl,[e.createVNode(y,{icon:t.suffixIcon,size:"sm",animation:"none"},null,8,["icon"])])):e.createCommentVNode("",!0),t.maxLength&&t.showCount?(e.openBlock(),e.createElementBlock("div",hl,e.toDisplayString(a.value)+" / "+e.toDisplayString(t.maxLength),1)):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",kl,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",bl,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},E={info:{bg:"bg-blue-50",text:"text-blue-800",border:"border-blue-200",icon:X,iconColor:"text-blue-500"},success:{bg:"bg-emerald-50",text:"text-emerald-800",border:"border-emerald-200",icon:D,iconColor:"text-emerald-500"},warning:{bg:"bg-amber-50",text:"text-amber-800",border:"border-amber-200",icon:z,iconColor:"text-amber-500"},danger:{bg:"bg-rose-50",text:"text-rose-800",border:"border-rose-200",icon:T,iconColor:"text-rose-500"}};function yl(t){const l=E[t]||E.info;return`${l.bg} ${l.text} ${l.border}`}function wl(t){return(E[t]||E.info).icon}function R(t){return E[t]||E.info}const Bl=["data-variant"],Cl={class:"flex-1"},Vl={__name:"DXToast",props:{variant:{type:String,default:"info"},showIcon:{type:Boolean,default:!0}},setup(t){const l=t,o=e.computed(()=>R(l.variant)),n=e.computed(()=>`${o.value.bg} ${o.value.border} ${o.value.text}`),a=e.computed(()=>l.showIcon?o.value.icon:null),r=e.computed(()=>o.value.iconColor);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-3 rounded-2xl border px-4 py-3 text-sm",n.value]),"data-component":"DXToast","data-variant":t.variant},[a.value?(e.openBlock(),e.createBlock(y,{key:0,icon:a.value,size:"md",animation:"none",class:e.normalizeClass([r.value,"shrink-0 mt-0.5"])},null,8,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",Cl,[e.renderSlot(s.$slots,"default")])],10,Bl))}},$l=["aria-checked","disabled"],Sl={key:0,class:"text-sm text-slate-700 select-none"},El={__name:"DXToggle",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled}]),"data-component":"DXToggle"},[e.createElementVNode("button",{type:"button",role:"switch","aria-checked":t.modelValue,disabled:t.disabled,class:e.normalizeClass(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:ring-offset-2",t.modelValue?"bg-slate-900":"bg-slate-200"]),onClick:o[0]||(o[0]=n=>l.$emit("update:modelValue",!t.modelValue))},[e.createElementVNode("span",{class:e.normalizeClass(["inline-block h-4 w-4 transform rounded-full bg-white transition-transform",t.modelValue?"translate-x-6":"translate-x-1"])},null,2)],10,$l),t.label?(e.openBlock(),e.createElementBlock("span",Sl,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],2))}},Nl=["disabled","aria-pressed","aria-label"],Dl={key:1},zl=$({__name:"DXToggleButton",props:{modelValue:{type:Boolean,default:!1},activeIcon:{type:Object,required:!0},inactiveIcon:{type:Object,required:!0},activeLabel:{type:String,default:null},inactiveLabel:{type:String,default:null},activeVariant:{type:String,default:"primary"},inactiveVariant:{type:String,default:"ghost"},size:{type:String,default:"md"},iconAnimation:{type:String,default:"wiggle"},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},emits:["update:modelValue","change"],setup(t,{emit:l}){const o=t,n=l,a=()=>{const u=!o.modelValue;n("update:modelValue",u),n("change",u)},r=e.computed(()=>o.modelValue?o.activeIcon:o.inactiveIcon),s=e.computed(()=>o.modelValue?o.activeLabel:o.inactiveLabel),i=e.computed(()=>o.size==="sm"?"xs":o.size==="lg"?"md":"sm"),d=e.computed(()=>s.value?o.size==="sm"?"px-3 py-2 text-xs":o.size==="lg"?"px-5 py-3 text-base":"px-4 py-2.5 text-sm":o.size==="sm"?"h-9 w-9 text-xs":o.size==="lg"?"h-12 w-12 text-base":"h-10 w-10 text-sm"),m={primary:"bg-slate-800 text-white hover:bg-slate-700 focus:ring-slate-500",ghost:"border border-slate-200 text-slate-700 hover:border-slate-300 hover:bg-slate-50 bg-white focus:ring-slate-400",danger:"bg-rose-600 text-white hover:bg-rose-500 focus:ring-rose-500",success:"bg-green-600 text-white hover:bg-green-500 focus:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-400 focus:ring-amber-500",outline:"border border-slate-200 text-slate-700 hover:border-slate-300 bg-transparent focus:ring-slate-400"},c=e.computed(()=>{const u=o.modelValue?o.activeVariant:o.inactiveVariant;return m[u]||m.ghost});return(u,h)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["toggle-btn inline-flex items-center justify-center gap-2 rounded-xl font-semibold transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed",[d.value,c.value,{"w-full":t.block}]]),disabled:t.disabled,onClick:a,"aria-pressed":t.modelValue,"aria-label":t.ariaLabel,"data-component":"DXToggleButton"},[r.value?(e.openBlock(),e.createBlock(y,{key:0,icon:r.value,size:i.value,animation:t.iconAnimation},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("span",Dl,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],10,Nl))}},[["__scopeId","data-v-249aa090"]]),Xl=$({__name:"DXTooltip",props:{content:{type:String,default:""},position:{type:String,default:"top"},color:{type:String,default:"dark"},maxWidth:{type:String,default:"200px"}},setup(t){const l=t,o=e.ref(!1),n={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},a={top:"top-full left-1/2 -translate-x-1/2 border-t-slate-900 border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-b-slate-900 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-l-slate-900 border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-r-slate-900 border-t-transparent border-b-transparent border-l-transparent"},r={top:"top-full left-1/2 -translate-x-1/2 border-t-white border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-b-white border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-l-white border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-r-white border-t-transparent border-b-transparent border-l-transparent"},s={dark:"bg-slate-900 text-white",light:"bg-white text-slate-900 border border-slate-200 shadow-lg"},i=e.computed(()=>["absolute z-50 px-3 py-2 text-sm rounded-lg whitespace-normal",n[l.position]||n.top,s[l.color]||s.dark]),d=e.computed(()=>["absolute w-0 h-0 border-4",l.color==="light"?r[l.position]:a[l.position]]);return(m,c)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",onMouseenter:c[0]||(c[0]=u=>o.value=!0),onMouseleave:c[1]||(c[1]=u=>o.value=!1),onFocus:c[2]||(c[2]=u=>o.value=!0),onBlur:c[3]||(c[3]=u=>o.value=!1),"data-component":"DXTooltip"},[e.renderSlot(m.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"tooltip"},{default:e.withCtx(()=>[o.value&&(t.content||m.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.value),role:"tooltip"},[e.renderSlot(m.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0),e.createElementVNode("div",{class:e.normalizeClass(d.value)},null,2)],2)):e.createCommentVNode("",!0)]),_:3})],32))}},[["__scopeId","data-v-bd65e96f"]]),j={__name:"DXValidationIcon",props:{state:{type:String,required:!0},size:{type:String,default:"md"}},setup(t){const l=t,o={success:{icon:D,color:"text-emerald-500"},error:{icon:fe,color:"text-rose-500"},warning:{icon:z,color:"text-amber-500"},info:{icon:X,color:"text-blue-500"}},n=e.computed(()=>o[l.state]||o.info),a=e.computed(()=>n.value.icon),r=e.computed(()=>n.value.color);return(s,i)=>a.value?(e.openBlock(),e.createBlock(y,{key:0,icon:a.value,size:t.size,animation:"scale",class:e.normalizeClass(r.value),"data-component":"DXValidationIcon","data-state":t.state},null,8,["icon","size","class","data-state"])):e.createCommentVNode("",!0)}},Il=["disabled"],Al={key:0},Ml=["disabled"],Ll={key:0},jl=["disabled"],_l={key:0},Tl={__name:"DXActionButtons",props:{showView:{type:Boolean,default:!1},showEdit:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},viewLabel:{type:String,default:"Просмотр"},editLabel:{type:String,default:"Редактировать"},deleteLabel:{type:String,default:"Удалить"},viewIcon:{type:Object,default:()=>A},editIcon:{type:Object,default:()=>Qe},deleteIcon:{type:Object,default:()=>rt},size:{type:String,default:"sm"},iconOnly:{type:Boolean,default:!1},align:{type:String,default:"left"},disabled:{type:Boolean,default:!1}},emits:["view","edit","delete"],setup(t){const l=t,o=e.computed(()=>l.size==="xs"?"xs":l.size==="md"?"sm":"xs"),n=e.computed(()=>{const a="font-semibold rounded-xl";return l.iconOnly?l.size==="xs"?`${a} p-1.5`:l.size==="md"?`${a} p-2.5`:`${a} p-2`:l.size==="xs"?`${a} px-2 py-1 text-xs`:l.size==="md"?`${a} px-4 py-2.5 text-sm`:`${a} px-3 py-2 text-xs`});return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"justify-end":t.align==="right","justify-center":t.align==="center"}]),"data-component":"DXActionButtons"},[t.showView?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",n.value]),disabled:t.disabled,onClick:r[0]||(r[0]=s=>a.$emit("view"))},[e.createVNode(y,{icon:t.viewIcon,size:o.value,animation:"scale"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Al,e.toDisplayString(t.viewLabel),1))],10,Il)):e.createCommentVNode("",!0),t.showEdit?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 border border-slate-200 text-slate-700 hover:border-slate-300 hover:bg-slate-50 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",n.value]),disabled:t.disabled,onClick:r[1]||(r[1]=s=>a.$emit("edit"))},[e.createVNode(y,{icon:t.editIcon,size:o.value,animation:"wiggle"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ll,e.toDisplayString(t.editLabel),1))],10,Ml)):e.createCommentVNode("",!0),t.showDelete?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1.5 bg-rose-600 text-white hover:bg-rose-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",n.value]),disabled:t.disabled,onClick:r[2]||(r[2]=s=>a.$emit("delete"))},[e.createVNode(y,{icon:t.deleteIcon,size:o.value,animation:"scale"},null,8,["icon","size"]),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",_l,e.toDisplayString(t.deleteLabel),1))],10,jl)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],2))}},Ol=["data-variant"],Zl={class:"flex items-start gap-3"},Fl={class:"flex-1 min-w-0"},Pl={key:0,class:"mt-3 flex gap-2"},Rl={__name:"DXAlert",props:{variant:{type:String,default:"info"},title:{type:String,default:""},icon:{type:Object,default:void 0},showIcon:{type:Boolean,default:!0},dismissible:{type:Boolean,default:!1}},emits:["dismiss"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=()=>{a.value=!0,n("dismiss")},s={info:{bg:"bg-blue-50 border-blue-200",icon:"text-blue-500",title:"text-blue-900",content:"text-blue-800",close:"text-blue-500",defaultIcon:X},success:{bg:"bg-emerald-50 border-emerald-200",icon:"text-emerald-500",title:"text-emerald-900",content:"text-emerald-800",close:"text-emerald-500",defaultIcon:D},warning:{bg:"bg-amber-50 border-amber-200",icon:"text-amber-500",title:"text-amber-900",content:"text-amber-800",close:"text-amber-500",defaultIcon:z},danger:{bg:"bg-rose-50 border-rose-200",icon:"text-rose-500",title:"text-rose-900",content:"text-rose-800",close:"text-rose-500",defaultIcon:T}},i=e.computed(()=>s[o.variant]||s.info),d=e.computed(()=>o.showIcon?o.icon!==void 0?o.icon:i.value.defaultIcon:null),m=e.computed(()=>["rounded-xl border p-4",i.value.bg]),c=e.computed(()=>["w-5 h-5 flex-shrink-0 mt-0.5",i.value.icon]),u=e.computed(()=>i.value.title),h=e.computed(()=>["text-sm",i.value.content,o.title&&"mt-1"]);return e.computed(()=>i.value.close),(g,x)=>a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(m.value),role:"alert","data-component":"DXAlert","data-variant":t.variant},[e.createElementVNode("div",Zl,[d.value?(e.openBlock(),e.createBlock(y,{key:0,icon:d.value,size:"md",animation:"none",class:e.normalizeClass(c.value)},null,8,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",Fl,[t.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["font-semibold",u.value])},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(h.value)},[e.renderSlot(g.$slots,"default")],2)]),t.dismissible?(e.openBlock(),e.createBlock(M,{key:1,size:"sm",variant:"default",onClick:r})):e.createCommentVNode("",!0)]),g.$slots.actions?(e.openBlock(),e.createElementBlock("div",Pl,[e.renderSlot(g.$slots,"actions")])):e.createCommentVNode("",!0)],10,Ol))}},ql={"aria-label":"Breadcrumb","data-component":"DXBreadcrumb"},Hl={key:0,class:"mx-2 text-slate-400","aria-hidden":"true"},Gl={key:1},Ul="inline-flex items-center transition-colors",Kl={__name:"DXBreadcrumb",props:{items:{type:Array,required:!0},separator:{type:String,default:"chevron"},size:{type:String,default:"md"},iconAnimation:{type:String,default:"none"},animateCurrentOnly:{type:Boolean,default:!1}},setup(t){const l=t,o={sm:"text-xs",md:"text-sm",lg:"text-base"},n=e.computed(()=>o[l.size]||o.md),a=e.computed(()=>l.size==="sm"?"xs":l.size==="lg"?"sm":"xs"),r=i=>i.to?"router-link":i.href?"a":"span",s=(i,d)=>i.iconAnimation?i.iconAnimation:l.animateCurrentOnly?d===l.items.length-1?l.iconAnimation:"none":l.iconAnimation;return(i,d)=>(e.openBlock(),e.createElementBlock("nav",ql,[e.createElementVNode("ol",{class:e.normalizeClass(["flex items-center flex-wrap",n.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,c)=>(e.openBlock(),e.createElementBlock("li",{key:c,class:"flex items-center"},[c>0?(e.openBlock(),e.createElementBlock("span",Hl,[e.renderSlot(i.$slots,"separator",{},()=>[t.separator==="chevron"?(e.openBlock(),e.createBlock(y,{key:0,icon:e.unref(O),size:a.value,animation:"none"},null,8,["icon","size"])):(e.openBlock(),e.createElementBlock("span",Gl,"/"))])])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(m)),{href:m.href,to:m.to,class:e.normalizeClass([Ul,c===t.items.length-1?"text-slate-900 font-medium":"text-slate-500 hover:text-slate-700"]),"aria-current":c===t.items.length-1?"page":void 0},{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:m.icon,size:a.value,animation:s(m,c),class:"mr-1.5"},null,8,["icon","size","animation"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1032,["href","to","class","aria-current"]))]))),128))],2)]))}},Yl={class:"inline-flex","data-component":"DXButtonGroup"},Wl={key:0,class:"text-sm font-medium text-slate-700 mb-2"},Jl={__name:"DXButtonGroup",props:{modelValue:[String,Number,Array],label:{type:String,default:""},multiple:{type:Boolean,default:!1},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.computed(()=>{switch(o.size){case"sm":return"h-8";case"lg":return"h-12";default:return"h-10"}}),r=i=>{if(!o.disabled)if(o.multiple){const d=Array.isArray(o.modelValue)?o.modelValue:[],m=d.indexOf(i);if(m>-1){const c=[...d];c.splice(m,1),n("update:modelValue",c)}else n("update:modelValue",[...d,i])}else n("update:modelValue",i)},s=i=>o.multiple?Array.isArray(o.modelValue)&&o.modelValue.includes(i):o.modelValue===i;return e.provide("buttonGroup",{modelValue:o.modelValue,multiple:o.multiple,size:o.size,disabled:o.disabled,handleSelect:r,isSelected:s}),(i,d)=>(e.openBlock(),e.createElementBlock("div",Yl,[t.label?(e.openBlock(),e.createElementBlock("p",Wl,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["inline-flex border border-slate-200 rounded-xl overflow-hidden divide-x divide-slate-200",a.value])},[e.renderSlot(i.$slots,"default")],2)]))}},Ql={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},vl={class:"relative"},eo=["placeholder","disabled","onKeydown"],to={key:1,class:"absolute z-20 mt-2 w-full bg-white border border-slate-200 rounded-xl shadow-lg py-2 max-h-48 overflow-y-auto"},lo=["onClick","onMouseenter"],oo={class:"flex items-center gap-2"},no={key:0,class:"w-4 h-4 text-slate-900",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},ao={key:0,class:"px-4 py-2 text-sm text-slate-500"},ro={key:0},so={key:1},io={key:2,class:"mt-1 text-xs text-slate-500"},co={__name:"DXComboBox",props:{modelValue:[String,Number],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},allowCustom:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(null),s=e.ref(""),i=e.ref(!1),d=e.ref(0),m=e.computed(()=>o.options.find(f=>f.value===o.modelValue)),c=e.computed(()=>{if(!o.filterable||!s.value)return o.options;const f=s.value.toLowerCase();return o.options.filter(k=>k.label.toLowerCase().includes(f))}),u=()=>{if(i.value=!0,d.value=0,!o.filterable)return;!o.options.find(k=>k.label===s.value)&&!o.allowCustom&&n("update:modelValue",null)},h=()=>{i.value=!0,d.value=0},g=f=>{s.value=f.label,n("update:modelValue",f.value),i.value=!1},x=()=>{if(!i.value){i.value=!0;return}d.value<c.value.length-1&&d.value++},V=()=>{d.value>0&&d.value--},w=()=>{if(i.value&&c.value.length>0){const f=c.value[d.value];f&&g(f)}else o.allowCustom&&s.value&&(n("update:modelValue",s.value),i.value=!1)},b=f=>{a.value&&!a.value.contains(f.target)&&(i.value=!1,!o.allowCustom&&m.value&&(s.value=m.value.label))};return e.watch(()=>o.modelValue,f=>{const k=o.options.find(C=>C.value===f);s.value=k?k.label:o.allowCustom?String(f||""):""},{immediate:!0}),e.onMounted(()=>document.addEventListener("click",b)),e.onBeforeUnmount(()=>document.removeEventListener("click",b)),(f,k)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"root",ref:a,"data-component":"DXComboBox"},[t.label?(e.openBlock(),e.createElementBlock("label",Ql,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",vl,[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:r,"onUpdate:modelValue":k[0]||(k[0]=C=>s.value=C),type:"text",placeholder:t.placeholder,disabled:t.disabled,class:e.normalizeClass(["w-full pr-10 rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm text-slate-900 placeholder:text-slate-400 hover:border-slate-300 focus:border-slate-300 focus:outline-none transition-colors",t.disabled&&"opacity-60 cursor-not-allowed bg-slate-50"]),onInput:u,onFocus:h,onKeydown:[e.withKeys(e.withModifiers(x,["prevent"]),["down"]),e.withKeys(e.withModifiers(V,["prevent"]),["up"]),e.withKeys(e.withModifiers(w,["prevent"]),["enter"]),k[1]||(k[1]=e.withKeys(C=>i.value=!1,["escape"]))]},null,42,eo),[[e.vModelText,s.value]]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none transition-transform",{"rotate-180":i.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...k[2]||(k[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))]),i.value&&(c.value.length>0||t.allowCustom&&s.value)?(e.openBlock(),e.createElementBlock("div",to,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(C,B)=>(e.openBlock(),e.createElementBlock("button",{key:C.value,type:"button",class:e.normalizeClass(["w-full text-left px-4 py-2 text-sm hover:bg-slate-50 flex items-center justify-between",{"bg-slate-100":B===d.value}]),onClick:S=>g(C),onMouseenter:S=>d.value=B},[e.createElementVNode("span",oo,[C.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(C.label),1)]),t.modelValue===C.value?(e.openBlock(),e.createElementBlock("svg",no,[...k[3]||(k[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],42,lo))),128)),c.value.length===0&&s.value?(e.openBlock(),e.createElementBlock("div",ao,[t.allowCustom?(e.openBlock(),e.createElementBlock("span",ro,'Нажмите Enter для "'+e.toDisplayString(s.value)+'"',1)):(e.openBlock(),e.createElementBlock("span",so,"Не найдено"))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",io,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)],512))}},mo={class:"space-y-1","data-component":"DXCopyField"},uo={key:0,class:"text-[11px] uppercase tracking-wide text-slate-500 font-semibold"},po={class:"flex items-center justify-between gap-2 rounded-lg border border-slate-200 bg-white px-3 py-3"},fo={class:"text-base font-semibold text-slate-900 break-all flex-1 text-center"},go=["aria-label"],ho={__name:"DXCopyField",props:{label:{type:String,default:""},value:{type:String,default:""},copyIcon:{type:Object,default:()=>He},successIcon:{type:Object,default:()=>qe},copyIconAnimation:{type:String,default:"scale"},copiedIconAnimation:{type:String,default:"scale"},successDuration:{type:Number,default:2e3}},emits:["copied"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=async()=>{if(o.value)try{await navigator.clipboard.writeText(o.value),a.value=!0,n("copied",o.value),setTimeout(()=>{a.value=!1},o.successDuration)}catch(s){console.error("Не удалось скопировать",s)}};return(s,i)=>(e.openBlock(),e.createElementBlock("div",mo,[t.label?(e.openBlock(),e.createElementBlock("p",uo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",po,[e.createElementVNode("p",fo,e.toDisplayString(t.value||"—"),1),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["h-9 w-9 inline-flex items-center justify-center rounded-xl border border-slate-200 text-slate-700 hover:border-slate-300 bg-white transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"border-emerald-300 bg-emerald-50":a.value}]),"aria-label":`Скопировать ${t.label||"значение"}`,onClick:r},[a.value?(e.openBlock(),e.createBlock(y,{key:0,icon:e.unref(Ze),size:"sm",animation:t.copiedIconAnimation,class:"text-emerald-600"},null,8,["icon","animation"])):(e.openBlock(),e.createBlock(y,{key:1,icon:t.copyIcon,size:"sm",animation:t.copyIconAnimation},null,8,["icon","animation"]))],10,go)])]))}},ko={class:"w-full","data-component":"DXDatePicker"},bo={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},xo={class:"relative"},yo=["type","value","placeholder","disabled","readonly"],wo={key:1,class:"absolute z-20 mt-2 p-4 bg-white border border-slate-200 rounded-xl shadow-lg"},Bo={class:"space-y-3"},Co={class:"flex gap-2"},Vo={key:2,class:"mt-1 text-xs text-slate-500"},$o={__name:"DXDatePicker",props:{modelValue:[String,Object],label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=e.ref(""),s=e.ref(""),i=e.computed(()=>{if(o.range&&typeof o.modelValue=="object"&&o.modelValue){const{start:h,end:g}=o.modelValue;return h&&g?`${d(h)} - ${d(g)}`:""}return o.modelValue||""}),d=h=>h?new Date(h).toLocaleDateString("ru-RU"):"",m=h=>n("update:modelValue",h),c=()=>{o.disabled||(a.value=!a.value,a.value&&typeof o.modelValue=="object"&&o.modelValue&&(r.value=o.modelValue.start||"",s.value=o.modelValue.end||""))},u=()=>{r.value&&s.value&&n("update:modelValue",{start:r.value,end:s.value}),a.value=!1};return(h,g)=>(e.openBlock(),e.createElementBlock("div",ko,[t.label?(e.openBlock(),e.createElementBlock("label",bo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",xo,[e.createElementVNode("input",{type:t.range?"text":"date",value:i.value,placeholder:t.placeholder,disabled:t.disabled,class:"w-full h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",readonly:t.range,onChange:g[0]||(g[0]=x=>!t.range&&m(x.target.value)),onClick:g[1]||(g[1]=x=>t.range&&c())},null,40,yo),g[5]||(g[5]=e.createElementVNode("svg",{class:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400 pointer-events-none",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1))]),t.range&&a.value?(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",Bo,[e.createElementVNode("div",null,[g[6]||(g[6]=e.createElementVNode("label",{class:"text-xs text-slate-600"},"От",-1)),e.withDirectives(e.createElementVNode("input",{type:"date","onUpdate:modelValue":g[2]||(g[2]=x=>r.value=x),class:"w-full mt-1 px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10"},null,512),[[e.vModelText,r.value]])]),e.createElementVNode("div",null,[g[7]||(g[7]=e.createElementVNode("label",{class:"text-xs text-slate-600"},"До",-1)),e.withDirectives(e.createElementVNode("input",{type:"date","onUpdate:modelValue":g[3]||(g[3]=x=>s.value=x),class:"w-full mt-1 px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10"},null,512),[[e.vModelText,s.value]])]),e.createElementVNode("div",Co,[e.createElementVNode("button",{type:"button",class:"flex-1 px-3 py-2 text-sm bg-slate-900 text-white rounded-lg hover:bg-slate-800",onClick:u}," Применить "),e.createElementVNode("button",{type:"button",class:"px-3 py-2 text-sm border border-slate-200 rounded-lg hover:bg-slate-50",onClick:g[4]||(g[4]=x=>a.value=!1)}," Отмена ")])])])):e.createCommentVNode("",!0),t.helper?(e.openBlock(),e.createElementBlock("p",Vo,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},So={class:"w-full","data-component":"DXFileUpload"},Eo={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},No=["accept","multiple","disabled"],Do={key:0,class:"text-center"},zo={class:"text-sm font-medium text-slate-700 mb-1"},Xo=["disabled"],Io={class:"text-xs text-slate-500"},Ao={key:1,class:"space-y-2"},Mo={key:0,class:"w-12 h-12 flex-shrink-0 rounded overflow-hidden bg-slate-200"},Lo=["src","alt"],jo={class:"flex-1 min-w-0"},_o={class:"text-sm font-medium text-slate-900 truncate"},To={class:"text-xs text-slate-500"},Oo=["onClick"],Zo=["disabled"],Fo={key:1,class:"mt-1 text-xs text-slate-500"},Po={key:2,class:"mt-1 text-xs text-rose-500"},Ro={__name:"DXFileUpload",props:{modelValue:[File,FileList,Array],label:{type:String,default:""},helper:{type:String,default:""},accept:{type:String,default:""},multiple:{type:Boolean,default:!1},maxSize:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","upload"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(null),s=e.ref(!1),i=e.ref([]),d=e.ref(""),m=w=>{const b=Array.from(w.target.files||[]);g(b)},c=w=>{var f;if(s.value=!1,o.disabled)return;const b=Array.from(((f=w.dataTransfer)==null?void 0:f.files)||[]);g(b)},u=()=>{o.disabled||(s.value=!0)},h=w=>{w.target===r.value&&(s.value=!1)},g=w=>{d.value="";const b=w.map(f=>{if(f.type.startsWith("image/")){const k=URL.createObjectURL(f);return Object.assign(f,{preview:k})}return f});o.multiple?i.value=[...i.value,...b]:i.value=b.slice(0,1),n("update:modelValue",o.multiple?i.value:i.value[0])},x=w=>{const b=i.value[w];b.preview&&URL.revokeObjectURL(b.preview),i.value.splice(w,1),n("update:modelValue",o.multiple?i.value:i.value[0]||null)},V=w=>{if(w===0)return"0 Bytes";const b=1024,f=["Bytes","KB","MB","GB"],k=Math.floor(Math.log(w)/Math.log(b));return Math.round(w/Math.pow(b,k)*100)/100+" "+f[k]};return e.watch(()=>o.modelValue,w=>{w||(i.value=[])}),(w,b)=>(e.openBlock(),e.createElementBlock("div",So,[t.label?(e.openBlock(),e.createElementBlock("label",Eo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"dropZone",ref:r,class:e.normalizeClass(["relative border-2 border-dashed rounded-xl p-6 transition-all",[s.value?"border-slate-900 bg-slate-50 scale-105":"border-slate-300 bg-white hover:border-slate-400",t.disabled&&"opacity-60 cursor-not-allowed"]]),onDragenter:e.withModifiers(u,["prevent"]),onDragover:b[2]||(b[2]=e.withModifiers(()=>{},["prevent"])),onDragleave:e.withModifiers(h,["prevent"]),onDrop:e.withModifiers(c,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",accept:t.accept,multiple:t.multiple,disabled:t.disabled,class:"hidden",onChange:m},null,40,No),i.value.length?(e.openBlock(),e.createElementBlock("div",Ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(f,k)=>{var C;return e.openBlock(),e.createElementBlock("div",{key:k,class:"flex items-center gap-3 p-3 bg-slate-50 rounded-lg"},[(C=f.type)!=null&&C.startsWith("image/")?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("img",{src:f.preview,alt:f.name,class:"w-full h-full object-cover"},null,8,Lo)])):(e.openBlock(),e.createBlock(y,{key:1,icon:e.unref(Ue),size:"lg",animation:"none",class:"text-slate-400 flex-shrink-0"},null,8,["icon"])),e.createElementVNode("div",jo,[e.createElementVNode("p",_o,e.toDisplayString(f.name),1),e.createElementVNode("p",To,e.toDisplayString(V(f.size)),1)]),e.createElementVNode("button",{type:"button",class:"text-slate-400 hover:text-slate-600 transition-colors",onClick:B=>x(k),"aria-label":"Удалить файл"},[e.createVNode(y,{icon:e.unref(Z),size:"md",animation:"scale"},null,8,["icon"])],8,Oo)])}),128)),t.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"w-full py-2 text-sm text-slate-600 hover:text-slate-900 border border-slate-200 rounded-lg hover:bg-slate-50",disabled:t.disabled,onClick:b[1]||(b[1]=f=>{var k;return(k=a.value)==null?void 0:k.click()})},[e.createVNode(y,{icon:e.unref(et),size:"sm",animation:"none",class:"inline mr-1"},null,8,["icon"]),b[4]||(b[4]=e.createTextVNode(" Добавить ещё ",-1))],8,Zo)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Do,[e.createVNode(y,{icon:e.unref(Ge),size:"xl",animation:"none",class:"mx-auto text-slate-400 mb-3 w-12 h-12"},null,8,["icon"]),e.createElementVNode("p",zo,[b[3]||(b[3]=e.createTextVNode(" Перетащите файлы сюда или ",-1)),e.createElementVNode("button",{type:"button",class:"text-slate-900 underline hover:no-underline",disabled:t.disabled,onClick:b[0]||(b[0]=f=>{var k;return(k=a.value)==null?void 0:k.click()})}," выберите ",8,Xo)]),e.createElementVNode("p",Io,e.toDisplayString(t.accept||"Любые файлы")+" "+e.toDisplayString(t.maxSize?`• Макс. ${t.maxSize}`:""),1)]))],34),t.helper?(e.openBlock(),e.createElementBlock("p",Fo,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("p",Po,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)]))}},qo={class:"space-y-2","data-component":"DXFilterGroup"},Ho={class:"text-xs font-semibold text-slate-500 uppercase tracking-wide"},Go={class:"flex flex-wrap gap-2"},Uo=["onClick"],Ko={__name:"DXFilterGroup",props:{label:{type:String,required:!0},options:{type:Array,default:()=>[]},modelValue:[String,Boolean],clearable:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("p",Ho,e.toDisplayString(t.label),1),e.createElementVNode("div",Go,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,n=>(e.openBlock(),e.createElementBlock("button",{key:n.value,type:"button",class:e.normalizeClass(["px-3 py-2 rounded-full text-xs font-semibold border transition",t.modelValue===n.value?"bg-slate-800 text-white border-slate-800":"border-slate-200 text-slate-700 hover:border-slate-300 bg-white"]),onClick:a=>l.$emit("update:modelValue",n.value)},e.toDisplayString(n.label),11,Uo))),128)),t.modelValue&&t.clearable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"px-3 py-2 rounded-full text-xs font-semibold border border-amber-300 text-amber-700 bg-amber-50 hover:bg-amber-100 transition",onClick:o[0]||(o[0]=n=>l.$emit("update:modelValue",null))}," Сбросить ")):e.createCommentVNode("",!0)])]))}},Yo={class:"w-full","data-component":"DXFormControl"},Wo={class:"flex items-center justify-between mb-1"},Jo={key:0,class:"text-sm font-medium text-slate-700"},Qo={key:0,class:"text-rose-500"},vo={key:1,class:"text-xs text-slate-500"},en={class:"relative"},tn={key:0,class:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"},ln={key:1,class:"absolute right-3 top-1/2 -translate-y-1/2"},on={key:0,class:"mt-1 text-xs text-rose-500 flex items-center gap-1"},nn={key:1,class:"mt-1 text-xs text-slate-500"},an={__name:"DXFormControl",props:{label:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},required:{type:Boolean,default:!1},validationState:{type:String,default:""},prefixIcon:{type:Object,default:null},maxLength:{type:Number,default:0},currentLength:{type:Number,default:0},showCount:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>l.validationState==="success"||l.validationState==="error");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Wo,[t.label?(e.openBlock(),e.createElementBlock("label",Jo,[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.required?(e.openBlock(),e.createElementBlock("span",Qo,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.maxLength&&t.showCount?(e.openBlock(),e.createElementBlock("span",vo,e.toDisplayString(t.currentLength)+" / "+e.toDisplayString(t.maxLength),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",en,[n.$slots.prefix||t.prefixIcon?(e.openBlock(),e.createElementBlock("div",tn,[t.prefixIcon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.prefixIcon,size:"sm",animation:"none"},null,8,["icon"])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"pl-10":n.$slots.prefix||t.prefixIcon,"pr-10":o.value})},[e.renderSlot(n.$slots,"default")],2),o.value?(e.openBlock(),e.createElementBlock("div",ln,[e.createVNode(j,{state:t.validationState,size:"md"},null,8,["state"])])):e.createCommentVNode("",!0)]),t.error?(e.openBlock(),e.createElementBlock("p",on,[e.createVNode(j,{state:"error",size:"xs"}),e.createTextVNode(" "+e.toDisplayString(t.error),1)])):t.helper?(e.openBlock(),e.createElementBlock("p",nn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},rn={class:"w-full","data-component":"DXInputGroup"},sn={key:0,class:"block text-sm font-medium text-slate-700 mb-1"},cn={class:"flex"},dn={key:1,class:"mt-1 text-xs text-slate-500"},mn={__name:"DXInputGroup",props:{label:{type:String,default:""},helper:{type:String,default:""},size:{type:String,default:"md"}},setup(t){const l=t;return e.provide("inputGroup",{size:l.size}),(o,n)=>(e.openBlock(),e.createElementBlock("div",rn,[t.label?(e.openBlock(),e.createElementBlock("label",sn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",cn,[e.renderSlot(o.$slots,"default")]),t.helper?(e.openBlock(),e.createElementBlock("p",dn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},un={class:"w-full","data-component":"DXInputMask"},pn={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},fn=["type","placeholder","value","disabled"],gn={key:1,class:"mt-1 text-xs text-slate-500"},hn={__name:"DXInputMask",props:{modelValue:{type:String,default:""},mask:{type:String,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(null),r=e.ref(""),s=c=>{const u=c.replace(/\D/g,"");let h="",g=0;for(let x=0;x<o.mask.length&&g<u.length;x++)o.mask[x]==="#"?(h+=u[g],g++):h+=o.mask[x];return h},i=c=>c.replace(/\D/g,""),d=c=>{const u=i(c.target.value),h=s(u);r.value=h,n("update:modelValue",u),setTimeout(()=>{if(a.value){const g=h.length;a.value.setSelectionRange(g,g)}},0)},m=c=>{["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight"].includes(c.key)||/^\d$/.test(c.key)||c.preventDefault()};return e.watch(()=>o.modelValue,c=>{c!==i(r.value)&&(r.value=s(c))},{immediate:!0}),(c,u)=>(e.openBlock(),e.createElementBlock("div",un,[t.label?(e.openBlock(),e.createElementBlock("label",pn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputRef",ref:a,type:t.type,placeholder:t.placeholder,value:r.value,disabled:t.disabled,class:"w-full h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",onInput:d,onKeydown:m},null,40,fn),t.helper?(e.openBlock(),e.createElementBlock("p",gn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},kn={class:"flex items-center gap-1","aria-label":"Pagination","data-component":"DXPagination"},bn=["disabled"],xn={key:0,class:"px-2 text-slate-400"},yn=["aria-current","onClick"],wn=["disabled"],Bn="bg-slate-900 text-white hover:bg-slate-800",Cn={__name:"DXPagination",props:{modelValue:{type:Number,default:1},totalPages:{type:Number,required:!0},siblingCount:{type:Number,default:1},size:{type:String,default:"md"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=m=>{m>=1&&m<=o.totalPages&&n("update:modelValue",m)},r=e.computed(()=>{const m=o.modelValue,c=o.totalPages,u=o.siblingCount,h=[];h.push(1);const g=Math.max(2,m-u),x=Math.min(c-1,m+u);g>2&&h.push("...");for(let V=g;V<=x;V++)V!==1&&V!==c&&h.push(V);return x<c-1&&h.push("..."),c>1&&h.push(c),h}),s={sm:"h-7 min-w-7 text-xs",md:"h-9 min-w-9 text-sm",lg:"h-11 min-w-11 text-base"},i=e.computed(()=>["inline-flex items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 hover:bg-slate-50 hover:border-slate-300 transition-colors",s[o.size]||s.md]),d=e.computed(()=>["inline-flex items-center justify-center rounded-lg font-medium transition-colors",s[o.size]||s.md,"text-slate-600 hover:bg-slate-100"]);return(m,c)=>(e.openBlock(),e.createElementBlock("nav",kn,[e.createElementVNode("button",{type:"button",disabled:t.modelValue<=1,class:e.normalizeClass([i.value,t.modelValue<=1&&"opacity-50 cursor-not-allowed"]),onClick:c[0]||(c[0]=u=>a(t.modelValue-1)),"aria-label":"Предыдущая"},[e.createVNode(y,{icon:e.unref(Re),size:"sm",animation:"none"},null,8,["icon"])],10,bn),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[u==="..."?(e.openBlock(),e.createElementBlock("span",xn,"...")):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass([d.value,u===t.modelValue&&Bn]),"aria-current":u===t.modelValue?"page":void 0,onClick:h=>a(u)},e.toDisplayString(u),11,yn))],64))),128)),e.createElementVNode("button",{type:"button",disabled:t.modelValue>=t.totalPages,class:e.normalizeClass([i.value,t.modelValue>=t.totalPages&&"opacity-50 cursor-not-allowed"]),onClick:c[1]||(c[1]=u=>a(t.modelValue+1)),"aria-label":"Следующая"},[e.createVNode(y,{icon:e.unref(O),size:"sm",animation:"none"},null,8,["icon"])],10,wn)]))}},Vn={class:"w-full","data-component":"DXPasswordInput"},$n={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},Sn={class:"relative"},En=["type","placeholder","value","disabled"],Nn=["disabled","aria-label"],Dn={key:1,class:"mt-1 text-xs text-rose-500"},zn={key:2,class:"mt-1 text-xs text-slate-500"},Xn={__name:"DXPasswordInput",props:{modelValue:{type:String,default:""},label:{type:String,default:""},placeholder:{type:String,default:""},error:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){const l=e.ref(!1);return(o,n)=>(e.openBlock(),e.createElementBlock("div",Vn,[t.label?(e.openBlock(),e.createElementBlock("label",$n,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Sn,[e.createElementVNode("input",{type:l.value?"text":"password",placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,class:e.normalizeClass(["w-full pr-11 h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white text-slate-700 placeholder:text-slate-400 transition-colors hover:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-900/10 focus:border-slate-300 disabled:opacity-60 disabled:cursor-not-allowed disabled:bg-slate-50",{"border-rose-300 focus:ring-rose-500/10":t.error}]),onInput:n[0]||(n[0]=a=>o.$emit("update:modelValue",a.target.value))},null,42,En),e.createElementVNode("button",{type:"button",class:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition",disabled:t.disabled,onClick:n[1]||(n[1]=a=>l.value=!l.value),"aria-label":l.value?"Скрыть пароль":"Показать пароль"},[e.createVNode(y,{icon:l.value?e.unref(Ke):e.unref(A),size:"md",animation:"scale"},null,8,["icon"])],8,Nn)]),t.error?(e.openBlock(),e.createElementBlock("p",Dn,e.toDisplayString(t.error),1)):t.helper?(e.openBlock(),e.createElementBlock("p",zn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},In=["value","checked","disabled"],An={class:"flex items-start gap-3"},Mn={class:"flex-1 min-w-0"},Ln={class:"flex items-center justify-between"},jn={key:0,class:"w-5 h-5 rounded-full bg-slate-900 flex items-center justify-center flex-shrink-0"},_n={key:0,class:"text-sm text-slate-600 mt-1"},Tn={__name:"DXRadioCard",props:{modelValue:[String,Number,Boolean],value:{type:[String,Number,Boolean],required:!0},title:{type:String,required:!0},description:{type:String,default:""},icon:{type:Object,default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["block relative cursor-pointer group",{"cursor-not-allowed opacity-60":t.disabled}]),"data-component":"DXRadioCard"},[e.createElementVNode("input",{type:"radio",value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,class:"sr-only peer",onChange:o[0]||(o[0]=n=>l.$emit("update:modelValue",t.value))},null,40,In),e.createElementVNode("div",{class:e.normalizeClass(["border-2 rounded-xl p-4 transition-all",[t.modelValue===t.value?"border-slate-900 bg-slate-50":"border-slate-200 bg-white",!t.disabled&&"hover:border-slate-300 hover:shadow-sm",t.disabled&&"bg-slate-50"]])},[e.createElementVNode("div",An,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:e.normalizeClass(["w-6 h-6 flex-shrink-0",t.modelValue===t.value?"text-slate-900":"text-slate-400"])},null,8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("div",Mn,[e.createElementVNode("div",Ln,[e.createElementVNode("p",{class:e.normalizeClass(["font-semibold",t.modelValue===t.value?"text-slate-900":"text-slate-700"])},e.toDisplayString(t.title),3),t.modelValue===t.value?(e.openBlock(),e.createElementBlock("div",jn,[...o[1]||(o[1]=[e.createElementVNode("svg",{class:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"})],-1)])])):e.createCommentVNode("",!0)]),t.description?(e.openBlock(),e.createElementBlock("p",_n,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")])])],2)],2))}},On={class:"space-y-2","data-component":"DXRadioGroup"},Zn={key:0,class:"text-sm font-medium text-slate-700 mb-3"},Fn=["value","checked","disabled","onChange"],Pn={class:"text-sm text-slate-700 select-none"},Rn={key:1,class:"text-xs text-slate-500 mt-1"},qn={__name:"DXRadioGroup",props:{modelValue:[String,Number,Boolean],options:{type:Array,required:!0},label:{type:String,default:""},helper:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"md"},layout:{type:String,default:"vertical"}},emits:["update:modelValue"],setup(t){const l=t,o=e.computed(()=>{switch(l.size){case"sm":return"h-3.5 w-3.5";case"lg":return"h-5 w-5";default:return"h-4 w-4"}});return(n,a)=>(e.openBlock(),e.createElementBlock("div",On,[t.label?(e.openBlock(),e.createElementBlock("p",Zn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.layout==="horizontal"?"flex flex-wrap gap-3":"space-y-2")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("label",{key:r.value,class:e.normalizeClass(["inline-flex items-center gap-2 cursor-pointer",{"opacity-60 cursor-not-allowed":t.disabled||r.disabled}])},[e.createElementVNode("input",{type:"radio",value:r.value,checked:t.modelValue===r.value,disabled:t.disabled||r.disabled,class:e.normalizeClass(["rounded-full border-slate-300 text-slate-900 focus:ring-slate-900/10 focus:ring-2 transition",o.value]),onChange:s=>n.$emit("update:modelValue",r.value)},null,42,Fn),e.createElementVNode("span",Pn,e.toDisplayString(r.label),1)],2))),128))],2),t.helper?(e.openBlock(),e.createElementBlock("p",Rn,e.toDisplayString(t.helper),1)):e.createCommentVNode("",!0)]))}},Hn={key:0,class:"block text-sm text-slate-600 mb-1 font-medium"},Gn={key:1,class:"flex flex-wrap gap-2 mb-2"},Un=["onClick"],Kn={class:"truncate flex items-center gap-2"},Yn={key:2,class:"absolute z-20 mt-2 w-full bg-white border border-slate-200 rounded-xl shadow-lg p-3 space-y-2"},Wn={class:"relative"},Jn=["placeholder"],Qn={class:"max-h-48 overflow-y-auto space-y-1"},vn=["onClick"],ea={class:"flex items-center gap-2 flex-1 truncate"},ta={key:0,class:"w-4 h-4 text-slate-900 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},la={key:1,class:"text-xs text-slate-500 px-3 py-2"},oa={__name:"DXSearchSelect",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Выбрать"},searchPlaceholder:{type:String,default:"Поиск..."},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1}},emits:["update:modelValue","create"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=e.ref(""),s=e.ref(null),i=e.ref(null),d=e.computed(()=>o.multiple?null:o.options.find(f=>String(f.value)===String(o.modelValue))),m=e.computed(()=>{if(!o.multiple)return[];const f=Array.isArray(o.modelValue)?o.modelValue:[];return o.options.filter(k=>f.includes(k.value))}),c=e.computed(()=>{if(o.multiple){const f=m.value.length;return f>0?`Выбрано: ${f}`:o.placeholder}return d.value?d.value.label:o.placeholder}),u=e.computed(()=>{const f=r.value.toLowerCase().trim();return f?o.options.filter(k=>k.label.toLowerCase().includes(f)):o.options}),h=f=>o.multiple?(Array.isArray(o.modelValue)?o.modelValue:[]).includes(f):o.modelValue===f,g=()=>{a.value=!a.value,a.value&&e.nextTick(()=>{var f;return(f=i.value)==null?void 0:f.focus()})},x=f=>{if(o.multiple){const k=Array.isArray(o.modelValue)?o.modelValue:[],C=k.indexOf(f);if(C>-1){const B=[...k];B.splice(C,1),n("update:modelValue",B)}else n("update:modelValue",[...k,f])}else n("update:modelValue",f),a.value=!1;r.value=""},V=f=>{if(o.multiple){const k=Array.isArray(o.modelValue)?o.modelValue:[];n("update:modelValue",k.filter(C=>C!==f))}},w=()=>{o.creatable&&r.value&&(n("create",r.value),r.value="")},b=f=>{s.value&&!s.value.contains(f.target)&&(a.value=!1,r.value="")};return e.watch(a,f=>{f||(r.value="")}),e.onMounted(()=>document.addEventListener("click",b)),e.onBeforeUnmount(()=>document.removeEventListener("click",b)),(f,k)=>{var C;return e.openBlock(),e.createElementBlock("div",{class:"relative",ref_key:"root",ref:s,"data-component":"DXSearchSelect"},[t.label?(e.openBlock(),e.createElementBlock("label",Hn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.multiple&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,B=>(e.openBlock(),e.createElementBlock("span",{key:B.value,class:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium bg-slate-100 text-slate-700 rounded-lg"},[B.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.icon),{key:0,class:"w-3 h-3"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(B.label)+" ",1),e.createElementVNode("button",{type:"button",class:"hover:text-slate-900",onClick:e.withModifiers(S=>V(B.value),["stop"])},[...k[3]||(k[3]=[e.createElementVNode("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Un)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["w-full flex items-center justify-between h-10 px-4 py-2.5 text-sm rounded-xl border border-slate-200 bg-white transition-colors",[!a.value&&"hover:border-slate-300",a.value&&"ring-2 ring-slate-900/10 border-slate-300"]]),onClick:g},[e.createElementVNode("span",Kn,[!t.multiple&&((C=d.value)!=null&&C.icon)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(c.value),1)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-4 h-4 text-slate-400 transition-transform",{"rotate-180":a.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...k[4]||(k[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],2),a.value?(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("div",Wn,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:i,"onUpdate:modelValue":k[0]||(k[0]=B=>r.value=B),class:"w-full px-3 py-2 text-sm border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-900/10",placeholder:t.searchPlaceholder,onKeydown:[k[1]||(k[1]=e.withModifiers(()=>{},["stop"])),k[2]||(k[2]=e.withKeys(B=>a.value=!1,["escape"]))]},null,40,Jn),[[e.vModelText,r.value]]),k[5]||(k[5]=e.createElementVNode("svg",{class:"absolute right-3 top-2.5 w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),e.createElementVNode("div",Qn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,B=>(e.openBlock(),e.createElementBlock("button",{key:B.value,type:"button",class:e.normalizeClass(["w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center justify-between gap-2",{"bg-slate-100":h(B.value)}]),onClick:S=>x(B.value)},[e.createElementVNode("span",ea,[B.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.icon),{key:0,class:"w-4 h-4 text-slate-500"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(B.label),1)]),h(B.value)?(e.openBlock(),e.createElementBlock("svg",ta,[...k[6]||(k[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],10,vn))),128)),t.creatable&&r.value&&!u.value.length?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"w-full text-left px-3 py-2 rounded-lg hover:bg-slate-50 text-sm flex items-center gap-2 text-slate-600",onClick:w},[k[7]||(k[7]=e.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1)),e.createTextVNode(' Создать "'+e.toDisplayString(r.value)+'" ',1)])):u.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",la,"Не найдено"))])])):e.createCommentVNode("",!0)],512)}}},na={class:"inline-flex","data-component":"DXSegmentedControl"},aa={key:0,class:"text-sm font-medium text-slate-700 mb-2"},ra={class:"relative inline-flex p-1 bg-slate-100 rounded-xl gap-1"},sa=["disabled","onClick"],ia={key:1},ca={__name:"DXSegmentedControl",props:{modelValue:[String,Number,Boolean],options:{type:Array,required:!0},label:{type:String,default:""},iconAnimation:{type:String,default:"none"},animateActiveOnly:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,n=l,a=e.ref([]),r=e.ref({}),s=e.computed(()=>o.options.findIndex(c=>c.value===o.modelValue)),i=()=>{const c=s.value;if(c>=0&&a.value[c]){const u=a.value[c];r.value={width:`${u.offsetWidth}px`,height:`${u.offsetHeight}px`,left:`${u.offsetLeft}px`,top:`${u.offsetTop}px`}}},d=c=>{o.disabled||n("update:modelValue",c)},m=c=>o.iconAnimation==="none"?"none":o.animateActiveOnly?o.modelValue===c.value?o.iconAnimation:"none":o.iconAnimation;return e.watch(()=>o.modelValue,()=>{e.nextTick(i)}),e.onMounted(()=>{e.nextTick(i)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",na,[t.label?(e.openBlock(),e.createElementBlock("p",aa,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ra,[e.createElementVNode("div",{class:"absolute bg-white rounded-lg shadow-sm transition-all duration-200 ease-out",style:e.normalizeStyle(r.value)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(h,g)=>(e.openBlock(),e.createElementBlock("button",{key:h.value,type:"button",ref_for:!0,ref:x=>{x&&(a.value[g]=x)},class:e.normalizeClass(["relative z-10 px-4 py-1.5 text-sm font-medium transition-colors duration-150 rounded-lg whitespace-nowrap min-w-[60px] text-center inline-flex items-center justify-center gap-1.5",[t.modelValue===h.value?"text-slate-900":"text-slate-600 hover:text-slate-900",t.disabled&&"opacity-60 cursor-not-allowed"]]),disabled:t.disabled,onClick:x=>d(h.value)},[h.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:h.icon,size:"xs",animation:m(h)},null,8,["icon","animation"])):e.createCommentVNode("",!0),h.label?(e.openBlock(),e.createElementBlock("span",ia,e.toDisplayString(h.label),1)):e.createCommentVNode("",!0),h.count!==void 0&&h.count!==null?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-semibold rounded-full",t.modelValue===h.value?"bg-slate-800 text-white":"bg-slate-200 text-slate-700"])},e.toDisplayString(h.count),3)):e.createCommentVNode("",!0)],10,sa))),128))])]))}},da=["onClick","aria-expanded"],ma={class:"flex items-center gap-2"},ua={class:"text-slate-900"},pa={class:"overflow-hidden"},fa={class:"pb-4 px-1 text-sm text-slate-600"},ga={__name:"DXAccordion",props:{items:{type:Array,required:!0},multiple:{type:Boolean,default:!1},defaultOpen:{type:Array,default:()=>[]},variant:{type:String,default:"default"}},setup(t){const l=t,o=e.ref(new Set(l.defaultOpen)),n=i=>o.value.has(i),a=i=>{l.multiple?(o.value.has(i)?o.value.delete(i):o.value.add(i),o.value=new Set(o.value)):o.value.has(i)?o.value=new Set:o.value=new Set([i])},r={default:"",bordered:"border border-slate-200 rounded-xl overflow-hidden",separated:"space-y-2"},s=e.computed(()=>[r[l.variant]||r.default]);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),"data-component":"DXAccordion"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"border-b border-slate-200 last:border-b-0"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["w-full flex items-center justify-between py-4 px-1 text-left transition-colors hover:bg-slate-50",{"font-semibold":n(c)}]),onClick:u=>a(c),"aria-expanded":n(c)},[e.createElementVNode("span",ma,[m.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:m.icon,size:"md",animation:"none",class:"text-slate-500"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("span",ua,e.toDisplayString(m.title),1)]),e.createVNode(y,{icon:e.unref(N),size:"md",animation:"none",class:e.normalizeClass(["text-slate-400 transition-transform duration-200",{"rotate-180":n(c)}])},null,8,["icon","class"])],10,da),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-96","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-96","leave-to-class":"opacity-0 max-h-0"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",pa,[e.createElementVNode("div",fa,[e.renderSlot(i.$slots,`item-${c}`,{},()=>[e.createTextVNode(e.toDisplayString(m.content),1)])])],512),[[e.vShow,n(c)]])]),_:2},1024)]))),128))],2))}},ha={key:0,class:"absolute right-0 mt-2 w-56 bg-white border border-slate-200 rounded-2xl shadow-lg py-2 z-20"},ka={__name:"DXDropdown",setup(t){const l=e.ref(!1),o=e.ref(null),n=()=>l.value=!l.value,a=()=>l.value=!1,r=s=>{o.value&&!o.value.contains(s.target)&&a()};return e.onMounted(()=>document.addEventListener("click",r)),e.onBeforeUnmount(()=>document.removeEventListener("click",r)),(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"root",ref:o,"data-component":"DXDropdown"},[e.createElementVNode("button",{type:"button",class:"dropdown-btn inline-flex items-center gap-2 px-3 py-2 rounded-xl border border-slate-200 text-sm font-semibold text-slate-700 hover:border-slate-300 transition",onClick:n},[e.renderSlot(s.$slots,"trigger",{},()=>[i[0]||(i[0]=e.createTextVNode("Меню",-1))]),e.createVNode(y,{icon:e.unref(N),size:"sm",animation:"wiggle",class:"text-slate-400"},null,8,["icon"])]),l.value?(e.openBlock(),e.createElementBlock("div",ha,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)],512))}},ba={class:"bg-white border border-slate-100 rounded-3xl shadow-sm p-8 text-center space-y-3","data-component":"DXEmptyState"},xa={class:"text-base font-semibold text-slate-900"},ya={key:0,class:"text-sm text-slate-600"},wa=$({__name:"DXEmptyState",props:{icon:{type:Object,required:!0},title:{type:String,required:!0},description:{type:String,default:""},animated:{type:Boolean,default:!1}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",ba,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:e.normalizeClass(["w-10 h-10 text-slate-500 mx-auto",t.animated&&"animate-bounce-slow"])},null,8,["class"])),e.createElementVNode("p",xa,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",ya,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"action",{},void 0,!0)]))}},[["__scopeId","data-v-0d333d18"]]),Ba=["data-variant"],Ca={class:"flex items-center justify-between flex-shrink-0 mb-4 gap-4"},Va={class:"text-lg font-semibold tracking-tight text-slate-900 flex-1"},$a={key:0,class:"flex items-center gap-1 rounded-xl border border-slate-200 bg-slate-50 p-1"},Sa=["title","onClick"],Ea={class:"text-slate-700 overflow-y-auto flex-1 min-h-0"},Na={key:0,class:"flex justify-end gap-2 flex-shrink-0 mt-4 pt-4 border-t border-slate-200"},Da=$({__name:"DXModal",props:{open:{type:Boolean,default:!1},variant:{type:String,default:"modal"},width:{type:String,default:"md"},closable:{type:Boolean,default:!0},showModeSwitcher:{type:Boolean,default:!1}},emits:["close","opened","closed","update:variant"],setup(t,{emit:l}){const o=t,n=l,a=[{value:"modal",label:"Модальное окно",icon:ot},{value:"fullscreen",label:"На весь экран",icon:_e},{value:"sidebar-right",label:"Боковая панель",icon:st},{value:"half-right",label:"Половина справа",icon:tt}],r=()=>{o.closable&&o.variant!=="half-right"&&n("close")},s=u=>{n("update:variant",u)},i=e.computed(()=>{switch(o.variant){case"sidebar-right":case"half-right":return"slide-right";default:return"fade-scale"}}),d=e.computed(()=>{switch(o.variant){case"fullscreen":return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-center justify-center p-0";case"sidebar-right":return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-end justify-end";case"half-right":return"fixed top-[73px] bottom-0 right-0 z-20 flex w-1/2 pointer-events-none";default:return"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm flex items-center justify-center px-4 py-4 overflow-y-auto"}}),m=e.computed(()=>{const u="bg-white shadow-2xl flex flex-col";switch(o.variant){case"fullscreen":return`${u} w-full h-full p-8`;case"sidebar-right":return`${u} h-full w-full max-w-md p-6 border-l border-slate-200`;case"half-right":return`${u} h-full w-full p-6 border-l border-slate-200 pointer-events-auto`;default:return`${u} rounded-2xl w-full max-h-[90vh] p-6 my-auto ${c.value}`}}),c=e.computed(()=>{if(o.variant!=="modal")return"";switch(o.width){case"sm":return"max-w-md";case"lg":return"max-w-3xl";case"xl":return"max-w-5xl";default:return"max-w-xl"}});return(u,h)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:i.value,onAfterEnter:h[1]||(h[1]=g=>u.$emit("opened")),onAfterLeave:h[2]||(h[2]=g=>u.$emit("closed"))},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value),onClick:e.withModifiers(r,["self"]),"data-component":"DXModal","data-variant":t.variant},[e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.createElementVNode("div",Ca,[e.createElementVNode("h3",Va,[e.renderSlot(u.$slots,"title",{},()=>[h[3]||(h[3]=e.createTextVNode("Диалог",-1))],!0)]),t.showModeSwitcher?(e.openBlock(),e.createElementBlock("div",$a,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>e.createElementVNode("button",{key:g.value,type:"button",class:e.normalizeClass(["rounded-lg p-1.5 transition-colors",t.variant===g.value?"bg-white text-slate-900 shadow-sm":"text-slate-400 hover:text-slate-600 hover:bg-white/50"]),title:g.label,onClick:x=>s(g.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.icon),{class:"h-4 w-4"}))],10,Sa)),64))])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createBlock(M,{key:1,size:"md",variant:"default",onClick:h[0]||(h[0]=g=>u.$emit("close"))})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ea,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),u.$slots.actions?(e.openBlock(),e.createElementBlock("div",Na,[e.renderSlot(u.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)],2)],10,Ba)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}},[["__scopeId","data-v-d02ee1db"]]),za={"data-component":"DXSidebarMenuItem"},Xa={class:"flex items-center gap-3 flex-1"},Ia={key:1,class:"flex-1 text-sm font-medium text-left"},Aa={key:1},Ma={class:"flex items-center gap-3 flex-1"},La={key:1,class:"flex-1 text-sm font-medium text-left"},ja={class:"overflow-hidden"},_a={class:"pl-11 py-1 space-y-1"},q=$({__name:"DXSidebarMenuItem",props:{item:{type:Object,required:!0},active:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},emits:["click","child-click"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(!1),r=e.inject("hasRouter",!1),s=()=>{a.value=!a.value},i=e.computed(()=>o.item.to&&r?"router-link":o.item.href?"a":"button"),d=x=>x.to&&r?"router-link":x.href?"a":"button",m=e.computed(()=>["w-full flex items-center gap-3 px-4 py-2.5 rounded-xl transition-all duration-200 text-left",o.active?"bg-slate-900 text-white shadow-lg shadow-slate-900/20":"text-slate-600 hover:bg-slate-100 hover:text-slate-900",o.item.disabled&&"opacity-50 cursor-not-allowed",o.compact&&"justify-center px-2"]),c=e.computed(()=>["flex-shrink-0",o.active?"text-white":"text-slate-400"]),u=x=>["w-full flex items-center px-3 py-2 text-sm rounded-lg transition-colors text-left",x.active?"bg-slate-100 text-slate-900 font-medium":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"],h=x=>{if(o.item.disabled){x.preventDefault();return}n("click",o.item,x)},g=x=>{x.disabled||n("child-click",x)};return(x,V)=>(e.openBlock(),e.createElementBlock("div",za,[t.item.children?(e.openBlock(),e.createElementBlock("div",Aa,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(m.value),onClick:s},[e.createElementVNode("div",Ma,[t.item.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.item.icon,size:"md",animation:"scale",class:e.normalizeClass(c.value)},null,8,["icon","class"])):e.createCommentVNode("",!0),t.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",La,e.toDisplayString(t.item.label),1))]),t.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y,{key:0,icon:e.unref(N),size:"sm",animation:"none",class:e.normalizeClass(["text-slate-400 transition-transform duration-200",{"rotate-180":a.value}])},null,8,["icon","class"]))],2),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"opacity-0 max-h-0","enter-to-class":"opacity-100 max-h-96","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 max-h-96","leave-to-class":"opacity-0 max-h-0"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",ja,[e.createElementVNode("div",_a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.item.children,(w,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(w)),{key:b,to:w.to,href:w.href,class:e.normalizeClass(u(w)),onClick:f=>g(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label)+" ",1),w.badge?(e.openBlock(),e.createBlock(I,{key:0,variant:w.badgeVariant||"info",size:"sm",class:"ml-auto"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.badge),1)]),_:2},1032,["variant"])):e.createCommentVNode("",!0)]),_:2},1032,["to","href","class","onClick"]))),128))])],512),[[e.vShow,a.value&&!t.compact]])]),_:1})])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{key:0,to:t.item.to,href:t.item.href,class:e.normalizeClass(m.value),onClick:h},{default:e.withCtx(()=>[e.createElementVNode("div",Xa,[t.item.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.item.icon,size:"md",animation:"scale",class:e.normalizeClass(c.value)},null,8,["icon","class"])):e.createCommentVNode("",!0),t.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ia,e.toDisplayString(t.item.label),1))]),t.item.badge&&!t.compact?(e.openBlock(),e.createBlock(I,{key:0,variant:t.item.badgeVariant||"info",size:"sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.item.badge),1)]),_:1},8,["variant"])):e.createCommentVNode("",!0)]),_:1},8,["to","href","class"]))]))}},[["__scopeId","data-v-ddd1087c"]]),Ta=["data-compact"],Oa={key:0,class:"text-lg font-bold text-slate-900"},Za=["title"],Fa={key:1,class:"px-4 pb-4"},Pa={key:0,class:"px-4 py-2 text-xs font-semibold text-slate-400 uppercase tracking-wider"},Ra=$({__name:"DXSidebarMenu",props:{title:{type:String,default:""},sections:{type:Array,required:!0},activeItem:{type:String,default:""},compact:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!0},searchable:{type:Boolean,default:!1},width:{type:String,default:"md",validator:t=>["sm","md","lg","full"].includes(t)},fixed:{type:Boolean,default:!1},bordered:{type:Boolean,default:!0}},emits:["item-click","update:compact"],setup(t,{emit:l}){const o=t,n=l,a=e.ref(""),r=e.ref(o.compact),s=e.computed(()=>r.value);let i=!1;e.onMounted(()=>{try{i=!!(window!=null&&window.$router)||!1}catch{i=!1}}),e.provide("hasRouter",i);const d={sm:"w-64",md:"w-80",lg:"w-96",full:"w-full"},m=e.computed(()=>["flex flex-col bg-white transition-all duration-300",r.value?"w-20":d[o.width],o.fixed&&"fixed top-0 left-0 h-screen",o.bordered&&"border-r border-slate-200","shadow-sm"]),c=e.computed(()=>["flex items-center gap-2 border-b border-slate-200 flex-shrink-0",r.value?"justify-center px-2 py-3":"px-4 py-5"]),u=e.computed(()=>["flex-1 overflow-y-auto py-4 px-3 space-y-6",r.value&&"px-2"]),h=e.computed(()=>["px-4 py-4 border-t border-slate-200 flex-shrink-0",r.value&&"px-2"]),g=e.computed(()=>{if(!a.value.trim())return o.sections;const b=a.value.toLowerCase();return o.sections.map(f=>({...f,items:f.items.filter(k=>{var S,H;const C=(S=k.label)==null?void 0:S.toLowerCase().includes(b),B=(H=k.children)==null?void 0:H.some(cr=>{var G;return(G=cr.label)==null?void 0:G.toLowerCase().includes(b)});return C||B})})).filter(f=>f.items.length>0)}),x=b=>o.activeItem?b.to===o.activeItem||b.id===o.activeItem?!0:b.children?b.children.some(f=>f.to===o.activeItem||f.id===o.activeItem):!1:!1,V=()=>{r.value=!r.value,n("update:compact",r.value)},w=(b,f)=>{n("item-click",b,f)};return(b,f)=>(e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(m.value),"data-component":"DXSidebarMenu","data-compact":s.value},[b.$slots.header||t.title||t.collapsible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(c.value)},[s.value?e.createCommentVNode("",!0):e.renderSlot(b.$slots,"header",{key:0},()=>[t.title?(e.openBlock(),e.createElementBlock("h2",Oa,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(["p-2 rounded-lg hover:bg-slate-100 transition-colors",{"ml-auto":!s.value}]),onClick:V,title:s.value?"Развернуть":"Свернуть"},[e.createVNode(y,{icon:s.value?e.unref(Pe):e.unref(Fe),size:"md",animation:"scale",class:"text-slate-600"},null,8,["icon"])],10,Za)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.searchable&&!s.value?(e.openBlock(),e.createElementBlock("div",Fa,[e.createVNode(P,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=k=>a.value=k),placeholder:"Поиск...",size:"sm"},{prefix:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(Je),size:"sm",class:"text-slate-400"},null,8,["icon"])]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.createElementVNode("nav",{class:e.normalizeClass(u.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(k,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"space-y-1"},[k.title&&!s.value?(e.openBlock(),e.createElementBlock("div",Pa,e.toDisplayString(k.title),1)):e.createCommentVNode("",!0),k.title&&s.value?(e.openBlock(),e.createBlock(F,{key:1,spacing:"sm"})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.items,(B,S)=>(e.openBlock(),e.createBlock(q,{key:S,item:B,active:x(B),compact:s.value,onClick:w,onChildClick:w},null,8,["item","active","compact"]))),128))]))),128))],2),b.$slots.footer&&!s.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(h.value)},[e.renderSlot(b.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],10,Ta))}},[["__scopeId","data-v-0cacd444"]]),qa={class:"border border-slate-200 rounded-2xl overflow-hidden","data-component":"DXTable"},Ha={class:"min-w-full divide-y divide-slate-200"},Ga={class:"bg-slate-50"},Ua={class:"divide-y divide-slate-200 bg-white"},Ka={__name:"DXTable",props:{headers:{type:Array,default:()=>[]}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("div",qa,[e.createElementVNode("table",Ha,[e.createElementVNode("thead",Ga,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.headers,n=>(e.openBlock(),e.createElementBlock("th",{key:n,class:"px-4 py-3 text-left text-xs font-semibold text-slate-600 uppercase tracking-wide"},e.toDisplayString(n),1))),128))])]),e.createElementVNode("tbody",Ua,[e.renderSlot(l.$slots,"default")])])]))}},Ya={class:"flex flex-wrap gap-2","data-component":"DXTabs"},Wa=["onClick"],Ja={class:"flex items-center gap-2"},Qa={__name:"DXTabs",props:{modelValue:[String,Number],tabs:{type:Array,default:()=>[]},iconAnimation:{type:String,default:"wiggle"},animateActiveOnly:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t){const l=t,o=n=>n.iconAnimation?n.iconAnimation:l.animateActiveOnly?l.modelValue===n.value?l.iconAnimation:"none":l.iconAnimation;return(n,a)=>(e.openBlock(),e.createElementBlock("div",Ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass(["tab-btn px-3 py-2 rounded-xl text-sm font-semibold border transition",t.modelValue===r.value?"bg-slate-800 text-white border-slate-800":"border-slate-200 text-slate-700 hover:border-slate-300"]),onClick:s=>n.$emit("update:modelValue",r.value)},[e.createElementVNode("span",Ja,[r.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:r.icon,size:"sm",animation:o(r)},null,8,["icon","animation"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(r.label),1),r.count!==void 0?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["inline-flex items-center justify-center min-w-[24px] px-2 py-1 text-[11px] rounded-full",t.modelValue===r.value?"bg-white/20 text-white":"bg-slate-100 text-slate-700"])},e.toDisplayString(r.count),3)):e.createCommentVNode("",!0)])],10,Wa))),128))]))}},va={type:String,default:"md",validator:t=>["xs","sm","md","lg","xl"].includes(t)},er={type:String,default:"info",validator:t=>["info","success","warning","danger"].includes(t)},tr={type:String,default:"primary",validator:t=>["primary","ghost","danger","success","warning","outline"].includes(t)},lr={type:String,default:"none",validator:t=>["none","wiggle","scale","rotate"].includes(t)},or={type:Boolean,default:!1},nr={type:String,default:""},ar={type:String,default:""},rr={type:String,default:""},sr={type:String,default:""},_={favorite:{activeIcon:he,inactiveIcon:Ye,activeVariant:"danger",inactiveVariant:"ghost",iconAnimation:"scale"},bookmark:{activeIcon:pe,inactiveIcon:Oe,activeVariant:"warning",inactiveVariant:"ghost",iconAnimation:"scale"},star:{activeIcon:we,inactiveIcon:nt,activeVariant:"warning",inactiveVariant:"ghost",iconAnimation:"scale"},notifications:{activeIcon:ue,inactiveIcon:Te,activeVariant:"primary",inactiveVariant:"ghost",iconAnimation:"wiggle"},visibility:{activeIcon:A,inactiveIcon:ge,activeLabel:"Visible",inactiveLabel:"Hidden",activeVariant:"success",inactiveVariant:"ghost",iconAnimation:"scale"},lock:{activeIcon:ke,inactiveIcon:We,activeLabel:"Locked",inactiveLabel:"Unlocked",activeVariant:"danger",inactiveVariant:"success",iconAnimation:"rotate"},theme:{activeIcon:be,inactiveIcon:at,activeLabel:"Dark",inactiveLabel:"Light",activeVariant:"primary",inactiveVariant:"warning",iconAnimation:"rotate"},sound:{activeIcon:ye,inactiveIcon:lt,activeVariant:"danger",inactiveVariant:"primary",iconAnimation:"scale"},playPause:{activeIcon:xe,inactiveIcon:ve,activeLabel:"Pause",inactiveLabel:"Play",activeVariant:"warning",inactiveVariant:"success",iconAnimation:"scale"}};function ir(t){return _[t]||_.favorite}p.DXAccordion=ga,p.DXActionButtons=Tl,p.DXAlert=Rl,p.DXAvatar=Se,p.DXBadge=I,p.DXBlockquote=le,p.DXBox=me,p.DXBreadcrumb=Kl,p.DXButton=De,p.DXButtonGroup=Jl,p.DXCard=Ae,p.DXCheckbox=je,p.DXCloseButton=M,p.DXCode=v,p.DXComboBox=co,p.DXContainer=ae,p.DXCopyField=ho,p.DXDatePicker=$o,p.DXDivider=F,p.DXDropdown=ka,p.DXDropdownItem=gt,p.DXEmptyState=wa,p.DXFileUpload=Ro,p.DXFilterGroup=Ko,p.DXFlex=se,p.DXFormControl=an,p.DXGrid=re,p.DXHeading=U,p.DXIcon=y,p.DXInput=P,p.DXInputAddon=Vt,p.DXInputGroup=mn,p.DXInputMask=hn,p.DXLabel=J,p.DXList=oe,p.DXLoader=Nt,p.DXModal=Da,p.DXPagination=Cn,p.DXPasswordInput=Xn,p.DXProgress=Lt,p.DXRadio=Tt,p.DXRadioCard=Tn,p.DXRadioGroup=qn,p.DXSearchSelect=oa,p.DXSegmentedControl=ca,p.DXSelect=Yt,p.DXSidebarMenu=Ra,p.DXSidebarMenuItem=q,p.DXSkeleton=Wt,p.DXSlider=rl,p.DXSpacer=de,p.DXStack=ce,p.DXTable=Ka,p.DXTabs=Qa,p.DXTags=cl,p.DXText=K,p.DXTextarea=xl,p.DXToast=Vl,p.DXToggle=El,p.DXToggleButton=zl,p.DXTooltip=Xl,p.DXValidationIcon=j,p.TOGGLE_PRESETS=_,p.VARIANT_CONFIGS=E,p.buttonVariantProp=tr,p.disabledProp=or,p.errorProp=rr,p.helperProp=sr,p.iconAnimationProp=lr,p.labelProp=nr,p.placeholderProp=ar,p.sizeProp=va,p.useComponentSize=L,p.useTogglePreset=ir,p.useVariantClasses=yl,p.useVariantConfig=R,p.useVariantIcon=wl,p.variantProp=er,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});