var instafeedApp = (function instafeedLoad(){/*!
 * Copyright (c) 2025 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.
 */
const t="nfcube.com",e="instafeed.nfcube.com",i="cdn.nfcube.com",n="16.3.0",s="feed",a="insta-feed",o=".instafeed-lightbox",d="instafeed",r=!1,l=3,c=1024;window.instafeedEvents=window.instafeedEvents||[];class u{constructor(){this.listeners=window.instafeedEvents=window.instafeedEvents||[],this.debugMode=!1}addListener(t,e,i,n={}){t.addEventListener(e,i,n),this.listeners.push({element:t,event:e,handler:i}),this.debugMode&&(console.log(`Added listener for ${e}`),console.log("Listeners",this.listeners))}removeListener(t,e,i){t.removeEventListener(e,i),this.listeners=this.listeners.filter((n=>!(n.element===t&&n.event===e&&n.handler===i))),this.debugMode&&(console.log(`Removed listener for ${e}`),console.log("Listeners",this.listeners))}clearAllListeners(){this.listeners.forEach((({element:t,event:e,handler:i})=>{t.removeEventListener(e,i)})),this.listeners=[],this.debugMode&&console.log("All listeners have been removed")}}const p=new u;var Instafeed=function(){function Instafeed(t){this.availableLanguages=["en","es","de","fr","sv","da","it","nl","nb","ja","pt-PT","pt-BR","zh-CN"],this.accountUsername="",this.options={target:a,language:"en",locale:"en",showLoading:!0,forceUpdate:!1,viewsAndClicks:!1,productClicks:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===e},"undefined"!=typeof Shopify&&Shopify.locale&&(this.options.locale=Shopify.locale,Shopify.locale.startsWith("es-")?this.options.language="es":this.availableLanguages.includes(Shopify.locale)&&(this.options.language=Shopify.locale)),Object.assign(this.options,t),this.options.admin||this.t(),document.querySelectorAll(o).forEach((t=>{t.parentNode.removeChild(t)}))}return Instafeed.prototype.translate=function(t){const e={en:{SHOP_NOW:"Shop now",ADD_TO_CART:"Add to cart",TAG_PRODUCTS:"Tag products",TAGGED_BY:"Tagged by {username}",VIEW_ON_INSTAGRAM:"View on Instagram",REVIEWS:"{number} reviews",HANG_ON:"Please hang on while we process your feed. This may take a while.",DELETE:"Delete",PRODUCT_FROM_IG:"Instagram tag"},"pt-PT":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Identificar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos a processar o seu feed. Isto pode demorar um pouco.",DELETE:"Apagar",PRODUCT_FROM_IG:"Tag do Instagram"},"pt-BR":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Marcar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos processando seu feed. Isso pode demorar um pouco.",DELETE:"Apagar",PRODUCT_FROM_IG:"Tag do Instagram"},es:{SHOP_NOW:"Comprar ahora",ADD_TO_CART:"Añadir al carrito",TAG_PRODUCTS:"Etiquetar productos",TAGGED_BY:"Etiquetado por {username}",VIEW_ON_INSTAGRAM:"Ver en Instagram",REVIEWS:"{number} reseñas",HANG_ON:"Espera un momento, estamos procesando tu feed. Esto puede llevar unos instantes.",DELETE:"Eliminar",PRODUCT_FROM_IG:"Etiqueta de Instagram"},ja:{SHOP_NOW:"今すぐ購入",ADD_TO_CART:"カートに入れる",TAG_PRODUCTS:"商品にタグを付ける",TAGGED_BY:"{username}によってタグ付けされました",VIEW_ON_INSTAGRAM:"Instagramで見る",REVIEWS:"{number} レビュー",HANG_ON:"少々お待ちください、フィードを処理中です。これには時間がかかる場合があります。",DELETE:"削除",PRODUCT_FROM_IG:"Instagramタグ"},fr:{SHOP_NOW:"Acheter",ADD_TO_CART:"Ajouter au panier",TAG_PRODUCTS:"Étiqueter les produits",TAGGED_BY:"Tagué par {username}",VIEW_ON_INSTAGRAM:"Afficher sur Instagram",REVIEWS:"{number} avis",HANG_ON:"Patientez, nous traitons votre flux. Cela pourrait prendre un certain temps.",DELETE:"Supprimer",PRODUCT_FROM_IG:"Étiquette Instagram"},de:{SHOP_NOW:"Jetzt shoppen",ADD_TO_CART:"Zum Warenkorb hinzufügen",TAG_PRODUCTS:"Produkte taggen",TAGGED_BY:"Getaggt von {username}",VIEW_ON_INSTAGRAM:"Auf Instagram ansehen",REVIEWS:"{number} Bewertungen",HANG_ON:"Einen Moment bitte, wir verarbeiten deinen Feed. Das könnte eine Weile dauern.",DELETE:"Löschen",PRODUCT_FROM_IG:"Instagram Tag"},sv:{SHOP_NOW:"Handla nu",ADD_TO_CART:"Lägg i kundvagn",TAG_PRODUCTS:"Tagga produkter",TAGGED_BY:"Taggad av {username}",VIEW_ON_INSTAGRAM:"Visa på Instagram",REVIEWS:"{number} recensioner",HANG_ON:"Vänta, vi behandlar ditt flöde. Detta kan ta en stund.",DELETE:"Radera",PRODUCT_FROM_IG:"Instagram-tagg"},it:{SHOP_NOW:"Acquista ora",ADD_TO_CART:"Aggiungi al carrello",TAG_PRODUCTS:"Tagga prodotti",TAGGED_BY:"Taggato da {username}",VIEW_ON_INSTAGRAM:"Visualizza su Instagram",REVIEWS:"{number} recensioni",HANG_ON:"Aspetta, stiamo elaborando il tuo feed. Potrebbe richiedere un po' di tempo.",DELETE:"Elimina",PRODUCT_FROM_IG:"Tag Instagram"},da:{SHOP_NOW:"Shop nu",ADD_TO_CART:"Tilføj til kurv",TAG_PRODUCTS:"Tag produkter",TAGGED_BY:"Tagget af {username}",VIEW_ON_INSTAGRAM:"Se på Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent venligst, vi behandler dit feed. Det kan tage lidt tid.",DELETE:"Slet",PRODUCT_FROM_IG:"Instagram-tag"},nb:{SHOP_NOW:"Handle nå",ADD_TO_CART:"Legg i handlekurv",TAG_PRODUCTS:"Tagge produkter",TAGGED_BY:"Taggede av {username}",VIEW_ON_INSTAGRAM:"Vis på Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent litt, vi behandler din feed. Dette kan ta en stund.",DELETE:"Slett",PRODUCT_FROM_IG:"Instagram-tag"},nl:{SHOP_NOW:"Nu winkelen",ADD_TO_CART:"Toevoegen aan winkelwagen",TAG_PRODUCTS:"Producten taggen",TAGGED_BY:"Getagd door {username}",VIEW_ON_INSTAGRAM:"Bekijk op Instagram",REVIEWS:"{number} beoordelingen",HANG_ON:"Even geduld alstublieft, we verwerken je feed. Dit kan even duren.",DELETE:"Verwijderen",PRODUCT_FROM_IG:"Instagram-tag"},"zh-CN":{SHOP_NOW:"立即购买",ADD_TO_CART:"加入购物车",TAG_PRODUCTS:"标记产品",TAGGED_BY:"由 {username} 标记",VIEW_ON_INSTAGRAM:"在 Instagram 上查看",REVIEWS:"{number} 评论",HANG_ON:"请稍等,我们正在处理您的信息。这可能需要一段时间。",DELETE:"删除",PRODUCT_FROM_IG:"Instagram 标签"}};return e[this.options.language]&&e[this.options.language][t]?e[this.options.language][t]:t},Instafeed.prototype.run=function(){var t=document.getElementById(this.options.target);if(0===t.clientWidth&&parseInt(this.options.autoLayout)>0)return this.i(this,t),!1;this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",instafeedSettings.analyticsViewsClicks=Boolean(this.options.viewsAndClicks),instafeedSettings.analyticsProductClicks=Boolean(this.options.productClicks),!this.o(this.options.charge)&&parseInt(this.options.rows)>parseInt(this.options.rowsLimit)&&(this.options.rows=this.options.rowsLimit),parseInt(this.options.autoLayout)>0?(this.options.picturesNeeded=this.options.rows*this.l(t.clientWidth,this.options.admin),this.u()&&this.o(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this.l(t.clientWidth,this.options.admin))):this.u()&&this.o(this.options.charge)?this.options.picturesNeeded=this.options.rowsMobile*this.options.columnsMobile:this.options.picturesNeeded=this.options.rows*this.options.columns,this.options.admin&&this.options.showLoading&&(t.innerHTML='
'+this.translate("HANG_ON")+" 
"),!this.options.admin&&parseInt(this.options.loadingAnimation)>0&&(t.innerHTML='
');const e=this;return Date.now(),fetch(this.p()).then((t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()})).then((t=>{try{e.parse(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},Instafeed.prototype.parse=function(t){const i=document.getElementById(this.options.target);if(!i)return!1;if("object"!=typeof t)throw new Error("Invalid JSON response");const{meta:{code:n,error_message:s}}=t,a=parseInt(n,10);if(i.innerHTML="",200!==a)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);let o=t.data,r=t.meta.profile_picture,l=t.meta.followers,c="";this.accountUsername=t.meta.username;const u=2===parseInt(this.options.openIg)?"instafeed-simple-popup":"",p="instafeed-simple-popup"===u?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button";let h=1===parseInt(this.options.abTest)&&this.u(!0)&&"instafeed-simple-popup"!==u;for(let i=0,n=o.length;i1){parseInt(this.options.showProducts)<2&&a>0&&this.o(this.options.charge)&&n.tagged_products.forEach((t=>{let i=parseInt(t.variant)>0?"?variant="+parseInt(t.variant):"",a="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:this.options.language;var o,r;t.translations&&a in t.translations&&"title"in t.translations[a]&&""!==t.translations[a].title.trim()&&(t.title=t.translations[a].title);let l=this.options.addToCart&&parseInt(t.variant)>0&&!this.options.admin,c=l?this.translate("ADD_TO_CART"):this.translate("SHOP_NOW"),h=parseInt(this.options.showPrices)>0?this.h(t.price):"",f=parseInt(this.options.showReviews)>0&&t.rating_count>0?this.m(t.rating,t.rating_count):"",g="ig"===t.source?"disabled":"",m="ig"===t.source?this.translate("PRODUCT_FROM_IG"):this.translate("DELETE"),v=t.variant_title?""+t.variant_title+"
":"",w=t.image&&""!==t.image.trim()?t.image:"https://"+e+"/assets/img/image-placeholder.png";if(this.options.admin)o="",r=`
\n            
\n            ${e}
\n          `}"video"===n.type&&n.hasOwnProperty("videos")?(l=d+"-video",f="
",g="
",imageFullHtml=m+'
'):imageFullHtml=m+"
";imageFullHtml=$+g+f+imageFullHtml;let b="instafeed-simple-popup"===u?this.I(u,a):this.S(u,a);c+=this.T(b,{model:n,id:this.options.picturesLoaded,fullId:n.id,minusId:v,plusId:w,link:n.link,image:n.images.standard_resolution.url,video:l,tagged_username_link:n.user.username.length>0&&this.accountUsername!==n.user.username&&1!==parseInt(this.options.hideUsernames,10)?"":"",username:t.meta.username,fullName:t.meta.full_name,userPicture:this.options.apiVersion>4&&parseInt(this.options.charge)>0&&r.length>0?r:"https://"+e+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:s,date:this._(n.created_time),caption:this.v(this.$(n,"caption.text")),likes:n.likes.count>0?""+this.O(n.likes.count,1)+" ":"",location:this.$(n,"location.name")})}if(this.options.picturesLoaded>=this.options.picturesNeeded||t.data.length===this.options.picturesLoaded)break}var f;clearInterval(instafeedScrollIntervals[this.options.feedId]),""!==c.trim()&&this.A(''+c+"
"),f=parseInt(this.options.autoLayout)>0?parseFloat(100/this.l(i.clientWidth,this.options.admin)).toFixed(3):this.u()&&this.o(this.options.charge)?parseFloat(100/this.options.columnsMobile).toFixed(3):parseFloat(100/this.options.columns).toFixed(3),instafeedSettings.sliderNumVisibleImages[this.options.feedId]=parseInt(Math.round(100/f)),instafeedSettings.totalImages[this.options.feedId]=this.options.picturesLoaded,i.innerHTML+=this.D(o,this.v),this.k(),this.R(l,r),this.G(),this.N(),this.P(),parseInt(this.options.openIg,10)>1&&(this.C(),this.M()),2===parseInt(this.options.openIg,10)&&this.u()&&this.F(),2===parseInt(this.options.openIg,10)&&this.o(this.options.charge)&&this.W(),this.o(this.options.charge)&&(2===parseInt(this.options.openIg,10)||3===parseInt(this.options.openIg,10))&&this.u()&&this.H();const g=new CustomEvent("instafeedAppLoaded",{detail:{account:this.accountUsername,feedId:this.options.feedId}});return document.dispatchEvent(g),instafeedFeedsLoaded.push(this.options.feedId),!0},Instafeed.prototype.S=function(t,i){var n;const s=1===parseInt(this.options.abTest)&&this.u(!0)&&"instafeed-simple-popup"!==t,a=this.o(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)?"{{likes}}":"";n=this.options.admin?""+this.translate("TAG_PRODUCTS")+" 
✕
`,r=this.u(!0)?"":o,l=this.u(!0)&&!s?o:"",c=this.u(!0)?"":"
",u=this.u(!0)?"":"
",p=parseInt(this.options.instagramLinks)>0?"• "+this.translate("VIEW_ON_INSTAGRAM")+" ":"",h=parseInt(this.options.instagramLinks)>0?"{{username}}
{{username}}
`;let f=""+r+c;return f+="
{{imageFullHtml}}
",f+=`\n      
\n        \n        ${n}\n        ${a.length>0?``:""}\n        
\n          {{tagged_username_link}}\n          ${i>0||this.options.admin?"
{{taggedProduct}}
":""}\n          
{{caption}}
\n        
\n          
\n            {{date}} ${p} \n          
\n\n      
`,f+=s?`\n        
\n          ${o.replace("✕","")}\n          
\n          
\n        
`:"",f+=`
${u}
"+this.translate("TAG_PRODUCTS")+" 
✕
`,s=this.u(!0)?"":n,a=this.u(!0)?n:"",o=this.u(!0)?"":"
",r=this.u(!0)?"":"
",l=i+"";let c=""+s+o;return c+="
{{imageFullHtml}} "+l+"
",c+=a+"
"+r+"
${this.O(t)} followers `:"",o=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,r=o&&0===parseInt(this.options.feedId)?instafeedLocalTitle:window["instafeed"+this.options.feedId+"Title"],l=this.options.title.length>0||o;let c="";s&&(c+=``),l&&(c+=`${o?r:this.options.title} `),n&&(c+=a),(l||n)&&this.A(c,i,i.firstChild)},Instafeed.prototype.k=function(){const t=document.getElementById(this.options.target),e=document.querySelector(`.${d}-new-layout-container[data-feed-id="${this.options.feedId}"]`),i=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${this.options.feedId}"]`),n=parseFloat(t.offsetWidth.toFixed(3)),s=parseFloat((n/instafeedSettings.sliderNumVisibleImages[this.options.feedId]*(parseInt(this.options.space)/100)).toFixed(3)),a=parseInt(instafeedSettings.sliderNumVisibleImages[this.options.feedId]-1),o=parseFloat((a*s).toFixed(3)),r=parseFloat((n-o).toFixed(3)),l=parseFloat((r/instafeedSettings.sliderNumVisibleImages[this.options.feedId]).toFixed(3)),c=1===parseInt(this.options.format)?parseFloat((l*(16/9)).toFixed(3)):2===parseInt(this.options.format)?parseFloat((l*(5/4)).toFixed(3)):3===parseInt(this.options.format)?parseFloat((l*(3/4)).toFixed(3)):5===parseInt(this.options.format)?parseFloat((l*(4/3)).toFixed(3)):parseFloat(l.toFixed(3));document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"]`).forEach((t=>{t.style.width=`${l}px`,t.style.height=`${c}px`})),1===parseInt(this.options.showProducts,10)&&this.o(this.options.charge)&&c>=300&&(document.querySelectorAll(`.${d}-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*c).toFixed(3)),60)+"px",t.style.width=Math.min(parseFloat((.15*c).toFixed(3)),60)+"px"})),document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-tagged-buy-button-simple-popup`).forEach((t=>{t.style.display="block"}))),e.style.width=`${n}px`,e.style.height=`${c}px`,i.style.gap=`${s}px`,instafeedSettings.sliderStepSize[this.options.feedId]=0===this.options.sliderBehavior||2===this.options.sliderBehavior?n+s:l+s,instafeedSettings.sliderRowSize[this.options.feedId]=n+s,instafeedSettings.totalImages[this.options.feedId]=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(i.style.display="grid",e.style.height="unset",i.style.gridTemplateColumns="repeat("+instafeedSettings.sliderNumVisibleImages[this.options.feedId]+", 1fr)"),7===parseInt(this.options.layout)&&instafeedSettings.totalImages[this.options.feedId]>=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(this.u()&&(p.addListener(t,"swiped-left",(t=>{t.detail.touchType&&instafeedSliderMove(1,this.options.feedId)})),p.addListener(t,"swiped-right",(t=>{t.detail.touchType&&instafeedSliderMove(-1,this.options.feedId)}))),instafeedSettings.sliderState={},this.options.sliderBehavior>1&&(instafeedScrollIntervals[this.options.feedId]=setInterval((()=>{instafeedSliderMove(1,this.options.feedId)}),instafeedSlideSpeed)))},Instafeed.prototype.h=function(t){if(this.options.admin&&""!==t)return`${t}
`;if(!((t=Number(t))>0))return"";let e=t.toFixed(2);if("undefined"!=typeof Shopify){const i=Shopify.currency?.active||"USD";t*=Shopify.currency?.rate||1,e=new Intl.NumberFormat(void 0,{style:"currency",currency:i}).format(t)}return`${e}
`},Instafeed.prototype.m=function(t,e){let i='';const n=Math.floor(t),s=t%1!=0;for(let t=0;t<5;t++)i+=t
':t===n&&s?'
':'
';return i+=`
${e>1?" | "+this.translate("REVIEWS").replace("{number}",e):"("+e+")"} `,i},Instafeed.prototype.D=function(t){let e="",i=0;for(let n of t)if(i++,e+=this.V(n,i),i>=this.options.picturesNeeded||t.length===i)break;let n="";return i>instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&this.options.sliderBehavior<=1&&7===parseInt(this.options.layout)&&(n=`\n            @${t.user.username}
`:"";let u="inline-product"===l?`${r}
`:`${this.U(t)}
`,p=n<=1?"":"role='link' tabindex='0' data-instafeed-keydown-event='true' aria-haspopup='dialog' aria-label='Instagram post opens in a popup'",h=0!==n?`${u}
`:"";c+=`\n    \n      ${h}\n    
`;const f=this.B(c,t,i);return`${f}
`},Instafeed.prototype.B=function(t,e){return 1===parseInt(this.options.openIg,10)?`${t} `:t},Instafeed.prototype.L=function(t){let e=this.translate("SHOP_NOW"),i=this.options.admin?this.options.shopOrigin:window.location.hostname,n=this.options.admin?"/":Shopify.routes.root,s=this.options.admin?"":'style="pointer-events:all;"';return(t=t.slice(0,1)).map((t=>{let a=parseInt(t.variant)>0?"?variant="+parseInt(t.variant):"";return`\n        \n            ${t.image.length>0?`
\n         `:""}\n            
\n        
${this.O(t.likes.count,1)} `;{const i="video"===t.type?"video-icon-v3.png":"instagram-icon-v2.svg";return`
';const a=function o(t,e){let i=t.querySelector(".instafeed-cart-icon")||t.closest(".lightbox-instagram")?.querySelector(".instafeed-cart-icon");if(!i)if(i=document.createElement("div"),i.className="instafeed-cart-icon",i.style.cursor="pointer",i.setAttribute("aria-label","View Cart"),i.onclick=t=>{t.stopPropagation(),t.preventDefault(),window.location.href="/cart"},"instafeed-simple-popup"===e){const e=t.closest(".instafeed-simple-popup-product-list");e&&e.insertAdjacentElement("beforebegin",i)}else t.appendChild(i);return i}(t,n),d={items:[{id:e,quantity:1}]};fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then((t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((()=>{fetch(window.Shopify.routes.root+"cart.js").then((t=>t.json())).then((t=>{a.setAttribute("data-count",t.item_count),a.style.display="flex",s.innerHTML=i.toUpperCase();const e=new CustomEvent("instafeed:cart:updated",{bubbles:!0,detail:t});document.dispatchEvent(e)})).catch((t=>{console.error("Error:",t),s.innerHTML=i}))})).catch((t=>{console.error("Error:",t),s.innerHTML=i}))}}(),function t(){window.instafeedToggleSound=t=>{var e=t.getAttribute("data-video-id"),i=document.getElementById(e);i.muted=!i.muted,instafeedSettings.sound=!i.muted,document.querySelectorAll(".instafeed-sound-button").forEach((function(t){t.classList.toggle("sound-on"),t.setAttribute("aria-label",i.muted?"Mute":"Unmute")}))}}(),function t(){window.instafeedTogglePlay=()=>{const t="video-"+instafeedSettings.modalOpen,e=document.getElementById(t),i=document.querySelector(`.instafeed-video-control[data-video-id="${t}"]`);e.paused?(e.play(),i.setAttribute("aria-label","Play"),i.classList.remove("paused")):(e.pause(),i.setAttribute("aria-label","Pause"),i.classList.add("paused"))}}(),function t(){window.instafeedCarouselArrow=function(t,e,i,n){const s=instafeedSettings.carousels[e][i],a=s.length,o=t.closest("div.instafeed-post-image");if(o){const d=o.querySelector("img");if(d&&a>0){const o=d.src;let r=s.indexOf(o);-1===r&&(r=0),r="left"===n?0===r?a-1:r-1:r===a-1?0:r+1;const l=t.closest(".lightbox-instagram").querySelector("#search");l&&l.setAttribute("data-carousel-index",r),document.getElementById(`instafeed-carousel-dots-${e}-${i}`)?.querySelector(".instafeed-carousel-dot.active")?.classList.remove("active"),document.getElementById(`instafeed-carousel-dot-${e}-${i}-${r}`)?.classList.add("active"),d.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;",d.parentElement.appendChild(c);const u=new Image;u.onload=()=>{d.src=s[r],d.style.opacity="1",c.remove()},u.src=s[r]}}}}(),function t(){window.instafeedSliderMove=(t,e=0)=>{instafeedSettings.sliderState[e]||(instafeedSettings.sliderState[e]={currentTransform:0,minTransform:0,isTransitioning:!1});const i=instafeedSettings.sliderState[e],n=new URLSearchParams(window.location.search),s="undefined"!=typeof Shopify&&Shopify.shop||n.get("shop"),a=["wearelittleas.myshopify.com"].includes(s)||("rtl"===document.documentElement.dir||"rtl"===getComputedStyle(document.documentElement).direction||"rtl"===document.body.dir||"rtl"===getComputedStyle(document.body).direction)&&!["81c182-2.myshopify.com"].includes(s);if(a&&(t=-t),i.isTransitioning)return;const o=parseFloat((instafeedSettings.sliderRowSize[e]/instafeedSettings.sliderNumVisibleImages[e]).toFixed(3)),r=parseFloat((o*(instafeedSettings.totalImages[e]-instafeedSettings.sliderNumVisibleImages[e])).toFixed(3));r-i.currentTransformi.minTransform&&(i.currentTransform=-r);const l=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${e}"]`);if(!l)return;let c=i.currentTransform;a&&(c=Math.abs(i.currentTransform)),l.style.transition="transform 0.5s ease-in-out",l.style.transform=`translateX(${c}px)`,i.isTransitioning=!0,setTimeout((()=>{l.style.transition="",i.isTransitioning=!1}),500)}}(),window.instafeedSettings={},instafeedSettings.version=n,instafeedSettings.sound=!1,instafeedSettings.analyticsViewsClicks=!1,instafeedSettings.analyticsProductClicks=!1,instafeedSettings.modalOpen=null,instafeedSettings.isDragging=!1,instafeedSettings.feedViewed={},instafeedSettings.previouslyFocusedElement=null,instafeedSettings.carousels={},instafeedSettings.sliderRowSize={},instafeedSettings.sliderStepSize={},instafeedSettings.sliderNumVisibleImages={},instafeedSettings.sliderState={},instafeedSettings.totalImages={},window.instafeedFeedsLoaded=window.instafeedFeedsLoaded||[],window.instafeedCssLoaded=window.instafeedCssLoaded||!1,window.instafeedCarouselListeners=window.instafeedCarouselListeners||!1,window.instafeedModalsWrapperObserver=window.instafeedModalsWrapperObserver||!1,window.instafeedScrollIntervals=window.instafeedScrollIntervals||{},window.instafeedSlideSpeed=window.instafeedSlideSpeed||6e3,window.instafeedPopupsPreloaded=window.instafeedPopupsPreloaded||!1,window.instafeedTrapFocusHandler=window.instafeedTrapFocusHandler||!1,window.instafeedTouchScrollListener=window.instafeedTouchScrollListener||function(t){t.preventDefault()},
/*
 * swiped-events.js - v1.2.0
 * Pure JavaScript swipe events
 * https://github.com/john-doherty/swiped-events
 * @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
 * @author John Doherty 
 * @license MIT
 */
