import{a as W}from"./chunk-IXE5UUCP.js";import{a as V}from"./chunk-WAUVOWVZ.js";import{a as L}from"./chunk-IGLJBRXL.js";import{b as q}from"./chunk-SPNVV2KO.js";import{p as w}from"./chunk-BGV4AOSB.js";import{Ea as M,Fa as P,cb as A,db as O}from"./chunk-JIDGXFMJ.js";import{j as N,p as F}from"./chunk-YJYOGSOO.js";import{Ab as I,Bc as _,Hb as r,Ic as c,Jc as f,Lc as R,Nc as T,Sb as p,Tb as a,Ub as s,Va as k,Yb as S,hb as o,ib as C,ic as y,jc as h,mc as B,qa as b,uc as d,va as D,vc as u,wa as E,wc as g,xc as Q}from"./chunk-FWZCAEAJ.js";function G(t,e){if(t&1&&(p(0,"p"),u(1),c(2,"tr"),a(),p(3,"a",8),u(4),c(5,"s_cut"),a()),t&2){let l=h();o(),g(f(2,3,l.info)),o(2),r("href",l.data,k),o(),g(R(5,5,l.data,82,"..."))}}function J(t,e){if(t&1&&(p(0,"b"),u(1),c(2,"tr"),a()),t&2){let l=h();o(),g(f(2,1,l.text))}}var j=(()=>{let e=class e{constructor(i){this.qrCodeService=i,this.text="",this.info=""}openQrCode(){this.qrCodeService.openQRCodePage({data:this.data??"ERROR",text:this.text,info:this.info})}};e.\u0275fac=function(n){return new(n||e)(C(L))},e.\u0275cmp=b({type:e,selectors:[["app-qrcode-button"]],inputs:{data:"data",text:"text",info:"info"},standalone:!0,features:[_],decls:14,vars:10,consts:[["popContent",""],["popTitle",""],["role","group","aria-label","Basic example",1,"btn-group","btn-group-sm"],["type","button","placement","bottom","container","body","triggers","mouseenter",1,"btn","btn-sm","btn-primary","pe-2",3,"ngbPopover","popoverTitle","autoClose","click"],["name","qr-code",1,"me-1"],["aria-label","Copy link","autoClose","false","triggers","manual","placement","right",1,"btn","btn-primary","btn-sm",3,"copyable","ngbTooltip","click"],["c","copy","t","ngbTooltip"],["name","clipboard","aria-label","Copy content to clipboard"],["target","_blank","rel","noopener",3,"href"]],template:function(n,m){if(n&1){let x=S();I(0,G,6,9,"ng-template",null,0,T)(2,J,3,3,"ng-template",null,1,T),p(4,"div",2)(5,"button",3),y("click",function(){return m.openQrCode()}),s(6,"bi",4),u(7),c(8,"tr"),a(),p(9,"button",5,6),y("click",function(){D(x);let H=d(11),z=d(10);return E(z.copy(H))}),c(12,"tr"),s(13,"bi",7),a()()}if(n&2){let x=d(1),v=d(3);o(5),r("ngbPopover",x)("popoverTitle",v)("autoClose","outside"),o(2),Q(" ",f(8,6,m.text)," "),o(2),B("ngbTooltip",f(12,8,"COPIED")),r("copyable",m.data)}},dependencies:[V,O,A,F,N,q,P,M,w],encapsulation:2,changeDetection:0});let t=e;return t})();var pe=(()=>{let e=class e{constructor(i){this.mobileLink=i}set token(i){this._token=this.mobileLink.createWaiterSignInLink(i)}};e.\u0275fac=function(n){return new(n||e)(C(W))},e.\u0275cmp=b({type:e,selectors:[["app-btn-waiter-signin-qrcode"]],inputs:{token:"token"},standalone:!0,features:[_],decls:1,vars:1,consts:[["text","HOME_WAITERS_EDIT_QR_CODE","info","HOME_WAITERS_EDIT_QR_CODE_DESCRIPTION",3,"data"]],template:function(n,m){n&1&&s(0,"app-qrcode-button",0),n&2&&r("data",m._token)},dependencies:[j],encapsulation:2,changeDetection:0});let t=e;return t})();export{j as a,pe as b};
