PageSourceSearch

https://008-53.vip/assets/theme-0/toast.impl.Dg7lUgsW.js

js 008-53.vip collected 2026-10-09 04:33:42 UTC 5,591 bytes, 1 lines download raw bytes

1import{Y as x,ae as O,W as F,ar as P,nX as B,S as L,aF as I,a4 as k,$ as V,lC as $,tN as E,uO as U,a2 as N,uP as W}from"./commonChunk.Dhe5lqYh.js";import{C as _}from"./2_EventOthersChunk.CaNvJYen.js";import{br as A}from"./0_EntryLoginRegisterChunk.CH23XrmN.js";import{a as z}from"./vendorChunk.BdsO83GQ.js";import{b as H,w as v,o as q,e as Y,f as m,h as M,r as Z,a as D,J,n as Q}from"../vendors/vendor-stable.B8ub4Ug6.js";import"../vendors/vendor-swiper.T_wbf2QY.js";import"./1_PromotionChunk.DVKs33tM.js";import"./0_GameMoreCategoryChunk.CPz2DCY2.js";import"./0_RechargeCommonChunk.DSN05vBz.js";import"./1_MineChunk.DroyDZEx.js";import"./1_AgentCenterChunk.PiK7sNsJ.js";import"./0_WithdrawChunk.DK0bpz1Y.js";import"./1_PromoteChunk.DYukjC1-.js";import"./1_ClubRebateChunk.DA9ie7NK.js";import"./2_EventDialogsChunk.jE1HlYGv.js";import"./1_SearchGameChunk.l0ciEGcc.js";const R={show:{type:Boolean,default:!1},icon:{type:[Object,Function],default:void 0},loadingColor:{type:String,required:!1},message:{type:[String,Object,Function],default:""},className:{type:O,default:null},type:{type:String,default:"info"},overlay:{type:Boolean,default:!1},overlayClass:{type:O,default:""},overlayStyle:{type:Object,default:null},duration:{type:Number,default:2e3},zIndex:{type:[Number,String]},closeOnClickOverlay:{type:Boolean,default:!1},transition:{type:String,default:x.Zoom},teleport:{type:[String,Element,Boolean],default:!1}};z('<symbol aria-hidden="true" viewBox="64 64 896 896" id="ui-exclamation-circle-a39166"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></symbol>',"ui-exclamation-circle-a39166");const T="ui-exclamation-circle-a39166";z('<symbol aria-hidden="true" viewBox="64 64 896 896" id="ui-info-circle-18d58c"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></symbol>',"ui-info-circle-18d58c");const X="ui-info-circle-18d58c",[G,d]=F("toast");var f=function(e){return e.Success="success",e.Info="info",e.Error="error",e.Warn="warn",e.Loading="loading",e}(f||{});let p=0;const K={[f.Success]:_,[f.Info]:X,[f.Warn]:T,[f.Error]:A};function ee(e){e?(p||document.body.classList.add("unclickable"),p++):p&&(p--,p||document.body.classList.remove("unclickable"))}const te=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],ne=H({name:G,props:R,emits:["update:show"],setup(e,{emit:n}){let s;const c=P();let i=!1;const o=()=>{const t=e.show&&e.overlay;i!==t&&(i=t,ee(i))},r=t=>n("update:show",t),y=()=>clearTimeout(s),h=()=>{const{type:t,icon:a}=e;if(!I(a))return k(a)?a==null?void 0:a():a;if(t===f.Success||t===f.Info||t===f.Warn||t===f.Error)return m("div",{class:[d("toast--icon"),d(`toast--${t}`)]},[m(V,{name:K[t]},null)]);if(t===f.Loading)return m("div",{class:[d("toast--icon"),d("toast--loading")]},[m($,{color:e.loadingColor},null)])},S=()=>{const{message:t}=e;if(t!==""&&!I(t)){const a=k(t)?t==null?void 0:t():t;return m("div",{class:[d("toast-message"),c.rtlClass]},[a])}};return v(()=>[e.show,e.overlay],o),v(()=>[e.show,e.type,e.message,e.duration],()=>{y(),e.show&&e.duration>0&&(s=setTimeout(()=>{r(!1)},e.duration))}),q(o),Y(o),()=>{var t;return m(B,M({lockScroll:!1,class:[d("toast"),d("toast--container"),d(`toast--${(t=e.type)!=null?t:""}`),e.className],onClosed:y,"onUpdate:show":r},L(e,te)),{default:()=>[m("div",{class:d("toast--instance")},[h(),S()])]})}}}),oe={icon:void 0,type:"info",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:!1,transition:x.Zoom,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,zIndex:5e3,closeOnClickOverlay:!1};let u=[];function w(e){return W(e)?e:{message:e}}function se(){const{instance:e,unmount:n}=U({setup(){const s=Z(""),c=D({show:!1});let i=N;const o=a=>{c.show=a},r=a=>{Object.assign(c,a),o(!0)},y=()=>{o(!1),h(N)},h=a=>{i=a},S=()=>{i(),u=u.filter(a=>a!==e),j(),n()},t=()=>m(ne,M(c,{onClosed:S,"onUpdate:show":o}),null);return v(s,a=>{c.message=a}),J().render=t,{open:r,close:y,message:s,setNext:h}}});return e}function ae(){const e=se();return u.push(e),e}function j(){const e=[];let n=0;const s=u.reduce((i,o)=>{var h;const r=(h=o.$el.parentNode)==null?void 0:h.querySelector(".ui-toast__toast--instance");e.push(r);const y=r?r.clientHeight+10:0;return n+=y,[...i,y]},[]);let c=-n/2;e.forEach((i,o)=>{o>0&&(c=c+s[o-1]),i&&(i.style.transform=`translateY(${c+s[o]/2}px)`)})}function b(e){const n=E();if(n.value==="visible"){e();return}
1const s=v(n,c=>{c==="visible"&&(s(),e())})}function l(e={},n="flush"){n==="flush"&&ce(!0);const s=u[u.length-1],c=ae(),i=w(e),o=()=>{u.includes(c)&&(c.open(Object.assign({},oe,i)),Q(j))};return n==="overlay"||n==="flush"?b(o):n==="push"&&(s?s.setNext(()=>b(o)):b(o)),c}const g=e=>(n,s="flush")=>l(Object.assign({type:e},w(n)),s),C=e=>(n,s="flush")=>new Promise(c=>{const i=w(n),o=i.onClosed;let r;i.onClosed=()=>{o==null||o(),c(r)},r=l(Object.assign({type:e},i),s)});l.info=g("info");l.loading=g("loading");l.success=g("success");l.warn=g("warn");l.error=g("error");l.infoSync=C("info");l.loadingSync=C("loading");l.successSync=C("success");l.warnSync=C("warn");l.errorSync=C("error");const ce=e=>{var n;u.length&&(e?(u.forEach(s=>{s.close()}),u=[]):(n=u.shift())==null||n.close())};export{ce as closeToast,l as showToast};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.