vviinn-widgets 2.52.2 → 2.52.3
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/{customized-slots-e1ef7a7f.js → customized-slots-24ae7edf.js} +38 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-38b79bf5.js → package-562db613.js} +1 -1
- package/dist/cjs/{resources-98e3c0b2.js → resources-04d0f3bb.js} +1 -1
- package/dist/cjs/search-filters_17.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-carousel_4.cjs.entry.js +16 -11
- package/dist/cjs/vviinn-preloader.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +6 -3
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +9 -6
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/components/customized-slots.js +38 -1
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +62 -2
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +1 -3
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.js +6 -3
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +4 -1
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +5 -2
- package/dist/esm/{customized-slots-43165d07.js → customized-slots-ad6cbb20.js} +38 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-5de24438.js → package-64508f8e.js} +1 -1
- package/dist/esm/{resources-c0029912.js → resources-aff59df2.js} +1 -1
- package/dist/esm/search-filters_17.entry.js +2 -2
- package/dist/esm/{search.store-44630818.js → search.store-d789660d.js} +7 -7
- package/dist/esm/vviinn-carousel_4.entry.js +16 -11
- package/dist/esm/vviinn-preloader.entry.js +1 -1
- package/dist/esm/vviinn-vpr-button.entry.js +1 -1
- package/dist/esm/vviinn-vps-button.entry.js +6 -3
- package/dist/esm/vviinn-vps-widget.entry.js +9 -6
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +4 -0
- package/dist/types/components.d.ts +8 -2
- package/dist/vviinn-widgets/p-1ba068f6.js +1 -0
- package/dist/vviinn-widgets/{p-709108d4.entry.js → p-44c0cb31.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-1c1be428.js → p-75a253fb.js} +1 -1
- package/dist/vviinn-widgets/p-967db961.entry.js +1 -0
- package/dist/vviinn-widgets/p-a92c4590.entry.js +1 -0
- package/dist/vviinn-widgets/{p-5ecd801a.entry.js → p-afc8cf88.entry.js} +1 -1
- package/{www/build/p-37f5587c.entry.js → dist/vviinn-widgets/p-e5637d19.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-d7f0728d.js → p-ebdb87ad.js} +1 -1
- package/dist/vviinn-widgets/p-f0860b0f.js +1 -0
- package/dist/vviinn-widgets/{p-831589c9.entry.js → p-f3536fec.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-1ba068f6.js +1 -0
- package/www/build/{p-709108d4.entry.js → p-44c0cb31.entry.js} +1 -1
- package/www/build/{p-1c1be428.js → p-75a253fb.js} +1 -1
- package/www/build/p-967db961.entry.js +1 -0
- package/www/build/p-a92c4590.entry.js +1 -0
- package/www/build/{p-5ecd801a.entry.js → p-afc8cf88.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-37f5587c.entry.js → www/build/p-e5637d19.entry.js} +1 -1
- package/www/build/{p-d7f0728d.js → p-ebdb87ad.js} +1 -1
- package/www/build/p-f0860b0f.js +1 -0
- package/www/build/{p-831589c9.entry.js → p-f3536fec.entry.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/vviinn-widgets/p-55127f61.js +0 -1
- package/dist/vviinn-widgets/p-5a0d8b77.entry.js +0 -1
- package/dist/vviinn-widgets/p-b45cbf79.js +0 -1
- package/dist/vviinn-widgets/p-d932c41e.entry.js +0 -1
- package/www/build/p-55127f61.js +0 -1
- package/www/build/p-5a0d8b77.entry.js +0 -1
- package/www/build/p-b45cbf79.js +0 -1
- package/www/build/p-d932c41e.entry.js +0 -1
- package/dist/cjs/{search.store-7605f369.js → search.store-0e899c7f.js} +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as t,o as e}from"./p-1c1be428.js";var n,r=new Uint8Array(16);function i(){if(!n&&!(n="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 n(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;for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).substr(1));function c(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var u=0;u<16;++u)e[n+u]=r[u];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&o.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}(r)}var s=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){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},f=Object.prototype.hasOwnProperty;function d(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function l(t){try{return encodeURIComponent(t)}catch(t){return null}}var m={stringify:function(t,e){e=e||"";var n,r,i=[];for(r in"string"!=typeof e&&(e="?"),t)if(f.call(t,r)){if((n=t[r])||null!=n&&!isNaN(n)||(n=""),r=l(r),n=l(n),null===r||null===n)continue;i.push(r+"="+n)}return i.length?e+i.join("&"):""},parse:function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=d(e[1]),o=d(e[2]);null===i||null===o||i in r||(r[i]=o)}return r}},v=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,p=/[\n\r\t]/g,h=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,b=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function w(t){return(t||"").toString().replace(v,"")}var _=[["#","hash"],["?","query"],function(t,e){return N(e.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]],j={hash:1,query:1};function O(e){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r,i={},o=typeof(e=e||n.location||{});if("blob:"===e.protocol)i=new E(unescape(e.pathname),{});else if("string"===o)for(r in i=new E(e,{}),j)delete i[r];else if("object"===o){for(r in e)r in j||(i[r]=e[r]);void 0===i.slashes&&(i.slashes=h.test(e.href))}return i}function N(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function T(t,e){t=(t=w(t)).replace(p,""),e=e||{};var n,r=b.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],a=!!r[3],u=0;return o?a?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):a?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===i?u>=2&&(n=n.slice(2)):N(i)?n=r[4]:i?o&&(n=n.slice(2)):u>=2&&N(e.protocol)&&(n=r[4]),{protocol:i,slashes:o||N(i),slashesCount:u,rest:n}}function E(t,e,n){if(t=(t=w(t)).replace(p,""),!(this instanceof E))return new E(t,e,n);var r,i,o,a,u,c,f=_.slice(),d=typeof e,l=this,v=0;for("object"!==d&&"string"!==d&&(n=e,e=null),n&&"function"!=typeof n&&(n=m.parse),r=!(i=T(t||"",e=O(e))).protocol&&!i.slashes,l.slashes=i.slashes||r&&e.slashes,l.protocol=i.protocol||e.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||g.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!N(l.protocol)))&&(f[3]=[/(.*)/,"pathname"]);v<f.length;v++)"function"!=typeof(a=f[v])?(c=a[1],(o=a[0])!=o?l[c]=t:"string"==typeof o?~(u="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof a[2]?(l[c]=t.slice(0,u),t=t.slice(u+a[2])):(l[c]=t.slice(u),t=t.slice(0,u))):(u=o.exec(t))&&(l[c]=u[1],t=t.slice(0,u.index)),l[c]=l[c]||r&&a[3]&&e[c]||"",a[4]&&(l[c]=l[c].toLowerCase())):t=a(t,l);n&&(l.query=n(l.query)),r&&e.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==e.pathname)&&(l.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,i=n[r-1],o=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(o=!0),n.splice(r,1),a--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(l.pathname,e.pathname)),"/"!==l.pathname.charAt(0)&&N(l.protocol)&&(l.pathname="/"+l.pathname),s(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(u=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,u),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(u+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&&N(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}E.prototype={set:function(t,e,n){var r=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||m.parse)(e)),r[t]=e;break;case"port":r[t]=e,s(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[t]=e,y.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(e){var i="pathname"===t?"/":"#";r[t]=e.charAt(0)!==i?i+e:e}else r[t]=e;break;case"username":case"password":r[t]=encodeURIComponent(e);break;case"auth":var o=e.indexOf(":");~o?(r.username=e.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=e.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(e))}for(var a=0;a<_.length;a++){var u=_[a];u[4]&&(r[u[1]]=r[u[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&N(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=m.stringify);var e,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(n.protocol&&n.slashes||N(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):"file:"!==n.protocol&&N(n.protocol)&&!r&&"/"!==n.pathname&&(o+="@"),(":"===r[r.length-1]||y.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(o+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(o+=n.hash),o}},E.extractProtocol=T,E.location=O,E.trimLeft=w,E.qs=m;var S=E,A=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.mergeMap=e.of=e.from=e.Observable=void 0;var n=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(e){return new t(this.promise.then(e))},t}();e.Observable=n,e.from=function(t){return new n(t)},e.of=function(t){return new n(Promise.resolve(t))},e.mergeMap=function(t){return function(e){return t(e).toPromise()}},e.map=function(t){return t}})),P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,k="URLSearchParams"in P,C="Symbol"in P&&"iterator"in Symbol,x="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(t){return!1}}(),R="FormData"in P,M="ArrayBuffer"in P;if(M)var B=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],I=ArrayBuffer.isView||function(t){return t&&B.indexOf(Object.prototype.toString.call(t))>-1};function V(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 U(t){return"string"!=typeof t&&(t=String(t)),t}function D(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return C&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function W(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function L(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function q(t){var e=new FileReader,n=L(e);return e.readAsArrayBuffer(t),n}function z(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function H(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:x&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:R&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:k&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():M&&x&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=z(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):M&&(ArrayBuffer.prototype.isPrototypeOf(t)||I(t))?this._bodyArrayBuffer=z(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):k&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},x&&(this.blob=function(){var t=W(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?W(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(q)}),this.text=function(){var t,e,n,r=W(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=L(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}F.prototype.append=function(t,e){t=V(t),e=U(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},F.prototype.delete=function(t){delete this.map[V(t)]},F.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},F.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},F.prototype.set=function(t,e){this.map[V(t)]=U(e)},F.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},F.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),D(t)},F.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),D(t)},F.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),D(t)},C&&(F.prototype[Symbol.iterator]=F.prototype.entries);var G=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K(t,e){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof K){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new F(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=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new F(e.headers)),this.method=(r=(n=e.method||this.method||"GET").toUpperCase(),G.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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 $(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function J(t,e){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new F(e.headers),this.url=e.url||"",this._initBody(t)}K.prototype.clone=function(){return new K(this,{body:this._bodyInit})},H.call(K.prototype),H.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},J.error=function(){var t=new J(null,{status:0,statusText:""});return t.type="error",t};var X=[301,302,303,307,308];J.redirect=function(t,e){if(-1===X.indexOf(e))throw new RangeError("Invalid status code");return new J(null,{status:e,headers:{location:t}})};var Z=P.DOMException;try{new Z}catch(t){(Z=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Z.prototype.constructor=Z}function Q(t,e){return new Promise((function(n,r){var i=new K(t,e);if(i.signal&&i.signal.aborted)return r(new Z("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var t,e,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new F,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 n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new J(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 Z("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(x?o.responseType="blob":M&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof F?i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,U(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Q.polyfill=!0,P.fetch||(P.fetch=Q,P.Headers=F,P.Request=K,P.Response=J);var Y=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.IsomorphicFetchHttpLibrary=void 0;var n=function(){function t(){}return t.prototype.send=function(t){var e=t.getHttpMethod().toString(),n=t.getBody(),r=fetch(t.getUrl(),{method:e,body:n,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var e={};t.headers.forEach((function(t,n){e[n]=t}));var n={text:function(){return t.text()},binary:function(){return t.blob()}};return new tt.ResponseContext(t.status,e,n)}));return(0,A.from)(r)},t}();e.IsomorphicFetchHttpLibrary=n})),tt=e((function(e,n){var r,i,o=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),u=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||a(e,t,n)},c=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},s=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.wrapHttpLibrary=n.ResponseContext=n.SelfDecodingBody=n.RequestContext=n.HttpException=n.HttpMethod=void 0,u(Y,n),(i=n.HttpMethod||(n.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 e(e){return t.call(this,e)||this}return o(e,t),e}(Error);n.HttpException=f;var d=function(){function t(t,e){this.httpMethod=e,this.headers={},this.body=void 0,this.url=new S(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new S(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,e){var n=this.url.query;n[t]=e,this.url.set("query",n)},t.prototype.addCookie=function(t,e){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+e+"; "},t.prototype.setHeaderParam=function(t,e){this.headers[t]=e},t}();n.RequestContext=d;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(e){switch(e.label){case 0:return[4,this.dataSource];case 1:return(t=e.sent()).text?[2,t.text()]:[2,new Promise((function(e,n){var r=new FileReader;r.addEventListener("load",(function(){return e(r.result)})),r.addEventListener("error",(function(){return n(r.error)})),r.readAsText(t)}))]}}))}))},t}();n.SelfDecodingBody=l;var m=function(){function t(t,e,n){this.httpStatusCode=t,this.headers=e,this.body=n}return t.prototype.getParsedHeader=function(t){var e={};if(!this.headers[t])return e;for(var n=0,r=this.headers[t].split(";");n<r.length;n++){var i=r[n].split("=",2),o=i[0],a=i[1];o=o.toLowerCase().trim(),void 0===a?e[""]=o:((a=a.trim()).startsWith('"')&&a.endsWith('"')&&(a=a.substring(1,a.length-1)),e[o]=a)}return e},t.prototype.getBodyAsFile=function(){return c(this,void 0,void 0,(function(){var t,e,n;return s(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),e=this.getParsedHeader("content-disposition").filename||"",n=this.headers["content-type"]||"";try{return[2,new File([t],e,{type:n})]}catch(r){return[2,Object.assign(t,{name:e,type:n})]}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}();n.ResponseContext=m,n.wrapHttpLibrary=function(t){return{send:function(e){return(0,A.from)(t.send(e))}}}})),et=e((function(e,n){var r=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},i=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.configureAuthMethods=n.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 e,n,r,o;return i(this,(function(i){switch(i.label){case 0:return n=(e=t).setHeaderParam,r=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return n.apply(e,r.concat([o+i.sent()])),[2]}}))}))},t}();n.BearerAuthAuthentication=o,n.configureAuthMethods=function(t){var e={};return t?(e.default=t.default,t.bearerAuth&&(e.bearerAuth=new o(t.bearerAuth.tokenProvider)),e):e}})),nt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=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}();e.Event=n})),rt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.AddToBasketEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="AddToBasketEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.AddToBasketEvent=o})),it=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorObject=void 0;var n=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}();e.ErrorObject=n})),ot=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=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}();e.ErrorResponse=n})),at=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventConfirmation=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();e.EventConfirmation=n})),ut=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventInformativeProperties=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""}],t}();e.EventInformativeProperties=n})),ct=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventObject=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"typ",baseName:"typ",type:"EventType",format:""},{name:"enabled",baseName:"enabled",type:"boolean",format:""}],t}();e.EventObject=n})),st=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),ft=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),dt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="FilterEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],e}(nt.Event);n.FilterEvent=o})),lt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FilterEventAllOf=void 0;var n=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}();e.FilterEventAllOf=n})),mt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),vt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.NoResultEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="NoResultEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.NoResultEvent=o})),pt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductClickEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductClickEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductClickEvent=o})),ht=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProductEventInformativeProperties=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""}],t}();e.ProductEventInformativeProperties=n})),yt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductLoadEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductLoadEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductLoadEvent=o})),bt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProductLoadEventAllOf=void 0;var n=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}();e.ProductLoadEventAllOf=n})),gt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductViewEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductViewEvent=o})),wt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ResultLoadEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ResultLoadEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.ResultLoadEvent=o})),_t=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ResultLoadEventAllOf=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""}],t}();e.ResultLoadEventAllOf=n})),jt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ResultViewEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ResultViewEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.ResultViewEvent=o})),Ot=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),Nt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="SearchEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],e}(nt.Event);n.SearchEvent=o})),Tt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchEventAllOf=void 0;var n=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}();e.SearchEventAllOf=n})),Et=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),St=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),At=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),Pt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="WidgetEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],e}(nt.Event);n.WidgetEvent=o})),kt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetEventAllOf=void 0;var n=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}();e.WidgetEventAllOf=n})),Ct=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),i(rt,n),i(it,n),i(ot,n),i(nt,n),i(at,n),i(ut,n),i(ct,n),i(st,n),i(ft,n),i(dt,n),i(lt,n),i(mt,n),i(vt,n),i(pt,n),i(ht,n),i(yt,n),i(bt,n),i(gt,n),i(wt,n),i(_t,n),i(jt,n),i(Ot,n),i(Nt,n),i(Tt,n),i(Et,n),i(St,n),i(At,n),i(Pt,n),i(kt,n)})),xt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PromiseMiddlewareWrapper=void 0;var n=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,A.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,A.from)(this.middleware.post(t))},t}();e.PromiseMiddlewareWrapper=n})),Rt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.servers=e.server2=e.server1=e.ServerConfiguration=void 0;var n=function(){function t(t,e){this.url=t,this.variableConfiguration=e}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 e in this.variableConfiguration){var n=new RegExp("{"+e+"}","g");t=t.replace(n,this.variableConfiguration[e])}return t},t.prototype.makeRequestContext=function(t,e){return new tt.RequestContext(this.getUrl()+t,e)},t}();e.ServerConfiguration=n,e.server1=new n("https://tracking.vviinn.com",{}),e.server2=new n("https://tracking.stage.vviinn.com",{}),e.servers=[e.server1,e.server2]})),Mt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.createConfiguration=void 0,e.createConfiguration=function(t){void 0===t&&(t={});var e={baseServer:void 0!==t.baseServer?t.baseServer:Rt.server1,httpApi:t.httpApi||new Y.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,et.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return e.middleware.push(new xt.PromiseMiddlewareWrapper(t))})),e}})),Bt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ApiException=void 0;var o=function(t){function e(e,n,r,i){var o=t.call(this,"HTTP-Code: "+e+"\nMessage: "+n+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=e,o.body=r,o.headers=i,o}return i(e,t),e}(Error);n.ApiException=o})),It=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.RequiredError=n.BaseAPIRequestFactory=n.COLLECTION_FORMATS=void 0,n.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};n.BaseAPIRequestFactory=function(t){this.configuration=t};var o=function(t){function e(e,n,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+e+"."+n+".")||this;return i.api=e,i.method=n,i.field=r,i.name="RequiredError",i}return i(e,t),e}(Error);n.RequiredError=o})),Vt=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.ObjectSerializer=void 0,i(rt,n),i(it,n),i(ot,n),i(nt,n),i(at,n),i(ut,n),i(ct,n),i(st,n),i(ft,n),i(dt,n),i(lt,n),i(mt,n),i(vt,n),i(pt,n),i(ht,n),i(yt,n),i(bt,n),i(gt,n),i(wt,n),i(_t,n),i(jt,n),i(Ot,n),i(Nt,n),i(Tt,n),i(Et,n),i(St,n),i(At,n),i(Pt,n),i(kt,n);var o=rt,a=it,u=ot,c=nt,s=at,f=ut,d=ct,l=dt,m=lt,v=vt,p=pt,h=ht,y=yt,b=bt,g=gt,w=wt,_=_t,j=jt,O=Nt,N=Tt,T=Pt,E=kt,S=["string","boolean","double","integer","long","float","number","any"],A={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},P=new Set(["EventConfirmationStatusEnum","EventType","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),k={AddToBasketEvent:o.AddToBasketEvent,ErrorObject:a.ErrorObject,ErrorResponse:u.ErrorResponse,Event:c.Event,EventConfirmation:s.EventConfirmation,EventInformativeProperties:f.EventInformativeProperties,EventObject:d.EventObject,FilterEvent:l.FilterEvent,FilterEventAllOf:m.FilterEventAllOf,NoResultEvent:v.NoResultEvent,ProductClickEvent:p.ProductClickEvent,ProductEventInformativeProperties:h.ProductEventInformativeProperties,ProductLoadEvent:y.ProductLoadEvent,ProductLoadEventAllOf:b.ProductLoadEventAllOf,ProductViewEvent:g.ProductViewEvent,ResultLoadEvent:w.ResultLoadEvent,ResultLoadEventAllOf:_.ResultLoadEventAllOf,ResultViewEvent:j.ResultViewEvent,SearchEvent:O.SearchEvent,SearchEventAllOf:N.SearchEventAllOf,WidgetEvent:T.WidgetEvent,WidgetEventAllOf:E.WidgetEventAllOf},C=function(){function t(){}return t.findCorrectType=function(t,e){if(null==t)return e;if(-1!==S.indexOf(e.toLowerCase()))return e;if("Date"===e)return e;if(P.has(e))return e;if(!k[e])return e;var n=k[e].discriminator;if(null==n)return e;if(t[n]){var r=t[n];return k[r]?r:e}return e},t.serialize=function(e,n,r){if(null==e)return e;if(-1!==S.indexOf(n.toLowerCase()))return e;if(0===n.lastIndexOf("Array<",0)){var i=n.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in e)o.push(t.serialize(e[a],i,r));return o}if("Date"===n){if("date"==r){var u=e.getMonth()+1;u=u<10?"0"+u.toString():u.toString();var c=e.getDate();return c=c<10?"0"+c.toString():c.toString(),e.getFullYear()+"-"+u+"-"+c}return e.toISOString()}if(P.has(n))return e;if(!k[n])return e;n=this.findCorrectType(e,n);var s=k[n].getAttributeTypeMap(),f={};for(var a in s){var d=s[a];f[d.baseName]=t.serialize(e[d.name],d.type,d.format)}return f},t.deserialize=function(e,n,r){if(n=t.findCorrectType(e,n),null==e)return e;if(-1!==S.indexOf(n.toLowerCase()))return e;if(0===n.lastIndexOf("Array<",0)){var i=n.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in e)o.push(t.deserialize(e[a],i,r));return o}if("Date"===n)return new Date(e);if(P.has(n))return e;if(!k[n])return e;var u=new k[n],c=k[n].getAttributeTypeMap();for(var a in c){var s=c[a];u[s.name]=t.deserialize(e[s.baseName],s.type,s.format)}return u},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 e=void 0,n=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];A[o]>n&&(e=o,n=A[o])}if(void 0===e)throw new Error("None of the given media types are supported: "+t.join(", "));return e},t.stringify=function(t,e){if("application/json"===e)return JSON.stringify(t);throw new Error("The mediaType "+e+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,e){if(void 0===e)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===e)return JSON.parse(t);throw new Error("The mediaType "+e+" is not supported by ObjectSerializer.parse.")},t}();n.ObjectSerializer=C})),Ut=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.canConsumeForm=e.isCodeInRange=void 0,e.isCodeInRange=function(t,e){if("0"===t)return!0;if(t==e.toString())return!0;var n=e.toString();if(n.length!=t.length)return!1;for(var r=0;r<n.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=n.charAt(r))return!1;return!0},e.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),Dt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},a=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApiResponseProcessor=n.DefaultApiRequestFactory=void 0;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.trackEvent=function(t,e){var n,r,i;return o(this,void 0,void 0,(function(){var o,u,c,s,f,d;return a(this,(function(a){switch(a.label){case 0:return(u=(o=e||this.configuration).baseServer.makeRequestContext("/event",tt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),c=Vt.ObjectSerializer.getPreferredMediaType(["application/json"]),u.setHeaderParam("Content-Type",c),s=Vt.ObjectSerializer.stringify(Vt.ObjectSerializer.serialize(t,"ProductLoadEvent | ProductViewEvent | ProductClickEvent | ResultLoadEvent | ResultViewEvent | NoResultEvent | WidgetEvent | FilterEvent | SearchEvent | AddToBasketEvent",""),c),u.setBody(s),(null==(f=o.authMethods.bearerAuth)?void 0:f.applySecurityAuthentication)?[4,null==f?void 0:f.applySecurityAuthentication(u)]:[3,2];case 1:a.sent(),a.label=2;case 2:return(null==(d=(null===(n=null==e?void 0:e.authMethods)||void 0===n?void 0:n.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:d.applySecurityAuthentication)?[4,null==d?void 0:d.applySecurityAuthentication(u)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2,u]}}))}))},e}(It.BaseAPIRequestFactory);n.DefaultApiRequestFactory=u;var c=function(){function t(){}return t.prototype.trackEvent=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i,o,u,c,s,f,d,l,m,v,p,h,y;return a(this,(function(a){switch(a.label){case 0:return e=Vt.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,Ut.isCodeInRange)("200",t.httpStatusCode)?(r=(n=Vt.ObjectSerializer).deserialize,o=(i=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,d=r.apply(n,[o.apply(i,[a.sent(),e]),"EventConfirmation",""])];case 2:return(0,Ut.isCodeInRange)("502",t.httpStatusCode)?(c=(u=Vt.ObjectSerializer).deserialize,f=(s=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw d=c.apply(u,[f.apply(s,[a.sent(),e]),"ErrorResponse",""]),new Bt.ApiException(502,"an error occurred",d,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(m=(l=Vt.ObjectSerializer).deserialize,p=(v=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,d=m.apply(l,[p.apply(v,[a.sent(),e]),"EventConfirmation",""])];case 6:return h=Bt.ApiException.bind,y=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(h.apply(Bt.ApiException,y.concat([a.sent(),t.headers])))}}))}))},t}();n.DefaultApiResponseProcessor=c})),Ft=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObservableDefaultApi=void 0;var n=A,r=function(){function t(t,e,n){this.configuration=t,this.requestFactory=e||new Dt.DefaultApiRequestFactory(t),this.responseProcessor=n||new Dt.DefaultApiResponseProcessor}return t.prototype.trackEvent=function(t,e){for(var r=this,i=this.requestFactory.trackEvent(t,e),o=(0,A.from)(i),a=function(t){o=o.pipe((0,n.mergeMap)((function(e){return t.pre(e)})))},u=0,c=this.configuration.middleware;u<c.length;u++)a(c[u]);return o.pipe((0,n.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,n.mergeMap)((function(t){for(var e=(0,A.of)(t),i=function(t){e=e.pipe((0,n.mergeMap)((function(e){return t.post(e)})))},o=0,a=r.configuration.middleware;o<a.length;o++)i(a[o]);return e.pipe((0,n.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();e.ObservableDefaultApi=r})),Wt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PromiseDefaultApi=void 0;var n=function(){function t(t,e,n){this.api=new Ft.ObservableDefaultApi(t,e,n)}return t.prototype.trackEvent=function(t,e){return this.api.trackEvent(t,e).toPromise()},t}();e.PromiseDefaultApi=n})),Lt=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApi=n.createConfiguration=void 0,i(tt,n),i(et,n),i(Ct,n),Object.defineProperty(n,"createConfiguration",{enumerable:!0,get:function(){return Mt.createConfiguration}}),i(Bt,n),i(Rt,n),Object.defineProperty(n,"DefaultApi",{enumerable:!0,get:function(){return Wt.PromiseDefaultApi}})}));const qt=(t,e)=>{const n=(t=>(t=>!t.includes("stage"))(t)?Lt.servers[0]:Lt.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((e=>e(t)))}}}))(e);return new Lt.DefaultApi(Lt.createConfiguration({baseServer:n,authMethods:r}))},zt=t=>e=>Object.assign(Object.assign({},e),t),Ht="product_load_event",Gt="product_view_event",Kt="product_click_event",$t="add_to_basket_event",Jt="widget_event",Xt="result_load_event",Zt="result_view_event",Qt={widget:"VPR",typ:Ht},Yt={widget:"VPC",typ:Ht},te={widget:"VPS",typ:Ht},ee={widget:"VPR",typ:Gt},ne={widget:"VPC",typ:Gt},re={widget:"VPS",typ:Gt},ie={widget:"VPR",typ:Kt},oe={widget:"VPC",typ:Kt},ae={widget:"VPS",typ:Kt},ue={widget:"VPR",typ:$t},ce={widget:"VPC",typ:$t},se={widget:"VPC",typ:Jt},fe={widget:"VPS",typ:Jt},de={widget:"VPR",typ:Xt},le={widget:"VPR",typ:Zt},me={widget:"VPC",typ:Xt},ve={widget:"VPC",typ:Zt},pe={widget:"VPS",typ:Xt},he={widget:"VPS",typ:Zt},ye=t=>{switch(t){case"load":return zt(Qt);case"view":return zt(ee);case"click":return zt(ie)}},be=t=>{switch(t){case"load":return zt(Yt);case"view":return zt(ne);case"click":return zt(oe)}},ge=t=>{switch(t){case"load":return zt(te);case"view":return zt(re);case"click":return zt(ae)}},we=t=>{switch(t){case"load":return zt(de);case"view":return zt(le)}},_e=t=>{switch(t){case"load":return zt(me);case"view":return zt(ve)}},je=t=>{switch(t){case"load":return zt(pe);case"view":return zt(he)}},Oe=zt({widget:"VPR",typ:Jt}),Ne=zt(fe),Te=zt(se),Ee=zt({widget:"VPS",typ:"search_event"}),Se=zt({widget:"VPS",typ:"filter_event"}),Ae=zt(ue),Pe=zt(ce),ke="<a href='https://www.vviinn.com/' target='_blank'>Vviinn</a>",Ce={de:{translation:{noResultText:"Keine Ergebnisse! Versuche es bitte später erneut.",basketButtonText:"In den Warenkorb",setMode:{widgetTitle:"Kaufen Sie ein Set und erhalten Sie Rabatt",widgetSubtitle:"Sparen Sie bis zu 15% beim Kauf von Produkten aus der Liste",basketButtonText:"Als Set kaufen",appliedDiscountText:"gespart",updateButtonText:"Neues Set vorschlagen"},exampleImagesTitle:"Mit den Beispielbildern die Suche direkt ausprobieren",imageUploadButtonText:"Bild hochladen",cameraButtonTextStart:"Kamera starten",cameraButtonTextStop:"Kamera stoppen",cameraCaptureText:"Platzieren Sie das Objekt im Quadrat",privacyBadgeText:`Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner ${ke} ein. Das Bild wird nach einer Stunde Inaktivität gelöscht.`,teaserText:"Finde Produkte auf \n einem Foto",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"mit Text suchen",emptyResultsBlock:{title:"Leider nichts gefunden",button:"Neues Bild hochladen"},serverErrorBlock:{title:"Keine Verbindung",button:"Erneut versuchen"},wrongFormatBlock:{title:"Dateityp wird nicht unterstützt",text:"Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch.",button:"Neues Bild hochladen"},wrongAspectRatioBlock:{title:"Das Bild ist zu schmal",button:"Neues Bild hochladen"}}},en:{translation:{noResultText:"No results! Please, try again later.",basketButtonText:"Add to Basket",setMode:{widgetTitle:"Buy a set to get discount",widgetSubtitle:"Save up to 15% for buying products from the list",basketButtonText:"Buy as set",appliedDiscountText:"saved",updateButtonText:"Suggest New Set"},exampleImagesTitle:"Try out the search with the example images",imageUploadButtonText:"Upload Photo",cameraButtonTextStart:"Start Camera",cameraButtonTextStop:"Stop Camera",cameraCaptureText:"Place the object into the square area",privacyBadgeText:`By uploading a picture you agree to the processing by our partner ${ke}. The image will be deleted after one hour of inactivity.`,teaserText:"Find Product by Photo",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"Search by text",emptyResultsBlock:{title:"Sorry, nothing found",button:"Upload another image"},serverErrorBlock:{title:"Something went wrong",button:"Try again"},wrongFormatBlock:{title:"Wrong file format",text:"Please upload a .jpg, .png or .webp image file.",button:"Upload another file"},wrongAspectRatioBlock:{title:"The image is too narrow",button:"Upload another image"}}}};export{Pe as a,Ae as b,qt as c,Te as d,Oe as e,_e as f,we as g,be as h,ye as i,Ee as j,Se as k,Ne as l,ge as m,je as n,Ce as r,c as v}
|
|
1
|
+
import{n as t,o as e}from"./p-75a253fb.js";var n,r=new Uint8Array(16);function i(){if(!n&&!(n="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 n(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;for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).substr(1));function c(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var u=0;u<16;++u)e[n+u]=r[u];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&o.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}(r)}var s=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){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},f=Object.prototype.hasOwnProperty;function d(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function l(t){try{return encodeURIComponent(t)}catch(t){return null}}var m={stringify:function(t,e){e=e||"";var n,r,i=[];for(r in"string"!=typeof e&&(e="?"),t)if(f.call(t,r)){if((n=t[r])||null!=n&&!isNaN(n)||(n=""),r=l(r),n=l(n),null===r||null===n)continue;i.push(r+"="+n)}return i.length?e+i.join("&"):""},parse:function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=d(e[1]),o=d(e[2]);null===i||null===o||i in r||(r[i]=o)}return r}},v=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,p=/[\n\r\t]/g,h=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,b=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function w(t){return(t||"").toString().replace(v,"")}var _=[["#","hash"],["?","query"],function(t,e){return N(e.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]],j={hash:1,query:1};function O(e){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r,i={},o=typeof(e=e||n.location||{});if("blob:"===e.protocol)i=new E(unescape(e.pathname),{});else if("string"===o)for(r in i=new E(e,{}),j)delete i[r];else if("object"===o){for(r in e)r in j||(i[r]=e[r]);void 0===i.slashes&&(i.slashes=h.test(e.href))}return i}function N(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function T(t,e){t=(t=w(t)).replace(p,""),e=e||{};var n,r=b.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],a=!!r[3],u=0;return o?a?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):a?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===i?u>=2&&(n=n.slice(2)):N(i)?n=r[4]:i?o&&(n=n.slice(2)):u>=2&&N(e.protocol)&&(n=r[4]),{protocol:i,slashes:o||N(i),slashesCount:u,rest:n}}function E(t,e,n){if(t=(t=w(t)).replace(p,""),!(this instanceof E))return new E(t,e,n);var r,i,o,a,u,c,f=_.slice(),d=typeof e,l=this,v=0;for("object"!==d&&"string"!==d&&(n=e,e=null),n&&"function"!=typeof n&&(n=m.parse),r=!(i=T(t||"",e=O(e))).protocol&&!i.slashes,l.slashes=i.slashes||r&&e.slashes,l.protocol=i.protocol||e.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||g.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!N(l.protocol)))&&(f[3]=[/(.*)/,"pathname"]);v<f.length;v++)"function"!=typeof(a=f[v])?(c=a[1],(o=a[0])!=o?l[c]=t:"string"==typeof o?~(u="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof a[2]?(l[c]=t.slice(0,u),t=t.slice(u+a[2])):(l[c]=t.slice(u),t=t.slice(0,u))):(u=o.exec(t))&&(l[c]=u[1],t=t.slice(0,u.index)),l[c]=l[c]||r&&a[3]&&e[c]||"",a[4]&&(l[c]=l[c].toLowerCase())):t=a(t,l);n&&(l.query=n(l.query)),r&&e.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==e.pathname)&&(l.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,i=n[r-1],o=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(o=!0),n.splice(r,1),a--);return o&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}(l.pathname,e.pathname)),"/"!==l.pathname.charAt(0)&&N(l.protocol)&&(l.pathname="/"+l.pathname),s(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(u=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,u),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(u+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&&N(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}E.prototype={set:function(t,e,n){var r=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||m.parse)(e)),r[t]=e;break;case"port":r[t]=e,s(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[t]=e,y.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(e){var i="pathname"===t?"/":"#";r[t]=e.charAt(0)!==i?i+e:e}else r[t]=e;break;case"username":case"password":r[t]=encodeURIComponent(e);break;case"auth":var o=e.indexOf(":");~o?(r.username=e.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=e.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(e))}for(var a=0;a<_.length;a++){var u=_[a];u[4]&&(r[u[1]]=r[u[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&N(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=m.stringify);var e,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(n.protocol&&n.slashes||N(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):"file:"!==n.protocol&&N(n.protocol)&&!r&&"/"!==n.pathname&&(o+="@"),(":"===r[r.length-1]||y.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(o+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(o+=n.hash),o}},E.extractProtocol=T,E.location=O,E.trimLeft=w,E.qs=m;var S=E,A=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.mergeMap=e.of=e.from=e.Observable=void 0;var n=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(e){return new t(this.promise.then(e))},t}();e.Observable=n,e.from=function(t){return new n(t)},e.of=function(t){return new n(Promise.resolve(t))},e.mergeMap=function(t){return function(e){return t(e).toPromise()}},e.map=function(t){return t}})),P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,k="URLSearchParams"in P,C="Symbol"in P&&"iterator"in Symbol,x="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(t){return!1}}(),R="FormData"in P,M="ArrayBuffer"in P;if(M)var B=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],I=ArrayBuffer.isView||function(t){return t&&B.indexOf(Object.prototype.toString.call(t))>-1};function V(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 U(t){return"string"!=typeof t&&(t=String(t)),t}function D(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return C&&(e[Symbol.iterator]=function(){return e}),e}function F(t){this.map={},t instanceof F?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function W(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function L(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function q(t){var e=new FileReader,n=L(e);return e.readAsArrayBuffer(t),n}function z(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function H(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:x&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:R&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:k&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():M&&x&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=z(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):M&&(ArrayBuffer.prototype.isPrototypeOf(t)||I(t))?this._bodyArrayBuffer=z(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):k&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},x&&(this.blob=function(){var t=W(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?W(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(q)}),this.text=function(){var t,e,n,r=W(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=L(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},R&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}F.prototype.append=function(t,e){t=V(t),e=U(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},F.prototype.delete=function(t){delete this.map[V(t)]},F.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},F.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},F.prototype.set=function(t,e){this.map[V(t)]=U(e)},F.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},F.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),D(t)},F.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),D(t)},F.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),D(t)},C&&(F.prototype[Symbol.iterator]=F.prototype.entries);var G=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K(t,e){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof K){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new F(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=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new F(e.headers)),this.method=(r=(n=e.method||this.method||"GET").toUpperCase(),G.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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 $(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function J(t,e){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new F(e.headers),this.url=e.url||"",this._initBody(t)}K.prototype.clone=function(){return new K(this,{body:this._bodyInit})},H.call(K.prototype),H.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new F(this.headers),url:this.url})},J.error=function(){var t=new J(null,{status:0,statusText:""});return t.type="error",t};var X=[301,302,303,307,308];J.redirect=function(t,e){if(-1===X.indexOf(e))throw new RangeError("Invalid status code");return new J(null,{status:e,headers:{location:t}})};var Z=P.DOMException;try{new Z}catch(t){(Z=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Z.prototype.constructor=Z}function Q(t,e){return new Promise((function(n,r){var i=new K(t,e);if(i.signal&&i.signal.aborted)return r(new Z("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var t,e,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new F,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 n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new J(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 Z("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(x?o.responseType="blob":M&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof F?i.headers.forEach((function(t,e){o.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){o.setRequestHeader(t,U(e.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Q.polyfill=!0,P.fetch||(P.fetch=Q,P.Headers=F,P.Request=K,P.Response=J);var Y=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.IsomorphicFetchHttpLibrary=void 0;var n=function(){function t(){}return t.prototype.send=function(t){var e=t.getHttpMethod().toString(),n=t.getBody(),r=fetch(t.getUrl(),{method:e,body:n,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var e={};t.headers.forEach((function(t,n){e[n]=t}));var n={text:function(){return t.text()},binary:function(){return t.blob()}};return new tt.ResponseContext(t.status,e,n)}));return(0,A.from)(r)},t}();e.IsomorphicFetchHttpLibrary=n})),tt=e((function(e,n){var r,i,o=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),u=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||a(e,t,n)},c=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},s=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.wrapHttpLibrary=n.ResponseContext=n.SelfDecodingBody=n.RequestContext=n.HttpException=n.HttpMethod=void 0,u(Y,n),(i=n.HttpMethod||(n.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 e(e){return t.call(this,e)||this}return o(e,t),e}(Error);n.HttpException=f;var d=function(){function t(t,e){this.httpMethod=e,this.headers={},this.body=void 0,this.url=new S(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new S(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,e){var n=this.url.query;n[t]=e,this.url.set("query",n)},t.prototype.addCookie=function(t,e){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+e+"; "},t.prototype.setHeaderParam=function(t,e){this.headers[t]=e},t}();n.RequestContext=d;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(e){switch(e.label){case 0:return[4,this.dataSource];case 1:return(t=e.sent()).text?[2,t.text()]:[2,new Promise((function(e,n){var r=new FileReader;r.addEventListener("load",(function(){return e(r.result)})),r.addEventListener("error",(function(){return n(r.error)})),r.readAsText(t)}))]}}))}))},t}();n.SelfDecodingBody=l;var m=function(){function t(t,e,n){this.httpStatusCode=t,this.headers=e,this.body=n}return t.prototype.getParsedHeader=function(t){var e={};if(!this.headers[t])return e;for(var n=0,r=this.headers[t].split(";");n<r.length;n++){var i=r[n].split("=",2),o=i[0],a=i[1];o=o.toLowerCase().trim(),void 0===a?e[""]=o:((a=a.trim()).startsWith('"')&&a.endsWith('"')&&(a=a.substring(1,a.length-1)),e[o]=a)}return e},t.prototype.getBodyAsFile=function(){return c(this,void 0,void 0,(function(){var t,e,n;return s(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),e=this.getParsedHeader("content-disposition").filename||"",n=this.headers["content-type"]||"";try{return[2,new File([t],e,{type:n})]}catch(r){return[2,Object.assign(t,{name:e,type:n})]}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}();n.ResponseContext=m,n.wrapHttpLibrary=function(t){return{send:function(e){return(0,A.from)(t.send(e))}}}})),et=e((function(e,n){var r=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},i=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.configureAuthMethods=n.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 e,n,r,o;return i(this,(function(i){switch(i.label){case 0:return n=(e=t).setHeaderParam,r=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return n.apply(e,r.concat([o+i.sent()])),[2]}}))}))},t}();n.BearerAuthAuthentication=o,n.configureAuthMethods=function(t){var e={};return t?(e.default=t.default,t.bearerAuth&&(e.bearerAuth=new o(t.bearerAuth.tokenProvider)),e):e}})),nt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=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}();e.Event=n})),rt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.AddToBasketEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="AddToBasketEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.AddToBasketEvent=o})),it=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorObject=void 0;var n=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}();e.ErrorObject=n})),ot=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=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}();e.ErrorResponse=n})),at=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventConfirmation=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();e.EventConfirmation=n})),ut=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventInformativeProperties=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""}],t}();e.EventInformativeProperties=n})),ct=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventObject=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"typ",baseName:"typ",type:"EventType",format:""},{name:"enabled",baseName:"enabled",type:"boolean",format:""}],t}();e.EventObject=n})),st=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),ft=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),dt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="FilterEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],e}(nt.Event);n.FilterEvent=o})),lt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FilterEventAllOf=void 0;var n=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}();e.FilterEventAllOf=n})),mt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),vt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.NoResultEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="NoResultEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.NoResultEvent=o})),pt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductClickEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductClickEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductClickEvent=o})),ht=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProductEventInformativeProperties=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""}],t}();e.ProductEventInformativeProperties=n})),yt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductLoadEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductLoadEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductLoadEvent=o})),bt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProductLoadEventAllOf=void 0;var n=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}();e.ProductLoadEventAllOf=n})),gt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ProductViewEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"product_name",baseName:"productName",type:"string",format:""},{name:"product_type",baseName:"productType",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],e}(nt.Event);n.ProductViewEvent=o})),wt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ResultLoadEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ResultLoadEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.ResultLoadEvent=o})),_t=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ResultLoadEventAllOf=void 0;var n=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""}],t}();e.ResultLoadEventAllOf=n})),jt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ResultViewEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="ResultViewEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""}],e}(nt.Event);n.ResultViewEvent=o})),Ot=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),Nt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="SearchEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],e}(nt.Event);n.SearchEvent=o})),Tt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchEventAllOf=void 0;var n=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}();e.SearchEventAllOf=n})),Et=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),St=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),At=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0})})),Pt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEvent=void 0;var o=function(t){function e(){var e=t.call(this)||this;return e.typ="WidgetEvent",e}return i(e,t),e.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(e.attributeTypeMap)},e.discriminator=void 0,e.attributeTypeMap=[{name:"widget_id",baseName:"widgetId",type:"string",format:""},{name:"widget_version",baseName:"widgetVersion",type:"string",format:""},{name:"campaign_type_name",baseName:"campaignTypeName",type:"string",format:""},{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],e}(nt.Event);n.WidgetEvent=o})),kt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetEventAllOf=void 0;var n=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}();e.WidgetEventAllOf=n})),Ct=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),i(rt,n),i(it,n),i(ot,n),i(nt,n),i(at,n),i(ut,n),i(ct,n),i(st,n),i(ft,n),i(dt,n),i(lt,n),i(mt,n),i(vt,n),i(pt,n),i(ht,n),i(yt,n),i(bt,n),i(gt,n),i(wt,n),i(_t,n),i(jt,n),i(Ot,n),i(Nt,n),i(Tt,n),i(Et,n),i(St,n),i(At,n),i(Pt,n),i(kt,n)})),xt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PromiseMiddlewareWrapper=void 0;var n=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,A.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,A.from)(this.middleware.post(t))},t}();e.PromiseMiddlewareWrapper=n})),Rt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.servers=e.server2=e.server1=e.ServerConfiguration=void 0;var n=function(){function t(t,e){this.url=t,this.variableConfiguration=e}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 e in this.variableConfiguration){var n=new RegExp("{"+e+"}","g");t=t.replace(n,this.variableConfiguration[e])}return t},t.prototype.makeRequestContext=function(t,e){return new tt.RequestContext(this.getUrl()+t,e)},t}();e.ServerConfiguration=n,e.server1=new n("https://tracking.vviinn.com",{}),e.server2=new n("https://tracking.stage.vviinn.com",{}),e.servers=[e.server1,e.server2]})),Mt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.createConfiguration=void 0,e.createConfiguration=function(t){void 0===t&&(t={});var e={baseServer:void 0!==t.baseServer?t.baseServer:Rt.server1,httpApi:t.httpApi||new Y.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,et.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return e.middleware.push(new xt.PromiseMiddlewareWrapper(t))})),e}})),Bt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.ApiException=void 0;var o=function(t){function e(e,n,r,i){var o=t.call(this,"HTTP-Code: "+e+"\nMessage: "+n+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=e,o.body=r,o.headers=i,o}return i(e,t),e}(Error);n.ApiException=o})),It=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.RequiredError=n.BaseAPIRequestFactory=n.COLLECTION_FORMATS=void 0,n.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};n.BaseAPIRequestFactory=function(t){this.configuration=t};var o=function(t){function e(e,n,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+e+"."+n+".")||this;return i.api=e,i.method=n,i.field=r,i.name="RequiredError",i}return i(e,t),e}(Error);n.RequiredError=o})),Vt=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.ObjectSerializer=void 0,i(rt,n),i(it,n),i(ot,n),i(nt,n),i(at,n),i(ut,n),i(ct,n),i(st,n),i(ft,n),i(dt,n),i(lt,n),i(mt,n),i(vt,n),i(pt,n),i(ht,n),i(yt,n),i(bt,n),i(gt,n),i(wt,n),i(_t,n),i(jt,n),i(Ot,n),i(Nt,n),i(Tt,n),i(Et,n),i(St,n),i(At,n),i(Pt,n),i(kt,n);var o=rt,a=it,u=ot,c=nt,s=at,f=ut,d=ct,l=dt,m=lt,v=vt,p=pt,h=ht,y=yt,b=bt,g=gt,w=wt,_=_t,j=jt,O=Nt,N=Tt,T=Pt,E=kt,S=["string","boolean","double","integer","long","float","number","any"],A={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},P=new Set(["EventConfirmationStatusEnum","EventType","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),k={AddToBasketEvent:o.AddToBasketEvent,ErrorObject:a.ErrorObject,ErrorResponse:u.ErrorResponse,Event:c.Event,EventConfirmation:s.EventConfirmation,EventInformativeProperties:f.EventInformativeProperties,EventObject:d.EventObject,FilterEvent:l.FilterEvent,FilterEventAllOf:m.FilterEventAllOf,NoResultEvent:v.NoResultEvent,ProductClickEvent:p.ProductClickEvent,ProductEventInformativeProperties:h.ProductEventInformativeProperties,ProductLoadEvent:y.ProductLoadEvent,ProductLoadEventAllOf:b.ProductLoadEventAllOf,ProductViewEvent:g.ProductViewEvent,ResultLoadEvent:w.ResultLoadEvent,ResultLoadEventAllOf:_.ResultLoadEventAllOf,ResultViewEvent:j.ResultViewEvent,SearchEvent:O.SearchEvent,SearchEventAllOf:N.SearchEventAllOf,WidgetEvent:T.WidgetEvent,WidgetEventAllOf:E.WidgetEventAllOf},C=function(){function t(){}return t.findCorrectType=function(t,e){if(null==t)return e;if(-1!==S.indexOf(e.toLowerCase()))return e;if("Date"===e)return e;if(P.has(e))return e;if(!k[e])return e;var n=k[e].discriminator;if(null==n)return e;if(t[n]){var r=t[n];return k[r]?r:e}return e},t.serialize=function(e,n,r){if(null==e)return e;if(-1!==S.indexOf(n.toLowerCase()))return e;if(0===n.lastIndexOf("Array<",0)){var i=n.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in e)o.push(t.serialize(e[a],i,r));return o}if("Date"===n){if("date"==r){var u=e.getMonth()+1;u=u<10?"0"+u.toString():u.toString();var c=e.getDate();return c=c<10?"0"+c.toString():c.toString(),e.getFullYear()+"-"+u+"-"+c}return e.toISOString()}if(P.has(n))return e;if(!k[n])return e;n=this.findCorrectType(e,n);var s=k[n].getAttributeTypeMap(),f={};for(var a in s){var d=s[a];f[d.baseName]=t.serialize(e[d.name],d.type,d.format)}return f},t.deserialize=function(e,n,r){if(n=t.findCorrectType(e,n),null==e)return e;if(-1!==S.indexOf(n.toLowerCase()))return e;if(0===n.lastIndexOf("Array<",0)){var i=n.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in e)o.push(t.deserialize(e[a],i,r));return o}if("Date"===n)return new Date(e);if(P.has(n))return e;if(!k[n])return e;var u=new k[n],c=k[n].getAttributeTypeMap();for(var a in c){var s=c[a];u[s.name]=t.deserialize(e[s.baseName],s.type,s.format)}return u},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 e=void 0,n=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];A[o]>n&&(e=o,n=A[o])}if(void 0===e)throw new Error("None of the given media types are supported: "+t.join(", "));return e},t.stringify=function(t,e){if("application/json"===e)return JSON.stringify(t);throw new Error("The mediaType "+e+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,e){if(void 0===e)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===e)return JSON.parse(t);throw new Error("The mediaType "+e+" is not supported by ObjectSerializer.parse.")},t}();n.ObjectSerializer=C})),Ut=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.canConsumeForm=e.isCodeInRange=void 0,e.isCodeInRange=function(t,e){if("0"===t)return!0;if(t==e.toString())return!0;var n=e.toString();if(n.length!=t.length)return!1;for(var r=0;r<n.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=n.charAt(r))return!1;return!0},e.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),Dt=e((function(e,n){var r,i=t&&t.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t&&t.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))},a=t&&t.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApiResponseProcessor=n.DefaultApiRequestFactory=void 0;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.trackEvent=function(t,e){var n,r,i;return o(this,void 0,void 0,(function(){var o,u,c,s,f,d;return a(this,(function(a){switch(a.label){case 0:return(u=(o=e||this.configuration).baseServer.makeRequestContext("/event",tt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),c=Vt.ObjectSerializer.getPreferredMediaType(["application/json"]),u.setHeaderParam("Content-Type",c),s=Vt.ObjectSerializer.stringify(Vt.ObjectSerializer.serialize(t,"ProductLoadEvent | ProductViewEvent | ProductClickEvent | ResultLoadEvent | ResultViewEvent | NoResultEvent | WidgetEvent | FilterEvent | SearchEvent | AddToBasketEvent",""),c),u.setBody(s),(null==(f=o.authMethods.bearerAuth)?void 0:f.applySecurityAuthentication)?[4,null==f?void 0:f.applySecurityAuthentication(u)]:[3,2];case 1:a.sent(),a.label=2;case 2:return(null==(d=(null===(n=null==e?void 0:e.authMethods)||void 0===n?void 0:n.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:d.applySecurityAuthentication)?[4,null==d?void 0:d.applySecurityAuthentication(u)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2,u]}}))}))},e}(It.BaseAPIRequestFactory);n.DefaultApiRequestFactory=u;var c=function(){function t(){}return t.prototype.trackEvent=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i,o,u,c,s,f,d,l,m,v,p,h,y;return a(this,(function(a){switch(a.label){case 0:return e=Vt.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,Ut.isCodeInRange)("200",t.httpStatusCode)?(r=(n=Vt.ObjectSerializer).deserialize,o=(i=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,d=r.apply(n,[o.apply(i,[a.sent(),e]),"EventConfirmation",""])];case 2:return(0,Ut.isCodeInRange)("502",t.httpStatusCode)?(c=(u=Vt.ObjectSerializer).deserialize,f=(s=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw d=c.apply(u,[f.apply(s,[a.sent(),e]),"ErrorResponse",""]),new Bt.ApiException(502,"an error occurred",d,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(m=(l=Vt.ObjectSerializer).deserialize,p=(v=Vt.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,d=m.apply(l,[p.apply(v,[a.sent(),e]),"EventConfirmation",""])];case 6:return h=Bt.ApiException.bind,y=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(h.apply(Bt.ApiException,y.concat([a.sent(),t.headers])))}}))}))},t}();n.DefaultApiResponseProcessor=c})),Ft=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObservableDefaultApi=void 0;var n=A,r=function(){function t(t,e,n){this.configuration=t,this.requestFactory=e||new Dt.DefaultApiRequestFactory(t),this.responseProcessor=n||new Dt.DefaultApiResponseProcessor}return t.prototype.trackEvent=function(t,e){for(var r=this,i=this.requestFactory.trackEvent(t,e),o=(0,A.from)(i),a=function(t){o=o.pipe((0,n.mergeMap)((function(e){return t.pre(e)})))},u=0,c=this.configuration.middleware;u<c.length;u++)a(c[u]);return o.pipe((0,n.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,n.mergeMap)((function(t){for(var e=(0,A.of)(t),i=function(t){e=e.pipe((0,n.mergeMap)((function(e){return t.post(e)})))},o=0,a=r.configuration.middleware;o<a.length;o++)i(a[o]);return e.pipe((0,n.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();e.ObservableDefaultApi=r})),Wt=e((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.PromiseDefaultApi=void 0;var n=function(){function t(t,e,n){this.api=new Ft.ObservableDefaultApi(t,e,n)}return t.prototype.trackEvent=function(t,e){return this.api.trackEvent(t,e).toPromise()},t}();e.PromiseDefaultApi=n})),Lt=e((function(e,n){var r=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=t&&t.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApi=n.createConfiguration=void 0,i(tt,n),i(et,n),i(Ct,n),Object.defineProperty(n,"createConfiguration",{enumerable:!0,get:function(){return Mt.createConfiguration}}),i(Bt,n),i(Rt,n),Object.defineProperty(n,"DefaultApi",{enumerable:!0,get:function(){return Wt.PromiseDefaultApi}})}));const qt=(t,e)=>{const n=(t=>(t=>!t.includes("stage"))(t)?Lt.servers[0]:Lt.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((e=>e(t)))}}}))(e);return new Lt.DefaultApi(Lt.createConfiguration({baseServer:n,authMethods:r}))},zt=t=>e=>Object.assign(Object.assign({},e),t),Ht="product_load_event",Gt="product_view_event",Kt="product_click_event",$t="add_to_basket_event",Jt="widget_event",Xt="result_load_event",Zt="result_view_event",Qt={widget:"VPR",typ:Ht},Yt={widget:"VPC",typ:Ht},te={widget:"VPS",typ:Ht},ee={widget:"VPR",typ:Gt},ne={widget:"VPC",typ:Gt},re={widget:"VPS",typ:Gt},ie={widget:"VPR",typ:Kt},oe={widget:"VPC",typ:Kt},ae={widget:"VPS",typ:Kt},ue={widget:"VPR",typ:$t},ce={widget:"VPC",typ:$t},se={widget:"VPC",typ:Jt},fe={widget:"VPS",typ:Jt},de={widget:"VPR",typ:Xt},le={widget:"VPR",typ:Zt},me={widget:"VPC",typ:Xt},ve={widget:"VPC",typ:Zt},pe={widget:"VPS",typ:Xt},he={widget:"VPS",typ:Zt},ye=t=>{switch(t){case"load":return zt(Qt);case"view":return zt(ee);case"click":return zt(ie)}},be=t=>{switch(t){case"load":return zt(Yt);case"view":return zt(ne);case"click":return zt(oe)}},ge=t=>{switch(t){case"load":return zt(te);case"view":return zt(re);case"click":return zt(ae)}},we=t=>{switch(t){case"load":return zt(de);case"view":return zt(le)}},_e=t=>{switch(t){case"load":return zt(me);case"view":return zt(ve)}},je=t=>{switch(t){case"load":return zt(pe);case"view":return zt(he)}},Oe=zt({widget:"VPR",typ:Jt}),Ne=zt(fe),Te=zt(se),Ee=zt({widget:"VPS",typ:"search_event"}),Se=zt({widget:"VPS",typ:"filter_event"}),Ae=zt(ue),Pe=zt(ce),ke="<a href='https://www.vviinn.com/' target='_blank'>Vviinn</a>",Ce={de:{translation:{noResultText:"Keine Ergebnisse! Versuche es bitte später erneut.",basketButtonText:"In den Warenkorb",setMode:{widgetTitle:"Kaufen Sie ein Set und erhalten Sie Rabatt",widgetSubtitle:"Sparen Sie bis zu 15% beim Kauf von Produkten aus der Liste",basketButtonText:"Als Set kaufen",appliedDiscountText:"gespart",updateButtonText:"Neues Set vorschlagen"},exampleImagesTitle:"Mit den Beispielbildern die Suche direkt ausprobieren",imageUploadButtonText:"Bild hochladen",cameraButtonTextStart:"Kamera starten",cameraButtonTextStop:"Kamera stoppen",cameraCaptureText:"Platzieren Sie das Objekt im Quadrat",privacyBadgeText:`Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner ${ke} ein. Das Bild wird nach einer Stunde Inaktivität gelöscht.`,teaserText:"Finde Produkte auf \n einem Foto",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"mit Text suchen",emptyResultsBlock:{title:"Leider nichts gefunden",button:"Neues Bild hochladen"},serverErrorBlock:{title:"Keine Verbindung",button:"Erneut versuchen"},wrongFormatBlock:{title:"Dateityp wird nicht unterstützt",text:"Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch.",button:"Neues Bild hochladen"},wrongAspectRatioBlock:{title:"Das Bild ist zu schmal",button:"Neues Bild hochladen"}}},en:{translation:{noResultText:"No results! Please, try again later.",basketButtonText:"Add to Basket",setMode:{widgetTitle:"Buy a set to get discount",widgetSubtitle:"Save up to 15% for buying products from the list",basketButtonText:"Buy as set",appliedDiscountText:"saved",updateButtonText:"Suggest New Set"},exampleImagesTitle:"Try out the search with the example images",imageUploadButtonText:"Upload Photo",cameraButtonTextStart:"Start Camera",cameraButtonTextStop:"Stop Camera",cameraCaptureText:"Place the object into the square area",privacyBadgeText:`By uploading a picture you agree to the processing by our partner ${ke}. The image will be deleted after one hour of inactivity.`,teaserText:"Find Product by Photo",imageSearchModalTitle:"AI Search",textSearchPlaceholder:"Search by text",emptyResultsBlock:{title:"Sorry, nothing found",button:"Upload another image"},serverErrorBlock:{title:"Something went wrong",button:"Try again"},wrongFormatBlock:{title:"Wrong file format",text:"Please upload a .jpg, .png or .webp image file.",button:"Upload another file"},wrongAspectRatioBlock:{title:"The image is too narrow",button:"Upload another image"}}}};export{Pe as a,Ae as b,qt as c,Te as d,Oe as e,_e as f,we as g,be as h,ye as i,Ee as j,Se as k,Ne as l,ge as m,je as n,Ce as r,c as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="2.52.3";export{o as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as i,c as s,H as e,g as h}from"./p-1e83e6ba.js";import{v as n}from"./p-
|
|
1
|
+
import{h as t,r as i,c as s,H as e,g as h}from"./p-1e83e6ba.js";import{v as n}from"./p-f0860b0f.js";import{c as o,S as a}from"./p-1ba068f6.js";import{D as l}from"./p-cc013cd2.js";const r=()=>t("svg",{width:"22",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z",fill:"#161616"})),d=class{constructor(t){i(this,t),this.vviinnWidgetLoad=s(this,"vviinnWidgetLoad",7),this.vviinnWidgetOpen=s(this,"vviinnWidgetOpen",7),this.vviinnWidgetClose=s(this,"vviinnWidgetClose",7),this.vviinnImageUpload=s(this,"vviinnImageUpload",7),this.vviinnProductLoad=s(this,"vviinnProductLoad",7),this.vviinnProductClick=s(this,"vviinnProductClick",7),this.vviinnProductView=s(this,"vviinnProductView",7),this.vviinnResultLoad=s(this,"vviinnResultLoad",7),this.vviinnResultView=s(this,"vviinnResultView",7),this.vviinnNoResult=s(this,"vviinnNoResult",7),this.vviinnImageCrop=s(this,"vviinnImageCrop",7),this.vviinnSelectObject=s(this,"vviinnSelectObject",7),this.vviinnSelectFilter=s(this,"vviinnSelectFilter",7),this.globalSlotsChanged=s(this,"globalSlotsChanged",7),this.getBasicEventData=()=>({widgetType:"VPS",campaignTypeId:"VPS",campaignTypeName:o.VPS,widgetId:this.el.id,widgetVersion:n}),this.token=void 0,this.currencySign="€",this.locale="de-DE",this.campaignId="",this.addStyle=!1,this.mode="modal",this.excluded="",this.productDetailNewTab=!0,this.imageResolutionWidth=250,this.exampleImageSource=l,this.textSearchShow=!1,this.apiPath=void 0,this.buttonPressed=!1}handleModalClosed(){this.buttonPressed=!1}componentDidLoad(){const t=this.el.querySelectorAll("[slot]");this.globalSlotsChanged.emit({slots:Array.from(t),element:this.el})}handleClick(){this.buttonPressed=!0}resetButton(){this.buttonPressed=!1}render(){return t(e,{tabindex:"0",role:"button"},t("vviinn-button",{onClick:()=>{this.handleClick()},addStyle:this.addStyle,part:"vviinn-button"},t("slot",null,t(r,null))),a("vps"),t("vviinn-vps-widget",{mode:this.mode,"currency-sign":this.currencySign,token:this.token,locale:this.locale,apiPath:this.apiPath,exportparts:"brand, deeplink, currency, image, image-link, price-amount-sale, price-amount-outdated, price-amount-regular, price-container, price-outdated, price-regular, price-sale, price-prefix, title, product-card, upload-photo_button, show-files_button, start-camera_button",campaignId:this.campaignId,showingInButton:!0,buttonPressed:this.buttonPressed,resetVpsButton:this.resetButton.bind(this),buttonElementId:this.el.id,active:this.buttonPressed&&("modal"===this.mode||"camera"===this.mode),excluded:this.excluded,productDetailNewTab:this.productDetailNewTab,imageResolutionWidth:this.imageResolutionWidth,exampleImageSource:this.exampleImageSource,textSearchShow:this.textSearchShow}))}get el(){return h(this)}};d.style=":host{display:block}";export{d as vviinn_vps_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-1e83e6ba.js";export{s as setNonce}from"./p-1e83e6ba.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-185e2420",[[1,"vviinn-button",{addStyle:[4,"add-style"]}]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-1e83e6ba.js";export{s as setNonce}from"./p-1e83e6ba.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-185e2420",[[1,"vviinn-button",{addStyle:[4,"add-style"]}]]],["p-44c0cb31",[[1,"vviinn-preloader"]]],["p-872a4ee9",[[1,"vviinn-error"]]],["p-a92c4590",[[1,"vviinn-vpr-widget",{blockTitle:[1,"block-title"],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],productId:[1,"product-id"],token:[1],currencySign:[1,"currency-sign"],pricePrefix:[1,"price-prefix"],mode:[1],campaignType:[1,"campaign-type"],locale:[1],campaigns:[1],color:[1],gridArrowsDynamic:[4,"grid-arrows-dynamic"],noResultText:[1,"no-result-text"],noResultShow:[4,"no-result-show"],showScroll:[4,"show-scroll"],cssUrl:[1,"css-url"],excluded:[1],productDetailNewTab:[4,"product-detail-new-tab"],addToBasketShow:[4,"add-to-basket-show"],updateButtonLocation:[1,"update-button-location"],apiPath:[1,"api-path"],useCarousel:[4,"use-carousel"],showingInButton:[4,"showing-in-button"],buttonElementId:[1,"button-element-id"],closed:[4],opened:[4],recommendations:[32],trackingDeactivated:[32],hasErrorOnLoad:[32],updatingAllCards:[32],updatedCardsAmount:[32]},[[0,"vviinnProductLoad","trackProductLoad"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnAuxClick","trackAuxClick"],[0,"vviinnAddToBasket","trackAddToBasket"],[0,"vviinnUpdatingAllCardsFinished","updatingAllCardsFinishedListener"]]],[0,"vviinn-carousel",{mode:[1],imageWidth:[2,"image-width"],showScroll:[4,"show-scroll"],campaignTypeId:[1,"campaign-type-id"],widgetElementId:[1,"widget-element-id"],gridArrowsDynamic:[4,"grid-arrows-dynamic"],recommendations:[1040],widgetVersion:[1,"widget-version"],addToBasketShow:[4,"add-to-basket-show"],updatingAllCards:[4,"updating-all-cards"],updateButtonLocation:[1,"update-button-location"],currencySign:[1,"currency-sign"],pricePrefix:[1,"price-prefix"],locale:[1],moveDirection:[32],contentGroups:[32],activeContentGroup:[32],isRTL:[32],crossSellingRecommendations:[32],setModeDiscount:[32],setModeAppliedDiscounts:[32]},[[0,"vviinnCrossSellingClick","crossSellingClickListener"],[0,"vviinnAddToBasket","trackAddToBasket"]]],[1,"vviinn-product-card",{brand:[1],currency:[1],deeplink:[1],image:[1],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],locale:[1],price:[2],pricePrefix:[1,"price-prefix"],productId:[1,"product-id"],productTitle:[1,"product-title"],productType:[1,"product-type"],salePrice:[2,"sale-price"],responsive:[4],dimmedBackground:[4,"dimmed-background"],mode:[1],addToBasketShow:[4,"add-to-basket-show"],updateButtonLocation:[1,"update-button-location"],appliedDiscountPercentage:[2,"applied-discount-percentage"],currentDiscountPercentage:[2,"current-discount-percentage"],isSourceProduct:[4,"is-source-product"],campaignTypeId:[1,"campaign-type-id"],widgetElementId:[1,"widget-element-id"],buttonElementId:[1,"button-element-id"],widgetVersion:[1,"widget-version"],index:[2],updatingAllCards:[4,"updating-all-cards"],defaultAnimationInterval:[2,"default-animation-interval"],isTransitioning:[32]},[[0,"vviinnCrossSellingClick","crossSellingClickListener"]]],[1,"vviinn-skeleton",{height:[2],halfWidth:[4,"half-width"]}]]],["p-e5637d19",[[1,"vviinn-image-view",{basicEventData:[16],setShowAspectRatioError:[16],showAspectRatioError:[4,"show-aspect-ratio-error"],cropper:[32],hidePreloader:[32]},[[0,"vviinnSelectObject","selectDetectedObject"]]],[1,"vviinn-overlayed-modal",{active:[4],resetState:[16],buttonElementId:[1,"button-element-id"],hideBackButton:[4,"hide-back-button"],widgetVersion:[1,"widget-version"],isFirstScreen:[4,"is-first-screen"]}],[1,"vviinn-empty-results",{handler:[16]}],[1,"vviinn-image-selector",{basicEventData:[16],startUpload:[4,"start-upload"],loading:[4],accept:[1],resetVpsButton:[16],capture:[1]}],[1,"vviinn-server-error",{handler:[16]}],[1,"vviinn-text-search",{clearSearchQuery:[4,"clear-search-query"],initialSearchQuery:[1,"initial-search-query"],searchQuery:[32]}],[1,"vviinn-wrong-aspect-ratio",{handler:[16]}],[1,"vviinn-wrong-format",{handler:[16]}],[1,"search-filters",{filter:[16],basicEventData:[16],selectedFilter:[32],hideFilters:[32]}],[1,"vviinn-example-image",{exampleImageSource:[1,"example-image-source"],width:[2],height:[2],basicEventData:[16],srcObject:[16],cameraButtonClicked:[4,"camera-button-clicked"],selected:[32],videoInitialized:[32],zoomCapabilities:[32]}],[1,"vviinn-privacy-badge",{privacyBadgeText:[1,"privacy-badge-text"]}],[1,"vviinn-slide"],[1,"vviinn-slider",{showBullets:[4,"show-bullets"],position:[514],showArrows:[4,"show-arrows"],elementsCount:[32],internalPosition:[32],swipeStartPosition:[32],isRTL:[32]}],[1,"vviinn-teaser"],[1,"vviinn-detected-object",{detectedObject:[16],basicEventData:[16],position:[32]}],[1,"vviinn-modal",{active:[1540],resetState:[16],buttonElementId:[1,"button-element-id"],widgetVersion:[1,"widget-version"],hideBackButton:[4,"hide-back-button"],isFirstScreen:[4,"is-first-screen"],slider:[32]}],[1,"vviinn-overlay"]]],["p-967db961",[[1,"vviinn-vps-widget",{token:[1],active:[1028],currencySign:[1,"currency-sign"],locale:[1],campaignId:[1,"campaign-id"],excluded:[1],productDetailNewTab:[4,"product-detail-new-tab"],imageResolutionWidth:[2,"image-resolution-width"],exampleImageSource:[1,"example-image-source"],textSearchShow:[4,"text-search-show"],apiPath:[1,"api-path"],showingInButton:[4,"showing-in-button"],buttonElementId:[1,"button-element-id"],buttonPressed:[4,"button-pressed"],mode:[1],resetVpsButton:[16],slidePosition:[32],width:[32],wrongImageFormat:[32],trackingDeactivated:[32],stream:[32],cameraInitializing:[32],cameraEnabled:[32],cameraButtonClicked:[32],uploadSource:[32],showAspectRatioError:[32],products:[32],initialSearchQuery:[32]},[[0,"vviinnCameraEnabled","trackCameraEnabled"],[0,"vviinnProductLoad","trackProductLoad"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnAuxClick","trackAuxClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"],[0,"vviinnTextSearchFinished","trackTextSearchFinished"]]]]],["p-f3536fec",[[1,"vviinn-vps-button",{token:[1],currencySign:[1,"currency-sign"],locale:[1],campaignId:[1,"campaign-id"],addStyle:[4,"add-style"],mode:[1],excluded:[1],productDetailNewTab:[4,"product-detail-new-tab"],imageResolutionWidth:[2,"image-resolution-width"],exampleImageSource:[1,"example-image-source"],textSearchShow:[4,"text-search-show"],apiPath:[1,"api-path"],buttonPressed:[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["p-c96f5909",[[1,"vviinn-recommendations-sidebar",{sidebarTitle:[1,"sidebar-title"],token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],widgetScrollbar:[4,"widget-scrollbar"],mode:[1],campaigns:[1],campaignType:[1,"campaign-type"],color:[1],locale:[1],imageWidth:[2,"image-width"],currencySign:[1,"currency-sign"],noResultText:[1,"no-result-text"],noResultShow:[4,"no-result-show"],gridArrowsDynamic:[4,"grid-arrows-dynamic"],excluded:[1],productDetailNewTab:[4,"product-detail-new-tab"],addToBasketShow:[4,"add-to-basket-show"],buttonChildren:[16],apiPath:[1,"api-path"],buttonElementId:[1,"button-element-id"],widgetVersion:[1,"widget-version"],showingInButton:[4,"showing-in-button"],state:[32]},[[16,"click","bodyClickListener"]]]]],["p-afc8cf88",[[1,"vviinn-vpr-button",{token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],sidebarTitle:[1,"sidebar-title"],modalScrollbar:[4,"modal-scrollbar"],campaigns:[1],campaignType:[1,"campaign-type"],locale:[1],color:[1],addStyle:[4,"add-style"],mode:[1],imageWidth:[2,"image-width"],currencySign:[1,"currency-sign"],noResultText:[1,"no-result-text"],noResultShow:[4,"no-result-show"],gridArrowsDynamic:[4,"grid-arrows-dynamic"],excluded:[1],productDetailNewTab:[4,"product-detail-new-tab"],addToBasketShow:[4,"add-to-basket-show"],apiPath:[1,"api-path"]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-1e83e6ba.js";const n={VPR:"Similar Products",VPS:"Visual Search",VCS:"Cross-Selling"};function e(t,n){return e=>(t=>"VPR"===t._tag)(e)?t():n()}function i(t){return"VPR"===t?{_tag:"VPR"}:{_tag:"VCS"}}const a=["vviinn-recommendations-title","vviinn-recommendations-subtitle","vviinn-basket-button-text","vviinn-basket-button-icon","vviinn-update-button-icon","vviinn-update-button-text"],o=["vviinn-teaser-text","vviinn-image-upload-button-text","vviinn-image-upload-icon","vviinn-camera-button-text-start","vviinn-camera-button-text-stop","vviinn-camera-icon","vviinn-camera-capture-text","vviinn-text-search-icon","vviinn-privacy-badge-text","vviinn-image-search-modal-title"],v=n=>t("slot",{name:n}),r=t=>("vps"===t?o:a).map(v),s=(t,n)=>{n.innerHTML=t.outerHTML},l=(t,n)=>{t.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:t})=>{const e=n.tagName,i=["VVIINN-PRODUCT-CARD","VVIINN-TEASER","VVIINN-EXAMPLE-IMAGE","VVIINN-PRIVACY-BADGE","VVIINN-MODAL","VVIINN-TEXT-SEARCH"].includes(e),a=n!==t.element&&!i,o="VVIINN-VPS-BUTTON"===t.element.tagName&&"VVIINN-VPS-WIDGET"===e,v=t.element.shadowRoot,{levelOne:r,levelTwo:l,levelThree:c}=(t=>{const n=t&&t.lastChild.shadowRoot;return{levelOne:t,levelTwo:n,levelThree:n&&n.lastChild.shadowRoot}})(v),V=!(r&&r.contains(n)||l&&l.contains(n)||c&&c.contains(n)),u=(a||i&&V)&&!o,I=o&&!v.contains(n);if(u||I)return;const m=(t=>Array.from(t.shadowRoot.querySelectorAll("slot")))(n).reduce((N=t.slots,(t,n)=>{const e=N.find((i=n,t=>i.getAttribute("name")===t.getAttribute("slot")));var i;return e&&t.set(n,e),t}),new Map);var N;m.forEach(s)}),!0)},t.connectedCallback.call(t)};export{r as S,e as a,n as c,i as f,l as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as e,H as o}from"./p-1e83e6ba.js";import{s as t}from"./p-
|
|
1
|
+
import{r,h as e,H as o}from"./p-1e83e6ba.js";import{s as t}from"./p-75a253fb.js";const a=class{constructor(e){r(this,e)}isActive(){return t.loading||t.objectDetectionInProgress}render(){return e(o,{class:{active:this.isActive()}})}};a.style=":host{--preloader-size:24px;--preloader-width:calc(var(--preloader-size) / 6);transform-origin:center;animation:rotate 3s linear infinite;border:var(--preloader-width) solid currentColor;border-radius:50%;border-top-color:transparent;display:none;outline:0;width:var(--preloader-size);height:var(--preloader-size);box-sizing:border-box}:host(.active){display:flex}@keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}";export{a as vviinn_preloader}
|