mediacube-ui-v2 0.0.97 → 0.0.98

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.
@@ -24380,7 +24380,6 @@ const As = { class: "mc-side-bar-center" }, Ts = {
24380
24380
  "$z-index-toasted": "10003"
24381
24381
  }, kd = {
24382
24382
  install(t, e = {}) {
24383
- console.log("start of install method in mediacube-ui-v2");
24384
24383
  const o = {
24385
24384
  drawerComponents: {},
24386
24385
  modalComponents: {},
@@ -24388,7 +24387,7 @@ const As = { class: "mc-side-bar-center" }, Ts = {
24388
24387
  defaultAvatar: "/assets/img/no_user.png",
24389
24388
  router: null
24390
24389
  };
24391
- console.log("middle of install method in mediacube-ui-v2"), t.config.globalProperties.$dsOptions = { ...o, ...e }, t.provide("dsOptions", { ...o, ...e }), console.log("end of install method in mediacube-ui-v2 options", e), console.log("end of install method in mediacube-ui-v2 process", process);
24390
+ t.config.globalProperties.$dsOptions = { ...o, ...e }, t.provide("dsOptions", { ...o, ...e });
24392
24391
  }
24393
24392
  };
24394
24393
  export {
@@ -4,4 +4,4 @@ Check and add to app.use(MediacubeUI, { modalComponents: {...} })`);V4();const n
4
4
  * vue-router v4.4.5
5
5
  * (c) 2024 Eduardo San Martin Morote
6
6
  * @license MIT
7
- */var Wt;(function(o){o.pop="pop",o.push="push"})(Wt||(Wt={}));var Gt;(function(o){o.back="back",o.forward="forward",o.unknown=""})(Gt||(Gt={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Xt;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Xt||(Xt={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":"");const ui=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ci(o){return e.inject(ui)}const pi={class:"mc-side-bar-center"},hi={key:1,class:"mc-side-bar-center__content"},Kt=e.defineComponent({__name:"McSideBarCenter",props:{title:{type:String,default:""},menuMain:{type:Array,default:()=>[]},counts:{type:Object,default:()=>({})},chatraConfig:{type:Object,default:()=>({})},compact:{type:Boolean,default:!1}},emits:["open-side-bar","handlerChatraClick"],setup(o,{emit:t}){const n=Ci(),r=ce(),l=e.inject("provideData",{}),a=t,i=o,s=e.ref(!0),c=e.ref([]),C=e.computed(()=>l.currentThemeConfig||Se[u.SidebarTheme.Black]);e.onBeforeMount(()=>{h()}),e.watch(()=>i.menuMain,()=>{h()},{deep:!0}),e.watch(()=>i.compact,()=>{h()}),e.watch(()=>n,(m,k)=>{if(s.value=!0,k.path!==m.path){const f=c.value.find(g=>{var w;return g.to===m.path||((w=g.menu)==null?void 0:w.find(S=>S.to===m.path))});f!=null&&f.menu&&!i.compact&&(f.open=!0)}e.nextTick(()=>{c.value.forEach(f=>{const g=f.to===m.path,w=f.menu&&f.menu.some(S=>{var b,_;return((b=S.to)==null?void 0:b.match(m==null?void 0:m.path))||((_=m.path)==null?void 0:_.match(S.to))});g||w||(f.open=!1)}),s.value=!1})});const d=m=>({open:m.open,active:m.active(),"with-submenu":m.menu&&m.menu.length,[`mc-side-bar--${C.value.mode||"black"}__button`]:!0,"purple-hover":C.value.mainMenuLinks.variable==="black-flat",[`mc-button--variation-${C.value.mainMenuLinks.variable}`]:!!C.value.mainMenuLinks.variable,"mc-side-bar--black__button mc-button nuxt-link-active":m.menu&&m.menu.length&&!m.open&&m.active()}),p=()=>{i.compact&&a("open-side-bar")},h=()=>{s.value=!0,c.value=i.menuMain.map(m=>{const k=()=>{var f;return m.menu&&m.menu.some(g=>{var w;return(w=n==null?void 0:n.path)==null?void 0:w.match(g.to)})||!!((f=n==null?void 0:n.path)!=null&&f.match(m.to))};return{id:r.timestamp(5),...m,active:k,indicator:()=>m.menu&&m.menu.some(f=>{var g;return!!((g=i.counts)!=null&&g[f.count_key])}),open:!i.compact&&k()}}),s.value=!1};return(m,k)=>(e.openBlock(),e.createElementBlock("div",pi,[o.title?(e.openBlock(),e.createBlock(e.unref(h1),{key:0,class:"mc-side-bar-center__title",color:o.compact?"transparent":"dark-gray"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1},8,["color"])):e.createCommentVNode("",!0),c.value&&c.value.length?e.withDirectives((e.openBlock(),e.createElementBlock("div",hi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:e.normalizeClass([{"item-active":f.active()},"mc-side-bar-center__content-item item"])},[e.createElementVNode("div",{class:e.normalizeClass(["item__head",d(f)]),onClick:p},[e.createVNode(e.unref(Ke),{info:f.menu&&f.menu.length?null:f.info||i.counts[f.count_key]||null,href:f.href,to:f.to,icon:f.icon,"icon-color":f.iconColor,title:f.name,compact:o.compact,"is-active":f.active(),"with-submenu":f.menu&&!!f.menu.length,"with-indicator":f.indicator()&&!f.open,"with-tooltip":"",class:"item__head-button--no-hover"},null,8,["info","href","to","icon","icon-color","title","compact","is-active","with-submenu","with-indicator"]),f.menu&&f.menu.length&&!o.compact?(e.openBlock(),e.createBlock(e.unref(S1),{key:0,variation:f.active()?"white-link":"gray-link",size:e.unref(u.ButtonSize).MCompact,class:e.normalizeClass(["item__head-arrow",{rotate:f.active()?f.active()&&f.open:f.open}]),onClick:g=>f.open=!f.open},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:"arrow_forward"})]),_:2},1032,["variation","size","class","onClick"])):e.createCommentVNode("",!0)],2),f.menu&&f.menu.length?(e.openBlock(),e.createBlock(l5,{key:0,class:"item__submenu",active:f.active()?f.active()&&f.open:f.open},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.menu,(g,w)=>(e.openBlock(),e.createBlock(e.unref(Ke),{key:w,info:o.counts[g.count_key],href:g.href,to:g.to,icon:g.icon,"icon-color":g.iconColor,title:g.name,compact:o.compact,"with-tooltip":""},null,8,["info","href","to","icon","icon-color","title","compact"]))),128))]),_:2},1032,["active"])):e.createCommentVNode("",!0)],2))),128))],512)),[[e.vShow,!s.value]]):e.createCommentVNode("",!0),o.chatraConfig.title?(e.openBlock(),e.createBlock(e.unref(r5),{key:2,color:"dark-gray","indent-top":"150","indent-bottom":"150","indent-left":o.compact?"50":"100","indent-right":o.compact?"50":"100"},null,8,["indent-left","indent-right"])):e.createCommentVNode("",!0),o.chatraConfig.title?(e.openBlock(),e.createBlock(e.unref(Ke),{key:3,icon:"chat_messages",title:o.chatraConfig.title,compact:o.compact,"with-tooltip":"",onClick:k[0]||(k[0]=f=>a("handlerChatraClick"))},null,8,["title","compact"])):e.createCommentVNode("",!0)]))}}),mi=["src","alt"],fi=["src","alt"],ki=["src"],Qt=e.defineComponent({__name:"McSideBarTop",props:{menuApps:{type:Array,default:()=>[]},logoTitle:{type:String,default:"Dashboard"},logoTitleVariation:{type:String,default:u.TitleVariations.Subtitle},logoSrc:{type:String,default:""},logoIcon:{type:String,default:""},dropdownPosition:{type:String,default:u.DropdownPositions.Left},compact:{type:Boolean,default:!1}},setup(o){const t=d2(),n=e.inject("provideData",{}),r=o,l=e.ref(!1),a=e.computed(()=>n.currentThemeConfig||Se[u.SidebarTheme.Black]),i=e.computed(()=>t.isEmpty(r.menuApps)?null:r.menuApps.filter(s=>!Object.prototype.hasOwnProperty.call(s,"isVisible")||s.isVisible));return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mc-side-bar-top",`mc-side-bar-top--theme-${a.value.dropdownActivator}`])},[i.value?(e.openBlock(),e.createBlock(e.unref(x0),{key:1,modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=C=>l.value=C),position:o.dropdownPosition,items:i.value},{activator:e.withCtx(()=>[e.createVNode(e.unref(X2),null,{left:e.withCtx(()=>[o.logoSrc?(e.openBlock(),e.createElementBlock("img",{key:0,class:"mc-side-bar-top__img",src:o.logoSrc,width:"24",height:"24",alt:o.logoTitle},null,8,fi)):o.logoIcon?(e.openBlock(),e.createBlock(e.unref(M1),{key:1,class:"rotate",name:o.logoIcon},null,8,["name"])):e.createCommentVNode("",!0)]),top:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:`${a.value.dropdownActivator}-link`,size:o.compact?e.unref(u.ButtonSize).LCompact:e.unref(u.ButtonSize).L,class:"mc-side-bar-top__activator-btn"},{"icon-append":e.withCtx(()=>[e.createVNode(e.unref(M1),{class:"rotate",name:"arrow_drop_down",color:"gray"})]),default:e.withCtx(()=>[o.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(h1),{key:0,weight:e.unref(u.Weights).SemiBold,variation:o.logoTitleVariation},{"icon-append":e.withCtx(()=>[e.renderSlot(s.$slots,"title-append")]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logoTitle)+" ",1)]),_:3},8,["weight","variation"]))]),_:3},8,["variation","size"])]),_:3})]),item:e.withCtx(({item:C})=>[e.createVNode(e.unref(S1),{"full-width":"","text-align":e.unref(u.HorizontalAlignment).Left,variation:"black-flat",href:C.href,to:C.to,target:C.target,"is-active":C.isActive,exact:C.exact},{"icon-prepend":e.withCtx(()=>[C.icon?(e.openBlock(),e.createBlock(e.unref(M1),{key:0,name:C.icon},null,8,["name"])):C.image?(e.openBlock(),e.createElementBlock("img",{key:1,src:C.image,width:"24",height:"24",alt:"service image"},null,8,ki)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C.name),1)]),_:2},1032,["text-align","href","to","target","is-active","exact"])]),_:3},8,["modelValue","position","items"])):(e.openBlock(),e.createBlock(e.unref(X2),{key:0},e.createSlots({top:e.withCtx(()=>[o.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(h1),{key:0,weight:e.unref(u.Weights).SemiBold,variation:o.logoTitleVariation},{"icon-append":e.withCtx(()=>[e.renderSlot(s.$slots,"title-append")]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logoTitle)+" ",1)]),_:3},8,["weight","variation"]))]),_:2},[o.logoSrc?{name:"left",fn:e.withCtx(()=>[e.createElementVNode("img",{class:"mc-side-bar-top__img",src:o.logoSrc,width:"24",height:"24",alt:o.logoTitle},null,8,mi)]),key:"0"}:void 0]),1024))],2))}}),yi=["id","aria-hidden","href","to"],gi=e.defineComponent({__name:"McTab",props:{id:{type:String,default:""},name:{type:String,required:!0,default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},appendCount:{type:Number,default:null},appendCountColor:{type:String,default:"black"},isDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},iconPrepend:{type:String,default:""},iconAppend:{type:String,default:""},iconPrependColor:{type:String,default:""},iconAppendColor:{type:String,default:""},to:{type:Object,default:null},href:{type:String,default:""}},setup(o){const t=e.inject("selfRegisterTabMethod",()=>{}),n=e.useAttrs(),r=o,l=e.ref(!1),a=e.ref(!0),i=e.computed(()=>r.id?r.id:r.name.toLowerCase().replace(/ /g,"-")),s=e.computed(()=>r.isDisabled?"#":`#${i.value}`),c=e.computed(()=>!!r.appendCount||r.appendCount===0),C=e.computed(()=>`--mc-tab-append-count-color: ${V1[r.appendCountColor]}`),d=e.computed(()=>[r.prefix,r.name,r.suffix].filter(Boolean).join("")),p=e.computed(()=>r.visible?d.value:"");e.onMounted(()=>{if(t){const k={isActive:l.value,isVisible:a.value,computedId:i.value,hash:s.value,hasAppendCount:c.value,appendCountStyles:C.value,header:p.value,id:r.id,name:r.name,to:r.to,href:r.href,iconAppendColor:r.iconAppendColor,iconPrependColor:r.iconPrependColor,iconAppend:r.iconAppend,iconPrepend:r.iconPrepend,visible:r.visible,isDisabled:r.isDisabled,appendCountColor:r.appendCountColor,appendCount:r.appendCount,suffix:r.suffix,prefix:r.prefix,showTab:h,hideTab:m,onClick:n.onClick,...n};t(k)}});const h=()=>{l.value=!0},m=()=>{l.value=!1};return(k,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("section",{id:o.id,"aria-hidden":!l.value,class:"tabs-component-panel",role:"tabpanel",href:o.href,to:o.to},[o.visible?e.renderSlot(k.$slots,"default",{key:0}):e.createCommentVNode("",!0)],8,yi)),[[e.vShow,l.value]])}}),Jt=e.defineComponent({__name:"McWrapScroll",props:{wrap:{type:Boolean,default:!1},gutterY:{type:Number,default:0},gutterX:{type:Number,default:0},justify:{type:String,default:u.ColumnJustifyAlignment.Left},scrollable:{type:Boolean,default:!0},gutterBottom:{type:String,default:null},hasScroll:{type:Boolean,default:!1},withBlur:{type:Boolean,default:!1},moreSpace:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},scrollSpeed:{type:Number,default:1},tagName:{type:String,default:"div"}},emits:["content-scrolled"],setup(o,{emit:t}){const n=t,r=o,l=e.reactive({scroll_pos:0,start_client_pos:0,distance:0,is_drag:!1,mouse_is_down:!1}),a=e.ref(!1),i=e.ref(!1),s=e.ref(null),c=e.ref(null),C=e.computed(()=>({wrap:r.wrap,align:u.ColumnAlignment.Top,gutterY:r.gutterY,gutterX:r.gutterX,justify:r.justify})),d=e.computed(()=>({"mc-wrap-scroll":!0,"mc-wrap-scroll--scrollable":r.scrollable,"mc-wrap-scroll--no-scrollbar":!r.hasScroll,"mc-wrap-scroll--more-space":r.moreSpace})),p=e.computed(()=>({"--mc-wrap-scroll-bottom":s2[r.gutterBottom]})),h=e.computed(()=>({"mc-wrap-scroll__wrapper--left-blur":r.withBlur&&a.value,"mc-wrap-scroll__wrapper--right-blur":r.withBlur&&i.value,"mc-wrap-scroll__wrapper--more-space":r.moreSpace}));e.onMounted(()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",S),m(),setTimeout(()=>k(),10)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",S),c.value&&c.value.removeEventListener("scroll",k),s.value&&s.value.disconnect()});const m=()=>{c.value&&(c.value.addEventListener("scroll",k),r.withBlur&&f())},k=()=>{var b;if(n("content-scrolled"),!!r.withBlur&&c.value)try{const _=Math.ceil((b=c.value.getBoundingClientRect())==null?void 0:b.width),$=Math.ceil(c.value.scrollWidth),L=Math.ceil(c.value.scrollLeft);a.value=r.rtl?$>_&&$-10>Math.abs(L)+_:!!L,i.value=r.rtl?Math.abs(L)>1:$>_&&$>Math.abs(L)+_}catch{a.value=!1,i.value=!1}},f=()=>{if(c.value)try{s.value=new MutationObserver(k);const b={attributes:!0,childList:!0,subtree:!0};s.value.observe(c.value,b)}catch{console.error("Error when try to create observer in McWrapScroll")}else console.error("Error when try to create observer in McWrapScroll")},g=b=>{if(c.value){const _=l;if(_.start_client_pos=b.clientX,_.mouse_is_down=!0,_.scroll_pos=c.value.scrollLeft,window.getSelection){let $=window.getSelection();$==null||$.removeAllRanges()}}},w=b=>{if(c.value){const _=l;if(!_.mouse_is_down)return;_.distance=b.clientX-_.start_client_pos,Math.abs(_.distance)>2&&!_.is_drag&&(_.is_drag=!0),_.is_drag&&c.value.scrollTo({left:_.scroll_pos-_.distance*r.scrollSpeed})}},S=()=>{l.is_drag&&(l.is_drag=!1),l.mouse_is_down=!1};return(b,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tagName),{class:e.normalizeClass([h.value,"mc-wrap-scroll__wrapper"])},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"scrollContainer",ref:c,class:e.normalizeClass(d.value),style:e.normalizeStyle(p.value),onMousedown:g},[e.createVNode(e.unref(Xe),e.mergeProps(C.value,{style:{"pointer-events":l.is_drag?"none":"auto"},class:"mc-wrap-scroll__row"}),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},16,["style"])],38)]),_:3},8,["class"]))}}),bi={class:"tabs-component"},Li=["aria-controls","aria-selected","href","onClick"],Mi={class:"tabs-component-tab__tab-name"},wi={class:"tabs-component-panels"},Vi=e.defineComponent({__name:"McTabs",props:{modelValue:{type:String,default:null},tabVariation:{type:String,default:u.TabVariations.Captions},color:{type:String,default:"black"},accentColor:{type:String,default:"purple"},uppercase:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1}},emits:["update:modelValue","tab-changed","clicked"],setup(o,{emit:t}){const n=t,r=e.inject("dsOptions",{}),l=o,a=e.ref([]),i=e.computed(()=>({"mc-tabs":!0,[`mc-tabs--tab-variation-${l.tabVariation}`]:!!l.tabVariation,"mc-tabs--uppercase":!!l.uppercase,"mc-tabs--sticky":!!l.sticky})),s=e.computed(()=>({"--mc-tabs-color":V1[l.color],"--mc-tabs-accent-color":V1[l.accentColor]})),c=e.computed({get(){return l.modelValue},set(g){n("update:modelValue",g)}}),C=e.computed(()=>a.value.filter(g=>g.visible&&!g.isDisabled));e.onMounted(()=>{h()}),e.onUpdated(()=>{setTimeout(()=>{k()},10)});const d=g=>{a.value.forEach(w=>{w.isActive=w.computedId===g,w.isActive?w.showTab():w.hideTab()})},p=g=>{a.value.push(g)},h=()=>{let[g]=C.value;const w=a.value.find(S=>S.computedId===l.modelValue);w&&!w.isDisabled&&(g=w),g&&f(g)},m=g=>{n("tab-changed",{tab:g})},k=()=>{var S;if(l.loading)return;const g=(S=a.value)==null?void 0:S.find(b=>b.isActive);if(!(g!=null&&g.isDisabled))return;const[w]=C.value;f(w)},f=(g,w)=>{if(w==null||w.preventDefault(),!g.isDisabled){if(g.onClick&&typeof g.onClick=="function")return g.onClick(g);if(g.href){window.open(g.href,"_blank");return}if(g.to&&r.router){r.router.push(g.to);return}m(g),d(g.computedId),c.value=g.computedId}};return e.watch(()=>l.loading,(g,w)=>{!g&&w&&e.nextTick(()=>{h()})}),e.provide("selfRegisterTabMethod",p),(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),style:e.normalizeStyle(s.value)},[e.createElementVNode("div",bi,[e.createVNode(Jt,{"tag-name":"ul",role:"tablist",scrollable:"",class:"tabs-component-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:b,class:e.normalizeClass([{"is-active":S.isActive,"is-disabled":S.isDisabled},"tabs-component-tab"]),role:"presentation"},[e.createElementVNode("a",{"aria-controls":S.hash,"aria-selected":S.isActive,href:S.href||S.hash||"javascript:void(0)",class:"tabs-component-tab-a",role:"tab",onClick:_=>f(S,_)},[e.createElementVNode("span",Mi,[S.iconPrepend?(e.openBlock(),e.createBlock(e.unref(M1),{key:0,name:S.iconPrepend,color:S.iconPrependColor},null,8,["name","color"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(S.header),1),S.iconAppend?(e.openBlock(),e.createBlock(e.unref(M1),{key:1,name:S.iconAppend,color:S.iconAppendColor},null,8,["name","color"])):e.createCommentVNode("",!0)])],8,Li)],2)),[[e.vShow,S.isVisible]])),128))]),_:1}),e.createElementVNode("div",wi,[e.renderSlot(g.$slots,"default")])])],6))}}),e4=e.defineComponent({__name:"McDrawer",props:{modelValue:{type:Boolean,default:!1},duration:{type:Number,default:300},position:{type:String,default:u.DrawerPositions.Right},closeVisible:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},iconClose:{type:String,default:"close"},width:{type:Number,default:300}},emits:["toggle","open","close","update:modelValue"],setup(o,{emit:t}){const n=t,r=o,l=e.ref(0),a=e.ref(100),i=e.computed(()=>r.position===u.DrawerPositions.Right),s=e.computed(()=>i.value?100:-100),c=e.computed(()=>({[i.value?u.DrawerPositions.Right:u.DrawerPositions.Left]:0})),C=e.ref(l.value),d=e.ref(s.value),p=o9(d,{duration:r.duration,transition:e9.easeOutQuart}),h=o9(C,{duration:r.duration,transition:e9.easeOutQuart}),m=e.computed(()=>({visibility:h.value?"visible":"hidden",zIndex:h.value?1:-1})),k=e.computed(()=>({transform:`translateX(${p.value}%)`,width:`${r.width}px`,[r.position]:0,...c.value})),f=e.computed(()=>({"mc-drawer__overlay":!0,"mc-drawer__overlay--hidden":!r.showOverlay})),g=()=>{C.value=a.value,d.value=C.value===0?100:0,r.modelValue||(n("update:modelValue",!0),n("open"))},w=()=>{C.value=l.value,d.value=C.value===0?i.value?100:-100:0,r.modelValue&&(n("update:modelValue",!1),n("close"))},S=()=>{r.showOverlay&&w()};return e.watch(()=>r.modelValue,b=>{b?g():w()},{immediate:!0}),(b,_)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-drawer__wrapper",style:e.normalizeStyle(m.value)},[e.createElementVNode("div",{class:e.normalizeClass(f.value),style:e.normalizeStyle(m.value),onClick:e.withModifiers(S,["stop"])},null,6),e.createElementVNode("div",{class:"mc-drawer",style:e.normalizeStyle(k.value),onClick:_[0]||(_[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(b.$slots,"default"),o.closeVisible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"mc-drawer__btn-close",onClick:e.withModifiers(w,["prevent"])},[e.createVNode(e.unref(M1),{class:"mc-drawer__icon-close",name:o.iconClose},null,8,["name"]),e.createVNode(e.unref(M1),{class:"mc-drawer__icon-close--small",name:o.iconClose,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],4)],4))}}),vi={class:"mc-drawer-content-template"},_i={key:0,class:"mc-drawer-content-template__header"},Hi={class:"mc-drawer-content-template__body"},Si={class:"mc-drawer-content-template__body-inner"},Bi={key:1,class:"mc-drawer-content-template__footer"},xi=e.defineComponent({__name:"McDrawerContentTemplate",props:{title:{type:String,default:""},titleEllipsis:{type:Boolean,default:!1}},setup(o){const t=o;return(n,r)=>(e.openBlock(),e.createElementBlock("div",vi,[n.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",_i,[e.renderSlot(n.$slots,"title",{},()=>[e.createVNode(e.unref(h1),{variation:e.unref(u.TitleVariations).Subtitle,ellipsis:t.titleEllipsis,weight:e.unref(u.Weights).SemiBold},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["variation","ellipsis","weight"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hi,[r[0]||(r[0]=e.createElementVNode("div",{class:"mc-drawer-content-template__tint"},null,-1)),e.createElementVNode("div",Si,[e.renderSlot(n.$slots,"default")])]),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]))}}),Di={key:0,class:"mc-modal__wrapper"},Zi={key:0,class:"mc-modal__header"},Ei={class:"mc-modal__title"},Ti={class:"mc-modal__control"},$i=e.defineComponent({__name:"McModal",props:{modelValue:{type:Boolean,default:!1},name:{type:String},maxWidth:{type:Number,default:510},minWidth:{type:Number,default:480},duration:{type:Number,default:200},closeVisible:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},clickBackdropToClose:{type:Boolean,default:!0},arrowVisible:{type:Boolean,default:!1},secondaryModal:{type:Boolean,default:!1},scrollableContent:{type:Boolean,default:!0},separators:{type:Boolean,default:!0},headerAlign:{type:String,default:"center"},topPadding:{type:Boolean,default:!1},variation:{type:String,default:"default"}},emits:["before-open","before-close","opened","closed","back","update:modelValue"],setup(o,{emit:t}){const n=t,r=o,l=e.ref(0),a=o9(l,{duration:r.duration||300,transition:e9.easeOutQuart}),i=e.ref(null),s=e.ref(null),c=e.reactive({scrolled_top:!1,scrolled_bottom:!1,resize_observer:{},small_indents:!1,can_shorten_modal:!1,modal_params:{},indent:{regular:"400",small:"150"},footer:{button:{regular:"600",small:"500"}},header:{title:{line_height:{regular:"300",small:"250"}}}}),C=e.computed(()=>({"mc-modal--arrow-visible":r.arrowVisible,"mc-modal--scrolled-top":c.scrolled_top,"mc-modal--scrolled-bottom":c.scrolled_bottom,"mc-modal--scrollable":r.scrollableContent,"mc-modal--top-padding":r.topPadding,"mc-modal--small-indents":c.small_indents,[`mc-modal--variation-${r.variation}`]:!!r.variation,[`mc-modal--header-align-${r.headerAlign}`]:(r.closeVisible||r.arrowVisible)&&!!r.headerAlign})),d=e.computed(()=>({"--mc-modal-padding":s2[c.indent.regular],"--mc-modal-padding-small":s2[c.indent.small],"--mc-modal-header-line-height":t0[c.header.title.line_height.regular],"--mc-modal-header-line-height-small":t0[c.header.title.line_height.small],"--mc-modal-button-height":_2[c.footer.button.regular],"--mc-modal-button-height-small":_2[c.footer.button.small],"--mc-modal-max-width":`${r.maxWidth+24}px`,"--mc-modal-min-width":`${r.minWidth-24}px`,"--mc-modal-state-number":a.value})),p=($=!0)=>{$||(c.scrolled_top=!1,c.scrolled_bottom=!1,c.small_indents=!1),setTimeout(()=>{if(i.value){const{scrollTop:L,scrollHeight:x,clientHeight:Z}=i.value,z=2;c.scrolled_top=L>z,c.small_indents=c.scrolled_top&&c.can_shorten_modal,c.scrolled_bottom=L+Z<x-z}},$?0:300)},h=()=>{n("before-close"),i.value&&(c.resize_observer&&c.resize_observer.unobserve(i.value),i.value.removeEventListener("scroll",()=>p()))},m=()=>{r.separators&&(f(),i.value&&(i.value.addEventListener("scroll",()=>p(),{passive:!0}),c.resize_observer=new ResizeObserver(()=>w()),c.resize_observer.observe(i.value)),p()),n("opened")},k=$=>{n("back",$)},f=()=>{try{s.value&&Object.keys(d.value).forEach($=>{var x;const L=parseInt((x=getComputedStyle(s.value))==null?void 0:x.getPropertyValue($));L&&(c.modal_params[$]=L)})}catch($){console.error($)}},g=()=>{var z,B,F,N,J,v,A,D,Y;const $=(+((z=c.modal_params)==null?void 0:z["--mc-modal-padding"])-+((B=c.modal_params)==null?void 0:B["--mc-modal-padding-small"]))*3+ +((F=c.modal_params)==null?void 0:F["--mc-modal-padding-small"]),L=+((N=c.modal_params)==null?void 0:N["--mc-modal-header-line-height"])-+((J=c.modal_params)==null?void 0:J["--mc-modal-header-line-height-small"]),x=+((v=c.modal_params)==null?void 0:v["--mc-modal-button-height"])-+((A=c.modal_params)==null?void 0:A["--mc-modal-button-height-small"]),Z=$+L+x;!c.small_indents&&i.value&&(c.can_shorten_modal=((D=i.value)==null?void 0:D.scrollHeight)-((Y=i.value)==null?void 0:Y.clientHeight)>Z)},w=()=>{g(),p()},S=()=>{l.value=1,n("before-open"),n("update:modelValue",!0),e.nextTick(()=>m())},b=()=>{l.value=0,setTimeout(()=>{h(),n("update:modelValue",!1),n("closed")},r.duration||300)},_=()=>{r.clickBackdropToClose&&b()};return e.watch(()=>r.modelValue,$=>{$?S():b()},{immediate:!0}),($,L)=>r.modelValue?(e.openBlock(),e.createElementBlock("div",Di,[r.showOverlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mc-modal__overlay",onClick:e.withModifiers(_,["stop"])})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["mc-modal",C.value]),style:e.normalizeStyle(d.value)},[e.createElementVNode("div",{ref_key:"modalInner",ref:s,class:"mc-modal__inner"},[$.$slots.title?(e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("div",Ei,[e.renderSlot($.$slots,"title")])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"mcModalBody",ref:i,class:"mc-modal__body"},[e.renderSlot($.$slots,"default")],512),e.createElementVNode("div",Ti,[e.renderSlot($.$slots,"footer"),L[0]||(L[0]=e.createElementVNode("div",{id:"mcModalFooter"},null,-1))])],512),o.arrowVisible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"mc-modal__btn-back",onClick:e.withModifiers(k,["prevent"])},[e.createVNode(e.unref(M1),{name:"arrow_leftward",class:"mc-modal__icon-back"})])):e.createCommentVNode("",!0),o.closeVisible?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"mc-modal__btn-close",onClick:e.withModifiers(b,["prevent"])},[e.createVNode(e.unref(M1),{class:"mc-modal__icon-close",width:"24",height:"24",name:"close"})])):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0)}}),T2={defaultHeaderHeight:40,defaultRowHeight:40,defaultFooterRowHeight:40,defaultTableFirstColWidth:251},Ai={class:"mc-table__table"},Fi={class:"mc-table__table_header"},zi={class:"mc-table__table_header-row"},Ii={class:"mc-table__table_header-cell_content"},Ni={class:"mc-table__table_header-cell_content-left"},Oi={class:"mc-table__table_header-cell_content-right"},Pi={class:"mc-table__table_body"},ji=["onClick"],Ri={class:"mc-table__table_body-cell_content"},Yi={class:"mc-table__table_body-cell_content-left"},Ui={key:0,class:"mc-table__table_body-cell_content-right"},qi={key:0,class:"mc-table__table_body-row mc-table__table_body-row--fake"},Wi={class:"mc-table__table_body-cell_content"},Gi={key:0,class:"mc-table__table_body-cell_content-right"},Xi={key:0,class:"mc-table__table_footer"},Ki={class:"mc-table__table_footer-row"},Qi=e.defineComponent({__name:"McTable",props:{columns:{type:Array,required:!0,default:()=>[]},data:{type:Array,required:!0,default:()=>[]},totals:{type:Object,default:()=>({})},sort:{type:Object,default:()=>({})},fixedFirstColumn:{type:Boolean,default:!0},fixedLastColumn:{type:Boolean,default:!1},hasLoadMore:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},headerRowHeight:{type:Number,default:T2.defaultHeaderHeight},rowHeight:{type:Number,default:T2.defaultRowHeight},footerRowHeight:{type:Number,default:T2.defaultFooterRowHeight},skeletonLoading:{type:Boolean,default:!1},bottomLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholders:{type:Object,default:()=>({})},noDataIcon:{type:String,default:null},noDataImg:{type:String,default:Dt},toTableCardProps:{type:Object,default:()=>({})}},emits:["loading","row-click","sort","table-card-opened"],setup(o,{emit:t}){const n=e.inject("dsOptions",{}),r={no_data:"No data",loading:"Loading...",all_loaded:"All loaded",total:"Total"},l=t,a=d2(),i=e.useSlots(),s=o,c=e.ref({state:!1}),C=e.ref(null),d=e.computed(()=>!a.isEmpty(s.data)),p=e.computed(()=>!a.isEmpty(s.totals)),h=e.computed(()=>s.fixedFirstColumn||s.fixedLastColumn),m=e.reactive(a.deepMerge(r,s.placeholders)),k=e.reactive({firstColHasShadow:!1,lastColHasShadow:!1}),f=e.computed(()=>({"mc-table":!0,"mc-table--card-opened":c.value.state})),g=e.computed(()=>{const[F]=s.columns;return(c.value.state?[F]:s.columns).map((N,J)=>{const v=s.fixedFirstColumn&&J===0,A=s.fixedLastColumn&&J===s.columns.length-1;return{...N,fixedFirst:v,fixedLast:A,style:{...N.width?{"--mc-table-cell-width":`${N.width}px`,"--mc-table-cell-max-width":`${N.width}px`,"--mc-table-cell-min-width":`${N.width}px`}:{"--mc-table-cell-min-width":N.minWidth&&`${N.minWidth}px`,"--mc-table-cell-width":"100%"}}}})}),w=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_header-cell":!0,"mc-table__table_header-cell--fixed-first":F.fixedFirst,"mc-table__table_header-cell--fixed-last":F.fixedLast,"mc-table__table_header-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_header-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),S=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_body-cell":!0,"mc-table__table_body-cell--fixed-first":F.fixedFirst,"mc-table__table_body-cell--fixed-last":F.fixedLast,"mc-table__table_body-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_body-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),b=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_footer-cell":!0,"mc-table__table_footer-cell--fixed-first":F.fixedFirst,"mc-table__table_footer-cell--fixed-last":F.fixedLast,"mc-table__table_footer-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_footer-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),_=e.computed(()=>({"--mc-table-height":typeof s.height=="number"?`${s.height}px`:s.height,"--mc-table-header-row-height":a.isNumber(s.headerRowHeight)?`${s.headerRowHeight}px`:"40px","--mc-table-row-height":a.isNumber(s.rowHeight)?`${s.rowHeight}px`:"40px","--mc-table-footer-row-height":a.isNumber(s.footerRowHeight)?`${s.footerRowHeight}px`:"40px"})),$=e.computed(()=>({tableColumns:s.columns,tableData:s.data,tableTotals:s.totals,tableSort:s.sort,tableHeaderRowHeight:s.headerRowHeight,tableFooterRowHeight:s.footerRowHeight,tableFixedFirstColumn:s.fixedFirstColumn,tableCardProps:s.toTableCardProps}));e.onMounted(()=>{x()}),e.onBeforeUnmount(()=>{Z()});const L=H5(()=>{if(C.value){const{scrollLeft:F,scrollWidth:N,clientWidth:J}=C.value,v=s.fixedFirstColumn&&F>0,A=s.fixedLastColumn&&F+J<N;k.firstColHasShadow!==v&&(k.firstColHasShadow=v),k.lastColHasShadow!==A&&(k.lastColHasShadow=A)}},5),x=()=>{h.value&&C.value&&(L(),C.value.addEventListener("scroll",L))},Z=()=>{h.value&&C.value&&C.value.removeEventListener("scroll",L)},z=F=>{l("row-click",F)},B=F=>{c.value=F,l("table-card-opened",F)};return(F,N)=>{const J=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",{class:"mc-table__container",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",{ref_key:"mcTable",ref:C,class:e.normalizeClass(f.value)},[e.createElementVNode("div",Ai,[e.createElementVNode("div",Fi,[e.createElementVNode("div",zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.createElementVNode("div",Ii,[e.createElementVNode("div",Ni,[v.sortable?(e.openBlock(),e.createBlock(e.unref(o4),{key:0,column:v.field,sort:o.sort,onChange:N[0]||(N[0]=D=>l("sort",D))},null,8,["column","sort"])):e.createCommentVNode("",!0),e.renderSlot(F.$slots,"header-cell",{column:v,cellIndex:A},()=>[e.createVNode(e.unref(h1),{"text-align":v.align,weight:e.unref(u.Weights).SemiBold,"pre-line":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.header),1)]),_:2},1032,["text-align","weight"])])]),e.createElementVNode("div",Oi,[e.renderSlot(F.$slots,`${v.field}-header-right`,{column:v,cellIndex:A}),e.renderSlot(F.$slots,`${v.field}-total`,{column:v,cellIndex:A},()=>[v.total?(e.openBlock(),e.createBlock(e.unref(Ee),{key:0,title:v.total,variation:"hover-gray","text-color":"gray",size:e.unref(u.ChipSize).S},null,8,["title","size"])):e.createCommentVNode("",!0)])])])],6))),128))])]),e.createElementVNode("div",Pi,[s.skeletonLoading?(e.openBlock(),e.createBlock(e.unref(t4),{key:0,columns:S.value},null,8,["columns"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(["mc-table__table_body-row",{"mc-table__table_body-row--active":String(c.value.id)===String(v.id)}]),onClick:()=>z(v)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(D,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(D.class),style:e.normalizeStyle(D.style)},[e.createElementVNode("div",Ri,[e.createElementVNode("div",Yi,[e.renderSlot(F.$slots,D.field,{row:v,rowIndex:A,column:D,cellIndex:Y,cellValue:v[D.field]},()=>[e.createVNode(e.unref(h1),{"text-align":D.align,ellipsis:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v[D.field]),1)]),_:2},1032,["text-align"])])]),e.unref(i)[`${D.field}-right`]?(e.openBlock(),e.createElementBlock("div",Ui,[e.renderSlot(F.$slots,`${D.field}-right`)])):e.createCommentVNode("",!0)])],6))),128))],10,ji))),128)),c.value.state?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.createElementVNode("div",Wi,[N[2]||(N[2]=e.createElementVNode("div",{class:"mc-table__table_body-cell_content-left"},null,-1)),e.unref(i)[`${v.field}-right`]?(e.openBlock(),e.createElementBlock("div",Gi)):e.createCommentVNode("",!0)])],6))),128))]))],64)):e.createCommentVNode("",!0),s.hasLoadMore?(e.openBlock(),e.createBlock(e.unref(xt),{key:2,active:s.hasLoadMore,onLoading:N[1]||(N[1]=v=>l("loading"))},null,8,["active"])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",Xi,[e.createElementVNode("div",Ki,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.renderSlot(F.$slots,"footer-cell",{column:v,cellIndex:A,cellValue:o.totals[v.field]},()=>[e.createVNode(e.unref(h1),{"text-align":v.align,weight:e.unref(u.Weights).SemiBold},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.totals[v.field]),1)]),_:2},1032,["text-align","weight"])])],6))),128))])])):e.createCommentVNode("",!0)])],2),e.renderSlot(F.$slots,"default",e.mergeProps($.value,{onSetTableCardState:B}),()=>[e.unref(n).router?(e.openBlock(),e.createBlock(J,e.mergeProps({key:0},$.value,{onSetTableCardState:B}),null,16)):e.createCommentVNode("",!0)]),o.bottomLoading?(e.openBlock(),e.createBlock(e.unref(f5),{key:0})):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(e.unref(Ut),{key:1})):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Zt),{key:2,variation:"small",title:m.no_data,img:s.noDataImg,icon:s.noDataIcon},null,8,["title","img","icon"]))],4)}}}),Ji={class:"mc-table-card-header"},es={class:"mc-table-card-header__left"},ts={class:"mc-table-card-header__right"},os=e.defineComponent({__name:"McTableCardHeader",props:{buttonBackText:{type:String,default:"Back"},backTo:{type:String,default:null}},setup(o){const t=o;return(n,r)=>(e.openBlock(),e.createElementBlock("section",Ji,[e.createElementVNode("div",es,[e.renderSlot(n.$slots,"default",{},()=>[e.createVNode(e.unref(S1),{to:t.backTo,exact:"",variation:"purple-link",size:e.unref(u.ButtonSize).Xs},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:"arrow_backward"})]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(t.buttonBackText),1)]),_:1},8,["to","size"])])]),e.createElementVNode("div",ts,[e.renderSlot(n.$slots,"right")])]))}}),ns={key:0,class:"mc-table-card__header"},rs=e.defineComponent({__name:"McTableCard",props:{id:{type:[String,Number]},tableColumns:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},tableTotals:{type:Object,default:()=>({})},tableSort:{type:Object,default:()=>({})},tableFixedFirstColumn:{type:Boolean,default:!0},tableHeaderRowHeight:{type:Number,default:T2.defaultHeaderHeight},tableFooterRowHeight:{type:Number,default:T2.defaultFooterRowHeight},tableCardProps:{type:Object,default:()=>({})},footerBlur:{type:Boolean,default:!1}},emits:["set-table-card-state","card-id-updated"],setup(o,{emit:t}){const n=e.useSlots(),r=t,l=o,a=d2(),i=e.computed(()=>{const[k]=l.tableColumns;return k!=null&&k.width?k.width:T2.defaultTableFirstColWidth}),s=e.ref(null),c=e.ref(!0),C=e.computed(()=>({"mc-table-card__footer":!!n.footer,"mc-table-card__footer--with-blur":l.footerBlur&&!c.value})),d=e.computed(()=>({"--table-card-header-height":a.isNumber(l.tableHeaderRowHeight)?`${l.tableHeaderRowHeight+-1}px`:`${T2.defaultHeaderHeight}px`,"--table-card-footer-height":a.isNumber(l.tableFooterRowHeight)?`${l.tableFooterRowHeight+-1}px`:`${T2.defaultFooterRowHeight}px`,marginLeft:`${i.value}px`}));e.onMounted(()=>{l.footerBlur&&p(),m({state:!0,id:l.id})}),e.onBeforeUnmount(()=>{s.value&&s.value.removeEventListener("scroll",h),m({state:!1})});const p=()=>{try{c.value=!1,s.value&&s.value.addEventListener("scroll",h)}catch(k){console.error(k)}},h=()=>{try{if(s.value){const{offsetHeight:k,scrollTop:f,scrollHeight:g}=s.value;c.value=k+f===g}}catch(k){c.value=!0,console.error(k)}},m=k=>{r("set-table-card-state",k)};return e.watch(()=>l.footerBlur,k=>{k?p():s.value&&s.value.removeEventListener("scroll",h)}),e.watch(()=>l.id,k=>{const f={state:!0,id:k};m(f),r("card-id-updated",f)}),(k,f)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-table-card",style:e.normalizeStyle(d.value)},[k.$slots.header?(e.openBlock(),e.createElementBlock("div",ns,[e.renderSlot(k.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyEl",ref:s,class:"mc-table-card__body"},[e.renderSlot(k.$slots,"default",e.normalizeProps(e.guardReactiveProps(l)))],512),k.$slots.footer||o.footerBlur?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(C.value)},[e.renderSlot(k.$slots,"footer")],2)):e.createCommentVNode("",!0)],4))}}),ls={class:"mc-table-skeleton-loading skeleton-load-wrapper"},as={key:0,class:"mc-table-skeleton-loading__loader mc-table-skeleton-loading__loader--more-height"},is={key:2,class:"mc-table-skeleton-loading__loader"},t4=e.defineComponent({__name:"McTableSkeletonLoading",props:{columns:{type:Array,required:!0,default:()=>[]}},setup(o){const t=o,n=e.computed(()=>{const[r]=t.columns;return r.width});return(r,l)=>(e.openBlock(),e.createElementBlock("section",ls,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(a,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(a.style),class:"mc-table-skeleton-loading__col",key:`skeleton-col__${i}`},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(36,(s,c)=>e.createElementVNode("div",{key:`skeleton-cell-${c}`,class:"mc-table-skeleton-loading__cell"},[c?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",as,l[0]||(l[0]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"},null,-1)]))),i?(e.openBlock(),e.createElementBlock("div",is,l[2]||(l[2]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:1,class:"mc-table-skeleton-loading__loader",style:e.normalizeStyle({minWidth:`${n.value}px`})},l[1]||(l[1]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_avatar"},null,-1),e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_preview-content"},[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"}),e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"})],-1)]),4))])),64))],4))),128))]))}}),o4=e.defineComponent({__name:"McTableSort",props:{sort:{type:Object,default:()=>({})},column:{type:String,default:null}},emits:["change"],setup(o,{emit:t}){const n=t,r=o,l=e.computed(()=>r.column===r.sort.sort_column),a=e.computed(()=>{switch(!0){case(r.sort.sort_direction==="asc"&&l.value):return{direction:"asc",next_direction:"desc",icon:"arrow_downward"};case(r.sort.sort_direction==="desc"&&l.value):return{direction:"desc",next_direction:"asc",icon:"arrow_upward"};default:return{direction:null,next_direction:"asc",icon:"arrow_up_down"}}}),i=()=>{n("change",{sort_column:r.column,sort_direction:a.value.next_direction})};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-table-sort",onClick:i},[e.createVNode(e.unref(M1),{size:"200",name:a.value.icon,color:l.value?"black":"gray"},null,8,["name","color"])]))}}),ss={class:"mc-top-bar"},cs={class:"mc-top-bar__inner"},ds={key:0,class:"mc-top-bar__left"},us={class:"mc-top-bar__right"},Cs=e.defineComponent({__name:"McTopBar",props:{user:{type:Object,default:()=>({})},menuLangs:{type:Array,default:()=>[]},defaultLang:{type:String,default:"Выберите язык"},currentLang:{type:String,default:null}},setup(o){const t=o,n=e.ref(null),r=e.ref(!1),l=e.ref(!1);return(a,i)=>(e.openBlock(),e.createElementBlock("div",ss,[e.createElementVNode("div",cs,[a.$slots.left?(e.openBlock(),e.createElementBlock("div",ds,[e.renderSlot(a.$slots,"left")])):e.createCommentVNode("",!0),e.createElementVNode("div",us,[e.renderSlot(a.$slots,"right"),o.menuLangs&&o.menuLangs.length?(e.openBlock(),e.createBlock(e.unref(x0),{key:0,ref_key:"menuLangsDD",ref:n,items:o.menuLangs,modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=s=>r.value=s),"list-min-width":"auto",class:"mc-top-bar__menu-langs"},{activator:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:"black-link",uppercase:""},{"icon-append":e.withCtx(()=>[e.createVNode(e.unref(M1),{class:"rotate",name:"arrow_drop_down"})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.currentLang||o.defaultLang)+" ",1)]),_:1})]),item:e.withCtx(({item:s})=>[e.createVNode(e.unref(S1),{to:s.to||s.href,exact:s.exact,variation:"black-flat","text-align":e.unref(u.HorizontalAlignment).Left,"full-width":""},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:`flag_${s.name.toLowerCase()}`},null,8,["name"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(s.name),1)]),_:2},1032,["to","exact","text-align"])]),_:1},8,["items","modelValue"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"user",{},()=>[t.user?(e.openBlock(),e.createBlock(e.unref(x0),{key:0,modelValue:l.value,"onUpdate:modelValue":i[1]||(i[1]=s=>l.value=s),position:e.unref(u.DropdownPositions).Right},{activator:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:"white-flat",size:e.unref(u.ButtonSize).MCompact},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(R0),{src:t.user.avatar,rounded:"",size:"400"},null,8,["src"])]),_:1},8,["size"])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"user-dropdown-panel")]),_:3},8,["modelValue","position"])):e.createCommentVNode("",!0)])])]),e.createVNode(e.unref(r5),{color:"hover-gray","indent-top":"100"}),e.renderSlot(a.$slots,"bottom")]))}}),ps=e.defineComponent({__name:"McVirtualScroll",props:{items:{type:Array,default:()=>[],required:!0},containerHeight:{type:Number,required:!0},itemHeight:{type:Number,default:20,required:!0},buffer:{type:Number,default:1}},setup(o){const t=o,n=e.ref(null),r=e.ref(0),l=e.ref([]),a=e.ref(0),i=e.computed(()=>({height:`${t.containerHeight}px`,overflowY:"auto",position:"relative"}));e.onMounted(()=>{s(),e.nextTick(c)});const s=()=>{a.value=t.items.length*t.itemHeight},c=()=>{var f;const d=((f=n.value)==null?void 0:f.clientHeight)||0,p=Math.floor(r.value/t.itemHeight),h=Math.min(t.items.length-1,Math.floor((r.value+d)/t.itemHeight)),m=t.buffer||5,k=[];for(let g=Math.max(0,p-m);g<=Math.min(h+m,t.items.length-1);g++)k.push({key:g,data:t.items[g],index:g,top:g*t.itemHeight});l.value=k},C=()=>{var d;r.value=((d=n.value)==null?void 0:d.scrollTop)||0,requestAnimationFrame(c)};return e.watch(()=>t.items,()=>{s(),e.nextTick(c)}),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-virtual-scroll",ref_key:"containerRef",ref:n,onScroll:C,style:e.normalizeStyle(i.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("div",{key:`mc-virtual-scroll__item-${h.key}`,class:"mc-virtual-scroll__item",style:e.normalizeStyle({top:`${h.top}px`})},[e.renderSlot(d.$slots,"item",{item:h.data,index:h.index})],4))),128)),e.createElementVNode("div",{style:e.normalizeStyle({height:`${a.value}px`})},null,4)],36))}}),hs={"$animation-slide-up":"slide-up 0.3s","$animation-slide-up-with-margin":"slide-up-with-margin 0.3s","$animation-spinner":"rotate 1.2s infinite cubic-bezier(0.55, 0, 0.1, 1)","$animation-glow":"glow 1.5s ease-in-out infinite"},ms={"$shadow-xs":"0 2px 8px rgba(0, 0, 0, 0.16)","$shadow-s":"0 4px 12px rgba(0, 0, 0, 0.16)","$shadow-m":"0 12px 32px rgba(0, 0, 0, 0.24)","$shadow-l":"0 24px 40px rgba(0, 0, 0, 0.16)","$shadow-xs-blue":"0px 2px 8px rgba(51, 68, 153, 0.1)","$shadow-s-blue":"0 4px 12px rgba(51, 68, 153, 0.1)","$shadow-m-blue":"0 12px 32px rgba(51, 68, 153, 0.2)","$shadow-xs-purple":"0px 2px 8px rgba(91, 44, 205, 0.1)","$shadow-s-purple":"0 4px 12px rgba(91, 44, 205, 0.1)","$shadow-m-purple":"0 12px 32px rgba(91, 44, 205, 0.2)","$token-shadows":{xs:"0 2px 8px rgba(0, 0, 0, 0.16)",s:"0 4px 12px rgba(0, 0, 0, 0.16)",m:"0 12px 32px rgba(0, 0, 0, 0.24)",l:"0 24px 40px rgba(0, 0, 0, 0.16)","xs-blue":"0px 2px 8px rgba(51, 68, 153, 0.1)","s-blue":"0 4px 12px rgba(51, 68, 153, 0.1)","m-blue":"0 12px 32px rgba(51, 68, 153, 0.2)","xs-purple":"0px 2px 8px rgba(91, 44, 205, 0.1)","s-purple":"0 4px 12px rgba(91, 44, 205, 0.1)","m-purple":"0 12px 32px rgba(91, 44, 205, 0.2)"}},fs={"$easing-swift":"cubic-bezier(0.55, 0, 0.1, 1)"},ks={"$font-family-main":"'Inter', sans-serif","$font-family-additional":"'Source Serif Pro', serif"},ys={"$gradient-pink":"linear-gradient(180deg, #F5576C 0%, #F093FB 100%)","$gradient-violet":"linear-gradient(180deg, #E41AFE 0%, #8035F8 100%)","$gradient-blue":"linear-gradient(180deg, #1ADBFE 0%, #3580F8 100%)","$gradient-yellow":"linear-gradient(180deg, #FEE41A 0%, #F89B35 100%)","$gradient-green":"linear-gradient(180deg, #C9DD4C 0%, #63BE7E 100%)","$gradient-red":"linear-gradient(180deg, #F26567 0%, #F79440 100%)","$gradient-purple":"linear-gradient(270deg, #9a47ed 0%, #8446ff 100%)","$gradient-purple-pink":"linear-gradient(90deg, #722eff 2%, #fe6ffc 100%)","$gradient-blue-purple":"linear-gradient(90deg, #18bfe3 20%, #8756ff 70%)","$gradient-dark-blue":"linear-gradient(90deg, #5550EF 0%, #7F4EFF 100%)","$gradient-primary-radial":"radial-gradient(rgb(179, 211, 255), rgb(62, 132, 244))"},gs={"$letter-spacing-m":"0.4px","$letter-spacing-l":"1px"},bs={"$opacity-disabled":"0.6","$opacity-active":"0.7","$opacity-hover":"0.8"},Ls={"$z-index-sticky-tabs":"49","$z-index-dropdown":"100","$z-index-sticky":"100","$z-index-overlay-page":"7000","$z-index-modal":"8000","$z-index-top-line":"8000","$z-index-header":"10000","$z-index-notification":"10001","$z-index-overlay":"10002","$z-index-toasted":"10003"},Ms={install(o,t={}){console.log("start of install method in mediacube-ui-v2");const n={drawerComponents:{},modalComponents:{},toasts:{},defaultAvatar:"/assets/img/no_user.png",router:null};console.log("middle of install method in mediacube-ui-v2"),o.config.globalProperties.$dsOptions={...n,...t},o.provide("dsOptions",{...n,...t}),console.log("end of install method in mediacube-ui-v2 options",t),console.log("end of install method in mediacube-ui-v2 process",process)}};u.AvatarSizes=h5,u.Colors=V1,u.Durations=n4,u.FontSizes=r4,u.FontWeights=I0,u.LineHeights=t0,u.McAccordion=Ba,u.McAvatar=R0,u.McBadge=s4,u.McBottomLoader=f5,u.McButton=S1,u.McCell=Za,u.McChip=Ee,u.McCollapse=$a,u.McDatepicker=mt,u.McDraggable=gr,u.McDrawer=e4,u.McDrawerContainer=k5,u.McDrawerContentTemplate=xi,u.McDropdown=x0,u.McDropdownPanel=Nt,u.McFieldCheckbox=Hr,u.McFieldRadio=ft,u.McFieldRadioGroup=Fr,u.McFieldRange=rl,u.McFieldSelect=e5,u.McFieldText=He,u.McFieldToggle=la,u.McFilter=Ga,u.McFilterChip=D0,u.McFilterTags=Ot,u.McFilterTypeDate=Pt,u.McFilterTypeRange=jt,u.McFilterTypeRelation=Rt,u.McFilterTypeText=Yt,u.McGridCol=Z0,u.McGridRow=Xe,u.McInfinityLoadingTrigger=xt,u.McModal=$i,u.McModalContainer=M5,u.McNoData=Zt,u.McNotification=pa,u.McOverlay=Ut,u.McPreview=X2,u.McProgress=fa,u.McSeparator=r5,u.McSideBar=ci,u.McSideBarBottom=qt,u.McSideBarButton=Ke,u.McSideBarCenter=Kt,u.McSideBarTop=Qt,u.McSlideUpDown=l5,u.McStack=ba,u.McSvgIcon=M1,u.McTab=gi,u.McTable=Qi,u.McTableCard=rs,u.McTableCardHeader=os,u.McTableSkeletonLoading=t4,u.McTableSort=o4,u.McTabs=Vi,u.McTitle=h1,u.McToast=J2,u.McTooltip=G2,u.McTopBar=Cs,u.McVirtualScroll=ps,u.McWrapScroll=Jt,u.MediaQueries=l4,u.Radiuses=m5,u.Sizes=_2,u.Spaces=s2,u.TABLE=T2,u.UseEncodeDecode=Be,u.UseFile=f4,u.adaptiveAdditionalProps=s6,u.adaptivePropsParams=d9,u.adaptivePropsSizes=u9,u.animations=hs,u.borderRadius=P0,u.boxShadows=ms,u.colors=$0,u.dayjs=m1,u.dayjsLocales=a6,u.default=Ms,u.durations=A0,u.easings=fs,u.fontFamilies=ks,u.fontSizes=F0,u.fontWeights=z0,u.gradients=ys,u.letterSpacings=gs,u.lineHeights=N0,u.mediaQueries=O0,u.opacities=bs,u.sizes=g2,u.spacings=j0,u.useDrawer=m4,u.useFieldErrors=b2,u.useHelper=d2,u.useModal=S4,u.useRandomNumber=ce,u.useToast=m3,u.useTooltip=n9,u.zIndexes=Ls,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
7
+ */var Wt;(function(o){o.pop="pop",o.push="push"})(Wt||(Wt={}));var Gt;(function(o){o.back="back",o.forward="forward",o.unknown=""})(Gt||(Gt={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Xt;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Xt||(Xt={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":"");const ui=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ci(o){return e.inject(ui)}const pi={class:"mc-side-bar-center"},hi={key:1,class:"mc-side-bar-center__content"},Kt=e.defineComponent({__name:"McSideBarCenter",props:{title:{type:String,default:""},menuMain:{type:Array,default:()=>[]},counts:{type:Object,default:()=>({})},chatraConfig:{type:Object,default:()=>({})},compact:{type:Boolean,default:!1}},emits:["open-side-bar","handlerChatraClick"],setup(o,{emit:t}){const n=Ci(),r=ce(),l=e.inject("provideData",{}),a=t,i=o,s=e.ref(!0),c=e.ref([]),C=e.computed(()=>l.currentThemeConfig||Se[u.SidebarTheme.Black]);e.onBeforeMount(()=>{h()}),e.watch(()=>i.menuMain,()=>{h()},{deep:!0}),e.watch(()=>i.compact,()=>{h()}),e.watch(()=>n,(m,k)=>{if(s.value=!0,k.path!==m.path){const f=c.value.find(g=>{var w;return g.to===m.path||((w=g.menu)==null?void 0:w.find(S=>S.to===m.path))});f!=null&&f.menu&&!i.compact&&(f.open=!0)}e.nextTick(()=>{c.value.forEach(f=>{const g=f.to===m.path,w=f.menu&&f.menu.some(S=>{var b,_;return((b=S.to)==null?void 0:b.match(m==null?void 0:m.path))||((_=m.path)==null?void 0:_.match(S.to))});g||w||(f.open=!1)}),s.value=!1})});const d=m=>({open:m.open,active:m.active(),"with-submenu":m.menu&&m.menu.length,[`mc-side-bar--${C.value.mode||"black"}__button`]:!0,"purple-hover":C.value.mainMenuLinks.variable==="black-flat",[`mc-button--variation-${C.value.mainMenuLinks.variable}`]:!!C.value.mainMenuLinks.variable,"mc-side-bar--black__button mc-button nuxt-link-active":m.menu&&m.menu.length&&!m.open&&m.active()}),p=()=>{i.compact&&a("open-side-bar")},h=()=>{s.value=!0,c.value=i.menuMain.map(m=>{const k=()=>{var f;return m.menu&&m.menu.some(g=>{var w;return(w=n==null?void 0:n.path)==null?void 0:w.match(g.to)})||!!((f=n==null?void 0:n.path)!=null&&f.match(m.to))};return{id:r.timestamp(5),...m,active:k,indicator:()=>m.menu&&m.menu.some(f=>{var g;return!!((g=i.counts)!=null&&g[f.count_key])}),open:!i.compact&&k()}}),s.value=!1};return(m,k)=>(e.openBlock(),e.createElementBlock("div",pi,[o.title?(e.openBlock(),e.createBlock(e.unref(h1),{key:0,class:"mc-side-bar-center__title",color:o.compact?"transparent":"dark-gray"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1},8,["color"])):e.createCommentVNode("",!0),c.value&&c.value.length?e.withDirectives((e.openBlock(),e.createElementBlock("div",hi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:e.normalizeClass([{"item-active":f.active()},"mc-side-bar-center__content-item item"])},[e.createElementVNode("div",{class:e.normalizeClass(["item__head",d(f)]),onClick:p},[e.createVNode(e.unref(Ke),{info:f.menu&&f.menu.length?null:f.info||i.counts[f.count_key]||null,href:f.href,to:f.to,icon:f.icon,"icon-color":f.iconColor,title:f.name,compact:o.compact,"is-active":f.active(),"with-submenu":f.menu&&!!f.menu.length,"with-indicator":f.indicator()&&!f.open,"with-tooltip":"",class:"item__head-button--no-hover"},null,8,["info","href","to","icon","icon-color","title","compact","is-active","with-submenu","with-indicator"]),f.menu&&f.menu.length&&!o.compact?(e.openBlock(),e.createBlock(e.unref(S1),{key:0,variation:f.active()?"white-link":"gray-link",size:e.unref(u.ButtonSize).MCompact,class:e.normalizeClass(["item__head-arrow",{rotate:f.active()?f.active()&&f.open:f.open}]),onClick:g=>f.open=!f.open},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:"arrow_forward"})]),_:2},1032,["variation","size","class","onClick"])):e.createCommentVNode("",!0)],2),f.menu&&f.menu.length?(e.openBlock(),e.createBlock(l5,{key:0,class:"item__submenu",active:f.active()?f.active()&&f.open:f.open},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.menu,(g,w)=>(e.openBlock(),e.createBlock(e.unref(Ke),{key:w,info:o.counts[g.count_key],href:g.href,to:g.to,icon:g.icon,"icon-color":g.iconColor,title:g.name,compact:o.compact,"with-tooltip":""},null,8,["info","href","to","icon","icon-color","title","compact"]))),128))]),_:2},1032,["active"])):e.createCommentVNode("",!0)],2))),128))],512)),[[e.vShow,!s.value]]):e.createCommentVNode("",!0),o.chatraConfig.title?(e.openBlock(),e.createBlock(e.unref(r5),{key:2,color:"dark-gray","indent-top":"150","indent-bottom":"150","indent-left":o.compact?"50":"100","indent-right":o.compact?"50":"100"},null,8,["indent-left","indent-right"])):e.createCommentVNode("",!0),o.chatraConfig.title?(e.openBlock(),e.createBlock(e.unref(Ke),{key:3,icon:"chat_messages",title:o.chatraConfig.title,compact:o.compact,"with-tooltip":"",onClick:k[0]||(k[0]=f=>a("handlerChatraClick"))},null,8,["title","compact"])):e.createCommentVNode("",!0)]))}}),mi=["src","alt"],fi=["src","alt"],ki=["src"],Qt=e.defineComponent({__name:"McSideBarTop",props:{menuApps:{type:Array,default:()=>[]},logoTitle:{type:String,default:"Dashboard"},logoTitleVariation:{type:String,default:u.TitleVariations.Subtitle},logoSrc:{type:String,default:""},logoIcon:{type:String,default:""},dropdownPosition:{type:String,default:u.DropdownPositions.Left},compact:{type:Boolean,default:!1}},setup(o){const t=d2(),n=e.inject("provideData",{}),r=o,l=e.ref(!1),a=e.computed(()=>n.currentThemeConfig||Se[u.SidebarTheme.Black]),i=e.computed(()=>t.isEmpty(r.menuApps)?null:r.menuApps.filter(s=>!Object.prototype.hasOwnProperty.call(s,"isVisible")||s.isVisible));return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mc-side-bar-top",`mc-side-bar-top--theme-${a.value.dropdownActivator}`])},[i.value?(e.openBlock(),e.createBlock(e.unref(x0),{key:1,modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=C=>l.value=C),position:o.dropdownPosition,items:i.value},{activator:e.withCtx(()=>[e.createVNode(e.unref(X2),null,{left:e.withCtx(()=>[o.logoSrc?(e.openBlock(),e.createElementBlock("img",{key:0,class:"mc-side-bar-top__img",src:o.logoSrc,width:"24",height:"24",alt:o.logoTitle},null,8,fi)):o.logoIcon?(e.openBlock(),e.createBlock(e.unref(M1),{key:1,class:"rotate",name:o.logoIcon},null,8,["name"])):e.createCommentVNode("",!0)]),top:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:`${a.value.dropdownActivator}-link`,size:o.compact?e.unref(u.ButtonSize).LCompact:e.unref(u.ButtonSize).L,class:"mc-side-bar-top__activator-btn"},{"icon-append":e.withCtx(()=>[e.createVNode(e.unref(M1),{class:"rotate",name:"arrow_drop_down",color:"gray"})]),default:e.withCtx(()=>[o.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(h1),{key:0,weight:e.unref(u.Weights).SemiBold,variation:o.logoTitleVariation},{"icon-append":e.withCtx(()=>[e.renderSlot(s.$slots,"title-append")]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logoTitle)+" ",1)]),_:3},8,["weight","variation"]))]),_:3},8,["variation","size"])]),_:3})]),item:e.withCtx(({item:C})=>[e.createVNode(e.unref(S1),{"full-width":"","text-align":e.unref(u.HorizontalAlignment).Left,variation:"black-flat",href:C.href,to:C.to,target:C.target,"is-active":C.isActive,exact:C.exact},{"icon-prepend":e.withCtx(()=>[C.icon?(e.openBlock(),e.createBlock(e.unref(M1),{key:0,name:C.icon},null,8,["name"])):C.image?(e.openBlock(),e.createElementBlock("img",{key:1,src:C.image,width:"24",height:"24",alt:"service image"},null,8,ki)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C.name),1)]),_:2},1032,["text-align","href","to","target","is-active","exact"])]),_:3},8,["modelValue","position","items"])):(e.openBlock(),e.createBlock(e.unref(X2),{key:0},e.createSlots({top:e.withCtx(()=>[o.compact?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(h1),{key:0,weight:e.unref(u.Weights).SemiBold,variation:o.logoTitleVariation},{"icon-append":e.withCtx(()=>[e.renderSlot(s.$slots,"title-append")]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.logoTitle)+" ",1)]),_:3},8,["weight","variation"]))]),_:2},[o.logoSrc?{name:"left",fn:e.withCtx(()=>[e.createElementVNode("img",{class:"mc-side-bar-top__img",src:o.logoSrc,width:"24",height:"24",alt:o.logoTitle},null,8,mi)]),key:"0"}:void 0]),1024))],2))}}),yi=["id","aria-hidden","href","to"],gi=e.defineComponent({__name:"McTab",props:{id:{type:String,default:""},name:{type:String,required:!0,default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},appendCount:{type:Number,default:null},appendCountColor:{type:String,default:"black"},isDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},iconPrepend:{type:String,default:""},iconAppend:{type:String,default:""},iconPrependColor:{type:String,default:""},iconAppendColor:{type:String,default:""},to:{type:Object,default:null},href:{type:String,default:""}},setup(o){const t=e.inject("selfRegisterTabMethod",()=>{}),n=e.useAttrs(),r=o,l=e.ref(!1),a=e.ref(!0),i=e.computed(()=>r.id?r.id:r.name.toLowerCase().replace(/ /g,"-")),s=e.computed(()=>r.isDisabled?"#":`#${i.value}`),c=e.computed(()=>!!r.appendCount||r.appendCount===0),C=e.computed(()=>`--mc-tab-append-count-color: ${V1[r.appendCountColor]}`),d=e.computed(()=>[r.prefix,r.name,r.suffix].filter(Boolean).join("")),p=e.computed(()=>r.visible?d.value:"");e.onMounted(()=>{if(t){const k={isActive:l.value,isVisible:a.value,computedId:i.value,hash:s.value,hasAppendCount:c.value,appendCountStyles:C.value,header:p.value,id:r.id,name:r.name,to:r.to,href:r.href,iconAppendColor:r.iconAppendColor,iconPrependColor:r.iconPrependColor,iconAppend:r.iconAppend,iconPrepend:r.iconPrepend,visible:r.visible,isDisabled:r.isDisabled,appendCountColor:r.appendCountColor,appendCount:r.appendCount,suffix:r.suffix,prefix:r.prefix,showTab:h,hideTab:m,onClick:n.onClick,...n};t(k)}});const h=()=>{l.value=!0},m=()=>{l.value=!1};return(k,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("section",{id:o.id,"aria-hidden":!l.value,class:"tabs-component-panel",role:"tabpanel",href:o.href,to:o.to},[o.visible?e.renderSlot(k.$slots,"default",{key:0}):e.createCommentVNode("",!0)],8,yi)),[[e.vShow,l.value]])}}),Jt=e.defineComponent({__name:"McWrapScroll",props:{wrap:{type:Boolean,default:!1},gutterY:{type:Number,default:0},gutterX:{type:Number,default:0},justify:{type:String,default:u.ColumnJustifyAlignment.Left},scrollable:{type:Boolean,default:!0},gutterBottom:{type:String,default:null},hasScroll:{type:Boolean,default:!1},withBlur:{type:Boolean,default:!1},moreSpace:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},scrollSpeed:{type:Number,default:1},tagName:{type:String,default:"div"}},emits:["content-scrolled"],setup(o,{emit:t}){const n=t,r=o,l=e.reactive({scroll_pos:0,start_client_pos:0,distance:0,is_drag:!1,mouse_is_down:!1}),a=e.ref(!1),i=e.ref(!1),s=e.ref(null),c=e.ref(null),C=e.computed(()=>({wrap:r.wrap,align:u.ColumnAlignment.Top,gutterY:r.gutterY,gutterX:r.gutterX,justify:r.justify})),d=e.computed(()=>({"mc-wrap-scroll":!0,"mc-wrap-scroll--scrollable":r.scrollable,"mc-wrap-scroll--no-scrollbar":!r.hasScroll,"mc-wrap-scroll--more-space":r.moreSpace})),p=e.computed(()=>({"--mc-wrap-scroll-bottom":s2[r.gutterBottom]})),h=e.computed(()=>({"mc-wrap-scroll__wrapper--left-blur":r.withBlur&&a.value,"mc-wrap-scroll__wrapper--right-blur":r.withBlur&&i.value,"mc-wrap-scroll__wrapper--more-space":r.moreSpace}));e.onMounted(()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",S),m(),setTimeout(()=>k(),10)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",S),c.value&&c.value.removeEventListener("scroll",k),s.value&&s.value.disconnect()});const m=()=>{c.value&&(c.value.addEventListener("scroll",k),r.withBlur&&f())},k=()=>{var b;if(n("content-scrolled"),!!r.withBlur&&c.value)try{const _=Math.ceil((b=c.value.getBoundingClientRect())==null?void 0:b.width),$=Math.ceil(c.value.scrollWidth),L=Math.ceil(c.value.scrollLeft);a.value=r.rtl?$>_&&$-10>Math.abs(L)+_:!!L,i.value=r.rtl?Math.abs(L)>1:$>_&&$>Math.abs(L)+_}catch{a.value=!1,i.value=!1}},f=()=>{if(c.value)try{s.value=new MutationObserver(k);const b={attributes:!0,childList:!0,subtree:!0};s.value.observe(c.value,b)}catch{console.error("Error when try to create observer in McWrapScroll")}else console.error("Error when try to create observer in McWrapScroll")},g=b=>{if(c.value){const _=l;if(_.start_client_pos=b.clientX,_.mouse_is_down=!0,_.scroll_pos=c.value.scrollLeft,window.getSelection){let $=window.getSelection();$==null||$.removeAllRanges()}}},w=b=>{if(c.value){const _=l;if(!_.mouse_is_down)return;_.distance=b.clientX-_.start_client_pos,Math.abs(_.distance)>2&&!_.is_drag&&(_.is_drag=!0),_.is_drag&&c.value.scrollTo({left:_.scroll_pos-_.distance*r.scrollSpeed})}},S=()=>{l.is_drag&&(l.is_drag=!1),l.mouse_is_down=!1};return(b,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tagName),{class:e.normalizeClass([h.value,"mc-wrap-scroll__wrapper"])},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"scrollContainer",ref:c,class:e.normalizeClass(d.value),style:e.normalizeStyle(p.value),onMousedown:g},[e.createVNode(e.unref(Xe),e.mergeProps(C.value,{style:{"pointer-events":l.is_drag?"none":"auto"},class:"mc-wrap-scroll__row"}),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},16,["style"])],38)]),_:3},8,["class"]))}}),bi={class:"tabs-component"},Li=["aria-controls","aria-selected","href","onClick"],Mi={class:"tabs-component-tab__tab-name"},wi={class:"tabs-component-panels"},Vi=e.defineComponent({__name:"McTabs",props:{modelValue:{type:String,default:null},tabVariation:{type:String,default:u.TabVariations.Captions},color:{type:String,default:"black"},accentColor:{type:String,default:"purple"},uppercase:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1}},emits:["update:modelValue","tab-changed","clicked"],setup(o,{emit:t}){const n=t,r=e.inject("dsOptions",{}),l=o,a=e.ref([]),i=e.computed(()=>({"mc-tabs":!0,[`mc-tabs--tab-variation-${l.tabVariation}`]:!!l.tabVariation,"mc-tabs--uppercase":!!l.uppercase,"mc-tabs--sticky":!!l.sticky})),s=e.computed(()=>({"--mc-tabs-color":V1[l.color],"--mc-tabs-accent-color":V1[l.accentColor]})),c=e.computed({get(){return l.modelValue},set(g){n("update:modelValue",g)}}),C=e.computed(()=>a.value.filter(g=>g.visible&&!g.isDisabled));e.onMounted(()=>{h()}),e.onUpdated(()=>{setTimeout(()=>{k()},10)});const d=g=>{a.value.forEach(w=>{w.isActive=w.computedId===g,w.isActive?w.showTab():w.hideTab()})},p=g=>{a.value.push(g)},h=()=>{let[g]=C.value;const w=a.value.find(S=>S.computedId===l.modelValue);w&&!w.isDisabled&&(g=w),g&&f(g)},m=g=>{n("tab-changed",{tab:g})},k=()=>{var S;if(l.loading)return;const g=(S=a.value)==null?void 0:S.find(b=>b.isActive);if(!(g!=null&&g.isDisabled))return;const[w]=C.value;f(w)},f=(g,w)=>{if(w==null||w.preventDefault(),!g.isDisabled){if(g.onClick&&typeof g.onClick=="function")return g.onClick(g);if(g.href){window.open(g.href,"_blank");return}if(g.to&&r.router){r.router.push(g.to);return}m(g),d(g.computedId),c.value=g.computedId}};return e.watch(()=>l.loading,(g,w)=>{!g&&w&&e.nextTick(()=>{h()})}),e.provide("selfRegisterTabMethod",p),(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),style:e.normalizeStyle(s.value)},[e.createElementVNode("div",bi,[e.createVNode(Jt,{"tag-name":"ul",role:"tablist",scrollable:"",class:"tabs-component-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:b,class:e.normalizeClass([{"is-active":S.isActive,"is-disabled":S.isDisabled},"tabs-component-tab"]),role:"presentation"},[e.createElementVNode("a",{"aria-controls":S.hash,"aria-selected":S.isActive,href:S.href||S.hash||"javascript:void(0)",class:"tabs-component-tab-a",role:"tab",onClick:_=>f(S,_)},[e.createElementVNode("span",Mi,[S.iconPrepend?(e.openBlock(),e.createBlock(e.unref(M1),{key:0,name:S.iconPrepend,color:S.iconPrependColor},null,8,["name","color"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(S.header),1),S.iconAppend?(e.openBlock(),e.createBlock(e.unref(M1),{key:1,name:S.iconAppend,color:S.iconAppendColor},null,8,["name","color"])):e.createCommentVNode("",!0)])],8,Li)],2)),[[e.vShow,S.isVisible]])),128))]),_:1}),e.createElementVNode("div",wi,[e.renderSlot(g.$slots,"default")])])],6))}}),e4=e.defineComponent({__name:"McDrawer",props:{modelValue:{type:Boolean,default:!1},duration:{type:Number,default:300},position:{type:String,default:u.DrawerPositions.Right},closeVisible:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},iconClose:{type:String,default:"close"},width:{type:Number,default:300}},emits:["toggle","open","close","update:modelValue"],setup(o,{emit:t}){const n=t,r=o,l=e.ref(0),a=e.ref(100),i=e.computed(()=>r.position===u.DrawerPositions.Right),s=e.computed(()=>i.value?100:-100),c=e.computed(()=>({[i.value?u.DrawerPositions.Right:u.DrawerPositions.Left]:0})),C=e.ref(l.value),d=e.ref(s.value),p=o9(d,{duration:r.duration,transition:e9.easeOutQuart}),h=o9(C,{duration:r.duration,transition:e9.easeOutQuart}),m=e.computed(()=>({visibility:h.value?"visible":"hidden",zIndex:h.value?1:-1})),k=e.computed(()=>({transform:`translateX(${p.value}%)`,width:`${r.width}px`,[r.position]:0,...c.value})),f=e.computed(()=>({"mc-drawer__overlay":!0,"mc-drawer__overlay--hidden":!r.showOverlay})),g=()=>{C.value=a.value,d.value=C.value===0?100:0,r.modelValue||(n("update:modelValue",!0),n("open"))},w=()=>{C.value=l.value,d.value=C.value===0?i.value?100:-100:0,r.modelValue&&(n("update:modelValue",!1),n("close"))},S=()=>{r.showOverlay&&w()};return e.watch(()=>r.modelValue,b=>{b?g():w()},{immediate:!0}),(b,_)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-drawer__wrapper",style:e.normalizeStyle(m.value)},[e.createElementVNode("div",{class:e.normalizeClass(f.value),style:e.normalizeStyle(m.value),onClick:e.withModifiers(S,["stop"])},null,6),e.createElementVNode("div",{class:"mc-drawer",style:e.normalizeStyle(k.value),onClick:_[0]||(_[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(b.$slots,"default"),o.closeVisible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"mc-drawer__btn-close",onClick:e.withModifiers(w,["prevent"])},[e.createVNode(e.unref(M1),{class:"mc-drawer__icon-close",name:o.iconClose},null,8,["name"]),e.createVNode(e.unref(M1),{class:"mc-drawer__icon-close--small",name:o.iconClose,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],4)],4))}}),vi={class:"mc-drawer-content-template"},_i={key:0,class:"mc-drawer-content-template__header"},Hi={class:"mc-drawer-content-template__body"},Si={class:"mc-drawer-content-template__body-inner"},Bi={key:1,class:"mc-drawer-content-template__footer"},xi=e.defineComponent({__name:"McDrawerContentTemplate",props:{title:{type:String,default:""},titleEllipsis:{type:Boolean,default:!1}},setup(o){const t=o;return(n,r)=>(e.openBlock(),e.createElementBlock("div",vi,[n.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",_i,[e.renderSlot(n.$slots,"title",{},()=>[e.createVNode(e.unref(h1),{variation:e.unref(u.TitleVariations).Subtitle,ellipsis:t.titleEllipsis,weight:e.unref(u.Weights).SemiBold},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["variation","ellipsis","weight"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hi,[r[0]||(r[0]=e.createElementVNode("div",{class:"mc-drawer-content-template__tint"},null,-1)),e.createElementVNode("div",Si,[e.renderSlot(n.$slots,"default")])]),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",Bi,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]))}}),Di={key:0,class:"mc-modal__wrapper"},Zi={key:0,class:"mc-modal__header"},Ei={class:"mc-modal__title"},Ti={class:"mc-modal__control"},$i=e.defineComponent({__name:"McModal",props:{modelValue:{type:Boolean,default:!1},name:{type:String},maxWidth:{type:Number,default:510},minWidth:{type:Number,default:480},duration:{type:Number,default:200},closeVisible:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},clickBackdropToClose:{type:Boolean,default:!0},arrowVisible:{type:Boolean,default:!1},secondaryModal:{type:Boolean,default:!1},scrollableContent:{type:Boolean,default:!0},separators:{type:Boolean,default:!0},headerAlign:{type:String,default:"center"},topPadding:{type:Boolean,default:!1},variation:{type:String,default:"default"}},emits:["before-open","before-close","opened","closed","back","update:modelValue"],setup(o,{emit:t}){const n=t,r=o,l=e.ref(0),a=o9(l,{duration:r.duration||300,transition:e9.easeOutQuart}),i=e.ref(null),s=e.ref(null),c=e.reactive({scrolled_top:!1,scrolled_bottom:!1,resize_observer:{},small_indents:!1,can_shorten_modal:!1,modal_params:{},indent:{regular:"400",small:"150"},footer:{button:{regular:"600",small:"500"}},header:{title:{line_height:{regular:"300",small:"250"}}}}),C=e.computed(()=>({"mc-modal--arrow-visible":r.arrowVisible,"mc-modal--scrolled-top":c.scrolled_top,"mc-modal--scrolled-bottom":c.scrolled_bottom,"mc-modal--scrollable":r.scrollableContent,"mc-modal--top-padding":r.topPadding,"mc-modal--small-indents":c.small_indents,[`mc-modal--variation-${r.variation}`]:!!r.variation,[`mc-modal--header-align-${r.headerAlign}`]:(r.closeVisible||r.arrowVisible)&&!!r.headerAlign})),d=e.computed(()=>({"--mc-modal-padding":s2[c.indent.regular],"--mc-modal-padding-small":s2[c.indent.small],"--mc-modal-header-line-height":t0[c.header.title.line_height.regular],"--mc-modal-header-line-height-small":t0[c.header.title.line_height.small],"--mc-modal-button-height":_2[c.footer.button.regular],"--mc-modal-button-height-small":_2[c.footer.button.small],"--mc-modal-max-width":`${r.maxWidth+24}px`,"--mc-modal-min-width":`${r.minWidth-24}px`,"--mc-modal-state-number":a.value})),p=($=!0)=>{$||(c.scrolled_top=!1,c.scrolled_bottom=!1,c.small_indents=!1),setTimeout(()=>{if(i.value){const{scrollTop:L,scrollHeight:x,clientHeight:Z}=i.value,z=2;c.scrolled_top=L>z,c.small_indents=c.scrolled_top&&c.can_shorten_modal,c.scrolled_bottom=L+Z<x-z}},$?0:300)},h=()=>{n("before-close"),i.value&&(c.resize_observer&&c.resize_observer.unobserve(i.value),i.value.removeEventListener("scroll",()=>p()))},m=()=>{r.separators&&(f(),i.value&&(i.value.addEventListener("scroll",()=>p(),{passive:!0}),c.resize_observer=new ResizeObserver(()=>w()),c.resize_observer.observe(i.value)),p()),n("opened")},k=$=>{n("back",$)},f=()=>{try{s.value&&Object.keys(d.value).forEach($=>{var x;const L=parseInt((x=getComputedStyle(s.value))==null?void 0:x.getPropertyValue($));L&&(c.modal_params[$]=L)})}catch($){console.error($)}},g=()=>{var z,B,F,N,J,v,A,D,Y;const $=(+((z=c.modal_params)==null?void 0:z["--mc-modal-padding"])-+((B=c.modal_params)==null?void 0:B["--mc-modal-padding-small"]))*3+ +((F=c.modal_params)==null?void 0:F["--mc-modal-padding-small"]),L=+((N=c.modal_params)==null?void 0:N["--mc-modal-header-line-height"])-+((J=c.modal_params)==null?void 0:J["--mc-modal-header-line-height-small"]),x=+((v=c.modal_params)==null?void 0:v["--mc-modal-button-height"])-+((A=c.modal_params)==null?void 0:A["--mc-modal-button-height-small"]),Z=$+L+x;!c.small_indents&&i.value&&(c.can_shorten_modal=((D=i.value)==null?void 0:D.scrollHeight)-((Y=i.value)==null?void 0:Y.clientHeight)>Z)},w=()=>{g(),p()},S=()=>{l.value=1,n("before-open"),n("update:modelValue",!0),e.nextTick(()=>m())},b=()=>{l.value=0,setTimeout(()=>{h(),n("update:modelValue",!1),n("closed")},r.duration||300)},_=()=>{r.clickBackdropToClose&&b()};return e.watch(()=>r.modelValue,$=>{$?S():b()},{immediate:!0}),($,L)=>r.modelValue?(e.openBlock(),e.createElementBlock("div",Di,[r.showOverlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mc-modal__overlay",onClick:e.withModifiers(_,["stop"])})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["mc-modal",C.value]),style:e.normalizeStyle(d.value)},[e.createElementVNode("div",{ref_key:"modalInner",ref:s,class:"mc-modal__inner"},[$.$slots.title?(e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("div",Ei,[e.renderSlot($.$slots,"title")])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"mcModalBody",ref:i,class:"mc-modal__body"},[e.renderSlot($.$slots,"default")],512),e.createElementVNode("div",Ti,[e.renderSlot($.$slots,"footer"),L[0]||(L[0]=e.createElementVNode("div",{id:"mcModalFooter"},null,-1))])],512),o.arrowVisible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"mc-modal__btn-back",onClick:e.withModifiers(k,["prevent"])},[e.createVNode(e.unref(M1),{name:"arrow_leftward",class:"mc-modal__icon-back"})])):e.createCommentVNode("",!0),o.closeVisible?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"mc-modal__btn-close",onClick:e.withModifiers(b,["prevent"])},[e.createVNode(e.unref(M1),{class:"mc-modal__icon-close",width:"24",height:"24",name:"close"})])):e.createCommentVNode("",!0)],6)])):e.createCommentVNode("",!0)}}),T2={defaultHeaderHeight:40,defaultRowHeight:40,defaultFooterRowHeight:40,defaultTableFirstColWidth:251},Ai={class:"mc-table__table"},Fi={class:"mc-table__table_header"},zi={class:"mc-table__table_header-row"},Ii={class:"mc-table__table_header-cell_content"},Ni={class:"mc-table__table_header-cell_content-left"},Oi={class:"mc-table__table_header-cell_content-right"},Pi={class:"mc-table__table_body"},ji=["onClick"],Ri={class:"mc-table__table_body-cell_content"},Yi={class:"mc-table__table_body-cell_content-left"},Ui={key:0,class:"mc-table__table_body-cell_content-right"},qi={key:0,class:"mc-table__table_body-row mc-table__table_body-row--fake"},Wi={class:"mc-table__table_body-cell_content"},Gi={key:0,class:"mc-table__table_body-cell_content-right"},Xi={key:0,class:"mc-table__table_footer"},Ki={class:"mc-table__table_footer-row"},Qi=e.defineComponent({__name:"McTable",props:{columns:{type:Array,required:!0,default:()=>[]},data:{type:Array,required:!0,default:()=>[]},totals:{type:Object,default:()=>({})},sort:{type:Object,default:()=>({})},fixedFirstColumn:{type:Boolean,default:!0},fixedLastColumn:{type:Boolean,default:!1},hasLoadMore:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},headerRowHeight:{type:Number,default:T2.defaultHeaderHeight},rowHeight:{type:Number,default:T2.defaultRowHeight},footerRowHeight:{type:Number,default:T2.defaultFooterRowHeight},skeletonLoading:{type:Boolean,default:!1},bottomLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},placeholders:{type:Object,default:()=>({})},noDataIcon:{type:String,default:null},noDataImg:{type:String,default:Dt},toTableCardProps:{type:Object,default:()=>({})}},emits:["loading","row-click","sort","table-card-opened"],setup(o,{emit:t}){const n=e.inject("dsOptions",{}),r={no_data:"No data",loading:"Loading...",all_loaded:"All loaded",total:"Total"},l=t,a=d2(),i=e.useSlots(),s=o,c=e.ref({state:!1}),C=e.ref(null),d=e.computed(()=>!a.isEmpty(s.data)),p=e.computed(()=>!a.isEmpty(s.totals)),h=e.computed(()=>s.fixedFirstColumn||s.fixedLastColumn),m=e.reactive(a.deepMerge(r,s.placeholders)),k=e.reactive({firstColHasShadow:!1,lastColHasShadow:!1}),f=e.computed(()=>({"mc-table":!0,"mc-table--card-opened":c.value.state})),g=e.computed(()=>{const[F]=s.columns;return(c.value.state?[F]:s.columns).map((N,J)=>{const v=s.fixedFirstColumn&&J===0,A=s.fixedLastColumn&&J===s.columns.length-1;return{...N,fixedFirst:v,fixedLast:A,style:{...N.width?{"--mc-table-cell-width":`${N.width}px`,"--mc-table-cell-max-width":`${N.width}px`,"--mc-table-cell-min-width":`${N.width}px`}:{"--mc-table-cell-min-width":N.minWidth&&`${N.minWidth}px`,"--mc-table-cell-width":"100%"}}}})}),w=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_header-cell":!0,"mc-table__table_header-cell--fixed-first":F.fixedFirst,"mc-table__table_header-cell--fixed-last":F.fixedLast,"mc-table__table_header-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_header-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),S=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_body-cell":!0,"mc-table__table_body-cell--fixed-first":F.fixedFirst,"mc-table__table_body-cell--fixed-last":F.fixedLast,"mc-table__table_body-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_body-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),b=e.computed(()=>g.value.map(F=>({...F,class:{"mc-table__table_footer-cell":!0,"mc-table__table_footer-cell--fixed-first":F.fixedFirst,"mc-table__table_footer-cell--fixed-last":F.fixedLast,"mc-table__table_footer-cell--shadow-first":F.fixedFirst&&k.firstColHasShadow,"mc-table__table_footer-cell--shadow-last":F.fixedLast&&k.lastColHasShadow}}))),_=e.computed(()=>({"--mc-table-height":typeof s.height=="number"?`${s.height}px`:s.height,"--mc-table-header-row-height":a.isNumber(s.headerRowHeight)?`${s.headerRowHeight}px`:"40px","--mc-table-row-height":a.isNumber(s.rowHeight)?`${s.rowHeight}px`:"40px","--mc-table-footer-row-height":a.isNumber(s.footerRowHeight)?`${s.footerRowHeight}px`:"40px"})),$=e.computed(()=>({tableColumns:s.columns,tableData:s.data,tableTotals:s.totals,tableSort:s.sort,tableHeaderRowHeight:s.headerRowHeight,tableFooterRowHeight:s.footerRowHeight,tableFixedFirstColumn:s.fixedFirstColumn,tableCardProps:s.toTableCardProps}));e.onMounted(()=>{x()}),e.onBeforeUnmount(()=>{Z()});const L=H5(()=>{if(C.value){const{scrollLeft:F,scrollWidth:N,clientWidth:J}=C.value,v=s.fixedFirstColumn&&F>0,A=s.fixedLastColumn&&F+J<N;k.firstColHasShadow!==v&&(k.firstColHasShadow=v),k.lastColHasShadow!==A&&(k.lastColHasShadow=A)}},5),x=()=>{h.value&&C.value&&(L(),C.value.addEventListener("scroll",L))},Z=()=>{h.value&&C.value&&C.value.removeEventListener("scroll",L)},z=F=>{l("row-click",F)},B=F=>{c.value=F,l("table-card-opened",F)};return(F,N)=>{const J=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",{class:"mc-table__container",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",{ref_key:"mcTable",ref:C,class:e.normalizeClass(f.value)},[e.createElementVNode("div",Ai,[e.createElementVNode("div",Fi,[e.createElementVNode("div",zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.createElementVNode("div",Ii,[e.createElementVNode("div",Ni,[v.sortable?(e.openBlock(),e.createBlock(e.unref(o4),{key:0,column:v.field,sort:o.sort,onChange:N[0]||(N[0]=D=>l("sort",D))},null,8,["column","sort"])):e.createCommentVNode("",!0),e.renderSlot(F.$slots,"header-cell",{column:v,cellIndex:A},()=>[e.createVNode(e.unref(h1),{"text-align":v.align,weight:e.unref(u.Weights).SemiBold,"pre-line":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.header),1)]),_:2},1032,["text-align","weight"])])]),e.createElementVNode("div",Oi,[e.renderSlot(F.$slots,`${v.field}-header-right`,{column:v,cellIndex:A}),e.renderSlot(F.$slots,`${v.field}-total`,{column:v,cellIndex:A},()=>[v.total?(e.openBlock(),e.createBlock(e.unref(Ee),{key:0,title:v.total,variation:"hover-gray","text-color":"gray",size:e.unref(u.ChipSize).S},null,8,["title","size"])):e.createCommentVNode("",!0)])])])],6))),128))])]),e.createElementVNode("div",Pi,[s.skeletonLoading?(e.openBlock(),e.createBlock(e.unref(t4),{key:0,columns:S.value},null,8,["columns"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(["mc-table__table_body-row",{"mc-table__table_body-row--active":String(c.value.id)===String(v.id)}]),onClick:()=>z(v)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(D,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(D.class),style:e.normalizeStyle(D.style)},[e.createElementVNode("div",Ri,[e.createElementVNode("div",Yi,[e.renderSlot(F.$slots,D.field,{row:v,rowIndex:A,column:D,cellIndex:Y,cellValue:v[D.field]},()=>[e.createVNode(e.unref(h1),{"text-align":D.align,ellipsis:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v[D.field]),1)]),_:2},1032,["text-align"])])]),e.unref(i)[`${D.field}-right`]?(e.openBlock(),e.createElementBlock("div",Ui,[e.renderSlot(F.$slots,`${D.field}-right`)])):e.createCommentVNode("",!0)])],6))),128))],10,ji))),128)),c.value.state?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",qi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.createElementVNode("div",Wi,[N[2]||(N[2]=e.createElementVNode("div",{class:"mc-table__table_body-cell_content-left"},null,-1)),e.unref(i)[`${v.field}-right`]?(e.openBlock(),e.createElementBlock("div",Gi)):e.createCommentVNode("",!0)])],6))),128))]))],64)):e.createCommentVNode("",!0),s.hasLoadMore?(e.openBlock(),e.createBlock(e.unref(xt),{key:2,active:s.hasLoadMore,onLoading:N[1]||(N[1]=v=>l("loading"))},null,8,["active"])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",Xi,[e.createElementVNode("div",Ki,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(v,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,class:e.normalizeClass(v.class),style:e.normalizeStyle(v.style)},[e.renderSlot(F.$slots,"footer-cell",{column:v,cellIndex:A,cellValue:o.totals[v.field]},()=>[e.createVNode(e.unref(h1),{"text-align":v.align,weight:e.unref(u.Weights).SemiBold},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.totals[v.field]),1)]),_:2},1032,["text-align","weight"])])],6))),128))])])):e.createCommentVNode("",!0)])],2),e.renderSlot(F.$slots,"default",e.mergeProps($.value,{onSetTableCardState:B}),()=>[e.unref(n).router?(e.openBlock(),e.createBlock(J,e.mergeProps({key:0},$.value,{onSetTableCardState:B}),null,16)):e.createCommentVNode("",!0)]),o.bottomLoading?(e.openBlock(),e.createBlock(e.unref(f5),{key:0})):e.createCommentVNode("",!0),o.loading?(e.openBlock(),e.createBlock(e.unref(Ut),{key:1})):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Zt),{key:2,variation:"small",title:m.no_data,img:s.noDataImg,icon:s.noDataIcon},null,8,["title","img","icon"]))],4)}}}),Ji={class:"mc-table-card-header"},es={class:"mc-table-card-header__left"},ts={class:"mc-table-card-header__right"},os=e.defineComponent({__name:"McTableCardHeader",props:{buttonBackText:{type:String,default:"Back"},backTo:{type:String,default:null}},setup(o){const t=o;return(n,r)=>(e.openBlock(),e.createElementBlock("section",Ji,[e.createElementVNode("div",es,[e.renderSlot(n.$slots,"default",{},()=>[e.createVNode(e.unref(S1),{to:t.backTo,exact:"",variation:"purple-link",size:e.unref(u.ButtonSize).Xs},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:"arrow_backward"})]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(t.buttonBackText),1)]),_:1},8,["to","size"])])]),e.createElementVNode("div",ts,[e.renderSlot(n.$slots,"right")])]))}}),ns={key:0,class:"mc-table-card__header"},rs=e.defineComponent({__name:"McTableCard",props:{id:{type:[String,Number]},tableColumns:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},tableTotals:{type:Object,default:()=>({})},tableSort:{type:Object,default:()=>({})},tableFixedFirstColumn:{type:Boolean,default:!0},tableHeaderRowHeight:{type:Number,default:T2.defaultHeaderHeight},tableFooterRowHeight:{type:Number,default:T2.defaultFooterRowHeight},tableCardProps:{type:Object,default:()=>({})},footerBlur:{type:Boolean,default:!1}},emits:["set-table-card-state","card-id-updated"],setup(o,{emit:t}){const n=e.useSlots(),r=t,l=o,a=d2(),i=e.computed(()=>{const[k]=l.tableColumns;return k!=null&&k.width?k.width:T2.defaultTableFirstColWidth}),s=e.ref(null),c=e.ref(!0),C=e.computed(()=>({"mc-table-card__footer":!!n.footer,"mc-table-card__footer--with-blur":l.footerBlur&&!c.value})),d=e.computed(()=>({"--table-card-header-height":a.isNumber(l.tableHeaderRowHeight)?`${l.tableHeaderRowHeight+-1}px`:`${T2.defaultHeaderHeight}px`,"--table-card-footer-height":a.isNumber(l.tableFooterRowHeight)?`${l.tableFooterRowHeight+-1}px`:`${T2.defaultFooterRowHeight}px`,marginLeft:`${i.value}px`}));e.onMounted(()=>{l.footerBlur&&p(),m({state:!0,id:l.id})}),e.onBeforeUnmount(()=>{s.value&&s.value.removeEventListener("scroll",h),m({state:!1})});const p=()=>{try{c.value=!1,s.value&&s.value.addEventListener("scroll",h)}catch(k){console.error(k)}},h=()=>{try{if(s.value){const{offsetHeight:k,scrollTop:f,scrollHeight:g}=s.value;c.value=k+f===g}}catch(k){c.value=!0,console.error(k)}},m=k=>{r("set-table-card-state",k)};return e.watch(()=>l.footerBlur,k=>{k?p():s.value&&s.value.removeEventListener("scroll",h)}),e.watch(()=>l.id,k=>{const f={state:!0,id:k};m(f),r("card-id-updated",f)}),(k,f)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-table-card",style:e.normalizeStyle(d.value)},[k.$slots.header?(e.openBlock(),e.createElementBlock("div",ns,[e.renderSlot(k.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyEl",ref:s,class:"mc-table-card__body"},[e.renderSlot(k.$slots,"default",e.normalizeProps(e.guardReactiveProps(l)))],512),k.$slots.footer||o.footerBlur?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(C.value)},[e.renderSlot(k.$slots,"footer")],2)):e.createCommentVNode("",!0)],4))}}),ls={class:"mc-table-skeleton-loading skeleton-load-wrapper"},as={key:0,class:"mc-table-skeleton-loading__loader mc-table-skeleton-loading__loader--more-height"},is={key:2,class:"mc-table-skeleton-loading__loader"},t4=e.defineComponent({__name:"McTableSkeletonLoading",props:{columns:{type:Array,required:!0,default:()=>[]}},setup(o){const t=o,n=e.computed(()=>{const[r]=t.columns;return r.width});return(r,l)=>(e.openBlock(),e.createElementBlock("section",ls,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(a,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(a.style),class:"mc-table-skeleton-loading__col",key:`skeleton-col__${i}`},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(36,(s,c)=>e.createElementVNode("div",{key:`skeleton-cell-${c}`,class:"mc-table-skeleton-loading__cell"},[c?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",as,l[0]||(l[0]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"},null,-1)]))),i?(e.openBlock(),e.createElementBlock("div",is,l[2]||(l[2]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",{key:1,class:"mc-table-skeleton-loading__loader",style:e.normalizeStyle({minWidth:`${n.value}px`})},l[1]||(l[1]=[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_avatar"},null,-1),e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_preview-content"},[e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"}),e.createElementVNode("div",{class:"mc-table-skeleton-loading__loader_line"})],-1)]),4))])),64))],4))),128))]))}}),o4=e.defineComponent({__name:"McTableSort",props:{sort:{type:Object,default:()=>({})},column:{type:String,default:null}},emits:["change"],setup(o,{emit:t}){const n=t,r=o,l=e.computed(()=>r.column===r.sort.sort_column),a=e.computed(()=>{switch(!0){case(r.sort.sort_direction==="asc"&&l.value):return{direction:"asc",next_direction:"desc",icon:"arrow_downward"};case(r.sort.sort_direction==="desc"&&l.value):return{direction:"desc",next_direction:"asc",icon:"arrow_upward"};default:return{direction:null,next_direction:"asc",icon:"arrow_up_down"}}}),i=()=>{n("change",{sort_column:r.column,sort_direction:a.value.next_direction})};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-table-sort",onClick:i},[e.createVNode(e.unref(M1),{size:"200",name:a.value.icon,color:l.value?"black":"gray"},null,8,["name","color"])]))}}),ss={class:"mc-top-bar"},cs={class:"mc-top-bar__inner"},ds={key:0,class:"mc-top-bar__left"},us={class:"mc-top-bar__right"},Cs=e.defineComponent({__name:"McTopBar",props:{user:{type:Object,default:()=>({})},menuLangs:{type:Array,default:()=>[]},defaultLang:{type:String,default:"Выберите язык"},currentLang:{type:String,default:null}},setup(o){const t=o,n=e.ref(null),r=e.ref(!1),l=e.ref(!1);return(a,i)=>(e.openBlock(),e.createElementBlock("div",ss,[e.createElementVNode("div",cs,[a.$slots.left?(e.openBlock(),e.createElementBlock("div",ds,[e.renderSlot(a.$slots,"left")])):e.createCommentVNode("",!0),e.createElementVNode("div",us,[e.renderSlot(a.$slots,"right"),o.menuLangs&&o.menuLangs.length?(e.openBlock(),e.createBlock(e.unref(x0),{key:0,ref_key:"menuLangsDD",ref:n,items:o.menuLangs,modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=s=>r.value=s),"list-min-width":"auto",class:"mc-top-bar__menu-langs"},{activator:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:"black-link",uppercase:""},{"icon-append":e.withCtx(()=>[e.createVNode(e.unref(M1),{class:"rotate",name:"arrow_drop_down"})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.currentLang||o.defaultLang)+" ",1)]),_:1})]),item:e.withCtx(({item:s})=>[e.createVNode(e.unref(S1),{to:s.to||s.href,exact:s.exact,variation:"black-flat","text-align":e.unref(u.HorizontalAlignment).Left,"full-width":""},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(M1),{name:`flag_${s.name.toLowerCase()}`},null,8,["name"])]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(s.name),1)]),_:2},1032,["to","exact","text-align"])]),_:1},8,["items","modelValue"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"user",{},()=>[t.user?(e.openBlock(),e.createBlock(e.unref(x0),{key:0,modelValue:l.value,"onUpdate:modelValue":i[1]||(i[1]=s=>l.value=s),position:e.unref(u.DropdownPositions).Right},{activator:e.withCtx(()=>[e.createVNode(e.unref(S1),{variation:"white-flat",size:e.unref(u.ButtonSize).MCompact},{"icon-prepend":e.withCtx(()=>[e.createVNode(e.unref(R0),{src:t.user.avatar,rounded:"",size:"400"},null,8,["src"])]),_:1},8,["size"])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"user-dropdown-panel")]),_:3},8,["modelValue","position"])):e.createCommentVNode("",!0)])])]),e.createVNode(e.unref(r5),{color:"hover-gray","indent-top":"100"}),e.renderSlot(a.$slots,"bottom")]))}}),ps=e.defineComponent({__name:"McVirtualScroll",props:{items:{type:Array,default:()=>[],required:!0},containerHeight:{type:Number,required:!0},itemHeight:{type:Number,default:20,required:!0},buffer:{type:Number,default:1}},setup(o){const t=o,n=e.ref(null),r=e.ref(0),l=e.ref([]),a=e.ref(0),i=e.computed(()=>({height:`${t.containerHeight}px`,overflowY:"auto",position:"relative"}));e.onMounted(()=>{s(),e.nextTick(c)});const s=()=>{a.value=t.items.length*t.itemHeight},c=()=>{var f;const d=((f=n.value)==null?void 0:f.clientHeight)||0,p=Math.floor(r.value/t.itemHeight),h=Math.min(t.items.length-1,Math.floor((r.value+d)/t.itemHeight)),m=t.buffer||5,k=[];for(let g=Math.max(0,p-m);g<=Math.min(h+m,t.items.length-1);g++)k.push({key:g,data:t.items[g],index:g,top:g*t.itemHeight});l.value=k},C=()=>{var d;r.value=((d=n.value)==null?void 0:d.scrollTop)||0,requestAnimationFrame(c)};return e.watch(()=>t.items,()=>{s(),e.nextTick(c)}),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"mc-virtual-scroll",ref_key:"containerRef",ref:n,onScroll:C,style:e.normalizeStyle(i.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock("div",{key:`mc-virtual-scroll__item-${h.key}`,class:"mc-virtual-scroll__item",style:e.normalizeStyle({top:`${h.top}px`})},[e.renderSlot(d.$slots,"item",{item:h.data,index:h.index})],4))),128)),e.createElementVNode("div",{style:e.normalizeStyle({height:`${a.value}px`})},null,4)],36))}}),hs={"$animation-slide-up":"slide-up 0.3s","$animation-slide-up-with-margin":"slide-up-with-margin 0.3s","$animation-spinner":"rotate 1.2s infinite cubic-bezier(0.55, 0, 0.1, 1)","$animation-glow":"glow 1.5s ease-in-out infinite"},ms={"$shadow-xs":"0 2px 8px rgba(0, 0, 0, 0.16)","$shadow-s":"0 4px 12px rgba(0, 0, 0, 0.16)","$shadow-m":"0 12px 32px rgba(0, 0, 0, 0.24)","$shadow-l":"0 24px 40px rgba(0, 0, 0, 0.16)","$shadow-xs-blue":"0px 2px 8px rgba(51, 68, 153, 0.1)","$shadow-s-blue":"0 4px 12px rgba(51, 68, 153, 0.1)","$shadow-m-blue":"0 12px 32px rgba(51, 68, 153, 0.2)","$shadow-xs-purple":"0px 2px 8px rgba(91, 44, 205, 0.1)","$shadow-s-purple":"0 4px 12px rgba(91, 44, 205, 0.1)","$shadow-m-purple":"0 12px 32px rgba(91, 44, 205, 0.2)","$token-shadows":{xs:"0 2px 8px rgba(0, 0, 0, 0.16)",s:"0 4px 12px rgba(0, 0, 0, 0.16)",m:"0 12px 32px rgba(0, 0, 0, 0.24)",l:"0 24px 40px rgba(0, 0, 0, 0.16)","xs-blue":"0px 2px 8px rgba(51, 68, 153, 0.1)","s-blue":"0 4px 12px rgba(51, 68, 153, 0.1)","m-blue":"0 12px 32px rgba(51, 68, 153, 0.2)","xs-purple":"0px 2px 8px rgba(91, 44, 205, 0.1)","s-purple":"0 4px 12px rgba(91, 44, 205, 0.1)","m-purple":"0 12px 32px rgba(91, 44, 205, 0.2)"}},fs={"$easing-swift":"cubic-bezier(0.55, 0, 0.1, 1)"},ks={"$font-family-main":"'Inter', sans-serif","$font-family-additional":"'Source Serif Pro', serif"},ys={"$gradient-pink":"linear-gradient(180deg, #F5576C 0%, #F093FB 100%)","$gradient-violet":"linear-gradient(180deg, #E41AFE 0%, #8035F8 100%)","$gradient-blue":"linear-gradient(180deg, #1ADBFE 0%, #3580F8 100%)","$gradient-yellow":"linear-gradient(180deg, #FEE41A 0%, #F89B35 100%)","$gradient-green":"linear-gradient(180deg, #C9DD4C 0%, #63BE7E 100%)","$gradient-red":"linear-gradient(180deg, #F26567 0%, #F79440 100%)","$gradient-purple":"linear-gradient(270deg, #9a47ed 0%, #8446ff 100%)","$gradient-purple-pink":"linear-gradient(90deg, #722eff 2%, #fe6ffc 100%)","$gradient-blue-purple":"linear-gradient(90deg, #18bfe3 20%, #8756ff 70%)","$gradient-dark-blue":"linear-gradient(90deg, #5550EF 0%, #7F4EFF 100%)","$gradient-primary-radial":"radial-gradient(rgb(179, 211, 255), rgb(62, 132, 244))"},gs={"$letter-spacing-m":"0.4px","$letter-spacing-l":"1px"},bs={"$opacity-disabled":"0.6","$opacity-active":"0.7","$opacity-hover":"0.8"},Ls={"$z-index-sticky-tabs":"49","$z-index-dropdown":"100","$z-index-sticky":"100","$z-index-overlay-page":"7000","$z-index-modal":"8000","$z-index-top-line":"8000","$z-index-header":"10000","$z-index-notification":"10001","$z-index-overlay":"10002","$z-index-toasted":"10003"},Ms={install(o,t={}){const n={drawerComponents:{},modalComponents:{},toasts:{},defaultAvatar:"/assets/img/no_user.png",router:null};o.config.globalProperties.$dsOptions={...n,...t},o.provide("dsOptions",{...n,...t})}};u.AvatarSizes=h5,u.Colors=V1,u.Durations=n4,u.FontSizes=r4,u.FontWeights=I0,u.LineHeights=t0,u.McAccordion=Ba,u.McAvatar=R0,u.McBadge=s4,u.McBottomLoader=f5,u.McButton=S1,u.McCell=Za,u.McChip=Ee,u.McCollapse=$a,u.McDatepicker=mt,u.McDraggable=gr,u.McDrawer=e4,u.McDrawerContainer=k5,u.McDrawerContentTemplate=xi,u.McDropdown=x0,u.McDropdownPanel=Nt,u.McFieldCheckbox=Hr,u.McFieldRadio=ft,u.McFieldRadioGroup=Fr,u.McFieldRange=rl,u.McFieldSelect=e5,u.McFieldText=He,u.McFieldToggle=la,u.McFilter=Ga,u.McFilterChip=D0,u.McFilterTags=Ot,u.McFilterTypeDate=Pt,u.McFilterTypeRange=jt,u.McFilterTypeRelation=Rt,u.McFilterTypeText=Yt,u.McGridCol=Z0,u.McGridRow=Xe,u.McInfinityLoadingTrigger=xt,u.McModal=$i,u.McModalContainer=M5,u.McNoData=Zt,u.McNotification=pa,u.McOverlay=Ut,u.McPreview=X2,u.McProgress=fa,u.McSeparator=r5,u.McSideBar=ci,u.McSideBarBottom=qt,u.McSideBarButton=Ke,u.McSideBarCenter=Kt,u.McSideBarTop=Qt,u.McSlideUpDown=l5,u.McStack=ba,u.McSvgIcon=M1,u.McTab=gi,u.McTable=Qi,u.McTableCard=rs,u.McTableCardHeader=os,u.McTableSkeletonLoading=t4,u.McTableSort=o4,u.McTabs=Vi,u.McTitle=h1,u.McToast=J2,u.McTooltip=G2,u.McTopBar=Cs,u.McVirtualScroll=ps,u.McWrapScroll=Jt,u.MediaQueries=l4,u.Radiuses=m5,u.Sizes=_2,u.Spaces=s2,u.TABLE=T2,u.UseEncodeDecode=Be,u.UseFile=f4,u.adaptiveAdditionalProps=s6,u.adaptivePropsParams=d9,u.adaptivePropsSizes=u9,u.animations=hs,u.borderRadius=P0,u.boxShadows=ms,u.colors=$0,u.dayjs=m1,u.dayjsLocales=a6,u.default=Ms,u.durations=A0,u.easings=fs,u.fontFamilies=ks,u.fontSizes=F0,u.fontWeights=z0,u.gradients=ys,u.letterSpacings=gs,u.lineHeights=N0,u.mediaQueries=O0,u.opacities=bs,u.sizes=g2,u.spacings=j0,u.useDrawer=m4,u.useFieldErrors=b2,u.useHelper=d2,u.useModal=S4,u.useRandomNumber=ce,u.useToast=m3,u.useTooltip=n9,u.zIndexes=Ls,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui-v2",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "license": "MIT",
5
5
  "description": "Design system for Mediacube services",
6
6
  "keywords": [