text: "use strict";(self.webpackChunkplayground=self.webpackChunkplayground||[]).push([[1600],{4842:(v,O,s)=>{s.d(O,{x:()=>n});var t=s(3668);const P=["*"];let n=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["nb-auth-block"]],ngContentSelectors:P,decls:1,vars:0,template:function(h,g){1&h&&(t.F$t(),t.Hsn(0))},styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:35rem}[_nghost-%COMP%]     form{width:100%}[_nghost-%COMP%]     .label{display:block;margin-bottom:.5rem}[_nghost-%COMP%]     .forgot-password{text-decoration:none;margin-bottom:.5rem}[_nghost-%COMP%]     .caption{margin-top:.5rem}[_nghost-%COMP%]     .alert{text-align:center}[_nghost-%COMP%]     .title{margin-top:0;margin-bottom:.75rem;text-align:center}[_nghost-%COMP%]     .sub-title{margin-bottom:2rem;text-align:center}[_nghost-%COMP%]     .form-control-group{margin-bottom:2rem}[_nghost-%COMP%]     .form-control-group.accept-group{display:flex;justify-content:space-between;margin:2rem 0}[_nghost-%COMP%]     .label-with-link{display:flex;justify-content:space-between}[_nghost-%COMP%]     .links{text-align:center;margin-top:1.75rem}[_nghost-%COMP%]     .links .socials{margin-top:1.5rem}[_nghost-%COMP%]     .links .socials a{margin:0 1rem;text-decoration:none;vertical-align:middle}[_nghost-%COMP%]     .links .socials a.with-icon{font-size:2rem}[_nghost-%COMP%]     .another-action{margin-top:2rem;text-align:center}[_nghost-%COMP%]     .sign-in-or-up{margin-top:2rem;display:flex;justify-content:space-between}[_nghost-%COMP%]     nb-alert .alert-title, [_nghost-%COMP%]     nb-alert .alert-message{margin:0 0 .5rem}[_nghost-%COMP%]     nb-alert .alert-message-list{list-style-type:none;padding:0;margin:0}"]}),m})()},9074:(v,O,s)=>{s.d(O,{A:()=>i});var t=s(8805),P=s(3405),n=s(3668),m=s(3785),b=s(6019),h=s(761),g=s(634),p=s(5492),C=s(4842),_=s(4301);let i=(()=>{class u{constructor(r,f){this.auth=r,this.location=f,this.destroy$=new P.xQ,this.authenticated=!1,this.token="",this.subscription=r.onAuthenticationChange().pipe((0,t.R)(this.destroy$)).subscribe(M=>{this.authenticated=M})}back(){return this.location.back(),!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(r){return new(r||u)(n.Y36(m._),n.Y36(b.Ye))},u.\u0275cmp=n.Xpm({type:u,selectors:[["nb-auth"]],decls:10,vars:0,consts:[[1,"navigation"],["href","#","aria-label","Back",1,"link","back-link",3,"click"],["icon","arrow-back"]],template:function(r,f){1&r&&(n.TgZ(0,"nb-layout"),n.TgZ(1,"nb-layout-column"),n.TgZ(2,"nb-card"),n.TgZ(3,"nb-card-header"),n.TgZ(4,"nav",0),n.TgZ(5,"a",1),n.NdJ("click",function(){return f.back()}),n._UZ(6,"nb-icon",2),n.qZA(),n.qZA(),n.qZA(),n.TgZ(7,"nb-card-body"),n.TgZ(8,"nb-auth-block"),n._UZ(9,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA())},directives:[h.Aq,h.dP,g.As,g.nd,p.f,g.yK,C.x,_.lC],styles:[".visually-hidden[_ngcontent-%COMP%]{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%]   .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}.nb-global-scrollblock[_ngcontent-%COMP%]{position:static;width:auto;overflow:hidden}html[_ngcontent-%COMP%]{box-sizing:border-box}*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{box-sizing:inherit}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{margin:0;padding:0}html[_ngcontent-%COMP%]{line-height:1.15;-webkit-text-size-adjust:100%}body[_ngcontent-%COMP%]{margin:0}h1[_ngcontent-%COMP%]{font-size:2em;margin:.67em 0}hr[_ngcontent-%COMP%]{box-sizing:content-box;height:0;overflow:visible}pre[_ngcontent-%COMP%]{font-family:monospace,monospace;font-size:1em}a[_ngcontent-%COMP%]{background-color:transparent}abbr[title][_ngcontent-%COMP%]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%]{font-family:monospace,monospace;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}img[_ngcontent-%COMP%]{border-style:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{overflow:visible}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], [type=button][_ngcontent-%COMP%], [type=reset][_ngcontent-%COMP%], [type=submit][_ngcontent-%COMP%]{-webkit-appearance:button}button[_ngcontent-%COMP%]::-moz-focus-inner, [type=button][_ngcontent-%COMP%]::-moz-focus-inner, [type=reset][_ngcontent-%COMP%]::-moz-focus-inner, [type=submit][_ngcontent-%COMP%]::-moz-focus-inner{border-style:none;padding:0}button[_ngcontent-%COMP%]:-moz-focusring, [type=button][_ngcontent-%COMP%]:-moz-focusring, [type=reset][_ngcontent-%COMP%]:-moz-focusring, [type=submit][_ngcontent-%COMP%]:-moz-focusring{outline:1px dotted ButtonText}fieldset[_ngcontent-%COMP%]{padding:.35em .75em .625em}legend[_ngcontent-%COMP%]{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress[_ngcontent-%COMP%]{vertical-align:baseline}textarea[_ngcontent-%COMP%]{overflow:auto}[type=checkbox][_ngcontent-%COMP%], [type=radio][_ngcontent-%COMP%]{box-sizing:border-box;padding:0}[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, [type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[type=search][_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details[_ngcontent-%COMP%]{display:block}summary[_ngcontent-%COMP%]{display:list-item}template[_ngcontent-%COMP%]{display:none}[hidden][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   nb-card[_ngcontent-%COMP%]{margin:0;height:calc(100vh - 5rem)}[_nghost-%COMP%]   .navigation[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{display:inline-block;text-decoration:none}[_nghost-%COMP%]   .navigation[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}[_nghost-%COMP%]   .links[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{font-size:2.5rem}[_nghost-%COMP%]   nb-card-body[_ngcontent-%COMP%]{display:flex;width:100%}[_nghost-%COMP%]   nb-auth-block[_ngcontent-%COMP%]{margin:auto}@media (max-width: 767.98px){[_nghost-%COMP%]   nb-card[_ngcontent-%COMP%]{border-radius:0;height:100vh}}[_nghost-%COMP%]     nb-layout .layout .layout-container .content .columns nb-layout-column{padding:2.5rem}@media (max-width: 767.98px){[_nghost-%COMP%]     nb-layout .layout .layout-container .content .columns nb-layout-column{padding:0}}"]}),u})()},3861:(v,O,s)=>{s.d(O,{Y:()=>Y});var t=s(8299),P=s(5170),n=s(3668),m=s(3785),b=s(4301),h=s(6019),g=s(9133),p=s(3191),C=s(2563),_=s(6424),i=s(8739),u=s(5492);function c(e,l){if(1&e&&(n.TgZ(0,"li",26),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function r(e,l){if(1&e&&(n.TgZ(0,"nb-alert",22),n.TgZ(1,"p",23),n.TgZ(2,"b"),n._uU(3,"Oh snap!"),n.qZA(),n.qZA(),n.TgZ(4,"ul",24),n.YNc(5,c,2,1,"li",25),n.qZA(),n.qZA()),2&e){const o=n.oxw();n.xp6(5),n.Q6J("ngForOf",o.errors)}}function f(e,l){if(1&e&&(n.TgZ(0,"li",26),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function M(e,l){if(1&e&&(n.TgZ(0,"nb-alert",27),n.TgZ(1,"p",23),n.TgZ(2,"b"),n._uU(3,"Hooray!"),n.qZA(),n.qZA(),n.TgZ(4,"ul",24),n.YNc(5,f,2,1,"li",25),n.qZA(),n.qZA()),2&e){const o=n.oxw();n.xp6(5),n.Q6J("ngForOf",o.messages)}}function T(e,l){1&e&&(n.TgZ(0,"p",29),n._uU(1," Email is required! "),n.qZA())}function A(e,l){1&e&&(n.TgZ(0,"p",29),n._uU(1," Email should be the real one! "),n.qZA())}function x(e,l){if(1&e&&(n.ynx(0),n.YNc(1,T,2,0,"p",28),n.YNc(2,A,2,0,"p",28),n.BQk()),2&e){n.oxw();const o=n.MAs(12);n.xp6(1),n.Q6J("ngIf",null==o.errors?null:o.errors.required),n.xp6(1),n.Q6J("ngIf",null==o.errors?null:o.errors.pattern)}}function E(e,l){1&e&&(n.TgZ(0,"p",29),n._uU(1," Password is required! "),n.qZA())}function Z(e,l){if(1&e&&(n.TgZ(0,"p",29),n._uU(1),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.AsE(" Password should contain from ",o.getConfigValue("forms.validation.password.minLength")," to ",o.getConfigValue("forms.validation.password.maxLength")," characters ")}}function w(e,l){if(1&e&&(n.ynx(0),n.YNc(1,E,2,0,"p",28),n.YNc(2,Z,2,2,"p",28),n.BQk()),2&e){n.oxw();const o=n.MAs(21);n.xp6(1),n.Q6J("ngIf",null==o.errors?null:o.errors.required),n.xp6(1),n.Q6J("ngIf",(null==o.errors?null:o.errors.minlength)||(null==o.errors?null:o.errors.maxlength))}}function L(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nb-checkbox",30),n.NdJ("ngModelChange",function(k){return n.CHM(o),n.oxw().user.rememberMe=k}),n._uU(1,"Remember me"),n.qZA()}if(2&e){const o=n.oxw();n.Q6J("ngModel",o.user.rememberMe)}}function N(e,l){if(1&e&&n._UZ(0,"nb-icon",39),2&e){const o=n.oxw(2).$implicit;n.Q6J("icon",o.icon)}}function D(e,l){if(1&e&&n._uU(0),2&e){const o=n.oxw(2).$implicit;n.Oqu(o.title)}}function I(e,l){if(1&e&&(n.TgZ(0,"a",36),n.YNc(1,N,1,1,"nb-icon",37),n.YNc(2,D,1,1,"ng-template",null,38,n.W1O),n.qZA()),2&e){const o=n.MAs(3),a=n.oxw().$implicit;n.ekj("with-icon",a.icon),n.Q6J("routerLink",a.link),n.uIk("target",a.target)("class",a.icon),n.xp6(1),n.Q6J("ngIf",a.icon)("ngIfElse",o)}}function U(e,l){if(1&e&&n._UZ(0,"nb-icon",39),2&e){const o=n.oxw(2).$implicit;n.Q6J("icon",o.icon)}}function B(e,l){if(1&e&&n._uU(0),2&e){const o=n.oxw(2).$implicit;n.Oqu(o.title)}}function z(e,l){if(1&e&&(n.TgZ(0,"a"),n.YNc(1,U,1,1,"nb-icon",37),n.YNc(2,B,1,1,"ng-template",null,38,n.W1O),n.qZA()),2&e){const o=n.MAs(3),a=n.oxw().$implicit;n.ekj("with-icon",a.icon),n.uIk("href",a.url,n.LSH)("target",a.target)("class",a.icon),n.xp6(1),n.Q6J("ngIf",a.icon)("ngIfElse",o)}}function J(e,l){if(1&e&&(n.ynx(0),n.YNc(1,I,4,7,"a",34),n.YNc(2,z,4,7,"a",35),n.BQk()),2&e){const o=l.$implicit;n.xp6(1),n.Q6J("ngIf",o.link),n.xp6(1),n.Q6J("ngIf",o.url)}}function R(e,l){if(1&e&&(n.TgZ(0,"section",31),n._uU(1," or enter with: "),n.TgZ(2,"div",32),n.YNc(3,J,3,2,"ng-container",33),n.qZA(),n.qZA()),2&e){const o=n.oxw();n.xp6(3),n.Q6J("ngForOf",o.socialLinks)}}let Y=(()=>{class e{constructor(o,a={},k,d){this.service=o,this.options=a,this.cd=k,this.router=d,this.redirectDelay=0,this.showMessages={},this.strategy="",this.errors=[],this.messages=[],this.user={},this.submitted=!1,this.socialLinks=[],this.rememberMe=!1,this.redirectDelay=this.getConfigValue("forms.login.redirectDelay"),this.showMessages=this.getConfigValue("forms.login.showMessages"),this.strategy=this.getConfigValue("forms.login.strategy"),this.socialLinks=this.getConfigValue("forms.login.socialLinks"),this.rememberMe=this.getConfigValue("forms.login.rememberMe")}login(){this.errors=[],this.messages=[],this.submitted=!0,this.service.authenticate(this.strategy,this.user).subscribe(o=>{this.submitted=!1,o.isSuccess()?this.messages=o.getMessages():this.errors=o.getErrors();const a=o.getRedirect();a&&setTimeout(()=>this.router.navigateByUrl(a),this.redirectDelay),this.cd.detectChanges()})}getConfigValue(o){return(0,P.hB)(this.options,o,null)}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(m._),n.Y36(t.h),n.Y36(n.sBO),n.Y36(b.F0))},e.\u0275cmp=n.Xpm({type:e,selectors:[["nb-login"]],decls:32,vars:19,consts:[["id","title",1,"title"],[1,"sub-title"],["outline","danger","role","alert",4,"ngIf"],["outline","success","role","alert",4,"ngIf"],["aria-labelledby","title",3,"ngSubmit"],["form","ngForm"],[1,"form-control-group"],["for","input-email",1,"label"],["nbInput","","fullWidth","","name","email","id","input-email","pattern",".+@.+\\..+","placeholder","Email address","fieldSize","large","autofocus","",3,"ngModel","status","required","ngModelChange"],["email","ngModel"],[4,"ngIf"],[1,"label-with-link"],["for","input-password",1,"label"],["routerLink","../request-password",1,"forgot-password","caption-2"],["nbInput","","fullWidth","","name","password","type","password","id","input-password","placeholder","Password","fieldSize","large",3,"ngModel","status","required","minlength","maxlength","ngModelChange"],["password","ngModel"],[1,"form-control-group","accept-group"],["name","rememberMe",3,"ngModel","ngModelChange",4,"ngIf"],["nbButton","","fullWidth","","status","primary","size","large",3,"disabled"],["class","links","aria-label","Social sign in",4,"ngIf"],["aria-label","Register",1,"another-action"],["routerLink","../register",1,"text-link"],["outline","danger","role","alert"],[1,"alert-title"],[1,"alert-message-list"],["class","alert-message",4,"ngFor","ngForOf"],[1,"alert-message"],["outline","success","role","alert"],["class","caption status-danger",4,"ngIf"],[1,"caption","status-danger"],["name","rememberMe",3,"ngModel","ngModelChange"],["aria-label","Social sign in",1,"links"],[1,"socials"],[4,"ngFor","ngForOf"],[3,"routerLink","with-icon",4,"ngIf"],[3,"with-icon",4,"ngIf"],[3,"routerLink"],[3,"icon",4,"ngIf","ngIfElse"],["title",""],[3,"icon"]],template:function(o,a){if(1&o&&(n.TgZ(0,"h1",0),n._uU(1,"Login"),n.qZA(),n.TgZ(2,"p",1),n._uU(3,"Hello! Log in with your email."),n.qZA(),n.YNc(4,r,6,1,"nb-alert",2),n.YNc(5,M,6,1,"nb-alert",3),n.TgZ(6,"form",4,5),n.NdJ("ngSubmit",function(){return a.login()}),n.TgZ(8,"div",6),n.TgZ(9,"label",7),n._uU(10,"Email address:"),n.qZA(),n.TgZ(11,"input",8,9),n.NdJ("ngModelChange",function(d){return a.user.email=d}),n.qZA(),n.YNc(13,x,3,2,"ng-container",10),n.qZA(),n.TgZ(14,"div",6),n.TgZ(15,"span",11),n.TgZ(16,"label",12),n._uU(17,"Password:"),n.qZA(),n.TgZ(18,"a",13),n._uU(19,"Forgot Password?"),n.qZA(),n.qZA(),n.TgZ(20,"input",14,15),n.NdJ("ngModelChange",function(d){return a.user.password=d}),n.qZA(),n.YNc(22,w,3,2,"ng-container",10),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,L,2,1,"nb-checkbox",17),n.qZA(),n.TgZ(25,"button",18),n._uU(26," Log In "),n.qZA(),n.qZA(),n.YNc(27,R,4,1,"section",19),n.TgZ(28,"section",20),n._uU(29," Don't have an account? "),n.TgZ(30,"a",21),n._uU(31,"Register"),n.qZA(),n.qZA()),2&o){const k=n.MAs(7),d=n.MAs(12),y=n.MAs(21);n.xp6(4),n.Q6J("ngIf",a.showMessages.error&&(null==a.errors?null:a.errors.length)&&!a.submitted),n.xp6(1),n.Q6J("ngIf",a.showMessages.success&&(null==a.messages?null:a.messages.length)&&!a.submitted),n.xp6(6),n.Q6J("ngModel",a.user.email)("status",d.dirty?d.invalid?"danger":"success":"basic")("required",a.getConfigValue("forms.validation.email.required")),n.uIk("aria-invalid",!(!d.invalid||!d.touched)||null),n.xp6(2),n.Q6J("ngIf",d.invalid&&d.touched),n.xp6(7),n.Q6J("ngModel",a.user.password)("status",y.dirty?y.invalid?"danger":"success":"basic")("required",a.getConfigValue("forms.validation.password.required"))("minlength",a.getConfigValue("forms.validation.password.minLength"))("maxlength",a.getConfigValue("forms.validation.password.maxLength")),n.uIk("aria-invalid",!(!y.invalid||!y.touched)||null),n.xp6(2),n.Q6J("ngIf",y.invalid&&y.touched),n.xp6(2),n.Q6J("ngIf",a.rememberMe),n.xp6(1),n.ekj("btn-pulse",a.submitted),n.Q6J("disabled",a.submitted||!k.valid),n.xp6(2),n.Q6J("ngIf",a.socialLinks&&a.socialLinks.length>0)}},directives:[h.O5,g._Y,g.JL,g.F,p.h,g.Fj,g.c5,g.JJ,g.On,g.Q7,b.yS,g.wO,g.nD,C.D,_.$,h.sg,i.N,u.f],encapsulation:2,changeDetection:0}),e})()},6424:(v,O,s)=>{s.d(O,{$:()=>g});var t=s(3668),P=s(8580),n=s(163),m=s(6019);function b(p,C){if(1&p){const _=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){return t.CHM(_),t.oxw().onClose()}),t.TgZ(1,"span",2),t._uU(2,"\xd7"),t.qZA(),t.qZA()}}const h=["*"];let g=(()=>{class p{constructor(_){this.statusService=_,this.size="",this.status="basic",this.accent="",this.outline="",this._closable=!1,this.close=new t.vpe}get closable(){return this._closable}set closable(_){this._closable=(0,P.e)(_)}onClose(){this.close.emit()}get tiny(){return"tiny"===this.size}get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get info(){return"info"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get primaryAccent(){return"primary"===this.accent}get successAccent(){return"success"===this.accent}get infoAccent(){return"info"===this.accent}get warningAccent(){return"warning"===this.accent}get dangerAccent(){return"danger"===this.accent}get basicAccent(){return"basic"===this.accent}get controlAccent(){return"control"===this.accent}get primaryOutline(){return"primary"===this.outline}get successOutline(){return"success"===this.outline}get infoOutline(){return"info"===this.outline}get warningOutline(){return"warning"===this.outline}get dangerOutline(){return"danger"===this.outline}get basicOutline(){return"basic"===this.outline}get controlOutline(){return"control"===this.outline}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}}return p.\u0275fac=function(_){return new(_||p)(t.Y36(n.Y))},p.\u0275cmp=t.Xpm({type:p,selectors:[["nb-alert"]],hostVars:56,hostBindings:function(_,i){2&_&&(t.Tol(i.additionalClasses),t.ekj("closable",i.closable)("size-tiny",i.tiny)("size-small",i.small)("size-medium",i.medium)("size-large",i.large)("size-giant",i.giant)("status-primary",i.primary)("status-success",i.success)("status-info",i.info)("status-warning",i.warning)("status-danger",i.danger)("status-basic",i.basic)("status-control",i.control)("accent-primary",i.primaryAccent)("accent-success",i.successAccent)("accent-info",i.infoAccent)("accent-warning",i.warningAccent)("accent-danger",i.dangerAccent)("accent-basic",i.basicAccent)("accent-control",i.controlAccent)("outline-primary",i.primaryOutline)("outline-success",i.successOutline)("outline-info",i.infoOutline)("outline-warning",i.warningOutline)("outline-danger",i.dangerOutline)("outline-basic",i.basicOutline)("outline-control",i.controlOutline))},inputs:{size:"size",status:"status",accent:"accent",outline:"outline",closable:"closable"},outputs:{close:"close"},ngContentSelectors:h,decls:2,vars:1,consts:[["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"]],template:function(_,i){1&_&&(t.F$t(),t.YNc(0,b,3,0,"button",0),t.Hsn(1)),2&_&&t.Q6J("ngIf",i.closable)},directives:[m.O5],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}[dir=ltr]   [_nghost-%COMP%]   .close[_ngcontent-%COMP%]{right:0}[dir=rtl]   [_nghost-%COMP%]   .close[_ngcontent-%COMP%]{left:0}.close[_ngcontent-%COMP%]{position:absolute;top:0;color:inherit;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}"]}),p})()},8739:(v,O,s)=>{s.d(O,{N:()=>_});var t=s(3668),P=s(9133),n=s(8580),m=s(163),b=s(6019),h=s(5492);function g(i,u){1&i&&t._UZ(0,"nb-icon",6)}function p(i,u){1&i&&t._UZ(0,"nb-icon",7)}const C=["*"];let _=(()=>{class i{constructor(c,r,f,M,T){this.changeDetector=c,this.renderer=r,this.hostElement=f,this.zone=M,this.statusService=T,this.onChange=()=>{},this.onTouched=()=>{},this._checked=!1,this._disabled=!1,this.status="basic",this._indeterminate=!1,this.checkedChange=new t.vpe}get checked(){return this._checked}set checked(c){this._checked=(0,n.e)(c)}get disabled(){return this._disabled}set disabled(c){this._disabled=(0,n.e)(c)}get indeterminate(){return this._indeterminate}set indeterminate(c){this._indeterminate=(0,n.e)(c)}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get info(){return"info"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.hostElement.nativeElement,"nb-transition")}))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}writeValue(c){this._checked=c,this.changeDetector.markForCheck()}setDisabledState(c){this.disabled=(0,n.e)(c),this.changeDetector.markForCheck()}setTouched(){this.onTouched()}updateValueAndIndeterminate(c){const r=c.target;this.checked=r.checked,this.checkedChange.emit(this.checked),this.onChange(this.checked),this.indeterminate=r.indeterminate}}return i.\u0275fac=function(c){return new(c||i)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(m.Y))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nb-checkbox"]],hostVars:16,hostBindings:function(c,r){2&c&&(t.Tol(r.additionalClasses),t.ekj("status-primary",r.primary)("status-success",r.success)("status-warning",r.warning)("status-danger",r.danger)("status-info",r.info)("status-basic",r.basic)("status-control",r.control))},inputs:{checked:"checked",disabled:"disabled",status:"status",indeterminate:"indeterminate"},outputs:{checkedChange:"checkedChange"},features:[t._Bn([{provide:P.JU,useExisting:(0,t.Gpc)(()=>i),multi:!0}])],ngContentSelectors:C,decls:7,vars:9,consts:[[1,"label"],["type","checkbox",1,"native-input","visually-hidden",3,"disabled","checked","indeterminate","change","blur","click"],[1,"custom-checkbox"],["icon","minus-bold-outline","pack","nebular-essentials","class","custom-checkbox-icon",4,"ngIf"],["icon","checkmark-bold-outline","pack","nebular-essentials","class","custom-checkbox-icon",4,"ngIf"],[1,"text"],["icon","minus-bold-outline","pack","nebular-essentials",1,"custom-checkbox-icon"],["icon","checkmark-bold-outline","pack","nebular-essentials",1,"custom-checkbox-icon"]],template:function(c,r){1&c&&(t.F$t(),t.TgZ(0,"label",0),t.TgZ(1,"input",1),t.NdJ("change",function(M){return r.updateValueAndIndeterminate(M)})("blur",function(){return r.setTouched()})("click",function(M){return M.stopPropagation()}),t.qZA(),t.TgZ(2,"span",2),t.YNc(3,g,1,0,"nb-icon",3),t.YNc(4,p,1,0,"nb-icon",4),t.qZA(),t.TgZ(5,"span",5),t.Hsn(6),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Q6J("disabled",r.disabled)("checked",r.checked)("indeterminate",r.indeterminate),t.xp6(1),t.ekj("indeterminate",r.indeterminate)("checked",r.checked),t.xp6(1),t.Q6J("ngIf",r.indeterminate),t.xp6(1),t.Q6J("ngIf",r.checked&&!r.indeterminate))},directives:[b.O5,h.f],styles:["[_nghost-%COMP%]   .label[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;margin:0;min-height:inherit}[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]{flex-shrink:0}.nb-transition[_nghost-%COMP%]   .custom-checkbox[_ngcontent-%COMP%]{transition-duration:.15s;transition-property:background-color,border,box-shadow;transition-timing-function:ease-in}.nb-transition[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{transition-duration:.15s;transition-property:color;transition-timing-function:ease-in}"],changeDetection:0}),i})()}}]);