vviinn-widgets 2.2.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-30781f30.js → app-globals-2bcc74df.js} +1 -1
- package/dist/cjs/cropper-handler.cjs.entry.js +1 -1
- package/dist/cjs/{customized-slots-5d904d8e.js → customized-slots-4202eaf5.js} +1 -1
- package/dist/cjs/highlight-box_22.cjs.entry.js +20 -10
- package/dist/cjs/{imageSearch.store-128957a4.js → imageSearch.store-cb2b2cc8.js} +14 -11
- package/dist/cjs/{index-c493804d.js → index-44fc16ad.js} +7 -9
- package/dist/cjs/{index-741a970d.js → index-6771ae25.js} +1 -1
- package/dist/cjs/index-e9439500.js +3943 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{vviinn-carousel_5.cjs.entry.js → vviinn-carousel_3.cjs.entry.js} +54 -108
- package/dist/cjs/vviinn-error.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-preloader.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +63 -0
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +44 -0
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +4 -4
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +74 -10
- package/dist/cjs/vviinn-widgets.cjs.js +3 -3
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +27 -7
- package/dist/collection/components/image-search/search-filters/search-filters.js +24 -1
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +4 -0
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +6 -3
- package/dist/collection/components/vviinn-icons/index.js +6 -8
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +18 -1
- package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
- package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +57 -12
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +11 -4
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
- package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +47 -9
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +5 -0
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +108 -10
- package/dist/collection/network/utils.js +1 -1
- package/dist/collection/openApi/index.js +27 -0
- package/dist/collection/{components/vviinn-vpr-widget/GridMode.js → recommendation/events.js} +0 -0
- package/dist/collection/store/store.js +7 -9
- package/dist/collection/store/tracking.store.js +3 -0
- package/dist/collection/tracking/event.js +3 -0
- package/dist/collection/tracking/filter.js +5 -0
- package/dist/collection/tracking/index.js +13 -0
- package/dist/collection/tracking/models.js +6 -0
- package/dist/collection/tracking/product.js +18 -0
- package/dist/collection/tracking/search.js +5 -0
- package/dist/collection/tracking/widget.js +10 -0
- package/dist/esm/{app-globals-345e497d.js → app-globals-550daa9b.js} +1 -1
- package/dist/esm/cropper-handler.entry.js +1 -1
- package/dist/esm/{customized-slots-a76a8d41.js → customized-slots-80625933.js} +1 -1
- package/dist/esm/highlight-box_22.entry.js +20 -10
- package/dist/esm/{imageSearch.store-8eab0da1.js → imageSearch.store-1268786d.js} +12 -10
- package/dist/esm/{index-8cb063df.js → index-1cf740a8.js} +8 -10
- package/dist/esm/{index-6fa21e24.js → index-c09e56b6.js} +1 -1
- package/dist/esm/index-fa27f1df.js +3934 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{vviinn-carousel_5.entry.js → vviinn-carousel_3.entry.js} +55 -107
- package/dist/esm/vviinn-error.entry.js +1 -1
- package/dist/esm/vviinn-preloader.entry.js +2 -2
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +59 -0
- package/dist/esm/vviinn-vpr-button.entry.js +40 -0
- package/dist/esm/vviinn-vps-button.entry.js +4 -4
- package/dist/esm/vviinn-vps-widget.entry.js +71 -7
- package/dist/esm/vviinn-widgets.js +3 -3
- package/dist/types/Image/error.d.ts +1 -0
- package/dist/types/Image/form.d.ts +1 -0
- package/dist/types/Image/fromFile.d.ts +1 -0
- package/dist/types/Image/imageToB64.d.ts +1 -0
- package/dist/types/Image/index.d.ts +1 -0
- package/dist/types/Image/renderPromise.d.ts +1 -0
- package/dist/types/Image/resizeImage.d.ts +1 -0
- package/dist/types/Image/sizing.d.ts +1 -0
- package/dist/types/Image/toFile.d.ts +1 -0
- package/dist/types/analytics/GAnalytics.d.ts +1 -0
- package/dist/types/analytics/GeneralAnalytics.d.ts +1 -0
- package/dist/types/analytics/GtagAnalytics.d.ts +1 -0
- package/dist/types/analytics/ProductAnalytics.d.ts +1 -0
- package/dist/types/campaign/Campaign.d.ts +1 -0
- package/dist/types/campaign/CampaignService.d.ts +1 -0
- package/dist/types/campaign/VCSCampaign.d.ts +1 -0
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -0
- package/dist/types/campaign/VCSCampaignService.d.ts +1 -0
- package/dist/types/campaign/VPRCampaignResponse.d.ts +1 -0
- package/dist/types/campaign/VPRCampaignService.d.ts +1 -0
- package/dist/types/components/customized-slots.d.ts +1 -0
- package/dist/types/components/image-search/image-view/highlight-box/highlight-box.d.ts +1 -0
- package/dist/types/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.d.ts +1 -0
- package/dist/types/components/image-search/image-view/image-cropper/image-cropper.d.ts +4 -0
- package/dist/types/components/image-search/search-filters/search-filters.d.ts +4 -0
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +4 -0
- package/dist/types/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-error.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-server-error/vviinn-server-error.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.d.ts +1 -0
- package/dist/types/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.d.ts +1 -0
- package/dist/types/components/vviinn-example-images/vviinn-example-images.d.ts +1 -0
- package/dist/types/components/vviinn-icons/index.d.ts +1 -0
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -0
- package/dist/types/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
- package/dist/types/components/vviinn-image-view/vviinn-image-view.d.ts +1 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/vviinn-onboarding.d.ts +1 -0
- package/dist/types/components/vviinn-overlay/vviinn-overlay.d.ts +1 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +1 -0
- package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +1 -0
- package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/stories/args.d.ts +74 -0
- package/dist/types/components/vviinn-product-card/stories/decorators.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +81 -0
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +9 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +1 -0
- package/dist/types/components/vviinn-slider/vviinn-slide/vviinn-slide.d.ts +1 -0
- package/dist/types/components/vviinn-slider/vviinn-slider.d.ts +1 -0
- package/dist/types/components/vviinn-teaser/vviinn-teaser.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +208 -0
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +215 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +4 -0
- package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +199 -0
- package/dist/types/components/vviinn-vpr-widget/stories/decorators.d.ts +3 -0
- package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +142 -0
- package/dist/types/components/vviinn-vpr-widget/token-helpers.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +10 -1
- package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +13 -0
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +1 -0
- package/dist/types/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.d.ts +11 -0
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +14 -1
- package/dist/types/components.d.ts +10 -4
- package/dist/types/cropper/Cropper.d.ts +1 -0
- package/dist/types/cropper/Handler.d.ts +1 -0
- package/dist/types/dom/index.d.ts +1 -0
- package/dist/types/error.d.ts +1 -0
- package/dist/types/file/index.d.ts +1 -0
- package/dist/types/geometry/Clip.d.ts +1 -0
- package/dist/types/geometry/Point.d.ts +1 -0
- package/dist/types/geometry/Rectangle.d.ts +1 -0
- package/dist/types/geometry/RectangleAlt.d.ts +1 -0
- package/dist/types/geometry/Sized.d.ts +1 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces/generated.d.ts +1 -0
- package/dist/types/interfaces/recommendation.d.ts +1 -0
- package/dist/types/network/apiClient.d.ts +1 -0
- package/dist/types/network/ion/File.d.ts +1 -0
- package/dist/types/network/ion/Form.d.ts +1 -0
- package/dist/types/network/ion/Link.d.ts +1 -0
- package/dist/types/network/ion/ValueObject.d.ts +1 -0
- package/dist/types/network/request.d.ts +1 -0
- package/dist/types/network/utils.d.ts +1 -0
- package/dist/types/openApi/index.d.ts +6 -0
- package/dist/types/recommendation/events.d.ts +6 -0
- package/dist/types/recommendation/recommendation.d.ts +1 -0
- package/dist/types/searchSession/searchSession.d.ts +1 -0
- package/dist/types/sentry.d.ts +1 -0
- package/dist/types/slider/GridMode.d.ts +1 -0
- package/dist/types/store/file-processing.d.ts +1 -0
- package/dist/types/store/imageSearch.store.d.ts +1 -0
- package/dist/types/store/store.d.ts +8 -6
- package/dist/types/store/tracking.store.d.ts +4 -0
- package/dist/types/stories/image-selector.stories.d.ts +1 -0
- package/dist/types/stories/image-view.stories.d.ts +1 -0
- package/dist/types/stories/modal.stories.d.ts +1 -0
- package/dist/types/stories/onboarding.stories.d.ts +1 -0
- package/dist/types/stories/overlay.stories.d.ts +1 -0
- package/dist/types/stories/overlayedModal.stories.d.ts +1 -0
- package/dist/types/stories/privacy-badge.stories.d.ts +1 -0
- package/dist/types/stories/slider.stories.d.ts +1 -0
- package/dist/types/stories/teaser.stories.d.ts +1 -0
- package/dist/types/stories/vps-widget.stories.d.ts +1 -0
- package/dist/types/stories/vviinn-product.stories.d.ts +1 -0
- package/dist/types/tracking/event.d.ts +4 -0
- package/dist/types/tracking/filter.d.ts +3 -0
- package/dist/types/tracking/index.d.ts +9 -0
- package/dist/types/tracking/models.d.ts +13 -0
- package/dist/types/tracking/product.d.ts +7 -0
- package/dist/types/tracking/search.d.ts +3 -0
- package/dist/types/tracking/widget.d.ts +5 -0
- package/dist/types/utils/collections/collectionsUtils.d.ts +1 -0
- package/dist/types/utils/either.d.ts +1 -0
- package/dist/types/utils/enum/enumUtils.d.ts +1 -0
- package/dist/types/utils/event/Events.d.ts +1 -0
- package/dist/types/utils/number/index.d.ts +1 -0
- package/dist/types/utils/option/option.d.ts +1 -0
- package/dist/types/utils/semigroup/semigroupDiff.d.ts +1 -0
- package/dist/types/utils/token/tokenUtils.d.ts +1 -0
- package/dist/vviinn-widgets/{p-78ccc9eb.js → p-07125f64.js} +1 -1
- package/dist/vviinn-widgets/{p-f47e82b2.entry.js → p-27ede517.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-9d24f51e.entry.js → p-314e40b3.entry.js} +1 -1
- package/dist/vviinn-widgets/p-316abc01.js +1 -0
- package/dist/vviinn-widgets/{p-fb14e3cc.entry.js → p-4bdb3027.entry.js} +1 -1
- package/dist/vviinn-widgets/p-5535163a.entry.js +1 -0
- package/dist/vviinn-widgets/{p-59edfbe2.js → p-78b65f70.js} +1 -1
- package/dist/vviinn-widgets/{p-400eb62f.entry.js → p-86ae782f.entry.js} +1 -1
- package/dist/vviinn-widgets/p-89f2c19a.entry.js +1 -0
- package/dist/vviinn-widgets/{p-e1ba8626.js → p-8e25b838.js} +1 -1
- package/dist/vviinn-widgets/p-94aa8705.entry.js +1 -0
- package/dist/vviinn-widgets/{p-e67cae57.js → p-97af45f0.js} +1 -1
- package/dist/vviinn-widgets/p-c5e6ec4f.js +1 -0
- package/dist/vviinn-widgets/p-c63fb46b.entry.js +1 -0
- package/{www/build/p-d085199d.entry.js → dist/vviinn-widgets/p-dd7cac6e.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +11 -3
- package/www/build/{p-78ccc9eb.js → p-07125f64.js} +1 -1
- package/www/build/{p-f47e82b2.entry.js → p-27ede517.entry.js} +1 -1
- package/www/build/{p-9d24f51e.entry.js → p-314e40b3.entry.js} +1 -1
- package/www/build/p-316abc01.js +1 -0
- package/www/build/{p-fb14e3cc.entry.js → p-4bdb3027.entry.js} +1 -1
- package/www/build/p-5535163a.entry.js +1 -0
- package/www/build/{p-59edfbe2.js → p-78b65f70.js} +1 -1
- package/www/build/{p-400eb62f.entry.js → p-86ae782f.entry.js} +1 -1
- package/www/build/p-89f2c19a.entry.js +1 -0
- package/www/build/{p-e1ba8626.js → p-8e25b838.js} +1 -1
- package/www/build/p-94aa8705.entry.js +1 -0
- package/www/build/p-961822d3.js +125 -0
- package/www/build/{p-e67cae57.js → p-97af45f0.js} +1 -1
- package/www/build/p-c5e6ec4f.js +1 -0
- package/www/build/p-c63fb46b.entry.js +1 -0
- package/{dist/vviinn-widgets/p-d085199d.entry.js → www/build/p-dd7cac6e.entry.js} +1 -1
- package/www/build/p-e0153ae2.css +6 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -177
- package/dist/collection/components/vviinn-vpr-button/stories/kek.stories.js +0 -18
- package/dist/types/components/vviinn-vpr-button/stories/kek.stories.d.ts +0 -7
- package/dist/types/components/vviinn-vpr-widget/GridMode.d.ts +0 -1
- package/dist/vviinn-widgets/p-04b06ea9.entry.js +0 -1
- package/dist/vviinn-widgets/p-56fc949a.js +0 -1
- package/dist/vviinn-widgets/p-e38f4aa2.entry.js +0 -1
- package/www/build/p-04b06ea9.entry.js +0 -1
- package/www/build/p-56fc949a.js +0 -1
- package/www/build/p-7e4978d5.js +0 -1
- package/www/build/p-a67898be.css +0 -1
- package/www/build/p-e38f4aa2.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t,h as n}from"./p-78b65f70.js";var e,r=new Uint8Array(16);function i(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function u(t){return"string"==typeof t&&o.test(t)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));function s(t,n,e){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=r[o];return n}return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(a[t[n+0]]+a[t[n+1]]+a[t[n+2]]+a[t[n+3]]+"-"+a[t[n+4]]+a[t[n+5]]+"-"+a[t[n+6]]+a[t[n+7]]+"-"+a[t[n+8]]+a[t[n+9]]+"-"+a[t[n+10]]+a[t[n+11]]+a[t[n+12]]+a[t[n+13]]+a[t[n+14]]+a[t[n+15]]).toLowerCase();if(!u(e))throw TypeError("Stringified UUID is invalid");return e}(r)}var f=function(t,n){if(n=n.split(":")[0],!(t=+t))return!1;switch(n){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t},v=Object.prototype.hasOwnProperty;function l(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function d(t){try{return encodeURIComponent(t)}catch(t){return null}}var h={stringify:function(t,n){n=n||"";var e,r,i=[];for(r in"string"!=typeof n&&(n="?"),t)if(v.call(t,r)){if((e=t[r])||null!=e&&!isNaN(e)||(e=""),r=d(r),e=d(e),null===r||null===e)continue;i.push(r+"="+e)}return i.length?n+i.join("&"):""},parse:function(t){for(var n,e=/([^=?#&]+)=?([^&]*)/g,r={};n=e.exec(t);){var i=l(n[1]),o=l(n[2]);null===i||null===o||i in r||(r[i]=o)}return r}},m=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,p=/[\n\r\t]/g,b=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,w=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_=/^[a-zA-Z]:/;function g(t){return(t||"").toString().replace(m,"")}var j=[["#","hash"],["?","query"],function(t,n){return A(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],O={hash:1,query:1};function E(n){var e;e="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r,i={},o=typeof(n=n||e.location||{});if("blob:"===n.protocol)i=new S(unescape(n.pathname),{});else if("string"===o)for(r in i=new S(n,{}),O)delete i[r];else if("object"===o){for(r in n)r in O||(i[r]=n[r]);void 0===i.slashes&&(i.slashes=b.test(n.href))}return i}function A(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function N(t,n){t=(t=g(t)).replace(p,""),n=n||{};var e,r=w.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],u=!!r[3],a=0;return o?u?(e=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(e=r[2]+r[4],a=r[2].length):u?(e=r[3]+r[4],a=r[3].length):e=r[4],"file:"===i?a>=2&&(e=e.slice(2)):A(i)?e=r[4]:i?o&&(e=e.slice(2)):a>=2&&A(n.protocol)&&(e=r[4]),{protocol:i,slashes:o||A(i),slashesCount:a,rest:e}}function S(t,n,e){if(t=(t=g(t)).replace(p,""),!(this instanceof S))return new S(t,n,e);var r,i,o,u,a,c,s=j.slice(),v=typeof n,l=this,d=0;for("object"!==v&&"string"!==v&&(e=n,n=null),e&&"function"!=typeof e&&(e=h.parse),r=!(i=N(t||"",n=E(n))).protocol&&!i.slashes,l.slashes=i.slashes||r&&n.slashes,l.protocol=i.protocol||n.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||_.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!A(l.protocol)))&&(s[3]=[/(.*)/,"pathname"]);d<s.length;d++)"function"!=typeof(u=s[d])?(c=u[1],(o=u[0])!=o?l[c]=t:"string"==typeof o?~(a="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof u[2]?(l[c]=t.slice(0,a),t=t.slice(a+u[2])):(l[c]=t.slice(a),t=t.slice(0,a))):(a=o.exec(t))&&(l[c]=a[1],t=t.slice(0,a.index)),l[c]=l[c]||r&&u[3]&&n[c]||"",u[4]&&(l[c]=l[c].toLowerCase())):t=u(t,l);e&&(l.query=e(l.query)),r&&n.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==n.pathname)&&(l.pathname=function(t,n){if(""===t)return n;for(var e=(n||"/").split("/").slice(0,-1).concat(t.split("/")),r=e.length,i=e[r-1],o=!1,u=0;r--;)"."===e[r]?e.splice(r,1):".."===e[r]?(e.splice(r,1),u++):u&&(0===r&&(o=!0),e.splice(r,1),u--);return o&&e.unshift(""),"."!==i&&".."!==i||e.push(""),e.join("/")}(l.pathname,n.pathname)),"/"!==l.pathname.charAt(0)&&A(l.protocol)&&(l.pathname="/"+l.pathname),f(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(a=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,a),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(a+1),l.password=encodeURIComponent(decodeURIComponent(l.password))):l.username=encodeURIComponent(decodeURIComponent(l.auth)),l.auth=l.password?l.username+":"+l.password:l.username),l.origin="file:"!==l.protocol&&A(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}S.prototype={set:function(t,n,e){var r=this;switch(t){case"query":"string"==typeof n&&n.length&&(n=(e||h.parse)(n)),r[t]=n;break;case"port":r[t]=n,f(n,r.protocol)?n&&(r.host=r.hostname+":"+n):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=n,r.port&&(n+=":"+r.port),r.host=n;break;case"host":r[t]=n,y.test(n)?(n=n.split(":"),r.port=n.pop(),r.hostname=n.join(":")):(r.hostname=n,r.port="");break;case"protocol":r.protocol=n.toLowerCase(),r.slashes=!e;break;case"pathname":case"hash":if(n){var i="pathname"===t?"/":"#";r[t]=n.charAt(0)!==i?i+n:n}else r[t]=n;break;case"username":case"password":r[t]=encodeURIComponent(n);break;case"auth":var o=n.indexOf(":");~o?(r.username=n.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=n.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(n))}for(var u=0;u<j.length;u++){var a=j[u];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&A(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=h.stringify);var n,e=this,r=e.host,i=e.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(e.protocol&&e.slashes||A(e.protocol)?"//":"");return e.username?(o+=e.username,e.password&&(o+=":"+e.password),o+="@"):e.password?(o+=":"+e.password,o+="@"):"file:"!==e.protocol&&A(e.protocol)&&!r&&"/"!==e.pathname&&(o+="@"),(":"===r[r.length-1]||y.test(e.hostname)&&!e.port)&&(r+=":"),o+=r+e.pathname,(n="object"==typeof e.query?t(e.query):e.query)&&(o+="?"!==n.charAt(0)?"?"+n:n),e.hash&&(o+=e.hash),o}},S.extractProtocol=N,S.location=E,S.trimLeft=g,S.qs=h;var C=S,T=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.map=n.mergeMap=n.of=n.from=n.Observable=void 0;var e=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(n){return new t(this.promise.then(n))},t}();n.Observable=e,n.from=function(t){return new e(t)},n.of=function(t){return new e(Promise.resolve(t))},n.mergeMap=function(t){return function(n){return t(n).toPromise()}},n.map=function(t){return t}})),I="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==I&&I,M="URLSearchParams"in I,k="Symbol"in I&&"iterator"in Symbol,R="FileReader"in I&&"Blob"in I&&function(){try{return new Blob,!0}catch(t){return!1}}(),P="FormData"in I,U="ArrayBuffer"in I;if(U)var D=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(t){return t&&D.indexOf(Object.prototype.toString.call(t))>-1};function F(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function q(t){return"string"!=typeof t&&(t=String(t)),t}function W(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return k&&(n[Symbol.iterator]=function(){return n}),n}function H(t){this.map={},t instanceof H?t.forEach((function(t,n){this.append(n,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(n){this.append(n,t[n])}),this)}function B(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function V(t){return new Promise((function(n,e){t.onload=function(){n(t.result)},t.onerror=function(){e(t.error)}}))}function z(t){var n=new FileReader,e=V(n);return n.readAsArrayBuffer(t),e}function G(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:R&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:P&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:M&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():U&&R&&(n=t)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=G(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):U&&(ArrayBuffer.prototype.isPrototypeOf(t)||x(t))?this._bodyArrayBuffer=G(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):M&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},R&&(this.blob=function(){var t=B(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?B(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(z)}),this.text=function(){var t,n,e,r=B(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=V(n=new FileReader),n.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),e=new Array(n.length),r=0;r<n.length;r++)e[r]=String.fromCharCode(n[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},P&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}H.prototype.append=function(t,n){t=F(t),n=q(n);var e=this.map[t];this.map[t]=e?e+", "+n:n},H.prototype.delete=function(t){delete this.map[F(t)]},H.prototype.get=function(t){return t=F(t),this.has(t)?this.map[t]:null},H.prototype.has=function(t){return this.map.hasOwnProperty(F(t))},H.prototype.set=function(t,n){this.map[F(t)]=q(n)},H.prototype.forEach=function(t,n){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(n,this.map[e],e,this)},H.prototype.keys=function(){var t=[];return this.forEach((function(n,e){t.push(e)})),W(t)},H.prototype.values=function(){var t=[];return this.forEach((function(n){t.push(n)})),W(t)},H.prototype.entries=function(){var t=[];return this.forEach((function(n,e){t.push([e,n])})),W(t)},k&&(H.prototype[Symbol.iterator]=H.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(t,n){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var e,r,i=(n=n||{}).body;if(t instanceof $){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new H(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new H(n.headers)),this.method=(r=(e=n.method||this.method||"GET").toUpperCase(),J.indexOf(r)>-1?r:e),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function K(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function X(t,n){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new H(n.headers),this.url=n.url||"",this._initBody(t)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})},L.call($.prototype),L.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},X.error=function(){var t=new X(null,{status:0,statusText:""});return t.type="error",t};var Z=[301,302,303,307,308];X.redirect=function(t,n){if(-1===Z.indexOf(n))throw new RangeError("Invalid status code");return new X(null,{status:n,headers:{location:t}})};var Q=I.DOMException;try{new Q}catch(t){(Q=function(t,n){this.message=t,this.name=n;var e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Q.prototype.constructor=Q}function Y(t,n){return new Promise((function(e,r){var i=new $(t,n);if(i.signal&&i.signal.aborted)return r(new Q("Aborted","AbortError"));var o=new XMLHttpRequest;function u(){o.abort()}o.onload=function(){var t,n,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",n=new H,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();n.append(r,i)}})),n)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){e(new X(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Q("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&I.location.href?I.location.href:t}catch(n){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(R?o.responseType="blob":U&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof H?i.headers.forEach((function(t,n){o.setRequestHeader(n,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){o.setRequestHeader(t,q(n.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",u),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",u)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Y.polyfill=!0,I.fetch||(I.fetch=Y,I.Headers=H,I.Request=$,I.Response=X);var tt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.IsomorphicFetchHttpLibrary=void 0;var e=function(){function t(){}return t.prototype.send=function(t){var n=t.getHttpMethod().toString(),e=t.getBody(),r=fetch(t.getUrl(),{method:n,body:e,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var n={};t.headers.forEach((function(t,e){n[e]=t}));var e={text:function(){return t.text()},binary:function(){return t.blob()}};return new nt.ResponseContext(t.status,n,e)}));return(0,T.from)(r)},t}();n.IsomorphicFetchHttpLibrary=e})),nt=n((function(n,e){var r,i,o=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),u=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),a=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||u(n,t,e)},c=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},s=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.wrapHttpLibrary=e.ResponseContext=e.SelfDecodingBody=e.RequestContext=e.HttpException=e.HttpMethod=void 0,a(tt,e),(i=e.HttpMethod||(e.HttpMethod={})).GET="GET",i.HEAD="HEAD",i.POST="POST",i.PUT="PUT",i.DELETE="DELETE",i.CONNECT="CONNECT",i.OPTIONS="OPTIONS",i.TRACE="TRACE",i.PATCH="PATCH";var f=function(t){function n(n){return t.call(this,n)||this}return o(n,t),n}(Error);e.HttpException=f;var v=function(){function t(t,n){this.httpMethod=n,this.headers={},this.body=void 0,this.url=new C(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new C(t,!0)},t.prototype.setBody=function(t){this.body=t},t.prototype.getHttpMethod=function(){return this.httpMethod},t.prototype.getHeaders=function(){return this.headers},t.prototype.getBody=function(){return this.body},t.prototype.setQueryParam=function(t,n){var e=this.url.query;e[t]=n,this.url.set("query",e)},t.prototype.addCookie=function(t,n){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+n+"; "},t.prototype.setHeaderParam=function(t,n){this.headers[t]=n},t}();e.RequestContext=v;var l=function(){function t(t){this.dataSource=t}return t.prototype.binary=function(){return this.dataSource},t.prototype.text=function(){return c(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.dataSource];case 1:return(t=n.sent()).text?[2,t.text()]:[2,new Promise((function(n,e){var r=new FileReader;r.addEventListener("load",(function(){return n(r.result)})),r.addEventListener("error",(function(){return e(r.error)})),r.readAsText(t)}))]}}))}))},t}();e.SelfDecodingBody=l;var d=function(){function t(t,n,e){this.httpStatusCode=t,this.headers=n,this.body=e}return t.prototype.getParsedHeader=function(t){var n={};if(!this.headers[t])return n;for(var e=0,r=this.headers[t].split(";");e<r.length;e++){var i=r[e].split("=",2),o=i[0],u=i[1];o=o.toLowerCase().trim(),void 0===u?n[""]=o:((u=u.trim()).startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),n[o]=u)}return n},t.prototype.getBodyAsFile=function(){return c(this,void 0,void 0,(function(){var t,n,e;return s(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),n=this.getParsedHeader("content-disposition").filename||"",e=this.headers["content-type"]||"";try{return[2,new File([t],n,{type:e})]}catch(r){return[2,Object.assign(t,{name:n,type:e})]}return[2]}}))}))},t.prototype.getBodyAsAny=function(){try{return this.body.text()}catch(t){}try{return this.body.binary()}catch(t){}return Promise.resolve(void 0)},t}();e.ResponseContext=d,e.wrapHttpLibrary=function(t){return{send:function(n){return(0,T.from)(t.send(n))}}}})),et=n((function(n,e){var r=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},i=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.configureAuthMethods=e.BearerAuthAuthentication=void 0;var o=function(){function t(t){this.tokenProvider=t}return t.prototype.getName=function(){return"bearerAuth"},t.prototype.applySecurityAuthentication=function(t){return r(this,void 0,void 0,(function(){var n,e,r,o;return i(this,(function(i){switch(i.label){case 0:return e=(n=t).setHeaderParam,r=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return e.apply(n,r.concat([o+i.sent()])),[2]}}))}))},t}();e.BearerAuthAuthentication=o,e.configureAuthMethods=function(t){var n={};return t?(n.default=t.default,t.bearerAuth&&(n.bearerAuth=new o(t.bearerAuth.tokenProvider)),n):n}})),rt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Acknowledgement=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"message",baseName:"message",type:"string",format:""}],t}();n.Acknowledgement=e})),it=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Config=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"track",baseName:"track",type:"boolean",format:""}],t}();n.Config=e})),ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorObject=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"domain",baseName:"domain",type:"string",format:""},{name:"reason",baseName:"reason",type:"string",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"location",baseName:"location",type:"string",format:""},{name:"location_type",baseName:"location_type",type:"string",format:""},{name:"extended_help",baseName:"extended_help",type:"string",format:""},{name:"send_report",baseName:"send_report",type:"string",format:""}],t}();n.ErrorObject=e})),ut=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorResponse=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"code",baseName:"code",type:"number",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"errors",baseName:"errors",type:"Array<ErrorObject>",format:""}],t}();n.ErrorResponse=e})),at=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=void 0;var e=function(){function t(){this.typ="Event"}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator="typ",t.attributeTypeMap=[{name:"session_id",baseName:"session_id",type:"string",format:""},{name:"typ",baseName:"typ",type:"string",format:""}],t}();n.Event=e})),ct=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.EventConfirmation=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();n.EventConfirmation=e})),st=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),ft=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.FilterEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="FilterEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],n}(at.Event);e.FilterEvent=o})),vt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],t}();n.FilterEventAllOf=e})),lt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),dt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Histogram=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"summary",baseName:"summary",type:"HistogramSummary",format:""},{name:"intervals",baseName:"intervals",type:"Array<HistogramItem>",format:""}],t}();n.Histogram=e})),ht=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HistogramItem=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"interval",baseName:"interval",type:"Interval",format:""},{name:"frequency",baseName:"frequency",type:"number",format:""}],t}();n.HistogramItem=e})),mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HistogramSummary=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"interval",baseName:"interval",type:"Interval",format:""},{name:"frequency",baseName:"frequency",type:"number",format:""}],t}();n.HistogramSummary=e})),pt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.InteractionReport=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"interactions",baseName:"interactions",type:"Histogram",format:""},{name:"product_views",baseName:"product_views",type:"Histogram",format:""},{name:"product_clicks",baseName:"product_clicks",type:"Histogram",format:""},{name:"click_through_rate",baseName:"click_through_rate",type:"Rate",format:""}],t}();n.InteractionReport=e})),bt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Interval=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"start_datetime",baseName:"start_datetime",type:"Date",format:"date-time"},{name:"end_datetime",baseName:"end_datetime",type:"Date",format:"date-time"}],t}();n.Interval=e})),yt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductClickEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductClickEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(at.Event);e.ProductClickEvent=o})),wt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductViewEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductViewEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(at.Event);e.ProductViewEvent=o})),_t=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],t}();n.ProductViewEventAllOf=e})),gt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Rate=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"summary",baseName:"summary",type:"RateSummary",format:""},{name:"intervals",baseName:"intervals",type:"Array<RateItem>",format:""}],t}();n.Rate=e})),jt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RateItem=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"interval",baseName:"interval",type:"Interval",format:""},{name:"rate",baseName:"rate",type:"number",format:"float"}],t}();n.RateItem=e})),Ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RateSummary=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"interval",baseName:"interval",type:"Interval",format:""},{name:"rate",baseName:"rate",type:"number",format:"float"}],t}();n.RateSummary=e})),Et=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),At=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.SearchEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="SearchEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],n}(at.Event);e.SearchEvent=o})),Nt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],t}();n.SearchEventAllOf=e})),St=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Ct=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Tt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),It=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="WidgetEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],n}(at.Event);e.WidgetEvent=o})),Mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],t}();n.WidgetEventAllOf=e})),kt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(st,e),i(ft,e),i(vt,e),i(lt,e),i(dt,e),i(ht,e),i(mt,e),i(pt,e),i(bt,e),i(yt,e),i(wt,e),i(_t,e),i(gt,e),i(jt,e),i(Ot,e),i(Et,e),i(At,e),i(Nt,e),i(St,e),i(Ct,e),i(Tt,e),i(It,e),i(Mt,e)})),Rt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseMiddlewareWrapper=void 0;var e=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,T.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,T.from)(this.middleware.post(t))},t}();n.PromiseMiddlewareWrapper=e})),Pt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.servers=n.server2=n.server1=n.ServerConfiguration=void 0;var e=function(){function t(t,n){this.url=t,this.variableConfiguration=n}return t.prototype.setVariables=function(t){Object.assign(this.variableConfiguration,t)},t.prototype.getConfiguration=function(){return this.variableConfiguration},t.prototype.getUrl=function(){var t=this.url;for(var n in this.variableConfiguration){var e=new RegExp("{"+n+"}","g");t=t.replace(e,this.variableConfiguration[n])}return t},t.prototype.makeRequestContext=function(t,n){return new nt.RequestContext(this.getUrl()+t,n)},t}();n.ServerConfiguration=e,n.server1=new e("https://tracking.vviinn.com",{}),n.server2=new e("https://tracking.stage.vviinn.com",{}),n.servers=[n.server1,n.server2]})),Ut=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createConfiguration=void 0,n.createConfiguration=function(t){void 0===t&&(t={});var n={baseServer:void 0!==t.baseServer?t.baseServer:Pt.server1,httpApi:t.httpApi||new tt.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,et.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return n.middleware.push(new Rt.PromiseMiddlewareWrapper(t))})),n}})),Dt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ApiException=void 0;var o=function(t){function n(n,e,r,i){var o=t.call(this,"HTTP-Code: "+n+"\nMessage: "+e+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=n,o.body=r,o.headers=i,o}return i(n,t),n}(Error);e.ApiException=o})),xt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.RequiredError=e.BaseAPIRequestFactory=e.COLLECTION_FORMATS=void 0,e.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},e.BaseAPIRequestFactory=function(t){this.configuration=t};var o=function(t){function n(n,e,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+n+"."+e+".")||this;return i.api=n,i.method=e,i.field=r,i.name="RequiredError",i}return i(n,t),n}(Error);e.RequiredError=o})),Ft=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectSerializer=void 0,i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(st,e),i(ft,e),i(vt,e),i(lt,e),i(dt,e),i(ht,e),i(mt,e),i(pt,e),i(bt,e),i(yt,e),i(wt,e),i(_t,e),i(gt,e),i(jt,e),i(Ot,e),i(Et,e),i(At,e),i(Nt,e),i(St,e),i(Ct,e),i(Tt,e),i(It,e),i(Mt,e);var o=rt,u=it,a=ot,c=ut,s=at,f=ct,v=ft,l=vt,d=dt,h=ht,m=mt,p=pt,b=bt,y=yt,w=wt,_=_t,g=gt,j=jt,O=Ot,E=At,A=Nt,N=It,S=Mt,C=["string","boolean","double","integer","long","float","number","any"],T={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},I=new Set(["EventConfirmationStatusEnum","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),M={Acknowledgement:o.Acknowledgement,Config:u.Config,ErrorObject:a.ErrorObject,ErrorResponse:c.ErrorResponse,Event:s.Event,EventConfirmation:f.EventConfirmation,FilterEvent:v.FilterEvent,FilterEventAllOf:l.FilterEventAllOf,Histogram:d.Histogram,HistogramItem:h.HistogramItem,HistogramSummary:m.HistogramSummary,InteractionReport:p.InteractionReport,Interval:b.Interval,ProductClickEvent:y.ProductClickEvent,ProductViewEvent:w.ProductViewEvent,ProductViewEventAllOf:_.ProductViewEventAllOf,Rate:g.Rate,RateItem:j.RateItem,RateSummary:O.RateSummary,SearchEvent:E.SearchEvent,SearchEventAllOf:A.SearchEventAllOf,WidgetEvent:N.WidgetEvent,WidgetEventAllOf:S.WidgetEventAllOf},k=function(){function t(){}return t.findCorrectType=function(t,n){if(null==t)return n;if(-1!==C.indexOf(n.toLowerCase()))return n;if("Date"===n)return n;if(I.has(n))return n;if(!M[n])return n;var e=M[n].discriminator;if(null==e)return n;if(t[e]){var r=t[e];return M[r]?r:n}return n},t.serialize=function(n,e,r){if(null==n)return n;if(-1!==C.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.serialize(n[u],i,r));return o}if("Date"===e){if("date"==r){var a=n.getMonth()+1;a=a<10?"0"+a.toString():a.toString();var c=n.getDate();return c=c<10?"0"+c.toString():c.toString(),n.getFullYear()+"-"+a+"-"+c}return n.toISOString()}if(I.has(e))return n;if(!M[e])return n;e=this.findCorrectType(n,e);var s=M[e].getAttributeTypeMap(),f={};for(var u in s){var v=s[u];f[v.baseName]=t.serialize(n[v.name],v.type,v.format)}return f},t.deserialize=function(n,e,r){if(e=t.findCorrectType(n,e),null==n)return n;if(-1!==C.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.deserialize(n[u],i,r));return o}if("Date"===e)return new Date(n);if(I.has(e))return n;if(!M[e])return n;var a=new M[e],c=M[e].getAttributeTypeMap();for(var u in c){var s=c[u];a[s.name]=t.deserialize(n[s.baseName],s.type,s.format)}return a},t.normalizeMediaType=function(t){if(void 0!==t)return t.split(";")[0].trim().toLowerCase()},t.getPreferredMediaType=function(t){if(!t)return"application/json";for(var n=void 0,e=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];T[o]>e&&(n=o,e=T[o])}if(void 0===n)throw new Error("None of the given media types are supported: "+t.join(", "));return n},t.stringify=function(t,n){if("application/json"===n)return JSON.stringify(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,n){if(void 0===n)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===n)return JSON.parse(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.parse.")},t}();e.ObjectSerializer=k})),qt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.canConsumeForm=n.isCodeInRange=void 0,n.isCodeInRange=function(t,n){if("0"===t)return!0;if(t==n.toString())return!0;var e=n.toString();if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=e.charAt(r))return!1;return!0},n.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),Wt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},u=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApiResponseProcessor=e.DefaultApiRequestFactory=void 0;var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.applyConfiguration=function(t,n,e){var r,i,a;return o(this,void 0,void 0,(function(){var o,c,s,f,v,l,d;return u(this,(function(u){switch(u.label){case 0:if(o=e||this.configuration,null==t)throw new xt.RequiredError("DefaultApi","applyConfiguration","site_id");return c="/site/{site_id}/configuration".replace("{site_id}",encodeURIComponent(String(t))),(s=o.baseServer.makeRequestContext(c,nt.HttpMethod.PUT)).setHeaderParam("Accept","application/json, */*;q=0.8"),f=Ft.ObjectSerializer.getPreferredMediaType(["application/json"]),s.setHeaderParam("Content-Type",f),v=Ft.ObjectSerializer.stringify(Ft.ObjectSerializer.serialize(n,"Config",""),f),s.setBody(v),(null==(l=o.authMethods.bearerAuth)?void 0:l.applySecurityAuthentication)?[4,null==l?void 0:l.applySecurityAuthentication(s)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(d=(null===(r=null==e?void 0:e.authMethods)||void 0===r?void 0:r.default)||(null===(a=null===(i=this.configuration)||void 0===i?void 0:i.authMethods)||void 0===a?void 0:a.default))?void 0:d.applySecurityAuthentication)?[4,null==d?void 0:d.applySecurityAuthentication(s)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,s]}}))}))},n.prototype.getConfiguration=function(t,n){var e,r,i;return o(this,void 0,void 0,(function(){var o,a,c,s,f;return u(this,(function(u){switch(u.label){case 0:if(o=n||this.configuration,null==t)throw new xt.RequiredError("DefaultApi","getConfiguration","site_id");return a="/site/{site_id}/configuration".replace("{site_id}",encodeURIComponent(String(t))),(c=o.baseServer.makeRequestContext(a,nt.HttpMethod.GET)).setHeaderParam("Accept","application/json, */*;q=0.8"),(null==(s=o.authMethods.bearerAuth)?void 0:s.applySecurityAuthentication)?[4,null==s?void 0:s.applySecurityAuthentication(c)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(f=(null===(e=null==n?void 0:n.authMethods)||void 0===e?void 0:e.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:f.applySecurityAuthentication)?[4,null==f?void 0:f.applySecurityAuthentication(c)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,c]}}))}))},n.prototype.getInteractions=function(t,n,e,r,i){var a,c,s;return o(this,void 0,void 0,(function(){var o,f,v,l,d;return u(this,(function(u){switch(u.label){case 0:if(o=i||this.configuration,null==t)throw new xt.RequiredError("DefaultApi","getInteractions","site_id");if(null==n)throw new xt.RequiredError("DefaultApi","getInteractions","start_datetime");if(null==e)throw new xt.RequiredError("DefaultApi","getInteractions","end_datetime");return f="/site/{site_id}/interactions".replace("{site_id}",encodeURIComponent(String(t))),(v=o.baseServer.makeRequestContext(f,nt.HttpMethod.GET)).setHeaderParam("Accept","application/json, */*;q=0.8"),void 0!==n&&v.setQueryParam("start_datetime",Ft.ObjectSerializer.serialize(n,"Date","date-time")),void 0!==e&&v.setQueryParam("end_datetime",Ft.ObjectSerializer.serialize(e,"Date","date-time")),void 0!==r&&v.setQueryParam("widget",Ft.ObjectSerializer.serialize(r,"Widget","")),(null==(l=o.authMethods.bearerAuth)?void 0:l.applySecurityAuthentication)?[4,null==l?void 0:l.applySecurityAuthentication(v)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(d=(null===(a=null==i?void 0:i.authMethods)||void 0===a?void 0:a.default)||(null===(s=null===(c=this.configuration)||void 0===c?void 0:c.authMethods)||void 0===s?void 0:s.default))?void 0:d.applySecurityAuthentication)?[4,null==d?void 0:d.applySecurityAuthentication(v)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,v]}}))}))},n.prototype.openapi=function(t){var n,e,r;return o(this,void 0,void 0,(function(){var i,o,a,c;return u(this,(function(u){switch(u.label){case 0:return(o=(i=t||this.configuration).baseServer.makeRequestContext("/openapi.yaml",nt.HttpMethod.GET)).setHeaderParam("Accept","application/json, */*;q=0.8"),(null==(a=i.authMethods.bearerAuth)?void 0:a.applySecurityAuthentication)?[4,null==a?void 0:a.applySecurityAuthentication(o)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(c=(null===(n=null==t?void 0:t.authMethods)||void 0===n?void 0:n.default)||(null===(r=null===(e=this.configuration)||void 0===e?void 0:e.authMethods)||void 0===r?void 0:r.default))?void 0:c.applySecurityAuthentication)?[4,null==c?void 0:c.applySecurityAuthentication(o)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,o]}}))}))},n.prototype.trackEvent=function(t,n){var e,r,i;return o(this,void 0,void 0,(function(){var o,a,c,s,f,v;return u(this,(function(u){switch(u.label){case 0:return(a=(o=n||this.configuration).baseServer.makeRequestContext("/event",nt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),c=Ft.ObjectSerializer.getPreferredMediaType(["application/json"]),a.setHeaderParam("Content-Type",c),s=Ft.ObjectSerializer.stringify(Ft.ObjectSerializer.serialize(t,"ProductViewEvent | ProductClickEvent | WidgetEvent | FilterEvent | SearchEvent",""),c),a.setBody(s),(null==(f=o.authMethods.bearerAuth)?void 0:f.applySecurityAuthentication)?[4,null==f?void 0:f.applySecurityAuthentication(a)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(v=(null===(e=null==n?void 0:n.authMethods)||void 0===e?void 0:e.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:v.applySecurityAuthentication)?[4,null==v?void 0:v.applySecurityAuthentication(a)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,a]}}))}))},n}(xt.BaseAPIRequestFactory);e.DefaultApiRequestFactory=a;var c=function(){function t(){}return t.prototype.applyConfiguration=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c;return u(this,(function(u){switch(u.label){case 0:return n=Ft.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,qt.isCodeInRange)("200",t.httpStatusCode)?[2]:t.httpStatusCode>=200&&t.httpStatusCode<=299?(r=(e=Ft.ObjectSerializer).deserialize,o=(i=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,r.apply(e,[o.apply(i,[u.sent(),n]),"void",""])];case 2:return a=Dt.ApiException.bind,c=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 3:throw new(a.apply(Dt.ApiException,c.concat([u.sent(),t.headers])))}}))}))},t.prototype.getConfiguration=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c;return u(this,(function(u){switch(u.label){case 0:return n=Ft.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,qt.isCodeInRange)("200",t.httpStatusCode)?[2]:t.httpStatusCode>=200&&t.httpStatusCode<=299?(r=(e=Ft.ObjectSerializer).deserialize,o=(i=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,r.apply(e,[o.apply(i,[u.sent(),n]),"void",""])];case 2:return a=Dt.ApiException.bind,c=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 3:throw new(a.apply(Dt.ApiException,c.concat([u.sent(),t.headers])))}}))}))},t.prototype.getInteractions=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c,s,f,v,l;return u(this,(function(u){switch(u.label){case 0:return n=Ft.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,qt.isCodeInRange)("200",t.httpStatusCode)?(r=(e=Ft.ObjectSerializer).deserialize,o=(i=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,r.apply(e,[o.apply(i,[u.sent(),n]),"InteractionReport",""])];case 2:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(c=(a=Ft.ObjectSerializer).deserialize,f=(s=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:return[2,c.apply(a,[f.apply(s,[u.sent(),n]),"InteractionReport",""])];case 4:return v=Dt.ApiException.bind,l=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 5:throw new(v.apply(Dt.ApiException,l.concat([u.sent(),t.headers])))}}))}))},t.prototype.openapi=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c,s,f,v,l;return u(this,(function(u){switch(u.label){case 0:return n=Ft.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,qt.isCodeInRange)("200",t.httpStatusCode)?(r=(e=Ft.ObjectSerializer).deserialize,o=(i=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,r.apply(e,[o.apply(i,[u.sent(),n]),"string",""])];case 2:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(c=(a=Ft.ObjectSerializer).deserialize,f=(s=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:return[2,c.apply(a,[f.apply(s,[u.sent(),n]),"string",""])];case 4:return v=Dt.ApiException.bind,l=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 5:throw new(v.apply(Dt.ApiException,l.concat([u.sent(),t.headers])))}}))}))},t.prototype.trackEvent=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c,s,f,v,l,d,h,m,p,b;return u(this,(function(u){switch(u.label){case 0:return n=Ft.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,qt.isCodeInRange)("200",t.httpStatusCode)?(r=(e=Ft.ObjectSerializer).deserialize,o=(i=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,v=r.apply(e,[o.apply(i,[u.sent(),n]),"EventConfirmation",""])];case 2:return(0,qt.isCodeInRange)("502",t.httpStatusCode)?(c=(a=Ft.ObjectSerializer).deserialize,f=(s=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw v=c.apply(a,[f.apply(s,[u.sent(),n]),"ErrorResponse",""]),new Dt.ApiException(502,"an error occurred",v,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(d=(l=Ft.ObjectSerializer).deserialize,m=(h=Ft.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,v=d.apply(l,[m.apply(h,[u.sent(),n]),"EventConfirmation",""])];case 6:return p=Dt.ApiException.bind,b=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(p.apply(Dt.ApiException,b.concat([u.sent(),t.headers])))}}))}))},t}();e.DefaultApiResponseProcessor=c})),Ht=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ObservableDefaultApi=void 0;var e=T,r=function(){function t(t,n,e){this.configuration=t,this.requestFactory=n||new Wt.DefaultApiRequestFactory(t),this.responseProcessor=e||new Wt.DefaultApiResponseProcessor}return t.prototype.applyConfiguration=function(t,n,r){for(var i=this,o=this.requestFactory.applyConfiguration(t,n,r),u=(0,T.from)(o),a=function(t){u=u.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},c=0,s=this.configuration.middleware;c<s.length;c++)a(s[c]);return u.pipe((0,e.mergeMap)((function(t){return i.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,T.of)(t),r=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=i.configuration.middleware;o<u.length;o++)r(u[o]);return n.pipe((0,e.map)((function(t){return i.responseProcessor.applyConfiguration(t)})))})))},t.prototype.getConfiguration=function(t,n){for(var r=this,i=this.requestFactory.getConfiguration(t,n),o=(0,T.from)(i),u=function(t){o=o.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},a=0,c=this.configuration.middleware;a<c.length;a++)u(c[a]);return o.pipe((0,e.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,T.of)(t),i=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=r.configuration.middleware;o<u.length;o++)i(u[o]);return n.pipe((0,e.map)((function(t){return r.responseProcessor.getConfiguration(t)})))})))},t.prototype.getInteractions=function(t,n,r,i,o){for(var u=this,a=this.requestFactory.getInteractions(t,n,r,i,o),c=(0,T.from)(a),s=function(t){c=c.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},f=0,v=this.configuration.middleware;f<v.length;f++)s(v[f]);return c.pipe((0,e.mergeMap)((function(t){return u.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,T.of)(t),r=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},i=0,o=u.configuration.middleware;i<o.length;i++)r(o[i]);return n.pipe((0,e.map)((function(t){return u.responseProcessor.getInteractions(t)})))})))},t.prototype.openapi=function(t){for(var n=this,r=this.requestFactory.openapi(t),i=(0,T.from)(r),o=function(t){i=i.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},u=0,a=this.configuration.middleware;u<a.length;u++)o(a[u]);return i.pipe((0,e.mergeMap)((function(t){return n.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var r=(0,T.of)(t),i=function(t){r=r.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=n.configuration.middleware;o<u.length;o++)i(u[o]);return r.pipe((0,e.map)((function(t){return n.responseProcessor.openapi(t)})))})))},t.prototype.trackEvent=function(t,n){for(var r=this,i=this.requestFactory.trackEvent(t,n),o=(0,T.from)(i),u=function(t){o=o.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},a=0,c=this.configuration.middleware;a<c.length;a++)u(c[a]);return o.pipe((0,e.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,T.of)(t),i=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=r.configuration.middleware;o<u.length;o++)i(u[o]);return n.pipe((0,e.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();n.ObservableDefaultApi=r})),Bt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseDefaultApi=void 0;var e=function(){function t(t,n,e){this.api=new Ht.ObservableDefaultApi(t,n,e)}return t.prototype.applyConfiguration=function(t,n,e){return this.api.applyConfiguration(t,n,e).toPromise()},t.prototype.getConfiguration=function(t,n){return this.api.getConfiguration(t,n).toPromise()},t.prototype.getInteractions=function(t,n,e,r,i){return this.api.getInteractions(t,n,e,r,i).toPromise()},t.prototype.openapi=function(t){return this.api.openapi(t).toPromise()},t.prototype.trackEvent=function(t,n){return this.api.trackEvent(t,n).toPromise()},t}();n.PromiseDefaultApi=e})),Vt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApi=e.createConfiguration=void 0,i(nt,e),i(et,e),i(kt,e),Object.defineProperty(e,"createConfiguration",{enumerable:!0,get:function(){return Ut.createConfiguration}}),i(Dt,e),i(Pt,e),Object.defineProperty(e,"DefaultApi",{enumerable:!0,get:function(){return Bt.PromiseDefaultApi}})}));const zt=(t,n)=>{const e=(t=>(t=>!t.includes("stage"))(t)?Vt.servers[0]:Vt.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((n=>n(t)))}}}))(n);return new Vt.DefaultApi(Vt.createConfiguration({baseServer:e,authMethods:r}))},Gt=t=>n=>Object.assign(Object.assign({},n),t),Lt=Gt({widget:"VPR",typ:"product_view_event"}),Jt=Gt({widget:"VPS",typ:"product_view_event"}),$t=Gt({widget:"VPR",typ:"widget_event"}),Kt=Gt({widget:"VPS",typ:"widget_event"}),Xt=Gt({widget:"VPS",typ:"search_event"}),Zt=Gt({widget:"VPS",typ:"filter_event"});export{zt as a,$t as b,Lt as c,Jt as d,Xt as e,Zt as f,Kt as g,s as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as n}from"./p-
|
|
1
|
+
import{r as e,h as t,H as n}from"./p-8e25b838.js";let r=class{constructor(t){e(this,t)}render(){return t(n,null,t("slot",{name:"icon"}),t("slot",{name:"title"}),t("slot",{name:"text"}),t("slot",{name:"action"}))}};r.style=":host{background:#F4F4F4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:var(--color-primary, var(--color-primary-system));font-weight:600;font-size:16px;line-height:20px;cursor:pointer}";export{r as vviinn_error}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as o,g as r}from"./p-8e25b838.js";import{b as a}from"./p-c5e6ec4f.js";let n=class{constructor(e){t(this,e),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:e}=t,o=this.getSidebarRectangle();o&&(i>=o.left&&i<=o.right&&e>=o.top&&e<=o.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return e(o,{class:this.getClassMap()},e("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},e("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,e("span",{class:"title",part:"title"},this.sidebarTitle),e("button",{class:"close-sidebar",onClick:()=>this.state="closed"},e(a,null))),e("main",{part:"sidebar-content"},e("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar}))))}renderSourceImage(){return e("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return r(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
|