PageSourceSearch

https://www.meinekirchenzeitung.at/build/5691.c2f48a0c.js

js meinekirchenzeitung.at collected 2026-10-02 11:14:47 UTC 11,021 bytes, 1 lines download raw bytes

1"use strict";(self.appWebpackChunk=self.appWebpackChunk||[]).push([[5691],{5691:function(e,i,t){t.d(i,{imageEditor:function(){return X}});t(2675),t(9463),t(2259),t(5700),t(2008),t(113),t(3792),t(4782),t(9572),t(8130),t(2637),t(9868),t(3851),t(1278),t(9432),t(6099),t(8781),t(7764),t(3500),t(2953);var a=t(9821),n=t(4600),o=t(2045),r=t(3678),d=t.n(r),s=t(6963),l=t(1471),c=t(4692);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,a)}return t}function m(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?f(Object(t),!0).forEach(function(i){g(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function g(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,i||"default");if("object"!=u(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==u(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var p=null,h=null,b=null,v=null,y=null,x=null,w=!1,k=!1,O=!1,_=!1,T=!1,j=!1,A=!1;function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c("#app-media-image-editor"),a=t.find("[data-image-display-box]"),n=t.find("[data-image-editor-dropzone]");e=e||function(){},i=i||function(){},b?(n.hide(),!1===b.is_stub&&v?(a.children("img").first().one("load",e).one("error",i).attr("src",v).css("max-height","".concat(Math.floor(.6*window.innerHeight),"px")).show(),I(!1),a.css("min-height","")):(a.children("img").first().attr("src",null).hide(),I(!0),e())):(n.show(),a.children("img").first().attr("src",v).hide(),I(!1),a.css("min-height",""),e())}function I(e){var i=c("#app-media-image-editor"),t=i.find("[data-image-loading]"),a=i.find("[data-image-editor-dropzone]"),n=i.find("[data-image-display-box]");e?("0px"===n.css("min-height")&&"0px"!==n.css("height")?n.css("min-height",n.css("height")):"0px"===n.css("min-height")&&"0px"!==a.css("height")&&n.css("min-height",a.css("height")),t.show()):t.hide()}function S(){var e=c("#app-media-image-editor").find("[data-button-rotate]"),i=function(){e.prop("disabled",!1),I(!1)},t=0;e.show().prop("disabled",!b||b.is_stub).off("click").on("click",function(){var a="ccw"===this.dataset.buttonRotate?-90:90;if(e.prop("disabled",!0),I(!0),0===(t+=a)||360===t)return t=0,delete p.rotation,v=b.url_set.XL,I(!1),void C(i);t<0&&(t=270),(p=p||{}).rotation=t,v=d().generate("app.media.main.image.editor_rotate_image",{type:h.imageType,imageId:b.id,rotation:t,cacheToken:y,token:h.accessToken}),C(i)})}function z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=c("#app-media-image-editor"),t=i.find("[data-image-display-box]"),a=i.find("[data-image-focus]"),n=function(e,i){var n=t[0].getBoundingClientRect(),o=Math.max(e,n.left),r=Math.max(i,n.top);return{x:o=o+a.width()>n.right?n.right-a.width():o,y:r=r+a.height()>n.bottom?n.bottom-a.height():r}},o=function(){var e=t.offset(),i=a.offset().top-e.top,n=a.offset().left-e.left;(p=p||{}).focus={focus_x:Math.round((n+a.width()/2)/t.width()*100),focus_y:Math.round((i+a.height()/2)/t.height()*100)}},r=null,d=null;if(a.off("dragstart").off("dragend"),a.show(),!1===e&&b&&Number.isInteger(b.focus_x)&&Number.isInteger(b.focus_y)){var s=t.offset(),l=n(Math.round(b.focus_x/100*t.width())-Math.round(a.width()/2)+s.left,Math.round(b.focus_y/100*t.height())-Math.round(a.height()/2)+s.top);
1a.offset({top:l.y,left:l.x})}else a.css("top","").css("left","");a.on("dragstart",function(e){var i=e.currentTarget.getBoundingClientRect();r=e.clientX-i.x,d=e.clientY-i.y}),a.on("dragend",function(e){var i=n(e.clientX-r,e.clientY-d);a.offset({top:i.y,left:i.x}),o()}),t.on("click",function(e){var i=n(e.clientX-Math.round(a.width()/2),e.clientY-Math.round(a.height()/2));a.offset({top:i.y,left:i.x}),o()})}function M(){var e=c("#app-media-image-editor"),i=e.find("[data-image-editor-caption]"),t=i.children("textarea"),a=e.find("[data-image-editor-copyright]"),n=a.children("input"),o=e.find("[data-image-editor-alt-text]"),r=o.children("input"),d=e.find("[data-image-editor-alt-text-description]");b?(T&&(i.show(),t.val(b.caption).on("change",function(){(p=p||{}).caption=this.value})),j&&(a.show(),n.val(b.copyright).on("change",function(){(p=p||{}).copyright=this.value})),A&&(o.show(),d.show(),r.val(b.alternate_text).on("change",function(){(p=p||{}).alternate_text=this.value}))):(i.hide(),t.off("change"),a.hide(),n.off("change"),o.hide(),r.off("change"),d.hide())}function P(){var e={};e[h.imageType]=[b.id],x=setInterval(function(){a.Ay.single("image-editor-image-state-check",{url:d().generate("app.media.main.image.status",{q:JSON.stringify(e)}),method:"GET"},function(e){e instanceof Object&&"stub"!==e[h.imageType][b.id]&&(clearTimeout(x),"ready"===e[h.imageType][b.id]?a.Ay.single("fetch-image-view",{url:d().generate("app.media.main.image.view",{type:h.imageType,id:b.id,_format:"json"}),method:"GET"},function(e){v=(b=e).url_set.XL,C(function(){w&&z(),O&&S(),F(),L(),E()})}):(o.A.flashmessage("alert",s.A.trans("flashmessage.media.image_upload.error")),c("#app-media-image-editor").foundation("close")))})},3e3)}function E(){var e=c("#app-media-image-editor").find("[data-button-upload]");_&&(b?(e.show(),e.prop("disabled",b.is_stub)):e.hide())}function F(){c("#app-media-image-editor").find("[data-button-save]").prop("disabled",null===b)}function L(){var e=c("#app-media-image-editor"),i=e.find("[data-button-remove-image]");k&&(i.show(),b?i.prop("disabled",!1).off("click").on("click",function(){var i=c("#app-media-image-editor-confirm-remove"),t=new Foundation.Reveal(i);t.open(),i.find(".button.action").off("click").on("click",function(){t.close(),e.foundation("close"),h.onRemoveCallback()})}):i.prop("disabled",!0).off("click"))}function N(){var e=c("#app-media-image-editor");e.find("[data-button-cancel]").on("click",function(){h.onCancelCallback(),e.foundation("close")}),e.find("[data-button-save]").on("click",function(){!function(){var e=c("#app-media-image-editor");if(!b)return void console.debugLog("commitAndClose() triggered without image");if(p instanceof Object&&Object.keys(p).length>0){var i={type:h.imageType,imageId:b.id};h.accessToken&&(i.token=h.accessToken),a.Ay.single("image-editor-commit",{url:d().generate("app.media.main.image.editor",i),method:"POST",data:p},function(){h.onSaveCallback(b.id),e.foundation("close")},function(e,i){"abort"!==i&&o.A.flashmessage("alert",s.A.trans("flashmessage.common.general_ajax_error"))},!0)}else e.foundation("close"),h.onSaveCallback(b.id)}()})}function X(e){e=m(m({},{imageType:null,imageId:null,options:[],onSaveCallback:function(){},onCancelCallback:function(){},onRemoveCallback:function(){},accessToken:null}),e),h=null,p=null,b=null,v=null,y=Math.random().toString(16).slice(2),x=null,w=-1!==e.options.indexOf("focus"),k=-1!==e.options.indexOf("remove"),O=-1!==e.options.indexOf("rotation"),_=-1!==e.options.indexOf("upload"),T=-1!==e.options.indexOf("caption"),j=-1!==e.options.indexOf("copyright"),A=-1!==e.options.indexOf("alternate_text");var i=c("#app-media-image-editor");if(i.length>0&&i.foundation("close").remove(),e.imageType&&0!==e.options.length){if(null===(Number.isInteger(e.imageId)&&e.imageId>0?e.imageId:null)&&-1===e.options.indexOf("upload"))return o.A.flashmessage("alert",s.A.trans("flashmessage.common.general_ajax_error")),void console.debugLog('[ImageEditor] Cannot initialize empty editor when "upload" functionality is not enabled.');h=e;var t={type:e.imageType,imageId:e.imageId,options:e.options||[]};e.accessToken&&(t.token=e.accessToken),a.Ay.single("image-editor-load",{url:d().generate("app.media.main.image.editor",t),method:"GET"},function(e){c("body").append(e.html),c("#app-media-image-editor").on("closed.zf.reveal",function(){clearTimeout(x)}).foundation().foundation("open"),t.imageId&&null!==e.image&&!1===(b=JSON.parse(e.image)).is_stub&&(v=b.url_set.XL),C(function(){b&&(!1===b.is_stub?w&&z():P()),O&&S(),_&&function(){var e=c("#app-media-image-editor"),i=e.find("[data-image-editor-dropzone]"),t=i.children("[data-image-upload-dropzone-progress]").first(),r=new n.A("#app-media-image-editor [data-image-editor-dropzone]",{url:d().generate("app.media.main.image.upload"),parallelUploads:1,maxFilesize:33554432,maxFiles:1,createImageThumbnails:!1,acceptedFiles:"image/png,image/jpeg,image/gif,image/bmp,image/tiff,image/webp",disablePreviews:!0,capture:null,clickable:["#app-media-image-editor [data-image-editor-dropzone]","#app-media-image-editor [data-button-upload]"],autoQueue:!1});r.on("addedfiles",function(e){1===e.length&&!0===e[0].accepted?this.enqueueFile
1(e[0]):this.removeAllFiles()}),r.on("totaluploadprogress",function(e,i){0!==i&&(t.css("visibility","visible"),t.find(".progress-meter").css("width","".concat(e,"%")),t.find(".progress-meter-text").html("".concat(e.toFixed(),"&thinsp;%")))}),r.on("queuecomplete",function(){t.css("visibility","hidden"),t.find(".progress-meter").css("width","0%"),t.find(".progress-meter-text").html(""),this.removeAllFiles()}),r.on("sending",function(e,t,a){a.append("type",h.imageType),0===i.filter(":visible").length&&I(!0)}),r.on("success",function(e,i){I(!1),"success"===e.status&&i.id?(p=null,!1===i.is_stub?a.Ay.single("fetch-image-view",{url:d().generate("app.media.main.image.view",{type:h.imageType,id:i.id,_format:"json"}),method:"GET"},function(e){v=(b=e).url_set.XL,C(function(){w&&z(),O&&S(),F(),L(),E(),M()})}):(b=i,v=null,C(function(){F(),L(),E(),M(),O&&S(),P()}))):o.A.flashmessage("alert",s.A.trans("flashmessage.media.image_upload.error"))}),r.on("error",function(e){!0===e.accepted&&(this.removeAllFiles(),I(!1),o.A.flashmessage("alert",s.A.trans("flashmessage.media.image_upload.error")))}),e.find("[data-image-display-box]").on("dragenter",function(e){"IMG"===e.target.tagName&&e.relatedTarget.classList.contains("imgeditor-img-container")&&(i.addClass("drop-zone-overlay"),i.css("display","flex"))}),i.on("dragexit dragleave drop",function(){b&&(i.hide(),i.removeClass("drop-zone-overlay"))}),E(),(0,l.G1)("[data-image-editor-dropzone]",/image\/(?:jpeg|png|gif|bmp|tiff|webp)/)}(),F(),L(),M(),N()},function(){L(),N()})},function(e,i){"abort"!==i&&o.A.flashmessage("alert",s.A.trans("flashmessage.common.general_ajax_error"))},!0)}else console.debugLog("Initializing image editor failed: `imageType` and `options` must be set.")}}}]);

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.