{"version":3,"sources":["webpack:///./src/components/ui/input/CheckboxInput.vue?3fc0","webpack:///./src/components/ui/input/CheckboxInput.vue","webpack:///./src/components/ui/input/CheckboxInput.vue?bcd1","webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./src/helpers/heightAnimation.ts","webpack:///./src/features/plural.ts","webpack:///./src/helpers/vuelidate.ts","webpack:///./src/components/ui/modals/ShareLotsModal.vue?32bf","webpack:///./src/helpers/debounce.ts","webpack:///./src/components/ui/modals/ShareLotsModal.vue?705c","webpack:///./src/components/ui/modals/ShareLotsModal.vue","webpack:///./src/components/ui/modals/ShareLotsModal.vue?211a","webpack:///./src/views/DocumentsView.vue?8f42","webpack:///./src/views/DocumentsView.vue","webpack:///./src/views/DocumentsView.vue?de79","webpack:///./src/components/ui/modals/CreateFolderModal.vue?2a30","webpack:///./src/components/ui/modals/CreateFolderModal.vue","webpack:///./src/components/ui/modals/CreateFolderModal.vue?8218","webpack:///./src/components/ui/Modal.vue?9889","webpack:///./node_modules/core-js/internals/engine-is-node.js","webpack:///./src/components/ui/Modal.vue?3eee","webpack:///./src/components/ui/Modal.vue","webpack:///./src/components/ui/Modal.vue?5652","webpack:///./src/views/DocumentsView.vue?5005","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./src/components/ui/modals/CreateFolderModal.vue?b8e5","webpack:///./src/enums/LotStatus.ts","webpack:///./node_modules/core-js/internals/array-reduce.js"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","key","render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","disabled","type","value","modelValue","checked","onChange","$event","$emit","partial","checkedPartial","label","_toDisplayString","_createCommentVNode","_defineComponent","__name","props","Boolean","String","emits","setup","__props","expose","__expose","emit","__returned__","Object","defineProperty","enumerable","__exports__","$","$reduce","left","arrayMethodIsStrict","CHROME_VERSION","IS_NODE","CHROME_BUG","FORCED","target","proto","forced","reduce","callbackfn","length","arguments","this","undefined","cov_ctgzdzb6m","actualCoverage","defaultActiveClass","s","heightAnimation","element","activeClass","b","resized","f","style","height","scrollHeight","classList","toggle","contains","removeHeightOfSiblings","elements","activeElementIndex","filter","item","index","forEach","filteredItem","remove","plural","number","word","withNumber","cov_1quwmciphk","toLocaleLowerCase","firstChar","resetVuelidateErrors","validation","cov_1ppw6llr9b","setTimeout","$reset","debounce","fn","delay","cov_2irbpckthq","immediate","timeout","args","clearTimeout","_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_createTextVNode","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_createBlock","isOpen","onClose","close","classes","content","_withCtx","_createVNode","searchQuery","placeholder","theme","loadingLots","selectedLots","lots","_Fragment","_renderList","stages","stage","onClick","onLotRow","groupedSelectAllCheckboxList","groupedLotCheckboxList","selected","selectAll","_withModifiers","title","rotated","activeStagesIndex","opened","ref_for","ref","el","tableRefs","groupedLots","lot","idx","_$setup$groupedLotChe","_$setup$groupedLotChe2","_$setup$groupedLots$i","_$setup$groupedLotChe3","isDocumentExist","documents","lotId","selectLot","lotTitle","stageTitle","formatPrice","lotSize","lotPrice","send","_","required","leadIds","Array","default","fileData","estateId","toast","useToast","store","useStore","computed","grouped","push","stageId","_id","previousValue","currentValue","concat","map","id","onMounted","getStages","watch","debounceSearch","unselectCheckboxes","dispatch","then","res","data","getLots","params","query","status","LotStatus","AVAILABLE","stageIndex","section","finally","isSelected","selectedLotIndex","findIndex","lotsId","includes","action","payload","lotIds","success","catch","error","lotDocuments","ETag","CheckboxInput","InputSearch","Modal","StageInterface","LotBasicInfoInterface","src","_imports_0","_imports_1","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","onBack","_withDirectives","_vShow","folderPath","activeFolder","docs","folders","files","placement","control","dropdown","showCreateFolder","for","uploadFile","accept","documentTypes","loading","require","folder","toFolder","Prefix","getFolderName","showDeleteFileModal","file","openFile","previewIcon","Link","Key","getFileName","formatDate","LastModified","downloadFile","shareFile","isOpenRemoveDocumentsModal","onConfirm","deleteFile","getRemoveDocumentType","description","fileForDelete","onUpdate","addFolder","showImg","showShareModal","fileToShare","router","currentRoute","meta","access","UserRoles","SUPER_ADMIN","state","user","selectedEstateId","endsWith","fileInput","validDocumentsTypes","join","getFolder","split","slice","foldername","pathParts","splice","path","filePath","e","isValidDocumentType","isValidFileSize","FormData","append","sort","a","localeCompare","numeric","sensitivity","caseFirst","isImage","window","open","filename","fileName","url","modifiedDate","DropDown","RemoveDocumentsModal","CreateFolderModal","ImagePreviewModal","ShareLotsModal","showClose","onSubmit","v$","$error","form","onBlur","$touch","_vModelText","trim","create","reactive","rules","useVuelidate","clear","$invalid","module","exports","process","classof","_Teleport","to","_Transition","name","transitionName","appear","showContainer","maxWidth","_renderSlot","$slots","document","body","add","keyPress","event","code","addEventListener","onBeforeUnmount","removeEventListener","fails","METHOD_NAME","argument","method","call","cov_291z4ylohk","aCallable","toObject","IndexedObject","lengthOfArrayLike","$TypeError","TypeError","createMethod","IS_RIGHT","that","argumentsLength","memo","O","self","i","right"],"mappings":"sIAEA,MAAMA,EAAa,CAAEC,MAAO,eACtBC,EAAa,CAAC,QAAS,UAAW,YAClCC,EAAa,CACjBC,IAAK,EACLH,MAAO,SAGH,SAAUI,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQC,yBAAcC,gCAAoB,MAAOb,EAAY,CAC3Dc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3B,OAAO,SAAUC,EAAMjW,EAAYkW,EAAiBC,GAClDV,EAAUzV,GACV,IAAIoW,EAAIV,EAASO,GACbI,EAAOV,EAAcS,GACrBnW,EAAS2V,EAAkBQ,GAC3B1U,EAAQsU,EAAW/V,EAAS,EAAI,EAChCqW,EAAIN,GAAY,EAAI,EACxB,GAAIE,EAAkB,EAAG,MAAO,EAAM,CACpC,GAAIxU,KAAS2U,EAAM,CACjBF,EAAOE,EAAK3U,GACZA,GAAS4U,EACT,MAGF,GADA5U,GAAS4U,EACLN,EAAWtU,EAAQ,EAAIzB,GAAUyB,EACnC,MAAMmU,EAAW,+CAGrB,KAAMG,EAAWtU,GAAS,EAAIzB,EAASyB,EAAOA,GAAS4U,EAAO5U,KAAS2U,IACrEF,EAAOnW,EAAWmW,EAAME,EAAK3U,GAAQA,EAAO0U,IAE9C,OAAOD,IAIXvC,EAAOC,QAAU,CAGfvU,KAAMyW,GAAa,GAGnBQ,MAAOR,GAAa,K","file":"js/DocumentsView.cf1dbb7d.js","sourcesContent":["import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"checkbox-wr\" }\nconst _hoisted_2 = [\"value\", \"checked\", \"disabled\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"label\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", {\n class: _normalizeClass({ disabled: $props.disabled })\n }, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n value: $props.modelValue,\n checked: $props.modelValue,\n onChange: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('update:modelValue', !$props.modelValue))),\n disabled: $props.disabled\n }, null, 40, _hoisted_2),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"box\", { partial: $props.checkedPartial }])\n }, null, 2),\n ($props.label)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_3, _toDisplayString($props.label), 1))\n : _createCommentVNode(\"\", true)\n ], 2)\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\n\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CheckboxInput',\n props: {\n modelValue: Boolean,\n label: String,\n disabled: Boolean,\n checkedPartial: Boolean,\n},\n emits: [\"update:modelValue\"],\n setup(__props, { expose: __expose, emit: emits }) {\n __expose();\n\nconst props = __props;\n\n\n\n\nconst __returned__ = { props, emits }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./CheckboxInput.vue?vue&type=template&id=1d6c41a5&ts=true&lang=pug\"\nimport script from \"./CheckboxInput.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CheckboxInput.vue?vue&type=script&lang=ts&setup=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/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 $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","const defaultActiveClass = \"opened\";\n\nexport function heightAnimation(element: HTMLElement, activeClass= defaultActiveClass, resized=false) {\n element.style.height = element.scrollHeight + \"px\";\n if (resized) {\n return\n }\n element.classList.toggle(activeClass);\n element.style.height = element.classList.contains(activeClass)\n ? element.scrollHeight + \"px\"\n : \"0\";\n}\nexport function removeHeightOfSiblings(elements: HTMLElement[], activeElementIndex: number, activeClass = defaultActiveClass) {\n elements\n .filter((item, index) => index !== activeElementIndex)\n .forEach((filteredItem) => {\n filteredItem.classList.remove(activeClass);\n filteredItem.style.height = \"0\";\n })\n}\n\n// use to define and animate hidden elements\n// styles example:\n// .html-element {\n// height: 0;\n// transition: height 0.3s;\n// overflow: hidden;\n// }\n// .html-element.opened {\n// height: auto;\n// }\n","const plural = (number: number, word: string, withNumber = true): string => {\n if (word.toLocaleLowerCase() === \"this\") {\n const firstChar = word[0];\n return number > 1 ? `${firstChar}hese` : `${firstChar}his`;\n }\n if (!number) {\n return `0 ${word}s`;\n } else return `${withNumber ? number : \"\"} ${word}${number < 2 ? \"\" : \"s\"}`;\n};\n\nexport default plural;\n","import { Validation } from \"@vuelidate/core\";\nimport { Ref } from \"vue\";\n\nexport function resetVuelidateErrors(validation: Ref): void {\n setTimeout(() => {\n validation.value.$reset();\n });\n}\n","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./ShareLotsModal.vue?vue&type=style&index=0&id=2177a84a&lang=scss&scoped=true\"","export const debounce = (fn: any, delay = 400, immediate = false) => {\n let timeout: number | undefined;\n return (...args: any[]) => {\n if (immediate && !timeout) fn(...args);\n clearTimeout(timeout);\n\n timeout = setTimeout(() => {\n fn(...args);\n }, delay);\n };\n};\n","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2177a84a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"modal-wrapper\" }\nconst _hoisted_2 = { class: \"header\" }\nconst _hoisted_3 = { class: \"modal-title\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"stages scroll-wrapper\"\n}\nconst _hoisted_5 = { class: \"stages-header\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"items-count\"\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"items-count\"\n}\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = { class: \"stage-row\" }\nconst _hoisted_10 = { class: \"stage-title-wr\" }\nconst _hoisted_11 = { class: \"stage-title\" }\nconst _hoisted_12 = { class: \"table-scroll\" }\nconst _hoisted_13 = { class: \"table-default\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"thead\", null, [\n /*#__PURE__*/_createElementVNode(\"tr\", null, [\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"checkbox checkbox--wide\" }),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"lot-number\" }, \"Lot No.\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"stage-number\" }, \"Stage\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"size\" }, [\n /*#__PURE__*/_createTextVNode(\"Size, m\"),\n /*#__PURE__*/_createElementVNode(\"sup\", null, \"2\")\n ]),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"price\" }, \"Price\")\n ])\n], -1))\nconst _hoisted_15 = { class: \"checkbox\" }\nconst _hoisted_16 = { class: \"lot-number\" }\nconst _hoisted_17 = { class: \"stage-number\" }\nconst _hoisted_18 = { class: \"size\" }\nconst _hoisted_19 = { class: \"price\" }\nconst _hoisted_20 = {\n key: 1,\n class: \"spinner\"\n}\nconst _hoisted_21 = { class: \"controls\" }\nconst _hoisted_22 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock($setup[\"Modal\"], {\n isOpen: $props.isOpen,\n onClose: $setup.close,\n classes: \"share-lots-modal height-limited\"\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString($setup.props.type === \"leads\"? \"Choose the lot\"\n: \"Choose lots to attach this file\"), 1),\n _createVNode($setup[\"InputSearch\"], {\n class: \"search\",\n modelValue: $setup.searchQuery,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (($setup.searchQuery) = $event)),\n placeholder: \"Search\",\n theme: \"filter\"\n }, null, 8, [\"modelValue\"])\n ]),\n (!$setup.loadingLots)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n ($setup.selectedLots.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, _toDisplayString($setup.plural($setup.selectedLots.length, \"lot\")) + \" selected\", 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_7, _toDisplayString($setup.plural($setup.lots.length, \"lot\")), 1))\n ]),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.stages, (stage, index) => {\n return (_openBlock(), _createElementBlock(\"div\", { key: index }, [\n _createElementVNode(\"div\", {\n class: \"stage-row-wrapper\",\n onClick: ($event: any) => ($setup.onLotRow(index))\n }, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode($setup[\"CheckboxInput\"], {\n disabled: $setup.props.type === 'leads',\n class: _normalizeClass({ 'hide': $setup.props.type === 'leads' }),\n checkedPartial: $setup.groupedSelectAllCheckboxList[index] && $setup.groupedSelectAllCheckboxList[index].selectedLots > 0 && $setup.groupedSelectAllCheckboxList[index].selectedLots !== $setup.groupedLotCheckboxList[index].length,\n modelValue: $setup.groupedSelectAllCheckboxList[index] ? $setup.groupedSelectAllCheckboxList[index].selected : false,\n \"onUpdate:modelValue\": ($event: any) => ($setup.selectAll($event, index)),\n onClick: _cache[1] || (_cache[1] = _withModifiers(() => {}, [\"stop\"]))\n }, null, 8, [\"disabled\", \"class\", \"checkedPartial\", \"modelValue\", \"onUpdate:modelValue\"]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, \"Stage \" + _toDisplayString(stage.title), 1),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"chevron\", { rotated: !$setup.activeStagesIndex[index] }])\n }, null, 2)\n ])\n ])\n ], 8, _hoisted_8),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"wrapper-table\", { opened: $setup.activeStagesIndex[index] }]),\n ref_for: true,\n ref: (el) => { if (el) { $setup.tableRefs[index] = el; } }\n }, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"table\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.groupedLots[index], (lot, idx) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: idx,\n class: _normalizeClass({ disabled: $setup.isDocumentExist($setup.groupedLotCheckboxList && $setup.groupedLotCheckboxList[index] && $setup.groupedLotCheckboxList[index][idx] ? $setup.groupedLotCheckboxList[index][idx]?.documents : false) })\n }, [\n _createElementVNode(\"td\", _hoisted_15, [\n _createVNode($setup[\"CheckboxInput\"], {\n disabled: $setup.isDocumentExist($setup.groupedLotCheckboxList && $setup.groupedLotCheckboxList[index] && $setup.groupedLotCheckboxList[index][idx] ? $setup.groupedLotCheckboxList[index][idx]?.documents : false) || ($setup.props.type === 'leads' && $setup.selectedLots.length === 1 && $setup.groupedLots[index][idx]?.lotId !== $setup.selectedLots[0]),\n onClick: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"stop\"])),\n modelValue: $setup.groupedLotCheckboxList && $setup.groupedLotCheckboxList[index] && $setup.groupedLotCheckboxList[index][idx] ? $setup.groupedLotCheckboxList[index][idx]?.selected : false,\n \"onUpdate:modelValue\": ($event: any) => ($setup.selectLot($event, index, lot.lotId))\n }, null, 8, [\"disabled\", \"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _createElementVNode(\"td\", _hoisted_16, _toDisplayString(lot.lotTitle), 1),\n _createElementVNode(\"td\", _hoisted_17, \"Stage \" + _toDisplayString(lot.stageTitle), 1),\n _createElementVNode(\"td\", _hoisted_18, _toDisplayString($setup.formatPrice(lot.lotSize, false)), 1),\n _createElementVNode(\"td\", _hoisted_19, _toDisplayString($setup.formatPrice(lot.lotPrice)), 1)\n ], 2))\n }), 128))\n ])\n ])\n ])\n ], 2)\n ]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_20)),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"button\", {\n class: \"button default\",\n onClick: $setup.close\n }, \"Cancel\"),\n _createElementVNode(\"button\", {\n class: \"button default primary send\",\n onClick: $setup.send,\n disabled: !$setup.selectedLots.length\n }, _toDisplayString($setup.props.type === \"leads\" ? \"Send\" : \"Done\"), 9, _hoisted_22)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"isOpen\"]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport CheckboxInput from \"@/components/ui/input/CheckboxInput.vue\";\nimport InputSearch from \"@/components/ui/input/InputSearch.vue\";\nimport Modal from \"@/components/ui/Modal.vue\";\nimport { useStore } from \"vuex\";\nimport { computed, onMounted, ref, watch } from \"vue\";\nimport { debounce } from \"@/helpers/debounce\";\nimport plural from \"@/features/plural\";\nimport { heightAnimation } from \"@/helpers/heightAnimation\";\nimport { StageInterface } from \"@/types/StageInterface\";\nimport { LotStatus } from \"@/enums/LotStatus\";\nimport { LotBasicInfoInterface } from \"@/types/LotBasicInfoInterface\";\nimport { formatPrice } from \"@/helpers/transformation/price\";\nimport { useToast } from \"vue-toastification\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ShareLotsModal',\n props: {\n isOpen: {\n type: Boolean,\n required: true,\n },\n leadIds: {\n type: Array,\n default: () => {\n return [];\n },\n },\n fileData: {\n type: Object,\n default: () => {\n return {};\n },\n },\n type: {\n type: String,\n default: \"leads\",\n },\n estateId: {\n type: String,\n },\n},\n emits: [\"close\"],\n setup(__props, { expose: __expose, emit: emits }) {\n __expose();\n\nconst props = __props;\n\nconst toast = useToast();\nconst store = useStore();\n\n\nconst loadingLots = ref(true);\nconst searchQuery = ref(\"\");\n\nconst stages = ref([]);\nconst lots = ref([]);\nconst activeStagesIndex = ref([]);\nconst tableRefs = ref([]);\nconst groupedLots = computed(() => {\n const grouped: Array = [];\n stages.value.forEach((stage: StageInterface) => {\n grouped.push(\n lots.value.filter(\n (lot: LotBasicInfoInterface) => lot.stageId === stage._id\n )\n );\n });\n return grouped;\n});\nconst groupedLotCheckboxList = ref([]);\nconst groupedSelectAllCheckboxList = ref([]);\nconst selectedLots = computed(() => {\n return groupedLotCheckboxList.value.reduce(\n (previousValue: any[], currentValue: any[]) => {\n return previousValue.concat(\n currentValue.filter((lot: any) => lot.selected).map((item) => item.id)\n );\n },\n []\n );\n});\n\nonMounted(() => {\n getStages();\n});\n\nwatch(\n () => searchQuery.value,\n () => {\n loadingLots.value = true;\n debounceSearch();\n unselectCheckboxes();\n }\n);\n\nconst getStages = () => {\n store\n .dispatch(\"stage/getStages\", {\n estateId: props.estateId,\n })\n .then((res) => {\n stages.value = res.data;\n getLots();\n return res.data;\n });\n};\n\nconst debounceSearch = debounce(getStages);\n\nconst getLots = () => {\n groupedLotCheckboxList.value = [];\n groupedSelectAllCheckboxList.value = [];\n store\n .dispatch(\"lot/getEstateLots\", {\n estateId: props.estateId,\n params: {\n query: searchQuery.value,\n status: props.type === \"leads\" ? LotStatus.AVAILABLE : null,\n },\n })\n .then((res) => {\n lots.value = res.data;\n groupedLots.value.forEach((stage: LotBasicInfoInterface[], index) => {\n groupedLotCheckboxList.value.push(\n stage.map((lot: LotBasicInfoInterface) => {\n return {\n id: lot.lotId,\n selected: false,\n documents: lot.documents,\n };\n })\n );\n groupedSelectAllCheckboxList.value.push({\n stageIndex: index,\n selected: false,\n selectedLots: 0,\n });\n activeStagesIndex.value.push(true);\n tableRefs.value.forEach((section) => {\n heightAnimation(section, \"opened\", true);\n });\n });\n }).finally(() => {\n loadingLots.value = false;\n });\n};\nconst selectLot = (isSelected: boolean, stageIndex: number, lotId: string) => {\n const selectedLotIndex = groupedLotCheckboxList.value[stageIndex].findIndex(el => el.id === lotId);\n groupedLotCheckboxList.value[stageIndex][selectedLotIndex].selected = isSelected;\n groupedSelectAllCheckboxList.value[stageIndex].selectedLots += isSelected\n ? 1\n : -1;\n groupedSelectAllCheckboxList.value[stageIndex].selected =\n groupedSelectAllCheckboxList.value[stageIndex].selectedLots > 0;\n};\nconst selectAll = (isSelected: boolean, stageIndex: number) => {\n let lotsId = [] as unknown[];\n if (groupedLotCheckboxList.value[stageIndex] && groupedLotCheckboxList.value[stageIndex].length) {\n lotsId = groupedLotCheckboxList.value[stageIndex]\n .map((item: any) => item)\n .map((lot: any) => {\n if (!isDocumentExist(lot.documents)) {\n return lot.id;\n }\n return undefined;\n })\n .filter((id: string | undefined) => id);\n }\n\n if (groupedSelectAllCheckboxList.value[stageIndex]) {\n groupedSelectAllCheckboxList.value[stageIndex].selected = lotsId.length\n ? isSelected\n : false;\n groupedSelectAllCheckboxList.value[stageIndex].selectedLots = isSelected\n ? lotsId.length\n : 0;\n }\n\n if (groupedLotCheckboxList.value[stageIndex]) {\n groupedLotCheckboxList.value[stageIndex].forEach((item) => {\n if (lotsId.includes(item.id)) {\n item.selected = isSelected;\n }\n });\n }\n};\nfunction onLotRow(index: number) {\n activeStagesIndex.value[index] = !activeStagesIndex.value[index];\n const section = tableRefs.value[index];\n heightAnimation(section);\n}\nconst send = () => {\n if (!selectedLots.value.length) {\n return;\n }\n const action =\n props.type === \"leads\" ? \"contact/shareLeadsLinks\" : \"estate/shareDocument\";\n const payload =\n props.type === \"leads\"\n ? {\n leadIds: props.leadIds,\n lotIds: selectedLots.value,\n }\n : {\n fileData: props.fileData,\n lotIds: selectedLots.value,\n };\n store\n .dispatch(action, payload)\n .then(() => {\n toast.success(\n props.type === \"leads\"\n ? \"Emails were successfully sent\"\n : \"File was successfully shared\"\n );\n })\n .catch(() => {\n toast.error(\"Something went wrong\");\n })\n .finally(() => {\n close();\n });\n};\nconst close = () => {\n groupedLotCheckboxList.value = [];\n groupedSelectAllCheckboxList.value = [];\n searchQuery.value = \"\";\n getStages();\n emits(\"close\");\n};\nfunction unselectCheckboxes() {\n stages.value.forEach((stage: StageInterface, index: number) => {\n selectAll(false, index);\n });\n}\nconst isDocumentExist = (lotDocuments: any) => {\n if (lotDocuments) {\n return lotDocuments\n .map((item: any) => item.ETag)\n .includes(props.fileData.ETag);\n }\n return false;\n};\n\nconst __returned__ = { toast, store, emits, props, loadingLots, searchQuery, stages, lots, activeStagesIndex, tableRefs, groupedLots, groupedLotCheckboxList, groupedSelectAllCheckboxList, selectedLots, getStages, debounceSearch, getLots, selectLot, selectAll, onLotRow, send, close, unselectCheckboxes, isDocumentExist, CheckboxInput, InputSearch, Modal, get useStore() { return useStore }, computed, onMounted, ref, watch, get debounce() { return debounce }, get plural() { return plural }, get heightAnimation() { return heightAnimation }, get StageInterface() { return StageInterface }, get LotStatus() { return LotStatus }, get LotBasicInfoInterface() { return LotBasicInfoInterface }, get formatPrice() { return formatPrice }, get useToast() { return useToast } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./ShareLotsModal.vue?vue&type=template&id=2177a84a&scoped=true&ts=true&lang=pug\"\nimport script from \"./ShareLotsModal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ShareLotsModal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ShareLotsModal.vue?vue&type=style&index=0&id=2177a84a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2177a84a\"]])\n\nexport default __exports__","import { createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, toDisplayString as _toDisplayString, withModifiers as _withModifiers, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/icons/icon-arrow-back.svg'\nimport _imports_1 from '@/assets/icons/icon-plus-white.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-c1530dda\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"documents-view\" }\nconst _hoisted_2 = { class: \"documents-header\" }\nconst _hoisted_3 = { class: \"documents-header--container\" }\nconst _hoisted_4 = { class: \"back\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", { src: _imports_0 }, null, -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"back-title\" }, \"Back\", -1))\nconst _hoisted_7 = [\n _hoisted_5,\n _hoisted_6\n]\nconst _hoisted_8 = { class: \"documents-title\" }\nconst _hoisted_9 = { class: \"subtitle-main subtitle-main--documents\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"button\", { class: \"button primary button-medium button-add\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"button-add--icon\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", { src: _imports_1 })\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"button-add--text\" }, \"Add\")\n], -1))\nconst _hoisted_11 = { class: \"menu-option\" }\nconst _hoisted_12 = [\"accept\"]\nconst _hoisted_13 = {\n key: 0,\n class: \"spinner\"\n}\nconst _hoisted_14 = {\n key: 1,\n class: \"empty-block--wrapper\"\n}\nconst _hoisted_15 = [\"src\"]\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \"You don't have any documents yet\", -1))\nconst _hoisted_17 = {\n key: 2,\n class: \"table-wrapper\"\n}\nconst _hoisted_18 = { class: \"table-default table--document\" }\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"thead\", null, [\n /*#__PURE__*/_createElementVNode(\"tr\", null, [\n /*#__PURE__*/_createElementVNode(\"th\", null, \"Name\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"th--last-modified\" }, \"Created\"),\n /*#__PURE__*/_createElementVNode(\"th\", { class: \"th--menu\" })\n ])\n], -1))\nconst _hoisted_20 = [\"onClick\"]\nconst _hoisted_21 = { class: \"documents-wrapper-folder\" }\nconst _hoisted_22 = [\"src\"]\nconst _hoisted_23 = { class: \"documents-wrapper-folder__label\" }\nconst _hoisted_24 = { class: \"text-bordered\" }\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", { class: \"bold\" }, \"-\", -1))\nconst _hoisted_26 = { class: \"menu-wrapper\" }\nconst _hoisted_27 = { class: \"wrapper-dots\" }\nconst _hoisted_28 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"dots\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"actions\" })\n], -1))\nconst _hoisted_29 = { class: \"menu-option\" }\nconst _hoisted_30 = [\"onClick\"]\nconst _hoisted_31 = [\"onClick\"]\nconst _hoisted_32 = { class: \"documents-wrapper-folder\" }\nconst _hoisted_33 = [\"src\"]\nconst _hoisted_34 = { class: \"documents-wrapper-folder__label\" }\nconst _hoisted_35 = { class: \"text-bordered\" }\nconst _hoisted_36 = { class: \"bold\" }\nconst _hoisted_37 = { class: \"menu-wrapper\" }\nconst _hoisted_38 = { class: \"wrapper-dots\" }\nconst _hoisted_39 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"dots\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"actions\" })\n], -1))\nconst _hoisted_40 = { class: \"menu-option\" }\nconst _hoisted_41 = [\"onClick\"]\nconst _hoisted_42 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"menu-item delete\" }, \"Delete File\", -1))\nconst _hoisted_43 = [\n _hoisted_42\n]\nconst _hoisted_44 = [\"onClick\"]\nconst _hoisted_45 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"menu-item upload-file\" }, \"Download File\", -1))\nconst _hoisted_46 = [\n _hoisted_45\n]\nconst _hoisted_47 = [\"onClick\"]\nconst _hoisted_48 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"menu-item share\" }, \"Share File with lots\", -1))\nconst _hoisted_49 = [\n _hoisted_48\n]\nconst _hoisted_50 = { class: \"description--highlighted\" }\nconst _hoisted_51 = { class: \"description--highlighted\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", {\n class: \"wrapper-back\",\n onClick: $setup.onBack\n }, [\n _withDirectives(_createElementVNode(\"div\", _hoisted_4, _hoisted_7, 512), [\n [_vShow, $setup.folderPath]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString($setup.activeFolder || \"Documents\"), 1),\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(`${$setup.plural($setup.docs.folders.length, \"folder\")} ${$setup.plural($setup.docs.files.length, \"file\")}`), 1)\n ]),\n _createVNode($setup[\"DropDown\"], { placement: 'right bottom' }, {\n control: _withCtx(() => [\n _hoisted_10\n ]),\n dropdown: _withCtx(() => [\n _createElementVNode(\"ul\", _hoisted_11, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"div\", {\n class: \"menu-item add-folder\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => ($setup.showCreateFolder = true))\n }, \"Create Folder\")\n ]),\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"label\", {\n class: \"menu-item upload-file\",\n for: \"upload-file\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(() => {}, [\"stop\"]))\n }, \"Upload File\")\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"input\", {\n class: \"file-input\",\n id: \"upload-file\",\n type: \"file\",\n ref: \"fileInput\",\n onChange: _cache[2] || (_cache[2] = ($event: any) => ($setup.uploadFile($event))),\n accept: $setup.documentTypes\n }, null, 40, _hoisted_12),\n ($setup.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13))\n : ($setup.docs.folders.length + $setup.docs.files.length === 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"img\", {\n class: \"empty-block--icon\",\n src: require('@/assets/icons/documents-slim.svg')\n }, null, 8, _hoisted_15),\n _hoisted_16\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _createElementVNode(\"table\", _hoisted_18, [\n _hoisted_19,\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.docs.folders, (folder, idx) => {\n return (_openBlock(), _createElementBlock(\"tr\", { key: idx }, [\n _createElementVNode(\"td\", {\n class: \"column-folder-name bold cursor-pointer\",\n onClick: ($event: any) => ($setup.toFolder(folder.Prefix))\n }, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"img\", {\n class: \"folder-icon\",\n src: require(`@/assets/icons/icon-folder.svg`)\n }, null, 8, _hoisted_22)\n ]),\n _createElementVNode(\"span\", _hoisted_23, [\n _createElementVNode(\"span\", _hoisted_24, _toDisplayString($setup.getFolderName(folder.Prefix)), 1)\n ])\n ], 8, _hoisted_20),\n _hoisted_25,\n _createElementVNode(\"td\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, [\n _createVNode($setup[\"DropDown\"], { placement: 'right bottom' }, {\n control: _withCtx(() => [\n _hoisted_28\n ]),\n dropdown: _withCtx(() => [\n _createElementVNode(\"ul\", _hoisted_29, [\n _createElementVNode(\"li\", null, [\n _createElementVNode(\"div\", {\n class: \"menu-item delete\",\n onClick: ($event: any) => ($setup.showDeleteFileModal(folder.Prefix, idx))\n }, \"Delete Folder\", 8, _hoisted_30)\n ])\n ])\n ]),\n _: 2\n }, 1024)\n ])\n ])\n ]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.docs.files, (file, idx) => {\n return (_openBlock(), _createElementBlock(\"tr\", { key: idx }, [\n _createElementVNode(\"td\", {\n class: \"column-folderName bold cursor-pointer\",\n onClick: ($event: any) => ($setup.openFile(file))\n }, [\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"img\", {\n class: \"documents-image-preview\",\n src: $setup.previewIcon(file.Link, file?.Key)\n }, null, 8, _hoisted_33)\n ]),\n _createElementVNode(\"span\", _hoisted_34, [\n _createElementVNode(\"span\", _hoisted_35, _toDisplayString($setup.getFileName(file.Key)), 1)\n ])\n ], 8, _hoisted_31),\n _createElementVNode(\"td\", _hoisted_36, _toDisplayString($setup.formatDate(file.LastModified)), 1),\n _createElementVNode(\"td\", _hoisted_37, [\n _createElementVNode(\"div\", _hoisted_38, [\n _createVNode($setup[\"DropDown\"], {\n placement: idx < $setup.docs.files.length - 2 ? 'right bottom' : 'right top'\n }, {\n control: _withCtx(() => [\n _hoisted_39\n ]),\n dropdown: _withCtx(() => [\n _createElementVNode(\"ul\", _hoisted_40, [\n _createElementVNode(\"li\", {\n onClick: ($event: any) => ($setup.showDeleteFileModal(file.Key, idx))\n }, _hoisted_43, 8, _hoisted_41),\n _createElementVNode(\"li\", {\n onClick: ($event: any) => ($setup.downloadFile(file.Key, $setup.estateId))\n }, _hoisted_46, 8, _hoisted_44),\n _createElementVNode(\"li\", {\n onClick: ($event: any) => ($setup.shareFile(file))\n }, _hoisted_49, 8, _hoisted_47)\n ])\n ]),\n _: 2\n }, 1032, [\"placement\"])\n ])\n ])\n ]))\n }), 128))\n ])\n ]),\n _createVNode($setup[\"RemoveDocumentsModal\"], {\n isOpen: $setup.isOpenRemoveDocumentsModal,\n onClose: _cache[3] || (_cache[3] = ($event: any) => ($setup.isOpenRemoveDocumentsModal = false)),\n onConfirm: $setup.deleteFile\n }, {\n title: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_50, \"Confirm \" + _toDisplayString($setup.getRemoveDocumentType) + \" removal\", 1)\n ]),\n description: _withCtx(() => [\n _createTextVNode(\"Are you sure you want to delete \" + _toDisplayString($setup.getRemoveDocumentType) + \" '\", 1),\n _createElementVNode(\"span\", _hoisted_51, _toDisplayString($setup.getRemoveDocumentType === \"folder\" ? $setup.getFolderName($setup.fileForDelete.file) : $setup.getFileName($setup.fileForDelete.file)) + \"'\", 1),\n _createTextVNode(_toDisplayString($setup.getRemoveDocumentType === \"folder\" ? \" and all files in it?\" : \"?\"), 1)\n ]),\n _: 1\n }, 8, [\"isOpen\"])\n ])),\n _createVNode($setup[\"CreateFolderModal\"], {\n isOpen: $setup.showCreateFolder,\n folderPath: $setup.folderPath,\n estateId: $setup.estateId,\n onUpdate: _cache[4] || (_cache[4] = ($event: any) => ($setup.addFolder($event))),\n onClose: _cache[5] || (_cache[5] = ($event: any) => ($setup.showCreateFolder = false))\n }, null, 8, [\"isOpen\", \"folderPath\", \"estateId\"]),\n _createVNode($setup[\"ImagePreviewModal\"], {\n showImg: $setup.showImg,\n onClose: _cache[6] || (_cache[6] = ($event: any) => ($setup.showImg = undefined))\n }, null, 8, [\"showImg\"]),\n _createVNode($setup[\"ShareLotsModal\"], {\n isOpen: $setup.showShareModal,\n fileData: $setup.fileToShare,\n type: 'document',\n estateId: $setup.estateId,\n onClose: _cache[7] || (_cache[7] = ($event: any) => ($setup.showShareModal = false))\n }, null, 8, [\"isOpen\", \"fileData\", \"estateId\"])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport router from \"@/router\";\nimport { computed, onMounted, ref, watch } from \"vue\";\nimport { useStore } from \"vuex\";\nimport { formatDate } from \"@/helpers/date\";\nimport DropDown from \"@/components/ui/dropdown/DropDown.vue\";\nimport RemoveDocumentsModal from \"@/components/ui/modals/RemoveDocumentModal.vue\";\nimport CreateFolderModal from \"@/components/ui/modals/CreateFolderModal.vue\";\nimport ImagePreviewModal from \"@/components/ui/modals/ImagePeviewModal.vue\";\nimport ShareLotsModal from \"@/components/ui/modals/ShareLotsModal.vue\";\nimport { isImage, previewIcon } from \"@/helpers/documents\";\nimport { downloadFile } from \"@/helpers/downloadFile\";\nimport { UserRoles } from \"@/enums/UserRoles\";\nimport plural from \"@/features/plural\";\nimport {\n isValidFileSize,\n isValidDocumentType,\n validDocumentsTypes,\n} from \"@/helpers/fileUpload\";\nimport { useToast } from \"vue-toastification\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DocumentsView',\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst store = useStore();\nconst toast = useToast();\nconst estateId = computed(() => {\n return (router.currentRoute.value.meta.access as string[]).includes(\n UserRoles.SUPER_ADMIN\n )\n ? router.currentRoute.value.params.estateId\n : store.state.user.selectedEstateId;\n});\n\nconst folderPath = ref(\"\");\nconst docs = ref({\n folders: [],\n files: [],\n});\nconst fileForDelete = ref({ file: \"\", index: 0 });\nconst isOpenRemoveDocumentsModal = ref(false);\nconst getRemoveDocumentType = computed(() =>\n fileForDelete.value.file.endsWith(\"/\") ? \"folder\" : \"file\"\n);\nconst showCreateFolder = ref(false);\nconst fileInput = ref(null);\nconst documentTypes = validDocumentsTypes.join(\", \");\nconst showImg = ref(undefined);\n\nonMounted(() => {\n getFolder();\n});\nwatch(\n () => estateId.value,\n () => {\n getFolder();\n }\n);\n\nconst activeFolder = computed(() => {\n return folderPath.value\n .split(\"/\")\n .filter((element) => {\n return element !== \"\";\n })\n .slice(-1)[0];\n});\n\nconst loading = ref(false);\nconst getFolder = () => {\n if (estateId.value) {\n loading.value = true;\n store\n .dispatch(\"estate/getEstateFolder\", {\n estateId: estateId.value,\n foldername: folderPath.value,\n })\n .then((res) => {\n docs.value = res.data;\n })\n .finally(() => {\n loading.value = false;\n });\n }\n};\nfunction toFolder(folder: string) {\n folderPath.value = folder;\n getFolder();\n}\nfunction onBack() {\n const pathParts = folderPath.value.split(\"/\");\n pathParts.splice(pathParts.length - 2, 2);\n const path = pathParts.join(\"/\");\n folderPath.value = path + (path ? \"/\" : \"\");\n getFolder();\n}\nfunction getFolderName(folderPath: string) {\n const pathParts = folderPath.split(\"/\");\n return pathParts[pathParts.length - 2];\n}\nfunction getFileName(filePath: string) {\n const pathParts = filePath.split(\"/\");\n return pathParts[pathParts.length - 1];\n}\nconst uploadFile = (e: any) => {\n if (!e.target.files.length) {\n return;\n }\n const file = e.target.files[0];\n fileInput.value.value = \"\";\n if (!isValidDocumentType(file) || !isValidFileSize(file)) {\n return;\n }\n const data = new FormData();\n data.append(\"file\", file);\n if (folderPath.value) {\n data.append(\"foldername\", folderPath.value);\n }\n loading.value = true;\n store\n .dispatch(\"estate/uploadEstateFile\", {\n estateId: estateId.value,\n file: data\n })\n .then((res) => {\n toast.success(\"Your document was successfully uploaded\");\n docs.value.files.push(res.data);\n docs.value.files.sort((a: any, b: any) =>\n a.Key.localeCompare(b.Key, \"en-AU\", {\n numeric: true,\n sensitivity: \"base\",\n caseFirst: \"upper\",\n })\n );\n })\n .catch(() => toast.error(\"Something went wrong\"))\n .finally(() => (loading.value = false));\n};\nfunction addFolder(folder: any) {\n docs.value.folders.push(folder);\n docs.value.folders.sort((a: any, b: any) =>\n a.Prefix.localeCompare(b.Prefix, \"en-AU\", {\n numeric: true,\n sensitivity: \"base\",\n caseFirst: \"upper\",\n })\n );\n}\nfunction openFile(file: any) {\n if (isImage(file.Key)) {\n showImg.value = file.Link;\n } else {\n window.open(file.Link, \"_blank\");\n }\n}\nfunction showDeleteFileModal(file: string, index: number) {\n fileForDelete.value = { file, index };\n isOpenRemoveDocumentsModal.value = true;\n}\nconst deleteFile = () => {\n const data = {\n estateId: estateId.value,\n foldername:\n getRemoveDocumentType.value === \"folder\"\n ? fileForDelete.value.file\n : null,\n filename:\n getRemoveDocumentType.value === \"folder\"\n ? null\n : fileForDelete.value.file,\n };\n loading.value = true;\n store\n .dispatch(\"estate/deleteEstateFolder\", data)\n .then(() => {\n isOpenRemoveDocumentsModal.value = false;\n docs.value[`${getRemoveDocumentType.value}s`].splice(\n fileForDelete.value.index,\n 1\n );\n })\n .catch(() => toast.error(\"Something went wrong\"))\n .finally(() => (loading.value = false));\n};\nconst showShareModal = ref(false);\nconst fileToShare = ref({});\nconst shareFile = (file: any) => {\n showShareModal.value = true;\n fileToShare.value = {\n fileName: file.Key,\n url: file.Link,\n modifiedDate: file.LastModified,\n ETag: file.ETag,\n };\n}\n\nconst __returned__ = { store, toast, estateId, folderPath, docs, fileForDelete, isOpenRemoveDocumentsModal, getRemoveDocumentType, showCreateFolder, fileInput, documentTypes, showImg, activeFolder, loading, getFolder, toFolder, onBack, getFolderName, getFileName, uploadFile, addFolder, openFile, showDeleteFileModal, deleteFile, showShareModal, fileToShare, shareFile, get router() { return router }, computed, onMounted, ref, watch, get useStore() { return useStore }, get formatDate() { return formatDate }, DropDown, RemoveDocumentsModal, CreateFolderModal, ImagePreviewModal, ShareLotsModal, get isImage() { return isImage }, get previewIcon() { return previewIcon }, get downloadFile() { return downloadFile }, get UserRoles() { return UserRoles }, get plural() { return plural }, get isValidFileSize() { return isValidFileSize }, get isValidDocumentType() { return isValidDocumentType }, get validDocumentsTypes() { return validDocumentsTypes }, get useToast() { return useToast } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DocumentsView.vue?vue&type=template&id=c1530dda&scoped=true&ts=true&lang=pug\"\nimport script from \"./DocumentsView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DocumentsView.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DocumentsView.vue?vue&type=style&index=0&id=c1530dda&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c1530dda\"]])\n\nexport default __exports__","import { createElementVNode as _createElementVNode, vModelText as _vModelText, normalizeClass as _normalizeClass, withDirectives as _withDirectives, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-55bd4879\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"modal-wrapper\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal-title\" }, \"Create Folder\", -1))\nconst _hoisted_3 = { class: \"input-row\" }\nconst _hoisted_4 = { class: \"input-wr input-price-wr\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Folder Name\", -1))\nconst _hoisted_6 = [\"disabled\"]\nconst _hoisted_7 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock($setup[\"Modal\"], {\n isOpen: $props.isOpen,\n showClose: false,\n onClose: $setup.close\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"form\", {\n class: \"default-form\",\n onSubmit: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _withDirectives(_createElementVNode(\"input\", {\n class: _normalizeClass([\"input\", { error: $setup.v$.foldername.$error }]),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (($setup.form.foldername) = $event)),\n type: \"text\",\n placeholder: \"Folder Name\",\n onBlur: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => ($setup.v$.foldername.$touch && $setup.v$.foldername.$touch(...args)))\n }, null, 34), [\n [\n _vModelText,\n $setup.form.foldername,\n void 0,\n { trim: true }\n ]\n ])\n ])\n ])\n ], 32),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"controls\", { 'disabled-block ': $setup.disabled }])\n }, [\n _createElementVNode(\"button\", {\n class: \"button default cancel\",\n onClick: $setup.close,\n disabled: $setup.disabled\n }, \"Cancel\", 8, _hoisted_6),\n _createElementVNode(\"button\", {\n class: \"button default primary save\",\n onClick: $setup.create,\n disabled: $setup.disabled\n }, \"Create\", 8, _hoisted_7)\n ], 2)\n ])\n ]),\n _: 1\n }, 8, [\"isOpen\"]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { reactive, ref } from \"vue\";\nimport Modal from \"@/components/ui/Modal.vue\";\nimport useVuelidate from \"@vuelidate/core\";\nimport { required } from \"@vuelidate/validators\";\nimport { useStore } from \"vuex\";\nimport { resetVuelidateErrors } from \"@/helpers/vuelidate\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CreateFolderModal',\n props: {\n isOpen: {\n type: Boolean,\n required: true,\n },\n estateId: {\n type: String,\n required: true,\n },\n folderPath: {\n type: String,\n required: true,\n },\n},\n emits: [\"update\", \"close\"],\n setup(__props, { expose: __expose, emit: emits }) {\n __expose();\n\nconst props = __props;\n\nconst store = useStore();\n\n\nconst form = reactive({\n foldername: \"\",\n});\nconst rules = {\n foldername: { required },\n};\nconst v$ = useVuelidate(rules, form);\n\nfunction close() {\n emits(\"close\");\n clear();\n}\n\nconst disabled = ref(false);\nconst create = () => {\n v$.value.$touch();\n if (v$.value.$invalid) {\n return;\n }\n disabled.value = true;\n store\n .dispatch(\"estate/createEstateFolder\", {\n estateId: props.estateId,\n foldername: props.folderPath + form.foldername + \"/\",\n })\n .then((res) => {\n clear();\n emits(\"update\", res.data);\n emits(\"close\");\n })\n .finally(() => {\n disabled.value = false;\n });\n};\n\nfunction clear() {\n form.foldername = \"\";\n resetVuelidateErrors(v$);\n}\n\nconst __returned__ = { store, emits, props, form, rules, v$, close, disabled, create, clear, reactive, ref, Modal, get useVuelidate() { return useVuelidate }, get required() { return required }, get useStore() { return useStore }, get resetVuelidateErrors() { return resetVuelidateErrors } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./CreateFolderModal.vue?vue&type=template&id=55bd4879&scoped=true&ts=true&lang=pug\"\nimport script from \"./CreateFolderModal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CreateFolderModal.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./CreateFolderModal.vue?vue&type=style&index=0&id=55bd4879&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-55bd4879\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Modal.vue?vue&type=style&index=0&id=1e795cc8&lang=scss&scoped=true\"","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, Teleport as _Teleport, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1e795cc8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"modal--wrapper\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createVNode(_Transition, {\n name: $props.transitionName,\n appear: \"\"\n }, {\n default: _withCtx(() => [\n ($props.isOpen)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"modal\", $props.classes])\n }, [\n _createElementVNode(\"div\", {\n class: \"modal--backdrop\",\n onClick: $setup.close\n }),\n ($props.showContainer)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"modal--container scroll-wrapper\", { 'max-width': $setup.props.maxWidth }])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n ($props.showClose)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"modal--close\",\n onClick: $setup.close\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"content\", {}, undefined, true)\n ])\n ], 2))\n : _renderSlot(_ctx.$slots, \"content\", { key: 1 }, undefined, true)\n ], 2))\n : _createCommentVNode(\"\", true)\n ]),\n _: 3\n }, 8, [\"name\"])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { onBeforeUnmount, watch } from \"vue\";\n\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Modal',\n props: {\n isOpen: { type: Boolean, default: false },\n showClose: { type: Boolean, default: true },\n showContainer: { type: Boolean, default: true },\n classes: { type: [String, Array], default: \"\" },\n transitionName: { type: String, default: \"fade\" },\n maxWidth: { type: Boolean, default: false },\n },\n emits: [\"close\", \"submit\"],\n setup(__props, { expose: __expose, emit }) {\n __expose();\n\nconst props = __props;\n\n \n \n\n watch(\n () => props.isOpen,\n () => {\n if (props.isOpen) {\n document.body.classList.add(\"no-scroll\");\n } else {\n document.body.classList.remove(\"no-scroll\");\n }\n },\n { immediate: true }\n );\n\n function close() {\n emit(\"close\");\n }\n\n const keyPress = (event: KeyboardEvent) => {\n if (event && event.code === \"Escape\") {\n close();\n }\n };\n document.addEventListener(\"keydown\", keyPress);\n\n onBeforeUnmount(() => {\n document.removeEventListener(\"keydown\", keyPress);\n document.body.classList.remove(\"no-scroll\");\n });\n\nconst __returned__ = { emit, props, close, keyPress, onBeforeUnmount, watch }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./Modal.vue?vue&type=template&id=1e795cc8&scoped=true&ts=true&lang=pug\"\nimport script from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=1e795cc8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1e795cc8\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DocumentsView.vue?vue&type=style&index=0&id=c1530dda&lang=scss&scoped=true\"","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./CreateFolderModal.vue?vue&type=style&index=0&id=55bd4879&lang=scss&scoped=true\"","export enum LotStatus {\n NOT_RELEASED = \"Not Released\",\n AVAILABLE = \"Available\",\n EOI = \"EOI\",\n CONTRACT_EXECUTED = \"Contract Executed\",\n UNCONDITIONAL = \"Unconditional\",\n SETTLED = \"Settled\",\n OPTION = \"Option\",\n OFFLINE = \"Offline\",\n HOLD = \"Hold\",\n PRE_CONTRACT = \"Pre-Contract\",\n SOLD = \"Sold\",\n UNDER_CONTRACT = \"Under Contract\"\n}\n","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n"],"sourceRoot":""}