@frankieone/one-sdk 1.7.1 → 1.7.2-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/commit.txt +1 -1
  2. package/dist/esm/modules/form/vendors/react/components/base/FrankieLoader/FrankieLoader.d.ts +6 -0
  3. package/dist/esm/modules/form/vendors/react/components/base/FrankieLoader/FrankieLoader.d.ts.map +1 -0
  4. package/dist/esm/modules/form/vendors/react/components/base/FrankieLoader/FrankieLoader.js +6 -0
  5. package/dist/esm/modules/form/vendors/react/components/base/FrankieLoader/FrankieLoader.js.map +1 -0
  6. package/dist/esm/modules/form/vendors/react/components/base/FrankieTextArea/FrankieTextArea.d.ts.map +1 -1
  7. package/dist/esm/modules/form/vendors/react/components/base/FrankieTextArea/FrankieTextArea.js +20 -12
  8. package/dist/esm/modules/form/vendors/react/components/base/FrankieTextArea/FrankieTextArea.js.map +1 -1
  9. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.d.ts +3 -1
  10. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.d.ts.map +1 -1
  11. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js +3 -3
  12. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js.map +1 -1
  13. package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.d.ts +10 -1
  14. package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.d.ts.map +1 -1
  15. package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.js +19 -5
  16. package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.js.map +1 -1
  17. package/dist/esm/modules/form/vendors/react/components/view/ManualAddress/ManualAddress.js +3 -3
  18. package/dist/esm/modules/form/vendors/react/components/view/ManualAddress/ManualAddress.js.map +1 -1
  19. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.d.ts +2 -1
  20. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.d.ts.map +1 -1
  21. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.js +16 -4
  22. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.js.map +1 -1
  23. package/dist/esm/modules/form/vendors/react/constants/form.const.d.ts +4 -0
  24. package/dist/esm/modules/form/vendors/react/constants/form.const.d.ts.map +1 -1
  25. package/dist/esm/modules/form/vendors/react/constants/form.const.js +4 -0
  26. package/dist/esm/modules/form/vendors/react/constants/form.const.js.map +1 -1
  27. package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.const.js +1 -1
  28. package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.const.js.map +1 -1
  29. package/dist/esm/modules/form/vendors/react/features/Retry/retry.config.d.ts.map +1 -1
  30. package/dist/esm/modules/form/vendors/react/features/Retry/retry.config.js +7 -0
  31. package/dist/esm/modules/form/vendors/react/features/Retry/retry.config.js.map +1 -1
  32. package/dist/esm/modules/form/vendors/react/features/Review/Review.d.ts.map +1 -1
  33. package/dist/esm/modules/form/vendors/react/features/Review/Review.js +13 -25
  34. package/dist/esm/modules/form/vendors/react/features/Review/Review.js.map +1 -1
  35. package/dist/esm/modules/form/vendors/react/features/Review/review.config.d.ts.map +1 -1
  36. package/dist/esm/modules/form/vendors/react/features/Review/review.config.js +219 -233
  37. package/dist/esm/modules/form/vendors/react/features/Review/review.config.js.map +1 -1
  38. package/dist/esm/modules/form/vendors/react/features/Review/review.const.js +2 -2
  39. package/dist/esm/modules/form/vendors/react/features/Review/review.const.js.map +1 -1
  40. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.d.ts +1 -1
  41. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.d.ts.map +1 -1
  42. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.js +2 -2
  43. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.js.map +1 -1
  44. package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.d.ts.map +1 -1
  45. package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js +11 -1
  46. package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js.map +1 -1
  47. package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.d.ts.map +1 -1
  48. package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.js +1 -0
  49. package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.js.map +1 -1
  50. package/dist/esm/modules/form/vendors/react/model/review.model.d.ts.map +1 -1
  51. package/dist/esm/modules/form/vendors/react/model/review.model.js +21 -2
  52. package/dist/esm/modules/form/vendors/react/model/review.model.js.map +1 -1
  53. package/dist/esm/modules/form/vendors/react/types/form/formTypes/IFrankieTextAreaProps.d.ts +1 -0
  54. package/dist/esm/modules/form/vendors/react/types/form/formTypes/IFrankieTextAreaProps.d.ts.map +1 -1
  55. package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts +6 -0
  56. package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts.map +1 -1
  57. package/dist/esm/modules/form/vendors/react/utils/object.util.js +22 -0
  58. package/dist/esm/modules/form/vendors/react/utils/object.util.js.map +1 -1
  59. package/dist/esm/modules/meta.json +1 -1
  60. package/dist/esm/styles/f1-style.css +1 -1
  61. package/dist/umd/form-react.js +1 -1
  62. package/dist/umd/form-react.js.map +1 -1
  63. package/dist/umd/oneSdk.umd.js +1 -1
  64. package/dist/umd/oneSdk.umd.js.map +1 -1
  65. package/dist/version.txt +1 -1
  66. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunkOneSdk=self.webpackChunkOneSdk||[]).push([[275],{7913:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(1354),r=t.n(i),a=t(6314),l=t.n(a)()(r());l.push([e.id,"*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n;\n}\n\n.f1-pointer-events-none {\n pointer-events: none;\n}\n\n.f1-fixed {\n position: fixed;\n}\n\n.f1-absolute {\n position: absolute;\n}\n\n.f1-relative {\n position: relative;\n}\n\n.f1-sticky {\n position: sticky;\n}\n\n.f1-bottom-0 {\n bottom: 0px;\n}\n\n.f1-bottom-\\[-20px\\] {\n bottom: -20px;\n}\n\n.f1-bottom-\\[13px\\] {\n bottom: 13px;\n}\n\n.f1-left-0 {\n left: 0px;\n}\n\n.f1-right-0 {\n right: 0px;\n}\n\n.f1-right-2 {\n right: 8px;\n}\n\n.f1-right-3 {\n right: 0.75rem;\n}\n\n.f1--top-1 {\n top: -0.25rem;\n}\n\n.f1-top-0 {\n top: 0px;\n}\n\n.f1-top-\\[10px\\] {\n top: 10px;\n}\n\n.f1-top-\\[25\\.5\\%\\] {\n top: 25.5%;\n}\n\n.f1-z-20 {\n z-index: 20;\n}\n\n.f1-z-50 {\n z-index: 50;\n}\n\n.f1-z-10 {\n z-index: 10;\n}\n.f1-m-0 {\n margin: 0px;\n}\n\n.f1-mx-\\[21px\\] {\n margin-left: 21px;\n margin-right: 21px;\n}\n\n.f1-mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.f1-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.f1-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem;\n}\n\n.f1-my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.f1-mx-8 {\n margin-left: 2rem;\n margin-right: 2rem;\n}\n\n.f1-my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.\\!f1-mr-0 {\n margin-right: 0px !important;\n}\n\n.f1-mb-0 {\n margin-bottom: 0px;\n}\n\n.f1-mb-1 {\n margin-bottom: 0.25rem;\n}\n\n.f1-mb-2 {\n margin-bottom: 8px;\n}\n\n.f1-mb-3 {\n margin-bottom: 0.75rem;\n}\n\n.f1-mb-4 {\n margin-bottom: 1rem;\n}\n\n.f1-mb-6 {\n margin-bottom: 1.5rem;\n}\n\n.f1-mb-\\[8px\\] {\n margin-bottom: 8px;\n}\n\n.f1-ml-3 {\n margin-left: 0.75rem;\n}\n\n.f1-mr-1 {\n margin-right: 0.25rem;\n}\n\n.f1-mt-0 {\n margin-top: 0px;\n}\n\n.f1-mt-1 {\n margin-top: 0.25rem;\n}\n\n.f1-mt-2 {\n margin-top: 8px;\n}\n\n.f1-mt-3 {\n margin-top: 0.75rem;\n}\n\n.f1-mt-4 {\n margin-top: 1rem;\n}\n\n.f1-mt-5 {\n margin-top: 1.25rem;\n}\n\n.f1-mt-6 {\n margin-top: 1.5rem;\n}\n\n.f1-mt-\\[-4px\\] {\n margin-top: -4px;\n}\n\n.f1-mt-\\[32px\\] {\n margin-top: 32px;\n}\n\n.f1-mt-8 {\n margin-top: 2rem;\n}\n\n.f1--mt-2 {\n margin-top: -8px;\n}\n\n.f1--mt-2\\.5 {\n margin-top: -0.625rem;\n}\n\n.f1-mt-9 {\n margin-top: 2.25rem;\n}\n\n.f1-box-border {\n box-sizing: border-box;\n}\n\n.f1-inline {\n display: inline;\n}\n\n.f1-flex {\n display: flex;\n}\n\n.f1-inline-flex {\n display: inline-flex;\n}\n\n.\\!f1-h-5 {\n height: 1.25rem !important;\n}\n\n.f1-h-12 {\n height: 3rem;\n}\n\n.f1-h-24 {\n height: 6rem;\n}\n\n.f1-h-\\[1px\\] {\n height: 1px;\n}\n\n.f1-h-\\[48px\\] {\n height: 48px;\n}\n\n.f1-h-\\[73px\\] {\n height: 73px;\n}\n\n.f1-h-\\[calc\\(100\\%-92px\\)\\] {\n height: calc(100% - 92px);\n}\n\n.f1-h-auto {\n height: auto;\n}\n\n.f1-h-full {\n height: 100%;\n}\n\n.f1-h-10 {\n height: 2.5rem;\n}\n\n.f1-h-96 {\n height: 24rem;\n}\n\n.f1-h-1 {\n height: 0.25rem;\n}\n\n.f1-h-1\\.5 {\n height: 6px;\n}\n\n.f1-h-4 {\n height: 1rem;\n}\n\n.f1-h-7 {\n height: 1.75rem;\n}\n\n.f1-h-5 {\n height: 1.25rem;\n}\n\n.f1-max-h-64 {\n max-height: 16rem;\n}\n\n.f1-max-h-\\[150px\\] {\n max-height: 150px;\n}\n\n.f1-max-h-\\[193px\\] {\n max-height: 193px;\n}\n\n.f1-min-h-\\[52px\\] {\n min-height: 52px;\n}\n\n.\\!f1-w-5 {\n width: 1.25rem !important;\n}\n\n.\\!f1-w-\\[138px\\] {\n width: 138px !important;\n}\n\n.f1-w-24 {\n width: 6rem;\n}\n\n.f1-w-56 {\n width: 14rem;\n}\n\n.f1-w-\\[206\\.5\\%\\] {\n width: 206.5%;\n}\n\n.f1-w-\\[210\\.5\\%\\] {\n width: 210.5%;\n}\n\n.f1-w-\\[300px\\] {\n width: 300px;\n}\n\n.f1-w-\\[342px\\] {\n width: 342px;\n}\n\n.f1-w-\\[48\\%\\] {\n width: 48%;\n}\n\n.f1-w-\\[50\\%\\] {\n width: 50%;\n}\n\n.f1-w-\\[calc\\(100\\%-48px\\)\\] {\n width: calc(100% - 48px);\n}\n\n.f1-w-auto {\n width: auto;\n}\n\n.f1-w-full {\n width: 100%;\n}\n\n.f1-w-10 {\n width: 2.5rem;\n}\n\n.f1-w-\\[calc\\(100\\%-2rem-4px\\)\\] {\n width: calc(100% - 2rem - 4px);\n}\n\n.f1-w-4 {\n width: 1rem;\n}\n\n.f1-min-w-\\[210px\\] {\n min-width: 210px;\n}\n\n.f1-max-w-\\[318px\\] {\n max-width: 318px;\n}\n\n.f1-flex-initial {\n flex: 0 1 auto;\n}\n\n.f1-shrink {\n flex-shrink: 1;\n}\n\n.f1-flex-grow {\n flex-grow: 1;\n}\n\n.f1-grow {\n flex-grow: 1;\n}\n\n.f1-basis-0 {\n flex-basis: 0px;\n}\n\n@keyframes f1-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.f1-animate-spin {\n animation: f1-spin 1s linear infinite;\n}\n\n.f1-cursor-not-allowed {\n cursor: not-allowed;\n}\n\n.f1-cursor-pointer {\n cursor: pointer;\n}\n\n.f1-cursor-text {\n cursor: text;\n}\n\n.f1-resize-none {\n resize: none;\n}\n\n.f1-list-none {\n list-style-type: none;\n}\n\n.f1-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.f1-flex-col {\n flex-direction: column;\n}\n\n.f1-content-center {\n align-content: center;\n}\n\n.f1-items-start {\n align-items: flex-start;\n}\n\n.f1-items-end {\n align-items: flex-end;\n}\n\n.f1-items-center {\n align-items: center;\n}\n\n.f1-justify-start {\n justify-content: flex-start;\n}\n\n.f1-justify-end {\n justify-content: flex-end;\n}\n\n.f1-justify-center {\n justify-content: center;\n}\n\n.f1-justify-between {\n justify-content: space-between;\n}\n\n.f1-justify-evenly {\n justify-content: space-evenly;\n}\n\n.f1-gap-1 {\n gap: 0.25rem;\n}\n\n.f1-gap-10 {\n gap: 2.5rem;\n}\n\n.f1-gap-2 {\n gap: 8px;\n}\n\n.f1-gap-3 {\n gap: 0.75rem;\n}\n\n.f1-gap-4 {\n gap: 1rem;\n}\n\n.f1-gap-6 {\n gap: 1.5rem;\n}\n\n.f1-gap-\\[12px\\] {\n gap: 12px;\n}\n\n.f1-gap-1\\.5 {\n gap: 6px;\n}\n\n.f1-gap-2\\.5 {\n gap: 0.625rem;\n}\n\n.f1-gap-\\[8px\\] {\n gap: 8px;\n}\n\n.f1-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(8px * var(--tw-space-x-reverse));\n margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.f1-self-stretch {\n align-self: stretch;\n}\n\n.f1-overflow-scroll {\n overflow: scroll;\n}\n\n.f1-overflow-y-auto {\n overflow-y: auto;\n}\n\n.f1-overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.\\!f1-rounded-\\[0px\\] {\n border-radius: 0px !important;\n}\n\n.f1-rounded-\\[6px\\] {\n border-radius: 6px;\n}\n\n.f1-rounded-full {\n border-radius: 9999px;\n}\n\n.f1-rounded-sm {\n border-radius: 4px;\n}\n\n.f1-rounded-lg {\n border-radius: 12px;\n}\n\n.f1-rounded-md {\n border-radius: 8px;\n}\n\n.\\!f1-rounded-l-sm {\n border-top-left-radius: 4px !important;\n border-bottom-left-radius: 4px !important;\n}\n\n.\\!f1-rounded-r-sm {\n border-top-right-radius: 4px !important;\n border-bottom-right-radius: 4px !important;\n}\n\n.f1-rounded-l-sm {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.f1-border {\n border-width: 1px;\n}\n\n.f1-border-2 {\n border-width: 2px;\n}\n\n.f1-border-\\[1px\\] {\n border-width: 1px;\n}\n\n.f1-border-\\[3px\\] {\n border-width: 3px;\n}\n\n.\\!f1-border-r-\\[0px\\] {\n border-right-width: 0px !important;\n}\n\n.f1-border-t {\n border-top-width: 1px;\n}\n\n.f1-border-solid {\n border-style: solid;\n}\n\n.f1-border-dashed {\n border-style: dashed;\n}\n\n.f1-border-none {\n border-style: none;\n}\n\n.\\!f1-border-primary-container {\n --tw-border-opacity: 1 !important;\n border-color: rgb(232 240 255 / var(--tw-border-opacity)) !important;\n}\n\n.f1-border-primary-container {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(240 82 82 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(200 30 30 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-50 {\n --tw-border-opacity: 1;\n border-color: rgb(249 250 251 / var(--tw-border-opacity));\n}\n\n.\\!f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity)) !important;\n}\n\n.\\!f1-bg-mono-white {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;\n}\n\n.f1-bg-\\[\\#E7F0FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-\\[\\#FDF2F2\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(253 242 242 / var(--tw-bg-opacity));\n}\n\n.f1-bg-mono-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(43 103 249 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-container {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(60 124 250 / var(--tw-bg-opacity));\n}\n\n.f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-fill-primary-600 {\n fill: #3c7cfa;\n}\n\n.f1-fill-tertiary-red-600 {\n fill: #e02424;\n}\n\n.f1-fill-tertiary-grey-400 {\n fill: #9ca3af;\n}\n\n.f1-fill-primary-800 {\n fill: #2b67f9;\n}\n\n.f1-p-0 {\n padding: 0px;\n}\n\n.f1-p-1 {\n padding: 0.25rem;\n}\n\n.f1-p-4 {\n padding: 1rem;\n}\n\n.f1-p-6 {\n padding: 1.5rem;\n}\n\n.f1-px-3xl {\n padding-left: 24px;\n padding-right: 24px;\n}\n\n.f1-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.f1-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.f1-px-\\[16px\\] {\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.f1-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.f1-py-2 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n.f1-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.f1-py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n\n.f1-py-\\[24px\\] {\n padding-top: 24px;\n padding-bottom: 24px;\n}\n\n.f1-py-\\[49px\\] {\n padding-top: 49px;\n padding-bottom: 49px;\n}\n\n.f1-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n\n.f1-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important;\n}\n\n.f1-pl-4 {\n padding-left: 1rem;\n}\n\n.f1-pr-10 {\n padding-right: 2.5rem;\n}\n\n.f1-pr-3 {\n padding-right: 0.75rem;\n}\n\n.f1-pt-1 {\n padding-top: 0.25rem;\n}\n\n.f1-pb-2 {\n padding-bottom: 8px;\n}\n\n.f1-text-left {\n text-align: left;\n}\n\n.f1-text-center {\n text-align: center;\n}\n\n.f1-text-2xl {\n font-size: 1.5rem;\n}\n\n.f1-text-3xl {\n font-size: 1.875rem;\n}\n\n.f1-text-\\[14px\\] {\n font-size: 14px;\n}\n\n.f1-text-\\[16px\\] {\n font-size: 16px;\n}\n\n.f1-text-\\[21px\\] {\n font-size: 21px;\n}\n\n.f1-text-\\[24px\\] {\n font-size: 24px;\n}\n\n.f1-text-\\[30px\\] {\n font-size: 30px;\n}\n\n.f1-text-\\[32px\\] {\n font-size: 32px;\n}\n\n.f1-text-lg {\n font-size: 1.125rem;\n}\n\n.f1-text-md {\n font-size: 1rem;\n}\n\n.f1-text-sm {\n font-size: 0.875rem;\n}\n\n.f1-text-xs {\n font-size: 0.75rem;\n}\n\n.f1-font-\\[400\\] {\n font-weight: 400;\n}\n\n.f1-font-bold {\n font-weight: 700;\n}\n\n.f1-font-medium {\n font-weight: 500;\n}\n\n.f1-font-normal {\n font-weight: 400;\n}\n\n.f1-font-semibold {\n font-weight: 600;\n}\n\n.f1-capitalize {\n text-transform: capitalize;\n}\n\n.f1-leading-6 {\n line-height: 1.5rem;\n}\n\n.f1-leading-9 {\n line-height: 2.25rem;\n}\n\n.f1-leading-\\[21px\\] {\n line-height: 21px;\n}\n\n.f1-leading-\\[32px\\] {\n line-height: 32px;\n}\n\n.f1-leading-\\[42px\\] {\n line-height: 42px;\n}\n\n.f1-leading-none {\n line-height: 1;\n}\n\n.f1-leading-normal {\n line-height: 1.5;\n}\n\n.f1-leading-tight {\n line-height: 1.25;\n}\n\n.f1-leading-relaxed {\n line-height: 1.625;\n}\n\n.\\!f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1 !important;\n color: rgb(107 114 128 / var(--tw-text-opacity)) !important;\n}\n\n.\\!f1-text-tertiary-red-600 {\n --tw-text-opacity: 1 !important;\n color: rgb(224 36 36 / var(--tw-text-opacity)) !important;\n}\n\n.f1-text-\\[\\#1F2A37\\] {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[\\#306ef9\\] {\n --tw-text-opacity: 1;\n color: rgb(48 110 249 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[\\#374151\\] {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.f1-text-mono-70 {\n --tw-text-opacity: 1;\n color: rgb(108 117 125 / var(--tw-text-opacity));\n}\n\n.f1-text-mono-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.f1-text-primary-700 {\n --tw-text-opacity: 1;\n color: rgb(51 113 250 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-800 {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-red-600 {\n --tw-text-opacity: 1;\n color: rgb(224 36 36 / var(--tw-text-opacity));\n}\n\n.f1-text-primary-800 {\n --tw-text-opacity: 1;\n color: rgb(43 103 249 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[red\\] {\n --tw-text-opacity: 1;\n color: rgb(255 0 0 / var(--tw-text-opacity));\n}\n\n.f1-placeholder-tertiary-red-600::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity));\n}\n\n.f1-placeholder-tertiary-red-600::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity));\n}\n\n.f1-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.f1-outline {\n outline-style: solid;\n}\n\n.f1-outline-0 {\n outline-width: 0px;\n}\n\n.f1-outline-primary-200 {\n outline-color: #a1c2fd;\n}\n\n.f1-outline-tertiary-red-500 {\n outline-color: #f05252;\n}\n\n.hover\\:f1-border-primary-container:hover {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity));\n}\n\n.hover\\:f1-bg-primary-900:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-primary-container:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-tertiary-grey-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-\\[\\#e8f0ff\\]:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-text-tertiary-grey-600:hover {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n\n.focus\\:f1-border-\\[3px\\]:focus {\n border-width: 3px;\n}\n\n.focus\\:f1-bg-\\[\\#E7F0FF\\]:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity));\n}\n\n.focus\\:f1-bg-primary-50:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.focus\\:f1-outline-\\[0\\.1px\\]:focus {\n outline-width: 0.1px;\n}\n\n.focus\\:f1-outline-\\[\\#2B67F9\\]:focus {\n outline-color: #2b67f9;\n}\n\n.focus\\:f1-outline-tertiary-red-500:focus {\n outline-color: #f05252;\n}\n\n.focus-visible\\:f1-bg-primary-900:focus-visible {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.focus-visible\\:f1-outline-3:focus-visible {\n outline-width: 3px;\n}\n\n.active\\:f1-bg-primary-900:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.active\\:f1-outline-3:active {\n outline-width: 3px;\n}\n\n.disabled\\:f1-bg-tertiary-grey-200:disabled {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n\n.disabled\\:f1-text-tertiary-grey-400:disabled {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n\n.disabled\\:f1-outline-0:disabled {\n outline-width: 0px;\n}\n\n@media (min-width: 640px) {\n .tablet\\:f1-static {\n position: static;\n }\n\n .tablet\\:f1-mb-0 {\n margin-bottom: 0px;\n }\n\n .tablet\\:f1-mb-\\[120px\\] {\n margin-bottom: 120px;\n }\n\n .tablet\\:f1-h-auto {\n height: auto;\n }\n\n .tablet\\:f1-w-\\[342px\\] {\n width: 342px;\n }\n\n .tablet\\:f1-w-\\[345px\\] {\n width: 345px;\n }\n\n .tablet\\:f1-w-auto {\n width: auto;\n }\n\n .tablet\\:f1-min-w-\\[210px\\] {\n min-width: 210px;\n }\n\n .tablet\\:f1-max-w-\\[442px\\] {\n max-width: 442px;\n }\n\n .tablet\\:f1-justify-normal {\n justify-content: normal;\n }\n\n .tablet\\:f1-px-0 {\n padding-left: 0px;\n padding-right: 0px;\n }\n\n .tablet\\:\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important;\n }\n\n .tablet\\:\\!f1-pt-\\[49px\\] {\n padding-top: 49px !important;\n }\n\n .tablet\\:f1-pb-4xl {\n padding-bottom: 32px;\n }\n\n .tablet\\:f1-pt-0 {\n padding-top: 0px;\n }\n\n .tablet\\:f1-pt-\\[64px\\] {\n padding-top: 64px;\n }\n\n .tablet\\:\\!f1-shadow-none {\n --tw-shadow: 0 0 #0000 !important;\n --tw-shadow-colored: 0 0 #0000 !important;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n }\n}\n","",{version:3,sources:["webpack://./styles/f1-style.css"],names:[],mappings:"AAAA;;;EAGE,wBAAwB;EACxB,wBAAwB;EACxB,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,eAAe;EACf,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,sCAAsC;EACtC,8BAA8B;EAC9B,6BAA6B;EAC7B,4BAA4B;EAC5B,eAAe;EACf,oBAAoB;EACpB,sBAAsB;EACtB,uBAAuB;EACvB,wBAAwB;EACxB,kBAAkB;EAClB,2BAA2B;EAC3B,4BAA4B;EAC5B,sCAAsC;EACtC,kCAAkC;EAClC,2BAA2B;EAC3B,sBAAsB;EACtB,8BAA8B;EAC9B,YAAY;EACZ,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,uBAAuB;EACvB,wBAAwB;EACxB,yBAAyB;EACzB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,qBAAqB;EACrB;AACF;AACA;;AAEA;EACE,wBAAwB;EACxB,wBAAwB;EACxB,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,eAAe;EACf,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,sCAAsC;EACtC,8BAA8B;EAC9B,6BAA6B;EAC7B,4BAA4B;EAC5B,eAAe;EACf,oBAAoB;EACpB,sBAAsB;EACtB,uBAAuB;EACvB,wBAAwB;EACxB,kBAAkB;EAClB,2BAA2B;EAC3B,4BAA4B;EAC5B,sCAAsC;EACtC,kCAAkC;EAClC,2BAA2B;EAC3B,sBAAsB;EACtB,8BAA8B;EAC9B,YAAY;EACZ,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,uBAAuB;EACvB,wBAAwB;EACxB,yBAAyB;EACzB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,qBAAqB;EACrB;AACF;AACA;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;;AAEA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,qBAAqB;AACvB;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,0BAA0B;AAC5B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,4DAA4D;AAC9D;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,sCAAsC;EACtC,yCAAyC;AAC3C;;AAEA;EACE,uCAAuC;EACvC,0CAA0C;AAC5C;;AAEA;EACE,2BAA2B;EAC3B,8BAA8B;AAChC;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iCAAiC;EACjC,oEAAoE;AACtE;;AAEA;EACE,sBAAsB;EACtB,yDAAyD;AAC3D;;AAEA;EACE,sBAAsB;EACtB,yDAAyD;AAC3D;;AAEA;EACE,sBAAsB;EACtB,yDAAyD;AAC3D;;AAEA;EACE,sBAAsB;EACtB,uDAAuD;AACzD;;AAEA;EACE,sBAAsB;EACtB,uDAAuD;AACzD;;AAEA;EACE,sBAAsB;EACtB,yDAAyD;AAC3D;;AAEA;EACE,6BAA6B;EAC7B,oEAAoE;AACtE;;AAEA;EACE,6BAA6B;EAC7B,oEAAoE;AACtE;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,wDAAwD;AAC1D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,wDAAwD;AAC1D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,uBAAuB;AACzB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,uBAAuB;AACzB;;AAEA;EACE,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,0BAA0B;AAC5B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,+BAA+B;EAC/B,2DAA2D;AAC7D;;AAEA;EACE,+BAA+B;EAC/B,yDAAyD;AAC3D;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,oBAAoB;EACpB,+CAA+C;AACjD;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,oBAAoB;EACpB,gDAAgD;AAClD;;AAEA;EACE,oBAAoB;EACpB,gDAAgD;AAClD;;AAEA;EACE,oBAAoB;EACpB,+CAA+C;AACjD;;AAEA;EACE,oBAAoB;EACpB,gDAAgD;AAClD;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,oBAAoB;EACpB,8CAA8C;AAChD;;AAEA;EACE,oBAAoB;EACpB,+CAA+C;AACjD;;AAEA;EACE,oBAAoB;EACpB,4CAA4C;AAC9C;;AAEA;EACE,2BAA2B;EAC3B,qDAAqD;AACvD;;AAEA;EACE,2BAA2B;EAC3B,qDAAqD;AACvD;;AAEA;EACE,6EAA6E;EAC7E;yCACuC;EACvC;sDACoD;AACtD;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;EACtB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,uDAAuD;AACzD;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,oBAAoB;EACpB,6CAA6C;AAC/C;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;EAClB,uDAAuD;AACzD;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,uDAAuD;AACzD;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,yDAAyD;AAC3D;;AAEA;EACE,oBAAoB;EACpB,gDAAgD;AAClD;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE;IACE,gBAAgB;EAClB;;EAEA;IACE,kBAAkB;EACpB;;EAEA;IACE,oBAAoB;EACtB;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,YAAY;EACd;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE,uBAAuB;EACzB;;EAEA;IACE,iBAAiB;IACjB,kBAAkB;EACpB;;EAEA;IACE,4BAA4B;EAC9B;;EAEA;IACE,4BAA4B;EAC9B;;EAEA;IACE,oBAAoB;EACtB;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE,iBAAiB;EACnB;;EAEA;IACE,iCAAiC;IACjC,yCAAyC;IACzC;mEAC+D;EACjE;AACF",sourcesContent:["*,\n::before,\n::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n;\n}\n\n.f1-pointer-events-none {\n pointer-events: none;\n}\n\n.f1-fixed {\n position: fixed;\n}\n\n.f1-absolute {\n position: absolute;\n}\n\n.f1-relative {\n position: relative;\n}\n\n.f1-sticky {\n position: sticky;\n}\n\n.f1-bottom-0 {\n bottom: 0px;\n}\n\n.f1-bottom-\\[-20px\\] {\n bottom: -20px;\n}\n\n.f1-bottom-\\[13px\\] {\n bottom: 13px;\n}\n\n.f1-left-0 {\n left: 0px;\n}\n\n.f1-right-0 {\n right: 0px;\n}\n\n.f1-right-2 {\n right: 8px;\n}\n\n.f1-right-3 {\n right: 0.75rem;\n}\n\n.f1--top-1 {\n top: -0.25rem;\n}\n\n.f1-top-0 {\n top: 0px;\n}\n\n.f1-top-\\[10px\\] {\n top: 10px;\n}\n\n.f1-top-\\[25\\.5\\%\\] {\n top: 25.5%;\n}\n\n.f1-z-20 {\n z-index: 20;\n}\n\n.f1-z-50 {\n z-index: 50;\n}\n\n.f1-z-10 {\n z-index: 10;\n}\n.f1-m-0 {\n margin: 0px;\n}\n\n.f1-mx-\\[21px\\] {\n margin-left: 21px;\n margin-right: 21px;\n}\n\n.f1-mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.f1-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.f1-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem;\n}\n\n.f1-my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.f1-mx-8 {\n margin-left: 2rem;\n margin-right: 2rem;\n}\n\n.f1-my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.\\!f1-mr-0 {\n margin-right: 0px !important;\n}\n\n.f1-mb-0 {\n margin-bottom: 0px;\n}\n\n.f1-mb-1 {\n margin-bottom: 0.25rem;\n}\n\n.f1-mb-2 {\n margin-bottom: 8px;\n}\n\n.f1-mb-3 {\n margin-bottom: 0.75rem;\n}\n\n.f1-mb-4 {\n margin-bottom: 1rem;\n}\n\n.f1-mb-6 {\n margin-bottom: 1.5rem;\n}\n\n.f1-mb-\\[8px\\] {\n margin-bottom: 8px;\n}\n\n.f1-ml-3 {\n margin-left: 0.75rem;\n}\n\n.f1-mr-1 {\n margin-right: 0.25rem;\n}\n\n.f1-mt-0 {\n margin-top: 0px;\n}\n\n.f1-mt-1 {\n margin-top: 0.25rem;\n}\n\n.f1-mt-2 {\n margin-top: 8px;\n}\n\n.f1-mt-3 {\n margin-top: 0.75rem;\n}\n\n.f1-mt-4 {\n margin-top: 1rem;\n}\n\n.f1-mt-5 {\n margin-top: 1.25rem;\n}\n\n.f1-mt-6 {\n margin-top: 1.5rem;\n}\n\n.f1-mt-\\[-4px\\] {\n margin-top: -4px;\n}\n\n.f1-mt-\\[32px\\] {\n margin-top: 32px;\n}\n\n.f1-mt-8 {\n margin-top: 2rem;\n}\n\n.f1--mt-2 {\n margin-top: -8px;\n}\n\n.f1--mt-2\\.5 {\n margin-top: -0.625rem;\n}\n\n.f1-mt-9 {\n margin-top: 2.25rem;\n}\n\n.f1-box-border {\n box-sizing: border-box;\n}\n\n.f1-inline {\n display: inline;\n}\n\n.f1-flex {\n display: flex;\n}\n\n.f1-inline-flex {\n display: inline-flex;\n}\n\n.\\!f1-h-5 {\n height: 1.25rem !important;\n}\n\n.f1-h-12 {\n height: 3rem;\n}\n\n.f1-h-24 {\n height: 6rem;\n}\n\n.f1-h-\\[1px\\] {\n height: 1px;\n}\n\n.f1-h-\\[48px\\] {\n height: 48px;\n}\n\n.f1-h-\\[73px\\] {\n height: 73px;\n}\n\n.f1-h-\\[calc\\(100\\%-92px\\)\\] {\n height: calc(100% - 92px);\n}\n\n.f1-h-auto {\n height: auto;\n}\n\n.f1-h-full {\n height: 100%;\n}\n\n.f1-h-10 {\n height: 2.5rem;\n}\n\n.f1-h-96 {\n height: 24rem;\n}\n\n.f1-h-1 {\n height: 0.25rem;\n}\n\n.f1-h-1\\.5 {\n height: 6px;\n}\n\n.f1-h-4 {\n height: 1rem;\n}\n\n.f1-h-7 {\n height: 1.75rem;\n}\n\n.f1-h-5 {\n height: 1.25rem;\n}\n\n.f1-max-h-64 {\n max-height: 16rem;\n}\n\n.f1-max-h-\\[150px\\] {\n max-height: 150px;\n}\n\n.f1-max-h-\\[193px\\] {\n max-height: 193px;\n}\n\n.f1-min-h-\\[52px\\] {\n min-height: 52px;\n}\n\n.\\!f1-w-5 {\n width: 1.25rem !important;\n}\n\n.\\!f1-w-\\[138px\\] {\n width: 138px !important;\n}\n\n.f1-w-24 {\n width: 6rem;\n}\n\n.f1-w-56 {\n width: 14rem;\n}\n\n.f1-w-\\[206\\.5\\%\\] {\n width: 206.5%;\n}\n\n.f1-w-\\[210\\.5\\%\\] {\n width: 210.5%;\n}\n\n.f1-w-\\[300px\\] {\n width: 300px;\n}\n\n.f1-w-\\[342px\\] {\n width: 342px;\n}\n\n.f1-w-\\[48\\%\\] {\n width: 48%;\n}\n\n.f1-w-\\[50\\%\\] {\n width: 50%;\n}\n\n.f1-w-\\[calc\\(100\\%-48px\\)\\] {\n width: calc(100% - 48px);\n}\n\n.f1-w-auto {\n width: auto;\n}\n\n.f1-w-full {\n width: 100%;\n}\n\n.f1-w-10 {\n width: 2.5rem;\n}\n\n.f1-w-\\[calc\\(100\\%-2rem-4px\\)\\] {\n width: calc(100% - 2rem - 4px);\n}\n\n.f1-w-4 {\n width: 1rem;\n}\n\n.f1-min-w-\\[210px\\] {\n min-width: 210px;\n}\n\n.f1-max-w-\\[318px\\] {\n max-width: 318px;\n}\n\n.f1-flex-initial {\n flex: 0 1 auto;\n}\n\n.f1-shrink {\n flex-shrink: 1;\n}\n\n.f1-flex-grow {\n flex-grow: 1;\n}\n\n.f1-grow {\n flex-grow: 1;\n}\n\n.f1-basis-0 {\n flex-basis: 0px;\n}\n\n@keyframes f1-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.f1-animate-spin {\n animation: f1-spin 1s linear infinite;\n}\n\n.f1-cursor-not-allowed {\n cursor: not-allowed;\n}\n\n.f1-cursor-pointer {\n cursor: pointer;\n}\n\n.f1-cursor-text {\n cursor: text;\n}\n\n.f1-resize-none {\n resize: none;\n}\n\n.f1-list-none {\n list-style-type: none;\n}\n\n.f1-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.f1-flex-col {\n flex-direction: column;\n}\n\n.f1-content-center {\n align-content: center;\n}\n\n.f1-items-start {\n align-items: flex-start;\n}\n\n.f1-items-end {\n align-items: flex-end;\n}\n\n.f1-items-center {\n align-items: center;\n}\n\n.f1-justify-start {\n justify-content: flex-start;\n}\n\n.f1-justify-end {\n justify-content: flex-end;\n}\n\n.f1-justify-center {\n justify-content: center;\n}\n\n.f1-justify-between {\n justify-content: space-between;\n}\n\n.f1-justify-evenly {\n justify-content: space-evenly;\n}\n\n.f1-gap-1 {\n gap: 0.25rem;\n}\n\n.f1-gap-10 {\n gap: 2.5rem;\n}\n\n.f1-gap-2 {\n gap: 8px;\n}\n\n.f1-gap-3 {\n gap: 0.75rem;\n}\n\n.f1-gap-4 {\n gap: 1rem;\n}\n\n.f1-gap-6 {\n gap: 1.5rem;\n}\n\n.f1-gap-\\[12px\\] {\n gap: 12px;\n}\n\n.f1-gap-1\\.5 {\n gap: 6px;\n}\n\n.f1-gap-2\\.5 {\n gap: 0.625rem;\n}\n\n.f1-gap-\\[8px\\] {\n gap: 8px;\n}\n\n.f1-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(8px * var(--tw-space-x-reverse));\n margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.f1-self-stretch {\n align-self: stretch;\n}\n\n.f1-overflow-scroll {\n overflow: scroll;\n}\n\n.f1-overflow-y-auto {\n overflow-y: auto;\n}\n\n.f1-overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.\\!f1-rounded-\\[0px\\] {\n border-radius: 0px !important;\n}\n\n.f1-rounded-\\[6px\\] {\n border-radius: 6px;\n}\n\n.f1-rounded-full {\n border-radius: 9999px;\n}\n\n.f1-rounded-sm {\n border-radius: 4px;\n}\n\n.f1-rounded-lg {\n border-radius: 12px;\n}\n\n.f1-rounded-md {\n border-radius: 8px;\n}\n\n.\\!f1-rounded-l-sm {\n border-top-left-radius: 4px !important;\n border-bottom-left-radius: 4px !important;\n}\n\n.\\!f1-rounded-r-sm {\n border-top-right-radius: 4px !important;\n border-bottom-right-radius: 4px !important;\n}\n\n.f1-rounded-l-sm {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.f1-border {\n border-width: 1px;\n}\n\n.f1-border-2 {\n border-width: 2px;\n}\n\n.f1-border-\\[1px\\] {\n border-width: 1px;\n}\n\n.f1-border-\\[3px\\] {\n border-width: 3px;\n}\n\n.\\!f1-border-r-\\[0px\\] {\n border-right-width: 0px !important;\n}\n\n.f1-border-t {\n border-top-width: 1px;\n}\n\n.f1-border-solid {\n border-style: solid;\n}\n\n.f1-border-dashed {\n border-style: dashed;\n}\n\n.f1-border-none {\n border-style: none;\n}\n\n.\\!f1-border-primary-container {\n --tw-border-opacity: 1 !important;\n border-color: rgb(232 240 255 / var(--tw-border-opacity)) !important;\n}\n\n.f1-border-primary-container {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(240 82 82 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(200 30 30 / var(--tw-border-opacity));\n}\n\n.f1-border-tertiary-grey-50 {\n --tw-border-opacity: 1;\n border-color: rgb(249 250 251 / var(--tw-border-opacity));\n}\n\n.\\!f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity)) !important;\n}\n\n.\\!f1-bg-mono-white {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;\n}\n\n.f1-bg-\\[\\#E7F0FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-\\[\\#FDF2F2\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(253 242 242 / var(--tw-bg-opacity));\n}\n\n.f1-bg-mono-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(43 103 249 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-container {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n\n.f1-bg-tertiary-grey-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n\n.f1-bg-primary-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(60 124 250 / var(--tw-bg-opacity));\n}\n\n.f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.f1-fill-primary-600 {\n fill: #3c7cfa;\n}\n\n.f1-fill-tertiary-red-600 {\n fill: #e02424;\n}\n\n.f1-fill-tertiary-grey-400 {\n fill: #9ca3af;\n}\n\n.f1-fill-primary-800 {\n fill: #2b67f9;\n}\n\n.f1-p-0 {\n padding: 0px;\n}\n\n.f1-p-1 {\n padding: 0.25rem;\n}\n\n.f1-p-4 {\n padding: 1rem;\n}\n\n.f1-p-6 {\n padding: 1.5rem;\n}\n\n.f1-px-3xl {\n padding-left: 24px;\n padding-right: 24px;\n}\n\n.f1-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.f1-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.f1-px-\\[16px\\] {\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.f1-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.f1-py-2 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n.f1-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.f1-py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n\n.f1-py-\\[24px\\] {\n padding-top: 24px;\n padding-bottom: 24px;\n}\n\n.f1-py-\\[49px\\] {\n padding-top: 49px;\n padding-bottom: 49px;\n}\n\n.f1-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n\n.f1-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important;\n}\n\n.f1-pl-4 {\n padding-left: 1rem;\n}\n\n.f1-pr-10 {\n padding-right: 2.5rem;\n}\n\n.f1-pr-3 {\n padding-right: 0.75rem;\n}\n\n.f1-pt-1 {\n padding-top: 0.25rem;\n}\n\n.f1-pb-2 {\n padding-bottom: 8px;\n}\n\n.f1-text-left {\n text-align: left;\n}\n\n.f1-text-center {\n text-align: center;\n}\n\n.f1-text-2xl {\n font-size: 1.5rem;\n}\n\n.f1-text-3xl {\n font-size: 1.875rem;\n}\n\n.f1-text-\\[14px\\] {\n font-size: 14px;\n}\n\n.f1-text-\\[16px\\] {\n font-size: 16px;\n}\n\n.f1-text-\\[21px\\] {\n font-size: 21px;\n}\n\n.f1-text-\\[24px\\] {\n font-size: 24px;\n}\n\n.f1-text-\\[30px\\] {\n font-size: 30px;\n}\n\n.f1-text-\\[32px\\] {\n font-size: 32px;\n}\n\n.f1-text-lg {\n font-size: 1.125rem;\n}\n\n.f1-text-md {\n font-size: 1rem;\n}\n\n.f1-text-sm {\n font-size: 0.875rem;\n}\n\n.f1-text-xs {\n font-size: 0.75rem;\n}\n\n.f1-font-\\[400\\] {\n font-weight: 400;\n}\n\n.f1-font-bold {\n font-weight: 700;\n}\n\n.f1-font-medium {\n font-weight: 500;\n}\n\n.f1-font-normal {\n font-weight: 400;\n}\n\n.f1-font-semibold {\n font-weight: 600;\n}\n\n.f1-capitalize {\n text-transform: capitalize;\n}\n\n.f1-leading-6 {\n line-height: 1.5rem;\n}\n\n.f1-leading-9 {\n line-height: 2.25rem;\n}\n\n.f1-leading-\\[21px\\] {\n line-height: 21px;\n}\n\n.f1-leading-\\[32px\\] {\n line-height: 32px;\n}\n\n.f1-leading-\\[42px\\] {\n line-height: 42px;\n}\n\n.f1-leading-none {\n line-height: 1;\n}\n\n.f1-leading-normal {\n line-height: 1.5;\n}\n\n.f1-leading-tight {\n line-height: 1.25;\n}\n\n.f1-leading-relaxed {\n line-height: 1.625;\n}\n\n.\\!f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1 !important;\n color: rgb(107 114 128 / var(--tw-text-opacity)) !important;\n}\n\n.\\!f1-text-tertiary-red-600 {\n --tw-text-opacity: 1 !important;\n color: rgb(224 36 36 / var(--tw-text-opacity)) !important;\n}\n\n.f1-text-\\[\\#1F2A37\\] {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[\\#306ef9\\] {\n --tw-text-opacity: 1;\n color: rgb(48 110 249 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[\\#374151\\] {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.f1-text-mono-70 {\n --tw-text-opacity: 1;\n color: rgb(108 117 125 / var(--tw-text-opacity));\n}\n\n.f1-text-mono-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.f1-text-primary-700 {\n --tw-text-opacity: 1;\n color: rgb(51 113 250 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-grey-800 {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity));\n}\n\n.f1-text-tertiary-red-600 {\n --tw-text-opacity: 1;\n color: rgb(224 36 36 / var(--tw-text-opacity));\n}\n\n.f1-text-primary-800 {\n --tw-text-opacity: 1;\n color: rgb(43 103 249 / var(--tw-text-opacity));\n}\n\n.f1-text-\\[red\\] {\n --tw-text-opacity: 1;\n color: rgb(255 0 0 / var(--tw-text-opacity));\n}\n\n.f1-placeholder-tertiary-red-600::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity));\n}\n\n.f1-placeholder-tertiary-red-600::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity));\n}\n\n.f1-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.f1-outline {\n outline-style: solid;\n}\n\n.f1-outline-0 {\n outline-width: 0px;\n}\n\n.f1-outline-primary-200 {\n outline-color: #a1c2fd;\n}\n\n.f1-outline-tertiary-red-500 {\n outline-color: #f05252;\n}\n\n.hover\\:f1-border-primary-container:hover {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity));\n}\n\n.hover\\:f1-bg-primary-900:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-primary-container:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-tertiary-grey-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-bg-\\[\\#e8f0ff\\]:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.hover\\:f1-text-tertiary-grey-600:hover {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n\n.focus\\:f1-border-\\[3px\\]:focus {\n border-width: 3px;\n}\n\n.focus\\:f1-bg-\\[\\#E7F0FF\\]:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity));\n}\n\n.focus\\:f1-bg-primary-50:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity));\n}\n\n.focus\\:f1-outline-\\[0\\.1px\\]:focus {\n outline-width: 0.1px;\n}\n\n.focus\\:f1-outline-\\[\\#2B67F9\\]:focus {\n outline-color: #2b67f9;\n}\n\n.focus\\:f1-outline-tertiary-red-500:focus {\n outline-color: #f05252;\n}\n\n.focus-visible\\:f1-bg-primary-900:focus-visible {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.focus-visible\\:f1-outline-3:focus-visible {\n outline-width: 3px;\n}\n\n.active\\:f1-bg-primary-900:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity));\n}\n\n.active\\:f1-outline-3:active {\n outline-width: 3px;\n}\n\n.disabled\\:f1-bg-tertiary-grey-200:disabled {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n\n.disabled\\:f1-text-tertiary-grey-400:disabled {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n\n.disabled\\:f1-outline-0:disabled {\n outline-width: 0px;\n}\n\n@media (min-width: 640px) {\n .tablet\\:f1-static {\n position: static;\n }\n\n .tablet\\:f1-mb-0 {\n margin-bottom: 0px;\n }\n\n .tablet\\:f1-mb-\\[120px\\] {\n margin-bottom: 120px;\n }\n\n .tablet\\:f1-h-auto {\n height: auto;\n }\n\n .tablet\\:f1-w-\\[342px\\] {\n width: 342px;\n }\n\n .tablet\\:f1-w-\\[345px\\] {\n width: 345px;\n }\n\n .tablet\\:f1-w-auto {\n width: auto;\n }\n\n .tablet\\:f1-min-w-\\[210px\\] {\n min-width: 210px;\n }\n\n .tablet\\:f1-max-w-\\[442px\\] {\n max-width: 442px;\n }\n\n .tablet\\:f1-justify-normal {\n justify-content: normal;\n }\n\n .tablet\\:f1-px-0 {\n padding-left: 0px;\n padding-right: 0px;\n }\n\n .tablet\\:\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important;\n }\n\n .tablet\\:\\!f1-pt-\\[49px\\] {\n padding-top: 49px !important;\n }\n\n .tablet\\:f1-pb-4xl {\n padding-bottom: 32px;\n }\n\n .tablet\\:f1-pt-0 {\n padding-top: 0px;\n }\n\n .tablet\\:f1-pt-\\[64px\\] {\n padding-top: 64px;\n }\n\n .tablet\\:\\!f1-shadow-none {\n --tw-shadow: 0 0 #0000 !important;\n --tw-shadow-colored: 0 0 #0000 !important;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n }\n}\n"],sourceRoot:""}]);const o=l},2896:(e,n,t)=>{t.d(n,{A:()=>j});var i=t(1354),r=t.n(i),a=t(6314),l=t.n(a),o=t(4417),s=t.n(o),d=new URL(t(8199),t.b),u=new URL(t(5079),t.b),c=new URL(t(7047),t.b),f=new URL(t(2375),t.b),A=new URL(t(71),t.b),m=new URL(t(5303),t.b),p=new URL(t(9675),t.b),v=new URL(t(675),t.b),g=l()(r()),b=s()(d),y=s()(u),h=s()(c),x=s()(f),E=s()(A),C=s()(m),w=s()(p),B=s()(v);g.push([e.id,`.form.react.ff-react-form {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form .f1-font-proxima-nova {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form :where(input, select) {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${b}) format('woff2'),\n url(${y}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 700;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${h}) format('woff2'),\n url(${x}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 600;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${E}) format('woff2'),\n url(${C}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 500;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${w}) format('woff2'),\n url(${B}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 400;\n}\n`,"",{version:3,sources:["webpack://./styles/fonts/fonts.css"],names:[],mappings:"AAAA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,2BAA2B;EAC3B;;0DAEoE;EACpE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAE4E;EAC5E,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAEwE;EACxE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAE0E;EAC1E,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB",sourcesContent:[".form.react.ff-react-form {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form .f1-font-proxima-nova {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form :where(input, select) {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaBold/bold-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaBold/bold-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 700;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaSemibold/semibold-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaSemibold/semibold-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 600;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaMedium/medium-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaMedium/medium-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 500;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaRegular/regular-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaRegular/regular-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 400;\n}\n"],sourceRoot:""}]);const j=g},2967:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(1354),r=t.n(i),a=t(6314),l=t.n(a)()(r());l.push([e.id,".f1-leading-12 {\n line-height: 2.625rem;\n}\n\n.f1-h-26 {\n height: 100px;\n}\n\n.f1-w-26 {\n width: 100px;\n}\n\n.f1-shadow-top {\n box-shadow:\n 0px -2px 4px -2px #0000000d,\n 0px -4px 6px -1px #0000001a;\n /* 0px -2px 4px -2px rgba(0, 0, 0, 0.05),\n 0px -10px 7px -7px rgba(0, 0, 0, 0.1); */\n}\n\n.f1-max-w-65 {\n max-width: 20rem;\n}\n\n.f1-link-text a {\n color: #374151;\n}\n\n.hide-spinner input::-webkit-outer-spin-button,\n.hide-spinner input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.hide-spinner input[type='number'] {\n -moz-appearance: textfield;\n}\n","",{version:3,sources:["webpack://./styles/styles.css"],names:[],mappings:"AAAA;EACE,qBAAqB;AACvB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;AACd;;AAEA;EACE;;+BAE6B;EAC7B;4CAC0C;AAC5C;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,wBAAwB;EACxB,SAAS;AACX;;AAEA,YAAY;AACZ;EACE,0BAA0B;AAC5B",sourcesContent:[".f1-leading-12 {\n line-height: 2.625rem;\n}\n\n.f1-h-26 {\n height: 100px;\n}\n\n.f1-w-26 {\n width: 100px;\n}\n\n.f1-shadow-top {\n box-shadow:\n 0px -2px 4px -2px #0000000d,\n 0px -4px 6px -1px #0000001a;\n /* 0px -2px 4px -2px rgba(0, 0, 0, 0.05),\n 0px -10px 7px -7px rgba(0, 0, 0, 0.1); */\n}\n\n.f1-max-w-65 {\n max-width: 20rem;\n}\n\n.f1-link-text a {\n color: #374151;\n}\n\n.hide-spinner input::-webkit-outer-spin-button,\n.hide-spinner input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.hide-spinner input[type='number'] {\n -moz-appearance: textfield;\n}\n"],sourceRoot:""}]);const o=l},2839:(e,n,t)=>{t.d(n,{Tm:()=>r,iH:()=>l,j2:()=>a,mn:()=>o});var i=t(4124);function r(e){const n=i.Xr[e];return n?n.alpha3:null}function a(e){const n=i.Xr[e];return n?n.alpha2:null}function l(e){const n=i.Xr[e];return n?n.name:null}const o=Object.keys(i.Xr).filter((e=>3===e.length)).map((e=>({value:e,label:l(e)})))},9058:(e,n,t)=>{t.r(n),t.d(n,{initialise:()=>lr});var i=t(4848),r=t(5338),a=t(591),l=t(4334),o=t(5473),s=t(1468),d=t(6540),u=t(9879);const c=t.p+"10183d99573bcd186235.svg",f=t.p+"71b71503b4f733079331.svg",A=t.p+"8f10666ff21ef0238370.svg",m=t.p+"f4a5163b8f91c2c66892.svg",p=t.p+"9dee3446081d7d47623b.svg",v=t.p+"6558f8e71743e073c18b.svg",g=t.p+"0cd8e74f8a68e0b1ae14.svg",b=t.p+"f670207e1feb7ec4f6d4.svg",y=t.p+"e84075ff43e508e4fbd5.svg",h=({className:e})=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,i.jsx)("path",{d:"M6.5 20C4.98 20 3.68333 19.4767 2.61 18.43C1.53667 17.3767 1 16.0933 1 14.58C1 13.28 1.39 12.12 2.17 11.1C2.95667 10.08 3.98333 9.43 5.25 9.15C5.67 7.61667 6.50333 6.37667 7.75 5.43C9.00333 4.47667 10.42 4 12 4C13.9533 4 15.6067 4.68 16.96 6.04C18.32 7.39333 19 9.04667 19 11C20.1533 11.1333 21.1067 11.6333 21.86 12.5C22.62 13.3533 23 14.3533 23 15.5C23 16.7533 22.5633 17.8167 21.69 18.69C20.8167 19.5633 19.7533 20 18.5 20H13C12.4533 20 11.9833 19.8033 11.59 19.41C11.1967 19.0233 11 18.5533 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5C19.2 18 19.79 17.7567 20.27 17.27C20.7567 16.79 21 16.2 21 15.5C21 14.8 20.7567 14.21 20.27 13.73C19.79 13.2433 19.2 13 18.5 13H17V11C17 9.62 16.5133 8.44 15.54 7.46C14.5667 6.48667 13.3867 6 12 6C10.62 6 9.44 6.48667 8.46 7.46C7.48667 8.44 7 9.62 7 11H6.5C5.53333 11 4.71 11.3433 4.03 12.03C3.34333 12.71 3 13.5333 3 14.5C3 15.4667 3.34333 16.3 4.03 17C4.71 17.6667 5.53333 18 6.5 18H9V20"})}),x=t.p+"9d49ce231cb895b6ef29.svg",E=t.p+"4ac349963383ebda508b.svg",C=t.p+"d563d85c23bcbd268d5e.svg",w=t.p+"c0dede047f9a2b7c1309.svg",B=t.p+"42caa2dd6b4f0de68157.svg",j=t.p+"8a06059b84b1aa2bf661.svg",N=t.p+"3d245ccf2dde73ceca07.svg",O=t.p+"36ddfb506829cb8cde72.svg",T=t.p+"dd199fa4125e4ebef289.svg",S=t.p+"f22fe25046b4ca4a969a.svg",I=t.p+"df83da88c151bcf97231.svg",k=t.p+"32cb4eea6ca1acb9f788.svg",D=t.p+"ac457c4800183645b1ad.svg",L=t.p+"ef3c33f0d919896ee0bf.svg",P=t.p+"0c9574c81d7d87e9ccd3.svg",R=t.p+"d70a547a409868c43a95.svg",F=t.p+"dc45d5d9fb4b8959e156.svg",M=t.p+"80929602ea97f94dc18c.svg",q=t.p+"a96ec21d243a49916487.svg",V=t.p+"6375eb14534238c06a4b.svg",_=t.p+"fdb0a109281e6c12eff6.svg",U=t.p+"1f76ff5e84787152adc5.svg",$=t.p+"34fe2370aa5e73787795.svg",Y=t.p+"4db0db393dfe2f9f90c1.svg",W=t.p+"1df3f35eac93c61986b1.svg",z=t.p+"080b774e0f4f9c679e85.svg",H=t.p+"c16900512bb2f899c7eb.svg",G=t.p+"3443b53b9b1a00c340f7.svg",Z=t.p+"3a660ff8435efa515e98.svg",K=t.p+"d9ed930ae3bb52f2abe1.svg",Q=t.p+"8053f51266aa9d864691.svg",X=t.p+"67cbc8178ea76ef0d8b4.svg",J=t.p+"396cc7cc5e61acfa8fc8.svg",ee=t.p+"d15d58eb544d245877e2.svg",ne=t.p+"ce5b46abe62641bddb20.svg",te=t.p+"fc7c8869af28cb1b9c21.svg",ie=t.p+"24c67c1821feba22f3f7.svg",re=t.p+"aff615d38d2fce3f82b2.svg",ae=t.p+"e85b9f93aac09995bad2.svg",le=t.p+"4ff338b86cdba19934cf.svg",oe=t.p+"bc42b55176ae1021b9e4.svg",se=t.p+"e7ac03e5736bea4d6346.svg",de=t.p+"5c23763467ce9cfda119.svg",ue=t.p+"c7a05c7d7d1f9347ae1b.svg",ce=t.p+"4ee01199f6f6b7e6fb24.svg",fe=t.p+"463e54e898297e314139.svg",Ae=t.p+"f75020be237d9de68d86.svg",me=t.p+"dddc2581e578cfb3b997.svg",pe=t.p+"2546128ef2e2d56276b7.svg",ve=({className:e})=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,i.jsx)("path",{d:"M14.06 9L15 9.94L5.92 19H5V18.08L14.06 9ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z"})}),ge=t.p+"2451ce2859277292a2a3.svg",be=t.p+"2f32844e02839dd608a4.svg",ye={loader:J,checkbox:A,rightArrowIcon:t.p+"3b687e48c6bb765ed976.svg",driverLicenseIcon:H,passportIcon:pe,medicalIcon:ie,driversLicenseBanner:G,passportBanner:me,mediCareBanner:oe,magnify:ne,magnifyError:te,alertCircleOutline:c,close:b,chevronDown:m,chevronDownError:p,closeError:y,nzDriverLicence:se,nzSampleCard:de,nzVersionNumber:ue,actLicenseNumber:E,actIdDetails:C,nswSampleCard:w,nswLicenseNumber:B,nswIdDetails:j,ntSampleCard:N,ntLicenseNumber:O,ntIdDetails:T,nzIdDetails:I,nzLicenseNumber:S,qldSampleCard:k,qldLicenseNumber:D,qldIdDetails:L,saSampleCard:P,saLicenseNumber:R,saIdDetails:F,tasSampleCard:M,tasLicenseNumber:q,tasIdDetails:V,vicSampleCard:_,vicLicenseNumber:U,vicIdDetails:$,waSampleCard:Y,waLicenseNumber:W,waIdDetails:z,blueMedicareCard:re,greenMedicareCard:ae,yellowMedicareCard:le,backArrow:f,actSampleCard:x,ausPassport:ce,nzPassport:Ae,chevronUp:v,chevronUpError:g,editIcon:Z,failedIcon:K,pendingIcon:ge,retryIcon:be,successIcon:t.p+"329d07fd3f40d3967c81.svg",loadingIcon:ee,internationPassport:fe,fileDocumentCheckOutline:X,fileDocumentAlertOutline:Q},he={name:"PASSPORT",mode:"individual",title:{label:"Get your passport ready"},descriptions:[{label:"Please grant access to your camera so we can take a photo of your passport. Make sure you are in a well-lit room and the details on your ID are clear."}],instructions:{content:[{image:ye.passportBanner}]},cta:{label:"Ready"}},xe={name:"NATIONAL_HEALTH_ID",mode:"individual",title:{label:"Get your Medicare card ready"},descriptions:[{label:"Please grant access to your camera so we can take a photo of your Medicare card. Make sure you are in a well-lit room and the details on your ID are clear."}],instructions:{content:[{image:ye.mediCareBanner}]},cta:{icon:"",label:"Ready"}};var Ee,Ce,we,Be=t(4164);!function(e){e.wrapper="ff-wrapper",e.description="ff-description",e.instructions="ff-instructions",e.documents="ff-documents",e.checkbox="ff-checkbox",e.label="ff-label",e.title="ff-title",e.subtitle="ff-subtitle",e.button="ff-button",e.cancelButton="ff-cancel-button",e.checkboxItem="ff-checkbox-item",e.descriptionItem="ff-description-item",e.instructionItem="ff-instruction-item",e.documentItem="ff-document-item",e.font="font",e.formWrapper="ff-form-wrapper",e.formField="ff-form-field",e.progressWrapper="ff-progress-wrapper",e.progressItem="ff-progress-item",e.loading="ff-loading"}(Ee||(Ee={})),function(e){e.DRIVERS_LICENCE="DRIVERS_LICENCE",e.PASSPORT="PASSPORT",e.NATIONAL_HEALTH_ID="NATIONAL_HEALTH_ID"}(Ce||(Ce={})),function(e){e.SUCCESS="SUCCESS",e.FAIL="FAIL",e.PENDING="PENDING",e.PARTIAL="PARTIAL",e.UPLOAD_SUCCESS="UPLOAD_SUCCESS",e.UPLOAD_FAIL="UPLOAD_FAIL"}(we||(we={})),Object.values(Ce);const je=({content:e,style:n,onChange:t,testid:r={container:"",input:"",inputWrapper:"",label:""}})=>(0,i.jsx)("div",{className:(0,Be.A)("f1-mt-5",Ee.checkbox),style:null==n?void 0:n[Ee.checkbox],"data-testid":r.container,children:null==e?void 0:e.map(((e,n)=>{var a;return(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex",Ee.checkboxItem),"data-testid":r.inputWrapper,style:null===(a=null==e?void 0:e.style)||void 0===a?void 0:a[Ee.checkboxItem],children:[(0,i.jsx)("input",{className:(0,Be.A)("!f1-mr-0","f1-rounded-sm","!f1-w-5","!f1-h-5"),id:`frankie-checkbox-id-${n}`,type:"checkbox",onChange:n=>{t&&t({item:e,isSelected:n.target.checked})},"data-testid":r.input}),(0,i.jsx)("label",{htmlFor:`frankie-checkbox-id-${n}`,className:(0,Be.A)("f1-font-normal","f1-text-md","f1-leading-6","f1-text-tertiary-grey-700","f1-ml-3"),"data-testid":r.label,children:e.label})]},`f1-checkbox-${n}`)}))});var Ne=t(2838),Oe=t.n(Ne);const Te=({descriptions:e,testId:n})=>(0,i.jsx)(i.Fragment,{children:null==e?void 0:e.map(((e,t)=>{var r,a;return(0,i.jsx)("div",{"data-testid":null==n?void 0:n.container,className:(0,Be.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text",Ee.description),style:null===(r=null==e?void 0:e.style)||void 0===r?void 0:r[Ee.description],dangerouslySetInnerHTML:{__html:Oe().sanitize(null!==(a=null==e?void 0:e.label)&&void 0!==a?a:"",{sanitize:!0})}},`f1-description-${t}`)}))}),Se=({label:e,style:n,className:t,testid:r={header:"",mockImg:null},onBack:a})=>{var l;return(0,i.jsxs)("h1",{className:(0,Be.A)("f1-text-2xl","f1-leading-9","f1-text-tertiary-grey-800","f1-mt-0",t,Ee.title),style:null==n?void 0:n[Ee.title],"data-testid":null==r?void 0:r.header,children:[a&&(0,i.jsx)("div",{className:(0,Be.A)("f1-text-sm","f1-text-tertiary-grey-500"),children:(0,i.jsxs)("span",{className:(0,Be.A)("f1-cursor-pointer","f1-flex","f1-gap-2","f1-leading-[21px]","f1-font-normal"),onClick:a,children:[(0,i.jsx)("img",{src:null!==(l=null==r?void 0:r.mockImg)&&void 0!==l?l:ye.backArrow,alt:"back"})," Back"]})}),(0,i.jsx)("div",{className:(0,Be.A)("f1-font-bold"),children:e})]})};const Ie=e=>{var n,{className:t,disabled:r}=e,a=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["className","disabled"]);return(0,i.jsx)("button",Object.assign({disabled:r,className:(0,Be.A)("f1-flex","f1-flex-initial","f1-font-semibold","f1-font-proxima-nova","f1-items-center","f1-justify-center","f1-border-none","f1-outline","f1-outline-0","focus-visible:f1-outline-3","active:f1-outline-3","disabled:f1-text-tertiary-grey-400","disabled:f1-outline-0","f1-h-12","f1-w-full","f1-text-md","f1-space-x-2","f1-px-5","f1-py-3","f1-rounded-full","f1-text-mono-white","f1-bg-primary-800","hover:f1-bg-primary-900","focus-visible:f1-bg-primary-900","active:f1-bg-primary-900","disabled:f1-bg-tertiary-grey-200","f1-outline-primary-200",t,r?"f1-cursor-not-allowed":"f1-cursor-pointer")},a,{"data-testid":null===(n=null==a?void 0:a.testid)||void 0===n?void 0:n.button}))};const ke=e=>{var{className:n,disabled:t=!1}=e,r=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["className","disabled"]);return(0,i.jsx)(Ie,Object.assign({className:n,disabled:t},r))};const De=e=>{var n,t,r,a,l,o,s,d,u,c,f,A,m,p,v,g,b,y,{className:h=Ee.button,disabled:x=!1,label:E="",icon:C=null,onClick:w,visible:B=!0,testid:j={container:"",preButton:""},buttonClass:N=""}=e,O=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["className","disabled","label","icon","onClick","visible","testid","buttonClass"]);return B?(0,i.jsxs)("div",{"data-testid":j.container,className:(0,Be.A)("f1-left-0","f1-right-0","f1-bottom-0","f1-p-6","tablet:f1-pt-0","tablet:f1-mb-[120px]","f1-shadow-top","tablet:!f1-shadow-none","f1-flex","f1-justify-center","f1-sticky","tablet:f1-static","f1-bg-mono-white","f1-z-20","f1-gap-4",N),children:[(null===(n=null==O?void 0:O.editable)||void 0===n?void 0:n.pre)&&(0,i.jsxs)(ke,{disabled:null===(r=null===(t=null==O?void 0:O.editable)||void 0===t?void 0:t.pre)||void 0===r?void 0:r.disabled,onClick:null===(l=null===(a=null==O?void 0:O.editable)||void 0===a?void 0:a.pre)||void 0===l?void 0:l.onClick,"data-testid":j.preButton,className:(0,Be.A)("f1-w-full","tablet: "+((null===(o=null==O?void 0:O.editable)||void 0===o?void 0:o.pre)?"f1-w-[50%]":"f1-min-w-[210px]"),"f1-h-auto","!f1-bg-mono-white","!f1-text-tertiary-grey-500",Ee.cancelButton),style:Object.assign({border:"1px solid #E5E5E5"},(null==O?void 0:O.style)?O.style:{}),children:[null===(d=null===(s=null==O?void 0:O.editable)||void 0===s?void 0:s.pre)||void 0===d?void 0:d.icon,null===(c=null===(u=null==O?void 0:O.editable)||void 0===u?void 0:u.pre)||void 0===c?void 0:c.label]}),(0,i.jsxs)(ke,{disabled:x,onClick:w,className:(0,Be.A)("f1-w-full",{"tablet:f1-w-auto":!(null===(f=null==O?void 0:O.editable)||void 0===f?void 0:f.post)},"tablet: "+((null===(A=null==O?void 0:O.editable)||void 0===A?void 0:A.post)?"f1-w-[50%]":"f1-min-w-[210px]"),"f1-h-auto",h),style:null==O?void 0:O.style,children:[null!==(v=null===(p=null===(m=null==O?void 0:O.editable)||void 0===m?void 0:m.post)||void 0===p?void 0:p.icon)&&void 0!==v?v:C,null!==(y=null===(b=null===(g=null==O?void 0:O.editable)||void 0===g?void 0:g.post)||void 0===b?void 0:b.label)&&void 0!==y?y:E]})]}):null},Le=({disabled:e=!1,renderScreen:n,onSubmit:t,ctaInfo:r,formWrapperClass:a,inputButtonClass:l,inputClass:o,hideCTA:u=!1,buttonConfig:c})=>{var f,A,m,p;const{pageConfigs:v}=(0,s.d4)(Ci),[g,b]=(0,d.useState)(vi[v.currentModule]);(0,d.useEffect)((()=>{b(vi[v.currentModule])}),[v]);const y=r||v[v.currentModule];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,Be.A)("f1-py-[49px]","f1-px-3xl","tablet:f1-px-0","tablet:f1-pt-[64px]","tablet:f1-pb-4xl",o,a),children:n({onValidate:e=>{b((n=>Object.assign(Object.assign({},n),{disabled:!e})))}})}),(0,i.jsx)(De,Object.assign({icon:null===(f=null==y?void 0:y.cta)||void 0===f?void 0:f.icon,visible:(null==y?void 0:y.cta)&&!u,label:null===(A=null==y?void 0:y.cta)||void 0===A?void 0:A.label,disabled:e||(null==g?void 0:g.disabled),className:`${Ee.button} ${l}`,onClick:()=>{t&&t()}},c,{style:null===(p=null===(m=null==y?void 0:y.cta)||void 0===m?void 0:m.style)||void 0===p?void 0:p[Ee.button]}))]})};var Pe=t(3069);const Re={name:"DRIVERS_LICENCE",mode:"individual",title:{label:"Get your driver’s licence ready."},descriptions:[{label:"We need to collect some personal information to verify your identity. It’s important you enter your details as accurately as possible."}],instructions:{content:[{image:ye.driversLicenseBanner}]},cta:{icon:"",label:"Ready"}},Fe=({content:e,label:n,style:t,testid:r={container:"",label:"",contentWrapper:"",mockImg:null}})=>(0,i.jsxs)("div",{className:(0,Be.A)("f1-text-tertiary-grey-700","f1-mt-[32px]",Ee.instructions),style:null==t?void 0:t[Ee.instructions],"data-testid":r.container,children:[(0,i.jsx)("p",{className:(0,Be.A)("f1-font-semibold","f1-text-md","f1-leading-6","f1-mb-4","f1-text-tertiary-grey-700"),"data-testid":r.label,children:n}),null==e?void 0:e.map(((e,n)=>{var t,a,l,o;return(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-items-start","f1-mb-4",!(null==e?void 0:e.icon)&&"f1-justify-center",Ee.instructionItem),style:null===(t=null==e?void 0:e.style)||void 0===t?void 0:t[Ee.instructionItem],"data-testid":r.contentWrapper,children:[(null==e?void 0:e.icon)&&(0,i.jsx)("img",{className:(0,Be.A)("f1-pr-3"),src:null!==(a=r.mockImg)&&void 0!==a?a:null==e?void 0:e.icon,alt:null==e?void 0:e.label}),(null==e?void 0:e.label)&&(0,i.jsx)("div",{className:(0,Be.A)("f1-font-normal","f1-text-md","f1-leading-6","f1-text-tertiary-grey-800","f1-text-left","f1-link-text"),dangerouslySetInnerHTML:{__html:Oe().sanitize(null!==(l=null==e?void 0:e.label)&&void 0!==l?l:"",{sanitize:!0})}}),(null==e?void 0:e.image)&&(0,i.jsx)("img",{src:null!==(o=r.mockImg)&&void 0!==o?o:e.image,alt:`instruction-image-${n}`})]},`instructions-list-${n}`)}))]}),Me={[Ce.DRIVERS_LICENCE]:Re,[Ce.PASSPORT]:he,[Ce.NATIONAL_HEALTH_ID]:xe},qe=({id:e,onSubmit:n,testid:t={mockImg:null}})=>{const r=Me[Ce[e]];return(0,i.jsx)(Le,{renderScreen:()=>{var e,n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:null===(e=null==r?void 0:r.title)||void 0===e?void 0:e.label,style:null===(n=null==r?void 0:r.title)||void 0===n?void 0:n.style,testid:{mockImg:t.mockImg}}),(0,i.jsx)(Te,{descriptions:null==r?void 0:r.descriptions}),(0,i.jsx)(Fe,Object.assign({},null==r?void 0:r.instructions,{testid:{mockImg:t.mockImg}}))]})},ctaInfo:r,onSubmit:n})},Ve=({content:e,subtitle:n,onSelect:t,style:r,testid:a={wrapper:"",mockImg:null}})=>{var l,o,s;const u=(0,d.useCallback)(((e,n)=>{var r,l,o,s;return(0,i.jsxs)("div",{"data-testid":`${a.wrapper}-${n}`,className:(0,Be.A)("f1-flex","f1-justify-between","f1-items-center","f1-px-4","f1-h-[73px]","f1-cursor-pointer","f1-rounded-[6px]","f1-border-solid","f1-border-[1px]","f1-text-tertiary-grey-700","hover:f1-bg-tertiary-grey-100","f1-border-tertiary-grey-200","focus:f1-bg-[#E7F0FF]","focus:f1-border-[3px]",Ee.documentItem,(null==e?void 0:e.focus)&&"f1-border-[3px] f1-bg-[#E7F0FF]"),style:null===(r=null==e?void 0:e.style)||void 0===r?void 0:r[Ee.documentItem],tabIndex:0,onClick:()=>t(e),children:[(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-auto","f1-flex","f1-justify-evenly","f1-items-center","f1-h-full","f1-gap-2"),children:[(null==e?void 0:e.icon)&&(0,i.jsx)("img",{src:null!==(l=a.mockImg)&&void 0!==l?l:null==e?void 0:e.icon,alt:"instruction icon"}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-h-full","f1-flex","f1-flex-col","f1-justify-center","f1-gap-1"),children:[(0,i.jsx)("h5",{className:(0,Be.A)("f1-text-md","f1-m-0","f1-p-0","f1-text-tertiary-grey-700"),children:e.label}),(null==e?void 0:e.subtitle)&&(0,i.jsx)("p",{className:(0,Be.A)("f1-font-normal","f1-text-xs","f1-m-0","f1-p-0","f1-text-tertiary-grey-500","hover:f1-text-tertiary-grey-600"),children:null==e?void 0:e.subtitle})]})]}),(0,i.jsx)("div",{className:(0,Be.A)("my-auto"),children:(0,i.jsx)("img",{src:null!==(s=null!==(o=a.mockImg)&&void 0!==o?o:null==e?void 0:e.postIcon)&&void 0!==s?s:ye.rightArrowIcon})})]},`instructions-list-${n}`)}),[e]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-gap-6","f1-flex-col","f1-justify-between","f1-my-6",Ee.documents),style:null==r?void 0:r[Ee.documents],children:null===(l=null==e?void 0:e.filter((e=>!1!==(null==e?void 0:e.visible))))||void 0===l?void 0:l.map(u)}),(null==n?void 0:n.label)&&(0,i.jsx)("p",{className:(0,Be.A)("f1-text-sm","f1-text-tertiary-grey-500",Ee.subtitle),style:null===(o=null==n?void 0:n.style)||void 0===o?void 0:o[Ee.subtitle],dangerouslySetInnerHTML:{__html:Oe().sanitize(null!==(s=null==n?void 0:n.label)&&void 0!==s?s:"",{sanitize:!0})}})]})},_e={additionInfo:{label:"Additional ID",descriptions:[{label:"We need an additional ID verify your identity."}]}},Ue=["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth","eleventh","twelfth","thirteenth","fourteenth","fifteenth","sixteenth","seventeenth","eighteenth","nineteenth","twentieth","twenty-first","twenty-second","twenty-third","twenty-fourth","twenty-fifth","twenty-sixth","twenty-seventh","twenty-eighth","twenty-ninth","thirtieth","thirty-first","thirty-second","thirty-third","thirty-fourth","thirty-fifth","thirty-sixth","thirty-seventh","thirty-eighth","thirty-ninth","fortieth","forty-first","forty-second","forty-third","forty-fourth","forty-fifth","forty-sixth","forty-seventh","forty-eighth","forty-ninth","fiftieth","fifty-first","fifty-second","fifty-third","fifty-fourth","fifty-fifth","fifty-sixth","fifty-seventh","fifty-eighth","fifty-ninth","sixtieth","sixty-first","sixty-second","sixty-third","sixty-fourth","sixty-fifth","sixty-sixth","sixty-seventh","sixty-eighth","sixty-ninth","seventieth","seventy-first","seventy-second","seventy-third","seventy-fourth","seventy-fifth","seventy-sixth","seventy-seventh","seventy-eighth","seventy-ninth","eightieth","eighty-first","eighty-second","eighty-third","eighty-fourth","eighty-fifth","eighty-sixth","eighty-seventh","eighty-eighth","eighty-ninth","ninetieth","ninety-first","ninety-second","ninety-third","ninety-fourth","ninety-fifth","ninety-sixth","ninety-seventh","ninety-eighth","ninety-ninth","hundredth"],$e=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"];var Ye,We,ze,He=t(7193),Ge=t.n(He);!function(e){e.LOADER="loader",e.PAGE_CONFIG="page-config",e.MANUAL_FLOW="manual-flow"}(Ye||(Ye={})),function(e){e.EDIT="edit",e.CREATE="create",e.REVIEW="review"}(We||(We={})),function(e){e.NAME="name",e.ID="id"}(ze||(ze={}));const Ze={data:{},currentForm:null,numberOfIdsRequired:1,mode:We.CREATE,pageHistory:[],backHistory:[]},Ke=e=>e.filter(((e,n,t)=>t.findIndex((n=>n.id===e.id))===n)),Qe=(0,u.Z0)({name:Ye.MANUAL_FLOW,initialState:Ze,reducers:{updateReduxForm:(e,n)=>{var t,i,r,a,l;const{key:o,data:s,label:d}=n.payload,u=Object.keys(e.data).reduce(((n,t)=>[...n,{[t]:e.data[t],key:t}]),[]);if(e.data[o]||(e.data[o]={docFields:[],label:""}),(null===(t=null==n?void 0:n.payload)||void 0===t?void 0:t.currentForm)&&(e.currentForm=n.payload.currentForm),e.data[o].docFields=s,e.data[o].label=null!=d?d:e.data[o].label,e.data[o].mode=We.CREATE,e.data[o].dirty=null===(r=null===(i=n.payload)||void 0===i?void 0:i.dirty)||void 0===r||r,(null===(a=n.payload)||void 0===a?void 0:a.isAdditionalId)&&e.data[o]){if(e.data[o].dirty=!1,e.failedType===ze.ID&&(e.failedType=null),Object.keys(e.data).indexOf(Pe.i.PERSONAL)>0){const n=Ge()(e.data[Pe.i.PERSONAL]);delete e.data[Pe.i.PERSONAL],e.data[Pe.i.PERSONAL]=n}e.numberOfIdsRequired=e.numberOfIdsRequired+1}if(null===(l=null==n?void 0:n.payload)||void 0===l?void 0:l.replacedId){e.failedType===ze.ID&&(e.failedType=null),delete e.data[n.payload.replacedId];const t={};u.forEach((i=>{let r=i.key;r===n.payload.replacedId&&(r=o),t[r]=e.data[r],delete e.data[r],e.data[r]=t[r]}))}},updateFormState:(e,n)=>{var t,i,r,a,l;const o=null!==(i=null!==(t=n.payload.mode)&&void 0!==t?t:null==e?void 0:e.mode)&&void 0!==i?i:We.CREATE;e.currentForm=n.payload.currentForm,(null===(r=n.payload)||void 0===r?void 0:r.numberOfIdsRequired)&&(e.numberOfIdsRequired=null===(a=n.payload)||void 0===a?void 0:a.numberOfIdsRequired),e.mode=o,(null===(l=n.payload)||void 0===l?void 0:l.idType)&&Object.entries(e.data).forEach((([t])=>{t===n.payload.idType?e.data[t].mode=o:e.data[t].mode=We.CREATE}))},updateHistory:(e,n)=>{var t,i;(null===(t=n.payload)||void 0===t?void 0:t.isClear)?e.pageHistory=[]:(e.pageHistory=Ke([n.payload,...e.pageHistory]),(null===(i=n.payload)||void 0===i?void 0:i.isRemove)?e.pageHistory=e.pageHistory.filter((e=>e.id!==n.payload.id)):e.backHistory=e.backHistory.filter((e=>e.id!==n.payload.id)))},updateBackHistory:(e,n)=>{var t,i,r,a;(null===(i=null===(t=e.data)||void 0===t?void 0:t[n.payload.id])||void 0===i?void 0:i.dirty)&&(e.data[n.payload.id].dirty=null),(null===(r=n.payload)||void 0===r?void 0:r.isClear)?e.backHistory=[]:(e.backHistory=Ke([n.payload,...e.backHistory]),(null===(a=n.payload)||void 0===a?void 0:a.isRemove)&&(e.backHistory=e.backHistory.filter((e=>e.id!==n.payload.id))))},clearAllHistory:(e,n)=>{var t,i,r;e.pageHistory=[],e.backHistory=[],(null===(t=n.payload)||void 0===t?void 0:t.clearFormState)&&(null===(r=Object.entries(null!==(i=e.data)&&void 0!==i?i:{}))||void 0===r||r.forEach((([n])=>{e.data[n].dirty=null})))},updateFailState:(e,n)=>{e.failedType=n.payload},resetForm:e=>{var n,t;e.currentForm=null,e.mode=We.CREATE,null===(t=Object.entries(null!==(n=e.data)&&void 0!==n?n:{}))||void 0===t||t.forEach((([n])=>{e.data[n].dirty=null,e.data[n].mode=We.CREATE})),e.pageHistory=[]},updateRequiredIds:(e,n)=>{e.numberOfIdsRequired=n.payload}}}),Xe=Qe.actions.updateReduxForm,Je=Qe.actions.updateFormState,en=Qe.actions.updateHistory,nn=Qe.actions.updateFailState,tn=Qe.actions.resetForm,rn=Qe.actions.updateBackHistory,an=Qe.actions.clearAllHistory,ln=Qe.actions.updateRequiredIds,on=e=>e[Ye.MANUAL_FLOW],sn=Qe.reducer;var dn=t(6762),un=t.n(dn),cn=t(182),fn=t.n(cn),An=t(6285),mn=t(663),pn=t(2839);const vn=(e,n)=>{const t=[];return e.forEach((e=>{const i=null==t?void 0:t.findIndex((t=>(null==t?void 0:t[n])===(null==e?void 0:e[n])));i>=0?t[i]=fn()(Ge()(t[i]),Ge()(e)):t.push(e)})),t},gn=(e,n,t)=>{const i=e.split(" "),r=i.findIndex((e=>n.includes(e)));return i.map(((e,i)=>n.includes(e)&&i===r?n[t]:e)).join(" ")},bn=(e,n,t="")=>e.split(" ").map((e=>n.includes(e)?t:e)).join(" "),yn=(e,n="")=>{let t=[];for(const i in e){const r=n?`${n}.${i}`:i;"object"==typeof e[i]&&null!==e[i]?t=t.concat(yn(e[i],r)):t.push(r)}return t},hn=e=>e.split("_").map((([e,...n])=>(([e,...n])=>e.toUpperCase()+n.join("").toLowerCase())([e,...n]))).join(" "),xn={AUS:mn._z.map((e=>({label:e.name,value:e.alpha3Code})))},En=e=>{var n;return null===(n=[...(null==xn?void 0:xn[e])||xn.AUS||[]])||void 0===n?void 0:n.sort(((e,n)=>{var t,i;return((null===(t=null==e?void 0:e.label)||void 0===t?void 0:t.toLowerCase())||"").localeCompare((null===(i=null==n?void 0:n.label)||void 0===i?void 0:i.toLowerCase())||"")}))},Cn=(e,n=!1)=>{const t=null==e?void 0:e.split("-");return null==t||t.forEach(((e,n)=>{1===(null==e?void 0:e.length)&&n!==(null==t?void 0:t.length)-1&&(t[n]=null==e?void 0:e.padStart(2,"0"))})),n?null==t?void 0:t.reverse().join("-"):null==t?void 0:t.join("-")},wn=()=>[...pn.mn].sort(((e,n)=>{var t,i;return((null===(t=null==e?void 0:e.label)||void 0===t?void 0:t.toLowerCase())||"").localeCompare((null===(i=null==n?void 0:n.label)||void 0===i?void 0:i.toLowerCase())||"")})).filter((e=>(null==e?void 0:e.value)&&(null==e?void 0:e.label))),Bn=[{label:"Green",value:"G"},{label:"Blue",value:"B"},{label:"Yellow",value:"Y"}],jn=e=>{const n=(e,n="")=>e?`${null==e?void 0:e.toString().trim()}${n}`:"",{streetName:t,streetNumber:i}=Nn({street:e},"street");return`${n(null==e?void 0:e.unitNumber,"/")}${n(i||(null==e?void 0:e.streetNumber))} ${n((null==t?void 0:t.length)?t:null==e?void 0:e.streetName,",")} ${n(null==e?void 0:e.town,",")} ${n(null==e?void 0:e.state)} ${n(null==e?void 0:e.postalCode,",")} ${n(null==e?void 0:e.country)}`.trim().split(",").map((e=>e.trim())).filter((e=>!!e.length)).join(", ")},Nn=(e,n)=>{const t=un()(e,`${n}.streetAddress`),i=null==t?void 0:t.split(" ");return i?{streetNumber:"number"==typeof+(null==i?void 0:i[0])?null==i?void 0:i.shift():"",streetName:null==i?void 0:i.join(" ")}:{}},On=(e,n)=>{const t=Object.entries(e).filter((e=>"object"!=typeof e[1])),i=t.some((e=>[void 0,null].includes(e[1]))),r=t.some((e=>{var n,t;return!!(null===(t=null===(n=e[1])||void 0===n?void 0:n.toString())||void 0===t?void 0:t.length)}));if(!i)return r?!!un()(e,n):r};function Tn({dateString:e,fromFormat:n="dd-MM-yyyy",toFormat:t="dd LLL yyyy"}){let i=!0;2===e.split("-").length&&(e="01-"+e,i=!1);const r=An.c9.fromFormat(e,n).toFormat(t);return i?r:r.split(" ").slice(1).join(" ")}function Sn(e){const{data:n,sequence:t,key:i}=e,r=new Map(t.map(((e,n)=>[e,n])));return n.sort(((e,n)=>{const a=r.get(e[i]),l=r.get(n[i]);return(void 0!==a?a:t.length)-(void 0!==l?l:t.length)}))}const In=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=(0,s.d4)(on),t=e=>{const t=Object.keys(null==n?void 0:n.data).indexOf(Pe.i.PERSONAL);return{index:t,isValidIndex:t===e}},i=(0,d.useCallback)((e=>{let t=gn(e,$e,n.numberOfIdsRequired);return n.numberOfIdsRequired>1&&[{key:"document",value:"documents"},{key:"form",value:"forms"}].forEach((({key:e,value:n})=>{t=bn(t,[e],n)})),t}),[n.numberOfIdsRequired]),r=(0,d.useMemo)((()=>{var e,t;return null!==(t=null===(e=Object.entries(null==n?void 0:n.data))||void 0===e?void 0:e.filter((e=>Object.values(Ce).includes(e[0]))).map((([e,n])=>({key:e,value:n}))))&&void 0!==t?t:[]}),[null==n?void 0:n.data]),a=(0,d.useCallback)((()=>{var e,t;return null===(t=Object.entries(null!==(e=null==n?void 0:n.data)&&void 0!==e?e:{}))||void 0===t?void 0:t.some((e=>{var n;return(null===(n=null==e?void 0:e[1])||void 0===n?void 0:n.mode)===We.EDIT}))}),[n.data]),l=(0,d.useCallback)((e=>{var t,i;return(null===(i=null===(t=Object.entries(n.data))||void 0===t?void 0:t.find((([n])=>n==e)))||void 0===i?void 0:i[1].mode)===We.EDIT}),[n.data]),o=(0,d.useMemo)((()=>n.numberOfIdsRequired),[n.numberOfIdsRequired]),u=(t,i)=>{var a,l;const o=r.filter((e=>{var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.mode)!==We.EDIT})),s=o.find((e=>e.key===t)),d=!!n.pageHistory.find((e=>e.id===t));return(null==n?void 0:n.mode)===We.EDIT?!(null==o?void 0:o.length)||!s:e.currentModule===Pe.i.RETRY?(null===(l=null==o?void 0:o[null===(a=n.pageHistory)||void 0===a?void 0:a.length])||void 0===l?void 0:l.key)===t||!s:i?!n.pageHistory.length||!n.pageHistory.filter((e=>e.id!==i)).find((e=>e.id===t)):!n.pageHistory.length||!d},c=t=>{var i,o;const s=r.filter((e=>{var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.mode)!==We.EDIT}));return e.currentModule==Pe.i.RETRY&&n.mode!==We.EDIT?(null===(o=null==s?void 0:s[null===(i=n.pageHistory)||void 0===i?void 0:i.length])||void 0===o?void 0:o.key)===t:a()?l(t):void 0},f=(i,l=[])=>{var s,d;const u=t=>{var r;const a=l.reduce(((e,n)=>e+((null==n?void 0:n.visible)?1:0)),0),o=n.numberOfIdsRequired,s=a-o;let d=0;return d=l.length>o?l.length-o-s:Math.abs(s),gn(e.currentModule===Pe.i.RETRY?e[Pe.i.DOCUMENT].title.label:null===(r=null==i?void 0:i.title)||void 0===r?void 0:r.label,Ue,null!=t?t:d)};let c=0;for(const e of r){if((null===(s=null==e?void 0:e.value)||void 0===s?void 0:s.mode)===We.EDIT)break;c+=1}if(a())return`Edit your ${(null==r?void 0:r.length)>1&&o>1?Ue[c]:""} ID`;if(e.currentModule!==Pe.i.RETRY||n.mode===We.EDIT)return o<2?bn(u(),Ue,""):u();{const i=()=>{var e,t;const i=bn(u(null!==(t=null===(e=n.pageHistory)||void 0===e?void 0:e.length)&&void 0!==t?t:0),["Select"],"Review");return o<2?bn(i,Ue,""):i};switch(n.currentForm){case Pe.i.RETRY:return t(0).isValidIndex?`Review ${e[Pe.i.PERSONAL].title.label.toLowerCase()}`:i();case Pe.i.DOCUMENT:return i();case Pe.i.PERSONAL:return`Review ${e[Pe.i.PERSONAL].title.label.toLowerCase()}`;default:{const t=e[Pe.i.DOCUMENT].documents.find((e=>e.type===n.currentForm));return`Review ${null===(d=null==t?void 0:t.title)||void 0===d?void 0:d.label}`}}}},A=(e,t=!1)=>{const i=e.documents.map((e=>Object.assign(Object.assign({},e),{subtitle:(null==n?void 0:n.mode)===We.EDIT?"":e.subtitle,visible:u(e.type,t),focus:c(e.type)})));return Object.assign(Object.assign({},e),{title:Object.assign(Object.assign({},e.title),{label:f(e,i)}),documents:i})};return{modifyDocConfig:A,modifyConfig:()=>{var n,t,r;const a=null!==(n=e[e.currentModule].descriptions)&&void 0!==n?n:[],l=null==a?void 0:a.slice(0,1),o="manual"===(null===(t=e[e.currentModule])||void 0===t?void 0:t.type)?[(null==l?void 0:l[0])?Object.assign(Object.assign({},null==l?void 0:l[0]),{label:i(null===(r=null==l?void 0:l[0])||void 0===r?void 0:r.label)}):{},...a.slice(1)]:[null==l?void 0:l[0],...a.slice(1)];return Object.assign(Object.assign({},e[e.currentModule]),{descriptions:o})},insertedDocuments:r,isAnyEditableDoc:a,isEditMode:l,isDocVisible:u,isFocused:c,isAdditionaDoc:(t=!1)=>{var i,l;const o=null!==(l=null===(i=e[Pe.i.DOCUMENT])||void 0===i?void 0:i.numberOfIDs)&&void 0!==l?l:1,s=!t||n.pageHistory.length>o;return e.currentModule===Pe.i.RETRY&&!a()&&r.length>=o&&s&&n.mode!==We.EDIT&&r.every((e=>!1===e.value.dirty))&&n.failedType===ze.ID},getModifiedLabel:f,isAdditionaIdSelectionScreen:e=>{const t=A(e).documents.find((e=>!0===(null==e?void 0:e.focus)));return n.mode!==We.EDIT&&!r.find((e=>e.key===(null==t?void 0:t.type)))},personalSequence:t}},kn=({config:e,backButton:n,testid:t={mockImg:null}})=>{const{pageConfigs:r}=(0,s.d4)(Ci),{documentReady:a,idvEventEmitter:l}=Oi(),{isAdditionaIdSelectionScreen:o}=In(),u=(0,s.wA)(),[c,f]=(0,d.useState)(),A=(0,s.d4)(on),m=n=>{(null==e?void 0:e.showPreps)?f(n.type):p(n)},p=n=>{var t;const i=(null==n?void 0:n.type)||c;"ocr"===(null==e?void 0:e.type)?a(i):(l({eventCategory:"global",extraEventInfo:{name:Pe.i.DOCUMENT,index:(null===(t=null==e?void 0:e.documents)||void 0===t?void 0:t.findIndex((e=>e.type===i)))+1},eventType:"navigate"}),u(Je({currentForm:Ce[i]})))},v=(0,d.useMemo)((()=>A.mode==We.EDIT),[A.mode]),g=()=>{var n,t;return r.currentModule===Pe.i.RETRY?o(e)?_e.additionInfo.label:null===(n=null==e?void 0:e.title)||void 0===n?void 0:n.label:null===(t=null==e?void 0:e.title)||void 0===t?void 0:t.label};return e?c?(0,i.jsx)(qe,{onSubmit:p,id:c}):(0,i.jsx)(Le,{hideCTA:!0,inputClass:(0,Be.A)({"!f1-pt-[24px]":n},{"tablet:!f1-pt-[49px]":n}),renderScreen:()=>{var a,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:g(),style:null===(a=null==e?void 0:e.title)||void 0===a?void 0:a.style,onBack:n?()=>(()=>{var e,t,i;if(n)if(v||A.pageHistory.length>0||(null==r?void 0:r.currentModule)===Pe.i.RETRY){const n=null!==(i=null===(t=null===(e=A.pageHistory)||void 0===e?void 0:e[0])||void 0===t?void 0:t.id)&&void 0!==i?i:(null==r?void 0:r.currentModule)===Pe.i.RETRY?Pe.i.RETRY:Pe.i.REVIEW,a=[Pe.i.RETRY,Pe.i.PERSONAL];!v&&a.includes(n)&&u(an({clearFormState:!0})),u(Je({currentForm:v?Pe.i.REVIEW:n}))}else l({eventType:"back"})})():void 0,className:(0,Be.A)(n?"f1-mb-[8px]":"")}),(0,i.jsx)(Te,{descriptions:null!==(o=null==e?void 0:e.descriptions)&&void 0!==o?o:[]}),(0,i.jsx)(Ve,{content:null==e?void 0:e.documents,subtitle:null==e?void 0:e.subtitle,onSelect:m,testid:{mockImg:null==t?void 0:t.mockImg}})]})}}):null},Dn={name:"DOCUMENT",mode:"individual",type:"ocr",title:{label:"Choose Your ID"},subtitle:{label:"Your ID must be valid and not expired"},descriptions:[{label:"We'll need at least one of the following documents to verify your identity."}],documents:[{type:"DRIVERS_LICENCE",label:"Driver's licence",subtitle:"(recommended)",postIcon:ye.rightArrowIcon,icon:ye.driverLicenseIcon},{type:"PASSPORT",label:"Passport",postIcon:ye.rightArrowIcon,icon:ye.passportIcon},{type:"NATIONAL_HEALTH_ID",label:"Medicare card",postIcon:ye.rightArrowIcon,icon:ye.medicalIcon}]},Ln={name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"ocr",descriptions:[{label:"We need to collect some personal information to verify your identity. It’s important you enter your details as accurately as possible.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{}},{icon:ye.checkbox,label:"Grant access permission on the camera of your phone so we can capture your ID",style:{}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{}}]},cta:{label:"Start identity verification",style:{}},style:{}},Pn=({descriptions:e,style:n,title:t,state:r=null,isLoading:a=!0,inputClass:l="",labelClass:o="",descriptionClass:s="",progressWrapperClass:u=""})=>{var c,f;const A=(0,d.useCallback)(((e,n)=>{var t;return(0,i.jsx)("div",{className:(0,Be.A)("f1-mb-1",Ee.progressItem,s),style:null===(t=null==e?void 0:e.style)||void 0===t?void 0:t[Ee.progressItem],children:null==e?void 0:e.label},`fallback-list-${n}`)}),[]);if(!a)return null;const m={[we.SUCCESS]:ye.successIcon,[we.FAIL]:ye.failedIcon,[we.PENDING]:ye.pendingIcon,[we.PARTIAL]:ye.retryIcon,[we.UPLOAD_SUCCESS]:ye.fileDocumentCheckOutline,[we.UPLOAD_FAIL]:ye.fileDocumentAlertOutline};return(0,i.jsx)("div",{className:(0,Be.A)("f1-top-0","f1-left-0","f1-text-tertiary-grey-800","f1-flex","f1-justify-center","f1-items-center","f1-z-50","f1-bg-mono-white",Ee.progressWrapper,l),style:null==n?void 0:n[Ee.progressWrapper],children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-content-center","f1-items-center","f1-px-6","f1-text-center",u),children:[null===r?(0,i.jsxs)("svg",{"aria-hidden":"true",className:(0,Be.A)("f1-inline","f1-animate-spin","f1-fill-primary-600","f1-h-24","f1-w-24",Ee.loading),style:null==n?void 0:n[Ee.loading],viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#e5e7eb"}),(0,i.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}):(0,i.jsx)("img",{src:m[r],alt:"state icon"}),(0,i.jsx)("div",{className:(0,Be.A)("f1-font-bold","f1-mt-8",null===(c=null==t?void 0:t.style)||void 0===c?void 0:c[Ee.title],o),children:null==t?void 0:t.label}),(0,i.jsx)("div",{className:(0,Be.A)("f1-mt-4","f1-text-ter",null===(f=null==t?void 0:t.style)||void 0===f?void 0:f[Ee.subtitle]),children:null==e?void 0:e.map(A)})]})})},Rn={Main:({instructions:e,rules:n,onFileSelect:t})=>{var r,a,l,o,s,u,c,f;const A=(0,d.useRef)(null),[m,p]=(0,d.useState)(""),v=null!==(a=null===(r=null==n?void 0:n.max_size)||void 0===r?void 0:r.value)&&void 0!==a?a:20,g=null!==(o=null===(l=null==n?void 0:n.max_size)||void 0===l?void 0:l.message)&&void 0!==o?o:"File size exceeds the maximum limit. Please upload a file less than 20MB.",b=null!==(u=null===(s=null==n?void 0:n.mime)||void 0===s?void 0:s.value)&&void 0!==u?u:{"image/jpeg":!0,"image/png":!0,"image/gif":!0,"image/webp":!0,"image/tiff":!0,"image/bmp":!0,"application/pdf":!0},y=null!==(f=null===(c=null==n?void 0:n.mime)||void 0===c?void 0:c.message)&&void 0!==f?f:"File type not supported. Please upload a PNG, JPG or PDF file.",x=Object.keys(b).filter((e=>b[e])).join(","),E=e=>{(e=>e.size/1024/1024<=v)(e)?(e=>x.includes(e.type))(e)?(p(""),t(e)):p(y):p(g)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,Be.A)([m?"f1-border-tertiary-red-500":"f1-border-tertiary-grey-50","f1-border-2","f1-border-solid","f1-mt-5","f1-w-[calc(100%-2rem-4px)]","f1-h-96","f1-p-4","f1-bg-tertiary-grey-50","f1-rounded-lg","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-2.5","f1-inline-flex","f1-cursor-pointer"]),onClick:()=>A.current.click(),onDrop:e=>{e.preventDefault(),E(e.dataTransfer.files[0])},onDragOver:e=>e.preventDefault(),children:(0,i.jsxs)("div",{className:(0,Be.A)(["f1-self-stretch","f1-grow","f1-shrink","f1-basis-0","f1-p-4","f1-rounded-md","f1-border","f1-border-tertiary-grey-200","f1-border-dashed","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-2.5","f1-flex"]),children:[(0,i.jsxs)("div",{className:(0,Be.A)(["f1-flex-col","f1-justify-start","f1-items-center","f1-gap-1.5","f1-flex"]),children:[(0,i.jsx)(h,{className:(0,Be.A)(["f1-w-10","f1-h-10","f1-relative","f1-fill-tertiary-grey-400"])}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-text-center","f1-text-tertiary-grey-500","f1-text-sm","f1-font-semibold","f1-leading-tight"]),children:e?e.label:"Click or drag to upload"}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-text-center","f1-text-tertiary-grey-500","f1-text-xs","f1-font-normal","f1-leading-none"]),children:(null==e?void 0:e.content)&&e.content.length>0?e.content.map((({label:e})=>e)):`PNG, JPG or PDF (Max. file size: ${v}MB)`})]}),(0,i.jsx)("input",{ref:A,hidden:!0,type:"file",onChange:e=>{E(e.target.files[0])},accept:x})]})}),m&&(0,i.jsx)("div",{className:(0,Be.A)(["f1-mt-2","f1-text-tertiary-red-600","f1-text-xs","f1-font-normal","f1-leading-normal"]),children:m})]})},Preview:({file:e,onFileRemove:n})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,Be.A)(["f1-mt-5","f1-text-tertiary-grey-700","f1-text-base","f1-font-semibold","f1-leading-normal"]),children:["File added:"," ",(0,i.jsx)("span",{className:(0,Be.A)(["f1-font-normal"]),children:e.name})]}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-mt-5","f1-text-primary-800","f1-text-base","f1-font-normal","f1-leading-normal","f1-cursor-pointer"]),onClick:()=>n(),children:"Upload a different file"})]}),Review:({files:e,onEdit:n})=>(0,i.jsx)(i.Fragment,{children:e.map((({file:t,type:r},a)=>(0,i.jsxs)("div",{className:(0,Be.A)(["f1-w-full","f1-flex-col","f1-justify-start","f1-items-start","f1-gap-1.5","f1-inline-flex"]),children:[(0,i.jsxs)("div",{className:(0,Be.A)(["f1-self-stretch","f1-justify-start","f1-items-center","f1-gap-4","f1-inline-flex"]),children:[(0,i.jsx)("div",{className:(0,Be.A)(["f1-grow","f1-shrink","f1-basis-0","f1-text-tertiary-grey-800","f1-text-lg","f1-font-semibold","f1-leading-relaxed"]),children:hn(r)}),(0,i.jsxs)("div",{className:(0,Be.A)(["f1-justify-start","f1-items-center","f1-gap-1","f1-flex","f1-cursor-pointer"]),onClick:()=>n(a),children:[(0,i.jsx)(ve,{className:(0,Be.A)(["f1-w-4","f1-h-4","f1-relative","f1-fill-primary-800"])}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-text-primary-800","f1-text-sm","f1-font-semibold","f1-leading-tight"]),children:"Edit"})]})]}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-self-stretch","f1-flex-col","f1-justify-start","f1-items-start","f1-gap-2","f1-flex"]),children:(0,i.jsx)("div",{className:(0,Be.A)(["f1-self-stretch","f1-text-tertiary-grey-700","f1-text-base","f1-font-normal","f1-leading-normal"]),children:t.name})}),a<e.length-1&&(0,i.jsx)("div",{className:(0,Be.A)(["f1-w-full","f1-py-4"]),children:(0,i.jsx)("div",{className:(0,Be.A)(["f1-flex-grow","f1-border-t","f1-border-solid","f1-border-tertiary-grey-200"])})})]},a)))}),Progress:({files:e,completed:n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:(0,Be.A)(["f1-w-[calc(100%-2rem-4px)]","f1-border-2","f1-border-solid","f1-border-tertiary-grey-50","f1-h-96","f1-p-4","f1-bg-tertiary-grey-50","f1-rounded-lg","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-6","f1-inline-flex"]),children:[(0,i.jsxs)("div",{className:(0,Be.A)(["f1-w-full","f1-h-7","f1-flex-col","f1-justify-start","f1-items-end","f1-gap-1","f1-flex"]),children:[(0,i.jsx)("div",{className:(0,Be.A)(["f1-self-stretch","f1-justify-center","f1-items-center","f1-inline-flex"]),children:(0,i.jsxs)("div",{className:(0,Be.A)(["f1-grow","f1-shrink","f1-basis-0","f1-text-center","f1-text-tertiary-grey-500","f1-text-xs","f1-font-medium","f1-leading-none"]),children:[n,"%"]})}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-mx-8","f1-self-stretch","f1-h-1.5","f1-bg-tertiary-grey-200","f1-rounded-sm"])}),(0,i.jsx)("div",{className:(0,Be.A)(["f1-self-stretch","f1-mx-8","f1--mt-2.5","f1-h-1.5","f1-bg-primary-600","f1-rounded-sm"]),style:{width:`calc(${n}% - ${n/100*4}rem)`}})]}),(0,i.jsxs)("div",{className:(0,Be.A)(["f1-text-center","f1-text-tertiary-grey-700","f1-text-base","f1-font-medium","f1-leading-normal"]),children:["Uploading ",e.length," documents"]})]})}),Success:()=>(0,i.jsx)("div",{style:{height:"calc(100vh - 282px)",display:"flex",justifyContent:"center"},children:(0,i.jsx)(Pn,{state:we.UPLOAD_SUCCESS,title:{label:"Thanks, your document has been uploaded"},labelClass:(0,Be.A)(["f1-text-2xl","f1-leading-9"]),descriptions:[{label:"You’re all done, and can close the page."}]})}),Fail:({retries:e})=>(0,i.jsx)("div",{style:{height:"calc(100vh - 282px)",display:"flex",justifyContent:"center"},children:(0,i.jsx)(Pn,{state:we.UPLOAD_FAIL,title:{label:"There was an issue uploading your document"},labelClass:(0,Be.A)(["f1-text-2xl","f1-leading-9"]),descriptions:e>1?[{label:"This could be a technical issue with the upload. Please reach out to customer support for assistance, or try again."}]:[{label:"This could be a technical issue with the upload. Please retry submitting document."}]})})},Fn=Rn;const Mn={name:"DOC_UPLOAD",mode:"business",type:"manual",cta:{label:"Next",style:{}},style:{}},qn={name:"LOADING",title:{label:"Verifying your identity"},descriptions:[{label:"Hold tight, this can take a few seconds.\n Please do not refresh this page or click the ‘back’ button on your browser."}]},Vn={required:{value:!0,message:"This field is required"},minLength:{value:6,message:"min value is 6"},maxLength:{value:10,message:"Max value is 10"},validateLength:(e,n)=>(null==n?void 0:n.toString().length)===e,onlyAlphabets:{value:"^[a-zA-Z]+(\\s+[a-zA-Z]+)*$",message:"Please enter alphabetic characters only"},onlyNumbers:{value:"^[0-9]+$",message:"Please enter numeric values only"},alphaNumeric:{value:"^[a-zA-Z0-9]+$",message:"Please enter alphanumeric values only"},alphaNumericSpaceInWords:{value:"^(?! )[a-zA-Z0-9 ]+(?<! )$",message:"Please enter alphanumeric values only"},emailPattern:{value:"^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$",message:"Please enter a valid email address"}};var _n,Un,$n;!function(e){e.LONG="long",e.SHORT="short"}(_n||(_n={})),function(e){e.Gregorian="gregory",e.Buddhist="buddhist",e.Chinese="chinese",e.Coptic="coptic",e.EthiopicAmeteAlem="ethioaa",e.Ethiopic="ethiopic",e.Hebrew="hebrew",e.Islamic="islamic",e.IslamicUmalqura="islamic-umalqura",e.Persian="persian",e.BikramSambat="bikram-sambat"}(Un||(Un={})),function(e){e.English="en",e.Spanish="es",e.French="fr",e.German="de",e.Italian="it",e.Japanese="ja",e.Korean="ko",e.Chinese="zh",e.Arabic="ar",e.Russian="ru"}($n||($n={}));const Yn=["January","February","March","April","May","June","July","August","September","October","November","December"],Wn=[{fieldType:"input",dataType:"text",hide:!1,label:"Given Name",name:"givenName",rules:{required:{value:!0,message:"Please enter your given name"},pattern:Vn.onlyAlphabets}},{fieldType:"input",dataType:"text",hide:!1,label:"Middle Name(s)",name:"middleName",rules:{pattern:Vn.onlyAlphabets},helperText:"As displayed on your ID"},{fieldType:"input",dataType:"text",hide:!1,label:"Family Name",name:"familyName",rules:{required:{value:!0,message:"Please enter your family name"},pattern:Vn.onlyAlphabets}},{fieldType:"date",dataType:"text",hide:!1,label:"Date of Birth",name:"dateOfBirth",calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your date of birth"},standardDate:!0,required:!0,configYear:!0},{fieldType:"address",name:"address.fullAddress",hide:!1,dataType:"current_addr",label:"Residential Address",placeholder:"Type in your address",rules:{required:{value:!0,message:"Please enter your residential address"}},helperText:"Cannot be a PO Box",manualFieldConfig:[{fieldType:"select",dataType:"text",hide:!1,label:"Country",name:"address.country",options:wn(),rules:{required:{value:!0,message:"Please select your country"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Unit Number (optional)",name:"address.unitNumber",rules:{pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Street Address",name:"address.streetAddress",rules:{required:{value:!0,message:"Please enter your street address"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Suburb / Town",name:"address.town",rules:{required:{value:!0,message:"Please enter your suburb/town."},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"select",dataType:"text",hide:!1,label:"State",name:"address.state",placeholder:"Select Your State",options:En("AUS"),rules:{required:{value:!0,message:"Please enter your state"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Postcode",name:"address.postalCode",rules:{required:{value:!0,message:"Please enter your postal code"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}}]}];var zn;const Hn=null==Wn?void 0:Wn.find((e=>"address"===e.fieldType)),Gn=[Object.assign(Object.assign({},Hn),{manualFieldConfig:null===(zn=null==Hn?void 0:Hn.manualFieldConfig)||void 0===zn?void 0:zn.filter((e=>!["address.state"].includes(null==e?void 0:e.name)))})],Zn={name:"PERSONAL",title:{label:"Personal details",style:{"ff-title":{}}},descriptions:[{label:"The details you provide below will be used to verify your identity – make sure they match your ID documents.",style:{}}],personal:{countries:{default:{default:{fields:[{fieldType:"input",hide:!1,label:"Given Name",dataType:"text",name:"givenName",rules:{required:{value:!0,message:"Please enter your given name"},pattern:Vn.onlyAlphabets}},{fieldType:"input",hide:!1,label:"Middle Name(s)",name:"middleName",dataType:"text",showToggle:!0,rules:{required:{value:!0,message:"Please enter your middle name"},pattern:Vn.onlyAlphabets},toggleConfig:{label:"Do you have any Middle Names?",rules:{required:{value:!0,message:"Please let us know if you have any middle names"}}}},{fieldType:"input",hide:!1,label:"Family Name",dataType:"text",name:"familyName",rules:{required:{value:!0,message:"Please enter your family name"},pattern:Vn.onlyAlphabets}},{fieldType:"phone",dataType:"number",name:"extraData.phone",hide:!0,label:"Phone Number",emptyText:"No records found",options:[{label:"AU +61",value:"+61"},{label:"NZ +64",value:"+64"}],placeholder:{cc:"Code",phoneNumber:"e.g. 0400 000 000"},rules:{required:{value:!0,message:"Please enter the phone number"},minLength:{value:10,message:"Phone number must be at least 10 digits"},maxLength:{value:10,message:"Phone number must not exceed 10 characters"},pattern:Vn.onlyNumbers}},{fieldType:"input",hide:!0,label:"Email",dataType:"text",name:"extraData.email",rules:{required:{value:!0,message:"Please enter the email"},pattern:Vn.emailPattern}},{fieldType:"date",hide:!1,label:"Date of Birth",dataType:"text",name:"dateOfBirth",calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your date of birth"}},Object.assign({},Gn[0])]}},AUS:{default:{fields:[Object.assign({},null==Wn?void 0:Wn.find((e=>"address"===e.fieldType)))]}}}},cta:{label:"Next"},style:{"ff-form-wrapper":{},"ff-form-field":{}}},Kn={[we.PENDING]:{title:{label:"Thanks, your information has been submitted for verification"},descriptions:[{label:"You’re all done. We will be in touch once we have your results."}],cta:{label:"Done"}},[we.SUCCESS]:{title:{label:"Congratulations, your identity has been successfully verified"},cta:{label:"Done"}},[we.FAIL]:{title:{label:"Unfortunately we are unable to verify your identity"},descriptions:[{label:"Please contact the customer support team to help you with creating your account."}],cta:{label:"Done"}},[we.PARTIAL]:{title:{label:"We are having trouble verifying your identity"},descriptions:[{label:"Most of the time it’s just a typo, let’s check your ID details have been entered correctly."}],cta:{label:"Review details"}},[we.UPLOAD_SUCCESS]:{},[we.UPLOAD_FAIL]:{}},Qn={name:"RESULT",state:we.PENDING};var Xn=t(9785);const Jn=()=>{const e=e=>{var n,t,i,r,a,l,o,s,d,u,c,f,A;const{config:m,country:p,region:v}=e,g=null!==(d=null!==(l=null!==(i=null===(t=null===(n=null==m?void 0:m.countries)||void 0===n?void 0:n[p])||void 0===t?void 0:t[v])&&void 0!==i?i:null===(a=null===(r=null==m?void 0:m.countries)||void 0===r?void 0:r[p])||void 0===a?void 0:a.default)&&void 0!==l?l:null===(s=null===(o=null==m?void 0:m.countries)||void 0===o?void 0:o.default)||void 0===s?void 0:s[v])&&void 0!==d?d:{fields:[]};return vn([...g.fields,...null!==(A=null===(f=null===(c=null===(u=null==m?void 0:m.countries)||void 0===u?void 0:u.default)||void 0===c?void 0:c.default)||void 0===f?void 0:f.fields)&&void 0!==A?A:[]],"name")};return{getFormConfig:n=>{var t,i,r,a,l,o,s,d,u,c,f,A,m,p,v,g,b,y,h,x;const{config:E,idType:C,country:w,region:B}=n,j=null===(t=null==E?void 0:E.documents)||void 0===t?void 0:t.find((e=>e.type===C)),N=null!==(c=null!==(s=null!==(a=null===(r=null===(i=null==j?void 0:j.countries)||void 0===i?void 0:i[w])||void 0===r?void 0:r[B])&&void 0!==a?a:null===(o=null===(l=null==j?void 0:j.countries)||void 0===l?void 0:l[w])||void 0===o?void 0:o.default)&&void 0!==s?s:null===(u=null===(d=null==j?void 0:j.countries)||void 0===d?void 0:d.default)||void 0===u?void 0:u.default)&&void 0!==c?c:{fields:[]},O=null==E?void 0:E.personal;let T=null!==(g=null!==(m=null===(A=null===(f=null==O?void 0:O.countries)||void 0===f?void 0:f[w])||void 0===A?void 0:A[B])&&void 0!==m?m:null===(v=null===(p=null==O?void 0:O.countries)||void 0===p?void 0:p[w])||void 0===v?void 0:v.default)&&void 0!==g?g:{fields:[]};T={fields:vn([...null!==(x=null===(h=null===(y=null===(b=null==O?void 0:O.countries)||void 0===b?void 0:b.default)||void 0===y?void 0:y.default)||void 0===h?void 0:h.fields)&&void 0!==x?x:[],...T.fields],"name")};const S=e({config:null==E?void 0:E.documents,country:w,region:B});return{documentFields:N.fields,personalFields:T.fields,manualFields:S,getDefaultImage:e=>{var n,t,i,r,a,l,o,s,d,u,c,f,A,m,p,v,g,b,y,h,x,E,C,w,B;return null!==(B=null!==(w=null!==(h=null!==(v=null!==(f=null!==(s=null!==(r=null===(i=null===(t=null===(n=null==j?void 0:j.countries)||void 0===n?void 0:n[null==e?void 0:e.country])||void 0===t?void 0:t[null==e?void 0:e.region])||void 0===i?void 0:i.image)&&void 0!==r?r:null===(o=null===(l=null===(a=null==O?void 0:O.countries)||void 0===a?void 0:a[null==e?void 0:e.country])||void 0===l?void 0:l[null==e?void 0:e.region])||void 0===o?void 0:o.image)&&void 0!==s?s:null===(c=null===(u=null===(d=null==j?void 0:j.countries)||void 0===d?void 0:d[null==e?void 0:e.country])||void 0===u?void 0:u.default)||void 0===c?void 0:c.image)&&void 0!==f?f:null===(p=null===(m=null===(A=null==O?void 0:O.countries)||void 0===A?void 0:A[null==e?void 0:e.country])||void 0===m?void 0:m.default)||void 0===p?void 0:p.image)&&void 0!==v?v:null===(y=null===(b=null===(g=null==j?void 0:j.countries)||void 0===g?void 0:g.default)||void 0===b?void 0:b.default)||void 0===y?void 0:y.image)&&void 0!==h?h:null===(C=null===(E=null===(x=null==O?void 0:O.countries)||void 0===x?void 0:x.default)||void 0===E?void 0:E.default)||void 0===C?void 0:C.image)&&void 0!==w?w:null==N?void 0:N.image)&&void 0!==B?B:null==T?void 0:T.image}}},getManualFormFields:e,modifyFormConfig:e=>{var n,t,i,r,a;return Object.assign(Object.assign({},e),{rules:Object.assign(Object.assign({},null!==(n=null==e?void 0:e.rules)&&void 0!==n?n:{}),(null===(t=null==e?void 0:e.rules)||void 0===t?void 0:t.pattern)&&{pattern:Object.assign(Object.assign({},null===(i=null==e?void 0:e.rules)||void 0===i?void 0:i.pattern),{value:new RegExp(null===(a=null===(r=null==e?void 0:e.rules)||void 0===r?void 0:r.pattern)||void 0===a?void 0:a.value)})})})}}},et=(0,d.forwardRef)((function({className:e="",inputClassName:n="",counter:t,disabled:r=!1,error:a=!1,errorText:l="",label:o,name:s,placeholder:u="",readOnly:c=!1,helperText:f="",tag:A,badge:m,closeButton:p,isSearchIcon:v,testid:g={container:"",input:"",label:"",tag:"",showPassword:"",helperText:"",counter:"",closeCta:"",mockImg:null},type:b="text",value:y,onBlur:h,onChange:x,onClick:E,onFocus:C,onKeyDown:w,min:B,max:j,minLength:N,maxLength:O,pattern:T,required:S,autoComplete:I,configYear:k,hideError:D=!1},L){var P,R,F,M;const[q,V]=(0,d.useState)(0),[_,U]=(0,d.useState)(!1);return(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full",`${!(null==l?void 0:l.length)&&a&&"f1-mb-3"}`,e),"data-testid":g.container,children:[(o||A)&&(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full","f1-bg-white","f1-border","f1-py-2","f1-focus:outline-none"),children:[(0,i.jsx)("div",{className:(0,Be.A)("grow"),children:(0,i.jsx)("label",{htmlFor:s,className:(0,Be.A)("f1-text-sm","f1-font-medium","f1-w-full","f1-text-tertiary-grey-800"),"data-testid":g.label,children:o})}),(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-tertiary-grey-800"),"data-testid":g.tag,children:A})]}),(0,i.jsxs)("div",{className:(0,Be.A)('"f1-relative"',"frankie-text-field-container","hide-spinner"),children:[(0,i.jsx)("input",{id:s,name:s,"aria-label":s,ref:L,className:(0,Be.A)("f1-w-full","f1-rounded-sm","f1-px-[16px]","f1-py-[14px]","focus:f1-outline-[0.1px]","f1-box-border","f1-border",{"focus:f1-outline-[#2B67F9] ":!a},{"focus:f1-outline-tertiary-red-500":a},"f1-border-solid",n,"f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":a,"f1-placeholder-tertiary-red-600":a,"!f1-text-tertiary-red-600":a,"f1-bg-[#FDF2F2]":a,"f1-border-tertiary-grey-300":!a}),placeholder:u,disabled:r,readOnly:c,type:_?"text":b,onInput:e=>{var n,t;V(null===(t=null===(n=e.currentTarget)||void 0===n?void 0:n.value)||void 0===t?void 0:t.length)},value:null!=y?y:"","data-testid":g.input,onBlur:h,onChange:x,onClick:E,onFocus:C,min:B,max:j,minLength:N,maxLength:O,pattern:T,required:S,autoComplete:I,onKeyDown:w}),"search"===b&&v&&(0,i.jsx)("img",{onClick:E,className:(0,Be.A)("f1-absolute","f1-top-[10px]","f1-cursor-text"),src:null!==(P=g.mockImg)&&void 0!==P?P:ye.magnify,alt:"search icon"}),!!m&&m,"password"===b&&(0,i.jsx)("div",{className:(0,Be.A)("f1-absolute","f1-top-0","f1-right-2"),children:(0,i.jsx)(ke,{intent:"subtle",size:"md",testid:{button:g.showPassword},className:(0,Be.A)("f1-text-tertiary-grey-500"),onClick:()=>U(!_),singleicon:null!==(R=g.mockImg)&&void 0!==R?R:{size:"xs",name:_?"mdiEyeOffOutline":"mdiEyeOutline"}})}),p&&(0,i.jsx)(ke,{testid:{button:g.closeCta},className:(0,Be.A)("f1-text-tertiary-grey-500"),onClick:p.onClick,singleicon:null!==(F=g.mockImg)&&void 0!==F?F:{size:"xs",name:"mdiClose"}})]}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex",`${k&&"f1-absolute , f1-left-0"}`),children:[(f||l)&&!D&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-1","f1-text-[14px]"),children:[(0,i.jsxs)("div",{"data-testid":g.helperText,className:(0,Be.A)("f1-flex","f1-text-tertiary-red-600"),children:[a&&(null==l?void 0:l.length)>1?(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:null!==(M=g.mockImg)&&void 0!==M?M:ye.alertCircleOutline}):"",a&&l]}),(0,i.jsx)("div",{className:(0,Be.A)("f1-text-tertiary-grey-500"),children:f})]})}),(0,i.jsx)("div",{"data-testid":g.counter,children:"number"==typeof t&&t>0?(0,i.jsxs)("div",{className:(0,Be.A)(q>t?"f1-text-red-700":""),children:[q,"/",t]}):t})]})]})}));const nt=(0,d.forwardRef)(((e,n)=>{var{name:t,control:r,rules:a,label:l,defaultValue:o,disabled:s,shouldUnregister:d,helperText:u,min:c,type:f,onChange:A}=e,m=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["name","control","rules","label","defaultValue","disabled","shouldUnregister","helperText","min","type","onChange"]);return(0,i.jsx)(Xn.xI,{control:r,name:t,render:({field:e,fieldState:{error:t}})=>{const r=a&&(null==a?void 0:a.validate)&&"function"==typeof(null==a?void 0:a.validate)&&void 0!==c&&(null==a?void 0:a.validate)(null==e?void 0:e.value),o="boolean"==typeof r&&r;return(0,i.jsx)(et,Object.assign({type:f,label:l,readOnly:o,errorText:null==t?void 0:t.message,error:!!(null==t?void 0:t.message),helperText:!(null==t?void 0:t.message)&&u},null!=m?m:{},e,{onChange:n=>{e.onChange(n),A&&A(n)},onBlur:n=>{e.onBlur(),(null==m?void 0:m.onBlur)&&m.onBlur(n)},ref:n}))},rules:a,defaultValue:o,disabled:s,shouldUnregister:d})})),tt=nt,it=(e,n)=>{if(Object.keys(n).length)return e.split(".").map((e=>e.replace("[","").replace("]",""))).reduce(((e,n)=>e?e[n]:e),n)};var rt=t(8486);function at(){const e=(0,d.useRef)(null),[n,t]=(0,d.useState)(!1),i=()=>t(!1);return(0,rt.Wr)(e,i),{parentRef:e,isOpen:n,handleOpen:()=>t(!0),handleClose:i,handleToggle:()=>t((e=>!e))}}const lt=(0,d.forwardRef)((function({className:e="",inputClassName:n="",disabled:t=!1,error:r=!1,errorText:a="",label:l,name:o,placeholder:s="",supportingText:u="",tag:c,badge:f,options:A,testid:m={container:"",input:"",label:"",tag:"",supportingText:"",closeCta:"",mockImg:null},value:p,onBlur:v,onChange:g,onClick:b,onFocus:y,autocomplete:h=!1,clearable:x=!1,required:E,emptyText:C="No record",hideError:w=!1,selectLabel:B=null,ulClassName:j=""},N){var O,T,S;const[I,k]=(0,d.useState)(null),[D,L]=(0,d.useState)(""),P=(0,d.useRef)(null),{parentRef:R,isOpen:F,handleOpen:M,handleToggle:q,handleClose:V}=at(),_=(0,d.useMemo)((()=>{var e;return null===(e=A.find((e=>e.value===p)))||void 0===e?void 0:e.label}),[p,A]),U=(0,d.useMemo)((()=>h&&D&&D!==_?A.filter((e=>{var n,t,i;return null===(i=null===(t=null===(n=null==e?void 0:e.label)||void 0===n?void 0:n.toLowerCase())||void 0===t?void 0:t.trim())||void 0===i?void 0:i.startsWith(D.toLowerCase().trim())})):A),[A,D,h,_]),$=e=>()=>{const{value:n,label:t}=e;g({target:{value:n}}),L(t),V()};(0,d.useEffect)((()=>{const e=U.findIndex((e=>e.value===p));F?k(e):L(-1===e?"":U[e].label)}),[F,U,p]);const Y=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),F?k((n=>{let t=0;null!==n&&(t="ArrowDown"===e.key?Math.min(U.length-1,n+1):Math.max(0,n-1));const i=document.querySelector(`.frankie-select-option-${t}`);return null==i||i.scrollIntoView({behavior:"smooth",block:"nearest"}),t})):M();break;case"Enter":if(null!==I){const{value:e,label:n}=U[I];g({target:{value:e}}),L(n),V(),k(null)}break;case"Escape":V();break;default:h||e.preventDefault()}};return(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full",e,{"f1-pointer-events-none":t}),"data-testid":null==m?void 0:m.container,ref:R,children:[(l||c)&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,Be.A)("grow","f1-py-2"),children:(0,i.jsx)("label",{htmlFor:o,className:(0,Be.A)("f1-text-sm","f1-font-medium","f1-text-[#1F2A37]"),"data-testid":null==m?void 0:m.label,children:l})}),(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-[#1F2A37]"),"data-testid":null==m?void 0:m.tag,children:c})]}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-relative","frankie-select-field-container"),children:[(0,i.jsx)("input",{id:o,name:o,"aria-label":o,ref:e=>{P.current=e,"function"==typeof N?N(e):N&&(N.current=e)},className:(0,Be.A)("f1-w-full","f1-px-[16px]","f1-py-[14px]","border-slate-300","rounded-xl",n,"focus:f1-outline-[0.1px]","f1-border","f1-border-solid","f1-rounded-sm",{"focus:f1-outline-[#2B67F9] ":!r},{"focus:f1-outline-tertiary-red-500":r},"f1-pl-4","f1-box-border","f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":r,"f1-placeholder-tertiary-red-600":r,"!f1-text-tertiary-red-600":r,"f1-bg-[#FDF2F2]":r,"f1-border-tertiary-grey-300":!r}),placeholder:s,disabled:t,type:"text",value:null!=B?B:D,"data-testid":null==m?void 0:m.input,onBlur:v,onChange:e=>{L(e.target.value),F||M()},onClick:e=>{b&&b(e),t||q()},onFocus:y,required:E,onKeyDown:Y,autoComplete:"off"}),(0,i.jsx)("div",{className:"f1-relative ",children:F&&(0,i.jsx)("ul",{className:(0,Be.A)("frankie-select-options","f1-max-h-64","f1-overflow-scroll","f1-absolute","f1-z-50","f1-bg-mono-white","f1-shadow-md","f1-rounded-sm","f1-p-0",j,{"f1-w-full":!j.length},"f1-scrollbar-sm","f1-overflow-x-hidden","f1-mt-0"),children:U.length>0?U.map(((e,n)=>(0,i.jsx)("li",{role:"option","aria-selected":n===I,onClick:$(e),onKeyDown:Y,className:(0,Be.A)("f1-list-none","f1-p-4","f1-text-md","f1-hover:bg-grey-300","text-gray-800","cursor-pointer","f1-m-0","focus:f1-bg-primary-50",{"f1-bg-primary-50":n===I},{"hover:f1-bg-tertiary-grey-100":n!==I},`frankie-select-option-${n}`),"data-testid":e.testId,children:e.label},e.value))):(0,i.jsx)("li",{className:(0,Be.A)("f1-text-sm","f1-py-2","f1-px-4"),children:C})})}),!(x&&D)&&(0,i.jsx)("img",{onClick:()=>{!F&&P.current&&P.current.focus(),q()},className:(0,Be.A)("f1-absolute","f1-bottom-[13px]","f1-right-3","text-tertiary-grey-500","f1-cursor-pointer","f1-fill-tertiary-red-600"),src:null!==(O=null==m?void 0:m.mockImg)&&void 0!==O?O:F?r?ye.chevronUpError:ye.chevronUp:r?ye.chevronDownError:ye.chevronDown}),!!f&&f,x&&!!D&&(0,i.jsx)("img",{"data-testid":null==m?void 0:m.closeCta,onClick:()=>{g({target:{value:void 0}}),L("")},className:(0,Be.A)("f1-absolute","f1-bottom-[13px]","f1-right-3","f1-cursor-pointer"),src:null!==(T=null==m?void 0:m.mockImg)&&void 0!==T?T:r?ye.closeError:ye.close})]}),(0,i.jsx)("div",{className:(0,Be.A)("f1-flex"),children:(u||a)&&!w&&(0,i.jsx)("div",{className:(0,Be.A)("f1-grow","f1-text-mono-70","f1-pt-1","f1-text-sm"),children:(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-initial","f1-items-center",{"f1-text-tertiary-red-600":r}),children:(0,i.jsxs)("div",{"data-testid":null==m?void 0:m.supportingText,className:(0,Be.A)("f1-flex","f1-text-tertiary-red-600","f1-text-[14px]"),children:[r&&(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:null!==(S=null==m?void 0:m.mockImg)&&void 0!==S?S:ye.alertCircleOutline}),r?a:u]})})})})]})}));const ot=(0,d.forwardRef)(((e,n)=>{var{name:t,control:r,defaultValue:a,options:l,rules:o,shouldUnregister:s,onChange:d}=e,u=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["name","control","defaultValue","options","rules","shouldUnregister","onChange"]);return(0,i.jsx)(Xn.xI,{render:({field:e,formState:{errors:r}})=>{var a;return(0,i.jsx)(lt,Object.assign({errorText:null===(a=r[t])||void 0===a?void 0:a.message,options:l},u,e,{error:!!it(t,r),onChange:n=>{e.onChange(n),n.target.name=t,n.target.selected=l.find((e=>e.value==n.target.value)),d&&d(n)},onBlur:n=>{e.onBlur(),(null==u?void 0:u.onBlur)&&u.onBlur(n)},ref:n}))},control:r,name:t,defaultValue:a,rules:o,shouldUnregister:s})})),st=({label:e,expiryDate:n=!1,helperText:t,calendarConfig:r,name:a,control:l,testid:o={container:"",error:"",mockImg:null},testingData:s=null})=>{var u,c,f;const A=(0,d.useMemo)((()=>{var e;return null===(e=l._formValues[a])||void 0===e?void 0:e.split("-")}),[l._formValues[a]]),m=(0,d.useMemo)((()=>n&&(null==A?void 0:A.length)>2),[n,A]),p=(0,d.useMemo)((()=>n?null:3===(null==A?void 0:A.length)?null==A?void 0:A[0]:null),[n]),{field:v,formState:g}=(0,Xn.as)({name:`${a}-dd`,control:l,defaultValue:null!==(u=null==s?void 0:s.split("-")[`${n?null:0}`])&&void 0!==u?u:p}),b=(0,d.useMemo)((()=>{var e,t,i,r;return n?m?+(null!==(e=null==A?void 0:A[1])&&void 0!==e?e:0):+(null!==(t=null==A?void 0:A[0])&&void 0!==t?t:0):3===(null==A?void 0:A.length)?+(null!==(i=null==A?void 0:A[1])&&void 0!==i?i:0):+(null!==(r=null==A?void 0:A[0])&&void 0!==r?r:0)}),[n]),{field:y,formState:h}=(0,Xn.as)({name:`${a}-mm`,control:l,defaultValue:null!==(c=null==s?void 0:s.split("-")[""+(n?0:1)])&&void 0!==c?c:b}),x=(0,d.useMemo)((()=>{var e,t,i,r,a,l,o,s;return 0==(n?m?+(null!==(e=null==A?void 0:A[2])&&void 0!==e?e:0):+(null!==(t=null==A?void 0:A[1])&&void 0!==t?t:0):3===(null==A?void 0:A.length)?+(null!==(i=null==A?void 0:A[2])&&void 0!==i?i:0):+(null!==(r=null==A?void 0:A[1])&&void 0!==r?r:0))?"":n?m?+(null!==(a=null==A?void 0:A[2])&&void 0!==a?a:0):+(null!==(l=null==A?void 0:A[1])&&void 0!==l?l:0):3===(null==A?void 0:A.length)?+(null!==(o=null==A?void 0:A[2])&&void 0!==o?o:0):+(null!==(s=null==A?void 0:A[1])&&void 0!==s?s:0)}),[n]),{field:E,formState:C}=(0,Xn.as)({name:`${a}-yyyy`,control:l,defaultValue:null!==(f=null==s?void 0:s.split("-")[""+(n?1:2)])&&void 0!==f?f:x});function w(){return An.c9.now().toISODate()}(0,d.useEffect)((()=>{const e=p,n=b,t=x;e&&v.onChange(e),n&&y.onChange(n),t&&E.onChange(t)}),[p,b,x]);const B=(()=>{var e,n;const t=An.c9.fromISO(w()).minus({years:null===(e=null==r?void 0:r.age)||void 0===e?void 0:e.max}).toISODate(),i=An.c9.fromISO(w()).minus({years:null===(n=null==r?void 0:r.age)||void 0===n?void 0:n.min}).toISODate();return{maxValidYear:null==t?void 0:t.split("-")[0],minValidYear:null==i?void 0:i.split("-")[0],validMonth:null==t?void 0:t.split("-")[1],validDay:null==t?void 0:t.split("-")[2],minDateRange:i,maxDateRange:t}})();return(0,i.jsx)(Xn.xI,{control:l,name:a,render:({field:s,fieldState:{error:u}})=>{var c,f,p,b,x,w,j,N,O,T,S,I,k,D,L,P,R,F,M,q,V,_,U,$,Y,W;const z=(({calenderType:e=Un.Gregorian,localeType:n=$n.English,monthNameLength:t=_n.SHORT})=>{const i=[];let r=1;const a=e===Un.Islamic||e===Un.IslamicUmalqura?13:12;for(let l=0;l<a;l++){const a=new Date(2e3,l,1);let o=new Intl.DateTimeFormat(n,{month:t,calendar:e}).formatToParts(a).find((e=>"month"===e.type)).value;o=Yn.find((e=>e.toLocaleLowerCase()===o.toLocaleLowerCase()))?o.slice(0,3):o,i.push({label:o,value:+r}),r++}return i})({calenderType:null==r?void 0:r.type,localeType:null==r?void 0:r.locale,monthNameLength:_n.LONG}),H=(0,d.useMemo)((()=>{var e;return null===(e=null==s?void 0:s.value)||void 0===e?void 0:e.split("-")}),[s.value]),G=n?"":3===(null==A?void 0:A.length)?null==H?void 0:H[0]:"",Z=null!==(c=null==H?void 0:H[""+(n?m?1:0:3===(null==A?void 0:A.length)?1:0)])&&void 0!==c?c:"",K=null!==(f=null==H?void 0:H[""+(n?m?2:1:3===(null==A?void 0:A.length)?2:1)])&&void 0!==f?f:"",Q=(0,d.useCallback)((()=>n?"":G?`${G}-`:""),[G,n]);(0,d.useEffect)((()=>{s.onChange(n?`${Z}-${K}`:`${G}-${Z}-${K}`)}),[n]);const X=(0,d.useMemo)((()=>{const{minDateRange:e,maxDateRange:t}=B,i=e=>An.c9.fromISO(e).toMillis(),r=i(n?`${K}-${Z}-01`:`${K}-${Z}-${G}`);return i(t)<=r&&r<=i(e)}),[G,Z,K]),J=()=>{const e=(null==g?void 0:g.errors[`${a}-dd`])||(null==h?void 0:h.errors[`${a}-mm`])||(null==C?void 0:C.errors[`${a}-yyyy`]);return{errorInfo:e,errorMessage:null==e?void 0:e.message}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,Be.A)("f1-w-full","f1-py-2"),"data-testid":o.container,children:(0,i.jsx)("label",{htmlFor:a,className:(0,Be.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full","f1-py-2"),children:e})}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full","f1-h-auto","f1-flex","f1-justify-between","f1-gap-3","f1-relative",{"f1-mb-2":u||!!(null===(b=null===(p=J())||void 0===p?void 0:p.errorMessage)||void 0===b?void 0:b.length)}),children:[!n&&(0,i.jsx)(tt,Object.assign({},v,{type:"number",name:`${a}-dd`,placeholder:(null===(x=null==r?void 0:r.day)||void 0===x?void 0:x.placeholder)||"Day",control:l,hideError:!0,shouldUnregister:!0,onChange:e=>s.onChange(Cn(`${!n&&e.target.value||""}-${Z||""}-${K||""}`)),rules:{deps:[`${a}-dd`,`${a}-mm`,`${a}-yyyy`],required:{value:!!(null===(w=null==r?void 0:r.day)||void 0===w?void 0:w.required),message:(null==r?void 0:r.message)||"Please enter valid date"},maxLength:{value:2,message:(null==r?void 0:r.message)||"Please enter valid date"},pattern:{value:new RegExp(Vn.onlyNumbers.value),message:(null==r?void 0:r.message)||"Please enter valid date"},validate:e=>{var n;const t=function({month:e=0,year:n=0,calendarType:t=Un.Gregorian}){e=isNaN(e)?0:e,n=isNaN(n)?0:n;const i=new Date(n,e,0),r=new Intl.DateTimeFormat(void 0,Object.assign(Object.assign({},{year:"numeric",month:"numeric",day:"numeric"}),{calendar:t})).formatToParts(i).find((e=>"day"===e.type)).value;return parseInt(r,10)}({month:Z,year:K,calendarType:null==r?void 0:r.type});return parseInt(e)>0&&((null==r?void 0:r.age)?X:parseInt(e)<=t)||(null===(n=null==r?void 0:r.age)||void 0===n?void 0:n.message)||(null==r?void 0:r.message)||"Please enter a valid date"}}})),(0,i.jsx)(ot,Object.assign({testid:{mockImg:null==o?void 0:o.mockImg},control:l,name:`${a}-mm`,ulClassName:(0,Be.A)({"f1-w-[206.5%]":n},{"f1-w-[210.5%]":!n})},y,{shouldUnregister:!0,options:z,placeholder:(null===(j=null==r?void 0:r.month)||void 0===j?void 0:j.placeholder)||"Month",emptyText:"No record found",hideError:!0,onChange:e=>{var n;s.onChange(Cn(`${Q()}${(null!==(n=e.target.value)&&void 0!==n?n:Z)||""}-${K||""}`))},rules:{deps:[`${a}-dd`,`${a}-mm`,`${a}-yyyy`],required:{value:null===(N=null==r?void 0:r.month)||void 0===N?void 0:N.required,message:(null==r?void 0:r.message)||"Please enter valid month"},validate:e=>{var n;return parseInt(e)>0&&((null==r?void 0:r.age)?X:parseInt(e)<=12)||(null===(n=null==r?void 0:r.age)||void 0===n?void 0:n.message)||(null==r?void 0:r.message)||"Please enter a valid month"}},autocomplete:!0})),(0,i.jsx)(tt,Object.assign({type:"number",control:l},E,{placeholder:(null===(O=null==r?void 0:r.year)||void 0===O?void 0:O.placeholder)||"Year",hideError:!0,name:`${a}-yyyy`,shouldUnregister:!0,onChange:e=>{s.onChange(Cn(`${Q()}${Z||""}-${e.target.value||""}`))},rules:{deps:[`${a}-dd`,`${a}-mm`,`${a}-yyyy`],required:{value:!!(null===(T=null==r?void 0:r.year)||void 0===T?void 0:T.required),message:(null==r?void 0:r.message)||"Please enter year"},min:{value:(null==r?void 0:r.age)?+B.maxValidYear:1900,message:(null===(S=null==r?void 0:r.age)||void 0===S?void 0:S.message)||(null==r?void 0:r.message)||"Please enter a valid year"},max:{value:(null==r?void 0:r.age)?+B.minValidYear:null!==(I=null==r?void 0:r.maxYear)&&void 0!==I?I:(new Date).getFullYear(),message:(null===(k=null==r?void 0:r.age)||void 0===k?void 0:k.message)||(null==r?void 0:r.message)||"Please enter a valid year"},minLength:{value:4,message:(null==r?void 0:r.message)||"Please enter a valid year"},maxLength:{value:4,message:(null==r?void 0:r.message)||"Please enter a valid year"},pattern:{value:new RegExp(Vn.onlyNumbers.value),message:(null==r?void 0:r.message)||"Please enter numeric vale only"}}}))]})]}),((null==t?void 0:t.length)||!n&&(null===(P=null===(L=null===(D=null==g?void 0:g.errors[`${a}-dd`])||void 0===D?void 0:D.message)||void 0===L?void 0:L.toString())||void 0===P?void 0:P.length)||(null===(M=null===(F=null===(R=null==h?void 0:h.errors[`${a}-mm`])||void 0===R?void 0:R.message)||void 0===F?void 0:F.toString())||void 0===M?void 0:M.length)||(null===(_=null===(V=null===(q=null==C?void 0:C.errors[`${a}-yyyy`])||void 0===q?void 0:q.message)||void 0===V?void 0:V.toString())||void 0===_?void 0:_.length))&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-[-4px]","f1-text-[14px]"),"data-testid":o.error,children:[!!(null===($=null===(U=J())||void 0===U?void 0:U.errorMessage)||void 0===$?void 0:$.length)&&(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-text-tertiary-red-600"),children:[(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:null!==(Y=o.mockImg)&&void 0!==Y?Y:ye.alertCircleOutline,alt:"error icon"}),null===(W=J())||void 0===W?void 0:W.errorMessage]}),(0,i.jsx)("div",{className:(0,Be.A)("f1-text-tertiary-grey-500"),children:t})]})})]})}})};var dt=t(3560),ut=t.n(dt);const ct=({toggleConfig:e,options:n=[{label:"Yes",value:!0},{label:"No",value:!1}],onChange:t,error:r,helperText:a,currentValue:l,testid:o={label:"",optionsMapper:"",textWrapper:"",options:"",mockImg:null}})=>{var s;return(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full"),children:[(null==e?void 0:e.label)&&(0,i.jsx)("div",{"data-testid":o.label,className:(0,Be.A)("f1-w-full","f1-bg-white","f1-border","f1-rounded-sm","f1-py-2","f1-focus:outline-none"),children:(0,i.jsx)("div",{className:(0,Be.A)("grow"),children:(0,i.jsx)("label",{className:(0,Be.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full"),children:null==e?void 0:e.label})})}),(0,i.jsx)("div",{"data-testid":o.optionsMapper,className:(0,Be.A)("frankie-text-field-container","f1-flex","f1-justify-between","f1-items-center"),children:n.map((e=>(0,i.jsx)("div",{"data-testid":o.options,tabIndex:0,className:(0,Be.A)("f1-border","f1-border-solid",{"f1-border-tertiary-grey-300":!r},{"f1-border-tertiary-red-700":r},"f1-w-[48%]","f1-h-[48px]","f1-flex","f1-justify-center","f1-items-center","hover:f1-bg-primary-container","f1-cursor-pointer","f1-rounded-l-sm","f1-border-r-sm","f1-rounded-sm",{"hover:f1-border-primary-container":!r},{"!f1-border-primary-container":e.value===l},{"f1-bg-primary-container":e.value===l}),onClick:()=>t&&t(e.value),children:e.label},e.label)))}),(0,i.jsx)("div",{className:(0,Be.A)("f1-flex"),children:(a||r)&&(0,i.jsx)("div",{"data-testid":o.textWrapper,children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-1","f1-text-[14px]"),children:[(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-text-tertiary-red-600"),children:[r?(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:null!==(s=o.mockImg)&&void 0!==s?s:ye.alertCircleOutline}):"",r&&r]}),(0,i.jsx)("div",{className:(0,Be.A)("f1-text-tertiary-grey-500"),children:a})]})})})]})},ft=({onActionChange:e,control:n,config:t,testid:r=null,onChange:a})=>{const l=(0,d.useCallback)((e=>{var n,t,l,o,s,d,u,c;const f=Object.assign(Object.assign({},e),{rules:Object.assign(Object.assign({},null!==(n=null==e?void 0:e.rules)&&void 0!==n?n:{}),(null===(t=null==e?void 0:e.rules)||void 0===t?void 0:t.pattern)&&{pattern:Object.assign(Object.assign({},null===(l=null==e?void 0:e.rules)||void 0===l?void 0:l.pattern),{value:new RegExp(null===(s=null===(o=null==e?void 0:e.rules)||void 0===o?void 0:o.pattern)||void 0===s?void 0:s.value)})})});return{input:(null==f?void 0:f.showToggle)?(0,i.jsx)(Ct,{config:f,type:null!==(d=null==f?void 0:f.type)&&void 0!==d?d:"text",onChange:a}):(0,i.jsx)(tt,Object.assign({},f,{type:null!==(u=null==f?void 0:f.type)&&void 0!==u?u:"text",onChange:a})),select:(0,i.jsx)(ot,Object.assign({},f,{autocomplete:!0,hideError:!1,errorText:null===(c=null==f?void 0:f.rules)||void 0===c?void 0:c.message,testid:r,onChange:a}))}}),[t]);return(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-[12px]"),children:[null==t?void 0:t.map(((e,r)=>{var a,o,s;const d=Object.assign(Object.assign({},e),{control:n});return(null==e?void 0:e.hide)?null:(0,i.jsx)("div",{className:(0,Be.A)("f1-w-full",Ee.formField),style:Object.assign(Object.assign({},null!==(o=null===(a=null==t?void 0:t.style)||void 0===a?void 0:a[Ee.formField])&&void 0!==o?o:{}),null===(s=null==e?void 0:e.style)||void 0===s?void 0:s[Ee.formField]),children:l(d)[e.fieldType]},r)})),(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)("span",{className:(0,Be.A)("f1-text-[16px]","f1-text-primary-700","f1-cursor-pointer"),onClick:()=>e(!1),children:"Use address search"})})]})};var At,mt=t(2543),pt=t(4585);!function(e){e.PREMISE="premise",e.FLOOR="floor",e.SUBLOCALITY_LEVEL_1="sublocality_level_1",e.ROUTE="route",e.STREET_ADDRESS="street_address",e.LOCALITY="locality",e.ADMINISTRATIVE_AREA_LEVEL_1="administrative_area_level_1",e.COUNTRY="country",e.POSTAL_CODE="postal_code",e.STREET_NUMBER="street_number",e.SUB_PREMISE="subpremise"}(At||(At={}));class vt extends pt.p{constructor(e){var n;super(),Object.defineProperty(this,"fullAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"streetAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e.address_components,i=e=>{const n=[At.COUNTRY,At.ADMINISTRATIVE_AREA_LEVEL_1],i=t.find((n=>n.types.includes(e)));return i?i[n.includes(e)?"short_name":"long_name"]:null};this.longForm=e.formatted_address,this.fullAddress=e.formatted_address,this.buildingName=i(At.PREMISE),this.state=i(At.ADMINISTRATIVE_AREA_LEVEL_1),this.streetNumber=i(At.STREET_NUMBER),this.suburb=i(At.SUBLOCALITY_LEVEL_1),this.town=i(At.LOCALITY),this.country=i(At.COUNTRY),this.postalCode=i(At.POSTAL_CODE),this._streetName=i(At.ROUTE)||i(At.STREET_ADDRESS),this.streetAddress=`${this.streetNumber||""} ${this._streetName||""}`.trim(),this.country=2===(null===(n=this.country)||void 0===n?void 0:n.length)?(0,pn.Tm)(this.country):this.country,this.unitNumber=i(At.SUB_PREMISE)}}var gt=function(e,n,t,i){return new(t||(t=Promise))((function(r,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function o(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const bt=()=>{const{googleApiKey:e}=(0,d.useContext)(Ni),n=e=>new Promise(((n,t)=>{const i=new google.maps.Geocoder,r=[];e.forEach((e=>{const n={placeId:e.value},t=new Promise(((t,r)=>{i.geocode(n,((n,i)=>{if(i===google.maps.GeocoderStatus.OK){const i=new vt(n[0]);i.label=e.label,i.value=e.value,t(i)}else r(new Error("Geocode request failed"))}))}));r.push(t)})),Promise.all(r).then((e=>n(e))).catch((e=>t(e)))}));return{getAddressList:(t,i)=>new Promise((r=>{(0,mt.debounce)((()=>gt(void 0,void 0,void 0,(function*(){yield gt(void 0,void 0,void 0,(function*(){const n=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places`;(e=>{const n=document.getElementsByTagName("script");for(let t=0;t<n.length;t++)if(n[t].getAttribute("src")===e)return!0;return!1})(n)||(yield(0,l.loadAsyncAsset)(n,"script"))}));let a=[];if(t){const e={input:t};(new google.maps.places.AutocompleteService).getPlacePredictions(e,((e,t)=>{t==google.maps.places.PlacesServiceStatus.OK&&(a=e.map((e=>({label:e.description,value:e.place_id})))),n(a).then((e=>{i&&i(e),r(e)}))}))}else i&&i(a),r(a)}))),500)()})),getFullAddress:n}},yt=(0,d.forwardRef)((function({className:e="",inputClassName:n="",disabled:t=!1,error:r=!1,errorText:a="",label:l,name:o,placeholder:s="",helperText:u="",tag:c,badge:f,options:A,testid:m={container:"",input:"",label:"",tag:"",supportingText:"",closeCta:"",actionBtn:" ",mockImg:null},value:p,onBlur:v,onChange:g,onClick:b,onFocus:y,autocomplete:h=!1,clearable:x=!1,required:E,onActionChange:C,icon:w,autoSuggestion:B,autoSuggestShowAfter:j,actionLabel:N},O){var T,S,I,k;const[D,L]=(0,d.useState)(null),[P,R]=(0,d.useState)(""),F=(0,d.useRef)(null),{parentRef:M,isOpen:q,handleOpen:V,handleToggle:_,handleClose:U}=at(),$=(0,d.useMemo)((()=>{var e;return null===(e=A.find((e=>e.value===p)))||void 0===e?void 0:e.label}),[p,A]),Y=(0,d.useMemo)((()=>h&&P&&P!==$?A.filter((e=>e.label.toLowerCase().trim().startsWith(P.toLowerCase().trim()))):A),[A,P,h,$]),W=e=>()=>{const{label:n}=e;g({target:{value:n}}),R(n),U()};(0,d.useEffect)((()=>{const e=Y.findIndex((e=>e.value===p));q?L(e):R(-1===e?"":Y[e].label)}),[q,Y,p]);const z=()=>{g({target:{value:""}}),R("")},H=e=>{var n;switch(e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),q?L((n=>{let t=0;null!==n&&(t="ArrowDown"===e.key?Math.min(Y.length-1,n+1):Math.max(0,n-1));const i=document.querySelector(`.frankie-select-option-${t}`);return null==i||i.scrollIntoView({behavior:"smooth",block:"nearest"}),t})):V();break;case"Enter":if(null!==D&&(null==Y?void 0:Y[D])){const{value:e,label:t}=null!==(n=null==Y?void 0:Y[D])&&void 0!==n?n:{};g({target:{value:e}}),R(t),U(),L(null)}break;case"Escape":U();break;default:h||e.preventDefault()}};return(0,d.useEffect)((()=>{!function(){if(F.current){F.current.style.height="40px",F.current.style.height=F.current.scrollHeight+"px";const e=156;parseInt(F.current.style.height)>=e?F.current.style.overflowY="scroll":F.current.style.overflowY="hidden"}}()}),[null===(T=F.current)||void 0===T?void 0:T.value,z]),(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full",e,t?"pointer-events-none":""),"data-testid":m.container,ref:M,children:[(l||c)&&(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-initial","f1-py-2"),children:[(0,i.jsx)("div",{className:"grow",children:(0,i.jsx)("label",{htmlFor:o,className:(0,Be.A)("f1-text-sm","f1-font-medium","f1-w-full","f1-text-tertiary-grey-800"),"data-testid":m.label,children:l})}),(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-tertiary-grey-800"),"data-testid":m.tag,children:c})]}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-relative","frankie-select-field-container",{"f1-min-h-[52px]":r}),children:[(0,i.jsx)("textarea",{id:o,name:o,"aria-label":o,ref:e=>{F.current=e,"function"==typeof O?O(e):"object"==typeof O&&Object.assign(O.current,e)},className:(0,Be.A)("f1-appearance-none","f1-w-full","f1-bg-white","f1-border","f1-rounded-sm","f1-px-[16px]","f1-py-[14px]","f1-focus:outline-[0.1px]","f1-box-border","f1-border",{"focus:f1-outline-[#2B67F9] ":!r},{"focus:f1-outline-tertiary-red-500":r},"f1-border-solid","f1-pr-10","f1-max-h-[150px]","f1-resize-none","f1-font-proxima-nova",n,"f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":r,"f1-placeholder-tertiary-red-600":r,"!f1-text-tertiary-red-600":r,"f1-bg-[#FDF2F2]":r,"f1-border-tertiary-grey-300":!r}),placeholder:s,disabled:t,value:(null==P?void 0:P.length)?P:null!=p?p:"","data-testid":m.input,onBlur:v,onChange:e=>{R(e.target.value);const n=e.target.value;g({target:{value:n,isAutoSuggestChange:!0}}),q||V()},onClick:e=>{b&&b(e),t||_()},onFocus:y,required:E,onKeyDown:H,autoComplete:"off"}),(0,i.jsx)("div",{className:"f1-relative",children:q&&(!j||P.length>=j)&&(0,i.jsxs)("ul",{className:(0,Be.A)("frankie-select-options","f1-p-1","f1-absolute","f1-z-50","f1-bg-mono-white","f1-m-0","f1-shadow-md","f1-rounded-sm","f1-top--1","f1-w-full","f1-box-border","f1-max-h-[193px]","f1-py-1","f1-overflow-y-auto","f1-scrollbar-sm","f1-overflow-x-hidden"),children:[(B?(null==A?void 0:A.length)>0:Y.length>0)?(B?A:Y).map(((e,n)=>(0,i.jsx)("li",{role:"option","aria-selected":n===D,onClick:W(e),onKeyDown:H,className:(0,Be.A)("f1-list-none","f1-text-md","f1-py-2","f1-px-4","f1-cursor-pointer","f1-text-tertiary-grey-700",{"f1-bg-primary-50":n===D,"f1-hover:bg-gray-100":n!==D},`frankie-select-option-${n}`),"data-testid":null==e?void 0:e.testId,children:e.label},e.value))):(0,i.jsx)("li",{className:(0,Be.A)("f1-text-md","f1-py-2","f1-px-4","f1-list-none"),children:!A.length&&"No Results Available"}),N&&(0,i.jsx)("li",{className:(0,Be.A)("f1-text-[16px]","f1-py-2","f1-px-4","f1-text-[#306ef9]","f1-cursor-pointer","f1-list-none"),"data-testid":m.actionBtn,onClick:()=>{C&&C(!0)},children:N})]})}),w&&!(x&&P)&&(0,i.jsx)("img",{onClick:b,className:(0,Be.A)("f1-absolute","f1-top-[25.5%]","f1-right-3","f1-cursor-pointer"),src:null!==(S=m.mockImg)&&void 0!==S?S:r?ye.magnifyError:ye.magnify}),!!f&&f,x&&!!P&&(0,i.jsx)("img",{onClick:z,className:(0,Be.A)("f1-absolute","f1-top-[25.5%]","f1-right-3","f1-text-tertiary-grey-500","f1-cursor-pointer"),"data-testid":m.closeCta,src:null!==(I=m.mockImg)&&void 0!==I?I:r?ye.closeError:ye.close})]}),(0,i.jsx)("div",{className:"f1-flex",children:(u||a)&&(0,i.jsx)("div",{className:(0,Be.A)("f1-grow","f1-text-mono-70","f1-text-sm"),children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-1"),children:[(0,i.jsxs)("div",{"data-testid":m.supportingText,className:(0,Be.A)("f1-flex",r?"f1-text-tertiary-red-600":"f1-text-tertiary-grey-500","f1-text-[14px]"),children:[r?(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:null!==(k=m.mockImg)&&void 0!==k?k:ye.alertCircleOutline,alt:"error"}):"",r&&a]}),(0,i.jsx)("div",{className:(0,Be.A)("f1-text-tertiary-grey-500"),children:u})]})})})]})}));const ht=e=>{var{name:n,control:t,defaultValue:r,options:a,rules:l,isManual:o,shouldUnregister:s,autoSuggestion:d,onChange:u}=e,c=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["name","control","defaultValue","options","rules","isManual","shouldUnregister","autoSuggestion","onChange"]);return(0,i.jsx)(Xn.xI,{render:({field:e,fieldState:{error:n}})=>(0,i.jsx)(yt,Object.assign({options:a,errorText:null==n?void 0:n.message,error:!o&&!!(null==n?void 0:n.message),autoSuggestion:d},c,e,{onChange:n=>{var t,i;u&&u(n.target.value),(null===(t=n.target)||void 0===t?void 0:t.isAutoSuggestChange)&&(null===(i=n.target.value)||void 0===i?void 0:i.length)||e.onChange(n.target.value)}})),control:t,name:n,defaultValue:r,rules:l,shouldUnregister:s})};const xt=e=>{var{onActionChange:n,onSelect:t,isManual:r,control:a,label:l,autoSuggestShowAfter:o,autoSuggestion:s=!1,name:u,actionLabel:c}=e,f=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["onActionChange","onSelect","isManual","control","label","autoSuggestShowAfter","autoSuggestion","name","actionLabel"]);const[A,m]=(0,d.useState)([]),{getAddressList:p}=bt();return(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)(ht,Object.assign({control:a,name:u,options:A,label:l,autocomplete:!0,clearable:!0,onActionChange:n,isManual:r,icon:!0,onChange:e=>{const n=A.find((n=>n.label===e));n?t(n):p(e,m)},autoSuggestion:s,autoSuggestShowAfter:o,actionLabel:c},f))})};const Et=e=>{var{control:n,name:t,manualFieldConfig:r,isManual:a,label:l,actionLabel:o="Enter address manually"}=e,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["control","name","manualFieldConfig","isManual","label","actionLabel"]);const[u,c]=(0,d.useState)();(0,d.useEffect)((()=>{c(a)}),[a]),(0,d.useEffect)((()=>{var e;(null===(e=n._formValues.address)||void 0===e?void 0:e.isAddedByCustomer)&&(n._formValues.address.isAddedByCustomer=u)}),[u]);const f=()=>{var e;const i=t.split(".")[0],r=jn(null===(e=n._formValues)||void 0===e?void 0:e[i]);ut()(n._formValues,t,r||"");const a=Nn(n._formValues,i);ut()(n._formValues,`${i}.streetNumber`,(null==a?void 0:a.streetNumber)||""),ut()(n._formValues,`${i}.streetName`,(null==a?void 0:a.streetName)||"")},A=e=>{c("searchable"===e),"manual"===e&&f()};return(0,i.jsx)(i.Fragment,{children:u?(0,i.jsx)(ft,{control:n,config:r,onActionChange:()=>A("manual"),onChange:f}):(0,i.jsx)(xt,Object.assign({label:l,onActionChange:()=>A("searchable"),onSelect:e=>{const i={address:e,address1:e},r=null==t?void 0:t.split(".")[0],a=fn()(un()(n._formValues,r),e);if(e&&a){if("address"===r){const e=un()(i,"address.country");(null==e?void 0:e.length)&&ut()(n._formValues,"country",e)}ut()(n._formValues,r,a)}},control:n,isManual:u,name:t,actionLabel:o,autoSuggestShowAfter:3,autoSuggestion:!0},s))})};const Ct=e=>{var n,t,r,a,l,{config:o}=e,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(e,["config"]);const{toggleConfig:u}=o,{field:c,fieldState:f}=(0,Xn.as)({control:null==o?void 0:o.control,name:`${null==o?void 0:o.name}ShowToggle`,defaultValue:"",rules:(null===(t=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.required)||void 0===t?void 0:t.value)&&{validate:e=>{var n,t;return""!==e&&(![null].includes(e)||(null===(t=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.required)||void 0===t?void 0:t.message))}}});(0,d.useEffect)((()=>{c.onChange((()=>{var e,n,t;return!1===un()(null===(e=null==o?void 0:o.control)||void 0===e?void 0:e._formValues,`${null==o?void 0:o.name}ShowToggle`)&&ut()(null===(n=null==o?void 0:o.control)||void 0===n?void 0:n._formValues,null==o?void 0:o.name,""),un()(null===(t=null==o?void 0:o.control)||void 0===t?void 0:t._formValues,`${null==o?void 0:o.name}ShowToggle`)})())}),[null===(a=null===(r=null==o?void 0:o.control)||void 0===r?void 0:r._formValues)||void 0===a?void 0:a[null==o?void 0:o.name]]);const A={input:(0,i.jsx)(tt,Object.assign({},o,s,{helperText:""})),address:(0,i.jsx)(Et,Object.assign({},o,{actionLabel:"previous_addr"===(null==o?void 0:o.dataType)?null:"Enter address manually"},s)),select:(0,i.jsx)(ot,Object.assign({},o,s))};return(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-[12px]"),children:[(0,i.jsx)(ct,Object.assign({},o,{onChange:e=>{c.onChange(c.value===e?null:e)},currentValue:c.value,error:null===(l=f.error)||void 0===l?void 0:l.message})),c.value&&(0,i.jsx)(i.Fragment,{children:A[null==o?void 0:o.fieldType]})]})},wt=(0,d.forwardRef)((({control:e,name:n,emptyText:t,label:r,options:a,placeholder:l,rules:o,type:s},u)=>{const{field:c,formState:f}=(0,Xn.as)({name:"code",control:e}),{field:A,formState:m}=(0,Xn.as)({name:"number",control:e});return(0,i.jsx)(Xn.xI,{control:e,name:n,render:({field:p})=>{var v,g,b,y;const h=p.value?p.value.split("-"):"-".split("-"),x=h[0],E=h[1];return(0,d.useEffect)((()=>{const e=c.value,n=A.value;x!==e&&x&&c.onChange(x),E!==n&&E&&A.onChange(E)}),[x,E,c,A]),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,Be.A)("f1-w-full","f1-py-2"),children:(0,i.jsx)("label",{htmlFor:n,className:(0,Be.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full","f1-py-2"),children:r})}),(0,i.jsxs)("div",{className:(0,Be.A)("f1-w-full","f1-h-auto","f1-flex","f1-relative",f.errors.code||m.errors.number?"f1-mb-6":"f1-mb-0"),ref:u,children:[(0,i.jsx)(ot,Object.assign({},c,{control:e,name:"code",placeholder:l.cc,emptyText:null!=t?t:"No record found",className:(0,Be.A)("!f1-w-[138px]"),inputClassName:(0,Be.A)("!f1-rounded-l-sm","!f1-border-r-[0px]","!f1-rounded-[0px]",{"!f1-bg-[#e8f0ff]":!f.errors.code}),options:null!=a?a:[],autocomplete:!0,rules:{required:null==o?void 0:o.required},hideError:!0,onChange:e=>{p.onChange(`${e.target.value||""}-${E||""}`)}})),(0,i.jsx)(tt,Object.assign({control:e},A,{type:s,inputClassName:(0,Be.A)("!f1-rounded-r-sm","!f1-rounded-[0px]"),name:"number",placeholder:l.phoneNumber,rules:Object.assign({},o),hideError:!0,onChange:e=>{p.onChange(`${x||""}-${e.target.value||""}`)}})),(f.errors.code||f.errors.number)&&(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-1","f1-text-[14px]","f1-absolute","f1-left-0","f1-bottom-[-20px]"),children:(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-text-tertiary-red-600"),children:[(f.errors.code||f.errors.number)&&(0,i.jsx)("img",{className:(0,Be.A)("f1-mr-1"),src:ye.alertCircleOutline}),(null===(g=null===(v=f.errors)||void 0===v?void 0:v.code)||void 0===g?void 0:g.message)||(null===(y=null===(b=f.errors)||void 0===b?void 0:b.number)||void 0===y?void 0:y.message)]})})})]})]})}})})),Bt=wt,jt=({form:e,config:n,individualConfig:t,formFieldsType:r,previewImage:a=!0})=>{var l;const[o,s]=(0,d.useState)(null),[u,c]=(0,d.useState)(!1),{control:f}=e,{getFormConfig:A,modifyFormConfig:m}=Jn(),{getDefaultImage:p,documentFields:v,personalFields:g}=A({config:n,idType:t.idType,country:t.country,region:t.region}),b=(0,d.useMemo)((()=>{switch(r){case Pe.i.PERSONAL:return g;case Pe.i.DOCUMENT:return v;default:return[...g,...v]}}),[g,v,t,n]),y=()=>p({country:t.country,region:t.region}),h=e=>{var n;if("NATIONAL_HEALTH_ID"===(null==t?void 0:t.idType))return;const i=(null===(n=b.find((n=>e.target.name===n.name)))||void 0===n?void 0:n.image)||y();s(i)},x=()=>{"NATIONAL_HEALTH_ID"!==(null==t?void 0:t.idType)&&s(y())};(0,d.useEffect)((()=>{var n,i;if("NATIONAL_HEALTH_ID"===t.idType){const t=e.getValues("idSubType"),r=null===(i=null===(n=b.find((e=>"idSubType"===e.name)))||void 0===n?void 0:n.options)||void 0===i?void 0:i.find((e=>e.value===t));c("G"===t),E({target:{value:t,selected:r}})}}),[t]);const E=e=>{var n,i,r,a,l;"NATIONAL_HEALTH_ID"===t.idType&&c("G"==(null===(n=e.target)||void 0===n?void 0:n.value)),(null===(r=null===(i=e.target)||void 0===i?void 0:i.selected)||void 0===r?void 0:r.icon)&&s(null===(l=null===(a=e.target)||void 0===a?void 0:a.selected)||void 0===l?void 0:l.icon)};(0,d.useEffect)((()=>{y()&&s(y)}),[n,y()]);const C=(0,d.useCallback)((e=>{var n;const t=m(e),r=()=>{var e;return(0,i.jsx)(Ct,{config:t,type:null!==(e=null==t?void 0:t.type)&&void 0!==e?e:"text"})};return{input:(null==t?void 0:t.showToggle)?r():(0,i.jsx)(tt,Object.assign({},t,{onBlur:x,onFocus:h,type:null!==(n=null==t?void 0:t.type)&&void 0!==n?n:"text"})),date:(0,i.jsx)(st,Object.assign({},t,{expiryDate:["idExpiry"].includes(null==e?void 0:e.name)&&u})),select:(0,i.jsx)(ot,Object.assign({},t,{onChange:E,autocomplete:!0})),address:(null==t?void 0:t.showToggle)?r():(0,i.jsx)(Et,Object.assign({},t)),phone:(0,i.jsx)(Bt,Object.assign({},t))}}),[n,t,t.country,t.region,t.idType,u]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("form",{className:(0,Be.A)("f1-w-full","f1-h-auto","f1-flex","f1-flex-col","f1-justify-start","f1-items-start","f1-mx-auto","f1-border-2","f1-border-grey-100","f1-gap-[12px]","f1-box-border",Ee.formWrapper),style:null===(l=null==n?void 0:n.style)||void 0===l?void 0:l[Ee.formWrapper],children:null==b?void 0:b.map(((e,t)=>{var r,a,l;const o=Object.assign(Object.assign({},e),{control:f,inputClassName:(0,Be.A)(Ee.formField)}),s=["previous_addr"];return(null==e?void 0:e.hide)||(null==s?void 0:s.includes(e.dataType))?null:(0,i.jsx)("div",{className:(0,Be.A)("f1-w-full",Ee.formField),style:Object.assign(Object.assign({},null!==(a=null===(r=null==n?void 0:n.style)||void 0===r?void 0:r[Ee.formField])&&void 0!==a?a:{}),null===(l=null==e?void 0:e.style)||void 0===l?void 0:l[Ee.formField]),children:C(o)[e.fieldType]},`${e.name}-${t}`)}))}),o&&a&&(0,i.jsx)("div",{className:(0,Be.A)("f1-mx-[21px]","f1-mt-6"),children:(0,i.jsx)("img",{src:o,className:(0,Be.A)("f1-w-full")})})]})};var Nt=t(6104);class Ot extends pt.p{constructor(e){super(e),Object.defineProperty(this,"fullAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"streetAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.streetAddress=`${(null==e?void 0:e.streetNumber)||""} ${(null==e?void 0:e.streetName)||""}`.trim()}}class Tt{constructor(e,n){Object.defineProperty(this,"records",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=[...e].sort(((e,n)=>{const t=e=>{var n,t,i;return new Date(null!==(t=null===(n=null==e?void 0:e.ocrResult)||void 0===n?void 0:n.runDate)&&void 0!==t?t:null===(i=null==e?void 0:e.extraData)||void 0===i?void 0:i.ocr_process_run_date)},i=t(e),r=t(n);return i||r?i?r?r.getTime()-i.getTime():-1:1:0}));this.records=new St(null==t?void 0:t[0],n)}}class St extends Nt.y{constructor(e,n){var t,i,r,a,l,o,s,d,u,c,f,A,m,p,v,g,b,y,h,x,E,C,w,B,j,N,O,T,S,I,k,D,L,P,R,F,M,q,V,_,U,$,Y,W,z,H,G,Z,K,Q,X,J,ee,ne,te,ie,re,ae,le,oe,se,de,ue,ce;super(e),Object.defineProperty(this,"givenName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"middleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"familyName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extraData",{enumerable:!0,configurable:!0,writable:!0,value:{}});const fe=e=>{var n;return(null===(n=null==e?void 0:e.toString())||void 0===n?void 0:n.length)?null==e?void 0:e.toString():null},Ae=(0,mn.WL)(null!==(t=null==e?void 0:e.dateOfBirth)&&void 0!==t?t:fe(null===(i=null==e?void 0:e.ocrResult)||void 0===i?void 0:i.dateOfBirth)),me=(0,mn.WL)(null!==(r=this.idExpiry)&&void 0!==r?r:fe(null===(a=null==e?void 0:e.ocrResult)||void 0===a?void 0:a.dateOfExpiry));this.givenName=null!==(o=fe(null===(l=null==e?void 0:e.ocrResult)||void 0===l?void 0:l.firstName))&&void 0!==o?o:"",this.middleName=null!==(d=fe(null===(s=null==e?void 0:e.ocrResult)||void 0===s?void 0:s.middleName))&&void 0!==d?d:"",this.familyName=null!==(c=fe(null===(u=null==e?void 0:e.ocrResult)||void 0===u?void 0:u.lastName))&&void 0!==c?c:"",this.dateOfBirth=`${null!==(f=Ae.dd)&&void 0!==f?f:""}-${null!==(A=Ae.mm)&&void 0!==A?A:""}-${null!==(m=Ae.yyyy)&&void 0!==m?m:""}`,this.idExpiry=me?`${null!==(p=me.dd)&&void 0!==p?p:""}-${null!==(v=me.mm)&&void 0!==v?v:""}-${null!==(g=me.yyyy)&&void 0!==g?g:""}`:"",this.idType=null!==(b=null==e?void 0:e.idType)&&void 0!==b?b:"DRIVERS_LICENCE",this.region=null!==(j=null!==(w=null!==(C=null!==(x=null!==(h=null===(y=En().find((n=>{var t;return n.label.toLowerCase()===(null===(t=fe(null==e?void 0:e.region))||void 0===t?void 0:t.toLowerCase())})))||void 0===y?void 0:y.value)&&void 0!==h?h:fe(null==e?void 0:e.region))&&void 0!==x?x:fe(null===(E=null==e?void 0:e.ocrResult)||void 0===E?void 0:E.issuingState))&&void 0!==C?C:fe(null==n?void 0:n.state))&&void 0!==w?w:fe(null===(B=null==e?void 0:e.ocrResult)||void 0===B?void 0:B.state))&&void 0!==j?j:"",this.country=null!==(T=null!==(N=fe(null==e?void 0:e.country))&&void 0!==N?N:fe(null===(O=null==e?void 0:e.ocrResult)||void 0===O?void 0:O.issuingCountry))&&void 0!==T?T:"AUS",this.country=2===(null===(S=this.country)||void 0===S?void 0:S.length)?(0,pn.Tm)(this.country):this.country,this.idNumber=null!==(D=null!==(I=fe(null==e?void 0:e.idNumber))&&void 0!==I?I:fe(null===(k=null==e?void 0:e.ocrResult)||void 0===k?void 0:k.idNumber))&&void 0!==D?D:"",this.extraData.reference=null!==(P=fe(null===(L=null==e?void 0:e.extraData)||void 0===L?void 0:L.reference))&&void 0!==P?P:fe(null===(R=null==e?void 0:e.ocrResult)||void 0===R?void 0:R.reference),this.extraData.document_number=null!==(M=fe(null===(F=null==e?void 0:e.extraData)||void 0===F?void 0:F.document_number))&&void 0!==M?M:"";const pe=null!==(q=fe(null==n?void 0:n.country))&&void 0!==q?q:fe(null===(V=null==e?void 0:e.ocrResult)||void 0===V?void 0:V.issuingCountry);this.address=new Ot({addressId:null!==(_=fe(null==n?void 0:n.addressId))&&void 0!==_?_:fe(null===(U=null==e?void 0:e.ocrResult)||void 0===U?void 0:U.addressId),addressType:null!==(W=null!==($=fe(null==n?void 0:n.addressType))&&void 0!==$?$:fe(null===(Y=null==e?void 0:e.ocrResult)||void 0===Y?void 0:Y.addressType))&&void 0!==W?W:"RESIDENTIAL1",buildingName:null!==(z=fe(null==n?void 0:n.buildingName))&&void 0!==z?z:fe(null===(H=null==e?void 0:e.ocrResult)||void 0===H?void 0:H.buildingName),postalCode:null!==(G=fe(null==n?void 0:n.postalCode))&&void 0!==G?G:fe(null===(Z=null==e?void 0:e.ocrResult)||void 0===Z?void 0:Z.postcode),state:null!==(K=fe(null==n?void 0:n.state))&&void 0!==K?K:fe(null===(Q=null==e?void 0:e.ocrResult)||void 0===Q?void 0:Q.state),streetName:null!==(X=fe(null==n?void 0:n.streetName))&&void 0!==X?X:fe(null===(J=null==e?void 0:e.ocrResult)||void 0===J?void 0:J.street),streetNumber:null!==(ee=fe(null==n?void 0:n.streetNumber))&&void 0!==ee?ee:fe(null===(ne=null==e?void 0:e.ocrResult)||void 0===ne?void 0:ne.streetNumber),suburb:null!==(te=fe(null==n?void 0:n.suburb))&&void 0!==te?te:fe(null===(ie=null==e?void 0:e.ocrResult)||void 0===ie?void 0:ie.suburb),town:null!==(re=fe(null==n?void 0:n.town))&&void 0!==re?re:fe(null===(ae=null==e?void 0:e.ocrResult)||void 0===ae?void 0:ae.town),unitNumber:null!==(le=fe(null==n?void 0:n.unitNumber))&&void 0!==le?le:fe(null===(oe=null==e?void 0:e.ocrResult)||void 0===oe?void 0:oe.unitNumber),country:2===(null==pe?void 0:pe.length)?(0,pn.Tm)(pe):pe}),this.address.fullAddress=null!==(ue=null!==(se=fe(null==n?void 0:n.longForm))&&void 0!==se?se:fe(null===(de=null==e?void 0:e.ocrResult)||void 0===de?void 0:de.address))&&void 0!==ue?ue:fe(null===(ce=null==e?void 0:e.ocrResult)||void 0===ce?void 0:ce.address1)}}var It=t(6924),kt=t.n(It);const Dt=e=>{const n=An.c9.fromISO(e),t=n.toFormat("dd/LL/yyyy h:mm:ss a");return n.isValid?t:""},Lt={name:"CONSENT",mode:"individual",type:"manual",title:{label:"Your consent matters",style:{}},descriptions:[{label:'Your personal information being collected and used in accordance with [Company]\'s <a href="https://www.frankieone.com/privacy" target="_blank">Privacy Policy</a>.',style:{"ff-description-item":{}}},{label:"In addition, for the purposes of verifying your identity, you consent to: a) the verification of my personal information with credit bureau header files (for verification only); b) against records held by official document issues or official record holders via third party systems; and c) verification agent(s) acting as a nominated intermediary in accordance with Australian Privacy Principles.",style:{"ff-description-item":{}}},{label:"You consent to the use by third parties of the results of any verification checks on my identity for the purposes of monitoring and improving their verification services.",style:{"ff-description-item":{}}}],checkbox:{content:[{label:"I have read and agree the above disclosure",style:{"ff-description-item":{}}}],style:{}},cta:{icon:"",label:"Continue",style:{}},style:{}},Pt={country:{fieldType:"select",dataType:"text",hide:!1,options:wn().filter((e=>["AUS","NZL"].includes(e.value))),label:"Country of Driver’s Licence",name:"country",placeholder:"Please select",rules:{required:{value:!0,message:"Please select a country"}}},state:{fieldType:"select",name:"region",hide:!1,dataType:"text",label:"State or Territory of Issue",options:En("AUS"),placeholder:"Please select",rules:{required:{value:!0,message:"Please select a state"}}},licenceNumber:{fieldType:"input",dataType:"text",label:"Licence Number",placeholder:"e.g. 1234567890",name:"idNumber",image:ye.nzDriverLicence,rules:{required:{value:!0,message:"Please enter your licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},cardNumber:{fieldType:"input",dataType:"text",name:"extraData.document_number",label:"Card Number",placeholder:"e.g. 1234567890",helperText:"You will find your Card Number on the front of your card, running vertically alongside your photo.",image:ye.actIdDetails,rules:{required:{value:!0,message:"Please enter your card number"},minLength:{value:10,message:"Card number must be at least 10 digits"},maxLength:{value:10,message:"Card number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},passport:{fieldType:"input",dataType:"text",name:"idNumber",image:ye.ausPassport,label:"Passport Number",placeholder:"e.g. A1234567890",rules:{required:{value:!0,message:"Please enter your passport number"}}},date:{fieldType:"date",dataType:"text",name:"idExpiry",label:"Date of Expiry",rules:{required:{value:!0,message:"Please enter your passport’s expiry date"}},calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your Medicare expiry date"}},cardColor:{fieldType:"select",dataType:"text",hide:!1,label:"Medicare Card Colour",name:"idSubType",rules:{required:{value:!0,message:"Please select your Medicare card colour"}},options:[{label:"Green",value:"G",icon:ye.greenMedicareCard},{label:"Blue",value:"B",icon:ye.blueMedicareCard},{label:"Yellow",value:"Y",icon:ye.yellowMedicareCard}],placeholder:"Select Medicare Card Colour",autocomplete:!0},medicareCardNumber:{fieldType:"input",hide:!1,label:"Medicare Card Number",dataType:"text",name:"idNumber",rules:{required:{value:!0,message:"Please enter your Medicare card number"},pattern:Vn.onlyNumbers,minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"}}},positionOnCard:{fieldType:"input",hide:!1,label:"Position on Card",dataType:"document_extra",name:"extraData.reference",rules:{required:{value:!0,message:"Please enter your position on card"},pattern:Vn.onlyNumbers,maxLength:{value:1,message:"Position on card must not exceed 1 digit"}}}},Rt=Object.assign(Object.assign({},Pt.country),{options:wn()}),Ft={name:"DOCUMENT",mode:"individual",type:"manual",numberOfIDs:1,title:{label:"Select your first ID"},subtitle:{label:"Your ID must be valid and not expired"},descriptions:[{label:"We need one form of ID document to verify your identity."}],documents:[{type:"DRIVERS_LICENCE",label:"Driver's licence",subtitle:"(recommended)",postIcon:ye.rightArrowIcon,icon:ye.driverLicenseIcon,countries:{default:{default:{fields:[Pt.country]}},NZL:{default:{image:ye.nzSampleCard,fields:[Pt.country,Object.assign(Object.assign({},Pt.licenceNumber),{rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{required:{value:!0,message:"Please enter your licence number"},pattern:Object.assign({},Vn.alphaNumeric)})}),{fieldType:"input",dataType:"number",label:"Version Number",placeholder:"e.g. 123",name:"extraData.licence_version",image:ye.nzVersionNumber,rules:{required:{value:!0,message:"Please enter your version number"},minLength:{value:3,message:"Version number must be at least 3 charecters"},maxLength:{value:3,message:"Version number must not exceed 3 charecters"},pattern:Object.assign({},Vn.onlyNumbers)}}]}},AUS:{default:{image:ye.driversLicenseBanner,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.actLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.actSampleCard})]},ACT:{image:ye.driversLicenseBanner,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.actLicenseNumber,rules:{required:{value:!0,message:"Please enter your licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.actSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{pattern:Object.assign({},Vn.alphaNumeric)})})]},NSW:{image:ye.nswIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.nswLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.nswSampleCard,helperText:"You will find your Card Number on the front of your card, in the top right corner above your photo."})]},NT:{image:ye.ntIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.ntLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:1,message:"Licence number must be at least 1 characters"},maxLength:{value:10,message:"Licence number must not exceed 10 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.ntSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:6,message:"Card number must be at least 6 charecters"},maxLength:{value:8,message:"Card number must not exceed 8 charecters"},pattern:Object.assign({},Vn.onlyNumbers)}),helperText:"The card number is located on the back of your card, either in the bottom left corner or bottom middle."})]},QLD:{image:ye.qldIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.qldLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:8,message:"Licence number must be at least 8 characters"},maxLength:{value:9,message:"Licence number must not exceed 9 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.qldSampleCard,helperText:"You will find your Card Number on the front of your card, in the bottom middle, or the back of your card, on the bottom right side.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{pattern:Object.assign({},Vn.alphaNumeric)})})]},SA:{image:ye.saIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.saLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:6,message:"Licence number must not exceed 6 characters"}})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.saSampleCard,helperText:"You will find your Card Number on the back of your card, in the top right corner.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:9,message:"Card number must be at least 9 charecters"},maxLength:{value:9,message:"Card number must not exceed 9 charecters"},pattern:Object.assign({},Vn.alphaNumeric)})})]},TAS:{image:ye.tasIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.tasLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{helperText:"You will find your Card Number on the back of your card, in the top right corner.",image:ye.tasSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{maxLength:{value:9,message:"Card number must not exceed 9 charecters"},minLength:{value:9,message:"Card number must be at least 9 charecters"},pattern:Object.assign({},Vn.alphaNumeric)})})]},VIC:{image:ye.vicIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.vicLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.vicSampleCard,placeholder:"e.g. P1234567",helperText:"You will find your Card Number on the back of your card, either in the top right corner or middle right.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:8,message:"Card number must be at least 8 digits"},maxLength:{value:8,message:"Card number must not exceed 8 digits"},pattern:Object.assign({},Vn.alphaNumeric)})})]},WA:{image:ye.waIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.waLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:7,message:"Licence number must be at least 7 characters"},maxLength:{value:7,message:"Licence number must not exceed 7 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.waSampleCard,helperText:"You will find your Card Number on the back of your card, in the middle of the right side.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)})})]}}}},{type:"PASSPORT",label:"Passport",postIcon:ye.rightArrowIcon,icon:ye.passportIcon,countries:{default:{default:{image:ye.internationPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Pt.passport]}},AUS:{default:{image:ye.ausPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{rules:Object.assign(Object.assign({},Pt.passport.rules),{minLength:{value:8,message:"Passport number must be at least 8 characters"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}})})]}},NZL:{default:{image:ye.nzPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{image:ye.nzPassport,rules:Object.assign({},Pt.passport.rules)}),Object.assign(Object.assign({},Pt.date),{label:"Date of Expiry",rules:Object.assign(Object.assign({},Pt.date.rules),{required:{value:!0,message:"Please enter your passport’s expiry date"}}),calendarConfig:Object.assign(Object.assign({},Pt.date.calendarConfig),{maxYear:2030,message:"Please enter your passport’s expiry date"})})]}},IND:{default:{image:ye.internationPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{image:ye.internationPassport,rules:Object.assign({},Pt.passport.rules)}),{fieldType:"input",name:"extraData.document_number",dataType:"document_extra",label:"File Number",placeholder:"e.g. ABCD12345678",rules:{required:{value:!0,message:"Please enter your File Number"}}}]}}}},{type:"NATIONAL_HEALTH_ID",label:"Medicare card",postIcon:ye.rightArrowIcon,icon:ye.medicalIcon,countries:{default:{default:{image:ye.greenMedicareCard,fields:[Pt.cardColor,Object.assign(Object.assign({},Pt.cardNumber),{name:"idNumber",label:"Medicare Card Number",helperText:"",rules:{required:{value:!0,message:"Please enter your Medicare card number"},minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}),Pt.positionOnCard,Object.assign(Object.assign({},Pt.date),{label:"Date of Expiry",rules:{required:{value:!0,message:"Please enter your Medicare expiry date"}},calendarConfig:Object.assign(Object.assign({},Pt.date.calendarConfig),{maxYear:2045,message:"Please enter your Medicare expiry date"})})]}}}}],cta:{label:"Next"}},Mt={name:"REVIEW",title:{label:"Are your details correct?",style:{"ff-title":{}}},personal:{countries:{default:{default:{fields:[...null==Wn?void 0:Wn.map((e=>"address"===(null==e?void 0:e.fieldType)?Gn[0]:e))]}},AUS:{default:{fields:[Object.assign({},null==Wn?void 0:Wn.find((e=>"address"===e.fieldType)))]}}}},documents:[{type:"DRIVERS_LICENCE",countries:{default:{default:{fields:[{fieldType:"input",hide:!1,dataType:"text",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 characters"},maxLength:{value:15,message:"Licence number must not exceed 15 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",hide:!1,dataType:"text",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:1,message:"Card number must be at least 1 characters"},maxLength:{value:15,message:"Card number must not exceed 15 character"},pattern:Object.assign({},Vn.alphaNumeric)}}]}},AUS:{ACT:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",name:"idNumber",dataType:"number",label:"Licence Number",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)},style:{"ff-form-field":{}}},{fieldType:"input",label:"Card Number",name:"extraData.document_number",dataType:"number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},NSW:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 digits"},maxLength:{value:10,message:"Card number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}]},NT:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:6,message:"Card number must be at least 6 digits"},maxLength:{value:8,message:"Card number must not exceed 8 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}]},QLD:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:8,message:"Licence number must be at least 8 characters"},maxLength:{value:9,message:"Licence number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},SA:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:6,message:"Licence number must not exceed 6 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:9,message:"Card number must be at least 9 characters"},maxLength:{value:9,message:"Card number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},TAS:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:9,message:"Card number must be at least 9 characters"},maxLength:{value:9,message:"Card number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},VIC:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:8,message:"Card number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},WA:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En("AUS"),placeholder:"Select DL State or Territory"},{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:7,message:"Licence number must be at least 7 digits"},maxLength:{value:7,message:"Licence number must not exceed 7 characters"}}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]}}}},{type:"NATIONAL_HEALTH_ID",countries:{default:{default:{fields:[{fieldType:"select",dataType:"text",hide:!1,label:"Medicare Card Colour",name:"idSubType",rules:{required:{value:!0,message:"Please select your Medicare card colour"}},options:Bn,placeholder:"Select Medicare Card Colour",autocomplete:!0},{fieldType:"input",hide:!1,label:"Medicare Card Number",dataType:"text",name:"idNumber",rules:{required:{value:!0,message:"Please enter your Medicare card number"},pattern:Vn.onlyNumbers,minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"}}},{fieldType:"input",hide:!1,label:"Position on Card",dataType:"document_extra",name:"extraData.reference",rules:{required:{value:!0,message:"Please enter your position on card"},pattern:Vn.onlyNumbers,maxLength:{value:1,message:"Position on card must not exceed 1 digit"}}},{fieldType:"date",hide:!1,dataType:"text",expiryDate:!0,label:"Medicare Date of Expiry",name:"idExpiry",rules:{required:{value:!0,message:"Please select your Medicare expiry date"},min:{value:1,message:"Minimum Days to be one"},max:{value:31,message:"Maximum Days to be 31 only"}},calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please select your Medicare expiry date"}}]}}}},{type:"PASSPORT",countries:{default:{default:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Passport Issuing Country",name:"country",rules:{required:{value:!0,message:"Please select your passport issuing country"}},options:wn(),placeholder:"Select Issuing Country",style:{"ff-form-field":{}}},{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:1,message:"Passport number must be at least 1 character"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}}]}},AUS:{default:{fields:[{fieldType:"select",hide:!1,dataType:"text",label:"Passport Issuing Country",name:"country",rules:{required:{value:!0,message:"Please select your passport issuing country"}},options:wn(),placeholder:"Select Issuing Country",style:{"ff-form-field":{}}},{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:8,message:"Passport number must be at least 8 characters"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}}]}}}}],instruction:{content:[{label:"I confirm that all provided information is accurate."}]},cta:{label:"Looks good, submit"},style:{"ff-form-wrapper":{},"ff-form-field":{}}};var qt,Vt,_t,Ut,$t,Yt,Wt;const zt=[Object.assign(Object.assign({},Hn),{manualFieldConfig:null===(qt=null==Hn?void 0:Hn.manualFieldConfig)||void 0===qt?void 0:qt.map((e=>{var n,t;const i=null===(t=null===(n=e.name)||void 0===n?void 0:n.toString())||void 0===t?void 0:t.split(".");return Object.assign(Object.assign({},e),{name:`address1.${i[1]}`})}))})],Ht=Object.assign(Object.assign({name:"RETRY"},Mt),{title:{label:"Review personal details"},personal:Object.assign(Object.assign({},Zn.personal),{countries:Object.assign(Object.assign({},Zn.personal.countries),{default:{default:Object.assign(Object.assign({},null===(_t=null===(Vt=Zn.personal.countries)||void 0===Vt?void 0:Vt.default)||void 0===_t?void 0:_t.default),{fields:[...(null===(Yt=null===($t=null===(Ut=Zn.personal.countries)||void 0===Ut?void 0:Ut.default)||void 0===$t?void 0:$t.default)||void 0===Yt?void 0:Yt.fields)||[],{title:{label:"Residential address"},fieldType:"address",name:"address1.fullAddress",hide:!0,dataType:"previous_addr",label:"What was your previous residential address?",showToggle:!0,rules:{required:{value:!0,message:"Please enter your previous address"}},toggleConfig:{label:"Have you been at your current residential address for less than 6 months?",rules:{required:{value:!0,message:"Please let us know if you have any previous address"}}},placeholder:"Type in your previous address",manualFieldConfig:null===(Wt=zt[0])||void 0===Wt?void 0:Wt.manualFieldConfig}]})}})}),documents:[...Ft.documents],descriptions:[{label:"We need one form of ID document to verify your identity."}],cta:{label:"Next"}}),Gt={name:"REVIEW",type:"manual",title:{label:"Are your details correct?",style:{}},cta:{label:"Looks good, submit"}},Zt={AUS:{1:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"manual",numberOfIDs:1,descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}},2:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{"ff-title":{}}},type:"manual",descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"Two IDs on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}}},NZL:{1:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"manual",descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}}}},Kt=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),{oneSDK:n}=(0,d.useContext)(Ni),t=n.individual(),i=(e,n,t)=>{var i,r,a,l,o,s,d;return(null===(a=null===(r=null===(i=null==e?void 0:e.countries)||void 0===i?void 0:i.default)||void 0===r?void 0:r.default)||void 0===a?void 0:a.fields)&&(e.countries.default.default.fields=vn([...null!==(d=null===(s=null===(o=null===(l=null==e?void 0:e.countries)||void 0===l?void 0:l.default)||void 0===o?void 0:o.default)||void 0===s?void 0:s.fields)&&void 0!==d?d:[],...(e=>{var i,r,a,l,o,s,d,u;return(null===(r=null===(i=null==e?void 0:e[n])||void 0===i?void 0:i[t])||void 0===r?void 0:r.fields)||(null===(l=null===(a=null==e?void 0:e.default)||void 0===a?void 0:a[t])||void 0===l?void 0:l.fields)||(null===(s=null===(o=null==e?void 0:e[n])||void 0===o?void 0:o.default)||void 0===s?void 0:s.fields)||(null===(u=null===(d=null==e?void 0:e.default)||void 0===d?void 0:d.default)||void 0===u?void 0:u.fields)||[]})(null==e?void 0:e.countries)],"name")),e},r=(e,n)=>{const r=t.access("documents").getValue(),{country:a,region:l}=new Tt(r).records;"documents"==n?Object.entries(Ce).forEach((([t])=>{var r;const o=null!==(r=null==e?void 0:e[n])&&void 0!==r?r:[],s=null==o?void 0:o.find((e=>e.type===t));i(s,a,l)})):i(e[n],a,l)},a=(e,n)=>{var t,i;if("RESULT"==n.name)return Object.assign(Object.assign(Object.assign({},Qn),Kn[null==n?void 0:n.state]),n);switch(null==n?void 0:n.name){case"WELCOME":return(null===(t=Zt.AUS)||void 0===t?void 0:t[null!==(i=null==n?void 0:n.numberOfIDs)&&void 0!==i?i:1])||Zt.AUS[1];case"CONSENT":return Lt;case"DOCUMENT":return Object.assign({},Ft);case"REVIEW":return Gt;case"RETRY":return Ht;default:return e}},l=(e=[],n=[])=>{if(Array.isArray(e)&&Array.isArray(n)){const t=[...Sn({data:e,sequence:n.map((e=>e.name)),key:"name"})||[],...n];return vn(t,"name")}};return{mergeAndReplaceConfig:(t,i,o)=>{const s="individual"===(null==i?void 0:i.mode)&&"manual"===(null==i?void 0:i.type)&&Object.assign({},a(t,i)),d="business"===(null==i?void 0:i.mode)&&Object.assign({},(e=>{var t;return{WELCOME:()=>(({instance:e})=>{var n;const{requestedDocuments:t,senderName:i,linkExpiry:r}=e.session.getExtraData()||{};return{name:"WELCOME",mode:"business",title:{label:"Document request"},descriptions:[{label:`We need to collect some documents to verify your relation to ${(null===(n=e.business().access("name").getValue())||void 0===n?void 0:n.name)||"[Business entity name]"}. Please upload all documents requested below.`}],instructions:{label:"Requested documents",content:(a=t,a?JSON.parse(a).map((({documentType:e})=>({icon:ye.checkbox,label:hn(e)}))):[{icon:ye.checkbox,label:"[Empty]"}])},sender:`The document requested by ${i||"[Empty]"}.`,expiry:`The link will expire on ${Dt(r)||"[date][time]"}.`,cta:{label:"Next",style:{}},style:{}};var a})({instance:n}),CONSENT:()=>(({instance:e})=>{var n;return{name:"CONSENT",mode:"business",title:{label:"Your consent matters",style:{}},descriptions:[{label:`You consent to your personal information (including business records) being collected and used in accordance with ${(null===(n=e.business().access("name").getValue())||void 0===n?void 0:n.name)||"[Business entity name]"} Privacy Policy for the purposes of investigating and determining the legitimacy of a company and its overall ownership structure, to conduct due diligence procedures to ensure business activities and partnering entities are not involved in illegal activities.`},{label:"You also consent to the verification of this information against records held by official document issuers or official record holders via third party systems in accordance with Australian Privacy Principles."},{label:"You consent to such organisations authorised by me to use your personal and business information for the purpose of monitoring and improving their verification services."}],checkbox:{content:[{label:"I have read and agree to the above disclosure"}]},cta:{icon:"",label:"Continue",style:{}}}})({instance:n}),DOC_UPLOAD:()=>Mn,default:()=>e}[null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"default"]()})(t)),u=s||d||Object.assign(Object.assign(Object.assign({},t),a(t,i)),{type:"ocr"}),c=[Pe.i.RETRY,Pe.i.REVIEW,Pe.i.PERSONAL,Pe.i.DOCUMENT].includes(o),f=e=>{var n,t,r,a,o;const s=i,d=u;let c=!1;if("documents"===e){if(!(null===(n=null==s?void 0:s[e])||void 0===n?void 0:n.length))return null==d?void 0:d[e];if(!(null===(t=null==d?void 0:d[e])||void 0===t?void 0:t.length)&&!(null===(r=null==s?void 0:s[e])||void 0===r?void 0:r.length))return[];(null===(a=null==s?void 0:s[e])||void 0===a?void 0:a.length)&&(s[e]=null===(o=null==s?void 0:s[e])||void 0===o?void 0:o.map((n=>{var t;const i=null===(t=null==d?void 0:d[e])||void 0===t?void 0:t.find((e=>e.type===n.type));if(i)return c=!0,kt()(Ge()(i),Ge()(n),l)})).filter((e=>e)))}return kt()(Ge()(null==s?void 0:s[e]),Ge()(c?null==s?void 0:s[e]:null==d?void 0:d[e]),((n,t)=>{const[i,r]="documents"===e?[n,t]:[t,n];return l(i,r)}))};for(const e in i)c&&["documents","personal"].includes(e)&&((null==i?void 0:i.documents)||(null==i?void 0:i.personal))?(u[e]=f(e),r(Ge()(u),e)):!c&&Array.isArray(i[e])&&i[e]?u[e]=Ge()(i[e]):Array.isArray(i[e])||"object"!=typeof i[e]?u[e]=i[e]:u[e]=Object.assign(Object.assign({},u[e]),Ge()(i[e]));const A=n=>{var t;const i="documents"==n?Pe.i.DOCUMENT:Pe.i.PERSONAL,r="documents"===n?[]:{};let a=(()=>{var t,a;switch(n){case"documents":return(null===(t=null==e?void 0:e[i])||void 0===t?void 0:t[n])||[];case"personal":return(null===(a=null==e?void 0:e[i])||void 0===a?void 0:a[n])||{};default:return r}})()||r,o=(null==u?void 0:u[n])||r;[a,o].every((e=>Array.isArray(e)))&&"documents"===n&&(o=null===(t=null==u?void 0:u[n])||void 0===t?void 0:t.filter((e=>!!a.find((n=>n.type===e.type)))),o=function(e){if(e.source.length!==e.destination.length)throw new Error("Source and destination length should be same");const n=e.source.map((n=>n[e.key]));return e.destination.sort(((t,i)=>n.indexOf(t[e.key])-n.indexOf(i[e.key])))}({source:a,destination:o,key:"type"}),[a,o]=[o,a]),u[n]=kt()(Ge()(a),Ge()(o),((e,t)=>{const[i,r]="documents"===n?[e,t]:[t,e];return l(i,r)}))};return"RETRY"===i.name&&["documents","personal"].forEach(A),u},addGlobalRules:i,getResultInfo:n=>Object.assign(Object.assign({},kt()(Ge()(Kn[n]),Ge()(e[Pe.i.RESULT]),((e,n)=>{if(Array.isArray(e))return n}))),{state:n})}},Qt=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.REVIEW],{addGlobalRules:t}=Kt(),{oneSDK:i}=(0,d.useContext)(Ni),r=i.individual(),a=(0,d.useMemo)((()=>{var e,n,t;const{givenName:i,middleName:a,familyName:l}=r.access("name").getValue(),o=r.access("documents").getValue(),s=(0,mn.WL)(r.access("dateOfBirth").getValue()),d=r.access("addresses").getValue()[0];return Object.assign(Object.assign({},new Tt(o,d).records),{dateOfBirth:`${null!==(e=s.dd)&&void 0!==e?e:""}-${null!==(n=s.mm)&&void 0!==n?n:""}-${null!==(t=s.yyyy)&&void 0!==t?t:""}`,givenName:i,middleName:a,familyName:l})}),[]),{idType:l,country:o,region:u}=a,{getFormConfig:c}=Jn(),f=e=>{var t;const{personalFields:i,documentFields:r}=c({config:n,idType:l,country:o,region:u}),a=null===(t=[...i,...r].find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.hide;return null==a||!a},A=e=>{const n=n=>un()(e,n),t={buildingName:n("buildingName"),postalCode:n("postalCode"),state:n("state"),streetName:n("streetName"),streetNumber:n("streetNumber"),streetType:n("streetType"),suburb:n("suburb"),town:n("town"),unitNumber:n("unitNumber"),addressType:n("addressType")||"RESIDENTIAL1",longForm:n("fullAddress"),country:n("country")},i=Object.keys(t).reduce(((e,n)=>!!f(n)&&Object.assign(Object.assign({},e),{[n]:t[n]})),{});(n=>{var t;if((null==e?void 0:e.addressId)&&(null===(t=null==e?void 0:e.addressId)||void 0===t?void 0:t.length))r.updateAddress(e.addressId,n);else{const{getValue:e,setValue:t}=r.access("addresses"),i=e(),a=null==i?void 0:i.find((e=>e.addressType===n.addressType));(null==a?void 0:a.addressId)?r.updateAddress(a.addressId,n):t([...i.filter((e=>e.addressType!==n.addressType)),n])}})(Object.assign(Object.assign({},i),{country:n("country")||"AUS",addressType:n("addressType")||"RESIDENTIAL1"}))},m=e=>{var n,t,i;const a={givenName:null==e?void 0:e.givenName,familyName:null==e?void 0:e.familyName,middleName:null==e?void 0:e.middleName,displayName:`${(null===(n=null==e?void 0:e.givenName)||void 0===n?void 0:n.trim())||""} ${(null===(t=null==e?void 0:e.middleName)||void 0===t?void 0:t.trim())||""} ${(null===(i=null==e?void 0:e.familyName)||void 0===i?void 0:i.trim())||""}`.trim()},l=Object.keys(a).reduce(((e,n)=>f(n)&&Object.assign(Object.assign({},e),{[n]:a[n]})),{});r.access("name").setValue(l)};return{getScannedData:a,updateModule:e=>new Promise((n=>{var t,i,a,l,o;m(e);const s=An.c9.fromFormat(e.dateOfBirth,"d-L-yyyy").toFormat("yyyy-LL-dd");f("dateOfBirth")&&r.access("dateOfBirth").setValue(s),f("address")&&A(e.address);const d={dateOfBirth:s,idNumber:e.idNumber,idSubType:e.idSubType,idType:e.idType,idExpiry:null!==(l=null===(a=null===(i=null===(t=null==e?void 0:e.idExpiry)||void 0===t?void 0:t.split("-"))||void 0===i?void 0:i.reverse())||void 0===a?void 0:a.join("-"))&&void 0!==l?l:"",country:e.country,region:e.region,extraData:e.extraData},u=Object.keys(d).reduce(((e,n)=>f(n)&&Object.assign(Object.assign({},e),{[n]:d[n]})),{});(null==e?void 0:e.documentId)&&(null===(o=null==e?void 0:e.documentId)||void 0===o?void 0:o.length)&&r.updateDocument(e.documentId,u),n(!0)})),updateAddress:A,getUpdatedGlobalConfig:e=>n.documents.map((n=>n.type===e.getValues("idType")?t(Ge()(n),e.getValues("country"),e.getValues("region")):n)),fieldIsVisible:f,updateNames:m,individual:r}};const Xt=()=>{const e=(0,s.wA)(),{getFormConfig:n}=Jn(),t=(0,s.d4)(on),{pageConfigs:i}=(0,s.d4)(Ci),{individual:r,fieldIsVisible:a}=Qt(),{insertedDocuments:l,personalSequence:o}=In(),u=e=>{var r;const a=i[e.configName],{personalFields:l,documentFields:o,manualFields:s}=n(Object.assign(Object.assign({config:a},e),{idType:null!==(r=null==e?void 0:e.idType)&&void 0!==r?r:t[t.currentForm]}));return[...l,...o,...s]},c=(0,d.useCallback)(((e,n)=>i.currentModule===Pe.i.PERSONAL?null:e||([Pe.i.PERSONAL].includes(n)&&[We.REVIEW].includes(t.mode)&&!o(0).isValidIndex||[We.EDIT].includes(t.mode)?Pe.i.REVIEW:Pe.i.DOCUMENT)),[t.mode,screen]),f=e=>{const n=i.currentModule===Pe.i.RETRY,t=!l.find((n=>n.key===e)),r=e!==Pe.i.PERSONAL;return n&&t&&r},A=e=>{var n,r;const a=[Pe.i.PERSONAL];let o;if(i.currentModule===Pe.i.RETRY&&t.mode!==We.EDIT){const i=null===(n=l.at(t.pageHistory.length-1))||void 0===n?void 0:n.key;return e===i?null:i}if((null==t?void 0:t.mode)===We.EDIT)for(const n in t.data)a.includes(n)||t.data[n].mode!==We.EDIT||n===e||(o=n);else{const n=t.pageHistory.length,i=n?n-1:n;o=null===(r=l.at(i))||void 0===r?void 0:r.key,o=o===e?null:o}return o},m=e=>{return n=void 0,t=void 0,l=function*(){const{form:n,idType:t,fields:i}=e;return new Promise((e=>{var l;if(t===Pe.i.PERSONAL)e(!0);else{const o={};i.forEach((e=>{const t=e.name;if(n.getValues(t)){let e=n.getValues(t);["idExpiry"].includes(t)&&(e=Cn(e)),ut()(o,t,e)}}));let s=Object.assign(Object.assign({},Object.keys(o).reduce(((e,n)=>a(n)&&Object.assign(Object.assign({},e),{[n]:o[n]})),{})),{idType:t});(null==s?void 0:s.idExpiry)&&(s.idExpiry=Cn(s.idExpiry,!0)),"NATIONAL_HEALTH_ID"===s.idType&&(s=(e=>{var n;return Object.assign(Object.assign({},e),{country:(null===(n=p(Pe.i.PERSONAL))||void 0===n?void 0:n.country)||"AUS"})})(s));const d=r.access("documents");let u;const c=d.getValue().find((e=>e.idType===t&&(null==e?void 0:e.documentId)));if(c)u=A(t),r.updateDocument(c.documentId,s);else{u=A(t);let e=d.getValue();const n=null===(l=e.find((e=>e.idType==u)))||void 0===l?void 0:l.documentId;n?r.updateDocument(n,s):(e=e.filter((e=>![u,s.idType].includes(e.idType)))||[],d.setValue([...e,s]))}e(u)}}))},new((i=void 0)||(i=Promise))((function(e,r){function a(e){try{s(l.next(e))}catch(e){r(e)}}function o(e){try{s(l.throw(e))}catch(e){r(e)}}function s(n){var t;n.done?e(n.value):(t=n.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,o)}s((l=l.apply(n,t||[])).next())}));var n,t,i,l},p=(e,n)=>{var t,i,a;let l;const o=e=>{var n,t;const i=r.access("addresses").getValue();let a=i.find((n=>e.includes(n.addressType)));e.includes("RESIDENTIAL")&&(a=null!=a?a:i[0]);const l=(null==a?void 0:a.streetName)||(null==a?void 0:a._streetName)||"",o=(null==a?void 0:a.streetNumber)||"";return Object.assign(Object.assign({},a),{fullAddress:null!==(n=null==a?void 0:a.longForm)&&void 0!==n?n:null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.longForm,isAddedByCustomer:!(!(null==a?void 0:a.postalCode)||!(null==a?void 0:a.state)),streetAddress:`${o} ${l}`.trim()})};if(e===Pe.i.PERSONAL)l=Object.assign(Object.assign({},r.access("name").getValue()),{dateOfBirth:Cn(r.access("dateOfBirth").getValue(),!0),address:o(["RESIDENTIAL","RESIDENTIAL1"]),address1:o(["RESIDENTIAL2"])}),l.extraData={phone:r.getPhoneNumber(),email:r.getEmail()},n&&(l.dateOfBirth=Tn({dateString:l.dateOfBirth}));else if(l=r.access("documents").getValue().find((n=>n.idType===e)),l=Object.assign(Object.assign({},l),{idExpiry:Cn(null==l?void 0:l.idExpiry,!0)}),(null==l?void 0:l.country)||(l=Object.assign(Object.assign({},l),{country:null===(t=o(["RESIDENTIAL","RESIDENTIAL1"]))||void 0===t?void 0:t.country})),n){l=Object.assign(Object.assign({},l),{country:(null===(i=wn().find((e=>e.value===(null==l?void 0:l.country))))||void 0===i?void 0:i.label)||(null==l?void 0:l.country),region:(null===(a=En(null==l?void 0:l.country).find((e=>e.value===(null==l?void 0:l.region))))||void 0===a?void 0:a.label)||(null==l?void 0:l.region)});const e=Bn.find((e=>e.value===(null==l?void 0:l.idSubType)));(null==l?void 0:l.idSubType)&&e&&(l.idSubType=e.label),(null==l?void 0:l.idExpiry)&&(l.idExpiry=Tn({dateString:l.idExpiry}))}return l};return{updateManualIndividualModule:m,getIndividualData:p,handleBack:n=>{e(Je({currentForm:c(n)}))},saveConfig:n=>{var t;const i=[...u(n),...null!==(t=null==n?void 0:n.extraFields)&&void 0!==t?t:[]],{form:r,configName:a,idType:l}=n;m({form:r,configName:a,idType:l,fields:i}).then((t=>{var a,o;const s={currentForm:c(null,l),data:i,label:null==n?void 0:n.label,key:l,replacedId:l===Pe.i.PERSONAL?void 0:t,dirty:!!Object.keys(null!==(o=null===(a=null==r?void 0:r.formState)||void 0===a?void 0:a.touchedFields)&&void 0!==o?o:{}).length,isAdditionalId:f(n.idType)};e(Xe(s))}))}}};class Jt extends Nt.y{constructor(e){super(e)}}const ei=({config:e,formFieldsType:n,testid:t={mockImg:null},onBack:r})=>{const{pageConfigs:a}=(0,s.d4)(Ci),l=(0,s.d4)(on),{saveConfig:o,handleBack:u,getIndividualData:c}=Xt(),{isAdditionaDoc:f}=In(),[A,m]=(0,d.useState)(),{getFormConfig:p}=Jn(),v=(0,d.useMemo)((()=>{const n=c(l.currentForm),{documentFields:t}=p({config:e,idType:Ce[l.currentForm],country:null==n?void 0:n.country,region:null==n?void 0:n.region}),i=t.find((e=>{var t;return"country"===(null==e?void 0:e.name)&&(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.some((e=>(null==e?void 0:e.value)===(null==n?void 0:n.country))))}));return Object.assign(Object.assign(Object.assign({},new Jt({})),n),{country:i?null==n?void 0:n.country:""})}),[l.currentForm,l.pageHistory]),g=(0,Xn.mN)({defaultValues:v,mode:"all"}),{watch:b,handleSubmit:y}=g,{country:h,region:x}=b(),E=(0,s.wA)();(0,d.useEffect)((()=>{m(e)}),[e]),(0,d.useEffect)((()=>{E(en({id:l.currentForm}))}),[]),(0,d.useEffect)((()=>{var e;(null==l?void 0:l.currentForm)&&(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e[null==l?void 0:l.currentForm])&&g.reset(c(l.currentForm))}),[null==l?void 0:l.currentForm,null==l?void 0:l.data]),(0,d.useEffect)((()=>{g.clearErrors(),yn(g.getValues()).forEach((e=>{g.getValues(e)&&g.trigger(e)}))}),[h,x]),(0,d.useEffect)((()=>{var e;l.mode===We.EDIT||l.currentForm!==Ce.NATIONAL_HEALTH_ID||(null===(e=g.getValues("idSubType"))||void 0===e?void 0:e.length)||g.setValue("idSubType","G")}),[]);const C=()=>{o({form:g,idType:Ce[null==l?void 0:l.currentForm],configName:Pe.i[(null==a?void 0:a.currentModule)===Pe.i.RETRY?"RETRY":"DOCUMENT"],country:h,region:x,label:null==B?void 0:B.label})},w=()=>{E(en({id:l.currentForm,isRemove:!0})),u(Pe.i.DOCUMENT),r&&r(l.currentForm)};if(!A)return;const B=A.documents.find((e=>e.type===Ce[null==l?void 0:l.currentForm])),j=()=>{var e,n;return l.mode==We.EDIT?`Edit ${null===(e=null==B?void 0:B.label)||void 0===e?void 0:e.toLowerCase()} details`:a.currentModule===Pe.i.RETRY?f(!0)?null==B?void 0:B.label:`Review ${null===(n=null==B?void 0:B.label)||void 0===n?void 0:n.toLowerCase()} details`:null==B?void 0:B.label};return(0,i.jsx)(Le,{onSubmit:y(C),buttonConfig:l.mode==We.EDIT&&{editable:{pre:{label:"Cancel",onClick:()=>u(),disabled:!1},post:{label:"Save",onClick:y(C),disabled:!g.formState.isValid}}},disabled:!g.formState.isValid,inputClass:(0,Be.A)("tablet:!f1-pt-[24px]","f1-py-[24px]","tablet:!f1-pt-[49px]"),renderScreen:()=>{var r;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:j(),style:null===(r=e.title)||void 0===r?void 0:r.style,onBack:w,testid:{mockImg:t.mockImg},className:(0,Be.A)("f1-mb-0")}),(0,i.jsx)(jt,{form:g,config:e,individualConfig:{idType:Ce[null==l?void 0:l.currentForm],country:h,region:x},formFieldsType:n})]})}})};class ni extends St{constructor(e){super(e)}}const ti=({config:e,formFieldsType:n,previewImage:t,onSubmit:r})=>{const{pageConfigs:a}=(0,s.d4)(Ci),l=(0,s.d4)(on),{getIndividualData:o}=Xt(),[u,c]=(0,d.useState)(!1),{modifyFormConfig:f}=Jn(),A=()=>{const e=o(Pe.i.PERSONAL);return ut()(e,"address1.fullAddressShowToggle",On(e,"address1.fullAddress")),Object.assign(Object.assign(Object.assign({},new ni({})),e),{middleNameShowToggle:On(e,"middleName")})},m=(0,Xn.mN)({defaultValues:A(),mode:"all"}),{getScannedData:p}=Qt(),{idType:v}=p,{country:g,region:b}=m.watch(),{handleSubmit:y}=m,{updateModule:h}=(()=>{const{oneSDK:e}=(0,d.useContext)(Ni),n=e.individual(),{updateAddress:t,updateNames:i,getScannedData:r,fieldIsVisible:a}=Qt();return{updateModule:(e,r,l)=>new Promise((o=>{var s,d,u,c,f,A,m,p,v,g;let b;if(i(e),"RESIDENTIAL1"===r&&l){const n=null===(d=null===(s=null==e?void 0:e.address)||void 0===s?void 0:s.data)||void 0===d?void 0:d.longForm;b=Object.assign(Object.assign(Object.assign(Object.assign({},e.address),{addressType:r,country:null!==(c=null===(u=e.address)||void 0===u?void 0:u.country)&&void 0!==c?c:"AUS"}),Nn(e,"address")),{longForm:(null===(f=null==e?void 0:e.address)||void 0===f?void 0:f.fullAddress)||n})}else if(l&&(null==e?void 0:e.address1)){const n=null===(m=null===(A=null==e?void 0:e.address1)||void 0===A?void 0:A.data)||void 0===m?void 0:m.longForm;b=Object.assign(Object.assign(Object.assign(Object.assign({},null==e?void 0:e.address1),{addressType:r,country:null!==(v=null===(p=null==e?void 0:e.address1)||void 0===p?void 0:p.country)&&void 0!==v?v:"AUS"}),Nn(e,"address1")),{longForm:(null===(g=null==e?void 0:e.address1)||void 0===g?void 0:g.fullAddress)||n})}l&&((null==b?void 0:b.longForm)||ut()(b,"longForm",jn(b)),ut()(b,"data.longForm",null==b?void 0:b.longForm),ut()(b,"fullAddress",null==b?void 0:b.longForm),t(b)),a("extraData.phone")&&n.setPhoneNumber(e.extraData.phone),a("extraData.email")&&n.setEmail(e.extraData.email),a("dateOfBirth")&&n.access("dateOfBirth").setValue(Cn(e.dateOfBirth,!0)),o(!0)})),updateForm:e=>{const{reset:n}=e,t=r;n(Object.assign(Object.assign({},t),{address:t.address}))}}})(),{saveConfig:x,handleBack:E}=Xt(),{documentReady:C}=Oi();(0,d.useEffect)((()=>{var e;(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e[Pe.i.PERSONAL])&&m.reset(A())}),[l,u]),(0,d.useEffect)((()=>{m.getValues("middleNameShowToggle")||m.setValue("middleName","")}),[m.watch("middleNameShowToggle")]),(0,d.useEffect)((()=>{const e=m.getValues("address.country");e&&m.setValue("country",e)}),[m.watch("address.country")]);const w=(0,d.useMemo)((()=>![We.EDIT,We.REVIEW].includes(l.mode)),[l.mode]),B=(0,d.useMemo)((()=>{var n,t,i,r,a;return f(null===(a=null===(r=null===(i=null===(t=null===(n=null==e?void 0:e.personal)||void 0===n?void 0:n.countries)||void 0===t?void 0:t.default)||void 0===i?void 0:i.default)||void 0===r?void 0:r.fields)||void 0===a?void 0:a.find((e=>"previous_addr"===e.dataType)))}),[e,u]),j=()=>{var e;const n=m.getValues();h(n,u?"RESIDENTIAL2":"RESIDENTIAL1",!u||!!(null===(e=m.getValues(B.name))||void 0===e?void 0:e.length)).then((()=>{w?C():r&&r(),x({idType:Pe.i.PERSONAL,configName:Pe.i.PERSONAL,label:"Personal details",extraFields:[Object.assign(Object.assign({},B),{label:"Previous Residential Address"})]})}))},N=()=>{const{formState:e}=m,{touchedFields:n}=e;l.failedType===ze.NAME&&(l.mode===We.REVIEW&&0===Object.keys(n).length||l.mode===We.EDIT&&0===Object.keys(n).length&&l.data.personal.docFields.find((e=>"previous_addr"===(null==e?void 0:e.dataType))))?u?j():c(!0):j()},O=(0,d.useMemo)((()=>l.mode==We.EDIT),[l.mode]),T=(0,d.useMemo)((()=>a.currentModule===Pe.i.RETRY),[a]),S=()=>{var n,t,i,r;return O?`Edit ${null===(i=null===(t=null===(n=a[Pe.i.PERSONAL])||void 0===n?void 0:n.title)||void 0===t?void 0:t.label)||void 0===i?void 0:i.toLowerCase()}`:null===(r=e.title)||void 0===r?void 0:r.label};return(0,i.jsx)(Le,{onSubmit:y(N),disabled:!m.formState.isValid,buttonConfig:O&&{editable:{pre:{label:"Cancel",onClick:()=>E(),disabled:!1},post:{label:"Save",onClick:y(N),disabled:!m.formState.isValid}}},inputClass:(0,Be.A)({"!f1-pt-[24px]":u},{"tablet:!f1-pt-[49px]":u}),renderScreen:()=>{var r,l,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:u?null===(r=null==B?void 0:B.title)||void 0===r?void 0:r.label:S(),onBack:u?()=>c(!1):void 0,style:null===(l=e.title)||void 0===l?void 0:l.style,className:(0,Be.A)("f1-mb-[8px]")}),!u&&(0,i.jsx)(Te,{descriptions:T?null===(o=a[Pe.i.PERSONAL])||void 0===o?void 0:o.descriptions:null==e?void 0:e.descriptions}),u&&(0,i.jsx)(Ct,{config:Object.assign({control:m.control},B),type:"text"}),!u&&(0,i.jsx)(jt,{form:m,config:e,individualConfig:{idType:v,country:g,region:b},formFieldsType:n,previewImage:t})]})}})};var ii=t(8156),ri=t.n(ii);const ai=({items:e=[],onSelect:n,testid:t={container:"",label:"",detailWrapper:"",detailLabel:"",detailSubText:"",image:"",mockImg:null}})=>{const r=(0,d.useCallback)(((r,a)=>{var l,o,s,d;return(0,i.jsxs)("div",{"data-testid":t.container,children:[(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-justify-between"),children:[(0,i.jsxs)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-gap-2"),children:[(0,i.jsx)("h3",{className:(0,Be.A)("f1-m-0","f1-text-[#1F2A37]","f1-font-semibold","f1-text-lg"),"data-testid":t.label,children:null===(l=r.title)||void 0===l?void 0:l.label}),(0,i.jsx)("div",{children:null===(o=null==r?void 0:r.details)||void 0===o?void 0:o.map(((e,n)=>(0,i.jsxs)("div",{"data-testid":t.detailWrapper,className:(0,Be.A)({"f1-mb-2":n!==r.details.length-1}),children:[(0,i.jsx)("div",{className:(0,Be.A)("f1-text-[#1F2A37]","f1-font-medium","f1-text-sm"),"data-testid":t.detailLabel,children:e.label}),(0,i.jsx)("div",{className:(0,Be.A)("f1-text-[#374151]","f1-font-normal","f1-text-md","f1-leading-6"),"data-testid":t.detailSubText,children:e.subText})]},`f1-manual-edit-card-${n}`)))})]}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:(0,Be.A)("f1-cursor-pointer"),src:null!==(s=t.mockImg)&&void 0!==s?s:ye.editIcon,alt:"Action Icon",onClick:()=>n(Object.assign(Object.assign({},r),{index:a})),"data-testid":t.image})})]}),e.length-1!==a&&(0,i.jsx)("div",{className:(0,Be.A)("f1-w-full","f1-h-[1px]","f1-bg-tertiary-grey-200","f1-my-4")})]},null===(d=null==r?void 0:r.title)||void 0===d?void 0:d.label)}),[e]);return null==e?void 0:e.map(r)},li=({config:e,progressWrapperClass:n})=>{const{pageConfigs:t}=(0,s.d4)(Ci);let r=t[Pe.i.LOADING];return r=Object.assign(Object.assign({},r),e),(0,i.jsx)(Pn,Object.assign({},r,{inputClass:"f1-h-full",progressWrapperClass:n}))},oi={[we.FAIL]:{label:(0,Be.A)("f1-mt-[32px]","f1-text-[21px]","f1-text-[#1F2A37]","tablet:f1-w-[342px]","f1-w-[300px]"),description:(0,Be.A)("f1-font-[400]","f1-text-[16px]","f1-mt-4","f1-text-[#374151]","tablet:f1-w-[345px]","f1-w-[300px]")},[we.SUCCESS]:{label:(0,Be.A)("f1-mt-[32px]","f1-w-[342px]","f1-text-[32px]","f1-text-[#1F2A37]","f1-text-[30px]")},[we.PARTIAL]:{label:(0,Be.A)("f1-mt-[32px]","f1-text-[21px]","tablet:f1-w-[342px]","f1-w-[300px]","f1-leading-[32px]","f1-text-[#1F2A37]"),description:(0,Be.A)("f1-font-[400]","tablet:f1-w-[345px]","f1-text-[16px]","f1-mt-4","f1-w-[300px]","f1-text-[#374151]")},[we.PENDING]:{label:(0,Be.A)("f1-mt-[32px]","f1-text-[24px]","f1-leading-[32px]","f1-text-[#1F2A37]","tablet:f1-w-[342px]","f1-w-[300px]"),description:(0,Be.A)("f1-font-[400]","f1-text-[16px]","f1-mt-4","f1-text-[#374151]","tablet:f1-w-[345px]","f1-w-[300px]")},[we.UPLOAD_SUCCESS]:{},[we.UPLOAD_FAIL]:{}},si={[we.FAIL]:"failed",[we.SUCCESS]:"success",[we.PARTIAL]:"partial",[we.PENDING]:"pending",[we.UPLOAD_SUCCESS]:"success",[we.UPLOAD_FAIL]:"failed"},di=({config:e,onSubmit:n})=>{var t,r,a,l,o,u;const{pageConfigs:c}=(0,s.d4)(Ci),[f,A]=(0,d.useState)(!1),{idvEventEmitter:m}=Oi(),p=e||c[c.currentModule];if(!f)return(0,i.jsxs)("div",{className:(0,Be.A)("f1-h-full","f1-w-full","f1-flex","f1-flex-col","f1-gap-10","f1-justify-center","f1-items-center"),children:[(0,i.jsx)(Pn,Object.assign({},e,{inputClass:"f1-h-[calc(100%-92px)] tablet:f1-h-auto",labelClass:null===(t=oi[null==e?void 0:e.state])||void 0===t?void 0:t.label,descriptionClass:null===(r=oi[null==e?void 0:e.state])||void 0===r?void 0:r.description})),(0,i.jsx)(De,Object.assign({icon:null===(a=null==p?void 0:p.cta)||void 0===a?void 0:a.icon,visible:Object.keys(null==p?void 0:p.cta).length>0,label:null===(l=null==p?void 0:p.cta)||void 0===l?void 0:l.label,className:`${Ee.button}`,buttonClass:"tablet:f1-mb-0 f1-w-[calc(100%-48px)]",onClick:()=>{m({eventType:si[null==e?void 0:e.state],extraEventInfo:{name:Pe.i.RESULT}}),A(!0),n&&n()}},null==e?void 0:e.cta,{style:null===(u=null===(o=null==p?void 0:p.cta)||void 0===o?void 0:o.style)||void 0===u?void 0:u[Ee.button]}))]})};var ui=function(e,n,t,i){return new(t||(t=Promise))((function(r,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function o(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const ci=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.REVIEW],t=e[Pe.i.REVIEW],{getIndividualData:r}=Xt(),{getResultInfo:a}=Kt(),l=(0,s.wA)(),{documentReady:o,idvEventEmitter:u}=Oi(),[c,f]=(0,d.useState)(),[A,m]=(0,d.useState)(!1),[p,v]=(0,d.useState)(),[g,b]=(0,d.useState)(),y=(0,s.d4)(on);vi[e.currentModule].disabled=!1;const{oneSDK:h}=(0,d.useContext)(Ni),{insertedDocuments:x,modifyDocConfig:E,personalSequence:C}=In();(0,d.useEffect)((()=>{l(Je({currentForm:Pe.i.REVIEW,mode:We.EDIT})),l(an({clearFormState:!1})),b(e[Pe.i.DOCUMENT])}),[]),(0,d.useEffect)((()=>{var e;if(null===(e=Object.keys(y.data))||void 0===e?void 0:e.length){const e=[];Object.entries(y.data).forEach((([n,t],i)=>{const a=r(n,!0);let l=t.label;if(n!==Pe.i.PERSONAL){const e=(e=>{var n;return(null==e?void 0:e[0])?e[0].toUpperCase()+(null===(n=null==e?void 0:e.slice(1))||void 0===n?void 0:n.replace(/-/g," ")):""})(Ue[C(0).isValidIndex?i-1:i]);l=1==x.length?`ID: ${t.label}`:`${e} ID: ${t.label}`}e.push({title:{label:l},type:n,details:t.docFields.map((e=>({label:null==e?void 0:e.label,subText:ri()(a,e.name)}))).filter((e=>(null==e?void 0:e.subText)&&e.subText.length>0))})})),f(e),b(E)}}),[y.data]);const w=e=>{const{type:n}=Object.assign({},e),t=n===Pe.i.PERSONAL;l(Je({currentForm:t?n:Pe.i.DOCUMENT,mode:We.EDIT,idType:n}))},B=()=>l(tn()),j=(0,d.useMemo)((()=>(0,i.jsx)(ei,{config:e[Pe.i.DOCUMENT]})),[e[Pe.i.DOCUMENT]]);if(A&&(null==t?void 0:t.verify))return(0,i.jsx)(li,{config:qn,progressWrapperClass:(0,Be.A)("f1-max-w-[318px]","f1-w-full")});if(p)return(0,i.jsx)(di,{config:a(p),onSubmit:B});if(c){switch(y.currentForm){case Pe.i.PERSONAL:return(0,i.jsx)(ti,{config:e[Pe.i.PERSONAL],previewImage:!1});case Pe.i.DOCUMENT:return(0,i.jsx)(kn,{config:g,backButton:!0});case Ce.DRIVERS_LICENCE:case Ce.NATIONAL_HEALTH_ID:case Ce.PASSPORT:return j}return(0,i.jsx)(Le,{onSubmit:()=>{m(!0),h.individual().submit({verify:!!(null==t?void 0:t.verify)}).then((e=>ui(void 0,void 0,void 0,(function*(){var n;if(yield h.individual().search(),null==t?void 0:t.verify){const t=n=>{var t;return!!(null===(t=null==e?void 0:e.alertList)||void 0===t?void 0:t.find((e=>e.term===n)))},i=t("partial"),r=t("404"),a=t("duplicate"),o=t("blacklist"),s=t("too-many"),d=()=>{const e=i?ze.NAME:r?ze.ID:null;l(nn(e))};if(t("partial")||t("404"))d(),v(we.PARTIAL);else if(a||o||s)d(),v(we.FAIL);else switch(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.type){case"passed":case"pass_manual":v(we.SUCCESS);break;case"archived":d(),v(we.PARTIAL);break;case"failed":d(),v(we.FAIL);break;default:v(we.PENDING)}}else o()})))).catch((()=>ui(void 0,void 0,void 0,(function*(){yield h.individual().search(),v(we.FAIL)})))).finally((()=>{e.currentModule!==Pe.i.RETRY&&B(),m(!1),u({eventType:"loaded",extraEventInfo:{name:Pe.i.RESULT}})}))},buttonConfig:null==n?void 0:n.cta,disabled:A,renderScreen:()=>{var e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:null==n?void 0:n.title.label,style:null===(e=null==n?void 0:n.title)||void 0===e?void 0:e.style}),(0,i.jsx)(ai,{items:c,onSelect:w})]})}})}},fi=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.PERSONAL];return(0,i.jsx)(ti,{config:n})},Ai={[Pe.i.DOCUMENT]:kn,[Pe.i.REVIEW]:ci,[Pe.i.PERSONAL]:fi,[Ce.DRIVERS_LICENCE]:ei,[Ce.PASSPORT]:ei,[Ce.NATIONAL_HEALTH_ID]:ei};var mi=function(e,n,t,i){return new(t||(t=Promise))((function(r,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function o(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const pi=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),{oneSDK:n}=(0,d.useContext)(Ni),t=e[Pe.i.REVIEW],[r,a]=(0,d.useState)(),{getScannedData:l,updateModule:o,getUpdatedGlobalConfig:u}=Qt(),{documentReady:c}=Oi(),f=(0,Xn.mN)({defaultValues:l,mode:"all"}),{handleSubmit:A,watch:m}=f,{country:p,region:v}=m();return(0,d.useEffect)((()=>{f.setValue("address.country",null==l?void 0:l.country),f.setValue("address.state",null==l?void 0:l.region)}),[]),(0,d.useEffect)((()=>{a(t)}),[t]),(0,d.useEffect)((()=>{a((e=>Object.assign(Object.assign({},e),{documents:u(f)})))}),[p,v]),(0,d.useEffect)((()=>{f.clearErrors(),f.trigger()}),[r]),(0,d.useEffect)((()=>{const e=f.getValues("address.country");e&&f.setValue("country",e)}),[m("address.country")]),(0,d.useEffect)((()=>{const e=f.getValues("address.state");f.setValue("region",e)}),[m("address.state")]),(0,i.jsx)(Le,{onSubmit:A((()=>mi(void 0,void 0,void 0,(function*(){const e=f.getValues();o(e).then((()=>mi(void 0,void 0,void 0,(function*(){yield n.individual().submit(),yield n.individual().search(),c()}))))})))),disabled:!f.formState.isValid,renderScreen:({onValidate:e})=>{var n,a,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:t.title.label,style:null===(n=t.title)||void 0===n?void 0:n.style,className:(0,Be.A)("f1-mb-0")}),(0,i.jsx)(jt,{form:f,config:r,individualConfig:Object.assign(Object.assign({},l),{region:v,country:p})}),(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)(je,{content:null===(a=null==t?void 0:t.instruction)||void 0===a?void 0:a.content,style:null===(o=null==t?void 0:t.instruction)||void 0===o?void 0:o.style,onChange:n=>{e(n.isSelected)}})})]})}})},vi={[Pe.i.WELCOME]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.WELCOME],{documentReady:t}=Oi();return(0,i.jsx)(Le,{onSubmit:t,renderScreen:()=>{var e,t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:null===(e=n.title)||void 0===e?void 0:e.label,style:null===(t=n.title)||void 0===t?void 0:t.style,className:(0,Be.A)("f1-text-3xl","f1-mb-2","f1-leading-[42px]")}),(0,i.jsx)(Te,{descriptions:null==n?void 0:n.descriptions}),(0,i.jsx)(Fe,Object.assign({},null==n?void 0:n.instructions)),(0,i.jsx)("div",{className:(0,Be.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text"),children:null==n?void 0:n.sender}),(0,i.jsx)("div",{className:(0,Be.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text"),children:null==n?void 0:n.expiry})]})}})},disabled:!1,id:Pe.i.WELCOME},[Pe.i.CONSENT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.CONSENT],[t,r]=(0,d.useState)(!1),a=(0,d.useContext)(Ni),{oneSDK:l}=a,o=l.individual(),{documentReady:u}=Oi();return(0,i.jsx)(Le,{disabled:t,renderScreen:({onValidate:e})=>{var t,r,a,l;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.label,style:null===(r=null==n?void 0:n.title)||void 0===r?void 0:r.style}),(0,i.jsx)(Te,{descriptions:null==n?void 0:n.descriptions}),(0,i.jsx)(je,{content:null===(a=null==n?void 0:n.checkbox)||void 0===a?void 0:a.content,style:null===(l=null==n?void 0:n.checkbox)||void 0===l?void 0:l.style,onChange:n=>{e(n.isSelected)}})]})},onSubmit:()=>{if(r(!0),"individual"===n.mode){const e=o.access("consentsGiven").getValue();["general","docs","creditheader"].forEach((n=>{e.includes(n)||o.addConsent(n)})),o.submit().then((()=>{u()}))}else u();r(!1)}})},disabled:!0,id:Pe.i.CONSENT},[Pe.i.DOCUMENT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),[n,t]=(0,d.useState)(),r=(0,s.wA)(),a=(0,s.d4)(on),{isAnyEditableDoc:l,modifyConfig:o,modifyDocConfig:u,insertedDocuments:c}=In(),{idvEventEmitter:f}=Oi();(0,d.useEffect)((()=>{var n,t;r(ln(null!==(t=null===(n=e[Pe.i.DOCUMENT])||void 0===n?void 0:n.numberOfIDs)&&void 0!==t?t:1))}),[e]),(0,d.useEffect)((()=>{t(o)}),[e,null==a?void 0:a.numberOfIdsRequired]),(0,d.useEffect)((()=>{var e;(null==n?void 0:n.name)&&!l()&&r(Je({numberOfIdsRequired:null!==(e=null==n?void 0:n.numberOfIDs)&&void 0!==e?e:1,mode:We.CREATE,currentForm:null===Pe.i||void 0===Pe.i?void 0:Pe.i[n.name]}))}),[n]),(0,d.useEffect)((()=>{l()||c.length!=(null==n?void 0:n.numberOfIDs)?(null==a?void 0:a.data)&&t(u):f({extraEventInfo:{documentType:c.map((e=>e.key))},eventType:"ready"})}),[null==a?void 0:a.data]);const A=(0,d.useMemo)((()=>{var e;return null==Ai?void 0:Ai[null!==(e=null==a?void 0:a.currentForm)&&void 0!==e?e:Pe.i.DOCUMENT]}),[null==a?void 0:a.currentForm]);if(n||(null==a?void 0:a.currentForm))return(0,i.jsx)(A,{config:n,backButton:"manual"===(null==n?void 0:n.type),onBack:e=>{t((n=>u(n,e)))}})},disabled:!1,id:Pe.i.DOCUMENT},[Pe.i.RETRY]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.RETRY],t=(0,s.d4)(on),r=(0,s.wA)(),[a,l]=(0,d.useState)();(0,d.useEffect)((()=>{r(Je({currentForm:Pe.i.RETRY,mode:We.REVIEW})),l(n)}),[]);const{isAdditionaDoc:o,isAnyEditableDoc:u,modifyConfig:c,modifyDocConfig:f,insertedDocuments:A,personalSequence:m}=In();(0,d.useEffect)((()=>{l(c)}),[e,null==t?void 0:t.currentForm]),(0,d.useEffect)((()=>{l(f)}),[null==t?void 0:t.currentForm]);const p=()=>{!m(0).isValidIndex&&y(Pe.i.REVIEW)},v=(0,d.useMemo)((()=>(0,i.jsx)(ti,{config:a,formFieldsType:Pe.i.PERSONAL,previewImage:!1,onSubmit:p})),[a]),g=e=>{r(rn({id:e}))};(0,d.useEffect)((()=>{l((e=>f(e,!0)))}),[t.backHistory]);const b=(0,d.useMemo)((()=>(0,i.jsx)(ei,{config:a,formFieldsType:Pe.i.DOCUMENT,onBack:g})),[a]),y=e=>r(Je({currentForm:e})),h=()=>m(0).isValidIndex?Pe.i.REVIEW:Pe.i.PERSONAL;(0,d.useEffect)((()=>{var n,i;const r=t.mode===We.EDIT;A.length||r||!t.currentForm?!r&&A.length>(null===(n=e[Pe.i.DOCUMENT])||void 0===n?void 0:n.numberOfIDs)&&A.every((e=>null!==e.value.dirty))?y(h()):!u()&&A.length>=(null===(i=e[Pe.i.DOCUMENT])||void 0===i?void 0:i.numberOfIDs)?o()?l((e=>{const n=Object.assign(Object.assign({},e),{title:Object.assign(Object.assign({},e.title),{label:_e.additionInfo.label}),descriptions:_e.additionInfo.descriptions,documents:e.documents.map((e=>Object.assign(Object.assign({},e),{visible:!A.find((n=>n.key===e.type))})))});return n.documents.every((e=>!e.visible))&&y(h()),n})):t.currentForm&&!r&&A.every((e=>null!==e.value.dirty||!0===e.value.dirty))&&y(h()):(null==t?void 0:t.data)&&l(f):y(h())}),[null==t?void 0:t.data]);const x=(0,d.useMemo)((()=>{var e;const n=!!(null===(e=t.pageHistory)||void 0===e?void 0:e.length)||t.mode===We.EDIT,r=!!m(0).isValidIndex||n;return(0,i.jsx)(kn,{config:a,backButton:r})}),[a,t.pageHistory]);if(!a)return null;switch(t.currentForm){case Pe.i.RETRY:return m(0).isValidIndex?v:x;case Pe.i.PERSONAL:return v;case Pe.i.DOCUMENT:return x;case Ce.DRIVERS_LICENCE:case Ce.PASSPORT:case Ce.NATIONAL_HEALTH_ID:return b;case Pe.i.REVIEW:return(0,i.jsx)(ci,{});default:return null}},disabled:!1,id:Pe.i.RETRY},[Pe.i.REVIEW]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.REVIEW];return"manual"===(null==n?void 0:n.type)?(0,i.jsx)(ci,{}):(0,i.jsx)(pi,{})},disabled:!0,id:Pe.i.REVIEW},[Pe.i.PERSONAL]:{element:fi,disabled:!1,id:Pe.i.PERSONAL},[Pe.i.LOADING]:{element:()=>(0,i.jsx)(li,{}),disabled:!0,id:Pe.i.LOADING},[Pe.i.RESULT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Ci),n=e[Pe.i.RESULT];return(0,i.jsx)(di,{config:n})},disabled:!1,id:Pe.i.RESULT},[Pe.i.DOC_UPLOAD]:{element:()=>{const[e,n]=(0,d.useState)(0),[t,r]=(0,d.useState)([]),[a,l]=(0,d.useState)(!1),[o,u]=(0,d.useState)(0),[c,f]=(0,d.useState)(0),[A,m]=(0,d.useState)(!1),[p,v]=(0,d.useState)(!1),[g,b]=(0,d.useState)(0),{pageConfigs:y}=(0,s.d4)(Ci),h=y[Pe.i.DOC_UPLOAD],{idvEventEmitter:x,oneSDK:E}=Oi(),C=(0,d.useMemo)((()=>{if(null==h?void 0:h.documents)return h.documents;try{const{requestedDocuments:e}=E.session.getExtraData()||{requestedDocuments:"[]"};return JSON.parse(e).map((({documentType:e})=>({type:e,title:{label:`Upload ${hn(e)}`}})))}catch(e){return[]}}),[]),w=(e,n)=>t=>{r((i=>{const r=[...i];return r[e]={file:t,type:n},r}))},B=e=>()=>{r((n=>{const t=[...n];return t[e]=null,t}))},j=e=>{l(!0),n(e)},N=E.business();return(0,d.useEffect)((()=>{N.on("upload_progress",(({completed:e})=>{(e=>{100===e?(f((e=>e+100)),u(0)):u(e)})(e)}))}),[]),(0,d.useEffect)((()=>{var n,i,r,a;e>C.length?(n=void 0,i=void 0,a=function*(){try{for(const{file:e,type:n}of t)yield N.upload(e,n);v(!0)}catch(e){m(!0),b((e=>e+1))}},new((r=void 0)||(r=Promise))((function(e,t){function l(e){try{s(a.next(e))}catch(e){t(e)}}function o(e){try{s(a.throw(e))}catch(e){t(e)}}function s(n){var t;n.done?e(n.value):(t=n.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,o)}s((a=a.apply(n,i||[])).next())}))):(u(0),f(0))}),[e]),(0,i.jsxs)(i.Fragment,{children:[C.map((({type:r,title:o,descriptions:s,instructions:d,rules:u},c)=>c===e&&(0,i.jsx)(Le,{hideCTA:!t[c],onSubmit:()=>(e=>{a?(n(C.length),l(!1)):(x({eventCategory:"global",extraEventInfo:{name:Pe.i.DOC_UPLOAD,index:e+1},eventType:"navigate"}),n((e=>e+1)))})(c),renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:o.label,onBack:c>0&&!a&&(()=>(e=>{n(e-1)})(c))}),(0,i.jsx)(Te,{descriptions:(null==s?void 0:s.length)>0?s:[{label:"Please upload your latest document in the required format."}]}),t[c]?(0,i.jsx)(Fn.Preview,{file:t[c].file,onFileRemove:B(c)}):(0,i.jsx)(Fn.Main,{instructions:d,rules:u,onFileSelect:w(c,r)})]})},c))),e===C.length&&(0,i.jsx)(Le,{ctaInfo:{cta:{label:"Yes, submit documents",style:{}}},onSubmit:()=>{n((e=>e+1))},renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:"Are these documents correct?"}),(0,i.jsx)(Fn.Review,{files:t,onEdit:j})]})}),!A&&!p&&e>C.length&&(0,i.jsx)(Le,{hideCTA:!0,renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Se,{label:"Uploading documents"}),(0,i.jsx)(Fn.Progress,{files:t,completed:Math.round((c+o)/t.length)})]})}),A&&(0,i.jsx)(Le,{ctaInfo:{cta:{label:"Retry submitting document"}},onSubmit:()=>{m(!1),n(t.length),x({eventCategory:"global",extraEventInfo:{name:Pe.i.DOC_UPLOAD},eventType:"failed"})},renderScreen:()=>(0,i.jsx)(Fn.Fail,{retries:g})}),p&&(0,i.jsx)(Le,{ctaInfo:{cta:{label:"Done",style:{}}},onSubmit:()=>{x({eventCategory:"global",extraEventInfo:{name:Pe.i.DOC_UPLOAD},eventType:"success"}),x({eventCategory:"global",extraEventInfo:{name:Pe.i.DOC_UPLOAD},eventType:"ready"})},renderScreen:()=>(0,i.jsx)(Fn.Success,{})})]})},disabled:!1,id:Pe.i.DOC_UPLOAD}},gi={[Pe.i.WELCOME]:Ln,[Pe.i.CONSENT]:{name:"CONSENT",mode:"individual",type:"ocr",title:{label:"Your consent matters",style:{}},descriptions:[{label:'Your personal information being collected and used in accordance with FrankieOne\'s <a href="https://www.frankieone.com/privacy" target="_blank">Privacy Policy</a>.',style:{}},{label:"In addition, for the purposes of verifying your identity, you consent to: a) the verification of my personal information with credit bureau header files (for verification only); b) against records held by official document issues or official record holders via third party systems; and c) verification agent(s) acting as a nominated intermediary in accordance with Australian Privacy Principles.",style:{}},{label:"You consent to the use by third parties of the results of any verification checks on my identity for the purposes of monitoring and improving their verification services.",style:{}}],checkbox:{content:[{label:"I have read and agree the above disclosure",style:{}}],style:{}},cta:{icon:"",label:"Continue",style:{}},style:{}},[Pe.i.DOCUMENT]:Dn,[Pe.i.RETRY]:Ht,[Pe.i.REVIEW]:Mt,[Pe.i.PERSONAL]:Zn,[Pe.i.LOADING]:{name:"LOADING",title:{label:"Loading..."},descriptions:[{label:"Data extracting..."}]},[Pe.i.RESULT]:Qn,[Pe.i.DOC_UPLOAD]:Mn},bi=(Pe.i.RESULT,(e,n)=>(null==e?void 0:e.currentModule)===n),yi={pageConfigs:gi},hi=(0,u.Z0)({name:Ye.PAGE_CONFIG,initialState:yi,reducers:{addPageConfig:(e,n)=>{e.pageConfigs=Object.assign(Object.assign({},e.pageConfigs),n.payload)},removeCurrentModule:e=>{e.pageConfigs.currentModule=null}}}),{addPageConfig:xi,removeCurrentModule:Ei}=hi.actions,Ci=e=>e[Ye.PAGE_CONFIG],wi=hi.reducer;var Bi=t(3924);function ji(e){var n,t;const i=e.pageConfigs[e.pageConfigs.currentModule],r=[Pe.i.CONSENT];return{eventConfig:{inputInfo:Object.assign(Object.assign(Object.assign({name:Pe.i[null==i?void 0:i.name]},!r.includes(Pe.i[null==i?void 0:i.name])&&{type:(null==i?void 0:i.type)||"ocr"}),(null==e?void 0:e.documentType)&&{documentType:e.documentType}),null==e?void 0:e.extraEventInfo)},eventName:Bi.Qf[null!==(t=null===(n=null==e?void 0:e.extraEventInfo)||void 0===n?void 0:n.name)&&void 0!==t?t:Pe.i[null==i?void 0:i.name]][e.eventType]}}const Ni=(0,d.createContext)(void 0),Oi=()=>{const{pageConfigs:e}=(0,s.d4)(Ci),{eventHub:n,localEventHub:t,oneSDK:i}=(0,d.useContext)(Ni);return{documentReady:(n,i)=>{const{eventName:r,eventConfig:a}=ji({pageConfigs:e,documentType:n,eventType:"ready",extraEventInfo:i});t.emit(r,a)},documentLoaded:n=>{const{eventName:i,eventConfig:r}=ji({pageConfigs:e,eventType:"loaded",extraEventInfo:n});t.emit(i,r)},documentResultReady:n=>{const{eventName:i,eventConfig:r}=ji({pageConfigs:e,eventType:n});t.emit(i,r)},idvEventEmitter:i=>{const{eventName:r,eventConfig:a}=ji({pageConfigs:e,eventType:null==i?void 0:i.eventType,extraEventInfo:null==i?void 0:i.extraEventInfo});("local"===(null==i?void 0:i.eventCategory)?n:t).emit(r,a)},oneSDK:i}},Ti=()=>{var e,n;const{pageConfigs:t}=(0,s.d4)(Ci),{config:r}=(0,d.useContext)(Ni),a=(0,d.useMemo)((()=>{var e;return null===(e=vi[t.currentModule])||void 0===e?void 0:e.element}),[t.currentModule]);return bi(t,Pe.i[r.name])&&a?(0,i.jsx)("div",{className:(0,Be.A)("f1-flex","f1-flex-col","f1-justify-between","tablet:f1-justify-normal","f1-h-full","f1-w-full","tablet:f1-max-w-[442px]",Ee.wrapper),style:null===(n=null===(e=t[t.currentModule])||void 0===e?void 0:e.style)||void 0===n?void 0:n[Ee.wrapper],children:(0,i.jsx)(a,{})}):null},Si=[Pe.i.LOADING],Ii=({config:e})=>{var n;const{pageConfigs:t}=(0,s.d4)(Ci),r=(0,s.wA)(),{mergeAndReplaceConfig:a}=Kt(),{documentLoaded:l}=Oi(),o=null!==(n=Pe.i[null==e?void 0:e.name])&&void 0!==n?n:Pe.i.WELCOME;return(0,d.useEffect)((()=>{(null==t?void 0:t.currentModule)&&bi(t,o)&&!Si.includes(t.currentModule)&&l()}),[t.currentModule]),(0,d.useEffect)((()=>{r(xi({currentModule:o,[o]:a(t[o],e,o)}))}),[e]),(0,i.jsx)(Ti,{})},ki=(0,u.Z0)({name:Ye.LOADER,initialState:{loading:!1,label:"Loading..."},reducers:{startLoading:(e,n)=>{var t,i,r;e.loading=!0,e.label=null!==(i=null===(t=null==n?void 0:n.payload)||void 0===t?void 0:t.label)&&void 0!==i?i:e.label,e.descriptions=null===(r=null==n?void 0:n.payload)||void 0===r?void 0:r.descriptions},stopLoading:e=>{e.loading=!1,e.label=void 0,e.descriptions=void 0}}}),{startLoading:Di,stopLoading:Li}=ki.actions,Pi=ki.reducer,Ri=(0,u.U1)({reducer:{[Ye.LOADER]:Pi,[Ye.PAGE_CONFIG]:wi,[Ye.MANUAL_FLOW]:sn}}),Fi=({oneSDK:e,eventHub:n,localEventHub:t,config:r,googleApiKey:a})=>(0,i.jsx)(s.Kq,{store:Ri,children:(0,i.jsx)(Ni.Provider,{value:{oneSDK:e,eventHub:n,config:r,googleApiKey:a,localEventHub:t},children:(0,i.jsx)(Ii,{config:r})})});var Mi=t(5072),qi=t.n(Mi),Vi=t(7825),_i=t.n(Vi),Ui=t(7659),$i=t.n(Ui),Yi=t(5056),Wi=t.n(Yi),zi=t(540),Hi=t.n(zi),Gi=t(1113),Zi=t.n(Gi),Ki=t(7913),Qi={};Qi.styleTagTransform=Zi(),Qi.setAttributes=Wi(),Qi.insert=$i().bind(null,"head"),Qi.domAPI=_i(),Qi.insertStyleElement=Hi(),qi()(Ki.A,Qi),Ki.A&&Ki.A.locals&&Ki.A.locals;var Xi=t(2896),Ji={};Ji.styleTagTransform=Zi(),Ji.setAttributes=Wi(),Ji.insert=$i().bind(null,"head"),Ji.domAPI=_i(),Ji.insertStyleElement=Hi(),qi()(Xi.A,Ji),Xi.A&&Xi.A.locals&&Xi.A.locals;var er=t(2967),nr={};nr.styleTagTransform=Zi(),nr.setAttributes=Wi(),nr.insert=$i().bind(null,"head"),nr.domAPI=_i(),nr.insertStyleElement=Hi(),qi()(er.A,nr),er.A&&er.A.locals&&er.A.locals;const tr={height:"100%",textAlign:"left",background:"white",display:"flex",justifyContent:"center",overflow:"auto"};var ir=function(e,n,t,i){return new(t||(t=Promise))((function(r,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function o(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const rr=["form:result:success","form:result:failed","form:result:partial","form:result:pending","form:result:ready"],ar=["form","react","ff-react-form"],lr=(0,o.f)("react",((e,n)=>ir(void 0,void 0,void 0,(function*(){var t,l,o,s;const{mountElement:d,eventHub:u}=n,{oneSdkInstance:c,localEventHub:f,recipe:{form:{provider:A}}}=e,m="react"===A.name&&(null==A?void 0:A.config),p=null!==(l=null!==(t="react"===A.name&&(null==A?void 0:A.googleApiKey))&&void 0!==t?t:"MISSING_ENV_VAR".PUBLIC_GOOGLE_MAP_API)&&void 0!==l?l:"",v=(e="ready")=>{var n;return`form:${Pe.i[null!==(n=m.name)&&void 0!==n?n:"WELCOME"]}:${e}`};try{const{name:e,url:n}=null!==(s=null===(o=null==m?void 0:m.style)||void 0===o?void 0:o.font)&&void 0!==s?s:{};yield or(n),"business"!==m.mode||c.business().access("entityId").getValue()||(yield c.business().search()),d.classList.add(...ar);const t=(0,a.T)("modules.form.wrappingMode"),[l,A,g]=yield"shadow"===t?ur(d,e):dr(d,e),b=r.createRoot(l);b.render((0,i.jsx)(Fi,{oneSDK:c,eventHub:u,localEventHub:f,config:m,googleApiKey:p}));const y=()=>{d.innerHTML="",b.unmount()};f.on(v(),(()=>ir(void 0,void 0,void 0,(function*(){y()})))),f.on(v("back"),(()=>ir(void 0,void 0,void 0,(function*(){y()})))),rr.forEach((e=>{f.on(e,(()=>ir(void 0,void 0,void 0,(function*(){y()}))))}))}catch(e){f.emit(v("failed"),{message:e})}return{cleanup:()=>{}}})))),or=e=>ir(void 0,void 0,void 0,(function*(){e&&(Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some((n=>(null==n?void 0:n.href)===e))||(yield(0,l.loadAsyncAsset)(e,"style")))})),sr=(e,n)=>{const t=document.createElement("div");if(e.appendChild(t),Object.assign(t.style,Object.assign(Object.assign({},tr),n&&{fontFamily:n})),n){const t=e.querySelectorAll("input, select, .f1-font-proxima-nova");null==t||t.forEach((e=>{const t=e.getAttribute("style"),i=`${t?t+";":""} font-family: ${n} !important;`;e.setAttribute("style",i)}))}return t},dr=(e,n)=>ir(void 0,void 0,void 0,(function*(){return[sr(e,n),e,window]})),ur=(e,n)=>ir(void 0,void 0,void 0,(function*(){const t=e.attachShadow({mode:"open"});return[sr(e,n),t,window]}))},5079:(e,n,t)=>{e.exports=t.p+"7f6d57b96337c21c053d.woff"},8199:(e,n,t)=>{e.exports=t.p+"d216030199c873b0bf41.woff2"},5303:(e,n,t)=>{e.exports=t.p+"5ddf80d7ddb1d1c5a0bc.woff"},71:(e,n,t)=>{e.exports=t.p+"6c874e1a72a4fa9eeed8.woff2"},675:(e,n,t)=>{e.exports=t.p+"af823d3a76ce1e2e36af.woff"},9675:(e,n,t)=>{e.exports=t.p+"26a8e1ce5e5578874420.woff2"},2375:(e,n,t)=>{e.exports=t.p+"1c9c1ef03c6dd661b89b.woff"},7047:(e,n,t)=>{e.exports=t.p+"58b74e594849c43b2248.woff2"}}]);
1
+ "use strict";(self.webpackChunkOneSdk=self.webpackChunkOneSdk||[]).push([[275],{7913:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(1354),a=t.n(i),r=t(6314),l=t.n(r)()(a());l.push([e.id,"*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n\n.f1-pointer-events-none {\n pointer-events: none\n}\n\n.f1-absolute {\n position: absolute\n}\n\n.f1-relative {\n position: relative\n}\n\n.f1-sticky {\n position: sticky\n}\n\n.f1-bottom-0 {\n bottom: 0px\n}\n\n.f1-bottom-\\[-20px\\] {\n bottom: -20px\n}\n\n.f1-bottom-\\[13px\\] {\n bottom: 13px\n}\n\n.f1-left-0 {\n left: 0px\n}\n\n.f1-right-0 {\n right: 0px\n}\n\n.f1-right-2 {\n right: 8px\n}\n\n.f1-right-3 {\n right: 0.75rem\n}\n\n.f1--top-1 {\n top: -0.25rem\n}\n\n.f1-top-0 {\n top: 0px\n}\n\n.f1-top-\\[10px\\] {\n top: 10px\n}\n\n.f1-top-\\[25\\.5\\%\\] {\n top: 25.5%\n}\n\n.f1-z-20 {\n z-index: 20\n}\n\n.f1-z-50 {\n z-index: 50\n}\n\n.f1-m-0 {\n margin: 0px\n}\n\n.f1-mx-8 {\n margin-left: 2rem;\n margin-right: 2rem\n}\n\n.f1-mx-\\[21px\\] {\n margin-left: 21px;\n margin-right: 21px\n}\n\n.f1-mx-auto {\n margin-left: auto;\n margin-right: auto\n}\n\n.f1-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem\n}\n\n.f1-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n\n.\\!f1-mr-0 {\n margin-right: 0px !important\n}\n\n.f1--mt-2 {\n margin-top: -8px\n}\n\n.f1--mt-2\\.5 {\n margin-top: -0.625rem\n}\n\n.f1-mb-0 {\n margin-bottom: 0px\n}\n\n.f1-mb-1 {\n margin-bottom: 0.25rem\n}\n\n.f1-mb-2 {\n margin-bottom: 8px\n}\n\n.f1-mb-3 {\n margin-bottom: 0.75rem\n}\n\n.f1-mb-4 {\n margin-bottom: 1rem\n}\n\n.f1-mb-6 {\n margin-bottom: 1.5rem\n}\n\n.f1-mb-\\[8px\\] {\n margin-bottom: 8px\n}\n\n.f1-ml-3 {\n margin-left: 0.75rem\n}\n\n.f1-mr-1 {\n margin-right: 0.25rem\n}\n\n.f1-mt-0 {\n margin-top: 0px\n}\n\n.f1-mt-1 {\n margin-top: 0.25rem\n}\n\n.f1-mt-2 {\n margin-top: 8px\n}\n\n.f1-mt-4 {\n margin-top: 1rem\n}\n\n.f1-mt-5 {\n margin-top: 1.25rem\n}\n\n.f1-mt-6 {\n margin-top: 1.5rem\n}\n\n.f1-mt-8 {\n margin-top: 2rem\n}\n\n.f1-mt-\\[-4px\\] {\n margin-top: -4px\n}\n\n.f1-mt-\\[32px\\] {\n margin-top: 32px\n}\n\n.f1-box-border {\n box-sizing: border-box\n}\n\n.f1-inline {\n display: inline\n}\n\n.f1-flex {\n display: flex\n}\n\n.f1-inline-flex {\n display: inline-flex\n}\n\n.\\!f1-h-5 {\n height: 1.25rem !important\n}\n\n.\\!f1-h-8 {\n height: 2rem !important\n}\n\n.f1-h-1 {\n height: 0.25rem\n}\n\n.f1-h-1\\.5 {\n height: 6px\n}\n\n.f1-h-10 {\n height: 2.5rem\n}\n\n.f1-h-12 {\n height: 3rem\n}\n\n.f1-h-24 {\n height: 6rem\n}\n\n.f1-h-4 {\n height: 1rem\n}\n\n.f1-h-7 {\n height: 1.75rem\n}\n\n.f1-h-96 {\n height: 24rem\n}\n\n.f1-h-\\[1px\\] {\n height: 1px\n}\n\n.f1-h-\\[48px\\] {\n height: 48px\n}\n\n.f1-h-\\[73px\\] {\n height: 73px\n}\n\n.f1-h-\\[calc\\(100\\%-92px\\)\\] {\n height: calc(100% - 92px)\n}\n\n.f1-h-auto {\n height: auto\n}\n\n.f1-h-full {\n height: 100%\n}\n\n.f1-max-h-64 {\n max-height: 16rem\n}\n\n.f1-max-h-\\[150px\\] {\n max-height: 150px\n}\n\n.f1-max-h-\\[193px\\] {\n max-height: 193px\n}\n\n.f1-min-h-\\[52px\\] {\n min-height: 52px\n}\n\n.\\!f1-w-5 {\n width: 1.25rem !important\n}\n\n.\\!f1-w-8 {\n width: 2rem !important\n}\n\n.\\!f1-w-\\[138px\\] {\n width: 138px !important\n}\n\n.f1-w-10 {\n width: 2.5rem\n}\n\n.f1-w-24 {\n width: 6rem\n}\n\n.f1-w-4 {\n width: 1rem\n}\n\n.f1-w-\\[206\\.5\\%\\] {\n width: 206.5%\n}\n\n.f1-w-\\[210\\.5\\%\\] {\n width: 210.5%\n}\n\n.f1-w-\\[300px\\] {\n width: 300px\n}\n\n.f1-w-\\[342px\\] {\n width: 342px\n}\n\n.f1-w-\\[48\\%\\] {\n width: 48%\n}\n\n.f1-w-\\[50\\%\\] {\n width: 50%\n}\n\n.f1-w-\\[calc\\(100\\%-2rem-4px\\)\\] {\n width: calc(100% - 2rem - 4px)\n}\n\n.f1-w-\\[calc\\(100\\%-48px\\)\\] {\n width: calc(100% - 48px)\n}\n\n.f1-w-auto {\n width: auto\n}\n\n.f1-w-full {\n width: 100%\n}\n\n.f1-min-w-\\[210px\\] {\n min-width: 210px\n}\n\n.f1-max-w-\\[318px\\] {\n max-width: 318px\n}\n\n.f1-flex-initial {\n flex: 0 1 auto\n}\n\n.f1-shrink {\n flex-shrink: 1\n}\n\n.f1-flex-grow {\n flex-grow: 1\n}\n\n.f1-grow {\n flex-grow: 1\n}\n\n.f1-basis-0 {\n flex-basis: 0px\n}\n\n@keyframes f1-spin {\n to {\n transform: rotate(360deg)\n }\n}\n\n.f1-animate-spin {\n animation: f1-spin 1s linear infinite\n}\n\n.f1-cursor-not-allowed {\n cursor: not-allowed\n}\n\n.f1-cursor-pointer {\n cursor: pointer\n}\n\n.f1-cursor-text {\n cursor: text\n}\n\n.f1-resize-none {\n resize: none\n}\n\n.f1-list-none {\n list-style-type: none\n}\n\n.f1-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none\n}\n\n.f1-flex-col {\n flex-direction: column\n}\n\n.f1-content-center {\n align-content: center\n}\n\n.f1-items-start {\n align-items: flex-start\n}\n\n.f1-items-end {\n align-items: flex-end\n}\n\n.f1-items-center {\n align-items: center\n}\n\n.f1-justify-start {\n justify-content: flex-start\n}\n\n.f1-justify-end {\n justify-content: flex-end\n}\n\n.f1-justify-center {\n justify-content: center\n}\n\n.f1-justify-between {\n justify-content: space-between\n}\n\n.f1-justify-evenly {\n justify-content: space-evenly\n}\n\n.f1-gap-1 {\n gap: 0.25rem\n}\n\n.f1-gap-1\\.5 {\n gap: 6px\n}\n\n.f1-gap-10 {\n gap: 2.5rem\n}\n\n.f1-gap-2 {\n gap: 8px\n}\n\n.f1-gap-2\\.5 {\n gap: 0.625rem\n}\n\n.f1-gap-3 {\n gap: 0.75rem\n}\n\n.f1-gap-4 {\n gap: 1rem\n}\n\n.f1-gap-6 {\n gap: 1.5rem\n}\n\n.f1-gap-\\[12px\\] {\n gap: 12px\n}\n\n.f1-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(8px * var(--tw-space-x-reverse));\n margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)))\n}\n\n.f1-self-stretch {\n align-self: stretch\n}\n\n.f1-overflow-scroll {\n overflow: scroll\n}\n\n.f1-overflow-y-auto {\n overflow-y: auto\n}\n\n.f1-overflow-x-hidden {\n overflow-x: hidden\n}\n\n.\\!f1-rounded-\\[0px\\] {\n border-radius: 0px !important\n}\n\n.f1-rounded-\\[6px\\] {\n border-radius: 6px\n}\n\n.f1-rounded-full {\n border-radius: 9999px\n}\n\n.f1-rounded-lg {\n border-radius: 12px\n}\n\n.f1-rounded-md {\n border-radius: 8px\n}\n\n.f1-rounded-sm {\n border-radius: 4px\n}\n\n.\\!f1-rounded-l-sm {\n border-top-left-radius: 4px !important;\n border-bottom-left-radius: 4px !important\n}\n\n.\\!f1-rounded-r-sm {\n border-top-right-radius: 4px !important;\n border-bottom-right-radius: 4px !important\n}\n\n.f1-rounded-l-sm {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px\n}\n\n.f1-border {\n border-width: 1px\n}\n\n.f1-border-2 {\n border-width: 2px\n}\n\n.f1-border-\\[1px\\] {\n border-width: 1px\n}\n\n.f1-border-\\[3px\\] {\n border-width: 3px\n}\n\n.\\!f1-border-r-\\[0px\\] {\n border-right-width: 0px !important\n}\n\n.f1-border-t {\n border-top-width: 1px\n}\n\n.f1-border-solid {\n border-style: solid\n}\n\n.f1-border-dashed {\n border-style: dashed\n}\n\n.f1-border-none {\n border-style: none\n}\n\n.\\!f1-border-primary-container {\n --tw-border-opacity: 1 !important;\n border-color: rgb(232 240 255 / var(--tw-border-opacity)) !important\n}\n\n.f1-border-primary-container {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-50 {\n --tw-border-opacity: 1;\n border-color: rgb(249 250 251 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(240 82 82 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(200 30 30 / var(--tw-border-opacity))\n}\n\n.\\!f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity)) !important\n}\n\n.\\!f1-bg-mono-white {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important\n}\n\n.f1-bg-\\[\\#E7F0FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-\\[\\#FDF2F2\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(253 242 242 / var(--tw-bg-opacity))\n}\n\n.f1-bg-mono-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(60 124 250 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(43 103 249 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-container {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity))\n}\n\n.f1-fill-primary-600 {\n fill: #3c7cfa\n}\n\n.f1-fill-primary-800 {\n fill: #2b67f9\n}\n\n.f1-fill-tertiary-grey-400 {\n fill: #9ca3af\n}\n\n.f1-fill-tertiary-red-600 {\n fill: #e02424\n}\n\n.f1-p-0 {\n padding: 0px\n}\n\n.f1-p-1 {\n padding: 0.25rem\n}\n\n.f1-p-4 {\n padding: 1rem\n}\n\n.f1-p-6 {\n padding: 1.5rem\n}\n\n.f1-px-3xl {\n padding-left: 24px;\n padding-right: 24px\n}\n\n.f1-px-4 {\n padding-left: 1rem;\n padding-right: 1rem\n}\n\n.f1-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem\n}\n\n.f1-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n\n.f1-px-\\[16px\\] {\n padding-left: 16px;\n padding-right: 16px\n}\n\n.f1-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem\n}\n\n.f1-py-2 {\n padding-top: 8px;\n padding-bottom: 8px\n}\n\n.f1-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem\n}\n\n.f1-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n\n.f1-py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px\n}\n\n.f1-py-\\[24px\\] {\n padding-top: 24px;\n padding-bottom: 24px\n}\n\n.f1-py-\\[49px\\] {\n padding-top: 49px;\n padding-bottom: 49px\n}\n\n.\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important\n}\n\n.f1-pl-4 {\n padding-left: 1rem\n}\n\n.f1-pr-10 {\n padding-right: 2.5rem\n}\n\n.f1-pr-3 {\n padding-right: 0.75rem\n}\n\n.f1-pt-1 {\n padding-top: 0.25rem\n}\n\n.f1-text-left {\n text-align: left\n}\n\n.f1-text-center {\n text-align: center\n}\n\n.f1-text-2xl {\n font-size: 1.5rem\n}\n\n.f1-text-3xl {\n font-size: 1.875rem\n}\n\n.f1-text-\\[14px\\] {\n font-size: 14px\n}\n\n.f1-text-\\[16px\\] {\n font-size: 16px\n}\n\n.f1-text-\\[21px\\] {\n font-size: 21px\n}\n\n.f1-text-\\[24px\\] {\n font-size: 24px\n}\n\n.f1-text-\\[30px\\] {\n font-size: 30px\n}\n\n.f1-text-\\[32px\\] {\n font-size: 32px\n}\n\n.f1-text-lg {\n font-size: 1.125rem\n}\n\n.f1-text-md {\n font-size: 1rem\n}\n\n.f1-text-sm {\n font-size: 0.875rem\n}\n\n.f1-text-xs {\n font-size: 0.75rem\n}\n\n.f1-font-\\[400\\] {\n font-weight: 400\n}\n\n.f1-font-bold {\n font-weight: 700\n}\n\n.f1-font-medium {\n font-weight: 500\n}\n\n.f1-font-normal {\n font-weight: 400\n}\n\n.f1-font-semibold {\n font-weight: 600\n}\n\n.f1-leading-6 {\n line-height: 1.5rem\n}\n\n.f1-leading-9 {\n line-height: 2.25rem\n}\n\n.f1-leading-\\[21px\\] {\n line-height: 21px\n}\n\n.f1-leading-\\[32px\\] {\n line-height: 32px\n}\n\n.f1-leading-\\[42px\\] {\n line-height: 42px\n}\n\n.f1-leading-none {\n line-height: 1\n}\n\n.f1-leading-normal {\n line-height: 1.5\n}\n\n.f1-leading-relaxed {\n line-height: 1.625\n}\n\n.f1-leading-tight {\n line-height: 1.25\n}\n\n.\\!f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1 !important;\n color: rgb(107 114 128 / var(--tw-text-opacity)) !important\n}\n\n.\\!f1-text-tertiary-red-600 {\n --tw-text-opacity: 1 !important;\n color: rgb(224 36 36 / var(--tw-text-opacity)) !important\n}\n\n.f1-text-\\[\\#1F2A37\\] {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity))\n}\n\n.f1-text-\\[\\#306ef9\\] {\n --tw-text-opacity: 1;\n color: rgb(48 110 249 / var(--tw-text-opacity))\n}\n\n.f1-text-\\[\\#374151\\] {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity))\n}\n\n.f1-text-mono-70 {\n --tw-text-opacity: 1;\n color: rgb(108 117 125 / var(--tw-text-opacity))\n}\n\n.f1-text-mono-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n\n.f1-text-primary-700 {\n --tw-text-opacity: 1;\n color: rgb(51 113 250 / var(--tw-text-opacity))\n}\n\n.f1-text-primary-800 {\n --tw-text-opacity: 1;\n color: rgb(43 103 249 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-800 {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-red-600 {\n --tw-text-opacity: 1;\n color: rgb(224 36 36 / var(--tw-text-opacity))\n}\n\n.f1-placeholder-tertiary-red-600::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity))\n}\n\n.f1-placeholder-tertiary-red-600::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity))\n}\n\n.f1-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.f1-outline {\n outline-style: solid\n}\n\n.f1-outline-0 {\n outline-width: 0px\n}\n\n.f1-outline-primary-200 {\n outline-color: #a1c2fd\n}\n\n.f1-outline-tertiary-red-500 {\n outline-color: #f05252\n}\n\n.hover\\:f1-border-primary-container:hover {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity))\n}\n\n.hover\\:f1-bg-primary-900:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-bg-primary-container:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-bg-tertiary-grey-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-text-tertiary-grey-600:hover {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity))\n}\n\n.focus\\:f1-border-\\[3px\\]:focus {\n border-width: 3px\n}\n\n.focus\\:f1-bg-\\[\\#E7F0FF\\]:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity))\n}\n\n.focus\\:f1-bg-primary-50:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.focus\\:f1-outline-\\[0\\.1px\\]:focus {\n outline-width: 0.1px\n}\n\n.focus\\:f1-outline-\\[\\#2B67F9\\]:focus {\n outline-color: #2B67F9\n}\n\n.focus\\:f1-outline-tertiary-red-500:focus {\n outline-color: #f05252\n}\n\n.focus-visible\\:f1-bg-primary-900:focus-visible {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.focus-visible\\:f1-outline-3:focus-visible {\n outline-width: 3px\n}\n\n.active\\:f1-bg-primary-900:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.active\\:f1-outline-3:active {\n outline-width: 3px\n}\n\n.disabled\\:f1-bg-tertiary-grey-200:disabled {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity))\n}\n\n.disabled\\:f1-text-tertiary-grey-400:disabled {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity))\n}\n\n.disabled\\:f1-outline-0:disabled {\n outline-width: 0px\n}\n\n@media (min-width: 640px) {\n .tablet\\:f1-static {\n position: static\n }\n\n .tablet\\:f1-mb-0 {\n margin-bottom: 0px\n }\n\n .tablet\\:f1-mb-\\[120px\\] {\n margin-bottom: 120px\n }\n\n .tablet\\:f1-h-auto {\n height: auto\n }\n\n .tablet\\:f1-w-\\[342px\\] {\n width: 342px\n }\n\n .tablet\\:f1-w-\\[345px\\] {\n width: 345px\n }\n\n .tablet\\:f1-w-auto {\n width: auto\n }\n\n .tablet\\:f1-max-w-\\[442px\\] {\n max-width: 442px\n }\n\n .tablet\\:f1-justify-normal {\n justify-content: normal\n }\n\n .tablet\\:f1-px-0 {\n padding-left: 0px;\n padding-right: 0px\n }\n\n .tablet\\:\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important\n }\n\n .tablet\\:\\!f1-pt-\\[49px\\] {\n padding-top: 49px !important\n }\n\n .tablet\\:f1-pb-4xl {\n padding-bottom: 32px\n }\n\n .tablet\\:f1-pt-0 {\n padding-top: 0px\n }\n\n .tablet\\:f1-pt-\\[64px\\] {\n padding-top: 64px\n }\n\n .tablet\\:\\!f1-shadow-none {\n --tw-shadow: 0 0 #0000 !important;\n --tw-shadow-colored: 0 0 #0000 !important;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important\n }\n}","",{version:3,sources:["webpack://./styles/f1-style.css"],names:[],mappings:"AAAA;EACE,wBAAwB;EACxB,wBAAwB;EACxB,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,eAAe;EACf,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,sCAAsC;EACtC,8BAA8B;EAC9B,6BAA6B;EAC7B,4BAA4B;EAC5B,eAAe;EACf,oBAAoB;EACpB,sBAAsB;EACtB,uBAAuB;EACvB,wBAAwB;EACxB,kBAAkB;EAClB,2BAA2B;EAC3B,4BAA4B;EAC5B,sCAAsC;EACtC,kCAAkC;EAClC,2BAA2B;EAC3B,sBAAsB;EACtB,8BAA8B;EAC9B,YAAY;EACZ,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,uBAAuB;EACvB,wBAAwB;EACxB,yBAAyB;EACzB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,qBAAqB;EACrB;AACF;;AAEA;EACE,wBAAwB;EACxB,wBAAwB;EACxB,mBAAmB;EACnB,mBAAmB;EACnB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,eAAe;EACf,aAAa;EACb,aAAa;EACb,kBAAkB;EAClB,sCAAsC;EACtC,8BAA8B;EAC9B,6BAA6B;EAC7B,4BAA4B;EAC5B,eAAe;EACf,oBAAoB;EACpB,sBAAsB;EACtB,uBAAuB;EACvB,wBAAwB;EACxB,kBAAkB;EAClB,2BAA2B;EAC3B,4BAA4B;EAC5B,sCAAsC;EACtC,kCAAkC;EAClC,2BAA2B;EAC3B,sBAAsB;EACtB,8BAA8B;EAC9B,YAAY;EACZ,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,aAAa;EACb,mBAAmB;EACnB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,uBAAuB;EACvB,wBAAwB;EACxB,yBAAyB;EACzB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,qBAAqB;EACrB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,gBAAgB;EAChB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;IACE;EACF;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,wBAAwB;KACrB,qBAAqB;UAChB;AACV;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,uBAAuB;EACvB,mDAAmD;EACnD;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,sCAAsC;EACtC;AACF;;AAEA;EACE,uCAAuC;EACvC;AACF;;AAEA;EACE,2BAA2B;EAC3B;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,iCAAiC;EACjC;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,6BAA6B;EAC7B;AACF;;AAEA;EACE,6BAA6B;EAC7B;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,qBAAqB;EACrB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,gBAAgB;EAChB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,+BAA+B;EAC/B;AACF;;AAEA;EACE,+BAA+B;EAC/B;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE,2BAA2B;EAC3B;AACF;;AAEA;EACE,2BAA2B;EAC3B;AACF;;AAEA;EACE,6EAA6E;EAC7E,iGAAiG;EACjG;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,sBAAsB;EACtB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB;AACF;;AAEA;EACE,oBAAoB;EACpB;AACF;;AAEA;EACE;AACF;;AAEA;EACE;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE,iBAAiB;IACjB;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE;EACF;;EAEA;IACE,iCAAiC;IACjC,yCAAyC;IACzC;EACF;AACF",sourcesContent:["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n\n.f1-pointer-events-none {\n pointer-events: none\n}\n\n.f1-absolute {\n position: absolute\n}\n\n.f1-relative {\n position: relative\n}\n\n.f1-sticky {\n position: sticky\n}\n\n.f1-bottom-0 {\n bottom: 0px\n}\n\n.f1-bottom-\\[-20px\\] {\n bottom: -20px\n}\n\n.f1-bottom-\\[13px\\] {\n bottom: 13px\n}\n\n.f1-left-0 {\n left: 0px\n}\n\n.f1-right-0 {\n right: 0px\n}\n\n.f1-right-2 {\n right: 8px\n}\n\n.f1-right-3 {\n right: 0.75rem\n}\n\n.f1--top-1 {\n top: -0.25rem\n}\n\n.f1-top-0 {\n top: 0px\n}\n\n.f1-top-\\[10px\\] {\n top: 10px\n}\n\n.f1-top-\\[25\\.5\\%\\] {\n top: 25.5%\n}\n\n.f1-z-20 {\n z-index: 20\n}\n\n.f1-z-50 {\n z-index: 50\n}\n\n.f1-m-0 {\n margin: 0px\n}\n\n.f1-mx-8 {\n margin-left: 2rem;\n margin-right: 2rem\n}\n\n.f1-mx-\\[21px\\] {\n margin-left: 21px;\n margin-right: 21px\n}\n\n.f1-mx-auto {\n margin-left: auto;\n margin-right: auto\n}\n\n.f1-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem\n}\n\n.f1-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n\n.\\!f1-mr-0 {\n margin-right: 0px !important\n}\n\n.f1--mt-2 {\n margin-top: -8px\n}\n\n.f1--mt-2\\.5 {\n margin-top: -0.625rem\n}\n\n.f1-mb-0 {\n margin-bottom: 0px\n}\n\n.f1-mb-1 {\n margin-bottom: 0.25rem\n}\n\n.f1-mb-2 {\n margin-bottom: 8px\n}\n\n.f1-mb-3 {\n margin-bottom: 0.75rem\n}\n\n.f1-mb-4 {\n margin-bottom: 1rem\n}\n\n.f1-mb-6 {\n margin-bottom: 1.5rem\n}\n\n.f1-mb-\\[8px\\] {\n margin-bottom: 8px\n}\n\n.f1-ml-3 {\n margin-left: 0.75rem\n}\n\n.f1-mr-1 {\n margin-right: 0.25rem\n}\n\n.f1-mt-0 {\n margin-top: 0px\n}\n\n.f1-mt-1 {\n margin-top: 0.25rem\n}\n\n.f1-mt-2 {\n margin-top: 8px\n}\n\n.f1-mt-4 {\n margin-top: 1rem\n}\n\n.f1-mt-5 {\n margin-top: 1.25rem\n}\n\n.f1-mt-6 {\n margin-top: 1.5rem\n}\n\n.f1-mt-8 {\n margin-top: 2rem\n}\n\n.f1-mt-\\[-4px\\] {\n margin-top: -4px\n}\n\n.f1-mt-\\[32px\\] {\n margin-top: 32px\n}\n\n.f1-box-border {\n box-sizing: border-box\n}\n\n.f1-inline {\n display: inline\n}\n\n.f1-flex {\n display: flex\n}\n\n.f1-inline-flex {\n display: inline-flex\n}\n\n.\\!f1-h-5 {\n height: 1.25rem !important\n}\n\n.\\!f1-h-8 {\n height: 2rem !important\n}\n\n.f1-h-1 {\n height: 0.25rem\n}\n\n.f1-h-1\\.5 {\n height: 6px\n}\n\n.f1-h-10 {\n height: 2.5rem\n}\n\n.f1-h-12 {\n height: 3rem\n}\n\n.f1-h-24 {\n height: 6rem\n}\n\n.f1-h-4 {\n height: 1rem\n}\n\n.f1-h-7 {\n height: 1.75rem\n}\n\n.f1-h-96 {\n height: 24rem\n}\n\n.f1-h-\\[1px\\] {\n height: 1px\n}\n\n.f1-h-\\[48px\\] {\n height: 48px\n}\n\n.f1-h-\\[73px\\] {\n height: 73px\n}\n\n.f1-h-\\[calc\\(100\\%-92px\\)\\] {\n height: calc(100% - 92px)\n}\n\n.f1-h-auto {\n height: auto\n}\n\n.f1-h-full {\n height: 100%\n}\n\n.f1-max-h-64 {\n max-height: 16rem\n}\n\n.f1-max-h-\\[150px\\] {\n max-height: 150px\n}\n\n.f1-max-h-\\[193px\\] {\n max-height: 193px\n}\n\n.f1-min-h-\\[52px\\] {\n min-height: 52px\n}\n\n.\\!f1-w-5 {\n width: 1.25rem !important\n}\n\n.\\!f1-w-8 {\n width: 2rem !important\n}\n\n.\\!f1-w-\\[138px\\] {\n width: 138px !important\n}\n\n.f1-w-10 {\n width: 2.5rem\n}\n\n.f1-w-24 {\n width: 6rem\n}\n\n.f1-w-4 {\n width: 1rem\n}\n\n.f1-w-\\[206\\.5\\%\\] {\n width: 206.5%\n}\n\n.f1-w-\\[210\\.5\\%\\] {\n width: 210.5%\n}\n\n.f1-w-\\[300px\\] {\n width: 300px\n}\n\n.f1-w-\\[342px\\] {\n width: 342px\n}\n\n.f1-w-\\[48\\%\\] {\n width: 48%\n}\n\n.f1-w-\\[50\\%\\] {\n width: 50%\n}\n\n.f1-w-\\[calc\\(100\\%-2rem-4px\\)\\] {\n width: calc(100% - 2rem - 4px)\n}\n\n.f1-w-\\[calc\\(100\\%-48px\\)\\] {\n width: calc(100% - 48px)\n}\n\n.f1-w-auto {\n width: auto\n}\n\n.f1-w-full {\n width: 100%\n}\n\n.f1-min-w-\\[210px\\] {\n min-width: 210px\n}\n\n.f1-max-w-\\[318px\\] {\n max-width: 318px\n}\n\n.f1-flex-initial {\n flex: 0 1 auto\n}\n\n.f1-shrink {\n flex-shrink: 1\n}\n\n.f1-flex-grow {\n flex-grow: 1\n}\n\n.f1-grow {\n flex-grow: 1\n}\n\n.f1-basis-0 {\n flex-basis: 0px\n}\n\n@keyframes f1-spin {\n to {\n transform: rotate(360deg)\n }\n}\n\n.f1-animate-spin {\n animation: f1-spin 1s linear infinite\n}\n\n.f1-cursor-not-allowed {\n cursor: not-allowed\n}\n\n.f1-cursor-pointer {\n cursor: pointer\n}\n\n.f1-cursor-text {\n cursor: text\n}\n\n.f1-resize-none {\n resize: none\n}\n\n.f1-list-none {\n list-style-type: none\n}\n\n.f1-appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none\n}\n\n.f1-flex-col {\n flex-direction: column\n}\n\n.f1-content-center {\n align-content: center\n}\n\n.f1-items-start {\n align-items: flex-start\n}\n\n.f1-items-end {\n align-items: flex-end\n}\n\n.f1-items-center {\n align-items: center\n}\n\n.f1-justify-start {\n justify-content: flex-start\n}\n\n.f1-justify-end {\n justify-content: flex-end\n}\n\n.f1-justify-center {\n justify-content: center\n}\n\n.f1-justify-between {\n justify-content: space-between\n}\n\n.f1-justify-evenly {\n justify-content: space-evenly\n}\n\n.f1-gap-1 {\n gap: 0.25rem\n}\n\n.f1-gap-1\\.5 {\n gap: 6px\n}\n\n.f1-gap-10 {\n gap: 2.5rem\n}\n\n.f1-gap-2 {\n gap: 8px\n}\n\n.f1-gap-2\\.5 {\n gap: 0.625rem\n}\n\n.f1-gap-3 {\n gap: 0.75rem\n}\n\n.f1-gap-4 {\n gap: 1rem\n}\n\n.f1-gap-6 {\n gap: 1.5rem\n}\n\n.f1-gap-\\[12px\\] {\n gap: 12px\n}\n\n.f1-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(8px * var(--tw-space-x-reverse));\n margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)))\n}\n\n.f1-self-stretch {\n align-self: stretch\n}\n\n.f1-overflow-scroll {\n overflow: scroll\n}\n\n.f1-overflow-y-auto {\n overflow-y: auto\n}\n\n.f1-overflow-x-hidden {\n overflow-x: hidden\n}\n\n.\\!f1-rounded-\\[0px\\] {\n border-radius: 0px !important\n}\n\n.f1-rounded-\\[6px\\] {\n border-radius: 6px\n}\n\n.f1-rounded-full {\n border-radius: 9999px\n}\n\n.f1-rounded-lg {\n border-radius: 12px\n}\n\n.f1-rounded-md {\n border-radius: 8px\n}\n\n.f1-rounded-sm {\n border-radius: 4px\n}\n\n.\\!f1-rounded-l-sm {\n border-top-left-radius: 4px !important;\n border-bottom-left-radius: 4px !important\n}\n\n.\\!f1-rounded-r-sm {\n border-top-right-radius: 4px !important;\n border-bottom-right-radius: 4px !important\n}\n\n.f1-rounded-l-sm {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px\n}\n\n.f1-border {\n border-width: 1px\n}\n\n.f1-border-2 {\n border-width: 2px\n}\n\n.f1-border-\\[1px\\] {\n border-width: 1px\n}\n\n.f1-border-\\[3px\\] {\n border-width: 3px\n}\n\n.\\!f1-border-r-\\[0px\\] {\n border-right-width: 0px !important\n}\n\n.f1-border-t {\n border-top-width: 1px\n}\n\n.f1-border-solid {\n border-style: solid\n}\n\n.f1-border-dashed {\n border-style: dashed\n}\n\n.f1-border-none {\n border-style: none\n}\n\n.\\!f1-border-primary-container {\n --tw-border-opacity: 1 !important;\n border-color: rgb(232 240 255 / var(--tw-border-opacity)) !important\n}\n\n.f1-border-primary-container {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-grey-50 {\n --tw-border-opacity: 1;\n border-color: rgb(249 250 251 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(240 82 82 / var(--tw-border-opacity))\n}\n\n.f1-border-tertiary-red-700 {\n --tw-border-opacity: 1;\n border-color: rgb(200 30 30 / var(--tw-border-opacity))\n}\n\n.\\!f1-bg-\\[\\#e8f0ff\\] {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity)) !important\n}\n\n.\\!f1-bg-mono-white {\n --tw-bg-opacity: 1 !important;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important\n}\n\n.f1-bg-\\[\\#E7F0FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-\\[\\#FDF2F2\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(253 242 242 / var(--tw-bg-opacity))\n}\n\n.f1-bg-mono-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(60 124 250 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(43 103 249 / var(--tw-bg-opacity))\n}\n\n.f1-bg-primary-container {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity))\n}\n\n.f1-bg-tertiary-grey-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity))\n}\n\n.f1-fill-primary-600 {\n fill: #3c7cfa\n}\n\n.f1-fill-primary-800 {\n fill: #2b67f9\n}\n\n.f1-fill-tertiary-grey-400 {\n fill: #9ca3af\n}\n\n.f1-fill-tertiary-red-600 {\n fill: #e02424\n}\n\n.f1-p-0 {\n padding: 0px\n}\n\n.f1-p-1 {\n padding: 0.25rem\n}\n\n.f1-p-4 {\n padding: 1rem\n}\n\n.f1-p-6 {\n padding: 1.5rem\n}\n\n.f1-px-3xl {\n padding-left: 24px;\n padding-right: 24px\n}\n\n.f1-px-4 {\n padding-left: 1rem;\n padding-right: 1rem\n}\n\n.f1-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem\n}\n\n.f1-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n\n.f1-px-\\[16px\\] {\n padding-left: 16px;\n padding-right: 16px\n}\n\n.f1-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem\n}\n\n.f1-py-2 {\n padding-top: 8px;\n padding-bottom: 8px\n}\n\n.f1-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem\n}\n\n.f1-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n\n.f1-py-\\[14px\\] {\n padding-top: 14px;\n padding-bottom: 14px\n}\n\n.f1-py-\\[24px\\] {\n padding-top: 24px;\n padding-bottom: 24px\n}\n\n.f1-py-\\[49px\\] {\n padding-top: 49px;\n padding-bottom: 49px\n}\n\n.\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important\n}\n\n.f1-pl-4 {\n padding-left: 1rem\n}\n\n.f1-pr-10 {\n padding-right: 2.5rem\n}\n\n.f1-pr-3 {\n padding-right: 0.75rem\n}\n\n.f1-pt-1 {\n padding-top: 0.25rem\n}\n\n.f1-text-left {\n text-align: left\n}\n\n.f1-text-center {\n text-align: center\n}\n\n.f1-text-2xl {\n font-size: 1.5rem\n}\n\n.f1-text-3xl {\n font-size: 1.875rem\n}\n\n.f1-text-\\[14px\\] {\n font-size: 14px\n}\n\n.f1-text-\\[16px\\] {\n font-size: 16px\n}\n\n.f1-text-\\[21px\\] {\n font-size: 21px\n}\n\n.f1-text-\\[24px\\] {\n font-size: 24px\n}\n\n.f1-text-\\[30px\\] {\n font-size: 30px\n}\n\n.f1-text-\\[32px\\] {\n font-size: 32px\n}\n\n.f1-text-lg {\n font-size: 1.125rem\n}\n\n.f1-text-md {\n font-size: 1rem\n}\n\n.f1-text-sm {\n font-size: 0.875rem\n}\n\n.f1-text-xs {\n font-size: 0.75rem\n}\n\n.f1-font-\\[400\\] {\n font-weight: 400\n}\n\n.f1-font-bold {\n font-weight: 700\n}\n\n.f1-font-medium {\n font-weight: 500\n}\n\n.f1-font-normal {\n font-weight: 400\n}\n\n.f1-font-semibold {\n font-weight: 600\n}\n\n.f1-leading-6 {\n line-height: 1.5rem\n}\n\n.f1-leading-9 {\n line-height: 2.25rem\n}\n\n.f1-leading-\\[21px\\] {\n line-height: 21px\n}\n\n.f1-leading-\\[32px\\] {\n line-height: 32px\n}\n\n.f1-leading-\\[42px\\] {\n line-height: 42px\n}\n\n.f1-leading-none {\n line-height: 1\n}\n\n.f1-leading-normal {\n line-height: 1.5\n}\n\n.f1-leading-relaxed {\n line-height: 1.625\n}\n\n.f1-leading-tight {\n line-height: 1.25\n}\n\n.\\!f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1 !important;\n color: rgb(107 114 128 / var(--tw-text-opacity)) !important\n}\n\n.\\!f1-text-tertiary-red-600 {\n --tw-text-opacity: 1 !important;\n color: rgb(224 36 36 / var(--tw-text-opacity)) !important\n}\n\n.f1-text-\\[\\#1F2A37\\] {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity))\n}\n\n.f1-text-\\[\\#306ef9\\] {\n --tw-text-opacity: 1;\n color: rgb(48 110 249 / var(--tw-text-opacity))\n}\n\n.f1-text-\\[\\#374151\\] {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity))\n}\n\n.f1-text-mono-70 {\n --tw-text-opacity: 1;\n color: rgb(108 117 125 / var(--tw-text-opacity))\n}\n\n.f1-text-mono-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n\n.f1-text-primary-700 {\n --tw-text-opacity: 1;\n color: rgb(51 113 250 / var(--tw-text-opacity))\n}\n\n.f1-text-primary-800 {\n --tw-text-opacity: 1;\n color: rgb(43 103 249 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-grey-800 {\n --tw-text-opacity: 1;\n color: rgb(31 42 55 / var(--tw-text-opacity))\n}\n\n.f1-text-tertiary-red-600 {\n --tw-text-opacity: 1;\n color: rgb(224 36 36 / var(--tw-text-opacity))\n}\n\n.f1-placeholder-tertiary-red-600::-moz-placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity))\n}\n\n.f1-placeholder-tertiary-red-600::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(224 36 36 / var(--tw-placeholder-opacity))\n}\n\n.f1-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.f1-outline {\n outline-style: solid\n}\n\n.f1-outline-0 {\n outline-width: 0px\n}\n\n.f1-outline-primary-200 {\n outline-color: #a1c2fd\n}\n\n.f1-outline-tertiary-red-500 {\n outline-color: #f05252\n}\n\n.hover\\:f1-border-primary-container:hover {\n --tw-border-opacity: 1;\n border-color: rgb(232 240 255 / var(--tw-border-opacity))\n}\n\n.hover\\:f1-bg-primary-900:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-bg-primary-container:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-bg-tertiary-grey-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity))\n}\n\n.hover\\:f1-text-tertiary-grey-600:hover {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity))\n}\n\n.focus\\:f1-border-\\[3px\\]:focus {\n border-width: 3px\n}\n\n.focus\\:f1-bg-\\[\\#E7F0FF\\]:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(231 240 255 / var(--tw-bg-opacity))\n}\n\n.focus\\:f1-bg-primary-50:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(232 240 255 / var(--tw-bg-opacity))\n}\n\n.focus\\:f1-outline-\\[0\\.1px\\]:focus {\n outline-width: 0.1px\n}\n\n.focus\\:f1-outline-\\[\\#2B67F9\\]:focus {\n outline-color: #2B67F9\n}\n\n.focus\\:f1-outline-tertiary-red-500:focus {\n outline-color: #f05252\n}\n\n.focus-visible\\:f1-bg-primary-900:focus-visible {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.focus-visible\\:f1-outline-3:focus-visible {\n outline-width: 3px\n}\n\n.active\\:f1-bg-primary-900:active {\n --tw-bg-opacity: 1;\n background-color: rgb(29 84 248 / var(--tw-bg-opacity))\n}\n\n.active\\:f1-outline-3:active {\n outline-width: 3px\n}\n\n.disabled\\:f1-bg-tertiary-grey-200:disabled {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity))\n}\n\n.disabled\\:f1-text-tertiary-grey-400:disabled {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity))\n}\n\n.disabled\\:f1-outline-0:disabled {\n outline-width: 0px\n}\n\n@media (min-width: 640px) {\n .tablet\\:f1-static {\n position: static\n }\n\n .tablet\\:f1-mb-0 {\n margin-bottom: 0px\n }\n\n .tablet\\:f1-mb-\\[120px\\] {\n margin-bottom: 120px\n }\n\n .tablet\\:f1-h-auto {\n height: auto\n }\n\n .tablet\\:f1-w-\\[342px\\] {\n width: 342px\n }\n\n .tablet\\:f1-w-\\[345px\\] {\n width: 345px\n }\n\n .tablet\\:f1-w-auto {\n width: auto\n }\n\n .tablet\\:f1-max-w-\\[442px\\] {\n max-width: 442px\n }\n\n .tablet\\:f1-justify-normal {\n justify-content: normal\n }\n\n .tablet\\:f1-px-0 {\n padding-left: 0px;\n padding-right: 0px\n }\n\n .tablet\\:\\!f1-pt-\\[24px\\] {\n padding-top: 24px !important\n }\n\n .tablet\\:\\!f1-pt-\\[49px\\] {\n padding-top: 49px !important\n }\n\n .tablet\\:f1-pb-4xl {\n padding-bottom: 32px\n }\n\n .tablet\\:f1-pt-0 {\n padding-top: 0px\n }\n\n .tablet\\:f1-pt-\\[64px\\] {\n padding-top: 64px\n }\n\n .tablet\\:\\!f1-shadow-none {\n --tw-shadow: 0 0 #0000 !important;\n --tw-shadow-colored: 0 0 #0000 !important;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important\n }\n}"],sourceRoot:""}]);const o=l},2896:(e,n,t)=>{t.d(n,{A:()=>N});var i=t(1354),a=t.n(i),r=t(6314),l=t.n(r),o=t(4417),s=t.n(o),d=new URL(t(8199),t.b),u=new URL(t(5079),t.b),c=new URL(t(7047),t.b),f=new URL(t(2375),t.b),m=new URL(t(71),t.b),p=new URL(t(5303),t.b),A=new URL(t(9675),t.b),v=new URL(t(675),t.b),g=l()(a()),b=s()(d),y=s()(u),h=s()(c),x=s()(f),E=s()(m),C=s()(p),w=s()(A),j=s()(v);g.push([e.id,`.form.react.ff-react-form {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form .f1-font-proxima-nova {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form :where(input, select) {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${b}) format('woff2'),\n url(${y}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 700;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${h}) format('woff2'),\n url(${x}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 600;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${E}) format('woff2'),\n url(${C}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 500;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url(${w}) format('woff2'),\n url(${j}) format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 400;\n}\n`,"",{version:3,sources:["webpack://./styles/fonts/fonts.css"],names:[],mappings:"AAAA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,qCAAqC;EACrC,kBAAkB;AACpB;;AAEA;EACE,2BAA2B;EAC3B;;0DAEoE;EACpE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAE4E;EAC5E,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAEwE;EACxE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B;;0DAE0E;EAC1E,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;AAClB",sourcesContent:[".form.react.ff-react-form {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form .f1-font-proxima-nova {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n.form.react.ff-react-form :where(input, select) {\n font-family: proxima-nova, sans-serif;\n font-style: normal;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaBold/bold-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaBold/bold-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 700;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaSemibold/semibold-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaSemibold/semibold-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 600;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaMedium/medium-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaMedium/medium-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 500;\n}\n\n@font-face {\n font-family: 'proxima-nova';\n src:\n url('./ProximaNova/ProximaNovaRegular/regular-font.woff2') format('woff2'),\n url('./ProximaNova/ProximaNovaRegular/regular-font.woff') format('woff');\n font-display: auto;\n font-style: normal;\n font-weight: 400;\n}\n"],sourceRoot:""}]);const N=g},2967:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(1354),a=t.n(i),r=t(6314),l=t.n(r)()(a());l.push([e.id,".f1-leading-12 {\n line-height: 2.625rem;\n}\n\n.f1-h-26 {\n height: 100px;\n}\n\n.f1-w-26 {\n width: 100px;\n}\n\n.f1-shadow-top {\n box-shadow:\n 0px -2px 4px -2px #0000000d,\n 0px -4px 6px -1px #0000001a;\n /* 0px -2px 4px -2px rgba(0, 0, 0, 0.05),\n 0px -10px 7px -7px rgba(0, 0, 0, 0.1); */\n}\n\n.f1-max-w-65 {\n max-width: 20rem;\n}\n\n.f1-link-text a {\n color: #374151;\n}\n\n.hide-spinner input::-webkit-outer-spin-button,\n.hide-spinner input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.hide-spinner input[type='number'] {\n -moz-appearance: textfield;\n}\n","",{version:3,sources:["webpack://./styles/styles.css"],names:[],mappings:"AAAA;EACE,qBAAqB;AACvB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;AACd;;AAEA;EACE;;+BAE6B;EAC7B;4CAC0C;AAC5C;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,wBAAwB;EACxB,SAAS;AACX;;AAEA,YAAY;AACZ;EACE,0BAA0B;AAC5B",sourcesContent:[".f1-leading-12 {\n line-height: 2.625rem;\n}\n\n.f1-h-26 {\n height: 100px;\n}\n\n.f1-w-26 {\n width: 100px;\n}\n\n.f1-shadow-top {\n box-shadow:\n 0px -2px 4px -2px #0000000d,\n 0px -4px 6px -1px #0000001a;\n /* 0px -2px 4px -2px rgba(0, 0, 0, 0.05),\n 0px -10px 7px -7px rgba(0, 0, 0, 0.1); */\n}\n\n.f1-max-w-65 {\n max-width: 20rem;\n}\n\n.f1-link-text a {\n color: #374151;\n}\n\n.hide-spinner input::-webkit-outer-spin-button,\n.hide-spinner input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.hide-spinner input[type='number'] {\n -moz-appearance: textfield;\n}\n"],sourceRoot:""}]);const o=l},2839:(e,n,t)=>{t.d(n,{Tm:()=>a,iH:()=>l,j2:()=>r,mn:()=>o});var i=t(4124);function a(e){const n=i.Xr[e];return n?n.alpha3:null}function r(e){const n=i.Xr[e];return n?n.alpha2:null}function l(e){const n=i.Xr[e];return n?n.name:null}const o=Object.keys(i.Xr).filter((e=>3===e.length)).map((e=>({value:e,label:l(e)})))},688:(e,n,t)=>{t.r(n),t.d(n,{initialise:()=>ua});var i=t(4848),a=t(5338),r=t(591),l=t(4334),o=t(5473),s=t(1468),d=t(6540),u=t(9879);const c=t.p+"10183d99573bcd186235.svg",f=t.p+"71b71503b4f733079331.svg",m=t.p+"8f10666ff21ef0238370.svg",p=t.p+"f4a5163b8f91c2c66892.svg",A=t.p+"9dee3446081d7d47623b.svg",v=t.p+"6558f8e71743e073c18b.svg",g=t.p+"0cd8e74f8a68e0b1ae14.svg",b=t.p+"f670207e1feb7ec4f6d4.svg",y=t.p+"e84075ff43e508e4fbd5.svg",h=({className:e})=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,i.jsx)("path",{d:"M6.5 20C4.98 20 3.68333 19.4767 2.61 18.43C1.53667 17.3767 1 16.0933 1 14.58C1 13.28 1.39 12.12 2.17 11.1C2.95667 10.08 3.98333 9.43 5.25 9.15C5.67 7.61667 6.50333 6.37667 7.75 5.43C9.00333 4.47667 10.42 4 12 4C13.9533 4 15.6067 4.68 16.96 6.04C18.32 7.39333 19 9.04667 19 11C20.1533 11.1333 21.1067 11.6333 21.86 12.5C22.62 13.3533 23 14.3533 23 15.5C23 16.7533 22.5633 17.8167 21.69 18.69C20.8167 19.5633 19.7533 20 18.5 20H13C12.4533 20 11.9833 19.8033 11.59 19.41C11.1967 19.0233 11 18.5533 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5C19.2 18 19.79 17.7567 20.27 17.27C20.7567 16.79 21 16.2 21 15.5C21 14.8 20.7567 14.21 20.27 13.73C19.79 13.2433 19.2 13 18.5 13H17V11C17 9.62 16.5133 8.44 15.54 7.46C14.5667 6.48667 13.3867 6 12 6C10.62 6 9.44 6.48667 8.46 7.46C7.48667 8.44 7 9.62 7 11H6.5C5.53333 11 4.71 11.3433 4.03 12.03C3.34333 12.71 3 13.5333 3 14.5C3 15.4667 3.34333 16.3 4.03 17C4.71 17.6667 5.53333 18 6.5 18H9V20"})}),x=t.p+"9d49ce231cb895b6ef29.svg",E=t.p+"4ac349963383ebda508b.svg",C=t.p+"d563d85c23bcbd268d5e.svg",w=t.p+"c0dede047f9a2b7c1309.svg",j=t.p+"42caa2dd6b4f0de68157.svg",N=t.p+"8a06059b84b1aa2bf661.svg",O=t.p+"3d245ccf2dde73ceca07.svg",B=t.p+"36ddfb506829cb8cde72.svg",T=t.p+"dd199fa4125e4ebef289.svg",F=t.p+"f22fe25046b4ca4a969a.svg",I=t.p+"df83da88c151bcf97231.svg",S=t.p+"32cb4eea6ca1acb9f788.svg",L=t.p+"ac457c4800183645b1ad.svg",k=t.p+"ef3c33f0d919896ee0bf.svg",D=t.p+"0c9574c81d7d87e9ccd3.svg",P=t.p+"d70a547a409868c43a95.svg",R=t.p+"dc45d5d9fb4b8959e156.svg",M=t.p+"80929602ea97f94dc18c.svg",_=t.p+"a96ec21d243a49916487.svg",V=t.p+"6375eb14534238c06a4b.svg",q=t.p+"fdb0a109281e6c12eff6.svg",U=t.p+"1f76ff5e84787152adc5.svg",$=t.p+"34fe2370aa5e73787795.svg",z=t.p+"4db0db393dfe2f9f90c1.svg",Y=t.p+"1df3f35eac93c61986b1.svg",H=t.p+"080b774e0f4f9c679e85.svg",W=t.p+"c16900512bb2f899c7eb.svg",G=t.p+"3443b53b9b1a00c340f7.svg",Z=t.p+"3a660ff8435efa515e98.svg",K=t.p+"d9ed930ae3bb52f2abe1.svg",J=t.p+"8053f51266aa9d864691.svg",X=t.p+"67cbc8178ea76ef0d8b4.svg",Q=t.p+"396cc7cc5e61acfa8fc8.svg",ee=t.p+"d15d58eb544d245877e2.svg",ne=t.p+"ce5b46abe62641bddb20.svg",te=t.p+"fc7c8869af28cb1b9c21.svg",ie=t.p+"24c67c1821feba22f3f7.svg",ae=t.p+"aff615d38d2fce3f82b2.svg",re=t.p+"e85b9f93aac09995bad2.svg",le=t.p+"4ff338b86cdba19934cf.svg",oe=t.p+"bc42b55176ae1021b9e4.svg",se=t.p+"e7ac03e5736bea4d6346.svg",de=t.p+"5c23763467ce9cfda119.svg",ue=t.p+"c7a05c7d7d1f9347ae1b.svg",ce=t.p+"4ee01199f6f6b7e6fb24.svg",fe=t.p+"463e54e898297e314139.svg",me=t.p+"f75020be237d9de68d86.svg",pe=t.p+"dddc2581e578cfb3b997.svg",Ae=t.p+"2546128ef2e2d56276b7.svg",ve=({className:e})=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,i.jsx)("path",{d:"M14.06 9L15 9.94L5.92 19H5V18.08L14.06 9ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z"})}),ge=t.p+"2451ce2859277292a2a3.svg",be=t.p+"2f32844e02839dd608a4.svg",ye={loader:Q,checkbox:m,rightArrowIcon:t.p+"3b687e48c6bb765ed976.svg",driverLicenseIcon:W,passportIcon:Ae,medicalIcon:ie,driversLicenseBanner:G,passportBanner:pe,mediCareBanner:oe,magnify:ne,magnifyError:te,alertCircleOutline:c,close:b,chevronDown:p,chevronDownError:A,closeError:y,nzDriverLicence:se,nzSampleCard:de,nzVersionNumber:ue,actLicenseNumber:E,actIdDetails:C,nswSampleCard:w,nswLicenseNumber:j,nswIdDetails:N,ntSampleCard:O,ntLicenseNumber:B,ntIdDetails:T,nzIdDetails:I,nzLicenseNumber:F,qldSampleCard:S,qldLicenseNumber:L,qldIdDetails:k,saSampleCard:D,saLicenseNumber:P,saIdDetails:R,tasSampleCard:M,tasLicenseNumber:_,tasIdDetails:V,vicSampleCard:q,vicLicenseNumber:U,vicIdDetails:$,waSampleCard:z,waLicenseNumber:Y,waIdDetails:H,blueMedicareCard:ae,greenMedicareCard:re,yellowMedicareCard:le,backArrow:f,actSampleCard:x,ausPassport:ce,nzPassport:me,chevronUp:v,chevronUpError:g,editIcon:Z,failedIcon:K,pendingIcon:ge,retryIcon:be,successIcon:t.p+"329d07fd3f40d3967c81.svg",loadingIcon:ee,internationPassport:fe,fileDocumentCheckOutline:X,fileDocumentAlertOutline:J},he={name:"PASSPORT",mode:"individual",title:{label:"Get your passport ready"},descriptions:[{label:"Please grant access to your camera so we can take a photo of your passport. Make sure you are in a well-lit room and the details on your ID are clear."}],instructions:{content:[{image:ye.passportBanner}]},cta:{label:"Ready"}},xe={name:"NATIONAL_HEALTH_ID",mode:"individual",title:{label:"Get your Medicare card ready"},descriptions:[{label:"Please grant access to your camera so we can take a photo of your Medicare card. Make sure you are in a well-lit room and the details on your ID are clear."}],instructions:{content:[{image:ye.mediCareBanner}]},cta:{icon:"",label:"Ready"}};var Ee,Ce,we,je=t(4164);!function(e){e.wrapper="ff-wrapper",e.description="ff-description",e.instructions="ff-instructions",e.documents="ff-documents",e.checkbox="ff-checkbox",e.label="ff-label",e.title="ff-title",e.subtitle="ff-subtitle",e.button="ff-button",e.cancelButton="ff-cancel-button",e.checkboxItem="ff-checkbox-item",e.descriptionItem="ff-description-item",e.instructionItem="ff-instruction-item",e.documentItem="ff-document-item",e.font="font",e.formWrapper="ff-form-wrapper",e.formField="ff-form-field",e.progressWrapper="ff-progress-wrapper",e.progressItem="ff-progress-item",e.loading="ff-loading"}(Ee||(Ee={})),function(e){e.DRIVERS_LICENCE="DRIVERS_LICENCE",e.PASSPORT="PASSPORT",e.NATIONAL_HEALTH_ID="NATIONAL_HEALTH_ID"}(Ce||(Ce={})),function(e){e.SUCCESS="SUCCESS",e.FAIL="FAIL",e.PENDING="PENDING",e.PARTIAL="PARTIAL",e.UPLOAD_SUCCESS="UPLOAD_SUCCESS",e.UPLOAD_FAIL="UPLOAD_FAIL"}(we||(we={})),Object.values(Ce);const Ne=({content:e,style:n,onChange:t,testid:a={container:"",input:"",inputWrapper:"",label:""}})=>(0,i.jsx)("div",{className:(0,je.A)("f1-mt-5",Ee.checkbox),style:null==n?void 0:n[Ee.checkbox],"data-testid":a.container,children:null==e?void 0:e.map(((e,n)=>{var r;return(0,i.jsxs)("div",{className:(0,je.A)("f1-flex",Ee.checkboxItem),"data-testid":a.inputWrapper,style:null===(r=null==e?void 0:e.style)||void 0===r?void 0:r[Ee.checkboxItem],children:[(0,i.jsx)("input",{className:(0,je.A)("!f1-mr-0","f1-rounded-sm","!f1-w-5","!f1-h-5"),id:`frankie-checkbox-id-${n}`,type:"checkbox",onChange:n=>{t&&t({item:e,isSelected:n.target.checked})},"data-testid":a.input}),(0,i.jsx)("label",{htmlFor:`frankie-checkbox-id-${n}`,className:(0,je.A)("f1-font-normal","f1-text-md","f1-leading-6","f1-text-tertiary-grey-700","f1-ml-3"),"data-testid":a.label,children:e.label})]},`f1-checkbox-${n}`)}))});var Oe=t(2838),Be=t.n(Oe);const Te=({descriptions:e,testId:n})=>(0,i.jsx)(i.Fragment,{children:null==e?void 0:e.map(((e,t)=>{var a,r;return(0,i.jsx)("div",{"data-testid":null==n?void 0:n.container,className:(0,je.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text",Ee.description),style:null===(a=null==e?void 0:e.style)||void 0===a?void 0:a[Ee.description],dangerouslySetInnerHTML:{__html:Be().sanitize(null!==(r=null==e?void 0:e.label)&&void 0!==r?r:"",{sanitize:!0})}},`f1-description-${t}`)}))}),Fe=({label:e,style:n,className:t,testid:a={header:"",mockImg:null},onBack:r})=>{var l;return(0,i.jsxs)("h1",{className:(0,je.A)("f1-text-2xl","f1-leading-9","f1-text-tertiary-grey-800","f1-mt-0",t,Ee.title),style:null==n?void 0:n[Ee.title],"data-testid":null==a?void 0:a.header,children:[r&&(0,i.jsx)("div",{className:(0,je.A)("f1-text-sm","f1-text-tertiary-grey-500"),children:(0,i.jsxs)("span",{className:(0,je.A)("f1-cursor-pointer","f1-flex","f1-gap-2","f1-leading-[21px]","f1-font-normal"),onClick:r,children:[(0,i.jsx)("img",{src:null!==(l=null==a?void 0:a.mockImg)&&void 0!==l?l:ye.backArrow,alt:"back"})," Back"]})}),(0,i.jsx)("div",{className:(0,je.A)("f1-font-bold"),children:e})]})};const Ie=e=>{var n,{className:t,disabled:a}=e,r=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["className","disabled"]);return(0,i.jsx)("button",Object.assign({disabled:a,className:(0,je.A)("f1-flex","f1-flex-initial","f1-font-semibold","f1-font-proxima-nova","f1-items-center","f1-justify-center","f1-border-none","f1-outline","f1-outline-0","focus-visible:f1-outline-3","active:f1-outline-3","disabled:f1-text-tertiary-grey-400","disabled:f1-outline-0","f1-h-12","f1-w-full","f1-text-md","f1-space-x-2","f1-px-5","f1-py-3","f1-rounded-full","f1-text-mono-white","f1-bg-primary-800","hover:f1-bg-primary-900","focus-visible:f1-bg-primary-900","active:f1-bg-primary-900","disabled:f1-bg-tertiary-grey-200","f1-outline-primary-200",t,a?"f1-cursor-not-allowed":"f1-cursor-pointer")},r,{"data-testid":null===(n=null==r?void 0:r.testid)||void 0===n?void 0:n.button}))};const Se=e=>{var{className:n,disabled:t=!1}=e,a=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["className","disabled"]);return(0,i.jsx)(Ie,Object.assign({className:n,disabled:t},a))};const Le=e=>{var n,t,a,r,l,o,s,d,u,c,f,m,p,A,v,g,b,y,{className:h=Ee.button,disabled:x=!1,label:E="",icon:C=null,onClick:w,visible:j=!0,testid:N={container:"",preButton:""},buttonClass:O=""}=e,B=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["className","disabled","label","icon","onClick","visible","testid","buttonClass"]);return j?(0,i.jsxs)("div",{"data-testid":N.container,className:(0,je.A)("f1-left-0","f1-right-0","f1-bottom-0","f1-p-6","tablet:f1-pt-0","tablet:f1-mb-[120px]","f1-shadow-top","tablet:!f1-shadow-none","f1-flex","f1-justify-center","f1-sticky","tablet:f1-static","f1-bg-mono-white","f1-z-20","f1-gap-4",O),children:[(null===(n=null==B?void 0:B.editable)||void 0===n?void 0:n.pre)&&(0,i.jsxs)(Se,{disabled:null===(a=null===(t=null==B?void 0:B.editable)||void 0===t?void 0:t.pre)||void 0===a?void 0:a.disabled,onClick:null===(l=null===(r=null==B?void 0:B.editable)||void 0===r?void 0:r.pre)||void 0===l?void 0:l.onClick,"data-testid":N.preButton,className:(0,je.A)("f1-w-full","tablet: "+((null===(o=null==B?void 0:B.editable)||void 0===o?void 0:o.pre)?"f1-w-[50%]":"f1-min-w-[210px]"),"f1-h-auto","!f1-bg-mono-white","!f1-text-tertiary-grey-500",Ee.cancelButton),style:Object.assign({border:"1px solid #E5E5E5"},(null==B?void 0:B.style)?B.style:{}),children:[null===(d=null===(s=null==B?void 0:B.editable)||void 0===s?void 0:s.pre)||void 0===d?void 0:d.icon,null===(c=null===(u=null==B?void 0:B.editable)||void 0===u?void 0:u.pre)||void 0===c?void 0:c.label]}),(0,i.jsxs)(Se,{disabled:x,onClick:w,className:(0,je.A)("f1-w-full",{"tablet:f1-w-auto":!(null===(f=null==B?void 0:B.editable)||void 0===f?void 0:f.post)},"tablet: "+((null===(m=null==B?void 0:B.editable)||void 0===m?void 0:m.post)?"f1-w-[50%]":"f1-min-w-[210px]"),"f1-h-auto",h),style:null==B?void 0:B.style,children:[null!==(v=null===(A=null===(p=null==B?void 0:B.editable)||void 0===p?void 0:p.post)||void 0===A?void 0:A.icon)&&void 0!==v?v:C,null!==(y=null===(b=null===(g=null==B?void 0:B.editable)||void 0===g?void 0:g.post)||void 0===b?void 0:b.label)&&void 0!==y?y:E]})]}):null},ke=({disabled:e=!1,renderScreen:n,onSubmit:t,ctaInfo:a,formWrapperClass:r,inputButtonClass:l,inputClass:o,hideCTA:u=!1,buttonConfig:c})=>{var f,m,p,A;const{pageConfigs:v}=(0,s.d4)(Oi),[g,b]=(0,d.useState)(hi[v.currentModule]);(0,d.useEffect)((()=>{b(hi[v.currentModule])}),[v]);const y=a||v[v.currentModule];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,je.A)("f1-py-[49px]","f1-px-3xl","tablet:f1-px-0","tablet:f1-pt-[64px]","tablet:f1-pb-4xl",o,r),children:n({onValidate:e=>{b((n=>Object.assign(Object.assign({},n),{disabled:!e})))}})}),(0,i.jsx)(Le,Object.assign({icon:null===(f=null==y?void 0:y.cta)||void 0===f?void 0:f.icon,visible:(null==y?void 0:y.cta)&&!u,label:null===(m=null==y?void 0:y.cta)||void 0===m?void 0:m.label,disabled:e||(null==g?void 0:g.disabled),className:`${Ee.button} ${l}`,onClick:()=>{t&&t()}},c,{style:null===(A=null===(p=null==y?void 0:y.cta)||void 0===p?void 0:p.style)||void 0===A?void 0:A[Ee.button]}))]})};var De=t(3069);const Pe={name:"DRIVERS_LICENCE",mode:"individual",title:{label:"Get your driver’s licence ready."},descriptions:[{label:"We need to collect some personal information to verify your identity. It’s important you enter your details as accurately as possible."}],instructions:{content:[{image:ye.driversLicenseBanner}]},cta:{icon:"",label:"Ready"}},Re=({content:e,label:n,style:t,testid:a={container:"",label:"",contentWrapper:"",mockImg:null}})=>(0,i.jsxs)("div",{className:(0,je.A)("f1-text-tertiary-grey-700","f1-mt-[32px]",Ee.instructions),style:null==t?void 0:t[Ee.instructions],"data-testid":a.container,children:[(0,i.jsx)("p",{className:(0,je.A)("f1-font-semibold","f1-text-md","f1-leading-6","f1-mb-4","f1-text-tertiary-grey-700"),"data-testid":a.label,children:n}),null==e?void 0:e.map(((e,n)=>{var t,r,l,o;return(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-items-start","f1-mb-4",!(null==e?void 0:e.icon)&&"f1-justify-center",Ee.instructionItem),style:null===(t=null==e?void 0:e.style)||void 0===t?void 0:t[Ee.instructionItem],"data-testid":a.contentWrapper,children:[(null==e?void 0:e.icon)&&(0,i.jsx)("img",{className:(0,je.A)("f1-pr-3"),src:null!==(r=a.mockImg)&&void 0!==r?r:null==e?void 0:e.icon,alt:null==e?void 0:e.label}),(null==e?void 0:e.label)&&(0,i.jsx)("div",{className:(0,je.A)("f1-font-normal","f1-text-md","f1-leading-6","f1-text-tertiary-grey-800","f1-text-left","f1-link-text"),dangerouslySetInnerHTML:{__html:Be().sanitize(null!==(l=null==e?void 0:e.label)&&void 0!==l?l:"",{sanitize:!0})}}),(null==e?void 0:e.image)&&(0,i.jsx)("img",{src:null!==(o=a.mockImg)&&void 0!==o?o:e.image,alt:`instruction-image-${n}`})]},`instructions-list-${n}`)}))]}),Me={[Ce.DRIVERS_LICENCE]:Pe,[Ce.PASSPORT]:he,[Ce.NATIONAL_HEALTH_ID]:xe},_e=({id:e,onSubmit:n,testid:t={mockImg:null}})=>{const a=Me[Ce[e]];return(0,i.jsx)(ke,{renderScreen:()=>{var e,n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:null===(e=null==a?void 0:a.title)||void 0===e?void 0:e.label,style:null===(n=null==a?void 0:a.title)||void 0===n?void 0:n.style,testid:{mockImg:t.mockImg}}),(0,i.jsx)(Te,{descriptions:null==a?void 0:a.descriptions}),(0,i.jsx)(Re,Object.assign({},null==a?void 0:a.instructions,{testid:{mockImg:t.mockImg}}))]})},ctaInfo:a,onSubmit:n})},Ve=({content:e,subtitle:n,onSelect:t,style:a,testid:r={wrapper:"",mockImg:null}})=>{var l,o,s;const u=(0,d.useCallback)(((e,n)=>{var a,l,o,s;return(0,i.jsxs)("div",{"data-testid":`${r.wrapper}-${n}`,className:(0,je.A)("f1-flex","f1-justify-between","f1-items-center","f1-px-4","f1-h-[73px]","f1-cursor-pointer","f1-rounded-[6px]","f1-border-solid","f1-border-[1px]","f1-text-tertiary-grey-700","hover:f1-bg-tertiary-grey-100","f1-border-tertiary-grey-200","focus:f1-bg-[#E7F0FF]","focus:f1-border-[3px]",Ee.documentItem,(null==e?void 0:e.focus)&&"f1-border-[3px] f1-bg-[#E7F0FF]"),style:null===(a=null==e?void 0:e.style)||void 0===a?void 0:a[Ee.documentItem],tabIndex:0,onClick:()=>t(e),children:[(0,i.jsxs)("div",{className:(0,je.A)("f1-w-auto","f1-flex","f1-justify-evenly","f1-items-center","f1-h-full","f1-gap-2"),children:[(null==e?void 0:e.icon)&&(0,i.jsx)("img",{src:null!==(l=r.mockImg)&&void 0!==l?l:null==e?void 0:e.icon,alt:"instruction icon"}),(0,i.jsxs)("div",{className:(0,je.A)("f1-h-full","f1-flex","f1-flex-col","f1-justify-center","f1-gap-1"),children:[(0,i.jsx)("h5",{className:(0,je.A)("f1-text-md","f1-m-0","f1-p-0","f1-text-tertiary-grey-700"),children:e.label}),(null==e?void 0:e.subtitle)&&(0,i.jsx)("p",{className:(0,je.A)("f1-font-normal","f1-text-xs","f1-m-0","f1-p-0","f1-text-tertiary-grey-500","hover:f1-text-tertiary-grey-600"),children:null==e?void 0:e.subtitle})]})]}),(0,i.jsx)("div",{className:(0,je.A)("my-auto"),children:(0,i.jsx)("img",{src:null!==(s=null!==(o=r.mockImg)&&void 0!==o?o:null==e?void 0:e.postIcon)&&void 0!==s?s:ye.rightArrowIcon})})]},`instructions-list-${n}`)}),[e]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-gap-6","f1-flex-col","f1-justify-between","f1-my-6",Ee.documents),style:null==a?void 0:a[Ee.documents],children:null===(l=null==e?void 0:e.filter((e=>!1!==(null==e?void 0:e.visible))))||void 0===l?void 0:l.map(u)}),(null==n?void 0:n.label)&&(0,i.jsx)("p",{className:(0,je.A)("f1-text-sm","f1-text-tertiary-grey-500",Ee.subtitle),style:null===(o=null==n?void 0:n.style)||void 0===o?void 0:o[Ee.subtitle],dangerouslySetInnerHTML:{__html:Be().sanitize(null!==(s=null==n?void 0:n.label)&&void 0!==s?s:"",{sanitize:!0})}})]})},qe={additionInfo:{label:"Additional ID",descriptions:[{label:"We need an additional ID verify your identity."}]}},Ue=["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth","eleventh","twelfth","thirteenth","fourteenth","fifteenth","sixteenth","seventeenth","eighteenth","nineteenth","twentieth","twenty-first","twenty-second","twenty-third","twenty-fourth","twenty-fifth","twenty-sixth","twenty-seventh","twenty-eighth","twenty-ninth","thirtieth","thirty-first","thirty-second","thirty-third","thirty-fourth","thirty-fifth","thirty-sixth","thirty-seventh","thirty-eighth","thirty-ninth","fortieth","forty-first","forty-second","forty-third","forty-fourth","forty-fifth","forty-sixth","forty-seventh","forty-eighth","forty-ninth","fiftieth","fifty-first","fifty-second","fifty-third","fifty-fourth","fifty-fifth","fifty-sixth","fifty-seventh","fifty-eighth","fifty-ninth","sixtieth","sixty-first","sixty-second","sixty-third","sixty-fourth","sixty-fifth","sixty-sixth","sixty-seventh","sixty-eighth","sixty-ninth","seventieth","seventy-first","seventy-second","seventy-third","seventy-fourth","seventy-fifth","seventy-sixth","seventy-seventh","seventy-eighth","seventy-ninth","eightieth","eighty-first","eighty-second","eighty-third","eighty-fourth","eighty-fifth","eighty-sixth","eighty-seventh","eighty-eighth","eighty-ninth","ninetieth","ninety-first","ninety-second","ninety-third","ninety-fourth","ninety-fifth","ninety-sixth","ninety-seventh","ninety-eighth","ninety-ninth","hundredth"],$e=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"];var ze,Ye,He,We=t(7193),Ge=t.n(We);!function(e){e.LOADER="loader",e.PAGE_CONFIG="page-config",e.MANUAL_FLOW="manual-flow"}(ze||(ze={})),function(e){e.EDIT="edit",e.CREATE="create",e.REVIEW="review"}(Ye||(Ye={})),function(e){e.NAME="name",e.ID="id"}(He||(He={}));const Ze={data:{},currentForm:null,numberOfIdsRequired:1,mode:Ye.CREATE,pageHistory:[],backHistory:[]},Ke=e=>e.filter(((e,n,t)=>t.findIndex((n=>n.id===e.id))===n)),Je=(0,u.Z0)({name:ze.MANUAL_FLOW,initialState:Ze,reducers:{updateReduxForm:(e,n)=>{var t,i,a,r,l;const{key:o,data:s,label:d}=n.payload,u=Object.keys(e.data).reduce(((n,t)=>[...n,{[t]:e.data[t],key:t}]),[]);if(e.data[o]||(e.data[o]={docFields:[],label:""}),(null===(t=null==n?void 0:n.payload)||void 0===t?void 0:t.currentForm)&&(e.currentForm=n.payload.currentForm),e.data[o].docFields=s,e.data[o].label=null!=d?d:e.data[o].label,e.data[o].mode=Ye.CREATE,e.data[o].dirty=null===(a=null===(i=n.payload)||void 0===i?void 0:i.dirty)||void 0===a||a,(null===(r=n.payload)||void 0===r?void 0:r.isAdditionalId)&&e.data[o]){if(e.data[o].dirty=!1,e.failedType===He.ID&&(e.failedType=null),Object.keys(e.data).indexOf(De.i.PERSONAL)>0){const n=Ge()(e.data[De.i.PERSONAL]);delete e.data[De.i.PERSONAL],e.data[De.i.PERSONAL]=n}e.numberOfIdsRequired=e.numberOfIdsRequired+1}if(null===(l=null==n?void 0:n.payload)||void 0===l?void 0:l.replacedId){e.failedType===He.ID&&(e.failedType=null),delete e.data[n.payload.replacedId];const t={};u.forEach((i=>{let a=i.key;a===n.payload.replacedId&&(a=o),t[a]=e.data[a],delete e.data[a],e.data[a]=t[a]}))}},updateFormState:(e,n)=>{var t,i,a,r,l;const o=null!==(i=null!==(t=n.payload.mode)&&void 0!==t?t:null==e?void 0:e.mode)&&void 0!==i?i:Ye.CREATE;e.currentForm=n.payload.currentForm,(null===(a=n.payload)||void 0===a?void 0:a.numberOfIdsRequired)&&(e.numberOfIdsRequired=null===(r=n.payload)||void 0===r?void 0:r.numberOfIdsRequired),e.mode=o,(null===(l=n.payload)||void 0===l?void 0:l.idType)&&Object.entries(e.data).forEach((([t])=>{t===n.payload.idType?e.data[t].mode=o:e.data[t].mode=Ye.CREATE}))},updateHistory:(e,n)=>{var t,i;(null===(t=n.payload)||void 0===t?void 0:t.isClear)?e.pageHistory=[]:(e.pageHistory=Ke([n.payload,...e.pageHistory]),(null===(i=n.payload)||void 0===i?void 0:i.isRemove)?e.pageHistory=e.pageHistory.filter((e=>e.id!==n.payload.id)):e.backHistory=e.backHistory.filter((e=>e.id!==n.payload.id)))},updateBackHistory:(e,n)=>{var t,i,a,r;(null===(i=null===(t=e.data)||void 0===t?void 0:t[n.payload.id])||void 0===i?void 0:i.dirty)&&(e.data[n.payload.id].dirty=null),(null===(a=n.payload)||void 0===a?void 0:a.isClear)?e.backHistory=[]:(e.backHistory=Ke([n.payload,...e.backHistory]),(null===(r=n.payload)||void 0===r?void 0:r.isRemove)&&(e.backHistory=e.backHistory.filter((e=>e.id!==n.payload.id))))},clearAllHistory:(e,n)=>{var t,i,a;e.pageHistory=[],e.backHistory=[],(null===(t=n.payload)||void 0===t?void 0:t.clearFormState)&&(null===(a=Object.entries(null!==(i=e.data)&&void 0!==i?i:{}))||void 0===a||a.forEach((([n])=>{e.data[n].dirty=null})))},updateFailState:(e,n)=>{e.failedType=n.payload},resetForm:e=>{var n,t;e.currentForm=null,e.mode=Ye.CREATE,null===(t=Object.entries(null!==(n=e.data)&&void 0!==n?n:{}))||void 0===t||t.forEach((([n])=>{e.data[n].dirty=null,e.data[n].mode=Ye.CREATE})),e.pageHistory=[]},updateRequiredIds:(e,n)=>{e.numberOfIdsRequired=n.payload}}}),Xe=Je.actions.updateReduxForm,Qe=Je.actions.updateFormState,en=Je.actions.updateHistory,nn=Je.actions.updateFailState,tn=Je.actions.resetForm,an=Je.actions.updateBackHistory,rn=Je.actions.clearAllHistory,ln=Je.actions.updateRequiredIds,on=e=>e[ze.MANUAL_FLOW],sn=Je.reducer;var dn=t(6762),un=t.n(dn),cn=t(182),fn=t.n(cn),mn=t(6285),pn=t(663),An=t(2839);const vn=(e,n)=>{const t=[];return e.forEach((e=>{const i=null==t?void 0:t.findIndex((t=>(null==t?void 0:t[n])===(null==e?void 0:e[n])));i>=0?t[i]=fn()(Ge()(t[i]),Ge()(e)):t.push(e)})),t},gn=(e,n,t)=>{const i=e.split(" "),a=i.findIndex((e=>n.includes(e)));return i.map(((e,i)=>n.includes(e)&&i===a?n[t]:e)).join(" ")},bn=(e,n,t="")=>e.split(" ").map((e=>n.includes(e)?t:e)).join(" "),yn=(e,n="")=>{let t=[];for(const i in e){const a=n?`${n}.${i}`:i;"object"==typeof e[i]&&null!==e[i]?t=t.concat(yn(e[i],a)):t.push(a)}return t},hn=e=>e.split("_").map((([e,...n])=>(([e,...n])=>e.toUpperCase()+n.join("").toLowerCase())([e,...n]))).join(" "),xn={AUS:pn._z.map((e=>({label:e.name,value:e.alpha3Code})))},En=e=>{var n;return null===(n=[...(null==xn?void 0:xn[e])||xn.AUS||[]])||void 0===n?void 0:n.sort(((e,n)=>{var t,i;return((null===(t=null==e?void 0:e.label)||void 0===t?void 0:t.toLowerCase())||"").localeCompare((null===(i=null==n?void 0:n.label)||void 0===i?void 0:i.toLowerCase())||"")}))},Cn=(e,n=!1)=>{const t=null==e?void 0:e.split("-");return null==t||t.forEach(((e,n)=>{1===(null==e?void 0:e.length)&&n!==(null==t?void 0:t.length)-1&&(t[n]=null==e?void 0:e.padStart(2,"0"))})),n?null==t?void 0:t.reverse().join("-"):null==t?void 0:t.join("-")},wn=()=>[...An.mn].sort(((e,n)=>{var t,i;return((null===(t=null==e?void 0:e.label)||void 0===t?void 0:t.toLowerCase())||"").localeCompare((null===(i=null==n?void 0:n.label)||void 0===i?void 0:i.toLowerCase())||"")})).filter((e=>(null==e?void 0:e.value)&&(null==e?void 0:e.label))),jn=[{label:"Green",value:"G"},{label:"Blue",value:"B"},{label:"Yellow",value:"Y"}],Nn=e=>{const n=(e,n="")=>e?`${null==e?void 0:e.toString().trim()}${n}`:"",{streetName:t,streetNumber:i}=On({street:e},"street");return`${n(null==e?void 0:e.unitNumber,"/")}${n(i||(null==e?void 0:e.streetNumber))} ${n((null==t?void 0:t.length)?t:null==e?void 0:e.streetName,",")} ${n(null==e?void 0:e.town,",")} ${n(null==e?void 0:e.state)} ${n(null==e?void 0:e.postalCode,",")} ${n(null==e?void 0:e.country)}`.trim().split(",").map((e=>e.trim())).filter((e=>!!e.length)).join(", ")},On=(e,n)=>{const t=un()(e,`${n}.streetAddress`),i=null==t?void 0:t.split(" ");return i?{streetNumber:"number"==typeof+(null==i?void 0:i[0])?null==i?void 0:i.shift():"",streetName:null==i?void 0:i.join(" ")}:{}},Bn=(e,n)=>{const t=Object.entries(e).filter((e=>"object"!=typeof e[1])),i=t.some((e=>[void 0,null].includes(e[1]))),a=t.some((e=>{var n,t;return!!(null===(t=null===(n=e[1])||void 0===n?void 0:n.toString())||void 0===t?void 0:t.length)}));if(!i)return a?!!un()(e,n):a};function Tn({dateString:e,fromFormat:n="dd-MM-yyyy",toFormat:t="dd LLL yyyy"}){let i=!0;2===e.split("-").length&&(e="01-"+e,i=!1);const a=mn.c9.fromFormat(e,n).toFormat(t);return i?a:a.split(" ").slice(1).join(" ")}function Fn(e){const{data:n,sequence:t,key:i}=e,a=new Map(t.map(((e,n)=>[e,n])));return n.sort(((e,n)=>{const r=a.get(e[i]),l=a.get(n[i]);return(void 0!==r?r:t.length)-(void 0!==l?l:t.length)}))}const In=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=(0,s.d4)(on),t=e=>{const t=Object.keys(null==n?void 0:n.data).indexOf(De.i.PERSONAL);return{index:t,isValidIndex:t===e}},i=(0,d.useCallback)((e=>{let t=gn(e,$e,n.numberOfIdsRequired);return n.numberOfIdsRequired>1&&[{key:"document",value:"documents"},{key:"form",value:"forms"}].forEach((({key:e,value:n})=>{t=bn(t,[e],n)})),t}),[n.numberOfIdsRequired]),a=(0,d.useMemo)((()=>{var e,t;return null!==(t=null===(e=Object.entries(null==n?void 0:n.data))||void 0===e?void 0:e.filter((e=>Object.values(Ce).includes(e[0]))).map((([e,n])=>({key:e,value:n}))))&&void 0!==t?t:[]}),[null==n?void 0:n.data]),r=(0,d.useCallback)((()=>{var e,t;return null===(t=Object.entries(null!==(e=null==n?void 0:n.data)&&void 0!==e?e:{}))||void 0===t?void 0:t.some((e=>{var n;return(null===(n=null==e?void 0:e[1])||void 0===n?void 0:n.mode)===Ye.EDIT}))}),[n.data]),l=(0,d.useCallback)((e=>{var t,i;return(null===(i=null===(t=Object.entries(n.data))||void 0===t?void 0:t.find((([n])=>n==e)))||void 0===i?void 0:i[1].mode)===Ye.EDIT}),[n.data]),o=(0,d.useMemo)((()=>n.numberOfIdsRequired),[n.numberOfIdsRequired]),u=(t,i)=>{var r,l;const o=a.filter((e=>{var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.mode)!==Ye.EDIT})),s=o.find((e=>e.key===t)),d=!!n.pageHistory.find((e=>e.id===t));return(null==n?void 0:n.mode)===Ye.EDIT?!(null==o?void 0:o.length)||!s:e.currentModule===De.i.RETRY?(null===(l=null==o?void 0:o[null===(r=n.pageHistory)||void 0===r?void 0:r.length])||void 0===l?void 0:l.key)===t||!s:i?!n.pageHistory.length||!n.pageHistory.filter((e=>e.id!==i)).find((e=>e.id===t)):!n.pageHistory.length||!d},c=t=>{var i,o;const s=a.filter((e=>{var n;return(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.mode)!==Ye.EDIT}));return e.currentModule==De.i.RETRY&&n.mode!==Ye.EDIT?(null===(o=null==s?void 0:s[null===(i=n.pageHistory)||void 0===i?void 0:i.length])||void 0===o?void 0:o.key)===t:r()?l(t):void 0},f=(i,l=[])=>{var s,d;const u=t=>{var a;const r=l.reduce(((e,n)=>e+((null==n?void 0:n.visible)?1:0)),0),o=n.numberOfIdsRequired,s=r-o;let d=0;return d=l.length>o?l.length-o-s:Math.abs(s),gn(e.currentModule===De.i.RETRY?e[De.i.DOCUMENT].title.label:null===(a=null==i?void 0:i.title)||void 0===a?void 0:a.label,Ue,null!=t?t:d)};let c=0;for(const e of a){if((null===(s=null==e?void 0:e.value)||void 0===s?void 0:s.mode)===Ye.EDIT)break;c+=1}if(r())return`Edit your ${(null==a?void 0:a.length)>1&&o>1?Ue[c]:""} ID`;if(e.currentModule!==De.i.RETRY||n.mode===Ye.EDIT)return o<2?bn(u(),Ue,""):u();{const i=()=>{var e,t;const i=bn(u(null!==(t=null===(e=n.pageHistory)||void 0===e?void 0:e.length)&&void 0!==t?t:0),["Select"],"Review");return o<2?bn(i,Ue,""):i};switch(n.currentForm){case De.i.RETRY:return t(0).isValidIndex?`Review ${e[De.i.PERSONAL].title.label.toLowerCase()}`:i();case De.i.DOCUMENT:return i();case De.i.PERSONAL:return`Review ${e[De.i.PERSONAL].title.label.toLowerCase()}`;default:{const t=e[De.i.DOCUMENT].documents.find((e=>e.type===n.currentForm));return`Review ${null===(d=null==t?void 0:t.title)||void 0===d?void 0:d.label}`}}}},m=(e,t=!1)=>{const i=e.documents.map((e=>Object.assign(Object.assign({},e),{subtitle:(null==n?void 0:n.mode)===Ye.EDIT?"":e.subtitle,visible:u(e.type,t),focus:c(e.type)})));return Object.assign(Object.assign({},e),{title:Object.assign(Object.assign({},e.title),{label:f(e,i)}),documents:i})};return{modifyDocConfig:m,modifyConfig:()=>{var n,t,a;const r=null!==(n=e[e.currentModule].descriptions)&&void 0!==n?n:[],l=null==r?void 0:r.slice(0,1),o="manual"===(null===(t=e[e.currentModule])||void 0===t?void 0:t.type)?[(null==l?void 0:l[0])?Object.assign(Object.assign({},null==l?void 0:l[0]),{label:i(null===(a=null==l?void 0:l[0])||void 0===a?void 0:a.label)}):{},...r.slice(1)]:[null==l?void 0:l[0],...r.slice(1)];return Object.assign(Object.assign({},e[e.currentModule]),{descriptions:o})},insertedDocuments:a,isAnyEditableDoc:r,isEditMode:l,isDocVisible:u,isFocused:c,isAdditionaDoc:(t=!1)=>{var i,l;const o=null!==(l=null===(i=e[De.i.DOCUMENT])||void 0===i?void 0:i.numberOfIDs)&&void 0!==l?l:1,s=!t||n.pageHistory.length>o;return e.currentModule===De.i.RETRY&&!r()&&a.length>=o&&s&&n.mode!==Ye.EDIT&&a.every((e=>!1===e.value.dirty))&&n.failedType===He.ID},getModifiedLabel:f,isAdditionaIdSelectionScreen:e=>{const t=m(e).documents.find((e=>!0===(null==e?void 0:e.focus)));return n.mode!==Ye.EDIT&&!a.find((e=>e.key===(null==t?void 0:t.type)))},personalSequence:t}},Sn=({config:e,backButton:n,testid:t={mockImg:null}})=>{const{pageConfigs:a}=(0,s.d4)(Oi),{documentReady:r,idvEventEmitter:l}=Si(),{isAdditionaIdSelectionScreen:o}=In(),u=(0,s.wA)(),[c,f]=(0,d.useState)(),m=(0,s.d4)(on),p=n=>{(null==e?void 0:e.showPreps)?f(n.type):A(n)},A=n=>{var t;const i=(null==n?void 0:n.type)||c;"ocr"===(null==e?void 0:e.type)?r(i):(l({eventCategory:"global",extraEventInfo:{name:De.i.DOCUMENT,index:(null===(t=null==e?void 0:e.documents)||void 0===t?void 0:t.findIndex((e=>e.type===i)))+1},eventType:"navigate"}),u(Qe({currentForm:Ce[i]})))},v=(0,d.useMemo)((()=>m.mode==Ye.EDIT),[m.mode]),g=()=>{var n,t;return a.currentModule===De.i.RETRY?o(e)?qe.additionInfo.label:null===(n=null==e?void 0:e.title)||void 0===n?void 0:n.label:null===(t=null==e?void 0:e.title)||void 0===t?void 0:t.label};return e?c?(0,i.jsx)(_e,{onSubmit:A,id:c}):(0,i.jsx)(ke,{hideCTA:!0,inputClass:(0,je.A)({"!f1-pt-[24px]":n},{"tablet:!f1-pt-[49px]":n}),renderScreen:()=>{var r,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:g(),style:null===(r=null==e?void 0:e.title)||void 0===r?void 0:r.style,onBack:n?()=>(()=>{var e,t,i;if(n)if(v||m.pageHistory.length>0||(null==a?void 0:a.currentModule)===De.i.RETRY){const n=null!==(i=null===(t=null===(e=m.pageHistory)||void 0===e?void 0:e[0])||void 0===t?void 0:t.id)&&void 0!==i?i:(null==a?void 0:a.currentModule)===De.i.RETRY?De.i.RETRY:De.i.REVIEW,r=[De.i.RETRY,De.i.PERSONAL];!v&&r.includes(n)&&u(rn({clearFormState:!0})),u(Qe({currentForm:v?De.i.REVIEW:n}))}else l({eventType:"back"})})():void 0,className:(0,je.A)(n?"f1-mb-[8px]":"")}),(0,i.jsx)(Te,{descriptions:null!==(o=null==e?void 0:e.descriptions)&&void 0!==o?o:[]}),(0,i.jsx)(Ve,{content:null==e?void 0:e.documents,subtitle:null==e?void 0:e.subtitle,onSelect:p,testid:{mockImg:null==t?void 0:t.mockImg}})]})}}):null},Ln={name:"DOCUMENT",mode:"individual",type:"ocr",title:{label:"Choose Your ID"},subtitle:{label:"Your ID must be valid and not expired"},descriptions:[{label:"We'll need at least one of the following documents to verify your identity."}],documents:[{type:"DRIVERS_LICENCE",label:"Driver's licence",subtitle:"(recommended)",postIcon:ye.rightArrowIcon,icon:ye.driverLicenseIcon},{type:"PASSPORT",label:"Passport",postIcon:ye.rightArrowIcon,icon:ye.passportIcon},{type:"NATIONAL_HEALTH_ID",label:"Medicare card",postIcon:ye.rightArrowIcon,icon:ye.medicalIcon}]},kn={name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"ocr",descriptions:[{label:"We need to collect some personal information to verify your identity. It’s important you enter your details as accurately as possible.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{}},{icon:ye.checkbox,label:"Grant access permission on the camera of your phone so we can capture your ID",style:{}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{}}]},cta:{label:"Start identity verification",style:{}},style:{}},Dn=({descriptions:e,style:n,title:t,state:a=null,isLoading:r=!0,inputClass:l="",labelClass:o="",descriptionClass:s="",progressWrapperClass:u=""})=>{var c,f;const m=(0,d.useCallback)(((e,n)=>{var t;return(0,i.jsx)("div",{className:(0,je.A)("f1-mb-1",Ee.progressItem,s),style:null===(t=null==e?void 0:e.style)||void 0===t?void 0:t[Ee.progressItem],children:null==e?void 0:e.label},`fallback-list-${n}`)}),[]);if(!r)return null;const p={[we.SUCCESS]:ye.successIcon,[we.FAIL]:ye.failedIcon,[we.PENDING]:ye.pendingIcon,[we.PARTIAL]:ye.retryIcon,[we.UPLOAD_SUCCESS]:ye.fileDocumentCheckOutline,[we.UPLOAD_FAIL]:ye.fileDocumentAlertOutline};return(0,i.jsx)("div",{className:(0,je.A)("f1-top-0","f1-left-0","f1-text-tertiary-grey-800","f1-flex","f1-justify-center","f1-items-center","f1-z-50","f1-bg-mono-white",Ee.progressWrapper,l),style:null==n?void 0:n[Ee.progressWrapper],children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-content-center","f1-items-center","f1-px-6","f1-text-center",u),children:[null===a?(0,i.jsxs)("svg",{"aria-hidden":"true",className:(0,je.A)("f1-inline","f1-animate-spin","f1-fill-primary-600","f1-h-24","f1-w-24",Ee.loading),style:null==n?void 0:n[Ee.loading],viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#e5e7eb"}),(0,i.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}):(0,i.jsx)("img",{src:p[a],alt:"state icon"}),(0,i.jsx)("div",{className:(0,je.A)("f1-font-bold","f1-mt-8",null===(c=null==t?void 0:t.style)||void 0===c?void 0:c[Ee.title],o),children:null==t?void 0:t.label}),(0,i.jsx)("div",{className:(0,je.A)("f1-mt-4","f1-text-ter",null===(f=null==t?void 0:t.style)||void 0===f?void 0:f[Ee.subtitle]),children:null==e?void 0:e.map(m)})]})})},Pn={Main:({instructions:e,rules:n,onFileSelect:t})=>{var a,r,l,o,s,u,c,f;const m=(0,d.useRef)(null),[p,A]=(0,d.useState)(""),v=null!==(r=null===(a=null==n?void 0:n.max_size)||void 0===a?void 0:a.value)&&void 0!==r?r:20,g=null!==(o=null===(l=null==n?void 0:n.max_size)||void 0===l?void 0:l.message)&&void 0!==o?o:"File size exceeds the maximum limit. Please upload a file less than 20MB.",b=null!==(u=null===(s=null==n?void 0:n.mime)||void 0===s?void 0:s.value)&&void 0!==u?u:{"image/jpeg":!0,"image/png":!0,"image/gif":!0,"image/webp":!0,"image/tiff":!0,"image/bmp":!0,"application/pdf":!0},y=null!==(f=null===(c=null==n?void 0:n.mime)||void 0===c?void 0:c.message)&&void 0!==f?f:"File type not supported. Please upload a PNG, JPG or PDF file.",x=Object.keys(b).filter((e=>b[e])).join(","),E=e=>{(e=>e.size/1024/1024<=v)(e)?(e=>x.includes(e.type))(e)?(A(""),t(e)):A(y):A(g)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,je.A)([p?"f1-border-tertiary-red-500":"f1-border-tertiary-grey-50","f1-border-2","f1-border-solid","f1-mt-5","f1-w-[calc(100%-2rem-4px)]","f1-h-96","f1-p-4","f1-bg-tertiary-grey-50","f1-rounded-lg","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-2.5","f1-inline-flex","f1-cursor-pointer"]),onClick:()=>m.current.click(),onDrop:e=>{e.preventDefault(),E(e.dataTransfer.files[0])},onDragOver:e=>e.preventDefault(),children:(0,i.jsxs)("div",{className:(0,je.A)(["f1-self-stretch","f1-grow","f1-shrink","f1-basis-0","f1-p-4","f1-rounded-md","f1-border","f1-border-tertiary-grey-200","f1-border-dashed","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-2.5","f1-flex"]),children:[(0,i.jsxs)("div",{className:(0,je.A)(["f1-flex-col","f1-justify-start","f1-items-center","f1-gap-1.5","f1-flex"]),children:[(0,i.jsx)(h,{className:(0,je.A)(["f1-w-10","f1-h-10","f1-relative","f1-fill-tertiary-grey-400"])}),(0,i.jsx)("div",{className:(0,je.A)(["f1-text-center","f1-text-tertiary-grey-500","f1-text-sm","f1-font-semibold","f1-leading-tight"]),children:e?e.label:"Click or drag to upload"}),(0,i.jsx)("div",{className:(0,je.A)(["f1-text-center","f1-text-tertiary-grey-500","f1-text-xs","f1-font-normal","f1-leading-none"]),children:(null==e?void 0:e.content)&&e.content.length>0?e.content.map((({label:e})=>e)):`PNG, JPG or PDF (Max. file size: ${v}MB)`})]}),(0,i.jsx)("input",{ref:m,hidden:!0,type:"file",onChange:e=>{E(e.target.files[0])},accept:x})]})}),p&&(0,i.jsx)("div",{className:(0,je.A)(["f1-mt-2","f1-text-tertiary-red-600","f1-text-xs","f1-font-normal","f1-leading-normal"]),children:p})]})},Preview:({file:e,onFileRemove:n})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,je.A)(["f1-mt-5","f1-text-tertiary-grey-700","f1-text-base","f1-font-semibold","f1-leading-normal"]),children:["File added:"," ",(0,i.jsx)("span",{className:(0,je.A)(["f1-font-normal"]),children:e.name})]}),(0,i.jsx)("div",{className:(0,je.A)(["f1-mt-5","f1-text-primary-800","f1-text-base","f1-font-normal","f1-leading-normal","f1-cursor-pointer"]),onClick:()=>n(),children:"Upload a different file"})]}),Review:({files:e,onEdit:n})=>(0,i.jsx)(i.Fragment,{children:e.map((({file:t,type:a},r)=>(0,i.jsxs)("div",{className:(0,je.A)(["f1-w-full","f1-flex-col","f1-justify-start","f1-items-start","f1-gap-1.5","f1-inline-flex"]),children:[(0,i.jsxs)("div",{className:(0,je.A)(["f1-self-stretch","f1-justify-start","f1-items-center","f1-gap-4","f1-inline-flex"]),children:[(0,i.jsx)("div",{className:(0,je.A)(["f1-grow","f1-shrink","f1-basis-0","f1-text-tertiary-grey-800","f1-text-lg","f1-font-semibold","f1-leading-relaxed"]),children:hn(a)}),(0,i.jsxs)("div",{className:(0,je.A)(["f1-justify-start","f1-items-center","f1-gap-1","f1-flex","f1-cursor-pointer"]),onClick:()=>n(r),children:[(0,i.jsx)(ve,{className:(0,je.A)(["f1-w-4","f1-h-4","f1-relative","f1-fill-primary-800"])}),(0,i.jsx)("div",{className:(0,je.A)(["f1-text-primary-800","f1-text-sm","f1-font-semibold","f1-leading-tight"]),children:"Edit"})]})]}),(0,i.jsx)("div",{className:(0,je.A)(["f1-self-stretch","f1-flex-col","f1-justify-start","f1-items-start","f1-gap-2","f1-flex"]),children:(0,i.jsx)("div",{className:(0,je.A)(["f1-self-stretch","f1-text-tertiary-grey-700","f1-text-base","f1-font-normal","f1-leading-normal"]),children:t.name})}),r<e.length-1&&(0,i.jsx)("div",{className:(0,je.A)(["f1-w-full","f1-py-4"]),children:(0,i.jsx)("div",{className:(0,je.A)(["f1-flex-grow","f1-border-t","f1-border-solid","f1-border-tertiary-grey-200"])})})]},r)))}),Progress:({files:e,completed:n})=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:(0,je.A)(["f1-w-[calc(100%-2rem-4px)]","f1-border-2","f1-border-solid","f1-border-tertiary-grey-50","f1-h-96","f1-p-4","f1-bg-tertiary-grey-50","f1-rounded-lg","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-6","f1-inline-flex"]),children:[(0,i.jsxs)("div",{className:(0,je.A)(["f1-w-full","f1-h-7","f1-flex-col","f1-justify-start","f1-items-end","f1-gap-1","f1-flex"]),children:[(0,i.jsx)("div",{className:(0,je.A)(["f1-self-stretch","f1-justify-center","f1-items-center","f1-inline-flex"]),children:(0,i.jsxs)("div",{className:(0,je.A)(["f1-grow","f1-shrink","f1-basis-0","f1-text-center","f1-text-tertiary-grey-500","f1-text-xs","f1-font-medium","f1-leading-none"]),children:[n,"%"]})}),(0,i.jsx)("div",{className:(0,je.A)(["f1-mx-8","f1-self-stretch","f1-h-1.5","f1-bg-tertiary-grey-200","f1-rounded-sm"])}),(0,i.jsx)("div",{className:(0,je.A)(["f1-self-stretch","f1-mx-8","f1--mt-2.5","f1-h-1.5","f1-bg-primary-600","f1-rounded-sm"]),style:{width:`calc(${n}% - ${n/100*4}rem)`}})]}),(0,i.jsxs)("div",{className:(0,je.A)(["f1-text-center","f1-text-tertiary-grey-700","f1-text-base","f1-font-medium","f1-leading-normal"]),children:["Uploading ",e.length," documents"]})]})}),Success:()=>(0,i.jsx)("div",{style:{height:"calc(100vh - 282px)",display:"flex",justifyContent:"center"},children:(0,i.jsx)(Dn,{state:we.UPLOAD_SUCCESS,title:{label:"Thanks, your document has been uploaded"},labelClass:(0,je.A)(["f1-text-2xl","f1-leading-9"]),descriptions:[{label:"You’re all done, and can close the page."}]})}),Fail:({retries:e})=>(0,i.jsx)("div",{style:{height:"calc(100vh - 282px)",display:"flex",justifyContent:"center"},children:(0,i.jsx)(Dn,{state:we.UPLOAD_FAIL,title:{label:"There was an issue uploading your document"},labelClass:(0,je.A)(["f1-text-2xl","f1-leading-9"]),descriptions:e>1?[{label:"This could be a technical issue with the upload. Please reach out to customer support for assistance, or try again."}]:[{label:"This could be a technical issue with the upload. Please retry submitting document."}]})})},Rn=Pn;const Mn={name:"DOC_UPLOAD",mode:"business",type:"manual",cta:{label:"Next",style:{}},style:{}},_n={name:"LOADING",title:{label:"Verifying your identity"},descriptions:[{label:"Hold tight, this can take a few seconds.\n Please do not refresh this page or click the ‘back’ button on your browser."}]},Vn={required:{value:!0,message:"This field is required"},minLength:{value:6,message:"min value is 6"},maxLength:{value:10,message:"Max value is 10"},validateLength:(e,n)=>(null==n?void 0:n.toString().length)===e,onlyAlphabets:{value:"^[a-zA-Z]+(\\s+[a-zA-Z]+)*$",message:"Please enter alphabetic characters only"},onlyNumbers:{value:"^[0-9]+$",message:"Please enter numeric values only"},alphaNumeric:{value:"^[a-zA-Z0-9]+$",message:"Please enter alphanumeric values only"},alphaNumericSpaceInWords:{value:"^(?! )[a-zA-Z0-9 ]+(?<! )$",message:"Please enter alphanumeric values only"},alphaNumericSomeSpecialWords:{value:"^(?! )[a-zA-Z0-9,. - \\-() \\-[\\] /]+(?<! )$",message:"Please enter alphanumeric values only"},emailPattern:{value:"^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$",message:"Please enter a valid email address"}};var qn,Un,$n;!function(e){e.LONG="long",e.SHORT="short"}(qn||(qn={})),function(e){e.Gregorian="gregory",e.Buddhist="buddhist",e.Chinese="chinese",e.Coptic="coptic",e.EthiopicAmeteAlem="ethioaa",e.Ethiopic="ethiopic",e.Hebrew="hebrew",e.Islamic="islamic",e.IslamicUmalqura="islamic-umalqura",e.Persian="persian",e.BikramSambat="bikram-sambat"}(Un||(Un={})),function(e){e.English="en",e.Spanish="es",e.French="fr",e.German="de",e.Italian="it",e.Japanese="ja",e.Korean="ko",e.Chinese="zh",e.Arabic="ar",e.Russian="ru"}($n||($n={}));const zn=["January","February","March","April","May","June","July","August","September","October","November","December"],Yn=[{fieldType:"input",dataType:"text",hide:!1,label:"Given Name",name:"givenName",rules:{required:{value:!0,message:"Please enter your given name"},pattern:Vn.onlyAlphabets}},{fieldType:"input",dataType:"text",hide:!1,label:"Middle Name(s)",name:"middleName",rules:{pattern:Vn.onlyAlphabets},helperText:"As displayed on your ID"},{fieldType:"input",dataType:"text",hide:!1,label:"Family Name",name:"familyName",rules:{required:{value:!0,message:"Please enter your family name"},pattern:Vn.onlyAlphabets}},{fieldType:"date",dataType:"text",hide:!1,label:"Date of Birth",name:"dateOfBirth",calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your date of birth"},standardDate:!0,required:!0,configYear:!0},{fieldType:"address",name:"address.fullAddress",hide:!1,dataType:"current_addr",label:"Residential Address",placeholder:"Type in your address",rules:{required:{value:!0,message:"Please enter your residential address"}},helperText:"Cannot be a PO Box",manualFieldConfig:[{fieldType:"select",dataType:"text",hide:!1,label:"Country",name:"address.country",options:wn(),rules:{required:{value:!0,message:"Please select your country"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Unit Number (optional)",name:"address.unitNumber",rules:{pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Street Address",name:"address.streetAddress",rules:{required:{value:!0,message:"Please enter your street address"},pattern:Object.assign({},Vn.alphaNumericSomeSpecialWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Suburb / Town",name:"address.town",rules:{required:{value:!0,message:"Please enter your suburb/town."},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"select",dataType:"text",hide:!1,label:"State",name:"address.state",placeholder:"Select Your State",options:En("AUS"),rules:{required:{value:!0,message:"Please select your state"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}},{fieldType:"input",dataType:"text",hide:!1,label:"Postcode",name:"address.postalCode",rules:{required:{value:!0,message:"Please enter your postal code"},pattern:Object.assign({},Vn.alphaNumericSpaceInWords)}}]}];var Hn;const Wn=null==Yn?void 0:Yn.find((e=>"address"===e.fieldType)),Gn=[Object.assign(Object.assign({},Wn),{manualFieldConfig:null===(Hn=null==Wn?void 0:Wn.manualFieldConfig)||void 0===Hn?void 0:Hn.filter((e=>!["address.state"].includes(null==e?void 0:e.name)))})],Zn={name:"PERSONAL",title:{label:"Personal details",style:{"ff-title":{}}},descriptions:[{label:"The details you provide below will be used to verify your identity – make sure they match your ID documents.",style:{}}],personal:{countries:{default:{default:{fields:[{fieldType:"input",hide:!1,label:"Given Name",dataType:"text",name:"givenName",rules:{required:{value:!0,message:"Please enter your given name"},pattern:Vn.onlyAlphabets}},{fieldType:"input",hide:!1,label:"Middle Name(s)",name:"middleName",dataType:"text",showToggle:!0,rules:{required:{value:!0,message:"Please enter your middle name"},pattern:Vn.onlyAlphabets},toggleConfig:{label:"Do you have any Middle Names?",rules:{required:{value:!0,message:"Please let us know if you have any middle names"}}}},{fieldType:"input",hide:!1,label:"Family Name",dataType:"text",name:"familyName",rules:{required:{value:!0,message:"Please enter your family name"},pattern:Vn.onlyAlphabets}},{fieldType:"phone",dataType:"number",name:"extraData.phone",hide:!0,label:"Phone Number",emptyText:"No records found",options:[{label:"AU +61",value:"+61"},{label:"NZ +64",value:"+64"}],placeholder:{cc:"Code",phoneNumber:"e.g. 0400 000 000"},rules:{required:{value:!0,message:"Please enter the phone number"},minLength:{value:10,message:"Phone number must be at least 10 digits"},maxLength:{value:10,message:"Phone number must not exceed 10 characters"},pattern:Vn.onlyNumbers}},{fieldType:"input",hide:!0,label:"Email",dataType:"text",name:"extraData.email",rules:{required:{value:!0,message:"Please enter the email"},pattern:Vn.emailPattern}},{fieldType:"date",hide:!1,label:"Date of Birth",dataType:"text",name:"dateOfBirth",calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your date of birth"}},Object.assign({},Gn[0])]}},AUS:{default:{fields:[Object.assign({},null==Yn?void 0:Yn.find((e=>"address"===e.fieldType)))]}}}},cta:{label:"Next"},style:{"ff-form-wrapper":{},"ff-form-field":{}}},Kn={[we.PENDING]:{title:{label:"Thanks, your information has been submitted for verification"},descriptions:[{label:"You’re all done. We will be in touch once we have your results."}],cta:{label:"Done"}},[we.SUCCESS]:{title:{label:"Congratulations, your identity has been successfully verified"},cta:{label:"Done"}},[we.FAIL]:{title:{label:"Unfortunately we are unable to verify your identity"},descriptions:[{label:"Please contact the customer support team to help you with creating your account."}],cta:{label:"Done"}},[we.PARTIAL]:{title:{label:"We are having trouble verifying your identity"},descriptions:[{label:"Most of the time it’s just a typo, let’s check your ID details have been entered correctly."}],cta:{label:"Review details"}},[we.UPLOAD_SUCCESS]:{},[we.UPLOAD_FAIL]:{}},Jn={name:"RESULT",state:we.PENDING};var Xn=t(9785);const Qn=()=>{const e=e=>{var n,t,i,a,r,l,o,s,d,u,c,f,m;const{config:p,country:A,region:v}=e,g=null!==(d=null!==(l=null!==(i=null===(t=null===(n=null==p?void 0:p.countries)||void 0===n?void 0:n[A])||void 0===t?void 0:t[v])&&void 0!==i?i:null===(r=null===(a=null==p?void 0:p.countries)||void 0===a?void 0:a[A])||void 0===r?void 0:r.default)&&void 0!==l?l:null===(s=null===(o=null==p?void 0:p.countries)||void 0===o?void 0:o.default)||void 0===s?void 0:s[v])&&void 0!==d?d:{fields:[]};return vn([...g.fields,...null!==(m=null===(f=null===(c=null===(u=null==p?void 0:p.countries)||void 0===u?void 0:u.default)||void 0===c?void 0:c.default)||void 0===f?void 0:f.fields)&&void 0!==m?m:[]],"name")};return{getFormConfig:n=>{var t,i,a,r,l,o,s,d,u,c,f,m,p,A,v,g,b,y,h,x;const{config:E,idType:C,country:w,region:j}=n,N=null===(t=null==E?void 0:E.documents)||void 0===t?void 0:t.find((e=>e.type===C)),O=null!==(c=null!==(s=null!==(r=null===(a=null===(i=null==N?void 0:N.countries)||void 0===i?void 0:i[w])||void 0===a?void 0:a[j])&&void 0!==r?r:null===(o=null===(l=null==N?void 0:N.countries)||void 0===l?void 0:l[w])||void 0===o?void 0:o.default)&&void 0!==s?s:null===(u=null===(d=null==N?void 0:N.countries)||void 0===d?void 0:d.default)||void 0===u?void 0:u.default)&&void 0!==c?c:{fields:[]},B=null==E?void 0:E.personal;let T=null!==(g=null!==(p=null===(m=null===(f=null==B?void 0:B.countries)||void 0===f?void 0:f[w])||void 0===m?void 0:m[j])&&void 0!==p?p:null===(v=null===(A=null==B?void 0:B.countries)||void 0===A?void 0:A[w])||void 0===v?void 0:v.default)&&void 0!==g?g:{fields:[]};T={fields:vn([...null!==(x=null===(h=null===(y=null===(b=null==B?void 0:B.countries)||void 0===b?void 0:b.default)||void 0===y?void 0:y.default)||void 0===h?void 0:h.fields)&&void 0!==x?x:[],...T.fields],"name")};const F=e({config:null==E?void 0:E.documents,country:w,region:j});return{documentFields:O.fields,personalFields:T.fields,manualFields:F,getDefaultImage:e=>{var n,t,i,a,r,l,o,s,d,u,c,f,m,p,A,v,g,b,y,h,x,E,C,w,j;return null!==(j=null!==(w=null!==(h=null!==(v=null!==(f=null!==(s=null!==(a=null===(i=null===(t=null===(n=null==N?void 0:N.countries)||void 0===n?void 0:n[null==e?void 0:e.country])||void 0===t?void 0:t[null==e?void 0:e.region])||void 0===i?void 0:i.image)&&void 0!==a?a:null===(o=null===(l=null===(r=null==B?void 0:B.countries)||void 0===r?void 0:r[null==e?void 0:e.country])||void 0===l?void 0:l[null==e?void 0:e.region])||void 0===o?void 0:o.image)&&void 0!==s?s:null===(c=null===(u=null===(d=null==N?void 0:N.countries)||void 0===d?void 0:d[null==e?void 0:e.country])||void 0===u?void 0:u.default)||void 0===c?void 0:c.image)&&void 0!==f?f:null===(A=null===(p=null===(m=null==B?void 0:B.countries)||void 0===m?void 0:m[null==e?void 0:e.country])||void 0===p?void 0:p.default)||void 0===A?void 0:A.image)&&void 0!==v?v:null===(y=null===(b=null===(g=null==N?void 0:N.countries)||void 0===g?void 0:g.default)||void 0===b?void 0:b.default)||void 0===y?void 0:y.image)&&void 0!==h?h:null===(C=null===(E=null===(x=null==B?void 0:B.countries)||void 0===x?void 0:x.default)||void 0===E?void 0:E.default)||void 0===C?void 0:C.image)&&void 0!==w?w:null==O?void 0:O.image)&&void 0!==j?j:null==T?void 0:T.image}}},getManualFormFields:e,modifyFormConfig:e=>{var n,t,i,a,r;return Object.assign(Object.assign({},e),{rules:Object.assign(Object.assign({},null!==(n=null==e?void 0:e.rules)&&void 0!==n?n:{}),(null===(t=null==e?void 0:e.rules)||void 0===t?void 0:t.pattern)&&{pattern:Object.assign(Object.assign({},null===(i=null==e?void 0:e.rules)||void 0===i?void 0:i.pattern),{value:new RegExp(null===(r=null===(a=null==e?void 0:e.rules)||void 0===a?void 0:a.pattern)||void 0===r?void 0:r.value)})})})}}},et=(0,d.forwardRef)((function({className:e="",inputClassName:n="",counter:t,disabled:a=!1,error:r=!1,errorText:l="",label:o,name:s,placeholder:u="",readOnly:c=!1,helperText:f="",tag:m,badge:p,closeButton:A,isSearchIcon:v,testid:g={container:"",input:"",label:"",tag:"",showPassword:"",helperText:"",counter:"",closeCta:"",mockImg:null},type:b="text",value:y,onBlur:h,onChange:x,onClick:E,onFocus:C,onKeyDown:w,min:j,max:N,minLength:O,maxLength:B,pattern:T,required:F,autoComplete:I,configYear:S,hideError:L=!1},k){var D,P,R,M;const[_,V]=(0,d.useState)(0),[q,U]=(0,d.useState)(!1);return(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full",`${!(null==l?void 0:l.length)&&r&&"f1-mb-3"}`,e),"data-testid":g.container,children:[(o||m)&&(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full","f1-bg-white","f1-border","f1-py-2","f1-focus:outline-none"),children:[(0,i.jsx)("div",{className:(0,je.A)("grow"),children:(0,i.jsx)("label",{htmlFor:s,className:(0,je.A)("f1-text-sm","f1-font-medium","f1-w-full","f1-text-tertiary-grey-800"),"data-testid":g.label,children:o})}),(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-tertiary-grey-800"),"data-testid":g.tag,children:m})]}),(0,i.jsxs)("div",{className:(0,je.A)('"f1-relative"',"frankie-text-field-container","hide-spinner"),children:[(0,i.jsx)("input",{id:s,name:s,"aria-label":s,ref:k,className:(0,je.A)("f1-w-full","f1-rounded-sm","f1-px-[16px]","f1-py-[14px]","focus:f1-outline-[0.1px]","f1-box-border","f1-border",{"focus:f1-outline-[#2B67F9] ":!r},{"focus:f1-outline-tertiary-red-500":r},"f1-border-solid",n,"f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":r,"f1-placeholder-tertiary-red-600":r,"!f1-text-tertiary-red-600":r,"f1-bg-[#FDF2F2]":r,"f1-border-tertiary-grey-300":!r}),placeholder:u,disabled:a,readOnly:c,type:q?"text":b,onInput:e=>{var n,t;V(null===(t=null===(n=e.currentTarget)||void 0===n?void 0:n.value)||void 0===t?void 0:t.length)},value:null!=y?y:"","data-testid":g.input,onBlur:h,onChange:x,onClick:E,onFocus:C,min:j,max:N,minLength:O,maxLength:B,pattern:T,required:F,autoComplete:I,onKeyDown:w}),"search"===b&&v&&(0,i.jsx)("img",{onClick:E,className:(0,je.A)("f1-absolute","f1-top-[10px]","f1-cursor-text"),src:null!==(D=g.mockImg)&&void 0!==D?D:ye.magnify,alt:"search icon"}),!!p&&p,"password"===b&&(0,i.jsx)("div",{className:(0,je.A)("f1-absolute","f1-top-0","f1-right-2"),children:(0,i.jsx)(Se,{intent:"subtle",size:"md",testid:{button:g.showPassword},className:(0,je.A)("f1-text-tertiary-grey-500"),onClick:()=>U(!q),singleicon:null!==(P=g.mockImg)&&void 0!==P?P:{size:"xs",name:q?"mdiEyeOffOutline":"mdiEyeOutline"}})}),A&&(0,i.jsx)(Se,{testid:{button:g.closeCta},className:(0,je.A)("f1-text-tertiary-grey-500"),onClick:A.onClick,singleicon:null!==(R=g.mockImg)&&void 0!==R?R:{size:"xs",name:"mdiClose"}})]}),(0,i.jsxs)("div",{className:(0,je.A)("f1-flex",`${S&&"f1-absolute , f1-left-0"}`),children:[(f||l)&&!L&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-1","f1-text-[14px]"),children:[(0,i.jsxs)("div",{"data-testid":g.helperText,className:(0,je.A)("f1-flex","f1-text-tertiary-red-600"),children:[r&&(null==l?void 0:l.length)>1?(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:null!==(M=g.mockImg)&&void 0!==M?M:ye.alertCircleOutline}):"",r&&l]}),(0,i.jsx)("div",{className:(0,je.A)("f1-text-tertiary-grey-500"),children:f})]})}),(0,i.jsx)("div",{"data-testid":g.counter,children:"number"==typeof t&&t>0?(0,i.jsxs)("div",{className:(0,je.A)(_>t?"f1-text-red-700":""),children:[_,"/",t]}):t})]})]})}));const nt=(0,d.forwardRef)(((e,n)=>{var{name:t,control:a,rules:r,label:l,defaultValue:o,disabled:s,shouldUnregister:d,helperText:u,min:c,type:f,onChange:m}=e,p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["name","control","rules","label","defaultValue","disabled","shouldUnregister","helperText","min","type","onChange"]);return(0,i.jsx)(Xn.xI,{control:a,name:t,render:({field:e,fieldState:{error:t}})=>{const a=r&&(null==r?void 0:r.validate)&&"function"==typeof(null==r?void 0:r.validate)&&void 0!==c&&(null==r?void 0:r.validate)(null==e?void 0:e.value),o="boolean"==typeof a&&a;return(0,i.jsx)(et,Object.assign({type:f,label:l,readOnly:o,errorText:null==t?void 0:t.message,error:!!(null==t?void 0:t.message),helperText:!(null==t?void 0:t.message)&&u},null!=p?p:{},e,{onChange:n=>{e.onChange(n),m&&m(n)},onBlur:n=>{e.onBlur(),(null==p?void 0:p.onBlur)&&p.onBlur(n)},ref:n}))},rules:r,defaultValue:o,disabled:s,shouldUnregister:d})})),tt=nt,it=(e,n)=>{if(Object.keys(n).length)return e.split(".").map((e=>e.replace("[","").replace("]",""))).reduce(((e,n)=>e?e[n]:e),n)};var at=t(8486);function rt(){const e=(0,d.useRef)(null),[n,t]=(0,d.useState)(!1),i=()=>t(!1);return(0,at.Wr)(e,i),{parentRef:e,isOpen:n,handleOpen:()=>t(!0),handleClose:i,handleToggle:()=>t((e=>!e))}}const lt=(0,d.forwardRef)((function({className:e="",inputClassName:n="",disabled:t=!1,error:a=!1,errorText:r="",label:l,name:o,placeholder:s="",supportingText:u="",tag:c,badge:f,options:m,testid:p={container:"",input:"",label:"",tag:"",supportingText:"",closeCta:"",mockImg:null},value:A,onBlur:v,onChange:g,onClick:b,onFocus:y,autocomplete:h=!1,clearable:x=!1,required:E,emptyText:C="No record",hideError:w=!1,selectLabel:j=null,ulClassName:N=""},O){var B,T,F;const[I,S]=(0,d.useState)(null),[L,k]=(0,d.useState)(""),D=(0,d.useRef)(null),{parentRef:P,isOpen:R,handleOpen:M,handleToggle:_,handleClose:V}=rt(),q=(0,d.useMemo)((()=>{var e;return null===(e=m.find((e=>e.value===A)))||void 0===e?void 0:e.label}),[A,m]),U=(0,d.useMemo)((()=>h&&L&&L!==q?m.filter((e=>{var n,t,i;return null===(i=null===(t=null===(n=null==e?void 0:e.label)||void 0===n?void 0:n.toLowerCase())||void 0===t?void 0:t.trim())||void 0===i?void 0:i.startsWith(L.toLowerCase().trim())})):m),[m,L,h,q]),$=e=>()=>{const{value:n,label:t}=e;g({target:{value:n}}),k(t),V()};(0,d.useEffect)((()=>{const e=U.findIndex((e=>e.value===A));R?S(e):k(-1===e?"":U[e].label)}),[R,U,A]);const z=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),R?S((n=>{let t=0;null!==n&&(t="ArrowDown"===e.key?Math.min(U.length-1,n+1):Math.max(0,n-1));const i=document.querySelector(`.frankie-select-option-${t}`);return null==i||i.scrollIntoView({behavior:"smooth",block:"nearest"}),t})):M();break;case"Enter":if(null!==I){const{value:e,label:n}=U[I];g({target:{value:e}}),k(n),V(),S(null)}break;case"Escape":V();break;default:h||e.preventDefault()}};return(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full",e,{"f1-pointer-events-none":t}),"data-testid":null==p?void 0:p.container,ref:P,children:[(l||c)&&(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,je.A)("grow","f1-py-2"),children:(0,i.jsx)("label",{htmlFor:o,className:(0,je.A)("f1-text-sm","f1-font-medium","f1-text-[#1F2A37]"),"data-testid":null==p?void 0:p.label,children:l})}),(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-[#1F2A37]"),"data-testid":null==p?void 0:p.tag,children:c})]}),(0,i.jsxs)("div",{className:(0,je.A)("f1-relative","frankie-select-field-container"),children:[(0,i.jsx)("input",{id:o,name:o,"aria-label":o,ref:e=>{D.current=e,"function"==typeof O?O(e):O&&(O.current=e)},className:(0,je.A)("f1-w-full","f1-px-[16px]","f1-py-[14px]","border-slate-300","rounded-xl",n,"focus:f1-outline-[0.1px]","f1-border","f1-border-solid","f1-rounded-sm",{"focus:f1-outline-[#2B67F9] ":!a},{"focus:f1-outline-tertiary-red-500":a},"f1-pl-4","f1-box-border","f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":a,"f1-placeholder-tertiary-red-600":a,"!f1-text-tertiary-red-600":a,"f1-bg-[#FDF2F2]":a,"f1-border-tertiary-grey-300":!a}),placeholder:s,disabled:t,type:"text",value:null!=j?j:L,"data-testid":null==p?void 0:p.input,onBlur:v,onChange:e=>{k(e.target.value),R||M()},onClick:e=>{b&&b(e),t||_()},onFocus:y,required:E,onKeyDown:z,autoComplete:"off"}),(0,i.jsx)("div",{className:"f1-relative ",children:R&&(0,i.jsx)("ul",{className:(0,je.A)("frankie-select-options","f1-max-h-64","f1-overflow-scroll","f1-absolute","f1-z-50","f1-bg-mono-white","f1-shadow-md","f1-rounded-sm","f1-p-0",N,{"f1-w-full":!N.length},"f1-scrollbar-sm","f1-overflow-x-hidden","f1-mt-0"),children:U.length>0?U.map(((e,n)=>(0,i.jsx)("li",{role:"option","aria-selected":n===I,onClick:$(e),onKeyDown:z,className:(0,je.A)("f1-list-none","f1-p-4","f1-text-md","f1-hover:bg-grey-300","text-gray-800","cursor-pointer","f1-m-0","focus:f1-bg-primary-50",{"f1-bg-primary-50":n===I},{"hover:f1-bg-tertiary-grey-100":n!==I},`frankie-select-option-${n}`),"data-testid":e.testId,children:e.label},e.value))):(0,i.jsx)("li",{className:(0,je.A)("f1-text-sm","f1-py-2","f1-px-4"),children:C})})}),!(x&&L)&&(0,i.jsx)("img",{onClick:()=>{!R&&D.current&&D.current.focus(),_()},className:(0,je.A)("f1-absolute","f1-bottom-[13px]","f1-right-3","text-tertiary-grey-500","f1-cursor-pointer","f1-fill-tertiary-red-600"),src:null!==(B=null==p?void 0:p.mockImg)&&void 0!==B?B:R?a?ye.chevronUpError:ye.chevronUp:a?ye.chevronDownError:ye.chevronDown}),!!f&&f,x&&!!L&&(0,i.jsx)("img",{"data-testid":null==p?void 0:p.closeCta,onClick:()=>{g({target:{value:void 0}}),k("")},className:(0,je.A)("f1-absolute","f1-bottom-[13px]","f1-right-3","f1-cursor-pointer"),src:null!==(T=null==p?void 0:p.mockImg)&&void 0!==T?T:a?ye.closeError:ye.close})]}),(0,i.jsx)("div",{className:(0,je.A)("f1-flex"),children:(u||r)&&!w&&(0,i.jsx)("div",{className:(0,je.A)("f1-grow","f1-text-mono-70","f1-pt-1","f1-text-sm"),children:(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-initial","f1-items-center",{"f1-text-tertiary-red-600":a}),children:(0,i.jsxs)("div",{"data-testid":null==p?void 0:p.supportingText,className:(0,je.A)("f1-flex","f1-text-tertiary-red-600","f1-text-[14px]"),children:[a&&(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:null!==(F=null==p?void 0:p.mockImg)&&void 0!==F?F:ye.alertCircleOutline}),a?r:u]})})})})]})}));const ot=(0,d.forwardRef)(((e,n)=>{var{name:t,control:a,defaultValue:r,options:l,rules:o,shouldUnregister:s,onChange:d}=e,u=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["name","control","defaultValue","options","rules","shouldUnregister","onChange"]);return(0,i.jsx)(Xn.xI,{render:({field:e,formState:{errors:a}})=>{var r;return(0,i.jsx)(lt,Object.assign({errorText:null===(r=a[t])||void 0===r?void 0:r.message,options:l},u,e,{error:!!it(t,a),onChange:n=>{e.onChange(n),n.target.name=t,n.target.selected=l.find((e=>e.value==n.target.value)),d&&d(n)},onBlur:n=>{e.onBlur(),(null==u?void 0:u.onBlur)&&u.onBlur(n)},ref:n}))},control:a,name:t,defaultValue:r,rules:o,shouldUnregister:s})})),st=({label:e,expiryDate:n=!1,helperText:t,calendarConfig:a,name:r,control:l,testid:o={container:"",error:"",mockImg:null},testingData:s=null})=>{var u,c,f;const m=(0,d.useMemo)((()=>{var e;return null===(e=l._formValues[r])||void 0===e?void 0:e.split("-")}),[l._formValues[r]]),p=(0,d.useMemo)((()=>n&&(null==m?void 0:m.length)>2),[n,m]),A=(0,d.useMemo)((()=>n?null:3===(null==m?void 0:m.length)?null==m?void 0:m[0]:null),[n]),{field:v,formState:g}=(0,Xn.as)({name:`${r}-dd`,control:l,defaultValue:null!==(u=null==s?void 0:s.split("-")[`${n?null:0}`])&&void 0!==u?u:A}),b=(0,d.useMemo)((()=>{var e,t,i,a;return n?p?+(null!==(e=null==m?void 0:m[1])&&void 0!==e?e:0):+(null!==(t=null==m?void 0:m[0])&&void 0!==t?t:0):3===(null==m?void 0:m.length)?+(null!==(i=null==m?void 0:m[1])&&void 0!==i?i:0):+(null!==(a=null==m?void 0:m[0])&&void 0!==a?a:0)}),[n]),{field:y,formState:h}=(0,Xn.as)({name:`${r}-mm`,control:l,defaultValue:null!==(c=null==s?void 0:s.split("-")[""+(n?0:1)])&&void 0!==c?c:b}),x=(0,d.useMemo)((()=>{var e,t,i,a,r,l,o,s;return 0==(n?p?+(null!==(e=null==m?void 0:m[2])&&void 0!==e?e:0):+(null!==(t=null==m?void 0:m[1])&&void 0!==t?t:0):3===(null==m?void 0:m.length)?+(null!==(i=null==m?void 0:m[2])&&void 0!==i?i:0):+(null!==(a=null==m?void 0:m[1])&&void 0!==a?a:0))?"":n?p?+(null!==(r=null==m?void 0:m[2])&&void 0!==r?r:0):+(null!==(l=null==m?void 0:m[1])&&void 0!==l?l:0):3===(null==m?void 0:m.length)?+(null!==(o=null==m?void 0:m[2])&&void 0!==o?o:0):+(null!==(s=null==m?void 0:m[1])&&void 0!==s?s:0)}),[n]),{field:E,formState:C}=(0,Xn.as)({name:`${r}-yyyy`,control:l,defaultValue:null!==(f=null==s?void 0:s.split("-")[""+(n?1:2)])&&void 0!==f?f:x});function w(){return mn.c9.now().toISODate()}(0,d.useEffect)((()=>{const e=A,n=b,t=x;e&&v.onChange(e),n&&y.onChange(n),t&&E.onChange(t)}),[A,b,x]);const j=(()=>{var e,n;const t=mn.c9.fromISO(w()).minus({years:null===(e=null==a?void 0:a.age)||void 0===e?void 0:e.max}).toISODate(),i=mn.c9.fromISO(w()).minus({years:null===(n=null==a?void 0:a.age)||void 0===n?void 0:n.min}).toISODate();return{maxValidYear:null==t?void 0:t.split("-")[0],minValidYear:null==i?void 0:i.split("-")[0],validMonth:null==t?void 0:t.split("-")[1],validDay:null==t?void 0:t.split("-")[2],minDateRange:i,maxDateRange:t}})();return(0,i.jsx)(Xn.xI,{control:l,name:r,render:({field:s,fieldState:{error:u}})=>{var c,f,A,b,x,w,N,O,B,T,F,I,S,L,k,D,P,R,M,_,V,q,U,$,z,Y;const H=(({calenderType:e=Un.Gregorian,localeType:n=$n.English,monthNameLength:t=qn.SHORT})=>{const i=[];let a=1;const r=e===Un.Islamic||e===Un.IslamicUmalqura?13:12;for(let l=0;l<r;l++){const r=new Date(2e3,l,1);let o=new Intl.DateTimeFormat(n,{month:t,calendar:e}).formatToParts(r).find((e=>"month"===e.type)).value;o=zn.find((e=>e.toLocaleLowerCase()===o.toLocaleLowerCase()))?o.slice(0,3):o,i.push({label:o,value:+a}),a++}return i})({calenderType:null==a?void 0:a.type,localeType:null==a?void 0:a.locale,monthNameLength:qn.LONG}),W=(0,d.useMemo)((()=>{var e;return null===(e=null==s?void 0:s.value)||void 0===e?void 0:e.split("-")}),[s.value]),G=n?"":3===(null==m?void 0:m.length)?null==W?void 0:W[0]:"",Z=null!==(c=null==W?void 0:W[""+(n?p?1:0:3===(null==m?void 0:m.length)?1:0)])&&void 0!==c?c:"",K=null!==(f=null==W?void 0:W[""+(n?p?2:1:3===(null==m?void 0:m.length)?2:1)])&&void 0!==f?f:"",J=(0,d.useCallback)((()=>n?"":G?`${G}-`:""),[G,n]);(0,d.useEffect)((()=>{s.onChange(n?`${Z}-${K}`:`${G}-${Z}-${K}`)}),[n]);const X=(0,d.useMemo)((()=>{const{minDateRange:e,maxDateRange:t}=j,i=e=>mn.c9.fromISO(e).toMillis(),a=i(n?`${K}-${Z}-01`:`${K}-${Z}-${G}`);return i(t)<=a&&a<=i(e)}),[G,Z,K]),Q=()=>{const e=(null==g?void 0:g.errors[`${r}-dd`])||(null==h?void 0:h.errors[`${r}-mm`])||(null==C?void 0:C.errors[`${r}-yyyy`]);return{errorInfo:e,errorMessage:null==e?void 0:e.message}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,je.A)("f1-w-full","f1-py-2"),"data-testid":o.container,children:(0,i.jsx)("label",{htmlFor:r,className:(0,je.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full","f1-py-2"),children:e})}),(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full","f1-h-auto","f1-flex","f1-justify-between","f1-gap-3","f1-relative",{"f1-mb-2":u||!!(null===(b=null===(A=Q())||void 0===A?void 0:A.errorMessage)||void 0===b?void 0:b.length)}),children:[!n&&(0,i.jsx)(tt,Object.assign({},v,{type:"number",name:`${r}-dd`,placeholder:(null===(x=null==a?void 0:a.day)||void 0===x?void 0:x.placeholder)||"Day",control:l,hideError:!0,shouldUnregister:!0,onChange:e=>s.onChange(Cn(`${!n&&e.target.value||""}-${Z||""}-${K||""}`)),rules:{deps:[`${r}-dd`,`${r}-mm`,`${r}-yyyy`],required:{value:!!(null===(w=null==a?void 0:a.day)||void 0===w?void 0:w.required),message:(null==a?void 0:a.message)||"Please enter valid date"},maxLength:{value:2,message:(null==a?void 0:a.message)||"Please enter valid date"},pattern:{value:new RegExp(Vn.onlyNumbers.value),message:(null==a?void 0:a.message)||"Please enter valid date"},validate:e=>{var n;const t=function({month:e=0,year:n=0,calendarType:t=Un.Gregorian}){e=isNaN(e)?0:e,n=isNaN(n)?0:n;const i=new Date(n,e,0),a=new Intl.DateTimeFormat(void 0,Object.assign(Object.assign({},{year:"numeric",month:"numeric",day:"numeric"}),{calendar:t})).formatToParts(i).find((e=>"day"===e.type)).value;return parseInt(a,10)}({month:Z,year:K,calendarType:null==a?void 0:a.type});return parseInt(e)>0&&((null==a?void 0:a.age)?X:parseInt(e)<=t)||(null===(n=null==a?void 0:a.age)||void 0===n?void 0:n.message)||(null==a?void 0:a.message)||"Please enter a valid date"}}})),(0,i.jsx)(ot,Object.assign({testid:{mockImg:null==o?void 0:o.mockImg},control:l,name:`${r}-mm`,ulClassName:(0,je.A)({"f1-w-[206.5%]":n},{"f1-w-[210.5%]":!n})},y,{shouldUnregister:!0,options:H,placeholder:(null===(N=null==a?void 0:a.month)||void 0===N?void 0:N.placeholder)||"Month",emptyText:"No record found",hideError:!0,onChange:e=>{var n;s.onChange(Cn(`${J()}${(null!==(n=e.target.value)&&void 0!==n?n:Z)||""}-${K||""}`))},rules:{deps:[`${r}-dd`,`${r}-mm`,`${r}-yyyy`],required:{value:null===(O=null==a?void 0:a.month)||void 0===O?void 0:O.required,message:(null==a?void 0:a.message)||"Please enter valid month"},validate:e=>{var n;return parseInt(e)>0&&((null==a?void 0:a.age)?X:parseInt(e)<=12)||(null===(n=null==a?void 0:a.age)||void 0===n?void 0:n.message)||(null==a?void 0:a.message)||"Please enter a valid month"}},autocomplete:!0})),(0,i.jsx)(tt,Object.assign({type:"number",control:l},E,{placeholder:(null===(B=null==a?void 0:a.year)||void 0===B?void 0:B.placeholder)||"Year",hideError:!0,name:`${r}-yyyy`,shouldUnregister:!0,onChange:e=>{s.onChange(Cn(`${J()}${Z||""}-${e.target.value||""}`))},rules:{deps:[`${r}-dd`,`${r}-mm`,`${r}-yyyy`],required:{value:!!(null===(T=null==a?void 0:a.year)||void 0===T?void 0:T.required),message:(null==a?void 0:a.message)||"Please enter year"},min:{value:(null==a?void 0:a.age)?+j.maxValidYear:1900,message:(null===(F=null==a?void 0:a.age)||void 0===F?void 0:F.message)||(null==a?void 0:a.message)||"Please enter a valid year"},max:{value:(null==a?void 0:a.age)?+j.minValidYear:null!==(I=null==a?void 0:a.maxYear)&&void 0!==I?I:(new Date).getFullYear(),message:(null===(S=null==a?void 0:a.age)||void 0===S?void 0:S.message)||(null==a?void 0:a.message)||"Please enter a valid year"},minLength:{value:4,message:(null==a?void 0:a.message)||"Please enter a valid year"},maxLength:{value:4,message:(null==a?void 0:a.message)||"Please enter a valid year"},pattern:{value:new RegExp(Vn.onlyNumbers.value),message:(null==a?void 0:a.message)||"Please enter numeric vale only"}}}))]})]}),((null==t?void 0:t.length)||!n&&(null===(D=null===(k=null===(L=null==g?void 0:g.errors[`${r}-dd`])||void 0===L?void 0:L.message)||void 0===k?void 0:k.toString())||void 0===D?void 0:D.length)||(null===(M=null===(R=null===(P=null==h?void 0:h.errors[`${r}-mm`])||void 0===P?void 0:P.message)||void 0===R?void 0:R.toString())||void 0===M?void 0:M.length)||(null===(q=null===(V=null===(_=null==C?void 0:C.errors[`${r}-yyyy`])||void 0===_?void 0:_.message)||void 0===V?void 0:V.toString())||void 0===q?void 0:q.length))&&(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-[-4px]","f1-text-[14px]"),"data-testid":o.error,children:[!!(null===($=null===(U=Q())||void 0===U?void 0:U.errorMessage)||void 0===$?void 0:$.length)&&(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-text-tertiary-red-600"),children:[(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:null!==(z=o.mockImg)&&void 0!==z?z:ye.alertCircleOutline,alt:"error icon"}),null===(Y=Q())||void 0===Y?void 0:Y.errorMessage]}),(0,i.jsx)("div",{className:(0,je.A)("f1-text-tertiary-grey-500"),children:t})]})})]})}})};var dt=t(3560),ut=t.n(dt);const ct=({toggleConfig:e,options:n=[{label:"Yes",value:!0},{label:"No",value:!1}],onChange:t,error:a,helperText:r,currentValue:l,testid:o={label:"",optionsMapper:"",textWrapper:"",options:"",mockImg:null}})=>{var s;return(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full"),children:[(null==e?void 0:e.label)&&(0,i.jsx)("div",{"data-testid":o.label,className:(0,je.A)("f1-w-full","f1-bg-white","f1-border","f1-rounded-sm","f1-py-2","f1-focus:outline-none"),children:(0,i.jsx)("div",{className:(0,je.A)("grow"),children:(0,i.jsx)("label",{className:(0,je.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full"),children:null==e?void 0:e.label})})}),(0,i.jsx)("div",{"data-testid":o.optionsMapper,className:(0,je.A)("frankie-text-field-container","f1-flex","f1-justify-between","f1-items-center"),children:n.map((e=>(0,i.jsx)("div",{"data-testid":o.options,tabIndex:0,className:(0,je.A)("f1-border","f1-border-solid",{"f1-border-tertiary-grey-300":!a},{"f1-border-tertiary-red-700":a},"f1-w-[48%]","f1-h-[48px]","f1-flex","f1-justify-center","f1-items-center","hover:f1-bg-primary-container","f1-cursor-pointer","f1-rounded-l-sm","f1-border-r-sm","f1-rounded-sm",{"hover:f1-border-primary-container":!a},{"!f1-border-primary-container":e.value===l},{"f1-bg-primary-container":e.value===l}),onClick:()=>t&&t(e.value),children:e.label},e.label)))}),(0,i.jsx)("div",{className:(0,je.A)("f1-flex"),children:(r||a)&&(0,i.jsx)("div",{"data-testid":o.textWrapper,children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-1","f1-mt-1","f1-text-[14px]"),children:[(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-text-tertiary-red-600"),children:[a?(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:null!==(s=o.mockImg)&&void 0!==s?s:ye.alertCircleOutline}):"",a&&a]}),(0,i.jsx)("div",{className:(0,je.A)("f1-text-tertiary-grey-500"),children:r})]})})})]})},ft=({onActionChange:e,control:n,config:t,testid:a=null,onChange:r})=>{const l=(0,d.useCallback)((e=>{var n,t,l,o,s,d,u,c,f;const m=Object.assign(Object.assign({},e),{rules:Object.assign(Object.assign({},null!==(n=null==e?void 0:e.rules)&&void 0!==n?n:{}),(null===(t=null==e?void 0:e.rules)||void 0===t?void 0:t.pattern)&&{pattern:Object.assign(Object.assign({},null===(l=null==e?void 0:e.rules)||void 0===l?void 0:l.pattern),{value:new RegExp(null===(s=null===(o=null==e?void 0:e.rules)||void 0===o?void 0:o.pattern)||void 0===s?void 0:s.value)})})});return{input:(null==m?void 0:m.showToggle)?(0,i.jsx)(wt,{config:m,type:null!==(d=null==m?void 0:m.type)&&void 0!==d?d:"text",onChange:r}):(0,i.jsx)(tt,Object.assign({},m,{type:null!==(u=null==m?void 0:m.type)&&void 0!==u?u:"text",onChange:r})),select:(0,i.jsx)(ot,Object.assign({},m,{autocomplete:!0,hideError:!1,errorText:null===(f=null===(c=null==m?void 0:m.rules)||void 0===c?void 0:c.required)||void 0===f?void 0:f.message,testid:a,onChange:r}))}}),[t]);return(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-[12px]"),children:[null==t?void 0:t.map(((e,a)=>{var r,o,s;const d=Object.assign(Object.assign({},e),{control:n});return(null==e?void 0:e.hide)?null:(0,i.jsx)("div",{className:(0,je.A)("f1-w-full",Ee.formField),style:Object.assign(Object.assign({},null!==(o=null===(r=null==t?void 0:t.style)||void 0===r?void 0:r[Ee.formField])&&void 0!==o?o:{}),null===(s=null==e?void 0:e.style)||void 0===s?void 0:s[Ee.formField]),children:l(d)[e.fieldType]},`manual-address-${a}-${e.name}`)})),(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)("span",{className:(0,je.A)("f1-text-[16px]","f1-text-primary-700","f1-cursor-pointer"),onClick:()=>e(!1),children:"Use address search"})})]})};var mt,pt=t(2543),At=t(4585);!function(e){e.PREMISE="premise",e.FLOOR="floor",e.SUBLOCALITY_LEVEL_1="sublocality_level_1",e.ROUTE="route",e.STREET_ADDRESS="street_address",e.LOCALITY="locality",e.ADMINISTRATIVE_AREA_LEVEL_1="administrative_area_level_1",e.COUNTRY="country",e.POSTAL_CODE="postal_code",e.STREET_NUMBER="street_number",e.SUB_PREMISE="subpremise"}(mt||(mt={}));class vt extends At.p{constructor(e){var n;super(),Object.defineProperty(this,"fullAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"streetAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e.address_components,i=e=>{const n=[mt.COUNTRY,mt.ADMINISTRATIVE_AREA_LEVEL_1],i=t.find((n=>n.types.includes(e)));return i?i[n.includes(e)?"short_name":"long_name"]:null};this.longForm=e.formatted_address,this.fullAddress=e.formatted_address,this.buildingName=i(mt.PREMISE),this.state=i(mt.ADMINISTRATIVE_AREA_LEVEL_1),this.streetNumber=i(mt.STREET_NUMBER),this.suburb=i(mt.SUBLOCALITY_LEVEL_1),this.town=i(mt.LOCALITY),this.country=i(mt.COUNTRY),this.postalCode=i(mt.POSTAL_CODE),this._streetName=i(mt.ROUTE)||i(mt.STREET_ADDRESS),this.streetAddress=`${this.streetNumber||""} ${this._streetName||""}`.trim(),this.country=2===(null===(n=this.country)||void 0===n?void 0:n.length)?(0,An.Tm)(this.country):this.country,this.unitNumber=i(mt.SUB_PREMISE)}}var gt=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const bt=()=>{const{googleApiKey:e}=(0,d.useContext)(Ii),n=e=>new Promise(((n,t)=>{const i=new google.maps.Geocoder,a=[];e.forEach((e=>{const n={placeId:e.value},t=new Promise(((t,a)=>{i.geocode(n,((n,i)=>{if(i===google.maps.GeocoderStatus.OK){const i=new vt(n[0]);i.label=e.label,i.value=e.value,t(i)}else a(new Error("Geocode request failed"))}))}));a.push(t)})),Promise.all(a).then((e=>n(e))).catch((e=>t(e)))}));return{getAddressList:(t,i,a=[])=>new Promise((r=>{(0,pt.debounce)((()=>gt(void 0,void 0,void 0,(function*(){yield gt(void 0,void 0,void 0,(function*(){const n=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places`;(e=>{const n=document.getElementsByTagName("script");for(let t=0;t<n.length;t++)if(n[t].getAttribute("src")===e)return!0;return!1})(n)||(yield(0,l.loadAsyncAsset)(n,"script"))}));let o=[];if(t){const e={input:t,componentRestrictions:{country:a}};(new google.maps.places.AutocompleteService).getPlacePredictions(e,((e,t)=>{t==google.maps.places.PlacesServiceStatus.OK&&(o=e.map((e=>({label:e.description,value:e.place_id})))),n(o).then((e=>{i&&i(e),r(e)}))}))}else i&&i(o),r(o)}))),500)()})),getFullAddress:n}},yt=({inputClass:e="",iconInputClass:n="",loadingText:t=""})=>(0,i.jsx)("li",{className:(0,je.A)("f1-text-sm","f1-flex","f1-justify-center","f1-list-none",e),children:(0,i.jsxs)("span",{className:(0,je.A)("f1-flex","f1-flex-col","f1-justify-center","f1-items-center","f1-gap-1","f1-text-sm","f1-text-tertiary-grey-500"),children:[(0,i.jsxs)("svg",{"aria-hidden":"true",className:(0,je.A)("f1-inline","f1-animate-spin","f1-fill-primary-600","f1-h-24","f1-w-24",n),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#e5e7eb"}),(0,i.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,i.jsx)("div",{children:t})]})}),ht=(0,d.forwardRef)((function({className:e="",inputClassName:n="",disabled:t=!1,error:a=!1,errorText:r="",label:l,name:o,placeholder:s="",helperText:u="",tag:c,badge:f,options:m,testid:p={container:"",input:"",label:"",tag:"",supportingText:"",closeCta:"",actionBtn:" ",mockImg:null},value:A,onBlur:v,onChange:g,onClick:b,onFocus:y,autocomplete:h=!1,clearable:x=!1,required:E,onActionChange:C,icon:w,autoSuggestion:j,autoSuggestShowAfter:N,actionLabel:O,loading:B=!1},T){var F,I,S,L,k;const[D,P]=(0,d.useState)(null),[R,M]=(0,d.useState)(""),_=(0,d.useRef)(null),{parentRef:V,isOpen:q,handleOpen:U,handleToggle:$,handleClose:z}=rt(),Y=(0,d.useMemo)((()=>{var e;return null===(e=m.find((e=>e.value===A)))||void 0===e?void 0:e.label}),[A,m]),H=(0,d.useMemo)((()=>h&&R&&R!==Y?m.filter((e=>e.label.toLowerCase().trim().startsWith(R.toLowerCase().trim()))):m),[m,R,h,Y]),W=e=>()=>{const{label:n}=e;g({target:{value:n}}),M(n),z()};(0,d.useEffect)((()=>{const e=H.findIndex((e=>e.value===A));q?P(e):M(-1===e?"":H[e].label)}),[q,H,A]);const G=()=>{g({target:{value:""}}),M("")},Z=e=>{var n;switch(e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),q?P((n=>{let t=0;null!==n&&(t="ArrowDown"===e.key?Math.min(H.length-1,n+1):Math.max(0,n-1));const i=document.querySelector(`.frankie-select-option-${t}`);return null==i||i.scrollIntoView({behavior:"smooth",block:"nearest"}),t})):U();break;case"Enter":if(null!==D&&(null==H?void 0:H[D])){const{value:e,label:t}=null!==(n=null==H?void 0:H[D])&&void 0!==n?n:{};g({target:{value:e}}),M(t),z(),P(null)}break;case"Escape":z();break;default:h||e.preventDefault()}},K=()=>{C&&C(!0)};(0,d.useEffect)((()=>{!function(){if(_.current){_.current.style.height="40px",_.current.style.height=_.current.scrollHeight+"px";const e=156;parseInt(_.current.style.height)>=e?_.current.style.overflowY="scroll":_.current.style.overflowY="hidden"}}()}),[null===(F=_.current)||void 0===F?void 0:F.value,G]);const J=(0,d.useCallback)((()=>(0,i.jsxs)(i.Fragment,{children:[(j?(null==m?void 0:m.length)>0:H.length>0)?(j?m:H).map(((e,n)=>(0,i.jsx)("li",{role:"option","aria-selected":n===D,onClick:W(e),onKeyDown:Z,className:(0,je.A)("f1-list-none","f1-text-md","f1-py-2","f1-px-4","f1-cursor-pointer","f1-text-tertiary-grey-700",{"f1-bg-primary-50":n===D,"f1-hover:bg-gray-100":n!==D},`frankie-select-option-${n}`),"data-testid":null==e?void 0:e.testId,children:e.label},e.value))):(0,i.jsx)("li",{className:(0,je.A)("f1-text-md","f1-py-2","f1-px-4","f1-list-none"),children:!m.length&&"No Results Available"}),O&&(0,i.jsx)("li",{className:(0,je.A)("f1-text-[16px]","f1-py-2","f1-px-4","f1-text-[#306ef9]","f1-cursor-pointer","f1-list-none"),"data-testid":p.actionBtn,onClick:K,children:O})]})),[m,D,H,j,O,p.actionBtn,B]);return(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full",e,t?"pointer-events-none":""),"data-testid":p.container,ref:V,children:[(l||c)&&(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-initial","f1-py-2"),children:[(0,i.jsx)("div",{className:"grow",children:(0,i.jsx)("label",{htmlFor:o,className:(0,je.A)("f1-text-sm","f1-font-medium","f1-w-full","f1-text-tertiary-grey-800"),"data-testid":p.label,children:l})}),(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-initial","f1-grow","f1-justify-end","f1-text-tertiary-grey-800"),"data-testid":p.tag,children:c})]}),(0,i.jsxs)("div",{className:(0,je.A)("f1-relative","frankie-select-field-container",{"f1-min-h-[52px]":a}),children:[(0,i.jsx)("textarea",{id:o,name:o,"aria-label":o,ref:e=>{_.current=e,"function"==typeof T?T(e):"object"==typeof T&&Object.assign(T.current,e)},className:(0,je.A)("f1-appearance-none","f1-w-full","f1-bg-white","f1-border","f1-rounded-sm","f1-px-[16px]","f1-py-[14px]","f1-focus:outline-[0.1px]","f1-box-border","f1-border",{"focus:f1-outline-[#2B67F9] ":!a},{"focus:f1-outline-tertiary-red-500":a},"f1-border-solid","f1-pr-10","f1-max-h-[150px]","f1-resize-none","f1-font-proxima-nova",n,"f1-text-md","f1-font-normal","f1-text-[#374151]",{"f1-border-tertiary-red-500":a,"f1-placeholder-tertiary-red-600":a,"!f1-text-tertiary-red-600":a,"f1-bg-[#FDF2F2]":a,"f1-border-tertiary-grey-300":!a}),placeholder:s,disabled:t,value:(null==R?void 0:R.length)?R:null!=A?A:"","data-testid":p.input,onBlur:v,onChange:e=>{M(e.target.value);const n=e.target.value;g({target:{value:n,isAutoSuggestChange:!0}}),q||U()},onClick:e=>{b&&b(e),t||$()},onFocus:y,required:E,onKeyDown:Z,autoComplete:"off"}),(0,i.jsx)("div",{className:"f1-relative",children:q&&(!N||R.length>=N||(null===(I=null==A?void 0:A.toString())||void 0===I?void 0:I.length)>=N)&&(0,i.jsx)("ul",{className:(0,je.A)("frankie-select-options","f1-p-1","f1-absolute","f1-z-50","f1-bg-mono-white","f1-m-0","f1-shadow-md","f1-rounded-sm","f1-top--1","f1-w-full","f1-box-border","f1-max-h-[193px]","f1-py-1","f1-overflow-y-auto","f1-scrollbar-sm","f1-overflow-x-hidden"),children:B?(0,i.jsx)(yt,{iconInputClass:(0,je.A)("!f1-h-8","!f1-w-8"),loadingText:"Loading..."}):(0,i.jsx)(J,{})})}),w&&!(x&&R)&&(0,i.jsx)("img",{onClick:b,className:(0,je.A)("f1-absolute","f1-top-[25.5%]","f1-right-3","f1-cursor-pointer"),src:null!==(S=p.mockImg)&&void 0!==S?S:a?ye.magnifyError:ye.magnify}),!!f&&f,x&&!!R&&(0,i.jsx)("img",{onClick:G,className:(0,je.A)("f1-absolute","f1-top-[25.5%]","f1-right-3","f1-text-tertiary-grey-500","f1-cursor-pointer"),"data-testid":p.closeCta,src:null!==(L=p.mockImg)&&void 0!==L?L:a?ye.closeError:ye.close})]}),(0,i.jsx)("div",{className:"f1-flex",children:(u||r)&&(0,i.jsx)("div",{className:(0,je.A)("f1-grow","f1-text-mono-70","f1-text-sm"),children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-1"),children:[(0,i.jsxs)("div",{"data-testid":p.supportingText,className:(0,je.A)("f1-flex",a?"f1-text-tertiary-red-600":"f1-text-tertiary-grey-500","f1-text-[14px]"),children:[a?(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:null!==(k=p.mockImg)&&void 0!==k?k:ye.alertCircleOutline,alt:"error"}):"",a&&r]}),(0,i.jsx)("div",{className:(0,je.A)("f1-text-tertiary-grey-500"),children:u})]})})})]})}));const xt=e=>{var{name:n,control:t,defaultValue:a,options:r,rules:l,isManual:o,shouldUnregister:s,autoSuggestion:d,onChange:u}=e,c=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["name","control","defaultValue","options","rules","isManual","shouldUnregister","autoSuggestion","onChange"]);return(0,i.jsx)(Xn.xI,{render:({field:e,fieldState:{error:n}})=>(0,i.jsx)(ht,Object.assign({options:r,errorText:null==n?void 0:n.message,error:!o&&!!(null==n?void 0:n.message),autoSuggestion:d},c,e,{onChange:n=>{var t,i;u&&u(n.target.value),(null===(t=n.target)||void 0===t?void 0:t.isAutoSuggestChange)&&(null===(i=n.target.value)||void 0===i?void 0:i.length)||e.onChange(n.target.value)}})),control:t,name:n,defaultValue:a,rules:l,shouldUnregister:s})};const Et=e=>{var{onActionChange:n,onSelect:t,isManual:a,control:r,label:l,autoSuggestShowAfter:o,autoSuggestion:s=!1,name:u,actionLabel:c,acceptedCountries:f}=e,m=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["onActionChange","onSelect","isManual","control","label","autoSuggestShowAfter","autoSuggestion","name","actionLabel","acceptedCountries"]);const[p,A]=(0,d.useState)([]),[v,g]=(0,d.useState)(!1),{getAddressList:b}=bt();return(0,d.useEffect)((()=>{g(!0),b(un()(r._formValues,u),A,f).finally((()=>{g(!1)}))}),[]),(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)(xt,Object.assign({control:r,name:u,options:p,label:l,autocomplete:!0,clearable:!0,onActionChange:n,isManual:a,icon:!0,loading:v,onChange:e=>{g(!0);const n=p.find((n=>n.label===e));n?(t(n),g(!1)):b(e,A,f).finally((()=>{g(!1)}))},autoSuggestion:s,autoSuggestShowAfter:o,actionLabel:c},m))})};const Ct=e=>{var{control:n,name:t,manualFieldConfig:a,isManual:r,label:l,actionLabel:o="Enter address manually",isOverrideCountry:s=!0}=e,u=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["control","name","manualFieldConfig","isManual","label","actionLabel","isOverrideCountry"]);const[c,f]=(0,d.useState)();(0,d.useEffect)((()=>{f(r)}),[r]),(0,d.useEffect)((()=>{var e;(null===(e=n._formValues.address)||void 0===e?void 0:e.isAddedByCustomer)&&(n._formValues.address.isAddedByCustomer=c)}),[c]);const m=()=>{var e;const i=t.split(".")[0],a=Nn(null===(e=n._formValues)||void 0===e?void 0:e[i]);ut()(n._formValues,t,a||"");const r=On(n._formValues,i);ut()(n._formValues,`${i}.streetNumber`,(null==r?void 0:r.streetNumber)||""),ut()(n._formValues,`${i}.streetName`,(null==r?void 0:r.streetName)||"")},p=e=>{f("searchable"===e),"manual"===e&&m()};return(0,i.jsx)(i.Fragment,{children:c?(0,i.jsx)(ft,{control:n,config:a,onActionChange:()=>p("manual"),onChange:m}):(0,i.jsx)(Et,Object.assign({label:l,onActionChange:()=>p("searchable"),onSelect:e=>{const i={address:e,address1:e},a=null==t?void 0:t.split(".")[0],r=fn()(un()(n._formValues,a),e);if(e&&r){const e=un()(i,"address.country");s&&"address"===a&&(null==e?void 0:e.length)&&ut()(n._formValues,"country",e),ut()(n._formValues,a,r)}},control:n,isManual:c,name:t,actionLabel:o,autoSuggestShowAfter:3,autoSuggestion:!0},u))})};const wt=e=>{var n,t,a,r,l,{config:o}=e,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t}(e,["config"]);const{toggleConfig:u}=o,{field:c,fieldState:f}=(0,Xn.as)({control:null==o?void 0:o.control,name:`${null==o?void 0:o.name}ShowToggle`,defaultValue:"",rules:(null===(t=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.required)||void 0===t?void 0:t.value)&&{validate:e=>{var n,t;return""!==e&&(![null].includes(e)||(null===(t=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.required)||void 0===t?void 0:t.message))}}});(0,d.useEffect)((()=>{c.onChange((()=>{var e,n,t;return!1===un()(null===(e=null==o?void 0:o.control)||void 0===e?void 0:e._formValues,`${null==o?void 0:o.name}ShowToggle`)&&ut()(null===(n=null==o?void 0:o.control)||void 0===n?void 0:n._formValues,null==o?void 0:o.name,""),un()(null===(t=null==o?void 0:o.control)||void 0===t?void 0:t._formValues,`${null==o?void 0:o.name}ShowToggle`)})())}),[null===(r=null===(a=null==o?void 0:o.control)||void 0===a?void 0:a._formValues)||void 0===r?void 0:r[null==o?void 0:o.name]]);const m={input:(0,i.jsx)(tt,Object.assign({},o,s,{helperText:""})),address:(0,i.jsx)(Ct,Object.assign({},o,{actionLabel:"previous_addr"===(null==o?void 0:o.dataType)?null:"Enter address manually"},s)),select:(0,i.jsx)(ot,Object.assign({},o,s))};return(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-[12px]"),children:[(0,i.jsx)(ct,Object.assign({},o,{onChange:e=>{c.onChange(c.value===e?null:e)},currentValue:c.value,error:null===(l=f.error)||void 0===l?void 0:l.message})),c.value&&(0,i.jsx)(i.Fragment,{children:m[null==o?void 0:o.fieldType]})]})},jt=(0,d.forwardRef)((({control:e,name:n,emptyText:t,label:a,options:r,placeholder:l,rules:o,type:s},u)=>{const{field:c,formState:f}=(0,Xn.as)({name:"code",control:e}),{field:m,formState:p}=(0,Xn.as)({name:"number",control:e});return(0,i.jsx)(Xn.xI,{control:e,name:n,render:({field:A})=>{var v,g,b,y;const h=A.value?A.value.split("-"):"-".split("-"),x=h[0],E=h[1];return(0,d.useEffect)((()=>{const e=c.value,n=m.value;x!==e&&x&&c.onChange(x),E!==n&&E&&m.onChange(E)}),[x,E,c,m]),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:(0,je.A)("f1-w-full","f1-py-2"),children:(0,i.jsx)("label",{htmlFor:n,className:(0,je.A)("f1-text-tertiary-grey-800","f1-text-sm","f1-font-medium","f1-w-full","f1-py-2"),children:a})}),(0,i.jsxs)("div",{className:(0,je.A)("f1-w-full","f1-h-auto","f1-flex","f1-relative",f.errors.code||p.errors.number?"f1-mb-6":"f1-mb-0"),ref:u,children:[(0,i.jsx)(ot,Object.assign({},c,{control:e,name:"code",placeholder:l.cc,emptyText:null!=t?t:"No record found",className:(0,je.A)("!f1-w-[138px]"),inputClassName:(0,je.A)("!f1-rounded-l-sm","!f1-border-r-[0px]","!f1-rounded-[0px]",{"!f1-bg-[#e8f0ff]":!f.errors.code}),options:null!=r?r:[],autocomplete:!0,rules:{required:null==o?void 0:o.required},hideError:!0,onChange:e=>{A.onChange(`${e.target.value||""}-${E||""}`)}})),(0,i.jsx)(tt,Object.assign({control:e},m,{type:s,inputClassName:(0,je.A)("!f1-rounded-r-sm","!f1-rounded-[0px]"),name:"number",placeholder:l.phoneNumber,rules:Object.assign({},o),hideError:!0,onChange:e=>{A.onChange(`${x||""}-${e.target.value||""}`)}})),(f.errors.code||f.errors.number)&&(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-1","f1-text-[14px]","f1-absolute","f1-left-0","f1-bottom-[-20px]"),children:(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-text-tertiary-red-600"),children:[(f.errors.code||f.errors.number)&&(0,i.jsx)("img",{className:(0,je.A)("f1-mr-1"),src:ye.alertCircleOutline}),(null===(g=null===(v=f.errors)||void 0===v?void 0:v.code)||void 0===g?void 0:g.message)||(null===(y=null===(b=f.errors)||void 0===b?void 0:b.number)||void 0===y?void 0:y.message)]})})})]})]})}})})),Nt=jt,Ot=({form:e,config:n,individualConfig:t,formFieldsType:a,previewImage:r=!0,isOverrideCountry:l=!0})=>{var o;const[s,u]=(0,d.useState)(null),[c,f]=(0,d.useState)(!1),{control:m}=e,{getFormConfig:p,modifyFormConfig:A}=Qn(),{getDefaultImage:v,documentFields:g,personalFields:b}=p({config:n,idType:t.idType,country:t.country,region:t.region}),y=(0,d.useMemo)((()=>{var e,n;const i=null===(e=null==t?void 0:t.personalIdv)||void 0===e?void 0:e.country,r=(null===(n=null==t?void 0:t.personalIdv)||void 0===n?void 0:n.country)?b.map((e=>{var n;return"address"===e.fieldType?Object.assign(Object.assign({},e),{manualFieldConfig:null===(n=null==e?void 0:e.manualFieldConfig)||void 0===n?void 0:n.map((e=>Object.assign(Object.assign({},e),{hide:e.hide||"address.state"===e.name&&"AUS"!==i})))}):e})):null;switch(a){case De.i.PERSONAL:return null!=r?r:b;case De.i.DOCUMENT:return null!=r?r:g;default:return[...null!=r?r:b,...g]}}),[b,g,t,n]),h=()=>v({country:t.country,region:t.region}),x=e=>{var n;if("NATIONAL_HEALTH_ID"===(null==t?void 0:t.idType))return;const i=(null===(n=y.find((n=>e.target.name===n.name)))||void 0===n?void 0:n.image)||h();u(i)},E=()=>{"NATIONAL_HEALTH_ID"!==(null==t?void 0:t.idType)&&u(h())};(0,d.useEffect)((()=>{var n,i;if("NATIONAL_HEALTH_ID"===t.idType){const t=e.getValues("idSubType"),a=null===(i=null===(n=y.find((e=>"idSubType"===e.name)))||void 0===n?void 0:n.options)||void 0===i?void 0:i.find((e=>e.value===t));f("G"===t),C({target:{value:t,selected:a}})}}),[t]);const C=e=>{var n,i,a,r,l;"NATIONAL_HEALTH_ID"===t.idType&&f("G"==(null===(n=e.target)||void 0===n?void 0:n.value)),(null===(a=null===(i=e.target)||void 0===i?void 0:i.selected)||void 0===a?void 0:a.icon)&&u(null===(l=null===(r=e.target)||void 0===r?void 0:r.selected)||void 0===l?void 0:l.icon)};(0,d.useEffect)((()=>{h()&&u(h)}),[n,h()]);const w=(0,d.useCallback)((e=>{var n;const t=A(e),a=()=>{var e;return(0,i.jsx)(wt,{config:t,type:null!==(e=null==t?void 0:t.type)&&void 0!==e?e:"text"})};return{input:(null==t?void 0:t.showToggle)?a():(0,i.jsx)(tt,Object.assign({},t,{onBlur:E,onFocus:x,type:null!==(n=null==t?void 0:t.type)&&void 0!==n?n:"text"})),date:(0,i.jsx)(st,Object.assign({},t,{expiryDate:["idExpiry"].includes(null==e?void 0:e.name)&&c})),select:(0,i.jsx)(ot,Object.assign({},t,{onChange:C,autocomplete:!0})),address:(null==t?void 0:t.showToggle)?a():(0,i.jsx)(Ct,Object.assign({},t,{isOverrideCountry:l})),phone:(0,i.jsx)(Nt,Object.assign({},t))}}),[n,t,t.country,t.region,t.idType,c]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("form",{className:(0,je.A)("f1-w-full","f1-h-auto","f1-flex","f1-flex-col","f1-justify-start","f1-items-start","f1-mx-auto","f1-border-2","f1-border-grey-100","f1-gap-[12px]","f1-box-border",Ee.formWrapper),style:null===(o=null==n?void 0:n.style)||void 0===o?void 0:o[Ee.formWrapper],children:null==y?void 0:y.map(((e,t)=>{var a,r,l;const o=Object.assign(Object.assign({},e),{control:m,inputClassName:(0,je.A)(Ee.formField)}),s=["previous_addr"];return(null==e?void 0:e.hide)||(null==s?void 0:s.includes(e.dataType))?null:(0,i.jsx)("div",{className:(0,je.A)("f1-w-full",Ee.formField),style:Object.assign(Object.assign({},null!==(r=null===(a=null==n?void 0:n.style)||void 0===a?void 0:a[Ee.formField])&&void 0!==r?r:{}),null===(l=null==e?void 0:e.style)||void 0===l?void 0:l[Ee.formField]),children:w(o)[e.fieldType]},`${e.name}-${t}`)}))}),s&&r&&(0,i.jsx)("div",{className:(0,je.A)("f1-mx-[21px]","f1-mt-6"),children:(0,i.jsx)("img",{src:s,className:(0,je.A)("f1-w-full")})})]})};var Bt=t(6104);class Tt extends At.p{constructor(e){super(e),Object.defineProperty(this,"fullAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"streetAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.streetAddress=`${(null==e?void 0:e.streetNumber)||""} ${(null==e?void 0:e.streetName)||""}`.trim()}}class Ft{constructor(e,n){Object.defineProperty(this,"records",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=[...e].sort(((e,n)=>{const t=e=>{var n,t,i;return new Date(null!==(t=null===(n=null==e?void 0:e.ocrResult)||void 0===n?void 0:n.runDate)&&void 0!==t?t:null===(i=null==e?void 0:e.extraData)||void 0===i?void 0:i.ocr_process_run_date)},i=t(e),a=t(n);return i||a?i?a?a.getTime()-i.getTime():-1:1:0}));this.records=new It(null==t?void 0:t[0],n)}}class It extends Bt.y{constructor(e,n){var t,i,a,r,l,o,s,d,u,c,f,m,p,A,v,g,b,y,h,x,E,C,w,j,N,O,B,T,F,I,S,L,k,D,P,R,M,_,V,q,U,$,z,Y,H,W,G,Z,K,J,X,Q,ee,ne,te,ie,ae,re,le,oe,se,de,ue,ce,fe,me,pe,Ae,ve,ge,be,ye,he;super(e),Object.defineProperty(this,"givenName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"middleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"familyName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extraData",{enumerable:!0,configurable:!0,writable:!0,value:{}});const xe=e=>{var n;return(null===(n=null==e?void 0:e.toString())||void 0===n?void 0:n.length)?null==e?void 0:e.toString():null},Ee=(0,pn.WL)(null!==(t=null==e?void 0:e.dateOfBirth)&&void 0!==t?t:xe(null===(i=null==e?void 0:e.ocrResult)||void 0===i?void 0:i.dateOfBirth)),Ce=(0,pn.WL)(null!==(a=this.idExpiry)&&void 0!==a?a:xe(null===(r=null==e?void 0:e.ocrResult)||void 0===r?void 0:r.dateOfExpiry));this.givenName=null!==(o=xe(null===(l=null==e?void 0:e.ocrResult)||void 0===l?void 0:l.firstName))&&void 0!==o?o:"",this.middleName=null!==(d=xe(null===(s=null==e?void 0:e.ocrResult)||void 0===s?void 0:s.middleName))&&void 0!==d?d:"",this.familyName=null!==(c=xe(null===(u=null==e?void 0:e.ocrResult)||void 0===u?void 0:u.lastName))&&void 0!==c?c:"",this.dateOfBirth=`${null!==(f=Ee.dd)&&void 0!==f?f:""}-${null!==(m=Ee.mm)&&void 0!==m?m:""}-${null!==(p=Ee.yyyy)&&void 0!==p?p:""}`,this.idExpiry=Ce?`${null!==(A=Ce.dd)&&void 0!==A?A:""}-${null!==(v=Ce.mm)&&void 0!==v?v:""}-${null!==(g=Ce.yyyy)&&void 0!==g?g:""}`:"",this.idType=null!==(b=null==e?void 0:e.idType)&&void 0!==b?b:"DRIVERS_LICENCE",this.region=null!==(N=null!==(w=null!==(C=null!==(x=null!==(h=null===(y=En().find((n=>{var t;return n.label.toLowerCase()===(null===(t=xe(null==e?void 0:e.region))||void 0===t?void 0:t.toLowerCase())})))||void 0===y?void 0:y.value)&&void 0!==h?h:xe(null==e?void 0:e.region))&&void 0!==x?x:xe(null===(E=null==e?void 0:e.ocrResult)||void 0===E?void 0:E.issuingState))&&void 0!==C?C:xe(null==n?void 0:n.state))&&void 0!==w?w:xe(null===(j=null==e?void 0:e.ocrResult)||void 0===j?void 0:j.state))&&void 0!==N?N:"",this.country=null!==(T=null!==(O=xe(null==e?void 0:e.country))&&void 0!==O?O:xe(null===(B=null==e?void 0:e.ocrResult)||void 0===B?void 0:B.issuingCountry))&&void 0!==T?T:"AUS",this.country=2===(null===(F=this.country)||void 0===F?void 0:F.length)?(0,An.Tm)(this.country):this.country,this.idNumber=null!==(L=null!==(I=xe(null==e?void 0:e.idNumber))&&void 0!==I?I:xe(null===(S=null==e?void 0:e.ocrResult)||void 0===S?void 0:S.idNumber))&&void 0!==L?L:"",this.extraData.reference=null!==(D=xe(null===(k=null==e?void 0:e.extraData)||void 0===k?void 0:k.reference))&&void 0!==D?D:xe(null===(P=null==e?void 0:e.ocrResult)||void 0===P?void 0:P.reference),this.extraData.document_number=null!==(M=xe(null===(R=null==e?void 0:e.extraData)||void 0===R?void 0:R.document_number))&&void 0!==M?M:"";const we=null!==(_=xe(null==n?void 0:n.country))&&void 0!==_?_:xe(null===(V=null==e?void 0:e.ocrResult)||void 0===V?void 0:V.issuingCountry);if(this.address=new Tt({addressId:null!==(q=xe(null==n?void 0:n.addressId))&&void 0!==q?q:xe(null===(U=null==e?void 0:e.ocrResult)||void 0===U?void 0:U.addressId),addressType:null!==(Y=null!==($=xe(null==n?void 0:n.addressType))&&void 0!==$?$:xe(null===(z=null==e?void 0:e.ocrResult)||void 0===z?void 0:z.addressType))&&void 0!==Y?Y:"RESIDENTIAL1",buildingName:null!==(H=xe(null==n?void 0:n.buildingName))&&void 0!==H?H:xe(null===(W=null==e?void 0:e.ocrResult)||void 0===W?void 0:W.buildingName),postalCode:null!==(G=xe(null==n?void 0:n.postalCode))&&void 0!==G?G:xe(null===(Z=null==e?void 0:e.ocrResult)||void 0===Z?void 0:Z.postcode),state:null!==(K=xe(null==n?void 0:n.state))&&void 0!==K?K:xe(null===(J=null==e?void 0:e.ocrResult)||void 0===J?void 0:J.state),streetName:null!==(X=xe(null==n?void 0:n.streetName))&&void 0!==X?X:xe(null===(Q=null==e?void 0:e.ocrResult)||void 0===Q?void 0:Q.street),streetNumber:null!==(ee=xe(null==n?void 0:n.streetNumber))&&void 0!==ee?ee:xe(null===(ne=null==e?void 0:e.ocrResult)||void 0===ne?void 0:ne.streetNumber),suburb:null!==(te=xe(null==n?void 0:n.suburb))&&void 0!==te?te:xe(null===(ie=null==e?void 0:e.ocrResult)||void 0===ie?void 0:ie.suburb),town:null!==(ae=xe(null==n?void 0:n.town))&&void 0!==ae?ae:xe(null===(re=null==e?void 0:e.ocrResult)||void 0===re?void 0:re.town),unitNumber:null!==(le=xe(null==n?void 0:n.unitNumber))&&void 0!==le?le:xe(null===(oe=null==e?void 0:e.ocrResult)||void 0===oe?void 0:oe.unitNumber),country:2===(null==we?void 0:we.length)?(0,An.Tm)(we):we}),this.address.fullAddress=null!==(ue=null!==(se=xe(null==n?void 0:n.longForm))&&void 0!==se?se:xe(null===(de=null==e?void 0:e.ocrResult)||void 0===de?void 0:de.address))&&void 0!==ue?ue:xe(null===(ce=null==e?void 0:e.ocrResult)||void 0===ce?void 0:ce.address1),(null===(fe=this.address.town)||void 0===fe?void 0:fe.length)||(this.address.town=null===(me=this.ocrResult)||void 0===me?void 0:me.addressCity),"RESIDENTIAL"===(null===(pe=this.address)||void 0===pe?void 0:pe.addressType)&&(this.address.addressType="RESIDENTIAL1"),null===(Ae=this.address.fullAddress)||void 0===Ae?void 0:Ae.length){const{streetName:e,streetNumber:n,streetAddress:t,remainingInfo:i}=(e=>{var n,t,i,a,r,l;let o,s,d=null===(n=null==e?void 0:e.split(","))||void 0===n?void 0:n[0],u=null==d?void 0:d.split("/");return d=(null==u?void 0:u.length)>1?null==u?void 0:u[1]:d,u=d.split(" "),isNaN(Number((null==u?void 0:u[0])||""))?(o="",s=null===(a=(null==u?void 0:u.join(" "))||"")||void 0===a?void 0:a.trim()):(o=(null==u?void 0:u[0])||"",s=null===(i=null===(t=u.slice(1))||void 0===t?void 0:t.join(" "))||void 0===i?void 0:i.trim()),{streetNumber:o,streetName:s,streetAddress:`${o} ${s}`.trim(),remainingInfo:null===(l=null===(r=null==e?void 0:e.split(","))||void 0===r?void 0:r.slice(1))||void 0===l?void 0:l.join(",")}})(this.address.fullAddress);(null===(be=null===(ge=null===(ve=this.address)||void 0===ve?void 0:ve.streetNumber)||void 0===ge?void 0:ge.toString())||void 0===be?void 0:be.length)||(this.address.streetAddress=t,this.address.streetNumber=n),(null===(he=null===(ye=this.address)||void 0===ye?void 0:ye.streetName)||void 0===he?void 0:he.length)||(this.address.streetAddress=`${t}, ${i}`.trim(),this.address.streetName=`${e}, ${i}`.trim())}}}var St=t(6924),Lt=t.n(St);const kt=e=>{const n=mn.c9.fromISO(e),t=n.toFormat("dd/LL/yyyy h:mm:ss a");return n.isValid?t:""},Dt={name:"CONSENT",mode:"individual",type:"manual",title:{label:"Your consent matters",style:{}},descriptions:[{label:'Your personal information being collected and used in accordance with [Company]\'s <a href="https://www.frankieone.com/privacy" target="_blank">Privacy Policy</a>.',style:{"ff-description-item":{}}},{label:"In addition, for the purposes of verifying your identity, you consent to: a) the verification of my personal information with credit bureau header files (for verification only); b) against records held by official document issues or official record holders via third party systems; and c) verification agent(s) acting as a nominated intermediary in accordance with Australian Privacy Principles.",style:{"ff-description-item":{}}},{label:"You consent to the use by third parties of the results of any verification checks on my identity for the purposes of monitoring and improving their verification services.",style:{"ff-description-item":{}}}],checkbox:{content:[{label:"I have read and agree the above disclosure",style:{"ff-description-item":{}}}],style:{}},cta:{icon:"",label:"Continue",style:{}},style:{}},Pt={country:{fieldType:"select",dataType:"text",hide:!1,options:wn().filter((e=>["AUS","NZL"].includes(e.value))),label:"Country of Driver’s Licence",name:"country",placeholder:"Please select",rules:{required:{value:!0,message:"Please select a country"}}},state:{fieldType:"select",name:"region",hide:!1,dataType:"text",label:"State or Territory of Issue",options:En("AUS"),placeholder:"Please select",rules:{required:{value:!0,message:"Please select your state"}}},licenceNumber:{fieldType:"input",dataType:"text",label:"Licence Number",placeholder:"e.g. 1234567890",name:"idNumber",image:ye.nzDriverLicence,rules:{required:{value:!0,message:"Please enter your licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},cardNumber:{fieldType:"input",dataType:"text",name:"extraData.document_number",label:"Card Number",placeholder:"e.g. 1234567890",helperText:"You will find your Card Number on the front of your card, running vertically alongside your photo.",image:ye.actIdDetails,rules:{required:{value:!0,message:"Please enter your card number"},minLength:{value:10,message:"Card number must be at least 10 digits"},maxLength:{value:10,message:"Card number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},passport:{fieldType:"input",dataType:"text",name:"idNumber",image:ye.ausPassport,label:"Passport Number",placeholder:"e.g. A1234567890",rules:{required:{value:!0,message:"Please enter your passport number"}}},date:{fieldType:"date",dataType:"text",name:"idExpiry",label:"Date of Expiry",rules:{required:{value:!0,message:"Please enter your passport’s expiry date"}},calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please enter your Medicare expiry date"}},cardColor:{fieldType:"select",dataType:"text",hide:!1,label:"Medicare Card Colour",name:"idSubType",rules:{required:{value:!0,message:"Please select your Medicare card colour"}},options:[{label:"Green",value:"G",icon:ye.greenMedicareCard},{label:"Blue",value:"B",icon:ye.blueMedicareCard},{label:"Yellow",value:"Y",icon:ye.yellowMedicareCard}],placeholder:"Select Medicare Card Colour",autocomplete:!0},medicareCardNumber:{fieldType:"input",hide:!1,label:"Medicare Card Number",dataType:"text",name:"idNumber",rules:{required:{value:!0,message:"Please enter your Medicare card number"},pattern:Vn.onlyNumbers,minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"}}},positionOnCard:{fieldType:"input",hide:!1,label:"Position on Card",dataType:"document_extra",name:"extraData.reference",rules:{required:{value:!0,message:"Please enter your position on card"},pattern:Vn.onlyNumbers,maxLength:{value:1,message:"Position on card must not exceed 1 digit"}}}},Rt=Object.assign(Object.assign({},Pt.country),{options:wn()}),Mt={name:"DOCUMENT",mode:"individual",type:"manual",numberOfIDs:1,title:{label:"Select your first ID"},subtitle:{label:"Your ID must be valid and not expired"},descriptions:[{label:"We need one form of ID document to verify your identity."}],documents:[{type:"DRIVERS_LICENCE",label:"Driver's licence",subtitle:"(recommended)",postIcon:ye.rightArrowIcon,icon:ye.driverLicenseIcon,countries:{default:{default:{fields:[Pt.country]}},NZL:{default:{image:ye.nzSampleCard,fields:[Pt.country,Object.assign(Object.assign({},Pt.licenceNumber),{rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{required:{value:!0,message:"Please enter your licence number"},pattern:Object.assign({},Vn.alphaNumeric)})}),{fieldType:"input",dataType:"number",label:"Version Number",placeholder:"e.g. 123",name:"extraData.licence_version",image:ye.nzVersionNumber,rules:{required:{value:!0,message:"Please enter your version number"},minLength:{value:3,message:"Version number must be at least 3 charecters"},maxLength:{value:3,message:"Version number must not exceed 3 charecters"},pattern:Object.assign({},Vn.onlyNumbers)}}]}},AUS:{default:{image:ye.driversLicenseBanner,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.actLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.actSampleCard})]},ACT:{image:ye.driversLicenseBanner,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.actLicenseNumber,rules:{required:{value:!0,message:"Please enter your licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.actSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{pattern:Object.assign({},Vn.alphaNumeric)})})]},NSW:{image:ye.nswIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.nswLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.nswSampleCard,helperText:"You will find your Card Number on the front of your card, in the top right corner above your photo."})]},NT:{image:ye.ntIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.ntLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:1,message:"Licence number must be at least 1 characters"},maxLength:{value:10,message:"Licence number must not exceed 10 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.ntSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:6,message:"Card number must be at least 6 charecters"},maxLength:{value:8,message:"Card number must not exceed 8 charecters"},pattern:Object.assign({},Vn.onlyNumbers)}),helperText:"The card number is located on the back of your card, either in the bottom left corner or bottom middle."})]},QLD:{image:ye.qldIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.qldLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:8,message:"Licence number must be at least 8 characters"},maxLength:{value:9,message:"Licence number must not exceed 9 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.qldSampleCard,helperText:"You will find your Card Number on the front of your card, in the bottom middle, or the back of your card, on the bottom right side.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{pattern:Object.assign({},Vn.alphaNumeric)})})]},SA:{image:ye.saIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.saLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:6,message:"Licence number must not exceed 6 characters"}})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.saSampleCard,helperText:"You will find your Card Number on the back of your card, in the top right corner.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:9,message:"Card number must be at least 9 charecters"},maxLength:{value:9,message:"Card number must not exceed 9 charecters"},pattern:Object.assign({},Vn.alphaNumeric)})})]},TAS:{image:ye.tasIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.tasLicenseNumber}),Object.assign(Object.assign({},Pt.cardNumber),{helperText:"You will find your Card Number on the back of your card, in the top right corner.",image:ye.tasSampleCard,rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{maxLength:{value:9,message:"Card number must not exceed 9 charecters"},minLength:{value:9,message:"Card number must be at least 9 charecters"},pattern:Object.assign({},Vn.alphaNumeric)})})]},VIC:{image:ye.vicIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.vicLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.vicSampleCard,placeholder:"e.g. P1234567",helperText:"You will find your Card Number on the back of your card, either in the top right corner or middle right.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:8,message:"Card number must be at least 8 digits"},maxLength:{value:8,message:"Card number must not exceed 8 digits"},pattern:Object.assign({},Vn.alphaNumeric)})})]},WA:{image:ye.waIdDetails,fields:[Pt.country,Pt.state,Object.assign(Object.assign({},Pt.licenceNumber),{image:ye.waLicenseNumber,rules:Object.assign(Object.assign({},Pt.licenceNumber.rules),{minLength:{value:7,message:"Licence number must be at least 7 characters"},maxLength:{value:7,message:"Licence number must not exceed 7 characters"},pattern:Object.assign({},Vn.onlyNumbers)})}),Object.assign(Object.assign({},Pt.cardNumber),{image:ye.waSampleCard,helperText:"You will find your Card Number on the back of your card, in the middle of the right side.",rules:Object.assign(Object.assign({},Pt.cardNumber.rules),{minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)})})]}}}},{type:"PASSPORT",label:"Passport",postIcon:ye.rightArrowIcon,icon:ye.passportIcon,countries:{default:{default:{image:ye.internationPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Pt.passport]}},AUS:{default:{image:ye.ausPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{rules:Object.assign(Object.assign({},Pt.passport.rules),{minLength:{value:8,message:"Passport number must be at least 8 characters"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}})})]}},NZL:{default:{image:ye.nzPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{image:ye.nzPassport,rules:Object.assign({},Pt.passport.rules)}),Object.assign(Object.assign({},Pt.date),{label:"Date of Expiry",rules:Object.assign(Object.assign({},Pt.date.rules),{required:{value:!0,message:"Please enter your passport’s expiry date"}}),calendarConfig:Object.assign(Object.assign({},Pt.date.calendarConfig),{maxYear:2030,message:"Please enter your passport’s expiry date"})})]}},IND:{default:{image:ye.internationPassport,fields:[Object.assign(Object.assign({},Rt),{label:"Passport Issuing Country"}),Object.assign(Object.assign({},Pt.passport),{image:ye.internationPassport,rules:Object.assign({},Pt.passport.rules)}),{fieldType:"input",name:"extraData.document_number",dataType:"document_extra",label:"File Number",placeholder:"e.g. ABCD12345678",rules:{required:{value:!0,message:"Please enter your File Number"}}}]}}}},{type:"NATIONAL_HEALTH_ID",label:"Medicare card",postIcon:ye.rightArrowIcon,icon:ye.medicalIcon,countries:{default:{default:{image:ye.greenMedicareCard,fields:[Pt.cardColor,Object.assign(Object.assign({},Pt.cardNumber),{name:"idNumber",label:"Medicare Card Number",helperText:"",rules:{required:{value:!0,message:"Please enter your Medicare card number"},minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}),Pt.positionOnCard,Object.assign(Object.assign({},Pt.date),{label:"Date of Expiry",rules:{required:{value:!0,message:"Please enter your Medicare expiry date"}},calendarConfig:Object.assign(Object.assign({},Pt.date.calendarConfig),{maxYear:2045,message:"Please enter your Medicare expiry date"})})]}}}}],cta:{label:"Next"}},_t=(e=!0,n)=>Object.assign(Object.assign({},Pt.country),{name:"country",label:n||"Country of Driver’s Licence",placeholder:"Select issuing country",options:e?wn():Pt.country.options,rules:Object.assign(Object.assign({},Pt.country.rules),{required:{value:!0,message:"Please select your issuing country"}})}),Vt=(e="AUS")=>({fieldType:"select",hide:!1,dataType:"text",label:"Driver's Licence State or Territory",name:"region",rules:{required:{value:!0,message:"Please select your driver's licence state or territory"},pattern:{value:"^(NSW|ACT|NT|QLD|SA|TAS|VIC|WA)$",message:"Please select your driver's licence state or territory"}},options:En(e),placeholder:"Select DL State or Territory"}),qt=()=>[{fieldType:"input",hide:!1,dataType:"text",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 characters"},maxLength:{value:15,message:"Licence number must not exceed 15 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",hide:!1,dataType:"text",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:1,message:"Card number must be at least 1 characters"},maxLength:{value:15,message:"Card number must not exceed 15 character"},pattern:Object.assign({},Vn.alphaNumeric)}}],Ut={name:"REVIEW",title:{label:"Are your details correct?",style:{"ff-title":{}}},personal:{countries:{default:{default:{fields:[...Yn]}}}},documents:[{type:"DRIVERS_LICENCE",countries:{default:{default:{fields:[_t(),...qt()]}},AUS:{default:{fields:[_t(),Vt(),...qt()]},ACT:{fields:[_t(),Vt(),{fieldType:"input",name:"idNumber",dataType:"number",label:"Licence Number",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)},style:{"ff-form-field":{}}},{fieldType:"input",label:"Card Number",name:"extraData.document_number",dataType:"number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},NSW:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 digits"},maxLength:{value:10,message:"Card number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}]},NT:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:6,message:"Card number must be at least 6 digits"},maxLength:{value:8,message:"Card number must not exceed 8 digits"},pattern:Object.assign({},Vn.onlyNumbers)}}]},QLD:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:8,message:"Licence number must be at least 8 characters"},maxLength:{value:9,message:"Licence number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:10,message:"Card number must be at least 10 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},SA:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:6,message:"Licence number must not exceed 6 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:9,message:"Card number must be at least 9 characters"},maxLength:{value:9,message:"Card number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},TAS:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:9,message:"Card number must be at least 9 characters"},maxLength:{value:9,message:"Card number must not exceed 9 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},VIC:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:1,message:"Licence number must be at least 1 digits"},maxLength:{value:10,message:"Licence number must not exceed 10 digits"},pattern:Object.assign({},Vn.onlyNumbers)}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:8,message:"Card number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]},WA:{fields:[_t(),Vt(),{fieldType:"input",dataType:"number",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:7,message:"Licence number must be at least 7 digits"},maxLength:{value:7,message:"Licence number must not exceed 7 characters"}}},{fieldType:"input",dataType:"number",label:"Card Number",name:"extraData.document_number",rules:{required:{value:!0,message:"Please enter your driver's licence card number"},minLength:{value:8,message:"Card number must be at least 8 characters"},maxLength:{value:10,message:"Card number must not exceed 10 characters"},pattern:Object.assign({},Vn.alphaNumeric)}}]}},NZL:{default:{fields:[{fieldType:"input",hide:!1,dataType:"text",label:"Licence Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your driver's licence number"},minLength:{value:6,message:"Licence number must be at least 6 characters"},maxLength:{value:8,message:"Licence number must not exceed 8 characters"},pattern:Object.assign({},Vn.alphaNumeric)}},{fieldType:"input",dataType:"number",label:"Version Number",placeholder:"e.g. 123",name:"extraData.licence_version",rules:{required:{value:!0,message:"Please enter your version number"},minLength:{value:3,message:"Version number must be at least 3 charecters"},maxLength:{value:3,message:"Version number must not exceed 3 charecters"},pattern:Object.assign({},Vn.onlyNumbers)}}]}}}},{type:"NATIONAL_HEALTH_ID",countries:{default:{default:{fields:[_t(!0,"Country of Medicare Card"),{fieldType:"select",dataType:"text",hide:!1,label:"Medicare Card Colour",name:"idSubType",rules:{required:{value:!0,message:"Please select your Medicare card colour"}},options:jn,placeholder:"Select Medicare Card Colour",autocomplete:!0},{fieldType:"input",hide:!1,label:"Medicare Card Number",dataType:"text",name:"idNumber",rules:{required:{value:!0,message:"Please enter your Medicare card number"},pattern:Vn.onlyNumbers,minLength:{value:10,message:"Medicare card number must be at least 10 digits"},maxLength:{value:10,message:"Medicare card number must be not exceed 10 digits"}}},{fieldType:"input",hide:!1,label:"Position on Card",dataType:"document_extra",name:"extraData.reference",rules:{required:{value:!0,message:"Please enter your position on card"},pattern:Vn.onlyNumbers,maxLength:{value:1,message:"Position on card must not exceed 1 digit"}}},{fieldType:"date",hide:!1,dataType:"text",expiryDate:!0,label:"Medicare Date of Expiry",name:"idExpiry",rules:{required:{value:!0,message:"Please select your Medicare expiry date"},min:{value:1,message:"Minimum Days to be one"},max:{value:31,message:"Maximum Days to be 31 only"}},calendarConfig:{type:Un.Gregorian,locale:$n.English,day:{required:!0,placeholder:"Day"},month:{required:!0,placeholder:"Month"},year:{required:!0,placeholder:"Year"},message:"Please select your Medicare expiry date"}}]}}}},{type:"PASSPORT",countries:{default:{default:{fields:[_t(!0,"Country of Passport"),{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:1,message:"Passport number must be at least 1 character"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}}]}},AUS:{default:{fields:[_t(!0,"Country of Passport"),{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:8,message:"Passport number must be at least 8 characters"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}}]}},NZL:{default:{fields:[_t(!0,"Country of Passport"),{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:1,message:"Passport number must be at least 1 character"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}},Object.assign(Object.assign({},Pt.date),{label:"Date of Expiry",rules:Object.assign(Object.assign({},Pt.date.rules),{required:{value:!0,message:"Please enter your passport’s expiry date"}}),calendarConfig:Object.assign(Object.assign({},Pt.date.calendarConfig),{maxYear:2030,message:"Please enter your passport’s expiry date"})})]}},IND:{default:{fields:[_t(!0,"Country of Passport"),{fieldType:"input",hide:!1,dataType:"number",label:"Passport Number",name:"idNumber",rules:{required:{value:!0,message:"Please enter your passport number"},pattern:Vn.alphaNumeric,minLength:{value:1,message:"Passport number must be at least 1 character"},maxLength:{value:9,message:"Passport number must not exceed 9 characters"}}},{fieldType:"input",name:"extraData.document_number",dataType:"document_extra",label:"File Number",rules:{required:{value:!0,message:"Please enter your File Number"}}}]}}}}],instruction:{content:[{label:"I confirm that all provided information is accurate."}]},cta:{label:"Looks good, submit"},style:{"ff-form-wrapper":{},"ff-form-field":{}}};var $t,zt,Yt,Ht,Wt,Gt,Zt;const Kt=[Object.assign(Object.assign({},Wn),{manualFieldConfig:null===($t=null==Wn?void 0:Wn.manualFieldConfig)||void 0===$t?void 0:$t.map((e=>{var n,t;const i=null===(t=null===(n=e.name)||void 0===n?void 0:n.toString())||void 0===t?void 0:t.split(".");return Object.assign(Object.assign({},e),{name:`address1.${i[1]}`})}))})],Jt=Object.assign(Object.assign({name:"RETRY"},Ut),{title:{label:"Review personal details"},personal:Object.assign(Object.assign({},Zn.personal),{countries:Object.assign(Object.assign({},Zn.personal.countries),{default:{default:Object.assign(Object.assign({},null===(Yt=null===(zt=Zn.personal.countries)||void 0===zt?void 0:zt.default)||void 0===Yt?void 0:Yt.default),{fields:[...(null===(Gt=null===(Wt=null===(Ht=Zn.personal.countries)||void 0===Ht?void 0:Ht.default)||void 0===Wt?void 0:Wt.default)||void 0===Gt?void 0:Gt.fields)||[],{title:{label:"Residential address"},fieldType:"address",name:"address1.fullAddress",hide:!0,dataType:"previous_addr",label:"What was your previous residential address?",showToggle:!0,rules:{required:{value:!0,message:"Please enter your previous address"}},toggleConfig:{label:"Have you been at your current residential address for less than 6 months?",rules:{required:{value:!0,message:"Please let us know if you have any previous address"}}},placeholder:"Type in your previous address",manualFieldConfig:null===(Zt=Kt[0])||void 0===Zt?void 0:Zt.manualFieldConfig}]})},AUS:{default:{fields:[Object.assign({},null==Yn?void 0:Yn.find((e=>"address"===e.fieldType)))]}}})}),documents:[...Mt.documents],descriptions:[{label:"We need one form of ID document to verify your identity."}],cta:{label:"Next"}}),Xt={name:"REVIEW",type:"manual",title:{label:"Are your details correct?",style:{}},cta:{label:"Looks good, submit"}},Qt={AUS:{1:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"manual",numberOfIDs:1,descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}},2:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{"ff-title":{}}},type:"manual",descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"Two IDs on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}}},NZL:{1:{name:"WELCOME",mode:"individual",title:{label:"Let's verify your identity",style:{}},type:"manual",descriptions:[{label:"We need to collect some personal information to verify your identity. All fields must be filled and it is important you enter your details accurately.",style:{}}],instructions:{label:"You will need",content:[{icon:ye.checkbox,label:"A few mins to complete this application",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"An ID on you (this could be a driver’s licence, passport or Medicare card)",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be over 18 years of age",style:{"ff-instruction-item":{}}},{icon:ye.checkbox,label:"You must be an Australian citizen, permanent resident or Visa holder.",style:{"ff-instruction-item":{}}}]},cta:{label:"Start identity verification",style:{"ff-button":{}}},style:{}}}},ei=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),{oneSDK:n}=(0,d.useContext)(Ii),t=n.individual(),i=(e,n,t)=>{var i,a,r,l,o,s,d;return(null===(r=null===(a=null===(i=null==e?void 0:e.countries)||void 0===i?void 0:i.default)||void 0===a?void 0:a.default)||void 0===r?void 0:r.fields)&&(e.countries.default.default.fields=vn([...null!==(d=null===(s=null===(o=null===(l=null==e?void 0:e.countries)||void 0===l?void 0:l.default)||void 0===o?void 0:o.default)||void 0===s?void 0:s.fields)&&void 0!==d?d:[],...(e=>{var i,a,r,l,o,s,d,u;return(null===(a=null===(i=null==e?void 0:e[n])||void 0===i?void 0:i[t])||void 0===a?void 0:a.fields)||(null===(l=null===(r=null==e?void 0:e.default)||void 0===r?void 0:r[t])||void 0===l?void 0:l.fields)||(null===(s=null===(o=null==e?void 0:e[n])||void 0===o?void 0:o.default)||void 0===s?void 0:s.fields)||(null===(u=null===(d=null==e?void 0:e.default)||void 0===d?void 0:d.default)||void 0===u?void 0:u.fields)||[]})(null==e?void 0:e.countries)],"name")),e},a=(e,n)=>{const a=t.access("documents").getValue(),{country:r,region:l}=new Ft(a).records;"documents"==n?Object.entries(Ce).forEach((([t])=>{var a;const o=null!==(a=null==e?void 0:e[n])&&void 0!==a?a:[],s=null==o?void 0:o.find((e=>e.type===t));i(s,r,l)})):i(e[n],r,l)},r=(e,n)=>{var t,i;if("RESULT"==n.name)return Object.assign(Object.assign(Object.assign({},Jn),Kn[null==n?void 0:n.state]),n);switch(null==n?void 0:n.name){case"WELCOME":return(null===(t=Qt.AUS)||void 0===t?void 0:t[null!==(i=null==n?void 0:n.numberOfIDs)&&void 0!==i?i:1])||Qt.AUS[1];case"CONSENT":return Dt;case"DOCUMENT":return Object.assign({},Mt);case"REVIEW":return Xt;case"RETRY":return Jt;default:return e}},l=(e=[],n=[])=>{var t,i;if(Array.isArray(e)&&Array.isArray(n)){const a=[...Fn({data:e,sequence:n.map((e=>e.name)),key:"name"})||[],...n],r=vn(a,"name"),l=r.find((e=>{var n;return null===(n=null==e?void 0:e.acceptedCountries)||void 0===n?void 0:n.length}));if(l){const e=l.acceptedCountries,n=null===(t=null==l?void 0:l.manualFieldConfig)||void 0===t?void 0:t.find((e=>["address.country","country"].includes(null==e?void 0:e.name)));n&&(n.options=null===(i=null==n?void 0:n.options)||void 0===i?void 0:i.filter((n=>e.includes(null==n?void 0:n.value))))}return r}};return{mergeAndReplaceConfig:(t,i,o)=>{const s="individual"===(null==i?void 0:i.mode)&&"manual"===(null==i?void 0:i.type)&&Object.assign({},r(t,i)),d="business"===(null==i?void 0:i.mode)&&Object.assign({},(e=>{var t;return{WELCOME:()=>(({instance:e})=>{var n;const{requestedDocuments:t,senderName:i,linkExpiry:a}=e.session.getExtraData()||{};return{name:"WELCOME",mode:"business",title:{label:"Document request"},descriptions:[{label:`We need to collect some documents to verify your relation to ${(null===(n=e.business().access("name").getValue())||void 0===n?void 0:n.name)||"[Business entity name]"}. Please upload all documents requested below.`}],instructions:{label:"Requested documents",content:(r=t,r?JSON.parse(r).map((({documentType:e})=>({icon:ye.checkbox,label:hn(e)}))):[{icon:ye.checkbox,label:"[Empty]"}])},sender:`The document requested by ${i||"[Empty]"}.`,expiry:`The link will expire on ${kt(a)||"[date][time]"}.`,cta:{label:"Next",style:{}},style:{}};var r})({instance:n}),CONSENT:()=>(({instance:e})=>{var n;return{name:"CONSENT",mode:"business",title:{label:"Your consent matters",style:{}},descriptions:[{label:`You consent to your personal information (including business records) being collected and used in accordance with ${(null===(n=e.business().access("name").getValue())||void 0===n?void 0:n.name)||"[Business entity name]"} Privacy Policy for the purposes of investigating and determining the legitimacy of a company and its overall ownership structure, to conduct due diligence procedures to ensure business activities and partnering entities are not involved in illegal activities.`},{label:"You also consent to the verification of this information against records held by official document issuers or official record holders via third party systems in accordance with Australian Privacy Principles."},{label:"You consent to such organisations authorised by me to use your personal and business information for the purpose of monitoring and improving their verification services."}],checkbox:{content:[{label:"I have read and agree to the above disclosure"}]},cta:{icon:"",label:"Continue",style:{}}}})({instance:n}),DOC_UPLOAD:()=>Mn,default:()=>e}[null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"default"]()})(t)),u=s||d||Object.assign(Object.assign(Object.assign({},t),r(t,i)),{type:"ocr"}),c=[De.i.RETRY,De.i.REVIEW,De.i.PERSONAL,De.i.DOCUMENT].includes(o),f=e=>{var n,t,a,r,o;const s=i,d=u;let c=!1;if("documents"===e){if(!(null===(n=null==s?void 0:s[e])||void 0===n?void 0:n.length))return null==d?void 0:d[e];if(!(null===(t=null==d?void 0:d[e])||void 0===t?void 0:t.length)&&!(null===(a=null==s?void 0:s[e])||void 0===a?void 0:a.length))return[];(null===(r=null==s?void 0:s[e])||void 0===r?void 0:r.length)&&(s[e]=null===(o=null==s?void 0:s[e])||void 0===o?void 0:o.map((n=>{var t;const i=null===(t=null==d?void 0:d[e])||void 0===t?void 0:t.find((e=>e.type===n.type));if(i)return c=!0,Lt()(Ge()(i),Ge()(n),l)})).filter((e=>e)))}return Lt()(Ge()(null==s?void 0:s[e]),Ge()(c?null==s?void 0:s[e]:null==d?void 0:d[e]),((n,t)=>{const[i,a]="documents"===e?[n,t]:[t,n];return l(i,a)}))};for(const e in i)c&&["documents","personal"].includes(e)&&((null==i?void 0:i.documents)||(null==i?void 0:i.personal))?(u[e]=f(e),a(Ge()(u),e)):!c&&Array.isArray(i[e])&&i[e]?u[e]=Ge()(i[e]):Array.isArray(i[e])||"object"!=typeof i[e]?u[e]=i[e]:u[e]=Object.assign(Object.assign({},u[e]),Ge()(i[e]));const m=n=>{var t;const i="documents"==n?De.i.DOCUMENT:De.i.PERSONAL,a="documents"===n?[]:{};let r=(()=>{var t,r;switch(n){case"documents":return(null===(t=null==e?void 0:e[i])||void 0===t?void 0:t[n])||[];case"personal":return(null===(r=null==e?void 0:e[i])||void 0===r?void 0:r[n])||{};default:return a}})()||a,o=(null==u?void 0:u[n])||a;[r,o].every((e=>Array.isArray(e)))&&"documents"===n&&(o=null===(t=null==u?void 0:u[n])||void 0===t?void 0:t.filter((e=>!!r.find((n=>n.type===e.type)))),o=function(e){if(e.source.length!==e.destination.length)throw new Error("Source and destination length should be same");const n=e.source.map((n=>n[e.key]));return e.destination.sort(((t,i)=>n.indexOf(t[e.key])-n.indexOf(i[e.key])))}({source:r,destination:o,key:"type"}),[r,o]=[o,r]),u[n]=Lt()(Ge()(r),Ge()(o),((e,t)=>{const[i,a]="documents"===n?[e,t]:[t,e];return l(i,a)}))};return"RETRY"===i.name&&["documents","personal"].forEach(m),u},addGlobalRules:i,getResultInfo:n=>Object.assign(Object.assign({},Lt()(Ge()(Kn[n]),Ge()(e[De.i.RESULT]),((e,n)=>{if(Array.isArray(e))return n}))),{state:n})}},ni=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.REVIEW],{addGlobalRules:t}=ei(),{oneSDK:i}=(0,d.useContext)(Ii),a=i.individual(),r=(0,d.useMemo)((()=>{var e,n,t;const{givenName:i,middleName:r,familyName:l}=a.access("name").getValue(),o=a.access("documents").getValue(),s=(0,pn.WL)(a.access("dateOfBirth").getValue()),d=a.access("addresses").getValue()[0];return Object.assign(Object.assign({},new Ft(o,d).records),{dateOfBirth:`${null!==(e=s.dd)&&void 0!==e?e:""}-${null!==(n=s.mm)&&void 0!==n?n:""}-${null!==(t=s.yyyy)&&void 0!==t?t:""}`,givenName:i,middleName:r,familyName:l})}),[]),{idType:l,country:o,region:u}=r,{getFormConfig:c}=Qn(),f=e=>{var t;const{personalFields:i,documentFields:a}=c({config:n,idType:l,country:o,region:u}),r=null===(t=[...i,...a].find((n=>(null==n?void 0:n.name)===e)))||void 0===t?void 0:t.hide;return null==r||!r},m=e=>{const n=n=>un()(e,n),t={buildingName:n("buildingName"),postalCode:n("postalCode"),state:n("state"),streetName:n("streetName"),streetNumber:n("streetNumber"),streetType:n("streetType"),suburb:n("suburb"),town:n("town"),unitNumber:n("unitNumber"),addressType:n("addressType")||"RESIDENTIAL1",longForm:n("fullAddress"),country:n("country"),data:{longForm:n("fullAddress")}},i=Object.keys(t).reduce(((e,n)=>!!f(n)&&Object.assign(Object.assign({},e),{[n]:t[n]})),{});(n=>{var t;if((null==e?void 0:e.addressId)&&(null===(t=null==e?void 0:e.addressId)||void 0===t?void 0:t.length))a.updateAddress(e.addressId,n);else{const{getValue:e,setValue:t}=a.access("addresses"),i=e(),r=null==i?void 0:i.find((e=>e.addressType===n.addressType));(null==r?void 0:r.addressId)?a.updateAddress(r.addressId,n):t([...i.filter((e=>e.addressType!==n.addressType)),n])}})(Object.assign(Object.assign({},i),{country:n("country")||"AUS",addressType:n("addressType")||"RESIDENTIAL1"}))},p=e=>{var n,t,i;const r={givenName:null==e?void 0:e.givenName,familyName:null==e?void 0:e.familyName,middleName:null==e?void 0:e.middleName,displayName:`${(null===(n=null==e?void 0:e.givenName)||void 0===n?void 0:n.trim())||""} ${(null===(t=null==e?void 0:e.middleName)||void 0===t?void 0:t.trim())||""} ${(null===(i=null==e?void 0:e.familyName)||void 0===i?void 0:i.trim())||""}`.trim()},l=Object.keys(r).reduce(((e,n)=>f(n)&&Object.assign(Object.assign({},e),{[n]:r[n]})),{});a.access("name").setValue(l)};return{getScannedData:r,updateModule:e=>new Promise((n=>{var t,i,r,l,o;p(e);const s=mn.c9.fromFormat(e.dateOfBirth,"d-L-yyyy").toFormat("yyyy-LL-dd");f("dateOfBirth")&&a.access("dateOfBirth").setValue(s),f("address")&&m(e.address);const d={dateOfBirth:s,idNumber:e.idNumber,idSubType:e.idSubType,idType:e.idType,idExpiry:null!==(l=null===(r=null===(i=null===(t=null==e?void 0:e.idExpiry)||void 0===t?void 0:t.split("-"))||void 0===i?void 0:i.reverse())||void 0===r?void 0:r.join("-"))&&void 0!==l?l:"",country:e.country,region:e.region,extraData:e.extraData},u=Object.keys(d).reduce(((e,n)=>f(n)&&Object.assign(Object.assign({},e),{[n]:d[n]})),{});(null==e?void 0:e.documentId)&&(null===(o=null==e?void 0:e.documentId)||void 0===o?void 0:o.length)&&a.updateDocument(e.documentId,u),n(!0)})),updateAddress:m,getUpdatedGlobalConfig:e=>n.documents.map((n=>n.type===e.getValues("idType")?t(Ge()(n),e.getValues("country"),e.getValues("region")):n)),fieldIsVisible:f,updateNames:p,individual:a}};const ti=()=>{const e=(0,s.wA)(),{getFormConfig:n}=Qn(),t=(0,s.d4)(on),{pageConfigs:i}=(0,s.d4)(Oi),{individual:a,fieldIsVisible:r}=ni(),{insertedDocuments:l,personalSequence:o}=In(),u=e=>{var a;const r=i[e.configName],{personalFields:l,documentFields:o,manualFields:s}=n(Object.assign(Object.assign({config:r},e),{idType:null!==(a=null==e?void 0:e.idType)&&void 0!==a?a:t[t.currentForm]}));return[...l,...o,...s]},c=(0,d.useCallback)(((e,n)=>i.currentModule===De.i.PERSONAL?null:e||([De.i.PERSONAL].includes(n)&&[Ye.REVIEW].includes(t.mode)&&!o(0).isValidIndex||[Ye.EDIT].includes(t.mode)?De.i.REVIEW:De.i.DOCUMENT)),[t.mode,screen]),f=e=>{const n=i.currentModule===De.i.RETRY,t=!l.find((n=>n.key===e)),a=e!==De.i.PERSONAL;return n&&t&&a},m=e=>{var n,a;const r=[De.i.PERSONAL];let o;if(i.currentModule===De.i.RETRY&&t.mode!==Ye.EDIT){const i=null===(n=l.at(t.pageHistory.length-1))||void 0===n?void 0:n.key;return e===i?null:i}if((null==t?void 0:t.mode)===Ye.EDIT)for(const n in t.data)r.includes(n)||t.data[n].mode!==Ye.EDIT||n===e||(o=n);else{const n=t.pageHistory.length,i=n?n-1:n;o=null===(a=l.at(i))||void 0===a?void 0:a.key,o=o===e?null:o}return o},p=e=>{return n=void 0,t=void 0,l=function*(){const{form:n,idType:t,fields:i}=e;return new Promise((e=>{var l;if(t===De.i.PERSONAL)e(!0);else{const o={};i.forEach((e=>{const t=e.name;if(n.getValues(t)){let e=n.getValues(t);["idExpiry"].includes(t)&&(e=Cn(e)),ut()(o,t,e)}}));let s=Object.assign(Object.assign({},Object.keys(o).reduce(((e,n)=>r(n)&&Object.assign(Object.assign({},e),{[n]:o[n]})),{})),{idType:t});(null==s?void 0:s.idExpiry)&&(s.idExpiry=Cn(s.idExpiry,!0)),"NATIONAL_HEALTH_ID"===s.idType&&(s=(e=>{var n;return Object.assign(Object.assign({},e),{country:(null===(n=A(De.i.PERSONAL))||void 0===n?void 0:n.country)||"AUS"})})(s));const d=a.access("documents");let u;const c=d.getValue().find((e=>e.idType===t&&(null==e?void 0:e.documentId)));if(c)u=m(t),a.updateDocument(c.documentId,s);else{u=m(t);let e=d.getValue();const n=null===(l=e.find((e=>e.idType==u)))||void 0===l?void 0:l.documentId;n?a.updateDocument(n,s):(e=e.filter((e=>![u,s.idType].includes(e.idType)))||[],d.setValue([...e,s]))}e(u)}}))},new((i=void 0)||(i=Promise))((function(e,a){function r(e){try{s(l.next(e))}catch(e){a(e)}}function o(e){try{s(l.throw(e))}catch(e){a(e)}}function s(n){var t;n.done?e(n.value):(t=n.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,o)}s((l=l.apply(n,t||[])).next())}));var n,t,i,l},A=(e,n)=>{var t,i,r;let l;const o=e=>{var n,t;const i=a.access("addresses").getValue();let r=i.find((n=>e.includes(n.addressType)));e.includes("RESIDENTIAL")&&(r=null!=r?r:i[0]);const l=(null==r?void 0:r.streetName)||(null==r?void 0:r._streetName)||"",o=(null==r?void 0:r.streetNumber)||"";return Object.assign(Object.assign({},r),{fullAddress:null!==(n=null==r?void 0:r.longForm)&&void 0!==n?n:null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.longForm,isAddedByCustomer:!(!(null==r?void 0:r.postalCode)||!(null==r?void 0:r.state)),streetAddress:`${o} ${l}`.trim()})};if(e===De.i.PERSONAL)l=Object.assign(Object.assign({},a.access("name").getValue()),{dateOfBirth:Cn(a.access("dateOfBirth").getValue(),!0),address:o(["RESIDENTIAL","RESIDENTIAL1"]),address1:o(["RESIDENTIAL2"])}),l.extraData={phone:a.getPhoneNumber(),email:a.getEmail()},n&&(l.dateOfBirth=Tn({dateString:l.dateOfBirth}));else if(l=a.access("documents").getValue().find((n=>n.idType===e)),l=Object.assign(Object.assign({},l),{idExpiry:Cn(null==l?void 0:l.idExpiry,!0)}),(null==l?void 0:l.country)||(l=Object.assign(Object.assign({},l),{country:null===(t=o(["RESIDENTIAL","RESIDENTIAL1"]))||void 0===t?void 0:t.country})),n){l=Object.assign(Object.assign({},l),{country:(null===(i=wn().find((e=>e.value===(null==l?void 0:l.country))))||void 0===i?void 0:i.label)||(null==l?void 0:l.country),region:(null===(r=En(null==l?void 0:l.country).find((e=>e.value===(null==l?void 0:l.region))))||void 0===r?void 0:r.label)||(null==l?void 0:l.region)});const e=jn.find((e=>e.value===(null==l?void 0:l.idSubType)));(null==l?void 0:l.idSubType)&&e&&(l.idSubType=e.label),(null==l?void 0:l.idExpiry)&&(l.idExpiry=Tn({dateString:l.idExpiry}))}return l};return{updateManualIndividualModule:p,getIndividualData:A,handleBack:n=>{e(Qe({currentForm:c(n)}))},saveConfig:n=>{var t;const i=[...u(n),...null!==(t=null==n?void 0:n.extraFields)&&void 0!==t?t:[]],{form:a,configName:r,idType:l}=n;p({form:a,configName:r,idType:l,fields:i}).then((t=>{var r,o;const s={currentForm:c(null,l),data:i,label:null==n?void 0:n.label,key:l,replacedId:l===De.i.PERSONAL?void 0:t,dirty:!!Object.keys(null!==(o=null===(r=null==a?void 0:a.formState)||void 0===r?void 0:r.touchedFields)&&void 0!==o?o:{}).length,isAdditionalId:f(n.idType)};e(Xe(s))}))}}};class ii extends Bt.y{constructor(e){super(e)}}const ai=({config:e,formFieldsType:n,testid:t={mockImg:null},onBack:a})=>{const{pageConfigs:r}=(0,s.d4)(Oi),l=(0,s.d4)(on),{saveConfig:o,handleBack:u,getIndividualData:c}=ti(),{isAdditionaDoc:f}=In(),[m,p]=(0,d.useState)(),{getFormConfig:A}=Qn(),v=(0,d.useMemo)((()=>{const n=c(l.currentForm),{documentFields:t}=A({config:e,idType:Ce[l.currentForm],country:null==n?void 0:n.country,region:null==n?void 0:n.region}),i=t.find((e=>{var t;return"country"===(null==e?void 0:e.name)&&(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.some((e=>(null==e?void 0:e.value)===(null==n?void 0:n.country))))}));return Object.assign(Object.assign(Object.assign({},new ii({})),n),{country:i?null==n?void 0:n.country:""})}),[l.currentForm,l.pageHistory]),g=(0,Xn.mN)({defaultValues:v,mode:"all"}),{watch:b,handleSubmit:y}=g,{country:h,region:x}=b(),E=(0,s.wA)();(0,d.useEffect)((()=>{p(e)}),[e]),(0,d.useEffect)((()=>{E(en({id:l.currentForm}))}),[]),(0,d.useEffect)((()=>{var e;(null==l?void 0:l.currentForm)&&(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e[null==l?void 0:l.currentForm])&&g.reset(c(l.currentForm))}),[null==l?void 0:l.currentForm,null==l?void 0:l.data]),(0,d.useEffect)((()=>{g.clearErrors(),yn(g.getValues()).forEach((e=>{g.getValues(e)&&g.trigger(e)}))}),[h,x]),(0,d.useEffect)((()=>{var e;l.mode===Ye.EDIT||l.currentForm!==Ce.NATIONAL_HEALTH_ID||(null===(e=g.getValues("idSubType"))||void 0===e?void 0:e.length)||g.setValue("idSubType","G")}),[]);const C=()=>{o({form:g,idType:Ce[null==l?void 0:l.currentForm],configName:De.i[(null==r?void 0:r.currentModule)===De.i.RETRY?"RETRY":"DOCUMENT"],country:h,region:x,label:null==j?void 0:j.label})},w=()=>{E(en({id:l.currentForm,isRemove:!0})),u(De.i.DOCUMENT),a&&a(l.currentForm)};if(!m)return;const j=m.documents.find((e=>e.type===Ce[null==l?void 0:l.currentForm])),N=()=>{var e,n;return l.mode==Ye.EDIT?`Edit ${null===(e=null==j?void 0:j.label)||void 0===e?void 0:e.toLowerCase()} details`:r.currentModule===De.i.RETRY?f(!0)?null==j?void 0:j.label:`Review ${null===(n=null==j?void 0:j.label)||void 0===n?void 0:n.toLowerCase()} details`:null==j?void 0:j.label};return(0,i.jsx)(ke,{onSubmit:y(C),buttonConfig:l.mode==Ye.EDIT&&{editable:{pre:{label:"Cancel",onClick:()=>u(),disabled:!1},post:{label:"Save",onClick:y(C),disabled:!g.formState.isValid}}},disabled:!g.formState.isValid,inputClass:(0,je.A)("tablet:!f1-pt-[24px]","f1-py-[24px]","tablet:!f1-pt-[49px]"),renderScreen:()=>{var a;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:N(),style:null===(a=e.title)||void 0===a?void 0:a.style,onBack:w,testid:{mockImg:t.mockImg},className:(0,je.A)("f1-mb-0")}),(0,i.jsx)(Ot,{form:g,config:e,individualConfig:{idType:Ce[null==l?void 0:l.currentForm],country:h,region:x},formFieldsType:n})]})}})};class ri extends It{constructor(e){super(e)}}const li=({config:e,formFieldsType:n,previewImage:t,onSubmit:a})=>{const{pageConfigs:r}=(0,s.d4)(Oi),l=(0,s.d4)(on),{getIndividualData:o}=ti(),[u,c]=(0,d.useState)(!1),{modifyFormConfig:f}=Qn(),m=()=>{const e=o(De.i.PERSONAL);return ut()(e,"address1.fullAddressShowToggle",Bn(e,"address1.fullAddress")),Object.assign(Object.assign(Object.assign({},new ri({})),e),{middleNameShowToggle:Bn(e,"middleName")})},p=(0,Xn.mN)({defaultValues:m(),mode:"all"}),{getScannedData:A}=ni(),{idType:v}=A,{country:g,region:b}=p.watch(),{handleSubmit:y}=p,{updateModule:h}=(()=>{const{oneSDK:e}=(0,d.useContext)(Ii),n=e.individual(),{updateAddress:t,updateNames:i,getScannedData:a,fieldIsVisible:r}=ni();return{updateModule:(e,a,l)=>new Promise((o=>{var s,d,u,c,f,m,p,A,v,g;let b;if(i(e),"RESIDENTIAL1"===a&&l){const n=null===(d=null===(s=null==e?void 0:e.address)||void 0===s?void 0:s.data)||void 0===d?void 0:d.longForm;b=Object.assign(Object.assign(Object.assign(Object.assign({},e.address),{addressType:a,country:null!==(c=null===(u=e.address)||void 0===u?void 0:u.country)&&void 0!==c?c:"AUS"}),On(e,"address")),{longForm:(null===(f=null==e?void 0:e.address)||void 0===f?void 0:f.fullAddress)||n})}else if(l&&(null==e?void 0:e.address1)){const n=null===(p=null===(m=null==e?void 0:e.address1)||void 0===m?void 0:m.data)||void 0===p?void 0:p.longForm;b=Object.assign(Object.assign(Object.assign(Object.assign({},null==e?void 0:e.address1),{addressType:a,country:null!==(v=null===(A=null==e?void 0:e.address1)||void 0===A?void 0:A.country)&&void 0!==v?v:"AUS"}),On(e,"address1")),{longForm:(null===(g=null==e?void 0:e.address1)||void 0===g?void 0:g.fullAddress)||n})}l&&((null==b?void 0:b.longForm)||ut()(b,"longForm",Nn(b)),ut()(b,"data.longForm",null==b?void 0:b.longForm),ut()(b,"fullAddress",null==b?void 0:b.longForm),t(b)),r("extraData.phone")&&n.setPhoneNumber(e.extraData.phone),r("extraData.email")&&n.setEmail(e.extraData.email),r("dateOfBirth")&&n.access("dateOfBirth").setValue(Cn(e.dateOfBirth,!0)),o(!0)})),updateForm:e=>{const{reset:n}=e,t=a;n(Object.assign(Object.assign({},t),{address:t.address}))}}})(),{saveConfig:x,handleBack:E}=ti(),{documentReady:C}=Si();(0,d.useEffect)((()=>{var e;(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e[De.i.PERSONAL])&&p.reset(m())}),[l,u]),(0,d.useEffect)((()=>{p.getValues("middleNameShowToggle")||p.setValue("middleName","")}),[p.watch("middleNameShowToggle")]),(0,d.useEffect)((()=>{const e=p.getValues("address.country");e&&p.setValue("country",e)}),[p.watch("address.country")]);const w=(0,d.useMemo)((()=>![Ye.EDIT,Ye.REVIEW].includes(l.mode)),[l.mode]),j=(0,d.useMemo)((()=>{var n,t,i,a,r;return f(null===(r=null===(a=null===(i=null===(t=null===(n=null==e?void 0:e.personal)||void 0===n?void 0:n.countries)||void 0===t?void 0:t.default)||void 0===i?void 0:i.default)||void 0===a?void 0:a.fields)||void 0===r?void 0:r.find((e=>"previous_addr"===e.dataType)))}),[e,u]),N=()=>{var e;const n=p.getValues();h(n,u?"RESIDENTIAL2":"RESIDENTIAL1",!u||!!(null===(e=p.getValues(j.name))||void 0===e?void 0:e.length)).then((()=>{w?C():a&&a(),x({idType:De.i.PERSONAL,configName:De.i.PERSONAL,label:"Personal details",extraFields:[Object.assign(Object.assign({},j),{label:"Previous Residential Address"})]})}))},O=()=>{const{formState:e}=p,{touchedFields:n}=e;l.failedType===He.NAME&&(l.mode===Ye.REVIEW&&0===Object.keys(n).length||l.mode===Ye.EDIT&&0===Object.keys(n).length&&l.data.personal.docFields.find((e=>"previous_addr"===(null==e?void 0:e.dataType))))?u?N():c(!0):N()},B=(0,d.useMemo)((()=>l.mode==Ye.EDIT),[l.mode]),T=(0,d.useMemo)((()=>r.currentModule===De.i.RETRY),[r]),F=()=>{var n,t,i,a;return B?`Edit ${null===(i=null===(t=null===(n=r[De.i.PERSONAL])||void 0===n?void 0:n.title)||void 0===t?void 0:t.label)||void 0===i?void 0:i.toLowerCase()}`:null===(a=e.title)||void 0===a?void 0:a.label};return(0,i.jsx)(ke,{onSubmit:y(O),disabled:!p.formState.isValid,buttonConfig:B&&{editable:{pre:{label:"Cancel",onClick:()=>E(),disabled:!1},post:{label:"Save",onClick:y(O),disabled:!p.formState.isValid}}},inputClass:(0,je.A)({"!f1-pt-[24px]":u},{"tablet:!f1-pt-[49px]":u}),renderScreen:()=>{var a,l,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:u?null===(a=null==j?void 0:j.title)||void 0===a?void 0:a.label:F(),onBack:u?()=>c(!1):void 0,style:null===(l=e.title)||void 0===l?void 0:l.style,className:(0,je.A)("f1-mb-[8px]")}),!u&&(0,i.jsx)(Te,{descriptions:T?null===(o=r[De.i.PERSONAL])||void 0===o?void 0:o.descriptions:null==e?void 0:e.descriptions}),u&&(0,i.jsx)(wt,{config:Object.assign({control:p.control},j),type:"text"}),!u&&(0,i.jsx)(Ot,{form:p,config:e,individualConfig:{idType:v,country:g,region:b},formFieldsType:n,previewImage:t})]})}})};var oi=t(8156),si=t.n(oi);const di=({items:e=[],onSelect:n,testid:t={container:"",label:"",detailWrapper:"",detailLabel:"",detailSubText:"",image:"",mockImg:null}})=>{const a=(0,d.useCallback)(((a,r)=>{var l,o,s,d;return(0,i.jsxs)("div",{"data-testid":t.container,children:[(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-justify-between"),children:[(0,i.jsxs)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-gap-2"),children:[(0,i.jsx)("h3",{className:(0,je.A)("f1-m-0","f1-text-[#1F2A37]","f1-font-semibold","f1-text-lg"),"data-testid":t.label,children:null===(l=a.title)||void 0===l?void 0:l.label}),(0,i.jsx)("div",{children:null===(o=null==a?void 0:a.details)||void 0===o?void 0:o.map(((e,n)=>(0,i.jsxs)("div",{"data-testid":t.detailWrapper,className:(0,je.A)({"f1-mb-2":n!==a.details.length-1}),children:[(0,i.jsx)("div",{className:(0,je.A)("f1-text-[#1F2A37]","f1-font-medium","f1-text-sm"),"data-testid":t.detailLabel,children:e.label}),(0,i.jsx)("div",{className:(0,je.A)("f1-text-[#374151]","f1-font-normal","f1-text-md","f1-leading-6"),"data-testid":t.detailSubText,children:e.subText})]},`f1-manual-edit-card-${n}`)))})]}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:(0,je.A)("f1-cursor-pointer"),src:null!==(s=t.mockImg)&&void 0!==s?s:ye.editIcon,alt:"Action Icon",onClick:()=>n(Object.assign(Object.assign({},a),{index:r})),"data-testid":t.image})})]}),e.length-1!==r&&(0,i.jsx)("div",{className:(0,je.A)("f1-w-full","f1-h-[1px]","f1-bg-tertiary-grey-200","f1-my-4")})]},null===(d=null==a?void 0:a.title)||void 0===d?void 0:d.label)}),[e]);return null==e?void 0:e.map(a)},ui=({config:e,progressWrapperClass:n})=>{const{pageConfigs:t}=(0,s.d4)(Oi);let a=t[De.i.LOADING];return a=Object.assign(Object.assign({},a),e),(0,i.jsx)(Dn,Object.assign({},a,{inputClass:"f1-h-full",progressWrapperClass:n}))},ci={[we.FAIL]:{label:(0,je.A)("f1-mt-[32px]","f1-text-[21px]","f1-text-[#1F2A37]","tablet:f1-w-[342px]","f1-w-[300px]"),description:(0,je.A)("f1-font-[400]","f1-text-[16px]","f1-mt-4","f1-text-[#374151]","tablet:f1-w-[345px]","f1-w-[300px]")},[we.SUCCESS]:{label:(0,je.A)("f1-mt-[32px]","f1-w-[342px]","f1-text-[32px]","f1-text-[#1F2A37]","f1-text-[30px]")},[we.PARTIAL]:{label:(0,je.A)("f1-mt-[32px]","f1-text-[21px]","tablet:f1-w-[342px]","f1-w-[300px]","f1-leading-[32px]","f1-text-[#1F2A37]"),description:(0,je.A)("f1-font-[400]","tablet:f1-w-[345px]","f1-text-[16px]","f1-mt-4","f1-w-[300px]","f1-text-[#374151]")},[we.PENDING]:{label:(0,je.A)("f1-mt-[32px]","f1-text-[24px]","f1-leading-[32px]","f1-text-[#1F2A37]","tablet:f1-w-[342px]","f1-w-[300px]"),description:(0,je.A)("f1-font-[400]","f1-text-[16px]","f1-mt-4","f1-text-[#374151]","tablet:f1-w-[345px]","f1-w-[300px]")},[we.UPLOAD_SUCCESS]:{},[we.UPLOAD_FAIL]:{}},fi={[we.FAIL]:"failed",[we.SUCCESS]:"success",[we.PARTIAL]:"partial",[we.PENDING]:"pending",[we.UPLOAD_SUCCESS]:"success",[we.UPLOAD_FAIL]:"failed"},mi=({config:e,onSubmit:n})=>{var t,a,r,l,o,u;const{pageConfigs:c}=(0,s.d4)(Oi),[f,m]=(0,d.useState)(!1),{idvEventEmitter:p}=Si(),A=e||c[c.currentModule];if(!f)return(0,i.jsxs)("div",{className:(0,je.A)("f1-h-full","f1-w-full","f1-flex","f1-flex-col","f1-gap-10","f1-justify-center","f1-items-center"),children:[(0,i.jsx)(Dn,Object.assign({},e,{inputClass:"f1-h-[calc(100%-92px)] tablet:f1-h-auto",labelClass:null===(t=ci[null==e?void 0:e.state])||void 0===t?void 0:t.label,descriptionClass:null===(a=ci[null==e?void 0:e.state])||void 0===a?void 0:a.description})),(0,i.jsx)(Le,Object.assign({icon:null===(r=null==A?void 0:A.cta)||void 0===r?void 0:r.icon,visible:Object.keys(null==A?void 0:A.cta).length>0,label:null===(l=null==A?void 0:A.cta)||void 0===l?void 0:l.label,className:`${Ee.button}`,buttonClass:"tablet:f1-mb-0 f1-w-[calc(100%-48px)]",onClick:()=>{p({eventType:fi[null==e?void 0:e.state],extraEventInfo:{name:De.i.RESULT}}),m(!0),n&&n()}},null==e?void 0:e.cta,{style:null===(u=null===(o=null==A?void 0:A.cta)||void 0===o?void 0:o.style)||void 0===u?void 0:u[Ee.button]}))]})};var pi=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const Ai=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.REVIEW],t=e[De.i.REVIEW],{getIndividualData:a}=ti(),{getResultInfo:r}=ei(),l=(0,s.wA)(),{documentReady:o,idvEventEmitter:u}=Si(),[c,f]=(0,d.useState)(),[m,p]=(0,d.useState)(!1),[A,v]=(0,d.useState)(),[g,b]=(0,d.useState)(),y=(0,s.d4)(on);hi[e.currentModule].disabled=!1;const{oneSDK:h}=(0,d.useContext)(Ii),{insertedDocuments:x,modifyDocConfig:E,personalSequence:C}=In();(0,d.useEffect)((()=>{l(Qe({currentForm:De.i.REVIEW,mode:Ye.EDIT})),l(rn({clearFormState:!1})),b(e[De.i.DOCUMENT])}),[]),(0,d.useEffect)((()=>{var e;if(null===(e=Object.keys(y.data))||void 0===e?void 0:e.length){const e=[];Object.entries(y.data).forEach((([n,t],i)=>{const r=a(n,!0);let l=t.label;if(n!==De.i.PERSONAL){const e=(e=>{var n;return(null==e?void 0:e[0])?e[0].toUpperCase()+(null===(n=null==e?void 0:e.slice(1))||void 0===n?void 0:n.replace(/-/g," ")):""})(Ue[C(0).isValidIndex?i-1:i]);l=1==x.length?`ID: ${t.label}`:`${e} ID: ${t.label}`}e.push({title:{label:l},type:n,details:t.docFields.map((e=>({label:null==e?void 0:e.label,subText:si()(r,e.name)}))).filter((e=>(null==e?void 0:e.subText)&&e.subText.length>0))})})),f(e),b(E)}}),[y.data]);const w=e=>{const{type:n}=Object.assign({},e),t=n===De.i.PERSONAL;l(Qe({currentForm:t?n:De.i.DOCUMENT,mode:Ye.EDIT,idType:n}))},j=()=>l(tn()),N=(0,d.useMemo)((()=>(0,i.jsx)(ai,{config:e[De.i.DOCUMENT]})),[e[De.i.DOCUMENT]]);if(m&&(null==t?void 0:t.verify))return(0,i.jsx)(ui,{config:_n,progressWrapperClass:(0,je.A)("f1-max-w-[318px]","f1-w-full")});if(A)return(0,i.jsx)(mi,{config:r(A),onSubmit:j});if(c){switch(y.currentForm){case De.i.PERSONAL:return(0,i.jsx)(li,{config:e[De.i.PERSONAL],previewImage:!1});case De.i.DOCUMENT:return(0,i.jsx)(Sn,{config:g,backButton:!0});case Ce.DRIVERS_LICENCE:case Ce.NATIONAL_HEALTH_ID:case Ce.PASSPORT:return N}return(0,i.jsx)(ke,{onSubmit:()=>{p(!0),h.individual().submit({verify:!!(null==t?void 0:t.verify)}).then((e=>pi(void 0,void 0,void 0,(function*(){var n;if(yield h.individual().search(),null==t?void 0:t.verify){const t=n=>{var t;return!!(null===(t=null==e?void 0:e.alertList)||void 0===t?void 0:t.find((e=>e.term===n)))},i=t("partial"),a=t("404"),r=t("duplicate"),o=t("blacklist"),s=t("too-many"),d=()=>{const e=i?He.NAME:a?He.ID:null;l(nn(e))};if(t("partial")||t("404"))d(),v(we.PARTIAL);else if(r||o||s)d(),v(we.FAIL);else switch(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.type){case"passed":case"pass_manual":v(we.SUCCESS);break;case"archived":d(),v(we.PARTIAL);break;case"failed":d(),v(we.FAIL);break;default:v(we.PENDING)}}else o()})))).catch((()=>pi(void 0,void 0,void 0,(function*(){yield h.individual().search(),v(we.FAIL)})))).finally((()=>{e.currentModule!==De.i.RETRY&&j(),p(!1),u({eventType:"loaded",extraEventInfo:{name:De.i.RESULT}})}))},buttonConfig:null==n?void 0:n.cta,disabled:m,renderScreen:()=>{var e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:null==n?void 0:n.title.label,style:null===(e=null==n?void 0:n.title)||void 0===e?void 0:e.style}),(0,i.jsx)(di,{items:c,onSelect:w})]})}})}},vi=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.PERSONAL];return(0,i.jsx)(li,{config:n})},gi={[De.i.DOCUMENT]:Sn,[De.i.REVIEW]:Ai,[De.i.PERSONAL]:vi,[Ce.DRIVERS_LICENCE]:ai,[Ce.PASSPORT]:ai,[Ce.NATIONAL_HEALTH_ID]:ai};var bi=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const yi=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),{oneSDK:n}=(0,d.useContext)(Ii),t=e[De.i.REVIEW],[a,r]=(0,d.useState)(),{getScannedData:l,updateModule:o,getUpdatedGlobalConfig:u}=ni(),{documentReady:c}=Si(),f=(0,Xn.mN)({defaultValues:l,mode:"all"}),{handleSubmit:m,watch:p}=f,{country:A,region:v}=p();return(0,d.useEffect)((()=>{r(t)}),[t]),(0,d.useEffect)((()=>{r((e=>Object.assign(Object.assign({},e),{documents:u(f)})))}),[A,v]),(0,d.useEffect)((()=>{f.clearErrors(),f.trigger()}),[a]),(0,i.jsx)(ke,{onSubmit:m((()=>bi(void 0,void 0,void 0,(function*(){const e=f.getValues();o(e).then((()=>bi(void 0,void 0,void 0,(function*(){yield n.individual().submit(),yield n.individual().search(),c()}))))})))),disabled:!f.formState.isValid,renderScreen:({onValidate:e})=>{var n,r,o;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:t.title.label,style:null===(n=t.title)||void 0===n?void 0:n.style,className:(0,je.A)("f1-mb-0")}),(0,i.jsx)(Ot,{form:f,config:a,individualConfig:Object.assign(Object.assign({},l),{region:v,country:A,personalIdv:{country:p("address.country"),region:p("address.state")}}),isOverrideCountry:!1}),(0,i.jsx)("div",{className:"f1-w-full",children:(0,i.jsx)(Ne,{content:null===(r=null==t?void 0:t.instruction)||void 0===r?void 0:r.content,style:null===(o=null==t?void 0:t.instruction)||void 0===o?void 0:o.style,onChange:n=>{e(n.isSelected)}})})]})}})},hi={[De.i.WELCOME]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.WELCOME],{documentReady:t}=Si();return(0,i.jsx)(ke,{onSubmit:t,renderScreen:()=>{var e,t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:null===(e=n.title)||void 0===e?void 0:e.label,style:null===(t=n.title)||void 0===t?void 0:t.style,className:(0,je.A)("f1-text-3xl","f1-mb-2","f1-leading-[42px]")}),(0,i.jsx)(Te,{descriptions:null==n?void 0:n.descriptions}),(0,i.jsx)(Re,Object.assign({},null==n?void 0:n.instructions)),(0,i.jsx)("div",{className:(0,je.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text"),children:null==n?void 0:n.sender}),(0,i.jsx)("div",{className:(0,je.A)("f1-mb-2","f1-text-tertiary-grey-700","f1-font-normal","f1-text-md","f1-leading-6","f1-link-text"),children:null==n?void 0:n.expiry})]})}})},disabled:!1,id:De.i.WELCOME},[De.i.CONSENT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.CONSENT],[t,a]=(0,d.useState)(!1),r=(0,d.useContext)(Ii),{oneSDK:l}=r,o=l.individual(),{documentReady:u}=Si();return(0,i.jsx)(ke,{disabled:t,renderScreen:({onValidate:e})=>{var t,a,r,l;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:null===(t=null==n?void 0:n.title)||void 0===t?void 0:t.label,style:null===(a=null==n?void 0:n.title)||void 0===a?void 0:a.style}),(0,i.jsx)(Te,{descriptions:null==n?void 0:n.descriptions}),(0,i.jsx)(Ne,{content:null===(r=null==n?void 0:n.checkbox)||void 0===r?void 0:r.content,style:null===(l=null==n?void 0:n.checkbox)||void 0===l?void 0:l.style,onChange:n=>{e(n.isSelected)}})]})},onSubmit:()=>{if(a(!0),"individual"===n.mode){const e=o.access("consentsGiven").getValue();["general","docs","creditheader"].forEach((n=>{e.includes(n)||o.addConsent(n)})),o.submit().then((()=>{u()}))}else u();a(!1)}})},disabled:!0,id:De.i.CONSENT},[De.i.DOCUMENT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),[n,t]=(0,d.useState)(),a=(0,s.wA)(),r=(0,s.d4)(on),{isAnyEditableDoc:l,modifyConfig:o,modifyDocConfig:u,insertedDocuments:c}=In(),{idvEventEmitter:f}=Si();(0,d.useEffect)((()=>{var n,t;a(ln(null!==(t=null===(n=e[De.i.DOCUMENT])||void 0===n?void 0:n.numberOfIDs)&&void 0!==t?t:1))}),[e]),(0,d.useEffect)((()=>{t(o)}),[e,null==r?void 0:r.numberOfIdsRequired]),(0,d.useEffect)((()=>{var e;(null==n?void 0:n.name)&&!l()&&a(Qe({numberOfIdsRequired:null!==(e=null==n?void 0:n.numberOfIDs)&&void 0!==e?e:1,mode:Ye.CREATE,currentForm:null===De.i||void 0===De.i?void 0:De.i[n.name]}))}),[n]),(0,d.useEffect)((()=>{l()||c.length!=(null==n?void 0:n.numberOfIDs)?(null==r?void 0:r.data)&&t(u):f({extraEventInfo:{documentType:c.map((e=>e.key))},eventType:"ready"})}),[null==r?void 0:r.data]);const m=(0,d.useMemo)((()=>{var e;return null==gi?void 0:gi[null!==(e=null==r?void 0:r.currentForm)&&void 0!==e?e:De.i.DOCUMENT]}),[null==r?void 0:r.currentForm]);if(n||(null==r?void 0:r.currentForm))return(0,i.jsx)(m,{config:n,backButton:"manual"===(null==n?void 0:n.type),onBack:e=>{t((n=>u(n,e)))}})},disabled:!1,id:De.i.DOCUMENT},[De.i.RETRY]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.RETRY],t=(0,s.d4)(on),a=(0,s.wA)(),[r,l]=(0,d.useState)();(0,d.useEffect)((()=>{a(Qe({currentForm:De.i.RETRY,mode:Ye.REVIEW})),l(n)}),[]);const{isAdditionaDoc:o,isAnyEditableDoc:u,modifyConfig:c,modifyDocConfig:f,insertedDocuments:m,personalSequence:p}=In();(0,d.useEffect)((()=>{l(c)}),[e,null==t?void 0:t.currentForm]),(0,d.useEffect)((()=>{l(f)}),[null==t?void 0:t.currentForm]);const A=()=>{!p(0).isValidIndex&&y(De.i.REVIEW)},v=(0,d.useMemo)((()=>(0,i.jsx)(li,{config:r,formFieldsType:De.i.PERSONAL,previewImage:!1,onSubmit:A})),[r]),g=e=>{a(an({id:e}))};(0,d.useEffect)((()=>{l((e=>f(e,!0)))}),[t.backHistory]);const b=(0,d.useMemo)((()=>(0,i.jsx)(ai,{config:r,formFieldsType:De.i.DOCUMENT,onBack:g})),[r]),y=e=>a(Qe({currentForm:e})),h=()=>p(0).isValidIndex?De.i.REVIEW:De.i.PERSONAL;(0,d.useEffect)((()=>{var n,i;const a=t.mode===Ye.EDIT;m.length||a||!t.currentForm?!a&&m.length>(null===(n=e[De.i.DOCUMENT])||void 0===n?void 0:n.numberOfIDs)&&m.every((e=>null!==e.value.dirty))?y(h()):!u()&&m.length>=(null===(i=e[De.i.DOCUMENT])||void 0===i?void 0:i.numberOfIDs)?o()?l((e=>{const n=Object.assign(Object.assign({},e),{title:Object.assign(Object.assign({},e.title),{label:qe.additionInfo.label}),descriptions:qe.additionInfo.descriptions,documents:e.documents.map((e=>Object.assign(Object.assign({},e),{visible:!m.find((n=>n.key===e.type))})))});return n.documents.every((e=>!e.visible))&&y(h()),n})):t.currentForm&&!a&&m.every((e=>null!==e.value.dirty||!0===e.value.dirty))&&y(h()):(null==t?void 0:t.data)&&l(f):y(h())}),[null==t?void 0:t.data]);const x=(0,d.useMemo)((()=>{var e;const n=!!(null===(e=t.pageHistory)||void 0===e?void 0:e.length)||t.mode===Ye.EDIT,a=!!p(0).isValidIndex||n;return(0,i.jsx)(Sn,{config:r,backButton:a})}),[r,t.pageHistory]);if(!r)return null;switch(t.currentForm){case De.i.RETRY:return p(0).isValidIndex?v:x;case De.i.PERSONAL:return v;case De.i.DOCUMENT:return x;case Ce.DRIVERS_LICENCE:case Ce.PASSPORT:case Ce.NATIONAL_HEALTH_ID:return b;case De.i.REVIEW:return(0,i.jsx)(Ai,{});default:return null}},disabled:!1,id:De.i.RETRY},[De.i.REVIEW]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.REVIEW];return"manual"===(null==n?void 0:n.type)?(0,i.jsx)(Ai,{}):(0,i.jsx)(yi,{})},disabled:!0,id:De.i.REVIEW},[De.i.PERSONAL]:{element:vi,disabled:!1,id:De.i.PERSONAL},[De.i.LOADING]:{element:()=>(0,i.jsx)(ui,{}),disabled:!0,id:De.i.LOADING},[De.i.RESULT]:{element:()=>{const{pageConfigs:e}=(0,s.d4)(Oi),n=e[De.i.RESULT];return(0,i.jsx)(mi,{config:n})},disabled:!1,id:De.i.RESULT},[De.i.DOC_UPLOAD]:{element:()=>{const[e,n]=(0,d.useState)(0),[t,a]=(0,d.useState)([]),[r,l]=(0,d.useState)(!1),[o,u]=(0,d.useState)(0),[c,f]=(0,d.useState)(0),[m,p]=(0,d.useState)(!1),[A,v]=(0,d.useState)(!1),[g,b]=(0,d.useState)(0),{pageConfigs:y}=(0,s.d4)(Oi),h=y[De.i.DOC_UPLOAD],{idvEventEmitter:x,oneSDK:E}=Si(),C=(0,d.useMemo)((()=>{if(null==h?void 0:h.documents)return h.documents;try{const{requestedDocuments:e}=E.session.getExtraData()||{requestedDocuments:"[]"};return JSON.parse(e).map((({documentType:e})=>({type:e,title:{label:`Upload ${hn(e)}`}})))}catch(e){return[]}}),[]),w=(e,n)=>t=>{a((i=>{const a=[...i];return a[e]={file:t,type:n},a}))},j=e=>()=>{a((n=>{const t=[...n];return t[e]=null,t}))},N=e=>{l(!0),n(e)},O=E.business();return(0,d.useEffect)((()=>{O.on("upload_progress",(({completed:e})=>{(e=>{100===e?(f((e=>e+100)),u(0)):u(e)})(e)}))}),[]),(0,d.useEffect)((()=>{var n,i,a,r;e>C.length?(n=void 0,i=void 0,r=function*(){try{for(const{file:e,type:n}of t)yield O.upload(e,n);v(!0)}catch(e){p(!0),b((e=>e+1))}},new((a=void 0)||(a=Promise))((function(e,t){function l(e){try{s(r.next(e))}catch(e){t(e)}}function o(e){try{s(r.throw(e))}catch(e){t(e)}}function s(n){var t;n.done?e(n.value):(t=n.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}s((r=r.apply(n,i||[])).next())}))):(u(0),f(0))}),[e]),(0,i.jsxs)(i.Fragment,{children:[C.map((({type:a,title:o,descriptions:s,instructions:d,rules:u},c)=>c===e&&(0,i.jsx)(ke,{hideCTA:!t[c],onSubmit:()=>(e=>{r?(n(C.length),l(!1)):(x({eventCategory:"global",extraEventInfo:{name:De.i.DOC_UPLOAD,index:e+1},eventType:"navigate"}),n((e=>e+1)))})(c),renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:o.label,onBack:c>0&&!r&&(()=>(e=>{n(e-1)})(c))}),(0,i.jsx)(Te,{descriptions:(null==s?void 0:s.length)>0?s:[{label:"Please upload your latest document in the required format."}]}),t[c]?(0,i.jsx)(Rn.Preview,{file:t[c].file,onFileRemove:j(c)}):(0,i.jsx)(Rn.Main,{instructions:d,rules:u,onFileSelect:w(c,a)})]})},c))),e===C.length&&(0,i.jsx)(ke,{ctaInfo:{cta:{label:"Yes, submit documents",style:{}}},onSubmit:()=>{n((e=>e+1))},renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:"Are these documents correct?"}),(0,i.jsx)(Rn.Review,{files:t,onEdit:N})]})}),!m&&!A&&e>C.length&&(0,i.jsx)(ke,{hideCTA:!0,renderScreen:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fe,{label:"Uploading documents"}),(0,i.jsx)(Rn.Progress,{files:t,completed:Math.round((c+o)/t.length)})]})}),m&&(0,i.jsx)(ke,{ctaInfo:{cta:{label:"Retry submitting document"}},onSubmit:()=>{p(!1),n(t.length),x({eventCategory:"global",extraEventInfo:{name:De.i.DOC_UPLOAD},eventType:"failed"})},renderScreen:()=>(0,i.jsx)(Rn.Fail,{retries:g})}),A&&(0,i.jsx)(ke,{ctaInfo:{cta:{label:"Done",style:{}}},onSubmit:()=>{x({eventCategory:"global",extraEventInfo:{name:De.i.DOC_UPLOAD},eventType:"success"}),x({eventCategory:"global",extraEventInfo:{name:De.i.DOC_UPLOAD},eventType:"ready"})},renderScreen:()=>(0,i.jsx)(Rn.Success,{})})]})},disabled:!1,id:De.i.DOC_UPLOAD}},xi={[De.i.WELCOME]:kn,[De.i.CONSENT]:{name:"CONSENT",mode:"individual",type:"ocr",title:{label:"Your consent matters",style:{}},descriptions:[{label:'Your personal information being collected and used in accordance with FrankieOne\'s <a href="https://www.frankieone.com/privacy" target="_blank">Privacy Policy</a>.',style:{}},{label:"In addition, for the purposes of verifying your identity, you consent to: a) the verification of my personal information with credit bureau header files (for verification only); b) against records held by official document issues or official record holders via third party systems; and c) verification agent(s) acting as a nominated intermediary in accordance with Australian Privacy Principles.",style:{}},{label:"You consent to the use by third parties of the results of any verification checks on my identity for the purposes of monitoring and improving their verification services.",style:{}}],checkbox:{content:[{label:"I have read and agree the above disclosure",style:{}}],style:{}},cta:{icon:"",label:"Continue",style:{}},style:{}},[De.i.DOCUMENT]:Ln,[De.i.RETRY]:Jt,[De.i.REVIEW]:Ut,[De.i.PERSONAL]:Zn,[De.i.LOADING]:{name:"LOADING",title:{label:"Loading..."},descriptions:[{label:"Data extracting..."}]},[De.i.RESULT]:Jn,[De.i.DOC_UPLOAD]:Mn},Ei=(De.i.RESULT,(e,n)=>(null==e?void 0:e.currentModule)===n),Ci={pageConfigs:xi},wi=(0,u.Z0)({name:ze.PAGE_CONFIG,initialState:Ci,reducers:{addPageConfig:(e,n)=>{e.pageConfigs=Object.assign(Object.assign({},e.pageConfigs),n.payload)},removeCurrentModule:e=>{e.pageConfigs.currentModule=null}}}),{addPageConfig:ji,removeCurrentModule:Ni}=wi.actions,Oi=e=>e[ze.PAGE_CONFIG],Bi=wi.reducer;var Ti=t(3924);function Fi(e){var n,t;const i=e.pageConfigs[e.pageConfigs.currentModule],a=[De.i.CONSENT];return{eventConfig:{inputInfo:Object.assign(Object.assign(Object.assign({name:De.i[null==i?void 0:i.name]},!a.includes(De.i[null==i?void 0:i.name])&&{type:(null==i?void 0:i.type)||"ocr"}),(null==e?void 0:e.documentType)&&{documentType:e.documentType}),null==e?void 0:e.extraEventInfo)},eventName:Ti.Qf[null!==(t=null===(n=null==e?void 0:e.extraEventInfo)||void 0===n?void 0:n.name)&&void 0!==t?t:De.i[null==i?void 0:i.name]][e.eventType]}}const Ii=(0,d.createContext)(void 0),Si=()=>{const{pageConfigs:e}=(0,s.d4)(Oi),{eventHub:n,localEventHub:t,oneSDK:i}=(0,d.useContext)(Ii);return{documentReady:(n,i)=>{const{eventName:a,eventConfig:r}=Fi({pageConfigs:e,documentType:n,eventType:"ready",extraEventInfo:i});t.emit(a,r)},documentLoaded:n=>{const{eventName:i,eventConfig:a}=Fi({pageConfigs:e,eventType:"loaded",extraEventInfo:n});t.emit(i,a)},documentResultReady:n=>{const{eventName:i,eventConfig:a}=Fi({pageConfigs:e,eventType:n});t.emit(i,a)},idvEventEmitter:i=>{const{eventName:a,eventConfig:r}=Fi({pageConfigs:e,eventType:null==i?void 0:i.eventType,extraEventInfo:null==i?void 0:i.extraEventInfo});("local"===(null==i?void 0:i.eventCategory)?n:t).emit(a,r)},oneSDK:i}},Li=()=>{var e,n;const{pageConfigs:t}=(0,s.d4)(Oi),{config:a}=(0,d.useContext)(Ii),r=(0,d.useMemo)((()=>{var e;return null===(e=hi[t.currentModule])||void 0===e?void 0:e.element}),[t.currentModule]);return Ei(t,De.i[a.name])&&r?(0,i.jsx)("div",{className:(0,je.A)("f1-flex","f1-flex-col","f1-justify-between","tablet:f1-justify-normal","f1-h-full","f1-w-full","tablet:f1-max-w-[442px]",Ee.wrapper),style:null===(n=null===(e=t[t.currentModule])||void 0===e?void 0:e.style)||void 0===n?void 0:n[Ee.wrapper],children:(0,i.jsx)(r,{})}):null},ki=[De.i.LOADING],Di=({config:e})=>{var n;const{pageConfigs:t}=(0,s.d4)(Oi),a=(0,s.wA)(),{mergeAndReplaceConfig:r}=ei(),{documentLoaded:l}=Si(),o=null!==(n=De.i[null==e?void 0:e.name])&&void 0!==n?n:De.i.WELCOME;return(0,d.useEffect)((()=>{(null==t?void 0:t.currentModule)&&Ei(t,o)&&!ki.includes(t.currentModule)&&l()}),[t.currentModule]),(0,d.useEffect)((()=>{a(ji({currentModule:o,[o]:r(t[o],e,o)}))}),[e]),(0,i.jsx)(Li,{})},Pi=(0,u.Z0)({name:ze.LOADER,initialState:{loading:!1,label:"Loading..."},reducers:{startLoading:(e,n)=>{var t,i,a;e.loading=!0,e.label=null!==(i=null===(t=null==n?void 0:n.payload)||void 0===t?void 0:t.label)&&void 0!==i?i:e.label,e.descriptions=null===(a=null==n?void 0:n.payload)||void 0===a?void 0:a.descriptions},stopLoading:e=>{e.loading=!1,e.label=void 0,e.descriptions=void 0}}}),{startLoading:Ri,stopLoading:Mi}=Pi.actions,_i=Pi.reducer,Vi=(0,u.U1)({reducer:{[ze.LOADER]:_i,[ze.PAGE_CONFIG]:Bi,[ze.MANUAL_FLOW]:sn}}),qi=({oneSDK:e,eventHub:n,localEventHub:t,config:a,googleApiKey:r})=>(0,i.jsx)(s.Kq,{store:Vi,children:(0,i.jsx)(Ii.Provider,{value:{oneSDK:e,eventHub:n,config:a,googleApiKey:r,localEventHub:t},children:(0,i.jsx)(Di,{config:a})})});var Ui=t(5072),$i=t.n(Ui),zi=t(7825),Yi=t.n(zi),Hi=t(7659),Wi=t.n(Hi),Gi=t(5056),Zi=t.n(Gi),Ki=t(540),Ji=t.n(Ki),Xi=t(1113),Qi=t.n(Xi),ea=t(7913),na={};na.styleTagTransform=Qi(),na.setAttributes=Zi(),na.insert=Wi().bind(null,"head"),na.domAPI=Yi(),na.insertStyleElement=Ji(),$i()(ea.A,na),ea.A&&ea.A.locals&&ea.A.locals;var ta=t(2896),ia={};ia.styleTagTransform=Qi(),ia.setAttributes=Zi(),ia.insert=Wi().bind(null,"head"),ia.domAPI=Yi(),ia.insertStyleElement=Ji(),$i()(ta.A,ia),ta.A&&ta.A.locals&&ta.A.locals;var aa=t(2967),ra={};ra.styleTagTransform=Qi(),ra.setAttributes=Zi(),ra.insert=Wi().bind(null,"head"),ra.domAPI=Yi(),ra.insertStyleElement=Ji(),$i()(aa.A,ra),aa.A&&aa.A.locals&&aa.A.locals;const la={height:"100%",textAlign:"left",background:"white",display:"flex",justifyContent:"center",overflow:"auto"};var oa=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,o)}s((i=i.apply(e,n||[])).next())}))};const sa=["form:result:success","form:result:failed","form:result:partial","form:result:pending","form:result:ready"],da=["form","react","ff-react-form"],ua=(0,o.f)("react",((e,n)=>oa(void 0,void 0,void 0,(function*(){var t,l,o,s;const{mountElement:d,eventHub:u}=n,{oneSdkInstance:c,localEventHub:f,recipe:{form:{provider:m}}}=e,p="react"===m.name&&(null==m?void 0:m.config),A=null!==(l=null!==(t="react"===m.name&&(null==m?void 0:m.googleApiKey))&&void 0!==t?t:"MISSING_ENV_VAR".PUBLIC_GOOGLE_MAP_API)&&void 0!==l?l:"",v=(e="ready")=>{var n;return`form:${De.i[null!==(n=p.name)&&void 0!==n?n:"WELCOME"]}:${e}`};try{const{name:e,url:n}=null!==(s=null===(o=null==p?void 0:p.style)||void 0===o?void 0:o.font)&&void 0!==s?s:{};yield ca(n),"business"!==p.mode||c.business().access("entityId").getValue()||(yield c.business().search()),d.classList.add(...da);const t=(0,r.T)("modules.form.wrappingMode"),[l,m,g]=yield"shadow"===t?pa(d,e):ma(d,e),b=a.createRoot(l);b.render((0,i.jsx)(qi,{oneSDK:c,eventHub:u,localEventHub:f,config:p,googleApiKey:A}));const y=()=>{d.innerHTML="",b.unmount()};f.on(v(),(()=>oa(void 0,void 0,void 0,(function*(){y()})))),f.on(v("back"),(()=>oa(void 0,void 0,void 0,(function*(){y()})))),sa.forEach((e=>{f.on(e,(()=>oa(void 0,void 0,void 0,(function*(){y()}))))}))}catch(e){f.emit(v("failed"),{message:e})}return{cleanup:()=>{}}})))),ca=e=>oa(void 0,void 0,void 0,(function*(){e&&(Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some((n=>(null==n?void 0:n.href)===e))||(yield(0,l.loadAsyncAsset)(e,"style")))})),fa=(e,n)=>{const t=document.createElement("div");if(e.appendChild(t),Object.assign(t.style,Object.assign(Object.assign({},la),n&&{fontFamily:n})),n){const t=e.querySelectorAll("input, select, .f1-font-proxima-nova");null==t||t.forEach((e=>{const t=e.getAttribute("style"),i=`${t?t+";":""} font-family: ${n} !important;`;e.setAttribute("style",i)}))}return t},ma=(e,n)=>oa(void 0,void 0,void 0,(function*(){return[fa(e,n),e,window]})),pa=(e,n)=>oa(void 0,void 0,void 0,(function*(){const t=e.attachShadow({mode:"open"});return[fa(e,n),t,window]}))},5079:(e,n,t)=>{e.exports=t.p+"7f6d57b96337c21c053d.woff"},8199:(e,n,t)=>{e.exports=t.p+"d216030199c873b0bf41.woff2"},5303:(e,n,t)=>{e.exports=t.p+"5ddf80d7ddb1d1c5a0bc.woff"},71:(e,n,t)=>{e.exports=t.p+"6c874e1a72a4fa9eeed8.woff2"},675:(e,n,t)=>{e.exports=t.p+"af823d3a76ce1e2e36af.woff"},9675:(e,n,t)=>{e.exports=t.p+"26a8e1ce5e5578874420.woff2"},2375:(e,n,t)=>{e.exports=t.p+"1c9c1ef03c6dd661b89b.woff"},7047:(e,n,t)=>{e.exports=t.p+"58b74e594849c43b2248.woff2"}}]);
2
2
  //# sourceMappingURL=form-react.js.map