/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.mobile.pane.min",["kendo.mobile.view.min","kendo.mobile.loader.min"],t)}(function(){return function(t,e){var i=window.kendo,n=i.mobile,o=i.roleSelector,a=n.ui,r=a.Widget,s=n.ViewEngine,l=a.View,u=n.ui.Loader,c="external",h="href",d="#!",p="navigate",v="viewShow",f="sameViewRequested",g=i.support.mobileOS,w=g.ios&&!g.appMode&&g.flatVersion>=700,m=/popover|actionsheet|modalview|drawer/,y="#:back",b=i.attrValue,k=r.extend({init:function(t,e){var n=this;r.fn.init.call(n,t,e),e=n.options,t=n.element,t.addClass("km-pane"),n.options.collapsible&&t.addClass("km-collapsible-pane"),this.history=[],this.historyCallback=function(t,e,i){var o=n.transition;return n.transition=null,w&&i&&(o="none"),n.viewEngine.showView(t,o,e)},this._historyNavigate=function(t){if(t===y){if(1===n.history.length)return;n.history.pop(),t=n.history[n.history.length-1]}else n.history.push(t);n.historyCallback(t,i.parseQueryStringParams(t))},this._historyReplace=function(t){var e=i.parseQueryStringParams(t);n.history[n.history.length-1]=t,n.historyCallback(t,e)},n.loader=new u(t,{loading:n.options.loading}),n.viewEngine=new s({container:t,transition:e.transition,modelScope:e.modelScope,rootNeeded:!e.initial,serverNavigation:e.serverNavigation,remoteViewURLPrefix:e.root||"",layout:e.layout,$angular:e.$angular,loader:n.loader,showStart:function(){n.loader.transition(),n.closeActiveDialogs()},after:function(){n.loader.transitionDone()},viewShow:function(t){n.trigger(v,t)},loadStart:function(){n.loader.show()},loadComplete:function(){n.loader.hide()},sameViewRequested:function(){n.trigger(f)},viewTypeDetermined:function(t){t.remote&&n.options.serverNavigation||n.trigger(p,{url:t.url})}}),this._setPortraitWidth(),i.onResize(function(){n._setPortraitWidth()}),n._setupAppLinks()},closeActiveDialogs:function(){var e=this.element.find(o("actionsheet popover modalview")).filter(":visible");e.each(function(){i.widgetInstance(t(this),a).close()})},navigateToInitial:function(){var t=this.options.initial;return t&&this.navigate(t),t},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window,loading:"<h1>Loading...</h1>"},events:[p,v,f],append:function(t){return this.viewEngine.append(t)},destroy:function(){r.fn.destroy.call(this),this.viewEngine.destroy(),this.userEvents.destroy()},navigate:function(t,e){t instanceof l&&(t=t.id),this.transition=e,this._historyNavigate(t)},replace:function(t,e){t instanceof l&&(t=t.id),this.transition=e,this._historyReplace(t)},bindToRouter:function(t){var e=this,n=this.history,o=this.viewEngine;t.bind("init",function(e){var a,r=e.url,s=t.pushState?r:"/";o.rootView.attr(i.attr("url"),s),a=n.length,"/"===r&&a&&(t.navigate(n[a-1],!0),e.preventDefault())}),t.bind("routeMissing",function(t){e.historyCallback(t.url,t.params,t.backButtonPressed)||t.preventDefault()}),t.bind("same",function(){e.trigger(f)}),e._historyNavigate=function(e){t.navigate(e)},e._historyReplace=function(e){t.replace(e)}},hideLoading:function(){this.loader.hide()},showLoading:function(){this.loader.show()},changeLoadingMessage:function(t){this.loader.changeMessage(t)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var t,e=this.options.portraitWidth;e&&(t=i.mobile.application.element.is(".km-vertical")?e:"auto",this.element.css("width",t))},_setupAppLinks:function(){var e=this,n="tab",a="[data-"+i.ns+"navigate-on-press]",r=t.map(["button","backbutton","detailbutton","listview-link"],function(t){return o(t)+":not("+a+")"}).join(",");this.element.handler(this).on("down",o(n)+","+a,"_mouseup").on("click",o(n)+","+r+","+a,"_appLinkClick"),this.userEvents=new i.UserEvents(this.element,{fastTap:!0,filter:r,tap:function(t){t.event.currentTarget=t.touch.currentTarget,e._mouseup(t.event)}}),this.element.css("-ms-touch-action","")},_appLinkClick:function(e){var i=t(e.currentTarget).attr("href"),n=i&&"#"!==i[0]&&this.options.serverNavigation;n||b(t(e.currentTarget),"rel")==c||e.preventDefault()},_mouseup:function(o){if(!(o.which>1||o.isDefaultPrevented())){var r=this,s=t(o.currentTarget),l=b(s,"transition"),u=b(s,"rel")||"",p=b(s,"target"),v=s.attr(h),f=w&&0===s[0].offsetHeight,g=v&&"#"!==v[0]&&this.options.serverNavigation;f||g||u===c||e===v||v===d||(s.attr(h,d),setTimeout(function(){s.attr(h,v)}),u.match(m)?(i.widgetInstance(t(v),a).openFor(s),"actionsheet"!==u&&"drawer"!==u||o.stopPropagation()):("_top"===p?r=n.application.pane:p&&(r=t("#"+p).data("kendoMobilePane")),r.navigate(v,l)),o.preventDefault())}}});k.wrap=function(t){t.is(o("view"))||(t=t.wrap("<div data-"+i.ns+'role="view" data-stretch="true"></div>').parent());var e=t.wrap('<div class="km-pane-wrapper"><div></div></div>').parent(),n=new k(e);return n.navigate(""),n},a.plugin(k)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});
//# sourceMappingURL=kendo.mobile.pane.min.js.map
