@flipdish/portal-library 8.5.3 → 8.5.5

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 (190) hide show
  1. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +1 -1
  2. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
  3. package/dist/components/organisms/AssetManager/services/asset.service.js +1 -1
  4. package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
  5. package/dist/components/organisms/FileUpload/components/FileItem.cjs.js +1 -1
  6. package/dist/components/organisms/FileUpload/components/FileItem.cjs.js.map +1 -1
  7. package/dist/components/organisms/FileUpload/components/FileItem.js +1 -1
  8. package/dist/components/organisms/FileUpload/components/FileItem.js.map +1 -1
  9. package/dist/mocks/msw/handlers.cjs.js +1 -1
  10. package/dist/mocks/msw/handlers.d.ts +1 -1
  11. package/dist/mocks/msw/handlers.js +1 -1
  12. package/dist/mocks/msw/server.cjs.js +1 -1
  13. package/dist/mocks/msw/server.d.ts +1 -1
  14. package/dist/mocks/msw/server.js +1 -1
  15. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  16. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  17. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  18. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  19. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  20. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  21. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  22. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  23. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  24. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  25. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  26. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  27. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  28. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  29. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  30. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  31. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  32. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  33. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  34. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  35. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
  36. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
  37. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  38. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  39. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  40. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  41. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  42. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  43. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  44. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  45. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  46. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  47. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  48. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  49. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  50. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  51. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  52. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  53. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  54. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  55. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  56. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  57. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  58. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  59. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  60. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  61. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  62. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  63. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  64. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  65. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  66. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  67. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  68. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  69. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  70. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  71. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  72. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  73. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  74. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  75. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  76. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  77. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  78. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  79. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  80. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  81. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  82. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  83. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  84. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  85. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  86. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  87. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  88. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  89. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  90. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  91. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  92. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  93. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  94. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  95. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  96. package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
  97. package/package.json +2 -2
  98. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +0 -0
  99. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
  100. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
  101. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  102. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
  103. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  104. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  105. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
  106. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  107. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  108. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  109. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
  110. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  111. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  112. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  113. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  114. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  115. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  116. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  117. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  118. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  119. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  120. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  121. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  122. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  123. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  124. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  125. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  126. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  127. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  128. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  129. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  130. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  131. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  132. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  133. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  134. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  135. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  136. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  137. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  138. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  139. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  140. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  141. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  142. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  143. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  144. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  145. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  146. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  147. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  148. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  149. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  150. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  151. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  152. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  153. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  154. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  155. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  156. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  157. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  158. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  159. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  160. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
  161. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  162. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
  163. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  164. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  165. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  166. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  167. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  168. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  169. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  170. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  171. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  172. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  173. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  174. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  175. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  176. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  177. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  178. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  179. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  180. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  181. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  182. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +0 -0
  183. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +0 -0
  184. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
  185. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +0 -0
  186. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
  187. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  188. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  189. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  190. /package/dist/node_modules/.pnpm/{msw@2.12.10_@types_node@20.19.33_typescript@5.4.5 → msw@2.12.10_@types_node@20.19.34_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";var s=require("../../../../utilities/apiUtils.cjs.js"),t=require("@flipdish/asset-management"),e=require("../../../../utilities/fileUtils.cjs.js");const r=new t.Configuration({basePath:(()=>{const s=window.location?.host?.includes("portal.flipdish.com");return s?"https://api.portal.flipdish.com/assets":"https://api-prod-staging.portal.flipdishdev.com/assets"})(),baseOptions:{withCredentials:!0}}),i=new t.AssetsApi(r);exports.getAssets=async(t,e)=>{if(!t)throw console.error("Organization ID is required to fetch assets"),new Error("Organization ID is required to fetch assets");try{return(await i.listAssets(t,e)).data}catch(t){const e=s.getErrorMessage(t,"Failed to fetch assets");throw new Error(e)}},exports.uploadAsset=async t=>{const{orgId:r,brandId:a,files:o}=t;if(!r)throw new Error("Organization ID is required to upload assets");if(!o||0===o.length)throw new Error("At least one file is required to upload");const n=o.map(e.sanitizeFile);try{return(await i.uploadAsset(r,n,a)).data}catch(t){const e=s.getErrorMessage(t,"Failed to upload assets");throw new Error(e)}};
1
+ "use strict";var t=require("../../../../utilities/apiUtils.cjs.js"),s=require("../../../../utilities/fileUtils.cjs.js");const e=()=>{const t=window.location?.host?.includes("portal.flipdish.com");return t?"https://api.portal.flipdish.com/assets":"https://api-prod-staging.portal.flipdishdev.com/assets"};exports.getAssets=async(t,s)=>{const r=((t,s)=>{if(!t)return;const r=s?`?brandId=${s}`:"";return`${e()}/orgs/${t}/assets${r}`})(t,s);if(!r)throw new Error("Organization ID is required to fetch assets");const o=await fetch(r,{method:"GET",credentials:"include"});if(!o.ok)throw new Error(`Failed to fetch assets: ${o.statusText}`);return await o.json()},exports.uploadAsset=async r=>{const{orgId:o,brandId:a,files:i}=r;if(!o)throw new Error("Organization ID is required to upload assets");if(!i||0===i.length)throw new Error("At least one file is required to upload");const n=i.map(s.sanitizeFile),d=`${e()}/orgs/${encodeURIComponent(o)}/assets/upload`,c=new FormData;for(const t of n)c.append("files",t);void 0!==a&&c.append("brandId",a);try{const t=await fetch(d,{method:"POST",credentials:"include",body:c});if(!t.ok){let s=t.statusText;try{const e=await t.json();s=e?.error?.message??e?.Message??s}catch{}throw new Error(s||"Failed to upload assets")}return await t.json()}catch(s){const e=t.getErrorMessage(s,"Failed to upload assets");throw new Error(e)}};
2
2
  //# sourceMappingURL=asset.service.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.service.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/services/asset.service.ts"],"sourcesContent":["import { getErrorMessage } from '@fd/utilities/apiUtils';\nimport { AssetsApi, Configuration } from '@flipdish/asset-management';\n\nimport { sanitizeFile } from '../../../../utilities/fileUtils';\nimport type { ListAssetsResponse, UploadAssetResponse } from '../types/assets.type';\n\nconst PROD_API_URL = 'https://api.portal.flipdish.com/assets';\nconst DEV_STAGING_API_URL = 'https://api-prod-staging.portal.flipdishdev.com/assets';\n\n/**\n * Gets the asset management API base URL based on the current environment\n * @returns The appropriate API URL for the current environment\n */\nconst getAssetManagementApiUrl = (): string => {\n const isProd = window.location?.host?.includes('portal.flipdish.com');\n\n if (isProd) {\n return PROD_API_URL;\n }\n\n return DEV_STAGING_API_URL;\n};\n\n/**\n * Configuration for the asset management API client\n * - basePath: API base URL based on environment\n * - baseOptions.withCredentials: Send cookies/credentials with requests\n */\nconst configuration = new Configuration({\n basePath: getAssetManagementApiUrl(),\n baseOptions: {\n withCredentials: true,\n },\n});\n\nconst assetsApi = new AssetsApi(configuration);\n\n/**\n * Fetches assets from the asset management service API\n * @param orgId - organization ID.\n * @param brandId - brand ID.\n * @returns Promise resolving to an array of assets\n */\nexport const getAssets = async (orgId: string, brandId?: string): Promise<ListAssetsResponse> => {\n if (!orgId) {\n console.error('Organization ID is required to fetch assets');\n throw new Error('Organization ID is required to fetch assets');\n }\n\n try {\n const response = await assetsApi.listAssets(orgId, brandId);\n return response.data;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to fetch assets');\n throw new Error(errorMessage);\n }\n};\n\n/**\n * Upload parameters for asset upload\n */\nexport interface UploadAssetParams {\n /** Organization ID */\n orgId: string;\n /** Optional brand ID */\n brandId?: string;\n /** The files to upload */\n files: File[];\n}\n\n/**\n * Uploads multiple assets to the asset management service API\n * Sanitizes filenames by replacing spaces with dashes before uploading\n * @param params - Upload parameters containing orgId, brandId, and files\n * @returns Promise resolving to an array of uploaded assets\n */\nexport const uploadAsset = async (params: UploadAssetParams): Promise<UploadAssetResponse> => {\n const { orgId, brandId, files } = params;\n\n if (!orgId) {\n throw new Error('Organization ID is required to upload assets');\n }\n\n if (!files || files.length === 0) {\n throw new Error('At least one file is required to upload');\n }\n\n // Sanitize filenames by replacing spaces with dashes\n const sanitizedFiles = files.map(sanitizeFile);\n\n try {\n const response = await assetsApi.uploadAsset(orgId, sanitizedFiles, brandId);\n return response.data;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to upload assets');\n throw new Error(errorMessage);\n }\n};\n"],"names":["configuration","Configuration","basePath","isProd","window","location","host","includes","getAssetManagementApiUrl","baseOptions","withCredentials","assetsApi","AssetsApi","async","orgId","brandId","console","error","Error","listAssets","data","errorMessage","getErrorMessage","params","files","length","sanitizedFiles","map","sanitizeFile","uploadAsset"],"mappings":"gKAMA,MAsBMA,EAAgB,IAAIC,EAAAA,cAAc,CACtCC,SAhB+B,MAC/B,MAAMC,EAASC,OAAOC,UAAUC,MAAMC,SAAS,uBAE/C,OAAIJ,EAVe,yCACO,0DAsBhBK,GACVC,YAAa,CACXC,iBAAiB,KAIfC,EAAY,IAAIC,EAAAA,UAAUZ,qBAQPa,MAAOC,EAAeC,KAC7C,IAAKD,EAEH,MADAE,QAAQC,MAAM,+CACR,IAAIC,MAAM,+CAGlB,IAEE,aADuBP,EAAUQ,WAAWL,EAAOC,IACnCK,IAClB,CAAE,MAAOH,GACP,MAAMI,EAAeC,EAAAA,gBAAgBL,EAAO,0BAC5C,MAAM,IAAIC,MAAMG,EAClB,uBAqByBR,MAAOU,IAChC,MAAMT,MAAEA,EAAKC,QAAEA,EAAOS,MAAEA,GAAUD,EAElC,IAAKT,EACH,MAAM,IAAII,MAAM,gDAGlB,IAAKM,GAA0B,IAAjBA,EAAMC,OAClB,MAAM,IAAIP,MAAM,2CAIlB,MAAMQ,EAAiBF,EAAMG,IAAIC,gBAEjC,IAEE,aADuBjB,EAAUkB,YAAYf,EAAOY,EAAgBX,IACpDK,IAClB,CAAE,MAAOH,GACP,MAAMI,EAAeC,EAAAA,gBAAgBL,EAAO,2BAC5C,MAAM,IAAIC,MAAMG,EAClB"}
1
+ {"version":3,"file":"asset.service.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/services/asset.service.ts"],"sourcesContent":["import { getErrorMessage } from '@fd/utilities/apiUtils';\n\nimport { sanitizeFile } from '../../../../utilities/fileUtils';\nimport type { ListAssetsResponse, UploadAssetResponse } from '../types/assets.type';\n\nconst PROD_API_URL = 'https://api.portal.flipdish.com/assets';\nconst DEV_STAGING_API_URL = 'https://api-prod-staging.portal.flipdishdev.com/assets';\n\n/**\n * Gets the asset management API base URL based on the current environment\n * @returns The appropriate API URL for the current environment\n */\nconst getAssetManagementApiUrl = (): string => {\n const isProd = window.location?.host?.includes('portal.flipdish.com');\n\n if (isProd) {\n return PROD_API_URL;\n }\n\n return DEV_STAGING_API_URL;\n};\n\nconst buildApiUrl = (orgId: string, brandId?: string): string | undefined => {\n if (!orgId) return undefined;\n const brandIdQueryParam = brandId ? `?brandId=${brandId}` : '';\n const baseUrl = getAssetManagementApiUrl();\n return `${baseUrl}/orgs/${orgId}/assets${brandIdQueryParam}`;\n};\n\n/**\n * Fetches assets from the asset management service API\n * @param orgId - organization ID.\n * @param brandId - brand ID.\n * @returns Promise resolving to an array of assets\n */\nexport const getAssets = async (orgId: string, brandId?: string): Promise<ListAssetsResponse> => {\n const apiUrl = buildApiUrl(orgId, brandId);\n\n if (!apiUrl) {\n throw new Error('Organization ID is required to fetch assets');\n }\n\n const response = await fetch(apiUrl, {\n method: 'GET',\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch assets: ${response.statusText}`);\n }\n\n return (await response.json()) as ListAssetsResponse;\n};\n\n/**\n * Upload parameters for asset upload\n */\nexport interface UploadAssetParams {\n /** Organization ID */\n orgId: string;\n /** Optional brand ID */\n brandId?: string;\n /** The files to upload */\n files: File[];\n}\n\n/**\n * Uploads multiple assets to the asset management service API\n * Sanitizes filenames by replacing spaces with dashes before uploading\n * @param params - Upload parameters containing orgId, brandId, and files\n * @returns Promise resolving to an array of uploaded assets\n */\nexport const uploadAsset = async (params: UploadAssetParams): Promise<UploadAssetResponse> => {\n const { orgId, brandId, files } = params;\n\n if (!orgId) {\n throw new Error('Organization ID is required to upload assets');\n }\n\n if (!files || files.length === 0) {\n throw new Error('At least one file is required to upload');\n }\n\n // Sanitize filenames by replacing spaces with dashes\n const sanitizedFiles = files.map(sanitizeFile);\n\n const baseUrl = getAssetManagementApiUrl();\n const uploadUrl = `${baseUrl}/orgs/${encodeURIComponent(orgId)}/assets/upload`;\n\n const formData = new FormData();\n for (const file of sanitizedFiles) {\n formData.append('files', file);\n }\n if (brandId !== undefined) {\n formData.append('brandId', brandId);\n }\n\n try {\n const response = await fetch(uploadUrl, {\n method: 'POST',\n credentials: 'include',\n body: formData,\n });\n\n if (!response.ok) {\n let message = response.statusText;\n try {\n const body = (await response.json()) as { error?: { message?: string }; Message?: string };\n message = body?.error?.message ?? body?.Message ?? message;\n } catch {\n // ignore JSON parse failure\n }\n throw new Error(message || 'Failed to upload assets');\n }\n\n return (await response.json()) as UploadAssetResponse;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to upload assets');\n throw new Error(errorMessage);\n }\n};\n"],"names":["getAssetManagementApiUrl","isProd","window","location","host","includes","async","orgId","brandId","apiUrl","brandIdQueryParam","buildApiUrl","Error","response","fetch","method","credentials","ok","statusText","json","params","files","length","sanitizedFiles","map","sanitizeFile","uploadUrl","encodeURIComponent","formData","FormData","file","append","undefined","body","message","error","Message","errorMessage","getErrorMessage"],"mappings":"wHAKA,MAOMA,EAA2B,KAC/B,MAAMC,EAASC,OAAOC,UAAUC,MAAMC,SAAS,uBAE/C,OAAIJ,EAVe,yCACO,4EA6BHK,MAAOC,EAAeC,KAC7C,MAAMC,EAdY,EAACF,EAAeC,KAClC,IAAKD,EAAO,OACZ,MAAMG,EAAoBF,EAAU,YAAYA,IAAY,GAE5D,MAAO,GADSR,YACUO,WAAeG,KAU1BC,CAAYJ,EAAOC,GAElC,IAAKC,EACH,MAAM,IAAIG,MAAM,+CAGlB,MAAMC,QAAiBC,MAAML,EAAQ,CACnCM,OAAQ,MACRC,YAAa,YAGf,IAAKH,EAASI,GACZ,MAAM,IAAIL,MAAM,2BAA2BC,EAASK,cAGtD,aAAcL,EAASM,4BAqBEb,MAAOc,IAChC,MAAMb,MAAEA,EAAKC,QAAEA,EAAOa,MAAEA,GAAUD,EAElC,IAAKb,EACH,MAAM,IAAIK,MAAM,gDAGlB,IAAKS,GAA0B,IAAjBA,EAAMC,OAClB,MAAM,IAAIV,MAAM,2CAIlB,MAAMW,EAAiBF,EAAMG,IAAIC,gBAG3BC,EAAY,GADF1B,YACqB2B,mBAAmBpB,mBAElDqB,EAAW,IAAIC,SACrB,IAAK,MAAMC,KAAQP,EACjBK,EAASG,OAAO,QAASD,QAEXE,IAAZxB,GACFoB,EAASG,OAAO,UAAWvB,GAG7B,IACE,MAAMK,QAAiBC,MAAMY,EAAW,CACtCX,OAAQ,OACRC,YAAa,UACbiB,KAAML,IAGR,IAAKf,EAASI,GAAI,CAChB,IAAIiB,EAAUrB,EAASK,WACvB,IACE,MAAMe,QAAcpB,EAASM,OAC7Be,EAAUD,GAAME,OAAOD,SAAWD,GAAMG,SAAWF,CACrD,CAAE,MAEF,CACA,MAAM,IAAItB,MAAMsB,GAAW,0BAC7B,CAEA,aAAcrB,EAASM,MACzB,CAAE,MAAOgB,GACP,MAAME,EAAeC,EAAAA,gBAAgBH,EAAO,2BAC5C,MAAM,IAAIvB,MAAMyB,EAClB"}
@@ -1,2 +1,2 @@
1
- import{getErrorMessage as t}from"../../../../utilities/apiUtils.js";import{Configuration as s,AssetsApi as r}from"@flipdish/asset-management";import{sanitizeFile as i}from"../../../../utilities/fileUtils.js";const o=new r(new s({basePath:(()=>{const t=window.location?.host?.includes("portal.flipdish.com");return t?"https://api.portal.flipdish.com/assets":"https://api-prod-staging.portal.flipdishdev.com/assets"})(),baseOptions:{withCredentials:!0}})),e=async(s,r)=>{if(!s)throw console.error("Organization ID is required to fetch assets"),new Error("Organization ID is required to fetch assets");try{return(await o.listAssets(s,r)).data}catch(s){const r=t(s,"Failed to fetch assets");throw new Error(r)}},a=async s=>{const{orgId:r,brandId:e,files:a}=s;if(!r)throw new Error("Organization ID is required to upload assets");if(!a||0===a.length)throw new Error("At least one file is required to upload");const n=a.map(i);try{return(await o.uploadAsset(r,n,e)).data}catch(s){const r=t(s,"Failed to upload assets");throw new Error(r)}};export{e as getAssets,a as uploadAsset};
1
+ import{getErrorMessage as t}from"../../../../utilities/apiUtils.js";import{sanitizeFile as s}from"../../../../utilities/fileUtils.js";const o=()=>{const t=window.location?.host?.includes("portal.flipdish.com");return t?"https://api.portal.flipdish.com/assets":"https://api-prod-staging.portal.flipdishdev.com/assets"},e=async(t,s)=>{const e=((t,s)=>{if(!t)return;const e=s?`?brandId=${s}`:"";return`${o()}/orgs/${t}/assets${e}`})(t,s);if(!e)throw new Error("Organization ID is required to fetch assets");const r=await fetch(e,{method:"GET",credentials:"include"});if(!r.ok)throw new Error(`Failed to fetch assets: ${r.statusText}`);return await r.json()},r=async e=>{const{orgId:r,brandId:a,files:i}=e;if(!r)throw new Error("Organization ID is required to upload assets");if(!i||0===i.length)throw new Error("At least one file is required to upload");const n=i.map(s),d=`${o()}/orgs/${encodeURIComponent(r)}/assets/upload`,c=new FormData;for(const t of n)c.append("files",t);void 0!==a&&c.append("brandId",a);try{const t=await fetch(d,{method:"POST",credentials:"include",body:c});if(!t.ok){let s=t.statusText;try{const o=await t.json();s=o?.error?.message??o?.Message??s}catch{}throw new Error(s||"Failed to upload assets")}return await t.json()}catch(s){const o=t(s,"Failed to upload assets");throw new Error(o)}};export{e as getAssets,r as uploadAsset};
2
2
  //# sourceMappingURL=asset.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.service.js","sources":["../../../../../src/components/organisms/AssetManager/services/asset.service.ts"],"sourcesContent":["import { getErrorMessage } from '@fd/utilities/apiUtils';\nimport { AssetsApi, Configuration } from '@flipdish/asset-management';\n\nimport { sanitizeFile } from '../../../../utilities/fileUtils';\nimport type { ListAssetsResponse, UploadAssetResponse } from '../types/assets.type';\n\nconst PROD_API_URL = 'https://api.portal.flipdish.com/assets';\nconst DEV_STAGING_API_URL = 'https://api-prod-staging.portal.flipdishdev.com/assets';\n\n/**\n * Gets the asset management API base URL based on the current environment\n * @returns The appropriate API URL for the current environment\n */\nconst getAssetManagementApiUrl = (): string => {\n const isProd = window.location?.host?.includes('portal.flipdish.com');\n\n if (isProd) {\n return PROD_API_URL;\n }\n\n return DEV_STAGING_API_URL;\n};\n\n/**\n * Configuration for the asset management API client\n * - basePath: API base URL based on environment\n * - baseOptions.withCredentials: Send cookies/credentials with requests\n */\nconst configuration = new Configuration({\n basePath: getAssetManagementApiUrl(),\n baseOptions: {\n withCredentials: true,\n },\n});\n\nconst assetsApi = new AssetsApi(configuration);\n\n/**\n * Fetches assets from the asset management service API\n * @param orgId - organization ID.\n * @param brandId - brand ID.\n * @returns Promise resolving to an array of assets\n */\nexport const getAssets = async (orgId: string, brandId?: string): Promise<ListAssetsResponse> => {\n if (!orgId) {\n console.error('Organization ID is required to fetch assets');\n throw new Error('Organization ID is required to fetch assets');\n }\n\n try {\n const response = await assetsApi.listAssets(orgId, brandId);\n return response.data;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to fetch assets');\n throw new Error(errorMessage);\n }\n};\n\n/**\n * Upload parameters for asset upload\n */\nexport interface UploadAssetParams {\n /** Organization ID */\n orgId: string;\n /** Optional brand ID */\n brandId?: string;\n /** The files to upload */\n files: File[];\n}\n\n/**\n * Uploads multiple assets to the asset management service API\n * Sanitizes filenames by replacing spaces with dashes before uploading\n * @param params - Upload parameters containing orgId, brandId, and files\n * @returns Promise resolving to an array of uploaded assets\n */\nexport const uploadAsset = async (params: UploadAssetParams): Promise<UploadAssetResponse> => {\n const { orgId, brandId, files } = params;\n\n if (!orgId) {\n throw new Error('Organization ID is required to upload assets');\n }\n\n if (!files || files.length === 0) {\n throw new Error('At least one file is required to upload');\n }\n\n // Sanitize filenames by replacing spaces with dashes\n const sanitizedFiles = files.map(sanitizeFile);\n\n try {\n const response = await assetsApi.uploadAsset(orgId, sanitizedFiles, brandId);\n return response.data;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to upload assets');\n throw new Error(errorMessage);\n }\n};\n"],"names":["assetsApi","AssetsApi","Configuration","basePath","isProd","window","location","host","includes","getAssetManagementApiUrl","baseOptions","withCredentials","getAssets","async","orgId","brandId","console","error","Error","listAssets","data","errorMessage","getErrorMessage","uploadAsset","params","files","length","sanitizedFiles","map","sanitizeFile"],"mappings":"gNAMA,MA6BMA,EAAY,IAAIC,EAPA,IAAIC,EAAc,CACtCC,SAhB+B,MAC/B,MAAMC,EAASC,OAAOC,UAAUC,MAAMC,SAAS,uBAE/C,OAAIJ,EAVe,yCACO,0DAsBhBK,GACVC,YAAa,CACXC,iBAAiB,MAYRC,EAAYC,MAAOC,EAAeC,KAC7C,IAAKD,EAEH,MADAE,QAAQC,MAAM,+CACR,IAAIC,MAAM,+CAGlB,IAEE,aADuBlB,EAAUmB,WAAWL,EAAOC,IACnCK,IAClB,CAAE,MAAOH,GACP,MAAMI,EAAeC,EAAgBL,EAAO,0BAC5C,MAAM,IAAIC,MAAMG,EAClB,GAqBWE,EAAcV,MAAOW,IAChC,MAAMV,MAAEA,EAAKC,QAAEA,EAAOU,MAAEA,GAAUD,EAElC,IAAKV,EACH,MAAM,IAAII,MAAM,gDAGlB,IAAKO,GAA0B,IAAjBA,EAAMC,OAClB,MAAM,IAAIR,MAAM,2CAIlB,MAAMS,EAAiBF,EAAMG,IAAIC,GAEjC,IAEE,aADuB7B,EAAUuB,YAAYT,EAAOa,EAAgBZ,IACpDK,IAClB,CAAE,MAAOH,GACP,MAAMI,EAAeC,EAAgBL,EAAO,2BAC5C,MAAM,IAAIC,MAAMG,EAClB"}
