{"version":3,"sources":["kendo.dialog.js"],"names":["f","define","$","undefined","defined","x","constrain","value","low","high","Math","max","min","parseInt","Infinity","buttonKeyTrigger","e","keyCode","keys","ENTER","SPACEBAR","templates","PopupBox","Alert","kendoAlert","Confirm","kendoConfirm","Prompt","kendoPrompt","kendo","window","Widget","ui","TabKeyTrap","Popup","proxy","template","isFunction","NS","KDIALOG","KWINDOW","KICONCLOSE","KCONTENTCLASS","KCONTENTSELECTOR","KSCROLL","KTITLELESS","KDIALOGTITLE","KDIALOGTITLEBAR","KBUTTONGROUP","KBUTTON","KALERT","KCONFIRM","KPROMPT","KTEXTBOX","KOVERLAY","VISIBLE","ZINDEX","BODY","INITOPEN","TOUCHSTART","TOUCHMOVE","OPEN","CLOSE","SHOW","HIDE","SIZE","small","medium","large","HIDDEN","OVERFLOW","DATADOCOVERFLOWRULE","DATAHTMLTAPYRULE","messages","okText","cancel","promptInput","ceil","overlaySelector","DialogBase","extend","init","element","options","that","this","fn","call","_init","notify","wrapper","_centerCallback","_center","appendTo","visible","is","wrapperTemplate","_createDialog","closest","_defaultFocus","_tabindex","_dimensions","_tabKeyTrap","_triggerOpen","hide","setOptions","sizeClass","size","title","content","destroy","children","html","actions","remove","_createActionbar","show","_closable","removeClass","modal","_enableDocumentScrolling","_overlay","i","width","height","dimensions","length","css","_setElementMaxHeight","indexOf","outerWidth","minWidth","maxWidth","outerHeight","minHeight","maxHeight","_setElementHeight","addClass","elementMaxHeight","parseFloat","_uiHeight","elementHeight","_applyScrollClassName","hasScroll","get","scrollHeight","actionbar","actionbarHeight","offsetHeight","titlebar","titlebarHeight","overlay","insertBefore","toggle","_waiAriaOverlay","_removeWaiAriaOverlay","preventScroll","_stopDocumentScrolling","node","_overlayedNodes","prevAll","add","nextAll","each","jthis","data","attr","hiddenValue","removeAttr","_closeClick","preventDefault","close","_closeKeyHandler","ESC","_keydown","_closing","closable","isRtl","support","titleId","id","guid","toggleClass","append","titlebarActions","find","closeAction","prepend","autoApplyNS","on","isStretchedLayout","buttonLayout","_addButtons","action","text","actionClick","_actionClick","actionKeyHandler","_actionKeyHandler","_mergeTextWithOptions","cssClass","target","tabIndex","closeBtn","actionButtons","_runActionBtn","currentTarget","preventClose","sender","toFront","_triggerInitOpen","trigger","opacity","_focusDialog","open","otherModalsVisible","overlayFx","showOptions","_animationOptions","kendoStop","_modals","duration","effects","Fade","fx","fadeIn","endValue","play","kendoAnimate","complete","_openAnimationEnd","animation","basicAnimation","_initOpenTriggered","zIndex","originalZIndex","center","windowObject","zIndexNew","isNaN","style","systemTriggered","arguments","_close","_stopCenterOnResize","hideOptions","userTriggered","_removeOverlay","reverse","_closeAnimationEnd","_centerOnResize","documentWindow","scrollTop","scrollLeft","newLeft","newTop","left","top","_trackResize","onResize","unbindResize","modals","hideOverlay","_object","last","$html","$body","_storeOverflowRule","mobileOS","ios","addEventListener","_touchStart","passive","_touchMove","changedTouches","pageY","$target","upScroll","preventYScroll","clientHeight","document","body","_restoreOverflowRule","removeData","removeEventListener","$element","_isOverflowStored","overflowRule","overflow","lastModal","zStack","filter","dom","object","sort","a","b","widget","widgetInstance","_destroy","ns","off","encodedHtml","htmlEncode","prependTo","angular","elements","push","dataItem","_focus","trap","focus","events","Dialog","name","plugin","alertWrapper","_ensureContentId","bind","_ariaDescribedBy","_initFocus","o","_chooseEntryFocus","location","host","alert","result","Deferred","primary","resolve","reject","confirmDialog","confirm","_createPrompt","promptContainer","promptInputContainer","insertAfter","val","promptDialog","prompt","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,gBACH,aACA,eACDD,IACL,WAsxBE,MA3wBC,UAAUE,EAAGC,GAUV,QAASC,GAAQC,GACb,MAAmB,KAALA,EAElB,QAASC,GAAUC,EAAOC,EAAKC,GAC3B,MAAOC,MAAKC,IAAID,KAAKE,IAAIC,SAASN,EAAO,IAAKE,IAASK,EAAAA,EAAWL,EAAOI,SAASJ,EAAM,KAAMI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\n\n*/\n(function (f, define) {\n define('kendo.dialog', [\n 'kendo.core',\n 'kendo.popup'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'dialog',\n name: 'Dialog',\n category: 'web',\n description: 'The dialog widget is a modal popup that brings information to the user.',\n depends: [\n 'core',\n 'popup'\n ]\n };\n (function ($, undefined) {\n var kendo = window.kendo, Widget = kendo.ui.Widget, TabKeyTrap = kendo.ui.Popup.TabKeyTrap, proxy = $.proxy, template = kendo.template, keys = kendo.keys, isFunction = $.isFunction, NS = 'kendoWindow', KDIALOG = '.k-dialog', KWINDOW = '.k-window', KICONCLOSE = '.k-dialog-close', KCONTENTCLASS = 'k-window-content k-dialog-content', KCONTENTSELECTOR = '.k-window-content', KSCROLL = 'k-scroll', KTITLELESS = 'k-dialog-titleless', KDIALOGTITLE = '.k-dialog-title', KDIALOGTITLEBAR = KDIALOGTITLE + 'bar', KBUTTONGROUP = '.k-dialog-buttongroup', KBUTTON = '.k-button', KALERT = 'k-alert', KCONFIRM = 'k-confirm', KPROMPT = 'k-prompt', KTEXTBOX = '.k-textbox', KOVERLAY = '.k-overlay', VISIBLE = ':visible', ZINDEX = 'zIndex', BODY = 'body', INITOPEN = 'initOpen', TOUCHSTART = 'touchstart', TOUCHMOVE = 'touchmove', OPEN = 'open', CLOSE = 'close', SHOW = 'show', HIDE = 'hide', SIZE = {\n small: 'k-window-sm',\n medium: 'k-window-md',\n large: 'k-window-lg'\n }, HIDDEN = 'hidden', OVERFLOW = 'overflow', DATADOCOVERFLOWRULE = 'original-overflow-rule', DATAHTMLTAPYRULE = 'tap-y', messages = {\n okText: 'OK',\n cancel: 'Cancel',\n promptInput: 'Input'\n }, ceil = Math.ceil, templates, overlaySelector = ':not(link,meta,script,style)';\n function defined(x) {\n return typeof x != 'undefined';\n }\n function constrain(value, low, high) {\n return Math.max(Math.min(parseInt(value, 10), high === Infinity ? high : parseInt(high, 10)), parseInt(low, 10));\n }\n function buttonKeyTrigger(e) {\n return e.keyCode == keys.ENTER || e.keyCode == keys.SPACEBAR;\n }\n var DialogBase = Widget.extend({\n init: function (element, options) {\n var that = this;\n Widget.fn.init.call(that, element, options);\n that._init(that.element, that.options);\n kendo.notify(that);\n },\n _init: function (element, options) {\n var that = this, wrapper;\n that._centerCallback = proxy(that._center, that);\n that.appendTo = $(BODY);\n if (!defined(options.visible) || options.visible === null) {\n options.visible = element.is(VISIBLE);\n }\n if (that.wrapperTemplate === undefined) {\n that.wrapperTemplate = templates.wrapper;\n }\n that._createDialog();\n wrapper = that.wrapper = element.closest(KDIALOG);\n if (options._defaultFocus === undefined) {\n that._defaultFocus = element[0];\n }\n that._tabindex(element);\n that._dimensions();\n this._tabKeyTrap = new TabKeyTrap(wrapper);\n if (!that.options.visible) {\n that.wrapper.hide();\n } else {\n that._triggerOpen();\n }\n },\n setOptions: function (options) {\n var that = this;\n var sizeClass = that.options.size;\n options = $.extend(that.options, options);\n Widget.fn.setOptions.call(that, options);\n if (options.title !== undefined) {\n that.title(options.title);\n }\n if (options.content) {\n kendo.destroy(that.element.children());\n that.element.html(options.content);\n }\n if (options.actions) {\n that.wrapper.children(KBUTTONGROUP).remove();\n that._createActionbar(that.wrapper);\n }\n that.wrapper.show();\n that._closable(that.wrapper);\n that.wrapper.removeClass(SIZE[sizeClass]);\n that._dimensions();\n if (!options.visible) {\n that.wrapper.hide();\n } else {\n that._triggerOpen();\n }\n if (typeof options.modal !== 'undefined') {\n var visible = that.options.visible !== false;\n that._enableDocumentScrolling();\n that._overlay(options.modal && visible);\n }\n },\n _dimensions: function () {\n var that = this, wrapper = that.wrapper, options = that.options, width = options.width, height = options.height, sizeClass = options.size, dimensions = [\n 'minWidth',\n 'minHeight',\n 'maxWidth',\n 'maxHeight'\n ];\n for (var i = 0; i < dimensions.length; i++) {\n var value = options[dimensions[i]];\n if (value && value != Infinity) {\n wrapper.css(dimensions[i], value);\n }\n }\n this._setElementMaxHeight();\n if (width) {\n if (width.toString().indexOf('%') > 0) {\n wrapper.width(width);\n } else {\n wrapper.outerWidth(constrain(width, options.minWidth, options.maxWidth));\n }\n }\n if (height) {\n if (height.toString().indexOf('%') > 0) {\n wrapper.height(height);\n } else {\n wrapper.outerHeight(constrain(height, options.minHeight, options.maxHeight));\n }\n this._setElementHeight();\n }\n if (sizeClass && SIZE[sizeClass]) {\n wrapper.addClass(SIZE[sizeClass]);\n }\n },\n _setElementMaxHeight: function () {\n var that = this, element = that.element, maxHeight = that.options.maxHeight, elementMaxHeight;\n if (maxHeight != Infinity) {\n elementMaxHeight = parseFloat(maxHeight, 10) - that._uiHeight();\n if (elementMaxHeight > 0) {\n element.css({ maxHeight: ceil(elementMaxHeight) + 'px' });\n }\n }\n },\n _setElementHeight: function () {\n var that = this, element = that.element, height = that.wrapper.outerHeight(true), elementHeight = parseFloat(height, 10) - that._uiHeight();\n if (elementHeight < 0) {\n elementHeight = 0;\n }\n element.css({ height: ceil(elementHeight) + 'px' });\n this._applyScrollClassName(element);\n },\n _applyScrollClassName: function (element) {\n var hasScroll = element.get(0).scrollHeight > element.outerHeight();\n if (hasScroll) {\n element.addClass(KSCROLL);\n } else {\n element.removeClass(KSCROLL);\n }\n },\n _uiHeight: function () {\n var that = this, wrapper = that.wrapper, actionbar = wrapper.children(KBUTTONGROUP), actionbarHeight = actionbar[0] && actionbar[0].offsetHeight || 0, titlebar = wrapper.children(KDIALOGTITLEBAR), titlebarHeight = titlebar[0] && titlebar[0].offsetHeight || 0;\n return actionbarHeight + titlebarHeight;\n },\n _overlay: function (visible) {\n var overlay = this.appendTo.children(KOVERLAY), wrapper = this.wrapper;\n if (!overlay.length) {\n overlay = $(templates.overlay);\n }\n overlay.insertBefore(wrapper[0]).toggle(visible).css(ZINDEX, parseInt(wrapper.css(ZINDEX), 10) - 1);\n if (visible) {\n this._waiAriaOverlay();\n } else {\n this._removeWaiAriaOverlay();\n }\n if (this.options.modal.preventScroll) {\n this._stopDocumentScrolling();\n }\n return overlay;\n },\n _waiAriaOverlay: function () {\n var node = this.wrapper;\n this._overlayedNodes = node.prevAll(overlaySelector).add(node.nextAll(overlaySelector)).each(function () {\n var jthis = $(this);\n jthis.data('ariaHidden', jthis.attr('aria-hidden'));\n jthis.attr('aria-hidden', 'true');\n });\n },\n _removeWaiAriaOverlay: function () {\n return this._overlayedNodes && this._overlayedNodes.each(function () {\n var node = $(this);\n var hiddenValue = node.data('ariaHidden');\n if (hiddenValue) {\n node.attr('aria-hidden', hiddenValue);\n } else {\n node.removeAttr('aria-hidden');\n }\n });\n },\n _closeClick: function (e) {\n e.preventDefault();\n this.close(false);\n },\n _closeKeyHandler: function (e) {\n if (buttonKeyTrigger(e) || e.keyCode == keys.ESC) {\n this.close(false);\n }\n },\n _keydown: function (e) {\n var that = this, options = that.options, keyCode = e.keyCode;\n if (keyCode == keys.ESC && !that._closing && options.closable) {\n that.close(false);\n }\n },\n _createDialog: function () {\n var that = this, content = that.element, options = that.options, isRtl = kendo.support.isRtl(content), titlebar = $(templates.titlebar(options)), titleId = (content.id || kendo.guid()) + '_title', wrapper = $(that.wrapperTemplate(options));\n wrapper.toggleClass('k-rtl', isRtl);\n content.addClass(KCONTENTCLASS);\n that.appendTo.append(wrapper);\n if (options.title !== false) {\n wrapper.append(titlebar);\n titlebar.attr('id', titleId);\n wrapper.attr('aria-labelledby', titleId);\n } else {\n wrapper.addClass(KTITLELESS);\n }\n that._closable(wrapper);\n wrapper.append(content);\n if (options.content) {\n kendo.destroy(content.children());\n content.html(options.content);\n }\n if (options.actions.length) {\n that._createActionbar(wrapper);\n }\n },\n _closable: function (wrapper) {\n var that = this;\n var options = that.options;\n var titlebar = wrapper.children(KDIALOGTITLEBAR);\n var titlebarActions = titlebar.find('.k-window-actions');\n var closeAction = titlebarActions.length ? titlebarActions.find('.k-dialog-close') : wrapper.find('.k-dialog-close');\n closeAction.remove();\n if (options.closable !== false) {\n if (options.title !== false && titlebarActions.length) {\n titlebarActions.append(templates.close(options));\n } else {\n wrapper.prepend(templates.close(options));\n }\n wrapper.autoApplyNS(NS);\n that.element.autoApplyNS(NS);\n wrapper.find(KICONCLOSE).on('click', proxy(that._closeClick, that)).on('keydown', proxy(that._closeKeyHandler, that));\n that.element.on('keydown', proxy(that._keydown, that));\n }\n },\n _createActionbar: function (wrapper) {\n var isStretchedLayout = this.options.buttonLayout === 'stretched';\n var buttonLayout = isStretchedLayout ? 'stretched' : 'normal';\n var actionbar = $(templates.actionbar({ buttonLayout: buttonLayout }));\n this._addButtons(actionbar);\n wrapper.append(actionbar);\n },\n _addButtons: function (actionbar) {\n var that = this, actionClick = proxy(that._actionClick, that), actionKeyHandler = proxy(that._actionKeyHandler, that), actions = that.options.actions, length = actions.length, action, text;\n for (var i = 0; i < length; i++) {\n action = actions[i];\n text = that._mergeTextWithOptions(action);\n $(templates.action(action)).autoApplyNS(NS).html(text).appendTo(actionbar).addClass(action.cssClass).data('action', action.action).on('click', actionClick).on('keydown', actionKeyHandler);\n }\n },\n _mergeTextWithOptions: function (action) {\n var text = action.text;\n return text ? template(text)(this.options) : '';\n },\n _tabindex: function (target) {\n var that = this;\n var wrapper = that.wrapper;\n var closeBtn = wrapper.find(KICONCLOSE);\n var actionButtons = wrapper.find(KBUTTONGROUP + ' ' + KBUTTON);\n Widget.fn._tabindex.call(this, target);\n var tabIndex = target.attr('tabindex');\n closeBtn.attr('tabIndex', tabIndex);\n actionButtons.attr('tabIndex', tabIndex);\n },\n _actionClick: function (e) {\n if (this.wrapper.is(VISIBLE)) {\n this._runActionBtn(e.currentTarget);\n }\n },\n _actionKeyHandler: function (e) {\n if (buttonKeyTrigger(e)) {\n this._runActionBtn(e.currentTarget);\n } else if (e.keyCode == keys.ESC) {\n this.close(false);\n }\n },\n _runActionBtn: function (target) {\n var that = this;\n if (that._closing) {\n return;\n }\n var action = $(target).data('action'), preventClose = isFunction(action) && action({ sender: that }) === false;\n if (!preventClose) {\n that.close(false);\n }\n },\n _triggerOpen: function () {\n var that = this;\n var options = that.options;\n var wrapper = that.wrapper;\n that.toFront();\n that._triggerInitOpen();\n that.trigger(OPEN);\n if (options.modal) {\n that._overlay(wrapper.is(VISIBLE)).css({ opacity: 0.5 });\n that._focusDialog();\n }\n },\n open: function () {\n var that = this, wrapper = that.wrapper, showOptions = this._animationOptions(OPEN), options = that.options, overlay, otherModalsVisible;\n this._triggerInitOpen();\n if (!that.trigger(OPEN)) {\n if (that._closing) {\n wrapper.kendoStop(true, true);\n }\n that._closing = false;\n that.toFront();\n options.visible = true;\n if (options.modal) {\n otherModalsVisible = !!that._modals().length;\n overlay = that._overlay(otherModalsVisible);\n overlay.kendoStop(true, true);\n if (showOptions.duration && kendo.effects.Fade && !otherModalsVisible) {\n var overlayFx = kendo.fx(overlay).fadeIn();\n overlayFx.duration(showOptions.duration || 0);\n overlayFx.endValue(0.5);\n overlayFx.play();\n } else {\n overlay.css('opacity', 0.5);\n }\n overlay.show();\n }\n wrapper.show().kendoStop().kendoAnimate({\n effects: showOptions.effects,\n duration: showOptions.duration,\n complete: proxy(that._openAnimationEnd, that)\n });\n wrapper.show();\n }\n return that;\n },\n _animationOptions: function (id) {\n var animation = this.options.animation;\n var basicAnimation = {\n open: { effects: {} },\n close: {\n hide: true,\n effects: {}\n }\n };\n return animation && animation[id] || basicAnimation[id];\n },\n _openAnimationEnd: function () {\n if (this.options.modal) {\n this._focusDialog();\n }\n this.trigger(SHOW);\n },\n _triggerInitOpen: function () {\n if (!defined(this._initOpenTriggered)) {\n this._initOpenTriggered = true;\n this.trigger(INITOPEN);\n }\n },\n toFront: function () {\n var that = this, wrapper = that.wrapper, zIndex = +wrapper.css(ZINDEX), originalZIndex = zIndex;\n that.center();\n $(KWINDOW).each(function (i, element) {\n var windowObject = $(element), zIndexNew = windowObject.css(ZINDEX);\n if (!isNaN(zIndexNew)) {\n zIndex = Math.max(+zIndexNew, zIndex);\n }\n });\n if (!wrapper[0].style.zIndex || originalZIndex < zIndex) {\n wrapper.css(ZINDEX, zIndex + 2);\n }\n that.element.find('> .k-overlay').remove();\n wrapper = null;\n return that;\n },\n close: function (systemTriggered) {\n if (!arguments.length) {\n systemTriggered = true;\n }\n this._close(systemTriggered);\n this._stopCenterOnResize();\n return this;\n },\n _close: function (systemTriggered) {\n var that = this, wrapper = that.wrapper, options = that.options, showOptions = this._animationOptions('open'), hideOptions = this._animationOptions('close');\n if (wrapper.is(VISIBLE) && !that.trigger(CLOSE, { userTriggered: !systemTriggered })) {\n if (that._closing) {\n return;\n }\n that._closing = true;\n options.visible = false;\n this._removeOverlay();\n wrapper.kendoStop().kendoAnimate({\n effects: hideOptions.effects || showOptions.effects,\n reverse: hideOptions.reverse === true,\n duration: hideOptions.duration,\n complete: proxy(this._closeAnimationEnd, this)\n });\n }\n return that;\n },\n center: function () {\n this._center();\n this._centerOnResize();\n },\n _center: function () {\n var that = this, wrapper = that.wrapper, documentWindow = $(window), scrollTop = 0, scrollLeft = 0, newLeft = scrollLeft + Math.max(0, (documentWindow.width() - wrapper.width()) / 2), newTop = scrollTop + Math.max(0, (documentWindow.height() - wrapper.height() - parseInt(wrapper.css('paddingTop'), 10)) / 2);\n wrapper.css({\n left: newLeft,\n top: newTop\n });\n return that;\n },\n _centerOnResize: function () {\n if (this._trackResize) {\n return;\n }\n kendo.onResize(this._centerCallback);\n this._trackResize = true;\n },\n _stopCenterOnResize: function () {\n kendo.unbindResize(this._centerCallback);\n this._trackResize = false;\n },\n _removeOverlay: function () {\n var modals = this._modals();\n var options = this.options;\n var hideOverlay = options.modal && !modals.length;\n if (hideOverlay) {\n this._overlay(false).remove();\n if (options.modal.preventScroll) {\n this._enableDocumentScrolling();\n }\n } else if (modals.length) {\n this._object(modals.last())._overlay(true);\n if (options.modal.preventScroll) {\n this._stopDocumentScrolling();\n }\n }\n },\n _stopDocumentScrolling: function () {\n var that = this;\n var $body = $('body');\n that._storeOverflowRule($body);\n $body.css(OVERFLOW, HIDDEN);\n var $html = $('html');\n var html = $html[0];\n that._storeOverflowRule($html);\n $html.css(OVERFLOW, HIDDEN);\n if (kendo.support.mobileOS.ios) {\n html.addEventListener(TOUCHSTART, that._touchStart, { passive: false });\n html.addEventListener(TOUCHMOVE, that._touchMove, { passive: false });\n }\n },\n _touchStart: function (e) {\n $(this).data(DATAHTMLTAPYRULE, e.changedTouches[0].pageY);\n },\n _touchMove: function (e) {\n var target = e.target;\n var $target = $(e.target);\n var upScroll = e.changedTouches[0].pageY - $(this).data(DATAHTMLTAPYRULE) > 0;\n var preventYScroll = $target.is(KCONTENTSELECTOR) && (upScroll && $target.scrollTop() === 0) || !upScroll && $target.scrollTop() === target.scrollHeight - target.clientHeight;\n if (!$target.is(KCONTENTSELECTOR) || preventYScroll) {\n e.preventDefault();\n }\n },\n _enableDocumentScrolling: function () {\n var that = this;\n var $body = $(document.body);\n var $html = $('html');\n var html = $html[0];\n that._restoreOverflowRule($body);\n that._restoreOverflowRule($html);\n if (kendo.support.mobileOS.ios) {\n $html.removeData(DATAHTMLTAPYRULE);\n html.removeEventListener(TOUCHSTART, that._touchStart, { passive: false });\n html.removeEventListener(TOUCHMOVE, that._touchMove, { passive: false });\n }\n },\n _storeOverflowRule: function ($element) {\n if (this._isOverflowStored($element)) {\n return;\n }\n var overflowRule = $element.get(0).style.overflow;\n if (typeof overflowRule === 'string') {\n $element.data(DATADOCOVERFLOWRULE, overflowRule);\n }\n },\n _isOverflowStored: function ($element) {\n return typeof $element.data(DATADOCOVERFLOWRULE) === 'string';\n },\n _restoreOverflowRule: function ($element) {\n var overflowRule = $element.data(DATADOCOVERFLOWRULE);\n if (overflowRule !== null && overflowRule !== undefined) {\n $element.css(OVERFLOW, overflowRule);\n $element.removeData(DATADOCOVERFLOWRULE);\n } else {\n $element.css(OVERFLOW, '');\n }\n },\n _closeAnimationEnd: function () {\n var that = this;\n that._closing = false;\n that.wrapper.hide().css('opacity', '');\n that.trigger(HIDE);\n if (that.options.modal) {\n var lastModal = that._object(that._modals().last());\n if (lastModal) {\n lastModal.toFront();\n }\n }\n },\n _modals: function () {\n var that = this;\n var zStack = $(KWINDOW).filter(function () {\n var dom = $(this);\n var object = that._object(dom);\n var options = object && object.options;\n return options && options.modal && that.options.appendTo == options.appendTo && options.visible && dom.is(VISIBLE);\n }).sort(function (a, b) {\n return +$(a).css('zIndex') - +$(b).css('zIndex');\n });\n that = null;\n return zStack;\n },\n _object: function (element) {\n var content = element.children(KCONTENTSELECTOR);\n var widget = kendo.widgetInstance(content);\n if (widget) {\n return widget;\n }\n return undefined;\n },\n destroy: function () {\n var that = this;\n that._destroy();\n Widget.fn.destroy.call(that);\n kendo.destroy(that.wrapper);\n that.wrapper.remove();\n that.wrapper = that.element = $();\n },\n _destroy: function () {\n var that = this;\n var ns = '.' + NS;\n that.wrapper.off(ns);\n that.element.off(ns);\n that.wrapper.find(KICONCLOSE + ',' + KBUTTONGROUP + ' > ' + KBUTTON).off(ns);\n that._stopCenterOnResize();\n },\n title: function (html) {\n var that = this, wrapper = that.wrapper, options = that.options, titlebar = wrapper.children(KDIALOGTITLEBAR), title = titlebar.children(KDIALOGTITLE), encodedHtml = kendo.htmlEncode(html);\n if (!arguments.length) {\n return title.html();\n }\n if (html === false) {\n titlebar.remove();\n wrapper.addClass(KTITLELESS);\n } else {\n if (!titlebar.length) {\n titlebar = $(templates.titlebar(options)).prependTo(wrapper);\n title = titlebar.children(KDIALOGTITLE);\n wrapper.removeClass(KTITLELESS);\n }\n title.html(encodedHtml);\n }\n that.options.title = encodedHtml;\n return that;\n },\n content: function (html, data) {\n var that = this, content = that.wrapper.children(KCONTENTSELECTOR);\n if (!defined(html)) {\n return content.html();\n }\n this.angular('cleanup', function () {\n return { elements: content.children() };\n });\n kendo.destroy(content.children());\n content.html(html);\n this.angular('compile', function () {\n var a = [];\n for (var i = content.length; --i >= 0;) {\n a.push({ dataItem: data });\n }\n return {\n elements: content.children(),\n data: a\n };\n });\n that.options.content = html;\n return that;\n },\n _focusDialog: function () {\n if (this._defaultFocus) {\n this._focus(this._defaultFocus);\n }\n this._tabKeyTrap.trap();\n },\n _focus: function (node) {\n if (node) {\n node.focus();\n }\n },\n events: [\n INITOPEN,\n OPEN,\n CLOSE,\n SHOW,\n HIDE\n ],\n options: {\n title: '',\n buttonLayout: 'stretched',\n actions: [],\n modal: true,\n size: 'auto',\n width: null,\n height: null,\n minWidth: 0,\n minHeight: 0,\n maxWidth: Infinity,\n maxHeight: Infinity,\n content: null,\n visible: null,\n appendTo: BODY,\n closable: true\n }\n });\n var Dialog = DialogBase.extend({\n options: {\n name: 'Dialog',\n messages: { close: 'Close' }\n }\n });\n kendo.ui.plugin(Dialog);\n var PopupBox = DialogBase.extend({\n _init: function (element, options) {\n var that = this;\n that.wrapperTemplate = templates.alertWrapper;\n options._defaultFocus = null;\n that._ensureContentId(element);\n DialogBase.fn._init.call(that, element, options);\n that.bind(HIDE, proxy(that.destroy, that));\n that._ariaDescribedBy();\n that._initFocus();\n },\n _ensureContentId: function (element) {\n var node = $(element);\n if (!node.attr('id')) {\n node.attr('id', kendo.guid() + '_k-popup');\n }\n },\n _ariaDescribedBy: function () {\n this.wrapper.attr('aria-describedby', this.element.attr('id'));\n },\n _initFocus: function () {\n var o = this.options;\n this._defaultFocus = this._chooseEntryFocus();\n if (this._defaultFocus && o.visible && o.modal) {\n this._focusDialog();\n }\n },\n _chooseEntryFocus: function () {\n return this.wrapper.find(KBUTTONGROUP + ' > ' + KBUTTON)[0];\n },\n options: {\n title: window.location.host,\n closable: false,\n messages: messages\n }\n });\n var Alert = PopupBox.extend({\n _init: function (element, options) {\n var that = this;\n PopupBox.fn._init.call(that, element, options);\n that.wrapper.addClass(KALERT);\n },\n options: {\n name: 'Alert',\n modal: true,\n actions: [{ text: '#: messages.okText #' }]\n }\n });\n kendo.ui.plugin(Alert);\n var kendoAlert = function (text) {\n return $(templates.alert).kendoAlert({ content: text }).data('kendoAlert').open();\n };\n var Confirm = PopupBox.extend({\n _init: function (element, options) {\n var that = this;\n PopupBox.fn._init.call(that, element, options);\n that.wrapper.addClass(KCONFIRM);\n that.result = $.Deferred();\n },\n options: {\n name: 'Confirm',\n modal: true,\n actions: [\n {\n text: '#: messages.okText #',\n primary: true,\n action: function (e) {\n e.sender.result.resolve();\n }\n },\n {\n text: '#: messages.cancel #',\n action: function (e) {\n e.sender.result.reject();\n }\n }\n ]\n }\n });\n kendo.ui.plugin(Confirm);\n var kendoConfirm = function (text) {\n var confirmDialog = $(templates.confirm).kendoConfirm({ content: text }).data('kendoConfirm').open();\n return confirmDialog.result;\n };\n var Prompt = PopupBox.extend({\n _init: function (element, options) {\n var that = this;\n PopupBox.fn._init.call(that, element, options);\n that.wrapper.addClass(KPROMPT);\n that._createPrompt();\n that.result = $.Deferred();\n },\n _createPrompt: function () {\n var value = this.options.value, promptContainer = $(templates.promptInputContainer(this.options)).insertAfter(this.element);\n if (value) {\n promptContainer.children(KTEXTBOX).val(value);\n }\n this._defaultFocus = this._chooseEntryFocus();\n this._focusDialog();\n },\n _chooseEntryFocus: function () {\n return this.wrapper.find(KTEXTBOX)[0];\n },\n options: {\n name: 'Prompt',\n modal: true,\n value: '',\n actions: [\n {\n text: '#: messages.okText #',\n primary: true,\n action: function (e) {\n var sender = e.sender, value = sender.wrapper.find(KTEXTBOX).val();\n sender.result.resolve(value);\n }\n },\n {\n text: '#: messages.cancel #',\n action: function (e) {\n var sender = e.sender, value = sender.wrapper.find(KTEXTBOX).val();\n e.sender.result.reject(value);\n }\n }\n ]\n }\n });\n kendo.ui.plugin(Prompt);\n var kendoPrompt = function (text, value) {\n var promptDialog = $(templates.prompt).kendoPrompt({\n content: text,\n value: value\n }).data('kendoPrompt').open();\n return promptDialog.result;\n };\n templates = {\n wrapper: template('
'),\n action: template(''),\n titlebar: template('
' + '#: title #' + '
' + '
'),\n close: template(''),\n actionbar: template('
'),\n overlay: '
',\n alertWrapper: template('
'),\n alert: '
',\n confirm: '
',\n prompt: '
',\n promptInputContainer: template('
')\n };\n kendo.alert = kendoAlert;\n kendo.confirm = kendoConfirm;\n kendo.prompt = kendoPrompt;\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"]}