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,GAAG,6FACZC,YAAYZ,IACRA,EAAEa,eACNC,QAAQC,IAAI,gBACZjC,KAAKb,UAAU+C,QAAQlC,KAAKd,WAAWiD,WAAWC,SAAS,kBAAmB7B,GAAM8B,aAAa,2B,KAInGL,QAAQC,IAAI,sBACNjC,KAAKb,UAAU+C,QAAQlC,KAAKd,WAAWiD,WAAWC,SAAS,kBAAmB7B,GAAM8B,aAAa,2BAEzG,CAEA,MAAAC,GAAWtC,KAAKf,OAAOqD,QAAU,CAE1B,aAAAC,CAAcC,GAChBA,EAAQC,QACXD,EAAQC,SAAU,EAElBD,EAAQC,SAAU,CAEpB,CAEO,QAAAC,CAASC,GACZC,SAASD,EAAME,OAAOC,QAAQ,YAAYC,QAAQC,QAAUhD,KAAKV,WACnEU,KAAKV,WAAa,EAElBU,KAAKV,WAAasD,SAASD,EAAME,OAAOC,QAAQ,YAAYC,QAAQC,KAEtE,GAxHYjE,E,mUAAkB,EAD9B,EAAAkE,W,kIAa8B,EAAAC,iBAAsC,IAAwC,IAA4B,IAA6B,EAAAC,QAZzJpE,E,sJCLN,IAAMqE,EAAN,MAIN,WAAApE,CAAoBqE,GAAA,KAAAA,OAAAA,EAHb,KAAAC,cAAwB,EACvB,KAAAC,cAAgC,EAIxC,CAEA,QAAAC,GACCxD,KAAKuD,cAAgB,CACpBvD,KAAKqD,OAAOI,UAAU,iBAAkBC,IAAmB1D,KAAKsD,aAAeI,CAAO,IAExF,CAEA,QAAAC,GACC3D,KAAKuD,cAAc/C,SAAQoD,IAC1BA,EAAaC,SAAS,GAExB,GAlBYT,E,mUAAW,EADvB,EAAAH,W,kIAK4B,EAAAa,mBAJhBV,E","sources":["webpack://client-app/./src/app/components/lcaobjects-overview/lcaobjects-overview.scss","webpack://client-app/./src/app/components/load-spinner/load-spinner.scss","webpack://client-app/./src/app/components/lcaobjects-overview/lcaobjects-overview.html","webpack://client-app/./src/app/components/load-spinner/load-spinner.html","webpack://client-app/./src/app/components/lcaobjects-overview/lcaobjects-overview.ts","webpack://client-app/./src/app/components/load-spinner/load-spinner.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `ux-dialog.lcaobjects-modal{max-width:600px}@media(max-width: 1024px){[data-device-type=tablet] ux-dialog.lcaobjects-modal{width:calc(100vw - 60px)}}@media(min-width: 1024px){[data-device-type=tablet] ux-dialog.lcaobjects-modal{width:80vw}}ux-dialog.lcaobjects-modal .custom-spinner{display:inline-block;background:rgba(0,0,0,0);border-top:3px solid #00b3c9;border-left:3px solid rgba(0,0,0,.05);border-right:3px solid rgba(0,0,0,.05);border-bottom:3px solid rgba(0,0,0,.05);border-radius:50%;min-height:calc(15px*2);max-height:calc(15px*2);min-width:calc(15px*2);max-width:calc(15px*2);animation:rotating .75s linear infinite}ux-dialog.lcaobjects-modal .custom-spinner-text{font-weight:600;margin-left:15px}.lcaobjects-definition,.lcaobjects-definition--loading{display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:unset !important;width:100%}@media(min-width: 600px){[data-device-type=desktop] .lcaobjects-definition,[data-device-type=desktop] .lcaobjects-definition--loading{width:600px}}.lcaobjects-definition--loading{justify-content:center;align-items:center;height:400px}.lcaobjects-definition .section:not(.active) .section-header,.lcaobjects-definition--loading .section:not(.active) .section-header{background:#f0f3f4;color:inherit}.lcaobjects-definition .section:not(.active) .section-header #dropdown,.lcaobjects-definition--loading .section:not(.active) .section-header #dropdown{transform:rotateZ(180deg)}.lcaobjects-definition .section:not(.active):last-of-type .section-header,.lcaobjects-definition--loading .section:not(.active):last-of-type .section-header{border-bottom:none}.lcaobjects-definition .section:not(.active) .section-body,.lcaobjects-definition--loading .section:not(.active) .section-body{display:none}.lcaobjects-definition .section-header,.lcaobjects-definition--loading .section-header{cursor:pointer;background:#00b3c9;border-bottom:1px solid rgba(0,0,0,.175);color:#fff;font-weight:600;display:flex;flex:1 1 100%;justify-content:space-between;align-items:center;padding:calc(15px/1.5) calc(15px*1.5) calc(15px/1.5) 15px}.lcaobjects-definition .section-header #warning,.lcaobjects-definition--loading .section-header #warning{color:red}.lcaobjects-definition .section-header #issue,.lcaobjects-definition--loading .section-header #issue{color:#cbac3b}.lcaobjects-definition .section-body,.lcaobjects-definition--loading .section-body{display:grid;grid-template-columns:1fr;gap:15px;padding:15px;width:100%}.lcaobjects-definition .section-body .elements-list__inner,.lcaobjects-definition--loading .section-body .elements-list__inner{display:grid;gap:15px}.lcaobjects-definition .section-body .elements-list #issue,.lcaobjects-definition--loading .section-body .elements-list #issue{color:#cbac3b}.lcaobjects-definition .section-body .elements-list .invalid-edge,.lcaobjects-definition--loading .section-body .elements-list .invalid-edge{color:red}.lcaobjects-definition .section-body .description__inner,.lcaobjects-definition--loading .section-body .description__inner{background:#f0f3f4;padding:15px}.lcaobjects-definition .section-actions,.lcaobjects-definition--loading .section-actions{display:flex;flex:1 1 100%;justify-content:flex-end;align-items:center;padding:15px}.lcaobjects-definition #parameter-custom-tooltip,.lcaobjects-definition--loading #parameter-custom-tooltip{padding-bottom:25px;resize:none}.lcaobjects-definition .character-count,.lcaobjects-definition--loading .character-count{color:#a5a3a3;font-style:italic;position:absolute;right:20px;bottom:5px}.lcaobjects-definition__row{display:grid;align-items:center;gap:calc(15px/3) 15px}@media screen and (min-width: 640px){.lcaobjects-definition__row{grid-template-columns:minmax(160px, 300px) minmax(180px, 1fr)}}.lcaobjects-definition__row .title{font-weight:600;display:flex;align-items:center;justify-content:space-between}.lcaobjects-definition .form-controls,.lcaobjects-definition--loading .form-controls{display:grid;align-items:center;grid-template-columns:1fr;grid-auto-columns:100px;grid-auto-flow:column;gap:15px}.lcaobjects-definition search,.lcaobjects-definition--loading search{border:none;border-bottom:1px solid rgba(0,0,0,.175)}.lcaobjects-definition search input,.lcaobjects-definition--loading search input,.lcaobjects-definition search .input-group-append,.lcaobjects-definition--loading search .input-group-append{border:0}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/components/lcaobjects-overview/lcaobjects-overview.scss\",\"webpack://./src/resources/customized-styles/variables.scss\",\"webpack://./src/resources/color-admin/_variables.scss\"],\"names\":[],\"mappings\":\"AAKA,2BACC,eAAA,CAGC,0BADD,qDAEE,wBAAA,CAAA,CAGD,0BALD,qDAME,UAAA,CAAA,CAIF,2CACC,oBAAA,CACA,wBAAA,CACA,4BAAA,CACA,qCAAA,CACA,sCAAA,CACA,uCAAA,CACA,iBAAA,CACA,uBAAA,CACA,uBAAA,CACA,sBAAA,CACA,sBAAA,CAEA,uCAAA,CAEA,gDACC,eAAA,CACA,gBAAA,CAKH,uDACC,YAAA,CACA,qBAAA,CACA,eAAA,CACA,iBAAA,CACA,2BAAA,CACA,UAAA,CAGC,yBADD,6GAEE,WAAA,CAAA,CAIF,gCAEC,sBAAA,CACA,kBAAA,CACA,YAAA,CAMC,mIACC,kBCtDW,CDuDX,aAAA,CAEA,uJACC,yBAAA,CAKD,6JACC,kBAAA,CAIF,+HACC,YAAA,CAIF,uFACC,cAAA,CACA,kBChFM,CDiFN,wCAAA,CACA,UEtCW,CFuCX,eAAA,CACA,YAAA,CACA,aAAA,CACA,6BAAA,CACA,kBAAA,CACA,yDAAA,CAEA,yGACC,SAAA,CAGD,qGACC,aAAA,CAIF,mFACC,YAAA,CACA,yBAAA,CACA,QC3FM,CD4FN,YC5FM,CD6FN,UAAA,CAKC,+HACC,YAAA,CACA,QCpGI,CDuGL,+HACC,aAAA,CAGD,6IACC,SAAA,CAKD,2HACC,kBCxHU,CDyHV,YCnHI,CDwHP,yFACC,YAAA,CACA,aAAA,CACA,wBAAA,CACA,kBAAA,CACA,YC7HM,CDkIR,2GACC,mBAAA,CACA,WAAA,CAGD,yFACC,aC7IY,CD8IZ,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAGD,4BACC,YAAA,CACA,kBAAA,CACA,qBAAA,CAEA,qCALD,4BAME,6DAAA,CAAA,CAGD,mCACC,eAAA,CACA,YAAA,CACA,kBAAA,CACA,6BAAA,CAIF,qFACC,YAAA,CACA,kBAAA,CACA,yBAAA,CACA,uBAAA,CACA,qBAAA,CACA,QCtKO,CDyKR,qEACC,WAAA,CACA,wCAAA,CAEA,8LACC,QAAA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.load-spinner{background:hsla(0,0%,100%,.6);display:flex;justify-content:center;align-items:center;height:100%;width:100%;user-select:none;position:absolute;z-index:1041}.load-spinner__inner{display:flex;align-items:center}[data-device-type=mobile] .load-spinner,[data-device-type=tablet] .load-spinner{height:calc(100vh - 50px);width:100vw}.load-spinner .custom-spinner{background:rgba(0,0,0,0);border-left:3px solid rgba(0,0,0,.12);border-right:3px solid rgba(0,0,0,.12);border-bottom:3px solid rgba(0,0,0,.12);border-radius:50%;min-height:calc(15px*2);max-height:calc(15px*2);min-width:calc(15px*2);max-width:calc(15px*2);animation:rotating .75s linear infinite}.load-spinner .custom-spinner-text{font-weight:600;margin-left:15px}@keyframes rotating{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/components/load-spinner/load-spinner.scss\"],\"names\":[],\"mappings\":\"AAEA,cACC,6BAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,gBAAA,CACA,iBAAA,CACA,YAAA,CAEA,qBACC,YAAA,CACA,kBAAA,CAGD,gFACC,yBAAA,CACA,WAAA,CAGD,8BACC,wBAAA,CAEA,qCAAA,CACA,sCAAA,CACA,uCAAA,CACA,iBAAA,CACA,uBAAA,CACA,uBAAA,CACA,sBAAA,CACA,sBAAA,CAEA,uCAAA,CAEA,mCACC,eAAA,CACA,gBAAA,CAKH,oBACC,KACC,sBAAA,CAGD,GACC,wBAAA,CAAA\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Module\nvar code = ` `;\n// Exports\nexport default code;","// Module\nvar code = ` `;\n// Exports\nexport default code;","import { I18N } from 'aurelia-i18n';\r\nimport { ModalService } from 'app/services/modal-service';\r\nimport { ApiClient } from 'app/services/api-client';\r\nimport { AppContextService } from 'app/services/app-context-service';\r\nimport { DialogController } from 'aurelia-dialog';\r\nimport { autoinject } from 'aurelia-framework';\r\n\r\n@autoinject\r\nexport class LCAObjectsOverview{\r\n\tpublic activeStep:number = 0;\r\n\tpublic elements:LCABuildingPartDto[] = [];\r\n\tpublic constructions:LCAConstructionDto[] = [];\r\n\tpublic cattoel:CategoryToElement[] = [];\r\n\tpublic eltocon:ElementToConstruction[] = [];\r\n\tpublic eltoconEdges:EdgeMapping[] = [];\r\n\tpublic cattoelEdges:EdgeMapping[] = [];\r\n\tpublic invalidEltoconEdges:boolean = false;\r\n\tpublic issueWithConstruction: boolean = false;\r\n\tpublic jsonData = [];\r\n\t\r\n\tconstructor(protected dialog: DialogController, private appContext: AppContextService, protected apiClient: ApiClient, protected modal: ModalService, protected i18n:I18N){\r\n\t\tthis.dialog.settings.overlayDismiss = false;\r\n\t}\r\n\r\n\tasync activate(params: any){\r\n\t\tthis.jsonData = params;\r\n\r\n\t\tawait this.separateData(this.jsonData);\r\n\t\tawait this.checkIfMissingUnit();\r\n\t}\r\n\r\n\t//sorts the data by the nodes. Unfortunately LCA doesn't really use Keys to their values, so I had to make this hack for it. \r\n\t//It is messy, but I think this might be the best way, considering their... funky data setup.\r\n\tasync separateData(data: any){\r\n\t\tdata.forEach((el: any) => {\r\n\t\t\tif(el[\"Node\"]){\r\n\t\t\t\tlet node = el[\"Node\"];\r\n\t\t\t\tif(node[\"Element\"]){\r\n\t\t\t\t\tthis.elements.push(node[\"Element\"]);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//allows for checking if the units are potentially wrong.\r\n\t\t\t\t\tnode[\"Construction\"].issue = false;\r\n\t\t\t\t\tthis.constructions.push(node[\"Construction\"]);\r\n\t\t\t\t}\r\n\t\t\t}else if(el[\"Edge\"]){\r\n\t\t\t\tlet edge = el[\"Edge\"][0];\r\n\t\t\t\tlet edgeType = \"\";\r\n\r\n\t\t\t\tif(edge[\"ElementToConstruction\"]){\r\n\t\t\t\t\tthis.eltocon.push(edge[\"ElementToConstruction\"]);\r\n\t\t\t\t\tlet invalid:boolean = false;\r\n\t\t\t\t\tif(edge[\"ElementToConstruction\"].amount === 0){\r\n\t\t\t\t\t\tinvalid = true;\r\n\r\n\t\t\t\t\t\tif(this.invalidEltoconEdges !== true){\r\n\t\t\t\t\t\t\tthis.invalidEltoconEdges = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet referee: LCABuildingPartDto | undefined = this.elements.find(x => x.id === el[\"Edge\"][1]);\r\n\t\t\t\t\tlet referencer: LCAConstructionDto | undefined = this.constructions.find(x => x.id === el[\"Edge\"][2])\r\n\t\t\t\t\tlet mapping:EdgeMapping ={ \r\n\t\t\t\t\t\tinvalid: invalid,\r\n\t\t\t\t\t\treferee: referee?.name.Danish ? referee?.name.Danish : \"\",\r\n\t\t\t\t\t\treferencer: referencer?.name.Danish ? referencer.name.Danish : \"\"\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.eltoconEdges.push(mapping);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.cattoel.push(edge[\"CategoryToElement\"]);\r\n\t\t\t\t\tedgeType = \"CategoryToElement\";\r\n\t\t\t\t\tlet referencer: LCABuildingPartDto | undefined = this.elements.find(x => x.id === el[\"Edge\"][2]);\r\n\t\t\t\t\tlet mapping:EdgeMapping ={ \r\n\t\t\t\t\t\tinvalid: false,\r\n\t\t\t\t\t\treferee: \"Andet\",\r\n\t\t\t\t\t\treferencer: referencer?.name.Danish ? referencer.name.Danish : \"\"\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.cattoelEdges.push(mapping);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tasync checkIfMissingUnit(){\r\n\t\tthis.constructions.forEach(construction => {\r\n\t\t\tlet result = this.eltoconEdges.find(x => x.referencer === construction.name.Danish);\r\n\t\t\tif(result == undefined){\r\n\t\t\t\tconstruction.issue = true;\r\n\r\n\t\t\t\tif(this.issueWithConstruction != true){\r\n\t\t\t\t\tthis.issueWithConstruction = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tasync download(){\r\n\t\tlet data = JSON.stringify(this.jsonData);\r\n\t\tif (this.issueWithConstruction && this.invalidEltoconEdges === true) {\r\n\t\t\tthis.modal.OpenConfirm(\r\n\t\t\t\tthis.i18n.tr(\"Are you sure?\"),\r\n\t\t\t\tthis.i18n.tr(\"There are potential issues with the data you are exporting. Do you still want to export?\")\r\n\t\t\t).whenClosed (x => {\r\n\t\t\t\tif (!x.wasCancelled) {\r\n\t\t\t\t\tconsole.log('lca export 3');\r\n\t\t\t\t\tthis.apiClient.project(this.appContext.projectId).postJson(\"lca/MakeLCAFile\", data).downloadFile(\"AjourBuildingParts.json\");\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t} else {\r\n\t\t\tconsole.log('lca export 4');\r\n\t\t\tawait this.apiClient.project(this.appContext.projectId).postJson(\"lca/MakeLCAFile\", data).downloadFile(\"AjourBuildingParts.json\");\r\n\t\t}\r\n\t}\r\n\r\n\tcancel() { this.dialog.cancel(); }\r\n\r\n\tpublic toggleElement(element: any) {\r\n\t\tif (element.toggled) {\r\n\t\t\telement.toggled = false;\r\n\t\t} else {\r\n\t\t\telement.toggled = true;\r\n\t\t}\r\n\t}\r\n\r\n\tpublic goToStep(event: any){\r\n\t\tif(parseInt(event.target.closest('.section').dataset.step) === this.activeStep){\r\n\t\t\tthis.activeStep = 0;\r\n\t\t}else{\r\n\t\t\tthis.activeStep = parseInt(event.target.closest('.section').dataset.step);\r\n\t\t}\r\n\t}\r\n\r\n}\r\n","import { Subscription, EventAggregator } from 'aurelia-event-aggregator';\r\nimport { autoinject } from 'aurelia-framework';\r\n@autoinject\r\nexport class LoadSpinner {\r\n\tpublic navCollapsed: boolean = false;\r\n\tprivate subscriptions: Subscription[] = [];\r\n\r\n\tconstructor(private events: EventAggregator) {\r\n\r\n\t}\r\n\r\n\tattached() {\r\n\t\tthis.subscriptions = [\r\n\t\t\tthis.events.subscribe(\"nav-collapsed\", (payload: any) => { this.navCollapsed = payload })\r\n\t\t];\r\n\t}\r\n\r\n\tdetached() {\r\n\t\tthis.subscriptions.forEach(subscription => {\r\n\t\t\tsubscription.dispose()\r\n\t\t});\r\n\t}\r\n}\r\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","LCAObjectsOverview","constructor","dialog","appContext","apiClient","modal","i18n","activeStep","elements","constructions","cattoel","eltocon","eltoconEdges","cattoelEdges","invalidEltoconEdges","issueWithConstruction","jsonData","this","settings","overlayDismiss","activate","params","separateData","checkIfMissingUnit","data","forEach","el","node","issue","edge","edgeType","invalid","amount","referee","find","x","referencer","mapping","name","Danish","construction","undefined","download","JSON","stringify","OpenConfirm","tr","whenClosed","wasCancelled","console","log","project","projectId","postJson","downloadFile","cancel","toggleElement","element","toggled","goToStep","event","parseInt","target","closest","dataset","step","autoinject","DialogController","I18N","LoadSpinner","events","navCollapsed","subscriptions","attached","subscribe","payload","detached","subscription","dispose","EventAggregator"],"sourceRoot":""}