PageSourceSearch

https://shop.aurora-music.com/cdn/shop/t/69/assets/geolocation.bundle.js?v=69990624064835872461787731951

js aurora-music.com collected 2026-09-24 18:12:04 UTC 13,463 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgcom_rhythm=self.webpackChunkgcom_rhythm||[]).push([[3907,3930],{6572(e,t,i){var s=i(7223);window.GeoLocation={callGeo:function(){return fetch("https://ip.ecom.umgapps.com/ip/lookup").then(e=>e.json())},geoContent:function(e,t){const i=document.querySelectorAll("[data-geo-show]");let n="";for(const e of i)if(n=e.dataset.geoShow.split(","),n.includes(t)&&(e.classList.remove("hidden"),e.parentNode.parentNode?.classList.contains("section-soft-redirects"))){s.U.getInstance().updateMeasurements()}const o=document.querySelectorAll("[data-geo-hide]");for(const e of o)n=e.dataset.geoHide.split(","),n.includes(t)&&e.classList.add("!hidden");const r=document.querySelectorAll("[data-geo-countryname-replace]");for(const t of r)t.outerHTML=e;const a=document.querySelectorAll("[data-geo-countryiso-replace]");for(const e of a)e.outerHTML=t;if(document.querySelector('dialog[data-modal="softRedirectPopup"]')){const e=document.querySelector('dialog[data-modal="softRedirectPopup"]');let t=!0;if(sessionStorage.getItem("_x_softRedirectVisible")){"false"===sessionStorage.getItem("_x_softRedirectVisible")&&(t=!1)}t&&e.showModal()}},applyGeo:function(e,t,i){Shopify.designMode||Shopify.analytics.publish("geolocation_detected",{countryCode:t,city:i}),this.geoContent(e,t),window.countryISOCodeGlobal=t},checkGeo:function(){this.callGeo().then(e=>{const t=e.countryISOCode,i=e.country,s=e.city;this.applyGeo(i,t,s)})}},window.addEventListener("load",function(){window.GeoLocation.checkGeo()})},7223(e,t,i){i.d(t,{U:()=>c});var s=i(5805);const n=Object.freeze({none:"none",static:"static",sticky:"sticky",fixed:"fixed",dynamic:"dynamic",siteHeader:"site-header",dynamicHidden:"dynamic_hidden",umgSticky:"umg-sticky",headerGroupSelector:".shopify-section-group-header-group"});class o{constructor(e){this.element=e,this.isSiteHeader=!1,this.computedStyle=window.getComputedStyle(this.element),this.isSticky=this.computedStyle.position===n.sticky,this.isFixed=this.computedStyle.position===n.fixed,this.isHidden=this.computedStyle.display===n.none,this.isDynamicHidden=!1,this.resetStyles(),this.resetVars()}resetStyles(){this.element.classList.remove(n.dynamicHidden),this.element.style.transform="",this.element.style.top="",this.element.classList.add(n.umgSticky,"transition-[transform]")}resetVars(){this.computedStyle=window.getComputedStyle(this.element),this.isSticky=this.computedStyle.position===n.sticky,this.isFixed=this.computedStyle.position===n.fixed,this.isHidden=this.computedStyle.display===n.none,this.isDyanmicHidden=!1}dynamicShow(){!this.isSiteHeader&&this.isSticky||(this.element.classList.remove(n.dynamicHidden),this.element.style.transform="none",this.isDynamicHidden=!1)}dynamicHide(){!this.isSiteHeader&&this.isSticky||(this.element.classList.add(n.dynamicHidden),this.element.style.transform="translateY(calc(-1 * var(--header-group-height)))",this.isDynamicHidden=!0)}}class r extends o{constructor(e){super(e),this.isSiteHeader=!0,this.wrapper=this.element.querySelector(".header__wrapper"),this.isMd=null!==this.wrapper&&this.wrapper.classList.contains("header__wrapper--md"),this.behaviors=this.setBehaviors(),this.updateHeaderPositions(),this.resetVars()}setBehaviors(){const e={dynamic:!1,headerPosition:n.static,groupPosition:n.static},t=this.wrapper?.dataset.position??null,[i,s]=t?.split("_")??[null,null];return i&&s?(e.dynamic=i===n.dynamic,e.headerPosition=s,e.groupPosition=s===n.fixed?n.fixed:n.static,e):e}updateHeaderPositions(){const e=this.isMd?"-md":"";document.body.style.setProperty(`--header-group-header-position${e}`,this.behaviors.headerPosition),document.body.style.setProperty(`--header-group-position${e}`,this.behaviors.groupPosition)}}class a{constructor(e){this.element=e,this.computedStyle=window.getComputedStyle(this.element),this.isHidden=this.computedStyle.display===n.none,this.isSticky=this.computedStyle.position===n.sticky,this.isFixed=this.computedStyle.position===n.fixed}}class d{constructor(e){this.headers=e,this.siteHeaders=this.headers.filter(e=>e.isSiteHeader),this.stickyElements=[],this.fixedGroup=this.siteHeadersBehave("headerPosition","fixed"),this.hasDynamicHeaders=this.siteHeadersBehave("dynamic",!0),this.dynamicTargets=[],this.scrollEventCallback=null}siteHeadersBehave(e,t){for(const i of this.siteHeaders)if(!i.isHidden&&i.behaviors[e]===t)return!0;return!1}hideDynamicTargets(){for(const e of this.dynamicTargets)e.dynamicHide(),this.updateMeasurements()}showDynamicTargets(){for(const e of this.dynamicTargets)e.dynamicShow(),this.updateMeasurements()}updateInitialMeasurements(){return this.updateMeasurements(!0)}updateMeasurements(e=!1){let t=0,i=0,s=0,n=0;const o=[];for(const e of this.headers){if(!e.isHidden){let o=e.element.offsetHeight;0===o&&(o=e.element.querySelector("div")?.offsetHeight??0),t+=o,e.isDynamicHidden||(i+=o,(e.isSticky||e.isFixed)&&(s+=o)),document.body.style.setProperty(`--header-item-height-${n}`,i+"px"),document.body.style.setProperty(`--header-item-sticky-height-${n}`,s+"px"),e.element.style.top=0===n?"0":e.isSticky?`var(--header-item-sticky-height-${n-1})`:`var(--header-item-height-${n-1})`,n++}o.push(e.element)}for(const e of this.stickyElements)if(!o.includes(e.element)){if(!e.isHidden){let t=e.element.offsetHeight;0===t&&(t=e.element.querySelector("div")?.offsetHeight??0),(e.isSticky||e.isFixed)&&(s+=t),document.body.style.setProperty(`--header-item-sticky-height-${n}`,s+"px"),e.element.style.top=0===n?"0":`var(--header-item-sticky-height-${n-1})`,n++}o.push(e.element)}document.body.style.setProperty("--header-group-height",t+"px"),document.body.style.setProperty("--header-sticky-height",s+"px"),e&&document.body.style.setProperty("--header-group-height-init",t+"px")}setScrollListener(){const e=window.scrollY;for(const t of this.siteHeaders){const i=t.isSiteHeader&&t.behaviors.dynamic;!t.isHidden&&i&&(this.dynamicTargets=t.isFixed?this.headers:[t],this.scrollEventCallback=l(e,this),window.addEventListener("scroll",this.scrollEventCallback,{passive:!0}))}}}class c{constructor(){this.headerGroup=null,this.stickyElements=[],document.addEventListener("DOMContentLoaded",()=>this.buildInitialHeaders()),window.addEventListener("resize",(0,s.sg)(()=>this.buildHeaders(!1),100)),Shopify.designMode&&(document.addEventListener("shopify:section:load",()=>this.buildInitialHeaders()),document.addEventListener("shopify:section:unload",()=>this.buildInitialHeaders()),document.addEventListener("shopify:section:reorder",()=>this.buildInitialHeaders()))}static getInstance(){return c.instance||(c.instance=new c),c.instance}buildInitialHeaders(){return this.buildHeaders(!0)}buildHeaders(e=!1){this.headerGroup?.scrollEventCallback&&window.removeEventListener("scroll",this.headerGroup.scrollEventCallback);const t=document.querySelectorAll(n.headerGroupSelector),i=[];for(const[s,a]of t.entries()){const t=a.classList.contains(n.siteHeader)?new r(a):new o(a);e&&(t.element.dataset.initialIndex=s.toString()),i.push(t)}const s=new d(i);this.stickyHeaderOrderManager(s),s.updateInitialMeasurements(),s.hasDynamicHeaders&&s.setScrollListener(),this.headerGroup=s,this.setStickyElements(),this.headerGroup.stickyElements=this.stickyElements}setStickyElements(){const e=Array.from(document.querySelectorAll("."+n.umgSticky)).filter(e=>window.getComputedStyle(e).position===n.sticky),t=[];for(const i of e)t.push(new a(i));this.stickyElements=t}stickyHeaderOrderManager(e){if(null!=e){let t=0;for(const i of[...e.headers].reverse())if(e.headers.splice(e.headers.indexOf(i),1),e.fixedGroup&&i.isSticky)e.headers.unshift(i),t+=1;else{const s=i.element.dataset.initialIndex;if(!s)return;e.headers.splice(parseInt(s,10)+t,0,i)}}}updateMeasurements(){return this.headerGroup?.updateMeasurements()}}c.instance=null;const l=(e,t)=>
1{let i=e;return()=>{const e=window.scrollY,s=i>e;document.body.dataset.scrolled=String(window.scrollY>0);const o=document.querySelectorAll("."+n.siteHeader+" predictive-search");for(const e of o)e.close();if(s&&"up"!==document.body.dataset.scrollDirection)t.showDynamicTargets(),document.body.dataset.scrollDirection="up";else if(!s&&"down"!==document.body.dataset.scrollDirection){if(window.scrollY<=0)return;t.hideDynamicTargets(),document.body.dataset.scrollDirection="down"}i=e}}},5805(e,t,i){function s(e,t=100){let i=null;return function(...s){null===i&&(i=setTimeout(()=>{e.apply(this,s),i=null},t))}}function n(e,t){let i;return(...s)=>{clearTimeout(i),i=setTimeout(()=>e.apply(this,s),t)}}i.d(t,{DT:()=>S,Dz:()=>o,aM:()=>g,nF:()=>s,oM:()=>a,qF:()=>d,sg:()=>n,up:()=>w});function o(e="json"){return{method:"POST",headers:{"Content-Type":"application/json",Accept:`application/${e}`}}}const r={};function a(e,t=e){const i=function(e){return Array.from(e.querySelectorAll('summary, a[href], button:enabled, [tabindex]:not([tabindex^="-"]), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe'))}(e),s=i[0],n=i[i.length-1];d(),r.focusin=t=>{t.target!==e&&t.target!==n&&t.target!==s||document.addEventListener("keydown",r.keydown)},r.focusout=function(){document.removeEventListener("keydown",r.keydown)},r.keydown=function(t){"TAB"===t.code.toUpperCase()&&(t.target!==n||t.shiftKey||(t.preventDefault(),s.focus()),t.target!==e&&t.target!==s||!t.shiftKey||(t.preventDefault(),n.focus()))},document.addEventListener("focusout",r.focusout),document.addEventListener("focusin",r.focusin),t.focus()}function d(e=null){document.removeEventListener("focusin",r.focusin),document.removeEventListener("focusout",r.focusout),document.removeEventListener("keydown",r.keydown),e&&e.focus()}let c,l=0,u=[];function h(e){return function(e){let t="string"!=typeof e?JSON.stringify(e):e;try{t=JSON.parse(t)}catch(e){return!1}return"object"==typeof t&&null!==t}(e)?"string"!=typeof e?e:JSON.parse(e):null}function m(e){return"group_purchase_limits"===e?.errorSource}function p(){return window.refreshSections([{id:"cart-drawer"},{id:"header-cart-count"},{id:"header-cart-count_md"}])}function y(e){const t=Number(e.getAttribute("qty"));return Number.isNaN(t)?0:t}function f(e,t={}){const i=new URLSearchParams;let s=!1;e.forEach(e=>{const n=Number(e.limit),o=(r=e.handle,Array.from(document.querySelectorAll("[data-group-handle]")).filter(e=>e.dataset.groupHandle===r));var r;let a=o.reduce((e,t)=>e+y(t),0)-n;if(Number.isNaN(n)||a<=0)return;const d=o.find(e=>function(e,t){return t?.editedLineKey&&e.dataset.lineKey===t.editedLineKey||t?.editedVariantId&&e.getAttribute("variant_id")===t.editedVariantId}(e,t));(d?[d,...o.filter(e=>e!==d)]:o).forEach(e=>{if(a<=0)return;const t=function(e){return e.dataset.lineKey||e.getAttribute("variant_id")}(e),n=y(e),o=Math.max(n-a,0),r=n-o;!t||r<=0||(a-=r,s=!0,i.append(`updates[${t}]`,String(o)))})}),s&&fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},credentials:"same-origin",body:i.toString()}).then(e=>e.json()).then(p)}function g(e,t){const i=[],s=h(t.errors?t.errors:t.message);if(s){const t=s;let n=[];const o=t.filter(m),r=t.filter(e=>!m(e));o.length&&f(o,e),r.length&&function(e){let t=e;0===l&&(c=e),1===l&&(u=[...c,...e],t=u);const i=new URLSearchParams;let s=!1;t.forEach(e=>{const t=e.productLevelLimit;let n=t;const o=e.variants;Array.isArray(o)&&o.forEach(e=>{const o=e.id;if(!o)return;const r="cart-item--"+o,a=document.getElementById(r)?.getAttribute("qty"),d=e.maxVariantLimit;let c=t;(null===c||null!==d&&d<c)&&(c=d);const l=null===c?-1:Number(c);let u;u=a<=l||-1===l?a:l,-1!==n&&(u>n&&(u=n),n&&(n<u?n=0:n-=u)),u!==a&&(s=!0),i.append(`updates[${o}]`,String(u))})}),s&&fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},credentials:"same-origin",body:i.toString()}).then(e=>e.json()).then(e=>{422===e.status&&0===l&&(l++,g(null,e)),p()})}(r),e?.component_ids?n=[...e.component_ids]:e?.id&&n.push(e.id);let a=!1;
1t.forEach(e=>{e.variants?.length&&e.variants.forEach(t=>{null!==t.maxVariantLimit&&""!==t.error&&""!==t.cartLevelError&&(a=!0,n.includes(e.id)?i.push(t.error):i.push(t.cartLevelError))}),null===e.productLevelLimit||""===e.error||""===e.cartLevelError||a||(n.includes(e.id)?i.push(e.error):i.push(e.cartLevelError))})}else i.push(t.errors?t.errors:t.description);throw i}function S(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function w(e){const t=window.shopCurrencyFormat;if(isNaN(e)||!t)return"";const i=parseFloat((e/100).toString()),s=t.includes("amount")&&!t.includes("amount_")||t.includes("amount_with_comma_separator")||t.includes("amount_with_apostrophe_separator")||t.includes("amount_with_space_separator")||t.includes("amount_with_period_and_space_separator")?2:0,n=(e,t=",")=>e.replace(/\B(?=(\d{3})+(?!\d))/g,t);let o=i.toFixed(s);return o=t.includes("amount_with_comma_separator")?n(o.replace(".",","),"."):t.includes("amount_no_decimals_with_comma_separator")?n(parseInt(i).toString(),"."):t.includes("amount_with_apostrophe_separator")?n(o,"'"):t.includes("amount_no_decimals_with_space_separator")?n(parseInt(i).toString()," "):t.includes("amount_with_space_separator")?n(o," "):t.includes("amount_with_period_and_space_separator")?n(o.replace("."," ")," "):t.includes("amount_no_decimals")?parseInt(i).toString():n(o),((e,t)=>t.replace(/{{\s*amount.*?\s*}}/,e))(o,t)}}},e=>{var t;t=6572,e(e.s=t)}]);

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.