@covet-pics/covet-pics-widget 0.167.1 → 0.167.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/covet-pics-crop-text.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-direct-buy_7.cjs.entry.js +5 -5
- package/dist/cjs/covet-pics-gallery-grid_3.cjs.entry.js +3 -3
- package/dist/cjs/covet-pics-gallery-header_6.cjs.entry.js +6 -6
- package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +2 -2
- package/dist/cjs/covet-pics-popup-freeflow-carousel_2.cjs.entry.js +2 -2
- package/dist/cjs/covet-pics-post.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-star-rating.cjs.entry.js +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/p-1fd39db4.entry.js +28 -0
- package/dist/covet-pics-widget/p-2d979ee6.entry.js +4 -0
- package/dist/covet-pics-widget/p-343a9287.entry.js +4 -0
- package/dist/covet-pics-widget/{p-11ac21ec.entry.js → p-4a786875.entry.js} +1 -1
- package/dist/covet-pics-widget/p-5d9ddd55.entry.js +23 -0
- package/dist/covet-pics-widget/{p-78aecb5b.entry.js → p-aceb8cc8.entry.js} +1 -1
- package/dist/covet-pics-widget/p-b83ceda6.entry.js +4 -0
- package/dist/covet-pics-widget/p-fefed130.entry.js +4 -0
- package/dist/esm/covet-pics-crop-text.entry.js +1 -1
- package/dist/esm/covet-pics-direct-buy_7.entry.js +5 -5
- package/dist/esm/covet-pics-gallery-grid_3.entry.js +3 -3
- package/dist/esm/covet-pics-gallery-header_6.entry.js +6 -6
- package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +2 -2
- package/dist/esm/covet-pics-popup-freeflow-carousel_2.entry.js +2 -2
- package/dist/esm/covet-pics-post.entry.js +1 -1
- package/dist/esm/covet-pics-star-rating.entry.js +1 -1
- package/dist/index.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +1 -2
- package/package.json +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.js +0 -127
- package/dist/covet-pics-widget/p-03fc64d2.system.entry.js +0 -9
- package/dist/covet-pics-widget/p-18663f09.entry.js +0 -28
- package/dist/covet-pics-widget/p-2497fdcc.entry.js +0 -4
- package/dist/covet-pics-widget/p-411e632e.entry.js +0 -4
- package/dist/covet-pics-widget/p-461a30a6.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-48b7f554.system.entry.js +0 -22
- package/dist/covet-pics-widget/p-4c35255b.entry.js +0 -23
- package/dist/covet-pics-widget/p-60290e84.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-6526fd8a.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-848e4b25.system.entry.js +0 -35
- package/dist/covet-pics-widget/p-85bb5826.entry.js +0 -4
- package/dist/covet-pics-widget/p-9a32b604.entry.js +0 -4
- package/dist/covet-pics-widget/p-B79ERe1V.system.js +0 -4
- package/dist/covet-pics-widget/p-BV-IrE-J.system.js +0 -4
- package/dist/covet-pics-widget/p-BfpfyqAf.system.js +0 -4
- package/dist/covet-pics-widget/p-Bm6-W0wN.system.js +0 -4
- package/dist/covet-pics-widget/p-C7O2k9vv.system.js +0 -4
- package/dist/covet-pics-widget/p-CINH_0E4.system.js +0 -5
- package/dist/covet-pics-widget/p-CQNbe3vT.system.js +0 -4
- package/dist/covet-pics-widget/p-CQOhOWMI.system.js +0 -4
- package/dist/covet-pics-widget/p-CQZnM5Xd.system.js +0 -4
- package/dist/covet-pics-widget/p-DIWtHfnX.system.js +0 -4
- package/dist/covet-pics-widget/p-DOaj8mQY.system.js +0 -4
- package/dist/covet-pics-widget/p-DY8xuMic.system.js +0 -4
- package/dist/covet-pics-widget/p-DgaiJISy.system.js +0 -4
- package/dist/covet-pics-widget/p-O36ZrzuT.system.js +0 -4
- package/dist/covet-pics-widget/p-b9ebfbf3.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-cUc61CN7.system.js +0 -4
- package/dist/covet-pics-widget/p-dPoy1IK7.system.js +0 -4
- package/dist/covet-pics-widget/p-e065ad82.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-f2e1f609.system.entry.js +0 -4
- package/dist/covet-pics-widget/p-k4Scj-7R.system.js +0 -4
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm-es5/_commonjsHelpers-DVa63jZy.js +0 -4
- package/dist/esm-es5/a11y-BM21er6f.js +0 -4
- package/dist/esm-es5/app-globals-CWiAxP5O.js +0 -4
- package/dist/esm-es5/covet-pics-crop-text.entry.js +0 -4
- package/dist/esm-es5/covet-pics-direct-buy_7.entry.js +0 -9
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js +0 -35
- package/dist/esm-es5/covet-pics-gallery-header_6.entry.js +0 -22
- package/dist/esm-es5/covet-pics-highlighted-hotspots_2.entry.js +0 -4
- package/dist/esm-es5/covet-pics-popup-freeflow-carousel_2.entry.js +0 -4
- package/dist/esm-es5/covet-pics-post.entry.js +0 -4
- package/dist/esm-es5/covet-pics-star-rating.entry.js +0 -4
- package/dist/esm-es5/covet-pics-widget.entry.js +0 -4
- package/dist/esm-es5/covet-pics-widget.js +0 -4
- package/dist/esm-es5/getters-C5ofYrUT.js +0 -4
- package/dist/esm-es5/index-C-mGosc6.js +0 -5
- package/dist/esm-es5/index-CnpZZF3m.js +0 -4
- package/dist/esm-es5/index.js +0 -3
- package/dist/esm-es5/loader.js +0 -4
- package/dist/esm-es5/modals-B4bZnaAK.js +0 -4
- package/dist/esm-es5/navigation-xBso107Y.js +0 -4
- package/dist/esm-es5/pagination-C5Wsf2-B.js +0 -4
- package/dist/esm-es5/popup-B68hw7d9.js +0 -4
- package/dist/esm-es5/popupFuncComponents-76LYIj-8.js +0 -4
- package/dist/esm-es5/slider-DaNqPZdj.js +0 -4
- package/dist/esm-es5/slider-DfItksrM.js +0 -4
- package/dist/esm-es5/storeUtils-Mc-D_Wnh.js +0 -4
- package/dist/esm-es5/utils-CADUxYKc.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++){r=arguments[i];for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,r,i){if(i||arguments.length===2)for(var t=0,n=r.length,a;t<n;t++){if(a||!(t in r)){if(!a)a=Array.prototype.slice.call(r,0,t);a[t]=r[t]}}return e.concat(a||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/System.register([],(function(e){"use strict";return{execute:function(){e({A:lr,a:sr,b:E,c:or,d:O,e:I,f:k,g:w,h:n,i:u,j:S,k:T,m:j,n:s});function r(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function i(e,t){if(e===void 0){e={}}if(t===void 0){t={}}var n=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return n.indexOf(e)<0})).forEach((function(n){if(typeof e[n]==="undefined")e[n]=t[n];else if(r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0){i(e[n],t[n])}}))}var t={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function n(){var e=typeof document!=="undefined"?document:{};i(e,t);return e}var a={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function e(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame:function(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function f(){var e=typeof window!=="undefined"?window:{};i(e,a);return e}function u(e){if(e===void 0){e=""}return e.trim().split(" ").filter((function(e){return!!e.trim()}))}function o(e){var r=e;Object.keys(r).forEach((function(e){try{r[e]=null}catch(e){}try{delete r[e]}catch(e){}}))}function s(e,r){if(r===void 0){r=0}return setTimeout(e,r)}function l(){return Date.now()}function v(e){var r=f();var i;if(r.getComputedStyle){i=r.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function d(e,r){if(r===void 0){r="x"}var i=f();var t;var n;var a;var u=v(e);if(i.WebKitCSSMatrix){n=u.transform||u.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")}a=new i.WebKitCSSMatrix(n==="none"?"":n)}else{a=u.MozTransform||u.OTransform||u.MsTransform||u.msTransform||u.transform||u.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");t=a.toString().split(",")}if(r==="x"){if(i.WebKitCSSMatrix)n=a.m41;else if(t.length===16)n=parseFloat(t[12]);else n=parseFloat(t[4])}if(r==="y"){if(i.WebKitCSSMatrix)n=a.m42;else if(t.length===16)n=parseFloat(t[13]);else n=parseFloat(t[5])}return n||0}function c(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function p(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function h(){var e=Object(arguments.length<=0?undefined:arguments[0]);var r=["__proto__","constructor","prototype"];for(var i=1;i<arguments.length;i+=1){var t=i<0||arguments.length<=i?undefined:arguments[i];if(t!==undefined&&t!==null&&!p(t)){var n=Object.keys(Object(t)).filter((function(e){return r.indexOf(e)<0}));for(var a=0,f=n.length;a<f;a+=1){var u=n[a];var o=Object.getOwnPropertyDescriptor(t,u);if(o!==undefined&&o.enumerable){if(c(e[u])&&c(t[u])){if(t[u].__swiper__){e[u]=t[u]}else{h(e[u],t[u])}}else if(!c(e[u])&&c(t[u])){e[u]={};if(t[u].__swiper__){e[u]=t[u]}else{h(e[u],t[u])}}else{e[u]=t[u]}}}}}return e}function g(e,r,i){e.style.setProperty(r,i)}function m(e){var r=e.swiper,i=e.targetPosition,t=e.side;var n=f();var a=-r.translate;var u=null;var o;var s=r.params.speed;r.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(r.cssModeFrameID);var l=i>a?"next":"prev";var v=function(e,r){return l==="next"&&e>=r||l==="prev"&&e<=r};var d=function(){var e;o=(new Date).getTime();if(u===null){u=o}var f=Math.max(Math.min((o-u)/s,1),0);var l=.5-Math.cos(f*Math.PI)/2;var c=a+l*(i-a);if(v(c,i)){c=i}r.wrapperEl.scrollTo((e={},e[t]=c,e));if(v(c,i)){r.wrapperEl.style.overflow="hidden";r.wrapperEl.style.scrollSnapType="";setTimeout((function(){var e;r.wrapperEl.style.overflow="";r.wrapperEl.scrollTo((e={},e[t]=c,e))}));n.cancelAnimationFrame(r.cssModeFrameID);return}r.cssModeFrameID=n.requestAnimationFrame(d)};d()}function w(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function y(e,r){if(r===void 0){r=""}var i=f();var t=__spreadArray([],e.children,true);if(i.HTMLSlotElement&&e instanceof HTMLSlotElement){t.push.apply(t,e.assignedElements())}if(!r){return t}return t.filter((function(e){return e.matches(r)}))}function b(e,r){var i=[r];while(i.length>0){var t=i.shift();if(e===t){return true}i.push.apply(i,__spreadArray(__spreadArray(__spreadArray([],t.children,false),t.shadowRoot?t.shadowRoot.children:[],false),t.assignedElements?t.assignedElements():[],false))}}function x(e,r){var i=f();var t=r.contains(e);if(!t&&i.HTMLSlotElement&&r instanceof HTMLSlotElement){var n=__spreadArray([],r.assignedElements(),true);t=n.includes(e);if(!t){t=b(e,r)}}return t}function M(e){try{console.warn(e);return}catch(e){}}function S(e,r){var i;if(r===void 0){r=[]}var t=document.createElement(e);(i=t.classList).add.apply(i,Array.isArray(r)?r:u(r));return t}function T(e){var r=f();var i=n();var t=e.getBoundingClientRect();var a=i.body;var u=e.clientTop||a.clientTop||0;var o=e.clientLeft||a.clientLeft||0;var s=e===r?r.scrollY:e.scrollTop;var l=e===r?r.scrollX:e.scrollLeft;return{top:t.top+s-u,left:t.left+l-o}}function A(e,r){var i=[];while(e.previousElementSibling){var t=e.previousElementSibling;if(r){if(t.matches(r))i.push(t)}else i.push(t);e=t}return i}function _(e,r){var i=[];while(e.nextElementSibling){var t=e.nextElementSibling;if(r){if(t.matches(r))i.push(t)}else i.push(t);e=t}return i}function C(e,r){var i=f();return i.getComputedStyle(e,null).getPropertyValue(r)}function O(e){var r=e;var i;if(r){i=0;while((r=r.previousSibling)!==null){if(r.nodeType===1)i+=1}return i}return undefined}function I(e,r){var i=[];var t=e.parentElement;while(t){if(r){if(t.matches(r))i.push(t)}else{i.push(t)}t=t.parentElement}return i}function k(e,r){function i(t){if(t.target!==e)return;r.call(e,t);e.removeEventListener("transitionend",i)}if(r){e.addEventListener("transitionend",i)}}function E(e,r,i){var t=f();{return e[r==="width"?"offsetWidth":"offsetHeight"]+parseFloat(t.getComputedStyle(e,null).getPropertyValue(r==="width"?"margin-right":"margin-top"))+parseFloat(t.getComputedStyle(e,null).getPropertyValue(r==="width"?"margin-left":"margin-bottom"))}}function j(e){return(Array.isArray(e)?e:[e]).filter((function(e){return!!e}))}var F;function P(){var e=f();var r=n();return{smoothScroll:r.documentElement&&r.documentElement.style&&"scrollBehavior"in r.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&r instanceof e.DocumentTouch)}}function L(){if(!F){F=P()}return F}var z;function N(e){var r=(e===void 0?{}:e).userAgent;var i=L();var t=f();var n=t.navigator.platform;var a=r||t.navigator.userAgent;var u={ios:false,android:false};var o=t.screen.width;var s=t.screen.height;var l=a.match(/(Android);?[\s\/]+([\d.]+)?/);var v=a.match(/(iPad).*OS\s([\d_]+)/);var d=a.match(/(iPod)(.*OS\s([\d_]+))?/);var c=!v&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/);var p=n==="Win32";var h=n==="MacIntel";var g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!v&&h&&i.touch&&g.indexOf("".concat(o,"x").concat(s))>=0){v=a.match(/(Version)\/([\d.]+)/);if(!v)v=[0,1,"13_0_0"];h=false}if(l&&!p){u.os="android";u.android=true}if(v||c||d){u.os="ios";u.ios=true}return u}function R(e){if(e===void 0){e={}}if(!z){z=N(e)}return z}var B;function D(){var e=f();var r=R();var i=false;function t(){var r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(t()){var n=String(e.navigator.userAgent);if(n.includes("Version/")){var a=n.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),u=a[0],o=a[1];i=u<16||u===16&&o<2}}var s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent);var l=t();var v=l||s&&r.ios;return{isSafari:i||l,needPerspectiveFix:i,need3dFix:v,isWebView:s}}function G(){if(!B){B=D()}return B}function q(e){var r=e.swiper,i=e.on,t=e.emit;var n=f();var a=null;var u=null;var o=function(){if(!r||r.destroyed||!r.initialized)return;t("beforeResize");t("resize")};var s=function(){if(!r||r.destroyed||!r.initialized)return;a=new ResizeObserver((function(e){u=n.requestAnimationFrame((function(){var i=r.width,t=r.height;var n=i;var a=t;e.forEach((function(e){var i=e.contentBoxSize,t=e.contentRect,f=e.target;if(f&&f!==r.el)return;n=t?t.width:(i[0]||i).inlineSize;a=t?t.height:(i[0]||i).blockSize}));if(n!==i||a!==t){o()}}))}));a.observe(r.el)};var l=function(){if(u){n.cancelAnimationFrame(u)}if(a&&a.unobserve&&r.el){a.unobserve(r.el);a=null}};var v=function(){if(!r||r.destroyed||!r.initialized)return;t("orientationchange")};i("init",(function(){if(r.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){s();return}n.addEventListener("resize",o);n.addEventListener("orientationchange",v)}));i("destroy",(function(){l();n.removeEventListener("resize",o);n.removeEventListener("orientationchange",v)}))}function W(e){var r=e.swiper,i=e.extendParams,t=e.on,n=e.emit;var a=[];var u=f();var o=function(e,i){if(i===void 0){i={}}var t=u.MutationObserver||u.WebkitMutationObserver;var f=new t((function(e){if(r.__preventObserver__)return;if(e.length===1){n("observerUpdate",e[0]);return}var i=function r(){n("observerUpdate",e[0])};if(u.requestAnimationFrame){u.requestAnimationFrame(i)}else{u.setTimeout(i,0)}}));f.observe(e,{attributes:typeof i.attributes==="undefined"?true:i.attributes,childList:r.isElement||(typeof i.childList==="undefined"?true:i).childList,characterData:typeof i.characterData==="undefined"?true:i.characterData});a.push(f)};var s=function(){if(!r.params.observer)return;if(r.params.observeParents){var e=I(r.hostEl);for(var i=0;i<e.length;i+=1){o(e[i])}}o(r.hostEl,{childList:r.params.observeSlideChildren});o(r.wrapperEl,{attributes:false})};var l=function(){a.forEach((function(e){e.disconnect()}));a.splice(0,a.length)};i({observer:false,observeParents:false,observeSlideChildren:false});t("init",s);t("destroy",l)}var V={on:function(e,r,i){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(typeof r!=="function")return t;var n=i?"unshift":"push";e.split(" ").forEach((function(e){if(!t.eventsListeners[e])t.eventsListeners[e]=[];t.eventsListeners[e][n](r)}));return t},once:function(e,r,i){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(typeof r!=="function")return t;function n(){t.off(e,n);if(n.__emitterProxy){delete n.__emitterProxy}for(var i=arguments.length,a=new Array(i),f=0;f<i;f++){a[f]=arguments[f]}r.apply(t,a)}n.__emitterProxy=r;return t.on(e,n,i)},onAny:function(e,r){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;var t=r?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[t](e)}return i},offAny:function(e){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(!r.eventsAnyListeners)return r;var i=r.eventsAnyListeners.indexOf(e);if(i>=0){r.eventsAnyListeners.splice(i,1)}return r},off:function(e,r){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((function(e){if(typeof r==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach((function(t,n){if(t===r||t.__emitterProxy&&t.__emitterProxy===r){i.eventsListeners[e].splice(n,1)}}))}}));return i},emit:function(){var e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;var r;var i;var t;for(var n=arguments.length,a=new Array(n),f=0;f<n;f++){a[f]=arguments[f]}if(typeof a[0]==="string"||Array.isArray(a[0])){r=a[0];i=a.slice(1,a.length);t=e}else{r=a[0].events;i=a[0].data;t=a[0].context||e}i.unshift(t);var u=Array.isArray(r)?r:r.split(" ");u.forEach((function(r){if(e.eventsAnyListeners&&e.eventsAnyListeners.length){e.eventsAnyListeners.forEach((function(e){e.apply(t,__spreadArray([r],i,true))}))}if(e.eventsListeners&&e.eventsListeners[r]){e.eventsListeners[r].forEach((function(e){e.apply(t,i)}))}}));return e}};function Y(){var e=this;var r;var i;var t=e.el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){r=e.params.width}else{r=t.clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=t.clientHeight}if(r===0&&e.isHorizontal()||i===0&&e.isVertical()){return}r=r-parseInt(C(t,"padding-left")||0,10)-parseInt(C(t,"padding-right")||0,10);i=i-parseInt(C(t,"padding-top")||0,10)-parseInt(C(t,"padding-bottom")||0,10);if(Number.isNaN(r))r=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:r,height:i,size:e.isHorizontal()?r:i})}function H(){var e=this;function r(r,i){return parseFloat(r.getPropertyValue(e.getDirectionLabel(i))||0)}var i=e.params;var t=e.wrapperEl,n=e.slidesEl,a=e.size,f=e.rtlTranslate,u=e.wrongRTL;var o=e.virtual&&i.virtual.enabled;var s=o?e.virtual.slides.length:e.slides.length;var l=y(n,".".concat(e.params.slideClass,", swiper-slide"));var v=o?e.virtual.slides.length:l.length;var d=[];var c=[];var p=[];var h=i.slidesOffsetBefore;if(typeof h==="function"){h=i.slidesOffsetBefore.call(e)}var m=i.slidesOffsetAfter;if(typeof m==="function"){m=i.slidesOffsetAfter.call(e)}var w=e.snapGrid.length;var b=e.slidesGrid.length;var x=i.spaceBetween;var M=-h;var S=0;var T=0;if(typeof a==="undefined"){return}if(typeof x==="string"&&x.indexOf("%")>=0){x=parseFloat(x.replace("%",""))/100*a}else if(typeof x==="string"){x=parseFloat(x)}e.virtualSize=-x;l.forEach((function(e){if(f){e.style.marginLeft=""}else{e.style.marginRight=""}e.style.marginBottom="";e.style.marginTop=""}));if(i.centeredSlides&&i.cssMode){g(t,"--swiper-centered-offset-before","");g(t,"--swiper-centered-offset-after","")}var A=i.grid&&i.grid.rows>1&&e.grid;if(A){e.grid.initSlides(l)}else if(e.grid){e.grid.unsetSlides()}var _;var O=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter((function(e){return typeof i.breakpoints[e].slidesPerView!=="undefined"})).length>0;for(var I=0;I<v;I+=1){_=0;var k=void 0;if(l[I])k=l[I];if(A){e.grid.updateSlide(I,k,l)}if(l[I]&&C(k,"display")==="none")continue;if(i.slidesPerView==="auto"){if(O){l[I].style[e.getDirectionLabel("width")]=""}var j=getComputedStyle(k);var F=k.style.transform;var P=k.style.webkitTransform;if(F){k.style.transform="none"}if(P){k.style.webkitTransform="none"}if(i.roundLengths){_=e.isHorizontal()?E(k,"width"):E(k,"height")}else{var L=r(j,"width");var z=r(j,"padding-left");var N=r(j,"padding-right");var R=r(j,"margin-left");var B=r(j,"margin-right");var D=j.getPropertyValue("box-sizing");if(D&&D==="border-box"){_=L+R+B}else{var G=k.clientWidth,q=k.offsetWidth;_=L+z+N+R+B+(q-G)}}if(F){k.style.transform=F}if(P){k.style.webkitTransform=P}if(i.roundLengths)_=Math.floor(_)}else{_=(a-(i.slidesPerView-1)*x)/i.slidesPerView;if(i.roundLengths)_=Math.floor(_);if(l[I]){l[I].style[e.getDirectionLabel("width")]="".concat(_,"px")}}if(l[I]){l[I].swiperSlideSize=_}p.push(_);if(i.centeredSlides){M=M+_/2+S/2+x;if(S===0&&I!==0)M=M-a/2-x;if(I===0)M=M-a/2-x;if(Math.abs(M)<1/1e3)M=0;if(i.roundLengths)M=Math.floor(M);if(T%i.slidesPerGroup===0)d.push(M);c.push(M)}else{if(i.roundLengths)M=Math.floor(M);if((T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup===0)d.push(M);c.push(M);M=M+_+x}e.virtualSize+=_+x;S=_;T+=1}e.virtualSize=Math.max(e.virtualSize,a)+m;if(f&&u&&(i.effect==="slide"||i.effect==="coverflow")){t.style.width="".concat(e.virtualSize+x,"px")}if(i.setWrapperSize){t.style[e.getDirectionLabel("width")]="".concat(e.virtualSize+x,"px")}if(A){e.grid.updateWrapperSize(_,d)}if(!i.centeredSlides){var W=[];for(var I=0;I<d.length;I+=1){var V=d[I];if(i.roundLengths)V=Math.floor(V);if(d[I]<=e.virtualSize-a){W.push(V)}}d=W;if(Math.floor(e.virtualSize-a)-Math.floor(d[d.length-1])>1){d.push(e.virtualSize-a)}}if(o&&i.loop){var Y=p[0]+x;if(i.slidesPerGroup>1){var H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup);var U=Y*i.slidesPerGroup;for(var I=0;I<H;I+=1){d.push(d[d.length-1]+U)}}for(var I=0;I<e.virtual.slidesBefore+e.virtual.slidesAfter;I+=1){if(i.slidesPerGroup===1){d.push(d[d.length-1]+Y)}c.push(c[c.length-1]+Y);e.virtualSize+=Y}}if(d.length===0)d=[0];if(x!==0){var X=e.isHorizontal()&&f?"marginLeft":e.getDirectionLabel("marginRight");l.filter((function(e,r){if(!i.cssMode||i.loop)return true;if(r===l.length-1){return false}return true})).forEach((function(e){e.style[X]="".concat(x,"px")}))}if(i.centeredSlides&&i.centeredSlidesBounds){var K=0;p.forEach((function(e){K+=e+(x||0)}));K-=x;var $=K>a?K-a:0;d=d.map((function(e){if(e<=0)return-h;if(e>$)return $+m;return e}))}if(i.centerInsufficientSlides){var J=0;p.forEach((function(e){J+=e+(x||0)}));J-=x;var Q=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(J+Q<a){var Z=(a-J-Q)/2;d.forEach((function(e,r){d[r]=e-Z}));c.forEach((function(e,r){c[r]=e+Z}))}}Object.assign(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p});if(i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){g(t,"--swiper-centered-offset-before","".concat(-d[0],"px"));g(t,"--swiper-centered-offset-after","".concat(e.size/2-p[p.length-1]/2,"px"));var ee=-e.snapGrid[0];var re=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+ee}));e.slidesGrid=e.slidesGrid.map((function(e){return e+re}))}if(v!==s){e.emit("slidesLengthChange")}if(d.length!==w){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(c.length!==b){e.emit("slidesGridLengthChange")}if(i.watchSlidesProgress){e.updateSlidesOffset()}e.emit("slidesUpdated");if(!o&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){var ie="".concat(i.containerModifierClass,"backface-hidden");var te=e.el.classList.contains(ie);if(v<=i.maxBackfaceHiddenSlides){if(!te)e.el.classList.add(ie)}else if(te){e.el.classList.remove(ie)}}}function U(e){var r=this;var i=[];var t=r.virtual&&r.params.virtual.enabled;var n=0;var a;if(typeof e==="number"){r.setTransition(e)}else if(e===true){r.setTransition(r.params.speed)}var f=function(e){if(t){return r.slides[r.getSlideIndexByData(e)]}return r.slides[e]};if(r.params.slidesPerView!=="auto"&&r.params.slidesPerView>1){if(r.params.centeredSlides){(r.visibleSlides||[]).forEach((function(e){i.push(e)}))}else{for(a=0;a<Math.ceil(r.params.slidesPerView);a+=1){var u=r.activeIndex+a;if(u>r.slides.length&&!t)break;i.push(f(u))}}}else{i.push(f(r.activeIndex))}for(a=0;a<i.length;a+=1){if(typeof i[a]!=="undefined"){var o=i[a].offsetHeight;n=o>n?o:n}}if(n||n===0)r.wrapperEl.style.height="".concat(n,"px")}function X(){var e=this;var r=e.slides;var i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(var t=0;t<r.length;t+=1){r[t].swiperSlideOffset=(e.isHorizontal()?r[t].offsetLeft:r[t].offsetTop)-i-e.cssOverflowAdjustment()}}var K=function(e,r,i){if(r&&!e.classList.contains(i)){e.classList.add(i)}else if(!r&&e.classList.contains(i)){e.classList.remove(i)}};function $(e){if(e===void 0){e=this&&this.translate||0}var r=this;var i=r.params;var t=r.slides,n=r.rtlTranslate,a=r.snapGrid;if(t.length===0)return;if(typeof t[0].swiperSlideOffset==="undefined")r.updateSlidesOffset();var f=-e;if(n)f=e;r.visibleSlidesIndexes=[];r.visibleSlides=[];var u=i.spaceBetween;if(typeof u==="string"&&u.indexOf("%")>=0){u=parseFloat(u.replace("%",""))/100*r.size}else if(typeof u==="string"){u=parseFloat(u)}for(var o=0;o<t.length;o+=1){var s=t[o];var l=s.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){l-=t[0].swiperSlideOffset}var v=(f+(i.centeredSlides?r.minTranslate():0)-l)/(s.swiperSlideSize+u);var d=(f-a[0]+(i.centeredSlides?r.minTranslate():0)-l)/(s.swiperSlideSize+u);var c=-(f-l);var p=c+r.slidesSizesGrid[o];var h=c>=0&&c<=r.size-r.slidesSizesGrid[o];var g=c>=0&&c<r.size-1||p>1&&p<=r.size||c<=0&&p>=r.size;if(g){r.visibleSlides.push(s);r.visibleSlidesIndexes.push(o)}K(s,g,i.slideVisibleClass);K(s,h,i.slideFullyVisibleClass);s.progress=n?-v:v;s.originalProgress=n?-d:d}}function J(e){var r=this;if(typeof e==="undefined"){var i=r.rtlTranslate?-1:1;e=r&&r.translate&&r.translate*i||0}var t=r.params;var n=r.maxTranslate()-r.minTranslate();var a=r.progress,f=r.isBeginning,u=r.isEnd,o=r.progressLoop;var s=f;var l=u;if(n===0){a=0;f=true;u=true}else{a=(e-r.minTranslate())/n;var v=Math.abs(e-r.minTranslate())<1;var d=Math.abs(e-r.maxTranslate())<1;f=v||a<=0;u=d||a>=1;if(v)a=0;if(d)a=1}if(t.loop){var c=r.getSlideIndexByData(0);var p=r.getSlideIndexByData(r.slides.length-1);var h=r.slidesGrid[c];var g=r.slidesGrid[p];var m=r.slidesGrid[r.slidesGrid.length-1];var w=Math.abs(e);if(w>=h){o=(w-h)/m}else{o=(w+m-g)/m}if(o>1)o-=1}Object.assign(r,{progress:a,progressLoop:o,isBeginning:f,isEnd:u});if(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)r.updateSlidesProgress(e);if(f&&!s){r.emit("reachBeginning toEdge")}if(u&&!l){r.emit("reachEnd toEdge")}if(s&&!f||l&&!u){r.emit("fromEdge")}r.emit("progress",a)}var Q=function(e,r,i){if(r&&!e.classList.contains(i)){e.classList.add(i)}else if(!r&&e.classList.contains(i)){e.classList.remove(i)}};function Z(){var e=this;var r=e.slides,i=e.params,t=e.slidesEl,n=e.activeIndex;var a=e.virtual&&i.virtual.enabled;var f=e.grid&&i.grid&&i.grid.rows>1;var u=function(e){return y(t,".".concat(i.slideClass).concat(e,", swiper-slide").concat(e))[0]};var o;var s;var l;if(a){if(i.loop){var v=n-e.virtual.slidesBefore;if(v<0)v=e.virtual.slides.length+v;if(v>=e.virtual.slides.length)v-=e.virtual.slides.length;o=u('[data-swiper-slide-index="'.concat(v,'"]'))}else{o=u('[data-swiper-slide-index="'.concat(n,'"]'))}}else{if(f){o=r.find((function(e){return e.column===n}));l=r.find((function(e){return e.column===n+1}));s=r.find((function(e){return e.column===n-1}))}else{o=r[n]}}if(o){if(!f){l=_(o,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!l){l=r[0]}s=A(o,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!s===0){s=r[r.length-1]}}}r.forEach((function(e){Q(e,e===o,i.slideActiveClass);Q(e,e===l,i.slideNextClass);Q(e,e===s,i.slidePrevClass)}));e.emitSlidesClasses()}var ee=function(e,r){if(!e||e.destroyed||!e.params)return;var i=function(){return e.isElement?"swiper-slide":".".concat(e.params.slideClass)};var t=r.closest(i());if(t){var n=t.querySelector(".".concat(e.params.lazyPreloaderClass));if(!n&&e.isElement){if(t.shadowRoot){n=t.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass))}else{requestAnimationFrame((function(){if(t.shadowRoot){n=t.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass));if(n)n.remove()}}))}}if(n)n.remove()}};var re=function(e,r){if(!e.slides[r])return;var i=e.slides[r].querySelector('[loading="lazy"]');if(i)i.removeAttribute("loading")};var ie=function(e){if(!e||e.destroyed||!e.params)return;var r=e.params.lazyPreloadPrevNext;var i=e.slides.length;if(!i||!r||r<0)return;r=Math.min(r,i);var t=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView);var n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var a=n;var f=[a-r];f.push.apply(f,Array.from({length:r}).map((function(e,r){return a+t+r})));e.slides.forEach((function(r,i){if(f.includes(r.column))re(e,i)}));return}var u=n+t-1;if(e.params.rewind||e.params.loop){for(var o=n-r;o<=u+r;o+=1){var s=(o%i+i)%i;if(s<n||s>u)re(e,s)}}else{for(var o=Math.max(n-r,0);o<=Math.min(u+r,i-1);o+=1){if(o!==n&&(o>u||o<n)){re(e,o)}}}};function te(e){var r=e.slidesGrid,i=e.params;var t=e.rtlTranslate?e.translate:-e.translate;var n;for(var a=0;a<r.length;a+=1){if(typeof r[a+1]!=="undefined"){if(t>=r[a]&&t<r[a+1]-(r[a+1]-r[a])/2){n=a}else if(t>=r[a]&&t<r[a+1]){n=a+1}}else if(t>=r[a]){n=a}}if(i.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function ne(e){var r=this;var i=r.rtlTranslate?r.translate:-r.translate;var t=r.snapGrid,n=r.params,a=r.activeIndex,f=r.realIndex,u=r.snapIndex;var o=e;var s;var l=function(e){var i=e-r.virtual.slidesBefore;if(i<0){i=r.virtual.slides.length+i}if(i>=r.virtual.slides.length){i-=r.virtual.slides.length}return i};if(typeof o==="undefined"){o=te(r)}if(t.indexOf(i)>=0){s=t.indexOf(i)}else{var v=Math.min(n.slidesPerGroupSkip,o);s=v+Math.floor((o-v)/n.slidesPerGroup)}if(s>=t.length)s=t.length-1;if(o===a&&!r.params.loop){if(s!==u){r.snapIndex=s;r.emit("snapIndexChange")}return}if(o===a&&r.params.loop&&r.virtual&&r.params.virtual.enabled){r.realIndex=l(o);return}var d=r.grid&&n.grid&&n.grid.rows>1;var c;if(r.virtual&&n.virtual.enabled&&n.loop){c=l(o)}else if(d){var p=r.slides.find((function(e){return e.column===o}));var h=parseInt(p.getAttribute("data-swiper-slide-index"),10);if(Number.isNaN(h)){h=Math.max(r.slides.indexOf(p),0)}c=Math.floor(h/n.grid.rows)}else if(r.slides[o]){var g=r.slides[o].getAttribute("data-swiper-slide-index");if(g){c=parseInt(g,10)}else{c=o}}else{c=o}Object.assign(r,{previousSnapIndex:u,snapIndex:s,previousRealIndex:f,realIndex:c,previousIndex:a,activeIndex:o});if(r.initialized){ie(r)}r.emit("activeIndexChange");r.emit("snapIndexChange");if(r.initialized||r.params.runCallbacksOnInit){if(f!==c){r.emit("realIndexChange")}r.emit("slideChange")}}function ae(e,r){var i=this;var t=i.params;var n=e.closest(".".concat(t.slideClass,", swiper-slide"));if(!n&&i.isElement&&r&&r.length>1&&r.includes(e)){__spreadArray([],r.slice(r.indexOf(e)+1,r.length),true).forEach((function(e){if(!n&&e.matches&&e.matches(".".concat(t.slideClass,", swiper-slide"))){n=e}}))}var a=false;var f;if(n){for(var u=0;u<i.slides.length;u+=1){if(i.slides[u]===n){a=true;f=u;break}}}if(n&&a){i.clickedSlide=n;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=f}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(t.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}var fe={updateSize:Y,updateSlides:H,updateAutoHeight:U,updateSlidesOffset:X,updateSlidesProgress:$,updateProgress:J,updateSlidesClasses:Z,updateActiveIndex:ne,updateClickedSlide:ae};function ue(e){if(e===void 0){e=this.isHorizontal()?"x":"y"}var r=this;var i=r.params,t=r.rtlTranslate,n=r.translate,a=r.wrapperEl;if(i.virtualTranslate){return t?-n:n}if(i.cssMode){return n}var f=d(a,e);f+=r.cssOverflowAdjustment();if(t)f=-f;return f||0}function oe(e,r){var i=this;var t=i.rtlTranslate,n=i.params,a=i.wrapperEl,f=i.progress;var u=0;var o=0;var s=0;if(i.isHorizontal()){u=t?-e:e}else{o=e}if(n.roundLengths){u=Math.floor(u);o=Math.floor(o)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?u:o;if(n.cssMode){a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-u:-o}else if(!n.virtualTranslate){if(i.isHorizontal()){u-=i.cssOverflowAdjustment()}else{o-=i.cssOverflowAdjustment()}a.style.transform="translate3d(".concat(u,"px, ").concat(o,"px, ").concat(s,"px)")}var l;var v=i.maxTranslate()-i.minTranslate();if(v===0){l=0}else{l=(e-i.minTranslate())/v}if(l!==f){i.updateProgress(e)}i.emit("setTranslate",i.translate,r)}function se(){return-this.snapGrid[0]}function le(){return-this.snapGrid[this.snapGrid.length-1]}function ve(e,r,i,t,n){var a;if(e===void 0){e=0}if(r===void 0){r=this.params.speed}if(i===void 0){i=true}if(t===void 0){t=true}var f=this;var u=f.params,o=f.wrapperEl;if(f.animating&&u.preventInteractionOnTransition){return false}var s=f.minTranslate();var l=f.maxTranslate();var v;if(t&&e>s)v=s;else if(t&&e<l)v=l;else v=e;f.updateProgress(v);if(u.cssMode){var d=f.isHorizontal();if(r===0){o[d?"scrollLeft":"scrollTop"]=-v}else{if(!f.support.smoothScroll){m({swiper:f,targetPosition:-v,side:d?"left":"top"});return true}o.scrollTo((a={},a[d?"left":"top"]=-v,a.behavior="smooth",a))}return true}if(r===0){f.setTransition(0);f.setTranslate(v);if(i){f.emit("beforeTransitionStart",r,n);f.emit("transitionEnd")}}else{f.setTransition(r);f.setTranslate(v);if(i){f.emit("beforeTransitionStart",r,n);f.emit("transitionStart")}if(!f.animating){f.animating=true;if(!f.onTranslateToWrapperTransitionEnd){f.onTranslateToWrapperTransitionEnd=function e(r){if(!f||f.destroyed)return;if(r.target!==this)return;f.wrapperEl.removeEventListener("transitionend",f.onTranslateToWrapperTransitionEnd);f.onTranslateToWrapperTransitionEnd=null;delete f.onTranslateToWrapperTransitionEnd;f.animating=false;if(i){f.emit("transitionEnd")}}}f.wrapperEl.addEventListener("transitionend",f.onTranslateToWrapperTransitionEnd)}}return true}var de={getTranslate:ue,setTranslate:oe,minTranslate:se,maxTranslate:le,translateTo:ve};function ce(e,r){var i=this;if(!i.params.cssMode){i.wrapperEl.style.transitionDuration="".concat(e,"ms");i.wrapperEl.style.transitionDelay=e===0?"0ms":""}i.emit("setTransition",e,r)}function pe(e){var r=e.swiper,i=e.runCallbacks,t=e.direction,n=e.step;var a=r.activeIndex,f=r.previousIndex;var u=t;if(!u){if(a>f)u="next";else if(a<f)u="prev";else u="reset"}r.emit("transition".concat(n));if(i&&a!==f){if(u==="reset"){r.emit("slideResetTransition".concat(n));return}r.emit("slideChangeTransition".concat(n));if(u==="next"){r.emit("slideNextTransition".concat(n))}else{r.emit("slidePrevTransition".concat(n))}}}function he(e,r){if(e===void 0){e=true}var i=this;var t=i.params;if(t.cssMode)return;if(t.autoHeight){i.updateAutoHeight()}pe({swiper:i,runCallbacks:e,direction:r,step:"Start"})}function ge(e,r){if(e===void 0){e=true}var i=this;var t=i.params;i.animating=false;if(t.cssMode)return;i.setTransition(0);pe({swiper:i,runCallbacks:e,direction:r,step:"End"})}var me={setTransition:ce,transitionStart:he,transitionEnd:ge};function we(e,r,i,t,n){var a;if(e===void 0){e=0}if(i===void 0){i=true}if(typeof e==="string"){e=parseInt(e,10)}var f=this;var u=e;if(u<0)u=0;var o=f.params,s=f.snapGrid,l=f.slidesGrid,v=f.previousIndex,d=f.activeIndex,c=f.rtlTranslate,p=f.wrapperEl,h=f.enabled;if(!h&&!t&&!n||f.destroyed||f.animating&&o.preventInteractionOnTransition){return false}if(typeof r==="undefined"){r=f.params.speed}var g=Math.min(f.params.slidesPerGroupSkip,u);var w=g+Math.floor((u-g)/f.params.slidesPerGroup);if(w>=s.length)w=s.length-1;var y=-s[w];if(o.normalizeSlideIndex){for(var b=0;b<l.length;b+=1){var x=-Math.floor(y*100);var M=Math.floor(l[b]*100);var S=Math.floor(l[b+1]*100);if(typeof l[b+1]!=="undefined"){if(x>=M&&x<S-(S-M)/2){u=b}else if(x>=M&&x<S){u=b+1}}else if(x>=M){u=b}}}if(f.initialized&&u!==d){if(!f.allowSlideNext&&(c?y>f.translate&&y>f.minTranslate():y<f.translate&&y<f.minTranslate())){return false}if(!f.allowSlidePrev&&y>f.translate&&y>f.maxTranslate()){if((d||0)!==u){return false}}}if(u!==(v||0)&&i){f.emit("beforeSlideChangeStart")}f.updateProgress(y);var T;if(u>d)T="next";else if(u<d)T="prev";else T="reset";var A=f.virtual&&f.params.virtual.enabled;var _=A&&n;if(!_&&(c&&-y===f.translate||!c&&y===f.translate)){f.updateActiveIndex(u);if(o.autoHeight){f.updateAutoHeight()}f.updateSlidesClasses();if(o.effect!=="slide"){f.setTranslate(y)}if(T!=="reset"){f.transitionStart(i,T);f.transitionEnd(i,T)}return false}if(o.cssMode){var C=f.isHorizontal();var O=c?y:-y;if(r===0){if(A){f.wrapperEl.style.scrollSnapType="none";f._immediateVirtual=true}if(A&&!f._cssModeVirtualInitialSet&&f.params.initialSlide>0){f._cssModeVirtualInitialSet=true;requestAnimationFrame((function(){p[C?"scrollLeft":"scrollTop"]=O}))}else{p[C?"scrollLeft":"scrollTop"]=O}if(A){requestAnimationFrame((function(){f.wrapperEl.style.scrollSnapType="";f._immediateVirtual=false}))}}else{if(!f.support.smoothScroll){m({swiper:f,targetPosition:O,side:C?"left":"top"});return true}p.scrollTo((a={},a[C?"left":"top"]=O,a.behavior="smooth",a))}return true}var I=G();var k=I.isSafari;if(A&&!n&&k&&f.isElement){f.virtual.update(false,false,u)}f.setTransition(r);f.setTranslate(y);f.updateActiveIndex(u);f.updateSlidesClasses();f.emit("beforeTransitionStart",r,t);f.transitionStart(i,T);if(r===0){f.transitionEnd(i,T)}else if(!f.animating){f.animating=true;if(!f.onSlideToWrapperTransitionEnd){f.onSlideToWrapperTransitionEnd=function e(r){if(!f||f.destroyed)return;if(r.target!==this)return;f.wrapperEl.removeEventListener("transitionend",f.onSlideToWrapperTransitionEnd);f.onSlideToWrapperTransitionEnd=null;delete f.onSlideToWrapperTransitionEnd;f.transitionEnd(i,T)}}f.wrapperEl.addEventListener("transitionend",f.onSlideToWrapperTransitionEnd)}return true}function ye(e,r,i,t){if(e===void 0){e=0}if(i===void 0){i=true}if(typeof e==="string"){var n=parseInt(e,10);e=n}var a=this;if(a.destroyed)return;if(typeof r==="undefined"){r=a.params.speed}var f=a.grid&&a.params.grid&&a.params.grid.rows>1;var u=e;if(a.params.loop){if(a.virtual&&a.params.virtual.enabled){u=u+a.virtual.slidesBefore}else{var o=void 0;if(f){var s=u*a.params.grid.rows;o=a.slides.find((function(e){return e.getAttribute("data-swiper-slide-index")*1===s})).column}else{o=a.getSlideIndexByData(u)}var l=f?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length;var v=a.params.centeredSlides;var d=a.params.slidesPerView;if(d==="auto"){d=a.slidesPerViewDynamic()}else{d=Math.ceil(parseFloat(a.params.slidesPerView,10));if(v&&d%2===0){d=d+1}}var c=l-o<d;if(v){c=c||o<Math.ceil(d/2)}if(t&&v&&a.params.slidesPerView!=="auto"&&!f){c=false}if(c){var p=v?o<a.activeIndex?"prev":"next":o-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:p,slideTo:true,activeSlideIndex:p==="next"?o+1:o-l+1,slideRealIndex:p==="next"?a.realIndex:undefined})}if(f){var h=u*a.params.grid.rows;u=a.slides.find((function(e){return e.getAttribute("data-swiper-slide-index")*1===h})).column}else{u=a.getSlideIndexByData(u)}}}requestAnimationFrame((function(){a.slideTo(u,r,i,t)}));return a}function be(e,r,i){if(r===void 0){r=true}var t=this;var n=t.enabled,a=t.params,f=t.animating;if(!n||t.destroyed)return t;if(typeof e==="undefined"){e=t.params.speed}var u=a.slidesPerGroup;if(a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto){u=Math.max(t.slidesPerViewDynamic("current",true),1)}var o=t.activeIndex<a.slidesPerGroupSkip?1:u;var s=t.virtual&&a.virtual.enabled;if(a.loop){if(f&&!s&&a.loopPreventsSliding)return false;t.loopFix({direction:"next"});t._clientLeft=t.wrapperEl.clientLeft;if(t.activeIndex===t.slides.length-1&&a.cssMode){requestAnimationFrame((function(){t.slideTo(t.activeIndex+o,e,r,i)}));return true}}if(a.rewind&&t.isEnd){return t.slideTo(0,e,r,i)}return t.slideTo(t.activeIndex+o,e,r,i)}function xe(e,r,i){if(r===void 0){r=true}var t=this;var n=t.params,a=t.snapGrid,f=t.slidesGrid,u=t.rtlTranslate,o=t.enabled,s=t.animating;if(!o||t.destroyed)return t;if(typeof e==="undefined"){e=t.params.speed}var l=t.virtual&&n.virtual.enabled;if(n.loop){if(s&&!l&&n.loopPreventsSliding)return false;t.loopFix({direction:"prev"});t._clientLeft=t.wrapperEl.clientLeft}var v=u?t.translate:-t.translate;function d(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}var c=d(v);var p=a.map((function(e){return d(e)}));var h=n.freeMode&&n.freeMode.enabled;var g=a[p.indexOf(c)-1];if(typeof g==="undefined"&&(n.cssMode||h)){var m;a.forEach((function(e,r){if(c>=e){m=r}}));if(typeof m!=="undefined"){g=h?a[m]:a[m>0?m-1:m]}}var w=0;if(typeof g!=="undefined"){w=f.indexOf(g);if(w<0)w=t.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){w=w-t.slidesPerViewDynamic("previous",true)+1;w=Math.max(w,0)}}if(n.rewind&&t.isBeginning){var y=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1;return t.slideTo(y,e,r,i)}else if(n.loop&&t.activeIndex===0&&n.cssMode){requestAnimationFrame((function(){t.slideTo(w,e,r,i)}));return true}return t.slideTo(w,e,r,i)}function Me(e,r,i){if(r===void 0){r=true}var t=this;if(t.destroyed)return;if(typeof e==="undefined"){e=t.params.speed}return t.slideTo(t.activeIndex,e,r,i)}function Se(e,r,i,t){if(r===void 0){r=true}if(t===void 0){t=.5}var n=this;if(n.destroyed)return;if(typeof e==="undefined"){e=n.params.speed}var a=n.activeIndex;var f=Math.min(n.params.slidesPerGroupSkip,a);var u=f+Math.floor((a-f)/n.params.slidesPerGroup);var o=n.rtlTranslate?n.translate:-n.translate;if(o>=n.snapGrid[u]){var s=n.snapGrid[u];var l=n.snapGrid[u+1];if(o-s>(l-s)*t){a+=n.params.slidesPerGroup}}else{var v=n.snapGrid[u-1];var s=n.snapGrid[u];if(o-v<=(s-v)*t){a-=n.params.slidesPerGroup}}a=Math.max(a,0);a=Math.min(a,n.slidesGrid.length-1);return n.slideTo(a,e,r,i)}function Te(){var e=this;if(e.destroyed)return;var r=e.params,i=e.slidesEl;var t=r.slidesPerView==="auto"?e.slidesPerViewDynamic():r.slidesPerView;var n=e.clickedIndex;var a;var f=e.isElement?"swiper-slide":".".concat(r.slideClass);if(r.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(r.centeredSlides){if(n<e.loopedSlides-t/2||n>e.slides.length-e.loopedSlides+t/2){e.loopFix();n=e.getSlideIndex(y(i,"".concat(f,'[data-swiper-slide-index="').concat(a,'"]'))[0]);s((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else if(n>e.slides.length-t){e.loopFix();n=e.getSlideIndex(y(i,"".concat(f,'[data-swiper-slide-index="').concat(a,'"]'))[0]);s((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else{e.slideTo(n)}}var Ae={slideTo:we,slideToLoop:ye,slideNext:be,slidePrev:xe,slideReset:Me,slideToClosest:Se,slideToClickedSlide:Te};function _e(e,r){var i=this;var t=i.params,n=i.slidesEl;if(!t.loop||i.virtual&&i.params.virtual.enabled)return;var a=function(){var e=y(n,".".concat(t.slideClass,", swiper-slide"));e.forEach((function(e,r){e.setAttribute("data-swiper-slide-index",r)}))};var f=i.grid&&t.grid&&t.grid.rows>1;var u=t.slidesPerGroup*(f?t.grid.rows:1);var o=i.slides.length%u!==0;var s=f&&i.slides.length%t.grid.rows!==0;var l=function(e){for(var r=0;r<e;r+=1){var n=i.isElement?S("swiper-slide",[t.slideBlankClass]):S("div",[t.slideClass,t.slideBlankClass]);i.slidesEl.append(n)}};if(o){if(t.loopAddBlankSlides){var v=u-i.slides.length%u;l(v);i.recalcSlides();i.updateSlides()}else{M("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")}a()}else if(s){if(t.loopAddBlankSlides){var v=t.grid.rows-i.slides.length%t.grid.rows;l(v);i.recalcSlides();i.updateSlides()}else{M("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")}a()}else{a()}i.loopFix({slideRealIndex:e,direction:t.centeredSlides?undefined:"next",initial:r})}function Ce(e){var r=e===void 0?{}:e,i=r.slideRealIndex,t=r.slideTo,n=t===void 0?true:t,a=r.direction,f=r.setTranslate,u=r.activeSlideIndex,o=r.initial,s=r.byController,l=r.byMousewheel;var v=this;if(!v.params.loop)return;v.emit("beforeLoopFix");var d=v.slides,c=v.allowSlidePrev,p=v.allowSlideNext,h=v.slidesEl,g=v.params;var m=g.centeredSlides,w=g.initialSlide;v.allowSlidePrev=true;v.allowSlideNext=true;if(v.virtual&&g.virtual.enabled){if(n){if(!g.centeredSlides&&v.snapIndex===0){v.slideTo(v.virtual.slides.length,0,false,true)}else if(g.centeredSlides&&v.snapIndex<g.slidesPerView){v.slideTo(v.virtual.slides.length+v.snapIndex,0,false,true)}else if(v.snapIndex===v.snapGrid.length-1){v.slideTo(v.virtual.slidesBefore,0,false,true)}}v.allowSlidePrev=c;v.allowSlideNext=p;v.emit("loopFix");return}var y=g.slidesPerView;if(y==="auto"){y=v.slidesPerViewDynamic()}else{y=Math.ceil(parseFloat(g.slidesPerView,10));if(m&&y%2===0){y=y+1}}var b=g.slidesPerGroupAuto?y:g.slidesPerGroup;var x=b;if(x%b!==0){x+=b-x%b}x+=g.loopAdditionalSlides;v.loopedSlides=x;var S=v.grid&&g.grid&&g.grid.rows>1;if(d.length<y+x||v.params.effect==="cards"&&d.length<y+x*2){M("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters")}else if(S&&g.grid.fill==="row"){M("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`")}var T=[];var A=[];var _=S?Math.ceil(d.length/g.grid.rows):d.length;var C=o&&_-w<y&&!m;var O=C?w:v.activeIndex;if(typeof u==="undefined"){u=v.getSlideIndex(d.find((function(e){return e.classList.contains(g.slideActiveClass)})))}else{O=u}var I=a==="next"||!a;var k=a==="prev"||!a;var E=0;var j=0;var F=S?d[u].column:u;var P=F+(m&&typeof f==="undefined"?-y/2+.5:0);if(P<x){E=Math.max(x-P,b);for(var L=0;L<x-P;L+=1){var z=L-Math.floor(L/_)*_;if(S){var N=_-z-1;for(var R=d.length-1;R>=0;R-=1){if(d[R].column===N)T.push(R)}}else{T.push(_-z-1)}}}else if(P+y>_-x){j=Math.max(P-(_-x*2),b);if(C){j=Math.max(j,y-_+w+1)}var B=function(e){var r=e-Math.floor(e/_)*_;if(S){d.forEach((function(e,i){if(e.column===r)A.push(i)}))}else{A.push(r)}};for(var L=0;L<j;L+=1){B(L)}}v.__preventObserver__=true;requestAnimationFrame((function(){v.__preventObserver__=false}));if(v.params.effect==="cards"&&d.length<y+x*2){if(A.includes(u)){A.splice(A.indexOf(u),1)}if(T.includes(u)){T.splice(T.indexOf(u),1)}}if(k){T.forEach((function(e){d[e].swiperLoopMoveDOM=true;h.prepend(d[e]);d[e].swiperLoopMoveDOM=false}))}if(I){A.forEach((function(e){d[e].swiperLoopMoveDOM=true;h.append(d[e]);d[e].swiperLoopMoveDOM=false}))}v.recalcSlides();if(g.slidesPerView==="auto"){v.updateSlides()}else if(S&&(T.length>0&&k||A.length>0&&I)){v.slides.forEach((function(e,r){v.grid.updateSlide(r,e,v.slides)}))}if(g.watchSlidesProgress){v.updateSlidesOffset()}if(n){if(T.length>0&&k){if(typeof i==="undefined"){var D=v.slidesGrid[O];var G=v.slidesGrid[O+E];var q=G-D;if(l){v.setTranslate(v.translate-q)}else{v.slideTo(O+Math.ceil(E),0,false,true);if(f){v.touchEventsData.startTranslate=v.touchEventsData.startTranslate-q;v.touchEventsData.currentTranslate=v.touchEventsData.currentTranslate-q}}}else{if(f){var W=S?T.length/g.grid.rows:T.length;v.slideTo(v.activeIndex+W,0,false,true);v.touchEventsData.currentTranslate=v.translate}}}else if(A.length>0&&I){if(typeof i==="undefined"){var D=v.slidesGrid[O];var G=v.slidesGrid[O-j];var q=G-D;if(l){v.setTranslate(v.translate-q)}else{v.slideTo(O-j,0,false,true);if(f){v.touchEventsData.startTranslate=v.touchEventsData.startTranslate-q;v.touchEventsData.currentTranslate=v.touchEventsData.currentTranslate-q}}}else{var W=S?A.length/g.grid.rows:A.length;v.slideTo(v.activeIndex-W,0,false,true)}}}v.allowSlidePrev=c;v.allowSlideNext=p;if(v.controller&&v.controller.control&&!s){var V={slideRealIndex:i,direction:a,setTranslate:f,activeSlideIndex:u,byController:true};if(Array.isArray(v.controller.control)){v.controller.control.forEach((function(e){if(!e.destroyed&&e.params.loop)e.loopFix(__assign(__assign({},V),{slideTo:e.params.slidesPerView===g.slidesPerView?n:false}))}))}else if(v.controller.control instanceof v.constructor&&v.controller.control.params.loop){v.controller.control.loopFix(__assign(__assign({},V),{slideTo:v.controller.control.params.slidesPerView===g.slidesPerView?n:false}))}}v.emit("loopFix")}function Oe(){var e=this;var r=e.params,i=e.slidesEl;if(!r.loop||!i||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();var t=[];e.slides.forEach((function(e){var r=typeof e.swiperSlideIndex==="undefined"?e.getAttribute("data-swiper-slide-index")*1:e.swiperSlideIndex;t[r]=e}));e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")}));t.forEach((function(e){i.append(e)}));e.recalcSlides();e.slideTo(e.realIndex,0)}var Ie={loopCreate:_e,loopFix:Ce,loopDestroy:Oe};function ke(e){var r=this;if(!r.params.simulateTouch||r.params.watchOverflow&&r.isLocked||r.params.cssMode)return;var i=r.params.touchEventsTarget==="container"?r.el:r.wrapperEl;if(r.isElement){r.__preventObserver__=true}i.style.cursor="move";i.style.cursor=e?"grabbing":"grab";if(r.isElement){requestAnimationFrame((function(){r.__preventObserver__=false}))}}function Ee(){var e=this;if(e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}if(e.isElement){e.__preventObserver__=true}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(e.isElement){requestAnimationFrame((function(){e.__preventObserver__=false}))}}var je={setGrabCursor:ke,unsetGrabCursor:Ee};function Fe(e,r){if(r===void 0){r=this}function i(r){if(!r||r===n()||r===f())return null;if(r.assignedSlot)r=r.assignedSlot;var t=r.closest(e);if(!t&&!r.getRootNode){return null}return t||i(r.getRootNode().host)}return i(r)}function Pe(e,r,i){var t=f();var n=e.params;var a=n.edgeSwipeDetection;var u=n.edgeSwipeThreshold;if(a&&(i<=u||i>=t.innerWidth-u)){if(a==="prevent"){r.preventDefault();return true}return false}return true}function Le(e){var r=this;var i=n();var t=e;if(t.originalEvent)t=t.originalEvent;var a=r.touchEventsData;if(t.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==t.pointerId){return}a.pointerId=t.pointerId}else if(t.type==="touchstart"&&t.targetTouches.length===1){a.touchId=t.targetTouches[0].identifier}if(t.type==="touchstart"){Pe(r,t,t.targetTouches[0].pageX);return}var f=r.params,u=r.touches,o=r.enabled;if(!o)return;if(!f.simulateTouch&&t.pointerType==="mouse")return;if(r.animating&&f.preventInteractionOnTransition){return}if(!r.animating&&f.cssMode&&f.loop){r.loopFix()}var s=t.target;if(f.touchEventsTarget==="wrapper"){if(!x(s,r.wrapperEl))return}if("which"in t&&t.which===3)return;if("button"in t&&t.button>0)return;if(a.isTouched&&a.isMoved)return;var v=!!f.noSwipingClass&&f.noSwipingClass!=="";var d=t.composedPath?t.composedPath():t.path;if(v&&t.target&&t.target.shadowRoot&&d){s=d[0]}var c=f.noSwipingSelector?f.noSwipingSelector:".".concat(f.noSwipingClass);var p=!!(t.target&&t.target.shadowRoot);if(f.noSwiping&&(p?Fe(c,s):s.closest(c))){r.allowClick=true;return}if(f.swipeHandler){if(!s.closest(f.swipeHandler))return}u.currentX=t.pageX;u.currentY=t.pageY;var h=u.currentX;var g=u.currentY;if(!Pe(r,t,h)){return}Object.assign(a,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});u.startX=h;u.startY=g;a.touchStartTime=l();r.allowClick=true;r.updateSize();r.swipeDirection=undefined;if(f.threshold>0)a.allowThresholdMove=false;var m=true;if(s.matches(a.focusableElements)){m=false;if(s.nodeName==="SELECT"){a.isTouched=false}}if(i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==s&&(t.pointerType==="mouse"||t.pointerType!=="mouse"&&!s.matches(a.focusableElements))){i.activeElement.blur()}var w=m&&r.allowTouchMove&&f.touchStartPreventDefault;if((f.touchStartForcePreventDefault||w)&&!s.isContentEditable){t.preventDefault()}if(f.freeMode&&f.freeMode.enabled&&r.freeMode&&r.animating&&!f.cssMode){r.freeMode.onTouchStart()}r.emit("touchStart",t)}function ze(e){var r=n();var i=this;var t=i.touchEventsData;var a=i.params,f=i.touches,u=i.rtlTranslate,o=i.enabled;if(!o)return;if(!a.simulateTouch&&e.pointerType==="mouse")return;var s=e;if(s.originalEvent)s=s.originalEvent;if(s.type==="pointermove"){if(t.touchId!==null)return;var v=s.pointerId;if(v!==t.pointerId)return}var d;if(s.type==="touchmove"){d=__spreadArray([],s.changedTouches,true).find((function(e){return e.identifier===t.touchId}));if(!d||d.identifier!==t.touchId)return}else{d=s}if(!t.isTouched){if(t.startMoving&&t.isScrolling){i.emit("touchMoveOpposite",s)}return}var c=d.pageX;var p=d.pageY;if(s.preventedByNestedSwiper){f.startX=c;f.startY=p;return}if(!i.allowTouchMove){if(!s.target.matches(t.focusableElements)){i.allowClick=false}if(t.isTouched){Object.assign(f,{startX:c,startY:p,currentX:c,currentY:p});t.touchStartTime=l()}return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(p<f.startY&&i.translate<=i.maxTranslate()||p>f.startY&&i.translate>=i.minTranslate()){t.isTouched=false;t.isMoved=false;return}}else if(u&&(c>f.startX&&-i.translate<=i.maxTranslate()||c<f.startX&&-i.translate>=i.minTranslate())){return}else if(!u&&(c<f.startX&&i.translate<=i.maxTranslate()||c>f.startX&&i.translate>=i.minTranslate())){return}}if(r.activeElement&&r.activeElement.matches(t.focusableElements)&&r.activeElement!==s.target&&s.pointerType!=="mouse"){r.activeElement.blur()}if(r.activeElement){if(s.target===r.activeElement&&s.target.matches(t.focusableElements)){t.isMoved=true;i.allowClick=false;return}}if(t.allowTouchCallbacks){i.emit("touchMove",s)}f.previousX=f.currentX;f.previousY=f.currentY;f.currentX=c;f.currentY=p;var h=f.currentX-f.startX;var g=f.currentY-f.startY;if(i.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(g,2))<i.params.threshold)return;if(typeof t.isScrolling==="undefined"){var m=void 0;if(i.isHorizontal()&&f.currentY===f.startY||i.isVertical()&&f.currentX===f.startX){t.isScrolling=false}else{if(h*h+g*g>=25){m=Math.atan2(Math.abs(g),Math.abs(h))*180/Math.PI;t.isScrolling=i.isHorizontal()?m>a.touchAngle:90-m>a.touchAngle}}}if(t.isScrolling){i.emit("touchMoveOpposite",s)}if(typeof t.startMoving==="undefined"){if(f.currentX!==f.startX||f.currentY!==f.startY){t.startMoving=true}}if(t.isScrolling||s.type==="touchmove"&&t.preventTouchMoveFromPointerMove){t.isTouched=false;return}if(!t.startMoving){return}i.allowClick=false;if(!a.cssMode&&s.cancelable){s.preventDefault()}if(a.touchMoveStopPropagation&&!a.nested){s.stopPropagation()}var w=i.isHorizontal()?h:g;var y=i.isHorizontal()?f.currentX-f.previousX:f.currentY-f.previousY;if(a.oneWayMovement){w=Math.abs(w)*(u?1:-1);y=Math.abs(y)*(u?1:-1)}f.diff=w;w*=a.touchRatio;if(u){w=-w;y=-y}var b=i.touchesDirection;i.swipeDirection=w>0?"prev":"next";i.touchesDirection=y>0?"prev":"next";var x=i.params.loop&&!a.cssMode;var M=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!t.isMoved){if(x&&M){i.loopFix({direction:i.swipeDirection})}t.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){var S=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true,detail:{bySwiperTouchMove:true}});i.wrapperEl.dispatchEvent(S)}t.allowMomentumBounce=false;if(a.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",s)}(new Date).getTime();if(a._loopSwapReset!==false&&t.isMoved&&t.allowThresholdMove&&b!==i.touchesDirection&&x&&M&&Math.abs(w)>=1){Object.assign(f,{startX:c,startY:p,currentX:c,currentY:p,startTranslate:t.currentTranslate});t.loopSwapReset=true;t.startTranslate=t.currentTranslate;return}i.emit("sliderMove",s);t.isMoved=true;t.currentTranslate=w+t.startTranslate;var T=true;var A=a.resistanceRatio;if(a.touchReleaseOnEdges){A=0}if(w>0){if(x&&M&&true&&t.allowThresholdMove&&t.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(a.slidesPerView!=="auto"&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())){i.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(t.currentTranslate>i.minTranslate()){T=false;if(a.resistance){t.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+t.startTranslate+w,A)}}}else if(w<0){if(x&&M&&true&&t.allowThresholdMove&&t.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(a.slidesPerView!=="auto"&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())){i.loopFix({direction:"next",setTranslate:true,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))})}if(t.currentTranslate<i.maxTranslate()){T=false;if(a.resistance){t.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-t.startTranslate-w,A)}}}if(T){s.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&t.currentTranslate<t.startTranslate){t.currentTranslate=t.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&t.currentTranslate>t.startTranslate){t.currentTranslate=t.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){t.currentTranslate=t.startTranslate}if(a.threshold>0){if(Math.abs(w)>a.threshold||t.allowThresholdMove){if(!t.allowThresholdMove){t.allowThresholdMove=true;f.startX=f.currentX;f.startY=f.currentY;t.currentTranslate=t.startTranslate;f.diff=i.isHorizontal()?f.currentX-f.startX:f.currentY-f.startY;return}}else{t.currentTranslate=t.startTranslate;return}}if(!a.followFinger||a.cssMode)return;if(a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(a.freeMode&&a.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(t.currentTranslate);i.setTranslate(t.currentTranslate)}function Ne(e){var r=this;var i=r.touchEventsData;var t=e;if(t.originalEvent)t=t.originalEvent;var n;var a=t.type==="touchend"||t.type==="touchcancel";if(!a){if(i.touchId!==null)return;if(t.pointerId!==i.pointerId)return;n=t}else{n=__spreadArray([],t.changedTouches,true).find((function(e){return e.identifier===i.touchId}));if(!n||n.identifier!==i.touchId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)){var f=["pointercancel","contextmenu"].includes(t.type)&&(r.browser.isSafari||r.browser.isWebView);if(!f){return}}i.pointerId=null;i.touchId=null;var u=r.params,o=r.touches,v=r.rtlTranslate,d=r.slidesGrid,c=r.enabled;if(!c)return;if(!u.simulateTouch&&t.pointerType==="mouse")return;if(i.allowTouchCallbacks){r.emit("touchEnd",t)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&u.grabCursor){r.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(u.grabCursor&&i.isMoved&&i.isTouched&&(r.allowSlideNext===true||r.allowSlidePrev===true)){r.setGrabCursor(false)}var p=l();var h=p-i.touchStartTime;if(r.allowClick){var g=t.path||t.composedPath&&t.composedPath();r.updateClickedSlide(g&&g[0]||t.target,g);r.emit("tap click",t);if(h<300&&p-i.lastClickTime<300){r.emit("doubleTap doubleClick",t)}}i.lastClickTime=l();s((function(){if(!r.destroyed)r.allowClick=true}));if(!i.isTouched||!i.isMoved||!r.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;var m;if(u.followFinger){m=v?r.translate:-r.translate}else{m=-i.currentTranslate}if(u.cssMode){return}if(u.freeMode&&u.freeMode.enabled){r.freeMode.onTouchEnd({currentPos:m});return}var w=m>=-r.maxTranslate()&&!r.params.loop;var y=0;var b=r.slidesSizesGrid[0];for(var x=0;x<d.length;x+=x<u.slidesPerGroupSkip?1:u.slidesPerGroup){var M=x<u.slidesPerGroupSkip-1?1:u.slidesPerGroup;if(typeof d[x+M]!=="undefined"){if(w||m>=d[x]&&m<d[x+M]){y=x;b=d[x+M]-d[x]}}else if(w||m>=d[x]){y=x;b=d[d.length-1]-d[d.length-2]}}var S=null;var T=null;if(u.rewind){if(r.isBeginning){T=u.virtual&&u.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1}else if(r.isEnd){S=0}}var A=(m-d[y])/b;var _=y<u.slidesPerGroupSkip-1?1:u.slidesPerGroup;if(h>u.longSwipesMs){if(!u.longSwipes){r.slideTo(r.activeIndex);return}if(r.swipeDirection==="next"){if(A>=u.longSwipesRatio)r.slideTo(u.rewind&&r.isEnd?S:y+_);else r.slideTo(y)}if(r.swipeDirection==="prev"){if(A>1-u.longSwipesRatio){r.slideTo(y+_)}else if(T!==null&&A<0&&Math.abs(A)>u.longSwipesRatio){r.slideTo(T)}else{r.slideTo(y)}}}else{if(!u.shortSwipes){r.slideTo(r.activeIndex);return}var C=r.navigation&&(t.target===r.navigation.nextEl||t.target===r.navigation.prevEl);if(!C){if(r.swipeDirection==="next"){r.slideTo(S!==null?S:y+_)}if(r.swipeDirection==="prev"){r.slideTo(T!==null?T:y)}}else if(t.target===r.navigation.nextEl){r.slideTo(y+_)}else{r.slideTo(y)}}}function Re(){var e=this;var r=e.params,i=e.el;if(i&&i.offsetWidth===0)return;if(r.breakpoints){e.setBreakpoint()}var t=e.allowSlideNext,n=e.allowSlidePrev,a=e.snapGrid;var f=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();var u=f&&r.loop;if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u){e.slideTo(e.slides.length-1,0,false,true)}else{if(e.params.loop&&!f){e.slideToLoop(e.realIndex,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){clearTimeout(e.autoplay.resizeTimeout);e.autoplay.resizeTimeout=setTimeout((function(){if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.resume()}}),500)}e.allowSlidePrev=n;e.allowSlideNext=t;if(e.params.watchOverflow&&a!==e.snapGrid){e.checkOverflow()}}function Be(e){var r=this;if(!r.enabled)return;if(!r.allowClick){if(r.params.preventClicks)e.preventDefault();if(r.params.preventClicksPropagation&&r.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function De(){var e=this;var r=e.wrapperEl,i=e.rtlTranslate,t=e.enabled;if(!t)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-r.scrollLeft}else{e.translate=-r.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();var n;var a=e.maxTranslate()-e.minTranslate();if(a===0){n=0}else{n=(e.translate-e.minTranslate())/a}if(n!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}function Ge(e){var r=this;ee(r,e.target);if(r.params.cssMode||r.params.slidesPerView!=="auto"&&!r.params.autoHeight){return}r.update()}function qe(){var e=this;if(e.documentTouchHandlerProceeded)return;e.documentTouchHandlerProceeded=true;if(e.params.touchReleaseOnEdges){e.el.style.touchAction="auto"}}var We=function(e,r){var i=n();var t=e.params,a=e.el,f=e.wrapperEl,u=e.device;var o=!!t.nested;var s=r==="on"?"addEventListener":"removeEventListener";var l=r;if(!a||typeof a==="string")return;i[s]("touchstart",e.onDocumentTouchStart,{passive:false,capture:o});a[s]("touchstart",e.onTouchStart,{passive:false});a[s]("pointerdown",e.onTouchStart,{passive:false});i[s]("touchmove",e.onTouchMove,{passive:false,capture:o});i[s]("pointermove",e.onTouchMove,{passive:false,capture:o});i[s]("touchend",e.onTouchEnd,{passive:true});i[s]("pointerup",e.onTouchEnd,{passive:true});i[s]("pointercancel",e.onTouchEnd,{passive:true});i[s]("touchcancel",e.onTouchEnd,{passive:true});i[s]("pointerout",e.onTouchEnd,{passive:true});i[s]("pointerleave",e.onTouchEnd,{passive:true});i[s]("contextmenu",e.onTouchEnd,{passive:true});if(t.preventClicks||t.preventClicksPropagation){a[s]("click",e.onClick,true)}if(t.cssMode){f[s]("scroll",e.onScroll)}if(t.updateOnWindowResize){e[l](u.ios||u.android?"resize orientationchange observerUpdate":"resize observerUpdate",Re,true)}else{e[l]("observerUpdate",Re,true)}a[s]("load",e.onLoad,{capture:true})};function Ve(){var e=this;var r=e.params;e.onTouchStart=Le.bind(e);e.onTouchMove=ze.bind(e);e.onTouchEnd=Ne.bind(e);e.onDocumentTouchStart=qe.bind(e);if(r.cssMode){e.onScroll=De.bind(e)}e.onClick=Be.bind(e);e.onLoad=Ge.bind(e);We(e,"on")}function Ye(){var e=this;We(e,"off")}var He={attachEvents:Ve,detachEvents:Ye};var Ue=function(e,r){return e.grid&&r.grid&&r.grid.rows>1};function Xe(){var e=this;var r=e.realIndex,i=e.initialized,t=e.params,a=e.el;var f=t.breakpoints;if(!f||f&&Object.keys(f).length===0)return;var u=n();var o=t.breakpointsBase==="window"||!t.breakpointsBase?t.breakpointsBase:"container";var s=["window","container"].includes(t.breakpointsBase)||!t.breakpointsBase?e.el:u.querySelector(t.breakpointsBase);var l=e.getBreakpoint(f,o,s);if(!l||e.currentBreakpoint===l)return;var v=l in f?f[l]:undefined;var d=v||e.originalParams;var c=Ue(e,t);var p=Ue(e,d);var g=e.params.grabCursor;var m=d.grabCursor;var w=t.enabled;if(c&&!p){a.classList.remove("".concat(t.containerModifierClass,"grid"),"".concat(t.containerModifierClass,"grid-column"));e.emitContainerClasses()}else if(!c&&p){a.classList.add("".concat(t.containerModifierClass,"grid"));if(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&t.grid.fill==="column"){a.classList.add("".concat(t.containerModifierClass,"grid-column"))}e.emitContainerClasses()}if(g&&!m){e.unsetGrabCursor()}else if(!g&&m){e.setGrabCursor()}["navigation","pagination","scrollbar"].forEach((function(r){if(typeof d[r]==="undefined")return;var i=t[r]&&t[r].enabled;var n=d[r]&&d[r].enabled;if(i&&!n){e[r].disable()}if(!i&&n){e[r].enable()}}));var y=d.direction&&d.direction!==t.direction;var b=t.loop&&(d.slidesPerView!==t.slidesPerView||y);var x=t.loop;if(y&&i){e.changeDirection()}h(e.params,d);var M=e.params.enabled;var S=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(w&&!M){e.disable()}else if(!w&&M){e.enable()}e.currentBreakpoint=l;e.emit("_beforeBreakpoint",d);if(i){if(b){e.loopDestroy();e.loopCreate(r);e.updateSlides()}else if(!x&&S){e.loopCreate(r);e.updateSlides()}else if(x&&!S){e.loopDestroy()}}e.emit("breakpoint",d)}function Ke(e,r,i){if(r===void 0){r="window"}if(!e||r==="container"&&!i)return undefined;var t=false;var n=f();var a=r==="window"?n.innerHeight:i.clientHeight;var u=Object.keys(e).map((function(e){if(typeof e==="string"&&e.indexOf("@")===0){var r=parseFloat(e.substr(1));var i=a*r;return{value:i,point:e}}return{value:e,point:e}}));u.sort((function(e,r){return parseInt(e.value,10)-parseInt(r.value,10)}));for(var o=0;o<u.length;o+=1){var s=u[o],l=s.point,v=s.value;if(r==="window"){if(n.matchMedia("(min-width: ".concat(v,"px)")).matches){t=l}}else if(v<=i.clientWidth){t=l}}return t||"max"}var $e={setBreakpoint:Xe,getBreakpoint:Ke};function Je(e,r){var i=[];e.forEach((function(e){if(typeof e==="object"){Object.keys(e).forEach((function(t){if(e[t]){i.push(r+t)}}))}else if(typeof e==="string"){i.push(r+e)}}));return i}function Qe(){var e;var r=this;var i=r.classNames,t=r.params,n=r.rtl,a=r.el,f=r.device;var u=Je(["initialized",t.direction,{"free-mode":r.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:f.android},{ios:f.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);i.push.apply(i,u);(e=a.classList).add.apply(e,i);r.emitContainerClasses()}function Ze(){var e;var r=this;var i=r.el,t=r.classNames;if(!i||typeof i==="string")return;(e=i.classList).remove.apply(e,t);r.emitContainerClasses()}var er={addClasses:Qe,removeClasses:Ze};function rr(){var e=this;var r=e.isLocked,i=e.params;var t=i.slidesOffsetBefore;if(t){var n=e.slides.length-1;var a=e.slidesGrid[n]+e.slidesSizesGrid[n]+t*2;e.isLocked=e.size>a}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(r&&r!==e.isLocked){e.isEnd=false}if(r!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}var ir={checkOverflow:rr};var tr={init:true,direction:"horizontal",oneWayMovement:false,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,eventsPrefix:"swiper",enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:5,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loop:false,loopAddBlankSlides:true,loopAdditionalSlides:0,loopPreventsSliding:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:true,_emitClasses:false};function nr(e,r){return function i(t){if(t===void 0){t={}}var n=Object.keys(t)[0];var a=t[n];if(typeof a!=="object"||a===null){h(r,t);return}if(e[n]===true){e[n]={enabled:true}}if(n==="navigation"&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl){e[n].auto=true}if(["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el){e[n].auto=true}if(!(n in e&&"enabled"in a)){h(r,t);return}if(typeof e[n]==="object"&&!("enabled"in e[n])){e[n].enabled=true}if(!e[n])e[n]={enabled:false};h(r,t)}}var ar={eventsEmitter:V,update:fe,translate:de,transition:me,slide:Ae,loop:Ie,grabCursor:je,events:He,breakpoints:$e,checkOverflow:ir,classes:er};var fr={};var ur=function(){function e(){var r;var i;var t;for(var a=arguments.length,f=new Array(a),u=0;u<a;u++){f[u]=arguments[u]}if(f.length===1&&f[0].constructor&&Object.prototype.toString.call(f[0]).slice(8,-1)==="Object"){t=f[0]}else{i=f[0],t=f[1]}if(!t)t={};t=h({},t);if(i&&!t.el)t.el=i;var o=n();if(t.el&&typeof t.el==="string"&&o.querySelectorAll(t.el).length>1){var s=[];o.querySelectorAll(t.el).forEach((function(r){var i=h({},t,{el:r});s.push(new e(i))}));return s}var l=this;l.__swiper__=true;l.support=L();l.device=R({userAgent:t.userAgent});l.browser=G();l.eventsListeners={};l.eventsAnyListeners=[];l.modules=__spreadArray([],l.__modules__,true);if(t.modules&&Array.isArray(t.modules)){(r=l.modules).push.apply(r,t.modules)}var v={};l.modules.forEach((function(e){e({params:t,swiper:l,extendParams:nr(t,v),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var d=h({},tr,v);l.params=h({},d,fr,t);l.originalParams=h({},l.params);l.passedParams=h({},t);if(l.params&&l.params.on){Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])}))}if(l.params&&l.params.onAny){l.onAny(l.params.onAny)}Object.assign(l,{enabled:l.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,pointerId:null,touchId:null},allowClick:true,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});l.emit("_swiper");if(l.params.init){l.init()}return l}e.prototype.getDirectionLabel=function(e){if(this.isHorizontal()){return e}return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]};e.prototype.getSlideIndex=function(e){var r=this,i=r.slidesEl,t=r.params;var n=y(i,".".concat(t.slideClass,", swiper-slide"));var a=O(n[0]);return O(e)-a};e.prototype.getSlideIndexByData=function(e){return this.getSlideIndex(this.slides.find((function(r){return r.getAttribute("data-swiper-slide-index")*1===e})))};e.prototype.recalcSlides=function(){var e=this;var r=e.slidesEl,i=e.params;e.slides=y(r,".".concat(i.slideClass,", swiper-slide"))};e.prototype.enable=function(){var e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")};e.prototype.disable=function(){var e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")};e.prototype.setProgress=function(e,r){var i=this;e=Math.min(Math.max(e,0),1);var t=i.minTranslate();var n=i.maxTranslate();var a=(n-t)*e+t;i.translateTo(a,typeof r==="undefined"?0:r);i.updateActiveIndex();i.updateSlidesClasses()};e.prototype.emitContainerClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var r=e.el.className.split(" ").filter((function(r){return r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0}));e.emit("_containerClasses",r.join(" "))};e.prototype.getSlideClasses=function(e){var r=this;if(r.destroyed)return"";return e.className.split(" ").filter((function(e){return e.indexOf("swiper-slide")===0||e.indexOf(r.params.slideClass)===0})).join(" ")};e.prototype.emitSlidesClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var r=[];e.slides.forEach((function(i){var t=e.getSlideClasses(i);r.push({slideEl:i,classNames:t});e.emit("_slideClass",i,t)}));e.emit("_slideClasses",r)};e.prototype.slidesPerViewDynamic=function(e,r){if(e===void 0){e="current"}if(r===void 0){r=false}var i=this;var t=i.params,n=i.slides,a=i.slidesGrid,f=i.slidesSizesGrid,u=i.size,o=i.activeIndex;var s=1;if(typeof t.slidesPerView==="number")return t.slidesPerView;if(t.centeredSlides){var l=n[o]?Math.ceil(n[o].swiperSlideSize):0;var v=void 0;for(var d=o+1;d<n.length;d+=1){if(n[d]&&!v){l+=Math.ceil(n[d].swiperSlideSize);s+=1;if(l>u)v=true}}for(var d=o-1;d>=0;d-=1){if(n[d]&&!v){l+=n[d].swiperSlideSize;s+=1;if(l>u)v=true}}}else{if(e==="current"){for(var d=o+1;d<n.length;d+=1){var c=r?a[d]+f[d]-a[o]<u:a[d]-a[o]<u;if(c){s+=1}}}else{for(var d=o-1;d>=0;d-=1){var c=a[o]-a[d]<u;if(c){s+=1}}}}return s};e.prototype.update=function(){var e=this;if(!e||e.destroyed)return;var r=e.snapGrid,i=e.params;if(i.breakpoints){e.setBreakpoint()}__spreadArray([],e.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(r){if(r.complete){ee(e,r)}}));e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function t(){var r=e.rtlTranslate?e.translate*-1:e.translate;var i=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}var n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode){t();if(i.autoHeight){e.updateAutoHeight()}}else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){var a=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,false,true)}else{n=e.slideTo(e.activeIndex,0,false,true)}if(!n){t()}}if(i.watchOverflow&&r!==e.snapGrid){e.checkOverflow()}e.emit("update")};e.prototype.changeDirection=function(e,r){if(r===void 0){r=true}var i=this;var t=i.params.direction;if(!e){e=t==="horizontal"?"vertical":"horizontal"}if(e===t||e!=="horizontal"&&e!=="vertical"){return i}i.el.classList.remove("".concat(i.params.containerModifierClass).concat(t));i.el.classList.add("".concat(i.params.containerModifierClass).concat(e));i.emitContainerClasses();i.params.direction=e;i.slides.forEach((function(r){if(e==="vertical"){r.style.width=""}else{r.style.height=""}}));i.emit("changeDirection");if(r)i.update();return i};e.prototype.changeLanguageDirection=function(e){var r=this;if(r.rtl&&e==="rtl"||!r.rtl&&e==="ltr")return;r.rtl=e==="rtl";r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl;if(r.rtl){r.el.classList.add("".concat(r.params.containerModifierClass,"rtl"));r.el.dir="rtl"}else{r.el.classList.remove("".concat(r.params.containerModifierClass,"rtl"));r.el.dir="ltr"}r.update()};e.prototype.mount=function(e){var r=this;if(r.mounted)return true;var i=e||r.params.el;if(typeof i==="string"){i=document.querySelector(i)}if(!i){return false}i.swiper=r;if(i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()){r.isElement=true}var t=function(){return".".concat((r.params.wrapperClass||"").trim().split(" ").join("."))};var n=function(){if(i&&i.shadowRoot&&i.shadowRoot.querySelector){var e=i.shadowRoot.querySelector(t());return e}return y(i,t())[0]};var a=n();if(!a&&r.params.createElements){a=S("div",r.params.wrapperClass);i.append(a);y(i,".".concat(r.params.slideClass)).forEach((function(e){a.append(e)}))}Object.assign(r,{el:i,wrapperEl:a,slidesEl:r.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:a,hostEl:r.isElement?i.parentNode.host:i,mounted:true,rtl:i.dir.toLowerCase()==="rtl"||C(i,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||C(i,"direction")==="rtl"),wrongRTL:C(a,"display")==="-webkit-box"});return true};e.prototype.init=function(e){var r=this;if(r.initialized)return r;var i=r.mount(e);if(i===false)return r;r.emit("beforeInit");if(r.params.breakpoints){r.setBreakpoint()}r.addClasses();r.updateSize();r.updateSlides();if(r.params.watchOverflow){r.checkOverflow()}if(r.params.grabCursor&&r.enabled){r.setGrabCursor()}if(r.params.loop&&r.virtual&&r.params.virtual.enabled){r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,false,true)}else{r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,false,true)}if(r.params.loop){r.loopCreate(undefined,true)}r.attachEvents();var t=__spreadArray([],r.el.querySelectorAll('[loading="lazy"]'),true);if(r.isElement){t.push.apply(t,r.hostEl.querySelectorAll('[loading="lazy"]'))}t.forEach((function(e){if(e.complete){ee(r,e)}else{e.addEventListener("load",(function(e){ee(r,e.target)}))}}));ie(r);r.initialized=true;ie(r);r.emit("init");r.emit("afterInit");return r};e.prototype.destroy=function(e,r){if(e===void 0){e=true}if(r===void 0){r=true}var i=this;var t=i.params,n=i.el,a=i.wrapperEl,f=i.slides;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(t.loop){i.loopDestroy()}if(r){i.removeClasses();if(n&&typeof n!=="string"){n.removeAttribute("style")}if(a){a.removeAttribute("style")}if(f&&f.length){f.forEach((function(e){e.classList.remove(t.slideVisibleClass,t.slideFullyVisibleClass,t.slideActiveClass,t.slideNextClass,t.slidePrevClass);e.removeAttribute("style");e.removeAttribute("data-swiper-slide-index")}))}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((function(e){i.off(e)}));if(e!==false){if(i.el&&typeof i.el!=="string"){i.el.swiper=null}o(i)}i.destroyed=true;return null};e.extendDefaults=function(e){h(fr,e)};Object.defineProperty(e,"extendedDefaults",{get:function(){return fr},enumerable:false,configurable:true});Object.defineProperty(e,"defaults",{get:function(){return tr},enumerable:false,configurable:true});e.installModule=function(r){if(!e.prototype.__modules__)e.prototype.__modules__=[];var i=e.prototype.__modules__;if(typeof r==="function"&&i.indexOf(r)<0){i.push(r)}};e.use=function(r){if(Array.isArray(r)){r.forEach((function(r){return e.installModule(r)}));return e}e.installModule(r);return e};return e}();e("S",ur);Object.keys(ar).forEach((function(e){Object.keys(ar[e]).forEach((function(r){ur.prototype[r]=ar[e][r]}))}));ur.use([q,W]);function or(e,r,i,t){if(e.params.createElements){Object.keys(t).forEach((function(n){if(!i[n]&&i.auto===true){var a=y(e.el,".".concat(t[n]))[0];if(!a){a=S("div",t[n]);a.className=t[n];e.el.append(a)}i[n]=a;r[n]=a}}))}return i}function sr(e){if(e===void 0){e=""}return".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function lr(e){var r=e.swiper,i=e.extendParams,t=e.on;i({a11y:{enabled:true,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:true}});r.a11y={clicked:false};var a=null;var f;var u;var o=(new Date).getTime();function s(e){var r=a;if(r.length===0)return;r.innerHTML="";r.innerHTML=e}function l(e){var r=function(){return Math.round(16*Math.random()).toString(16)};return"x".repeat(e).replace(/x/g,r)}function v(e){e=j(e);e.forEach((function(e){e.setAttribute("tabIndex","0")}))}function d(e){e=j(e);e.forEach((function(e){e.setAttribute("tabIndex","-1")}))}function c(e,r){e=j(e);e.forEach((function(e){e.setAttribute("role",r)}))}function p(e,r){e=j(e);e.forEach((function(e){e.setAttribute("aria-roledescription",r)}))}function h(e,r){e=j(e);e.forEach((function(e){e.setAttribute("aria-controls",r)}))}function g(e,r){e=j(e);e.forEach((function(e){e.setAttribute("aria-label",r)}))}function m(e,r){e=j(e);e.forEach((function(e){e.setAttribute("id",r)}))}function w(e,r){e=j(e);e.forEach((function(e){e.setAttribute("aria-live",r)}))}function y(e){e=j(e);e.forEach((function(e){e.setAttribute("aria-disabled",true)}))}function b(e){e=j(e);e.forEach((function(e){e.setAttribute("aria-disabled",false)}))}function x(e){if(e.keyCode!==13&&e.keyCode!==32)return;var i=r.params.a11y;var t=e.target;if(r.pagination&&r.pagination.el&&(t===r.pagination.el||r.pagination.el.contains(e.target))){if(!e.target.matches(sr(r.params.pagination.bulletClass)))return}if(r.navigation&&r.navigation.prevEl&&r.navigation.nextEl){var n=j(r.navigation.prevEl);var a=j(r.navigation.nextEl);if(a.includes(t)){if(!(r.isEnd&&!r.params.loop)){r.slideNext()}if(r.isEnd){s(i.lastSlideMessage)}else{s(i.nextSlideMessage)}}if(n.includes(t)){if(!(r.isBeginning&&!r.params.loop)){r.slidePrev()}if(r.isBeginning){s(i.firstSlideMessage)}else{s(i.prevSlideMessage)}}}if(r.pagination&&t.matches(sr(r.params.pagination.bulletClass))){t.click()}}function M(){if(r.params.loop||r.params.rewind||!r.navigation)return;var e=r.navigation,i=e.nextEl,t=e.prevEl;if(t){if(r.isBeginning){y(t);d(t)}else{b(t);v(t)}}if(i){if(r.isEnd){y(i);d(i)}else{b(i);v(i)}}}function T(){return r.pagination&&r.pagination.bullets&&r.pagination.bullets.length}function A(){return T()&&r.params.pagination.clickable}function _(){var e=r.params.a11y;if(!T())return;r.pagination.bullets.forEach((function(i){if(r.params.pagination.clickable){v(i);if(!r.params.pagination.renderBullet){c(i,"button");g(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,O(i)+1))}}if(i.matches(sr(r.params.pagination.bulletActiveClass))){i.setAttribute("aria-current","true")}else{i.removeAttribute("aria-current")}}))}var C=function(e,r,i){v(e);if(e.tagName!=="BUTTON"){c(e,"button");e.addEventListener("keydown",x)}g(e,i);h(e,r)};var I=function(e){if(u&&u!==e.target&&!u.contains(e.target)){f=true}r.a11y.clicked=true};var k=function(){f=false;requestAnimationFrame((function(){requestAnimationFrame((function(){if(!r.destroyed){r.a11y.clicked=false}}))}))};var E=function(e){o=(new Date).getTime()};var F=function(e){if(r.a11y.clicked||!r.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;var i=e.target.closest(".".concat(r.params.slideClass,", swiper-slide"));if(!i||!r.slides.includes(i))return;u=i;var t=r.slides.indexOf(i)===r.activeIndex;var n=r.params.watchSlidesProgress&&r.visibleSlides&&r.visibleSlides.includes(i);if(t||n)return;if(e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)return;if(r.isHorizontal()){r.el.scrollLeft=0}else{r.el.scrollTop=0}requestAnimationFrame((function(){if(f)return;if(r.params.loop){r.slideToLoop(parseInt(i.getAttribute("data-swiper-slide-index")),0)}else{r.slideTo(r.slides.indexOf(i),0)}f=false}))};var P=function(){var e=r.params.a11y;if(e.itemRoleDescriptionMessage){p(r.slides,e.itemRoleDescriptionMessage)}if(e.slideRole){c(r.slides,e.slideRole)}var i=r.slides.length;if(e.slideLabelMessage){r.slides.forEach((function(t,n){var a=r.params.loop?parseInt(t.getAttribute("data-swiper-slide-index"),10):n;var f=e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,i);g(t,f)}))}};var L=function(){var e=r.params.a11y;r.el.append(a);var i=r.el;if(e.containerRoleDescriptionMessage){p(i,e.containerRoleDescriptionMessage)}if(e.containerMessage){g(i,e.containerMessage)}if(e.containerRole){c(i,e.containerRole)}var t=r.wrapperEl;var f=e.id||t.getAttribute("id")||"swiper-wrapper-".concat(l(16));var u=r.params.autoplay&&r.params.autoplay.enabled?"off":"polite";m(t,f);w(t,u);P();var o=r.navigation?r.navigation:{},s=o.nextEl,v=o.prevEl;s=j(s);v=j(v);if(s){s.forEach((function(r){return C(r,f,e.nextSlideMessage)}))}if(v){v.forEach((function(r){return C(r,f,e.prevSlideMessage)}))}if(A()){var d=j(r.pagination.el);d.forEach((function(e){e.addEventListener("keydown",x)}))}var h=n();h.addEventListener("visibilitychange",E);r.el.addEventListener("focus",F,true);r.el.addEventListener("focus",F,true);r.el.addEventListener("pointerdown",I,true);r.el.addEventListener("pointerup",k,true)};function z(){if(a)a.remove();var e=r.navigation?r.navigation:{},i=e.nextEl,t=e.prevEl;i=j(i);t=j(t);if(i){i.forEach((function(e){return e.removeEventListener("keydown",x)}))}if(t){t.forEach((function(e){return e.removeEventListener("keydown",x)}))}if(A()){var f=j(r.pagination.el);f.forEach((function(e){e.removeEventListener("keydown",x)}))}var u=n();u.removeEventListener("visibilitychange",E);if(r.el&&typeof r.el!=="string"){r.el.removeEventListener("focus",F,true);r.el.removeEventListener("pointerdown",I,true);r.el.removeEventListener("pointerup",k,true)}}t("beforeInit",(function(){a=S("span",r.params.a11y.notificationClass);a.setAttribute("aria-live","assertive");a.setAttribute("aria-atomic","true")}));t("afterInit",(function(){if(!r.params.a11y.enabled)return;L()}));t("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(function(){if(!r.params.a11y.enabled)return;P()}));t("fromEdge toEdge afterInit lock unlock",(function(){if(!r.params.a11y.enabled)return;M()}));t("paginationUpdate",(function(){if(!r.params.a11y.enabled)return;_()}));t("destroy",(function(){if(!r.params.a11y.enabled)return;z()}))}}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,i,n){if(n||arguments.length===2)for(var e=0,t=i.length,a;e<t;e++){if(a||!(e in i)){if(!a)a=Array.prototype.slice.call(i,0,e);a[e]=i[e]}}return r.concat(a||Array.prototype.slice.call(i))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/System.register(["./p-CQOhOWMI.system.js"],(function(r){"use strict";var i,n,e,t,a,f;return{setters:[function(r){i=r.m;n=r.c;e=r.e;t=r.a;a=r.b;f=r.d}],execute:function(){r("P",l);function l(r){var l=r.swiper,s=r.extendParams,u=r.on,o=r.emit;var c="swiper-pagination";s({pagination:{el:null,bulletElement:"span",clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:"bullets",dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:function(r){return r},formatFractionTotal:function(r){return r},bulletClass:"".concat(c,"-bullet"),bulletActiveClass:"".concat(c,"-bullet-active"),modifierClass:"".concat(c,"-"),currentClass:"".concat(c,"-current"),totalClass:"".concat(c,"-total"),hiddenClass:"".concat(c,"-hidden"),progressbarFillClass:"".concat(c,"-progressbar-fill"),progressbarOppositeClass:"".concat(c,"-progressbar-opposite"),clickableClass:"".concat(c,"-clickable"),lockClass:"".concat(c,"-lock"),horizontalClass:"".concat(c,"-horizontal"),verticalClass:"".concat(c,"-vertical"),paginationDisabledClass:"".concat(c,"-disabled")}});l.pagination={el:null,bullets:[]};var v;var p=0;function d(){return!l.params.pagination.el||!l.pagination.el||Array.isArray(l.pagination.el)&&l.pagination.el.length===0}function b(r,i){var n=l.params.pagination.bulletActiveClass;if(!r)return;r=r["".concat(i==="prev"?"previous":"next","ElementSibling")];if(r){r.classList.add("".concat(n,"-").concat(i));r=r["".concat(i==="prev"?"previous":"next","ElementSibling")];if(r){r.classList.add("".concat(n,"-").concat(i,"-").concat(i))}}}function g(r,i,n){r=r%n;i=i%n;if(i===r+1){return"next"}else if(i===r-1){return"previous"}return}function h(r){var i=r.target.closest(t(l.params.pagination.bulletClass));if(!i){return}r.preventDefault();var n=f(i)*l.params.slidesPerGroup;if(l.params.loop){if(l.realIndex===n)return;var e=g(l.realIndex,n,l.slides.length);if(e==="next"){l.slideNext()}else if(e==="previous"){l.slidePrev()}else{l.slideToLoop(n)}}else{l.slideTo(n)}}function y(){var r,n;var e=l.rtl;var s=l.params.pagination;if(d())return;var u=l.pagination.el;u=i(u);var c;var g;var h=l.virtual&&l.params.virtual.enabled?l.virtual.slides.length:l.slides.length;var y=l.params.loop?Math.ceil(h/l.params.slidesPerGroup):l.snapGrid.length;if(l.params.loop){g=l.previousRealIndex||0;c=l.params.slidesPerGroup>1?Math.floor(l.realIndex/l.params.slidesPerGroup):l.realIndex}else if(typeof l.snapIndex!=="undefined"){c=l.snapIndex;g=l.previousSnapIndex}else{g=l.previousIndex||0;c=l.activeIndex||0}if(s.type==="bullets"&&l.pagination.bullets&&l.pagination.bullets.length>0){var m=l.pagination.bullets;var C;var x;var k=void 0;if(s.dynamicBullets){v=a(m[0],l.isHorizontal()?"width":"height");u.forEach((function(r){r.style[l.isHorizontal()?"width":"height"]="".concat(v*(s.dynamicMainBullets+4),"px")}));if(s.dynamicMainBullets>1&&g!==undefined){p+=c-(g||0);if(p>s.dynamicMainBullets-1){p=s.dynamicMainBullets-1}else if(p<0){p=0}}C=Math.max(c-p,0);x=C+(Math.min(m.length,s.dynamicMainBullets)-1);k=(x+C)/2}m.forEach((function(r){var i;var n=__spreadArray([],["","-next","-next-next","-prev","-prev-prev","-main"].map((function(r){return"".concat(s.bulletActiveClass).concat(r)})),true).map((function(r){return typeof r==="string"&&r.includes(" ")?r.split(" "):r})).flat();(i=r.classList).remove.apply(i,n)}));if(u.length>1){m.forEach((function(r){var i,n;var e=f(r);if(e===c){(i=r.classList).add.apply(i,s.bulletActiveClass.split(" "))}else if(l.isElement){r.setAttribute("part","bullet")}if(s.dynamicBullets){if(e>=C&&e<=x){(n=r.classList).add.apply(n,"".concat(s.bulletActiveClass,"-main").split(" "))}if(e===C){b(r,"prev")}if(e===x){b(r,"next")}}}))}else{var A=m[c];if(A){(r=A.classList).add.apply(r,s.bulletActiveClass.split(" "))}if(l.isElement){m.forEach((function(r,i){r.setAttribute("part",i===c?"bullet-active":"bullet")}))}if(s.dynamicBullets){var M=m[C];var _=m[x];for(var O=C;O<=x;O+=1){if(m[O]){(n=m[O].classList).add.apply(n,"".concat(s.bulletActiveClass,"-main").split(" "))}}b(M,"prev");b(_,"next")}}if(s.dynamicBullets){var w=Math.min(m.length,s.dynamicMainBullets+4);var z=(v*w-v)/2-k*v;var F=e?"right":"left";m.forEach((function(r){r.style[l.isHorizontal()?F:"top"]="".concat(z,"px")}))}}u.forEach((function(r,i){if(s.type==="fraction"){r.querySelectorAll(t(s.currentClass)).forEach((function(r){r.textContent=s.formatFractionCurrent(c+1)}));r.querySelectorAll(t(s.totalClass)).forEach((function(r){r.textContent=s.formatFractionTotal(y)}))}if(s.type==="progressbar"){var n=void 0;if(s.progressbarOpposite){n=l.isHorizontal()?"vertical":"horizontal"}else{n=l.isHorizontal()?"horizontal":"vertical"}var e=(c+1)/y;var a=1;var f=1;if(n==="horizontal"){a=e}else{f=e}r.querySelectorAll(t(s.progressbarFillClass)).forEach((function(r){r.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(f,")");r.style.transitionDuration="".concat(l.params.speed,"ms")}))}if(s.type==="custom"&&s.renderCustom){r.innerHTML=s.renderCustom(l,c+1,y);if(i===0)o("paginationRender",r)}else{if(i===0)o("paginationRender",r);o("paginationUpdate",r)}if(l.params.watchOverflow&&l.enabled){r.classList[l.isLocked?"add":"remove"](s.lockClass)}}))}function m(){var r=l.params.pagination;if(d())return;var n=l.virtual&&l.params.virtual.enabled?l.virtual.slides.length:l.grid&&l.params.grid.rows>1?l.slides.length/Math.ceil(l.params.grid.rows):l.slides.length;var e=l.pagination.el;e=i(e);var a="";if(r.type==="bullets"){var f=l.params.loop?Math.ceil(n/l.params.slidesPerGroup):l.snapGrid.length;if(l.params.freeMode&&l.params.freeMode.enabled&&f>n){f=n}for(var s=0;s<f;s+=1){if(r.renderBullet){a+=r.renderBullet.call(l,s,r.bulletClass)}else{a+="<".concat(r.bulletElement," ").concat(l.isElement?'part="bullet"':"",' class="').concat(r.bulletClass,'"></').concat(r.bulletElement,">")}}}if(r.type==="fraction"){if(r.renderFraction){a=r.renderFraction.call(l,r.currentClass,r.totalClass)}else{a='<span class="'.concat(r.currentClass,'"></span>')+" / "+'<span class="'.concat(r.totalClass,'"></span>')}}if(r.type==="progressbar"){if(r.renderProgressbar){a=r.renderProgressbar.call(l,r.progressbarFillClass)}else{a='<span class="'.concat(r.progressbarFillClass,'"></span>')}}l.pagination.bullets=[];e.forEach((function(i){var n;if(r.type!=="custom"){i.innerHTML=a||""}if(r.type==="bullets"){(n=l.pagination.bullets).push.apply(n,i.querySelectorAll(t(r.bulletClass)))}}));if(r.type!=="custom"){o("paginationRender",e[0])}}function C(){l.params.pagination=n(l,l.originalParams.pagination,l.params.pagination,{el:"swiper-pagination"});var r=l.params.pagination;if(!r.el)return;var t;if(typeof r.el==="string"&&l.isElement){t=l.el.querySelector(r.el)}if(!t&&typeof r.el==="string"){t=__spreadArray([],document.querySelectorAll(r.el),true)}if(!t){t=r.el}if(!t||t.length===0)return;if(l.params.uniqueNavElements&&typeof r.el==="string"&&Array.isArray(t)&&t.length>1){t=__spreadArray([],l.el.querySelectorAll(r.el),true);if(t.length>1){t=t.find((function(r){if(e(r,".swiper")[0]!==l.el)return false;return true}))}}if(Array.isArray(t)&&t.length===1)t=t[0];Object.assign(l.pagination,{el:t});t=i(t);t.forEach((function(i){var n;if(r.type==="bullets"&&r.clickable){(n=i.classList).add.apply(n,(r.clickableClass||"").split(" "))}i.classList.add(r.modifierClass+r.type);i.classList.add(l.isHorizontal()?r.horizontalClass:r.verticalClass);if(r.type==="bullets"&&r.dynamicBullets){i.classList.add("".concat(r.modifierClass).concat(r.type,"-dynamic"));p=0;if(r.dynamicMainBullets<1){r.dynamicMainBullets=1}}if(r.type==="progressbar"&&r.progressbarOpposite){i.classList.add(r.progressbarOppositeClass)}if(r.clickable){i.addEventListener("click",h)}if(!l.enabled){i.classList.add(r.lockClass)}}))}function x(){var r=l.params.pagination;if(d())return;var n=l.pagination.el;if(n){n=i(n);n.forEach((function(i){var n;i.classList.remove(r.hiddenClass);i.classList.remove(r.modifierClass+r.type);i.classList.remove(l.isHorizontal()?r.horizontalClass:r.verticalClass);if(r.clickable){(n=i.classList).remove.apply(n,(r.clickableClass||"").split(" "));i.removeEventListener("click",h)}}))}if(l.pagination.bullets)l.pagination.bullets.forEach((function(i){var n;return(n=i.classList).remove.apply(n,r.bulletActiveClass.split(" "))}))}u("changeDirection",(function(){if(!l.pagination||!l.pagination.el)return;var r=l.params.pagination;var n=l.pagination.el;n=i(n);n.forEach((function(i){i.classList.remove(r.horizontalClass,r.verticalClass);i.classList.add(l.isHorizontal()?r.horizontalClass:r.verticalClass)}))}));u("init",(function(){if(l.params.pagination.enabled===false){A()}else{C();m();y()}}));u("activeIndexChange",(function(){if(typeof l.snapIndex==="undefined"){y()}}));u("snapIndexChange",(function(){y()}));u("snapGridLengthChange",(function(){m();y()}));u("destroy",(function(){x()}));u("enable disable",(function(){var r=l.pagination.el;if(r){r=i(r);r.forEach((function(r){return r.classList[l.enabled?"remove":"add"](l.params.pagination.lockClass)}))}}));u("lock unlock",(function(){y()}));u("click",(function(r,n){var e=n.target;var t=i(l.pagination.el);if(l.params.pagination.el&&l.params.pagination.hideOnClick&&t&&t.length>0&&!e.classList.contains(l.params.pagination.bulletClass)){if(l.navigation&&(l.navigation.nextEl&&e===l.navigation.nextEl||l.navigation.prevEl&&e===l.navigation.prevEl))return;var a=t[0].classList.contains(l.params.pagination.hiddenClass);if(a===true){o("paginationShow")}else{o("paginationHide")}t.forEach((function(r){return r.classList.toggle(l.params.pagination.hiddenClass)}))}}));var k=function(){l.el.classList.remove(l.params.pagination.paginationDisabledClass);var r=l.pagination.el;if(r){r=i(r);r.forEach((function(r){return r.classList.remove(l.params.pagination.paginationDisabledClass)}))}C();m();y()};var A=function(){l.el.classList.add(l.params.pagination.paginationDisabledClass);var r=l.pagination.el;if(r){r=i(r);r.forEach((function(r){return r.classList.add(l.params.pagination.paginationDisabledClass)}))}x()};Object.assign(l.pagination,{enable:k,disable:A,render:m,update:y,init:C,destroy:x})}}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function s(e){try{d(o.next(e))}catch(e){a(e)}}function n(e){try{d(o["throw"](e))}catch(e){a(e)}}function d(e){e.done?i(e.value):r(e.value).then(s,n)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(e){return function(t){return d([e,t])}}function d(n){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(i=0)),i)try{if(o=1,r&&(a=n[0]&2?r["return"]:n[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,n[1])).done)return a;if(r=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;r=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){i.label=n[1];break}if(n[0]===6&&i.label<a[1]){i.label=a[1];a=n;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(n);break}if(a[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];r=0}finally{o=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/System.register(["./p-CINH_0E4.system.js","./p-O36ZrzuT.system.js"],(function(e,t){"use strict";var i,o,r;return{setters:[function(t){i=t.p;o=t.b;e("setNonce",t.s)},function(e){r=e.g}],execute:function(){var e=this;var a=function(){var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return i(o)};a().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,o([["p-f2e1f609.system",[[1,"covet-pics-post",{postId:[2,"post-id"],environment:[1],item:[32],fetchingError:[32]}]]],["p-60290e84.system",[[0,"covet-pics-crop-text",{text:[1],textClass:[1,"text-class"],textColor:[1,"text-color"],ratio:[16],cropCSS:[32]}]]],["p-461a30a6.system",[[1,"covet-pics-star-rating",{rating:[2],ratingCount:[2,"rating-count"],starColor:[1,"star-color"],emptyStarColor:[1,"empty-star-color"],starBorderColor:[1,"star-border-color"],starBorderWidth:[2,"star-border-width"],starSize:[2,"star-size"],spaceStars:[2,"space-stars"],spaceStarsText:[2,"space-stars-text"],showLabel:[4,"show-label"],label:[1]}]]],["p-b9ebfbf3.system",[[0,"covet-pics-highlighted-page",{thumbnailUrl:[1,"thumbnail-url"],thumbnailAlt:[1,"thumbnail-alt"],ariaLabel:[1,"aria-label"],thumbnailLayout:[1,"thumbnail-layout"],videoUrl:[1,"video-url"],videoPoster:[1,"video-poster"],thumbnailCarouselImages:[16,"thumbnail-carousel-images"],productLinks:[16,"product-links"],productBaseImgAlt:[1,"product-base-img-alt"],reverseClass:[1,"reverse-class"],isMobile:[4,"is-mobile"],pageIndex:[2,"page-index"],caption:[1],rating:[2],createdTime:[1,"created-time"],userName:[1,"user-name"],mainSliderIndex:[2,"main-slider-index"],pageId:[2,"page-id"],appStore:[16,"app-store"],hideHotspots:[32],activeProductIndex:[32],hoverHotspot:[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{links:[16],activeHotspot:[2,"active-hotspot"],thumbnailUrl:[1,"thumbnail-url"],hoverHotspot:[2,"hover-hotspot"],isMobile:[4,"is-mobile"],productBaseImgAlt:[1,"product-base-img-alt"],pageId:[2,"page-id"],appStore:[16,"app-store"]},null,{thumbnailUrl:["refreshHotspot"],activeHotspot:["activeHotspotHandler"]}]]],["p-6526fd8a.system",[[0,"covet-pics-popup-freeflow-carousel",{item:[16],isEnabled:[4,"is-enabled"],dataLoaded:[1,"data-loaded"],sliderIndex:[32],videoPlay:[64],videoPause:[64],videoSoundOn:[64],videoSoundOff:[64],pauseAllVideos:[64]},null,{isEnabled:["enableSlider"],dataLoaded:["lazyLoadMedia"],sliderIndex:["updateSliderIndex"]}],[1,"covet-pics-popup-freeflow-links",{links:[16],itemCreatedTime:[1,"item-created-time"],isSliderEnabled:[4,"is-slider-enabled"]},null,{isSliderEnabled:["enableSlider"]}]]],["p-03fc64d2.system",[[0,"covet-pics-popup-slide",{item:[16],showCaption:[4,"show-caption"],showStarRating:[4,"show-star-rating"],dataLoaded:[32],isPlaying:[32],isMuted:[32],carouselIndex:[32],videoProgress:[32],showCarouselVideoControls:[32],loadMedia:[64],videoPlay:[64],videoPause:[64],videoSoundOff:[64],videoSoundOn:[64]}],[1,"covet-pics-direct-buy",{product:[8],moneyFormat:[1,"money-format"],appStore:[16,"app-store"],selectedOptions:[32],settings:[32]}],[0,"covet-pics-hotspots",{links:[16],backgroundColor:[1,"background-color"],textColor:[1,"text-color"],showNumbers:[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{links:[16],greyBorderClass:[1,"grey-border-class"],itemCreatedTime:[1,"item-created-time"],appStore:[16,"app-store"],settings:[32]}],[0,"covet-pics-popup-review",{rating:[2],caption:[1],username:[1],itemType:[1,"item-type"],verified:[4],createdTime:[1,"created-time"],reviewCSS:[32]},null,{caption:["watchPropHandler"]}],[0,"covet-pics-popup-shared-links",{item:[16],galleryEmbedId:[2,"gallery-embed-id"],showShareLink:[32],copyLinkCopied:[32]}],[0,"covet-pics-popup-slider",{item:[16],getSwiperState:[64]}]]],["p-48b7f554.system",[[0,"covet-pics-gallery-header",{rating:[2],productTitle:[1,"product-title"],breakdown:[16],appStore:[16,"app-store"],showBreakdownDropdown:[32],showSortDropdown:[32],isDesktopScreen:[32]}],[1,"covet-pics-popup",{appStore:[16,"app-store"],item:[32],product:[32],directBuyIsOpen:[32],popupTabIndex:[32],settings:[32],isPreviousEnable:[32],isNextEnable:[32],openPopup:[64],closePopup:[64]},[[4,"addToCart:covetPics","addToCartHandler"],[16,"productLinkClicked","productLinkClickedHandler"]],{item:["itemChangedHandler"]}],[1,"covet-pics-popup-freeflow",{appStore:[16,"app-store"],settings:[32],items:[32],sliderIndex:[32],tabIndex:[32],openPopupFreeflow:[64],closePopupFreeflow:[64]},null,{sliderIndex:["updateSliderIndex"],items:["updateItems"]}],[0,"covet-pics-gallery-item",{altTag:[1,"alt-tag"],highlighted:[4],imageUrl:[1,"image-url"],rating:[2],itemWidth:[2,"item-width"],userName:[1,"user-name"],createdTime:[1,"created-time"],caption:[1],itemType:[1,"item-type"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],itemId:[1,"item-id"],itemSource:[1,"item-source"],links:[16],url:[1],videoUrl:[1,"video-url"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16,"app-store"],tabIndex:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{sliderIndex:["autoPlayVideos"]}],[0,"covet-pics-gallery-item-detail",{altTag:[1,"alt-tag"],highlighted:[4],verified:[4],imageUrl:[1,"image-url"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],videoUrl:[1,"video-url"],itemId:[1,"item-id"],itemSource:[1,"item-source"],itemType:[1,"item-type"],links:[16],url:[1],rating:[2],userName:[1,"user-name"],caption:[1],createdTime:[1,"created-time"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16,"app-store"],tabIndex:[32],captionCSS:[32],reviewClass:[32],starOnlyClass:[32],highlightedClass:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{sliderIndex:["autoPlayVideos"]}],[1,"covet-pics-upload",{standalone:[4],appStore:[16,"app-store"],starRating:[32],isFormValid:[32],showFormWarning:[32],thumbnailLinks:[32],toShowLinks:[32],dropedImagesNumber:[32],isAnimating:[32],notificationMessage:[32],isNotificationActive:[32],widgetWidth:[32],uploadTabIndex:[32],openUpload:[64]}]]],["p-848e4b25.system",[[0,"covet-pics-gallery-grid",{items:[16],breakdown:[16],productTitle:[1,"product-title"],rating:[2],filtersEnabled:[4,"filters-enabled"],filters:[16],showLoadMore:[4,"show-load-more"],appStore:[16,"app-store"],sharedItemId:[1,"shared-item-id"],isLoading:[32],showSort:[32],isGridDisabled:[32],isDesktopScreen:[32],itemSize:[32],isFilterModalShow:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"]],{items:["itemsChangeHandler"]}],[0,"covet-pics-gallery-slider",{items:[16],sharedItemId:[1,"shared-item-id"],sliderStyle:[1,"slider-style"],appStore:[16,"app-store"],itemSize:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]],{items:["itemsChangeHandler"]}],[0,"covet-pics-highlighted",{numberOfPages:[2,"number-of-pages"],items:[16],appStore:[16,"app-store"],productLinks:[32],mainSliderIndex:[32],mainSliderAnimatingSlides:[32],windowHeight:[32],isDesktopScreen:[32]}]]],["p-e065ad82.system",[[1,"covet-pics-widget",{shop:[1],galleryEmbedId:[2,"gallery-embed-id"],shopifyProductId:[2,"shopify-product-id"],environment:[1],customSettings:[1,"custom-settings"],hideElements:[1,"hide-elements"],previewMode:[4,"preview-mode"],photoRequestId:[2,"photo-request-id"],lazyLoad:[4,"lazy-load"],isLoading:[32],minNumberOfPhotos:[32],items:[32],appStore:[32],fetchingError:[32],updateUploadWidgetCoverPreview:[64],updatePreviewSettings:[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]]]]]],t)]}}))}))}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var r=function(n,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))r[t]=n[t]};return r(n,t)};return function(n,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var n,t=1,e=arguments.length;t<e;t++){n=arguments[t];for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))r[i]=n[i]}return r};return __assign.apply(this,arguments)};var __rest=this&&this.__rest||function(r,n){var t={};for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&n.indexOf(e)<0)t[e]=r[e];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,e=Object.getOwnPropertySymbols(r);i<e.length;i++){if(n.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i]))t[e[i]]=r[e[i]]}return t};var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,i=n.length,u;e<i;e++){if(u||!(e in n)){if(!u)u=Array.prototype.slice.call(n,0,e);u[e]=n[e]}}return r.concat(u||Array.prototype.slice.call(n))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/System.register([],(function(r){"use strict";return{execute:function(){r({a:v,b:gr});function n(r){return"Minified Redux error #".concat(r,"; visit https://redux.js.org/Errors?code=").concat(r," for the full message or use the non-minified dev environment for full errors. ")}var t=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var e=t;var i=function(){return Math.random().toString(36).substring(7).split("").join(".")};var u={INIT:"@@redux/INIT".concat(i()),REPLACE:"@@redux/REPLACE".concat(i()),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION".concat(i())}};var o=u;function f(r){if(typeof r!=="object"||r===null)return false;var n=r;while(Object.getPrototypeOf(n)!==null){n=Object.getPrototypeOf(n)}return Object.getPrototypeOf(r)===n||Object.getPrototypeOf(r)===null}function a(r,t,i){var u;if(typeof r!=="function"){throw new Error(n(2))}if(typeof t==="function"&&typeof i==="function"||typeof i==="function"&&typeof arguments[3]==="function"){throw new Error(n(0))}if(typeof t==="function"&&typeof i==="undefined"){i=t;t=void 0}if(typeof i!=="undefined"){if(typeof i!=="function"){throw new Error(n(1))}return i(a)(r,t)}var c=r;var v=t;var s=new Map;var d=s;var l=0;var p=false;function y(){if(d===s){d=new Map;s.forEach((function(r,n){d.set(n,r)}))}}function h(){if(p){throw new Error(n(3))}return v}function w(r){if(typeof r!=="function"){throw new Error(n(4))}if(p){throw new Error(n(5))}var t=true;y();var e=l++;d.set(e,r);return function r(){if(!t){return}if(p){throw new Error(n(6))}t=false;y();d.delete(e);s=null}}function _(r){if(!f(r)){throw new Error(n(7))}if(typeof r.type==="undefined"){throw new Error(n(8))}if(typeof r.type!=="string"){throw new Error(n(17))}if(p){throw new Error(n(9))}try{p=true;v=c(v,r)}finally{p=false}var t=s=d;t.forEach((function(r){r()}));return r}function b(r){if(typeof r!=="function"){throw new Error(n(10))}c=r;_({type:o.REPLACE})}function j(){var r;var t=w;return r={subscribe:function(r){if(typeof r!=="object"||r===null){throw new Error(n(11))}function e(){var n=r;if(n.next){n.next(h())}}e();var i=t(e);return{unsubscribe:i}}},r[e]=function(){return this},r}_({type:o.INIT});var m=(u={dispatch:_,subscribe:w,getState:h,replaceReducer:b},u[e]=j,u);return m}function c(r){Object.keys(r).forEach((function(t){var e=r[t];var i=e(void 0,{type:o.INIT});if(typeof i==="undefined"){throw new Error(n(12))}if(typeof e(void 0,{type:o.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(n(13))}}))}function v(r){var t=Object.keys(r);var e={};for(var i=0;i<t.length;i++){var u=t[i];if(typeof r[u]==="function"){e[u]=r[u]}}var o=Object.keys(e);var f;try{c(e)}catch(r){f=r}return function r(t,i){if(t===void 0){t={}}if(f){throw f}var u=false;var a={};for(var c=0;c<o.length;c++){var v=o[c];var s=e[v];var d=t[v];var l=s(d,i);if(typeof l==="undefined"){throw new Error(n(14))}a[v]=l;u=u||l!==d}u=u||o.length!==Object.keys(t).length;return u?a:t}}function s(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}if(r.length===0){return function(r){return r}}if(r.length===1){return r[0]}return r.reduce((function(r,n){return function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}return r(n.apply(void 0,t))}}))}function d(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}return function(t){return function(e,i){var u=t(e,i);var o=function(){throw new Error(n(15))};var f={getState:u.getState,dispatch:function(r){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}return o.apply(void 0,__spreadArray([r],n,false))}};var a=r.map((function(r){return r(f)}));o=s.apply(void 0,a)(u.dispatch);return __assign(__assign({},u),{dispatch:o})}}}function l(r){return f(r)&&"type"in r&&typeof r.type==="string"}var p=Symbol.for("immer-nothing");var y=Symbol.for("immer-draftable");var h=Symbol.for("immer-state");function w(r){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}throw new Error("[Immer] minified error nr: ".concat(r,". Full error at: https://bit.ly/3cXEKWf"))}var _=Object.getPrototypeOf;function b(r){return!!r&&!!r[h]}function j(r){var n;if(!r)return false;return O(r)||Array.isArray(r)||!!r[y]||!!((n=r.constructor)===null||n===void 0?void 0:n[y])||M(r)||I(r)}var m=Object.prototype.constructor.toString();function O(r){if(!r||typeof r!=="object")return false;var n=_(r);if(n===null){return true}var t=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;if(t===Object)return true;return typeof t=="function"&&Function.toString.call(t)===m}function g(r,n){if(E(r)===0){Object.entries(r).forEach((function(t){var e=t[0],i=t[1];n(e,i,r)}))}else{r.forEach((function(t,e){return n(e,t,r)}))}}function E(r){var n=r[h];return n?n.type_:Array.isArray(r)?1:M(r)?2:I(r)?3:0}function P(r,n){return E(r)===2?r.has(n):Object.prototype.hasOwnProperty.call(r,n)}function A(r,n,t){var e=E(r);if(e===2)r.set(n,t);else if(e===3){r.add(t)}else r[n]=t}function S(r,n){if(r===n){return r!==0||1/r===1/n}else{return r!==r&&n!==n}}function M(r){return r instanceof Map}function I(r){return r instanceof Set}function k(r){return r.copy_||r.base_}function x(r,n){if(M(r)){return new Map(r)}if(I(r)){return new Set(r)}if(Array.isArray(r))return Array.prototype.slice.call(r);if(!n&&O(r)){if(!_(r)){var t=Object.create(null);return Object.assign(t,r)}return __assign({},r)}var e=Object.getOwnPropertyDescriptors(r);delete e[h];var i=Reflect.ownKeys(e);for(var u=0;u<i.length;u++){var o=i[u];var f=e[o];if(f.writable===false){f.writable=true;f.configurable=true}if(f.get||f.set)e[o]={configurable:true,writable:true,enumerable:f.enumerable,value:r[o]}}return Object.create(_(r),e)}function N(r,n){if(n===void 0){n=false}if(T(r)||b(r)||!j(r))return r;if(E(r)>1){r.set=r.add=r.clear=r.delete=R}Object.freeze(r);if(n)g(r,(function(r,n){return N(n,true)}));return r}function R(){w(2)}function T(r){return Object.isFrozen(r)}var C={};function W(r){var n=C[r];if(!n){w(0,r)}return n}var D;function B(){return D}function K(r,n){return{drafts_:[],parent_:r,immer_:n,canAutoFreeze_:true,unfinalizedDrafts_:0}}function z(r,n){if(n){W("Patches");r.patches_=[];r.inversePatches_=[];r.patchListener_=n}}function F(r){L(r);r.drafts_.forEach(q);r.drafts_=null}function L(r){if(r===D){D=r.parent_}}function U(r){return D=K(D,r)}function q(r){var n=r[h];if(n.type_===0||n.type_===1)n.revoke_();else n.revoked_=true}function X(r,n){n.unfinalizedDrafts_=n.drafts_.length;var t=n.drafts_[0];var e=r!==void 0&&r!==t;if(e){if(t[h].modified_){F(n);w(4)}if(j(r)){r=G(n,r);if(!n.parent_)J(n,r)}if(n.patches_){W("Patches").generateReplacementPatches_(t[h].base_,r,n.patches_,n.inversePatches_)}}else{r=G(n,t,[])}F(n);if(n.patches_){n.patchListener_(n.patches_,n.inversePatches_)}return r!==p?r:void 0}function G(r,n,t){if(T(n))return n;var e=n[h];if(!e){g(n,(function(i,u){return H(r,e,n,i,u,t)}));return n}if(e.scope_!==r)return n;if(!e.modified_){J(r,e.base_,true);return e.base_}if(!e.finalized_){e.finalized_=true;e.scope_.unfinalizedDrafts_--;var i=e.copy_;var u=i;var o=false;if(e.type_===3){u=new Set(i);i.clear();o=true}g(u,(function(n,u){return H(r,e,i,n,u,t,o)}));J(r,i,false);if(t&&r.patches_){W("Patches").generatePatches_(e,t,r.patches_,r.inversePatches_)}}return e.copy_}function H(r,n,t,e,i,u,o){if(b(i)){var f=u&&n&&n.type_!==3&&!P(n.assigned_,e)?u.concat(e):void 0;var a=G(r,i,f);A(t,e,a);if(b(a)){r.canAutoFreeze_=false}else return}else if(o){t.add(i)}if(j(i)&&!T(i)){if(!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1){return}G(r,i);if(!n||!n.scope_.parent_)J(r,i)}}function J(r,n,t){if(t===void 0){t=false}if(!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_){N(n,t)}}function Q(r,n){var t=Array.isArray(r);var e={type_:t?1:0,scope_:n?n.scope_:B(),modified_:false,finalized_:false,assigned_:{},parent_:n,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:false};var i=e;var u=V;if(t){i=[e];u=Y}var o=Proxy.revocable(i,u),f=o.revoke,a=o.proxy;e.draft_=a;e.revoke_=f;return a}var V={get:function(r,n){if(n===h)return r;var t=k(r);if(!P(t,n)){return $(r,t,n)}var e=t[n];if(r.finalized_||!j(e)){return e}if(e===Z(r.base_,n)){tr(r);return r.copy_[n]=ir(e,r)}return e},has:function(r,n){return n in k(r)},ownKeys:function(r){return Reflect.ownKeys(k(r))},set:function(r,n,t){var e=rr(k(r),n);if(e===null||e===void 0?void 0:e.set){e.set.call(r.draft_,t);return true}if(!r.modified_){var i=Z(k(r),n);var u=i===null||i===void 0?void 0:i[h];if(u&&u.base_===t){r.copy_[n]=t;r.assigned_[n]=false;return true}if(S(t,i)&&(t!==void 0||P(r.base_,n)))return true;tr(r);nr(r)}if(r.copy_[n]===t&&(t!==void 0||n in r.copy_)||Number.isNaN(t)&&Number.isNaN(r.copy_[n]))return true;r.copy_[n]=t;r.assigned_[n]=true;return true},deleteProperty:function(r,n){if(Z(r.base_,n)!==void 0||n in r.base_){r.assigned_[n]=false;tr(r);nr(r)}else{delete r.assigned_[n]}if(r.copy_){delete r.copy_[n]}return true},getOwnPropertyDescriptor:function(r,n){var t=k(r);var e=Reflect.getOwnPropertyDescriptor(t,n);if(!e)return e;return{writable:true,configurable:r.type_!==1||n!=="length",enumerable:e.enumerable,value:t[n]}},defineProperty:function(){w(11)},getPrototypeOf:function(r){return _(r.base_)},setPrototypeOf:function(){w(12)}};var Y={};g(V,(function(r,n){Y[r]=function(){arguments[0]=arguments[0][0];return n.apply(this,arguments)}}));Y.deleteProperty=function(r,n){return Y.set.call(this,r,n,void 0)};Y.set=function(r,n,t){return V.set.call(this,r[0],n,t,r[0])};function Z(r,n){var t=r[h];var e=t?k(t):r;return e[n]}function $(r,n,t){var e;var i=rr(n,t);return i?"value"in i?i.value:(e=i.get)===null||e===void 0?void 0:e.call(r.draft_):void 0}function rr(r,n){if(!(n in r))return void 0;var t=_(r);while(t){var e=Object.getOwnPropertyDescriptor(t,n);if(e)return e;t=_(t)}return void 0}function nr(r){if(!r.modified_){r.modified_=true;if(r.parent_){nr(r.parent_)}}}function tr(r){if(!r.copy_){r.copy_=x(r.base_,r.scope_.immer_.useStrictShallowCopy_)}}var er=function(){function r(r){var n=this;this.autoFreeze_=true;this.useStrictShallowCopy_=false;this.produce=function(r,t,e){if(typeof r==="function"&&typeof t!=="function"){var i=t;t=r;var u=n;return function r(n){var e=this;if(n===void 0){n=i}var o=[];for(var f=1;f<arguments.length;f++){o[f-1]=arguments[f]}return u.produce(n,(function(r){return t.call.apply(t,__spreadArray([e,r],o,false))}))}}if(typeof t!=="function")w(6);if(e!==void 0&&typeof e!=="function")w(7);var o;if(j(r)){var f=U(n);var a=ir(r,void 0);var c=true;try{o=t(a);c=false}finally{if(c)F(f);else L(f)}z(f,e);return X(o,f)}else if(!r||typeof r!=="object"){o=t(r);if(o===void 0)o=r;if(o===p)o=void 0;if(n.autoFreeze_)N(o,true);if(e){var v=[];var s=[];W("Patches").generateReplacementPatches_(r,o,v,s);e(v,s)}return o}else w(1,r)};this.produceWithPatches=function(r,t){if(typeof r==="function"){return function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return n.produceWithPatches(t,(function(n){return r.apply(void 0,__spreadArray([n],e,false))}))}}var e,i;var u=n.produce(r,t,(function(r,n){e=r;i=n}));return[u,e,i]};if(typeof(r===null||r===void 0?void 0:r.autoFreeze)==="boolean")this.setAutoFreeze(r.autoFreeze);if(typeof(r===null||r===void 0?void 0:r.useStrictShallowCopy)==="boolean")this.setUseStrictShallowCopy(r.useStrictShallowCopy)}r.prototype.createDraft=function(r){if(!j(r))w(8);if(b(r))r=ur(r);var n=U(this);var t=ir(r,void 0);t[h].isManual_=true;L(n);return t};r.prototype.finishDraft=function(r,n){var t=r&&r[h];if(!t||!t.isManual_)w(9);var e=t.scope_;z(e,n);return X(void 0,e)};r.prototype.setAutoFreeze=function(r){this.autoFreeze_=r};r.prototype.setUseStrictShallowCopy=function(r){this.useStrictShallowCopy_=r};r.prototype.applyPatches=function(r,n){var t;for(t=n.length-1;t>=0;t--){var e=n[t];if(e.path.length===0&&e.op==="replace"){r=e.value;break}}if(t>-1){n=n.slice(t+1)}var i=W("Patches").applyPatches_;if(b(r)){return i(r,n)}return this.produce(r,(function(r){return i(r,n)}))};return r}();function ir(r,n){var t=M(r)?W("MapSet").proxyMap_(r,n):I(r)?W("MapSet").proxySet_(r,n):Q(r,n);var e=n?n.scope_:B();e.drafts_.push(t);return t}function ur(r){if(!b(r))w(10,r);return or(r)}function or(r){if(!j(r)||T(r))return r;var n=r[h];var t;if(n){if(!n.modified_)return n.base_;n.finalized_=true;t=x(r,n.scope_.immer_.useStrictShallowCopy_)}else{t=x(r,true)}g(t,(function(r,n){A(t,r,or(n))}));if(n){n.finalized_=false}return t}var fr=new er;var ar=fr.produce;fr.produceWithPatches.bind(fr);fr.setAutoFreeze.bind(fr);fr.setUseStrictShallowCopy.bind(fr);fr.applyPatches.bind(fr);fr.createDraft.bind(fr);fr.finishDraft.bind(fr);function cr(r){var n=function(n){var t=n.dispatch,e=n.getState;return function(n){return function(i){if(typeof i==="function"){return i(t,e,r)}return n(i)}}};return n}var vr=cr();var sr=cr;var dr=typeof window!=="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length===0)return void 0;if(typeof arguments[0]==="object")return s;return s.apply(null,arguments)};function lr(r,n){function t(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(n){var i=n.apply(void 0,t);if(!i){throw new Error(Br(0))}return __assign(__assign({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:t[0]}}t.toString=function(){return"".concat(r)};t.type=r;t.match=function(n){return l(n)&&n.type===r};return t}var pr=function(r){__extends(n,r);function n(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}var i=r.apply(this,t)||this;Object.setPrototypeOf(i,n.prototype);return i}Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:false,configurable:true});n.prototype.concat=function(){var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}return r.prototype.concat.apply(this,n)};n.prototype.prepend=function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(r.length===1&&Array.isArray(r[0])){return new(n.bind.apply(n,__spreadArray([void 0],r[0].concat(this),false)))}return new(n.bind.apply(n,__spreadArray([void 0],r.concat(this),false)))};return n}(Array);function yr(r){return j(r)?ar(r,(function(){})):r}function hr(r,n,t){if(r.has(n))return r.get(n);return r.set(n,t(n)).get(n)}function wr(r){return typeof r==="boolean"}var _r=function(){return function r(n){var t=(n!==null&&n!==void 0?n:{}).thunk,e=t===void 0?true:t;var i=new pr;if(e){if(wr(e)){i.push(vr)}else{i.push(sr(e.extraArgument))}}return i}};var br="RTK_autoBatch";var jr=function(r){return function(n){setTimeout(n,r)}};var mr=function(r){if(r===void 0){r={type:"raf"}}return function(n){return function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}var i=n.apply(void 0,t);var u=true;var o=false;var f=false;var a=new Set;var c=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window!=="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:jr(10):r.type==="callback"?r.queueNotification:jr(r.timeout);var v=function(){f=false;if(o){o=false;a.forEach((function(r){return r()}))}};return Object.assign({},i,{subscribe:function(r){var n=function(){return u&&r()};var t=i.subscribe(n);a.add(r);return function(){t();a.delete(r)}},dispatch:function(r){var n;try{u=!((n=r===null||r===void 0?void 0:r.meta)===null||n===void 0?void 0:n[br]);o=!u;if(o){if(!f){f=true;c(v)}}return i.dispatch(r)}finally{u=true}}})}}};var Or=function(r){return function n(t){var e=(t!==null&&t!==void 0?t:{}).autoBatch,i=e===void 0?true:e;var u=new pr(r);if(i){u.push(mr(typeof i==="object"?i:void 0))}return u}};function gr(r){var n=_r();var t=r||{},e=t.reducer,i=e===void 0?void 0:e,u=t.middleware,o=t.devTools,c=o===void 0?true:o,l=t.preloadedState,p=l===void 0?void 0:l,y=t.enhancers,h=y===void 0?void 0:y;var w;if(typeof i==="function"){w=i}else if(f(i)){w=v(i)}else{throw new Error(Br(1))}var _;if(typeof u==="function"){_=u(n)}else{_=n()}var b=s;if(c){b=dr(__assign({trace:"production"!=="production"},typeof c==="object"&&c))}var j=d.apply(void 0,_);var m=Or(j);var O=typeof h==="function"?h(m):m();var g=b.apply(void 0,O);return a(w,p,g)}function Er(r){var n={};var t=[];var e;var i={addCase:function(r,t){var e=typeof r==="string"?r:r.type;if(!e){throw new Error(Br(28))}if(e in n){throw new Error(Br(29))}n[e]=t;return i},addMatcher:function(r,n){t.push({matcher:r,reducer:n});return i},addDefaultCase:function(r){e=r;return i}};r(i);return[n,t,e]}function Pr(r){return typeof r==="function"}function Ar(r,n){var t=Er(n),e=t[0],i=t[1],u=t[2];var o;if(Pr(r)){o=function(){return yr(r())}}else{var f=yr(r);o=function(){return f}}function a(r,n){if(r===void 0){r=o()}var t=__spreadArray([e[n.type]],i.filter((function(r){var t=r.matcher;return t(n)})).map((function(r){var n=r.reducer;return n})),true);if(t.filter((function(r){return!!r})).length===0){t=[u]}return t.reduce((function(r,t){if(t){if(b(r)){var e=r;var i=t(e,n);if(i===void 0){return r}return i}else if(!j(r)){var i=t(r,n);if(i===void 0){if(r===null){return r}throw Error("A case reducer on a non-draftable value must not return undefined")}return i}else{return ar(r,(function(r){return t(r,n)}))}}return r}),r)}a.getInitialState=o;return a}var Sr=Symbol.for("rtk-slice-createasyncthunk");function Mr(r,n){return"".concat(r,"/").concat(n)}function Ir(r){var n;var t=r===void 0?{}:r,e=t.creators;var i=(n=e===null||e===void 0?void 0:e.asyncThunk)===null||n===void 0?void 0:n[Sr];return function r(n){var t=n.name,e=n.reducerPath,u=e===void 0?t:e;if(!t){throw new Error(Br(11))}var o=(typeof n.reducers==="function"?n.reducers(Nr()):n.reducers)||{};var f=Object.keys(o);var a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]};var c={addCase:function(r,n){var t=typeof r==="string"?r:r.type;if(!t){throw new Error(Br(12))}if(t in a.sliceCaseReducersByType){throw new Error(Br(13))}a.sliceCaseReducersByType[t]=n;return c},addMatcher:function(r,n){a.sliceMatchers.push({matcher:r,reducer:n});return c},exposeAction:function(r,n){a.actionCreators[r]=n;return c},exposeCaseReducer:function(r,n){a.sliceCaseReducersByName[r]=n;return c}};f.forEach((function(r){var e=o[r];var u={reducerName:r,type:Mr(t,r),createNotation:typeof n.reducers==="function"};if(Tr(e)){Wr(u,e,c,i)}else{Rr(u,e,c)}}));function v(){var r=typeof n.extraReducers==="function"?Er(n.extraReducers):[n.extraReducers],t=r[0],e=t===void 0?{}:t,i=r[1],u=i===void 0?[]:i,o=r[2],f=o===void 0?void 0:o;var c=__assign(__assign({},e),a.sliceCaseReducersByType);return Ar(n.initialState,(function(r){for(var n in c){r.addCase(n,c[n])}for(var t=0,e=a.sliceMatchers;t<e.length;t++){var i=e[t];r.addMatcher(i.matcher,i.reducer)}for(var o=0,v=u;o<v.length;o++){var s=v[o];r.addMatcher(s.matcher,s.reducer)}if(f){r.addDefaultCase(f)}}))}var s=function(r){return r};var d=new Map;var l=new WeakMap;var p;function y(r,n){if(!p)p=v();return p(r,n)}function h(){if(!p)p=v();return p.getInitialState()}function w(r,t){if(t===void 0){t=false}function e(n){var i=n[r];if(typeof i==="undefined"){if(t){i=hr(l,e,h)}}return i}function i(r){if(r===void 0){r=s}var e=hr(d,t,(function(){return new WeakMap}));return hr(e,r,(function(){var e;var i={};for(var u=0,o=Object.entries((e=n.selectors)!==null&&e!==void 0?e:{});u<o.length;u++){var f=o[u],a=f[0],c=f[1];i[a]=kr(c,r,(function(){return hr(l,r,h)}),t)}return i}))}return{reducerPath:r,getSelectors:i,get selectors(){return i(e)},selectSlice:e}}var _=__assign(__assign({name:t,reducer:y,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h},w(u)),{injectInto:function(r,n){if(n===void 0){n={}}var t=n.reducerPath,e=__rest(n,["reducerPath"]);var i=t!==null&&t!==void 0?t:u;r.inject({reducerPath:i,reducer:y},e);return __assign(__assign({},_),w(i,true))}});return _}}function kr(r,n,t,e){function i(i){var u=[];for(var o=1;o<arguments.length;o++){u[o-1]=arguments[o]}var f=n(i);if(typeof f==="undefined"){if(e){f=t()}}return r.apply(void 0,__spreadArray([f],u,false))}i.unwrapped=r;return i}var xr=r("c",Ir());function Nr(){function r(r,n){return __assign({_reducerDefinitionType:"asyncThunk",payloadCreator:r},n)}r.withTypes=function(){return r};return{reducer:function(r){var n;return Object.assign((n={},n[r.name]=function(){var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}return r.apply(void 0,n)},n)[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer:function(r,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:n}},asyncThunk:r}}function Rr(r,n,t){var e=r.type,i=r.reducerName,u=r.createNotation;var o;var f;if("reducer"in n){if(u&&!Cr(n)){throw new Error(Br(17))}o=n.reducer;f=n.prepare}else{o=n}t.addCase(e,o).exposeCaseReducer(i,o).exposeAction(i,f?lr(e,f):lr(e))}function Tr(r){return r._reducerDefinitionType==="asyncThunk"}function Cr(r){return r._reducerDefinitionType==="reducerWithPrepare"}function Wr(r,n,t,e){var i=r.type,u=r.reducerName;if(!e){throw new Error(Br(18))}var o=n.payloadCreator,f=n.fulfilled,a=n.pending,c=n.rejected,v=n.settled,s=n.options;var d=e(i,o,s);t.exposeAction(u,d);if(f){t.addCase(d.fulfilled,f)}if(a){t.addCase(d.pending,a)}if(c){t.addCase(d.rejected,c)}if(v){t.addMatcher(d.settled,v)}t.exposeCaseReducer(u,{fulfilled:f||Dr,pending:a||Dr,rejected:c||Dr,settled:v||Dr})}function Dr(){}function Br(r){return"Minified Redux Toolkit error #".concat(r,"; visit https://redux-toolkit.js.org/Errors?code=").concat(r," for the full message or use the non-minified dev environment for full errors. ")}var Kr={itemId:-1,items:[],productId:-1,products:[],isModalOpenEventSent:false,isNextEnable:true};var zr=xr({name:"popup",initialState:Kr,reducers:{setPopupItemId:function(r,n){r.itemId=n.payload},setPopupItems:function(r,n){r.items=n.payload},setIsModalOpenEventSent:function(r,n){r.isModalOpenEventSent=n.payload},updatePopItemLink:function(r,n){var t=n.payload,e=t.itemId,i=t.linkId,u=t.properties;var o=r.items.find((function(r){return r.id===e}));var f=o.links.findIndex((function(r){return r.id===i}));var a=o.links[f];o.links[f]=Object.assign({},a,u)},changePopupItem:function(r,n){var t=n.payload;var e=r.items.findIndex((function(n){return n.id===r.itemId}));if(t==="next"&&e<r.items.length){r.itemId=r.items[e+1].id}if(t==="previous"&&e>0){r.itemId=r.items[e-1].id}},setPopupProductId:function(r,n){r.productId=n.payload},setProducts:function(r,n){r.products=n.payload}}});var Fr=zr.actions,Lr=Fr.setPopupItemId,Ur=Fr.setPopupItems,qr=Fr.updatePopItemLink,Xr=Fr.changePopupItem,Gr=Fr.setProducts,Hr=Fr.setPopupProductId,Jr=Fr.setIsModalOpenEventSent;r({d:Lr,s:Ur,u:qr,f:Xr,m:Gr,e:Hr,g:Jr});var Qr=r("p",zr.reducer);var Vr=r("h",(function(r){var n=r.popup.items.find((function(n){return n.id===r.popup.itemId}));return n!==undefined?n:null}));var Yr=r("n",(function(r){return __spreadArray([],r.popup.items.filter((function(r){return r.source!=="upload_widget"})),true)}));var Zr=r("i",(function(r){var n=r.popup.products.find((function(n){return n.id===r.popup.productId}));return n!==undefined?n:null}));var $r=r("j",(function(r){return r.popup.productId!==-1}));var rn=r("k",(function(r){var n=r.popup.items.findIndex((function(n){return n.id===r.popup.itemId}));var t=r.popup.items[n-1];return t&&t.source!=="upload_widget"}));var nn=r("l",(function(r){var n=r.popup.items.findIndex((function(n){return n.id===r.popup.itemId}));var t=r.popup.items[n+1];return t&&t.source!=="upload_widget"}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
System.register([],(function(e){"use strict";return{execute:function(){e("g",t);var n=e("c",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(n,r,t){if(t||arguments.length===2)for(var i=0,e=r.length,a;i<e;i++){if(a||!(i in r)){if(!a)a=Array.prototype.slice.call(r,0,i);a[i]=r[i]}}return n.concat(a||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/System.register(["./p-CQOhOWMI.system.js"],(function(n){"use strict";var r,t;return{setters:[function(n){r=n.m;t=n.c}],execute:function(){n("N",i);function i(n){var i=n.swiper,e=n.extendParams,a=n.on,u=n.emit;e({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});i.navigation={nextEl:null,prevEl:null};function f(n){var r;if(n&&typeof n==="string"&&i.isElement){r=i.el.querySelector(n)||i.hostEl.querySelector(n);if(r)return r}if(n){if(typeof n==="string")r=__spreadArray([],document.querySelectorAll(n),true);if(i.params.uniqueNavElements&&typeof n==="string"&&r&&r.length>1&&i.el.querySelectorAll(n).length===1){r=i.el.querySelector(n)}else if(r&&r.length===1){r=r[0]}}if(n&&!r)return n;return r}function o(n,t){var e=i.params.navigation;n=r(n);n.forEach((function(n){var r;if(n){(r=n.classList)[t?"add":"remove"].apply(r,e.disabledClass.split(" "));if(n.tagName==="BUTTON")n.disabled=t;if(i.params.watchOverflow&&i.enabled){n.classList[i.isLocked?"add":"remove"](e.lockClass)}}}))}function s(){var n=i.navigation,r=n.nextEl,t=n.prevEl;if(i.params.loop){o(t,false);o(r,false);return}o(t,i.isBeginning&&!i.params.rewind);o(r,i.isEnd&&!i.params.rewind)}function c(n){n.preventDefault();if(i.isBeginning&&!i.params.loop&&!i.params.rewind)return;i.slidePrev();u("navigationPrev")}function l(n){n.preventDefault();if(i.isEnd&&!i.params.loop&&!i.params.rewind)return;i.slideNext();u("navigationNext")}function v(){var n=i.params.navigation;i.params.navigation=t(i,i.originalParams.navigation,i.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(n.nextEl||n.prevEl))return;var e=f(n.nextEl);var a=f(n.prevEl);Object.assign(i.navigation,{nextEl:e,prevEl:a});e=r(e);a=r(a);var u=function(r,t){var e;if(r){r.addEventListener("click",t==="next"?l:c)}if(!i.enabled&&r){(e=r.classList).add.apply(e,n.lockClass.split(" "))}};e.forEach((function(n){return u(n,"next")}));a.forEach((function(n){return u(n,"prev")}))}function d(){var n=i.navigation,t=n.nextEl,e=n.prevEl;t=r(t);e=r(e);var a=function(n,r){var t;n.removeEventListener("click",r==="next"?l:c);(t=n.classList).remove.apply(t,i.params.navigation.disabledClass.split(" "))};t.forEach((function(n){return a(n,"next")}));e.forEach((function(n){return a(n,"prev")}))}a("init",(function(){if(i.params.navigation.enabled===false){b()}else{v();s()}}));a("toEdge fromEdge lock unlock",(function(){s()}));a("destroy",(function(){d()}));a("enable disable",(function(){var n=i.navigation,t=n.nextEl,e=n.prevEl;t=r(t);e=r(e);if(i.enabled){s();return}__spreadArray(__spreadArray([],t,true),e,true).filter((function(n){return!!n})).forEach((function(n){return n.classList.add(i.params.navigation.lockClass)}))}));a("click",(function(n,t){var e=i.navigation,a=e.nextEl,f=e.prevEl;a=r(a);f=r(f);var o=t.target;var s=f.includes(o)||a.includes(o);if(i.isElement&&!s){var c=t.path||t.composedPath&&t.composedPath();if(c){s=c.find((function(n){return a.includes(n)||f.includes(n)}))}}if(i.params.navigation.hideOnClick&&!s){if(i.pagination&&i.params.pagination&&i.params.pagination.clickable&&(i.pagination.el===o||i.pagination.el.contains(o)))return;var l=void 0;if(a.length){l=a[0].classList.contains(i.params.navigation.hiddenClass)}else if(f.length){l=f[0].classList.contains(i.params.navigation.hiddenClass)}if(l===true){u("navigationShow")}else{u("navigationHide")}__spreadArray(__spreadArray([],a,true),f,true).filter((function(n){return!!n})).forEach((function(n){return n.classList.toggle(i.params.navigation.hiddenClass)}))}}));var p=function(){var n;(n=i.el.classList).remove.apply(n,i.params.navigation.navigationDisabledClass.split(" "));v();s()};var b=function(){var n;(n=i.el.classList).add.apply(n,i.params.navigation.navigationDisabledClass.split(" "));d()};Object.assign(i.navigation,{enable:p,disable:b,update:s,init:v,destroy:d})}}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
System.register([],(function(t){"use strict";return{execute:function(){function e(){var t=document.querySelectorAll(".covet-pics-gallery");t.forEach((function(t){var e=document.createElement("covet-pics-widget"),i=t.getAttribute("data-id"),r=t.getAttribute("data-shop"),u=t.getAttribute("data-product");if(i!==null){e.setAttribute("gallery-embed-id",i)}else if(r!==null){e.setAttribute("shop",r);if(u!==null){e.setAttribute("data-product",u)}}else{return true}var a,n;for(a=0;a<t.attributes.length;++a){n=t.attributes[a];if(n.name.startsWith("widget")){var c=n.name.replace(/^widget\-/,"");e.setAttribute(c,n.value)}}t.appendChild(e)}))}var i=t("g",e)}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-CINH_0E4.system.js","./p-Bm6-W0wN.system.js","./p-BfpfyqAf.system.js","./p-B79ERe1V.system.js","./p-CQOhOWMI.system.js","./p-DgaiJISy.system.js","./p-CQZnM5Xd.system.js","./p-BV-IrE-J.system.js","./p-C7O2k9vv.system.js"],(function(t){"use strict";var i,e,a,o,r,n,s,l,p,c,d,h,u,g,f,m,b,x;return{setters:[function(t){i=t.r;e=t.c;a=t.h;o=t.H;r=t.g;n=t.F},function(t){s=t.g;l=t.s},function(t){p=t.g},function(t){c=t.s},function(t){d=t.g;h=t.f;u=t.S;g=t.A},function(t){f=t.N},function(t){m=t.P},function(t){b=t.f},function(t){x=t.s}],execute:function(){function w(t){var i=t.effect,e=t.swiper,a=t.on,o=t.setTranslate,r=t.setTransition,n=t.overwriteParams,s=t.perspective,l=t.recreateShadows,p=t.getEffectParams;a("beforeInit",(function(){if(e.params.effect!==i)return;e.classNames.push("".concat(e.params.containerModifierClass).concat(i));if(s&&s()){e.classNames.push("".concat(e.params.containerModifierClass,"3d"))}var t=n?n():{};Object.assign(e.params,t);Object.assign(e.originalParams,t)}));a("setTranslate",(function(){if(e.params.effect!==i)return;o()}));a("setTransition",(function(t,a){if(e.params.effect!==i)return;r(a)}));a("transitionEnd",(function(){if(e.params.effect!==i)return;if(l){if(!p||!p().slideShadows)return;e.slides.forEach((function(t){t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((function(t){return t.remove()}))}));l()}}));var c;a("virtualUpdate",(function(){if(e.params.effect!==i)return;if(!e.slides.length){c=true}requestAnimationFrame((function(){if(c&&e.slides&&e.slides.length){o();c=false}}))}))}function v(t,i){var e=d(i);if(e!==i){e.style.backfaceVisibility="hidden";e.style["-webkit-backface-visibility"]="hidden"}return e}function y(t){var i=t.swiper,e=t.duration,a=t.transformElements;if(i.params.virtualTranslate&&e!==0){var o=false;var r=void 0;{r=a}r.forEach((function(t){h(t,(function(){if(o)return;if(!i||i.destroyed)return;o=true;i.animating=false;var t=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});i.wrapperEl.dispatchEvent(t)}))}))}}function k(t){var i=t.swiper,e=t.extendParams,a=t.on;e({fadeEffect:{crossFade:false}});var o=function(){var t=i.slides;var e=i.params.fadeEffect;for(var a=0;a<t.length;a+=1){var o=i.slides[a];var r=o.swiperSlideOffset;var n=-r;if(!i.params.virtualTranslate)n-=i.translate;var s=0;if(!i.isHorizontal()){s=n;n=0}var l=i.params.fadeEffect.crossFade?Math.max(1-Math.abs(o.progress),0):1+Math.min(Math.max(o.progress,-1),0);var p=v(e,o);p.style.opacity=l;p.style.transform="translate3d(".concat(n,"px, ").concat(s,"px, 0px)")}};var r=function(t){var e=i.slides.map((function(t){return d(t)}));e.forEach((function(i){i.style.transitionDuration="".concat(t,"ms")}));y({swiper:i,duration:t,transformElements:e})};w({effect:"fade",swiper:i,on:a,setTranslate:o,setTransition:r,overwriteParams:function(){return{slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:true,spaceBetween:0,virtualTranslate:!i.params.cssMode}}})}var z='.hotspots{position:absolute;width:100%;height:100%;z-index:2;pointer-events:none}.hotspot{display:inline-block;width:48px;height:48px;border-radius:50%;position:absolute;outline:none !important;visibility:visible;pointer-events:initial}.hotspot:after{content:"";position:absolute;width:16px;height:16px;-webkit-transition:all 0.2s ease-out;transition:all 0.2s ease-out;display:inline-block;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);background-color:var(--covet-pics-highlighted-hotspot-bg-color);border-radius:50%}.hotspot:before{content:"";position:absolute;width:100%;height:100%;top:0;left:0;border-radius:50%;will-change:transform;background-color:var(--covet-pics-highlighted-hotspot-bg-color);opacity:0.3}.hotspot.active:before{-webkit-animation:pulsateZoom 1.2s ease-in-out infinite;animation:pulsateZoom 1.2s ease-in-out infinite}.hotspot.active.show-content .content{z-index:1;visibility:visible}.hotspot.active.show-content .content-animation{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.hotspot .content{display:block;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-webkit-transform-origin:center center;transform-origin:center center;z-index:-1;visibility:hidden}.hotspot .content-animation{display:block;height:100%;width:240px;-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out;position:relative;-webkit-transform:translateY(8px);transform:translateY(8px);-webkit-transform-origin:center center;transform-origin:center center;padding:24px;background-color:var(--covet-pics-highlighted-background-color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;border-radius:2px;-webkit-box-shadow:4px 8px 24px 0px rgba(132, 132, 132, 0.2);box-shadow:4px 8px 24px 0px rgba(132, 132, 132, 0.2);opacity:0}.hotspot .content-animation.hotspot-short{width:320px;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;padding:16px;border-radius:2px}.hotspot .description{display:block}.hotspot .description.hotspot-short{width:calc(100% - 32px - 16px);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}.hotspot .main-title{width:144px;text-align:center;margin-left:auto;margin-right:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:16px;line-height:22px;font-weight:400;color:var(--covet-pics-highlighted-primary-color);margin-bottom:16px;text-transform:uppercase}.hotspot .img-wrap{height:144px;width:144px;position:relative;display:-ms-flexbox;display:flex;margin-left:auto;margin-right:auto;margin-bottom:16px;-ms-flex:none;flex:none}.hotspot .img-wrap.hotspot-short{width:88px;height:88px;margin-right:16px;margin-bottom:0}.hotspot .img{width:100%;-o-object-fit:cover;object-fit:cover}.hotspot .title{width:100%;text-align:center;margin-left:auto;margin-right:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;text-transform:uppercase;font-weight:400;line-height:19px;color:var(--covet-pics-highlighted-secondary-color);margin-bottom:8px}.hotspot .title.hotspot-short{font-size:14px;line-height:1;width:184px;text-align:left}.hotspot .price{text-align:center;font-size:14px;text-transform:uppercase;color:var(--covet-pics-highlighted-primary-color);font-size:14px;line-height:19px;width:100%;margin-left:auto;margin-right:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-bottom:16px}.hotspot .price.hotspot-short{margin-bottom:0;width:184px;text-align:left}.hotspot .btn-buy{font-family:var(--covet-font-family);display:block;line-height:1;padding:15px 15px;margin-left:auto;margin-right:auto;width:100%;font-size:12px;text-transform:uppercase;text-align:center;cursor:pointer;background-color:transparent;border:1px solid var(--covet-pics-highlighted-primary-color);color:var(--covet-pics-highlighted-primary-color);margin-bottom:0;-webkit-transition:all 0.4s ease;transition:all 0.4s ease;outline:none !important}.hotspot .btn-buy:hover,.hotspot .btn-buy:active,.hotspot .btn-buy:focus,.hotspot .btn-buy.active{border:1px solid var(--covet-pics-highlighted-primary-color);color:var(--covet-pics-highlighted-background-color);background-color:var(--covet-pics-highlighted-primary-color)}.hotspot .btn-buy.hotspot-short{margin-top:auto;border:none;width:auto;padding:0 0 8px 0;font-size:14px;position:relative;overflow:hidden;margin-left:0}.hotspot .btn-buy.hotspot-short:after{content:"";position:absolute;display:block;bottom:0;left:50%;width:100%;height:1px;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all 0.4s ease;transition:all 0.4s ease;background-color:var(--covet-pics-highlighted-primary-color)}.hotspot .btn-buy.hotspot-short:hover,.hotspot .btn-buy.hotspot-short:active,.hotspot .btn-buy.hotspot-short:focus,.hotspot .btn-buy.hotspot-short.active{border:none;background-color:transparent;color:var(--covet-pics-highlighted-primary-color)}.hotspot .btn-buy.hotspot-short:hover:after,.hotspot .btn-buy.hotspot-short:active:after,.hotspot .btn-buy.hotspot-short:focus:after,.hotspot .btn-buy.hotspot-short.active:after{-webkit-transform:translateX(-50%);transform:translateX(-50%);width:80%}@-webkit-keyframes pulsateZoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes pulsateZoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}100%{-webkit-transform:scale(1);transform:scale(1)}}';var E=t("covet_pics_highlighted_hotspots",function(){function t(t){i(this,t);this.changeActiveHotspot=e(this,"changeActiveHotspot",7);this.links=[];this.activeHotspot=0;this.hoverHotspot=-1}t.prototype.refreshHotspot=function(t,i){if(t!==i){this.clearAllActiveHotspot();this.clearAllActiveHotspotContent();if(this.pageLayout==="row")this.setPositionAllHotspotContent()}};t.prototype.activeHotspotHandler=function(t,i){if(t===i)return true;this.setActiveHotspot(t)};t.prototype.componentWillLoad=function(){this.initStore()};t.prototype.componentDidLoad=function(){if(this.pageLayout==="row")this.setPositionAllHotspotContent()};t.prototype.componentDidRender=function(){if(this.pageLayout!=="row")this.setActiveHotspot(this.activeHotspot)};t.prototype.disconnectedCallback=function(){this.unsubscribe()};t.prototype.initStore=function(){var t=this;this.appState=this.appStore.getState();this.layout=this.appState.settings.highlight_hotspots_layout;this.pageLayout=this.appState.settings.highlight_layout;this.unsubscribe=this.appStore.subscribe((function(){t.appState=t.appStore.getState();t.layout=t.appState.settings.highlight_hotspots_layout;t.pageLayout=t.appState.settings.highlight_layout}))};t.prototype.getPositionForLink=function(t){return{left:(t.position_x*100).toString()+"%",top:(t.position_y*100).toString()+"%"}};t.prototype.setPositionForLinkContent=function(t){var i=t.parentElement;var e=t.querySelector(".content");var a=8;var o=s(t,"width");var r=s(t,"x")-s(i,"x")+o/2;var n=s(i,"x");var l=s(i,"y");var p=s(i,"x")+s(i,"width");var c=s(i,"y")+s(i,"height");var d=o/2+a;var h=n-(s(t,"x")+o/2-s(e,"width")/2);var u=s(t,"x")+o/2+s(e,"width")/2-p;var g=n-(s(t,"x")-a-s(e,"width"));var f=s(t,"x")+o+a+s(e,"width")-p;var m=l-(s(t,"y")-a-s(e,"height"));var b=s(t,"y")+o+a+s(e,"height")-c;var x=s(e,"height")+2*a<s(i,"height");if(b<0&&h<0&&u<0){e.style.transform="translate(-50%, calc(-50% + ".concat(s(e,"height")/2+d,"px)");return e}if(b<0){r<s(i,"width")/2?e.style.transform="translate(calc(-50% + ".concat(h+a,"px), calc(-50% + ").concat(s(e,"height")/2+d,"px)"):e.style.transform="translate(calc(-50% - ".concat(u+a,"px), calc(-50% + ").concat(s(e,"height")/2+d,"px)");return e}if(b>0&&g<0&&f<0&&x){r<s(i,"width")/2?e.style.transform="translate(calc(-50% + ".concat(s(e,"width")/2+d,"px), calc(-50% + ").concat(s(e,"height")/2+d-a,"px - ").concat(b,"px)"):e.style.transform="translate(calc(-50% - ".concat(s(e,"width")/2+d,"px), calc(-50% + ").concat(s(e,"height")/2+d-a,"px - ").concat(b,"px)");return e}if(b>0&&g<0&&x){e.style.transform="translate(calc(-50% - ".concat(s(e,"width")/2+d,"px), calc(-50% + ").concat(s(e,"height")/2+d-a,"px - ").concat(b,"px)");return e}if(b>0&&f<0&&x){e.style.transform="translate(calc(-50% + ".concat(s(e,"width")/2+d,"px), calc(-50% + ").concat(s(e,"height")/2+d-a,"px - ").concat(b,"px)");return e}if(b>0&&g>0&&f>0&&m<0){e.style.transform="translate(-50%, calc(-50% - ".concat(s(e,"height")/2+a,"px)");if(r<s(i,"width")/2&&g){e.style.transform="translate(calc(-50% + ".concat(h+a,"px), calc(-50% - ").concat(s(e,"height")/2+d,"px)")}if(r>s(i,"width")/2&&f){e.style.transform="translate(calc(-50% - ".concat(u+a,"px), calc(-50% - ").concat(s(e,"height")/2+d,"px)")}return e}e.style.transform="translate(-50%, calc(-50% + ".concat(s(e,"height")/2+d,"px");if(r<s(i,"width")/2){h>0?e.style.transform="translate(calc(-50% + ".concat(h+a,"px), calc(-50% + ").concat(s(e,"height")/2+d,"px)"):e.style.transform="translate(-50%, calc(-50% + ".concat(s(e,"height")/2+d,"px")}else{u>0?e.style.transform="translate(calc(-50% - ".concat(u+a,"px), calc(-50% + ").concat(s(e,"height")/2+d,"px)"):e.style.transform="translate(-50%, calc(-50% + ".concat(s(e,"height")/2+d,"px")}return e};t.prototype.mouseClickHandler=function(t,i){if(this.isMobile&&this.pageLayout!=="row"&&i!==this.activeHotspot)return this.mouseEnterHandler(t,i);if(this.isMobile&&this.pageLayout==="row"&&!t.currentTarget.classList.contains("active"))return this.mouseEnterHandler(t,i);var e=t.currentTarget.getAttribute("data-ga-campaign");if(p(this.appState)){var a="Covet.pics Popup";var o="Covet.pics Link Click";var r="Covet.pics Link Click - "+e;l(o,a,r)}var n=t.currentTarget.getAttribute("data-link-id");var s={gallery_item_id:this.pageId,product_id:n};c(this.appState,"grid_link_click",s);return null};t.prototype.mouseEnterHandler=function(t,i){t.preventDefault();t.stopPropagation();this.clearAllActiveHotspot();this.setActiveHotspot(i);if(this.pageLayout==="row")this.setPositionForLinkContent(this.el.querySelectorAll(".hotspot")[i]);if(i!==this.activeHotspot)this.changeActiveHotspot.emit(i);return t.currentTarget.classList.add("active","show-content")};t.prototype.mouseLeaveHandler=function(t){t.preventDefault();t.stopPropagation();return this.clearAllActiveHotspotContent()};t.prototype.clearAllActiveHotspot=function(){return this.el.querySelectorAll(".hotspot").forEach((function(t){t.classList.remove("active")}))};t.prototype.clearAllActiveHotspotContent=function(){var t=this;return this.el.querySelectorAll(".hotspot").forEach((function(i){t.setContentHidden(i,true);i.classList.remove("show-content")}))};t.prototype.setActiveHotspot=function(t){if(this.el.querySelectorAll(".hotspot").length<t+1)return true;this.clearAllActiveHotspot();var i=this.el.querySelectorAll(".hotspot")[t];this.setContentHidden(i,false);return i.classList.add("active")};t.prototype.setContentHidden=function(t,i){var e=t.querySelector(".content");if(e===null)return false;return e.setAttribute("aria-hidden","".concat(i))};t.prototype.setPositionAllHotspotContent=function(){var t=this;var i=this.el.querySelectorAll(".hotspot");i.forEach((function(i){return t.setPositionForLinkContent(i)}));return i.forEach((function(i){return t.setPositionForLinkContent(i)}))};t.prototype.imgAlt=function(t,i,e){return t.title?"".concat(t.title," product-slide ").concat(i+1,"/").concat(e," ").concat(this.productBaseImgAlt):"product-slide ".concat(i+1,"/").concat(e," ").concat(this.productBaseImgAlt)};t.prototype.render=function(){var t=this;return a(o,{key:"329f3fc606cb72088af2fa5f5490685fea22aa7a",class:"hotspots"},this.links.map((function(i,e){return a("a",{href:i.link,class:"hotspot ".concat(t.layout," ").concat(t.hoverHotspot===e?"hover-animate":""),style:t.getPositionForLink(i),"data-ga-campaign":i.title,"data-link-id":i.id,onClick:function(i){return t.mouseClickHandler(i,e)},onMouseEnter:function(i){return!t.isMobile?t.mouseEnterHandler(i,e):null},onFocusin:function(i){return!t.isMobile?t.mouseEnterHandler(i,e):null},onMouseLeave:function(i){return!t.isMobile?t.mouseLeaveHandler(i):null},onFocusout:function(i){return!t.isMobile?t.mouseLeaveHandler(i):null},"aria-label":"".concat(i.title?i.title:"product link")},t.pageLayout==="row"&&a("div",{class:"content","aria-hidden":"true"},a("div",{class:"content-animation ".concat(t.layout)},t.layout==="hotspot-tall"&&a("h3",{class:"main-title ".concat(t.layout)},t.appState.settings.popup_products_title),a("div",{class:"img-wrap ".concat(t.layout)},a("img",{src:i.image,alt:t.imgAlt(i,e,t.links.length),class:"img"})),a("div",{class:"description ".concat(t.layout)},a("h4",{class:"title ".concat(t.layout)},i.title),i.prices&&i.prices.price_label&&a("p",{class:"price ".concat(t.layout),innerHTML:i.prices.price_label}),a("button",{class:"btn-buy ".concat(t.layout),"aria-label":t.appState.settings.popup_products_button_caption,type:"button"},t.appState.settings.popup_products_button_caption)))))})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{thumbnailUrl:["refreshHotspot"],activeHotspot:["activeHotspotHandler"]}},enumerable:false,configurable:true});return t}());E.style=z;var C=".thumbnail{display:-ms-flexbox;display:flex;width:50%;height:100%;position:relative;overflow:hidden}.thumbnail[is-loading]{background-image:linear-gradient(120deg, #DFE3E8, #F9FAFB);-webkit-animation:pulsate 2s ease-in-out infinite;animation:pulsate 2s ease-in-out infinite}.thumbnail.spotlight{width:100%;height:60%;overflow:hidden}@media only screen and (max-width: 799.98px){.thumbnail.spotlight{width:100%;height:calc(100vh - 186px);height:calc(var(--covet-pics-highlighted-window-height, 1vh) * 100 - 186px)}}.thumbnail.reverse{-ms-flex-order:2;order:2}@media only screen and (max-width: 799.98px){.thumbnail.zigzag{width:100%;height:auto}}.thumbnail.zigzag.layout-3{width:50%;height:100%}@media only screen and (max-width: 799.98px){.thumbnail.zigzag.layout-3{width:100%;height:auto}}.thumbnail.zigzag.layout-3.reverse{width:50%;height:100%}@media only screen and (max-width: 799.98px){.thumbnail.zigzag.layout-3.reverse{width:100%;height:auto}}.thumbnail.row{width:100%}.thumbnail.slider{overflow:hidden}@media only screen and (max-width: 799.98px){.thumbnail.slider{width:100%;height:calc(100% - 186px)}}.thumbnail.slider:after{display:none}.thumbnail-carousel{width:100%;height:100%;overflow:hidden}.thumbnail-slide-wrap{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.thumbnail-video-wrap{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;position:relative}.thumbnail-video-wrap .thumbnail-video-pause{display:none}.thumbnail-video-wrap.playing .thumbnail-video-play{display:none}.thumbnail-video-wrap.playing .thumbnail-video-pause{display:block}.thumbnail-video-play{border:none;outline:none !important;position:absolute;top:50%;width:100px;height:100px;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);cursor:pointer;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1585.982 6.353 864 864'%3E%3Cpath opacity='.6' fill='%23231F20' d='M2017.982 6.353c-238.592 0-432 193.409-432 432 0 238.592 193.408 432 432 432 238.591 0 432-193.408 432-432 0-238.591-193.409-432-432-432z'/%3E%3Cpath fill='%23FFF' d='M1910.997 656.622l293.971-219.27-293.971-219.269z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;background-color:transparent;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease}.thumbnail-video-play:hover,.thumbnail-video-play:active,.thumbnail-video-play:focus{-webkit-transform:translate(-50%, -50%) scale(1.1);transform:translate(-50%, -50%) scale(1.1)}.thumbnail-video-pause{border:none;outline:none !important;position:absolute;width:100px;height:100px;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);cursor:pointer;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease;background-color:rgba(35, 35, 31, 0.6);border-radius:50%;transition:transform 0.25s ease;opacity:0}.thumbnail-video-pause::after{content:\"\";height:50%;width:4px;position:absolute;left:50%;top:50%;background-color:#FFFFFF;-webkit-transform:translate(calc(-100% - 3px), -50%);transform:translate(calc(-100% - 3px), -50%)}.thumbnail-video-pause::before{content:\"\";height:50%;width:4px;position:absolute;right:50%;top:50%;background-color:#FFFFFF;-webkit-transform:translate(calc(100% + 3px), -50%);transform:translate(calc(100% + 3px), -50%)}.thumbnail-video-pause:hover,.thumbnail-video-pause:active,.thumbnail-video-pause:focus{-webkit-transform:translate(-50%, -50%) scale(1.1);transform:translate(-50%, -50%) scale(1.1);opacity:1}.caption{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;width:100%;height:60%;bottom:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:60px;padding-left:60px;padding-right:60px}.caption:before{content:\"\";display:block;position:absolute;width:100%;height:100%;left:0;bottom:0;background:-webkit-gradient(linear, left bottom, left top, from(rgba(5, 5, 5, 0.7833727241)), to(rgba(255, 255, 255, 0)));background:linear-gradient(0deg, rgba(5, 5, 5, 0.7833727241) 0%, rgba(255, 255, 255, 0) 100%)}.caption .position-star{position:relative;z-index:1}.caption.slider.layout-3{-ms-flex-align:start;align-items:flex-start;padding-right:100px;padding-bottom:20px}@media only screen and (max-width: 799.98px){.caption.slider.layout-3{padding-right:30px;padding-left:30px}}.caption.slider.text-review{-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-top:40px;height:100%}.caption.slider.text-review::before{background:#EEEEEE}.caption.zigzag.layout-3{-ms-flex-align:start;align-items:flex-start;padding-right:100px;padding-bottom:20px}@media only screen and (max-width: 799.98px){.caption.zigzag.layout-3{padding-right:30px;padding-left:30px}}.caption.layout-3.reverse{-ms-flex-align:end;align-items:flex-end;padding-left:100px;padding-right:60px;padding-bottom:20px}.caption.row{-ms-flex-pack:start;justify-content:flex-start;height:45%;padding-left:30px;padding-right:30px}.caption.spotlight.layout-4{top:0;height:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-top:20px;padding-bottom:10px}.caption.spotlight.layout-4:before{background:-webkit-gradient(linear, left top, left bottom, from(rgba(5, 5, 5, 0.7833727241)), to(rgba(255, 255, 255, 0)));background:linear-gradient(180deg, rgba(5, 5, 5, 0.7833727241) 0%, rgba(255, 255, 255, 0) 100%)}@media only screen and (max-width: 799.98px){.caption.spotlight.layout-4{padding-right:30px;padding-left:30px}}.caption.spotlight.text-review{top:0;height:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding-top:20px;padding-bottom:60px}.caption.spotlight.text-review:before{background:#EEEEEE}@media only screen and (max-width: 799.98px){.caption.spotlight.text-review{height:100%;padding-bottom:10px}}.caption.zigzag.text-review{position:relative;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-top:40px;height:100%}@media only screen and (max-width: 799.98px){.caption.zigzag.text-review{height:65vh}}.caption.zigzag.text-review:before{background:#EEEEEE}.caption.row.text-review{position:relative;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-top:40px;height:100%}@media only screen and (max-width: 799.98px){.caption.row.text-review{height:90vh}}.caption.row.text-review:before{background:#EEEEEE}.caption.video{padding-top:40px;height:calc(50% - 50px)}.caption.video:before{background:-webkit-gradient(linear, left bottom, left top, color-stop(49%, rgb(0, 0, 0)), color-stop(66%, rgba(0, 0, 0, 0.7833727241)), color-stop(74%, rgba(1, 1, 1, 0.6853335084)), color-stop(83%, rgba(2, 2, 2, 0.5144651611)), to(rgba(5, 5, 5, 0)));background:linear-gradient(0deg, rgb(0, 0, 0) 49%, rgba(0, 0, 0, 0.7833727241) 66%, rgba(1, 1, 1, 0.6853335084) 74%, rgba(2, 2, 2, 0.5144651611) 83%, rgba(5, 5, 5, 0) 100%)}.caption.spotlight.video{padding-top:20px;height:calc(50% - 50px)}.caption.spotlight.video:before{background:-webkit-gradient(linear, left top, left bottom, color-stop(49%, rgb(0, 0, 0)), color-stop(66%, rgba(0, 0, 0, 0.7833727241)), color-stop(74%, rgba(1, 1, 1, 0.6853335084)), color-stop(83%, rgba(2, 2, 2, 0.5144651611)), to(rgba(5, 5, 5, 0)));background:linear-gradient(180deg, rgb(0, 0, 0) 49%, rgba(0, 0, 0, 0.7833727241) 66%, rgba(1, 1, 1, 0.6853335084) 74%, rgba(2, 2, 2, 0.5144651611) 83%, rgba(5, 5, 5, 0) 100%)}.caption.slider.star-only{bottom:0;height:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-top:0}.caption.slider.star-only:before{height:200%;background:#EEEEEE}.caption.zigzag.star-only{bottom:0;height:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding-top:0}.caption.zigzag.star-only:before{height:200%;background:#EEEEEE}.caption.row.star-only{bottom:0;height:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding-top:0}.caption.row.star-only:before{height:200%;background:#EEEEEE}.caption.spotlight.star-only{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%}.caption.spotlight.star-only:before{background:#EEEEEE}.caption .caption-text{position:relative;text-align:center;overflow:auto;z-index:1;margin-top:10px;font-size:14px;color:#ffffff;padding-right:13px}.caption .caption-text.layout-3{text-align:start}.caption .caption-text.row.layout-3{text-align:center}.caption .caption-text.spotlight.layout-4{width:70%;text-align:center}.caption .caption-text.text-review{width:80%;color:#101010;text-align:center}.caption .bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-bottom:30px;position:relative;z-index:1;color:#ffffff}.caption .bottom.text-review{color:#101010;margin-top:0}.caption .bottom.row.review{margin-top:auto}.caption .bottom.zigzag.star-only{margin-top:auto;color:#101010}.caption .bottom.row.star-only{margin-top:auto;color:#101010}.caption .bottom.slider.star-only{margin-top:auto;color:#101010}.caption .username{font-size:12px;font-weight:600;margin-bottom:0;color:#ffffff}.caption .username.text-review{color:#101010}.caption .username.star-only{color:#101010;font-weight:400}.caption .created-time{font-weight:600;font-size:12px}.caption .created-time.text-review{color:#101010}.caption .created-time.star-only{color:#101010;font-weight:400}.caption .slash{font-weight:600;font-size:12px}.caption .slash.text-review{color:#101010}.caption .slash.star-only{color:#101010;font-weight:400}.thumbnail-pagination-bullets{position:absolute;bottom:16px;right:16px;border-radius:2px;z-index:1;height:24px;padding-left:10px;padding-right:10px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;width:auto;left:auto}@media only screen and (max-width: 799.98px){.thumbnail-pagination-bullets{bottom:auto;top:16px}}.thumbnail-pagination-bullets .swiper-pagination-bullet{border-radius:50%;width:6px;height:6px;margin-left:2px;margin-right:2px;background-color:#D0D0D0;opacity:1}.thumbnail-pagination-bullets .swiper-pagination-bullet:hover,.thumbnail-pagination-bullets .swiper-pagination-bullet:active,.thumbnail-pagination-bullets .swiper-pagination-bullet:focus,.thumbnail-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active{background-color:#101010}.covet-branding{position:absolute;background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-61.5%25' y='-61.5%25' width='223.1%25' height='223.1%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dx='1' dy='2' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='3' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0.516785553 0 0 0 0 0.516785553 0 0 0 0 0.516785553 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23a)' transform='translate(5 4)' fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23212B36' d='M2 2h22v22H2z'/%3E%3Cpath d='M0 1a1 1 0 011-1h24a1 1 0 011 1v24a1 1 0 01-1 1H1a1 1 0 01-1-1V1zm19.668 15.25c-.588 0-1.084.092-1.49.275-.405.183-.708.43-.91.742a1.87 1.87 0 00-.3 1.036c0 .452.113.81.34 1.076.226.265.497.46.813.585.316.124.73.248 1.24.373.364.092.651.173.862.246.21.072.385.171.522.3.137.127.206.289.206.485 0 .269-.123.485-.369.649-.246.164-.618.245-1.116.245a3.59 3.59 0 01-1.201-.21 3.367 3.367 0 01-1.01-.546l-.431.992c.28.25.662.449 1.144.6.482.15.981.226 1.498.226.588 0 1.086-.092 1.494-.276.409-.183.714-.429.915-.736.2-.308.301-.652.301-1.032 0-.445-.113-.799-.34-1.061a2.1 2.1 0 00-.818-.585 8.9 8.9 0 00-1.226-.368 11.399 11.399 0 01-.862-.246 1.477 1.477 0 01-.522-.294.62.62 0 01-.206-.482c0-.281.12-.507.36-.678.239-.17.604-.255 1.096-.255.3 0 .61.046.929.138.32.091.625.226.92.402l.392-.992a3.292 3.292 0 00-1.025-.452 4.695 4.695 0 00-1.206-.157zm-12.79-.191c-.683 0-1.3.152-1.852.457a3.374 3.374 0 00-1.302 1.262 3.516 3.516 0 00-.474 1.818c0 .674.156 1.28.47 1.817a3.34 3.34 0 001.296 1.263c.551.304 1.17.456 1.853.456a3.85 3.85 0 001.524-.294c.461-.197.85-.482 1.166-.855l-.813-.786c-.49.544-1.093.815-1.81.815-.464 0-.88-.103-1.248-.31a2.212 2.212 0 01-.86-.859 2.5 2.5 0 01-.31-1.247c0-.465.103-.881.31-1.248.206-.367.493-.653.86-.86.368-.206.784-.31 1.249-.31.716 0 1.319.27 1.809.806l.813-.776a3.101 3.101 0 00-1.161-.854 3.814 3.814 0 00-1.52-.295zM20.18 3.25h-1.358v6.882h1.358V3.25zm-13.728 0H3.632v6.882h1.273V8.146H6.45c.594 0 1.11-.098 1.551-.295.44-.196.778-.48 1.013-.85.235-.37.353-.805.353-1.303 0-.505-.118-.94-.353-1.307a2.258 2.258 0 00-1.013-.846c-.44-.197-.957-.295-1.55-.295zM6.3 4.397c.567 0 .997.116 1.29.347.294.23.44.561.44.991 0 .43-.146.76-.44.992-.293.231-.723.347-1.29.347H4.78V4.397H6.3z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;z-index:1;bottom:-17px;left:-14px;width:76px;height:76px;-webkit-transform:scale(0.5);transform:scale(0.5);outline:none !important}.covet-branding:hover,.covet-branding:active,.covet-branding:focus{background-image:url(\"data:image/svg+xml,%0A%3Csvg viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-61.5%25' y='-61.5%25' width='223.1%25' height='223.1%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dx='1' dy='2' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='3' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0.516785553 0 0 0 0 0.516785553 0 0 0 0 0.516785553 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23a)' transform='translate(5 4)' fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23EBCC78' d='M2 2h9v9H2z'/%3E%3Cpath fill='%23F7786B' d='M15 2h9v9h-9z'/%3E%3Cpath fill='%2300C5E3' d='M2 15h9v9H2z'/%3E%3Cpath fill='%23ABA0EB' d='M15 15h9v9h-9z'/%3E%3Cpath d='M0 1a1 1 0 011-1h24a1 1 0 011 1v24a1 1 0 01-1 1H1a1 1 0 01-1-1V1zm19.668 15.25c-.588 0-1.084.092-1.49.275-.405.183-.708.43-.91.742a1.87 1.87 0 00-.3 1.036c0 .452.113.81.34 1.076.226.265.497.46.813.585.316.124.73.248 1.24.373.364.092.651.173.862.246.21.072.385.171.522.3.137.127.206.289.206.485 0 .269-.123.485-.369.649-.246.164-.618.245-1.116.245a3.59 3.59 0 01-1.201-.21 3.367 3.367 0 01-1.01-.546l-.431.992c.28.25.662.449 1.144.6.482.15.981.226 1.498.226.588 0 1.086-.092 1.494-.276.409-.183.714-.429.915-.736.2-.308.301-.652.301-1.032 0-.445-.113-.799-.34-1.061a2.1 2.1 0 00-.818-.585 8.9 8.9 0 00-1.226-.368 11.399 11.399 0 01-.862-.246 1.477 1.477 0 01-.522-.294.62.62 0 01-.206-.482c0-.281.12-.507.36-.678.239-.17.604-.255 1.096-.255.3 0 .61.046.929.138.32.091.625.226.92.402l.392-.992a3.292 3.292 0 00-1.025-.452 4.695 4.695 0 00-1.206-.157zm-12.79-.191c-.683 0-1.3.152-1.852.457a3.374 3.374 0 00-1.302 1.262 3.516 3.516 0 00-.474 1.818c0 .674.156 1.28.47 1.817a3.34 3.34 0 001.296 1.263c.551.304 1.17.456 1.853.456a3.85 3.85 0 001.524-.294c.461-.197.85-.482 1.166-.855l-.813-.786c-.49.544-1.093.815-1.81.815-.464 0-.88-.103-1.248-.31a2.212 2.212 0 01-.86-.859 2.5 2.5 0 01-.31-1.247c0-.465.103-.881.31-1.248.206-.367.493-.653.86-.86.368-.206.784-.31 1.249-.31.716 0 1.319.27 1.809.806l.813-.776a3.101 3.101 0 00-1.161-.854 3.814 3.814 0 00-1.52-.295zM20.18 3.25h-1.358v6.882h1.358V3.25zm-13.728 0H3.632v6.882h1.273V8.146H6.45c.594 0 1.11-.098 1.551-.295.44-.196.778-.48 1.013-.85.235-.37.353-.805.353-1.303 0-.505-.118-.94-.353-1.307a2.258 2.258 0 00-1.013-.846c-.44-.197-.957-.295-1.55-.295zM6.3 4.397c.567 0 .997.116 1.29.347.294.23.44.561.44.991 0 .43-.146.76-.44.992-.293.231-.723.347-1.29.347H4.78V4.397H6.3z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E \")}@media only screen and (max-width: 799.98px){.covet-branding{bottom:auto;top:-13px}}.products{position:relative;width:50%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--covet-pics-highlighted-background-color)}.products.spotlight{width:100%;height:40%}@media only screen and (max-width: 799.98px){.products.spotlight{width:100%;height:186px;padding:0 24px 24px 24px;-ms-flex-align:start;align-items:flex-start}}.products.zigzag{height:auto}@media only screen and (max-width: 799.98px){.products.zigzag{width:100%;padding:0 24px 24px 24px}}.products.zigzag.layout-3{width:50%;height:100%}@media only screen and (max-width: 799.98px){.products.zigzag.layout-3{width:100%;height:auto}}.products.zigzag.layout-3.reverse{width:50%;height:100%}@media only screen and (max-width: 799.98px){.products.zigzag.layout-3.reverse{width:100%;height:auto}}@media only screen and (max-width: 799.98px){.products.slider{width:100%;height:186px;padding:0 24px 24px 24px;-ms-flex-align:start;align-items:flex-start}}@media only screen and (max-width: 799.98px){.products.slider.layout-2{padding:0 24px 24px 24px}}@media only screen and (max-width: 799.98px){.products.row{display:none}}.products.layout-1{padding:32px}@media only screen and (max-width: 799.98px){.products.layout-1{padding:0 24px 24px 24px}}.products.layout-2{-ms-flex-align:end;align-items:flex-end;padding:0 20px 40px 40px;-ms-flex-pack:start;justify-content:flex-start}.products.layout-2.reverse{padding:0 20px 40px 40px}@media only screen and (max-width: 1279.98px){.products.layout-2{padding:0 10px 20px 20px}.products.layout-2.reverse{padding:0 10px 20px 20px}}@media only screen and (max-width: 799.98px){.products.layout-2{-ms-flex-align:start;align-items:flex-start;padding:0 24px 24px 24px}}.products.layout-3{-ms-flex-pack:start;justify-content:flex-start}.products.layout-3.reverse{-ms-flex-pack:end;justify-content:flex-end}@media only screen and (max-width: 799.98px){.products.layout-3{-ms-flex-align:start;align-items:flex-start}}.products.layout-4{-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;padding:0 80px}@media only screen and (max-width: 799.98px){.products.layout-4{padding:0 24px 24px 24px}}.products.reverse{-ms-flex-order:1;order:1}.product{z-index:1}.product .swiper-slide .img-wrap{-webkit-transition:all 0.4s ease;transition:all 0.4s ease;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;will-change:transform}.product .swiper-slide:hover .img-wrap{-webkit-transform:scale(0.95);transform:scale(0.95)}.product.layout-1{max-width:320px;width:100%}@media only screen and (max-width: 799.98px){.product.layout-1{max-width:none}}.product.layout-2{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:504px;width:100%;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}@media only screen and (max-width: 799.98px){.product.layout-2{max-width:none;width:100%}}.product.layout-2:hover .img-wrap{-webkit-transform:scale(0.95);transform:scale(0.95)}.product.layout-3{width:100%;max-width:576px;margin-top:130px;position:relative;-webkit-transform:translateX(-80px);transform:translateX(-80px)}.product.layout-3.reverse{-webkit-transform:translateX(80px);transform:translateX(80px)}@media only screen and (max-width: 799.98px){.product.layout-3{margin-top:0;max-width:none;width:100%}}.product.layout-3.slides-count-1{max-width:280px;width:calc((100% - 16px) / 2)}@media only screen and (max-width: 799.98px){.product.layout-3.slides-count-1{max-width:none;width:100%}}.product.layout-4{position:relative;-webkit-transform:translateY(-80px);transform:translateY(-80px);width:100%;max-width:632px}@media only screen and (max-width: 799.98px){.product.layout-4{max-width:none}}.product.layout-4.slides-count-1{max-width:632px}@media only screen and (max-width: 799.98px){.product.layout-4.slides-count-1{max-width:none}}.product.layout-4.slides-count-2{max-width:632px}@media only screen and (max-width: 799.98px){.product.layout-4.slides-count-2{max-width:none}}.product.mobile{width:100%}.product.mobile .swiper{overflow:visible !important}@media only screen and (max-width: 799.98px){.product.mobile{position:relative;-webkit-transform:translateY(-16px);transform:translateY(-16px)}}.product .product-link{text-decoration:none;outline:none !important;display:block}.product .product-link:hover,.product .product-link:active,.product .product-link:focus,.product .product-link.active{text-decoration:none}.product .product-link.height-full{height:100%}.product .main-title{font-size:20px;color:var(--covet-pics-highlighted-primary-color);line-height:1;margin-bottom:24px;text-align:center;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;font-weight:400;overflow:hidden}.product .main-title.layout-1{width:100%}.product .main-title.layout-2{text-align:left;width:100%}.product .main-title.layout-3,.product .main-title.layout-4{display:none}.product .slider{width:320px}.product .slider.layout-1{width:100%}.product .slider.layout-2{width:calc((100% - 24px) / 2);margin-left:0;margin-right:auto;height:240px}@media only screen and (max-width: 1279.98px){.product .slider.layout-2{height:200px}}@media only screen and (max-width: 799.98px){.product .slider.layout-2{margin-right:0;height:auto}}.product .slider.layout-3{width:100%}.product .slider.layout-3.slides-count-2{display:-ms-flexbox;display:flex}.product .slider.layout-3.slides-count-2 .swiper-slide{width:50%}.product .slider.layout-4.slides-count-1{width:calc((100% - 32px) / 3)}.product .slider.layout-4.slides-count-2{width:calc((100% - 32px) * 2 / 3 + 16px)}.product .slider.layout-4.slides-count-2 .swiper-wrapper{-ms-flex-pack:justify;justify-content:space-between}.product .slider.layout-4.slides-count-2 .swiper-slide{width:calc((100% - 16px) / 2)}.product .slider.layout-4.slides-count-3{width:100%}.product .slider.layout-4.slides-count-3 .swiper-wrapper{-ms-flex-pack:justify;justify-content:space-between}.product .slider.layout-4.slides-count-3 .swiper-slide{width:calc((100% - 32px) / 3)}.product .slider.mobile{height:136px;width:100%;border-radius:2px;overflow:hidden}.product .description{-webkit-box-sizing:border-box;box-sizing:border-box;width:calc((100% - 24px) / 2)}.product .description.mobile{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:calc(100% - 88px - 16px)}.product .slider-description{width:100%}.product .slider-description.disabled{height:100%}.product .swiper-slide{height:100%}.product .swiper-slide.mobile{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;padding:24px;background-color:white;border-radius:2px;-webkit-box-shadow:4px 8px 24px 0px rgba(132, 132, 132, 0.2);box-shadow:4px 8px 24px 0px rgba(132, 132, 132, 0.2)}.product .swiper-slide.swiper-slide-duplicate .img-wrap{background-image:none;-webkit-animation:none;animation:none}.product .swiper-slide.swiper-slide-duplicate .img-wrap[is-loading] img{opacity:1}.product .img-wrap{display:-ms-flexbox;display:flex;width:320px;height:320px;margin-bottom:16px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.product .img-wrap:after{content:\"\";display:inline-block;bottom:0;width:1px;height:0;padding-top:100%;position:absolute}.product .img-wrap[is-loading]{background-image:linear-gradient(120deg, #DFE3E8, #F9FAFB);-webkit-animation:pulsate 2s ease-in-out infinite;animation:pulsate 2s ease-in-out infinite}.product .img-wrap[is-loading] img{opacity:0}.product .img-wrap[not-loaded]{background-image:linear-gradient(120deg, #DFE3E8, #F9FAFB)}.product .img-wrap[not-loaded] img{opacity:0}.product .img-wrap.layout-1{width:320px;height:320px}@media only screen and (max-width: 1279.98px){.product .img-wrap.layout-1{width:100%}}.product .img-wrap.layout-2{width:100%;height:100%;margin-bottom:0}.product .img-wrap.layout-3{height:280px;width:100%;margin-bottom:40px}.product .img-wrap.layout-4{height:200px;width:100%}.product .img-wrap.mobile{width:88px;height:88px;-ms-flex:none;flex:none;margin-right:16px;margin-bottom:0}.product .img-cover{-o-object-fit:cover;object-fit:cover;height:100%;width:100%}.product .img-contain{-o-object-fit:contain;object-fit:contain;-o-object-position:50% 50%;object-position:50% 50%;width:100%;height:100%}.product .title{text-align:center;font-size:14px;text-transform:uppercase;color:var(--covet-pics-highlighted-secondary-color);margin-bottom:8px;line-height:18px;width:240px;margin-left:auto;margin-right:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product .title.layout-1{max-width:75%;width:100%}@media only screen and (max-width: 799.98px){.product .title.layout-1{max-width:none}}.product .title.layout-2{text-align:left;width:100%}.product .title.layout-3{display:block;margin-left:auto;margin-right:0;width:57.1428571429%;text-align:left}.product .title.layout-3.reverse{text-align:right;margin-left:0;margin-right:auto}.product .title.layout-4{width:100%;text-align:center}.product .title.price-hidden{margin-bottom:16px;line-height:44px}.product .title.mobile{text-align:left;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product .price{text-align:center;font-size:14px;text-transform:uppercase;color:var(--covet-pics-highlighted-primary-color);margin-bottom:16px;line-height:18px;width:240px;margin-left:auto;margin-right:auto;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product .price.layout-1{max-width:75%;width:100%}@media only screen and (max-width: 799.98px){.product .price.layout-1{max-width:none}}.product .price.layout-2{text-align:left;width:100%}.product .price.layout-3{display:block;margin-left:auto;margin-right:0;width:57.1428571429%;text-align:left}.product .price.layout-3.reverse{text-align:right;margin-left:0;margin-right:auto}.product .price.layout-4{width:100%;text-align:center}.product .price.mobile{text-align:left;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product .btn-buy{font-family:var(--covet-font-family);display:block;line-height:1;padding:15px 15px;margin-left:auto;margin-right:auto;width:240px;font-size:12px;text-transform:uppercase;text-align:center;cursor:pointer;margin-bottom:8px;background-color:transparent;border:1px solid var(--covet-pics-highlighted-primary-color);color:var(--covet-pics-highlighted-primary-color);-webkit-transition:all 0.4s ease;transition:all 0.4s ease;outline:none !important}.product .btn-buy:hover,.product .btn-buy:active,.product .btn-buy:focus,.product .btn-buy.active{border:1px solid var(--covet-pics-highlighted-primary-color);color:var(--covet-pics-highlighted-background-color);background-color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.layout-1{max-width:75%;width:100%}@media only screen and (max-width: 799.98px){.product .btn-buy.layout-1{max-width:none}}.product .btn-buy.layout-1.no-pagination{margin-bottom:48px}.product .btn-buy.layout-2{width:100%}.product .btn-buy.layout-2.no-pagination{margin-bottom:48px}@media only screen and (max-width: 1279.98px){.product .btn-buy.layout-2.no-pagination{margin-bottom:32px}}.product .btn-buy.layout-3{margin-left:42.8571428571%;border:none;max-width:57.1428571429%;width:auto;padding:0 0 8px 0;font-size:14px;position:relative;overflow:hidden}.product .btn-buy.layout-3:after{content:\"\";position:absolute;display:block;bottom:3px;left:50%;width:100%;height:1px;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all 0.4s ease;transition:all 0.4s ease;background-color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.layout-3:hover,.product .btn-buy.layout-3:active,.product .btn-buy.layout-3:focus,.product .btn-buy.layout-3.active{border:none;background-color:transparent;color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.layout-3:hover:after,.product .btn-buy.layout-3:active:after,.product .btn-buy.layout-3:focus:after,.product .btn-buy.layout-3.active:after{-webkit-transform:translateX(-50%);transform:translateX(-50%);width:80%}.product .btn-buy.layout-3.reverse{margin-left:auto;margin-right:42.8571428571%}.product .btn-buy.layout-4{width:100%;text-align:center;border:none;max-width:100%;width:auto;margin-bottom:0;padding:0 0 8px 0;font-size:14px;position:relative;overflow:hidden}.product .btn-buy.layout-4:after{content:\"\";position:absolute;display:block;bottom:3px;left:50%;width:100%;height:1px;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all 0.4s ease;transition:all 0.4s ease;background-color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.layout-4:hover,.product .btn-buy.layout-4:active,.product .btn-buy.layout-4:focus,.product .btn-buy.layout-4.active{border:none;background-color:transparent;color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.layout-4:hover:after,.product .btn-buy.layout-4:active:after,.product .btn-buy.layout-4:focus:after,.product .btn-buy.layout-4.active:after{-webkit-transform:translateX(-50%);transform:translateX(-50%);width:80%}.product .btn-buy.mobile{max-width:100%;width:auto;margin-left:0;margin-bottom:0;font-size:14px;margin-top:auto;border:none;padding:0 0 8px 0;position:relative;overflow:hidden}.product .btn-buy.mobile:after{content:\"\";position:absolute;display:block;bottom:0;left:50%;width:100%;height:1px;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:all 0.4s ease;transition:all 0.4s ease;background-color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.mobile:hover,.product .btn-buy.mobile:active,.product .btn-buy.mobile:focus,.product .btn-buy.mobile.active{border:none;background-color:transparent;color:var(--covet-pics-highlighted-primary-color)}.product .btn-buy.mobile:hover:after,.product .btn-buy.mobile:active:after,.product .btn-buy.mobile:focus:after,.product .btn-buy.mobile.active:after{-webkit-transform:translateX(-50%);transform:translateX(-50%);width:80%}.product .nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:240px;margin-left:auto;margin-right:auto;padding:16px 0}.product .nav.layout-1{max-width:75%;width:100%}.product .nav.layout-2{width:100%}@media only screen and (max-width: 1279.98px){.product .nav.layout-2{padding:8px 0}}.product .nav.layout-3{position:absolute;width:90px;top:0;right:0;-webkit-transform:translateY(calc(-100% - 24px));transform:translateY(calc(-100% - 24px));padding:0}.product .nav.layout-3.reverse{left:0;right:auto}.product .nav.layout-4{position:absolute;width:calc(100% + 64px + 96px);top:140px;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.product .pagination-bullets{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0}.product .pagination-bullets .swiper-pagination-bullet{width:6px;height:6px;display:inline-block;background:var(--covet-pics-highlighted-primary-color);opacity:0.2;margin:0 3px}.product .pagination-bullets .swiper-pagination-bullet:hover,.product .pagination-bullets .swiper-pagination-bullet:active,.product .pagination-bullets .swiper-pagination-bullet:focus{opacity:0.4}.product .pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active{opacity:1;background:var(--covet-pics-highlighted-primary-color)}covet-pics-highlighted-page{width:100%;display:-ms-flexbox;display:flex;height:100vh;height:calc(var(--covet-pics-highlighted-window-height, 1vh) * 100);-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--covet-pics-highlighted-padding)}@media only screen and (max-width: 799.98px){covet-pics-highlighted-page{padding:0}}covet-pics-highlighted-page.spotlight{padding:0;-ms-flex-wrap:wrap;flex-wrap:wrap;height:100%}covet-pics-highlighted-page.zigzag{position:relative}covet-pics-highlighted-page.zigzag:not(:first-of-type) .thumbnail .covet-branding{display:none}@media only screen and (max-width: 799.98px){covet-pics-highlighted-page.zigzag{height:auto;-ms-flex-wrap:wrap;flex-wrap:wrap}}covet-pics-highlighted-page.row{height:calc(90vh - var(--covet-pics-highlighted-padding-px));height:calc(var(--covet-pics-highlighted-window-height, 1vh) * 90 - var(--covet-pics-highlighted-padding-px));padding:0;width:100%}covet-pics-highlighted-page.row:not(:first-of-type) .thumbnail .covet-branding{display:none}@media only screen and (max-width: 799.98px){covet-pics-highlighted-page.row{width:100%;height:90vh;height:calc(var(--covet-pics-highlighted-window-height, 1vh) * 90)}}covet-pics-highlighted-page.slider{padding:0}@media only screen and (max-width: 799.98px){covet-pics-highlighted-page.slider{-ms-flex-wrap:wrap;flex-wrap:wrap}}";var j=t("covet_pics_highlighted_page",function(){function t(t){var e=this;i(this,t);this.ariaLabel=null;this.thumbnailLayout="image";this.reverseClass="";this.isMobile=false;this.pageIndex=-1;this.caption="";this.rating=0;this.mainSliderIndex=0;this.hideHotspots=false;this.additionalProductSlider=null;this.activeProductIndex=0;this.hoverHotspot=0;this.playPauseVideoClickHandler=function(t){t.preventDefault();t.stopPropagation();var i=t.currentTarget;var a=i.parentElement;return a.classList.contains("playing")?e.pauseVideo(a):e.playVideo(a)};this.imageLoadedHandler=function(t){if(t.type==="error"){t.currentTarget.parentNode.setAttribute("not-loaded","");t.currentTarget.removeAttribute("src")}return t.currentTarget.parentNode.removeAttribute("is-loading")};this.btnBuyClickHandler=function(t){return t.currentTarget.previousSibling.click()};this.productBuyClickHandler=function(t){var i=t.currentTarget.getAttribute("data-ga-campaign");if(p(e.appState)){var a="Covet.pics Popup";var o="Covet.pics Link Click";var r="Covet.pics Link Click - "+i;l(o,a,r)}var n=t.currentTarget.getAttribute("data-link-id");var s={gallery_item_id:e.pageId,product_id:n};c(e.appState,"grid_link_click",s)}}t.prototype.onChangeActiveHotspot=function(t){if(t.detail===undefined||t.detail===null||this.productSlider===undefined)return true;if(this.layout==="row")return true;if(t.detail===this.productSlider.realIndex)return true;return this.additionalProductSlider===null?this.productSlider.slideToLoop(t.detail):this.additionalProductSlider.slideToLoop(t.detail),this.productSlider.slideToLoop(t.detail)};t.prototype.componentWillLoad=function(){this.initStore()};t.prototype.componentDidLoad=function(){if(this.pageIndex-2<this.mainSliderIndex&&this.layout!=="row")this.initSwiper();if(this.pageIndex-2<this.mainSliderIndex&&this.thumbnailLayout==="carousel")this.initThumbnailCarousel()};t.prototype.componentDidUpdate=function(){var t=this;if(this.layout!=="row"&&this.productSlider&&this.productSlider.destroyed===true)this.initSwiper();if(this.layout!=="row"&&!this.productSlider&&this.pageIndex-2<this.mainSliderIndex){this.initSwiper()}if(this.pageIndex-2<this.mainSliderIndex&&this.thumbnailLayout==="carousel"&&!this.thumbnailCarousel){this.initThumbnailCarousel()}if(this.pageIndex!==this.mainSliderIndex&&this.layout!=="row"){var i=this.el.querySelectorAll(".thumbnail .thumbnail-video-wrap");i.forEach((function(i){return t.pauseVideo(i)}))}};t.prototype.componentShouldUpdate=function(t,i,e){if(t!==i&&e==="thumbnailUrl"){this.productSlider.destroy();if(this.additionalProductSlider!==null)this.additionalProductSlider.destroy();this.activeProductIndex=0}if(e==="isMobile")this.productSlider.destroy();if(e==="isMobile"&&this.additionalProductSlider!==null)this.additionalProductSlider.destroy()};t.prototype.disconnectedCallback=function(){this.unsubscribe()};t.prototype.initStore=function(){var t=this;this.appState=this.appStore.getState();this.layout=this.appState.settings.highlight_layout;this.productsLayout=this.appState.settings.highlight_products_layout;this.unsubscribe=this.appStore.subscribe((function(){t.layout=t.appState.settings.highlight_layout;t.productsLayout=t.appState.settings.highlight_products_layout;t.appState=t.appStore.getState()}))};t.prototype.initSwiper=function(){var t=this;if(this.productLinks===undefined)return true;if(this.productLinks.length<2)return true;if(this.productsLayout==="layout-3"&&this.productLinks.length<3&&!this.isMobile)return true;if(this.productsLayout==="layout-4"&&this.productLinks.length<4&&!this.isMobile)return true;var i=this.el.querySelector(".product .slider");var e=this.el.querySelector(".product .slider-control.prev");var a=this.el.querySelector(".product .slider-control.next");var o={enabled:true,prevSlideMessage:"Previous product",nextSlideMessage:"Next product",containerMessage:"Product slider",containerRoleDescriptionMessage:"Product slider",paginationBulletMessage:"Goto product #{{index}}",slideRole:"group",slideLabelMessage:"Product item {{index}}/{{slidesLength}}"};if(this.isMobile&&this.layout==="zigzag"){return this.productSlider=new u(i,{modules:[g],slidesPerView:1,loop:false,on:{slideChange:function(i){return t.onChangeActiveProduct(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,spaceBetween:8})}if(this.productsLayout==="layout-1"){var r=this.el.querySelector(".product .pagination");return this.productSlider=new u(i,{modules:[f,m,k,g],slidesPerView:1,effect:this.isMobile?null:"fade",fadeEffect:{crossFade:this.isMobile?false:true},loop:this.isMobile?false:true,navigation:{nextEl:e,prevEl:a},on:{slideChange:function(i){return t.onChangeActiveProduct(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,pagination:{el:r,clickable:true,modifierClass:"pagination-"},spaceBetween:this.isMobile?8:0})}if(this.productsLayout==="layout-2"){var r=this.el.querySelector(".product .pagination");var n=this.el.querySelector(".product .slider-description");this.additionalProductSlider=this.isMobile?null:new u(n,{modules:[f,m,k,g],on:{init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,effect:"fade",fadeEffect:{crossFade:true},slidesPerView:1,loop:true,navigation:{nextEl:e,prevEl:a},pagination:{el:r,clickable:true,modifierClass:"pagination-"},spaceBetween:16});return this.productSlider=new u(i,{modules:[f,m,k,g],slidesPerView:1,effect:this.isMobile?null:"fade",fadeEffect:{crossFade:this.isMobile?false:true},loop:this.isMobile?false:true,navigation:{nextEl:e,prevEl:a},on:{slideChange:function(i){return t.onChangeActiveProduct(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,pagination:{el:r,clickable:true,modifierClass:"pagination-"},spaceBetween:this.isMobile?8:16})}if(this.productsLayout==="layout-3"){return this.productSlider=new u(i,{modules:[f,g],slidesPerView:this.isMobile?1:2,effect:null,loop:this.isMobile?false:true,navigation:{nextEl:e,prevEl:a},on:{slideChange:function(i){return t.onChangeActiveProduct(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,spaceBetween:this.isMobile?8:16})}if(this.productsLayout==="layout-4"){if(this.productLinks===undefined)return null;var s=this.isMobile?1:3;return this.productSlider=new u(i,{modules:[f,g],slidesPerView:s,effect:null,loop:this.isMobile?false:true,navigation:{nextEl:e,prevEl:a},on:{slideChange:function(i){return t.onChangeActiveProduct(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:o,spaceBetween:this.isMobile?8:16})}return null};t.prototype.initThumbnailCarousel=function(){var t=this;if(this.thumbnailCarouselImages.length<2)return true;var i=this.el.querySelector(".thumbnail .swiper");var e=this.el.querySelector(".thumbnail .thumbnail-pagination");return this.thumbnailCarousel=new u(i,{modules:[m,k,g],slidesPerView:1,effect:"fade",fadeEffect:{crossFade:true},pagination:{el:e,clickable:true,modifierClass:"thumbnail-pagination-"},on:{slideChange:function(i){return t.onChangeActiveThumbnail(i)},init:function(t){return x(t)},update:function(t){return x(t)},realIndexChange:function(t){return x(t)}},a11y:{enabled:true,prevSlideMessage:"Previous thumbnail item",nextSlideMessage:"Next thumbnail item",containerMessage:"Thumbnail slider",containerRoleDescriptionMessage:"Thumbnail slider",paginationBulletMessage:"Goto thumbnail slide #{{index}}",slideRole:"group",slideLabelMessage:"Thumbnail item {{index}}/{{slidesLength}}"}})};t.prototype.pauseVideo=function(t){var i=t.querySelector("video");i.pause();t.classList.remove("playing")};t.prototype.playVideo=function(t){var i=t.querySelector("video");var e=i.play();if(e!==null){e.catch((function(){i.play()}))}t.classList.add("playing")};t.prototype.onChangeActiveProduct=function(t){if(this.activeProductIndex===t.realIndex)return true;this.activeProductIndex=t.realIndex};t.prototype.onChangeActiveThumbnail=function(t){var i=this;var e=t.el.querySelectorAll(".thumbnail-video-wrap");e.forEach((function(t){return i.pauseVideo(t)}));var a=t.slides[t.activeIndex].querySelector(".thumbnail-video-wrap");if(a)this.playVideo(a);return t.realIndex===0?this.hideHotspots=false:this.hideHotspots=true};t.prototype.carouselImgAltTag=function(t,i,e,a){if(t&&t!==null)return t;return"".concat(i," slide ").concat(e+1,"/").concat(a)};t.prototype.renderUserAndDate=function(){var t=this.caption!==null&&this.thumbnailLayout==="text"?"text-review":"";var i=this.caption===null&&this.thumbnailLayout==="text"?"star-only":"";return a(n,null,a("h3",{class:"username ".concat(this.reverseClass," ").concat(t," ").concat(i)},this.userName),this.userName&&this.createdTime&&a("span",{class:"slash ".concat(this.reverseClass," ").concat(t," ").concat(i)},"/"),a("span",{class:"created-time ".concat(this.reverseClass," ").concat(t," ").concat(i)},b(this.createdTime)))};t.prototype.renderReview=function(){var t=this.caption!==null&&this.thumbnailLayout==="text"?"text-review":"";var i=this.caption!==null&&this.thumbnailLayout!=="text"?"review":"";var e=this.caption===null&&this.thumbnailLayout==="text"?"star-only":"";var o=this.thumbnailLayout==="video"?"video":"";return a("div",{class:"caption ".concat(this.layout," ").concat(this.productsLayout," ").concat(this.reverseClass," ").concat(t," ").concat(e," ").concat(o," ").concat(i)},this.rating>0&&a("covet-pics-star-rating",{rating:this.rating,starSize:14,spaceStars:14,emptyStarColor:"#C1C1C1",class:"position-star",showLabel:false}),a("p",{class:"caption-text ".concat(this.layout," ").concat(this.productsLayout," ").concat(t," ").concat(e)},this.caption),a("div",{class:"bottom ".concat(this.layout," ").concat(this.reverseClass," ").concat(t," ").concat(e," ").concat(i)},this.renderUserAndDate()))};t.prototype.renderStarOnlyReview=function(){var t=this.caption===null&&this.thumbnailLayout==="text"?"star-only":"";return a("div",{class:"caption ".concat(this.layout," ").concat(this.productsLayout," ").concat(t)},a("covet-pics-star-rating",{rating:this.rating,starSize:16,spaceStars:16,emptyStarColor:"#C1C1C1",class:"position-star ".concat(t),showLabel:false}),a("p",{class:"caption-text ".concat(this.layout," ").concat(this.productsLayout," ").concat(t)},this.caption),a("div",{class:"bottom ".concat(this.layout," ").concat(t)},this.renderUserAndDate()))};t.prototype.renderStandardThumbnail=function(){var t=this.caption===null||this.caption.length===0;var i=this.caption===null&&this.thumbnailLayout==="text";var e=!t&&(this.appState.settings.show_review&&this.thumbnailLayout!=="text"||this.thumbnailLayout==="text");var o=this.layout==="row"?true:this.appState.settings.hotspots.enabled;return a("div",{class:"thumbnail ".concat(this.layout," ").concat(this.reverseClass," ").concat(this.productsLayout),"is-loading":this.thumbnailLayout==="image"},this.thumbnailLayout==="image"&&a("img",{alt:this.thumbnailAlt,class:"img-cover",onLoad:this.imageLoadedHandler,onError:this.imageLoadedHandler,src:this.pageIndex-2<this.mainSliderIndex?this.thumbnailUrl:null}),this.thumbnailLayout==="video"&&a("div",{class:"thumbnail-video-wrap"},a("video",{playsinline:true,loop:true,class:"thumbnail-video img-contain",poster:this.videoPoster,title:this.thumbnailAlt},a("source",{src:this.videoUrl,type:"video/mp4"})),a("button",{type:"button",class:"thumbnail-video-play",onClick:this.playPauseVideoClickHandler}),a("button",{type:"button",class:"thumbnail-video-pause",onClick:this.playPauseVideoClickHandler})),e&&this.renderReview(),i&&this.renderStarOnlyReview(),o&&this.layout!=="spotlight"&&a("covet-pics-highlighted-hotspots",{links:this.productLinks,hoverHotspot:this.hoverHotspot,activeHotspot:this.activeProductIndex,thumbnailUrl:this.thumbnailUrl,isMobile:this.isMobile,productBaseImgAlt:this.productBaseImgAlt,pageId:this.pageId,appStore:this.appStore}),!this.appState.settings.hide_branding&&a("a",{class:"covet-branding",href:"https://apps.shopify.com/covet-pics?utm_source=embed&utm_medium=highlight&utm_campaign=".concat(location.host),target:"_blank",rel:"noopener",tabindex:"0","aria-label":"Covet.pics logo link"}))};t.prototype.renderCarouselThumbnail=function(){var t=this;var i=this.caption===null||this.caption.length===0;var e=!i&&this.appState.settings.show_review&&this.thumbnailLayout!=="text";var o=this.layout==="row"?true:this.appState.settings.hotspots.enabled;var r=o&&!this.hideHotspots&&this.layout!=="spotlight";return a("div",{class:"thumbnail ".concat(this.layout," ").concat(this.reverseClass," ").concat(this.productsLayout)},a("div",{class:"thumbnail-carousel swiper",role:"region"},a("div",{class:"swiper-wrapper"},this.thumbnailCarouselImages&&this.thumbnailCarouselImages.map((function(i,e){return a("div",{class:"swiper-slide"},i.type==="image"&&a("div",{class:"thumbnail-slide-wrap"},a("img",{src:i.standard_resolution,alt:t.carouselImgAltTag(i.alt_tag,t.thumbnailAlt,e,t.thumbnailCarouselImages.length),class:"img-cover",loading:"lazy"})),i.type==="video"&&a("div",{class:"thumbnail-video-wrap"},a("video",{playsinline:true,loop:true,class:"thumbnail-video img-contain"},a("source",{src:i.standard_resolution,type:"video/mp4"})),a("button",{type:"button",class:"thumbnail-video-play",onClick:t.playPauseVideoClickHandler}),a("button",{type:"button",class:"thumbnail-video-pause",onClick:t.playPauseVideoClickHandler})))})),e&&this.renderReview())),r&&a("covet-pics-highlighted-hotspots",{links:this.productLinks,hoverHotspot:this.hoverHotspot,activeHotspot:this.activeProductIndex,thumbnailUrl:this.thumbnailUrl,productBaseImgAlt:this.productBaseImgAlt,isMobile:this.isMobile,pageId:this.pageId,appStore:this.appStore}),a("div",{class:"thumbnail-pagination"}),!this.appState.settings.hide_branding&&a("a",{class:"covet-branding",href:"https://apps.shopify.com/covet-pics?utm_source=embed&utm_medium=highlight&utm_campaign=".concat(location.host),target:"_blank",rel:"noopener",tabindex:"0","aria-label":"Covet.pics logo link"}))};t.prototype.renderControlIcon=function(t,i){if(t==="bracket")return i==="next"?a("svg",{width:"48px",height:"48px",viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{transform:"translate(-132.000000, -1128.000000)"},a("g",{transform:"translate(0.000000, 768.000000)"},a("g",{transform:"translate(132.000000, 360.000000)"},a("rect",{x:"0",y:"0",width:"48",height:"48"}),a("polygon",{fill:"var(--covet-pics-highlighted-primary-color)","fill-rule":"nonzero",points:"14.9638554 24 34 4.49382716 33.5180723 4 14 24 33.5180723 44 34 43.5061728"})))))):a("svg",{width:"48px",height:"48px",viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},a("g",{transform:"translate(-1240.000000, -360.000000)"},a("g",{transform:"translate(1264.000000, 384.000000) scale(-1, 1) translate(-1264.000000, -384.000000) translate(1240.000000, 360.000000)"},a("rect",{x:"0",y:"0",width:"48",height:"48"}),a("polygon",{fill:"var(--covet-pics-highlighted-primary-color)","fill-rule":"nonzero",points:"14.9638554 24 34 4.49382716 33.5180723 4 14 24 33.5180723 44 34 43.5061728"})))));if(t==="big-arrow")return i==="next"?a("svg",{class:"icon-arrow",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M18.839 11L10 19.839l8.839 8.839.707-.707-7.681-7.683h19.224v-1H11.965l7.58-7.58L18.84 11z","fill-rule":"nonzero"})):a("svg",{class:"icon-arrow rotate",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M18.839 11L10 19.839l8.839 8.839.707-.707-7.681-7.683h19.224v-1H11.965l7.58-7.58L18.84 11z","fill-rule":"nonzero"}));if(t==="arrow")return i==="next"?a("svg",{class:"icon-arrow",viewBox:"0 0 13 8",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M3.89 7.778V6.364L1.98 4.455h10.957v-1H1.848l2.041-2.04V0L0 3.89l3.89 3.888z","fill-rule":"nonzero"})):a("svg",{class:"icon-arrow rotate",viewBox:"0 0 13 8",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M3.89 7.778V6.364L1.98 4.455h10.957v-1H1.848l2.041-2.04V0L0 3.89l3.89 3.888z","fill-rule":"nonzero"}));return null};t.prototype.productImgAltTag=function(t,i,e){return t.title?"".concat(t.title," product-slide ").concat(i+1,"/").concat(e," ").concat(this.productBaseImgAlt):"product-slide ".concat(i+1,"/").concat(e," ").concat(this.productBaseImgAlt)};t.prototype.renderSlider=function(){var t=this;if(this.productLinks===undefined||this.productLinks.length===0)return null;var i="arrow";if(this.productsLayout==="layout-3")i="big-arrow";if(this.productsLayout==="layout-4")i="bracket";var e="slides-count-".concat(this.productLinks.length>2?3:this.productLinks.length);var o=this.productLinks.length===1&&this.layout==="slider"?"no-pagination":"";var r=this.productLinks.length>1;if(this.productsLayout==="layout-3"&&this.productLinks.length<3)r=false;if(this.productsLayout==="layout-4"&&this.productLinks.length<4&&!this.isMobile)r=false;return a("div",{class:"product ".concat(this.productsLayout," ").concat(this.reverseClass," ").concat(e)},!this.appState.settings.popup_products_title_disabled&&a("h2",{class:"main-title ".concat(this.productsLayout)},this.appState.settings.popup_products_title),a("section",{class:"slider swiper ".concat(this.productsLayout," ").concat(this.productLinks.length>1?"active":"disabled"," ").concat(e)},a("div",{class:"swiper-wrapper"},this.productLinks&&this.productLinks.map((function(i,e){return a("div",{class:"swiper-slide"},a("a",{href:i.link,class:"product-link","aria-label":"product ".concat(i.title?i.title:""),"data-ga-campaign":i.title,"data-link-id":i.id,onClick:t.productBuyClickHandler},a("div",{class:"img-wrap ".concat(t.productsLayout),"is-loading":true},a("img",{class:"img-contain",alt:t.productImgAltTag(i,e,t.productLinks.length),loading:"lazy",src:t.pageIndex-2<t.mainSliderIndex?i.image:null,onLoad:t.imageLoadedHandler,onError:t.imageLoadedHandler})),a("p",{class:"title ".concat(t.productsLayout," ").concat(t.reverseClass," ").concat(!t.appState.settings.show_price?"price-hidden":"")},i.title),t.appState.settings.show_price&&i.prices&&i.prices.price_label&&a("p",{class:"price ".concat(t.productsLayout," ").concat(t.reverseClass),innerHTML:i.prices.price_label})),a("button",{class:"btn-buy ".concat(t.productsLayout," ").concat(t.reverseClass," ").concat(o),onClick:t.btnBuyClickHandler,"aria-label":t.appState.settings.popup_products_button_caption,type:"button"},t.appState.settings.popup_products_button_caption))})))),r&&a("div",{class:"nav ".concat(this.productsLayout," ").concat(this.reverseClass)},a("button",{class:"".concat(this.productsLayout," slider-control ").concat(this.productsLayout!=="layout-3"?"small":""," next"),type:"button"},this.renderControlIcon(i,"next")),a("div",{class:"pagination"}),a("button",{class:"".concat(this.productsLayout," slider-control ").concat(this.productsLayout!=="layout-3"?"small":""," prev"),type:"button"},this.renderControlIcon(i,"prev"))))};t.prototype.renderBottomSlider=function(){var t=this;if(this.productLinks===undefined||this.productLinks.length===0)return null;var i=this.productLinks.length===1&&this.layout==="slider"?"no-pagination":"";return a("div",{class:"product ".concat(this.productsLayout)},a("section",{class:"slider swiper ".concat(this.productsLayout," ").concat(this.productLinks.length>1?"active":"disabled"),role:"region","aria-label":"product thumbnail image preview for product slider"},a("div",{class:"swiper-wrapper"},this.productLinks.map((function(i,e){return a("div",{class:"swiper-slide"},a("a",{href:i.link,class:"product-link height-full","aria-label":"product ".concat(i.title?i.title:""),"data-ga-campaign":i.title,"data-link-id":i.id,onClick:t.productBuyClickHandler},a("div",{class:"img-wrap ".concat(t.productsLayout),"is-loading":true},a("img",{class:"img-contain",alt:t.productImgAltTag(i,e,t.productLinks.length),loading:"lazy",src:t.pageIndex-2<t.mainSliderIndex?i.image:null,onLoad:t.imageLoadedHandler,onError:t.imageLoadedHandler}))))})))),a("div",{class:"description"},a("section",{class:"slider-description swiper ".concat(this.productLinks.length>1?"active":"disabled")},a("div",{class:"swiper-wrapper"},this.productLinks.map((function(e){return a("div",{class:"swiper-slide"},a("a",{href:e.link,class:"product-link","aria-label":"product ".concat(e.title?e.title:""),"data-ga-campaign":e.title,"data-link-id":e.id,onClick:t.productBuyClickHandler},!t.appState.settings.popup_products_title_disabled&&a("h2",{class:"main-title ".concat(t.productsLayout)},t.appState.settings.popup_products_title),a("p",{class:"title ".concat(t.productsLayout," ").concat(!t.appState.settings.show_price?"price-hidden":"")},e.title),t.appState.settings.show_price&&e.prices&&e.prices.price_label&&a("p",{class:"price ".concat(t.productsLayout),innerHTML:e.prices.price_label})),a("button",{class:"btn-buy ".concat(t.productsLayout," ").concat(i),onClick:t.btnBuyClickHandler,"aria-label":t.appState.settings.popup_products_button_caption,type:"button"},t.appState.settings.popup_products_button_caption))})))),this.productLinks.length>1&&a("div",{class:"nav ".concat(this.productsLayout," nav")},a("button",{class:"".concat(this.productsLayout," slider-control next small"),"aria-label":"slider-control prev",type:"button"},this.renderControlIcon("arrow","next")),a("div",{class:"pagination"}),a("button",{class:"".concat(this.productsLayout," slider-control prev small"),"aria-label":"slider-control next",type:"button"},this.renderControlIcon("arrow","prev")))))};t.prototype.renderMobileSlider=function(){var t=this;if(this.productLinks===undefined||this.productLinks.length===0)return null;var i=this.productLinks.length===1?"slider-no-active":"";return a("div",{class:"product mobile ".concat(this.layout," ").concat(this.productsLayout," ").concat(i)},a("section",{class:"slider mobile swiper ".concat(this.productsLayout),role:"region","aria-label":"product slider"},a("div",{class:"swiper-wrapper"},this.productLinks&&this.productLinks.map((function(i,e){return a("div",{class:"swiper-slide mobile"},a("a",{href:i.link,class:"product-link","aria-label":"product ".concat(i.title?i.title:""),"data-ga-campaign":i.title,"data-link-id":i.id,onClick:t.productBuyClickHandler},a("div",{class:"img-wrap mobile ".concat(t.productsLayout," "),"is-loading":true},a("img",{class:"img-cover",alt:t.productImgAltTag(i,e,t.productLinks.length),loading:"lazy",src:t.pageIndex-2<t.mainSliderIndex?i.image:null,onLoad:t.imageLoadedHandler,onError:t.imageLoadedHandler}))),a("div",{class:"description mobile"},a("a",{href:i.link,class:"product-link","aria-label":"product ".concat(i.title?i.title:""),"data-ga-campaign":i.title,"data-link-id":i.id,onClick:t.productBuyClickHandler},a("p",{class:"title mobile ".concat(t.productsLayout," ").concat(t.reverseClass)},i.title),i.prices&&i.prices.price_label&&a("p",{class:"price mobile ".concat(t.productsLayout," ").concat(t.reverseClass),innerHTML:i.prices.price_label})),a("button",{class:"btn-buy mobile ".concat(t.productsLayout," ").concat(t.reverseClass),onClick:t.btnBuyClickHandler,"aria-label":t.appState.settings.popup_products_button_caption,type:"button"},t.appState.settings.popup_products_button_caption)))})))))};t.prototype.render=function(){return a(o,{key:"2a153203e4192f8015d68f44a6b6c8b4d6ba2387",class:"page",role:"group","aria-label":this.ariaLabel},this.thumbnailLayout==="carousel"?this.renderCarouselThumbnail():this.renderStandardThumbnail(),this.layout!=="row"&&!this.isMobile&&a("div",{key:"f36aad1ab733622575e62157389cfb73954699e4",class:"products ".concat(this.layout," ").concat(this.productsLayout," ").concat(this.reverseClass)},this.productsLayout==="layout-2"?this.renderBottomSlider():this.renderSlider()),this.isMobile&&a("div",{key:"308d36c956ba04b2112cac14a3f0c73cb651544f",class:"products ".concat(this.layout," ").concat(this.productsLayout," ").concat(this.reverseClass)},this.renderMobileSlider()))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());j.style=C}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-DOaj8mQY.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.c}],execute:function(){var n=t({name:"slider",initialState:{realIndex:-1,slidesPerView:0,itemInFocus:-1},reducers:{setSliderIndex:function(e,t){e.realIndex=t.payload},setSliderSlidesPerView:function(e,t){e.slidesPerView=t.payload},setItemInFocus:function(e,t){e.itemInFocus=t.payload}}});var s=n.actions,i=s.setSliderIndex,r=s.setSliderSlidesPerView,c=s.setItemInFocus;e({a:i,b:r,c:c});var u=e("s",n.reducer)}}}));
|