PageSourceSearch

https://www.nisioptics.at/theme/f389b6939f1f359e95dbb5713f1704db/j…/neti-next-store-pickup.js?1791360191

js nisioptics.at collected 2026-10-07 15:26:40 UTC 7,115 bytes, 1 lines download raw bytes

1(()=>{var e={169:()=>{if(void 0===window.focusHandler){let e=()=>{};window.focusHandler={saveFocusState:e,resumeFocusState:e,saveFocusStatePersistent:e,resumeFocusStatePersistent:e,setFocus:e}}},652:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});class i{static #e=this.defaultValue={latestSelectedStore:null,salesChannelStores:{},firstVisit:!0}}},870:(e,t,r)=>{"use strict";r(169),r(868);var i=r(452),n=r(652);class o extends window.PluginBaseClass{init(){this.isLoading=!1,this.registerEventListeners(),this.loadCurrentStoreSelection(),this.openOnFirstVisit()}registerEventListeners(){window.PluginManager.getPluginInstances("NetiStoreSearch").forEach(e=>{e.$emitter.subscribe("onStoreSelected",this.updateWidget.bind(this))})}loadCurrentStoreSelection(){fetch(NetiStorePickup.router.getStoreSelectWidgetUrl,{method:"POST",body:[]}).then(e=>e.text()).then(e=>{{let{selectedStore:t,html:r}=JSON.parse(e);this.el.querySelectorAll(".selected-store-details").forEach(e=>{e.innerHTML=this.generateWidgetContent(t,r)}),this.el.querySelectorAll("[data-store-name]").forEach(e=>{e.innerHTML=this.generateWidgetLabel(t,r)}),this.el.querySelectorAll('[data-store-selection-status="succeeded"]').forEach(e=>{e.style.display=t?"block":"none"}),this.el.querySelectorAll('[data-store-selection-status="missing"]').forEach(e=>{e.style.display=t?"none":"block"}),this.$emitter.publish("onWidgetUpdate",{store:t,html:r.content})}})}openOnFirstVisit(){if(!NetiStorePickup.config.storePickup.openOnFirstVisit)return;let e=JSON.parse(i.A.getItem("neti-store-pickup-store-id")),t=window.PluginManager.getPluginInstances("NetiStoreSearch")[0];!1===e&&(e=n.A.defaultValue),!0===e.firstVisit&&t&&(t.openStoreSelection(),e.firstVisit=!1,i.A.setItem("neti-store-pickup-store-id",JSON.stringify(e)))}updateWidget(e){let{storeId:t}=e.detail;if(null===t){this.el.querySelectorAll('[data-store-selection-status="succeeded"]').forEach(e=>{e.style.display="none"}),this.el.querySelectorAll('[data-store-selection-status="missing"]').forEach(e=>{e.style.display="block"});return}this.loadCurrentStoreSelection()}generateWidgetContent(e,t){return t}generateWidgetLabel(e){return e?e.translated.label:""}}class s extends window.PluginBaseClass{init(){this.forceShippingMethodChange=this.el.querySelector('input[name="forcePickupShippingMethod"]'),this.buyButton=this.el.querySelector("button.btn-buy"),this.quantitySelect=this.el.querySelector("input.quantity-selector-group-input"),this.hint=this.el.querySelector("#pickup-hint-please-select-store"),this.registerEventListeners()}registerEventListeners(){this.buyButton&&this.buyButton.addEventListener("click",this.onBuyButton.bind(this))}onBuyButton(e){if(!this.forceShippingMethodChange||"0"===this.forceShippingMethodChange.value){Object.prototype.hasOwnProperty.call(this.quantitySelect.dataset,"soldOut")&&(this.hint.style.display="block",e.preventDefault());return}e.preventDefault();let t=this;fetch(NetiStorePickup.router.setPickupShippingMethod).then(e=>e.text()).then(()=>{this.hint.style.display="none",t.forceShippingMethodChange.value="0",t.buyButton.click(),setTimeout(()=>{t.forceShippingMethodChange.value="1"},500)})}}window.PluginManager.register("NetiStoreSelect",o,"html"),window.PluginManager.register("productDetailPageBuyProductForm",s,"html"),r(919)},919:(e,t,r)=>{window.PluginManager.register("NetiCollectionDatePicker",()=>r.e(53713).then(r.bind(r,713)),"[data-neti-collection-date-picker]")},868:(e,t,r)=>{window.PluginManager.register("NetiStoreSearch",()=>r.e(51701).then(r.bind(r,701)),"[data-neti-store-search]")},452:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});class i{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,r){if(null==e)throw Error("You must specify a key to set a cookie");let i=new Date;i.setTime(i.getTime()+864e5*r);let n="";"https:"===location.protocol&&(n="secure"),document.cookie=`${e}=${t};expires=${i.toUTCString()};path=/;sameSite=lax;${n}`}static getItem(e){if(!e)return!1;let t=e+"=",r=document.cookie.split(";");for(let e=0;e<r.length;e++){let i=r[e];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return!1}static removeItem(e){document.cookie=`${e}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}r.m=e,r.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,i)=>(r.f[i](e,t),t),[])),r.u=e=>"./js/neti-next-store-pickup/"+({51701:"neti-next-store-pickup.store-search.plugin",53713:"neti-next-store-pickup.collection-date-picker.plugin"})[e]+"."+({51701:"b997a6",53713:"b1705e"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={};r.l=(t,i,n,o)=>{if(e[t]){e[t].push(i);return}if(void 0!==n)for(var s,a,l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==t){s=c;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=t),e[t]=[i];var d=(r,i)=>{s.onerror=s.onload=null,clearTimeout(h);var n=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach(e=>e(i)),r)return r(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{r.g.importScripts&&(e=r.g.location+"");var e,t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../../"})(),(()=>{var e={59974:0};r.f.j=(t,i)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)i.push(n[2]);else{var o=new Promise((r,i)=>n=e[t]=[r,i]);i.push(n[2]=o);var s=r.p+r.u(t),a=Error();r.l(s,i=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,n[1](a)}},"chunk-"+t,t)}}};var t=(t,i)=>{var n,o,[s,a,l]=i,u=0;if(s.some(t=>0!==e[t])){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);l&&l(r)}for(t&&t(i);u<s.length;u++)o=s[u],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},i=self.webpackChunk=self.webpackChunk||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),r(870)})();

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.