1/*! For license information please see 4022-60881c19dad2f6e9570f.js.LICENSE.txt */ 2"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[4022,8380],{166:function(t,e,r){var n=r(6540);e.A=function(t){var e=t.children,r=t.infiniteScroll,o=t.arrows,i=t.dots,a=t.itemCountPerSlide,c=t.autoPlay,u=t.autoPlayInMs,l=t.revealNextItemPartially,s=t.centerZoom,f=t.noOfSlidesToScroll,p="";return l?p="cmp-carousel--reveal-next-item":s&&(p="cmp-carousel--show-center-zoom"),n.createElement("div",{className:"slickcarousel carousel panelcontainer "+p},n.createElement("div",{className:"cmp-carousel","data-component":"carousel","data-show-infinite-scroll":r||!1,"data-show-arrows":o||!1,"data-show-dots":i||!1,"data-item-count-per-slide":a||1,"data-auto-play-is-enabled":c||!1,"data-auto-play-speed-in-ms":u||500,"data-reveal-next-item-partially":l||!1,"data-show-center-zoom":s||!1,"data-slides-to-scroll":f||1},n.createElement("div",{className:"cmp-carousel__container"},e)))}},2551:function(t,e,r){r.d(e,{o:function(){return f}});var n=r(6540),o=["src","alt","className","placeholder","priority","fetchPriority","loading","threshold","rootMargin","onLoad","onError"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(null,arguments)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var l="scene7-width-policy",s=function(t){if("string"!=typeof t)return!1;try{var e=new URL(t);return("scene7.com"===e.hostname||e.hostname.endsWith(".scene7.com"))&&e.pathname.startsWith("/is/image/")}catch(t){return!1}},f=function(t){var e,r=t.src,u=t.alt,f=t.className,p=void 0===f?"":f,d=t.placeholder,m=void 0===d?"":d,y=t.priority,v=void 0!==y&&y,h=t.fetchPriority,b=void 0===h?v?"high":"low":h,g=t.loading,w=void 0===g?v?"eager":"lazy":g,S=t.threshold,E=void 0===S?.1:S,O=t.rootMargin,k=void 0===O?"100px":O,j=t.onLoad,P=t.onError,_=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,o),N=a((0,n.useState)(!1),2),T=N[0],I=N[1],x=a((0,n.useState)(v),2),A=x[0],C=x[1],G=a((0,n.use
2State)(!1),2),L=G[0],z=G[1],F=a((0,n.useState)(r),2),M=F[0],R=F[1],U=(0,n.useRef)(null),q=(0,n.useRef)(null),H=(0,n.useRef)(null),J="undefined"!=typeof document&&(document.documentElement.classList.contains(l)||(null===(e=document.body)||void 0===e?void 0:e.classList.contains(l)));(0,n.useEffect)(function(){if(J&&s(r)&&U.current){var t=function(t){var e,n="number"!=typeof(e=t)||Number.isNaN(e)||e<=0?null:Math.round(e);R(function(t,e){try{if(null===e)return t;var r=a(t.split("?"),2),n=r[0],o=r[1],i=new URLSearchParams(o||"");i.set("wid",e),i.set("fit","fit,1");var c=i.toString().replace(/(^|&)fit=fit%2C1(?=&|$)/,"$1fit=fit,1");return"".concat(n,"?").concat(c)}catch(e){return t}}(r,n))};return t(U.current.offsetWidth),H.current=new ResizeObserver(function(e){var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e);try{for(n.s();!(r=n.n()).done;){var o=r.value.contentRect.width;o>0&&t(o)}}catch(t){n.e(t)}finally{n.f()}}),H.current.observe(U.current),function(){var t;null===(t=H.current)||void 0===t||t.disconnect()}}R(r)},[r,J]),(0,n.useEffect)(function(){J&&s(r)||R(r)},[r,J]),(0,n.useEffect)(function(){if(!v&&U.current)return q.current=new IntersectionObserver(function(t){t.forEach(function(t){var e;t.isIntersecting&&(C(!0),null===(e=q.current)||void 0===e||e.disconnect())})},{threshold:E,rootMargin:k}),q.current.observe(U.current),function(){var t;null===(t=q.current)||void 0===t||t.disconnect()}},[E,k,v]);return n.createElement("div",i({ref:U,className:"lazy-image-container"},_),m&&!A&&n.createElement("div",{className:"lazy-image-placeholder"},"string"==typeof m?n.createElement("img",{src:m,alt:u,className:"placeholder-img"}):m),A&&n.createElement("img",{src:M,alt:u,loading:w,fetchPriority:b,className:"".concat(p," lazy-image ").concat(T?"loaded":"loading"," ").concat(L?"error":""),onLoad:function(t){I(!0),null==j||j(t)},onError:function(t){z(!0),null==P||P(t)},style:{opacity:T?1:0,transition:"opacity 0.3s ease-in-out"}}),L&&n.createElement("div",{className:"lazy-image-error"},n.createElement("span",null,"Failed to load image")))}},4022:function(t,e,r){r.r(e),r.d(e,{default:function(){return g}});var n=r(6540),o=r(5338),i=r(2551),a=r(3331),c=r(8380),u=r(166);function l(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return s(l,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function d(r,n){for(c=r,u=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,m=i[2];r>3?(o=m===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,p.v=n,p.n=i[1]):d<m&&(o=r<3||i[0]>n||n>m)&&(i[4]=r,i[5]=n,p.n=m,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,m),c=s,u=m;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(r,o,i),!0),l}var a={};function c(){}function u(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(s(e={},n,function(){return this}),e),d=f.prototype=c.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=f,s(d,"constructor",f),s(f,"constructor",u),u.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,n,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:m}})()}function s(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,e,r,n){function i(e,r){s(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},s(t,e,r,n)}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;
2!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t){var e,r=t.endpoint,o=(t.autoPlayIsEnabled,t.autoPlaySpeedInMs,p((0,n.useState)(null),2)),s=o[0],d=o[1],m=p((0,n.useState)(null),2),y=m[0],v=m[1],h=p((0,n.useState)(!1),2),b=h[0],g=h[1];(0,n.useEffect)(function(){w()},[]);var w=function(){var t,e=(t=l().m(function t(){var e,n,o;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,c.default.get(r);case 1:n=t.v,(null===(e=n.productsList)||void 0===e?void 0:e.length)%2!=0&&g(!0),v(n),d(n.productsList[0]),t.n=3;break;case 2:t.p=2,o=t.v,console.log("Error fetching data:",o);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(void 0)})});return function(){return e.apply(this,arguments)}}();return n.createElement(n.Fragment,null,y&&n.createElement("div",{style:{backgroundImage:"url(".concat(y.bgImage,")")},className:"cmp-product-cookie"},n.createElement("h2",{className:"cmp-product-cookie__title"},y.title),n.createElement("p",{className:"cmp-product-cookie__sub-title"},y.subTitle),n.createElement("div",{className:"cmp-product-cookie__carousel"},n.createElement(u.A,{dots:!a.viewPort.desktop.matches,itemCountPerSlide:a.viewPort.desktop.matches?6:2,noOfSlidesToScroll:a.viewPort.desktop.matches?6:2},null===(e=y.productsList)||void 0===e?void 0:e.map(function(t,e){var r=function(t){var e="";return!b||a.viewPort.desktop.matches||t+2!=y.productsList.length&&t+1!=y.productsList.length||(e="cookie-last-item"),e}(e);return n.createElement("div",{key:"content".concat(e),className:"cmp-carousel__item cmp-product-cookie__carousel-item "+r},n.createElement(i.o,{src:t.productImage,className:"is-clickable",onClick:function(){return function(t){d(t)}(t)},alt:t.altText,loading:"lazy"}))}))),s&&n.createElement("div",{className:"cmp-product-cookie__content"},n.createElement(i.o,{src:s.productImage,alt:s.altText,loading:"lazy"}),n.createElement("div",{className:"cmp-product-cookie__content-footer"},n.createElement("h5",{className:"cmp-product-cookie__name"},s.productTitle),n.createElement("p",{className:"cmp-product-cookie__description"},null==s?void 0:s.productDescription)))))}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function h(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}var g=h(function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=JSON.parse(JSON.stringify(e.dataset));(0,o.createRoot)(e).render(n.createElement(m,r))})},8380:function(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function c(r,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return i(s,"_invoke",function(r,n,o){var i,a,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,a=0,c=t,p.n=r,u}};function d(r,n){for(a=r,c=n,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],d=p.p,m=i[2];r>
23?(o=m===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(a=0,p.v=n,p.n=i[1]):d<m&&(o=r<3||i[0]>n||n>m)&&(i[4]=r,i[5]=n,p.n=m,a=0))}if(o||r>1)return u;throw f=!0,n}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,m),a=s,c=m;(e=a<2?t:c)||!f;){i||(a?a<3?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(l=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==u)break}catch(e){i=t,a=1,c=e}finally{l=1}}return{value:e,done:f}}}(r,o,a),!0),s}var u={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(i(e={},n,function(){return this}),e),d=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,i(d,"constructor",f),i(f,"constructor",s),s.displayName="GeneratorFunction",i(f,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,n,function(){return this}),i(d,"toString",function(){return"[object Generator]"}),(o=function(){return{w:c,m:m}})()}function i(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,e,r,n){function a(e,r){i(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},i(t,e,r,n)}function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)})}}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e);var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.promiseCache={},this.interval=2e3},e=[{key:"stringCompression",value:function(t){if(0==t.length)return console.error("Please enter valid string."),"";for(var e="",r=0,n=0;n<t.length;n++)r++,t[n]!=t[n+1]&&(e+=t[n]+r,r=0);return e}},{key:"getHeaders",value:function(){var t={"Content-Type":"application/json"};return t}},{key:"post",value:(s=c(o().m(function t(e){var r,n=arguments;return o().w(function(t){for(;;)if(0===t.n)return r=!(n.length>1&&void 0!==n[1])||n[1],t.a(2,this.request("POST",e,r,this.getHeaders()))},t,this)})),function(t){return s.apply(this,arguments)})},{key:"get",value:(l=c(o().m(function t(){var e,r=arguments;return o().w(function(t){for(;;)if(0===t.n)return e=!(r.length>0&&void 0!==r[0])||r[0],t.a(2,this.request("GET",e,null,this.getHeaders()))},t,this)})),function(){return l.apply(this,arguments)})},{key:"put",value:(a=c(o().m(function t(e){var r,n=arguments;return o().w(function(t){for(;;)if(0===t.n)return r=!(n.length>1&&void 0!==n[1])||n[1],t.a(2,this.request("PUT",e,r,this.getHeaders()))},t,this)})),function(t){return a.apply(this,arguments)})},{key:"delete",value:(i=c(o().m(function t(){var e,r=arguments;return o().w(function(t){for(;;)if(0===t.n)return e=!(r.length>0&&void 0!==r[0])||r[0],t.a(2,this.request("DELETE",e,null,this.getHeaders()))},t,this)})),function(){return i.apply(this,arguments)})},{key:"request",value:(n=c(o().m(function t(e,r){var n,i,a,u,l,s,f=arguments;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return n=f.length>2&&void 0!==f[2]?f[2]:null,i=f.length>3&&void 0!==f[3]?f[3]:null,a=JSON.stringify(n),u=n?{method:e,body:a,headers:i}:{method:e,headers:i},t.p=1,l=new Promise(function(t,e){fetch(r,u).then(function(){var r=c(o().m(function r(n){var i,a,c,u,l,s;return o().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,i=n.headers.get("content-type")||"",r.n=1,n.text();case 1:if(a=r.v,c=null,a)if(i.includes("application/json")||/^[\[{\"]/.test(a.trim()))try{c=JSON.parse(a)}catch(t){c=a}else c=a;if(u=null===c&&n.ok?{}:c,!(l={status:n.status,ok:n.ok,json:u}).ok){r.n=2;break}return r.a(2,t(l.json));case 2:return r.a(2,e(l.json));case 3:r.p=3,s=r.v,e({networkError:s.message});case 4:return r.a(2)}},r,null,[[0,3]])}
2));return function(t){return r.apply(this,arguments)}}()).catch(function(t){e({networkError:t.message})})}),t.a(2,l);case 2:t.p=2,s=t.v,console.error(s);case 3:return t.a(2)}},t,null,[[1,2]])})),function(t,e){return n.apply(this,arguments)})},{key:"handleAccessDenied",value:function(){console.info("Access denied")}},{key:"handleUnauthorised",value:function(){console.info("unauthorized")}}],e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,n,i,a,l,s}(),f=new s;Object.freeze(f),e.default=f}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.