1"use strict";(self.webpackChunkportal_meu_rh=self.webpackChunkportal_meu_rh||[]).push([[228],{1228:(Ie,$,g)=>{g.d($,{G:()=>B});var l=g(23279),T=g(56610),y=g(19364),R=g(73308),n=g(61288),x=g(86731);function k(e,M){if(1&e){const C=l.RV6();l.j41(0,"div")(1,"span",8,1),l.bIt("click",function(){l.eBV(C);const w=l.sdS(4);return l.Njj(w.toggle())}),l.k0s(),l.nrm(3,"po-popup",9,2),l.k0s()}if(2&e){const C=l.sdS(2),_=l.XpG();l.R7$(3),l.Y8G("p-actions",_.popupActions)("p-target",C)}}function P(e,M){if(1&e&&(l.j41(0,"span",11)(1,"div",12),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.nrm(4,"po-tag",13),l.nI1(5,"translate"),l.k0s()),2&e){const C=l.XpG().$implicit,_=l.XpG();l.Y8G("ngClass",_.getClass(C)),l.R7$(2),l.JRh(l.bMT(3,4,C.label)),l.R7$(2),l.Y8G("p-value",l.bMT(5,6,_.translateStatus(C.value)))("p-type",_.getStatusTag(C.value))}}function L(e,M){if(1&e&&(l.j41(0,"span",11)(1,"div",12),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"div",14),l.EFF(5),l.k0s()()),2&e){const C=l.XpG().$implicit,_=l.XpG();l.Y8G("ngClass",_.getClass(C)),l.R7$(2),l.JRh(l.bMT(3,3,C.label)),l.R7$(3),l.JRh(C.value)}}function S(e,M){if(1&e&&(l.j41(0,"div"),l.DNE(1,P,6,8,"span",10)(2,L,6,5,"span",10),l.k0s()),2&e){const C=M.$implicit;l.R7$(),l.Y8G("ngIf","status"===C.type),l.R7$(),l.Y8G("ngIf","status"!==C.type)}}let O=(()=>{var e;class M{constructor(_){this.appTranslateService=_,this.popupActions=[],this.removeTextKey="",this.removeInternalCardEvent=new l.bkB}ngOnInit(){this.initializeComponent()}getClass(_){return _.class}openModal(){this.modal.open()}deleteCard(){this.modal.close(),this.removeInternalCardEvent.emit(this.card.cardId)}initializeComponent(){var _=this;return(0,R.A)(function*(){yield _.initializePopupAction(),yield _.initializeModalAction()})()}initializePopupAction(){var _=this;return(0,R.A)(function*(){_.popupActions=[{label:yield _.appTranslateService.getI18n("l-remove"),type:"default",action:_.openModal.bind(_)}]})()}initializeModalAction(){var _=this;return(0,R.A)(function*(){_.cancelAction={action:()=>{_.modal.close()},label:yield _.appTranslateService.getI18n("l-cancel"),danger:!0},_.confirmAction={action:()=>{_.deleteCard()},label:yield _.appTranslateService.getI18n("l-yes")}})()}translateStatus(_){switch(_){case"approving":case"pending":return"l-approving";case"reproved":return"l-status-reproved";case"approved":return"l-status-approved"}return""}getStatusTag(_){switch(_){case"approving":case"pending":return"warning";case"reproved":return"danger";case"approved":return"success"}return""}}return(e=M).\u0275fac=function(_){return new(_||e)(l.rXU(n.F))},e.\u0275cmp=l.VBU({type:e,selectors:[["app-card-requested"]],viewQuery:function(_,w){if(1&_&&l.GBs(y.I3z,7),2&_){let E;l.mGM(E=l.lsd())&&(w.modal=E.first)}},inputs:{card:"card",removeTextKey:"removeTextKey"},outputs:{removeInternalCardEvent:"removeInternalCardEvent"},standalone:!1,decls:11,vars:10,consts:[["modal",""],["target",""],["popup",""],[1,"title-label","po-sm-11","po-md-11","po-lg-11","po-xl-11"],[4,"ngIf"],[4,"ngFor","ngForOf"],["p-size","sm","p-hide-close","true",3,"p-primary-action","p-secondary-action"],[1,"po-sm-11","po-md-11","po-lg-11","po-xl-11"],[1,"po-clickable","an","an-dots-three","dropdown","see-more",3,"click"],[3,"p-actions","p-target"],["class","po-mt-sm-1 po-mt-md-1 panel-item-group",3,"ngClass",4,"ngIf"],[1,"po-mt-sm-1","po-mt-md-1","panel-item-group",3,"ngClass"],[1,"requested-label"],[3,"p-value","p-type"],[1,"requested-value"]],template:function(_,w){1&_&&(l.j41(0,"div")(1,"h2",3),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.DNE(4,k,5,2,"div",4),l.k0s(),l.DNE(5,S,3,2,"div",5),l.j41(6,"po-modal",6,0)(8,"div",7),l.EFF(9),l.nI1(10,"translate"),l.k0s()()),2&_&&(l.R7$(2),l.JRh(l.bMT(3,6,w.card.cardLabel)),l.R7$(2),l.Y8G("ngIf",w.card.canAlter),l.R7$(),l.Y8G("ngForOf",w.card.cardItems),l.R7$(),l.Y8G("p-primary-action",w.confirmAction)("p-secondary-action",w.cancelAction),l.R7$(3),l.SpI(" ",l.bMT(10,8,w.removeTextKey)," "))},dependencies:[T.YU,T.Sq,T.bT,y.RZu,y.I3z,y.ff3,x.D9],styles:[".title-label[_ngcontent-%COMP%]{color:#000;margin-top:0;padding-left:8px;font-size:18px;font-weight:700}.requested-label[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:700}.requested-value[_ngcontent-%COMP%]{color:#000;font-weight:400;font-size:14px}.dropdown[_ngcontent-%COMP%]{float:right;z-index:2000}.see-more[_ngcontent-%COMP%]{color:#045b8f;font-size:20px}"]}),M})();function j(e,M){if(1&e){const C=l.RV6();l.j41(0,"po-container",1)(1,"app-card-requested",2),l.bIt("removeInternalCardEvent",function(w){l.eBV(C);const E=l.XpG();
1return l.Njj(E.deleteCard(w))}),l.k0s()()}if(2&e){const C=M.$implicit,_=M.index,w=l.XpG();l.Y8G("ngClass",w.getCardClass(_)),l.R7$(),l.Y8G("card",C)("removeTextKey",w.removeTextModal)}}let B=(()=>{var e;class M{constructor(){this.removeTextModal="",this.removeCardEvent=new l.bkB}getCardClass(_){return 0===_?"po-xl-12 po-lg-12 po-md-12 po-sm-12":"po-mt-1 po-xl-12 po-lg-12 po-md-12 po-sm-12"}deleteCard(_){this.removeCardEvent.emit(_)}}return(e=M).\u0275fac=function(_){return new(_||e)},e.\u0275cmp=l.VBU({type:e,selectors:[["app-card-requested-list"]],inputs:{cards:"cards",removeTextModal:"removeTextModal"},outputs:{removeCardEvent:"removeCardEvent"},standalone:!1,decls:1,vars:1,consts:[[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["card-header","",3,"removeInternalCardEvent","card","removeTextKey"]],template:function(_,w){1&_&&l.DNE(0,j,2,3,"po-container",0),2&_&&l.Y8G("ngForOf",w.cards)},dependencies:[T.YU,T.Sq,y.qzL,O],encapsulation:2}),M})()},21228:(Ie,$,g)=>{g.r($),g.d($,{OnCallRoutingModule:()=>Ce});var l=g(60564),T=g(12414),y=g(73308),R=g(45312),n=g(33772),x=g(2268),k=g(19277),P=g(39299),L=g(93135),S=g(52840),O=g(25683),j=g(28116),B=g(31806),e=g(23279),M=g(61288),C=g(56610),_=g(19364),w=g(14439),E=g(73123),Re=g(1228),z=g(86731),Se=g(63686);const Te=(d,v)=>({init:d,end:v}),ke=(d,v)=>({initHour:d,endHour:v});function Ee(d,v){if(1&d&&e.nrm(0,"app-card-employee",10),2&d){const s=e.XpG();e.Y8G("image",null==s.employeeCard?null:s.employeeCard.image)("name",null==s.employeeCard.employee?null:s.employeeCard.employee.name)("role",null==s.employeeCard.employee?null:s.employeeCard.employee.roleDescription)("status",null==s.employeeCard.employee?null:s.employeeCard.employee.employeeStatus)}}function te(d,v){if(1&d){const s=e.RV6();e.j41(0,"po-button",11),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.goToRequestOnCall())}),e.k0s()}2&d&&e.FS9("p-label",e.bMT(1,1,"l-on-call-request"))}function ie(d,v){if(1&d&&(e.j41(0,"div",20)(1,"span",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",21),e.EFF(5),e.k0s()()),2&d){const s=e.XpG().$implicit,t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"l-days-to-consider-visualize")),e.R7$(3),e.SpI(" ",t.getConsiderDaysLabel(s.id)," ")}}function Ae(d,v){if(1&d&&(e.j41(0,"div",17)(1,"span",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",19),e.EFF(5),e.k0s()()),2&d){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-collaborator")),e.R7$(3),e.JRh(s.requesterName)}}function Oe(d,v){if(1&d&&(e.j41(0,"div",17)(1,"span",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",19),e.EFF(5),e.k0s()()),2&d){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-requisition-responsible")),e.R7$(3),e.JRh(s.responsibleName)}}function ne(d,v){if(1&d&&(e.j41(0,"div",17)(1,"span",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",19),e.EFF(5),e.k0s()()),2&d){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-on-call-justify-label")),e.R7$(3),e.JRh(s.justification)}}function oe(d,v){if(1&d&&(e.j41(0,"div",17)(1,"span",18),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",19),e.EFF(5),e.k0s()()),2&d){const s=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-on-call-reprove-justify-label")),e.R7$(3),e.JRh(s.reproveJustification)}}function De(d,v){if(1&d&&(e.j41(0,"po-accordion-item",16),e.nI1(1,"utcDate"),e.nI1(2,"utcDate"),e.nI1(3,"translate"),e.nI1(4,"translate"),e.nI1(5,"translate"),e.j41(6,"div",17)(7,"span",18),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"span",19),e.EFF(11),e.nI1(12,"utcDate"),e.k0s()(),e.j41(13,"div",17)(14,"span",18),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"span",19),e.EFF(18),e.nI1(19,"utcDate"),e.k0s()(),e.j41(20,"div",17)(21,"span",18),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"span",19),e.EFF(25),e.k0s()(),e.j41(26,"div",17)(27,"span",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"span",19),e.EFF(31),e.k0s()(),e.j41(32,"div",20)(33,"span",18),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"span",21),e.EFF(37),e.k0s()(),e.DNE(38,ie,6,4,"div",22)(39,Ae,6,4,"div",23)(40,Oe,6,4,"div",23)(41,ne,6,4,"div",23)(42,oe,6,4,"div",23),e.j41(43,"div",17)(44,"span",18),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.nrm(47,"po-tag",24),e.nI1(48,"translate"),e.k0s()()),2&d){const s=v.$implicit,t=e.XpG(2);e.Y8G("p-label",e.i5U(3,27,"l-init-period-to-end-period",e.l_i(55,Te,e.i5U(1,21,s.initDate,"dd/MM/yyyy"),e.i5U(2,24,s.endDate,"dd/MM/yyyy")))+" - "+e.i5U(4,30,"l-on-call-title",e.l_i(58,ke,t.getHoursByMilliseconds(6e4*s.initHour),t.getHoursByMilliseconds(6e4*s.endHour))))("p-label-tag",e.bMT(5,33,t.translateStatus(s.status)))("p-type-tag",t.getStatusTag(s.status)),e.R7$(8),e.JRh(e.bMT(9,35,"l-initial-date")),e.R7$(3),e.JRh(e.i5U(12,37,s.initDate,"dd/MM/yyyy")),e.R7$(4),e.JRh(e.bMT(16,40,"l-end-date")),e.R7$(3),e.JRh(e.i5U(19,42,s.endDate,"dd/MM/yyyy")),e.R7$(4),e.JRh(e.bMT(23,45,"l-initial-hour")),e.R7$(3),e.JRh(t.getHoursByMilliseconds(6e4*s.initHour)),e.R7$(3),e.JRh(e.bMT(29,47,"l-final-hour")),e.R7$(3),e.JRh(t.getHoursByMilliseconds(6e4*s.endHour)),e.R7$(3),e.JRh(e.bMT(35,49,"l-recurrence")),e.R7$(3),e.SpI(" ",t.getRecurrenceLabel(s.id)," "),e.R7$(),e.Y8G("ngIf",s.considerDays),e.R7$(),e.Y8G("ngIf",s.requesterName),e.R7$(),e.Y8G("ngIf",s.responsibleName),e.R7$(),e.Y8G("ngIf",s.justification),e.R7$(),e.Y8G("ngIf",!t.isApproved(s.status)),e.R7$(3),e.JRh(e.bMT(46,51,"l-status")),e.R7$(2),e.Y8G("p-value",e.bMT(48,53,t.translateStatus(s.status)))("p-type",t.getStatusTag(s.status))}}function Pe(d,v){if(1&d){const s=e.RV6();e.j41(0,"po-button",25),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG(2);return e.Njj(o.viewMoreHistory())}),e.k0s()}2&d&&e.FS9("p-label",e.bMT(1,1,"l-load-more"))}
1function Le(d,v){if(1&d&&(e.j41(0,"div",2)(1,"h2",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"po-accordion",13),e.DNE(5,De,49,61,"po-accordion-item",14),e.k0s(),e.j41(6,"div",1),e.DNE(7,Pe,2,3,"po-button",15),e.k0s()()),2&d){const s=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,3,"l-past-request")," "),e.R7$(3),e.Y8G("ngForOf",null==s.onCallHistoryView?null:s.onCallHistoryView.records),e.R7$(2),e.Y8G("ngIf",null==s.onCallHistoryView?null:s.onCallHistoryView.hasMoreRecords)}}function ae(d,v){1&d&&(e.j41(0,"div",26),e.nrm(1,"img",27),e.j41(2,"div",28)(3,"p",29),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()),2&d&&(e.R7$(4),e.JRh(e.bMT(5,1,"l-oncall-empty")))}let je=(()=>{var d;class v extends k.U{constructor(t,o,r,h,f,F){super(),this.translateService=t,this.router=o,this.permissionSelector=r,this.onCallService=h,this.recurrenceService=f,this.teamManagementService=F,this.pendingPage=1,this.pendingPageSize=10,this.cards=[],this.hasOnCallHistory=!1,this.viewIsTeamManagement=!1,this.loggedUser=R.c.loggedUser,this.employeeId=R.c.loggedUser,this.onCallPending=[],this.daysToConsider=[],this.employeeCard={employee:void 0,image:void 0,originComponent:""},this.labels=[]}ngOnDestroy(){this.routeSubsctiption&&this.routeSubsctiption.unsubscribe(),this.permissionsSubscription&&this.permissionsSubscription.unsubscribe()}ngOnInit(){this.initialize()}goToRequestOnCall(){this.router.navigate(this.employeeData?["teamManagement/timesheet/onCall/request",{employeeId:B.Ay.checkIfEncode(this.employeeData.id)}]:["timesheet/onCall/request"])}getPermissions(){this.permissionsSubscription=this.permissionSelector.permissions$.subscribe(t=>{this.permissions=t,this.requestOnCallIsVisible=void 0!==this.permissions.onCallRequest&&this.permissions.onCallRequest,this.viewIsTeamManagement&&(this.requestOnCallIsVisible=void 0!==this.permissions.teamManagementOnCallRequest&&this.permissions.teamManagementOnCallRequest)})}getHoursByMilliseconds(t){return x.rL.getHoursByMilliseconds(t)}getHoursMinutes(t){const o=x.rL.getHours(t),r=x.rL.getMinutes(t);return"".concat(o,"h").concat(r)}getStatus(t){var o=this;return(0,y.A)(function*(){let r=t;return o.isPending(t)&&(r="on-call-approving"),yield o.translateService.getI18n("l-"+r)})()}getRecurrence(t,o){var r=this;return(0,y.A)(function*(){return r.recurrenceService.getRecurrence(t,o)})()}getRecurrenceLabel(t){var o;return null===(o=this.labels.find(r=>r.id===t))||void 0===o?void 0:o.recurrenceLabel}getStatusLabel(t){var o;return null===(o=this.labels.find(r=>r.id===t))||void 0===o?void 0:o.statusLabel}getConsiderDaysLabel(t){var o;return null===(o=this.labels.find(r=>r.id===t))||void 0===o?void 0:o.considerDays}isPending(t){return t===n.qO.StatusEnum.Pending}isApproved(t){return t!==n.qO.StatusEnum.Reproved}getOncallStatus(t){switch(t){case n.qO.StatusEnum.Approved:return"status-approved";case n.qO.StatusEnum.Reproved:return"status-reproved";case n.qO.StatusEnum.PartiallyExcluded:return"status-partially-excluded";default:return"status-pending"}}viewMoreHistory(){this.getOnCallHistory(this.onCallHistoryView.getNextPage(),this.onCallHistoryView.pageSize)}onCallIsEmpty(){var t;return!this.hasOnCallHistory&&0===(null===(t=this.cards)||void 0===t?void 0:t.length)}getConsiderDays(t){var o=this;return(0,y.A)(function*(){if(!t)return"";o.daysToConsider=t.map(h=>h.label);for(var r=0;r<o.daysToConsider.length;r++)"planned"===o.daysToConsider[r]&&(o.daysToConsider[r]=yield o.translateService.getI18n("l-planned-time")),"compensated"===o.daysToConsider[r]&&(o.daysToConsider[r]=yield o.translateService.getI18n("l-compensated")),"resting"===o.daysToConsider[r]&&(o.daysToConsider[r]=yield o.translateService.getI18n("l-resting")),"holiday"===o.daysToConsider[r]&&(o.daysToConsider[r]=yield o.translateService.getI18n("l-holiday"));return o.daysToConsider.join(", ")})()}initialize(){var t=()=>super.ngOnInit,o=this;return(0,y.A)(function*(){var r;null!==(r=o.router.url)&&void 0!==r&&r.includes("teamManagement")||o.teamManagementService.cleanEmployeeCard(),o.employeeCard=o.teamManagementService.getEmployeeCard(),o.getEmployee(),o.getPermissions(),o.onCallHistoryView=new S.O([]),o.getOnCallHistory(o.onCallHistoryView.getNextPage(),o.onCallHistoryView.pageSize),yield o.getOnCallPending(),t().call(o)})()}getEmployee(){this.employeeCard&&this.employeeCard.employee&&(this.employeeId=this.employeeCard.employee.id,this.employeeData=this.employeeCard.employee,this.viewIsTeamManagement=!0)}getOnCallHistory(t,o){this.onCallService.getHistory(this.employeeId,t,o).then(r=>{this.updateOnCallHistoryView(r);let h=r.records.find(f=>f.status!==n.qO.StatusEnum.Pending);r.records.length>0&&h&&(this.hasOnCallHistory=!0)})}updateOnCallHistoryView(t){var o=this;return(0,y.A)(function*(){o.onCallHistoryView.records||(o.onCallHistoryView.records=[]);for(let r=0;r<t.records.length;r++){const h=t.records[r];o.isPending(h.status)||(o.labels.push({id:h.id,recurrenceLabel:yield o.getRecurrence(h.recurrence,h.initDate),statusLabel:yield o.getStatus(h.status),considerDays:yield o.getConsiderDays(h.considerDays)}),o.onCallHistoryView.records=o.onCallHistoryView.records.concat(h),o.onCallHistoryView.records.sort((f,F)=>f.initDate>F.initDate?-1:f.initDate<F.initDate?1:0))}o.onCallHistoryView.hasMoreRecords=t.hasMoreRecords})()}getOnCallPending(){var t=this;return(0,y.A)(function*(){const o=yield t.onCallService.getHistory(t.employeeId,t.pendingPage,t.pendingPageSize);o&&o.records.forEach(function(){var r=(0,y.A)(function*(h){t.isPending(h.status)&&t.cards.push({cardLabel:"l-on-call-requested",cardItems:[{label:"l-date",value:x.rL.momentFormat(h.initDate.toString().substr(0,10)),class:"po-sm-6 po-md-2 po-lg-2 po-xl-2"},{label:"l-end-date",value:x.rL.momentFormat(h.endDate.toString().substr(0,10)),class:"po-sm-6 po-md-2 po-lg-2 po-xl-2"},{label:"l-initial-hour",value:x.rL.getHoursByMilliseconds(6e4*h.initHour),class:"po-sm-6 po-md-2 po-lg-2 po-xl-2"},{label:"l-final-hour",value:x.rL.getHoursByMilliseconds(6e4*h.endHour),class:"po-sm-6 po-md-2 po-lg-2 po-xl-2"},{label:"l-recurrence",value:yield t.getRecurrence(h.recurrence,h.initDate),class:"po-sm-12 po-md-4 po-lg-4 po-xl-4"},{label:"l-status",value:h.status,class:"po-sm-12 po-md-4 po-lg-4 po-xl-4",type:"status"},{label:"l-days-to-consider-visualize",value:yield t.getConsiderDays(h.considerDays),class:"po-sm-12 po-md-8 po-lg-8 po-xl-8"}]})});return function(h){return r.apply(this,arguments)}}())})()}
1translateStatus(t){switch(t){case"pending":return"l-status-pending";case"reproved":return"l-status-reproved";case"deleted":return"l-status-deleted";case"canceled":return"l-status-cancelled";case"partiallyExcluded":return"l-partiallyExcluded";case"approved":return"l-status-approved"}return""}getStatusTag(t){switch(t){case"pending":return"warning";case"reproved":case"deleted":case"canceled":return"danger";case"partiallyExcluded":return"info";case"approved":return"success"}return""}}return(d=v).\u0275fac=function(t){return new(t||d)(e.rXU(M.F),e.rXU(l.Ix),e.rXU(L.AV),e.rXU(P.j),e.rXU(O.K),e.rXU(j.A))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-on-call"]],standalone:!1,features:[e.Vt3],decls:10,vars:5,consts:[[1,"on-call"],[1,"po-row"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12"],["backIsVisible","true","pageTitle","l-on-call"],[1,"po-pl-1","po-pr-1"],[3,"image","name","role","status",4,"ngIf"],["class","on-call-btn po-mb-2 po-sm-12 po-md-6 po-lg-3 po-xl-3 block","p-kind","primary",3,"p-label","p-click",4,"ngIf"],[3,"cards"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12",4,"ngIf"],["class","empty-center pt-xl-4 pt-lg-4",4,"ngIf"],[3,"image","name","role","status"],["p-kind","primary",1,"on-call-btn","po-mb-2","po-sm-12","po-md-6","po-lg-3","po-xl-3","block",3,"p-click","p-label"],[1,"title-label"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","no-padding"],[3,"p-label","p-label-tag","p-type-tag",4,"ngFor","ngForOf"],["class","next-records po-sm-12 po-md-12 po-lg-12 po-xl-12","p-kind","tertiary",3,"p-label","p-click",4,"ngIf"],[3,"p-label","p-label-tag","p-type-tag"],[1,"historic-content"],[1,"historic-label"],[1,"historic-value"],[1,"historic-content","ocurrence-line"],[1,"historic-value","ocurrence-value"],["class","historic-content ocurrence-line",4,"ngIf"],["class","historic-content",4,"ngIf"],[3,"p-value","p-type"],["p-kind","tertiary",1,"next-records","po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-click","p-label"],[1,"empty-center","pt-xl-4","pt-lg-4"],["src","assets/img/process-stoped.svg",1,"img-empty"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12"],[1,"label-empty"]],template:function(t,o){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"app-page-header",3),e.k0s()(),e.j41(4,"div",4),e.DNE(5,Ee,1,4,"app-card-employee",5),e.k0s(),e.DNE(6,te,2,3,"po-button",6),e.nrm(7,"app-card-requested-list",7),e.DNE(8,Le,8,5,"div",8)(9,ae,6,3,"div",9),e.k0s()),2&t&&(e.R7$(5),e.Y8G("ngIf",o.employeeCard.employee),e.R7$(),e.Y8G("ngIf",o.requestOnCallIsVisible),e.R7$(),e.Y8G("cards",o.cards),e.R7$(),e.Y8G("ngIf",o.hasOnCallHistory),e.R7$(),e.Y8G("ngIf",o.onCallIsEmpty()))},dependencies:[C.Sq,C.bT,_.FsT,_.yAk,_.rmE,_.RZu,w.K,E.y,Re.G,z.D9,Se.B],styles:[".title-label[_ngcontent-%COMP%]{color:#000;margin-top:16px;padding-left:8px;font-size:18px;font-weight:700}@media (max-width: 460px){.ocurrence-line[_ngcontent-%COMP%]{display:inline-block!important;width:100%}.ocurrence-value[_ngcontent-%COMP%]{padding-right:0;text-align:right;width:66.6%}}.label-empty[_ngcontent-%COMP%]{font-size:23px}.empty-center[_ngcontent-%COMP%]{text-align:center;margin-top:6%;margin-bottom:25%}@media only screen and (min-width: 320px) and (max-width: 768px){.empty-center[_ngcontent-%COMP%]{text-align:center;margin-top:30%;padding-bottom:25%;margin-bottom:57%!important}.label-empty[_ngcontent-%COMP%]{font-size:24px;margin-top:-6px}}.img-empty[_ngcontent-%COMP%]{width:100%;max-width:230px;padding-bottom:10px;margin-bottom:20px}@media only screen and (min-width: 481px) and (max-width: 960px){.img-empty[_ngcontent-%COMP%]{width:100%;max-width:365px;padding-bottom:10px;margin-bottom:20px}}.historic-content[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:10px;display:flex;align-items:center;justify-content:space-between}.historic-label[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:700}.historic-value[_ngcontent-%COMP%]{color:#000;font-weight:400;font-size:14px}[_nghost-%COMP%] .po-accordion-item-header-button-content{display:flex;align-items:center}[_nghost-%COMP%] .po-text-ellipsis.po-accordion-item-header-title{font-size:16px}[_nghost-%COMP%] .po-accordion-item-header-tag{margin-left:8px}[_nghost-%COMP%] .po-accordion-item-header{position:inherit}[_nghost-%COMP%] .po-accordion-item:is(:first-child){border:none}[_nghost-%COMP%] .next-records{margin-bottom:24px}@media (max-width: 480px){.on-call[_ngcontent-%COMP%]{margin-bottom:1040px}}.on-call-btn[_ngcontent-%COMP%]{padding:0;margin-bottom:10px;float:right}"]}),v})();var D=g(72242),N=g(3914),le=g(19278),re=g(91132);const ce=["modal"],$e=["*"];let Be=(()=>{var d;class v{constructor(t,o,r,h){this.router=t,this.activatedRoute=o,this.windowUtilService=r,this.globals=h,this.size="xl",this.clickOut=!1,this.hideClose=!1,this.modalOpenChange=new e.bkB}ngAfterViewInit(){this.originalModalClose=this.modal.close,this.modal.close=()=>{this.close(),this.originalModalClose.bind(this.modal)()},this.dealWithQueryParams()}ngOnDestroy(){this.queryParamsSubscription&&this.queryParamsSubscription.unsubscribe(),this.modal.close=this.originalModalClose}open(){this.changeUrl(!0)}close(){this.changeUrl(!1)}changeUrl(t){const o={modal:t?"true":null},r=window.location.href.split("?")[0].split(window.location.host+"/#/")[1];this.globals.urlHistory.length>1&&-1!==this.globals.urlHistory[this.globals.urlHistory.length-1].indexOf(r)&&-1!==this.globals.urlHistory[this.globals.urlHistory.length-2].indexOf(r)?(this.globals.urlHistory.pop(),this.windowUtilService.back()):this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:o,queryParamsHandling:"merge",replaceUrl:!t})}dealWithQueryParams(){this.queryParamsSubscription=this.activatedRoute.queryParams.subscribe(t=>{t.modal?(this.modal.open(),this.modalOpenChange.next(!0)):(this.modal.close(),this.modalOpenChange.next(!1))})}}return(d=v).\u0275fac=function(t){return new(t||d)(e.rXU(l.Ix),e.rXU(l.nX),e.rXU(re.i),e.rXU(le.R))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-modal-fullscreen-mobile"]],viewQuery:function(t,o){if(1&t&&e.GBs(ce,5),2&t){let r;e.mGM(r=e.lsd())&&(o.modal=r.first)}},inputs:{primaryAction:"primaryAction",secondaryAction:"secondaryAction",title:"title",mobilePageTitle:"mobilePageTitle",size:"size",clickOut:"clickOut",hideClose:"hideClose"},outputs:{modalOpenChange:"modalOpenChange"},standalone:!1,ngContentSelectors:$e,decls:7,vars:9,consts:[["modal",""],[1,"modal-fullscreen-mobile",3,"p-title","p-primary-action","p-secondary-action","p-size","p-click-out","p-hide-close"],[1,"modal-fullscreen-mobile-page-header",3,"backFunction","backIsVisible","pageTitle"],[1,"po-modal-header","fake-header"],[1,"po-modal-title","po-text-ellipsis"]],template:function(t,o){if(1&t){const r=e.RV6();e.NAR(),e.j41(0,"po-modal",1,0)(2,"app-page-header",2),e.bIt("backFunction",function(){return e.eBV(r),e.Njj(o.close())}),e.k0s(),e.j41(3,"div",3)(4,"div",4),e.EFF(5),e.k0s()(),e.SdG(6),e.k0s()}2&t&&(e.Y8G("p-title",o.title)("p-primary-action",o.primaryAction)("p-secondary-action",o.secondaryAction)("p-size",o.size)("p-click-out",o.clickOut)("p-hide-close",o.hideClose),e.R7$(2),e.Y8G("backIsVisible",!0)("pageTitle",o.mobilePageTitle),e.R7$(3),e.JRh(o.title))},dependencies:[_.I3z,E.y],styles:[".modal-fullscreen-mobile[_ngcontent-%COMP%] .fake-header, .modal-fullscreen-mobile[_ngcontent-%COMP%] .modal
1-fullscreen-mobile-page-header{display:none}@media (max-width: 960px){.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal{margin-top:48px;min-height:unset;z-index:100!important}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal, .modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay{height:calc(100% - 108px)}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-vertical-align{display:block;text-align:unset}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-vertical-align, .modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-content, .modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-body{height:100%}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .dialog-content{display:flex;height:100%;flex-direction:column}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-container{padding:0}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-body{margin-top:0;display:flex;flex-direction:column}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-content{width:100%;max-width:unset;box-shadow:unset}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay, .modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-content{background-color:#fbfbfb}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-header{display:none}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .po-modal-header .po-modal-title{text-overflow:unset;white-space:unset;padding-right:0}.modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .fake-header, .modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal .po-modal-overlay .modal-fullscreen-mobile-page-header{display:block}}"]}),v})();var Ge=g(42433),de=g(17197),He=g(333);let ze=(()=>{var d;class v{constructor(t){this.teamManagementService=t}getFilteredData(t){return(0,He.H)(this.teamManagementService.getEmployees(R.c.loggedUser,{name:t.value,page:1,pageSize:20}).then(r=>r.items.map(h=>({value:h.id,label:h.name}))))}getObjectByValue(t){console.error("M\xe9todo n\xe3o implementado")}}return(d=v).\u0275fac=function(t){return new(t||d)(e.KVO(j.A))},d.\u0275prov=e.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),v})();var Ne=g(76098),Ve=g(63993),qe=g(35823);const Ue=["modal"],Xe=["combo"];function Qe(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",11),e.nrm(1,"div",12)(2,"po-info",13),e.nI1(3,"translate"),e.nrm(4,"po-info",14),e.nI1(5,"translate"),e.nrm(6,"po-info",14),e.nI1(7,"translate"),e.nrm(8,"po-info",13),e.nI1(9,"translate"),e.j41(10,"div",15)(11,"span",16),e.bIt("click",function(){const o=e.eBV(s).$implicit,r=e.XpG();return e.Njj(r.removeEmployee(o.id))}),e.k0s()(),e.nrm(12,"hr",17),e.k0s()}if(2&d){const s=v.$implicit,t=e.XpG();e.R7$(),e.xc7("background-image",t.getAvatarImage(s.id)),e.R7$(),e.FS9("p-label",e.bMT(3,10,"l-colaborator")),e.Y8G("p-value",s.name),e.R7$(2),e.FS9("p-label",e.bMT(5,12,"l-role")),e.Y8G("p-value",s.roleDescription),e.R7$(2),e.FS9("p-label",e.bMT(7,14,"l-department")),e.Y8G("p-value",s.department),e.R7$(2),e.FS9("p-label",e.bMT(9,16,"l-employee-schedule")),e.Y8G("p-value",t.getEmployeeSchedule(s))}}function Ye(d,v){if(1&d){const s=e.RV6();e.j41(0,"app-expansion-card")(1,"div",18)(2,"div",19),e.nrm(3,"div",20),e.k0s(),e.j41(4,"div",21)(5,"div",22)(6,"strong"),e.EFF(7),e.nI1(8,"titleCase"),e.k0s()(),e.j41(9,"div",23),e.EFF(10),e.k0s()(),e.j41(11,"span",24),e.bIt("click",function(){const o=e.eBV(s).$implicit,r=e.XpG();return e.Njj(r.removeEmployee(o.id))}),e.k0s()(),e.j41(12,"div",25),e.nrm(13,"po-info",26),e.nI1(14,"translate"),e.nrm(15,"po-info",26),e.nI1(16,"translate"),e.k0s()()}if(2&d){const s=v.$implicit,t=e.XpG();e.R7$(3),e.xc7("background-image",t.getAvatarImage(s.id)),e.R7$(4),e.JRh(e.bMT(8,8,s.name)),e.R7$(3),e.JRh(s.roleDescription),e.R7$(3),e.FS9("p-label",e.bMT(14,10,"l-department")),e.Y8G("p-value",s.department),e.R7$(2),e.FS9("p-label",e.bMT(16,12,"l-employee-schedule")),e.Y8G("p-value",t.getEmployeeSchedule(s))}}function We(d,v){1&d&&(e.j41(0,"span",27),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&d&&(e.R7$(),e.JRh(e.bMT(2,1,"l-you-can-add-more-than-one-employee")))}function Je(d,v){1&d&&(e.j41(0,"div",28)(1,"h2",29),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"h4",30),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&d&&(e.R7$(2),e.JRh(e.bMT(3,2,"l-no-data-to-show")),e.R7$(3),e.JRh(e.bMT(6,4,"l-use-input-to-select-employee")))}function Ke(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",31)(1,"po-button",32),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.close())}),e.k0s(),e.j41(3,"po-button",33),e.nI1(4,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.save())}),e.k0s()()}2&d&&(e.R7$(),e.FS9("p-label",e.bMT(2,2,"l-cancel")),e.R7$(2),e.FS9("p-label",e.bMT(4,4,"advance")))}let se=(()=>{var d;class v extends k.U{constructor(t,o,r,h,f,F){super(),this.employeeComboFilter=t,this.translateService=o,this.profileService=r,this.sanitizationService=h,this.teamManagementService=f,this.router=F,this.modalPrimaryAction={action:()=>this.save(),label:"l-save"},this.modalSecondaryAction={action:()=>this.close(),label:"l-cancel",danger:!0},this.images={},this.employeesId=[],this.saveFunction=new e.bkB}ngOnInit(){var t=()=>super.ngOnInit,o=this;return(0,y.A)(function*(){t().call(o),o.modalPrimaryAction.label=yield o.translateService.getI18n(o.modalPrimaryAction.label),o.modalSecondaryAction.label=yield o.translateService.getI18n(o.modalSecondaryAction.label)})()}openModal(t){this.employeesId=t,this.modal.open()}modalOpenChange(t){var o=this;return(0,y.A)(function*(){if(t&&o.employeesId.length>0){let r="",h=1;
1o.employeesId.forEach(I=>{r+=h<o.employeesId.length?"".concat(I,"||"):I,h++});const f=new de.w(1,o.employeesId.length,void 0,void 0,void 0,void 0,r),F=yield o.teamManagementService.getEmployees(R.c.loggedUser,f);o.employees=F.items}else o.employees=[]})()}change(t){var o=this;return(0,y.A)(function*(){if(null!=t){let r=[];const h=new de.w(1,1,void 0,t.label,void 0,void 0,void 0),f=yield o.teamManagementService.getEmployees(R.c.loggedUser,h);null!=f&&f.items&&(r.push(f.items[0]),o.employees.map(F=>r.push(F)),o.employees=r,o.combo.clear(""))}})()}getAvatarImage(t){return this.images[t]||(this.images[t]=this.sanitizationService.bypassSecurityTrustStyle("url(./assets/img/empty_user.png)"),this.profileService.getImageBase64(t).then(o=>{o&&o.content&&(this.images[t]=this.sanitizationService.bypassSecurityTrustStyle("url(".concat("data:image/"+(o.type||"png")+";base64,"+o.content,")")))})),this.images[t]}getEmployeeSchedule(t){return"".concat(x.rL.getHoursByMilliseconds(t.initEmployeeSchedule)," - ").concat(x.rL.getHoursByMilliseconds(t.endEmployeeSchedule))}removeEmployee(t){let o=[];this.employees.forEach(r=>{r.id!==t&&o.push(r)}),this.employees=o}close(){this.modal.close()}save(){const t=this.employees.map(o=>o.id);this.saveFunction.emit(t)}}return(d=v).\u0275fac=function(t){return new(t||d)(e.rXU(ze),e.rXU(M.F),e.rXU(Ge.p),e.rXU(Ne.up),e.rXU(j.A),e.rXU(l.Ix))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-on-call-employee-card"]],viewQuery:function(t,o){if(1&t&&(e.GBs(Ue,5),e.GBs(Xe,5)),2&t){let r;e.mGM(r=e.lsd())&&(o.modal=r.first),e.mGM(r=e.lsd())&&(o.combo=r.first)}},outputs:{saveFunction:"saveFunction"},standalone:!1,features:[e.Vt3],decls:14,vars:17,consts:[["modal",""],["combo",""],["p-size","xl","p-click-out","false","p-hide-close","false",3,"modalOpenChange","title","primaryAction","secondaryAction","mobilePageTitle"],["dialog-content","",1,"dialog-content"],["p-clean","true","p-change-on-enter","true","p-disabled-init-filter","true","p-emit-object-value","true","p-filter-minlength","3","p-icon","an an-magnifying-glass","name","employeeCombo",1,"po-md-7","po-lg-7","po-xl-7","po-mb-3","po-mb-sm-1","po-mt-sm-4",3,"p-change","p-filter-service","p-label"],["class","po-md-12 po-xl-12 po-lg-12 po-hidden-xs po-hidden-sm po-hidden-md po-visible-lg-12 po-visible-xl-12",4,"ngFor","ngForOf"],[1,"panel-body","po-xs-12","po-hidden-lg","po-hidden-xl","po-visible-sm-12","po-visible-md-12"],[4,"ngFor","ngForOf"],["class","more-than-one-employee po-mt-4",4,"ngIf"],["class","no-employees",4,"ngIf"],["class","buttons po-pt-3",4,"ngIf"],[1,"po-md-12","po-xl-12","po-lg-12","po-hidden-xs","po-hidden-sm","po-hidden-md","po-visible-lg-12","po-visible-xl-12"],[1,"avatar-small","mouse-pointer","po-md-2","po-lg-2","po-xl-2","po-mr-1"],[1,"po-md-3","po-lg-3","po-xl-3",3,"p-label","p-value"],[1,"po-md-2","po-lg-2","po-xl-2",3,"p-label","p-value"],[2,"margin-top","3%"],[1,"an","an-trash","delete-button",3,"click"],[1,"po-row"],["card-header","",1,"mr-card-header","po-sm-12","po-md-12","po-lg-12","po-xl-12"],[1,"avatar-card"],[1,"avatar-small","avatar-align"],[1,"aboutEmployee"],[1,"name"],[1,"office"],[1,"delete","an","an-trash",3,"click"],["card-body","",1,"cardbody"],[1,"po-sm-6","po-md-6","no-padding",3,"p-label","p-value"],[1,"more-than-one-employee","po-mt-4"],[1,"no-employees"],[1,"title"],[1,"subtitle"],[1,"buttons","po-pt-3"],["p-kind","secondary",1,"po-sm-12","po-md-12",3,"p-click","p-label"],["p-kind","primary",1,"po-sm-12","po-md-12","po-mt-1",3,"p-click","p-label"]],template:function(t,o){if(1&t){const r=e.RV6();e.j41(0,"app-modal-fullscreen-mobile",2,0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("modalOpenChange",function(f){return e.eBV(r),e.Njj(o.modalOpenChange(f))}),e.j41(4,"div",3)(5,"po-combo",4,1),e.nI1(7,"translate"),e.bIt("p-change",function(f){return e.eBV(r),e.Njj(o.change(f))}),e.k0s(),e.DNE(8,Qe,13,18,"div",5),e.j41(9,"div",6),e.DNE(10,Ye,17,14,"app-expansion-card",7)(11,We,3,3,"span",8)(12,Je,7,6,"div",9)(13,Ke,5,6,"div",10),e.k0s()()()}2&t&&(e.FS9("title",e.bMT(2,11,"employees-receive-on-call")),e.FS9("mobilePageTitle",e.bMT(3,13,"l-request-on-call")),e.Y8G("primaryAction",o.modalPrimaryAction)("secondaryAction",o.modalSecondaryAction),e.R7$(5),e.FS9("p-label",e.bMT(7,15,"l-add-more-employee")),e.Y8G("p-filter-service",o.employeeComboFilter),e.R7$(3),e.Y8G("ngForOf",o.employees),e.R7$(2),e.Y8G("ngForOf",o.employees),e.R7$(),e.Y8G("ngIf",o.employees&&1===o.employees.length),e.R7$(),e.Y8G("ngIf",!o.employees||0===o.employees.length),e.R7$(),e.Y8G("ngIf",o.employees&&o.employees.length>0))},dependencies:[C.Sq,C.bT,_.rmE,_.rL8,_.Xa0,Ve.F,Be,z.D9,qe.P],styles:[".delete-button[_ngcontent-%COMP%]{color:#be3e37;font-size:20px}app-expansion-card[_ngcontent-%COMP%] .icon-collapsed{display:flex;align-items:center;position:unset;right:unset}app-expansion-card[_ngcontent-%COMP%] .po-container{margin-top:18px}app-expansion-card[_ngcontent-%COMP%] #expansion-card-header, app-expansion-card[_ngcontent-%COMP%] #expansion-card-body{dis
1play:flex}app-expansion-card[_ngcontent-%COMP%] #expansion-card-body{flex-direction:column}app-expansion-card[_ngcontent-%COMP%] .mr-card-header{display:flex;align-items:center;width:calc(100% - 24px);padding-right:20px}app-expansion-card[_ngcontent-%COMP%] .aboutEmployee{margin-right:10px}app-expansion-card[_ngcontent-%COMP%] .avatar-card{margin-right:13px}app-expansion-card[_ngcontent-%COMP%] .cardbody{margin-top:26px;padding:0 8px}app-expansion-card[_ngcontent-%COMP%] .po-info-label, app-expansion-card[_ngcontent-%COMP%] .po-info-value{font-size:9pt}app-expansion-card[_ngcontent-%COMP%] .po-info-container-content{padding:0}app-expansion-card[_ngcontent-%COMP%] .delete{font-size:20px;margin-left:auto;color:#be3e37}@media (max-width: 960px){app-modal-fullscreen-mobile[_ngcontent-%COMP%] .po-modal-footer{display:none}app-modal-fullscreen-mobile[_ngcontent-%COMP%] .panel-body{display:flex;height:100%;flex-direction:column}}.buttons[_ngcontent-%COMP%]{margin-top:auto}.buttons[_ngcontent-%COMP%] po-button[_ngcontent-%COMP%] .po-button{height:44px}.more-than-one-employee[_ngcontent-%COMP%]{display:block;text-align:center;color:#9da7a9;font-size:11pt;font-weight:400;font-family:NunitoSans-Bold}.no-employees[_ngcontent-%COMP%]{text-align:center;flex-grow:1;display:flex;align-items:center;flex-direction:column;justify-content:center}.no-employees[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#4a5c60;white-space:unset;overflow:unset;text-overflow:unset}.no-employees[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{color:#9da7a9;font-size:11pt;font-family:NunitoSans-Bold}@media screen and (min-width: 480px){[_nghost-%COMP%] .po-modal-footer{display:flex;justify-content:end;gap:10px}}[_nghost-%COMP%] .po-combo-container-content{padding-left:7px}[_nghost-%COMP%] .po-combo-container-content li{list-style-type:none}"]}),v})();var pe=g(30693),Ze=g(85830),et=g(14424),G=g(37222),me=g(51813),he=g(46622);function tt(d,v){if(1&d){const s=e.RV6();e.j41(0,"mat-chip-option",2),e.bIt("click",function(o){const r=e.eBV(s).$implicit,h=e.XpG();return e.Njj(h.onClick(o,r))}
1),e.j41(1,"span",3),e.EFF(2),e.k0s()()}if(2&d){const s=v.$implicit,t=e.XpG();e.Y8G("selected",t.isSelected(s)),e.R7$(2),e.JRh(s.label)}}let it=(()=>{var d;class v{constructor(){this.chips=[],this.chipSelected=new e.bkB,this.chipCollection=new Map}ngOnInit(){for(const t of this.chips)this.chipCollection.set(t,!1);if(this.initialChips)for(const t of this.initialChips)this.chipCollection.set(t,!0);this.chipSelected.emit([])}isSelected(t){return this.chipCollection.get(t)}onClick(t,o){t.preventDefault(),t.stopPropagation(),this.selectChip(o);const r=this.getSelected();this.chipSelected.emit(r)}selectChip(t){this.chipCollection.get(t)?this.chipCollection.set(t,!1):this.chipCollection.set(t,!0)}getSelected(){const t=[];return Array.from(this.chipCollection.entries(),o=>{o[1]&&t.push(o[0])}),t}}return(d=v).\u0275fac=function(t){return new(t||d)},d.\u0275cmp=e.VBU({type:d,selectors:[["app-selectable-chips"]],inputs:{chips:"chips",initialChips:"initialChips"},outputs:{chipSelected:"chipSelected"},standalone:!1,decls:3,vars:1,consts:[["multiple",""],["color","primary",3,"selected","click",4,"ngFor","ngForOf"],["color","primary",3,"click","selected"],[1,"unselectable"]],template:function(t,o){1&t&&(e.j41(0,"div")(1,"mat-chip-listbox",0),e.DNE(2,tt,3,2,"mat-chip-option",1),e.k0s()()),2&t&&(e.R7$(2),e.Y8G("ngForOf",o.chips))},dependencies:[C.Sq,he.uI,he.gq],styles:["mat-chip-option.mat-mdc-chip-selected{background-color:#045b8f!important;color:#fff!important;border-color:#045b8f!important}"]}),v})();const nt=["chips"],ot=["modal"];function at(d,v){if(1&d){const s=e.RV6();e.qex(0),e.j41(1,"div",39),e.bIt("click",function(o){e.eBV(s);const r=e.XpG();return e.Njj(r.ifMobileOpenAddEmployee(o))}),e.j41(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"a",40),e.bIt("click",function(o){e.eBV(s);const r=e.XpG();return e.Njj(r.openAddEmployee(o))}),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"po-button",41),e.nI1(9,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.openAddEmployee())}),e.k0s(),e.j41(10,"div",42),e.nrm(11,"span",43),e.j41(12,"span",44),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.bVm()}if(2&d){const s=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,5,"request-on-call-for")," "),e.R7$(3),e.Lme("",s.employeesId.length," ",e.bMT(7,7,"l-employees"),""),e.R7$(2),e.FS9("p-label",e.bMT(9,9,"l-add-employee")),e.R7$(5),e.JRh(e.bMT(14,11,"l-edit"))}}function lt(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",23)(1,"po-button",45),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.send())}),e.k0s(),e.j41(3,"po-button",46),e.nI1(4,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.back())}),e.k0s()()}if(2&d){e.XpG();const s=e.sdS(5);e.R7$(),e.FS9("p-label",e.bMT(2,3,"l-request")),e.Y8G("p-disabled",!s.form.valid),e.R7$(2),e.FS9("p-label",e.bMT(4,5,"l-cancel"))}}function U(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",47)(1,"po-button",48),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.back())}),e.k0s(),e.j41(3,"po-button",49),e.nI1(4,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.send())}),e.k0s()()}if(2&d){e.XpG();const s=e.sdS(5);e.R7$(),e.FS9("p-label",e.bMT(2,3,"l-cancel")),e.R7$(2),e.FS9("p-label",e.bMT(4,5,"l-request-on-call")),e.Y8G("p-disabled",!s.form.valid)}}function X(d,v){if(1&d&&e.nrm(0,"app-selectable-chips",54,4),2&d){const s=e.XpG(2);e.Y8G("chips",s.daysOfTheWeek)}}function ue(d,v){if(1&d){const s=e.RV6();e.j41(0,"po-select",55),e.nI1(1,"translate"),e.mxI("ngModelChange",function(o){e.eBV(s);const r=e.XpG(2);return e.DH7(r.monthlyRuleSelect,o)||(r.monthlyRuleSelect=o),e.Njj(o)}),e.k0s()}if(2&d){const s=e.XpG(2);e.FS9("p-placeholder",e.bMT(1,3,"l-select")),e.Y8G("p-options",s.monthlyRuleOptions),e.R50("ngModel",s.monthlyRuleSelect)}}function fe(d,v){if(1&d&&(e.j41(0,"div",50)(1,"div",23)(2,"span",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",51),e.DNE(6,X,2,1,"app-selectable-chips",52),e.k0s(),e.j41(7,"div",8),e.DNE(8,ue,2,5,"po-select",53),e.k0s()()),2&d){const s=e.XpG();e.R7$(3),e.JRh(e.bMT(4,3,"l-repeat")),e.R7$(3),e.Y8G("ngIf","week"===s.recurrence.repetitionType),e.R7$(2),e.Y8G("ngIf","month"===s.recurrence.repetitionType)}}function _e(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",8)(1,"po-button",63),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG(2);return e.Njj(o.closeDialogLearnMore())}),e.k0s()()}2&d&&(e.R7$(),e.FS9("p-label",e.bMT(2,1,"l-ok")))}function ge(d,v){if(1&d){const s=e.RV6();e.j41(0,"div",23)(1,"po-button",64),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(s);const o=e.XpG(2);return e.Njj(o.closeDialogLearnMore())}),e.k0s()()}2&d&&(e.R7$(),e.FS9("p-label",e.bMT(2,1,"l-ok")))}function Q(d,v){if(1&d){const s=e.RV6();e.j41(0,"app-dialog",56,5),e.bIt("closeDialogEvent",function(){e.eBV(s);const o=e.XpG();return e.Njj(o.closeDialogLearnMore())}),e.j41(2,"div",57),e.nrm(3,"app-page-header",58),e.j41(4,"div",59)(5,"div",60)(6,"span"),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",8)(10,"span")(11,"strong"),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"div",60)(15,"span",61),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",60)(19,"span")(20,"strong"),e.EFF(21),e.nI1(22,"translate"),e.k0s()(),e.j41(23,"span"),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"div",60)(27,"span")(28,"strong"),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"span"),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div",8)(35,"span")(36,"strong"),e.EFF(37),e.nI1(38,"translate"),e.k0s()()(),e.j41(39,"div",60)(40,"span"),e.EFF(41),e.nI1(42,"translate"),e.k0s()()(),e.DNE(43,_e,3,3,"div",62)(44,ge,3,3,"div",25),e.k0s()()}if(2&d){const s=e.XpG();e.Y8G("isVisible",s.dialogIsVisible),e.R7$(7),e.JRh(e.bMT(8,12,"l-learn-more-message-body1")),e.R7$(5),e.JRh(e.bMT(13,14,"l-learn-more-message-body-option1")),e.R7$(4),e.JRh(e.bMT(17,16,"l-learn-more-message-body2")),e.R7$(5),e.JRh(e.bMT(22,18,"l-learn-more-message-body-option2")),e.R7$(3),e.JRh(e.bMT(25,20,"l-learn-more-message-body3")),e.R7$(5),e.JRh(e.bMT(30,22,"l-learn-more-message-body-option3")),e.R7$(3),e.JRh(e.bMT(33,24,"l-learn-more-message-body4")),e.R7$(5),e.JRh(e.bMT(38,26,"l-learn-more-message-body-option4")),e.R7$(4),e.JRh(e.bMT(42,28,"l-learn-more-message-body5")),e.R7$(2),e.Y8G("ngIf",s.viewIsMobile),e.R7$(),e.Y8G("ngIf",!s.viewIsMobile)}}var V=function(d){return d[d.noEmployee=0]="noEmployee",d}(V||{});let q=(()=>{var d;class v extends k.U{constructor(t,o,r,h,f,F,I,Y,W){super(),this.translateService=t,this.windowUtilService=o,this.onCallService=r,this.recurrenceService=h,this.notificationService=f,this.route=F,this.sufixUtil=I,this.dayUtil=Y,this.globals=W,this.id=null,this.reasons=[],this.initDate=new Date,this.employeeData=null,this.employeeId=null,this.viewIsTeamManagement=!1,this.mask="99:99",this.pattern="^(2[0-3]|[01]*[0-9]):?([0-5][0-9])$",this.daysToConsiderOptions=[],this.recurrenceOptions=[],this.repetitionTypeOptions=[],this.monthlyRuleOptions=[],this.repetitionEndOptions=[],this.recurrenceTitle="",this.justification="",this.daysToConsider=[],this.daysOfTheWeek=[],this.employeesId=[],this.isEdit=!1,this.dialogIsVisible=!1,this.recurrence={repetitions:1,weekDays:[],repetitionType:n.H6.RepetitionTypeEnum.Day,maxOcurrences:1}}ngOnInit(){super.ngOnInit(),this.loadComponents().then(()=>{this.isEdit&&this.loadEdit()}),this.dealWithQueryParams(),this.clickEventControl=!1}ngOnDestroy(){super.ngOnDestroy(),this.queryParamsSubscription&&this.queryParamsSubscription.unsubscribe()}loadComponents(){var t=this;return(0,y.A)(function*(){var o,r,h,f,F,I;t.daysToConsiderOptions=[{value:"planned",label:yield t.translateService.getI18n("l-planned-time")},{value:"compensated",label:yield t.translateService.getI18n("l-compensated")},{value:"resting",label:yield t.translateService.getI18n("l-resting")},{value:"holiday",label:yield t.translateService.getI18n("l-holiday")}],t.recurrenceOptions=[{value:"0",label:yield t.translateService.getI18n("l-on-call-recurrence-message-doesnt-repeat")},{value:"1",label:yield t.translateService.getI18n("l-on-call-recurrence-message-all-days")},{value:"2",label:yield t.translateService.getI18n("l-on-call-recurrence-message-all-week-days")},{value:"3",label:(yield t.translateService.getI18n("l-customize"))+". . ."}],t.repetitionTypeOptions=[{value:n.H6.RepetitionTypeEnum.Day,label:yield t.translateService.getI18n("l-day-s")},{value:n.H6.RepetitionTypeEnum.Week,label:yield t.translateService.getI18n("l-week-s")},{value:n.H6.RepetitionTypeEnum.Month,label:yield t.translateService.getI18n("l-month-s")}],t.repetitionEndOptions=[{value:"date",label:yield t.translateService.getI18n("l-in")},{value:"ocurrences",label:yield t.translateService.getI18n("l-after")}],t.modalPrimaryAction={action:yield t.concludeRecurrence.bind(t),label:yield t.translateService.getI18n("l-conclude")},t.modalSecondaryAction={action:t.closeModal.bind(t),label:yield t.translateService.getI18n("l-cancel")},t.daysOfTheWeek=[{label:(yield t.translateService.getI18n("l-sunday")).slice(0,1).toUpperCase(),value:"0"},{label:(yield t.translateService.getI18n("l-monday")).slice(0,1).toUpperCase(),value:"1"},{label:(yield t.translateService.getI18n("l-tuesday")).slice(0,1).toUpperCase(),value:"2"},{label:(yield t.translateService.getI18n("l-wednesday")).slice(0,1).toUpperCase(),value:"3"},{label:(yield t.translateService.getI18n("l-thursday")).slice(0,1).toUpperCase(),value:"4"},{label:(yield t.translateService.getI18n("l-friday")).slice(0,1).toUpperCase(),value:"5"},{label:(yield t.translateService.getI18n("l-saturday")).slice(0,1).toUpperCase(),value:"6"}],t.justificationPlaceholder=yield t.translateService.getI18n("l-on-call-justification-placeholder"),t.changeDate(),t.isBatchRequest="true"===(null===(o=t.route.snapshot.paramMap)||void 0===o?void 0:o.get("isBatchRequest")),t.employeeId=null===(r=t.route.snapshot.paramMap)||void 0===r?void 0:r.get("employeeId"),t.isEdit="true"===(null===(h=t.route.snapshot.paramMap)||void 0===h?void 0:h.get("isEdit")),t.editId=null===(f=t.route.snapshot.paramMap)||void 0===f?void 0:f.get("editId"),t.isBatchRequest?(null===(F=t.route.snapshot.paramMap)||void 0===F?void 0:F.get("employeeId")).split("||").forEach(J=>{t.employeesId.includes(J)||t.employeesId.push(J)}):t.employeeId=null===(I=t.route.snapshot.paramMap)||void 0===I?void 0:I.get("employeeId"),t.daysToConsider=["planned","holiday","resting","compensated"],t.recurrenceSelect="1"})()}openAddEmployee(t){null==t||t.stopPropagation(),this.modal.openModal(this.employeesId)}ifMobileOpenAddEmployee(t){this.viewIsMobile&&this.openAddEmployee(t)}addEmployee(t){this.employeesId=t,this.modal.close()}changeRecurrence(){"3"===this.recurrenceSelect?(this.translateService.getI18n(this.viewIsMobile?"l-customize":"l-customized-recurrence").then(o=>{this.recurrenceTitle=o}),this.recurrenceModal.open()):this.removeCustomRecurrence()}changeInitHour(){N.w.isEmpty(this.initHour)||(this.initHour=x.rL.changeHour(this.initHour))}changeEndHour(){N.w.isEmpty(this.endHour)||(this.endHour=x.rL.changeHour(this.endHour))}cleanRecurrence(){this.recurrence={repetitions:1,weekDays:[],repetitionType:n.H6.RepetitionTypeEnum.Day,maxOcurrences:1}}openDialogLearnMore(){this.dialogIsVisible=!0}closeDialogLearnMore(){this.dialogIsVisible=!1}send(){var t=this;return(0,y.A)(function*(){const o=t.isEdit?yield t.createEditObject():null;if(t.isBatchRequest){const r=yield t.createSendBatchObject();if(r)try{yield t.onCallService.onCallBatchRequest(r);const h=yield t.translateService.getI18n("l-send-on-call-success");t.notificationService.showNotification(h,_._yA.Success),t.backAfterSave()}catch(h){null!=h&&h.message&&t.notificationService.showNotification(h.message,_._yA.Error)}}else if(t.isEdit&&o)t.onCallService.editOnCall(R.c.loggedUser,o).then(function(){var r=(0,y.A)(function*(h){const f=yield t.translateService.getI18n("l-send-on-call-success");t.notificationService.showNotification(f,_._yA.Success),t.backAfterSave()});return function(h){return r.apply(this,arguments)}}()).catch(r=>{t.notificationService.showNotification(r.message,_._yA.Error)});else{const r=yield t.createSendObject();if(r)try{yield t.onCallService.requestOnCall(t.employeeId?t.employeeId:R.c.loggedUser,r);const h=yield t.translateService.getI18n("l-send-on-call-success");t.notificationService.showNotification(h,_._yA.Success),t.backAfterSave()}catch(h){null!=h&&h.message&&t.notificationService.showNotification(h.message,_._yA.Error)}}})()}back(){this.windowUtilService.back()}changeDate(){var t=this;
1return(0,y.A)(function*(){if(t.initDate){t.initDateFormat=x.rL.getDateUTCFormat(new Date(t.initDate)),t.initDateFormat.setDate(t.initDateFormat.getUTCDate());const o=t.initDateFormat.getDate()/7;t.monthlyRuleOptions=[{value:"0",label:yield t.translateService.getI18n("l-on-call-week-day-monthly",{ordinal:Math.ceil(o),sufix:t.sufixUtil.getSufix(o,t.initDateFormat.getDay()),weekDay:yield t.dayUtil.getWeekDayLabel(t.initDateFormat.getDay())})},{value:"1",label:yield t.translateService.getI18n("l-on-call-month-day-monthly",{monthDay:t.initDateFormat.getDate()})}]}if(t.endDate){const o=x.rL.getDateUTCFormat(new Date(t.endDate));o.setDate(o.getUTCDate()),t.endDate=o}})()}closeModal(){this.recurrenceSelect="0",this.cleanRecurrence(),this.removeCustomRecurrence(),this.recurrenceModal.close()}removeCustomRecurrence(){this.recurrenceOptions.some(t=>"4"===t.value)&&this.recurrenceOptions.pop()}concludeRecurrence(){var t=this;return(0,y.A)(function*(){if(t.removeCustomRecurrence(),!t.recurrenceIsValid())return void t.notificationService.showNotification(yield t.translateService.getI18n("l-recurrence-invalid"),_._yA.Error);const o=yield t.recurrenceService.getRecurrence(t.getRecurrence(),t.initDateFormat);t.recurrenceOptions.push({label:o,value:"3"}),t.recurrenceSelect="3",t.recurrenceModal.close()})()}getRecurrenceTitle(){var t=this;return(0,y.A)(function*(){const o=t.viewIsMobile?"l-customize":"l-customized-recurrence";return yield t.translateService.getI18n(o)})()}recurrenceIsValid(){let t=!0;if(this.recurrence.repetitionType===n.H6.RepetitionTypeEnum.Week)if(this.isEdit)t=t&&this.recurrence.weekDays.length>0;else{const o=this.chips?this.chips.getSelected().map(r=>({id:r.value})):[];t=t&&o.length>0}else this.recurrence.repetitionType===n.H6.RepetitionTypeEnum.Month&&(t=this.isEdit?t&&["0","1"].indexOf(this.recurrence.monthlyRule.toString())>=0:t&&["0","1"].indexOf(this.monthlyRuleSelect)>=0);return t=t&&!N.w.isEmpty(this.repetitionEnd),t&&"date"===this.repetitionEnd?t=t&&null!=this.endDate&&!N.w.isEmpty(this.endDate.toString()):t&&"ocurrences"===this.repetitionEnd&&(t=t&&this.recurrence.maxOcurrences>0),t}loadEdit(){var t=this;return(0,y.A)(function*(){var o;t.onCallEdit=t.onCallService.getSelectedOnCall(),t.onCallEdit?(t.initDate=x.rL.getDateUTCFormat(new Date(t.onCallEdit.initDate)).toISOString().substring(0,10),t.endDate=x.rL.getDateUTCFormat(new Date(t.onCallEdit.initDate)),t.changeDate(),t.initHour=x.rL.getHoursByMilliseconds(6e4*t.onCallEdit.initHour),t.endHour=x.rL.getHoursByMilliseconds(6e4*t.onCallEdit.endHour),t.justification=t.onCallEdit.justification,t.daysToConsider=null===(o=t.onCallEdit.considerDays)||void 0===o?void 0:o.map(r=>r.label),t.onCallEdit.recurrence?(t.recurrence=t.onCallEdit.recurrence,t.recurrenceSelect="3",t.repetitionEnd=t.onCallEdit.recurrence.maxOcurrences>0?"ocurrences":"date",yield t.concludeRecurrence()):t.recurrenceSelect="0"):t.back()})()}createSendObject(){var t=this;return(0,y.A)(function*(){return(yield t.validateProperties())?{initDate:t.initDateFormat,endDate:t.endD
1ate,initHour:x.rL.convertHourToMilliseconds(t.initHour)/6e4,endHour:x.rL.convertHourToMilliseconds(t.endHour)/6e4,considerDays:t.daysToConsider.map(h=>t.getConsiderDay(h)),justification:t.justification,recurrence:t.getRecurrence()}:null})()}createSendBatchObject(){var t=this;return(0,y.A)(function*(){if(!(yield t.validateProperties()))return null;let r=[];return t.employeesId.forEach(h=>{r.push({idName:h,initDate:t.initDateFormat,endDate:t.endDate,initHour:x.rL.convertHourToMilliseconds(t.initHour)/6e4,endHour:x.rL.convertHourToMilliseconds(t.endHour)/6e4,considerDays:t.daysToConsider.map(f=>t.getConsiderDay(f)),justification:t.justification,recurrence:t.getRecurrence()})}),r})()}validateProperties(){var t=this;return(0,y.A)(function*(){return t.endDate=x.rL.getDateUTCFormat(new Date(t.endDate)),t.initDateFormat=x.rL.getDateUTCFormat(new Date(t.initDateFormat)),!(t.endDate.getTime()===t.initDateFormat.getTime()&&x.rL.convertHourToMilliseconds(t.initHour)>=x.rL.convertHourToMilliseconds(t.endHour)&&(t.notificationService.showNotification(yield t.translateService.getI18n("m-initialHourBiggerThanEndHour"),_._yA.Error),1))})()}createEditObject(){var t=this;return(0,y.A)(function*(){if(t.endDate=x.rL.getDateUTCFormat(new Date(t.endDate)),t.initDateFormat=x.rL.getDateUTCFormat(new Date(t.initDateFormat)),t.endDate.getTime()===t.initDateFormat.getTime()&&x.rL.convertHourToMilliseconds(t.initHour)>=x.rL.convertHourToMilliseconds(t.endHour)){const r=yield t.translateService.getI18n("m-initialHourBiggerThanEndHour");return t.notificationService.showNotification(r,_._yA.Error),null}
1return{initDate:t.initDateFormat,endDate:t.endDate,initHour:x.rL.convertHourToMilliseconds(t.initHour)/6e4,endHour:x.rL.convertHourToMilliseconds(t.endHour)/6e4,considerDays:t.daysToConsider.map(r=>({id:r,label:r})),justification:t.justification,recurrence:t.getRecurrence(),responsibleId:t.onCallEdit.responsibleId,responsibleName:t.onCallEdit.responsibleName,status:t.onCallEdit.status,requesterName:t.onCallEdit.requesterName,id:t.onCallEdit.id,name:t.onCallEdit.name,idName:t.onCallEdit.idName}})()}getRecurrence(){switch(this.recurrenceSelect){case"0":return null;case"1":return{repetitions:1,repetitionType:"day"};case"2":return{repetitions:1,repetitionType:"week",weekDays:[{id:"1",label:"monday"},{id:"2",label:"tuesday"},{id:"3",label:"wednesday"},{id:"4",label:"thursday"},{id:"5",label:"friday"}]};default:{let t={repetitions:this.recurrence.repetitions,repetitionType:this.recurrence.repetitionType};return t.repetitionType===n.H6.RepetitionTypeEnum.Week?t.weekDays=this.isEdit?this.recurrence.weekDays:this.chips?this.chips.getSelected().map(o=>({id:o.value,label:this.getWeekDayLabel(o.value)})):[]:t.repetitionType===n.H6.RepetitionTypeEnum.Month&&(t.monthlyRule=this.isEdit?this.recurrence.monthlyRule:+this.monthlyRuleSelect),"ocurrences"===this.repetitionEnd&&(t.maxOcurrences=this.recurrence.maxOcurrences),t}}}backAfterSave(){this.origin===V.noEmployee&&this.globals.urlHistory.length>2?this.windowUtilService.go(-2):this.back()}dealWithQueryParams(){this.queryParamsSubscription=this.route.queryParams.subscribe(t=>{this.origin=t.noEmployee?V.noEmployee:null})}getConsiderDay(t){switch(t){case D._.LabelEnum.Planned:return{id:1,label:D._.LabelEnum.Planned};case D._.LabelEnum.Compensated:return{id:2,label:D._.LabelEnum.Compensated};case D._.LabelEnum.Resting:return{id:3,label:D._.LabelEnum.Resting};case D._.LabelEnum.Holiday:return{id:4,label:D._.LabelEnum.Holiday}}}getWeekDayLabel(t){switch(t){case"0":return"sunday";case"1":return"monday";case"2":return"tuesday";case"3":return"wednesday";case"4":return"thursday";case"5":return"friday";case"6":return"saturday"}}}return(d=v).\u0275fac=function(t){return new(t||d)(e.rXU(M.F),e.rXU(re.i),e.rXU(P.j),e.rXU(O.K),e.rXU(pe.J),e.rXU(l.nX),e.rXU(Ze.y),e.rXU(et.b),e.rXU(le.R))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-on-call-request"]],viewQuery:function(t,o){if(1&t&&(e.GBs(_.I3z,7),e.GBs(nt,5),e.GBs(ot,5)),2&t){let r;e.mGM(r=e.lsd())&&(o.recurrenceModal=r.first),e.mGM(r=e.lsd())&&(o.chips=r.first),e.mGM(r=e.lsd())&&(o.modal=r.first)}},standalone:!1,features:[e.Vt3],decls:63,vars:77,consts:[["onCallForm","ngForm"],["recurrenceModal",""],["recurrenceForm","ngForm"],["modal",""],["chips",""],["learnMoreModal",""],[1,"on-call-request"],["pageTitle","l-request-on-call",3,"backFunction","backIsVisible"],[1,"po-row"],[4,"ngIf"],[1,"po-row","header-divider","po-pt-2","panel-body","po-xs-hidden","po-sm-hidden","po-md-12","po-lg-12","po-xl-12"],[1,"center-block","po-xs-12","po-sm-12","po-md-12","po-lg-9","po-xl-9"],["name","initDatePicker","p-clean","true","p-required","true",1,"po-sm-12","po-md-6","po-lg-6","po-xl-6",3,"ngModelChange","p-change","ngModel","p-label","p-max-date"],["name","endDatePicker","p-clean","true",1,"po-sm-12","po-md-6","po-lg-6","po-xl-6","end-date",3,"ngModelChange","p-change","p-min-date","ngModel","p-label","p-error-pattern"],["name","recurrenceSelect","p-required","true",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"ngModelChange","p-change","ngModel","p-label","p-placeholder","p-options"],[1,"po-xl-6","po-lg-6","po-md-6","po-sm-6"],["p-placeholder","00:00","id","initHour","name","initHour","p-maxlength","5","p-required","true",1,"label-ellipsis",3,"ngModelChange","p-blur","ngModel","p-label","p-mask","p-pattern"],["p-placeholder","00:00","id","endHour","name","endHour","p-maxlength","5","p-required","true",3,"ngModelChange","p-blur","ngModel","p-label","p-mask","p-pattern","p-error-pattern"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12"],[1,"po-field-title"],[3,"click"],[1,"po-clickable","an","an-question","clean","po-pl-2"],["name","daysToConsiderMultiselect","p-hide-search","true","p-required","true",3,"ngModelChange","p-options","p-placeholder","ngModel"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12"],["name","justification","p-required","true",3,"ngModelChange","ngModel","p-label","p-placeholder"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12",4,"ngIf"],["class","po-row action-buttons",4,"ngIf"],["p-size","sm","p-click-out","false","p-hide-close","true",3,"p-title","p-primary-action","p-secondary-action"],["p-min","1","p-minlength","1","name","repetitions",1,"po-sm-3","po-md-3","po-lg-3","po-xl-3",3,"ngModelChange","ngModel"],["name","repetitionType",1,"po-sm-9","po-md-9","po-lg-9","po-xl-9",3,"ngModelChange","p-options","ngModel"],["class","po-mt-1",4,"ngIf"],[1,"po-row","po-mt-1","repetition-end-row"],["name","repetitionEnd","p-columns","1",1,"po-sm-3","po-md-3","po-lg-3","po-xl-3","radio-repetition",3,"ngModelChange","ngModel","p-label","p-options"],[1,"po-sm-9","po-md-9","po-lg-9","po-xl-9","po-mt-3"],["name","endDatePickerRecurrence","p-clean","true",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","po-pl-0",3,"ngModelChange","ngModel","p-disabled","p-min-date"],["p-min","1","p-minlength","1","name","ocurrences",1,"po-sm-7","po-md-7","po-lg-7","po-xl-7","po-pl-0",3,"ngModelChange","ngModel","p-disabled"],[1,"ocurrences-label","po-pl-1","po-pt-2"],["id","learnMore",3,"isVisible","closeDialogEvent",4,"ngIf"],[3,"saveFunction"],[1,"request-on-call-for",3,"click"],[1,"link",3,"click"],["p-kind","primary",1,"button-add-employee",3,"p-click","p-label"],[1,"edit-employee"],[1,"an","an-pencil-simple"],[1,"text"],["p-kind","primary",1,"po-sm-3","po-md-2","po-lg-2","po-xl-2","send-button","float-right",3,"p-click","p-disabled","p-label"],[1,"po-sm-3","po-md-2","po-lg-2","po-xl-2","send-button","float-right",3,"p-click","p-label"],[1,"po-row","action-buttons"],["p-kind","secondary",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","po-mt-2","block",3,"p-click","p-label"],["p-kind","primary",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","po-mt-2","block",3,"p-click","p-label","p-disabled"],[1,"po-mt-1"],[1,"po-field-container-content"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12 po-mt-1 po-mb-1",3,"chips",4,"ngIf"],["name","monthlyRule","class","po-sm-12 po-md-8 po-lg-8 po-xl-8",3,"p-options","ngModel","p-placeholder","ngModelChange",4,"ngIf"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","po-mt-1","po-mb-1",3,"chips"],["name","monthlyRule",1,"po-sm-12","po-md-8","po-lg-8","po-xl-8",3,"ngModelChange","p-options","ngModel","p-placeholder"],["id","learnMore",3,"closeDialogEvent","isVisible"],["dialog-content",""],["pageTitle","l-learn-more-title"],[1,"padding-content"],[1,"po-row","po-mb-2"],[1,"po-mr-5"],["class","po-row",4,"ngIf"],["p-primary","true","p-kind","primary",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","po-mt-2","block","close-button-dialog",3,"p-click","p-label"],["p-primary","true","p-kind","primary",1,"po-sm-3","po-md-3","po-lg-3","po-xl-3","send-button","float-right",3,"p-click","p-label"]],template:function(t,o){if(1&t){const r=e.RV6();e.j41(0,"div",6)(1,"app-page-header",7),e.bIt("backFunction",function(){return e.eBV(r),e.Njj(o.back())}),e.k0s(),e.j41(2,"div",8),e.DNE(3,at,15,13,"ng-container",9),e.k0s(),e.j41(4,"form",null,0)(6,"div",10)(7,"div",11)(8,"po-datepicker",12),e.nI1(9,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.D
1H7(o.initDate,f)||(o.initDate=f),e.Njj(f)}),e.bIt("p-change",function(){return e.eBV(r),e.Njj(o.changeDate())}),e.k0s(),e.j41(10,"po-datepicker",13),e.nI1(11,"translate"),e.nI1(12,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.endDate,f)||(o.endDate=f),e.Njj(f)}),e.bIt("p-change",function(){return e.eBV(r),e.Njj(o.changeDate())}),e.k0s(),e.j41(13,"po-select",14),e.nI1(14,"translate"),e.nI1(15,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.recurrenceSelect,f)||(o.recurrenceSelect=f),e.Njj(f)}),e.bIt("p-change",function(){return e.eBV(r),e.Njj(o.changeRecurrence())}),e.k0s(),e.j41(16,"div",15)(17,"po-input",16),e.nI1(18,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.initHour,f)||(o.initHour=f),e.Njj(f)}),e.bIt("p-blur",function(){return e.eBV(r),e.Njj(o.changeInitHour())}),e.k0s()(),e.j41(19,"div",15)(20,"po-input",17),e.nI1(21,"translate"),e.nI1(22,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.endHour,f)||(o.endHour=f),e.Njj(f)}),e.bIt("p-blur",function(){return e.eBV(r),e.Njj(o.changeEndHour())}),e.k0s()(),e.j41(23,"div",18)(24,"div",8)(25,"div")(26,"span",19),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"div",20),e.bIt("click",function(){return e.eBV(r),e.Njj(o.openDialogLearnMore())}),e.nrm(30,"span",21),e.k0s()(),e.j41(31,"po-multiselect",22),e.nI1(32,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.daysToConsider,f)||(o.daysToConsider=f),e.Njj(f)}),e.k0s()(),e.j41(33,"div",23)(34,"po-textarea",24),e.nI1(35,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.justification,f)||(o.justification=f),e.Njj(f)}),e.k0s()(),e.DNE(36,lt,5,7,"div",25)(37,U,5,7,"div",26),e.k0s()()(),e.j41(38,"po-modal",27,1)(40,"form",null,2)(42,"div",23)(43,"span",19),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"div",8)(47,"po-number",28),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.recurrence.repetitions,f)||(o.recurrence.repetitions=f),e.Njj(f)}),e.k0s(),e.j41(48,"po-select",29),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.recurrence.repetitionType,f)||(o.recurrence.repetitionType=f),e.Njj(f)}),e.k0s()(),e.DNE(49,fe,9,5,"div",30),e.j41(50,"div",31)(51,"po-radio-group",32),e.nI1(52,"translate"),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.repetitionEnd,f)||(o.repetitionEnd=f),e.Njj(f)}),e.k0s(),e.j41(53,"div",33)(54,"po-datepicker",34),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.endDate,f)||(o.endDate=f),e.Njj(f)}),e.k0s()(),e.j41(55,"div",23)(56,"po-number",35),e.mxI("ngModelChange",function(f){return e.eBV(r),e.DH7(o.recurrence.maxOcurrences,f)||(o.recurrence.maxOcurrences=f),e.Njj(f)}),e.k0s(),e.j41(57,"span",36),e.EFF(58),e.nI1(59,"translate"),e.k0s()()()()(),e.DNE(60,Q,45,30,"app-dialog",37),e.k0s(),e.j41(61,"app-on-call-employee-card",38,3),e.bIt("saveFunction",function(f){return e.eBV(r),e.Njj(o.addEmployee(f))}),e.k0s()}2&t&&(e.R7$(),e.Y8G("backIsVisible",!0),e.R7$(2),e.Y8G("ngIf",o.isBatchRequest),e.R7$(5),e.FS9("p-label",e.bMT(9,49,"l-date-init")),e.R50("ngModel",o.initDate),e.Y8G("p-max-date",o.endDate),e.R7$(2),e.FS9("p-label",e.bMT(11,51,"l-date-final")),e.FS9("p-error-pattern",e.bMT(12,53,"m-initialDateBiggerThanEndDate")),e.Y8G("p-min-date",o.initDate),e.R50("ngModel",o.endDate),e.R7$(3),e.FS9("p-label",e.bMT(14,55,"l-recurrence")),e.FS9("p-placeholder",e.bMT(15,57,"l-select")),e.R50("ngModel",o.recurrenceSelect),e.Y8G("p-options",o.recurrenceOptions),e.R7$(4),e.FS9("p-label",e.bMT(18,59,"l-hour-initial")),e.R50("ngModel",o.initHour),e.Y8G("p-mask",o.mask)("p-pattern",o.pattern),e.R7$(3),e.FS9("p-label",e.bMT(21,61,"l-hour-end")),e.FS9("p-error-pattern",e.bMT(22,63,"m-initialHourBiggerThanEndHour")),e.R50("ngModel",o.endHour),e.Y8G("p-mask",o.mask)("p-pattern",o.pattern),e.R7$(7),e.JRh(e.bMT(28,65,"l-days-to-consider")),e.R7$(4),e.FS9("p-placeholder",e.bMT(32,67,"l-select")),e.Y8G("p-options",o.daysToConsiderOptions),e.R50("ngModel",o.daysToConsider),e.R7$(3),e.FS9("p-label",e.bMT(35,69,"l-justification")),e.R50("ngModel",o.justification),e.Y8G("p-placeholder",o.justificationPlaceholder),e.R7$(2),e.Y8G("ngIf",!o.viewIsMobile),e.R7$(),e.Y8G("ngIf",o.viewIsMobile),e.R7$(),e.Y8G("p-title",o.recurrenceTitle)("p-primary-action",o.modalPrimaryAction)("p-secondary-action",o.modalSecondaryAction),e.R7$(6),e.JRh(e.bMT(45,71,"l-repeat-on-each")),e.R7$(3),e.R50("ngModel",o.recurrence.repetitions),e.R7$(),e.Y8G("p-options",o.repetitionTypeOptions),e.R50("ngModel",o.recurrence.repetitionType),e.R7$(),e.Y8G("ngIf","day"!==o.recurrence.repetitionType),e.R7$(2),e.FS9("p-label",e.bMT(52,73,"l-ends")),e.R50("ngModel",o.repetitionEnd),e.Y8G("p-options",o.repetitionEndOptions),e.R7$(3),e.R50("ngModel",o.endDate),e.Y8G("p-disabled","ocurrences"===o.repetitionEnd)("p-min-date",o.initDate),e.R7$(2),e.R50("ngModel",o.recurrence.maxOcurrences),e.Y8G("p-disabled","date"===o.repetitionEnd),e.R7$(2),e.JRh(e.bMT(59,75,"l-ocurrence-s")),e.R7$(2),e.Y8G("ngIf",o.dialogIsVisible))},dependencies:[C.bT,G.qT,G.BC,G.cb,G.vS,G.cV,_.rmE,_.hwz,_.zLt,_.hdu,_.GuT,_.Cus,_.TK5,_.LH$,_.I3z,me.m,E.y,it,se,z.D9],styles:[".send-button[_ngcontent-%COMP%]{margin-top:2%;padding-bottom:5px;padding-right:0}@media only screen and (max-width: 480px){.send-button[_ngcontent-%COMP%]{margin-bottom:20px}}.center-block[_ngcontent-%COMP%]{margin:0 auto}.float-right[_ngcontent-%COMP%]{float:right}.ocurrences-label[_ngcontent-%COMP%]{display:table-cell;vertical-align:sub}@media (min-width: 490px){.on-call-request[_ngcontent-%COMP%]{margin:0 40px}}.learnMore[_ngcontent-%COMP%]{margin-top:4%}.clean[_ngcontent-%COMP%]{position:relative;color:#045b8f;font-family:NunitoSans-Bold;cursor:pointer;font-size:20px;white-space:normal!important}.close-button-dialog[_ngcontent-%COMP%]{padding:0 8px 8px 0!important}.request-on-call-for[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;background-color:#fff;box-shadow:0 2px 8px #e3e6f1;padding:13px;font-family:NunitoSans-Bold;margin-bottom:16px}.request-on-call-for[_ngcontent-%COMP%] .button-add-employee[_ngcontent-%COMP%]{display:none}.request-on-call-for[_ngcontent-%COMP%] .edit-employee[_ngcontent-%COMP%]{margin-left:auto;color:#045b8f;min-width:65px}.request-on-call-for[_ngcontent-%COMP%] .edit-employee[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{padding-left:4.8px}.request-on-call-for[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;margin:0 20px 0 0}.request-on-call-for[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{text-decoration:underline}"]}),v})();var ve=g(54243);const be=["modal"],xe=[{path:"",component:je,canActivate:[T.r]},{path:"request/noEmployee",component:(()=>{var d;class v{constructor(t){this.router=t}ngOnInit(){}openModal(){this.modal.openModal([])}addEmployee(t){const o=t.join("||");t.length>0&&this.router.navigate(["teamManagement/timesheet/onCall/request",B.Ay.checkIfEncode(o),t.length>1],{replaceUrl:!0,queryParams:{noEmployee:!0}})}}return(d=v).\u0275fac=function(t){return new(t||d)(e.rXU(l.Ix))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-no-employee"]],viewQuery:function(t,o){if(1&t&&e.GBs(be,5),2&t){let r;e.mGM(r=e.lsd())&&(o.modal=r.first)}},standalone:!1,decls:8,vars:11,consts:[["modal",""],[1,"no-employee"],["pageTitle","l-request-on-call",3,"backIsVisible"],[3,"title","subtitle","newRecord","action"],[3,"saveFunction"]],template:function(t,o){if(1&t){const r=e.RV6();e.j41(0,"div",1),e.nrm(1,"app-page-header",2)(2,"app-no-record",3),e.nI1(3,"translate"),e.nI1(4,"translate"),e.nI1(5,"translate"),e.j41(6,"app-on-call-employee-card",4,0),e.bIt("saveFunction",function(f){return e.eBV(r),e.Njj(o.addEmployee(f))}),e.k0s()()}2&t&&(e.R7$(),e.Y8G("backIsVisible",!0),e.R7$(),e.FS9("title",e.bMT(3,5,"l-no-employee-selected")),e.FS9("subtitle",e.bMT(4,7,"l-no-employee-selected-button-below")),e.FS9("newRecord",e.bMT(5,9,"l-no-employee-selected-button")),e.Y8G("action",o.openModal.bind(o)))},dependencies:[E.y,ve.k,se,z.D9],styles:["app-no-record[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.no-employee[_ngcontent-%COMP%]{height:calc(100% - 54px);display:flex;flex-direction:column}"]}),v})()},{path:"request/:employeeId/:isBatchRequest",component:q},{path:"request/:employeeId",component:q},{path:"request",component:q}];let Ce=(()=>{var d;class v{}return(d=v).\u0275fac=function(t){return new(t||d)},d.\u0275mod=e.$C({type:d}),d.\u0275inj=e.G2t({imports:[l.iI.forChild(xe),l.iI]}),v})()},46622:(Ie,$,g)=>{g.d($,{uI:()=>we,gq:()=>Me,YN:()=>pt});var l=g(63948),T=g(97016),y=g(76809),R=g(56610),n=g(23279),x=g(33788),k=g(16104),P=g(52489),L=g(97361),S=g(76340),O=g(20965),j=g(72831
1),B=g(3126),e=g(37222);g(10194);const U=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],X=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function ue(c,m){1&c&&(n.j41(0,"span",3),n.SdG(1,1),n.k0s())}function fe(c,m){1&c&&(n.j41(0,"span",6),n.SdG(1,2),n.k0s())}function _e(c,m){1&c&&(n.j41(0,"span",3),n.SdG(1,1),n.j41(2,"span",8),n.qSk(),n.j41(3,"svg",9),n.nrm(4,"path",10),n.k0s()()())}function ge(c,m){1&c&&(n.j41(0,"span",6),n.SdG(1,2),n.k0s())}const s=["*"],o=new n.nKC("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[y.Fm]})}),r=new n.nKC("MatChipAvatar"),h=new n.nKC("MatChipTrailingIcon"),f=new n.nKC("MatChipRemove"),F=new n.nKC("MatChip");let I=(()=>{var c;class m{get disabled(){var i;return this._disabled||(null===(i=this._parentChip)||void 0===i?void 0:i.disabled)||!1}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){(0,l.A)(this,"_elementRef",(0,n.WQX)(n.aKT)),(0,l.A)(this,"_parentChip",(0,n.WQX)(F)),(0,l.A)(this,"isInteractive",!0),(0,l.A)(this,"_isPrimary",!0),(0,l.A)(this,"_disabled",!1),(0,l.A)(this,"tabIndex",-1),(0,l.A)(this,"_allowFocusWhenDisabled",!1),(0,n.WQX)(L.l).load(x.Ah),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===y.Fm||i.keyCode===y.t6)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return c=m,(0,l.A)(m,"\u0275fac",function(i){return new(i||c)}),(0,l.A)(m,"\u0275dir",n.FsC({type:c,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,a){1&i&&n.bIt("click",function(b){return a._handleClick(b)})("keydown",function(b){return a._handleKeydown(b)}),2&i&&(n.BMQ("tabindex",a._getTabindex())("disabled",a._getDisabledAttribute())("aria-disabled",a.disabled),n.AVh("mdc-evolution-chip__action--primary",a._isPrimary)("mdc-evolution-chip__action--presentational",!a.isInteractive)("mdc-evolution-chip__action--trailing",!a._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",n.L39],tabIndex:[2,"tabIndex","tabIndex",p=>null==p?-1:(0,n.Udg)(p)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[n.GFd]})),m})(),H=(()=>{var c;class m{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get disabled(){return this._disabled||this._chipListDisabled}set disabled(i){this._disabled=i}constructor(){var i;(0,l.A)(this,"_changeDetectorRef",(0,n.WQX)(n.gRc)),(0,l.A)(this,"_elementRef",(0,n.WQX)(n.aKT)),(0,l.A)(this,"_ngZone",(0,n.WQX)(n.SKi)),(0,l.A)(this,"_focusMonitor",(0,n.WQX)(T.FN)),(0,l.A)(this,"_globalRippleOptions",(0,n.WQX)(x.$E,{optional:!0})),(0,l.A)(this,"_document",(0,n.WQX)(R.qQ)),(0,l.A)(this,"_onFocus",new k.B),(0,l.A)(this,"_onBlur",new k.B),(0,l.A)(this,"_isBasicChip",void 0),(0,l.A)(this,"role",null),(0,l.A)(this,"_hasFocusInternal",!1),(0,l.A)(this,"_pendingFocus",void 0),(0,l.A)(this,"_actionChanges",void 0),(0,l.A)(this,"_animationsDisabled",void 0),(0,l.A)(this,"_allLeadingIcons",void 0),(0,l.A)(this,"_allTrailingIcons",void 0),(0,l.A)(this,"_allRemoveIcons",void 0),(0,l.A)(this,"id",(0,n.WQX)(T.g7).getId("mat-mdc-chip-")),(0,l.A)(this,"ariaLabel",null),(0,l.A)(this,"ariaDescription",null),(0,l.A)(this,"_ariaDescriptionId","".concat(this.id,"-aria-description")),(0,l.A)(this,"_chipListDisabled",!1),(0,l.A)(this,"_textElement",void 0),(0,l.A)(this,"_value",void 0),(0,l.A)(this,"color",void 0),(0,l.A)(this,"removable",!0),(0,l.A)(this,"highlighted",!1),(0,l.A)(this,"disableRipple",!1),(0,l.A)(this,"_disabled",!1),(0,l.A)(this,"removed",new n.bkB),(0,l.A)(this,"destroyed",new n.bkB),(0,l.A)(this,"basicChipAttrName","mat-basic-chip"),(0,l.A)(this,"leadingIcon",void 0),(0,l.A)(this,"trailingIcon",void 0),(0,l.A)(this,"removeIcon",void 0),(0,l.A)(this,"primaryAction",void 0),(0,l.A)(this,"_rippleLoader",(0,n.WQX)(x.Ej)),(0,l.A)(this,"_injector",(0,n.WQX)(n.zZn)),(0,n.WQX)(L.l).load(x.Ah),(0,n.WQX)(L.l).load(L.Y);const a=(0,n.WQX)(n.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===a,this._monitorFocus(),null===(i=this._rippleLoader)||void 0===i||i.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pe
1ndingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,P.h)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){var i,a;this._focusMonitor.stopMonitoring(this._elementRef),null===(i=this._rippleLoader)||void 0===i||i.destroyRipple(this._elementRef.nativeElement),null===(a=this._actionChanges)||void 0===a||a.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){var i;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!(null===(i=this._globalRippleOptions)||void 0===i||!i.disabled)}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(i){(i.keyCode===y.G_&&!i.repeat||i.keyCode===y.SJ)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(a=>{const u=a._elementRef.nativeElement;return u===i||u.contains(i)})}_getActions(){const i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{const a=null!==i;a!==this._hasFocusInternal&&(this._hasFocusInternal=a,a?this._onFocus.next({chip:this}):(0,n.mal)(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}}return c=m,(0,l.A)(m,"\u0275fac",function(i){return new(i||c)}),(0,l.A)(m,"\u0275cmp",n.VBU({type:c,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,a,u){if(1&i&&(n.wni(u,r,5),n.wni(u,h,5),n.wni(u,f,5),n.wni(u,r,5),n.wni(u,h,5),n.wni(u,f,5)),2&i){let b;n.mGM(b=n.lsd())&&(a.leadingIcon=b.first),n.mGM(b=n.lsd())&&(a.trailingIcon=b.first),n.mGM(b=n.lsd())&&(a.removeIcon=b.first),n.mGM(b=n.lsd())&&(a._allLeadingIcons=b),n.mGM(b=n.lsd())&&(a._allTrailingIcons=b),n.mGM(b=n.lsd())&&(a._allRemoveIcons=b)}},viewQuery:function(i,a){if(1&i&&n.GBs(I,5),2&i){let u;n.mGM(u=n.lsd())&&(a.primaryAction=u.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,a){1&i&&n.bIt("keydown",function(b){return a._handleKeydown(b)}),2&i&&(n.Mr5("id",a.id),n.BMQ("role",a.role)("aria-label",a.ariaLabel),n.HbH("mat-"+(a.color||"primary")),n.AVh("mdc-evolution-chip",!a._isBasicChip)("mdc-evolution-chip--disabled",a.disabled)("mdc-evolution-chip--with-trailing-action",a._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",a.leadingIcon)("mdc-evolution-chip--with-primary-icon",a.leadingIcon)("mdc-evolution-chip--with-avatar",a.leadingIcon)("mat-mdc-chip-with-avatar",a.leadingIcon)("mat-mdc-chip-highlighted",a.highlighted)("mat-mdc-chip-disabled",a.disabled)("mat-mdc-basic-chip",a._isBasicChip)("mat-mdc-standard-chip",!a._isBasicChip)("mat-mdc-chip-with-trailing-icon",a._hasTrailingIcon())("_mat-animation-noopable",a._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",n.L39],highlighted:[2,"highlighted","highlighted",n.L39],disableRipple:[2,"disableRipple","disableRipple",n.L39],disabled:[2,"disabled","disabled",n.L39]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[n.Jv_([{provide:F,useExisting:c}]),n.GFd],ngContentSelectors:X,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,a){1&i&&(n.NAR(U),n.nrm(0,"span",0),n.j41(1,"span",1)(2,"span",2),n.DNE(3,ue,2,0,"span",3),n.j41(4,"span",4),n.SdG(5),n.nrm(6,"span",5),n.k0s()()(),n.DNE(7,fe,2,0,"span",6)
1),2&i&&(n.R7$(2),n.Y8G("isInteractive",!1),n.R7$(),n.vxM(a.leadingIcon?3:-1),n.R7$(4),n.vxM(a._hasTrailingIcon()?7:-1))},dependencies:[I],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}
1.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})),m})(),Me=(()=>{var c;class m extends H{constructor(...i){var a,u;super(...i),(0,l.A)(this,"_defaultOptions",(0,n.WQX)(o,{optional:!0})),(0,l.A)(this,"chipListSelectable",!0),(0,l.A)(this,"_chipListMultiple",!1),(0,l.A)(this,"_chipListHideSingleSelectionIndicator",null!==(a=null===(u=this._defaultOptions)||void 0===u?void 0:u.hide
1SingleSelectionIndicator)&&void 0!==a&&a),(0,l.A)(this,"_selectable",!0),(0,l.A)(this,"_selected",!1),(0,l.A)(this,"basicChipAttrName","mat-basic-chip-option"),(0,l.A)(this,"selectionChange",new n.bkB)}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(i){this._selectable=i,this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(i){this._setSelectedState(i,!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(i=!1){return this._setSelectedState(!this.selected,i,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(i,a,u){i!==this.selected&&(this._selected=i,u&&this.selectionChange.emit({source:this,isUserInput:a,selected:this.selected}),this._changeDetectorRef.markForCheck())}}return c=m,(0,l.A)(m,"\u0275fac",(()=>{let p;return function(a){return(p||(p=n.xGo(c)))(a||c)}})()),(0,l.A)(m,"\u0275cmp",n.VBU({type:c,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(i,a){2&i&&(n.Mr5("id",a.id),n.BMQ("tabindex",null)("aria-label",null)("aria-description",null)("role",a.role),n.AVh("mdc-evolution-chip",!a._isBasicChip)("mdc-evolution-chip--filter",!a._isBasicChip)("mdc-evolution-chip--selectable",!a._isBasicChip)("mat-mdc-chip-selected",a.selected)("mat-mdc-chip-multiple",a._chipListMultiple)("mat-mdc-chip-disabled",a.disabled)("mat-mdc-chip-with-avatar",a.leadingIcon)("mdc-evolution-chip--disabled",a.disabled)("mdc-evolution-chip--selected",a.selected)("mdc-evolution-chip--selecting",!a._animationsDisabled)("mdc-evolution-chip--with-trailing-action",a._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",a.leadingIcon)("mdc-evolution-chip--with-primary-graphic",a._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",a.leadingIcon)("mat-mdc-chip-highlighted",a.highlighted)("mat-mdc-chip-with-trailing-icon",a._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",n.L39],selected:[2,"selected","selected",n.L39]},outputs:{selectionChange:"selectionChange"},features:[n.Jv_([{provide:H,useExisting:c},{provide:F,useExisting:c}]),n.GFd,n.Vt3],ngContentSelectors:X,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(i,a){1&i&&(n.NAR(U),n.nrm(0,"span",0),n.j41(1,"span",1)(2,"button",2),n.DNE(3,_e,5,0,"span",3),n.j41(4,"span",4),n.SdG(5),n.nrm(6,"span",5),n.k0s()()(),n.DNE(7,ge,2,0,"span",6),n.j41(8,"span",7),n.EFF(9),n.k0s()),2&i&&(n.R7$(2),n.Y8G("_allowFocusWhenDisabled",!0),n.BMQ("aria-selected",a.ariaSelected)("aria-label",a.ariaLabel)("aria-describedby",a._ariaDescriptionId),n.R7$(),n.vxM(a._hasLeadingGraphic()?3:-1),n.R7$(4),n.vxM(a._hasTrailingIcon()?7:-1),n.R7$(),n.Y8G("id",a._ariaDescriptionId),n.R7$(),n.JRh(a.ariaDescription))},dependencies:[I],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;
1cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}
1.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})),m})(),Fe=(()=>{var c;class m{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}
1set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(){(0,l.A)(this,"_elementRef",(0,n.WQX)(n.aKT)),(0,l.A)(this,"_changeDetectorRef",(0,n.WQX)(n.gRc)),(0,l.A)(this,"_dir",(0,n.WQX)(B.dS,{optional:!0})),(0,l.A)(this,"_lastDestroyedFocusedChipIndex",null),(0,l.A)(this,"_keyManager",void 0),(0,l.A)(this,"_destroyed",new k.B),(0,l.A)(this,"_defaultRole","presentation"),(0,l.A)(this,"_disabled",!1),(0,l.A)(this,"tabIndex",0),(0,l.A)(this,"_explicitRole",null),(0,l.A)(this,"_chips",void 0),(0,l.A)(this,"_chipActions",new n.rOR)}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){var i;null===(i=this._keyManager)||void 0===i||i.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){var i;null===(i=this._chips)||void 0===i||i.forEach(a=>{a._chipListDisabled=this._disabled,a._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i<this._chips.length}_allowFocusEscape(){const i=this._elementRef.nativeElement.tabIndex;-1!==i&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(()=>this._elementRef.nativeElement.tabIndex=i))}_getChipStream(i){return this._chips.changes.pipe((0,O.Z)(null),(0,j.n)(()=>(0,P.h)(...this._chips.map(i))))}_originatesFromChip(i){let a=i.target;for(;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1}_setUpFocusManagement(){var i;this._chips.changes.pipe((0,O.Z)(this._chips)).subscribe(a=>{const u=[];a.forEach(b=>b._getActions().forEach(A=>u.push(A))),this._chipActions.reset(u),this._chipActions.notifyOnChanges()}),this._keyManager=new T.Bu(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(a=>this._skipPredicate(a)),this.chipFocusChanges.pipe((0,S.Q)(this._destroyed)).subscribe(({chip:a})=>{const u=a._getSourceAction(document.activeElement);u&&this._keyManager.updateActiveItem(u)}),null===(i=this._dir)||void 0===i||i.change.pipe((0,S.Q)(this._destroyed)).subscribe(a=>this._keyManager.withHorizontalOrientation(a))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,O.Z)(null),(0,S.Q)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,S.Q)(this._destroyed)).subscribe(i=>{const u=this._chips.toArray().indexOf(i.chip);this._isValidIndex(u)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),a=this._chips.toArray()[i];a.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return c=m,(0,l.A)(m,"\u0275fac",function(i){return new(i||c)}),(0,l.A)(m,"\u0275cmp",n.VBU({type:c,selectors:[["mat-chip-set"]],contentQueries:function(i,a,u){if(1&i&&n.wni(u,H,5),2&i){let b;n.mGM(b=n.lsd())&&(a._chips=b)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,a){1&i&&n.bIt("keydown",function(b){return a._handleKeydown(b)}),2&i&&n.BMQ("role",a.role)},inputs:{disabled:[2,"disabled","disabled",n.L39],role:"role",tabIndex:[2,"tabIndex","tabIndex",p=>null==p?0:(0,n.Udg)(p)]},features:[n.GFd],ngContentSelectors:s,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,a){1&i&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}
1.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})),m})();class ct{constructor(m,p){(0,l.A)(this,"source",void 0),(0,l.A)(this,"value",void 0),this.source=m,this.value=p}}const dt={provide:e.kq,useExisting:(0,n.Rfq)(()=>we),multi:!0};let we=(()=>{var c;class m extends Fe{constructor(...i){var a,u;super(...i),(0,l.A)(this,"_onTouched",()=>{}),(0,l.A)(this,"_onChange",()=>{}),(0,l.A)(this,"_defaultRole","listbox"),(0,l.A)(this,"_pendingInitialValue",void 0),(0,l.A)(this,"_defaultOptions",(0,n.WQX)(o,{optional:!0})),(0,l.A)(this,"_multiple",!1),(0,l.A)(this,"ariaOrientation","horizontal"),(0,l.A)(this,"_selectable",!0),(0,l.A)(this,"compareWith",(b,A)=>b===A),(0,l.A)(this,"required",!1),(0,l.A)(this,"_hideSingleSelectionIndicator",null!==(a=null===(u=this._defaultOptions)||void 0===u?void 0:u.hideSingleSelectionIndicator)&&void 0!==a&&a),(0,l.A)(this,"_value",void 0),(0,l.A)(this,"change",new n.bkB),(0,l.A)(this,"_chips",void 0)}get multiple(){return this._multiple}set multiple(i){this._multiple=i,this._syncListboxProperties()}get selected(){const i=this._chips.toArray().filter(a=>a.selected);return this.multiple?i:i[0]}get selectable(){return this._selectable}set selectable(i){this._selectable=i,this._syncListboxProperties()}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(i=>i.selectionChange)}get chipBlurChanges(){return this._getChipStream(i=>i._onBlur)}get value(){return this._value}set value(i){this.writeValue(i),this._value=i}ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe((0,O.Z)(null),(0,S.Q)(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe((0,S.Q)(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe((0,S.Q)(this._destroyed)).subscribe(i=>{this.multiple||this._chips.forEach(a=>{a!==i.source&&a._setSelectedState(!1,!1,!1)}),i.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const i=this._getFirstSelectedChip();i&&!i.disabled?i.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(i){this._chips?this._setSelectionByValue(i,!1):null!=i&&(this._pendingInitialValue=i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_setSelectionByValue(i,a=!0){this._clearSelection(),Array.isArray(i)?i.forEach(u=>this._selectValue(u,a)):this._selectValue(i,a)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(i){i.keyCode===y.wn&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let i=null;i=Array.isArray(this.selected)?this.selected.map(a=>a.value):this.selected?this.selected.value:void 0,this._value=i,this.change.emit(new ct(this,i)),this._onChange(i),this._changeDetectorRef.markForCheck()}_clearSelection(i){this._chips.forEach(a=>{a!==i&&a.deselect()})}_selectValue(i,a){const u=this._chips.find(b=>null!=b.value&&this.compareWith(b.value,i));return u&&(a?u.selectViaInteraction():u.select()),u}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(i=>{i._chipListMultiple=this.multiple,i.chipListSelectable=this._selectable,i._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,i._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(i){return!i.isInteractive}}return c=m,(0,l.A)(m,"\u0275fac",(()=>{let p;return function(a){return(p||(p=n.xGo(c)))(a||c)}})()),(0,l.A)(m,"\u0275cmp",n.VBU({type:c,selectors:[["mat-chip-listbox"]],contentQueries:function(i,a,u){if(1&i&&n.wni(u,Me,5),2&i){let b;n.mGM(b=n.lsd())&&(a._chips=b)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(i,a){1&i&&n.bIt("focus",function(){return a.focus()})("blur",function(){return a._blur()})("keydown",function(b){return a._keydown(b)}),2&i&&(n.Mr5("tabIndex",a.disabled||a.empty?-1:a.tabIndex),n.BMQ("role",a.role)("aria-describedby",a._ariaDescribedby||null)("aria-required",a.role?a.required:null)("aria-disabled",a.disabled.toString())("aria-multiselectable",a.multiple)("aria-orientation",a.ariaOrientation),n.AVh("mat-mdc-chip-list-disabled",a.disabled)("mat-mdc-chip-list-required",a.required))},inputs:{multiple:[2,"multiple","multiple",n.L39],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",n.L39],compareWith:"compareWith",required:[2,"required","required",n.L39],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",n.L39],value:"value"},outputs:{change:"change"},features:[n.Jv_([dt]),n.GFd,n.Vt3],ngContentSelectors:s,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,a){1&i&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}
1.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})),m})(),pt=(()=>{var c;class m{}return c=m,(0,l.A)(m,"\u0275fac",function(i){return new(i||c)}),(0,l.A)(m,"\u0275mod",n.$C({type:c})),(0,l.A)(m,"\u0275inj",n.G2t({providers:[x.es,{provide:o,useValue:{separatorKeyCodes:[y.Fm]}}],imports:[x.yE,x.pZ,x.yE]})),m})()}}]);
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.