PageSourceSearch

https://surfmore.dk/cdn/shop/t/61/assets/edition.js?v=5808218639669455711788161750

js surfmore.dk collected 2026-10-02 02:13:15 UTC 19,373 bytes, 2 lines download raw bytes

1(()=>{"use strict";var __webpack_modules__={
1"./resources/app.ts":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{__webpack_require__2.r(__webpack_exports__2);var _scripts_components_Consent_Consent__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2("./resources/scripts/components/Consent/Consent.ts"),_scripts_components_MultistoreSwitcher_MultistoreSwitcher__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2("./resources/scripts/components/MultistoreSwitcher/MultistoreSwitcher.ts");customElements.define("multistore-switcher",_scripts_components_MultistoreSwitcher_MultistoreSwitcher__WEBPACK_IMPORTED_MODULE_1__.default);var consent=new _scripts_components_Consent_Consent__WEBPACK_IMPORTED_MODULE_0__.default;consent.init()}),
1"./resources/scripts/components/Consent/Consent.ts":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{default:()=>Consent});function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",(function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}})(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return _typeof(i)=="symbol"?i:i+""}function _toPrimitive(t,r){if(_typeof(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(_typeof(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Consent=(function(){function Consent2(){_classCallCheck(this,Consent2),this.init=this.init.bind(this),this.handleConsentUpdate=this.handleConsentUpdate.bind(this),this.checkConsentBannerInteraction=this.checkConsentBannerInteraction.bind(this),this.gtag=this.gtag.bind(this),this.recallConsent=this.recallConsent.bind(this)}return _createClass(Consent2,[{key:"init",value:(function(){var _init=_asyncToGenerator(_regenerator().m(function _callee(){var _this=this;return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],function(error){if(error){console.error("Error loading features: ",error);return}console.log("Consent tracking API loaded"),_this.initConsentComponent()});case 1:return _context.a(2)}},_callee)}));
1function init(){return _init.apply(this,arguments)}return init})()},{key:"initConsentComponent",value:(function(){var _initConsentComponent=_asyncToGenerator(_regenerator().m(function _callee3(){var _this2=this,recallConsentElement;return _regenerator().w(function(_context3){for(;;)switch(_context3.n){case 0:window.dataLayer=window.dataLayer||[],document.addEventListener("visitorConsentCollected",_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:_this2.handleConsentUpdate("update");case 1:return _context2.a(2)}},_callee2)}))),recallConsentElement=document.getElementById("recall-consent"),recallConsentElement&&recallConsentElement.addEventListener("click",function(event){event.preventDefault(),_this2.recallConsent()});case 1:return _context3.a(2)}},_callee3)}));function initConsentComponent(){return _initConsentComponent.apply(this,arguments)}return initConsentComponent})()},{key:"handleConsentUpdate",value:(function(){var _handleConsentUpdate=_asyncToGenerator(_regenerator().m(function _callee4(state){var visitorConsent,consent;return _regenerator().w(function(_context4){for(;;)switch(_context4.n){case 0:return _context4.n=1,window.Shopify.customerPrivacy.currentVisitorConsent();case 1:visitorConsent=_context4.v,consent={functionality_storage:"granted",analytics_storage:visitorConsent.analytics==="yes"?"granted":"denied",personalization_storage:visitorConsent.analytics==="yes"?"granted":"denied",ad_storage:visitorConsent.marketing==="yes"?"granted":"denied",ad_user_data:visitorConsent.marketing==="yes"?"granted":"denied",ad_personalization:visitorConsent.marketing==="yes"?"granted":"denied",wait_for_update:3e3},this.gtag("consent",state,consent),localStorage.setItem("consentSettings",JSON.stringify(consent));case 2:return _context4.a(2)}},_callee4,this)}));function handleConsentUpdate(_x){return _handleConsentUpdate.apply(this,arguments)}return handleConsentUpdate})()},{key:"checkConsentBannerInteraction",value:(function(){var _checkConsentBannerInteraction=_asyncToGenerator(_regenerator().m(function _callee5(){var visitorConsent;return _regenerator().w(function(_context5){for(;;)switch(_context5.n){case 0:return _context5.n=1,window.Shopify.customerPrivacy.currentVisitorConsent();case 1:if(visitorConsent=_context5.v,!(visitorConsent.preferences===""&&visitorConsent.analytics===""&&visitorConsent.marketing==="")){_context5.n=2;break}return _context5.a(2,!1);case 2:return _context5.a(2,!0)}},_callee5)}));function checkConsentBannerInteraction(){return _checkConsentBannerInteraction.apply(this,arguments)}return checkConsentBannerInteraction})()},{key:"gtag",value:function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];window.dataLayer.push(arguments)}},{key:"recallConsent",value:(function(){var _recallConsent=_asyncToGenerator(_regenerator().m(function _callee6(){return _regenerator().w(function(_context6){for(;;)switch(_context6.n){case 0:window.privacyBanner.showPreferences();case 1:return _context6.a(2)}},_callee6)}));function recallConsent(){return _recallConsent.apply(this,arguments)}return recallConsent})()}])})()}),
vendor: 5,114 bytes, line 1
1"./resources/scripts/components/MultistoreSwitcher/MultistoreSwitcher.ts":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{__webpack_require__2.r(__webpack_exports__2),__webpack_require__2.d(__webpack_exports__2,{default:()=>MultistoreSwitcher});function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return _typeof(i)=="symbol"?i:i+""}function _toPrimitive(t,r){if(_typeof(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(_typeof(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _possibleConstructorReturn(t,e){if(e&&(_typeof(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _wrapNativeSuper(t){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(t2){if(t2===null||!_isNativeFunction(t2))return t2;if(typeof t2!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(t2))return r.get(t2);r.set(t2,Wrapper)}function Wrapper(){return _construct(t2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t2)},_wrapNativeSuper(t)}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!t})()}function _isNativeFunction(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t2,e2){return t2.__proto__=e2,t2},_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2)},_getPrototypeOf(t)}var MultistoreSwitcher=(function(_HTMLElement){function MultistoreSwitcher2(){var _this;return _classCallCheck(this,MultistoreSwitcher2),_this=_callSuper(this,MultistoreSwitcher2),_this.handleDocumentClick=_this.handleDocumentClick.bind(_this),_this.handleSwitchClick=_this.handleSwitchClick.bind(_this),_this}return _inherits(MultistoreSwitcher2,_HTMLElement),_createClass(MultistoreSwitcher2,[{key:"connectedCallback",value:function(){this.addEventListener("click",this.handleSwitchClick),document.addEventListener("click",this.handleDocumentClick)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this.handleSwitchClick),document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleSwitchClick",value:function(event){var target=event.target,button=target.closest(".language-switcher-button"),switchBtn=target.closest(".switcher-btn");button&&(event.preventDefault(),event.stopPropagation(),this.toggleDropdown(button)),switchBtn&&(event.preventDefault(),event.stopPropagation(),this.submitLanguageForm(switchBtn))}},{key:"handleDocumentClick",value:function(event){var target=event.target;this.contains(target)||this.closeAllDropdowns()}},{key:"toggleDropdown",value:function(button){var switcher=button.closest(".language-switcher");if(switcher){var dropdown=switcher.querySelector(".language-dropdown-menu");if(dropdown){var isHidden=dropdown.classList.contains("tw:hidden");
1button.setAttribute("aria-expanded",String(isHidden)),dropdown.classList.toggle("tw:hidden"),this.closeOtherDropdowns(switcher)}}}},{key:"closeAllDropdowns",value:function(){this.querySelectorAll(".language-switcher").forEach(function(switcher){var button=switcher.querySelector(".language-switcher-button"),dropdown=switcher.querySelector(".language-dropdown-menu");button&&dropdown&&(button.setAttribute("aria-expanded","false"),dropdown.classList.add("tw:hidden"))})}},{key:"closeOtherDropdowns",value:function(currentSwitcher){this.querySelectorAll(".language-switcher").forEach(function(switcher){if(switcher!==currentSwitcher){var button=switcher.querySelector(".language-switcher-button"),dropdown=switcher.querySelector(".language-dropdown-menu");button&&dropdown&&(button.setAttribute("aria-expanded","false"),dropdown.classList.add("tw:hidden"))}})}},{key:"submitLanguageForm",value:function(button){var countryCode=button.getAttribute("data-country-code"),languageCode=button.getAttribute("data-language-code");if(countryCode&&languageCode){var form=document.createElement("form");form.hidden=!0,form.method="POST",form.action="/localization";var methodInput=document.createElement("input");methodInput.name="_method",methodInput.value="PUT";var countryInput=document.createElement("input");countryInput.name="country_code",countryInput.value=countryCode;var languageInput=document.createElement("input");languageInput.name="language_code",languageInput.value=languageCode,form.appendChild(methodInput),form.appendChild(countryInput),form.appendChild(languageInput),document.body.appendChild(form),form.submit()}}}])})(_wrapNativeSuper(HTMLElement))}),
1"./resources/styles/app.css":((__unused_webpack_module,__webpack_exports__2,__webpack_require__2)=>{__webpack_require__2.r(__webpack_exports__2)})
1},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},(()=>{var installedChunks={"/shopify-theme/assets/edition":0,"shopify-theme/assets/edition":0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunksurfmore_dk=self.webpackChunksurfmore_dk||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})(),__webpack_require__.O(void 0,["shopify-theme/assets/edition"],()=>__webpack_require__("./resources/app.ts"));var __webpack_exports__=__webpack_require__.O(void 0,["shopify-theme/assets/edition"],()=>__webpack_require__("./resources/styles/app.css"));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
2//# sourceMappingURL=/cdn/shop/t/61/assets/edition.js.map?v=5808218639669455711788161750

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.