import{a as V}from"./chunk-L2SQOFXC.js";import{a as j}from"./chunk-MLGLFM7E.js";import"./chunk-V4WESMSJ.js";import{b as $}from"./chunk-AJTKPNL2.js";import{a as W}from"./chunk-F5MI6XGL.js";import"./chunk-SMMIHGJB.js";import{d as N}from"./chunk-7PKMSCVL.js";import"./chunk-WL2OYEJL.js";import{a as k}from"./chunk-RVEFR64E.js";import"./chunk-JSG72ZNQ.js";import"./chunk-JAY45DEO.js";import"./chunk-LINAD4CC.js";import"./chunk-UBQPCB4A.js";import"./chunk-RTVR37QC.js";import"./chunk-ZATDFETU.js";import"./chunk-QHAVDXDG.js";import{C as A,S as R,ba as B}from"./chunk-27KSTDMK.js";import"./chunk-RTL4XZI4.js";import"./chunk-QGNMEQRN.js";import"./chunk-F4GTCTBH.js";import"./chunk-WXQVX7WD.js";import"./chunk-OWZ5YAMH.js";import"./chunk-KXX3UDJ3.js";import"./chunk-PDYJ5OYY.js";import"./chunk-GQAU5ACB.js";import{Bb as l,Ec as s,Gc as O,Ib as v,Jc as w,Lc as x,Mb as C,Nb as y,Rc as L,Te as z,Xc as D,_c as M,af as I,fc as S,fd as h,gc as b,gd as F,hc as r,hd as E,ic as p,jc as u,kc as c,kd as m,r as _,sb as o,tc as T,yd as P}from"./chunk-ISMRT7VU.js";import"./chunk-GMHSUEGX.js";import{h as f}from"./chunk-M5TX2NVG.js";var U=[{caption:"\u0418\u0418\u041D/\u0411\u0418\u041D",dataField:"xin",showDashIfEmpty:!0,width:"150px",minWidth:150},{caption:"\u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F",dataField:"name",minWidth:130},{caption:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446",dataField:"owner",width:"20%",minWidth:130},{caption:"\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430",dataField:"phone",showDashIfEmpty:!0,width:"180px",minWidth:180,isCustom:!0},{caption:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u044F",dataField:"hasLicense",width:"120px",minWidth:120,isCustom:!0,alignment:"center"},{caption:"\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u043F\u0440\u043E\u0434\u0430\u0436 \u0437\u0430 7 \u0434\u043D\u0435\u0439",dataField:"salesActivity",minWidth:200,width:"200px",isCustom:!0}];var X=()=>({filtering:!0,paging:!0}),q=(e,i,t)=>({phone:e,hasLicense:i,salesActivity:t}),H=(e,i)=>i.date;function J(e,i){if(e&1&&(w(0),h(1,"phoneFormat")),e&2){let t=i.$implicit;x(" ",F(1,1,t.phone),`
`)}}function K(e,i){if(e&1&&(p(0,"div",7),c(1,"wk-badge",8),u()),e&2){let t=i.$implicit;o(),r("text",t.hasLicense?"\u0414\u0430":"\u041D\u0435\u0442")("variant",t.hasLicense?"success":"error")}}function Q(e,i){if(e&1&&(c(0,"span",10,4),L(2),h(3,"date"),c(4,"wk-tooltip",11)),e&2){let t=i.$implicit,n=s(1);O("activity__dot--active",t.hasSales);let a=E(3,4,t.date,"dd.MM.yyyy");o(4),r("for",n)("content",a)}}function Y(e,i){if(e&1&&(p(0,"div",9),S(1,Q,5,7,null,null,H),u()),e&2){let t=i.$implicit;o(),b(t.salesActivity)}}var Z=(()=>{class e extends ${constructor(t,n,a){super(n,a),this._serviceCenterClientsService=t,this.columns=U}getLoadMethod(){return _({data:[],count:0})}onLoad(t){return f(this,null,function*(){return this.loadDataViewData(t,n=>this._serviceCenterClientsService.getAllDataView(n),{searchText:this.searchValue,defaultSort:{field:"id",desc:!0},defaultTake:10})})}static{this.\u0275fac=function(n){return new(n||e)(l(V),l(P),l(B))}}static{this.\u0275cmp=v({type:e,selectors:[["tis-sc-organization-list"]],features:[C],decls:10,vars:18,consts:[["table",""],["phoneTmpl",""],["hasLicenseTmpl",""],["salesActivityTmpl",""],["dotRef",""],["title","\u041E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438",1,"header",3,"showBackButton"],["searchPlaceholder","\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u044E, \u043D\u043E\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443 \u0438\u043B\u0438 \u0418\u0418\u041D/\u0411\u0418\u041D",3,"changedSearch","allowColumnResizing","data","columns","enablePagination","hoverable","pageNavigation","enableToolbar","enableFilters","enableSpinner","enableSearch","remoteOperations","customTemplates"],[1,"status-badge"],["stylingMode","outlined","size","small",3,"text","variant"],[1,"activity"],[1,"activity__dot"],["position","top",3,"for","content"]],template:function(n,a){if(n&1&&(c(0,"tis-subheader",5),p(1,"tis-main-layout")(2,"tis-table",6,0),T("changedSearch",function(d){return a.changedSearch(d)}),u()(),y(4,J,2,3,"ng-template",null,1,m)(6,K,2,2,"ng-template",null,2,m)(8,Y,3,0,"ng-template",null,3,m)),n&2){let g=s(5),d=s(7),G=s(9);r("showBackButton",!1),o(2),r("allowColumnResizing",!0)("data",a.dataSource)("columns",a.columns)("enablePagination",!0)("hoverable",!0)("pageNavigation",!0)("enableToolbar",!0)("enableFilters",!1)("enableSpinner",!0)("enableSearch",!0)("remoteOperations",D(13,X))("customTemplates",M(14,q,g,d,G))}},dependencies:[I,W,k,N,R,A,z,j],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100%}.header[_ngcontent-%COMP%]{top:0;position:sticky;z-index:10}.status-badge[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center}.activity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.activity[_ngcontent-%COMP%]   .activity__dot[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:50%;background-color:var(--color-semantic-red-100)}.activity[_ngcontent-%COMP%]   .activity__dot--active[_ngcontent-%COMP%]{background-color:var(--color-semantic-green-100)}
/*# sourceMappingURL=organization-list.component-6OXM665Z.css.map */`],changeDetection:0})}}return e})();var _e=[{path:"",component:Z,pathMatch:"full"},{path:"**",redirectTo:""}];export{_e as routes};
//# sourceMappingURL=organizations.routes-VAXRP77S.js.map
