UNPKG

@mxtommy/kip

Version:

An advanced and versatile marine instrumentation package to display Signal K data.

2 lines (1 loc) 3.05 kB
import{d as T,e as U,h as F,i as O,j as A,k as N}from"./chunk-CD375FDG.js";import{a as H}from"./chunk-7TWI6ZJI.js";import{D as K,t as j,u as k,z}from"./chunk-EQ5CPWIU.js";import{Cc as D,Dc as n,Ea as m,Ec as h,Fa as p,Fc as I,Hb as y,Ic as f,Jc as M,Kc as C,Nb as S,Pc as _,Xe as P,Zb as l,af as B,bf as L,ef as W,hf as R,ic as e,if as q,jc as t,kc as g,oc as x,qc as v,rc as b,rf as G,sd as E,ua as c,ub as a,uf as Y,ve as V}from"./chunk-Y7X77HSW.js";var J=()=>({standalone:!1});function Q(o,X){if(o&1&&(e(0,"div",10),g(1,"i",11),n(2),t()),o&2){let u=b();a(2),I(" ",u.data.error," ")}}var se=(()=>{class o{dialogRef=c(T);data=c(U);titleDialog="Sign in to Signal K";saveCredential(){this.data.error=null,this.dialogRef.close(this.data)}static \u0275fac=function(s){return new(s||o)};static \u0275cmp=y({type:o,selectors:[["app-modal-user-credential"]],decls:26,vars:10,consts:[["login","ngForm"],["name","login",3,"ngSubmit"],["mat-dialog-title",""],["class","errorMsgBox",4,"ngIf"],[1,"login-grid"],[1,"userLoginInput"],["type","text","autocomplete","username","id","username","matInput","","placeholder","User ID","name","username","required","",3,"ngModelChange","ngModel","ngModelOptions"],["type","password","autocomplete","current-password","id","current-password","matInput","","placeholder","Password","name","current-password","required","",3,"ngModelChange","ngModel","ngModelOptions"],["mat-flat-button","","type","button",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"],[1,"errorMsgBox"],["aria-hidden","true",1,"fa-solid","fa-times-circle",2,"color","red","padding-right","5px"]],template:function(s,i){if(s&1){let d=x();e(0,"form",1,0),v("ngSubmit",function(){return m(d),p(i.saveCredential())}),e(2,"span",2),n(3),t(),e(4,"mat-dialog-content"),S(5,Q,3,1,"div",3),g(6,"br"),e(7,"div",4)(8,"mat-form-field",5)(9,"mat-label"),n(10,"User ID"),t(),e(11,"input",6),C("ngModelChange",function(r){return m(d),M(i.data.user,r)||(i.data.user=r),p(r)}),t(),e(12,"mat-error"),n(13," You must enter a User ID value "),t()(),e(14,"mat-form-field",5)(15,"mat-label"),n(16,"Password"),t(),e(17,"input",7),C("ngModelChange",function(r){return m(d),M(i.data.password,r)||(i.data.password=r),p(r)}),t(),e(18,"mat-error"),n(19," You must enter a password value "),t()()()(),g(20,"mat-divider"),e(21,"mat-dialog-actions")(22,"button",8),n(23,"Cancel"),t(),e(24,"button",9),n(25,"Sign in"),t()()()}if(s&2){let d=D(1);a(3),h(i.titleDialog),a(2),l("ngIf",i.data.error),a(6),f("ngModel",i.data.user),l("ngModelOptions",_(8,J)),a(6),f("ngModel",i.data.password),l("ngModelOptions",_(9,J)),a(5),l("mat-dialog-close",!1),a(2),l("disabled",!d.valid)}},dependencies:[Y,q,P,B,L,G,R,W,O,A,E,z,j,K,k,H,N,V,F],styles:[".errorMsgBox[_ngcontent-%COMP%]{background-color:#fff8dc;color:#2f4f4f;display:flex;padding:5px;font-family:Arial,Times,serif;font-size:14px}.login-grid[_ngcontent-%COMP%]{display:grid;gap:10px;padding-left:10px;padding-right:10px}.userLoginInput[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return o})();export{se as a};