@amoa/casting 0.1.5 → 0.1.7
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/export/index.js +10 -9
- package/dist/export/index.js.map +1 -0
- package/dist/form/buttons/index.js +3 -2
- package/dist/form/buttons/index.js.map +1 -0
- package/dist/form/buttons/index.module.css.js +1 -0
- package/dist/form/buttons/index.module.css.js.map +1 -0
- package/dist/form/caption/index.js +3 -2
- package/dist/form/caption/index.js.map +1 -0
- package/dist/form/caption/index.module.css.js +1 -0
- package/dist/form/caption/index.module.css.js.map +1 -0
- package/dist/form/description/index.js +3 -2
- package/dist/form/description/index.js.map +1 -0
- package/dist/form/description/index.module.css.js +1 -0
- package/dist/form/description/index.module.css.js.map +1 -0
- package/dist/form/email/index.js +4 -3
- package/dist/form/email/index.js.map +1 -0
- package/dist/form/index.js +5 -4
- package/dist/form/index.js.map +1 -0
- package/dist/form/index.module.css.js +1 -0
- package/dist/form/index.module.css.js.map +1 -0
- package/dist/form/inputs/index.js +3 -2
- package/dist/form/inputs/index.js.map +1 -0
- package/dist/form/inputs/index.module.css.js +1 -0
- package/dist/form/inputs/index.module.css.js.map +1 -0
- package/dist/form/password/index.js +4 -3
- package/dist/form/password/index.js.map +1 -0
- package/dist/index.css +1 -1708
- package/dist/waiter/index.js +12 -13
- package/dist/waiter/index.js.map +1 -0
- package/dist/waiter/index.module.css.js +1 -0
- package/dist/waiter/index.module.css.js.map +1 -0
- package/package.json +4 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -5
- package/dist/_virtual/_interop_require_default.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.js +0 -3
- package/dist/_virtual/action-async-storage-instance.js +0 -3
- package/dist/_virtual/action-async-storage.external.js +0 -3
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
- package/dist/_virtual/app-router-headers.js +0 -3
- package/dist/_virtual/app.js +0 -3
- package/dist/_virtual/async-local-storage.js +0 -3
- package/dist/_virtual/bailout-to-csr.js +0 -3
- package/dist/_virtual/boundary-constants.js +0 -3
- package/dist/_virtual/constants.js +0 -3
- package/dist/_virtual/deployment-id.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/dynamic-rendering-utils.js +0 -3
- package/dist/_virtual/dynamic-rendering.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/error-once.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/find-closest-quality.js +0 -3
- package/dist/_virtual/forbidden.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-dynamic-param.js +0 -3
- package/dist/_virtual/get-img-props.js +0 -3
- package/dist/_virtual/get-segment-param.js +0 -3
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/head.js +0 -3
- package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -3
- package/dist/_virtual/hooks-server-context.js +0 -3
- package/dist/_virtual/http-access-fallback.js +0 -3
- package/dist/_virtual/image-blur-svg.js +0 -3
- package/dist/_virtual/image-component.js +0 -3
- package/dist/_virtual/image-config-context.shared-runtime.js +0 -3
- package/dist/_virtual/image-config.js +0 -3
- package/dist/_virtual/image-external.js +0 -3
- package/dist/_virtual/image-loader.js +0 -3
- package/dist/_virtual/image.js +0 -7
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/interception-prefix-from-param-type.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/invariant-error.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-next-router-error.js +0 -3
- package/dist/_virtual/is-postpone.js +0 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/link.js +0 -7
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/match-local-pattern.js +0 -3
- package/dist/_virtual/match-remote-pattern.js +0 -3
- package/dist/_virtual/navigation.js +0 -3
- package/dist/_virtual/navigation.react-server.js +0 -3
- package/dist/_virtual/navigation2.js +0 -3
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-locale-path2.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/not-found.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-loader-tree.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/_virtual/readonly-url-search-params.js +0 -3
- package/dist/_virtual/redirect-error.js +0 -3
- package/dist/_virtual/redirect-status-code.js +0 -3
- package/dist/_virtual/redirect.js +0 -3
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-param-value.js +0 -3
- package/dist/_virtual/route-match-utils.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-pattern-normalizer.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/scheduler.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -3
- package/dist/_virtual/side-effect.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/static-generation-bailout.js +0 -3
- package/dist/_virtual/unauthorized.js +0 -3
- package/dist/_virtual/unrecognized-action-error.js +0 -3
- package/dist/_virtual/unstable-rethrow.browser.js +0 -3
- package/dist/_virtual/unstable-rethrow.js +0 -3
- package/dist/_virtual/unstable-rethrow.server.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/use-merged-ref.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/warn-once.js +0 -3
- package/dist/_virtual/work-async-storage-instance.js +0 -3
- package/dist/_virtual/work-async-storage.external.js +0 -3
- package/dist/_virtual/work-unit-async-storage-instance.js +0 -3
- package/dist/_virtual/work-unit-async-storage.external.js +0 -3
- package/dist/config/config.json.js +0 -37
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -39
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -112
- package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -50
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -77
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -37
- package/dist/node_modules/next/dist/client/components/navigation.js +0 -198
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -80
- package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
- package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -58
- package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -60
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -36
- package/dist/node_modules/next/dist/client/components/redirect.js +0 -98
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -50
- package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -47
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -42
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -41
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -50
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/image-component.js +0 -343
- package/dist/node_modules/next/dist/client/link.js +0 -466
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -54
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -124
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -126
- package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -79
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -439
- package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -1662
- package/dist/node_modules/next/dist/lib/constants.js +0 -339
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -41
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -114
- package/dist/node_modules/next/dist/lib/scheduler.js +0 -69
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -804
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -221
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -617
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/head.js +0 -177
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -65
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
- package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
- package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -119
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -54
- package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -130
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -88
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -176
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -89
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -109
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -82
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -128
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -122
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -312
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -246
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -102
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -78
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -192
- package/dist/node_modules/next/image.js +0 -13
- package/dist/node_modules/next/link.js +0 -13
- package/dist/node_modules/next/navigation.js +0 -13
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -240
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -26
- package/dist/packages/carving/src/carving.js +0 -34
- package/dist/packages/carving/src/condo.js +0 -17
- package/dist/packages/carving/src/logos/amoa.js +0 -17
- package/dist/packages/forge/src/classes.js +0 -17
- package/dist/packages/forge/src/dates/date.js +0 -8
- package/dist/packages/forge/src/dates/day.js +0 -7
- package/dist/packages/forge/src/dates/index.js +0 -31
- package/dist/packages/forge/src/dates/month.js +0 -35
- package/dist/packages/forge/src/dates/year.js +0 -16
- package/dist/packages/forge/src/fetcher/index.js +0 -37
- package/dist/packages/forge/src/fetcher/querystring.js +0 -9
- package/dist/packages/forge/src/files.js +0 -17
- package/dist/packages/forge/src/numbers/index.js +0 -5
- package/dist/packages/forge/src/strings/characters.js +0 -3
- package/dist/packages/forge/src/strings/diacritics.js +0 -261
- package/dist/packages/forge/src/strings/index.js +0 -24
- package/dist/packages/hooks/src/use-debounce.js +0 -19
- package/dist/packages/hooks/src/use-tooltip.js +0 -27
- package/dist/packages/ingots/src/address/api/form.js +0 -12
- package/dist/packages/ingots/src/address/config.json.js +0 -16
- package/dist/packages/ingots/src/address/index.js +0 -115
- package/dist/packages/ingots/src/address/index.module.css.js +0 -3
- package/dist/packages/ingots/src/address/service.js +0 -41
- package/dist/packages/ingots/src/backdrop/index.js +0 -18
- package/dist/packages/ingots/src/backdrop/index.module.css.js +0 -3
- package/dist/packages/ingots/src/button/index.js +0 -56
- package/dist/packages/ingots/src/button/index.module.css.js +0 -3
- package/dist/packages/ingots/src/checkbox/index.js +0 -47
- package/dist/packages/ingots/src/checkbox/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/erase/index.js +0 -22
- package/dist/packages/ingots/src/date/erase/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/input/index.js +0 -113
- package/dist/packages/ingots/src/date/input/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/day/index.js +0 -35
- package/dist/packages/ingots/src/date/picker/day/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/days/index.js +0 -59
- package/dist/packages/ingots/src/date/picker/days/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/handle/index.js +0 -40
- package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/index.js +0 -154
- package/dist/packages/ingots/src/date/picker/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/menu/index.js +0 -32
- package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +0 -3
- package/dist/packages/ingots/src/date/picker/menu/item.js +0 -30
- package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +0 -3
- package/dist/packages/ingots/src/file/api/index.js +0 -14
- package/dist/packages/ingots/src/file/card/index.js +0 -65
- package/dist/packages/ingots/src/file/card/index.module.css.js +0 -3
- package/dist/packages/ingots/src/file/index.js +0 -34
- package/dist/packages/ingots/src/file/index.module.css.js +0 -3
- package/dist/packages/ingots/src/file/input/index.js +0 -261
- package/dist/packages/ingots/src/file/input/index.module.css.js +0 -3
- package/dist/packages/ingots/src/input/index.js +0 -75
- package/dist/packages/ingots/src/input/src/validation/index.js +0 -3
- package/dist/packages/ingots/src/loader/index.js +0 -23
- package/dist/packages/ingots/src/loader/index.module.css.js +0 -3
- package/dist/packages/ingots/src/loader/variants/spinner/index.js +0 -31
- package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/card/index.js +0 -33
- package/dist/packages/ingots/src/select/card/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/category/index.js +0 -13
- package/dist/packages/ingots/src/select/category/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/content/index.js +0 -46
- package/dist/packages/ingots/src/select/index.js +0 -155
- package/dist/packages/ingots/src/select/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/option/index.js +0 -35
- package/dist/packages/ingots/src/select/option/index.module.css.js +0 -3
- package/dist/packages/ingots/src/select/options/index.js +0 -59
- package/dist/packages/ingots/src/select/options/index.module.css.js +0 -3
- package/dist/packages/ingots/src/snackbar/context.js +0 -9
- package/dist/packages/ingots/src/tag/index.js +0 -16
- package/dist/packages/ingots/src/tag/index.module.css.js +0 -3
- package/dist/packages/ingots/src/text/index.js +0 -92
- package/dist/packages/ingots/src/text/index.module.css.js +0 -3
- package/dist/packages/ingots/src/textarea/index.js +0 -62
- package/dist/packages/ingots/src/textarea/index.module.css.js +0 -3
- package/dist/packages/ingots/src/toggle/index.js +0 -43
- package/dist/packages/ingots/src/toggle/index.module.css.js +0 -3
- package/dist/packages/runes/src/icon.js +0 -16
- package/dist/packages/runes/src/paths/alert.js +0 -18
- package/dist/packages/runes/src/paths/arrow/path.js +0 -18
- package/dist/packages/runes/src/paths/calendar.js +0 -18
- package/dist/packages/runes/src/paths/check/fill.js +0 -18
- package/dist/packages/runes/src/paths/check/regular.js +0 -18
- package/dist/packages/runes/src/paths/chevron/down.js +0 -18
- package/dist/packages/runes/src/paths/chevron/left.js +0 -18
- package/dist/packages/runes/src/paths/chevron/right.js +0 -18
- package/dist/packages/runes/src/paths/click.js +0 -18
- package/dist/packages/runes/src/paths/cross/regular.js +0 -16
- package/dist/packages/runes/src/paths/download.js +0 -18
- package/dist/packages/runes/src/paths/file.js +0 -18
- package/dist/packages/runes/src/paths/link.js +0 -23
- package/dist/packages/wares/src/authentication/index.js +0 -11
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { __module as imageComponent } from '../../../../_virtual/image-component.js';
|
|
2
|
-
import { __require as require_interop_require_default } from '../../../@swc/helpers/cjs/_interop_require_default.js';
|
|
3
|
-
import { __require as require_interop_require_wildcard } from '../../../@swc/helpers/cjs/_interop_require_wildcard.js';
|
|
4
|
-
import { __require as requireJsxRuntime } from '../../../react/jsx-runtime.js';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
import ReactDOM__default from 'react-dom';
|
|
7
|
-
import { __require as requireHead } from '../shared/lib/head.js';
|
|
8
|
-
import { __require as requireGetImgProps } from '../shared/lib/get-img-props.js';
|
|
9
|
-
import { __require as requireImageConfig } from '../shared/lib/image-config.js';
|
|
10
|
-
import { __require as requireImageConfigContext_sharedRuntime } from '../shared/lib/image-config-context.shared-runtime.js';
|
|
11
|
-
import { __require as requireWarnOnce } from '../shared/lib/utils/warn-once.js';
|
|
12
|
-
import { __require as requireRouterContext_sharedRuntime } from '../shared/lib/router-context.shared-runtime.js';
|
|
13
|
-
import { __require as requireImageLoader } from '../shared/lib/image-loader.js';
|
|
14
|
-
import { __require as requireUseMergedRef } from './use-merged-ref.js';
|
|
15
|
-
|
|
16
|
-
var hasRequiredImageComponent;
|
|
17
|
-
|
|
18
|
-
function requireImageComponent () {
|
|
19
|
-
if (hasRequiredImageComponent) return imageComponent.exports;
|
|
20
|
-
hasRequiredImageComponent = 1;
|
|
21
|
-
(function (module, exports$1) {
|
|
22
|
-
'use client';
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
25
|
-
value: true
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports$1, "Image", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () {
|
|
30
|
-
return Image;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
|
|
34
|
-
const _interop_require_wildcard = /*@__PURE__*/ require_interop_require_wildcard();
|
|
35
|
-
const _jsxruntime = requireJsxRuntime();
|
|
36
|
-
const _react = /*#__PURE__*/_interop_require_wildcard._(React__default);
|
|
37
|
-
const _reactdom = /*#__PURE__*/_interop_require_default._(ReactDOM__default);
|
|
38
|
-
const _head = /*#__PURE__*/_interop_require_default._(requireHead());
|
|
39
|
-
const _getimgprops = requireGetImgProps();
|
|
40
|
-
const _imageconfig = requireImageConfig();
|
|
41
|
-
const _imageconfigcontextsharedruntime = requireImageConfigContext_sharedRuntime();
|
|
42
|
-
const _warnonce = requireWarnOnce();
|
|
43
|
-
const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
|
|
44
|
-
const _imageloader = /*#__PURE__*/_interop_require_default._(requireImageLoader());
|
|
45
|
-
const _usemergedref = requireUseMergedRef();
|
|
46
|
-
// This is replaced by webpack define plugin
|
|
47
|
-
const configEnv = process.env.__NEXT_IMAGE_OPTS;
|
|
48
|
-
if (typeof window === 'undefined') {
|
|
49
|
-
globalThis.__NEXT_IMAGE_IMPORTED = true;
|
|
50
|
-
}
|
|
51
|
-
// See https://stackoverflow.com/q/39777833/266535 for why we use this ref
|
|
52
|
-
// handler instead of the img's onLoad attribute.
|
|
53
|
-
function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
|
|
54
|
-
const src = img?.src;
|
|
55
|
-
if (!img || img['data-loaded-src'] === src) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
img['data-loaded-src'] = src;
|
|
59
|
-
const p = 'decode' in img ? img.decode() : Promise.resolve();
|
|
60
|
-
p.catch(() => {}).then(() => {
|
|
61
|
-
if (!img.parentElement || !img.isConnected) {
|
|
62
|
-
// Exit early in case of race condition:
|
|
63
|
-
// - onload() is called
|
|
64
|
-
// - decode() is called but incomplete
|
|
65
|
-
// - unmount is called
|
|
66
|
-
// - decode() completes
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (placeholder !== 'empty') {
|
|
70
|
-
setBlurComplete(true);
|
|
71
|
-
}
|
|
72
|
-
if (onLoadRef?.current) {
|
|
73
|
-
// Since we don't have the SyntheticEvent here,
|
|
74
|
-
// we must create one with the same shape.
|
|
75
|
-
// See https://reactjs.org/docs/events.html
|
|
76
|
-
const event = new Event('load');
|
|
77
|
-
Object.defineProperty(event, 'target', {
|
|
78
|
-
writable: false,
|
|
79
|
-
value: img
|
|
80
|
-
});
|
|
81
|
-
let prevented = false;
|
|
82
|
-
let stopped = false;
|
|
83
|
-
onLoadRef.current({
|
|
84
|
-
...event,
|
|
85
|
-
nativeEvent: event,
|
|
86
|
-
currentTarget: img,
|
|
87
|
-
target: img,
|
|
88
|
-
isDefaultPrevented: () => prevented,
|
|
89
|
-
isPropagationStopped: () => stopped,
|
|
90
|
-
persist: () => {},
|
|
91
|
-
preventDefault: () => {
|
|
92
|
-
prevented = true;
|
|
93
|
-
event.preventDefault();
|
|
94
|
-
},
|
|
95
|
-
stopPropagation: () => {
|
|
96
|
-
stopped = true;
|
|
97
|
-
event.stopPropagation();
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
if (onLoadingCompleteRef?.current) {
|
|
102
|
-
onLoadingCompleteRef.current(img);
|
|
103
|
-
}
|
|
104
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
105
|
-
const origSrc = new URL(src, 'http://n').searchParams.get('url') || src;
|
|
106
|
-
if (img.getAttribute('data-nimg') === 'fill') {
|
|
107
|
-
if (!unoptimized && (!sizesInput || sizesInput === '100vw')) {
|
|
108
|
-
let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
|
|
109
|
-
if (widthViewportRatio < 0.6) {
|
|
110
|
-
if (sizesInput === '100vw') {
|
|
111
|
-
(0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`);
|
|
112
|
-
} else {
|
|
113
|
-
(0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (img.parentElement) {
|
|
118
|
-
const {
|
|
119
|
-
position
|
|
120
|
-
} = window.getComputedStyle(img.parentElement);
|
|
121
|
-
const valid = ['absolute', 'fixed', 'relative'];
|
|
122
|
-
if (!valid.includes(position)) {
|
|
123
|
-
(0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" and parent element with invalid "position". Provided "${position}" should be one of ${valid.map(String).join(',')}.`);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (img.height === 0) {
|
|
127
|
-
(0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.`);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const heightModified = img.height.toString() !== img.getAttribute('height');
|
|
131
|
-
const widthModified = img.width.toString() !== img.getAttribute('width');
|
|
132
|
-
if (heightModified && !widthModified || !heightModified && widthModified) {
|
|
133
|
-
(0, _warnonce.warnOnce)(`Image with src "${origSrc}" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
function getDynamicProps(fetchPriority) {
|
|
139
|
-
if (Boolean(_react.use)) {
|
|
140
|
-
// In React 19.0.0 or newer, we must use camelCase
|
|
141
|
-
// prop to avoid "Warning: Invalid DOM property".
|
|
142
|
-
// See https://github.com/facebook/react/pull/25927
|
|
143
|
-
return {
|
|
144
|
-
fetchPriority
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
// In React 18.2.0 or older, we must use lowercase prop
|
|
148
|
-
// to avoid "Warning: Invalid DOM property".
|
|
149
|
-
return {
|
|
150
|
-
fetchpriority: fetchPriority
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
const ImageElement = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
154
|
-
src,
|
|
155
|
-
srcSet,
|
|
156
|
-
sizes,
|
|
157
|
-
height,
|
|
158
|
-
width,
|
|
159
|
-
decoding,
|
|
160
|
-
className,
|
|
161
|
-
style,
|
|
162
|
-
fetchPriority,
|
|
163
|
-
placeholder,
|
|
164
|
-
loading,
|
|
165
|
-
unoptimized,
|
|
166
|
-
fill,
|
|
167
|
-
onLoadRef,
|
|
168
|
-
onLoadingCompleteRef,
|
|
169
|
-
setBlurComplete,
|
|
170
|
-
setShowAltText,
|
|
171
|
-
sizesInput,
|
|
172
|
-
onLoad,
|
|
173
|
-
onError,
|
|
174
|
-
...rest
|
|
175
|
-
}, forwardedRef) => {
|
|
176
|
-
const ownRef = (0, _react.useCallback)(img => {
|
|
177
|
-
if (!img) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
if (onError) {
|
|
181
|
-
// If the image has an error before react hydrates, then the error is lost.
|
|
182
|
-
// The workaround is to wait until the image is mounted which is after hydration,
|
|
183
|
-
// then we set the src again to trigger the error handler (if there was an error).
|
|
184
|
-
// eslint-disable-next-line no-self-assign
|
|
185
|
-
img.src = img.src;
|
|
186
|
-
}
|
|
187
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
188
|
-
if (!src) {
|
|
189
|
-
console.error(`Image is missing required "src" property:`, img);
|
|
190
|
-
}
|
|
191
|
-
if (img.getAttribute('alt') === null) {
|
|
192
|
-
console.error(`Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.`);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
if (img.complete) {
|
|
196
|
-
handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
|
|
197
|
-
}
|
|
198
|
-
}, [src, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, onError, unoptimized, sizesInput]);
|
|
199
|
-
const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
|
|
200
|
-
return /*#__PURE__*/(0, _jsxruntime.jsx)("img", {
|
|
201
|
-
...rest,
|
|
202
|
-
...getDynamicProps(fetchPriority),
|
|
203
|
-
// It's intended to keep `loading` before `src` because React updates
|
|
204
|
-
// props in order which causes Safari/Firefox to not lazy load properly.
|
|
205
|
-
// See https://github.com/facebook/react/issues/25883
|
|
206
|
-
loading: loading,
|
|
207
|
-
width: width,
|
|
208
|
-
height: height,
|
|
209
|
-
decoding: decoding,
|
|
210
|
-
"data-nimg": fill ? 'fill' : '1',
|
|
211
|
-
className: className,
|
|
212
|
-
style: style,
|
|
213
|
-
// It's intended to keep `src` the last attribute because React updates
|
|
214
|
-
// attributes in order. If we keep `src` the first one, Safari will
|
|
215
|
-
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
216
|
-
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
217
|
-
// and `sizes` are defined.
|
|
218
|
-
// This bug cannot be reproduced in Chrome or Firefox.
|
|
219
|
-
sizes: sizes,
|
|
220
|
-
srcSet: srcSet,
|
|
221
|
-
src: src,
|
|
222
|
-
ref: ref,
|
|
223
|
-
onLoad: event => {
|
|
224
|
-
const img = event.currentTarget;
|
|
225
|
-
handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
|
|
226
|
-
},
|
|
227
|
-
onError: event => {
|
|
228
|
-
// if the real image fails to load, this will ensure "alt" is visible
|
|
229
|
-
setShowAltText(true);
|
|
230
|
-
if (placeholder !== 'empty') {
|
|
231
|
-
// If the real image fails to load, this will still remove the placeholder.
|
|
232
|
-
setBlurComplete(true);
|
|
233
|
-
}
|
|
234
|
-
if (onError) {
|
|
235
|
-
onError(event);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
function ImagePreload({
|
|
241
|
-
isAppRouter,
|
|
242
|
-
imgAttributes
|
|
243
|
-
}) {
|
|
244
|
-
const opts = {
|
|
245
|
-
as: 'image',
|
|
246
|
-
imageSrcSet: imgAttributes.srcSet,
|
|
247
|
-
imageSizes: imgAttributes.sizes,
|
|
248
|
-
crossOrigin: imgAttributes.crossOrigin,
|
|
249
|
-
referrerPolicy: imgAttributes.referrerPolicy,
|
|
250
|
-
...getDynamicProps(imgAttributes.fetchPriority)
|
|
251
|
-
};
|
|
252
|
-
if (isAppRouter && _reactdom.default.preload) {
|
|
253
|
-
_reactdom.default.preload(imgAttributes.src, opts);
|
|
254
|
-
return null;
|
|
255
|
-
}
|
|
256
|
-
return /*#__PURE__*/(0, _jsxruntime.jsx)(_head.default, {
|
|
257
|
-
children: /*#__PURE__*/(0, _jsxruntime.jsx)("link", {
|
|
258
|
-
rel: "preload",
|
|
259
|
-
// Note how we omit the `href` attribute, as it would only be relevant
|
|
260
|
-
// for browsers that do not support `imagesrcset`, and in those cases
|
|
261
|
-
// it would cause the incorrect image to be preloaded.
|
|
262
|
-
//
|
|
263
|
-
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
264
|
-
href: imgAttributes.srcSet ? undefined : imgAttributes.src,
|
|
265
|
-
...opts
|
|
266
|
-
}, '__nimg-' + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
const Image = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef) => {
|
|
270
|
-
const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
|
|
271
|
-
// We're in the app directory if there is no pages router.
|
|
272
|
-
const isAppRouter = !pagesRouter;
|
|
273
|
-
const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
|
|
274
|
-
const config = (0, _react.useMemo)(() => {
|
|
275
|
-
const c = configEnv || configContext || _imageconfig.imageConfigDefault;
|
|
276
|
-
const allSizes = [...c.deviceSizes, ...c.imageSizes].sort((a, b) => a - b);
|
|
277
|
-
const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
|
|
278
|
-
const qualities = c.qualities?.sort((a, b) => a - b);
|
|
279
|
-
return {
|
|
280
|
-
...c,
|
|
281
|
-
allSizes,
|
|
282
|
-
deviceSizes,
|
|
283
|
-
qualities,
|
|
284
|
-
// During the SSR, configEnv (__NEXT_IMAGE_OPTS) does not include
|
|
285
|
-
// security sensitive configs like `localPatterns`, which is needed
|
|
286
|
-
// during the server render to ensure it's validated. Therefore use
|
|
287
|
-
// configContext, which holds the config from the server for validation.
|
|
288
|
-
localPatterns: typeof window === 'undefined' ? configContext?.localPatterns : c.localPatterns
|
|
289
|
-
};
|
|
290
|
-
}, [configContext]);
|
|
291
|
-
const {
|
|
292
|
-
onLoad,
|
|
293
|
-
onLoadingComplete
|
|
294
|
-
} = props;
|
|
295
|
-
const onLoadRef = (0, _react.useRef)(onLoad);
|
|
296
|
-
(0, _react.useEffect)(() => {
|
|
297
|
-
onLoadRef.current = onLoad;
|
|
298
|
-
}, [onLoad]);
|
|
299
|
-
const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
|
|
300
|
-
(0, _react.useEffect)(() => {
|
|
301
|
-
onLoadingCompleteRef.current = onLoadingComplete;
|
|
302
|
-
}, [onLoadingComplete]);
|
|
303
|
-
const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
|
|
304
|
-
const [showAltText, setShowAltText] = (0, _react.useState)(false);
|
|
305
|
-
const {
|
|
306
|
-
props: imgAttributes,
|
|
307
|
-
meta: imgMeta
|
|
308
|
-
} = (0, _getimgprops.getImgProps)(props, {
|
|
309
|
-
defaultLoader: _imageloader.default,
|
|
310
|
-
imgConf: config,
|
|
311
|
-
blurComplete,
|
|
312
|
-
showAltText
|
|
313
|
-
});
|
|
314
|
-
return /*#__PURE__*/(0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
315
|
-
children: [/*#__PURE__*/(0, _jsxruntime.jsx)(ImageElement, {
|
|
316
|
-
...imgAttributes,
|
|
317
|
-
unoptimized: imgMeta.unoptimized,
|
|
318
|
-
placeholder: imgMeta.placeholder,
|
|
319
|
-
fill: imgMeta.fill,
|
|
320
|
-
onLoadRef: onLoadRef,
|
|
321
|
-
onLoadingCompleteRef: onLoadingCompleteRef,
|
|
322
|
-
setBlurComplete: setBlurComplete,
|
|
323
|
-
setShowAltText: setShowAltText,
|
|
324
|
-
sizesInput: props.sizes,
|
|
325
|
-
ref: forwardedRef
|
|
326
|
-
}), imgMeta.preload ? /*#__PURE__*/(0, _jsxruntime.jsx)(ImagePreload, {
|
|
327
|
-
isAppRouter: isAppRouter,
|
|
328
|
-
imgAttributes: imgAttributes
|
|
329
|
-
}) : null]
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
|
|
333
|
-
Object.defineProperty(exports$1.default, '__esModule', {
|
|
334
|
-
value: true
|
|
335
|
-
});
|
|
336
|
-
Object.assign(exports$1.default, exports$1);
|
|
337
|
-
module.exports = exports$1.default;
|
|
338
|
-
}
|
|
339
|
-
} (imageComponent, imageComponent.exports));
|
|
340
|
-
return imageComponent.exports;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export { requireImageComponent as __require };
|