index-legacy-ec7102a8.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,u,i=[],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)&&(i.push(e.value),i.length!==r);l=!0);}catch(c){s=!0,a=c}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw a}}return i}}(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-46c61774.js"],(function(r,n){"use strict";var e,a,o,u,i,l,s,c,d,f,p,v;return{setters:[function(t){e=t.j,a=t.d,o=t.g,u=t.G,i=t.t,l=t.D,s=t.H,c=t.n,d=t.am,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:i},S=a({name:h,props:m,setup:function(t){return function(){return o("h3",{class:y([{round:t.round}]),style:{width:u(t.titleWidth)}},null)}}}),w=l(S),b=t(e("skeleton-avatar"),2),g=b[0],A=b[1],W={avatarSize:i,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:i,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],H={row:d(0),round:Boolean,title:Boolean,titleWidth:i,avatar:Boolean,avatarSize:i,avatarShape:c("round"),loading:f,animate:f,rowWidth:{type:[Number,String,Array],default:z}},M=a({name:F,inheritAttrs:!1,props:H,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)},i=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")},[i(),Array(+t.row).fill("").map((function(r,n){return o(D,{key:n,round:t.round,rowWidth:u((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(M))}}}))}();