Profectus-Demo/assets/vue-toastification.80a5fcd9.js

2 lines
18 KiB
JavaScript
Raw Normal View History

import"./vue.37fee242.js";import{ae as T,C as pt,H as ht,o as i,a4 as u,M as j,K as y,c as h,w,au as L,aP as N,ab as A,O as G,aN as b,a3 as S,a5 as C,U as D,aX as gt,bu as vt,r as _t,bc as Tt,aM as Y,ac as bt,aj as yt,ap as Vt,av as Ct,be as Bt}from"./@vue.7184beb0.js";var xt=Object.defineProperty,$=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,H=(t,e,a)=>e in t?xt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,W=(t,e)=>{for(var a in e||(e={}))Ot.call(e,a)&&H(t,a,e[a]);if($)for(var a of $(e))wt.call(e,a)&&H(t,a,e[a]);return t},I=t=>typeof t=="function",R=t=>typeof t=="string",q=t=>R(t)&&t.trim().length>0,It=t=>typeof t=="number",_=t=>typeof t=="undefined",V=t=>typeof t=="object"&&t!==null,Rt=t=>d(t,"tag")&&q(t.tag),K=t=>window.TouchEvent&&t instanceof TouchEvent,Z=t=>d(t,"component")&&J(t.component),St=t=>I(t)||V(t),J=t=>!_(t)&&(R(t)||St(t)||Z(t)),F=t=>V(t)&&["height","width","right","left","top","bottom"].every(e=>It(t[e])),d=(t,e)=>(V(t)||I(t))&&e in t,Et=(t=>()=>t++)(0);function E(t){return K(t)?t.targetTouches[0].clientX:t.clientX}function z(t){return K(t)?t.targetTouches[0].clientY:t.clientY}var Dt=t=>{_(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},B=t=>Z(t)?B(t.component):Rt(t)?T({render(){return t}}):typeof t=="string"?t:pt(ht(t)),kt=t=>{if(typeof t=="string")return t;const e=d(t,"props")&&V(t.props)?t.props:{},a=d(t,"listeners")&&V(t.listeners)?t.listeners:{};return{component:B(t),props:e,listeners:a}},Pt=()=>typeof window!="undefined",M=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const a=this.getHandlers(t);a.push(e),this.allHandlers[t]=a}off(t,e){const a=this.getHandlers(t);a.splice(a.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Lt=t=>["on","off","emit"].every(e=>d(t,e)&&I(t[e])),r;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(r||(r={}));var O;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(O||(O={}));var c;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(c||(c={}));var f="Vue-Toastification",l={type:{type:String,default:r.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Q={type:l.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},x={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:l.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},k={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${f}__bounce`}},Nt={position:{type:String,default:O.TOP_RIGHT},draggable:l.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:l.trueBoolean,pauseOnHover:l.trueBoolean,closeOnClick:l.trueBoolean,timeout:k.timeout,hideProgressBar:k.hideProgressBar,toastClassName:l.classNames,bodyClassName:l.classNames,icon:Q.customIcon,closeButton:x.component,closeButtonClassName:x.classNames,showCloseButtonOnHover:x.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new M}},At={id:{type:[String,Number],required:!0,default:0},type:l.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Mt={container:{type:[Object,Function],default:()=>document.body},newestOnTop:l.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:l.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},m={CORE_TOAST:Nt,TOAST:At,CO