index-legacy.92a01198.js 2.6 KB

1
  1. !function(){function e(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,l,i=[],a=!0,o=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(u){o=!0,l=u}finally{try{a||null==r.return||r.return()}finally{if(o)throw l}}return i}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e,r)||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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.47bc1690.js"],(function(t){"use strict";var r,n,l,i,a,o,u,c,s,f,v,d,b;return{setters:[function(e){r=e.t,n=e.u,l=e.z,i=e.v,a=e.O,o=e.N,u=e.ae,c=e.d,s=e.af,f=e.c,v=e.a1,d=e.a5,b=e.D}],execute:function(){var y=e(r("cell"),2),g=y[0],p=y[1],m=t("c",{tag:n("div"),icon:String,size:String,title:l,value:l,label:l,center:Boolean,isLink:Boolean,border:i,required:Boolean,iconPrefix:String,valueClass:a,labelClass:a,titleClass:a,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}}),h=o({},m,u),S=c({name:g,props:h,setup:function(e,t){var r=t.slots,n=s(),l=function(){if(r.label||v(e.label))return f("div",{class:[p("label"),e.labelClass]},[r.label?r.label():e.label])},i=function(){if(r.title||v(e.title))return f("div",{class:[p("title"),e.titleClass],style:e.titleStyle},[r.title?r.title():f("span",null,[e.title]),l()])},a=function(){var t=r.value||r.default;if(t||v(e.value))return f("div",{class:[p("value"),e.valueClass]},[t?t():f("span",null,[e.value])])},o=function(){if(r["right-icon"])return r["right-icon"]();if(e.isLink){var t=e.arrowDirection&&"right"!==e.arrowDirection?"arrow-".concat(e.arrowDirection):"arrow";return f(d,{name:t,class:p("right-icon")},null)}};return function(){var t,l=e.tag,u=e.size,c=e.center,s=e.border,v=e.isLink,b=e.required,y=null!=(t=e.clickable)?t:v,g={center:c,required:b,clickable:y,borderless:!s};return u&&(g[u]=!!u),f(l,{class:p(g),role:y?"button":void 0,tabindex:y?0:void 0,onClick:n},{default:function(){var t;return[r.icon?r.icon():e.icon?f(d,{name:e.icon,class:p("left-icon"),classPrefix:e.iconPrefix},null):void 0,i(),a(),o(),null==(t=r.extra)?void 0:t.call(r)]}})}}});t("C",b(S))}}}))}();