index-legacy-5bef4ac7.js 2.8 KB

1
  1. !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,a,o,i,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;l=!1}else for(;!(l=(e=o.call(n)).done)&&(u.push(e.value),u.length!==r);l=!0);}catch(c){s=!0,a=c}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||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 r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy-49fe136a.js"],(function(r,n){"use strict";var e,a,o,i,u,l,s,c,d,f,p,v;return{setters:[function(t){e=t.j,a=t.d,o=t.g,i=t.G,u=t.t,l=t.D,s=t.as,c=t.n,d=t.ai,f=t.v,p=t.m,v=t.F}],execute:function(){var n=t(e("skeleton-title"),2),h=n[0],y=n[1],m={round:Boolean,titleWidth:u},S=a({name:h,props:m,setup:function(t){return function(){return o("h3",{class:y([{round:t.round}]),style:{width:i(t.titleWidth)}},null)}}}),w=l(S),b=t(e("skeleton-avatar"),2),g=b[0],A=b[1],W={avatarSize:u,avatarShape:c("round")},j=a({name:g,props:W,setup:function(t){return function(){return o("div",{class:A([t.avatarShape]),style:s(t.avatarSize)},null)}}}),k=r("b",l(j)),z="100%",B={round:Boolean,rowWidth:{type:u,default:z}},O=t(e("skeleton-paragraph"),2),x=O[0],I=O[1],C=a({name:x,props:B,setup:function(t){return function(){return o("div",{class:I([{round:t.round}]),style:{width:t.rowWidth}},null)}}}),D=r("a",l(C)),E=t(e("skeleton"),2),F=E[0],G=E[1],M={row:d(0),round:Boolean,title:Boolean,titleWidth:u,avatar:Boolean,avatarSize:u,avatarShape:c("round"),loading:f,animate:f,rowWidth:{type:[Number,String,Array],default:z}},N=a({name:F,inheritAttrs:!1,props:M,setup:function(t,r){var n=r.slots,e=r.attrs,a=function(){if(t.avatar)return o(k,{avatarShape:t.avatarShape,avatarSize:t.avatarSize},null)},u=function(){if(t.title)return o(w,{round:t.round,titleWidth:t.titleWidth},null)};return function(){var r;return t.loading?o("div",p({class:G({animate:t.animate,round:t.round})},e),[n.template?n.template():o(v,null,[a(),o("div",{class:G("content")},[u(),Array(+t.row).fill("").map((function(r,n){return o(D,{key:n,round:t.round,rowWidth:i((e=n,a=t.rowWidth,a===z&&e===+t.row-1?"60%":Array.isArray(a)?a[e]:a))},null);var e,a}))])])]):null==(r=n.default)?void 0:r.call(n)}}});r("S",l(N))}}}))}();