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AM,EAAU,IAAI,EAAwB,EAE5C,OAAM,EAAS,CACX,OAAQ,EACR,gBAAiB,OACjB,MAAO,OACP,cAAe,aACf,cAAe,CAAA,EACf,cAAe,KAEX,EAAa,OAAA,MAAA,CAAA,CAAA,EADgD,EAAO,cAAc,EAEtF,CACH,EAEL,CAAC,GAIT,AAAA,CAAA,EAAA,EAAA,GAAA,AAAA,EAAC,EAAA,cAAA,CAAc,CACX,OAAQ,EACR,aAAc,EAAkB,YAAY,CAC5C,gBAAiB,CAAE,WAAY,KAAK,EACpC,WAAY,KAAQ,EAAc,CAAA,EAAO,EACzC,QAAS,IAAM,EAAkB,CAAA,GACjC,UAAW,CAAc,GAE7B,AAAA,CAAA,EAAA,EAAA,GAAA,AAAA,EAAC,EAAmB,CAChB,OAAQ,EACR,UAAW,EACX,aAAc,CAAiB,GACjC,AAAA,EACU,GACJ,AAAA,EACF,EACA,EAGlC,ED3NqB,CAAA","sources":["","node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/@parcel/runtime-js/lib/runtime-cde57af464b14c2f.js","node_modules/@parcel/runtime-js/lib/helpers/browser/esm-js-loader.js","node_modules/@parcel/runtime-js/lib/runtime-34a6bf34e7b9d1cf.js","src/Pages/index.tsx","src/Pages/HomePage.tsx","src/Entities/RealEstateAgentsProfile/RealEstateAgentsProfile.ts","src/Entities/RealEstateAgentsProfile/RealEstateAgentsProfileDef.ts","src/Components/SubscribeNewsletter.tsx"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequireb2f2\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequireb2f2\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"27Lyk\", function(module, exports) {\n\n$parcel$export(module.exports, \"register\", () => $18c11f3350a906ea$export$6503ec6e8aabbaf, (v) => $18c11f3350a906ea$export$6503ec6e8aabbaf = v);\n$parcel$export(module.exports, \"resolve\", () => $18c11f3350a906ea$export$f7ad0328861e2f03, (v) => $18c11f3350a906ea$export$f7ad0328861e2f03 = v);\nvar $18c11f3350a906ea$export$6503ec6e8aabbaf;\nvar $18c11f3350a906ea$export$f7ad0328861e2f03;\n\"use strict\";\nvar $18c11f3350a906ea$var$mapping = new Map();\nfunction $18c11f3350a906ea$var$register(baseUrl, manifest) {\n for(var i = 0; i < manifest.length - 1; i += 2)$18c11f3350a906ea$var$mapping.set(manifest[i], {\n baseUrl: baseUrl,\n path: manifest[i + 1]\n });\n}\nfunction $18c11f3350a906ea$var$resolve(id) {\n var resolved = $18c11f3350a906ea$var$mapping.get(id);\n if (resolved == null) throw new Error(\"Could not resolve bundle with id \" + id);\n return new URL(resolved.path, resolved.baseUrl).toString();\n}\n$18c11f3350a906ea$export$6503ec6e8aabbaf = $18c11f3350a906ea$var$register;\n$18c11f3350a906ea$export$f7ad0328861e2f03 = $18c11f3350a906ea$var$resolve;\n\n});\n\nparcelRegister(\"iCOS6\", function(module, exports) {\n\nvar $Gr8vk = parcelRequire(\"Gr8vk\");\nmodule.exports = Promise.all([\n $Gr8vk(\"ehsgd\"),\n $Gr8vk(\"2dZmW\")\n]).then(()=>parcelRequire(\"94v8F\"));\n\n});\nparcelRegister(\"Gr8vk\", function(module, exports) {\n\"use strict\";\n\nfunction $07f8f9093a769793$var$load(id) {\n // eslint-disable-next-line no-undef\n return import((parcelRequire(\"27Lyk\")).resolve(id));\n}\nmodule.exports = $07f8f9093a769793$var$load;\n\n});\n\n\nvar $0a1251763b39a3c8$exports = {};\n\n(parcelRequire(\"27Lyk\")).register(new URL(\"\", import.meta.url).toString(), JSON.parse('[\"dUprT\",\"index.b1c65f65.js\",\"2dZmW\",\"RealEstateAgentsProfileForm.23e2065f.js\",\"k2G2X\",\"RealEstateAgentsProfilePersonalInfoForm.222f3a37.js\",\"gao5B\",\"RealEstateAgentsForm.fa91a4b2.js\",\"5BPwj\",\"RealEstateAgentsAgreementsForm.106ed0e0.js\",\"iFWZH\",\"RealEstateAgentsForm.58da81e9.js\",\"wHp9X\",\"RealEstateAgentsProfileMyDataForm.d6b209e7.js\",\"4qiG1\",\"RealEstateAgentsProfileBusinessAddressForm.a1e9596f.js\",\"dAAkE\",\"RealEstateAgentsProfileOperatingAreasForm.b959795a.js\",\"ehsgd\",\"RealEstateAgentsProfileForm.a4a8e704.js\",\"8ETOF\",\"index.7623a38a.js\",\"jtEHA\",\"index.08a8c440.css\",\"lxXFh\",\"index.88781123.js\"]'));\n\n\nvar $ayMG0 = parcelRequire(\"ayMG0\");\n\nvar $aRPiL = parcelRequire(\"aRPiL\");\n\nvar $ayMG0 = parcelRequire(\"ayMG0\");\n\nvar $8TaxK = parcelRequire(\"8TaxK\");\nvar $64A2P = parcelRequire(\"64A2P\");\n\nvar $cnNDs = parcelRequire(\"cnNDs\");\n\nvar $agugM = parcelRequire(\"agugM\");\nvar $7jJlY = parcelRequire(\"7jJlY\");\n\nvar $64A2P = parcelRequire(\"64A2P\");\n\nvar $49qEn = parcelRequire(\"49qEn\");\nparcelRequire(\"f2hMu\");\n\nvar $acw62 = parcelRequire(\"acw62\");\n\nvar $3OncY = parcelRequire(\"3OncY\");\n\nvar $49qEn = parcelRequire(\"49qEn\");\n\nvar $4eVGs = parcelRequire(\"4eVGs\");\n\nvar $49qEn = parcelRequire(\"49qEn\");\nconst $d826af09250750e7$var$columns = ()=>Object.assign({\n c_user_id: new (0, $49qEn.EntityColumn)({\n name: \"c_user_id\",\n type: \"char\",\n length: 20,\n flags: (0, $49qEn.CommonFlags).PK,\n prompt: \"User Id\"\n }),\n vc_person_name: new (0, $49qEn.EntityColumn)({\n name: \"vc_person_name\",\n type: \"varchar\",\n length: 255,\n flags: (0, $49qEn.CommonFlags).Edit,\n prompt: \"Name\"\n }),\n vc_person_lastname: new (0, $49qEn.EntityColumn)({\n name: \"vc_person_lastname\",\n type: \"varchar\",\n length: 255,\n flags: (0, $49qEn.CommonFlags).Edit,\n prompt: \"Lastname\"\n }),\n vc_person_email: new (0, $49qEn.EntityColumn)({\n name: \"vc_person_email\",\n type: \"varchar\",\n length: 2048,\n flags: (0, $49qEn.CommonFlags).Edit,\n prompt: \"Email\"\n }),\n vc_contact_phone: new (0, $49qEn.EntityColumn)({\n name: \"vc_contact_phone\",\n type: \"varchar\",\n length: 255,\n flags: (0, $49qEn.CommonFlags).Edit | (0, $49qEn.EntityColumnFlags).nullable,\n prompt: \"Phone\"\n }),\n c_photofileprocess_id: new (0, $49qEn.EntityColumn)({\n name: \"c_photofileprocess_id\",\n type: \"char\",\n length: 20,\n flags: (0, $49qEn.CommonFlags).FK | (0, $49qEn.EntityColumnFlags).nullable,\n prompt: \"Photofileprocess Id\"\n }),\n vc_photoguid: new (0, $49qEn.EntityColumn)({\n name: \"vc_photoguid\",\n type: \"varchar\",\n length: 255,\n flags: (0, $49qEn.CommonFlags).Edit | (0, $49qEn.EntityColumnFlags).nullable,\n prompt: \"Photoguid\"\n })\n }, (0, $49qEn.DefaultColumns)());\nconst $d826af09250750e7$var$views = ()=>({\n rsap_brwStandard: {\n name: \"rsap_brwStandard\",\n keyMappings: {\n c_user_id: 0\n }\n }\n });\nclass $d826af09250750e7$export$66d6f03280e1baec extends (0, $49qEn.EntityDefinition) {\n constructor(){\n super(\"RealEstateAgentsProfile\");\n this.columns = $d826af09250750e7$var$columns();\n this.views = $d826af09250750e7$var$views();\n }\n}\n\n\nconst $fb71743d493a87e9$export$f1f529ed37f01e5 = (0, $4eVGs.default);\nconst $fb71743d493a87e9$export$3dfd10f0e5139593 = \"* Completing your profile data will help you get better results when people are looking for an Agent\";\n\nclass $fb71743d493a87e9$export$4d677fe99eee5013 extends (0, $49qEn.Entity) {\n constructor(client, parentKeys = {}){\n super(client, new (0, $d826af09250750e7$export$66d6f03280e1baec)(), parentKeys);\n this.Form = (parcelRequire(\"iCOS6\")).then((module)=>module.RealEstateAgentsProfileForm);\n this.Title = \"Profile\";\n this.HelpText = $fb71743d493a87e9$export$3dfd10f0e5139593;\n this.Icon = $fb71743d493a87e9$export$f1f529ed37f01e5;\n }\n}\n\n\n\nvar $6gfte = parcelRequire(\"6gfte\");\n\nvar $ayMG0 = parcelRequire(\"ayMG0\");\n\nvar $gU5rH = parcelRequire(\"gU5rH\");\nvar $9mTYo = parcelRequire(\"9mTYo\");\nvar $9VIWE = parcelRequire(\"9VIWE\");\nvar $cjohz = parcelRequire(\"cjohz\");\nvar $ew26C = parcelRequire(\"ew26C\");\n\nvar $49qEn = parcelRequire(\"49qEn\");\n\nvar $acw62 = parcelRequire(\"acw62\");\n\nvar $39VF9 = parcelRequire(\"39VF9\");\n\nvar $txhqr = parcelRequire(\"txhqr\");\nfunction $1171a2ddd4496f32$export$bab2676155c94c43({ client: client, openState: openState, setOpenState: setOpenState }) {\n const modals = (0, $49qEn.useModal)();\n const openForm = (0, $49qEn.useOpenForm)();\n (0, $acw62.useEffect)(()=>{\n const open = async ()=>{\n const newsletter = new (0, $39VF9.NewsletterSubscriptions)(client);\n await openForm({\n entity: newsletter,\n initialFormMode: \"add\",\n OKText: \"Subscribe\",\n onModalClosed: ()=>{\n setOpenState(false);\n },\n onModalSaved: async (status)=>{\n var _a;\n if (!status.error && !((_a = status.data) === null || _a === void 0 ? void 0 : _a.Failed)) await modals.open({\n modalProps: {\n size: \"md\",\n title: (0, $ayMG0.jsx)((0, $ew26C.Title), {\n order: 3,\n children: \"Thank you for subscribing!\"\n })\n },\n content: (0, $ayMG0.jsxs)((0, $9VIWE.Stack), {\n children: [\n (0, $ayMG0.jsxs)((0, $9mTYo.Group), {\n spacing: \"xs\",\n noWrap: true,\n children: [\n (0, $ayMG0.jsx)((0, $49qEn.CircleFilledIcon), {\n width: \"2rem\",\n icon: (0, $ayMG0.jsx)((0, $txhqr.default), {\n size: \"1rem\"\n }),\n backColor: \"green\"\n }),\n (0, $ayMG0.jsx)((0, $cjohz.Text), {\n children: \"You have successfully subscribed to our newsletter. We will keep you updated with our progress.\"\n })\n ]\n }),\n (0, $ayMG0.jsx)((0, $9mTYo.Group), {\n position: \"right\",\n children: (0, $ayMG0.jsx)((0, $gU5rH.Button), {\n onClick: async ()=>await modals.close(),\n children: \"Close\"\n })\n })\n ]\n })\n });\n }\n });\n };\n if (openState) open();\n }, [\n openState,\n setOpenState,\n client\n ]);\n return null;\n}\n\n\nconst $c4aa48087ae34a77$var$publicEndpoints = {\n NewsletterSubscriptions: {\n EntityName: \"NewsletterSubscriptions\",\n AllowedAccess: (0, $49qEn.EndpointAccess).Create\n }\n};\nconst $c4aa48087ae34a77$var$client = new (0, $49qEn.MicroMClient)({\n api_url: (0, $3OncY.API_URL),\n app_id: (0, $3OncY.APP_ID),\n publicEndpoints: $c4aa48087ae34a77$var$publicEndpoints\n});\n(0, $49qEn.DateInputFieldDefaultProps).valueFormat = \"MM/DD/YYYY\";\nfunction $c4aa48087ae34a77$export$36d69433c4f81145() {\n const theme = (0, $64A2P.useMantineTheme)();\n const [themeColor, setThemeColor] = (0, $acw62.useState)({\n colorKey: theme.primaryColor,\n colorShade: theme.primaryShade\n });\n const preferredColorScheme = (0, $agugM.useColorScheme)();\n (0, $49qEn.GoogleMapsAPILoaderConfig).apiKey = \"AIzaSyDYR3ePatdxpa5UKy-SC1-7ZXp_cPOJr8Q\";\n (0, $49qEn.UseLocaleFormatDefaultProps).initialLocale = \"en-US\";\n (0, $49qEn.DEFAULT_MAP_CENTER).lat = 37.09024;\n (0, $49qEn.DEFAULT_MAP_CENTER).lng = -95.712891;\n const [colorScheme, setColorScheme] = (0, $7jJlY.useLocalStorage)({\n key: \"mantine-color-scheme\",\n defaultValue: preferredColorScheme,\n getInitialValueInEffect: true\n });\n const toggleColorScheme = (value)=>{\n setColorScheme(value || (colorScheme === \"dark\" ? \"light\" : \"dark\"));\n };\n const modalOverlayProps = {\n overlayProps: {\n color: colorScheme === \"dark\" ? theme.colors.dark[3] : theme.colors.gray[9],\n opacity: 0.55,\n blur: 3\n }\n };\n const [content, setContent] = (0, $acw62.useState)((0, $ayMG0.jsx)((0, $ayMG0.Fragment), {}));\n const { isLoggedIn: isLoggedIn, setIsLoggedIn: setIsLoggedIn, loggedInInfo: loggedInInfo } = (0, $49qEn.useIsLoggedIn)({\n client: $c4aa48087ae34a77$var$client\n });\n const [showLoginModal, setShowLoginModal] = (0, $acw62.useState)(false);\n const [aglClaims, setAglClaims] = (0, $acw62.useState)();\n const [showBackoffice, setShowBackoffice] = (0, $acw62.useState)(false);\n (0, $acw62.useEffect)(()=>{\n let isMounted = true;\n const checkBackoffice = async ()=>{\n try {\n const menus = await $c4aa48087ae34a77$var$client.getMenus();\n if (isMounted) {\n const hasBackoffice = [\n ...menus\n ].some((menu)=>menu.startsWith(\"BackofficeMenu_\"));\n setShowBackoffice(hasBackoffice);\n }\n } catch (error) {\n console.error(\"Error getting menus:\", error);\n }\n };\n const agl_info = loggedInInfo;\n agl_info.vc_photourl = $c4aa48087ae34a77$var$client.getDocumentURL(agl_info.vc_photoguid || \"\");\n setAglClaims(Object.assign({}, agl_info));\n checkBackoffice();\n return ()=>{\n isMounted = false;\n };\n }, [\n loggedInInfo\n ]);\n const [openNewsletter, setOpenNewsletter] = (0, $acw62.useState)(false);\n // use effect to bind buttons to newsletter subscriptions\n (0, $acw62.useEffect)(()=>{\n const findAnAgent = document.getElementById(\"findAnAgentButton\");\n const referAClientButton = document.getElementById(\"referAClientButton\");\n const searchButton = document.getElementById(\"searchButton\");\n const chooseUsButton = document.getElementById(\"chooseUsButton\");\n const referralButton = document.getElementById(\"referralButton\");\n const handleClick = ()=>setOpenNewsletter(true);\n if (findAnAgent) findAnAgent.addEventListener(\"click\", handleClick);\n if (referAClientButton) referAClientButton.addEventListener(\"click\", handleClick);\n if (searchButton) searchButton.addEventListener(\"click\", handleClick);\n if (chooseUsButton) chooseUsButton.addEventListener(\"click\", handleClick);\n if (referralButton) referralButton.addEventListener(\"click\", handleClick);\n return ()=>{\n if (findAnAgent) findAnAgent.removeEventListener(\"click\", handleClick);\n if (referAClientButton) referAClientButton.removeEventListener(\"click\", ()=>handleClick);\n if (searchButton) searchButton.removeEventListener(\"click\", handleClick);\n if (chooseUsButton) chooseUsButton.removeEventListener(\"click\", handleClick);\n if (referralButton) referralButton.removeEventListener(\"click\", handleClick);\n };\n }, []);\n const PortalContent = (0, $acw62.useMemo)(()=>{\n return isLoggedIn ? (0, $ayMG0.jsx)((0, $6gfte.LoggedInMenu), {\n showBackoffice: showBackoffice,\n colorScheme: colorScheme,\n toggleColorScheme: toggleColorScheme,\n loggedInUser: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.username,\n initials: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.userinitials,\n photoURL: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.vc_photourl,\n onLogOut: async ()=>{\n await $c4aa48087ae34a77$var$client.logoff();\n setIsLoggedIn(false);\n setShowLoginModal(false);\n },\n onEditProfile: async (openform)=>{\n if (!aglClaims) return;\n const profile = new (0, $fb71743d493a87e9$export$4d677fe99eee5013)($c4aa48087ae34a77$var$client);\n await openform({\n entity: profile,\n initialFormMode: \"edit\",\n title: \"Edit\",\n modalFormSize: \"fullscreen\",\n getDataOnInit: true,\n onModalClosed: ()=>{\n const new_claims = $c4aa48087ae34a77$var$client.LOGGED_IN_USER;\n setAglClaims(new_claims ? Object.assign({}, new_claims) : undefined);\n }\n });\n }\n }) : (0, $ayMG0.jsx)(\"button\", {\n className: \"log-in-wrapper\",\n onClick: ()=>setShowLoginModal(true),\n children: (0, $ayMG0.jsx)(\"div\", {\n className: \"log-in\",\n children: \"Log in\"\n })\n });\n }, [\n isLoggedIn,\n showBackoffice,\n colorScheme,\n aglClaims,\n setIsLoggedIn\n ]);\n return (0, $ayMG0.jsx)((0, $49qEn.MicroMRouter), {\n children: (0, $ayMG0.jsx)((0, $8TaxK.ColorSchemeProvider), {\n colorScheme: colorScheme,\n toggleColorScheme: toggleColorScheme,\n children: (0, $ayMG0.jsxs)((0, $64A2P.MantineProvider), {\n theme: {\n colorScheme: colorScheme,\n focusRing: \"auto\",\n primaryColor: themeColor.colorKey,\n primaryShade: themeColor.colorShade\n },\n withCSSVariables: true,\n children: [\n (0, $ayMG0.jsx)((0, $49qEn.GridGlobalStyles), {}),\n (0, $ayMG0.jsx)((0, $cnNDs.DatesProvider), {\n settings: {\n locale: \"en\"\n },\n children: (0, $ayMG0.jsxs)((0, $49qEn.ModalsManager), {\n modalProps: modalOverlayProps,\n animationDuration: 0,\n children: [\n !isLoggedIn && (0, $ayMG0.jsx)(\"div\", {\n className: \"login-button\",\n children: (0, $ayMG0.jsx)(\"button\", {\n onClick: async ()=>setShowLoginModal(true),\n children: \"Login\"\n })\n }),\n isLoggedIn && (0, $ayMG0.jsx)((0, $6gfte.LoggedInMenu), {\n showBackoffice: showBackoffice,\n colorScheme: colorScheme,\n toggleColorScheme: toggleColorScheme,\n loggedInUser: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.username,\n initials: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.userinitials,\n photoURL: aglClaims === null || aglClaims === void 0 ? void 0 : aglClaims.vc_photourl,\n onLogOut: async ()=>{\n await $c4aa48087ae34a77$var$client.logoff();\n setIsLoggedIn(false);\n setShowLoginModal(false);\n },\n onEditProfile: async (openform)=>{\n if (!aglClaims) return;\n const profile = new (0, $fb71743d493a87e9$export$4d677fe99eee5013)($c4aa48087ae34a77$var$client);\n await openform({\n entity: profile,\n initialFormMode: \"edit\",\n title: \"Edit\",\n modalFormSize: \"fullscreen\",\n getDataOnInit: true,\n onModalClosed: ()=>{\n const new_claims = $c4aa48087ae34a77$var$client.LOGGED_IN_USER;\n setAglClaims(Object.assign({}, new_claims));\n }\n });\n }\n }),\n (0, $ayMG0.jsx)((0, $49qEn.LoginModalForm), {\n client: $c4aa48087ae34a77$var$client,\n overlayProps: modalOverlayProps.overlayProps,\n transitionProps: {\n transition: \"pop\"\n },\n onLoggedIn: ()=>{\n setIsLoggedIn(true);\n },\n onClose: ()=>setShowLoginModal(false),\n openState: showLoginModal\n }),\n (0, $ayMG0.jsx)((0, $1171a2ddd4496f32$export$bab2676155c94c43), {\n client: $c4aa48087ae34a77$var$client,\n openState: openNewsletter,\n setOpenState: setOpenNewsletter\n })\n ]\n })\n })\n ]\n })\n })\n });\n}\n\n\nconst $59fd530323d9e590$var$container = document.getElementById(\"applogin\");\nconst $59fd530323d9e590$var$root = (0, $aRPiL.createRoot)($59fd530323d9e590$var$container);\n$59fd530323d9e590$var$root.render((0, $ayMG0.jsx)((0, $c4aa48087ae34a77$export$36d69433c4f81145), {}));\n\n\n//# sourceMappingURL=index.b1c65f65.js.map\n","\"use strict\";\n\nvar mapping = new Map();\nfunction register(baseUrl, manifest) {\n for (var i = 0; i < manifest.length - 1; i += 2) {\n mapping.set(manifest[i], {\n baseUrl: baseUrl,\n path: manifest[i + 1]\n });\n }\n}\nfunction resolve(id) {\n var resolved = mapping.get(id);\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n return new URL(resolved.path, resolved.baseUrl).toString();\n}\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","let load = require('./helpers/browser/esm-js-loader');\nmodule.exports = Promise.all([load(\"ehsgd\"), load(\"2dZmW\")]).then(() => parcelRequire('94v8F'));","\"use strict\";\n\nfunction load(id) {\n // eslint-disable-next-line no-undef\n return __parcel__import__(require('../bundle-manifest').resolve(id));\n}\nmodule.exports = load;","require('./helpers/bundle-manifest').register(new __parcel__URL__(\"\").toString(),JSON.parse(\"[\\\"dUprT\\\",\\\"index.b1c65f65.js\\\",\\\"2dZmW\\\",\\\"RealEstateAgentsProfileForm.23e2065f.js\\\",\\\"k2G2X\\\",\\\"RealEstateAgentsProfilePersonalInfoForm.222f3a37.js\\\",\\\"gao5B\\\",\\\"RealEstateAgentsForm.fa91a4b2.js\\\",\\\"5BPwj\\\",\\\"RealEstateAgentsAgreementsForm.106ed0e0.js\\\",\\\"iFWZH\\\",\\\"RealEstateAgentsForm.58da81e9.js\\\",\\\"wHp9X\\\",\\\"RealEstateAgentsProfileMyDataForm.d6b209e7.js\\\",\\\"4qiG1\\\",\\\"RealEstateAgentsProfileBusinessAddressForm.a1e9596f.js\\\",\\\"dAAkE\\\",\\\"RealEstateAgentsProfileOperatingAreasForm.b959795a.js\\\",\\\"ehsgd\\\",\\\"RealEstateAgentsProfileForm.a4a8e704.js\\\",\\\"8ETOF\\\",\\\"index.7623a38a.js\\\",\\\"jtEHA\\\",\\\"index.08a8c440.css\\\",\\\"lxXFh\\\",\\\"index.88781123.js\\\"]\"));","import { createRoot } from \"react-dom/client\";\r\nimport { HomePage } from \"./HomePage\";\r\n\r\nconst container = document.getElementById(\"applogin\");\r\nconst root = createRoot(container!);\r\nroot.render();","import { ColorScheme, ColorSchemeProvider, MantineProvider } from '@mantine/core';\r\nimport { DatesProvider } from '@mantine/dates';\r\nimport { useColorScheme, useLocalStorage } from '@mantine/hooks';\r\nimport { useMantineTheme } from '@mantine/styles';\r\nimport { ColorConfigurationValue, DEFAULT_MAP_CENTER, DateInputFieldDefaultProps, EndpointAccess, GoogleMapsAPILoaderConfig, GridGlobalStyles, LoginModalForm, MicroMClient, MicroMRouter, ModalsManager, PublicEndpoint, UseLocaleFormatDefaultProps, useIsLoggedIn } from '@mcurros2/microm';\r\nimport 'dayjs/locale/en';\r\nimport { ReactNode, useEffect, useMemo, useState } from 'react';\r\nimport { API_URL, APP_ID } from '../config';\r\nimport { RealEstateAgentsProfile } from '../Entities/RealEstateAgentsProfile/RealEstateAgentsProfile';\r\nimport { AgentListClaimTypes } from '../Components/AgentListClaimTypes';\r\nimport { LoggedInMenu } from '../Components/LoggedInMenu';\r\nimport { SubscribeNewsletter } from '../Components/SubscribeNewsletter';\r\n\r\nconst publicEndpoints: Record = {\r\n NewsletterSubscriptions: {\r\n EntityName: 'NewsletterSubscriptions',\r\n AllowedAccess: EndpointAccess.Create,\r\n }\r\n}\r\n\r\nconst client = new MicroMClient({ api_url: API_URL, app_id: APP_ID, publicEndpoints: publicEndpoints });\r\n\r\nDateInputFieldDefaultProps.valueFormat = 'MM/DD/YYYY';\r\n\r\nexport function HomePage() {\r\n const theme = useMantineTheme();\r\n const [themeColor, setThemeColor] = useState({ colorKey: theme.primaryColor, colorShade: theme.primaryShade });\r\n const preferredColorScheme = useColorScheme();\r\n\r\n GoogleMapsAPILoaderConfig.apiKey = \"AIzaSyDYR3ePatdxpa5UKy-SC1-7ZXp_cPOJr8Q\";\r\n\r\n UseLocaleFormatDefaultProps.initialLocale = 'en-US';\r\n DEFAULT_MAP_CENTER.lat = 37.09024;\r\n DEFAULT_MAP_CENTER.lng = -95.712891;\r\n\r\n const [colorScheme, setColorScheme] = useLocalStorage({\r\n key: 'mantine-color-scheme',\r\n defaultValue: preferredColorScheme,\r\n getInitialValueInEffect: true,\r\n });\r\n\r\n const toggleColorScheme = (value?: ColorScheme) => {\r\n setColorScheme(value || (colorScheme === 'dark' ? 'light' : 'dark'))\r\n };\r\n\r\n\r\n const modalOverlayProps = {\r\n overlayProps: {\r\n color: colorScheme === 'dark' ? theme.colors.dark[3] : theme.colors.gray[9],\r\n opacity: 0.55,\r\n blur: 3,\r\n }\r\n };\r\n\r\n const [content, setContent] = useState(<>);\r\n const { isLoggedIn, setIsLoggedIn, loggedInInfo } = useIsLoggedIn({ client });\r\n\r\n const [showLoginModal, setShowLoginModal] = useState(false);\r\n\r\n const [aglClaims, setAglClaims] = useState();\r\n const [showBackoffice, setShowBackoffice] = useState(false);\r\n\r\n useEffect(() => {\r\n let isMounted = true;\r\n\r\n const checkBackoffice = async () => {\r\n try {\r\n const menus: Set = await client.getMenus();\r\n if (isMounted) {\r\n const hasBackoffice = [...menus].some((menu) => menu.startsWith(\"BackofficeMenu_\"));\r\n setShowBackoffice(hasBackoffice);\r\n }\r\n } catch (error) {\r\n console.error(\"Error getting menus:\", error);\r\n }\r\n };\r\n\r\n const agl_info = loggedInInfo as AgentListClaimTypes;\r\n agl_info.vc_photourl = client.getDocumentURL(agl_info.vc_photoguid || '');\r\n\r\n setAglClaims({ ...agl_info });\r\n checkBackoffice();\r\n\r\n return () => {\r\n isMounted = false;\r\n };\r\n }, [loggedInInfo]);\r\n\r\n\r\n const [openNewsletter, setOpenNewsletter] = useState(false);\r\n\r\n // use effect to bind buttons to newsletter subscriptions\r\n useEffect(() => {\r\n const findAnAgent = document.getElementById('findAnAgentButton');\r\n const referAClientButton = document.getElementById('referAClientButton');\r\n const searchButton = document.getElementById('searchButton');\r\n const chooseUsButton = document.getElementById('chooseUsButton');\r\n const referralButton = document.getElementById('referralButton');\r\n\r\n\r\n const handleClick = () => setOpenNewsletter(true);\r\n\r\n if (findAnAgent) findAnAgent.addEventListener('click', handleClick);\r\n if (referAClientButton) referAClientButton.addEventListener('click', handleClick);\r\n if (searchButton) searchButton.addEventListener('click', handleClick);\r\n if (chooseUsButton) chooseUsButton.addEventListener('click', handleClick);\r\n if (referralButton) referralButton.addEventListener('click', handleClick);\r\n\r\n return () => {\r\n if (findAnAgent) findAnAgent.removeEventListener('click', handleClick);\r\n if (referAClientButton) referAClientButton.removeEventListener('click', () => handleClick);\r\n if (searchButton) searchButton.removeEventListener('click', handleClick);\r\n if (chooseUsButton) chooseUsButton.removeEventListener('click', handleClick);\r\n if (referralButton) referralButton.removeEventListener('click', handleClick);\r\n };\r\n }, []);\r\n\r\n const PortalContent = useMemo(() => {\r\n return isLoggedIn ? (\r\n {\r\n await client.logoff();\r\n setIsLoggedIn(false);\r\n setShowLoginModal(false);\r\n }}\r\n onEditProfile={async (openform) => {\r\n if (!aglClaims) return;\r\n const profile = new RealEstateAgentsProfile(client);\r\n await openform({\r\n entity: profile,\r\n initialFormMode: 'edit',\r\n title: 'Edit',\r\n modalFormSize: 'fullscreen',\r\n getDataOnInit: true,\r\n onModalClosed: () => {\r\n const new_claims = client.LOGGED_IN_USER as Partial | undefined;\r\n setAglClaims(new_claims ? { ...new_claims } as AgentListClaimTypes : undefined);\r\n },\r\n });\r\n }}\r\n />\r\n ) : (\r\n \r\n );\r\n }, [isLoggedIn, showBackoffice, colorScheme, aglClaims, setIsLoggedIn]);\r\n\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {!isLoggedIn &&\r\n
\r\n \r\n
\r\n }\r\n {isLoggedIn &&\r\n {\r\n await client.logoff();\r\n setIsLoggedIn(false);\r\n setShowLoginModal(false);\r\n }}\r\n onEditProfile={async (openform) => {\r\n if (!aglClaims) return;\r\n const profile = new RealEstateAgentsProfile(client);\r\n\r\n await openform({\r\n entity: profile,\r\n initialFormMode: 'edit',\r\n title: 'Edit',\r\n modalFormSize: 'fullscreen',\r\n getDataOnInit: true,\r\n onModalClosed: () => {\r\n const new_claims: Partial | undefined = client.LOGGED_IN_USER;\r\n setAglClaims({ ...new_claims } as AgentListClaimTypes);\r\n },\r\n });\r\n\r\n }}\r\n\r\n />\r\n }\r\n { setIsLoggedIn(true); }}\r\n onClose={() => setShowLoginModal(false)}\r\n openState={showLoginModal}\r\n />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\n\r\n","import { Entity, MicroMClient } from \"@mcurros2/microm\";\r\nimport { IconUserScan } from \"@tabler/icons-react\";\r\nimport { RealEstateAgentsProfileDef } from \"./RealEstateAgentsProfileDef\";\r\n\r\nexport const RealEstateAgentsProfileIcon = IconUserScan;\r\nexport const RealEstateAgentsProfileHelpText = '* Completing your profile data will help you get better results when people are looking for an Agent';\r\n\r\nexport class RealEstateAgentsProfile extends Entity {\r\n\r\n constructor(client: MicroMClient, parentKeys = {}) {\r\n super(client, new RealEstateAgentsProfileDef(), parentKeys);\r\n this.Form = import('./RealEstateAgentsProfileForm').then((module) => module.RealEstateAgentsProfileForm);\r\n this.Title = \"Profile\";\r\n this.HelpText = RealEstateAgentsProfileHelpText;\r\n this.Icon = RealEstateAgentsProfileIcon;\r\n }\r\n}","import { DefaultColumns, EntityColumn, EntityDefinition, EntityColumnFlags, CommonFlags as c } from \"@mcurros2/microm\";\r\n\r\nconst columns = () =>\r\n(\r\n {\r\n c_user_id: new EntityColumn({ name: 'c_user_id', type: 'char', length: 20, flags: c.PK, prompt: 'User Id' }),\r\n vc_person_name: new EntityColumn({ name: 'vc_person_name', type: 'varchar', length: 255, flags: c.Edit, prompt: 'Name' }),\r\n vc_person_lastname: new EntityColumn({ name: 'vc_person_lastname', type: 'varchar', length: 255, flags: c.Edit, prompt: 'Lastname' }),\r\n vc_person_email: new EntityColumn({ name: 'vc_person_email', type: 'varchar', length: 2048, flags: c.Edit, prompt: 'Email' }),\r\n vc_contact_phone: new EntityColumn({ name: 'vc_contact_phone', type: 'varchar', length: 255, flags: c.Edit | EntityColumnFlags.nullable, prompt: 'Phone' }),\r\n c_photofileprocess_id: new EntityColumn({ name: 'c_photofileprocess_id', type: 'char', length: 20, flags: c.FK | EntityColumnFlags.nullable, prompt: 'Photofileprocess Id' }),\r\n vc_photoguid: new EntityColumn({ name: 'vc_photoguid', type: 'varchar', length: 255, flags: c.Edit | EntityColumnFlags.nullable, prompt: 'Photoguid' }),\r\n ...DefaultColumns()\r\n }\r\n)\r\n\r\nconst views = () =>\r\n(\r\n {\r\n rsap_brwStandard: { name: 'rsap_brwStandard', keyMappings: { c_user_id: 0 } }\r\n }\r\n)\r\n\r\nexport class RealEstateAgentsProfileDef extends EntityDefinition {\r\n\r\n columns = columns();\r\n views = views();\r\n\r\n constructor() {\r\n super('RealEstateAgentsProfile');\r\n }\r\n}","import { Button, Group, Stack, Text, Title } from \"@mantine/core\";\r\nimport { CircleFilledIcon, DBStatusResult, MicroMClient, OperationStatus, useModal, useOpenForm } from \"@mcurros2/microm\";\r\nimport { useEffect } from \"react\";\r\nimport { NewsletterSubscriptions } from \"../Entities/NewsletterSubscriptions/NewsletterSubscriptions\";\r\nimport { IconCheck } from \"@tabler/icons-react\";\r\n\r\n\r\nexport interface SubscribeNewsletterProps {\r\n client: MicroMClient,\r\n openState: boolean,\r\n setOpenState: (open: boolean) => void\r\n}\r\n\r\nexport function SubscribeNewsletter({ client, openState, setOpenState }: SubscribeNewsletterProps) {\r\n const modals = useModal();\r\n const openForm = useOpenForm();\r\n\r\n useEffect(() => {\r\n const open = async () => {\r\n const newsletter = new NewsletterSubscriptions(client);\r\n await openForm({\r\n entity: newsletter,\r\n initialFormMode: 'add',\r\n OKText: 'Subscribe',\r\n onModalClosed: () => {\r\n setOpenState(false);\r\n },\r\n onModalSaved: async (status: OperationStatus) => {\r\n if (!status.error && !status.data?.Failed) {\r\n await modals.open({\r\n modalProps: {\r\n size: 'md',\r\n title: Thank you for subscribing!\r\n },\r\n content:\r\n \r\n \r\n } backColor=\"green\" />\r\n \r\n You have successfully subscribed to our newsletter. We will keep you updated with our progress.\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n if (openState) {\r\n open();\r\n }\r\n }, [openState, setOpenState, client]);\r\n\r\n return null;\r\n}"],"names":["$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","$18c11f3350a906ea$export$6503ec6e8aabbaf","$18c11f3350a906ea$export$f7ad0328861e2f03","$18c11f3350a906ea$var$mapping","Map","baseUrl","manifest","i","length","path","resolved","URL","toString","$Gr8vk","Promise","all","then","resolve","url","JSON","parse","$ayMG0","$aRPiL","$8TaxK","$64A2P","$cnNDs","$agugM","$7jJlY","$49qEn","$acw62","$3OncY","$4eVGs","$d826af09250750e7$var$columns","assign","c_user_id","EntityColumn","name","type","flags","CommonFlags","PK","prompt","vc_person_name","Edit","vc_person_lastname","vc_person_email","vc_contact_phone","EntityColumnFlags","nullable","c_photofileprocess_id","FK","vc_photoguid","DefaultColumns","$d826af09250750e7$var$views","rsap_brwStandard","keyMappings","$d826af09250750e7$export$66d6f03280e1baec","EntityDefinition","constructor","columns","views","$fb71743d493a87e9$export$f1f529ed37f01e5","default","$fb71743d493a87e9$export$4d677fe99eee5013","Entity","client","parentKeys","Form","RealEstateAgentsProfileForm","Title","HelpText","Icon","$6gfte","$gU5rH","$9mTYo","$9VIWE","$cjohz","$ew26C","$39VF9","$txhqr","$1171a2ddd4496f32$export$bab2676155c94c43","openState","setOpenState","modals","useModal","openForm","useOpenForm","useEffect","open","newsletter","NewsletterSubscriptions","entity","initialFormMode","OKText","onModalClosed","onModalSaved","status","_a","error","data","Failed","modalProps","size","title","jsx","order","children","content","jsxs","Stack","Group","spacing","noWrap","CircleFilledIcon","width","icon","backColor","Text","position","Button","onClick","close","$c4aa48087ae34a77$var$publicEndpoints","EntityName","AllowedAccess","EndpointAccess","Create","$c4aa48087ae34a77$var$client","MicroMClient","api_url","API_URL","app_id","APP_ID","publicEndpoints","DateInputFieldDefaultProps","valueFormat","$59fd530323d9e590$var$container","document","getElementById","$59fd530323d9e590$var$root","createRoot","render","theme","useMantineTheme","themeColor","setThemeColor","useState","colorKey","primaryColor","colorShade","primaryShade","preferredColorScheme","useColorScheme","GoogleMapsAPILoaderConfig","apiKey","UseLocaleFormatDefaultProps","initialLocale","DEFAULT_MAP_CENTER","lat","lng","colorScheme","setColorScheme","useLocalStorage","key","defaultValue","getInitialValueInEffect","toggleColorScheme","value","modalOverlayProps","overlayProps","color","colors","dark","gray","opacity","blur","setContent","Fragment","isLoggedIn","setIsLoggedIn","loggedInInfo","useIsLoggedIn","showLoginModal","setShowLoginModal","aglClaims","setAglClaims","showBackoffice","setShowBackoffice","isMounted","checkBackoffice","menus","getMenus","hasBackoffice","some","menu","startsWith","console","agl_info","vc_photourl","getDocumentURL","openNewsletter","setOpenNewsletter","findAnAgent","referAClientButton","searchButton","chooseUsButton","referralButton","handleClick","addEventListener","removeEventListener","useMemo","LoggedInMenu","loggedInUser","username","initials","userinitials","photoURL","onLogOut","logoff","onEditProfile","openform","profile","modalFormSize","getDataOnInit","new_claims","LOGGED_IN_USER","undefined","className","MicroMRouter","ColorSchemeProvider","MantineProvider","focusRing","withCSSVariables","GridGlobalStyles","DatesProvider","settings","locale","ModalsManager","animationDuration","LoginModalForm","transitionProps","transition","onLoggedIn","onClose"],"version":3,"file":"index.b1c65f65.js.map"}