vendor: 9,613 bytes, line 1
1!function(t,e){"use strict";"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery"),require("bootstrap")):"function"==typeof define&&define.amd?define("bootstrap-dialog",["jquery","bootstrap"],e):t.BootstrapDialog=e(t.jQuery)}(this,function(s){"use strict";function e(t,e){if(/4\.1\.\d+/.test(s.fn.modal.Constructor.VERSION))return new o(t,e);o.call(this,t,e)}var o=s.fn.modal.Constructor;e.getModalVersion=function(){return void 0===s.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test(s.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test(s.fn.modal.Constructor.VERSION)?"v3.3":/4\.\d\.\d+/.test(s.fn.modal.Constructor.VERSION)?"v4.1":"v3.3.4"},e.ORIGINAL_BODY_PADDING=parseInt(s("body").css("padding-right")||0,10),(e.METHODS_TO_OVERRIDE={})["v3.1"]={},e.METHODS_TO_OVERRIDE["v3.2"]={hide:function(t){t&&t.preventDefault(),t=s.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())}},e.METHODS_TO_OVERRIDE["v3.3"]={setScrollbar:function(){var t=e.ORIGINAL_BODY_PADDING;this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},resetScrollbar:function(){0===this.getGlobalOpenedDialogs().length&&this.$body.css("padding-right",e.ORIGINAL_BODY_PADDING)},hideModal:function(){this.$element.hide(),this.backdrop(s.proxy(function(){0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")},this))}},e.METHODS_TO_OVERRIDE["v3.3.4"]=s.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.METHODS_TO_OVERRIDE["v4.1"]=s.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.prototype={constructor:e,getGlobalOpenedDialogs:function(){var o=[];return s.each(d.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&o.push(e)}),o}},e.prototype=s.extend(e.prototype,o.prototype,e.METHODS_TO_OVERRIDE[e.getModalVersion()]);var d=function(t){this.defaultOptions=s.extend(!0,{id:d.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},d.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(t),this.holdThisInstance()};return d.BootstrapDialogModal=e,d.NAMESPACE="bootstrap-dialog",d.TYPE_DEFAULT="type-default",d.TYPE_INFO="type-info",d.TYPE_PRIMARY="type-primary",d.TYPE_SECONDARY="type-secondary",d.TYPE_SUCCESS="type-success",d.TYPE_WARNING="type-warning",d.TYPE_DANGER="type-danger",d.TYPE_DARK="type-dark",d.TYPE_LIGHT="type-light",d.DEFAULT_TEXTS={},d.DEFAULT_TEXTS[d.TYPE_DEFAULT]="Default",d.DEFAULT_TEXTS[d.TYPE_INFO]="Information",d.DEFAULT_TEXTS[d.TYPE_PRIMARY]="Primary",d.DEFAULT_TEXTS[d.TYPE_SECONDARY]="Secondary",d.DEFAULT_TEXTS[d.TYPE_SUCCESS]="Success",d.DEFAULT_TEXTS[d.TYPE_WARNING]="Warning",d.DEFAULT_TEXTS[d.TYPE_DANGER]="Danger",d.DEFAULT_TEXTS[d.TYPE_DARK]="Dark",d.DEFAULT_TEXTS[d.TYPE_LIGHT]="Light",d.DEFAULT_TEXTS.OK="OK",d.DEFAULT_TEXTS.CANCEL="Cancel",d.DEFAULT_TEXTS.CONFIRM="Confirmation",d.SIZE_NORMAL="size-normal",d.SIZE_SMALL="size-small",d.SIZE_WIDE="size-wide",d.SIZE_EXTRAWIDE="size-extrawide",d.SIZE_LARGE="size-large",d.BUTTON_SIZES={},d.BUTTON_SIZES[d.SIZE_NORMAL]="",d.BUTTON_SIZES[d.SIZE_SMALL]="btn-small",d.BUTTON_SIZES[d.SIZE_WIDE]="btn-block",d.BUTTON_SIZES[d.SIZE_LARGE]="btn-lg",d.ICON_SPINNER="glyphicon glyphicon-asterisk",d.BUTTONS_ORDER_CANCEL_OK="btns-order-cancel-ok",d.BUTTONS_ORDER_OK_CANCEL="btns-order-ok-cancel",d.defaultOptions={type:d.TYPE_PRIMARY,size:d.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!1,closeByKeyboard:!0,closeIcon:"×",spinicon:d.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!0,description:"",tabindex:-1,btnsOrder:d.BUTTONS_ORDER_CANCEL_OK},d.configDefaultOptions=function(t){d.defaultOptions=s.extend(!0,d.defaultOptions,t)},d.dialogs={},d.openAll=function(){s.each(d.dialogs,function(t,e){e.open()})},d.closeAll=function(){s.each(d.dialogs,function(t,e){e.close()})},d.getDialog=function(t){var e=null;return void 0!==d.dialogs[t]&&(e=d.dialogs[t]),e},d.setDialog=function(t){return d.dialogs[t.getId()]=t},d.addDialog=function(t){return d.setDialog(t)},d.moveFocus=function(){var o=null;s.each(d.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&(o=e)}),null!==o&&o.getModal().focus()},d.METHODS_TO_OVERRIDE={},d.METHODS_TO_OVERRIDE["v3.1"]={handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){t.target===this&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},updateZIndex:function(){var o,t,e;return this.isOpened()&&(o=0,s.each(d.dialogs,function(t,e){e.isRealized()&&e.isOpened()&&o++}),t=this.getModal(),e=this.getModalBackdrop(t),t.css("z-index",1050+20*(o-1)),e.css("z-index",1040+20*(o-1))),this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},d.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:d.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:d.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:d.METHODS_TO_OVERRIDE["v3.1"].open},d.METHODS_TO_OVERRIDE["v3.3"]={},d.METHODS_TO_OVERRIDE["v3.3.4"]=s.extend({},d.METHODS_TO_OVERRIDE["v3.1"]),d.METHODS_TO_OVERRIDE["v4.0"]={getModalBackdrop:function(t){return s(t.data("bs.modal")._backdrop)},handleModalBackdropEvent:d.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:d.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:d.METHODS_TO_OVERRIDE["v3.1"].open,getModalForBootstrapDialogModal:function(){return this.getModal().get(0)}},d.METHODS_TO_OVERRIDE["v4.1"]={getModalBackdrop:function(t){return s(t.data("bs.modal")._backdrop)},handleModalBackdropEvent:d.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:d.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:d.METHODS_TO_OVERRIDE["v3.1"].open,getModalForBootstrapDialogModal:function(){return this.getModal().get(0)}},d.prototype={constructor:d,initOptions:function(t){return this.options=s.extend(!0,this.defaultOptions,t),this},holdThisInstance:function(){return d.addDialog(this),this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var t=s('<div class="modal" role="dialog" aria-hidden="true"></div>');return t.prop("id",this.getId()),t.attr("aria-labelledby",this.getId()+"_title"),t},getModal:function(){return this.$modal},setModal:function(t){return this.$modal=t,this},getModalBackdrop:function(t){return t.data("bs.modal").$backdrop},getModalForBootstrapDialogModal:function(){return this.getModal()},createModalDialog:function(){return s('<div class="modal-dialog"></div>')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(t){return this.$modalDialog=t,this},createModalContent:function(){return s('<div class="modal-content"></div>')},getModalContent:function(){return this.$modalContent},setModalContent:function(t){return this.$modalContent=t,this},createModalHeader:function(){return s('<div class="modal-header"></div>')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(t){return this.$modalHeader=t,this},createModalBody:function(){return s('<div class="modal-body"></div>')},getModalBody:function(){return this.$modalBody},setModalBody:function(t){return this.$modalBody=t,this},createModalFooter:function(){return s('<div class="modal-footer"></div>')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(t){return this.$modalFooter=t,this},createDynamicContent:function(t){var e=null;return"string"==typeof(e="function"==typeof t?t.call(t,this):t)&&(e=this.formatStringContent(e)),e},formatStringContent:function(t){return this.options.nl2br?t.replace(/\r\n/g,"<br />").replace(/[\r\n]/g,"<br />"):t},setData:function(t,e){return this.options.data[t]=e,this},getData:function(t){return this.options.data[t]},setId:function(t){return this.options.id=t,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(t){return this.options.type=t,this.updateType(),this},updateType:function(){var t;return this.isRealized()&&(t=[d.TYPE_DEFAULT,d.TYPE_INFO,d.TYPE_PRIMARY,d.TYPE_SECONDARY,d.TYPE_SUCCESS,d.TYPE_WARNING,d.TYPE_DARK,d.TYPE_LIGHT,d.TYPE_DANGER],this.getModal().removeClass(t.join(" ")).addClass(this.getType())),this},getSize:function(){return this.options.size},setSize:function(t){return this.options.size=t,this.updateSize(),this},updateSize:function(){var a;return this.isRealized()&&((a=this).getModal().removeClass(d.SIZE_NORMAL).removeClass(d.SIZE_SMALL).removeClass(d.SIZE_WIDE).removeClass(d.SIZE_EXTRAWIDE).removeClass(d.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.get
1Size()===d.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===d.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),this.getModalDialog().removeClass("modal-xl"),this.getSize()===d.SIZE_EXTRAWIDE&&this.getModalDialog().addClass("modal-xl"),this.getModalDialog().removeClass("modal-full"),this.getSize()===d.SIZE_LARGE&&this.getModalDialog().addClass("modal-full"),s.each(this.options.buttons,function(t,e){var o=a.getButton(e.id),n=["btn-lg","btn-sm","btn-sm"],i=!1;"string"==typeof e.cssClass&&(e=e.cssClass.split(" "),s.each(e,function(t,e){-1!==s.inArray(e,n)&&(i=!0)})),i||(o.removeClass(n.join(" ")),o.addClass(a.getButtonSize()))})),this},getCssClass:function(){return this.options.cssClass},setCssClass:function(t){return this.options.cssClass=t,this},getTitle:function(){return this.options.title},setTitle:function(t){return this.options.title=t,this.updateTitle(),this},updateTitle:function(){var t;return this.isRealized()&&(t=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText(),this.getModalHeader().find("."+this.getNamespace("title")).html("").append(t).prop("id",this.getId()+"_title")),this},getMessage:function(){return this.options.message},setMessage:function(t){return this.options.message=t,this.updateMessage(),this},updateMessage:function(){var t;return this.isRealized()&&(t=this.createDynamicContent(this.getMessage()),this.getModalBody().find("."+this.getNamespace("message")).html("").append(t)),this},isClosable:function(){return this.options.closable},setClosable:function(t){return this.options.closable=t,this.updateClosable(),this},setCloseByBackdrop:function(t){return this.options.closeByBackdrop=t,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(t){return this.options.closeByKeyboard=t,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},isAnimate:function(){return this.options.animate},setAnimate:function(t){return this.options.animate=t,this},updateAnimate:function(){return this.isRealized()&&this.getModal().toggleClass("fade",this.isAnimate()),this},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(t){return this.options.spinicon=t,this},addButton:function(t){return this.options.buttons.push(t),this},addButtons:function(t){var o=this;return s.each(t,function(t,e){o.addButton(e)}),this},getButtons:function(){return this.options.buttons},setButtons:function(t){return this.options.buttons=t,this.updateButtons(),this},getButton:function(t){return void 0!==this.indexedButtons[t]?this.indexedButtons[t]:null},getButtonSize:function(){return void 0!==d.BUTTON_SIZES[this.getSize()]?d.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(0===this.getButtons().length?this.getModalFooter().hide():this.getModalFooter().show().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(t){this.options.autodestroy=t},getDescription:function(){return this.options.description},setDescription:function(t){return this.options.description=t,this},setTabindex:function(t){return this.options.tabindex=t,this},getTabindex:function(){return this.options.tabindex},updateTabindex:function(){return this.isRealized()&&this.getModal().attr("tabindex",this.getTabindex()),this},getDefaultText:function(){return d.DEFAULT_TEXTS[this.getType()]},getNamespace:function(t){return d.NAMESPACE+"-"+t},createHeaderContent:function(){var t=s("<div></div>");return t.addClass(this.getNamespace("header")),t.append(this.createTitleContent()),t.prepend(this.createCloseButton()),t},createTitleContent:function(){var t=s("<div></div>");return t.addClass(this.getNamespace("title")),t},createCloseButton:function(){var t=s("<div></div>");t.addClass(this.getNamespace("close-button"));var e=s('<button class="close" aria-label="close"></button>');return e.append(this.options.closeIcon),t.append(e),t.on("click",{dialog:this},function(t){t.data.dialog.close()}),t},createBodyContent:function(){var t=s("<div></div>");return t.addClass(this.getNamespace("body")),t.append(this.createMessageContent()),t},createMessageContent:function(){var t=s("<div></div>");return t.addClass(this.getNamespace("message")),t},createFooterContent:function(){var t=s("<div></div>");return t.addClass(this.getNamespace("footer")),t},createFooterButtons:function(){var n=this,i=s("<div></div>");return i.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},s.each(this.options.buttons,function(t,e){e.id||(e.id=d.newGuid());var o=n.createButton(e);n.indexedButtons[e.id]=o,i.append(o)}),i},createButton:function(t){var o=s('<button class="btn"></button>');return o.prop("id",t.id),o.data("button",t),void 0!==t.icon&&""!==s.trim(t.icon)&&o.append(this.createButtonIcon(t.icon)),void 0!==t.label&&o.append(t.label),void 0!==t.title&&o.attr("title",t.title),void 0!==t.cssClass&&""!==s.trim(t.cssClass)?o.addClass(t.cssClass):o.addClass("btn-secondary"),"object"==typeof t.data&&t.data.constructor==={}.constructor&&s.each(t.data,function(t,e){o.attr("data-"+t,e)}
vendor: 7,710 bytes, line 1
1),void 0!==t.hotkey&&(this.registeredButtonHotkeys[t.hotkey]=o),o.on("click",{dialog:this,$button:o,button:t},function(t){var e=t.data.dialog,o=t.data.$button,n=o.data("button");if(n.autospin&&o.toggleSpin(!0),"function"==typeof n.action)return n.action.call(o,e,t)}),this.enhanceButton(o),void 0!==t.enabled&&o.toggleEnable(t.enabled),o},enhanceButton:function(n){return n.dialog=this,n.toggleEnable=function(t){return void 0!==t?this.prop("disabled",!t).toggleClass("disabled",!t):this.prop("disabled",!this.prop("disabled")),this},n.enable=function(){return this.toggleEnable(!0),this},n.disable=function(){return this.toggleEnable(!1),this},n.toggleSpin=function(t){var e=this.dialog,o=this.find("."+e.getNamespace("button-icon"));return void 0===t&&(t=!(0<n.find(".icon-spin").length)),t?(o.hide(),n.prepend(e.createButtonIcon(e.getSpinicon()).addClass("icon-spin"))):(o.show(),n.find(".icon-spin").remove()),this},n.spin=function(){return this.toggleSpin(!0),this},n.stopSpin=function(){return this.toggleSpin(!1),this},this},createButtonIcon:function(t){var e=s("<span></span>");return e.addClass(this.getNamespace("button-icon")).addClass(t),e},enableButtons:function(o){return s.each(this.indexedButtons,function(t,e){e.toggleEnable(o)}),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(t){return this.options.onshow=t,this},onShown:function(t){return this.options.onshown=t,this},onHide:function(t){return this.options.onhide=t,this},onHidden:function(t){return this.options.onhidden=t,this},isRealized:function(){return this.realized},setRealized:function(t){return this.realized=t,this},isOpened:function(){return this.opened},setOpened:function(t){return this.opened=t,this},handleModalEvents:function(){return this.getModal().on("show.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!0),e.isModalEvent(t)&&"function"==typeof e.options.onshow){t=e.options.onshow(e);return!1===t&&e.setOpened(!1),t}}),this.getModal().on("shown.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onshown&&e.options.onshown(e)}),this.getModal().on("hide.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!1),e.isModalEvent(t)&&"function"==typeof e.options.onhide){t=e.options.onhide(e);return!1===t&&e.setOpened(!0),t}}),this.getModal().on("hidden.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onhidden&&e.options.onhidden(e),e.isAutodestroy()&&(e.setRealized(!1),delete d.dialogs[e.getId()],s(this).remove()),d.moveFocus(),s(".modal").hasClass("in")&&s("body").addClass("modal-open")}),this.handleModalBackdropEvent(),this.getModal().on("keyup",{dialog:this},function(t){27===t.which&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByKeyboard()&&t.data.dialog.close()}),this.getModal().on("keyup",{dialog:this},function(t){var e=t.data.dialog;void 0!==e.registeredButtonHotkeys[t.which]&&((t=s(e.registeredButtonHotkeys[t.which])).prop("disabled")||t.is(":focus")||t.focus().trigger("click"))}),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){s(t.target).hasClass("modal-backdrop")&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},isModalEvent:function(t){return void 0!==t.namespace&&"bs.modal"===t.namespace},makeModalDraggable:function(){return this.options.draggable&&(this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown=!0;var o=e.getModalDialog().offset();e.draggableData.mouseOffset={top:t.clientY-o.top,left:t.clientX-o.left}}),this.getModal().on("mouseup mouseleave",{dialog:this},function(t){t.data.dialog.draggableData.isMouseDown=!1}),s("body").on("mousemove",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown&&e.getModalDialog().offset({top:t.clientY-e.draggableData.mouseOffset.top,left:t.clientX-e.draggableData.mouseOffset.left})})),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(d.NAMESPACE).addClass(this.getCssClass()),this.updateSize(),this.getDescription()&&this.getModal().attr("aria-describedby",this.getDescription()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().data("bs.modal",new e(this.getModalForBootstrapDialogModal(),{backdrop:"static",keyboard:!1,show:!1})),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateType(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this.updateAnimate(),this.updateSize(),this.updateTabindex(),this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this},close:function(){return this.isRealized()||this.realize(),this.getModal().modal("hide"),this}},d.prototype=s.extend(d.prototype,d.METHODS_TO_OVERRIDE[e.getModalVersion()]),d.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},d.show=function(t){return new d(t).open()},d.alert=function(){var t={},e={type:d.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:d.DEFAULT_TEXTS.OK,buttonHotkey:null,callback:null},t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?s.extend(!0,e,arguments[0]):s.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null}),e=new d(t);return e.setData("callback",t.callback),e.addButton({label:t.buttonLabel,hotkey:t.buttonHotkey,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&(t.setData("btnClicked",!0),t.close())}}),"function"==typeof e.options.onhide?e.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),!1!==e&&(e=this.onhide(t))}.bind({onhide:e.options.onhide})):e.onHide(function(t){var e=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(e=t.getData("callback")(!1)),e}),e.open()},d.confirm=function(){var t={},e={type:d.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:d.DEFAULT_TEXTS.CANCEL,btnCancelClass:null,btnCancelHotkey:null,btnOKLabel:d.DEFAULT_TEXTS.OK,btnOKClass:null,btnOKHotkey:null,btnsOrder:d.defaultOptions.btnsOrder,callback:null};null===(t="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?s.extend(!0,e,arguments[0]):s.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null})).btnOKClass&&(t.btnOKClass=["btn",t.type.split("-")[1]].join("-"));var o=new d(t);o.setData("callback",t.callback);e=[{label:t.btnCancelLabel,cssClass:t.btnCancelClass,hotkey:t.btnCancelHotkey,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!1))&&t.close()}},{label:t.btnOKLabel,cssClass:t.btnOKClass,hotkey:t.btnOKHotkey,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&t.close()}}];return t.btnsOrder===d.BUTTONS_ORDER_OK_CANCEL&&e.reverse(),o.addButtons(e),o.open()},d.warning=function(t,e){return new d({type:d.TYPE_WARNING,message:t}).open()},d.danger=function(t,e){return new d({type:d.TYPE_DANGER,message:t}).open()},d.success=function(t,e){return new d({type:d.TYPE_SUCCESS,message:t}).open()},d});
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.