1 |
- !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.90c82f08.js"],(function(e){"use strict";var r,o,a,c,i,l,s,u,f,d,m,p,b,y,v,h,g;return{setters:[function(n){r=n.t,o=n.N,a=n.b0,c=n.v,i=n.av,l=n.u,s=n.b1,u=n.d,f=n.c,d=n.E,m=n.am,p=n.P,b=n.a5,y=n.at,v=n.L,h=n._,g=n.D}],execute:function(){var A=t(r("action-sheet"),2),S=A[0],w=A[1],I=o({},a,{title:String,round:c,actions:i(),closeIcon:l("cross"),closeable:c,cancelText:String,description:String,closeOnPopstate:c,closeOnClickAction:Boolean,safeAreaInsetBottom:c}),x=[].concat(n(s),["round","closeOnPopstate","safeAreaInsetBottom"]),k=u({name:S,props:I,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:w("header")},[n.title,n.closeable&&f(b,{name:n.closeIcon,class:[w("close"),y],onClick:a},null)])},i=function(){if(e.cancel||n.cancelText)return[f("div",{class:w("gap")},null),f("button",{type:"button",class:w("cancel"),onClick:a},[e.cancel?e.cancel():n.cancelText])]},l=function(n,t){return n.loading?f(v,{class:w("loading-icon")},null):e.action?e.action({action:n,index:t}):[f("span",{class:w("name")},[n.name]),n.subname&&f("div",{class:w("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:[w("item",{loading:c,disabled:s}),u],onClick:function(){s||c||(i&&i(t),n.closeOnClickAction&&o(!1),h((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:w("description")},[t])}};return function(){return f(p,d({class:w(),position:"bottom","onUpdate:show":o},m(n,x)),{default:function(){var t;return[c(),u(),f("div",{class:w("content")},[n.actions.map(s),null==(t=e.default)?void 0:t.call(e)]),i()]}})}}});e("A",g(k))}}}))}();
|