@medipass/utils 12.0.1-feat-medicules-facelift.0 → 12.0.1
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.
- package/dist/_virtual/rolldown_runtime.js +1 -29
- package/dist/build-validation-schema.d.ts +17 -18
- package/dist/build-validation-schema.js +26 -32
- package/dist/build-validation-schema.js.map +1 -1
- package/dist/datetime.js +3 -3
- package/dist/documents/workflow-state-formatted.js +5 -7
- package/dist/documents/workflow-state-formatted.js.map +1 -1
- package/dist/funders.js +2 -4
- package/dist/funders.js.map +1 -1
- package/dist/get-env.js +5 -9
- package/dist/get-env.js.map +1 -1
- package/dist/get-select-options.js +7 -9
- package/dist/get-select-options.js.map +1 -1
- package/dist/google-addresses.js +4 -7
- package/dist/google-addresses.js.map +1 -1
- package/dist/masked.js +4 -7
- package/dist/masked.js.map +1 -1
- package/dist/products.js +4 -6
- package/dist/products.js.map +1 -1
- package/dist/redux-actions.js +2 -4
- package/dist/redux-actions.js.map +1 -1
- package/dist/redux-reducer.js +4 -7
- package/dist/redux-reducer.js.map +1 -1
- package/dist/sanitise-url.js +2 -4
- package/dist/sanitise-url.js.map +1 -1
- package/dist/sentry.js +15 -21
- package/dist/sentry.js.map +1 -1
- package/dist/service-items.js +18 -22
- package/dist/service-items.js.map +1 -1
- package/dist/transaction-status-helpers.js +2 -4
- package/dist/transaction-status-helpers.js.map +1 -1
- package/dist/transaction-status.js +7 -9
- package/dist/transaction-status.js.map +1 -1
- package/dist/validate-form.js +11 -14
- package/dist/validate-form.js.map +1 -1
- package/dist/validate.js +9 -14
- package/dist/validate.js.map +1 -1
- package/dist/workflow-state-formatted.js +4 -6
- package/dist/workflow-state-formatted.js.map +1 -1
- package/package.json +4 -3
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/backend.js +0 -59
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/backend.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/client.js +0 -75
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/client.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/eventbuilder.js +0 -48
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/eventbuilder.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/helpers.js +0 -94
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/helpers.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/index.js +0 -59
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/breadcrumbs.js +0 -218
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/breadcrumbs.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/globalhandlers.js +0 -166
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/globalhandlers.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/index.js +0 -19
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/linkederrors.js +0 -62
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/linkederrors.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/trycatch.js +0 -172
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/trycatch.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/useragent.js +0 -41
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/integrations/useragent.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/parsers.js +0 -65
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/parsers.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/sdk.js +0 -157
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/sdk.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/tracekit.js +0 -146
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/tracekit.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/base.js +0 -31
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/base.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/fetch.js +0 -57
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/fetch.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/index.js +0 -15
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/xhr.js +0 -54
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/transports/xhr.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/version.js +0 -7
- package/dist/node_modules/.pnpm/@sentry_browser@5.12.0/node_modules/@sentry/browser/esm/version.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/api.js +0 -75
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/api.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/basebackend.js +0 -54
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/basebackend.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/baseclient.js +0 -331
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/baseclient.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integration.js +0 -65
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integration.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/functiontostring.js +0 -32
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/functiontostring.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/inboundfilters.js +0 -143
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/inboundfilters.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/index.js +0 -13
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/integrations/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/sdk.js +0 -19
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/sdk.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/transports/noop.js +0 -28
- package/dist/node_modules/.pnpm/@sentry_core@5.12.0/node_modules/@sentry/core/esm/transports/noop.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_hub@5.12.0/node_modules/@sentry/hub/esm/hub.js +0 -383
- package/dist/node_modules/.pnpm/@sentry_hub@5.12.0/node_modules/@sentry/hub/esm/hub.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_hub@5.12.0/node_modules/@sentry/hub/esm/scope.js +0 -271
- package/dist/node_modules/.pnpm/@sentry_hub@5.12.0/node_modules/@sentry/hub/esm/scope.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_minimal@5.12.0/node_modules/@sentry/minimal/esm/index.js +0 -146
- package/dist/node_modules/.pnpm/@sentry_minimal@5.12.0/node_modules/@sentry/minimal/esm/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_types@5.12.0/node_modules/@sentry/types/esm/severity.js +0 -45
- package/dist/node_modules/.pnpm/@sentry_types@5.12.0/node_modules/@sentry/types/esm/severity.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_types@5.12.0/node_modules/@sentry/types/esm/status.js +0 -37
- package/dist/node_modules/.pnpm/@sentry_types@5.12.0/node_modules/@sentry/types/esm/status.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/dsn.js +0 -82
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/dsn.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/error.js +0 -21
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/error.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/instrument.js +0 -336
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/instrument.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/is.js +0 -142
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/is.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/logger.js +0 -55
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/logger.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/memo.js +0 -40
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/memo.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/misc.js +0 -250
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/misc.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/object.js +0 -190
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/object.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/polyfill.js +0 -20
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/polyfill.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/promisebuffer.js +0 -75
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/promisebuffer.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/string.js +0 -48
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/string.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/supports.js +0 -84
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/supports.js.map +0 -1
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/syncpromise.js +0 -171
- package/dist/node_modules/.pnpm/@sentry_utils@5.12.0/node_modules/@sentry/utils/esm/syncpromise.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/assign/index.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/assign/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/formatters/index.js +0 -437
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/formatters/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/longFormatters/index.js +0 -51
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/format/longFormatters/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -27
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -25
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -32
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/protectedTokens/index.js +0 -19
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/protectedTokens/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -8
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -24
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCDay/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -20
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCISODay/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/setUTCWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -17
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -24
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/_lib/toInteger/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/addMilliseconds/index.js +0 -37
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/addMilliseconds/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/format/index.js +0 -378
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/format/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/getMinutes/index.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/getMinutes/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isBefore/index.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isBefore/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isFuture/index.js +0 -37
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isFuture/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isValid/index.js +0 -70
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/isValid/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +0 -12
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +0 -22
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +0 -78
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +0 -16
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +0 -217
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +0 -133
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/index.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/locale/en-US/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -1346
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/parse/_lib/parsers/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/parse/index.js +0 -461
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/parse/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/setMinutes/index.js +0 -38
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/setMinutes/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/startOfMinute/index.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/startOfMinute/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/subMilliseconds/index.js +0 -35
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/subMilliseconds/index.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/toDate/index.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@2.16.1/node_modules/date-fns/esm/toDate/index.js.map +0 -1
- package/dist/node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js +0 -68
- package/dist/node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js.map +0 -1
- package/dist/node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/implementation.browser.js +0 -14
- package/dist/node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/implementation.browser.js.map +0 -1
- package/dist/node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/polyfill.js +0 -17
- package/dist/node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/polyfill.js.map +0 -1
- package/dist/node_modules/.pnpm/google-libphonenumber@3.2.44/node_modules/google-libphonenumber/dist/libphonenumber.js +0 -84028
- package/dist/node_modules/.pnpm/google-libphonenumber@3.2.44/node_modules/google-libphonenumber/dist/libphonenumber.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -38
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -38
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -38
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +0 -34
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayEach.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayEach.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +0 -34
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js +0 -22
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js +0 -55
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseEach.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseEach.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js +0 -38
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHas.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js +0 -23
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js +0 -34
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js +0 -67
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js +0 -48
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.js +0 -22
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js +0 -37
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRepeat.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRepeat.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js +0 -36
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js +0 -23
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castFunction.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castFunction.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseEach.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseEach.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js +0 -213
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js +0 -21
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js +0 -64
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js +0 -74
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js +0 -64
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -14
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js +0 -34
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -23
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js +0 -40
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -35
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -23
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -29
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -23
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -30
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -14
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js +0 -14
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js +0 -36
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +0 -18
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js +0 -35
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +0 -25
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +0 -24
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +0 -43
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js +0 -26
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -32
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +0 -27
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js +0 -40
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js +0 -55
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js +0 -39
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js +0 -36
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js +0 -41
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +0 -47
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js +0 -50
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forOwn.js +0 -46
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forOwn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js +0 -43
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +0 -36
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +0 -43
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js +0 -43
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +0 -39
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js +0 -67
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -39
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js +0 -43
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +0 -41
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +0 -39
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +0 -37
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js +0 -35
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js +0 -47
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js +0 -42
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapKeys.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapKeys.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js +0 -52
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js +0 -73
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/negate.js +0 -47
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/negate.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js +0 -39
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js +0 -35
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js +0 -42
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/repeat.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/repeat.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js +0 -37
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/snakeCase.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js +0 -33
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +0 -28
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js +0 -45
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js +0 -44
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +0 -61
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js +0 -38
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js +0 -31
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.js.map +0 -1
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js +0 -42
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.js.map +0 -1
- package/dist/node_modules/.pnpm/nanoclone@0.2.1/node_modules/nanoclone/src/index.js +0 -38
- package/dist/node_modules/.pnpm/nanoclone@0.2.1/node_modules/nanoclone/src/index.js.map +0 -1
- package/dist/node_modules/.pnpm/payment@2.4.7/node_modules/payment/lib/index.js +0 -565
- package/dist/node_modules/.pnpm/payment@2.4.7/node_modules/payment/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/property-expr@2.0.6/node_modules/property-expr/index.js +0 -100
- package/dist/node_modules/.pnpm/property-expr@2.0.6/node_modules/property-expr/index.js.map +0 -1
- package/dist/node_modules/.pnpm/qj@2.0.0/node_modules/qj/lib/index.js +0 -175
- package/dist/node_modules/.pnpm/qj@2.0.0/node_modules/qj/lib/index.js.map +0 -1
- package/dist/node_modules/.pnpm/redux-sentry-middleware@0.1.3/node_modules/redux-sentry-middleware/dist/index.umd.js +0 -86
- package/dist/node_modules/.pnpm/redux-sentry-middleware@0.1.3/node_modules/redux-sentry-middleware/dist/index.umd.js.map +0 -1
- package/dist/node_modules/.pnpm/toposort@2.0.2/node_modules/toposort/index.js +0 -78
- package/dist/node_modules/.pnpm/toposort@2.0.2/node_modules/toposort/index.js.map +0 -1
- package/dist/node_modules/.pnpm/tslib@1.14.1/node_modules/tslib/tslib.es6.js +0 -77
- package/dist/node_modules/.pnpm/tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Condition.d.ts +0 -23
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Condition.js +0 -40
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Condition.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Lazy.d.ts +0 -29
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Lazy.js +0 -49
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Lazy.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Reference.d.ts +0 -36
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Reference.js +0 -61
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Reference.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/ValidationError.d.ts +0 -16
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/ValidationError.js +0 -48
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/ValidationError.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/array.js +0 -181
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/array.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/boolean.js +0 -53
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/boolean.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/date.js +0 -67
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/date.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/index.js +0 -52
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/index.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/locale.js +0 -61
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/locale.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/mixed.js +0 -13
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/mixed.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/number.js +0 -108
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/number.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/object.d.ts +0 -48
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/object.js +0 -266
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/object.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/schema.d.ts +0 -148
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/schema.js +0 -407
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/schema.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/setLocale.js +0 -14
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/setLocale.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/string.js +0 -132
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/string.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/types.d.ts +0 -56
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/ReferenceSet.d.ts +0 -19
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/ReferenceSet.js +0 -51
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/ReferenceSet.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/createValidation.d.ts +0 -43
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/createValidation.js +0 -96
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/createValidation.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isAbsent.js +0 -6
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isAbsent.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isSchema.js +0 -6
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isSchema.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isodate.js +0 -39
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/isodate.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/printValue.js +0 -36
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/printValue.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/reach.js +0 -47
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/reach.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/runTests.js +0 -48
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/runTests.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/sortByKeyOrder.js +0 -21
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/sortByKeyOrder.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/sortFields.js +0 -31
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/sortFields.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/toArray.js +0 -8
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/toArray.js.map +0 -1
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/util/types.d.ts +0 -11
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/Condition.d.ts +0 -23
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/Lazy.d.ts +0 -29
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/Reference.d.ts +0 -36
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/ValidationError.d.ts +0 -16
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/locale.d.ts +0 -18
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/object.d.ts +0 -13
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/schema.d.ts +0 -141
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/string.d.ts +0 -74
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/types.d.ts +0 -54
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/util/ReferenceSet.d.ts +0 -19
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/util/createValidation.d.ts +0 -43
- package/dist/node_modules/.pnpm/yup@0.32.9/node_modules/yup/lib/util/types.d.ts +0 -12
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
3
|
var __export = (all, symbols) => {
|
|
10
4
|
let target = {};
|
|
11
5
|
for (var name in all) {
|
|
@@ -19,28 +13,6 @@ var __export = (all, symbols) => {
|
|
|
19
13
|
}
|
|
20
14
|
return target;
|
|
21
15
|
};
|
|
22
|
-
var __copyProps = (to, from, except, desc) => {
|
|
23
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
25
|
-
key = keys[i];
|
|
26
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
27
|
-
__defProp(to, key, {
|
|
28
|
-
get: ((k) => from[k]).bind(null, key),
|
|
29
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return to;
|
|
35
|
-
};
|
|
36
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
|
-
value: mod,
|
|
38
|
-
enumerable: true
|
|
39
|
-
}) : target, mod));
|
|
40
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
41
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
42
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
43
|
-
});
|
|
44
16
|
|
|
45
17
|
//#endregion
|
|
46
|
-
export {
|
|
18
|
+
export { __export };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { ObjectSchema } from "./node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/object.js";
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
import * as yup_lib_Reference0 from "yup/lib/Reference";
|
|
3
|
+
import * as yup_lib_Lazy0 from "yup/lib/Lazy";
|
|
4
|
+
import * as yup_lib_object0 from "yup/lib/object";
|
|
5
|
+
import * as yup_lib_string0 from "yup/lib/string";
|
|
7
6
|
|
|
8
7
|
//#region src/build-validation-schema.d.ts
|
|
9
8
|
declare const FIELD_VALIDATORS: {
|
|
@@ -135,23 +134,23 @@ declare const buildValidationSchema: (fields: Array<{
|
|
|
135
134
|
key?: string;
|
|
136
135
|
required?: boolean;
|
|
137
136
|
validators?: Array<Record<string, any>>;
|
|
138
|
-
}>, overrideSchema?: Record<string, any>) => ObjectSchema<{
|
|
139
|
-
[x: string]: AnySchema |
|
|
140
|
-
}, Record<string, any>, TypeOfShape<{
|
|
141
|
-
[x: string]: AnySchema |
|
|
142
|
-
}>, AssertsShape<{
|
|
143
|
-
[x: string]: AnySchema |
|
|
137
|
+
}>, overrideSchema?: Record<string, any>) => yup.ObjectSchema<{
|
|
138
|
+
[x: string]: yup.AnySchema | yup_lib_Reference0.default<unknown> | yup_lib_Lazy0.default<any, any>;
|
|
139
|
+
}, Record<string, any>, yup_lib_object0.TypeOfShape<{
|
|
140
|
+
[x: string]: yup.AnySchema | yup_lib_Reference0.default<unknown> | yup_lib_Lazy0.default<any, any>;
|
|
141
|
+
}>, yup_lib_object0.AssertsShape<{
|
|
142
|
+
[x: string]: yup.AnySchema | yup_lib_Reference0.default<unknown> | yup_lib_Lazy0.default<any, any>;
|
|
144
143
|
}>>;
|
|
145
144
|
declare const paymentMethodValidationSchema: {
|
|
146
145
|
name: string;
|
|
147
146
|
}[];
|
|
148
147
|
declare const getHealthFundAccountValidationSchema: (cardFields: Record<string, any>) => {
|
|
149
|
-
cardIssueNumber?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
150
|
-
expiryDate?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
151
|
-
issueDate?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
152
|
-
cardRank?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
153
|
-
membershipNumber?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
154
|
-
cardNumber?: RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
148
|
+
cardIssueNumber?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
149
|
+
expiryDate?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
150
|
+
issueDate?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
151
|
+
cardRank?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
152
|
+
membershipNumber?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
153
|
+
cardNumber?: yup_lib_string0.RequiredStringSchema<string | undefined, Record<string, any>> | undefined;
|
|
155
154
|
};
|
|
156
155
|
//#endregion
|
|
157
156
|
export { FIELD_VALIDATORS, buildValidationSchema as default, getHealthFundAccountValidationSchema, paymentMethodValidationSchema };
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { __toESM } from "./_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_get } from "./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js";
|
|
3
|
-
import { create } from "./node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/Reference.js";
|
|
4
|
-
import { create as create$1 } from "./node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/string.js";
|
|
5
|
-
import { create as create$2 } from "./node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/object.js";
|
|
6
|
-
import { es_exports } from "./node_modules/.pnpm/yup@0.32.9/node_modules/yup/es/index.js";
|
|
7
|
-
import { require_lib } from "./node_modules/.pnpm/payment@2.4.7/node_modules/payment/lib/index.js";
|
|
8
1
|
import { isMobileNumber } from "./validate.js";
|
|
2
|
+
import * as yup from "yup";
|
|
3
|
+
import payment from "payment";
|
|
4
|
+
import _get from "lodash/get";
|
|
9
5
|
|
|
10
6
|
//#region src/build-validation-schema.ts
|
|
11
|
-
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
12
|
-
var import_get = /* @__PURE__ */ __toESM(require_get(), 1);
|
|
13
7
|
const FIELD_VALIDATORS = {
|
|
14
8
|
firstName: {
|
|
15
9
|
type: "string",
|
|
@@ -37,7 +31,7 @@ const FIELD_VALIDATORS = {
|
|
|
37
31
|
message: "Please enter a valid day between 01 and 31",
|
|
38
32
|
fn: (value) => {
|
|
39
33
|
if (!value) return;
|
|
40
|
-
const day = (
|
|
34
|
+
const day = _get(value.split("/"), "[0]", "").split(" ").join("");
|
|
41
35
|
return day ? /^0[1-9]|[12][0-9]|3[01]$/.test(day) : true;
|
|
42
36
|
}
|
|
43
37
|
},
|
|
@@ -46,7 +40,7 @@ const FIELD_VALIDATORS = {
|
|
|
46
40
|
message: "Please enter a valid month between 01 and 12",
|
|
47
41
|
fn: (value) => {
|
|
48
42
|
if (!value) return;
|
|
49
|
-
const month = (
|
|
43
|
+
const month = _get(value.split("/"), "[1]", "");
|
|
50
44
|
return month ? /^(0[1-9]|1[012])$/.test(month) : true;
|
|
51
45
|
}
|
|
52
46
|
},
|
|
@@ -55,7 +49,7 @@ const FIELD_VALIDATORS = {
|
|
|
55
49
|
message: "Please enter a valid year",
|
|
56
50
|
fn: (value) => {
|
|
57
51
|
if (!value) return;
|
|
58
|
-
const year = (
|
|
52
|
+
const year = _get(value.split("/"), "[2]", "");
|
|
59
53
|
return year ? /^[0-9]{4}$/.test(year) : true;
|
|
60
54
|
}
|
|
61
55
|
},
|
|
@@ -64,7 +58,7 @@ const FIELD_VALIDATORS = {
|
|
|
64
58
|
message: "Please enter a year greater than 1900",
|
|
65
59
|
fn: (value) => {
|
|
66
60
|
if (!value) return;
|
|
67
|
-
const year = (
|
|
61
|
+
const year = _get(value.split("/"), "[2]", "");
|
|
68
62
|
return year ? parseInt(year, 10) >= 1900 : true;
|
|
69
63
|
}
|
|
70
64
|
},
|
|
@@ -73,7 +67,7 @@ const FIELD_VALIDATORS = {
|
|
|
73
67
|
message: `Please enter a year before ${(/* @__PURE__ */ new Date()).getFullYear() + 1}`,
|
|
74
68
|
fn: (value) => {
|
|
75
69
|
if (!value) return;
|
|
76
|
-
const year = (
|
|
70
|
+
const year = _get(value.split("/"), "[2]", "");
|
|
77
71
|
return year ? parseInt(year, 10) <= (/* @__PURE__ */ new Date()).getFullYear() : true;
|
|
78
72
|
}
|
|
79
73
|
}
|
|
@@ -160,7 +154,7 @@ const FIELD_VALIDATORS = {
|
|
|
160
154
|
}, {
|
|
161
155
|
type: "test",
|
|
162
156
|
message: "Please enter a valid card number",
|
|
163
|
-
fn: (value) =>
|
|
157
|
+
fn: (value) => payment.fns.validateCardNumber(value)
|
|
164
158
|
}]
|
|
165
159
|
},
|
|
166
160
|
expiry: {
|
|
@@ -171,7 +165,7 @@ const FIELD_VALIDATORS = {
|
|
|
171
165
|
}, {
|
|
172
166
|
type: "test",
|
|
173
167
|
message: "Please enter a valid expiry",
|
|
174
|
-
fn: (value) =>
|
|
168
|
+
fn: (value) => payment.fns.validateCardExpiry(value)
|
|
175
169
|
}]
|
|
176
170
|
},
|
|
177
171
|
cvc: {
|
|
@@ -182,7 +176,7 @@ const FIELD_VALIDATORS = {
|
|
|
182
176
|
}, {
|
|
183
177
|
type: "test",
|
|
184
178
|
message: "Please enter a valid CVC",
|
|
185
|
-
fn: (value) =>
|
|
179
|
+
fn: (value) => payment.fns.validateCardCVC(value)
|
|
186
180
|
}]
|
|
187
181
|
}
|
|
188
182
|
};
|
|
@@ -190,7 +184,7 @@ const getFieldSchema = (field) => {
|
|
|
190
184
|
const key = field.key || field.name;
|
|
191
185
|
const defaultFieldExists = Boolean(FIELD_VALIDATORS[key]);
|
|
192
186
|
const fieldAttributes = defaultFieldExists ? FIELD_VALIDATORS[key] : field;
|
|
193
|
-
let schema =
|
|
187
|
+
let schema = yup;
|
|
194
188
|
switch (fieldAttributes.type) {
|
|
195
189
|
case "string":
|
|
196
190
|
schema = schema.string();
|
|
@@ -231,7 +225,7 @@ const getFieldSchema = (field) => {
|
|
|
231
225
|
schema = schema.matches(validator.pattern, validator.message);
|
|
232
226
|
break;
|
|
233
227
|
case "oneOf":
|
|
234
|
-
schema = schema.oneOf([
|
|
228
|
+
schema = schema.oneOf([yup.ref(validator.fieldName), null], validator.message);
|
|
235
229
|
break;
|
|
236
230
|
default: break;
|
|
237
231
|
}
|
|
@@ -244,7 +238,7 @@ const buildValidationSchema = (fields, overrideSchema = {}) => {
|
|
|
244
238
|
if (!field) return;
|
|
245
239
|
schema[field.name] = getFieldSchema(field);
|
|
246
240
|
});
|
|
247
|
-
return
|
|
241
|
+
return yup.object().shape({
|
|
248
242
|
...schema,
|
|
249
243
|
...overrideSchema
|
|
250
244
|
});
|
|
@@ -252,19 +246,19 @@ const buildValidationSchema = (fields, overrideSchema = {}) => {
|
|
|
252
246
|
var build_validation_schema_default = buildValidationSchema;
|
|
253
247
|
const validateHealthFundDate = (schema, { cardFields, fieldKey, dayKey, monthKey, yearKey }) => {
|
|
254
248
|
let newSchema = schema;
|
|
255
|
-
if (cardFields[dayKey]) newSchema = newSchema.test(fieldKey, (
|
|
249
|
+
if (cardFields[dayKey]) newSchema = newSchema.test(fieldKey, _get(cardFields, `${dayKey}.validation.message`), (value) => {
|
|
256
250
|
const day = (value ? value.split("/") : [])[0];
|
|
257
|
-
return new RegExp((
|
|
251
|
+
return new RegExp(_get(cardFields, `${dayKey}.validation.regex`)).test(day);
|
|
258
252
|
});
|
|
259
|
-
if (cardFields[monthKey]) newSchema = newSchema.test(fieldKey, (
|
|
253
|
+
if (cardFields[monthKey]) newSchema = newSchema.test(fieldKey, _get(cardFields, `${monthKey}.validation.message`), (value) => {
|
|
260
254
|
const dateArray = value ? value.split("/") : [];
|
|
261
255
|
const month = dateArray[dateArray.length - 2];
|
|
262
|
-
return new RegExp((
|
|
256
|
+
return new RegExp(_get(cardFields, `${monthKey}.validation.regex`)).test(month);
|
|
263
257
|
});
|
|
264
|
-
if (cardFields[yearKey]) newSchema = newSchema.test(fieldKey, (
|
|
258
|
+
if (cardFields[yearKey]) newSchema = newSchema.test(fieldKey, _get(cardFields, `${yearKey}.validation.message`), (value) => {
|
|
265
259
|
const dateArray = value ? value.split("/") : [];
|
|
266
260
|
const year = dateArray[dateArray.length - 1];
|
|
267
|
-
return new RegExp((
|
|
261
|
+
return new RegExp(_get(cardFields, `${yearKey}.validation.regex`)).test(year);
|
|
268
262
|
});
|
|
269
263
|
return newSchema;
|
|
270
264
|
};
|
|
@@ -274,11 +268,11 @@ const paymentMethodValidationSchema = [
|
|
|
274
268
|
{ name: "cvc" }
|
|
275
269
|
];
|
|
276
270
|
const getHealthFundAccountValidationSchema = (cardFields) => ({
|
|
277
|
-
...cardFields.cardNumber ? { cardNumber:
|
|
278
|
-
...cardFields.membershipNumber ? { membershipNumber:
|
|
279
|
-
...cardFields.cardRank ? { cardRank:
|
|
271
|
+
...cardFields.cardNumber ? { cardNumber: yup.string().matches(new RegExp(_get(cardFields, "cardNumber.validation.regex")), _get(cardFields, "cardNumber.validation.message")).required(`Please enter a ${_get(cardFields, "cardNumber.displayName", "card number").toLowerCase()}`) } : {},
|
|
272
|
+
...cardFields.membershipNumber ? { membershipNumber: yup.string().min(_get(cardFields, "membershipNumber.minLength"), `${_get(cardFields, "membershipNumber.displayName", "membership number")} must be at least ${_get(cardFields, "membershipNumber.minLength")} numbers`).max(_get(cardFields, "membershipNumber.maxLength", 99), `${_get(cardFields, "membershipNumber.displayName", "membership number")} must be less than ${_get(cardFields, "membershipNumber.maxLength")} numbers`).matches(new RegExp(_get(cardFields, "membershipNumber.validation.regex")), _get(cardFields, "membershipNumber.validation.message")).required(`Please enter a ${_get(cardFields, "membershipNumber.displayName", "membership number").toLowerCase()}`) } : {},
|
|
273
|
+
...cardFields.cardRank ? { cardRank: yup.string().min(_get(cardFields, "cardRank.minLength"), `${_get(cardFields, "cardRank.displayName", "card rank")} must be at least ${_get(cardFields, "cardRank.minLength")} numbers`).max(_get(cardFields, "cardRank.maxLength", 99), `${_get(cardFields, "cardRank.displayName", "card rank")} must be less than ${_get(cardFields, "cardRank.maxLength")} numbers`).matches(new RegExp(_get(cardFields, "cardRank.validation.regex")), _get(cardFields, "cardRank.validation.message")).required(`Please enter a ${_get(cardFields, "cardRank.displayName", "card rank").toLowerCase()}`) } : {},
|
|
280
274
|
...cardFields.issueDay || cardFields.issueMonth || cardFields.issueYear ? (() => {
|
|
281
|
-
let issueDateSchema =
|
|
275
|
+
let issueDateSchema = yup.string().required("Please enter an issue date");
|
|
282
276
|
issueDateSchema = validateHealthFundDate(issueDateSchema, {
|
|
283
277
|
cardFields,
|
|
284
278
|
fieldKey: "issueDate",
|
|
@@ -289,7 +283,7 @@ const getHealthFundAccountValidationSchema = (cardFields) => ({
|
|
|
289
283
|
return { issueDate: issueDateSchema };
|
|
290
284
|
})() : {},
|
|
291
285
|
...cardFields.expiryDay || cardFields.expiryMonth || cardFields.expiryYear ? (() => {
|
|
292
|
-
let expiryDateSchema =
|
|
286
|
+
let expiryDateSchema = yup.string().required("Please enter an expiry date");
|
|
293
287
|
expiryDateSchema = validateHealthFundDate(expiryDateSchema, {
|
|
294
288
|
cardFields,
|
|
295
289
|
fieldKey: "expiryDate",
|
|
@@ -299,7 +293,7 @@ const getHealthFundAccountValidationSchema = (cardFields) => ({
|
|
|
299
293
|
});
|
|
300
294
|
return { expiryDate: expiryDateSchema };
|
|
301
295
|
})() : {},
|
|
302
|
-
...cardFields.cardIssueNumber ? { cardIssueNumber:
|
|
296
|
+
...cardFields.cardIssueNumber ? { cardIssueNumber: yup.string().min(_get(cardFields, "cardIssueNumber.minLength"), `${_get(cardFields, "cardIssueNumber.displayName", "issue number")} must be at least ${_get(cardFields, "cardIssueNumber.minLength")} numbers`).max(_get(cardFields, "cardIssueNumber.maxLength", 99), `${_get(cardFields, "cardIssueNumber.displayName", "issue number")} must be less than ${_get(cardFields, "cardIssueNumber.maxLength")} numbers`).matches(new RegExp(_get(cardFields, "cardIssueNumber.validation.regex")), _get(cardFields, "cardIssueNumber.validation.message")).required(`Please enter a ${_get(cardFields, "cardIssueNumber.displayName", "issue number").toLowerCase()}`) } : {}
|
|
303
297
|
});
|
|
304
298
|
|
|
305
299
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-validation-schema.js","names":["payment","yup","yup.ref","yup.object","yup\n .string","yup.string"],"sources":["../src/build-validation-schema.ts"],"sourcesContent":["import * as yup from 'yup';\n// @ts-expect-error TS(7016): Could not find a declaration file for module 'paym... Remove this comment to see the full error message\nimport payment from 'payment';\nimport _get from 'lodash/get';\n\nimport { isMobileNumber } from './validate';\n\nexport const FIELD_VALIDATORS = {\n firstName: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your first name'\n }\n ]\n },\n lastName: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your last name'\n }\n ]\n },\n dob: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your date of birth'\n },\n {\n type: 'test',\n message: 'Please enter a valid day between 01 and 31',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const day = _get(value.split('/'), '[0]', '').split(' ').join('');\n\n return day ? /^0[1-9]|[12][0-9]|3[01]$/.test(day) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a valid month between 01 and 12',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const month = _get(value.split('/'), '[1]', '');\n\n return month ? /^(0[1-9]|1[012])$/.test(month) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a valid year',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? /^[0-9]{4}$/.test(year) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a year greater than 1900',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? parseInt(year, 10) >= 1900 : true;\n }\n },\n {\n type: 'test',\n message: `Please enter a year before ${new Date().getFullYear() + 1}`,\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? parseInt(year, 10) <= new Date().getFullYear() : true;\n }\n }\n ]\n },\n email: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your email address'\n },\n {\n type: 'email',\n message: 'Please enter a valid email address'\n }\n ]\n },\n mobile: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your mobile number'\n },\n {\n type: 'test',\n message: 'Please enter a valid Australian mobile number',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => (value ? isMobileNumber(value, 'AU') : true)\n }\n ]\n },\n password: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your password'\n }\n ]\n },\n newPassword: {\n type: 'string',\n validators: [\n {\n key: 'required',\n type: 'required',\n message: 'Please enter your new password'\n },\n {\n key: 'min-characters',\n type: 'min',\n length: 8,\n message: 'Your password must have at least 8 characters'\n },\n {\n key: 'uppercase',\n type: 'matches',\n pattern: /[A-Z]/,\n message: 'Your password must have an uppercase character'\n },\n {\n key: 'number',\n type: 'matches',\n pattern: /[0-9]/,\n message: 'Your password must have a number'\n },\n {\n key: 'special-character',\n type: 'matches',\n pattern: /[!@?#$%^&*)(+=._-]/,\n message: 'Your password must have a special character (e.g. ! or @ or #)'\n }\n ]\n },\n repeatPassword: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Enter your new password again'\n },\n {\n type: 'oneOf',\n fieldName: 'password',\n message: 'This password does not match the other password'\n }\n ]\n },\n cardNumber: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter a card number'\n },\n {\n type: 'test',\n message: 'Please enter a valid card number',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardNumber(value)\n }\n ]\n },\n expiry: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter an expiry'\n },\n {\n type: 'test',\n message: 'Please enter a valid expiry',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardExpiry(value)\n }\n ]\n },\n cvc: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter a CVC'\n },\n {\n type: 'test',\n message: 'Please enter a valid CVC',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardCVC(value)\n }\n ]\n }\n};\n\n// @ts-expect-error TS(7006): Parameter 'field' implicitly has an 'any' type.\nconst getFieldSchema = field => {\n const key = field.key || field.name;\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n const defaultFieldExists = Boolean(FIELD_VALIDATORS[key]);\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n const fieldAttributes = defaultFieldExists ? FIELD_VALIDATORS[key] : field;\n let schema = yup;\n\n switch (fieldAttributes.type) {\n case 'string': {\n // @ts-expect-error TS(2740): Type 'StringSchema<string, Record<string, any>, st... Remove this comment to see the full error message\n schema = schema.string();\n break;\n }\n\n case 'object': {\n // @ts-expect-error TS(2740): Type 'OptionalObjectSchema<ObjectShape, Record<str... Remove this comment to see the full error message\n schema = schema.object();\n break;\n }\n\n case 'array': {\n // @ts-expect-error TS(2740): Type 'OptionalArraySchema<AnySchema<any, any, any>... Remove this comment to see the full error message\n schema = schema.array();\n break;\n }\n\n case 'boolean': {\n // @ts-expect-error TS(2740): Type 'BooleanSchema<boolean, Record<string, any>, ... Remove this comment to see the full error message\n schema = schema.boolean();\n break;\n }\n\n case 'date': {\n // @ts-expect-error TS(2740): Type 'DateSchema<Date, Record<string, any>, Date>'... Remove this comment to see the full error message\n schema = schema.date();\n break;\n }\n\n case 'number': {\n // @ts-expect-error TS(2740): Type 'NumberSchema<number, Record<string, any>, nu... Remove this comment to see the full error message\n schema = schema.number();\n break;\n }\n\n default: {\n // @ts-expect-error TS(2322): Type 'StringSchema<string, Record<string, any>, st... Remove this comment to see the full error message\n schema = schema.string();\n }\n }\n\n if (fieldAttributes.validators) {\n // @ts-expect-error TS(7006): Parameter 'validator' implicitly has an 'any' type... Remove this comment to see the full error message\n fieldAttributes.validators.forEach(validator => {\n switch (validator.type) {\n case 'required': {\n if (defaultFieldExists && !field.required) {\n return;\n }\n\n // @ts-expect-error TS(2339): Property 'required' does not exist on type 'typeof... Remove this comment to see the full error message\n schema = schema.required(validator.message);\n break;\n }\n\n case 'test': {\n // @ts-expect-error TS(2339): Property 'test' does not exist on type 'typeof imp... Remove this comment to see the full error message\n schema = schema.test(field.name, validator.message, validator.fn);\n break;\n }\n\n case 'email': {\n // @ts-expect-error TS(2339): Property 'email' does not exist on type 'typeof im... Remove this comment to see the full error message\n schema = schema.email(validator.message);\n break;\n }\n\n case 'min': {\n // @ts-expect-error TS(2339): Property 'min' does not exist on type 'typeof impo... Remove this comment to see the full error message\n schema = schema.min(validator.length, validator.message);\n break;\n }\n\n case 'matches': {\n // @ts-expect-error TS(2339): Property 'matches' does not exist on type 'typeof ... Remove this comment to see the full error message\n schema = schema.matches(validator.pattern, validator.message);\n break;\n }\n\n case 'oneOf': {\n // @ts-expect-error TS(2339): Property 'oneOf' does not exist on type 'typeof im... Remove this comment to see the full error message\n schema = schema.oneOf([yup.ref(validator.fieldName), null], validator.message);\n break;\n }\n\n default: {\n break;\n }\n }\n });\n }\n\n return schema;\n};\n\nconst buildValidationSchema = (\n fields: Array<{\n name: string;\n key?: string;\n required?: boolean;\n validators?: Array<Record<string, any>>;\n }>,\n overrideSchema: Record<string, any> = {}\n) => {\n const schema = {};\n fields.forEach(field => {\n if (!field) {\n return;\n }\n\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n schema[field.name] = getFieldSchema(field);\n });\n return yup.object().shape({ ...schema, ...overrideSchema });\n};\n\nexport default buildValidationSchema;\n/* ===== CUSTOM OVERRIDE SCHEMAS ===== */\n\n// @ts-expect-error TS(7006): Parameter 'schema' implicitly has an 'any' type.\nconst validateHealthFundDate = (schema, { cardFields, fieldKey, dayKey, monthKey, yearKey }) => {\n let newSchema = schema;\n\n if (cardFields[dayKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${dayKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const day = dateArray[0];\n return new RegExp(_get(cardFields, `${dayKey}.validation.regex`)).test(day);\n });\n }\n\n if (cardFields[monthKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${monthKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const month = dateArray[dateArray.length - 2];\n return new RegExp(_get(cardFields, `${monthKey}.validation.regex`)).test(month);\n });\n }\n\n if (cardFields[yearKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${yearKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const year = dateArray[dateArray.length - 1];\n return new RegExp(_get(cardFields, `${yearKey}.validation.regex`)).test(year);\n });\n }\n\n return newSchema;\n};\n\nexport const paymentMethodValidationSchema = [\n {\n name: 'cardNumber'\n },\n {\n name: 'expiry'\n },\n {\n name: 'cvc'\n }\n];\nexport const getHealthFundAccountValidationSchema = (cardFields: Record<string, any>) => ({\n ...(cardFields.cardNumber\n ? {\n cardNumber: yup\n .string()\n .matches(\n new RegExp(_get(cardFields, 'cardNumber.validation.regex')),\n _get(cardFields, 'cardNumber.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, 'cardNumber.displayName', 'card number').toLowerCase()}`)\n }\n : {}),\n ...(cardFields.membershipNumber\n ? {\n membershipNumber: yup\n .string()\n .min(\n _get(cardFields, 'membershipNumber.minLength'),\n `${_get(cardFields, 'membershipNumber.displayName', 'membership number')} must be at least ${_get(\n cardFields,\n 'membershipNumber.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'membershipNumber.maxLength', 99),\n `${_get(cardFields, 'membershipNumber.displayName', 'membership number')} must be less than ${_get(\n cardFields,\n 'membershipNumber.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'membershipNumber.validation.regex')),\n _get(cardFields, 'membershipNumber.validation.message')\n )\n .required(\n `Please enter a ${_get(cardFields, 'membershipNumber.displayName', 'membership number').toLowerCase()}`\n )\n }\n : {}),\n ...(cardFields.cardRank\n ? {\n cardRank: yup\n .string()\n .min(\n _get(cardFields, 'cardRank.minLength'),\n `${_get(cardFields, 'cardRank.displayName', 'card rank')} must be at least ${_get(\n cardFields,\n 'cardRank.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'cardRank.maxLength', 99),\n `${_get(cardFields, 'cardRank.displayName', 'card rank')} must be less than ${_get(\n cardFields,\n 'cardRank.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'cardRank.validation.regex')),\n _get(cardFields, 'cardRank.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, 'cardRank.displayName', 'card rank').toLowerCase()}`)\n }\n : {}),\n ...(cardFields.issueDay || cardFields.issueMonth || cardFields.issueYear\n ? (() => {\n let issueDateSchema = yup.string().required('Please enter an issue date');\n issueDateSchema = validateHealthFundDate(issueDateSchema, {\n cardFields,\n fieldKey: 'issueDate',\n dayKey: 'issueDay',\n monthKey: 'issueMonth',\n yearKey: 'issueYear'\n });\n return {\n issueDate: issueDateSchema\n };\n })()\n : {}),\n ...(cardFields.expiryDay || cardFields.expiryMonth || cardFields.expiryYear\n ? (() => {\n let expiryDateSchema = yup.string().required('Please enter an expiry date');\n expiryDateSchema = validateHealthFundDate(expiryDateSchema, {\n cardFields,\n fieldKey: 'expiryDate',\n dayKey: 'expiryDay',\n monthKey: 'expiryMonth',\n yearKey: 'expiryYear'\n });\n return {\n expiryDate: expiryDateSchema\n };\n })()\n : {}),\n ...(cardFields.cardIssueNumber\n ? {\n cardIssueNumber: yup\n .string()\n .min(\n _get(cardFields, 'cardIssueNumber.minLength'),\n `${_get(cardFields, 'cardIssueNumber.displayName', 'issue number')} must be at least ${_get(\n cardFields,\n 'cardIssueNumber.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'cardIssueNumber.maxLength', 99),\n `${_get(cardFields, 'cardIssueNumber.displayName', 'issue number')} must be less than ${_get(\n cardFields,\n 'cardIssueNumber.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'cardIssueNumber.validation.regex')),\n _get(cardFields, 'cardIssueNumber.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, 'cardIssueNumber.displayName', 'issue number').toLowerCase()}`)\n }\n : {})\n});\n"],"mappings":";;;;;;;;;;;;AAOA,MAAa,mBAAmB;CAC9B,WAAW;EACT,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,CACF;EACF;CACD,UAAU;EACR,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,CACF;EACF;CACD,KAAK;EACH,MAAM;EACN,YAAY;GACV;IACE,MAAM;IACN,SAAS;IACV;GACD;IACE,MAAM;IACN,SAAS;IAET,KAAI,UAAS;AACX,SAAI,CAAC,MACH;KAGF,MAAM,8BAAW,MAAM,MAAM,IAAI,EAAE,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,GAAG;AAEjE,YAAO,MAAM,2BAA2B,KAAK,IAAI,GAAG;;IAEvD;GACD;IACE,MAAM;IACN,SAAS;IAET,KAAI,UAAS;AACX,SAAI,CAAC,MACH;KAGF,MAAM,gCAAa,MAAM,MAAM,IAAI,EAAE,OAAO,GAAG;AAE/C,YAAO,QAAQ,oBAAoB,KAAK,MAAM,GAAG;;IAEpD;GACD;IACE,MAAM;IACN,SAAS;IAET,KAAI,UAAS;AACX,SAAI,CAAC,MACH;KAGF,MAAM,+BAAY,MAAM,MAAM,IAAI,EAAE,OAAO,GAAG;AAE9C,YAAO,OAAO,aAAa,KAAK,KAAK,GAAG;;IAE3C;GACD;IACE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,mBACpD;EACL,IAAI,kBAAkBC,UAAY,CAAC,SAAS,6BAA6B;AACzE,oBAAkB,uBAAuB,iBAAiB;GACxD;GACA,UAAU;GACV,QAAQ;GACR,UAAU;GACV,SAAS;GACV,CAAC;AACF,SAAO,EACL,WAAW,iBACZ;KACC,GACJ,EAAE;CACN,GAAI,WAAW,aAAa,WAAW,eAAe,WAAW,oBACtD;EACL,IAAI,mBAAmBA,UAAY,CAAC,SAAS,8BAA8B;AAC3E,qBAAmB,uBAAuB,kBAAkB;GAC1D;GACA,UAAU;GACV,QAAQ;GACR,UAAU;GACV,SAAS;GACV,CAAC;AACF,SAAO,EACL,YAAY,kBACb;KACC,GACJ,EAAE;CACN,GAAI,WAAW,kBACX,EACE,iBAAiBD,UACN,CACR,4BACM,YAAY,4BAA4B,EAC7C,2BAAQ,YAAY,+BAA+B,eAAe,CAAC,4CACjE,YACA,4BACD,CAAC,UACH,CACA,4BACM,YAAY,6BAA6B,GAAG,EACjD,2BAAQ,YAAY,+BAA+B,eAAe,CAAC,6CACjE,YACA,4BACD,CAAC,UACH,CACA,QACC,IAAI,+BAAY,YAAY,mCAAmC,CAAC,0BAC3D,YAAY,qCAAqC,CACvD,CACA,SAAS,0CAAuB,YAAY,+BAA+B,eAAe,CAAC,aAAa,GAAG,EAC/G,GACD,EAAE;CACP"}
|
|
1
|
+
{"version":3,"file":"build-validation-schema.js","names":[],"sources":["../src/build-validation-schema.ts"],"sourcesContent":["import * as yup from 'yup';\n// @ts-expect-error TS(7016): Could not find a declaration file for module 'paym... Remove this comment to see the full error message\nimport payment from 'payment';\nimport _get from 'lodash/get';\n\nimport { isMobileNumber } from './validate';\n\nexport const FIELD_VALIDATORS = {\n firstName: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your first name'\n }\n ]\n },\n lastName: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your last name'\n }\n ]\n },\n dob: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your date of birth'\n },\n {\n type: 'test',\n message: 'Please enter a valid day between 01 and 31',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const day = _get(value.split('/'), '[0]', '').split(' ').join('');\n\n return day ? /^0[1-9]|[12][0-9]|3[01]$/.test(day) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a valid month between 01 and 12',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const month = _get(value.split('/'), '[1]', '');\n\n return month ? /^(0[1-9]|1[012])$/.test(month) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a valid year',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? /^[0-9]{4}$/.test(year) : true;\n }\n },\n {\n type: 'test',\n message: 'Please enter a year greater than 1900',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? parseInt(year, 10) >= 1900 : true;\n }\n },\n {\n type: 'test',\n message: `Please enter a year before ${new Date().getFullYear() + 1}`,\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => {\n if (!value) {\n return;\n }\n\n const year = _get(value.split('/'), '[2]', '');\n\n return year ? parseInt(year, 10) <= new Date().getFullYear() : true;\n }\n }\n ]\n },\n email: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your email address'\n },\n {\n type: 'email',\n message: 'Please enter a valid email address'\n }\n ]\n },\n mobile: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your mobile number'\n },\n {\n type: 'test',\n message: 'Please enter a valid Australian mobile number',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => (value ? isMobileNumber(value, 'AU') : true)\n }\n ]\n },\n password: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter your password'\n }\n ]\n },\n newPassword: {\n type: 'string',\n validators: [\n {\n key: 'required',\n type: 'required',\n message: 'Please enter your new password'\n },\n {\n key: 'min-characters',\n type: 'min',\n length: 8,\n message: 'Your password must have at least 8 characters'\n },\n {\n key: 'uppercase',\n type: 'matches',\n pattern: /[A-Z]/,\n message: 'Your password must have an uppercase character'\n },\n {\n key: 'number',\n type: 'matches',\n pattern: /[0-9]/,\n message: 'Your password must have a number'\n },\n {\n key: 'special-character',\n type: 'matches',\n pattern: /[!@?#$%^&*)(+=._-]/,\n message: 'Your password must have a special character (e.g. ! or @ or #)'\n }\n ]\n },\n repeatPassword: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Enter your new password again'\n },\n {\n type: 'oneOf',\n fieldName: 'password',\n message: 'This password does not match the other password'\n }\n ]\n },\n cardNumber: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter a card number'\n },\n {\n type: 'test',\n message: 'Please enter a valid card number',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardNumber(value)\n }\n ]\n },\n expiry: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter an expiry'\n },\n {\n type: 'test',\n message: 'Please enter a valid expiry',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardExpiry(value)\n }\n ]\n },\n cvc: {\n type: 'string',\n validators: [\n {\n type: 'required',\n message: 'Please enter a CVC'\n },\n {\n type: 'test',\n message: 'Please enter a valid CVC',\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n fn: value => payment.fns.validateCardCVC(value)\n }\n ]\n }\n};\n\n// @ts-expect-error TS(7006): Parameter 'field' implicitly has an 'any' type.\nconst getFieldSchema = field => {\n const key = field.key || field.name;\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n const defaultFieldExists = Boolean(FIELD_VALIDATORS[key]);\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n const fieldAttributes = defaultFieldExists ? FIELD_VALIDATORS[key] : field;\n let schema = yup;\n\n switch (fieldAttributes.type) {\n case 'string': {\n // @ts-expect-error TS(2740): Type 'StringSchema<string, Record<string, any>, st... Remove this comment to see the full error message\n schema = schema.string();\n break;\n }\n\n case 'object': {\n // @ts-expect-error TS(2740): Type 'OptionalObjectSchema<ObjectShape, Record<str... Remove this comment to see the full error message\n schema = schema.object();\n break;\n }\n\n case 'array': {\n // @ts-expect-error TS(2740): Type 'OptionalArraySchema<AnySchema<any, any, any>... Remove this comment to see the full error message\n schema = schema.array();\n break;\n }\n\n case 'boolean': {\n // @ts-expect-error TS(2740): Type 'BooleanSchema<boolean, Record<string, any>, ... Remove this comment to see the full error message\n schema = schema.boolean();\n break;\n }\n\n case 'date': {\n // @ts-expect-error TS(2740): Type 'DateSchema<Date, Record<string, any>, Date>'... Remove this comment to see the full error message\n schema = schema.date();\n break;\n }\n\n case 'number': {\n // @ts-expect-error TS(2740): Type 'NumberSchema<number, Record<string, any>, nu... Remove this comment to see the full error message\n schema = schema.number();\n break;\n }\n\n default: {\n // @ts-expect-error TS(2322): Type 'StringSchema<string, Record<string, any>, st... Remove this comment to see the full error message\n schema = schema.string();\n }\n }\n\n if (fieldAttributes.validators) {\n // @ts-expect-error TS(7006): Parameter 'validator' implicitly has an 'any' type... Remove this comment to see the full error message\n fieldAttributes.validators.forEach(validator => {\n switch (validator.type) {\n case 'required': {\n if (defaultFieldExists && !field.required) {\n return;\n }\n\n // @ts-expect-error TS(2339): Property 'required' does not exist on type 'typeof... Remove this comment to see the full error message\n schema = schema.required(validator.message);\n break;\n }\n\n case 'test': {\n // @ts-expect-error TS(2339): Property 'test' does not exist on type 'typeof imp... Remove this comment to see the full error message\n schema = schema.test(field.name, validator.message, validator.fn);\n break;\n }\n\n case 'email': {\n // @ts-expect-error TS(2339): Property 'email' does not exist on type 'typeof im... Remove this comment to see the full error message\n schema = schema.email(validator.message);\n break;\n }\n\n case 'min': {\n // @ts-expect-error TS(2339): Property 'min' does not exist on type 'typeof impo... Remove this comment to see the full error message\n schema = schema.min(validator.length, validator.message);\n break;\n }\n\n case 'matches': {\n // @ts-expect-error TS(2339): Property 'matches' does not exist on type 'typeof ... Remove this comment to see the full error message\n schema = schema.matches(validator.pattern, validator.message);\n break;\n }\n\n case 'oneOf': {\n // @ts-expect-error TS(2339): Property 'oneOf' does not exist on type 'typeof im... Remove this comment to see the full error message\n schema = schema.oneOf([yup.ref(validator.fieldName), null], validator.message);\n break;\n }\n\n default: {\n break;\n }\n }\n });\n }\n\n return schema;\n};\n\nconst buildValidationSchema = (\n fields: Array<{\n name: string;\n key?: string;\n required?: boolean;\n validators?: Array<Record<string, any>>;\n }>,\n overrideSchema: Record<string, any> = {}\n) => {\n const schema = {};\n fields.forEach(field => {\n if (!field) {\n return;\n }\n\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n schema[field.name] = getFieldSchema(field);\n });\n return yup.object().shape({ ...schema, ...overrideSchema });\n};\n\nexport default buildValidationSchema;\n/* ===== CUSTOM OVERRIDE SCHEMAS ===== */\n\n// @ts-expect-error TS(7006): Parameter 'schema' implicitly has an 'any' type.\nconst validateHealthFundDate = (schema, { cardFields, fieldKey, dayKey, monthKey, yearKey }) => {\n let newSchema = schema;\n\n if (cardFields[dayKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${dayKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const day = dateArray[0];\n return new RegExp(_get(cardFields, `${dayKey}.validation.regex`)).test(day);\n });\n }\n\n if (cardFields[monthKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${monthKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const month = dateArray[dateArray.length - 2];\n return new RegExp(_get(cardFields, `${monthKey}.validation.regex`)).test(month);\n });\n }\n\n if (cardFields[yearKey]) {\n // @ts-expect-error TS(7006): Parameter 'value' implicitly has an 'any' type.\n newSchema = newSchema.test(fieldKey, _get(cardFields, `${yearKey}.validation.message`), value => {\n const dateArray = value ? value.split('/') : [];\n const year = dateArray[dateArray.length - 1];\n return new RegExp(_get(cardFields, `${yearKey}.validation.regex`)).test(year);\n });\n }\n\n return newSchema;\n};\n\nexport const paymentMethodValidationSchema = [\n {\n name: 'cardNumber'\n },\n {\n name: 'expiry'\n },\n {\n name: 'cvc'\n }\n];\nexport const getHealthFundAccountValidationSchema = (cardFields: Record<string, any>) => ({\n ...(cardFields.cardNumber\n ? {\n cardNumber: yup\n .string()\n .matches(\n new RegExp(_get(cardFields, 'cardNumber.validation.regex')),\n _get(cardFields, 'cardNumber.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, 'cardNumber.displayName', 'card number').toLowerCase()}`)\n }\n : {}),\n ...(cardFields.membershipNumber\n ? {\n membershipNumber: yup\n .string()\n .min(\n _get(cardFields, 'membershipNumber.minLength'),\n `${_get(cardFields, 'membershipNumber.displayName', 'membership number')} must be at least ${_get(\n cardFields,\n 'membershipNumber.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'membershipNumber.maxLength', 99),\n `${_get(cardFields, 'membershipNumber.displayName', 'membership number')} must be less than ${_get(\n cardFields,\n 'membershipNumber.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'membershipNumber.validation.regex')),\n _get(cardFields, 'membershipNumber.validation.message')\n )\n .required(\n `Please enter a ${_get(cardFields, 'membershipNumber.displayName', 'membership number').toLowerCase()}`\n )\n }\n : {}),\n ...(cardFields.cardRank\n ? {\n cardRank: yup\n .string()\n .min(\n _get(cardFields, 'cardRank.minLength'),\n `${_get(cardFields, 'cardRank.displayName', 'card rank')} must be at least ${_get(\n cardFields,\n 'cardRank.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'cardRank.maxLength', 99),\n `${_get(cardFields, 'cardRank.displayName', 'card rank')} must be less than ${_get(\n cardFields,\n 'cardRank.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'cardRank.validation.regex')),\n _get(cardFields, 'cardRank.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, 'cardRank.displayName', 'card rank').toLowerCase()}`)\n }\n : {}),\n ...(cardFields.issueDay || cardFields.issueMonth || cardFields.issueYear\n ? (() => {\n let issueDateSchema = yup.string().required('Please enter an issue date');\n issueDateSchema = validateHealthFundDate(issueDateSchema, {\n cardFields,\n fieldKey: 'issueDate',\n dayKey: 'issueDay',\n monthKey: 'issueMonth',\n yearKey: 'issueYear'\n });\n return {\n issueDate: issueDateSchema\n };\n })()\n : {}),\n ...(cardFields.expiryDay || cardFields.expiryMonth || cardFields.expiryYear\n ? (() => {\n let expiryDateSchema = yup.string().required('Please enter an expiry date');\n expiryDateSchema = validateHealthFundDate(expiryDateSchema, {\n cardFields,\n fieldKey: 'expiryDate',\n dayKey: 'expiryDay',\n monthKey: 'expiryMonth',\n yearKey: 'expiryYear'\n });\n return {\n expiryDate: expiryDateSchema\n };\n })()\n : {}),\n ...(cardFields.cardIssueNumber\n ? {\n cardIssueNumber: yup\n .string()\n .min(\n _get(cardFields, 'cardIssueNumber.minLength'),\n `${_get(cardFields, 'cardIssueNumber.displayName', 'issue number')} must be at least ${_get(\n cardFields,\n 'cardIssueNumber.minLength'\n )} numbers`\n )\n .max(\n _get(cardFields, 'cardIssueNumber.maxLength', 99),\n `${_get(cardFields, 'cardIssueNumber.displayName', 'issue number')} must be less than ${_get(\n cardFields,\n 'cardIssueNumber.maxLength'\n )} numbers`\n )\n .matches(\n new RegExp(_get(cardFields, 'cardIssueNumber.validation.regex')),\n _get(cardFields, 'cardIssueNumber.validation.message')\n )\n .required(`Please enter a ${_get(cardFields, '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O,OAAO,SAAS,MAAM,GAAG,qBAAI,IAAI,MAAM,EAAC,aAAa,GAAG;;IAElE;GACF;EACF;CACD,OAAO;EACL,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,SAAS;GACV,CACF;EACF;CACD,QAAQ;EACN,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,SAAS;GAET,KAAI,UAAU,QAAQ,eAAe,OAAO,KAAK,GAAG;GACrD,CACF;EACF;CACD,UAAU;EACR,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,CACF;EACF;CACD,aAAa;EACX,MAAM;EACN,YAAY;GACV;IACE,KAAK;IACL,MAAM;IACN,SAAS;IACV;GACD;IACE,KAAK;IACL,MAAM;IACN,QAAQ;IACR,SAAS;IACV;GACD;IACE,KAAK;IACL,MAAM;IACN,SAAS;IACT,SAAS;IACV;GACD;IACE,KAAK;IACL,MAAM;IACN,SAAS;IACT,SAAS;IACV;GACD;IACE,KAAK;IACL,MAAM;IACN,SAAS;IACT,SAAS;IACV;GACF;EACF;CACD,gBAAgB;EACd,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,WAAW;GACX,SAAS;GACV,CACF;EACF;CACD,YAAY;EACV,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,SAAS;GAET,KAAI,UAAS,QAAQ,IAAI,mBAAmB,MAAM;GACnD,CACF;EACF;CACD,QAAQ;EACN,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,SAAS;GAET,KAAI,UAAS,QAAQ,IAAI,mBAAmB,MAAM;GACnD,CACF;EACF;CACD,KAAK;EACH,MAAM;EACN,YAAY,CACV;GACE,MAAM;GACN,SAAS;GACV,EACD;GACE,MAAM;GACN,SAAS;GAET,KAAI,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AW,iBACZ;KACC,GACJ,EAAE;CACN,GAAI,WAAW,aAAa,WAAW,eAAe,WAAW,oBACtD;EACL,IAAI,mBAAmB,IAAI,QAAQ,CAAC,SAAS,8BAA8B;AAC3E,qBAAmB,uBAAuB,kBAAkB;GAC1D;GACA,UAAU;GACV,QAAQ;GACR,UAAU;GACV,SAAS;GACV,CAAC;AACF,SAAO,EACL,YAAY,kBACb;KACC,GACJ,EAAE;CACN,GAAI,WAAW,kBACX,EACE,iBAAiB,IACd,QAAQ,CACR,IACC,KAAK,YAAY,4BAA4B,EAC7C,GAAG,KAAK,YAAY,+BAA+B,eAAe,CAAC,oBAAoB,KACrF,YACA,4BACD,CAAC,UACH,CACA,IACC,KAAK,YAAY,6BAA6B,GAAG,EACjD,GAAG,KAAK,YAAY,+BAA+B,eAAe,CAAC,qBAAqB,KACtF,YACA,4BACD,CAAC,UACH,CACA,QACC,IAAI,OAAO,KAAK,YAAY,mCAAmC,CAAC,EAChE,KAAK,YAAY,qCAAqC,CACvD,CACA,SAAS,kBAAkB,KAAK,YAAY,+BAA+B,eAAe,CAAC,aAAa,GAAG,EAC/G,GACD,EAAE;CACP"}
|
package/dist/datetime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import startOfMinute from "
|
|
2
|
-
import setMinutes from "
|
|
3
|
-
import getMinutes from "
|
|
1
|
+
import startOfMinute from "date-fns/startOfMinute";
|
|
2
|
+
import setMinutes from "date-fns/setMinutes";
|
|
3
|
+
import getMinutes from "date-fns/getMinutes";
|
|
4
4
|
|
|
5
5
|
//#region src/datetime.ts
|
|
6
6
|
const roundToNearestMinutes = (date, interval) => {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { __toESM } from "../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_capitalize } from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.js";
|
|
3
1
|
import { DOCUMENT_WORKFLOW_STATES, DOCUMENT_WORKFLOW_STATES_HUMANIZED } from "../constants.js";
|
|
2
|
+
import _capitalize from "lodash/capitalize";
|
|
4
3
|
|
|
5
4
|
//#region src/documents/workflow-state-formatted.ts
|
|
6
|
-
var import_capitalize = /* @__PURE__ */ __toESM(require_capitalize(), 1);
|
|
7
5
|
const workflowStateFormatted = {
|
|
8
6
|
_default: "primary",
|
|
9
7
|
[DOCUMENT_WORKFLOW_STATES.ASSIGNED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,
|
|
10
8
|
[DOCUMENT_WORKFLOW_STATES.PARKED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,
|
|
11
|
-
[DOCUMENT_WORKFLOW_STATES.CANCELLED]: (
|
|
12
|
-
[DOCUMENT_WORKFLOW_STATES.ERRORED]: (
|
|
9
|
+
[DOCUMENT_WORKFLOW_STATES.CANCELLED]: _capitalize(DOCUMENT_WORKFLOW_STATES.CANCELLED),
|
|
10
|
+
[DOCUMENT_WORKFLOW_STATES.ERRORED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ERRORED),
|
|
13
11
|
[DOCUMENT_WORKFLOW_STATES.INBOX]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.SUBMITTED,
|
|
14
12
|
[DOCUMENT_WORKFLOW_STATES.APPROVED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.APPROVED,
|
|
15
|
-
[DOCUMENT_WORKFLOW_STATES.DECLINED]: (
|
|
16
|
-
[DOCUMENT_WORKFLOW_STATES.ARCHIVED]: (
|
|
13
|
+
[DOCUMENT_WORKFLOW_STATES.DECLINED]: _capitalize(DOCUMENT_WORKFLOW_STATES.DECLINED),
|
|
14
|
+
[DOCUMENT_WORKFLOW_STATES.ARCHIVED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ARCHIVED)
|
|
17
15
|
};
|
|
18
16
|
var workflow_state_formatted_default = workflowStateFormatted;
|
|
19
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-state-formatted.js","names":[],"sources":["../../src/documents/workflow-state-formatted.ts"],"sourcesContent":["import { DOCUMENT_WORKFLOW_STATES_HUMANIZED, DOCUMENT_WORKFLOW_STATES } from '../constants';\nimport _capitalize from 'lodash/capitalize';\nconst workflowStateFormatted = {\n _default: 'primary',\n [DOCUMENT_WORKFLOW_STATES.ASSIGNED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,\n [DOCUMENT_WORKFLOW_STATES.PARKED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,\n [DOCUMENT_WORKFLOW_STATES.CANCELLED]: _capitalize(DOCUMENT_WORKFLOW_STATES.CANCELLED),\n // @ts-expect-error TS(2339): Property 'ERRORED' does not exist on type '{ INBOX... Remove this comment to see the full error message\n [DOCUMENT_WORKFLOW_STATES.ERRORED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ERRORED),\n [DOCUMENT_WORKFLOW_STATES.INBOX]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.SUBMITTED,\n [DOCUMENT_WORKFLOW_STATES.APPROVED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.APPROVED,\n [DOCUMENT_WORKFLOW_STATES.DECLINED]: _capitalize(DOCUMENT_WORKFLOW_STATES.DECLINED),\n // @ts-expect-error TS(2339): Property 'ARCHIVED' does not exist on type '{ INBO... Remove this comment to see the full error message\n [DOCUMENT_WORKFLOW_STATES.ARCHIVED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ARCHIVED)\n};\n\nexport default workflowStateFormatted;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-state-formatted.js","names":[],"sources":["../../src/documents/workflow-state-formatted.ts"],"sourcesContent":["import { DOCUMENT_WORKFLOW_STATES_HUMANIZED, DOCUMENT_WORKFLOW_STATES } from '../constants';\nimport _capitalize from 'lodash/capitalize';\nconst workflowStateFormatted = {\n _default: 'primary',\n [DOCUMENT_WORKFLOW_STATES.ASSIGNED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,\n [DOCUMENT_WORKFLOW_STATES.PARKED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.UNDER_REVIEW,\n [DOCUMENT_WORKFLOW_STATES.CANCELLED]: _capitalize(DOCUMENT_WORKFLOW_STATES.CANCELLED),\n // @ts-expect-error TS(2339): Property 'ERRORED' does not exist on type '{ INBOX... Remove this comment to see the full error message\n [DOCUMENT_WORKFLOW_STATES.ERRORED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ERRORED),\n [DOCUMENT_WORKFLOW_STATES.INBOX]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.SUBMITTED,\n [DOCUMENT_WORKFLOW_STATES.APPROVED]: DOCUMENT_WORKFLOW_STATES_HUMANIZED.APPROVED,\n [DOCUMENT_WORKFLOW_STATES.DECLINED]: _capitalize(DOCUMENT_WORKFLOW_STATES.DECLINED),\n // @ts-expect-error TS(2339): Property 'ARCHIVED' does not exist on type '{ INBO... Remove this comment to see the full error message\n [DOCUMENT_WORKFLOW_STATES.ARCHIVED]: _capitalize(DOCUMENT_WORKFLOW_STATES.ARCHIVED)\n};\n\nexport default workflowStateFormatted;\n"],"mappings":";;;;AAEA,MAAM,yBAAyB;CAC7B,UAAU;EACT,yBAAyB,WAAW,mCAAmC;EACvE,yBAAyB,SAAS,mCAAmC;EACrE,yBAAyB,YAAY,YAAY,yBAAyB,UAAU;EAEpF,yBAAyB,UAAU,YAAY,yBAAyB,QAAQ;EAChF,yBAAyB,QAAQ,mCAAmC;EACpE,yBAAyB,WAAW,mCAAmC;EACvE,yBAAyB,WAAW,YAAY,yBAAyB,SAAS;EAElF,yBAAyB,WAAW,YAAY,yBAAyB,SAAS;CACpF;AAED,uCAAe"}
|
package/dist/funders.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { __toESM } from "./_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_get } from "./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js";
|
|
3
1
|
import { FUNDERS } from "./constants.js";
|
|
2
|
+
import _get from "lodash/get";
|
|
4
3
|
|
|
5
4
|
//#region src/funders.ts
|
|
6
|
-
var import_get = /* @__PURE__ */ __toESM(require_get(), 1);
|
|
7
5
|
const FUNDERS_WITH_ONBOARDING = [
|
|
8
6
|
FUNDERS.HICAPS,
|
|
9
7
|
FUNDERS.MEDICARE,
|
|
@@ -33,7 +31,7 @@ const CLAIMABLE_FUNDERS = [
|
|
|
33
31
|
FUNDERS.AGED_CARE
|
|
34
32
|
];
|
|
35
33
|
const getFunderCodeFromTransaction = (transaction, funderCode) => {
|
|
36
|
-
if (transaction.isPatientFunded || (
|
|
34
|
+
if (transaction.isPatientFunded || _get(transaction, "claims[0].isPatientFunded")) return FUNDERS.PATIENT;
|
|
37
35
|
else if (funderCode === FUNDERS.HICAPS) return FUNDERS.HICAPS;
|
|
38
36
|
else if (funderCode === FUNDERS.PATIENT) return FUNDERS.PATIENT;
|
|
39
37
|
else if (funderCode === FUNDERS.MEDICARE) return FUNDERS.MEDICARE;
|
package/dist/funders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funders.js","names":[],"sources":["../src/funders.ts"],"sourcesContent":["import _get from 'lodash/get';\nimport { FUNDERS } from './constants';\nexport const FUNDERS_WITH_ONBOARDING = [\n FUNDERS.HICAPS,\n FUNDERS.MEDICARE,\n FUNDERS.EASYCLAIM,\n FUNDERS.ICARE,\n FUNDERS.WCQ,\n FUNDERS.COMCARE,\n FUNDERS.WSV,\n FUNDERS.NIB,\n FUNDERS.QBE,\n FUNDERS.AGED_CARE\n] as const;\nexport const CLAIMABLE_FUNDERS = [\n FUNDERS.COMCARE,\n FUNDERS.DVA,\n FUNDERS.ECLIPSE,\n FUNDERS.HEALTHPOINT,\n FUNDERS.HICAPS,\n FUNDERS.ICARE,\n FUNDERS.MEDICARE,\n FUNDERS.EASYCLAIM,\n FUNDERS.NIB,\n FUNDERS.OHC,\n FUNDERS.QBE,\n FUNDERS.WCQ,\n FUNDERS.WSV,\n FUNDERS.AGED_CARE\n] as const;\nexport const getFunderCodeFromTransaction = (transaction: Record<string, any>, funderCode?: string) => {\n if (transaction.isPatientFunded || _get(transaction, 'claims[0].isPatientFunded')) {\n return FUNDERS.PATIENT;\n } else if (funderCode === FUNDERS.HICAPS) {\n return FUNDERS.HICAPS;\n } else if (funderCode === FUNDERS.PATIENT) {\n return FUNDERS.PATIENT;\n } else if (funderCode === FUNDERS.MEDICARE) {\n return FUNDERS.MEDICARE;\n } else if (funderCode === FUNDERS.EASYCLAIM) {\n return FUNDERS.EASYCLAIM;\n } else if (funderCode === FUNDERS.HBF) {\n return FUNDERS.HBF;\n } else if (funderCode === FUNDERS.ICARE) {\n return FUNDERS.ICARE;\n } else if (funderCode === FUNDERS.NDIS) {\n return FUNDERS.NDIS;\n } else if (funderCode === FUNDERS.OHC) {\n return FUNDERS.OHC;\n } else if (funderCode === FUNDERS.DVA) {\n return FUNDERS.DVA;\n } else if (funderCode === FUNDERS.WCQ) {\n return FUNDERS.WCQ;\n } else if (funderCode === FUNDERS.COMCARE) {\n return FUNDERS.COMCARE;\n } else if (funderCode === FUNDERS.HEALTHPOINT) {\n return FUNDERS.HEALTHPOINT;\n } else if (funderCode === FUNDERS.WSV) {\n return FUNDERS.WSV;\n } else if (funderCode === FUNDERS.NIB) {\n return FUNDERS.NIB;\n } else if (funderCode === FUNDERS.ECLIPSE) {\n return FUNDERS.ECLIPSE;\n } else if (funderCode === FUNDERS.QBE) {\n return FUNDERS.QBE;\n } else if (funderCode === FUNDERS.AGED_CARE) {\n return FUNDERS.AGED_CARE;\n }\n\n return FUNDERS.PATIENT;\n};\n\nexport const isComcare = (funderCode: string) => funderCode === FUNDERS.COMCARE;\nexport const isDVA = (funderCode: string) => funderCode === FUNDERS.DVA;\nexport const isEclipse = (funderCode: string) => funderCode === FUNDERS.ECLIPSE;\nexport const isHBF = (funderCode: string) => funderCode === FUNDERS.HBF;\nexport const isHICAPS = (funderCode: string) => funderCode === FUNDERS.HICAPS;\nexport const isIcare = (funderCode: string) => funderCode === FUNDERS.ICARE;\nexport const isHealthPoint = (funderCode: string) => funderCode === FUNDERS.HEALTHPOINT;\nexport const isMedicare = (funderCode: string) => funderCode === FUNDERS.MEDICARE;\nexport const isEasyClaim = (funderCode: string) => funderCode === FUNDERS.EASYCLAIM;\nexport const isNDIS = (funderCode: string) => funderCode === FUNDERS.NDIS;\nexport const isNib = (funderCode: string) => funderCode === FUNDERS.NIB;\nexport const isOHC = (funderCode: string) => funderCode === FUNDERS.OHC;\nexport const isPatientFunded = (funderCode: string) => funderCode === FUNDERS.PATIENT;\nexport const isQBE = (funderCode: string) => funderCode === FUNDERS.QBE;\nexport const isWCQ = (funderCode: string) => funderCode === FUNDERS.WCQ;\nexport const isWSV = (funderCode: string) => funderCode === FUNDERS.WSV;\nexport const isAgedCare = (funderCode: string) => funderCode === FUNDERS.AGED_CARE;\n// @ts-expect-error\nexport const isFunderClaimable = (funderCode: string) => CLAIMABLE_FUNDERS.includes(funderCode);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"funders.js","names":[],"sources":["../src/funders.ts"],"sourcesContent":["import _get from 'lodash/get';\nimport { FUNDERS } from './constants';\nexport const FUNDERS_WITH_ONBOARDING = [\n FUNDERS.HICAPS,\n FUNDERS.MEDICARE,\n FUNDERS.EASYCLAIM,\n FUNDERS.ICARE,\n FUNDERS.WCQ,\n FUNDERS.COMCARE,\n FUNDERS.WSV,\n FUNDERS.NIB,\n FUNDERS.QBE,\n FUNDERS.AGED_CARE\n] as const;\nexport const CLAIMABLE_FUNDERS = [\n FUNDERS.COMCARE,\n FUNDERS.DVA,\n FUNDERS.ECLIPSE,\n FUNDERS.HEALTHPOINT,\n FUNDERS.HICAPS,\n FUNDERS.ICARE,\n FUNDERS.MEDICARE,\n FUNDERS.EASYCLAIM,\n FUNDERS.NIB,\n FUNDERS.OHC,\n FUNDERS.QBE,\n FUNDERS.WCQ,\n FUNDERS.WSV,\n FUNDERS.AGED_CARE\n] as const;\nexport const getFunderCodeFromTransaction = (transaction: Record<string, any>, funderCode?: string) => {\n if (transaction.isPatientFunded || _get(transaction, 'claims[0].isPatientFunded')) {\n return FUNDERS.PATIENT;\n } else if (funderCode === FUNDERS.HICAPS) {\n return FUNDERS.HICAPS;\n } else if (funderCode === FUNDERS.PATIENT) {\n return FUNDERS.PATIENT;\n } else if (funderCode === FUNDERS.MEDICARE) {\n return FUNDERS.MEDICARE;\n } else if (funderCode === FUNDERS.EASYCLAIM) {\n return FUNDERS.EASYCLAIM;\n } else if (funderCode === FUNDERS.HBF) {\n return FUNDERS.HBF;\n } else if (funderCode === FUNDERS.ICARE) {\n return FUNDERS.ICARE;\n } else if (funderCode === FUNDERS.NDIS) {\n return FUNDERS.NDIS;\n } else if (funderCode === FUNDERS.OHC) {\n return FUNDERS.OHC;\n } else if (funderCode === FUNDERS.DVA) {\n return FUNDERS.DVA;\n } else if (funderCode === FUNDERS.WCQ) {\n return FUNDERS.WCQ;\n } else if (funderCode === FUNDERS.COMCARE) {\n return FUNDERS.COMCARE;\n } else if (funderCode === FUNDERS.HEALTHPOINT) {\n return FUNDERS.HEALTHPOINT;\n } else if (funderCode === FUNDERS.WSV) {\n return FUNDERS.WSV;\n } else if (funderCode === FUNDERS.NIB) {\n return FUNDERS.NIB;\n } else if (funderCode === FUNDERS.ECLIPSE) {\n return FUNDERS.ECLIPSE;\n } else if (funderCode === FUNDERS.QBE) {\n return FUNDERS.QBE;\n } else if (funderCode === FUNDERS.AGED_CARE) {\n return FUNDERS.AGED_CARE;\n }\n\n return FUNDERS.PATIENT;\n};\n\nexport const isComcare = (funderCode: string) => funderCode === FUNDERS.COMCARE;\nexport const isDVA = (funderCode: string) => funderCode === FUNDERS.DVA;\nexport const isEclipse = (funderCode: string) => funderCode === FUNDERS.ECLIPSE;\nexport const isHBF = (funderCode: string) => funderCode === FUNDERS.HBF;\nexport const isHICAPS = (funderCode: string) => funderCode === FUNDERS.HICAPS;\nexport const isIcare = (funderCode: string) => funderCode === FUNDERS.ICARE;\nexport const isHealthPoint = (funderCode: string) => funderCode === FUNDERS.HEALTHPOINT;\nexport const isMedicare = (funderCode: string) => funderCode === FUNDERS.MEDICARE;\nexport const isEasyClaim = (funderCode: string) => funderCode === FUNDERS.EASYCLAIM;\nexport const isNDIS = (funderCode: string) => funderCode === FUNDERS.NDIS;\nexport const isNib = (funderCode: string) => funderCode === FUNDERS.NIB;\nexport const isOHC = (funderCode: string) => funderCode === FUNDERS.OHC;\nexport const isPatientFunded = (funderCode: string) => funderCode === FUNDERS.PATIENT;\nexport const isQBE = (funderCode: string) => funderCode === FUNDERS.QBE;\nexport const isWCQ = (funderCode: string) => funderCode === FUNDERS.WCQ;\nexport const isWSV = (funderCode: string) => funderCode === FUNDERS.WSV;\nexport const isAgedCare = (funderCode: string) => funderCode === FUNDERS.AGED_CARE;\n// @ts-expect-error\nexport const isFunderClaimable = (funderCode: string) => CLAIMABLE_FUNDERS.includes(funderCode);\n"],"mappings":";;;;AAEA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACT;AACD,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACT;AACD,MAAa,gCAAgC,aAAkC,eAAwB;AACrG,KAAI,YAAY,mBAAmB,KAAK,aAAa,4BAA4B,CAC/E,QAAO,QAAQ;UACN,eAAe,QAAQ,OAChC,QAAO,QAAQ;UACN,eAAe,QAAQ,QAChC,QAAO,QAAQ;UACN,eAAe,QAAQ,SAChC,QAAO,QAAQ;UACN,eAAe,QAAQ,UAChC,QAAO,QAAQ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/get-env.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { __toESM } from "./_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_get } from "./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js";
|
|
3
|
-
import { require_omitBy } from "./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js";
|
|
4
|
-
import { require_isEmpty } from "./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js";
|
|
5
1
|
import { getProcessEnv } from "./process-env.js";
|
|
2
|
+
import _get from "lodash/get";
|
|
3
|
+
import _omitBy from "lodash/omitBy";
|
|
4
|
+
import _isEmpty from "lodash/isEmpty";
|
|
6
5
|
|
|
7
6
|
//#region src/get-env.ts
|
|
8
|
-
var import_get = /* @__PURE__ */ __toESM(require_get(), 1);
|
|
9
|
-
var import_omitBy = /* @__PURE__ */ __toESM(require_omitBy(), 1);
|
|
10
|
-
var import_isEmpty = /* @__PURE__ */ __toESM(require_isEmpty(), 1);
|
|
11
7
|
const REQUIRED_VARIABLES = ["APP_URL"];
|
|
12
8
|
const ENV_NAMES = {
|
|
13
9
|
LOCAL: "local",
|
|
@@ -101,7 +97,7 @@ const getEnv = (env) => {
|
|
|
101
97
|
QUOTES_URL: "https://quotes.medipass.io",
|
|
102
98
|
CHECKOUT_URL: "https://checkout.medipass.io"
|
|
103
99
|
} };
|
|
104
|
-
const fabSettings = (
|
|
100
|
+
const fabSettings = _get(window, "FAB_SETTINGS", {});
|
|
105
101
|
const origin = window.location.origin;
|
|
106
102
|
if (processEnv$1.REACT_APP_ENV === "dev" || fabSettings.REACT_APP_ENV === "dev" || doesAppUrlMatchOrigin({
|
|
107
103
|
appUrl: DEV?.ENV?.APP_URL || "",
|
|
@@ -144,7 +140,7 @@ const getRequiredEnvironmentVariables = (env) => {
|
|
|
144
140
|
if (key.includes("_")) continue;
|
|
145
141
|
if (Object.prototype.hasOwnProperty.call(env, key)) missingVariables[key] = getEnvironmentsMissingVariables(env[key]);
|
|
146
142
|
}
|
|
147
|
-
return (
|
|
143
|
+
return _omitBy(missingVariables, _isEmpty);
|
|
148
144
|
};
|
|
149
145
|
const logWarningForMissingRequiredEnvironmentVariables = (missingRequiredEnvironmentVariables) => {
|
|
150
146
|
for (const key in missingRequiredEnvironmentVariables) if (Object.prototype.hasOwnProperty.call(missingRequiredEnvironmentVariables, key)) console.error(`Warning: Required variables ${missingRequiredEnvironmentVariables[key]} not defined in the '${key}' environment.`);
|
package/dist/get-env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-env.js","names":["processEnv","LOCAL: { ENV: SingleEnvironment }","DEV: { ENV: SingleEnvironment }","STAGING: { ENV: SingleEnvironment }","PERF: { ENV: SingleEnvironment }","DR: { ENV: SingleEnvironment }","PREPROD: { ENV: SingleEnvironment }","PROD: { ENV: SingleEnvironment }","environmentsMissingVariables: string[]","missingVariables: Record<string, any>","_isEmpty"],"sources":["../src/get-env.ts"],"sourcesContent":["import _get from 'lodash/get';\nimport _omitBy from 'lodash/omitBy';\nimport _isEmpty from 'lodash/isEmpty';\nimport { getProcessEnv } from './process-env';\n\nexport interface SingleEnvironment {\n INTERCOM_APP_ID?: string;\n HPF_SCRIPT_URL?: string;\n GOOGLE_MERCHANT_ID?: string;\n APP_URL: string | string[];\n GOOGLE_ANALYTICS_TRACKING_ID?: string;\n GOOGLE_TAG_MANAGER_ID?: string;\n ENV_NAME: string;\n FUNDER_URL?: string;\n CONNECT_URL?: string;\n CONSUMER_URL?: string;\n ACCOUNTS_URL?: string;\n QUOTES_URL?: string;\n CHECKOUT_URL?: string;\n}\n\nexport interface SingleEnvironmentPayload {\n INTERCOM_APP_ID?: string;\n HPF_SCRIPT_URL?: string;\n GOOGLE_MERCHANT_ID?: string;\n APP_URL: string | string[];\n GOOGLE_ANALYTICS_TRACKING_ID?: string;\n GOOGLE_TAG_MANAGER_ID?: string;\n}\n\nexport interface EnvironmentPayload {\n _global?: Record<string, any>;\n local: SingleEnvironmentPayload;\n dev: SingleEnvironmentPayload;\n staging: SingleEnvironmentPayload;\n perf: SingleEnvironmentPayload;\n dr: SingleEnvironmentPayload;\n preprod: SingleEnvironmentPayload;\n prod: SingleEnvironmentPayload;\n}\n\nexport const REQUIRED_VARIABLES = ['APP_URL'];\n\nexport const ENV_NAMES = {\n LOCAL: 'local',\n DEV: 'dev',\n STG: 'staging',\n PERF: 'perf',\n DR: 'dr',\n PREPROD: 'pre-prod',\n PROD: 'prod'\n} as const;\n\nconst doesAppUrlMatchOrigin = ({ appUrl, origin }: { appUrl: string | string[]; origin: string }) => {\n if (typeof appUrl === 'string' || appUrl instanceof String) {\n return appUrl === origin;\n }\n\n return appUrl?.includes(origin);\n};\n\nconst getEnv = (env: EnvironmentPayload) => {\n const processEnv = getProcessEnv();\n const LOCAL: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.local || {}),\n ENV_NAME: ENV_NAMES.LOCAL,\n FUNDER_URL: 'https://dev-funder.medipass.io',\n CONNECT_URL: 'https://dev-connect.medipass.io',\n CONSUMER_URL: 'https://dev-my.medipass.io',\n ACCOUNTS_URL: 'https://dev-accounts.medipass.io',\n QUOTES_URL: 'https://dev-quotes.medipass.io',\n CHECKOUT_URL: 'https://dev-checkout.medipass.io'\n }\n };\n const DEV: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.dev || {}),\n ENV_NAME: ENV_NAMES.DEV,\n FUNDER_URL: 'https://dev-funder.medipass.io',\n CONNECT_URL: 'https://dev-connect.medipass.io',\n CONSUMER_URL: 'https://dev-my.medipass.io',\n ACCOUNTS_URL: 'https://dev-accounts.medipass.io',\n QUOTES_URL: 'https://dev-quotes.medipass.io',\n CHECKOUT_URL: 'https://dev-checkout.medipass.io'\n }\n };\n const STAGING: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.staging || {}),\n ENV_NAME: ENV_NAMES.STG,\n FUNDER_URL: 'https://stg-funder.medipass.io',\n CONNECT_URL: 'https://stg-connect.medipass.io',\n CONSUMER_URL: 'https://stg-my.medipass.io',\n ACCOUNTS_URL: 'https://stg-accounts.medipass.io',\n QUOTES_URL: 'https://stg-quotes.medipass.io',\n CHECKOUT_URL: 'https://stg-checkout.medipass.io'\n }\n };\n const PERF: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.perf || {}),\n ENV_NAME: ENV_NAMES.PERF,\n FUNDER_URL: 'https://perf-funder.medipass.io',\n CONNECT_URL: 'https://perf-connect.medipass.io',\n CONSUMER_URL: 'https://perf-my.medipass.io',\n ACCOUNTS_URL: 'https://perf-accounts.medipass.io',\n QUOTES_URL: 'https://perf-quotes.medipass.io',\n CHECKOUT_URL: 'https://perf-checkout.medipass.io'\n }\n };\n const DR: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.dr || {}),\n ENV_NAME: ENV_NAMES.DR,\n FUNDER_URL: 'https://dr-funder.medipass.io',\n CONNECT_URL: 'https://dr-connect.medipass.io',\n CONSUMER_URL: 'https://dr-my.medipass.io',\n ACCOUNTS_URL: 'https://dr-accounts.medipass.io',\n QUOTES_URL: 'https://dr-quotes.medipass.io',\n CHECKOUT_URL: 'https://dr-checkout.medipass.io'\n }\n };\n const PREPROD: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.preprod || {}),\n ENV_NAME: ENV_NAMES.PREPROD,\n FUNDER_URL: 'https://funder-blue.medipass.io',\n CONNECT_URL: 'https://connect-blue.medipass.io',\n CONSUMER_URL: 'https://my-blue.medipass.io',\n ACCOUNTS_URL: 'https://accounts-blue.medipass.io',\n QUOTES_URL: 'https://quotes-blue.medipass.io',\n CHECKOUT_URL: 'https://checkout-blue.medipass.io'\n }\n };\n const PROD: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.prod || {}),\n ENV_NAME: ENV_NAMES.PROD,\n FUNDER_URL: 'https://funder.medipass.io',\n CONNECT_URL: 'https://connect.medipass.io',\n CONSUMER_URL: 'https://my.medipass.io',\n ACCOUNTS_URL: 'https://accounts.medipass.io',\n QUOTES_URL: 'https://quotes.medipass.io',\n CHECKOUT_URL: 'https://checkout.medipass.io'\n }\n };\n\n const fabSettings = _get(window, 'FAB_SETTINGS', {}) as { REACT_APP_ENV?: string };\n\n const origin = window.location.origin;\n\n if (\n processEnv.REACT_APP_ENV === 'dev' ||\n fabSettings.REACT_APP_ENV === 'dev' ||\n doesAppUrlMatchOrigin({ appUrl: DEV?.ENV?.APP_URL || '', origin })\n ) {\n return DEV.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'staging' ||\n fabSettings.REACT_APP_ENV === 'staging' ||\n doesAppUrlMatchOrigin({ appUrl: STAGING?.ENV?.APP_URL || '', origin })\n ) {\n return STAGING.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'perf' ||\n fabSettings.REACT_APP_ENV === 'perf' ||\n doesAppUrlMatchOrigin({ appUrl: PERF?.ENV?.APP_URL || '', origin })\n ) {\n return PERF.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'dr' ||\n fabSettings.REACT_APP_ENV === 'dr' ||\n doesAppUrlMatchOrigin({ appUrl: DR?.ENV?.APP_URL || '', origin })\n ) {\n return DR.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'pre-prod' ||\n doesAppUrlMatchOrigin({ appUrl: PREPROD?.ENV?.APP_URL || '', origin })\n ) {\n return PREPROD.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'local' ||\n doesAppUrlMatchOrigin({ appUrl: LOCAL?.ENV?.APP_URL || '', origin })\n ) {\n return LOCAL.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'prod' ||\n doesAppUrlMatchOrigin({ appUrl: PROD?.ENV?.APP_URL || '', origin })\n ) {\n return PROD.ENV;\n }\n\n return DEV.ENV;\n};\n\nconst getEnvironmentsMissingVariables = (envVariables: Record<string, any>) => {\n let environmentsMissingVariables: string[] = [];\n\n for (const requiredVariable of REQUIRED_VARIABLES) {\n if (!envVariables[requiredVariable]) {\n environmentsMissingVariables = [...environmentsMissingVariables, requiredVariable];\n }\n }\n\n return environmentsMissingVariables;\n};\n\nconst getRequiredEnvironmentVariables = (env: EnvironmentPayload) => {\n const missingVariables: Record<string, any> = {};\n\n for (const key in env) {\n if (key.includes('_')) {\n continue;\n }\n\n if (Object.prototype.hasOwnProperty.call(env, key)) {\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n missingVariables[key] = getEnvironmentsMissingVariables(env[key]);\n }\n }\n\n return _omitBy(missingVariables, _isEmpty);\n};\n\nconst logWarningForMissingRequiredEnvironmentVariables = (missingRequiredEnvironmentVariables: Record<string, any>) => {\n for (const key in missingRequiredEnvironmentVariables) {\n if (Object.prototype.hasOwnProperty.call(missingRequiredEnvironmentVariables, key)) {\n console.error(\n `Warning: Required variables ${missingRequiredEnvironmentVariables[key]} not defined in the '${key}' environment.`\n );\n }\n }\n};\n\nclass Env {\n [index: string]: any;\n ENV_NAME: typeof ENV_NAMES[keyof typeof ENV_NAMES] | null;\n FUNDER_URL: string | null;\n CONNECT_URL: string | null;\n CONSUMER_URL: string | null;\n ACCOUNTS_URL: string | null;\n QUOTES_URL: string | null;\n CHECKOUT_URL: string | null;\n\n constructor() {\n this.ENV_NAME = null;\n this.FUNDER_URL = null;\n this.CONNECT_URL = null;\n this.CONSUMER_URL = null;\n this.ACCOUNTS_URL = null;\n this.QUOTES_URL = null;\n this.CHECKOUT_URL = null;\n }\n\n setup(env: EnvironmentPayload) {\n this.clear();\n const missingRequiredEnvironmentVariables = getRequiredEnvironmentVariables(env);\n logWarningForMissingRequiredEnvironmentVariables(missingRequiredEnvironmentVariables);\n const newEnv = getEnv(env);\n\n for (const key in newEnv) {\n if (Object.prototype.hasOwnProperty.call(newEnv, key)) {\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n this[key] = newEnv[key];\n }\n }\n }\n\n clear() {\n for (const key in this) {\n if (Object.prototype.hasOwnProperty.call(this, key)) {\n delete this[key];\n }\n }\n }\n}\n\nexport default new Env();\nconst processEnv = getProcessEnv();\nexport const ERROR_MESSAGE__INTERNET_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__INTERNET_ERROR ||\n 'We are unable to establish an internet connection. We will take you back once you are connected to the internet.';\nexport const ERROR_MESSAGE__NETWORK_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__NETWORK_ERROR ||\n 'There are issues connecting to the Tyro Health platform. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__SERVER_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__SERVER_ERROR ||\n 'There are issues connecting to the Tyro Health platform. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__PAYMENT_GATEWAY_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_GATEWAY_ERROR ||\n 'There are issues connecting to the payment gateway. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__PAYMENT_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_ERROR ||\n 'An error occurred when processing the payment. Please try again. The card was not charged.';\nexport const ERROR_MESSAGE__PAYMENT_GATEWAY_FIELDS =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_GATEWAY_FIELDS ||\n 'The payment card details you entered were invalid, please review the payment card credentials and try again.';\n"],"mappings":";;;;;;;;;;AAyCA,MAAa,qBAAqB,CAAC,UAAU;AAE7C,MAAa,YAAY;CACvB,OAAO;CACP,KAAK;CACL,KAAK;CACL,MAAM;CACN,IAAI;CACJ,SAAS;CACT,MAAM;CACP;AAED,MAAM,yBAAyB,EAAE,QAAQ,aAA4D;AACnG,KAAI,OAAO,WAAW,YAAY,kBAAkB,OAClD,QAAO,WAAW;AAGpB,QAAO,QAAQ,SAAS,OAAO;;AAGjC,MAAM,UAAU,QAA4B;CAC1C,MAAMA,eAAa,eAAe;C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BAAwC,EAAE;AAEhD,MAAK,MAAM,OAAO,KAAK;AACrB,MAAI,IAAI,SAAS,IAAI,CACnB;AAGF,MAAI,OAAO,UAAU,eAAe,KAAK,KAAK,IAAI,CAEhD,kBAAiB,OAAO,gCAAgC,IAAI,KAAK;;AAIrE,mCAAe,kBAAkBC,uBAAS;;AAG5C,MAAM,oDAAoD,wCAA6D;AACrH,MAAK,MAAM,OAAO,oCAChB,KAAI,OAAO,UAAU,eAAe,KAAK,qCAAqC,IAAI,CAChF,SAAQ,MACN,+BAA+B,oCAAoC,KAAK,uBAAuB,IAAI,gBACpG;;AAKP,IAAM,MAAN,MAAU;CAUR,cAAc;AACZ,OAAK,WAAW;AAChB,OAAK,aAAa;AAClB,OAAK,cAAc;AACnB,OAAK,eAAe;AACpB,OAAK,eAAe;AACpB,OAAK,aAAa;AAClB,OAAK,eAAe;;CAGtB,MAAM,KAAyB;AAC7B,OAAK,OAAO;AAEZ,mDAD4C,gCAAgC,IAAI,CACK;EACrF,MAAM,SAAS,OAAO,IAAI;AAE1B,OAAK,MAAM,OAAO,OAChB,KAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI,CAEnD,MAAK,OAAO,OAAO;;CAKzB,QAAQ;AACN,OAAK,MAAM,OAAO,KAChB,KAAI,OAAO,UAAU,eAAe,KAAK,MAAM,IAAI,CACjD,QAAO,KAAK;;;AAMpB,sBAAe,IAAI,KAAK;AACxB,MAAM,aAAa,eAAe;AAClC,MAAa,gCACX,WAAW,2CACX;AACF,MAAa,+BACX,WAAW,0CACX;AACF,MAAa,8BACX,WAAW,yCACX;AACF,MAAa,uCACX,WAAW,kDACX;AACF,MAAa,+BACX,WAAW,0CACX;AACF,MAAa,wCACX,WAAW,mDACX"}
|
|
1
|
+
{"version":3,"file":"get-env.js","names":["processEnv","LOCAL: { ENV: SingleEnvironment }","DEV: { ENV: SingleEnvironment }","STAGING: { ENV: SingleEnvironment }","PERF: { ENV: SingleEnvironment }","DR: { ENV: SingleEnvironment }","PREPROD: { ENV: SingleEnvironment }","PROD: { ENV: SingleEnvironment }","environmentsMissingVariables: string[]","missingVariables: Record<string, any>"],"sources":["../src/get-env.ts"],"sourcesContent":["import _get from 'lodash/get';\nimport _omitBy from 'lodash/omitBy';\nimport _isEmpty from 'lodash/isEmpty';\nimport { getProcessEnv } from './process-env';\n\nexport interface SingleEnvironment {\n INTERCOM_APP_ID?: string;\n HPF_SCRIPT_URL?: string;\n GOOGLE_MERCHANT_ID?: string;\n APP_URL: string | string[];\n GOOGLE_ANALYTICS_TRACKING_ID?: string;\n GOOGLE_TAG_MANAGER_ID?: string;\n ENV_NAME: string;\n FUNDER_URL?: string;\n CONNECT_URL?: string;\n CONSUMER_URL?: string;\n ACCOUNTS_URL?: string;\n QUOTES_URL?: string;\n CHECKOUT_URL?: string;\n}\n\nexport interface SingleEnvironmentPayload {\n INTERCOM_APP_ID?: string;\n HPF_SCRIPT_URL?: string;\n GOOGLE_MERCHANT_ID?: string;\n APP_URL: string | string[];\n GOOGLE_ANALYTICS_TRACKING_ID?: string;\n GOOGLE_TAG_MANAGER_ID?: string;\n}\n\nexport interface EnvironmentPayload {\n _global?: Record<string, any>;\n local: SingleEnvironmentPayload;\n dev: SingleEnvironmentPayload;\n staging: SingleEnvironmentPayload;\n perf: SingleEnvironmentPayload;\n dr: SingleEnvironmentPayload;\n preprod: SingleEnvironmentPayload;\n prod: SingleEnvironmentPayload;\n}\n\nexport const REQUIRED_VARIABLES = ['APP_URL'];\n\nexport const ENV_NAMES = {\n LOCAL: 'local',\n DEV: 'dev',\n STG: 'staging',\n PERF: 'perf',\n DR: 'dr',\n PREPROD: 'pre-prod',\n PROD: 'prod'\n} as const;\n\nconst doesAppUrlMatchOrigin = ({ appUrl, origin }: { appUrl: string | string[]; origin: string }) => {\n if (typeof appUrl === 'string' || appUrl instanceof String) {\n return appUrl === origin;\n }\n\n return appUrl?.includes(origin);\n};\n\nconst getEnv = (env: EnvironmentPayload) => {\n const processEnv = getProcessEnv();\n const LOCAL: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.local || {}),\n ENV_NAME: ENV_NAMES.LOCAL,\n FUNDER_URL: 'https://dev-funder.medipass.io',\n CONNECT_URL: 'https://dev-connect.medipass.io',\n CONSUMER_URL: 'https://dev-my.medipass.io',\n ACCOUNTS_URL: 'https://dev-accounts.medipass.io',\n QUOTES_URL: 'https://dev-quotes.medipass.io',\n CHECKOUT_URL: 'https://dev-checkout.medipass.io'\n }\n };\n const DEV: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.dev || {}),\n ENV_NAME: ENV_NAMES.DEV,\n FUNDER_URL: 'https://dev-funder.medipass.io',\n CONNECT_URL: 'https://dev-connect.medipass.io',\n CONSUMER_URL: 'https://dev-my.medipass.io',\n ACCOUNTS_URL: 'https://dev-accounts.medipass.io',\n QUOTES_URL: 'https://dev-quotes.medipass.io',\n CHECKOUT_URL: 'https://dev-checkout.medipass.io'\n }\n };\n const STAGING: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.staging || {}),\n ENV_NAME: ENV_NAMES.STG,\n FUNDER_URL: 'https://stg-funder.medipass.io',\n CONNECT_URL: 'https://stg-connect.medipass.io',\n CONSUMER_URL: 'https://stg-my.medipass.io',\n ACCOUNTS_URL: 'https://stg-accounts.medipass.io',\n QUOTES_URL: 'https://stg-quotes.medipass.io',\n CHECKOUT_URL: 'https://stg-checkout.medipass.io'\n }\n };\n const PERF: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.perf || {}),\n ENV_NAME: ENV_NAMES.PERF,\n FUNDER_URL: 'https://perf-funder.medipass.io',\n CONNECT_URL: 'https://perf-connect.medipass.io',\n CONSUMER_URL: 'https://perf-my.medipass.io',\n ACCOUNTS_URL: 'https://perf-accounts.medipass.io',\n QUOTES_URL: 'https://perf-quotes.medipass.io',\n CHECKOUT_URL: 'https://perf-checkout.medipass.io'\n }\n };\n const DR: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.dr || {}),\n ENV_NAME: ENV_NAMES.DR,\n FUNDER_URL: 'https://dr-funder.medipass.io',\n CONNECT_URL: 'https://dr-connect.medipass.io',\n CONSUMER_URL: 'https://dr-my.medipass.io',\n ACCOUNTS_URL: 'https://dr-accounts.medipass.io',\n QUOTES_URL: 'https://dr-quotes.medipass.io',\n CHECKOUT_URL: 'https://dr-checkout.medipass.io'\n }\n };\n const PREPROD: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.preprod || {}),\n ENV_NAME: ENV_NAMES.PREPROD,\n FUNDER_URL: 'https://funder-blue.medipass.io',\n CONNECT_URL: 'https://connect-blue.medipass.io',\n CONSUMER_URL: 'https://my-blue.medipass.io',\n ACCOUNTS_URL: 'https://accounts-blue.medipass.io',\n QUOTES_URL: 'https://quotes-blue.medipass.io',\n CHECKOUT_URL: 'https://checkout-blue.medipass.io'\n }\n };\n const PROD: { ENV: SingleEnvironment } = {\n ENV: {\n ...(env?._global || {}),\n ...(env?.prod || {}),\n ENV_NAME: ENV_NAMES.PROD,\n FUNDER_URL: 'https://funder.medipass.io',\n CONNECT_URL: 'https://connect.medipass.io',\n CONSUMER_URL: 'https://my.medipass.io',\n ACCOUNTS_URL: 'https://accounts.medipass.io',\n QUOTES_URL: 'https://quotes.medipass.io',\n CHECKOUT_URL: 'https://checkout.medipass.io'\n }\n };\n\n const fabSettings = _get(window, 'FAB_SETTINGS', {}) as { REACT_APP_ENV?: string };\n\n const origin = window.location.origin;\n\n if (\n processEnv.REACT_APP_ENV === 'dev' ||\n fabSettings.REACT_APP_ENV === 'dev' ||\n doesAppUrlMatchOrigin({ appUrl: DEV?.ENV?.APP_URL || '', origin })\n ) {\n return DEV.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'staging' ||\n fabSettings.REACT_APP_ENV === 'staging' ||\n doesAppUrlMatchOrigin({ appUrl: STAGING?.ENV?.APP_URL || '', origin })\n ) {\n return STAGING.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'perf' ||\n fabSettings.REACT_APP_ENV === 'perf' ||\n doesAppUrlMatchOrigin({ appUrl: PERF?.ENV?.APP_URL || '', origin })\n ) {\n return PERF.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'dr' ||\n fabSettings.REACT_APP_ENV === 'dr' ||\n doesAppUrlMatchOrigin({ appUrl: DR?.ENV?.APP_URL || '', origin })\n ) {\n return DR.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'pre-prod' ||\n doesAppUrlMatchOrigin({ appUrl: PREPROD?.ENV?.APP_URL || '', origin })\n ) {\n return PREPROD.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'local' ||\n doesAppUrlMatchOrigin({ appUrl: LOCAL?.ENV?.APP_URL || '', origin })\n ) {\n return LOCAL.ENV;\n } else if (\n processEnv.REACT_APP_ENV === 'prod' ||\n doesAppUrlMatchOrigin({ appUrl: PROD?.ENV?.APP_URL || '', origin })\n ) {\n return PROD.ENV;\n }\n\n return DEV.ENV;\n};\n\nconst getEnvironmentsMissingVariables = (envVariables: Record<string, any>) => {\n let environmentsMissingVariables: string[] = [];\n\n for (const requiredVariable of REQUIRED_VARIABLES) {\n if (!envVariables[requiredVariable]) {\n environmentsMissingVariables = [...environmentsMissingVariables, requiredVariable];\n }\n }\n\n return environmentsMissingVariables;\n};\n\nconst getRequiredEnvironmentVariables = (env: EnvironmentPayload) => {\n const missingVariables: Record<string, any> = {};\n\n for (const key in env) {\n if (key.includes('_')) {\n continue;\n }\n\n if (Object.prototype.hasOwnProperty.call(env, key)) {\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n missingVariables[key] = getEnvironmentsMissingVariables(env[key]);\n }\n }\n\n return _omitBy(missingVariables, _isEmpty);\n};\n\nconst logWarningForMissingRequiredEnvironmentVariables = (missingRequiredEnvironmentVariables: Record<string, any>) => {\n for (const key in missingRequiredEnvironmentVariables) {\n if (Object.prototype.hasOwnProperty.call(missingRequiredEnvironmentVariables, key)) {\n console.error(\n `Warning: Required variables ${missingRequiredEnvironmentVariables[key]} not defined in the '${key}' environment.`\n );\n }\n }\n};\n\nclass Env {\n [index: string]: any;\n ENV_NAME: typeof ENV_NAMES[keyof typeof ENV_NAMES] | null;\n FUNDER_URL: string | null;\n CONNECT_URL: string | null;\n CONSUMER_URL: string | null;\n ACCOUNTS_URL: string | null;\n QUOTES_URL: string | null;\n CHECKOUT_URL: string | null;\n\n constructor() {\n this.ENV_NAME = null;\n this.FUNDER_URL = null;\n this.CONNECT_URL = null;\n this.CONSUMER_URL = null;\n this.ACCOUNTS_URL = null;\n this.QUOTES_URL = null;\n this.CHECKOUT_URL = null;\n }\n\n setup(env: EnvironmentPayload) {\n this.clear();\n const missingRequiredEnvironmentVariables = getRequiredEnvironmentVariables(env);\n logWarningForMissingRequiredEnvironmentVariables(missingRequiredEnvironmentVariables);\n const newEnv = getEnv(env);\n\n for (const key in newEnv) {\n if (Object.prototype.hasOwnProperty.call(newEnv, key)) {\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n this[key] = newEnv[key];\n }\n }\n }\n\n clear() {\n for (const key in this) {\n if (Object.prototype.hasOwnProperty.call(this, key)) {\n delete this[key];\n }\n }\n }\n}\n\nexport default new Env();\nconst processEnv = getProcessEnv();\nexport const ERROR_MESSAGE__INTERNET_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__INTERNET_ERROR ||\n 'We are unable to establish an internet connection. We will take you back once you are connected to the internet.';\nexport const ERROR_MESSAGE__NETWORK_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__NETWORK_ERROR ||\n 'There are issues connecting to the Tyro Health platform. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__SERVER_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__SERVER_ERROR ||\n 'There are issues connecting to the Tyro Health platform. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__PAYMENT_GATEWAY_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_GATEWAY_ERROR ||\n 'There are issues connecting to the payment gateway. Please refresh the page and try again.';\nexport const ERROR_MESSAGE__PAYMENT_ERROR =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_ERROR ||\n 'An error occurred when processing the payment. Please try again. The card was not charged.';\nexport const ERROR_MESSAGE__PAYMENT_GATEWAY_FIELDS =\n processEnv.REACT_APP_ERROR_MESSAGE__PAYMENT_GATEWAY_FIELDS ||\n 'The payment card details you entered were invalid, please review the payment card credentials and try again.';\n"],"mappings":";;;;;;AAyCA,MAAa,qBAAqB,CAAC,UAAU;AAE7C,MAAa,YAAY;CACvB,OAAO;CACP,KAAK;CACL,KAAK;CACL,MAAM;CACN,IAAI;CACJ,SAAS;CACT,MAAM;CACP;AAED,MAAM,yBAAyB,EAAE,QAAQ,aAA4D;AACnG,KAAI,OAAO,WAAW,YAAY,kBAAkB,OAClD,QAAO,WAAW;AAGpB,QAAO,QAAQ,SAAS,OAAO;;AAGjC,MAAM,UAAU,QAA4B;CAC1C,MAAMA,eAAa,eAAe;CAClC,MAAMC,QAAoC,EACxC,KAAK;EACH,GAAI,KAAK,WAAW,EAAE;EACtB,GAAI,KAAK,SAAS,EAAE;EACpB,UAAU,UAAU;EACpB,YAAY;EACZ,aAAa;EACb,cAAc;EACd,cAAc;EACd,YAAY;EACZ,cAAc;EACf,EACF;CACD,MAAMC,MAAkC,EACtC,KAAK;EACH,GAAI,KAAK,WAAW,EAAE;EACtB,GAAI,KAAK,OAAO,EAAE;EAClB,UAAU,UAAU;EACpB,YAAY;EACZ,aAAa;EACb,cAAc;EACd,cAAc;EACd,YAAY;EACZ,cAAc;EACf,EACF;CACD,MAAMC,UAAsC,EAC1C,KAAK;EACH,GAAI,KAAK,WAAW,EAAE;EACtB,GAAI,KAAK,WAAW,EAAE;EACtB,UAAU,UAAU;EACpB,YAAY;EACZ,aAAa;EACb,c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