PageSourceSearch

https://partner.restoplatform.com/chunk-57ZFFSRV.js

js restoplatform.com collected 2026-10-01 11:56:49 UTC 3,772 bytes, 1 lines download raw bytes

1import{a as V,b as P,c as w}from"./chunk-CRRGGWWY.js";import{a as R,b as T}from"./chunk-WHITNU3Z.js";import{a as y,c as H,g as I}from"./chunk-AYSQCVG3.js";import{a as E,b as O}from"./chunk-5HEDMDRO.js";import"./chunk-TA4CGIW5.js";import"./chunk-ERKFY33D.js";import"./chunk-DSUZVMNK.js";import"./chunk-4T2PTKQJ.js";import{a as B}from"./chunk-QG57Z74K.js";import{a as S}from"./chunk-6AO5R6CW.js";import"./chunk-AY76R2MH.js";import{U as x,V as k}from"./chunk-2GKCQ5UO.js";import{k as M}from"./chunk-J32AD3W7.js";import{Ab as g,Cb as h,Hb as f,Ib as i,Jb as o,Kb as C,Rb as b,Vb as _,Xa as l,Xb as d,ba as m,ha as p,ia as u,jc as a,kb as v,ua as s}from"./chunk-YOAD7BVF.js";import"./chunk-55GY6K5S.js";function N(t,n){t&1&&(i(0,"div",2),C(1,"mat-spinner",4),o())}function Q(t,n){t&1&&(i(0,"mat-card",3)(1,"mat-card-content")(2,"p"),a(3,"HR subscription is not active. Start a trial or purchase a subscription from Overview first."),o()()())}function F(t,n){t&1&&C(0,"mat-spinner",11)}function K(t,n){t&1&&a(0," Save ")}function j(t,n){if(t&1){let e=b();i(0,"mat-card",3)(1,"mat-card-content")(2,"h3"),a(3,"Employee check-in method"),o(),i(4,"p",5),a(5,"Choose how employees check in and out using the Resto Time app."),o(),i(6,"mat-button-toggle-group",6),_("change",function(c){p(e);let G=d();return u(G.checkInMethod.set(c.value))}),i(7,"mat-button-toggle",7),a(8,"Geolocation"),o(),i(9,"mat-button-toggle",8),a(10,"QR code"),o()(),i(11,"div",9)(12,"button",10),_("click",function(){p(e);let c=d();return u(c.save())}),g(13,F,1,0,"mat-spinner",11)(14,K,1,0),o()()()()}if(t&2){let e=d();l(6),f("value",e.checkInMethod()),l(6),f("disabled",e.saving()),l(),h(e.saving()?13:14)}}var D=class t{api=m(B);appState=m(S);snackBar=m(E);loading=s(!0);saving=s(!1);hasValidSubscription=s(!1);checkInMethod=s("Geolocation");ngOnInit(){this.load()}load(){let n=this.appState.selectedRestaurantId;if(!n){this.loading.set(!1);return}this.loading.set(!0),this.api.getHRConfig(n).subscribe({next:e=>{this.hasValidSubscription.set(!!e?.hasValidSubscription);let r=e?.employeeCheckInMethod??e?.EmployeeCheckInMethod;this.checkInMethod.set(r==="QRCode"?"QRCode":"Geolocation"),this.loading.set(!1)},error:()=>{this.snackBar.open("Failed to load HR settings","OK",{duration:3e3}),this.loading.set(!1)}})}save(){let n=this.appState.selectedRestaurantId;!n||!this.hasValidSubscription()||(this.saving.set(!0),this.api.updateHRCheckInMethod(n,this.checkInMethod()).subscribe({next:()=>{this.snackBar.open("HR check-in method saved","OK",{duration:3e3}),this.saving.set(!1)},error:()=>{this.snackBar.open("Failed to save HR settings","OK",{duration:3e3}),this.saving.set(!1)}}))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["app-hr-settings"]],decls:8,vars:1,consts:[[1,"page-header"],[1,"page-subtitle"],[1,"loading-center"],["appearance","outlined"],["diameter","40"],[1,"hint"],["aria-label","Employee check-in method",3,"change","value"],["value","Geolocation"],["value","QRCode"],[1,"actions"],["mat-flat-button","","type","button",3,"click","disabled"],["diameter","20"]],template:function(e,r){e&1&&(i(0,"div",0)(1,"h2"),a(2,"HR module settings"),o(),i(3,"p",1),a(4,"Configure Resto Time employee check-in for this restaurant."),o()(),g(5,N,2,0,"div",2)(6,Q,4,0,"mat-card",3)(7,j,15,3,"mat-card",3)),e&2&&(l(5),h(r.loading()?5:r.hasValidSubscription()?7:6))},dependencies:[M,I,y,H,k,x,w,V,P,T,R,O],styles:[".page-header[_ngcontent-%COMP%]{margin-bottom:1.25rem}.page-subtitle[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#0009}.loading-center[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2rem}.hint[_ngcontent-%COMP%]{color:#0009;margin-bottom:1rem}.actions[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{D as HrSettingsComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.