umwd-components 0.1.714 → 0.1.716

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 (378) hide show
  1. package/README.md +273 -0
  2. package/dist/_virtual/_commonjsHelpers.js +1 -1
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  4. package/dist/node_modules/@mollie/api-client/dist/mollie.esm.js +1 -1
  5. package/dist/node_modules/axios/index.js +6 -0
  6. package/dist/node_modules/axios/lib/adapters/adapters.js +1 -1
  7. package/dist/node_modules/axios/lib/adapters/fetch.js +1 -1
  8. package/dist/node_modules/axios/lib/adapters/xhr.js +1 -1
  9. package/dist/node_modules/axios/lib/cancel/CancelToken.js +1 -1
  10. package/dist/node_modules/axios/lib/core/Axios.js +1 -1
  11. package/dist/node_modules/axios/lib/core/AxiosError.js +1 -1
  12. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +1 -1
  13. package/dist/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  14. package/dist/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  15. package/dist/node_modules/axios/lib/core/mergeConfig.js +1 -1
  16. package/dist/node_modules/axios/lib/core/transformData.js +1 -1
  17. package/dist/node_modules/axios/lib/defaults/index.js +1 -1
  18. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -1
  19. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -1
  20. package/dist/node_modules/axios/lib/helpers/composeSignals.js +1 -1
  21. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  22. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +1 -1
  23. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
  24. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  25. package/dist/node_modules/axios/lib/helpers/throttle.js +1 -1
  26. package/dist/node_modules/axios/lib/helpers/toFormData.js +1 -1
  27. package/dist/node_modules/axios/lib/helpers/trackStream.js +1 -1
  28. package/dist/node_modules/axios/lib/helpers/validator.js +1 -1
  29. package/dist/node_modules/axios/lib/platform/index.js +1 -1
  30. package/dist/node_modules/axios/lib/utils.js +1 -1
  31. package/dist/node_modules/call-bind-apply-helpers/actualApply.js +6 -0
  32. package/dist/node_modules/call-bind-apply-helpers/functionApply.js +6 -0
  33. package/dist/node_modules/call-bind-apply-helpers/functionCall.js +6 -0
  34. package/dist/node_modules/call-bind-apply-helpers/index.js +6 -0
  35. package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +6 -0
  36. package/dist/node_modules/call-bound/index.js +6 -0
  37. package/dist/node_modules/dayjs/dayjs.min.js +1 -1
  38. package/dist/node_modules/dunder-proto/get.js +6 -0
  39. package/dist/node_modules/es-define-property/index.js +1 -1
  40. package/dist/{_virtual/index7.js → node_modules/es-object-atoms/index.js} +1 -1
  41. package/dist/node_modules/function-bind/implementation.js +1 -1
  42. package/dist/node_modules/function-bind/index.js +1 -1
  43. package/dist/node_modules/get-intrinsic/index.js +1 -1
  44. package/dist/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  45. package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +6 -0
  46. package/dist/node_modules/get-proto/index.js +6 -0
  47. package/dist/{_virtual/index5.js → node_modules/gopd/gOPD.js} +1 -1
  48. package/dist/node_modules/gopd/index.js +1 -1
  49. package/dist/node_modules/has-symbols/index.js +1 -1
  50. package/dist/node_modules/has-symbols/shams.js +1 -1
  51. package/dist/node_modules/hasown/index.js +1 -1
  52. package/dist/{_virtual/index8.js → node_modules/math-intrinsics/abs.js} +1 -1
  53. package/dist/{_virtual/types.js → node_modules/math-intrinsics/floor.js} +1 -1
  54. package/dist/node_modules/math-intrinsics/isNaN.js +6 -0
  55. package/dist/{_virtual/index6.js → node_modules/math-intrinsics/max.js} +1 -1
  56. package/dist/node_modules/math-intrinsics/min.js +6 -0
  57. package/dist/node_modules/math-intrinsics/pow.js +6 -0
  58. package/dist/node_modules/math-intrinsics/round.js +6 -0
  59. package/dist/node_modules/math-intrinsics/sign.js +6 -0
  60. package/dist/node_modules/object-assign/index.js +1 -1
  61. package/dist/node_modules/object-inspect/index.js +1 -1
  62. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  63. package/dist/node_modules/prop-types/index.js +1 -1
  64. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  65. package/dist/node_modules/qs/lib/index.js +1 -1
  66. package/dist/node_modules/qs/lib/parse.js +1 -1
  67. package/dist/node_modules/qs/lib/stringify.js +1 -1
  68. package/dist/node_modules/qs/lib/utils.js +1 -1
  69. package/dist/node_modules/react-csv/lib/components/Download.js +1 -1
  70. package/dist/node_modules/react-csv/lib/components/Link.js +1 -1
  71. package/dist/node_modules/react-csv/lib/core.js +1 -1
  72. package/dist/node_modules/safe-buffer/index.js +2 -2
  73. package/dist/node_modules/sax/lib/sax.js +1 -1
  74. package/dist/node_modules/side-channel/index.js +1 -1
  75. package/dist/node_modules/side-channel-list/index.js +6 -0
  76. package/dist/node_modules/side-channel-map/index.js +6 -0
  77. package/dist/node_modules/side-channel-weakmap/index.js +6 -0
  78. package/dist/node_modules/string_decoder/lib/string_decoder.js +1 -1
  79. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  80. package/dist/node_modules/uuid/dist/esm-browser/rng.js +1 -1
  81. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +1 -1
  82. package/dist/node_modules/uuid/dist/esm-browser/v4.js +1 -1
  83. package/dist/node_modules/xml-js/lib/js2xml.js +1 -1
  84. package/dist/node_modules/xml-js/lib/xml2json.js +1 -1
  85. package/dist/src/components/ContactForm.js +1 -1
  86. package/dist/src/components/FluidBackground.js +1 -1
  87. package/dist/src/components/LogoutButton.js +1 -1
  88. package/dist/src/components/WebsitePlaceholder.js +1 -1
  89. package/dist/src/components/ZodErrors.js +1 -1
  90. package/dist/src/components/auth/AuthWidget.js +1 -1
  91. package/dist/src/components/common/Address.js +1 -1
  92. package/dist/src/components/common/AmountUpdater.js +1 -1
  93. package/dist/src/components/common/EnhancedTable/EnhancedTable.js +1 -1
  94. package/dist/src/components/common/EnhancedTable/EnhancedTableFilterRow.js +1 -1
  95. package/dist/src/components/common/EnhancedTable/EnhancedTableHead.js +1 -1
  96. package/dist/src/components/common/EnhancedTable/EnhancedTableRow.js +1 -1
  97. package/dist/src/components/common/EnhancedTable/EnhancedTableToolbar.js +1 -1
  98. package/dist/src/components/common/NumberInput.js +1 -1
  99. package/dist/src/components/common/WeekPicker.js +1 -1
  100. package/dist/src/components/common/cookie-consent/CookieConsentContext.js +1 -1
  101. package/dist/src/components/common/csv/CsvDownloader.js +1 -1
  102. package/dist/src/components/common/media/MediaGrid.js +1 -1
  103. package/dist/src/components/common/media/MediaLibraryDialog.js +1 -1
  104. package/dist/src/components/common/media/UploadBase64MediaForm.js +1 -1
  105. package/dist/src/components/common/media/UploadMediaForm.js +1 -1
  106. package/dist/src/components/common/snackbar/GlobalSnackbar.js +1 -1
  107. package/dist/src/components/e-commerce/cart/CartSummary.js +1 -1
  108. package/dist/src/components/e-commerce/cart/hooks.js +1 -1
  109. package/dist/src/components/e-commerce/categories/AddCategoryForm.js +1 -1
  110. package/dist/src/components/e-commerce/categories/CategorySelectorV2.js +1 -1
  111. package/dist/src/components/e-commerce/categories/EditCategoryForm.js +1 -1
  112. package/dist/src/components/e-commerce/checkout/CheckoutForm.js +1 -1
  113. package/dist/src/components/e-commerce/checkout/Step2.js +1 -1
  114. package/dist/src/components/e-commerce/checkout/Step4.js +1 -1
  115. package/dist/src/components/e-commerce/checkout/Step5.js +1 -1
  116. package/dist/src/components/e-commerce/customer/BusinessCredentials.js +1 -1
  117. package/dist/src/components/e-commerce/customer/CustomerCompletenessWarning.js +1 -1
  118. package/dist/src/components/e-commerce/customer/CustomerProfileDisplay.js +1 -1
  119. package/dist/src/components/e-commerce/customer/CustomerProfileEditForm.js +1 -1
  120. package/dist/src/components/e-commerce/customer/CustomerSelector.js +1 -1
  121. package/dist/src/components/e-commerce/enduser/EnduserProfileEditForm.js +1 -1
  122. package/dist/src/components/e-commerce/invoice/CreateInvoiceForm.js +1 -1
  123. package/dist/src/components/e-commerce/invoice/InvoiceItemFields.js +1 -1
  124. package/dist/src/components/e-commerce/invoice/InvoicePDF.js +1 -1
  125. package/dist/src/components/e-commerce/iro/CreateIROForm.js +1 -1
  126. package/dist/src/components/e-commerce/iro/IROItemFields.js +1 -1
  127. package/dist/src/components/e-commerce/iro/IroItemDisplay.js +1 -1
  128. package/dist/src/components/e-commerce/iro/IroItemUpdater.js +1 -1
  129. package/dist/src/components/e-commerce/iro/IroStatusIndicator.js +1 -1
  130. package/dist/src/components/e-commerce/iro/ManageIROForm.js +1 -1
  131. package/dist/src/components/e-commerce/iro/RmaForm.js +1 -1
  132. package/dist/src/components/e-commerce/iro/TextualIROItemUpdater.js +1 -1
  133. package/dist/src/components/e-commerce/iro/TextualManageIROForm.js +1 -1
  134. package/dist/src/components/e-commerce/opo/CreateOpoForm.js +1 -1
  135. package/dist/src/components/e-commerce/opo/ManageOpoForm.js +1 -1
  136. package/dist/src/components/e-commerce/opo/OPOItemFields.js +1 -1
  137. package/dist/src/components/e-commerce/opo/OpoItemDisplay.js +1 -1
  138. package/dist/src/components/e-commerce/opo/OpoItemUpdater.js +1 -1
  139. package/dist/src/components/e-commerce/opo/OpoStatusIndicator.js +1 -1
  140. package/dist/src/components/e-commerce/opo/OpoSummary.js +1 -1
  141. package/dist/src/components/e-commerce/opo/PaymentStatusIndicator.js +1 -1
  142. package/dist/src/components/e-commerce/opo/TextualManageOpoForm.js +1 -1
  143. package/dist/src/components/e-commerce/opo/TextualOpoItemUpdater.js +1 -1
  144. package/dist/src/components/e-commerce/products/AddProductForm.js +1 -1
  145. package/dist/src/components/e-commerce/products/EditProductForm.js +1 -1
  146. package/dist/src/components/e-commerce/products/EditStockForm.js +1 -1
  147. package/dist/src/components/e-commerce/products/PriceFields.js +1 -1
  148. package/dist/src/components/e-commerce/products/ProductCategoryCard.js +1 -1
  149. package/dist/src/components/e-commerce/products/ProductSelector.js +1 -1
  150. package/dist/src/components/e-commerce/products/SingleProduct.js +1 -1
  151. package/dist/src/components/layout/Footer.js +1 -1
  152. package/dist/src/components/layout/Navbar.js +1 -1
  153. package/dist/src/components/layout/NavbarV2.js +1 -1
  154. package/dist/src/components/layout/SideNav.js +1 -1
  155. package/dist/src/components/logistics/dispatcher/DispatcherProfileEditForm.js +1 -1
  156. package/dist/src/components/logistics/ipo/AddIPOForm.js +1 -1
  157. package/dist/src/components/logistics/ipo/IPOItemFields.js +1 -1
  158. package/dist/src/components/logistics/ipo/IPOItemUpdater.js +1 -1
  159. package/dist/src/components/logistics/ipo/IpoStatusIndicator.js +1 -1
  160. package/dist/src/components/logistics/ipo/ManageIPOForm.js +1 -1
  161. package/dist/src/components/logistics/ipo/TextualIPOItemUpdater.js +1 -1
  162. package/dist/src/components/logistics/ipo/TextualManageIPOForm.js +1 -1
  163. package/dist/src/components/logistics/note/NoteTakingComponent.js +1 -1
  164. package/dist/src/components/logistics/note/NotesDisplay.js +1 -1
  165. package/dist/src/components/logistics/report/PreReportsDisplay.js +1 -1
  166. package/dist/src/components/logistics/report/ReportMakingComponent.js +1 -1
  167. package/dist/src/components/logistics/report/ReportsDisplay.js +1 -1
  168. package/dist/src/components/logistics/vendor/AddVendorForm.js +1 -1
  169. package/dist/src/components/logistics/vendor/EditVendorForm.js +1 -1
  170. package/dist/src/components/logistics/vendor/VendorDisplay.js +1 -1
  171. package/dist/src/components/logistics/vendor/VendorSelector.js +1 -1
  172. package/dist/src/components/page-builder/ColumnsSection.js +1 -1
  173. package/dist/src/components/page-builder/FleetSection.js +1 -1
  174. package/dist/src/components/page-builder/IconSection.js +1 -1
  175. package/dist/src/components/page-builder/LogoBarSection.js +1 -1
  176. package/dist/src/components/page-builder/PBFeaturesSection.js +1 -1
  177. package/dist/src/components/page-builder/PBPersonaliaSection.js +1 -1
  178. package/dist/src/components/page-builder/PBTextImageSection.js +1 -1
  179. package/dist/src/components/page-builder/PictureBarSection.js +1 -1
  180. package/dist/src/components/page-elements/CategoryBlock.js +1 -1
  181. package/dist/src/components/page-elements/ColumnsSection.js +1 -1
  182. package/dist/src/components/page-elements/FeaturesSection.js +1 -1
  183. package/dist/src/components/page-elements/FleetSection.js +1 -1
  184. package/dist/src/components/page-elements/IconSection.js +1 -1
  185. package/dist/src/components/page-elements/LogoBarSection.js +1 -1
  186. package/dist/src/components/page-elements/PersonaliaSection.js +1 -1
  187. package/dist/src/components/page-elements/PictureBarSection.js +1 -1
  188. package/dist/src/components/page-elements/TextImageSection.js +1 -1
  189. package/dist/src/components/public-information/PublicInformationForm.js +1 -1
  190. package/dist/src/context/auth/SessionContext.js +1 -1
  191. package/dist/src/context/common/SnackbarContext.js +1 -1
  192. package/dist/src/context/e-commerce/cart/CartContext.js +1 -1
  193. package/dist/src/context/e-commerce/checkout/CheckoutContext.js +1 -1
  194. package/dist/src/data/actions/auth-actions.js +1 -1
  195. package/dist/src/data/actions/e-commerce/categories/createCategoryAction.js +1 -1
  196. package/dist/src/data/actions/e-commerce/categories/updateCategoryAction.js +1 -1
  197. package/dist/src/data/actions/e-commerce/checkout-action.js +1 -1
  198. package/dist/src/data/actions/e-commerce/enduser/profile-actions.js +1 -1
  199. package/dist/src/data/actions/e-commerce/invoices/createInvoiceAction.js +1 -1
  200. package/dist/src/data/actions/e-commerce/iro/createIroAction.js +1 -1
  201. package/dist/src/data/actions/e-commerce/iro/requestRmaAction.js +1 -1
  202. package/dist/src/data/actions/e-commerce/iro/updateIroAction.js +1 -1
  203. package/dist/src/data/actions/e-commerce/opo/createOpoAction.js +1 -1
  204. package/dist/src/data/actions/e-commerce/opo/updateOpoAction.js +1 -1
  205. package/dist/src/data/actions/e-commerce/product/createProductAction.js +1 -1
  206. package/dist/src/data/actions/e-commerce/product/updateProductAction.js +1 -1
  207. package/dist/src/data/actions/logistics/dispatcher/profile-actions.js +1 -1
  208. package/dist/src/data/actions/logistics/ipo/createIPOAction.js +1 -1
  209. package/dist/src/data/actions/logistics/ipo/updateIpoAction.js +1 -1
  210. package/dist/src/data/actions/logistics/note/createNoteAction.js +1 -1
  211. package/dist/src/data/actions/logistics/report/createReportAction.js +1 -1
  212. package/dist/src/data/actions/logistics/vendor/createVendorAction.js +1 -1
  213. package/dist/src/data/actions/logistics/vendor/updateVendorAction.js +1 -1
  214. package/dist/src/data/actions/media/updateMediaAction.js +1 -1
  215. package/dist/src/data/actions/media/uploadBase64MediaAction.js +1 -1
  216. package/dist/src/data/actions/media/uploadMediaAction.js +1 -1
  217. package/dist/src/data/actions/pagebuilder-actions.js +1 -1
  218. package/dist/src/data/actions/profile-actions.js +1 -1
  219. package/dist/src/data/actions/public-information/updatePublicInformationAction.js +1 -1
  220. package/dist/src/data/loaders/common/media/downloadBase64File.js +1 -1
  221. package/dist/src/data/loaders/common/media/getAllMedia.js +1 -1
  222. package/dist/src/data/loaders/e-commerce/getAllCategoryNames.js +1 -1
  223. package/dist/src/data/loaders/e-commerce/getAllCustomers.js +1 -1
  224. package/dist/src/data/loaders/e-commerce/getAllInvoices.js +1 -1
  225. package/dist/src/data/loaders/e-commerce/getAllOpos.js +1 -1
  226. package/dist/src/data/loaders/e-commerce/getCustomerLabels.js +1 -1
  227. package/dist/src/data/loaders/e-commerce/getCustomerModel.js +1 -1
  228. package/dist/src/data/loaders/e-commerce/getOpoModel.js +1 -1
  229. package/dist/src/data/loaders/e-commerce/getPaginatedCategories.js +1 -1
  230. package/dist/src/data/loaders/e-commerce/getProductModel.js +1 -1
  231. package/dist/src/data/loaders/e-commerce/getProductNames.js +1 -1
  232. package/dist/src/data/loaders/e-commerce/getShop.js +1 -1
  233. package/dist/src/data/loaders/e-commerce/getSingleCategory.js +1 -1
  234. package/dist/src/data/loaders/e-commerce/getSingleCustomer.js +1 -1
  235. package/dist/src/data/loaders/e-commerce/getSingleOpo.js +1 -1
  236. package/dist/src/data/loaders/e-commerce/getSingleProduct.js +1 -1
  237. package/dist/src/data/loaders/e-commerce/getSingleStock.js +1 -1
  238. package/dist/src/data/loaders/e-commerce/getTableProducts.js +1 -1
  239. package/dist/src/data/loaders/e-commerce/iros/getAllIros.js +1 -1
  240. package/dist/src/data/loaders/e-commerce/iros/getIroModel.js +1 -1
  241. package/dist/src/data/loaders/e-commerce/iros/getSingleIro.js +1 -1
  242. package/dist/src/data/loaders/e-commerce/iros/queryAllIros.js +1 -1
  243. package/dist/src/data/loaders/e-commerce/queryAllCustomers.js +1 -1
  244. package/dist/src/data/loaders/e-commerce/queryAllOpos.js +1 -1
  245. package/dist/src/data/loaders/e-commerce/queryAllProducts.js +1 -1
  246. package/dist/src/data/loaders/e-commerce-loaders.js +1 -1
  247. package/dist/src/data/loaders/loaders.js +1 -1
  248. package/dist/src/data/loaders/logistics/getIpoModel.js +1 -1
  249. package/dist/src/data/loaders/logistics/getIpoNames.js +1 -1
  250. package/dist/src/data/loaders/logistics/getSingleIpo.js +1 -1
  251. package/dist/src/data/loaders/logistics/getSingleVendor.js +1 -1
  252. package/dist/src/data/loaders/logistics/getTableIpos.js +1 -1
  253. package/dist/src/data/loaders/logistics/getTableVendors.js +1 -1
  254. package/dist/src/data/loaders/logistics/getVendorModel.js +1 -1
  255. package/dist/src/data/loaders/logistics/getVendorNames.js +1 -1
  256. package/dist/src/data/loaders/logistics/queryAllIpos.js +1 -1
  257. package/dist/src/data/loaders/logistics/queryAllVendors.js +1 -1
  258. package/dist/src/data/loaders/page-builder/getTablePages.js +1 -1
  259. package/dist/src/data/loaders/page-elements/getSinglePage.js +1 -1
  260. package/dist/src/data/loaders/public-information/getPublicInformation.js +1 -1
  261. package/dist/src/data/loaders/user/getUserMeLoader.js +1 -1
  262. package/dist/src/data/services/archive-service.js +1 -1
  263. package/dist/src/data/services/auth-service.js +1 -1
  264. package/dist/src/data/services/common/cancellation-service.js +1 -1
  265. package/dist/src/data/services/common/confirmation-service.js +1 -1
  266. package/dist/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +1 -1
  267. package/dist/src/data/services/file-service.js +1 -1
  268. package/dist/src/data/services/get-token.js +1 -1
  269. package/dist/src/data/services/get-user-me-loader.js +1 -1
  270. package/dist/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +1 -1
  271. package/dist/src/data/services/mutate-data.js +1 -1
  272. package/dist/src/lib/eoriValidate.js +1 -1
  273. package/dist/src/lib/molliePaymentProvider.js +1 -1
  274. package/dist/src/lib/parseNavigation.js +1 -1
  275. package/dist/src/lib/processFilters.js +1 -1
  276. package/dist/src/lib/utils.js +1 -1
  277. package/dist/src/lib/vatValidate.js +1 -1
  278. package/dist/tsconfig.build.tsbuildinfo +1 -1
  279. package/dist/types/components/StrapiErrors.d.ts +2 -2
  280. package/dist/types/components/e-commerce/cart/hooks.d.ts +2 -3
  281. package/dist/types/components/e-commerce/products/AddProductForm.d.ts +3 -3
  282. package/dist/types/lib/getIcon.d.ts +0 -1
  283. package/dist/types/types/StrapiImageProps.d.ts +0 -1
  284. package/dist/types/types/common/Contact.d.ts +0 -1
  285. package/dist/types/types/common/Socials.d.ts +0 -1
  286. package/dist/types/types/common/enhancedTable/types.d.ts +0 -1
  287. package/package.json +15 -25
  288. package/postcss.config.js +5 -6
  289. package/rollup.config.mjs +9 -0
  290. package/src/components/Logo.tsx +20 -9
  291. package/src/components/LogoutButton.tsx +1 -29
  292. package/src/components/StrapiErrors.tsx +5 -1
  293. package/src/components/e-commerce/invoice/InvoicePDF.tsx +54 -48
  294. package/src/components/e-commerce/iro/ManageIROForm.tsx +3 -3
  295. package/src/components/e-commerce/opo/ManageOpoForm.tsx +7 -2
  296. package/src/components/e-commerce/opo/OpoItemUpdater.tsx +16 -6
  297. package/src/index.ts +327 -327
  298. package/src/lib/APIcon.svg +6 -6
  299. package/src/lib/utils.ts +0 -7
  300. package/src/styles/globals.css +2 -3
  301. package/tsconfig.json +24 -34
  302. package/.storybook/main.js +0 -26
  303. package/.storybook/preview.js +0 -50
  304. package/dist/_virtual/inherits_browser.js +0 -6
  305. package/dist/_virtual/punycode.js +0 -6
  306. package/dist/_virtual/url.js +0 -6
  307. package/dist/_virtual/util.js +0 -6
  308. package/dist/node_modules/available-typed-arrays/index.js +0 -6
  309. package/dist/node_modules/base64-js/index.js +0 -6
  310. package/dist/node_modules/buffer/index.js +0 -12
  311. package/dist/node_modules/call-bind/callBound.js +0 -6
  312. package/dist/node_modules/call-bind/index.js +0 -6
  313. package/dist/node_modules/define-data-property/index.js +0 -6
  314. package/dist/node_modules/for-each/index.js +0 -6
  315. package/dist/node_modules/has-property-descriptors/index.js +0 -6
  316. package/dist/node_modules/has-proto/index.js +0 -6
  317. package/dist/node_modules/has-tostringtag/shams.js +0 -6
  318. package/dist/node_modules/ieee754/index.js +0 -7
  319. package/dist/node_modules/inherits/inherits_browser.js +0 -6
  320. package/dist/node_modules/is-arguments/index.js +0 -6
  321. package/dist/node_modules/is-callable/index.js +0 -6
  322. package/dist/node_modules/is-generator-function/index.js +0 -6
  323. package/dist/node_modules/is-typed-array/index.js +0 -6
  324. package/dist/node_modules/set-function-length/index.js +0 -6
  325. package/dist/node_modules/url/node_modules/punycode/punycode.js +0 -7
  326. package/dist/node_modules/url/url.js +0 -6
  327. package/dist/node_modules/util/support/isBufferBrowser.js +0 -6
  328. package/dist/node_modules/util/support/types.js +0 -6
  329. package/dist/node_modules/util/util.js +0 -6
  330. package/dist/node_modules/which-typed-array/index.js +0 -6
  331. package/dist/types/app/checkout/layout.d.ts +0 -4
  332. package/dist/types/app/checkout/page.d.ts +0 -3
  333. package/dist/types/app/layout.d.ts +0 -8
  334. package/dist/types/app/page.d.ts +0 -2
  335. package/dist/types/components/e-commerce/cart/CartWidgetOld.d.ts +0 -9
  336. package/next-env.d.ts +0 -5
  337. package/next.config.js +0 -18
  338. package/public/AMH/BulletSVG.svg +0 -9
  339. package/public/AMH/desktop_wallpaper@0.25x.png +0 -0
  340. package/public/Logo.svg +0 -6
  341. package/public/favicon.ico +0 -0
  342. package/public/index.html +0 -43
  343. package/public/logo.png +0 -0
  344. package/public/logo_decorated.png +0 -0
  345. package/public/logo_text.png +0 -0
  346. package/public/logo_thick.png +0 -0
  347. package/public/manifest.json +0 -25
  348. package/public/placeholders/fullscreen_1920X1080.png +0 -0
  349. package/public/placeholders/highres_2400X1600.png +0 -0
  350. package/public/placeholders/large_1200X800.png +0 -0
  351. package/public/placeholders/medium_600X400.png +0 -0
  352. package/public/placeholders/small_300X200.png +0 -0
  353. package/public/placeholders/thumbnail_100X100.png +0 -0
  354. package/public/robots.txt +0 -3
  355. package/readme.MD +0 -0
  356. package/rollup.config copy.mjs +0 -80
  357. package/src/app/checkout/layout.tsx +0 -28
  358. package/src/app/checkout/page.tsx +0 -9
  359. package/src/app/layout.tsx +0 -16
  360. package/src/app/page.tsx +0 -38
  361. package/src/stories/ContactForm.stories.js +0 -13
  362. package/src/stories/FeatureSection.stories.js +0 -86
  363. package/src/stories/FluidBackground.stories.js +0 -29
  364. package/src/stories/Footer.stories.js +0 -130
  365. package/src/stories/HeroSection.stories.js +0 -101
  366. package/src/stories/LogoutButton.stories.js +0 -15
  367. package/src/stories/Page.stories.js +0 -536
  368. package/src/stories/PageBuilder.stories.js +0 -396
  369. package/src/stories/RegisterForm.stories.js +0 -13
  370. package/src/stories/ScrollNavbar.stories.js +0 -121
  371. package/src/stories/SideNav.stories.js +0 -47
  372. package/src/stories/SigninForm.stories.js +0 -13
  373. package/src/stories/StrapiImage.stories.js +0 -23
  374. package/src/stories/TextImageSection.stories.js +0 -73
  375. package/src/stories/WebsitePlaceholder.stories.js +0 -178
  376. package/src/stories/WhatsAppClickToChatButton.stories.js +0 -69
  377. package/src/stories/styles.css +0 -39
  378. package/tailwind.config.ts +0 -80
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as i,__assign as e}from"../../../../node_modules/tslib/tslib.es6.js";import o from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var a=s();function m(s,m,l,f){return r(this,arguments,void 0,(function(r,s,m,l,f){var p,u;return void 0===f&&(f={}),i(this,(function(i){switch(i.label){case 0:return n(),p=new URL("/api/customer-profiles",a),u=c(f),p.search=o.stringify({filters:e({},u),sort:"".concat(l||"id",":").concat(m||"desc"),pagination:{pageSize:s||10,page:r?r+1:1}}),[4,t(p.href)];case 1:return[2,i.sent()]}}))}))}export{m as getAllCustomers};
7
+ import{__awaiter as r,__generator as i,__assign as e}from"../../../../node_modules/tslib/tslib.es6.js";import o from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var a=s();function m(s,m,l,f){return r(this,arguments,void 0,function(r,s,m,l,f){var p,u;return void 0===f&&(f={}),i(this,function(i){switch(i.label){case 0:return n(),p=new URL("/api/customer-profiles",a),u=c(f),p.search=o.stringify({filters:e({},u),sort:"".concat(l||"id",":").concat(m||"desc"),pagination:{pageSize:s||10,page:r?r+1:1}}),[4,t(p.href)];case 1:return[2,i.sent()]}})})}export{m as getAllCustomers};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as s,__assign as r}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o,flattenAttributes as n}from"../../../lib/utils.js";import{unstable_noStore as a}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var l=o();function m(o,m,p,d){return e(this,arguments,void 0,(function(e,o,m,p,d){var u,f,_;return void 0===d&&(d={}),s(this,(function(s){switch(s.label){case 0:return a(),u=new URL("/api/invoices",l),f=c(d),u.search=i.stringify({filters:r({},f),sort:"".concat(p||"id",":").concat(m||"desc"),populate:{items:!0,admin_items:{populate:{price:!0}},seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_business_credentials:!0,customer:{fields:"customer_number"}},pagination:{pageSize:o||10,page:e?e+1:1}}),_=n,[4,t(u.href)];case 1:return[2,_.apply(void 0,[s.sent()])]}}))}))}export{m as getAllInvoices};
7
+ import{__awaiter as e,__generator as s,__assign as r}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o,flattenAttributes as n}from"../../../lib/utils.js";import{unstable_noStore as a}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var l=o();function m(o,m,p,d){return e(this,arguments,void 0,function(e,o,m,p,d){var u,f,_;return void 0===d&&(d={}),s(this,function(s){switch(s.label){case 0:return a(),u=new URL("/api/invoices",l),f=c(d),u.search=i.stringify({filters:r({},f),sort:"".concat(p||"id",":").concat(m||"desc"),populate:{items:!0,admin_items:{populate:{price:!0}},seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_business_credentials:!0,customer:{fields:"customer_number"}},pagination:{pageSize:o||10,page:e?e+1:1}}),_=n,[4,t(u.href)];case 1:return[2,_.apply(void 0,[s.sent()])]}})})}export{m as getAllInvoices};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as s,__assign as r}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as d}from"next/cache";import{getUserRole as n}from"../../services/get-user-me-loader.js";import{processFilters as a}from"../../../lib/processFilters.js";var l=t();function p(t,p,u,c){return e(this,arguments,void 0,(function(e,t,p,u,c,m){var _,b,v,f,y,g,h;return void 0===c&&(c=[!1]),void 0===m&&(m={}),s(this,(function(s){switch(s.label){case 0:return d(),[4,n()];case 1:return _=s.sent(),b=null===(h=null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.role)||void 0===h?void 0:h.type,v="enduser"===b,f=new URL("/api/opos",l),y=a(m),f.search=i.stringify({filters:r({is_archive:{$in:c}},y),sort:"".concat(u||"id",":").concat(p||"desc"),populate:{opo_items:{populate:{product:{populate:{price:!0}},reports:!0}},customer:!!v&&{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:!0}},payments:!0,invoice:{populate:{seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_delivery_address:!0,buyer_billing_address:!0,buyer_business_credentials:!0,items:!0,admin_items:!0}},iros:{fields:["id","uuid","status"]}},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 2:return[2,s.sent()]}}))}))}export{p as getAllOpos};
7
+ import{__awaiter as e,__generator as s,__assign as r}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as d}from"next/cache";import{getUserRole as n}from"../../services/get-user-me-loader.js";import{processFilters as a}from"../../../lib/processFilters.js";var l=t();function p(t,p,u,c){return e(this,arguments,void 0,function(e,t,p,u,c,m){var _,b,v,f,y,g,h;return void 0===c&&(c=[!1]),void 0===m&&(m={}),s(this,function(s){switch(s.label){case 0:return d(),[4,n()];case 1:return _=s.sent(),b=null===(h=null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.role)||void 0===h?void 0:h.type,v="enduser"===b,f=new URL("/api/opos",l),y=a(m),f.search=i.stringify({filters:r({is_archive:{$in:c}},y),sort:"".concat(u||"id",":").concat(p||"desc"),populate:{opo_items:{populate:{product:{populate:{price:!0}},reports:!0}},customer:!!v&&{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:!0}},payments:!0,invoice:{populate:{seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_delivery_address:!0,buyer_billing_address:!0,buyer_business_credentials:!0,items:!0,admin_items:!0}},iros:{fields:["id","uuid","status"]}},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 2:return[2,s.sent()]}})})}export{p as getAllOpos};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as n}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var a=r();function s(){return i(this,void 0,void 0,(function(){var i;return t(this,(function(t){switch(t.label){case 0:return(i=new URL("/api/customer-profiles",a)).search=e.stringify({fields:["id","first_name","last_name","email"],pagination:{pageSize:100,page:1}}),[4,n(i.href)];case 1:return[2,t.sent().data.map((function(i){return{id:i.id,title:i.first_name&&i.last_name?"".concat(i.first_name," ").concat(i.last_name):"".concat(i.email)}}))]}}))}))}export{s as getCustomerLabels};
7
+ import{__awaiter as i,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as n}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var a=r();function s(){return i(this,void 0,void 0,function(){var i;return t(this,function(t){switch(t.label){case 0:return(i=new URL("/api/customer-profiles",a)).search=e.stringify({fields:["id","first_name","last_name","email"],pagination:{pageSize:100,page:1}}),[4,n(i.href)];case 1:return[2,t.sent().data.map(function(i){return{id:i.id,title:i.first_name&&i.last_name?"".concat(i.first_name," ").concat(i.last_name):"".concat(i.email)}})]}})})}export{s as getCustomerLabels};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return i(),r=new URL("/api/customer-profiles/findModel",s),[4,e(r.href)];case 1:return[2,t.sent()]}}))}))}export{n as getCustomerModel};
7
+ import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return i(),r=new URL("/api/customer-profiles/findModel",s),[4,e(r.href)];case 1:return[2,t.sent()]}})})}export{n as getCustomerModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return i(),r=new URL("/api/opos/findModel",s),[4,t(r.href)];case 1:return[2,o.sent()]}}))}))}export{n as getOpoModel};
7
+ import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return i(),r=new URL("/api/opos/findModel",s),[4,t(r.href)];case 1:return[2,o.sent()]}})})}export{n as getOpoModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var s=r();function n(r,n,a,c){return e(this,arguments,void 0,(function(e,r,n,a,c){var p;return void 0===c&&(c=[!1]),i(this,(function(i){switch(i.label){case 0:return p=new URL("/api/product-categories",s),console.log("getPaginatedCategories",e,r,n,a,c),p.search=t.stringify({filters:{is_archive:{$in:c}},populate:{products:{populate:{image:!0,price:!0}}},sort:"".concat(a||"id",":").concat(n||"desc"),pagination:{pageSize:r||4,page:e||1}}),[4,o(p.href)];case 1:return[2,i.sent()]}}))}))}export{n as getPaginatedCategories};
7
+ import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var s=r();function n(r,n,a,c){return e(this,arguments,void 0,function(e,r,n,a,c){var p;return void 0===c&&(c=[!1]),i(this,function(i){switch(i.label){case 0:return p=new URL("/api/product-categories",s),console.log("getPaginatedCategories",e,r,n,a,c),p.search=t.stringify({filters:{is_archive:{$in:c}},populate:{products:{populate:{image:!0,price:!0}}},sort:"".concat(a||"id",":").concat(n||"desc"),pagination:{pageSize:r||4,page:e||1}}),[4,o(p.href)];case 1:return[2,i.sent()]}})})}export{n as getPaginatedCategories};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return i(),r=new URL("/api/products/findModel",s),[4,o(r.href)];case 1:return[2,t.sent()]}}))}))}export{n as getProductModel};
7
+ import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return i(),r=new URL("/api/products/findModel",s),[4,o(r.href)];case 1:return[2,t.sent()]}})})}export{n as getProductModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";var o=s();function n(){return i(this,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return(i=new URL("/api/products",o)).search=e.stringify({fields:["id","title","slug","product_number"],pagination:{pageSize:100,page:1}}),[4,t(i.href)];case 1:return[2,r.sent()]}}))}))}export{n as getProductNames};
7
+ import{__awaiter as i,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";var o=s();function n(){return i(this,void 0,void 0,function(){var i;return r(this,function(r){switch(r.label){case 0:return(i=new URL("/api/products",o)).search=e.stringify({fields:["id","title","slug","product_number"],pagination:{pageSize:100,page:1}}),[4,t(i.href)];case 1:return[2,r.sent()]}})})}export{n as getProductNames};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function a(o){return e(this,void 0,void 0,(function(){var e;return i(this,(function(i){switch(i.label){case 0:return s(),4,(e=new URL("/api/products",n)).search=r.stringify({populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0},pagination:{pageSize:4,page:o},filters:{is_archive:!1}}),[4,t(e.href)];case 1:return[2,i.sent()]}}))}))}export{a as getShop};
7
+ import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function a(o){return e(this,void 0,void 0,function(){var e;return i(this,function(i){switch(i.label){case 0:return s(),(e=new URL("/api/products",n)).search=r.stringify({populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0},pagination:{pageSize:4,page:o},filters:{is_archive:!1}}),[4,t(e.href)];case 1:return[2,i.sent()]}})})}export{a as getShop};
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function c(o){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return s(),(r=new URL("/api/slugify/slugs/product-category/".concat(o),n)).search=e.stringify({filters:{is_archive:!1},populate:{products:{populate:{image:!0,price:!0}}}}),[4,i(r.href)];case 1:return[2,t.sent()]}}))}))}export{c as getSingleCategory};
6
+ import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../node_modules/qs/lib/index.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function c(o){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return s(),(r=new URL("/api/slugify/slugs/product-category/".concat(o),n)).search=e.stringify({filters:{is_archive:!1},populate:{products:{populate:{image:!0,price:!0}}}}),[4,i(r.href)];case 1:return[2,t.sent()]}})})}export{c as getSingleCategory};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as t}from"next/cache";var n=o();function d(o){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return t(),(r=new URL("/api/customer-profiles/".concat(o),n)).search=s.stringify({populate:{company_address:"*",delivery_address:"*",billing_address:"*",business_credentials:"*",orders:"*",returns:"*"}}),[4,i(r.href)];case 1:return[2,e.sent()]}}))}))}export{d as getSingleCustomer};
7
+ import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as t}from"next/cache";var n=o();function d(o){return r(this,void 0,void 0,function(){var r;return e(this,function(e){switch(e.label){case 0:return t(),(r=new URL("/api/customer-profiles/".concat(o),n)).search=s.stringify({populate:{company_address:"*",delivery_address:"*",billing_address:"*",business_credentials:"*",orders:"*",returns:"*"}}),[4,i(r.href)];case 1:return[2,e.sent()]}})})}export{d as getSingleCustomer};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as o,__assign as t}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as s}from"../loaders.js";import{getStrapiURL as p}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var a=p();function u(p){return e(this,arguments,void 0,(function(e,p){var u;return void 0===p&&(p={}),o(this,(function(o){switch(o.label){case 0:return i(),(u=new URL("/api/opos/".concat(e),a)).search=r.stringify({populate:{opo_items:{populate:{product:{populate:{price:!0,image:!0}},picked_reports:!0,packed_reports:!0,shipped_reports:!0,reports:{populate:{author:!0}}}},customer:{populate:["business_credentials"]},notes:{populate:{author:{populate:!0}}}},filters:t({},p)}),[4,s(u.href)];case 1:return[2,o.sent()]}}))}))}export{u as getSingleOpo};
7
+ import{__awaiter as e,__generator as o,__assign as t}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as s}from"../loaders.js";import{getStrapiURL as p}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var a=p();function u(p){return e(this,arguments,void 0,function(e,p){var u;return void 0===p&&(p={}),o(this,function(o){switch(o.label){case 0:return i(),(u=new URL("/api/opos/".concat(e),a)).search=r.stringify({populate:{opo_items:{populate:{product:{populate:{price:!0,image:!0}},picked_reports:!0,packed_reports:!0,shipped_reports:!0,reports:{populate:{author:!0}}}},customer:{populate:["business_credentials"]},notes:{populate:{author:{populate:!0}}}},filters:t({},p)}),[4,s(u.href)];case 1:return[2,o.sent()]}})})}export{u as getSingleOpo};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as s}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as t}from"next/cache";var n=o();function a(o){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return t(),(r=new URL("/api/slugify/slugs/product/".concat(o),n)).search=i.stringify({filters:{is_archive:!1},populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0,vendors:!0}}),[4,s(r.href)];case 1:return[2,e.sent()]}}))}))}export{a as getSingleProduct};
7
+ import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as s}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as t}from"next/cache";var n=o();function a(o){return r(this,void 0,void 0,function(){var r;return e(this,function(e){switch(e.label){case 0:return t(),(r=new URL("/api/slugify/slugs/product/".concat(o),n)).search=i.stringify({filters:{is_archive:!1},populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0,vendors:!0}}),[4,s(r.href)];case 1:return[2,e.sent()]}})})}export{a as getSingleProduct};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as t,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(e){return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return i(),t=new URL("/api/products/getStock/".concat(e),s),[4,o(t.href)];case 1:return[2,r.sent()]}}))}))}export{n as getSingleStock};
7
+ import{__awaiter as t,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=e();function n(e){return t(this,void 0,void 0,function(){var t;return r(this,function(r){switch(r.label){case 0:return i(),t=new URL("/api/products/getStock/".concat(e),s),[4,o(t.href)];case 1:return[2,r.sent()]}})})}export{n as getSingleStock};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as r,__assign as e}from"../../../../node_modules/tslib/tslib.es6.js";import o from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var a=s();function p(s,p,l,m){return i(this,arguments,void 0,(function(i,s,p,l,m,d){var f,u;return void 0===m&&(m=[!1]),void 0===d&&(d={}),r(this,(function(r){switch(r.label){case 0:return n(),f=new URL("/api/products",a),u=c(d),f.search=o.stringify({filters:e({is_archive:{$in:m}},u),sort:"".concat(l||"id",":").concat(p||"desc"),populate:{price:!0},pagination:{pageSize:s||10,page:i?i+1:1}}),[4,t(f.href)];case 1:return[2,r.sent()]}}))}))}export{p as getTableProducts};
7
+ import{__awaiter as i,__generator as r,__assign as e}from"../../../../node_modules/tslib/tslib.es6.js";import o from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as c}from"../../../lib/processFilters.js";var a=s();function p(s,p,l,m){return i(this,arguments,void 0,function(i,s,p,l,m,d){var f,u;return void 0===m&&(m=[!1]),void 0===d&&(d={}),r(this,function(r){switch(r.label){case 0:return n(),f=new URL("/api/products",a),u=c(d),f.search=o.stringify({filters:e({is_archive:{$in:m}},u),sort:"".concat(l||"id",":").concat(p||"desc"),populate:{price:!0},pagination:{pageSize:s||10,page:i?i+1:1}}),[4,t(f.href)];case 1:return[2,r.sent()]}})})}export{p as getTableProducts};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as s,__assign as r}from"../../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../../loaders.js";import{getStrapiURL as t}from"../../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{getUserRole as d}from"../../../services/get-user-me-loader.js";import{processFilters as a}from"../../../../lib/processFilters.js";var l=t();function p(t,p,u,c){return e(this,arguments,void 0,(function(e,t,p,u,c,m){var _,b,v,f,y,g,h;return void 0===c&&(c=[!1]),void 0===m&&(m={}),s(this,(function(s){switch(s.label){case 0:return n(),[4,d()];case 1:return _=s.sent(),b=null===(h=null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.role)||void 0===h?void 0:h.type,v="enduser"===b,f=new URL("/api/iros",l),y=a(m),f.search=i.stringify({filters:r({is_archive:{$in:c}},y),sort:"".concat(u||"id",":").concat(p||"desc"),populate:{iro_items:{populate:{product:{populate:{price:!0}},reports:!0}},customer:!!v&&{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:!0}},invoice:{populate:{seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_delivery_address:!0,buyer_billing_address:!0,buyer_business_credentials:!0,items:!0,admin_items:!0}}},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 2:return[2,s.sent()]}}))}))}export{p as getAllIros};
7
+ import{__awaiter as e,__generator as s,__assign as r}from"../../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../../loaders.js";import{getStrapiURL as t}from"../../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{getUserRole as d}from"../../../services/get-user-me-loader.js";import{processFilters as a}from"../../../../lib/processFilters.js";var l=t();function p(t,p,u,c){return e(this,arguments,void 0,function(e,t,p,u,c,m){var _,b,v,f,y,g,h;return void 0===c&&(c=[!1]),void 0===m&&(m={}),s(this,function(s){switch(s.label){case 0:return n(),[4,d()];case 1:return _=s.sent(),b=null===(h=null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.role)||void 0===h?void 0:h.type,v="enduser"===b,f=new URL("/api/iros",l),y=a(m),f.search=i.stringify({filters:r({is_archive:{$in:c}},y),sort:"".concat(u||"id",":").concat(p||"desc"),populate:{iro_items:{populate:{product:{populate:{price:!0}},reports:!0}},customer:!!v&&{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:!0}},invoice:{populate:{seller_business_credentials:!0,seller_company_address:!0,buyer_company_address:!0,buyer_delivery_address:!0,buyer_billing_address:!0,buyer_business_credentials:!0,items:!0,admin_items:!0}}},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 2:return[2,s.sent()]}})})}export{p as getAllIros};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as t}from"../../../../../node_modules/tslib/tslib.es6.js";import{fetchData as i}from"../../loaders.js";import{getStrapiURL as o}from"../../../../lib/utils.js";import{unstable_noStore as e}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return e(),r=new URL("/api/iros/findModel",s),[4,i(r.href)];case 1:return[2,t.sent()]}}))}))}export{n as getIroModel};
7
+ import{__awaiter as r,__generator as t}from"../../../../../node_modules/tslib/tslib.es6.js";import{fetchData as i}from"../../loaders.js";import{getStrapiURL as o}from"../../../../lib/utils.js";import{unstable_noStore as e}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return e(),r=new URL("/api/iros/findModel",s),[4,i(r.href)];case 1:return[2,t.sent()]}})})}export{n as getIroModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as t,__generator as o}from"../../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../../node_modules/qs/lib/index.js";import{fetchData as r}from"../../loaders.js";import{getStrapiURL as s}from"../../../../lib/utils.js";var i=s();function p(s){return t(this,void 0,void 0,(function(){var t;return o(this,(function(o){switch(o.label){case 0:return(t=new URL("/api/iros/".concat(s),i)).search=e.stringify({populate:{iro_items:{populate:{product:{populate:{image:!0}},reports:{populate:{author:!0}}}},customer:{populate:["business_credentials"]},notes:{populate:{author:{populate:!0}}}}}),[4,r(t.href)];case 1:return[2,o.sent()]}}))}))}export{p as getSingleIro};
7
+ import{__awaiter as t,__generator as o}from"../../../../../node_modules/tslib/tslib.es6.js";import e from"../../../../../node_modules/qs/lib/index.js";import{fetchData as r}from"../../loaders.js";import{getStrapiURL as s}from"../../../../lib/utils.js";var i=s();function p(s){return t(this,void 0,void 0,function(){var t;return o(this,function(o){switch(o.label){case 0:return(t=new URL("/api/iros/".concat(s),i)).search=e.stringify({populate:{iro_items:{populate:{product:{populate:{image:!0}},reports:{populate:{author:!0}}}},customer:{populate:["business_credentials"]},notes:{populate:{author:{populate:!0}}}}}),[4,r(t.href)];case 1:return[2,o.sent()]}})})}export{p as getSingleIro};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as o}from"../../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../../loaders.js";import{getStrapiURL as t}from"../../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return i(),r=new URL("/api/iros",s),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}}))}))}export{n as queryAllIros};
7
+ import{__awaiter as r,__generator as o}from"../../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../../loaders.js";import{getStrapiURL as t}from"../../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return i(),r=new URL("/api/iros",s),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}})})}export{n as queryAllIros};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=o();function n(o){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return i(),(r=new URL("/api/customer-profiles",s)).search=o,[4,e(r.href)];case 1:return[2,t.sent()]}}))}))}export{n as queryAllCustomers};
7
+ import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=o();function n(o){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return i(),(r=new URL("/api/customer-profiles",s)).search=o,[4,e(r.href)];case 1:return[2,t.sent()]}})})}export{n as queryAllCustomers};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var i=t();function n(t){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return s(),r=new URL("/api/opos",i),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}}))}))}export{n as queryAllOpos};
7
+ import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var i=t();function n(t){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return s(),r=new URL("/api/opos",i),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}})})}export{n as queryAllOpos};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var i=e();function n(e){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return s(),r=new URL("/api/products",i),console.log("query",e),r.search=e,[4,t(r.href)];case 1:return[2,o.sent()]}}))}))}export{n as queryAllProducts};
7
+ import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as e}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var i=e();function n(e){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return s(),r=new URL("/api/products",i),console.log("query",e),r.search=e,[4,t(r.href)];case 1:return[2,o.sent()]}})})}export{n as queryAllProducts};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r}from"../../../node_modules/tslib/tslib.es6.js";import t from"../../../node_modules/qs/lib/index.js";import{fetchData as i}from"./loaders.js";import{getStrapiURL as o}from"../../lib/utils.js";import{unstable_noStore as s}from"next/cache";import"../services/get-user-me-loader.js";var n=o();function u(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return s(),(e=new URL("/api/users/me",n)).search=t.stringify({populate:{customer_profile:!0}}),[4,i(e.href)];case 1:return[2,r.sent()]}}))}))}function c(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return console.log("getSingleOrderByUuid",t),s(),e=new URL("/api/opos/uuid/".concat(t),n),[4,i(e.href)];case 1:return[2,r.sent()]}}))}))}export{u as getCustomerProfile,c as getSingleOrderByUuid};
7
+ import{__awaiter as e,__generator as r}from"../../../node_modules/tslib/tslib.es6.js";import t from"../../../node_modules/qs/lib/index.js";import{fetchData as i}from"./loaders.js";import{getStrapiURL as o}from"../../lib/utils.js";import{unstable_noStore as s}from"next/cache";import"../services/get-user-me-loader.js";var n=o();function u(){return e(this,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return s(),(e=new URL("/api/users/me",n)).search=t.stringify({populate:{customer_profile:!0}}),[4,i(e.href)];case 1:return[2,r.sent()]}})})}function c(t){return e(this,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return console.log("getSingleOrderByUuid",t),s(),e=new URL("/api/opos/uuid/".concat(t),n),[4,i(e.href)];case 1:return[2,r.sent()]}})})}export{u as getCustomerProfile,c as getSingleOrderByUuid};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as t}from"../../../node_modules/tslib/tslib.es6.js";import n from"../../../node_modules/qs/lib/index.js";import{getStrapiURL as r,flattenAttributes as o}from"../../lib/utils.js";import{unstable_noStore as i}from"next/cache";import{getAuthToken as a}from"../services/get-token.js";var s=r();function u(n){return e(this,void 0,void 0,(function(){var e,r,i,s;return t(this,(function(t){switch(t.label){case 0:return[4,a()];case 1:e=t.sent(),r={method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}},t.label=2;case 2:return t.trys.push([2,5,,6]),[4,fetch(n,e?r:{})];case 3:return[4,t.sent().json()];case 4:return i=t.sent(),[2,o(i)];case 5:throw s=t.sent(),console.error("Error fetching data:",s),s;case 6:return[2]}}))}))}function c(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return(e=new URL("/api/home-page",s)).search=n.stringify({populate:{blocks:{populate:{image:{populate:!0},link:{populate:!0},feature:{populate:!0}}}}}),[4,u(e.href)];case 1:return[2,t.sent()]}}))}))}function p(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return i(),(e=new URL("/api/slugify/slugs/page/disclaimer?populate[blocks][populate]=%2A",s)).search=n.stringify({populate:{blocks:{populate:!0}}}),[4,u(e.href)];case 1:return[2,t.sent()]}}))}))}function l(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return i(),(e=new URL("/api/slugify/slugs/page/privacy-policy?populate[blocks][populate]=%2A",s)).search=n.stringify({populate:{blocks:{populate:!0}}}),[4,u(e.href)];case 1:return[2,t.sent()]}}))}))}function f(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return i(),(e=new URL("/api/pages",s)).search=n.stringify({populate:{blocks:{populate:{bgImage:{populate:!0},logoImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0,category:{populate:{products:{populate:{image:!0,price:!0}}}}}}}}),[4,u(e.href)];case 1:return[2,t.sent()]}}))}))}function h(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return i(),(e=new URL("/api/pages",s)).search=n.stringify({fields:["slug","title"]}),[4,u(e.href)];case 1:return[2,t.sent()]}}))}))}function d(){return e(this,void 0,void 0,(function(){var e,r,a,u;return t(this,(function(t){switch(t.label){case 0:i(),(e=new URL("/api/public-information",s)).search=n.stringify({populate:{socials:!0,business_credentials:!0,footer_logo:!0,header_logo:!0,address:!0}}),r={method:"GET",headers:{"Content-Type":"application/json"}},t.label=1;case 1:return t.trys.push([1,4,,5]),[4,fetch(e,r)];case 2:return[4,t.sent().json()];case 3:return a=t.sent(),[2,o(a)];case 4:return u=t.sent(),console.error("Error fetching data:",u),[2,null];case 5:return[2]}}))}))}function g(){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,u(new URL("/api/navigation/render/main-navigation?type=RFR",s).href)];case 1:return[2,e.sent()]}}))}))}export{u as fetchData,f as getAllPages,p as getDisclaimerData,c as getHomePageData,g as getNavigation,h as getPageNames,l as getPrivacyPolicyData,d as getSiteData};
7
+ import{__awaiter as e,__generator as t}from"../../../node_modules/tslib/tslib.es6.js";import n from"../../../node_modules/qs/lib/index.js";import{getStrapiURL as r,flattenAttributes as o}from"../../lib/utils.js";import{unstable_noStore as i}from"next/cache";import{getAuthToken as a}from"../services/get-token.js";var s=r();function u(n){return e(this,void 0,void 0,function(){var e,r,i,s;return t(this,function(t){switch(t.label){case 0:return[4,a()];case 1:e=t.sent(),r={method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}},t.label=2;case 2:return t.trys.push([2,5,,6]),[4,fetch(n,e?r:{})];case 3:return[4,t.sent().json()];case 4:return i=t.sent(),[2,o(i)];case 5:throw s=t.sent(),console.error("Error fetching data:",s),s;case 6:return[2]}})})}function c(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return(e=new URL("/api/home-page",s)).search=n.stringify({populate:{blocks:{populate:{image:{populate:!0},link:{populate:!0},feature:{populate:!0}}}}}),[4,u(e.href)];case 1:return[2,t.sent()]}})})}function p(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return i(),(e=new URL("/api/slugify/slugs/page/disclaimer?populate[blocks][populate]=%2A",s)).search=n.stringify({populate:{blocks:{populate:!0}}}),[4,u(e.href)];case 1:return[2,t.sent()]}})})}function l(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return i(),(e=new URL("/api/slugify/slugs/page/privacy-policy?populate[blocks][populate]=%2A",s)).search=n.stringify({populate:{blocks:{populate:!0}}}),[4,u(e.href)];case 1:return[2,t.sent()]}})})}function f(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return i(),(e=new URL("/api/pages",s)).search=n.stringify({populate:{blocks:{populate:{bgImage:{populate:!0},logoImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0,category:{populate:{products:{populate:{image:!0,price:!0}}}}}}}}),[4,u(e.href)];case 1:return[2,t.sent()]}})})}function h(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return i(),(e=new URL("/api/pages",s)).search=n.stringify({fields:["slug","title"]}),[4,u(e.href)];case 1:return[2,t.sent()]}})})}function d(){return e(this,void 0,void 0,function(){var e,r,a,u;return t(this,function(t){switch(t.label){case 0:i(),(e=new URL("/api/public-information",s)).search=n.stringify({populate:{socials:!0,business_credentials:!0,footer_logo:!0,header_logo:!0,address:!0}}),r={method:"GET",headers:{"Content-Type":"application/json"}},t.label=1;case 1:return t.trys.push([1,4,,5]),[4,fetch(e,r)];case 2:return[4,t.sent().json()];case 3:return a=t.sent(),[2,o(a)];case 4:return u=t.sent(),console.error("Error fetching data:",u),[2,null];case 5:return[2]}})})}function g(){return e(this,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,u(new URL("/api/navigation/render/main-navigation?type=RFR",s).href)];case 1:return[2,e.sent()]}})})}export{u as fetchData,f as getAllPages,p as getDisclaimerData,c as getHomePageData,g as getNavigation,h as getPageNames,l as getPrivacyPolicyData,d as getSiteData};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as e}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,(function(){var r;return t(this,(function(t){switch(t.label){case 0:return e(),r=new URL("/api/ipos/findModel",s),[4,i(r.href)];case 1:return[2,t.sent()]}}))}))}export{n as getIpoModel};
7
+ import{__awaiter as r,__generator as t}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as e}from"next/cache";var s=o();function n(){return r(this,void 0,void 0,function(){var r;return t(this,function(t){switch(t.label){case 0:return e(),r=new URL("/api/ipos/findModel",s),[4,i(r.href)];case 1:return[2,t.sent()]}})})}export{n as getIpoModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";var t=s();function n(){return i(this,void 0,void 0,(function(){var i;return e(this,(function(e){switch(e.label){case 0:return(i=new URL("/api/ipos",t)).search=r.stringify({fields:["id","ipo_number"],pagination:{pageSize:100,page:1}}),[4,o(i.href)];case 1:return[2,e.sent()]}}))}))}export{n as getIpoNames};
7
+ import{__awaiter as i,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";var t=s();function n(){return i(this,void 0,void 0,function(){var i;return e(this,function(e){switch(e.label){case 0:return(i=new URL("/api/ipos",t)).search=r.stringify({fields:["id","ipo_number"],pagination:{pageSize:100,page:1}}),[4,o(i.href)];case 1:return[2,e.sent()]}})})}export{n as getIpoNames};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as o,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as r}from"../loaders.js";import{getStrapiURL as i}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=i();function p(i){return o(this,void 0,void 0,(function(){var o;return e(this,(function(e){switch(e.label){case 0:return s(),(o=new URL("/api/ipos/".concat(i),n)).search=t.stringify({populate:{vendor_profile:{populate:{business_credentials:!0}},items:{populate:{product:{populate:{image:!0}},reports:{populate:{author:!0}}}},order_confirmation:!0,delivery_note:!0,notes:{populate:{author:{populate:!0}}}}}),console.log(o.href),[4,r(o.href)];case 1:return[2,e.sent()]}}))}))}export{p as getSingleIpo};
7
+ import{__awaiter as o,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as r}from"../loaders.js";import{getStrapiURL as i}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=i();function p(i){return o(this,void 0,void 0,function(){var o;return e(this,function(e){switch(e.label){case 0:return s(),(o=new URL("/api/ipos/".concat(i),n)).search=t.stringify({populate:{vendor_profile:{populate:{business_credentials:!0}},items:{populate:{product:{populate:{image:!0}},reports:{populate:{author:!0}}}},order_confirmation:!0,delivery_note:!0,notes:{populate:{author:{populate:!0}}}}}),console.log(o.href),[4,r(o.href)];case 1:return[2,e.sent()]}})})}export{p as getSingleIpo};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var n=o();function c(o){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return i(),(e=new URL("/api/vendor-profiles/".concat(o),n)).search=s.stringify({populate:{address:!0,business_credentials:!0,products:{populate:{price:!0}},contacts:!0,notes:!0}}),[4,t(e.href)];case 1:return[2,r.sent()]}}))}))}export{c as getSingleVendor};
7
+ import{__awaiter as e,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var n=o();function c(o){return e(this,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return i(),(e=new URL("/api/vendor-profiles/".concat(o),n)).search=s.stringify({populate:{address:!0,business_credentials:!0,products:{populate:{price:!0}},contacts:!0,notes:!0}}),[4,t(e.href)];case 1:return[2,r.sent()]}})})}export{c as getSingleVendor};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r,__assign as i}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as p}from"../../../lib/processFilters.js";var l=s();function a(s,a,c,u){return e(this,arguments,void 0,(function(e,s,a,c,u,d){var m,f;return void 0===u&&(u=[!1]),void 0===d&&(d={}),r(this,(function(r){switch(r.label){case 0:return n(),m=new URL("/api/ipos",l),f=p(d),m.search=t.stringify({filters:i({is_archive:{$in:u}},f),sort:"".concat(c||"id",":").concat(a||"desc"),populate:{vendor_profile:{fields:["vendor_number","website_url"],populate:{business_credentials:{fields:"company_name"}}},items:{populate:{product:{fields:["title","product_number","external_product_number"]},reports:!0}}},pagination:{pageSize:s||10,page:e?e+1:1}}),[4,o(m.href)];case 1:return[2,r.sent()]}}))}))}export{a as getTableIpos};
7
+ import{__awaiter as e,__generator as r,__assign as i}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as s}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as p}from"../../../lib/processFilters.js";var l=s();function a(s,a,c,u){return e(this,arguments,void 0,function(e,s,a,c,u,d){var m,f;return void 0===u&&(u=[!1]),void 0===d&&(d={}),r(this,function(r){switch(r.label){case 0:return n(),m=new URL("/api/ipos",l),f=p(d),m.search=t.stringify({filters:i({is_archive:{$in:u}},f),sort:"".concat(c||"id",":").concat(a||"desc"),populate:{vendor_profile:{fields:["vendor_number","website_url"],populate:{business_credentials:{fields:"company_name"}}},items:{populate:{product:{fields:["title","product_number","external_product_number"]},reports:!0}}},pagination:{pageSize:s||10,page:e?e+1:1}}),[4,o(m.href)];case 1:return[2,r.sent()]}})})}export{a as getTableIpos};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r,__assign as i}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as a}from"../../../lib/processFilters.js";var c=t();function l(t,l,p,m){return e(this,arguments,void 0,(function(e,t,l,p,m){var f,d;return void 0===m&&(m={}),r(this,(function(r){switch(r.label){case 0:return n(),f=new URL("/api/vendor-profiles",c),d=a(m),f.search=s.stringify({filters:i({},d),sort:"".concat(p||"id",":").concat(l||"desc"),populate:{business_credentials:!0},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 1:return[2,r.sent()]}}))}))}export{l as getTableVendors};
7
+ import{__awaiter as e,__generator as r,__assign as i}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";import{processFilters as a}from"../../../lib/processFilters.js";var c=t();function l(t,l,p,m){return e(this,arguments,void 0,function(e,t,l,p,m){var f,d;return void 0===m&&(m={}),r(this,function(r){switch(r.label){case 0:return n(),f=new URL("/api/vendor-profiles",c),d=a(m),f.search=s.stringify({filters:i({},d),sort:"".concat(p||"id",":").concat(l||"desc"),populate:{business_credentials:!0},pagination:{pageSize:t||10,page:e?e+1:1}}),[4,o(f.href)];case 1:return[2,r.sent()]}})})}export{l as getTableVendors};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var n=t();function s(){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return i(),r=new URL("/api/vendor-profiles/findModel",n),[4,o(r.href)];case 1:return[2,e.sent()]}}))}))}export{s as getVendorModel};
7
+ import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var n=t();function s(){return r(this,void 0,void 0,function(){var r;return e(this,function(e){switch(e.label){case 0:return i(),r=new URL("/api/vendor-profiles/findModel",n),[4,o(r.href)];case 1:return[2,e.sent()]}})})}export{s as getVendorModel};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as n}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var o=r();function t(){return e(this,void 0,void 0,(function(){var e;return i(this,(function(i){switch(i.label){case 0:return(e=new URL("/api/vendor-profiles",o)).search=s.stringify({fields:["id","vendor_number"],populate:{business_credentials:{fields:["company_name","business_entity_name"]}},pagination:{pageSize:100,page:1}}),[4,n(e.href)];case 1:return[2,i.sent()]}}))}))}export{t as getVendorNames};
7
+ import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as n}from"../loaders.js";import{getStrapiURL as r}from"../../../lib/utils.js";var o=r();function t(){return e(this,void 0,void 0,function(){var e;return i(this,function(i){switch(i.label){case 0:return(e=new URL("/api/vendor-profiles",o)).search=s.stringify({fields:["id","vendor_number"],populate:{business_credentials:{fields:["company_name","business_entity_name"]}},pagination:{pageSize:100,page:1}}),[4,n(e.href)];case 1:return[2,i.sent()]}})})}export{t as getVendorNames};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return i(),r=new URL("/api/ipos",s),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}}))}))}export{n as queryAllIpos};
7
+ import{__awaiter as r,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return i(),r=new URL("/api/ipos",s),console.log("query",t),r.search=t,[4,e(r.href)];case 1:return[2,o.sent()]}})})}export{n as queryAllIpos};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return i(),r=new URL("/api/vendor-profiles",s),console.log("query",t),r.search=t,[4,o(r.href)];case 1:return[2,e.sent()]}}))}))}export{n as queryAllVendors};
7
+ import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{fetchData as o}from"../loaders.js";import{getStrapiURL as t}from"../../../lib/utils.js";import{unstable_noStore as i}from"next/cache";var s=t();function n(t){return r(this,void 0,void 0,function(){var r;return e(this,function(e){switch(e.label){case 0:return i(),r=new URL("/api/vendor-profiles",s),console.log("query",t),r.search=t,[4,o(r.href)];case 1:return[2,e.sent()]}})})}export{n as queryAllVendors};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function a(o,a,c,m,f){return i(this,void 0,void 0,(function(){var i;return e(this,(function(e){switch(e.label){case 0:return s(),(i=new URL("/api/pages",n)).search=r.stringify({filters:{is_archive:{$in:f}},sort:"".concat(m||"id",":").concat(c||"desc"),pagination:{pageSize:a||10,page:o?o+1:1}}),[4,t(i.href)];case 1:return[2,e.sent()]}}))}))}export{a as getTablePages};
7
+ import{__awaiter as i,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function a(o,a,c,m,f){return i(this,void 0,void 0,function(){var i;return e(this,function(e){switch(e.label){case 0:return s(),(i=new URL("/api/pages",n)).search=r.stringify({filters:{is_archive:{$in:f}},sort:"".concat(m||"id",":").concat(c||"desc"),pagination:{pageSize:a||10,page:o?o+1:1}}),[4,t(i.href)];case 1:return[2,e.sent()]}})})}export{a as getTablePages};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{getStrapiURL as p,flattenAttributes as a}from"../../../lib/utils.js";import{unstable_noStore as l}from"next/cache";var r=p();function n(p){return e(this,void 0,void 0,(function(){var e,n,s,i;return o(this,(function(o){switch(o.label){case 0:l(),console.log("getSinglePage",p),p||(p="home"),(e=new URL("/api/slugify/slugs/page/".concat(p),r)).search=t.stringify({populate:{blocks:{populate:{logoImage:{populate:!0},bgImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0,category:{populate:{products:{populate:{image:!0,price:!0}}}}}}}}),console.log(e.href),n={method:"GET",headers:{"Content-Type":"application/json"}},o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(e,n)];case 2:return[4,o.sent().json()];case 3:return s=o.sent(),[2,a(s)];case 4:return i=o.sent(),console.error("Error fetching data:",i),[2,null];case 5:return[2]}}))}))}export{n as getSinglePage};
7
+ import{__awaiter as e,__generator as o}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{getStrapiURL as p,flattenAttributes as a}from"../../../lib/utils.js";import{unstable_noStore as l}from"next/cache";var r=p();function n(p){return e(this,void 0,void 0,function(){var e,n,s,i;return o(this,function(o){switch(o.label){case 0:l(),console.log("getSinglePage",p),p||(p="home"),(e=new URL("/api/slugify/slugs/page/".concat(p),r)).search=t.stringify({populate:{blocks:{populate:{logoImage:{populate:!0},bgImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0,category:{populate:{products:{populate:{image:!0,price:!0}}}}}}}}),console.log(e.href),n={method:"GET",headers:{"Content-Type":"application/json"}},o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(e,n)];case 2:return[4,o.sent().json()];case 3:return s=o.sent(),[2,a(s)];case 4:return i=o.sent(),console.error("Error fetching data:",i),[2,null];case 5:return[2]}})})}export{n as getSinglePage};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as i,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o,flattenAttributes as t}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";var a=o();function l(){return i(this,void 0,void 0,(function(){var i,o;return r(this,(function(r){switch(r.label){case 0:return n(),(i=new URL("/api/public-information",a)).search=s.stringify({populate:{address:!0,business_credentials:!0,socials:!0}}),o=t,[4,e(i.href)];case 1:return[2,o.apply(void 0,[r.sent()])]}}))}))}export{l as getPublicInformation};
7
+ import{__awaiter as i,__generator as r}from"../../../../node_modules/tslib/tslib.es6.js";import s from"../../../../node_modules/qs/lib/index.js";import{fetchData as e}from"../loaders.js";import{getStrapiURL as o,flattenAttributes as t}from"../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";var a=o();function l(){return i(this,void 0,void 0,function(){var i,o;return r(this,function(r){switch(r.label){case 0:return n(),(i=new URL("/api/public-information",a)).search=s.stringify({populate:{address:!0,business_credentials:!0,socials:!0}}),o=t,[4,e(i.href)];case 1:return[2,o.apply(void 0,[r.sent()])]}})})}export{l as getPublicInformation};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../services/get-token.js";import o from"../../../../node_modules/qs/lib/index.js";import{getStrapiURL as s,flattenAttributes as n}from"../../../lib/utils.js";import{unstable_noStore as a}from"next/cache";var i=s(),c=o.stringify({fields:["id","username","email","createdAt","updatedAt"]});function u(){return r(this,arguments,void 0,(function(r){var o,s,u,l,d;return void 0===r&&(r=c),e(this,(function(e){switch(e.label){case 0:return a(),(o=new URL("/api/users/me",i)).search=r,[4,t()];case 1:if(!(s=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(o.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(s)},cache:"no-cache"})];case 3:if(!(u=e.sent()).ok)throw new Error("HTTP error! status: ".concat(u.status));return[4,u.json()];case 4:return(l=e.sent()).error?[2,{ok:!1,data:null,error:l.error}]:[2,{ok:!0,data:n(l),error:null}];case 5:return d=e.sent(),console.error("getUserMeLoader Error:",d),[2,{ok:!1,data:null,error:d}];case 6:return[2]}}))}))}export{u as getUserMeLoader};
7
+ import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../services/get-token.js";import o from"../../../../node_modules/qs/lib/index.js";import{getStrapiURL as s,flattenAttributes as n}from"../../../lib/utils.js";import{unstable_noStore as a}from"next/cache";var i=s(),c=o.stringify({fields:["id","username","email","createdAt","updatedAt"]});function u(){return r(this,arguments,void 0,function(r){var o,s,u,l,d;return void 0===r&&(r=c),e(this,function(e){switch(e.label){case 0:return a(),(o=new URL("/api/users/me",i)).search=r,[4,t()];case 1:if(!(s=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(o.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(s)},cache:"no-cache"})];case 3:if(!(u=e.sent()).ok)throw new Error("HTTP error! status: ".concat(u.status));return[4,u.json()];case 4:return(l=e.sent()).error?[2,{ok:!1,data:null,error:l.error}]:[2,{ok:!0,data:n(l),error:null}];case 5:return d=e.sent(),console.error("getUserMeLoader Error:",d),[2,{ok:!1,data:null,error:d}];case 6:return[2]}})})}export{u as getUserMeLoader};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as o,__spreadArray as t,__read as n}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as r}from"./get-token.js";import{getStrapiURL as s}from"../../lib/utils.js";function a(a,c){return e(this,void 0,void 0,(function(){var e,i,l,u,h,d;return o(this,(function(o){switch(o.label){case 0:return[4,r()];case 1:if(e=o.sent(),i=s(),l=new URL("api/".concat(a,"/makeArchive"),i),!e)throw new Error("No auth token found");u=JSON.stringify({data:{selectedIds:t([],n(c),!1)}}),console.log("payload",u),console.log("url",l),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(l,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:u})];case 3:return h=o.sent(),console.log(h),[4,h.json()];case 4:return[2,o.sent()];case 5:throw d=o.sent(),console.log("error",d),d;case 6:return[2]}}))}))}function c(a,c){return e(this,void 0,void 0,(function(){var e,i,l,u,h,d;return o(this,(function(o){switch(o.label){case 0:return[4,r()];case 1:if(e=o.sent(),i=s(),l=new URL("api/".concat(a,"/unmakeArchive"),i),!e)throw new Error("No auth token found");u=JSON.stringify({data:{selectedIds:t([],n(c),!1)}}),console.log("payload",u),console.log("url",l),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(l,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:u})];case 3:return h=o.sent(),console.log(h),[4,h.json()];case 4:return[2,o.sent()];case 5:throw d=o.sent(),console.log("error",d),d;case 6:return[2]}}))}))}export{a as archiveService,c as unarchiveService};
7
+ import{__awaiter as e,__generator as o,__spreadArray as t,__read as n}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as r}from"./get-token.js";import{getStrapiURL as s}from"../../lib/utils.js";function a(a,c){return e(this,void 0,void 0,function(){var e,i,l,u,h,d;return o(this,function(o){switch(o.label){case 0:return[4,r()];case 1:if(e=o.sent(),i=s(),l=new URL("api/".concat(a,"/makeArchive"),i),!e)throw new Error("No auth token found");u=JSON.stringify({data:{selectedIds:t([],n(c),!1)}}),console.log("payload",u),console.log("url",l),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(l,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:u})];case 3:return h=o.sent(),console.log(h),[4,h.json()];case 4:return[2,o.sent()];case 5:throw d=o.sent(),console.log("error",d),d;case 6:return[2]}})})}function c(a,c){return e(this,void 0,void 0,function(){var e,i,l,u,h,d;return o(this,function(o){switch(o.label){case 0:return[4,r()];case 1:if(e=o.sent(),i=s(),l=new URL("api/".concat(a,"/unmakeArchive"),i),!e)throw new Error("No auth token found");u=JSON.stringify({data:{selectedIds:t([],n(c),!1)}}),console.log("payload",u),console.log("url",l),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(l,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:u})];case 3:return h=o.sent(),console.log(h),[4,h.json()];case 4:return[2,o.sent()];case 5:throw d=o.sent(),console.log("error",d),d;case 6:return[2]}})})}export{a as archiveService,c as unarchiveService};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r,__assign as n}from"../../../node_modules/tslib/tslib.es6.js";import{getStrapiURL as o}from"../../lib/utils.js";var s=o();function t(o){return e(this,void 0,void 0,(function(){var e,t,c,a;return r(this,(function(r){switch(r.label){case 0:e=new URL("/api/auth/local/register",s),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n({},o)),cache:"no-cache"})];case 2:return(t=r.sent()).ok?[3,4]:[4,t.json()];case 3:return c=r.sent(),console.error("Register Service Error:",c),[2,{error:c}];case 4:return[2,t.json()];case 5:return a=r.sent(),console.error("Registration Service Error:",a),[2,{error:a instanceof Error?a.message:"Unknown error"}];case 6:return[2]}}))}))}function c(o){return e(this,void 0,void 0,(function(){var e,t,c,a;return r(this,(function(r){switch(r.label){case 0:e=new URL("/api/auth/local",s),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n({},o)),cache:"no-cache"})];case 2:return(t=r.sent()).ok?[3,4]:[4,t.json()];case 3:return c=r.sent(),console.log("Login Error:",c),[2,{error:c}];case 4:return[2,t.json()];case 5:return a=r.sent(),console.error("Login Service Error:",a),[2,{error:a instanceof Error?a.message:"Unknown error"}];case 6:return[2]}}))}))}function a(n){return e(this,void 0,void 0,(function(){var e,o,t,c;return r(this,(function(r){switch(r.label){case 0:e=new URL("/api/auth/forgot-password",s),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 2:return o=r.sent(),console.log("Forgot Password Service Response:",o),[4,o.json()];case 3:return t=r.sent(),console.log("Forgot Password Service Result:",t),[2,t];case 4:return c=r.sent(),console.error("Error in forgotPasswordService:",c),[2,null];case 5:return[2]}}))}))}function i(n){return e(this,void 0,void 0,(function(){var e,o,t;return r(this,(function(r){switch(r.label){case 0:e=new URL("/api/auth/reset-password",s),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 2:return[4,r.sent().json()];case 3:return o=r.sent(),console.log("Reset Password Service Result:",o),[2,o];case 4:return t=r.sent(),console.error("Error in resetPasswordService:",t),[2,null];case 5:return[2]}}))}))}export{a as forgotPasswordService,c as loginUserService,t as registerUserService,i as resetPasswordService};
7
+ import{__awaiter as e,__generator as r,__assign as n}from"../../../node_modules/tslib/tslib.es6.js";import{getStrapiURL as o}from"../../lib/utils.js";var s=o();function t(o){return e(this,void 0,void 0,function(){var e,t,c,a;return r(this,function(r){switch(r.label){case 0:e=new URL("/api/auth/local/register",s),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n({},o)),cache:"no-cache"})];case 2:return(t=r.sent()).ok?[3,4]:[4,t.json()];case 3:return c=r.sent(),console.error("Register Service Error:",c),[2,{error:c}];case 4:return[2,t.json()];case 5:return a=r.sent(),console.error("Registration Service Error:",a),[2,{error:a instanceof Error?a.message:"Unknown error"}];case 6:return[2]}})})}function c(o){return e(this,void 0,void 0,function(){var e,t,c,a;return r(this,function(r){switch(r.label){case 0:e=new URL("/api/auth/local",s),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n({},o)),cache:"no-cache"})];case 2:return(t=r.sent()).ok?[3,4]:[4,t.json()];case 3:return c=r.sent(),console.log("Login Error:",c),[2,{error:c}];case 4:return[2,t.json()];case 5:return a=r.sent(),console.error("Login Service Error:",a),[2,{error:a instanceof Error?a.message:"Unknown error"}];case 6:return[2]}})})}function a(n){return e(this,void 0,void 0,function(){var e,o,t,c;return r(this,function(r){switch(r.label){case 0:e=new URL("/api/auth/forgot-password",s),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 2:return o=r.sent(),console.log("Forgot Password Service Response:",o),[4,o.json()];case 3:return t=r.sent(),console.log("Forgot Password Service Result:",t),[2,t];case 4:return c=r.sent(),console.error("Error in forgotPasswordService:",c),[2,null];case 5:return[2]}})})}function i(n){return e(this,void 0,void 0,function(){var e,o,t;return r(this,function(r){switch(r.label){case 0:e=new URL("/api/auth/reset-password",s),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 2:return[4,r.sent().json()];case 3:return o=r.sent(),console.log("Reset Password Service Result:",o),[2,o];case 4:return t=r.sent(),console.error("Error in resetPasswordService:",t),[2,null];case 5:return[2]}})})}export{a as forgotPasswordService,c as loginUserService,t as registerUserService,i as resetPasswordService};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as o,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../get-token.js";import{getStrapiURL as n}from"../../../lib/utils.js";function r(r,s,a){return o(this,void 0,void 0,(function(){var o,i,c,l,u,d;return e(this,(function(e){switch(e.label){case 0:return[4,t()];case 1:if(o=e.sent(),i=n(),c=new URL("api/".concat(r,"/cancel"),i),!o)throw new Error("No auth token found");l=JSON.stringify({data:{id:s,reason:a}}),console.log("payload",l),console.log("url",c),e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(c,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},body:l})];case 3:return u=e.sent(),console.log(u),[4,u.json()];case 4:return[2,e.sent()];case 5:throw d=e.sent(),console.log("error",d),d;case 6:return[2]}}))}))}export{r as cancellationService};
7
+ import{__awaiter as o,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../get-token.js";import{getStrapiURL as n}from"../../../lib/utils.js";function r(r,s,a){return o(this,void 0,void 0,function(){var o,i,c,l,u,d;return e(this,function(e){switch(e.label){case 0:return[4,t()];case 1:if(o=e.sent(),i=n(),c=new URL("api/".concat(r,"/cancel"),i),!o)throw new Error("No auth token found");l=JSON.stringify({data:{id:s,reason:a}}),console.log("payload",l),console.log("url",c),e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(c,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},body:l})];case 3:return u=e.sent(),console.log(u),[4,u.json()];case 4:return[2,e.sent()];case 5:throw d=e.sent(),console.log("error",d),d;case 6:return[2]}})})}export{r as cancellationService};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as o,__spreadArray as t,__read as r}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as n}from"../get-token.js";import{getStrapiURL as s}from"../../../lib/utils.js";function i(i,a){return e(this,arguments,void 0,(function(e,i,a){var c,l,u,d,f,h;return void 0===a&&(a={}),o(this,(function(o){switch(o.label){case 0:return[4,n()];case 1:if(c=o.sent(),l=s(),u=new URL("api/".concat(e,"/confirm"),l),!c)throw new Error("No auth token found");d=JSON.stringify({data:{selectedIds:t([],r(i),!1),overwrites:a}}),console.log("payload",d),console.log("url",u),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(u,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(c)},body:d})];case 3:return f=o.sent(),console.log(f),[4,f.json()];case 4:return[2,o.sent()];case 5:throw h=o.sent(),console.log("error",h),h;case 6:return[2]}}))}))}export{i as confirmationService};
7
+ import{__awaiter as e,__generator as o,__spreadArray as t,__read as r}from"../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as n}from"../get-token.js";import{getStrapiURL as s}from"../../../lib/utils.js";function i(i,a){return e(this,arguments,void 0,function(e,i,a){var c,l,u,d,f,h;return void 0===a&&(a={}),o(this,function(o){switch(o.label){case 0:return[4,n()];case 1:if(c=o.sent(),l=s(),u=new URL("api/".concat(e,"/confirm"),l),!c)throw new Error("No auth token found");d=JSON.stringify({data:{selectedIds:t([],r(i),!1),overwrites:a}}),console.log("payload",d),console.log("url",u),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,fetch(u,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(c)},body:d})];case 3:return f=o.sent(),console.log(f),[4,f.json()];case 4:return[2,o.sent()];case 5:throw h=o.sent(),console.log("error",h),h;case 6:return[2]}})})}export{i as confirmationService};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../get-token.js";import o from"../../../../../node_modules/qs/lib/index.js";import{getStrapiURL as n}from"../../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var a=n(),i=o.stringify({populate:{enduser_profile:!0}});function u(){return r(this,void 0,void 0,(function(){var r,o,n,u,l;return e(this,(function(e){switch(e.label){case 0:return s(),(r=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(u=e.sent()).error?[2,{ok:!1,data:null,error:u.error}]:[2,{ok:!0,data:u,error:null}];case 5:return l=e.sent(),console.error("getExtendedEnduserMeLoader Error:",l),[2,{ok:!1,data:null,error:l}];case 6:return[2]}}))}))}o.stringify({populate:"role"});export{u as getExtendedEnduserMeLoader};
7
+ import{__awaiter as r,__generator as e}from"../../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../get-token.js";import o from"../../../../../node_modules/qs/lib/index.js";import{getStrapiURL as n}from"../../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var a=n(),i=o.stringify({populate:{enduser_profile:!0}});function u(){return r(this,void 0,void 0,function(){var r,o,n,u,l;return e(this,function(e){switch(e.label){case 0:return s(),(r=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(u=e.sent()).error?[2,{ok:!1,data:null,error:u.error}]:[2,{ok:!0,data:u,error:null}];case 5:return l=e.sent(),console.error("getExtendedEnduserMeLoader Error:",l),[2,{ok:!1,data:null,error:l}];case 6:return[2]}})})}o.stringify({populate:"role"});export{u as getExtendedEnduserMeLoader};
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{__awaiter as e,__generator as r}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"./get-token.js";import{getStrapiURL as n}from"../../lib/utils.js";function o(o){return e(this,void 0,void 0,(function(){var e,s,a,i;return r(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:if(!(e=r.sent()))throw new Error("No auth token found");s=n(),a=new URL("/api/upload",s),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(a,{headers:{Authorization:"Bearer ".concat(e)},method:"POST",body:o})];case 3:return[4,r.sent().json()];case 4:return[2,r.sent()];case 5:throw i=r.sent(),console.error("Error uploading image:",i),i;case 6:return[2]}}))}))}function s(o,s){return e(this,void 0,void 0,(function(){var e,a,i,u,c;return r(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:if(!(e=r.sent()))throw new Error("No auth token found");a=n(),i=new URL("/api/upload?id=".concat(s),a),(u=new FormData).append("fileInfo",JSON.stringify(o)),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(i,{method:"POST",headers:{Authorization:"Bearer ".concat(e)},body:u})];case 3:return[4,r.sent().json()];case 4:return[2,r.sent()];case 5:throw c=r.sent(),console.error("Error updating image:",c),c;case 6:return[2]}}))}))}export{s as fileUpdateService,o as fileUploadService};
6
+ import{__awaiter as e,__generator as r}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"./get-token.js";import{getStrapiURL as n}from"../../lib/utils.js";function o(o){return e(this,void 0,void 0,function(){var e,s,a,i;return r(this,function(r){switch(r.label){case 0:return[4,t()];case 1:if(!(e=r.sent()))throw new Error("No auth token found");s=n(),a=new URL("/api/upload",s),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(a,{headers:{Authorization:"Bearer ".concat(e)},method:"POST",body:o})];case 3:return[4,r.sent().json()];case 4:return[2,r.sent()];case 5:throw i=r.sent(),console.error("Error uploading image:",i),i;case 6:return[2]}})})}function s(o,s){return e(this,void 0,void 0,function(){var e,a,i,u,c;return r(this,function(r){switch(r.label){case 0:return[4,t()];case 1:if(!(e=r.sent()))throw new Error("No auth token found");a=n(),i=new URL("/api/upload?id=".concat(s),a),(u=new FormData).append("fileInfo",JSON.stringify(o)),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(i,{method:"POST",headers:{Authorization:"Bearer ".concat(e)},body:u})];case 3:return[4,r.sent().json()];case 4:return[2,r.sent()];case 5:throw c=r.sent(),console.error("Error updating image:",c),c;case 6:return[2]}})})}export{s as fileUpdateService,o as fileUploadService};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as t,__generator as n}from"../../../node_modules/tslib/tslib.es6.js";import{cookies as o}from"next/headers";function i(){return t(this,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){return t=o(),[2,null!=(i=null===(r=t.get("jwt"))||void 0===r?void 0:r.value)?i:null]}))}))}export{i as getAuthToken};
7
+ import{__awaiter as t,__generator as n}from"../../../node_modules/tslib/tslib.es6.js";import{cookies as o}from"next/headers";function i(){return t(this,void 0,void 0,function(){var t,i,r;return n(this,function(n){return t=o(),[2,null!=(i=null===(r=t.get("jwt"))||void 0===r?void 0:r.value)?i:null]})})}export{i as getAuthToken};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as r,__generator as e}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"./get-token.js";import o from"../../../node_modules/qs/lib/index.js";import{getStrapiURL as n}from"../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var a=n(),i=o.stringify({populate:{customer_profile:{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:{populate:{vat_validate_response:!0,eori_validate_response:!0}},orders:{populate:{opo_items:{populate:{product:{populate:{price:!0,image:!0}}}}}},returns:{populate:{iro_items:{populate:{product:{populate:{price:!0,image:!0}}}}}}}}}}),u=o.stringify({populate:"role"});function c(){return r(this,void 0,void 0,(function(){var r,o,n,u,c;return e(this,(function(e){switch(e.label){case 0:return s(),(r=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(u=e.sent()).error?[2,{ok:!1,data:null,error:u.error}]:[2,{ok:!0,data:u,error:null}];case 5:return c=e.sent(),console.error("getExtendedUserMeLoader Error:",c),[2,{ok:!1,data:null,error:c}];case 6:return[2]}}))}))}function l(t){return r(this,void 0,void 0,(function(){var r,o,n;return e(this,(function(e){switch(e.label){case 0:(r=new URL("/api/users/me",a)).search=i,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}})];case 2:if(!(o=e.sent()).ok)throw new Error("HTTP error! status: ".concat(o.status));if(o.ok)return[2,o.json()];throw new Error("Failed to fetch user details");case 3:return n=e.sent(),console.error("getUserMeLoader Error:",n),[2,null];case 4:return[2]}}))}))}function p(){return r(this,void 0,void 0,(function(){var r,o,n,s,i;return e(this,(function(e){switch(e.label){case 0:return(r=new URL("/api/users/me",a)).search=u,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(s=e.sent()).error?[2,{ok:!1,data:null,error:s.error}]:[2,{ok:!0,data:s,error:null}];case 5:return i=e.sent(),console.error("getUserRole Error:",i),[2,{ok:!1,data:null,error:i}];case 6:return[2]}}))}))}export{c as getExtendedUserMeLoader,l as getUserMeLoader,p as getUserRole};
7
+ import{__awaiter as r,__generator as e}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"./get-token.js";import o from"../../../node_modules/qs/lib/index.js";import{getStrapiURL as n}from"../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var a=n(),i=o.stringify({populate:{customer_profile:{populate:{company_address:!0,delivery_address:!0,billing_address:!0,business_credentials:{populate:{vat_validate_response:!0,eori_validate_response:!0}},orders:{populate:{opo_items:{populate:{product:{populate:{price:!0,image:!0}}}}}},returns:{populate:{iro_items:{populate:{product:{populate:{price:!0,image:!0}}}}}}}}}}),u=o.stringify({populate:"role"});function c(){return r(this,void 0,void 0,function(){var r,o,n,u,c;return e(this,function(e){switch(e.label){case 0:return s(),(r=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(u=e.sent()).error?[2,{ok:!1,data:null,error:u.error}]:[2,{ok:!0,data:u,error:null}];case 5:return c=e.sent(),console.error("getExtendedUserMeLoader Error:",c),[2,{ok:!1,data:null,error:c}];case 6:return[2]}})})}function l(t){return r(this,void 0,void 0,function(){var r,o,n;return e(this,function(e){switch(e.label){case 0:(r=new URL("/api/users/me",a)).search=i,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}})];case 2:if(!(o=e.sent()).ok)throw new Error("HTTP error! status: ".concat(o.status));if(o.ok)return[2,o.json()];throw new Error("Failed to fetch user details");case 3:return n=e.sent(),console.error("getUserMeLoader Error:",n),[2,null];case 4:return[2]}})})}function p(){return r(this,void 0,void 0,function(){var r,o,n,s,i;return e(this,function(e){switch(e.label){case 0:return(r=new URL("/api/users/me",a)).search=u,[4,t()];case 1:if(!(o=e.sent()))return[2,{ok:!1,data:null,error:null}];e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(r.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(n=e.sent()).ok)throw new Error("HTTP error! status: ".concat(n.status));return[4,n.json()];case 4:return(s=e.sent()).error?[2,{ok:!1,data:null,error:s.error}]:[2,{ok:!0,data:s,error:null}];case 5:return i=e.sent(),console.error("getUserRole Error:",i),[2,{ok:!1,data:null,error:i}];case 6:return[2]}})})}export{c as getExtendedUserMeLoader,l as getUserMeLoader,p as getUserRole};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as e,__generator as r}from"../../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../get-token.js";import o from"../../../../../node_modules/qs/lib/index.js";import{getStrapiURL as s}from"../../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";var a=s(),i=o.stringify({populate:{dispatcher_profile:{populate:{company_address:!0,business_credentials:{populate:{vat_validate_response:!0,eori_validate_response:!0}}}}}});function l(){return e(this,void 0,void 0,(function(){var e,o,s,l,u;return r(this,(function(r){switch(r.label){case 0:return n(),(e=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=r.sent()))return[2,{ok:!1,data:null,error:null}];r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(s=r.sent()).ok)throw new Error("HTTP error! status: ".concat(s.status));return[4,s.json()];case 4:return(l=r.sent()).error?[2,{ok:!1,data:null,error:l.error}]:[2,{ok:!0,data:l,error:null}];case 5:return u=r.sent(),console.error("getExtendedDispatcherMeLoader Error:",u),[2,{ok:!1,data:null,error:u}];case 6:return[2]}}))}))}o.stringify({populate:"role"});export{l as getExtendedDispatcherMeLoader};
7
+ import{__awaiter as e,__generator as r}from"../../../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as t}from"../../get-token.js";import o from"../../../../../node_modules/qs/lib/index.js";import{getStrapiURL as s}from"../../../../lib/utils.js";import{unstable_noStore as n}from"next/cache";var a=s(),i=o.stringify({populate:{dispatcher_profile:{populate:{company_address:!0,business_credentials:{populate:{vat_validate_response:!0,eori_validate_response:!0}}}}}});function l(){return e(this,void 0,void 0,function(){var e,o,s,l,u;return r(this,function(r){switch(r.label){case 0:return n(),(e=new URL("/api/users/me",a)).search=i,[4,t()];case 1:if(!(o=r.sent()))return[2,{ok:!1,data:null,error:null}];r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(e.href,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},cache:"no-cache"})];case 3:if(!(s=r.sent()).ok)throw new Error("HTTP error! status: ".concat(s.status));return[4,s.json()];case 4:return(l=r.sent()).error?[2,{ok:!1,data:null,error:l.error}]:[2,{ok:!0,data:l,error:null}];case 5:return u=r.sent(),console.error("getExtendedDispatcherMeLoader Error:",u),[2,{ok:!1,data:null,error:u}];case 6:return[2]}})})}o.stringify({populate:"role"});export{l as getExtendedDispatcherMeLoader};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as t,__generator as e,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as o}from"./get-token.js";import{getStrapiURL as n}from"../../lib/utils.js";function s(s,i,a){return t(this,void 0,void 0,(function(){var t,c,u,l;return e(this,(function(e){switch(e.label){case 0:return[4,o()];case 1:if(t=e.sent(),c=n(),u=new URL(i,c),!t)throw new Error("No auth token found");e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(u,{method:s,headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify(r({},a))})];case 3:return[4,e.sent().json()];case 4:return[2,e.sent()];case 5:throw l=e.sent(),console.log("error",l),l;case 6:return[2]}}))}))}export{s as mutateData};
7
+ import{__awaiter as t,__generator as e,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import{getAuthToken as o}from"./get-token.js";import{getStrapiURL as n}from"../../lib/utils.js";function s(s,i,a){return t(this,void 0,void 0,function(){var t,c,u,l;return e(this,function(e){switch(e.label){case 0:return[4,o()];case 1:if(t=e.sent(),c=n(),u=new URL(i,c),!t)throw new Error("No auth token found");e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(u,{method:s,headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify(r({},a))})];case 3:return[4,e.sent().json()];case 4:return[2,e.sent()];case 5:throw l=e.sent(),console.log("error",l),l;case 6:return[2]}})})}export{s as mutateData};