PageSourceSearch

https://connect.ma.direct/1257.46826ca4fee85fee.js

js ma.direct collected 2026-10-02 01:01:59 UTC 4,595 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksaas_web=self.webpackChunksaas_web||[]).push([[1257],{95718(W,m,t){t.d(m,{i:()=>T});var c=t(49769),E=t(17705),h=t(47266),u=t(89079),l=t(89417),P=t(70152),O=t(23294),M=t(99172),f=t(25558),g=t(62900),s=t(36824),R=t(14247),C=t(68268),e=t(36089);const r=(i,p)=>({$implicit:i,item:p});function F(i,p){if(1&i&&(e.j41(0,"s-input",0),e.qAN(),e.k0s()),2&i){const n=e.XpG();e.Y8G("formControl",n.search),e.QXe()}}function _(i,p){1&i&&e.eu8(0)}function d(i,p){if(1&i){const n=e.RV6();e.j41(0,"s-dropdown-item-checkbox",2),e.bIt("valueChange",function(D){const v=h.eBV(n).$implicit,B=e.XpG(2);return h.Njj(B.$select(v,D))}),e.j41(1,"div",3),e.DNE(2,_,1,0,"ng-container",4),e.k0s()()}if(2&i){const n=p.$implicit,a=e.XpG(2);e.Y8G("checked",a.$isSelected(n))("title",a.tooltipFunc()(n)),e.R7$(2),e.Y8G("ngTemplateOutlet",a.itemTemplate)("ngTemplateOutletContext",e.l_i(4,r,n,n))}}function o(i,p){1&i&&e.Z7z(0,d,3,7,"s-dropdown-item-checkbox",1,e.fX1),2&i&&e.Dyx(p)}let T=(()=>{class i{constructor(){this.selectionChange=(0,E.CGW)(),this.tooltipFunc=(0,E.hFB)(()=>""),this.itemValueKey="id",this.searchEnabled=!0,this.destroyRef=(0,h.WQX)(h.abz),this.controller=(0,h.WQX)(g.M),this.selectionService=(0,h.WQX)(C.A),this.search=new l.hs,this.items$=this.search.valueChanges.pipe((0,P.B)(300),(0,O.F)(),(0,M.Z)(""),(0,f.n)(n=>this.endpoint(n)))}ngOnInit(){this.controller.reset$.pipe((0,u.pQ)(this.destroyRef)).subscribe(()=>{this.search.reset()}),this.selectionService.selection$.pipe((0,u.pQ)(this.destroyRef)).subscribe(a=>{this.selectionChange.emit([...a])});let n=this.selected||"";Array.isArray(n)||(n=n.includes("|")?n.split("|"):n.includes(",")?n.split(","):[n]),n=n.filter(a=>""!==a),this.selectionService.init(n)}$select(n,a){return this.selectionService.set(`${n[this.itemValueKey]}`,a)}$isSelected(n){return this.selectionService.has(`${n[this.itemValueKey]}`)}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["s-data-table-filter-search"]],inputs:{tooltipFunc:[1,"tooltipFunc"],selected:"selected",endpoint:"endpoint",itemTemplate:"itemTemplate",itemValueKey:"itemValueKey",searchEnabled:"searchEnabled"},outputs:{selectionChange:"selectionChange"},decls:3,vars:4,consts:[["placeholder","\u041f\u043e\u0438\u0441\u043a",1,"mb-1",3,"formControl"],[3,"checked","title"],[3,"valueChange","checked","title"],[1,"column"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,D){if(1&a&&(e.nVh(0,F,1,1,"s-input",0),e.nVh(1,o,2,0),e.nI1(2,"async")),2&a){let v;e.vxM(D.searchEnabled?0:-1),e.R7$(),e.vxM((v=e.bMT(2,2,D.items$))?1:-1,v)}},dependencies:[R.S,l.YN,l.BC,l.X1,l.l_,s.f,c.T3,c.Jj],encapsulation:2})}}return i})()},21257(W,m,t){t.r(m),t.d(m,{ProjectScheduleTableFilterReservationComponent:()=>C});var c=t(47266),E=t(96354),h=t(95718),u=t(66986),l=t(36754),P=t(53691),O=t(62580),M=t(39900),f=t(32623),g=t(55268),s=t(36089);function R(r,F){if(1&r&&(s.j41(0,"div",2)(1,"s-id",3),s.EFF(2),s.nI1(3,"name"),s.k0s()()),2&r){const _=F.item;s.R7$(),s.Y8G("id",_.user.id),s.R7$(),s.SpI(" ",s.bMT(3,2,_)," ")}}let C=(()=>{class r{constructor(){this.filter={},this.companyId=(0,c.WQX)(M.Bl).companyId,this.usersService=(0,c.WQX)(f.gs),this.headerFilterComponent=(0,c.WQX)(u.d),this.namePipe=(0,c.WQX)(l.O),this.project=(0,c.WQX)(g.S).project,this.tooltip=_=>`${this.namePipe.transform(_)}`,this.getUsers=_=>this.usersService.getPage({query:(0,P.ef)({search:_,is_mobile_service:!0,company:this.companyId,has_reports_in_project:this.project()}),page:0,size:50}).pipe((0,E.T)(({content:d})=>d.map(o=>(o.id=o.user.id,o)))),this.headerFilterComponent.getFilter=()=>this.getFilter()}$selectionChange(_){this.filter.reservations__user__in=_}getFilter(){return{reservations__user__in:this.filter.reservations__user__in.filter(Boolean).join(",")}}static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275cmp=s.VBU({type:r,selectors:[["s-project-schedule-table-filter-reservation"]],inputs:{filter:"filter"},features:[s.Jv_([l.O])],decls:3,vars:4,consts:[["itemTemplate",""],[3,"selectionChange","endpoint","itemTemplate","selected","tooltipFunc"],[1,"text-overflow-ellipsis","w-100"],[3,"id"]],template:function(d,o){if(1&d&&(s.j41(0,"s-data-table-filter-search",1),s.bIt("selectionChange",function(i){return o.$selectionChange(i)}),s.k0s(),s.DNE(1,R,4,4,"ng-template",null,0,s.C5r)),2&d){const T=s.sdS(2);s.Y8G("endpoint",o.getUsers)("itemTemplate",T)("selected",o.filter.reservations__user__in)("tooltipFunc",o.tooltip)}},dependencies:[h.i,O.R,l.O],encapsulation:2})}}return r})();t.d(m,["default",0,C])}}]);

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.