1function handleBadgeDisplay(){const promoText=document.getElementById("badge-text-container"),mobilePromoText=document.getElementById("badge-text-container-m");if(!promoText&&!mobilePromoText)return;const allApplicablePromos=promoText?promoText.querySelectorAll(".fs-custom-single-promo"):[],allApplicableMobilePromos=mobilePromoText?mobilePromoText.querySelectorAll(".fs-custom-single-promo"):[];if(!allApplicablePromos.length&&!allApplicableMobilePromos.length)return;const getCurrentUTCTime=()=>new Date().toISOString(),getStartTime=startTime=>{if(!startTime)return null;const start=new Date(startTime);return isNaN(start.getTime())?null:start.toISOString()},getEndTime=endTime=>{if(!endTime)return null;const end=new Date(endTime);return isNaN(end.getTime())?null:end.toISOString()},isPromoActive=(start,end,persist)=>{if(persist=="true")return!0;const currentTime=getCurrentUTCTime(),startTime=getStartTime(start),endTime=getEndTime(end);return!startTime||!endTime?!1:currentTime>=startTime&¤tTime<=endTime},isPromoVisible=promoEl=>{const currPromoStart=promoEl.getAttribute("data-start-time"),currPromoEnd=promoEl.getAttribute("data-end-time"),currPromoPersist=promoEl.getAttribute("data-promo-continue"),currPromoInAppOnly=promoEl.getAttribute("data-app-only"),currPromoNotInApp=promoEl.getAttribute("data-not-in-app"),currPromoUtmParams=promoEl.getAttribute("data-utm-params"),urlParams=new URLSearchParams(window.location.search),isInApp=(urlParams.get("app")||"").trim().toLowerCase().startsWith("kinn");if(isInApp&&currPromoNotInApp==="true"||!isInApp&&currPromoInAppOnly==="true")return!1;if(currPromoUtmParams){const utmArr=currPromoUtmParams.split(",");let hasMatchingUtm=!1;for(let utmCombo of utmArr)if(utmCombo.split("&").every(pair=>{const[key,value]=pair.trim().split("=");return urlParams.get(key)===value})){hasMatchingUtm=!0;break}if(!hasMatchingUtm)return!1}return isPromoActive(currPromoStart,currPromoEnd,currPromoPersist)},isDesktop=window.innerWidth>768,promosToCheck=isDesktop?allApplicablePromos:allApplicableMobilePromos,fallbackPromos=isDesktop?allApplicableMobilePromos:allApplicablePromos,candidates=promosToCheck.length?promosToCheck:fallbackPromos;for(let i=0;i<candidates.length;i++)if(isPromoVisible(candidates[i])){candidates[i].style.display="block";break}}document.readyState!=="loading"?handleBadgeDisplay():document.addEventListener("DOMContentLoaded",()=>{handleBadgeDisplay()}); 2//# sourceMappingURL=/cdn/shop/t/1305/assets/badge-time-validator.js.map?v=86790957990266612011786348505
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.