var instafeedApp = (function instafeedLoad(){/*! * Instafeed v19.0.0 * Copyright (c) 2026 Mintt Studio * All rights reserved. * * This code is proprietary and protected under international copyright laws. * Redistribution, use, modification, or sublicensing without explicit written permission from * Mintt Studio is prohibited. * * License inquiries or unauthorized use reports should be directed to: * legal@minttstudio.com. */ function t(t,e,n=0,i=""){if(!k()||!1===window.InstafeedAPI.settings.analytics)return;"modal_open"!==t&&"product_click"!==t||!window.InstafeedAPI.settings.pixel||z(e,i);const o=new FormData;o.append("event",t),o.append("fid",e),o.append("product_id",n),i&&o.append("post_id",String(i)),o.append("shop",Shopify.shop),o.append("appVersion",q),navigator.sendBeacon("https://tr.nfcube.com/index/v1",o)}function e(t,e){let n=t.querySelector(".instafeed-cart-icon")||t.closest(".lightbox-instagram")?.querySelector(".instafeed-cart-icon");if(!n)if(n=document.createElement("div"),n.className="instafeed-cart-icon",n.style.cursor="pointer",n.setAttribute("aria-label","View Cart"),n.onclick=t=>{t.stopPropagation(),t.preventDefault();const e=window.Shopify&&Shopify.routes&&Shopify.routes.root?Shopify.routes.root:"/";window.location.href=e+"cart"},"instafeed-simple-popup"===e){const e=t.closest(".instafeed-simple-popup-product-list");e&&e.insertAdjacentElement("beforebegin",n)}else t.appendChild(n);return n}function n(t,n,i,o,s){const a=t.querySelector("button");a.classList.add("instafeed-loading");const d={id:n,quantity:1};window.InstafeedAPI?.settings?.pixel&&(d.properties={_instafeed:"1",_if_feed:null!=o&&""!==o?String(o):"",_if_post:null!=s&&""!==String(s)?String(s).substring(0,128):""});const r={items:[d]};fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>{if(!e.ok)return e.json().then(e=>{if(422===parseInt(e.status)){a.disabled=!0,a.style.cursor="not-allowed",a.style.opacity="0.5";const n=t.closest(".tagged-products"),i=n?n.querySelector(".tagged-products-image"):null;if(i){const e=t.getAttribute("data-sold-out")||"Sold Out";let n=i.querySelector(".instafeed-sold-out-label");n||(n=document.createElement("div"),n.className="instafeed-sold-out-label",n.textContent=e,i.style.position="relative",i.appendChild(n))}throw new Error(e.message)}})}).then(()=>{fetch(window.Shopify.routes.root+"cart.js").then(t=>t.json()).then(n=>{const o=e(t,i);o.setAttribute("data-count",n.item_count),o.style.display="flex",o.classList.add("instafeed-cart-icon-animate"),setTimeout(()=>{o.classList.remove("instafeed-cart-icon-animate")},600),a.classList.remove("instafeed-loading");const s=new CustomEvent("instafeed:cart:updated",{bubbles:!0,detail:n});if(document.dispatchEvent(s),"undefined"!=typeof theme&&theme&&"function"==typeof theme.CartDrawer)try{"function"==typeof(n=new theme.CartDrawer).init&&n.init()}catch(t){console.warn("Failed to initialize theme cart:",t)}}).catch(t=>{console.error("Error:",t),a.classList.remove("instafeed-loading")})}).catch(t=>{console.error("Error:",t),a.classList.remove("instafeed-loading")})}function i(t){var e=t.getAttribute("data-video-id"),n=document.getElementById(e);n.muted=!n.muted,window.InstafeedAPI.settings.sound=!n.muted,document.querySelectorAll(".instafeed-sound-button").forEach(function(t){t.classList.toggle("sound-on"),t.setAttribute("aria-label",n.muted?"Mute":"Unmute")})}function o(){const t="video-"+window.InstafeedAPI.settings.modalOpen,e=document.getElementById(t),n=document.querySelector(`.instafeed-video-control[data-video-id="${t}"]`);e.paused?(e.play(),n.setAttribute("aria-label","Play"),n.classList.remove("paused"),n.style.display="none"):(e.pause(),n.setAttribute("aria-label","Pause"),n.classList.add("paused"),n.style.display="block")}function s(t,e,n,i){const o=window.InstafeedAPI.settings.carousels[e][n],s=o.length;let d=t.closest("div.instafeed-post-image");if(d||(d=t.closest(".lightbox-instagram")?.querySelector("div.instafeed-post-image")),d){const r=d.querySelector("img");if(r&&s>0){let d;if("number"==typeof i){if(d=i,d<0||d>=s)return}else{const t=r.src;let e=o.findIndex(e=>e.media_url===t);-1===e&&(e=0),d="left"===i?0===e?s-1:e-1:e===s-1?0:e+1}const l=t.closest(".lightbox-instagram").querySelectorAll(".open-resource-picker");l&&l.forEach(t=>{t.setAttribute("data-carousel-index",d)}),document.getElementById(`instafeed-carousel-dots-${e}-${n}`)?.querySelector(".instafeed-carousel-dot.active")?.classList.remove("active"),document.getElementById(`instafeed-carousel-dot-${e}-${n}-${d}`)?.classList.add("active"),r.style.opacity="0.5";const c=document.createElement("div");c.className="instafeed-spinner",c.style.cssText="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 3px solid #f3f3f3; border-top: 3px solid #555; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite;",r.parentElement.appendChild(c);const u=new Image,p=O(o[d].media_url);u.onload=()=>{p&&(r.src=p),r.style.opacity="1",c.remove()},p&&(u.src=p),setTimeout(()=>{window.instafeedCarouselTransitioning=!1},300),a(t,e,n,d)}}}function a(t,e,n,i){const o=window.InstafeedAPI.settings.instances[e],s=t.closest(".lightbox-instagram");if(s){if(w(s),o?.options?.carouselProductTags){let t=[];const a=window.InstafeedAPI.settings.carousels[e]?.[n];t=a?.[i]?.tagged_products||[];const d=s.querySelector(".box-content"),r=s.querySelector(".instafeed-simple-popup-product-list");d&&d.querySelectorAll(".tagged-products").forEach(t=>t.remove()),r&&(r.querySelectorAll(".tagged-products").forEach(t=>t.remove()),t.length>1?(r.style.justifyContent="initial",r.style.padding="0 0 0 15px"):(r.style.justifyContent="center",r.style.padding="0"));const l=s.querySelector(".open-resource-picker[data-picture-id]")?.getAttribute("data-picture-id");t.length>0&&t.forEach(t=>{const e=o.t(t,l,d?"":"instafeed-simple-popup",parseInt(n),i);d?d.insertAdjacentHTML("beforeend",e):r&&r.insertAdjacentHTML("beforeend",e)})}window.InstafeedAPI?.renderHotspotsForLightbox&&window.InstafeedAPI.renderHotspotsForLightbox(s)}}function d(t){try{const e=JSON.parse(t||"{}");return"object"==typeof e&&null!==e?e:{}}catch(t){return{}}}function r(t,e){return(Array.from(t.querySelectorAll(".box-content .tagged-products, .instafeed-simple-popup-product-list .tagged-products"))||[]).map(t=>{const n=t.getAttribute("data-tagging-id");if(!n)return null;const i=d(t.getAttribute("data-placement"))[String(e)]??null;if(!i||null==i.x_pct||null==i.y_pct)return null;const o=Number(i.x_pct),s=Number(i.y_pct);if(!Number.isFinite(o)||!Number.isFinite(s))return null;const a=t.querySelector(".instafeed-product-name");let r="";if(a){const t=a.querySelector("div");if(t){const e=t.textContent.trim(),n=a.textContent.trim();r=[e?n.slice(0,n.indexOf(e)).trim():n,e].filter(Boolean).join(" ")}r||(r=a.textContent.trim())}const l=t.querySelector("[data-picture-id]"),c=l?l.getAttribute("data-picture-id"):"",u=l&&l.getAttribute("data-post-index")||"0";return{tagId:n,xPct:H(o,0,100),yPct:H(s,0,100),productName:r,pictureId:c,postIndex:u,carouselIndex:e}}).filter(Boolean)}function l(t){if(!t)return;const e=t.querySelector(".instafeed-hotspots-layer"),n=t.querySelector(".instafeed-post-image");if(!e||!n)return;const i=t.querySelector(".instafeed-carousel-dot.active"),o=r(t,i?i.id?.split("-").pop()??"0":"0"),s=t.closest(".instafeed-modals-wrapper")?.getAttribute("data-feed-id"),a=void 0!==window.InstafeedAPI.settings&&s&&window.InstafeedAPI.settings.instances?window.InstafeedAPI.settings.instances[s]:null;if(e.innerHTML=o.map(t=>{const e=t.productName?`${P(t.productName)}`:"",n=e?`${e}`:"",i=a&&a.options&&a.options.admin&&t.pictureId?`×`:"";return`
${i}${n}
`}).join(""),0===o.length)return void w(t);const d=n.querySelector("img:first-of-type, video:first-of-type"),l=()=>{const t=n.getBoundingClientRect(),i=d?.naturalWidth||d?.videoWidth||d?.clientWidth||t.width,o=d?.naturalHeight||d?.videoHeight||d?.clientHeight||t.height,s=d&&window.getComputedStyle(d).objectFit||"cover";e.querySelectorAll(".instafeed-hotspot-wrapper").forEach(e=>{const n=Number(e.getAttribute("data-x-pct")),a=Number(e.getAttribute("data-y-pct"));if(Number.isFinite(n)&&Number.isFinite(a))if(window.InstafeedAPI?.hotspotUtils?.percentToClientPoint&&t.width>0&&t.height>0){const d=window.InstafeedAPI.hotspotUtils.percentToClientPoint(n,a,t,i,o,s);e.style.left=`${d.left}px`,e.style.top=`${d.top}px`}else e.style.left=`${n}%`,e.style.top=`${a}%`})};requestAnimationFrame(l),"IMG"!==d?.tagName||d.complete||d.addEventListener("load",l,{once:!0}),"VIDEO"===d?.tagName&&d.readyState<1&&d.addEventListener("loadedmetadata",l,{once:!0})}function c(t){if(!t||!window.InstafeedAPI?.renderHotspotsForLightbox)return;const e=window.InstafeedAPI.renderHotspotsForLightbox;e(t),setTimeout(()=>e(t),ot)}function u(t,e){let n=t.parentElement;for(;n&&n!==e;){const t=getComputedStyle(n),e=t.overflowX||t.overflow;if(("auto"===e||"scroll"===e||"overlay"===e)&&n.scrollWidth>n.clientWidth)return n;n=n.parentElement}return null}function p(t,e){const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=t.scrollLeft+(i.left-n.left)-n.width/2+i.width/2;t.scrollTo({left:Math.max(0,o),behavior:"smooth"})}function h(t,e){const n=u(e,t);n&&p(n,e)}function f(t,e,n=!1){const i=e.getAttribute("data-tagging-id");if(!i)return;t.querySelectorAll(".instafeed-hotspot").forEach(t=>t.classList.remove("active")),e.classList.add("active");const o=t.querySelector(`.tagged-products[data-tagging-id='${i}']`);o&&(t.classList.add("instafeed-hotspot-has-selection"),t.querySelectorAll(".tagged-products.instafeed-hotspot-selected").forEach(t=>t.classList.remove("instafeed-hotspot-selected")),o.classList.add("instafeed-hotspot-selected"),n&&h(t,o),requestAnimationFrame(()=>{m(e.closest(".instafeed-hotspot-wrapper"))}))}function w(t){t&&(t.classList.remove("instafeed-hotspot-has-selection"),t.querySelectorAll(".instafeed-hotspot-wrapper").forEach(t=>{t.querySelector(".instafeed-hotspot")?.classList.remove("active"),t.classList.remove("instafeed-hotspot-tooltip-align-left","instafeed-hotspot-tooltip-align-right")}),t.querySelectorAll(".tagged-products.instafeed-hotspot-selected").forEach(t=>t.classList.remove("instafeed-hotspot-selected")))}function m(t){const e=t?.querySelector(".instafeed-hotspot-tooltip");if(!e)return;t.classList.remove("instafeed-hotspot-tooltip-align-left","instafeed-hotspot-tooltip-align-right"),e.offsetHeight;const n=e.getBoundingClientRect(),i=(window.innerWidth||document.documentElement.clientWidth)-8;n.right>i?t.classList.add("instafeed-hotspot-tooltip-align-right"):n.left<8&&t.classList.add("instafeed-hotspot-tooltip-align-left")}function g(t,e,n=!1){const i=e.getAttribute("data-tagging-id");if(!i)return;const o=t.querySelector('.instafeed-hotspot[data-tagging-id="'+CSS.escape(i)+'"]');o&&f(t,o,n)}function v(){if(void 0===window.InstafeedAPI.settings||!window.InstafeedAPI.settings.modalOpen)return;const t=document.getElementById(window.InstafeedAPI.settings.modalOpen)?.querySelector(".lightbox-instagram");t&&window.InstafeedAPI.renderHotspotsForLightboxWithStability(t)}function $(t){const e=t.target,n=e.closest(".instafeed-hotspot");if(n)return{lightbox:n.closest(".lightbox-instagram"),kind:"hotspot",element:n};const i=e.closest(".lightbox-instagram .tagged-products");return i?{lightbox:i.closest(".lightbox-instagram"),kind:"card",element:i}:{lightbox:null,kind:null,element:null}}function b(t){return 4===parseInt(t,10)}function y(t){const e=window.InstafeedAPI?.settings?.instances?.[t];return 7===parseInt(e?.options?.layout,10)&&b(e?.options?.sliderBehavior)}function I(t){clearTimeout(instafeedScrollIntervals[t]),clearInterval(instafeedScrollIntervals[t]),clearTimeout(instafeedSliderTransitionTimers[t]),instafeedScrollIntervals[t]=null,instafeedSliderTransitionTimers[t]=null;const e=window.InstafeedAPI?.settings?.sliderState?.[t];e&&(e.isTransitioning=!1)}function x(t){y(t)&&(I(t),window.InstafeedAPI.settings.sliderIsPaused||window.InstafeedAPI.sliderMove(1,t,4))}function S(t){const e=t.dataset.instafeedSrc;e&&!t.classList.contains(tt+"-lazy-image--handled")&&(t.classList.add(tt+"-lazy-image--handled"),t.onerror=()=>{t.classList.remove(tt+"-lazy-image--handled")},t.onload=()=>{const e=t.closest("."+tt+"-new-layout-item");e&&e.classList.add("image-loaded")},t.src=e)}function _(t){const e=window.InstafeedAPI?.settings;if(!e)return;const n=document.querySelector(`.${tt}-new-layout-wrapper[data-feed-id="${t}"]`),i=document.querySelector(`.${tt}-new-layout-container[data-feed-id="${t}"]`);if(!n||!i)return;const o=i.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight||0;if(o.bottom<-200||o.top>s+200)return;const a=e.sliderNumVisibleImages[t];if(!a)return;const d=a+1,r=n.querySelectorAll("."+tt+"-lazy-image:not(."+tt+"-lazy-image--handled)");for(let t=0;tc&&(h=parseFloat(((u-c)*p).toFixed(3)));const f=i.currentTransform,w=Math.pow(10,-3);let m=window.InstafeedAPI.settings.sliderStepSize[e];const g=t>0?h+f:-f;g>0&&g0&&v&&f>-h+w;t>0&&v&&!$&&f<=-h+w&&(i.currentTransform=i.minTransform),t<0&&f>=-w&&i.currentTransform>=-w&&(i.currentTransform=-h);let I=i.currentTransform;if(a&&(I=Math.abs(i.currentTransform)),window.InstafeedAPI.settings.dynamicSliderArrows.includes(s)){const t=document.querySelector(`.${tt}-new-layout-container[data-feed-id="${e}"] .${tt}-new-arrow-prev`),n=document.querySelector(`.${tt}-new-layout-container[data-feed-id="${e}"] .${tt}-new-arrow-next`);t&&(t.style.display=0===i.currentTransform?"none":"block"),n&&(n.style.display=i.currentTransform===-h?"none":"block")}if(b(n)&&i.currentTransform===i.minTransform&&f!==i.minTransform)return clearTimeout(instafeedSliderTransitionTimers[e]),instafeedSliderTransitionTimers[e]=null,i.isTransitioning=!1,d.style.transition="none",d.style.transform=`translateX(${I}px)`,d.offsetHeight,void(y(e)&&x(e));let S=b(n)?window.instafeedContinuousSlideSpeed:500,T=b(n)?`transform ${window.instafeedContinuousSlideSpeed/1e3}s linear`:"transform 0.5s ease-in-out";d.style.transition=T,d.style.transform=`translateX(${I}px)`,i.isTransitioning=!0,clearTimeout(instafeedSliderTransitionTimers[e]);const P=()=>{if(instafeedSliderTransitionTimers[e]===O)if(instafeedSliderTransitionTimers[e]=null,d.removeEventListener("transitionend",M),!b(n)||y(e)){if(d.style.transition="",$){i.currentTransform=i.minTransform;let t=i.minTransform;a&&(t=Math.abs(i.minTransform)),d.style.transition="none",d.style.transform=`translateX(${t}px)`,d.offsetHeight}i.isTransitioning=!1,b(n)&&y(e)&&x(e)}else i.isTransitioning=!1},M=t=>{t.target===d&&"transform"===t.propertyName&&P()};b(n)&&d.addEventListener("transitionend",M);const O=setTimeout(P,S+50);instafeedSliderTransitionTimers[e]=O}function k(){return"undefined"!=typeof Shopify?Shopify:null}function P(t){return(null==t?"":String(t)).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function M(t){if(null==t||"string"!=typeof t)return"";const e=t.trim();if(!e)return"";try{const t=new URL(e);return"https:"!==t.protocol?"":dt.has(t.hostname.toLowerCase())?t.href:""}catch{return""}}function O(t){if(null==t||"string"!=typeof t)return"";const e=t.trim();if(!e)return"";try{const t=new URL(e);return"https:"!==t.protocol?"":t.href}catch{return""}}function A(t){return P(O(t))}function C(t){return null==t||"string"!=typeof t?"":t.split("/").filter(t=>t.length>0).map(t=>encodeURIComponent(t)).join("/")}function F(t,e,n,i){const o=[],s=parseInt(t,10);return s>0&&o.push("variant="+s),i&&null!=e&&""!==String(e)&&(o.push("_instafeed=1"),o.push("_if_feed="+encodeURIComponent(String(e))),null!=n&&""!==String(n)&&o.push("_if_post="+encodeURIComponent(String(n).substring(0,128)))),o.length?"?"+o.join("&"):""}function L(t,e,n){let i=t.querySelector('input[type="hidden"][name="'+e+'"]');i||(i=document.createElement("input"),i.type="hidden",i.name=e,t.appendChild(i)),i.value=n}function E(t,e){const n=document.querySelectorAll('form[action*="/cart/add"], form[action$="/cart/add"], form[action*="/cart/add.js"]'),i=null!=t&&""!==t?String(t):"",o=String(e||"").substring(0,128);for(let t=0;t0?j(l/a.width*100):0,y_pct:a.height>0?j(c/a.height*100):0}}function J(t,e,n,i,o,s="cover"){const a=B(n.width,n.height,i,o,s),d=H(Number(t)||0,0,100)/100,r=H(Number(e)||0,0,100)/100,l=n.left+a.offsetX+a.width*d,c=n.top+a.offsetY+a.height*r;return{clientX:l,clientY:c,left:l-n.left,top:c-n.top}}const V="nfcube.com",X=["instafeed.mintt-studio.com","instafeed.nfcube.com"],Y="instafeed.nfcube.com",W="api.nfcube.com",q="19.0.0",Q="feed",Z="insta-feed",K=".instafeed-lightbox",tt="instafeed",et=!1,nt=3,it=1024,ot=100;window.instafeedEvents=window.instafeedEvents||[];class st{constructor(){this.listeners=window.instafeedEvents=window.instafeedEvents||[],this.debugMode=!1}addListener(t,e,n,i={}){t.addEventListener(e,n,i),this.listeners.push({element:t,event:e,handler:n,options:i}),this.debugMode&&console.log(`Added listener for ${e}`,this.listeners)}removeListener(t,e,n){const i=this.listeners.find(i=>i.element===t&&i.event===e&&i.handler===n);t.removeEventListener(e,n,i?.options),this.listeners=this.listeners.filter(i=>!(i.element===t&&i.event===e&&i.handler===n)),this.debugMode&&console.log(`Removed listener for ${e}`,this.listeners)}clearAllListeners(){this.listeners.forEach(({element:t,event:e,handler:n,options:i})=>{t.removeEventListener(e,n,i)}),this.listeners=[],this.debugMode&&console.log("All listeners have been removed")}}const at=new st;var Instafeed=function t(){return class{constructor(t){this.availableLanguages=["en","es","de","fr","sv","da","it","nl","nb","ja","pt-PT","pt-BR","zh-CN","tr","ko"],this.accountUsername="",this.options={target:Z,injectedData:!1,language:"en",locale:"en",showLoading:!0,forceUpdate:!1,analytics:!1,pixel:!1,carouselProductTags:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:X.includes(window.location.hostname)};const e=k();e?.locale&&(this.options.locale=e.locale,e.locale.startsWith("es-")?this.options.language="es":this.availableLanguages.includes(e.locale)&&(this.options.language=e.locale)),Object.assign(this.options,t),this.options.admin||this.i(),document.querySelectorAll(K).forEach(t=>{t.parentNode.removeChild(t)})}o(t){var e=window.InstafeedAPI.settings.translations,n=this.options.language;return e[n]&&e[n][t]?e[n][t]:"en"!==n&&e.en&&e.en[t]?e.en[t]:t}l(t){var e;return window.InstafeedAPI.settings.translations[t]?Promise.resolve(window.InstafeedAPI.settings.translations[t]):(e=this,fetch("https://"+Y+"/i18n/storefront/instafeed-"+t+".json").then(function(t){if(!t.ok)throw new Error("i18n");return t.json()}).then(function(e){return window.InstafeedAPI.settings.translations[t]=e,e}).catch(function(){return"en"===t?{}:e.l("en").then(function(e){return window.InstafeedAPI.settings.translations[t]=e,e})}))}u(){return 100===parseInt(this.options.columns,10)}p(){return 100===parseInt(this.options.columnsMobile,10)}h(){return this.u()||this.p()}run(t){var e,n=this;if(Date.now(),!window.InstafeedAPI.settings.translations[this.options.language])return this.l(this.options.language).then(function(){return n.run(t)});if(e=document.getElementById(this.options.target),this.m="number"==typeof t?t:e?e.clientWidth:0,this.options.injectedData)return this.options.picturesNeeded=this.options.limit,n.v(this.options.injectedData),!0;if(e&&0===this.m&&this.h())return this.$(e),!1;this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",window.InstafeedAPI.settings.analytics=Boolean(parseInt(this.options.analytics,10)),window.InstafeedAPI.settings.pixel=Boolean(parseInt(this.options.pixel,10)),window.InstafeedAPI.settings.pixel&&D(),window.InstafeedAPI.settings.instances[this.options.feedId]=n,this.I(this.options.charge)||(parseInt(this.options.rows)>parseInt(this.options.rowsLimit)&&(this.options.rows=this.options.rowsLimit),parseInt(this.options.rowsMobile)>parseInt(this.options.rowsLimit)&&(this.options.rowsMobile=this.options.rowsLimit)),8===parseInt(this.options.layout)?this.options.picturesNeeded=1:this.S()?this.p()?this.options.picturesNeeded=this.options.rowsMobile*this._(this.m):this.options.picturesNeeded=this.options.rowsMobile*this.options.columnsMobile:this.u()?this.options.picturesNeeded=this.options.rows*this._(this.m):this.options.picturesNeeded=this.options.rows*this.options.columns,this.options.admin&&this.options.showLoading&&(e.innerHTML='
'+this.o("HANG_ON")+"
"),!this.options.admin&&parseInt(this.options.loadingAnimation)>0&&(e.innerHTML='
');const i=window.adminNativeFetch?window.adminNativeFetch:fetch,o=new Headers;return this.options.admin&&ShopifyApp?.EncryptedData&&o.set("X-Mintt-Encrypted-Data",ShopifyApp.EncryptedData),i(this.T(),{headers:o}).then(t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}).then(t=>{try{n.v(t)}catch(t){console.error("Parse function error:",t.message)}}).catch(t=>{console.log("Fetch error:",t.message),this.options.admin&&this.options.error.call(this,{meta:{code:500,username:"",error_message:"Instagram connection failed. Please try saving your feed again."}})}).finally(()=>{Date.now()}),!0}v(t){const e=document.getElementById(this.options.target);if(!e)return!1;if("object"!=typeof t)throw new Error("Invalid JSON response");const{meta:{code:n,error_message:i}}=t,o=parseInt(n,10);if(this.m=this.h()&&"number"!=typeof this.m?e?e.clientWidth:null:this.m,e.innerHTML="",200!==o)return this.options.admin&&"function"==typeof this.options.error&&this.options.error.call(this,t),!1;"function"==typeof this.options.success&&this.options.success.call(this,t),this.k(t);let s=t.data,a=t.meta.profile_picture,d=t.meta.followers,r="";this.accountUsername=t.meta.username;const l=2===parseInt(this.options.openIg)?"instafeed-simple-popup":"",c=this.S(!0)&&"instafeed-simple-popup"!==l;for(let e=0,n=s.length;e0&&(this.I(this.options.charge)||this.options.admin)){let t=n.tagged_products;const o=null!=n?.carousel?.[0]?.carousel_index?parseInt(n.carousel[0].carousel_index,10):0;this.options.carouselProductTags&&n?.carousel?.length>0&&(t=n.tagged_products.filter(t=>this.P(t,o))),d=t.length,t.forEach(t=>{i+=this.t(t,n.id,l,parseInt(e),o)})}let u=n.carousel?.length>1?this.M(n,e):"",p=n.hasOwnProperty("alt_text")?this.O(n.alt_text):"Instagram post with the caption: "+this.O(this.A(n,"caption.text").substring(0,64))+"...";const h="pristine-avanti.myshopify.com"===this.options.shopOrigin,f=h?"controls":"",w=h?"instafeed-video-controls-show":"";let m="",g="",v="",$="";if("video"===n.type&&n.hasOwnProperty("videos")){m=tt+"-video",g="
",v="
";const t=this.C(n);$=u+"
'}else{const t=A(n.images?.standard_resolution?.url||"");$=u+""+p+""}const b=0===e?s[Math.min(this.options.picturesNeeded,s.length)-1]:s[e-1],y=e>=Math.min(this.options.picturesNeeded,s.length)-1?s[0]:s[e+1],I=b?b.id:n.id,x=y?y.id:n.id,S=8===parseInt(this.options.layout)&&s.length<=1;$=(c||!this.S(!0)||S?"":"
")+v+g+$;let _="instafeed-simple-popup"===l?this.F(l,d,s.length):this.L(l,o,s.length);const T={model:n,id:n.id,postIndex:parseInt(e),fullId:n.id,minusId:I,plusId:x,link:P(M(n.link)),image:n.images.standard_resolution.url,video:m,tagged_username_link:n.user.username.length>0&&this.accountUsername!==n.user.username&&1!==parseInt(this.options.hideUsernames,10)?(()=>{const t=M(n.link),e=this.O(n.user.username),i=t?"@"+e+"":"@"+e;return"
"+this.o("TAGGED_BY").replace("{username}",i)+"
"})():"",username:this.O(t.meta.username),userPicture:(a.length>0?A(a):"")||"https://"+Y+"/assets/img/logo-instagram-transparent.png",imageFullHtml:$,taggedProduct:i,date:this.N(n.created_time),caption:this.O(this.A(n,"caption.text")),likes:n?.likes?.count>0?""+this.U(n.likes.count,1)+"":"",location:this.O(this.A(n,"location.name")||"")},k=(n.tagged_products||[]).length>0||this.options.admin&&this.I(this.options.charge);T.hotspotsLayer=k?"
":"",r+=this.R(_,T)}if(this.options.picturesLoaded>=this.options.picturesNeeded||t.data.length===this.options.picturesLoaded)break}if(I(this.options.feedId),r.trim().length>0){const t=document.querySelector('.instafeed-modals-wrapper[data-feed-id="'+this.options.feedId+'"]');t?this.D(r,t):this.D('
'+r+"
")}if(this.options.injectedData)return this.H(),!0;var u=0;8===parseInt(this.options.layout)?u=100:this.S()?this.p()?(u=parseFloat(100/this._(this.m)).toFixed(3),this.m=void 0):u=parseFloat(100/this.options.columnsMobile).toFixed(3):this.u()?(u=parseFloat(100/this._(this.m)).toFixed(3),this.m=void 0):u=parseFloat(100/this.options.columns).toFixed(3),window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]=parseInt(Math.round(100/u)),window.InstafeedAPI.settings.totalImages[this.options.feedId]=this.options.picturesLoaded,e.innerHTML+=this.j(s,this.O),this.B(),8===parseInt(this.options.layout)&&this.G(),this.J(d,a),this.V(),this.H(),this.X(),2!==parseInt(this.options.openIg,10)&&3!==parseInt(this.options.openIg,10)||(this.Y(),this.W(),this.q()),2===parseInt(this.options.openIg,10)&&this.S()&&this.Z(),2===parseInt(this.options.openIg,10)&&this.I(this.options.charge)&&this.K(),this.I(this.options.charge)&&(2===parseInt(this.options.openIg,10)||3===parseInt(this.options.openIg,10))&&this.S()&&this.tt();const p=new CustomEvent("instafeedAppLoaded",{detail:{account:this.accountUsername,feedId:this.options.feedId}});return document.dispatchEvent(p),instafeedFeedsLoaded.push(this.options.feedId),!0}P(t,e){const n=String(e);return parseInt(t.index)===e||!(!t.placement||null==t.placement[n])}k(t){window.InstafeedAPI.settings.carousels[this.options.feedId]=[],t.data.forEach((t,e)=>{if(t?.carousel?.length>0){const n=t.tagged_products||[];window.InstafeedAPI.settings.carousels[this.options.feedId][e]=t.carousel.map((t,e)=>{const i=null!=t.carousel_index?parseInt(t.carousel_index,10):e,o=n.filter(t=>this.P(t,i));return{media_url:t.thumbnail_url?t.thumbnail_url:t.media_url,tagged_products:o}})}})}M(t,e){if(!t?.carousel||t.carousel.length<=1)return"";const n=this.options.feedId;let i="";return t.carousel.forEach((t,o)=>{i+=``}),`\n \n \n \n `}L(t,e,n){var i;const o=this.S(!0)&&"instafeed-simple-popup"!==t,s=8===parseInt(this.options.layout)&&void 0!==n&&n<=1,a=this.S(!0)&&!this.options.admin&&parseInt(this.options.showProducts,10)<2&&e>0&&this.I(this.options.charge),d=this.o("TAG_PRODUCTS"),r=this.o("TAG_COLLECTIONS"),l=this.I(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)?"{{likes}}":"";i=this.options.admin&&this.I(this.options.charge)?"
"+d+""+r+"
":"";let c=this.options.admin&&!this.I(this.options.charge)?`
${this.o("SHOW_PRODUCTS_MESSAGE")}${this.o("UPGRADE")}
`:"";const u=`
✕
`,p=this.S(!0)?"":u,h=this.S(!0)&&!o?u:"",f=this.S(!0)||s?"":"",w=this.S(!0)||s?"":"",m=parseInt(this.options.instagramLinks)>0?"• ":"",g="";let v="
"+p+f;v+="${w}
`,v}F(t,e,n){const i=8===parseInt(this.options.layout)&&void 0!==n&&n<=1,o=this.options.admin&&this.I(this.options.charge)?"
"+this.o("TAG_PRODUCTS")+"
":"",s=`
✕
`,a=this.S(!0)?"":s,d=this.S(!0)?s:"",r=this.S(!0)||i?"":"",l=this.S(!0)||i?"":"",c=o+"
{{taggedProduct}}
";let u="
"+a+r;return u+=""+l+"
",u}V(){this.S(!0)&&document.querySelectorAll("."+tt+"-post-image").forEach(t=>{const e=t.nextElementSibling,n=e?e.querySelector("."+tt+"-header"):null;n&&t.parentNode.insertBefore(n,t)})}J(t,e){const n=document.getElementById(this.options.target),i=this.I(this.options.charge)&&parseInt(this.options.apiVersion)>4&&(1===parseInt(this.options.showFollowers)||3===parseInt(this.options.showFollowers)),o=this.I(this.options.charge)&&parseInt(this.options.apiVersion)>4&&parseInt(this.options.showFollowers)>1,s=i?`

${this.o("FOLLOWERS").replace("{number}",this.U(t))}

`:"",a=0===parseInt(this.options.feedId)?"undefined"!=typeof instafeedLocalTitle&&instafeedLocalTitle.length>0:void 0!==window["instafeed"+this.options.feedId+"Title"]&&window["instafeed"+this.options.feedId+"Title"].length>0,d=a&&0===parseInt(this.options.feedId)?instafeedLocalTitle:window["instafeed"+this.options.feedId+"Title"],r=this.options.title.length>0||a;let l="";if(o){const t=A(e);t&&(l+=``)}if(r){const t=a?d:this.options.title;l+=`

${this.O(t)}

`}i&&(l+=s),l.length>0&&this.D(l,n,n.firstChild)}B(){const t=document.getElementById(this.options.target),e=document.querySelector(`.${tt}-new-layout-container[data-feed-id="${this.options.feedId}"]`),n=document.querySelector(`.${tt}-new-layout-wrapper[data-feed-id="${this.options.feedId}"]`);requestAnimationFrame(()=>{const i=parseFloat(t.offsetWidth.toFixed(3)),o=8===parseInt(this.options.layout),s=o?Math.min(260,Math.max(150,Math.round(.28*(window.innerWidth||i)))):null,a=null!==s?Math.min(s,i):i,d=parseFloat((a/window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]*(parseInt(this.options.space)/100)).toFixed(3)),r=parseInt(window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]-1),l=parseFloat((r*d).toFixed(3)),c=parseFloat((a-l).toFixed(3)),u=parseFloat((c/window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]).toFixed(3)),p=1===parseInt(this.options.format)?parseFloat((u*(16/9)).toFixed(3)):2===parseInt(this.options.format)?parseFloat((u*(5/4)).toFixed(3)):3===parseInt(this.options.format)?parseFloat((u*(3/4)).toFixed(3)):5===parseInt(this.options.format)?parseFloat((u*(4/3)).toFixed(3)):parseFloat(u.toFixed(3));if(document.querySelectorAll(`.${tt}-new-layout-item[data-feed-id="${this.options.feedId}"]`).forEach(t=>{t.style.width=`${u}px`,t.style.height=`${p}px`}),1===parseInt(this.options.showProducts,10)&&this.I(this.options.charge)&&p>=300&&(document.querySelectorAll(`.${tt}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-product-item img`).forEach(t=>{t.style.display="block",t.style.height=Math.min(parseFloat((.15*p).toFixed(3)),60)+"px",t.style.width=Math.min(parseFloat((.15*p).toFixed(3)),60)+"px"}),document.querySelectorAll(`.${tt}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-tagged-buy-button-simple-popup`).forEach(t=>{t.style.display="block"})),o?(e.style.width=`${a}px`,e.style.height=`${p}px`):(e.style.width=`${i}px`,e.style.height=`${p}px`),n.style.gap=`${d}px`,window.InstafeedAPI.settings.sliderStepSize[this.options.feedId]=0===this.options.sliderBehavior||2===this.options.sliderBehavior?i+d:u+d,window.InstafeedAPI.settings.sliderRowSize[this.options.feedId]=i+d,window.InstafeedAPI.settings.totalImages[this.options.feedId]=window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]&&(n.style.display="grid",e.style.height="unset",n.style.gridTemplateColumns="repeat("+window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]+", 1fr)"),7===parseInt(this.options.layout)&&window.InstafeedAPI.settings.totalImages[this.options.feedId]>=window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]){if(1===parseInt(this.options.showHalfPosts,10)&&38498!==this.options.feedId){const t=parseFloat((u/2).toFixed(3));n.style.transform="translateX(-"+t+"px)"}at.addListener(t,"swiped-left",t=>{t.detail.touchType&&window.InstafeedAPI.sliderMove(1,this.options.feedId)}),at.addListener(t,"swiped-right",t=>{t.detail.touchType&&window.InstafeedAPI.sliderMove(-1,this.options.feedId)}),this.S()||this.et(),window.InstafeedAPI.settings.sliderState[this.options.feedId]={currentTransform:0,minTransform:0,isTransitioning:!1};const e=parseInt(this.options.sliderBehavior,10);if(e>1){const t=3===parseInt(this.options.autoplay,10)&&4!==e;4===e?window.InstafeedAPI.sliderMove(1,this.options.feedId,e):t||(instafeedScrollIntervals[this.options.feedId]=setInterval(()=>{window.InstafeedAPI.sliderMove(1,this.options.feedId,e)},instafeedSlideSpeed))}}})}G(){var t=this.options.feedId,e=this;requestAnimationFrame(function(){function n(){o.querySelectorAll("video").forEach(function(t){t.pause(),t.removeAttribute("src"),t.load()}),sessionStorage.setItem(s,window.location.pathname),o.remove()}var i,o,s,a,d,r,l,c,u,p,h,f;e.options.admin||(i=document.getElementById(e.options.target))&&i.parentNode!==document.body&&document.body.appendChild(i),(o=document.querySelector("."+tt+'-new-layout-container[data-feed-id="'+t+'"]'))&&(s=tt+"_floating_closed_"+t,sessionStorage.getItem(s)?o.remove():(a=o.querySelector("."+tt+'-new-layout-wrapper[data-feed-id="'+t+'"]'))&&(d=a.querySelectorAll("."+tt+"-new-layout-item"),(r=d[0])&&(d.forEach(function(t,e){t.style.display=0===e?"block":"none"}),o.querySelectorAll("."+tt+"-hover-layer").forEach(function(t){t.style.opacity="0",t.style.pointerEvents="none"}),r.querySelector("."+tt+"-floating-close-btn")||((l=r.querySelector("video"))&&(l.muted=!window.InstafeedAPI.settings.sound,(c=document.createElement("div")).setAttribute("role","button"),c.tabIndex=0,c.className=tt+"-sound-button "+tt+"-floating-sound-btn"+(window.InstafeedAPI.settings.sound?" sound-on":""),c.setAttribute("aria-label",window.InstafeedAPI.settings.sound?"Unmute":"Mute"),c.setAttribute("data-video-id",l.id),c.addEventListener("click",function(t){t.stopPropagation(),window.InstafeedAPI.toggleSound(c)}),c.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),window.InstafeedAPI.toggleSound(c))}),r.appendChild(c)),(u=function(t,e,n,i){var o=document.createElement("button");o.type="button",o.className=t,o.setAttribute("aria-label",e),o.innerHTML=n,o.onclick=i,r.appendChild(o)})(tt+"-floating-minimize-btn","Minimize","−",function(){o.classList.add(tt+"-floating-minimized")}),u(tt+"-floating-close-btn","Close post","×",n)),(p=o.querySelector("."+tt+"-floating-pill"))||((p=document.createElement("div")).className=tt+"-floating-pill",p.setAttribute("aria-label","Expand post"),(h=r.getAttribute("data-"+tt+"-thumbnail")||r.querySelector("img")&&r.querySelector("img").getAttribute("data-"+tt+"-src")||r.querySelector("video")&&r.querySelector("video").getAttribute("data-poster"))&&(p.style.backgroundImage='url("'+h.replace(/"/g,'\\"')+'")'),p.onclick=function(t){t.target.closest("."+tt+"-floating-pill-close")||o.classList.remove(tt+"-floating-minimized")},(f=document.createElement("button")).type="button",f.className=tt+"-floating-pill-close",f.innerHTML="×",f.setAttribute("aria-label","Close post"),f.onclick=function(t){t.stopPropagation(),n()},p.appendChild(f),o.appendChild(p)),requestAnimationFrame(function(){o.classList.add(tt+"-floating-visible")}))))})}nt(t,e,n,i){if(this.options.admin&&""!==t){const o=0!==n&&n!==t;return`
${o?t+" - "+n:t}${!o&&e===i&&e.toString().length>1?` ${e}`:""}
`}if(t=Number(t),e=Number(e)||0,n=Number(n)||0,i=Number(i)||0,!(t>0))return"";const o=n>0&&n!==t,s=k(),a=s&&1!==parseFloat(s.currency?.rate||1)?s.currency.rate:1;1!==a&&(t=Math.ceil(t*a),n>0&&(n=Math.ceil(n*a)),!o&&e>0&&(e=Math.ceil(e*a)));const d=s?t=>new Intl.NumberFormat(void 0,{style:"currency",currency:s.currency?.active||"USD"}).format(t):t=>Number(t).toFixed(2),r=o?d(t)+" - "+d(n):d(t),l=!o&&e>0&&e>t&&e===i?d(e):"";return`
${r}${l?` ${l}`:""}
`}it(t,e){let n='
';const i=Math.floor(t),o=t%1!=0;for(let t=0;t<5;t++)n+=t
':t===i&&o?'
':'
';return n+=`
${e>1?" | "+this.o("REVIEWS").replace("{number}",e):"("+e+")"}`,n}j(t){let e="",n=0,i=0;for(let o of t)if(n++,i=o?.tagged_products?.length||0,e+=this.ot(o,n,i),n>=this.options.picturesNeeded||t.length===n)break;let o=window.InstafeedAPI.settings.dynamicSliderArrows.includes(this.options.shopOrigin)?"display:none;":"",s="";return n>window.InstafeedAPI.settings.sliderNumVisibleImages[this.options.feedId]&&this.options.sliderBehavior<=1&&7===parseInt(this.options.layout)&&(s=`\n \n \n `),`\n
\n
\n ${e}\n
\n ${s}\n
`}ot(t,e,n){const i=t.id,o=parseInt(this.options.openIg,10),s=parseInt(this.options.showProducts,10);let a=t.images.standard_resolution,d=this.O(t.caption.text).substring(0,64),r=t.hasOwnProperty("alt_text")?this.O(t.alt_text):"Instagram post with the caption: "+this.O(d)+"...";const l=Array.isArray(t.tagged_products)&&t.tagged_products.length>0;let c=1===s&&4!==parseInt(this.options.format)&&t.hasOwnProperty("tagged_products")&&t.tagged_products.length>0&&this.I(this.options.charge)?this.st(t.tagged_products,t.id):"",u=c.length>0?"inline-product":"",p=parseInt(this.options.autoplay,10),h=!1,f="loop";p>0&&"video"===t.type&&(h=!0,3===p&&(f=""));const w=A(t.images.standard_resolution.url),m="class='"+tt+"-lazy-image' src='//"+Y+"/assets/img/placeholder.png' data-instafeed-src='"+w+"'";let g=h?``:`${r}`;g+=this.I(this.options.charge)&&t.user.username.length>0&&this.accountUsername!==t.user.username&&1!==parseInt(this.options.hideUsernames,10)&&4!==parseInt(this.options.format)?`
@${this.O(t.user.username)}
`:"";let v="inline-product"===u?`
${c}
`:`
${this.dt(t)}
`,$="";1===o?$=`tabindex='0' role='link' data-instafeed-keydown-event='true' aria-label='Go to Instagram post ${e}'`:2===o||3===o?$=`tabindex='0' data-instafeed-role-button='true' data-instafeed-keydown-event='true' aria-haspopup='dialog' aria-label='Instagram post ${e} opens in a popup'`:4===o&&l&&($=`tabindex='0' role='link' data-instafeed-keydown-event='true' aria-label='Go to ${this.O((t.tagged_products[0].title||"").substring(0,40))} product page'`);let b=0!==o&&(4!==o||l)||0===o&&1===s&&n>0?`
${v}
`:"";g+=`\n
\n ${b}\n
`;const y=this.rt(g,t),I="undefined"!=typeof location&&/^\/products\/?/.test(location.pathname);let x=n>0&&(!I||"laisla-shop.myshopify.com"===this.options.shopOrigin)?'
':"";const S=t.images&&t.images.standard_resolution?A(t.images.standard_resolution.url):"";return`
${x}${y}
`}rt(t,e){const n=parseInt(this.options.openIg,10);if(1===n){const n=M(e.link);if(!n)return t;const i=JSON.stringify(String(e&&null!=e.id?e.id:""));return`${t}`}if(4===n&&Array.isArray(e.tagged_products)&&e.tagged_products.length>0){const n=e.tagged_products[0];if(n?.handle){const i=this.options.admin?this.options.shopOrigin:window.location.hostname,o=this.options.admin?"/":Shopify?.routes?.root||"/",s=F(parseInt(n.variant,10),this.options.feedId,e&&e.id,!this.options.admin&&Boolean(parseInt(this.options.pixel,10))),a=parseInt(n.gid,10)||0,d=this.options.admin?' target="_blank" rel="noopener"':"",r=JSON.stringify(String(e&&null!=e.id?e.id:""));return`${t}`}}return t}st(t,e){this.o("SHOP_NOW");let n=this.options.admin?this.options.shopOrigin:window.location.hostname,i=this.options.admin?"/":Shopify.routes.root,o=this.options.admin?"":'style="pointer-events:all;"';return(t=t.slice(0,1)).map(t=>{const s=F(t.variant,this.options.feedId,e,!this.options.admin&&Boolean(parseInt(this.options.pixel,10))),a=JSON.stringify(String(null!=e?e:"")),d=parseInt(t.gid,10)||0,r=A(t.image);return`\n
\n ${t.image&&t.image.length>0&&r?`\n `:""}\n \n
`}).join("")}dt(t){if(this.I(this.options.charge)&&parseInt(this.options.likes)>0&&parseInt(this.options.apiVersion)>4)return`\n ${this.U(t.likes.count,1)}`;{const e="video"===t.type?"video-icon-v3.png":"instagram-icon-v2.svg";return``}}t(t,e,n,i=0,o=0){const s="instafeed-simple-popup"===n?"instafeed-tagged-buy-button-simple-popup ":"tagged-buy-button",a=parseInt(this.options.showPrices)>0?this.nt(t.price,t.compare_price||0,t.price_max||0,t.compare_price_max||0):"",d=parseInt(this.options.showReviews)>0&&t.rating_count>0?this.it(t.rating,t.rating_count):"",r=P(t.image&&""!==t.image.trim()&&O(t.image)||"https://"+Y+"/assets/img/image-placeholder-v2.png"),l="ig"===t.source?"disabled":"",c="ig"===t.source?this.o("PRODUCT_FROM_IG"):this.o("DELETE"),u=this.options.admin&&this.I(this.options.charge),p=t.placement&&"object"==typeof t.placement?t.placement:{},h=p[String(o)]||p[0]||null,f=null!=h?.x_pct?h.x_pct:void 0!==t.x_pct&&null!==t.x_pct?t.x_pct:"",w=null!=h?.y_pct?h.y_pct:void 0!==t.y_pct&&null!==t.y_pct?t.y_pct:"",m="object"==typeof p&&null!==p?P(JSON.stringify(p)):"{}",g=F(t.variant,this.options.feedId,e,!this.options.admin&&Boolean(parseInt(this.options.pixel,10))),v=k()?.locale??this.options.language;t.translations&&v in t.translations&&"title"in t.translations[v]&&""!==t.translations[v].title.trim()&&(t.title=t.translations[v].title);const $=this.O(t.title),b=t.variant_title?"
"+this.O(t.variant_title)+"
":"",y=this.options.addToCart&&parseInt(t.variant)>0&&!this.options.admin,I="instafeed-simple-popup"===n?"":y?this.o("ADD_TO_CART"):this.o("SHOP_NOW"),x=this.options.admin?"/":k()?.routes?.root??"/",S=JSON.stringify(String(null!=e?e:"")),_=parseInt(t.gid,10)||0,T=`onclick='InstafeedAPI.eventTag("product_click", ${this.options.feedId}, ${_}, ${S});' href="//${window.location.hostname}${x}${C(t.handle)}${g}"`,M=y?`role="button" href="#" onclick='event.preventDefault(); InstafeedAPI.eventTag("product_click", ${this.options.feedId}, ${_}, ${S}); InstafeedAPI.addToCart(this, ${parseInt(t.variant)}, ${JSON.stringify(n)}, ${this.options.feedId}, ${JSON.stringify(String(e))});' data-sold-out='${this.o("SOLD_OUT")}'`:T,A="instafeed-simple-popup"===n?y?"add-to-cart-button":"shop-now-button":"";let L,E;return this.options.admin?(L=`
\n
${$}${b}
\n ${d}${a}\n
\n `,E=`${$}`):y?(L=`\n `,E=`\n ${$}\n `):(L=`\n `,E=`\n ${$}\n `),`
${E}
${L}
`}D(t,e=document.body,n=null){const i=document.createElement("template");for(i.innerHTML=t;i.content.firstChild;)e.insertBefore(i.content.firstChild,n)}W(){if(window.instafeedModalsWrapperObserver)return;window.instafeedBodyObserverCounter=window.instafeedBodyObserverCounter||0;const t=new MutationObserver(()=>{if(window.instafeedBodyObserverCounter>=10)t.disconnect();else if(!document.body.lastElementChild.classList.contains("instafeed-modals-wrapper")){const t=document.querySelectorAll(".instafeed-modals-wrapper");t.length>0&&t.forEach(t=>{document.body.appendChild(t),window.instafeedBodyObserverCounter++})}});t.observe(document.body,{childList:!0}),window.instafeedModalsWrapperObserver=t}q(){document.querySelectorAll(`[data-instafeed-role-button], .${tt}-video-control, .${tt}-sound-button, .${tt}-close-button, .${tt}-post-control-button, .${tt}-new-arrow, .${tt}-carousel-arrow`).forEach(t=>{t.setAttribute("role","button")})}tt(){window.instafeedCarouselListeners||document.querySelector(".instafeed-post-image")&&(at.addListener(document,"swiped",function(t){if(!t.target.closest(".instafeed-post-image")||window.instafeedCarouselTransitioning)return;const e=t.target.closest(".instafeed-post-image"),n=e.querySelector(".instafeed-carousel-arrow-left"),i=e.querySelector(".instafeed-carousel-arrow-right");if("left"===t.detail.dir&&i){window.instafeedCarouselTransitioning=!0;const t=i.getAttribute("onclick").match(/['"]([^'"]+)['"]/)[1],e=parseInt(i.getAttribute("onclick").match(/,\s*(\d+)/)[1],10);window.InstafeedAPI.carouselMove(i,t,e,"right")}else if("right"===t.detail.dir&&n){window.instafeedCarouselTransitioning=!0;const t=n.getAttribute("onclick").match(/['"]([^'"]+)['"]/)[1],e=parseInt(n.getAttribute("onclick").match(/,\s*(\d+)/)[1],10);window.InstafeedAPI.carouselMove(n,t,e,"left")}}),window.instafeedCarouselListeners=!0)}Z(){at.addListener(document,"swiped",function(t){const e=document.getElementById(window.InstafeedAPI.settings.modalOpen);if(!e||!t.target.className.includes("instafeed-simple-popup"))return;const n={up:{selector:`.${tt}-post-control-button.arrow-down`,direction:"next",transform:"translateY(100%)",containerTransform:"translateY(-100%)"},down:{selector:`.${tt}-post-control-button.arrow-up`,direction:"prev",transform:"translateY(-100%)",containerTransform:"translateY(100%)"}}[t.detail.dir];if(n){const t=e.querySelector(n.selector);if(t){const i=t.getAttribute(`data-${tt}-open-id`),o=document.getElementById(i);o&&(o.style.setProperty("display","flex","important"),o.style.transform=n.transform,o.style.opacity="1",requestAnimationFrame(()=>{const i="0.2s ease-out";e.style.transition=`transform ${i}, opacity ${i}`,o.style.transition=`transform ${i}`,e.style.transform=n.containerTransform,o.style.transform="translateY(0)",setTimeout(()=>{e.style.transition="",e.style.transform="",o.style.transition="",o.style.transform="",t.click()},200)}))}}window.lastSwipeEventInstafeed=t})}K(){document.querySelectorAll(".instafeed-simple-popup-product-list").forEach(t=>{let e,n,i=!1;at.addListener(t,"mousedown",function(o){o.stopPropagation(),i=!0,t.classList.add("grabbing"),window.InstafeedAPI.settings.isDragging=!0,e=o.pageX-t.offsetLeft,n=t.scrollLeft}),at.addListener(document,"mouseup",function(){i&&(i=!1,t.classList.remove("grabbing"),setTimeout(()=>{window.InstafeedAPI.settings.isDragging=!1},0))},{passive:!0}),at.addListener(t,"mousemove",function(o){if(!i)return;o.stopPropagation(),o.preventDefault();const s=2.5*(o.pageX-t.offsetLeft-e);t.scrollLeft=n-s},{passive:!1}),at.addListener(t,"touchstart",function(o){o.stopPropagation(),i=!0,t.classList.add("grabbing"),window.InstafeedAPI.settings.isDragging=!0,e=o.touches[0].pageX-t.offsetLeft,n=t.scrollLeft},{passive:!0}),at.addListener(document,"touchend",function(){i&&(i=!1,t.classList.remove("grabbing"),setTimeout(()=>{window.InstafeedAPI.settings.isDragging=!1},0))},{passive:!0}),at.addListener(document,"touchcancel",function(){i&&(i=!1,t.classList.remove("grabbing"),window.InstafeedAPI.settings.isDragging=!1)},{passive:!0}),at.addListener(t,"touchmove",function(o){if(!i)return;o.stopPropagation(),o.preventDefault();const s=2.5*(o.touches[0].pageX-t.offsetLeft-e);t.scrollLeft=n-s},{passive:!1})})}T(){const t=this.options.admin?"":`https://${W}`,e=window.location.pathname.includes("/products/"),n=window.location.pathname.includes("/collections/")||new URLSearchParams(window.location.search).get("collection")?.includes("/collections/");let i="",o="";if(e)i=window.location.pathname.split("/products/")[1];else if(n)if(window.location.pathname.includes("/collections/"))i=window.location.pathname.split("/collections/")[1];else{const t=new URLSearchParams(window.location.search).get("collection");i=t?.split("/collections/")[1]}i=i?.split(/[?&#/]/)[0]||"",["sizzthebrand.myshopify.com","thankyou-485.myshopify.com","bellafitwear.myshopify.com","kv4cd6-ag.myshopify.com","bbpews-wu.myshopify.com"].includes(this.options.shopOrigin)&&i.length>0&&ShopifyAnalytics?.meta?.product?.id&&(i=ShopifyAnalytics?.meta?.product?.id,o="&handle_type=gid");const s=this.options.overrides.length>0?`&overrides=${encodeURIComponent(this.options.overrides)}`:"",a=this.options.forceUpdate?1:0;return`${t}/${Q}/v${this.options.apiVersion}?limit=${encodeURIComponent(String(this.options.picturesNeeded))}&account=${encodeURIComponent(this.options.shopOrigin)}&fu=${a}&fid=${encodeURIComponent(String(this.options.feedId))}&hash=${encodeURIComponent(this.options.hash)}&locale=${encodeURIComponent(this.options.locale)}&handle=${encodeURIComponent(i)}${o}${s}`+(this.options.admin?"":"&client=feed")}R(t,e){return t.replace(/{{([\w[\].]+)}}/g,(t,n)=>{const i=this.A(e,n);return null!==i?i:""})}A(t,e){const n=(e=e.replace(/\[(\w+)\]/g,".$1")).split(".");for(const e of n){if(null===t||!(e in t))return null;t=t[e]}return t}I(t){return parseInt(t)>0}_(t){if(this.options.admin)return this.options.desktopPreview?4:2;const e=[{width:480,columns:2},{width:768,columns:3},{width:1024,columns:4},{width:1200,columns:5},{width:1440,columns:6},{width:1680,columns:7},{width:1920,columns:8}].find(e=>t=0;i--){const o=Math.pow(1e3,i+1);if(t<=-o||t>=o)return+(t/o).toFixed(e)+n[i]}return t}N(t){return new Date(1e3*t).toLocaleDateString(navigator.language,{month:"long",day:"numeric"})}S(t=!1){return!(!this.options.admin||this.options.desktopPreview||!1!==t)||(!this.options.admin||!this.options.desktopPreview||!1!==t)&&("merchantoftennis.myshopify.com"===k()?.shop?window.matchMedia("only screen and (max-width: 768px)").matches:window.matchMedia("only screen and (max-width: 1024px)").matches)}$(t){const e=new ResizeObserver(t=>{const n=t[0];n?.contentRect?.width>0&&(e.disconnect(),this.run(n.contentRect.width))});e.observe(t)}i(){if(window.instafeedCssLoaded)return;if(document.currentScript&&!document.currentScript.src.includes(V))return!1;const t=document.createElement("link");t.href=`https://${Y}/cdn/${tt}-${q}.css`,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),window.instafeedCssLoaded=!0}Y(){if(instafeedPopupsPreloaded)return!1;if(this.lt()||"going-natural-marketplace.myshopify.com"===k()?.shop)return!1;instafeedPopupsPreloaded=!0;const t=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(this.ct(),e.unobserve(t.target))})},{threshold:.1}),e=document.querySelector("#insta-feed, .instafeed-shopify");e&&t.observe(e)}lt(){if("connection"in navigator&&navigator.connection){const t=navigator.connection;if(!0===t.saveData)return!0;if("effectiveType"in t&&["slow-2g","2g","3g"].includes(t.effectiveType))return!0;if("downlink"in t&&"number"==typeof t.downlink&&t.downlink<1)return!0}return!1}ct(){const t=document.querySelectorAll("div.lightbox-instagram");let e=0;t.forEach(t=>{let n=0;t.querySelectorAll("video, img").forEach(t=>{setTimeout(()=>{if("VIDEO"===t.tagName)t.setAttribute("preload","metadata"),t.load();else{const e=t.getAttribute("data-instafeed-src");e&&(t.setAttribute("src",e),t.classList.add(tt+"-lazy-image--handled"))}},e),e+=200+n,n+=50})})}H(){const t=document.querySelectorAll("."+tt+"-lazy-image");if(!t.length||!("IntersectionObserver"in window))return void t.forEach(t=>this.ut(t));const e="rainbowoptx"===this.options.accountUsername?"600px 0px":"200px 0px",n=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(this.ht(),e.unobserve(t.target),this.ut(t.target))})},{rootMargin:e});t.forEach(t=>{t.classList.contains(tt+"-lazy-image--handled")||n.observe(t)})}ut(t){S(t)}X(){const t=parseInt(this.options.autoplay);this.ft();const e=t=>t?.play(),n=t=>document.getElementById(`inline-video-${t}-${this.options.target}`),i=k()?.designMode&&navigator.userAgent.includes("Shopify Mobile"),o={rootMargin:"200px 0px"},s=document.querySelectorAll("video[data-poster]");let a=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){this.ht();let e=t.target,n=e.getAttribute("data-poster");e.setAttribute("poster",n),a.unobserve(e)}})},o);if(s.forEach(t=>{a.observe(t)}),1===t&&!i){const d=document.querySelectorAll('.auto-loop-videos[data-feed-id="'+this.options.feedId+'"]'),r=new IntersectionObserver((t,n)=>{t.forEach(t=>{t.isIntersecting&&(e(t.target),n.unobserve(t.target))})},o);d.forEach(t=>r.observe(t))}if(2===t&&!i){let l=document.querySelectorAll(`.${tt}-hover-layer[data-feed-id='${this.options.feedId}-video'], .${tt}-overlay[data-feed-id='${this.options.feedId}-video']`);l&&0!==l.length||0!==parseInt(this.options.openIg)||(l=document.querySelectorAll(`.${tt}-new-layout-item-container`)),l.forEach(t=>{t.style.opacity="1",t.style.background="transparent"}),l.forEach(t=>{const i=i=>{const o=t.getAttribute(`data-${tt}-open-id`).split("-")[0],s=n(o);var a;i?(e(s),t.style.opacity=0):(a=s,a?.pause(),t.style.opacity=1)};at.addListener(t,"mouseover",()=>i(!0)),at.addListener(t,"mouseout",()=>i(!1)),at.addListener(t,"touchstart",()=>i(!0),{passive:!0}),at.addListener(t,"touchend",()=>i(!1),{passive:!0})})}if(3===t&&!i){const c=this.options.feedId,u=Array.from(document.querySelectorAll('.auto-loop-videos[data-feed-id="'+c+'"]'));if(0===u.length)return;const p=parseInt(this.options.sliderBehavior,10);if(7===parseInt(this.options.layout,10)&&p>1&&4!==p){const $=document.querySelector(`.${tt}-new-layout-container[data-feed-id="${c}"]`);let b=null;const y=()=>{if(!$)return[];const t=$.getBoundingClientRect();return u.filter(e=>{const n=e.getBoundingClientRect();return n.right>t.left&&n.left{b=new Set(y()),window.InstafeedAPI.sliderMove(1,c,p),setTimeout(()=>x(0),550)},x=(t=0)=>{const e=b?y().filter(t=>!b.has(t)):y();if(!e.length)return t<5?setTimeout(()=>x(t+1),120):I();const n=t=>{if(t>=e.length)return I();const i=e[t];u.forEach(t=>{t!==i&&(t.pause(),t.currentTime=0)}),i.currentTime=0,i.muted=!0,i.onended=()=>n(t+1),i.play()};n(0)},S=new IntersectionObserver((t,e)=>{t.some(t=>t.isIntersecting)&&(x(0),e.disconnect())},o);return void(u[0]&&S.observe(u[0]))}let h=!1,f=!1;const w=t=>t?.play(),m=t=>t?.pause();function g(t){if(h)return;h=!0,u.forEach((e,n)=>{n!==t&&(m(e),e.currentTime=0)});const e=u[t];e?(e.currentTime=0,e.muted=!0,w(e),h=!1):h=!1}u.forEach((t,e)=>{t.onended=()=>g((e+1)%u.length)});const v=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&!f&&(f=!0,g(0),e.unobserve(t.target))})},{rootMargin:"200px 0px"});u[0]&&v.observe(u[0])}}ft(){Array.from(document.querySelectorAll('video[id^="video-"]')).filter(t=>t.id.includes(this.options.target)).forEach(t=>{t.onplay=()=>{t.muted=!window.InstafeedAPI.settings.sound,t.id.split("-").pop(),null===window.InstafeedAPI.settings.modalOpen&&t.pause()}})}ht(){if(window.InstafeedAPI.settings.feedViewed?.[this.options.feedId])return!1;window.InstafeedAPI.settings.feedViewed[this.options.feedId]=!0,window.InstafeedAPI.eventTag("feed_view",this.options.feedId)}et(){document.addEventListener("pointerdown",function(t){function e(t){let e=n-t.clientX;if(a&&console.log("deltaX",e),Math.abs(e)>5){o=!0;const a={dir:e>0?"left":"right",touchType:"mouse",fingers:1,xStart:parseInt(n,10),xEnd:parseInt(t.clientX,10),yStart:parseInt(i,10),yEnd:parseInt(t.clientY,10)},d=new CustomEvent(e>0?"swiped-left":"swiped-right",{bubbles:!0,cancelable:!0,detail:a});s.dispatchEvent(d)}}if(0!==t.button)return;let n=t.clientX,i=t.clientY,o=!1,s=t.target,a="mintt-studio-developers.myshopify.com"===k()?.shop;if(a&&console.log("e.target",t.target),!Array.from(s.classList).some(t=>t.includes("instafeed-hover-layer")||t.includes("instafeed-new-layout-item-container")))return!1;t.stopPropagation(),a&&(console.log("dragTarget",s),console.log("startX",n),console.log("startY",i)),s.style.cursor="grabbing",s.style.userSelect="none",document.addEventListener("pointermove",e),document.addEventListener("pointerup",function t(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",t),o&&(window.InstafeedAPI.settings.hasSwiped=o),s.style.cursor="",s.style.userSelect=""})})}}}();!function t(){function e(t,e=!1){const i=document.getElementById(t);if(window.InstafeedAPI.settings.sliderIsPaused=!1,e||Object.values(window.InstafeedAPI.settings.instances||{}).forEach(t=>{y(t.options.feedId)&&x(t.options.feedId)}),i){let t=document.getElementById("video-"+n);t&&t.pause();var o=document.querySelector(".instafeed-floating-visible video");o&&(o.muted=!window.InstafeedAPI.settings.sound),e||(document.body.classList.remove("instafeed-body-no-scroll"),document.documentElement.classList.remove("instafeed-body-no-scroll"));let s=!!e;window.InstafeedAPI.settings.previouslyFocusedElement&&window.InstafeedAPI.settings.previouslyFocusedElement.focus({preventScroll:s}),i.style.setProperty("display","none","important"),i.style.opacity=0,window.InstafeedAPI.settings.modalOpen=null,at.removeListener(window,"keydown",instafeedTrapFocusHandler,!1),at.removeListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1})}}var n;at.addListener(document,"click",function(t){var i,o;if(window.InstafeedAPI.settings.isDragging||window.InstafeedAPI.settings.hasSwiped)return void(window.InstafeedAPI.settings.hasSwiped=!1);if("VIDEO"===t.target.tagName&&t.target.id.includes(window.InstafeedAPI.settings.modalOpen))return void window.InstafeedAPI.togglePlay();const s=t.target.closest(".instafeed-hotspot");if(s){const t=s.closest(".lightbox-instagram");return void(t&&f(t,s,!0))}const a=t.target.closest(".lightbox-instagram .tagged-products");if(a){const t=a.closest(".lightbox-instagram");t&&g(t,a,!0)}if(!t.target||!t.target.hasAttribute(`data-${tt}-open-id`)&&!t.target.hasAttribute(`data-${tt}-close-id`))return!1;if(i=t.target.hasAttribute(`data-${tt}-open-id`)?t.target.getAttribute(`data-${tt}-open-id`):t.target.getAttribute(`data-${tt}-close-id`),o=document.getElementById("video-"+i),t.target.hasAttribute(`data-${tt}-open-id`)){const t=document.getElementById(i);if(document.activeElement.classList.contains(`${tt}-new-layout-item-container`)&&(window.InstafeedAPI.settings.previouslyFocusedElement=document.activeElement),t){const n=t.querySelector(".instafeed-cart-icon");!X.includes(window.location.hostname)&&n&&fetch(window.Shopify.routes.root+"cart.js").then(t=>t.json()).then(t=>{n.setAttribute("data-count",t.item_count)}).catch(t=>{console.error("Error:",t)});let s=!1;if(window.InstafeedAPI.settings.modalOpen&&(s=!0,e(window.InstafeedAPI.settings.modalOpen,s)),window.InstafeedAPI.settings.modalOpen=i,t.style.setProperty("display","flex","important"),t.style.opacity=1,document.querySelectorAll('video[id^="inline-video-"]').forEach(function(t){t.muted=!0}),window.InstafeedAPI.settings.sliderIsPaused=!0,document.body.classList.add("instafeed-body-no-scroll"),document.documentElement.classList.add("instafeed-body-no-scroll"),t.querySelector(".instafeed-simple-popup")&&at.addListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1}),o){const t=document.getElementById("video-spinner-"+i);t.style.display="block",o.play().then(()=>{t.style.display="none"})}!function d(t){let e=`.${tt}-new-arrow, .${tt}-close-button`;window.matchMedia("only screen and (max-width: 1024px)").matches&&(e=`.${tt}-close-button, .tagged-buy-button, .${tt}-sound-button, .${tt}-post-control-button`);const{firstFocusableElement:n,lastFocusableElement:i}=function o(t,e){const n=t.querySelectorAll(e);return{firstFocusableElement:n[0],lastFocusableElement:n[n.length-1]}}(t,e);instafeedTrapFocusHandler=t=>{!function e(t,n,i){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?t.target===n&&(i.focus(),t.preventDefault()):t.target===i&&(n.focus(),t.preventDefault()))}(t,n,i)},at.addListener(window,"keydown",instafeedTrapFocusHandler,!1),n&&n.focus({preventScroll:!0})}(t);const a=t.querySelector(".lightbox-instagram");window.InstafeedAPI.renderHotspotsForLightboxWithStability(a);const d=t.querySelector("[data-picture-id]"),r=d?d.getAttribute("data-picture-id"):"";window.InstafeedAPI.eventTag("modal_open",i,0,r)}}t.target.hasAttribute(`data-${tt}-close-id`)&&e(i),n=i},{passive:!0,capture:!0}),at.addListener(window,"keydown",t=>{var n,i,o;const{key:s}=t;if(!document.getElementById("video-"+window.InstafeedAPI.settings.modalOpen)||" "!==s&&"Spacebar"!==s&&"Space"!==t.code||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||(t.preventDefault(),window.InstafeedAPI.togglePlay()),"Escape"===s)window.InstafeedAPI.settings.modalOpen&&e(window.InstafeedAPI.settings.modalOpen);else if("Enter"===t.key){const t=document.activeElement;("true"===t.getAttribute("data-instafeed-keydown-event")||t.classList.contains(`${tt}-post-control-button`)||t.classList.contains(`${tt}-sound-button`)||t.classList.contains(`${tt}-video-control`)||t.classList.contains(`${tt}-close-button`)||t.classList.contains(`${tt}-carousel-arrow`)||t.classList.contains(`${tt}-new-arrow`))&&t.click()}(n=document.getElementById(window.InstafeedAPI.settings.modalOpen))&&(i="","ArrowLeft"===s?i=`.${tt}-new-arrow.prev`:"ArrowRight"===s&&(i=`.${tt}-new-arrow.next`),i&&(o=n.querySelector(i))&&o.click())},{passive:!1})}(),X.includes(window.location.hostname)&&(document.addEventListener("product-tagged",v),document.addEventListener("product-deleted",v),document.addEventListener("product-placed",v)),at.addListener(document,"mouseover",function(t){const e=$(t);"hotspot"===e.kind&&e.lightbox&&f(e.lightbox,e.element,!1),"card"===e.kind&&e.lightbox&&!e.element.contains(t.relatedTarget)&&g(e.lightbox,e.element,!1)},{passive:!0}),at.addListener(document,"mouseout",function(t){const e=$(t);if("hotspot"===e.kind&&e.lightbox){const n=t.relatedTarget?.closest?.(".instafeed-hotspot");if(n&&n.closest(".lightbox-instagram")===e.lightbox)return;return void w(e.lightbox)}if("card"===e.kind&&e.lightbox&&!e.element.contains(t.relatedTarget)){const n=e.element.getAttribute("data-tagging-id");n&&t.relatedTarget?.closest?.('.instafeed-hotspot[data-tagging-id="'+CSS.escape(n)+'"]')||w(e.lightbox)}},{passive:!0}),function t(){function e(){const t=new URLSearchParams(window.location.search).get("instafeed_post");if(t){const e=document.querySelector('[data-instafeed-open-id^="'+t+'-"]');if(e){e.click();const t=new URL(window.location);return t.searchParams.delete("instafeed_post"),void window.history.replaceState({},"",t)}}}document.addEventListener("instafeedAppLoaded",e),window.addEventListener("popstate",e)}(),function t(e,n){function i(t,e){if(c){var n={dir:t.replace(/swiped-/,""),touchType:e.touchType||"direct",fingers:u,xStart:parseInt(s,10),xEnd:parseInt(e.clientX||-1,10),yStart:parseInt(a,10),yEnd:parseInt(e.clientY||-1,10)};c.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:n})),c.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}}function o(t,e,i){for(;t&&t!==n.documentElement;){const n=t.getAttribute(e);if(n)return n;t=t.parentNode}return i}let s=null,a=null,d=null,r=null,l=null,c=null,u=0,p=!1,h=0,f=!1,w=!1;n.addEventListener("touchstart",function(t){"true"!==t.target.getAttribute("data-swipe-ignore")&&(c=t.target,l=Date.now(),s=t.touches[0].clientX,a=t.touches[0].clientY,d=0,r=0,u=t.touches.length,p=!0,f=!1,w=!1)},{passive:!0}),n.addEventListener("touchmove",function(t){var e,n,l;if(!p||!s||!a)return;if(e=t.touches[0].clientX,n=t.touches[0].clientY,d=s-e,r=a-n,(l=Date.now())-h<300)return;const u=parseInt(o(c,"data-swipe-threshold","50"),10);f||w||(Math.abs(d)>Math.abs(r)&&Math.abs(d)>10?f=!0:Math.abs(r)>Math.abs(d)&&Math.abs(r)>10&&(w=!0)),f&&"true"===o(c,"data-instafeed-prevent-touch-scroll","false")&&t.preventDefault(),f&&Math.abs(d)>u?(i(d>0?"swiped-left":"swiped-right",t.touches[0]),p=!1,h=l):w&&Math.abs(r)>u&&(i(r>0?"swiped-up":"swiped-down",t.touches[0]),p=!1,h=l)},{passive:!1}),n.addEventListener("touchend",function(){p=!1,f=!1,w=!1,s=null,a=null,l=null},{passive:!0})}(window,document);const dt=new Set(["www.instagram.com","instagram.com","l.instagram.com"]),rt="instafeed_attribution";let lt="";window.instafeedFeedsLoaded=window.instafeedFeedsLoaded||[],window.instafeedCssLoaded=window.instafeedCssLoaded||!1,window.instafeedCarouselListeners=window.instafeedCarouselListeners||!1,window.instafeedCarouselTransitioning=window.instafeedCarouselTransitioning||!1,window.instafeedModalsWrapperObserver=window.instafeedModalsWrapperObserver||!1,window.instafeedScrollIntervals=window.instafeedScrollIntervals||{},window.instafeedSliderTransitionTimers=window.instafeedSliderTransitionTimers||{},window.instafeedSlideSpeed=window.instafeedSlideSpeed||6e3,window.instafeedContinuousSlideSpeed=window.instafeedContinuousSlideSpeed||6e3,window.instafeedPopupsPreloaded=window.instafeedPopupsPreloaded||!1,window.instafeedTrapFocusHandler=window.instafeedTrapFocusHandler||!1,window.instafeedTouchScrollListener=window.instafeedTouchScrollListener||function(t){t.preventDefault()},window.InstafeedAPI={version:q,settings:{instances:{},version:q,translations:{},sound:!1,dynamicSliderArrows:["thelodge.myshopify.com"],analytics:!1,pixel:!1,modalOpen:null,isDragging:!1,hasSwiped:!1,feedViewed:{},previouslyFocusedElement:null,carousels:{},sliderRowSize:{},sliderStepSize:{},sliderIsPaused:!1,sliderNumVisibleImages:{},sliderState:{},totalImages:{}},toggleSound:i,togglePlay:o,eventTag:t,addToCart:n,carouselMove:s,sliderMove:T,clearScrollTimer:I,renderHotspotsForLightbox:l,renderHotspotsForLightboxWithStability:c,applyAttributionCartAttributes:D,buildProductQueryString:F,hotspotUtils:{clamp:H,roundCoordinate:j,getObjectFitBounds:B,clientPointToPercent:G,percentToClientPoint:J}},D();if (document.getElementById('insta-feed') !== null) { var feed = new Instafeed({"hash":"88645ce1931ef681361baa652a42ff0f","apiVersion":6,"feedId":0,"shopOrigin":"la-wisteria.myshopify.com","title":"","openIg":3,"space":0,"corners":0,"likes":1,"showFollowers":0,"showProducts":0,"layout":6,"format":0,"sliderBehavior":2,"instagramLinks":0,"loadingAnimation":0,"carouselProductTags":0,"showPrices":0,"showReviews":0,"analytics":0,"pixel":0,"showHalfPosts":0,"hideUsernames":0,"addToCart":0,"filter":"","taggedPosts":0,"columns":100,"columnsMobile":100,"rows":2,"rowsMobile":2,"autoplay":0,"rowsLimit":4,"abTest":0,"charge":0}); feed.run(); }return instafeedLoad;})();window.addEventListener('resize',(a=>{let b;return()=>{clearTimeout(b),b=setTimeout(()=>{let w=window.innerWidth;Math.abs(w-a)>80&&(a=w,instafeedApp())},100)}})(window.innerWidth));document.addEventListener('shopify:section:load',()=>{instafeedApp()});