{"version":3,"sources":["webpack:///./node_modules/dayjs/dayjs.min.js","webpack:///./src/helpers/transformation/number.ts","webpack:///./src/helpers/customer/normalizer.ts","webpack:///./src/helpers/date.ts","webpack:///./src/enums/EoiContractConditions.ts"],"names":["t","e","module","exports","this","n","r","i","s","u","a","o","f","h","c","d","l","$","y","M","name","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","replace","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_19nrcifk0p","actualCoverage","numFormatter","num","b","toFixed","parseStringToNumber","value","cov_201gdpmfnv","normalizeLotDetails","data","size","stageId","blockDepth","blockWidth","releaseDate","price","status","title","documents","contracts","financeDueDate","settlementDate","estateId","_id","landownerId","toLocaleString","stage","dimensions","formatDateDayMonthYear","registrationDate","formatDateMonthYear","estate","id","isRefundable","landowner","normalizeEoiDetails","buyersData","firstBuyer","secondBuyer","buyerType","conveyancerDetails","contractConditions","createdAt","updatedAt","moneyHoldId","contractDocuments","refundData","agentReferrer","eoiData","buyers","filter","item","conveyancer","subjectToFinance","financeStatus","FIRB","otherConditions","financeBrokerDetails","updateContractConditions","eoiDetailsObj","isContractConditionsNotExist","removeContractConditionsFields","Object","keys","EoiContractConditions","FINANCE_STATUS","OTHER_CONDITIONS","SUBJECT_TO_FINANCE","normalizeEstateContacts","address","detailsId","companyName","email","firstName","lastName","phone","developer","person","normalizeLots","lotsWithoutTempEoiStatus","eoi","EoiStatus","TEMP","map","lot","getLotStatus","eoiId","logoUrl","normalizeWaitlistDetails","mode","customerId","state","postcode","lotSize","frontage","budget","isEdit","buyer","from","to","logo","normalizeDataBeforeUpdate","cov_4tnu0h68q","formatDate","undefined","dayjs","formatDateMonthDayYear","formatDateCalendar","formatDateDayMonthYearWithTime","formatDateYYYYMMDD","formatDateToday","cov_299unua920"],"mappings":"sKAAC,SAASA,EAAEC,GAAwDC,EAAOC,QAAQF,IAAlF,CAAuMG,GAAK,WAAY,aAAa,IAAIJ,EAAE,IAAIC,EAAE,IAAII,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,OAAOC,EAAE,QAAQC,EAAE,UAAUC,EAAE,OAAOC,EAAE,OAAOC,EAAE,eAAeC,EAAE,6FAA6FC,EAAE,sFAAsFC,EAAE,CAACC,KAAK,KAAKC,SAAS,2DAA2DC,MAAM,KAAKC,OAAO,wFAAwFD,MAAM,KAAKE,QAAQ,SAASxB,GAAG,IAAIC,EAAE,CAAC,KAAK,KAAK,KAAK,MAAMI,EAAEL,EAAE,IAAI,MAAM,IAAIA,GAAGC,GAAGI,EAAE,IAAI,KAAKJ,EAAEI,IAAIJ,EAAE,IAAI,MAAMwB,EAAE,SAASzB,EAAEC,EAAEI,GAAG,IAAIC,EAAEoB,OAAO1B,GAAG,OAAOM,GAAGA,EAAEqB,QAAQ1B,EAAED,EAAE,GAAG4B,MAAM3B,EAAE,EAAEK,EAAEqB,QAAQE,KAAKxB,GAAGL,GAAG8B,EAAE,CAACtB,EAAEiB,EAAEM,EAAE,SAAS/B,GAAG,IAAIC,GAAGD,EAAEgC,YAAY3B,EAAE4B,KAAKC,IAAIjC,GAAGK,EAAE2B,KAAKE,MAAM9B,EAAE,IAAIE,EAAE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C,IAAA5P,EAAA,KACvC6M,EAAA,kCAAgC+C,IAAA5P,EAAA,KAChC6M,EAAA,eAAa+C,IAAA5P,EAAA,KACb6M,EAAA,sCAJF,EAAY+C,IAAA5G,EAAA,QAAA6D,IAAqB+C,IAAA5G,EAAA,QAArB6D,EAAqB","file":"js/CustomerLotDetails~CustomerWaitlistDetailsEditView~CustomerWaitlistDetailsView.b38eb02e.js","sourcesContent":["!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) 999 && num < 1000000) {\n return (num / 1000).toFixed(0) + \"K\";\n } else if (num >= 1000000) {\n return (num / 1000000).toFixed(1) + \"M\";\n } else return String(num);\n}\n\nexport const parseStringToNumber = (value: string | number): number => {\n if (!value) return 0;\n if (typeof value !== \"string\") return value;\n return Number(value.replace(/\\D/g, \"\"));\n};\n","import { formatDateDayMonthYear, formatDateMonthYear } from \"@/helpers/date\";\nimport {\n Buyer,\n CustomerLotStatus,\n DetailsLot,\n EoiDetails,\n EstateContacts,\n Lot,\n ResponseEoiDetails,\n ResponseEstateContacts,\n ResponseLot,\n ResponseLotForList,\n ContractConditions\n} from \"@/types/CustomerLotDetails\";\nimport { numFormatter } from \"@/helpers/transformation/number\";\nimport { getLotStatus } from \"@/helpers/customer\";\nimport {\n CustomerWaitlistDetails,\n CustomerWaitlistDetailsBeforeUpdate,\n CustomerWaitlistDetailsForUpdate,\n CustomerWaitlistDetailsResponse,\n} from \"@/types/CustomerWaitlistDetails\";\nimport { EoiStatus } from \"@/enums/EoiStatus\";\nimport { EoiContractConditions } from \"@/enums/EoiContractConditions\";\n\nexport function normalizeLotDetails(data: ResponseLot): Lot {\n const {\n size,\n stageId,\n blockDepth,\n blockWidth,\n releaseDate,\n price,\n status,\n title,\n documents,\n contracts,\n financeDueDate,\n settlementDate,\n estateId,\n _id,\n landownerId,\n } = data;\n\n return {\n title,\n status: status as CustomerLotStatus,\n size: `${size.toLocaleString()} m²`,\n stage: stageId.title,\n dimensions:\n blockWidth && blockDepth\n ? `${blockWidth}m x ${blockDepth}m`\n : \"Irregular\",\n releaseDate: releaseDate ? formatDateDayMonthYear(releaseDate) : \"-\",\n price: `$${price.toLocaleString()}`,\n registrationDate: formatDateMonthYear(stageId.registrationDate),\n documents,\n contracts,\n financeDueDate: financeDueDate\n ? formatDateDayMonthYear(financeDueDate)\n : \"-\",\n settlementDate: settlementDate\n ? formatDateDayMonthYear(settlementDate)\n : \"-\",\n estate: {\n title: estateId.title,\n id: estateId._id,\n isRefundable: estateId.isRefundable,\n },\n id: _id,\n landowner: {\n id: landownerId._id,\n },\n };\n}\n\nexport function normalizeEoiDetails(data: ResponseEoiDetails): EoiDetails {\n const {\n buyersData: { firstBuyer, secondBuyer },\n buyerType,\n conveyancerDetails,\n contractConditions,\n status,\n _id,\n createdAt,\n updatedAt,\n moneyHoldId,\n contractDocuments,\n refundData,\n agentReferrer,\n } = data;\n\n const eoiData = {\n buyers: ([firstBuyer, secondBuyer] as Buyer[]).filter((item) => item),\n buyerType,\n conveyancer: conveyancerDetails,\n contractConditions: {\n subjectToFinance: contractConditions?.subjectToFinance ? \"Yes\" : \"No\",\n financeStatus: contractConditions?.financeStatus || null,\n FIRB: contractConditions?.FIRB ? \"Yes\" : \"No\",\n otherConditions: contractConditions?.otherConditions || \"No\",\n financeBrokerDetails: contractConditions?.financeBrokerDetails\n },\n status,\n id: _id,\n createdAt,\n updatedAt,\n moneyHoldId,\n contractDocuments,\n refundData,\n agentReferrer,\n } as EoiDetails;\n\n return updateContractConditions(eoiData, contractConditions);\n};\nfunction updateContractConditions(eoiDetailsObj: EoiDetails, contractConditions: ContractConditions = {}) {\n if (isContractConditionsNotExist(eoiDetailsObj, contractConditions)) {\n delete eoiDetailsObj.contractConditions;\n } else {\n removeContractConditionsFields(eoiDetailsObj, contractConditions);\n }\n return eoiDetailsObj;\n}\n\nfunction isContractConditionsNotExist(eoiDetailsObj: EoiDetails, contractConditions: ContractConditions) {\n return !contractConditions || Object.keys(contractConditions).length === 0;\n}\n\nfunction removeContractConditionsFields(eoiDetailsObj: EoiDetails, contractConditions: ContractConditions) {\n if (!(EoiContractConditions.FIRB in contractConditions) && eoiDetailsObj.contractConditions) {\n delete eoiDetailsObj.contractConditions.FIRB;\n }\n if (!(EoiContractConditions.FINANCE_STATUS in contractConditions)\n && eoiDetailsObj.contractConditions) {\n delete eoiDetailsObj.contractConditions.financeStatus;\n }\n if (!(EoiContractConditions.OTHER_CONDITIONS in contractConditions)\n && eoiDetailsObj.contractConditions) {\n delete eoiDetailsObj.contractConditions.otherConditions;\n }\n if (!(EoiContractConditions.SUBJECT_TO_FINANCE in contractConditions)\n && eoiDetailsObj.contractConditions) {\n delete eoiDetailsObj.contractConditions.subjectToFinance;\n }\n}\n\nexport function normalizeEstateContacts(\n data: ResponseEstateContacts\n): EstateContacts {\n const {\n title,\n address,\n landownerId: { detailsId: { companyName }, email, firstName, lastName, phone },\n } = data;\n return {\n developer: companyName,\n estate: title,\n address: address || \"-\",\n person: `${firstName} ${lastName}` || \"-\",\n phone: phone || \"-\",\n email: email || \"-\",\n };\n}\n\nexport function normalizeLots(data: ResponseLotForList[]): DetailsLot[] {\n const lotsWithoutTempEoiStatus = data.filter(\n (item: ResponseLotForList) => item.eoi.status !== EoiStatus.TEMP\n );\n return lotsWithoutTempEoiStatus.map((item: ResponseLotForList) => {\n const {\n lot: { id, size, price, title },\n eoi,\n estate,\n } = item;\n return {\n status: getLotStatus(eoi.status, item.lot.status),\n size: `${size.toLocaleString()} m2`,\n price: `$${numFormatter(price)}`,\n title,\n id,\n eoiId: eoi.id,\n estate: {\n title: estate.title,\n logoUrl: estate.logoUrl,\n id: estate.id,\n },\n };\n });\n}\n\ntype WaitlistDetailsMode = \"edit\" | \"\";\nexport function normalizeWaitlistDetails(\n data: CustomerWaitlistDetailsResponse,\n mode?: WaitlistDetailsMode\n): CustomerWaitlistDetails {\n const {\n customerId: {\n firstName,\n lastName,\n phone,\n email,\n state,\n postcode,\n },\n lotSize,\n frontage,\n budget,\n estateId: { logoUrl, title },\n } = data;\n const isEdit = mode === \"edit\";\n return {\n buyer: {\n firstName,\n lastName,\n email,\n phone,\n state,\n postcode\n },\n lot: {\n size: isEdit\n ? [lotSize.from, lotSize.to]\n : {\n from: `${Number(lotSize.from).toLocaleString()} m2`,\n to: `${Number(lotSize.to).toLocaleString()} m2`,\n },\n frontage: isEdit\n ? [frontage.from, frontage.to]\n : {\n from: `${Number(frontage.from).toLocaleString()} m`,\n to: `${Number(frontage.to).toLocaleString()} m`,\n },\n budget: isEdit\n ? [budget.from, budget.to]\n : {\n from: `${Number(budget.from).toLocaleString()} $`,\n to: `${Number(budget.to).toLocaleString()} $`,\n },\n },\n estate: {\n logo: logoUrl,\n title,\n id: data.estateId._id,\n },\n };\n}\n\nexport function normalizeDataBeforeUpdate(\n data: CustomerWaitlistDetailsBeforeUpdate\n): CustomerWaitlistDetailsForUpdate {\n const {\n lot: { budget, frontage, size, stage },\n } = data;\n return {\n budget: {\n from: Number(budget[0]),\n to: Number(budget[1]),\n },\n lotSize: {\n from: Number(size[0]),\n to: Number(size[1]),\n },\n frontage: {\n from: Number(frontage[0]),\n to: Number(frontage[1]),\n },\n };\n}\n","import dayjs from \"dayjs\";\n\nexport function formatDate(date: string, format = \"D MMM YYYY\"): string {\n return date !== undefined && dayjs(date).isValid()\n ? dayjs(date).format(format)\n : \"-\";\n}\n\nexport function formatDateMonthYear(\n date: string | Date,\n format = \"MMM YYYY\"\n): string {\n return dayjs(date).format(format);\n}\nexport function formatDateMonthDayYear(date: Date): string {\n return dayjs(date).format(\"MMM D, YYYY\");\n}\nexport function formatDateDayMonthYear(date: Date): string {\n return dayjs(date).format(\"D MMM YYYY\");\n}\n\nexport function formatDateCalendar(date: Date): string {\n return dayjs(date).format(\"YYYY/M/D\");\n}\nexport function formatDateDayMonthYearWithTime(date: Date): string {\n return dayjs(date).format(\"D MMM YYYY, h:mm A\");\n}\n\nexport function formatDateYYYYMMDD(date: string | Date): string {\n return dayjs(date).format(\"YYYY-MM-DD\");\n}\n\nexport function formatDateToday(date: string | Date): string {\n return dayjs(date).format(\"DD MMMM YYYY\");\n}\n","export enum EoiContractConditions {\n SUBJECT_TO_FINANCE = \"subjectToFinance\",\n FINANCE_STATUS = \"financeStatus\",\n FIRB = \"FIRB\",\n OTHER_CONDITIONS = \"otherConditions\",\n}\n"],"sourceRoot":""}