(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@charset "UTF-8";.v-dialog,.v-dialog-lite{position:fixed;z-index:1050;outline:0}.v-dialog-lite{left:0;right:0}.v-dialog{position:fixed}.v-dialog.v-dialog--content-center{display:flex;justify-content:center;align-items:center}.v-dialog.v-dialog--screen-center{left:50%;top:50%;transform:translate(-50%,-50%)}.v-dialog.v-dialog--horizontal-center{left:50%;transform:translate(-50%)}.v-dialog.v-dialog--embedded{position:absolute}.v-dialog .v-dialog-content{outline:0;position:relative;background-color:#fff;box-shadow:0 3rem 5rem #00000080;border-radius:1rem;border:0;overflow:hidden;display:flex;flex-direction:column;transition:all .2s ease-out}.v-dialog .v-dialog-header{display:flex;align-items:center;flex-shrink:0;height:42px}.v-dialog .v-dialog-header h3{margin:0;font-size:18px;padding:0 15px;font-weight:500;flex-grow:1;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-dialog .v-dialog-body{position:relative;width:100%;padding:0;overflow:auto;box-sizing:border-box;flex-grow:1}.v-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#00000080}.v-dialog-overlay.v-dialog-overlay--blur{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.v-dialog-overlay.v-dialog-overlay--embedded{position:absolute}.v-dialog-icon{display:inline-flex;width:1em;height:1em}@keyframes soft-candy-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}.v-dialog--candy-enter-active{animation:soft-candy-show .3s ease-out}.v-dialog--candy-leave-active{transform:scale(.5);transition:transform .2s linear,opacity .2s linear;opacity:0}.v-dialog--smooth-enter-active,.v-dialog--smooth-leave-active{transition:transform .25s ease-in-out,opacity .15s ease-in-out!important}.v-dialog--smooth-enter-from,.v-dialog--smooth-leave-to{transform:scale(.5);opacity:0}.v-dialog--fade-enter-active,.v-dialog--fade-leave-active{will-change:opacity;transition:opacity .3s cubic-bezier(.4,0,.2,1)}.v-dialog--fade-enter-from,.v-dialog--fade-leave-to{opacity:0}.v-dialog--fade-lite-enter-active,.v-dialog--fade-lite-leave-active{transition:opacity .3s ease-in-out}.v-dialog--fade-lite-enter-from,.v-dialog--fade-lite-leave-to{opacity:0}@keyframes animated-buzz-out{10%{transform:translate(3px) rotate(2deg)}20%{transform:translate(-3px) rotate(-2deg)}30%{transform:translate(3px) rotate(2deg)}40%{transform:translate(-3px) rotate(-2deg)}50%{transform:translate(2px) rotate(1deg)}60%{transform:translate(-2px) rotate(-1deg)}70%{transform:translate(2px) rotate(1deg)}80%{transform:translate(-2px) rotate(-1deg)}90%{transform:translate(1px) rotate(0)}to{transform:translate(-1px) rotate(0)}}.v-dialog--buzz-out{animation-name:animated-buzz-out;animation-duration:.75s;animation-timing-function:linear;animation-iteration-count:1}.v-dialog-modal{left:0;right:0;top:0;bottom:0}.v-dialog-modal.v-dialog-modal--maximize{padding-right:0!important}.v-dialog-modal.v-dialog-modal--maximize .v-dialog-content{width:100vw!important;height:100vh!important;border-radius:0}.v-dialog-modal.v-dialog-modal--maximize .v-dialog-header{background-color:#eee}.v-dialog-modal .v-dialog-content{border-radius:.5rem;transition:width .2s ease-in-out,height .2s ease-in-out;min-width:400px;min-height:200px}.v-dialog-modal .v-dialog-content .v-dialog-header button{width:60px;height:100%;transition:all .3s ease-out;text-shadow:none;outline:none!important;margin:0;opacity:.3;font-size:18px!important;border:0;background-color:transparent;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0}.v-dialog-modal .v-dialog-content .v-dialog-header button:hover{opacity:1}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__close{font-weight:400}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__close:hover{background-color:#e81123;color:#fff}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__maximize:hover{background-color:#e0e0e0}.v-dialog-modal .v-dialog-content .v-dialog-body{padding:0!important}.v-dialog-mask{left:0;right:0;top:0;bottom:0}.v-dialog-mask .v-dialog-content.mask--pill{border-radius:50rem}.v-dialog-mask .v-dialog-content.mask--no-icon .v-dialog-mask__content{margin-left:2rem!important}.v-dialog-mask .v-dialog-content.mask--no-panel{box-shadow:none!important;background-color:transparent}.v-dialog-mask .v-dialog-body{overflow:hidden!important;display:flex;align-items:center;min-width:300px;max-width:400px;color:#333}.v-dialog-mask .v-dialog-body .v-dialog-mask__content,.v-dialog-mask .v-dialog-body .v-dialog-mask__icon{display:flex;align-items:center}.v-dialog-mask .v-dialog-body .v-dialog-mask__content{margin:0 1.5rem 0 1rem;font-size:1rem;line-height:1.3;overflow-y:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis}.v-dialog-mask .v-dialog-body .v-dialog-mask__icon{padding-left:17px;flex-shrink:0}.v-dialog-mask .v-dialog-body .v-dialog-icon-loading{font-size:2rem}.v-dialog-mask-parent--relative{position:relative!important}.v-dialog-drawer.v-dialog-drawer--top{top:0;left:0}.v-dialog-drawer.v-dialog-drawer--bottom{bottom:0;left:0}.v-dialog-drawer.v-dialog-drawer--left{top:0;left:0}.v-dialog-drawer.v-dialog-drawer--right{top:0;right:0}.v-dialog-drawer .v-dialog-content{border-radius:0;min-width:400px;min-height:200px}.v-dialog-drawer .v-dialog-content .v-dialog-header button{width:60px;height:100%;transition:all .3s ease-out;text-shadow:none;outline:none!important;margin:0;opacity:.3;font-size:18px!important;border:0;background-color:transparent;display:inline-flex;justify-content:center;align-items:center}.v-dialog-drawer .v-dialog-content .v-dialog-header button:hover{opacity:1}.v-dialog-drawer .v-dialog-content .v-dialog-header button.v-dialog-btn__close{font-weight:400}.v-dialog-drawer .v-dialog-content .v-dialog-header button.v-dialog-btn__close:hover{background-color:#e81123;color:#fff}.v-dialog-drawer .v-dialog-content .v-dialog-body{padding:0!important}.v-dialog-drawer-slide-in-top-enter-active,.v-dialog-drawer-slide-in-top-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-top-enter-from,.v-dialog-drawer-slide-in-top-leave-to{transform:translateY(-100%);opacity:0}.v-dialog-drawer-slide-in-bottom-enter-active,.v-dialog-drawer-slide-in-bottom-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-bottom-enter-from,.v-dialog-drawer-slide-in-bottom-leave-to{transform:translateY(100%);opacity:0}.v-dialog-drawer-slide-in-left-enter-active,.v-dialog-drawer-slide-in-left-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-left-enter-from,.v-dialog-drawer-slide-in-left-leave-to{transform:translate(-100%);opacity:0}.v-dialog-drawer-slide-in-right-enter-active,.v-dialog-drawer-slide-in-right-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-right-enter-from,.v-dialog-drawer-slide-in-right-leave-to{transform:translate(100%);opacity:0}.v-dialog-alert{left:0;right:0;top:0;bottom:0}.v-dialog-alert.no-icon .v-dialog-alert__content{padding-left:15px}.v-dialog-alert.no-header .v-dialog-alert__content{padding-top:2rem}.v-dialog-alert .v-dialog-content{overflow:hidden;display:flex;flex-direction:column;background-color:#fff}.v-dialog-alert .v-dialog-footer{flex-shrink:0;overflow:hidden}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons{display:flex;justify-content:flex-end;padding:0 1rem 1rem 0}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons button{outline:none!important;padding:8px 15px;min-width:90px;border-radius:.7rem;font-size:14px;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons button:active{box-shadow:0 10px 20px #0003,0 6px 6px #0000003b}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons .v-dialog-btn__ok{border:1px solid #516270;background-color:#516270;color:#fff}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons .v-dialog-btn__cancel{border:1px solid #F0F0F0;background-color:#f0f0f0;margin-left:1rem}.v-dialog-alert .v-dialog-alert__content{overflow-y:auto;min-height:100px;flex-grow:1;display:flex;padding:1rem}.v-dialog-alert .v-dialog-alert__content .v-dialog-alert__icon{display:flex;padding:0 2rem 0 1rem;font-size:3rem;color:#333;filter:drop-shadow(4px 5px 5px rgba(0,0,0,.6))}.v-dialog-alert .v-dialog-alert__content .v-dialog-alert__message{flex-grow:1;font-size:14px;line-height:1.5;padding-top:5px}.v-dialog-alert .alert-warning .v-dialog-alert__icon{color:#ff9800;filter:drop-shadow(4px 5px 5px rgba(255,152,0,.8))}.v-dialog-alert .alert-error .v-dialog-alert__icon{color:#f44336;filter:drop-shadow(4px 5px 5px rgba(244,67,54,.8))}.v-dialog-alert .alert-success .v-dialog-alert__icon{color:#198754;filter:drop-shadow(4px 5px 5px rgba(25,135,84,.8))}.v-dialog-alert .alert-confirm .v-dialog-alert__icon{color:#3f51b5;filter:drop-shadow(4px 5px 5px rgba(63,81,181,.9))}.v-dialog__shadow--error{box-shadow:0 1rem 5rem #ff000080!important}.v-dialog__shadow--warning{box-shadow:0 1rem 5rem #ffa50080!important}.v-dialog__shadow--success{box-shadow:0 1rem 5rem #00ff0080!important}.v-dialog-message{background-color:transparent;overflow:unset;transition:all .3s;display:flex;justify-content:center;left:50%;right:unset;transform:translate(-50%)}.v-dialog-message .v-dialog-body{border-radius:1rem;box-shadow:0 2.5rem 8rem #000000e6;overflow:hidden;display:flex;align-items:center;background-color:#0006;-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);min-height:52px;max-width:500px}.v-dialog-message .v-dialog-body.v-dialog-message--pill{border-radius:2rem}.v-dialog-message .v-dialog-body.v-dialog-message--no-icon .v-dialog-message__body{padding:.5rem 2rem}.v-dialog-message .v-dialog-body.message-warning .v-dialog-message__prepend{color:#ff9800;filter:drop-shadow(4px 5px 5px rgba(255,152,0,.95))}.v-dialog-message .v-dialog-body.message-error .v-dialog-message__prepend{color:#f44336;filter:drop-shadow(4px 5px 5px rgba(244,67,54,.95))}.v-dialog-message .v-dialog-body.message-success .v-dialog-message__prepend{color:#198754;filter:drop-shadow(4px 5px 5px rgba(25,135,84,.95))}.v-dialog-message__prepend,.v-dialog-message__append{width:40px;flex-shrink:0;display:flex;align-items:center;font-size:1.3rem}.v-dialog-message__prepend{justify-content:flex-end;filter:drop-shadow(4px 5px 5px rgba(0,0,0,.95))}.v-dialog-message__append{justify-content:flex-start}.v-dialog-message__body{display:flex;align-items:center;font-size:14px;line-height:1.3;flex-grow:1;padding:.5rem 1rem;overflow:hidden;height:100%}.v-dialog-message__close{cursor:pointer}.v-dialog-toast{background-color:transparent;box-sizing:border-box;transition:all .3s}.v-dialog-toast .v-dialog-body{position:relative;display:flex;padding:1rem;box-shadow:0 5px 40px #0006;border-radius:.7rem;border-width:2px;border-style:solid;border-color:#ccc;color:#333;background-color:#fff;width:300px}.v-dialog-toast .v-dialog-body.toast-warning{border-color:#333;background-color:#f5cf87}.v-dialog-toast .v-dialog-body.toast-error{background-color:#ff5252;border-color:#bf2a2a;color:#fff}.v-dialog-toast .v-dialog-body.toast-error .v-dialog-toast__append{color:#ccc}.v-dialog-toast .v-dialog-body.toast-error .v-dialog-toast__append:hover{color:#fff}.v-dialog-toast .v-dialog-body.toast-success{background-color:#2cbe4e;border-color:#0a8427;color:#1b5e20}.v-dialog-toast .v-dialog-body.toast-success .v-dialog-toast__append{color:#666}.v-dialog-toast .v-dialog-body.toast-success .v-dialog-toast__append:hover{color:#000}.v-dialog-toast--left{left:16px;right:unset}.v-dialog-toast--right{left:unset;right:16px}.v-dialog-toast__prepend,.v-dialog-toast__append{display:flex;justify-content:center;flex-shrink:0}.v-dialog-toast__prepend{font-size:1.3rem}.v-dialog-toast__body{flex-grow:1;padding:0 10px;font-size:14px;overflow:hidden;min-height:60px}.v-dialog-toast__body h3{margin:0 0 3px;font-size:16px;font-weight:600}.v-dialog-toast__body div{font-size:14px;line-height:1.4;margin:0}.v-dialog-toast__append{color:#999;font-size:1rem;outline:none;transition:all .3s}.v-dialog-toast__append:hover{color:#000}.v-dialog-toast__close{cursor:pointer}')),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); (function(f,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(f=typeof globalThis<"u"?globalThis:f||self,t(f.VDialogs={},f.Vue))})(this,function(f,t){"use strict";const p=Symbol("props"),ve="$dlg",We="v-dialogs-",je=5100,ze=50,He="100vw",Re="100vh",Ge=450,Fe=210,de=32,Ze=15,Ke=16,ue=700,fe=400,$="info",D="warning",N="error",k="success",W="confirm",Ye=400,Ue=300,O="top",X="bottom",qe="left",H="right",ge="top-left",R="top-right",me="bottom-left",Xe="bottom-right",he="close",J="render-dialog",Q="v-dialog-message-adjust-position",pe=[O,X,qe,H],Je=[D,N,k],ee=[D,N,k],[qn,Xn,te,Jn,Qn,ne]=["modal","alert","toast","drawer","mask","message"],G=t.ref(0),j=t.ref([]),Qe=new Event(Q);function et(){return G.value++,We+G.value}function M(e,n={},o){var g;const{index:a,key:i}=_e(o),l={dialogKey:i,dialogIndex:a,onClose:(u,h)=>{u&&u(h),d()}};let s=t.createVNode(e,t.mergeProps(n,l));const c=((g=t.getCurrentInstance())==null?void 0:g.appContext)??null;s.appContext=c;let r=document.createElement("div");t.render(s,r);const d=()=>{t.render(null,r),r=null,s=null,tt(i)};return()=>{s.component.exposed.close()}}function _e(e){const n=et();return j.value.push({key:n,index:G.value,singletonKey:"",...e}),{key:n,index:G.value}}function tt(e){j.value.length&&(j.value=j.value.filter(n=>n.key!==e))}const[nt,F,ot,at,lt]=["cn","en","pt","jp","tr"],oe={[nt]:{titleInfo:"提示",titleWarning:"警告",titleError:"错误",titleSuccess:"成功",titleConfirm:"确认",btnOk:"确认",btnCancel:"取消",maskText:"数据加载中……"},[F]:{titleInfo:"Information",titleWarning:"Warning",titleError:"Error",titleSuccess:"Success",titleConfirm:"Confirmation",btnOk:"OK",btnCancel:"Cancel",maskText:"Loading……"},[ot]:{titleInfo:"Aviso",titleWarning:"Alerta",titleError:"Erro",titleSuccess:"Sucesso",titleConfirm:"Confirmaço",btnOk:"OK",btnCancel:"Cancelar",maskText:"Carregando……"},[at]:{titleInfo:"ヒント",titleWarning:"警告",titleError:"間違った",titleSuccess:"成功",titleConfirm:"確認",btnOk:"確認",btnCancel:"キャンセル",maskText:"データロード……"},[lt]:{titleInfo:"Bilgi",titleWarning:"Uyarı",titleError:"Hata",titleSuccess:"Başarılı",titleConfirm:"Onay",btnOk:"Evet",btnCancel:"İptal",maskText:"Yükleniyor"}},it={dialogKey:{type:String,default:""},dialogIndex:{type:Number,required:!0},singletonKey:{type:String,default:""},customClass:{type:String,default:""},backdrop:{type:Boolean,default:!0},backdropClose:{type:Boolean,default:!1},header:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:[String,Object],default:""},width:{type:Number,default:0},height:{type:Number,default:0},shake:{type:Boolean,default:!1},language:{type:String,default:F},callback:{type:Function,default:void 0}},st=[he,J],ct={backdrop:!0},rt={backdrop:!0,backdropClose:!1},dt={backdrop:!0,backdropClose:!1,shake:!1},ut={shake:!1};function L(e){return{...it,...e}}function P(e=[]){return[...st,...e]}function ye(e,n){switch(e){case D:return n.titleWarning;case N:return n.titleError;case k:return n.titleSuccess;case W:return n.titleConfirm;default:return n.titleInfo}}function z(e,n,o){if(typeof n=="object"&&typeof o=="object"||typeof n=="function"&&typeof o=="function"){console.warn("Invalid parameters for v-dialogs");return}const a=Array.from(arguments),i=a.find(l=>typeof l=="object"&&!t.isVNode(l)&&!be(l))||{};return i.message=a.find(l=>typeof l=="string"||t.isVNode(l)||be(l))||"",i.callback=a.find(l=>typeof l=="function"),i}function be(e){return typeof e!="object"?!1:!!(Object.hasOwn(e,"render")||Object.hasOwn(e,"template")||Object.hasOwn(e,"setup"))}function ft(e){return typeof e!="object"?!1:!!(Object.hasOwn(e,"tagName")||Object.hasOwn(e,"tagName")&&e.outerHTML)}function gt(e){return((window.innerHeight||document.documentElement.clientHeight)-e)/2}function mt(e){const n=je+ze*e,o=n-10;return{dialogZIndex:n,backdropZIndex:o}}function ae(e=F){const n=String(e).toLowerCase();return n in oe?oe[n]:oe[F]}function ht(){return document.body.scrollHeight>window.innerHeight}function pt(){if(!ht()||document.body.style.overflowY==="hidden")return;const e=document.documentElement.clientWidth,n=window.innerWidth-e;document.body.style.paddingRight=`${n}px`,document.body.style.overflowY="hidden"}function _t(){document.body.style.removeProperty("overflow-y"),document.body.style.removeProperty("padding-right")}function Z(e,n="px"){return typeof e=="number"?`${e}${n}`:e}function le(e,n,o,a){const i={};return e.forEach(l=>{const[s,...c]=l,r=n+s.toUpperCase()+c.join("");i[r]=function(){const d={...z(...arguments),messageType:l},g=a&&a(d);return M(o,d,g)}}),i}function yt(e){const{component:n,params:o,closeDialogWithCallback:a}=t.inject(p);function i(){if(e.default)return e.default();if(!n)return;const l=typeof n=="function"?n():n,s={onClose:c=>a(c)};return t.h(l,t.mergeProps(o,s))}return{getComponentContent:i}}function bt(e,n){e.duration&&setTimeout(n,e.duration)}function Ct(e,n=200){let o;function a(){clearTimeout(o),o=setTimeout(e,n)}t.onMounted(()=>{addEventListener("resize",a,!1)}),t.onUnmounted(()=>{removeEventListener("resize",a,!1)})}function Dt(e){return{bindPositionAdjust:()=>addEventListener(Q,e,!1),unbindPositionAdjust:()=>removeEventListener(Q,e,!1),triggerPositionAdjust:()=>dispatchEvent(Qe)}}function Ce(e,n,o){const a={closing:()=>{e("update:visible",!1)}};function i(s){n(s,a)}function l(){o(a)}return{closeDialogWithCallback:i,closeDialogWithoutCallback:l}}function De(e,n){const{bindPositionAdjust:o,unbindPositionAdjust:a,triggerPositionAdjust:i}=Dt(e);function l(s){a(),n(s,{afterClose:i})}return o(),{closeGroupDialogWithCallback:l}}function Ne(e,{attrs:n,slots:o}){const a=t.ref(!1),{index:i,key:l}=_e(),s={dialogKey:l,dialogIndex:i,onRenderDialog:c=>{a.value=c}};return()=>{if(!(!n.visible&&!a.value))return t.h(e,t.mergeProps(n,s),()=>o.default())}}function ke(e,n){const o=n.offset||de;function a(){return j.value.filter(l=>l.type===e&&l.placement===n.placement&&l.index{const r=document.getElementById(c.key);s+=r.offsetHeight+Ze}),o+s}return{getVerticalPosition:i}}function v(e,n){const o=t.ref(!1),a=t.ref(!1),i=t.ref(0),l=t.ref(0),s=t.ref(),c=t.ref(),r=t.ref(!1),d=t.ref(!0),g=t.ref(!0),u=t.ref(),{dialogZIndex:h,backdropZIndex:_}=mt(e.dialogIndex),y=t.computed(()=>{const m={};return typeof i.value<"u"&&(m.width=Z(i.value)),typeof l.value<"u"&&(m.height=Z(l.value)),typeof s.value<"u"&&(m.top=Z(s.value)),typeof c.value<"u"&&(m.bottom=Z(c.value)),m});function T(m){return typeof m<"u"?m:gt(l.value)}function b(m,A){i.value=m,l.value=A}function w(m,A){s.value=T(m),typeof A<"u"&&(c.value=A)}function S(){o.value=!0,n(J,!0),d.value&&pt()}function V(m,A,C){var Le;r.value&&(o.value=!1,(Le=C==null?void 0:C.closing)==null||Le.call(C),u.value=()=>{var Pe;n(he,m,A),(Pe=C==null?void 0:C.afterClose)==null||Pe.call(C),n(J,!1),d.value&&_t()})}function B(m,A){V(e.callback,m,A)}function I(m){V(void 0,void 0,m)}function x(m){g.value&&Ct(m),t.onBeforeMount(()=>{m()})}function Kn(m){t.onMounted(()=>{bt(e,m)})}function Yn(){r.value=!0}function Un(){u.value&&u.value()}return{show:o,shaking:a,transitionEnterComplete:r,shouldControlOverflow:d,shouldHandleResize:g,dialogStyles:y,dialogZIndex:h,backdropZIndex:_,openDialog:S,destroy:u,closeDialog:V,closeWithCallback:B,closeWithoutCallback:I,setPosition:w,setDialogSize:b,setupAutomaticClose:Kn,setupPositionAdjustBehavior:x,onTransitionAfterEnter:Yn,onTransitionAfterLeave:Un}}const K=t.defineComponent({name:"DialogContainer",props:{containerClass:{type:[String,Array,Object],default:""},backdropClass:{type:[String,Array,Object],default:""},transitionName:{type:String,default:""},appendTo:{type:[String,Object],default:"body"}},setup(e,{slots:n}){const{show:o,shaking:a,backdrop:i,backdropClose:l,shake:s,dialogZIndex:c,backdropZIndex:r,onTransitionAfterEnter:d,onTransitionAfterLeave:g,backdropCloseDialog:u=void 0}=t.inject(p);function h(){if(i){if(l)return u&&u();s&&(a.value||(a.value=!0,setTimeout(()=>{a.value=!1},750)))}}const _=b=>{b.target===b.currentTarget&&h()};function y(){if(!i)return;const b=["v-dialog-overlay",e.backdropClass,{"v-dialog-overlay--embedded":e.appendTo!=="body"}];return t.createVNode(t.Teleport,{to:e.appendTo},{default:()=>[t.createVNode(t.Transition,{name:"v-dialog--fade",appear:!0},{default:()=>o.value&&t.createVNode("div",{class:b,style:{"z-index":r},onClick:_},null)})]})}function T(){const b=[e.containerClass,{"v-dialog--embedded":e.appendTo!=="body"}],w={"z-index":c};return t.createVNode(t.Teleport,{to:e.appendTo},{default:()=>[t.createVNode("div",{class:["v-dialog",b],style:w,onClick:_},[t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:d,onAfterLeave:g,appear:!0},{default:()=>o.value&&n.default&&n.default()})])]})}return()=>[y(),T()]}}),Y={name:"DialogContentBox",props:{className:{type:[String,Array,Object],default:""}},setup(e,{slots:n}){const{shaking:o,customClass:a,dialogStyles:i}=t.inject(p),l=t.computed(()=>["v-dialog-content",e.className,a,{"v-dialog--buzz-out":o.value}]),s=t.computed(()=>({...i.value}));return()=>t.createVNode("div",{class:l.value,style:s.value},[n.default&&n.default()])}},E=(e,n)=>{const o=e.__vccOpts||e;for(const[a,i]of n)o[a]=i;return o},Nt={},kt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-x-lg",viewBox:"0 0 16 16"},Et=[t.createElementVNode("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"},null,-1)];function Tt(e,n){return t.openBlock(),t.createElementBlock("svg",kt,Et)}const U=E(Nt,[["render",Tt]]),wt={},Vt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-square",viewBox:"0 0 16 16"},At=[t.createElementVNode("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"},null,-1)];function Mt(e,n){return t.openBlock(),t.createElementBlock("svg",Vt,At)}const St=E(wt,[["render",Mt]]),Bt={},It={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-arrows-angle-contract",viewBox:"0 0 16 16"},xt=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M.172 15.828a.5.5 0 0 0 .707 0l4.096-4.096V14.5a.5.5 0 1 0 1 0v-3.975a.5.5 0 0 0-.5-.5H1.5a.5.5 0 0 0 0 1h2.768L.172 15.121a.5.5 0 0 0 0 .707zM15.828.172a.5.5 0 0 0-.707 0l-4.096 4.096V1.5a.5.5 0 1 0-1 0v3.975a.5.5 0 0 0 .5.5H14.5a.5.5 0 0 0 0-1h-2.768L15.828.879a.5.5 0 0 0 0-.707z"},null,-1)];function $t(e,n){return t.openBlock(),t.createElementBlock("svg",It,xt)}const Ot=E(Bt,[["render",$t]]),Lt={setup(){const{maxButton:e,maximize:n,title:o,closeButton:a,switchMaximize:i,closeDialogWithoutCallback:l}=t.inject(p);return()=>t.createVNode("div",{class:"v-dialog-header"},[t.createVNode("h3",null,[o]),e&&t.createVNode("button",{type:"button",class:"v-dialog-btn__maximize",onClick:i},[n.value?t.createVNode(Ot,null,null):t.createVNode(St,null,null)]),a&&t.createVNode("button",{type:"button",class:"v-dialog-btn__close",onClick:l},[t.createVNode(U,null,null)])])}},q={name:"DialogComponentBody",setup(e,{slots:n}){const{getComponentContent:o}=yt(n);return()=>t.createVNode("div",{class:"v-dialog-body"},[o()])}};function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Ee=t.defineComponent({name:"DialogModal",props:L({component:[Function,Object],shake:{type:Boolean,default:!0},title:{type:String,default:"Dialog"},width:{type:Number,default:ue},height:{type:Number,default:fe},params:Object,fullscreen:{type:Boolean,default:!1},maxButton:{type:Boolean,default:!0},closeButton:{type:Boolean,default:!0},visible:{type:Boolean,default:!1}}),emits:P(["update:visible"]),setup(e,{emit:n,slots:o,expose:a}){const{maximize:i,closeDialogWithoutCallback:l,...s}=vt(e,n);t.provide(p,{...e,...s,...rt,closeDialogWithoutCallback:l,maximize:i});const c=t.computed(()=>["v-dialog-modal","v-dialog--content-center",{"v-dialog-modal--maximize":i.value}]);return a({close:l}),()=>{let r;return t.createVNode(K,{"container-class":c.value,"transition-name":"v-dialog--smooth"},{default:()=>[t.createVNode(Y,null,{default:()=>[e.header&&t.createVNode(Lt,null,null),o.default?t.createVNode(q,null,Pt(r=o.default())?r:{default:()=>[r]}):t.createVNode(q,null,null)]})]})}}});function vt(e,n){const{setDialogSize:o,openDialog:a,closeWithCallback:i,closeWithoutCallback:l,...s}=v(e,n),c=t.ref(!1),{closeDialogWithCallback:r,closeDialogWithoutCallback:d}=Ce(n,i,l);t.watch(()=>e.visible,h=>{h||d()});function g(){c.value=!c.value}function u(){a(),e.fullscreen&&g()}return o(e.width||ue,e.height||fe),t.onMounted(()=>{u()}),{...s,maximize:c,openModal:u,switchMaximize:g,closeDialogWithCallback:r,closeDialogWithoutCallback:d,backdropCloseDialog:d}}function Te(e,n={}){const o={...n,component:t.markRaw(e)};return M(Ee,o)}const Wt={},jt={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"v-dialog-icon v-dialog-icon-loading"},zt=[t.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1),t.createElementVNode("path",{d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"},[t.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",dur:"0.75s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})],-1)];function Ht(e,n){return t.openBlock(),t.createElementBlock("svg",jt,zt)}const Rt=E(Wt,[["render",Ht]]),Gt={name:"DialogMaskBody",setup(e,{slots:n}){const{icon:o}=t.inject(p);return()=>t.createVNode("div",{class:"v-dialog-body"},[o&&t.createVNode("div",{class:"v-dialog-mask__icon"},[t.createVNode(Rt,null,null)]),t.createVNode("div",{class:"v-dialog-mask__content"},[n.default&&n.default()])])}},Ft=t.defineComponent({name:"DialogMask",props:L({appendTo:{type:String,default:"body"},pill:{type:Boolean,default:!0},icon:{type:Boolean,default:!0},panel:{type:Boolean,default:!0}}),emits:P(),setup(e,{emit:n,expose:o}){const{messageText:a,closeMaskWithCallback:i,...l}=Zt(e,n);t.provide(p,{...e,...l,...dt});const s=["v-dialog-mask","v-dialog--content-center"],c=[{"mask--pill":e.pill,"mask--no-icon":!e.icon,"mask--no-panel":!e.panel}];return o({close:i}),()=>t.createVNode(K,{"container-class":s,"backdrop-class":{"v-dialog-overlay--blur":!e.panel},"transition-name":"v-dialog--smooth","append-to":e.appendTo},{default:()=>[t.createVNode(Y,{"class-name":c},{default:()=>[t.createVNode(Gt,null,{default:()=>a.value})]})]})}});function Zt(e,n){const{shouldControlOverflow:o,shouldHandleResize:a,setDialogSize:i,openDialog:l,closeWithCallback:s,...c}=v(e,n),{addParentRelative:r,removeParentRelative:d}=Kt(e.appendTo),g=ae(e.language),u=t.computed(()=>e.message||g.maskText);e.appendTo!=="body"&&(a.value=!1,o.value=!1);function h(){s(void 0,{afterClose:()=>d})}return r(),i(void 0,60),t.onMounted(()=>{l()}),{...c,messageText:u,closeMaskWithCallback:h}}function Kt(e){const n=o();function o(){if(typeof e=="string")return document.querySelector(e);if(ft(e))return e}function a(){e!=="body"&&n.classList.add("v-dialog-mask-parent--relative")}function i(){e!=="body"&&n.classList.remove("v-dialog-mask-parent--relative")}return{addParentRelative:a,removeParentRelative:i}}function we(){return M(Ft,z(...arguments))}const Yt={setup(){const{title:e,closeButton:n,closeDialogWithoutCallback:o}=t.inject(p);return()=>t.createVNode("div",{class:"v-dialog-header"},[t.createVNode("h3",null,[e]),n&&t.createVNode("button",{type:"button",class:"v-dialog-btn__close",onClick:o},[t.createVNode(U,null,null)])])}};function Ut(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Ve=t.defineComponent({name:"DialogDrawer",props:L({component:[Function,Object],title:{type:String,default:"Dialog"},width:{type:Number,default:void 0},height:{type:Number,default:void 0},backdropClose:{type:Boolean,default:!0},params:Object,closeButton:{type:Boolean,default:!0},placement:{type:String,default:H},visible:{type:Boolean,default:!1}}),emits:P(["update:visible"]),setup(e,{emit:n,slots:o,expose:a}){const{getPositionClass:i,getTransitionName:l,closeDialogWithoutCallback:s,...c}=qt(e,n);t.provide(p,{...e,...c,...ut,closeDialogWithoutCallback:s});const r=t.computed(()=>["v-dialog-drawer",i()]);return a({close:s}),()=>{let d;return t.createVNode(K,{"container-class":r.value,"transition-name":l()},{default:()=>[t.createVNode(Y,null,{default:()=>[e.header&&t.createVNode(Yt,null,null),o.default?t.createVNode(q,null,Ut(d=o.default())?d:{default:()=>[d]}):t.createVNode(q,null,null)]})]})}}});function qt(e,n){const{setDialogSize:o,openDialog:a,closeWithCallback:i,closeWithoutCallback:l,...s}=v(e,n),{placement:c}=e,{width:r,height:d}=Xt(e),{closeDialogWithCallback:g,closeDialogWithoutCallback:u}=Ce(n,i,l);t.watch(()=>e.visible,y=>{y||u()});function h(){return"v-dialog-drawer--"+(pe.includes(c)?c:H)}function _(){return"v-dialog-drawer-slide-in-"+(pe.includes(c)?c:H)}return o(r,d),t.onMounted(()=>{a()}),{...s,getPositionClass:h,getTransitionName:_,closeDialogWithCallback:g,closeDialogWithoutCallback:u,backdropCloseDialog:u}}function Xt(e){const{width:n,height:o,placement:a}=e,i=n||Ye,l=o||Ue;return a===O||a===X?{width:He,height:l}:{width:i,height:Re}}function Ae(e,n={}){const o={...n,component:t.markRaw(e)};return M(Ve,o)}const Jt={name:"DialogAlertHeader",setup(){const{title:e,lang:n,messageType:o}=t.inject(p),a=e||ye(o,n);return()=>t.createVNode("div",{class:"v-dialog-header"},[t.createVNode("h3",null,[a])])}},Qt={},en={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-info-circle",viewBox:"0 0 16 16"},tn=[t.createElementVNode("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"},null,-1),t.createElementVNode("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"},null,-1)];function nn(e,n){return t.openBlock(),t.createElementBlock("svg",en,tn)}const ie=E(Qt,[["render",nn]]),on={},an={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-exclamation-triangle",viewBox:"0 0 16 16"},ln=[t.createElementVNode("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"},null,-1),t.createElementVNode("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"},null,-1)];function sn(e,n){return t.openBlock(),t.createElementBlock("svg",an,ln)}const se=E(on,[["render",sn]]),cn={},rn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-x-circle",viewBox:"0 0 16 16"},dn=[t.createElementVNode("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"},null,-1),t.createElementVNode("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"},null,-1)];function un(e,n){return t.openBlock(),t.createElementBlock("svg",rn,dn)}const ce=E(cn,[["render",un]]),fn={},gn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-check-circle",viewBox:"0 0 16 16"},mn=[t.createElementVNode("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"},null,-1),t.createElementVNode("path",{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"},null,-1)];function hn(e,n){return t.openBlock(),t.createElementBlock("svg",gn,mn)}const re=E(fn,[["render",hn]]),pn={},_n={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"v-dialog-icon bi-question-circle",viewBox:"0 0 16 16"},yn=[t.createElementVNode("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"},null,-1),t.createElementVNode("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"},null,-1)];function bn(e,n){return t.openBlock(),t.createElementBlock("svg",_n,yn)}const Cn=E(pn,[["render",bn]]),Dn={name:"DialogAlertBody",setup(){const{icon:e,message:n,messageType:o,getAlertTypeClass:a}=t.inject(p),i=["v-dialog-body",a(o)];function l(s){switch(s){case $:return t.createVNode(ie,null,null);case D:return t.createVNode(se,null,null);case N:return t.createVNode(ce,null,null);case k:return t.createVNode(re,null,null);case W:return t.createVNode(Cn,null,null);default:return}}return e||i.push("no-icon"),()=>t.createVNode("div",{class:i},[t.createVNode("div",{class:"v-dialog-alert__content"},[e&&t.createVNode("div",{class:"v-dialog-alert__icon"},[l(o)]),t.createVNode("div",{class:"v-dialog-alert__message"},[n])])])}},Nn={name:"DialogAlertFooter",setup(){const e=t.ref(),{lang:n,cancelAlert:o,isConfirmType:a,closeWithCallback:i}=t.inject(p);return t.onMounted(()=>{e.value&&e.value.focus()}),()=>t.createVNode("div",{class:"v-dialog-footer"},[t.createVNode("div",{class:"v-dialog-alert__buttons"},[t.createVNode("button",{type:"button",class:"v-dialog-btn__ok",ref:e,onClick:i},[n.btnOk]),a()&&t.createVNode("button",{type:"button",class:"v-dialog-btn__cancel",onClick:o},[n.btnCancel])])])}},Me=t.defineComponent({name:"DialogAlert",props:L({messageType:{type:String,default:$},colorfulShadow:{type:Boolean,default:!1},icon:{type:Boolean,default:!0},cancelCallback:{type:Function,default:void 0}}),emits:P(),setup(e,{emit:n,expose:o}){const{getShadowClass:a,closeWithCallback:i,...l}=kn(e,n);return t.provide(p,{...e,...l,...ct,closeWithCallback:i}),o({close:i}),()=>t.createVNode(K,{"container-class":["v-dialog--content-center","v-dialog-alert",{"no-header":!e.header}],"transition-name":"v-dialog--candy"},{default:()=>[t.createVNode(Y,{"class-name":[a()]},{default:()=>[e.header&&t.createVNode(Jt,null,null),t.createVNode(Dn,null,null),t.createVNode(Nn,null,null)]})]})}});function kn(e,n){const{messageType:o,colorfulShadow:a}=e,{setDialogSize:i,openDialog:l,closeDialog:s,closeWithCallback:c,...r}=v(e,n),d=ae(e.language);i(Ge,Fe);const g=()=>W===o;function u(){return[D,N,k,W].includes(o)?`alert-${o}`:""}function h(){return!a||!Je.includes(o)?"":`v-dialog__shadow--${o==null?void 0:o.toLowerCase()}`}function _(){s(e.cancelCallback)}return t.onMounted(()=>{l()}),{...r,lang:d,cancelAlert:_,isConfirmType:g,getAlertTypeClass:u,closeWithCallback:c,backdropCloseDialog:c,getShadowClass:h}}function Se(){return M(Me,z(...arguments))}const{DialogAlertInfo:En,DialogAlertWarning:Tn,DialogAlertError:wn,DialogAlertSuccess:Vn,DialogAlertConfirm:An}=le([...ee,W],"DialogAlert",Me),Mn={name:"DialogMessageBody",setup(){const{icon:e,pill:n,message:o,messageType:a,closeButton:i,closeGroupDialogWithCallback:l}=t.inject(p),s=["v-dialog-body",n&&"v-dialog-message--pill",e||"v-dialog-message--no-icon",Bn(a)];function c(r){switch(r){case $:return t.createVNode(ie,null,null);case D:return t.createVNode(se,null,null);case N:return t.createVNode(ce,null,null);case k:return t.createVNode(re,null,null);default:return}}return()=>t.createVNode("div",{class:s},[e&&t.createVNode("div",{class:"v-dialog-message__prepend"},[c(a)]),t.createVNode("div",{class:"v-dialog-message__body"},[o]),i&&t.createVNode("div",{class:"v-dialog-message__append",onClick:l},[t.createVNode(U,{class:"v-dialog-message__close"},null)])])}},Be={name:"DialogLiteContainer",props:{id:{type:[String,Number],default:""},containerClass:{type:[String,Array,Object],default:""},transitionName:{type:String,default:""}},setup(e,{slots:n}){const{show:o,dialogStyles:a,dialogZIndex:i,customClass:l,onTransitionAfterEnter:s,onTransitionAfterLeave:c}=t.inject(p),r=["v-dialog-lite",e.containerClass,l];return()=>t.createVNode(t.Teleport,{to:"body"},{default:()=>[t.createVNode("div",{id:e.id,class:r,style:{...a.value,"z-index":i}},[t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:s,onAfterLeave:c,appear:!0},{default:()=>o.value&&n.default&&n.default()})])]})}},Ie=t.defineComponent({name:"DialogMessage",props:L({messageType:{type:String,default:$},icon:{type:Boolean,default:!0},closeButton:{type:Boolean,default:!1},duration:{type:Number,default:3e3},offset:{type:[String,Number],default:de},placement:{type:String,default:O},pill:{type:Boolean,default:!0}}),emits:P(),setup(e,{emit:n,expose:o}){const{handleBodyRounded:a,closeGroupDialogWithCallback:i,...l}=Sn(e,n),s=t.ref();return t.provide(p,{...e,...l,closeGroupDialogWithCallback:i}),a(s),o({close:i}),()=>t.createVNode(Be,{"container-class":["v-dialog-message"],"transition-name":"v-dialog--fade-lite",id:e.dialogKey},{default:()=>[t.createVNode(Mn,{ref:s},null)]})}});function Sn(e,n){const{setPosition:o,setDialogSize:a,openDialog:i,closeWithCallback:l,shouldHandleResize:s,shouldControlOverflow:c,setupAutomaticClose:r,setupPositionAdjustBehavior:d,...g}=v(e,n),{closeGroupDialogWithCallback:u}=De(T,l),{getVerticalPosition:h}=ke(ne,e);s.value=!1,c.value=!1;function _(){if(e.placement!==X)return h()}function y(){if(e.placement!==O)return h()}function T(){o(_(),y())}function b(w){e.pill&&t.onMounted(()=>{t.nextTick(()=>{var S,V,B,I,x;((V=(S=w.value)==null?void 0:S.$el)==null?void 0:V.offsetHeight)>60&&((x=(I=(B=w.value)==null?void 0:B.$el)==null?void 0:I.classList)==null||x.remove("v-dialog-message--pill"))})})}return a(),d(T),r(u),t.onMounted(()=>{i()}),{...g,handleBodyRounded:b,closeGroupDialogWithCallback:u}}function Bn(e){return[D,N,k].includes(e)?`message-${e}`:""}function xe(){const e=z(...arguments),n={type:ne,placement:e.placement||O};return M(Ie,e,n)}const{DialogMessageInfo:In,DialogMessageWarning:xn,DialogMessageError:$n,DialogMessageSuccess:On}=le(ee,"DialogMessage",Ie,e=>({type:ne,placement:e.placement||O})),Ln={name:"DialogMessageBody",setup(){const{icon:e,message:n,messageType:o,header:a,title:i,lang:l,closeButton:s,closeGroupDialogWithCallback:c}=t.inject(p),r=["v-dialog-body",vn(o)],d=i||ye(o,l);function g(u){switch(u){case $:return t.createVNode(ie,null,null);case D:return t.createVNode(se,null,null);case N:return t.createVNode(ce,null,null);case k:return t.createVNode(re,null,null);default:return}}return()=>t.createVNode("div",{class:r},[e&&t.createVNode("div",{class:"v-dialog-toast__prepend"},[g(o)]),t.createVNode("div",{class:"v-dialog-toast__body"},[a&&t.createVNode("h3",null,[d]),t.createVNode("div",null,[n])]),s&&t.createVNode("div",{class:"v-dialog-toast__append",onClick:c},[t.createVNode(U,{class:"v-dialog-toast__close"},null)])])}},$e=t.defineComponent({name:"DialogToast",props:L({messageType:{type:String,default:$},icon:{type:Boolean,default:!0},closeButton:{type:Boolean,default:!0},duration:{type:Number,default:3e3},offset:{type:[String,Number],default:Ke},placement:{type:String,default:R}}),emits:P(),setup(e,{emit:n,expose:o}){const{closeGroupDialogWithCallback:a,...i}=Pn(e,n),l=t.ref();t.provide(p,{...e,...i,closeGroupDialogWithCallback:a});const s=["v-dialog-toast",Wn(e.placement)];return o({close:a}),()=>t.createVNode(Be,{"container-class":s,"transition-name":"v-dialog--fade-lite",id:e.dialogKey},{default:()=>[t.createVNode(Ln,{ref:l},null)]})}});function Pn(e,n){const{setPosition:o,setDialogSize:a,openDialog:i,closeWithCallback:l,shouldHandleResize:s,shouldControlOverflow:c,setupAutomaticClose:r,setupPositionAdjustBehavior:d,...g}=v(e,n),{closeGroupDialogWithCallback:u}=De(T,l),{getVerticalPosition:h}=ke(te,e);s.value=!1,c.value=!1;function _(){if(e.placement!==me&&e.placement!==Xe)return h()}function y(){if(e.placement!==ge&&e.placement!==R)return h()}function T(){o(_(),y())}function b(w){e.pill&&t.onMounted(()=>{t.nextTick(()=>{var S,V,B,I,x;((V=(S=w.value)==null?void 0:S.$el)==null?void 0:V.offsetHeight)>60&&((x=(I=(B=w.value)==null?void 0:B.$el)==null?void 0:I.classList)==null||x.remove("v-dialog-message--pill"))})})}return a(),d(T),r(u),t.onMounted(()=>{i()}),{...g,lang:ae(e.language),handleBodyRounded:b,closeGroupDialogWithCallback:u}}function vn(e){return[D,N,k].includes(e)?`toast-${e}`:""}function Wn(e){const n="v-dialog-toast--";return e===ge||e===me?n+"left":n+"right"}function Oe(){const e=z(...arguments),n={type:te,placement:e.placement||R};return M($e,e,n)}const{DialogToastInfo:jn,DialogToastWarning:zn,DialogToastError:Hn,DialogToastSuccess:Rn}=le(ee,"DialogToast",$e,e=>({type:te,placement:e.placement||R})),Gn=t.defineComponent({name:"DialogModalBox",setup(e,n){return Ne(Ee,n)}}),Fn=t.defineComponent({name:"DialogDrawerBox",setup(e,n){return Ne(Ve,n)}}),Zn={install(e,n={}){const o=(n==null?void 0:n.instanceName)||ve,a={alert:Se,message:xe,toast:Oe,modal:Te,mask:we,drawer:Ae};e.config.globalProperties[o]=a}};f.DialogAlert=Se,f.DialogAlertConfirm=An,f.DialogAlertError=wn,f.DialogAlertInfo=En,f.DialogAlertSuccess=Vn,f.DialogAlertWarning=Tn,f.DialogDrawer=Ae,f.DialogDrawerBox=Fn,f.DialogMask=we,f.DialogMessage=xe,f.DialogMessageError=$n,f.DialogMessageInfo=In,f.DialogMessageSuccess=On,f.DialogMessageWarning=xn,f.DialogModal=Te,f.DialogModalBox=Gn,f.DialogToast=Oe,f.DialogToastError=Hn,f.DialogToastInfo=jn,f.DialogToastSuccess=Rn,f.DialogToastWarning=zn,f.default=Zn,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});