-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy path20781.59e454ccc0296443.js
1 lines (1 loc) · 1.59 KB
/
20781.59e454ccc0296443.js
1
(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[20781],{20781:(t,n,e)=>{e.r(n),e.d(n,{default:()=>r});var o=e(16727),c=e(19908),s=e(56366),u=e(1377),i=e(76145),a=e(17623),l=e(75407);function d(t,n){if(1&t&&(l.j41(0,"div"),l.EFF(1," count is "),l.j41(2,"code"),l.EFF(3),l.nI1(4,"json"),l.k0s()()),2&t){const t=l.XpG().tuiLet;l.R7$(3),l.JRh(l.bMT(4,1,t))}}function p(t,n){if(1&t&&(l.j41(0,"div"),l.EFF(1," count is "),l.j41(2,"code"),l.EFF(3),l.nI1(4,"json"),l.k0s(),l.EFF(5," while it's loading "),l.k0s()),2&t){const t=l.XpG().tuiLet;l.R7$(3),l.JRh(l.bMT(4,1,t))}}function f(t,n){if(1&t&&(l.qex(0),l.DNE(1,d,5,3,"div",2),l.nI1(2,"tuiIsPresent"),l.DNE(3,p,6,3,"ng-template",null,3,l.C5r),l.bVm()),2&t){const t=n.tuiLet,e=l.sdS(4);l.R7$(1),l.Y8G("ngIf",l.bMT(2,2,t))("ngIfElse",e)}}const r=(()=>{var t;class n{constructor(){this.loadCountSubject=new u.B,this.count$=(0,i.of)(0).pipe((0,a.o)((()=>this.loadCountSubject)))}loadCount(){this.loadCountSubject.next(),this.loadCountSubject.complete()}}return(t=n).ɵfac=function(n){return new(n||t)},t.ɵcmp=l.VBU({type:t,selectors:[["ng-component"]],standalone:!0,exportAs:"Example1",features:[l.aNF],decls:4,vars:3,consts:[[4,"tuiLet"],["size","m","tuiButton","","type","button",1,"tui-space_top-4",3,"click"],[4,"ngIf","ngIfElse"],["loading",""]],template:function(t,n){1&t&&(l.DNE(0,f,5,4,"ng-container",0),l.nI1(1,"async"),l.j41(2,"button",1),l.bIt("click",(function(){return n.loadCount()})),l.EFF(3," Load count\n"),l.k0s()),2&t&&l.Y8G("tuiLet",l.bMT(1,1,n.count$))},dependencies:[o.MD,o.bT,o.Jj,o.TG,s.paf,c._ak,c.cOJ],encapsulation:2,changeDetection:0}),n})()}}]);