import{a as H}from"./chunk-HRLS4ODB.js";import"./chunk-WAUVOWVZ.js";import{b as M}from"./chunk-AJO3F2JN.js";import{a as L}from"./chunk-PHL7HV6K.js";import{f as D}from"./chunk-VXSFLKKM.js";import"./chunk-IGLJBRXL.js";import"./chunk-KZKY3ROD.js";import"./chunk-W45AUQWS.js";import"./chunk-ZV4EAG4P.js";import"./chunk-7ZFHDZI4.js";import{b as B}from"./chunk-SPNVV2KO.js";import{a as C}from"./chunk-T66KGQYX.js";import"./chunk-BGV4AOSB.js";import"./chunk-2SZ4MB2K.js";import{m as U}from"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import"./chunk-JIDGXFMJ.js";import"./chunk-MTR2L2TG.js";import"./chunk-5JDCLYZA.js";import{j as O}from"./chunk-YJYOGSOO.js";import{h as P}from"./chunk-73IMXZSJ.js";import{ia as R}from"./chunk-KVTHJWZA.js";import{Ab as x,Bc as w,G as y,Ic as l,Jc as p,K as A,Ob as f,Sb as t,Tb as e,Ub as d,Yb as E,hb as n,ic as T,jc as b,na as s,p as I,qa as k,va as v,vc as i,wa as S,wc as g,xc as m}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function V(o,r){if(o&1){let _=E();t(0,"div",2)(1,"div",14),T("click",function(){v(_);let a=b();return S(a.showSystemInfoService.set(!a.showSystemInfoService.show()))}),t(2,"span"),i(3,"Toggle Developer Menu:"),e(),t(4,"kbd",15)(5,"kbd"),i(6,"Super"),e(),i(7," + "),t(8,"kbd"),i(9,"K"),e()()()()}}function j(o,r){if(o&1){let _=E();t(0,"div",2)(1,"div",3)(2,"button",16),T("click",function(){v(_);let a=b();return S(a.logout())}),i(3,"Logout"),e()()()}}function F(o,r){o&1&&(t(0,"div",17)(1,"div",18)(2,"h1",19),i(3,"kellner.team DEV"),e()()())}var ne=(()=>{let r=class r{constructor(){this.isProduction=C.getProduction(),this.type=C.getType(),this.httpClient=s(P),this.authService=s(D),this.myUser=s(L).user,this.showSystemInfoService=s(M),this.errors$=this.httpClient.get("/user/myself").pipe(A(()=>I(!0)),y(c=>c===!0))}logout(){this.authService.logout()}};r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=k({type:r,selectors:[["app-start"]],standalone:!0,features:[w],decls:38,vars:26,consts:[[1,"d-flex","flex-column","flex-md-row","justify-content-start","gap-4"],[1,"col-12","col-xl-7","d-flex","flex-column","gap-2"],[1,"card","p-2"],[1,"card-body"],[1,"card-title"],[1,"d-flex","gap-2","flex-wrap"],["routerLink","o/organisationId/e/eventId/tables/create",1,"btn","btn-outline-info","btn-sm"],["name","plus-circle"],["routerLink","o/organisationId/e/eventId/products/create",1,"btn","btn-outline-info","btn-sm"],["routerLink","o/organisationId/e/eventId/waiters/create",1,"btn","btn-outline-info","btn-sm"],["routerLink","o/organisationId/e/eventId/tables/groups/create",1,"btn","btn-outline-info","btn-sm"],["routerLink","o/organisationId/e/eventId/products/groups/create",1,"btn","btn-outline-info","btn-sm"],["class","card p-2"],["class","d-flex justify-content-center"],[1,"card-body","d-inline-flex","align-items-center","gap-2","clickable",3,"click"],[1,"px-2",2,"padding-top","5px"],[1,"btn","btn-sm","btn-warning",3,"click"],[1,"d-flex","justify-content-center"],[1,"mt-5","pt-5","text-break","text-center"],[2,"font-size","60px"]],template:function(a,u){if(a&1&&(t(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),i(5),l(6,"tr"),e(),t(7,"div",5)(8,"a",6),d(9,"bi",7),i(10),l(11,"tr"),e(),t(12,"a",8),d(13,"bi",7),i(14),l(15,"tr"),e(),t(16,"a",9),d(17,"bi",7),i(18),l(19,"tr"),e(),t(20,"a",10),d(21,"bi",7),i(22),l(23,"tr"),e(),t(24,"a",11),d(25,"bi",7),i(26),l(27,"tr"),e()()()(),t(28,"div",2)(29,"div",3)(30,"h5",4),i(31),l(32,"tr"),e(),d(33,"app-download-btn-list"),e()(),x(34,V,10,0,"div",12)(35,j,4,0,"div",12),l(36,"async"),e()(),x(37,F,4,0,"div",13)),a&2){let h;n(5),g(p(6,10,"HOME_START_SETUP")),n(5),m(" ",p(11,12,"HOME_START_SETUP_CREATE_TABLE"),""),n(4),m(" ",p(15,14,"HOME_START_SETUP_CREATE_PRODUCT"),""),n(4),m(" ",p(19,16,"HOME_START_SETUP_CREATE_WAITER"),""),n(4),m(" ",p(23,18,"HOME_START_SETUP_CREATE_TABLE_GROUP"),""),n(4),m(" ",p(27,20,"HOME_START_SETUP_CREATE_PRODUCT_GROUP"),""),n(5),g(p(32,22,"ABOUT_APP_DISCOVER")),n(3),f(34,(h=u.myUser())!=null&&h.isAdmin?34:-1),n(),f(35,p(36,24,u.errors$)&&!u.isProduction?35:-1),n(2),f(37,u.type==="dev"?37:-1)}},dependencies:[U,O,H,B,R],encapsulation:2,changeDetection:0});let o=r;return o})();export{ne as StartComponent};
