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AM8F,EApBmBC,MAE3B,MAAM3L,EAAU,CACd4L,YAAa,EACbC,QAAQpG,EAAAA,EAAAA,kBACRqG,iBAAiB,GAInB,OADAC,EAAAA,KAAeR,EAAmBvL,GAC3B+L,CAAS,EAWYJ,GAE1BrG,OAAOyG,UAAYL,CACrB,CACD,C","sources":["webpack://hnry-rails/./app/javascript/controllers/ sync \\.js$","webpack://hnry-rails/./app/javascript/API/config/fetch.api.ts","webpack://hnry-rails/./app/javascript/admin/components/_atoms/avatar/Avatar.tsx","webpack://hnry-rails/./app/javascript/admin/components/_atoms/icon/AUIcon.tsx","webpack://hnry-rails/./app/javascript/admin/components/_atoms/icon/Icon.tsx","webpack://hnry-rails/./app/javascript/admin/components/_atoms/icon/NZIcon.tsx","webpack://hnry-rails/./app/javascript/admin/components/_atoms/icon/UKIcon.tsx","webpack://hnry-rails/./app/javascript/admin/components/_molecules/dropdown_menu/DropdownMenu.tsx","webpack://hnry-rails/./app/javascript/admin/components/_organisms/navigation/NavigationMenuItem.tsx","webpack://hnry-rails/./app/javascript/admin/components/_organisms/navigation/NavigationSidebar.tsx","webpack://hnry-rails/./app/javascript/admin/components/_organisms/navigation/NavigationSubmenu.tsx","webpack://hnry-rails/./app/javascript/admin/utilities/user_attributes.ts","webpack://hnry-rails/./app/javascript/controllers/admin/users/cards_controller.js","webpack://hnry-rails/./app/javascript/controllers/bank_account_number_fields_controller.js","webpack://hnry-rails/./app/javascript/controllers/form_controller.js","webpack://hnry-rails/./app/javascript/controllers/transaction_status_filter_controller.js","webpack://hnry-rails/./app/javascript/utilities/admin/amplitude_analytics.js"],"sourcesContent":["var map = {\n\t\"./admin/users/cards_controller.js\": 38058,\n\t\"./bank_account_number_fields_controller.js\": 21160,\n\t\"./form_controller.js\": 70696,\n\t\"./transaction_status_filter_controller.js\": 76308,\n\t\"controllers/admin/users/cards_controller.js\": 38058,\n\t\"controllers/bank_account_number_fields_controller.js\": 21160,\n\t\"controllers/form_controller.js\": 70696,\n\t\"controllers/transaction_status_filter_controller.js\": 76308\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 97461;","/**\n * create a helper method that enables sub methods to just call the route they desire and go!\n *\n * This should be only consumed at the \"API\" layer!\n */\n\ntype mimeTypes =\n | \"application/json\"\n | \"multipart/form-data\"\n | \"application/x-www-form-urlencoded\"\n | \"text/plain\";\n\nexport interface ResponseBody {\n status?: string;\n data: Record | string;\n}\n\nexport interface ApiResponseBody extends ResponseBody {\n apiVersion: number;\n context: Record;\n method: HttpMethod;\n}\n\nexport interface ApiErrorResponse {\n error: {\n apiVersion: number;\n method: string;\n error: {\n error: string;\n }[];\n };\n}\n\nconst constructRequest = (\n path: RequestInfo | URL,\n method: HttpMethod,\n body?: BodyInit,\n contentType?: mimeTypes,\n accept?: mimeTypes,\n): { input: RequestInfo | URL; init?: RequestInit } => {\n const csrfToken: HTMLMetaElement | undefined = document.querySelector(\n \"meta[name='csrf-token']\",\n );\n const contentTypeHeader = contentType ? { \"Content-Type\": contentType } : {};\n const acceptHeaders = accept ? { Accept: accept } : {};\n\n return {\n input: path,\n init: {\n method,\n headers: {\n \"X-CSRF-Token\": csrfToken?.content || \"\",\n ...contentTypeHeader,\n ...acceptHeaders,\n },\n body: body || undefined,\n credentials: \"same-origin\",\n },\n };\n};\n\nconst localFetch = async (\n input: RequestInfo | URL,\n method: HttpMethod,\n body?: BodyInit,\n contentType?: mimeTypes,\n accept?: mimeTypes,\n errorOnFailure = true,\n) => {\n try {\n const val = constructRequest(input, method, body, contentType, accept);\n const response = await fetch(val.input, val.init);\n if (!response.ok && errorOnFailure) throw new Error(response.statusText);\n return await response.json();\n } catch (err) {\n throw new Error(err);\n }\n};\n\nexport const post = async (\n input: RequestInfo | URL,\n body: BodyInit,\n contentType?: mimeTypes,\n errorOnFailure?: boolean,\n) => localFetch(input, \"POST\", body, contentType, contentType, errorOnFailure);\n\nexport const postJson = async (\n input: RequestInfo | URL,\n body: BodyInit,\n errorOnFailure?: boolean,\n) =>\n localFetch(\n input,\n \"POST\",\n body,\n \"application/json\",\n \"application/json\",\n errorOnFailure,\n );\n\nexport const putJson = async (\n input: RequestInfo | URL,\n body: BodyInit,\n errorOnFailure?: boolean,\n) =>\n localFetch(\n input,\n \"PUT\",\n body,\n \"application/json\",\n \"application/json\",\n errorOnFailure,\n );\n\nexport const patchJson = async (\n input: RequestInfo | URL,\n body: BodyInit,\n errorOnFailure?: boolean,\n) =>\n localFetch(\n input,\n \"PATCH\",\n body,\n \"application/json\",\n \"application/json\",\n errorOnFailure,\n );\n\nexport const get = async (input: RequestInfo | URL) => localFetch(input, \"GET\");\n\nexport const put = async (input: RequestInfo | URL, body: BodyInit) =>\n localFetch(input, \"PUT\", body);\n\nexport const patch = async (input: RequestInfo | URL, body: BodyInit) =>\n localFetch(input, \"PATCH\", body);\n\n/**\n * can't be called delete as that's a protected word\n * @param input\n * @returns\n */\nexport const deleteReq = async (input: RequestInfo | URL, errorOnFailure?: boolean) =>\n localFetch(\n input,\n \"DELETE\",\n null,\n \"application/json\",\n \"application/json\",\n errorOnFailure\n );\n","import React from \"react\";\nimport \"./styles.scss\";\n\nexport interface iAvatar {\n name: string;\n initials: string;\n colour: \"admin-nz\" | \"admin-au\" | \"admin-uk\" | `#${string}`;\n}\n// Possible colour classes so tailwind can do JIT compilation\n// https://v2.tailwindcss.com/docs/just-in-time-mode\n// tw-bg-admin-nz-default\n// tw-bg-admin-au-default\n// tw-bg-admin-uk-default\n// bg-admin-nz-default\n// bg-admin-au-default\n// bg-admin-uk-default\n\nconst Avatar = ({ name, initials, colour }: iAvatar) => (\n
\n \n {initials}\n
\n {name}\n \n);\n\nexport default Avatar;\n","import React from \"react\";\n\ninterface iAUIcon {\n className?: string;\n}\n\nconst AUIcon = ({ className }: iAUIcon) => (\n \n \n \n);\n\nexport default AUIcon;\n","import React from \"react\";\nimport classNames from \"classnames\";\nimport {\n ArrowRightOnRectangleIcon,\n CalendarDaysIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n Cog6ToothIcon,\n CreditCardIcon,\n DocumentDuplicateIcon,\n EllipsisHorizontalIcon,\n HomeIcon,\n MagnifyingGlassIcon,\n PencilSquareIcon,\n ReceiptPercentIcon,\n UserGroupIcon,\n XMarkIcon,\n} from \"@heroicons/react/24/outline\";\nimport NZIcon from \"./NZIcon\"; \nimport AUIcon from \"./AUIcon\";\nimport UKIcon from \"./UKIcon\";\n\nexport const sizeClasses = {\n xs: \"w-3.5 h-3.5\",\n sm: \"w-4 h-4\",\n base: \"w-5 h-5\",\n lg: \"w-7 h-7\",\n xl: \"w-12 h-12\",\n} as const;\n\nconst HeroIcons = {\n ArrowRightOnRectangleIcon,\n CalendarDaysIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n Cog6ToothIcon,\n CreditCardIcon,\n DocumentDuplicateIcon,\n EllipsisHorizontalIcon,\n HomeIcon,\n MagnifyingGlassIcon,\n PencilSquareIcon,\n ReceiptPercentIcon,\n UserGroupIcon,\n XMarkIcon,\n NZIcon,\n AUIcon,\n UKIcon\n} as const;\n\nexport const IconTypes = Object.keys(HeroIcons);\nexport type IconType = (typeof IconTypes)[number];\nexport type IconSizes = \"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\";\n\ninterface iIcon {\n hoverOn?: boolean;\n type?: IconType;\n classes?: string;\n size?: IconSizes;\n strokeWidth?: string\n}\n\nconst Icon = ({\n type = \"PencilSquareIcon\",\n hoverOn = false,\n classes = undefined,\n size = \"base\",\n strokeWidth = \"1.5\"\n}: iIcon) => {\n const className = classNames({\n \"hover:text-gray-600\": hoverOn,\n [`${classes}`]: classes,\n [`${sizeClasses[size]}`]: size,\n });\n\n const SingleIcon = HeroIcons[type];\n return SingleIcon ? (\n \n ) : null;\n};\n\nexport default Icon;\n\n","import React from \"react\";\n\ninterface iNZIcon {\n className?: string;\n}\n\nconst NZIcon = ({ className }: iNZIcon) => (\n \n \n \n\n);\n\nexport default NZIcon;\n","import React from \"react\";\n\ninterface iUKIcon {\n className?: string;\n}\n\nconst UKIcon = ({ className }: iUKIcon) => (\n \n \n \n \n \n);\n\nexport default UKIcon;\n","import React from \"react\";\nimport classNames from \"classnames\";\nimport * as UIDropdownMenu from \"@radix-ui/react-dropdown-menu\";\nimport { IconType } from \"@hui/_atoms/icons/icon/Icon\";\nimport Icon from \"../../_atoms/icon/Icon\";\nimport \"./styles.scss\";\n\ntype DropdownMenuOptionsType = {\n url?: string,\n selected: boolean,\n name: string,\n icon: IconType\n}\n\ninterface iDropdownMenu {\n value: DropdownMenuOptionsType;\n options: DropdownMenuOptionsType[];\n onChange?: () => void;\n}\n\nconst DropdownMenu = ({\n value,\n options,\n onChange,\n}: iDropdownMenu) => (\n \n \n {value.icon && }\n {value.name}\n \n \n \n \n \n {options.map(({ name, url, selected, icon }) => (\n \n \n {icon && }\n {name}\n \n \n ))}\n \n \n)\n\nexport default DropdownMenu;\n","import React, { useState, useRef, useEffect } from \"react\";\nimport {\n FloatingArrow,\n arrow,\n offset,\n shift,\n useDismiss,\n useFloating,\n useInteractions,\n useTransitionStyles,\n} from \"@floating-ui/react\";\nimport Icon, { IconType } from \"../../_atoms/icon/Icon\";\nimport { navItemType } from \"./types\";\n\ninterface iNavigationMenuItem {\n icon: IconType;\n name: string;\n customColor: \"admin-nz\" | \"admin-au\" | \"admin-uk\";\n onClick: () => void;\n close: () => void;\n selected?: navItemType;\n}\n\nconst NavigationMenuItem = ({\n icon,\n name,\n customColor,\n onClick,\n close,\n selected,\n}: iNavigationMenuItem) => {\n const [open, setOpen] = useState(false);\n const arrowRef = useRef(null);\n\n // https://floating-ui.com/docs/useFloating\n const { refs, floatingStyles, context } = useFloating({\n open,\n onOpenChange: setOpen,\n placement: \"right\",\n middleware: [\n offset({ mainAxis: 24, alignmentAxis: 0 }),\n shift(),\n arrow({ element: arrowRef }),\n ],\n });\n\n // https://floating-ui.com/docs/useTransition\n const { isMounted, styles: transitionStyles } = useTransitionStyles(context, {\n duration: { open: 300, close: 150 },\n close: { opacity: 0, transitionTimingFunction: \"linear\" },\n open: { opacity: 1, transitionTimingFunction: \"linear\" },\n });\n\n // https://floating-ui.com/docs/useDismiss\n const dismiss = useDismiss(context);\n const { getReferenceProps } = useInteractions([dismiss]);\n\n useEffect(() => {\n let timeout;\n\n if (selected && selected.name === name && !isMounted) {\n // delay so the page redirect before the submenu unmounted\n timeout = setTimeout(() => close(), 200);\n }\n\n return () => {\n if (timeout) clearTimeout(timeout);\n };\n }, [selected, isMounted, name, close]);\n\n useEffect(() => {\n if (open && selected && selected.name !== name) {\n setOpen(false);\n }\n }, [open, selected, setOpen, name]);\n\n const handleClick = () => {\n onClick();\n setOpen(!open);\n\n if (open) {\n // close submenu if nav item clicked second time\n close();\n }\n }\n\n return (\n <>\n \n {name}\n \n {isMounted && (\n \n \n \n )}\n \n );\n}\n\nexport default NavigationMenuItem;\n","import React, { Fragment, useMemo, useState } from \"react\";\nimport Logo from \"../../../../../assets/images/hnry-logo-name-only-inverted.svg\";\nimport Icon from \"../../_atoms/icon/Icon\";\nimport { navItemType, jurisdictionType } from \"./types\";\nimport Avatar, { iAvatar } from \"../../_atoms/avatar/Avatar\";\nimport NavigationMenuItem from \"./NavigationMenuItem\";\nimport DropdownMenu from \"../../_molecules/dropdown_menu/DropdownMenu\";\nimport NavigationSubmenu from \"./NavigationSubmenu\";\nimport \"./styles.scss\";\n\nexport interface iNavigationSidebar {\n items: navItemType[];\n jurisdictions: jurisdictionType[];\n adminUser: iAvatar;\n}\n\nconst NavigationSidebar = ({\n items,\n jurisdictions,\n adminUser,\n}: iNavigationSidebar) => {\n const [selectedItem, setSelectedItem] = useState(null);\n\n const selectedJurisdiction = useMemo(() => {\n const index = jurisdictions.findIndex(({ selected }) => (selected));\n\n return jurisdictions[index];\n }, [jurisdictions]);\n\n const handleClick = (item: navItemType) => {\n setSelectedItem(item);\n }\n\n const closeMenu = () => {\n setSelectedItem(\"\");\n }\n\n return (\n <>\n
\n
\n \"\"\n \n
\n {/* Main navigation */}\n
    \n
  • \n {items.map((item, index) => {\n const { name, icon, url, trackingEvent } = item;\n\n return (\n \n {/* divider for admin settings & sign out */}\n {index === 4 &&
  • }\n
  • \n {/* Nav item has no submenu if url is provided */}\n {url ? (\n \n \n {name}\n \n ): (\n handleClick(item)}\n selected={selectedItem}\n close={closeMenu}\n />\n )}\n
  • \n \n );\n })}\n
