@flipdish/portal-library 7.12.0 → 8.0.0

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 (333) hide show
  1. package/README.md +22 -4
  2. package/dist/components/atoms/Tab/index.cjs.js +1 -1
  3. package/dist/components/atoms/Tab/index.cjs.js.map +1 -1
  4. package/dist/components/atoms/Tab/index.d.ts +4 -1
  5. package/dist/components/atoms/Tab/index.js +1 -1
  6. package/dist/components/atoms/Tab/index.js.map +1 -1
  7. package/dist/components/atoms/Tag/index.cjs.js +1 -1
  8. package/dist/components/atoms/Tag/index.cjs.js.map +1 -1
  9. package/dist/components/atoms/Tag/index.d.ts +3 -7
  10. package/dist/components/atoms/Tag/index.js +1 -1
  11. package/dist/components/atoms/Tag/index.js.map +1 -1
  12. package/dist/components/atoms/TextArea/index.cjs.js.map +1 -1
  13. package/dist/components/atoms/TextArea/index.d.ts +1 -1
  14. package/dist/components/atoms/TextArea/index.js.map +1 -1
  15. package/dist/components/atoms/TextField/index.cjs.js +1 -1
  16. package/dist/components/atoms/TextField/index.cjs.js.map +1 -1
  17. package/dist/components/atoms/TextField/index.d.ts +5 -22
  18. package/dist/components/atoms/TextField/index.js +1 -1
  19. package/dist/components/atoms/TextField/index.js.map +1 -1
  20. package/dist/components/molecules/AlertGlobal/index.cjs.js +1 -1
  21. package/dist/components/molecules/AlertGlobal/index.cjs.js.map +1 -1
  22. package/dist/components/molecules/AlertGlobal/index.d.ts +1 -8
  23. package/dist/components/molecules/AlertGlobal/index.js +1 -1
  24. package/dist/components/molecules/AlertGlobal/index.js.map +1 -1
  25. package/dist/components/molecules/Autocomplete/index.cjs.js +1 -1
  26. package/dist/components/molecules/Autocomplete/index.cjs.js.map +1 -1
  27. package/dist/components/molecules/Autocomplete/index.d.ts +1 -16
  28. package/dist/components/molecules/Autocomplete/index.js +1 -1
  29. package/dist/components/molecules/Autocomplete/index.js.map +1 -1
  30. package/dist/components/molecules/Pagination/index.cjs.js +1 -1
  31. package/dist/components/molecules/Pagination/index.cjs.js.map +1 -1
  32. package/dist/components/molecules/Pagination/index.d.ts +1 -12
  33. package/dist/components/molecules/Pagination/index.js +1 -1
  34. package/dist/components/molecules/Pagination/index.js.map +1 -1
  35. package/dist/components/molecules/QuantitySelector/index.cjs.js +1 -1
  36. package/dist/components/molecules/QuantitySelector/index.cjs.js.map +1 -1
  37. package/dist/components/molecules/QuantitySelector/index.d.ts +1 -7
  38. package/dist/components/molecules/QuantitySelector/index.js +1 -1
  39. package/dist/components/molecules/QuantitySelector/index.js.map +1 -1
  40. package/dist/components/molecules/Rating/index.cjs.js +1 -1
  41. package/dist/components/molecules/Rating/index.cjs.js.map +1 -1
  42. package/dist/components/molecules/Rating/index.d.ts +0 -15
  43. package/dist/components/molecules/Rating/index.js +1 -1
  44. package/dist/components/molecules/Rating/index.js.map +1 -1
  45. package/dist/components/molecules/SearchInput/index.cjs.js +1 -1
  46. package/dist/components/molecules/SearchInput/index.cjs.js.map +1 -1
  47. package/dist/components/molecules/SearchInput/index.d.ts +1 -5
  48. package/dist/components/molecules/SearchInput/index.js +1 -1
  49. package/dist/components/molecules/SearchInput/index.js.map +1 -1
  50. package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.cjs.js +2 -0
  51. package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.cjs.js.map +1 -0
  52. package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.d.ts +11 -0
  53. package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.js +2 -0
  54. package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.js.map +1 -0
  55. package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js +1 -1
  56. package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js.map +1 -1
  57. package/dist/components/organisms/AssetManager/LibraryTabContent/index.d.ts +10 -10
  58. package/dist/components/organisms/AssetManager/LibraryTabContent/index.js +1 -1
  59. package/dist/components/organisms/AssetManager/LibraryTabContent/index.js.map +1 -1
  60. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js +1 -1
  61. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -1
  62. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js +1 -1
  63. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -1
  64. package/dist/components/organisms/AssetManager/assets.queryKeys.cjs.js +2 -0
  65. package/dist/components/organisms/AssetManager/assets.queryKeys.cjs.js.map +1 -0
  66. package/dist/components/organisms/AssetManager/assets.queryKeys.d.ts +13 -0
  67. package/dist/components/organisms/AssetManager/assets.queryKeys.js +2 -0
  68. package/dist/components/organisms/AssetManager/assets.queryKeys.js.map +1 -0
  69. package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js +1 -1
  70. package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js.map +1 -1
  71. package/dist/components/organisms/AssetManager/hooks/useGetAssets.js +1 -1
  72. package/dist/components/organisms/AssetManager/hooks/useGetAssets.js.map +1 -1
  73. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js +1 -1
  74. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js.map +1 -1
  75. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.d.ts +1 -1
  76. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js +1 -1
  77. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js.map +1 -1
  78. package/dist/components/organisms/AssetManager/index.cjs.js +1 -1
  79. package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
  80. package/dist/components/organisms/AssetManager/index.js +1 -1
  81. package/dist/components/organisms/AssetManager/index.js.map +1 -1
  82. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +1 -1
  83. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
  84. package/dist/components/organisms/AssetManager/services/asset.service.d.ts +1 -3
  85. package/dist/components/organisms/AssetManager/services/asset.service.js +1 -1
  86. package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
  87. package/dist/components/organisms/AssetManager/types/index.cjs.js.map +1 -1
  88. package/dist/components/organisms/AssetManager/types/index.d.ts +4 -9
  89. package/dist/components/organisms/AssetManager/types/index.js.map +1 -1
  90. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js +1 -1
  91. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
  92. package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
  93. package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
  94. package/dist/components/organisms/FileUpload/components/FileItem.cjs.js +1 -1
  95. package/dist/components/organisms/FileUpload/components/FileItem.cjs.js.map +1 -1
  96. package/dist/components/organisms/FileUpload/components/FileItem.js +1 -1
  97. package/dist/components/organisms/FileUpload/components/FileItem.js.map +1 -1
  98. package/dist/components/organisms/Heading/Heading.cjs.js +1 -1
  99. package/dist/components/organisms/Heading/Heading.cjs.js.map +1 -1
  100. package/dist/components/organisms/Heading/Heading.d.ts +0 -1
  101. package/dist/components/organisms/Heading/Heading.js +1 -1
  102. package/dist/components/organisms/Heading/Heading.js.map +1 -1
  103. package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.cjs.js +2 -2
  104. package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.cjs.js.map +1 -1
  105. package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.js +2 -2
  106. package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.js.map +1 -1
  107. package/dist/localization/de.json.cjs.js +1 -1
  108. package/dist/localization/de.json.js +1 -1
  109. package/dist/localization/dev-lang.json.cjs.js +1 -1
  110. package/dist/localization/dev-lang.json.js +1 -1
  111. package/dist/localization/en-US.json.cjs.js +1 -1
  112. package/dist/localization/en-US.json.js +1 -1
  113. package/dist/localization/en.json.cjs.js +1 -1
  114. package/dist/localization/en.json.d.ts +186 -1
  115. package/dist/localization/en.json.js +1 -1
  116. package/dist/localization/es-MX.json.cjs.js +1 -1
  117. package/dist/localization/es-MX.json.js +1 -1
  118. package/dist/localization/es.json.cjs.js +1 -1
  119. package/dist/localization/es.json.js +1 -1
  120. package/dist/localization/fr.json.cjs.js +1 -1
  121. package/dist/localization/fr.json.js +1 -1
  122. package/dist/localization/it.json.cjs.js +1 -1
  123. package/dist/localization/it.json.js +1 -1
  124. package/dist/localization/nl.json.cjs.js +1 -1
  125. package/dist/localization/nl.json.js +1 -1
  126. package/dist/localization/pt.json.cjs.js +1 -1
  127. package/dist/localization/pt.json.js +1 -1
  128. package/dist/mocks/msw/handlers.cjs.js +1 -1
  129. package/dist/mocks/msw/handlers.d.ts +1 -1
  130. package/dist/mocks/msw/handlers.js +1 -1
  131. package/dist/mocks/msw/server.cjs.js +1 -1
  132. package/dist/mocks/msw/server.d.ts +1 -1
  133. package/dist/mocks/msw/server.js +1 -1
  134. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse-DC89RDb7.d.d.ts → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts} +7 -1
  135. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  136. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  137. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  138. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +1 -1
  139. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  140. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  141. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +1 -1
  142. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  143. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  144. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  145. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  146. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  147. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  148. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  149. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  150. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  151. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  152. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  153. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  154. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  155. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  156. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  157. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -0
  158. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js.map} +1 -1
  159. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  160. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  161. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  162. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  163. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  164. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  165. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  166. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  167. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  168. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  169. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  170. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  171. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  172. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  173. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  174. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  175. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  176. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  177. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  178. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  179. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  180. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  181. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  182. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  183. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  184. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  185. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  186. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  187. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  188. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  189. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  190. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  191. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  192. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  193. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  194. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  195. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  196. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  197. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  198. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  199. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  200. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  201. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  202. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  203. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  204. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  205. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  206. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  207. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  208. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  209. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  210. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  211. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  212. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  213. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  214. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +2 -2
  215. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  216. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  217. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  218. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  219. package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
  220. package/dist/providers/TranslationProvider.cjs.js.map +1 -1
  221. package/dist/providers/TranslationProvider.d.ts +6 -2
  222. package/dist/providers/TranslationProvider.js +1 -1
  223. package/dist/providers/TranslationProvider.js.map +1 -1
  224. package/dist/utilities/renderUtilities.cjs.js +1 -1
  225. package/dist/utilities/renderUtilities.cjs.js.map +1 -1
  226. package/dist/utilities/renderUtilities.d.ts +14 -1
  227. package/dist/utilities/renderUtilities.js +1 -1
  228. package/dist/utilities/renderUtilities.js.map +1 -1
  229. package/package.json +1 -1
  230. package/dist/node_modules/.pnpm/msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js.map +0 -1
  231. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
  232. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
  233. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  234. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  235. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  236. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  237. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  238. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  239. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
  240. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  241. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  242. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  243. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  244. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  245. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  246. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  247. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  248. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  249. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  250. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  251. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  252. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  253. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  254. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  255. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  256. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  257. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  258. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  259. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  260. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  261. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  262. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  263. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  264. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  265. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  266. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  267. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  268. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  269. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  270. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  271. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  272. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  273. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  274. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  275. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  276. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  277. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  278. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  279. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  280. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  281. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  282. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  283. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  284. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  285. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  286. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  287. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  288. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  289. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  290. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
  291. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  292. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
  293. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  294. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  295. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  296. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  297. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  298. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  299. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  300. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  301. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  302. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  303. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  304. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  305. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  306. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  307. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  308. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  309. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  310. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  311. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  312. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +0 -0
  313. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +0 -0
  314. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
  315. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
  316. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  317. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  318. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  319. /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
  320. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/if.d.d.ts +0 -0
  321. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/internal/object.d.d.ts +0 -0
  322. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/internal/type.d.d.ts +0 -0
  323. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-any.d.d.ts +0 -0
  324. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-never.d.d.ts +0 -0
  325. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-optional-key-of.d.d.ts +0 -0
  326. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/merge.d.d.ts +0 -0
  327. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/omit-index-signature.d.d.ts +0 -0
  328. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/optional-keys-of.d.d.ts +0 -0
  329. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/partial-deep.d.d.ts +0 -0
  330. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/pick-index-signature.d.d.ts +0 -0
  331. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/primitive.d.d.ts +0 -0
  332. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/required-keys-of.d.d.ts +0 -0
  333. /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/simplify.d.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"cookie.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.4_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/cookie.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js\nvar require_dist = __commonJS({\n \"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js\"(exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.parse = parse2;\n exports.serialize = serialize2;\n var cookieNameRegExp = /^[\\u0021-\\u003A\\u003C\\u003E-\\u007E]+$/;\n var cookieValueRegExp = /^[\\u0021-\\u003A\\u003C-\\u007E]*$/;\n var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;\n var pathValueRegExp = /^[\\u0020-\\u003A\\u003D-\\u007E]*$/;\n var __toString = Object.prototype.toString;\n var NullObject = /* @__PURE__ */ (() => {\n const C = function() {\n };\n C.prototype = /* @__PURE__ */ Object.create(null);\n return C;\n })();\n function parse2(str, options) {\n const obj = new NullObject();\n const len = str.length;\n if (len < 2)\n return obj;\n const dec = options?.decode || decode;\n let index = 0;\n do {\n const eqIdx = str.indexOf(\"=\", index);\n if (eqIdx === -1)\n break;\n const colonIdx = str.indexOf(\";\", index);\n const endIdx = colonIdx === -1 ? len : colonIdx;\n if (eqIdx > endIdx) {\n index = str.lastIndexOf(\";\", eqIdx - 1) + 1;\n continue;\n }\n const keyStartIdx = startIndex(str, index, eqIdx);\n const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);\n const key = str.slice(keyStartIdx, keyEndIdx);\n if (obj[key] === void 0) {\n let valStartIdx = startIndex(str, eqIdx + 1, endIdx);\n let valEndIdx = endIndex(str, endIdx, valStartIdx);\n const value = dec(str.slice(valStartIdx, valEndIdx));\n obj[key] = value;\n }\n index = endIdx + 1;\n } while (index < len);\n return obj;\n }\n function startIndex(str, index, max) {\n do {\n const code = str.charCodeAt(index);\n if (code !== 32 && code !== 9)\n return index;\n } while (++index < max);\n return max;\n }\n function endIndex(str, index, min) {\n while (index > min) {\n const code = str.charCodeAt(--index);\n if (code !== 32 && code !== 9)\n return index + 1;\n }\n return min;\n }\n function serialize2(name, val, options) {\n const enc = options?.encode || encodeURIComponent;\n if (!cookieNameRegExp.test(name)) {\n throw new TypeError(`argument name is invalid: ${name}`);\n }\n const value = enc(val);\n if (!cookieValueRegExp.test(value)) {\n throw new TypeError(`argument val is invalid: ${val}`);\n }\n let str = name + \"=\" + value;\n if (!options)\n return str;\n if (options.maxAge !== void 0) {\n if (!Number.isInteger(options.maxAge)) {\n throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);\n }\n str += \"; Max-Age=\" + options.maxAge;\n }\n if (options.domain) {\n if (!domainValueRegExp.test(options.domain)) {\n throw new TypeError(`option domain is invalid: ${options.domain}`);\n }\n str += \"; Domain=\" + options.domain;\n }\n if (options.path) {\n if (!pathValueRegExp.test(options.path)) {\n throw new TypeError(`option path is invalid: ${options.path}`);\n }\n str += \"; Path=\" + options.path;\n }\n if (options.expires) {\n if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) {\n throw new TypeError(`option expires is invalid: ${options.expires}`);\n }\n str += \"; Expires=\" + options.expires.toUTCString();\n }\n if (options.httpOnly) {\n str += \"; HttpOnly\";\n }\n if (options.secure) {\n str += \"; Secure\";\n }\n if (options.partitioned) {\n str += \"; Partitioned\";\n }\n if (options.priority) {\n const priority = typeof options.priority === \"string\" ? options.priority.toLowerCase() : void 0;\n switch (priority) {\n case \"low\":\n str += \"; Priority=Low\";\n break;\n case \"medium\":\n str += \"; Priority=Medium\";\n break;\n case \"high\":\n str += \"; Priority=High\";\n break;\n default:\n throw new TypeError(`option priority is invalid: ${options.priority}`);\n }\n }\n if (options.sameSite) {\n const sameSite = typeof options.sameSite === \"string\" ? options.sameSite.toLowerCase() : options.sameSite;\n switch (sameSite) {\n case true:\n case \"strict\":\n str += \"; SameSite=Strict\";\n break;\n case \"lax\":\n str += \"; SameSite=Lax\";\n break;\n case \"none\":\n str += \"; SameSite=None\";\n break;\n default:\n throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);\n }\n }\n return str;\n }\n function decode(str) {\n if (str.indexOf(\"%\") === -1)\n return str;\n try {\n return decodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n function isDate(val) {\n return __toString.call(val) === \"[object Date]\";\n }\n }\n});\n\n// src/shims/cookie.ts\nvar allCookie = __toESM(require_dist(), 1);\nvar cookie = allCookie.default || allCookie;\nvar parse = cookie.parse;\nvar serialize = cookie.serialize;\nvar cookie_default = cookie;\nexport {\n cookie_default as default,\n parse,\n serialize\n};\n"],"names":["cb","mod","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","allCookie","isNodeMode","target","to","from","except","desc","key","call","get","enumerable","__copyProps","value","__toESM","exports","parse","str","options","obj","NullObject","len","length","dec","decode","index","eqIdx","indexOf","colonIdx","endIdx","lastIndexOf","keyStartIdx","startIndex","keyEndIdx","endIndex","slice","valStartIdx","valEndIdx","serialize","name","val","enc","encode","encodeURIComponent","cookieNameRegExp","test","TypeError","cookieValueRegExp","maxAge","Number","isInteger","domain","domainValueRegExp","path","pathValueRegExp","expires","__toString","isDate","isFinite","valueOf","toUTCString","httpOnly","secure","partitioned","priority","toLowerCase","sameSite","toString","C","max","code","charCodeAt","min","decodeURIComponent","e","cookie","default"],"mappings":"AAAA,IAMkBA,EAAIC,EANlBC,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,OAAOO,oBAC3BC,EAAeR,OAAOS,eACtBC,EAAeV,OAAOW,UAAUC,eAqLhCC,EAzKU,EAACf,EAAKgB,EAAYC,KAAYA,EAAgB,MAAPjB,EAAcC,EAASS,EAAaV,IAAQ,CAAA,EAR/E,EAACkB,EAAIC,EAAMC,EAAQC,KACnC,GAAIF,GAAwB,iBAATA,GAAqC,mBAATA,EAC7C,IAAK,IAAIG,KAAOd,EAAkBW,GAC3BP,EAAaW,KAAKL,EAAII,IAAQA,IAAQF,GACzChB,EAAUc,EAAII,EAAK,CAAEE,IAAK,IAAML,EAAKG,GAAMG,aAAcJ,EAAOf,EAAiBa,EAAMG,KAASD,EAAKI,aAE3G,OAAOP,GAE4FQ,CAK3DtB,EAAUa,EAAQ,UAAW,CAAEU,MAAO3B,EAAKyB,YAAY,IAC/FzB,IAmKc4B,EApLE7B,EAqBY,CAC5B,oEAAoE8B,GAElE3B,OAAOG,eAAewB,EAAS,aAAc,CAAEF,OAAO,IACtDE,EAAQC,MAaR,SAAgBC,EAAKC,GACnB,MAAMC,EAAM,IAAIC,EACVC,EAAMJ,EAAIK,OAChB,GAAID,EAAM,EACR,OAAOF,EACT,MAAMI,EAAML,GAASM,QAAUA,EAC/B,IAAIC,EAAQ,EACZ,EAAG,CACD,MAAMC,EAAQT,E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ACD,MAAMC,EAAOrD,EAAIsD,WAAW9C,GAC5B,GAAa,KAAT6C,GAAwB,IAATA,EACjB,OAAO7C,CACX,SAAWA,EAAQ4C,GACnB,OAAOA,CACT,CACA,SAASnC,EAASjB,EAAKQ,EAAO+C,GAC5B,KAAO/C,EAAQ+C,GAAK,CAClB,MAAMF,EAAOrD,EAAIsD,aAAa9C,GAC9B,GAAa,KAAT6C,GAAwB,IAATA,EACjB,OAAO7C,EAAQ,CACnB,CACA,OAAO+C,CACT,CAiFA,SAAShD,EAAOP,GACd,IAAyB,IAArBA,EAAIU,QAAQ,KACd,OAAOV,EACT,IACE,OAAOwD,mBAAmBxD,EAC5B,CAAE,MAAOyD,GACP,OAAOzD,CACT,CACF,CAIF,GAhL4B,WAC5B,OAAO/B,IAAO,EAAID,EAAGS,EAAkBT,GAAI,MAAMC,EAAM,CAAE6B,QAAS,KAAMA,QAAS7B,GAAMA,EAAI6B,OAC7F,MAmLI4D,EAAS1E,EAAU2E,SAAW3E,EAC9Be,EAAQ2D,EAAO3D,MACfsB,EAAYqC,EAAOrC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"cookie.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/cookie.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js\nvar require_dist = __commonJS({\n \"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js\"(exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.parse = parse2;\n exports.serialize = serialize2;\n var cookieNameRegExp = /^[\\u0021-\\u003A\\u003C\\u003E-\\u007E]+$/;\n var cookieValueRegExp = /^[\\u0021-\\u003A\\u003C-\\u007E]*$/;\n var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;\n var pathValueRegExp = /^[\\u0020-\\u003A\\u003D-\\u007E]*$/;\n var __toString = Object.prototype.toString;\n var NullObject = /* @__PURE__ */ (() => {\n const C = function() {\n };\n C.prototype = /* @__PURE__ */ Object.create(null);\n return C;\n })();\n function parse2(str, options) {\n const obj = new NullObject();\n const len = str.length;\n if (len < 2)\n return obj;\n const dec = options?.decode || decode;\n let index = 0;\n do {\n const eqIdx = str.indexOf(\"=\", index);\n if (eqIdx === -1)\n break;\n const colonIdx = str.indexOf(\";\", index);\n const endIdx = colonIdx === -1 ? len : colonIdx;\n if (eqIdx > endIdx) {\n index = str.lastIndexOf(\";\", eqIdx - 1) + 1;\n continue;\n }\n const keyStartIdx = startIndex(str, index, eqIdx);\n const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);\n const key = str.slice(keyStartIdx, keyEndIdx);\n if (obj[key] === void 0) {\n let valStartIdx = startIndex(str, eqIdx + 1, endIdx);\n let valEndIdx = endIndex(str, endIdx, valStartIdx);\n const value = dec(str.slice(valStartIdx, valEndIdx));\n obj[key] = value;\n }\n index = endIdx + 1;\n } while (index < len);\n return obj;\n }\n function startIndex(str, index, max) {\n do {\n const code = str.charCodeAt(index);\n if (code !== 32 && code !== 9)\n return index;\n } while (++index < max);\n return max;\n }\n function endIndex(str, index, min) {\n while (index > min) {\n const code = str.charCodeAt(--index);\n if (code !== 32 && code !== 9)\n return index + 1;\n }\n return min;\n }\n function serialize2(name, val, options) {\n const enc = options?.encode || encodeURIComponent;\n if (!cookieNameRegExp.test(name)) {\n throw new TypeError(`argument name is invalid: ${name}`);\n }\n const value = enc(val);\n if (!cookieValueRegExp.test(value)) {\n throw new TypeError(`argument val is invalid: ${val}`);\n }\n let str = name + \"=\" + value;\n if (!options)\n return str;\n if (options.maxAge !== void 0) {\n if (!Number.isInteger(options.maxAge)) {\n throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);\n }\n str += \"; Max-Age=\" + options.maxAge;\n }\n if (options.domain) {\n if (!domainValueRegExp.test(options.domain)) {\n throw new TypeError(`option domain is invalid: ${options.domain}`);\n }\n str += \"; Domain=\" + options.domain;\n }\n if (options.path) {\n if (!pathValueRegExp.test(options.path)) {\n throw new TypeError(`option path is invalid: ${options.path}`);\n }\n str += \"; Path=\" + options.path;\n }\n if (options.expires) {\n if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) {\n throw new TypeError(`option expires is invalid: ${options.expires}`);\n }\n str += \"; Expires=\" + options.expires.toUTCString();\n }\n if (options.httpOnly) {\n str += \"; HttpOnly\";\n }\n if (options.secure) {\n str += \"; Secure\";\n }\n if (options.partitioned) {\n str += \"; Partitioned\";\n }\n if (options.priority) {\n const priority = typeof options.priority === \"string\" ? options.priority.toLowerCase() : void 0;\n switch (priority) {\n case \"low\":\n str += \"; Priority=Low\";\n break;\n case \"medium\":\n str += \"; Priority=Medium\";\n break;\n case \"high\":\n str += \"; Priority=High\";\n break;\n default:\n throw new TypeError(`option priority is invalid: ${options.priority}`);\n }\n }\n if (options.sameSite) {\n const sameSite = typeof options.sameSite === \"string\" ? options.sameSite.toLowerCase() : options.sameSite;\n switch (sameSite) {\n case true:\n case \"strict\":\n str += \"; SameSite=Strict\";\n break;\n case \"lax\":\n str += \"; SameSite=Lax\";\n break;\n case \"none\":\n str += \"; SameSite=None\";\n break;\n default:\n throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);\n }\n }\n return str;\n }\n function decode(str) {\n if (str.indexOf(\"%\") === -1)\n return str;\n try {\n return decodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n function isDate(val) {\n return __toString.call(val) === \"[object Date]\";\n }\n }\n});\n\n// src/shims/cookie.ts\nvar allCookie = __toESM(require_dist(), 1);\nvar cookie = allCookie.default || allCookie;\nvar parse = cookie.parse;\nvar serialize = cookie.serialize;\nvar cookie_default = cookie;\nexport {\n cookie_default as default,\n parse,\n serialize\n};\n"],"names":["cb","mod","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","allCookie","isNodeMode","target","to","from","except","desc","key","call","get","enumerable","__copyProps","value","__toESM","exports","parse","str","options","obj","NullObject","len","length","dec","decode","index","eqIdx","indexOf","colonIdx","endIdx","lastIndexOf","keyStartIdx","startIndex","keyEndIdx","endIndex","slice","valStartIdx","valEndIdx","serialize","name","val","enc","encode","encodeURIComponent","cookieNameRegExp","test","TypeError","cookieValueRegExp","maxAge","Number","isInteger","domain","domainValueRegExp","path","pathValueRegExp","expires","__toString","isDate","isFinite","valueOf","toUTCString","httpOnly","secure","partitioned","priority","toLowerCase","sameSite","toString","C","max","code","charCodeAt","min","decodeURIComponent","e","cookie","default"],"mappings":"AAAA,IAMkBA,EAAIC,EANlBC,EAAWC,OAAO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Q,KACd,OAAOV,EACT,IACE,OAAOwD,mBAAmBxD,EAC5B,CAAE,MAAOyD,GACP,OAAOzD,CACT,CACF,CAIF,GAhL4B,WAC5B,OAAO/B,IAAO,EAAID,EAAGS,EAAkBT,GAAI,MAAMC,EAAM,CAAE6B,QAAS,KAAMA,QAAS7B,GAAMA,EAAI6B,OAC7F,MAmLI4D,EAAS1E,EAAU2E,SAAW3E,EAC9Be,EAAQ2D,EAAO3D,MACfsB,EAAYqC,EAAOrC","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"statuses.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.4_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/statuses.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\nvar require_codes = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\"(exports, module) {\n module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"103\": \"Early Hints\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a Teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Too Early\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n };\n }\n});\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\nvar require_statuses = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\"(exports, module) {\n \"use strict\";\n var codes = require_codes();\n module.exports = status;\n status.message = codes;\n status.code = createMessageToStatusCodeMap(codes);\n status.codes = createStatusCodeList(codes);\n status.redirect = {\n 300: true,\n 301: true,\n 302: true,\n 303: true,\n 305: true,\n 307: true,\n 308: true\n };\n status.empty = {\n 204: true,\n 205: true,\n 304: true\n };\n status.retry = {\n 502: true,\n 503: true,\n 504: true\n };\n function createMessageToStatusCodeMap(codes2) {\n var map = {};\n Object.keys(codes2).forEach(function forEachCode(code) {\n var message2 = codes2[code];\n var status2 = Number(code);\n map[message2.toLowerCase()] = status2;\n });\n return map;\n }\n function createStatusCodeList(codes2) {\n return Object.keys(codes2).map(function mapCode(code) {\n return Number(code);\n });\n }\n function getStatusCode(message2) {\n var msg = message2.toLowerCase();\n if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {\n throw new Error('invalid status message: \"' + message2 + '\"');\n }\n return status.code[msg];\n }\n function getStatusMessage(code) {\n if (!Object.prototype.hasOwnProperty.call(status.message, code)) {\n throw new Error(\"invalid status code: \" + code);\n }\n return status.message[code];\n }\n function status(code) {\n if (typeof code === \"number\") {\n return getStatusMessage(code);\n }\n if (typeof code !== \"string\") {\n throw new TypeError(\"code must be a number or string\");\n }\n var n = parseInt(code, 10);\n if (!isNaN(n)) {\n return getStatusMessage(n);\n }\n return getStatusCode(code);\n }\n }\n});\n\n// src/shims/statuses.ts\nvar allStatuses = __toESM(require_statuses(), 1);\nvar statuses = allStatuses.default || allStatuses;\nvar message = statuses.message;\nvar statuses_default = statuses;\nexport {\n statuses_default as default,\n message\n};\n/*! Bundled license information:\n\nstatuses/index.js:\n (*!\n * statuses\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2016 Douglas Christopher Wilson\n * MIT Licensed\n *)\n*/\n"],"names":["mod","target","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__commonJS","cb","exports","require_codes","module","require_statuses","codes2","map","codes","getStatusMessage","code","call","status","message","Error","TypeError","n","parseInt","isNaN","message2","msg","toLowerCase","getStatusCode","keys","forEach","status2","Number","createStatusCodeList","redirect","empty","retry","allStatuses","to","from","except","desc","key","get","enumerable","__copyProps","value","statuses","default","statuses_default"],"mappings":"aAAA,IAiBeA,EAAiBC,EAjB5BC,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,OAAOO,oBAC3BC,EAAeR,OAAOS,eACtBC,EAAeV,OAAOW,UAAUC,eAChCC,EAAa,CAACC,EAAIjB,IAAQ,WAC5B,OAAOA,IAAO,EAAIiB,EAAGR,EAAkBQ,GAAI,MAAMjB,EAAM,CAAEkB,QAAS,KAAMA,QAASlB,GAAMA,EAAIkB,OAC7F,EAmBIC,EAAgBH,EAAW,CAC7B,qEAAqEE,EAASE,GAC5EA,EAAOF,QAAU,CACf,IAAO,WACP,IAAO,sBACP,IAAO,aACP,IAAO,cACP,IAAO,KACP,IAAO,UACP,IAAO,WACP,IAAO,gCACP,IAAO,aACP,IAAO,gBACP,IAAO,kBACP,IAAO,eACP,IAAO,mBACP,IAAO,UACP,IAAO,mBACP,IAAO,oBACP,IAAO,QACP,IAAO,YACP,IAAO,eACP,IAAO,YACP,IAAO,qBACP,IAAO,qBACP,IAAO,cACP,IAAO,eACP,IAAO,mBACP,IAAO,YACP,IAAO,YACP,IAAO,qBACP,I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EAASE,eAAiBI,CAChC,IACOlB,GA3BTK,EAAOJ,MA6BP,SAA8BF,GAC5B,OAAOnB,OAAOoC,KAAKjB,GAAQC,KAAI,SAAiBG,GAC9C,OAAOgB,OAAOhB,EAChB,GACF,CAjCeiB,CAAqBnB,GACpCI,EAAOgB,SAAW,CAChB,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,GAEPhB,EAAOiB,MAAQ,CACb,KAAK,EACL,KAAK,EACL,KAAK,GAEPjB,EAAOkB,MAAQ,CACb,KAAK,EACL,KAAK,EACL,KAAK,EA0CT,IAIEC,GAxJW/C,EAwJWqB,IAxJkBpB,EAAgB,MAAPD,EAAcE,EAASS,EAAaX,IAAQ,CAAA,EAR/E,EAACgD,EAAIC,EAAMC,EAAQC,KACnC,GAAIF,GAAwB,iBAATA,GAAqC,mBAATA,EAC7C,IAAK,IAAIG,KAAO3C,EAAkBwC,GAC3BpC,EAAac,KAAKqB,EAAII,IAAQA,IAAQF,GACzC7C,EAAU2C,EAAII,EAAK,CAAEC,IAAK,IAAMJ,EAAKG,GAAME,aAAcH,EAAO5C,EAAiB0C,EAAMG,KAASD,EAAKG,aAE3G,OAAON,GAE4FO,CAK3DlD,EAAUJ,EAAQ,UAAW,CAAEuD,MAAOxD,EAAKsD,YAAY,IAC/FtD,IAmJEyD,EAAWV,EAAYW,SAAWX,EACxBU,EAAS5B,QACpB,IAAC8B,EAAmBF;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"statuses.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/statuses.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\nvar require_codes = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\"(exports, module) {\n module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"103\": \"Early Hints\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a Teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Too Early\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n };\n }\n});\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\nvar require_statuses = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\"(exports, module) {\n \"use strict\";\n var codes = require_codes();\n module.exports = status;\n status.message = codes;\n status.code = createMessageToStatusCodeMap(codes);\n status.codes = createStatusCodeList(codes);\n status.redirect = {\n 300: true,\n 301: true,\n 302: true,\n 303: true,\n 305: true,\n 307: true,\n 308: true\n };\n status.empty = {\n 204: true,\n 205: true,\n 304: true\n };\n status.retry = {\n 502: true,\n 503: true,\n 504: true\n };\n function createMessageToStatusCodeMap(codes2) {\n var map = {};\n Object.keys(codes2).forEach(function forEachCode(code) {\n var message2 = codes2[code];\n var status2 = Number(code);\n map[message2.toLowerCase()] = status2;\n });\n return map;\n }\n function createStatusCodeList(codes2) {\n return Object.keys(codes2).map(function mapCode(code) {\n return Number(code);\n });\n }\n function getStatusCode(message2) {\n var msg = message2.toLowerCase();\n if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {\n throw new Error('invalid status message: \"' + message2 + '\"');\n }\n return status.code[msg];\n }\n function getStatusMessage(code) {\n if (!Object.prototype.hasOwnProperty.call(status.message, code)) {\n throw new Error(\"invalid status code: \" + code);\n }\n return status.message[code];\n }\n function status(code) {\n if (typeof code === \"number\") {\n return getStatusMessage(code);\n }\n if (typeof code !== \"string\") {\n throw new TypeError(\"code must be a number or string\");\n }\n var n = parseInt(code, 10);\n if (!isNaN(n)) {\n return getStatusMessage(n);\n }\n return getStatusCode(code);\n }\n }\n});\n\n// src/shims/statuses.ts\nvar allStatuses = __toESM(require_statuses(), 1);\nvar statuses = allStatuses.default || allStatuses;\nvar message = statuses.message;\nvar statuses_default = statuses;\nexport {\n statuses_default as default,\n message\n};\n/*! Bundled license information:\n\nstatuses/index.js:\n (*!\n * statuses\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2016 Douglas Christopher Wilson\n * MIT Licensed\n *)\n*/\n"],"names":["mod","target","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__commonJS","cb","exports","require_codes","module","require_statuses","codes2","map","codes","getStatusMessage","code","call","status","message","Error","TypeError","n","parseInt","isNaN","message2","msg","toLowerCase","getStatusCode","keys","forEach","status2","Number","createStatusCodeList","redirect","empty","retry","allStatuses","to","from","except","desc","key","get","enumerable","__copyProps","value","statuses","default","statuses_default"],"mappings":"aAAA,IAiBeA,EAAiBC,EAjB5BC,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,O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QF,GACzC7C,EAAU2C,EAAII,EAAK,CAAEC,IAAK,IAAMJ,EAAKG,GAAME,aAAcH,EAAO5C,EAAiB0C,EAAMG,KAASD,EAAKG,aAE3G,OAAON,GAE4FO,CAK3DlD,EAAUJ,EAAQ,UAAW,CAAEuD,MAAOxD,EAAKsD,YAAY,IAC/FtD,IAmJEyD,EAAWV,EAAYW,SAAWX,EACxBU,EAAS5B,QACpB,IAAC8B,EAAmBF;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"statuses.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.4_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/statuses.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\nvar require_codes = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\"(exports, module) {\n module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"103\": \"Early Hints\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a Teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Too Early\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n };\n }\n});\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\nvar require_statuses = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\"(exports, module) {\n \"use strict\";\n var codes = require_codes();\n module.exports = status;\n status.message = codes;\n status.code = createMessageToStatusCodeMap(codes);\n status.codes = createStatusCodeList(codes);\n status.redirect = {\n 300: true,\n 301: true,\n 302: true,\n 303: true,\n 305: true,\n 307: true,\n 308: true\n };\n status.empty = {\n 204: true,\n 205: true,\n 304: true\n };\n status.retry = {\n 502: true,\n 503: true,\n 504: true\n };\n function createMessageToStatusCodeMap(codes2) {\n var map = {};\n Object.keys(codes2).forEach(function forEachCode(code) {\n var message2 = codes2[code];\n var status2 = Number(code);\n map[message2.toLowerCase()] = status2;\n });\n return map;\n }\n function createStatusCodeList(codes2) {\n return Object.keys(codes2).map(function mapCode(code) {\n return Number(code);\n });\n }\n function getStatusCode(message2) {\n var msg = message2.toLowerCase();\n if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {\n throw new Error('invalid status message: \"' + message2 + '\"');\n }\n return status.code[msg];\n }\n function getStatusMessage(code) {\n if (!Object.prototype.hasOwnProperty.call(status.message, code)) {\n throw new Error(\"invalid status code: \" + code);\n }\n return status.message[code];\n }\n function status(code) {\n if (typeof code === \"number\") {\n return getStatusMessage(code);\n }\n if (typeof code !== \"string\") {\n throw new TypeError(\"code must be a number or string\");\n }\n var n = parseInt(code, 10);\n if (!isNaN(n)) {\n return getStatusMessage(n);\n }\n return getStatusCode(code);\n }\n }\n});\n\n// src/shims/statuses.ts\nvar allStatuses = __toESM(require_statuses(), 1);\nvar statuses = allStatuses.default || allStatuses;\nvar message = statuses.message;\nvar statuses_default = statuses;\nexport {\n statuses_default as default,\n message\n};\n/*! Bundled license information:\n\nstatuses/index.js:\n (*!\n * statuses\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2016 Douglas Christopher Wilson\n * MIT Licensed\n *)\n*/\n"],"names":["mod","target","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__commonJS","cb","exports","require_codes","module","require_statuses","codes2","map","codes","getStatusMessage","code","call","status","message","Error","TypeError","n","parseInt","isNaN","message2","msg","toLowerCase","getStatusCode","keys","forEach","status2","Number","createStatusCodeList","redirect","empty","retry","allStatuses","to","from","except","desc","key","get","enumerable","__copyProps","value","statuses","default","statuses_default"],"mappings":"AAAA,IAiBeA,EAAiBC,EAjB5BC,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,OAAOO,oBAC3BC,EAAeR,OAAOS,eACtBC,EAAeV,OAAOW,UAAUC,eAChCC,EAAa,CAACC,EAAIjB,IAAQ,WAC5B,OAAOA,IAAO,EAAIiB,EAAGR,EAAkBQ,GAAI,MAAMjB,EAAM,CAAEkB,QAAS,KAAMA,QAASlB,GAAMA,EAAIkB,OAC7F,EAmBIC,EAAgBH,EAAW,CAC7B,qEAAqEE,EAASE,GAC5EA,EAAOF,QAAU,CACf,IAAO,WACP,IAAO,sBACP,IAAO,aACP,IAAO,cACP,IAAO,KACP,IAAO,UACP,IAAO,WACP,IAAO,gCACP,IAAO,aACP,IAAO,gBACP,IAAO,kBACP,IAAO,eACP,IAAO,mBACP,IAAO,UACP,IAAO,mBACP,IAAO,oBACP,IAAO,QACP,IAAO,YACP,IAAO,eACP,IAAO,YACP,IAAO,qBACP,IAAO,qBACP,IAAO,cACP,IAAO,eACP,IAAO,mBACP,IAAO,YACP,IAAO,YACP,IAAO,qBACP,IAAO,iBACP,IAAO,gCAC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IACOlB,GA3BTK,EAAOJ,MA6BP,SAA8BF,GAC5B,OAAOnB,OAAOoC,KAAKjB,GAAQC,KAAI,SAAiBG,GAC9C,OAAOgB,OAAOhB,EAChB,GACF,CAjCeiB,CAAqBnB,GACpCI,EAAOgB,SAAW,CAChB,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,GAEPhB,EAAOiB,MAAQ,CACb,KAAK,EACL,KAAK,EACL,KAAK,GAEPjB,EAAOkB,MAAQ,CACb,KAAK,EACL,KAAK,EACL,KAAK,EA0CT,IAIEC,GAxJW/C,EAwJWqB,IAxJkBpB,EAAgB,MAAPD,EAAcE,EAASS,EAAaX,IAAQ,CAAA,EAR/E,EAACgD,EAAIC,EAAMC,EAAQC,KACnC,GAAIF,GAAwB,iBAATA,GAAqC,mBAATA,EAC7C,IAAK,IAAIG,KAAO3C,EAAkBwC,GAC3BpC,EAAac,KAAKqB,EAAII,IAAQA,IAAQF,GACzC7C,EAAU2C,EAAII,EAAK,CAAEC,IAAK,IAAMJ,EAAKG,GAAME,aAAcH,EAAO5C,EAAiB0C,EAAMG,KAASD,EAAKG,aAE3G,OAAON,GAE4FO,CAK3DlD,EAAUJ,EAAQ,UAAW,CAAEuD,MAAOxD,EAAKsD,YAAY,IAC/FtD,IAmJEyD,EAAWV,EAAYW,SAAWX,EACxBU,EAAS5B,QACpB,IAAC8B,EAAmBF;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"statuses.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/shims/statuses.mjs"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\nvar require_codes = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json\"(exports, module) {\n module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"103\": \"Early Hints\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a Teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Too Early\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n };\n }\n});\n\n// node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\nvar require_statuses = __commonJS({\n \"node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js\"(exports, module) {\n \"use strict\";\n var codes = require_codes();\n module.exports = status;\n status.message = codes;\n status.code = createMessageToStatusCodeMap(codes);\n status.codes = createStatusCodeList(codes);\n status.redirect = {\n 300: true,\n 301: true,\n 302: true,\n 303: true,\n 305: true,\n 307: true,\n 308: true\n };\n status.empty = {\n 204: true,\n 205: true,\n 304: true\n };\n status.retry = {\n 502: true,\n 503: true,\n 504: true\n };\n function createMessageToStatusCodeMap(codes2) {\n var map = {};\n Object.keys(codes2).forEach(function forEachCode(code) {\n var message2 = codes2[code];\n var status2 = Number(code);\n map[message2.toLowerCase()] = status2;\n });\n return map;\n }\n function createStatusCodeList(codes2) {\n return Object.keys(codes2).map(function mapCode(code) {\n return Number(code);\n });\n }\n function getStatusCode(message2) {\n var msg = message2.toLowerCase();\n if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {\n throw new Error('invalid status message: \"' + message2 + '\"');\n }\n return status.code[msg];\n }\n function getStatusMessage(code) {\n if (!Object.prototype.hasOwnProperty.call(status.message, code)) {\n throw new Error(\"invalid status code: \" + code);\n }\n return status.message[code];\n }\n function status(code) {\n if (typeof code === \"number\") {\n return getStatusMessage(code);\n }\n if (typeof code !== \"string\") {\n throw new TypeError(\"code must be a number or string\");\n }\n var n = parseInt(code, 10);\n if (!isNaN(n)) {\n return getStatusMessage(n);\n }\n return getStatusCode(code);\n }\n }\n});\n\n// src/shims/statuses.ts\nvar allStatuses = __toESM(require_statuses(), 1);\nvar statuses = allStatuses.default || allStatuses;\nvar message = statuses.message;\nvar statuses_default = statuses;\nexport {\n statuses_default as default,\n message\n};\n/*! Bundled license information:\n\nstatuses/index.js:\n (*!\n * statuses\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2016 Douglas Christopher Wilson\n * MIT Licensed\n *)\n*/\n"],"names":["mod","target","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__commonJS","cb","exports","require_codes","module","require_statuses","codes2","map","codes","getStatusMessage","code","call","status","message","Error","TypeError","n","parseInt","isNaN","message2","msg","toLowerCase","getStatusCode","keys","forEach","status2","Number","createStatusCodeList","redirect","empty","retry","allStatuses","to","from","except","desc","key","get","enumerable","__copyProps","value","statuses","default","statuses_default"],"mappings":"AAAA,IAiBeA,EAAiBC,EAjB5BC,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,OAAOO,oBAC3BC,EAAeR,OA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,EAAK,CAAEC,IAAK,IAAMJ,EAAKG,GAAME,aAAcH,EAAO5C,EAAiB0C,EAAMG,KAASD,EAAKG,aAE3G,OAAON,GAE4FO,CAK3DlD,EAAUJ,EAAQ,UAAW,CAAEuD,MAAOxD,EAAKsD,YAAY,IAC/FtD,IAmJEyD,EAAWV,EAAYW,SAAWX,EACxBU,EAAS5B,QACpB,IAAC8B,EAAmBF;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"TranslationProvider.cjs.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: (key: TranslationId, data?: Record<string, number | string>) => string;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","supportedLanguages","children","translations","value","useMemo","_jsx","Provider","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","text","catch","error","message","en","errorMessage","console","window","fdlogger","fetchJSONData","context","useContext","Error","translate","useCallback","key","data","translation","k","Object","keys","pattern","RegExp","replace","replacement","String"],"mappings":"gKAaA,MA2BMA,EAAqBC,EAAAA,cAA+C,MAwD7DC,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,kCAzDiC,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,EAAAA,SAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAAAA,IAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,8DAsEnDM,IAKA,MAAOC,EAAOC,GAAYC,EAAAA,SAGvB,CAAEC,SAAS,EAAMT,aAAc,CAAA,IAE5BU,EAAwBR,EAAAA,SAAQ,IAAMS,EAAAA,0BAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,EAAAA,WAAU,KACcC,WAGI,OAAtBF,GAA+Bd,EAAyCiB,SAASH,07CAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMG,IACLb,EAAS,CAAEE,SAAS,EAAOT,aAAcoB,OAE1CC,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7ChB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,UACzC,MAAMC,EAAe,oCAAoCb,GAAqB,4BAA4BW,IAE1GG,QAAQJ,MAAMG,GAEdE,OAAOC,UAAUN,MAAMG,MAI3BlB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,WAIxCK,KACJ,CAACjB,IAEG,CACLZ,aAAcM,EAAMN,cAAgB,CAAA,EACpCS,QAASH,EAAMG,iCA3GW,KAI5B,MAAMqB,EAAUC,EAAAA,WAAWnC,GAC3B,IAAKkC,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMhC,aAAEA,GAAiB8B,EAkBzB,MAAO,CAAEG,UAhBSC,EAAAA,aAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcrC,IAAemC,IAAMlC,OAASuB,UAAGW,IAAMlC,OAAUkC,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAMC,KAAKC,OAAOC,KAAKJ,GAAO,CACjC,MAAMK,EAAU,IAAIC,OAAO,MAnEftB,EAmEkCkB,EAnETlB,EAAKuB,QAAQ,sBAAuB,WAmEpB,KAC/CC,EAAcC,OAAOT,EAAKE,IAChCD,EAAcA,EAAYM,QAAQF,GAAS,IAAMG,GACnD,CAtEa,IAACxB,EAwEhB,OAAOiB,IAET,CAACrC,IAGiBA"}
