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.mintt-studio.com","instafeed.nfcube.com"],i="instafeed.nfcube.com",n="16.4.2",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:e.includes(window.location.hostname)},"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 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:s}}=t,a=parseInt(n,10);if(e.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 e=0,n=o.length;e1){parseInt(this.options.showProducts)<2&&a>0&&this.o(this.options.charge)&&n.tagged_products.forEach((t=>{let e=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?"
\n `}let v=n.hasOwnProperty("alt_text")?this.v(n.alt_text):"Instagram post with the caption: "+this.v(this.$(n,"caption.text").substring(0,64))+"...";"video"===n.type&&n.hasOwnProperty("videos")?(l=d+"-video",f="",g="",imageFullHtml=m+''):imageFullHtml=m+"";let w=1===this.options.picturesLoaded?Math.min(this.options.picturesNeeded,o.length):this.options.picturesLoaded-1,$=this.options.picturesLoaded===this.options.picturesNeeded||this.options.picturesLoaded===o.length?1:this.options.picturesLoaded+1,b=h||!this.u(!0)?"":"";imageFullHtml=b+g+f+imageFullHtml;let S="instafeed-simple-popup"===u?this.S(u,a):this.I(u,a);c+=this.T(S,{model:n,id:this.options.picturesLoaded,fullId:n.id,minusId:w,plusId:$,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)?"
${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=instafeedSettings.dynamicSliderArrows.includes(this.options.shopOrigin)?"display:none;":"",s="";return i>instafeedSettings.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
`},Instafeed.prototype.V=function(t,e){const n=parseInt(this.options.openIg,10),s=parseInt(this.options.showProducts,10);let a=t.images.standard_resolution,o=this.v(t.caption.text).substring(0,64),r=t.hasOwnProperty("alt_text")?this.v(t.alt_text):"Instagram post with the caption: "+this.v(o)+"...",l=1===s&&4!==parseInt(this.options.format)&&t.hasOwnProperty("tagged_products")&&t.tagged_products.length>0&&this.o(this.options.charge)?this.L(t.tagged_products):"",c=l.length>0?"inline-product":"",u="video"===t.type&&parseInt(this.options.autoplay,10)>0&&this.o(this.options.charge)?``:``;u+=this.o(this.options.charge)&&t.user.username.length>0&&this.accountUsername!==t.user.username&&1!==parseInt(this.options.hideUsernames,10)&&4!==parseInt(this.options.format)?`
@${t.user.username}
`:"";let p="inline-product"===c?`
${l}
`:`
${this.U(t)}
`,h=n<=1?"":"role='link' tabindex='0' data-instafeed-keydown-event='true' aria-haspopup='dialog' aria-label='Instagram post opens in a popup'",f=0!==n?`