@flipdish/portal-library 8.3.0 → 8.4.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 (186) hide show
  1. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js +1 -1
  2. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
  3. package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
  4. package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
  5. package/dist/mocks/msw/handlers.cjs.js +1 -1
  6. package/dist/mocks/msw/handlers.d.ts +1 -1
  7. package/dist/mocks/msw/handlers.js +1 -1
  8. package/dist/mocks/msw/server.cjs.js +1 -1
  9. package/dist/mocks/msw/server.d.ts +1 -1
  10. package/dist/mocks/msw/server.js +1 -1
  11. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  12. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  13. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  14. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  15. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  16. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  17. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  18. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  19. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  20. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  21. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  22. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  23. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  24. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  25. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  26. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  27. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  28. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  29. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  30. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  31. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
  32. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
  33. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  34. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  35. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  36. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  37. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  38. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  39. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  40. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  41. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  42. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  43. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  44. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  45. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  46. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  47. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  48. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  49. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  50. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  51. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  52. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  53. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  54. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  55. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  56. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  57. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  58. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  59. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  60. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  61. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  62. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  63. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  64. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  65. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  66. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  67. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  68. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  69. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  70. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  71. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  72. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  73. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  74. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  75. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  76. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  77. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  78. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  79. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  80. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  81. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  82. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  83. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  84. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  85. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  86. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  87. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  88. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  89. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  90. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  91. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  92. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
  93. package/package.json +2 -2
  94. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +0 -0
  95. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
  96. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
  97. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  98. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
  99. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  100. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  101. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
  102. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  103. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  104. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  105. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
  106. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  107. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  108. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  109. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  110. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  111. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  112. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  113. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  114. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  115. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  116. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  117. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  118. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  119. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  120. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  121. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  122. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  123. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  124. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  125. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  126. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  127. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  128. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  129. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  130. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  131. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  132. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  133. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  134. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  135. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  136. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  137. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  138. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  139. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  140. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  141. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  142. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  143. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  144. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  145. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  146. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  147. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  148. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  149. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  150. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  151. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  152. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  153. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  154. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  155. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  156. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
  157. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  158. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
  159. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  160. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  161. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  162. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  163. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  164. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  165. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  166. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  167. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  168. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  169. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  170. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  171. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  172. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  173. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  174. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  175. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  176. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  177. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  178. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +0 -0
  179. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +0 -0
  180. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
  181. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +0 -0
  182. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
  183. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  184. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  185. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  186. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@mui/material/Box/Box"),i=require("@mui/material/Stack/Stack"),a=require("@mui/material/styles/styled"),l=require("@mui/material/styles/useTheme"),n=require("../../../atoms/Button/index.cjs.js"),o=require("@mui/material/FormHelperText"),s=require("@mui/material/Typography"),c=require("../../../../icons/CancelCircle/index.cjs.js"),u=require("../../../../icons/Upload/index.cjs.js"),d=require("../../../../providers/TranslationProvider.cjs.js");const p=a(t,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({flex:"1",display:"flex",flexDirection:"column",height:"100%",boxSizing:"border-box",alignItems:"center",justifyContent:"center",padding:e.spacing(4),borderRadius:e.radius["radius-8"],border:r?`1px solid ${e.palette.semantic.stroke["stroke-error-weak"]}`:`1px dashed ${e.palette.semantic.stroke["stroke-strong"]}`,background:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.fill["fill-weaker"],cursor:"pointer",transition:"all 0.2s ease-in-out",[e.breakpoints.only("mobile")]:{justifyContent:"center",gap:e.spacing(4)}}))),m=a("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),f=a(t,{shouldForwardProp:e=>"hasError"!==e})((({hasError:e,theme:r})=>({display:"flex",flexDirection:"column",width:"48px",height:"48px",padding:"0px",justifyContent:"center",alignItems:"center",borderRadius:r.radius["radius-32"],backgroundColor:e?r.palette.semantic.fill["fill-error-weak"]:r.palette.semantic.fill["fill-primary-weak"]}))),h=a(n.Button)({alignSelf:"center"});module.exports=({handleUpload:t,multiple:a,maxFiles:n,maxFileSize:g,allowedFileTypes:x=[],disabled:b=!1,error:k,dragActiveText:j,dragInactiveText:y,browseButtonText:v,invalidFileTypesText:C,invalidFileSizeText:w,invalidFileCountText:_})=>{const T=l(),[F,D]=r.useState(!1),S=r.useRef(null),[q,P]=r.useState(null),{translate:E}=d.useTranslation(),z=k??q,B=r.useCallback((e=>{if(g&&e.size>g)return P(w||E("File_size_is_too_large",{maxFileSize:g?.toString()||""})),!1;const r=e.name.split(".").pop()?.toLowerCase();return!(x.length>0&&r&&!x.includes(r))||(P(C||E("File_type_is_not_allowed",{allowedFileTypes:x.join(", ")})),!1)}),[g,x,C,w,E]),I=r.useCallback((e=>{const r=Array.from(e),i=[];n&&r.length>n?P(_||E("Too_many_files_selected",{maxFiles:n.toString()})):(r.forEach((e=>{B(e)&&i.push(e)})),i.length>0&&(P(null),t(i)))}),[n,B,t,_,E]),R=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b||D(!0)}),[b]),A=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b||D(!1)}),[b]),L=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]),U=r.useCallback((e=>{if(e.preventDefault(),e.stopPropagation(),b)return;D(!1);const r=e.dataTransfer.files;r&&r.length>0&&I(r)}),[b,I]),$=r.useCallback((e=>{if(b)return;const r=e.target.files;r&&r.length>0&&I(r),S.current&&(S.current.value="")}),[b,I]),H=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),S.current?.click()}),[]),K=r.useCallback((()=>{b||S.current?.click()}),[b]);return e.jsxs(e.Fragment,{children:[!!z&&e.jsxs(o,{error:!0,children:[e.jsx(c,{}),z]}),e.jsxs(p,{"data-fd":"file-drop-zone",hasError:!!z,onClick:b?void 0:K,onDragEnter:R,onDragLeave:A,onDragOver:L,onDrop:U,children:[e.jsx(m,{ref:S,"data-fd":"file-upload-input",disabled:b,multiple:a,onChange:$,type:"file"}),e.jsxs(i,{alignItems:"center",direction:"column",gap:T.spacing(2),justifyContent:"center",width:"100%",children:[e.jsx(f,{hasError:!!z,children:e.jsx(u,{color:z?T.palette.semantic.icon["icon-error"]:T.palette.semantic.icon["icon-primary"]})}),e.jsx(s,{variant:"b1Strong",children:F?j||E("Drop_files_here"):y||E("Drag_and_drop_files_here")}),e.jsx(h,{disabled:b,fdKey:"file-upload-btn",onClick:b?void 0:H,variant:"secondary",children:v||E("Browse_files")})]})]})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("@mui/material/Box/Box"),i=require("@mui/material/Stack/Stack"),a=require("@mui/material/styles/styled"),l=require("@mui/material/styles/useTheme"),n=require("../../../atoms/Button/index.cjs.js"),o=require("@mui/material/FormHelperText"),s=require("@mui/material/Typography"),c=require("../../../../icons/CancelCircle/index.cjs.js"),u=require("../../../../icons/Upload/index.cjs.js"),d=require("../../../../providers/TranslationProvider.cjs.js");const p=a(t,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({flex:"1",display:"flex",flexDirection:"column",height:"100%",boxSizing:"border-box",alignItems:"center",justifyContent:"center",padding:e.spacing(4),borderRadius:e.radius["radius-8"],border:r?`1px solid ${e.palette.semantic.stroke["stroke-error-weak"]}`:`1px dashed ${e.palette.semantic.stroke["stroke-strong"]}`,background:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.fill["fill-weaker"],cursor:"pointer",transition:"all 0.2s ease-in-out",[e.breakpoints.only("mobile")]:{justifyContent:"center",gap:e.spacing(4)}}))),m=a("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),f=a(t,{shouldForwardProp:e=>"hasError"!==e})((({hasError:e,theme:r})=>({display:"flex",flexDirection:"column",width:"48px",height:"48px",padding:"0px",justifyContent:"center",alignItems:"center",borderRadius:r.radius["radius-32"],backgroundColor:e?r.palette.semantic.fill["fill-error-weak"]:r.palette.semantic.fill["fill-primary-weak"]}))),h=a(n.Button)({alignSelf:"center"});module.exports=({handleUpload:t,multiple:a,maxFiles:n,maxFileSize:g,allowedFileTypes:x=[],disabled:b=!1,error:k,dragActiveText:j,dragInactiveText:y,browseButtonText:v,invalidFileTypesText:C,invalidFileSizeText:w,invalidFileCountText:_})=>{const T=l(),[F,D]=r.useState(!1),S=r.useRef(null),[q,P]=r.useState(null),{translate:E}=d.useTranslation(),z=q??k,B=r.useMemo((()=>{if(x.length)return x.filter(Boolean).map((e=>e.startsWith(".")?e:`.${e}`)).join(",")}),[x]),I=r.useCallback((e=>{if(g&&e.size>g)return P(w||E("File_size_is_too_large",{maxFileSize:g?.toString()||""})),!1;const r=e.name.split(".").pop()?.toLowerCase();return!(x.length>0&&r&&!x.includes(r))||(P(C||E("File_type_is_not_allowed",{allowedFileTypes:x.join(", ")})),!1)}),[g,x,C,w,E]),R=r.useCallback((e=>{const r=Array.from(e),i=[];n&&r.length>n?P(_||E("Too_many_files_selected",{maxFiles:n.toString()})):(r.forEach((e=>{I(e)&&i.push(e)})),i.length>0&&(P(null),t(i)))}),[n,I,t,_,E]),$=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b||D(!0)}),[b]),A=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b||D(!1)}),[b]),L=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]),U=r.useCallback((e=>{if(e.preventDefault(),e.stopPropagation(),b)return;D(!1);const r=e.dataTransfer.files;r&&r.length>0&&R(r)}),[b,R]),H=r.useCallback((e=>{if(b)return;const r=e.target.files;r&&r.length>0&&R(r),S.current&&(S.current.value="")}),[b,R]),K=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),S.current?.click()}),[]),M=r.useCallback((()=>{b||S.current?.click()}),[b]);return e.jsxs(e.Fragment,{children:[!!z&&e.jsxs(o,{error:!0,children:[e.jsx(c,{}),z]}),e.jsxs(p,{"data-fd":"file-drop-zone",hasError:!!z,onClick:b?void 0:M,onDragEnter:$,onDragLeave:A,onDragOver:L,onDrop:U,children:[e.jsx(m,{ref:S,accept:B,"data-fd":"file-upload-input",disabled:b,multiple:a,onChange:H,type:"file"}),e.jsxs(i,{alignItems:"center",direction:"column",gap:T.spacing(2),justifyContent:"center",width:"100%",children:[e.jsx(f,{hasError:!!z,children:e.jsx(u,{color:z?T.palette.semantic.icon["icon-error"]:T.palette.semantic.icon["icon-primary"]})}),e.jsx(s,{variant:"b1Strong",children:F?j||E("Drop_files_here"):y||E("Drag_and_drop_files_here")}),e.jsx(h,{disabled:b,fdKey:"file-upload-btn",onClick:b?void 0:K,variant:"secondary",children:v||E("Browse_files")})]})]})]})};
2
2
  //# sourceMappingURL=FileDropZone.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileDropZone.cjs.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileDropZone.tsx"],"sourcesContent":["import React, { useCallback, useRef, useState } from 'react';\n\nimport Box from '@mui/material/Box/Box';\nimport Stack from '@mui/material/Stack/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport FlipdishButton from '@fd/components/atoms/Button';\nimport FlipdishFormHelperText from '@fd/components/atoms/FormHelperText';\nimport FlipdishTypography from '@fd/components/atoms/Typography';\nimport CancelCircleIcon from '@fd/icons/CancelCircle';\nimport UploadIcon from '@fd/icons/Upload';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nconst StyledUploadAreaContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n flex: '1',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n padding: theme.spacing(4),\n borderRadius: theme.radius['radius-8'],\n border: hasError\n ? `1px solid ${theme.palette.semantic.stroke['stroke-error-weak']}`\n : `1px dashed ${theme.palette.semantic.stroke['stroke-strong']}`,\n background: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-weaker'],\n cursor: 'pointer',\n transition: 'all 0.2s ease-in-out',\n [theme.breakpoints.only('mobile')]: {\n justifyContent: 'center',\n gap: theme.spacing(4),\n },\n}));\n\nconst VisuallyHiddenInput = styled('input')({\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: 1,\n overflow: 'hidden',\n position: 'absolute',\n bottom: 0,\n left: 0,\n whiteSpace: 'nowrap',\n width: 1,\n});\n\nconst StyledIconContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ hasError, theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '48px',\n height: '48px',\n padding: '0px',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: theme.radius['radius-32'],\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-primary-weak'],\n}));\n\nconst StyledButton = styled(FlipdishButton)({\n alignSelf: 'center',\n});\n\n/**\n * Props for the FileDropZone component.\n * Provides a drag-and-drop file upload interface with validation.\n */\nexport interface FileDropZoneProps {\n /**\n * Callback function invoked when files are successfully validated and ready to upload.\n * @param files - Array of File objects to be uploaded\n */\n handleUpload: (files: File[]) => void;\n\n /**\n * Whether multiple files can be selected at once.\n * @default true\n */\n multiple?: boolean;\n\n /**\n * Maximum number of files that can be selected in a single operation.\n * If exceeded, an error message will be displayed.\n * @default undefined (no limit)\n */\n maxFiles?: number;\n\n /**\n * Maximum file size allowed in bytes.\n * Files exceeding this size will be rejected with an error message.\n * Example: 10 * 1024 * 1024 for 10MB\n * @default undefined (no limit)\n */\n maxFileSize?: number;\n\n /**\n * Array of allowed file extensions (without dots).\n * Files with extensions not in this list will be rejected.\n * Example: ['jpg', 'png', 'pdf']\n * @default [] (all file types allowed)\n */\n allowedFileTypes?: string[];\n\n /**\n * Whether the file drop zone is disabled.\n * When true, prevents all file selection and drag-and-drop interactions.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Optional custom error message to display at the top.\n */\n error?: string | null;\n\n /**\n * Text displayed when files are being dragged over the drop zone.\n * @default 'Drop files here'\n */\n dragActiveText?: string;\n\n /**\n * Text displayed when no files are being dragged (idle state).\n * @default 'Drag and drop files here'\n */\n dragInactiveText?: string;\n\n /**\n * Text displayed on the browse/upload button.\n * @default 'Browse files'\n */\n browseButtonText?: string;\n\n /**\n * Text displayed when a file type is not allowed.\n * @default 'File type is not allowed. Allowed types: {allowedFileTypes}'\n */\n invalidFileTypesText?: string;\n\n /**\n * Text displayed when a file size is too large.\n * @default 'File size is too large. Maximum size: {maxFileSize}'\n */\n invalidFileSizeText?: string;\n\n /**\n * Text displayed when too many files are selected.\n * @default 'Too many files selected. Maximum allowed: {maxFiles}'\n */\n invalidFileCountText?: string;\n}\n\nconst FileDropZone: React.FC<FileDropZoneProps> = ({\n handleUpload,\n multiple,\n maxFiles,\n maxFileSize,\n allowedFileTypes = [],\n disabled = false,\n error,\n dragActiveText,\n dragInactiveText,\n browseButtonText,\n invalidFileTypesText,\n invalidFileSizeText,\n invalidFileCountText,\n}) => {\n const theme = useTheme();\n const [isDragActive, setIsDragActive] = useState(false);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [validationError, setValidationError] = useState<string | null>(null);\n const { translate } = useTranslation();\n const displayError = error ?? validationError;\n\n const validateFile = useCallback(\n (file: File): boolean => {\n // Check file size\n if (maxFileSize && file.size > maxFileSize) {\n setValidationError(\n invalidFileSizeText ||\n translate('File_size_is_too_large', { maxFileSize: maxFileSize?.toString() || '' }),\n );\n return false;\n }\n\n // Check file type\n const fileExtension = file.name.split('.').pop()?.toLowerCase();\n if (allowedFileTypes.length > 0 && fileExtension && !allowedFileTypes.includes(fileExtension)) {\n setValidationError(\n invalidFileTypesText ||\n translate('File_type_is_not_allowed', { allowedFileTypes: allowedFileTypes.join(', ') }),\n );\n return false;\n }\n\n return true;\n },\n [maxFileSize, allowedFileTypes, invalidFileTypesText, invalidFileSizeText, translate],\n );\n\n const processFiles = useCallback(\n (files: File[] | FileList) => {\n const fileArray = Array.from(files);\n const validFiles: File[] = [];\n\n // Check max files limit\n if (maxFiles && fileArray.length > maxFiles) {\n setValidationError(\n invalidFileCountText || translate('Too_many_files_selected', { maxFiles: maxFiles.toString() }),\n );\n return;\n }\n\n // Validate each file\n fileArray.forEach((file) => {\n if (validateFile(file)) {\n validFiles.push(file);\n }\n });\n\n if (validFiles.length > 0) {\n setValidationError(null);\n handleUpload(validFiles);\n }\n },\n [maxFiles, validateFile, handleUpload, invalidFileCountText, translate],\n );\n\n const handleDragEnter = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(true);\n },\n [disabled],\n );\n\n const handleDragLeave = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n },\n [disabled],\n );\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n\n const files = e.dataTransfer.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n },\n [disabled, processFiles],\n );\n\n const handleFileInputChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (disabled) return;\n\n const files = e.target.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n\n // Reset input value to allow selecting the same file again\n if (fileInputRef.current) {\n fileInputRef.current.value = '';\n }\n },\n [disabled, processFiles],\n );\n\n const handleButtonClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n event.stopPropagation();\n fileInputRef.current?.click();\n }, []);\n\n const handleContainerClick = useCallback(() => {\n if (disabled) return;\n\n fileInputRef.current?.click();\n }, [disabled]);\n\n return (\n <>\n {!!displayError && (\n <FlipdishFormHelperText error>\n <CancelCircleIcon />\n {displayError}\n </FlipdishFormHelperText>\n )}\n <StyledUploadAreaContainer\n data-fd=\"file-drop-zone\"\n hasError={!!displayError}\n onClick={disabled ? undefined : handleContainerClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n >\n <VisuallyHiddenInput\n ref={fileInputRef}\n data-fd=\"file-upload-input\"\n disabled={disabled}\n multiple={multiple}\n onChange={handleFileInputChange}\n type=\"file\"\n />\n\n <Stack\n alignItems=\"center\"\n direction=\"column\"\n gap={theme.spacing(2)}\n justifyContent=\"center\"\n width=\"100%\"\n >\n <StyledIconContainer hasError={!!displayError}>\n <UploadIcon\n color={\n displayError\n ? theme.palette.semantic.icon['icon-error']\n : theme.palette.semantic.icon['icon-primary']\n }\n />\n </StyledIconContainer>\n\n <FlipdishTypography variant=\"b1Strong\">\n {isDragActive\n ? dragActiveText || translate('Drop_files_here')\n : dragInactiveText || translate('Drag_and_drop_files_here')}\n </FlipdishTypography>\n\n <StyledButton\n disabled={disabled}\n fdKey=\"file-upload-btn\"\n onClick={disabled ? undefined : handleButtonClick}\n variant=\"secondary\"\n >\n {browseButtonText || translate('Browse_files')}\n </StyledButton>\n </Stack>\n </StyledUploadAreaContainer>\n </>\n );\n};\n\nexport default FileDropZone;\n"],"names":["StyledUploadAreaContainer","styled","Box","shouldForwardProp","prop","theme","hasError","flex","display","flexDirection","height","boxSizing","alignItems","justifyContent","padding","spacing","borderRadius","radius","border","palette","semantic","stroke","background","fill","cursor","transition","breakpoints","only","gap","VisuallyHiddenInput","clip","clipPath","overflow","position","bottom","left","whiteSpace","width","StyledIconContainer","backgroundColor","StyledButton","FlipdishButton","alignSelf","handleUpload","multiple","maxFiles","maxFileSize","allowedFileTypes","disabled","error","dragActiveText","dragInactiveText","browseButtonText","invalidFileTypesText","invalidFileSizeText","invalidFileCountText","useTheme","isDragActive","setIsDragActive","useState","fileInputRef","useRef","validationError","setValidationError","translate","useTranslation","displayError","validateFile","useCallback","file","size","toString","fileExtension","name","split","pop","toLowerCase","length","includes","join","processFiles","files","fileArray","Array","from","validFiles","forEach","push","handleDragEnter","e","preventDefault","stopPropagation","handleDragLeave","handleDragOver","handleDrop","dataTransfer","handleFileInputChange","target","current","value","handleButtonClick","event","click","handleContainerClick","_jsxs","_Fragment","children","FlipdishFormHelperText","_jsx","CancelCircleIcon","onClick","undefined","onDragEnter","onDragLeave","onDragOver","onDrop","ref","onChange","type","Stack","direction","UploadIcon","color","icon","FlipdishTypography","variant","fdKey"],"mappings":"2gBAcA,MAAMA,EAA4BC,EAAOC,EAAK,CAC5CC,kBAAoBC,GAAkB,aAATA,GADGH,EAEP,EAAGI,QAAOC,eAAU,CAC7CC,KAAM,IACNC,QAAS,OACTC,cAAe,SACfC,OAAQ,OACRC,UAAW,aACXC,WAAY,SACZC,eAAgB,SAChBC,QAAST,EAAMU,QAAQ,GACvBC,aAAcX,EAAMY,OAAO,YAC3BC,OAAQZ,EACJ,aAAaD,EAAMc,QAAQC,SAASC,OAAO,uBAC3C,cAAchB,EAAMc,QAAQC,SAASC,OAAO,mBAChDC,WAAYhB,EACRD,EAAMc,QAAQC,SAASG,KAAK,mBAC5BlB,EAAMc,QAAQC,SAASG,KAAK,eAChCC,OAAQ,UACRC,WAAY,uBACZ,CAACpB,EAAMqB,YAAYC,KAAK,WAAY,CAClCd,eAAgB,SAChBe,IAAKvB,EAAMU,QAAQ,QAIjBc,EAAsB5B,EAAO,QAAPA,CAAgB,CAC1C6B,KAAM,gBACNC,SAAU,aACVrB,OAAQ,EACR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AaxB,EACbyB,YAAarB,EACbsB,WAAYrB,EACZsB,OAAQrB,EAAUY,SAAA,CAElBE,EAAAA,IAAC/E,EAAmB,CAClBuF,IAAKxD,EAAY,UACT,oBACRZ,SAAUA,EACVJ,SAAUA,EACVyE,SAAUrB,EACVsB,KAAK,SAGPd,EAAAA,KAACe,EAAK,CACJ3G,WAAW,SACX4G,UAAU,SACV5F,IAAKvB,EAAMU,QAAQ,GACnBF,eAAe,SACfwB,MAAM,OAAMqE,SAAA,CAEZE,EAAAA,IAACtE,EAAmB,CAAChC,WAAY4D,EAAYwC,SAC3CE,EAAAA,IAACa,EAAU,CACTC,MACExD,EACI7D,EAAMc,QAAQC,SAASuG,KAAK,cAC5BtH,EAAMc,QAAQC,SAASuG,KAAK,oBAKtCf,EAAAA,IAACgB,GAAmBC,QAAQ,WAAUnB,SACnCjD,EACGP,GAAkBc,EAAU,mBAC5Bb,GAAoBa,EAAU,8BAGpC4C,EAAAA,IAACpE,EAAY,CACXQ,SAAUA,EACV8E,MAAM,kBACNhB,QAAS9D,OAAW+D,EAAYX,EAChCyB,QAAQ,YAAWnB,SAElBtD,GAAoBY,EAAU"}
1
+ {"version":3,"file":"FileDropZone.cjs.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileDropZone.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport Box from '@mui/material/Box/Box';\nimport Stack from '@mui/material/Stack/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport FlipdishButton from '@fd/components/atoms/Button';\nimport FlipdishFormHelperText from '@fd/components/atoms/FormHelperText';\nimport FlipdishTypography from '@fd/components/atoms/Typography';\nimport CancelCircleIcon from '@fd/icons/CancelCircle';\nimport UploadIcon from '@fd/icons/Upload';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nconst StyledUploadAreaContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n flex: '1',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n padding: theme.spacing(4),\n borderRadius: theme.radius['radius-8'],\n border: hasError\n ? `1px solid ${theme.palette.semantic.stroke['stroke-error-weak']}`\n : `1px dashed ${theme.palette.semantic.stroke['stroke-strong']}`,\n background: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-weaker'],\n cursor: 'pointer',\n transition: 'all 0.2s ease-in-out',\n [theme.breakpoints.only('mobile')]: {\n justifyContent: 'center',\n gap: theme.spacing(4),\n },\n}));\n\nconst VisuallyHiddenInput = styled('input')({\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: 1,\n overflow: 'hidden',\n position: 'absolute',\n bottom: 0,\n left: 0,\n whiteSpace: 'nowrap',\n width: 1,\n});\n\nconst StyledIconContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ hasError, theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '48px',\n height: '48px',\n padding: '0px',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: theme.radius['radius-32'],\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-primary-weak'],\n}));\n\nconst StyledButton = styled(FlipdishButton)({\n alignSelf: 'center',\n});\n\n/**\n * Props for the FileDropZone component.\n * Provides a drag-and-drop file upload interface with validation.\n */\nexport interface FileDropZoneProps {\n /**\n * Callback function invoked when files are successfully validated and ready to upload.\n * @param files - Array of File objects to be uploaded\n */\n handleUpload: (files: File[]) => void;\n\n /**\n * Whether multiple files can be selected at once.\n * @default true\n */\n multiple?: boolean;\n\n /**\n * Maximum number of files that can be selected in a single operation.\n * If exceeded, an error message will be displayed.\n * @default undefined (no limit)\n */\n maxFiles?: number;\n\n /**\n * Maximum file size allowed in bytes.\n * Files exceeding this size will be rejected with an error message.\n * Example: 10 * 1024 * 1024 for 10MB\n * @default undefined (no limit)\n */\n maxFileSize?: number;\n\n /**\n * Array of allowed file extensions (without dots).\n * Files with extensions not in this list will be rejected.\n * Example: ['jpg', 'png', 'pdf']\n * @default [] (all file types allowed)\n */\n allowedFileTypes?: string[];\n\n /**\n * Whether the file drop zone is disabled.\n * When true, prevents all file selection and drag-and-drop interactions.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Optional custom error message to display at the top.\n */\n error?: string | null;\n\n /**\n * Text displayed when files are being dragged over the drop zone.\n * @default 'Drop files here'\n */\n dragActiveText?: string;\n\n /**\n * Text displayed when no files are being dragged (idle state).\n * @default 'Drag and drop files here'\n */\n dragInactiveText?: string;\n\n /**\n * Text displayed on the browse/upload button.\n * @default 'Browse files'\n */\n browseButtonText?: string;\n\n /**\n * Text displayed when a file type is not allowed.\n * @default 'File type is not allowed. Allowed types: {allowedFileTypes}'\n */\n invalidFileTypesText?: string;\n\n /**\n * Text displayed when a file size is too large.\n * @default 'File size is too large. Maximum size: {maxFileSize}'\n */\n invalidFileSizeText?: string;\n\n /**\n * Text displayed when too many files are selected.\n * @default 'Too many files selected. Maximum allowed: {maxFiles}'\n */\n invalidFileCountText?: string;\n}\n\nconst FileDropZone: React.FC<FileDropZoneProps> = ({\n handleUpload,\n multiple,\n maxFiles,\n maxFileSize,\n allowedFileTypes = [],\n disabled = false,\n error,\n dragActiveText,\n dragInactiveText,\n browseButtonText,\n invalidFileTypesText,\n invalidFileSizeText,\n invalidFileCountText,\n}) => {\n const theme = useTheme();\n const [isDragActive, setIsDragActive] = useState(false);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [validationError, setValidationError] = useState<string | null>(null);\n const { translate } = useTranslation();\n const displayError = validationError ?? error;\n const inputAccept = useMemo(() => {\n if (!allowedFileTypes.length) return undefined;\n\n return allowedFileTypes\n .filter(Boolean)\n .map((ext) => (ext.startsWith('.') ? ext : `.${ext}`))\n .join(',');\n }, [allowedFileTypes]);\n\n const validateFile = useCallback(\n (file: File): boolean => {\n // Check file size\n if (maxFileSize && file.size > maxFileSize) {\n setValidationError(\n invalidFileSizeText ||\n translate('File_size_is_too_large', { maxFileSize: maxFileSize?.toString() || '' }),\n );\n return false;\n }\n\n // Check file type\n const fileExtension = file.name.split('.').pop()?.toLowerCase();\n if (allowedFileTypes.length > 0 && fileExtension && !allowedFileTypes.includes(fileExtension)) {\n setValidationError(\n invalidFileTypesText ||\n translate('File_type_is_not_allowed', { allowedFileTypes: allowedFileTypes.join(', ') }),\n );\n return false;\n }\n\n return true;\n },\n [maxFileSize, allowedFileTypes, invalidFileTypesText, invalidFileSizeText, translate],\n );\n\n const processFiles = useCallback(\n (files: File[] | FileList) => {\n const fileArray = Array.from(files);\n const validFiles: File[] = [];\n\n // Check max files limit\n if (maxFiles && fileArray.length > maxFiles) {\n setValidationError(\n invalidFileCountText || translate('Too_many_files_selected', { maxFiles: maxFiles.toString() }),\n );\n return;\n }\n\n // Validate each file\n fileArray.forEach((file) => {\n if (validateFile(file)) {\n validFiles.push(file);\n }\n });\n\n if (validFiles.length > 0) {\n setValidationError(null);\n handleUpload(validFiles);\n }\n },\n [maxFiles, validateFile, handleUpload, invalidFileCountText, translate],\n );\n\n const handleDragEnter = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(true);\n },\n [disabled],\n );\n\n const handleDragLeave = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n },\n [disabled],\n );\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n\n const files = e.dataTransfer.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n },\n [disabled, processFiles],\n );\n\n const handleFileInputChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (disabled) return;\n\n const files = e.target.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n\n // Reset input value to allow selecting the same file again\n if (fileInputRef.current) {\n fileInputRef.current.value = '';\n }\n },\n [disabled, processFiles],\n );\n\n const handleButtonClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n event.stopPropagation();\n fileInputRef.current?.click();\n }, []);\n\n const handleContainerClick = useCallback(() => {\n if (disabled) return;\n\n fileInputRef.current?.click();\n }, [disabled]);\n\n return (\n <>\n {!!displayError && (\n <FlipdishFormHelperText error>\n <CancelCircleIcon />\n {displayError}\n </FlipdishFormHelperText>\n )}\n <StyledUploadAreaContainer\n data-fd=\"file-drop-zone\"\n hasError={!!displayError}\n onClick={disabled ? undefined : handleContainerClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n >\n <VisuallyHiddenInput\n ref={fileInputRef}\n accept={inputAccept}\n data-fd=\"file-upload-input\"\n disabled={disabled}\n multiple={multiple}\n onChange={handleFileInputChange}\n type=\"file\"\n />\n\n <Stack\n alignItems=\"center\"\n direction=\"column\"\n gap={theme.spacing(2)}\n justifyContent=\"center\"\n width=\"100%\"\n >\n <StyledIconContainer hasError={!!displayError}>\n <UploadIcon\n color={\n displayError\n ? theme.palette.semantic.icon['icon-error']\n : theme.palette.semantic.icon['icon-primary']\n }\n />\n </StyledIconContainer>\n\n <FlipdishTypography variant=\"b1Strong\">\n {isDragActive\n ? dragActiveText || translate('Drop_files_here')\n : dragInactiveText || translate('Drag_and_drop_files_here')}\n </FlipdishTypography>\n\n <StyledButton\n disabled={disabled}\n fdKey=\"file-upload-btn\"\n onClick={disabled ? undefined : handleButtonClick}\n variant=\"secondary\"\n >\n {browseButtonText || translate('Browse_files')}\n </StyledButton>\n </Stack>\n </StyledUploadAreaContainer>\n </>\n );\n};\n\nexport default FileDropZone;\n"],"names":["StyledUploadAreaContainer","styled","Box","shouldForwardProp","prop","theme","hasError","flex","display","flexDirection","height","boxSizing","alignItems","justifyContent","padding","spacing","borderRadius","radius","border","palette","semantic","stroke","background","fill","cursor","transition","breakpoints","only","gap","VisuallyHiddenInput","clip","clipPath","overflow","position","bottom","left","whiteSpace","width","StyledIconContainer","backgroundColor","StyledButton","FlipdishButton","alignSelf","handleUpload","multiple","maxFiles","maxFileSize","allowedFileTypes","disabled","error","dragActiveText","dragInactiveText","browseButtonText","invalidFileTypesText","invalidFileSizeText","invalidFileCountText","useTheme","isDragActive","setIsDragActive","useState","fileInputRef","useRef","validationError","setValidationError","translate","useTranslation","displayError","inputAccept","useMemo","length","filter","Boolean","map","ext","startsWith","join","validateFile","useCallback","file","size","toString","fileExtension","name","split","pop","toLowerCase","includes","processFiles","files","fileArray","Array","from","validFiles","forEach","push","handleDragEnter","e","preventDefault","stopPropagation","handleDragLeave","handleDragOver","handleDrop","dataTransfer","handleFileInputChange","target","current","value","handleButtonClick","event","click","handleContainerClick","_jsxs","_Fragment","children","FlipdishFormHelperText","_jsx","CancelCircleIcon","onClick","undefined","onDragEnter","onDragLeave","onDragOver","onDrop","ref","accept","onChange","type","Stack","direction","UploadIcon","color","icon","FlipdishTypography","variant","fdKey"],"mappings":"2gBAcA,MAAMA,EAA4BC,EAAOC,EAAK,CAC5CC,kBAAoBC,GAAkB,aAATA,GADGH,EAEP,EAAGI,QAAOC,eAAU,CAC7CC,KAAM,IACNC,QAAS,OACTC,cAAe,SACfC,OAAQ,OACRC,UAAW,aACXC,WAAY,SACZC,eAAgB,SAChBC,QAAST,EAAMU,QAAQ,GACvBC,aAAcX,EAAMY,OAAO,YAC3BC,OAAQZ,EACJ,aAAaD,EAAMc,QAAQC,SAASC,OAAO,uBAC3C,cAAchB,EAAMc,QAAQC,SAASC,OAAO,mBAChDC,WAAYhB,EACRD,EAAMc,QAAQC,SAASG,KAAK,mBAC5BlB,EAAMc,QAAQC,SAASG,KA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MX,iBACNW,EAAMV,kBACNtC,EAAa6C,SAASI,UACrB,IAEGC,EAAuBjC,EAAAA,aAAY,KACnC7B,GAEJY,EAAa6C,SAASI,UACrB,CAAC7D,IAEJ,OACE+D,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,SAAA,GACK/C,GACD6C,OAACG,EAAsB,CAACjE,OAAK,EAAAgE,SAAA,CAC3BE,EAAAA,IAACC,EAAgB,CAAA,GAChBlD,KAGL6C,EAAAA,KAAC/G,EAAyB,CAAA,UAChB,iBACRM,WAAY4D,EACZmD,QAASrE,OAAWsE,EAAYR,EAChCS,YAAaxB,EACbyB,YAAarB,EACbsB,WAAYrB,EACZsB,OAAQrB,EAAUY,SAAA,CAElBE,MAACtF,EAAmB,CAClB8F,IAAK/D,EACLgE,OAAQzD,EAAW,UACX,oBACRnB,SAAUA,EACVJ,SAAUA,EACViF,SAAUtB,EACVuB,KAAK,SAGPf,EAAAA,KAACgB,EAAK,CACJnH,WAAW,SACXoH,UAAU,SACVpG,IAAKvB,EAAMU,QAAQ,GACnBF,eAAe,SACfwB,MAAM,OAAM4E,SAAA,CAEZE,EAAAA,IAAC7E,EAAmB,CAAChC,WAAY4D,EAAY+C,SAC3CE,EAAAA,IAACc,EAAU,CACTC,MACEhE,EACI7D,EAAMc,QAAQC,SAAS+G,KAAK,cAC5B9H,EAAMc,QAAQC,SAAS+G,KAAK,oBAKtChB,EAAAA,IAACiB,GAAmBC,QAAQ,WAAUpB,SACnCxD,EACGP,GAAkBc,EAAU,mBAC5Bb,GAAoBa,EAAU,8BAGpCmD,EAAAA,IAAC3E,EAAY,CACXQ,SAAUA,EACVsF,MAAM,kBACNjB,QAASrE,OAAWsE,EAAYX,EAChC0B,QAAQ,YAAWpB,SAElB7D,GAAoBY,EAAU"}
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as o,useCallback as a}from"react";import l from"@mui/material/Box/Box";import n from"@mui/material/Stack/Stack";import s from"@mui/material/styles/styled";import p from"@mui/material/styles/useTheme";import{Button as d}from"../../../atoms/Button/index.js";import c from"@mui/material/FormHelperText";import m from"@mui/material/Typography";import f from"../../../../icons/CancelCircle/index.js";import u from"../../../../icons/Upload/index.js";import{useTranslation as h}from"../../../../providers/TranslationProvider.js";const g=s(l,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({flex:"1",display:"flex",flexDirection:"column",height:"100%",boxSizing:"border-box",alignItems:"center",justifyContent:"center",padding:e.spacing(4),borderRadius:e.radius["radius-8"],border:r?`1px solid ${e.palette.semantic.stroke["stroke-error-weak"]}`:`1px dashed ${e.palette.semantic.stroke["stroke-strong"]}`,background:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.fill["fill-weaker"],cursor:"pointer",transition:"all 0.2s ease-in-out",[e.breakpoints.only("mobile")]:{justifyContent:"center",gap:e.spacing(4)}}))),x=s("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),y=s(l,{shouldForwardProp:e=>"hasError"!==e})((({hasError:e,theme:r})=>({display:"flex",flexDirection:"column",width:"48px",height:"48px",padding:"0px",justifyContent:"center",alignItems:"center",borderRadius:r.radius["radius-32"],backgroundColor:e?r.palette.semantic.fill["fill-error-weak"]:r.palette.semantic.fill["fill-primary-weak"]}))),v=s(d)({alignSelf:"center"}),w=({handleUpload:l,multiple:s,maxFiles:d,maxFileSize:w,allowedFileTypes:b=[],disabled:k=!1,error:_,dragActiveText:T,dragInactiveText:F,browseButtonText:D,invalidFileTypesText:C,invalidFileSizeText:S,invalidFileCountText:j})=>{const P=p(),[E,z]=i(!1),B=o(null),[I,A]=i(null),{translate:L}=h(),R=_??I,U=a((e=>{if(w&&e.size>w)return A(S||L("File_size_is_too_large",{maxFileSize:w?.toString()||""})),!1;const r=e.name.split(".").pop()?.toLowerCase();return!(b.length>0&&r&&!b.includes(r))||(A(C||L("File_type_is_not_allowed",{allowedFileTypes:b.join(", ")})),!1)}),[w,b,C,S,L]),$=a((e=>{const r=Array.from(e),t=[];d&&r.length>d?A(j||L("Too_many_files_selected",{maxFiles:d.toString()})):(r.forEach((e=>{U(e)&&t.push(e)})),t.length>0&&(A(null),l(t)))}),[d,U,l,j,L]),H=a((e=>{e.preventDefault(),e.stopPropagation(),k||z(!0)}),[k]),K=a((e=>{e.preventDefault(),e.stopPropagation(),k||z(!1)}),[k]),O=a((e=>{e.preventDefault(),e.stopPropagation()}),[]),q=a((e=>{if(e.preventDefault(),e.stopPropagation(),k)return;z(!1);const r=e.dataTransfer.files;r&&r.length>0&&$(r)}),[k,$]),G=a((e=>{if(k)return;const r=e.target.files;r&&r.length>0&&$(r),B.current&&(B.current.value="")}),[k,$]),J=a((e=>{e.preventDefault(),e.stopPropagation(),B.current?.click()}),[]),M=a((()=>{k||B.current?.click()}),[k]);return e(r,{children:[!!R&&e(c,{error:!0,children:[t(f,{}),R]}),e(g,{"data-fd":"file-drop-zone",hasError:!!R,onClick:k?void 0:M,onDragEnter:H,onDragLeave:K,onDragOver:O,onDrop:q,children:[t(x,{ref:B,"data-fd":"file-upload-input",disabled:k,multiple:s,onChange:G,type:"file"}),e(n,{alignItems:"center",direction:"column",gap:P.spacing(2),justifyContent:"center",width:"100%",children:[t(y,{hasError:!!R,children:t(u,{color:R?P.palette.semantic.icon["icon-error"]:P.palette.semantic.icon["icon-primary"]})}),t(m,{variant:"b1Strong",children:E?T||L("Drop_files_here"):F||L("Drag_and_drop_files_here")}),t(v,{disabled:k,fdKey:"file-upload-btn",onClick:k?void 0:J,variant:"secondary",children:D||L("Browse_files")})]})]})]})};export{w as default};
1
+ import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as o,useMemo as a,useCallback as l}from"react";import n from"@mui/material/Box/Box";import s from"@mui/material/Stack/Stack";import p from"@mui/material/styles/styled";import d from"@mui/material/styles/useTheme";import{Button as c}from"../../../atoms/Button/index.js";import m from"@mui/material/FormHelperText";import f from"@mui/material/Typography";import u from"../../../../icons/CancelCircle/index.js";import h from"../../../../icons/Upload/index.js";import{useTranslation as g}from"../../../../providers/TranslationProvider.js";const x=p(n,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({flex:"1",display:"flex",flexDirection:"column",height:"100%",boxSizing:"border-box",alignItems:"center",justifyContent:"center",padding:e.spacing(4),borderRadius:e.radius["radius-8"],border:r?`1px solid ${e.palette.semantic.stroke["stroke-error-weak"]}`:`1px dashed ${e.palette.semantic.stroke["stroke-strong"]}`,background:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.fill["fill-weaker"],cursor:"pointer",transition:"all 0.2s ease-in-out",[e.breakpoints.only("mobile")]:{justifyContent:"center",gap:e.spacing(4)}}))),y=p("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),v=p(n,{shouldForwardProp:e=>"hasError"!==e})((({hasError:e,theme:r})=>({display:"flex",flexDirection:"column",width:"48px",height:"48px",padding:"0px",justifyContent:"center",alignItems:"center",borderRadius:r.radius["radius-32"],backgroundColor:e?r.palette.semantic.fill["fill-error-weak"]:r.palette.semantic.fill["fill-primary-weak"]}))),w=p(c)({alignSelf:"center"}),b=({handleUpload:n,multiple:p,maxFiles:c,maxFileSize:b,allowedFileTypes:k=[],disabled:_=!1,error:T,dragActiveText:F,dragInactiveText:D,browseButtonText:C,invalidFileTypesText:j,invalidFileSizeText:S,invalidFileCountText:P})=>{const E=d(),[z,B]=i(!1),I=o(null),[$,A]=i(null),{translate:L}=g(),R=$??T,U=a((()=>{if(k.length)return k.filter(Boolean).map((e=>e.startsWith(".")?e:`.${e}`)).join(",")}),[k]),H=l((e=>{if(b&&e.size>b)return A(S||L("File_size_is_too_large",{maxFileSize:b?.toString()||""})),!1;const r=e.name.split(".").pop()?.toLowerCase();return!(k.length>0&&r&&!k.includes(r))||(A(j||L("File_type_is_not_allowed",{allowedFileTypes:k.join(", ")})),!1)}),[b,k,j,S,L]),K=l((e=>{const r=Array.from(e),t=[];c&&r.length>c?A(P||L("Too_many_files_selected",{maxFiles:c.toString()})):(r.forEach((e=>{H(e)&&t.push(e)})),t.length>0&&(A(null),n(t)))}),[c,H,n,P,L]),O=l((e=>{e.preventDefault(),e.stopPropagation(),_||B(!0)}),[_]),W=l((e=>{e.preventDefault(),e.stopPropagation(),_||B(!1)}),[_]),q=l((e=>{e.preventDefault(),e.stopPropagation()}),[]),G=l((e=>{if(e.preventDefault(),e.stopPropagation(),_)return;B(!1);const r=e.dataTransfer.files;r&&r.length>0&&K(r)}),[_,K]),J=l((e=>{if(_)return;const r=e.target.files;r&&r.length>0&&K(r),I.current&&(I.current.value="")}),[_,K]),M=l((e=>{e.preventDefault(),e.stopPropagation(),I.current?.click()}),[]),N=l((()=>{_||I.current?.click()}),[_]);return e(r,{children:[!!R&&e(m,{error:!0,children:[t(u,{}),R]}),e(x,{"data-fd":"file-drop-zone",hasError:!!R,onClick:_?void 0:N,onDragEnter:O,onDragLeave:W,onDragOver:q,onDrop:G,children:[t(y,{ref:I,accept:U,"data-fd":"file-upload-input",disabled:_,multiple:p,onChange:J,type:"file"}),e(s,{alignItems:"center",direction:"column",gap:E.spacing(2),justifyContent:"center",width:"100%",children:[t(v,{hasError:!!R,children:t(h,{color:R?E.palette.semantic.icon["icon-error"]:E.palette.semantic.icon["icon-primary"]})}),t(f,{variant:"b1Strong",children:z?F||L("Drop_files_here"):D||L("Drag_and_drop_files_here")}),t(w,{disabled:_,fdKey:"file-upload-btn",onClick:_?void 0:M,variant:"secondary",children:C||L("Browse_files")})]})]})]})};export{b as default};
2
2
  //# sourceMappingURL=FileDropZone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileDropZone.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileDropZone.tsx"],"sourcesContent":["import React, { useCallback, useRef, useState } from 'react';\n\nimport Box from '@mui/material/Box/Box';\nimport Stack from '@mui/material/Stack/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport FlipdishButton from '@fd/components/atoms/Button';\nimport FlipdishFormHelperText from '@fd/components/atoms/FormHelperText';\nimport FlipdishTypography from '@fd/components/atoms/Typography';\nimport CancelCircleIcon from '@fd/icons/CancelCircle';\nimport UploadIcon from '@fd/icons/Upload';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nconst StyledUploadAreaContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n flex: '1',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n padding: theme.spacing(4),\n borderRadius: theme.radius['radius-8'],\n border: hasError\n ? `1px solid ${theme.palette.semantic.stroke['stroke-error-weak']}`\n : `1px dashed ${theme.palette.semantic.stroke['stroke-strong']}`,\n background: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-weaker'],\n cursor: 'pointer',\n transition: 'all 0.2s ease-in-out',\n [theme.breakpoints.only('mobile')]: {\n justifyContent: 'center',\n gap: theme.spacing(4),\n },\n}));\n\nconst VisuallyHiddenInput = styled('input')({\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: 1,\n overflow: 'hidden',\n position: 'absolute',\n bottom: 0,\n left: 0,\n whiteSpace: 'nowrap',\n width: 1,\n});\n\nconst StyledIconContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ hasError, theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '48px',\n height: '48px',\n padding: '0px',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: theme.radius['radius-32'],\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-primary-weak'],\n}));\n\nconst StyledButton = styled(FlipdishButton)({\n alignSelf: 'center',\n});\n\n/**\n * Props for the FileDropZone component.\n * Provides a drag-and-drop file upload interface with validation.\n */\nexport interface FileDropZoneProps {\n /**\n * Callback function invoked when files are successfully validated and ready to upload.\n * @param files - Array of File objects to be uploaded\n */\n handleUpload: (files: File[]) => void;\n\n /**\n * Whether multiple files can be selected at once.\n * @default true\n */\n multiple?: boolean;\n\n /**\n * Maximum number of files that can be selected in a single operation.\n * If exceeded, an error message will be displayed.\n * @default undefined (no limit)\n */\n maxFiles?: number;\n\n /**\n * Maximum file size allowed in bytes.\n * Files exceeding this size will be rejected with an error message.\n * Example: 10 * 1024 * 1024 for 10MB\n * @default undefined (no limit)\n */\n maxFileSize?: number;\n\n /**\n * Array of allowed file extensions (without dots).\n * Files with extensions not in this list will be rejected.\n * Example: ['jpg', 'png', 'pdf']\n * @default [] (all file types allowed)\n */\n allowedFileTypes?: string[];\n\n /**\n * Whether the file drop zone is disabled.\n * When true, prevents all file selection and drag-and-drop interactions.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Optional custom error message to display at the top.\n */\n error?: string | null;\n\n /**\n * Text displayed when files are being dragged over the drop zone.\n * @default 'Drop files here'\n */\n dragActiveText?: string;\n\n /**\n * Text displayed when no files are being dragged (idle state).\n * @default 'Drag and drop files here'\n */\n dragInactiveText?: string;\n\n /**\n * Text displayed on the browse/upload button.\n * @default 'Browse files'\n */\n browseButtonText?: string;\n\n /**\n * Text displayed when a file type is not allowed.\n * @default 'File type is not allowed. Allowed types: {allowedFileTypes}'\n */\n invalidFileTypesText?: string;\n\n /**\n * Text displayed when a file size is too large.\n * @default 'File size is too large. Maximum size: {maxFileSize}'\n */\n invalidFileSizeText?: string;\n\n /**\n * Text displayed when too many files are selected.\n * @default 'Too many files selected. Maximum allowed: {maxFiles}'\n */\n invalidFileCountText?: string;\n}\n\nconst FileDropZone: React.FC<FileDropZoneProps> = ({\n handleUpload,\n multiple,\n maxFiles,\n maxFileSize,\n allowedFileTypes = [],\n disabled = false,\n error,\n dragActiveText,\n dragInactiveText,\n browseButtonText,\n invalidFileTypesText,\n invalidFileSizeText,\n invalidFileCountText,\n}) => {\n const theme = useTheme();\n const [isDragActive, setIsDragActive] = useState(false);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [validationError, setValidationError] = useState<string | null>(null);\n const { translate } = useTranslation();\n const displayError = error ?? validationError;\n\n const validateFile = useCallback(\n (file: File): boolean => {\n // Check file size\n if (maxFileSize && file.size > maxFileSize) {\n setValidationError(\n invalidFileSizeText ||\n translate('File_size_is_too_large', { maxFileSize: maxFileSize?.toString() || '' }),\n );\n return false;\n }\n\n // Check file type\n const fileExtension = file.name.split('.').pop()?.toLowerCase();\n if (allowedFileTypes.length > 0 && fileExtension && !allowedFileTypes.includes(fileExtension)) {\n setValidationError(\n invalidFileTypesText ||\n translate('File_type_is_not_allowed', { allowedFileTypes: allowedFileTypes.join(', ') }),\n );\n return false;\n }\n\n return true;\n },\n [maxFileSize, allowedFileTypes, invalidFileTypesText, invalidFileSizeText, translate],\n );\n\n const processFiles = useCallback(\n (files: File[] | FileList) => {\n const fileArray = Array.from(files);\n const validFiles: File[] = [];\n\n // Check max files limit\n if (maxFiles && fileArray.length > maxFiles) {\n setValidationError(\n invalidFileCountText || translate('Too_many_files_selected', { maxFiles: maxFiles.toString() }),\n );\n return;\n }\n\n // Validate each file\n fileArray.forEach((file) => {\n if (validateFile(file)) {\n validFiles.push(file);\n }\n });\n\n if (validFiles.length > 0) {\n setValidationError(null);\n handleUpload(validFiles);\n }\n },\n [maxFiles, validateFile, handleUpload, invalidFileCountText, translate],\n );\n\n const handleDragEnter = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(true);\n },\n [disabled],\n );\n\n const handleDragLeave = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n },\n [disabled],\n );\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n\n const files = e.dataTransfer.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n },\n [disabled, processFiles],\n );\n\n const handleFileInputChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (disabled) return;\n\n const files = e.target.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n\n // Reset input value to allow selecting the same file again\n if (fileInputRef.current) {\n fileInputRef.current.value = '';\n }\n },\n [disabled, processFiles],\n );\n\n const handleButtonClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n event.stopPropagation();\n fileInputRef.current?.click();\n }, []);\n\n const handleContainerClick = useCallback(() => {\n if (disabled) return;\n\n fileInputRef.current?.click();\n }, [disabled]);\n\n return (\n <>\n {!!displayError && (\n <FlipdishFormHelperText error>\n <CancelCircleIcon />\n {displayError}\n </FlipdishFormHelperText>\n )}\n <StyledUploadAreaContainer\n data-fd=\"file-drop-zone\"\n hasError={!!displayError}\n onClick={disabled ? undefined : handleContainerClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n >\n <VisuallyHiddenInput\n ref={fileInputRef}\n data-fd=\"file-upload-input\"\n disabled={disabled}\n multiple={multiple}\n onChange={handleFileInputChange}\n type=\"file\"\n />\n\n <Stack\n alignItems=\"center\"\n direction=\"column\"\n gap={theme.spacing(2)}\n justifyContent=\"center\"\n width=\"100%\"\n >\n <StyledIconContainer hasError={!!displayError}>\n <UploadIcon\n color={\n displayError\n ? theme.palette.semantic.icon['icon-error']\n : theme.palette.semantic.icon['icon-primary']\n }\n />\n </StyledIconContainer>\n\n <FlipdishTypography variant=\"b1Strong\">\n {isDragActive\n ? dragActiveText || translate('Drop_files_here')\n : dragInactiveText || translate('Drag_and_drop_files_here')}\n </FlipdishTypography>\n\n <StyledButton\n disabled={disabled}\n fdKey=\"file-upload-btn\"\n onClick={disabled ? undefined : handleButtonClick}\n variant=\"secondary\"\n >\n {browseButtonText || translate('Browse_files')}\n </StyledButton>\n </Stack>\n </StyledUploadAreaContainer>\n </>\n );\n};\n\nexport default FileDropZone;\n"],"names":["StyledUploadAreaContainer","styled","Box","shouldForwardProp","prop","theme","hasError","flex","display","flexDirection","height","boxSizing","alignItems","justifyContent","padding","spacing","borderRadius","radius","border","palette","semantic","stroke","background","fill","cursor","transition","breakpoints","only","gap","VisuallyHiddenInput","clip","clipPath","overflow","position","bottom","left","whiteSpace","width","StyledIconContainer","backgroundColor","StyledButton","FlipdishButton","alignSelf","FileDropZone","handleUpload","multiple","maxFiles","maxFileSize","allowedFileTypes","disabled","error","dragActiveText","dragInactiveText","browseButtonText","invalidFileTypesText","invalidFileSizeText","invalidFileCountText","useTheme","isDragActive","setIsDragActive","useState","fileInputRef","useRef","validationError","setValidationError","translate","useTranslation","displayError","validateFile","useCallback","file","size","toString","fileExtension","name","split","pop","toLowerCase","length","includes","join","processFiles","files","fileArray","Array","from","validFiles","forEach","push","handleDragEnter","e","preventDefault","stopPropagation","handleDragLeave","handleDragOver","handleDrop","dataTransfer","handleFileInputChange","target","current","value","handleButtonClick","event","click","handleContainerClick","_jsxs","_Fragment","children","FlipdishFormHelperText","_jsx","CancelCircleIcon","onClick","undefined","onDragEnter","onDragLeave","onDragOver","onDrop","ref","onChange","type","Stack","direction","UploadIcon","color","icon","FlipdishTypography","variant","fdKey"],"mappings":"smBAcA,MAAMA,EAA4BC,EAAOC,EAAK,CAC5CC,kBAAoBC,GAAkB,aAATA,GADGH,EAEP,EAAGI,QAAOC,eAAU,CAC7CC,KAAM,IACNC,QAAS,OACTC,cAAe,SACfC,OAAQ,OACRC,UAAW,aACXC,WAAY,SACZC,eAAgB,SAChBC,QAAST,EAAMU,QAAQ,GACvBC,aAAcX,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MX,iBACNW,EAAMV,kBACN/B,EAAasC,SAASI,UACrB,IAEGC,EAAuBnC,GAAY,KACnCpB,GAEJY,EAAasC,SAASI,UACrB,CAACtD,IAEJ,OACEwD,EAAAC,EAAA,CAAAC,SAAA,GACKxC,GACDsC,EAACG,EAAsB,CAAC1D,OAAK,EAAAyD,SAAA,CAC3BE,EAACC,EAAgB,CAAA,GAChB3C,KAGLsC,EAACzG,EAAyB,CAAA,UAChB,iBACRM,WAAY6D,EACZ4C,QAAS9D,OAAW+D,EAAYR,EAChCS,YAAaxB,EACbyB,YAAarB,EACbsB,WAAYrB,EACZsB,OAAQrB,EAAUY,SAAA,CAElBE,EAAChF,EAAmB,CAClBwF,IAAKxD,EAAY,UACT,oBACRZ,SAAUA,EACVJ,SAAUA,EACVyE,SAAUrB,EACVsB,KAAK,SAGPd,EAACe,EAAK,CACJ5G,WAAW,SACX6G,UAAU,SACV7F,IAAKvB,EAAMU,QAAQ,GACnBF,eAAe,SACfwB,MAAM,OAAMsE,SAAA,CAEZE,EAACvE,EAAmB,CAAChC,WAAY6D,EAAYwC,SAC3CE,EAACa,EAAU,CACTC,MACExD,EACI9D,EAAMc,QAAQC,SAASwG,KAAK,cAC5BvH,EAAMc,QAAQC,SAASwG,KAAK,oBAKtCf,EAACgB,GAAmBC,QAAQ,WAAUnB,SACnCjD,EACGP,GAAkBc,EAAU,mBAC5Bb,GAAoBa,EAAU,8BAGpC4C,EAACrE,EAAY,CACXS,SAAUA,EACV8E,MAAM,kBACNhB,QAAS9D,OAAW+D,EAAYX,EAChCyB,QAAQ,YAAWnB,SAElBtD,GAAoBY,EAAU"}
1
+ {"version":3,"file":"FileDropZone.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileDropZone.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport Box from '@mui/material/Box/Box';\nimport Stack from '@mui/material/Stack/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport FlipdishButton from '@fd/components/atoms/Button';\nimport FlipdishFormHelperText from '@fd/components/atoms/FormHelperText';\nimport FlipdishTypography from '@fd/components/atoms/Typography';\nimport CancelCircleIcon from '@fd/icons/CancelCircle';\nimport UploadIcon from '@fd/icons/Upload';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nconst StyledUploadAreaContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n flex: '1',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n padding: theme.spacing(4),\n borderRadius: theme.radius['radius-8'],\n border: hasError\n ? `1px solid ${theme.palette.semantic.stroke['stroke-error-weak']}`\n : `1px dashed ${theme.palette.semantic.stroke['stroke-strong']}`,\n background: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-weaker'],\n cursor: 'pointer',\n transition: 'all 0.2s ease-in-out',\n [theme.breakpoints.only('mobile')]: {\n justifyContent: 'center',\n gap: theme.spacing(4),\n },\n}));\n\nconst VisuallyHiddenInput = styled('input')({\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: 1,\n overflow: 'hidden',\n position: 'absolute',\n bottom: 0,\n left: 0,\n whiteSpace: 'nowrap',\n width: 1,\n});\n\nconst StyledIconContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ hasError, theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '48px',\n height: '48px',\n padding: '0px',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: theme.radius['radius-32'],\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.fill['fill-primary-weak'],\n}));\n\nconst StyledButton = styled(FlipdishButton)({\n alignSelf: 'center',\n});\n\n/**\n * Props for the FileDropZone component.\n * Provides a drag-and-drop file upload interface with validation.\n */\nexport interface FileDropZoneProps {\n /**\n * Callback function invoked when files are successfully validated and ready to upload.\n * @param files - Array of File objects to be uploaded\n */\n handleUpload: (files: File[]) => void;\n\n /**\n * Whether multiple files can be selected at once.\n * @default true\n */\n multiple?: boolean;\n\n /**\n * Maximum number of files that can be selected in a single operation.\n * If exceeded, an error message will be displayed.\n * @default undefined (no limit)\n */\n maxFiles?: number;\n\n /**\n * Maximum file size allowed in bytes.\n * Files exceeding this size will be rejected with an error message.\n * Example: 10 * 1024 * 1024 for 10MB\n * @default undefined (no limit)\n */\n maxFileSize?: number;\n\n /**\n * Array of allowed file extensions (without dots).\n * Files with extensions not in this list will be rejected.\n * Example: ['jpg', 'png', 'pdf']\n * @default [] (all file types allowed)\n */\n allowedFileTypes?: string[];\n\n /**\n * Whether the file drop zone is disabled.\n * When true, prevents all file selection and drag-and-drop interactions.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Optional custom error message to display at the top.\n */\n error?: string | null;\n\n /**\n * Text displayed when files are being dragged over the drop zone.\n * @default 'Drop files here'\n */\n dragActiveText?: string;\n\n /**\n * Text displayed when no files are being dragged (idle state).\n * @default 'Drag and drop files here'\n */\n dragInactiveText?: string;\n\n /**\n * Text displayed on the browse/upload button.\n * @default 'Browse files'\n */\n browseButtonText?: string;\n\n /**\n * Text displayed when a file type is not allowed.\n * @default 'File type is not allowed. Allowed types: {allowedFileTypes}'\n */\n invalidFileTypesText?: string;\n\n /**\n * Text displayed when a file size is too large.\n * @default 'File size is too large. Maximum size: {maxFileSize}'\n */\n invalidFileSizeText?: string;\n\n /**\n * Text displayed when too many files are selected.\n * @default 'Too many files selected. Maximum allowed: {maxFiles}'\n */\n invalidFileCountText?: string;\n}\n\nconst FileDropZone: React.FC<FileDropZoneProps> = ({\n handleUpload,\n multiple,\n maxFiles,\n maxFileSize,\n allowedFileTypes = [],\n disabled = false,\n error,\n dragActiveText,\n dragInactiveText,\n browseButtonText,\n invalidFileTypesText,\n invalidFileSizeText,\n invalidFileCountText,\n}) => {\n const theme = useTheme();\n const [isDragActive, setIsDragActive] = useState(false);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [validationError, setValidationError] = useState<string | null>(null);\n const { translate } = useTranslation();\n const displayError = validationError ?? error;\n const inputAccept = useMemo(() => {\n if (!allowedFileTypes.length) return undefined;\n\n return allowedFileTypes\n .filter(Boolean)\n .map((ext) => (ext.startsWith('.') ? ext : `.${ext}`))\n .join(',');\n }, [allowedFileTypes]);\n\n const validateFile = useCallback(\n (file: File): boolean => {\n // Check file size\n if (maxFileSize && file.size > maxFileSize) {\n setValidationError(\n invalidFileSizeText ||\n translate('File_size_is_too_large', { maxFileSize: maxFileSize?.toString() || '' }),\n );\n return false;\n }\n\n // Check file type\n const fileExtension = file.name.split('.').pop()?.toLowerCase();\n if (allowedFileTypes.length > 0 && fileExtension && !allowedFileTypes.includes(fileExtension)) {\n setValidationError(\n invalidFileTypesText ||\n translate('File_type_is_not_allowed', { allowedFileTypes: allowedFileTypes.join(', ') }),\n );\n return false;\n }\n\n return true;\n },\n [maxFileSize, allowedFileTypes, invalidFileTypesText, invalidFileSizeText, translate],\n );\n\n const processFiles = useCallback(\n (files: File[] | FileList) => {\n const fileArray = Array.from(files);\n const validFiles: File[] = [];\n\n // Check max files limit\n if (maxFiles && fileArray.length > maxFiles) {\n setValidationError(\n invalidFileCountText || translate('Too_many_files_selected', { maxFiles: maxFiles.toString() }),\n );\n return;\n }\n\n // Validate each file\n fileArray.forEach((file) => {\n if (validateFile(file)) {\n validFiles.push(file);\n }\n });\n\n if (validFiles.length > 0) {\n setValidationError(null);\n handleUpload(validFiles);\n }\n },\n [maxFiles, validateFile, handleUpload, invalidFileCountText, translate],\n );\n\n const handleDragEnter = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(true);\n },\n [disabled],\n );\n\n const handleDragLeave = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n },\n [disabled],\n );\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n\n if (disabled) return;\n\n setIsDragActive(false);\n\n const files = e.dataTransfer.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n },\n [disabled, processFiles],\n );\n\n const handleFileInputChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (disabled) return;\n\n const files = e.target.files;\n if (files && files.length > 0) {\n processFiles(files);\n }\n\n // Reset input value to allow selecting the same file again\n if (fileInputRef.current) {\n fileInputRef.current.value = '';\n }\n },\n [disabled, processFiles],\n );\n\n const handleButtonClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n event.stopPropagation();\n fileInputRef.current?.click();\n }, []);\n\n const handleContainerClick = useCallback(() => {\n if (disabled) return;\n\n fileInputRef.current?.click();\n }, [disabled]);\n\n return (\n <>\n {!!displayError && (\n <FlipdishFormHelperText error>\n <CancelCircleIcon />\n {displayError}\n </FlipdishFormHelperText>\n )}\n <StyledUploadAreaContainer\n data-fd=\"file-drop-zone\"\n hasError={!!displayError}\n onClick={disabled ? undefined : handleContainerClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n >\n <VisuallyHiddenInput\n ref={fileInputRef}\n accept={inputAccept}\n data-fd=\"file-upload-input\"\n disabled={disabled}\n multiple={multiple}\n onChange={handleFileInputChange}\n type=\"file\"\n />\n\n <Stack\n alignItems=\"center\"\n direction=\"column\"\n gap={theme.spacing(2)}\n justifyContent=\"center\"\n width=\"100%\"\n >\n <StyledIconContainer hasError={!!displayError}>\n <UploadIcon\n color={\n displayError\n ? theme.palette.semantic.icon['icon-error']\n : theme.palette.semantic.icon['icon-primary']\n }\n />\n </StyledIconContainer>\n\n <FlipdishTypography variant=\"b1Strong\">\n {isDragActive\n ? dragActiveText || translate('Drop_files_here')\n : dragInactiveText || translate('Drag_and_drop_files_here')}\n </FlipdishTypography>\n\n <StyledButton\n disabled={disabled}\n fdKey=\"file-upload-btn\"\n onClick={disabled ? undefined : handleButtonClick}\n variant=\"secondary\"\n >\n {browseButtonText || translate('Browse_files')}\n </StyledButton>\n </Stack>\n </StyledUploadAreaContainer>\n </>\n );\n};\n\nexport default FileDropZone;\n"],"names":["StyledUploadAreaContainer","styled","Box","shouldForwardProp","prop","theme","hasError","flex","display","flexDirection","height","boxSizing","alignItems","justifyContent","padding","spacing","borderRadius","radius","border","palette","semantic","stroke","background","fill","cursor","transition","breakpoints","only","gap","VisuallyHiddenInput","clip","clipPath","overflow","position","bottom","left","whiteSpace","width","StyledIconContainer","backgroundColor","StyledButton","FlipdishButton","alignSelf","FileDropZone","handleUpload","multiple","maxFiles","maxFileSize","allowedFileTypes","disabled","error","dragActiveText","dragInactiveText","browseButtonText","invalidFileTypesText","invalidFileSizeText","invalidFileCountText","useTheme","isDragActive","setIsDragActive","useState","fileInputRef","useRef","validationError","setValidationError","translate","useTranslation","displayError","inputAccept","useMemo","length","filter","Boolean","map","ext","startsWith","join","validateFile","useCallback","file","size","toString","fileExtension","name","split","pop","toLowerCase","includes","processFiles","files","fileArray","Array","from","validFiles","forEach","push","handleDragEnter","e","preventDefault","stopPropagation","handleDragLeave","handleDragOver","handleDrop","dataTransfer","handleFileInputChange","target","current","value","handleButtonClick","event","click","handleContainerClick","_jsxs","_Fragment","children","FlipdishFormHelperText","_jsx","CancelCircleIcon","onClick","undefined","onDragEnter","onDragLeave","onDragOver","onDrop","ref","accept","onChange","type","Stack","direction","UploadIcon","color","icon","FlipdishTypography","variant","fdKey"],"mappings":"mnBAcA,MAAMA,EAA4BC,EAAOC,EAAK,CAC5CC,kBAAoBC,GAAkB,aAATA,GADGH,EAEP,EAAGI,QAAOC,eAAU,CAC7CC,KAAM,IACNC,QAAS,OACTC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AYX,EAChC0B,QAAQ,YAAWpB,SAElB7D,GAAoBY,EAAU"}
@@ -1,2 +1,2 @@
1
- "use strict";require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/index.cjs.js");var e=require("../../components/organisms/AssetManager/__mocks__/mockAssets.cjs.js"),s=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js"),t=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js");const o=[...[s.http.get("*/assets/orgs/:orgId/assets",(({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.HttpResponse.json(e.mockAssets)))),s.http.post("*/assets/orgs/:orgId/assets/upload",(async({request:s,params:o})=>{console.log("[MSW] Intercepted POST upload request:",s.url,"orgId:",o.orgId);const r=(await s.formData()).getAll("files").map((s=>e.createMockAsset({id:"asset_e3454351fw5",fileName:s.name,contentType:s.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"})));return t.HttpResponse.json(r)}))]];exports.handlers=o;
1
+ "use strict";require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/index.cjs.js");var e=require("../../components/organisms/AssetManager/__mocks__/mockAssets.cjs.js"),s=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js"),t=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js");const o=[...[s.http.get("*/assets/orgs/:orgId/assets",(({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.HttpResponse.json(e.mockAssets)))),s.http.post("*/assets/orgs/:orgId/assets/upload",(async({request:s,params:o})=>{console.log("[MSW] Intercepted POST upload request:",s.url,"orgId:",o.orgId);const r=(await s.formData()).getAll("files").map((s=>e.createMockAsset({id:"asset_e3454351fw5",fileName:s.name,contentType:s.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"})));return t.HttpResponse.json(r)}))]];exports.handlers=o;
2
2
  //# sourceMappingURL=handlers.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { HttpHandler } from '../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.d.js';
