Profectus-Demo/assets/vue-toastification.17ba848b.js

2 lines
18 KiB
JavaScript
Raw Normal View History

import{a8 as T,x as pt,B as ht,o as i,_ as u,H as j,F as y,c as h,w as I,ao as P,aK as A,a5 as N,I as G,aI as b,Z as S,$ as C,M as D,aS as gt,bp as _t,r as vt,b7 as Tt,aH as $,a6 as bt,ad as yt,aj as Vt,ap as Ct,b9 as Bt}from"./@vue.861e8bf0.js";var xt=Object.defineProperty,Y=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,It=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(Y)for(var a of Y(e))It.call(e,a)&&H(t,a,e[a]);return t},w=t=>typeof t=="function",R=t=>typeof t=="string",q=t=>R(t)&&t.trim().length>0,wt=t=>typeof t=="number",v=t=>typeof t=="undefined",V=t=>typeof t=="object"&&t!==null,Rt=t=>d(t,"tag")&&q(t.tag),Z=t=>window.TouchEvent&&t instanceof TouchEvent,K=t=>d(t,"component")&&J(t.component),St=t=>w(t)||V(t),J=t=>!v(t)&&(R(t)||St(t)||K(t)),F=t=>V(t)&&["height","width","right","left","top","bottom"].every(e=>wt(t[e])),d=(t,e)=>(V(t)||w(t))&&e in t,Et=(t=>()=>t++)(0);function E(t){return Z(t)?t.targetTouches[0].clientX:t.clientX}function z(t){return Z(t)?t.targetTouches[0].clientY:t.clientY}var Dt=t=>{v(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},B=t=>K(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}},Lt=()=>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))}},Pt=t=>["on","off","emit"].every(e=>d(t,e)&&w(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`}},At={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}},Nt={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:At,TOAST:Nt,CONTAINER:Mt,PROGRESS_BAR: