@amoa/casting 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +5 -0
  2. package/dist/_virtual/_interop_require_default.js +3 -0
  3. package/dist/_virtual/_interop_require_wildcard.js +3 -0
  4. package/dist/_virtual/action-async-storage-instance.js +3 -0
  5. package/dist/_virtual/action-async-storage.external.js +3 -0
  6. package/dist/_virtual/add-base-path.js +3 -0
  7. package/dist/_virtual/add-locale.js +3 -0
  8. package/dist/_virtual/add-locale2.js +3 -0
  9. package/dist/_virtual/add-path-prefix.js +3 -0
  10. package/dist/_virtual/app-paths.js +3 -0
  11. package/dist/_virtual/app-router-context.shared-runtime.js +3 -0
  12. package/dist/_virtual/app-router-headers.js +3 -0
  13. package/dist/_virtual/app.js +3 -0
  14. package/dist/_virtual/async-local-storage.js +3 -0
  15. package/dist/_virtual/bailout-to-csr.js +3 -0
  16. package/dist/_virtual/boundary-constants.js +3 -0
  17. package/dist/_virtual/constants.js +3 -0
  18. package/dist/_virtual/deployment-id.js +3 -0
  19. package/dist/_virtual/detect-domain-locale.js +3 -0
  20. package/dist/_virtual/detect-domain-locale2.js +3 -0
  21. package/dist/_virtual/dynamic-rendering-utils.js +3 -0
  22. package/dist/_virtual/dynamic-rendering.js +3 -0
  23. package/dist/_virtual/ensure-leading-slash.js +3 -0
  24. package/dist/_virtual/error-once.js +3 -0
  25. package/dist/_virtual/escape-regexp.js +3 -0
  26. package/dist/_virtual/find-closest-quality.js +3 -0
  27. package/dist/_virtual/forbidden.js +3 -0
  28. package/dist/_virtual/format-url.js +3 -0
  29. package/dist/_virtual/get-domain-locale.js +3 -0
  30. package/dist/_virtual/get-dynamic-param.js +3 -0
  31. package/dist/_virtual/get-img-props.js +3 -0
  32. package/dist/_virtual/get-segment-param.js +3 -0
  33. package/dist/_virtual/has-base-path.js +3 -0
  34. package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
  35. package/dist/_virtual/head.js +3 -0
  36. package/dist/_virtual/hooks-client-context.shared-runtime.js +3 -0
  37. package/dist/_virtual/hooks-server-context.js +3 -0
  38. package/dist/_virtual/http-access-fallback.js +3 -0
  39. package/dist/_virtual/image-blur-svg.js +3 -0
  40. package/dist/_virtual/image-component.js +3 -0
  41. package/dist/_virtual/image-config-context.shared-runtime.js +3 -0
  42. package/dist/_virtual/image-config.js +3 -0
  43. package/dist/_virtual/image-external.js +3 -0
  44. package/dist/_virtual/image-loader.js +3 -0
  45. package/dist/_virtual/image.js +7 -0
  46. package/dist/_virtual/index.js +3 -0
  47. package/dist/_virtual/index2.js +3 -0
  48. package/dist/_virtual/index3.js +3 -0
  49. package/dist/_virtual/interception-prefix-from-param-type.js +3 -0
  50. package/dist/_virtual/interception-routes.js +3 -0
  51. package/dist/_virtual/interpolate-as.js +3 -0
  52. package/dist/_virtual/invariant-error.js +3 -0
  53. package/dist/_virtual/is-dynamic.js +3 -0
  54. package/dist/_virtual/is-local-url.js +3 -0
  55. package/dist/_virtual/is-next-router-error.js +3 -0
  56. package/dist/_virtual/is-postpone.js +3 -0
  57. package/dist/_virtual/jsx-runtime.js +5 -0
  58. package/dist/_virtual/jsx-runtime2.js +3 -0
  59. package/dist/_virtual/link.js +7 -0
  60. package/dist/_virtual/link2.js +3 -0
  61. package/dist/_virtual/match-local-pattern.js +3 -0
  62. package/dist/_virtual/match-remote-pattern.js +3 -0
  63. package/dist/_virtual/navigation.js +3 -0
  64. package/dist/_virtual/navigation.react-server.js +3 -0
  65. package/dist/_virtual/navigation2.js +3 -0
  66. package/dist/_virtual/normalize-locale-path.js +3 -0
  67. package/dist/_virtual/normalize-locale-path2.js +3 -0
  68. package/dist/_virtual/normalize-trailing-slash.js +3 -0
  69. package/dist/_virtual/not-found.js +3 -0
  70. package/dist/_virtual/omit.js +3 -0
  71. package/dist/_virtual/parse-loader-tree.js +3 -0
  72. package/dist/_virtual/parse-path.js +3 -0
  73. package/dist/_virtual/path-has-prefix.js +3 -0
  74. package/dist/_virtual/querystring.js +3 -0
  75. package/dist/_virtual/react-jsx-runtime.development.js +3 -0
  76. package/dist/_virtual/react-jsx-runtime.production.js +3 -0
  77. package/dist/_virtual/readonly-url-search-params.js +3 -0
  78. package/dist/_virtual/redirect-error.js +3 -0
  79. package/dist/_virtual/redirect-status-code.js +3 -0
  80. package/dist/_virtual/redirect.js +3 -0
  81. package/dist/_virtual/remove-trailing-slash.js +3 -0
  82. package/dist/_virtual/request-idle-callback.js +3 -0
  83. package/dist/_virtual/resolve-href.js +3 -0
  84. package/dist/_virtual/resolve-param-value.js +3 -0
  85. package/dist/_virtual/route-match-utils.js +3 -0
  86. package/dist/_virtual/route-matcher.js +3 -0
  87. package/dist/_virtual/route-pattern-normalizer.js +3 -0
  88. package/dist/_virtual/route-regex.js +3 -0
  89. package/dist/_virtual/router-context.shared-runtime.js +3 -0
  90. package/dist/_virtual/scheduler.js +3 -0
  91. package/dist/_virtual/segment.js +3 -0
  92. package/dist/_virtual/server-inserted-html.shared-runtime.js +3 -0
  93. package/dist/_virtual/side-effect.js +3 -0
  94. package/dist/_virtual/sorted-routes.js +3 -0
  95. package/dist/_virtual/static-generation-bailout.js +3 -0
  96. package/dist/_virtual/unauthorized.js +3 -0
  97. package/dist/_virtual/unrecognized-action-error.js +3 -0
  98. package/dist/_virtual/unstable-rethrow.browser.js +3 -0
  99. package/dist/_virtual/unstable-rethrow.js +3 -0
  100. package/dist/_virtual/unstable-rethrow.server.js +3 -0
  101. package/dist/_virtual/use-intersection.js +3 -0
  102. package/dist/_virtual/use-merged-ref.js +3 -0
  103. package/dist/_virtual/utils.js +3 -0
  104. package/dist/_virtual/warn-once.js +3 -0
  105. package/dist/_virtual/work-async-storage-instance.js +3 -0
  106. package/dist/_virtual/work-async-storage.external.js +3 -0
  107. package/dist/_virtual/work-unit-async-storage-instance.js +3 -0
  108. package/dist/_virtual/work-unit-async-storage.external.js +3 -0
  109. package/dist/config/config.json.js +37 -0
  110. package/dist/export/index.js +46 -2
  111. package/dist/form/buttons/index.js +13 -2
  112. package/dist/form/buttons/index.module.css.js +7 -0
  113. package/dist/form/caption/index.js +13 -2
  114. package/dist/form/caption/index.module.css.js +7 -0
  115. package/dist/form/description/index.js +13 -2
  116. package/dist/form/description/index.module.css.js +7 -0
  117. package/dist/form/email/index.js +24 -2
  118. package/dist/form/index.js +17 -2
  119. package/dist/form/index.module.css.js +7 -0
  120. package/dist/form/inputs/index.js +13 -2
  121. package/dist/form/inputs/index.module.css.js +7 -0
  122. package/dist/form/password/index.js +24 -2
  123. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +16 -0
  124. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +48 -0
  125. package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
  126. package/dist/node_modules/next/dist/client/add-locale.js +39 -0
  127. package/dist/node_modules/next/dist/client/components/app-router-headers.js +112 -0
  128. package/dist/node_modules/next/dist/client/components/forbidden.js +62 -0
  129. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +50 -0
  130. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +77 -0
  131. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +37 -0
  132. package/dist/node_modules/next/dist/client/components/navigation.js +198 -0
  133. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +80 -0
  134. package/dist/node_modules/next/dist/client/components/not-found.js +56 -0
  135. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +58 -0
  136. package/dist/node_modules/next/dist/client/components/redirect-error.js +60 -0
  137. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +36 -0
  138. package/dist/node_modules/next/dist/client/components/redirect.js +98 -0
  139. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +50 -0
  140. package/dist/node_modules/next/dist/client/components/unauthorized.js +63 -0
  141. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +47 -0
  142. package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +42 -0
  143. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +41 -0
  144. package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +50 -0
  145. package/dist/node_modules/next/dist/client/detect-domain-locale.js +36 -0
  146. package/dist/node_modules/next/dist/client/get-domain-locale.js +51 -0
  147. package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
  148. package/dist/node_modules/next/dist/client/image-component.js +343 -0
  149. package/dist/node_modules/next/dist/client/link.js +466 -0
  150. package/dist/node_modules/next/dist/client/normalize-locale-path.js +40 -0
  151. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +54 -0
  152. package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
  153. package/dist/node_modules/next/dist/client/resolve-href.js +124 -0
  154. package/dist/node_modules/next/dist/client/use-intersection.js +126 -0
  155. package/dist/node_modules/next/dist/client/use-merged-ref.js +79 -0
  156. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +439 -0
  157. package/dist/node_modules/next/dist/compiled/picomatch/index.js +1662 -0
  158. package/dist/node_modules/next/dist/lib/constants.js +339 -0
  159. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +41 -0
  160. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +114 -0
  161. package/dist/node_modules/next/dist/lib/scheduler.js +69 -0
  162. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +26 -0
  163. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +25 -0
  164. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +83 -0
  165. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +804 -0
  166. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +26 -0
  167. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +25 -0
  168. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +26 -0
  169. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +221 -0
  170. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +90 -0
  171. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +27 -0
  172. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +56 -0
  173. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +41 -0
  174. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +32 -0
  175. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +30 -0
  176. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +617 -0
  177. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +31 -0
  178. package/dist/node_modules/next/dist/shared/lib/head.js +177 -0
  179. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +65 -0
  180. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +36 -0
  181. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +66 -0
  182. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +42 -0
  183. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +33 -0
  184. package/dist/node_modules/next/dist/shared/lib/image-config.js +56 -0
  185. package/dist/node_modules/next/dist/shared/lib/image-external.js +60 -0
  186. package/dist/node_modules/next/dist/shared/lib/image-loader.js +119 -0
  187. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +29 -0
  188. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +43 -0
  189. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +54 -0
  190. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +71 -0
  191. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +31 -0
  192. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +130 -0
  193. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +41 -0
  194. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +36 -0
  195. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
  196. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +88 -0
  197. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +176 -0
  198. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +89 -0
  199. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +38 -0
  200. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +44 -0
  201. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +109 -0
  202. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +71 -0
  203. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +38 -0
  204. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +39 -0
  205. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +32 -0
  206. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +46 -0
  207. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +46 -0
  208. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +34 -0
  209. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +82 -0
  210. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +34 -0
  211. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +128 -0
  212. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +122 -0
  213. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +61 -0
  214. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +312 -0
  215. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +246 -0
  216. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +31 -0
  217. package/dist/node_modules/next/dist/shared/lib/segment.js +102 -0
  218. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +44 -0
  219. package/dist/node_modules/next/dist/shared/lib/side-effect.js +78 -0
  220. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +33 -0
  221. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +33 -0
  222. package/dist/node_modules/next/dist/shared/lib/utils.js +192 -0
  223. package/dist/node_modules/next/image.js +13 -0
  224. package/dist/node_modules/next/link.js +13 -0
  225. package/dist/node_modules/next/navigation.js +13 -0
  226. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +240 -0
  227. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +44 -0
  228. package/dist/node_modules/react/jsx-runtime.js +19 -0
  229. package/dist/node_modules/style-inject/dist/style-inject.es.js +26 -0
  230. package/dist/packages/carving/src/carving.js +34 -0
  231. package/dist/packages/carving/src/condo.js +17 -0
  232. package/dist/packages/carving/src/logos/amoa.js +17 -0
  233. package/dist/packages/forge/src/classes.js +17 -0
  234. package/dist/packages/forge/src/dates/date.js +8 -0
  235. package/dist/packages/forge/src/dates/day.js +7 -0
  236. package/dist/packages/forge/src/dates/index.js +31 -0
  237. package/dist/packages/forge/src/dates/month.js +35 -0
  238. package/dist/packages/forge/src/dates/year.js +16 -0
  239. package/dist/packages/forge/src/fetcher/index.js +37 -0
  240. package/dist/packages/forge/src/fetcher/querystring.js +9 -0
  241. package/dist/packages/forge/src/files.js +17 -0
  242. package/dist/packages/forge/src/numbers/index.js +5 -0
  243. package/dist/packages/forge/src/strings/characters.js +3 -0
  244. package/dist/packages/forge/src/strings/diacritics.js +261 -0
  245. package/dist/packages/forge/src/strings/index.js +24 -0
  246. package/dist/packages/hooks/src/use-debounce.js +19 -0
  247. package/dist/packages/hooks/src/use-tooltip.js +27 -0
  248. package/dist/packages/ingots/src/address/api/form.js +12 -0
  249. package/dist/packages/ingots/src/address/config.json.js +16 -0
  250. package/dist/packages/ingots/src/address/index.js +117 -0
  251. package/dist/packages/ingots/src/address/index.module.css.js +7 -0
  252. package/dist/packages/ingots/src/address/service.js +41 -0
  253. package/dist/packages/ingots/src/backdrop/index.js +18 -0
  254. package/dist/packages/ingots/src/backdrop/index.module.css.js +7 -0
  255. package/dist/packages/ingots/src/button/index.js +56 -0
  256. package/dist/packages/ingots/src/button/index.module.css.js +7 -0
  257. package/dist/packages/ingots/src/checkbox/index.js +47 -0
  258. package/dist/packages/ingots/src/checkbox/index.module.css.js +7 -0
  259. package/dist/packages/ingots/src/date/erase/index.js +22 -0
  260. package/dist/packages/ingots/src/date/erase/index.module.css.js +7 -0
  261. package/dist/packages/ingots/src/date/input/index.js +113 -0
  262. package/dist/packages/ingots/src/date/input/index.module.css.js +7 -0
  263. package/dist/packages/ingots/src/date/picker/day/index.js +35 -0
  264. package/dist/packages/ingots/src/date/picker/day/index.module.css.js +7 -0
  265. package/dist/packages/ingots/src/date/picker/days/index.js +59 -0
  266. package/dist/packages/ingots/src/date/picker/days/index.module.css.js +7 -0
  267. package/dist/packages/ingots/src/date/picker/handle/index.js +40 -0
  268. package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +7 -0
  269. package/dist/packages/ingots/src/date/picker/index.js +154 -0
  270. package/dist/packages/ingots/src/date/picker/index.module.css.js +7 -0
  271. package/dist/packages/ingots/src/date/picker/menu/index.js +32 -0
  272. package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +7 -0
  273. package/dist/packages/ingots/src/date/picker/menu/item.js +30 -0
  274. package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +7 -0
  275. package/dist/packages/ingots/src/file/api/index.js +14 -0
  276. package/dist/packages/ingots/src/file/card/index.js +65 -0
  277. package/dist/packages/ingots/src/file/card/index.module.css.js +7 -0
  278. package/dist/packages/ingots/src/file/index.js +34 -0
  279. package/dist/packages/ingots/src/file/index.module.css.js +7 -0
  280. package/dist/packages/ingots/src/file/input/index.js +261 -0
  281. package/dist/packages/ingots/src/file/input/index.module.css.js +7 -0
  282. package/dist/packages/ingots/src/input/index.js +75 -0
  283. package/dist/packages/ingots/src/input/src/validation/index.js +3 -0
  284. package/dist/packages/ingots/src/loader/index.js +23 -0
  285. package/dist/packages/ingots/src/loader/index.module.css.js +7 -0
  286. package/dist/packages/ingots/src/loader/variants/spinner/index.js +31 -0
  287. package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +7 -0
  288. package/dist/packages/ingots/src/select/card/index.js +33 -0
  289. package/dist/packages/ingots/src/select/card/index.module.css.js +7 -0
  290. package/dist/packages/ingots/src/select/category/index.js +13 -0
  291. package/dist/packages/ingots/src/select/category/index.module.css.js +7 -0
  292. package/dist/packages/ingots/src/select/content/index.js +46 -0
  293. package/dist/packages/ingots/src/select/index.js +155 -0
  294. package/dist/packages/ingots/src/select/index.module.css.js +7 -0
  295. package/dist/packages/ingots/src/select/option/index.js +35 -0
  296. package/dist/packages/ingots/src/select/option/index.module.css.js +7 -0
  297. package/dist/packages/ingots/src/select/options/index.js +59 -0
  298. package/dist/packages/ingots/src/select/options/index.module.css.js +7 -0
  299. package/dist/packages/ingots/src/snackbar/context.js +9 -0
  300. package/dist/packages/ingots/src/tag/index.js +16 -0
  301. package/dist/packages/ingots/src/tag/index.module.css.js +7 -0
  302. package/dist/packages/ingots/src/text/index.js +92 -0
  303. package/dist/packages/ingots/src/text/index.module.css.js +7 -0
  304. package/dist/packages/ingots/src/textarea/index.js +62 -0
  305. package/dist/packages/ingots/src/textarea/index.module.css.js +7 -0
  306. package/dist/packages/ingots/src/toggle/index.js +43 -0
  307. package/dist/packages/ingots/src/toggle/index.module.css.js +7 -0
  308. package/dist/packages/runes/src/icon.js +16 -0
  309. package/dist/packages/runes/src/paths/alert.js +18 -0
  310. package/dist/packages/runes/src/paths/arrow/path.js +18 -0
  311. package/dist/packages/runes/src/paths/calendar.js +18 -0
  312. package/dist/packages/runes/src/paths/check/fill.js +18 -0
  313. package/dist/packages/runes/src/paths/check/regular.js +18 -0
  314. package/dist/packages/runes/src/paths/chevron/down.js +18 -0
  315. package/dist/packages/runes/src/paths/chevron/left.js +18 -0
  316. package/dist/packages/runes/src/paths/chevron/right.js +18 -0
  317. package/dist/packages/runes/src/paths/click.js +18 -0
  318. package/dist/packages/runes/src/paths/cross/regular.js +16 -0
  319. package/dist/packages/runes/src/paths/download.js +18 -0
  320. package/dist/packages/runes/src/paths/file.js +18 -0
  321. package/dist/packages/runes/src/paths/link.js +23 -0
  322. package/dist/packages/wares/src/authentication/index.js +11 -0
  323. package/dist/waiter/index.js +41 -2
  324. package/dist/waiter/index.module.css.js +7 -0
  325. package/package.json +6 -6
  326. package/dist/export/index.js.LICENSE.txt +0 -9
  327. package/dist/export.js +0 -2
  328. package/dist/export.js.LICENSE.txt +0 -9
  329. package/dist/form/buttons/index.js.LICENSE.txt +0 -9
  330. package/dist/form/caption/index.js.LICENSE.txt +0 -9
  331. package/dist/form/description/index.js.LICENSE.txt +0 -9
  332. package/dist/form/email/index.js.LICENSE.txt +0 -9
  333. package/dist/form/index.js.LICENSE.txt +0 -9
  334. package/dist/form/inputs/index.js.LICENSE.txt +0 -9
  335. package/dist/form/password/index.js.LICENSE.txt +0 -9
  336. package/dist/form.js +0 -2
  337. package/dist/form.js.LICENSE.txt +0 -9
  338. package/dist/waiter/index.js.LICENSE.txt +0 -9
  339. package/dist/waiter.js +0 -2
  340. package/dist/waiter.js.LICENSE.txt +0 -9
