bimplus-webcomponents 0.0.164 → 0.0.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12843,7 +12843,7 @@ ${U}: ${x}`:`${p}: ${f}
12843
12843
  ${M}: ${T}
12844
12844
  ${U}: ${x}`}_createAttributeGroupsFromResponse(r){let p=[],f=null;if(r.localizedAttributeGroups&&(f=r.localizedAttributeGroups),!r.attributes)return p;let M=r.attributes;for(let[T,U]of Object.entries(M)){let x={name:T,expanded:!1,attributes:[]};if(f?.[T]&&(x.name=f[T]),!!U){for(let H of Object.values(U)){let J={id:H.id,name:H.name,description:H.description,value:H.value,group:H.group,type:H.type,unit:H.unit,decimal:H.decimal,control:H.control,enumdefinition:H.enumdefinition,isChangeable:H.isChangeable,tooltip:this._tooltip(H),minValue:H.minValue,maxValue:H.maxValue};x.attributes.push(J)}p.push(x)}}return p}_deleteForm(){this._objectPropertiesForm=new xR({})}_createForm(){let r=new wIe,p={};this.objectAttributeGroups().forEach(f=>{let M={};f.attributes.forEach(T=>{if(typeof T.type=="string"&&/^boolean$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[kz.pattern(/^(false|true|0|1)$/i)]:[]);return}if(typeof T.type=="string"&&/^boolean$/i.test(T.type)&&typeof T.control=="string"&&/^checkbox$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T));return}if(typeof T.type=="string"&&/^string$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T));return}if(typeof T.type=="string"&&/^double$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[AIe(T.minValue,T.maxValue)]:[]);return}if(typeof T.type=="string"&&/^int(32)?$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[OIe(T.minValue,T.maxValue)]:[]);return}if(typeof T.type=="string"&&/^guid$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[_Ie()]:[]);return}if(typeof T.type=="string"&&/^double$/i.test(T.type)&&typeof T.control=="string"&&/^enumeration$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[vpe(T.enumdefinition)]:[]);return}if(typeof T.type=="string"&&/^guid$/i.test(T.type)&&typeof T.control=="string"&&/^enumeration$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[Iwe(T.enumdefinition)]:[]);return}if(typeof T.type=="string"&&/^int(32)?$/i.test(T.type)&&typeof T.control=="string"&&/^enumeration$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[vpe(T.enumdefinition)]:[]);return}if(typeof T.type=="string"&&/^string$/i.test(T.type)&&typeof T.control=="string"&&/^enumeration$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[wwe(T.enumdefinition)]:[]);return}if(typeof T.type=="string"&&/^string$/i.test(T.type)&&typeof T.control=="string"&&/^combobox$/i.test(T.control)){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[Awe(T.enumdefinition)]:[]);return}if(typeof T.type=="string"&&/^datetime$/i.test(T.type)&&!T.control){M[T.id]=this.formBuilder.control(r.transform(T),T.isChangeable?[]:[]);return}}),p[f.name]=this.formBuilder.group(M)}),this._objectPropertiesForm=this.formBuilder.group(p),this.initialFormValues=JSON.stringify(this._objectPropertiesForm.value),this._objectPropertiesForm.valueChanges.subscribe({next:f=>{let M=JSON.stringify(f)!==this.initialFormValues;this.isSaveButtonDisabled$.next(!(this._objectPropertiesForm.valid&&M))}})}_getPropertyName(r){let p=this.objectAttributeGroups();for(let f of p)for(let M of f.attributes)if(M.id===r)return M.name;return""}_getPropertyType(r){let p=this.objectAttributeGroups();for(let f of p)for(let M of f.attributes)if(M.id===r)return M.type;return""}_getPropertyControl(r){let p=this.objectAttributeGroups();for(let f of p)for(let M of f.attributes)if(M.id===r)return M.control;return""}_convertValueToBoolean(r){return/^true$/i.test(r)||/^1$/i.test(r)}_convertValueToDouble(r){return parseFloat(r)}_hasBeenValueChanged(r,p){let f=this.objectAttributeGroups();for(let M of f)for(let T of M.attributes)if(T.id===r)return p!==T.value;return!1}_getChangedData(r){let p={};return Object.keys(r.controls).forEach(f=>{let M=r.get(f);if(M instanceof eR){if(M.dirty){let T=this._getPropertyName(f),U=this._getPropertyType(f);if(T===""){let x={id:f,value:M.value};p[f]=x}else if(/^boolean$/i.test(U)){let x=this._convertValueToBoolean(M.value);if(this._hasBeenValueChanged(f,x)){let H={id:f,value:x};p[T]=H}}else if(/^double$/i.test(U)){let x=this._convertValueToDouble(M.value);if(this._hasBeenValueChanged(f,x)){let H={id:f,value:x};p[T]=H}}else{let x=M.value;if(this._hasBeenValueChanged(f,M.value)){let H={id:f,value:x};p[T]=H}}}}else if(M instanceof xR&&M.dirty){let T=this._getChangedData(M);Object.keys(T).length>0&&(p[f]=T)}}),p}_saveObjectProperties(){let r={};r.id=this._currentObjectId$.value,r.unsaved=!0,r.attributes=this._getChangedData(this._objectPropertiesForm),this.saveObjectProperties(r)}_cancelEditingProperties(){this._editMode.set(!1),this._deleteForm(),this.buttonRowItems=this.configEditProperties}buttonClicked(r){r.id==="edit-properties"&&(this._editMode.set(!0),this._createForm(),console.log("Edit properties clicked"),this.buttonRowItems=this.configEditedProperties),r.id==="save-changed-properties"&&(this._saveObjectProperties(),this._cancelEditingProperties(),console.log("Save changed properties clicked")),r.id==="cancel-editing-properties"&&(this._cancelEditingProperties(),console.log("Cancel edit properties clicked"))}hasSetAnyAttribute(r){return r.attributes.some(p=>!S$(p))}saveObjectProperties(r){let p=this._currentPropertiesObjectId$.value;!r||!p||this.api&&bd(this.api.objects.put(p,JSON.stringify(r))).subscribe({next:f=>{this._createObjectProperties(p,this.revision),this._createObjectStructure(p,this.revision),this.updatedObjectProperties.emit({id:p,request:r,response:f})}})}static{this.\u0275fac=function(p){return new(p||d)(vi(ja),vi(HJ),vi(ch),vi(Owe))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-object-properties"]],inputs:{api:"api",revision:"revision",canUpdateObject:"canUpdateObject",rootObjectId:"rootObjectId"},outputs:{updatedObjectProperties:"updatedObjectProperties"},standalone:!0,features:[ll,as],decls:17,vars:15,consts:[[3,"buttonClicked","items"],[1,"object-properties"],[1,"object-properties-preview-panel"],[1,"object-structure-header"],[3,"api","revision","objectId","visibleNode","opaqueNode"],[1,"object-properties-object-structure-panel"],[3,"objectStructure","hasCheckBox1","hasCheckBox2"],[3,"nodeSelected","nodeVisible","nodeOpaque","objectStructure","hasCheckBox1","hasCheckBox2"],[1,"object-properties-header"],[3,"nodeSelected","complexProperties"],[1,"input-form",3,"formGroup"],[3,"expanded"],[1,"object-properties-group-header"],[3,"attributesGroup","editMode","canUpdateObject","objectPropertiesForm"]],template:function(p,f){p&1&&(cn(0,"lib-bimplus-buttons-row",0),xi("buttonClicked",function(T){return f.buttonClicked(T)}),mn(),cn(1,"div",1)(2,"lib-bimplus-scrollable-container")(3,"lib-expansion-panel",2)(4,"lib-expansion-panel-header")(5,"span",3),Wr(6),ca(7,"translate"),mn()(),Zr(8,"lib-object-preview",4),mn(),cn(9,"lib-expansion-panel",5)(10,"lib-expansion-panel-header")(11,"span",3),Wr(12),ca(13,"translate"),mn()(),gr(14,rUe,1,3,"lib-bimplus-object-structure",6),mn(),gr(15,sUe,6,4,"lib-expansion-panel")(16,lUe,8,4,"lib-expansion-panel"),mn()()),p&2&&(Nn("items",f.buttonRowItems),Zt(6),v0(ha(7,11,"_3D preview")),Zt(2),Nn("api",f.api)("revision",f.revision)("objectId",f.rootObjectId)("visibleNode",f.visibleNodeSignal())("opaqueNode",f.opaqueNodeSignal()),Zt(4),v0(ha(13,13,"_Object structure")),Zt(2),fs(f.objectStructure?14:-1),Zt(),fs(f.complexProperties?15:-1),Zt(),fs(f.objectAttributeGroups().length>0?16:-1))},dependencies:[Wz,Uz,Ko,xc,w$,A$,o4,l4,MIe,Mwe,oA,BJ,nk,kB],styles:[`:host{height:100%;display:flex;flex-direction:column;flex:1}lib-bimplus-buttons-row{flex:0;--button-row-margin-right: .8rem}.object-properties{margin-left:.8rem;position:relative;flex:1}.object-properties .object-structure-header,.object-properties .object-properties-header{font-weight:700;text-transform:uppercase;font-size:1.4rem}.object-properties .object-properties-group-header{line-height:2.4rem}.object-properties lib-bimplus-object-structure{--bimplus-object-structure-background-color: var(--object-properties-background-color, var(--flat-tree-container-background-color-enabled))}.object-properties lib-bimplus-object-complex-properties{--bimplus-object-complex-properties-background-color: var(--object-properties-background-color, var(--flat-tree-container-background-color-enabled))}.object-properties lib-bimplus-scrollable-container{position:absolute;top:0;bottom:0;flex:1;width:100%}.object-properties .object-properties-object-structure-panel .expansion-panel,.object-properties lib-object-preview{margin-top:.8rem}
12845
12845
  `],encapsulation:3})}}return d})();var Twe=(()=>{class d{constructor(r,p){this.dialogService=r,this.translateService=p,this.title="",this.message="",this.acceptButtonLocalizedString="_Accept",this.cancelButtonLocalizedString="_Cancel",this.buttons=[];let f=this.dialogService.inputData;f&&(this.title=f.title||"",this.message=f.message||"",this.acceptButtonLocalizedString=f.acceptButtonLocalizedString||"_Accept",this.cancelButtonLocalizedString=f.cancelButtonLocalizedString||"_Cancel",this.acceptCallback=f.acceptCallback),this.initializeButtons()}initializeButtons(){this.buttons=[{id:"accept",title:this.translateService.instant(this.acceptButtonLocalizedString),tooltip:this.translateService.instant(this.acceptButtonLocalizedString),disabled:!1,buttonStyle:"primary"},{id:"cancel",title:this.translateService.instant(this.cancelButtonLocalizedString),tooltip:this.translateService.instant(this.cancelButtonLocalizedString),disabled:!1,buttonStyle:"secondary"}]}close(){this.dialogService.close(),document.activeElement?.blur()}keypressClose(r){(r.key==="Escape"||r.key==="Esc")&&this.dialogService.close()}buttonRowButtonClicked(r){this.dialogService.close(),r.id==="accept"&&this.acceptCallback?.()}handleKeydown(r){(r.key==="Escape"||r.key==="Esc")&&this.close()}static{this.\u0275fac=function(p){return new(p||d)(vi(hT),vi(ja))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-overlay-dialog-confirm"]],hostBindings:function(p,f){p&1&&xi("keydown",function(T){return f.handleKeydown(T)},!1,$I)},standalone:!0,features:[as],decls:10,vars:3,consts:[[1,"overlay-dialog-container"],[1,"header"],[1,"icon"],[1,"title-text"],["tabindex","0",1,"close-button",3,"click","keydown"],[1,"content"],[1,"text",3,"innerHTML"],[1,"buttons"],[3,"buttonClicked","items"]],template:function(p,f){p&1&&(cn(0,"div",0)(1,"div",1),Zr(2,"div",2),cn(3,"div",3),Wr(4),mn(),cn(5,"button",4),xi("click",function(){return f.close()})("keydown",function(T){return f.keypressClose(T)}),mn()(),cn(6,"div",5),Zr(7,"div",6),cn(8,"div",7)(9,"lib-bimplus-buttons-row",8),xi("buttonClicked",function(T){return f.buttonRowButtonClicked(T)}),mn()()()()),p&2&&(Zt(4),Sa(" ",f.title," "),Zt(3),Nn("innerHTML",f.message,SC),Zt(2),Nn("items",f.buttons))},dependencies:[Ko,o4],styles:[`.overlay-dialog-container{min-height:13.6rem;min-width:60rem;display:inline-flex;flex-direction:column;box-shadow:0 .4rem .8rem 0 var(--card-box-shadow-color),0 .6rem 2rem 0 var(--card-box-shadow-color)}.overlay-dialog-container .header{background-color:var(--color-help-popup-title-background);height:3.2rem;display:inline-flex;align-items:center}.overlay-dialog-container .header .icon{width:1.8rem;height:1.8rem;background:url("./assets/bimplus_Components_Overlay_Dialog_Warning_Title.svg") no-repeat center center;padding:0 1.6rem}.overlay-dialog-container .header .title-text{color:var(--main-menu-text-default);font:700 1.3832rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;text-transform:capitalize;margin-bottom:.2rem}.overlay-dialog-container .header .close-button{width:3.2rem;height:3.2rem;background:url("./assets/bimplus_Components_Overlay_Dialog_Cross_White.svg") no-repeat center center;background-size:2.2rem;cursor:pointer;margin:0 0 0 auto;padding-right:1.6rem;border:none}.overlay-dialog-container .content{background-color:var(--main-menu-text-default);display:flex;flex-direction:column;flex-grow:1}.overlay-dialog-container .content .text{color:var(--color-help-popup-title-background);font:400 1.28rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;padding-top:.8rem;padding-left:1.6rem;flex:1;display:flex;flex-direction:column}.overlay-dialog-container .content .text .warning-title{line-height:2.4rem}.overlay-dialog-container .content .text .warning-message{line-height:1.6rem}.overlay-dialog-container .content .buttons{padding:1.6rem}