\n \n
\n {selectedItem && (\n \n )}\n \n );\n}\n\nexport default NavigationSidebar;\n","import React, { useRef, useEffect } from \"react\";\nimport { submenusType, headingType } from \"./types\";\n\ninterface iNavigationSubmenu {\n heading: headingType;\n submenus: submenusType;\n customColor: \"admin-nz\" | \"admin-au\" | \"admin-uk\";\n}\n\nconst NavigationSubmenu = ({\n heading,\n submenus,\n customColor,\n}: iNavigationSubmenu) => {\n const focusRef = useRef(null);\n\n useEffect(() => {\n if (focusRef && focusRef.current) {\n focusRef.current.focus();\n }\n }, [heading]);\n\n return (\n // bg-admin-nz-default bg-admin-au-default bg-admin-uk-default\n // tw-bg-admin-nz-default tw-bg-admin-au-default tw-bg-admin-uk-default (for layout bs_application)\n \n {heading.map((title, idx) => (\n
\n

{title.replaceAll(\"_\", \" \").toUpperCase()}

\n
\n
    \n {submenus[title].map(({ name, url, trackingEvent }, index) => (\n
  • \n {/* hover:bg-admin-nz-dark hover:bg-admin-au-dark hover:bg-admin-uk-dark */}\n {/* hover:tw-bg-admin-nz-dark hover:tw-bg-admin-au-dark hover:tw-bg-admin-uk-dark (for layout bs_application) */}\n \n {name}\n \n
  • \n ))}\n
\n
\n ))}\n \n );\n}\n\nexport default NavigationSubmenu;\n","import { AdminConfig } from \"../../types/config.type\";\n\nexport const getAdminUser = () => window.Hnry?.AdminUser;\nexport const getAdminUserId = (): number | null => getAdminUser()?.id;\n\nconst getConfig = () => window.Hnry?.Config as AdminConfig;\nexport const getEnvironment = (): AdminConfig[\"environment\"] | null =>\n getConfig()?.environment;\nexport const getAmplitudeAdminApiKey = ():\n | AdminConfig[\"amplitudeAdminApiKey\"]\n | null => getConfig()?.amplitudeAdminApiKey;\n\nconst AdminUserAttributes = getAdminUser();\n\nexport default AdminUserAttributes;\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"cancelCheckbox\", \"activeSubmitButton\", \"inactiveSubmitButton\" ];\n\n cancelCard(event) {\n if (this.cancelCheckboxTarget.checked) {\n this.activeSubmitButtonTarget.classList.remove(\"hidden\");\n this.inactiveSubmitButtonTarget.classList.add(\"hidden\");\n } else {\n this.activeSubmitButtonTarget.classList.add(\"hidden\");\n this.inactiveSubmitButtonTarget.classList.remove(\"hidden\");\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport IMask from \"imask\";\n\nclass BankAccountNumberFieldsController extends Controller {\n static targets = [\"bankBranchCode\"];\n\n static values = { mask: String };\n\n connect() {\n this.maskBankBranchCode();\n }\n\n maskBankBranchCode(){\n if (!this.hasBankBranchCodeTarget) return;\n\n this.mask = IMask(this.bankBranchCodeTarget, {\n mask: this.maskValue,\n eager: true,\n });\n }\n}\n\nexport default BankAccountNumberFieldsController;\n","import { Controller } from \"@hotwired/stimulus\";\n\nclass FormController extends Controller {\n connect() {\n this.element.setAttribute(\"novalidate\", true);\n this.element.addEventListener(\"blur\", this.onBlur, true);\n document.addEventListener(\"fieldValueChange\", this.handleValueChange);\n }\n\n disconnect() {\n this.element.removeEventListener(\"blur\", this.onBlur);\n document.removeEventListener(\"fieldValueChange\", this.handleValueChange);\n }\n\n onBlur = (event) => {\n let field = null;\n const { target } = event;\n\n // e.g. clear button on datepicker, typedown\n if (target.type === \"button\" && target.classList.contains(\"clear-input\")) {\n field = target.parentElement.querySelector(\"input\");\n }\n\n this.validateField(field || target);\n };\n\n onSubmit = (event) => {\n if (!this.validateForm()) {\n event.preventDefault();\n event.stopPropagation();\n this.firstInvalidField.focus();\n }\n };\n\n // Sometimes the value of input is updated manually without onchange event\n // need to trigger custom event to valid the form\n handleValueChange = (event) => {\n const { detail } = event;\n const { type } = detail;\n let input = null;\n\n if (typeof detail === \"undefined\" || detail.target == null) return;\n\n if (type === \"file\") {\n input = detail.target;\n } else if (type === \"typedown\" || type === \"datepicker\") {\n input = detail.target.querySelector(\"input\");\n }\n this.validateField(input);\n\n const value = detail.value || input.value;\n if (input && value) { input.classList.remove(\"invalid\", type); }\n };\n\n get formFields() {\n return Array.from(this.element.elements).filter((e) => ![\"reset\", \"submit\", \"button\", \"hidden\"].includes(e.type));\n }\n\n get firstInvalidField() {\n return this.formFields.find((field) => !field.checkValidity());\n }\n\n validateForm() {\n let isValid = true;\n\n this.formFields.forEach((field) => {\n if (!this.validateField(field)) {\n isValid = false;\n\n // manual append validation as the file-upload input is hidden\n if (field.type === \"text\" && field.classList.contains(\"file-upload\")) {\n this.updateFieldErrorHtml(field, false);\n }\n }\n });\n\n return isValid;\n }\n\n validateField(field) {\n if (field === null || field.disabled || [\"A\"].includes(field.tagName)) return true;\n\n const valid = field.checkValidity();\n this.updateFieldErrorHtml(field, valid);\n\n return valid;\n }\n\n updateFieldErrorHtml(field, valid) {\n if (!valid) {\n this.showErrorForInvalidField(field);\n\n // mdb-select created another input which showing on UI so\n // need to manually add invalid class to the input\n if (field.type === \"select-one\") {\n const input = document.querySelector(\".select-dropdown\");\n input && input.classList.add(\"invalid\");\n }\n } else {\n this.removeExistingErrorHtml(field);\n }\n }\n\n removeExistingErrorHtml(field) {\n const fieldWrapper = this.findFieldWrapper(field);\n if (!fieldWrapper) return;\n\n const existingErrorEl = fieldWrapper.querySelector(\".validation-errors\");\n if (existingErrorEl) {\n existingErrorEl.parentNode.removeChild(existingErrorEl);\n }\n field.classList.remove(\"invalid\");\n }\n\n findFieldWrapper(field, type) {\n const fieldType = type || field.type;\n let wrapper = null;\n\n if (fieldType === \"file\") {\n wrapper = field.closest('div[data-react-class=\\\"inputs/file_upload/file_upload\\\"]');\n } else if (field.closest(\".typedown\") || fieldType === \"typedown\") {\n wrapper = field.closest(\".typedown\").parentElement;\n } else {\n wrapper = field.closest(\".md-form\");\n }\n return wrapper;\n }\n\n showErrorForInvalidField(field) {\n const fieldWrapper = this.findFieldWrapper(field);\n if (fieldWrapper === null) { return; }\n\n const label = fieldWrapper.querySelector(\"label\");\n this.buildFieldErrorHtml(fieldWrapper, field, label);\n field.classList.add(\"invalid\");\n }\n\n getValidationMessage(field, label) {\n const customMessage = field.getAttribute(\"data-custom-validation\");\n let message = customMessage || field.validationMessage;\n\n if (customMessage === null && field.value === \"\" && label && label.innerText) {\n message = `${label.innerText} can't be blank`;\n }\n\n return message;\n }\n\n buildFieldErrorHtml(formWrapper, field, label) {\n // eslint-disable-next-line xss/no-mixed-html\n const errorHtml = formWrapper.querySelector(\".validation-errors\");\n const message = this.getValidationMessage(field, label);\n\n if (errorHtml !== null) {\n errorHtml.innerText = message;\n } else {\n const p = document.createElement(\"p\");\n p.classList.add(\"validation-errors\");\n p.innerText = message;\n formWrapper.appendChild(p);\n }\n }\n}\n\nexport default FormController;\n","import { Controller } from \"@hotwired/stimulus\";\n\nclass TransactionStatusFilterController extends Controller {\n static targets = [\"bank\", \"bankBsb\", \"bankLabel\"];\n\n populateBankFilter(e) {\n const bankLabel = e.target.innerText;\n const bank = e.target.dataset.bank;\n const bankBsb = e.target.dataset.bankBsb || null;\n\n\n this.bankLabelTarget.innerText = bankLabel;\n this.bankTarget.value = bank;\n this.bankBsbTarget.value = bankBsb;\n }\n}\n\nexport default TransactionStatusFilterController;\n","import * as amplitude from \"@amplitude/analytics-browser\";\nimport { getEnvironment, getAmplitudeAdminApiKey, getAdminUserId } from \"../../admin/utilities/user_attributes\";\n\nconst AMPLITUDE_API_KEY = getAmplitudeAdminApiKey();\n\nconst getAmplitudeInstance = () => {\n\n const options = {\n minIdLength: 1,\n userId: getAdminUserId(),\n defaultTracking: true\n }\n\n amplitude.init(AMPLITUDE_API_KEY, options);\n return amplitude\n};\n\nconst acceptableEnvironments = [\"production\", \"uat\", \"staging\"];\nexport default () => {\n // If segment is present, we don't want to load amplitude\n if (typeof window.analytics === \"object\") {\n return;\n }\n\n if (AMPLITUDE_API_KEY && acceptableEnvironments.includes(getEnvironment())) {\n const amplitudeInstance = getAmplitudeInstance();\n // explose amplitude to the window\n window.amplitude = amplitudeInstance;\n }\n};\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","localFetch","async","input","method","body","contentType","accept","errorOnFailure","arguments","length","undefined","val","constructRequest","path","csrfToken","document","querySelector","contentTypeHeader","acceptHeaders","Accept","init","headers","content","credentials","response","fetch","ok","statusText","json","err","post","postJson","putJson","patchJson","get","deleteReq","_ref","name","initials","colour","React","className","style","backgroundColor","width","height","viewBox","fill","xmlns","d","sizeClasses","xs","sm","base","lg","xl","HeroIcons","ArrowRightOnRectangleIcon","CalendarDaysIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","Cog6ToothIcon","CreditCardIcon","DocumentDuplicateIcon","EllipsisHorizontalIcon","HomeIcon","MagnifyingGlassIcon","PencilSquareIcon","ReceiptPercentIcon","UserGroupIcon","XMarkIcon","NZIcon","AUIcon","UKIcon","IconTypes","type","hoverOn","classes","size","strokeWidth","classNames","SingleIcon","fillRule","clipRule","value","options","onChange","UIDropdownMenu","icon","Icon","align","_ref2","url","selected","key","href","customColor","onClick","close","open","setOpen","useState","arrowRef","useRef","refs","floatingStyles","context","useFloating","onOpenChange","placement","middleware","offset","mainAxis","alignmentAxis","shift","arrow","element","isMounted","styles","transitionStyles","useTransitionStyles","duration","opacity","transitionTimingFunction","dismiss","useDismiss","getReferenceProps","useInteractions","useEffect","timeout","setTimeout","clearTimeout","_extends","ref","setReference","handleClick","setFloating","FloatingArrow","items","jurisdictions","adminUser","selectedItem","setSelectedItem","selectedJurisdiction","useMemo","index","findIndex","closeMenu","src","Logo","alt","DropdownMenu","item","trackingEvent","Fragment","JSON","stringify","NavigationMenuItem","custom_color","Avatar","NavigationSubmenu","heading","submenus","focusRef","current","focus","title","idx","replaceAll","toUpperCase","getAdminUser","window","Hnry","AdminUser","getAdminUserId","getConfig","Config","getEnvironment","environment","getAmplitudeAdminApiKey","amplitudeAdminApiKey","AdminUserAttributes","Controller","static","cancelCard","event","this","cancelCheckboxTarget","checked","activeSubmitButtonTarget","classList","remove","inactiveSubmitButtonTarget","add","BankAccountNumberFieldsController","mask","String","connect","maskBankBranchCode","hasBankBranchCodeTarget","IMask","bankBranchCodeTarget","maskValue","eager","FormController","setAttribute","addEventListener","onBlur","handleValueChange","disconnect","removeEventListener","field","target","contains","parentElement","validateField","onSubmit","validateForm","preventDefault","stopPropagation","firstInvalidField","detail","formFields","Array","from","elements","filter","includes","find","checkValidity","isValid","forEach","updateFieldErrorHtml","disabled","tagName","valid","removeExistingErrorHtml","showErrorForInvalidField","fieldWrapper","findFieldWrapper","existingErrorEl","parentNode","removeChild","fieldType","wrapper","closest","label","buildFieldErrorHtml","getValidationMessage","customMessage","getAttribute","message","validationMessage","innerText","formWrapper","errorHtml","p","createElement","appendChild","TransactionStatusFilterController","populateBankFilter","bankLabel","bank","dataset","bankBsb","bankLabelTarget","bankTarget","bankBsbTarget","AMPLITUDE_API_KEY","acceptableEnvironments","analytics","amplitudeInstance","getAmplitudeInstance","minIdLength","userId","defaultTracking","amplitude"],"sourceRoot":""}