!function(t){var e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);n(1);const o={"data-id":"tintSlug","data-columns":"columns","data-expand":"expand","data-clickformore":"clickForMore","data-infinitescroll":"infiniteScroll","data-paginate":"paginate","data-nobuttons":"noButtons","data-noimages":"noImages","data-slideshowctrl":"slideShowCtrl","data-nopopup":"noPopup","data-noimagescaling":"noImagesScaling","data-mobilescroll":"mobileScroll","data-nomobilerender":"noMobileRender","data-nomobilenavmenu":"noMobileNavmenu","data-count":"count","data-query":"query","data-nocache":"noCache","data-personalization-id":"personalizationId","data-notrack":"noTrack","data-touchscreen":"touchScreen","data-append-utm-to-cta":"cta_append","data-utm-passthrough":"utmPassthrough","data-utm-campaign":"utm_campaign","data-utm-source":"utm_source","data-utm-medium":"utm_medium","data-utm-content":"utm_content","data-utm-term":"utm_term","data-tags":"tags","data-saved-filter-id":"saved_filter_id","data-embed-title":"title","data-from":"from","data-product-sku":"product_sku","data-hide-no-content":"hideNoContent","data-post-tags":"postTags","data-add-post-open":"addPostOpen","data-use-shadow-dom":"useShadowDom"};let a=!0;const i=window&&window._env_&&window._env_.BASE_URL?window._env_.BASE_URL:null,r={origin:i||"https://cdn.hypemarks.com/",tint:i?i+"app/tint/tint.html#":"https://cdn.hypemarks.com/app/tint/tint.html#",popup:i?i+"app/tint/popup.html":"https://cdn.hypemarks.com/app/tint/popup.html",oldScript:"https://cdn.hypemarks.com/pages/a5b5e5.js"},s=t=>{const e=[...t.attributes],n={};return e.forEach(t=>{const e=o[t.name];e&&(n[e]=t.value)}),n},c=(t,e)=>{e.utmPassthrough&&window.location.search.replace(/utm_([^=]+)=([^&]+)/g,(function(t,n,o){e["utm_"+n]=o}));return t+Object.entries(e).reduce((t,[e,n])=>{if("tintSlug"===e)return`${n}?${t}`;if("addPostOpen"===e){if("true"===n)return`${t}${e}=${n}&`;if("string"==typeof n){return`${t}${e}=${new URLSearchParams(window.location.search).get(n)}&`}}else if(null!=n&&""!==n)return`${t}${e}=${n}&`;return""+t},"")},d="OPEN_PUBLIC_POST",l="OPEN_REVIEW",u="OPEN_POPUP",p="POPUP_LOADED",m="LOAD_OLD_THEME",h="PUBLIC_POST_SUBMITTED",g="REVIEW_SUBMITTED",y="CLOSE_POPUP",f="CHANGE_POST_POPUP",w="UPDATE_POPUP_DATA",S="EXPAND_POST_MESSAGE",E="SCROLL_TO_TOP_MESSAGE",_="POSTS_ARE_FETCHED",b="THEME_LOADED",v="GENERATE_SCHEMA",O="UPDATE_SCHEMA";const P=(A=!1,(t,e)=>{A||(function(t,e){var n=new IntersectionObserver((function(t){t.map((function(t){t.isIntersecting&&(n.unobserve(t.target),t.target.contentWindow.postMessage({type:"RECORD_EMBED_VIEWED",embedUrl:document.location.href,tintSlug:e.tintSlug},r.origin))}))}),{});t&&n.observe(t)}(t,e),t&&t.contentWindow.postMessage({type:"RECORD_EMBED_LOCATION",embedUrl:document.location.href,tintSlug:e.tintSlug},r.origin),A=!0)});var A;const T=(t,e,n,o)=>{const i=document.querySelector("#tint-popup"),c=document.querySelectorAll("#tint-page")[o],A=s(e);let k={};if(function(t){try{JSON.parse(t)}catch(t){return!1}return!0}(t.data)&&(k=JSON.parse(t.data)),k.type&&"object"==typeof k&&k.tintSlug===n)switch(k.type){case m:i.remove(),c.remove(),window.removeEventListener("message",t=>T(t,e,A.tintSlug,o),!1);const t=document.createElement("script");t.src=r.oldScript,e.appendChild(t);break;case u:i.style.display="block",i.focus(),i&&i.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case d:case l:i.style.display="block",i.focus(),i&&i.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case h:case g:case p:c&&c.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case y:i.style.display="none",c&&c.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case f:c&&c.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case w:i&&i.contentWindow.postMessage({...k,tintSlug:n},r.origin);break;case _:a=!0;break;case S:e&&(e.style.height=k.containerSize+"px"),c&&(c.style.height=k.containerSize+"px");break;case b:P(c,A);break;case E:const s=document.body.getBoundingClientRect(),M=e.getBoundingClientRect().top-s.top;window.scrollTo(0,M);break;case v:const C=document.createElement("script");C.type="application/ld+json";try{C.append(JSON.stringify(k.schema)),document.head.appendChild(C)}catch(t){console.log("Schema structure is wrong",t)}break;case O:try{document.querySelectorAll('script[type="application/ld+json"]').forEach(t=>{const e=JSON.parse(t.innerHTML);e&&"TINT - Community Powered Marketing Platform"===e.name&&(e.review=k.schema.reviews,e["@graph"]=k.schema["@graph"],t.innerHTML=JSON.stringify(e))})}catch(t){console.log("Schema update failed",t)}}},k=t=>{if(t.shadowRoot)return;const e=(t,e)=>new Promise((n,o)=>{const a=document.createElement("script");a.src=t,a.onload=n,a.onerror=o,e.appendChild(a)}),n=t.attachShadow({mode:"open"});t.setAttribute("style","overflow: hidden; height: auto; width: auto; min-height: 500px");const o=r.tint,a=s(t),i=document.createElement("div");i.id="tintup",i.innerHTML='\n \n
\n',i.setAttribute("data-url",c(o,a)),n.appendChild(i);const d=document.createElement("link");d.href="https://cdn.hypemarks.com/app/tint/main.css",d.rel="stylesheet",n.appendChild(d),e("https://cdn.hypemarks.com/app/tint/main-bundle.js",n).then(()=>{console.log("React bundle script loaded successfully")}).catch(t=>{console.error("Failed to load React bundle script:",t)}),e("https://cdn.hypemarks.com/app/dist/env-config.js",n).then(()=>{console.log("Env script loaded successfully")}).catch(t=>{console.error("Failed to load Env script:",t)})},M=()=>{document.querySelectorAll(".tintup").forEach((t,e)=>{const n=s(t),o=n.useShadowDom;window&&window.location&&window.location.search&&window.location.search.includes("tint_shadow_dom=true")||o?k(t):C()})},C=()=>{document.querySelectorAll(".tintup").forEach((t,e)=>{if(t.children.length)return;window.addEventListener("message",n=>T(n,t,o.tintSlug,e),!1);const n=r.tint,o=s(t),i=c(n,o),d=document.createElement("iframe");if(d.setAttribute("src",i),d.setAttribute("id","tint-page"),d.setAttribute("title",o.title?o.title:"Tint"),d&&(o.expand?(d.style.height=t.style.height,d.style.width=t.style.width||"100%"):(d.style.height=t.style.height,d.style.maxHeight=t.style.maxHeight,d.style.width=t.style.width||"100%"),d.style.border="none",d.setAttribute("allow","fullscreen")),t.appendChild(d),!document.querySelector("#tint-popup")){((t,e)=>{(t=document.createElement("iframe")).setAttribute("src",e),t.setAttribute("id","tint-popup"),t.setAttribute("allow","fullscreen"),t.setAttribute("title","Tint popup"),t.style.display="none",t.style.position="fixed",t.style.width="100%",t.style.height="100%",t.style.left="0px",t.style.right="0px",t.style.top="0px",t.style.bottom="0px",t.style.border="none",t.style.zIndex="9999999",document.body.appendChild(t)})(document.querySelector("#tint-popup"),r.popup)}const l=document.querySelector("#tint-page");!o.infiniteScroll||o.paginate||o.clickForMore||window.addEventListener("scroll",()=>{if(document.documentElement.clientHeight+document.documentElement.scrollTop>Math.round(.75*document.documentElement.scrollHeight)&&!0===a)try{a=!1,l.contentWindow.postMessage({type:"INFINITE_SCROLL_FETCH"},r.origin)}catch(t){a=!0}})})};"interactive"===document.readyState||"complete"===document.readyState?M():document.addEventListener("DOMContentLoaded",M),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e){const n=function(){let t=null,e=[],n=!1;function o(e){let{type:n,eventName:o,...a}=e;if(n&&t)switch(n){case"tint-analytics-track":t.track(o,a);break;case"tint-analytics-record-traits":t.recordTraits(a)}}function a(a){const i=document.createElement("script");i.src=a.origin+"app/dist/tintAnalyticsClient-bundle.js",i.onload=()=>{n=!0,t=new tintAnalyticsClient.default,e.forEach(t=>{o(t)}),e=[]},i.onerror=()=>{console.error("Analytics module failed to load")},document.head.appendChild(i)}return{init:function(t){a(t),window.hasAddedTintAnalyticsMessageListener||(window.addEventListener("message",t=>{if(function(t){try{JSON.parse(t)}catch(t){return!1}return!0}(t.data)){!function(t){n?o(t):e.push(t)}(JSON.parse(t.data))}},!1),window.hasAddedTintAnalyticsMessageListener=!0)}}}(),o=window&&window._env_&&window._env_.BASE_URL?window._env_.BASE_URL:null,a={origin:o||"https://cdn.hypemarks.com/"};n.init(a)}]);