-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-MPDZYTJY.js
1 lines (1 loc) · 6.88 KB
/
chunk-MPDZYTJY.js
1
import{N as E}from"./chunk-YWVGY2C2.js";import{Da as S,Ib as s,Jb as C,Kb as y,Ob as _,Pb as u,Wb as T,Xb as f,Yb as l,Zb as w,dc as h,ed as x,fc as A,gc as P,hc as D,ic as r,id as g,ja as v,jc as d,kc as a,rb as z,sb as k,tc as c,uc as M,vc as N,ya as m}from"./chunk-GBKJFEQZ.js";import{a as p}from"./chunk-EQDQRRRY.js";var b=["nzType","button"],q=["nzType","avatar"],L=["nzType","input"],B=["nzType","image"],F=["*"];function I(e,o){if(e&1&&(r(0,"div",0),a(1,"nz-skeleton-element",4),d()),e&2){let t=c(2);z(),T("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle")}}function j(e,o){if(e&1&&a(0,"h3",5),e&2){let t=c(2);f("width",t.toCSSUnit(t.title.width))}}function O(e,o){if(e&1&&a(0,"li"),e&2){let t=o.$index,n=c(3);f("width",n.toCSSUnit(n.widthList[t]))}}function R(e,o){if(e&1&&(r(0,"ul",3),P(1,O,1,2,"li",6,A),d()),e&2){let t=c(2);z(),D(t.rowsList)}}function V(e,o){if(e&1&&(u(0,I,2,2,"div",0),r(1,"div",1),u(2,j,1,2,"h3",2)(3,R,3,0,"ul",3),d()),e&2){let t=c();h(t.nzAvatar?0:-1),z(2),h(t.nzTitle?2:-1),z(),h(t.nzParagraph?3:-1)}}function U(e,o){e&1&&N(0)}var $=(()=>{class e{constructor(){this.nzActive=!1,this.nzBlock=!1}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=y({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,i){n&2&&l("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",g],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",g]},features:[_]})}}return e})(),et=(()=>{class e{constructor(){this.nzShape="default",this.nzSize="default"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["nz-skeleton-element","nzType","button"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},attrs:b,decls:1,vars:10,consts:[[1,"ant-skeleton-button"]],template:function(n,i){n&1&&a(0,"span",0),n&2&&l("ant-skeleton-button-square",i.nzShape==="square")("ant-skeleton-button-round",i.nzShape==="round")("ant-skeleton-button-circle",i.nzShape==="circle")("ant-skeleton-button-lg",i.nzSize==="large")("ant-skeleton-button-sm",i.nzSize==="small")},encapsulation:2,changeDetection:0})}}return e})(),H=(()=>{class e{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let n=`${this.nzSize}px`;this.styleMap={width:n,height:n,"line-height":n}}else this.styleMap={}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[m],attrs:q,decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(n,i){n&1&&a(0,"span",0),n&2&&(w(i.styleMap),l("ant-skeleton-avatar-square",i.nzShape==="square")("ant-skeleton-avatar-circle",i.nzShape==="circle")("ant-skeleton-avatar-lg",i.nzSize==="large")("ant-skeleton-avatar-sm",i.nzSize==="small"))},encapsulation:2,changeDetection:0})}}return e})(),nt=(()=>{class e{constructor(){this.nzSize="default"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["nz-skeleton-element","nzType","input"]],inputs:{nzSize:"nzSize"},attrs:L,decls:1,vars:4,consts:[[1,"ant-skeleton-input"]],template:function(n,i){n&1&&a(0,"span",0),n&2&&l("ant-skeleton-input-lg",i.nzSize==="large")("ant-skeleton-input-sm",i.nzSize==="small")},encapsulation:2,changeDetection:0})}}return e})(),it=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["nz-skeleton-element","nzType","image"]],attrs:B,decls:3,vars:0,consts:[[1,"ant-skeleton-image"],["viewBox","0 0 1098 1024","xmlns","http://www.w3.org/2000/svg",1,"ant-skeleton-image-svg"],["d","M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",1,"ant-skeleton-image-path"]],template:function(n,i){n&1&&(r(0,"span",0),S(),r(1,"svg",1),a(2,"path",2),d()())},encapsulation:2,changeDetection:0})}}return e})(),at=(()=>{class e{constructor(t){this.cdr=t,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(t=""){return E(t)}getTitleProps(){let t=!!this.nzAvatar,n=!!this.nzParagraph,i="";return!t&&n?i="38%":t&&n&&(i="50%"),p({width:i},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return p({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,n=!!this.nzTitle,i={};return(!t||!n)&&(i.width="61%"),!t&&n?i.rows=3:i.rows=2,p(p({},i),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:n}=this.paragraph,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&(i=[],i[n-1]=t),i}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps()}static{this.\u0275fac=function(n){return new(n||e)(k(x))}}static{this.\u0275cmp=s({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(n,i){n&2&&l("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[m],ngContentSelectors:F,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(n,i){n&1&&(M(),u(0,V,4,3)(1,U,1,0)),n&2&&h(i.nzLoading?0:1)},dependencies:[$,H],encapsulation:2,changeDetection:0})}}return e})(),ot=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=C({type:e})}static{this.\u0275inj=v({})}}return e})();export{$ as a,et as b,H as c,nt as d,it as e,at as f,ot as g};