{"version":3,"sources":["webpack:///./src/enums/ReportsEstateSelected.ts","webpack:///./src/components/ui/modals/ConfirmDeleteModal.vue?34c2","webpack:///./src/components/ui/modals/ConfirmDeleteModal.vue","webpack:///./src/components/ui/modals/ConfirmDeleteModal.vue?25ca","webpack:///./src/features/plural.ts","webpack:///./src/components/ui/modals/ConfirmDeleteModal.vue?8f89","webpack:///./src/views/admin/concierge/AdminPackages.vue?a9f2","webpack:///./src/views/admin/concierge/AdminPackages.vue","webpack:///./src/views/admin/concierge/AdminPackages.vue?b359","webpack:///./src/helpers/builder/calculateBuildPriceOrPackagePriceTotal.ts","webpack:///./src/components/concierge/PackageRow.vue?4257","webpack:///./src/views/admin/concierge/AdminPackages.vue?7644","webpack:///./src/components/concierge/PackageRow.vue?2826","webpack:///./src/components/concierge/PackageRow.vue","webpack:///./src/components/concierge/PackageRow.vue?0cf5"],"names":["ReportsEstateSelected","cov_igvh5bx61","s","f","b","_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","_createElementVNode","class","_hoisted_2","_hoisted_3","key","render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createBlock","isOpen","onClose","close","onConfirm","confirm","title","_withCtx","description","_toDisplayString","text","deleteItem","isLeadsPage","_createElementBlock","_createCommentVNode","_createTextVNode","_","_defineComponent","__name","props","type","Boolean","required","Number","String","customText","emits","setup","__props","expose","__expose","emit","computed","router","currentRoute","value","name","__returned__","LotAssignmentModal","Object","defineProperty","enumerable","__exports__","plural","number","word","withNumber","cov_1quwmciphk","toLocaleLowerCase","firstChar","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","colspan","_hoisted_14","_Fragment","loading","packages","length","_createVNode","control","estateSelected","dropdown","_renderList","optionsEstate","optionSelected","id","onClick","$event","onSelectEstate","_normalizeClass","toCreatePackage","tableHeaders","header","savedPackage","_id","isDetailsPackageOpen","getEstateTitle","getLandSize","getBuildSize","formatPrice","getBedroomCount","getBathroomCount","getLoungeRoomCount","getLotClass","getLotStatus","onDeletePackage","onClickPackage","onCopyLink","onCopyLinkPackage","openDetailsPackage","isDisplayDetailsEffect","isConfirmDeletePackageModalOpen","onConfirmDeletePackage","store","useStore","ref","estates","lotDetails","houseDetails","toast","useToast","ALL_PROJECTS","selectedEstateId","packageSelectedDeleteId","onMounted","getPackages","getEstates","watch","debounceSearch","async","res","dispatch","estateId","data","fetchLotDetails","fetchHouseDetails","error","lotId","selections","lot","status","size","position","POSITION","TOP_LEFT","houseId","house","toString","area","bedroom","bathroomQuantity","bathroom","quantity","loungeRoomQuantity","loungeRoom","map","estate","estateTitle","find","_lotDetails$value$lot","_lotDetails$value$lot2","statusClass","getLotStatusClass","_lotDetails$value$lot3","_houseDetails$value$h","_houseDetails$value$h2","_houseDetails$value$h3","_houseDetails$value$h4","debounce","push","params","packageId","success","link","window","location","origin","copyToClipboard","setTimeout","EstateInterface","DropDown","PackageRow","ConfirmDeleteModalVue","BuilderQuote","calculateBuildPriceOrPackagePriceTotal","homePrice","facadePrice","siteCosts","landPrice","cov_10umnzvi8v","homePriceNum","isNaN","facadePriceNum","siteCostsNum","additionalCostsNum","undefined","totalPrice","_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","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","builder","facade","price","src","require","active","default","Function","getSiteCosts","response","builderId","siteCost"],"mappings":"grDAAO,IAAKA,E,iEAEXC,IAAAC,EAAA,KAFD,SAAYF,GAAqBC,IAAAE,EAAA,KAAAF,IAAAC,EAAA,KAC/BF,EAAA,+BADF,EAAYC,IAAAG,EAAA,QAAAJ,IAAqBC,IAAAG,EAAA,QAArBJ,EAAqB,O,mqFCEjC,MAAMK,EAAeC,IAAMC,yBAAa,mB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AAOY,OAAMsE,QAAOtC,UAAS4C,QAAOoE,YAAWlF,kBAAiBG,oBAAmBsH,eAActG,yBAAWT,aAAK,eAAiB,OAAOK,QAAY,eAAiB,OAAON,QAAY,mBAAqB,OAAOqE,mBAAgB,6CAA+C,OAAOC,8CAElT,OADArI,OAAOC,eAAeH,EAAc,kBAAmB,CAAEI,YAAY,EAAON,OAAO,IAC5EE,K,iCCjEP,MAAMK,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlD,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"js/admin10.942c376b.js","sourcesContent":["export enum ReportsEstateSelected {\n ALL_PROJECTS = \"All Projects\",\n}\n","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-68a6733c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"text-semi-bold\" }, \"Confirm action\", -1))\nconst _hoisted_2 = { class: \"text-semi-bold\" }\nconst _hoisted_3 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock($setup[\"LotAssignmentModal\"], {\n \"is-open\": $props.isOpen,\n onClose: $setup.close,\n onConfirm: $setup.confirm\n }, {\n title: _withCtx(() => [\n _hoisted_1\n ]),\n description: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString($setup.text) + \" \", 1),\n _createElementVNode(\"span\", _hoisted_2, _toDisplayString($props.deleteItem), 1),\n ($setup.isLeadsPage)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \" \" + _toDisplayString($props.deleteItem > 1 ? \"leads\" : \"lead\"), 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\"?\")\n ]),\n _: 1\n }, 8, [\"is-open\"]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport LotAssignmentModal from \"@/components/ui/modals/LotAssignmentModal.vue\";\nimport { computed } from \"vue\";\nimport router from \"@/router\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ConfirmDeleteModal',\n props: {\n isOpen: {\n type: Boolean,\n required: true,\n },\n deleteItem: {\n type: [Number, String],\n },\n customText: {\n type: String,\n required: false,\n },\n},\n emits: [\"close\", \"confirm\"],\n setup(__props, { expose: __expose, emit: emits }) {\n __expose();\n\nconst props = __props;\n\n\n\n\nconst text = computed(() => {\n if (props.customText) {\n return props.customText;\n }\n return \"Are you sure you want to delete\";\n});\n\nconst isLeadsPage = computed(() => {\n return router.currentRoute.value.name === \"Leads\";\n});\n\nconst close = () => {\n emits(\"close\");\n};\n\nconst confirm = () => {\n emits(\"confirm\");\n emits(\"close\");\n};\n\n\nconst __returned__ = { emits, props, text, isLeadsPage, close, confirm, LotAssignmentModal, computed, get router() { return router } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./ConfirmDeleteModal.vue?vue&type=template&id=68a6733c&scoped=true&ts=true&lang=pug\"\nimport script from \"./ConfirmDeleteModal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ConfirmDeleteModal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ConfirmDeleteModal.vue?vue&type=style&index=0&id=68a6733c&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-68a6733c\"]])\n\nexport default __exports__","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","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!./ConfirmDeleteModal.vue?vue&type=style&index=0&id=68a6733c&lang=scss&scoped=true\"","import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7e4703cb\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"spinner\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"admin-page-wr\"\n}\nconst _hoisted_3 = { class: \"dashboard-header\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", { class: \"title-main\" }, \"Saved Packages\", -1))\nconst _hoisted_5 = { class: \"subtitle-main\" }\nconst _hoisted_6 = { class: \"filters\" }\nconst _hoisted_7 = {\n class: \"dropdown-button input-dropdown\",\n type: \"button\"\n}\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"table-wrapper\" }, null, -1))\nconst _hoisted_10 = { class: \"table-default\" }\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = { key: 1 }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"tr\", null, [\n /*#__PURE__*/_createElementVNode(\"td\", {\n class: \"colspan-headers no-data\",\n colspan: \"9\"\n }, \"No packages available\")\n], -1))\nconst _hoisted_14 = [\n _hoisted_13\n]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n ($setup.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"h3\", _hoisted_5, _toDisplayString($setup.plural($setup.packages.length, \"Package\")), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode($setup[\"DropDown\"], { class: \"dropdown-container\" }, {\n control: _withCtx(() => [\n _createElementVNode(\"label\", _hoisted_7, _toDisplayString($setup.estateSelected), 1)\n ]),\n dropdown: _withCtx(() => [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.optionsEstate, (optionSelected) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: optionSelected.id,\n onClick: ($event: any) => ($setup.onSelectEstate(optionSelected.title, optionSelected.id)),\n class: _normalizeClass({ 'dropdown__item-active': optionSelected.title === $setup.estateSelected })\n }, _toDisplayString(optionSelected.title), 11, _hoisted_8))\n }), 128))\n ])\n ]),\n _: 1\n }),\n _createElementVNode(\"button\", {\n class: \"button default primary add-btn-primary\",\n onClick: $setup.toCreatePackage\n }, \"Create Package\")\n ]),\n _hoisted_9,\n _createElementVNode(\"table\", _hoisted_10, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", null, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList($setup.tableHeaders, (header) => {\n return _createElementVNode(\"th\", { key: header }, _toDisplayString(header), 1)\n }), 64))\n ])\n ]),\n ($setup.packages.length > 0)\n ? (_openBlock(), _createElementBlock(\"tbody\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.packages, (savedPackage) => {\n return (_openBlock(), _createBlock($setup[\"PackageRow\"], {\n key: savedPackage._id,\n savedPackage: savedPackage,\n isDetailsPackageOpen: $setup.isDetailsPackageOpen,\n getEstateTitle: $setup.getEstateTitle,\n getLandSize: $setup.getLandSize,\n getBuildSize: $setup.getBuildSize,\n formatPrice: $setup.formatPrice,\n getBedroomCount: $setup.getBedroomCount,\n getBathroomCount: $setup.getBathroomCount,\n getLoungeRoomCount: $setup.getLoungeRoomCount,\n getLotClass: $setup.getLotClass,\n getLotStatus: $setup.getLotStatus,\n onDeletePackage: $setup.onDeletePackage,\n onClickPackage: $setup.onClickPackage,\n onCopyLink: $setup.onCopyLinkPackage,\n openDetailsPackage: $setup.openDetailsPackage,\n isDisplayDetailsEffect: $setup.isDisplayDetailsEffect\n }, null, 8, [\"savedPackage\", \"isDetailsPackageOpen\", \"formatPrice\", \"isDisplayDetailsEffect\"]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"tbody\", _hoisted_12, _hoisted_14))\n ])\n ])\n ])),\n _createVNode($setup[\"ConfirmDeleteModalVue\"], {\n isOpen: $setup.isConfirmDeletePackageModalOpen,\n onConfirm: $setup.onConfirmDeletePackage,\n onClose: _cache[0] || (_cache[0] = ($event: any) => ($setup.isConfirmDeletePackageModalOpen = false))\n }, null, 8, [\"isOpen\"])\n ], 64))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { ref, onMounted, watch, computed } from \"vue\";\nimport plural from \"@/features/plural\";\nimport { useStore } from \"vuex\";\nimport { POSITION, useToast } from \"vue-toastification\";\nimport router from \"@/router\";\nimport { debounce } from \"@/helpers/debounce\";\nimport { formatPrice } from \"@/helpers/transformation/price\";\nimport { EstateInterface } from \"@/types/EstateInterface\";\nimport DropDown from \"@/components/ui/dropdown/DropDown.vue\";\nimport { ReportsEstateSelected } from \"@/enums/ReportsEstateSelected\";\nimport { getLotStatusClass } from \"@/helpers/status\";\nimport PackageRow from \"@/components/concierge/PackageRow.vue\";\nimport ConfirmDeleteModalVue from \"@/components/ui/modals/ConfirmDeleteModal.vue\";\nimport { BuilderQuote } from \"@/types/BuilderQuote\";\nimport { copyToClipboard } from \"@/helpers/copyToClipboard\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AdminPackages',\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst store = useStore();\n\nconst loading = ref(true);\nconst tableHeaders = [\"Project\", \"Lot\", \"Builder\", \"Design\", \"Land Price\", \"Build Price\", \"Package Price\", \"Status\", \"Action\"];\nconst packages = ref([]);\nconst estates = ref([]);\nconst lotDetails = ref>({});\nconst houseDetails = ref>({});\nconst toast = useToast();\nconst estateSelected = ref(ReportsEstateSelected.ALL_PROJECTS);\nconst selectedEstateId = ref(null);\nconst isDetailsPackageOpen = ref(null);\nconst isDisplayDetailsEffect = ref(false);\nconst isConfirmDeletePackageModalOpen = ref(false);\nconst packageSelectedDeleteId = ref(null);\n\nonMounted(() => {\n getPackages();\n getEstates();\n});\n\nwatch(\n () => estateSelected.value,\n () => {\n debounceSearch();\n }\n);\n\nconst getPackages = async () => {\n try {\n const res = await store.dispatch(\"builder/getPackages\", {\n estateId: selectedEstateId.value,\n });\n packages.value = res.data;\n fetchLotDetails();\n fetchHouseDetails();\n } catch (error) {\n toast.error(\"Error getting packages\");\n } finally {\n loading.value = false;\n }\n};\n\nconst getEstates = async () => {\n try {\n const res = await store.dispatch(\"estate/getEstates\");\n estates.value = res.data;\n } catch (error) {\n toast.error(\"Error getting estates\");\n } finally {\n loading.value = false;\n }\n};\n\nconst fetchLotDetails = async () => {\n for (const savedPackage of packages.value) {\n const lotId = savedPackage.selections.lot.lotId;\n if (lotId && !lotDetails.value[lotId]) {\n try {\n const res = await store.dispatch(\"lot/getOpenLot\", lotId);\n lotDetails.value[lotId] = {\n status: res.data.status,\n size: res.data.size,\n };\n } catch {\n toast.error(\"Error fetching lot details\", {\n position: POSITION.TOP_LEFT,\n });\n lotDetails.value[lotId] = { status: \"-\", size: \"-\" };\n }\n }\n }\n};\n\nconst fetchHouseDetails = async () => {\n for (const savedPackage of packages.value) {\n const houseId = savedPackage.selections.house.houseId;\n if (houseId && !houseDetails.value[houseId]) {\n try {\n const res = await store.dispatch(\"builder/getHouseById\", houseId.toString());\n houseDetails.value[houseId] = {\n area: res.data.area,\n bedroom: res.data.bedroom,\n bathroomQuantity: res.data.bathroom.quantity,\n loungeRoomQuantity: res.data.loungeRoom.quantity\n };\n } catch {\n toast.error(\"Error fetching build size\", {\n position: POSITION.TOP_LEFT,\n });\n houseDetails.value[houseId] = { area: \"-\", bedroom: 0, bathroomQuantity: 0, loungeRoomQuantity: 0 };\n }\n }\n }\n};\n\nconst optionsEstate = computed(() => [\n { title: ReportsEstateSelected.ALL_PROJECTS, id: null },\n ...estates.value.map((estate) => ({ title: estate.title, id: estate._id })),\n]);\n\nconst onSelectEstate = (estateTitle: string, estateId: string | null) => {\n estateSelected.value = estateTitle;\n selectedEstateId.value = estateId;\n};\n\nconst getEstateTitle = (estateId: string) => {\n const estate = estates.value.find(estate => estate._id === estateId);\n return estate ? estate.title : '-';\n};\n\nconst getLotStatus = (lotId: string) => {\n return lotDetails.value[lotId]?.status || \"-\";\n};\n\nconst getLotClass = (lotId: string) => {\n const status = lotDetails.value[lotId]?.status || \"-\";\n const statusClass = getLotStatusClass(status);\n return statusClass;\n};\n\nconst getLandSize = (lotId: string) => {\n return formatPrice(lotDetails.value[lotId]?.size || \"-\", false);\n};\n\nconst getBuildSize = (houseId: string) => {\n return formatPrice(houseDetails.value[houseId]?.area || \"-\", false);\n};\n\nconst getBedroomCount = (houseId: string) => {\n return houseDetails.value[houseId]?.bedroom || \"-\";\n};\n\nconst getBathroomCount = (houseId: string) => {\n return houseDetails.value[houseId]?.bathroomQuantity || \"-\";\n};\n\nconst getLoungeRoomCount = (houseId: string) => {\n return houseDetails.value[houseId]?.loungeRoomQuantity || \"-\";\n};\n\nconst debounceSearch = debounce(getPackages);\nconst onClickPackage = (id: string) => {\n router.push({ name: \"AdminPackageUpdate\", params: { packageId: id } });\n};\nconst toCreatePackage = () => {\n router.push({ name: \"AdminPackageCreate\" });\n};\nconst onDeletePackage = async (id: string) => {\n packageSelectedDeleteId.value = id;\n isConfirmDeletePackageModalOpen.value = true;\n};\n\nconst onConfirmDeletePackage = async () => {\n loading.value = true;\n try {\n await store.dispatch(\"builder/deletePackage\", packageSelectedDeleteId.value);\n toast.success(\"Package deleted\");\n router.push({ name: \"AdminPackages\" });\n getPackages();\n } catch (error) {\n toast.error(\"Deleting package failed\");\n } finally {\n loading.value = false;\n }\n};\n\nconst onCopyLinkPackage = async (savedPackage: BuilderQuote) => {\n const link = `${window.location.origin}/builder/estate/${savedPackage.estateId}/borrow-calculator/request-quote/${savedPackage._id}/house/${savedPackage.selections.house.houseId}/loan-amount/600000`;\n copyToClipboard(link, \"Saved Package link was copied to clipboard\");\n}\n\nconst openDetailsPackage = (id: string) => {\n isDetailsPackageOpen.value = isDetailsPackageOpen.value === id ? null : id;\n\n setTimeout(() => {\n isDisplayDetailsEffect.value = isDetailsPackageOpen.value === id;\n }, 50);\n};\n\nconst __returned__ = { store, loading, tableHeaders, packages, estates, lotDetails, houseDetails, toast, estateSelected, selectedEstateId, isDetailsPackageOpen, isDisplayDetailsEffect, isConfirmDeletePackageModalOpen, packageSelectedDeleteId, getPackages, getEstates, fetchLotDetails, fetchHouseDetails, optionsEstate, onSelectEstate, getEstateTitle, getLotStatus, getLotClass, getLandSize, getBuildSize, getBedroomCount, getBathroomCount, getLoungeRoomCount, debounceSearch, onClickPackage, toCreatePackage, onDeletePackage, onConfirmDeletePackage, onCopyLinkPackage, openDetailsPackage, ref, onMounted, watch, computed, get plural() { return plural }, get useStore() { return useStore }, get POSITION() { return POSITION }, get useToast() { return useToast }, get router() { return router }, get debounce() { return debounce }, get formatPrice() { return formatPrice }, get EstateInterface() { return EstateInterface }, DropDown, get ReportsEstateSelected() { return ReportsEstateSelected }, get getLotStatusClass() { return getLotStatusClass }, PackageRow, ConfirmDeleteModalVue, get BuilderQuote() { return BuilderQuote }, get copyToClipboard() { return copyToClipboard } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./AdminPackages.vue?vue&type=template&id=7e4703cb&scoped=true&ts=true&lang=pug\"\nimport script from \"./AdminPackages.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AdminPackages.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AdminPackages.vue?vue&type=style&index=0&id=7e4703cb&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-7e4703cb\"]])\n\nexport default __exports__","import { formatPrice } from \"@/helpers/transformation/price\";\r\n\r\nexport function calculateBuildPriceOrPackagePriceTotal(\r\n homePrice: number,\r\n facadePrice: number,\r\n siteCosts: number,\r\n landPrice?: number\r\n): string {\r\n const homePriceNum = isNaN(homePrice) ? 0 : Number(homePrice);\r\n const facadePriceNum = isNaN(facadePrice) ? 0 : Number(facadePrice);\r\n const siteCostsNum = isNaN(siteCosts) ? 0 : Number(siteCosts);\r\n const additionalCostsNum = landPrice !== undefined && !isNaN(landPrice) ? Number(landPrice) : 0;\r\n\r\n const totalPrice = homePriceNum + facadePriceNum + siteCostsNum + additionalCostsNum;\r\n\r\n return formatPrice(totalPrice);\r\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!./PackageRow.vue?vue&type=style&index=0&id=80230820&lang=scss&scoped=true\"","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!./AdminPackages.vue?vue&type=style&index=0&id=7e4703cb&lang=scss&scoped=true\"","import { toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-80230820\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"content-details first\"\n}\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Land Size\", -1))\nconst _hoisted_3 = { class: \"value\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Build Size\", -1))\nconst _hoisted_6 = { class: \"value\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Facade\", -1))\nconst _hoisted_9 = { class: \"value\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title no-visibility\" }, \"House\", -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"value no-visibility\" }, \"Design\", -1))\nconst _hoisted_13 = [\n _hoisted_11,\n _hoisted_12\n]\nconst _hoisted_14 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Beds\", -1))\nconst _hoisted_16 = { class: \"value\" }\nconst _hoisted_17 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_18 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Baths\", -1))\nconst _hoisted_19 = { class: \"value\" }\nconst _hoisted_20 = {\n key: 0,\n class: \"content-details\"\n}\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Living\", -1))\nconst _hoisted_22 = { class: \"value\" }\nconst _hoisted_23 = {\n key: 0,\n class: \"content-details status\"\n}\nconst _hoisted_24 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title no-visibility\" }, \"Lot\", -1))\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"value no-visibility\" }, \"Status\", -1))\nconst _hoisted_26 = [\n _hoisted_24,\n _hoisted_25\n]\nconst _hoisted_27 = { class: \"content-icons\" }\nconst _hoisted_28 = { class: \"icons\" }\nconst _hoisted_29 = [\"src\"]\nconst _hoisted_30 = [\"src\"]\nconst _hoisted_31 = [\"src\"]\nconst _hoisted_32 = {\n key: 0,\n class: \"content-details action\"\n}\nconst _hoisted_33 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title no-visibility\" }, \"Lot\", -1))\nconst _hoisted_34 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"value no-visibility\" }, \"Status\", -1))\nconst _hoisted_35 = [\n _hoisted_33,\n _hoisted_34\n]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: $props.savedPackage._id\n }, [\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package bold\", { 'padding-left': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($props.getEstateTitle($props.savedPackage.estateId)), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString($props.getLandSize($props.savedPackage.selections.lot.lotId) || '-') + \"sqm\", 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($props.savedPackage.selections.lot.name || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _hoisted_5,\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString($props.getBuildSize($props.savedPackage.selections.house.houseId) || '-') + \"sqm\", 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($props.savedPackage.selections.builder.name || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString($props.savedPackage.selections.facade.name || '-'), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($props.savedPackage.selections.house.name || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, _hoisted_13))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($props.formatPrice($props.savedPackage.selections.lot.price) || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _hoisted_15,\n _createElementVNode(\"div\", _hoisted_16, _toDisplayString($props.getBedroomCount($props.savedPackage.selections.house.houseId) || '-'), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($setup.calculateBuildPriceOrPackagePriceTotal($props.savedPackage.selections.house.price, $props.savedPackage.selections.facade.price, $setup.siteCosts) || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [\n _hoisted_18,\n _createElementVNode(\"div\", _hoisted_19, _toDisplayString($props.getBathroomCount($props.savedPackage.selections.house.houseId) || '-'), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, _toDisplayString($setup.calculateBuildPriceOrPackagePriceTotal($props.savedPackage.selections.house.price, $props.savedPackage.selections.facade.price, $setup.siteCosts, $props.savedPackage.selections.lot.price) || '-'), 3),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [\n _hoisted_21,\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString($props.getLoungeRoomCount($props.savedPackage.selections.house.houseId) || '-'), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding-top': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"badge\", $props.getLotClass($props.savedPackage.selections.lot.lotId)])\n }, _toDisplayString($props.getLotStatus($props.savedPackage.selections.lot.lotId) || '-'), 3)\n ], 2),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, _hoisted_26))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createElementVNode(\"td\", {\n class: _normalizeClass({ 'details-package-open': $props.isDetailsPackageOpen === $props.savedPackage._id })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"first-row-package\", { 'padding-top': $props.isDetailsPackageOpen === $props.savedPackage._id }])\n }, [\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", {\n class: \"trash-button\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => ($setup.onDeletePackage($props.savedPackage._id)))\n }, [\n _createElementVNode(\"img\", {\n class: \"trash-icon\",\n src: require(`@/assets/icons/trash.svg`)\n }, null, 8, _hoisted_29)\n ]),\n _createElementVNode(\"div\", {\n class: \"edit-button\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => ($props.onClickPackage($props.savedPackage._id)))\n }, [\n _createElementVNode(\"img\", {\n class: \"edit-icon\",\n src: require(`@/assets/icons/edit.svg`)\n }, null, 8, _hoisted_30)\n ]),\n _createElementVNode(\"div\", {\n class: \"link-button\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => ($setup.onCopyLinkPackage($props.savedPackage)))\n }, [\n _createElementVNode(\"img\", {\n class: \"link-icon\",\n src: require(`@/assets/icons/icon-link-green.svg`)\n }, null, 8, _hoisted_31)\n ])\n ]),\n _createElementVNode(\"button\", {\n class: _normalizeClass([\"dropdown-button details-package\", { active: $props.isDisplayDetailsEffect && $props.isDetailsPackageOpen === $props.savedPackage._id }]),\n onClick: _cache[3] || (_cache[3] = ($event: any) => ($props.openDetailsPackage($props.savedPackage._id)))\n }, null, 2)\n ])\n ], 2),\n ($props.isDetailsPackageOpen === $props.savedPackage._id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_32, _hoisted_35))\n : _createCommentVNode(\"\", true)\n ], 2)\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { onMounted, ref } from 'vue';\nimport { useToast } from 'vue-toastification';\nimport { useStore } from \"vuex\";\nimport { BuilderQuote } from '@/types/BuilderQuote';\nimport { calculateBuildPriceOrPackagePriceTotal } from \"@/helpers/builder/calculateBuildPriceOrPackagePriceTotal\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PackageRow',\n props: {\n savedPackage: {\n type: Object,\n default: Object as () => BuilderQuote,\n },\n isDetailsPackageOpen: String,\n getEstateTitle: Function,\n getLandSize: Function,\n getBuildSize: Function,\n formatPrice: Function,\n getBedroomCount: Function,\n getBathroomCount: Function,\n getLoungeRoomCount: Function,\n getLotClass: Function,\n getLotStatus: Function,\n onClickPackage: Function,\n openDetailsPackage: Function,\n isDisplayDetailsEffect: Boolean\n},\n emits: [\"deletePackage\", \"copyLink\"],\n setup(__props, { expose: __expose, emit }) {\n __expose();\n\nconst props = __props;\n\n\n\n\nconst store = useStore();\n\nconst loading = ref(true);\nconst toast = useToast();\nconst siteCosts = ref(null);\n\nconst onDeletePackage = (id: string) => {\n emit(\"deletePackage\", id);\n}\n\nconst onCopyLinkPackage = (savedPackage: BuilderQuote) => {\n emit(\"copyLink\", savedPackage);\n}\n\nconst getSiteCosts = async () => {\n loading.value = true;\n try {\n const response = await store.dispatch(\"builder/getSiteCost\", { lotId: props.savedPackage.selections.lot.lotId, builderId: props.savedPackage.selections.builder.builderId, houseId: props.savedPackage.selections.house.houseId });\n siteCosts.value = response.data.siteCost;\n } catch (error) {\n toast.error(\"Fetching site costs failed\");\n } finally {\n loading.value = false;\n }\n}\n\nonMounted(() => {\n if(props.savedPackage){\n getSiteCosts();\n }\n})\n\nconst __returned__ = { props, emit, store, loading, toast, siteCosts, onDeletePackage, onCopyLinkPackage, getSiteCosts, onMounted, ref, get useToast() { return useToast }, get useStore() { return useStore }, get BuilderQuote() { return BuilderQuote }, get calculateBuildPriceOrPackagePriceTotal() { return calculateBuildPriceOrPackagePriceTotal } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./PackageRow.vue?vue&type=template&id=80230820&scoped=true&ts=true&lang=pug\"\nimport script from \"./PackageRow.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PackageRow.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PackageRow.vue?vue&type=style&index=0&id=80230820&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-80230820\"]])\n\nexport default __exports__"],"sourceRoot":""}