{"version":3,"sources":["webpack:///./src/assets/images/icons/icon-plus-outline.svg","webpack:///./src/assets/images/icons/icon_parameters_and_settings_folder_2.svg","webpack:///./src/views/components/ListItemCheck/ListItemCheck.vue?1ee0","webpack:///./src/views/components/ListItemCheck/ListItemCheck.ts","webpack:///./src/views/components/ListItemCheck/ListItemCheck.vue","webpack:///./node_modules/core-js/modules/es.string.starts-with.js","webpack:///./src/assets/images/icons/icon-import.svg","webpack:///./src/assets/images/icons/icon-remove-outline.svg","webpack:///./src/views/components/ListItemCheck/ListItemCheck.scss?1e1f","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantResidents/DialogImportFile/DialogImportFile.scss?340c","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantResidents/DialogImportFile/DialogImportFile.vue?6ccc","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantResidents/DialogImportFile/DialogImportFile.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantResidents/DialogImportFile/DialogImportFile.vue"],"names":["module","exports","_hoisted_1","class","_hoisted_2","_hoisted_3","key","render","_ctx","_cache","$props","$setup","$data","$options","_component_Checkbox","onClick","$event","setValue","disabled","binary","inputId","name","modelValue","checked","for","label","last","this","includes","value","splice","indexOf","push","$emit","props","type","Array","required","String","Boolean","default","emits","__exports__","$","getOwnPropertyDescriptor","f","toLength","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","nativeStartsWith","startsWith","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","prototype","writable","target","proto","forced","searchString","that","index","arguments","length","undefined","search","call","slice","_hoisted_4","style","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_component_Button","_component_ElScrollbar","_component_InlineSvgScoped","_component_Dropdown","_component_Dialog","visible","isVisible","modal","showHeader","closable","dialogTitle","subtitle","dialogStep","selectAll","$t","_","disabledFlattenedList","data","i","selectedList","id","isDisabled","formatLabel","src","current","apartmentsAlreadyCreatedCount","imported","selectedCount","selectedGrouped","apartment","j","validLines","line","Line1","Line2","options","EntrancePlantDetail","buildings","map","building","trim","optionLabel","optionValue","BuildingName","onChange","handleBuildingChange","selectApartmentsByBuilding","ApartmentName","isAvailable","overwrited","ap","OldLabel","NewLabel","handleButtonCancelAction","handleButtonSubmitAction","disableSaveButton","flattenedList","shouldShowWarningStep2","shouldShowWarningStep4","recap","some","item","forEach","apartments","find","b","Type","Info","maxLengthLine","Business","maxLengthInfo","substring","filter","el","isCreationMode","groupSelected","buildingRecap","prepareToSend","row","apartmentName","buildingName","isCallingMode","result","processed","oldLabel","labels","isPrivate","surname","companyName","isNew","newLabel","targetBuilding","maxCount","traduction","names","split","count","parseInt","scarto","isNotAvailable","importLabelItems","buildingId","labelType","Private","information","importedData","watch","newValue","newVal","tmp","Object","keys","isArray","limitCharsLabel","cleanSingleLabelAppartment"],"mappings":"8KAAAA,EAAOC,QAAU,IAA0B,sC,uBCA3CD,EAAOC,QAAU,IAA0B,0D,8DCErCC,EAA0B,yBAAa,MAAO,CAAEC,MAAO,YAAc,MAAO,GAC5EC,EAAa,CAAED,MAAO,0DACtBE,EAAa,CACjBC,IAAK,EACLH,MAAO,YAGH,SAAUI,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAsB,8BAAkB,YAE9C,OAAQ,yBAAc,yBAAa,MAAO,CACxCC,QAASN,EAAO,KAAOA,EAAO,GAAK,SAACO,GAAD,OAAkBR,EAAKS,cACzD,CACDf,EACA,yBAAa,MAAOE,EAAY,CAC9B,yBAAaU,EAAqB,CAChCI,SAAUV,EAAKU,SACfC,QAAQ,EACRC,QAASZ,EAAKY,QACd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GAEZuK,aAAc,CACZzK,KAAMC,MACNC,UAAU,GAEZ+I,cAAe,CACbjJ,KAAMI,QACNF,UAAU,GAEZwI,eAAgB,CACd1I,KAAMI,QACNF,UAAU,GAEZkG,oBAAqB,CACnBpG,KAAM,OACNE,UAAU,IAGdwK,MAAO,CACLpG,UADK,SACKqG,GACJA,IACJnL,KAAKoF,WAAa,EAClBpF,KAAKgI,cAAgB,GACrBhI,KAAK2F,aAAe,KAEtBA,aAPK,SAOQyF,GACX,IAAIC,EAAiC,GACrCD,EAAO9C,SAAQ,SAACD,GACdgD,EAAI,GAAD,OAAIhD,EAAKd,cAAT,YAA0Bc,EAAKlB,eAAkB,KAGtDnH,KAAKmG,cAAgBmF,OAAOC,KAAKF,GAAK7I,QAExCyI,aAfK,SAeQE,GACXnL,KAAKgI,cAAgB,GACjBmD,GAAY1K,MAAM+K,QAAQL,KAC5BA,EAAWnL,KAAKyL,gBAAgBN,GAC3BnL,KAAKkJ,eAGRlJ,KAAKgI,cAAgBmD,EAFrBnL,KAAKgI,cAAgBhI,KAAK0L,2BAA2BP,MAQ7DrK,MAAO,CAAC,cAAe,aAAc,eAAgB,cAElC,W,iCC/ErB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASnC,KAErD,U","file":"js/page-entranceplant-detail~page-entranceplant-reisdents~page-plant-detail~page-plants-list.411b8d19.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/icon-plus-outline.6d157290.svg\";","module.exports = __webpack_public_path__ + \"img/icon_parameters_and_settings_folder_2.3cf70acb.svg\";","import { createVNode as _createVNode, resolveComponent as _resolveComponent, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createVNode(\"div\", { class: \"row-line\" }, null, -1)\nconst _hoisted_2 = { class: \"d-flex align-items-center row-content p-field-checkbox\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"row-line\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Checkbox = _resolveComponent(\"Checkbox\")\n\n return (_openBlock(), _createBlock(\"div\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.setValue()))\n }, [\n _hoisted_1,\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(_component_Checkbox, {\n disabled: _ctx.disabled,\n binary: true,\n inputId: _ctx.inputId,\n name: _ctx.name,\n modelValue: _ctx.checked\n }, null, 8, [\"disabled\", \"inputId\", \"name\", \"modelValue\"]),\n _createVNode(\"label\", {\n class: \"ml-2\",\n for: _ctx.inputId\n }, _toDisplayString(_ctx.label), 9, [\"for\"])\n ]),\n (_ctx.last)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'ListItemCheck',\n props: {\n modelValue: {\n type: Array,\n required: true,\n },\n name: {\n required: true,\n type: String,\n },\n inputId: {\n required: true,\n type: String,\n },\n label: {\n required: true,\n type: String,\n },\n value: {\n required: true,\n },\n last: {\n type: Boolean,\n default: false,\n required: false,\n },\n disabled: {\n type: Boolean,\n default: false,\n required: false,\n },\n },\n emits: ['update:modelValue','update:value'],\n})\nexport default class CardRadio extends Vue {\n modelValue!: string[];\n name!: string;\n inputId!: string;\n value!: string;\n last!: boolean;\n label!: string;\n disabled!: boolean;\n get checked () {\n return this.modelValue.includes(this.value)\n }\n\n setValue() {\n if(this.disabled)return;\n if (this.checked){\n this.modelValue.splice(this.modelValue.indexOf(this.value), 1)\n }else{\n this.modelValue.push(this.value)\n }\n this.$emit('update:value', this.value);\n this.$emit('update:modelValue', this.modelValue);\n }\n}\n","import { render } from \"./ListItemCheck.vue?vue&type=template&id=18f920d1&ts=true\"\nimport script from \"./ListItemCheck.ts?vue&type=script&lang=ts\"\nexport * from \"./ListItemCheck.ts?vue&type=script&lang=ts\"\n\nimport \"./ListItemCheck.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","'use strict';\nvar $ = require('../internals/export');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\nvar nativeStartsWith = ''.startsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return nativeStartsWith\n ? nativeStartsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n","module.exports = __webpack_public_path__ + \"img/icon-import.99f8f35a.svg\";","module.exports = __webpack_public_path__ + \"img/icon-remove-outline.ef28dcd9.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./ListItemCheck.scss?vue&type=style&index=0&lang=scss\"","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./DialogImportFile.scss?vue&type=style&index=0&lang=scss\"","import { toDisplayString as _toDisplayString, createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header mb-10\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = {\n class: \"d-flex\",\n style: {\"flex-direction\":\"column\",\"width\":\"600px\",\"height\":\"600px\"}\n}\nconst _hoisted_5 = { class: \"mb-3 text-gray\" }\nconst _hoisted_6 = { class: \"p-field-checkbox d-flex align-items-center pl-2\" }\nconst _hoisted_7 = {\n key: 1,\n class: \"d-flex flex-column align-items-center\"\n}\nconst _hoisted_8 = { class: \"mt-4\" }\nconst _hoisted_9 = { class: \"warning\" }\nconst _hoisted_10 = { class: \"warning\" }\nconst _hoisted_11 = { key: 2 }\nconst _hoisted_12 = { class: \"d-flex justify-content-between\" }\nconst _hoisted_13 = {\n class: \"d-flex flex-column\",\n style: {\"width\":\"200px\"}\n}\nconst _hoisted_14 = { class: \"d-flex flex-column\" }\nconst _hoisted_15 = /*#__PURE__*/_createVNode(\"span\", { class: \"error\" }, null, -1)\nconst _hoisted_16 = { class: \"d-flex flex-column\" }\nconst _hoisted_17 = { class: \"error\" }\nconst _hoisted_18 = {\n key: 3,\n class: \"d-flex flex-column\"\n}\nconst _hoisted_19 = { class: \"align-items-center d-flex flex-column\" }\nconst _hoisted_20 = { class: \"mt-4\" }\nconst _hoisted_21 = { class: \"warning\" }\nconst _hoisted_22 = { class: \"d-flex\" }\nconst _hoisted_23 = { class: \"ml-1\" }\nconst _hoisted_24 = { class: \"d-flex justify-content-between mb-5\" }\nconst _hoisted_25 = { class: \"text-gray\" }\nconst _hoisted_26 = { key: 0 }\nconst _hoisted_27 = { class: \"font-weight-bold\" }\nconst _hoisted_28 = { key: 0 }\nconst _hoisted_29 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Checkbox = _resolveComponent(\"Checkbox\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isVisible,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.isVisible = $event)),\n modal: true,\n showHeader: false,\n closable: false,\n class: \"dialog-custom dialog-edit-label\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.subtitle), 1),\n (_ctx.dialogStep == 1)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, { key: 0 }, {\n default: _withCtx(() => [\n _createVNode(_component_Button, {\n class: \"p-button-text p-0 mt-2 mb-2\",\n onClick: _ctx.selectAll\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"general.selectAll\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.disabledFlattenedList, (data, i) => {\n return (_openBlock(), _createBlock(\"div\", {\n style: {\"border-top\":\"solid 1px gray\"},\n key: i,\n class: \"selectable mr-2\"\n }, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(_component_Checkbox, {\n modelValue: _ctx.selectedList,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.selectedList = $event)),\n value: data,\n id: `checkbox-${i}`,\n disabled: data.isDisabled\n }, null, 8, [\"modelValue\", \"value\", \"id\", \"disabled\"]),\n _createVNode(\"label\", {\n class: [\"toSelect\", { 'disabled-label': data.isDisabled }],\n for: `checkbox-${i}`\n }, _toDisplayString(_ctx.formatLabel(data)), 11, [\"for\"])\n ])\n ]))\n }), 128))\n ]),\n _: 1\n }))\n : (_ctx.dialogStep == 2)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_7, [\n _createVNode(\"span\", null, [\n _createVNode(_component_InlineSvgScoped, {\n style: {\"color\":\"blue\"},\n src: \n require(`@/assets/images/icons/icon-alert-medium-outline.svg`)\n ,\n \"aria-label\": \"icon-alert-medium-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h2\", _hoisted_8, _toDisplayString(_ctx.$t(\"incongruity\")), 1),\n _createVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(\"incongruity.description\", {\n current: _ctx.apartmentsAlreadyCreatedCount,\n imported: _ctx.selectedCount,\n })), 1),\n _createVNode(\"span\", _hoisted_10, _toDisplayString(_ctx.$t(\"incongruity.confirm\")), 1)\n ]))\n : (_ctx.dialogStep == 3)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_11, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.selectedGrouped, (apartment, j) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: j,\n class: \"mb-4\"\n }, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"div\", _hoisted_13, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(apartment.validLines, (line, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n key: index,\n class: \"d-block fw-bold lead\"\n }, [\n _createVNode(\"span\", null, _toDisplayString(line.Line1 != undefined\n ? line.Line1 + \" \"\n : \"\"), 1),\n _createVNode(\"span\", null, _toDisplayString(line.Line2 != undefined\n ? line.Line2\n : \"\"), 1)\n ]))\n }), 128))\n ]),\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(_component_Dropdown, {\n style: {\"width\":\"200px\"},\n options: \n _ctx.EntrancePlantDetail.buildings?.map(\n (building) => ({\n name: building.name?.trim(),\n })\n )\n ,\n optionLabel: \"name\",\n optionValue: \"name\",\n modelValue: apartment.BuildingName,\n \"onUpdate:modelValue\": ($event: any) => (apartment.BuildingName = $event),\n onChange: ($event: any) => (_ctx.handleBuildingChange(apartment))\n }, null, 8, [\"options\", \"modelValue\", \"onUpdate:modelValue\", \"onChange\"]),\n _hoisted_15\n ]),\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(_component_Dropdown, {\n style: {\"width\":\"200px\"},\n options: \n _ctx.selectApartmentsByBuilding(\n apartment.BuildingName\n )\n ,\n optionLabel: \"name\",\n optionValue: \"name\",\n modelValue: apartment.ApartmentName,\n \"onUpdate:modelValue\": ($event: any) => (apartment.ApartmentName = $event)\n }, null, 8, [\"options\", \"modelValue\", \"onUpdate:modelValue\"]),\n _createVNode(\"span\", _hoisted_17, _toDisplayString(!_ctx.isAvailable(\n apartment.BuildingName,\n apartment.ApartmentName,\n j\n )\n ? \"errore\"\n : \"\"), 1)\n ])\n ])\n ]))\n }), 128))\n ]))\n : (_ctx.dialogStep == 4)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_18, [\n _createVNode(\"div\", _hoisted_19, [\n _createVNode(_component_InlineSvgScoped, {\n style: {\"color\":\"blue\"},\n src: \n require(`@/assets/images/icons/icon-alert-medium-outline.svg`)\n ,\n \"aria-label\": \"icon-alert-medium-outline\"\n }, null, 8, [\"src\"]),\n _createVNode(\"h2\", _hoisted_20, _toDisplayString(_ctx.$t(\"warning\")), 1),\n _createVNode(\"span\", _hoisted_21, _toDisplayString(_ctx.$t(\"warning.description\")), 1)\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.overwrited, (ap, i) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"d-flex flex-column aling-item-left mr-5 ml-5\",\n key: i\n }, [\n _createVNode(\"div\", _hoisted_22, [\n _createVNode(\"h6\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Building\")) + \": \" + _toDisplayString(ap.BuildingName), 1),\n _createVNode(\"h6\", _hoisted_23, _toDisplayString(_ctx.$t(\"AppResourceEP.Apartment\")) + \": \" + _toDisplayString(ap.ApartmentName), 1)\n ]),\n _createVNode(\"div\", _hoisted_24, [\n _createVNode(\"div\", _hoisted_25, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"oldLines\")) + \":\", 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(ap.OldLabel, (label, j) => {\n return (_openBlock(), _createBlock(\"span\", { key: j }, [\n _createTextVNode(_toDisplayString(label.Line1 != undefined\n ? label.Line1\n : \"\") + \" \" + _toDisplayString(label.Line2 != undefined\n ? label.Line2\n : \"\") + \" \", 1),\n (j < ap.OldLabel.length - 1)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_26, \",\"))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]),\n _createVNode(\"div\", _hoisted_27, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"newLines\")) + \":\", 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(ap.NewLabel, (label, j) => {\n return (_openBlock(), _createBlock(\"span\", { key: j }, [\n _createTextVNode(_toDisplayString(label.Line1 != undefined\n ? label.Line1\n : \"\") + \" \" + _toDisplayString(label.Line2 != undefined\n ? label.Line2\n : \"\") + \" \", 1),\n (j < ap.NewLabel.length - 1)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_28, \",\"))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ])\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(\"footer\", _hoisted_29, [\n _createVNode(_component_Button, {\n class: \"p-button-text mr-2\",\n onClick: _ctx.handleButtonCancelAction\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _ctx.handleButtonSubmitAction,\n disabled: _ctx.disableSaveButton\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Save\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]))\n}","import { PropType } from 'vue';\nimport { Options, Vue } from 'vue-class-component';\nimport {\n EntrancePlantDetailDTO,\n ApartmentLabelDTO,\n ApartmentDTO,\n BuildingImportDto,\n LabelType,\n} from '../../../../../../client-generator/generated-clients/plants';\nexport interface multiLabelApartment {\n BuildingName?: string;\n ApartmentName?: string;\n validLines?: label[];\n}\nexport interface singleLabelApartment {\n BuildingName?: string;\n ApartmentName?: string;\n label: label;\n}\ninterface label {\n Line1?: string;\n Line2?: string;\n Type?: LabelType;\n Info?: string;\n}\ninterface recap {\n ApartmentName: string;\n BuildingName: string;\n OldLabel: label[];\n NewLabel: label[];\n isNew: boolean;\n}\n@Options({\n name: 'DialogImportFile',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n importedData: {\n type: Array as PropType,\n required: false,\n },\n isCallingMode: {\n type: Boolean,\n required: false,\n },\n isCreationMode: {\n type: Boolean,\n required: false,\n },\n EntrancePlantDetail: {\n type: EntrancePlantDetailDTO,\n required: true,\n },\n },\n watch: {\n isVisible(newValue) {\n if (newValue) return;\n this.dialogStep = 1;\n this.flattenedList = [];\n this.selectedList = [];\n },\n selectedList(newVal) {\n let tmp: { [key: string]: number } = {};\n newVal.forEach((item: singleLabelApartment) => {\n tmp[`${item.ApartmentName}|${item.BuildingName}`] = 0;\n });\n\n this.selectedCount = Object.keys(tmp).length;\n },\n importedData(newValue) {\n this.flattenedList = [];\n if (newValue && Array.isArray(newValue)) {\n newValue = this.limitCharsLabel(newValue);\n if (!this.isCreationMode) {\n this.flattenedList = this.cleanSingleLabelAppartment(newValue);\n } else {\n this.flattenedList = newValue;\n }\n }\n },\n },\n\n emits: ['hide-dialog', 'save-label', 'update-plant', 'grouped'],\n})\nexport default class DialogImportFile extends Vue {\n isVisible!: boolean;\n isCreationMode!: boolean;\n isCallingMode!: boolean;\n flattenedList: singleLabelApartment[] = [];\n selectedList: singleLabelApartment[] = [];\n EntrancePlantDetail: EntrancePlantDetailDTO = {} as EntrancePlantDetailDTO;\n\n shouldShowWarningStep2 = false;\n shouldShowWarningStep4 = false;\n dialogStep = 1;\n recap: recap[] = [];\n overwrited: recap[] = [];\n selectedCount = 0;\n selectedGrouped: multiLabelApartment[] = [];\n\n get dialogTitle() {\n switch (this.dialogStep) {\n case 1:\n return this.$t('labelToImport');\n case 3:\n return this.$t('assignApartments');\n\n default:\n return '';\n }\n }\n\n get subtitle() {\n switch (this.dialogStep) {\n case 1:\n return this.$t('selectLabelsUpper');\n case 3:\n return this.$t('choseApartmentForLabelsUpper');\n default:\n return '';\n }\n }\n get disabledFlattenedList() {\n return this.flattenedList.map((data: singleLabelApartment) => ({\n ...data,\n isDisabled: this.isDisabled(data),\n }));\n }\n\n get disableSaveButton() {\n if (this.dialogStep === 1) {\n return this.selectedCount <= 0;\n } else if (this.dialogStep === 3) {\n return this.selectedGrouped.some(\n (item, i) =>\n !item.BuildingName ||\n !item.ApartmentName ||\n !this.isAvailable(item.BuildingName!, item.ApartmentName!, i)\n );\n }\n return false;\n }\n\n get apartmentsAlreadyCreatedCount() {\n let apartmentsAlreadyCreatedCount = 0;\n this.EntrancePlantDetail.buildings?.forEach((building) => {\n if (building.apartments) {\n apartmentsAlreadyCreatedCount += building.apartments.length;\n }\n });\n return apartmentsAlreadyCreatedCount;\n }\n\n cleanSingleLabelAppartment(data: singleLabelApartment[]) {\n return data.map((item) => {\n let building = item.BuildingName?.trim();\n let apartment = item.ApartmentName?.trim();\n if (\n !this.EntrancePlantDetail.buildings?.find(\n (b) => b.name?.trim() === building\n )\n ) {\n building = undefined;\n }\n if (\n building &&\n !this.selectApartmentsByBuilding(building).find(\n (ap) => ap.name?.trim() === apartment\n )\n ) {\n apartment = undefined;\n }\n return {\n BuildingName: building,\n ApartmentName: apartment,\n label: {\n Line1: item.label.Line1?.trim(),\n Line2: item.label.Line2?.trim(),\n Type: item.label.Type,\n Info: item.label.Info,\n },\n };\n });\n }\n\n limitCharsLabel(data: singleLabelApartment[]) {\n return data.map((item) => {\n const maxLengthLine = item.label.Type === LabelType.Business ? 40 : 25;\n const maxLengthInfo = 225;\n return {\n BuildingName: item.BuildingName,\n ApartmentName: item.ApartmentName,\n label: {\n Line1: item.label.Line1?.trim().substring(0, maxLengthLine),\n Line2: item.label.Line2?.trim().substring(0, maxLengthLine),\n Type: item.label.Type,\n Info: item.label.Info?.substring(0, maxLengthInfo)\n },\n };\n });\n }\n\n selectAll() {\n if (\n this.selectedList.length ==\n this.disabledFlattenedList.filter((el) => !el.isDisabled).length\n ) {\n this.selectedList = [];\n } else {\n this.selectedList = [];\n this.flattenedList.forEach((item) => {\n let el = this.disabledFlattenedList.find((el) => {\n return (\n el.label.Line1 === item.label.Line1 &&\n el.label.Line2 === item.label.Line2 &&\n el.BuildingName === item.BuildingName &&\n el.ApartmentName === item.ApartmentName\n );\n });\n if (el && !el.isDisabled) {\n this.selectedList.push(el);\n }\n });\n }\n }\n\n async handleButtonSubmitAction() {\n if (this.dialogStep === 1) {\n if (this.selectedCount > 0) {\n this.shouldShowWarningStep2 =\n this.selectedCount > this.apartmentsAlreadyCreatedCount &&\n !this.isCreationMode;\n }\n if (this.shouldShowWarningStep2) {\n this.dialogStep++;\n } else {\n this.groupSelected();\n this.$emit('grouped', this.selectedGrouped);\n\n this.dialogStep += 2;\n }\n } else if (this.dialogStep === 2) {\n this.groupSelected();\n this.dialogStep++;\n } else if (this.dialogStep === 3) {\n this.buildingRecap();\n this.shouldShowWarningStep4 =\n this.overwrited.length > 0 && !this.isCreationMode;\n if (this.shouldShowWarningStep4) {\n this.dialogStep++;\n } else {\n this.$emit('overwrite', this.prepareToSend());\n }\n } else {\n this.$emit('overwrite', this.prepareToSend());\n }\n }\n\n groupSelected() {\n this.selectedGrouped = [];\n this.selectedList.forEach((item: singleLabelApartment) => {\n let row = this.selectedGrouped.find(\n (el) =>\n el.ApartmentName == item.ApartmentName &&\n el.BuildingName == item.BuildingName\n );\n let apartmentName = item.ApartmentName;\n let buildingName = item.BuildingName;\n if (row) {\n row?.validLines?.push({\n Line1: item.label.Line1,\n Line2: item.label.Line2,\n Type: item.label.Type,\n Info: item.label.Info,\n });\n } else {\n this.selectedGrouped.push({\n ApartmentName: apartmentName,\n BuildingName: buildingName,\n validLines: [\n {\n Line1: item.label.Line1,\n Line2: item.label.Line2,\n Type: item.label.Type,\n Info: item.label.Info,\n },\n ],\n });\n }\n });\n }\n\n isDisabled(data: singleLabelApartment) {\n if (!this.isCallingMode) return false;\n let building = data.BuildingName;\n let apartment = data.ApartmentName;\n return this.selectedList.some((item) => {\n if (\n item.BuildingName === building &&\n item.ApartmentName === apartment &&\n item.label.Line1 !== data.label.Line1 &&\n item.label.Line2 !== data.label.Line2\n ) {\n return true;\n }\n });\n }\n\n handleButtonCancelAction() {\n if (this.dialogStep === 3 || this.dialogStep === 2) {\n this.dialogStep = 1;\n } else if (this.dialogStep > 3) {\n this.dialogStep--;\n } else {\n this.$emit('hide-dialog');\n this.selectedList = [];\n this.flattenedList = [];\n }\n }\n\n formatLabel(data: singleLabelApartment) {\n let result = '';\n if (data.label.Line1 !== undefined && data.label.Line1 !== '') {\n result += data.label.Line1 + ' ';\n }\n if (data.label.Line2 !== undefined && data.label.Line2 !== '') {\n if (result.length > 0) {\n result += ' ';\n }\n result += data.label.Line2;\n }\n return result;\n }\n buildingRecap() {\n let processed: recap[] = [];\n\n this.selectedGrouped.forEach((item) => {\n let building = this.EntrancePlantDetail.buildings?.find(\n (b) => b.name?.trim() === item.BuildingName\n );\n\n let oldLabel: label[] = [];\n\n const apartment = building?.apartments?.find(\n (ap) => ap.name?.trim() === item.ApartmentName\n );\n\n if (apartment && apartment.labels) {\n oldLabel = apartment.labels.map((label) => {\n if (label.isPrivate) {\n return {\n Line1: label.surname,\n Line2: label.name,\n };\n } else {\n return {\n Line1: label.companyName,\n Line2: undefined,\n };\n }\n });\n }\n\n processed.push({\n ApartmentName: item.ApartmentName!,\n BuildingName: item.BuildingName!,\n OldLabel: oldLabel,\n NewLabel: item.validLines!,\n isNew: true,\n });\n });\n\n this.recap = processed;\n this.overwrited = processed.filter((item) => {\n if (item.NewLabel.length === 0 || item.OldLabel.length === 0) {\n return false;\n }\n return (\n item.NewLabel.length !== item.OldLabel.length ||\n item.NewLabel.some((newLabel, index) => {\n const oldLabel = item.OldLabel[index];\n if (!oldLabel) return true;\n return (\n (newLabel.Line1 !== undefined &&\n newLabel.Line1 !== oldLabel.Line1) ||\n (newLabel.Line2 !== undefined && newLabel.Line2 !== oldLabel.Line2)\n );\n })\n );\n });\n }\n\n handleBuildingChange(apartment: multiLabelApartment) {\n apartment.ApartmentName = undefined;\n }\n\n selectApartmentsByBuilding(building: string): ApartmentDTO[] {\n let result: ApartmentDTO[] = [];\n let buildings = this.EntrancePlantDetail.buildings ?? [];\n let targetBuilding = buildings.find((b) => b.name?.trim() === building);\n\n if (targetBuilding) {\n result =\n (targetBuilding.apartments?.map((ap) => ({\n ...ap,\n name: ap.name?.trim(),\n })) as ApartmentDTO[]) ?? [];\n }\n\n //gestione creazione nuove label per appartamenti non ancora creati\n let maxCount = 0;\n let traduction = this.$t('apartment');\n targetBuilding?.apartments?.forEach((ap) => {\n if (ap.name?.startsWith(traduction)) {\n let names = ap.name?.split(' ');\n if (names?.length === 2) {\n let count = parseInt(names[1]);\n if (count > maxCount) {\n maxCount = count;\n }\n }\n }\n });\n if (!this.isCreationMode) {\n let scarto = this.selectedCount - this.apartmentsAlreadyCreatedCount;\n for (let i = maxCount; i < scarto + maxCount; i++) {\n const name = `${traduction} ${i + 1}`;\n result.push(new ApartmentDTO({ name }));\n }\n }\n\n return result;\n }\n\n isAvailable(buildingName: string, apartmentName: string, index: number) {\n const isNotAvailable = this.selectedGrouped.some(\n (item: multiLabelApartment, i: number) => {\n return (\n i !== index &&\n item.ApartmentName != 'null' &&\n item.BuildingName != 'null' &&\n item.BuildingName === buildingName &&\n item.ApartmentName === apartmentName\n );\n }\n );\n return !isNotAvailable;\n }\n prepareToSend() {\n const importLabelItems = this.recap.map((item) => {\n const building = this.EntrancePlantDetail.buildings?.find(\n (b) => b.name?.trim() === item.BuildingName\n );\n const buildingId = building?.buildingId ?? undefined;\n const labels = item.NewLabel.map(\n (label) =>\n new ApartmentLabelDTO({\n surname: label.Line1,\n name: label.Line2,\n companyName:label.Type === LabelType.Business ? label.Line1 : undefined,\n labelType: label.Type || LabelType.Private,\n information: label.Info,\n })\n );\n return new ApartmentDTO({\n buildingId: buildingId,\n name: item.ApartmentName,\n labels: labels,\n });\n });\n\n return new BuildingImportDto({ apartments: importLabelItems });\n }\n}\n","import { render } from \"./DialogImportFile.vue?vue&type=template&id=3e66bc67&ts=true\"\nimport script from \"./DialogImportFile.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogImportFile.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogImportFile.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}