import{a as J}from"./chunk-XTPH5BDL.js";import{a as H}from"./chunk-ELNHEHXE.js";import{c as q}from"./chunk-PAFQ4MHK.js";import{a as X}from"./chunk-WJQYXGPC.js";import{a as Z}from"./chunk-P7KQ7LX4.js";import"./chunk-UQ5SBR3X.js";import{a as G}from"./chunk-QYMDN3S2.js";import"./chunk-SMAIR2YP.js";import"./chunk-JAY45DEO.js";import"./chunk-LINAD4CC.js";import"./chunk-FZR6ITPM.js";import"./chunk-BNNGG6ED.js";import{Ka as U,oa as $,ya as j}from"./chunk-CQ74FR7E.js";import{a as W}from"./chunk-KXDO3JYP.js";import"./chunk-LUCOJAXQ.js";import"./chunk-FWAWZDGH.js";import"./chunk-RTKDH4JU.js";import"./chunk-IFY4UZPR.js";import"./chunk-UU4K5RCK.js";import"./chunk-JBWPPKX4.js";import"./chunk-7N232KV6.js";import"./chunk-PDYJ5OYY.js";import"./chunk-NDLDFKR2.js";import{$b as x,$c as f,Ac as F,Cb as w,Dc as E,Fc as P,Gb as T,Hb as O,Lc as z,Le as N,Rc as I,Uc as A,Ue as V,ac as D,ad as R,bc as c,bd as B,cc as u,dc as m,ec as s,ed as d,k as y,kb as r,lc as L,nc as M,sd as k,ta as S,ua as b,vb as p,yc as l}from"./chunk-PVUKHE45.js";import"./chunk-AKP2VPKK.js";import"./chunk-GVXHDKBW.js";import{d as v,n as Q}from"./chunk-VD6R3735.js";import{j as C}from"./chunk-MZPAXKJS.js";Q();var K=[{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 Y=()=>({filtering:!0,paging:!0}),ee=(i,t,e)=>({phone:i,hasLicense:t,salesActivity:e}),te=(i,t)=>t.date;function ie(i,t){if(i&1&&(E(0),f(1,"phoneFormat")),i&2){let e=t.$implicit;P(" ",R(1,1,e.phone),`
`)}}function ne(i,t){if(i&1&&(u(0,"div",7),s(1,"wk-badge",8),m()),i&2){let e=t.$implicit;r(),c("text",e.hasLicense?"\u0414\u0430":"\u041D\u0435\u0442")("variant",e.hasLicense?"success":"error")}}function oe(i,t){if(i&1&&(s(0,"span",10,4),z(2),f(3,"date"),s(4,"wk-tooltip",11)),i&2){let e=t.$implicit,o=l(1);F("activity__dot--active",e.hasSales);let a=B(3,4,e.date,"dd.MM.yyyy");r(4),c("for",o)("content",a)}}function ae(i,t){if(i&1&&(u(0,"div",9),x(1,oe,5,7,null,null,te),m()),i&2){let e=t.$implicit;r(),D(e.salesActivity)}}var n,h=(n=class extends q{constructor(t,e,o){super(e,o),this._serviceCenterClientsService=t,this.columns=K}getLoadMethod(){return y({data:[],count:0})}onLoad(t){return C(this,null,function*(){return this.loadDataViewData(t,e=>this._serviceCenterClientsService.getAllDataView(e),{searchText:this.searchValue,defaultSort:{field:"id",desc:!0},defaultTake:10})})}},n.\u0275fac=function(e){return new(e||n)(p(J),p(k),p(U))},n.\u0275cmp=w({type:n,selectors:[["tis-sc-organization-list"]],features:[T],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(e,o){if(e&1){let a=L();s(0,"tis-subheader",5),u(1,"tis-main-layout")(2,"tis-table",6,0),M("changedSearch",function(g){return S(a),b(o.changedSearch(g))}),m()(),O(4,ie,2,3,"ng-template",null,1,d)(6,ne,2,2,"ng-template",null,2,d)(8,ae,3,0,"ng-template",null,3,d)}if(e&2){let a=l(5),_=l(7),g=l(9);c("showBackButton",!1),r(2),c("allowColumnResizing",!0)("data",o.dataSource)("columns",o.columns)("enablePagination",!0)("hoverable",!0)("pageNavigation",!0)("enableToolbar",!0)("enableFilters",!1)("enableSpinner",!0)("enableSearch",!0)("remoteOperations",I(13,Y))("customTemplates",A(14,ee,a,_,g))}},dependencies:[V,X,Z,G,j,$,N,H],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}),n);h=v([W()],h);var Oe=[{path:"",component:h,pathMatch:"full"},{path:"**",redirectTo:""}];export{Oe as routes};
//# sourceMappingURL=organizations.routes-PTXO7TJA.js.map
