vviinn-widgets 2.7.2 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/components/Handler.js +270 -0
  2. package/dist/components/NonEmptyArray.js +5699 -0
  3. package/dist/components/cropper-handler.js +6 -0
  4. package/dist/components/cropper-handler2.js +39 -0
  5. package/dist/{cjs/customized-slots-06ca4007.js → components/customized-slots.js} +3 -6
  6. package/dist/components/highlight-box.js +6 -0
  7. package/dist/components/highlight-box2.js +52 -0
  8. package/dist/components/image-cropper.js +6 -0
  9. package/dist/components/image-cropper2.js +138 -0
  10. package/dist/components/imageSearch.store.js +10686 -0
  11. package/dist/components/index.js +1 -0
  12. package/dist/{esm/index-443468c7.js → components/index2.js} +2 -2
  13. package/dist/components/index3.js +130 -0
  14. package/dist/components/recommendations-sidebar.js +101 -0
  15. package/dist/components/resizer.worker.js +11 -0
  16. package/dist/components/search-filters.js +6 -0
  17. package/dist/components/search-filters2.js +89 -0
  18. package/dist/components/tracking.worker.js +11 -0
  19. package/dist/components/vviinn-carousel.js +6 -0
  20. package/dist/components/vviinn-carousel2.js +235 -0
  21. package/dist/components/vviinn-detected-object.js +6 -0
  22. package/dist/components/vviinn-detected-object2.js +67 -0
  23. package/dist/components/vviinn-empty-results.js +6 -0
  24. package/dist/components/vviinn-empty-results2.js +35 -0
  25. package/dist/components/vviinn-error.js +6 -0
  26. package/dist/components/vviinn-error2.js +28 -0
  27. package/dist/components/vviinn-example-image.js +6 -0
  28. package/dist/components/vviinn-example-image2.js +57 -0
  29. package/dist/components/vviinn-example-images.js +6 -0
  30. package/dist/components/vviinn-example-images2.js +53 -0
  31. package/dist/components/vviinn-image-selector.js +6 -0
  32. package/dist/components/vviinn-image-selector2.js +135 -0
  33. package/dist/components/vviinn-image-view.js +6 -0
  34. package/dist/components/vviinn-image-view2.js +95 -0
  35. package/dist/components/vviinn-modal.js +6 -0
  36. package/dist/components/vviinn-modal2.js +46 -0
  37. package/dist/components/vviinn-onboarding-card-1.js +6 -0
  38. package/dist/components/vviinn-onboarding-card-12.js +34 -0
  39. package/dist/components/vviinn-onboarding-card-2.js +6 -0
  40. package/dist/components/vviinn-onboarding-card-22.js +34 -0
  41. package/dist/components/vviinn-onboarding-card-3.js +6 -0
  42. package/dist/components/vviinn-onboarding-card-32.js +34 -0
  43. package/dist/components/vviinn-onboarding.js +6 -0
  44. package/dist/components/vviinn-onboarding2.js +63 -0
  45. package/dist/components/vviinn-overlay.js +6 -0
  46. package/dist/components/vviinn-overlay2.js +28 -0
  47. package/dist/components/vviinn-overlayed-modal.js +6 -0
  48. package/dist/components/vviinn-overlayed-modal2.js +45 -0
  49. package/dist/components/vviinn-preloader.js +6 -0
  50. package/dist/components/vviinn-preloader2.js +34 -0
  51. package/dist/components/vviinn-privacy-badge.js +6 -0
  52. package/dist/components/vviinn-privacy-badge2.js +33 -0
  53. package/dist/components/vviinn-product-card.js +6 -0
  54. package/dist/components/vviinn-product-card2.js +216 -0
  55. package/dist/components/vviinn-recommendations-sidebar.js +6 -0
  56. package/dist/components/vviinn-server-error.js +6 -0
  57. package/dist/components/vviinn-server-error2.js +35 -0
  58. package/dist/components/vviinn-slide.js +6 -0
  59. package/dist/components/vviinn-slide2.js +28 -0
  60. package/dist/components/vviinn-slider.js +6 -0
  61. package/dist/components/vviinn-slider2.js +159 -0
  62. package/dist/components/vviinn-teaser.js +6 -0
  63. package/dist/components/vviinn-teaser2.js +33 -0
  64. package/dist/components/vviinn-vpr-button.js +93 -0
  65. package/dist/components/vviinn-vpr-vidget.js +3360 -0
  66. package/dist/components/vviinn-vpr-widget.js +6 -0
  67. package/dist/components/vviinn-vps-button.js +224 -0
  68. package/dist/components/vviinn-vps-widget.js +6 -0
  69. package/dist/components/vviinn-vps-widget2.js +350 -0
  70. package/dist/components/vviinn-wrong-format.js +6 -0
  71. package/dist/components/vviinn-wrong-format2.js +35 -0
  72. package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -0
  73. package/dist/types/components/vviinn-vpr-button/stories/lol.d.ts +2 -0
  74. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -1
  75. package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
  76. package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
  77. package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
  78. package/dist/{esm/app-globals-865bc7a7.js → vviinn-widgets/app-globals-c0aa8ec3.js} +922 -10
  79. package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
  80. package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
  81. package/dist/{esm/customized-slots-96902edf.js → vviinn-widgets/customized-slots-5c1c623a.js} +1 -1
  82. package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
  83. package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
  84. package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
  85. package/dist/{cjs/index-df6896e2.js → vviinn-widgets/imageSearch.store-0eed9a5c.js} +11598 -15320
  86. package/dist/{esm/index-2fdd499d.js → vviinn-widgets/imageSearch.store-b28bddb0.js} +11971 -15281
  87. package/dist/{collection/components/vviinn-icons/index.js → vviinn-widgets/index-44058ea2.js} +14 -11
  88. package/dist/vviinn-widgets/index-6c6de682.js +3857 -0
  89. package/dist/vviinn-widgets/index-de3e14da.js +3010 -0
  90. package/dist/vviinn-widgets/index.esm.js +1 -0
  91. package/dist/vviinn-widgets/number-171db649.js +1499 -0
  92. package/dist/vviinn-widgets/search-filters.entry.js +76 -0
  93. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
  94. package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
  95. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
  96. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
  97. package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
  98. package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
  99. package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
  100. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
  101. package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
  102. package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
  103. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
  104. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
  105. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
  106. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
  107. package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
  108. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
  109. package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
  110. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
  111. package/dist/vviinn-widgets/vviinn-product-card.entry.js +188 -0
  112. package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +2 -2
  113. package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
  114. package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
  115. package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
  116. package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
  117. package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +2 -2
  118. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
  119. package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
  120. package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +170 -0
  121. package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
  122. package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
  123. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
  124. package/package.json +8 -2
  125. package/www/build/p-06c76b5e.js +1 -0
  126. package/www/build/p-07e16d04.js +15 -0
  127. package/{dist/vviinn-widgets/p-a6e0710f.entry.js → www/build/p-44bc50de.entry.js} +1 -1
  128. package/www/build/p-510922c6.js +1 -0
  129. package/www/build/p-57ce8de3.css +1 -0
  130. package/www/build/p-591cb193.entry.js +1 -0
  131. package/www/build/p-6b9d242e.js +1 -0
  132. package/www/build/p-880bccf1.js +1 -0
  133. package/www/build/p-b0ada114.entry.js +1 -0
  134. package/www/build/p-b7be7c70.entry.js +1 -0
  135. package/{dist/vviinn-widgets/p-166970f3.js → www/build/p-ea8dea5c.js} +1 -1
  136. package/www/build/vviinn-widgets.css +1 -1
  137. package/www/build/vviinn-widgets.esm.js +1 -1
  138. package/www/index.html +32261 -1
  139. package/www/sw.js +66 -0
  140. package/dist/cjs/app-globals-8db3bcbe.js +0 -6912
  141. package/dist/cjs/cropper-handler_27.cjs.entry.js +0 -1135
  142. package/dist/cjs/index-3c3ab815.js +0 -1354
  143. package/dist/cjs/index-f66cd8d1.js +0 -39
  144. package/dist/cjs/index.cjs.js +0 -2
  145. package/dist/cjs/loader.cjs.js +0 -23
  146. package/dist/cjs/vviinn-carousel_2.cjs.entry.js +0 -1001
  147. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +0 -65
  148. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +0 -49
  149. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
  150. package/dist/cjs/vviinn-widgets.cjs.js +0 -21
  151. package/dist/collection/Image/error.js +0 -14
  152. package/dist/collection/Image/form.js +0 -5
  153. package/dist/collection/Image/fromFile.js +0 -18
  154. package/dist/collection/Image/imageToB64.js +0 -9
  155. package/dist/collection/Image/index.js +0 -0
  156. package/dist/collection/Image/renderPromise.js +0 -6
  157. package/dist/collection/Image/resizeImage.js +0 -28
  158. package/dist/collection/Image/sizing.js +0 -39
  159. package/dist/collection/Image/toFile.js +0 -17
  160. package/dist/collection/analytics/GAnalytics.js +0 -32
  161. package/dist/collection/analytics/GeneralAnalytics.js +0 -9
  162. package/dist/collection/analytics/GtagAnalytics.js +0 -35
  163. package/dist/collection/analytics/ProductAnalytics.js +0 -1
  164. package/dist/collection/campaign/Campaign.js +0 -8
  165. package/dist/collection/campaign/CampaignService.js +0 -5
  166. package/dist/collection/campaign/VCSCampaign.js +0 -1
  167. package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
  168. package/dist/collection/campaign/VCSCampaignService.js +0 -7
  169. package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
  170. package/dist/collection/campaign/VPRCampaignService.js +0 -7
  171. package/dist/collection/collection-manifest.json +0 -43
  172. package/dist/collection/components/customized-slots.js +0 -47
  173. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
  174. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
  175. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
  176. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
  177. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
  178. package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
  179. package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
  180. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
  181. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
  182. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
  183. package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
  184. package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
  185. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
  186. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
  187. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
  188. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
  189. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
  190. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
  191. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
  192. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
  193. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
  194. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
  195. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
  196. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
  197. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
  198. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
  199. package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
  200. package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
  201. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
  202. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
  203. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
  204. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
  205. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
  206. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
  207. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
  208. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
  209. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
  210. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
  211. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
  212. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
  213. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
  214. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
  215. package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
  216. package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
  217. package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
  218. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
  219. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
  220. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
  221. package/dist/collection/components/vviinn-slider/arrow.js +0 -11
  222. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
  223. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
  224. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
  225. package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
  226. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
  227. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
  228. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
  229. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -220
  230. package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -213
  231. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -91
  232. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
  233. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -179
  234. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -197
  235. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
  236. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -211
  237. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
  238. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -510
  239. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
  240. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -35
  241. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
  242. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -195
  243. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -37
  244. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
  245. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -375
  246. package/dist/collection/cropper/Cropper.js +0 -1
  247. package/dist/collection/cropper/Handler.js +0 -61
  248. package/dist/collection/dom/index.js +0 -3
  249. package/dist/collection/error.js +0 -14
  250. package/dist/collection/file/index.js +0 -4
  251. package/dist/collection/geometry/Clip.js +0 -14
  252. package/dist/collection/geometry/Point.js +0 -32
  253. package/dist/collection/geometry/Rectangle.js +0 -95
  254. package/dist/collection/geometry/RectangleAlt.js +0 -1
  255. package/dist/collection/geometry/Sized.js +0 -8
  256. package/dist/collection/global.js +0 -19
  257. package/dist/collection/index.js +0 -1
  258. package/dist/collection/interfaces/generated.js +0 -5
  259. package/dist/collection/interfaces/recommendation.js +0 -1
  260. package/dist/collection/network/apiClient.js +0 -9
  261. package/dist/collection/network/ion/File.js +0 -14
  262. package/dist/collection/network/ion/Form.js +0 -64
  263. package/dist/collection/network/ion/Link.js +0 -8
  264. package/dist/collection/network/ion/ValueObject.js +0 -23
  265. package/dist/collection/network/request.js +0 -19
  266. package/dist/collection/network/utils.js +0 -37
  267. package/dist/collection/openApi/index.js +0 -27
  268. package/dist/collection/recommendation/events.js +0 -1
  269. package/dist/collection/recommendation/recommendation.js +0 -1
  270. package/dist/collection/searchSession/searchSession.js +0 -31
  271. package/dist/collection/sentry.js +0 -14
  272. package/dist/collection/slider/GridMode.js +0 -1
  273. package/dist/collection/store/file-processing.js +0 -13
  274. package/dist/collection/store/imageSearch.store.js +0 -133
  275. package/dist/collection/store/store.js +0 -3
  276. package/dist/collection/store/tracking.store.js +0 -3
  277. package/dist/collection/stories/Button.js +0 -21
  278. package/dist/collection/stories/Button.stories.js +0 -42
  279. package/dist/collection/stories/Header.js +0 -45
  280. package/dist/collection/stories/Header.stories.js +0 -15
  281. package/dist/collection/stories/Page.js +0 -61
  282. package/dist/collection/stories/Page.stories.js +0 -19
  283. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  284. package/dist/collection/stories/assets/colors.svg +0 -1
  285. package/dist/collection/stories/assets/comments.svg +0 -1
  286. package/dist/collection/stories/assets/direction.svg +0 -1
  287. package/dist/collection/stories/assets/flow.svg +0 -1
  288. package/dist/collection/stories/assets/plugin.svg +0 -1
  289. package/dist/collection/stories/assets/repo.svg +0 -1
  290. package/dist/collection/stories/assets/stackalt.svg +0 -1
  291. package/dist/collection/stories/image-selector.stories.js +0 -6
  292. package/dist/collection/stories/image-view.stories.js +0 -6
  293. package/dist/collection/stories/modal.stories.js +0 -12
  294. package/dist/collection/stories/onboarding.stories.js +0 -11
  295. package/dist/collection/stories/overlay.stories.js +0 -5
  296. package/dist/collection/stories/overlayedModal.stories.js +0 -8
  297. package/dist/collection/stories/privacy-badge.stories.js +0 -11
  298. package/dist/collection/stories/slider.stories.js +0 -17
  299. package/dist/collection/stories/teaser.stories.js +0 -5
  300. package/dist/collection/stories/vps-widget.stories.js +0 -47
  301. package/dist/collection/stories/vviinn-product.stories.js +0 -19
  302. package/dist/collection/tracking/event.js +0 -3
  303. package/dist/collection/tracking/filter.js +0 -5
  304. package/dist/collection/tracking/index.js +0 -13
  305. package/dist/collection/tracking/models.js +0 -6
  306. package/dist/collection/tracking/product.js +0 -18
  307. package/dist/collection/tracking/search.js +0 -5
  308. package/dist/collection/tracking/widget.js +0 -10
  309. package/dist/collection/utils/collections/collectionsUtils.js +0 -5
  310. package/dist/collection/utils/either.js +0 -3
  311. package/dist/collection/utils/enum/enumUtils.js +0 -3
  312. package/dist/collection/utils/event/Events.js +0 -1
  313. package/dist/collection/utils/number/index.js +0 -4
  314. package/dist/collection/utils/option/option.js +0 -4
  315. package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
  316. package/dist/collection/utils/token/tokenUtils.js +0 -9
  317. package/dist/esm/cropper-handler_27.entry.js +0 -1105
  318. package/dist/esm/index-51f71d18.js +0 -1323
  319. package/dist/esm/index.js +0 -1
  320. package/dist/esm/loader.js +0 -19
  321. package/dist/esm/polyfills/core-js.js +0 -11
  322. package/dist/esm/polyfills/css-shim.js +0 -1
  323. package/dist/esm/polyfills/dom.js +0 -79
  324. package/dist/esm/polyfills/es5-html-element.js +0 -1
  325. package/dist/esm/polyfills/index.js +0 -34
  326. package/dist/esm/polyfills/system.js +0 -6
  327. package/dist/esm/vviinn-carousel_2.entry.js +0 -996
  328. package/dist/esm/vviinn-widgets.js +0 -19
  329. package/dist/index.cjs.js +0 -1
  330. package/dist/index.js +0 -1
  331. package/dist/loader/cdn.js +0 -3
  332. package/dist/loader/index.cjs.js +0 -3
  333. package/dist/loader/index.d.ts +0 -12
  334. package/dist/loader/index.es2017.js +0 -3
  335. package/dist/loader/index.js +0 -4
  336. package/dist/loader/package.json +0 -10
  337. package/dist/vviinn-widgets/p-2dd35f19.entry.js +0 -1
  338. package/dist/vviinn-widgets/p-3469b71a.js +0 -1
  339. package/dist/vviinn-widgets/p-40bea5b5.entry.js +0 -1
  340. package/dist/vviinn-widgets/p-465d043d.js +0 -15
  341. package/dist/vviinn-widgets/p-59bd2a99.js +0 -1
  342. package/dist/vviinn-widgets/p-74ed36af.entry.js +0 -1
  343. package/dist/vviinn-widgets/p-9def6b8b.entry.js +0 -1
  344. package/dist/vviinn-widgets/p-cd995515.js +0 -1
  345. package/www/build/p-166970f3.js +0 -1
  346. package/www/build/p-2dd35f19.entry.js +0 -1
  347. package/www/build/p-3469b71a.js +0 -1
  348. package/www/build/p-40bea5b5.entry.js +0 -1
  349. package/www/build/p-465d043d.js +0 -15
  350. package/www/build/p-59bd2a99.js +0 -1
  351. package/www/build/p-61933b75.js +0 -1
  352. package/www/build/p-74ed36af.entry.js +0 -1
  353. package/www/build/p-9def6b8b.entry.js +0 -1
  354. package/www/build/p-a67898be.css +0 -1
  355. package/www/build/p-a6e0710f.entry.js +0 -1
  356. package/www/build/p-cd995515.js +0 -1
  357. package/www/favicon.ico +0 -0
