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. */ function t(t,i,n,s){const a=instafeedSettings.instances[i];if(!a.options.carouselProductTags)return;const o=t.closest(".lightbox-instagram");if(!o)return;let d=[];const r=instafeedSettings.carousels[i]?.[n];d=r?.[s]?.tagged_products||[];const l=o.querySelector(".box-content"),c=o.querySelector(".instafeed-simple-popup-product-list");l&&l.querySelectorAll(".tagged-products").forEach(t=>t.remove()),c&&c.querySelectorAll(".tagged-products").forEach(t=>t.remove());const u=o.querySelector(".open-resource-picker[data-picture-id]")?.getAttribute("data-picture-id");d.length>0&&d.forEach(t=>{const i=e(a,t,u,l?"":"instafeed-simple-popup",parseInt(n),s);l?l.insertAdjacentHTML("beforeend",i):c&&c.insertAdjacentHTML("beforeend",i)})}function e(t,e,i,n,a=0,o=0){const d="instafeed-simple-popup"===n?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button",r=parseInt(t.options.showPrices)>0?t.t(e.price):"",l=parseInt(t.options.showReviews)>0&&e.rating_count>0?t.i(e.rating,e.rating_count):"",c=e.variant_title?"
"+e.variant_title+"
":"",u=e.image&&""!==e.image.trim()?e.image:"https://"+s+"/assets/img/image-placeholder-v2.png",p="ig"===e.source?"disabled":"",f="ig"===e.source?t.translate("PRODUCT_FROM_IG"):t.translate("DELETE"),h=parseInt(e.variant)>0?"?variant="+parseInt(e.variant):"",g="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:t.options.language;e.translations&&g in e.translations&&"title"in e.translations[g]&&""!==e.translations[g].title.trim()&&(e.title=e.translations[g].title);const m=t.options.addToCart&&parseInt(e.variant)>0&&!t.options.admin,v=m?t.translate("ADD_TO_CART"):t.translate("SHOP_NOW"),w=t.options.admin?"/":"undefined"!=typeof Shopify&&Shopify.routes?Shopify.routes.root:"/",S=`onclick="instafeedEventTag('product_click', ${t.options.feedId}, ${e.gid});" href="//${window.location.hostname}${w}${e.handle}${h}"`,b=m?`role="button" href="#" onclick="event.preventDefault(); instafeedEventTag('product_click', ${t.options.feedId}, ${e.gid}); instafeedAddToCart(this, ${parseInt(e.variant)}, '${v}', '${n}');" data-sold-out='${t.translate("SOLD_OUT")}'`:S;let O,$;return t.options.admin?(O=`
\n
${e.title}${c}
\n ${l}${r}\n
\n \n \n \n
\n
`,$=`${e.title}`):m?(O=`
\n \n
${e.title}${c}
\n ${l}${r}\n
\n
\n \n \n \n
\n
`,$=`\n ${e.title}\n `):(O=`
\n \n
${e.title}${c}
\n ${l}${r}\n
\n \n
\n
\n
`,$=`\n ${e.title}\n `),`
${$}
${O}
`}const i="nfcube.com",n=["instafeed.mintt-studio.com","instafeed.nfcube.com"],s="instafeed.nfcube.com",a="17.0.0",o="feed",d="insta-feed",r=".instafeed-lightbox",l="instafeed",c=!1,u=3,p=1024;window.instafeedEvents=window.instafeedEvents||[];class f{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 h=new f;var Instafeed=function(){function Instafeed(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:d,injectedData:!1,language:"en",locale:"en",showLoading:!0,forceUpdate:!1,analytics:!1,carouselProductTags:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:n.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.o(),document.querySelectorAll(r).forEach(t=>{t.parentNode.removeChild(t)})}return Instafeed.prototype.translate=function(t){const e=instafeedSettings.translations;return e[this.options.language]&&e[this.options.language][t]?e[this.options.language][t]:t},Instafeed.prototype.run=function(){const t=this;if(Date.now(),this.options.injectedData)return this.options.picturesNeeded=this.options.limit,t.parse(this.options.injectedData),!0;var e=document.getElementById(this.options.target);return e&&0===e.clientWidth&&parseInt(this.options.autoLayout)>0?(this.l(this,e),!1):(this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",instafeedSettings.analytics=Boolean(this.options.analytics),instafeedSettings.instances[this.options.feedId]=t,!this.u(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.p(e.clientWidth),this.h()&&this.u(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this.p(e.clientWidth))):this.h()&&this.u(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='
'),fetch(this.m()).then(t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}).then(e=>{try{t.parse(e)}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:a}}=t,o=parseInt(n,10);if(i.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.v(t);let d=t.data,r=t.meta.profile_picture,c=t.meta.followers,u="";this.accountUsername=t.meta.username;const p=2===parseInt(this.options.openIg)?"instafeed-simple-popup":"",f=this.h(!0)&&"instafeed-simple-popup"!==p;for(let i=0,n=d.length;i0&&(this.u(this.options.charge)||this.options.admin)){let t=n.tagged_products;this.options.carouselProductTags&&n?.carousel?.length>0&&(t=n.tagged_products.filter(t=>0===parseInt(t.index))),t.forEach(t=>{a+=e(this,t,n.id,p,parseInt(i),0)})}let c=n.carousel?this.S(n,i):"",h=n.hasOwnProperty("alt_text")?this.O(n.alt_text):"Instagram post with the caption: "+this.O(this.$(n,"caption.text").substring(0,64))+"...",g="",m="",v="";if("video"===n.type&&n.hasOwnProperty("videos")){g=l+"-video",m="
";let t=f?"top: 63px;":"";v="
",imageFullHtml=c+'
'}else imageFullHtml=c+""+h+"";let w=1===this.options.picturesLoaded?Math.min(this.options.picturesNeeded,d.length):this.options.picturesLoaded-1,S=this.options.picturesLoaded===this.options.picturesNeeded||this.options.picturesLoaded===d.length?1:this.options.picturesLoaded+1,b=f||!this.h(!0)?"":"
";imageFullHtml=b+v+m+imageFullHtml;let O="instafeed-simple-popup"===p?this.T(p,o):this._(p,o);u+=this.I(O,{model:n,id:this.options.picturesLoaded,postIndex:parseInt(i),fullId:n.id,minusId:w,plusId:S,link:n.link,image:n.images.standard_resolution.url,video:g,tagged_username_link:n.user.username.length>0&&this.accountUsername!==n.user.username&&1!==parseInt(this.options.hideUsernames,10)?"
"+this.translate("TAGGED_BY").replace("{username}","@"+n.user.username+"")+"
":"",username:t.meta.username,userPicture:r.length>0?r:"https://"+s+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:a,date:this.A(n.created_time),caption:this.O(this.$(n,"caption.text")),likes:n?.likes?.count>0?""+this.D(n.likes.count,1)+"":"",location:this.$(n,"location.name")})}if(this.options.picturesLoaded>=this.options.picturesNeeded||t.data.length===this.options.picturesLoaded)break}if(clearInterval(instafeedScrollIntervals[this.options.feedId]),u.trim().length>0){const t=document.querySelector('.instafeed-modals-wrapper[data-feed-id="'+this.options.feedId+'"]');t?this.R(u,t):this.R('
'+u+"
")}if(this.options.injectedData)return this.G(),!0;var h;h=parseInt(this.options.autoLayout)>0?parseFloat(100/this.p(i.clientWidth)).toFixed(3):this.h()&&this.u(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/h)),instafeedSettings.totalImages[this.options.feedId]=this.options.picturesLoaded,i.innerHTML+=this.L(d,this.O),this.C(),this.P(c,r),this.k(),this.G(),this.N(),2!==parseInt(this.options.openIg,10)&&3!==parseInt(this.options.openIg,10)||(this.U(),this.M(),this.W()),2===parseInt(this.options.openIg,10)&&this.h()&&this.F(),2===parseInt(this.options.openIg,10)&&this.u(this.options.charge)&&this.H(),this.u(this.options.charge)&&(2===parseInt(this.options.openIg,10)||3===parseInt(this.options.openIg,10))&&this.h()&&this.V();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.v=function(t){instafeedSettings.carousels[this.options.feedId]=[],t.data.forEach((t,e)=>{if(t?.carousel?.length>0){const i=t.tagged_products||[];instafeedSettings.carousels[this.options.feedId][e]=t.carousel.map((t,e)=>{const n=i.filter(t=>parseInt(t.index)===e);return{media_url:t.thumbnail_url?t.thumbnail_url:t.media_url,tagged_products:n}})}})},Instafeed.prototype.S=function(t,e){const i=this.options.feedId;let n="";return t.carousel.forEach((t,s)=>{n+=``}),`\n \n \n \n `},Instafeed.prototype._=function(t,e){var i;const n=this.h(!0)&&"instafeed-simple-popup"!==t,s=this.translate("TAG_PRODUCTS"),a=this.translate("TAG_COLLECTIONS"),o=this.u(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)?"{{likes}}":"";i=this.options.admin&&this.u(this.options.charge)?"
"+s+""+a+"
":"";let d=this.options.admin&&!this.u(this.options.charge)?`${this.translate("SHOW_PRODUCTS_MESSAGE")}${this.translate("UPGRADE")}`:"";const r=`
`,c=this.h(!0)?"":r,u=this.h(!0)&&!n?r:"",p=this.h(!0)?"":"",f=this.h(!0)?"":"",h=parseInt(this.options.instagramLinks)>0?"• "+this.translate("VIEW_ON_INSTAGRAM")+"":"",g="
{{username}}
";let m="
"+c+p;return m+="${f}
`,m},Instafeed.prototype.T=function(t,e){const i=this.options.admin&&this.u(this.options.charge)?"
"+this.translate("TAG_PRODUCTS")+"
":"",n=`
`,s=this.h(!0)?"":n,a=this.h(!0)?n:"",o=this.h(!0)?"":"",d=this.h(!0)?"":"",r=i+"
{{taggedProduct}}
";let c="
"+s+o;return c+=""+d+"
",c},Instafeed.prototype.k=function(){this.h(!0)&&document.querySelectorAll("."+l+"-post-image").forEach(t=>{const e=t.nextElementSibling,i=e?e.querySelector("."+l+"-header"):null;i&&t.parentNode.insertBefore(i,t)})},Instafeed.prototype.P=function(t,e){const i=document.getElementById(this.options.target),n=this.u(this.options.charge)&&parseInt(this.options.apiVersion)>4&&(1===parseInt(this.options.showFollowers)||3===parseInt(this.options.showFollowers)),s=this.u(this.options.charge)&&parseInt(this.options.apiVersion)>4&&parseInt(this.options.showFollowers)>1,a=n?`

${this.translate("FOLLOWERS").replace("{number}",this.D(t))}

`:"",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,d=o&&0===parseInt(this.options.feedId)?instafeedLocalTitle:window["instafeed"+this.options.feedId+"Title"],r=this.options.title.length>0||o;let c="";s&&(c+=``),r&&(c+=`

${o?d:this.options.title}

`),n&&(c+=a),(r||n)&&this.R(c,i,i.firstChild)},Instafeed.prototype.C=function(){const t=document.getElementById(this.options.target),e=document.querySelector(`.${l}-new-layout-container[data-feed-id="${this.options.feedId}"]`),i=document.querySelector(`.${l}-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)),d=parseFloat((n-o).toFixed(3)),r=parseFloat((d/instafeedSettings.sliderNumVisibleImages[this.options.feedId]).toFixed(3)),c=1===parseInt(this.options.format)?parseFloat((r*(16/9)).toFixed(3)):2===parseInt(this.options.format)?parseFloat((r*(5/4)).toFixed(3)):3===parseInt(this.options.format)?parseFloat((r*(3/4)).toFixed(3)):5===parseInt(this.options.format)?parseFloat((r*(4/3)).toFixed(3)):parseFloat(r.toFixed(3));if(document.querySelectorAll(`.${l}-new-layout-item[data-feed-id="${this.options.feedId}"]`).forEach(t=>{t.style.width=`${r}px`,t.style.height=`${c}px`}),1===parseInt(this.options.showProducts,10)&&this.u(this.options.charge)&&c>=300&&(document.querySelectorAll(`.${l}-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(`.${l}-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:r+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]){if(1===parseInt(this.options.showHalfPosts,10)){const t=parseFloat((r/2).toFixed(3));i.style.transform="translateX(-"+t+"px)"}h.addListener(t,"swiped-left",t=>{t.detail.touchType&&instafeedSliderMove(1,this.options.feedId)}),h.addListener(t,"swiped-right",t=>{t.detail.touchType&&instafeedSliderMove(-1,this.options.feedId)}),this.h()||this.B(),instafeedSettings.sliderState={},this.options.sliderBehavior>1&&(4===this.options.sliderBehavior&&instafeedSliderMove(1,this.options.feedId,this.options.sliderBehavior),instafeedScrollIntervals[this.options.feedId]=setInterval(()=>{instafeedSliderMove(1,this.options.feedId,this.options.sliderBehavior)},instafeedSlideSpeed))}},Instafeed.prototype.t=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",n=Shopify.currency?.rate||1;1!==parseFloat(n)&&(t=Math.ceil(t*n)),e=new Intl.NumberFormat(void 0,{style:"currency",currency:i}).format(t)}return`
${e}
`},Instafeed.prototype.i=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.L=function(t){let e="",i=0,n=0;for(let s of t)if(i++,n=s?.tagged_products?.length||0,e+=this.Y(s,i,n),i>=this.options.picturesNeeded||t.length===i)break;let s=instafeedSettings.dynamicSliderArrows.includes(this.options.shopOrigin)?"display:none;":"",a="";return i>instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&this.options.sliderBehavior<=1&&7===parseInt(this.options.layout)&&(a=`\n \n \n `),`\n
\n
\n ${e}\n
\n ${a}\n
`},Instafeed.prototype.Y=function(t,e,i){const n=parseInt(this.options.openIg,10),a=parseInt(this.options.showProducts,10);let o=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)+"...",c=1===a&&4!==parseInt(this.options.format)&&t.hasOwnProperty("tagged_products")&&t.tagged_products.length>0&&this.u(this.options.charge)?this.j(t.tagged_products):"",u=c.length>0?"inline-product":"",p=parseInt(this.options.autoplay,10),f=!1,h="loop";p>0&&"video"===t.type&&this.u(this.options.charge)&&(f=!0,3===p&&(h=""));let g=this.options.admin&&!this.h(!0)&&e<=4?"fetchpriority='high' loading='eager' src='"+t.images.standard_resolution.url+"'":"class='"+l+"-lazy-image' src='//"+s+"/assets/img/placeholder.png' data-instafeed-src='"+t.images.standard_resolution.url+"'",m=f?``:`${r}`;m+=this.u(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 v="inline-product"===u?`
${c}
`:`
${this.q(t)}
`,w="";1===n?w="tabindex='0' role='link' data-instafeed-keydown-event='true' aria-label='Go to Instagram post'":2===n||3===n?w="tabindex='0' data-instafeed-role-button='true' data-instafeed-keydown-event='true' aria-haspopup='dialog' aria-label='Instagram post opens in a popup'":4===n&&(w="tabindex='0' role='link' data-instafeed-keydown-event='true' aria-label='Go to product page'");let S=0!==n||0===n&&1===a&&i>0?`
${v}
`:"";m+=`\n
\n ${S}\n
`;const b=this.X(m,t.link,e);let O=i>0?'
':"";return`
${O}${b}
`},Instafeed.prototype.X=function(t,e){return 1===parseInt(this.options.openIg,10)?`${t}`:t},Instafeed.prototype.j=function(t){this.translate("SHOP_NOW");let e=this.options.admin?this.options.shopOrigin:window.location.hostname,i=this.options.admin?"/":Shopify.routes.root,n=this.options.admin?"":'style="pointer-events:all;"';return(t=t.slice(0,1)).map(t=>{let s=parseInt(t.variant)>0?"?variant="+parseInt(t.variant):"";return`\n
\n ${t.image.length>0?`\n `:""}\n \n
`}).join("")},Instafeed.prototype.q=function(t){if(this.u(this.options.charge)&&parseInt(this.options.likes)>0&&parseInt(this.options.apiVersion)>4)return`\n ${this.D(t.likes.count,1)}`;{const e="video"===t.type?"video-icon-v3.png":"instagram-icon-v2.svg";return``}},Instafeed.prototype.R=function(t,e=document.body,i=null){const n=document.createElement("template");for(n.innerHTML=t;n.content.firstChild;)e.insertBefore(n.content.firstChild,i)},Instafeed.prototype.M=function(){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},Instafeed.prototype.W=function(){document.querySelectorAll(`[data-instafeed-role-button], .${l}-video-control, .${l}-sound-button, .${l}-close-button, .${l}-post-control-button, .${l}-new-arrow, .${l}-carousel-arrow`).forEach(t=>{t.setAttribute("role","button")})},Instafeed.prototype.V=function(){window.instafeedCarouselListeners||document.querySelector(".instafeed-post-image")&&(h.addListener(document,"swiped",function(t){if(!t.target.closest(".instafeed-post-image")||window.instafeedCarouselTransitioning)return;const e=t.target.closest(".instafeed-post-image"),i=e.querySelector(".instafeed-carousel-arrow-left"),n=e.querySelector(".instafeed-carousel-arrow-right");if("left"===t.detail.dir&&n){window.instafeedCarouselTransitioning=!0;const t=n.getAttribute("onclick").match(/['"]([^'"]+)['"]/)[1],e=parseInt(n.getAttribute("onclick").match(/,\s*(\d+)/)[1]);instafeedCarouselMove(n,t,e,"right")}else if("right"===t.detail.dir&&i){window.instafeedCarouselTransitioning=!0;const t=i.getAttribute("onclick").match(/['"]([^'"]+)['"]/)[1],e=parseInt(i.getAttribute("onclick").match(/,\s*(\d+)/)[1]);instafeedCarouselMove(i,t,e,"left")}}),window.instafeedCarouselListeners=!0)},Instafeed.prototype.F=function(){h.addListener(document,"swiped",function(t){const e=document.getElementById(instafeedSettings.modalOpen);if(!e||!t.target.className.includes("instafeed-simple-popup"))return;const i={up:{selector:`.${l}-post-control-button.arrow-down`,direction:"next",transform:"translateY(100%)",containerTransform:"translateY(-100%)"},down:{selector:`.${l}-post-control-button.arrow-up`,direction:"prev",transform:"translateY(-100%)",containerTransform:"translateY(100%)"}}[t.detail.dir];if(i){const t=e.querySelector(i.selector);if(t){const n=t.getAttribute(`data-${l}-open-id`),s=document.getElementById(n);if(s){s.style.setProperty("display","flex","important"),s.style.transform=i.transform,s.style.opacity="1",s.offsetHeight;const n="0.2s ease-out";e.style.transition=`transform ${n}, opacity ${n}`,s.style.transition=`transform ${n}`,e.style.transform=i.containerTransform,s.style.transform="translateY(0)",setTimeout(()=>{e.style.transition="",e.style.transform="",s.style.transition="",s.style.transform="",t.click()},200)}}}window.lastSwipeEventInstafeed=t})},Instafeed.prototype.H=function(){document.querySelectorAll(".instafeed-simple-popup-product-list").forEach(t=>{let e,i,n=!1;h.addListener(t,"mousedown",function(s){s.stopPropagation(),n=!0,t.classList.add("grabbing"),instafeedSettings.isDragging=!0,e=s.pageX-t.offsetLeft,i=t.scrollLeft}),h.addListener(document,"mouseup",function(){n&&(n=!1,t.classList.remove("grabbing"),setTimeout(()=>{instafeedSettings.isDragging=!1},0))}),h.addListener(t,"mousemove",function(s){if(!n)return;s.stopPropagation(),s.preventDefault();const a=2.5*(s.pageX-t.offsetLeft-e);t.scrollLeft=i-a}),h.addListener(t,"touchstart",function(s){s.stopPropagation(),n=!0,t.classList.add("grabbing"),instafeedSettings.isDragging=!0,e=s.touches[0].pageX-t.offsetLeft,i=t.scrollLeft}),h.addListener(document,"touchend",function(){n&&(n=!1,t.classList.remove("grabbing"),setTimeout(()=>{instafeedSettings.isDragging=!1},0))}),h.addListener(document,"touchcancel",function(){n&&(n=!1,t.classList.remove("grabbing"),instafeedSettings.isDragging=!1)}),h.addListener(t,"touchmove",function(s){if(!n)return;s.stopPropagation(),s.preventDefault();const a=2.5*(s.touches[0].pageX-t.offsetLeft-e);t.scrollLeft=i-a})})},Instafeed.prototype.m=function(){const t=this.options.admin?"":`https://${s}`,e=window.location.pathname.includes("/products/"),i=window.location.pathname.includes("/collections/")||new URLSearchParams(window.location.search).get("collection")?.includes("/collections/");let n="",a="";if(e)n=window.location.pathname.split("/products/")[1];else if(i)if(window.location.pathname.includes("/collections/"))n=window.location.pathname.split("/collections/")[1];else{const t=new URLSearchParams(window.location.search).get("collection");n=t?.split("/collections/")[1]}n=n?.split(/[?&#/]/)[0]||"",["thankyou-485.myshopify.com","bellafitwear.myshopify.com"].includes(this.options.shopOrigin)&&n.length>0&&ShopifyAnalytics?.meta?.product?.id&&(n=ShopifyAnalytics?.meta?.product?.id,a="&handle_type=gid");const d=this.options.overrides.length>0?`&overrides=${this.options.overrides}`:"",r=this.options.forceUpdate?1:0;return`${t}/${o}/v${this.options.apiVersion}?limit=${this.options.picturesNeeded}&account=${this.options.shopOrigin}&fu=${r}&fid=${this.options.feedId}&hash=${this.options.hash}&locale=${this.options.locale}&handle=${n}${a}${d}`},Instafeed.prototype.I=function(t,e){return t.replace(/{{([\w[\].]+)}}/g,(t,i)=>{const n=this.$(e,i);return null!==n?n:""})},Instafeed.prototype.$=function(t,e){const i=(e=e.replace(/\[(\w+)\]/g,".$1")).split(".");for(const e of i){if(null===t||!(e in t))return null;t=t[e]}return t},Instafeed.prototype.u=function(t){return parseInt(t)>0},Instafeed.prototype.p=function(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}].find(e=>t/g,">").replace(/"/g,""").replace(/'/g,"'")),t},Instafeed.prototype.D=function(t,e){if("undefined"!=typeof Shopify&&"medskin-beauty.myshopify.com"===Shopify.shop)return t;const i=["k","M","G","T","P","E","Z","Y"];for(let n=i.length-1;n>=0;n--){const s=Math.pow(1e3,n+1);if(t<=-s||t>=s)return+(t/s).toFixed(e)+i[n]}return t},Instafeed.prototype.A=function(t){return new Date(1e3*t).toLocaleDateString(navigator.language,{month:"long",day:"numeric"})},Instafeed.prototype.h=function(t=!1){return!(!this.options.admin||this.options.desktopPreview||!1!==t)||(!this.options.admin||!this.options.desktopPreview||!1!==t)&&("undefined"!=typeof Shopify&&"merchantoftennis.myshopify.com"===Shopify.shop?window.matchMedia("only screen and (max-width: 768px)").matches:window.matchMedia("only screen and (max-width: 1024px)").matches)},Instafeed.prototype.l=function(t,e){0===e.clientWidth?setTimeout(()=>{t.l(t,e)},100):t.run()},Instafeed.prototype.o=function(){if(window.instafeedCssLoaded)return;if(document.currentScript&&!document.currentScript.src.includes(i))return!1;const t=document.createElement("link");t.href=`https://${s}/cdn/${l}-${a}.css`,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),window.instafeedCssLoaded=!0},Instafeed.prototype.U=function(){if(instafeedPopupsPreloaded)return!1;if(this.J()||"undefined"!=typeof Shopify&&"going-natural-marketplace.myshopify.com"===Shopify.shop)return!1;instafeedPopupsPreloaded=!0;const t=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(this.K(),e.unobserve(t.target))})},{threshold:.1}),e=document.querySelector("#insta-feed, .instafeed-shopify");e&&t.observe(e)},Instafeed.prototype.J=function(){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},Instafeed.prototype.K=function(){const t=document.querySelectorAll("div.lightbox-instagram");let e=0;t.forEach(t=>{let i=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(l+"-lazy-image--handled"))}},e),e+=200+i,i+=50})})},Instafeed.prototype.G=function(){const t=document.querySelectorAll("."+l+"-lazy-image");if(!t.length||!("IntersectionObserver"in window))return void t.forEach(t=>this.Z(t));const e="rainbowoptx"===this.options.accountUsername?"600px 0px":"200px 0px",i=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(this.tt(),e.unobserve(t.target),this.Z(t.target))})},{rootMargin:e});t.forEach(t=>{t.classList.contains(l+"-lazy-image--handled")||i.observe(t)})},Instafeed.prototype.Z=function(t){const e=t.dataset.instafeedSrc;t.classList.contains(l+"-lazy-image--handled")||(t.classList.add(l+"-lazy-image--handled"),t.onerror=()=>{t.classList.remove(l+"-lazy-image--handled")},t.onload=()=>{const e=t.closest("."+l+"-new-layout-item");e&&e.classList.add("image-loaded")},t.src=e)},Instafeed.prototype.N=function(){const t=parseInt(this.options.autoplay);this.et();const e=t=>t?.play(),i=t=>document.getElementById(`inline-video-${t}-${this.options.target}`),n="undefined"!=typeof Shopify&&Shopify?.designMode&&navigator.userAgent.includes("Shopify Mobile"),s={rootMargin:"200px 0px"};if(1!==t||n){const o=document.querySelectorAll("video[data-poster]");let d=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){this.tt();let e=t.target,i=e.getAttribute("data-poster");e.setAttribute("poster",i),d.unobserve(e)}})},s);o.forEach(t=>{d.observe(t)})}if(1===t&&this.u(this.options.charge)&&!n){const r=document.querySelectorAll('.auto-loop-videos[data-feed-id="'+this.options.feedId+'"]'),c=new IntersectionObserver((t,i)=>{t.forEach(t=>{t.isIntersecting&&(e(t.target),i.unobserve(t.target))})},s);r.forEach(t=>c.observe(t))}if(2===t&&this.u(this.options.charge)&&!n){let u=document.querySelectorAll(`.${l}-hover-layer[data-feed-id='${this.options.feedId}-video'], .${l}-overlay[data-feed-id='${this.options.feedId}-video']`);u&&0!==u.length||0!==this.options.onclick||(u=document.querySelectorAll(`.${l}-new-layout-item-container`)),u.forEach(t=>{t.style.opacity="1",t.style.background="transparent"}),u.forEach(t=>{const n=n=>{const s=t.getAttribute(`data-${l}-open-id`).split("-")[0],a=i(s);var o;n?(e(a),t.style.opacity=0):(o=a,o?.pause(),t.style.opacity=1)};h.addListener(t,"mouseover",()=>n(!0)),h.addListener(t,"mouseout",()=>n(!1)),h.addListener(t,"touchstart",()=>n(!0)),h.addListener(t,"touchend",()=>n(!1))})}if(3===t&&this.u(this.options.charge)&&!n){const p=Array.from(document.querySelectorAll('.auto-loop-videos[data-feed-id="'+this.options.feedId+'"]'));if(0===p.length)return;let f=!1,g=!1;const m=t=>t?.play(),v=t=>t?.pause();function a(t){if(f)return;f=!0,p.forEach((e,i)=>{i!==t&&(v(e),e.currentTime=0)});const e=p[t];e?(e.currentTime=0,e.muted=!0,m(e),f=!1):f=!1}p.forEach((t,e)=>{t.onended=()=>a((e+1)%p.length)});const w=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&!g&&(g=!0,a(0),e.unobserve(t.target))})},{rootMargin:"200px 0px"});p[0]&&w.observe(p[0])}},Instafeed.prototype.et=function(){Array.from(document.querySelectorAll('video[id^="video-"]')).filter(t=>t.id.includes(this.options.target)).forEach(t=>{t.onplay=()=>{t.muted=!instafeedSettings.sound,t.id.split("-").pop(),null===instafeedSettings.modalOpen&&t.pause()}})},Instafeed.prototype.tt=function(){if(instafeedSettings.feedViewed?.[this.options.feedId])return!1;instafeedSettings.feedViewed[this.options.feedId]=!0,instafeedEventTag("feed_view",this.options.feedId)},Instafeed.prototype.B=function(){document.addEventListener("pointerdown",function(t){function e(t){let e=i-t.clientX;if(o&&console.log("deltaX",e),Math.abs(e)>5){s=!0;const o={dir:e>0?"left":"right",touchType:"mouse",fingers:1,xStart:parseInt(i,10),xEnd:parseInt(t.clientX,10),yStart:parseInt(n,10),yEnd:parseInt(t.clientY,10)},d=new CustomEvent(e>0?"swiped-left":"swiped-right",{bubbles:!0,cancelable:!0,detail:o});a.dispatchEvent(d)}}if(0!==t.button)return;let i=t.clientX,n=t.clientY,s=!1,a=t.target,o="undefined"!=typeof Shopify&&"mintt-studio-developers.myshopify.com"===Shopify?.shop;if(o&&console.log("e.target",t.target),!Array.from(a.classList).some(t=>t.includes("instafeed-hover-layer")||t.includes("instafeed-new-layout-item-container")))return!1;t.stopPropagation(),o&&(console.log("dragTarget",a),console.log("startX",i),console.log("startY",n)),a.style.cursor="grabbing",a.style.userSelect="none",document.addEventListener("pointermove",e),document.addEventListener("pointerup",function t(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",t),s&&(instafeedSettings.hasSwiped=s),a.style.cursor="",a.style.userSelect=""})})},Instafeed}();!function t(){function e(t,e=!1){const n=document.getElementById(t);if(instafeedSettings.sliderIsPaused=!1,n){let t=document.getElementById("video-"+i);t&&t.pause(),e||(document.body.classList.remove("instafeed-body-no-scroll"),document.documentElement.classList.remove("instafeed-body-no-scroll"));let s=!!e;instafeedSettings.previouslyFocusedElement&&instafeedSettings.previouslyFocusedElement.focus({preventScroll:s}),n.style.setProperty("display","none","important"),n.style.opacity=0,instafeedSettings.modalOpen=null,h.removeListener(window,"keydown",instafeedTrapFocusHandler,!1),h.removeListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1})}}var i;h.addListener(document,"click",function(t){var s,a;if(instafeedSettings.isDragging||instafeedSettings.hasSwiped)instafeedSettings.hasSwiped=!1;else{if(!t.target||!t.target.hasAttribute(`data-${l}-open-id`)&&!t.target.hasAttribute(`data-${l}-close-id`))return!1;if(s=t.target.hasAttribute(`data-${l}-open-id`)?t.target.getAttribute(`data-${l}-open-id`):t.target.getAttribute(`data-${l}-close-id`),a=document.getElementById("video-"+s),t.target.hasAttribute(`data-${l}-open-id`)){const t=document.getElementById(s);if(document.activeElement.classList.contains(`${l}-new-layout-item-container`)&&(instafeedSettings.previouslyFocusedElement=document.activeElement),t){const i=t.querySelector(".instafeed-cart-icon");!n.includes(window.location.hostname)&&i&&fetch(window.Shopify.routes.root+"cart.js").then(t=>t.json()).then(t=>{i.setAttribute("data-count",t.item_count)}).catch(t=>{console.error("Error:",t)});let o=!1;if(instafeedSettings.modalOpen&&(o=!0,e(instafeedSettings.modalOpen,o)),instafeedSettings.modalOpen=s,t.style.setProperty("display","flex","important"),t.style.opacity=1,instafeedSettings.sliderIsPaused=!0,document.body.classList.add("instafeed-body-no-scroll"),document.documentElement.classList.add("instafeed-body-no-scroll"),t.querySelector(".instafeed-simple-popup")&&h.addListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1}),a){const t=document.getElementById("video-spinner-"+s);t.style.display="block",a.play().then(()=>{t.style.display="none"})}(function o(t){let e=`.${l}-new-arrow, .${l}-close-button`;window.matchMedia("only screen and (max-width: 1024px)").matches&&(e=`.${l}-close-button, .tagged-buy-button, .${l}-sound-button, .${l}-post-control-button`);const{firstFocusableElement:i,lastFocusableElement:n}=function s(t,e){const i=t.querySelectorAll(e);return{firstFocusableElement:i[0],lastFocusableElement:i[i.length-1]}}(t,e);instafeedTrapFocusHandler=t=>{!function e(t,i,n){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?t.target===i&&(n.focus(),t.preventDefault()):t.target===n&&(i.focus(),t.preventDefault()))}(t,i,n)},h.addListener(window,"keydown",instafeedTrapFocusHandler,!1),i&&i.focus({preventScroll:!0})})(t),instafeedEventTag("modal_open",s)}}t.target.hasAttribute(`data-${l}-close-id`)&&e(s),i=s}}),h.addListener(window,"keydown",t=>{var i,n,s;const{key:a}=t;if(!document.getElementById("video-"+instafeedSettings.modalOpen)||" "!==a&&"Spacebar"!==a&&"Space"!==t.code||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||(t.preventDefault(),instafeedTogglePlay()),"Escape"===a)instafeedSettings.modalOpen&&e(instafeedSettings.modalOpen);else if("Enter"===t.key){const t=document.activeElement;("true"===t.getAttribute("data-instafeed-keydown-event")||t.classList.contains(`${l}-post-control-button`)||t.classList.contains(`${l}-sound-button`)||t.classList.contains(`${l}-video-control`)||t.classList.contains(`${l}-close-button`)||t.classList.contains(`${l}-carousel-arrow`)||t.classList.contains(`${l}-new-arrow`))&&t.click()}(i=document.getElementById(instafeedSettings.modalOpen))&&(n="","ArrowLeft"===a?n=`.${l}-new-arrow.prev`:"ArrowRight"===a&&(n=`.${l}-new-arrow.next`),n&&(s=i.querySelector(n))&&s.click())})}(),function t(){window.instafeedEventTag=function(t,e,i=0){if("undefined"==typeof Shopify||!1===instafeedSettings.analytics)return;const n=new FormData;n.append("event",t),n.append("fid",e),n.append("product_id",i),n.append("shop",Shopify.shop),n.append("appVersion",a),navigator.sendBeacon("https://tr.nfcube.com/index/v1",n)}}(),function t(){window.instafeedAddToCart=(t,e,i,n)=>{const s=t.querySelector("button");s.innerHTML='
';const a={items:[{id:e,quantity:1}]};fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(e=>{if(!e.ok)return e.json().then(e=>{if(422===parseInt(e.status))throw s.disabled=!0,console.log("Disabling button",t.getAttribute("data-sold-out")),s.innerHTML=t.getAttribute("data-sold-out"),s.style.cursor="not-allowed",s.style.opacity="0.5",new Error(e.message)})}).then(()=>{fetch(window.Shopify.routes.root+"cart.js").then(t=>t.json()).then(e=>{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);a.setAttribute("data-count",e.item_count),a.style.display="flex",s.innerHTML=i.toUpperCase();const d=new CustomEvent("instafeed:cart:updated",{bubbles:!0,detail:e});if(document.dispatchEvent(d),"undefined"!=typeof theme&&theme&&"function"==typeof theme.CartDrawer)try{"function"==typeof(e=new theme.CartDrawer).init&&e.init()}catch(t){console.warn("Failed to initialize theme cart:",t)}}).catch(t=>{console.error("Error:",t),s.innerHTML=i})}).catch(t=>{console.error("Error:",t)})}}(),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 e(){window.instafeedCarouselMove=function(e,i,n,s){const a=instafeedSettings.carousels[i][n],o=a.length;let d=e.closest("div.instafeed-post-image");if(d||(d=e.closest(".lightbox-instagram")?.querySelector("div.instafeed-post-image")),d){const r=d.querySelector("img");if(r&&o>0){let d;if("number"==typeof s){if(d=s,d<0||d>=o)return}else{const t=r.src;let e=a.findIndex(e=>e.media_url===t);-1===e&&(e=0),d="left"===s?0===e?o-1:e-1:e===o-1?0:e+1}const l=e.closest(".lightbox-instagram").querySelectorAll(".open-resource-picker");l&&l.forEach(t=>{t.setAttribute("data-carousel-index",d)}),document.getElementById(`instafeed-carousel-dots-${i}-${n}`)?.querySelector(".instafeed-carousel-dot.active")?.classList.remove("active"),document.getElementById(`instafeed-carousel-dot-${i}-${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;u.onload=()=>{r.src=a[d].media_url,r.style.opacity="1",c.remove()},u.src=a[d].media_url,setTimeout(()=>{window.instafeedCarouselTransitioning=!1},300),t(e,i,n,d)}}}}(),function t(){window.instafeedSliderMove=(t,e=0,i=0)=>{if(instafeedSettings.sliderIsPaused)return;instafeedSettings.sliderState[e]||(instafeedSettings.sliderState[e]={currentTransform:0,minTransform:0,isTransitioning:!1});const n=instafeedSettings.sliderState[e],s=new URLSearchParams(window.location.search),a="undefined"!=typeof Shopify&&Shopify.shop||s.get("shop"),o=["wearelittleas.myshopify.com"].includes(a)||("rtl"===document.documentElement.dir||"rtl"===getComputedStyle(document.documentElement).direction||"rtl"===document.body.dir||"rtl"===getComputedStyle(document.body).direction)&&!["81c182-2.myshopify.com"].includes(a);if(o&&(t=-t),n.isTransitioning)return;const d=parseFloat((instafeedSettings.sliderRowSize[e]*(instafeedSettings.totalImages[e]/instafeedSettings.sliderNumVisibleImages[e]-1)).toFixed(3));d-n.currentTransformn.minTransform&&(n.currentTransform=-d);const r=document.querySelector(`.${l}-new-layout-wrapper[data-feed-id="${e}"]`);if(!r)return;let c=n.currentTransform;if(o&&(c=Math.abs(n.currentTransform)),instafeedSettings.dynamicSliderArrows.includes(a)){const t=document.querySelector(`.${l}-new-layout-container[data-feed-id="${e}"] .${l}-new-arrow-prev`),i=document.querySelector(`.${l}-new-layout-container[data-feed-id="${e}"] .${l}-new-arrow-next`);t&&(t.style.display=0===n.currentTransform?"none":"block"),i&&(i.style.display=n.currentTransform===-d?"none":"block")}let u=4===i?window.instafeedContinuousSlideSpeed:500,p=4===i?`transform ${window.instafeedContinuousSlideSpeed/1e3}s linear`:"transform 0.5s ease-in-out";r.style.transition=p,r.style.transform=`translateX(${c}px)`,n.isTransitioning=!0,setTimeout(()=>{r.style.transition="",n.isTransitioning=!1},u)}}(),function t(){function e(){const t=new URLSearchParams(window.location.search).get("instafeed_post");if(t){const e=t+"-insta-feed",i=document.querySelector('[data-instafeed-open-id="'+e+'"]');if(i){i.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)}(),window.instafeedSettings={},instafeedSettings.instances={},instafeedSettings.version=a,instafeedSettings.sound=!1,instafeedSettings.dynamicSliderArrows=["thelodge.myshopify.com"],instafeedSettings.analytics=!1,instafeedSettings.modalOpen=null,instafeedSettings.isDragging=!1,instafeedSettings.hasSwiped=!1,instafeedSettings.feedViewed={},instafeedSettings.previouslyFocusedElement=null,instafeedSettings.carousels={},instafeedSettings.sliderRowSize={},instafeedSettings.sliderStepSize={},instafeedSettings.sliderIsPaused=!1,instafeedSettings.sliderNumVisibleImages={},instafeedSettings.sliderState={},instafeedSettings.totalImages={},instafeedSettings.translations={en:{SHOP_NOW:"Shop now",ADD_TO_CART:"Add to cart",SOLD_OUT:"Sold out",TAG_PRODUCTS:"Tag products",TAG_COLLECTIONS:"Tag collections",TAGGED_BY:"Tagged by {username}",VIEW_ON_INSTAGRAM:"View on Instagram",FOLLOWERS:"{number} followers",REVIEWS:"{number} reviews",HANG_ON:"Please hang on while we process your feed. This may take a while.",DELETE:"Delete",UPGRADE:"Upgrade",SHOW_PRODUCTS_MESSAGE:"Want tagged products to show up here?",PRODUCT_FROM_IG:"Instagram tag"},"pt-PT":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",SOLD_OUT:"Esgotado",TAG_PRODUCTS:"Marcar produtos",TAG_COLLECTIONS:"Marcar coleções",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",FOLLOWERS:"{number} seguidores",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos a processar o seu feed. Isto pode demorar um pouco.",DELETE:"Apagar",UPGRADE:"Upgrade",SHOW_PRODUCTS_MESSAGE:"Quer que os produtos marcados apareçam na sua loja?",PRODUCT_FROM_IG:"Etiqueta do Instagram"},"pt-BR":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",SOLD_OUT:"Esgotado",TAG_PRODUCTS:"Marcar produtos",TAG_COLLECTIONS:"Marcar coleções",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",FOLLOWERS:"{number} seguidores",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos processando seu feed. Isso pode demorar um pouco.",DELETE:"Apagar",UPGRADE:"Upgrade",SHOW_PRODUCTS_MESSAGE:"Quer que os produtos marcados apareçam na sua loja?",PRODUCT_FROM_IG:"Etiqueta do Instagram"},es:{SHOP_NOW:"Comprar ahora",ADD_TO_CART:"Añadir al carrito",SOLD_OUT:"Agotado",TAG_PRODUCTS:"Etiquetar productos",TAG_COLLECTIONS:"Etiquetar colecciones",TAGGED_BY:"Etiquetado por {username}",VIEW_ON_INSTAGRAM:"Ver en Instagram",FOLLOWERS:"{number} seguidores",REVIEWS:"{number} reseñas",HANG_ON:"Espera un momento, estamos procesando tu feed. Esto puede llevar unos instantes.",DELETE:"Eliminar",UPGRADE:"Mejorar plan",SHOW_PRODUCTS_MESSAGE:"Quieres que los productos etiquetados aparezcan en tu tienda?",PRODUCT_FROM_IG:"Etiqueta de Instagram"},ja:{SHOP_NOW:"今すぐ購入",ADD_TO_CART:"カートに入れる",SOLD_OUT:"売り切れ",TAG_PRODUCTS:"商品にタグを付ける",TAG_COLLECTIONS:"コレクションにタグを付ける",TAGGED_BY:"{username}によってタグ付けされました",VIEW_ON_INSTAGRAM:"Instagramで見る",FOLLOWERS:"{number}フォロワー",REVIEWS:"{number}レビュー",HANG_ON:"少々お待ちください、フィードを処理中です。これには時間がかかる場合があります。",DELETE:"削除",UPGRADE:"アップグレード",SHOW_PRODUCTS_MESSAGE:"タグ付けされた商品をストアに表示したいですか?",PRODUCT_FROM_IG:"Instagramタグ"},fr:{SHOP_NOW:"Acheter",ADD_TO_CART:"Ajouter au panier",SOLD_OUT:"Épuisé",TAG_PRODUCTS:"Étiqueter les produits",TAG_COLLECTIONS:"Étiqueter les collections",TAGGED_BY:"Tagué par {username}",VIEW_ON_INSTAGRAM:"Afficher sur Instagram",FOLLOWERS:"{number} abonnés",REVIEWS:"{number} avis",HANG_ON:"Patientez, nous traitons votre flux. Cela pourrait prendre un certain temps.",DELETE:"Supprimer",UPGRADE:"Améliorer mon plan",SHOW_PRODUCTS_MESSAGE:"Voulez-vous que les produits étiquetés apparaissent sur votre boutique ?",PRODUCT_FROM_IG:"Étiquette Instagram"},de:{SHOP_NOW:"Jetzt shoppen",ADD_TO_CART:"In den Warenkorb",SOLD_OUT:"Ausverkauft",TAG_PRODUCTS:"Produkte taggen",TAG_COLLECTIONS:"Collections taggen",TAGGED_BY:"Getaggt von {username}",VIEW_ON_INSTAGRAM:"Auf Instagram ansehen",FOLLOWERS:"{number} Follower",REVIEWS:"{number} Bewertungen",HANG_ON:"Einen Moment bitte, wir verarbeiten deinen Feed. Das könnte eine Weile dauern.",DELETE:"Löschen",UPGRADE:"Upgraden",SHOW_PRODUCTS_MESSAGE:"Möchten Sie, dass markierte Produkte auf Ihrem Store angezeigt werden?",PRODUCT_FROM_IG:"Instagram Tag"},sv:{SHOP_NOW:"Handla nu",ADD_TO_CART:"Lägg till i varukorgen",SOLD_OUT:"Slut",TAG_PRODUCTS:"Tagga produkter",TAG_COLLECTIONS:"Tagga collections",TAGGED_BY:"Taggad av {username}",VIEW_ON_INSTAGRAM:"Visa på Instagram",FOLLOWERS:"{number} följare",REVIEWS:"{number} recensioner",HANG_ON:"Vänta, vi behandlar ditt flöde. Detta kan ta en stund.",DELETE:"Radera",UPGRADE:"Uppgradera",SHOW_PRODUCTS_MESSAGE:"Vill du att taggade produkter visas på din butik?",PRODUCT_FROM_IG:"Instagram-tagg"},it:{SHOP_NOW:"Acquista ora",ADD_TO_CART:"Aggiungi al carrello",SOLD_OUT:"Esaurito",TAG_PRODUCTS:"Tagga prodotti",TAG_COLLECTIONS:"Tagga collections",TAGGED_BY:"Taggato da {username}",VIEW_ON_INSTAGRAM:"Visualizza su Instagram",FOLLOWERS:"{number} follower",REVIEWS:"{number} recensioni",HANG_ON:"Aspetta, stiamo elaborando il tuo feed. Potrebbe richiedere un po' di tempo.",DELETE:"Elimina",UPGRADE:"Aggiorna piano",SHOW_PRODUCTS_MESSAGE:"Vuoi che i prodotti taggati appaiano nella tua negozio?",PRODUCT_FROM_IG:"Tag di Instagram"},da:{SHOP_NOW:"Shop nu",ADD_TO_CART:"Læg i kurv",SOLD_OUT:"Udsolgt",TAG_PRODUCTS:"Tag produkter",TAG_COLLECTIONS:"Tagga collections",TAGGED_BY:"Tagget af {username}",VIEW_ON_INSTAGRAM:"Se på Instagram",FOLLOWERS:"{number} følgere",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent venligst, vi behandler dit feed. Det kan tage lidt tid.",DELETE:"Slet",UPGRADE:"Opgrader",SHOW_PRODUCTS_MESSAGE:"Vil du have taggede produkter vist på din butik?",PRODUCT_FROM_IG:"Instagram-tag"},nb:{SHOP_NOW:"Handle nå",ADD_TO_CART:"Legg i handlekurv",SOLD_OUT:"Utsolgt",TAG_PRODUCTS:"Tagg produkter",TAG_COLLECTIONS:"Tagga collections",TAGGED_BY:"Tagget av {username}",VIEW_ON_INSTAGRAM:"Vis på Instagram",FOLLOWERS:"{number} følgere",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent litt, vi behandler din feed. Dette kan ta en stund.",DELETE:"Slett",UPGRADE:"Oppgrader",SHOW_PRODUCTS_MESSAGE:"Vil du ha taggete produkter vist på din butik?",PRODUCT_FROM_IG:"Instagram-tag"},nl:{SHOP_NOW:"Nu shoppen",ADD_TO_CART:"Toevoegen aan winkelwagen",SOLD_OUT:"Uitverkocht",TAG_PRODUCTS:"Producten taggen",TAG_COLLECTIONS:"Collections taggen",TAGGED_BY:"Getagd door {username}",VIEW_ON_INSTAGRAM:"Bekijk op Instagram",FOLLOWERS:"{number} volgers",REVIEWS:"{number} beoordelingen",HANG_ON:"Even geduld alstublieft, we verwerken je feed. Dit kan even duren.",DELETE:"Verwijderen",UPGRADE:"Upgrade",SHOW_PRODUCTS_MESSAGE:"Wil je dat getagde producten op je winkelwagen worden getoond?",PRODUCT_FROM_IG:"Instagram-tag"},"zh-CN":{SHOP_NOW:"立即购买",ADD_TO_CART:"加入购物车",SOLD_OUT:"售罄",TAG_PRODUCTS:"标记产品",TAG_COLLECTIONS:"标记集合",TAGGED_BY:"由 {username} 标记",VIEW_ON_INSTAGRAM:"在 Instagram 上查看",FOLLOWERS:"{number} 粉丝",REVIEWS:"{number} 评论",HANG_ON:"请稍等,我们正在处理您的信息。这可能需要一段时间。",DELETE:"删除",UPGRADE:"升级",SHOW_PRODUCTS_MESSAGE:"想要在您的商店中显示标记的产品吗?",PRODUCT_FROM_IG:"Instagram 标签"},tr:{SHOP_NOW:"Şimdi satın al",ADD_TO_CART:"Sepete ekle",SOLD_OUT:"Tükendi",TAG_PRODUCTS:"Ürünleri etiketle",TAG_COLLECTIONS:"Koleksiyonları etiketle",TAGGED_BY:"{username} tarafından etiketlendi",VIEW_ON_INSTAGRAM:"Instagram'da görüntüle",FOLLOWERS:"{number} takipçi",REVIEWS:"{number} yorum",HANG_ON:"Lütfen bekleyin, akışınızı işliyoruz. Bu biraz zaman alabilir.",DELETE:"Sil",UPGRADE:"Yükselt",SHOW_PRODUCTS_MESSAGE:"Etiketli ürünlerin burada görünmesini istiyor musunuz?",PRODUCT_FROM_IG:"Instagram etiketi"},ko:{SHOP_NOW:"지금 쇼핑",ADD_TO_CART:"장바구니에 추가",SOLD_OUT:"품절",TAG_PRODUCTS:"제품 태그",TAG_COLLECTIONS:"컬렉션 태그",TAGGED_BY:"{username}에 의해 태그됨",VIEW_ON_INSTAGRAM:"Instagram에서 보기",FOLLOWERS:"{number} 팔로워",REVIEWS:"{number} 리뷰",HANG_ON:"잠시만 기다려 주세요. 피드를 처리하고 있습니다. 시간이 걸릴 수 있습니다.",DELETE:"삭제",UPGRADE:"업그레이드",SHOW_PRODUCTS_MESSAGE:"태그된 제품이 여기에 표시되기를 원하시나요?",PRODUCT_FROM_IG:"Instagram 태그"}},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.instafeedSlideSpeed=window.instafeedSlideSpeed||6e3,window.instafeedContinuousSlideSpeed=window.instafeedContinuousSlideSpeed||5990,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,f=!1,h=!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,f=!1,h=!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);f||h||(Math.abs(o)>Math.abs(d)&&Math.abs(o)>10?f=!0:Math.abs(d)>Math.abs(o)&&Math.abs(d)>10&&(h=!0)),f&&"true"===n(l,"data-instafeed-prevent-touch-scroll","false")&&t.preventDefault(),f&&Math.abs(o)>g?(i(o>0?"swiped-left":"swiped-right",t.touches[0]),u=!1,p=c):h&&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,f=!1,h=!1,s=null,a=null,r=null},{passive:!0})}(window,document);if (document.getElementById('insta-feed') !== null) { var feed = new Instafeed({"hash":"00a6833dd3e9cbe36d49d1429dfd82f7","key":"instafeed-106aa93634603fea897989f4fcdfe842","apiVersion":6,"shopOrigin":"4e84b6-d8.myshopify.com","title":"","openIg":1,"space":0,"corners":0,"likes":0,"showFollowers":0,"showProducts":0,"layout":6,"format":0,"sliderBehavior":1,"instagramLinks":0,"loadingAnimation":0,"carouselProductTags":0,"showPrices":0,"showReviews":0,"analytics":0,"showHalfPosts":0,"hideUsernames":0,"addToCart":0,"filter":"","taggedPosts":0,"columns":4,"columnsMobile":4,"rows":2,"rowsMobile":2,"autoplay":0,"autoLayout":1,"rowsLimit":4,"abTest":0,"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()});