1
+ import { HttpHandler } from '../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.d.js';
2
2
 
3
3
  declare const handlers: HttpHandler[];
4
4
 
@@ -1,2 +1,2 @@
1
- import"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/index.js";import{mockAssets as e,createMockAsset as s}from"../../components/organisms/AssetManager/__mocks__/mockAssets.js";import{http as o}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/http.js";import{HttpResponse as t}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js";const r=[...[o.get("*/assets/orgs/:orgId/assets",(({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.json(e)))),o.post("*/assets/orgs/:orgId/assets/upload",(async({request:e,params:o})=>{console.log("[MSW] Intercepted POST upload request:",e.url,"orgId:",o.orgId);const r=(await e.formData()).getAll("files").map((e=>s({id:"asset_e3454351fw5",fileName:e.name,contentType:e.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"})));return t.json(r)}))]];export{r as handlers};
1
+ import"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/index.js";import{mockAssets as e,createMockAsset as s}from"../../components/organisms/AssetManager/__mocks__/mockAssets.js";import{http as o}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/http.js";import{HttpResponse as t}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js";const r=[...[o.get("*/assets/orgs/:orgId/assets",(({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.json(e)))),o.post("*/assets/orgs/:orgId/assets/upload",(async({request:e,params:o})=>{console.log("[MSW] Intercepted POST upload request:",e.url,"orgId:",o.orgId);const r=(await e.formData()).getAll("files").map((e=>s({id:"asset_e3454351fw5",fileName:e.name,contentType:e.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"})));return t.json(r)}))]];export{r as handlers};
2
2
  //# sourceMappingURL=handlers.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js"),s=require("./handlers.cjs.js");const r=e.setupServer(...s.handlers);exports.server=r;
1
+ "use strict";var e=require("../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js"),s=require("./handlers.cjs.js");const r=e.setupServer(...s.handlers);exports.server=r;
2
2
  //# sourceMappingURL=server.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { SetupServerApi } from '../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/node/index.d.js';
1
+ import { SetupServerApi } from '../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.d.js';
2
2
 
3
3
  declare const server: SetupServerApi;
4
4
 
@@ -1,2 +1,2 @@
1
- import{setupServer as o}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/node/index.js";import{handlers as e}from"./handlers.js";const s=o(...e);export{s as server};
1
+ import{setupServer as o}from"../../node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.js";import{handlers as e}from"./handlers.js";const s=o(...e);export{s as server};
2
2
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpResponse.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(responseText, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","headers","has","set","Blob","size","toString","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,CAUA,kBAAOmB,CAAYrB,EAAMC,GACvB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAO3C,OANKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,4BAEvCX,IAASE,EAAaO,QAAQC,IAAI,mBACpCR,EAAaO,QAAQE,IAAI,iBAAkBX,EAAKsB,WAAWR,YAEtD,IAAIjB,EAAaG,EAAME,EAChC,CASA,eAAOqB,CAASvB,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAAA,sBAAsBF,GACtD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"HttpResponse.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(responseText, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","headers","has","set","Blob","size","toString","json","responseText","JSON","stringify","xml","html","arrayBuffer","byteLength","formData"],"mappings":"qTAKK,MAACA,EAAWC,OAAO,YACxB,MAAMC,UAAqBC,EAAAA,cACzBH,CAACA,GAAY,KACb,WAAAI,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAC3CG,MAAMJ,EAAME,GACZG,EAAAA,iBAAiBC,KAAMJ,EACzB,CACA,YAAOK,GACL,OAAOH,MAAMG,OACf,CAOA,WAAOC,CAAKR,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAU3C,OATKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,cAEtCT,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAX,EAAO,IAAIY,KAAK,CAACZ,IAAOa,KAAKC,WAAa,KAGvC,IAAIjB,EAAaG,EAAME,EAChC,CAOA,WAAOa,CAAKf,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GACtCC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,oBAE3C,MAAMK,EAAeC,KAAKC,UAAUlB,GAOpC,OANKE,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAK,EAAe,IAAIJ,KAAK,CAACI,IAAeH,KAAKC,WAAa,KAGvD,IAAIjB,EAAamB,EAAcd,EACxC,CAOA,UAAOiB,CAAInB,EAAMC,GACf,MAAMC,EAAeC,EAAAA,sBAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,YAEpC,IAAId,EAAaG,EAAME,EAChC,CAOA,WAAOkB,CAAKpB,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,aAEpC,IAAId,EAAaG,EAAME,EAChC,CAUA,kBAAOmB,CAAYrB,EAAMC,GACvB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAO3C,OANKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,4BAEvCX,IAASE,EAAaO,QAAQC,IAAI,mBACpCR,EAAaO,QAAQE,IAAI,iBAAkBX,EAAKsB,WAAWR,YAEtD,IAAIjB,EAAaG,EAAME,EAChC,CASA,eAAOqB,CAASvB,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAAA,sBAAsBF,GACtD","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"HttpResponse.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(responseText, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","headers","has","set","Blob","size","toString","json","responseText","JSON","stringify","xml","html","arrayBuffer","byteLength","formData"],"mappings":"qVAKK,MAACA,EAAWC,OAAO,YACxB,MAAMC,UAAqBC,EACzBH,CAACA,GAAY,KACb,WAAAI,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAC3CG,MAAMJ,EAAME,GACZG,EAAiBC,KAAMJ,EACzB,CACA,YAAOK,GACL,OAAOH,MAAMG,OACf,CAOA,WAAOC,CAAKR,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAU3C,OATKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,cAEtCT,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAX,EAAO,IAAIY,KAAK,CAACZ,IAAOa,KAAKC,WAAa,KAGvC,IAAIjB,EAAaG,EAAME,EAChC,CAOA,WAAOa,CAAKf,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GACtCC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,oBAE3C,MAAMK,EAAeC,KAAKC,UAAUlB,GAOpC,OANKE,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAK,EAAe,IAAIJ,KAAK,CAACI,IAAeH,KAAKC,WAAa,KAGvD,IAAIjB,EAAamB,EAAcd,EACxC,CAOA,UAAOiB,CAAInB,EAAMC,GACf,MAAMC,EAAeC,EAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,YAEpC,IAAId,EAAaG,EAAME,EAChC,CAOA,WAAOkB,CAAKpB,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,aAEpC,IAAId,EAAaG,EAAME,EAChC,CAUA,kBAAOmB,CAAYrB,EAAMC,GACvB,MAAMC,EAAeC,EAAsBF,GAO3C,OANKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,4BAEvCX,IAASE,EAAaO,QAAQC,IAAI,mBACpCR,EAAaO,QAAQE,IAAI,iBAAkBX,EAAKsB,WAAWR,YAEtD,IAAIjB,EAAaG,EAAME,EAChC,CASA,eAAOqB,CAASvB,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAsBF,GACtD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"HttpResponse.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n return new HttpResponse(responseText, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n if (!responseInit.headers.has(\"Content-Type\")) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n return new HttpResponse(body, responseInit);\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","headers","has","set","Blob","size","toString","json","responseText","JSON","stringify","xml","html","arrayBuffer","byteLength","formData"],"mappings":"qVAKK,MAACA,EAAWC,OAAO,YACxB,MAAMC,UAAqBC,EACzBH,CAACA,GAAY,KACb,WAAAI,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAC3CG,MAAMJ,EAAME,GACZG,EAAiBC,KAAMJ,EACzB,CACA,YAAOK,GACL,OAAOH,MAAMG,OACf,CAOA,WAAOC,CAAKR,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAU3C,OATKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,cAEtCT,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAX,EAAO,IAAIY,KAAK,CAACZ,IAAOa,KAAKC,WAAa,KAGvC,IAAIjB,EAAaG,EAAME,EAChC,CAOA,WAAOa,CAAKf,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GACtCC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,oBAE3C,MAAMK,EAAeC,KAAKC,UAAUlB,GAOpC,OANKE,EAAaO,QAAQC,IAAI,mBAC5BR,EAAaO,QAAQE,IACnB,iBACAK,EAAe,IAAIJ,KAAK,CAACI,IAAeH,KAAKC,WAAa,KAGvD,IAAIjB,EAAamB,EAAcd,EACxC,CAOA,UAAOiB,CAAInB,EAAMC,GACf,MAAMC,EAAeC,EAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,YAEpC,IAAId,EAAaG,EAAME,EAChC,CAOA,WAAOkB,CAAKpB,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GAI3C,OAHKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,aAEpC,IAAId,EAAaG,EAAME,EAChC,CAUA,kBAAOmB,CAAYrB,EAAMC,GACvB,MAAMC,EAAeC,EAAsBF,GAO3C,OANKC,EAAaO,QAAQC,IAAI,iBAC5BR,EAAaO,QAAQE,IAAI,eAAgB,4BAEvCX,IAASE,EAAaO,QAAQC,IAAI,mBACpCR,EAAaO,QAAQE,IAAI,iBAAkBX,EAAKsB,WAAWR,YAEtD,IAAIjB,EAAaG,EAAME,EAChC,CASA,eAAOqB,CAASvB,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAsBF,GACtD","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"SetupApi.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { devUtils } from './utils/internal/devUtils.mjs';\nimport { pipeEvents } from './utils/internal/pipeEvents.mjs';\nimport { toReadonlyArray } from './utils/internal/toReadonlyArray.mjs';\nimport { Disposable } from './utils/internal/Disposable.mjs';\nclass HandlersController {\n}\nclass InMemoryHandlersController {\n constructor(initialHandlers) {\n this.initialHandlers = initialHandlers;\n this.handlers = [...initialHandlers];\n }\n handlers;\n prepend(runtimeHandles) {\n this.handlers.unshift(...runtimeHandles);\n }\n reset(nextHandlers) {\n this.handlers = nextHandlers.length > 0 ? [...nextHandlers] : [...this.initialHandlers];\n }\n currentHandlers() {\n return this.handlers;\n }\n}\nclass SetupApi extends Disposable {\n handlersController;\n emitter;\n publicEmitter;\n events;\n constructor(...initialHandlers) {\n super();\n invariant(\n this.validateHandlers(initialHandlers),\n devUtils.formatMessage(\n `Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?`\n )\n );\n this.handlersController = new InMemoryHandlersController(initialHandlers);\n this.emitter = new Emitter();\n this.publicEmitter = new Emitter();\n pipeEvents(this.emitter, this.publicEmitter);\n this.events = this.createLifeCycleEvents();\n this.subscriptions.push(() => {\n this.emitter.removeAllListeners();\n this.publicEmitter.removeAllListeners();\n });\n }\n validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n use(...runtimeHandlers) {\n invariant(\n this.validateHandlers(runtimeHandlers),\n devUtils.formatMessage(\n `Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?`\n )\n );\n this.handlersController.prepend(runtimeHandlers);\n }\n restoreHandlers() {\n this.handlersController.currentHandlers().forEach((handler) => {\n if (\"isUsed\" in handler) {\n handler.isUsed = false;\n }\n });\n }\n resetHandlers(...nextHandlers) {\n this.handlersController.reset(nextHandlers);\n }\n listHandlers() {\n return toReadonlyArray(this.handlersController.currentHandlers());\n }\n createLifeCycleEvents() {\n return {\n on: (...args) => {\n return this.publicEmitter.on(...args);\n },\n removeListener: (...args) => {\n return this.publicEmitter.removeListener(...args);\n },\n removeAllListeners: (...args) => {\n return this.publicEmitter.removeAllListeners(...args);\n }\n };\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n SetupApi\n};\n//# sourceMappingURL=SetupApi.mjs.map"],"names":["InMemoryHandlersController","constructor","initialHandlers","this","handlers","prepend","runtimeHandles","unshift","reset","nextHandlers","length","currentHandlers","SetupApi","Disposable","handlersController","emitter","publicEmitter","events","super","invariant","validateHandlers","devUtils","formatMessage","Emitter","pipeEvents","createLifeCycleEvents","subscriptions","push","removeAllListeners","every","handler","Array","isArray","use","runtimeHandlers","restoreHandlers","forEach","isUsed","resetHandlers","listHandlers","toReadonlyArray","on","args","removeListener"],"mappings":"oZAQA,MAAMA,EACJ,WAAAC,CAAYC,GACVC,KAAKD,gBAAkBA,EACvBC,KAAKC,SAAW,IAAIF,EACtB,CACAE,SACA,OAAAC,CAAQC,GACNH,KAAKC,SAASG,WAAWD,EAC3B,CACA,KAAAE,CAAMC,GACJN,KAAKC,SAAWK,EAAaC,OAAS,EAAI,IAAID,GAAgB,IAAIN,KAAKD,gBACzE,CACA,eAAAS,GACE,OAAOR,KAAKC,QACd,EAEF,MAAMQ,UAAiBC,EAAAA,WACrBC,mBACAC,QACAC,cACAC,OACA,WAAAhB,IAAeC,GACbgB,QACAC,EAAAA,UACEhB,KAAKiB,iBAAiBlB,GACtBmB,EAAAA,SAASC,cACP,gHAGJnB,KAAKW,mBAAqB,IAAId,EAA2BE,GACzDC,KAAKY,QAAU,IAAIQ,UACnBpB,KAAKa,cAAgB,IAAIO,UACzBC,EAAAA,WAAWrB,KAAKY,QAASZ,KAAKa,eAC9Bb,KAAKc,OAASd,KAAKsB,wBACnBtB,KAAKuB,cAAcC,MAAK,KACtBxB,KAAKY,QAAQa,qBACbzB,KAAKa,cAAcY,uBAEvB,CACA,gBAAAR,CAAiBhB,GACf,OAAOA,EAASyB,OAAOC,IAAaC,MAAMC,QAAQF,IACpD,CACA,GAAAG,IAAOC,GACLf,EAAAA,UACEhB,KAAKiB,iBAAiBc,GACtBb,EAAAA,SAASC,cACP,mIAGJnB,KAAKW,mBAAmBT,QAAQ6B,EAClC,CACA,eAAAC,GACEhC,KAAKW,mBAAmBH,kBAAkByB,SAASN,IAC7C,WAAYA,IACdA,EAAQO,QAAS,KAGvB,CACA,aAAAC,IAAiB7B,GACfN,KAAKW,mBAAmBN,MAAMC,EAChC,CACA,YAAA8B,GACE,OAAOC,kBAAgBrC,KAAKW,mBAAmBH,kBACjD,CACA,qBAAAc,GACE,MAAO,CACLgB,GAAI,IAAIC,IACCvC,KAAKa,cAAcyB,MAAMC,GAElCC,eAAgB,IAAID,IACXvC,KAAKa,cAAc2B,kBAAkBD,GAE9Cd,mBAAoB,IAAIc,IACfvC,KAAKa,cAAcY,sBAAsBc,GAGtD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SetupApi.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { devUtils } from './utils/internal/devUtils.mjs';\nimport { pipeEvents } from './utils/internal/pipeEvents.mjs';\nimport { toReadonlyArray } from './utils/internal/toReadonlyArray.mjs';\nimport { Disposable } from './utils/internal/Disposable.mjs';\nclass HandlersController {\n}\nclass InMemoryHandlersController {\n constructor(initialHandlers) {\n this.initialHandlers = initialHandlers;\n this.handlers = [...initialHandlers];\n }\n handlers;\n prepend(runtimeHandles) {\n this.handlers.unshift(...runtimeHandles);\n }\n reset(nextHandlers) {\n this.handlers = nextHandlers.length > 0 ? [...nextHandlers] : [...this.initialHandlers];\n }\n currentHandlers() {\n return this.handlers;\n }\n}\nclass SetupApi extends Disposable {\n handlersController;\n emitter;\n publicEmitter;\n events;\n constructor(...initialHandlers) {\n super();\n invariant(\n this.validateHandlers(initialHandlers),\n devUtils.formatMessage(\n `Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?`\n )\n );\n this.handlersController = new InMemoryHandlersController(initialHandlers);\n this.emitter = new Emitter();\n this.publicEmitter = new Emitter();\n pipeEvents(this.emitter, this.publicEmitter);\n this.events = this.createLifeCycleEvents();\n this.subscriptions.push(() => {\n this.emitter.removeAllListeners();\n this.publicEmitter.removeAllListeners();\n });\n }\n validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n use(...runtimeHandlers) {\n invariant(\n this.validateHandlers(runtimeHandlers),\n devUtils.formatMessage(\n `Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?`\n )\n );\n this.handlersController.prepend(runtimeHandlers);\n }\n restoreHandlers() {\n this.handlersController.currentHandlers().forEach((handler) => {\n if (\"isUsed\" in handler) {\n handler.isUsed = false;\n }\n });\n }\n resetHandlers(...nextHandlers) {\n this.handlersController.reset(nextHandlers);\n }\n listHandlers() {\n return toReadonlyArray(this.handlersController.currentHandlers());\n }\n createLifeCycleEvents() {\n return {\n on: (...args) => {\n return this.publicEmitter.on(...args);\n },\n removeListener: (...args) => {\n return this.publicEmitter.removeListener(...args);\n },\n removeAllListeners: (...args) => {\n return this.publicEmitter.removeAllListeners(...args);\n }\n };\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n SetupApi\n};\n//# sourceMappingURL=SetupApi.mjs.map"],"names":["InMemoryHandlersController","constructor","initialHandlers","this","handlers","prepend","runtimeHandles","unshift","reset","nextHandlers","length","currentHandlers","SetupApi","Disposable","handlersController","emitter","publicEmitter","events","super","invariant","validateHandlers","devUtils","formatMessage","Emitter","pipeEvents","createLifeCycleEvents","subscriptions","push","removeAllListeners","every","handler","Array","isArray","use","runtimeHandlers","restoreHandlers","forEach","isUsed","resetHandlers","listHandlers","toReadonlyArray","on","args","removeListener"],"mappings":"oZAQA,MAAMA,EACJ,WAAAC,CAAYC,GACVC,KAAKD,gBAAkBA,EACvBC,KAAKC,SAAW,IAAIF,EACtB,CACAE,SACA,OAAAC,CAAQC,GACNH,KAAKC,SAASG,WAAWD,EAC3B,CACA,KAAAE,CAAMC,GACJN,KAAKC,SAAWK,EAAaC,OAAS,EAAI,IAAID,GAAgB,IAAIN,KAAKD,gBACzE,CACA,eAAAS,GACE,OAAOR,KAAKC,QACd,EAEF,MAAMQ,UAAiBC,EAAAA,WACrBC,mBACAC,QACAC,cACAC,OACA,WAAAhB,IAAeC,GACbgB,QACAC,EAAAA,UACEhB,KAAKiB,iBAAiBlB,GACtBmB,EAAAA,SAASC,cACP,gHAGJnB,KAAKW,mBAAqB,IAAId,EAA2BE,GACzDC,KAAKY,QAAU,IAAIQ,UACnBpB,KAAKa,cAAgB,IAAIO,UACzBC,EAAAA,WAAWrB,KAAKY,QAASZ,KAAKa,eAC9Bb,KAAKc,OAASd,KAAKsB,wBACnBtB,KAAKuB,cAAcC,MAAK,KACtBxB,KAAKY,QAAQa,qBACbzB,KAAKa,cAAcY,uBAEvB,CACA,gBAAAR,CAAiBhB,GACf,OAAOA,EAASyB,OAAOC,IAAaC,MAAMC,QAAQF,IACpD,CACA,GAAAG,IAAOC,GACLf,EAAAA,UACEhB,KAAKiB,iBAAiBc,GACtBb,EAAAA,SAASC,cACP,mIAGJnB,KAAKW,mBAAmBT,QAAQ6B,EAClC,CACA,eAAAC,GACEhC,KAAKW,mBAAmBH,kBAAkByB,SAASN,IAC7C,WAAYA,IACdA,EAAQO,QAAS,KAGvB,CACA,aAAAC,IAAiB7B,GACfN,KAAKW,mBAAmBN,MAAMC,EAChC,CACA,YAAA8B,GACE,OAAOC,kBAAgBrC,KAAKW,mBAAmBH,kBACjD,CACA,qBAAAc,GACE,MAAO,CACLgB,GAAI,IAAIC,IACCvC,KAAKa,cAAcyB,MAAMC,GAElCC,eAAgB,IAAID,IACXvC,KAAKa,cAAc2B,kBAAkBD,GAE9Cd,mBAAoB,IAAIc,IACfvC,KAAKa,cAAcY,sBAAsBc,GAGtD","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"SetupApi.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { devUtils } from './utils/internal/devUtils.mjs';\nimport { pipeEvents } from './utils/internal/pipeEvents.mjs';\nimport { toReadonlyArray } from './utils/internal/toReadonlyArray.mjs';\nimport { Disposable } from './utils/internal/Disposable.mjs';\nclass HandlersController {\n}\nclass InMemoryHandlersController {\n constructor(initialHandlers) {\n this.initialHandlers = initialHandlers;\n this.handlers = [...initialHandlers];\n }\n handlers;\n prepend(runtimeHandles) {\n this.handlers.unshift(...runtimeHandles);\n }\n reset(nextHandlers) {\n this.handlers = nextHandlers.length > 0 ? [...nextHandlers] : [...this.initialHandlers];\n }\n currentHandlers() {\n return this.handlers;\n }\n}\nclass SetupApi extends Disposable {\n handlersController;\n emitter;\n publicEmitter;\n events;\n constructor(...initialHandlers) {\n super();\n invariant(\n this.validateHandlers(initialHandlers),\n devUtils.formatMessage(\n `Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?`\n )\n );\n this.handlersController = new InMemoryHandlersController(initialHandlers);\n this.emitter = new Emitter();\n this.publicEmitter = new Emitter();\n pipeEvents(this.emitter, this.publicEmitter);\n this.events = this.createLifeCycleEvents();\n this.subscriptions.push(() => {\n this.emitter.removeAllListeners();\n this.publicEmitter.removeAllListeners();\n });\n }\n validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n use(...runtimeHandlers) {\n invariant(\n this.validateHandlers(runtimeHandlers),\n devUtils.formatMessage(\n `Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?`\n )\n );\n this.handlersController.prepend(runtimeHandlers);\n }\n restoreHandlers() {\n this.handlersController.currentHandlers().forEach((handler) => {\n if (\"isUsed\" in handler) {\n handler.isUsed = false;\n }\n });\n }\n resetHandlers(...nextHandlers) {\n this.handlersController.reset(nextHandlers);\n }\n listHandlers() {\n return toReadonlyArray(this.handlersController.currentHandlers());\n }\n createLifeCycleEvents() {\n return {\n on: (...args) => {\n return this.publicEmitter.on(...args);\n },\n removeListener: (...args) => {\n return this.publicEmitter.removeListener(...args);\n },\n removeAllListeners: (...args) => {\n return this.publicEmitter.removeAllListeners(...args);\n }\n };\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n SetupApi\n};\n//# sourceMappingURL=SetupApi.mjs.map"],"names":["InMemoryHandlersController","constructor","initialHandlers","this","handlers","prepend","runtimeHandles","unshift","reset","nextHandlers","length","currentHandlers","SetupApi","Disposable","handlersController","emitter","publicEmitter","events","super","invariant","validateHandlers","devUtils","formatMessage","Emitter","pipeEvents","createLifeCycleEvents","subscriptions","push","removeAllListeners","every","handler","Array","isArray","use","runtimeHandlers","restoreHandlers","forEach","isUsed","resetHandlers","listHandlers","toReadonlyArray","on","args","removeListener"],"mappings":"0cAQA,MAAMA,EACJ,WAAAC,CAAYC,GACVC,KAAKD,gBAAkBA,EACvBC,KAAKC,SAAW,IAAIF,EACtB,CACAE,SACA,OAAAC,CAAQC,GACNH,KAAKC,SAASG,WAAWD,EAC3B,CACA,KAAAE,CAAMC,GACJN,KAAKC,SAAWK,EAAaC,OAAS,EAAI,IAAID,GAAgB,IAAIN,KAAKD,gBACzE,CACA,eAAAS,GACE,OAAOR,KAAKC,QACd,EAEF,MAAMQ,UAAiBC,EACrBC,mBACAC,QACAC,cACAC,OACA,WAAAhB,IAAeC,GACbgB,QACAC,EACEhB,KAAKiB,iBAAiBlB,GACtBmB,EAASC,cACP,gHAGJnB,KAAKW,mBAAqB,IAAId,EAA2BE,GACzDC,KAAKY,QAAU,IAAIQ,EACnBpB,KAAKa,cAAgB,IAAIO,EACzBC,EAAWrB,KAAKY,QAASZ,KAAKa,eAC9Bb,KAAKc,OAASd,KAAKsB,wBACnBtB,KAAKuB,cAAcC,MAAK,KACtBxB,KAAKY,QAAQa,qBACbzB,KAAKa,cAAcY,uBAEvB,CACA,gBAAAR,CAAiBhB,GACf,OAAOA,EAASyB,OAAOC,IAAaC,MAAMC,QAAQF,IACpD,CACA,GAAAG,IAAOC,GACLf,EACEhB,KAAKiB,iBAAiBc,GACtBb,EAASC,cACP,mIAGJnB,KAAKW,mBAAmBT,QAAQ6B,EAClC,CACA,eAAAC,GACEhC,KAAKW,mBAAmBH,kBAAkByB,SAASN,IAC7C,WAAYA,IACdA,EAAQO,QAAS,KAGvB,CACA,aAAAC,IAAiB7B,GACfN,KAAKW,mBAAmBN,MAAMC,EAChC,CACA,YAAA8B,GACE,OAAOC,EAAgBrC,KAAKW,mBAAmBH,kBACjD,CACA,qBAAAc,GACE,MAAO,CACLgB,GAAI,IAAIC,IACCvC,KAAKa,cAAcyB,MAAMC,GAElCC,eAAgB,IAAID,IACXvC,KAAKa,cAAc2B,kBAAkBD,GAE9Cd,mBAAoB,IAAIc,IACfvC,KAAKa,cAAcY,sBAAsBc,GAGtD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SetupApi.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { devUtils } from './utils/internal/devUtils.mjs';\nimport { pipeEvents } from './utils/internal/pipeEvents.mjs';\nimport { toReadonlyArray } from './utils/internal/toReadonlyArray.mjs';\nimport { Disposable } from './utils/internal/Disposable.mjs';\nclass HandlersController {\n}\nclass InMemoryHandlersController {\n constructor(initialHandlers) {\n this.initialHandlers = initialHandlers;\n this.handlers = [...initialHandlers];\n }\n handlers;\n prepend(runtimeHandles) {\n this.handlers.unshift(...runtimeHandles);\n }\n reset(nextHandlers) {\n this.handlers = nextHandlers.length > 0 ? [...nextHandlers] : [...this.initialHandlers];\n }\n currentHandlers() {\n return this.handlers;\n }\n}\nclass SetupApi extends Disposable {\n handlersController;\n emitter;\n publicEmitter;\n events;\n constructor(...initialHandlers) {\n super();\n invariant(\n this.validateHandlers(initialHandlers),\n devUtils.formatMessage(\n `Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?`\n )\n );\n this.handlersController = new InMemoryHandlersController(initialHandlers);\n this.emitter = new Emitter();\n this.publicEmitter = new Emitter();\n pipeEvents(this.emitter, this.publicEmitter);\n this.events = this.createLifeCycleEvents();\n this.subscriptions.push(() => {\n this.emitter.removeAllListeners();\n this.publicEmitter.removeAllListeners();\n });\n }\n validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n use(...runtimeHandlers) {\n invariant(\n this.validateHandlers(runtimeHandlers),\n devUtils.formatMessage(\n `Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?`\n )\n );\n this.handlersController.prepend(runtimeHandlers);\n }\n restoreHandlers() {\n this.handlersController.currentHandlers().forEach((handler) => {\n if (\"isUsed\" in handler) {\n handler.isUsed = false;\n }\n });\n }\n resetHandlers(...nextHandlers) {\n this.handlersController.reset(nextHandlers);\n }\n listHandlers() {\n return toReadonlyArray(this.handlersController.currentHandlers());\n }\n createLifeCycleEvents() {\n return {\n on: (...args) => {\n return this.publicEmitter.on(...args);\n },\n removeListener: (...args) => {\n return this.publicEmitter.removeListener(...args);\n },\n removeAllListeners: (...args) => {\n return this.publicEmitter.removeAllListeners(...args);\n }\n };\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n SetupApi\n};\n//# sourceMappingURL=SetupApi.mjs.map"],"names":["InMemoryHandlersController","constructor","initialHandlers","this","handlers","prepend","runtimeHandles","unshift","reset","nextHandlers","length","currentHandlers","SetupApi","Disposable","handlersController","emitter","publicEmitter","events","super","invariant","validateHandlers","devUtils","formatMessage","Emitter","pipeEvents","createLifeCycleEvents","subscriptions","push","removeAllListeners","every","handler","Array","isArray","use","runtimeHandlers","restoreHandlers","forEach","isUsed","resetHandlers","listHandlers","toReadonlyArray","on","args","removeListener"],"mappings":"0cAQA,MAAMA,EACJ,WAAAC,CAAYC,GACVC,KAAKD,gBAAkBA,EACvBC,KAAKC,SAAW,IAAIF,EACtB,CACAE,SACA,OAAAC,CAAQC,GACNH,KAAKC,SAASG,WAAWD,EAC3B,CACA,KAAAE,CAAMC,GACJN,KAAKC,SAAWK,EAAaC,OAAS,EAAI,IAAID,GAAgB,IAAIN,KAAKD,gBACzE,CACA,eAAAS,GACE,OAAOR,KAAKC,QACd,EAEF,MAAMQ,UAAiBC,EACrBC,mBACAC,QACAC,cACAC,OACA,WAAAhB,IAAeC,GACbgB,QACAC,EACEhB,KAAKiB,iBAAiBlB,GACtBmB,EAASC,cACP,gHAGJnB,KAAKW,mBAAqB,IAAId,EAA2BE,GACzDC,KAAKY,QAAU,IAAIQ,EACnBpB,KAAKa,cAAgB,IAAIO,EACzBC,EAAWrB,KAAKY,QAASZ,KAAKa,eAC9Bb,KAAKc,OAASd,KAAKsB,wBACnBtB,KAAKuB,cAAcC,MAAK,KACtBxB,KAAKY,QAAQa,qBACbzB,KAAKa,cAAcY,uBAEvB,CACA,gBAAAR,CAAiBhB,GACf,OAAOA,EAASyB,OAAOC,IAAaC,MAAMC,QAAQF,IACpD,CACA,GAAAG,IAAOC,GACLf,EACEhB,KAAKiB,iBAAiBc,GACtBb,EAASC,cACP,mIAGJnB,KAAKW,mBAAmBT,QAAQ6B,EAClC,CACA,eAAAC,GACEhC,KAAKW,mBAAmBH,kBAAkByB,SAASN,IAC7C,WAAYA,IACdA,EAAQO,QAAS,KAGvB,CACA,aAAAC,IAAiB7B,GACfN,KAAKW,mBAAmBN,MAAMC,EAChC,CACA,YAAA8B,GACE,OAAOC,EAAgBrC,KAAKW,mBAAmBH,kBACjD,CACA,qBAAAc,GACE,MAAO,CACLgB,GAAI,IAAIC,IACCvC,KAAKa,cAAcyB,MAAMC,GAElCC,eAAgB,IAAID,IACXvC,KAAKa,cAAc2B,kBAAkBD,GAE9Cd,mBAAoB,IAAIc,IACfvC,KAAKa,cAAcY,sBAAsBc,GAGtD","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"HttpHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"wjBAeIA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA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xB,KAAKH,KAAKN,kBAAkBW,OAASF,KAAKH,KAAKN,OAAOkC,KAAKD,GAAgBE,EAAAA,cAAc1B,KAAKH,KAAKN,OAAQiC,EACpH,CACA,kBAAAG,CAAmBpB,GACjB,MAAO,CACLS,OAAQT,EAAKgB,aAAaT,OAAOE,QAAU,CAAA,EAC3CL,QAASJ,EAAKgB,aAAaZ,QAE/B,CACA,SAAMiB,CAAIrB,GACR,MAAMsB,EAAYC,EAAAA,YAAYvB,EAAKG,QAAQF,KACrCuB,QAAsBC,mBAAiBzB,EAAKG,SAC5CuB,QAAuBC,oBAAkB3B,EAAK4B,UAC9CC,EAAcC,EAAAA,mBAAmBJ,EAAeK,QACtDC,QAAQC,eACNpC,EAAAA,SAASqC,cACP,GAAGC,EAAAA,kBAAkBnC,EAAKG,QAAQnB,UAAUsC,QAAgBI,EAAeK,UAAUL,EAAeU,iBAEtG,SAASP,IACT,iBAEFG,QAAQX,IAAI,UAAWG,GACvBQ,QAAQX,IAAI,WAAY5B,MACxBuC,QAAQX,IAAI,WAAYK,GACxBM,QAAQK,UACV","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"HttpHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"wjBAeIA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAoB,MAAI,QACxBA,EAAsB,QAAI,UAC1BA,EAAqB,OAAI,SAClBA,GARyB,CAS/BD,GAAe,CAAA,GAClB,MAAME,UAAoBC,EAAAA,eACxB,WAAAC,CAAYC,EAAQC,EAAWC,EAAUC,GACvC,MAAMC,EAAmC,mBAAdH,EAA2B,qBAAu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R,MAAMsB,EAAYC,EAAAA,YAAYvB,EAAKG,QAAQF,KACrCuB,QAAsBC,mBAAiBzB,EAAKG,SAC5CuB,QAAuBC,oBAAkB3B,EAAK4B,UAC9CC,EAAcC,EAAAA,mBAAmBJ,EAAeK,QACtDC,QAAQC,eACNpC,EAAAA,SAASqC,cACP,GAAGC,EAAAA,kBAAkBnC,EAAKG,QAAQnB,UAAUsC,QAAgBI,EAAeK,UAAUL,EAAeU,iBAEtG,SAASP,IACT,iBAEFG,QAAQX,IAAI,UAAWG,GACvBQ,QAAQX,IAAI,WAAY5B,MACxBuC,QAAQX,IAAI,WAAYK,GACxBM,QAAQK,UACV","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"qtBAeG,IAACA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAoB,MAAI,QACxBA,EAAsB,QAAI,UAC1BA,EAAqB,OAAI,SAClBA,GARyB,CAS/BD,GAAe,CAAA,GAClB,MAAME,UAAoBC,EACxB,WAAAC,CAAYC,EAAQC,EAAWC,EAAUC,GACvC,MAAMC,EAAmC,mBAAdH,EAA2B,qBAAuBA,EAC7EI,MAAM,CACJC,KAAM,CACJC,OAAQ,GAAGP,IAASI,EAAc,IAAIA,IAAgB,KACtDI,KAAMP,EACND,UAEFE,WACAC,YAEFM,KAAKC,+BACP,CACA,6BAAAA,GACE,MAAMV,OAAEA,EAAMQ,KAAEA,GAASC,KAAKH,KAC9B,IAAKE,GAAQA,aAAgBG,QAA0B,mBAATH,EAC5C,OAEUI,EAASJ,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UAAWG,GACvBQ,QAAQX,IAAI,WAAY5B,MACxBuC,QAAQX,IAAI,WAAYK,GACxBM,QAAQK,UACV","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"qtBAeG,IAACA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAoB,MAAI,QACxBA,EAAsB,QAAI,UAC1BA,EAAqB,OAAI,SAClBA,GARyB,CAS/BD,GAAe,CAAA,GAClB,MAAME,UAAoBC,EACxB,WAAAC,CAAYC,EAAQC,EAAWC,EAAUC,GACvC,MAAMC,EAAmC,mBAAdH,EAA2B,qBAAuBA,EAC7EI,MAAM,CACJC,KAAM,CACJC,OAAQ,GAAGP,IAASI,EAAc,IAAIA,IAAgB,KACtDI,KAAMP,EACND,UAEFE,WACAC,YAEFM,KAAKC,+BACP,CACA,6BAAAA,GACE,MAAMV,OAAEA,EAAMQ,KAAEA,GAASC,KAAKH,KAC9B,IAAKE,GAAQA,aAAgBG,QAA0B,mBAATH,EAC5C,OAEUI,EAASJ,KACTA,GAGZK,EAASC,KACP,+EAA+Ed,KAAUQ,6MAE7F,CACA,WAAMO,CAAMC,GACV,MAAMC,EAAM,IAAIC,IAAIF,EAAKG,QAAQF,KAC3BG,EAAUC,EAAqBL,EAAKG,SAC1C,GAA8B,mBAAnBV,KAAKH,KAAKE,KAAqB,CACxC,MAAMc,QAA8Bb,KAAKH,KAAKE,KAAK,CACjDW,QAASH,EAAKG,QACdC,YAMF,MAAO,CACLG,MAL8C,kBAA1BD,EAAsC,CAC1DE,QAASF,EACTG,OAAQ,CAAA,GACNH,EAGFF,UAEJ,CAEA,MAAO,CACLG,MAFYd,KAAKH,KAAKE,KAAOkB,EAAgBT,EAAKR,KAAKH,KAAKE,KAAMQ,EAAKW,mBAAmBC,SAAW,CAAEJ,SAAS,EAAOC,OAAQ,IAG/HL,UAEJ,CACA,eAAMnB,CAAUe,GACd,MAAMa,EAAoBpB,KAAKqB,YAAYd,EAAKG,QAAQnB,QAClD+B,EAAiBf,EAAKgB,aAAaT,MAAMC,QAC/C,OAAOK,GAAqBE,CAC9B,CACA,WAAAD,CAAYG,GACV,OAAOxB,KAAKH,KAAKN,kBAAkBW,OAASF,KAAKH,KAAKN,OAAOkC,KAAKD,GAAgBE,EAAc1B,KAAKH,KAAKN,OAAQiC,EACpH,CACA,kBAAAG,CAAmBpB,GACjB,MAAO,CACLS,OAAQT,EAAKgB,aAAaT,OAAOE,QAAU,CAAA,EAC3CL,QAASJ,EAAKgB,aAAaZ,QAE/B,CACA,SAAMiB,CAAIrB,GACR,MAAMsB,EAAYC,EAAYvB,EAAKG,QAAQF,KACrCuB,QAAsBC,EAAiBzB,EAAKG,SAC5CuB,QAAuBC,EAAkB3B,EAAK4B,UAC9CC,EAAcC,EAAmBJ,EAAeK,QACtDC,QAAQC,eACNpC,EAASqC,cACP,GAAGC,OAAkBnC,EAAKG,QAAQnB,UAAUsC,QAAgBI,EAAeK,UAAUL,EAAeU,iBAEtG,SAASP,IACT,iBAEFG,QAAQX,IAAI,UAAWG,GACvBQ,QAAQX,IAAI,WAAY5B,MACxBuC,QAAQX,IAAI,WAAYK,GACxBM,QAAQK,UACV","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.mjs"],"sourcesContent":["import { getCallFrame } from '../utils/internal/getCallFrame.mjs';\nimport {\n isIterable\n} from '../utils/internal/isIterable.mjs';\nclass RequestHandler {\n static cache = /* @__PURE__ */ new WeakMap();\n __kind;\n info;\n /**\n * Indicates whether this request handler has been used\n * (its resolver has successfully executed).\n */\n isUsed;\n resolver;\n resolverIterator;\n resolverIteratorResult;\n options;\n constructor(args) {\n this.resolver = args.resolver;\n this.options = args.options;\n const callFrame = getCallFrame(new Error());\n this.info = {\n ...args.info,\n callFrame\n };\n this.isUsed = false;\n this.__kind = \"RequestHandler\";\n }\n /**\n * Parse the intercepted request to extract additional information from it.\n * Parsed result is then exposed to other methods of this request handler.\n */\n async parse(_args) {\n return {};\n }\n /**\n * Test if this handler matches the given request.\n *\n * This method is not used internally but is exposed\n * as a convenience method for consumers writing custom\n * handlers.\n */\n async test(args) {\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n return this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n }\n extendResolverArgs(_args) {\n return {};\n }\n // Clone the request instance before it's passed to the handler phases\n // and the response resolver so we can always read it for logging.\n // We only clone it once per request to avoid unnecessary overhead.\n cloneRequestOrGetFromCache(request) {\n const existingClone = RequestHandler.cache.get(request);\n if (typeof existingClone !== \"undefined\") {\n return existingClone;\n }\n const clonedRequest = request.clone();\n RequestHandler.cache.set(request, clonedRequest);\n return clonedRequest;\n }\n /**\n * Execute this request handler and produce a mocked response\n * using the given resolver function.\n */\n async run(args) {\n if (this.isUsed && this.options?.once) {\n return null;\n }\n const requestClone = this.cloneRequestOrGetFromCache(args.request);\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n const shouldInterceptRequest = await this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n if (!shouldInterceptRequest) {\n return null;\n }\n if (this.isUsed && this.options?.once) {\n return null;\n }\n this.isUsed = true;\n const executeResolver = this.wrapResolver(this.resolver);\n const resolverExtras = this.extendResolverArgs({\n request: args.request,\n parsedResult\n });\n const mockedResponsePromise = executeResolver({\n ...resolverExtras,\n requestId: args.requestId,\n request: args.request\n }).catch((errorOrResponse) => {\n if (errorOrResponse instanceof Response) {\n return errorOrResponse;\n }\n throw errorOrResponse;\n });\n const mockedResponse = await mockedResponsePromise;\n const executionResult = this.createExecutionResult({\n // Pass the cloned request to the result so that logging\n // and other consumers could read its body once more.\n request: requestClone,\n requestId: args.requestId,\n response: mockedResponse,\n parsedResult\n });\n return executionResult;\n }\n wrapResolver(resolver) {\n return async (info) => {\n if (!this.resolverIterator) {\n const result = await resolver(info);\n if (!isIterable(result)) {\n return result;\n }\n this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();\n }\n this.isUsed = false;\n const { done, value } = await this.resolverIterator.next();\n const nextResponse = await value;\n if (nextResponse) {\n this.resolverIteratorResult = nextResponse.clone();\n }\n if (done) {\n this.isUsed = true;\n return this.resolverIteratorResult?.clone();\n }\n return nextResponse;\n };\n }\n createExecutionResult(args) {\n return {\n handler: this,\n request: args.request,\n requestId: args.requestId,\n response: args.response,\n parsedResult: args.parsedResult\n };\n }\n}\nexport {\n RequestHandler\n};\n//# sourceMappingURL=RequestHandler.mjs.map"],"names":["RequestHandler","static","WeakMap","__kind","info","isUsed","resolver","resolverIterator","resolverIteratorResult","options","constructor","args","this","callFrame","getCallFrame","Error","parse","_args","test","parsedResult","request","resolutionContext","predicate","extendResolverArgs","cloneRequestOrGetFromCache","existingClone","cache","get","clonedRequest","clone","set","run","once","requestClone","mockedResponsePromise","wrapResolver","executeResolver","requestId","catch","errorOrResponse","Response","mockedResponse","createExecutionResult","response","async","result","isIterable","Symbol","iterator","asyncIterator","done","value","next","nextResponse","handler"],"mappings":"qHAIA,MAAMA,EACJC,aAA+B,IAAIC,QACnCC,OACAC,KAKAC,OACAC,SACAC,iBACAC,uBACAC,QACA,WAAAC,CAAYC,GACVC,KAAKN,SAAWK,EAAKL,SACrBM,KAAKH,QAAUE,EAAKF,QACpB,MAAMI,EAAYC,EAAAA,aAAa,IAAIC,O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EACVtB,gBAGJ,CACA,YAAAgB,CAAa7B,GACX,OAAOsC,MAAOxC,IACZ,IAAKQ,KAAKL,iBAAkB,CAC1B,MAAMsC,QAAevC,EAASF,GAC9B,IAAK0C,EAAAA,WAAWD,GACd,OAAOA,EAETjC,KAAKL,iBAAmBwC,OAAOC,YAAYH,EAASA,EAAOE,OAAOC,YAAcH,EAAOE,OAAOE,gBAChG,CACArC,KAAKP,QAAS,EACd,MAAM6C,KAAEA,EAAIC,MAAEA,SAAgBvC,KAAKL,iBAAiB6C,OAC9CC,QAAqBF,EAI3B,OAHIE,IACFzC,KAAKJ,uBAAyB6C,EAAaxB,SAEzCqB,GACFtC,KAAKP,QAAS,EACPO,KAAKJ,wBAAwBqB,SAE/BwB,EAEX,CACA,qBAAAX,CAAsB/B,GACpB,MAAO,CACL2C,QAAS1C,KACTQ,QAAST,EAAKS,QACdiB,UAAW1B,EAAK0B,UAChBM,SAAUhC,EAAKgC,SACfxB,aAAcR,EAAKQ,aAEvB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"RequestHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.7_@types+node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.mjs"],"sourcesContent":["import { getCallFrame } from '../utils/internal/getCallFrame.mjs';\nimport {\n isIterable\n} from '../utils/internal/isIterable.mjs';\nclass RequestHandler {\n static cache = /* @__PURE__ */ new WeakMap();\n __kind;\n info;\n /**\n * Indicates whether this request handler has been used\n * (its resolver has successfully executed).\n */\n isUsed;\n resolver;\n resolverIterator;\n resolverIteratorResult;\n options;\n constructor(args) {\n this.resolver = args.resolver;\n this.options = args.options;\n const callFrame = getCallFrame(new Error());\n this.info = {\n ...args.info,\n callFrame\n };\n this.isUsed = false;\n this.__kind = \"RequestHandler\";\n }\n /**\n * Parse the intercepted request to extract additional information from it.\n * Parsed result is then exposed to other methods of this request handler.\n */\n async parse(_args) {\n return {};\n }\n /**\n * Test if this handler matches the given request.\n *\n * This method is not used internally but is exposed\n * as a convenience method for consumers writing custom\n * handlers.\n */\n async test(args) {\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n return this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n }\n extendResolverArgs(_args) {\n return {};\n }\n // Clone the request instance before it's passed to the handler phases\n // and the response resolver so we can always read it for logging.\n // We only clone it once per request to avoid unnecessary overhead.\n cloneRequestOrGetFromCache(request) {\n const existingClone = RequestHandler.cache.get(request);\n if (typeof existingClone !== \"undefined\") {\n return existingClone;\n }\n const clonedRequest = request.clone();\n RequestHandler.cache.set(request, clonedRequest);\n return clonedRequest;\n }\n /**\n * Execute this request handler and produce a mocked response\n * using the given resolver function.\n */\n async run(args) {\n if (this.isUsed && this.options?.once) {\n return null;\n }\n const requestClone = this.cloneRequestOrGetFromCache(args.request);\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n const shouldInterceptRequest = await this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n if (!shouldInterceptRequest) {\n return null;\n }\n if (this.isUsed && this.options?.once) {\n return null;\n }\n this.isUsed = true;\n const executeResolver = this.wrapResolver(this.resolver);\n const resolverExtras = this.extendResolverArgs({\n request: args.request,\n parsedResult\n });\n const mockedResponsePromise = executeResolver({\n ...resolverExtras,\n requestId: args.requestId,\n request: args.request\n }).catch((errorOrResponse) => {\n if (errorOrResponse instanceof Response) {\n return errorOrResponse;\n }\n throw errorOrResponse;\n });\n const mockedResponse = await mockedResponsePromise;\n const executionResult = this.createExecutionResult({\n // Pass the cloned request to the result so that logging\n // and other consumers could read its body once more.\n request: requestClone,\n requestId: args.requestId,\n response: mockedResponse,\n parsedResult\n });\n return executionResult;\n }\n wrapResolver(resolver) {\n return async (info) => {\n if (!this.resolverIterator) {\n const result = await resolver(info);\n if (!isIterable(result)) {\n return result;\n }\n this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();\n }\n this.isUsed = false;\n const { done, value } = await this.resolverIterator.next();\n const nextResponse = await value;\n if (nextResponse) {\n this.resolverIteratorResult = nextResponse.clone();\n }\n if (done) {\n this.isUsed = true;\n return this.resolverIteratorResult?.clone();\n }\n return nextResponse;\n };\n }\n createExecutionResult(args) {\n return {\n handler: this,\n request: args.request,\n requestId: args.requestId,\n response: args.response,\n parsedResult: args.parsedResult\n };\n }\n}\nexport {\n RequestHandler\n};\n//# sourceMappingURL=RequestHandler.mjs.map"],"names":["RequestHandler","static","WeakMap","__kind","info","isUsed","resolver","resolverIterator","resolverIteratorResult","options","constructor","args","this","callFrame","getCallFrame","Error","parse","_args","test","parsedResult","request","resolutionContext","predicate","extendResolverArgs","cloneRequestOrGetFromCache","existingClone","cache","get","clonedRequest","clone","set","run","once","requestClone","mockedResponsePromise","wrapResolver","executeResolver","requestId","catch","errorOrResponse","Response","mockedResponse","createExecutionResult","response","async","result","isIterable","Symbol","iterator","asyncIterator","done","value","next","nextResponse","handler"],"mappings":"qHAIA,MAAMA,EACJC,aAA+B,IAAIC,QACnCC,OACAC,KAKAC,OACAC,SACAC,iBACAC,uBACAC,QACA,WAAAC,CAAYC,GACVC,KAAKN,SAAWK,EAAKL,SACrBM,KAAKH,QAAUE,EAAKF,QACpB,MAAMI,EAAYC,EAAAA,aAAa,IAAIC,OACnCH,KAAKR,KAAO,IACPO,EAAKP,KACRS,aAEFD,KAAKP,QAAS,EACdO,KAAKT,OAAS,gBAChB,CAKA,WAAMa,CAAMC,GACV,MAAO,CAAA,CACT,CAQA,UAAMC,CAAKP,GACT,MAAMQ,QAAqBP,KAAKI,MAAM,CACpCI,QAAST,EAAKS,QACdC,kBAAmBV,EAAKU,oBAE1B,OAAOT,KAAKU,UAAU,CACpBF,QAAST,EAAKS,QACdD,eACAE,kBAAmBV,EAAKU,mBAE5B,CACA,kBAAAE,CAAmBN,GACjB,MAAO,CAAA,CACT,CAIA,0BAAAO,CAA2B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