@covet-pics/covet-pics-widget 0.167.2 → 0.167.4
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 +2 -5
- 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,5 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))e[i]=r[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?t(e.value):i(e.value).then(a,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(t=0)),t)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1];o=u;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(u);break}if(o[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++){if(o||!(n in r)){if(!o)o=Array.prototype.slice.call(r,0,n);o[n]=r[n]}}return e.concat(o||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/var NAMESPACE="covet-pics-widget";var BUILD={hydratedSelectorName:"hydrated",lazyLoad:true,updatable:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){e.__stencil__getHostRef=function(){return r};r.t=e};var registerHost=function(e,r){var t={i:0,$hostElement$:e,o:r,u:new Map};{t.l=new Promise((function(e){return t.v=e}))}{t.p=new Promise((function(e){return t.m=e}));e["s-p"]=[];e["s-rc"]=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.h.replace(/-/g,"_");var i=e.S;if(!i){return void 0}var o=cmpModules.get(i);if(o){return o[n]}
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_STYLE_ID="sty-id";var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var win=typeof window!=="undefined"?window:{};var plt={i:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e;var r=false;try{(e=win.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(e){}return r}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var escapeRegExpSpecialCharacters=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var i=null;var o=null;var a=false;var u=false;var s=[];var f=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){f(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(a&&u){s[s.length-1].C+=i}else{s.push(a?newVNode(null,i):i)}u=a}}};f(t);if(r){if(r.key){o=r.key}{var l=r.className||r.class;if(l){r.class=typeof l!=="object"?l:Object.keys(l).filter((function(e){return l[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,s,vdomFnUtils)}var c=newVNode(e,null);c.T=r;if(s.length>0){c.R=s}{c.A=o}return c};var newVNode=function(e,r){var t={i:0,k:e,C:r,N:null,R:null};{t.T=null}{t.A=null}return t};var Host={};var isHost=function(e){return e&&e.k===Host};var vdomFnUtils={forEach:function(e,r){return e.map(convertToPublic).forEach(r)},map:function(e,r){return e.map(convertToPublic).map(r).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.T,vchildren:e.R,vkey:e.A,vname:e.L,vtag:e.k,vtext:e.C}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var r=__assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var t=newVNode(e.vtag,e.vtext);t.T=e.vattrs;t.R=e.vchildren;t.A=e.vkey;t.L=e.vname;return t};var createSupportsRuleRe=function(e){var r=escapeRegExpSpecialCharacters(e);return new RegExp("(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?".concat(r,"))(").concat(r,"\\b)"),"g")};createSupportsRuleRe("::slotted");createSupportsRuleRe(":host");createSupportsRuleRe(":host-context");var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var o=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(o){if(typeof o==="string"){e=e.head||e;var a=rootAppliedStyles.get(e);var u=void 0;if(!a){rootAppliedStyles.set(e,a=new Set)}if(!a.has(i)){{u=document.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(i,'"]'))||win.document.createElement("style");u.innerHTML=o;var s=(n=plt.M)!=null?n:queryNonceMetaTagContent(win.document);if(s!=null){u.setAttribute("nonce",s)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var f=e.querySelectorAll("link[rel=preconnect]");var l=f.length>0?f[f.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(l==null?void 0:l.parentNode)===e?l:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(o);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=o+v.innerHTML}else{e.prepend(u)}}}else{e.append(u)}}if(r.i&1){e.insertBefore(u,null)}}if(r.i&4){u.innerHTML+=SLOT_FB_CSS}if(a){a.add(i)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return i};var attachStyles=function(e){var r=e.o;var t=e.$hostElement$;var n=r.i;var i=createTime("attachStyles",r.h);var o=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10){t["s-sc"]=o;t.classList.add(o+"-h")}i()};var getScopeId=function(e,r){return"sc-"+e.h};var setAccessor=function(e,r,t,n,i,o,a){if(t===n){return}var u=isMemberInElement(e,r);var s=r.toLowerCase();if(r==="class"){var f=e.classList;var l=parseClassList(t);var c=parseClassList(n);{f.remove.apply(f,l.filter((function(e){return e&&!c.includes(e)})));f.add.apply(f,c.filter((function(e){return e&&!l.includes(e)})))}}else if(r==="style"){{for(var v in t){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!t||n[v]!==t[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!u&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,s)){r=s.slice(2)}else{r=s[2]+r.slice(3)}if(t||n){var d=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,d)}if(n){plt.ael(e,r,n,d)}}}else{var p=isComplexType(n);if((u||p&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var m=n==null?"":n;if(r==="list"){u=false}else if(t==null||e[r]!=m){if(typeof e.__lookupSetter__(r)==="function"){e[r]=m}else{e.setAttribute(r,m)}}}else if(e[r]!==n){e[r]=n}}catch(e){}}var h=false;{if(s!==(s=s.replace(/^xlink\:?/,""))){r=s;h=true}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(XLINK_NS,r)}else{e.removeAttribute(r)}}}else if((!u||o&4||i)&&!p&&e.nodeType===1){n=n===true?"":n;if(h){e.setAttributeNS(XLINK_NS,r,n)}else{e.setAttribute(r,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t,n){var i=r.N.nodeType===11&&r.N.host?r.N.host:r.N;var o=e&&e.T||{};var a=r.T||{};{for(var u=0,s=sortedAttrNames(Object.keys(o));u<s.length;u++){var f=s[u];if(!(f in a)){setAccessor(i,f,o[f],void 0,t,r.i)}}}for(var l=0,c=sortedAttrNames(Object.keys(a));l<c.length;l++){var f=c[l];setAccessor(i,f,o[f],a[f],t,r.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var isSvgMode=false;var createElm=function(e,r,t){var n=r.R[t];var i=0;var o;var a;if(n.C!==null){o=n.N=win.document.createTextNode(n.C)}else{if(!isSvgMode){isSvgMode=n.k==="svg"}if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=n.N=win.document.createElementNS(isSvgMode?SVG_NS:HTML_NS,n.k);if(isSvgMode&&n.k==="foreignObject"){isSvgMode=false}{updateElement(null,n,isSvgMode)}if(n.R){for(i=0;i<n.R.length;++i){a=createElm(e,n,i);if(a){o.appendChild(a)}}}{if(n.k==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}o["s-hn"]=hostTagName;return o};var addVnodes=function(e,r,t,n,i,o){var a=e;var u;if(a.shadowRoot&&a.tagName===hostTagName){a=a.shadowRoot}for(;i<=o;++i){if(n[i]){u=createElm(null,t,i);if(u){n[i].N=u;insertBefore(a,u,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var o=i.N;nullifyVNodeRefs(i);if(o){o.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var o=0;var a=0;var u=0;var s=0;var f=r.length-1;var l=r[0];var c=r[f];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(o<=f&&a<=v){if(l==null){l=r[++o]}else if(c==null){c=r[--f]}else if(d==null){d=n[++a]}else if(p==null){p=n[--v]}else if(isSameVnode(l,d,i)){patch(l,d,i);l=r[++o];d=n[++a]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=r[--f];p=n[--v]}else if(isSameVnode(l,p,i)){patch(l,p,i);insertBefore(e,l.N,c.N.nextSibling);l=r[++o];p=n[--v]}else if(isSameVnode(c,d,i)){patch(c,d,i);insertBefore(e,c.N,l.N);c=r[--f];d=n[++a]}else{u=-1;{for(s=o;s<=f;++s){if(r[s]&&r[s].A!==null&&r[s].A===d.A){u=s;break}}}if(u>=0){h=r[u];if(h.k!==d.k){m=createElm(r&&r[a],t,u)}else{patch(h,d,i);r[u]=void 0;m=h.N}d=n[++a]}else{m=createElm(r&&r[a],t,a);d=n[++a]}if(m){{insertBefore(l.N.parentNode,m,l.N)}}}}if(o>f){addVnodes(e,n[v+1]==null?null:n[v+1].N,t,n,a,v)}else if(a>v){removeVnodes(r,o,f)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.k===r.k){if(!t){return e.A===r.A}if(t&&!e.A&&r.A){e.A=r.A}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.N=e.N;var i=e.R;var o=r.R;var a=r.k;var u=r.C;if(u===null){{isSvgMode=a==="svg"?true:a==="foreignObject"?false:isSvgMode}{updateElement(e,r,isSvgMode)}if(i!==null&&o!==null){updateChildren(n,i,r,o,t)}else if(o!==null){if(e.C!==null){n.textContent=""}addVnodes(n,null,r,o,0,o.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}if(isSvgMode&&a==="svg"){isSvgMode=false}}else if(e.C!==u){n.data=u}};var nullifyVNodeRefs=function(e){{e.T&&e.T.ref&&e.T.ref(null);e.R&&e.R.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.V||newVNode(null,null);var o=isHost(r);var a=o?r:h(null,null,r);hostTagName=n.tagName;if(t&&a.T){for(var u=0,s=Object.keys(a.T);u<s.length;u++){var f=s[u];if(n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)){a.T[f]=n[f]}}}a.k=null;a.i|=4;e.V=a;a.N=i.N=n.shadowRoot||n;patch(i,a,t)};var attachToAncestor=function(e,r){if(r&&!e.H&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.H=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.P);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.h);var i=e.t;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var o;if(r){{e.i|=256;if(e.O){e.O.map((function(e){var r=e[0],n=e[1];return safeCall(i,r,n,t)}));e.O=void 0}}o=safeCall(i,"componentWillLoad",void 0,t)}else{o=safeCall(i,"componentWillUpdate",void 0,t)}o=enqueue(o,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(o,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,o,a,u,s,f;return __generator(this,(function(l){i=e.$hostElement$;o=createTime("update",e.o.h);a=i["s-rc"];if(t){attachStyles(e)}u=createTime("render",e.o.h);{callRender(e,r,i,t)}if(a){a.map((function(e){return e()}));i["s-rc"]=void 0}u();o();{s=(n=i["s-p"])!=null?n:[];f=function(){return postUpdateComponent(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.i|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.i&=-17}{e.i|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.o.h;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.t;var o=e.P;safeCall(i,"componentDidRender",void 0,t);if(!(e.i&64)){e.i|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.m(t);if(!o){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{e.v(t)}{if(e.H){e.H();e.H=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=-517}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).u.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){throw new Error("Couldn't find host element for \"".concat(n.h,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var o=i.$hostElement$;var a=i.u.get(r);var u=i.i;var s=i.t;t=parsePropertyValue(t,n.$[r][0]);var f=Number.isNaN(a)&&Number.isNaN(t);var l=t!==a&&!f;if((!(u&8)||a===void 0)&&l){i.u.set(r,t);if(s){if(n.j&&u&128){var c=n.j[r];if(c){c.map((function(e){try{s[e](t,a,r)}catch(e){consoleError(e,o)}}))}}if((u&(2|16))===2){if(s.componentShouldUpdate){if(s.componentShouldUpdate(t,a,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var o=e.prototype;if(r.$||(r.j||e.watchers)){if(e.watchers&&!r.j){r.j=e.watchers}var a=Object.entries((n=r.$)!=null?n:{});a.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var a=Object.getOwnPropertyDescriptor(o,n)||{},u=a.get,s=a.set;if(u)r.$[n][0]|=2048;if(s)r.$[n][0]|=4096;if(t&1||!u){Object.defineProperty(o,n,{get:function(){{if((r.$[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.t:o;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(o,n,{set:function(e){var o=this;var a=getHostRef(this);if(s){var u=i&32?this[n]:a.$hostElement$[n];if(typeof u==="undefined"&&a.u.get(n)){e=a.u.get(n)}else if(!a.u.get(n)&&u){a.u.set(n,u)}s.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:a.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.$[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!a.t){a.p.then((function(){if(r.$[n][0]&4096&&a.t[n]!==a.u.get(n)){a.t[n]=e}}))}return}var f=function(){var t=a.t[n];if(!a.u.get(n)&&t){a.u.set(n,t)}a.t[n]=parsePropertyValue(e,i);setValue(o,n,a.t[n],r)};if(a.t){f()}else{a.p.then((function(){return f()}))}}}})}else if(t&1&&i&64){Object.defineProperty(o,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var i=getHostRef(this);return(t=i==null?void 0:i.l)==null?void 0:t.then((function(){var r;return(r=i.t)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var u=new Map;o.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var a;var s=u.get(e);if(i.hasOwnProperty(s)&&BUILD.lazyLoad){n=i[s];delete i[s]}else if(o.hasOwnProperty(s)&&typeof i[s]==="number"&&i[s]==n){return}else if(s==null){var f=getHostRef(i);var l=f==null?void 0:f.i;if(l&&!(l&8)&&l&128&&n!==t){var c=f.t;var v=(a=r.j)==null?void 0:a[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}var d=Object.getOwnPropertyDescriptor(o,s);n=n===null&&typeof i[s]==="boolean"?false:n;if(n!==i[s]&&(!d.get||!!d.set)){i[s]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.j)!=null?i:{}),true),a.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var r=e[0],t=e[1];var n=t[1]||r;u.set(n,r);return n})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,o,a,u,s,f,l,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.S;if(!i)return[3,4];o=loadModule(t,r);if(!(o&&"then"in o))return[3,2];a=uniqueTime();return[4,o];case 1:n=p.sent();a();return[3,3];case 2:n=o;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(r.D,'" was not found'))}if(!n.isProxied){{t.j=n.watchers}proxyComponent(n,t,2);n.isProxied=true}u=createTime("createInstance",t.h);{r.i|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.i&=-9}{r.i|=128}u();fireConnectedCallback(r.t,e);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return r.i|=128}));p.label=5;case 5:if(n&&n.style){f=void 0;if(typeof n.style==="string"){f=n.style}l=getScopeId(t);if(!styles.has(l)){c=createTime("registerStyles",t.h);registerStyle(l,f,!!(t.i&1));c()}}p.label=6;case 6:v=r.P;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.i&1)===0){var r=getHostRef(e);var t=r.o;var n=createTime("connectedCallback",t.h);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.P=i);break}}}if(t.$){Object.entries(t.$).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{addHostEventListeners(e,r,t.U);if(r==null?void 0:r.t){fireConnectedCallback(r.t,e)}else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback(r.t,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.i&1)===0){r=getHostRef(e);{if(r.I){r.I.map((function(e){return e()}));r.I=void 0}}if(r==null?void 0:r.t){disconnectInstance(r.t,e)}else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance(r.t,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var o=r.exclude||[];var a=win.customElements;var u=win.document.head;var s=u.querySelector("meta[charset]");var f=win.document.createElement("style");var l=[];var c;var v=true;Object.assign(plt,r);plt._=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={i:r[0],h:r[1],$:r[2],U:r[3]};if(n.i&4){d=true}{n.$=r[2]}{n.U=r[3]}{n.j=(t=r[4])!=null?t:{}}var u=n.h;var s=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.h,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;addHostEventListeners(this,r,n.U)}if(c){clearTimeout(c);c=null}if(v){l.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);var n=l.findIndex((function(r){return r===e}));if(n>-1){l.splice(n,1)}if(((r=t==null?void 0:t.V)==null?void 0:r.N)instanceof Node&&!t.V.N.isConnected){delete t.V.N}}))};r.prototype.componentOnReady=function(){return getHostRef(this).p};return r}(HTMLElement);n.S=e[0];if(!o.includes(u)&&!a.get(u)){i.push(u);a.define(u,proxyComponent(s,n,1))}}))}));if(i.length>0){if(d){f.textContent+=SLOT_FB_CSS}{f.textContent+=i.sort()+HYDRATED_CSS}if(f.innerHTML.length){f.setAttribute("data-styles","");var p=(t=plt.M)!=null?t:queryNonceMetaTagContent(win.document);if(p!=null){f.setAttribute("nonce",p)}u.insertBefore(f,s?s.nextSibling:u.firstChild)}}v=false;if(l.length){l.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,r){return r};var addHostEventListeners=function(e,r,t,n){if(t&&win.document){t.map((function(t){var n=t[0],i=t[1],o=t[2];var a=getHostListenerTarget(win.document,e,n);var u=hostListenerProxy(r,o);var s=hostListenerOpts(n);plt.ael(a,i,u,s);(r.I=r.I||[]).push((function(){return plt.rel(a,i,u,s)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.i&256){(n=e.t)==null?void 0:n[r](t)}else{(e.O=e.O||[]).push([r,t])}}}catch(r){consoleError(r,e.$hostElement$)}}};var getHostListenerTarget=function(e,r,t){if(t&4){return e}if(t&8){return win}if(t&16){return e.body}return r};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.M=e};export{Fragment as F,Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
var EN_US=["second","minute","hour","day","week","month","year"];function en_US(r,e){if(e===0)return["just now","right now"];var t=EN_US[Math.floor(e/2)];if(r>1)t+="s";return[r+" "+t+" ago","in "+r+" "+t]}var ZH_CN=["秒","分钟","小时","天","周","个月","年"];function zh_CN(r,e){if(e===0)return["刚刚","片刻后"];var t=ZH_CN[~~(e/2)];return[r+" "+t+"前",r+" "+t+"后"]}var Locales={};var register=function(r,e){Locales[r]=e};var getLocale=function(r){return Locales[r]||Locales["en_US"]};var SEC_ARRAY=[60,60,24,7,365/7/12,12];function toDate(r){if(r instanceof Date)return r;if(!isNaN(r)||/^\d+$/.test(r))return new Date(parseInt(r));r=(r||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2");return new Date(r)}function formatDiff(r,e){var t=r<0?1:0;r=Math.abs(r);var n=r;var a=0;for(;r>=SEC_ARRAY[a]&&a<SEC_ARRAY.length;a++){r/=SEC_ARRAY[a]}r=Math.floor(r);a*=2;if(r>(a===0?9:1))a+=1;return e(r,a,n)[t].replace("%s",r.toString())}function diffSec(r,e){var t=new Date;return(+t-+toDate(r))/1e3}var format=function(r,e,t){var n=diffSec(r);return formatDiff(n,getLocale(e))};register("en_US",en_US);register("zh_CN",zh_CN);export{format as f};
|
package/dist/esm-es5/index.js
DELETED
package/dist/esm-es5/loader.js
DELETED
|
@@ -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{n(o.next(e))}catch(e){a(e)}}function d(e){try{n(o["throw"](e))}catch(e){a(e)}}function n(e){e.done?i(e.value):r(e.value).then(s,d)}n((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:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(e){return function(t){return n([e,t])}}function n(d){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,d[0]&&(i=0)),i)try{if(o=1,r&&(a=d[0]&2?r["return"]:d[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;if(r=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;r=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1];a=d;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(d);break}if(a[2])i.ops.pop();i.trys.pop();continue}d=t.call(e,i)}catch(e){d=[6,e];r=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/import{b as bootstrapLazy}from"./index-C-mGosc6.js";export{s as setNonce}from"./index-C-mGosc6.js";import{g as globalScripts}from"./app-globals-CWiAxP5O.js";var defineCustomElements=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["covet-pics-post",[[1,"covet-pics-post",{postId:[2,"post-id"],environment:[1],item:[32],fetchingError:[32]}]]],["covet-pics-crop-text",[[0,"covet-pics-crop-text",{text:[1],textClass:[1,"text-class"],textColor:[1,"text-color"],ratio:[16],cropCSS:[32]}]]],["covet-pics-star-rating",[[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]}]]],["covet-pics-highlighted-hotspots_2",[[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"]}]]],["covet-pics-popup-freeflow-carousel_2",[[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"]}]]],["covet-pics-direct-buy_7",[[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]}]]],["covet-pics-gallery-header_6",[[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]}]]],["covet-pics-gallery-grid_3",[[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]}]]],["covet-pics-widget",[[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)]}}))}))};export{defineCustomElements};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
import{c as createSlice}from"./popup-B68hw7d9.js";var slice$1=createSlice({name:"sort",initialState:{selected:"",options:[{name:"All",value:""},{name:"Most recent",value:"most_recent"},{name:"Oldest",value:"oldest"},{name:"With review",value:"with_review"},{name:"Without review",value:"without_review"}]},reducers:{sortUpdated:function(e,a){e.selected=a.payload}}});var sortUpdated=slice$1.actions.sortUpdated;var sortReducer=slice$1.reducer;var slice=createSlice({name:"modals",initialState:{uploadOpen:false,popupOpen:false},reducers:{setUploadOpen:function(e,a){e.uploadOpen=a.payload},setPopupOpen:function(e,a){e.popupOpen=a.payload}}});var _a=slice.actions,setUploadOpen=_a.setUploadOpen,setPopupOpen=_a.setPopupOpen;var modalsReducer=slice.reducer;export{sortUpdated as a,setPopupOpen as b,setUploadOpen as c,modalsReducer as m,sortReducer as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/import{m as makeElementsArray,c as createElementIfNotDefined}from"./a11y-BM21er6f.js";function Navigation(r){var e=r.swiper,n=r.extendParams,t=r.on,i=r.emit;n({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});e.navigation={nextEl:null,prevEl:null};function a(r){var n;if(r&&typeof r==="string"&&e.isElement){n=e.el.querySelector(r)||e.hostEl.querySelector(r);if(n)return n}if(r){if(typeof r==="string")n=__spreadArray([],document.querySelectorAll(r),true);if(e.params.uniqueNavElements&&typeof r==="string"&&n&&n.length>1&&e.el.querySelectorAll(r).length===1){n=e.el.querySelector(r)}else if(n&&n.length===1){n=n[0]}}if(r&&!n)return r;return n}function f(r,n){var t=e.params.navigation;r=makeElementsArray(r);r.forEach((function(r){var i;if(r){(i=r.classList)[n?"add":"remove"].apply(i,t.disabledClass.split(" "));if(r.tagName==="BUTTON")r.disabled=n;if(e.params.watchOverflow&&e.enabled){r.classList[e.isLocked?"add":"remove"](t.lockClass)}}}))}function u(){var r=e.navigation,n=r.nextEl,t=r.prevEl;if(e.params.loop){f(t,false);f(n,false);return}f(t,e.isBeginning&&!e.params.rewind);f(n,e.isEnd&&!e.params.rewind)}function o(r){r.preventDefault();if(e.isBeginning&&!e.params.loop&&!e.params.rewind)return;e.slidePrev();i("navigationPrev")}function l(r){r.preventDefault();if(e.isEnd&&!e.params.loop&&!e.params.rewind)return;e.slideNext();i("navigationNext")}function s(){var r=e.params.navigation;e.params.navigation=createElementIfNotDefined(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(r.nextEl||r.prevEl))return;var n=a(r.nextEl);var t=a(r.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:t});n=makeElementsArray(n);t=makeElementsArray(t);var i=function(n,t){var i;if(n){n.addEventListener("click",t==="next"?l:o)}if(!e.enabled&&n){(i=n.classList).add.apply(i,r.lockClass.split(" "))}};n.forEach((function(r){return i(r,"next")}));t.forEach((function(r){return i(r,"prev")}))}function c(){var r=e.navigation,n=r.nextEl,t=r.prevEl;n=makeElementsArray(n);t=makeElementsArray(t);var i=function(r,n){var t;r.removeEventListener("click",n==="next"?l:o);(t=r.classList).remove.apply(t,e.params.navigation.disabledClass.split(" "))};n.forEach((function(r){return i(r,"next")}));t.forEach((function(r){return i(r,"prev")}))}t("init",(function(){if(e.params.navigation.enabled===false){d()}else{s();u()}}));t("toEdge fromEdge lock unlock",(function(){u()}));t("destroy",(function(){c()}));t("enable disable",(function(){var r=e.navigation,n=r.nextEl,t=r.prevEl;n=makeElementsArray(n);t=makeElementsArray(t);if(e.enabled){u();return}__spreadArray(__spreadArray([],n,true),t,true).filter((function(r){return!!r})).forEach((function(r){return r.classList.add(e.params.navigation.lockClass)}))}));t("click",(function(r,n){var t=e.navigation,a=t.nextEl,f=t.prevEl;a=makeElementsArray(a);f=makeElementsArray(f);var u=n.target;var o=f.includes(u)||a.includes(u);if(e.isElement&&!o){var l=n.path||n.composedPath&&n.composedPath();if(l){o=l.find((function(r){return a.includes(r)||f.includes(r)}))}}if(e.params.navigation.hideOnClick&&!o){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===u||e.pagination.el.contains(u)))return;var s=void 0;if(a.length){s=a[0].classList.contains(e.params.navigation.hiddenClass)}else if(f.length){s=f[0].classList.contains(e.params.navigation.hiddenClass)}if(s===true){i("navigationShow")}else{i("navigationHide")}__spreadArray(__spreadArray([],a,true),f,true).filter((function(r){return!!r})).forEach((function(r){return r.classList.toggle(e.params.navigation.hiddenClass)}))}}));var v=function(){var r;(r=e.el.classList).remove.apply(r,e.params.navigation.navigationDisabledClass.split(" "));s();u()};var d=function(){var r;(r=e.el.classList).add.apply(r,e.params.navigation.navigationDisabledClass.split(" "));c()};Object.assign(e.navigation,{enable:v,disable:d,update:u,init:s,destroy:c})}export{Navigation as N};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var a=0,i=r.length,t;a<i;a++){if(t||!(a in r)){if(!t)t=Array.prototype.slice.call(r,0,a);t[a]=r[a]}}return e.concat(t||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/import{m as makeElementsArray,c as createElementIfNotDefined,e as elementParents,a as classesToSelector,b as elementOuterSize,d as elementIndex}from"./a11y-BM21er6f.js";function Pagination(e){var r=e.swiper,n=e.extendParams,a=e.on,i=e.emit;var t="swiper-pagination";n({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(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(t,"-bullet"),bulletActiveClass:"".concat(t,"-bullet-active"),modifierClass:"".concat(t,"-"),currentClass:"".concat(t,"-current"),totalClass:"".concat(t,"-total"),hiddenClass:"".concat(t,"-hidden"),progressbarFillClass:"".concat(t,"-progressbar-fill"),progressbarOppositeClass:"".concat(t,"-progressbar-opposite"),clickableClass:"".concat(t,"-clickable"),lockClass:"".concat(t,"-lock"),horizontalClass:"".concat(t,"-horizontal"),verticalClass:"".concat(t,"-vertical"),paginationDisabledClass:"".concat(t,"-disabled")}});r.pagination={el:null,bullets:[]};var l;var s=0;function f(){return!r.params.pagination.el||!r.pagination.el||Array.isArray(r.pagination.el)&&r.pagination.el.length===0}function o(e,n){var a=r.params.pagination.bulletActiveClass;if(!e)return;e=e["".concat(n==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(a,"-").concat(n));e=e["".concat(n==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(a,"-").concat(n,"-").concat(n))}}}function u(e,r,n){e=e%n;r=r%n;if(r===e+1){return"next"}else if(r===e-1){return"previous"}return}function c(e){var n=e.target.closest(classesToSelector(r.params.pagination.bulletClass));if(!n){return}e.preventDefault();var a=elementIndex(n)*r.params.slidesPerGroup;if(r.params.loop){if(r.realIndex===a)return;var i=u(r.realIndex,a,r.slides.length);if(i==="next"){r.slideNext()}else if(i==="previous"){r.slidePrev()}else{r.slideToLoop(a)}}else{r.slideTo(a)}}function v(){var e,n;var a=r.rtl;var t=r.params.pagination;if(f())return;var u=r.pagination.el;u=makeElementsArray(u);var c;var v;var p=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:r.slides.length;var d=r.params.loop?Math.ceil(p/r.params.slidesPerGroup):r.snapGrid.length;if(r.params.loop){v=r.previousRealIndex||0;c=r.params.slidesPerGroup>1?Math.floor(r.realIndex/r.params.slidesPerGroup):r.realIndex}else if(typeof r.snapIndex!=="undefined"){c=r.snapIndex;v=r.previousSnapIndex}else{v=r.previousIndex||0;c=r.activeIndex||0}if(t.type==="bullets"&&r.pagination.bullets&&r.pagination.bullets.length>0){var m=r.pagination.bullets;var b;var g;var y=void 0;if(t.dynamicBullets){l=elementOuterSize(m[0],r.isHorizontal()?"width":"height");u.forEach((function(e){e.style[r.isHorizontal()?"width":"height"]="".concat(l*(t.dynamicMainBullets+4),"px")}));if(t.dynamicMainBullets>1&&v!==undefined){s+=c-(v||0);if(s>t.dynamicMainBullets-1){s=t.dynamicMainBullets-1}else if(s<0){s=0}}b=Math.max(c-s,0);g=b+(Math.min(m.length,t.dynamicMainBullets)-1);y=(g+b)/2}m.forEach((function(e){var r;var n=__spreadArray([],["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(t.bulletActiveClass).concat(e)})),true).map((function(e){return typeof e==="string"&&e.includes(" ")?e.split(" "):e})).flat();(r=e.classList).remove.apply(r,n)}));if(u.length>1){m.forEach((function(e){var n,a;var i=elementIndex(e);if(i===c){(n=e.classList).add.apply(n,t.bulletActiveClass.split(" "))}else if(r.isElement){e.setAttribute("part","bullet")}if(t.dynamicBullets){if(i>=b&&i<=g){(a=e.classList).add.apply(a,"".concat(t.bulletActiveClass,"-main").split(" "))}if(i===b){o(e,"prev")}if(i===g){o(e,"next")}}}))}else{var h=m[c];if(h){(e=h.classList).add.apply(e,t.bulletActiveClass.split(" "))}if(r.isElement){m.forEach((function(e,r){e.setAttribute("part",r===c?"bullet-active":"bullet")}))}if(t.dynamicBullets){var k=m[b];var A=m[g];for(var C=b;C<=g;C+=1){if(m[C]){(n=m[C].classList).add.apply(n,"".concat(t.bulletActiveClass,"-main").split(" "))}}o(k,"prev");o(A,"next")}}if(t.dynamicBullets){var x=Math.min(m.length,t.dynamicMainBullets+4);var E=(l*x-l)/2-y*l;var S=a?"right":"left";m.forEach((function(e){e.style[r.isHorizontal()?S:"top"]="".concat(E,"px")}))}}u.forEach((function(e,n){if(t.type==="fraction"){e.querySelectorAll(classesToSelector(t.currentClass)).forEach((function(e){e.textContent=t.formatFractionCurrent(c+1)}));e.querySelectorAll(classesToSelector(t.totalClass)).forEach((function(e){e.textContent=t.formatFractionTotal(d)}))}if(t.type==="progressbar"){var a=void 0;if(t.progressbarOpposite){a=r.isHorizontal()?"vertical":"horizontal"}else{a=r.isHorizontal()?"horizontal":"vertical"}var l=(c+1)/d;var s=1;var f=1;if(a==="horizontal"){s=l}else{f=l}e.querySelectorAll(classesToSelector(t.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(s,") scaleY(").concat(f,")");e.style.transitionDuration="".concat(r.params.speed,"ms")}))}if(t.type==="custom"&&t.renderCustom){e.innerHTML=t.renderCustom(r,c+1,d);if(n===0)i("paginationRender",e)}else{if(n===0)i("paginationRender",e);i("paginationUpdate",e)}if(r.params.watchOverflow&&r.enabled){e.classList[r.isLocked?"add":"remove"](t.lockClass)}}))}function p(){var e=r.params.pagination;if(f())return;var n=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:r.grid&&r.params.grid.rows>1?r.slides.length/Math.ceil(r.params.grid.rows):r.slides.length;var a=r.pagination.el;a=makeElementsArray(a);var t="";if(e.type==="bullets"){var l=r.params.loop?Math.ceil(n/r.params.slidesPerGroup):r.snapGrid.length;if(r.params.freeMode&&r.params.freeMode.enabled&&l>n){l=n}for(var s=0;s<l;s+=1){if(e.renderBullet){t+=e.renderBullet.call(r,s,e.bulletClass)}else{t+="<".concat(e.bulletElement," ").concat(r.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}}}if(e.type==="fraction"){if(e.renderFraction){t=e.renderFraction.call(r,e.currentClass,e.totalClass)}else{t='<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')}}if(e.type==="progressbar"){if(e.renderProgressbar){t=e.renderProgressbar.call(r,e.progressbarFillClass)}else{t='<span class="'.concat(e.progressbarFillClass,'"></span>')}}r.pagination.bullets=[];a.forEach((function(n){var a;if(e.type!=="custom"){n.innerHTML=t||""}if(e.type==="bullets"){(a=r.pagination.bullets).push.apply(a,n.querySelectorAll(classesToSelector(e.bulletClass)))}}));if(e.type!=="custom"){i("paginationRender",a[0])}}function d(){r.params.pagination=createElementIfNotDefined(r,r.originalParams.pagination,r.params.pagination,{el:"swiper-pagination"});var e=r.params.pagination;if(!e.el)return;var n;if(typeof e.el==="string"&&r.isElement){n=r.el.querySelector(e.el)}if(!n&&typeof e.el==="string"){n=__spreadArray([],document.querySelectorAll(e.el),true)}if(!n){n=e.el}if(!n||n.length===0)return;if(r.params.uniqueNavElements&&typeof e.el==="string"&&Array.isArray(n)&&n.length>1){n=__spreadArray([],r.el.querySelectorAll(e.el),true);if(n.length>1){n=n.find((function(e){if(elementParents(e,".swiper")[0]!==r.el)return false;return true}))}}if(Array.isArray(n)&&n.length===1)n=n[0];Object.assign(r.pagination,{el:n});n=makeElementsArray(n);n.forEach((function(n){var a;if(e.type==="bullets"&&e.clickable){(a=n.classList).add.apply(a,(e.clickableClass||"").split(" "))}n.classList.add(e.modifierClass+e.type);n.classList.add(r.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.type==="bullets"&&e.dynamicBullets){n.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic"));s=0;if(e.dynamicMainBullets<1){e.dynamicMainBullets=1}}if(e.type==="progressbar"&&e.progressbarOpposite){n.classList.add(e.progressbarOppositeClass)}if(e.clickable){n.addEventListener("click",c)}if(!r.enabled){n.classList.add(e.lockClass)}}))}function m(){var e=r.params.pagination;if(f())return;var n=r.pagination.el;if(n){n=makeElementsArray(n);n.forEach((function(n){var a;n.classList.remove(e.hiddenClass);n.classList.remove(e.modifierClass+e.type);n.classList.remove(r.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.clickable){(a=n.classList).remove.apply(a,(e.clickableClass||"").split(" "));n.removeEventListener("click",c)}}))}if(r.pagination.bullets)r.pagination.bullets.forEach((function(r){var n;return(n=r.classList).remove.apply(n,e.bulletActiveClass.split(" "))}))}a("changeDirection",(function(){if(!r.pagination||!r.pagination.el)return;var e=r.params.pagination;var n=r.pagination.el;n=makeElementsArray(n);n.forEach((function(n){n.classList.remove(e.horizontalClass,e.verticalClass);n.classList.add(r.isHorizontal()?e.horizontalClass:e.verticalClass)}))}));a("init",(function(){if(r.params.pagination.enabled===false){g()}else{d();p();v()}}));a("activeIndexChange",(function(){if(typeof r.snapIndex==="undefined"){v()}}));a("snapIndexChange",(function(){v()}));a("snapGridLengthChange",(function(){p();v()}));a("destroy",(function(){m()}));a("enable disable",(function(){var e=r.pagination.el;if(e){e=makeElementsArray(e);e.forEach((function(e){return e.classList[r.enabled?"remove":"add"](r.params.pagination.lockClass)}))}}));a("lock unlock",(function(){v()}));a("click",(function(e,n){var a=n.target;var t=makeElementsArray(r.pagination.el);if(r.params.pagination.el&&r.params.pagination.hideOnClick&&t&&t.length>0&&!a.classList.contains(r.params.pagination.bulletClass)){if(r.navigation&&(r.navigation.nextEl&&a===r.navigation.nextEl||r.navigation.prevEl&&a===r.navigation.prevEl))return;var l=t[0].classList.contains(r.params.pagination.hiddenClass);if(l===true){i("paginationShow")}else{i("paginationHide")}t.forEach((function(e){return e.classList.toggle(r.params.pagination.hiddenClass)}))}}));var b=function(){r.el.classList.remove(r.params.pagination.paginationDisabledClass);var e=r.pagination.el;if(e){e=makeElementsArray(e);e.forEach((function(e){return e.classList.remove(r.params.pagination.paginationDisabledClass)}))}d();p();v()};var g=function(){r.el.classList.add(r.params.pagination.paginationDisabledClass);var e=r.pagination.el;if(e){e=makeElementsArray(e);e.forEach((function(e){return e.classList.add(r.params.pagination.paginationDisabledClass)}))}m()};Object.assign(r.pagination,{enable:b,disable:g,render:p,update:v,init:d,destroy:m})}export{Pagination as P};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var r=function(e,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=e[t]};return r(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))r[o]=e[o]}return r};return __assign.apply(this,arguments)};var __rest=this&&this.__rest||function(r,e){var t={};for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0)t[n]=r[n];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++){if(e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o]))t[n[o]]=r[n[o]]}return t};var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++){if(i||!(n in e)){if(!i)i=Array.prototype.slice.call(e,0,n);i[n]=e[n]}}return r.concat(i||Array.prototype.slice.call(e))};
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/function formatProdErrorMessage$1(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 $$observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var symbol_observable_default=$$observable;var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")};var ActionTypes={INIT:"@@redux/INIT".concat(randomString()),REPLACE:"@@redux/REPLACE".concat(randomString()),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION".concat(randomString())}};var actionTypes_default=ActionTypes;function isPlainObject$1(r){if(typeof r!=="object"||r===null)return false;var e=r;while(Object.getPrototypeOf(e)!==null){e=Object.getPrototypeOf(e)}return Object.getPrototypeOf(r)===e||Object.getPrototypeOf(r)===null}function createStore(r,e,t){var n;if(typeof r!=="function"){throw new Error(formatProdErrorMessage$1(2))}if(typeof e==="function"&&typeof t==="function"||typeof t==="function"&&typeof arguments[3]==="function"){throw new Error(formatProdErrorMessage$1(0))}if(typeof e==="function"&&typeof t==="undefined"){t=e;e=void 0}if(typeof t!=="undefined"){if(typeof t!=="function"){throw new Error(formatProdErrorMessage$1(1))}return t(createStore)(r,e)}var o=r;var i=e;var a=new Map;var u=a;var f=0;var c=false;function s(){if(u===a){u=new Map;a.forEach((function(r,e){u.set(e,r)}))}}function v(){if(c){throw new Error(formatProdErrorMessage$1(3))}return i}function l(r){if(typeof r!=="function"){throw new Error(formatProdErrorMessage$1(4))}if(c){throw new Error(formatProdErrorMessage$1(5))}var e=true;s();var t=f++;u.set(t,r);return function r(){if(!e){return}if(c){throw new Error(formatProdErrorMessage$1(6))}e=false;s();u.delete(t);a=null}}function d(r){if(!isPlainObject$1(r)){throw new Error(formatProdErrorMessage$1(7))}if(typeof r.type==="undefined"){throw new Error(formatProdErrorMessage$1(8))}if(typeof r.type!=="string"){throw new Error(formatProdErrorMessage$1(17))}if(c){throw new Error(formatProdErrorMessage$1(9))}try{c=true;i=o(i,r)}finally{c=false}var e=a=u;e.forEach((function(r){r()}));return r}function p(r){if(typeof r!=="function"){throw new Error(formatProdErrorMessage$1(10))}o=r;d({type:actionTypes_default.REPLACE})}function y(){var r;var e=l;return r={subscribe:function(r){if(typeof r!=="object"||r===null){throw new Error(formatProdErrorMessage$1(11))}function t(){var e=r;if(e.next){e.next(v())}}t();var n=e(t);return{unsubscribe:n}}},r[symbol_observable_default]=function(){return this},r}d({type:actionTypes_default.INIT});var m=(n={dispatch:d,subscribe:l,getState:v,replaceReducer:p},n[symbol_observable_default]=y,n);return m}function assertReducerShape(r){Object.keys(r).forEach((function(e){var t=r[e];var n=t(void 0,{type:actionTypes_default.INIT});if(typeof n==="undefined"){throw new Error(formatProdErrorMessage$1(12))}if(typeof t(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(formatProdErrorMessage$1(13))}}))}function combineReducers(r){var e=Object.keys(r);var t={};for(var n=0;n<e.length;n++){var o=e[n];if(typeof r[o]==="function"){t[o]=r[o]}}var i=Object.keys(t);var a;try{assertReducerShape(t)}catch(r){a=r}return function r(e,n){if(e===void 0){e={}}if(a){throw a}var o=false;var u={};for(var f=0;f<i.length;f++){var c=i[f];var s=t[c];var v=e[c];var l=s(v,n);if(typeof l==="undefined"){throw new Error(formatProdErrorMessage$1(14))}u[c]=l;o=o||l!==v}o=o||i.length!==Object.keys(e).length;return o?u:e}}function compose(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}if(r.length===0){return function(r){return r}}if(r.length===1){return r[0]}return r.reduce((function(r,e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return r(e.apply(void 0,t))}}))}function applyMiddleware(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return function(e){return function(t,n){var o=e(t,n);var i=function(){throw new Error(formatProdErrorMessage$1(15))};var a={getState:o.getState,dispatch:function(r){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}return i.apply(void 0,__spreadArray([r],e,false))}};var u=r.map((function(r){return r(a)}));i=compose.apply(void 0,u)(o.dispatch);return __assign(__assign({},o),{dispatch:i})}}}function isAction(r){return isPlainObject$1(r)&&"type"in r&&typeof r.type==="string"}var NOTHING=Symbol.for("immer-nothing");var DRAFTABLE=Symbol.for("immer-draftable");var DRAFT_STATE=Symbol.for("immer-state");function die(r){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}throw new Error("[Immer] minified error nr: ".concat(r,". Full error at: https://bit.ly/3cXEKWf"))}var getPrototypeOf=Object.getPrototypeOf;function isDraft(r){return!!r&&!!r[DRAFT_STATE]}function isDraftable(r){var e;if(!r)return false;return isPlainObject(r)||Array.isArray(r)||!!r[DRAFTABLE]||!!((e=r.constructor)===null||e===void 0?void 0:e[DRAFTABLE])||isMap(r)||isSet(r)}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject(r){if(!r||typeof r!=="object")return false;var e=getPrototypeOf(r);if(e===null){return true}var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;if(t===Object)return true;return typeof t=="function"&&Function.toString.call(t)===objectCtorString}function each(r,e){if(getArchtype(r)===0){Object.entries(r).forEach((function(t){var n=t[0],o=t[1];e(n,o,r)}))}else{r.forEach((function(t,n){return e(n,t,r)}))}}function getArchtype(r){var e=r[DRAFT_STATE];return e?e.type_:Array.isArray(r)?1:isMap(r)?2:isSet(r)?3:0}function has(r,e){return getArchtype(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function set(r,e,t){var n=getArchtype(r);if(n===2)r.set(e,t);else if(n===3){r.add(t)}else r[e]=t}function is(r,e){if(r===e){return r!==0||1/r===1/e}else{return r!==r&&e!==e}}function isMap(r){return r instanceof Map}function isSet(r){return r instanceof Set}function latest(r){return r.copy_||r.base_}function shallowCopy(r,e){if(isMap(r)){return new Map(r)}if(isSet(r)){return new Set(r)}if(Array.isArray(r))return Array.prototype.slice.call(r);if(!e&&isPlainObject(r)){if(!getPrototypeOf(r)){var t=Object.create(null);return Object.assign(t,r)}return __assign({},r)}var n=Object.getOwnPropertyDescriptors(r);delete n[DRAFT_STATE];var o=Reflect.ownKeys(n);for(var i=0;i<o.length;i++){var a=o[i];var u=n[a];if(u.writable===false){u.writable=true;u.configurable=true}if(u.get||u.set)n[a]={configurable:true,writable:true,enumerable:u.enumerable,value:r[a]}}return Object.create(getPrototypeOf(r),n)}function freeze(r,e){if(e===void 0){e=false}if(isFrozen(r)||isDraft(r)||!isDraftable(r))return r;if(getArchtype(r)>1){r.set=r.add=r.clear=r.delete=dontMutateFrozenCollections}Object.freeze(r);if(e)each(r,(function(r,e){return freeze(e,true)}));return r}function dontMutateFrozenCollections(){die(2)}function isFrozen(r){return Object.isFrozen(r)}var plugins={};function getPlugin(r){var e=plugins[r];if(!e){die(0,r)}return e}var currentScope;function getCurrentScope(){return currentScope}function createScope(r,e){return{drafts_:[],parent_:r,immer_:e,canAutoFreeze_:true,unfinalizedDrafts_:0}}function usePatchesInScope(r,e){if(e){getPlugin("Patches");r.patches_=[];r.inversePatches_=[];r.patchListener_=e}}function revokeScope(r){leaveScope(r);r.drafts_.forEach(revokeDraft);r.drafts_=null}function leaveScope(r){if(r===currentScope){currentScope=r.parent_}}function enterScope(r){return currentScope=createScope(currentScope,r)}function revokeDraft(r){var e=r[DRAFT_STATE];if(e.type_===0||e.type_===1)e.revoke_();else e.revoked_=true}function processResult(r,e){e.unfinalizedDrafts_=e.drafts_.length;var t=e.drafts_[0];var n=r!==void 0&&r!==t;if(n){if(t[DRAFT_STATE].modified_){revokeScope(e);die(4)}if(isDraftable(r)){r=finalize(e,r);if(!e.parent_)maybeFreeze(e,r)}if(e.patches_){getPlugin("Patches").generateReplacementPatches_(t[DRAFT_STATE].base_,r,e.patches_,e.inversePatches_)}}else{r=finalize(e,t,[])}revokeScope(e);if(e.patches_){e.patchListener_(e.patches_,e.inversePatches_)}return r!==NOTHING?r:void 0}function finalize(r,e,t){if(isFrozen(e))return e;var n=e[DRAFT_STATE];if(!n){each(e,(function(o,i){return finalizeProperty(r,n,e,o,i,t)}));return e}if(n.scope_!==r)return e;if(!n.modified_){maybeFreeze(r,n.base_,true);return n.base_}if(!n.finalized_){n.finalized_=true;n.scope_.unfinalizedDrafts_--;var o=n.copy_;var i=o;var a=false;if(n.type_===3){i=new Set(o);o.clear();a=true}each(i,(function(e,i){return finalizeProperty(r,n,o,e,i,t,a)}));maybeFreeze(r,o,false);if(t&&r.patches_){getPlugin("Patches").generatePatches_(n,t,r.patches_,r.inversePatches_)}}return n.copy_}function finalizeProperty(r,e,t,n,o,i,a){if(isDraft(o)){var u=i&&e&&e.type_!==3&&!has(e.assigned_,n)?i.concat(n):void 0;var f=finalize(r,o,u);set(t,n,f);if(isDraft(f)){r.canAutoFreeze_=false}else return}else if(a){t.add(o)}if(isDraftable(o)&&!isFrozen(o)){if(!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1){return}finalize(r,o);if(!e||!e.scope_.parent_)maybeFreeze(r,o)}}function maybeFreeze(r,e,t){if(t===void 0){t=false}if(!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_){freeze(e,t)}}function createProxyProxy(r,e){var t=Array.isArray(r);var n={type_:t?1:0,scope_:e?e.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:false};var o=n;var i=objectTraps;if(t){o=[n];i=arrayTraps}var a=Proxy.revocable(o,i),u=a.revoke,f=a.proxy;n.draft_=f;n.revoke_=u;return f}var objectTraps={get:function(r,e){if(e===DRAFT_STATE)return r;var t=latest(r);if(!has(t,e)){return readPropFromProto(r,t,e)}var n=t[e];if(r.finalized_||!isDraftable(n)){return n}if(n===peek(r.base_,e)){prepareCopy(r);return r.copy_[e]=createProxy(n,r)}return n},has:function(r,e){return e in latest(r)},ownKeys:function(r){return Reflect.ownKeys(latest(r))},set:function(r,e,t){var n=getDescriptorFromProto(latest(r),e);if(n===null||n===void 0?void 0:n.set){n.set.call(r.draft_,t);return true}if(!r.modified_){var o=peek(latest(r),e);var i=o===null||o===void 0?void 0:o[DRAFT_STATE];if(i&&i.base_===t){r.copy_[e]=t;r.assigned_[e]=false;return true}if(is(t,o)&&(t!==void 0||has(r.base_,e)))return true;prepareCopy(r);markChanged(r)}if(r.copy_[e]===t&&(t!==void 0||e in r.copy_)||Number.isNaN(t)&&Number.isNaN(r.copy_[e]))return true;r.copy_[e]=t;r.assigned_[e]=true;return true},deleteProperty:function(r,e){if(peek(r.base_,e)!==void 0||e in r.base_){r.assigned_[e]=false;prepareCopy(r);markChanged(r)}else{delete r.assigned_[e]}if(r.copy_){delete r.copy_[e]}return true},getOwnPropertyDescriptor:function(r,e){var t=latest(r);var n=Reflect.getOwnPropertyDescriptor(t,e);if(!n)return n;return{writable:true,configurable:r.type_!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){die(11)},getPrototypeOf:function(r){return getPrototypeOf(r.base_)},setPrototypeOf:function(){die(12)}};var arrayTraps={};each(objectTraps,(function(r,e){arrayTraps[r]=function(){arguments[0]=arguments[0][0];return e.apply(this,arguments)}}));arrayTraps.deleteProperty=function(r,e){return arrayTraps.set.call(this,r,e,void 0)};arrayTraps.set=function(r,e,t){return objectTraps.set.call(this,r[0],e,t,r[0])};function peek(r,e){var t=r[DRAFT_STATE];var n=t?latest(t):r;return n[e]}function readPropFromProto(r,e,t){var n;var o=getDescriptorFromProto(e,t);return o?"value"in o?o.value:(n=o.get)===null||n===void 0?void 0:n.call(r.draft_):void 0}function getDescriptorFromProto(r,e){if(!(e in r))return void 0;var t=getPrototypeOf(r);while(t){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=getPrototypeOf(t)}return void 0}function markChanged(r){if(!r.modified_){r.modified_=true;if(r.parent_){markChanged(r.parent_)}}}function prepareCopy(r){if(!r.copy_){r.copy_=shallowCopy(r.base_,r.scope_.immer_.useStrictShallowCopy_)}}var Immer2=function(){function r(r){var e=this;this.autoFreeze_=true;this.useStrictShallowCopy_=false;this.produce=function(r,t,n){if(typeof r==="function"&&typeof t!=="function"){var o=t;t=r;var i=e;return function r(e){var n=this;if(e===void 0){e=o}var a=[];for(var u=1;u<arguments.length;u++){a[u-1]=arguments[u]}return i.produce(e,(function(r){return t.call.apply(t,__spreadArray([n,r],a,false))}))}}if(typeof t!=="function")die(6);if(n!==void 0&&typeof n!=="function")die(7);var a;if(isDraftable(r)){var u=enterScope(e);var f=createProxy(r,void 0);var c=true;try{a=t(f);c=false}finally{if(c)revokeScope(u);else leaveScope(u)}usePatchesInScope(u,n);return processResult(a,u)}else if(!r||typeof r!=="object"){a=t(r);if(a===void 0)a=r;if(a===NOTHING)a=void 0;if(e.autoFreeze_)freeze(a,true);if(n){var s=[];var v=[];getPlugin("Patches").generateReplacementPatches_(r,a,s,v);n(s,v)}return a}else die(1,r)};this.produceWithPatches=function(r,t){if(typeof r==="function"){return function(t){var n=[];for(var o=1;o<arguments.length;o++){n[o-1]=arguments[o]}return e.produceWithPatches(t,(function(e){return r.apply(void 0,__spreadArray([e],n,false))}))}}var n,o;var i=e.produce(r,t,(function(r,e){n=r;o=e}));return[i,n,o]};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(!isDraftable(r))die(8);if(isDraft(r))r=current(r);var e=enterScope(this);var t=createProxy(r,void 0);t[DRAFT_STATE].isManual_=true;leaveScope(e);return t};r.prototype.finishDraft=function(r,e){var t=r&&r[DRAFT_STATE];if(!t||!t.isManual_)die(9);var n=t.scope_;usePatchesInScope(n,e);return processResult(void 0,n)};r.prototype.setAutoFreeze=function(r){this.autoFreeze_=r};r.prototype.setUseStrictShallowCopy=function(r){this.useStrictShallowCopy_=r};r.prototype.applyPatches=function(r,e){var t;for(t=e.length-1;t>=0;t--){var n=e[t];if(n.path.length===0&&n.op==="replace"){r=n.value;break}}if(t>-1){e=e.slice(t+1)}var o=getPlugin("Patches").applyPatches_;if(isDraft(r)){return o(r,e)}return this.produce(r,(function(r){return o(r,e)}))};return r}();function createProxy(r,e){var t=isMap(r)?getPlugin("MapSet").proxyMap_(r,e):isSet(r)?getPlugin("MapSet").proxySet_(r,e):createProxyProxy(r,e);var n=e?e.scope_:getCurrentScope();n.drafts_.push(t);return t}function current(r){if(!isDraft(r))die(10,r);return currentImpl(r)}function currentImpl(r){if(!isDraftable(r)||isFrozen(r))return r;var e=r[DRAFT_STATE];var t;if(e){if(!e.modified_)return e.base_;e.finalized_=true;t=shallowCopy(r,e.scope_.immer_.useStrictShallowCopy_)}else{t=shallowCopy(r,true)}each(t,(function(r,e){set(t,r,currentImpl(e))}));if(e){e.finalized_=false}return t}var immer=new Immer2;var produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function createThunkMiddleware(r){var e=function(e){var t=e.dispatch,n=e.getState;return function(e){return function(o){if(typeof o==="function"){return o(t,n,r)}return e(o)}}};return e}var thunk=createThunkMiddleware();var withExtraArgument=createThunkMiddleware;var composeWithDevTools=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 compose;return compose.apply(null,arguments)};function createAction(r,e){function t(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}if(e){var o=e.apply(void 0,t);if(!o){throw new Error(formatProdErrorMessage(0))}return __assign(__assign({type:r,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:r,payload:t[0]}}t.toString=function(){return"".concat(r)};t.type=r;t.match=function(e){return isAction(e)&&e.type===r};return t}var Tuple=function(r){__extends(e,r);function e(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var o=r.apply(this,t)||this;Object.setPrototypeOf(o,e.prototype);return o}Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:false,configurable:true});e.prototype.concat=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return r.prototype.concat.apply(this,e)};e.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(e.bind.apply(e,__spreadArray([void 0],r[0].concat(this),false)))}return new(e.bind.apply(e,__spreadArray([void 0],r.concat(this),false)))};return e}(Array);function freezeDraftable(r){return isDraftable(r)?produce(r,(function(){})):r}function getOrInsertComputed(r,e,t){if(r.has(e))return r.get(e);return r.set(e,t(e)).get(e)}function isBoolean(r){return typeof r==="boolean"}var buildGetDefaultMiddleware=function(){return function r(e){var t=(e!==null&&e!==void 0?e:{}).thunk,n=t===void 0?true:t;var o=new Tuple;if(n){if(isBoolean(n)){o.push(thunk)}else{o.push(withExtraArgument(n.extraArgument))}}return o}};var SHOULD_AUTOBATCH="RTK_autoBatch";var createQueueWithTimer=function(r){return function(e){setTimeout(e,r)}};var autoBatchEnhancer=function(r){if(r===void 0){r={type:"raf"}}return function(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}var o=e.apply(void 0,t);var i=true;var a=false;var u=false;var f=new Set;var c=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window!=="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):r.type==="callback"?r.queueNotification:createQueueWithTimer(r.timeout);var s=function(){u=false;if(a){a=false;f.forEach((function(r){return r()}))}};return Object.assign({},o,{subscribe:function(r){var e=function(){return i&&r()};var t=o.subscribe(e);f.add(r);return function(){t();f.delete(r)}},dispatch:function(r){var e;try{i=!((e=r===null||r===void 0?void 0:r.meta)===null||e===void 0?void 0:e[SHOULD_AUTOBATCH]);a=!i;if(a){if(!u){u=true;c(s)}}return o.dispatch(r)}finally{i=true}}})}}};var buildGetDefaultEnhancers=function(r){return function e(t){var n=(t!==null&&t!==void 0?t:{}).autoBatch,o=n===void 0?true:n;var i=new Tuple(r);if(o){i.push(autoBatchEnhancer(typeof o==="object"?o:void 0))}return i}};function configureStore(r){var e=buildGetDefaultMiddleware();var t=r||{},n=t.reducer,o=n===void 0?void 0:n,i=t.middleware,a=t.devTools,u=a===void 0?true:a,f=t.preloadedState,c=f===void 0?void 0:f,s=t.enhancers,v=s===void 0?void 0:s;var l;if(typeof o==="function"){l=o}else if(isPlainObject$1(o)){l=combineReducers(o)}else{throw new Error(formatProdErrorMessage(1))}var d;if(typeof i==="function"){d=i(e)}else{d=e()}var p=compose;if(u){p=composeWithDevTools(__assign({trace:"production"!=="production"},typeof u==="object"&&u))}var y=applyMiddleware.apply(void 0,d);var m=buildGetDefaultEnhancers(y);var h=typeof v==="function"?v(m):m();var b=p.apply(void 0,h);return createStore(l,c,b)}function executeReducerBuilderCallback(r){var e={};var t=[];var n;var o={addCase:function(r,t){var n=typeof r==="string"?r:r.type;if(!n){throw new Error(formatProdErrorMessage(28))}if(n in e){throw new Error(formatProdErrorMessage(29))}e[n]=t;return o},addMatcher:function(r,e){t.push({matcher:r,reducer:e});return o},addDefaultCase:function(r){n=r;return o}};r(o);return[e,t,n]}function isStateFunction(r){return typeof r==="function"}function createReducer(r,e){var t=executeReducerBuilderCallback(e),n=t[0],o=t[1],i=t[2];var a;if(isStateFunction(r)){a=function(){return freezeDraftable(r())}}else{var u=freezeDraftable(r);a=function(){return u}}function f(r,e){if(r===void 0){r=a()}var t=__spreadArray([n[e.type]],o.filter((function(r){var t=r.matcher;return t(e)})).map((function(r){var e=r.reducer;return e})),true);if(t.filter((function(r){return!!r})).length===0){t=[i]}return t.reduce((function(r,t){if(t){if(isDraft(r)){var n=r;var o=t(n,e);if(o===void 0){return r}return o}else if(!isDraftable(r)){var o=t(r,e);if(o===void 0){if(r===null){return r}throw Error("A case reducer on a non-draftable value must not return undefined")}return o}else{return produce(r,(function(r){return t(r,e)}))}}return r}),r)}f.getInitialState=a;return f}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(r,e){return"".concat(r,"/").concat(e)}function buildCreateSlice(r){var e;var t=r===void 0?{}:r,n=t.creators;var o=(e=n===null||n===void 0?void 0:n.asyncThunk)===null||e===void 0?void 0:e[asyncThunkSymbol];return function r(e){var t=e.name,n=e.reducerPath,i=n===void 0?t:n;if(!t){throw new Error(formatProdErrorMessage(11))}var a=(typeof e.reducers==="function"?e.reducers(buildReducerCreators()):e.reducers)||{};var u=Object.keys(a);var f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]};var c={addCase:function(r,e){var t=typeof r==="string"?r:r.type;if(!t){throw new Error(formatProdErrorMessage(12))}if(t in f.sliceCaseReducersByType){throw new Error(formatProdErrorMessage(13))}f.sliceCaseReducersByType[t]=e;return c},addMatcher:function(r,e){f.sliceMatchers.push({matcher:r,reducer:e});return c},exposeAction:function(r,e){f.actionCreators[r]=e;return c},exposeCaseReducer:function(r,e){f.sliceCaseReducersByName[r]=e;return c}};u.forEach((function(r){var n=a[r];var i={reducerName:r,type:getType(t,r),createNotation:typeof e.reducers==="function"};if(isAsyncThunkSliceReducerDefinition(n)){handleThunkCaseReducerDefinition(i,n,c,o)}else{handleNormalReducerDefinition(i,n,c)}}));function s(){var r=typeof e.extraReducers==="function"?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],t=r[0],n=t===void 0?{}:t,o=r[1],i=o===void 0?[]:o,a=r[2],u=a===void 0?void 0:a;var c=__assign(__assign({},n),f.sliceCaseReducersByType);return createReducer(e.initialState,(function(r){for(var e in c){r.addCase(e,c[e])}for(var t=0,n=f.sliceMatchers;t<n.length;t++){var o=n[t];r.addMatcher(o.matcher,o.reducer)}for(var a=0,s=i;a<s.length;a++){var v=s[a];r.addMatcher(v.matcher,v.reducer)}if(u){r.addDefaultCase(u)}}))}var v=function(r){return r};var l=new Map;var d=new WeakMap;var p;function y(r,e){if(!p)p=s();return p(r,e)}function m(){if(!p)p=s();return p.getInitialState()}function h(r,t){if(t===void 0){t=false}function n(e){var o=e[r];if(typeof o==="undefined"){if(t){o=getOrInsertComputed(d,n,m)}}return o}function o(r){if(r===void 0){r=v}var n=getOrInsertComputed(l,t,(function(){return new WeakMap}));return getOrInsertComputed(n,r,(function(){var n;var o={};for(var i=0,a=Object.entries((n=e.selectors)!==null&&n!==void 0?n:{});i<a.length;i++){var u=a[i],f=u[0],c=u[1];o[f]=wrapSelector(c,r,(function(){return getOrInsertComputed(d,r,m)}),t)}return o}))}return{reducerPath:r,getSelectors:o,get selectors(){return o(n)},selectSlice:n}}var b=__assign(__assign({name:t,reducer:y,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:m},h(i)),{injectInto:function(r,e){if(e===void 0){e={}}var t=e.reducerPath,n=__rest(e,["reducerPath"]);var o=t!==null&&t!==void 0?t:i;r.inject({reducerPath:o,reducer:y},n);return __assign(__assign({},b),h(o,true))}});return b}}function wrapSelector(r,e,t,n){function o(o){var i=[];for(var a=1;a<arguments.length;a++){i[a-1]=arguments[a]}var u=e(o);if(typeof u==="undefined"){if(n){u=t()}}return r.apply(void 0,__spreadArray([u],i,false))}o.unwrapped=r;return o}var createSlice=buildCreateSlice();function buildReducerCreators(){function r(r,e){return __assign({_reducerDefinitionType:"asyncThunk",payloadCreator:r},e)}r.withTypes=function(){return r};return{reducer:function(r){var e;return Object.assign((e={},e[r.name]=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return r.apply(void 0,e)},e)[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer:function(r,e){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:e}},asyncThunk:r}}function handleNormalReducerDefinition(r,e,t){var n=r.type,o=r.reducerName,i=r.createNotation;var a;var u;if("reducer"in e){if(i&&!isCaseReducerWithPrepareDefinition(e)){throw new Error(formatProdErrorMessage(17))}a=e.reducer;u=e.prepare}else{a=e}t.addCase(n,a).exposeCaseReducer(o,a).exposeAction(o,u?createAction(n,u):createAction(n))}function isAsyncThunkSliceReducerDefinition(r){return r._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(r){return r._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition(r,e,t,n){var o=r.type,i=r.reducerName;if(!n){throw new Error(formatProdErrorMessage(18))}var a=e.payloadCreator,u=e.fulfilled,f=e.pending,c=e.rejected,s=e.settled,v=e.options;var l=n(o,a,v);t.exposeAction(i,l);if(u){t.addCase(l.fulfilled,u)}if(f){t.addCase(l.pending,f)}if(c){t.addCase(l.rejected,c)}if(s){t.addMatcher(l.settled,s)}t.exposeCaseReducer(i,{fulfilled:u||noop,pending:f||noop,rejected:c||noop,settled:s||noop})}function noop(){}function formatProdErrorMessage(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 initialState={itemId:-1,items:[],productId:-1,products:[],isModalOpenEventSent:false,isNextEnable:true};var slice=createSlice({name:"popup",initialState:initialState,reducers:{setPopupItemId:function(r,e){r.itemId=e.payload},setPopupItems:function(r,e){r.items=e.payload},setIsModalOpenEventSent:function(r,e){r.isModalOpenEventSent=e.payload},updatePopItemLink:function(r,e){var t=e.payload,n=t.itemId,o=t.linkId,i=t.properties;var a=r.items.find((function(r){return r.id===n}));var u=a.links.findIndex((function(r){return r.id===o}));var f=a.links[u];a.links[u]=Object.assign({},f,i)},changePopupItem:function(r,e){var t=e.payload;var n=r.items.findIndex((function(e){return e.id===r.itemId}));if(t==="next"&&n<r.items.length){r.itemId=r.items[n+1].id}if(t==="previous"&&n>0){r.itemId=r.items[n-1].id}},setPopupProductId:function(r,e){r.productId=e.payload},setProducts:function(r,e){r.products=e.payload}}});var _a=slice.actions,setPopupItemId=_a.setPopupItemId,setPopupItems=_a.setPopupItems,updatePopItemLink=_a.updatePopItemLink,changePopupItem=_a.changePopupItem,setProducts=_a.setProducts,setPopupProductId=_a.setPopupProductId,setIsModalOpenEventSent=_a.setIsModalOpenEventSent;var popup=slice.reducer;var getPopupItem=function(r){var e=r.popup.items.find((function(e){return e.id===r.popup.itemId}));return e!==undefined?e:null};var getPopupFreeflowItems=function(r){return __spreadArray([],r.popup.items.filter((function(r){return r.source!=="upload_widget"})),true)};var getPopupProduct=function(r){var e=r.popup.products.find((function(e){return e.id===r.popup.productId}));return e!==undefined?e:null};var directBuyIsOpen=function(r){return r.popup.productId!==-1};var isPreviousEnable=function(r){var e=r.popup.items.findIndex((function(e){return e.id===r.popup.itemId}));var t=r.popup.items[e-1];return t&&t.source!=="upload_widget"};var isNextEnable=function(r){var e=r.popup.items.findIndex((function(e){return e.id===r.popup.itemId}));var t=r.popup.items[e+1];return t&&t.source!=="upload_widget"};export{combineReducers as a,configureStore as b,createSlice as c,setPopupItemId as d,setPopupProductId as e,changePopupItem as f,setIsModalOpenEventSent as g,getPopupItem as h,getPopupProduct as i,directBuyIsOpen as j,isPreviousEnable as k,isNextEnable as l,setProducts as m,getPopupFreeflowItems as n,popup as p,setPopupItems as s,updatePopItemLink as u};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
import{h,F as Fragment}from"./index-C-mGosc6.js";var __rest=undefined&&undefined.__rest||function(e,r){var l={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0)l[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var t=0,n=Object.getOwnPropertySymbols(e);t<n.length;t++){if(r.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t]))l[n[t]]=e[n[t]]}return l};var DynamicTag=function(e,r){var l=e.elTag,n=l===void 0?"div":l,t=__rest(e,["elTag"]);var o=n;return h(o,Object.assign({},t),r)};var StarRating=function(e){var r=e.rating,l=e.hideRating,n=e.ratingClass,t=e.starClass,o=e.label;var a=[1,2,3,4,5];var i=n!==undefined?n:"";var c=t!==undefined?t:"";return h("div",{class:"".concat(i),role:"radiogroup","aria-label":"star rating: ".concat(r," out of 5 stars")},!l&&a.map((function(e){return h("span",{class:"icon-star ".concat(c," ").concat(e<=r?"active":""),role:"radio","aria-checked":"".concat(e<=r),"aria-label":"star ".concat(e,"/").concat(a.length)},h("svg",{class:"svg-star",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"icon star"},h("path",{d:"M4.10511 3.85963C4.10511 3.85963 1.83465 4.12327 0.320057 4.29953C0.183543 4.31685 0.0628347 4.41251 0.0175692 4.55789C-0.0276963 4.70327 0.0175691 4.85467 0.118159 4.95033C1.24333 6.02672 2.93396 7.63867 2.93396 7.63867C2.93252 7.63867 2.46981 9.98349 2.16229 11.548C2.13642 11.6896 2.18529 11.8395 2.30312 11.9291C2.42023 12.0188 2.57112 12.0203 2.68967 11.9503C4.01458 11.1609 5.99907 9.97371 5.99907 9.97371C5.99907 9.97371 7.98429 11.1609 9.30703 11.951C9.42772 12.0203 9.57866 12.0188 9.69574 11.9291C9.8136 11.8395 9.86246 11.6896 9.83589 11.5488C9.52834 9.98349 9.06634 7.63867 9.06634 7.63867C9.06634 7.63867 10.757 6.02672 11.8821 4.95259C11.9828 4.85391 12.0273 4.70252 11.9828 4.55789C11.9382 4.41327 11.8175 4.31761 11.681 4.30103C10.1664 4.12327 7.8952 3.85963 7.8952 3.85963C7.8952 3.85963 6.95397 1.67673 6.32671 0.221454C6.2678 0.0911426 6.14422 0 5.99907 0C5.85394 0 5.72964 0.091896 5.67359 0.221454C5.04563 1.67673 4.10511 3.85963 4.10511 3.85963Z"})))})),o&&h("span",{class:"rating-data"},o))};var StarRatingPopupRewiw=function(e){var r=e.rating,l=e.starOnlyClass;var n=[1,2,3,4,5];return h("div",{class:"review-top ".concat(l),role:"radiogroup","aria-label":"star rating"},n.map((function(e){return h("span",{class:"review-star ".concat(e<=r?"active":""),role:"radio","aria-checked":"".concat(e<=r),"aria-label":"star ".concat(e,"/").concat(n.length)},h("svg",{class:"svg-star",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"icon star"},h("path",{d:"M4.10511 3.85963C4.10511 3.85963 1.83465 4.12327 0.320057 4.29953C0.183543 4.31685 0.0628347 4.41251 0.0175692 4.55789C-0.0276963 4.70327 0.0175691 4.85467 0.118159 4.95033C1.24333 6.02672 2.93396 7.63867 2.93396 7.63867C2.93252 7.63867 2.46981 9.98349 2.16229 11.548C2.13642 11.6896 2.18529 11.8395 2.30312 11.9291C2.42023 12.0188 2.57112 12.0203 2.68967 11.9503C4.01458 11.1609 5.99907 9.97371 5.99907 9.97371C5.99907 9.97371 7.98429 11.1609 9.30703 11.951C9.42772 12.0203 9.57866 12.0188 9.69574 11.9291C9.8136 11.8395 9.86246 11.6896 9.83589 11.5488C9.52834 9.98349 9.06634 7.63867 9.06634 7.63867C9.06634 7.63867 10.757 6.02672 11.8821 4.95259C11.9828 4.85391 12.0273 4.70252 11.9828 4.55789C11.9382 4.41327 11.8175 4.31761 11.681 4.30103C10.1664 4.12327 7.8952 3.85963 7.8952 3.85963C7.8952 3.85963 6.95397 1.67673 6.32671 0.221454C6.2678 0.0911426 6.14422 0 5.99907 0C5.85394 0 5.72964 0.091896 5.67359 0.221454C5.04563 1.67673 4.10511 3.85963 4.10511 3.85963Z"})))})))};var ProgressRating=function(e){var r=e.rating,l=e.percentage,n=e.count;return h(Fragment,null,h("p",{class:"star-score"},r," ",r>1?"stars":"star"),h("div",{class:"progressbar",role:"progressbar","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100",tabindex:"0"},h("span",{class:"progressbar-value",style:{width:"".concat(l,"%")}})),h("p",{class:"percent-count","aria-label":"voted ".concat(n,", ").concat(r," ").concat(r>1?"stars":"star")},n))};var VerificationIcon=function(e){var r=e.iconClass;return h("svg",{class:"icon-verified ".concat(r!==undefined?r:""),"aria-hidden":"true",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M5.5 0L6.52916 0.658169L7.73705 0.4755L8.40954 1.49537L9.5873 1.81978L9.78683 3.025L10.7308 3.80041L10.4229 4.98258L10.9699 6.07491L10.2077 7.02963L10.2631 8.25L9.17857 8.8122L8.73282 9.94959L7.51335 10.022L6.64351 10.8798L5.5 10.45L4.35649 10.8798L3.48665 10.022L2.26718 9.94959L1.82143 8.8122L0.73686 8.25L0.79227 7.02963L0.0301294 6.07491L0.577117 4.98258L0.269189 3.80041L1.21317 3.025L1.4127 1.81978L2.59046 1.49537L3.26295 0.4755L4.47084 0.658169L5.5 0Z",fill:"#157F3F"}),h("path",{d:"M7.66344 4.09961L4.66344 7.09961L3.2998 5.73597",stroke:"white","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}))};var BadgeVerified=function(e){var r=e.badgeClass,l=e.iconClass;return h("div",{class:"badge ".concat(r!==undefined?r:""),"aria-label":"verified review"},h(VerificationIcon,{iconClass:"badge-icon ".concat(l!==undefined?l:"")}),h("p",{class:"badge-text"},"Verified review"))};var BadgeHoverVerified=function(e){var r=e.badgeClass,l=e.iconClass;return h("div",{class:"badge-hover ".concat(r!==undefined?r:"")},h("p",{class:"badge-hover-text"},"Verified review"),h("svg",{class:"icon-verified relative ".concat(l!==undefined?l:""),width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M5.5 0L6.52916 0.658169L7.73705 0.4755L8.40954 1.49537L9.5873 1.81978L9.78683 3.025L10.7308 3.80041L10.4229 4.98258L10.9699 6.07491L10.2077 7.02963L10.2631 8.25L9.17857 8.8122L8.73282 9.94959L7.51335 10.022L6.64351 10.8798L5.5 10.45L4.35649 10.8798L3.48665 10.022L2.26718 9.94959L1.82143 8.8122L0.73686 8.25L0.79227 7.02963L0.0301294 6.07491L0.577117 4.98258L0.269189 3.80041L1.21317 3.025L1.4127 1.81978L2.59046 1.49537L3.26295 0.4755L4.47084 0.658169L5.5 0Z",fill:"#157F3F"}),h("path",{d:"M7.66344 4.09961L4.66344 7.09961L3.2998 5.73597",stroke:"white","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})))};var IconFB=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{fill:"#000","fill-rule":"nonzero",d:"M15.455 9.336H13.35V7.955c0-.519.344-.64.586-.64h1.486v-2.28l-2.047-.009c-2.272 0-2.79 1.701-2.79 2.79v1.52H9.272v2.35h1.314v6.65h2.764v-6.65h1.865l.241-2.35z"})))};var IconTwitter=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{fill:"#000","fill-rule":"nonzero",d:"M19 8.302a5.869 5.869 0 0 1-1.65.437 2.8 2.8 0 0 0 1.263-1.536 5.87 5.87 0 0 1-1.824.674A2.915 2.915 0 0 0 14.693 7c-1.586 0-2.872 1.243-2.872 2.777 0 .217.025.43.074.633a8.251 8.251 0 0 1-5.92-2.902c-.247.41-.389.887-.389 1.397 0 .963.507 1.813 1.278 2.311a2.94 2.94 0 0 1-1.301-.348v.036c0 1.345.99 2.467 2.304 2.723a2.98 2.98 0 0 1-1.298.047c.366 1.103 1.427 1.906 2.683 1.928a5.889 5.889 0 0 1-3.567 1.19c-.231 0-.46-.014-.685-.04A8.332 8.332 0 0 0 9.403 18c5.283 0 8.172-4.231 8.172-7.901 0-.12-.002-.24-.008-.36A5.714 5.714 0 0 0 19 8.302z"})))};var IconPinterest=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{fill:"#000","fill-rule":"nonzero",d:"M12.303 6C8.778 6 7 8.543 7 10.665c0 1.284.483 2.427 1.52 2.852.17.07.322.003.37-.187.035-.13.116-.46.152-.599.05-.187.03-.253-.107-.416-.298-.355-.49-.814-.49-1.464 0-1.887 1.404-3.577 3.654-3.577 1.992 0 3.087 1.226 3.087 2.862 0 2.153-.947 3.97-2.352 3.97-.776 0-1.357-.646-1.171-1.438.223-.946.655-1.967.655-2.65 0-.611-.327-1.121-1.001-1.121-.793 0-1.431.826-1.431 1.933 0 .704.237 1.181.237 1.181l-.955 4.07c-.283 1.207-.042 2.687-.022 2.836.012.09.125.11.177.044.073-.097 1.018-1.27 1.34-2.444.09-.332.52-2.052.52-2.052.259.495 1.012.93 1.814.93 2.385 0 4.003-2.188 4.003-5.117C17 8.063 15.136 6 12.303 6z"})))};var IconEmail=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{fill:"#000","fill-rule":"nonzero",d:"M6 8v8.5h12V8H6zM5 7h14v10.5H5V7zm13 1l-.916.004L12 11.636 6.915 8.004 6 8l.004.582 5.705 4.075a.5.5 0 0 0 .582 0l3.062-2.188 2.654-1.895L18 8z"})))};var IconShareLink=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{fill:"#000","fill-rule":"nonzero",d:"M13 7.042V14h-1V6.912l-2.04 2.04H8.546l3.889-3.89 3.889 3.89H14.91L13 7.042zM18.5 17.5V11h1v7.5h-14V11h1v6.5h12z"})))};var IconCopy=function(){return h("svg",{width:"16",height:"20",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},h("path",{d:"M768 1664h896v-640h-416q-40 0-68-28t-28-68v-416h-384v1152zm256-1440v-64q0-13-9.5-22.5t-22.5-9.5h-704q-13 0-22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h704q13 0 22.5-9.5t9.5-22.5zm256 672h299l-299-299v299zm512 128v672q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-544q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h1088q40 0 68 28t28 68v328q21 13 36 28l408 408q28 28 48 76t20 88z"}))};var IconChecked=function(){return h("svg",{width:"16",height:"20",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},h("path",{d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"}))};var IconArrow1Left=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M48 0H0v48h48z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M16.731 23.659l12.445 12.445v1.131L15.6 23.66l13.576-13.577v1.132z"})))};var IconArrow1Right=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M48 0H0v48h48z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M31.198 23.659L18.753 36.104v1.131L32.329 23.66 18.753 10.082v1.132z"})))};var IconArrow2Left=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 48V0h48v48z"}),h("path",{class:"symbol",d:"M14 32v-1h20v1H14zm-2-10.098V14.03h2.424c1.74 0 2.904.588 2.904 2.316 0 1.656-1.188 2.436-2.904 2.436h-1.416v3.12H12zm1.008-3.936h1.284c1.38 0 2.04-.504 2.04-1.62 0-1.14-.684-1.512-2.04-1.512h-1.284v3.132zm11.304 3.936h-1.14l-1.896-3.324H19.86v3.324h-1.008V14.03h2.472c1.596 0 2.748.576 2.748 2.208 0 1.224-.696 1.956-1.764 2.232l2.004 3.432zm-4.452-7.068v2.928h1.32c1.224 0 1.896-.504 1.896-1.524 0-1.032-.672-1.404-1.896-1.404h-1.32zm5.904 7.068V14.03H30.3v.84h-3.528v2.472h2.976v.852h-2.976v2.856h3.648v.852h-4.656zm7.704 0L30.96 14.03h1.056l1.272 4.248c.276.936.468 1.68.756 2.604h.048c.288-.924.492-1.668.756-2.604l1.26-4.248h1.02l-2.496 7.872h-1.164z"})))};var IconArrow2Right=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48.0",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 48V0h48v48z"}),h("path",{class:"symbol",d:"M14 32v-1h20v1H14zm-1.862-9.936v-7.872h1.032l2.856 4.944.852 1.632h.048c-.048-.792-.132-1.68-.132-2.508v-4.068h.948v7.872H16.71l-2.844-4.956-.852-1.62h-.048c.048.792.12 1.632.12 2.46v4.116h-.948zm7.704 0v-7.872h4.536v.84H20.85v2.472h2.976v.852H20.85v2.856h3.648v.852h-4.656zm5.376 0l2.292-4.068-2.148-3.804h1.104l1.08 2.016c.192.36.36.684.612 1.14h.048c.216-.456.36-.78.552-1.14l1.044-2.016h1.056l-2.136 3.852 2.292 4.02H29.91l-1.164-2.124c-.204-.384-.42-.78-.672-1.26h-.048c-.228.48-.42.876-.624 1.26l-1.14 2.124h-1.044zm8.388 0v-7.032h-2.388v-.84h5.772v.84h-2.388v7.032h-.996z"})))};var IconArrow3Left=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 48V0h48v48z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M14.85 16.324l2.04 2.04v1.414L13 15.89 16.89 12v1.414l-1.91 1.91h18.957v1H14.85zm.434 17.148l.024 1.02v1.968h-.984v-8.292h.816l.084.672h.036c.528-.444 1.176-.816 1.86-.816 1.5 0 2.304 1.164 2.304 2.976 0 1.98-1.188 3.144-2.52 3.144-.54 0-1.08-.252-1.62-.672zm.024-.768c.528.444 1.044.612 1.428.612.96 0 1.668-.876 1.668-2.316 0-1.284-.432-2.148-1.536-2.148-.492 0-.984.276-1.56.792v3.06zM20.984 34v-5.832h.816l.084 1.056h.036c.396-.732.996-1.2 1.656-1.2.252 0 .432.036.624.12l-.192.864a1.632 1.632 0 0 0-.564-.096c-.492 0-1.08.36-1.476 1.344V34h-.984zm3.612-2.904c0-1.908 1.284-3.072 2.616-3.072 1.488 0 2.328 1.068 2.328 2.736 0 .204-.012.396-.036.54h-3.936c.072 1.26.828 2.052 1.944 2.052.552 0 1.02-.18 1.452-.456l.348.648c-.504.324-1.128.6-1.92.6-1.56 0-2.796-1.14-2.796-3.048zm.96-.444h3.12c0-1.188-.528-1.848-1.44-1.848-.816 0-1.56.672-1.68 1.848zM32.3 34l-2.1-5.832h1.02l1.104 3.312c.168.576.36 1.164.54 1.716h.048c.168-.552.36-1.14.528-1.716l1.104-3.312h.972L33.452 34H32.3z"})))};var IconArrow3Right=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 0h48v48H0z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M31.958 16.454H13v-1h19.088l-2.04-2.04V12l3.89 3.89-3.89 3.888v-1.414l1.91-1.91zM14.064 34v-5.832h.816l.084.84H15c.552-.552 1.152-.984 1.956-.984 1.224 0 1.776.792 1.776 2.28V34h-.984v-3.564c0-1.092-.336-1.56-1.104-1.56-.6 0-1.008.312-1.596.9V34h-.984zm6.132-2.904c0-1.908 1.284-3.072 2.616-3.072 1.488 0 2.328 1.068 2.328 2.736 0 .204-.012.396-.036.54h-3.936c.072 1.26.828 2.052 1.944 2.052.552 0 1.02-.18 1.452-.456l.348.648c-.504.324-1.128.6-1.92.6-1.56 0-2.796-1.14-2.796-3.048zm.96-.444h3.12c0-1.188-.528-1.848-1.44-1.848-.816 0-1.56.672-1.68 1.848zM25.68 34l1.908-3.048-1.764-2.784h1.068l.78 1.284c.18.312.372.648.576.972h.048c.168-.324.348-.66.528-.972l.708-1.284h1.032L28.8 31.06 30.696 34h-1.068l-.852-1.356a30.21 30.21 0 0 0-.636-1.044h-.048c-.204.336-.396.684-.588 1.044L26.712 34H25.68zm6.336-1.8v-3.228h-.864v-.744l.912-.06.12-1.632h.828v1.632h1.572v.804h-1.572v3.24c0 .72.228 1.128.9 1.128.204 0 .468-.084.66-.156l.192.744c-.324.108-.72.216-1.08.216-1.248 0-1.668-.792-1.668-1.944z"})))};var IconArrow4Left=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true"},h("g",{class:"background","fill-rule":"evenodd"},h("path",{d:"M40 0H0v40h40z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M15.912 20l2.04-2.04v-1.414l-3.89 3.889 3.89 3.889V22.91L16.042 21H27v-1H15.912z"})))};var IconArrow4Right=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true"},h("g",{class:"background","fill-rule":"evenodd"},h("path",{d:"M0 0h40v40H0z"}),h("path",{class:"symbol","fill-rule":"nonzero",d:"M24.088 20l-2.04-2.04v-1.414l3.89 3.889-3.89 3.889V22.91l1.91-1.91H13v-1h11.088z"})))};var IconArrow5Left=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80 40","aria-hidden":"true"},h("g",{class:"background","fill-rule":"evenodd"},h("path",{d:"M80 0H0v40h80z"}),h("path",{class:"symbol",d:"M16.042 21l1.91 1.91v1.414l-3.89-3.89 3.89-3.888v1.414L15.912 20H35v1H16.042zm27.064 2.428l.026 1.105v2.132h-1.066v-8.983h.884l.091.728h.039c.572-.481 1.274-.884 2.015-.884 1.625 0 2.496 1.261 2.496 3.224 0 2.145-1.287 3.406-2.73 3.406-.585 0-1.17-.273-1.755-.728zm.026-.832c.572.481 1.131.663 1.547.663 1.04 0 1.807-.949 1.807-2.509 0-1.391-.468-2.327-1.664-2.327-.533 0-1.066.299-1.69.858v3.315zM49.081 24v-6.318h.884l.091 1.144h.039c.429-.793 1.079-1.3 1.794-1.3.273 0 .468.039.676.13l-.208.936a1.768 1.768 0 0 0-.611-.104c-.533 0-1.17.39-1.599 1.456V24h-1.066zm3.713-3.146c0-2.067 1.391-3.328 2.834-3.328 1.612 0 2.522 1.157 2.522 2.964 0 .221-.013.429-.039.585h-4.264c.078 1.365.897 2.223 2.106 2.223.598 0 1.105-.195 1.573-.494l.377.702c-.546.351-1.222.65-2.08.65-1.69 0-3.029-1.235-3.029-3.302zm1.04-.481h3.38c0-1.287-.572-2.002-1.56-2.002-.884 0-1.69.728-1.82 2.002zM60.875 24L58.6 17.682h1.105l1.196 3.588c.182.624.39 1.261.585 1.859h.052c.182-.598.39-1.235.572-1.859l1.196-3.588h1.053L62.123 24h-1.248z"})))};var IconArrow5Right=function(){return h("svg",{"aria-hidden":"true",viewBox:"-14 0 80 10",xmlns:"http://www.w3.org/2000/svg"},h("g",{class:"background","fill-rule":"evenodd"},h("path",{class:"symbol",d:"M18.9144 3.55306V7.05006C18.9144 8.29806 19.3694 9.15606 20.7214 9.15606C21.1114 9.15606 21.5404 9.03906 21.8914 8.92206L21.6834 8.11606C21.4754 8.19406 21.1894 8.28506 20.9684 8.28506C20.2404 8.28506 19.9934 7.84306 19.9934 7.06306V3.55306H21.6964V2.68206H19.9934V0.914062H19.0964L18.9664 2.68206L17.9784 2.74706V3.55306H18.9144ZM30.0004 5.00006H49.0888L47.0488 2.96004V1.54583L50.9379 5.43492L47.0488 9.324V7.90979L48.9585 6.00006H30.0004V5.00006ZM0.0664062 2.68206V9.00006H1.13241V4.42406C1.76941 3.78706 2.21141 3.44906 2.86141 3.44906C3.69341 3.44906 4.05741 3.95606 4.05741 5.13906V9.00006H5.12341V4.99606C5.12341 3.38406 4.52541 2.52606 3.19941 2.52606C2.32841 2.52606 1.67841 2.99406 1.08041 3.59206H1.04141L0.950406 2.68206H0.0664062ZM6.50941 5.85406C6.50941 3.78706 7.90041 2.52606 9.34341 2.52606C10.9554 2.52606 11.8654 3.68306 11.8654 5.49006C11.8654 5.71106 11.8524 5.91906 11.8264 6.07506H7.56241C7.64041 7.44006 8.45941 8.29806 9.66841 8.29806C10.2664 8.29806 10.7734 8.10306 11.2414 7.80406L11.6184 8.50606C11.0724 8.85706 10.3964 9.15606 9.53841 9.15606C7.84841 9.15606 6.50941 7.92106 6.50941 5.85406ZM10.9294 5.37306H7.54941C7.67941 4.09906 8.48541 3.37106 9.36941 3.37106C10.3574 3.37106 10.9294 4.08606 10.9294 5.37306ZM12.2504 9.00006L14.3174 5.69806L12.4064 2.68206H13.5634L14.4084 4.07306L14.4604 4.16323C14.6403 4.47528 14.8309 4.80607 15.0324 5.12606H15.0844C15.2664 4.77506 15.4614 4.41106 15.6564 4.07306L16.4234 2.68206H17.5414L15.6304 5.81506L17.6844 9.00006H16.5274L15.6044 7.53106C15.3834 7.15406 15.1494 6.76406 14.9154 6.40006H14.8634C14.6424 6.76406 14.4344 7.14106 14.2264 7.53106L13.3684 9.00006H12.2504Z"})))};var IconArrowPrev=function(){return h("svg",{viewBox:"0 0 100 100",role:"img"},h("title",null,"arrow next"),h("path",{d:"M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z",class:"arrow",transform:"translate(100, 100) rotate(180) "}))};var IconArrowNext=function(){return h("svg",{viewBox:"0 0 100 100",role:"img"},h("title",null,"arrow previous"),h("path",{d:"M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z",class:"arrow",transform:"translate(100, 100) rotate(180) "}))};var IconClose1=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{class:"background",d:"M0 0h40v40H0z",opacity:".3"}),h("path",{class:"symbol",d:"M20.127 19.36l5.173-5.11.7.691-5.174 5.11 5.069 5.008-.7.69-5.068-5.006L14.805 26l-.7-.691 5.322-5.257L14 14.692l.7-.692 5.427 5.36z"})))};var IconClose2=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("circle",{class:"background",cx:"16",cy:"16",r:"15"}),h("path",{class:"symbol",d:"M16.082 15.748l4.563-4.583.355.355-4.564 4.584 4.357 4.376-.354.355-4.357-4.376L11.562 21l-.355-.355 4.521-4.541L11 11.354l.355-.354 4.727 4.748z"})))};var IconClose3=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 0h40v40H0z"}),h("g",{class:"symbol"},h("path",{d:"M5.858 5.358l28.284 28.284M5.858 33.642L34.142 5.358"}))))};var IconClose4=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 24","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 0h40v24H0z"}),h("path",{class:"symbol",d:"M.686 10.408c0-2.954 1.75-4.76 4.102-4.76 1.092 0 1.96.532 2.506 1.134l-.658.742c-.49-.518-1.078-.854-1.834-.854-1.75 0-2.912 1.428-2.912 3.71 0 2.31 1.106 3.766 2.856 3.766.868 0 1.512-.364 2.1-1.022l.658.714c-.714.84-1.624 1.33-2.786 1.33-2.31 0-4.032-1.764-4.032-4.76zM9.142 15V5.816h1.176v8.19h4.004V15h-5.18zm10.136.168c-2.31 0-3.934-1.848-3.934-4.802 0-2.94 1.624-4.718 3.934-4.718 2.296 0 3.92 1.792 3.92 4.718 0 2.954-1.624 4.802-3.92 4.802zm0-1.022c1.638 0 2.716-1.484 2.716-3.78 0-2.282-1.078-3.696-2.716-3.696-1.652 0-2.73 1.414-2.73 3.696 0 2.296 1.078 3.78 2.73 3.78zm5.166-.336l.7-.812c.658.686 1.568 1.148 2.534 1.148 1.204 0 1.918-.602 1.918-1.498 0-.938-.672-1.232-1.54-1.624l-1.316-.574c-.854-.364-1.862-1.022-1.862-2.366 0-1.4 1.232-2.436 2.898-2.436 1.092 0 2.058.462 2.702 1.134l-.616.756c-.56-.532-1.246-.868-2.086-.868-1.036 0-1.722.518-1.722 1.344 0 .882.812 1.218 1.526 1.526l1.316.56c1.064.462 1.89 1.092 1.89 2.45 0 1.456-1.204 2.618-3.136 2.618a4.421 4.421 0 0 1-3.206-1.358zM32.508 15V5.816H37.8v.98h-4.116V9.68h3.472v.994h-3.472v3.332h4.256V15h-5.432zM0 20h39v1H0v-1z"})))};var IconClose5=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 32","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{d:"M0 0h28v32H0z"}),h("path",{class:"symbol",d:"M14.115 7.648l6.389-6.417.496.497-6.39 6.417 6.1 6.127-.496.497-6.099-6.126L7.785 15l-.496-.497 6.33-6.358L7 1.497 7.496 1l6.62 6.648zM1 26.608c0-2.532 1.5-4.08 3.516-4.08.936 0 1.68.456 2.148.972l-.564.636c-.42-.444-.924-.732-1.572-.732-1.5 0-2.496 1.224-2.496 3.18 0 1.98.948 3.228 2.448 3.228.744 0 1.296-.312 1.8-.876l.564.612c-.612.72-1.392 1.14-2.388 1.14-1.98 0-3.456-1.512-3.456-4.08zm7.188 2.76V22h.984v7.44c0 .312.132.432.276.432.06 0 .108 0 .216-.024l.132.744c-.132.06-.3.096-.564.096-.744 0-1.044-.468-1.044-1.32zm2.628-1.728c0-1.956 1.272-3.072 2.7-3.072 1.428 0 2.7 1.116 2.7 3.072 0 1.932-1.272 3.048-2.7 3.048-1.428 0-2.7-1.116-2.7-3.048zm1.02 0c0 1.332.684 2.232 1.68 2.232 1.008 0 1.68-.9 1.68-2.232 0-1.344-.672-2.256-1.68-2.256-.996 0-1.68.912-1.68 2.256zm5.268 2.244l.492-.66c.504.408 1.02.696 1.716.696.768 0 1.152-.408 1.152-.912 0-.6-.696-.864-1.332-1.104-.828-.3-1.74-.696-1.74-1.68 0-.936.744-1.656 2.004-1.656.732 0 1.368.3 1.812.66l-.468.624c-.396-.3-.816-.516-1.332-.516-.732 0-1.068.396-1.068.84 0 .54.636.756 1.296 1.008.84.312 1.776.66 1.776 1.764 0 .948-.756 1.74-2.136 1.74-.828 0-1.62-.348-2.172-.804zm5.244-2.244c0-1.908 1.284-3.072 2.616-3.072 1.488 0 2.328 1.068 2.328 2.736 0 .204-.012.396-.036.54H23.32c.072 1.26.828 2.052 1.944 2.052.552 0 1.02-.18 1.452-.456l.348.648c-.504.324-1.128.6-1.92.6-1.56 0-2.796-1.14-2.796-3.048zm.96-.444h3.12c0-1.188-.528-1.848-1.44-1.848-.816 0-1.56.672-1.68 1.848z"})))};var IconPopupFreeflowClose=function(){return h("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-freeflow-btn-bg-color)",d:"M32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16Z"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color)",d:"M22.2883 20.9617C22.4644 21.1378 22.5633 21.3767 22.5633 21.6258C22.5633 21.8749 22.4644 22.1137 22.2883 22.2898C22.1122 22.466 21.8733 22.5649 21.6242 22.5649C21.3751 22.5649 21.1363 22.466 20.9602 22.2898L16 17.3281L11.0383 22.2883C10.8622 22.4644 10.6233 22.5633 10.3742 22.5633C10.1251 22.5633 9.88628 22.4644 9.71016 22.2883C9.53404 22.1122 9.43509 21.8733 9.43509 21.6242C9.43509 21.3752 9.53404 21.1363 9.71016 20.9602L14.6719 16L9.71172 11.0383C9.5356 10.8622 9.43666 10.6233 9.43666 10.3742C9.43666 10.1251 9.5356 9.88628 9.71172 9.71016C9.88784 9.53404 10.1267 9.43509 10.3758 9.43509C10.6249 9.43509 10.8637 9.53404 11.0398 9.71016L16 14.6719L20.9617 9.70938C21.1378 9.53325 21.3767 9.43431 21.6258 9.43431C21.8749 9.43431 22.1137 9.53325 22.2898 9.70938C22.466 9.8855 22.5649 10.1244 22.5649 10.3734C22.5649 10.6225 22.466 10.8614 22.2898 11.0375L17.3281 16L22.2883 20.9617Z"}))};var IconPopupFreeflowPrev=function(){return h("svg",{width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-freeflow-btn-bg-color)",d:"M32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16Z"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color)",d:"M22.9133 19.1633C22.8262 19.2507 22.7227 19.32 22.6087 19.3673C22.4948 19.4147 22.3726 19.439 22.2492 19.439C22.1258 19.439 22.0037 19.4147 21.8897 19.3673C21.7757 19.32 21.6723 19.2507 21.5852 19.1633L16 13.5781L10.4133 19.1633C10.2372 19.3394 9.99829 19.4383 9.74922 19.4383C9.50015 19.4383 9.26128 19.3394 9.08516 19.1633C8.90904 18.9872 8.81009 18.7483 8.81009 18.4992C8.81009 18.2501 8.90904 18.0113 9.08516 17.8352L15.3352 11.5852C15.4223 11.4978 15.5257 11.4284 15.6397 11.3811C15.7537 11.3338 15.8758 11.3094 15.9992 11.3094C16.1226 11.3094 16.2448 11.3338 16.3587 11.3811C16.4727 11.4284 16.5762 11.4978 16.6633 11.5852L22.9133 17.8352C23.0007 17.9223 23.07 18.0257 23.1173 18.1397C23.1647 18.2537 23.189 18.3758 23.189 18.4992C23.189 18.6226 23.1647 18.7448 23.1173 18.8587C23.07 18.9727 23.0007 19.0762 22.9133 19.1633Z"}))};var IconPopupFreeflowNext=function(){return h("svg",{width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("circle",{fill:"var(--covet-popup-freeflow-btn-bg-color)",cx:"16",cy:"16",r:"16"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color)",d:"M22.9137 14.1631L16.6637 20.4131C16.5766 20.5005 16.4731 20.5698 16.3592 20.6171C16.2452 20.6644 16.1231 20.6888 15.9997 20.6888C15.8763 20.6888 15.7541 20.6644 15.6402 20.6171C15.5262 20.5698 15.4227 20.5005 15.3356 20.4131L9.08561 14.1631C8.90949 13.9869 8.81055 13.7481 8.81055 13.499C8.81055 13.2499 8.90949 13.011 9.08561 12.8349C9.26173 12.6588 9.5006 12.5599 9.74967 12.5599C9.99874 12.5599 10.2376 12.6588 10.4137 12.8349L16.0005 18.4216L21.5872 12.8341C21.7633 12.658 22.0022 12.5591 22.2512 12.5591C22.5003 12.5591 22.7392 12.658 22.9153 12.8341C23.0914 13.0103 23.1904 13.2491 23.1904 13.4982C23.1904 13.7473 23.0914 13.9862 22.9153 14.1623L22.9137 14.1631Z"}))};var IconPopupFreeflowSoundPlay=function(){return h("svg",{width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-freeflow-btn-bg-color)",d:"M32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16Z"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color-sound-on)",d:"M19.125 8.5V23.5C19.1249 23.617 19.092 23.7315 19.03 23.8307C18.9681 23.9299 18.8795 24.0097 18.7745 24.0611C18.6694 24.1124 18.552 24.1333 18.4357 24.1212C18.3194 24.1092 18.2087 24.0647 18.1164 23.993L12.6602 19.75H9.125C8.79348 19.75 8.47554 19.6183 8.24112 19.3839C8.0067 19.1495 7.875 18.8315 7.875 18.5V13.5C7.875 13.1685 8.0067 12.8505 8.24112 12.6161C8.47554 12.3817 8.79348 12.25 9.125 12.25H12.6602L18.1164 8.00703C18.2087 7.93525 18.3194 7.89082 18.4357 7.87879C18.552 7.86675 18.6694 7.8876 18.7745 7.93895C18.8795 7.99031 18.9681 8.07011 19.03 8.16929C19.092 8.26847 19.1249 8.38305 19.125 8.5ZM21.625 13.5C21.4592 13.5 21.3003 13.5658 21.1831 13.6831C21.0658 13.8003 21 13.9592 21 14.125V17.875C21 18.0408 21.0658 18.1997 21.1831 18.3169C21.3003 18.4342 21.4592 18.5 21.625 18.5C21.7908 18.5 21.9497 18.4342 22.0669 18.3169C22.1842 18.1997 22.25 18.0408 22.25 17.875V14.125C22.25 13.9592 22.1842 13.8003 22.0669 13.6831C21.9497 13.5658 21.7908 13.5 21.625 13.5ZM24.125 12.25C23.9592 12.25 23.8003 12.3158 23.6831 12.4331C23.5658 12.5503 23.5 12.7092 23.5 12.875V19.125C23.5 19.2908 23.5658 19.4497 23.6831 19.5669C23.8003 19.6842 23.9592 19.75 24.125 19.75C24.2908 19.75 24.4497 19.6842 24.5669 19.5669C24.6842 19.4497 24.75 19.2908 24.75 19.125V12.875C24.75 12.7092 24.6842 12.5503 24.5669 12.4331C24.4497 12.3158 24.2908 12.25 24.125 12.25Z"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color-sound-off)",d:"M18.775 7.93828C18.6698 7.88691 18.5523 7.86612 18.4359 7.87827C18.3194 7.89043 18.2087 7.93504 18.1164 8.00703L12.6602 12.25H9.125C8.79348 12.25 8.47554 12.3817 8.24112 12.6161C8.0067 12.8505 7.875 13.1685 7.875 13.5V18.5C7.875 18.8315 8.0067 19.1495 8.24112 19.3839C8.47554 19.6183 8.79348 19.75 9.125 19.75H12.6602L18.1164 23.993C18.2259 24.0787 18.361 24.1252 18.5 24.125C18.6658 24.125 18.8247 24.0592 18.9419 23.9419C19.0592 23.8247 19.125 23.6658 19.125 23.5V8.5C19.1251 8.383 19.0923 8.26832 19.0305 8.16901C18.9686 8.06971 18.8801 7.98976 18.775 7.93828Z"}),h("path",{fill:"var(--covet-popup-freeflow-btn-color-sound-off)",d:"M24.3836 16L25.8172 14.5672C25.9345 14.4499 26.0003 14.2909 26.0003 14.125C26.0003 13.9591 25.9345 13.8001 25.8172 13.6828C25.6999 13.5655 25.5409 13.4997 25.375 13.4997C25.2091 13.4997 25.0501 13.5655 24.9328 13.6828L23.5 15.1164L22.0672 13.6828C21.9499 13.5655 21.7909 13.4997 21.625 13.4997C21.4591 13.4997 21.3001 13.5655 21.1828 13.6828C21.0655 13.8001 20.9997 13.9591 20.9997 14.125C20.9997 14.2909 21.0655 14.4499 21.1828 14.5672L22.6164 16L21.1828 17.4328C21.0655 17.5501 20.9997 17.7091 20.9997 17.875C20.9997 18.0408 21.0655 18.1999 21.1828 18.3172C21.3001 18.4345 21.4591 18.5003 21.625 18.5003C21.7909 18.5003 21.9499 18.4345 22.0672 18.3172L23.5 16.8836L24.9328 18.3172C25.0501 18.4345 25.2091 18.5003 25.375 18.5003C25.5409 18.5003 25.6999 18.4345 25.8172 18.3172C25.9345 18.1999 26.0003 18.0408 26.0003 17.875C26.0003 17.7091 25.9345 17.5501 25.8172 17.4328L24.3836 16Z"}))};var IconCheckout=function(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":"true"},h("g",{fill:"none","fill-rule":"evenodd"},h("path",{class:"symbol","stroke-linecap":"round",d:"M7.52 10.839L5.614 27.387h20.032L23.737 10.84z"}),h("path",{class:"symbol","stroke-linecap":"round",d:"M20.42 12.58V8.893c0-2.292-2.174-4.15-4.855-4.15-2.682 0-4.855 1.858-4.855 4.15v3.689"})))};var IconDown=function(){return h("svg",{width:"12",height:"8",viewBox:"0 0 12 8",class:"icon-down-skip",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M6.62791 5.99042C6.63075 5.57622 6.29727 5.23814 5.88306 5.23531C5.46886 5.23247 5.13078 5.56595 5.12795 5.98016L6.62791 5.99042ZM5.34193 6.81197C5.63281 7.10686 6.10767 7.11011 6.40257 6.81923L11.2081 2.07903C11.503 1.78815 11.5062 1.31329 11.2153 1.0184C10.9245 0.723507 10.4496 0.720258 10.1547 1.01114L5.88313 5.22465L1.66963 0.953075C1.37874 0.658184 0.903882 0.654935 0.608991 0.945817C0.3141 1.2367 0.310851 1.71156 0.601733 2.00645L5.34193 6.81197ZM5.12795 5.98016L5.12589 6.28015L6.62586 6.29042L6.62791 5.99042L5.12795 5.98016Z"}))};var IconExternalLink=function(){return h("svg",{class:"icon-external-link",width:"10px",height:"10px",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 576 512"},h("path",{d:"M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"}))};var IconFilterPlus=function(e){var r=e.iconClass;return h("svg",{class:r,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-filter-icon-plus)",d:"M14.25 8C14.25 8.19891 14.171 8.38968 14.0303 8.53033C13.8897 8.67098 13.6989 8.75 13.5 8.75H8.75V13.5C8.75 13.6989 8.67098 13.8897 8.53033 14.0303C8.38968 14.171 8.19891 14.25 8 14.25C7.80109 14.25 7.61032 14.171 7.46967 14.0303C7.32902 13.8897 7.25 13.6989 7.25 13.5V8.75H2.5C2.30109 8.75 2.11032 8.67098 1.96967 8.53033C1.82902 8.38968 1.75 8.19891 1.75 8C1.75 7.80109 1.82902 7.61032 1.96967 7.46967C2.11032 7.32902 2.30109 7.25 2.5 7.25H7.25V2.5C7.25 2.30109 7.32902 2.11032 7.46967 1.96967C7.61032 1.82902 7.80109 1.75 8 1.75C8.19891 1.75 8.38968 1.82902 8.53033 1.96967C8.67098 2.11032 8.75 2.30109 8.75 2.5V7.25H13.5C13.6989 7.25 13.8897 7.32902 14.0303 7.46967C14.171 7.61032 14.25 7.80109 14.25 8Z"}))};var IconFilterClose=function(e){var r=e.iconClass;return h("svg",{class:r,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-filter-icon-close)",d:"M13.0306 11.968C13.1715 12.1089 13.2506 12.3 13.2506 12.4993C13.2506 12.6985 13.1715 12.8896 13.0306 13.0305C12.8897 13.1714 12.6986 13.2506 12.4993 13.2506C12.3001 13.2506 12.109 13.1714 11.9681 13.0305L7.99997 9.06114L4.0306 13.0293C3.8897 13.1702 3.69861 13.2493 3.49935 13.2493C3.30009 13.2493 3.10899 13.1702 2.9681 13.0293C2.8272 12.8884 2.74805 12.6973 2.74805 12.498C2.74805 12.2988 2.8272 12.1077 2.9681 11.9668L6.93747 7.99864L2.96935 4.02927C2.82845 3.88837 2.7493 3.69728 2.7493 3.49802C2.7493 3.29876 2.82845 3.10767 2.96935 2.96677C3.11024 2.82587 3.30134 2.74672 3.5006 2.74672C3.69986 2.74672 3.89095 2.82587 4.03185 2.96677L7.99997 6.93614L11.9693 2.96614C12.1102 2.82525 12.3013 2.74609 12.5006 2.74609C12.6999 2.74609 12.8909 2.82525 13.0318 2.96614C13.1727 3.10704 13.2519 3.29814 13.2519 3.49739C13.2519 3.69665 13.1727 3.88775 13.0318 4.02864L9.06247 7.99864L13.0306 11.968Z"}))};var IconFilterChecked=function(e){var r=e.iconClass;return h("svg",{class:r,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-filter-icon-checked)",d:"M14.5306 5.0313L6.5306 13.0313C6.46092 13.1012 6.37813 13.1567 6.28696 13.1946C6.1958 13.2324 6.09806 13.2519 5.99935 13.2519C5.90064 13.2519 5.8029 13.2324 5.71173 13.1946C5.62057 13.1567 5.53778 13.1012 5.4681 13.0313L1.9681 9.5313C1.89833 9.46154 1.84299 9.37871 1.80524 9.28756C1.76748 9.19641 1.74805 9.09871 1.74805 9.00005C1.74805 8.90139 1.76748 8.80369 1.80524 8.71254C1.84299 8.62139 1.89833 8.53857 1.9681 8.4688C2.03786 8.39904 2.12069 8.3437 2.21184 8.30594C2.30299 8.26818 2.40069 8.24875 2.49935 8.24875C2.59801 8.24875 2.69571 8.26818 2.78686 8.30594C2.87801 8.3437 2.96083 8.39904 3.0306 8.4688L5.99997 11.4382L13.4693 3.97005C13.6102 3.82915 13.8013 3.75 14.0006 3.75C14.1999 3.75 14.391 3.82915 14.5318 3.97005C14.6727 4.11095 14.7519 4.30204 14.7519 4.5013C14.7519 4.70056 14.6727 4.89165 14.5318 5.03255L14.5306 5.0313Z"}))};var IconFilterDropDown=function(e){var r=e.iconClass;return h("svg",{class:r,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{fill:"var(--covet-popup-filters-icon-color)",d:"M14.643 2.99437C14.545 2.7729 14.3849 2.58465 14.1819 2.45251C13.979 2.32036 13.742 2.25001 13.4999 2.25H2.49988C2.25775 2.25002 2.02084 2.32037 1.81794 2.45249C1.61503 2.5846 1.45486 2.77281 1.35689 2.99423C1.25892 3.21565 1.22737 3.46076 1.26607 3.69978C1.30477 3.93879 1.41205 4.16143 1.57488 4.34062L1.58238 4.34937L5.74988 8.79687V13.5C5.74985 13.7263 5.81125 13.9484 5.92754 14.1425C6.04383 14.3367 6.21064 14.4956 6.41017 14.6023C6.60971 14.7091 6.83449 14.7597 7.06053 14.7487C7.28656 14.7377 7.50538 14.6656 7.69363 14.54L9.69363 13.2069C9.86486 13.0926 10.0052 12.9379 10.1023 12.7563C10.1993 12.5748 10.25 12.3721 10.2499 12.1662V8.79687L14.4168 4.34937L14.4243 4.34062C14.5872 4.16152 14.6946 3.93895 14.7334 3.69996C14.7723 3.46097 14.7408 3.21585 14.643 2.99437ZM9.08801 7.84312C8.87039 8.07458 8.74943 8.38043 8.74988 8.69812V12.0325L7.24988 13.0325V8.69812C7.25033 8.38043 7.12937 8.07458 6.91175 7.84312L3.07675 3.75H12.923L9.08801 7.84312Z"}))};var Icon=function(e){var r=e.iconName;switch(r){case"btn-type-1":return h(IconClose1,null);case"btn-type-2":return h(IconClose2,null);case"btn-type-3":return h(IconClose3,null);case"btn-type-4":return h(IconClose4,null);case"btn-type-5":return h(IconClose5,null);case"email":return h(IconEmail,null);case"pinterest":return h(IconPinterest,null);case"twitter":return h(IconTwitter,null);case"shareLink":return h(IconShareLink,null);case"facebook":return h(IconFB,null);case"verification":return h(VerificationIcon,null);case"copy":return h(IconCopy,null);case"checked":return h(IconChecked,null);case"checkout":return h(IconCheckout,null);case"arrows-type-1-left":return h(IconArrow1Left,null);case"arrows-type-2-left":return h(IconArrow2Left,null);case"arrows-type-3-left":return h(IconArrow3Left,null);case"arrows-type-4-left":return h(IconArrow4Left,null);case"arrows-type-5-left":return h(IconArrow5Left,null);case"arrows-type-1-right":return h(IconArrow1Right,null);case"arrows-type-2-right":return h(IconArrow2Right,null);case"arrows-type-3-right":return h(IconArrow3Right,null);case"arrows-type-4-right":return h(IconArrow4Right,null);case"arrows-type-5-right":return h(IconArrow5Right,null);case"external-link":return h(IconExternalLink,null);case"filter_icon_dropdown":return h(IconFilterDropDown,null);case"filter_icon_checked":return h(IconFilterChecked,null);case"filter_icon_close":return h(IconFilterClose,null);case"filter_icon_plus":return h(IconFilterPlus,null)}};export{BadgeVerified as B,DynamicTag as D,Icon as I,ProgressRating as P,StarRatingPopupRewiw as S,VerificationIcon as V,IconPopupFreeflowSoundPlay as a,IconArrowNext as b,IconArrowPrev as c,StarRating as d,BadgeHoverVerified as e,IconPopupFreeflowNext as f,IconPopupFreeflowPrev as g,IconPopupFreeflowClose as h,IconDown as i};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
function swiperUpdateTabIndex(a){var r=a.activeIndex;var e=a.params.slidesPerView;var n=Array.from(a.slides);n.forEach((function(a,n){a.setAttribute("tabindex","".concat(r-1<n&&n<r+e?0:-1));a.setAttribute("aria-hidden","".concat(!(r-1<n&&n<r+e)));return a}))}export{swiperUpdateTabIndex as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
import{c as createSlice}from"./popup-B68hw7d9.js";var slice=createSlice({name:"slider",initialState:{realIndex:-1,slidesPerView:0,itemInFocus:-1},reducers:{setSliderIndex:function(e,s){e.realIndex=s.payload},setSliderSlidesPerView:function(e,s){e.slidesPerView=s.payload},setItemInFocus:function(e,s){e.itemInFocus=s.payload}}});var _a=slice.actions,setSliderIndex=_a.setSliderIndex,setSliderSlidesPerView=_a.setSliderSlidesPerView,setItemInFocus=_a.setItemInFocus;var sliderReducer=slice.reducer;export{setSliderIndex as a,setSliderSlidesPerView as b,setItemInFocus as c,sliderReducer as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
var getWidgetId=function(a,e,d,t){var o={embedId:null,productHandle:null,shopDomain:null,photoRequestId:null};var r=window.location;o.embedId=a;o.photoRequestId=d;if(t.hasAttribute("data-product")){o.productHandle=t.getAttribute("data-product")}else if(r.pathname.indexOf("/products/")!==-1){o.productHandle=r.pathname.match(/\/products\/([a-zA-Z0-9\-\_\%]+)/)[1]}if(e!==""){o.shopDomain=e}else if(t.hasAttribute("data-shop")){o.shopDomain=t.getAttribute("data-shop")}else{o.shopDomain=r.hostname}return Object.assign({},o)};var sendBeacon=function(a,e,d){if(d===void 0){d={}}var t=a.preview.mode?false:a.analytics;if(!t)return false;var o="".concat(a.url.baseBeaconsUrl).concat(e);var r=Object.assign({gallery_id:a.widgetId.galleryId,shop_id:a.widgetId.shopId},d);navigator.sendBeacon(o,JSON.stringify(r))};export{getWidgetId as g,sendBeacon as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright by Space Squirrel Ltd.
|
|
3
|
-
*/
|
|
4
|
-
function buildEvent(e,t){return new CustomEvent(e,{bubbles:true,cancelable:true,detail:t})}function getSizesForResponsiveImage(e,t,n){if(n===void 0){n=false}var a=1;if(n){a=2}var r=(100/(e/a)/100).toString();var i=(100/(t/a)/100).toString();return"(min-width: 800px) calc(".concat(r," * 100vw), calc(").concat(i," * 100vw)")}function hexToRGBA(e,t){var n="0",a="0",r="0";if(e.length===4){n="0x"+e[1]+e[1];a="0x"+e[2]+e[2];r="0x"+e[3]+e[3]}else if(e.length===7){n="0x"+e[1]+e[2];a="0x"+e[3]+e[4];r="0x"+e[5]+e[6]}return"rgb("+ +n+","+ +a+","+ +r+","+t+")"}function formatMoney(e,t,n){if(n===void 0){n=false}var a="",r=/\{\{\s*(\w+)\s*\}\}/,i=/\{\{\s*(\w+)\s*\}\}/g,o=t||this.money_format;if(typeof e==="string"){e=e.replace(".","")}function s(e,t){return typeof e==="undefined"?t:e}function u(e,t,n,a){t=s(t,2);n=s(n,",");a=s(a,".");if(isNaN(e)||e===null){return 0}e=(e/100).toFixed(t);var r=e.split("."),i=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),o=r[1]?a+r[1]:"";return i+o}switch(o.match(r)[1]){case"amount":a=u(e,2,",",".");break;case"amount_no_decimals":a=u(e,0,",",".");break;case"amount_with_comma_separator":a=u(e,2,".",",");break;case"amount_no_decimals_with_comma_separator":a=u(e,0,".",",");break}return n?a:o.replace(i,a)}function findSharedItemPopup(e,t){var n=function(e){var t=window.location.search.replace("?","").split("&");var n=t.find((function(t){return t.startsWith("".concat(e,"="))}));if(n===undefined)return null;return n.replace("".concat(e,"="),"")};var a=n("covet-pics-photo-id");var r=n("covet-pics-embed-id");var i=a!==null&&(e&&e===parseInt(r)||t==="product_gallery");return i?a:null}function getCoverImage(e,t){if(e!==undefined){return e}else{return t}}function sendToGoogleAnalytics(e,t,n){var a=window.ga;var r=window._gaq;var i=window.dataLayer;var o=e==="Covet.pics Gallery View";if(typeof i!=="undefined"){i.push({event:"covetPicsEvent",eventAction:e,eventCategory:t,eventLabel:n,nonInteraction:o})}else if(typeof a!=="undefined"){a("send",{hitType:"event",eventCategory:t,eventAction:e,eventLabel:n,nonInteraction:o})}else if(typeof r!=="undefined"){r.push(["_trackEvent",t,e,n,undefined,o])}return true}function getDateFromTimestamp(e){var t=new Date(e);return"".concat(t.getDate(),"-").concat(t.getMonth().toString(),"-").concat(t.getFullYear())}function getSize(e,t){return e!==null?e.getBoundingClientRect()[t]:0}function getStyle(e,t){return e!==null?parseInt(window.getComputedStyle(e)[t].slice(0,-2)):0}function getRandomId(e){if(e===void 0){e=16}var t=function(){return Math.round(16*Math.random()).toString(16)};return"x".repeat(e).replace(/x/g,t)}var BASE_API_URLS={production:"https://app.covet.pics",development:"http://localhost:3000",staging:"https://covetstaging.spacesquirrel.net",testing:"http://localhost:3000/testing_db"};export{BASE_API_URLS as B,getStyle as a,getRandomId as b,getDateFromTimestamp as c,buildEvent as d,getSizesForResponsiveImage as e,findSharedItemPopup as f,getSize as g,getCoverImage as h,formatMoney as i,hexToRGBA as j,sendToGoogleAnalytics as s};
|