function(t,e){function i(t,e){if(l){var i={dir:t.replace(/swiped-/,""),touchType:e.touchType||"direct",fingers:c,xStart:parseInt(s,10),xEnd:parseInt(e.clientX||-1,10),yStart:parseInt(a,10),yEnd:parseInt(e.clientY||-1,10)};l.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:i})),l.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:i}))}}function n(t,i,n){for(;t&&t!==e.documentElement;){const e=t.getAttribute(i);if(e)return e;t=t.parentNode}return n}let s=null,a=null,o=null,d=null,r=null,l=null,c=0,u=!1,p=0,h=!1,f=!1;e.addEventListener("touchstart",(function(t){"true"!==t.target.getAttribute("data-swipe-ignore")&&(l=t.target,r=Date.now(),s=t.touches[0].clientX,a=t.touches[0].clientY,o=0,d=0,c=t.touches.length,u=!0,h=!1,f=!1)}),{passive:!1}),e.addEventListener("touchmove",(function(t){var e,r,c;if(!u||!s||!a)return;if(e=t.touches[0].clientX,r=t.touches[0].clientY,o=s-e,d=a-r,(c=Date.now())-p<300)return;const g=parseInt(n(l,"data-swipe-threshold","50"),10);h||f||(Math.abs(o)>Math.abs(d)&&Math.abs(o)>10?h=!0:Math.abs(d)>Math.abs(o)&&Math.abs(d)>10&&(f=!0)),h&&"true"===n(l,"data-instafeed-prevent-touch-scroll","false")&&t.preventDefault(),h&&Math.abs(o)>g?(i(o>0?"swiped-left":"swiped-right",t.touches[0]),u=!1,p=c):f&&Math.abs(d)>g&&(i(d>0?"swiped-up":"swiped-down",t.touches[0]),u=!1,p=c)}),{passive:!1}),e.addEventListener("touchend",(function(){u=!1,h=!1,f=!1,s=null,a=null,r=null}),{passive:!0})}(window,document);if (document.getElementById('insta-feed') !== null) { var feed = new Instafeed({"account":"marketclothing.ca","hash":"b19d4101bff3e8b87ee377c74e01c6ab","key":"instafeed-97994c86be1bc1a1b508108b3fd9eaba","apiVersion":6,"shopOrigin":"market-clothing.myshopify.com","title":"MARKET on Instagram","openIg":3,"space":1,"corners":0,"likes":0,"showFollowers":0,"showProducts":0,"layout":6,"format":0,"sliderBehavior":0,"instagramLinks":0,"loadingAnimation":0,"showPrices":0,"showReviews":0,"viewsAndClicks":0,"productClicks":0,"hideUsernames":0,"addToCart":0,"filter":"","taggedPosts":0,"columns":5,"columnsMobile":5,"rows":1,"rowsMobile":1,"autoplay":0,"autoLayout":0,"rowsLimit":4,"abTest":1,"feedId":0,"charge":0}); feed.run(); }return instafeedLoad;})();window.addEventListener('resize',(a=>{let b;return()=>{clearTimeout(b),b=setTimeout(()=>{window.innerWidth!==a&&(a=window.innerWidth,instafeedApp())},100)}})(window.innerWidth));document.addEventListener('shopify:section:load',()=>{instafeedApp()});