import{a as le}from"./chunk-GLBGWK7B.js";import"./chunk-FVVYD7H6.js";import{a as re}from"./chunk-DUS4LJU5.js";import{a as ae}from"./chunk-Q6YQJFNJ.js";import"./chunk-KZKY3ROD.js";import{A as Z,B as ee,D as te,E as ie,F as ne,k as P,l as U,m as j,q,r as z,t as J,u as Q,w as X,y as Y}from"./chunk-R3KWJKU7.js";import"./chunk-CC3PIS5F.js";import"./chunk-7ZFHDZI4.js";import{b as K}from"./chunk-SPNVV2KO.js";import"./chunk-2SZ4MB2K.js";import{m as H}from"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import{cb as G}from"./chunk-JIDGXFMJ.js";import{c as A,g as L,h as M,l as F,n as V,z as $}from"./chunk-MTR2L2TG.js";import"./chunk-5JDCLYZA.js";import{j as oe}from"./chunk-YJYOGSOO.js";import"./chunk-73IMXZSJ.js";import{ia as B}from"./chunk-KVTHJWZA.js";import{Ab as c,Bc as R,Cc as k,Hb as b,Ic as a,Jc as r,Ob as h,Sb as o,Tb as n,Ub as u,Vb as g,Wb as C,Yb as w,hb as i,ib as E,ic as I,jc as W,mc as _,nc as S,qa as x,rb as N,va as T,vc as p,wa as y,wc as d,xc as O}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function pe(e,t){if(e&1){let l=w();o(0,"button",17),I("click",function(){T(l);let s=W();return y(s.filter.reset())}),a(1,"tr"),u(2,"bi",18),n()}e&2&&_("ngbTooltip",r(1,1,"CLEAR"))}function me(e,t){e&1&&(o(0,"th",19),p(1),a(2,"tr"),n()),e&2&&(i(),d(r(2,1,"NAME")))}function ce(e,t){if(e&1&&(o(0,"td",20),p(1),n()),e&2){let l=t.$implicit;i(),d(l.name)}}function de(e,t){e&1&&(o(0,"th",19),p(1),a(2,"tr"),n()),e&2&&(i(),d(r(2,1,"COUNT")))}function se(e,t){if(e&1&&(o(0,"td",20),p(1),n()),e&2){let l=t.$implicit;i(),O(" ",l.waiters.length," ")}}function ue(e,t){e&1&&(o(0,"th",21),p(1),a(2,"tr"),n()),e&2&&(i(),d(r(2,1,"ACTIONS")))}function fe(e,t){if(e&1&&(o(0,"td",20)(1,"a",22),a(2,"tr"),u(3,"bi",23),n()()),e&2){let l=t.$implicit;i(),S("routerLink",'./merge/"',l.name,'"'),_("ngbTooltip",r(2,2,"MERGE"))}}function be(e,t){e&1&&u(0,"tr",24)}function ge(e,t){if(e&1&&u(0,"tr",25),e&2){let l=t.$implicit;S("routerLink",'./merge/"',l.name,'"')}}function Ce(e,t){e&1&&(o(0,"div",26),p(1,"Keine Dupliakte gefunden!"),n())}var _e=()=>[],Re=(()=>{let t=class t extends re{constructor(f){super(f),this.entitiesService=f,this.columnsToDisplay=["name","count","actions"]}};t.\u0275fac=function(s){return new(s||t)(E(le))},t.\u0275cmp=x({type:t,selectors:[["app-duplicate-organisation-waiters"]],standalone:!0,features:[N,R],decls:29,vars:19,consts:[[1,"d-flex","flex-column","gap-3"],[1,"my-0"],["routerLink","../",1,"btn","btn-sm","btn-outline-secondary"],[1,"input-group"],["type","text",1,"form-control","ml-2",3,"formControl","placeholder"],["class","btn btn-outline-secondary","type","button","placement","bottom",3,"ngbTooltip"],[1,"table-responsive"],["ngb-table","","ngb-sort","",3,"hover","dataSource"],["ngbColumnDef","name"],["ngb-header-cell","","ngb-sort-header","",4,"ngbHeaderCellDef"],["ngb-cell","",4,"ngbCellDef"],["ngbColumnDef","count"],["ngbColumnDef","actions"],["ngb-header-cell","",4,"ngbHeaderCellDef"],["ngb-header-row","",4,"ngbHeaderRowDef"],["ngb-row","","class","clickable",3,"routerLink",4,"ngbRowDef","ngbRowDefColumns"],["class","text-center fs-3"],["type","button","placement","bottom",1,"btn","btn-outline-secondary",3,"ngbTooltip","click"],["name","x-circle-fill"],["ngb-header-cell","","ngb-sort-header",""],["ngb-cell",""],["ngb-header-cell",""],[1,"btn","btn-sm","m-1","btn-outline-danger",3,"routerLink","ngbTooltip"],["name","union"],["ngb-header-row",""],["ngb-row","",1,"clickable",3,"routerLink"],[1,"text-center","fs-3"]],template:function(s,m){if(s&1&&(o(0,"div",0)(1,"h1",1),p(2),a(3,"tr"),n(),o(4,"scrollable-toolbar")(5,"div")(6,"a",2),p(7),a(8,"tr"),n()()(),o(9,"form")(10,"div",3),u(11,"input",4),a(12,"tr"),c(13,pe,3,3,"button",5),n()(),o(14,"div",6)(15,"table",7),a(16,"async"),g(17,8),c(18,me,3,3,"th",9)(19,ce,2,1,"td",10),C(),g(20,11),c(21,de,3,3,"th",9)(22,se,2,1,"td",10),C(),g(23,12),c(24,ue,3,3,"th",13)(25,fe,4,4,"td",10),C(),c(26,be,1,0,"tr",14)(27,ge,1,1,"tr",15),n(),c(28,Ce,2,0,"div",16),n()()),s&2){let D,v;i(2),d(r(3,10,"HOME_WAITERS_DUPLICATES")),i(5),d(r(8,12,"GO_BACK")),i(4),_("placeholder",r(12,14,"SEARCH")),b("formControl",m.filter),i(2),h(13,((D=m.filter.value==null?null:m.filter.value.length)!==null&&D!==void 0?D:0)>0?13:-1),i(2),b("hover",!0)("dataSource",(v=r(16,16,m.dataSource$))!==null&&v!==void 0?v:k(18,_e)),i(11),b("ngbHeaderRowDef",m.columnsToDisplay),i(),b("ngbRowDefColumns",m.columnsToDisplay),i(),h(28,m._dataSource.data.length<1?28:-1)}},dependencies:[$,F,A,L,M,V,B,H,G,ne,ie,z,Y,J,q,Z,Q,X,ee,te,j,P,U,oe,K,ae],encapsulation:2,changeDetection:0});let e=t;return e})();export{Re as DuplicateOrganisationWaitersComponent};
