index-legacy.06261a1f.js 3.0 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)return;var e,a,o=[],i=!0,u=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(o.push(e.value),!r||o.length!==r);i=!0);}catch(l){u=!0,a=l}finally{try{i||null==n.return||n.return()}finally{if(u)throw a}}return o}(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(["./ResizeObserver.es-legacy.42c87f31.js"],(function(r){"use strict";var n,e,a,o,i,u,l,s,c,d,f,p,v;return{setters:[function(t){n=t.v,e=t.d,a=t.c,o=t.X,i=t.H,u=t.ba,l=t.C,s=t.x,c=t.D,d=t.w,f=t.F,p=t.a7,v=t.z}],execute:function(){var h=t(n("skeleton-title"),2),y=h[0],m=h[1],S={round:Boolean,titleWidth:i},g=e({name:y,props:S,setup:function(t){return function(){return a("h3",{class:m([{round:t.round}]),style:{width:o(t.titleWidth)}},null)}}}),w=t(n("skeleton-avatar"),2),b=w[0],A=w[1],W={avatarSize:i,avatarShape:l("round")},z=e({name:b,props:W,setup:function(t){return function(){return a("div",{class:A([t.avatarShape]),style:u(t.avatarSize)},null)}}}),k="100%",B={round:Boolean,rowWidth:{type:i,default:k}},j=t(n("skeleton-paragraph"),2),x=j[0],I=j[1],O=e({name:x,props:B,setup:function(t){return function(){return a("div",{class:I([{round:t.round}]),style:{width:t.rowWidth}},null)}}}),C=t(n("skeleton"),2),q=C[0],D=C[1],E={row:c(0),round:Boolean,title:Boolean,titleWidth:i,avatar:Boolean,avatarSize:i,avatarShape:l("round"),loading:d,animate:d,rowWidth:{type:[Number,String,Array],default:k}},F=e({name:q,inheritAttrs:!1,props:E,setup:function(t,r){var n=r.slots,e=r.attrs,i=function(){if(t.avatar)return a(z,{avatarShape:t.avatarShape,avatarSize:t.avatarSize},null)},u=function(){if(t.title)return a(g,{round:t.round,titleWidth:t.titleWidth},null)};return function(){var r;return t.loading?a("div",s({class:D({animate:t.animate,round:t.round})},e),[n.template?n.template():a(f,null,[i(),a("div",{class:D("content")},[u(),Array(+t.row).fill("").map((function(r,n){return a(O,{key:n,round:t.round,rowWidth:o((e=n,i=t.rowWidth,i===k&&e===+t.row-1?"60%":Array.isArray(i)?i[e]:i))},null);var e,i}))])])]):null==(r=n.default)?void 0:r.call(n)}}}),H=t(n("skeleton-image"),2),M=H[0],N=H[1],R={imageSize:i,imageShape:l("square")},T=e({name:M,props:R,setup:function(t){return function(){return a("div",{class:N([t.imageShape]),style:u(t.imageSize)},[a(p,{name:"photo",class:N("icon")},null)])}}});v(T),v(g),v(z),v(O);r("S",v(F))}}}))}();