PageSourceSearch

https://www.falkoping.se/sitevision/system-resource/706c47851a9c6e…/js/tellfriend-portlet.js

js falkoping.se collected 2026-10-02 07:00:26 UTC 6,205 bytes, 2 lines download raw bytes

1(globalThis.webpackChunk_sv_portlet=globalThis.webpackChunk_sv_portlet||[]).push([[8009],{9962(t,i,e){"use strict";e(9608)},8615(t,i,e){"use strict";e.r(i);var o=e(3501),n=e.n(o),s=e(7834),a=e.n(s);e(9962);let l,r;function d(){return l&&0!==l.length||(l=n()("<div/>")),l}function p(t){t.preventDefault();var i=d().find("form");n().post(i.attr("action"),i.serialize(),function(t){var i;u(),-1!==t.indexOf('http-equiv="Refresh"')?window.location.href=n()("input[name=redirectURL]").attr("value"):n()(t).find("div#error-messages").length>0?(i=t,l=n()("<div/>").html(i).svDialog({open:!0,title:n()("input[name=windowTitle]").attr("value"),closeButtonLabel:n()("input[name=closeButtonText]").attr("value"),buttons:[{text:n()("input[name=buttonText]").attr("value"),type:"primary",callback:p},{text:n()("input[name=closeButtonText]").attr("value"),type:"link",callback:u}]})):function(t){l=d(),r?r.html(t).svDialog("open"):r=n()("<div/>").html(t).svDialog({open:!0,title:n()("input[name=windowTitle]").attr("value"),closeButtonLabel:n()("input[name=closeButtonText]").attr("value"),buttons:[{text:n()("input[name=closeButtonText]").attr("value"),type:"primary",callback:c}]})}(t)})}function u(){l.svDialog("remove")}function c(){r.svDialog("close")}function h(t){var i=n()("#"+t);l=d(),i.on("click",function(t){t.preventDefault(),l.svDialog({open:!0,url:this.href,title:n()("input[name=windowTitle]").attr("value"),modal:!0,closeButtonLabel:n()("input[name=closeButtonText]").attr("value"),buttons:[{text:n()("input[name=buttonText]").attr("value"),type:"primary",callback:p},{text:n()("input[name=closeButtonText]").attr("value"),type:"link",callback:u}]})})}if(a().tellfriend2&&a().tellfriend2.length)for(let t=0;t<a().tellfriend2.length;t+=1)h(a().tellfriend2[t])},9608(){!function(t,i,e){var o="svDialog",n={cssClasses:{},open:!1,modal:!0,movable:!1,url:void 0,title:"My fancy dialog",closeOnEscape:!0,onClose:null,closeButtonLabel:"Close"};function s(i,e){this.element=i,this.$element=t(i),this.options=t.extend({},n,e),this._defaults=n,this._name=o,this.init()}s.prototype={init:function(){var i,e;this.$dialogWrapper=(i=this.options.modal,e="",i&&(e+='<div class="sv-dialog-container"><div class="sv-dialog-backdrop"></div>'),e+='<div class="sv-dialog" role="dialog" aria-hidden="true" aria-labelledby="sv-dialog-title"><div class="sv-dialog-content"><div class="sv-dialog-header"><button class="sv-dialog-close"><span aria-hidden="true">&times;</span></button><h4 id="sv-dialog-title"></h4></div><div class="sv-dialog-body"></div><div class="sv-dialog-footer"></div></div></div>',i&&(e+="</div>"),t(e)),this.$dialogWrapper.find(".sv-dialog-body").append(this.element),this.options.buttons&&this.setupButtons(),this.bindEvents(),this.options.modal||(this.$dialogWrapper.addClass("sv-dialog-movable"),this.$dialogWrapper.draggable({handle:".sv-dialog-header",containment:"body",distance:10})),this.options.open&&this.open()},open:function(){this.options.url?t.get(this.options.url).done(t.proxy(this.handleRemoteContent,this)):this._open()},handleRemoteContent:function(t){this.$element.html(t),this._open()},_open:function(){this.$dialogWrapper.appendTo("body"),this.setTitle(),this.setCloseButton(),this.setAriaHidden(!1),this.$dialogWrapper.find(".sv-dialog-container").css("height",t(i).height()),this.options.modal?t("body").addClass("sv-dialog-open"):this.positionDialog(),this.$dialogWrapper.show(),this.setFocus(),this.setupFocusTrap(),this.$element.trigger("open:dialog.sv-dialog")},setCloseButton:function(){this.$dialogWrapper.find(".sv-dialog-close").attr("aria-label",this.options.closeButtonLabel)},setTitle:function(){this.$dialogWrapper.find("#sv-dialog-title").html(this.options.title)},setAriaHidden:function(t){(this.options.modal?this.$dialogWrapper.find(".sv-dialog"):this.$dialogWrapper).attr("aria-hidden",t)},positionDialog:function(){var t=this.$dialogWrapper.outerWidth();this.$dialogWrapper.css({position:"fixed",top:"30px",left:"50%",marginLeft:"-"+i.parseInt(t,10)/2+"px"})},setupButtons:function(){t.each(this.options.buttons,t.proxy(function(i,e){var o=t('<button class="sv-dialog-btn" />');switch(o.text(e.text).on("click",e.callback),e.type){case"primary":o.addClass("sv-
1dialog-btn-primary");break;case"link":o.addClass("sv-dialog-btn-link")}o.prependTo(this.$dialogWrapper.find(".sv-dialog-footer"))},this))},setupFocusTrap:function(){var t=this,i=this.$dialogWrapper.find(".sv-dialog-content");this.getFocusableElements=function(){return i.find('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])').filter(":visible").not(":disabled")},i.off("keydown.focustrap").on("keydown.focustrap",function(i){if("Escape"===i.key&&t.options.closeOnEscape)return i.preventDefault(),void t.close();if("Tab"===i.key){var o=t.getFocusableElements();if(0===o.length)return;var n=o.first()[0],s=o.last()[0];i.shiftKey?e.activeElement===n&&(i.preventDefault(),s.focus()):e.activeElement===s&&(i.preventDefault(),n.focus())}})},removeFocusTrap:function(){this.$dialogWrapper&&this.$dialogWrapper.find(".sv-dialog-content").off("keydown.focustrap")},close:function(){this.removeFocusTrap(),this.$dialogWrapper.hide(),this.setAriaHidden(!0),t("body").removeClass("sv-dialog-open"),this.options.onClose&&"function"==typeof this.options.onClose&&this.options.onClose()}
1,remove:function(){t("body").removeClass("sv-dialog-open"),this.removeFocusTrap(),this.$dialogWrapper.remove()},setFocus:function(){var t=this.$element.find("input:not([type=hidden], .svhidden, .sv-hidden, .env-d--none),select");t.length&&t.first().trigger("focus")},enableSubmitButton:function(){this.$dialogWrapper.find("button.sv-dialog-btn-primary").prop("disabled",!1)},disableSubmitButton:function(){this.$dialogWrapper.find("button.sv-dialog-btn-primary").prop("disabled",!0)},bindEvents:function(){this.$dialogWrapper.off("click.sv-dialog.close").on("click.sv-dialog.close",".sv-dialog-close",t.proxy(this.close,this))},setURL:function(t){this.options.url=t}},t.fn[o]=function(i,e){return this.each(function(){var n=t.data(this,"plugin_"+o);n?"string"==typeof i&&n[i](e):t.data(this,"plugin_"+o,new s(this,i))})}}(window.$svjq,window,document)}}]);
2//# sourceMappingURL=tellfriend-portlet.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.