var instafeedApp = (function instafeedLoad(){/*!
* Copyright (c) 2023 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 e="nfcube.com",t="instafeed.nfcube.com",i="cdn.nfcube.com",n="14.1.1",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(e,t,i,n={}){this.listeners.some((i=>i.element===e&&i.event===t&&"swiped"===t))?this.debugMode&&console.log(`Listener for ${t} on the specified element already exists.`):(e.addEventListener(t,i,n),this.listeners.push({element:e,event:t,handler:i}),this.debugMode&&(console.log(`Added listener for ${t}`),console.log("Listeners",this.listeners)))}removeListener(e,t,i){e.removeEventListener(t,i),this.listeners=this.listeners.filter((n=>!(n.element===e&&n.event===t&&n.handler===i))),this.debugMode&&(console.log(`Removed listener for ${t}`),console.log("Listeners",this.listeners))}clearAllListeners(){this.listeners.forEach((({element:e,event:t,handler:i})=>{e.removeEventListener(t,i)})),this.listeners=[],this.debugMode&&console.log("All listeners have been removed")}}const p=new u;var Instafeed=function(){function Instafeed(e){this.translations={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"},"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"},"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:"Delete"},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"},"ja-JP":{SHOP_NOW:"今すぐ購入",ADD_TO_CART:"カートに入れる",TAG_PRODUCTS:"商品にタグを付ける",TAGGED_BY:"{username}によってタグ付けされました",VIEW_ON_INSTAGRAM:"Instagramで見る",REVIEWS:"{number} レビュー",HANG_ON:"少々お待ちください、フィードを処理中です。これには時間がかかる場合があります。",DELETE:"削除"},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"},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"},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"},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"},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"},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"},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"}},this.availableLanguages=["en","es","de","fr","sv","da","it","nl","nb","ja-JP","pt-PT","pt-BR"],this.accountUsername="",this.options={target:a,language:"en",locale:"en-US",showLoading:!0,forceUpdate:!1,viewsAndClicks:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===t},"undefined"!=typeof Shopify&&Shopify.locale&&(this.options.locale=Shopify.locale,this.availableLanguages.includes(Shopify.locale)&&(this.options.language=Shopify.locale)),Object.assign(this.options,e),this.options.admin||this.t(),document.querySelectorAll(o).forEach((e=>{e.parentNode.removeChild(e)}))}return Instafeed.prototype.translate=function(e){return this.translations[this.options.language]&&this.translations[this.options.language][e]?this.translations[this.options.language][e]:e},Instafeed.prototype.run=function(){var e=document.getElementById(this.options.target);if(0===e.clientWidth&&parseInt(this.options.autoLayout)>0)return this.i(this,e),!1;this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",instafeedSettings.analyticsViewsClicks=Boolean(this.options.viewsAndClicks),!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(e.clientWidth,this.options.admin),this.u()&&this.o(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this.l(e.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&&(e.innerHTML='
'+this.translate("HANG_ON")+"
"),!this.options.admin&&parseInt(this.options.loadingAnimation)>0&&(e.innerHTML='');const t=this;return Date.now(),fetch(this.p()).then((e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()})).then((e=>{try{t.parse(e)}catch(e){console.error("Parse function error:",e.message)}})).catch((e=>{console.log("Fetch error:",e.message),this.options.admin&&this.options.error.call(this,{meta:{code:204,username:"",error_message:"Taking a bit longer to fetch your feed, please refresh this page in a couple of minutes."}})})).finally((()=>{Date.now()})),!0},Instafeed.prototype.parse=function(e){var i,n,s,a,o,r,l,c,u,p,h,f,g,m,v,w,$,b;const S=document.getElementById(this.options.target);if(!S)return!1;if("object"!=typeof e)throw new Error("Invalid JSON response");const{meta:{code:y,error_message:I}}=e,T=parseInt(y,10);if(S.innerHTML="",200!==T)return this.options.admin&&"function"==typeof this.options.error&&this.options.error.call(this,e),!1;for("function"==typeof this.options.success&&this.options.success.call(this,e),i=e.data,n=0,s="",this.accountUsername=e.meta.username,n=0,len=i.length;n1?"display:none;":"";if(p="instafeed-simple-popup"===b?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button",h=this.h(b,S),this.options.picturesLoaded++,parseInt(this.options.openIg)>1){if(parseInt(this.options.showProducts)<2&&a.hasOwnProperty("tagged_products")&&a.tagged_products.length>0&&this.o(this.options.charge)&&a.tagged_products.forEach((e=>{let i="";parseInt(e.variant)>0&&(i="?variant="+parseInt(e.variant));let n="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:this.options.language;var s,o;e.translations&&n in e.translations&&"title"in e.translations[n]&&""!==e.translations[n].title.trim()&&(e.title=e.translations[n].title),this.options.addToCart&&parseInt(e.variant)>0&&!this.options.admin?(c=this.translate("ADD_TO_CART"),productClick=`onclick="event.preventDefault(); instafeedAddToCart(this, ${parseInt(e.variant)}, '${c}', '${b}');"`):(c=this.translate("SHOP_NOW"),this.options.admin||(productClick="href = '//"+window.location.hostname+Shopify.routes.root+e.handle+i+"'"));let r=parseInt(this.options.showPrices)>0?this.m(e.price):"",l=parseInt(this.options.showReviews)>0&&e.rating_count>0?this.v(e.rating,e.rating_count):"";this.options.admin?(s="