@@ -0,0 +1,3360 @@
1
+ import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
2
+ import { _ as _function, a as commonjsGlobal, c as createCommonjsModule, g as checkEmpryString } from './NonEmptyArray.js';
3
+ import { o as chainW, p as makeRequest, q as fromEither, r as getApiPath, u as createInitGetRequest, A as Apply, v as map, w as match, S as Subject, s as state, T as TaskEither, E as Either, i as imageSearchState } from './imageSearch.store.js';
4
+ import { q as has$1, t as tuple, p as pipe } from './Handler.js';
5
+ import { c as createProductViewVprEvent, a as createProductClickVprEvent, v as v4, b as createWidgetVprEvent } from './index3.js';
6
+ import { d as defineCustomElement$2 } from './vviinn-carousel2.js';
7
+ import { d as defineCustomElement$1 } from './vviinn-product-card2.js';
8
+
9
+ function curried(f, n, acc) {
10
+ return function (x) {
11
+ var combined = Array(acc.length + 1);
12
+ for (var i = 0; i < acc.length; i++) {
13
+ combined[i] = acc[i];
14
+ }
15
+ combined[acc.length] = x;
16
+ return n === 0 ? f.apply(null, combined) : curried(f, n - 1, combined);
17
+ };
18
+ }
19
+ var tupleConstructors = {
20
+ 1: function (a) { return [a]; },
21
+ 2: function (a) { return function (b) { return [a, b]; }; },
22
+ 3: function (a) { return function (b) { return function (c) { return [a, b, c]; }; }; },
23
+ 4: function (a) { return function (b) { return function (c) { return function (d) { return [a, b, c, d]; }; }; }; },
24
+ 5: function (a) { return function (b) { return function (c) { return function (d) { return function (e) { return [a, b, c, d, e]; }; }; }; }; }
25
+ };
26
+ function getTupleConstructor(len) {
27
+ if (!has$1.call(tupleConstructors, len)) {
28
+ tupleConstructors[len] = curried(tuple, len - 1, []);
29
+ }
30
+ return tupleConstructors[len];
31
+ }
32
+ function sequenceT(F) {
33
+ return function () {
34
+ var args = [];
35
+ for (var _i = 0; _i < arguments.length; _i++) {
36
+ args[_i] = arguments[_i];
37
+ }
38
+ var len = args.length;
39
+ var f = getTupleConstructor(len);
40
+ var fas = F.map(args[0], f);
41
+ for (var i = 1; i < len; i++) {
42
+ fas = F.ap(fas, args[i]);
43
+ }
44
+ return fas;
45
+ };
46
+ }
47
+
48
+ const createBearerString = (x) => `Bearer ${x}`;
49
+ const createAuthedHeader = (x) => new Headers({
50
+ Authorization: x,
51
+ });
52
+ const createFetchAuthOptions = (x) => {
53
+ return {
54
+ headers: x,
55
+ };
56
+ };
57
+ const createBearAuthedHeader = _function.flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
58
+
59
+ const isVPR = (c) => c._tag === "VPR";
60
+ function fold(onVPR, onVCS) {
61
+ return (c) => (isVPR(c) ? onVPR() : onVCS());
62
+ }
63
+ function fromString(s) {
64
+ return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
65
+ }
66
+
67
+ const sequenceToEither = sequenceT(Apply);
68
+ const apiGet = (path, data = {}) => pipe(sequenceToEither(getApiPath(), createInitGetRequest), fromEither, chainW(makeRequest(path, data)));
69
+
70
+ const getVPRRecommendations = (productId) => (campaigns) => (options) => {
71
+ const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => `product/${productId}/similar-products`, (encodedCampaignsIds) => `product/${productId}/similar-products?campaigns=${encodedCampaignsIds}`));
72
+ return apiGet(url, options);
73
+ };
74
+
75
+ const getVCSRecommendations = (productId) => (campaigns) => (options) => {
76
+ const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => `product/${productId}/cross-selling-products`, (encodedCampaignsIds) => `product/${productId}/cross-selling-products?campaigns=${encodedCampaignsIds}`));
77
+ return apiGet(url, options);
78
+ };
79
+
80
+ const getRecommendationsService = (campaignType) => _function.pipe(fromString(campaignType), fold(() => getVPRRecommendations, () => getVCSRecommendations));
81
+
82
+ /**
83
+ * Check if we're required to add a port number.
84
+ *
85
+ * @see https://url.spec.whatwg.org/#default-port
86
+ * @param {Number|String} port Port number we need to check
87
+ * @param {String} protocol Protocol we need to check against.
88
+ * @returns {Boolean} Is it a default port for the given protocol
89
+ * @api private
90
+ */
91
+ var requiresPort = function required(port, protocol) {
92
+ protocol = protocol.split(':')[0];
93
+ port = +port;
94
+
95
+ if (!port) return false;
96
+
97
+ switch (protocol) {
98
+ case 'http':
99
+ case 'ws':
100
+ return port !== 80;
101
+
102
+ case 'https':
103
+ case 'wss':
104
+ return port !== 443;
105
+
106
+ case 'ftp':
107
+ return port !== 21;
108
+
109
+ case 'gopher':
110
+ return port !== 70;
111
+
112
+ case 'file':
113
+ return false;
114
+ }
115
+
116
+ return port !== 0;
117
+ };
118
+
119
+ var has = Object.prototype.hasOwnProperty
120
+ , undef;
121
+
122
+ /**
123
+ * Decode a URI encoded string.
124
+ *
125
+ * @param {String} input The URI encoded string.
126
+ * @returns {String|Null} The decoded string.
127
+ * @api private
128
+ */
129
+ function decode$1(input) {
130
+ try {
131
+ return decodeURIComponent(input.replace(/\+/g, ' '));
132
+ } catch (e) {
133
+ return null;
134
+ }
135
+ }
136
+
137
+ /**
138
+ * Attempts to encode a given input.
139
+ *
140
+ * @param {String} input The string that needs to be encoded.
141
+ * @returns {String|Null} The encoded string.
142
+ * @api private
143
+ */
144
+ function encode(input) {
145
+ try {
146
+ return encodeURIComponent(input);
147
+ } catch (e) {
148
+ return null;
149
+ }
150
+ }
151
+
152
+ /**
153
+ * Simple query string parser.
154
+ *
155
+ * @param {String} query The query string that needs to be parsed.
156
+ * @returns {Object}
157
+ * @api public
158
+ */
159
+ function querystring(query) {
160
+ var parser = /([^=?#&]+)=?([^&]*)/g
161
+ , result = {}
162
+ , part;
163
+
164
+ while (part = parser.exec(query)) {
165
+ var key = decode$1(part[1])
166
+ , value = decode$1(part[2]);
167
+
168
+ //
169
+ // Prevent overriding of existing properties. This ensures that build-in
170
+ // methods like `toString` or __proto__ are not overriden by malicious
171
+ // querystrings.
172
+ //
173
+ // In the case if failed decoding, we want to omit the key/value pairs
174
+ // from the result.
175
+ //
176
+ if (key === null || value === null || key in result) continue;
177
+ result[key] = value;
178
+ }
179
+
180
+ return result;
181
+ }
182
+
183
+ /**
184
+ * Transform a query string to an object.
185
+ *
186
+ * @param {Object} obj Object that should be transformed.
187
+ * @param {String} prefix Optional prefix.
188
+ * @returns {String}
189
+ * @api public
190
+ */
191
+ function querystringify(obj, prefix) {
192
+ prefix = prefix || '';
193
+
194
+ var pairs = []
195
+ , value
196
+ , key;
197
+
198
+ //
199
+ // Optionally prefix with a '?' if needed
200
+ //
201
+ if ('string' !== typeof prefix) prefix = '?';
202
+
203
+ for (key in obj) {
204
+ if (has.call(obj, key)) {
205
+ value = obj[key];
206
+
207
+ //
208
+ // Edge cases where we actually want to encode the value to an empty
209
+ // string instead of the stringified value.
210
+ //
211
+ if (!value && (value === null || value === undef || isNaN(value))) {
212
+ value = '';
213
+ }
214
+
215
+ key = encode(key);
216
+ value = encode(value);
217
+
218
+ //
219
+ // If we failed to encode the strings, we should bail out as we don't
220
+ // want to add invalid strings to the query.
221
+ //
222
+ if (key === null || value === null) continue;
223
+ pairs.push(key +'='+ value);
224
+ }
225
+ }
226
+
227
+ return pairs.length ? prefix + pairs.join('&') : '';
228
+ }
229
+
230
+ //
231
+ // Expose the module.
232
+ //
233
+ var stringify = querystringify;
234
+ var parse = querystring;
235
+
236
+ var querystringify_1 = {
237
+ stringify: stringify,
238
+ parse: parse
239
+ };
240
+
241
+ var controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
242
+ , CRHTLF = /[\n\r\t]/g
243
+ , slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//
244
+ , port = /:\d+$/
245
+ , protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i
246
+ , windowsDriveLetter = /^[a-zA-Z]:/;
247
+
248
+ /**
249
+ * Remove control characters and whitespace from the beginning of a string.
250
+ *
251
+ * @param {Object|String} str String to trim.
252
+ * @returns {String} A new string representing `str` stripped of control
253
+ * characters and whitespace from its beginning.
254
+ * @public
255
+ */
256
+ function trimLeft(str) {
257
+ return (str ? str : '').toString().replace(controlOrWhitespace, '');
258
+ }
259
+
260
+ /**
261
+ * These are the parse rules for the URL parser, it informs the parser
262
+ * about:
263
+ *
264
+ * 0. The char it Needs to parse, if it's a string it should be done using
265
+ * indexOf, RegExp using exec and NaN means set as current value.
266
+ * 1. The property we should set when parsing this value.
267
+ * 2. Indication if it's backwards or forward parsing, when set as number it's
268
+ * the value of extra chars that should be split off.
269
+ * 3. Inherit from location if non existing in the parser.
270
+ * 4. `toLowerCase` the resulting value.
271
+ */
272
+ var rules = [
273
+ ['#', 'hash'], // Extract from the back.
274
+ ['?', 'query'], // Extract from the back.
275
+ function sanitize(address, url) { // Sanitize what is left of the address
276
+ return isSpecial(url.protocol) ? address.replace(/\\/g, '/') : address;
277
+ },
278
+ ['/', 'pathname'], // Extract from the back.
279
+ ['@', 'auth', 1], // Extract from the front.
280
+ [NaN, 'host', undefined, 1, 1], // Set left over value.
281
+ [/:(\d*)$/, 'port', undefined, 1], // RegExp the back.
282
+ [NaN, 'hostname', undefined, 1, 1] // Set left over.
283
+ ];
284
+
285
+ /**
286
+ * These properties should not be copied or inherited from. This is only needed
287
+ * for all non blob URL's as a blob URL does not include a hash, only the
288
+ * origin.
289
+ *
290
+ * @type {Object}
291
+ * @private
292
+ */
293
+ var ignore = { hash: 1, query: 1 };
294
+
295
+ /**
296
+ * The location object differs when your code is loaded through a normal page,
297
+ * Worker or through a worker using a blob. And with the blobble begins the
298
+ * trouble as the location object will contain the URL of the blob, not the
299
+ * location of the page where our code is loaded in. The actual origin is
300
+ * encoded in the `pathname` so we can thankfully generate a good "default"
301
+ * location from it so we can generate proper relative URL's again.
302
+ *
303
+ * @param {Object|String} loc Optional default location object.
304
+ * @returns {Object} lolcation object.
305
+ * @public
306
+ */
307
+ function lolcation(loc) {
308
+ var globalVar;
309
+
310
+ if (typeof window !== 'undefined') globalVar = window;
311
+ else if (typeof commonjsGlobal !== 'undefined') globalVar = commonjsGlobal;
312
+ else if (typeof self !== 'undefined') globalVar = self;
313
+ else globalVar = {};
314
+
315
+ var location = globalVar.location || {};
316
+ loc = loc || location;
317
+
318
+ var finaldestination = {}
319
+ , type = typeof loc
320
+ , key;
321
+
322
+ if ('blob:' === loc.protocol) {
323
+ finaldestination = new Url(unescape(loc.pathname), {});
324
+ } else if ('string' === type) {
325
+ finaldestination = new Url(loc, {});
326
+ for (key in ignore) delete finaldestination[key];
327
+ } else if ('object' === type) {
328
+ for (key in loc) {
329
+ if (key in ignore) continue;
330
+ finaldestination[key] = loc[key];
331
+ }
332
+
333
+ if (finaldestination.slashes === undefined) {
334
+ finaldestination.slashes = slashes.test(loc.href);
335
+ }
336
+ }
337
+
338
+ return finaldestination;
339
+ }
340
+
341
+ /**
342
+ * Check whether a protocol scheme is special.
343
+ *
344
+ * @param {String} The protocol scheme of the URL
345
+ * @return {Boolean} `true` if the protocol scheme is special, else `false`
346
+ * @private
347
+ */
348
+ function isSpecial(scheme) {
349
+ return (
350
+ scheme === 'file:' ||
351
+ scheme === 'ftp:' ||
352
+ scheme === 'http:' ||
353
+ scheme === 'https:' ||
354
+ scheme === 'ws:' ||
355
+ scheme === 'wss:'
356
+ );
357
+ }
358
+
359
+ /**
360
+ * @typedef ProtocolExtract
361
+ * @type Object
362
+ * @property {String} protocol Protocol matched in the URL, in lowercase.
363
+ * @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
364
+ * @property {String} rest Rest of the URL that is not part of the protocol.
365
+ */
366
+
367
+ /**
368
+ * Extract protocol information from a URL with/without double slash ("//").
369
+ *
370
+ * @param {String} address URL we want to extract from.
371
+ * @param {Object} location
372
+ * @return {ProtocolExtract} Extracted information.
373
+ * @private
374
+ */
375
+ function extractProtocol(address, location) {
376
+ address = trimLeft(address);
377
+ address = address.replace(CRHTLF, '');
378
+ location = location || {};
379
+
380
+ var match = protocolre.exec(address);
381
+ var protocol = match[1] ? match[1].toLowerCase() : '';
382
+ var forwardSlashes = !!match[2];
383
+ var otherSlashes = !!match[3];
384
+ var slashesCount = 0;
385
+ var rest;
386
+
387
+ if (forwardSlashes) {
388
+ if (otherSlashes) {
389
+ rest = match[2] + match[3] + match[4];
390
+ slashesCount = match[2].length + match[3].length;
391
+ } else {
392
+ rest = match[2] + match[4];
393
+ slashesCount = match[2].length;
394
+ }
395
+ } else {
396
+ if (otherSlashes) {
397
+ rest = match[3] + match[4];
398
+ slashesCount = match[3].length;
399
+ } else {
400
+ rest = match[4];
401
+ }
402
+ }
403
+
404
+ if (protocol === 'file:') {
405
+ if (slashesCount >= 2) {
406
+ rest = rest.slice(2);
407
+ }
408
+ } else if (isSpecial(protocol)) {
409
+ rest = match[4];
410
+ } else if (protocol) {
411
+ if (forwardSlashes) {
412
+ rest = rest.slice(2);
413
+ }
414
+ } else if (slashesCount >= 2 && isSpecial(location.protocol)) {
415
+ rest = match[4];
416
+ }
417
+
418
+ return {
419
+ protocol: protocol,
420
+ slashes: forwardSlashes || isSpecial(protocol),
421
+ slashesCount: slashesCount,
422
+ rest: rest
423
+ };
424
+ }
425
+
426
+ /**
427
+ * Resolve a relative URL pathname against a base URL pathname.
428
+ *
429
+ * @param {String} relative Pathname of the relative URL.
430
+ * @param {String} base Pathname of the base URL.
431
+ * @return {String} Resolved pathname.
432
+ * @private
433
+ */
434
+ function resolve(relative, base) {
435
+ if (relative === '') return base;
436
+
437
+ var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/'))
438
+ , i = path.length
439
+ , last = path[i - 1]
440
+ , unshift = false
441
+ , up = 0;
442
+
443
+ while (i--) {
444
+ if (path[i] === '.') {
445
+ path.splice(i, 1);
446
+ } else if (path[i] === '..') {
447
+ path.splice(i, 1);
448
+ up++;
449
+ } else if (up) {
450
+ if (i === 0) unshift = true;
451
+ path.splice(i, 1);
452
+ up--;
453
+ }
454
+ }
455
+
456
+ if (unshift) path.unshift('');
457
+ if (last === '.' || last === '..') path.push('');
458
+
459
+ return path.join('/');
460
+ }
461
+
462
+ /**
463
+ * The actual URL instance. Instead of returning an object we've opted-in to
464
+ * create an actual constructor as it's much more memory efficient and
465
+ * faster and it pleases my OCD.
466
+ *
467
+ * It is worth noting that we should not use `URL` as class name to prevent
468
+ * clashes with the global URL instance that got introduced in browsers.
469
+ *
470
+ * @constructor
471
+ * @param {String} address URL we want to parse.
472
+ * @param {Object|String} [location] Location defaults for relative paths.
473
+ * @param {Boolean|Function} [parser] Parser for the query string.
474
+ * @private
475
+ */
476
+ function Url(address, location, parser) {
477
+ address = trimLeft(address);
478
+ address = address.replace(CRHTLF, '');
479
+
480
+ if (!(this instanceof Url)) {
481
+ return new Url(address, location, parser);
482
+ }
483
+
484
+ var relative, extracted, parse, instruction, index, key
485
+ , instructions = rules.slice()
486
+ , type = typeof location
487
+ , url = this
488
+ , i = 0;
489
+
490
+ //
491
+ // The following if statements allows this module two have compatibility with
492
+ // 2 different API:
493
+ //
494
+ // 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments
495
+ // where the boolean indicates that the query string should also be parsed.
496
+ //
497
+ // 2. The `URL` interface of the browser which accepts a URL, object as
498
+ // arguments. The supplied object will be used as default values / fall-back
499
+ // for relative paths.
500
+ //
501
+ if ('object' !== type && 'string' !== type) {
502
+ parser = location;
503
+ location = null;
504
+ }
505
+
506
+ if (parser && 'function' !== typeof parser) parser = querystringify_1.parse;
507
+
508
+ location = lolcation(location);
509
+
510
+ //
511
+ // Extract protocol information before running the instructions.
512
+ //
513
+ extracted = extractProtocol(address || '', location);
514
+ relative = !extracted.protocol && !extracted.slashes;
515
+ url.slashes = extracted.slashes || relative && location.slashes;
516
+ url.protocol = extracted.protocol || location.protocol || '';
517
+ address = extracted.rest;
518
+
519
+ //
520
+ // When the authority component is absent the URL starts with a path
521
+ // component.
522
+ //
523
+ if (
524
+ extracted.protocol === 'file:' && (
525
+ extracted.slashesCount !== 2 || windowsDriveLetter.test(address)) ||
526
+ (!extracted.slashes &&
527
+ (extracted.protocol ||
528
+ extracted.slashesCount < 2 ||
529
+ !isSpecial(url.protocol)))
530
+ ) {
531
+ instructions[3] = [/(.*)/, 'pathname'];
532
+ }
533
+
534
+ for (; i < instructions.length; i++) {
535
+ instruction = instructions[i];
536
+
537
+ if (typeof instruction === 'function') {
538
+ address = instruction(address, url);
539
+ continue;
540
+ }
541
+
542
+ parse = instruction[0];
543
+ key = instruction[1];
544
+
545
+ if (parse !== parse) {
546
+ url[key] = address;
547
+ } else if ('string' === typeof parse) {
548
+ index = parse === '@'
549
+ ? address.lastIndexOf(parse)
550
+ : address.indexOf(parse);
551
+
552
+ if (~index) {
553
+ if ('number' === typeof instruction[2]) {
554
+ url[key] = address.slice(0, index);
555
+ address = address.slice(index + instruction[2]);
556
+ } else {
557
+ url[key] = address.slice(index);
558
+ address = address.slice(0, index);
559
+ }
560
+ }
561
+ } else if ((index = parse.exec(address))) {
562
+ url[key] = index[1];
563
+ address = address.slice(0, index.index);
564
+ }
565
+
566
+ url[key] = url[key] || (
567
+ relative && instruction[3] ? location[key] || '' : ''
568
+ );
569
+
570
+ //
571
+ // Hostname, host and protocol should be lowercased so they can be used to
572
+ // create a proper `origin`.
573
+ //
574
+ if (instruction[4]) url[key] = url[key].toLowerCase();
575
+ }
576
+
577
+ //
578
+ // Also parse the supplied query string in to an object. If we're supplied
579
+ // with a custom parser as function use that instead of the default build-in
580
+ // parser.
581
+ //
582
+ if (parser) url.query = parser(url.query);
583
+
584
+ //
585
+ // If the URL is relative, resolve the pathname against the base URL.
586
+ //
587
+ if (
588
+ relative
589
+ && location.slashes
590
+ && url.pathname.charAt(0) !== '/'
591
+ && (url.pathname !== '' || location.pathname !== '')
592
+ ) {
593
+ url.pathname = resolve(url.pathname, location.pathname);
594
+ }
595
+
596
+ //
597
+ // Default to a / for pathname if none exists. This normalizes the URL
598
+ // to always have a /
599
+ //
600
+ if (url.pathname.charAt(0) !== '/' && isSpecial(url.protocol)) {
601
+ url.pathname = '/' + url.pathname;
602
+ }
603
+
604
+ //
605
+ // We should not add port numbers if they are already the default port number
606
+ // for a given protocol. As the host also contains the port number we're going
607
+ // override it with the hostname which contains no port number.
608
+ //
609
+ if (!requiresPort(url.port, url.protocol)) {
610
+ url.host = url.hostname;
611
+ url.port = '';
612
+ }
613
+
614
+ //
615
+ // Parse down the `auth` for the username and password.
616
+ //
617
+ url.username = url.password = '';
618
+
619
+ if (url.auth) {
620
+ index = url.auth.indexOf(':');
621
+
622
+ if (~index) {
623
+ url.username = url.auth.slice(0, index);
624
+ url.username = encodeURIComponent(decodeURIComponent(url.username));
625
+
626
+ url.password = url.auth.slice(index + 1);
627
+ url.password = encodeURIComponent(decodeURIComponent(url.password));
628
+ } else {
629
+ url.username = encodeURIComponent(decodeURIComponent(url.auth));
630
+ }
631
+
632
+ url.auth = url.password ? url.username +':'+ url.password : url.username;
633
+ }
634
+
635
+ url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host
636
+ ? url.protocol +'//'+ url.host
637
+ : 'null';
638
+
639
+ //
640
+ // The href is just the compiled result.
641
+ //
642
+ url.href = url.toString();
643
+ }
644
+
645
+ /**
646
+ * This is convenience method for changing properties in the URL instance to
647
+ * insure that they all propagate correctly.
648
+ *
649
+ * @param {String} part Property we need to adjust.
650
+ * @param {Mixed} value The newly assigned value.
651
+ * @param {Boolean|Function} fn When setting the query, it will be the function
652
+ * used to parse the query.
653
+ * When setting the protocol, double slash will be
654
+ * removed from the final url if it is true.
655
+ * @returns {URL} URL instance for chaining.
656
+ * @public
657
+ */
658
+ function set(part, value, fn) {
659
+ var url = this;
660
+
661
+ switch (part) {
662
+ case 'query':
663
+ if ('string' === typeof value && value.length) {
664
+ value = (fn || querystringify_1.parse)(value);
665
+ }
666
+
667
+ url[part] = value;
668
+ break;
669
+
670
+ case 'port':
671
+ url[part] = value;
672
+
673
+ if (!requiresPort(value, url.protocol)) {
674
+ url.host = url.hostname;
675
+ url[part] = '';
676
+ } else if (value) {
677
+ url.host = url.hostname +':'+ value;
678
+ }
679
+
680
+ break;
681
+
682
+ case 'hostname':
683
+ url[part] = value;
684
+
685
+ if (url.port) value += ':'+ url.port;
686
+ url.host = value;
687
+ break;
688
+
689
+ case 'host':
690
+ url[part] = value;
691
+
692
+ if (port.test(value)) {
693
+ value = value.split(':');
694
+ url.port = value.pop();
695
+ url.hostname = value.join(':');
696
+ } else {
697
+ url.hostname = value;
698
+ url.port = '';
699
+ }
700
+
701
+ break;
702
+
703
+ case 'protocol':
704
+ url.protocol = value.toLowerCase();
705
+ url.slashes = !fn;
706
+ break;
707
+
708
+ case 'pathname':
709
+ case 'hash':
710
+ if (value) {
711
+ var char = part === 'pathname' ? '/' : '#';
712
+ url[part] = value.charAt(0) !== char ? char + value : value;
713
+ } else {
714
+ url[part] = value;
715
+ }
716
+ break;
717
+
718
+ case 'username':
719
+ case 'password':
720
+ url[part] = encodeURIComponent(value);
721
+ break;
722
+
723
+ case 'auth':
724
+ var index = value.indexOf(':');
725
+
726
+ if (~index) {
727
+ url.username = value.slice(0, index);
728
+ url.username = encodeURIComponent(decodeURIComponent(url.username));
729
+
730
+ url.password = value.slice(index + 1);
731
+ url.password = encodeURIComponent(decodeURIComponent(url.password));
732
+ } else {
733
+ url.username = encodeURIComponent(decodeURIComponent(value));
734
+ }
735
+ }
736
+
737
+ for (var i = 0; i < rules.length; i++) {
738
+ var ins = rules[i];
739
+
740
+ if (ins[4]) url[ins[1]] = url[ins[1]].toLowerCase();
741
+ }
742
+
743
+ url.auth = url.password ? url.username +':'+ url.password : url.username;
744
+
745
+ url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host
746
+ ? url.protocol +'//'+ url.host
747
+ : 'null';
748
+
749
+ url.href = url.toString();
750
+
751
+ return url;
752
+ }
753
+
754
+ /**
755
+ * Transform the properties back in to a valid and full URL string.
756
+ *
757
+ * @param {Function} stringify Optional query stringify function.
758
+ * @returns {String} Compiled version of the URL.
759
+ * @public
760
+ */
761
+ function toString(stringify) {
762
+ if (!stringify || 'function' !== typeof stringify) stringify = querystringify_1.stringify;
763
+
764
+ var query
765
+ , url = this
766
+ , host = url.host
767
+ , protocol = url.protocol;
768
+
769
+ if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
770
+
771
+ var result =
772
+ protocol +
773
+ ((url.protocol && url.slashes) || isSpecial(url.protocol) ? '//' : '');
774
+
775
+ if (url.username) {
776
+ result += url.username;
777
+ if (url.password) result += ':'+ url.password;
778
+ result += '@';
779
+ } else if (url.password) {
780
+ result += ':'+ url.password;
781
+ result += '@';
782
+ } else if (
783
+ url.protocol !== 'file:' &&
784
+ isSpecial(url.protocol) &&
785
+ !host &&
786
+ url.pathname !== '/'
787
+ ) {
788
+ //
789
+ // Add back the empty userinfo, otherwise the original invalid URL
790
+ // might be transformed into a valid one with `url.pathname` as host.
791
+ //
792
+ result += '@';
793
+ }
794
+
795
+ //
796
+ // Trailing colon is removed from `url.host` when it is parsed. If it still
797
+ // ends with a colon, then add back the trailing colon that was removed. This
798
+ // prevents an invalid URL from being transformed into a valid one.
799
+ //
800
+ if (host[host.length - 1] === ':' || (port.test(url.hostname) && !url.port)) {
801
+ host += ':';
802
+ }
803
+
804
+ result += host + url.pathname;
805
+
806
+ query = 'object' === typeof url.query ? stringify(url.query) : url.query;
807
+ if (query) result += '?' !== query.charAt(0) ? '?'+ query : query;
808
+
809
+ if (url.hash) result += url.hash;
810
+
811
+ return result;
812
+ }
813
+
814
+ Url.prototype = { set: set, toString: toString };
815
+
816
+ //
817
+ // Expose the URL parser and some additional properties that might be useful for
818
+ // others or testing.
819
+ //
820
+ Url.extractProtocol = extractProtocol;
821
+ Url.location = lolcation;
822
+ Url.trimLeft = trimLeft;
823
+ Url.qs = querystringify_1;
824
+
825
+ var urlParse = Url;
826
+
827
+ var rxjsStub = createCommonjsModule(function (module, exports) {
828
+ Object.defineProperty(exports, "__esModule", { value: true });
829
+ exports.map = exports.mergeMap = exports.of = exports.from = exports.Observable = void 0;
830
+ var Observable = (function () {
831
+ function Observable(promise) {
832
+ this.promise = promise;
833
+ }
834
+ Observable.prototype.toPromise = function () {
835
+ return this.promise;
836
+ };
837
+ Observable.prototype.pipe = function (callback) {
838
+ return new Observable(this.promise.then(callback));
839
+ };
840
+ return Observable;
841
+ }());
842
+ exports.Observable = Observable;
843
+ function from(promise) {
844
+ return new Observable(promise);
845
+ }
846
+ exports.from = from;
847
+ function of(value) {
848
+ return new Observable(Promise.resolve(value));
849
+ }
850
+ exports.of = of;
851
+ function mergeMap(callback) {
852
+ return function (value) { return callback(value).toPromise(); };
853
+ }
854
+ exports.mergeMap = mergeMap;
855
+ function map(callback) {
856
+ return callback;
857
+ }
858
+ exports.map = map;
859
+ //# sourceMappingURL=rxjsStub.js.map
860
+ });
861
+
862
+ var global =
863
+ (typeof globalThis !== 'undefined' && globalThis) ||
864
+ (typeof self !== 'undefined' && self) ||
865
+ (typeof global !== 'undefined' && global);
866
+
867
+ var support = {
868
+ searchParams: 'URLSearchParams' in global,
869
+ iterable: 'Symbol' in global && 'iterator' in Symbol,
870
+ blob:
871
+ 'FileReader' in global &&
872
+ 'Blob' in global &&
873
+ (function() {
874
+ try {
875
+ new Blob();
876
+ return true
877
+ } catch (e) {
878
+ return false
879
+ }
880
+ })(),
881
+ formData: 'FormData' in global,
882
+ arrayBuffer: 'ArrayBuffer' in global
883
+ };
884
+
885
+ function isDataView(obj) {
886
+ return obj && DataView.prototype.isPrototypeOf(obj)
887
+ }
888
+
889
+ if (support.arrayBuffer) {
890
+ var viewClasses = [
891
+ '[object Int8Array]',
892
+ '[object Uint8Array]',
893
+ '[object Uint8ClampedArray]',
894
+ '[object Int16Array]',
895
+ '[object Uint16Array]',
896
+ '[object Int32Array]',
897
+ '[object Uint32Array]',
898
+ '[object Float32Array]',
899
+ '[object Float64Array]'
900
+ ];
901
+
902
+ var isArrayBufferView =
903
+ ArrayBuffer.isView ||
904
+ function(obj) {
905
+ return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
906
+ };
907
+ }
908
+
909
+ function normalizeName(name) {
910
+ if (typeof name !== 'string') {
911
+ name = String(name);
912
+ }
913
+ if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
914
+ throw new TypeError('Invalid character in header field name: "' + name + '"')
915
+ }
916
+ return name.toLowerCase()
917
+ }
918
+
919
+ function normalizeValue(value) {
920
+ if (typeof value !== 'string') {
921
+ value = String(value);
922
+ }
923
+ return value
924
+ }
925
+
926
+ // Build a destructive iterator for the value list
927
+ function iteratorFor(items) {
928
+ var iterator = {
929
+ next: function() {
930
+ var value = items.shift();
931
+ return {done: value === undefined, value: value}
932
+ }
933
+ };
934
+
935
+ if (support.iterable) {
936
+ iterator[Symbol.iterator] = function() {
937
+ return iterator
938
+ };
939
+ }
940
+
941
+ return iterator
942
+ }
943
+
944
+ function Headers$1(headers) {
945
+ this.map = {};
946
+
947
+ if (headers instanceof Headers$1) {
948
+ headers.forEach(function(value, name) {
949
+ this.append(name, value);
950
+ }, this);
951
+ } else if (Array.isArray(headers)) {
952
+ headers.forEach(function(header) {
953
+ this.append(header[0], header[1]);
954
+ }, this);
955
+ } else if (headers) {
956
+ Object.getOwnPropertyNames(headers).forEach(function(name) {
957
+ this.append(name, headers[name]);
958
+ }, this);
959
+ }
960
+ }
961
+
962
+ Headers$1.prototype.append = function(name, value) {
963
+ name = normalizeName(name);
964
+ value = normalizeValue(value);
965
+ var oldValue = this.map[name];
966
+ this.map[name] = oldValue ? oldValue + ', ' + value : value;
967
+ };
968
+
969
+ Headers$1.prototype['delete'] = function(name) {
970
+ delete this.map[normalizeName(name)];
971
+ };
972
+
973
+ Headers$1.prototype.get = function(name) {
974
+ name = normalizeName(name);
975
+ return this.has(name) ? this.map[name] : null
976
+ };
977
+
978
+ Headers$1.prototype.has = function(name) {
979
+ return this.map.hasOwnProperty(normalizeName(name))
980
+ };
981
+
982
+ Headers$1.prototype.set = function(name, value) {
983
+ this.map[normalizeName(name)] = normalizeValue(value);
984
+ };
985
+
986
+ Headers$1.prototype.forEach = function(callback, thisArg) {
987
+ for (var name in this.map) {
988
+ if (this.map.hasOwnProperty(name)) {
989
+ callback.call(thisArg, this.map[name], name, this);
990
+ }
991
+ }
992
+ };
993
+
994
+ Headers$1.prototype.keys = function() {
995
+ var items = [];
996
+ this.forEach(function(value, name) {
997
+ items.push(name);
998
+ });
999
+ return iteratorFor(items)
1000
+ };
1001
+
1002
+ Headers$1.prototype.values = function() {
1003
+ var items = [];
1004
+ this.forEach(function(value) {
1005
+ items.push(value);
1006
+ });
1007
+ return iteratorFor(items)
1008
+ };
1009
+
1010
+ Headers$1.prototype.entries = function() {
1011
+ var items = [];
1012
+ this.forEach(function(value, name) {
1013
+ items.push([name, value]);
1014
+ });
1015
+ return iteratorFor(items)
1016
+ };
1017
+
1018
+ if (support.iterable) {
1019
+ Headers$1.prototype[Symbol.iterator] = Headers$1.prototype.entries;
1020
+ }
1021
+
1022
+ function consumed(body) {
1023
+ if (body.bodyUsed) {
1024
+ return Promise.reject(new TypeError('Already read'))
1025
+ }
1026
+ body.bodyUsed = true;
1027
+ }
1028
+
1029
+ function fileReaderReady(reader) {
1030
+ return new Promise(function(resolve, reject) {
1031
+ reader.onload = function() {
1032
+ resolve(reader.result);
1033
+ };
1034
+ reader.onerror = function() {
1035
+ reject(reader.error);
1036
+ };
1037
+ })
1038
+ }
1039
+
1040
+ function readBlobAsArrayBuffer(blob) {
1041
+ var reader = new FileReader();
1042
+ var promise = fileReaderReady(reader);
1043
+ reader.readAsArrayBuffer(blob);
1044
+ return promise
1045
+ }
1046
+
1047
+ function readBlobAsText(blob) {
1048
+ var reader = new FileReader();
1049
+ var promise = fileReaderReady(reader);
1050
+ reader.readAsText(blob);
1051
+ return promise
1052
+ }
1053
+
1054
+ function readArrayBufferAsText(buf) {
1055
+ var view = new Uint8Array(buf);
1056
+ var chars = new Array(view.length);
1057
+
1058
+ for (var i = 0; i < view.length; i++) {
1059
+ chars[i] = String.fromCharCode(view[i]);
1060
+ }
1061
+ return chars.join('')
1062
+ }
1063
+
1064
+ function bufferClone(buf) {
1065
+ if (buf.slice) {
1066
+ return buf.slice(0)
1067
+ } else {
1068
+ var view = new Uint8Array(buf.byteLength);
1069
+ view.set(new Uint8Array(buf));
1070
+ return view.buffer
1071
+ }
1072
+ }
1073
+
1074
+ function Body() {
1075
+ this.bodyUsed = false;
1076
+
1077
+ this._initBody = function(body) {
1078
+ /*
1079
+ fetch-mock wraps the Response object in an ES6 Proxy to
1080
+ provide useful test harness features such as flush. However, on
1081
+ ES5 browsers without fetch or Proxy support pollyfills must be used;
1082
+ the proxy-pollyfill is unable to proxy an attribute unless it exists
1083
+ on the object before the Proxy is created. This change ensures
1084
+ Response.bodyUsed exists on the instance, while maintaining the
1085
+ semantic of setting Request.bodyUsed in the constructor before
1086
+ _initBody is called.
1087
+ */
1088
+ this.bodyUsed = this.bodyUsed;
1089
+ this._bodyInit = body;
1090
+ if (!body) {
1091
+ this._bodyText = '';
1092
+ } else if (typeof body === 'string') {
1093
+ this._bodyText = body;
1094
+ } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
1095
+ this._bodyBlob = body;
1096
+ } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
1097
+ this._bodyFormData = body;
1098
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
1099
+ this._bodyText = body.toString();
1100
+ } else if (support.arrayBuffer && support.blob && isDataView(body)) {
1101
+ this._bodyArrayBuffer = bufferClone(body.buffer);
1102
+ // IE 10-11 can't handle a DataView body.
1103
+ this._bodyInit = new Blob([this._bodyArrayBuffer]);
1104
+ } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
1105
+ this._bodyArrayBuffer = bufferClone(body);
1106
+ } else {
1107
+ this._bodyText = body = Object.prototype.toString.call(body);
1108
+ }
1109
+
1110
+ if (!this.headers.get('content-type')) {
1111
+ if (typeof body === 'string') {
1112
+ this.headers.set('content-type', 'text/plain;charset=UTF-8');
1113
+ } else if (this._bodyBlob && this._bodyBlob.type) {
1114
+ this.headers.set('content-type', this._bodyBlob.type);
1115
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
1116
+ this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
1117
+ }
1118
+ }
1119
+ };
1120
+
1121
+ if (support.blob) {
1122
+ this.blob = function() {
1123
+ var rejected = consumed(this);
1124
+ if (rejected) {
1125
+ return rejected
1126
+ }
1127
+
1128
+ if (this._bodyBlob) {
1129
+ return Promise.resolve(this._bodyBlob)
1130
+ } else if (this._bodyArrayBuffer) {
1131
+ return Promise.resolve(new Blob([this._bodyArrayBuffer]))
1132
+ } else if (this._bodyFormData) {
1133
+ throw new Error('could not read FormData body as blob')
1134
+ } else {
1135
+ return Promise.resolve(new Blob([this._bodyText]))
1136
+ }
1137
+ };
1138
+
1139
+ this.arrayBuffer = function() {
1140
+ if (this._bodyArrayBuffer) {
1141
+ var isConsumed = consumed(this);
1142
+ if (isConsumed) {
1143
+ return isConsumed
1144
+ }
1145
+ if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
1146
+ return Promise.resolve(
1147
+ this._bodyArrayBuffer.buffer.slice(
1148
+ this._bodyArrayBuffer.byteOffset,
1149
+ this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
1150
+ )
1151
+ )
1152
+ } else {
1153
+ return Promise.resolve(this._bodyArrayBuffer)
1154
+ }
1155
+ } else {
1156
+ return this.blob().then(readBlobAsArrayBuffer)
1157
+ }
1158
+ };
1159
+ }
1160
+
1161
+ this.text = function() {
1162
+ var rejected = consumed(this);
1163
+ if (rejected) {
1164
+ return rejected
1165
+ }
1166
+
1167
+ if (this._bodyBlob) {
1168
+ return readBlobAsText(this._bodyBlob)
1169
+ } else if (this._bodyArrayBuffer) {
1170
+ return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
1171
+ } else if (this._bodyFormData) {
1172
+ throw new Error('could not read FormData body as text')
1173
+ } else {
1174
+ return Promise.resolve(this._bodyText)
1175
+ }
1176
+ };
1177
+
1178
+ if (support.formData) {
1179
+ this.formData = function() {
1180
+ return this.text().then(decode)
1181
+ };
1182
+ }
1183
+
1184
+ this.json = function() {
1185
+ return this.text().then(JSON.parse)
1186
+ };
1187
+
1188
+ return this
1189
+ }
1190
+
1191
+ // HTTP methods whose capitalization should be normalized
1192
+ var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
1193
+
1194
+ function normalizeMethod(method) {
1195
+ var upcased = method.toUpperCase();
1196
+ return methods.indexOf(upcased) > -1 ? upcased : method
1197
+ }
1198
+
1199
+ function Request(input, options) {
1200
+ if (!(this instanceof Request)) {
1201
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
1202
+ }
1203
+
1204
+ options = options || {};
1205
+ var body = options.body;
1206
+
1207
+ if (input instanceof Request) {
1208
+ if (input.bodyUsed) {
1209
+ throw new TypeError('Already read')
1210
+ }
1211
+ this.url = input.url;
1212
+ this.credentials = input.credentials;
1213
+ if (!options.headers) {
1214
+ this.headers = new Headers$1(input.headers);
1215
+ }
1216
+ this.method = input.method;
1217
+ this.mode = input.mode;
1218
+ this.signal = input.signal;
1219
+ if (!body && input._bodyInit != null) {
1220
+ body = input._bodyInit;
1221
+ input.bodyUsed = true;
1222
+ }
1223
+ } else {
1224
+ this.url = String(input);
1225
+ }
1226
+
1227
+ this.credentials = options.credentials || this.credentials || 'same-origin';
1228
+ if (options.headers || !this.headers) {
1229
+ this.headers = new Headers$1(options.headers);
1230
+ }
1231
+ this.method = normalizeMethod(options.method || this.method || 'GET');
1232
+ this.mode = options.mode || this.mode || null;
1233
+ this.signal = options.signal || this.signal;
1234
+ this.referrer = null;
1235
+
1236
+ if ((this.method === 'GET' || this.method === 'HEAD') && body) {
1237
+ throw new TypeError('Body not allowed for GET or HEAD requests')
1238
+ }
1239
+ this._initBody(body);
1240
+
1241
+ if (this.method === 'GET' || this.method === 'HEAD') {
1242
+ if (options.cache === 'no-store' || options.cache === 'no-cache') {
1243
+ // Search for a '_' parameter in the query string
1244
+ var reParamSearch = /([?&])_=[^&]*/;
1245
+ if (reParamSearch.test(this.url)) {
1246
+ // If it already exists then set the value with the current time
1247
+ this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());
1248
+ } else {
1249
+ // Otherwise add a new '_' parameter to the end with the current time
1250
+ var reQueryString = /\?/;
1251
+ this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+
1257
+ Request.prototype.clone = function() {
1258
+ return new Request(this, {body: this._bodyInit})
1259
+ };
1260
+
1261
+ function decode(body) {
1262
+ var form = new FormData();
1263
+ body
1264
+ .trim()
1265
+ .split('&')
1266
+ .forEach(function(bytes) {
1267
+ if (bytes) {
1268
+ var split = bytes.split('=');
1269
+ var name = split.shift().replace(/\+/g, ' ');
1270
+ var value = split.join('=').replace(/\+/g, ' ');
1271
+ form.append(decodeURIComponent(name), decodeURIComponent(value));
1272
+ }
1273
+ });
1274
+ return form
1275
+ }
1276
+
1277
+ function parseHeaders(rawHeaders) {
1278
+ var headers = new Headers$1();
1279
+ // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
1280
+ // https://tools.ietf.org/html/rfc7230#section-3.2
1281
+ var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
1282
+ // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
1283
+ // https://github.com/github/fetch/issues/748
1284
+ // https://github.com/zloirock/core-js/issues/751
1285
+ preProcessedHeaders
1286
+ .split('\r')
1287
+ .map(function(header) {
1288
+ return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header
1289
+ })
1290
+ .forEach(function(line) {
1291
+ var parts = line.split(':');
1292
+ var key = parts.shift().trim();
1293
+ if (key) {
1294
+ var value = parts.join(':').trim();
1295
+ headers.append(key, value);
1296
+ }
1297
+ });
1298
+ return headers
1299
+ }
1300
+
1301
+ Body.call(Request.prototype);
1302
+
1303
+ function Response(bodyInit, options) {
1304
+ if (!(this instanceof Response)) {
1305
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
1306
+ }
1307
+ if (!options) {
1308
+ options = {};
1309
+ }
1310
+
1311
+ this.type = 'default';
1312
+ this.status = options.status === undefined ? 200 : options.status;
1313
+ this.ok = this.status >= 200 && this.status < 300;
1314
+ this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
1315
+ this.headers = new Headers$1(options.headers);
1316
+ this.url = options.url || '';
1317
+ this._initBody(bodyInit);
1318
+ }
1319
+
1320
+ Body.call(Response.prototype);
1321
+
1322
+ Response.prototype.clone = function() {
1323
+ return new Response(this._bodyInit, {
1324
+ status: this.status,
1325
+ statusText: this.statusText,
1326
+ headers: new Headers$1(this.headers),
1327
+ url: this.url
1328
+ })
1329
+ };
1330
+
1331
+ Response.error = function() {
1332
+ var response = new Response(null, {status: 0, statusText: ''});
1333
+ response.type = 'error';
1334
+ return response
1335
+ };
1336
+
1337
+ var redirectStatuses = [301, 302, 303, 307, 308];
1338
+
1339
+ Response.redirect = function(url, status) {
1340
+ if (redirectStatuses.indexOf(status) === -1) {
1341
+ throw new RangeError('Invalid status code')
1342
+ }
1343
+
1344
+ return new Response(null, {status: status, headers: {location: url}})
1345
+ };
1346
+
1347
+ var DOMException = global.DOMException;
1348
+ try {
1349
+ new DOMException();
1350
+ } catch (err) {
1351
+ DOMException = function(message, name) {
1352
+ this.message = message;
1353
+ this.name = name;
1354
+ var error = Error(message);
1355
+ this.stack = error.stack;
1356
+ };
1357
+ DOMException.prototype = Object.create(Error.prototype);
1358
+ DOMException.prototype.constructor = DOMException;
1359
+ }
1360
+
1361
+ function fetch$1(input, init) {
1362
+ return new Promise(function(resolve, reject) {
1363
+ var request = new Request(input, init);
1364
+
1365
+ if (request.signal && request.signal.aborted) {
1366
+ return reject(new DOMException('Aborted', 'AbortError'))
1367
+ }
1368
+
1369
+ var xhr = new XMLHttpRequest();
1370
+
1371
+ function abortXhr() {
1372
+ xhr.abort();
1373
+ }
1374
+
1375
+ xhr.onload = function() {
1376
+ var options = {
1377
+ status: xhr.status,
1378
+ statusText: xhr.statusText,
1379
+ headers: parseHeaders(xhr.getAllResponseHeaders() || '')
1380
+ };
1381
+ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
1382
+ var body = 'response' in xhr ? xhr.response : xhr.responseText;
1383
+ setTimeout(function() {
1384
+ resolve(new Response(body, options));
1385
+ }, 0);
1386
+ };
1387
+
1388
+ xhr.onerror = function() {
1389
+ setTimeout(function() {
1390
+ reject(new TypeError('Network request failed'));
1391
+ }, 0);
1392
+ };
1393
+
1394
+ xhr.ontimeout = function() {
1395
+ setTimeout(function() {
1396
+ reject(new TypeError('Network request failed'));
1397
+ }, 0);
1398
+ };
1399
+
1400
+ xhr.onabort = function() {
1401
+ setTimeout(function() {
1402
+ reject(new DOMException('Aborted', 'AbortError'));
1403
+ }, 0);
1404
+ };
1405
+
1406
+ function fixUrl(url) {
1407
+ try {
1408
+ return url === '' && global.location.href ? global.location.href : url
1409
+ } catch (e) {
1410
+ return url
1411
+ }
1412
+ }
1413
+
1414
+ xhr.open(request.method, fixUrl(request.url), true);
1415
+
1416
+ if (request.credentials === 'include') {
1417
+ xhr.withCredentials = true;
1418
+ } else if (request.credentials === 'omit') {
1419
+ xhr.withCredentials = false;
1420
+ }
1421
+
1422
+ if ('responseType' in xhr) {
1423
+ if (support.blob) {
1424
+ xhr.responseType = 'blob';
1425
+ } else if (
1426
+ support.arrayBuffer &&
1427
+ request.headers.get('Content-Type') &&
1428
+ request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
1429
+ ) {
1430
+ xhr.responseType = 'arraybuffer';
1431
+ }
1432
+ }
1433
+
1434
+ if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers$1)) {
1435
+ Object.getOwnPropertyNames(init.headers).forEach(function(name) {
1436
+ xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
1437
+ });
1438
+ } else {
1439
+ request.headers.forEach(function(value, name) {
1440
+ xhr.setRequestHeader(name, value);
1441
+ });
1442
+ }
1443
+
1444
+ if (request.signal) {
1445
+ request.signal.addEventListener('abort', abortXhr);
1446
+
1447
+ xhr.onreadystatechange = function() {
1448
+ // DONE (success or failure)
1449
+ if (xhr.readyState === 4) {
1450
+ request.signal.removeEventListener('abort', abortXhr);
1451
+ }
1452
+ };
1453
+ }
1454
+
1455
+ xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
1456
+ })
1457
+ }
1458
+
1459
+ fetch$1.polyfill = true;
1460
+
1461
+ if (!global.fetch) {
1462
+ global.fetch = fetch$1;
1463
+ global.Headers = Headers$1;
1464
+ global.Request = Request;
1465
+ global.Response = Response;
1466
+ }
1467
+
1468
+ var isomorphicFetch = createCommonjsModule(function (module, exports) {
1469
+ Object.defineProperty(exports, "__esModule", { value: true });
1470
+ exports.IsomorphicFetchHttpLibrary = void 0;
1471
+
1472
+
1473
+
1474
+ var IsomorphicFetchHttpLibrary = (function () {
1475
+ function IsomorphicFetchHttpLibrary() {
1476
+ }
1477
+ IsomorphicFetchHttpLibrary.prototype.send = function (request) {
1478
+ var method = request.getHttpMethod().toString();
1479
+ var body = request.getBody();
1480
+ var resultPromise = fetch(request.getUrl(), {
1481
+ method: method,
1482
+ body: body,
1483
+ headers: request.getHeaders(),
1484
+ credentials: "same-origin"
1485
+ }).then(function (resp) {
1486
+ var headers = {};
1487
+ resp.headers.forEach(function (value, name) {
1488
+ headers[name] = value;
1489
+ });
1490
+ var body = {
1491
+ text: function () { return resp.text(); },
1492
+ binary: function () { return resp.blob(); }
1493
+ };
1494
+ return new http.ResponseContext(resp.status, headers, body);
1495
+ });
1496
+ return (0, rxjsStub.from)(resultPromise);
1497
+ };
1498
+ return IsomorphicFetchHttpLibrary;
1499
+ }());
1500
+ exports.IsomorphicFetchHttpLibrary = IsomorphicFetchHttpLibrary;
1501
+ //# sourceMappingURL=isomorphic-fetch.js.map
1502
+ });
1503
+
1504
+ var http = createCommonjsModule(function (module, exports) {
1505
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
1506
+ var extendStatics = function (d, b) {
1507
+ extendStatics = Object.setPrototypeOf ||
1508
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1509
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1510
+ return extendStatics(d, b);
1511
+ };
1512
+ return function (d, b) {
1513
+ if (typeof b !== "function" && b !== null)
1514
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1515
+ extendStatics(d, b);
1516
+ function __() { this.constructor = d; }
1517
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1518
+ };
1519
+ })();
1520
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1521
+ if (k2 === undefined) k2 = k;
1522
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1523
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1524
+ desc = { enumerable: true, get: function() { return m[k]; } };
1525
+ }
1526
+ Object.defineProperty(o, k2, desc);
1527
+ }) : (function(o, m, k, k2) {
1528
+ if (k2 === undefined) k2 = k;
1529
+ o[k2] = m[k];
1530
+ }));
1531
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1532
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1533
+ };
1534
+ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
1535
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1536
+ return new (P || (P = Promise))(function (resolve, reject) {
1537
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1538
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1539
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1540
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1541
+ });
1542
+ };
1543
+ var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
1544
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1545
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1546
+ function verb(n) { return function (v) { return step([n, v]); }; }
1547
+ function step(op) {
1548
+ if (f) throw new TypeError("Generator is already executing.");
1549
+ while (_) try {
1550
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1551
+ if (y = 0, t) op = [op[0] & 2, t.value];
1552
+ switch (op[0]) {
1553
+ case 0: case 1: t = op; break;
1554
+ case 4: _.label++; return { value: op[1], done: false };
1555
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1556
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1557
+ default:
1558
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1559
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1560
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1561
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1562
+ if (t[2]) _.ops.pop();
1563
+ _.trys.pop(); continue;
1564
+ }
1565
+ op = body.call(thisArg, _);
1566
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1567
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1568
+ }
1569
+ };
1570
+ Object.defineProperty(exports, "__esModule", { value: true });
1571
+ exports.wrapHttpLibrary = exports.ResponseContext = exports.SelfDecodingBody = exports.RequestContext = exports.HttpException = exports.HttpMethod = void 0;
1572
+
1573
+
1574
+ __exportStar(isomorphicFetch, exports);
1575
+ (function (HttpMethod) {
1576
+ HttpMethod["GET"] = "GET";
1577
+ HttpMethod["HEAD"] = "HEAD";
1578
+ HttpMethod["POST"] = "POST";
1579
+ HttpMethod["PUT"] = "PUT";
1580
+ HttpMethod["DELETE"] = "DELETE";
1581
+ HttpMethod["CONNECT"] = "CONNECT";
1582
+ HttpMethod["OPTIONS"] = "OPTIONS";
1583
+ HttpMethod["TRACE"] = "TRACE";
1584
+ HttpMethod["PATCH"] = "PATCH";
1585
+ })(exports.HttpMethod || (exports.HttpMethod = {}));
1586
+ var HttpException = (function (_super) {
1587
+ __extends(HttpException, _super);
1588
+ function HttpException(msg) {
1589
+ return _super.call(this, msg) || this;
1590
+ }
1591
+ return HttpException;
1592
+ }(Error));
1593
+ exports.HttpException = HttpException;
1594
+ var RequestContext = (function () {
1595
+ function RequestContext(url, httpMethod) {
1596
+ this.httpMethod = httpMethod;
1597
+ this.headers = {};
1598
+ this.body = undefined;
1599
+ this.url = new urlParse(url, true);
1600
+ }
1601
+ RequestContext.prototype.getUrl = function () {
1602
+ return this.url.toString();
1603
+ };
1604
+ RequestContext.prototype.setUrl = function (url) {
1605
+ this.url = new urlParse(url, true);
1606
+ };
1607
+ RequestContext.prototype.setBody = function (body) {
1608
+ this.body = body;
1609
+ };
1610
+ RequestContext.prototype.getHttpMethod = function () {
1611
+ return this.httpMethod;
1612
+ };
1613
+ RequestContext.prototype.getHeaders = function () {
1614
+ return this.headers;
1615
+ };
1616
+ RequestContext.prototype.getBody = function () {
1617
+ return this.body;
1618
+ };
1619
+ RequestContext.prototype.setQueryParam = function (name, value) {
1620
+ var queryObj = this.url.query;
1621
+ queryObj[name] = value;
1622
+ this.url.set("query", queryObj);
1623
+ };
1624
+ RequestContext.prototype.addCookie = function (name, value) {
1625
+ if (!this.headers["Cookie"]) {
1626
+ this.headers["Cookie"] = "";
1627
+ }
1628
+ this.headers["Cookie"] += name + "=" + value + "; ";
1629
+ };
1630
+ RequestContext.prototype.setHeaderParam = function (key, value) {
1631
+ this.headers[key] = value;
1632
+ };
1633
+ return RequestContext;
1634
+ }());
1635
+ exports.RequestContext = RequestContext;
1636
+ var SelfDecodingBody = (function () {
1637
+ function SelfDecodingBody(dataSource) {
1638
+ this.dataSource = dataSource;
1639
+ }
1640
+ SelfDecodingBody.prototype.binary = function () {
1641
+ return this.dataSource;
1642
+ };
1643
+ SelfDecodingBody.prototype.text = function () {
1644
+ return __awaiter(this, void 0, void 0, function () {
1645
+ var data;
1646
+ return __generator(this, function (_a) {
1647
+ switch (_a.label) {
1648
+ case 0: return [4, this.dataSource];
1649
+ case 1:
1650
+ data = _a.sent();
1651
+ if (data.text) {
1652
+ return [2, data.text()];
1653
+ }
1654
+ return [2, new Promise(function (resolve, reject) {
1655
+ var reader = new FileReader();
1656
+ reader.addEventListener("load", function () { return resolve(reader.result); });
1657
+ reader.addEventListener("error", function () { return reject(reader.error); });
1658
+ reader.readAsText(data);
1659
+ })];
1660
+ }
1661
+ });
1662
+ });
1663
+ };
1664
+ return SelfDecodingBody;
1665
+ }());
1666
+ exports.SelfDecodingBody = SelfDecodingBody;
1667
+ var ResponseContext = (function () {
1668
+ function ResponseContext(httpStatusCode, headers, body) {
1669
+ this.httpStatusCode = httpStatusCode;
1670
+ this.headers = headers;
1671
+ this.body = body;
1672
+ }
1673
+ ResponseContext.prototype.getParsedHeader = function (headerName) {
1674
+ var result = {};
1675
+ if (!this.headers[headerName]) {
1676
+ return result;
1677
+ }
1678
+ var parameters = this.headers[headerName].split(";");
1679
+ for (var _i = 0, parameters_1 = parameters; _i < parameters_1.length; _i++) {
1680
+ var parameter = parameters_1[_i];
1681
+ var _a = parameter.split("=", 2), key = _a[0], value = _a[1];
1682
+ key = key.toLowerCase().trim();
1683
+ if (value === undefined) {
1684
+ result[""] = key;
1685
+ }
1686
+ else {
1687
+ value = value.trim();
1688
+ if (value.startsWith('"') && value.endsWith('"')) {
1689
+ value = value.substring(1, value.length - 1);
1690
+ }
1691
+ result[key] = value;
1692
+ }
1693
+ }
1694
+ return result;
1695
+ };
1696
+ ResponseContext.prototype.getBodyAsFile = function () {
1697
+ return __awaiter(this, void 0, void 0, function () {
1698
+ var data, fileName, contentType;
1699
+ return __generator(this, function (_a) {
1700
+ switch (_a.label) {
1701
+ case 0: return [4, this.body.binary()];
1702
+ case 1:
1703
+ data = _a.sent();
1704
+ fileName = this.getParsedHeader("content-disposition")["filename"] || "";
1705
+ contentType = this.headers["content-type"] || "";
1706
+ try {
1707
+ return [2, new File([data], fileName, { type: contentType })];
1708
+ }
1709
+ catch (error) {
1710
+ return [2, Object.assign(data, {
1711
+ name: fileName,
1712
+ type: contentType
1713
+ })];
1714
+ }
1715
+ return [2];
1716
+ }
1717
+ });
1718
+ });
1719
+ };
1720
+ ResponseContext.prototype.getBodyAsAny = function () {
1721
+ try {
1722
+ return this.body.text();
1723
+ }
1724
+ catch (_a) { }
1725
+ try {
1726
+ return this.body.binary();
1727
+ }
1728
+ catch (_b) { }
1729
+ return Promise.resolve(undefined);
1730
+ };
1731
+ return ResponseContext;
1732
+ }());
1733
+ exports.ResponseContext = ResponseContext;
1734
+ function wrapHttpLibrary(promiseHttpLibrary) {
1735
+ return {
1736
+ send: function (request) {
1737
+ return (0, rxjsStub.from)(promiseHttpLibrary.send(request));
1738
+ }
1739
+ };
1740
+ }
1741
+ exports.wrapHttpLibrary = wrapHttpLibrary;
1742
+ //# sourceMappingURL=http.js.map
1743
+ });
1744
+
1745
+ var auth = createCommonjsModule(function (module, exports) {
1746
+ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
1747
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1748
+ return new (P || (P = Promise))(function (resolve, reject) {
1749
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1750
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1751
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1752
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1753
+ });
1754
+ };
1755
+ var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
1756
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1757
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1758
+ function verb(n) { return function (v) { return step([n, v]); }; }
1759
+ function step(op) {
1760
+ if (f) throw new TypeError("Generator is already executing.");
1761
+ while (_) try {
1762
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1763
+ if (y = 0, t) op = [op[0] & 2, t.value];
1764
+ switch (op[0]) {
1765
+ case 0: case 1: t = op; break;
1766
+ case 4: _.label++; return { value: op[1], done: false };
1767
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1768
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1769
+ default:
1770
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1771
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1772
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1773
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1774
+ if (t[2]) _.ops.pop();
1775
+ _.trys.pop(); continue;
1776
+ }
1777
+ op = body.call(thisArg, _);
1778
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1779
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1780
+ }
1781
+ };
1782
+ Object.defineProperty(exports, "__esModule", { value: true });
1783
+ exports.configureAuthMethods = exports.BearerAuthAuthentication = void 0;
1784
+ var BearerAuthAuthentication = (function () {
1785
+ function BearerAuthAuthentication(tokenProvider) {
1786
+ this.tokenProvider = tokenProvider;
1787
+ }
1788
+ BearerAuthAuthentication.prototype.getName = function () {
1789
+ return "bearerAuth";
1790
+ };
1791
+ BearerAuthAuthentication.prototype.applySecurityAuthentication = function (context) {
1792
+ return __awaiter(this, void 0, void 0, function () {
1793
+ var _a, _b, _c, _d;
1794
+ return __generator(this, function (_e) {
1795
+ switch (_e.label) {
1796
+ case 0:
1797
+ _b = (_a = context).setHeaderParam;
1798
+ _c = ["Authorization"];
1799
+ _d = "Bearer ";
1800
+ return [4, this.tokenProvider.getToken()];
1801
+ case 1:
1802
+ _b.apply(_a, _c.concat([_d + (_e.sent())]));
1803
+ return [2];
1804
+ }
1805
+ });
1806
+ });
1807
+ };
1808
+ return BearerAuthAuthentication;
1809
+ }());
1810
+ exports.BearerAuthAuthentication = BearerAuthAuthentication;
1811
+ function configureAuthMethods(config) {
1812
+ var authMethods = {};
1813
+ if (!config) {
1814
+ return authMethods;
1815
+ }
1816
+ authMethods["default"] = config["default"];
1817
+ if (config["bearerAuth"]) {
1818
+ authMethods["bearerAuth"] = new BearerAuthAuthentication(config["bearerAuth"]["tokenProvider"]);
1819
+ }
1820
+ return authMethods;
1821
+ }
1822
+ exports.configureAuthMethods = configureAuthMethods;
1823
+ //# sourceMappingURL=auth.js.map
1824
+ });
1825
+
1826
+ var ErrorObject_1 = createCommonjsModule(function (module, exports) {
1827
+ Object.defineProperty(exports, "__esModule", { value: true });
1828
+ exports.ErrorObject = void 0;
1829
+ var ErrorObject = (function () {
1830
+ function ErrorObject() {
1831
+ }
1832
+ ErrorObject.getAttributeTypeMap = function () {
1833
+ return ErrorObject.attributeTypeMap;
1834
+ };
1835
+ ErrorObject.discriminator = undefined;
1836
+ ErrorObject.attributeTypeMap = [
1837
+ {
1838
+ "name": "domain",
1839
+ "baseName": "domain",
1840
+ "type": "string",
1841
+ "format": ""
1842
+ },
1843
+ {
1844
+ "name": "reason",
1845
+ "baseName": "reason",
1846
+ "type": "string",
1847
+ "format": ""
1848
+ },
1849
+ {
1850
+ "name": "message",
1851
+ "baseName": "message",
1852
+ "type": "string",
1853
+ "format": ""
1854
+ },
1855
+ {
1856
+ "name": "location",
1857
+ "baseName": "location",
1858
+ "type": "string",
1859
+ "format": ""
1860
+ },
1861
+ {
1862
+ "name": "location_type",
1863
+ "baseName": "location_type",
1864
+ "type": "string",
1865
+ "format": ""
1866
+ },
1867
+ {
1868
+ "name": "extended_help",
1869
+ "baseName": "extended_help",
1870
+ "type": "string",
1871
+ "format": ""
1872
+ },
1873
+ {
1874
+ "name": "send_report",
1875
+ "baseName": "send_report",
1876
+ "type": "string",
1877
+ "format": ""
1878
+ }
1879
+ ];
1880
+ return ErrorObject;
1881
+ }());
1882
+ exports.ErrorObject = ErrorObject;
1883
+ //# sourceMappingURL=ErrorObject.js.map
1884
+ });
1885
+
1886
+ var ErrorResponse_1 = createCommonjsModule(function (module, exports) {
1887
+ Object.defineProperty(exports, "__esModule", { value: true });
1888
+ exports.ErrorResponse = void 0;
1889
+ var ErrorResponse = (function () {
1890
+ function ErrorResponse() {
1891
+ }
1892
+ ErrorResponse.getAttributeTypeMap = function () {
1893
+ return ErrorResponse.attributeTypeMap;
1894
+ };
1895
+ ErrorResponse.discriminator = undefined;
1896
+ ErrorResponse.attributeTypeMap = [
1897
+ {
1898
+ "name": "code",
1899
+ "baseName": "code",
1900
+ "type": "number",
1901
+ "format": ""
1902
+ },
1903
+ {
1904
+ "name": "message",
1905
+ "baseName": "message",
1906
+ "type": "string",
1907
+ "format": ""
1908
+ },
1909
+ {
1910
+ "name": "errors",
1911
+ "baseName": "errors",
1912
+ "type": "Array<ErrorObject>",
1913
+ "format": ""
1914
+ }
1915
+ ];
1916
+ return ErrorResponse;
1917
+ }());
1918
+ exports.ErrorResponse = ErrorResponse;
1919
+ //# sourceMappingURL=ErrorResponse.js.map
1920
+ });
1921
+
1922
+ var Event_1 = createCommonjsModule(function (module, exports) {
1923
+ Object.defineProperty(exports, "__esModule", { value: true });
1924
+ exports.Event = void 0;
1925
+ var Event = (function () {
1926
+ function Event() {
1927
+ this.typ = "Event";
1928
+ }
1929
+ Event.getAttributeTypeMap = function () {
1930
+ return Event.attributeTypeMap;
1931
+ };
1932
+ Event.discriminator = "typ";
1933
+ Event.attributeTypeMap = [
1934
+ {
1935
+ "name": "session_id",
1936
+ "baseName": "session_id",
1937
+ "type": "string",
1938
+ "format": ""
1939
+ },
1940
+ {
1941
+ "name": "typ",
1942
+ "baseName": "typ",
1943
+ "type": "string",
1944
+ "format": ""
1945
+ }
1946
+ ];
1947
+ return Event;
1948
+ }());
1949
+ exports.Event = Event;
1950
+ //# sourceMappingURL=Event.js.map
1951
+ });
1952
+
1953
+ var EventConfirmation_1 = createCommonjsModule(function (module, exports) {
1954
+ Object.defineProperty(exports, "__esModule", { value: true });
1955
+ exports.EventConfirmation = void 0;
1956
+ var EventConfirmation = (function () {
1957
+ function EventConfirmation() {
1958
+ }
1959
+ EventConfirmation.getAttributeTypeMap = function () {
1960
+ return EventConfirmation.attributeTypeMap;
1961
+ };
1962
+ EventConfirmation.discriminator = undefined;
1963
+ EventConfirmation.attributeTypeMap = [
1964
+ {
1965
+ "name": "status",
1966
+ "baseName": "status",
1967
+ "type": "EventConfirmationStatusEnum",
1968
+ "format": ""
1969
+ }
1970
+ ];
1971
+ return EventConfirmation;
1972
+ }());
1973
+ exports.EventConfirmation = EventConfirmation;
1974
+ //# sourceMappingURL=EventConfirmation.js.map
1975
+ });
1976
+
1977
+ var FilterAction = createCommonjsModule(function (module, exports) {
1978
+ Object.defineProperty(exports, "__esModule", { value: true });
1979
+ //# sourceMappingURL=FilterAction.js.map
1980
+ });
1981
+
1982
+ var FilterEvent_1 = createCommonjsModule(function (module, exports) {
1983
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
1984
+ var extendStatics = function (d, b) {
1985
+ extendStatics = Object.setPrototypeOf ||
1986
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1987
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1988
+ return extendStatics(d, b);
1989
+ };
1990
+ return function (d, b) {
1991
+ if (typeof b !== "function" && b !== null)
1992
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1993
+ extendStatics(d, b);
1994
+ function __() { this.constructor = d; }
1995
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1996
+ };
1997
+ })();
1998
+ Object.defineProperty(exports, "__esModule", { value: true });
1999
+ exports.FilterEvent = void 0;
2000
+
2001
+ var FilterEvent = (function (_super) {
2002
+ __extends(FilterEvent, _super);
2003
+ function FilterEvent() {
2004
+ var _this = _super.call(this) || this;
2005
+ _this.typ = "FilterEvent";
2006
+ return _this;
2007
+ }
2008
+ FilterEvent.getAttributeTypeMap = function () {
2009
+ return _super.getAttributeTypeMap.call(this).concat(FilterEvent.attributeTypeMap);
2010
+ };
2011
+ FilterEvent.discriminator = undefined;
2012
+ FilterEvent.attributeTypeMap = [
2013
+ {
2014
+ "name": "widget",
2015
+ "baseName": "widget",
2016
+ "type": "Widget",
2017
+ "format": ""
2018
+ },
2019
+ {
2020
+ "name": "action",
2021
+ "baseName": "action",
2022
+ "type": "FilterAction",
2023
+ "format": ""
2024
+ },
2025
+ {
2026
+ "name": "kind",
2027
+ "baseName": "kind",
2028
+ "type": "FilterKind",
2029
+ "format": ""
2030
+ }
2031
+ ];
2032
+ return FilterEvent;
2033
+ }(Event_1.Event));
2034
+ exports.FilterEvent = FilterEvent;
2035
+ //# sourceMappingURL=FilterEvent.js.map
2036
+ });
2037
+
2038
+ var FilterEventAllOf_1 = createCommonjsModule(function (module, exports) {
2039
+ Object.defineProperty(exports, "__esModule", { value: true });
2040
+ exports.FilterEventAllOf = void 0;
2041
+ var FilterEventAllOf = (function () {
2042
+ function FilterEventAllOf() {
2043
+ }
2044
+ FilterEventAllOf.getAttributeTypeMap = function () {
2045
+ return FilterEventAllOf.attributeTypeMap;
2046
+ };
2047
+ FilterEventAllOf.discriminator = undefined;
2048
+ FilterEventAllOf.attributeTypeMap = [
2049
+ {
2050
+ "name": "widget",
2051
+ "baseName": "widget",
2052
+ "type": "Widget",
2053
+ "format": ""
2054
+ },
2055
+ {
2056
+ "name": "action",
2057
+ "baseName": "action",
2058
+ "type": "FilterAction",
2059
+ "format": ""
2060
+ },
2061
+ {
2062
+ "name": "kind",
2063
+ "baseName": "kind",
2064
+ "type": "FilterKind",
2065
+ "format": ""
2066
+ }
2067
+ ];
2068
+ return FilterEventAllOf;
2069
+ }());
2070
+ exports.FilterEventAllOf = FilterEventAllOf;
2071
+ //# sourceMappingURL=FilterEventAllOf.js.map
2072
+ });
2073
+
2074
+ var FilterKind = createCommonjsModule(function (module, exports) {
2075
+ Object.defineProperty(exports, "__esModule", { value: true });
2076
+ //# sourceMappingURL=FilterKind.js.map
2077
+ });
2078
+
2079
+ var ProductClickEvent_1 = createCommonjsModule(function (module, exports) {
2080
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2081
+ var extendStatics = function (d, b) {
2082
+ extendStatics = Object.setPrototypeOf ||
2083
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2084
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2085
+ return extendStatics(d, b);
2086
+ };
2087
+ return function (d, b) {
2088
+ if (typeof b !== "function" && b !== null)
2089
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2090
+ extendStatics(d, b);
2091
+ function __() { this.constructor = d; }
2092
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2093
+ };
2094
+ })();
2095
+ Object.defineProperty(exports, "__esModule", { value: true });
2096
+ exports.ProductClickEvent = void 0;
2097
+
2098
+ var ProductClickEvent = (function (_super) {
2099
+ __extends(ProductClickEvent, _super);
2100
+ function ProductClickEvent() {
2101
+ var _this = _super.call(this) || this;
2102
+ _this.typ = "ProductClickEvent";
2103
+ return _this;
2104
+ }
2105
+ ProductClickEvent.getAttributeTypeMap = function () {
2106
+ return _super.getAttributeTypeMap.call(this).concat(ProductClickEvent.attributeTypeMap);
2107
+ };
2108
+ ProductClickEvent.discriminator = undefined;
2109
+ ProductClickEvent.attributeTypeMap = [
2110
+ {
2111
+ "name": "widget",
2112
+ "baseName": "widget",
2113
+ "type": "Widget",
2114
+ "format": ""
2115
+ },
2116
+ {
2117
+ "name": "product",
2118
+ "baseName": "product",
2119
+ "type": "string",
2120
+ "format": ""
2121
+ },
2122
+ {
2123
+ "name": "rank",
2124
+ "baseName": "rank",
2125
+ "type": "number",
2126
+ "format": ""
2127
+ }
2128
+ ];
2129
+ return ProductClickEvent;
2130
+ }(Event_1.Event));
2131
+ exports.ProductClickEvent = ProductClickEvent;
2132
+ //# sourceMappingURL=ProductClickEvent.js.map
2133
+ });
2134
+
2135
+ var ProductViewEvent_1 = createCommonjsModule(function (module, exports) {
2136
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2137
+ var extendStatics = function (d, b) {
2138
+ extendStatics = Object.setPrototypeOf ||
2139
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2140
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2141
+ return extendStatics(d, b);
2142
+ };
2143
+ return function (d, b) {
2144
+ if (typeof b !== "function" && b !== null)
2145
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2146
+ extendStatics(d, b);
2147
+ function __() { this.constructor = d; }
2148
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2149
+ };
2150
+ })();
2151
+ Object.defineProperty(exports, "__esModule", { value: true });
2152
+ exports.ProductViewEvent = void 0;
2153
+
2154
+ var ProductViewEvent = (function (_super) {
2155
+ __extends(ProductViewEvent, _super);
2156
+ function ProductViewEvent() {
2157
+ var _this = _super.call(this) || this;
2158
+ _this.typ = "ProductViewEvent";
2159
+ return _this;
2160
+ }
2161
+ ProductViewEvent.getAttributeTypeMap = function () {
2162
+ return _super.getAttributeTypeMap.call(this).concat(ProductViewEvent.attributeTypeMap);
2163
+ };
2164
+ ProductViewEvent.discriminator = undefined;
2165
+ ProductViewEvent.attributeTypeMap = [
2166
+ {
2167
+ "name": "widget",
2168
+ "baseName": "widget",
2169
+ "type": "Widget",
2170
+ "format": ""
2171
+ },
2172
+ {
2173
+ "name": "product",
2174
+ "baseName": "product",
2175
+ "type": "string",
2176
+ "format": ""
2177
+ },
2178
+ {
2179
+ "name": "rank",
2180
+ "baseName": "rank",
2181
+ "type": "number",
2182
+ "format": ""
2183
+ }
2184
+ ];
2185
+ return ProductViewEvent;
2186
+ }(Event_1.Event));
2187
+ exports.ProductViewEvent = ProductViewEvent;
2188
+ //# sourceMappingURL=ProductViewEvent.js.map
2189
+ });
2190
+
2191
+ var ProductViewEventAllOf_1 = createCommonjsModule(function (module, exports) {
2192
+ Object.defineProperty(exports, "__esModule", { value: true });
2193
+ exports.ProductViewEventAllOf = void 0;
2194
+ var ProductViewEventAllOf = (function () {
2195
+ function ProductViewEventAllOf() {
2196
+ }
2197
+ ProductViewEventAllOf.getAttributeTypeMap = function () {
2198
+ return ProductViewEventAllOf.attributeTypeMap;
2199
+ };
2200
+ ProductViewEventAllOf.discriminator = undefined;
2201
+ ProductViewEventAllOf.attributeTypeMap = [
2202
+ {
2203
+ "name": "widget",
2204
+ "baseName": "widget",
2205
+ "type": "Widget",
2206
+ "format": ""
2207
+ },
2208
+ {
2209
+ "name": "product",
2210
+ "baseName": "product",
2211
+ "type": "string",
2212
+ "format": ""
2213
+ },
2214
+ {
2215
+ "name": "rank",
2216
+ "baseName": "rank",
2217
+ "type": "number",
2218
+ "format": ""
2219
+ }
2220
+ ];
2221
+ return ProductViewEventAllOf;
2222
+ }());
2223
+ exports.ProductViewEventAllOf = ProductViewEventAllOf;
2224
+ //# sourceMappingURL=ProductViewEventAllOf.js.map
2225
+ });
2226
+
2227
+ var SearchArea = createCommonjsModule(function (module, exports) {
2228
+ Object.defineProperty(exports, "__esModule", { value: true });
2229
+ //# sourceMappingURL=SearchArea.js.map
2230
+ });
2231
+
2232
+ var SearchEvent_1 = createCommonjsModule(function (module, exports) {
2233
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2234
+ var extendStatics = function (d, b) {
2235
+ extendStatics = Object.setPrototypeOf ||
2236
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2237
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2238
+ return extendStatics(d, b);
2239
+ };
2240
+ return function (d, b) {
2241
+ if (typeof b !== "function" && b !== null)
2242
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2243
+ extendStatics(d, b);
2244
+ function __() { this.constructor = d; }
2245
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2246
+ };
2247
+ })();
2248
+ Object.defineProperty(exports, "__esModule", { value: true });
2249
+ exports.SearchEvent = void 0;
2250
+
2251
+ var SearchEvent = (function (_super) {
2252
+ __extends(SearchEvent, _super);
2253
+ function SearchEvent() {
2254
+ var _this = _super.call(this) || this;
2255
+ _this.typ = "SearchEvent";
2256
+ return _this;
2257
+ }
2258
+ SearchEvent.getAttributeTypeMap = function () {
2259
+ return _super.getAttributeTypeMap.call(this).concat(SearchEvent.attributeTypeMap);
2260
+ };
2261
+ SearchEvent.discriminator = undefined;
2262
+ SearchEvent.attributeTypeMap = [
2263
+ {
2264
+ "name": "widget",
2265
+ "baseName": "widget",
2266
+ "type": "Widget",
2267
+ "format": ""
2268
+ },
2269
+ {
2270
+ "name": "source",
2271
+ "baseName": "source",
2272
+ "type": "SearchImageSource",
2273
+ "format": ""
2274
+ },
2275
+ {
2276
+ "name": "search_area",
2277
+ "baseName": "search_area",
2278
+ "type": "SearchArea",
2279
+ "format": ""
2280
+ }
2281
+ ];
2282
+ return SearchEvent;
2283
+ }(Event_1.Event));
2284
+ exports.SearchEvent = SearchEvent;
2285
+ //# sourceMappingURL=SearchEvent.js.map
2286
+ });
2287
+
2288
+ var SearchEventAllOf_1 = createCommonjsModule(function (module, exports) {
2289
+ Object.defineProperty(exports, "__esModule", { value: true });
2290
+ exports.SearchEventAllOf = void 0;
2291
+ var SearchEventAllOf = (function () {
2292
+ function SearchEventAllOf() {
2293
+ }
2294
+ SearchEventAllOf.getAttributeTypeMap = function () {
2295
+ return SearchEventAllOf.attributeTypeMap;
2296
+ };
2297
+ SearchEventAllOf.discriminator = undefined;
2298
+ SearchEventAllOf.attributeTypeMap = [
2299
+ {
2300
+ "name": "widget",
2301
+ "baseName": "widget",
2302
+ "type": "Widget",
2303
+ "format": ""
2304
+ },
2305
+ {
2306
+ "name": "source",
2307
+ "baseName": "source",
2308
+ "type": "SearchImageSource",
2309
+ "format": ""
2310
+ },
2311
+ {
2312
+ "name": "search_area",
2313
+ "baseName": "search_area",
2314
+ "type": "SearchArea",
2315
+ "format": ""
2316
+ }
2317
+ ];
2318
+ return SearchEventAllOf;
2319
+ }());
2320
+ exports.SearchEventAllOf = SearchEventAllOf;
2321
+ //# sourceMappingURL=SearchEventAllOf.js.map
2322
+ });
2323
+
2324
+ var SearchImageSource = createCommonjsModule(function (module, exports) {
2325
+ Object.defineProperty(exports, "__esModule", { value: true });
2326
+ //# sourceMappingURL=SearchImageSource.js.map
2327
+ });
2328
+
2329
+ var Widget = createCommonjsModule(function (module, exports) {
2330
+ Object.defineProperty(exports, "__esModule", { value: true });
2331
+ //# sourceMappingURL=Widget.js.map
2332
+ });
2333
+
2334
+ var WidgetAction = createCommonjsModule(function (module, exports) {
2335
+ Object.defineProperty(exports, "__esModule", { value: true });
2336
+ //# sourceMappingURL=WidgetAction.js.map
2337
+ });
2338
+
2339
+ var WidgetEvent_1 = createCommonjsModule(function (module, exports) {
2340
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2341
+ var extendStatics = function (d, b) {
2342
+ extendStatics = Object.setPrototypeOf ||
2343
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2344
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2345
+ return extendStatics(d, b);
2346
+ };
2347
+ return function (d, b) {
2348
+ if (typeof b !== "function" && b !== null)
2349
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2350
+ extendStatics(d, b);
2351
+ function __() { this.constructor = d; }
2352
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2353
+ };
2354
+ })();
2355
+ Object.defineProperty(exports, "__esModule", { value: true });
2356
+ exports.WidgetEvent = void 0;
2357
+
2358
+ var WidgetEvent = (function (_super) {
2359
+ __extends(WidgetEvent, _super);
2360
+ function WidgetEvent() {
2361
+ var _this = _super.call(this) || this;
2362
+ _this.typ = "WidgetEvent";
2363
+ return _this;
2364
+ }
2365
+ WidgetEvent.getAttributeTypeMap = function () {
2366
+ return _super.getAttributeTypeMap.call(this).concat(WidgetEvent.attributeTypeMap);
2367
+ };
2368
+ WidgetEvent.discriminator = undefined;
2369
+ WidgetEvent.attributeTypeMap = [
2370
+ {
2371
+ "name": "widget",
2372
+ "baseName": "widget",
2373
+ "type": "Widget",
2374
+ "format": ""
2375
+ },
2376
+ {
2377
+ "name": "action",
2378
+ "baseName": "action",
2379
+ "type": "WidgetAction",
2380
+ "format": ""
2381
+ }
2382
+ ];
2383
+ return WidgetEvent;
2384
+ }(Event_1.Event));
2385
+ exports.WidgetEvent = WidgetEvent;
2386
+ //# sourceMappingURL=WidgetEvent.js.map
2387
+ });
2388
+
2389
+ var WidgetEventAllOf_1 = createCommonjsModule(function (module, exports) {
2390
+ Object.defineProperty(exports, "__esModule", { value: true });
2391
+ exports.WidgetEventAllOf = void 0;
2392
+ var WidgetEventAllOf = (function () {
2393
+ function WidgetEventAllOf() {
2394
+ }
2395
+ WidgetEventAllOf.getAttributeTypeMap = function () {
2396
+ return WidgetEventAllOf.attributeTypeMap;
2397
+ };
2398
+ WidgetEventAllOf.discriminator = undefined;
2399
+ WidgetEventAllOf.attributeTypeMap = [
2400
+ {
2401
+ "name": "widget",
2402
+ "baseName": "widget",
2403
+ "type": "Widget",
2404
+ "format": ""
2405
+ },
2406
+ {
2407
+ "name": "action",
2408
+ "baseName": "action",
2409
+ "type": "WidgetAction",
2410
+ "format": ""
2411
+ }
2412
+ ];
2413
+ return WidgetEventAllOf;
2414
+ }());
2415
+ exports.WidgetEventAllOf = WidgetEventAllOf;
2416
+ //# sourceMappingURL=WidgetEventAllOf.js.map
2417
+ });
2418
+
2419
+ var all = createCommonjsModule(function (module, exports) {
2420
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2421
+ if (k2 === undefined) k2 = k;
2422
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2423
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2424
+ desc = { enumerable: true, get: function() { return m[k]; } };
2425
+ }
2426
+ Object.defineProperty(o, k2, desc);
2427
+ }) : (function(o, m, k, k2) {
2428
+ if (k2 === undefined) k2 = k;
2429
+ o[k2] = m[k];
2430
+ }));
2431
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2432
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2433
+ };
2434
+ Object.defineProperty(exports, "__esModule", { value: true });
2435
+ __exportStar(ErrorObject_1, exports);
2436
+ __exportStar(ErrorResponse_1, exports);
2437
+ __exportStar(Event_1, exports);
2438
+ __exportStar(EventConfirmation_1, exports);
2439
+ __exportStar(FilterAction, exports);
2440
+ __exportStar(FilterEvent_1, exports);
2441
+ __exportStar(FilterEventAllOf_1, exports);
2442
+ __exportStar(FilterKind, exports);
2443
+ __exportStar(ProductClickEvent_1, exports);
2444
+ __exportStar(ProductViewEvent_1, exports);
2445
+ __exportStar(ProductViewEventAllOf_1, exports);
2446
+ __exportStar(SearchArea, exports);
2447
+ __exportStar(SearchEvent_1, exports);
2448
+ __exportStar(SearchEventAllOf_1, exports);
2449
+ __exportStar(SearchImageSource, exports);
2450
+ __exportStar(Widget, exports);
2451
+ __exportStar(WidgetAction, exports);
2452
+ __exportStar(WidgetEvent_1, exports);
2453
+ __exportStar(WidgetEventAllOf_1, exports);
2454
+ //# sourceMappingURL=all.js.map
2455
+ });
2456
+
2457
+ var middleware = createCommonjsModule(function (module, exports) {
2458
+ Object.defineProperty(exports, "__esModule", { value: true });
2459
+ exports.PromiseMiddlewareWrapper = void 0;
2460
+
2461
+ var PromiseMiddlewareWrapper = (function () {
2462
+ function PromiseMiddlewareWrapper(middleware) {
2463
+ this.middleware = middleware;
2464
+ }
2465
+ PromiseMiddlewareWrapper.prototype.pre = function (context) {
2466
+ return (0, rxjsStub.from)(this.middleware.pre(context));
2467
+ };
2468
+ PromiseMiddlewareWrapper.prototype.post = function (context) {
2469
+ return (0, rxjsStub.from)(this.middleware.post(context));
2470
+ };
2471
+ return PromiseMiddlewareWrapper;
2472
+ }());
2473
+ exports.PromiseMiddlewareWrapper = PromiseMiddlewareWrapper;
2474
+ //# sourceMappingURL=middleware.js.map
2475
+ });
2476
+
2477
+ var servers = createCommonjsModule(function (module, exports) {
2478
+ Object.defineProperty(exports, "__esModule", { value: true });
2479
+ exports.servers = exports.server2 = exports.server1 = exports.ServerConfiguration = void 0;
2480
+
2481
+ var ServerConfiguration = (function () {
2482
+ function ServerConfiguration(url, variableConfiguration) {
2483
+ this.url = url;
2484
+ this.variableConfiguration = variableConfiguration;
2485
+ }
2486
+ ServerConfiguration.prototype.setVariables = function (variableConfiguration) {
2487
+ Object.assign(this.variableConfiguration, variableConfiguration);
2488
+ };
2489
+ ServerConfiguration.prototype.getConfiguration = function () {
2490
+ return this.variableConfiguration;
2491
+ };
2492
+ ServerConfiguration.prototype.getUrl = function () {
2493
+ var replacedUrl = this.url;
2494
+ for (var key in this.variableConfiguration) {
2495
+ var re = new RegExp("{" + key + "}", "g");
2496
+ replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]);
2497
+ }
2498
+ return replacedUrl;
2499
+ };
2500
+ ServerConfiguration.prototype.makeRequestContext = function (endpoint, httpMethod) {
2501
+ return new http.RequestContext(this.getUrl() + endpoint, httpMethod);
2502
+ };
2503
+ return ServerConfiguration;
2504
+ }());
2505
+ exports.ServerConfiguration = ServerConfiguration;
2506
+ exports.server1 = new ServerConfiguration("https://tracking.vviinn.com", {});
2507
+ exports.server2 = new ServerConfiguration("https://tracking.stage.vviinn.com", {});
2508
+ exports.servers = [exports.server1, exports.server2];
2509
+ //# sourceMappingURL=servers.js.map
2510
+ });
2511
+
2512
+ var configuration = createCommonjsModule(function (module, exports) {
2513
+ Object.defineProperty(exports, "__esModule", { value: true });
2514
+ exports.createConfiguration = void 0;
2515
+
2516
+
2517
+
2518
+
2519
+ function createConfiguration(conf) {
2520
+ if (conf === void 0) { conf = {}; }
2521
+ var configuration = {
2522
+ baseServer: conf.baseServer !== undefined ? conf.baseServer : servers.server1,
2523
+ httpApi: conf.httpApi || new isomorphicFetch.IsomorphicFetchHttpLibrary(),
2524
+ middleware: conf.middleware || [],
2525
+ authMethods: (0, auth.configureAuthMethods)(conf.authMethods)
2526
+ };
2527
+ if (conf.promiseMiddleware) {
2528
+ conf.promiseMiddleware.forEach(function (m) { return configuration.middleware.push(new middleware.PromiseMiddlewareWrapper(m)); });
2529
+ }
2530
+ return configuration;
2531
+ }
2532
+ exports.createConfiguration = createConfiguration;
2533
+ //# sourceMappingURL=configuration.js.map
2534
+ });
2535
+
2536
+ var exception = createCommonjsModule(function (module, exports) {
2537
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2538
+ var extendStatics = function (d, b) {
2539
+ extendStatics = Object.setPrototypeOf ||
2540
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2541
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2542
+ return extendStatics(d, b);
2543
+ };
2544
+ return function (d, b) {
2545
+ if (typeof b !== "function" && b !== null)
2546
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2547
+ extendStatics(d, b);
2548
+ function __() { this.constructor = d; }
2549
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2550
+ };
2551
+ })();
2552
+ Object.defineProperty(exports, "__esModule", { value: true });
2553
+ exports.ApiException = void 0;
2554
+ var ApiException = (function (_super) {
2555
+ __extends(ApiException, _super);
2556
+ function ApiException(code, message, body, headers) {
2557
+ var _this = _super.call(this, "HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " +
2558
+ JSON.stringify(headers)) || this;
2559
+ _this.code = code;
2560
+ _this.body = body;
2561
+ _this.headers = headers;
2562
+ return _this;
2563
+ }
2564
+ return ApiException;
2565
+ }(Error));
2566
+ exports.ApiException = ApiException;
2567
+ //# sourceMappingURL=exception.js.map
2568
+ });
2569
+
2570
+ var baseapi = createCommonjsModule(function (module, exports) {
2571
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2572
+ var extendStatics = function (d, b) {
2573
+ extendStatics = Object.setPrototypeOf ||
2574
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2575
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2576
+ return extendStatics(d, b);
2577
+ };
2578
+ return function (d, b) {
2579
+ if (typeof b !== "function" && b !== null)
2580
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2581
+ extendStatics(d, b);
2582
+ function __() { this.constructor = d; }
2583
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2584
+ };
2585
+ })();
2586
+ Object.defineProperty(exports, "__esModule", { value: true });
2587
+ exports.RequiredError = exports.BaseAPIRequestFactory = exports.COLLECTION_FORMATS = void 0;
2588
+ exports.COLLECTION_FORMATS = {
2589
+ csv: ",",
2590
+ ssv: " ",
2591
+ tsv: "\t",
2592
+ pipes: "|",
2593
+ };
2594
+ var BaseAPIRequestFactory = (function () {
2595
+ function BaseAPIRequestFactory(configuration) {
2596
+ this.configuration = configuration;
2597
+ }
2598
+ return BaseAPIRequestFactory;
2599
+ }());
2600
+ exports.BaseAPIRequestFactory = BaseAPIRequestFactory;
2601
+ var RequiredError = (function (_super) {
2602
+ __extends(RequiredError, _super);
2603
+ function RequiredError(api, method, field) {
2604
+ var _this = _super.call(this, "Required parameter " + field + " was null or undefined when calling " + api + "." + method + ".") || this;
2605
+ _this.api = api;
2606
+ _this.method = method;
2607
+ _this.field = field;
2608
+ _this.name = "RequiredError";
2609
+ return _this;
2610
+ }
2611
+ return RequiredError;
2612
+ }(Error));
2613
+ exports.RequiredError = RequiredError;
2614
+ //# sourceMappingURL=baseapi.js.map
2615
+ });
2616
+
2617
+ var ObjectSerializer_1 = createCommonjsModule(function (module, exports) {
2618
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2619
+ if (k2 === undefined) k2 = k;
2620
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2621
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2622
+ desc = { enumerable: true, get: function() { return m[k]; } };
2623
+ }
2624
+ Object.defineProperty(o, k2, desc);
2625
+ }) : (function(o, m, k, k2) {
2626
+ if (k2 === undefined) k2 = k;
2627
+ o[k2] = m[k];
2628
+ }));
2629
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2630
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2631
+ };
2632
+ Object.defineProperty(exports, "__esModule", { value: true });
2633
+ exports.ObjectSerializer = void 0;
2634
+ __exportStar(ErrorObject_1, exports);
2635
+ __exportStar(ErrorResponse_1, exports);
2636
+ __exportStar(Event_1, exports);
2637
+ __exportStar(EventConfirmation_1, exports);
2638
+ __exportStar(FilterAction, exports);
2639
+ __exportStar(FilterEvent_1, exports);
2640
+ __exportStar(FilterEventAllOf_1, exports);
2641
+ __exportStar(FilterKind, exports);
2642
+ __exportStar(ProductClickEvent_1, exports);
2643
+ __exportStar(ProductViewEvent_1, exports);
2644
+ __exportStar(ProductViewEventAllOf_1, exports);
2645
+ __exportStar(SearchArea, exports);
2646
+ __exportStar(SearchEvent_1, exports);
2647
+ __exportStar(SearchEventAllOf_1, exports);
2648
+ __exportStar(SearchImageSource, exports);
2649
+ __exportStar(Widget, exports);
2650
+ __exportStar(WidgetAction, exports);
2651
+ __exportStar(WidgetEvent_1, exports);
2652
+ __exportStar(WidgetEventAllOf_1, exports);
2653
+ var ErrorObject_1$1 = ErrorObject_1;
2654
+ var ErrorResponse_1$1 = ErrorResponse_1;
2655
+ var Event_1$1 = Event_1;
2656
+ var EventConfirmation_1$1 = EventConfirmation_1;
2657
+ var FilterEvent_1$1 = FilterEvent_1;
2658
+ var FilterEventAllOf_1$1 = FilterEventAllOf_1;
2659
+ var ProductClickEvent_1$1 = ProductClickEvent_1;
2660
+ var ProductViewEvent_1$1 = ProductViewEvent_1;
2661
+ var ProductViewEventAllOf_1$1 = ProductViewEventAllOf_1;
2662
+ var SearchEvent_1$1 = SearchEvent_1;
2663
+ var SearchEventAllOf_1$1 = SearchEventAllOf_1;
2664
+ var WidgetEvent_1$1 = WidgetEvent_1;
2665
+ var WidgetEventAllOf_1$1 = WidgetEventAllOf_1;
2666
+ var primitives = [
2667
+ "string",
2668
+ "boolean",
2669
+ "double",
2670
+ "integer",
2671
+ "long",
2672
+ "float",
2673
+ "number",
2674
+ "any"
2675
+ ];
2676
+ var supportedMediaTypes = {
2677
+ "application/json": Infinity,
2678
+ "application/octet-stream": 0,
2679
+ "application/x-www-form-urlencoded": 0
2680
+ };
2681
+ var enumsMap = new Set([
2682
+ "EventConfirmationStatusEnum",
2683
+ "FilterAction",
2684
+ "FilterKind",
2685
+ "SearchArea",
2686
+ "SearchImageSource",
2687
+ "Widget",
2688
+ "WidgetAction",
2689
+ ]);
2690
+ var typeMap = {
2691
+ "ErrorObject": ErrorObject_1$1.ErrorObject,
2692
+ "ErrorResponse": ErrorResponse_1$1.ErrorResponse,
2693
+ "Event": Event_1$1.Event,
2694
+ "EventConfirmation": EventConfirmation_1$1.EventConfirmation,
2695
+ "FilterEvent": FilterEvent_1$1.FilterEvent,
2696
+ "FilterEventAllOf": FilterEventAllOf_1$1.FilterEventAllOf,
2697
+ "ProductClickEvent": ProductClickEvent_1$1.ProductClickEvent,
2698
+ "ProductViewEvent": ProductViewEvent_1$1.ProductViewEvent,
2699
+ "ProductViewEventAllOf": ProductViewEventAllOf_1$1.ProductViewEventAllOf,
2700
+ "SearchEvent": SearchEvent_1$1.SearchEvent,
2701
+ "SearchEventAllOf": SearchEventAllOf_1$1.SearchEventAllOf,
2702
+ "WidgetEvent": WidgetEvent_1$1.WidgetEvent,
2703
+ "WidgetEventAllOf": WidgetEventAllOf_1$1.WidgetEventAllOf,
2704
+ };
2705
+ var ObjectSerializer = (function () {
2706
+ function ObjectSerializer() {
2707
+ }
2708
+ ObjectSerializer.findCorrectType = function (data, expectedType) {
2709
+ if (data == undefined) {
2710
+ return expectedType;
2711
+ }
2712
+ else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
2713
+ return expectedType;
2714
+ }
2715
+ else if (expectedType === "Date") {
2716
+ return expectedType;
2717
+ }
2718
+ else {
2719
+ if (enumsMap.has(expectedType)) {
2720
+ return expectedType;
2721
+ }
2722
+ if (!typeMap[expectedType]) {
2723
+ return expectedType;
2724
+ }
2725
+ var discriminatorProperty = typeMap[expectedType].discriminator;
2726
+ if (discriminatorProperty == null) {
2727
+ return expectedType;
2728
+ }
2729
+ else {
2730
+ if (data[discriminatorProperty]) {
2731
+ var discriminatorType = data[discriminatorProperty];
2732
+ if (typeMap[discriminatorType]) {
2733
+ return discriminatorType;
2734
+ }
2735
+ else {
2736
+ return expectedType;
2737
+ }
2738
+ }
2739
+ else {
2740
+ return expectedType;
2741
+ }
2742
+ }
2743
+ }
2744
+ };
2745
+ ObjectSerializer.serialize = function (data, type, format) {
2746
+ if (data == undefined) {
2747
+ return data;
2748
+ }
2749
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
2750
+ return data;
2751
+ }
2752
+ else if (type.lastIndexOf("Array<", 0) === 0) {
2753
+ var subType = type.replace("Array<", "");
2754
+ subType = subType.substring(0, subType.length - 1);
2755
+ var transformedData = [];
2756
+ for (var index in data) {
2757
+ var date = data[index];
2758
+ transformedData.push(ObjectSerializer.serialize(date, subType, format));
2759
+ }
2760
+ return transformedData;
2761
+ }
2762
+ else if (type === "Date") {
2763
+ if (format == "date") {
2764
+ var month = data.getMonth() + 1;
2765
+ month = month < 10 ? "0" + month.toString() : month.toString();
2766
+ var day = data.getDate();
2767
+ day = day < 10 ? "0" + day.toString() : day.toString();
2768
+ return data.getFullYear() + "-" + month + "-" + day;
2769
+ }
2770
+ else {
2771
+ return data.toISOString();
2772
+ }
2773
+ }
2774
+ else {
2775
+ if (enumsMap.has(type)) {
2776
+ return data;
2777
+ }
2778
+ if (!typeMap[type]) {
2779
+ return data;
2780
+ }
2781
+ type = this.findCorrectType(data, type);
2782
+ var attributeTypes = typeMap[type].getAttributeTypeMap();
2783
+ var instance = {};
2784
+ for (var index in attributeTypes) {
2785
+ var attributeType = attributeTypes[index];
2786
+ instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format);
2787
+ }
2788
+ return instance;
2789
+ }
2790
+ };
2791
+ ObjectSerializer.deserialize = function (data, type, format) {
2792
+ type = ObjectSerializer.findCorrectType(data, type);
2793
+ if (data == undefined) {
2794
+ return data;
2795
+ }
2796
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
2797
+ return data;
2798
+ }
2799
+ else if (type.lastIndexOf("Array<", 0) === 0) {
2800
+ var subType = type.replace("Array<", "");
2801
+ subType = subType.substring(0, subType.length - 1);
2802
+ var transformedData = [];
2803
+ for (var index in data) {
2804
+ var date = data[index];
2805
+ transformedData.push(ObjectSerializer.deserialize(date, subType, format));
2806
+ }
2807
+ return transformedData;
2808
+ }
2809
+ else if (type === "Date") {
2810
+ return new Date(data);
2811
+ }
2812
+ else {
2813
+ if (enumsMap.has(type)) {
2814
+ return data;
2815
+ }
2816
+ if (!typeMap[type]) {
2817
+ return data;
2818
+ }
2819
+ var instance = new typeMap[type]();
2820
+ var attributeTypes = typeMap[type].getAttributeTypeMap();
2821
+ for (var index in attributeTypes) {
2822
+ var attributeType = attributeTypes[index];
2823
+ instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format);
2824
+ }
2825
+ return instance;
2826
+ }
2827
+ };
2828
+ ObjectSerializer.normalizeMediaType = function (mediaType) {
2829
+ if (mediaType === undefined) {
2830
+ return undefined;
2831
+ }
2832
+ return mediaType.split(";")[0].trim().toLowerCase();
2833
+ };
2834
+ ObjectSerializer.getPreferredMediaType = function (mediaTypes) {
2835
+ if (!mediaTypes) {
2836
+ return "application/json";
2837
+ }
2838
+ var normalMediaTypes = mediaTypes.map(this.normalizeMediaType);
2839
+ var selectedMediaType = undefined;
2840
+ var selectedRank = -Infinity;
2841
+ for (var _i = 0, normalMediaTypes_1 = normalMediaTypes; _i < normalMediaTypes_1.length; _i++) {
2842
+ var mediaType = normalMediaTypes_1[_i];
2843
+ if (supportedMediaTypes[mediaType] > selectedRank) {
2844
+ selectedMediaType = mediaType;
2845
+ selectedRank = supportedMediaTypes[mediaType];
2846
+ }
2847
+ }
2848
+ if (selectedMediaType === undefined) {
2849
+ throw new Error("None of the given media types are supported: " + mediaTypes.join(", "));
2850
+ }
2851
+ return selectedMediaType;
2852
+ };
2853
+ ObjectSerializer.stringify = function (data, mediaType) {
2854
+ if (mediaType === "application/json") {
2855
+ return JSON.stringify(data);
2856
+ }
2857
+ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify.");
2858
+ };
2859
+ ObjectSerializer.parse = function (rawData, mediaType) {
2860
+ if (mediaType === undefined) {
2861
+ throw new Error("Cannot parse content. No Content-Type defined.");
2862
+ }
2863
+ if (mediaType === "application/json") {
2864
+ return JSON.parse(rawData);
2865
+ }
2866
+ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse.");
2867
+ };
2868
+ return ObjectSerializer;
2869
+ }());
2870
+ exports.ObjectSerializer = ObjectSerializer;
2871
+ //# sourceMappingURL=ObjectSerializer.js.map
2872
+ });
2873
+
2874
+ var util = createCommonjsModule(function (module, exports) {
2875
+ Object.defineProperty(exports, "__esModule", { value: true });
2876
+ exports.canConsumeForm = exports.isCodeInRange = void 0;
2877
+ function isCodeInRange(codeRange, code) {
2878
+ if (codeRange === "0") {
2879
+ return true;
2880
+ }
2881
+ if (codeRange == code.toString()) {
2882
+ return true;
2883
+ }
2884
+ else {
2885
+ var codeString = code.toString();
2886
+ if (codeString.length != codeRange.length) {
2887
+ return false;
2888
+ }
2889
+ for (var i = 0; i < codeString.length; i++) {
2890
+ if (codeRange.charAt(i) != "X" && codeRange.charAt(i) != codeString.charAt(i)) {
2891
+ return false;
2892
+ }
2893
+ }
2894
+ return true;
2895
+ }
2896
+ }
2897
+ exports.isCodeInRange = isCodeInRange;
2898
+ function canConsumeForm(contentTypes) {
2899
+ return contentTypes.indexOf('multipart/form-data') !== -1;
2900
+ }
2901
+ exports.canConsumeForm = canConsumeForm;
2902
+ //# sourceMappingURL=util.js.map
2903
+ });
2904
+
2905
+ var DefaultApi = createCommonjsModule(function (module, exports) {
2906
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
2907
+ var extendStatics = function (d, b) {
2908
+ extendStatics = Object.setPrototypeOf ||
2909
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2910
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2911
+ return extendStatics(d, b);
2912
+ };
2913
+ return function (d, b) {
2914
+ if (typeof b !== "function" && b !== null)
2915
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2916
+ extendStatics(d, b);
2917
+ function __() { this.constructor = d; }
2918
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2919
+ };
2920
+ })();
2921
+ var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
2922
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2923
+ return new (P || (P = Promise))(function (resolve, reject) {
2924
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2925
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2926
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2927
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
2928
+ });
2929
+ };
2930
+ var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
2931
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
2932
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2933
+ function verb(n) { return function (v) { return step([n, v]); }; }
2934
+ function step(op) {
2935
+ if (f) throw new TypeError("Generator is already executing.");
2936
+ while (_) try {
2937
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
2938
+ if (y = 0, t) op = [op[0] & 2, t.value];
2939
+ switch (op[0]) {
2940
+ case 0: case 1: t = op; break;
2941
+ case 4: _.label++; return { value: op[1], done: false };
2942
+ case 5: _.label++; y = op[1]; op = [0]; continue;
2943
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
2944
+ default:
2945
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2946
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2947
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2948
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2949
+ if (t[2]) _.ops.pop();
2950
+ _.trys.pop(); continue;
2951
+ }
2952
+ op = body.call(thisArg, _);
2953
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2954
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2955
+ }
2956
+ };
2957
+ Object.defineProperty(exports, "__esModule", { value: true });
2958
+ exports.DefaultApiResponseProcessor = exports.DefaultApiRequestFactory = void 0;
2959
+
2960
+
2961
+
2962
+
2963
+
2964
+ var DefaultApiRequestFactory = (function (_super) {
2965
+ __extends(DefaultApiRequestFactory, _super);
2966
+ function DefaultApiRequestFactory() {
2967
+ return _super !== null && _super.apply(this, arguments) || this;
2968
+ }
2969
+ DefaultApiRequestFactory.prototype.trackEvent = function (product_view_event___product_click_event___widget_event___filter_event___search_event, _options) {
2970
+ var _a, _b, _c;
2971
+ return __awaiter(this, void 0, void 0, function () {
2972
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
2973
+ return __generator(this, function (_d) {
2974
+ switch (_d.label) {
2975
+ case 0:
2976
+ _config = _options || this.configuration;
2977
+ localVarPath = '/event';
2978
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http.HttpMethod.POST);
2979
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
2980
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
2981
+ "application/json"
2982
+ ]);
2983
+ requestContext.setHeaderParam("Content-Type", contentType);
2984
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(product_view_event___product_click_event___widget_event___filter_event___search_event, "ProductViewEvent | ProductClickEvent | WidgetEvent | FilterEvent | SearchEvent", ""), contentType);
2985
+ requestContext.setBody(serializedBody);
2986
+ authMethod = _config.authMethods["bearerAuth"];
2987
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
2988
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
2989
+ case 1:
2990
+ _d.sent();
2991
+ _d.label = 2;
2992
+ case 2:
2993
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
2994
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
2995
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
2996
+ case 3:
2997
+ _d.sent();
2998
+ _d.label = 4;
2999
+ case 4: return [2, requestContext];
3000
+ }
3001
+ });
3002
+ });
3003
+ };
3004
+ return DefaultApiRequestFactory;
3005
+ }(baseapi.BaseAPIRequestFactory));
3006
+ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
3007
+ var DefaultApiResponseProcessor = (function () {
3008
+ function DefaultApiResponseProcessor() {
3009
+ }
3010
+ DefaultApiResponseProcessor.prototype.trackEvent = function (response) {
3011
+ return __awaiter(this, void 0, void 0, function () {
3012
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
3013
+ return __generator(this, function (_q) {
3014
+ switch (_q.label) {
3015
+ case 0:
3016
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3017
+ if (!(0, util.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
3018
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3019
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3020
+ return [4, response.body.text()];
3021
+ case 1:
3022
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3023
+ "EventConfirmation", ""]);
3024
+ return [2, body];
3025
+ case 2:
3026
+ if (!(0, util.isCodeInRange)("502", response.httpStatusCode)) return [3, 4];
3027
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3028
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3029
+ return [4, response.body.text()];
3030
+ case 3:
3031
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
3032
+ "ErrorResponse", ""]);
3033
+ throw new exception.ApiException(502, "an error occurred", body, response.headers);
3034
+ case 4:
3035
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3036
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3037
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3038
+ return [4, response.body.text()];
3039
+ case 5:
3040
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3041
+ "EventConfirmation", ""]);
3042
+ return [2, body];
3043
+ case 6:
3044
+ _o = exception.ApiException.bind;
3045
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3046
+ return [4, response.getBodyAsAny()];
3047
+ case 7: throw new (_o.apply(exception.ApiException, _p.concat([_q.sent(), response.headers])))();
3048
+ }
3049
+ });
3050
+ });
3051
+ };
3052
+ return DefaultApiResponseProcessor;
3053
+ }());
3054
+ exports.DefaultApiResponseProcessor = DefaultApiResponseProcessor;
3055
+ //# sourceMappingURL=DefaultApi.js.map
3056
+ });
3057
+
3058
+ var ObservableAPI = createCommonjsModule(function (module, exports) {
3059
+ Object.defineProperty(exports, "__esModule", { value: true });
3060
+ exports.ObservableDefaultApi = void 0;
3061
+
3062
+ var rxjsStub_2 = rxjsStub;
3063
+
3064
+ var ObservableDefaultApi = (function () {
3065
+ function ObservableDefaultApi(configuration, requestFactory, responseProcessor) {
3066
+ this.configuration = configuration;
3067
+ this.requestFactory = requestFactory || new DefaultApi.DefaultApiRequestFactory(configuration);
3068
+ this.responseProcessor = responseProcessor || new DefaultApi.DefaultApiResponseProcessor();
3069
+ }
3070
+ ObservableDefaultApi.prototype.trackEvent = function (product_view_event___product_click_event___widget_event___filter_event___search_event, _options) {
3071
+ var _this = this;
3072
+ var requestContextPromise = this.requestFactory.trackEvent(product_view_event___product_click_event___widget_event___filter_event___search_event, _options);
3073
+ var middlewarePreObservable = (0, rxjsStub.from)(requestContextPromise);
3074
+ var _loop_1 = function (middleware) {
3075
+ middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)(function (ctx) { return middleware.pre(ctx); }));
3076
+ };
3077
+ for (var _i = 0, _a = this.configuration.middleware; _i < _a.length; _i++) {
3078
+ var middleware = _a[_i];
3079
+ _loop_1(middleware);
3080
+ }
3081
+ return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)(function (ctx) { return _this.configuration.httpApi.send(ctx); })).
3082
+ pipe((0, rxjsStub_2.mergeMap)(function (response) {
3083
+ var middlewarePostObservable = (0, rxjsStub.of)(response);
3084
+ var _loop_2 = function (middleware) {
3085
+ middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)(function (rsp) { return middleware.post(rsp); }));
3086
+ };
3087
+ for (var _i = 0, _a = _this.configuration.middleware; _i < _a.length; _i++) {
3088
+ var middleware = _a[_i];
3089
+ _loop_2(middleware);
3090
+ }
3091
+ return middlewarePostObservable.pipe((0, rxjsStub_2.map)(function (rsp) { return _this.responseProcessor.trackEvent(rsp); }));
3092
+ }));
3093
+ };
3094
+ return ObservableDefaultApi;
3095
+ }());
3096
+ exports.ObservableDefaultApi = ObservableDefaultApi;
3097
+ //# sourceMappingURL=ObservableAPI.js.map
3098
+ });
3099
+
3100
+ var PromiseAPI = createCommonjsModule(function (module, exports) {
3101
+ Object.defineProperty(exports, "__esModule", { value: true });
3102
+ exports.PromiseDefaultApi = void 0;
3103
+
3104
+ var PromiseDefaultApi = (function () {
3105
+ function PromiseDefaultApi(configuration, requestFactory, responseProcessor) {
3106
+ this.api = new ObservableAPI.ObservableDefaultApi(configuration, requestFactory, responseProcessor);
3107
+ }
3108
+ PromiseDefaultApi.prototype.trackEvent = function (product_view_event___product_click_event___widget_event___filter_event___search_event, _options) {
3109
+ var result = this.api.trackEvent(product_view_event___product_click_event___widget_event___filter_event___search_event, _options);
3110
+ return result.toPromise();
3111
+ };
3112
+ return PromiseDefaultApi;
3113
+ }());
3114
+ exports.PromiseDefaultApi = PromiseDefaultApi;
3115
+ //# sourceMappingURL=PromiseAPI.js.map
3116
+ });
3117
+
3118
+ var dist = createCommonjsModule(function (module, exports) {
3119
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3120
+ if (k2 === undefined) k2 = k;
3121
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3122
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3123
+ desc = { enumerable: true, get: function() { return m[k]; } };
3124
+ }
3125
+ Object.defineProperty(o, k2, desc);
3126
+ }) : (function(o, m, k, k2) {
3127
+ if (k2 === undefined) k2 = k;
3128
+ o[k2] = m[k];
3129
+ }));
3130
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3131
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3132
+ };
3133
+ Object.defineProperty(exports, "__esModule", { value: true });
3134
+ exports.DefaultApi = exports.createConfiguration = void 0;
3135
+ __exportStar(http, exports);
3136
+ __exportStar(auth, exports);
3137
+ __exportStar(all, exports);
3138
+
3139
+ Object.defineProperty(exports, "createConfiguration", { enumerable: true, get: function () { return configuration.createConfiguration; } });
3140
+ __exportStar(exception, exports);
3141
+ __exportStar(servers, exports);
3142
+
3143
+ Object.defineProperty(exports, "DefaultApi", { enumerable: true, get: function () { return PromiseAPI.PromiseDefaultApi; } });
3144
+ //# sourceMappingURL=index.js.map
3145
+ });
3146
+
3147
+ const STAGE_SERVER_IDENTIFIER = "stage";
3148
+ const getTrackingServerByApiPath = (apiPath) => isProductionPath(apiPath) ? dist.servers[0] : dist.servers[1];
3149
+ const isProductionPath = (apiPath) => !apiPath.includes(STAGE_SERVER_IDENTIFIER);
3150
+ // TODO find way to utilize this function when we will use several openApi clients
3151
+ const createBearerAuth = (token) => {
3152
+ const provider = {
3153
+ getToken: () => {
3154
+ return new Promise((resolve) => resolve(token));
3155
+ },
3156
+ };
3157
+ const bearerConf = {
3158
+ tokenProvider: provider,
3159
+ };
3160
+ return {
3161
+ bearerAuth: bearerConf,
3162
+ };
3163
+ };
3164
+ const createTrackingApi = (apiPath, token) => {
3165
+ const baseServer = getTrackingServerByApiPath(apiPath);
3166
+ const authMethods = createBearerAuth(token);
3167
+ const configuration = {
3168
+ baseServer,
3169
+ authMethods,
3170
+ };
3171
+ return new dist.DefaultApi(dist.createConfiguration(configuration));
3172
+ };
3173
+
3174
+ const vviinnVprWidgetCss = ":host{grid-gap:1rem;display:grid;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #ddd;width:100%}vviinn-product-card::part(price-container){align-self:flex-start;display:flex;text-align:left}.results{grid-gap:1rem;display:grid}.visually-hidden{height:0;left:0;position:absolute;top:0;width:0;z-index:-1}h2{margin:0}:host(.grid) h2{justify-content:center}:host(.grid) vviinn-product-card::part(image){min-width:100%}:host(.grid) vviinn-product-card::part(image-link){width:100%}:host(.grid) vviinn-product-card::part(brand),:host(.grid) vviinn-product-card::part(title),:host(.grid) vviinn-product-card::part(type){text-align:center}:host(.grid) vviinn-product-card::part(price-container){align-self:center}:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(deeplink),:host(.continuity) vviinn-product-card::part(title),:host(.continuity) vviinn-product-card::part(type){align-self:start;max-width:unset;text-align:left}";
3175
+
3176
+ let VviinnVprWidget = class extends HTMLElement {
3177
+ constructor() {
3178
+ super();
3179
+ this.__registerHost();
3180
+ attachShadow(this);
3181
+ this.recommendationsLoaded = createEvent(this, "recommendationsLoaded", 7);
3182
+ /** Title for recommendations widget */
3183
+ this.blockTitle = "Recommended products";
3184
+ /** Ratio of each recommended product image */
3185
+ this.imageRatio = 1;
3186
+ /** Width of each recommended product image */
3187
+ this.imageWidth = 300;
3188
+ /** Currency sign will shown after price */
3189
+ this.currencySign = "€";
3190
+ /** Use slider or grid view */
3191
+ this.mode = "continuity";
3192
+ /** Campaign type */
3193
+ this.campaignType = "VPR";
3194
+ /** Locale for currency formatting */
3195
+ this.locale = "de-DE";
3196
+ /** comma-separated list of campaign-ids */
3197
+ this.campaigns = "";
3198
+ /** @internal */
3199
+ this.apiPath = "https://api.vviinn.com";
3200
+ /** @internal */
3201
+ this.useCarousel = true;
3202
+ this.showScroll = true;
3203
+ this.cssUrl = null;
3204
+ this.recommendations = [];
3205
+ this.loaded = false;
3206
+ this.productImageLoadedSubject = new Subject();
3207
+ }
3208
+ handleProductIdChange() {
3209
+ this.getRecommendations();
3210
+ }
3211
+ handleCampaignTypeChange() {
3212
+ this.getRecommendations();
3213
+ }
3214
+ handleCampaignsChange() {
3215
+ this.getRecommendations();
3216
+ }
3217
+ handleApiPathChange(newPath) {
3218
+ state.apiPath = newPath;
3219
+ this.getRecommendations();
3220
+ }
3221
+ handleImageLoading({ detail }) {
3222
+ this.productImageLoadedSubject.next(detail);
3223
+ }
3224
+ trackRecommendationView({ detail }) {
3225
+ const recommendationViewEvent = createProductViewVprEvent(Object.assign({ session_id: this.uiSessionId }, detail));
3226
+ this.trackingApi.trackEvent(recommendationViewEvent);
3227
+ }
3228
+ trackRecommendationClick({ detail }) {
3229
+ const recommendationClickEvent = createProductClickVprEvent(Object.assign({ session_id: this.uiSessionId }, detail));
3230
+ this.trackingApi.trackEvent(recommendationClickEvent).finally(() => {
3231
+ const product = this.recommendations.find((r) => r.productId === detail.product);
3232
+ if (!product || !product.deeplink)
3233
+ return;
3234
+ window.location.href = product.deeplink;
3235
+ });
3236
+ }
3237
+ connectedCallback() {
3238
+ state.apiPath = this.apiPath;
3239
+ state.currencySign = this.currencySign;
3240
+ state.locale = this.locale;
3241
+ this.uiSessionId = v4();
3242
+ this.trackingApi = createTrackingApi(this.apiPath, this.token);
3243
+ const widgetOpenEvent = createWidgetVprEvent({
3244
+ action: "open",
3245
+ session_id: this.uiSessionId,
3246
+ });
3247
+ this.trackingApi.trackEvent(widgetOpenEvent);
3248
+ }
3249
+ disconnectedCallback() {
3250
+ const widgetCloseEvent = createWidgetVprEvent({
3251
+ action: "close",
3252
+ session_id: this.uiSessionId,
3253
+ });
3254
+ this.trackingApi.trackEvent(widgetCloseEvent);
3255
+ }
3256
+ async componentWillLoad() {
3257
+ state.pricePrefix = this.pricePrefix;
3258
+ state.currencySign = this.currencySign;
3259
+ this.getRecommendations();
3260
+ }
3261
+ async getRecommendations() {
3262
+ if (this.productId === undefined || this.token === undefined)
3263
+ return;
3264
+ const campaignType = this.campaignType.length > 0 ? this.campaignType : "VPR";
3265
+ const headers = createBearAuthedHeader(this.token);
3266
+ const request = _function.pipe(TaskEither.of(getRecommendationsService(campaignType)), TaskEither.ap(TaskEither.of(this.productId)), TaskEither.ap(TaskEither.of(checkEmpryString(this.campaigns))), TaskEither.ap(TaskEither.of(headers)), TaskEither.flatten);
3267
+ const runRequest = await request();
3268
+ _function.pipe(runRequest, Either.fold((error) => this.handleError(error), (data) => this.handleRecommendationsSucces(data)));
3269
+ }
3270
+ handleError(error) {
3271
+ console.log("ERROR:", error);
3272
+ }
3273
+ handleRecommendationsSucces(data) {
3274
+ var _a;
3275
+ this.recommendations = (_a = data === null || data === void 0 ? void 0 : data.extended) !== null && _a !== void 0 ? _a : data;
3276
+ imageSearchState.results = this.recommendations;
3277
+ this.loaded = true;
3278
+ this.productIds = this.recommendations.map((r) => r.productId);
3279
+ this.productImageLoadedSubject.subscribe((id) => {
3280
+ this.productIds = this.productIds.filter((x) => x !== id);
3281
+ if (this.productIds.length === 0) {
3282
+ this.recommendationsLoaded.emit();
3283
+ }
3284
+ });
3285
+ }
3286
+ isExternalCSS() {
3287
+ return this.cssUrl && this.cssUrl.length > 0;
3288
+ }
3289
+ renderExternalCSS() {
3290
+ return this.isExternalCSS() ? (h("link", { href: this.cssUrl, rel: "stylesheet" })) : ("");
3291
+ }
3292
+ render() {
3293
+ return (h(Host, { class: {
3294
+ loaded: this.loaded,
3295
+ empty: this.recommendations.length == 0,
3296
+ [this.mode]: true,
3297
+ }, "aria-hidden": this.loaded ? "false" : "true" }, this.renderExternalCSS(), h("style", null, state.fallbackStyles), h("h2", { part: "recommendations-title" }, this.blockTitle), this.useCarousel ? this.renderCarousel() : this.renderResults()));
3298
+ }
3299
+ renderRecommendation(recommendation, index) {
3300
+ return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, deeplink: recommendation.deeplink, image: recommendation.image.thumbnail, brand: recommendation.brand, imageWidth: this.imageWidth, imageRatio: 1, price: recommendation.price.actual, salePrice: recommendation.price.sale, responsive: this.mode === "grid", dimmedBackground: this.useDimmedBackgroundInCard(), index: index }));
3301
+ }
3302
+ useDimmedBackgroundInCard() {
3303
+ return this.mode === "continuity" || !this.useCarousel;
3304
+ }
3305
+ renderResults() {
3306
+ return (h("div", { class: "recommendations-grid", part: "recommendations-grid" }, this.recommendations.map((r, i) => this.renderRecommendation(r, i))));
3307
+ }
3308
+ renderCarousel() {
3309
+ return (h("vviinn-carousel", { mode: this.mode, imageWidth: this.imageWidth, showScroll: this.showScroll, recommendations: this.recommendations }));
3310
+ }
3311
+ get el() { return this; }
3312
+ static get watchers() { return {
3313
+ "productId": ["handleProductIdChange"],
3314
+ "campaignType": ["handleCampaignTypeChange"],
3315
+ "campaigns": ["handleCampaignsChange"],
3316
+ "apiPath": ["handleApiPathChange"]
3317
+ }; }
3318
+ static get style() { return vviinnVprWidgetCss; }
3319
+ };
3320
+ VviinnVprWidget = /*@__PURE__*/ proxyCustomElement(VviinnVprWidget, [1, "vviinn-vpr-widget", {
3321
+ "blockTitle": [1, "block-title"],
3322
+ "imageRatio": [2, "image-ratio"],
3323
+ "imageWidth": [2, "image-width"],
3324
+ "productId": [1, "product-id"],
3325
+ "token": [1],
3326
+ "currencySign": [1, "currency-sign"],
3327
+ "pricePrefix": [1, "price-prefix"],
3328
+ "mode": [1],
3329
+ "campaignType": [1, "campaign-type"],
3330
+ "locale": [1],
3331
+ "campaigns": [1],
3332
+ "apiPath": [1, "api-path"],
3333
+ "useCarousel": [4, "use-carousel"],
3334
+ "showScroll": [4, "show-scroll"],
3335
+ "cssUrl": [1, "css-url"],
3336
+ "recommendations": [32],
3337
+ "loaded": [32]
3338
+ }, [[0, "productImageLoaded", "handleImageLoading"], [0, "recommendationView", "trackRecommendationView"], [0, "recommendationClick", "trackRecommendationClick"]]]);
3339
+ function defineCustomElement() {
3340
+ const components = ["vviinn-vpr-widget", "vviinn-carousel", "vviinn-product-card"];
3341
+ components.forEach(tagName => { switch (tagName) {
3342
+ case "vviinn-vpr-widget":
3343
+ if (!customElements.get(tagName)) {
3344
+ customElements.define(tagName, VviinnVprWidget);
3345
+ }
3346
+ break;
3347
+ case "vviinn-carousel":
3348
+ if (!customElements.get(tagName)) {
3349
+ defineCustomElement$2();
3350
+ }
3351
+ break;
3352
+ case "vviinn-product-card":
3353
+ if (!customElements.get(tagName)) {
3354
+ defineCustomElement$1();
3355
+ }
3356
+ break;
3357
+ } });
3358
+ }
3359
+
3360
+ export { VviinnVprWidget as V, defineCustomElement as d };