1
+ {"version":3,"file":"TranslationProvider.cjs.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\n/**\n * The translation function type.\n */\nexport type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: TranslateFunction;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","supportedLanguages","children","translations","value","useMemo","_jsx","Provider","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","text","catch","error","message","en","errorMessage","console","window","fdlogger","fetchJSONData","context","useContext","Error","translate","useCallback","key","data","translation","k","Object","keys","pattern","RegExp","replace","replacement","String"],"mappings":"gKAaA,MAgCMA,EAAqBC,EAAAA,cAA+C,MAwD7DC,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,kCAzDiC,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,EAAAA,SAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAAAA,IAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,8DAsEnDM,IAKA,MAAOC,EAAOC,GAAYC,EAAAA,SAGvB,CAAEC,SAAS,EAAMT,aAAc,CAAA,IAE5BU,EAAwBR,EAAAA,SAAQ,IAAMS,EAAAA,0BAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,EAAAA,WAAU,KACcC,WAGI,OAAtBF,GAA+Bd,EAAyCiB,SAASH,07CAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMG,IACLb,EAAS,CAAEE,SAAS,EAAOT,aAAcoB,OAE1CC,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7ChB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,UACzC,MAAMC,EAAe,oCAAoCb,GAAqB,4BAA4BW,IAE1GG,QAAQJ,MAAMG,GAEdE,OAAOC,UAAUN,MAAMG,MAI3BlB,EAAS,CAAEE,SAAS,EAAOT,aAAcwB,EAAAA,WAIxCK,KACJ,CAACjB,IAEG,CACLZ,aAAcM,EAAMN,cAAgB,CAAA,EACpCS,QAASH,EAAMG,iCA3GW,KAI5B,MAAMqB,EAAUC,EAAAA,WAAWnC,GAC3B,IAAKkC,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMhC,aAAEA,GAAiB8B,EAkBzB,MAAO,CAAEG,UAhBSC,EAAAA,aAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcrC,IAAemC,IAAMlC,OAASuB,UAAGW,IAAMlC,OAAUkC,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAMC,KAAKC,OAAOC,KAAKJ,GAAO,CACjC,MAAMK,EAAU,IAAIC,OAAO,MAxEftB,EAwEkCkB,EAxETlB,EAAKuB,QAAQ,sBAAuB,WAwEpB,KAC/CC,EAAcC,OAAOT,EAAKE,IAChCD,EAAcA,EAAYM,QAAQF,GAAS,IAAMG,GACnD,CA3Ea,IAACxB,EA6EhB,OAAOiB,IAET,CAACrC,IAGiBA"}
@@ -20,6 +20,10 @@ type Translations = Record<string, Translation>;
20
20
  interface TranslationProviderProps {
21
21
  translations: Translations;
22
22
  }
