1(self.webpackChunk_sv_portlet=self.webpackChunk_sv_portlet||[]).push([[315],{8479:function(t,i,e){"use strict";e(8496)},7381:function(t,i,e){"use strict";e.r(i);var o=e(7809),n=e.n(o),s=e(6751),a=e.n(s);e(8479);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")}if(a().tellfriend2&&a().tellfriend2.length)for(let t=0;t<a().tellfriend2.length;t+=1)h=a().tellfriend2[t],v=void 0,v=n()("#"+h),l=d(),v.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}]})}));var h,v},8496:function(){!function(t,i,e,o){var n="svDialog",s={cssClasses:{},open:!1,modal:!0,movable:!1,url:void 0,title:"My fancy dialog",closeOnEscape:!0,onClose:null,closeButtonLabel:"Close"};function a(i,e){this.element=i,this.$element=t(i),this.options=t.extend({},s,e),this._defaults=s,this._name=n,this.init()}a.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">×</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[n]=function(i,e){return this.each((function(){var o=t.data(this,"plugin_"+n);o?"string"==typeof i&&o[i](e):t.data(this,"plugin_"+n,new a(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.