12846
- `],encapsulation:3})}}return d})();var cte=Y_(Ewe());var lte=(()=>{class d{constructor(){}fmt(r,...p){let f=0;return r.replace(/%@(\d+)?/g,(M,T)=>{let U=T?parseInt(T,10)-1:f++,x=p[U];return x===null?"(null)":x===void 0?"":x.toString()})}decorateLink(r,p,f){let M={id:p.id,name:p.name,fileName:p.fileName,size:p.size,link:p.link,fileNameShort:"",extension:"",objectIds:f,version:p.version,sizeMB:""},T=r.getAccessToken(),x=r.getApiTeamUrl()+"attachments/%@/versions/%@/download",H=!1;if(M.size=parseFloat((p.size/1e3).toFixed(2)),M.link=`${this.fmt(x,p.id,p.version)}?api-token=${T}${H?"":"&openInBrowser=true"}`,p.fileName.length>20){let J=p.fileName.split(".");J.length>1?(M.fileNameShort=J.slice(0,-1).join("."),M.extension="."+J.slice(-1)):M.fileNameShort=p.fileName}else M.fileNameShort=p.fileName;return M}static{this.\u0275fac=function(p){return new(p||d)}}static{this.\u0275prov=za({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})();function cUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-buttons-row",5),xi("buttonClicked",function(f){Pi(r);let M=on();return Bi(M.buttonClicked(f))}),mn()}if(d&2){let r=on();Nn("items",r.buttonRowItems)}}function uUe(d,o){if(d&1&&(cn(0,"div",2),Zr(1,"iframe",6),mn()),d&2){let r=on();Zt(),Bo("id",r.wormholeSelector)}}function dUe(d,o){d&1&&(cn(0,"div",3),Wr(1),ca(2,"translate"),mn()),d&2&&(Zt(),Sa(" ",ha(2,1,"_No_attachmentlinks_found")," "))}function pUe(d,o){if(d&1){let r=qs();cn(0,"span",12),xi("click",function(f){Pi(r);let M=on().$implicit,T=on(2);return Bi(T.deleteAttachmentLink(M,f))})("keydown",function(f){Pi(r);let M=on().$implicit,T=on(2);return Bi(T.deleteAttachmentLink(M,f))}),cn(1,"div",13),ca(2,"translate"),Wr(3," \u2715\uFE0E "),mn()()}d&2&&(Zt(),Bo("title",ha(2,1,"_Delete_attachmentlink")))}function hUe(d,o){if(d&1&&(cn(0,"div",11),Wr(1),mn()),d&2){let r=on().$implicit;Bo("title",r.name),Zt(),Sa(" (",r.size," kB) ")}}function fUe(d,o){if(d&1&&(cn(0,"div",7),gr(1,pUe,4,3,"span",8),cn(2,"a",9)(3,"div",10),Wr(4),mn(),gr(5,hUe,2,2,"div",11),mn()()),d&2){let r=o.$implicit,p=on(2);Zt(),fs(p.canDeleteAttachmentLink?1:-1),Zt(),Bo("href",r.link,uT),Zt(),Bo("title",r.fileName),Zt(),Sa(" ",r.name?r.name:r.fileName," "),Zt(),fs(p.hideAttachmentSize?-1:5)}}function mUe(d,o){if(d&1&&(cn(0,"div",4)(1,"lib-bimplus-scrollable-container"),Sp(2,fUe,6,5,"div",7,wM),mn()()),d&2){let r=on();Zt(2),zp(r._attachments)}}var zfe=(d,o,r)=>{let p=d.map(f=>bd(r.objects.postAttachmentLink(o,JSON.stringify({attachmentId:f}))));return Ez(p).pipe(Z_(()=>bd(r.objects.getAttachmentLinks(o))))},Dwe=(()=>{class d extends Rc{constructor(r,p,f,M,T){super(r),this.dialogService=p,this.renderer=f,this.el=M,this.decorators=T,this._rootObjectId="",this.isDestroyed=!1,this.localWormHole=!0,this.inProgress=!1,this.canCreateAttachmentLink=!0,this.listOnly=!1,this.showEmptyMessage=!0,this.hideAttachmentSize=!1,this.inputBaseUrl="",this._attachments=[],this.attachmentsChange=new pr,this.attachmentsLinkChange=new pr,this.canDeleteAttachmentLink=!0,this.project=null,this.wormholeSelector="localEmbeddedModalId",this.env="dev",this._currentObjectId$=new Du(""),this._attachmentCount=0,this.buttonRowItems=[{id:"add-documents",title:this.translateService.instant("_Add_document"),tooltip:this.translateService.instant("_Add_document"),disabled:!this.canCreateAttachmentLink,buttonStyle:"primary"}],this.documentSelection=null,this.isOpened=!1,this.embeddedModalContainer="embedded-modal",this.shadowRootElement=this.el.nativeElement.shadowRoot}set attachments(r){this._attachments=r,this.onAttachmentsChange()}get attachments(){return this._attachments}onAttachmentsChange(){this.api&&this.rootObjectId&&(this._attachments=this.decorateAttachmentLinks(this.api,this._attachments))}set rootObjectId(r){r&&(this._currentObjectId$.next(r),this._rootObjectId=r)}get rootObjectId(){return this._rootObjectId}ngOnInit(){this.listOnly||this._currentObjectId$.subscribe({next:r=>{this._createAttachmentLinkStructure(r)}})}ngOnDestroy(){this.isDestroyed=!0}decorateAttachmentId(r){return{id:r.id,name:r.name,nameShort:r.name,url:"",iconClass:"",iconTitle:"",type:"AttachmentLink",deleteButtonTitle:""}}decorateAttachmentLinks(r,p){let f=p.map(M=>this.decorators.decorateLink(r,M,[this._currentObjectId$.value]));return f.sort((M,T)=>M.fileName.toLowerCase()<T.fileName.toLowerCase()?-1:M.fileName.toLowerCase()>T.fileName.toLowerCase()?1:0),f}_createAttachmentLinkStructure(r){this._loadAttachmentLinkStructure(r)?.subscribe({next:p=>{if(p&&(this._attachmentCount=p?.length,this.api)){let f=this.decorateAttachmentLinks(this.api,p);f&&(this._attachments=f)}}})}_loadAttachmentLinkStructure(r){if(this.api&&r)return bd(this.api.objects.getAttachmentLinks(r))}setModalVisibility(r=!0){if(!this.wormholeSelector)return;let p=this.localWormHole?this.shadowRootElement.querySelector("#"+this.wormholeSelector):document.getElementById(this.wormholeSelector);p&&(this.localWormHole?p.parentElement&&this.renderer.setStyle(p.parentElement,"display",r?"block":"none"):this.renderer.setStyle(p.parentElement,"display",r?"block":"none"),this.isOpened=r)}closeEmbeddedModalFileSelection(){this.setModalVisibility(!1)}_addLink(r,p){let f=p.filter(M=>!this.attachments.find(T=>T.id===M));if(f.length){if(this.inProgress){console.log("in progress");return}if(!this.rootObjectId){let M=f.map(T=>bd(r.objects.get(T,0,void 0,void 0,void 0,void 0)));Ez(M).subscribe({next:T=>{T?.forEach(x=>{x?.id&&!this.attachments.find(H=>H?.id===x.id)&&this._attachments.push(x)});let U=this._attachments.map(x=>this.decorateAttachmentId(x));this.attachmentsLinkChange.emit(U)},error:T=>{console.error("Error occurred during requests:",T),this._attachments=[]}});return}this.inProgress=!0,zfe(f,this.rootObjectId,r).subscribe({next:M=>{this._attachments=this.decorateAttachmentLinks(r,M),this.inProgress=!1,this.attachmentsChange.emit(f)},error:M=>{console.error("Failed to add or reload attachments:",M),this.inProgress=!1}})}}createAttachmentLink(r){console.log("createAttachmentLink"),this.localWormHole=this.wormholeSelector==="localEmbeddedModalId";let p=f=>{let M=typeof f=="string"?[f]:f,T=M&&M.length>0;this.isDestroyed||(this.closeEmbeddedModalFileSelection(),T&&this._addLink(r,M))};typeof p!="function"||!this.project||!this.api||setTimeout(()=>{let f=window.location.href.includes("localhost"),M="";if(f&&(M=this.api?.getAccessToken(),!M))return;let T=new cte.ExternalClient("BImplusNGXComponentClient");T?.initialize();let U={};if(!f){let H=window.location.pathname.replace(/\/viewer\/$/,"/");H=H.replace(/\/connexis\/$/,"/"),U.baseUrl=this.inputBaseUrl?this.inputBaseUrl:window.location.origin+H}let x=cte.BimFilesSelect;if(this.wormholeSelector){let H=new x(this.wormholeSelector,M,T,this.env,U);if(!H)return;H.onAttachmentSelected=p,this.project&&(this.localWormHole?H.loadShadowRoot(this.shadowRootElement,this.project.teamSlug,this.project.id):H.load(this.project.teamSlug,this.project.id)),this.setModalVisibility(!0)}},200)}_deleteAttachmentLink(r,p,f){f.stopPropagation(),f.preventDefault();let M=r.objects,T=this._currentObjectId$.value;bd(r.objects.deleteAttachmentLink(this.rootObjectId,p)).pipe(IM(()=>bd(M.getAttachmentLinks(T)))).subscribe({next:U=>{if(this.api){this._attachments=this.decorateAttachmentLinks(this.api,U);let x=this._attachments?.map(H=>this.decorateAttachmentId(H));this.attachmentsLinkChange.emit(x)}},error:U=>{console.error("Failed to delete or reload attachments:",U)}})}deleteAttachmentLink(r,p){if(!this.api||!r)return;let f=this.api;this.dialogService.open(Twe,{options:{position:"middle",positionOptions:{},overlayClickEnabled:!1,overlayVisibilityEnabled:!0,draggable:!0},data:{title:this.translateService.instant("_Delete_attachmentlink"),message:this.translateService.instant("_Attachmentlink_delete_confirmation_message"),acceptButtonLocalizedString:"_Delete",acceptCallback:()=>{this._deleteAttachmentLink(f,r.id,p)}}})}buttonClicked(r){if(!this.api)return;let p=this.api;r.id=="add-documents"&&this.createAttachmentLink(p)}static{this.\u0275fac=function(p){return new(p||d)(vi(ja),vi(hT),vi(zC),vi(Zo),vi(lte))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-links-to-documents"]],inputs:{api:"api",canCreateAttachmentLink:"canCreateAttachmentLink",listOnly:[2,"listOnly","listOnly",Vr],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",Vr],hideAttachmentSize:[2,"hideAttachmentSize","hideAttachmentSize",Vr],inputBaseUrl:"inputBaseUrl",attachments:"attachments",canDeleteAttachmentLink:"canDeleteAttachmentLink",project:"project",wormholeSelector:"wormholeSelector",env:"env",rootObjectId:"rootObjectId"},outputs:{attachmentsChange:"attachmentsChange",attachmentsLinkChange:"attachmentsLinkChange"},standalone:!0,features:[oc,ll,as],decls:5,vars:3,consts:[[1,"links-to-documents"],[3,"items"],[1,"embedded-modal-container"],[1,"bim-attachment-not-found"],[1,"scrollable-content-container"],[3,"buttonClicked","items"],[3,"id","title"],[1,"attachment-row"],[1,"bim-attachment-delete-button"],["target","_blank","rel","noopener noreferrer",1,"bim-attachmentlink-item",3,"href"],[1,"bim-attachment-name",3,"title"],[1,"bim-attachment-size",3,"title"],[1,"bim-attachment-delete-button",3,"click","keydown"],[3,"title"]],template:function(p,f){p&1&&(cn(0,"div",0),gr(1,cUe,1,1,"lib-bimplus-buttons-row",1)(2,uUe,2,1,"div",2)(3,dUe,3,3,"div",3)(4,mUe,4,0,"div",4),mn()),p&2&&(Zt(),fs(f.canCreateAttachmentLink&&!f.listOnly?1:-1),Zt(),fs(f.wormholeSelector==="localEmbeddedModalId"?2:-1),Zt(),fs(!(f._attachments!=null&&f._attachments.length)&&f.showEmptyMessage?3:4))},dependencies:[Ko,xc,l4,o4],styles:[`.text-selected{color:var(--text-highlight-text-color-enabled)}.ui-icon22px{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}lib-bimplus-scrollable-container{--scrollable-container-paddin-right: 0}lib-bimplus-buttons-row{flex:0;--button-row-margin-top: 0;--button-row-margin-right: .8rem;--button-row-margin-bottom: 1.4rem;--button-row-margin-left: 0}.attachment-row{margin:var(--attachment-row-margin, 0 .8rem);border-bottom:var(--attachment-row-border-bottom, solid .1rem var(--details-controls-attachment-item-border-color))}.links-to-documents{display:flex;flex:1;flex-direction:column}.links-to-documents .scrollable-content-container{position:relative;flex:1}.links-to-documents .scrollable-content-container lib-bimplus-scrollable-container{position:absolute;top:0;bottom:0;width:100%}.bim-attachment-delete-button{color:var(--bim-attachment-delete-button, var(--details-controls-attachment-delete-button-text-color));font-weight:var(--bim-attachment-delete-button-font-weight, normal);float:right;margin-left:auto;cursor:pointer;margin-top:.2rem}.bim-attachment-delete-button:hover{color:var(--ui-text-1-color)}.bim-attachment-delete-button div{width:3.2rem;text-align:center}a.bim-attachmentlink-item,a.bim-attachmentlink-item:hover,a.bim-attachmentlink-item:visited{color:var(--dark-gray-color)}.bim-attachment-item,.bim-attachmentlink-item{display:flex;cursor:pointer;line-height:2.5rem;padding-left:var(--bim-attachmentlink-item-left-padding, 3.6rem);background-size:var(--bim-attachment-item-background-size, auto);background-repeat:no-repeat;background-position:var(--bim-attachment-item-background-position, .8rem center);background-image:var(--bim-attachment-item-background-image, url("./assets/icn_grid_attachments.png"));text-decoration:none!important}.bim-attachment-item .bim-attachment-name,.bim-attachmentlink-item .bim-attachment-name{padding-left:var(--bim-attachment-name-padding, 0 0 0 1rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bim-attachment-item .bim-attachment-extension,.bim-attachmentlink-item .bim-attachment-extension{white-space:nowrap}.bim-attachment-item .bim-attachment-size,.bim-attachmentlink-item .bim-attachment-size{padding-left:.5rem;white-space:nowrap;margin-right:.4rem}.bim-attachment-not-found{padding:2.5rem .5rem;color:var(--details-controls-details-not-found-text-color);text-align:center}.embedded-modal-container{display:none;box-sizing:content-box;position:fixed;inset:0;background-color:var(--portal-modal-background-color-overlay);padding:6% 9%}.embedded-modal-container iframe{width:100%;height:100%;outline:0;border:0;-webkit-box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color);-moz-box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color);box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color)}
12846
+ `],encapsulation:3})}}return d})();var cte=Y_(Ewe());var lte=(()=>{class d{constructor(){}fmt(r,...p){let f=0;return r.replace(/%@(\d+)?/g,(M,T)=>{let U=T?parseInt(T,10)-1:f++,x=p[U];return x===null?"(null)":x===void 0?"":x.toString()})}decorateLink(r,p,f){let M={id:p.id,name:p.name,fileName:p.fileName,size:p.size,link:p.link,fileNameShort:"",extension:"",objectIds:f,version:p.version,sizeMB:""},T=r.getAccessToken(),x=r.getApiTeamUrl()+"attachments/%@/versions/%@/download",H=!1;if(M.size=parseFloat((p.size/1e3).toFixed(2)),M.link=`${this.fmt(x,p.id,p.version)}?api-token=${T}${H?"":"&openInBrowser=true"}`,p.fileName.length>20){let J=p.fileName.split(".");J.length>1?(M.fileNameShort=J.slice(0,-1).join("."),M.extension="."+J.slice(-1)):M.fileNameShort=p.fileName}else M.fileNameShort=p.fileName;return M}static{this.\u0275fac=function(p){return new(p||d)}}static{this.\u0275prov=za({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})();function cUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-buttons-row",5),xi("buttonClicked",function(f){Pi(r);let M=on();return Bi(M.buttonClicked(f))}),mn()}if(d&2){let r=on();Nn("items",r.buttonRowItems)}}function uUe(d,o){if(d&1&&(cn(0,"div",2),Zr(1,"iframe",6),mn()),d&2){let r=on();Zt(),Bo("id",r.wormholeSelector)}}function dUe(d,o){d&1&&(cn(0,"div",3),Wr(1),ca(2,"translate"),mn()),d&2&&(Zt(),Sa(" ",ha(2,1,"_No_attachmentlinks_found")," "))}function pUe(d,o){if(d&1){let r=qs();cn(0,"span",12),xi("click",function(f){Pi(r);let M=on().$implicit,T=on(2);return Bi(T.deleteAttachmentLink(M,f))})("keydown",function(f){Pi(r);let M=on().$implicit,T=on(2);return Bi(T.deleteAttachmentLink(M,f))}),cn(1,"div",13),ca(2,"translate"),Wr(3," \u2715\uFE0E "),mn()()}d&2&&(Zt(),Bo("title",ha(2,1,"_Delete_attachmentlink")))}function hUe(d,o){if(d&1&&(cn(0,"div",11),Wr(1),mn()),d&2){let r=on().$implicit;Bo("title",r.name),Zt(),Sa(" (",r.size," kB) ")}}function fUe(d,o){if(d&1&&(cn(0,"div",7),gr(1,pUe,4,3,"span",8),cn(2,"a",9)(3,"div",10),Wr(4),mn(),gr(5,hUe,2,2,"div",11),mn()()),d&2){let r=o.$implicit,p=on(2);Zt(),fs(p.canDeleteAttachmentLink?1:-1),Zt(),Bo("href",r.link,uT),Zt(),Bo("title",r.fileName),Zt(),Sa(" ",r.name?r.name:r.fileName," "),Zt(),fs(p.hideAttachmentSize?-1:5)}}function mUe(d,o){if(d&1&&(cn(0,"div",4)(1,"lib-bimplus-scrollable-container"),Sp(2,fUe,6,5,"div",7,wM),mn()()),d&2){let r=on();Zt(2),zp(r._attachments)}}var zfe=(d,o,r)=>{let p=d.map(f=>bd(r.objects.postAttachmentLink(o,JSON.stringify({attachmentId:f}))));return Ez(p).pipe(Z_(()=>bd(r.objects.getAttachmentLinks(o))))},Dwe=(()=>{class d extends Rc{constructor(r,p,f,M,T){super(r),this.dialogService=p,this.renderer=f,this.el=M,this.decorators=T,this._rootObjectId="",this.isDestroyed=!1,this.localWormHole=!0,this.inProgress=!1,this.canCreateAttachmentLink=!0,this.listOnly=!1,this.showEmptyMessage=!0,this.hideAttachmentSize=!1,this.inputBaseUrl="",this._attachments=[],this.attachmentsChange=new pr,this.attachmentsLinkChange=new pr,this.canDeleteAttachmentLink=!0,this.project=null,this.wormholeSelector="localEmbeddedModalId",this.env="dev",this._currentObjectId$=new Du(""),this._attachmentCount=0,this.buttonRowItems=[{id:"add-documents",title:this.translateService.instant("_Add_document"),tooltip:this.translateService.instant("_Add_document"),disabled:!this.canCreateAttachmentLink,buttonStyle:"primary"}],this.documentSelection=null,this.isOpened=!1,this.embeddedModalContainer="embedded-modal",this.shadowRootElement=this.el.nativeElement.shadowRoot}set attachments(r){this._attachments=r,this.onAttachmentsChange()}get attachments(){return this._attachments}onAttachmentsChange(){this.api&&this.rootObjectId&&(this._attachments=this.decorateAttachmentLinks(this.api,this._attachments))}set rootObjectId(r){r&&(this._currentObjectId$.next(r),this._rootObjectId=r)}get rootObjectId(){return this._rootObjectId}ngOnInit(){this.listOnly||this._currentObjectId$.subscribe({next:r=>{this._createAttachmentLinkStructure(r)}})}ngOnDestroy(){this.isDestroyed=!0}decorateAttachmentId(r){return{id:r.id,name:r.name,nameShort:r.name,url:"",iconClass:"",iconTitle:"",type:"AttachmentLink",deleteButtonTitle:""}}decorateAttachmentLinks(r,p){let f=p.map(M=>this.decorators.decorateLink(r,M,[this._currentObjectId$.value]));return f.sort((M,T)=>M.fileName.toLowerCase()<T.fileName.toLowerCase()?-1:M.fileName.toLowerCase()>T.fileName.toLowerCase()?1:0),f}_createAttachmentLinkStructure(r){this._loadAttachmentLinkStructure(r)?.subscribe({next:p=>{if(p&&(this._attachmentCount=p?.length,this.api)){let f=this.decorateAttachmentLinks(this.api,p);f&&(this._attachments=f)}}})}_loadAttachmentLinkStructure(r){if(this.api&&r)return bd(this.api.objects.getAttachmentLinks(r))}setModalVisibility(r=!0){if(!this.wormholeSelector)return;let p=this.localWormHole?this.shadowRootElement.querySelector("#"+this.wormholeSelector):document.getElementById(this.wormholeSelector);p&&(this.localWormHole?p.parentElement&&this.renderer.setStyle(p.parentElement,"display",r?"block":"none"):this.renderer.setStyle(p.parentElement,"display",r?"block":"none"),this.isOpened=r)}closeEmbeddedModalFileSelection(){this.setModalVisibility(!1)}_addLink(r,p){let f=p.filter(M=>!this.attachments.find(T=>T.id===M));if(f.length){if(this.inProgress){console.log("in progress");return}if(!this.rootObjectId){let M=f.map(T=>bd(r.objects.get(T,0,void 0,void 0,void 0,void 0)));Ez(M).subscribe({next:T=>{T?.forEach(x=>{x?.id&&!this.attachments.find(H=>H?.id===x.id)&&this._attachments.push(x)});let U=this._attachments.map(x=>this.decorateAttachmentId(x));this.attachmentsLinkChange.emit(U)},error:T=>{console.error("Error occurred during requests:",T),this._attachments=[]}});return}this.inProgress=!0,zfe(f,this.rootObjectId,r).subscribe({next:M=>{this._attachments=this.decorateAttachmentLinks(r,M),this.inProgress=!1,this.attachmentsChange.emit(f)},error:M=>{console.error("Failed to add or reload attachments:",M),this.inProgress=!1}})}}createAttachmentLink(r){console.log("createAttachmentLink"),this.localWormHole=this.wormholeSelector==="localEmbeddedModalId";let p=f=>{let M=typeof f=="string"?[f]:f,T=M&&M.length>0;this.isDestroyed||(this.closeEmbeddedModalFileSelection(),T&&this._addLink(r,M))};typeof p!="function"||!this.project||!this.api||setTimeout(()=>{let f=window.location.href.includes("localhost"),M="";if(M=this.api?.getAccessToken(),!M&&(M=window.localStorage.getItem("access_token"),!M))return;let T=new cte.ExternalClient("BImplusNGXComponentClient");T?.initialize();let U={};if(!f){let H=window.location.pathname.replace(/\/viewer\/$/,"/");H=H.replace(/\/connexis\/$/,"/"),U.baseUrl=this.inputBaseUrl?this.inputBaseUrl:window.location.origin+H}let x=cte.BimFilesSelect;if(this.wormholeSelector){let H=new x(this.wormholeSelector,M,T,this.env,U);if(!H)return;H.onAttachmentSelected=p,this.project&&(this.localWormHole?H.loadShadowRoot(this.shadowRootElement,this.project.teamSlug,this.project.id):H.load(this.project.teamSlug,this.project.id)),this.setModalVisibility(!0)}},200)}_deleteAttachmentLink(r,p,f){f.stopPropagation(),f.preventDefault();let M=r.objects,T=this._currentObjectId$.value;bd(r.objects.deleteAttachmentLink(this.rootObjectId,p)).pipe(IM(()=>bd(M.getAttachmentLinks(T)))).subscribe({next:U=>{if(this.api){this._attachments=this.decorateAttachmentLinks(this.api,U);let x=this._attachments?.map(H=>this.decorateAttachmentId(H));this.attachmentsLinkChange.emit(x)}},error:U=>{console.error("Failed to delete or reload attachments:",U)}})}deleteAttachmentLink(r,p){if(!this.api||!r)return;let f=this.api;this.dialogService.open(Twe,{options:{position:"middle",positionOptions:{},overlayClickEnabled:!1,overlayVisibilityEnabled:!0,draggable:!0},data:{title:this.translateService.instant("_Delete_attachmentlink"),message:this.translateService.instant("_Attachmentlink_delete_confirmation_message"),acceptButtonLocalizedString:"_Delete",acceptCallback:()=>{this._deleteAttachmentLink(f,r.id,p)}}})}buttonClicked(r){if(!this.api)return;let p=this.api;r.id=="add-documents"&&this.createAttachmentLink(p)}static{this.\u0275fac=function(p){return new(p||d)(vi(ja),vi(hT),vi(zC),vi(Zo),vi(lte))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-links-to-documents"]],inputs:{api:"api",canCreateAttachmentLink:"canCreateAttachmentLink",listOnly:[2,"listOnly","listOnly",Vr],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",Vr],hideAttachmentSize:[2,"hideAttachmentSize","hideAttachmentSize",Vr],inputBaseUrl:"inputBaseUrl",attachments:"attachments",canDeleteAttachmentLink:"canDeleteAttachmentLink",project:"project",wormholeSelector:"wormholeSelector",env:"env",rootObjectId:"rootObjectId"},outputs:{attachmentsChange:"attachmentsChange",attachmentsLinkChange:"attachmentsLinkChange"},standalone:!0,features:[oc,ll,as],decls:5,vars:3,consts:[[1,"links-to-documents"],[3,"items"],[1,"embedded-modal-container"],["data-test","no-attachment-links",1,"bim-attachment-not-found"],[1,"scrollable-content-container"],[3,"buttonClicked","items"],[3,"id","title"],[1,"attachment-row"],[1,"bim-attachment-delete-button"],["target","_blank","rel","noopener noreferrer",1,"bim-attachmentlink-item",3,"href"],[1,"bim-attachment-name",3,"title"],[1,"bim-attachment-size",3,"title"],[1,"bim-attachment-delete-button",3,"click","keydown"],[3,"title"]],template:function(p,f){p&1&&(cn(0,"div",0),gr(1,cUe,1,1,"lib-bimplus-buttons-row",1)(2,uUe,2,1,"div",2)(3,dUe,3,3,"div",3)(4,mUe,4,0,"div",4),mn()),p&2&&(Zt(),fs(f.canCreateAttachmentLink&&!f.listOnly?1:-1),Zt(),fs(f.wormholeSelector==="localEmbeddedModalId"?2:-1),Zt(),fs(!(f._attachments!=null&&f._attachments.length)&&f.showEmptyMessage?3:4))},dependencies:[Ko,xc,l4,o4],styles:[`.text-selected{color:var(--text-highlight-text-color-enabled)}.ui-icon22px{width:2.2rem;height:2.2rem;display:inline-block;float:right;border-radius:.4rem;background-position:center center;background-repeat:no-repeat;cursor:pointer}.ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat}.touch-ui-icon-sidemenu{width:2.4rem;height:2.4rem;background-size:1.8rem 1.8rem;background-position:center center;background-repeat:no-repeat;width:3.2rem;height:3.2rem}.ui-icon-sidemenu-important{width:2.4rem!important;height:2.4rem!important;background-size:1.8rem 1.8rem!important;background-position:center center;background-repeat:no-repeat}lib-bimplus-scrollable-container{--scrollable-container-paddin-right: 0}lib-bimplus-buttons-row{flex:0;--button-row-margin-top: 0;--button-row-margin-right: .8rem;--button-row-margin-bottom: 1.4rem;--button-row-margin-left: 0}.attachment-row{margin:var(--attachment-row-margin, 0 .8rem);border-bottom:var(--attachment-row-border-bottom, solid .1rem var(--details-controls-attachment-item-border-color))}.links-to-documents{display:flex;flex:1;flex-direction:column}.links-to-documents .scrollable-content-container{position:relative;flex:1}.links-to-documents .scrollable-content-container lib-bimplus-scrollable-container{position:absolute;top:0;bottom:0;width:100%}.bim-attachment-delete-button{color:var(--bim-attachment-delete-button, var(--details-controls-attachment-delete-button-text-color));font-weight:var(--bim-attachment-delete-button-font-weight, normal);float:right;margin-left:auto;cursor:pointer;margin-top:.2rem}.bim-attachment-delete-button:hover{color:var(--ui-text-1-color)}.bim-attachment-delete-button div{width:3.2rem;text-align:center}a.bim-attachmentlink-item,a.bim-attachmentlink-item:hover,a.bim-attachmentlink-item:visited{color:var(--dark-gray-color)}.bim-attachment-item,.bim-attachmentlink-item{display:flex;cursor:pointer;line-height:2.5rem;padding-left:var(--bim-attachmentlink-item-left-padding, 3.6rem);background-size:var(--bim-attachment-item-background-size, auto);background-repeat:no-repeat;background-position:var(--bim-attachment-item-background-position, .8rem center);background-image:var(--bim-attachment-item-background-image, url("./assets/icn_grid_attachments.png"));text-decoration:none!important}.bim-attachment-item .bim-attachment-name,.bim-attachmentlink-item .bim-attachment-name{padding-left:var(--bim-attachment-name-padding, 0 0 0 1rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bim-attachment-item .bim-attachment-extension,.bim-attachmentlink-item .bim-attachment-extension{white-space:nowrap}.bim-attachment-item .bim-attachment-size,.bim-attachmentlink-item .bim-attachment-size{padding-left:.5rem;white-space:nowrap;margin-right:.4rem}.bim-attachment-not-found{padding:2.5rem .5rem;color:var(--details-controls-details-not-found-text-color);text-align:center}.embedded-modal-container{display:none;box-sizing:content-box;position:fixed;inset:0;background-color:var(--portal-modal-background-color-overlay);padding:6% 9%}.embedded-modal-container iframe{width:100%;height:100%;outline:0;border:0;-webkit-box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color);-moz-box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color);box-shadow:0 0 .5rem var(--embedded-modal-shadow-color),0 0 .5rem var(--embedded-modal-shadow-color)}
12847
12847
  `],encapsulation:3})}}return d})();var Swe=(()=>{class d{get title(){return this._title}set title(r){this._title=r}get message(){return this._message}set message(r){this._message=r}constructor(r,p){this.dialogService=r,this.translateService=p,this._title="",this._message="",this.buttons=[{id:"errorDialogAcceptButton",title:this.translateService.instant("_Ok"),tooltip:this.translateService.instant("_Ok"),disabled:!1,buttonStyle:"primary"}],this._data=this.dialogService.inputData,this._title=this._data?.title||"",this._message=this._data?.message||""}close(){this.dialogService.close()}keypressClose(r){(r.key==="Escape"||r.key==="Esc")&&this.close()}buttonRowButtonClicked(){this.close(),this.acceptCallback?.()}handleKeydown(r){(r.key==="Escape"||r.key==="Esc")&&this.close()}static{this.\u0275fac=function(p){return new(p||d)(vi(hT),vi(ja))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-overlay-dialog-error"]],hostBindings:function(p,f){p&1&&xi("keydown",function(T){return f.handleKeydown(T)},!1,$I)},inputs:{title:"title",message:"message"},standalone:!0,features:[as],decls:11,vars:3,consts:[[1,"overlay-dialog-container"],[1,"overlay-dialog-container_title"],[1,"overlay-dialog-container_title_icon"],[1,"overlay-dialog-container_title_msg"],[1,"overlay-dialog-container_title_close",3,"click","keypress"],[1,"overlay-dialog-container_content"],[1,"overlay-dialog-container_content_msg"],[1,"buttons"],[3,"buttonClicked","items"]],template:function(p,f){p&1&&(cn(0,"div",0)(1,"div",1),Zr(2,"div",2),cn(3,"div",3),Wr(4),mn(),cn(5,"div",4),xi("click",function(){return f.close()})("keypress",function(T){return f.keypressClose(T)}),mn()(),cn(6,"div",5)(7,"div",6),Wr(8),mn(),cn(9,"div",7)(10,"lib-bimplus-buttons-row",8),xi("buttonClicked",function(){return f.buttonRowButtonClicked()}),mn()()()()),p&2&&(Zt(4),Sa(" ",f.title," "),Zt(4),Sa(" ",f.message," "),Zt(2),Nn("items",f.buttons))},dependencies:[qo,Ko,o4],styles:[`.overlay-dialog-container{display:inline-flex;flex-direction:column;box-shadow:0 .4rem .8rem 0 var(--card-box-shadow-color),0 .6rem 2rem 0 var(--card-box-shadow-color);min-width:37.6rem;max-width:60rem}.overlay-dialog-container .overlay-dialog-container_title{background-color:var(--color-help-popup-title-background);height:3.2rem;display:inline-flex;align-items:center}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_icon{width:1.8rem;height:1.8rem;background:url("./assets/bimplus_Components_Overlay_Dialog_Error_Title.svg") no-repeat center center;padding:0 1.6rem}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_msg{color:var(--main-menu-text-default);font:700 1.3832rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;text-transform:capitalize;margin-bottom:.2rem}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close{width:1.8rem;height:1.8rem;background:url("./assets/bimplus_Components_Overlay_Dialog_Cross_White.svg") no-repeat center center;cursor:default;margin:0 0 0 auto;padding-right:1.6rem}.overlay-dialog-container .overlay-dialog-container_title .overlay-dialog-container_title_close:hover{cursor:pointer}.overlay-dialog-container .content .warning-title{line-height:2.4rem}.overlay-dialog-container .content .warning-message{line-height:1.6rem}.overlay-dialog-container .overlay-dialog-container_content{background-color:var(--main-menu-text-default);flex-grow:1}.overlay-dialog-container .overlay-dialog-container_content .overlay-dialog-container_content_msg{color:var(--color-help-popup-title-background);font:400 1.28rem Source Sans Pro,Helvetica,Arial,tahoma,sans-serif;padding-top:.8rem;padding-left:1.6rem}.overlay-dialog-container .overlay-dialog-container_content .buttons{padding:1.6rem}
