1"use strict";(self.webpackChunkccweb=self.webpackChunkccweb||[]).push([[4232],{7445:(Z,D,c)=>{c.d(D,{N:()=>f,f:()=>a});var i=c(553),I=c(7398),s=c(5879),v=c(9862);let f=(()=>{class y{constructor(n){this.http=n}getAssetTypesWithoutItems$(n=!1){return this.http.get(i.N.baseUrl+"/api/AssetTypes").pipe((0,I.U)(b=>b.filter(T=>n||!T.isDeleted)))}getAssetTypeByIdWithPagination$(n,b,T=1,k=""){return this.http.get(i.N.baseUrl+"/api/AssetTypes/"+n,{params:{page:T,take:50,searchedItem:b,hierarchyItemId:k}})}getAssetTypeById$(n){return this.http.get(i.N.baseUrl+"/api/AssetTypes/"+n)}addAssetType$(n){return this.http.post(i.N.baseUrl+"/api/AssetTypes",n)}updateAssetType$(n){return this.http.post(i.N.baseUrl+"/api/AssetTypes/"+n.id,n)}deleteAssetType$(n){return this.http.delete(i.N.baseUrl+"/api/AssetTypes",{params:{id:n.id,deleted:!0}})}static#e=this.\u0275fac=function(b){return new(b||y)(s.LFG(v.eN))};static#t=this.\u0275prov=s.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),a=(()=>{class y{constructor(n){this.http=n}addAsset$(n){return this.http.post(i.N.baseUrl+"/api/Assets",n)}addAssetsList$(n){return this.http.post(i.N.baseUrl+"/api/Assets/list",n)}updateAsset$(n){return this.http.post(i.N.baseUrl+"/api/Assets/"+n.id,n)}deleteAsset$(n){return this.http.delete(i.N.baseUrl+"/api/Assets",{params:{id:n.id,deleted:!0}})}static#e=this.\u0275fac=function(b){return new(b||y)(s.LFG(v.eN))};static#t=this.\u0275prov=s.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},9280:(Z,D,c)=>{c.d(D,{N:()=>I,B:()=>v});var i=c(2894);class I{static isNowDefaultValue(a){return!!a&&a===i.X3.Now}static isCustomDefaultValue(a){return!!a&&a!==i.X3.Now}static isDateLogic(a){return!!a&&a===i.S8.Date}static isTimeLogic(a){return!!a&&a===i.S8.Time}}var s=c(6428);class v{static isSectionField({fieldType:a}){return!!a&&a===s.ii.Section}static isLocationField({fieldType:a}){return!!a&&a===s.ii.Location}static isTableField({fieldType:a}){return!!a&&a===s.ii.Table}static isBarcodeField({fieldType:a}){return!!a&&a===s.ii.Barcode}static isIotDeviceDataPointField({fieldType:a}){return!!a&&a===s.ii.IotDeviceDataPoint}static isIotDeviceCmdField({fieldType:a}){return!!a&&a===s.ii.IotDeviceCmd}static isIotDeviceChartField({fieldType:a}){return!!a&&a===s.ii.IotDeviceChart}static isSingleLineTextField({fieldType:a}){return!!a&&a===s.ii.SingleLineText}static isNumericField({fieldType:a}){return!!a&&a===s.ii.Numeric}static isMultiLineTextField({fieldType:a}){return!!a&&a===s.ii.MultiLineText}static isBooleanField({fieldType:a}){return!!a&&a===s.ii.Boolean}static isTrileanField({fieldType:a}){return!!a&&a===s.ii.Trilean}static isPhotoField({fieldType:a}){return!!a&&a===s.ii.Photo}static isLabelField({fieldType:a}){return!!a&&a===s.ii.Label}static isSingleSelectField({fieldType:a}){return!!a&&a===s.ii.SingleSelect}static isMultiSelectField({fieldType:a}){return!!a&&a===s.ii.MultiSelect}static isDateTimeField({fieldType:a}){return!!a&&a===s.ii.DateTime}static isSignatureField({fieldType:a}){return!!a&&a===s.ii.Signature}static isInsertFileField({fieldType:a}){return!!a&&a===s.ii.InsertFile}static isImageViewerField({fieldType:a}){return!!a&&a===s.ii.ImageViewer}static isWebViewerField({fieldType:a}){return!!a&&a===s.ii.WebViewer}static isApprovalSectionField({fieldType:a}){return!!a&&a===s.ii.ApprovalSection}static isTriggerSectionField({fieldType:a}){return!!a&&a===s.ii.TriggerSection}static isInvisibleField({fieldType:a}){return!!a&&a===s.ii.Invisible}static isCustomScriptField({fieldType:a}){return!!a&&a===s.ii.CustomScript}static isTaskField({fieldType:a}){return!!a&&a===s.ii.Task}}},6428:(Z,D,c)=>{c.d(D,{Ip:()=>i,Tv:()=>I,b$:()=>e,b3:()=>f,bA:()=>v,ii:()=>y,kT:()=>s,xT:()=>a});var i=function(n){return n.Sum="sum",n.Count="count",n.Average="average",n}(i||{}),I=function(n){return n.IMG="img",n.XLS="xls",n.DOC="doc",n.PDF="pdf",n.PPT="ppt",n.TXT="txt",n.ACA="aca",n.MP4="mp4",n}(I||{}),s=function(n){return n.pdf="fa-file-pdf",n.rtf="fa-file-word",n.docx="fa-file-word",n.doc="fa-file-word",n.ppt="fa-file-powerpoint",n.pptx="fa-file-powerpoint",n.xls="fa-file-excel",n.xlsx="fa-file-excel",n.csv="fa-file-excel",n.gif="fa-file-image",n.jpg="fa-file-image",n.png="fa-file-image",n.txt="fa-file-alt",n.dwf="fa-file-image",n.dwg="fa-file-image",n.mp4="fa-file-video",n}(s||{}),v=function(n){return n.Section="Section",n.Table="Table",n.Trigger="TriggerSection",n.Approval="ApprovalSection",n}(v||{}),f=function(n){return n.DateTime="0",n.DateOnly="1",n.TimeOnly="2",n.DateTime24h="3",n.TimeOnly24h="4",n}(f||{}),a=function(n){return n[n.Optional=0]="Optional",n[n.Mandatory=1]="Mandatory",n[n.Regex=2]="Regex",n[n.Email=3]="Email",n}(a||{}),y=function(n){return n.Section="Section",n.Location="Location",n.Table="Table",n.Barcode="Barcode",n.IotDeviceDataPoint="IotDeviceDataPoint",n.IotDeviceCmd="IotDeviceCmd",n.IotDeviceChart="IotDeviceChart",n.SingleLineText="SingleLineText",n.Numeric="Numeric",n.MultiLineText="MultiLineText",n.Boolean="Boolean",n.Trilean="Trilean",n.Photo="Photo",n.Label="Label",n.Hierarchy="Hierarchy",n.Asset="Asset",n.SingleSelect="SingleSelect",n.MultiSelect="MultiSelect",n.DateTime="DateTime",n.Signature="Signature",n.InsertFile="InsertFile",n.ImageViewer="ImageViewer",n.WebViewer="WebViewer",n.ApprovalSection="ApprovalSection",n.TriggerSection="TriggerSection",n.Invisible="Invisible",n.CustomScript="CustomScript",n.Task="Task",n.AddChild="AddChild",n}(y||{}),e=function(n){return n.None="",n.Section="Vertical Section",n.Table="Horizontal Section",n.Barcode="Barcode / QR Scanner",n.IotDeviceChart="IoT Device - Chart Data",n.IotDeviceDataPoint="IoT Device - Get Data Point",n.IotDeviceCmd="IoT Device - Send Command",n.Boolean="Yes-No/True-False/On-Off",n.TriggerSection="Trigger Section",n.Trilean="Yes-No-N/A",n.SingleLineText="Single Line Text",n.MultiLineText="Multiple Line Text",n.Hierarchy="Hierarchy",n.Asset="Asset",n.SingleSelect="Multiple Choice (1 answer)",n.MultiSelect="Multiple Choice (1 or more answers)",n.DateTime="Date/Time",n.Task="Create Task",n.InsertFile="Attach File",n.ImageViewer="Web Image",n.WebViewer="Website Link",n.Signature="Digital Signature",n.Photo="Add a Photo",n.Numeric="Number/Decimal",n.CustomScript="Custom Script",n.ApprovalSection="Approval Section",n.Invisible="Invisible",n.Label="Label",n.Location="Location",n.AddChild="Add Child",n}(e||{})},3028:(Z,D,c)=>{c.d(D,{k:()=>H});var i=c(655),I=c(1791),s=c(6428),v=c(3537),f=c(2193),a=c(9397),y=c(5186),e=c(5879),n=c(5619);let b=(()=>{class g{constructor(){this.currentAssigneesDropdownId=new n.X({})}static#e=this.\u0275fac=function(_){return new(_||g)};static#t=this.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();var T=c(6814),k=c(2541),U=c(1086);function C(g,h){if(1&g&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&g){const o=e.oxw(2);e.ekj("bg-danger",o.disabledUserExist),e.xp6(1),e.Oqu(o.assigneesLength)}}function u(g,h){if(1&g&&(e.ynx(0),e.TgZ(1,"button",11),e._uU(2," Assigned To "),e.YNc(3,C,2,3,"span",12),e.qZA(),e.BQk()),2&g){const o=e.oxw();e.xp6(3),e.Q6J("ngIf",o.assigneesLength)}}function p(g,h){1&g&&(e.ynx(0),e._UZ(1,"i",15),e._uU(2," Unassigned "),e.BQk())}function d(g,h){if(1&g&&e._UZ(0,"i",20),2&g){const o=e.oxw(4);e.ekj("fa-user","Users"===o.assignees[0][0].group)("fa-users","Teams"===o.assignees[0][0].group)}}function M(g,h){1&g&&(e.TgZ(0,"span"),e._uU(1,", "),e.qZA())}function w(g,h){if(1&g&&(e.TgZ(0,"span")(1,"strong",21),e._uU(2),e.qZA(),e.YNc(3,M,2,0,"span",2),e.qZA()),2&g){const o=h.$implicit,_=h.index,E=h.last;e.ekj("pe-1",E),e.xp6(2),e.Oqu(o.name),e.xp6(1),e.Q6J("ngIf",!E&&1!==_)}}function A(g,h){if(1&g&&(e.ynx(0),e.YNc(1,d,1,4,"i",18),e.YNc(2,w,4,4,"span",19),e.ALo(3,"slice"),e.BQk()),2&g){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.assignees[0][0].id),e.xp6(1),e.Q6J("ngForOf",e.Dn7(3,3,o.assignees[0],0,2))("ngForTrackBy",o.trackBy)}}function O(g,h){if(1&g&&e._UZ(0,"i",20),2&g){const o=e.oxw(4);e.ekj("fa-user","Users"===o.assignees[1][0].group)("fa-users","Teams"===o.assignees[1][0].group)}}function F(g,h){1&g&&(e.TgZ(0,"span"),e._uU(1,", "),e.qZA())}function G(g,h){if(1&g&&(e.TgZ(0,"span")(1,"strong",21),e._uU(2),e.qZA(),e.YNc(3,F,2,0,"span",2),e.qZA()),2&g){const o=h.$implicit,_=h.index,E=h.last;e.xp6(2),e.Oqu(o.name),e.xp6(1),e.Q6J("ngIf",!E&&1!==_)}}function Q(g,h){if(1&g&&(e.ynx(0),e.YNc(1,O,1,4,"i",18),e.YNc(2,G,4,2,"span",22),e.ALo(3,"slice"),e.BQk()),2&g){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.assignees[1][0].id),e.xp6(1),e.Q6J("ngForOf",e.Dn7(3,3,o.assignees[1],0,2))("ngForTrackBy",o.trackBy)}}function V(g,h){if(1&g&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&g){const o=e.oxw(3);e.xp6(1),e.hij("+ ",o.assigneesLength-2,"")}}function $(g,h){if(1&g&&(e.ynx(0),e._UZ(1,"i",16),e._uU(2," Assigned to "),e.TgZ(3,"span"),e.YNc(4,A,4,7,"ng-container",2),e.YNc(5,Q,4,7,"ng-container",2),e.qZA(),e.YNc(6,V,2,1,"span",17),e.BQk()),2&g){const o=e.oxw(2);e.xp6(4),e.Q6J("ngIf",o.assignees[0].length>0),e.xp6(1),e.Q6J("ngIf",o.assignees[1].length>0&&o.assignees[0].length<2),e.xp6(1),e.Q6J("ngIf",o.assigneesLength>2)}}function Y(g,h){if(1&g&&(e.ynx(0),e.TgZ(1,"button",14),e.YNc(2,p,3,0,"ng-container",2),e.YNc(3,$,7,3,"ng-container",2),e.qZA(),e.BQk()),2&g){const o=e.oxw();e.xp6(1),e.Q6J("disabled",!o.assigneesLength&&!o.assigneesForm.value.parsedTypeLogic.assignable||o.assigneesForm.value.fieldType!==o.SectionFieldType.ApprovalSection&&o.assigneesForm.value.status===o.TaskStatus.Closed),e.xp6(1),e.Q6J("ngIf",!o.assigneesLength),e.xp6(1),e.Q6J("ngIf",o.assigneesLength)}}function q(g,h){if(1&g&&(e.TgZ(0,"div",27),e._UZ(1,"i",28),e.TgZ(2,"span",29),e._uU(3),e.qZA(),e._UZ(4,"i",30),e.qZA()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.ekj("fa-user","Users"===o.group)("fa-users","Teams"===o.group),e.xp6(2),e.Oqu(o.group)}}function X(g,h){if(1&g){const o=e.EpF();e.TgZ(0,"div",33),e._UZ(1,"i",34),e.TgZ(2,"div",35)(3,"p",36),e._uU(4),e.qZA(),e.TgZ(5,"small",37),e._uU(6),e.qZA()(),e.TgZ(7,"button",38),e.NdJ("click",function(){e.CHM(o);const E=e.oxw(2).$implicit,z=e.oxw(2);return e.KtG(z.removeAssignee(E.id,"teams"))}),e._UZ(8,"i",39),e.qZA()()}if(2&g){const o=e.oxw(2).$implicit,_=e.oxw(2);e.xp6(4),e.Oqu(o.name),e.xp6(2),e.hij("(",o.userCount," users)"),e.xp6(1),e.Q6J("disabled",_.disabled)}}function ee(g,h){1&g&&(e.TgZ(0,"div",40),e._uU(1,"No teams assigned"),e.qZA())}function te(g,h){if(1&g&&(e.ynx(0),e.YNc(1,X,9,3,"div",31),e.YNc(2,ee,2,0,"div",32),e.BQk()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",o.name),e.xp6(1),e.Q6J("ngIf",!o.name)}}function ie(g,h){if(1&g&&(e.ynx(0),e._UZ(1,"i",41),e.TgZ(2,"div",35)(3,"p",36),e._uU(4),e.qZA(),e.TgZ(5,"small",37),e._uU(6),e.qZA()(),e.BQk()),2&g){const o=e.oxw(3).$implicit;e.xp6(4),e.Oqu(o.name),e.xp6(2),e.Oqu(o.email)}}function ne(g,h){1&g&&(e.ynx(0),e._UZ(1,"i",42),e.TgZ(2,"div",43)(3,"p",36),e._uU(4,"Remove this user"),e.qZA(),e.TgZ(5,"small",37),e._uU(6,"This user is disabled"),e.qZA()(),e.BQk())}function se(g,h){if(1&g){const o=e.EpF();e.TgZ(0,"div",33),e.YNc(1,ie,7,2,"ng-container",2),e.YNc(2,ne,7,0,"ng-container",2),e.TgZ(3,"button",38),e.NdJ("click",function(){e.CHM(o);const E=e.oxw(2).$implicit,z=e.oxw(2);return e.KtG(z.removeAssignee(E.id,"users"))}),e._UZ(4,"i",39),e.qZA()()}if(2&g){const o=e.oxw(2).$implicit,_=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!o.isDisabled),e.xp6(1),e.Q6J("ngIf",o.isDisabled),e.xp6(1),e.Q6J("disabled",_.disabled)}}function ae(g,h){1&g&&(e.TgZ(0,"div",40),e._uU(1,"No users assigned"),e.qZA())}function re(g,h){if(1&g&&(e.ynx(0),e.YNc(1,se,5,3,"div",31),e.YNc(2,ae,2,0,"div",32),e.BQk()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",o.name),e.xp6(1),e.Q6J("ngIf",!o.name)}}function ge(g,h){if(1&g&&(e.YNc(0,q,5,5,"div",25),e.TgZ(1,"div",26),e.YNc(2,te,3,2,"ng-container",2),e.YNc(3,re,3,2,"ng-container",2),e.qZA()),2&g){const o=h.$implicit;e.Q6J("ngIf",0===h.index),e.xp6(2),e.Q6J("ngIf","Teams"===o.group),e.xp6(1),e.Q6J("ngIf","Users"===o.group)}}function oe(g,h){if(1&g&&(e.TgZ(0,"ff-simple-select-dropdown-panel",23),e.YNc(1,ge,4,3,"ng-template",null,24,e.W1O),e.qZA()),2&g){const o=e.oxw();e.Q6J("items",o.assignees)("searchEnabled",!1)}}function ce(g,h){1&g&&(e.TgZ(0,"span",44),e._uU(1,"|"),e.qZA())}function de(g,h){1&g&&(e.ynx(0),e._uU(1," Add "),e._UZ(2,"i",45),e.BQk())}function l(g,h){1&g&&(e.ynx(0),e._UZ(1,"i",46),e._uU(2," Re-assign "),e.BQk())}function m(g,h){1&g&&(e.TgZ(0,"div",47),e._UZ(1,"i",48),e.TgZ(2,"span",49),e._uU(3,"Loading..."),e.qZA()())}function t(g,h){1&g&&(e.TgZ(0,"label",53),e._uU(1,"Select the Teams and/or Users that will be in charge of completing this section."),e.qZA())}function r(g,h){if(1&g&&(e.TgZ(0,"div",27),e._UZ(1,"i",28),e.TgZ(2,"span",29),e._uU(3),e.qZA(),e._UZ(4,"i",30),e.qZA()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.ekj("fa-user","Users"===o.group)("fa-users","Teams"===o.group),e.xp6(2),e.Oqu(o.group)}}function x(g,h){if(1&g){const o=e.EpF();e.TgZ(0,"button",55),e.NdJ("click",function(){e.CHM(o);const E=e.oxw(2).$implicit,z=e.oxw(3);return e.KtG(z.addAssignee(E.id,"teams"))}),e._UZ(1,"i",34),e.TgZ(2,"div",56)(3,"p",36),e._uU(4),e.qZA(),e.TgZ(5,"small",37),e._uU(6),e.qZA()()()}if(2&g){const o=e.oxw(2).$implicit;e.xp6(4),e.Oqu(o.name),e.xp6(2),e.hij("(",o.userCount," users)")}}function L(g,h){1&g&&(e.ynx(0),e._uU(1,"No teams assigned"),e.BQk())}function B(g,h){if(1&g&&(e.ynx(0),e.YNc(1,x,7,2,"button",54),e.YNc(2,L,2,0,"ng-container",2),e.BQk()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",o.name),e.xp6(1),e.Q6J("ngIf",!o.name)}}function R(g,h){if(1&g){const o=e.EpF();e.TgZ(0,"button",55),e.NdJ("click",function(){e.CHM(o);const E=e.oxw(2).$implicit,z=e.oxw(3);return e.KtG(z.addAssignee(E.id,"users"))}),e._UZ(1,"i",41),e.TgZ(2,"div",56)(3,"p",36),e._uU(4),e.qZA(),e.TgZ(5,"small",37),e._uU(6),e.qZA()()()}if(2&g){const o=e.oxw(2).$implicit;e.xp6(4),e.Oqu(o.name),e.xp6(2),e.Oqu(o.email)}}function S(g,h){1&g&&(e.ynx(0),e._uU(1,"No users assigned"),e.BQk())}function N(g,h){if(1&g&&(e.ynx(0),e.YNc(1,R,7,2,"button",54),e.YNc(2,S,2,0,"ng-container",2),e.BQk()),2&g){const o=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",o.name),e.xp6(1),e.Q6J("ngIf",!o.name)}}function J(g,h){if(1&g&&(e.YNc(0,r,5,5,"div",25),e.YNc(1,B,3,2,"ng-container",2),e.YNc(2,N,3,2,"ng-container",2)),2&g){const o=h.$implicit;e.Q6J("ngIf",0===h.index),e.xp6(1),e.Q6J("ngIf","Teams"===o.group),e.xp6(1),e.Q6J("ngIf","Users"===o.group)}}function W(g,h){if(1&g&&(e.TgZ(0,"ff-simple-select-dropdown-panel",51),e.YNc(1,t,2,0,"ng-template",null,52,e.W1O),e.YNc(3,J,3,3,"ng-template",null,24,e.W1O),e.qZA()),2&g){const o=e.oxw(2);e.Q6J("items",o.assignableItems)}}function j(g,h){if(1&g&&(e.ynx(0),e.YNc(1,W,5,1,"ff-simple-select-dropdown-panel",50),e.BQk()),2&g){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.assignableItems)}}let H=class le{constructor(h){this.assigneesDropdownService=h,this.showList=!1,this.disabled=!1,this.assigneesDropdownLoaded=!1,this.disabledUserExist=!1,this.dropdownId="",this.AssigneesPages=y.R,this.TaskStatus=v.h,this.SectionFieldType=s.ii}ngOnInit(){this.fromPage||(this.fromPage=this.assigneesForm.value.id),this.getDropdownUniqueID(),this.updateAssignees(),this.updateAssignableItems(),this.assigneesForm.get("parsedAssignees")?.valueChanges.pipe((0,a.b)(h=>{this.assigneesForm.get("assignees")?.setValue(JSON.stringify(h)),this.updateAssignees()}),(0,I.t)(this)).subscribe(),this.clearAssigneesControl&&this.assigneesForm?.get("parsedTypeLogic")?.get(this.clearAssigneesControl)?.valueChanges.pipe((0,a.b)(()=>this.dropAssignees()),(0,I.t)(this)).subscribe()}getDropdownUniqueID(){const h=(new Date).getTime(),o=Math.floor(1e3*Math.random());this.dropdownId=`${h}${o}`}
1handleDropdownState(h){if(h)if(this.assigneesDropdownLoaded=!1,this.assigneesDropdownService.currentAssigneesDropdownId.value?.[this.fromPage]===this.dropdownId)this.assigneesDropdownLoaded=!0;else{this.assigneesDropdownService.currentAssigneesDropdownId.next({[this.fromPage]:this.dropdownId});let o=200;this.assignees&&(o=this.assignableItems[0]?.length+this.assignableItems[1]?.length||0),setTimeout(()=>{this.assigneesDropdownLoaded=!0},o)}}dropAssignees(){const[h,o]=this.getParsedAssignees();o.setValue({teams:[],users:[]}),this.assigneesForm?.get("assignees")?.setValue(JSON.stringify({teams:[],users:[]})),this.updateAssignees()}addAssignee(h,o){const[_]=this.getParsedAssignees(),E=[..._[o],h];this.updateParsedAssigneesForm(o,E),this.updateAssignees(),this.updateAssignableItems(h),this.assigneesForm.markAsDirty()}removeAssignee(h,o){const[_]=this.getParsedAssignees(),E=_[o].filter(z=>z!==h);this.updateParsedAssigneesForm(o,E),this.updateAssignees(),this.updateAssignableItems(),this.assigneesForm.markAsDirty()}updateAssignees(){const[h]=this.getParsedAssignees(),o=this.users.filter(z=>h?.users?.includes(z.id)).map(z=>({...z,name:z.fullName,group:"Users"})),_=this.teams.filter(z=>h?.teams?.includes(z.id)).map(z=>({...z,name:z.teamName,group:"Teams"}));this.assignees=Object.values(f.BB.groupByKey([...o,..._],z=>z.group)),this.assignees.length?1===this.assignees.length&&(this.assignees=[...this.assignees,[{id:"",group:"Users"===this.assignees[0][0].group?"Teams":"Users"}]]):this.assignees=[[{id:"",group:"Teams"}],[{id:"",group:"Users"}]],this.assigneesLength=this.assignees.flat(1).filter(z=>z.id).length;const E=this.assignees.find(z=>"Users"===z?.[0]?.group)||[];this.disabledUserExist=!!E.filter(z=>z?.isDisabled)?.length}updateAssignableItems(h=""){const[o]=this.getParsedAssignees(),_=this.users?.filter(P=>!o?.users.includes(P.id)),E=this.teams?.filter(P=>!o?.teams.includes(P.id)),z=_.filter(P=>P.email&&P.id&&!P.isDisabled&&P.id!==h).map(P=>({...P,name:P.fullName,group:"Users"})),K=E.filter(P=>P.teamName&&P.isActive&&P.userCount&&P.id!==h).map(P=>({...P,name:P.teamName,group:"Teams"}));this.assignableItems=Object.values(f.BB.groupByKey([...z,...K],P=>P.group))}updateParsedAssigneesForm(h,o){const[_,E]=this.getParsedAssignees();E?.setValue({...E.value,[h]:o})}getParsedAssignees(){return[this.assigneesForm.value.parsedAssignees,this.assigneesForm.get("parsedAssignees")]}trackBy(h){return h}static#e=this.\u0275fac=function(o){return new(o||le)(e.Y36(b))};static#t=this.\u0275cmp=e.Xpm({type:le,selectors:[["ff-handle-assignees"]],inputs:{assigneesForm:"assigneesForm",clearAssigneesControl:"clearAssigneesControl",users:"users",teams:"teams",fromPage:"fromPage",showList:"showList",disabled:"disabled"},decls:16,vars:13,consts:[[1,"d-flex","flex-row","align-items-center"],["ngbDropdown","","container","body"],[4,"ngIf"],["ngbDropdownMenu","",1,"p-0","shadow","mw-250","overflow-hidden"],[3,"items","searchEnabled",4,"ngIf"],["ngbDropdown","",3,"openChange"],["addAssigneesDropdown","ngbDropdown"],["class","text-light px-2",4,"ngIf"],["type","button","ngbDropdownToggle","",1,"btn","btn-sm","btn-light","fs-13","lh-base","border-0","no-dropdown-icon",3,"disabled"],["ngbDropdownMenu","",1,"p-0","shadow","mw-250"],["class","text-center py-3",4,"ngIf"],["type","button","ngbDropdownToggle","",1,"btn","btn-sm","btn-light","fs-13","lh-base","border-0"],["class","badge bg-primary text-white custom-badge",3,"bg-danger",4,"ngIf"],[1,"badge","bg-primary","text-white","custom-badge"],["ngbDropdownToggle","",1,"btn","btn-sm","btn-light","fs-13","lh-base","border-0",3,"disabled"],[1,"fa","fa-user-times","text-grey"],["ngbTooltip","Clicking 'Assigned to' will display a list of assignees\n that will receive a task notification as soon as this activity is submitted.","placement","left",1,"fa","fa-question-circle","hintIcon"],["class","badge bg-primary text-white custom-badge",4,"ngIf"],["class","fa fa-custom",3,"fa-user","fa-users",4,"ngIf"],[3,"pe-1",4,"ngFor","ngForOf","ngForTrackBy"],[1,"fa","fa-custom"],[1,"hover-title"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"items","searchEnabled"],["itemsTemplate",""],["class","dropdown-header d-flex align-items-center bg-primary-light py-1 px-2 position-relative",4,"ngIf"],[1,"d-flex","flex-row","p-1","bg-transparent"],[1,"dropdown-header","d-flex","align-items-center","bg-primary-light","py-1","px-2","position-relative"],[1,"text-primary-dark","px-1","fas"],[1,"flex-grow-1","text-white","fs-12"],[1,"fa","fa-caret-down","fa-2x","position-absolute","top-100","start-0","lh-1","translate-middle-y","text-primary-light","ps-2"],["class","position-relative text-start p-0 w-100",4,"ngIf"],["class","w-100 p-2 fs-13 text-grey-dark",4,"ngIf"],[1,"position-relative","text-start","p-0","w-100"],[1,"fa","fa-users","px-2","lh-1","text-info","position-absolute","start-0","top-50","translate-middle-y"],[1,"px-4","mx-2"],[1,"m-0","fs-13","lh-sm","text-truncate"],[1,"text-grey","fs-11","lh-sm","d-block","text-truncate"],["type","button",1,"btn","btn-outline-danger","btn-sm","border-0","position-absolute","end-0","top-50","translate-middle-y",3,"disabled","click"],[1,"far","fa-tras
1h-alt","fa-lg"],[1,"w-100","p-2","fs-13","text-grey-dark"],[1,"fa","fa-user","px-2","lh-1","text-info","position-absolute","start-0","top-50","translate-middle-y"],[1,"fa","fa-exclamation-triangle","px-2","lh-1","text-danger","position-absolute","start-0","top-50","translate-middle-y"],[1,"px-4","mx-2","text-danger"],[1,"text-light","px-2"],[1,"fas","fa-plus"],["ngbTooltip","Click on 'Re-Assign' to assign additional users & teams.","placement","left",1,"fa","fa-question-circle","hintIcon"],[1,"text-center","py-3"],[1,"spinner-border","text-grey"],[1,"visually-hidden"],["searchName","name","searchTitle","name",3,"items",4,"ngIf"],["searchName","name","searchTitle","name",3,"items"],["searchDescription",""],[1,"px-3","pt-3","pb-2","fs-11","lh-base"],["ngbDropdownItem","","type","button","class","text-start p-1 position-relative",3,"click",4,"ngIf"],["ngbDropdownItem","","type","button",1,"text-start","p-1","position-relative",3,"click"],[1,"ps-4"]],template:function(o,_){1&o&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,u,4,1,"ng-container",2),e.YNc(3,Y,4,3,"ng-container",2),e.TgZ(4,"div",3),e.YNc(5,oe,3,2,"ff-simple-select-dropdown-panel",4),e.qZA()(),e.TgZ(6,"div",5,6),e.NdJ("openChange",function(z){return _.handleDropdownState(z)}),e.ynx(8),e.YNc(9,ce,2,0,"span",7),e.TgZ(10,"button",8),e.YNc(11,de,3,0,"ng-container",2),e.YNc(12,l,3,0,"ng-container",2),e.qZA(),e.BQk(),e.TgZ(13,"div",9),e.YNc(14,m,4,0,"div",10),e.YNc(15,j,2,1,"ng-container",2),e.qZA()()()),2&o&&(e.ekj("mb-1",_.fromPage===_.AssigneesPages.ReportEdit),e.xp6(2),e.Q6J("ngIf",_.fromPage===_.AssigneesPages.FormBuilder),e.xp6(1),e.Q6J("ngIf",_.fromPage===_.AssigneesPages.ReportEdit),e.xp6(2),e.Q6J("ngIf",_.assignees),e.xp6(4),e.Q6J("ngIf",_.fromPage===_.AssigneesPages.FormBuilder),e.xp6(1),e.ekj("reassignee-btn",_.fromPage===_.AssigneesPages.ReportEdit),e.Q6J("disabled",_.disabled||_.fromPage===_.AssigneesPages.ReportEdit&&_.assigneesForm.value.fieldType!==_.SectionFieldType.ApprovalSection&&_.assigneesForm.value.status===_.TaskStatus.Closed),e.xp6(1),e.Q6J("ngIf",_.fromPage===_.AssigneesPages.FormBuilder),e.xp6(1),e.Q6J("ngIf",_.fromPage===_.AssigneesPages.ReportEdit&&(null==_.assigneesForm.value.parsedTypeLogic?null:_.assigneesForm.value.parsedTypeLogic.assignable)),e.xp6(2),e.Q6J("ngIf",!_.assigneesDropdownLoaded),e.xp6(1),e.Q6J("ngIf",_.assigneesDropdownLoaded&&_.assigneesDropdownService.currentAssigneesDropdownId.value[_.fromPage]===_.dropdownId))},dependencies:[T.sg,T.O5,k.l,U.jt,U.iD,U.Vi,U.TH,U._L,T.OU],styles:[".btn.btn-light[_ngcontent-%COMP%]:not(:hover){box-shadow:none}.dropdown-toggle[_ngcontent-%COMP%]{transition:none!important}.fa-custom[_ngcontent-%COMP%]{color:#77bbec;margin-right:3px}.hover-title[_ngcontent-%COMP%]{font-style:normal;font-weight:400;color:#333}.hover-container[_ngcontent-%COMP%]:hover .hover-title[_ngcontent-%COMP%]{color:#77bbec}.custom-badge[_ngcontent-%COMP%]{background-color:#77bbec;font-family:helvetica,Arial;font-style:normal;font-size:12px;padding:1px 4px;display:inline-block;font-weight:400;margin:0 2px 0 3px}.btn-item[_ngcontent-%COMP%]{border:0px}.btn-item[_ngcontent-%COMP%]:hover{background:transparent;border:0px}.btn-trash[_ngcontent-%COMP%]{color:#727272}.btn-trash[_ngcontent-%COMP%]:hover{background:transparent;color:#f45454}.tooltip-delete[_ngcontent-%COMP%] .tooltip-inner[_ngcontent-%COMP%]{background-color:#f45454;width:50px}.tooltip-delete.bs-tooltip-left[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]:before{border-left-color:#f45454}.no-result[_ngcontent-%COMP%]{color:#777;line-height:22px;font-size:14px;padding:10px}"]})};H=(0,i.gn)([(0,I.c)()],H)},4421:(Z,D,c)=>{c.d(D,{T:()=>a});var i=c(6814),I=c(5907),s=c(1086),v=c(3883),f=c(5879);let a=(()=>{class y{static#e=this.\u0275fac=function(b){return new(b||y)};static#t=this.\u0275mod=f.oAB({type:y});static#i=this.\u0275inj=f.cJS({imports:[i.ez,I.s,s.XC,s.HK,v.D]})}return y})()},5186:(Z,D,c)=>{c.d(D,{R:()=>i});var i=function(I){return I.FormBuilder="FormBuilder",I.ReportEdit="ReportEdit",I}(i||{})},8929:(Z,D,c)=>{c.d(D,{_:()=>v});var i=c(553),I=c(5879),s=c(9862);let v=(()=>{class f{constructor(y){this.http=y}getHierarchies$(y=!1){return this.http.get(i.N.baseUrl+"/api/Hierarchy",{params:{showDeleted:y}})}getHierarchiesWorkflowsAndAssetTypes$(y){return this.http.get(i.N.baseUrl+"/api/Hierarchy/"+y.id+"/links")}getHierarchyItemAssetTypes$(y,e){return this.http.get(i.N.baseUrl+"/api/Hierarchy/"+y.id+"/links/"+e)}addHierarchy$(y){return this.http.post(i.N.baseUrl+"/api/Hierarchy",y)}updateHierarchy$(y){return this.http.post(i.N.baseUrl+"/api/Hierarchy/"+y.id,y)}deleteHierarchy$(y){return this.http.delete(i.N.baseUrl+"/api/Hierarchy",{params:{id:y.id,deleted:!0}
1})}static#e=this.\u0275fac=function(e){return new(e||f)(I.LFG(s.eN))};static#t=this.\u0275prov=I.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},9516:(Z,D,c)=>{c.d(D,{_:()=>T});var i=c(5861),I=c(491),s=c(5879),v=c(6814),f=c(3945),a=c(8579),y=c(9858);const e=["autoComplete"];function n(k,U){1&k&&(s.TgZ(0,"div")(1,"small",10),s._uU(2,"Report Location is required."),s.qZA()())}function b(k,U){if(1&k){const C=s.EpF();s.TgZ(0,"div",11)(1,"div",12)(2,"google-map",13),s.NdJ("mapClick",function(p){s.CHM(C);const d=s.oxw();return s.KtG(d.onMarkerDragEnd(p))}),s._UZ(3,"map-marker",14),s.qZA()(),s.TgZ(4,"p",15)(5,"small"),s._UZ(6,"i",16),s._uU(7," Click on the map to update the location ( "),s._UZ(8,"i",17),s._uU(9," ). "),s.qZA()()()}if(2&k){const C=s.oxw();s.xp6(2),s.Q6J("options",C.mapOptions),s.xp6(1),s.Q6J("draggable",!1)("position",C.mapOptions.center)}}let T=(()=>{class k{constructor(C){this.cdr=C,this.readonly=!1,this.updateMainForm=!1,this.required=!1,this.autoCompleteLocation="",this.mapCollapsed=!0,this.mapOptions={center:{lat:0,lng:0},zoom:14}}ngOnChanges(){this.setLocation()}onInputChange(C){C.target.value.trim()||(this.fieldForm.patchValue({itemValue:"none"}),this.mainForm?.patchValue({streetAddress:null,latitude:0,longitude:0}),this.mapOptions={...this.mapOptions,center:{lat:0,lng:0}},this.fieldForm.markAsDirty())}setLocation(){let C=this.fieldForm.value.itemValue||this.fieldForm.value.defaultValue;if(C){if("none"===C)return void(this.autoCompleteLocation="");this.updateMainForm&&(C=`${this.mainForm.value.streetAddress}|${this.mainForm.value.latitude}|${this.mainForm.value.longitude}`),this.autoCompleteLocation=C?.split("|")[0]||"";let u=(+C?.split("|")[1]).toFixed(4),p=(+C?.split("|")[2]).toFixed(4);isNaN(+u)&&isNaN(+p)&&(u=(+this.fieldForm.value.defaultValue?.split("|")[1]).toFixed(4),p=(+this.fieldForm.value.defaultValue?.split("|")[2]).toFixed(4)),this.setCurrentLocation(+u,+p),this.cdr.detectChanges(),this.mainForm?.markAsPristine()}}onAutoCompleteAddressChange(C){const u=C.geometry?.location?.lat().toFixed(4)||"0",p=C.geometry?.location?.lng().toFixed(4)||"0",d=C.formatted_address||"";this.setCurrentLocation(+u,+p),this.updateForms(d+"|"+u+"|"+p,u,p),this.autoCompleteLocation=d}setCurrentLocation(C=null,u=null,p=!1){var d=this;return(0,i.Z)(function*(){const M=d.fieldForm.get("defaultValue")?.value?.split("|")[0];!p&&!C&&!u&&M&&M!==I.a.LocationCurrent&&"Custom"!==M&&"none"!==M&&(yield d.getCoordinatesFromAddress(M).then(w=>{C=w[0],u=w[1]}).catch(()=>{})),C&&u?(d.mapOptions={...d.mapOptions,center:{lat:C,lng:u}},d.updateForms(M+"|"+C+"|"+u,C,u)):(navigator.geolocation.getCurrentPosition(w=>{d.updateLocationNameByCoordinates(+w.coords.latitude.toFixed(4),+w.coords.longitude.toFixed(4)),d.mapOptions={...d.mapOptions,center:{lat:+w.coords.latitude.toFixed(4),lng:+w.coords.longitude.toFixed(4)}},d.updateForms(M+"|"+w.coords.latitude.toFixed(4)+"|"+w.coords.longitude.toFixed(4),w.coords.latitude.toFixed(4),w.coords.longitude.toFixed(4))}),setTimeout(()=>{d.autoCompleteRef&&(d.autoCompleteRef.el.nativeElement.value=d.autoCompleteLocation)})),d.mainForm?.markAsDirty(),d.fieldForm.markAsDirty()})()}getCoordinatesFromAddress(C){return new Promise((u,p)=>{(new google.maps.Geocoder).geocode({address:C},function(M,w){if(w===google.maps.GeocoderStatus.OK&&M){const A=M[0].geometry.location.lat().toFixed(4),O=M[0].geometry.location.lng().toFixed(4);u([+A,+O])}else p([0,0])})})}openMap(){!this.fieldForm.value.defaultValue&&!this.fieldForm.value.itemValue&&this.setCurrentLocation(),this.mapCollapsed=!this.mapCollapsed}onMarkerDragEnd(C){if(this.readonly)return;C.latLng&&this.setCurrentLocation(+C.latLng.lat().toFixed(4),+C.latLng.lng().toFixed(4));const{latLng:u}=C,p=u?.lat(),d=u?.lng();p&&d&&this.updateLocationNameByCoordinates(p,d)}updateLocationNameByCoordinates(C,u){(new google.maps.Geocoder).geocode({location:{lat:C,lng:u}},(d,M)=>{if(M===google.maps.GeocoderStatus.OK&&d?.[0]){const w=d[0].formatted_address;this.autoCompleteLocation=w;const O=this.fieldForm.get("defaultValue")?.value?.split("|")||[];O[0]=w,this.updateForms(O.join("|"),+O[1],+O[2])}})}updateForms(C,u,p){this.updateMainForm&&this.mainForm.patchValue({streetAddress:C,latitude:u,longitude:p}),this.fieldForm.patchValue({defaultValue:C,itemValue:C,latitude:u,longitude:p})}static#e=this.\u0275fac=function(u){return new(u||k)(s.Y36(s.sBO))};static#t=this.\u0275cmp=s.Xpm({type:k,selectors:[["ff-location-picker"]],viewQuery:function(u,p){if(1&u&&s.Gf(e,5),2&u){let d;s.iGM(d=s.CRH())&&(p.autoCompleteRef=d.first)}},inputs:{fieldForm:"fieldForm",mainForm:"mainForm",readonly:"readonly",updateMainForm:"updateMainForm",required:"required"},features:[s.TTD],decls:19,vars:19,consts:[[1,"input-group","w-100"],["ngx-gp-autocomplete","","type","text",1,"form-control",3,"value","disabled","input","onAddressChange"],["autoComplete","ngx-places"],["type","button",1,"btn","btn-light","text-primary",3,"disabled","click"],[1,"fa","fa-crosshairs"],["type","button",1,"btn","btn-light","text-primary",3,"click"],[1,"fa","fa-map-marker-alt"],[4,"ngIf"],[1,"m-0","pt-1","text-grey-dark","fs-14"],["class","mt-2",4,"ngIf"],[1,"text-danger"],[1,"mt-2"],[1,"rounded","overflow-hidden"],[3,"options","mapClick"],[3,"draggable","position"],[1,"mt-2","mb-0"],[1,"fa","fa-question-circle","text-info"],[1,"fa","fa-map-marker-alt","text-danger"]],template:function(u,p){1&u&&(s.TgZ(0,"div",0)(1,"input",1,2),s.NdJ("input",function(M){return p.onInputChange(M)})("onAddressChange",function(M){return p.onAutoCompleteAddressChange(M)}
1),s.qZA(),s.TgZ(3,"button",3),s.NdJ("click",function(){return p.setCurrentLocation(null,null,!0)}),s._UZ(4,"i",4),s.qZA(),s.TgZ(5,"button",5),s.NdJ("click",function(){return p.openMap()}),s._UZ(6,"i",6),s.qZA()(),s.YNc(7,n,3,0,"div",7),s.TgZ(8,"p",8)(9,"small"),s._uU(10),s.ALo(11,"translate"),s.TgZ(12,"strong"),s._uU(13),s.qZA(),s._uU(14),s.ALo(15,"translate"),s.TgZ(16,"strong"),s._uU(17),s.qZA()()(),s.YNc(18,b,10,3,"div",9)),2&u&&(s.xp6(1),s.Q6J("value",p.autoCompleteLocation)("disabled",p.readonly),s.xp6(2),s.ekj("border",!p.readonly),s.Q6J("disabled",p.readonly),s.xp6(2),s.ekj("border",!p.readonly)("active",!p.mapCollapsed),s.xp6(2),s.Q6J("ngIf",p.required),s.xp6(3),s.hij(" ",s.lcZ(11,15,"REPORT.Latitude"),": "),s.xp6(3),s.Oqu((null==p.mapOptions.center?null:p.mapOptions.center.lat)||""),s.xp6(1),s.hij(" | ",s.lcZ(15,17,"REPORT.Longitude"),": "),s.xp6(3),s.Oqu((null==p.mapOptions.center?null:p.mapOptions.center.lng)||""),s.xp6(1),s.Q6J("ngIf",!p.mapCollapsed))},dependencies:[v.O5,f.b6,f.O_,a.Tu,y.X$],encapsulation:2})}return k})()},5271:(Z,D,c)=>{c.d(D,{R:()=>y});var i=c(6814),I=c(3945),s=c(8579),v=c(3883),f=c(9858),a=c(5879);let y=(()=>{class e{static#e=this.\u0275fac=function(T){return new(T||e)};static#t=this.\u0275mod=a.oAB({type:e});static#i=this.\u0275inj=a.cJS({imports:[i.ez,I.Y4,s.Xe,v.D,f.aw]})}return e})()},847:(Z,D,c)=>{c.d(D,{s:()=>s});var i=c(6428),I=c(5879);let s=(()=>{class v{transform(a){return i.kT[a]||a}static#e=this.\u0275fac=function(y){return new(y||v)};static#t=this.\u0275pipe=I.Yjl({name:"fileFormatIconClass",type:v,pure:!0})}return v})()},4288:(Z,D,c)=>{c.d(D,{H:()=>I});var i=c(5879);let I=(()=>{class s{transform(f,a,y){return f?f.find(e=>e[a]===y):null}static#e=this.\u0275fac=function(a){return new(a||s)};static#t=this.\u0275pipe=i.Yjl({name:"findItemByKey",type:s,pure:!0})}return s})()},5513:(Z,D,c)=>{c.d(D,{m:()=>I});var i=c(5879);let I=(()=>{class s{transform(f,a){return f.get(a).controls}static#e=this.\u0275fac=function(a){return new(a||s)};static#t=this.\u0275pipe=i.Yjl({name:"getFormArrayControls",type:s,pure:!0})}return s})()},5745:(Z,D,c)=>{c.d(D,{l:()=>I});var i=c(5879);let I=(()=>{class s{transform(f,a=" "){return f?f.split(a):[]}static#e=this.\u0275fac=function(a){return new(a||s)};static#t=this.\u0275pipe=i.Yjl({name:"split",type:s,pure:!0})}return s})()},5789:(Z,D,c)=>{c.d(D,{F:()=>f});var i=c(553),I=c(7398),s=c(5879),v=c(9862);let f=(()=>{class a{constructor(e){this.http=e}getReferenceData$(){return this.http.get(i.N.baseUrl+"/api/ReferenceData")}getExpandedReferenceData$(e=!1){return this.http.get(i.N.baseUrl+"/api/ReferenceData",{params:{expanded:!0}}).pipe((0,I.U)(n=>((n=n.filter(b=>e||!b.isDeleted)).forEach(b=>{b.items=b.items.filter(T=>e||!T.isDeleted)}),n)))}getReferenceDataWorkflows(e){return this.http.get(i.N.baseUrl+"/api/ReferenceData/"+e.id+"/links")}addReferenceData$(e){return this.http.post(i.N.baseUrl+"/api/ReferenceData",e).pipe((0,I.U)(n=>(n.items=n.items.filter(b=>!b.isDeleted),n)))}updateReferenceData$(e){return this.http.post(i.N.baseUrl+"/api/ReferenceData/"+e.id,e).pipe((0,I.U)(n=>(n.items=n.items.filter(b=>!b.isDeleted),n)))}deleteReferenceData$(e){return this.http.delete(i.N.baseUrl+"/api/ReferenceData",{params:{id:e.id,deleted:!0}})}static#e=this.\u0275fac=function(n){return new(n||a)(s.LFG(v.eN))};static#t=this.\u0275prov=s.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},491:(Z,D,c)=>{c.d(D,{a:()=>I,y:()=>i});var i=function(s){return s.Higher="higher",s.Lower="lower",s.OnTarget="onTarget",s.OffTarget="offTarget",s.Hide="hide",s}(i||{}),I=function(s){return s.HierarchyField="%hierarchyField%",s.AssetTypeId="%assetTypeId%",s.TeamCurrent="%team.current%",s.ReferenceDataId="%reference.data.id%",s.LocationCurrent="%location.current%",s.DateNow="%date.now%",s.TriggerLabel="%trigger.label%",s.TriggerValue="%trigger.value%",s.TriggerMessage="%trigger.message%",s}(I||{})},3724:(Z,D,c)=>{c.d(D,{x:()=>C});var i=c(5879),I=c(6223),s=c(6814),v=c(1086),f=c(8076);const a=["dropdown"];function y(u,p){if(1&u&&(i.TgZ(0,"div",13)(1,"span",14),i._uU(2),i.qZA(),i.TgZ(3,"span",15),i._uU(4),i.qZA()()),2&u){const d=i.oxw();i.xp6(2),i.Oqu(d.selectedItem.label||(null==d.defaultValue?null:d.defaultValue.label)),i.xp6(2),i.Oqu(d.structure.length?d.structure.join("."):"-")}}function e(u,p){1&u&&(i.TgZ(0,"div",16),i._uU(1,"Choose an option"),i.qZA())}function n(u,p){if(1&u&&(i.TgZ(0,"p",21),i._uU(1),i.qZA()),2&u){const d=i.oxw(2);i.xp6(1),i.Oqu(d.structure.join(" > "))}}function b(u,p){1&u&&i._UZ(0,"i",25)}function T(u,p){if(1&u){const d=i.EpF();
1i.TgZ(0,"button",22),i.NdJ("click",function(){const A=i.CHM(d).$implicit,O=i.oxw(2),F=i.MAs(9);return O.selectItem(A),i.KtG(F.value="")}),i.TgZ(1,"div")(2,"div"),i._uU(3),i.ALo(4,"valueByKey"),i.qZA(),i.TgZ(5,"div",23),i._uU(6),i.qZA()(),i.YNc(7,b,1,0,"i",24),i.qZA()}if(2&u){const d=p.$implicit;i.xp6(3),i.Oqu(i.xi3(4,3,d.label||d,"name")),i.xp6(3),i.Oqu(d.label),i.xp6(1),i.Q6J("ngIf",d.hierarchyItems&&d.hierarchyItems.length)}}function k(u,p){if(1&u&&(i.TgZ(0,"div",17),i.YNc(1,n,2,1,"p",18),i.TgZ(2,"div",19),i.YNc(3,T,8,6,"button",20),i.qZA()()),2&u){const d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.structure.length),i.xp6(1),i.ekj("pt-2",d.currentLevel.length),i.xp6(1),i.Q6J("ngForOf",d.currentLevel)("ngForTrackBy",d.trackBy)}}function U(u,p){if(1&u){const d=i.EpF();i.TgZ(0,"div",26)(1,"button",27),i.NdJ("click",function(){i.CHM(d);const w=i.oxw();return i.KtG(w.goBack())}),i._UZ(2,"i",28),i._uU(3," Back"),i.qZA(),i.TgZ(4,"button",29),i.NdJ("click",function(){i.CHM(d);const w=i.oxw();return i.KtG(w.clearSelectedItem())}),i._uU(5,"Reset"),i.qZA()()}}let C=(()=>{class u{constructor(){this.isMandatory=!1,this.structure=[]}writeValue(d){void 0!==d&&"string"!=typeof d&&(this.selectedItem=d)}ngOnInit(){this.setDefaultState()}ngOnChanges(d){d.data&&(this.setDefaultState(),this.selectedItem=null)}setDefaultState(){this.currentLevel=this.getHierarchyItemForm(this.data),this.defaultValue&&(this.selectedItem=this.defaultValue,this.structure=this.findStructurePath(this.defaultValue,this.getHierarchyItemForm(this.data)),this.currentLevel=this.findParentLevel(this.structure))}getHierarchyItemForm(d){return d.map(M=>({...M,key:M.name,label:M.name,properties:{}}))}selectItem(d){d.hierarchyItems.length?(this.currentLevel=d.hierarchyItems,this.structure.push(d.key)):(this.selectedItem=d,this.structure=this.findStructurePath(d,this.getHierarchyItemForm(this.data)),this.onTouched(),this.onChanged(this.selectedItem),this.dropdown.close())}clearSelectedItem(){this.selectedItem=null,this.currentLevel=this.getHierarchyItemForm(this.data),this.structure=[],this.onTouched(),this.onChanged(null),this.dropdown.close()}filterItemsBySearch(d,M){this.currentLevel=d?this.searchInLastLevel(d.trim().toLowerCase(),this.getHierarchyItemForm(M)):[...this.getHierarchyItemForm(M)]}searchInLastLevel(d,M){let w=[];return M.forEach(A=>{if(A.hasOwnProperty("properties")&&A?.label?.toLowerCase().includes(d))w.push(A);else if(A.hierarchyItems.length){const O=this.searchInLastLevel(d,A.hierarchyItems);w=w.concat(O)}}),w}goBack(){this.structure.length&&(this.structure.pop(),this.currentLevel=this.structure.length?this.findParentLevel(this.structure):this.getHierarchyItemForm(this.data))}findParentLevel(d){let M=this.getHierarchyItemForm(this.data);for(const w of d){const A=M.find(O=>O.key===w);if(!A||!A.hierarchyItems)return M;M=A.hierarchyItems}return M}findStructurePath(d,M){const w=[],A=(O,F)=>{if(O.key===d.key)return F.push(O.key),!0;if(O.hierarchyItems)for(const G of O.hierarchyItems)if(A(G,F))return F.push(O.key),!0;return!1};for(const O of M)if(A(O,w))break;return w.reverse()}registerOnChange(d){this.onChanged=d}registerOnTouched(d){this.onTouched=d}trackBy(d,M){return M}static#e=this.\u0275fac=function(M){return new(M||u)};static#t=this.\u0275cmp=i.Xpm({type:u,selectors:[["ff-select-hierarchy"]],viewQuery:function(M,w){if(1&M&&i.Gf(a,7),2&M){let A;i.iGM(A=i.CRH())&&(w.dropdown=A.first)}},inputs:{data:"data",defaultValue:"defaultValue",isMandatory:"isMandatory"},features:[i._Bn([{provide:I.JU,useExisting:(0,i.Gpc)(()=>u),multi:!0}]),i.TTD],decls:13,vars:6,consts:[["ngbDropdown","","autoClose","outside"],["dropdown","ngbDropdown"],["ngbDropdownToggle","","type","button",1,"dropdown-toggle","form-control","rounded-2","fs-13","text-start","w-100","py-1","d-flex","align-items-center","justify-content-between"],["class","w-100",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["ngbDropdownMenu","",1,"w-100","p-0"],[1,"p-3"],[1,"searchBox"],["type","text","placeholder","Search",1,"form-control","m-0","border-light",3,"input"],["search",""],[1,"fa","fa-search","me-1"],["class","p-0",4,"ngIf"],["class","w-100 rounded-bottom overflow-hidden border-top border-light border-1",4,"ngIf"],[1,"w-100"],[1,"d-block","lh-sm"],[1,"d-block","fs-13","lh-1","text-primary","text-wrap","text-break"],[1,"w-100","my-1"],[1,"p-0"],["class","fs-13 lh-sm text-primary mt-3 mb-0",4,"ngIf"],[1,"list-group","overflow-auto",2,"max-height","300px"],["ngbDropdownItem","","type","button","class","list-group-item list-group-item-action d-flex justify-content-between align-items-center",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"fs-13","lh-sm","text-primary","mt-3","mb-0"],["ngbDropdownItem","","type","button",1,"list-group-item","list-group-item-action","d-flex","justify-content-between","align-items-center",3,"click"],[1,"text-secondary"],["class","fa-solid fa-chevron-right",4,"ngIf"],[1,"fa-solid","fa-chevron-right"],[1,"w-100","rounded-bottom","overflow-hidden","border-top","border-light","border-1"],["type","button",1,"btn","btn-light","w-50","rounded-0","fs-14","border-0",3,"click"],[1,"fa-solid","fa-chevron-left","text-info"],["type","button",1,"btn","btn-light","w-50","rounded-0","fs-14","border-0","border-start","border-light",3,"click"]],template:function(M,w){if(1&M){const A=i.EpF();i.TgZ(0,"div",0,1)(2,"button",2),i.YNc(3,y,5,2,"div",3),i.YNc(4,e,2,0,"div",4),i.qZA(),i.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"input",8,9),i.NdJ("input",function(){i.CHM(A);const F=i.MAs(9);return i.KtG(w.filterItemsBySearch(F.value,w.data))}),i.qZA(),i._UZ(10,"i",10),i.qZA(),i.YNc(11,k,4,5,"div",11),i.qZA(),i.YNc(12,U,6,0,"div",12),i.qZA()()}if(2&M){const A=i.MAs(9);i.xp6(2),i.ekj("border-danger",w.isMandatory),i.xp6(1),i.Q6J("ngIf",w.selectedItem&&w.selectedItem.label),i.xp6(1),i.Q6J("ngIf",!w.selectedItem||w.selectedItem&&!w.selectedItem.label),i.xp6(7),i.Q6J("ngIf",w.currentLevel),i.xp6(1),i.Q6J("ngIf",!A.value)}},dependencies:[s.sg,s.O5,v.jt,v.iD,v.Vi,v.TH,f.c],encapsulation:2})}return u})()},251:(Z,D,c)=>{c.d(D,{b:()=>I});var i=c(6428);class I{static isMathOperation(v){const f=void 0===v?"":v,a=(f.match(/[*+/-]+/g)||[]).length,y=f.indexOf("Math.");return a>0||y>-1}static isVariableNameField(v){return[i.ii.DateTime,i.ii.Numeric,i.ii.IotDeviceDataPoint].includes(v)}static splitLogicValue(v){return v?v?.split("%"):[]}static getAutomationType(v){if(v)return v.split("%")[1]}static getAutomationData(v){if(v)return v.split("%")[2]}static splitFieldLogic(v){return v?.split("%")??[]}}},3394:(Z,D,c)=>{c.d(D,{b:()=>i.b});var i=c(251)},8579:(Z,D,c)=>{c.d(D,{Tu:()=>v,Xe:()=>f});var i=c(5879),I=c(7028);let s=(()=>{class a{constructor(){this.defaultOptions={}}setOptions(e){this.defaultOptions={...this.defaultOptions,...e}}getOptions(){return this.defaultOptions}static#e=this.\u0275fac=function(n){return new(n||a)};static#t=this.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),v=(()=>{class a{constructor(e,n,b,T){this.el=e,this.ngxGpAutocompleteService=n,this.loader=b,this.ngZone=T,this.onAddressChange=new i.vpe}ngAfterViewInit(){this.options||(this.options=this.ngxGpAutocompleteService.getOptions()),this.loader.importLibrary("places").then(()=>this.initialize(),console.error)}isGoogleLibExists(){return!(!google||!google.maps||!google.maps.places)}initialize(){if(!this.isGoogleLibExists())throw new Error("Google maps library can not be found");if(this.autocomplete=new google.maps.places.Autocomplete(this.el.nativeElement,this.options),!this.autocomplete)throw new Error("Autocomplete is not initialized");null!=!this.autocomplete.addListener&&(this.eventListener=this.autocomplete.addListener("place_changed",()=>{this.handleChangeEvent()})),this.el.nativeElement.addEventListener("keydown",e=>
1{e.key&&"enter"==e.key.toLowerCase()&&e.target===this.el.nativeElement&&(e.preventDefault(),e.stopPropagation())}),window&&window.navigator&&window.navigator.userAgent&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&setTimeout(()=>{let e=document.getElementsByClassName("pac-container");if(e){let n=Array.from(e);if(n)for(let b of n)b&&b.addEventListener("touchend",T=>{T.stopImmediatePropagation()})}},500)}reset(){this.autocomplete.setComponentRestrictions(this.options.componentRestrictions),this.autocomplete.setTypes(this.options.types)}handleChangeEvent(){this.ngZone.run(()=>{this.place=this.autocomplete.getPlace(),this.place&&this.onAddressChange.emit(this.place)})}static#e=this.\u0275fac=function(n){return new(n||a)(i.Y36(i.SBq),i.Y36(s),i.Y36(I.aN),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:a,selectors:[["","ngx-gp-autocomplete",""]],inputs:{options:"options"},outputs:{onAddressChange:"onAddressChange"},exportAs:["ngx-places"]})}return a})(),f=(()=>{class a{static#e=this.\u0275fac=function(n){return new(n||a)};static#t=this.\u0275mod=i.oAB({type:a});static#i=this.\u0275inj=i.cJS({})}return a})()},3945:(Z,D,c)=>{c.d(D,{O_:()=>Y,Y4:()=>oe,b6:()=>p,ch:()=>Q});var i=c(5879),I=c(6814),s=c(5619),v=c(5592),f=c(8645),a=c(2572),y=c(4664),e=c(8180),n=c(7398),b=c(9773);const T=["*"];class k{_clearListeners(){for(const m of this._listeners)m.remove();this._listeners=[]}constructor(m){this._ngZone=m,this._pending=[],this._listeners=[],this._targetStream=new s.X(void 0)}getLazyEmitter(m){return this._targetStream.pipe((0,y.w)(t=>{const r=new v.y(x=>{if(!t)return void this._pending.push({observable:r,observer:x});const L=t.addListener(m,B=>{this._ngZone.run(()=>x.next(B))});if(L)return this._listeners.push(L),()=>L.remove();x.complete()});return r}))}setTarget(m){const t=this._targetStream.value;m!==t&&(t&&(this._clearListeners(),this._pending=[]),this._targetStream.next(m),this._pending.forEach(r=>r.observable.subscribe(r.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const U={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"},C="500px",u="500px";let p=(()=>{class l{set center(t){this._center=t}set zoom(t){this._zoom=t}set options(t){this._options=t||U}constructor(t,r,x){if(this._elementRef=t,this._ngZone=r,this._eventManager=new k(this._ngZone),this.height=C,this.width=u,this._options=U,this.mapInitialized=new i.vpe,this.authFailure=new i.vpe,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=(0,I.NF)(x),this._isBrowser){const L=window;this._existingAuthFailureCallback=L.gm_authFailure,L.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(t){(t.height||t.width)&&this._setSize();const r=this.googleMap;r&&(t.options&&r.setOptions(this._combineOptions()),t.center&&this._center&&r.setCenter(this._center),t.zoom&&null!=this._zoom&&r.setZoom(this._zoom),t.mapTypeId&&this.mapTypeId&&r.setMapTypeId(this.mapTypeId)
1)}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._ngZone.runOutsideAngular(()=>{this.googleMap=new google.maps.Map(this._mapEl,this._combineOptions())}),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap))}ngOnDestroy(){this._eventManager.destroy(),this._isBrowser&&(window.gm_authFailure=this._existingAuthFailureCallback)}fitBounds(t,r){this._assertInitialized(),this.googleMap.fitBounds(t,r)}panBy(t,r){this._assertInitialized(),this.googleMap.panBy(t,r)}panTo(t){this._assertInitialized(),this.googleMap.panTo(t)}panToBounds(t,r){this._assertInitialized(),this.googleMap.panToBounds(t,r)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_setSize(){if(this._mapEl){const t=this._mapEl.style;t.height=null===this.height?"":M(this.height)||C,t.width=null===this.width?"":M(this.width)||u}}_combineOptions(){const t=this._options||{};return{...t,center:this._center||t.center||U.center,zoom:this._zoom??t.zoom??U.zoom,mapTypeId:this.mapTypeId||t.mapTypeId||U.mapTypeId}}_assertInitialized(){}}return l.\u0275fac=function(t){return new(t||l)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.Lbi))},l.\u0275cmp=i.Xpm({type:l,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[i.TTD],ngContentSelectors:T,decls:2,vars:0,consts:[[1,"map-container"]],template:function(t,r){1&t&&(i.F$t(),i._UZ(0,"div",0),i.Hsn(1))},encapsulation:2,changeDetection:0}),l})();const d=/([A-Za-z%]+)$/;function M(l){return null==l?"":d.test(l)?l:`${l}px`}let Q=(()=>{class l{set options(t){this._options.next(t||{})}set position(t){this._position.next(t)}constructor(t,r,x){this._googleMap=t,this._elementRef=r,this._ngZone=x,this._eventManager=new k(this._ngZone),this._options=new s.X({}),this._position=new s.X(void 0),this._destroy=new f.x,this.closeclick=this._eventManager.getLazyEmitter("closeclick"),this.contentChanged=this._eventManager.getLazyEmitter("content_changed"),this.domready=this._eventManager.getLazyEmitter("domready"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}ngOnInit(){this._googleMap._isBrowser&&(this._combineOptions().pipe((0,e.q)(1)).subscribe(r=>{this._ngZone.runOutsideAngular(()=>{this.infoWindow=new google.maps.InfoWindow(r)}),this._eventManager.setTarget(this.infoWindow)}),this._watchForOptionsChanges(),this._watchForPositionChanges())}ngOnDestroy(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete(),this.infoWindow&&this.close()}close(){this._assertInitialized(),this.infoWindow.close()}getContent(){return this._assertInitialized(),this.infoWindow.getContent()||null}getPosition(){return this._assertInitialized(),this.infoWindow.getPosition()||null}getZIndex(){return this._assertInitialized(),this.infoWindow.getZIndex()}open(t,r){this._assertInitialized();const x=t?t.getAnchor():void 0;(this.infoWindow.get("anchor")!==x||!x)&&(this._elementRef.nativeElement.style.display="",this.infoWindow.open({map:this._googleMap.googleMap,anchor:x,shouldFocus:r}))}_combineOptions(){return(0,a.a)([this._options,this._position]).pipe((0,n.U)(([t,r])=>({...t,position:r||t.position,content:this._elementRef.nativeElement})))}_watchForOptionsChanges(){this._options.pipe((0,b.R)(this._destroy)).subscribe(t=>{this._assertInitialized(),this.infoWindow.setOptions(t)})}_watchForPositionChanges(){this._position.pipe((0,b.R)(this._destroy)).subscribe(t=>{t&&(this._assertInitialized(),this.infoWindow.setPosition(t))})}_assertInitialized(){}}return l.\u0275fac=function(t){return new(t||l)(i.Y36(p),i.Y36(i.SBq),i.Y36(i.R0b))},l.\u0275dir=i.lG2({type:l,selectors:[["map-info-window"]],hostAttrs:[2,"display","none"],inputs:{options:"options",position:"position"},outputs:{closeclick:"closeclick",contentChanged:"contentChanged",domready:"domready",positionChanged:"positionChanged",zindexChanged:"zindexChanged"},exportAs:["mapInfoWindow"]}),l})();const $={position:{lat:37.421995,lng:-122.084092}};let Y=(()=>{class l{set title(t){this._title=t}set position(t){this._position=t}set label(t){this._label=t}set clickable(t){this._clickable=t}set options(t){this._options=t}set icon(t){this._icon=t}set visible(t){this._visible=t}constructor(t,r){this._googleMap=t,this._ngZone=r,this._eventManager=new k(this._ngZone),this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}ngOnInit(){this._googleMap._isBrowser&&(this._ngZone.runOutsideAngular(()=>{this.marker=new google.maps.Marker(this._combineOptions())}),this._assertInitialized(),this.marker.setMap(this._googleMap.googleMap),this._eventManager.setTarget(this.marker))}ngOnChanges(t){const{marker:r,_title:x,_position:L,_label:B,_clickable:R,_icon:S,_visible:N}=this;r&&(t.options&&r.setOptions(this._combineOptions()),t.title&&void 0!==x&&r.setTitle(x),t.position&&L&&r.setPosition(L),t.label&&void 0!==B&&r.setLabel(B),t.clickable&&void 0!==R&&r.setClickable(R),t.icon&&S&&r.setIcon(S),t.visible&&void 0!==N&&r.setVisible(N))}ngOnDestroy(){this._eventManager.destroy(),this.marker&&this.marker.setMap(null)}getAnimation(){return this._assertInitialized(),this.marker.getAnimation()||null}getClickable(){return this._assertInitialized(),this.marker.getClickable()}getCursor(){return this._assertInitialized(),this.marker.getCursor()||null}getDraggable(){return this._assertInitialized(),!!this.marker.getDraggable()}getIcon(){return this._assertInitialized(),this.marker.getIcon()||null}getLabel(){return this._assertInitialized(),this.marker.getLabel()||null}getOpacity(){return this._assertInitialized(),this.marker.getOpacity()||null}getPosition(){return this._assertInitialized(),this.marker.getPosition()||null}getShape(){return this._assertInitialized(),this.marker.getShape()||null}getTitle(){return this._assertInitialized(),this.marker.getTitle()||null}getVisible(){return this._assertInitialized(),this.marker.getVisible()}getZIndex(){return this._assertInitialized(),this.marker.getZIndex()||null}getAnchor(){return this._assertInitialized(),this.marker}_combineOptions(){const t=this._options||$;return{...t,title:this._title||t.title,position:this._position||t.position,label:this._label||t.label,clickable:this._clickable??t.clickable,map:this._googleMap.googleMap,icon:this._icon||t.icon,visible:this._visible??t.visible}}_assertInitialized(){}}return l.\u0275fac=function(t){return new(t||l)(i.Y36(p),i.Y36(i.R0b))},l.\u0275dir=i.lG2({type:l,selectors:[["map-marker"]],inputs:{title:"title",position:"position",label:"label",clickable:"clickable",options:"options",icon:"icon",visible:"visible"},outputs:{animationChanged:"animationChanged",mapClick:"mapClick",clickableChanged:"clickableChanged",cursorChanged:"cursorChanged",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",draggableChanged:"draggableChanged",mapDragstart:"mapDragstart",flatChanged:"flatChanged",iconChanged:"iconChanged",mapMousedown:"mapMousedown",mapMouseout:"mapMouseout",mapM
1ouseover:"mapMouseover",mapMouseup:"mapMouseup",positionChanged:"positionChanged",mapRightclick:"mapRightclick",shapeChanged:"shapeChanged",titleChanged:"titleChanged",visibleChanged:"visibleChanged",zindexChanged:"zindexChanged"},exportAs:["mapMarker"],features:[i.TTD]}),l})(),oe=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({}),l})()}}]);
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.