1
+ {"version":3,"file":"asset.service.js","sources":["../../../../../src/components/organisms/AssetManager/services/asset.service.ts"],"sourcesContent":["import { getErrorMessage } from '@fd/utilities/apiUtils';\n\nimport { sanitizeFile } from '../../../../utilities/fileUtils';\nimport type { ListAssetsResponse, UploadAssetResponse } from '../types/assets.type';\n\nconst PROD_API_URL = 'https://api.portal.flipdish.com/assets';\nconst DEV_STAGING_API_URL = 'https://api-prod-staging.portal.flipdishdev.com/assets';\n\n/**\n * Gets the asset management API base URL based on the current environment\n * @returns The appropriate API URL for the current environment\n */\nconst getAssetManagementApiUrl = (): string => {\n const isProd = window.location?.host?.includes('portal.flipdish.com');\n\n if (isProd) {\n return PROD_API_URL;\n }\n\n return DEV_STAGING_API_URL;\n};\n\nconst buildApiUrl = (orgId: string, brandId?: string): string | undefined => {\n if (!orgId) return undefined;\n const brandIdQueryParam = brandId ? `?brandId=${brandId}` : '';\n const baseUrl = getAssetManagementApiUrl();\n return `${baseUrl}/orgs/${orgId}/assets${brandIdQueryParam}`;\n};\n\n/**\n * Fetches assets from the asset management service API\n * @param orgId - organization ID.\n * @param brandId - brand ID.\n * @returns Promise resolving to an array of assets\n */\nexport const getAssets = async (orgId: string, brandId?: string): Promise<ListAssetsResponse> => {\n const apiUrl = buildApiUrl(orgId, brandId);\n\n if (!apiUrl) {\n throw new Error('Organization ID is required to fetch assets');\n }\n\n const response = await fetch(apiUrl, {\n method: 'GET',\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch assets: ${response.statusText}`);\n }\n\n return (await response.json()) as ListAssetsResponse;\n};\n\n/**\n * Upload parameters for asset upload\n */\nexport interface UploadAssetParams {\n /** Organization ID */\n orgId: string;\n /** Optional brand ID */\n brandId?: string;\n /** The files to upload */\n files: File[];\n}\n\n/**\n * Uploads multiple assets to the asset management service API\n * Sanitizes filenames by replacing spaces with dashes before uploading\n * @param params - Upload parameters containing orgId, brandId, and files\n * @returns Promise resolving to an array of uploaded assets\n */\nexport const uploadAsset = async (params: UploadAssetParams): Promise<UploadAssetResponse> => {\n const { orgId, brandId, files } = params;\n\n if (!orgId) {\n throw new Error('Organization ID is required to upload assets');\n }\n\n if (!files || files.length === 0) {\n throw new Error('At least one file is required to upload');\n }\n\n // Sanitize filenames by replacing spaces with dashes\n const sanitizedFiles = files.map(sanitizeFile);\n\n const baseUrl = getAssetManagementApiUrl();\n const uploadUrl = `${baseUrl}/orgs/${encodeURIComponent(orgId)}/assets/upload`;\n\n const formData = new FormData();\n for (const file of sanitizedFiles) {\n formData.append('files', file);\n }\n if (brandId !== undefined) {\n formData.append('brandId', brandId);\n }\n\n try {\n const response = await fetch(uploadUrl, {\n method: 'POST',\n credentials: 'include',\n body: formData,\n });\n\n if (!response.ok) {\n let message = response.statusText;\n try {\n const body = (await response.json()) as { error?: { message?: string }; Message?: string };\n message = body?.error?.message ?? body?.Message ?? message;\n } catch {\n // ignore JSON parse failure\n }\n throw new Error(message || 'Failed to upload assets');\n }\n\n return (await response.json()) as UploadAssetResponse;\n } catch (error: unknown) {\n const errorMessage = getErrorMessage(error, 'Failed to upload assets');\n throw new Error(errorMessage);\n }\n};\n"],"names":["getAssetManagementApiUrl","isProd","window","location","host","includes","getAssets","async","orgId","brandId","apiUrl","brandIdQueryParam","buildApiUrl","Error","response","fetch","method","credentials","ok","statusText","json","uploadAsset","params","files","length","sanitizedFiles","map","sanitizeFile","uploadUrl","encodeURIComponent","formData","FormData","file","append","undefined","body","message","error","Message","errorMessage","getErrorMessage"],"mappings":"sIAKA,MAOMA,EAA2B,KAC/B,MAAMC,EAASC,OAAOC,UAAUC,MAAMC,SAAS,uBAE/C,OAAIJ,EAVe,yCACO,0DA6BfK,EAAYC,MAAOC,EAAeC,KAC7C,MAAMC,EAdY,EAACF,EAAeC,KAClC,IAAKD,EAAO,OACZ,MAAMG,EAAoBF,EAAU,YAAYA,IAAY,GAE5D,MAAO,GADST,YACUQ,WAAeG,KAU1BC,CAAYJ,EAAOC,GAElC,IAAKC,EACH,MAAM,IAAIG,MAAM,+CAGlB,MAAMC,QAAiBC,MAAML,EAAQ,CACnCM,OAAQ,MACRC,YAAa,YAGf,IAAKH,EAASI,GACZ,MAAM,IAAIL,MAAM,2BAA2BC,EAASK,cAGtD,aAAcL,EAASM,QAqBZC,EAAcd,MAAOe,IAChC,MAAMd,MAAEA,EAAKC,QAAEA,EAAOc,MAAEA,GAAUD,EAElC,IAAKd,EACH,MAAM,IAAIK,MAAM,gDAGlB,IAAKU,GAA0B,IAAjBA,EAAMC,OAClB,MAAM,IAAIX,MAAM,2CAIlB,MAAMY,EAAiBF,EAAMG,IAAIC,GAG3BC,EAAY,GADF5B,YACqB6B,mBAAmBrB,mBAElDsB,EAAW,IAAIC,SACrB,IAAK,MAAMC,KAAQP,EACjBK,EAASG,OAAO,QAASD,QAEXE,IAAZzB,GACFqB,EAASG,OAAO,UAAWxB,GAG7B,IACE,MAAMK,QAAiBC,MAAMa,EAAW,CACtCZ,OAAQ,OACRC,YAAa,UACbkB,KAAML,IAGR,IAAKhB,EAASI,GAAI,CAChB,IAAIkB,EAAUtB,EAASK,WACvB,IACE,MAAMgB,QAAcrB,EAASM,OAC7BgB,EAAUD,GAAME,OAAOD,SAAWD,GAAMG,SAAWF,CACrD,CAAE,MAEF,CACA,MAAM,IAAIvB,MAAMuB,GAAW,0BAC7B,CAEA,aAActB,EAASM,MACzB,CAAE,MAAOiB,GACP,MAAME,EAAeC,EAAgBH,EAAO,2BAC5C,MAAM,IAAIxB,MAAM0B,EAClB"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime");require("react");var r=require("@mui/material/Box"),t=require("@mui/material/Stack"),i=require("@mui/material/styles/styled"),a=require("@mui/material/styles/useTheme"),s=require("../../../atoms/IconButton/index.cjs.js"),n=require("../../../atoms/LinearProgress/index.cjs.js"),o=require("@mui/material/Typography"),l=require("../../../../icons/Cancel/index.cjs.js"),c=require("../../../../providers/TranslationProvider.cjs.js"),d=require("./FileThumbnail.cjs.js");const u=i(r,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({display:"flex",alignItems:"center",width:"100%",gap:e.spacing(2),padding:e.spacing(2),borderBottom:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,backgroundColor:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.background["background-raised"]}))),m=i(r)((()=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",width:"100%"}))),x=i(o)((()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}))),p=i(n.LinearProgress)({width:"250px"});module.exports=({file:r,error:i=null,isUploading:n=!1,onRemove:h})=>{const j=a(),{translate:g}=c.useTranslation();return e.jsxs(u,{hasError:!!i,children:[e.jsx(d,{file:r}),e.jsxs(t,{direction:"row",flex:1,gap:j.spacing(1),children:[e.jsxs(t,{direction:"column",width:"100%",children:[e.jsx(x,{color:j.palette.semantic.text["text-strong"],variant:"captionWeak",children:r.name}),e.jsx(o,{color:j.palette.semantic.text["text-weak"],variant:"captionWeak",children:(e=>{if(0===e)return"0 Bytes";const r=Math.floor(Math.log(e)/Math.log(1024));return`${Math.round(e/Math.pow(1024,r)*100)/100} ${["B","KB","MB","GB"][r]}`})(r.size)})]}),e.jsxs(m,{children:[i&&e.jsx(o,{color:j.palette.semantic.text["text-error"],variant:"captionWeak",children:i}),n&&e.jsx(p,{})]})]}),e.jsx(s.IconButton,{"aria-label":g("Remove_file"),onClick:()=>{h(r)},size:"small",tone:"neutral",variant:"tertiary",children:e.jsx(l,{})})]})};
1
+ "use strict";var e=require("react/jsx-runtime");require("react");var r=require("@mui/material/Box"),t=require("@mui/material/styles/styled"),i=require("@mui/material/styles/useTheme"),a=require("../../../atoms/IconButton/index.cjs.js"),s=require("../../../atoms/LinearProgress/index.cjs.js"),n=require("@mui/material/Typography"),o=require("../../../../icons/Cancel/index.cjs.js"),l=require("../../../../providers/TranslationProvider.cjs.js"),c=require("./FileThumbnail.cjs.js");const d=t(r,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({display:"flex",alignItems:"center",gap:e.spacing(2),padding:e.spacing(2),borderBottom:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,backgroundColor:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.background["background-raised"]}))),x=t(r)((({theme:e})=>({flex:1,display:"flex",flexDirection:"row",gap:e.spacing(1),overflow:"hidden",minWidth:0}))),u=t(r)((()=>({flex:1,display:"flex",overflow:"hidden",flexDirection:"column",minWidth:0}))),m=t(r)((()=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end"}))),p=t(n)((()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}))),h=t(s.LinearProgress)({width:"250px"});module.exports=({file:r,error:t=null,isUploading:s=!1,onRemove:j})=>{const f=i(),{translate:g}=l.useTranslation();return e.jsxs(d,{hasError:!!t,children:[e.jsx(c,{file:r}),e.jsxs(x,{children:[e.jsxs(u,{children:[e.jsx(p,{color:f.palette.semantic.text["text-strong"],variant:"captionWeak",children:r.name}),e.jsx(n,{color:f.palette.semantic.text["text-weak"],variant:"captionWeak",children:(e=>{if(0===e)return"0 Bytes";const r=Math.floor(Math.log(e)/Math.log(1024));return`${Math.round(e/Math.pow(1024,r)*100)/100} ${["B","KB","MB","GB"][r]}`})(r.size)})]}),e.jsxs(m,{children:[t&&e.jsx(n,{color:f.palette.semantic.text["text-error"],variant:"captionWeak",children:t}),s&&e.jsx(h,{})]})]}),e.jsx(a.IconButton,{"aria-label":g("Remove_file"),onClick:()=>{j(r)},size:"small",tone:"neutral",variant:"tertiary",children:e.jsx(o,{})})]})};
2
2
  //# sourceMappingURL=FileItem.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileItem.cjs.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileItem.tsx"],"sourcesContent":["import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport IconButton from '@fd/components/atoms/IconButton';\nimport LinearProgress from '@fd/components/atoms/LinearProgress';\nimport Typography from '@fd/components/atoms/Typography';\nimport CancelIcon from '@fd/icons/Cancel';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport FileThumbnail from './FileThumbnail';\n\nconst StyledFileItemContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n gap: theme.spacing(2),\n padding: theme.spacing(2),\n borderBottom: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.background['background-raised'],\n}));\n\nconst StyledFileItemContent = styled(Box)(() => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end',\n width: '100%',\n}));\nconst StyledFileName = styled(Typography)(() => ({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst StyledLinearProgress = styled(LinearProgress)({\n width: '250px',\n});\n\nexport interface FileItemProps {\n file: File;\n error?: string | null;\n isUploading?: boolean;\n onRemove: (file: File) => void;\n}\n\nconst FileItem: React.FC<FileItemProps> = ({ file, error = null, isUploading = false, onRemove }) => {\n const theme = useTheme();\n const { translate } = useTranslation();\n\n const handleRemoveClick = (): void => {\n onRemove(file);\n };\n\n const formatFileSize = (bytes: number): string => {\n if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const sizes = ['B', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n };\n\n return (\n <StyledFileItemContainer hasError={!!error}>\n <FileThumbnail file={file} />\n\n <Stack direction=\"row\" flex={1} gap={theme.spacing(1)}>\n <Stack direction=\"column\" width=\"100%\">\n <StyledFileName color={theme.palette.semantic.text['text-strong']} variant=\"captionWeak\">\n {file.name}\n </StyledFileName>\n <Typography color={theme.palette.semantic.text['text-weak']} variant=\"captionWeak\">\n {formatFileSize(file.size)}\n </Typography>\n </Stack>\n\n <StyledFileItemContent>\n {error && (\n <Typography color={theme.palette.semantic.text['text-error']} variant=\"captionWeak\">\n {error}\n </Typography>\n )}\n {isUploading && <StyledLinearProgress />}\n </StyledFileItemContent>\n </Stack>\n\n <IconButton\n aria-label={translate('Remove_file')}\n onClick={handleRemoveClick}\n size=\"small\"\n tone=\"neutral\"\n variant=\"tertiary\"\n >\n <CancelIcon />\n </IconButton>\n </StyledFileItemContainer>\n );\n};\n\nexport default FileItem;\n"],"names":["StyledFileItemContainer","styled","Box","shouldForwardProp","prop","theme","hasError","display","alignItems","width","gap","spacing","padding","borderBottom","palette","semantic","stroke","backgroundColor","fill","background","StyledFileItemContent","flexDirection","justifyContent","StyledFileName","Typography","overflow","textOverflow","whiteSpace","StyledLinearProgress","LinearProgress","file","error","isUploading","onRemove","useTheme","translate","useTranslation","_jsxs","children","_jsx","FileThumbnail","Stack","direction","flex","color","text","variant","name","bytes","i","Math","floor","log","round","pow","formatFileSize","size","IconButton","onClick","tone","CancelIcon"],"mappings":"ggBAeA,MAAMA,EAA0BC,EAAOC,EAAK,CAC1CC,kBAAoBC,GAAkB,aAATA,GADCH,EAEL,EAAGI,QAAOC,eAAU,CAC7CC,QAAS,OACTC,WAAY,SACZC,MAAO,OACPC,IAAKL,EAAMM,QAAQ,GACnBC,QAASP,EAAMM,QAAQ,GACvBE,aAAc,aAAaR,EAAMS,QAAQC,SAASC,OAAO,iBACzDC,gBAAiBX,EACbD,EAAMS,QAAQC,SAASG,KAAK,mBAC5Bb,EAAMS,QAAQC,SAASI,WAAW,yBAGlCC,EAAwBnB,EAAOC,EAAPD,EAAY,KAAA,CACxCM,QAAS,OACTc,cAAe,MACfb,WAAY,SACZc,eAAgB,WAChBb,MAAO,WAEHc,EAAiBtB,EAAOuB,EAAPvB,EAAmB,KAAA,CACxCwB,SAAU,SACVC,aAAc,WACdC,WAAY,aAGRC,EAAuB3B,EAAO4B,EAAAA,eAAP5B,CAAuB,CAClDQ,MAAO,yBAUiC,EAAGqB,OAAMC,QAAQ,KAAMC,eAAc,EAAOC,eACpF,MAAM5B,EAAQ6B,KACRC,UAAEA,GAAcC,mBActB,OACEC,EAAAA,KAACrC,EAAuB,CAACM,WAAYyB,EAAKO,SAAA,CACxCC,EAAAA,IAACC,EAAa,CAACV,KAAMA,IAErBO,OAACI,EAAK,CAACC,UAAU,MAAMC,KAAM,EAAGjC,IAAKL,EAAMM,QAAQ,GAAE2B,SAAA,CACnDD,EAAAA,KAACI,EAAK,CAACC,UAAU,SAASjC,MAAM,OAAM6B,SAAA,CACpCC,EAAAA,IAAChB,EAAc,CAACqB,MAAOvC,EAAMS,QAAQC,SAAS8B,KAAK,eAAgBC,QAAQ,uBACxEhB,EAAKiB,OAERR,EAAAA,IAACf,GAAWoB,MAAOvC,EAAMS,QAAQC,SAAS8B,KAAK,aAAcC,QAAQ,uBAjBtD,CAACE,IACtB,GAAc,IAAVA,EAAa,MAAO,UACxB,MAEMC,EAAIC,KAAKC,MAAMD,KAAKE,IAAIJ,GAASE,KAAKE,IAFlC,OAGV,MAAO,GAAGF,KAAKG,MAAOL,EAAQE,KAAKI,IAHzB,KAGgCL,GAAM,KAAO,OAFzC,CAAC,IAAK,KAAM,KAAM,MAEoCA,MAa3DM,CAAezB,EAAK0B,WAIzBnB,EAAAA,KAACjB,EAAqB,CAAAkB,SAAA,CACnBP,GACCQ,EAAAA,IAACf,EAAU,CAACoB,MAAOvC,EAAMS,QAAQC,SAAS8B,KAAK,cAAeC,QAAQ,cAAaR,SAChFP,IAGJC,GAAeO,EAAAA,IAACX,YAIrBW,EAAAA,IAACkB,EAAAA,WAAU,CAAA,aACGtB,EAAU,eACtBuB,QAtCoB,KACxBzB,EAASH,IAsCL0B,KAAK,QACLG,KAAK,UACLb,QAAQ,oBAERP,EAAAA,IAACqB"}
1
+ {"version":3,"file":"FileItem.cjs.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileItem.tsx"],"sourcesContent":["import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport IconButton from '@fd/components/atoms/IconButton';\nimport LinearProgress from '@fd/components/atoms/LinearProgress';\nimport Typography from '@fd/components/atoms/Typography';\nimport CancelIcon from '@fd/icons/Cancel';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport FileThumbnail from './FileThumbnail';\n\nconst StyledFileItemContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(2),\n padding: theme.spacing(2),\n borderBottom: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.background['background-raised'],\n}));\n\nconst StyledFileItemInformationContainer = styled(Box)(({ theme }) => ({\n flex: 1,\n display: 'flex',\n flexDirection: 'row',\n gap: theme.spacing(1),\n overflow: 'hidden',\n minWidth: 0,\n}));\n\nconst StyledFileItemInformationContent = styled(Box)(() => ({\n flex: 1,\n display: 'flex',\n overflow: 'hidden',\n flexDirection: 'column',\n minWidth: 0,\n}));\n\nconst StyledFileItemContent = styled(Box)(() => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end',\n}));\nconst StyledFileName = styled(Typography)(() => ({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst StyledLinearProgress = styled(LinearProgress)({\n width: '250px',\n});\n\nexport interface FileItemProps {\n file: File;\n error?: string | null;\n isUploading?: boolean;\n onRemove: (file: File) => void;\n}\n\nconst FileItem: React.FC<FileItemProps> = ({ file, error = null, isUploading = false, onRemove }) => {\n const theme = useTheme();\n const { translate } = useTranslation();\n\n const handleRemoveClick = (): void => {\n onRemove(file);\n };\n\n const formatFileSize = (bytes: number): string => {\n if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const sizes = ['B', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n };\n\n return (\n <StyledFileItemContainer hasError={!!error}>\n <FileThumbnail file={file} />\n\n <StyledFileItemInformationContainer>\n <StyledFileItemInformationContent>\n <StyledFileName color={theme.palette.semantic.text['text-strong']} variant=\"captionWeak\">\n {file.name}\n </StyledFileName>\n <Typography color={theme.palette.semantic.text['text-weak']} variant=\"captionWeak\">\n {formatFileSize(file.size)}\n </Typography>\n </StyledFileItemInformationContent>\n\n <StyledFileItemContent>\n {error && (\n <Typography color={theme.palette.semantic.text['text-error']} variant=\"captionWeak\">\n {error}\n </Typography>\n )}\n {isUploading && <StyledLinearProgress />}\n </StyledFileItemContent>\n </StyledFileItemInformationContainer>\n\n <IconButton\n aria-label={translate('Remove_file')}\n onClick={handleRemoveClick}\n size=\"small\"\n tone=\"neutral\"\n variant=\"tertiary\"\n >\n <CancelIcon />\n </IconButton>\n </StyledFileItemContainer>\n );\n};\n\nexport default FileItem;\n"],"names":["StyledFileItemContainer","styled","Box","shouldForwardProp","prop","theme","hasError","display","alignItems","gap","spacing","padding","borderBottom","palette","semantic","stroke","backgroundColor","fill","background","StyledFileItemInformationContainer","flex","flexDirection","overflow","minWidth","StyledFileItemInformationContent","StyledFileItemContent","justifyContent","StyledFileName","Typography","textOverflow","whiteSpace","StyledLinearProgress","LinearProgress","width","file","error","isUploading","onRemove","useTheme","translate","useTranslation","_jsxs","children","_jsx","FileThumbnail","color","text","variant","name","bytes","i","Math","floor","log","round","pow","formatFileSize","size","IconButton","onClick","tone","CancelIcon"],"mappings":"+dAcA,MAAMA,EAA0BC,EAAOC,EAAK,CAC1CC,kBAAoBC,GAAkB,aAATA,GADCH,EAEL,EAAGI,QAAOC,eAAU,CAC7CC,QAAS,OACTC,WAAY,SACZC,IAAKJ,EAAMK,QAAQ,GACnBC,QAASN,EAAMK,QAAQ,GACvBE,aAAc,aAAaP,EAAMQ,QAAQC,SAASC,OAAO,iBACzDC,gBAAiBV,EACbD,EAAMQ,QAAQC,SAASG,KAAK,mBAC5BZ,EAAMQ,QAAQC,SAASI,WAAW,yBAGlCC,EAAqClB,EAAOC,EAAPD,EAAY,EAAGI,YAAO,CAC/De,KAAM,EACNb,QAAS,O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QAAQC,SAASgC,KAAK,cAAeC,QAAQ,cAAaL,SAChFP,IAGJC,GAAeO,EAAAA,IAACZ,EAAoB,CAAA,SAIzCY,EAAAA,IAACe,EAAAA,WAAU,CAAA,aACGnB,EAAU,eACtBoB,QAtCoB,KACxBtB,EAASH,IAsCLuB,KAAK,QACLG,KAAK,UACLb,QAAQ,WAAUL,SAElBC,EAAAA,IAACkB,EAAU,CAAA"}
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import"react";import t from"@mui/material/Box";import i from"@mui/material/Stack";import o from"@mui/material/styles/styled";import a from"@mui/material/styles/useTheme";import{IconButton as n}from"../../../atoms/IconButton/index.js";import{LinearProgress as l}from"../../../atoms/LinearProgress/index.js";import s from"@mui/material/Typography";import m from"../../../../icons/Cancel/index.js";import{useTranslation as c}from"../../../../providers/TranslationProvider.js";import p from"./FileThumbnail.js";const d=o(t,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({display:"flex",alignItems:"center",width:"100%",gap:e.spacing(2),padding:e.spacing(2),borderBottom:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,backgroundColor:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.background["background-raised"]}))),f=o(t)((()=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",width:"100%"}))),h=o(s)((()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}))),u=o(l)({width:"250px"}),x=({file:t,error:o=null,isUploading:l=!1,onRemove:x})=>{const g=a(),{translate:w}=c();return e(d,{hasError:!!o,children:[r(p,{file:t}),e(i,{direction:"row",flex:1,gap:g.spacing(1),children:[e(i,{direction:"column",width:"100%",children:[r(h,{color:g.palette.semantic.text["text-strong"],variant:"captionWeak",children:t.name}),r(s,{color:g.palette.semantic.text["text-weak"],variant:"captionWeak",children:(e=>{if(0===e)return"0 Bytes";const r=Math.floor(Math.log(e)/Math.log(1024));return`${Math.round(e/Math.pow(1024,r)*100)/100} ${["B","KB","MB","GB"][r]}`})(t.size)})]}),e(f,{children:[o&&r(s,{color:g.palette.semantic.text["text-error"],variant:"captionWeak",children:o}),l&&r(u,{})]})]}),r(n,{"aria-label":w("Remove_file"),onClick:()=>{x(t)},size:"small",tone:"neutral",variant:"tertiary",children:r(m,{})})]})};export{x as default};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import"react";import t from"@mui/material/Box";import i from"@mui/material/styles/styled";import o from"@mui/material/styles/useTheme";import{IconButton as a}from"../../../atoms/IconButton/index.js";import{LinearProgress as l}from"../../../atoms/LinearProgress/index.js";import n from"@mui/material/Typography";import s from"../../../../icons/Cancel/index.js";import{useTranslation as m}from"../../../../providers/TranslationProvider.js";import c from"./FileThumbnail.js";const p=i(t,{shouldForwardProp:e=>"hasError"!==e})((({theme:e,hasError:r})=>({display:"flex",alignItems:"center",gap:e.spacing(2),padding:e.spacing(2),borderBottom:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,backgroundColor:r?e.palette.semantic.fill["fill-error-weak"]:e.palette.semantic.background["background-raised"]}))),d=i(t)((({theme:e})=>({flex:1,display:"flex",flexDirection:"row",gap:e.spacing(1),overflow:"hidden",minWidth:0}))),f=i(t)((()=>({flex:1,display:"flex",overflow:"hidden",flexDirection:"column",minWidth:0}))),h=i(t)((()=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end"}))),x=i(n)((()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}))),u=i(l)({width:"250px"}),g=({file:t,error:i=null,isUploading:l=!1,onRemove:g})=>{const w=o(),{translate:k}=m();return e(p,{hasError:!!i,children:[r(c,{file:t}),e(d,{children:[e(f,{children:[r(x,{color:w.palette.semantic.text["text-strong"],variant:"captionWeak",children:t.name}),r(n,{color:w.palette.semantic.text["text-weak"],variant:"captionWeak",children:(e=>{if(0===e)return"0 Bytes";const r=Math.floor(Math.log(e)/Math.log(1024));return`${Math.round(e/Math.pow(1024,r)*100)/100} ${["B","KB","MB","GB"][r]}`})(t.size)})]}),e(h,{children:[i&&r(n,{color:w.palette.semantic.text["text-error"],variant:"captionWeak",children:i}),l&&r(u,{})]})]}),r(a,{"aria-label":k("Remove_file"),onClick:()=>{g(t)},size:"small",tone:"neutral",variant:"tertiary",children:r(s,{})})]})};export{g as default};
2
2
  //# sourceMappingURL=FileItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileItem.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileItem.tsx"],"sourcesContent":["import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Stack from '@mui/material/Stack';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport IconButton from '@fd/components/atoms/IconButton';\nimport LinearProgress from '@fd/components/atoms/LinearProgress';\nimport Typography from '@fd/components/atoms/Typography';\nimport CancelIcon from '@fd/icons/Cancel';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport FileThumbnail from './FileThumbnail';\n\nconst StyledFileItemContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n gap: theme.spacing(2),\n padding: theme.spacing(2),\n borderBottom: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.background['background-raised'],\n}));\n\nconst StyledFileItemContent = styled(Box)(() => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end',\n width: '100%',\n}));\nconst StyledFileName = styled(Typography)(() => ({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst StyledLinearProgress = styled(LinearProgress)({\n width: '250px',\n});\n\nexport interface FileItemProps {\n file: File;\n error?: string | null;\n isUploading?: boolean;\n onRemove: (file: File) => void;\n}\n\nconst FileItem: React.FC<FileItemProps> = ({ file, error = null, isUploading = false, onRemove }) => {\n const theme = useTheme();\n const { translate } = useTranslation();\n\n const handleRemoveClick = (): void => {\n onRemove(file);\n };\n\n const formatFileSize = (bytes: number): string => {\n if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const sizes = ['B', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n };\n\n return (\n <StyledFileItemContainer hasError={!!error}>\n <FileThumbnail file={file} />\n\n <Stack direction=\"row\" flex={1} gap={theme.spacing(1)}>\n <Stack direction=\"column\" width=\"100%\">\n <StyledFileName color={theme.palette.semantic.text['text-strong']} variant=\"captionWeak\">\n {file.name}\n </StyledFileName>\n <Typography color={theme.palette.semantic.text['text-weak']} variant=\"captionWeak\">\n {formatFileSize(file.size)}\n </Typography>\n </Stack>\n\n <StyledFileItemContent>\n {error && (\n <Typography color={theme.palette.semantic.text['text-error']} variant=\"captionWeak\">\n {error}\n </Typography>\n )}\n {isUploading && <StyledLinearProgress />}\n </StyledFileItemContent>\n </Stack>\n\n <IconButton\n aria-label={translate('Remove_file')}\n onClick={handleRemoveClick}\n size=\"small\"\n tone=\"neutral\"\n variant=\"tertiary\"\n >\n <CancelIcon />\n </IconButton>\n </StyledFileItemContainer>\n );\n};\n\nexport default FileItem;\n"],"names":["StyledFileItemContainer","styled","Box","shouldForwardProp","prop","theme","hasError","display","alignItems","width","gap","spacing","padding","borderBottom","palette","semantic","stroke","backgroundColor","fill","background","StyledFileItemContent","flexDirection","justifyContent","StyledFileName","Typography","overflow","textOverflow","whiteSpace","StyledLinearProgress","LinearProgress","FileItem","file","error","isUploading","onRemove","useTheme","translate","useTranslation","_jsxs","children","_jsx","FileThumbnail","Stack","direction","flex","color","text","variant","name","bytes","i","Math","floor","log","round","pow","formatFileSize","size","IconButton","onClick","tone","CancelIcon"],"mappings":"6iBAeA,MAAMA,EAA0BC,EAAOC,EAAK,C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AAM,KAAO,OAFzC,CAAC,IAAK,KAAM,KAAM,MAEoCA,MAa3DM,CAAezB,EAAK0B,WAIzBnB,EAAClB,EAAqB,CAAAmB,SAAA,CACnBP,GACCQ,EAAChB,EAAU,CAACqB,MAAOxC,EAAMS,QAAQC,SAAS+B,KAAK,cAAeC,QAAQ,cAAaR,SAChFP,IAGJC,GAAeO,EAACZ,YAIrBY,EAACkB,EAAU,CAAA,aACGtB,EAAU,eACtBuB,QAtCoB,KACxBzB,EAASH,IAsCL0B,KAAK,QACLG,KAAK,UACLb,QAAQ,oBAERP,EAACqB"}
