PageSourceSearch

https://www.breketshop.ru/js/dialog/dialog.bundle.min.js?55

js breketshop.ru collected 2026-10-04 16:16:12 UTC 29,769 bytes, 1 lines download raw bytes

1var $waitingDialog;function showWaiter(){return exist($waitingDialog)||($waitingDialog=new waitingDialog),$waitingDialog.show(),!1}function waiting_close(){if(exist($waitingDialog)){var t=$("#"+$waitingDialog.$dialog.options.id);$waitingDialog.$dialog.$modal.modal("hide").data("bs.modal",null).remove(),t.data("modal",null),t.modal("hide").remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),$waitingDialog=void 0}return!1}!function(t,o){"use strict";"undefined"!=typeof module&&module.exports?module.exports=o(require("jquery"),require("bootstrap")):"function"==typeof define&&define.amd?define("bootstrap-dialog",["jquery","bootstrap"],(function(t){return o(t)})):t.BootstrapDialog=o(t.jQuery)}(this,(function(t){"use strict";var o=t.fn.modal.Constructor,e=function(e,i){if(/4\.\d+/.test(t.fn.modal.Constructor.VERSION))return new o(e,i);o.call(this,e,i)};e.getModalVersion=function(){return void 0===t.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test(t.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test(t.fn.modal.Constructor.VERSION)?"v3.3":/4\.\d+/.test(t.fn.modal.Constructor.VERSION)?"v4.0":"v3.3.4"},e.ORIGINAL_BODY_PADDING=parseInt(t("body").css("padding-right")||0,10),(e.METHODS_TO_OVERRIDE={})["v3.1"]={},e.METHODS_TO_OVERRIDE["v3.2"]={hide:function(o){(o&&o.preventDefault(),o=t.Event("hidde.bs.modal"),this.$element.trigger(o),this.isShown&&!o.isDefaultPrevented())&&(this.isShown=!1,this.getGlobalOpenedDialogs().length<=0&&t(".modal.show").length<=0&&(this.$body.removeClass("modal-open"),t(body).removeClass("modal-open")),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.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(t.proxy((function(){this.getGlobalOpenedDialogs().length<=0&&t(".modal.show").length<=0&&(document.body.hasAttribute("class")&&document.body.removeAttribute("class"),this.$body.removeClass("modal-open")),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")}),this))}},e.METHODS_TO_OVERRIDE["v3.3.4"]=t.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.METHODS_TO_OVERRIDE["v4.0"]=t.extend({},e.METHODS_TO_OVERRIDE["v3.3"]),e.prototype={constructor:e,getGlobalOpenedDialogs:function(){var o=[];return t.each(i.dialogs,(function(t,e){e.isRealized()&&e.isOpened()&&o.push(e)})),o}},e.prototype=t.extend(e.prototype,o.prototype,e.METHODS_TO_OVERRIDE[e.getModalVersion()]);var i=function(o){this.defaultOptions=t.extend(!0,{id:i.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},i.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(o),this.holdThisInstance()};return i.BootstrapDialogModal=e,i.NAMESPACE="bootstrap-dialog",i.TYPE_DEFAULT="type-default",i.TYPE_INFO="type-info",i.TYPE_PRIMARY="type-primary",i.TYPE_SUCCESS="type-success",i.TYPE_WARNING="type-warning",i.TYPE_DANGER="type-danger",i.DEFAULT_TEXTS={},i.DEFAULT_TEXTS[i.TYPE_DEFAULT]="Information",i.DEFAULT_TEXTS[i.TYPE_INFO]="Information",i.DEFAULT_TEXTS[i.TYPE_PRIMARY]="Information",i.DEFAULT_TEXTS[i.TYPE_SUCCESS]="Success",i.DEFAULT_TEXTS[i.TYPE_WARNING]="Warning",i.DEFAULT_TEXTS[i.TYPE_DANGER]="Danger",i.DEFAULT_TEXTS.OK="OK",i.DEFAULT_TEXTS.CANCEL="Cancel",i.DEFAULT_TEXTS.CONFIRM="Confirmation",i.SIZE_NORMAL="size-normal",i.SIZE_SMALL="size-small",i.SIZE_WIDE="size-wide",i.SIZE_LARGE="size-large",i.BUTTON_SIZES={},i.BUTTON_SIZES[i.SIZE_NORMAL]="",i.BUTTON_SIZES[i.SIZE_SMALL]="",i.BUTTON_SIZES[i.SIZE_WIDE]="",i.BUTTON_SIZES[i.SIZE_LARGE]="btn-lg",i.ICON_SPINNER="glyphicon glyphicon-asterisk",i.BUTTONS_ORDER_CANCEL_OK="btns-order-cancel-ok",i.BUTTONS_ORDER_OK_CANCEL="btns-order-ok-cancel",i.defaultOptions={type:i.TYPE_PRIMARY,size:i.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,closeIcon:"&#215;",spinicon:i.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!0,description:"",tabindex:-1,btnsOrder:i.BUTTONS_ORDER_CANCEL_OK},i.configDefaultOptions=function(o){i.defaultOptions=t.extend(!0,i.defaultOptions,o)},i.dialogs={},i.openAll=function(){t.each(i.dialogs,(function(t,o){o.open()}))},i.closeAll=function(){t.each(i.dialogs,(function(t,o){o.close()}))},i.getDialog=function(t){var o=null;return void 0!==i.dialogs[t]&&(o=i.dialogs[t]),o},i.setDialog=function(t){return i.dialogs[t.getId()]=t,t},i.addDialog=function(t){return i.setDialog(t)}
1,i.moveFocus=function(){var o=null;t.each(i.dialogs,(function(t,e){e.isRealized()&&e.isOpened()&&(o=e)})),null!==o&&o.getModal().focus()},i.METHODS_TO_OVERRIDE={},i.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(){if(this.isOpened()){var o=0;t.each(i.dialogs,(function(t,e){e.isRealized()&&e.isOpened()&&o++}));var e=this.getModal(),n=this.getModalBackdrop(e);e&&e.css("z-index",1050+20*(o-1)),n&&n.css("z-index",1040+20*(o-1))}return this},open:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},i.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:i.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:i.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:i.METHODS_TO_OVERRIDE["v3.1"].open},i.METHODS_TO_OVERRIDE["v3.3"]={},i.METHODS_TO_OVERRIDE["v3.3.4"]=t.extend({},i.METHODS_TO_OVERRIDE["v3.1"]),i.METHODS_TO_OVERRIDE["v4.0"]={getModalBackdrop:function(o){var e=!1;return o&&o.data("bs.modal")&&((e=o.data("bs.modal").$backdrop)||(e=o.data("bs.modal")._backdrop)),t(e)},handleModalBackdropEvent:i.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:i.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:i.METHODS_TO_OVERRIDE["v3.1"].open,getModalForBootstrapDialogModal:function(){return this.getModal().get(0)}},i.prototype={constructor:i,initOptions:function(o){return this.options=t.extend(!0,this.defaultOptions,o),this},getModalBackdrop:function(t){var o=!1;return t&&t.data("bs.modal")&&((o=t.data("bs.modal").$backdrop)||(o=t.data("bs.modal")._backdrop),console.log(o)),o},getModalForBootstrapDialogModal:function(){return this.getModal()},holdThisInstance:function(){return i.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 o=t('<div class="modal" role="dialog" aria-hidden="true"></div>');return o.prop("id",this.getId()),o.attr("aria-labelledby",this.getId()+"_title"),o},getModal:function(){return this.$modal},setModal:function(t){return this.$modal=t,this},createModalDialog:function(){return t('<div class="modal-dialog modal-dialog-centered"></div>')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(t){return this.$modalDialog=t,this},createModalContent:function(){return t('<div class="modal-content"></div>')},getModalContent:function(){return this.$modalContent},setModalContent:function(t){return this.$modalContent=t,this},createModalHeader:function(){return t('<div class="modal-header"></div>')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(t){return this.$modalHeader=t,this},createModalBody:function(){return t('<div class="modal-body"></div>')},getModalBody:function(){return this.$modalBody},setModalBody:function(t){return this.$modalBody=t,this},createModalFooter:function(){return t('<div class="modal-footer"></div>')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(t){return this.$modalFooter=t,this},createDynamicContent:function(t){var o=null;return"string"==typeof(o="function"==typeof t?t.call(t,this):t)&&(o=this.formatStringContent(o)),o},formatStringContent:function(t){return this.options.nl2br?t.replace(/\r\n/g,"<br />").replace(/[\r\n]/g,"<br />"):t},setData:function(t,o){return this.options.data[t]=o,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(){if(this.isRealized()){var t=[i.TYPE_DEFAULT,i.TYPE_INFO,i.TYPE_PRIMARY,i.TYPE_SUCCESS,i.TYPE_WARNING,i.TYPE_DANGER];this.getModal().removeClass(t.join(" ")).addClass(this.getType())}return this},getSize:function(){return this.options.size},setSize:function(t){return this.options.size=t,this.updateSize(),this},updateSize:function(){if(this.isRealized()){var o=this;this.getModal().removeClass(i.SIZE_NORMAL).removeClass(i.SIZE_SMALL).removeClass(i.SIZE_WIDE).removeClass(i.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.get
1Size()===i.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===i.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),t.each(this.options.buttons,(function(e,i){var n=o.getButton(i.id),a=["btn-lg","btn-sm","btn-xs"],s=!1;if("string"==typeof i.cssClass){var l=i.cssClass.split(" ");t.each(l,(function(o,e){-1!==t.inArray(e,a)&&(s=!0)}))}s||(n.removeClass(a.join(" ")),n.addClass(o.getButtonSize()))}))}return 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(){if(this.isRealized()){var t=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(t).prop("id",this.getId()+"_title")}return this},getMessage:function(){return this.options.message},setMessage:function(t){return this.options.message=t,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var t=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(t)}return 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(o){var e=this;return t.each(o,(function(t,o){e.addButton(o)})),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!==i.BUTTON_SIZES[this.getSize()]?i.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 i.DEFAULT_TEXTS[this.getType()]},getNamespace:function(t){return i.NAMESPACE+"-"+t},createHeaderContent:function(){var o=t("<div></div>");return o.addClass(this.getNamespace("header")),o.append(this.createTitleContent()),o.prepend(this.createCloseButton()),o},createTitleContent:function(){var o=t("<div></div>");return o.addClass(this.getNamespace("title")),o},createCloseButton:function(){var o=t("<div></div>");o.addClass(this.getNamespace("close-button"));var e=t('<button class="close" aria-label="close"></button>');return e.append(this.options.closeIcon),o.append(e),o.on("click",{dialog:this},(function(t){document.body.hasAttribute("class")&&document.body.removeAttribute("class"),t.data.dialog.close()})),o},createBodyContent:function(){var o=t("<div></div>");return o.addClass(this.getNamespace("body")),o.append(this.createMessageContent()),o}
1,createMessageContent:function(){var o=t("<div></div>");return o.addClass(this.getNamespace("message")),o},createFooterContent:function(){var o=t("<div></div>");return o.addClass(this.getNamespace("footer")),o},createFooterButtons:function(){var o=this,e=t("<div></div>");return e.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},t.each(this.options.buttons,(function(t,n){n.id||(n.id=i.newGuid());var a=o.createButton(n);o.indexedButtons[n.id]=a,e.append(a)})),e},createButton:function(o){var e=t('<button class="btn"></button>');return e.prop("id",o.id),e.data("button",o),void 0!==o.icon&&""!==t.trim(o.icon)&&e.append(this.createButtonIcon(o.icon)),void 0!==o.label&&e.append(o.label),void 0!==o.title&&e.attr("title",o.title),void 0!==o.cssClass&&""!==t.trim(o.cssClass)?e.addClass(o.cssClass):e.addClass("btn-default"),"object"==typeof o.data&&o.data.constructor==={}.constructor&&t.each(o.data,(function(t,o){e.attr("data-"+t,o)})),void 0!==o.hotkey&&(this.registeredButtonHotkeys[o.hotkey]=e),e.on("click",{dialog:this,$button:e,button:o},(function(t){var o=t.data.dialog,e=t.data.$button,i=e.data("button");if(i.autospin&&e.toggleSpin(!0),"function"==typeof i.action)return i.action.call(e,o,t)})),this.enhanceButton(e),void 0!==o.enabled&&e.toggleEnable(o.enabled),e},enhanceButton:function(t){return t.dialog=this,t.toggleEnable=function(t){var o=this;return void 0!==t?o.prop("disabled",!t).toggleClass("disabled",!t):o.prop("disabled",!o.prop("disabled")),o},t.enable=function(){return this.toggleEnable(!0),this},t.disable=function(){return this.toggleEnable(!1),this},t.toggleSpin=function(o){var e=this,i=e.dialog,n=e.find("."+i.getNamespace("button-icon"));
1return void 0===o&&(o=!(t.find(".icon-spin").length>0)),o?(n.hide(),t.prepend(i.createButtonIcon(i.getSpinicon()).addClass("icon-spin"))):(n.show(),t.find(".icon-spin").remove()),e},t.spin=function(){return this.toggleSpin(!0),this},t.stopSpin=function(){return this.toggleSpin(!1),this},this},createButtonIcon:function(o){var e=t("<span></span>");return e.addClass(this.getNamespace("button-icon")).addClass(o),e},enableButtons:function(o){return t.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 o=t.data.dialog;if(o.setOpened(!0),o.isModalEvent(t)&&"function"==typeof o.options.onshow){var e=o.options.onshow(o);return!1===e&&o.setOpened(!1),e}})),this.getModal().on("shown.bs.modal",{dialog:this},(function(t){var o=t.data.dialog;o.isModalEvent(t)&&"function"==typeof o.options.onshown&&o.options.onshown(o)})),this.getModal().on("hide.bs.modal",{dialog:this},(function(t){var o=t.data.dialog;if(o.setOpened(!1),o.isModalEvent(t)&&"function"==typeof o.options.onhide){var e=o.options.onhide(o);return!1===e&&o.setOpened(!0),e}})),this.getModal().on("hidden.bs.modal",{dialog:this},(function(o){var e=o.data.dialog;if(e.isModalEvent(o)&&"function"==typeof e.options.onhidden&&e.options.onhidden(e),e.isAutodestroy()){e.setRealized(!1),delete i.dialogs[e.getId()];var n=e.getModal(),a=e.getModalBackdrop(n);a&&a.remove();var s=t("#"+e.options.id);e.$modal.data("bs.modal",null).modal("hide").remove(),s.data("modal",null),s.modal("hide").remove(),e=null}i.moveFocus(),t(".modal").hasClass("in")})),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(o){var e=o.data.dialog;if(void 0!==e.registeredButtonHotkeys[o.which]){var i=t(e.registeredButtonHotkeys[o.which]);!i.prop("disabled")&&!i.is(":focus")&&i.focus().trigger("click")}})),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},(function(o){t(o.target).hasClass("modal-backdrop")&&o.data.dialog.isClosable()&&o.data.dialog.canCloseByBackdrop()&&o.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 o=t.data.dialog;o.draggableData.isMouseDown=!0;var e=o.getModalDialog().offset();o.draggableData.mouseOffset={top:t.clientY-e.top,left:t.clientX-e.left}})),this.getModal().on("mouseup mouseleave",{dialog:this},(function(t){t.data.dialog.draggableData.isMouseDown=!1})),t("body").on("mousemove",{dialog:this},(function(t){var o=t.data.dialog;o.draggableData.isMouseDown&&o.getModalDialog().offset({top:t.clientY-o.draggableData.mouseOffset.top,left:t.clientX-o.draggableData.mouseOffset.left})}))),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(i.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}},i.prototype=t.extend(i.prototype,i.METHODS_TO_OVERRIDE[e.getModalVersion()]),i.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var o=16*Math.random()|0;return("x"===t?o:3&o|8).toString(16)}))},i.show=function(t){return new i(t).open()},i.alert=function(){var o={},e={type:i.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:i.DEFAULT_TEXTS.OK,buttonHotkey:null,callback:null};o="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?t.extend(!0,e,arguments[0]):t.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null});var n=new i(o);return n.setData("callback",o.callback),n.addButton({label:o.buttonLabel,hotkey:o.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 n.options.onhide?n.onHide(function(t){var o=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(o=t.getData("callback")(!1)),!1!==o&&(o=this.onhide(t))}.bind({onhide:n.options.onhide})):n.onHide((function(t){var o=!0;return!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&(o=t.getData("callback")(!1)),o})),n.open()},i.confirm=function(){var o={},e={type:i.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:i.DEFAULT_TEXTS.CANCEL,btnCancelClass:null,btnCancelHotkey:null,btnOKLabel:i.DEFAULT_TEXTS.OK,bt
1nOKClass:null,btnOKHotkey:null,btnsOrder:i.defaultOptions.btnsOrder,callback:null};null===(o="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?t.extend(!0,e,arguments[0]):t.extend(!0,e,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null})).btnOKClass&&(o.btnOKClass=["btn",o.type.split("-")[1]].join("-"));var n=new i(o);n.setData("callback",o.callback);var a=[{label:o.btnCancelLabel,cssClass:o.btnCancelClass,hotkey:o.btnCancelHotkey,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!1))&&t.close()}},{label:o.btnOKLabel,cssClass:o.btnOKClass,hotkey:o.btnOKHotkey,action:function(t){return("function"!=typeof t.getData("callback")||!1!==t.getData("callback").call(this,!0))&&t.close()}}];return o.btnsOrder===i.BUTTONS_ORDER_OK_CANCEL&&a.reverse(),n.addButtons(a),n.open()},i.warning=function(t,o){return new i({type:i.TYPE_WARNING,message:t}).open()},i.danger=function(t,o){return new i({type:i.TYPE_DANGER,message:t}).open()},i.success=function(t,o){return new i({type:i.TYPE_SUCCESS,message:t}).open()},i}));var waitingDialog=function(){this.init()};function closeDialogs(){return BootstrapDialog.closeAll(),$.each(BootstrapDialog.dialogs,(function(t,o){o.setRealized(!1),o.close(),o=null})),$("div[class^=modal]").each((function(){$(this).remove()})),$("body").removeClass("modal-open"),!1}function showError(t){new modalDialog(t,{type:BootstrapDialog.TYPE_DANGER,title:"Ошибка"}).show()}function showMessage(t){new modalDialog(t,{type:BootstrapDialog.TYPE_SUCCESS,title:"Сообщение"}).show()}function showSuccess(t,o,e){new modalDialog(o,{type:BootstrapDialog.TYPE_INFO,size:BootstrapDialog.SIZE_NORMAL,title:t,buttons:[{icon:"fa  fa-power-off red",label:"Закрыть окно",cssClass:"btn-default",action:e}]}).show()}function basketDialog(t){new modalDialog(t,{type:BootstrapDialog.TYPE_SUCCESS,size:BootstrapDialog.SIZE_NORMAL,title:"Сообщение",buttons:[{icon:"fa fa-reply-all",label:"Продолжить покупки",cssClass:"btn-secondary",action:function(t){t.close()}},{icon:"fa fa-shopping-basket  white",label:"В корзину",cssClass:"btn-success ml-2",action:function(t){window.sessionStorage.setItem("enterTo","basket"),document.location="/basket"}}]}).show()}function _destroyDialog(t){var o=t.getModal();if(o){var e=t.getModalBackdrop(o);e&&e.remove()}delete BootstrapDialog.dialogs[t.getId()];var i=$("#"+t.getId());t.$modal.modal("hide").data("bs.modal",null).remove(),i.data("modal",null),i.modal("hide"),i.remove(),o.removeData(),o.remove(),$(".modal.show").length<=0&&($("body").removeClass("modal-open"),$(".modal-backdrop").remove())}waitingDialog.prototype.init=function(){$.each(BootstrapDialog.dialogs,(function(t,o){o.$modal.hasClass("size-small")&&o.close()})),this.$dialog=this.create(),this.$dialog.realize(),this.$dialog.getModalHeader().remove(),this.$dialog.getModalFooter().remove(),this.$dialog.getModalBody().css("background-color","#ffffff"),this.$dialog.getModalBody().css("color","#777")},waitingDialog.prototype.create=function(){return new BootstrapDialog({size:BootstrapDialog.SIZE_SMALL,type:BootstrapDialog.TYPE_DEFAULT,closable:!1,draggable:!1,closeByBackdrop:!1,closeByKeyboard:!1,cache:!1,isAutodestroy:!0,buttons:[],onshow:function(t){t.getModalHeader().hide(),t.getModalFooter().hide()},onhidden:function(t){var o=t.getModal();o.removeData(),o.data("modal",null),o.remove()},message:function(t){return $('<div class="modal-header" style="display: block;"><h5 style="margin: 0px;">Подождите, пожалуйста</h5></div><div class="modal-body"><div class="progress" style="margin-bottom:0;"><div class="progress-bar bg-warning progress-bar-striped progress-bar-animated active" role="progressbar" style="width:100%;" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div></div></div>')}})},waitingDialog.prototype.show=function(){this.$dialog.getModalHeader().hide(),this.$dialog.getModalFooter().hide(),this.$dialog.open()},waitingDialog.prototype.hide=function(){this.$dialog.close()};var $confirmDialog,modalDialog=function(t,o){this.options=o,this.$message=t,this.init()};function showConfirm(t,o){return exist($confirmDialog)||($confirmDialog=new modalConfirm(t,o)),$confirmDialog.show(),!1}modalDialog.DEFAULTS={type:BootstrapDialog.TYPE_SUCCESS,size:BootstrapDialog.SIZE_SMALL,title:"Сообщение",buttons:[{icon:"fa  fa-close",label:"Закрыть",cssClass:"btn-default",action:function(t){return t.close(),!1}}],onShown:function(t){var o=t.getModal();return o.prev(".modal-backdrop").css("z-index",9080),o.css({"z-index":9090}),!1},onHidden:function(t){_destroyDialog(t)}
1},modalDialog.prototype.init=function(){$.each(BootstrapDialog.dialogs,(function(t,o){o.$modal.hasClass("size-small")&&o.close()})),this.$dialog=this.create(),this.$dialog.setMessage(this.$message),this.$dialog.realize(),this.options.type&&this.$dialog.setType(this.options.type),this.options.data&&this.setData(this.$dialog,this.options.data)},modalDialog.prototype.create=function(){return new BootstrapDialog({size:this.options.size?this.options.size:modalDialog.DEFAULTS.size,title:this.options.title?this.options.title:modalDialog.DEFAULTS.title,type:this.options.type?this.options.type:modalDialog.DEFAULTS.type,closable:!1,draggable:!1,closeByBackdrop:!1,closeByKeyboard:!1,data:{},isAutodestroy:!0,buttons:this.options.buttons?this.options.buttons:modalDialog.DEFAULTS.buttons,onshown:this.options.onShown?this.options.onShown:modalDialog.DEFAULTS.onShown,onhidden:this.options.onHidden?this.options.onHidden:modalDialog.DEFAULTS.onHidden})},modalDialog.prototype.show=function(){this.$dialog.open()},modalDialog.prototype.hide=function(){this.$dialog.close(),this.$dialog.remove()},modalDialog.prototype.setData=function(t,o){$.map(o,(function(o,e){t.setData(e,o)}))},modalDialog.prototype.getData=function(t){this.$dialog.getData(t)};var modalConfirm=function(t,o){this.options=o,this.$message=t,this.init()};modalConfirm.DEFAULTS={type:BootstrapDialog.TYPE_SUCCESS,size:BootstrapDialog.SIZE_SMALL,title:"Подтвердите",onConfirm:function(t){return t.close(),!1},onCancel:function(t){return t.close(),!1},onShown:function(t){var o=1050;$.each(BootstrapDialog.dialogs,(function(t,e){o=e.$modal.css("z-index")}));var e=t.getModal();return e.prev(".modal-backdrop").css("z-index",parseInt(o)+10),e.css({"z-index":parseInt(o)+20}),!1},onHidden:function(t){_destroyDialog(t),$confirmDialog.$dialog.close(),$confirmDialog.$dialog=null,$confirmDialog=void 0}},modalConfirm.prototype.init=function(){$.each(BootstrapDialog.dialogs,(function(t,o){o.$modal.hasClass("size-small")&&(delete BootstrapDialog.dialogs[o.getId()],o.close())})),this.$dialog=this.create(),this.$dialog.setMessage(this.$message),this.$dialog.realize(),this.options.type&&this.$dialog.setType(this.options.type),this.options.data&&this.setData(this.$dialog,this.options.data)},modalConfirm.prototype.create=function(){return new BootstrapDialog({size:this.options.size?this.options.size:modalConfirm.DEFAULTS.size,title:this.options.title?this.options.title:modalConfirm.DEFAULTS.title,type:this.options.type?this.options.type:modalConfirm.DEFAULTS.type,closable:!1,draggable:!1,closeByBackdrop:!1,closeByKeyboard:!1,data:{},isAutodestroy:!0,buttons:[{icon:"fa  fa-check",label:"Да",cssClass:"btn-success",hotkey:13,action:this.options.onConfirm?this.options.onConfirm:modalConfirm.DEFAULTS.onConfirm},{icon:"fa  fa-close",label:"Нет",cssClass:"btn-default",action:this.options.onCancel?this.options.onCancel:modalConfirm.DEFAULTS.onCancel}],onshown:this.options.onShown?this.options.onShown:modalConfirm.DEFAULTS.onShown,onhidden:this.options.onHidden?this.options.onHidden:modalConfirm.DEFAULTS.onHidden})},modalConfirm.prototype.show=function(){this.$dialog.open()},modalConfirm.prototype.hide=function(){this.$dialog.getModal().modal("hide"),this.$dialog.close(),this.$dialog.remove()},modalConfirm.prototype.setData=function(t,o){$.map(o,(function(o,e){t.setData(e,o)}))},modalConfirm.prototype.getData=function(t){this.$dialog.getData(t)};

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.