1"use strict";(self.appWebpackChunk=self.appWebpackChunk||[]).push([[2048,2637],{2048:function(e,a,t){t.d(a,{showExportForm:function(){return u}});t(8706),t(113),t(8598),t(2637),t(6099);var n,i=t(9821),o=t(2045),d=t(3678),s=t.n(d),r=t(6963),c=(t(2062),t(3362),t(4692));var l={init:function(e,a,t,o){i.Ay.single("sortable-images-selection",{url:s().generate("app.media.main.image.sortable_selection",{imageType:t,ownerId:o}),method:"GET"},function(t){(n=c(e)).html(t);var i=n.find("#image-sortable-select").data("selectedItemTextTemplate");n.find("[data-media-id]").on("click",function(){var e=c(this);e.hasClass("selected-image")?e.removeClass("selected-image").find(".selected-image-text").remove():(e.addClass("selected-image"),e.append(i));var t=n.find(".selected-image");a&&a(t.toArray().map(function(e){return e.dataset.mediaId}))})})},getSelectedImageIdList:function(){var e=[];return n.find(".selected-dimg").each(function(){e.push(parseInt(this.dataset.mediaId))}),e}},m=t(4692),f=!1;function g(e,a){var t=m("#data-exchange-export-reveal");t.find("button[data-submit]").on("click",function(){var n=t.find("[data-accordion-item].is-active"),d=t.find("#export_task_plugin");n.length?d.val(n[0].dataset.exportPlugin):d.val(""),i.Ay.single("export-form",{url:s().generate("app.data_exchange.main.export.form",{dataType:e,dataRef:a}),method:"POST",data:t.find("form").serialize()},function(n,i,d){if(201===d.status)switch(t.foundation("close"),n.action){case"forward":window.open(n.data.forward_url);break;case"message":o.A.flashmessage(n.data.message_type,r.A.trans(n.data.message,n.data.message_params||{}),n.data.title?r.A.trans(n.data.title):null,Number.isInteger(n.data.fade)?n.data.fade:5e3);break;case"download":var s=document.createElement("a");s.setAttribute("href","data:".concat(n.data.mimetype,"; charset=").concat(n.data.charset,",").concat(encodeURIComponent(n.data.content))),s.setAttribute("download",n.data.filename),s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s)}else t.html(n).foundation(),g(e,a)},function(){t.foundation("close"),o.A.flashmessage("alert",r.A.trans("flashmessage.common.general_ajax_error"))})}),f=!1,t.find("[data-image-selection-toggle]").on("change",function(){var e=t.find("[data-image-selection-current-count]");if(this.checked)if(m("[data-image-selection-container]").removeClass("hide"),!1===f){var a=m("[data-image-selection-id-list]")[0];l.init("[data-image-selection-container]",function(a){m("[data-image-selection-id-list]").val(a.join(",")),e.html(a.length)},a.dataset.imageSelectionImageType,a.dataset.imageSelectionOwnerId),e.html("0"),f=!0}else e.html("".concat(l.getSelectedImageIdList().length));else m("[data-image-selection-container]").addClass("hide"),e.html(e.data("imageSelectionCurrentCount"))})}function u(e,a){m("#data-exchange-export-reveal").parent().remove(),i.Ay.single("export-form",{url:s().generate("app.data_exchange.main.export.form",{dataType:e,dataRef:a}),method:"GET"},function(t){m("body").append(t),m("#data-exchange-export-reveal").foundation().foundation("open"),g(e,a)},function(){o.A.flashmessage("alert",r.A.trans("flashmessage.common.general_ajax_error"))},!0)}},2087:function(e,a,t){var n=t(34),i=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},2637:function(e,a,t){t(6518)({target:"Number",stat:!0},{isInteger:t(2087)})}}]);
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.