23
+ /**
24
+ * The translation function type.
25
+ */
26
+ type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;
23
27
  /**
24
28
  * The provider for the TranslationProvider component.
25
29
  *
@@ -34,7 +38,7 @@ declare const TranslationProvider: ({ children, translations, }: PropsWithChildr
34
38
  * @returns The translation function and the translations.
35
39
  */
36
40
  declare const useTranslation: () => {
37
- translate: (key: TranslationId, data?: Record<string, number | string>) => string;
41
+ translate: TranslateFunction;
38
42
  translations: Translations;
39
43
  };
40
44
  /**
@@ -57,4 +61,4 @@ declare const useLoadTranslations: (languageOverride?: SupportedLanguage) => {
57
61
  };
58
62
 
59
63
  export { TranslationProvider, supportedLanguages, useLoadTranslations, useTranslation };
60
- export type { SupportedLanguage, Translation, TranslationProviderProps, Translations };
64
+ export type { SupportedLanguage, TranslateFunction, Translation, TranslationProviderProps, Translations };
@@ -1,2 +1,2 @@
1
- import{jsx as n}from"react/jsx-runtime";import{createContext as o,useMemo as t,useContext as i,useCallback as a,useState as r,useEffect as e}from"react";import s from"../localization/en.json.js";import{getMicroFrontendAttribute as l}from"../utilities/renderUtilities.js";const c=o(null),u=({children:o,translations:i})=>{const a=t((()=>({translations:i})),[i]);return n(c.Provider,{value:a,children:o})},j=()=>{const n=i(c);if(!n)throw new Error("FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider");const{translations:o}=n;return{translate:a(((n,t)=>{let i=o?.[n]?.value||s[n]?.value||n;if(t&&i)for(const n of Object.keys(t)){const o=new RegExp(`\\{${a=n,a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}`,"g"),r=String(t[n]);i=i.replace(o,(()=>r))}var a;return i}),[o]),translations:o}},d=["de","dev-lang","en-US","en","es-MX","es","fr","it","nl","pt"],p=n=>{const[o,i]=r({loading:!0,translations:{}}),a=t((()=>l("data-language")||""),[]),c=n??a;return e((()=>{(async()=>{"en"!==c&&d.includes(c)?await function(n){switch(n){case"../localization/de.json":return import("../localization/de.json.js");case"../localization/dev-lang.json":return import("../localization/dev-lang.json.js");case"../localization/en-US.json":return import("../localization/en-US.json.js");case"../localization/en.json":return import("../localization/en.json.js");case"../localization/es-MX.json":return import("../localization/es-MX.json.js");case"../localization/es.json":return import("../localization/es.json.js");case"../localization/fr.json":return import("../localization/fr.json.js");case"../localization/it.json":return import("../localization/it.json.js");case"../localization/nl.json":return import("../localization/nl.json.js");case"../localization/pt.json":return import("../localization/pt.json.js");default:return new Promise((function(o,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))}))}}(`../localization/${c}.json`).then((n=>n.default)).then((n=>{i({loading:!1,translations:n})})).catch((n=>{const o=n?.message??"unknown error";i({loading:!1,translations:s});const t=`FlipdishUI: Error while fetching ${c||"en"} language JSON data: ${o}`;console.error(t),window.fdlogger?.error(t)})):i({loading:!1,translations:s})})()}),[c]),{translations:o.translations||{},loading:o.loading}};export{u as TranslationProvider,d as supportedLanguages,p as useLoadTranslations,j as useTranslation};
1
+ import{jsx as n}from"react/jsx-runtime";import{createContext as o,useContext as t,useCallback as i,useMemo as a,useState as r,useEffect as e}from"react";import s from"../localization/en.json.js";import{getMicroFrontendAttribute as l}from"../utilities/renderUtilities.js";const c=o(null),u=({children:o,translations:t})=>{const i=a((()=>({translations:t})),[t]);return n(c.Provider,{value:i,children:o})},j=()=>{const n=t(c);if(!n)throw new Error("FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider");const{translations:o}=n;return{translate:i(((n,t)=>{let i=o?.[n]?.value||s[n]?.value||n;if(t&&i)for(const n of Object.keys(t)){const o=new RegExp(`\\{${a=n,a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}`,"g"),r=String(t[n]);i=i.replace(o,(()=>r))}var a;return i}),[o]),translations:o}},d=["de","dev-lang","en-US","en","es-MX","es","fr","it","nl","pt"],p=n=>{const[o,t]=r({loading:!0,translations:{}}),i=a((()=>l("data-language")||""),[]),c=n??i;return e((()=>{(async()=>{"en"!==c&&d.includes(c)?await function(n){switch(n){case"../localization/de.json":return import("../localization/de.json.js");case"../localization/dev-lang.json":return import("../localization/dev-lang.json.js");case"../localization/en-US.json":return import("../localization/en-US.json.js");case"../localization/en.json":return import("../localization/en.json.js");case"../localization/es-MX.json":return import("../localization/es-MX.json.js");case"../localization/es.json":return import("../localization/es.json.js");case"../localization/fr.json":return import("../localization/fr.json.js");case"../localization/it.json":return import("../localization/it.json.js");case"../localization/nl.json":return import("../localization/nl.json.js");case"../localization/pt.json":return import("../localization/pt.json.js");default:return new Promise((function(o,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))}))}}(`../localization/${c}.json`).then((n=>n.default)).then((n=>{t({loading:!1,translations:n})})).catch((n=>{const o=n?.message??"unknown error";t({loading:!1,translations:s});const i=`FlipdishUI: Error while fetching ${c||"en"} language JSON data: ${o}`;console.error(i),window.fdlogger?.error(i)})):t({loading:!1,translations:s})})()}),[c]),{translations:o.translations||{},loading:o.loading}};export{u as TranslationProvider,d as supportedLanguages,p as useLoadTranslations,j as useTranslation};
2
2
  //# sourceMappingURL=TranslationProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranslationProvider.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: (key: TranslationId, data?: Record<string, number | string>) => string;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","TranslationProvider","children","translations","value","useMemo","_jsx","Provider","useTranslation","context","useContext","Error","translate","useCallback","key","data","translation","en","k","Object","keys","pattern","RegExp","text","replace","replacement","String","supportedLanguages","useLoadTranslations","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","catch","error","message","errorMessage","console","window","fdlogger","fetchJSONData"],"mappings":"+QAaA,MA2BMA,EAAqBC,EAA+C,MAS7DC,EAAsB,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,GAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,KAQxCM,EAAiB,KAI5B,MAAMC,EAAUC,EAAWX,GAC3B,IAAKU,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMR,aAAEA,GAAiBM,EAkBzB,MAAO,CAAEG,UAhBSC,GAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcb,IAAeW,IAAMV,OAASa,EAAGH,IAAMV,OAAUU,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAME,KAAKC,OAAOC,KAAKL,GAAO,CACjC,MAAMM,EAAU,IAAIC,OAAO,MAnEfC,EAmEkCL,EAnETK,EAAKC,QAAQ,sBAAuB,WAmEpB,KAC/CC,EAAcC,OAAOX,EAAKG,IAChCF,EAAcA,EAAYQ,QAAQH,GAAS,IAAMI,GACnD,CAtEa,IAACF,EAwEhB,OAAOP,IAET,CAACb,IAGiBA,iBAMTwB,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,MAaWC,EAKXC,IAKA,MAAOC,EAAOC,GAAYC,EAGvB,CAAEC,SAAS,EAAM9B,aAAc,CAAA,IAE5B+B,EAAwB7B,GAAQ,IAAM8B,EAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,GAAU,KACcC,WAGI,OAAtBF,GAA+BT,EAAyCY,SAASH,s8BAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMlB,IACLQ,EAAS,CAAEE,SAAS,EAAO9B,aAAcoB,OAE1CqB,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7Cf,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,IACzC,MAAM8B,EAAe,oCAAoCX,GAAqB,4BAA4BU,IAE1GE,QAAQH,MAAME,GAEdE,OAAOC,UAAUL,MAAME,MAI3BhB,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,KAIxCkC,KACJ,CAACf,IAEG,CACLjC,aAAc2B,EAAM3B,cAAgB,CAAA,EACpC8B,QAASH,EAAMG"}
1
+ {"version":3,"file":"TranslationProvider.js","sources":["../../src/providers/TranslationProvider.tsx"],"sourcesContent":["import {\n createContext,\n type PropsWithChildren,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\n\nimport en from '../localization/en.json';\nimport { getMicroFrontendAttribute } from '../utilities/renderUtilities';\n\nconst escapeRegExp = (text: string): string => text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\ndeclare global {\n // Keys must be the same across locales; values are { value: string }\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n type TranslationId = keyof typeof en;\n}\n\n/**\n * The translation type.\n */\nexport interface Translation {\n value: string;\n}\n\n/**\n * The translations type.\n */\nexport type Translations = Record<string, Translation>;\n\n/**\n * The props for the TranslationProvider component.\n */\nexport interface TranslationProviderProps {\n translations: Translations;\n}\n\n/**\n * The translation function type.\n */\nexport type TranslateFunction = (key: TranslationId, data?: Record<string, number | string>) => string;\n\nconst TranslationContext = createContext<TranslationProviderProps | null>(null);\n\n/**\n * The provider for the TranslationProvider component.\n *\n * @param props.children The children to render.\n * @param props.translations The translations to use.\n * @returns The TranslationProvider component.\n */\nexport const TranslationProvider = ({\n children,\n translations,\n}: PropsWithChildren<TranslationProviderProps>): JSX.Element => {\n const value = useMemo(() => ({ translations }), [translations]);\n return <TranslationContext.Provider value={value}>{children}</TranslationContext.Provider>;\n};\n\n/**\n * The hook for the TranslationProvider component.\n *\n * @returns The translation function and the translations.\n */\nexport const useTranslation = (): {\n translate: TranslateFunction;\n translations: Translations;\n} => {\n const context = useContext(TranslationContext);\n if (!context) {\n throw new Error(\n 'FlipdishUI: useTranslation must be used within TranslationProvider or FlipdishUIProvider',\n );\n }\n const { translations } = context;\n\n const translate = useCallback(\n (key: TranslationId, data?: Record<string, number | string>): string => {\n let translation = translations?.[key]?.value || en[key]?.value || (key as string);\n if (data && translation) {\n // Single pass supports both named and numbered placeholders ({0}, {1}, {name})\n for (const k of Object.keys(data)) {\n const pattern = new RegExp(`\\\\{${escapeRegExp(k)}}`, 'g');\n const replacement = String(data[k]);\n translation = translation.replace(pattern, () => replacement);\n }\n }\n return translation;\n },\n [translations],\n );\n\n return { translate, translations };\n};\n\n/**\n * The supported languages.\n */\nexport const supportedLanguages = [\n 'de',\n 'dev-lang',\n 'en-US',\n 'en',\n 'es-MX',\n 'es',\n 'fr',\n 'it',\n 'nl',\n 'pt',\n] as const;\n/**\n * The supported languages.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Loads the translations for the given language.\n *\n * @param languageOverride Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * @returns The translations and loading state.\n */\nexport const useLoadTranslations = (\n /**\n * Optional language override (e.g., 'en', 'fr', 'de', 'es-MX').\n * If omitted, the provider will fall back to reading the micro-frontend attribute `data-language`.\n */\n languageOverride?: SupportedLanguage,\n): {\n translations: Translations;\n loading: boolean;\n} => {\n const [state, setState] = useState<{\n loading: boolean;\n translations?: Translations;\n }>({ loading: true, translations: {} });\n\n const languageFromParentDiv = useMemo(() => getMicroFrontendAttribute('data-language') || '', []);\n const effectiveLanguage = languageOverride ?? languageFromParentDiv;\n\n useEffect(() => {\n const fetchJSONData = async (): Promise<void> => {\n // en is statically bundled as the default fallback; skip dynamic load for it\n const shouldLoadLanguage =\n effectiveLanguage !== 'en' && (supportedLanguages as readonly string[]).includes(effectiveLanguage);\n if (shouldLoadLanguage) {\n await import(`../localization/${effectiveLanguage}.json`)\n .then((response: { default: Translations }) => response.default)\n .then((text) => {\n setState({ loading: false, translations: text });\n })\n .catch((error: unknown) => {\n const message = (error as Error)?.message ?? 'unknown error';\n // Fallback to en if the supported language fails to load\n setState({ loading: false, translations: en });\n const errorMessage = `FlipdishUI: Error while fetching ${effectiveLanguage || 'en'} language JSON data: ${message}`;\n // Log the error to the console and the logger\n console.error(errorMessage);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n window.fdlogger?.error(errorMessage);\n });\n } else {\n // 'en' or unsupported language - use statically bundled English translations\n setState({ loading: false, translations: en });\n }\n };\n\n void fetchJSONData();\n }, [effectiveLanguage]);\n\n return {\n translations: state.translations || {},\n loading: state.loading,\n };\n};\n"],"names":["TranslationContext","createContext","TranslationProvider","children","translations","value","useMemo","_jsx","Provider","useTranslation","context","useContext","Error","translate","useCallback","key","data","translation","en","k","Object","keys","pattern","RegExp","text","replace","replacement","String","supportedLanguages","useLoadTranslations","languageOverride","state","setState","useState","loading","languageFromParentDiv","getMicroFrontendAttribute","effectiveLanguage","useEffect","async","includes","__variableDynamicImportRuntime0__","then","response","default","catch","error","message","errorMessage","console","window","fdlogger","fetchJSONData"],"mappings":"+QAaA,MAgCMA,EAAqBC,EAA+C,MAS7DC,EAAsB,EACjCC,WACAC,mBAEA,MAAMC,EAAQC,GAAQ,KAAA,CAASF,kBAAiB,CAACA,IACjD,OAAOG,EAACP,EAAmBQ,SAAQ,CAACH,MAAOA,EAAKF,SAAGA,KAQxCM,EAAiB,KAI5B,MAAMC,EAAUC,EAAWX,GAC3B,IAAKU,EACH,MAAM,IAAIE,MACR,4FAGJ,MAAMR,aAAEA,GAAiBM,EAkBzB,MAAO,CAAEG,UAhBSC,GAChB,CAACC,EAAoBC,KACnB,IAAIC,EAAcb,IAAeW,IAAMV,OAASa,EAAGH,IAAMV,OAAUU,EACnE,GAAIC,GAAQC,EAEV,IAAK,MAAME,KAAKC,OAAOC,KAAKL,GAAO,CACjC,MAAMM,EAAU,IAAIC,OAAO,MAxEfC,EAwEkCL,EAxETK,EAAKC,QAAQ,sBAAuB,WAwEpB,KAC/CC,EAAcC,OAAOX,EAAKG,IAChCF,EAAcA,EAAYQ,QAAQH,GAAS,IAAMI,GACnD,CA3Ea,IAACF,EA6EhB,OAAOP,IAET,CAACb,IAGiBA,iBAMTwB,EAAqB,CAChC,KACA,WACA,QACA,KACA,QACA,KACA,KACA,KACA,KACA,MAaWC,EAKXC,IAKA,MAAOC,EAAOC,GAAYC,EAGvB,CAAEC,SAAS,EAAM9B,aAAc,CAAA,IAE5B+B,EAAwB7B,GAAQ,IAAM8B,EAA0B,kBAAoB,IAAI,IACxFC,EAAoBP,GAAoBK,EAgC9C,OA9BAG,GAAU,KACcC,WAGI,OAAtBF,GAA+BT,EAAyCY,SAASH,s8BAE3EI,CAAO,mBAAmBJ,UAC7BK,MAAMC,GAAwCA,EAASC,UACvDF,MAAMlB,IACLQ,EAAS,CAAEE,SAAS,EAAO9B,aAAcoB,OAE1CqB,OAAOC,IACN,MAAMC,EAAWD,GAAiBC,SAAW,gBAE7Cf,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,IACzC,MAAM8B,EAAe,oCAAoCX,GAAqB,4BAA4BU,IAE1GE,QAAQH,MAAME,GAEdE,OAAOC,UAAUL,MAAME,MAI3BhB,EAAS,CAAEE,SAAS,EAAO9B,aAAcc,KAIxCkC,KACJ,CAACf,IAEG,CACLjC,aAAc2B,EAAM3B,cAAgB,CAAA,EACpC8B,QAASH,EAAMG"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");const t=e=>{const t=document.getElementById("flipdish-micro-frontend");return t?.getAttribute(e)||""};exports.getAppId=()=>(void 0).VITE_APPID_OVERRIDE||t("data-app-id")||t("data-appid"),exports.getBrandId=()=>(void 0).VITE_BRANDID_OVERRIDE||t("data-brand-id")||t("data-brandid"),exports.getIsFlipdishStaff=()=>{const e=(void 0).VITE_ISFLIPDISHSTAFFOVERRIDE||t("data-is-flipdish-staff")||t("data-isflipdishstaff");return"true"===e?.toString()},exports.getMicroFrontendAttribute=t,exports.getOrgId=()=>(void 0).VITE_ORGID_OVERRIDE||t("data-org-id")||t("data-orgid"),exports.lazyWithRetry=t=>e.lazy((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));
1
+ "use strict";var React=require("react");const getEnvironmentVariable=key=>{if("undefined"!=typeof process&&process.env&&"string"==typeof process.env[key])return process.env[key];try{const viteEnv=eval("import.meta")?.env;return viteEnv?.[key]??""}catch{return""}},getMicroFrontendAttribute=t=>{if("undefined"==typeof document)return"";const e=document.getElementById("flipdish-micro-frontend");return e?.getAttribute(t)||""},getAppId=()=>getEnvironmentVariable("VITE_APPID_OVERRIDE")||getMicroFrontendAttribute("data-app-id")||getMicroFrontendAttribute("data-appid"),getOrgId=()=>getEnvironmentVariable("VITE_ORGID_OVERRIDE")||getMicroFrontendAttribute("data-org-id")||getMicroFrontendAttribute("data-orgid"),getBrandId=()=>getEnvironmentVariable("VITE_BRANDID_OVERRIDE")||getMicroFrontendAttribute("data-brand-id")||getMicroFrontendAttribute("data-brandid"),getIsFlipdishStaff=()=>{const t=getEnvironmentVariable("VITE_ISFLIPDISHSTAFFOVERRIDE")||getMicroFrontendAttribute("data-is-flipdish-staff")||getMicroFrontendAttribute("data-isflipdishstaff");return"true"===t?.toString()},lazyWithRetry=t=>React.lazy((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));exports.getAppId=getAppId,exports.getBrandId=getBrandId,exports.getEnvironmentVariable=getEnvironmentVariable,exports.getIsFlipdishStaff=getIsFlipdishStaff,exports.getMicroFrontendAttribute=getMicroFrontendAttribute,exports.getOrgId=getOrgId,exports.lazyWithRetry=lazyWithRetry;
2
2
  //# sourceMappingURL=renderUtilities.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderUtilities.cjs.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\nexport const getMicroFrontendAttribute = (key: string): string => {\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_APPID_OVERRIDE'] || getMicroFrontendAttribute('data-app-id') || getMicroFrontendAttribute('data-appid');\n};\n\n/**\n * Retrieves the OrgId.\n *\n * Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.\n * Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getOrgId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_ORGID_OVERRIDE'] || getMicroFrontendAttribute('data-org-id') || getMicroFrontendAttribute('data-orgid');\n};\n\n/**\n * Retrieves the BrandId.\n *\n * Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.\n * Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getBrandId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_BRANDID_OVERRIDE'] || getMicroFrontendAttribute('data-brand-id') || getMicroFrontendAttribute('data-brandid');\n};\n\n/**\n * Retrieves the isFlipdishStaff attribute.\n *\n * Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.\n * Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getIsFlipdishStaff = (): boolean => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const stringValue =\n import.meta.env['VITE_ISFLIPDISHSTAFFOVERRIDE'] || getMicroFrontendAttribute('data-is-flipdish-staff') || getMicroFrontendAttribute('data-isflipdishstaff');\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access\n return stringValue?.toString() === 'true';\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const lazyWithRetry = (componentImport: () => any) =>\n lazy(async () => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const pageHasAlreadyBeenForceRefreshed = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n window.sessionStorage.getItem('page-has-been-force-refreshed') || 'false',\n );\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const component = await componentImport();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'false');\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return component;\n } catch (error) {\n if (!pageHasAlreadyBeenForceRefreshed) {\n // Assuming that the user is not on the latest version of the application.\n // Let's refresh the page immediately.\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'true');\n return window.location.reload();\n }\n\n // The page has already been reloaded\n // Assuming that user is already using the latest version of the application.\n // Let's let the application crash and raise the error.\n throw error;\n }\n });\n"],"names":["getMicroFrontendAttribute","key","microFrontendDiv","document","getElementById","getAttribute","undefined","stringValue","toString","componentImport","lazy","async","pageHasAlreadyBeenForceRefreshed","JSON","parse","window","sessionStorage","getItem","component","setItem","error","location","reload"],"mappings":"oCAEO,MAAMA,EAA6BC,IACxC,MAAMC,EAAmBC,SAASC,eAAe,2BACjD,OAAOF,GAAkBG,aAAaJ,IAAQ,qBAYxB,UAEfK,GAAqC,qBAAKN,EAA0B,gBAAkBA,EAA0B,iCA0B/F,UAEjBM,GAAuC,uBAAKN,EAA0B,kBAAoBA,EAA0B,2CAY3F,KAEhC,MAAMO,QACJD,GAA8C,8BAAKN,EAA0B,2BAA6BA,EAA0B,wBAEtI,MAAmC,SAA5BO,GAAaC,iEAjCE,UAEfF,GAAqC,qBAAKN,EAA0B,gBAAkBA,EAA0B,oCAmC3FS,GAC5BC,EAAAA,MAAKC,UAEH,MAAMC,EAAmCC,KAAKC,MAE5CC,OAAOC,eAAeC,QAAQ,kCAAoC,SAGpE,IAEE,MAAMC,QAAkBT,IAKxB,OAHAM,OAAOC,eAAeG,QAAQ,gCAAiC,SAGxDD,CACT,CAAE,MAAOE,GACP,IAAKR,EAIH,OADAG,OAAOC,eAAeG,QAAQ,gCAAiC,QACxDJ,OAAOM,SAASC,SAMzB,MAAMF,CACR"}
1
+ {"version":3,"file":"renderUtilities.cjs.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\n/**\n * Retrieves an environment variable.\n *\n * @param key The key of the environment variable to retrieve.\n * @returns The value of the environment variable.\n */\nexport const getEnvironmentVariable = (key: string): string => {\n // Prefer Node env in tests/SSR\n if (typeof process !== 'undefined' && process.env && typeof process.env[key] === 'string') {\n return process.env[key] as string;\n }\n // Fallback to Vite env when available; use eval to avoid parse errors in non‑Vite/CJS\n try {\n // @typescript-eslint/no-unsafe-member-access\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const viteEnv = eval('import.meta')?.env as Record<string, string | undefined> | undefined;\n return viteEnv?.[key] ?? '';\n } catch {\n return '';\n }\n};\n\n/**\n * Retrieves a micro-frontend attribute.\n *\n * @param key The key of the attribute to retrieve.\n * @returns The value of the attribute.\n */\nexport const getMicroFrontendAttribute = (key: string): string => {\n if (typeof document === 'undefined') {\n return '';\n }\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n return (\n getEnvironmentVariable('VITE_APPID_OVERRIDE') ||\n getMicroFrontendAttribute('data-app-id') ||\n getMicroFrontendAttribute('data-appid')\n );\n};\n\n/**\n * Retrieves the OrgId.\n *\n * Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.\n * Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getOrgId = (): string => {\n return (\n getEnvironmentVariable('VITE_ORGID_OVERRIDE') ||\n getMicroFrontendAttribute('data-org-id') ||\n getMicroFrontendAttribute('data-orgid')\n );\n};\n\n/**\n * Retrieves the BrandId.\n *\n * Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.\n * Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getBrandId = (): string => {\n return (\n getEnvironmentVariable('VITE_BRANDID_OVERRIDE') ||\n getMicroFrontendAttribute('data-brand-id') ||\n getMicroFrontendAttribute('data-brandid')\n );\n};\n\n/**\n * Retrieves the isFlipdishStaff attribute.\n *\n * Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.\n * Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getIsFlipdishStaff = (): boolean => {\n const stringValue =\n getEnvironmentVariable('VITE_ISFLIPDISHSTAFFOVERRIDE') ||\n getMicroFrontendAttribute('data-is-flipdish-staff') ||\n getMicroFrontendAttribute('data-isflipdishstaff');\n return stringValue?.toString() === 'true';\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const lazyWithRetry = (componentImport: () => any) =>\n lazy(async () => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const pageHasAlreadyBeenForceRefreshed = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n window.sessionStorage.getItem('page-has-been-force-refreshed') || 'false',\n );\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const component = await componentImport();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'false');\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return component;\n } catch (error) {\n if (!pageHasAlreadyBeenForceRefreshed) {\n // Assuming that the user is not on the latest version of the application.\n // Let's refresh the page immediately.\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'true');\n return window.location.reload();\n }\n\n // The page has already been reloaded\n // Assuming that user is already using the latest version of the application.\n // Let's let the application crash and raise the error.\n throw error;\n }\n });\n"],"names":["getEnvironmentVariable","key","process","env","viteEnv","eval","getMicroFrontendAttribute","document","microFrontendDiv","getElementById","getAttribute","getAppId","getOrgId","getBrandId","getIsFlipdishStaff","stringValue","toString","lazyWithRetry","componentImport","lazy","async","pageHasAlreadyBeenForceRefreshed","JSON","parse","window","sessionStorage","getItem","component","setItem","error","location","reload"],"mappings":"wCAQO,MAAMA,uBAA0BC,MAErC,GAAuB,oBAAZC,SAA2BA,QAAQC,KAAmC,iBAArBD,QAAQC,IAAIF,KACtE,OAAOC,QAAQC,IAAIF,KAGrB,IAGE,MAAMG,QAAUC,KAAK,gBAAgBF,IACrC,OAAOC,UAAUH,MAAQ,EAC3B,CAAE,MACA,MAAO,EACT,GASWK,0BAA6BL,IACxC,GAAwB,oBAAbM,SACT,MAAO,GAET,MAAMC,EAAmBD,SAASE,eAAe,2BACjD,OAAOD,GAAkBE,aAAaT,IAAQ,IAYnCU,SAAW,IAEpBX,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBM,SAAW,IAEpBZ,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBO,WAAa,IAEtBb,uBAAuB,0BACvBM,0BAA0B,kBAC1BA,0BAA0B,gBAajBQ,mBAAqB,KAChC,MAAMC,EACJf,uBAAuB,iCACvBM,0BAA0B,2BAC1BA,0BAA0B,wBAC5B,MAAmC,SAA5BS,GAAaC,YAITC,cAAiBC,GAC5BC,MAAAA,MAAKC,UAEH,MAAMC,EAAmCC,KAAKC,MAE5CC,OAAOC,eAAeC,QAAQ,kCAAoC,SAGpE,IAEE,MAAMC,QAAkBT,IAKxB,OAHAM,OAAOC,eAAeG,QAAQ,gCAAiC,SAGxDD,CACT,CAAE,MAAOE,GACP,IAAKR,EAIH,OADAG,OAAOC,eAAeG,QAAQ,gCAAiC,QACxDJ,OAAOM,SAASC,SAMzB,MAAMF,CACR"}
@@ -1,5 +1,18 @@
1
1
  import * as react from 'react';
2
2
 
3
+ /**
4
+ * Retrieves an environment variable.
5
+ *
6
+ * @param key The key of the environment variable to retrieve.
7
+ * @returns The value of the environment variable.
8
+ */
9
+ declare const getEnvironmentVariable: (key: string) => string;
10
+ /**
11
+ * Retrieves a micro-frontend attribute.
12
+ *
13
+ * @param key The key of the attribute to retrieve.
14
+ * @returns The value of the attribute.
15
+ */
3
16
  declare const getMicroFrontendAttribute: (key: string) => string;
4
17
  /**
5
18
  * Retrieves the AppId.
@@ -43,4 +56,4 @@ declare const getBrandId: () => string;
43
56
  declare const getIsFlipdishStaff: () => boolean;
44
57
  declare const lazyWithRetry: (componentImport: () => any) => react.LazyExoticComponent<react.ComponentType<any>>;
45
58
 
46
- export { getAppId, getBrandId, getIsFlipdishStaff, getMicroFrontendAttribute, getOrgId, lazyWithRetry };
59
+ export { getAppId, getBrandId, getEnvironmentVariable, getIsFlipdishStaff, getMicroFrontendAttribute, getOrgId, lazyWithRetry };
@@ -1,2 +1,2 @@
1
- import{lazy as e}from"react";const t=e=>{const t=document.getElementById("flipdish-micro-frontend");return t?.getAttribute(e)||""},a=()=>import.meta.env.VITE_APPID_OVERRIDE||t("data-app-id")||t("data-appid"),r=()=>import.meta.env.VITE_ORGID_OVERRIDE||t("data-org-id")||t("data-orgid"),o=()=>import.meta.env.VITE_BRANDID_OVERRIDE||t("data-brand-id")||t("data-brandid"),s=()=>{const e=import.meta.env.VITE_ISFLIPDISHSTAFFOVERRIDE||t("data-is-flipdish-staff")||t("data-isflipdishstaff");return"true"===e?.toString()},i=t=>e((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));export{a as getAppId,o as getBrandId,s as getIsFlipdishStaff,t as getMicroFrontendAttribute,r as getOrgId,i as lazyWithRetry};
1
+ import{lazy}from"react";const getEnvironmentVariable=key=>{if("undefined"!=typeof process&&process.env&&"string"==typeof process.env[key])return process.env[key];try{const viteEnv=eval("import.meta")?.env;return viteEnv?.[key]??""}catch{return""}},getMicroFrontendAttribute=t=>{if("undefined"==typeof document)return"";const e=document.getElementById("flipdish-micro-frontend");return e?.getAttribute(t)||""},getAppId=()=>getEnvironmentVariable("VITE_APPID_OVERRIDE")||getMicroFrontendAttribute("data-app-id")||getMicroFrontendAttribute("data-appid"),getOrgId=()=>getEnvironmentVariable("VITE_ORGID_OVERRIDE")||getMicroFrontendAttribute("data-org-id")||getMicroFrontendAttribute("data-orgid"),getBrandId=()=>getEnvironmentVariable("VITE_BRANDID_OVERRIDE")||getMicroFrontendAttribute("data-brand-id")||getMicroFrontendAttribute("data-brandid"),getIsFlipdishStaff=()=>{const t=getEnvironmentVariable("VITE_ISFLIPDISHSTAFFOVERRIDE")||getMicroFrontendAttribute("data-is-flipdish-staff")||getMicroFrontendAttribute("data-isflipdishstaff");return"true"===t?.toString()},lazyWithRetry=t=>lazy((async()=>{const e=JSON.parse(window.sessionStorage.getItem("page-has-been-force-refreshed")||"false");try{const e=await t();return window.sessionStorage.setItem("page-has-been-force-refreshed","false"),e}catch(t){if(!e)return window.sessionStorage.setItem("page-has-been-force-refreshed","true"),window.location.reload();throw t}}));export{getAppId,getBrandId,getEnvironmentVariable,getIsFlipdishStaff,getMicroFrontendAttribute,getOrgId,lazyWithRetry};
2
2
  //# sourceMappingURL=renderUtilities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderUtilities.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\nexport const getMicroFrontendAttribute = (key: string): string => {\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_APPID_OVERRIDE'] || getMicroFrontendAttribute('data-app-id') || getMicroFrontendAttribute('data-appid');\n};\n\n/**\n * Retrieves the OrgId.\n *\n * Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.\n * Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getOrgId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_ORGID_OVERRIDE'] || getMicroFrontendAttribute('data-org-id') || getMicroFrontendAttribute('data-orgid');\n};\n\n/**\n * Retrieves the BrandId.\n *\n * Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.\n * Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getBrandId = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return import.meta.env['VITE_BRANDID_OVERRIDE'] || getMicroFrontendAttribute('data-brand-id') || getMicroFrontendAttribute('data-brandid');\n};\n\n/**\n * Retrieves the isFlipdishStaff attribute.\n *\n * Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.\n * Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getIsFlipdishStaff = (): boolean => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const stringValue =\n import.meta.env['VITE_ISFLIPDISHSTAFFOVERRIDE'] || getMicroFrontendAttribute('data-is-flipdish-staff') || getMicroFrontendAttribute('data-isflipdishstaff');\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access\n return stringValue?.toString() === 'true';\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const lazyWithRetry = (componentImport: () => any) =>\n lazy(async () => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const pageHasAlreadyBeenForceRefreshed = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n window.sessionStorage.getItem('page-has-been-force-refreshed') || 'false',\n );\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const component = await componentImport();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'false');\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return component;\n } catch (error) {\n if (!pageHasAlreadyBeenForceRefreshed) {\n // Assuming that the user is not on the latest version of the application.\n // Let's refresh the page immediately.\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'true');\n return window.location.reload();\n }\n\n // The page has already been reloaded\n // Assuming that user is already using the latest version of the application.\n // Let's let the application crash and raise the error.\n throw error;\n }\n });\n"],"names":["getMicroFrontendAttribute","key","microFrontendDiv","document","getElementById","getAttribute","getAppId","env","getOrgId","getBrandId","getIsFlipdishStaff","stringValue","toString","lazyWithRetry","componentImport","lazy","async","pageHasAlreadyBeenForceRefreshed","JSON","parse","window","sessionStorage","getItem","component","setItem","error","location","reload"],"mappings":"6BAEO,MAAMA,EAA6BC,IACxC,MAAMC,EAAmBC,SAASC,eAAe,2BACjD,OAAOF,GAAkBG,aAAaJ,IAAQ,IAYnCK,EAAW,gBAEHC,IAAyB,qBAAKP,EAA0B,gBAAkBA,EAA0B,cAY5GQ,EAAW,gBAEHD,IAAyB,qBAAKP,EAA0B,gBAAkBA,EAA0B,cAY5GS,EAAa,gBAELF,IAA2B,uBAAKP,EAA0B,kBAAoBA,EAA0B,gBAYhHU,EAAqB,KAEhC,MAAMC,cACQJ,IAAkC,8BAAKP,EAA0B,2BAA6BA,EAA0B,wBAEtI,MAAmC,SAA5BW,GAAaC,YAITC,EAAiBC,GAC5BC,GAAKC,UAEH,MAAMC,EAAmCC,KAAKC,MAE5CC,OAAOC,eAAeC,QAAQ,kCAAoC,SAGpE,IAEE,MAAMC,QAAkBT,IAKxB,OAHAM,OAAOC,eAAeG,QAAQ,gCAAiC,SAGxDD,CACT,CAAE,MAAOE,GACP,IAAKR,EAIH,OADAG,OAAOC,eAAeG,QAAQ,gCAAiC,QACxDJ,OAAOM,SAASC,SAMzB,MAAMF,CACR"}
1
+ {"version":3,"file":"renderUtilities.js","sources":["../../src/utilities/renderUtilities.ts"],"sourcesContent":["import { lazy } from 'react';\n\n/**\n * Retrieves an environment variable.\n *\n * @param key The key of the environment variable to retrieve.\n * @returns The value of the environment variable.\n */\nexport const getEnvironmentVariable = (key: string): string => {\n // Prefer Node env in tests/SSR\n if (typeof process !== 'undefined' && process.env && typeof process.env[key] === 'string') {\n return process.env[key] as string;\n }\n // Fallback to Vite env when available; use eval to avoid parse errors in non‑Vite/CJS\n try {\n // @typescript-eslint/no-unsafe-member-access\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const viteEnv = eval('import.meta')?.env as Record<string, string | undefined> | undefined;\n return viteEnv?.[key] ?? '';\n } catch {\n return '';\n }\n};\n\n/**\n * Retrieves a micro-frontend attribute.\n *\n * @param key The key of the attribute to retrieve.\n * @returns The value of the attribute.\n */\nexport const getMicroFrontendAttribute = (key: string): string => {\n if (typeof document === 'undefined') {\n return '';\n }\n const microFrontendDiv = document.getElementById('flipdish-micro-frontend');\n return microFrontendDiv?.getAttribute(key) || '';\n};\n\n/**\n * Retrieves the AppId.\n *\n * Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.\n * Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getAppId = (): string => {\n return (\n getEnvironmentVariable('VITE_APPID_OVERRIDE') ||\n getMicroFrontendAttribute('data-app-id') ||\n getMicroFrontendAttribute('data-appid')\n );\n};\n\n/**\n * Retrieves the OrgId.\n *\n * Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.\n * Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getOrgId = (): string => {\n return (\n getEnvironmentVariable('VITE_ORGID_OVERRIDE') ||\n getMicroFrontendAttribute('data-org-id') ||\n getMicroFrontendAttribute('data-orgid')\n );\n};\n\n/**\n * Retrieves the BrandId.\n *\n * Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.\n * Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getBrandId = (): string => {\n return (\n getEnvironmentVariable('VITE_BRANDID_OVERRIDE') ||\n getMicroFrontendAttribute('data-brand-id') ||\n getMicroFrontendAttribute('data-brandid')\n );\n};\n\n/**\n * Retrieves the isFlipdishStaff attribute.\n *\n * Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.\n * If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.\n * Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below\n *\n * @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.\n */\nexport const getIsFlipdishStaff = (): boolean => {\n const stringValue =\n getEnvironmentVariable('VITE_ISFLIPDISHSTAFFOVERRIDE') ||\n getMicroFrontendAttribute('data-is-flipdish-staff') ||\n getMicroFrontendAttribute('data-isflipdishstaff');\n return stringValue?.toString() === 'true';\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const lazyWithRetry = (componentImport: () => any) =>\n lazy(async () => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const pageHasAlreadyBeenForceRefreshed = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n window.sessionStorage.getItem('page-has-been-force-refreshed') || 'false',\n );\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const component = await componentImport();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'false');\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return component;\n } catch (error) {\n if (!pageHasAlreadyBeenForceRefreshed) {\n // Assuming that the user is not on the latest version of the application.\n // Let's refresh the page immediately.\n window.sessionStorage.setItem('page-has-been-force-refreshed', 'true');\n return window.location.reload();\n }\n\n // The page has already been reloaded\n // Assuming that user is already using the latest version of the application.\n // Let's let the application crash and raise the error.\n throw error;\n }\n });\n"],"names":["getEnvironmentVariable","key","process","env","viteEnv","eval","getMicroFrontendAttribute","document","microFrontendDiv","getElementById","getAttribute","getAppId","getOrgId","getBrandId","getIsFlipdishStaff","stringValue","toString","lazyWithRetry","componentImport","lazy","async","pageHasAlreadyBeenForceRefreshed","JSON","parse","window","sessionStorage","getItem","component","setItem","error","location","reload"],"mappings":"wBAQO,MAAMA,uBAA0BC,MAErC,GAAuB,oBAAZC,SAA2BA,QAAQC,KAAmC,iBAArBD,QAAQC,IAAIF,KACtE,OAAOC,QAAQC,IAAIF,KAGrB,IAGE,MAAMG,QAAUC,KAAK,gBAAgBF,IACrC,OAAOC,UAAUH,MAAQ,EAC3B,CAAE,MACA,MAAO,EACT,GASWK,0BAA6BL,IACxC,GAAwB,oBAAbM,SACT,MAAO,GAET,MAAMC,EAAmBD,SAASE,eAAe,2BACjD,OAAOD,GAAkBE,aAAaT,IAAQ,IAYnCU,SAAW,IAEpBX,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBM,SAAW,IAEpBZ,uBAAuB,wBACvBM,0BAA0B,gBAC1BA,0BAA0B,cAajBO,WAAa,IAEtBb,uBAAuB,0BACvBM,0BAA0B,kBAC1BA,0BAA0B,gBAajBQ,mBAAqB,KAChC,MAAMC,EACJf,uBAAuB,iCACvBM,0BAA0B,2BAC1BA,0BAA0B,wBAC5B,MAAmC,SAA5BS,GAAaC,YAITC,cAAiBC,GAC5BC,MAAKC,UAEH,MAAMC,EAAmCC,KAAKC,MAE5CC,OAAOC,eAAeC,QAAQ,kCAAoC,SAGpE,IAEE,MAAMC,QAAkBT,IAKxB,OAHAM,OAAOC,eAAeG,QAAQ,gCAAiC,SAGxDD,CACT,CAAE,MAAOE,GACP,IAAKR,EAIH,OADAG,OAAOC,eAAeG,QAAQ,gCAAiC,QACxDJ,OAAOM,SAASC,SAMzB,MAAMF,CACR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/portal-library",
3
- "version": "7.12.0",
3
+ "version": "8.0.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1 +0,0 @@
1
- {"version":3,"file":"handleRequest.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.4_@types+node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.mjs"],"sourcesContent":["import { until } from \"until-async\";\nimport { executeHandlers } from './executeHandlers.mjs';\nimport { onUnhandledRequest } from './request/onUnhandledRequest.mjs';\nimport { storeResponseCookies } from './request/storeResponseCookies.mjs';\nasync function handleRequest(request, requestId, handlers, options, emitter, handleRequestOptions) {\n emitter.emit(\"request:start\", { request, requestId });\n if (request.headers.get(\"accept\")?.includes(\"msw/passthrough\")) {\n emitter.emit(\"request:end\", { request, requestId });\n handleRequestOptions?.onPassthroughResponse?.(request);\n return;\n }\n const [lookupError, lookupResult] = await until(() => {\n return executeHandlers({\n request,\n requestId,\n handlers,\n resolutionContext: handleRequestOptions?.resolutionContext\n });\n });\n if (lookupError) {\n emitter.emit(\"unhandledException\", {\n error: lookupError,\n request,\n requestId\n });\n throw lookupError;\n }\n if (!lookupResult) {\n await onUnhandledRequest(request, options.onUnhandledRequest);\n emitter.emit(\"request:unhandled\", { request, requestId });\n emitter.emit(\"request:end\", { request, requestId });\n handleRequestOptions?.onPassthroughResponse?.(request);\n return;\n }\n const { response } = lookupResult;\n if (!response) {\n emitter.emit(\"request:end\", { request, requestId });\n handleRequestOptions?.onPassthroughResponse?.(request);\n return;\n }\n if (response.status === 302 && response.headers.get(\"x-msw-intention\") === \"passthrough\") {\n emitter.emit(\"request:end\", { request, requestId });\n handleRequestOptions?.onPassthroughResponse?.(request);\n return;\n }\n await storeResponseCookies(request, response);\n emitter.emit(\"request:match\", { request, requestId });\n const requiredLookupResult = lookupResult;\n handleRequestOptions?.onMockedResponse?.(response, requiredLookupResult);\n emitter.emit(\"request:end\", { request, requestId });\n return response;\n}\nexport {\n handleRequest\n};\n//# sourceMappingURL=handleRequest.mjs.map"],"names":["async","handleRequest","request","requestId","handlers","options","emitter","handleRequestOptions","emit","headers","get","includes","onPassthroughResponse","lookupError","lookupResult","until","executeHandlers","resolutionContext","error","onUnhandledRequest","response","status","storeResponseCookies","requiredLookupResult","onMockedResponse"],"mappings":"uSAIAA,eAAeC,EAAcC,EAASC,EAAWC,EAAUC,EAASC,EAASC,GAE3E,GADAD,EAAQE,KAAK,gBAAiB,CAAEN,UAASC,cACrCD,EAAQO,QAAQC,IAAI,WAAWC,SAAS,mBAG1C,OAFAL,EAAQE,KAAK,cAAe,CAAEN,UAASC,mBACvCI,GAAsBK,wBAAwBV,GAGhD,MAAOW,EAAaC,SAAsBC,GAAM,IACvCC,EAAgB,CACrBd,UACAC,YACAC,WACAa,kBAAmBV,GAAsBU,sBAG7C,GAAIJ,EAMF,MALAP,EAAQE,KAAK,qBAAsB,CACjCU,MAAOL,EACPX,UACAC,cAEIU,EAER,IAAKC,EAKH,aAJMK,EAAmBjB,EAASG,EAAQc,oBAC1Cb,EAAQE,KAAK,oBAAqB,CAAEN,UAASC,cAC7CG,EAAQE,KAAK,cAAe,CAAEN,UAASC,mBACvCI,GAAsBK,wBAAwBV,GAGhD,MAAMkB,SAAEA,GAAaN,EACrB,IAAKM,EAGH,OAFAd,EAAQE,KAAK,cAAe,CAAEN,UAASC,mBACvCI,GAAsBK,wBAAwBV,GAGhD,GAAwB,MAApBkB,EAASC,QAA8D,gBAA5CD,EAASX,QAAQC,IAAI,mBAGlD,OAFAJ,EAAQE,KAAK,cAAe,CAAEN,UAASC,mBACvCI,GAAsBK,wBAAwBV,SAG1CoB,EAAqBpB,EAASkB,GACpCd,EAAQE,KAAK,gBAAiB,CAAEN,UAASC,cACzC,MAAMoB,EAAuBT,EAG7B,OAFAP,GAAsBiB,mBAAmBJ,EAAUG,GACnDjB,EAAQE,KAAK,cAAe,CAAEN,UAASC,cAChCiB,CACT","x_google_ignoreList":[0]}