-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-3LAVY7RV.js
1 lines (1 loc) · 6.84 KB
/
chunk-3LAVY7RV.js
1
import{Fa as le,Gb as pe,ua as ce,va as ae}from"./chunk-YWVGY2C2.js";import{$a as Z,Ab as p,Bc as X,Cc as ee,Hc as te,Hd as se,Ia as f,Ib as D,Ic as ne,Jb as V,Kb as x,Ob as W,Pa as h,Pb as I,Pc as ie,Qa as b,Rc as re,Wb as O,Xb as z,Yb as w,_b as Q,ba as m,c as F,dc as H,ed as oe,f as S,fc as L,ga as v,gc as Y,hc as G,ic as E,id as N,ja as q,jc as M,kd as g,l as $,la as d,m as C,nc as J,oa as a,rb as l,sb as _,tc as u,ub as U,uc as T,vc as k,wa as y,ya as B,zc as K}from"./chunk-GBKJFEQZ.js";function fe(e){e||(y(fe),e=a(f));let o=new F(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(m(o))}function A(e,o){let t=!o?.manualCleanup;t&&!o?.injector&&y(A);let i=t?o?.injector?.get(f)??a(f):null,r=he(o?.equal),n;o?.requireSync?n=p({kind:0},{equal:r}):n=p({kind:1,value:o?.initialValue},{equal:r});let s=e.subscribe({next:c=>n.set({kind:1,value:c}),error:c=>{if(o?.rejectErrors)throw c;n.set({kind:2,error:c})}});if(o?.requireSync&&n().kind===0)throw new v(601,!1);return i?.onDestroy(s.unsubscribe.bind(s)),g(()=>{let c=n();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new v(601,!1)}},{equal:o?.equal})}function he(e=Object.is){return(o,t)=>o.kind===1&&t.kind===1&&e(o.value,t.value)}var me=["*"],ze=e=>({$implicit:e});function ge(e,o){if(e&1&&te(0),e&2){let t=u(3);ne(t.nzSplit)}}function Se(e,o){if(e&1&&(E(0,"span",3),I(1,ge,1,1,"ng-template",4),M()),e&2){let t=u(),i=t.$index,r=t.$count,n=u();z("margin-bottom",n.nzDirection==="vertical"?i===r-1?null:n.spaceSize:null,"px")("margin-right",n.nzDirection==="horizontal"?i===r-1?null:n.spaceSize:null,"px"),l(),O("nzStringTemplateOutlet",n.nzSplit)("nzStringTemplateOutletContext",re(6,ze,i))}}function Ce(e,o){if(e&1&&(E(0,"div",0),J(1,1),M(),I(2,Se,2,8,"span",2)),e&2){let t=o.$implicit,i=o.$index,r=o.$count,n=u();z("margin-bottom",n.nzDirection==="vertical"?i===r-1?null:n.spaceSize:null,"px")("margin-right",n.nzDirection==="horizontal"?i===r-1?null:n.spaceSize:null,"px"),l(),O("ngTemplateOutlet",t),l(),H(n.nzSplit&&i!==r-1?2:-1)}}var ve=new d("NZ_SPACE_COMPACT_SIZE"),de=new d("NZ_SPACE_COMPACT_ITEMS"),ye=new d("NZ_SPACE_COMPACT_ITEM_TYPE"),be=(()=>{class e{constructor(){this.nzBlock=h(!1,{transform:N}),this.nzDirection=h("horizontal"),this.nzSize=h("default"),this.elementRef=a(b)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=D({type:e,selectors:[["nz-space-compact"]],hostAttrs:[1,"ant-space-compact"],hostVars:4,hostBindings:function(i,r){i&2&&w("ant-space-compact-block",r.nzBlock())("ant-space-compact-vertical",r.nzDirection()==="vertical")},inputs:{nzBlock:[1,"nzBlock"],nzDirection:[1,"nzDirection"],nzSize:[1,"nzSize"]},exportAs:["nzSpaceCompact"],features:[ie([{provide:ve,useFactory:()=>a(e).nzSize},{provide:de,useFactory:()=>p([])}])],ngContentSelectors:me,decls:1,vars:0,template:function(i,r){i&1&&(T(),k(0))},encapsulation:2,changeDetection:0})}}return e})(),at=(()=>{class e{get parentElement(){return this.elementRef.nativeElement?.parentElement}constructor(){this.spaceCompactCmp=a(be,{host:!0,optional:!0}),this.items=a(de,{host:!0,optional:!0}),this.type=a(ye),this.elementRef=a(b),this.directionality=a(le),this.dir=A(this.directionality.change,{initialValue:this.directionality.value}),this.class=g(()=>{if(!this.spaceCompactCmp||!this.items||this.parentElement!==this.spaceCompactCmp.elementRef.nativeElement)return null;let t=this.items(),i=this.spaceCompactCmp.nzDirection(),r=[_e(this.type,i,this.dir()==="rtl")],n=t.indexOf(this),s=t.findIndex(c=>c);return n===s?r.push(De(this.type,i)):n===t.length-1&&r.push(xe(this.type,i)),r}),!(!this.spaceCompactCmp||!this.items)&&Z(()=>{if(this.parentElement===this.spaceCompactCmp.elementRef.nativeElement){let t=Array.from(this.parentElement.children).indexOf(this.elementRef.nativeElement);this.items.update(i=>{let r=i.slice();return r.splice(t,0,this),r})}})}ngOnDestroy(){this.items?.update(t=>t.filter(i=>i!==this))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=x({type:e,hostVars:2,hostBindings:function(i,r){i&2&&Q(r.class())},exportAs:["nzSpaceCompactItem"]})}}return e})();function P(e,o,t){return`ant-${e}-compact-${o==="vertical"?"vertical-":""}${t}`}function _e(e,o,t){let i=t?"-rtl":"";return`${P(e,o,"item")}${i}`}function De(e,o){return P(e,o,"first-item")}function xe(e,o){return P(e,o,"last-item")}var Ie=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=x({type:e,selectors:[["","nzSpaceItem",""]]})}}return e})(),Oe="space",ue={small:8,middle:16,large:24},lt=(()=>{let e,o=[],t=[];return class j{static{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[ae()],$(null,null,e,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:n=>"nzSize"in n,get:n=>n.nzSize,set:(n,s)=>{n.nzSize=s}},metadata:r},o,t),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}constructor(r,n){this.nzConfigService=r,this.cdr=n,this._nzModuleName=Oe,this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize=C(this,o,"small"),this.items=C(this,t),this.spaceSize=ue.small,this.destroy$=new S}updateSpaceItems(){let r=typeof this.nzSize=="string"?ue[this.nzSize]:this.nzSize;this.spaceSize=r/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=this.nzAlign===void 0&&this.nzDirection==="horizontal"?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe(m(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||j)(_(ce),_(oe))}}static{this.\u0275cmp=D({type:j,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(n,s,c){if(n&1&&K(c,Ie,4,U),n&2){let R;X(R=ee())&&(s.items=R)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(n,s){n&2&&(z("flex-wrap",s.nzWrap?"wrap":null),w("ant-space-horizontal",s.nzDirection==="horizontal")("ant-space-vertical",s.nzDirection==="vertical")("ant-space-align-start",s.mergedAlign==="start")("ant-space-align-end",s.mergedAlign==="end")("ant-space-align-center",s.mergedAlign==="center")("ant-space-align-baseline",s.mergedAlign==="baseline"))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:[2,"nzWrap","nzWrap",N],nzSize:"nzSize"},exportAs:["nzSpace"],features:[W,B],ngContentSelectors:me,decls:3,vars:0,consts:[[1,"ant-space-item"],[3,"ngTemplateOutlet"],[1,"ant-space-split",3,"margin-bottom","margin-right"],[1,"ant-space-split"],[3,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(n,s){n&1&&(T(),k(0),Y(1,Ce,3,6,null,null,L)),n&2&&(l(),G(s.items))},dependencies:[se,pe],encapsulation:2,changeDetection:0})}}})(),pt=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=V({type:e})}static{this.\u0275inj=q({})}}return e})();export{fe as a,A as b,ve as c,ye as d,be as e,at as f,Ie as g,lt as h,pt as i};