{"version":3,"sources":["webpack:///./src/views/admin/lots/AdminLot.vue?c02e","webpack:///./src/helpers/lot/adminLot.ts","webpack:///./src/helpers/user.ts","webpack:///./src/views/admin/lots/AdminLot.vue?dbce","webpack:///./src/views/admin/lots/AdminLot.vue","webpack:///./src/views/admin/lots/AdminLot.vue?8924","webpack:///./node_modules/dayjs/dayjs.min.js","webpack:///./src/helpers/date.ts","webpack:///./src/components/LotLifecycle.vue?a0d6","webpack:///./src/components/LotLifecycle.vue?a289","webpack:///./src/components/LotLifecycle.vue","webpack:///./src/components/LotLifecycle.vue?05dd","webpack:///./src/helpers/transformation/price.ts"],"names":["notEditableLotStatuses","cov_p5j1mur9o","s","LotStatus","EOI","CONTRACT_EXECUTED","UNCONDITIONAL","canEditLot","status","f","includes","getFirstLastName","user","cov_1fefz040v6","b","firstName","lastName","getFullName","middleName","_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createElementVNode","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","render","_ctx","_cache","$props","$setup","$data","$options","_$setup$lot","_component_router_link","_resolveComponent","_component_router_view","_openBlock","_createElementBlock","_createVNode","to","name","params","userId","default","_withCtx","_createTextVNode","_toDisplayString","_","estateId","estate","title","stageId","stage","lot","_normalizeClass","getLotStatusClass","PRE_CONTRACT","getLotStatus","_createBlock","key","lotId","_createCommentVNode","modelValue","currentTab","$event","list","tabs","slots","customSwitch","item","onClick","toTab","label","isAdmin","role","UserRoles","SUPER_ADMIN","onUpdateLot","getLot","onAddDocument","addDocument","onDeleteDocument","deleteDocument","_defineComponent","__name","setup","__props","expose","__expose","router","currentRoute","value","ref","find","fullPath","tab","push","replace","computed","store","dispatch","then","res","data","document","documentType","unshift","file","splice","index","onMounted","__returned__","SwitchComponent","LotLifecycle","UserInterface","EstateInterface","StageInterface","LotDocument","LotInterface","Object","defineProperty","enumerable","__exports__","t","e","module","exports","this","r","i","u","a","o","h","c","d","l","$","y","M","weekdays","split","months","ordinal","m","String","length","Array","join","v","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","g","S","args","arguments","O","locale","$L","utc","$u","x","$x","$offset","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","apply","slice","$locale","weekStart","$set","min","daysInMonth","get","Number","round","subtract","format","invalidDate","meridiem","YY","YYYY","MM","MMM","monthsShort","MMMM","DD","dd","weekdaysMin","ddd","weekdaysShort","dddd","H","HH","hh","A","mm","ss","SSS","Z","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","T","forEach","extend","$i","isDayjs","en","Ls","cov_4tnu0h68q","actualCoverage","formatDate","undefined","dayjs","formatDateMonthYear","formatDateMonthDayYear","formatDateDayMonthYear","formatDateCalendar","formatDateDayMonthYearWithTime","formatDateYYYYMMDD","formatDateToday","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_$props$lot$eoiId","_$props$lot$eoiId$buy","_$props$lot","_$props$lot$offlineSa","_$props$lot$offlineSa2","OPTION","lotStatusList","currentStatusIndex","getStepStatus","_Fragment","_renderList","getPreContractOrHoldStatus","formatPrice","size","blockWidth","blockDepth","releaseDate","price","OFFLINE","formatStripePrice","offlineSale","offlineDeposit","buyerId","paymentRequest","depositFromInvoice","highlighted","eoiId","buyersData","firstBuyer","moveToTheContactDetailsPage","secondBuyer","offlineBuyerData","fullName","registrationDate","props","type","required","_props$lot$offlineSal","salePhase","HOLD","_props$lot$offlineSal2","watch","getInvoice","getHoldStatus","isInitialHoldDisabled","NOT_RELEASED","AVAILABLE","SETTLED","findIndex","_props$lot$eoiId","_props$lot$eoiId$paym","_id","operationType","operationStatus","paymentQueueId","paymentQueueData","eoiApi","response","amount","catch","_props$lot","_props$lot$eoiId2","_props$lot2","_props$lot2$eoiId","customerId","id","cov_243ma3iy2q","showCurrency","_priceArray$0$toStrin","priceArray","string","lastTwo","substr","firstCharacter","formatPriceToNumber","parseFloat","formatPriceTrim","trimText","formatPorcentageTrim","porcentage","max","integerValue","decimalValue","porcentageParts","trimPorcentage","updatePriceInput","form","priceField","preventDefault","target"],"mappings":"2GAAA,W,m0DCEO,MAAMA,GAAsBC,IAAAC,EAAA,KAAG,CACpCC,eAAUC,IACVD,eAAUE,kBACVF,eAAUG,gBAGN,SAAUC,EAAWC,GACzB,OAD0CP,IAAAQ,EAAA,KAAAR,IAAAC,EAAA,MAClCF,EAAuBU,SAASF,K,isPCPpC,SAAUG,EAAiBC,GAC/B,OADkDC,IAAAJ,EAAA,KAAAI,IAAAX,EAAA,KAC3CU,GAAIC,IAAAC,EAAA,QAAG,GAAGF,EAAKG,WAASF,IAAAC,EAAA,QAAGF,EAAKG,YAASF,IAAAC,EAAA,QAAG,OAAMF,EAAKI,UAAQH,IAAAC,EAAA,QAAGF,EAAKI,WAAQH,IAAAC,EAAA,QAAG,QAAID,IAAAC,EAAA,QAAG,IAE5F,SAAUG,EAAYL,GAC1B,OAD6CC,IAAAJ,EAAA,KAAAI,IAAAX,EAAA,KACtCU,GAAIC,IAAAC,EAAA,QAAG,GAAGF,EAAKG,aAAaH,EAAKM,cAAcN,EAAKI,aAAUH,IAAAC,EAAA,QAAG,I,kKCJ1E,MAAMK,EAAeC,IAAMC,yBAAa,mBAAmBD,EAAEA,IAAIE,0BAAcF,GACzEG,EAAa,CAAEC,MAAO,6BACtBC,EAAa,CAAED,MA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IAAA1X,EAAA,MAAGuY,GACfG,GAAYhB,IAAA1X,EAAA,MAAG,IACnB,GADsB0X,IAAA1X,EAAA,MACnB0X,IAAA9W,EAAA,SAAsB,kBAAf2X,IAAuBb,IAAA9W,EAAA,SAAI2X,EAAW/X,SAAS,MAAM,CAAAkX,IAAA9W,EAAA,SAC7D,MAAM+X,GAAejB,IAAA1X,EAAA,MAAGuY,EAAWjP,MAAM,MAAKoO,IAAA1X,EAAA,MAC9CyY,EAAeE,EAAgB,GAAGjB,IAAA1X,EAAA,MAClC0Y,EAAe,IAAMC,EAAgB,QACtCjB,IAAA9W,EAAA,SACD,MAAMgY,GAAclB,IAAA1X,EAAA,MAAGoY,EAAgBK,GAAc/R,QAAQ,MAAO,KACpE,OADwEgR,IAAA1X,EAAA,MACpE4Y,GAEHlB,IAAA9W,EAAA,SAAA8W,IAAA1X,EAAA,MACE0X,IAAA9W,EAAA,SAAA4X,IAAGd,IAAA9W,EAAA,SAAIgY,EAAelS,QAAQ,KAAM,KAA4B8R,IAAKd,IAAA9W,EAAA,SAAA8W,IAAA1X,EAAA,MAC/DwY,EAAIhL,aACZkK,IAAA9W,EAAA,SAAA8W,IAAA1X,EAAA,MACMyY,EAAeC,KANFhB,IAAA9W,EAAA,SAAA8W,IAAA1X,EAAA,MACX,QAMT0X,IAAA1X,EAAA,MAEK,MAAM6Y,EAAmBA,CAACxQ,EAAWyQ,EAA+BC,KAAsBrB,IAAAnX,EAAA,KAAAmX,IAAA1X,EAAA,MAC/FqI,EAAE2Q,iBACF,MAAMC,GAAMvB,IAAA1X,EAAA,MAAGqI,EAAE4Q,QACX7S,GAAKsR,IAAA1X,EAAA,MAAGoY,EAAgBa,EAAO7S,QAAOsR,IAAA1X,EAAA,MAC5C8Y,EAAKC,GAAcb,EAAoB9R","file":"js/admin17.db91c8c6.js","sourcesContent":["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!./AdminLot.vue?vue&type=style&index=0&id=1ce0bdfe&lang=scss&scoped=true\"","import { LotStatus } from \"@/enums/LotStatus\";\n\nexport const notEditableLotStatuses = [\n LotStatus.EOI,\n LotStatus.CONTRACT_EXECUTED,\n LotStatus.UNCONDITIONAL,\n];\n\nexport function canEditLot(status: LotStatus) {\n return !notEditableLotStatuses.includes(status);\n}\n","import { UserInterface } from \"@/types/UserInterface\";\n\nexport function getFirstLastName(user: UserInterface) {\n return user ? `${user.firstName ? user.firstName : \"\"} ${user.lastName ? user.lastName : \"\"}` : \"\";\n}\nexport function getFullName(user: UserInterface) {\n return user ? `${user.firstName} ${user.middleName} ${user.lastName}` : \"\";\n}\n","import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1ce0bdfe\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"page-wr lot-block-wrapper\" }\nconst _hoisted_2 = { class: \"dashboard-header\" }\nconst _hoisted_3 = { class: \"breadcrumb-wrapper-main\" }\nconst _hoisted_4 = { class: \"breadcrumb\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"delimiter\" }, null, -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"delimiter\" }, null, -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"delimiter\" }, null, -1))\nconst _hoisted_8 = { class: \"current-breadcrumb\" }\nconst _hoisted_9 = { class: \"title-controls\" }\nconst _hoisted_10 = { class: \"wrapper-switch\" }\nconst _hoisted_11 = [\"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_router_link, {\n to: { name: 'AdminUser', params: { userId: $setup.userId } }\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString($setup.getFirstLastName($setup.user)), 1)\n ]),\n _: 1\n }, 8, [\"to\"]),\n _hoisted_5,\n _createVNode(_component_router_link, {\n to: { name: 'AdminEstate', params: { userId: $setup.userId, estateId: $setup.estateId } }\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString($setup.estate ? $setup.estate.title : \"\"), 1)\n ]),\n _: 1\n }, 8, [\"to\"]),\n _hoisted_6,\n _createVNode(_component_router_link, {\n to: { name: 'AdminStage', params: { userId: $setup.userId, estateId: $setup.estateId, stageId: $setup.stageId } }\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Stage \" + _toDisplayString($setup.stage ? $setup.stage.title : \"\"), 1)\n ]),\n _: 1\n }, 8, [\"to\"]),\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, \"Lot \" + _toDisplayString($setup.lot ? $setup.lot.title : \"\"), 1),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"badge big\", $setup.getLotStatusClass($setup.lot ? $setup.lot.status === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : $setup.lot.status : '')])\n }, _toDisplayString($setup.getLotStatus), 3)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n ($setup.canEditLot($setup.lot?.status))\n ? (_openBlock(), _createBlock(_component_router_link, {\n key: 0,\n class: \"button default edit\",\n to: { name: 'AdminLotUpdate', params: { userId: $setup.userId, estateId: $setup.estateId, stageId: $setup.stageId, lotId: $setup.lotId } }\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Edit\")\n ]),\n _: 1\n }, 8, [\"to\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode($setup[\"LotLifecycle\"], { lot: $setup.lot }, null, 8, [\"lot\"]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode($setup[\"SwitchComponent\"], {\n modelValue: $setup.currentTab,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (($setup.currentTab) = $event)),\n list: $setup.tabs,\n slots: ['customSwitch']\n }, {\n customSwitch: _withCtx((item) => [\n _createElementVNode(\"span\", {\n class: \"switch-item--text\",\n onClick: ($event: any) => ($setup.toTab(item.label))\n }, _toDisplayString(item.label), 9, _hoisted_11)\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]),\n _createVNode(_component_router_view, {\n lot: $setup.lot,\n isAdmin: true,\n role: $setup.UserRoles.SUPER_ADMIN,\n class: _normalizeClass({ 'map-wr': $setup.currentTab.label === 'map' }),\n onUpdateLot: $setup.getLot,\n onAddDocument: _cache[1] || (_cache[1] = ($event: any) => ($setup.addDocument($event))),\n onDeleteDocument: _cache[2] || (_cache[2] = ($event: any) => ($setup.deleteDocument($event)))\n }, null, 8, [\"lot\", \"role\", \"class\"])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport SwitchComponent from \"@/components/ui/SwitchComponent.vue\";\nimport LotLifecycle from \"@/components/LotLifecycle.vue\";\nimport { onMounted, ref, computed } from \"vue\";\nimport router from \"@/router\";\nimport store from \"@/store\";\nimport { UserInterface } from \"@/types/UserInterface\";\nimport { EstateInterface } from \"@/types/EstateInterface\";\nimport { StageInterface } from \"@/types/StageInterface\";\nimport { getLotStatusClass } from \"@/helpers/status\";\nimport { UserRoles } from \"@/enums/UserRoles\";\nimport { getFirstLastName } from \"@/helpers/user\";\nimport { LotDocument, LotInterface } from \"@/types/LotInterface\";\nimport { canEditLot } from \"@/helpers/lot/adminLot\";\nimport { LotStatus } from \"@/enums/LotStatus\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AdminLot',\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst userId = router.currentRoute.value.params.userId;\nconst estateId = router.currentRoute.value.params.estateId;\nconst stageId = router.currentRoute.value.params.stageId;\nconst lotId = router.currentRoute.value.params.lotId;\nconst user = ref(null);\nconst estate = ref(null);\nconst stage = ref(null);\nconst lot = ref(null);\nconst tabs = [{ label: \"documents\" }, { label: \"map\" }];\nconst currentTab = ref(\n tabs.find((label) => router.currentRoute.value.fullPath.includes(label.label))\n);\nfunction toTab(tab: string) {\n if (currentTab.value.label !== tab) {\n router.push(\n router.currentRoute.value.fullPath.replace(currentTab.value.label, tab)\n );\n }\n}\n\nconst getLotStatus = computed(() => {\n if (lot.value && lot.value.status) {\n if (lot.value.status === LotStatus.EOI) {\n return LotStatus.PRE_CONTRACT;\n }\n return lot.value.status;\n }\n return \"\";\n});\n\nonMounted(() => {\n store.dispatch(\"user/getUser\", userId).then((res) => {\n user.value = res.data;\n });\n store.dispatch(\"estate/getEstate\", estateId).then((res) => {\n estate.value = res.data;\n });\n store.dispatch(\"stage/getStage\", stageId).then((res) => {\n stage.value = res.data;\n });\n getLot();\n});\n\nfunction getLot() {\n store.dispatch(\"lot/getLot\", lotId).then((res) => {\n lot.value = res.data;\n });\n}\nfunction addDocument(document: {\n file: LotDocument;\n documentType: \"contracts\" | \"documents\";\n}) {\n lot.value[document.documentType].unshift(document.file);\n}\nfunction deleteDocument(document: {\n index: number;\n documentType: \"contracts\" | \"documents\";\n}) {\n lot.value[document.documentType].splice(document.index, 1);\n}\n\nconst __returned__ = { userId, estateId, stageId, lotId, user, estate, stage, lot, tabs, currentTab, toTab, getLotStatus, getLot, addDocument, deleteDocument, SwitchComponent, LotLifecycle, onMounted, ref, computed, get router() { return router }, get store() { return store }, get UserInterface() { return UserInterface }, get EstateInterface() { return EstateInterface }, get StageInterface() { return StageInterface }, get getLotStatusClass() { return getLotStatusClass }, get UserRoles() { return UserRoles }, get getFirstLastName() { return getFirstLastName }, get LotDocument() { return LotDocument }, get LotInterface() { return LotInterface }, get canEditLot() { return canEditLot }, get LotStatus() { return LotStatus } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./AdminLot.vue?vue&type=template&id=1ce0bdfe&scoped=true&ts=true&lang=pug\"\nimport script from \"./AdminLot.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AdminLot.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AdminLot.vue?vue&type=style&index=0&id=1ce0bdfe&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-1ce0bdfe\"]])\n\nexport default __exports__","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",f=\"month\",h=\"quarter\",c=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t) (_pushScopeId(\"data-v-27aeb206\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"card lifecycle-card scroll-wrapper lot-block-wrapper\"\n}\nconst _hoisted_2 = { class: \"card-title-block\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title\" }, \"Lot Lifecycle\", -1))\nconst _hoisted_4 = { class: \"card-title\" }\nconst _hoisted_5 = { class: \"lifecycle-block\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = {\n key: 1,\n class: \"checked\"\n}\nconst _hoisted_8 = { class: \"lot-info\" }\nconst _hoisted_9 = { class: \"lot-info-item\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Block Size\", -1))\nconst _hoisted_11 = { class: \"lot-info-item-value\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"sup\", null, \"2\", -1))\nconst _hoisted_13 = { class: \"lot-info-item dimension\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Dimensions\", -1))\nconst _hoisted_15 = { class: \"lot-info-item-value\" }\nconst _hoisted_16 = { class: \"lot-info-item stage\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Stage\", -1))\nconst _hoisted_18 = { class: \"lot-info-item-value\" }\nconst _hoisted_19 = { class: \"lot-info-item\" }\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Release Date\", -1))\nconst _hoisted_21 = { class: \"lot-info-item-value\" }\nconst _hoisted_22 = { class: \"lot-info-item\" }\nconst _hoisted_23 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Price\", -1))\nconst _hoisted_24 = { class: \"lot-info-item-value\" }\nconst _hoisted_25 = { class: \"lot-info-item buyer\" }\nconst _hoisted_26 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Initial Deposit\", -1))\nconst _hoisted_27 = {\n key: 0,\n class: \"lot-info-item-value\"\n}\nconst _hoisted_28 = {\n key: 1,\n class: \"lot-info-item-value\"\n}\nconst _hoisted_29 = {\n key: 2,\n class: \"lot-info-item-value\"\n}\nconst _hoisted_30 = { class: \"lot-info-item\" }\nconst _hoisted_31 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Buyer\", -1))\nconst _hoisted_32 = { class: \"buyers\" }\nconst _hoisted_33 = {\n key: 0,\n class: \"lot-info-item-value\"\n}\nconst _hoisted_34 = {\n key: 1,\n class: \"lot-info-item-value\"\n}\nconst _hoisted_35 = { class: \"lot-info-item\" }\nconst _hoisted_36 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"lot-info-item-title\" }, \"Registration Date\", -1))\nconst _hoisted_37 = { class: \"lot-info-item-value\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return ($props.lot)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, \"Step \" + _toDisplayString($props.lot.status === $setup.LotStatus.OPTION ? $setup.lotStatusList.length : $setup.currentStatusIndex + 1) + \" of \" + _toDisplayString($setup.lotStatusList.length) + \": \" + _toDisplayString($setup.getStepStatus), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.lotStatusList, (status, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"status-item\", [ index === $setup.currentStatusIndex ? $setup.getLotStatusClass(status === $setup.LotStatus.EOI ? $setup.getPreContractOrHoldStatus : status) : '', index < $setup.currentStatusIndex ? 'lifecycle-success' : '' ]])\n }, [\n (index >= $setup.currentStatusIndex)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(status === $setup.LotStatus.EOI ? $setup.getPreContractOrHoldStatus : status), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_7))\n ], 2))\n }), 256))\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"div\", _hoisted_11, [\n _createTextVNode(_toDisplayString($setup.formatPrice($props.lot.size, false)) + \" m\", 1),\n _hoisted_12\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString($props.lot.blockWidth && $props.lot.blockDepth ? `${$setup.formatPrice($props.lot.blockWidth, false)}m x ${$setup.formatPrice($props.lot.blockDepth, false)}m` : \"Irregular\"), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _hoisted_17,\n _createElementVNode(\"div\", _hoisted_18, _toDisplayString($props.lot.stageId.title), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _hoisted_20,\n _createElementVNode(\"div\", _hoisted_21, _toDisplayString($props.lot.releaseDate ? $setup.formatDate($props.lot.releaseDate, \"DD MMM YYYY\") : '-'), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_22, [\n _hoisted_23,\n _createElementVNode(\"div\", _hoisted_24, _toDisplayString($setup.formatPrice($props.lot.price)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_25, [\n _hoisted_26,\n ($props.lot.status === $setup.LotStatus.OFFLINE)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_27, _toDisplayString($setup.formatStripePrice($props.lot.offlineSale.offlineDeposit)), 1))\n : ($props.lot.buyerId)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_28, _toDisplayString($setup.paymentRequest ? $setup.formatStripePrice($setup.depositFromInvoice) : '-'), 1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_29, \"-\"))\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _hoisted_31,\n _createElementVNode(\"div\", _hoisted_32, [\n ($props.lot.status !== $setup.LotStatus.OFFLINE)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"lot-info-item-value\", { highlighted: $props.lot.eoiId?.buyersData?.firstBuyer}]),\n onClick: _cache[0] || (_cache[0] = ($event: any) => ($setup.moveToTheContactDetailsPage()))\n }, _toDisplayString($props.lot.eoiId ? $setup.getFirstLastName($props.lot.eoiId.buyersData.firstBuyer) : \"-\"), 3),\n ($props.lot.eoiId && $props.lot.eoiId.buyersData.secondBuyer)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_33, _toDisplayString($setup.getFirstLastName($props.lot.eoiId.buyersData.secondBuyer)), 1))\n : _createCommentVNode(\"\", true)\n ], 64))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_34, _toDisplayString($props.lot?.offlineSale?.offlineBuyerData?.fullName || \"-\"), 1))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_35, [\n _hoisted_36,\n _createElementVNode(\"div\", _hoisted_37, _toDisplayString($props.lot.registrationDate ? $setup.formatDate($props.lot.registrationDate, \"MMM YYYY\") : '-'), 1)\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { getLotStatusClass } from \"@/helpers/status\";\nimport { formatDate } from \"@/helpers/date\";\nimport { LotStatus } from \"@/enums/LotStatus\";\nimport {computed, ref, watch} from \"vue\";\nimport { getFirstLastName } from \"@/helpers/user\";\nimport { formatPrice, formatStripePrice } from \"@/helpers/transformation/price\";\nimport eoiApi from \"@/services/api/eoiApi\";\nimport router from \"@/router\";\nimport { isInitialHoldDisabled } from \"@/helpers/initialHold/isInitialHoldDisabled\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LotLifecycle',\n props: {\n lot: {\n type: Object,\n required: true,\n },\n},\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\n\nconst paymentRequest = ref(true);\n\nconst getStepStatus = computed(() => {\n return props.lot.status === LotStatus.OFFLINE\n && props.lot.offlineSale?.salePhase === LotStatus.EOI\n ? LotStatus.HOLD\n : props.lot.status === LotStatus.EOI\n ? LotStatus.PRE_CONTRACT\n : props.lot.status;\n});\n\nconst getPreContractOrHoldStatus = computed(() => {\n return props.lot.status === LotStatus.OFFLINE\n && props.lot.offlineSale?.salePhase === LotStatus.EOI\n ? LotStatus.HOLD\n : LotStatus.PRE_CONTRACT;\n});\n\nwatch(\n () => props.lot,\n (lot) => {\n if (lot.buyerId && lot.eoiId) {\n getInvoice();\n }\n }\n);\nconst depositFromInvoice = ref(0);\nconst getHoldStatus = () => (isInitialHoldDisabled() ? [] : [LotStatus.HOLD]);\n\nconst lotStatusList = computed(() => {\n return [\n LotStatus.NOT_RELEASED,\n LotStatus.AVAILABLE,\n ...getHoldStatus(),\n LotStatus.EOI,\n LotStatus.CONTRACT_EXECUTED,\n LotStatus.UNCONDITIONAL,\n props.lot.status === LotStatus.OPTION\n ? props.lot.status === LotStatus.OPTION\n ? LotStatus.OPTION : LotStatus.OFFLINE\n : LotStatus.SETTLED,\n ];\n});\nconst currentStatusIndex = computed(() => {\n return props.lot\n ? lotStatusList.value.findIndex((value) => value === (props.lot.status === LotStatus.OFFLINE\n ? props.lot.offlineSale.salePhase : props.lot.status))\n : -1;\n});\nconst getInvoice = () => {\n const params = {\n eoiId: props.lot.eoiId._id,\n operationType:\"payment request\",\n operationStatus:\"ok\",\n paymentQueueId: props.lot.eoiId?.paymentQueueData?.paymentQueueId\n };\n eoiApi.getInvoice(params).then((response) => {\n if (response.data.length) {\n depositFromInvoice.value = response.data[0].data.amount;\n paymentRequest.value = true;\n } else {\n paymentRequest.value = false;\n }\n }).catch(() => {\n paymentRequest.value = false;\n });\n};\nconst moveToTheContactDetailsPage = () => {\n if (props.lot?.eoiId?.customerId) {\n router.push({\n name: \"ContactDetails\",\n params: { id: props.lot?.eoiId?.customerId }\n });\n }\n};\n\nconst __returned__ = { props, paymentRequest, getStepStatus, getPreContractOrHoldStatus, depositFromInvoice, getHoldStatus, lotStatusList, currentStatusIndex, getInvoice, moveToTheContactDetailsPage, get getLotStatusClass() { return getLotStatusClass }, get formatDate() { return formatDate }, get LotStatus() { return LotStatus }, computed, ref, watch, get getFirstLastName() { return getFirstLastName }, get formatPrice() { return formatPrice }, get formatStripePrice() { return formatStripePrice }, get eoiApi() { return eoiApi }, get router() { return router }, get isInitialHoldDisabled() { return isInitialHoldDisabled } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./LotLifecycle.vue?vue&type=template&id=27aeb206&scoped=true&ts=true&lang=pug\"\nimport script from \"./LotLifecycle.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LotLifecycle.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./LotLifecycle.vue?vue&type=style&index=0&id=27aeb206&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-27aeb206\"]])\n\nexport default __exports__","export function formatPrice(\n price: number | string = 0,\n showCurrency = true\n): string {\n const priceArray = `${price}`.split(\".\");\n return (\n (showCurrency ? \"$\" : \"\") +\n priceArray[0]\n .toString()\n .match(/.{1,3}(?=(.{3})*$)/g)\n ?.join(\",\") +\n (priceArray[1] ? \".\" + priceArray[1] : \"\")\n );\n}\n\nexport const formatStripePrice = (value = 0, showCurrency = true): string => {\n let string = String(value);\n string = string.slice(0, -2) + \".\" + string.slice(-2);\n const lastTwo = string.substr(string.length - 2);\n const firstCharacter = string.substr(0, 1);\n if (firstCharacter === \".\") {\n string = \"0\" + string;\n }\n if (lastTwo === \"00\") {\n return formatPrice(string.slice(0, -3), showCurrency);\n }\n return formatPrice(string, showCurrency);\n};\n\nexport const formatPriceToNumber = (price: string): number => {\n return parseFloat(price.replace(/,/g, '').replace(/\\$/g, ''));\n}\n\n\nexport const formatPriceTrim = (price: number | string = 0,) : string => {\n const trimText = price ? price.toString()\n .replace(/[^\\d.]/g, '')\n : undefined;\n if(!trimText || trimText === '$') {\n return '$0';\n }\n return formatPrice(trimText);\n};\n\nexport const formatPorcentageTrim = (porcentage: number | string = 0, max ?: number) : string => {\n let integerValue = porcentage;\n let decimalValue = '';\n if(typeof porcentage === 'string' && porcentage.includes('.')) {\n const porcentageParts = porcentage.split('.');\n integerValue = porcentageParts[0];\n decimalValue = '.' + porcentageParts[1];\n }\n const trimPorcentage = formatPriceTrim(integerValue).replace(/\\$/g, '');\n if(!trimPorcentage) {\n return '0.0';\n }\n if(max && trimPorcentage.replace(/,/g, '') as unknown as number >= max) {\n return max.toString();\n }\n return integerValue + decimalValue;\n};\n\nexport const updatePriceInput = (e : Event, form: Record, priceField: string) => {\n e.preventDefault();\n const target = e.target as HTMLInputElement;\n const value = formatPriceTrim(target.value);\n form[priceField] = formatPriceToNumber(value);\n}\n"],"sourceRoot":""}