!function(){function n(n){return function(n){if(Array.isArray(n))return r(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||e(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==e)return;var r,o,a=[],c=!0,i=!1;try{for(e=e.call(n);!(c=(r=e.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(l){i=!0,o=l}finally{try{c||null==e.return||e.return()}finally{if(i)throw o}}return a}(n,t)||e(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,t){if(n){if("string"==typeof n)return r(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}}function r(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}System.register(["./index-legacy.2ae28dc5.js"],(function(e){"use strict";var r,o,a,c,i,l,s,u,f,d,m,p,y,b,v,g,h;return{setters:[function(n){r=n.m,o=n.N,a=n.bf,c=n.t,i=n.aT,l=n.n,s=n.bg,u=n.d,f=n.k,d=n.z,m=n.as,p=n.P,y=n.a2,b=n.aI,v=n.L,g=n.W,h=n.y}],execute:function(){var A=t(r("action-sheet"),2),S=A[0],I=A[1],w=o({},a,{title:String,round:c,actions:i(),closeIcon:l("cross"),closeable:c,cancelText:String,description:String,closeOnPopstate:c,closeOnClickAction:Boolean,safeAreaInsetBottom:c}),k=[].concat(n(s),["round","closeOnPopstate","safeAreaInsetBottom"]),x=u({name:S,props:w,emits:["select","cancel","update:show"],setup:function(n,t){var e=t.slots,r=t.emit,o=function(n){return r("update:show",n)},a=function(){o(!1),r("cancel")},c=function(){if(n.title)return f("div",{class:I("header")},[n.title,n.closeable&&f(y,{name:n.closeIcon,class:[I("close"),b],onClick:a},null)])},i=function(){if(e.cancel||n.cancelText)return[f("div",{class:I("gap")},null),f("button",{type:"button",class:I("cancel"),onClick:a},[e.cancel?e.cancel():n.cancelText])]},l=function(n,t){return n.loading?f(v,{class:I("loading-icon")},null):e.action?e.action({action:n,index:t}):[f("span",{class:I("name")},[n.name]),n.subname&&f("div",{class:I("subname")},[n.subname])]},s=function(t,e){var a=t.color,c=t.loading,i=t.callback,s=t.disabled,u=t.className;return f("button",{type:"button",style:{color:a},class:[I("item",{loading:c,disabled:s}),u],onClick:function(){s||c||(i&&i(t),n.closeOnClickAction&&o(!1),g((function(){return r("select",t,e)})))}},[l(t,e)])},u=function(){if(n.description||e.description){var t=e.description?e.description():n.description;return f("div",{class:I("description")},[t])}};return function(){return f(p,d({class:I(),position:"bottom","onUpdate:show":o},m(n,k)),{default:function(){var t;return[c(),u(),f("div",{class:I("content")},[n.actions.map(s),null==(t=e.default)?void 0:t.call(e)]),i()]}})}}});e("A",h(x))}}}))}();