@@ -0,0 +1,50 @@
1
+ import { __module as unstableRethrow_server } from '../../../../../_virtual/unstable-rethrow.server.js';
2
+ import { __require as requireDynamicRenderingUtils } from '../../server/dynamic-rendering-utils.js';
3
+ import { __require as requireIsPostpone } from '../../server/lib/router-utils/is-postpone.js';
4
+ import { __require as requireBailoutToCsr } from '../../shared/lib/lazy-dynamic/bailout-to-csr.js';
5
+ import { __require as requireIsNextRouterError } from './is-next-router-error.js';
6
+ import { __require as requireDynamicRendering } from '../../server/app-render/dynamic-rendering.js';
7
+ import { __require as requireHooksServerContext } from './hooks-server-context.js';
8
+
9
+ var hasRequiredUnstableRethrow_server;
10
+
11
+ function requireUnstableRethrow_server () {
12
+ if (hasRequiredUnstableRethrow_server) return unstableRethrow_server.exports;
13
+ hasRequiredUnstableRethrow_server = 1;
14
+ (function (module, exports$1) {
15
+
16
+ Object.defineProperty(exports$1, "__esModule", {
17
+ value: true
18
+ });
19
+ Object.defineProperty(exports$1, "unstable_rethrow", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return unstable_rethrow;
23
+ }
24
+ });
25
+ const _dynamicrenderingutils = requireDynamicRenderingUtils();
26
+ const _ispostpone = requireIsPostpone();
27
+ const _bailouttocsr = requireBailoutToCsr();
28
+ const _isnextroutererror = requireIsNextRouterError();
29
+ const _dynamicrendering = requireDynamicRendering();
30
+ const _hooksservercontext = requireHooksServerContext();
31
+ function unstable_rethrow(error) {
32
+ if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr.isBailoutToCSRError)(error) || (0, _hooksservercontext.isDynamicServerError)(error) || (0, _dynamicrendering.isDynamicPostpone)(error) || (0, _ispostpone.isPostpone)(error) || (0, _dynamicrenderingutils.isHangingPromiseRejectionError)(error) || (0, _dynamicrendering.isPrerenderInterruptedError)(error)) {
33
+ throw error;
34
+ }
35
+ if (error instanceof Error && 'cause' in error) {
36
+ unstable_rethrow(error.cause);
37
+ }
38
+ }
39
+ if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
40
+ Object.defineProperty(exports$1.default, '__esModule', {
41
+ value: true
42
+ });
43
+ Object.assign(exports$1.default, exports$1);
44
+ module.exports = exports$1.default;
45
+ }
46
+ } (unstableRethrow_server, unstableRethrow_server.exports));
47
+ return unstableRethrow_server.exports;
48
+ }
49
+
50
+ export { requireUnstableRethrow_server as __require };
@@ -0,0 +1,36 @@
1
+ import { __module as detectDomainLocale } from '../../../../_virtual/detect-domain-locale.js';
2
+ import { __require as requireDetectDomainLocale$1 } from '../shared/lib/i18n/detect-domain-locale.js';
3
+
4
+ var hasRequiredDetectDomainLocale;
5
+
6
+ function requireDetectDomainLocale () {
7
+ if (hasRequiredDetectDomainLocale) return detectDomainLocale.exports;
8
+ hasRequiredDetectDomainLocale = 1;
9
+ (function (module, exports$1) {
10
+
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports$1, "detectDomainLocale", {
15
+ enumerable: true,
16
+ get: function () {
17
+ return detectDomainLocale;
18
+ }
19
+ });
20
+ const detectDomainLocale = (...args) => {
21
+ if (process.env.__NEXT_I18N_SUPPORT) {
22
+ return requireDetectDomainLocale$1().detectDomainLocale(...args);
23
+ }
24
+ };
25
+ if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
26
+ Object.defineProperty(exports$1.default, '__esModule', {
27
+ value: true
28
+ });
29
+ Object.assign(exports$1.default, exports$1);
30
+ module.exports = exports$1.default;
31
+ }
32
+ } (detectDomainLocale, detectDomainLocale.exports));
33
+ return detectDomainLocale.exports;
34
+ }
35
+
36
+ export { requireDetectDomainLocale as __require };
@@ -0,0 +1,51 @@
1
+ import { __module as getDomainLocale } from '../../../../_virtual/get-domain-locale.js';
2
+ import { __require as requireNormalizeTrailingSlash } from './normalize-trailing-slash.js';
3
+ import { __require as requireNormalizeLocalePath } from './normalize-locale-path.js';
4
+ import { __require as requireDetectDomainLocale } from './detect-domain-locale.js';
5
+
6
+ var hasRequiredGetDomainLocale;
7
+
8
+ function requireGetDomainLocale () {
9
+ if (hasRequiredGetDomainLocale) return getDomainLocale.exports;
10
+ hasRequiredGetDomainLocale = 1;
11
+ (function (module, exports$1) {
12
+
13
+ Object.defineProperty(exports$1, "__esModule", {
14
+ value: true
15
+ });
16
+ Object.defineProperty(exports$1, "getDomainLocale", {
17
+ enumerable: true,
18
+ get: function () {
19
+ return getDomainLocale;
20
+ }
21
+ });
22
+ const _normalizetrailingslash = requireNormalizeTrailingSlash();
23
+ const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
24
+ function getDomainLocale(path, locale, locales, domainLocales) {
25
+ if (process.env.__NEXT_I18N_SUPPORT) {
26
+ const normalizeLocalePath = requireNormalizeLocalePath().normalizeLocalePath;
27
+ const detectDomainLocale = requireDetectDomainLocale().detectDomainLocale;
28
+ const target = locale || normalizeLocalePath(path, locales).detectedLocale;
29
+ const domain = detectDomainLocale(domainLocales, undefined, target);
30
+ if (domain) {
31
+ const proto = `http${domain.http ? '' : 's'}://`;
32
+ const finalLocale = target === domain.defaultLocale ? '' : `/${target}`;
33
+ return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
34
+ }
35
+ return false;
36
+ } else {
37
+ return false;
38
+ }
39
+ }
40
+ if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
41
+ Object.defineProperty(exports$1.default, '__esModule', {
42
+ value: true
43
+ });
44
+ Object.assign(exports$1.default, exports$1);
45
+ module.exports = exports$1.default;
46
+ }
47
+ } (getDomainLocale, getDomainLocale.exports));
48
+ return getDomainLocale.exports;
49
+ }
50
+
51
+ export { requireGetDomainLocale as __require };
@@ -0,0 +1,36 @@
1
+ import { __module as hasBasePath } from '../../../../_virtual/has-base-path.js';
2
+ import { __require as requirePathHasPrefix } from '../shared/lib/router/utils/path-has-prefix.js';
3
+
4
+ var hasRequiredHasBasePath;
5
+
6
+ function requireHasBasePath () {
7
+ if (hasRequiredHasBasePath) return hasBasePath.exports;
8
+ hasRequiredHasBasePath = 1;
9
+ (function (module, exports$1) {
10
+
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports$1, "hasBasePath", {
15
+ enumerable: true,
16
+ get: function () {
17
+ return hasBasePath;
18
+ }
19
+ });
20
+ const _pathhasprefix = requirePathHasPrefix();
21
+ const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
22
+ function hasBasePath(path) {
23
+ return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
24
+ }
25
+ if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
26
+ Object.defineProperty(exports$1.default, '__esModule', {
27
+ value: true
28
+ });
29
+ Object.assign(exports$1.default, exports$1);
30
+ module.exports = exports$1.default;
31
+ }
32
+ } (hasBasePath, hasBasePath.exports));
33
+ return hasBasePath.exports;
34
+ }
35
+
36
+ export { requireHasBasePath as __require };
@@ -0,0 +1,343 @@
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 };