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 t="nfcube.com",e="instafeed.nfcube.com",i="cdn.nfcube.com",n="15.1.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={}){this.listeners.some((i=>i.element===t&&i.event===e&&"swiped"===e))?this.debugMode&&console.log(`Listener for ${e} on the specified element already exists.`):(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.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",PRODUCT_FROM_IG:"Instagram Product"},"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:"Produto 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:"Delete",PRODUCT_FROM_IG:"Produto 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:"Producto de Instagram"},"ja-JP":{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:"Produit 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 Produkt"},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 Produkt"},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:"Instagram Produkt"},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 Produkt"},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 Produkt"},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 Produkt"}},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,productClicks:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===e},"undefined"!=typeof Shopify&&Shopify.locale&&(this.options.locale=Shopify.locale,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){return this.translations[this.options.language]&&this.translations[this.options.language][t]?this.translations[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: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(t){var i,n,s,a,o,r,l,c,u,p,h,f,g,m,v,w,$,I;const b=document.getElementById(this.options.target);if(!b)return!1;if("object"!=typeof t)throw new Error("Invalid JSON response");const{meta:{code:S,error_message:T}}=t,_=parseInt(S,10);if(b.innerHTML="",200!==_)return this.options.admin&&"function"==typeof this.options.error&&this.options.error.call(this,t),!1;for("function"==typeof this.options.success&&this.options.success.call(this,t),i=t.data,n=0,s="",this.accountUsername=t.meta.username,n=0,len=i.length;n1?"display:none;":"";if(p="instafeed-simple-popup"===I?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button",h=this.h(I,b),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((t=>{let i="";parseInt(t.variant)>0&&(i="?variant="+parseInt(t.variant));let n="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:this.options.language;var s,o;t.translations&&n in t.translations&&"title"in t.translations[n]&&""!==t.translations[n].title.trim()&&(t.title=t.translations[n].title);let r=this.options.addToCart&&parseInt(t.variant)>0&&!this.options.admin;c=r?this.translate("ADD_TO_CART"):this.translate("SHOP_NOW");let l=parseInt(this.options.showPrices)>0?this.m(t.price):"",h=parseInt(this.options.showReviews)>0&&t.rating_count>0?this.v(t.rating,t.rating_count):"",f="ig"===t.source?"disabled":"",g="ig"===t.source?this.translate("PRODUCT_FROM_IG"):this.translate("DELETE");if(this.options.admin)s="