{"version":3,"sources":["webpack:///./src/helpers/validation.ts","webpack:///./src/helpers/smoothScrollToElement.ts","webpack:///./src/helpers/regex.ts","webpack:///./src/helpers/cleavePlugin.ts","webpack:///./src/constants/index.ts","webpack:///./node_modules/core-js/modules/web.self.js","webpack:///./node_modules/core-js/internals/define-built-in-accessor.js"],"names":["cov_2csbspw5gy","actualCoverage","s","hasLowerAndUpperCase","value","f","b","hasLowerCaseRegex","test","hasUpperCaseRegex","hasPasswordLength","length","hasSpecialChars","hasSpecialCharsRegex","hasDigits","hasDigitsRegex","hasNumberAndSymbol","validatePassword","validateDocumentMimeType","mimeType","allowedDocumentMimeTypes","includes","validPhoneNumber","validOptionalPhoneNumber","cov_1bbpsrowmf","getBodyScrollTop","self","pageYOffset","document","documentElement","scrollTop","body","easeOutCubic","t","scrollTo","element","offset","duration","yPos","getBoundingClientRect","top","startY","window","scrollY","difference","startTime","performance","now","step","progress","amount","requestAnimationFrame","getRegex","string","cov_1f6uyvd7xm","RegExp","latinCharactersRegex","phoneNumberOption","phone","cov_290zsd572f","blocks","startsWith","delimiter","phonePlaceholder","getCurrencyOptions","numeral","numeralThousandsGroupStyle","numeralPositiveOnly","noImmediatePrefix","cov_1doyi2xpv9","MaxFileSize","$","global","defineBuiltInAccessor","DESCRIPTORS","$TypeError","TypeError","defineProperty","Object","INCORRECT_VALUE","descriptor","getOwnPropertyDescriptor","get","enumerable","set","this","writable","configurable","simple","forced","error","makeBuiltIn","module","exports","target","name","getter","setter"],"mappings":"8wOA4BG,OAAAA,EAAA,kBAAAC,KAAAD,IAtBoDA,IAAAE,EAAA,KAEhD,MAAMC,EAAwBC,IACnCJ,IAAAK,EAAA,KAAAL,IAAAE,EAAA,KAAAF,IAAAM,EAAA,QAAAC,uBAAkBC,KAAKJ,KAAMJ,IAAAM,EAAA,QAAIG,uBAAkBD,KAAKJ,KAAOJ,IAAAE,EAAA,KAC1D,MAAMQ,EAAqBN,IAChCJ,IAAAK,EAAA,KAAAL,IAAAE,EAAA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,CACpCU,IAAK,WACH,OAAOV,GAETY,IAAK,SAAchF,GACjB,GAAIiF,OAASb,EAAQ,MAAMG,EAAW,sBACtCE,EAAeL,EAAQ,OAAQ,CAC7BpE,MAAOA,EACPkF,UAAU,EACVC,cAAc,EACdJ,YAAY,KAGhBI,cAAc,EACdJ,YAAY,SAGXZ,EAAE,CAAEC,QAAQ,EAAMgB,QAAQ,EAAMC,OAAQV,GAAmB,CAChErD,KAAM8C,IAER,MAAOkB,M,qBCxCT,IAAIC,EAAc,EAAQ,QACtBd,EAAiB,EAAQ,QAE7Be,EAAOC,QAAU,SAAUC,EAAQC,EAAMf,GAGvC,OAFIA,EAAWE,KAAKS,EAAYX,EAAWE,IAAKa,EAAM,CAAEC,QAAQ,IAC5DhB,EAAWI,KAAKO,EAAYX,EAAWI,IAAKW,EAAM,CAAEE,QAAQ,IACzDpB,EAAexE,EAAEyF,EAAQC,EAAMf","file":"js/BuilderView~EOIEditForm~EstateEOIRequest~Rei~customer-terms~landing~privacy-policy~terms.8689195f.js","sourcesContent":["import {\n hasLowerCaseRegex,\n hasUpperCaseRegex,\n hasSpecialCharsRegex,\n hasDigitsRegex,\n} from \"@/helpers/regex\";\nimport { allowedDocumentMimeTypes } from \"@/constants\";\n\nexport const hasLowerAndUpperCase = (value: string) =>\n hasLowerCaseRegex.test(value) && hasUpperCaseRegex.test(value);\nexport const hasPasswordLength = (value: string) =>\n value.length >= 4 && value.length <= 16;\nexport const hasSpecialChars = (value: string) =>\n hasSpecialCharsRegex.test(value);\nexport const hasDigits = (value: string) => hasDigitsRegex.test(value);\nexport const hasNumberAndSymbol = (value: string) =>\n hasDigits(value) && hasSpecialChars(value);\nexport const validatePassword = (value: string) =>\n hasLowerAndUpperCase(value) &&\n hasPasswordLength(value) &&\n hasNumberAndSymbol(value);\nexport const validateDocumentMimeType = (mimeType: string): boolean =>\n allowedDocumentMimeTypes.includes(mimeType);\nexport const validPhoneNumber = (value: string) =>\n /^(\\+61|0)4\\d{8}$/.test(value);\nexport const validOptionalPhoneNumber = (value: string) => {\n if (value) {\n return validPhoneNumber(value);\n }\n return true;\n};\n","function getBodyScrollTop() {\n return (\n self.pageYOffset ||\n (document.documentElement && document.documentElement.scrollTop) ||\n (document.body && document.body.scrollTop)\n );\n}\nconst easeOutCubic = (t: number) => --t * t * t + 1;\n\nexport const scrollTo = (\n element: Element,\n offset = 0,\n duration = 600\n): void => {\n if (element) {\n const yPos =\n getBodyScrollTop() + element.getBoundingClientRect().top - offset;\n const startY = window.scrollY;\n const difference = yPos - startY;\n const startTime = performance.now();\n\n const step = () => {\n const progress = (performance.now() - startTime) / duration;\n const amount = easeOutCubic(progress);\n window.scrollTo({ top: startY + amount * difference });\n if (progress < 0.99) {\n window.requestAnimationFrame(step);\n }\n };\n\n step();\n }\n};\n","const getRegex = (string: string | RegExp) => new RegExp(string, \"u\");\n\nexport const hasLowerCaseRegex = getRegex(\"^.*[a-z].*$\");\nexport const hasUpperCaseRegex = getRegex(\"^.*[A-Z].*$\");\nexport const hasSpecialCharsRegex = getRegex(\n \"^.*[`!@#$%^&*()_+\\\\-=\\\\[\\\\]{};':\\\"\\\\\\\\|,.<>\\\\/?~].*$\"\n);\nexport const hasDigitsRegex = getRegex(\"^.*[+0-9].*$\");\nexport const latinCharactersRegex = getRegex(/^[A-Za-z0-9(),.`\\-&\\s]*$/);\n","export function phoneNumberOption(phone: string) {\n return {\n blocks: !phone || phone?.startsWith(\"+\") ? [3, 3, 3, 3] : [4, 3, 3],\n delimiter: \" \",\n };\n}\n\nexport const phonePlaceholder = \"0412 345 678\";\n\nexport const getCurrencyOptions = ({\n numeral = true,\n numeralThousandsGroupStyle = \"thousand\",\n numeralPositiveOnly = true,\n}: {\n numeral?: boolean;\n numeralThousandsGroupStyle?: NumeralThousandsGroupStyle;\n numeralPositiveOnly?: boolean;\n}): CurrencyOptions => ({\n numeral,\n numeralThousandsGroupStyle,\n numeralPositiveOnly,\n noImmediatePrefix: true,\n});\ntype NumeralThousandsGroupStyle = \"thousand\" | \"lakh\" | \"wan\";\n\ntype CurrencyOptions = {\n numeral: boolean;\n numeralThousandsGroupStyle: NumeralThousandsGroupStyle;\n numeralPositiveOnly: boolean;\n noImmediatePrefix: boolean;\n};\n","export const allowedDocumentMimeTypes = [\n \"image/jpeg\",\n \"image/png\",\n \"image/heic\",\n \"image/heif\",\n \".heic\",\n \"application/pdf\",\n];\nexport const MaxFileSize = 26214400;\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar INCORRECT_VALUE = global.self !== global;\n\n// `self` getter\n// https://html.spec.whatwg.org/multipage/window-object.html#dom-self\ntry {\n if (DESCRIPTORS) {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var descriptor = Object.getOwnPropertyDescriptor(global, 'self');\n // some engines have `self`, but with incorrect descriptor\n // https://github.com/denoland/deno/issues/15765\n if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {\n defineBuiltInAccessor(global, 'self', {\n get: function self() {\n return global;\n },\n set: function self(value) {\n if (this !== global) throw $TypeError('Illegal invocation');\n defineProperty(global, 'self', {\n value: value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n },\n configurable: true,\n enumerable: true\n });\n }\n } else $({ global: true, simple: true, forced: INCORRECT_VALUE }, {\n self: global\n });\n} catch (error) { /* empty */ }\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n"],"sourceRoot":""}