System.register(["./index-legacy-69c33129.js"],(function(t,e){"use strict";var o,n,l,a,s,c,i,r,u,d,f,m,B,g,b,v,p,h,C,w,y,x,k,S,D,T,O,A,H,P,z,I,N,E;return{setters:[t=>{o=t.y,n=t.d,l=t.I,a=t.aY,s=t.ae,c=t.G,i=t.a,r=t.w,u=t.a5,d=t.ao,f=t.aZ,m=t.aq,B=t.c,g=t.ac,b=t.B,v=t.a_,p=t.A,h=t.ap,C=t.D,w=t.a$,y=t.r,x=t.H,k=t.ay,S=t.z,D=t.P,T=t.b0,O=t.b1,A=t.b2,H=t.b3,P=t.b4,z=t.al,I=t.$,N=t.b5,E=t.b6}],execute:function(){t("b",tt);const[e,F]=o("action-bar"),U=Symbol(e),$={placeholder:Boolean,safeAreaInsetBottom:c};var j=n({name:e,props:$,setup(t,{slots:e}){const o=l(),n=a(o,F),{linkChildren:c}=s(U);c();const r=()=>{var n;return i("div",{ref:o,"class":[F(),{"van-safe-area-bottom":t.safeAreaInsetBottom}]},[null==(n=e["default"])?void 0:n.call(e)])};return()=>t.placeholder?n(r):r()}});const q=r(j),[G,K]=o("action-bar-button"),L=u({},d,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var M=n({name:G,props:L,setup(t,{slots:e}){const o=f(),{parent:n,index:l}=m(U),a=B((()=>{if(n){const t=n.children[l.value-1];return!(t&&"isButton"in t)}})),s=B((()=>{if(n){const t=n.children[l.value+1];return!(t&&"isButton"in t)}}));return g({isButton:!0}),()=>{const{type:n,icon:l,text:c,color:r,loading:u,disabled:d}=t;return i(b,{"class":K([n,{last:s.value,first:a.value}]),size:"large",type:n,icon:l,color:r,loading:u,disabled:d,onClick:o},{"default":()=>[e["default"]?e["default"]():c]})}}});const R=r(M),[Y,Z,_]=o("dialog"),J=u({},v,{title:String,theme:String,width:p,message:[String,Function],callback:Function,allowHtml:Boolean,className:h,transition:C("van-dialog-bounce"),messageAlign:String,closeOnPopstate:c,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:c,closeOnClickOverlay:Boolean}),Q=[...w,"transition","closeOnPopstate"];var V=t("s",n({name:Y,props:J,emits:["confirm","cancel","keydown","update:show"],setup(t,{emit:e,slots:o}){const n=l(),a=y({confirm:!1,cancel:!1}),s=t=>e("update:show",t),c=e=>{var o;s(!1),null==(o=t.callback)||o.call(t,e)},r=o=>()=>{t.show&&(e(o),t.beforeClose?(a[o]=!0,z(t.beforeClose,{args:[o],done(){c(o),a[o]=!1},canceled(){a[o]=!1}})):c(o))},u=r("cancel"),d=r("confirm"),f=T((o=>{var l,a;o.target===(null==(a=null==(l=n.value)?void 0:l.popupRef)?void 0:a.value)&&({Enter:t.showConfirmButton?d:O,Escape:t.showCancelButton?u:O}[o.key](),e("keydown",o))}),["enter","esc"]),m=()=>{const e=o.title?o.title():t.title;if(e)return i("div",{"class":Z("header",{isolated:!t.message&&!o["default"]})},[e])},B=e=>{const{message:o,allowHtml:n,messageAlign:l}=t,a=Z("message",{"has-title":e,[l]:l}),s=A(o)?o():o;return n&&"string"==typeof s?i("div",{"class":a,innerHTML:s},null):i("div",{"class":a},[s])},g=()=>{if(o["default"])return i("div",{"class":Z("content")},[o["default"]()]);const{title:e,message:n,allowHtml:l}=t;if(n){const t=!(!e&&!o.title);return i("div",{key:l?1:0,"class":Z("content",{isolated:!t})},[B(t)])}},v=()=>o.footer?o.footer():"round-button"===t.theme?i(q,{"class":Z("footer")},{"default":()=>[t.showCancelButton&&i(R,{type:"warning",text:t.cancelButtonText||_("cancel"),"class":Z("cancel"),color:t.cancelButtonColor,loading:a.cancel,disabled:t.cancelButtonDisabled,onClick:u},null),t.showConfirmButton&&i(R,{type:"danger",text:t.confirmButtonText||_("confirm"),"class":Z("confirm"),color:t.confirmButtonColor,loading:a.confirm,disabled:t.confirmButtonDisabled,onClick:d},null)]}):i("div",{"class":[P,Z("footer")]},[t.showCancelButton&&i(b,{size:"large",text:t.cancelButtonText||_("cancel"),"class":Z("cancel"),style:{color:t.cancelButtonColor},loading:a.cancel,disabled:t.cancelButtonDisabled,onClick:u},null),t.showConfirmButton&&i(b,{size:"large",text:t.confirmButtonText||_("confirm"),"class":[Z("confirm"),{[H]:t.showCancelButton}],style:{color:t.confirmButtonColor},loading:a.confirm,disabled:t.confirmButtonDisabled,onClick:d},null)]);return()=>{const{width:e,title:o,theme:l,message:a,className:c}=t;return i(D,x({ref:n,role:"dialog","class":[Z([l]),c],style:{width:S(e)},tabindex:0,"aria-labelledby":o||a,onKeydown:f,"onUpdate:show":s},k(t,Q)),{"default":()=>[m(),g(),v()]})}}}));let W,X=u({},{title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1});function tt(t){return I?new Promise(((e,o)=>{W||function(){const t={setup(){const{state:t,toggle:e}=E();return()=>i(V,x(t,{"onUpdate:show":e}),null)}};({instance:W}=N(t))}(),W.open(u({},X,t,{callback:t=>{("confirm"===t?e:o)(t)}}))})):Promise.resolve(void 0)}t("a",(t=>tt(u({showCancelButton:!0},t))))}}}));