1
+ {"version":3,"file":"FileItem.js","sources":["../../../../../src/components/organisms/FileUpload/components/FileItem.tsx"],"sourcesContent":["import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport styled from '@mui/material/styles/styled';\nimport useTheme from '@mui/material/styles/useTheme';\n\nimport IconButton from '@fd/components/atoms/IconButton';\nimport LinearProgress from '@fd/components/atoms/LinearProgress';\nimport Typography from '@fd/components/atoms/Typography';\nimport CancelIcon from '@fd/icons/Cancel';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport FileThumbnail from './FileThumbnail';\n\nconst StyledFileItemContainer = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'hasError',\n})<{ hasError?: boolean }>(({ theme, hasError }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(2),\n padding: theme.spacing(2),\n borderBottom: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n backgroundColor: hasError\n ? theme.palette.semantic.fill['fill-error-weak']\n : theme.palette.semantic.background['background-raised'],\n}));\n\nconst StyledFileItemInformationContainer = styled(Box)(({ theme }) => ({\n flex: 1,\n display: 'flex',\n flexDirection: 'row',\n gap: theme.spacing(1),\n overflow: 'hidden',\n minWidth: 0,\n}));\n\nconst StyledFileItemInformationContent = styled(Box)(() => ({\n flex: 1,\n display: 'flex',\n overflow: 'hidden',\n flexDirection: 'column',\n minWidth: 0,\n}));\n\nconst StyledFileItemContent = styled(Box)(() => ({\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end',\n}));\nconst StyledFileName = styled(Typography)(() => ({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}));\n\nconst StyledLinearProgress = styled(LinearProgress)({\n width: '250px',\n});\n\nexport interface FileItemProps {\n file: File;\n error?: string | null;\n isUploading?: boolean;\n onRemove: (file: File) => void;\n}\n\nconst FileItem: React.FC<FileItemProps> = ({ file, error = null, isUploading = false, onRemove }) => {\n const theme = useTheme();\n const { translate } = useTranslation();\n\n const handleRemoveClick = (): void => {\n onRemove(file);\n };\n\n const formatFileSize = (bytes: number): string => {\n if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const sizes = ['B', 'KB', 'MB', 'GB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return `${Math.round((bytes / Math.pow(k, i)) * 100) / 100} ${sizes[i]}`;\n };\n\n return (\n <StyledFileItemContainer hasError={!!error}>\n <FileThumbnail file={file} />\n\n <StyledFileItemInformationContainer>\n <StyledFileItemInformationContent>\n <StyledFileName color={theme.palette.semantic.text['text-strong']} variant=\"captionWeak\">\n {file.name}\n </StyledFileName>\n <Typography color={theme.palette.semantic.text['text-weak']} variant=\"captionWeak\">\n {formatFileSize(file.size)}\n </Typography>\n </StyledFileItemInformationContent>\n\n <StyledFileItemContent>\n {error && (\n <Typography color={theme.palette.semantic.text['text-error']} variant=\"captionWeak\">\n {error}\n </Typography>\n )}\n {isUploading && <StyledLinearProgress />}\n </StyledFileItemContent>\n </StyledFileItemInformationContainer>\n\n <IconButton\n aria-label={translate('Remove_file')}\n onClick={handleRemoveClick}\n size=\"small\"\n tone=\"neutral\"\n variant=\"tertiary\"\n >\n <CancelIcon />\n </IconButton>\n </StyledFileItemContainer>\n );\n};\n\nexport default FileItem;\n"],"names":["StyledFileItemContainer","styled","Box","shouldForwardProp","prop","theme","hasError","display","alignItems","gap","spacing","padding","borderBottom","palette","semantic","stroke","backgroundColor","fill","background","StyledFileItemInformationContainer","flex","flexDirection","overflow","minWidth","StyledFileItemInformationContent","StyledFileItemContent","justifyContent","StyledFileName","Typography","textOverflow","whiteSpace","StyledLinearProgress","LinearProgress","width","FileItem","file","error","isUploading","onRemove","useTheme","translate","useTranslation","_jsxs","children","_jsx","FileThumbnail","color","text","variant","name","bytes","i","Math","floor","log","round","pow","formatFileSize","size","IconButton","onClick","tone","CancelIcon"],"mappings":"0gBAcA,MAAMA,EAA0BC,EAAOC,EAAK,CAC1CC,kBAAoBC,GAAkB,aAATA,GADCH,EAEL,EAAGI,QAAOC,eAAU,CAC7CC,QAAS,OACTC,WAAY,SACZC,IAAKJ,EAAMK,QAAQ,GACnBC,QAASN,EAAMK,QAAQ,GACvBE,aAAc,aAAaP,EAAMQ,QAAQC,SAASC,OAAO,iBACzDC,gBAAiBV,EACbD,EAAMQ,QAAQC,SAASG,KAAK,mBAC5BZ,EAAMQ,QAAQC,SAASI,WAAW,yBAGlCC,EAAqClB,EAAOC,EAAPD,EAAY,EAAGI,YAAO,CAC/De,KAAM,EACNb,QAAS,OACTc,cAAe,MACfZ,IAAKJ,EAAMK,QAAQ,GACnBY,SAAU,SACVC,SAAU,MAGNC,EAAmCvB,EAAOC,EAAPD,EAAY,KAAA,CACnDmB,KAAM,EACNb,QAAS,OACTe,SAAU,SACVD,cAAe,SACfE,SAAU,MAGNE,EAAwBxB,EAAOC,EAAPD,EAAY,KAAA,CACxCM,QAAS,OACTc,cAAe,MACfb,WAAY,SACZkB,eAAgB,eAEZC,EAAiB1B,EAAO2B,EAAP3B,EAAmB,KAAA,CACxCqB,SAAU,SACVO,aAAc,WACdC,WAAY,aAGRC,EAAuB9B,EAAO+B,EAAP/B,CAAuB,CAClDgC,MAAO,UAUHC,EAAoC,EAAGC,OAAMC,QAAQ,KAAMC,eAAc,EAAOC,eACpF,MAAMjC,EAAQkC,KACRC,UAAEA,GAAcC,IActB,OACEC,EAAC1C,EAAuB,CAACM,WAAY8B,EAAKO,SAAA,CACxCC,EAACC,EAAa,CAACV,KAAMA,IAErBO,EAACvB,EAAkC,CAAAwB,SAAA,CACjCD,EAAClB,EAAgC,CAAAmB,SAAA,CAC/BC,EAACjB,EAAc,CAACmB,MAAOzC,EAAMQ,QAAQC,SAASiC,KAAK,eAAgBC,QAAQ,cAAaL,SACrFR,EAAKc,OAERL,EAAChB,GAAWkB,MAAOzC,EAAMQ,QAAQC,SAASiC,KAAK,aAAcC,QAAQ,cAAaL,SAjBnE,CAACO,IACtB,GAAc,IAAVA,EAAa,MAAO,UACxB,MAEMC,EAAIC,KAAKC,MAAMD,KAAKE,IAAIJ,GAASE,KAAKE,IAFlC,OAGV,MAAO,GAAGF,KAAKG,MAAOL,EAAQE,KAAKI,IAHzB,KAGgCL,GAAM,KAAO,OAFzC,CAAC,IAAK,KAAM,KAAM,MAEoCA,MAa3DM,CAAetB,EAAKuB,WAIzBhB,EAACjB,EAAqB,CAAAkB,SAAA,CACnBP,GACCQ,EAAChB,EAAU,CAACkB,MAAOzC,EAAMQ,QAAQC,SAASiC,KAAK,cAAeC,QAAQ,cAAaL,SAChFP,IAGJC,GAAeO,EAACb,EAAoB,CAAA,SAIzCa,EAACe,EAAU,CAAA,aACGnB,EAAU,eACtBoB,QAtCoB,KACxBtB,EAASH,IAsCLuB,KAAK,QACLG,KAAK,UACLb,QAAQ,WAAUL,SAElBC,EAACkB,EAAU,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";require("../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.33_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.10_@types_node@20.19.33_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js"),t=require("../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.33_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.10_@types_node@20.19.34_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.10_@types_node@20.19.34_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js"),t=require("../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.34_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.10_@types_node@20.19.33_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.d.js';
1
+ import { HttpHandler } from '../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.34_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.10_@types_node@20.19.33_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.10_@types_node@20.19.33_typescript@5.4.5/node_modules/msw/lib/core/http.js";import{HttpResponse as t}from"../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.33_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.10_@types_node@20.19.34_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.10_@types_node@20.19.34_typescript@5.4.5/node_modules/msw/lib/core/http.js";import{HttpResponse as t}from"../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.34_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.10_@types_node@20.19.33_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.10_@types_node@20.19.34_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.10_@types_node@20.19.33_typescript@5.4.5/node_modules/msw/lib/node/index.d.js';
1
+ import { SetupServerApi } from '../../node_modules/.pnpm/msw@2.12.10_@types_node@20.19.34_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.10_@types_node@20.19.33_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.10_@types_node@20.19.34_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.10_@types+node@20.19.33_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":"gUAKK,MAACA,EAAWC,OAAO,YACxB,MAAMC,UAAqBC,EAAAA,EACzBH,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,EAA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s.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.12.10_@types+node@20.19.34_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":"gUAKK,MAACA,EAAWC,OAAO,YACxB,MAAMC,UAAqBC,EAAAA,EACzBH,CAACA,GAAY,KACb,WAAAI,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAC3CG,MAAMJ,EAAME,GACZG,EAAAA,iBAAiBC,KAAMJ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IjB,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.10_@types+node@20.19.33_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":"oVAKK,MAACA,EAAWC,OAAO,Y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EvCX,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.10_@types+node@20.19.34_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","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,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.10_@types+node@20.19.33_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.10_@types+node@20.19.34_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.10_@types+node@20.19.33_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.10_@types+node@20.19.34_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.10_@types+node@20.19.33_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,qBAAuBA,EAC7EI,MAAM,CACJC,KAAM,CACJC,OAAQ,GAAGP,IAASI,EAAc,IAAIA,IAAgB,KACtDI,KAAMP,EACND,UAEFE,WACAC,YAEFM,KAAKC,+BACP,CACA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C,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.10_@types+node@20.19.34_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,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,EAAAA,SAASJ,KACTA,GAGZK,EAAAA,SAASC,KACP,+EAA+Ed,KAAUQ,6MAE7F,CACA,WAAMO,CAAMC,GACV,MAAMC,EAAM,IAAIC,IAAIF,EAAKG,QAAQF,KAC3BG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AAQK,UACV","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.10_@types+node@20.19.33_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
+ {"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.10_@types+node@20.19.34_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,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N,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.10_@types+node@20.19.33_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,CAA2BJ,GACzB,MAAMK,EA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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.10_@types+node@20.19.34_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,CAA2BJ,GACzB,MAAMK,EAAgBzB,EAAe0B,MAAMC,IAAIP,GAC/C,QAA6B,IAAlBK,EACT,OAAOA,EAET,MAAMG,EAAgBR,EAAQS,QAE9B,OADA7B,EAAe0B,MAAMI,IAAIV,EAASQ,GAC3BA,CACT,CAKA,SAAMG,CAAIpB,GACR,GAAIC,KAAKP,QAAUO,KAAKH,SAASuB,KAC/B,OAAO,KAET,MAAMC,EAAerB,KAAKY,2BAA2Bb,EAAKS,SACpDD,QAAqBP,KAAKI,MAAM,CACpCI,QAAST,EAAKS,QACdC,kBAAmBV,EAAKU,oBAO1B,UALqCT,KAAKU,UAAU,CAClDF,QAAST,EAAKS,QACdD,eACAE,kBAAmBV,EAAKU,oBAGxB,OAAO,KAET,GAAIT,KAAKP,QAAUO,KAAKH,SAASuB,KAC/B,OAAO,KAETpB,KAAKP,QAAS,EACd,MAKM6B,EALkBtB,KAAKuB,aAAavB,KAAKN,SAKjB8B,CAAgB,IAJvBxB,KAAKW,mBAAmB,CAC7CH,QAAST,EAAKS,QACdD,iBAIAkB,UAAW1B,EAAK0B,UAChBjB,QAAST,EAAKS,UACbkB,OAAOC,IACR,GAAIA,aAA2BC,SAC7B,OAAOD,EAET,MAAMA,KAEFE,QAAuBP,EAS7B,OARwBtB,KAAK8B,sBAAsB,CAGjDtB,QAASa,EACTI,UAAW1B,EAAK0B,UAChBM,SAAUF,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 +1 @@
1
- {"version":3,"file":"RequestHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.10_@types+node@20.19.33_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":"8HAIA,MAAMA,EACJC,aAA+B,IAAIC,QACnCC,OACAC,KAKAC,OACAC,SACAC,iBACAC,uBACAC,QACA,WAAAC,CAAYC,GACVC,KAAK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B,OARwBtB,KAAK8B,sBAAsB,CAGjDtB,QAASa,EACTI,UAAW1B,EAAK0B,UAChBM,SAAUF,EACVtB,gBAGJ,CACA,YAAAgB,CAAa7B,GACX,OAAOsC,MAAOxC,IACZ,IAAKQ,KAAKL,iBAAkB,CAC1B,MAAMsC,QAAevC,EAASF,GAC9B,IAAK0C,EAAWD,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.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.12.10_@types+node@20.19.34_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":"8HAIA,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,EAAa,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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