12848
12848
  `],encapsulation:3})}}return d})();var ute=[{id:"object-properties",img:{default:"ic_models",active:"ic_models_maincolor"},title:"_Object properties"},{id:"comments",img:{default:"Comments_18_gray",active:"Comments_18_maincolor"},title:"_Comments"},{id:"attachments",img:{default:"Attachment_18_gray",active:"Attachment_18_maincolor"},title:"_Attachments"},{id:"hyperlinks",img:{default:"Links_18_gray",active:"Links_18_maincolor"},title:"hyperlinks"},{id:"links-to-documents",img:{default:"Attachmentlink_18_gray",active:"Attachmentlink_18_maincolor"},title:"_Links_to_documents"}],dte=new Fo("bimplus-tabs-switcher-config");var pF=(()=>{class d{setActiveTab(r){this.activeTab.next(r)}constructor(r){this.bimplusTabsSwitcherConfig=r,this.tabSwitcherElements=new Du(ute),this.tabSwitcherElements$=this.tabSwitcherElements.asObservable(),this.activeTab=new ac,this.activeTab$=this.activeTab.asObservable(),this.bimplusTabsSwitcherConfig?.defaultTabsSwitcherElements&&this.tabSwitcherElements.next(this.bimplusTabsSwitcherConfig.defaultTabsSwitcherElements)}static{this.\u0275fac=function(p){return new(p||d)(Gs(dte,8))}}static{this.\u0275prov=za({token:d,factory:d.\u0275fac})}}return d})();var bUe=(d,o)=>({"underline-switcher":!0,highlight:d,hovering:o}),vUe="../../../../../../",pte=(()=>{class d{set activeTab(r){r&&this.bimplusTabsSwitcherService.setActiveTab(r)}constructor(r,p){this.bimplusTabsSwitcherConfig=r,this.bimplusTabsSwitcherService=p,this.imageBaseSrc=vUe,this.activeTabChange=new pr,this.activeTabSignal=HX(this.bimplusTabsSwitcherService.activeTab$),this.isActive=RM(()=>this.activeTabSignal()===this.bimplusTabComponentModel.id),this.isDisabled=so(!1),this.imgName=RM(()=>this.isActive()?this.bimplusTabComponentModel.img.active:this.bimplusTabComponentModel.img.default),this.onHoverOver=so(!1),this.isAllDisabled=this.bimplusTabsSwitcherConfig?.disabled?.all??!1,this.isAllDisabled&&this.isDisabled.set(!0)}onMouseEnter(){this.onHoverOver.set(!0)}onMouseLeave(){this.onHoverOver.set(!1)}ngOnInit(){!this.isAllDisabled&&this.bimplusTabsSwitcherConfig?.disabled?.id&&this.isDisabled.set(this.bimplusTabsSwitcherConfig.disabled?.id===this.bimplusTabComponentModel.id)}activate(){this.isDisabled()||(this.bimplusTabsSwitcherService.setActiveTab(this.bimplusTabComponentModel.id),this.activeTabChange.emit(this.bimplusTabComponentModel.id))}static{this.\u0275fac=function(p){return new(p||d)(vi(dte,8),vi(pF))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-tab"]],hostBindings:function(p,f){p&1&&xi("mouseenter",function(){return f.onMouseEnter()})("mouseleave",function(){return f.onMouseLeave()})},inputs:{bimplusTabComponentModel:"bimplusTabComponentModel",imageBaseSrc:"imageBaseSrc",activeTab:"activeTab"},outputs:{activeTabChange:"activeTabChange"},standalone:!0,features:[as],decls:4,vars:14,consts:[[1,"tab-element",3,"click","keypress","title"],[3,"src","alt"],[3,"ngClass"]],template:function(p,f){p&1&&(cn(0,"div",0),ca(1,"translate"),xi("click",function(){return!f.isDisabled()&&f.activate()})("keypress",function(){return!f.isDisabled()&&f.activate()}),Zr(2,"img",1)(3,"div",2),mn()),p&2&&(ul("disabled",f.isDisabled()),Nn("title",ha(1,9,f.bimplusTabComponentModel.title)),Zt(2),X1e("src","",f.imageBaseSrc,"assets/images/default/",f.imgName(),".svg",uT),Nn("alt",f.imgName()),Zt(),Nn("ngClass",dy(11,bUe,f.isActive(),f.onHoverOver())),Gl("data-test","underline-switcher-"+f.bimplusTabComponentModel.id))},dependencies:[Oc,Ko,xc],styles:["[_ngcontent-%COMP%]:root{--color-brand-dark: #033A68;--color-brand-white: #FFF;--color-main-background: #FFF;--color-brand-primary: #06C;--color-brand-light: #B4DAFF;--color-main-error: #D1000D;--color-main-warning: #FEA400;--color-main-info: #0297E3;--color-background-body_default: #F7F7F7;--color-background-body_modify: #F0F8FF;--color-background-cover_popup: #2F31333F;--color-background-layer-1: #FFF;--color-background-layer-2: #F7F7F7;--color-background-layer-3: #E1E5E8;--color-background-layer-4: #87C1FF;--color-background-layer-5: #06C;--color-background-layer-6: #DEF0FF;--color-background-quickfilter: #004AA4;--color-checkbox-backgroud-hover: #B4DAFF;--color-background-button-primary-enabled: #06C;--color-background-button-primary-hover: #004AA4;--color-background-button-primary-pressed: #002C70;--color-background-button-primary-disabled: #D3D7DB;--color-button-primary-disabled: #FFF;--color-background-button-secondary-enabled: #FFF;--color-background-button-secondary-hover: #DEF0FF;--color-background-button-secondary-pressed: #DEF0FF;--color-background-button-secondary-disabled: #FFF;--color-background-button-tertiary-enabled: #DEF0FF;--color-background-button-tertiary-hover: #B4DAFF;--color-background-button-tertiary-pressed: #A0CEFF;--color-background-button-tertiary-disabled: #DEF0FF;--color-background-chip-open: #ECEFF1;--color-background-chip-in-progress: #B2E4FC;--color-background-chip-on-hold: #FFF9BF;--color-background-chip-resolved: #CBF6C8;--color-background-chip-cancelled: #FFC7CD;--color-background-menu-enabled: #FFF;--color-background-menu-hover: #F7F7F7;--color-background-menu-pressed: #E1E5E8;--color-background-menu-selected: #B4DAFF;--color-background-sidebar-allplan: #000;--color-background-sidebar-default: #232526;--color-background-sidebar-hover: #2F3133;--color-background-sidebar-pressed: #46494D;--color-background-table-header: #DEF0FF;--color-background-table-row: #F7F7F7;--color-background-table-row_hover: #E1E5E8;--color-background-table-line: #FFF;--color-background-table-sub: #F9F9F9;--color-background-table-sub_hover: #ECEFF1;--color-background-calender-default: #FFF;--color-background-calender-selected: #B4DAFF;--color-background-calender-focused: #148CF6;--color-background-calender-weekend: #D3D7DB;--color-background-toaster-error: #FFC7CD;--color-background-toaster-warning: #FFFDE5;--color-background-toaster-success: #EAFCE9;--color-background-toaster-info: #B2E4FC;--color-border-default: #D3D7DB;--color-border-hover: #84888C;--color-border-focus: #06C;--color-border-error-dark: #AC0000;--color-border-error-default: #FE0019;--color-border-warning-dark: #E36C03;--color-border-warning-default: #FEA400;--color-border-success-dark: #006602;--color-border-success-default: #0ADB3B;--color-border-info-dark: #004AA4;--color-border-info-default: #329AFF;--color-border-highlight: #06C;--color-border-quickfilter: #004AA4;--color-border-button-disabled: #D3D7DB;--color-border-calender-default: #FFF;--color-border-calender-selected: #87C1FF;--color-border-calender-focused: #148CF6;--color-border-input-default: #D3D7DB;--color-border-input-hover: #84888C;--color-border-input-focus: #06C;--color-border-input-focus-shadow: 0px 0px 4px 0px var(--color-brand-primary);--color-border-input-error-dark: #C40000;--color-border-input-error-default: #FE0019;--color-border-input-warning-dark: #FD7700;--color-border-input-warning-default: #FEA400;--color-border-input-success-dark: #007D02;--color-border-input-success-default: #0ADB3B;--color-border-input-info-dark: #004AA4;--color-border-input-info-default: #329AFF;--color-border-input-disabled: #D3D7DB;--color-border-chip-open: #46494D;--color-border-chip-in-progress: #033A68;--color-border-chip-on-hold: #E36C03;--color-border-chip-resolved: #006602;--color-border-chip-cancelled: #AC0000;--color-icon-default: #2F3133;--color-icon-primary: #06C;--color-icon-on-primary: #FFF;--color-icon-muted: #676869;--color-icon-highlight: #50A8FF;--color-text-body: #232526;--color-text-muted: #676869;--color-text-highlight-light: #06C;--color-text-on-primary: #FFF;--color-text-hint: #84888C;--color-text-highlight-dark: #50A8FF;--color-text-link-default: #06C;--color-text-link-pressed: #004AA4;--color-text-feedback-error-default: #FE0019;--color-text-feedback-error-dark: #AC0000;--color-text-feedback-warning-default: #FEA400;--color-text-feedback-warning-dark: #FD7700;--color-text-feedback-success-default: #0ADB3B;--color-text-feedback-success-dark: #007D02;--color-text-feedback-info-default: #329AFF;--color-text-feedback-info-dark: #004AA4;--color-text-button-primary-disabled: #F7F7F7;--color-text-button-secondary-disabled: #A0CEFF;--color-text-button-tritiary-disabled: #A0CEFF;--color-logo-dark: #033A68;--color-logo-brand: #06C;--color-logo-light: #329AFF;--color-logo-black: #2F3133;--color-fill-success: #0ADB3B;--color-fill-error: #FE0019;--color-fill-color: #84888C;--color-line-devider: #B8BBBF;--color-illustrations-color2: #50A8FF;--color-illustrations-color4: #E3BD9A;--color-illustrations-color5: #033A68;--color-illustrations-color6: #000;--color-illustrations-color7: #FEBD00;--color-illustrations-color8: #FD7700;--color-illustrations-color9: #D3D7DB;--color-illustrations-color10: #ECEFF1;--color-illustrations-color11: #84888C;--spacing-base: 4px;--spacing-x2: 8px;--spacing-x3: 12px;--spacing-x4: 16px;--spacing-x5: 20px;--spacing-x6: 24px;--spacing-x7: 28px;--spacing-x8: 32px;--spacing-x9: 36px;--spacing-x10: 40px;--spacing-x15: 60px;--spacing-x20: 80px;--spacing-none: 0px;--border-radius-minimum: 2px;--border-radius-base: 4px;--border-radius-x2: 8px;--border-radius-x3: 12px;--border-radius-x4: 16px;--border-radius-x5: 20px;--border-radius-none: 0px;--size-base: 4px;--size-x2: 8px;--size-x3: 12px;--size-x4: 16px;--size-x5: 20px;--size-x10: 40px;--size-x20: 80px;--drop-shadow-default: 3px 3px 12px 0px var(--drop-shadow-default-background-color);--drop-shadow-input: 0px 0px 4px 0px var(--brand-blue-800);--spacing-card-padding: 20px;--input-padding: var(--spacing-x3);--font-family-default: arial, helvetiva, sans serif;--font-weight-bold: bold;--font-weight-regular: normal;--font-size-heading-1: 56px;--font-size-heading-2: 40px;--font-size-heading-3: 32px;--font-size-heading-4: 24px;--font-size-large: 20px;--font-size-normal: 16px;--font-size-medium: 14px;--font-size-small: 12px;--font-size-smaller: 11px;--font-size-mobile-heading-1: 36px;--font-size-mobile-heading-2: 28px;--font-size-mobile-heading-3: 24px;--font-size-mobile-heading-4: 20px;--font-size-mobile-large: 18px;--font-size-mobile-normal: 16px;--font-size-mobile-medium: 14px;--font-size-mobile-small: 12px;--font-size-mobile-smaller: 11px;--color-project-view-link-hovered: #329AFF;--color-brand-air: #DEF0FF;--color-datepicker-background: #ECEFF1;--color-datepicker-border-hover: #84888C;--color-datepicker-border: #84888C;--color-datepicker-disabled: #84888C;--color-datepicker: #84888C;--color-datepicker-container-error-background: #FFF;--color-datepicker-background-disabled: #FFF;--color-background-general: #ECEFF1;--color-border-general: #ECEFF1;--color-background-general-disabled: #FFF;--color-jstree-search: #AC0000;--color-jstree-search-background-focus: #FFF;--color-jstree-multiselect-tree: #46494D;--color-jstree-colorpicker-border-disabled: #84888C;--color-jstree-checkbox-divider: #84888C;--color-jstree-anchor-clicked: #06C;--color-jstree-custom-buttons-draggable-background-hovered: #E1E5E8;--color-jstree-body-istouch-anchor-background: #E1E5E8;--color-jstree-body-istouch-li-background-hovered: #E1E5E8;--color-colorpicker-trigger-border: #84888C;--color-colorpicker-color-border: #84888C;--color-colorpicker-modable-slider-border: #84888C;--color-colorpicker-colorpreview-border: #84888C;--color-colorpicker-default-opaque-chessboard-container-background: #FFF;--color-widget-header: #46494D;--color-widget-header-background: #F7F7F7;--color-pdmodal-select: #FFF;--color-pdmodal-select-background: #46494D;--color-pdmodal-select-background-highlighted: #676869;--color-pdmodal-select-disabled: #84888C;--color-pdmodal-checkbox-title-disabled: #84888C;--color-pdmodal-secondary-button-border-disabled: #84888C;--color-pdmodal-secondary-button-background-disabled: #84888C;--color-pdmodal-secondary-button-disabled: #84888C;--color-pdmodal-content-background: #FFF;--color-modal-header-border: #E1E5E8;--color-ui-slider-range-background: #46494D;--color-tabs-panel-title: #46494D;--color-structure-details-list-value: #46494D;--color-structure-details-pin-invisible: #84888C;--color-structure-details-name-border: #84888C;--color-structure-details-button-border-bottom: #84888C;--color-structure-details-pin-border: #B8BBBF;--color-structure-details-list-value-background-hover-disabled: #FFF;--color-structure-details-comment: #B8BBBF;--color-structure-details-modified: #B8BBBF;--color-structure-details-img-background: #FFF;--color-structure-details-img-selobj-background: #FFF;--color-structure-details-input-text-short-color-hover-enabled: #000;--color-structure-history-input-border-hover: #84888C;--color-context-menu-item-disabled: #46494D;--color-context-menu-background: #FFF;--color-context-menu-close-icon: #FFF;--color-context-menu-list-background: #FFF;--color-context-menu-list-border: #B8BBBF;--color-context-menu-item-label: #46494D;--color-context-menu-item-background-hover: #F7F7F7;--color-help-popup-title-background: #46494D;--color-help-popup-title: #FFF;--color-help-popup-close-button: #FFF;--color-popup-dialog-modal-subbody-row-disabled: #84888C;--color-popup-dialog-textarea-border: #84888C;--color-popup-dialog-textarea-border-hover: #84888C;--color-popup-dialog-textarea-background-hover: #F7F7F7;--color-popup-dialog-textarea-disabled: #84888C;--color-popup-dialog-textinput-disabled: #84888C;--color-popup-dialog-textinput-border: #84888C;--color-popup-dialog-text-input-wrapper-disabled: #84888C;--color-popup-dialog-bkg: #FFF;--color-popup-dialog-title: #FFF;--color-popup-menu-content-background: #FFF;--color-popupwin-item-color-disabled: #84888C;--color-popupwin-item-color-disabled-hover: #84888C;--color-clashdetection-activate-footer: #46494D;--color-clashdetection-newclashset-header: #46494D;--color-clashdetection-tolerance-border: #84888C;--color-clashdetection-tolerance-input-border-hover: #84888C;--color-clashdetection-description-tolerance-border: #84888C;--color-clashdetection-button: #FFF;--color-revisions-title-background: #46494D;--color-revisions-popupwin-content-background: #FFF;--color-revisions-title: #FFF;--color-revisions-popupwin-close-button: #FFF;--color-top-menu-toolbar-user: #46494D;--color-top-menu-toolbar-company: #46494D;--color-power-select-multiple-remove-btn: #46494D;--color-power-select-multiple-options-btn: #676869;--color-power-select-multiple-options-background: #FFF;--color-power-select-trigger: #84888C;--color-power-select-trigger-disabled: #84888C;--color-power-select-trigger-hover: #84888C;--color-power-select-trigger-border-hover: #84888C;--color-power-select-trigger-status-border: #84888C;--color-power-select-trigger-border: #84888C;--color-power-select-placeholder: #84888C;--color-power-select-status-border: #84888C;--color-power-select-search-border: #06C;--color-combobox-objectproperty-disabled-power-select-triger-background: #ECEFF1;--color-input-webkit-autofill: #46494D;--color-forms-input-webkit-autofill: #FFF;--color-ui-text-1: #46494D;--color-dark-gray: #46494D;--color-midle-gray: #676869;--color-pdmodal-select-dropdown: #676869;--color-center-menu-border: #676869;--color-center-menu-submenu-border: #84888C;--color-center-menu-background: #FFF;--color-center-menu-active-color-hovered: #06C;--color-text-main-menu-app-item-enabled: #000;--color-obj-prop-view-list: #676869;--color-obj-prop-table-value-border: #84888C;--color-table-text-search: #676869;--color-table-row-selected-border-color: #B8BBBF;--color-table-toolbar-text-search-border-color: #B8BBBF;--color-table-toolbar-text-search-background-color: #FFF;--color-table-container-text-search-border-color: #B8BBBF;--color-table-columns-selection-border-color: #B8BBBF;--color-table-portal-border-color: #B8BBBF;--color-table-portal-border: #B8BBBF;--color-table-portal-toolbar-border-color: #B8BBBF;--color-table-portal-border-two: #D3D7DB;--color-table-portal-border-three: #06C;--color-table-portal-background: #84888C;--color-table-portal-background-two: #F7F7F7;--color-table-portal-toolbar-border: #B8BBBF;--color-table-portal: #000;--color-table-portal-two: #FFF;--color-table-portal-three: #B8BBBF;--color-table-portal-four: #46494D;--color-table-stripe-dark: #B8BBBF;--color-sidemenu-background: #676869;--color-sidemenu-navigation-background: #F7F7F7;--color-sidemenu-navigation-row-a: #000;--color-sidemenu-navigation-row-a-active: #B4DAFF;--color-sidemenu-navigation-parent-row-disabled: #B8BBBF;--color-sidemenu-navigation-parent-container-hovered: #B4DAFF;--color-sidemenu-navigation-parent-row-hovered: #B4DAFF;--color-sidemenu-navigation-projectinfo-thumbnail-projectname-container-background: var(--color-neutral-white-transparency90);--color-form-control-placeholder: #676869;--color-form-help-block: #676869;--color-form-control: #46494D;--color-form-control-border: #676869;--color-components-form-control: #E1E5E8;--color-components-form-control-text-field-description: #E1E5E8;--color-components-form-control-text-field-control: #E1E5E8;--color-components-form-control-border: #FFF;--color-components-form-control-white-background: #FFF;--color-components-form-control-text-underline-link-border: #FFF;--color-components-form-control-white-border: #000;--color-components-form-control-white: #000;--color-components-form-control-white-border-disabled: #000;--color-login-button-error-background: #676869;--color-modable-slider-background: #676869;--color-project-list-text: #676869;--color-project-list-border: #E1E5E8;--color-project-list-font: #46494D;--color-embedded-modal-shadow: #676869;--color-embbedded-table-border: #84888C;--color-embedded-table-sorted-arrow: #84888C;--color-embbedded-table-head-background: #E1E5E8;--color-embedded-table-tbody-tr-nth-of-type: #ECEFF1;--color-browser-banner-warning-shadow: #676869;--color-form-control-placeholder-disabled: #84888C;--color-app-footer-wormhole-destination-border: #84888C;--color-comments-list-item-date: #84888C;--color-comments-list-item-container-background: #E1E5E8;--color-background-table-portal-header: #84888C;--color-table-row-border-color: #84888C;--color-overlay-progress-step-background: #84888C;--color-overlay-progress-arrow: #84888C;--color-new-overlay-cover-background: #84888C;--color-overlay-message: #FFF;--color-middle-light-gray: #84888C;--color-issue-details-select-border: #84888C;--color-issue-details-bulk-set: #84888C;--color-issue-details-img-selobj-background: #FFF;--color-issue-details-view-select-background: #FFF;--color-issue-emailcc-dropdown-background: #ECEFF1;--color-drofus-settings-list-value-input-disabled: #84888C;--color-drofus-settings-list-value-input-background-disabled: #FFF;--color-file-view-border: #84888C;--color-navigation-map-floating-panel-border: #84888C;--color-reports-container-date: #84888C;--color-reports-container-task-report-border: #84888C;--color-floating-panel-border: #84888C;--color-render-info: #84888C;--color-qto-table-resize-handler-border: #84888C;--color-qto-table-resize-handler-background: #ECEFF1;--app-footer-wormhole-destination-border-color: #84888C;--color-slideshow-slide-name-edit-border: #84888C;--color-slideshow-slide-name-edit-border-hover: #84888C;--color-slideshow-slide-name-edit-background-focus: #DEF0FF;--color-slideshow-hr-background: #E1E5E8;--color-slide-list-item-image-background: #E1E5E8;--color-control-color-disabled: #84888C;--color-control-normal-background: #FFF;--color-projectinfo-grid-column-background: #84888C;--color-projectinfo-grid-toolbar-background: #E1E5E8;--color-projectinfo-grid-column-resizer-background: #FFF;--color-projectinfo-grid-content-nth-child-background: #FFF;--color-kpi-chart-settings-border: #B8BBBF;--color-left-menu-content-border: #B8BBBF;--color-right-menu-content-border: #B8BBBF;--color-details-object-list-border: #B8BBBF;--color-drofus-settings-list-value-input-border-disabled: #B8BBBF;--color-underline-switcher-item-highlight-hover: #B8BBBF;--color-underline-switcher-highlight-background: #E1E5E8;--color-underline-switcher-item-highlight-hover-disabled: #ECEFF1;--color-sidebar-divider-border: #B8BBBF;--color-sidebar-item-name-disabled: #B8BBBF;--color-object-scenes-tiles-divider-background: #E1E5E8;--color-object-scenes-tiles-divider-border: #E1E5E8;--color-portal-modal-select: #46494D;--color-portal-modal-select-disabled: #E1E5E8;--color-portal-modal-header-border: #E1E5E8;--color-portal-modal-content-header: #FFF;--color-portal-modal-content-header-background: #46494D;--color-portal-modal-content-header-h1: #FFF;--color-portal-modal-content-row-disabled: #ECEFF1;--color-portal-modal-power-select-trigger: #46494D;--color-portal-modal-power-select-trigger-disabled: #B8BBBF;--color-portal-modal-power-select-trigger-border-hovered: #ECEFF1;--color-portal-modal-power-select-trigger-background-hovered: #F9F9F9;--color-portal-modal-power-select-trigger-border-disabled: #F7F7F7;--color-portal-modal-power-select-trigger-background-disabled: #FFF;--color-portal-modal-power-select-status-icon-border: #B8BBBF;--color-portal-modal-power-select-placeholder: #B8BBBF;--color-portal-modal-close-button: #FFF;--color-overlay-set-items-background: #E1E5E8;--color-project-details-bottom-buttons-background: #E1E5E8;--color-four-oh-four-pill-btn--color: #ECEFF1;--color-ui-background-2: #ECEFF1;--color-pd-project-progress-background: #ECEFF1;--color-pd-project-progress-background-two: #FFF;--color-pd-project-anchor-button: #FFF;--color-pd-project-edit-button: #FFF;--color-alternate-row-background: #ECEFF1;--color-control-background-hover: #ECEFF1;--color-table-settings-stripe-background: #ECEFF1;--color-radio-button-group-border: #FFF;--color-radio-button-group-background: #FFF;--color-radio-button-group-input-color-disabled: #84888C;--color-header-global-warning: #FFF;--color-header-global-warning-anchor: #FFF;--color-header-global-warning-background: #FFF;--color-project-menu-background: #F7F7F7;--color-progress-circle-background: #FFF;--color-progress-circle-loader-background: #FFF;--color-project-table-content-background: #FFF;--color-project-table-content-select: #000;--color-project-files-table-content-background: #FFF;--color-project-filter-content-border: #D3D7DB;--color-project-filter-content-background: #FFF;--color-workflow-background-seven: #FEA400;--color-table-portal-background-one: #00B528;--color-propertymanager-jstree-content-search: #C40000;--color-propertymanager-loading-background: rgba(0, 0, 0, .5);--color-propertymanager-loading-message: #FFF;--color-propertymanager-content-background: #FFF;--color-propertymanager-object-tree-content-background: #FFF;--color-propertymanager-object-tree-scrollable-border: #D3D7DB;--color-propertymanager-sets-loading-background: rgba(0, 0, 0, .5);--color-propertymanager-sets-loading-message: #FFF;--color-propertymanager-sets-content-background: #FFF;--color-propertymanager-sets-content-scrollable-border: #D3D7DB;--color-sg-checkbox: #46494D;--color-propertymanager-sets-sg-checkbox: #46494D;--color-propertymanager-structure-select-border: #D3D7DB;--color-workflow-background-eight: #0374BB;--color-fast-scroll-box-shadow: rgba(0, 0, 0, .5);--color-header-global-warning-top-menu-webkit-box-shadow: rgba(0, 0, 0, .25);--color-header-global-warning-top-menu-moz-box-shadow: rgba(0, 0, 0, .25);--color-header-global-warning-top-menu-box-shadow: rgba(0, 0, 0, .25);--color-table-loader-fountain-background: #FFF;--color-object-props-table-value-textfield-background: #FFF;--color-object-props-subheader-background: #FFF;--color-progress-bar: #FFF;--color-status-bar: #FFF;--color-browser-warning-info-background: #FFF;--color-modal-dialog-content-background: #FFF;--color-modal-dialog-content-button-border: #D1000D;--color-card-box-shadow-title: #FFF;--color-card-box-shadow-subheading: #FFF;--color-card-box-shadow-row: #FFF;--color-card-box-shadow-message: #FFF;--color-card-box-shadow-advanced: #FFF;--color-card-box-shadow-anchor: #FFF;--color-sg-checkbox-span: #FFF;--color-new-overlay-finished-background: #00A01D;--color-table-transparent: #46494D;--color-spinner-wheel-border: #EF001C;--color-modelviewer-open-file-footer: #46494D;--color-file-view-canvas-background: #84888C;--color-table-scrollable-background: #ECEFF1;--color-table-header-row-cell-background: #FFF;--color-project-team-selector-thumbnail-fade-background: #46494D;--color-alert-danger-simple: #F00;--color-renderer-viewport-background: #B8BBBF;--color-breadcrumbs-dropdown-hover-background: #ECEFF1;--color-notify-modal-server-warning-background: #46494D;--color-notify-modal-checkbox-span-border: #46494D;--color-notify-modal-checkbox-span: #FFF;--color-notify-modal-input-checked-border: #025499;--color-dashboard-tile-bottom-bar-background-hover: #ECEFF1;--color-dashboard-tile-top-bar-background: #84888C;--color-filter-panel-actions-border: #E1E5E8;--color-folder-access-rights-list-member-groups: #676869;--color-folder-access-rights-member-rights-background: #E1E5E8;--color-generic-view-tiles-content-background: #FFF;--color-generic-view-tiles-search-background: #E1E5E8;--color-generic-view-tiles-search-border: #E1E5E8;--color-dropdown-content-border: #84888C;--color-dropdown-item-border: #D3D7DB;--color-dropdown-item: #FFF;--color-dropdown-item-icon-flag-border: #46494D;--color-dropdown-item-title-disabled: #84888C;--color-objects-container-properties-content-background: #46494D;--color-password-show-icon-active: #000;--color-portal-modal-btn-default-border: #84888C;--color-portal-modal-select-background: #FFF;--color-project-members-table-content-background: #FFF;--color-project-table-toolbar: #84888C;--color-project-table-body-background-hovered: #B4DAFF;--color-project-table-body-selected-background-hovered: #B4DAFF;--color-project-view-map-content-background: #FFF;--color-project-view-map-content-toolbar: #000;--color-objects-container-center-panel-loading-overlay-background: rgba(0, 0, 0, .5);--color-content-sidebar-background: #FFF;--color-custom-filter-attribute-name: #84888C;--color-custom-filter-selected-attributes-empty: #B8BBBF;--custom-filter-attributes-picker-border-color: #E1E5E8;--color-tab-icon-gray-background: #D3D7DB;--color-tab-icon-white-background: #FFF;--color-tabs-panel-content-background: #F7F7F7;--color-tabs-panel-content-span: #46494D;--color-tabs-panel-control-background: #F7F7F7;--color-tabs-panel-collapsed-background: #F7F7F7;--color-tabs-panel-collapsed-navigation-background: #46494D;--color-tabs-panel-navigation-border: #46494D;--color-tabs-panel-navigation-background: #F7F7F7;--color-tabs-panel-grouping-icon-backround: #F7F7F7;--color-tab-content-background: #FFF;--color-tab-content-title-border: #46494D;--color-tab-content-button: #46494D;--color-tab-content-button-background: #FFF;--color-tab-content-cell-infoicon-background: #FFF;--color-tasks-overview-dot-open-background: #D1000D;--color-tasks-overview-dot-open65-background: rgba(209, 0, 13, .65);--color-tasks-overview-dot-open5-background: rgba(209, 0, 13, .5);--color-tasks-overview-dot-open-custom-background: #FFC7CD;--color-tasks-overview-dot-background-disabled: #D3D7DB;--color-tasks-overview-dot-solved-background: #00A01D;--color-tasks-overview-dot-solved65-background: rgba(0, 160, 29, .65);--color-tasks-overview-dot-solved55-background: rgba(0, 160, 29, .55);--color-tasks-overview-dot-solved-custom-background: #A7EFA4;--color-tasks-overview-dot-closed-background: #025499;--color-tasks-overview-dot-background-undefined: #84888C;--color-upload-image: #FFF;--color-upload-image-background: #0385CF;--color-upload-image-text-shadow: #0374BB;--color-upload-image-border: #025499;--color-dashboard-application-buttons-days-left: #06C;--color-dashboard-info-box-background: #ECEFF1;--color-dashboard-detail-box-subtitle: #06C;--color-dashboard-documentation-title-underline: #ECEFF1;--color-dashboard-message-item-background: #FFF;--color-dashboard-message-title: #46494D;--color-dashboard-message-content: #FFF;--color-dashboard-message-messagelink: #FFF;--color-dashboard-message-messagelink-hover-focus: #FFF;--color-link-inline: #06C;--color-darkmode-leaflet-container-background: #ECEFF1;--color-dashboard-application-buttons-link-button: #06C;--color-dashboard-application-buttons-link-buttontext-decoration: #06C;--color-dashboard-application-container-multiarticle-body: #46494D;--color-dashboard-application-container-article-breadcrumbs: #46494D;--color-dashboard-application-container-nobullets: #ECEFF1;--color-dashboard-application-container-promo-msg: #06C;--color-dashboard-cover-bottom-background-linear-gradient-one: rgba(236, 239, 241, 0);--color-dashboard-cover-bottom-background-linear-gradient-two: #ECEFF1;--color-dashboard-textpanel-subtitle: #84888C;--color-files-modal-with-separator-border: #84888C;--color-footer-border: #84888C;--color-footer-body-background: #FFF;--color-footer-list-item: #000;--color-portal-project-tab-toolbar-btn-default: #84888C;--color-portal-project-tab-toolbar-btn-group: #84888C;--color-table-portal-toolbar: #84888C;--color-table-portal-table-footer-btn-group-button: #84888C;--color-table-portal-table-footer-btn-group: #D3D7DB;--color-project-settings-title-main: #46494D;--color-project-settings-property-message: #46494D;--color-project-settings-property-input-border: #D3D7DB;--color-project-settings-property-input-background: #FFF;--color-project-settings-property-datepicker-container-border-hover: #84888C;--color-shareddocuments-modal-file-list-row-odd-color: #46494D;--color-shareddocuments-modal-file-list-row-even-color: #FFF;--color-tabs-pd-project-btn-border: #84888C;--tabs-pd-project-btn-group-color: #84888C;--color-tabs-pd-project-btn-group-border: #84888C;--color-pd-project-tabs-li-background: #84888C;--color-pd-project-tabs-li-a-background: #ECEFF1;--color-upload-dlg-vertical-line-separator-background: #84888C;--color-touch-upload-dlg-has-error-border: #D1000D;--color-progress-circle-span: #004AA4;--color-value-bar-border: #004AA4;--color-progress-circle-over50-first50-bar-background: #004AA4;--color-upload-dlg-loader-background: #004AA4;--color-upload-dlg-loader-second-background: #FFF;--color-portal-properties-table-combo-color-disabled: #B8BBBF;--color-portal-properties-table-combo-border-color-disabled: #B8BBBF;--color-portal-properties-content-background: #FFF;--color-portal-content-buttons-background: #ECEFF1;--color-portal-properties-string-select-color-disabled: #ECEFF1;--color-upload-dlg-upload-model-name-border: #84888C;--color-upload-color-dlg-upload-model-name-background: #FFF;--color-upload-dlg-transparent-background: #000;--color-user-expiration-background: #FFF;--color-user-expiration-header-background: #06C;--color-user-expiration-body: #000;--color-four-oh-four-message: #FFF;--color-four-oh-four-background: #0297E3;--color-card-border: #D3D7DB;--color-login-description-text: #000;--color-card: #46494D;--color-form-group: #84888C;--color-form-group-two: #46494D;--color-ember-power: #46494D;--color-ember-power-two: #D3D7DB;--color-form-control-background: #FFF;--color-form-control-border-two: #D3D7DB;--color-project-view-table-content-background: #FFF;--color-project-view-table-tbody-recycle-bin: #84888C;--color-email-text: #84888C;--color-primary-button-text-two: #FFF;--color-background-button-primary-two-disabled: #B8BBBF;--color-download-attachment-a-border-bottom: #46494D;--color-pm-tabs: #ECEFF1;--color-pm-content-background: #FFF;--color-pm-content-background-two: #84888C;--color-pm-content-border: #D3D7DB;--color-pm-content-border-two: #000;--color-project-image: #46494D;--color-project-image-border: #46494D;--color-select-background: #46494D;--color-select-border: #B8BBBF;--color-select: #FFF;--color-select-two: #84888C;--color-termofuse: #000;--color-termofuse-background: #FFF;--color-termofuse-border: #B8BBBF;--color-user-background: #FFF;--color-workflow-border: #B8BBBF;--color-workflow-border-two: #F7F7F7;--color-workflow-border-three: #46494D;--color-workflow: #46494D;--color-workflow-two: #FFF;--color-workflow-background: #FFF;--color-workflow-background-two: #F7F7F7;--color-workflow-background-three: #F0F8FF;--color-workflow-background-four: #B8BBBF;--color-workflow-disabled: #B8BBBF;--color-workflow-background-five: #00B528;--color-workflow-background-six: #FE0019;--color-table-pagination: #06C;--color-table-tables-container: #84888C;--color-table-tables-container-two: #46494D;--color-table-tables-container-three: #ECEFF1;--color-pagination-wrapper: #46494D;--color-table-embedded: #000;--color-table-embedded-background: #FFF;--color-table-loader-background: #000;--color-search-bar-border: #84888C;--color-search-bar-background-hovered: #F7F7F7;--color-search-bar-color-hovered: #46494D;--color-search-bar-button-background: #FFF;--color-search-bar-button-glyphicon: #84888C;--color-search-bar-button-glyphicon-focused: #46494D;--color-uni-search-bar-border: #84888C;--color-uni-search-bar-background: #FFF;--color-uni-search-bar-background-hovered: #F7F7F7;--color-uni-search-bar-color-hovered: #46494D;--color-uni-search-bar-input-background-hovered: #F7F7F7;--color-uni-search-bar-glyphicon-hovered: #84888C;--color-uni-search-bar-clear-icon-background-hovered: #F7F7F7;--color-uni-search-bar-background-focused: #FFF;--color-uni-search-bar-color-focused: #46494D;--color-uni-search-bar-border-focused: #06C;--color-uni-search-bar-input-background-focused: #FFF;--color-uni-search-bar-glyphicon-focused: #46494D;--color-uni-search-bar-typing: #46494D;--color-select-grouping-button-sort-menu-opened-background: #ECEFF1;--color-select-grouping-list-background: #F7F7F7;--color-select-grouping-box-shadow: rgba(0, 0, 0, .5);--color-sizes-overview-separator-background: #B8BBBF;--color-sizes-overview-dot: #025499;--color-background-status-message: #000;--color-status-message-close-button: #FFF;--color-custom-filter-selected-attributes-sortable-background: rgba(132, 136, 140, .1);--color-clashdetection-empty-line-image-background: rgba(0, 0, 0, .5);--colors-neutral-grey-700-transparency1: rgba(70, 73, 77, .2);--color-project-team-selector-thumbnail-fade-background2: rgba(70, 73, 77, .2);--color-project-team-selector-thumbnail-fade-background8: rgba(70, 73, 77, .8);--color-left-menu-content-sidebar-topmenu-background: rgba(236, 239, 241, .8);--color-spinner-container-background: rgba(0, 0, 0, .3);--color-debug-background: rgba(0, 0, 0, 1);--color-jstree-selection-undetermined: rgba(0, 102, 204, .549);--color-portal-navbar-box-shadow: rgba(0, 0, 0, .26);--color-portal-navbar: #000;--color-tile-item-box-background: #FFF;--color-tile-item-box-share-background: #FFF;--color-tile-item-box-lock-background: #FFF;--color-tile-item-box-lock-name-background: #FFF;--color-tile-item-box-recycle-bin: #84888C;--color-tile-item-box-body-background: #B4DAFF;--color-toaster-box-shadow: rgba(0, 0, 0, .5);--color-background-toaster-message: #FFF;--color-background-toaster-message-info: #0385CF;--color-background-toaster-message-warning: #FFE9EC;--color-border-toaster-message-warning: #FFC7CD;--color-tree-control-background: #ECEFF1;--color-tree-control-border: #000;--color-tree-control-sortable-placeholder-background: #ECEFF1;--color-tree-control-container: #000;--color-tree-control-node-container-border: #ECEFF1;--color-tree-control-node-container-even-background: #F7F7F7;--color-tree-control-node-container-odd-background: #FFF;--color-tree-control-node-container-color-hovered: #004AA4;--color-tree-control-node-drag-over-background: #B2E4FC;--color-tree-control-node-drag-over-background-forbidden: #F89090;--color-tree-control-node-selected: #000;--color-tree-control-objecttype-node-background: #27B3F5;--color-tree-control-drop-after-background: #B2E4FC;--color-tree-control-drop-after-forbidden-background: #F89090;--color-ember-power-select-border: #D3D7DB;--color-ember-power-select-placeholder: #46494D;--color-ember-power-select-highlighted-background: #F7F7F7;--color-ember-power-select-highlighted: #46494D;--color-ember-power-select-selected-background: #FFF;--color-ember-power-select-trigger-icon: #46494D;--color-ember-power-background: #F7F7F7;--color-ember-power-two-background: #FFF;--color-ember-power-three-background: #ECEFF1;--color-ember-power-four-background: #F0F8FF;--color-ember-power-border: #D3D7DB;--color-ember-power-border-two: #84888C;--color-ember-power-border-three: #46494D;--color-forms: #46494D;--color-forms-box-shadow: #FFF;--color-forms-box-shadow-two: #F7F7F7;--color-forms-box-shadow-three: #B4DAFF;--color-form-border: #84888C;--color-app-background: #FFF;--color-app-border: #FFF;--color-app-box-shadow: #84888C;--color-app: #84888C;--color-app-background-two: #F7F7F7;--color-app-two: #46494D;--color-app-background-three: #ECEFF1;--color-app-three: #000;--color-app-four: #06C;--color-m-forms-background: #F7F7F7;--color-m-forms-border: #D3D7DB;--color-center-menu-circle-border-background: rgba(103, 104, 105, .5);--color-issues-data-grid-background: rgba(255, 255, 255, .5);--color-panel-background-opaque: rgba(255, 255, 255, 1);--color-main-background-transparent: rgba(255, 255, 255, 0);--color-main-background-transparent-90: rgba(255, 255, 255, .9);--color-panel-background: rgba(255, 255, 255, .8);--color-background-table-portal-toolbar: rgba(255, 255, 255, .8);--color-project-view-props-background: rgba(255, 255, 255, .7);--color-variantype-popupwin-content-background: rgba(255, 255, 255, .5);--color-popup-dialog-shadow: rgba(255, 255, 255, .5);--color-loader-background: rgba(255, 255, 255, 0);--color-browser-banner-background: rgba(255, 255, 255, .6);--color-center-menu-sub-menu-dead-zone-background: rgba(255, 255, 255, 0);--color-modal-overlay-background: rgba(255, 255, 255, .6);--color-four-oh-four-pill-background-btn: rgba(236, 239, 241, .9);--color-background-overlay: rgba(70, 73, 77, .301);--color-params-block-text-item-border-bottom: rgba(132, 136, 140, .5);--color-background-overlay-clear: rgba(70, 73, 77, .251);--color-center-menu-circle-background: rgba(70, 73, 77, .9);--color-section-cut-settings-background-disabled: rgba(255, 255, 255, .5);--color-section-cut-settings-dialog-background: #FFF;--color-floating-panel-block-item: rgba(0, 0, 0, 1);--color-modable-slider-transparent-background: rgba(132, 136, 140, .5);--color-scene-selector-background: rgba(236, 239, 241, .8);--color-spinner-border: rgba(0, 102, 204, 1);--color-params-block-text-item-active: rgba(0, 102, 204, .5);--color-clashdetection-filter-selection-head-background: rgba(255, 255, 255, .5);--color-issue-details-input-name-background-disabled: rgba(0, 0, 0, 0);--color-window-resize-handler-arrow-background: rgba(255, 255, 255, .58);--color-structure-details-input-name-background-disabled: rgba(0, 0, 0, 0);--color-projectinfo-grid-header-background: rgba(236, 239, 241, .8);--color-projectinfo-grid-content-border: rgba(0, 0, 0, .1);--color-projectinfo-grid-content-resizer-fill-background: rgba(0, 0, 0, .1);--color-projectinfo-grid-content-groupheader-background: rgba(0, 0, 0, .05);--color-projectinfo-grid-content-group-title-background: rgba(0, 0, 0, .06);--color-projectinfo-grid-content-data-background: rgba(0, 0, 0, .06);--color-drop-shadow-default-background: rgba(0, 0, 0, .15);--color-neutral-white-transparency0: rgba(255, 255, 255, 0);--color-neutral-white-transparency50: rgba(255, 255, 255, .5);--color-neutral-white-transparency70: rgba(255, 255, 255, .7);--color-neutral-white-transparency80: rgba(255, 255, 255, .8);--color-neutral-white-transparency90: rgba(255, 255, 255, .9);--color-neutral-black-transparency05: rgba(0, 0, 0, .05);--color-neutral-black-transparency15: rgba(0, 0, 0, .15);--color-neutral-black-transparency20: rgba(0, 0, 0, .2);--color-neutral-black-transparency25: rgba(0, 0, 0, .25);--color-neutral-black-transparency30: rgba(0, 0, 0, .3);--color-neutral-black-transparency40: rgba(0, 0, 0, .4);--color-neutral-black-transparency50: rgba(0, 0, 0, .5);--color-neutral-black-transparency90: rgba(0, 0, 0, .9);--colors-neutral-grey-50-transparency50: rgba(247, 247, 247, .5);--colors-neutral-grey-50-transparency60: rgba(247, 247, 247, .6);--colors-neutral-grey-50-transparency80: rgba(247, 247, 247, .8);--color-objects-container-upload-image-cover-gradient5: rgba(247, 247, 247, .5);--color-sidemenu-navigation-projectinfo-thumbnail-background: rgba(0, 0, 0, .6);--color-objects-container-upload-image-cover-gradient8: rgba(247, 247, 247, .8);--color-neutral-black-transparency80: rgba(0, 0, 0, .8);--color-portal-modal-destination-border: rgba(0, 0, 0, .2);--color-dashboard-message-content-container: rgba(0, 0, 0, .5);--color-dashboard-info-box-hover-box-shadow: rgba(0, 0, 0, .3);--color-user-expiration-box-shadow: rgba(0, 0, 0, .4);--color-form-control-has-error: rgba(0, 0, 0, .075);--color-project-image-background: rgba(0, 0, 0, .05);--color-project-image-background-two: rgba(255, 255, 255, .9);--color-table-portal-box-shadow: rgba(0, 0, 0, .075);--color-typography-background-gradient-one-color: rgba(0, 0, 0, 0);--color-typography-background-gradient-two-color: rgba(0, 0, 0, .9);--color-modal-dialog-background-color-overlay: rgba(0, 0, 0, .3);--color-modal-dialog-upload-button-label: #D1000D;--color-main-box-shadow08: rgba(0, 0, 0, .08);--color-main-box-shadow30: rgba(0, 0, 0, .3);--color-main-box-shadow50: rgba(0, 0, 0, .5);--color-app-background-four: rgba(0, 0, 0, .2);--color-sidenav-drawer-content-header-background-color-enabled: rgba(247, 247, 247, .8);--color-project-info-upload-image-cover-gradient8: rgba(70, 73, 77, .8);--color-project-info-upload-image-cover-gradient5: rgba(70, 73, 77, .5);--color-neutral-grey-500-transparency06: rgba(132, 136, 140, .06)}.tab-element[_ngcontent-%COMP%]{width:4.2rem;cursor:pointer;border-radius:.1rem;display:flex;justify-content:center;align-items:center;flex-direction:column;padding-top:.6rem}.tab-element[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1.8rem;height:1.8rem}.tab-element.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.underline-switcher[_ngcontent-%COMP%]{width:100%;height:.2rem;border-radius:.1rem;transition:all .15s ease-in;border-bottom:.2rem solid #E1E5E8}.underline-switcher.highlight[_ngcontent-%COMP%]{border-bottom-width:.2rem;border-bottom-style:solid;border-bottom-color:#06c!important}.underline-switcher.hovering[_ngcontent-%COMP%]{border-bottom-color:#b8bbbf}"]})}}return d})();var gUe=["*"],yUe=(d,o)=>o.id,MUe=(d,o)=>({active:d,default:o}),IUe=(d,o,r)=>({id:d,title:o,img:r});function wUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-tab",2),xi("activeTabChange",function(f){Pi(r);let M=on();return Bi(M.activeTabChange.emit(f))}),mn()}if(d&2){let r=o.$implicit,p=on();Nn("activeTab",p.activeTab)("imageBaseSrc",p.baseHref)("bimplusTabComponentModel",ry(7,IUe,r.id,r.title,dy(4,MUe,r.img.active,r.img.default))),Gl("data-test",r.id)}}var hte=(()=>{class d{constructor(r){this.bimplusTabsSwitcherService=r,this.activeTabChange=new pr,this.baseHref=Ja(fue,{optional:!0}),this.bimplusTabsSwitcherService?this.tabSwitcherElements=HX(this.bimplusTabsSwitcherService.tabSwitcherElements$):this.tabSwitcherElements=so(ute).asReadonly()}static{this.\u0275fac=function(p){return new(p||d)(vi(pF,12))}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-tabs-switcher"]],inputs:{activeTab:"activeTab"},outputs:{activeTabChange:"activeTabChange"},standalone:!0,features:[Ml([pF]),as],ngContentSelectors:gUe,decls:4,vars:0,consts:[[1,"tabswitcher-container"],[3,"activeTab","imageBaseSrc","bimplusTabComponentModel"],[3,"activeTabChange","activeTab","imageBaseSrc","bimplusTabComponentModel"]],template:function(p,f){p&1&&(im(),cn(0,"div",0),Sp(1,wUe,1,11,"lib-bimplus-tab",1,yUe),sp(3),mn()),p&2&&(Zt(),zp(f.tabSwitcherElements()))},dependencies:[pte],styles:[`.tabswitcher-container{display:flex;align-items:center;justify-content:flex-start;width:100%;height:20px}
