1(globalThis.webpackChunk_sv_portlet=globalThis.webpackChunk_sv_portlet||[]).push([[5788],{9821(){sv.i18n.util=sv.i18n.util||{},sv.i18n.util.viewutil=sv.i18n.util.viewutil||{},sv.i18n.util.viewutil.de={selectView:"Ansicht auswählen"},sv.i18n.util.viewutil.en={selectView:"Select view"},sv.i18n.util.viewutil.es={selectView:"Seleccionar vista"},sv.i18n.util.viewutil.fi={selectView:"Valitse näkymä"},sv.i18n.util.viewutil.fr={selectView:"Sélectionner une vue"},sv.i18n.util.viewutil.no={selectView:"Velg visning"},sv.i18n.util.viewutil.sv={selectView:"Välj vy"}},5371(e,t,s){"use strict";s.r(t);s(9564)},9564(e,t,s){"use strict";var i=s(3501),a=s.n(i),r=s(7834),o=s.n(r);s(9821);a().fn.sortableViewLayout=function(){function e(e,t){for(var s=[],i=e.sortable("toArray"),a=0;a<i.length;a++){var r=t.find("#"+i[a]);r.closest(".sv-sortable-view-container").attr("id")===t.attr("id")&&s.push(r.attr("id"))}return s}function t(e,t){var s=t.find(".sv-view-mouseover");e.hasClass("sv-keyboard-selected")?e.removeClass("sv-keyboard-selected").attr("aria-selected","false"):(s.removeClass("sv-keyboard-selected").attr("aria-selected","false"),e.addClass("sv-keyboard-selected").attr("aria-selected","true"))}function s(e){e.find(".sv-view-mouseover").removeClass("sv-keyboard-selected").attr("aria-selected","false")}function i(e,t,s){var i=t.find(".sv-view-mouseover"),a=i.index(e);switch(s){case"up":a>0&&(e.insertBefore(i.eq(a-1)),r(t));break;case"down":a<i.length-1&&(e.insertAfter(i.eq(a+1)),r(t));break;case"first":a>0&&(t.prepend(e),r(t));break;case"last":a<i.length-1&&(t.append(e),r(t))}e[0].focus()}function r(t){var s=t,i=e(t,s).join(",");i=(i=i.replace(/svid|,,/g,"")).replace(/_/g,"."),a().post(s.data("view-container-url")+"&return=none&updateViews=true&viewId="+i)}return this.each(function(){var r,o=a()(this),n=o.attr("id"),l=o.hasClass("sv-horizontal"),c=o.find(".sv-view-mouseover");if((o.hasClass("ui-sortable")&&o.sortable("destroy"),!(c.length<2))&&((r=o).find(".sv-view-mouseover").each(function(){var e=a()(this);e.attr("tabindex")||e.attr("tabindex","0")}),r.off("keydown.sortable").on("keydown.sortable",".sv-view-mouseover",function(e){var o=a()(this),n=r.find(".sv-view-mouseover"),l=n.index(o),c=o.hasClass("sv-keyboard-selected");switch(e.key){case"ArrowUp":e.preventDefault(),c?i(o,r,"up"):l>0&&n.eq(l-1)[0].focus();break;case"ArrowDown":e.preventDefault(),c?i(o,r,"down"):l<n.length-1&&n.eq(l+1)[0].focus();break;case" ":var v=e.target;"INPUT"===v.tagName||"SELECT"===v.tagName||"TEXTAREA"===v.tagName||"BUTTON"===v.tagName||v.hasAttribute("role")&&("button"===v.getAttribute("role")||"checkbox"===v.getAttribute("role")||"radio"===v.getAttribute("role"))||(e.preventDefault(),t(o,r));break;case"Enter":("BUTTON"!==e.target.tagName&&!e.target.hasAttribute("role")||"button"!==e.target.getAttribute("role"))&&(e.preventDefault(),t(o,r));break;case"Escape":r.find(".sv-keyboard-selected").length>0&&(e.preventDefault(),e.stopPropagation(),s(r));break;case"Home":e.preventDefault(),c?i(o,r,"first"):n.first()[0].focus();break;case"End":e.preventDefault(),c?i(o,r,"last"):n.last()[0].focus()}}),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))){var v=o.data("connect-with");o.sortable({containment:!v&&"#"+n,connectWith:!!v&&".sv-sortable-view-container",placeholder:"sv-view-selection-placeholder",forcePlaceholderSize:!0,distance:10,items:".sv-view-mouseover",opacity:.6,stop:function(e,t){t.item.hide(),t.item.show("blind"),s(o)},update:function(t,s){var i=a()(this);i.find(s.item).length>0&&(l?s.item.addClass("sv-horizontal-column"):s.item.removeClass("sv-horizontal-column"));var r=e(i,o).join(",");r=(r=r.replace(/svid|,,/g,"")).replace(/_/g,"."),a().post(o.data("view-container-url")+"&return=none&updateViews=true&viewId="+r),o.find(".sv-sortable-view-container").push(o)}})}})},a()(function(){var e=a()("body");function t(e,t){var s=t.find(".sv-custom-views-list-item");e.hasClass("sv-keyboard-selected")?e.removeClass("sv-keyboard-selected").attr("aria-selected","false"):(s.removeClass("sv-keyboard-selected").attr("aria-selected","false"),e.addClass("sv-keyboard-selected").attr("aria-selected","true"))}function i(e,t,s){var i=t.attr("id").replace("svid","").replace("_","."),a=e.attr("href");return"/"+a.substring(a.indexOf("page=")+5,a.length)+"/"+i+".htm?sv.state="+s+"&sv.url="+i}e.on("click",".sv-view-selector",function(){var e=a()(this),s=e.attr("href"),i=e.attr("id").substr(15),r=a()("#sv-view-selector-dialog-"+i);return r.length>0?r.svDialog("open"):((r=a()("<div/>",{id:"sv-view-selector-dialog-"+i})).on("open:dialog.sv-dialog",function(){var e,s=a()(this),i=s.find(".sv-custom-views-list");i.length&&(i.sortable({containment:s.closest(".sv-dialog"),axis:"y",delay:300}),(e=i).find(".sv-custom-views-list-item").each(function(){var e=a()(this);e.attr("tabindex")||e.attr("tabindex","0")}),e.off("keydown.dialog-sortable").on("keydown.dialog-sortable",".sv-custom-views-list-item",function(s){var i=a()(this),r=e.find(".sv-custom-views-list-item"),o=r.index(i),n=i.hasClass("sv-keyboard-selected");switch(s.key){case"ArrowUp":s.preventDefault(),n?o>0&&(i.insertBefore(r.eq(o-1)),i[0].focus()):o>0&&r.eq(o-1)[0].focus();break;case"ArrowDown":s.preventDefault(),n?o<r.length-1&&(i.insertAfter(r.eq(o+1)),i[0].focus()):o<r.length-1&&r.eq(o+1)[0].focus();break;case" ":var l=s.target;"INPUT"===l.tagName||"SELECT"===l.tagName||"TEXTAREA"===l.tagName||"BUTTON"===l.tagName||l.hasAttribute("role")&&("button"===l.getAttribute("role")||"checkbox"===l.getAttribute("role")||"radio"===l.getAttribute("role"))||(s.preventDefault(),t(i,e));break;case"Enter":("BUTTON"!==s.target.tagName&&!s.target.hasAttribute("role")||"button"!==s.target.getAttribute("role"))&&(s.preventDefault(),t(i,e));break;case"Escape":e.find(".sv-keyboard-selected").length>0&&(s.preventDefault(),s.stopPropagation(),function(e){e.find(".sv-custom-views-list-item").removeClass("sv-keyboard-selected").attr("aria-selected","false")}(e))}}))}),r.svDialog({title:o().i18n.getText("util.viewutil","selectView"),open:!0,url:s,modal:!0,closeButtonLabel:o().i18n.getText("common","close"),onClose:function(){var t=a()("#"+i);if(t.length){var s=t.find("#"+e[0].id);s.length&&s[0].focus()}},buttons:[{text:o().i18n.getText("common","save"),type:"primary",callback:function(){var t=r.find("form");a().post(s,t.serialize(),function(){a().get(o()[i].layoutURL,function(t){var s=a()("#"+i);s.html(t),a()(".sv-sortable-view-container").sortableViewLayout(),r.svDialog("close"),s.find("#"+e[0].id)[0].focus()})})}},{text:o().i18n.getText("common","cancel"),type:"link",callback:function(){r.svDialog("close")}}]})),!1}),e.on("click",".sv-layout-minimize",function(){var e=a()(this),t=e.closest("[id^=svid10_]"),s=i(e,t,"minimized");return a().get(s,function(s){e.closest(".sv-toolbar").siblings().hide(),t.html(s)}),!1}),e.on("click",".sv-layout-restore",function(){var e=a()(this),t=e.closest("[id^=svid10_]"),s=i(e,t,"normal");return a().get(s,function(e){t.html(e).show()}),!1}),e.on("click",".sv-portlet-restore",function(){var e=a()(this),t=e.closest(".pagecontent"),s=t.attr("id").replace("svid","").replace("_","."),i=e.attr("href"),r="/"+i.substring(i.indexOf("page=")+5,i.length)+"/"+s+".htm"+i.substring(i.indexOf("?"),i.length);return a().get(r,function(e){t.html(e).show()}),!1});var r=a()(".sv-sortable-view-container");r.length&&(a().ui&&a().ui.sortable?r.sortableViewLayout():s.e(6420).then(s.bind(s,3843)).then(()=>
1r.sortableViewLayout()))})}}]); 2//# sourceMappingURL=viewUtil.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.