From 641209e19605d1ce957b1bd31352b1d3c57a672b Mon Sep 17 00:00:00 2001 From: vladimirpotekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Tue, 3 Sep 2024 08:02:58 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20taiga-fa?= =?UTF-8?q?mily/taiga-lumbermill@4ed599106a4498bb58ccd781932b9e74b460f28a?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- chunk-LBSVRTIZ.js => chunk-YOH74QQJ.js | 4 ++-- index.html | 2 +- main-TURUH323.js => main-X6QI3R46.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename chunk-LBSVRTIZ.js => chunk-YOH74QQJ.js (76%) rename main-TURUH323.js => main-X6QI3R46.js (99%) diff --git a/404.html b/404.html index 7e67cac25..ee78b1db2 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/chunk-LBSVRTIZ.js b/chunk-YOH74QQJ.js similarity index 76% rename from chunk-LBSVRTIZ.js rename to chunk-YOH74QQJ.js index 1fa1f2322..deb5de34d 100644 --- a/chunk-LBSVRTIZ.js +++ b/chunk-YOH74QQJ.js @@ -1,8 +1,8 @@ -import{a as Yi,c as me,e as rn,f as an}from"./chunk-EC2Z2FSN.js";import{a as Xi,c as fn,f as xe,g as be,h as ve,i as yn,m as xn}from"./chunk-OWNTDUAT.js";import{b as bn}from"./chunk-GR3FQQH2.js";import{a as Hi,j as Bt,l as he,m as fe,n as ge}from"./chunk-7PYB5Y7S.js";import{a as de}from"./chunk-EQXJDDA3.js";import{a as ln}from"./chunk-PJ44LYAR.js";import{a as sn,b as gn,c as _e,d as Ce,e as ye}from"./chunk-VRUWO75R.js";import{V as Cn,a as Ui,c as Gi,e as Ki,i as pn,w as _n}from"./chunk-67V4JFHO.js";import{Ha as hn,K as At,N as qi,R as Zi,T as Ji,_ as tn,aa as en,c as ui,d as mi,e as di,i as $i,j as ji,ja as nn,l as Wi,la as on,n as Qi,o as ue,pa as cn}from"./chunk-6ZJXXXJJ.js";import{a as R,b as H,c as q}from"./chunk-5T5GHRQ3.js";import{$b as at,$e as Fe,A as tt,Aa as ti,Ab as N,Ae as se,B as Ye,Bb as s,Bc as Y,Bf as pe,Ca as k,Cb as c,Ce as Fi,Cf as F,Db as g,De as Ai,Df as Mt,Ea as et,Eb as lt,Ec as ci,F as qe,Fa as Ct,Fb as pt,Fd as ne,Gb as te,Gd as De,Hb as T,Hd as ct,Ja as Xt,Jb as ai,Ka as x,Kb as w,Kd as bt,Kf as U,La as b,Lb as p,Lf as un,Mb as ut,Mc as Ie,Md as Si,Mf as mn,N as Ke,Na as ei,Nb as W,Nc as K,Nd as wi,Nf as dn,Ob as mt,Oc as ee,Pc as O,Qb as dt,Qc as li,Rb as ht,Rd as Pi,Sa as A,Sb as E,Sc as ie,Tb as u,Tc as M,Td as Mi,Ua as Zt,Ub as St,Ud as Ht,Ue as Bi,Va as ii,Vb as v,Vd as oe,Ve as ce,W as Me,Wb as It,Wc as pi,We as Ni,Xb as V,Xd as $t,Xe as Vi,Yb as L,Ye as Ee,Za as ni,Zb as z,Zd as Oi,_a as oi,_b as Q,_d as Ii,a as zt,ac as it,b as Rt,bc as nt,cb as a,cc as S,d as rt,dc as wt,df as le,e as $e,ea as Xe,ed as hi,ef as Li,fb as Ut,fc as si,fe as re,gd as Pt,ha as Ze,i as je,ia as Ot,id as fi,ja as Je,jc as h,jd as yt,kc as y,kd as gi,ke as X,kf as zi,lb as $,lc as G,ld as _i,m as qt,mb as Oe,nb as ri,nd as Et,ne as Di,o as We,od as Ft,pa as gt,pc as st,pd as Ci,qa as _t,qd as yi,r as Qe,rb as f,sb as Jt,se as ae,t as Kt,ta as Tt,tb as l,td as xi,tf as Ri,ub as C,ud as bi,vb as kt,vd as vi,ve as Ei,w as Ge,wa as d,wd as Ti,xb as D,yb as j,yc as Dt,yd as xt,zb as B,zd as ki}from"./chunk-KLOL2DGG.js";var vn=(()=>{let t=class t{constructor(){this.service=d(Zi)}transform(n){return this.service.format(n.valueOf())}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiFormatDate",type:t,pure:!0,standalone:!0});let e=t;return e})();var Un=typeof IntersectionObserver<"u"?IntersectionObserver:class{constructor(){rt(this,"root",null);rt(this,"rootMargin","");rt(this,"thresholds",[])}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}},Hn=new Tt("[WA_INTERSECTION_ROOT]"),$n=Hn,jn="0px 0px 0px 0px",Wn=jn,Ae=new Tt("[WA_INTERSECTION_ROOT_MARGIN]",{providedIn:"root",factory:()=>Wn}),Qn=Ae;var Gn=0,Yn=Gn,Be=new Tt("[WA_INTERSECTION_THRESHOLD]",{providedIn:"root",factory:()=>Yn}),qn=Be;var Ne=(()=>{var t;let o=class o extends je{constructor(){super(r=>{let m=new Un(_=>{r.next(_)},{root:this.root,rootMargin:this.rootMargin,threshold:this.threshold});return m.observe(this.nativeElement),()=>{m.disconnect()}});rt(this,"nativeElement",d(ii).nativeElement);rt(this,"rootMargin",d(Qn));rt(this,"threshold",d(qn));rt(this,"root",((t=d($n,{optional:!0}))==null?void 0:t.nativeElement)??null)}};rt(o,"\u0275fac",function(m){return new(m||o)}),rt(o,"\u0275prov",_t({token:o,factory:o.\u0275fac}));let e=o;return e})(),ea=new Tt("[WA_INTERSECTION_OBSERVER_SUPPORT]: [INTERSECTION_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!d(Di).IntersectionObserver});var Kn=[{opacity:.06},{opacity:1}],Xn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-skeleton-styles"],standalone:!0,features:[S],decls:0,vars:0,template:function(i,r){},styles:[`@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out 1s infinite alternate}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)} +import{a as Yi,c as me,e as rn,f as an}from"./chunk-EC2Z2FSN.js";import{a as Xi,c as fn,f as xe,g as be,h as ve,i as yn,m as xn}from"./chunk-OWNTDUAT.js";import{b as bn}from"./chunk-GR3FQQH2.js";import{a as Hi,j as Bt,l as he,m as fe,n as ge}from"./chunk-7PYB5Y7S.js";import{a as de}from"./chunk-EQXJDDA3.js";import{a as ln}from"./chunk-PJ44LYAR.js";import{a as sn,b as gn,c as _e,d as Ce,e as ye}from"./chunk-VRUWO75R.js";import{V as Cn,a as Ui,c as Gi,e as Ki,i as pn,w as _n}from"./chunk-67V4JFHO.js";import{Ha as hn,K as At,N as qi,R as Zi,T as Ji,_ as tn,aa as en,c as ui,d as mi,e as di,i as $i,j as ji,ja as nn,l as Wi,la as on,n as Qi,o as ue,pa as cn}from"./chunk-6ZJXXXJJ.js";import{a as R,b as H,c as q}from"./chunk-5T5GHRQ3.js";import{$b as at,$e as Fe,A as tt,Aa as ti,Ab as N,Ae as se,B as Ye,Bb as s,Bc as Y,Bf as pe,Ca as k,Cb as c,Ce as Fi,Cf as F,Db as g,De as Ai,Df as Mt,Ea as et,Eb as lt,Ec as ci,F as qe,Fa as Ct,Fb as pt,Fd as ne,Gb as te,Gd as De,Hb as T,Hd as ct,Ja as Xt,Jb as ai,Ka as x,Kb as w,Kd as bt,Kf as U,La as b,Lb as p,Lf as un,Mb as ut,Mc as Ie,Md as Si,Mf as mn,N as Ke,Na as ei,Nb as W,Nc as K,Nd as wi,Nf as dn,Ob as mt,Oc as ee,Pc as O,Qb as dt,Qc as li,Rb as ht,Rd as Pi,Sa as A,Sb as E,Sc as ie,Tb as u,Tc as M,Td as Mi,Ua as Zt,Ub as St,Ud as Ht,Ue as Bi,Va as ii,Vb as v,Vd as oe,Ve as ce,W as Me,Wb as It,Wc as pi,We as Ni,Xb as V,Xd as $t,Xe as Vi,Yb as L,Ye as Ee,Za as ni,Zb as z,Zd as Oi,_a as oi,_b as Q,_d as Ii,a as zt,ac as it,b as Rt,bc as nt,cb as a,cc as S,d as rt,dc as wt,df as le,e as $e,ea as Xe,ed as hi,ef as Li,fb as Ut,fc as si,fe as re,gd as Pt,ha as Ze,i as je,ia as Ot,id as fi,ja as Je,jc as h,jd as yt,kc as y,kd as gi,ke as X,kf as zi,lb as $,lc as G,ld as _i,m as qt,mb as Oe,nb as ri,nd as Et,ne as Di,o as We,od as Ft,pa as gt,pc as st,pd as Ci,qa as _t,qd as yi,r as Qe,rb as f,sb as Jt,se as ae,t as Kt,ta as Tt,tb as l,td as xi,tf as Ri,ub as C,ud as bi,vb as kt,vd as vi,ve as Ei,w as Ge,wa as d,wd as Ti,xb as D,yb as j,yc as Dt,yd as xt,zb as B,zd as ki}from"./chunk-KLOL2DGG.js";var vn=(()=>{let t=class t{constructor(){this.service=d(Zi)}transform(n){return this.service.format(n.valueOf())}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiFormatDate",type:t,pure:!0,standalone:!0});let e=t;return e})();var Un=typeof IntersectionObserver<"u"?IntersectionObserver:class{constructor(){rt(this,"root",null);rt(this,"rootMargin","");rt(this,"thresholds",[])}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}},Hn=new Tt("[WA_INTERSECTION_ROOT]"),$n=Hn,jn="0px 0px 0px 0px",Wn=jn,Ae=new Tt("[WA_INTERSECTION_ROOT_MARGIN]",{providedIn:"root",factory:()=>Wn}),Qn=Ae;var Gn=0,Yn=Gn,Be=new Tt("[WA_INTERSECTION_THRESHOLD]",{providedIn:"root",factory:()=>Yn}),qn=Be;var Ne=(()=>{var t;let o=class o extends je{constructor(){super(r=>{let m=new Un(_=>{r.next(_)},{root:this.root,rootMargin:this.rootMargin,threshold:this.threshold});return m.observe(this.nativeElement),()=>{m.disconnect()}});rt(this,"nativeElement",d(ii).nativeElement);rt(this,"rootMargin",d(Qn));rt(this,"threshold",d(qn));rt(this,"root",((t=d($n,{optional:!0}))==null?void 0:t.nativeElement)??null)}};rt(o,"\u0275fac",function(m){return new(m||o)}),rt(o,"\u0275prov",_t({token:o,factory:o.\u0275fac}));let e=o;return e})(),ia=new Tt("[WA_INTERSECTION_OBSERVER_SUPPORT]: [INTERSECTION_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!d(Di).IntersectionObserver});var Kn=[{opacity:.06},{opacity:1}],Xn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-skeleton-styles"],standalone:!0,features:[S],decls:0,vars:0,template:function(i,r){},styles:[`@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out 1s infinite alternate}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)} `],encapsulation:2,changeDetection:0});let e=t;return e})(),Z=(()=>{let t=class t{constructor(){this.el=re(),this.duration=d(le)*$i*2,this.nothing=$t(Xn),this.tuiSkeleton=!1}ngOnChanges({tuiSkeleton:n}){var i;(i=this.animation)==null||i.cancel(),!(n!=null&&n.currentValue)&&!(n!=null&&n.firstChange)&&(this.animation=this.el.animate(Kn,this.duration))}getPlaceholder(n){switch(typeof n){case"number":return Array.from({length:n}).map(()=>se.repeat(Zn())).join(" ");case"string":return n;default:return null}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiSkeleton",""]],hostAttrs:["tuiSkeleton",""],hostVars:3,hostBindings:function(i,r){i&2&&(Jt("data-tui-skeleton",r.getPlaceholder(r.tuiSkeleton)),kt("_skeleton",r.tuiSkeleton))},inputs:{tuiSkeleton:"tuiSkeleton"},standalone:!0,features:[Xt]});let e=t;return Kt([oe],e.prototype,"getPlaceholder",null),e})();function Zn(){return Math.floor(Math.random()*11)+5}var Tn={appearance:"neutral",size:"s"},Jn=bt(Tn);function kn(e){return Ht(Jn,e,Tn)}var to=[[["input"]],"*"],eo=["input","*"];function io(e,t){e&1&&(s(0,"span",3),W(1,1),c())}function no(e,t){if(e&1&&(lt(0),g(1,"span",1),f(2,io,2,0,"span",2),pt()),e&2){let o=t.tuiLet,n=p();a(),C("text-indent",n.indent,"px"),l("textContent",o),a(),l("ngIf",!o)}}var Sn=(()=>{let t=class t{constructor(){this.value$=qe(()=>Bi(this.control)),this.indent=-1}onScroll(n){Ii(n)&&Oi(n)&&(this.indent=-n.scrollLeft-1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tui-input-inline"]],contentQueries:function(i,r,m){if(i&1&&mt(m,fi,5),i&2){let _;dt(_=ht())&&(r.control=_.first)}},hostBindings:function(i,r){i&1&&w("scroll.capture",function(_){return r.onScroll(_.target)})},standalone:!0,features:[S],ngContentSelectors:eo,decls:3,vars:3,consts:[[4,"tuiLet"],[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(i,r){i&1&&(ut(to),f(0,no,3,4,"ng-container",0),h(1,"async"),W(2)),i&2&&l("tuiLet",y(1,1,r.value$))},dependencies:[K,Ki,O],styles:[`tui-input-inline{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{display:block;padding-right:.02em;margin-left:1px;white-space:pre}tui-input-inline>.t-placeholder{display:inline-block;min-width:1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none} `],encapsulation:2,changeDetection:0});let e=t;return e})();var oo=[[["img"]],[["tui-svg"],["tui-icon"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],ro=["img","tui-svg,tui-icon","*","[tuiButton]","[tuiLink]"];function ao(e,t){if(e&1){let o=T();s(0,"button",10),w("click",function(){x(o);let i=p();return b(i.close.emit())}),u(1),h(2,"async"),c()}if(e&2){let o=p();C("border-radius",100,"%"),l("iconStart",o.icons.close),a(),v(" ",y(2,4,o.closeWord$),` `)}}function so(e,t){if(e&1&&(g(0,"span",11),h(1,"tuiFormatDate"),h(2,"async")),e&2){let o=p();l("textContent",o.isString(o.timestamp)?o.timestamp:y(2,3,y(1,1,o.timestamp)))}}function co(e,t){if(e&1&&g(0,"img",8),e&2){let o=p(2);l("src",o.context.image,oi)}}function lo(e,t){if(e&1&&g(0,"tui-icon",9),e&2){let o=p(2);C("color",o.context.iconColor),l("icon",o.context.icon)}}function po(e,t){if(e&1&&g(0,"div",10),e&2){let o=t.polymorpheusOutlet;l("innerHTML",o,ni)}}function uo(e,t){if(e&1){let o=T();s(0,"button",11),w("click",function(){x(o);let i=p(2);return b(i.context.$implicit.next(i.context.buttons[0]||""))}),u(1),c()}if(e&2){let o=p(2);a(),v(" ",o.context.buttons[0]," ")}}function mo(e,t){if(e&1){let o=T();s(0,"button",12),w("click",function(){x(o);let i=p(2);return b(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]||""))}),u(1),c()}if(e&2){let o=p(2);a(),v(" ",o.context.buttons[o.context.buttons.length-1]," ")}}function ho(e,t){if(e&1){let o=T();s(0,"tui-push",2),w("close",function(){x(o);let i=p();return b(i.context.$implicit.complete())}),f(1,co,1,1,"img",3)(2,lo,1,3,"tui-icon",4)(3,po,1,1,"div",5)(4,uo,2,1,"button",6)(5,mo,2,1,"button",7),c()}if(e&2){let o=p();l("heading",o.context.heading)("timestamp",o.context.timestamp)("type",o.context.type),a(),l("ngIf",o.context.image),a(),l("ngIf",o.context.icon),a(),l("polymorpheusOutlet",o.context.content)("polymorpheusOutletContext",o.context),a(),l("ngIf",o.context.buttons.length>1),a(),l("ngIf",o.context.buttons.length)}}function fo(e,t){e&1&&te(0)}function go(e,t){if(e&1&&f(0,fo,1,0,"ng-container",13),e&2){let o=p();l("polymorpheusOutlet",o.context.content)}}var _o=(()=>{let t=class t{constructor(){this.isString=Si,this.closeWord$=d(zi),this.icons=d(Li),this.heading="",this.type="",this.timestamp="",this.close=new A}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tui-push"]],inputs:{heading:"heading",type:"type",timestamp:"timestamp"},outputs:{close:"close"},standalone:!0,features:[nt([pe({size:"s",appearance:"secondary"})]),S],ngContentSelectors:ro,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","size","xs","tuiIconButton","","type","button","class","t-close",3,"iconStart","border-radius","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","size","xs","tuiIconButton","","type","button",1,"t-close",3,"click","iconStart"],[1,"t-time",3,"textContent"]],template:function(i,r){i&1&&(ut(oo),s(0,"div",0),W(1),c(),f(2,ao,3,6,"button",1),s(3,"div",2)(4,"span",3),W(5,1),c(),u(6),f(7,so,3,5,"span",4),c(),s(8,"h3",5),u(9),c(),s(10,"div",6),W(11,2),c(),s(12,"div",7)(13,"span",8),W(14,3),c(),s(15,"span",9),W(16,4),c()()),i&2&&(a(2),l("ngIf",r.close.observed),a(4),v(" ",r.type," "),a(),l("ngIf",r.timestamp),a(2),v(" ",r.heading,` `))},dependencies:[K,O,F,vn],styles:['[_nghost-%COMP%]{position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0});let e=t;return e})(),Co={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},yo=bt(Co);var xo=(()=>{let t=class t{constructor(){this.options=ji(d(le)),this.context=d(Wi)}get isDirective(){return this.context.content instanceof bo}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(i,r){i&2&&ai("@tuiFadeIn",r.options)("@tuiSlideInRight",r.options)("@tuiHeightCollapse",r.options)},standalone:!0,features:[S],decls:3,vars:2,consts:[["directive",""],[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"close","heading","timestamp","type"],["alt","",3,"src",4,"ngIf"],[3,"icon","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"icon"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"],[4,"polymorpheusOutlet"]],template:function(i,r){if(i&1&&f(0,ho,6,9,"tui-push",1)(1,go,1,1,"ng-template",null,0,st),i&2){let m=E(2);l("ngIf",!r.isDirective)("ngIfElse",m)}},dependencies:[K,ue,_o,Mt,F,Ui],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[mi,di,ui]},changeDetection:0});let e=t;return e})(),Ve=(()=>{let t=class t extends Gi{};t.\u0275fac=(()=>{let n;return function(r){return(n||(n=ei(t)))(r||t)}})(),t.\u0275prov=_t({token:t,factory:()=>new t(Yi,xo,d(yo)),providedIn:"root"});let e=t;return e})(),bo=(()=>{let t=class t extends Qi{constructor(){super(d(Ut),d(Dt)),this.push=d(gt(()=>Ve)),this.show$=new qt,this.show$.pipe(Vi(()=>this.push.open(this)),ne()).subscribe()}set tuiPush(n){this.show$.next(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["ng-template","tuiPush",""]],inputs:{tuiPush:"tuiPush"},standalone:!0,features:[Oe]});let e=t;return e})();var wn=(()=>{let t=class t{constructor(){this.token={urlIcon:"",token:"",amount:0,symbol:""},this.tokenChange=new A}createNew(){this.tokenChange.emit(null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter-created"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[S],decls:5,vars:5,consts:[["size","xl",1,"logo",3,"src"],["tuiTitle","",1,"info"],["tuiButton","",3,"click"]],template:function(i,r){i&1&&(g(0,"tui-avatar",0),s(1,"h3",1),u(2),c(),s(3,"button",2),w("click",function(){return r.createNew()}),u(4,` Create new Token `),c()),i&2&&(l("src",r.token.urlIcon),a(2),It(" ",r.token.amount," ($",r.token.symbol,`) have been sent to your wallet `),a(),C("margin-top","auto"))},dependencies:[M,U,F,R],styles:[".logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}"],changeDetection:0});let e=t;return e})();var jt=()=>[],To=()=>({label:"Edit logo",size:"s",closeable:!1,dismissible:!1});function ko(e,t){if(e&1){let o=T();s(0,"p"),u(1,"URL of 256x256 pixel PNG image of token logo"),c(),s(2,"tui-input",17),u(3," Logo token "),c(),g(4,"tui-error",18),h(5,"tuiFieldError"),h(6,"async"),s(7,"p")(8,"button",19),w("click",function(){let i=x(o).$implicit;p();let r=it(2);return b(r!==""?i.complete():"")}),u(9," Submit "),c()()}e&2&&(a(4),C("text-align","center"),l("error",y(6,5,y(5,3,wt(7,jt)))))}var Mn=(()=>{let t=class t{constructor(){this.form=new _i({name:new Et("",[Pt.required]),symbol:new Et("",[Pt.required,Pt.minLength(3),Pt.maxLength(5)]),amount:new Et(0,[Pt.required,Pt.min(1)]),urlIcon:new Et(""),description:new Et("")}),this.push=d(Ve),this.openDialog=!1,this.tokenChange=new A}showDialog(){this.openDialog=!0}onSubmit(){Pi(this.form),this.form.valid&&(this.push.open("Minted your token",{heading:"Success",icon:"check"}).subscribe(),this.tokenChange.emit({urlIcon:this.form.controls.urlIcon.value??"",token:this.form.controls.name.value??"",symbol:this.form.controls.symbol.value??"",amount:Number(this.form.controls.amount.value)??0}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter-deploy"]],outputs:{tokenChange:"tokenChange"},standalone:!0,features:[nt([{provide:hn,useValue:{maxlength:({requiredLength:n})=>`Maximum length \u2014 ${n}`,minlength:({requiredLength:n})=>Ge(`Minimum length \u2014 ${n}`)}}]),S],decls:39,vars:35,consts:[[3,"submit","formGroup"],[1,"info","block-input"],["tuiCell","l"],["size","xl",3,"click","src"],["tuiTitle",""],["tuiSubtitle",""],["formControlName","name","tuiHintContent","Your project name with spaces"],["tuiTextfieldLegacy",""],["formControlName","name",1,"block-input",3,"error"],["formControlName","symbol","tuiHintContent","Currency symbol appearing in balance (usually 3-5 uppercase chars)"],["formControlName","symbol",1,"block-input",3,"error"],["formControlName","amount","tuiHintContent","Number of initial tokens to mint and send to your waller address"],["formControlName","amount",1,"block-input",3,"error"],["formControlName","description","tuiHintContent","Optional sentence explaining about yor project"],["formControlName","description",1,"block-input",3,"error"],["tuiButton","","type","submit"],[3,"tuiDialogChange","tuiDialogOptions","tuiDialog"],["formControlName","urlIcon","tuiAutoFocus",""],["formControlName","urlIcon",1,"block-input",3,"error"],["tuiButton","",3,"click"]],template:function(i,r){if(i&1){let m=T();Q(0)(1)(2)(3),s(4,"form",0),w("submit",function(){return x(m),b(r.onSubmit())}),s(5,"div",1)(6,"div",2)(7,"tui-avatar",3),w("click",function(){return x(m),b(r.showDialog())}),c(),s(8,"div",4),u(9),s(10,"div",5),u(11),c()()()(),s(12,"tui-input",6),u(13," Jetton Name "),g(14,"input",7),c(),g(15,"tui-error",8),h(16,"tuiFieldError"),h(17,"async"),s(18,"tui-input",9),u(19," Jetton Symbol "),g(20,"input",7),c(),g(21,"tui-error",10),h(22,"tuiFieldError"),h(23,"async"),s(24,"tui-input-number",11),u(25," Number of tokens "),g(26,"input",7),c(),g(27,"tui-error",12),h(28,"tuiFieldError"),h(29,"async"),s(30,"tui-input",13),u(31," Description "),g(32,"input",7),c(),g(33,"tui-error",14),h(34,"tuiFieldError"),h(35,"async"),s(36,"button",15),u(37," Deploy "),c(),f(38,ko,10,8,"ng-template",16),z("tuiDialogChange",function(P){return x(m),L(r.openDialog,P)||(r.openDialog=P),b(P)}),c()}if(i&2){let m=r.form.controls.name.value,_=r.form.controls.symbol.value;a(2);let P=at(r.form.controls.urlIcon.value),ft=r.form.controls.description.value;a(2),l("formGroup",r.form),a(3),l("src",!r.openDialog&&P!==""?P:"@tui.pencil"),a(2),It(" ",m==""?"Jetton Name":m," (",_==""?"Symbol":_,") "),a(2),St(ft==""?"Description":ft),a(4),l("error",y(17,16,y(16,14,wt(30,jt)))),a(6),l("error",y(23,20,y(22,18,wt(31,jt)))),a(6),l("error",y(29,24,y(28,22,wt(32,jt)))),a(6),l("error",y(35,28,y(34,26,wt(33,jt)))),a(3),C("margin-top","auto"),a(2),l("tuiDialogOptions",wt(34,To)),V("tuiDialog",r.openDialog)}},dependencies:[M,O,xt,Ci,yt,gi,ki,xi,bi,me,U,F,Bt,an,sn,gn,cn,ye,_e,Ce,Cn,ge,he,fe],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;height:100%}.block-input[_ngcontent-%COMP%]{margin-bottom:.3rem}"],changeDetection:0});let e=t;return e})();function So(e,t){if(e&1){let o=T();s(0,"lmb-minter-deploy",5),w("tokenChange",function(i){x(o);let r=p();return b(r.token=i)}),c()}e&2&&C("flex-grow",1)}function wo(e,t){if(e&1){let o=T();s(0,"lmb-minter-created",6),z("tokenChange",function(i){x(o);let r=p();return L(r.token,i)||(r.token=i),b(i)}),c()}if(e&2){let o=p();C("flex-grow",1),V("token",o.token)}}var On=(()=>{let t=class t{constructor(){this.token=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-minter"]],standalone:!0,features:[S],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"flex-grow"],[3,"flex-grow","token"],[3,"tokenChange"],[3,"tokenChange","token"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3),c()(),f(4,So,1,2,"lmb-minter-deploy",3)(5,wo,1,3,"lmb-minter-created",4),c()),i&2&&(a(2),C("text-align","center"),a(),v(" ",r.token?r.token.token+" successfully created":"Mint your token"," "),a(),D(r.token?5:4))},dependencies:[M,wn,Mn,X,H,q,R],styles:[".info[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;text-align:center}.card[_ngcontent-%COMP%]{height:100%}.block-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.logo[_ngcontent-%COMP%]{background-color:#7c48c3;background-image:linear-gradient(45deg,#c86dd7,#3023ae);overflow:visible;margin-left:auto;margin-right:auto;animation:_ngcontent-%COMP%_spinLogo 5s infinite}@keyframes _ngcontent-%COMP%_spinLogo{0%{transform:rotateY(0);box-shadow:0 0 #0000004d}12%{transform:rotateY(90deg) rotate(6deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}25%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}50%{transform:rotateY(180deg);box-shadow:0 0 #0000004d}62%{transform:rotateY(270deg) rotate(-8deg) scale(1.7);box-shadow:0 .25rem .5rem #0000004d}80%{transform:rotateY(720deg);box-shadow:0 0 #0000004d}to{transform:rotateY(720deg);box-shadow:0 0 #0000004d}}"],changeDetection:0});let e=t;return e})();var Po={currency:null,currencyAlign:"left",sign:"negative-only"},Mo=bt(Po);function Oo(e,t){return t==="never"||!e||t==="negative-only"&&e>0?"":t==="force-negative"||e<0&&t!=="force-positive"?Fi:Ai}var Io=2,vt=(()=>{let t=class t{constructor(){this.options=d(Mo),this.format=d(Ri)}transform(n,i=this.options.currency,r=this.options.currencyAlign){return this.format.pipe(tt(m=>{let _=Oo(n,this.options.sign),P=bn(i),ft=Hi(Math.abs(n),Rt(zt({},m),{precision:Number.isNaN(m.precision)?Io:m.precision})),He=P&&((P==null?void 0:P.length)>1||r==="right")?se:"";return r==="right"?`${_}${ft}${He}${P}`:`${_}${P}${He}${ft}`}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiAmount",type:t,pure:!0,standalone:!0});let e=t;return e})();var Te=["*"],Do=["tuiTh",""];function Eo(e,t){if(e&1){let o=T();s(0,"button",3),w("click",function(){x(o);let i=p();return b(i.updateSorterAndDirection())}),te(1,4),u(2),h(3,"async"),g(4,"tui-icon",5),c()}if(e&2){let o=p(),n=E(2);kt("t-sort_sorted",o.isCurrent),a(),l("ngTemplateOutlet",n),a(),v(" ",y(3,5,o.table&&o.table.change$)," "),a(2),l("icon",o.icon)}}function Fo(e,t){e&1&&W(0)}function Ao(e,t){if(e&1){let o=T();s(0,"div",6),w("tuiResized",function(i){x(o);let r=p();return b(r.onResized(i))}),c()}}var Bo=["tuiTd",""],No=["tuiTr",""];function Vo(e,t){if(e&1&&(s(0,"td",5),u(1),c()),e&2){let o=t.ngIf,n=p(2).$implicit;a(),v(" ",o[n]," ")}}function Lo(e,t){if(e&1&&(f(0,Vo,2,1,"td",4),h(1,"async")),e&2){let o=p(3);l("ngIf",y(1,1,o.item$))}}function zo(e,t){if(e&1&&(lt(0,3),f(1,Lo,2,3,"ng-template",null,0,st),pt()),e&2){let o=t.$implicit,n=E(2),i=p().ngIf;l("ngTemplateOutlet",i[o]&&i[o].template||n)}}function Ro(e,t){if(e&1&&(lt(0),f(1,zo,3,1,"ng-container",2),pt()),e&2){let o=p();a(),l("ngForOf",o.table.columns)}}var Uo=["tuiTbody",""];function Ho(e,t){if(e&1&&(lt(0),u(1),pt()),e&2){let o=t.polymorpheusOutlet;a(),v(" ",o," ")}}function $o(e,t){if(e&1){let o=T();s(0,"tr")(1,"th",1)(2,"button",2),w("click",function(){x(o);let i=p();return b(i.onClick())}),s(3,"span",3),f(4,Ho,2,1,"ng-container",4),c(),g(5,"tui-icon",5),c()()()}if(e&2){let o=p();a(),l("colSpan",o.table.columns.length),a(3),l("polymorpheusOutlet",o.heading),a(),l("tuiChevron",o.open)}}function jo(e,t){e&1&&(lt(0),W(1),pt())}var Wo=["tuiThGroup",""];function Qo(e,t){if(e&1&&(s(0,"th",5),u(1),c()),e&2){let o=p(2).$implicit;a(),v(" ",o.toString()," ")}}function Go(e,t){if(e&1&&f(0,Qo,2,1,"th",4),e&2){let o=p(3);l("ngIf",!o.th&&!o.heads.length)}}function Yo(e,t){if(e&1&&(lt(0,3),f(1,Go,1,1,"ng-template",null,0,st),pt()),e&2){let o=t.$implicit,n=E(2),i=p().ngIf;l("ngTemplateOutlet",i[o]&&i[o].template||n)}}function qo(e,t){if(e&1&&(lt(0),f(1,Yo,3,1,"ng-container",2),pt()),e&2){let o=p();a(),l("ngForOf",o.table.columns)}}var Wt=(()=>{let t=class t{constructor(){this.tuiCell="",this.template=d(Ut)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["ng-template","tuiCell",""]],inputs:{tuiCell:"tuiCell"},standalone:!0});let e=t;return e})(),Ko={sticky:!1,resizable:!1,open:!0,size:"m",direction:1,sortIcons:{asc:"@tui.chevron-up",desc:"@tui.chevron-down",off:"@tui.chevrons-up-down"}},Re=bt(Ko);var Xo=(()=>{let t=class t{constructor(){this.stuck=ct(d(Ne).pipe(tt(n=>n[n.length-1].intersectionRatio<1),Me(),Fe(d(Dt)),Ke(()=>Qe)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["never"]],hostVars:2,hostBindings:function(i,r){i&2&&kt("_stuck",r.stuck())},standalone:!0,features:[nt([Ne,{provide:Be,useValue:[0,1]}])]});let e=t;return e})(),Zo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-table"],standalone:!0,features:[S],decls:0,vars:0,template:function(i,r){},styles:[`table[tuiTable] [tuiCell]{padding:0}table[tuiTable] [tuiTitle]{white-space:nowrap}table[tuiTable] [tuiTitle] tui-icon{font-size:1rem}table[tuiTable] [tuiSubtitle]{color:var(--tui-text-secondary)}table[tuiTable] [tuiTh] [tuiCell],table[tuiTable] [tuiTh] [tuiTitle]{font:inherit;color:inherit} -`],encapsulation:2,changeDetection:0});let e=t;return e})(),ot=(()=>{let t=class t{constructor(){this.options=d(Re),this.cdr=d(Dt),this.nothing=$t(Zo),this.columns=[],this.direction=this.options.direction,this.directionChange=new A,this.sorterChange=new A,this.appearance=$("table"),this.size=$(this.options.size),this.cleaner=$(!1),this.change$=new qt,this.sorter=()=>0}set sizeSetter(n){this.size.set(n)}updateSorterAndDirection(n){this.sorter===n?this.updateDirection(this.direction===1?-1:1):(this.updateSorter(n),this.updateDirection(1))}ngOnChanges(){this.change$.next()}ngAfterViewInit(){this.cdr.detectChanges()}updateSorter(n){this.sorter=n||(()=>0),this.sorterChange.emit(this.sorter),this.change$.next()}updateDirection(n){this.direction=n,this.directionChange.emit(this.direction),this.change$.next()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["table","tuiTable",""]],hostAttrs:[2,"border-collapse","separate"],hostVars:1,hostBindings:function(i,r){i&2&&Jt("data-size",r.size())},inputs:{columns:"columns",direction:"direction",sizeSetter:[0,"size","sizeSetter"],sorter:"sorter"},outputs:{directionChange:"directionChange",sorterChange:"sorterChange"},standalone:!0,features:[nt([{provide:Ae,useValue:"10000px 10000px 10000px 0px"},Mi(pn,t),pe({size:"s"}),mn({size:"m",appearance:"neutral"}),kn({size:"xxs",appearance:"neutral"}),fn({size:"s",color:"var(--tui-text-action)"})]),ri([Xo]),Xt]});let e=t;return e})();var Lt=(()=>{let t=class t{constructor(){this.tuiHead="",this.template=d(Ut)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiHead",""]],inputs:{tuiHead:"tuiHead"},standalone:!0});let e=t;return e})(),Jo=(()=>{let t=class t{constructor(){this.doc=d(ci),this.el=re(),this.tuiResized=ce(this.el,"mousedown").pipe(Ni(),Ot(()=>{var r;let{width:n,right:i}=((r=this.el.closest("th"))==null?void 0:r.getBoundingClientRect())||Ei;return ce(this.doc,"mousemove").pipe(Me(),tt(({clientX:m})=>n+m-i),Je(ce(this.doc,"mouseup")))}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiResized",""]],outputs:{tuiResized:"tuiResized"},standalone:!0});let e=t;return e})(),Vt=(()=>{let t=class t{constructor(){this.options=d(Re),this.head=d(Lt,{optional:!0}),this.width=null,this.table=d(gt(()=>ot),{optional:!0}),this.sorter=this.head?(n,i)=>wi(n[this.key],i[this.key]):null,this.resizable=this.options.resizable,this.sticky=this.options.sticky}get key(){if(!this.head)throw new ze;return this.head.tuiHead}get isCurrent(){return!!this.sorter&&!!this.table&&this.sorter===this.table.sorter}get icon(){var n;return this.isCurrent?((n=this.table)==null?void 0:n.direction)===1?this.options.sortIcons.desc:this.options.sortIcons.asc:this.options.sortIcons.off}updateSorterAndDirection(){var n;(n=this.table)==null||n.updateSorterAndDirection(this.isCurrentAndAscDirection?null:this.sorter)}onResized(n){this.width=n}get isCurrentAndAscDirection(){var n,i;return this.sorter===((n=this.table)==null?void 0:n.sorter)&&((i=this.table)==null?void 0:i.direction)===-1}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTh",""]],hostVars:4,hostBindings:function(i,r){i&2&&(C("width",r.width,"px"),kt("_sticky",r.sticky))},inputs:{sorter:"sorter",resizable:"resizable",sticky:"sticky"},standalone:!0,features:[S],attrs:Do,ngContentSelectors:Te,decls:4,vars:3,consts:[["content",""],["type","button","class","t-sort",3,"t-sort_sorted","click",4,"ngIf","ngIfElse"],["class","t-bar",3,"tuiResized",4,"ngIf"],["type","button",1,"t-sort",3,"click"],[3,"ngTemplateOutlet"],[1,"t-icon",3,"icon"],[1,"t-bar",3,"tuiResized"]],template:function(i,r){if(i&1&&(ut(),f(0,Eo,5,7,"button",1)(1,Fo,1,0,"ng-template",null,0,st)(3,Ao,1,0,"div",2)),i&2){let m=E(2);l("ngIf",r.sorter&&r.table)("ngIfElse",m),a(3),l("ngIf",r.resizable)}},dependencies:[K,ee,Mt,O,Jo],styles:['[_nghost-%COMP%]{transition-property:box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;top:0;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:700;color:var(--tui-text-secondary);background:var(--tui-background-base);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem #ededed00;border:1px solid var(--tui-border-normal);filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}[_nghost-%COMP%]:not(:first-child){border-left:none}._sticky[_nghost-%COMP%], ._stuck ._sticky[_nghost-%COMP%]{position:sticky;z-index:30}._sticky[_nghost-%COMP%]:first-child, ._stuck ._sticky[_nghost-%COMP%]:first-child{left:0}._sticky[_nghost-%COMP%]:after, ._stuck ._sticky[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}._stuck [_nghost-%COMP%]{z-index:20}tr:not(:first-child)[_nghost-%COMP%], tr:not(:first-child) [_nghost-%COMP%]{border-top:none}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:700;padding:0 1rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);font-weight:700;padding:0 .5rem}thead[tuiThead][_nghost-%COMP%], thead[tuiThead] [_nghost-%COMP%]{position:sticky}table._stuck._sticky[_nghost-%COMP%]:after, table._stuck ._sticky[_nghost-%COMP%]:after{opacity:1}thead[tuiThead]._stuck[_nghost-%COMP%], thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #edededb3}[tuiTheme="dark"]._sticky[_nghost-%COMP%]:after, [tuiTheme="dark"] ._sticky[_nghost-%COMP%]:after{background:#3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%], [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%]:first-child, [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]:first-child{box-shadow:.0625rem .3125rem #3c3c3ce6}table[data-size="l"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="l"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-l)}table[data-size="m"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="m"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-m)}table[data-size="s"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="s"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-s)}.t-sort[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:inline-flex;flex-direction:inherit;align-items:center;outline:none;font-weight:700;cursor:pointer}.t-sort_sorted[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-sort[_ngcontent-%COMP%]:focus-visible{background:var(--tui-service-selection-background)}.t-sort[_ngcontent-%COMP%]:hover{color:var(--tui-text-primary)}.t-bar[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-status-warning);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar[_ngcontent-%COMP%]:hover, .t-bar[_ngcontent-%COMP%]:active{opacity:1}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}'],changeDetection:0});let e=t;return e})(),ze=class extends Error{constructor(){super("")}};var ke=(()=>{let t=class t{constructor(){this.table=d(ot)}transform(n){return this.sort(n??[],this.table.sorter,this.table.direction)}sort(n,i,r){return[...n].sort((m,_)=>r*i(m,_))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiTableSort",type:t,pure:!1,standalone:!0});let e=t;return Kt([oe],e.prototype,"sort",null),e})(),Ue=[{provide:ot,deps:[[new ti,ot],Dt],useFactory:(e,t)=>(e.change$.pipe(Fe(t),ne()).subscribe(),e)}],Qt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTd",""],["td","tuiTd",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Ji,5),mt(m,_n,5)),i&2){let _;dt(_=ht())&&(r.current=_.first),dt(_=ht())&&(r.legacy=_.first)}},hostVars:2,hostBindings:function(i,r){i&2&&kt("_editable",r.current||r.legacy)},standalone:!0,features:[S],attrs:Bo,ngContentSelectors:Te,decls:1,vars:0,template:function(i,r){i&1&&(ut(),W(0))},styles:['[_nghost-%COMP%]{position:relative;text-align:left;background:var(--tui-background-base);border:1px solid var(--tui-border-normal);border-top:none;box-sizing:border-box;filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}._editable[_nghost-%COMP%]{padding:0!important}[_nghost-%COMP%]:first-child{left:0}[_nghost-%COMP%]:not(:first-child){border-left:none}._editable[_nghost-%COMP%]:focus-within{z-index:1}._editable[_nghost-%COMP%]{padding:0;vertical-align:top}th[_nghost-%COMP%]{position:sticky;z-index:1}th[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}th[_nghost-%COMP%]:focus-within:not(:disabled){z-index:11}[tuiTheme="dark"][_nghost-%COMP%]:after, [tuiTheme="dark"] [_nghost-%COMP%]:after{background:#3c3c3ce6}table._stuck[_nghost-%COMP%], table._stuck [_nghost-%COMP%]{z-index:10}table._stuck[_nghost-%COMP%]:last-of-type:after, table._stuck [_nghost-%COMP%]:last-of-type:after{opacity:1}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);padding:1rem}table[data-size="m"][_nghost-%COMP%], table[data-size="m"] [_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:.75rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);padding:.25rem .5rem}td[_nghost-%COMP%]:focus-within{z-index:1}td[_nghost-%COMP%]:not(:focus-within){z-index:0}'],changeDetection:0});let e=t;return e})(),Gt=(()=>{let t=class t{constructor(){this.cells=ae,this.body=d(gt(()=>Yt)),this.contentReady$=new We(1),this.table=d(gt(()=>ot)),this.cells$=this.contentReady$.pipe(Ot(()=>Ee(this.cells)),tt(n=>n.reduce((i,r)=>Rt(zt({},i),{[r.tuiCell]:r}),{}))),this.item$=this.contentReady$.pipe(Ot(()=>Ee(this.body.rows)),tt(n=>this.body.data[n.findIndex(i=>i===this)]))}ngAfterContentInit(){return $e(this,null,function*(){yield Promise.resolve(),this.contentReady$.next(!0)})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiTr",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Wt,4),i&2){let _;dt(_=ht())&&(r.cells=_)}},standalone:!0,features:[nt([Ue]),S],attrs:No,decls:2,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTd","",4,"ngIf"],["tuiTd",""]],template:function(i,r){i&1&&(f(0,Ro,2,1,"ng-container",1),h(1,"async")),i&2&&l("ngIf",y(1,1,r.cells$))},dependencies:[K,O,Ie,ee,Qt],encapsulation:2,changeDetection:0});let e=t;return e})(),Yt=(()=>{let t=class t{constructor(){this.options=d(Re),this.table=d(gt(()=>ot)),this.rows=ae,this.data=[],this.open=this.options.open,this.openChange=new A}onClick(){this.open=!this.open,this.openChange.emit(this.open)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tbody","tuiTbody",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Gt,4),i&2){let _;dt(_=ht())&&(r.rows=_)}},inputs:{data:"data",heading:"heading",open:"open"},outputs:{openChange:"openChange"},standalone:!0,features:[nt(Ue),S],attrs:Uo,ngContentSelectors:Te,decls:2,vars:2,consts:[[4,"ngIf"],[1,"t-heading",3,"colSpan"],["type","button",1,"t-expand",3,"click"],[1,"t-name"],[4,"polymorpheusOutlet"],[1,"t-chevron",3,"tuiChevron"]],template:function(i,r){i&1&&(ut(),f(0,$o,6,3,"tr",0)(1,jo,2,0,"ng-container",0)),i&2&&(l("ngIf",r.heading),a(),l("ngIf",r.open))},dependencies:[K,Mt,ue,de],styles:['[_nghost-%COMP%]{border-color:var(--tui-border-normal)}[_nghost-%COMP%] tr[_ngcontent-%COMP%]{border-color:inherit}.t-expand[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:none;font-weight:700;cursor:pointer;border-color:inherit}.t-expand[_ngcontent-%COMP%]:focus-visible .t-name[_ngcontent-%COMP%]{background:var(--tui-service-selection-background)}.t-expand[_ngcontent-%COMP%]:before, .t-expand[_ngcontent-%COMP%]:after{content:"";position:sticky;height:100%;border-left:1px solid;border-color:inherit}.t-expand[_ngcontent-%COMP%]:before{left:0}.t-expand[_ngcontent-%COMP%]:after{right:0}.t-heading[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-background-neutral-1);border-bottom:1px solid var(--tui-border-normal);border-color:inherit}.t-heading[_ngcontent-%COMP%]:hover{background:var(--tui-background-neutral-1-hover)}table[data-size="l"][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-name[_ngcontent-%COMP%]{position:sticky;left:.75rem;display:inline-block}table[data-size="l"][_nghost-%COMP%] .t-name[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-name[_ngcontent-%COMP%]{left:1rem}.t-chevron[_ngcontent-%COMP%]{position:sticky;right:.75rem;margin:0 .6875rem 0 auto}'],changeDetection:0});let e=t;return e})(),Se=(()=>{let t=class t{constructor(){this.heads=ae,this.heads$=null,this.table=d(gt(()=>ot))}ngAfterContentInit(){this.heads$=this.heads.changes.pipe(Ze(null),tt(()=>this.heads.reduce((n,i)=>Rt(zt({},n),{[i.tuiHead]:i}),{})))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiThGroup",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Vt,5),mt(m,Lt,4)),i&2){let _;dt(_=ht())&&(r.th=_.first),dt(_=ht())&&(r.heads=_)}},standalone:!0,features:[nt([Ue]),S],attrs:Wo,ngContentSelectors:Te,decls:3,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTh","",4,"ngIf"],["tuiTh",""]],template:function(i,r){i&1&&(ut(),W(0),f(1,qo,2,1,"ng-container",1),h(2,"async")),i&2&&(a(),l("ngIf",y(2,1,r.heads$)))},dependencies:[K,Vt,ee,Ie,O],encapsulation:2,changeDetection:0});let e=t;return e})();function er(e,t){if(e&1&&(s(0,"tui-badge",14),h(1,"tuiAutoColor"),u(2),c()),e&2){let o=t.$implicit;C("background",y(1,3,o)),a(2),v(" ",o," ")}}function ir(e,t){if(e&1&&(s(0,"th",18),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sorter",null)("sticky",!0),a(),v(" ",o," ")}}function nr(e,t){if(e&1&&f(0,ir,2,5,"th",17),e&2){let o=p().$implicit;l("tuiHead",o)}}function or(e,t){if(e&1&&(s(0,"th",20),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o==="priceUsd"?"price, $":o," ")}}function rr(e,t){if(e&1&&f(0,or,2,4,"th",19),e&2){let o=p().$implicit;l("tuiHead",o)}}function ar(e,t){if(e&1&&f(0,nr,1,1,"th",15)(1,rr,1,1,"th",16),e&2){let o=t.$implicit;D(o==="from"||o==="to"?0:1)}}function sr(e,t){if(e&1&&(s(0,"td",22),u(1),h(2,"date"),c()),e&2){let o=p().$implicit,n=p().$implicit;a(),v(" ",o==="time"?G(2,1,n[o],"dd.MM.yyyy"):n[o]," ")}}function cr(e,t){if(e&1&&f(0,sr,3,4,"td",23),e&2){let o=t.$implicit;l("tuiCell",o)}}function lr(e,t){if(e&1&&(s(0,"tr",21),B(1,cr,1,1,"td",22,j),c()),e&2){let o=p(2);a(),N(o.columns)}}function pr(e,t){if(e&1){let o=T();s(0,"div",1),g(1,"tui-avatar",2),s(2,"div",3)(3,"h2",4),u(4),c(),s(5,"p",5),u(6),h(7,"tuiAmount"),h(8,"async"),c(),s(9,"div",6),B(10,er,3,5,"tui-badge",7,j),c()(),s(12,"button",8),w("click",function(){x(o);let i=p();return b(i.goBack())}),c()(),s(13,"tui-scrollbar")(14,"cdk-virtual-scroll-viewport",9,0)(16,"table",10)(17,"thead")(18,"tr",11),B(19,ar,2,1,null,null,j),c()(),s(21,"tbody",12),f(22,lr,3,0,"tr",13),h(23,"tuiTableSort"),c()()()()}if(e&2){let o=p(),n=it(0);a(),l("src",n.src),a(),C("text-align","center"),a(2),St(n.name),a(2),v(" ",y(8,13,G(7,10,n.price,"USD"))," "),a(4),N(n.tags),a(4),l("itemSize",46)("maxBufferPx",500)("minBufferPx",200),a(2),l("columns",o.columns),a(3),N(o.columns),a(3),l("cdkVirtualForOf",y(23,15,n.transactions))}}var In=(()=>{let t=class t{constructor(){this.columns=["type","priceUsd","from","to","time"],this.nftChange=new A,this.nft=Zt.required()}goBack(){this.nftChange.emit(null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-item"]],inputs:{nft:[1,"nft"]},outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:2,vars:2,consts:[["viewport",""],[1,"info"],[1,"logo-nft","nft-icon",3,"src"],["tuiHeader","",1,"text"],[1,"tui-space_top-0","tui-space_bottom-2"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"badges"],["appearance","primary",3,"background"],["appearance","icon","iconStart","@tui.circle-x","size","s","tuiIconButton","",3,"click"],["tuiScrollable","",1,"viewport","tui-zero-scrollbar",3,"itemSize","maxBufferPx","minBufferPx"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["appearance","primary"],["tuiTh","",3,"sorter","sticky","top"],["tuiTh","",3,"sticky","top"],["tuiTh","",3,"sorter","sticky","top",4,"tuiHead"],["tuiTh","",3,"sorter","sticky"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd",""],["tuiTd","",4,"tuiCell"]],template:function(i,r){if(i&1&&(Q(0),f(1,pr,24,17)),i&2){let m=at(r.nft());a(),D(m?1:-1)}},dependencies:[xe,ve,be,M,O,li,vt,Xi,U,dn,F,q,At,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke],styles:[".nft-icon[_ngcontent-%COMP%]{border-radius:1rem;width:10rem;height:10rem}.info[_ngcontent-%COMP%]{position:relative;display:flex;padding:.687rem 0;justify-content:space-between}.text[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:2.875rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:10rem;font-weight:700}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3rem}.viewport[_ngcontent-%COMP%]{height:15.625rem}.badges[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.4rem}"],changeDetection:0});let e=t;return e})();var we=[{type:"Putting up for sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"-",time:1222222222233},{type:"Sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"UQGGxX...ilf3A",time:1500231542231},{type:"Putting up for sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"-",time:1712412323429},{type:"Sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"UQDYzZ...inf4K",time:1712482323429}],ur=[{name:"Beth",src:"./nft/1.jpg",price:1,tags:["Premium","VIP"],transactions:we},{name:"Pryor",src:"./nft/2.jpg",price:2,tags:["Premium","VIP"],transactions:we},{name:"Olea",src:"./nft/3.jpg",price:3,tags:["Premium","VIP"],transactions:we},{name:"Imogen",src:"./nft/4.jpg",price:4,tags:["Premium","VIP"],transactions:we}],Dn=(()=>{let t=class t{constructor(){this.nfts=ur}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function mr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}function dr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}var En=(()=>{let t=class t{constructor(){this.nfts=d(Dn).nfts,this.nftChange=new A}updateItem(n){this.nftChange.emit(this.nfts[n])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-list"]],outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:14,vars:0,consts:[[1,"info"],[1,"row-title","tui-space_top-0","tui-space_bottom-0"],[1,"list"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft",3,"click"],[1,"logo-nft",3,"src"],[1,"text"],[1,"nft-name","tui-space_top-1","tui-space_bottom-0"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"h3",1),u(2,"Top NFTs"),c(),s(3,"tui-scrollbar")(4,"div",2),B(5,mr,9,10,"button",3,j),c()()(),s(7,"div",0)(8,"h3",1),u(9,"Recent bought NFTs"),c(),s(10,"tui-scrollbar")(11,"div",2),B(12,dr,9,10,"button",3,j),c()()()),i&2&&(a(5),N(r.nfts),a(7),N(r.nfts))},dependencies:[M,O,vt,U,H,At,ln],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:1rem;gap:.5rem;max-width:100%}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.logo-nft[_ngcontent-%COMP%]{width:100%;border-radius:0;height:60%}.card-nft[tuiCardLarge][data-space][_ngcontent-%COMP%]{padding:0;height:9rem;width:7.5rem;gap:0}.text[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto}.nft-name[_ngcontent-%COMP%]{font-weight:600}.row-title[_ngcontent-%COMP%]{font-size:1.25rem}"],changeDetection:0});let e=t;return e})();function hr(e,t){if(e&1){let o=T();s(0,"lmb-nft-item",4),z("nftChange",function(i){x(o);let r=p();return L(r.nft,i)||(r.nft=i),b(i)}),c()}if(e&2){let o=p();V("nft",o.nft)}}function fr(e,t){if(e&1){let o=T();s(0,"lmb-nft-list",5),w("nftChange",function(i){x(o);let r=p();return b(r.nft=i)}),c()}}var Fn=(()=>{let t=class t{constructor(){this.nft=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft"]],standalone:!0,features:[S],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"nft"],[3,"nftChange","nft"],[3,"nftChange"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3," NFT Market "),c()(),f(4,hr,1,1,"lmb-nft-item",3)(5,fr,1,0,"lmb-nft-list"),c()),i&2&&(a(2),C("text-align","center"),a(2),D(r.nft?4:5))},dependencies:[M,In,En,X,H,q,R],styles:["@media (min-width: 68rem){.card[_ngcontent-%COMP%]{min-width:37rem}}"],changeDetection:0});let e=t;return e})();var gr=new Tt("",{factory:()=>"https://api.coincap.io/v2/assets"}),J=(()=>{let t=class t{constructor(){this.http=d(pi),this.API=d(gr),this.tokens=this.getTokens()}getTokens(){return this.http.get(this.API).pipe(tt(n=>n.data)).pipe(Xe({bufferSize:1,refCount:!0}))}getHistory(n,i){return this.http.get(`${this.API}/${n}/history`,{params:{interval:i}}).pipe(tt(r=>r.data))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Pe=(()=>{let t=class t{transform(n){return`https://assets.coincap.io/assets/icons/${n}@2x.png`}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"coinIcon",type:t,pure:!0,standalone:!0});let e=t;return e})();function _r(e,t){if(e&1&&(s(0,"th",13),u(1),c()),e&2){let o=p().$implicit;p();let n=E(9);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o," ")}}function Cr(e,t){if(e&1&&f(0,_r,2,4,"th",12),e&2){let o=t.$implicit;l("tuiHead",o)}}function yr(e,t){if(e&1&&(s(0,"td",16)(1,"div",17)(2,"tui-avatar-stack",18),g(3,"tui-avatar",19),h(4,"coinIcon"),g(5,"tui-avatar",19),h(6,"coinIcon"),c(),s(7,"div",20),u(8),c()()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(2),l("direction","right"),a(),l("src",y(4,8,o.symbolFirst)),a(2),l("src",y(6,10,o.symbolSecond)),a(2),C("font-weight","500"),a(),v(" ",o.Pair," ")}}function xr(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" $",o.TVL,"M ")}}function br(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" ",o.APR,"% ")}}function vr(e,t){e&1&&(s(0,"tr",14),f(1,yr,9,12,"td",15)(2,xr,3,5,"td",15)(3,br,3,5,"td",15),c()),e&2&&(a(),l("tuiCell","Pair"),a(),l("tuiCell","TVL"),a(),l("tuiCell","APR"))}var An=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.tableData=Y(()=>{let n=this.tokens()||[];return n.map((i,r)=>{var m,_,P,ft;return{Pair:`${(m=n==null?void 0:n[r])==null?void 0:m.symbol.toUpperCase()}/${(_=n==null?void 0:n[r+1])==null?void 0:_.symbol.toUpperCase()}`,TVL:this.getTVL(r),APR:this.getAPR(r),symbolFirst:(P=n==null?void 0:n[r])==null?void 0:P.symbol.toLowerCase(),symbolSecond:(ft=n==null?void 0:n[r+1])==null?void 0:ft.symbol.toLowerCase()}}).filter((i,r)=>r%2===0).filter(i=>i.Pair.includes(this.search().toUpperCase()))}),this.columns=["Pair","TVL","APR"],this.search=$("")}lengthPools(n){return[...new Array(n).keys()].filter((i,r)=>r%2===0)}getTVL(n){var r,m,_,P;let i=Number((m=(r=this.tokens())==null?void 0:r[n])==null?void 0:m.priceUsd)+Number((P=(_=this.tokens())==null?void 0:_[n+1])==null?void 0:P.priceUsd)+1;return i>100?(i/(i/100+1)).toFixed(1):i.toFixed(1)}getAPR(n){return(10-Number(this.getTVL(n))/11).toFixed(1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-pools"]],standalone:!0,features:[S],decls:18,vars:12,consts:[["viewport",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["tuiTextfieldIconLeft","@tui.search",3,"ngModelChange","tuiSkeleton","ngModel"],[1,"list-pools",3,"tuiSkeleton"],["itemSize","64","tuiScrollable","",1,"viewport","tui-zero-scrollbar"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTh","",3,"sticky","top"],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd","",3,"padding-left",4,"tuiCell"],["tuiTd",""],[1,"stack"],[1,"tui-space_top-3","tui-space_bottom-3",3,"direction"],["size","m",3,"src"],["TuiTitle",""]],template:function(i,r){if(i&1){let m=T();s(0,"div",1)(1,"header",2)(2,"h2",3),u(3," Pools "),c()(),s(4,"tui-input",4),z("ngModelChange",function(P){return x(m),L(r.search,P)||(r.search=P),b(P)}),u(5," Search "),c(),s(6,"div",5)(7,"tui-scrollbar")(8,"cdk-virtual-scroll-viewport",6,0)(10,"table",7)(11,"thead")(12,"tr",8),B(13,Cr,1,1,"th",9,j),c()(),s(15,"tbody",10),f(16,vr,4,3,"tr",11),h(17,"tuiTableSort"),c()()()()()()}i&2&&(C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!r.tokens()),a(2),l("tuiSkeleton",!r.tokens()),V("ngModel",r.search),a(2),l("tuiSkeleton",!r.tokens()),a(4),l("columns",r.columns),a(3),N(r.columns),a(3),l("cdkVirtualForOf",y(17,10,r.tableData())))},dependencies:[xe,ve,be,Pe,M,xt,yt,Ft,X,U,un,H,q,ye,_e,Ce,qi,At,Z,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke,R],styles:[".list-pools[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem;overflow:hidden}.viewport[_ngcontent-%COMP%]{height:20rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:1px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:0;border-left:0;border-right:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;text-align:center}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:3.5rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:2rem;border-right:0}.stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem}"],changeDetection:0});let e=t;return e})();var Bn={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Tr=(e,t)=>[e,t];function kr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$implicit,r=p();return b(r.filterButton.set(i))}),u(1),c()}if(e&2){let o=t.$implicit,n=p();l("tuiAppearanceState",o===n.filterButton()?"active":null),a(),v(" ",o," ")}}var Nn=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.step=Y(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=Y(()=>new Map((this.history()??[]).map((n,i)=>[Math.trunc(i/this.step()),new Date(n.date).toDateString()]))),this.chart=Y(()=>this.processData(this.history())),this.minPrice=Y(()=>Math.min(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.maxPrice=Y(()=>Math.max(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=$(this.filterButtons[0]),this.maxPoints=150,this.token=Zt.required(),this.interval=Y(()=>Bn[this.filterButton()]),this.history=ct(Ye([De(this.token),De(this.interval)]).pipe(Ot(([n,i])=>this.pricesService.getHistory(n,i)))),this.yStringify=n=>`${(this.maxPrice()>10?n:n/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=n=>`${this.xTargets().get(n)}`}processData(n){return(n??[]).map((r,m)=>[Math.trunc(m/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,m)=>m%this.step()===0)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[S],decls:9,vars:22,consts:[[1,"axes",3,"axisYLabels","horizontalLines","tuiSkeleton","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(i,r){i&1&&(s(0,"tui-axes",0),h(1,"tuiAmount"),h(2,"async"),h(3,"tuiAmount"),h(4,"async"),g(5,"tui-line-chart",1),c(),s(6,"div",2),B(7,kr,2,2,"button",3,j),c()),i&2&&(l("axisYLabels",si(19,Tr,y(2,13,y(1,11,r.minPrice()))||"",y(4,17,y(3,15,r.maxPrice()))||""))("horizontalLines",4)("tuiSkeleton",!r.history())("verticalLines",4),a(5),l("height",r.maxPrice()*(r.maxPrice()>10?1:100)-r.minPrice()*(r.maxPrice()>10?1:100))("value",r.chart())("width",r.chart().length)("x",0)("xStringify",r.xStringify)("y",r.minPrice()*(r.maxPrice()>10?1:100))("yStringify",r.yStringify),a(2),N(r.filterButtons))},dependencies:[O,M,vt,yn,F,xn,Z],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let e=t;return e})();function Sr(e,t){if(e&1){let o=T();s(0,"div",4),w("click",function(){x(o);let i=p().$implicit,r=p(2);return b(r.chooseToken(i.id))}),g(1,"tui-avatar",5),s(2,"div",6),u(3),s(4,"div",7),u(5),h(6,"number"),s(7,"span"),u(8),h(9,"number"),c()()()()}if(e&2){let o=p().$implicit;a(),l("src","https://assets.coincap.io/assets/icons/"+o.symbol.toLowerCase()+"@2x.png"),a(2),v(" ",o.name," "),a(2),v(" ",G(6,6,o.priceUsd,"1.2-2"),"$ "),a(2),C("color",o.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),a(),v(" ",G(9,9,o.changePercent24Hr,"1.2-2"),"% ")}}function wr(e,t){if(e&1&&f(0,Sr,10,12,"div",3),e&2){let o=t.$implicit,n=p(2);D(n.token===""||o.id===n.token?0:-1)}}function Pr(e,t){if(e&1){let o=T();s(0,"button",8),w("click",function(){x(o);let i=p(2);return b(i.addToken())}),u(1," Add Token "),c()}}function Mr(e,t){if(e&1&&(s(0,"div",1),B(1,wr,1,1,null,null,j),c(),f(3,Pr,2,0,"button",2)),e&2){let o=p(),n=it(0);a(),N(n.slice(0,o.showTokens)),a(2),D(o.token===""&&o.showTokens{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.tokens,this.showTokens=4,this.token="",this.tokenChange=new A}addToken(){this.showTokens+=1}chooseToken(n){let i=this.token===n?"":n;this.token=i,this.tokenChange.emit(i)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[S],decls:4,vars:5,consts:[["tuiCardLarge","",1,"price-list",3,"tuiSkeleton"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(i,r){if(i&1&&(Q(0),h(1,"async"),s(2,"div",0),f(3,Mr,4,1),c()),i&2){let m=at(y(1,2,r.tokens$));a(2),l("tuiSkeleton",!m),a(),D(m?3:-1)}},dependencies:[O,M,ie,U,F,H,Bt,Z,R],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0;min-height:14.125rem}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:15.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let e=t;return e})();function Or(e,t){if(e&1&&g(0,"lmb-price-chart",3),e&2){let o=p();l("token",o.token)}}var Ln=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.getTokens(),this.token=""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-prices"]],standalone:!0,features:[S],decls:8,vars:11,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],[3,"token"],[3,"tokenChange","token"]],template:function(i,r){if(i&1){let m=T();Q(0),h(1,"async"),s(2,"div",0)(3,"header",1)(4,"h2",2),u(5," Cryptocurrency Prices "),c()(),f(6,Or,1,1,"lmb-price-chart",3),s(7,"lmb-price-list",4),z("tokenChange",function(P){return x(m),L(r.token,P)||(r.token=P),b(P)}),c()()}if(i&2){let m=y(1,9,r.tokens$);a(2),C("height","100%")("min-height","420px"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),D(r.token!==""?6:-1),a(),V("token",r.token)}},dependencies:[M,O,Nn,Vn,X,H,q,Z,R],encapsulation:2,changeDetection:0});let e=t;return e})();function Ir(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputStake,i)||(r.inputStake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.available-o.amount())("min",0),V("ngModel",o.inputStake)}}function Dr(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputUnstake,i)||(r.inputUnstake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.amount())("min",0),V("ngModel",o.inputUnstake)}}function Er(e,t){if(e&1){let o=T();s(0,"header",15)(1,"h2",16),u(2),c()(),s(3,"p"),u(4),c(),f(5,Ir,2,3,"tui-input-number",17)(6,Dr,2,3,"tui-input-number",17),s(7,"p")(8,"button",18),w("click",function(){let i=x(o).$implicit,r=p();return b([i.complete(),r.addAmount(r.stake?r.inputStake:-r.inputUnstake),r.inputStake=0])}),u(9),c()()}if(e&2){let o=p();a(2),v("",o.stake?"Staking":"Unstaking"," Bitcoin"),a(2),It("Available for ",o.stake?"stake":"unstake",": ",o.stake?o.available-o.amount():o.amount()," BTC"),a(),D(o.stake?5:6),a(4),v(" ",o.stake?"Stake":"Unstake"," ")}}var zn=(()=>{let t=class t{constructor(){this.dialogs=d(rn),this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.price=Y(()=>{var n;return this.amount()*(Number((n=(this.tokens()??[]).find(i=>i.symbol==="BTC"))==null?void 0:n.priceUsd)??0)}),this.inputStake=0,this.inputUnstake=0,this.amount=$(0),this.available=100,this.stake=!1}addAmount(n){this.amount.update(i=>i+n)}showDialog(n){this.dialogs.open(n).subscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-staking"]],standalone:!0,features:[S],decls:51,vars:19,consts:[["template",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","",1,"info"],["size","l",3,"src","tuiSkeleton"],["tuiTitle","",3,"tuiSkeleton"],["tuiSubtitle","",3,"tuiSkeleton"],[1,"group-buttons"],["appearance","accent","tuiButton","",3,"click","tuiSkeleton"],["appearance","whiteblock","tuiButton","",3,"click","tuiSkeleton"],[1,"position",3,"tuiSkeleton"],[1,"position-title"],[1,"block-position"],[1,"tui-space_top-0","tui-space_bottom-0","bold"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"bold"],["tuiHeader",""],["tuiTitle",""],["tuiAutoFocus","",3,"max","min","ngModel"],["tuiButton","","type","submit",3,"click"],["tuiAutoFocus","",3,"ngModelChange","max","min","ngModel"]],template:function(i,r){if(i&1){let m=T();Q(0),s(1,"div",1)(2,"header",2),g(3,"tui-avatar",3),h(4,"coinIcon"),s(5,"h2",4),u(6," Staking Bitcoin "),c(),s(7,"div",5),u(8," Earn a share of the protocol`s fees "),g(9,"br"),u(10," while staking BITCOIN "),c()(),s(11,"div",6)(12,"button",7),w("click",function(){x(m);let P=E(50);return b([r.stake=!0,r.showDialog(P)])}),u(13," Stake "),c(),s(14,"button",8),w("click",function(){x(m);let P=E(50);return b([r.stake=!1,r.showDialog(P)])}),u(15," Unstake "),c()(),s(16,"div",9)(17,"div",10),u(18,"My position"),c(),g(19,"hr"),s(20,"div",11)(21,"div",12),u(22),c(),s(23,"div"),u(24),h(25,"number"),c()(),g(26,"hr"),s(27,"div",11)(28,"div"),u(29,"Rewards"),c(),s(30,"div",12),u(31,"0 BTC"),c(),s(32,"div"),u(33,"$0"),c()()(),s(34,"div",9)(35,"div",10),u(36,"Overview"),c(),g(37,"hr"),s(38,"div",11)(39,"div",13),u(40,"Total stacked"),c(),s(41,"div",14),u(42,"1.5M BTC"),c()(),g(43,"hr"),s(44,"div",11)(45,"div",13),u(46,"APR"),c(),s(47,"div",14),u(48,"5%"),c()()()(),f(49,Er,10,5,"ng-template",null,0,st)}if(i&2){let m=r.tokens();a(3),l("src",y(4,14,"btc"))("tuiSkeleton",!m),a(2),C("text-align","center"),l("tuiSkeleton",m?"":"Staking Bitcoin"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(5),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(6),v("",r.amount()," BTC"),a(2),v("$",G(25,16,r.price(),"1.2-2"),""),a(10),l("tuiSkeleton",!m)}},dependencies:[Pe,M,ie,xt,yt,Ft,X,me,U,F,H,q,ge,he,fe,Z,R],styles:[".card[_ngcontent-%COMP%]{height:100%;min-height:41.625rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.group-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem}.group-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.position[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem}.position-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;font-weight:600}.bold[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem}.block-position[_ngcontent-%COMP%]{display:flex;padding:.5rem 1rem;flex-direction:column}"],changeDetection:0});let e=t;return e})();var Fr=(e,t)=>t.symbol;function Ar(e,t){e&1&&g(0,"tui-icon",16),e&2&&C("font-size",1,"em")("margin-left",.5,"rem")}function Br(e,t){if(e&1){let o=T();s(0,"button",14),w("click",function(){let i=x(o).$implicit,r=p().$implicit;p();let m=it(9),_=p();return b([m?_.newTokenTo(i.symbol):_.newTokenFrom(i.symbol),r()])}),u(1),f(2,Ar,1,4,"tui-icon",15),c()}if(e&2){let o=t.$implicit;p(2);let n=it(0);l("value",o.symbol),a(),v(" ",o.symbol.toUpperCase()," "),a(),l("ngIf",o.symbol.toLowerCase()===n.toLowerCase())}}function Nr(e,t){if(e&1&&(s(0,"tui-data-list",12),B(1,Br,3,3,"button",13,Fr),c()),e&2){p(2);let o=it(0);a(),N(o)}}function Vr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.to,i)||(r.to=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapTo())}),c()}if(e&2){let o=p(2);V("ngModel",o.to)}}function Lr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.from,i)||(r.from=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapFrom())}),c()}if(e&2){let o=p(2);V("ngModel",o.from)}}function zr(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceTo()*o.to(),"USD"))," ")}}function Rr(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceFrom()*o.from(),"USD"))," ")}}function Ur(e,t){if(e&1&&(Q(0),s(1,"div")(2,"div",5)(3,"div",6),u(4),c(),s(5,"div",6),u(6),c()(),s(7,"button",7),g(8,"tui-avatar",8),Q(9),f(10,Nr,3,0,"ng-template",null,0,st),c()(),s(12,"div")(13,"tui-input-inline",9),f(14,Vr,1,1,"input",10)(15,Lr,1,1,"input",10),c(),s(16,"div")(17,"div",11),f(18,zr,3,6)(19,Rr,3,6),c(),g(20,"hr"),c()()),e&2){let o=t.$implicit,n=t.$index,i=E(11),r=p(),m=it(0),_=at(n?r.tokenTo().toUpperCase():r.tokenFrom().toUpperCase());a(3),l("tuiSkeleton",!m),a(),v(" ",o," "),a(),l("tuiSkeleton",!m),a(),v(" Balance: 1000 ",_.toUpperCase()," "),a(),l("tuiDropdown",i)("tuiSkeleton",!m),a(),l("src","https://assets.coincap.io/assets/icons/"+_.toLowerCase()+"@2x.png"),a(),at(n),a(4),l("tuiSkeleton",!m),a(),D(n?14:15),a(3),l("tuiSkeleton",!m),a(),D(n?18:19)}}var Rn=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.priceFrom=Y(()=>this.getPrice(this.tokenFrom())),this.priceTo=Y(()=>this.getPrice(this.tokenTo())),this.titles=["From","To"],this.from=$(0),this.to=$(0),this.tokenFrom=$("eth"),this.tokenTo=$("btc")}newTokenFrom(n){this.tokenFrom.set(n),this.newSwapFrom()}newTokenTo(n){this.tokenTo.set(n),this.newSwapTo()}getPrice(n){var i;return Number((i=(this.tokens()??[]).find(r=>r.symbol.toLowerCase()===n.toLowerCase()))==null?void 0:i.priceUsd)||0}newSwapFrom(){this.to.set(Number((this.priceFrom()*Number(this.from())/this.priceTo()).toFixed(2)))}newSwapTo(){this.from.set(Number((this.priceTo()*Number(this.to())/this.priceFrom()).toFixed(2)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-swap"]],standalone:!0,features:[S],decls:9,vars:7,consts:[["dropdownContent",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["appearance","primary","tuiButton","",3,"tuiSkeleton"],["tuiCell","l"],["TuiTitle","",3,"tuiSkeleton"],["tuiButton","","tuiChevron","","tuiDropdownOpen","","type","button",1,"choose-crypto",3,"tuiDropdown","tuiSkeleton"],["size","xs",3,"src"],["tuiTitle","l",3,"tuiSkeleton"],["max","1000","min","0","type","number",3,"ngModel"],["tuiSubtitle","",1,"equal-number",3,"tuiSkeleton"],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],["max","1000","min","0","type","number",3,"ngModelChange","input","ngModel"]],template:function(i,r){if(i&1&&(Q(0),s(1,"div",1)(2,"header",2)(3,"h2",3),u(4," Swap "),c()(),B(5,Ur,21,13,null,null,j),s(7,"button",4),u(8," Swap "),c()()),i&2){let m=at(r.tokens());a(),C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),N(r.titles),a(2),l("tuiSkeleton",!m)}},dependencies:[M,K,O,xt,hi,yi,yt,Ti,vi,Ft,vt,X,U,F,H,Bt,de,on,nn,tn,en,q,Mt,Sn,Z,R],styles:[".choose-crypto[_ngcontent-%COMP%]{height:2rem}.equal-number[_ngcontent-%COMP%]{text-align:right}tui-input-inline[_ngcontent-%COMP%]{height:2.5rem}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"],changeDetection:0});let e=t;return e})();var jp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-crypto"]],standalone:!0,features:[S],decls:11,vars:0,consts:[[1,"layout"],[1,"left"],[1,""],[1,"staking"],[1,"right"],[1,"right-top"],[1,"minter"],[1,"right-bottom"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1),g(2,"lmb-prices",2)(3,"lmb-staking",3),c(),s(4,"div",4)(5,"div",5),g(6,"lmb-minter",6)(7,"lmb-swap",2),c(),s(8,"div",7),g(9,"lmb-nft",2)(10,"lmb-pools",2),c()()())},dependencies:[M,On,Fn,An,Ln,zn,Rn],styles:[".layout[_ngcontent-%COMP%]{display:flex;width:100%;gap:1rem;margin-top:1rem}@media (max-width: 68rem){.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.minter[_ngcontent-%COMP%]{height:100%}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1;width:21.875rem;flex-shrink:0}@media (max-width: 68rem){.left[_ngcontent-%COMP%]{width:100%}}.right[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1}.right-top[_ngcontent-%COMP%]{display:grid;gap:1rem;height:100%;grid-template-columns:2fr 4fr;flex-grow:1}@media (max-width: 68rem){.right-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.right-bottom[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:4fr 3fr}@media (max-width: 80rem){.right-bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}"],changeDetection:0});let e=t;return e})();export{jp as CryptoComponent}; +`],encapsulation:2,changeDetection:0});let e=t;return e})(),ot=(()=>{let t=class t{constructor(){this.options=d(Re),this.cdr=d(Dt),this.nothing=$t(Zo),this.columns=[],this.direction=this.options.direction,this.directionChange=new A,this.sorterChange=new A,this.appearance=$("table"),this.size=$(this.options.size),this.cleaner=$(!1),this.change$=new qt,this.sorter=()=>0}set sizeSetter(n){this.size.set(n)}updateSorterAndDirection(n){this.sorter===n?this.updateDirection(this.direction===1?-1:1):(this.updateSorter(n),this.updateDirection(1))}ngOnChanges(){this.change$.next()}ngAfterViewInit(){this.cdr.detectChanges()}updateSorter(n){this.sorter=n||(()=>0),this.sorterChange.emit(this.sorter),this.change$.next()}updateDirection(n){this.direction=n,this.directionChange.emit(this.direction),this.change$.next()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["table","tuiTable",""]],hostAttrs:[2,"border-collapse","separate"],hostVars:1,hostBindings:function(i,r){i&2&&Jt("data-size",r.size())},inputs:{columns:"columns",direction:"direction",sizeSetter:[0,"size","sizeSetter"],sorter:"sorter"},outputs:{directionChange:"directionChange",sorterChange:"sorterChange"},standalone:!0,features:[nt([{provide:Ae,useValue:"10000px 10000px 10000px 0px"},Mi(pn,t),pe({size:"s"}),mn({size:"m",appearance:"neutral"}),kn({size:"xxs",appearance:"neutral"}),fn({size:"s",color:"var(--tui-text-action)"})]),ri([Xo]),Xt]});let e=t;return e})();var Lt=(()=>{let t=class t{constructor(){this.tuiHead="",this.template=d(Ut)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiHead",""]],inputs:{tuiHead:"tuiHead"},standalone:!0});let e=t;return e})(),Jo=(()=>{let t=class t{constructor(){this.doc=d(ci),this.el=re(),this.tuiResized=ce(this.el,"mousedown").pipe(Ni(),Ot(()=>{var r;let{width:n,right:i}=((r=this.el.closest("th"))==null?void 0:r.getBoundingClientRect())||Ei;return ce(this.doc,"mousemove").pipe(Me(),tt(({clientX:m})=>n+m-i),Je(ce(this.doc,"mouseup")))}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=et({type:t,selectors:[["","tuiResized",""]],outputs:{tuiResized:"tuiResized"},standalone:!0});let e=t;return e})(),Vt=(()=>{let t=class t{constructor(){this.options=d(Re),this.head=d(Lt,{optional:!0}),this.width=null,this.table=d(gt(()=>ot),{optional:!0}),this.sorter=this.head?(n,i)=>wi(n[this.key],i[this.key]):null,this.resizable=this.options.resizable,this.sticky=this.options.sticky}get key(){if(!this.head)throw new ze;return this.head.tuiHead}get isCurrent(){return!!this.sorter&&!!this.table&&this.sorter===this.table.sorter}get icon(){var n;return this.isCurrent?((n=this.table)==null?void 0:n.direction)===1?this.options.sortIcons.desc:this.options.sortIcons.asc:this.options.sortIcons.off}updateSorterAndDirection(){var n;(n=this.table)==null||n.updateSorterAndDirection(this.isCurrentAndAscDirection?null:this.sorter)}onResized(n){this.width=n}get isCurrentAndAscDirection(){var n,i;return this.sorter===((n=this.table)==null?void 0:n.sorter)&&((i=this.table)==null?void 0:i.direction)===-1}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTh",""]],hostVars:4,hostBindings:function(i,r){i&2&&(C("width",r.width,"px"),kt("_sticky",r.sticky))},inputs:{sorter:"sorter",resizable:"resizable",sticky:"sticky"},standalone:!0,features:[S],attrs:Do,ngContentSelectors:Te,decls:4,vars:3,consts:[["content",""],["type","button","class","t-sort",3,"t-sort_sorted","click",4,"ngIf","ngIfElse"],["class","t-bar",3,"tuiResized",4,"ngIf"],["type","button",1,"t-sort",3,"click"],[3,"ngTemplateOutlet"],[1,"t-icon",3,"icon"],[1,"t-bar",3,"tuiResized"]],template:function(i,r){if(i&1&&(ut(),f(0,Eo,5,7,"button",1)(1,Fo,1,0,"ng-template",null,0,st)(3,Ao,1,0,"div",2)),i&2){let m=E(2);l("ngIf",r.sorter&&r.table)("ngIfElse",m),a(3),l("ngIf",r.resizable)}},dependencies:[K,ee,Mt,O,Jo],styles:['[_nghost-%COMP%]{transition-property:box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;top:0;height:var(--tui-height-m);font:var(--tui-font-text-s);text-align:left;font-weight:700;color:var(--tui-text-secondary);background:var(--tui-background-base);cursor:default;padding:0 .75rem;box-sizing:border-box;box-shadow:0 .3125rem #ededed00;border:1px solid var(--tui-border-normal);filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}[_nghost-%COMP%]:not(:first-child){border-left:none}._sticky[_nghost-%COMP%], ._stuck ._sticky[_nghost-%COMP%]{position:sticky;z-index:30}._sticky[_nghost-%COMP%]:first-child, ._stuck ._sticky[_nghost-%COMP%]:first-child{left:0}._sticky[_nghost-%COMP%]:after, ._stuck ._sticky[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;left:100%;bottom:0;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}._stuck [_nghost-%COMP%]{z-index:20}tr:not(:first-child)[_nghost-%COMP%], tr:not(:first-child) [_nghost-%COMP%]{border-top:none}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:700;padding:0 1rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);font-weight:700;padding:0 .5rem}thead[tuiThead][_nghost-%COMP%], thead[tuiThead] [_nghost-%COMP%]{position:sticky}table._stuck._sticky[_nghost-%COMP%]:after, table._stuck ._sticky[_nghost-%COMP%]:after{opacity:1}thead[tuiThead]._stuck[_nghost-%COMP%], thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #edededb3}[tuiTheme="dark"]._sticky[_nghost-%COMP%]:after, [tuiTheme="dark"] ._sticky[_nghost-%COMP%]:after{background:#3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%], [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]{box-shadow:0 .3125rem #3c3c3ce6}[tuiTheme="dark"] thead[tuiThead]._stuck[_nghost-%COMP%]:first-child, [tuiTheme="dark"] thead[tuiThead]._stuck [_nghost-%COMP%]:first-child{box-shadow:.0625rem .3125rem #3c3c3ce6}table[data-size="l"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="l"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-l)}table[data-size="m"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="m"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-m)}table[data-size="s"] thead[tuiThead] tr:nth-child(2)[_nghost-%COMP%], table[data-size="s"] thead[tuiThead] tr:nth-child(2) [_nghost-%COMP%]{top:var(--tui-height-s)}.t-sort[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:inline-flex;flex-direction:inherit;align-items:center;outline:none;font-weight:700;cursor:pointer}.t-sort_sorted[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-sort[_ngcontent-%COMP%]:focus-visible{background:var(--tui-service-selection-background)}.t-sort[_ngcontent-%COMP%]:hover{color:var(--tui-text-primary)}.t-bar[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;bottom:0;right:-1px;width:3px;justify-self:flex-end;border-left:2px solid transparent;background:var(--tui-status-warning);background-clip:content-box;cursor:ew-resize;opacity:0}.t-bar[_ngcontent-%COMP%]:hover, .t-bar[_ngcontent-%COMP%]:active{opacity:1}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}'],changeDetection:0});let e=t;return e})(),ze=class extends Error{constructor(){super("")}};var ke=(()=>{let t=class t{constructor(){this.table=d(ot)}transform(n){return this.sort(n??[],this.table.sorter,this.table.direction)}sort(n,i,r){return[...n].sort((m,_)=>r*i(m,_))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"tuiTableSort",type:t,pure:!1,standalone:!0});let e=t;return Kt([oe],e.prototype,"sort",null),e})(),Ue=[{provide:ot,deps:[[new ti,ot],Dt],useFactory:(e,t)=>(e.change$.pipe(Fe(t),ne()).subscribe(),e)}],Qt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["th","tuiTd",""],["td","tuiTd",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Ji,5),mt(m,_n,5)),i&2){let _;dt(_=ht())&&(r.current=_.first),dt(_=ht())&&(r.legacy=_.first)}},hostVars:2,hostBindings:function(i,r){i&2&&kt("_editable",r.current||r.legacy)},standalone:!0,features:[S],attrs:Bo,ngContentSelectors:Te,decls:1,vars:0,template:function(i,r){i&1&&(ut(),W(0))},styles:['[_nghost-%COMP%]{position:relative;text-align:left;background:var(--tui-background-base);border:1px solid var(--tui-border-normal);border-top:none;box-sizing:border-box;filter:opacity(1)}@supports (-webkit-hyphens: none){[_nghost-%COMP%]{transform:translateZ(0)}}._editable[_nghost-%COMP%]{padding:0!important}[_nghost-%COMP%]:first-child{left:0}[_nghost-%COMP%]:not(:first-child){border-left:none}._editable[_nghost-%COMP%]:focus-within{z-index:1}._editable[_nghost-%COMP%]{padding:0;vertical-align:top}th[_nghost-%COMP%]{position:sticky;z-index:1}th[_nghost-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;left:100%;width:.3125rem;pointer-events:none;background:#edededb3;opacity:0}th[_nghost-%COMP%]:focus-within:not(:disabled){z-index:11}[tuiTheme="dark"][_nghost-%COMP%]:after, [tuiTheme="dark"] [_nghost-%COMP%]:after{background:#3c3c3ce6}table._stuck[_nghost-%COMP%], table._stuck [_nghost-%COMP%]{z-index:10}table._stuck[_nghost-%COMP%]:last-of-type:after, table._stuck [_nghost-%COMP%]:last-of-type:after{opacity:1}table[data-size="l"][_nghost-%COMP%], table[data-size="l"] [_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);padding:1rem}table[data-size="m"][_nghost-%COMP%], table[data-size="m"] [_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-s);padding:.75rem}table[data-size="s"][_nghost-%COMP%], table[data-size="s"] [_nghost-%COMP%]{height:var(--tui-height-s);font:var(--tui-font-text-s);padding:.25rem .5rem}td[_nghost-%COMP%]:focus-within{z-index:1}td[_nghost-%COMP%]:not(:focus-within){z-index:0}'],changeDetection:0});let e=t;return e})(),Gt=(()=>{let t=class t{constructor(){this.cells=ae,this.body=d(gt(()=>Yt)),this.contentReady$=new We(1),this.table=d(gt(()=>ot)),this.cells$=this.contentReady$.pipe(Ot(()=>Ee(this.cells)),tt(n=>n.reduce((i,r)=>Rt(zt({},i),{[r.tuiCell]:r}),{}))),this.item$=this.contentReady$.pipe(Ot(()=>Ee(this.body.rows)),tt(n=>this.body.data[n.findIndex(i=>i===this)]))}ngAfterContentInit(){return $e(this,null,function*(){yield Promise.resolve(),this.contentReady$.next(!0)})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiTr",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Wt,4),i&2){let _;dt(_=ht())&&(r.cells=_)}},standalone:!0,features:[nt([Ue]),S],attrs:No,decls:2,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTd","",4,"ngIf"],["tuiTd",""]],template:function(i,r){i&1&&(f(0,Ro,2,1,"ng-container",1),h(1,"async")),i&2&&l("ngIf",y(1,1,r.cells$))},dependencies:[K,O,Ie,ee,Qt],encapsulation:2,changeDetection:0});let e=t;return e})(),Yt=(()=>{let t=class t{constructor(){this.options=d(Re),this.table=d(gt(()=>ot)),this.rows=ae,this.data=[],this.open=this.options.open,this.openChange=new A}onClick(){this.open=!this.open,this.openChange.emit(this.open)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tbody","tuiTbody",""]],contentQueries:function(i,r,m){if(i&1&&mt(m,Gt,4),i&2){let _;dt(_=ht())&&(r.rows=_)}},inputs:{data:"data",heading:"heading",open:"open"},outputs:{openChange:"openChange"},standalone:!0,features:[nt(Ue),S],attrs:Uo,ngContentSelectors:Te,decls:2,vars:2,consts:[[4,"ngIf"],[1,"t-heading",3,"colSpan"],["type","button",1,"t-expand",3,"click"],[1,"t-name"],[4,"polymorpheusOutlet"],[1,"t-chevron",3,"tuiChevron"]],template:function(i,r){i&1&&(ut(),f(0,$o,6,3,"tr",0)(1,jo,2,0,"ng-container",0)),i&2&&(l("ngIf",r.heading),a(),l("ngIf",r.open))},dependencies:[K,Mt,ue,de],styles:['[_nghost-%COMP%]{border-color:var(--tui-border-normal)}[_nghost-%COMP%] tr[_ngcontent-%COMP%]{border-color:inherit}.t-expand[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;display:flex;width:100%;height:100%;align-items:center;box-sizing:border-box;outline:none;font-weight:700;cursor:pointer;border-color:inherit}.t-expand[_ngcontent-%COMP%]:focus-visible .t-name[_ngcontent-%COMP%]{background:var(--tui-service-selection-background)}.t-expand[_ngcontent-%COMP%]:before, .t-expand[_ngcontent-%COMP%]:after{content:"";position:sticky;height:100%;border-left:1px solid;border-color:inherit}.t-expand[_ngcontent-%COMP%]:before{left:0}.t-expand[_ngcontent-%COMP%]:after{right:0}.t-heading[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:var(--tui-height-m);font:var(--tui-font-text-s);padding:0;background:var(--tui-background-neutral-1);border-bottom:1px solid var(--tui-border-normal);border-color:inherit}.t-heading[_ngcontent-%COMP%]:hover{background:var(--tui-background-neutral-1-hover)}table[data-size="l"][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);height:var(--tui-height-l)}.t-name[_ngcontent-%COMP%]{position:sticky;left:.75rem;display:inline-block}table[data-size="l"][_nghost-%COMP%] .t-name[_ngcontent-%COMP%], table[data-size="l"] [_nghost-%COMP%] .t-name[_ngcontent-%COMP%]{left:1rem}.t-chevron[_ngcontent-%COMP%]{position:sticky;right:.75rem;margin:0 .6875rem 0 auto}'],changeDetection:0});let e=t;return e})(),Se=(()=>{let t=class t{constructor(){this.heads=ae,this.heads$=null,this.table=d(gt(()=>ot))}ngAfterContentInit(){this.heads$=this.heads.changes.pipe(Ze(null),tt(()=>this.heads.reduce((n,i)=>Rt(zt({},n),{[i.tuiHead]:i}),{})))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["tr","tuiThGroup",""]],contentQueries:function(i,r,m){if(i&1&&(mt(m,Vt,5),mt(m,Lt,4)),i&2){let _;dt(_=ht())&&(r.th=_.first),dt(_=ht())&&(r.heads=_)}},standalone:!0,features:[nt([Ue]),S],attrs:Wo,ngContentSelectors:Te,decls:3,vars:3,consts:[["plain",""],[4,"ngIf"],[3,"ngTemplateOutlet",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["tuiTh","",4,"ngIf"],["tuiTh",""]],template:function(i,r){i&1&&(ut(),W(0),f(1,qo,2,1,"ng-container",1),h(2,"async")),i&2&&(a(),l("ngIf",y(2,1,r.heads$)))},dependencies:[K,Vt,ee,Ie,O],encapsulation:2,changeDetection:0});let e=t;return e})();function er(e,t){if(e&1&&(s(0,"tui-badge",14),h(1,"tuiAutoColor"),u(2),c()),e&2){let o=t.$implicit;C("background",y(1,3,o)),a(2),v(" ",o," ")}}function ir(e,t){if(e&1&&(s(0,"th",18),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sorter",null)("sticky",!0),a(),v(" ",o," ")}}function nr(e,t){if(e&1&&f(0,ir,2,5,"th",17),e&2){let o=p().$implicit;l("tuiHead",o)}}function or(e,t){if(e&1&&(s(0,"th",20),u(1),c()),e&2){let o=p(2).$implicit;p();let n=E(15);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o==="priceUsd"?"price, $":o," ")}}function rr(e,t){if(e&1&&f(0,or,2,4,"th",19),e&2){let o=p().$implicit;l("tuiHead",o)}}function ar(e,t){if(e&1&&f(0,nr,1,1,"th",15)(1,rr,1,1,"th",16),e&2){let o=t.$implicit;D(o==="from"||o==="to"?0:1)}}function sr(e,t){if(e&1&&(s(0,"td",22),u(1),h(2,"date"),c()),e&2){let o=p().$implicit,n=p().$implicit;a(),v(" ",o==="time"?G(2,1,n[o],"dd.MM.yyyy"):n[o]," ")}}function cr(e,t){if(e&1&&f(0,sr,3,4,"td",23),e&2){let o=t.$implicit;l("tuiCell",o)}}function lr(e,t){if(e&1&&(s(0,"tr",21),B(1,cr,1,1,"td",22,j),c()),e&2){let o=p(2);a(),N(o.columns)}}function pr(e,t){if(e&1){let o=T();s(0,"div",1),g(1,"tui-avatar",2),s(2,"div",3)(3,"h2",4),u(4),c(),s(5,"p",5),u(6),h(7,"tuiAmount"),h(8,"async"),c(),s(9,"div",6),B(10,er,3,5,"tui-badge",7,j),c()(),s(12,"button",8),w("click",function(){x(o);let i=p();return b(i.goBack())}),c()(),s(13,"tui-scrollbar")(14,"cdk-virtual-scroll-viewport",9,0)(16,"table",10)(17,"thead")(18,"tr",11),B(19,ar,2,1,null,null,j),c()(),s(21,"tbody",12),f(22,lr,3,0,"tr",13),h(23,"tuiTableSort"),c()()()()}if(e&2){let o=p(),n=it(0);a(),l("src",n.src),a(),C("text-align","center"),a(2),St(n.name),a(2),v(" ",y(8,13,G(7,10,n.price,"USD"))," "),a(4),N(n.tags),a(4),l("itemSize",46)("maxBufferPx",500)("minBufferPx",200),a(2),l("columns",o.columns),a(3),N(o.columns),a(3),l("cdkVirtualForOf",y(23,15,n.transactions))}}var In=(()=>{let t=class t{constructor(){this.columns=["type","priceUsd","from","to","time"],this.nftChange=new A,this.nft=Zt.required()}goBack(){this.nftChange.emit(null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-item"]],inputs:{nft:[1,"nft"]},outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:2,vars:2,consts:[["viewport",""],[1,"info"],[1,"logo-nft","nft-icon",3,"src"],["tuiHeader","",1,"text"],[1,"tui-space_top-0","tui-space_bottom-2"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"],[1,"badges"],["appearance","primary",3,"background"],["appearance","icon","iconStart","@tui.circle-x","size","s","tuiIconButton","",3,"click"],["tuiScrollable","",1,"viewport","tui-zero-scrollbar",3,"itemSize","maxBufferPx","minBufferPx"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["appearance","primary"],["tuiTh","",3,"sorter","sticky","top"],["tuiTh","",3,"sticky","top"],["tuiTh","",3,"sorter","sticky","top",4,"tuiHead"],["tuiTh","",3,"sorter","sticky"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd",""],["tuiTd","",4,"tuiCell"]],template:function(i,r){if(i&1&&(Q(0),f(1,pr,24,17)),i&2){let m=at(r.nft());a(),D(m?1:-1)}},dependencies:[xe,ve,be,M,O,li,vt,Xi,U,dn,F,q,At,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke],styles:[".nft-icon[_ngcontent-%COMP%]{border-radius:1rem;width:10rem;height:10rem}.info[_ngcontent-%COMP%]{position:relative;display:flex;padding:.687rem 0;justify-content:space-between}.text[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:2.875rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:10rem;font-weight:700}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3rem}.viewport[_ngcontent-%COMP%]{height:15.625rem}.badges[_ngcontent-%COMP%]{display:flex;gap:.5rem;margin-top:.4rem}"],changeDetection:0});let e=t;return e})();var we=[{type:"Putting up for sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"-",time:1222222222233},{type:"Sale",priceUsd:2,from:"UQDYzZ...inf4K",to:"UQGGxX...ilf3A",time:1500231542231},{type:"Putting up for sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"-",time:1712412323429},{type:"Sale",priceUsd:5,from:"UQGGxX...ilf3A",to:"UQDYzZ...inf4K",time:1712482323429}],ur=[{name:"Beth",src:"./nft/1.jpg",price:1,tags:["Premium","VIP"],transactions:we},{name:"Pryor",src:"./nft/2.jpg",price:2,tags:["Premium","VIP"],transactions:we},{name:"Olea",src:"./nft/3.jpg",price:3,tags:["Premium","VIP"],transactions:we},{name:"Imogen",src:"./nft/4.jpg",price:4,tags:["Premium","VIP"],transactions:we}],Dn=(()=>{let t=class t{constructor(){this.nfts=ur}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function mr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}function dr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$index,r=p();return b(r.updateItem(i))}),g(1,"tui-avatar",5),s(2,"div",6)(3,"p",7),u(4),c(),s(5,"p",8),u(6),h(7,"tuiAmount"),h(8,"async"),c()()()}if(e&2){let o=t.$implicit;a(),l("src",o.src),a(),C("margin-top",0),a(2),St(o.name),a(2),v(" ",y(8,8,G(7,5,o.price,"USD"))," ")}}var En=(()=>{let t=class t{constructor(){this.nfts=d(Dn).nfts,this.nftChange=new A}updateItem(n){this.nftChange.emit(this.nfts[n])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft-list"]],outputs:{nftChange:"nftChange"},standalone:!0,features:[S],decls:14,vars:0,consts:[[1,"info"],[1,"row-title","tui-space_top-0","tui-space_bottom-0"],[1,"list"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft"],["tuiCardLarge","","tuiSurface","elevated",1,"card-nft",3,"click"],[1,"logo-nft",3,"src"],[1,"text"],[1,"nft-name","tui-space_top-1","tui-space_bottom-0"],["tuiSubtitle","",1,"tui-space_top-0","tui-space_bottom-0"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"h3",1),u(2,"Top NFTs"),c(),s(3,"tui-scrollbar")(4,"div",2),B(5,mr,9,10,"button",3,j),c()()(),s(7,"div",0)(8,"h3",1),u(9,"Recent bought NFTs"),c(),s(10,"tui-scrollbar")(11,"div",2),B(12,dr,9,10,"button",3,j),c()()()),i&2&&(a(5),N(r.nfts),a(7),N(r.nfts))},dependencies:[M,O,vt,U,H,At,ln],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:1rem;gap:.5rem;max-width:100%}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.logo-nft[_ngcontent-%COMP%]{width:100%;border-radius:0;height:60%}.card-nft[tuiCardLarge][data-space][_ngcontent-%COMP%]{padding:0;height:9rem;width:7.5rem;gap:0}.text[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto}.nft-name[_ngcontent-%COMP%]{font-weight:600}.row-title[_ngcontent-%COMP%]{font-size:1.25rem}"],changeDetection:0});let e=t;return e})();function hr(e,t){if(e&1){let o=T();s(0,"lmb-nft-item",4),z("nftChange",function(i){x(o);let r=p();return L(r.nft,i)||(r.nft=i),b(i)}),c()}if(e&2){let o=p();V("nft",o.nft)}}function fr(e,t){if(e&1){let o=T();s(0,"lmb-nft-list",5),w("nftChange",function(i){x(o);let r=p();return b(r.nft=i)}),c()}}var Fn=(()=>{let t=class t{constructor(){this.nft=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-nft"]],standalone:!0,features:[S],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[3,"nft"],[3,"nftChange","nft"],[3,"nftChange"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"header",1)(2,"h2",2),u(3," NFT Market "),c()(),f(4,hr,1,1,"lmb-nft-item",3)(5,fr,1,0,"lmb-nft-list"),c()),i&2&&(a(2),C("text-align","center"),a(2),D(r.nft?4:5))},dependencies:[M,In,En,X,H,q,R],styles:["@media (min-width: 68rem){.card[_ngcontent-%COMP%]{min-width:37rem}}"],changeDetection:0});let e=t;return e})();var gr=new Tt("",{factory:()=>"https://api.coincap.io/v2/assets"}),J=(()=>{let t=class t{constructor(){this.http=d(pi),this.API=d(gr),this.tokens=this.getTokens()}getTokens(){return this.http.get(this.API).pipe(tt(n=>n.data)).pipe(Xe({bufferSize:1,refCount:!0}))}getHistory(n,i){return this.http.get(`${this.API}/${n}/history`,{params:{interval:i}}).pipe(tt(r=>r.data))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Pe=(()=>{let t=class t{transform(n){return`https://assets.coincap.io/assets/icons/${n}@2x.png`}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=Ct({name:"coinIcon",type:t,pure:!0,standalone:!0});let e=t;return e})();function _r(e,t){if(e&1&&(s(0,"th",13),u(1),c()),e&2){let o=p().$implicit;p();let n=E(9);C("top",-(n.getOffsetToRenderedContentStart()||0),"px"),l("sticky",!0),a(),v(" ",o," ")}}function Cr(e,t){if(e&1&&f(0,_r,2,4,"th",12),e&2){let o=t.$implicit;l("tuiHead",o)}}function yr(e,t){if(e&1&&(s(0,"td",16)(1,"div",17)(2,"tui-avatar-stack",18),g(3,"tui-avatar",19),h(4,"coinIcon"),g(5,"tui-avatar",19),h(6,"coinIcon"),c(),s(7,"div",20),u(8),c()()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(2),l("direction","right"),a(),l("src",y(4,8,o.symbolFirst)),a(2),l("src",y(6,10,o.symbolSecond)),a(2),C("font-weight","500"),a(),v(" ",o.Pair," ")}}function xr(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" $",o.TVL,"M ")}}function br(e,t){if(e&1&&(s(0,"td",16)(1,"div",20),u(2),c()()),e&2){let o=p().$implicit;C("padding-left","0.5rem"),a(),C("font-weight","500"),a(),v(" ",o.APR,"% ")}}function vr(e,t){e&1&&(s(0,"tr",14),f(1,yr,9,12,"td",15)(2,xr,3,5,"td",15)(3,br,3,5,"td",15),c()),e&2&&(a(),l("tuiCell","Pair"),a(),l("tuiCell","TVL"),a(),l("tuiCell","APR"))}var An=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.tableData=Y(()=>{let n=this.tokens()||[];return n.map((i,r)=>{var m,_,P,ft;return{Pair:`${(m=n==null?void 0:n[r])==null?void 0:m.symbol.toUpperCase()}/${(_=n==null?void 0:n[r+1])==null?void 0:_.symbol.toUpperCase()}`,TVL:this.getTVL(r),APR:this.getAPR(r),symbolFirst:(P=n==null?void 0:n[r])==null?void 0:P.symbol.toLowerCase(),symbolSecond:(ft=n==null?void 0:n[r+1])==null?void 0:ft.symbol.toLowerCase()}}).filter((i,r)=>r%2===0).filter(i=>i.Pair.includes(this.search().toUpperCase()))}),this.columns=["Pair","TVL","APR"],this.search=$("")}lengthPools(n){return[...new Array(n).keys()].filter((i,r)=>r%2===0)}getTVL(n){var r,m,_,P;let i=Number((m=(r=this.tokens())==null?void 0:r[n])==null?void 0:m.priceUsd)+Number((P=(_=this.tokens())==null?void 0:_[n+1])==null?void 0:P.priceUsd)+1;return i>100?(i/(i/100+1)).toFixed(1):i.toFixed(1)}getAPR(n){return(10-Number(this.getTVL(n))/11).toFixed(1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-pools"]],standalone:!0,features:[S],decls:18,vars:12,consts:[["viewport",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["tuiTextfieldIconLeft","@tui.search",3,"ngModelChange","tuiSkeleton","ngModel"],[1,"list-pools",3,"tuiSkeleton"],["itemSize","64","tuiScrollable","",1,"viewport","tui-zero-scrollbar"],["tuiTable","",3,"columns"],["tuiThGroup",""],["tuiTh","",3,"sticky","top"],["tuiTbody",""],["tuiTr","",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiTh","",3,"sticky","top",4,"tuiHead"],["tuiTh","",3,"sticky"],["tuiTr",""],["tuiTd","",3,"padding-left",4,"tuiCell"],["tuiTd",""],[1,"stack"],[1,"tui-space_top-3","tui-space_bottom-3",3,"direction"],["size","m",3,"src"],["TuiTitle",""]],template:function(i,r){if(i&1){let m=T();s(0,"div",1)(1,"header",2)(2,"h2",3),u(3," Pools "),c()(),s(4,"tui-input",4),z("ngModelChange",function(P){return x(m),L(r.search,P)||(r.search=P),b(P)}),u(5," Search "),c(),s(6,"div",5)(7,"tui-scrollbar")(8,"cdk-virtual-scroll-viewport",6,0)(10,"table",7)(11,"thead")(12,"tr",8),B(13,Cr,1,1,"th",9,j),c()(),s(15,"tbody",10),f(16,vr,4,3,"tr",11),h(17,"tuiTableSort"),c()()()()()()}i&2&&(C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!r.tokens()),a(2),l("tuiSkeleton",!r.tokens()),V("ngModel",r.search),a(2),l("tuiSkeleton",!r.tokens()),a(4),l("columns",r.columns),a(3),N(r.columns),a(3),l("cdkVirtualForOf",y(17,10,r.tableData())))},dependencies:[xe,ve,be,Pe,M,xt,yt,Ft,X,U,un,H,q,ye,_e,Ce,qi,At,Z,ot,Yt,Se,Vt,Qt,Gt,Wt,Lt,ke,R],styles:[".list-pools[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem;overflow:hidden}.viewport[_ngcontent-%COMP%]{height:20rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:1px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:0;border-left:0;border-right:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0;text-align:center}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:3.5rem}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:2rem;border-right:0}.stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem}"],changeDetection:0});let e=t;return e})();var Bn={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Tr=(e,t)=>[e,t];function kr(e,t){if(e&1&&g(0,"tui-line-chart",1),e&2){let o=p();l("height",o.maxPrice()*(o.maxPrice()>10?1:100)-o.minPrice()*(o.maxPrice()>10?1:100))("value",o.chart())("width",o.chart().length)("x",0)("xStringify",o.xStringify)("y",o.minPrice()*(o.maxPrice()>10?1:100))("yStringify",o.yStringify)}}function Sr(e,t){if(e&1){let o=T();s(0,"button",4),w("click",function(){let i=x(o).$implicit,r=p();return b(r.filterButton.set(i))}),u(1),c()}if(e&2){let o=t.$implicit,n=p();l("tuiAppearanceState",o===n.filterButton()?"active":null),a(),v(" ",o," ")}}var Nn=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.step=Y(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=Y(()=>new Map((this.history()??[]).map((n,i)=>[Math.trunc(i/this.step()),new Date(n.date).toDateString()]))),this.chart=Y(()=>this.processData(this.history())),this.minPrice=Y(()=>Math.min(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.maxPrice=Y(()=>Math.max(...(this.history()??[]).map(n=>Number(n.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=$(this.filterButtons[0]),this.maxPoints=150,this.token=Zt.required(),this.interval=Y(()=>Bn[this.filterButton()]),this.history=ct(Ye([De(this.token),De(this.interval)]).pipe(Ot(([n,i])=>this.pricesService.getHistory(n,i)))),this.yStringify=n=>`${(this.maxPrice()>10?n:n/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=n=>`${this.xTargets().get(n)}`}processData(n){return(n??[]).map((r,m)=>[Math.trunc(m/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,m)=>m%this.step()===0)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[S],decls:9,vars:16,consts:[[1,"axes",3,"axisYLabels","horizontalLines","tuiSkeleton","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(i,r){i&1&&(s(0,"tui-axes",0),h(1,"tuiAmount"),h(2,"async"),h(3,"tuiAmount"),h(4,"async"),f(5,kr,1,7,"tui-line-chart",1),c(),s(6,"div",2),B(7,Sr,2,2,"button",3,j),c()),i&2&&(l("axisYLabels",si(13,Tr,y(2,7,y(1,5,r.minPrice()))||"",y(4,11,y(3,9,r.maxPrice()))||""))("horizontalLines",4)("tuiSkeleton",!r.history())("verticalLines",4),a(5),D(r.history()?5:-1),a(2),N(r.filterButtons))},dependencies:[O,M,vt,yn,F,xn,Z],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let e=t;return e})();function wr(e,t){if(e&1){let o=T();s(0,"div",4),w("click",function(){x(o);let i=p().$implicit,r=p(2);return b(r.chooseToken(i.id))}),g(1,"tui-avatar",5),s(2,"div",6),u(3),s(4,"div",7),u(5),h(6,"number"),s(7,"span"),u(8),h(9,"number"),c()()()()}if(e&2){let o=p().$implicit;a(),l("src","https://assets.coincap.io/assets/icons/"+o.symbol.toLowerCase()+"@2x.png"),a(2),v(" ",o.name," "),a(2),v(" ",G(6,6,o.priceUsd,"1.2-2"),"$ "),a(2),C("color",o.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),a(),v(" ",G(9,9,o.changePercent24Hr,"1.2-2"),"% ")}}function Pr(e,t){if(e&1&&f(0,wr,10,12,"div",3),e&2){let o=t.$implicit,n=p(2);D(n.token===""||o.id===n.token?0:-1)}}function Mr(e,t){if(e&1){let o=T();s(0,"button",8),w("click",function(){x(o);let i=p(2);return b(i.addToken())}),u(1," Add Token "),c()}}function Or(e,t){if(e&1&&(s(0,"div",1),B(1,Pr,1,1,null,null,j),c(),f(3,Mr,2,0,"button",2)),e&2){let o=p(),n=it(0);a(),N(n.slice(0,o.showTokens)),a(2),D(o.token===""&&o.showTokens{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.tokens,this.showTokens=4,this.token="",this.tokenChange=new A}addToken(){this.showTokens+=1}chooseToken(n){let i=this.token===n?"":n;this.token=i,this.tokenChange.emit(i)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[S],decls:4,vars:5,consts:[["tuiCardLarge","",1,"price-list",3,"tuiSkeleton"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(i,r){if(i&1&&(Q(0),h(1,"async"),s(2,"div",0),f(3,Or,4,1),c()),i&2){let m=at(y(1,2,r.tokens$));a(2),l("tuiSkeleton",!m),a(),D(m?3:-1)}},dependencies:[O,M,ie,U,F,H,Bt,Z,R],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0;min-height:14.125rem}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:15.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let e=t;return e})();function Ir(e,t){if(e&1&&g(0,"lmb-price-chart",3),e&2){let o=p();l("token",o.token)}}var Ln=(()=>{let t=class t{constructor(){this.pricesService=d(J),this.tokens$=this.pricesService.getTokens(),this.token=""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-prices"]],standalone:!0,features:[S],decls:8,vars:11,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],[3,"token"],[3,"tokenChange","token"]],template:function(i,r){if(i&1){let m=T();Q(0),h(1,"async"),s(2,"div",0)(3,"header",1)(4,"h2",2),u(5," Cryptocurrency Prices "),c()(),f(6,Ir,1,1,"lmb-price-chart",3),s(7,"lmb-price-list",4),z("tokenChange",function(P){return x(m),L(r.token,P)||(r.token=P),b(P)}),c()()}if(i&2){let m=y(1,9,r.tokens$);a(2),C("height","100%")("min-height","420px"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),D(r.token!==""?6:-1),a(),V("token",r.token)}},dependencies:[M,O,Nn,Vn,X,H,q,Z,R],encapsulation:2,changeDetection:0});let e=t;return e})();function Dr(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputStake,i)||(r.inputStake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.available-o.amount())("min",0),V("ngModel",o.inputStake)}}function Er(e,t){if(e&1){let o=T();s(0,"tui-input-number",19),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.inputUnstake,i)||(r.inputUnstake=i),b(i)}),u(1," Amount BTC "),c()}if(e&2){let o=p(2);l("max",o.amount())("min",0),V("ngModel",o.inputUnstake)}}function Fr(e,t){if(e&1){let o=T();s(0,"header",15)(1,"h2",16),u(2),c()(),s(3,"p"),u(4),c(),f(5,Dr,2,3,"tui-input-number",17)(6,Er,2,3,"tui-input-number",17),s(7,"p")(8,"button",18),w("click",function(){let i=x(o).$implicit,r=p();return b([i.complete(),r.addAmount(r.stake?r.inputStake:-r.inputUnstake),r.inputStake=0])}),u(9),c()()}if(e&2){let o=p();a(2),v("",o.stake?"Staking":"Unstaking"," Bitcoin"),a(2),It("Available for ",o.stake?"stake":"unstake",": ",o.stake?o.available-o.amount():o.amount()," BTC"),a(),D(o.stake?5:6),a(4),v(" ",o.stake?"Stake":"Unstake"," ")}}var zn=(()=>{let t=class t{constructor(){this.dialogs=d(rn),this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.price=Y(()=>{var n;return this.amount()*(Number((n=(this.tokens()??[]).find(i=>i.symbol==="BTC"))==null?void 0:n.priceUsd)??0)}),this.inputStake=0,this.inputUnstake=0,this.amount=$(0),this.available=100,this.stake=!1}addAmount(n){this.amount.update(i=>i+n)}showDialog(n){this.dialogs.open(n).subscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-staking"]],standalone:!0,features:[S],decls:51,vars:19,consts:[["template",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","",1,"info"],["size","l",3,"src","tuiSkeleton"],["tuiTitle","",3,"tuiSkeleton"],["tuiSubtitle","",3,"tuiSkeleton"],[1,"group-buttons"],["appearance","accent","tuiButton","",3,"click","tuiSkeleton"],["appearance","whiteblock","tuiButton","",3,"click","tuiSkeleton"],[1,"position",3,"tuiSkeleton"],[1,"position-title"],[1,"block-position"],[1,"tui-space_top-0","tui-space_bottom-0","bold"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"bold"],["tuiHeader",""],["tuiTitle",""],["tuiAutoFocus","",3,"max","min","ngModel"],["tuiButton","","type","submit",3,"click"],["tuiAutoFocus","",3,"ngModelChange","max","min","ngModel"]],template:function(i,r){if(i&1){let m=T();Q(0),s(1,"div",1)(2,"header",2),g(3,"tui-avatar",3),h(4,"coinIcon"),s(5,"h2",4),u(6," Staking Bitcoin "),c(),s(7,"div",5),u(8," Earn a share of the protocol`s fees "),g(9,"br"),u(10," while staking BITCOIN "),c()(),s(11,"div",6)(12,"button",7),w("click",function(){x(m);let P=E(50);return b([r.stake=!0,r.showDialog(P)])}),u(13," Stake "),c(),s(14,"button",8),w("click",function(){x(m);let P=E(50);return b([r.stake=!1,r.showDialog(P)])}),u(15," Unstake "),c()(),s(16,"div",9)(17,"div",10),u(18,"My position"),c(),g(19,"hr"),s(20,"div",11)(21,"div",12),u(22),c(),s(23,"div"),u(24),h(25,"number"),c()(),g(26,"hr"),s(27,"div",11)(28,"div"),u(29,"Rewards"),c(),s(30,"div",12),u(31,"0 BTC"),c(),s(32,"div"),u(33,"$0"),c()()(),s(34,"div",9)(35,"div",10),u(36,"Overview"),c(),g(37,"hr"),s(38,"div",11)(39,"div",13),u(40,"Total stacked"),c(),s(41,"div",14),u(42,"1.5M BTC"),c()(),g(43,"hr"),s(44,"div",11)(45,"div",13),u(46,"APR"),c(),s(47,"div",14),u(48,"5%"),c()()()(),f(49,Fr,10,5,"ng-template",null,0,st)}if(i&2){let m=r.tokens();a(3),l("src",y(4,14,"btc"))("tuiSkeleton",!m),a(2),C("text-align","center"),l("tuiSkeleton",m?"":"Staking Bitcoin"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(5),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(2),l("tuiSkeleton",!m),a(6),v("",r.amount()," BTC"),a(2),v("$",G(25,16,r.price(),"1.2-2"),""),a(10),l("tuiSkeleton",!m)}},dependencies:[Pe,M,ie,xt,yt,Ft,X,me,U,F,H,q,ge,he,fe,Z,R],styles:[".card[_ngcontent-%COMP%]{height:100%;min-height:41.625rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.group-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem}.group-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.position[_ngcontent-%COMP%]{border:solid 1px var(--tui-border-normal);border-radius:1rem}.position-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;font-weight:600}.bold[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem}.block-position[_ngcontent-%COMP%]{display:flex;padding:.5rem 1rem;flex-direction:column}"],changeDetection:0});let e=t;return e})();var Ar=(e,t)=>t.symbol;function Br(e,t){e&1&&g(0,"tui-icon",16),e&2&&C("font-size",1,"em")("margin-left",.5,"rem")}function Nr(e,t){if(e&1){let o=T();s(0,"button",14),w("click",function(){let i=x(o).$implicit,r=p().$implicit;p();let m=it(9),_=p();return b([m?_.newTokenTo(i.symbol):_.newTokenFrom(i.symbol),r()])}),u(1),f(2,Br,1,4,"tui-icon",15),c()}if(e&2){let o=t.$implicit;p(2);let n=it(0);l("value",o.symbol),a(),v(" ",o.symbol.toUpperCase()," "),a(),l("ngIf",o.symbol.toLowerCase()===n.toLowerCase())}}function Vr(e,t){if(e&1&&(s(0,"tui-data-list",12),B(1,Nr,3,3,"button",13,Ar),c()),e&2){p(2);let o=it(0);a(),N(o)}}function Lr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.to,i)||(r.to=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapTo())}),c()}if(e&2){let o=p(2);V("ngModel",o.to)}}function zr(e,t){if(e&1){let o=T();s(0,"input",17),z("ngModelChange",function(i){x(o);let r=p(2);return L(r.from,i)||(r.from=i),b(i)}),w("input",function(){x(o);let i=p(2);return b(i.newSwapFrom())}),c()}if(e&2){let o=p(2);V("ngModel",o.from)}}function Rr(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceTo()*o.to(),"USD"))," ")}}function Ur(e,t){if(e&1&&(u(0),h(1,"tuiAmount"),h(2,"async")),e&2){let o=p(2);v(" \u2248",y(2,4,G(1,1,o.priceFrom()*o.from(),"USD"))," ")}}function Hr(e,t){if(e&1&&(Q(0),s(1,"div")(2,"div",5)(3,"div",6),u(4),c(),s(5,"div",6),u(6),c()(),s(7,"button",7),g(8,"tui-avatar",8),Q(9),f(10,Vr,3,0,"ng-template",null,0,st),c()(),s(12,"div")(13,"tui-input-inline",9),f(14,Lr,1,1,"input",10)(15,zr,1,1,"input",10),c(),s(16,"div")(17,"div",11),f(18,Rr,3,6)(19,Ur,3,6),c(),g(20,"hr"),c()()),e&2){let o=t.$implicit,n=t.$index,i=E(11),r=p(),m=it(0),_=at(n?r.tokenTo().toUpperCase():r.tokenFrom().toUpperCase());a(3),l("tuiSkeleton",!m),a(),v(" ",o," "),a(),l("tuiSkeleton",!m),a(),v(" Balance: 1000 ",_.toUpperCase()," "),a(),l("tuiDropdown",i)("tuiSkeleton",!m),a(),l("src","https://assets.coincap.io/assets/icons/"+_.toLowerCase()+"@2x.png"),a(),at(n),a(4),l("tuiSkeleton",!m),a(),D(n?14:15),a(3),l("tuiSkeleton",!m),a(),D(n?18:19)}}var Rn=(()=>{let t=class t{constructor(){this.cryptoService=d(J),this.tokens=ct(this.cryptoService.tokens),this.priceFrom=Y(()=>this.getPrice(this.tokenFrom())),this.priceTo=Y(()=>this.getPrice(this.tokenTo())),this.titles=["From","To"],this.from=$(0),this.to=$(0),this.tokenFrom=$("eth"),this.tokenTo=$("btc")}newTokenFrom(n){this.tokenFrom.set(n),this.newSwapFrom()}newTokenTo(n){this.tokenTo.set(n),this.newSwapTo()}getPrice(n){var i;return Number((i=(this.tokens()??[]).find(r=>r.symbol.toLowerCase()===n.toLowerCase()))==null?void 0:i.priceUsd)||0}newSwapFrom(){this.to.set(Number((this.priceFrom()*Number(this.from())/this.priceTo()).toFixed(2)))}newSwapTo(){this.from.set(Number((this.priceTo()*Number(this.to())/this.priceFrom()).toFixed(2)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-swap"]],standalone:!0,features:[S],decls:9,vars:7,consts:[["dropdownContent",""],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle","",3,"tuiSkeleton"],["appearance","primary","tuiButton","",3,"tuiSkeleton"],["tuiCell","l"],["TuiTitle","",3,"tuiSkeleton"],["tuiButton","","tuiChevron","","tuiDropdownOpen","","type","button",1,"choose-crypto",3,"tuiDropdown","tuiSkeleton"],["size","xs",3,"src"],["tuiTitle","l",3,"tuiSkeleton"],["max","1000","min","0","type","number",3,"ngModel"],["tuiSubtitle","",1,"equal-number",3,"tuiSkeleton"],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],["max","1000","min","0","type","number",3,"ngModelChange","input","ngModel"]],template:function(i,r){if(i&1&&(Q(0),s(1,"div",1)(2,"header",2)(3,"h2",3),u(4," Swap "),c()(),B(5,Hr,21,13,null,null,j),s(7,"button",4),u(8," Swap "),c()()),i&2){let m=at(r.tokens());a(),C("height","100%"),a(2),C("text-align","center"),l("tuiSkeleton",!m),a(2),N(r.titles),a(2),l("tuiSkeleton",!m)}},dependencies:[M,K,O,xt,hi,yi,yt,Ti,vi,Ft,vt,X,U,F,H,Bt,de,on,nn,tn,en,q,Mt,Sn,Z,R],styles:[".choose-crypto[_ngcontent-%COMP%]{height:2rem}.equal-number[_ngcontent-%COMP%]{text-align:right}tui-input-inline[_ngcontent-%COMP%]{height:2.5rem}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"],changeDetection:0});let e=t;return e})();var Wp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=k({type:t,selectors:[["lmb-crypto"]],standalone:!0,features:[S],decls:11,vars:0,consts:[[1,"layout"],[1,"left"],[1,""],[1,"staking"],[1,"right"],[1,"right-top"],[1,"minter"],[1,"right-bottom"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1),g(2,"lmb-prices",2)(3,"lmb-staking",3),c(),s(4,"div",4)(5,"div",5),g(6,"lmb-minter",6)(7,"lmb-swap",2),c(),s(8,"div",7),g(9,"lmb-nft",2)(10,"lmb-pools",2),c()()())},dependencies:[M,On,Fn,An,Ln,zn,Rn],styles:[".layout[_ngcontent-%COMP%]{display:flex;width:100%;gap:1rem;margin-top:1rem}@media (max-width: 68rem){.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.minter[_ngcontent-%COMP%]{height:100%}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1;width:21.875rem;flex-shrink:0}@media (max-width: 68rem){.left[_ngcontent-%COMP%]{width:100%}}.right[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;flex-grow:1}.right-top[_ngcontent-%COMP%]{display:grid;gap:1rem;height:100%;grid-template-columns:2fr 4fr;flex-grow:1}@media (max-width: 68rem){.right-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.right-bottom[_ngcontent-%COMP%]{display:grid;gap:1rem;grid-template-columns:4fr 3fr}@media (max-width: 80rem){.right-bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}"],changeDetection:0});let e=t;return e})();export{Wp as CryptoComponent}; diff --git a/index.html b/index.html index 7e67cac25..ee78b1db2 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-TURUH323.js b/main-X6QI3R46.js similarity index 99% rename from main-TURUH323.js rename to main-X6QI3R46.js index 2d75af740..96fd09c2e 100644 --- a/main-TURUH323.js +++ b/main-X6QI3R46.js @@ -1,2 +1,2 @@ import"./chunk-5UEO62IY.js";import{a as Yt,b as Zt,c as Kt,d as qt,e as Jt}from"./chunk-2P3TQE5K.js";import"./chunk-F4ASBHN4.js";import{b as kt,d as Ht,g as Ut}from"./chunk-EC2Z2FSN.js";import"./chunk-OWNTDUAT.js";import"./chunk-LVTLAJDA.js";import"./chunk-7PYB5Y7S.js";import{a as Gt}from"./chunk-EQXJDDA3.js";import"./chunk-PJ44LYAR.js";import"./chunk-7HTKP5Y3.js";import"./chunk-67V4JFHO.js";import{A as Nt,B,C as Et,D as Ot,F as Mt,H as W,J as Rt,Q as L,W as Pt,_ as Ft,aa as jt,ea as Bt,ja as Lt,k as xt,la as Vt,va as Wt,x as At,y as D,z as j}from"./chunk-6ZJXXXJJ.js";import{c as vt,e as gt,g as Tt,h as F}from"./chunk-ZGDTDW54.js";import"./chunk-5T5GHRQ3.js";import{$e as Dt,A as C,Ab as et,Bb as a,Ca as h,Cb as s,Cf as wt,Db as m,Df as zt,Ea as Y,Ec as k,Hb as E,Hd as yt,If as $t,Ka as x,Kb as b,Kd as Ct,La as A,Lb as T,Mb as it,Nb as f,Nc as R,Pc as P,Q as $,Sb as ot,Ta as Z,Tb as d,Tc as ut,Ub as nt,Vb as z,Xa as U,Xb as rt,Xc as dt,Yb as at,Zb as st,Zc as ft,_c as ht,bc as pt,cb as c,cc as y,cf as _t,df as It,e as l,gb as K,ib as q,jc as O,kc as M,nb as J,pc as mt,pe as bt,qa as S,rb as v,sb as N,tb as u,ub as g,va as w,vb as Q,w as G,wa as n,wc as ct,xf as St,yb as X,yc as lt,zb as tt}from"./chunk-KLOL2DGG.js";var Qt=(()=>{let e=class e{constructor(){this.tuiPlatform=n(W,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Y({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,r){i&2&&N("data-platform",r.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[pt([{provide:W,useFactory:()=>n(e).tuiPlatform}])]});let t=e;return t})();var se=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],pe=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function me(t,e){t&1&&m(0,"tui-scroll-controls",2)}var Xt=(()=>{let e=class e{constructor(){var o;this.reducedMotion=n(_t),this.duration=xt(n(It)),this.isMobileRes=yt(n(L).pipe(C(i=>i==="mobile"),Dt(n(lt)))),this.scrollbars$=n(Mt)?G(!1):n(Ht).pipe(C(({length:i})=>!i),$(0)),(o=n(k).defaultView)==null||o.document.documentElement.setAttribute("data-tui-theme",n(St).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.4.1"],hostVars:6,hostBindings:function(i,r){i&1&&b("touchstart.passive.silent",function(){return 0}),i&2&&(g("--tui-duration",r.duration,"ms")("--tui-scroll-behavior",r.reducedMotion?"auto":"smooth"),Q("_mobile",r.isMobileRes()))},standalone:!0,features:[J([Qt]),y],ngContentSelectors:pe,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,r){i&1&&(it(se),v(0,me,1,0,"tui-scroll-controls",0),O(1,"async"),a(2,"tui-dropdowns")(3,"div",1),f(4),s(),f(5,1),m(6,"tui-dialogs"),f(7,2),m(8,"tui-alerts"),f(9,3),s(),f(10,4),m(11,"tui-hints"),f(12,5)),i&2&&u("ngIf",M(1,1,r.scrollbars$))},dependencies:[R,P,Bt,Ut,kt,Wt,Rt],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;border-image:conic-gradient(var(--tui-background-base) 0 0) fill 0/0/0 0 100vh 0;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} -`],encapsulation:2});let t=e;return t})();var ce=Ct("data-tui-theme"),V=(()=>{let e=class e{constructor(){this.storage=n(bt),this.key=n(ce),this.themes=["light","dark"]}get theme(){let o=this.storage.getItem(this.key);return o===null?(this.storage.setItem(this.key,"light"),"light"):o}set theme(o){this.storage.setItem(this.key,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function le(t,e){t&1&&m(0,"tui-icon",13),t&2&&g("font-size",1,"em")("margin-left",.5,"rem")}function ue(t,e){if(t&1){let p=E();a(0,"button",11),b("click",function(){let i=x(p).$implicit,r=T(2);return A(r.chooseTheme(i))}),d(1),v(2,le,1,4,"tui-icon",12),s()}if(t&2){let p=e.$implicit,o=T(2);u("value",p),c(),z(" ",p," "),c(),u("ngIf",o.themeService.theme===p)}}function de(t,e){if(t&1&&(a(0,"tui-data-list",9),tt(1,ue,3,3,"button",10,X),s()),t&2){let p=T();c(),et(p.themeService.themes)}}function fe(t,e){if(t&1){let p=E();a(0,"aside",14)(1,"header")(2,"a",15)(3,"span",5),d(4,"Taiga lumbermill"),s()()(),a(5,"a",16),d(6," Theme Generator "),s(),a(7,"footer")(8,"button",17),b("click",function(){x(p);let i=T();return A(i.expanded=!i.expanded)}),d(9),s()()()}if(t&2){let p=T();u("tuiNavigationAside",p.expanded),c(8),u("iconStart",p.expanded?"@tui.chevron-left":"@tui.chevron-right"),c(),z(" ",p.expanded?"Collapse":"Expand"," ")}}var te=(()=>{let e=class e{constructor(){this.themeService=n(V),this.mobile$=n(L).pipe(C(o=>o==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(o){this.themeService.theme=o,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[y],decls:18,vars:10,consts:[["products",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","routerLink","/","tuiAsideItem",""],["iconStart","@tui.palette","routerLink","/theme","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"]],template:function(i,r){if(i&1){let I=E();a(0,"header",1)(1,"button",2),d(2," Menu "),s(),a(3,"span",3),m(4,"tui-icon",4),a(5,"span",5),d(6,"Taiga lumbermill"),s()(),a(7,"button",6),st("tuiDropdownOpenChange",function(H){return x(I),at(r.openTheme,H)||(r.openTheme=H),A(H)}),a(8,"span",5),d(9),s(),v(10,de,3,0,"ng-template",null,0,mt),s(),m(12,"hr"),s(),a(13,"div"),v(14,fe,10,3,"aside",7),O(15,"async"),a(16,"main",8),m(17,"router-outlet"),s()()}if(i&2){let I=ot(11);c(7),u("tuiDropdown",I),rt("tuiDropdownOpen",r.openTheme),c(2),nt(r.themeService.theme),c(4),g("display","flex"),c(),u("ngIf",!M(15,8,r.mobile$)),c(3),g("display","none")}},dependencies:[ut,R,P,gt,F,vt,wt,Gt,Vt,Lt,Ft,jt,$t,zt,Kt,qt,Jt,Yt,Zt],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var ee=(()=>{let e=class e{constructor(){this.themeService=n(V),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[y],decls:2,vars:1,template:function(i,r){i&1&&(a(0,"tui-root"),m(1,"app-navigation"),s()),i&2&&N("tuiTheme",r.themeService.theme)},dependencies:[te,F,Xt],encapsulation:2,changeDetection:0});let t=e;return t})();var he=(()=>{let e=class e extends B{constructor(o,i,r){super(o,i,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(w(k),w(D),w(j))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function ve(){return new Nt}function ge(t,e,p){return new Ot(t,e,p)}var ie=[{provide:j,useFactory:ve},{provide:B,useClass:he},{provide:K,useFactory:ge,deps:[ft,B,Z]}],Te=[{provide:D,useFactory:()=>new Et},{provide:U,useValue:"BrowserAnimations"},...ie],Li=[{provide:D,useClass:At},{provide:U,useValue:"NoopAnimations"},...ie];function oe(){return q("NgEagerAnimations"),[...Te]}var ne=[{path:"dashboards",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-WKK3KQ7W.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-DNVIP5LP.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ZF5KAPOA.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-LBSVRTIZ.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"theme",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-H5XSYU7C.js").then(t=>t.ThemeGeneratorComponent)})},{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-OHKV4EYM.js").then(t=>t.CommonPageComponent)})},{path:"login",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-SDXDPUEF.js").then(t=>t.LoginComponent)})},{path:"sign-up",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ITCCUAMP.js").then(t=>t.SignUpComponent)})},{path:"**",redirectTo:"dashboards"}];var re={providers:[oe(),ct({eventCoalescing:!0}),Tt(ne),dt(),Pt]};ht(ee,re).catch(t=>console.error(t)); +`],encapsulation:2});let t=e;return t})();var ce=Ct("data-tui-theme"),V=(()=>{let e=class e{constructor(){this.storage=n(bt),this.key=n(ce),this.themes=["light","dark"]}get theme(){let o=this.storage.getItem(this.key);return o===null?(this.storage.setItem(this.key,"light"),"light"):o}set theme(o){this.storage.setItem(this.key,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function le(t,e){t&1&&m(0,"tui-icon",13),t&2&&g("font-size",1,"em")("margin-left",.5,"rem")}function ue(t,e){if(t&1){let p=E();a(0,"button",11),b("click",function(){let i=x(p).$implicit,r=T(2);return A(r.chooseTheme(i))}),d(1),v(2,le,1,4,"tui-icon",12),s()}if(t&2){let p=e.$implicit,o=T(2);u("value",p),c(),z(" ",p," "),c(),u("ngIf",o.themeService.theme===p)}}function de(t,e){if(t&1&&(a(0,"tui-data-list",9),tt(1,ue,3,3,"button",10,X),s()),t&2){let p=T();c(),et(p.themeService.themes)}}function fe(t,e){if(t&1){let p=E();a(0,"aside",14)(1,"header")(2,"a",15)(3,"span",5),d(4,"Taiga lumbermill"),s()()(),a(5,"a",16),d(6," Theme Generator "),s(),a(7,"footer")(8,"button",17),b("click",function(){x(p);let i=T();return A(i.expanded=!i.expanded)}),d(9),s()()()}if(t&2){let p=T();u("tuiNavigationAside",p.expanded),c(8),u("iconStart",p.expanded?"@tui.chevron-left":"@tui.chevron-right"),c(),z(" ",p.expanded?"Collapse":"Expand"," ")}}var te=(()=>{let e=class e{constructor(){this.themeService=n(V),this.mobile$=n(L).pipe(C(o=>o==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(o){this.themeService.theme=o,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[y],decls:18,vars:10,consts:[["products",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","routerLink","/","tuiAsideItem",""],["iconStart","@tui.palette","routerLink","/theme","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"]],template:function(i,r){if(i&1){let I=E();a(0,"header",1)(1,"button",2),d(2," Menu "),s(),a(3,"span",3),m(4,"tui-icon",4),a(5,"span",5),d(6,"Taiga lumbermill"),s()(),a(7,"button",6),st("tuiDropdownOpenChange",function(H){return x(I),at(r.openTheme,H)||(r.openTheme=H),A(H)}),a(8,"span",5),d(9),s(),v(10,de,3,0,"ng-template",null,0,mt),s(),m(12,"hr"),s(),a(13,"div"),v(14,fe,10,3,"aside",7),O(15,"async"),a(16,"main",8),m(17,"router-outlet"),s()()}if(i&2){let I=ot(11);c(7),u("tuiDropdown",I),rt("tuiDropdownOpen",r.openTheme),c(2),nt(r.themeService.theme),c(4),g("display","flex"),c(),u("ngIf",!M(15,8,r.mobile$)),c(3),g("display","none")}},dependencies:[ut,R,P,gt,F,vt,wt,Gt,Vt,Lt,Ft,jt,$t,zt,Kt,qt,Jt,Yt,Zt],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var ee=(()=>{let e=class e{constructor(){this.themeService=n(V),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[y],decls:2,vars:1,template:function(i,r){i&1&&(a(0,"tui-root"),m(1,"app-navigation"),s()),i&2&&N("tuiTheme",r.themeService.theme)},dependencies:[te,F,Xt],encapsulation:2,changeDetection:0});let t=e;return t})();var he=(()=>{let e=class e extends B{constructor(o,i,r){super(o,i,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(w(k),w(D),w(j))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function ve(){return new Nt}function ge(t,e,p){return new Ot(t,e,p)}var ie=[{provide:j,useFactory:ve},{provide:B,useClass:he},{provide:K,useFactory:ge,deps:[ft,B,Z]}],Te=[{provide:D,useFactory:()=>new Et},{provide:U,useValue:"BrowserAnimations"},...ie],Li=[{provide:D,useClass:At},{provide:U,useValue:"NoopAnimations"},...ie];function oe(){return q("NgEagerAnimations"),[...Te]}var ne=[{path:"dashboards",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-WKK3KQ7W.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-DNVIP5LP.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ZF5KAPOA.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-YOH74QQJ.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"theme",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-H5XSYU7C.js").then(t=>t.ThemeGeneratorComponent)})},{path:"",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-OHKV4EYM.js").then(t=>t.CommonPageComponent)})},{path:"login",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-SDXDPUEF.js").then(t=>t.LoginComponent)})},{path:"sign-up",loadComponent:()=>l(void 0,null,function*(){return import("./chunk-ITCCUAMP.js").then(t=>t.SignUpComponent)})},{path:"**",redirectTo:"dashboards"}];var re={providers:[oe(),ct({eventCoalescing:!0}),Tt(ne),dt(),Pt]};ht(ee,re).catch(t=>console.error(t));