12849
12849
  `],encapsulation:3,changeDetection:0})}}return d})();var AUe=1e3,OUe={KB:"kB",GB:"gib",MB:"mb"},Lwe=(()=>{class d extends bJ{transform(r,p=OUe.KB,f="1.2-2",M=AUe){if(!this.isNumber(r))throw new Error("[BitConverterPipe]: value is not a number");let T=this.getSizeFromBites(r,p,M),U=super.transform(T,f);return U??=r.toString(),`(${U} ${p})`}getSizeFromBites(r,p,f){switch(p){case"kB":return r/f;case"mb":return r/(f*f);case"gib":return r/(f*f*f);default:return r}}isNumber(r){return typeof r=="number"&&!isNaN(r)}static{this.\u0275fac=(()=>{let r;return function(f){return(r||(r=s4(d)))(f||d)}})()}static{this.\u0275pipe=r4({name:"bitConverter",type:d,pure:!0,standalone:!0})}}return d})();var f7=new Fo("bimplus-attachments-config"),jQ=class{constructor(o){this.id=o.id??"",this.fileName=o.fileName??"",this.size=o.size??0}},GQ=class{static{this.attachment=new jQ({})}static create(o){return this.attachment=new jQ(o),this}static setId(o){return this.attachment.id=o,this}static setFileName(o){return this.attachment.fileName=o,this}static setSize(o){return this.attachment.size=o,this}static setFile(o){return this.attachment.file=o,this}static build(){let o=structuredClone(this.attachment);return this.attachment=new jQ({}),o}};var _Ue=["attachmentSizeRef"],TUe=["attachmentNameRef"];function EUe(d,o){if(d&1&&(cn(0,"span",4),Wr(1),ca(2,"bitConverter"),mn()),d&2){let r=on();Zt(),v0(Z1e(2,1,r.attachment.size,"kB","1.2-2"))}}function CUe(d,o){if(d&1&&(cn(0,"span"),Wr(1),mn(),cn(2,"div",4,1),Wr(4),ca(5,"bitConverter"),mn()),d&2){let r=on();Zt(),Sa("",r.type," "),Zt(3),Sa(" ",Z1e(5,2,r.attachment.size,"kB","1.2-2")," ")}}function DUe(d,o){if(d&1){let r=qs();cn(0,"span",6),ca(1,"translate"),xi("click",function(){Pi(r);let f=on();return Bi(f.deleteAttachment.emit(f.attachment))})("keypress",function(f){return Pi(r),Bi(f.preventDefault())}),cn(2,"span",7),Wr(3,"\u2715\uFE0E"),mn()()}d&2&&Bo("title",ha(1,1,"_Delete attachment"))}var xwe=30,SUe=28,Rwe=(()=>{class d{constructor(){this.deleteAttachment=new pr,this.getAttachment=new pr,this.parentWidthSignal=so(void 0),this.attachmentSizeWidth=so(0),this.nameIsFullyVisible=so(!1),this.config=Ja(f7,{optional:!0}),this.hideSize=!!this.config?.hideAttachmentSize,this.nameInfoLineWidth=RM(()=>{let r=this.parentWidthSignal(),p=this.attachmentSizeWidth(),f=this.nameIsFullyVisible();return r?f?r-xwe:r-p-(xwe+SUe):0})}set parentWidth(r){r&&this.parentWidthSignal.set(r)}get type(){return`.${this.attachment.fileName.split(".").at(-1)}`}ngAfterViewInit(){this.attachmentSizeRef&&(this.attachmentSizeWidth.set(+this.attachmentSizeRef.nativeElement.clientWidth),this.createIntersectionObserver(),this.intersectionObserver.observe(this.attachmentNameRef.nativeElement))}ngOnDestroy(){this.intersectionObserver?.unobserve(this.attachmentNameRef.nativeElement)}createIntersectionObserver(){let r={root:null,rootMargin:"0px",threshold:1},p=f=>f.forEach(({intersectionRect:M,boundingClientRect:T})=>{let U=M.width===T.width;this.nameIsFullyVisible.set(U)});this.intersectionObserver=new IntersectionObserver(p,r)}static{this.\u0275fac=function(p){return new(p||d)}}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-attachment-item"]],viewQuery:function(p,f){if(p&1&&(y1(_Ue,5),y1(TUe,5)),p&2){let M;N0(M=P0())&&(f.attachmentSizeRef=M.first),N0(M=P0())&&(f.attachmentNameRef=M.first)}},inputs:{closeIconTemplate:"closeIconTemplate",attachment:"attachment",parentWidth:"parentWidth"},outputs:{deleteAttachment:"deleteAttachment",getAttachment:"getAttachment"},standalone:!0,features:[as],decls:8,vars:7,consts:[["attachmentNameRef",""],["attachmentSizeRef",""],[1,"bim-attachment-item"],["data-test","bim-attachment",1,"bim-attachment-name",3,"click","keypress","title"],[1,"bim-attachment-size"],["data-test","delete-attachment-btn",1,"bim-attachment-delete-button",3,"title"],["data-test","delete-attachment-btn",1,"bim-attachment-delete-button",3,"click","keypress","title"],[1,"icon"]],template:function(p,f){if(p&1){let M=qs();cn(0,"div",2)(1,"div",3),xi("click",function(){return Pi(M),Bi(f.getAttachment.emit(f.attachment))})("keypress",function(U){return Pi(M),Bi(U.preventDefault())}),cn(2,"span",null,0),Wr(4),mn(),gr(5,EUe,3,5,"span",4),mn(),gr(6,CUe,6,6)(7,DUe,4,3,"span",5),mn()}p&2&&(Zt(),B2("width",f.nameInfoLineWidth(),"px"),Bo("title",f.attachment.fileName),Zt(3),v0(f.attachment.fileName),Zt(),fs(f.nameIsFullyVisible()&&!f.hideSize?5:-1),Zt(),fs(!f.nameIsFullyVisible()&&!f.hideSize?6:-1),Zt(),fs(f.config!=null&&f.config.hideDeleteAttachmentButton?-1:7))},dependencies:[Lwe,Ko,xc],styles:['.bim-attachment-item[_ngcontent-%COMP%]{border-bottom:var(--bim-attachment-item-border-bottom, .1rem solid var(--bim-attachment-item-border-bottom-color, #B8BBBF));line-height:2.5rem;display:flex;align-items:center;justify-content:space-between;color:#46494d;padding-left:var(--bim-attachment-item-padding-left, 2.6rem);background-image:var(--bim-attachment-item-background-image, url("./assets/icn_grid_attachments.png"));background-size:var(--bim-attachment-item-background-size, auto);background-repeat:no-repeat;background-position:var(--bim-attachment-item-background-position, .8rem center)}.bim-attachment-item[_ngcontent-%COMP%] .bim-attachment-name[_ngcontent-%COMP%]{padding-left:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bim-attachment-item[_ngcontent-%COMP%] .bim-attachment-size[_ngcontent-%COMP%]{padding-left:.5rem;white-space:nowrap;margin-right:.4rem}.bim-attachment-item[_ngcontent-%COMP%] .bim-attachment-delete-button[_ngcontent-%COMP%]{width:2.5rem;cursor:pointer;margin-left:auto}.bim-attachment-item[_ngcontent-%COMP%] .bim-attachment-delete-button[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-weight:var(--bim-attachment-delete-button-icon-font-weight, normal);color:var(--bim-attachment-delete-button-icon-color, #B8BBBF)}.bim-attachment-item[_ngcontent-%COMP%] .bim-attachment-delete-button[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:hover{color:#46494d}']})}}return d})();var zUe=["attachmentListRef"],LUe=["fileInput"],Nwe=(d,o)=>o.id;function xUe(d,o){if(d&1){let r=qs();cn(0,"input",7,0),xi("change",function(f){Pi(r);let M=Ef(1),T=on();return Bi(T.onFileChanged(f,M))}),mn()}}function RUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-buttons-row",8),xi("fileChanged",function(f){Pi(r);let M=on();return Bi(M.onFileChanged(f))}),mn()}if(d&2){let r,p=on();Nn("items",(r=p.config==null?null:p.config.buttons)!==null&&r!==void 0?r:p.buttons)("isMultiple",!0)}}function NUe(d,o){d&1&&(cn(0,"div",9),Wr(1),ca(2,"translate"),mn()),d&2&&(Zt(),v0(ha(2,1,"_No attachments found")))}function PUe(d,o){if(d&1&&gr(0,NUe,3,3,"div",9),d&2){let r=on(2);fs(r.config!=null&&r.config.showNoAttachmentsFound?0:-1)}}function BUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-attachment-item",11),xi("deleteAttachment",function(f){Pi(r);let M=on(3);return Bi(M.deleteAttachment.emit(f))})("getAttachment",function(f){Pi(r);let M=on(3);return Bi(M.getAttachment.emit(f))}),mn()}if(d&2){let r=o.$implicit,p=on(3);Nn("closeIconTemplate",p.closeIconTemplate)("parentWidth",p.attachmentListWidth())("attachment",r),Gl("data-test",r.id)}}function HUe(d,o){if(d&1&&Sp(0,BUe,1,4,"lib-bimplus-attachment-item",10,Nwe),d&2){let r=on(2);zp(r.attachments)}}function kUe(d,o){if(d&1&&(cn(0,"section",5,1),gr(2,PUe,1,1)(3,HUe,2,0),mn()),d&2){let r=on();Zt(2),fs(r.attachments.length?3:2)}}function FUe(d,o){d&1&&(cn(0,"div",9),Wr(1),ca(2,"translate"),mn()),d&2&&(Zt(),v0(ha(2,1,"_No attachments found")))}function qUe(d,o){if(d&1&&gr(0,FUe,3,3,"div",9),d&2){let r=on(2);fs(r.config!=null&&r.config.showNoAttachmentsFound?0:-1)}}function WUe(d,o){if(d&1){let r=qs();cn(0,"lib-bimplus-attachment-item",11),xi("deleteAttachment",function(f){Pi(r);let M=on(3);return Bi(M.deleteAttachment.emit(f))})("getAttachment",function(f){Pi(r);let M=on(3);return Bi(M.getAttachment.emit(f))}),mn()}if(d&2){let r=o.$implicit,p=on(3);Nn("closeIconTemplate",p.closeIconTemplate)("parentWidth",p.attachmentListWidth())("attachment",r),Gl("data-test",r.id)}}function UUe(d,o){if(d&1&&Sp(0,WUe,1,4,"lib-bimplus-attachment-item",10,Nwe),d&2){let r=on(2);zp(r.attachments)}}function jUe(d,o){if(d&1&&(cn(0,"div",6)(1,"lib-bimplus-scrollable-container")(2,"section",5,1),gr(4,qUe,1,1)(5,UUe,2,0),mn()()()),d&2){let r=on();Zt(4),fs(r.attachments.length?5:4)}}var fte=(()=>{class d extends Rc{constructor(){super(...arguments),this.api=null,this.attachments=[],this.listOnly=!1,this.deleteAttachment=new pr,this.addAttachment=new pr,this.getAttachment=new pr,this.config=Ja(f7,{optional:!0}),this.buttons=[{id:"add-attachment",title:this.translateService.instant("_Add attachment"),tooltip:this.translateService.instant("_Add attachment"),disabled:!1,buttonStyle:"primary",type:"file"}],this.attachmentListWidth=so(void 0)}open(){this.fileInput.nativeElement.click()}ngAfterViewInit(){this.createResizeObserver(),this.resizeObserver.observe(this.attachmentListRef.nativeElement)}ngOnDestroy(){this.resizeObserver.unobserve(this.attachmentListRef.nativeElement)}onFileChanged(r,p){let f=[];if(r instanceof FileList)f=Array.from(r);else if(r instanceof Event){let M=r.target;M?.files&&(f=Array.from(M.files))}for(let M of f)M instanceof File&&this.addAttachment.emit(M);p&&(p.value="")}createResizeObserver(){this.resizeObserver=new ResizeObserver(r=>{let{width:p}=r[0].contentRect;this.attachmentListWidth.set(p)})}static{this.\u0275fac=(()=>{let r;return function(f){return(r||(r=s4(d)))(f||d)}})()}static{this.\u0275cmp=ss({type:d,selectors:[["lib-bimplus-attachments"]],viewQuery:function(p,f){if(p&1&&(y1(zUe,5),y1(LUe,5)),p&2){let M;N0(M=P0())&&(f.attachmentListRef=M.first),N0(M=P0())&&(f.fileInput=M.first)}},inputs:{api:"api",attachments:"attachments",closeIconTemplate:"closeIconTemplate",listOnly:[2,"listOnly","listOnly",Vr]},outputs:{deleteAttachment:"deleteAttachment",addAttachment:"addAttachment",getAttachment:"getAttachment"},standalone:!0,features:[oc,ll,as],decls:5,vars:2,consts:[["fileInput",""],["attachmentListRef",""],[1,"bim-attachments"],["hidden","","type","file","multiple",""],[3,"items","isMultiple"],[1,"bim-attachments-list"],[1,"scrollable-content-container"],["hidden","","type","file","multiple","",3,"change"],[3,"fileChanged","items","isMultiple"],["data-test","no-attachments",1,"bim-attachments-list-empty"],[3,"closeIconTemplate","parentWidth","attachment"],[3,"deleteAttachment","getAttachment","closeIconTemplate","parentWidth","attachment"]],template:function(p,f){p&1&&(cn(0,"div",2),gr(1,xUe,2,0,"input",3)(2,RUe,1,2,"lib-bimplus-buttons-row",4)(3,kUe,4,1,"section",5)(4,jUe,6,1,"div",6),mn()),p&2&&(Zt(),fs(f.listOnly?1:2),Zt(2),fs(f.listOnly?3:4))},dependencies:[Ko,xc,o4,Rwe,l4],styles:[`lib-bimplus-buttons-row{--button-row-margin-top: 0;--button-row-margin-right: 0;--button-row-margin-bottom: 1.4rem;--button-row-margin-left: 0}lib-bimplus-scrollable-container{--scrollable-container-paddin-right: 0}.bim-attachments{display:flex;flex:1;flex-direction:column}.bim-attachments .scrollable-content-container{position:relative;flex:1}.bim-attachments .scrollable-content-container lib-bimplus-scrollable-container{position:absolute;top:0;bottom:0;width:100%}.bim-attachments-list{color:#84888c;cursor:pointer}.bim-attachments-list-empty{padding:2.5rem .5rem;color:var(--details-controls-details-not-found-text-color);text-align:center}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimplus-webcomponents",
3
- "version": "0.0.164",
3
+ "version": "0.0.165",
4
4
  "license": "MIT",
5
5
  "author": "",
6
6
  "description": "bim+ webcomponents library",