PageSourceSearch

https://www.muehlenapo-gifhorn.de/legacy-build/448.a1400318.js

js muehlenapo-gifhorn.de collected 2026-10-07 05:12:25 UTC 3,995 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2681a17e-7742-4e45-814f-9c7d68a4cd7f",e._sentryDebugIdIdentifier="sentry-dbid-2681a17e-7742-4e45-814f-9c7d68a4cd7f")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"v276.0-0-gf58f8bf"};(globalThis.webpackChunk||=[]).push([[448],{1448(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2891),_lib_cart__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5427),_lib_thumbnail_creation__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7077);const __WEBPACK_DEFAULT_EXPORT__=class extends _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__.xI{static values={id:Number,pzn:String,addToCartUrl:String,cartUrl:String};static targets=["button","quantity","fileUploadImages","thumbnailCanvas","sessionStorageImage"];connect(){this.hasSessionStorageImageTarget&&(this.sessionStorageImageTarget.src=sessionStorage.getItem(`cartEntryMedia${this.idValue}`))}changeQuantity(event){event.preventDefault();const changeQuantityButton=event.currentTarget,minQuantity=Number(this.quantityTarget.getAttribute("min")),maxQuantity=Number(this.quantityTarget.getAttribute("max")),changeType=changeQuantityButton.getAttribute("data-type"),currentValue=Number(this.quantityTarget.value);"decrease"===changeType&&currentValue>minQuantity?this.quantityTarget.value=currentValue-1:"increase"===changeType&&currentValue<maxQuantity&&(this.quantityTarget.value=currentValue+1)}add(event){event.preventDefault();let recipeData=null;if(this.hasFileUploadImagesTarget){this.fileUploadImagesTarget.querySelectorAll('input[type="hidden"]').forEach(input=>{""!==input.value&&(recipeData=input.value)})}const body={pzn:this.pznValue,quantity:parseInt(this.quantityTarget.value,10),recipeData};_lib_cart__WEBPACK_IMPORTED_MODULE_1__.A.addToCart(this.addToCartUrlValue,body,async response=>{if(!response.ok){if(_lib_cart__WEBPACK_IMPORTED_MODULE_1__.A.showError(await response.text()),422===response.status)return;throw new Error("addToCart was not successful")}const newId=await response.text();recipeData?.startsWith("data:image/")&&(0,_lib_thumbnail_creation__WEBPACK_IMPORTED_MODULE_2__.A)(this.thumbnailCanvasTarget,`cartEntryMedia${newId}`,recipeData),this.buttonTarget.blur(),this.buttonTarget.classList.add("success"),setTimeout(()=>{this.buttonTarget.classList.remove("success")},_lib_cart__WEBPACK_IMPORTED_MODULE_1__.A.timeoutDuration),_lib_cart__WEBPACK_IMPORTED_MODULE_1__.A.showAddedAlert("product",this.cartUrlValue),_lib_cart__WEBPACK_IMPORTED_MODULE_1__.A.modifyCount(body.quantity)})}};__webpack_require__.d(__webpack_exports__,["default",0,__WEBPACK_DEFAULT_EXPORT__])},7077(__unused_webpack_module,__webpack_exports__,__webpack_require__){function __WEBPACK_DEFAULT_EXPORT__(thumbnailCanvas,sessionStorageKey,recipeData){const thumbnail=new Image;thumbnail.onload=()=>{if(thumbnail.width===thumbnail.height)thumbnailCanvas.getContext("2d").drawImage(thumbnail,0,0,thumbnailCanvas.width,thumbnailCanvas.height);else{const minVal=Math.min(thumbnail.width,thumbnail.height);let sx=0,sy=(thumbnail.height-minVal)/2;thumbnail.width>thumbnail.height&&(sx=(thumbnail.width-minVal)/2,sy=0),thumbnailCanvas.getContext("2d").drawImage(thumbnail,sx,sy,minVal,minVal,0,0,thumbnailCanvas.width,thumbnailCanvas.height)}const thumbnailImageData=thumbnailCanvas.toDataURL("image/jpeg");try{sessionStorage.setItem(sessionStorageKey,thumbnailImageData)}catch(err){console.error(err)}},thumbnail.src=recipeData}__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__}),__webpack_require__.dn(__WEBPACK_DEFAULT_EXPORT__)}}]);
2//# sourceMappingURL=448.a1400318.js.map

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.