metronics-vue 1.7.21 → 1.7.22
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.
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
|
|
58
58
|
</div>
|
|
59
59
|
`},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),a=n(2),l=n(0),c=l.default.ICON,d=l.default.ICON_CUSTOM,u=["error","warning","success","info"],f={error:a.errorIconMarkup(),warning:a.warningIconMarkup(),success:a.successIconMarkup()},y=function(k,C){var h=c+"--"+k;C.classList.add(h);var g=f[k];g&&(C.innerHTML=g)},m=function(k,C){C.classList.add(d);var h=document.createElement("img");h.src=k,C.appendChild(h)},w=function(k){if(k){var C=r.injectElIntoModal(a.iconMarkup);u.includes(k)?y(k,C):m(k,C)}};e.default=w},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),a=n(4),l=function(c){navigator.userAgent.includes("AppleWebKit")&&(c.style.display="none",c.offsetHeight,c.style.display="")};e.initTitle=function(c){if(c){var d=a.injectElIntoModal(r.titleMarkup);d.textContent=c,l(d)}},e.initText=function(c){if(c){var d=document.createDocumentFragment();c.split(`
|
|
60
|
-
`).forEach(function(f,y,m){d.appendChild(document.createTextNode(f)),y<m.length-1&&d.appendChild(document.createElement("br"))});var u=a.injectElIntoModal(r.textMarkup);u.appendChild(d),l(u)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(4),l=n(0),c=l.default.BUTTON,d=l.default.DANGER_BUTTON,u=n(3),f=n(2),y=n(6),m=n(5),w=function(C,h,g){var p=h.text,E=h.value,I=h.className,B=h.closeModal,N=r.stringToNode(f.buttonMarkup),S=N.querySelector("."+c),x=c+"--"+C;S.classList.add(x),I&&(Array.isArray(I)?I:I.split(" ")).filter(function(O){return O.length>0}).forEach(function(O){S.classList.add(O)}),g&&C===u.CONFIRM_KEY&&S.classList.add(d),S.textContent=p;var A={};return A[C]=E,m.setActionValue(A),m.setActionOptionsFor(C,{closeModal:B}),S.addEventListener("click",function(){return y.onAction(C)}),N},k=function(C,h){var g=a.injectElIntoModal(f.footerMarkup);for(var p in C){var E=C[p],I=w(p,E,h);E.visible&&g.appendChild(I)}g.children.length===0&&g.remove()};e.default=k},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),a=n(4),l=n(2),c=n(5),d=n(6),u=n(0),f=u.default.CONTENT,y=function(k){k.addEventListener("input",function(C){var h=C.target,g=h.value;c.setActionValue(g)}),k.addEventListener("keyup",function(C){if(C.key==="Enter")return d.onAction(r.CONFIRM_KEY)}),setTimeout(function(){k.focus(),c.setActionValue("")},0)},m=function(k,C,h){var g=document.createElement(C),p=f+"__"+C;g.classList.add(p);for(var E in h){var I=h[E];g[E]=I}C==="input"&&y(g),k.appendChild(g)},w=function(k){if(k){var C=a.injectElIntoModal(l.contentMarkup),h=k.element,g=k.attributes;typeof h=="string"?m(C,h,g):C.appendChild(h)}};e.default=w},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(2),l=function(){var c=r.stringToNode(a.overlayMarkup);document.body.appendChild(c)};e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),a=n(6),l=n(1),c=n(3),d=n(0),u=d.default.MODAL,f=d.default.BUTTON,y=d.default.OVERLAY,m=function(O){O.preventDefault(),g()},w=function(O){O.preventDefault(),p()},k=function(O){if(r.default.isOpen)switch(O.key){case"Escape":return a.onAction(c.CANCEL_KEY)}},C=function(O){if(r.default.isOpen)switch(O.key){case"Tab":return m(O)}},h=function(O){if(r.default.isOpen)return O.key==="Tab"&&O.shiftKey?w(O):void 0},g=function(){var O=l.getNode(f);O&&(O.tabIndex=0,O.focus())},p=function(){var O=l.getNode(u),L=O.querySelectorAll("."+f),T=L.length-1,D=L[T];D&&D.focus()},E=function(O){O[O.length-1].addEventListener("keydown",C)},I=function(O){O[0].addEventListener("keydown",h)},B=function(){var O=l.getNode(u),L=O.querySelectorAll("."+f);L.length&&(E(L),I(L))},N=function(O){if(l.getNode(y)===O.target)return a.onAction(c.CANCEL_KEY)},S=function(O){var L=l.getNode(y);L.removeEventListener("click",N),O&&L.addEventListener("click",N)},x=function(O){r.default.timer&&clearTimeout(r.default.timer),O&&(r.default.timer=window.setTimeout(function(){return a.onAction(c.CANCEL_KEY)},O))},A=function(O){O.closeOnEsc?document.addEventListener("keyup",k):document.removeEventListener("keyup",k),O.dangerMode?g():p(),B(),S(O.closeOnClickOutside),x(O.timer)};e.default=A},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(3),l=n(37),c=n(38),d={title:null,text:null,icon:null,buttons:a.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},u=Object.assign({},d);e.setDefaults=function(h){u=Object.assign({},d,h)};var f=function(h){var g=h&&h.button,p=h&&h.buttons;return g!==void 0&&p!==void 0&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),g!==void 0?{confirm:g}:p},y=function(h){return r.ordinalSuffixOf(h+1)},m=function(h,g){r.throwErr(y(g)+" argument ('"+h+"') is invalid")},w=function(h,g){var p=h+1,E=g[p];r.isPlainObject(E)||E===void 0||r.throwErr("Expected "+y(p)+" argument ('"+E+"') to be a plain object")},k=function(h,g){var p=h+1,E=g[p];E!==void 0&&r.throwErr("Unexpected "+y(p)+" argument ("+E+")")},C=function(h,g,p,E){var I=typeof g,B=I==="string",N=g instanceof Element;if(B){if(p===0)return{text:g};if(p===1)return{text:g,title:E[0]};if(p===2)return w(p,E),{icon:g};m(g,p)}else{if(N&&p===0)return w(p,E),{content:g};if(r.isPlainObject(g))return k(p,E),g;m(g,p)}};e.getOpts=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];var p={};h.forEach(function(B,N){var S=C(0,B,N,h);Object.assign(p,S)});var E=f(p);p.buttons=a.getButtonListOpts(E),delete p.button,p.content=l.getContentOpts(p.content);var I=Object.assign({},d,u,p);return Object.keys(I).forEach(function(B){c.DEPRECATED_OPTS[B]&&c.logDeprecation(B)}),I}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(l){var c={};return r.isPlainObject(l)?Object.assign(c,l):l instanceof Element?{element:l}:l==="input"?a:null}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(r){var a=e.DEPRECATED_OPTS[r],l=a.onlyRename,c=a.replacement,d=a.subOption,u=a.link,f=l?"renamed":"deprecated",y='SweetAlert warning: "'+r+'" option has been '+f+".";c&&(y+=" Please use"+(d?' "'+d+'" in ':" ")+'"'+c+'" instead.');var m="https://sweetalert.js.org";y+=u?" More details: "+m+u:" More details: "+m+"/guides/#upgrading-from-1x",console.warn(y)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])})}(Xt)),Xt.exports}var wr=yr();const nt=_r(wr);let Fe=1;const vr=()=>{const i=o.ref(null);function s(){i.value.hide()}function t(u=null){i.value.$emit("ok",u)}function e(){i.value.hide()}function n(u,f={}){return new Promise(y=>{const m=`kt-dialog-${Fe++}`,w=document.createElement("div");w.setAttribute("id",m),document.body.appendChild(w);const k=()=>{C.unmount(),document.body.contains(w)&&document.body.removeChild(w),document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";const h=document.querySelector(".modal-backdrop");h&&h.remove()},C=o.createApp(u,{...f,onOk:h=>{y(h),k()},onCancel:()=>{y(!1),k()}}).use(fe);C.mount(w),kt.init()})}function r(u){return nt({title:"Are you sure?",text:u,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})}function a(u){return nt({title:u.title,text:u.subtitle,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})}function l(u){return nt(u,{icon:"success"})}function c(u){return nt(u,{icon:"error",title:"Error"})}function d(u){return nt({title:"Warning",text:u,icon:"warning"})}return{dialog:n,showConfirmDialog:r,showCustomConfirmDialog:a,showSuccessDialog:l,showErrorDialog:c,showWarningDialog:d,dialogRef:i,onDialogHide:s,onDialogOk:t,onDialogCancel:e}},He=o.defineComponent({methods:{dialog(i){const s=`kt-dialog-${Fe++}`,t=document.createElement("div");t.setAttribute("id",s),document.body.appendChild(t),o.createApp(i).use(fe).mount(t),kt.init()},onDialogOk(i=null){this.$emit("ok",i)},onDialogCancel(){this.$emit("cancel")},onDialogHide(){this.$refs.dialog.hide()},showConfirmDialog(i){return nt({title:"Are you sure?",text:i,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})},showCustomConfirmDialog(i){return nt({title:i.title,text:i.subtitle,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})},showSuccessDialog(i){return nt(i,{icon:"success"})},showErrorDialog(i){return nt(i,{icon:"error",title:"Error"})},showWarningDialog(i){return nt({title:"Warning",text:i,icon:"warning"})}}}),Er=o.defineComponent({inject:["$dialogOnCancel"],mixins:[He],props:{title:String,fixed:{type:Boolean,default:!1},close:{type:Boolean,default:!1},onCloseAction:{type:Function,default:null}},methods:{handleClose(){typeof this.onCloseAction=="function"?this.onCloseAction():this.$dialogOnCancel()}}}),kr=["textContent"];function xr(i,s,t,e,n,r){const a=o.resolveComponent("kt-button");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["modal-header bg-inherit",{"kt-dialog-header-fixed":i.fixed}])},[o.renderSlot(i.$slots,"default",{},()=>[o.createElementVNode("h3",{class:"modal-title",textContent:o.toDisplayString(i.title)},null,8,kr),i.close?(o.openBlock(),o.createBlock(a,{key:0,icon:{type:"outline",name:"cross"},"icon-only":"",type:"light",size:"xs",onClick:i.handleClose},null,8,["onClick"])):o.createCommentVNode("",!0)],!0)],2)}const Cr=P(Er,[["render",xr],["__scopeId","data-v-b6ffd26d"]]),Or={},Sr={class:"modal-body md:min-h-[30vh] p-5"};function Ir(i,s){return o.openBlock(),o.createElementBlock("div",Sr,[o.renderSlot(i.$slots,"default")])}const Ar=P(Or,[["render",Ir]]),Tr={},Lr={class:"modal-footer justify-end"};function Br(i,s){return o.openBlock(),o.createElementBlock("div",Lr,[o.renderSlot(i.$slots,"default")])}const Nr=P(Tr,[["render",Br]]),Pr={},Dr={class:"modal-content overflow-auto w-full md:min-w-[500px] animate-scale-in",style:{maxWidth:"800px",maxHeight:"90vh"}};function Mr(i,s){return o.openBlock(),o.createElementBlock("div",Dr,[o.renderSlot(i.$slots,"default")])}const Vr=P(Pr,[["render",Mr]]),$r={props:{component:{type:Object,required:!0},componentProps:{type:Object,default:()=>({})},dialogKey:{type:String,required:!0},onOk:Function,onCancel:Function},methods:{handleCancel(){const i=this.$refs.component;i.$refs.dialog&&(i.$refs.dialog.$refs.dialog.classList.remove("open"),setTimeout(()=>{this.onCancel()},300))},handleOk(){const i=this.$refs.component;i.$refs.dialog&&(i.$refs.dialog.$refs.dialog.classList.remove("open"),setTimeout(()=>{this.onOk(value)},300))}},provide(){return{$dialogOnOk:i=>{this.handleOk(i)},$dialogOnCancel:()=>{this.handleCancel()}}}};function Rr(i,s,t,e,n,r){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.component),o.mergeProps(t.componentProps,{onOk:t.onOk,onCancel:t.onCancel,ref:"component"}),null,16,["onOk","onCancel"])}const jr=P($r,[["render",Rr]]),zr={props:{label:{type:String,required:!0},name:{type:String,required:!0},icon:[String,Object],btnTab:{type:Boolean,default:!1}},inject:["active","setActive"],methods:{selectTab(i){typeof this.setActive=="function"&&this.setActive(i)}}};function qr(i,s,t,e,n,r){var l,c;const a=o.resolveComponent("kt-icon");return t.btnTab?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-icon",onClick:s[1]||(s[1]=d=>r.selectTab(t.name)),style:{cursor:"pointer"}},[o.createVNode(a,{name:t.icon,class:o.normalizeClass({"text-primary":r.active===t.name})},null,8,["name","class"])])):(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["tab",{active:r.active===t.name}]),onClick:s[0]||(s[0]=d=>r.selectTab(t.name)),style:{cursor:"pointer"}},[t.icon?(o.openBlock(),o.createBlock(a,{key:0,name:typeof t.icon=="string"?t.icon:(l=t.icon)==null?void 0:l.name,type:(c=t.icon)==null?void 0:c.type},null,8,["name","type"])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.label),1)],2))}const Fr=P(zr,[["render",qr]]),Hr={props:{name:{type:[String,Number],required:!0}},computed:{isActive(){return this.$parent.modelValue===this.name}}},Ur={key:0};function Kr(i,s,t,e,n,r){return r.isActive?(o.openBlock(),o.createElementBlock("div",Ur,[o.renderSlot(i.$slots,"default")])):o.createCommentVNode("",!0)}const Wr=P(Hr,[["render",Kr]]),Yr={props:{modelValue:{type:String,required:!0}}},Zr={"data-tabs":"true"};function Xr(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock("div",Zr,[o.renderSlot(i.$slots,"default")])}const Gr=P(Yr,[["render",Xr]]),Jr={props:{modelValue:String,btnTabs:{type:Boolean,default:!1}},provide(){return{setActive:i=>this.$emit("update:modelValue",i),active:o.computed(()=>this.modelValue)}}};function Qr(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({"btn-tabs":t.btnTabs,tabs:!t.btnTabs})},[o.renderSlot(i.$slots,"default")],2)}const to=P(Jr,[["render",Qr]]),eo={name:"KtPageTitle",computed:{computedBreadcrumbs(){var t;const i=[],s=this.$route.params;for(const e of this.$route.matched){const n=(t=e.meta)==null?void 0:t.breadcrumb;if(Array.isArray(n)){const r=n.map(a=>{const l=a.to?this.resolveDynamicString(a.to,s):void 0;return{label:this.resolveDynamicString(a.label,s),to:l}});i.push(...r)}else typeof n=="string"&&i.push({label:this.resolveDynamicString(n,s),to:this.resolveDynamicString(e.path,s)})}return i},pageTitle(){const i=this.computedBreadcrumbs[this.computedBreadcrumbs.length-1];return(i==null?void 0:i.label)||"Unnamed Page"}},methods:{resolveDynamicString(i,s){if(!i||typeof i!="string")return i;let t=i;return Object.keys(s).forEach(e=>{const n=s[e];if(n!=null){const r=new RegExp(`:${e}\\b`,"g"),l=i.includes("/")?n:n.toString().replace(/-/g," ");t=t.replace(r,l)}}),t}}},no={class:"mb-5"},io={class:"text-gray-900 text-lg font-semibold mb-1"},so={key:0,class:"text-gray-400 text-sm mx-1"},ro={key:2,class:"text-gray-500 text-sm font-normal"};function oo(i,s,t,e,n,r){const a=o.resolveComponent("kt-breadcrumbs-el"),l=o.resolveComponent("kt-breadcrumbs");return o.openBlock(),o.createElementBlock("div",no,[o.createElementVNode("h1",io,o.toDisplayString(r.pageTitle),1),o.createVNode(l,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.computedBreadcrumbs,(c,d)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:d},[d>0?(o.openBlock(),o.createElementBlock("span",so," / ")):o.createCommentVNode("",!0),c.to?(o.openBlock(),o.createBlock(a,{key:1,to:c.to,label:c.label},null,8,["to","label"])):(o.openBlock(),o.createElementBlock("span",ro,o.toDisplayString(c.label),1))],64))),128))]),_:1})])}const ao=P(eo,[["render",oo]]),lo={};function co(i,s){const t=o.resolveComponent("kt-card");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(t,{class:"p-4 animate-pulse flex flex-col gap-4"},{default:o.withCtx(()=>s[0]||(s[0]=[o.createElementVNode("div",{class:"max-w-40 bg-gray-500 rounded-md p-2 animate-pulse"},null,-1),o.createElementVNode("div",{class:"w-full h-40 bg-gray-500 rounded-md p-2 animate-pulse"},null,-1)])),_:1})])}const uo=P(lo,[["render",co]]),ho={props:{modelValue:String,options:{type:Array,required:!0},required:{type:Boolean,default:!1},label:String,disabled:{type:Boolean,default:!1}},data(){return{buttons:[{name:"Today",value:"today"},{name:"Week",value:"week"},{name:"Month",value:"month"},{name:"All",value:"all"}]}},methods:{setActive(i){this.$emit("update:modelValue",i)}}},fo={key:0,class:"form-label flex items-center max-w-full pb-2"},po={key:0,class:"text-danger pl-1"},mo={class:"btn-group w-full flex"},go=["onClick","disabled"],_o={key:1,class:"text-xs text-red-500"};function bo(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock(o.Fragment,null,[t.label?(o.openBlock(),o.createElementBlock("label",fo,[o.createTextVNode(o.toDisplayString(t.label)+": ",1),t.required?(o.openBlock(),o.createElementBlock("span",po," * ")):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",mo,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.options,(a,l)=>(o.openBlock(),o.createElementBlock("button",{key:a.value,class:o.normalizeClass(["btn flex-1 justify-center",t.modelValue===a.value?"btn-primary":"btn-light"]),onClick:c=>r.setActive(a.value),disabled:t.disabled},o.toDisplayString(a.name),11,go))),128))]),i.inputRequired&&i.touched?(o.openBlock(),o.createElementBlock("span",_o," This field is required! ")):o.createCommentVNode("",!0)],64)}const yo=P(ho,[["render",bo]]),wo={__name:"KtChip",props:{label:String,color:String},setup(i){const s=i,t=o.computed(()=>[`bg-${s.color}-200`,`text-${s.color}-700`,"rounded-lg","px-4","py-2","font-bold"]);return(e,n)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.value)},o.toDisplayString(i.label),3))}},vo={props:{title:{type:String,default:"Title"},content:{type:String,default:"Content"},disabled:{type:Boolean,default:!1},actionFirst:{type:Boolean,default:!1}},data(){return{active:!1,contentHeight:"0px"}},methods:{async toggleAccordion(){this.disabled||(this.active=!this.active,await o.nextTick(),this.active?this.contentHeight=this.$refs.content.scrollHeight+"px":this.contentHeight="0px")}}},Eo={class:"accordion-item border rounded-xl relative bg-white"},ko=["disabled"],xo={class:"text-lg uppercase text-gray-900 font-medium flex gap-3 w-full"},Co={key:0,class:"flex items-center"},Oo={key:0,class:"ki-outline ki-down text-gray-600 text-md"},So={key:1,class:"ki-outline ki-up text-gray-600 text-md"},Io={class:"flex flex-row gap-4 items-center"},Ao={key:0},To={key:0,class:"ki-outline ki-down text-gray-600 text-md"},Lo={key:1,class:"ki-outline ki-up text-gray-600 text-md"},Bo={key:0,class:"tooltip-disabled"},No={class:"text-gray-700 text-md p-4"};function Po(i,s,t,e,n,r){const a=o.resolveComponent("kt-icon");return o.openBlock(),o.createElementBlock("div",Eo,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-toggle p-4 flex justify-between items-center w-full",{"opacity-50 cursor-not-allowed":t.disabled}]),disabled:t.disabled,onClick:s[0]||(s[0]=(...l)=>r.toggleAccordion&&r.toggleAccordion(...l))},[o.createElementVNode("span",xo,[t.actionFirst?(o.openBlock(),o.createElementBlock("div",Co,[n.active?(o.openBlock(),o.createElementBlock("i",So)):(o.openBlock(),o.createElementBlock("i",Oo))])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"title")]),o.createElementVNode("div",Io,[o.renderSlot(i.$slots,"slot-right"),t.actionFirst?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ao,[n.active?(o.openBlock(),o.createElementBlock("i",Lo)):(o.openBlock(),o.createElementBlock("i",To))]))])],10,ko),t.disabled?(o.openBlock(),o.createElementBlock("div",Bo,[o.createVNode(a,{class:"text-3xl text-blue-100",name:"ki-outline ki-information"}),o.renderSlot(i.$slots,"disabled-tooltip",{},()=>[s[1]||(s[1]=o.createTextVNode("This section is disabled."))]),s[2]||(s[2]=o.createElementVNode("div",{class:"tooltip-arrow"},null,-1))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"content",class:o.normalizeClass(["accordion-content transition-all duration-700 ease-in-out",{"border-t":n.active}]),style:o.normalizeStyle({height:n.active?n.contentHeight:"0px"})},[o.createElementVNode("div",No,[o.renderSlot(i.$slots,"content")])],6)])}const Do=P(vo,[["render",Po]]),fe={install(i,s){i.component("KtCard",Me),i.component("KtCardHeader",Ve),i.component("KtCardBody",$e),i.component("KtCardTitle",Re),i.component("KtIcon",Zt),i.component("KtButton",he),i.component("KtAvatar",wi),i.component("KtBreadcrumbs",Bi),i.component("KtBreadcrumbsEl",Di),i.component("KtMenu",Ri),i.component("KtMenuItem",Fi),i.component("KtMenuLink",Wi),i.component("KtSubMenu",Xi),i.component("KtPagination",je),i.component("KtTable",ws),i.component("KtBadge",ki),i.component("KtSwitch",Os),i.component("KtSeparator",Ts),i.component("KtInput",Us),i.component("KtInputLabel",Xs),i.component("KtTextarea",ir),i.component("KtSelect",ze),i.component("KtDialog",gr),i.component("KtDialogHeader",Cr),i.component("KtDialogBody",Ar),i.component("KtDialogFooter",Nr),i.component("KtDialogContent",Vr),i.component("KtDialogManager",jr),i.component("ktTab",Fr),i.component("ktTabPanel",Wr),i.component("ktTabPanels",Gr),i.component("ktTabs",to),i.component("KtPageTitle",ao),i.component("KtSkeletonCard",uo),i.component("KtButtonGroup",yo),i.component("KtSelect",ze),i.component("KtChip",wo),i.component("KtAccordion",Do)}};H.KTComponent=kt,H.KtPlugin=fe,H.dialog=He,H.useDialog=vr,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
60
|
+
`).forEach(function(f,y,m){d.appendChild(document.createTextNode(f)),y<m.length-1&&d.appendChild(document.createElement("br"))});var u=a.injectElIntoModal(r.textMarkup);u.appendChild(d),l(u)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(4),l=n(0),c=l.default.BUTTON,d=l.default.DANGER_BUTTON,u=n(3),f=n(2),y=n(6),m=n(5),w=function(C,h,g){var p=h.text,E=h.value,I=h.className,B=h.closeModal,N=r.stringToNode(f.buttonMarkup),S=N.querySelector("."+c),x=c+"--"+C;S.classList.add(x),I&&(Array.isArray(I)?I:I.split(" ")).filter(function(O){return O.length>0}).forEach(function(O){S.classList.add(O)}),g&&C===u.CONFIRM_KEY&&S.classList.add(d),S.textContent=p;var A={};return A[C]=E,m.setActionValue(A),m.setActionOptionsFor(C,{closeModal:B}),S.addEventListener("click",function(){return y.onAction(C)}),N},k=function(C,h){var g=a.injectElIntoModal(f.footerMarkup);for(var p in C){var E=C[p],I=w(p,E,h);E.visible&&g.appendChild(I)}g.children.length===0&&g.remove()};e.default=k},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),a=n(4),l=n(2),c=n(5),d=n(6),u=n(0),f=u.default.CONTENT,y=function(k){k.addEventListener("input",function(C){var h=C.target,g=h.value;c.setActionValue(g)}),k.addEventListener("keyup",function(C){if(C.key==="Enter")return d.onAction(r.CONFIRM_KEY)}),setTimeout(function(){k.focus(),c.setActionValue("")},0)},m=function(k,C,h){var g=document.createElement(C),p=f+"__"+C;g.classList.add(p);for(var E in h){var I=h[E];g[E]=I}C==="input"&&y(g),k.appendChild(g)},w=function(k){if(k){var C=a.injectElIntoModal(l.contentMarkup),h=k.element,g=k.attributes;typeof h=="string"?m(C,h,g):C.appendChild(h)}};e.default=w},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(2),l=function(){var c=r.stringToNode(a.overlayMarkup);document.body.appendChild(c)};e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),a=n(6),l=n(1),c=n(3),d=n(0),u=d.default.MODAL,f=d.default.BUTTON,y=d.default.OVERLAY,m=function(O){O.preventDefault(),g()},w=function(O){O.preventDefault(),p()},k=function(O){if(r.default.isOpen)switch(O.key){case"Escape":return a.onAction(c.CANCEL_KEY)}},C=function(O){if(r.default.isOpen)switch(O.key){case"Tab":return m(O)}},h=function(O){if(r.default.isOpen)return O.key==="Tab"&&O.shiftKey?w(O):void 0},g=function(){var O=l.getNode(f);O&&(O.tabIndex=0,O.focus())},p=function(){var O=l.getNode(u),L=O.querySelectorAll("."+f),T=L.length-1,D=L[T];D&&D.focus()},E=function(O){O[O.length-1].addEventListener("keydown",C)},I=function(O){O[0].addEventListener("keydown",h)},B=function(){var O=l.getNode(u),L=O.querySelectorAll("."+f);L.length&&(E(L),I(L))},N=function(O){if(l.getNode(y)===O.target)return a.onAction(c.CANCEL_KEY)},S=function(O){var L=l.getNode(y);L.removeEventListener("click",N),O&&L.addEventListener("click",N)},x=function(O){r.default.timer&&clearTimeout(r.default.timer),O&&(r.default.timer=window.setTimeout(function(){return a.onAction(c.CANCEL_KEY)},O))},A=function(O){O.closeOnEsc?document.addEventListener("keyup",k):document.removeEventListener("keyup",k),O.dangerMode?g():p(),B(),S(O.closeOnClickOutside),x(O.timer)};e.default=A},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(3),l=n(37),c=n(38),d={title:null,text:null,icon:null,buttons:a.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},u=Object.assign({},d);e.setDefaults=function(h){u=Object.assign({},d,h)};var f=function(h){var g=h&&h.button,p=h&&h.buttons;return g!==void 0&&p!==void 0&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),g!==void 0?{confirm:g}:p},y=function(h){return r.ordinalSuffixOf(h+1)},m=function(h,g){r.throwErr(y(g)+" argument ('"+h+"') is invalid")},w=function(h,g){var p=h+1,E=g[p];r.isPlainObject(E)||E===void 0||r.throwErr("Expected "+y(p)+" argument ('"+E+"') to be a plain object")},k=function(h,g){var p=h+1,E=g[p];E!==void 0&&r.throwErr("Unexpected "+y(p)+" argument ("+E+")")},C=function(h,g,p,E){var I=typeof g,B=I==="string",N=g instanceof Element;if(B){if(p===0)return{text:g};if(p===1)return{text:g,title:E[0]};if(p===2)return w(p,E),{icon:g};m(g,p)}else{if(N&&p===0)return w(p,E),{content:g};if(r.isPlainObject(g))return k(p,E),g;m(g,p)}};e.getOpts=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];var p={};h.forEach(function(B,N){var S=C(0,B,N,h);Object.assign(p,S)});var E=f(p);p.buttons=a.getButtonListOpts(E),delete p.button,p.content=l.getContentOpts(p.content);var I=Object.assign({},d,u,p);return Object.keys(I).forEach(function(B){c.DEPRECATED_OPTS[B]&&c.logDeprecation(B)}),I}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(l){var c={};return r.isPlainObject(l)?Object.assign(c,l):l instanceof Element?{element:l}:l==="input"?a:null}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(r){var a=e.DEPRECATED_OPTS[r],l=a.onlyRename,c=a.replacement,d=a.subOption,u=a.link,f=l?"renamed":"deprecated",y='SweetAlert warning: "'+r+'" option has been '+f+".";c&&(y+=" Please use"+(d?' "'+d+'" in ':" ")+'"'+c+'" instead.');var m="https://sweetalert.js.org";y+=u?" More details: "+m+u:" More details: "+m+"/guides/#upgrading-from-1x",console.warn(y)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])})}(Xt)),Xt.exports}var wr=yr();const nt=_r(wr);let Fe=1;const vr=()=>{const i=o.ref(null);function s(){i.value.hide()}function t(u=null){i.value.$emit("ok",u)}function e(){i.value.hide()}function n(u,f={}){return new Promise(y=>{const m=`kt-dialog-${Fe++}`,w=document.createElement("div");w.setAttribute("id",m),document.body.appendChild(w);const k=()=>{C.unmount(),document.body.contains(w)&&document.body.removeChild(w),document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";const h=document.querySelector(".modal-backdrop");h&&h.remove()},C=o.createApp(u,{...f,onOk:h=>{y(h),k()},onCancel:()=>{y(!1),k()}}).use(fe);C.mount(w),kt.init()})}function r(u){return nt({title:"Are you sure?",text:u,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})}function a(u){return nt({title:u.title,text:u.subtitle,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})}function l(u){return nt(u,{icon:"success"})}function c(u){return nt(u,{icon:"error",title:"Error"})}function d(u){return nt({title:"Warning",text:u,icon:"warning"})}return{dialog:n,showConfirmDialog:r,showCustomConfirmDialog:a,showSuccessDialog:l,showErrorDialog:c,showWarningDialog:d,dialogRef:i,onDialogHide:s,onDialogOk:t,onDialogCancel:e}},He=o.defineComponent({methods:{dialog(i){const s=`kt-dialog-${Fe++}`,t=document.createElement("div");t.setAttribute("id",s),document.body.appendChild(t),o.createApp(i).use(fe).mount(t),kt.init()},onDialogOk(i=null){this.$emit("ok",i)},onDialogCancel(){this.$emit("cancel")},onDialogHide(){this.$refs.dialog.hide()},showConfirmDialog(i){return nt({title:"Are you sure?",text:i,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})},showCustomConfirmDialog(i){return nt({title:i.title,text:i.subtitle,icon:"warning",buttons:[!0,"Confirm"],dangerMode:!0})},showSuccessDialog(i){return nt(i,{icon:"success"})},showErrorDialog(i){return nt(i,{icon:"error",title:"Error"})},showWarningDialog(i){return nt({title:"Warning",text:i,icon:"warning"})}}}),Er=o.defineComponent({inject:["$dialogOnCancel"],mixins:[He],props:{title:String,fixed:{type:Boolean,default:!1},close:{type:Boolean,default:!1},onCloseAction:{type:Function,default:null}},methods:{handleClose(){typeof this.onCloseAction=="function"?this.onCloseAction():this.$dialogOnCancel()}}}),kr=["textContent"];function xr(i,s,t,e,n,r){const a=o.resolveComponent("kt-button");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["modal-header bg-inherit",{"kt-dialog-header-fixed":i.fixed}])},[o.renderSlot(i.$slots,"default",{},()=>[o.createElementVNode("h3",{class:"modal-title",textContent:o.toDisplayString(i.title)},null,8,kr),i.close?(o.openBlock(),o.createBlock(a,{key:0,icon:{type:"outline",name:"cross"},"icon-only":"",type:"light",size:"xs",onClick:i.handleClose},null,8,["onClick"])):o.createCommentVNode("",!0)],!0)],2)}const Cr=P(Er,[["render",xr],["__scopeId","data-v-b6ffd26d"]]),Or={},Sr={class:"modal-body md:min-h-[30vh] p-5"};function Ir(i,s){return o.openBlock(),o.createElementBlock("div",Sr,[o.renderSlot(i.$slots,"default")])}const Ar=P(Or,[["render",Ir]]),Tr={},Lr={class:"modal-footer justify-end"};function Br(i,s){return o.openBlock(),o.createElementBlock("div",Lr,[o.renderSlot(i.$slots,"default")])}const Nr=P(Tr,[["render",Br]]),Pr={},Dr={class:"modal-content overflow-auto w-full md:min-w-[500px] animate-scale-in",style:{maxWidth:"800px",maxHeight:"90vh"}};function Mr(i,s){return o.openBlock(),o.createElementBlock("div",Dr,[o.renderSlot(i.$slots,"default")])}const Vr=P(Pr,[["render",Mr]]),$r={props:{component:{type:Object,required:!0},componentProps:{type:Object,default:()=>({})},dialogKey:{type:String,required:!0},onOk:Function,onCancel:Function},methods:{handleCancel(){const i=this.$refs.component;i.$refs.dialog&&(i.$refs.dialog.$refs.dialog.classList.remove("open"),setTimeout(()=>{this.onCancel()},300))},handleOk(){const i=this.$refs.component;i.$refs.dialog&&(i.$refs.dialog.$refs.dialog.classList.remove("open"),setTimeout(()=>{this.onOk(value)},300))}},provide(){return{$dialogOnOk:i=>{this.handleOk(i)},$dialogOnCancel:()=>{this.handleCancel()}}}};function Rr(i,s,t,e,n,r){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.component),o.mergeProps(t.componentProps,{onOk:t.onOk,onCancel:t.onCancel,ref:"component"}),null,16,["onOk","onCancel"])}const jr=P($r,[["render",Rr]]),zr={props:{label:{type:String,required:!0},name:{type:String,required:!0},icon:[String,Object],btnTab:{type:Boolean,default:!1}},inject:["active","setActive"],methods:{selectTab(i){typeof this.setActive=="function"&&this.setActive(i)}}};function qr(i,s,t,e,n,r){var l,c;const a=o.resolveComponent("kt-icon");return t.btnTab?(o.openBlock(),o.createElementBlock("button",{key:1,class:"btn btn-icon",onClick:s[1]||(s[1]=d=>r.selectTab(t.name)),style:{cursor:"pointer"}},[o.createVNode(a,{name:t.icon,class:o.normalizeClass({"text-primary":r.active===t.name})},null,8,["name","class"])])):(o.openBlock(),o.createElementBlock("button",{key:0,class:o.normalizeClass(["tab",{active:r.active===t.name}]),onClick:s[0]||(s[0]=d=>r.selectTab(t.name)),style:{cursor:"pointer"}},[t.icon?(o.openBlock(),o.createBlock(a,{key:0,name:typeof t.icon=="string"?t.icon:(l=t.icon)==null?void 0:l.name,type:(c=t.icon)==null?void 0:c.type},null,8,["name","type"])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.label),1)],2))}const Fr=P(zr,[["render",qr]]),Hr={props:{name:{type:[String,Number],required:!0}},computed:{isActive(){return this.$parent.modelValue===this.name}}},Ur={key:0};function Kr(i,s,t,e,n,r){return r.isActive?(o.openBlock(),o.createElementBlock("div",Ur,[o.renderSlot(i.$slots,"default")])):o.createCommentVNode("",!0)}const Wr=P(Hr,[["render",Kr]]),Yr={props:{modelValue:{type:String,required:!0}}},Zr={"data-tabs":"true"};function Xr(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock("div",Zr,[o.renderSlot(i.$slots,"default")])}const Gr=P(Yr,[["render",Xr]]),Jr={props:{modelValue:String,btnTabs:{type:Boolean,default:!1}},provide(){return{setActive:i=>this.$emit("update:modelValue",i),active:o.computed(()=>this.modelValue)}}};function Qr(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({"btn-tabs":t.btnTabs,tabs:!t.btnTabs})},[o.renderSlot(i.$slots,"default")],2)}const to=P(Jr,[["render",Qr]]),eo={name:"KtPageTitle",computed:{computedBreadcrumbs(){const i=[],s=this.$route.params;return this.$route.matched.forEach(t=>{var n;const e=(n=t.meta)==null?void 0:n.breadcrumb;Array.isArray(e)?e.forEach(r=>{i.push({label:this.resolveDynamicValue(r.label,s,!1),to:r.to?this.resolveDynamicValue(r.to,s,!0):void 0})}):typeof e=="string"&&i.push({label:this.resolveDynamicValue(e,s,!1),to:this.resolveDynamicValue(t.path,s,!0)})}),i},pageTitle(){const i=this.computedBreadcrumbs[this.computedBreadcrumbs.length-1];return(i==null?void 0:i.label)||"Unnamed Page"}},methods:{resolveDynamicValue(i,s,t){if(!i||typeof i!="string")return i;let e=i;const n=/:([a-zA-Z0-9_]+)/g;return e=e.replace(n,(r,a)=>{const l=s[a];return l!=null?t?l:String(l).replace(/-/g," "):r}),e}}},no={class:"kt-page-title flex flex-col gap-1"},io={class:"text-gray-900 text-lg font-semibold"},so={key:0,class:"mx-1 text-gray-400 text-sm"},ro={key:2,class:"text-gray-500 text-sm"};function oo(i,s,t,e,n,r){const a=o.resolveComponent("kt-breadcrumbs-el"),l=o.resolveComponent("kt-breadcrumbs");return o.openBlock(),o.createElementBlock("div",no,[o.createElementVNode("h1",io,o.toDisplayString(r.pageTitle),1),o.createVNode(l,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.computedBreadcrumbs,(c,d)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:d},[d>0?(o.openBlock(),o.createElementBlock("span",so," / ")):o.createCommentVNode("",!0),c.to?(o.openBlock(),o.createBlock(a,{key:1,to:c.to,label:c.label},null,8,["to","label"])):(o.openBlock(),o.createElementBlock("span",ro,o.toDisplayString(c.label),1))],64))),128))]),_:1})])}const ao=P(eo,[["render",oo]]),lo={};function co(i,s){const t=o.resolveComponent("kt-card");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(t,{class:"p-4 animate-pulse flex flex-col gap-4"},{default:o.withCtx(()=>s[0]||(s[0]=[o.createElementVNode("div",{class:"max-w-40 bg-gray-500 rounded-md p-2 animate-pulse"},null,-1),o.createElementVNode("div",{class:"w-full h-40 bg-gray-500 rounded-md p-2 animate-pulse"},null,-1)])),_:1})])}const uo=P(lo,[["render",co]]),ho={props:{modelValue:String,options:{type:Array,required:!0},required:{type:Boolean,default:!1},label:String,disabled:{type:Boolean,default:!1}},data(){return{buttons:[{name:"Today",value:"today"},{name:"Week",value:"week"},{name:"Month",value:"month"},{name:"All",value:"all"}]}},methods:{setActive(i){this.$emit("update:modelValue",i)}}},fo={key:0,class:"form-label flex items-center max-w-full pb-2"},po={key:0,class:"text-danger pl-1"},mo={class:"btn-group w-full flex"},go=["onClick","disabled"],_o={key:1,class:"text-xs text-red-500"};function bo(i,s,t,e,n,r){return o.openBlock(),o.createElementBlock(o.Fragment,null,[t.label?(o.openBlock(),o.createElementBlock("label",fo,[o.createTextVNode(o.toDisplayString(t.label)+": ",1),t.required?(o.openBlock(),o.createElementBlock("span",po," * ")):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",mo,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.options,(a,l)=>(o.openBlock(),o.createElementBlock("button",{key:a.value,class:o.normalizeClass(["btn flex-1 justify-center",t.modelValue===a.value?"btn-primary":"btn-light"]),onClick:c=>r.setActive(a.value),disabled:t.disabled},o.toDisplayString(a.name),11,go))),128))]),i.inputRequired&&i.touched?(o.openBlock(),o.createElementBlock("span",_o," This field is required! ")):o.createCommentVNode("",!0)],64)}const yo=P(ho,[["render",bo]]),wo={__name:"KtChip",props:{label:String,color:String},setup(i){const s=i,t=o.computed(()=>[`bg-${s.color}-200`,`text-${s.color}-700`,"rounded-lg","px-4","py-2","font-bold"]);return(e,n)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.value)},o.toDisplayString(i.label),3))}},vo={props:{title:{type:String,default:"Title"},content:{type:String,default:"Content"},disabled:{type:Boolean,default:!1},actionFirst:{type:Boolean,default:!1}},data(){return{active:!1,contentHeight:"0px"}},methods:{async toggleAccordion(){this.disabled||(this.active=!this.active,await o.nextTick(),this.active?this.contentHeight=this.$refs.content.scrollHeight+"px":this.contentHeight="0px")}}},Eo={class:"accordion-item border rounded-xl relative bg-white"},ko=["disabled"],xo={class:"text-lg uppercase text-gray-900 font-medium flex gap-3 w-full"},Co={key:0,class:"flex items-center"},Oo={key:0,class:"ki-outline ki-down text-gray-600 text-md"},So={key:1,class:"ki-outline ki-up text-gray-600 text-md"},Io={class:"flex flex-row gap-4 items-center"},Ao={key:0},To={key:0,class:"ki-outline ki-down text-gray-600 text-md"},Lo={key:1,class:"ki-outline ki-up text-gray-600 text-md"},Bo={key:0,class:"tooltip-disabled"},No={class:"text-gray-700 text-md p-4"};function Po(i,s,t,e,n,r){const a=o.resolveComponent("kt-icon");return o.openBlock(),o.createElementBlock("div",Eo,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-toggle p-4 flex justify-between items-center w-full",{"opacity-50 cursor-not-allowed":t.disabled}]),disabled:t.disabled,onClick:s[0]||(s[0]=(...l)=>r.toggleAccordion&&r.toggleAccordion(...l))},[o.createElementVNode("span",xo,[t.actionFirst?(o.openBlock(),o.createElementBlock("div",Co,[n.active?(o.openBlock(),o.createElementBlock("i",So)):(o.openBlock(),o.createElementBlock("i",Oo))])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"title")]),o.createElementVNode("div",Io,[o.renderSlot(i.$slots,"slot-right"),t.actionFirst?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ao,[n.active?(o.openBlock(),o.createElementBlock("i",Lo)):(o.openBlock(),o.createElementBlock("i",To))]))])],10,ko),t.disabled?(o.openBlock(),o.createElementBlock("div",Bo,[o.createVNode(a,{class:"text-3xl text-blue-100",name:"ki-outline ki-information"}),o.renderSlot(i.$slots,"disabled-tooltip",{},()=>[s[1]||(s[1]=o.createTextVNode("This section is disabled."))]),s[2]||(s[2]=o.createElementVNode("div",{class:"tooltip-arrow"},null,-1))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"content",class:o.normalizeClass(["accordion-content transition-all duration-700 ease-in-out",{"border-t":n.active}]),style:o.normalizeStyle({height:n.active?n.contentHeight:"0px"})},[o.createElementVNode("div",No,[o.renderSlot(i.$slots,"content")])],6)])}const Do=P(vo,[["render",Po]]),fe={install(i,s){i.component("KtCard",Me),i.component("KtCardHeader",Ve),i.component("KtCardBody",$e),i.component("KtCardTitle",Re),i.component("KtIcon",Zt),i.component("KtButton",he),i.component("KtAvatar",wi),i.component("KtBreadcrumbs",Bi),i.component("KtBreadcrumbsEl",Di),i.component("KtMenu",Ri),i.component("KtMenuItem",Fi),i.component("KtMenuLink",Wi),i.component("KtSubMenu",Xi),i.component("KtPagination",je),i.component("KtTable",ws),i.component("KtBadge",ki),i.component("KtSwitch",Os),i.component("KtSeparator",Ts),i.component("KtInput",Us),i.component("KtInputLabel",Xs),i.component("KtTextarea",ir),i.component("KtSelect",ze),i.component("KtDialog",gr),i.component("KtDialogHeader",Cr),i.component("KtDialogBody",Ar),i.component("KtDialogFooter",Nr),i.component("KtDialogContent",Vr),i.component("KtDialogManager",jr),i.component("ktTab",Fr),i.component("ktTabPanel",Wr),i.component("ktTabPanels",Gr),i.component("ktTabs",to),i.component("KtPageTitle",ao),i.component("KtSkeletonCard",uo),i.component("KtButtonGroup",yo),i.component("KtSelect",ze),i.component("KtChip",wo),i.component("KtAccordion",Do)}};H.KTComponent=kt,H.KtPlugin=fe,H.dialog=He,H.useDialog=vr,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
61
61
|
//# sourceMappingURL=metronics-vue.umd.js.map
|