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)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="2.52.2";export{o as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as i,c as s,H as e,g as a}from"./p-1e83e6ba.js";import{s as n,b as r,k as o,O as h}from"./p-1c1be428.js";import{i as d}from"./p-2e76a5c3.js";import{v as c}from"./p-55127f61.js";import{c as l,s as p,S as v}from"./p-b45cbf79.js";import{j as u,k as g,v as m,c as f,r as b,l as x,m as y,n as w}from"./p-d7f0728d.js";import{D as k}from"./p-cc013cd2.js";const C=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t("path",{d:"M12 17.5C13.25 17.5 14.3125 17.0625 15.1875 16.1875C16.0625 15.3125 16.5 14.25 16.5 13C16.5 11.75 16.0625 10.6875 15.1875 9.8125C14.3125 8.9375 13.25 8.5 12 8.5C10.75 8.5 9.6875 8.9375 8.8125 9.8125C7.9375 10.6875 7.5 11.75 7.5 13C7.5 14.25 7.9375 15.3125 8.8125 16.1875C9.6875 17.0625 10.75 17.5 12 17.5ZM12 15.5C11.3 15.5 10.7083 15.2583 10.225 14.775C9.74167 14.2917 9.5 13.7 9.5 13C9.5 12.3 9.74167 11.7083 10.225 11.225C10.7083 10.7417 11.3 10.5 12 10.5C12.7 10.5 13.2917 10.7417 13.775 11.225C14.2583 11.7083 14.5 12.3 14.5 13C14.5 13.7 14.2583 14.2917 13.775 14.775C13.2917 15.2583 12.7 15.5 12 15.5ZM4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H7.15L8.4 3.65C8.58333 3.45 8.80417 3.29167 9.0625 3.175C9.32083 3.05833 9.59167 3 9.875 3H14.125C14.4083 3 14.6792 3.05833 14.9375 3.175C15.1958 3.29167 15.4167 3.45 15.6 3.65L16.85 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H4Z",fill:"currentColor"})),j=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t("path",{d:"M4.5 21C4.1 21 3.75 20.85 3.45 20.55C3.15 20.25 3 19.9 3 19.5V4.5C3 4.1 3.15 3.75 3.45 3.45C3.75 3.15 4.1 3 4.5 3H19.5C19.9 3 20.25 3.15 20.55 3.45C20.85 3.75 21 4.1 21 4.5V19.5C21 19.9 20.85 20.25 20.55 20.55C20.25 20.85 19.9 21 19.5 21H4.5ZM6.65 17.075H17.375C17.525 17.075 17.6333 17.0083 17.7 16.875C17.7667 16.7417 17.7583 16.6083 17.675 16.475L14.75 12.575C14.6667 12.475 14.5667 12.425 14.45 12.425C14.3333 12.425 14.2333 12.475 14.15 12.575L11.15 16.45L9.125 13.675C9.04167 13.575 8.94167 13.525 8.825 13.525C8.70833 13.525 8.60833 13.575 8.525 13.675L6.375 16.475C6.275 16.6083 6.25833 16.7417 6.325 16.875C6.39167 17.0083 6.5 17.075 6.65 17.075Z",fill:"currentColor"})),I={facingMode:"environment",width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}};var S=function(t,i){var s={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(s[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(e=Object.getOwnPropertySymbols(t);a<e.length;a++)i.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(s[e[a]]=t[e[a]])}return s};const T=class{constructor(e){i(this,e),this.globalSlotsChanged=s(this,"globalSlotsChanged",7),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.vviinnProductView=s(this,"vviinnProductView",7),this.vviinnProductClick=s(this,"vviinnProductClick",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.imageSource=null,this.resultLoaded=!1,this.resultViewed=!1,this.cameraAvailable=!1,this.isDesktop=!1,this.videoTrack=null,this.handleVviinnImageUpload=t=>{this.trackInitialSearch(),this.uploadSource=t},this.handleVviinnImageUploadFinished=()=>{this.handleImageSelection(),"upload"===this.mode&&this.showingInButton&&(this.active=!0)},this.handleVviinnNoResult=t=>{"client"===t.reason&&(this.wrongImageFormat=!0)},this.adjustCameraSettings=async()=>{var t;if(!this.videoTrack)return;const i=(null===(t=this.videoTrack)||void 0===t?void 0:t.getCapabilities)?this.videoTrack.getCapabilities():{};if("focusMode"in i)try{await this.videoTrack.applyConstraints({advanced:[{focusMode:"continuous"}]})}catch(t){console.error("Failed to apply focus mode constraints",t)}if("exposureMode"in i)try{await this.videoTrack.applyConstraints({advanced:[{exposureMode:"continuous"}]})}catch(t){console.error("Failed to apply exposure mode constraints",t)}if("whiteBalanceMode"in i)try{await this.videoTrack.applyConstraints({advanced:[{whiteBalanceMode:"continuous"}]})}catch(t){console.error("Failed to apply white balance mode constraints",t)}},this.handleStartCameraClick=async()=>{this.stream?this.resetState():(this.cameraInitializing=!0,setTimeout((async()=>{this.cameraButtonClicked=!0;try{const t=await navigator.mediaDevices.getUserMedia({video:I});this.videoTrack=t.getVideoTracks()[0],this.adjustCameraSettings(),this.stream=t,this.uploadSource="startCamera"}catch(t){console.log("Error accessing camera: ",t.message),this.resetState(),this.cameraInitializing=!1}}),500))},this.setShowAspectRatioError=t=>{this.showAspectRatioError=t},this.setTrackingDeactivated=t=>{"rejected"===t.status&&(this.trackingDeactivated=!0)},this.getBasicEventData=()=>{var t;return{widgetType:"VPS",campaignTypeId:"VPS",campaignTypeName:l.VPS,widgetId:null!==(t=this.buttonElementId)&&void 0!==t?t:this.id,widgetVersion:c}},this.LinkText=({href:i,children:s})=>t("a",{href:i||""},s),this.token=void 0,this.active=!0,this.currencySign="€",this.locale="de-DE",this.campaignId="",this.excluded="",this.productDetailNewTab=!0,this.imageResolutionWidth=250,this.exampleImageSource=k,this.textSearchShow=!1,this.apiPath="https://api.vviinn.com",this.showingInButton=!1,this.buttonElementId=void 0,this.buttonPressed=void 0,this.mode="modal",this.resetVpsButton=void 0,this.slidePosition=0,this.width=0,this.wrongImageFormat=!1,this.trackingDeactivated=!1,this.stream=null,this.cameraInitializing=!1,this.cameraEnabled=!1,this.cameraButtonClicked=!1,this.uploadSource=void 0,this.showAspectRatioError=!1,this.products=[],this.initialSearchQuery=""}initResultEvents(){this.resultLoaded=!1,this.resultViewed=!1}stopStreamTracks(){var t;null===(t=this.stream)||void 0===t||t.getTracks().forEach((t=>{t.stop()}))}isOnboardingSlide(){return 0===this.slidePosition}isResultSlide(){return 1===this.slidePosition}findProductById(t){return n.results.find((i=>i.productId===t))}handleOpenLink(t,i){if(this.productDetailNewTab||i.ctrlKey||i.metaKey){let i=window.open();i?i.location.href=t:window.location.href=t}else window.location.href=t}componentDidLoad(){const t=this.el.querySelectorAll("[slot]");this.globalSlotsChanged.emit(Array.from(t))}activeWatcher(t){t?(this.overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.vviinnWidgetOpen.emit(this.getBasicEventData()),"camera"===this.mode&&this.handleStartCameraClick(),this.trackWidgetEvent("open")):(document.body.style.overflow=this.overflow,this.initResultEvents())}trackCameraEnabled({detail:t}){this.cameraEnabled=t,this.cameraInitializing=!1}trackProductLoad({detail:t}){const i=this.getProductTrackEvent(t,"load");i&&this.trackingApi.trackEvent(i).then(this.setTrackingDeactivated)}trackProductView({detail:t}){this.resultViewed||(this.resultViewed=!0,this.vviinnResultView.emit(this.getBasicEventData()),this.trackResultEvent("view"));const i=this.getProductTrackEvent(t,"view");i&&this.trackingApi.trackEvent(i).then(this.setTrackingDeactivated)}async trackProductClick({detail:t}){const{productId:i,clickEvent:s}=t,e=this.getProductTrackEvent(t,"click"),a=this.findProductById(i);a&&a.deeplink&&(this.trackingDeactivated?this.handleOpenLink(a.deeplink,s):await this.trackingApi.trackEvent(e).then(this.setTrackingDeactivated).finally((()=>{this.handleOpenLink(a.deeplink,s)})))}async trackAuxClick({detail:t}){const{productId:i}=t,s=this.getProductTrackEvent(t,"click"),e=this.findProductById(i);e&&e.deeplink&&(this.trackingDeactivated||await this.trackingApi.trackEvent(s).then(this.setTrackingDeactivated))}trachSearchAreaChanges(){if(this.initResultEvents(),this.trackingDeactivated)return;const t=this.getBasicEventData(),i=S(t,["campaignTypeId"]),s=u(Object.assign({session_id:this.uiSessionId,source:this.imageSource,search_area:"manual-selection"},i));this.trackingApi.trackEvent(s).then(this.setTrackingDeactivated)}trackDetectedObject(){if(this.initResultEvents(),this.trackingDeactivated)return;const t=this.getBasicEventData(),i=S(t,["campaignTypeId"]),s=u(Object.assign({session_id:this.uiSessionId,source:this.imageSource,search_area:"attention-point"},i));this.trackingApi.trackEvent(s).then(this.setTrackingDeactivated)}trackFilter({detail:t}){if(this.initResultEvents(),this.trackingDeactivated)return;const i=this.getBasicEventData(),s=S(i,["campaignTypeId"]),e=g(Object.assign({session_id:this.uiSessionId,source:this.imageSource,kind:t.kind,action:t.action},s));this.trackingApi.trackEvent(e).then(this.setTrackingDeactivated)}async trackTextSearchFinished({detail:t}){this.initialSearchQuery=t,this.slidePosition=1}connectedCallback(){this.isDesktop="desktop"===(()=>{const t=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(t)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(t)?"mobile":"desktop"})(),r.apiPath=this.apiPath,r.currencySign=this.currencySign,r.locale=this.locale,this.cameraAvailable=!!navigator.mediaDevices&&!!navigator.mediaDevices.getUserMedia,this.excluded&&(this.excluded=o(this.excluded)),n.token=this.token,n.campaignId=this.campaignId,n.excluded=this.excluded,this.uiSessionId=m(),this.trackingApi=f(this.apiPath,this.token),this.id=this.el.id}async componentWillLoad(){await d.init({lng:this.locale,fallbackLng:"en",resources:b}),p(this,this.el),this.vviinnWidgetLoad.emit(this.getBasicEventData()),this.trackWidgetEvent("load")}trackWidgetEvent(t){if(this.trackingDeactivated)return;const i=this.getBasicEventData(),s=S(i,["campaignTypeId","widgetType"]),e=Object.assign({action:t,session_id:this.uiSessionId},s),a=x(e);this.trackingApi.trackEvent(a).then(this.setTrackingDeactivated)}getProductTrackEvent(t,i){if(this.trackingDeactivated)return null;const{productRank:s,productId:e}=t,a=S(t,["productRank","productId","campaignTypeId","widgetType","clickEvent"]),n=Object.assign({session_id:this.uiSessionId,rank:s,product:e},a);return y(i)(n)}trackResultEvent(t){if(this.trackingDeactivated)return;const i=this.getBasicEventData(),s=S(i,["campaignTypeId","widgetType"]);let e=w(t)(Object.assign({session_id:this.uiSessionId},s));this.trackingApi.trackEvent(e).then(this.setTrackingDeactivated)}trackInitialSearch(){if(this.trackingDeactivated)return;const t=this.getBasicEventData(),i=S(t,["campaignTypeId","widgetType"]),s=u(Object.assign({session_id:this.uiSessionId,search_area:"full",source:"upload"},i));this.trackingApi.trackEvent(s).then(this.setTrackingDeactivated)}handleImageSelection(){this.imageSource="upload",this.slidePosition=1,this.el.shadowRoot.querySelector("vviinn-overlayed-modal").shadowRoot.querySelector("vviinn-overlay").querySelector("vviinn-modal").shadowRoot.querySelector(".body").scrollTop=0,this.stopStreamTracks()}renderButtons(){const i=n.loading&&"image"===n.searchType&&"startCamera"===this.uploadSource||this.cameraInitializing,s=[this.cameraAvailable&&t("button",{class:"action-button",part:"start-camera_button",onClick:()=>{this.handleStartCameraClick()}},t("vviinn-preloader",{class:{hidden:!i}}),t("span",{class:{"action-button-content":!0,hidden:i}},t("slot",{name:"vviinn-camera-icon"},t(C,null)),t("span",{class:{hidden:!this.cameraEnabled}},t("slot",{name:"vviinn-camera-button-text-stop"},d.t("cameraButtonTextStop"))),t("span",{class:{hidden:this.cameraEnabled}},t("slot",{name:"vviinn-camera-button-text-start"},d.t("cameraButtonTextStart"))))),t("vviinn-image-selector",{class:"action-button",onClick:()=>this.uploadSource="uploadPhoto",onVviinnImageUploadFinished:this.handleVviinnImageUploadFinished,onVviinnImageUpload:()=>{this.handleVviinnImageUpload("uploadPhoto")},onVviinnNoResult:({detail:t})=>this.handleVviinnNoResult(t),resetVpsButton:this.resetVpsButton,basicEventData:this.getBasicEventData(),part:"upload-photo_button",startUpload:this.buttonPressed&&this.showingInButton&&"upload"===this.mode,loading:n.loading&&"image"===n.searchType&&"uploadPhoto"===this.uploadSource},t("span",{slot:"upload-button-text",class:"action-button-content"},t("slot",{name:"vviinn-image-upload-icon"},t(j,null)),t("slot",{name:"vviinn-image-upload-button-text"},t("span",null,d.t("imageUploadButtonText")))))];return this.isDesktop?s.reverse():s}renderResults(){return 0!==n.results.length&&this.isResultSlide()?(this.resultLoaded||(this.vviinnResultLoad.emit(this.getBasicEventData()),this.trackResultEvent("load"),this.resultLoaded=!0),n.results.map(((i,s)=>{var e;return t("vviinn-product-card",{key:i.productId,hidden:!0,productTitle:i.title,productId:i.productId,productType:i.productType,brand:i.brand,deeplink:i.deeplink,price:i.price.actual,salePrice:i.price.sale,responsive:!0,imageWidth:this.imageResolutionWidth,image:null!==(e=i.image.thumbnail)&&void 0!==e?e:i.image.original,part:"product-card",campaignTypeId:"VPS",index:s,widgetElementId:this.id,buttonElementId:this.buttonElementId,widgetVersion:c})}))):null}resetState(){this.resetScroll("start-page_block"),this.slidePosition=0,n.resetCategoryLink=void 0,n.activeIonLink=void 0,n.image=h.none,n.imageUrl=h.none,n.imageBounds=h.none,n.searchArea=h.none,n.results=[],n.filters=[],n.detectedObjects=[],n.rectangleSearchForm=void 0,n.loading=!1,n.serverError=!1,n.searchType=void 0,this.wrongImageFormat=!1,this.resetScroll("results-block"),this.stopStreamTracks(),this.initResultEvents(),this.stream=null,this.cameraEnabled=!1,this.cameraButtonClicked=!1,this.cameraInitializing=!1,this.setShowAspectRatioError(!1)}haveErrors(){return this.wrongImageFormat||n.serverError}resetScroll(t,i="auto"){this.el.shadowRoot.getElementById(t).scroll({top:0,left:0,behavior:i})}handleModalClose(){this.active=!1,this.resetState(),["start-page_block","results-block"].forEach((t=>this.resetScroll(t))),this.trackWidgetEvent("close")}render(){var i;return t(e,{exportparts:"text-search-input"},!this.showingInButton&&v("vps"),t("vviinn-overlayed-modal",{class:{"first-screen":this.isOnboardingSlide()},isFirstScreen:this.isOnboardingSlide(),active:this.active,resetState:this.resetState.bind(this),onVviinnWidgetClose:()=>this.handleModalClose(),buttonElementId:null!==(i=this.buttonElementId)&&void 0!==i?i:this.id,widgetVersion:c,hideBackButton:"upload"===this.mode&&this.showingInButton||!this.cameraEnabled&&this.isOnboardingSlide(),exportparts:"secondary-action, title, close-button"},t("vviinn-slider",{showBullets:!1,position:this.slidePosition},t("vviinn-slide",{class:{"start-page":!0,"camera-enabled":this.cameraEnabled}},t("vviinn-example-image",{onVviinnImageUploadFinished:this.handleVviinnImageUploadFinished,onVviinnImageUpload:()=>{this.handleVviinnImageUpload("startCamera")},basicEventData:this.getBasicEventData(),srcObject:this.stream,cameraButtonClicked:this.cameraButtonClicked,exampleImageSource:this.exampleImageSource}),t("div",{class:{error:this.haveErrors()},id:"start-page_block"},t("div",{class:"start-page_main-content"},t("div",{class:{"start-page_errors-block":!0,hidden:!this.wrongImageFormat&&!n.serverError}},t("vviinn-wrong-format",{class:{hidden:!this.wrongImageFormat},handler:()=>this.resetState()}),t("vviinn-server-error",{class:{hidden:!n.serverError},handler:()=>this.resetState()})),!this.haveErrors()&&t("vviinn-teaser",null),!this.haveErrors()&&t("div",{class:"buttons-group"},this.renderButtons()),this.textSearchShow&&!this.haveErrors()&&t("vviinn-text-search",{clearSearchQuery:!0})),t("vviinn-privacy-badge",{privacyBadgeText:d.t("privacyBadgeText",{interpolation:{escapeValue:!1}}),class:{invisible:this.haveErrors()}}))),t("vviinn-slide",{class:{"results-page":!0,active:this.isResultSlide()}},this.isResultSlide()&&"image"===n.searchType&&t("div",{class:"image-wrapper"},t("vviinn-image-view",{basicEventData:this.getBasicEventData(),setShowAspectRatioError:this.setShowAspectRatioError,showAspectRatioError:this.showAspectRatioError}),t("div",{class:{"filters-wrapper":!0,hidden:this.showAspectRatioError}},t("div",{class:"filters"},n.filters.map((i=>t("search-filters",{filter:i,basicEventData:this.getBasicEventData()})))))),this.textSearchShow&&this.isResultSlide()&&"text"===n.searchType&&t("div",{class:"text-search-wrapper"},t("vviinn-text-search",{initialSearchQuery:this.initialSearchQuery})),t("div",{id:"results-block",class:"products-wrapper"},t("div",{class:{"nothing-found":!0,hidden:n.results.length>0}},t("vviinn-empty-results",{handler:()=>this.resetState()})),t("div",{class:{"nothing-found":!0,hidden:!this.showAspectRatioError}},t("vviinn-wrong-aspect-ratio",{handler:()=>this.resetState()})),t("div",{class:{hidden:0===n.results.length||this.showAspectRatioError,products:!0}},this.renderResults()))))))}get el(){return a(this)}static get watchers(){return{active:["activeWatcher"]}}};T.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);height:640px}#start-page_block{box-sizing:border-box;display:flex;overflow-y:auto;flex-direction:column;justify-content:center;padding:42px 62px}#start-page_block.error{align-content:center}.start-page_main-content{flex-grow:1;display:flex;flex-direction:column;justify-content:center}.start-page_errors-block{display:flex;flex-direction:column;justify-content:center;gap:12px}#start-page_block vviinn-text-search{margin-top:12px}.buttons-group{display:flex;flex-direction:column;gap:12px;margin-top:24px}.action-button{font-family:inherit;display:grid;border:none;cursor:pointer;align-items:center;border-radius:8px;font-size:16px;height:48px;justify-items:center;transition:background 0.1s ease-in-out;color:#525252;background-color:#f4f4f4}.action-button:hover{background-color:#eaeaea}.action-button:first-child{background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));color:white}.action-button:first-child:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}.action-button:active{border-color:black}.action-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:max-content auto;grid-gap:8px}.action-button .hidden{display:none}.results-page{margin-top:64px;display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.results-page .text-search-wrapper{width:100%;padding:24px}.products{width:100%;align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(130px, 1fr));justify-items:center;padding:24px;position:absolute}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{display:grid;grid-template-rows:min-content 1fr;min-width:100%}.filters-wrapper{margin-top:24px;overflow-x:auto;transform:translateX(-24px);min-width:calc(100% + 48px)}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#f4f4f4;border-radius:8px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:400;line-height:20px}search-filters::part(show-more-filters){display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #f4f4f4;min-width:40px;height:40px;border-radius:100px;box-sizing:border-box;color:#161616}search-filters::part(show-more-filters):hover{background:#eaeaea}search-filters::part(filter active){background:var(--color-primary, var(--color-primary-system));color:white}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}vviinn-preloader{--preloader-size:24px;display:flex}@media (max-width: 1080px){#start-page_block{padding:24px 36px}}@media (max-width: 768px){.start-page{display:flex;flex-direction:column;height:100%}vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:visible}.start-page.active{height:calc(100vh - 64px);height:calc(100svh - 64px)}.start-page:not(.active){overflow:hidden}.results-page{margin-top:0}.results-page>*{box-sizing:border-box;padding:12px 24px 24px}.image-wrapper{padding:0}.filters-wrapper{padding-left:24px;min-width:calc(100% + 40px)}.results-page{grid-template-rows:min-content;grid-template-columns:unset}#start-page_block{overflow-y:unset;min-height:-moz-fit-content;min-height:fit-content;padding:24px 20px}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0;margin-top:24px}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 480px){.start-page{padding-top:0}.action-button-content{grid-gap:10px}}@media (max-width: 380px){.filters-wrapper{padding-left:24px}.products{grid-gap:24px 10px}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}.visually-hidden{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}";export{T as vviinn_vps_widget}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-1e83e6ba.js";const n={VPR:"Similar Products",VPS:"Visual Search",VCS:"Cross-Selling"};function i(t,n){return i=>(t=>"VPR"===t._tag)(i)?t():n()}function a(t){return"VPR"===t?{_tag:"VPR"}:{_tag:"VCS"}}const e=["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}),s=t=>("vps"===t?o:e).map(v),r=(t,n)=>{n.innerHTML=t.outerHTML},c=(t,n)=>{t.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:t})=>{const i=(t=>Array.from(t.shadowRoot.querySelectorAll("slot")))(n).reduce((a=t,(t,n)=>{const i=a.find((e=n,t=>e.getAttribute("name")===t.getAttribute("slot")));var e;return i&&t.set(n,i),t}),new Map);var a;i.forEach(r)}),!0)},t.connectedCallback.call(t)};export{s as S,i as a,n as c,a as f,c as s}
|