/* * Kendo UI Complete v2013.3.1119 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(define){return define(["./kendo.mobile.view.min","./kendo.mobile.loader.min"],function(){!function(i){var t=window.kendo,e=t.mobile,n=t.roleSelector,o=e.ui,a=o.Widget,r=e.ViewEngine,s=o.View,l=e.ui.Loader,u="external",d="href",c="#!",h="navigate",v="viewShow",p="sameViewRequested",g=/popover|actionsheet|modalview|drawer/,f="#:back",w=t.attrValue,m="button backbutton detailbutton listview-link",b="tab",k=a.extend({init:function(i,e){var n=this;a.fn.init.call(n,i,e),e=n.options,i=n.element,i.addClass("km-pane"),n.options.collapsible&&i.addClass("km-collapsible-pane"),this.history=[],this.historyCallback=function(i,t){var e=n.transition;n.transition=null,n.viewEngine.showView(i,e,t)},n._historyNavigate=function(i){var e=t.parseQueryStringParams(i);if(i===f){if(1===n.history.length)return;n.history.pop(),i=n.history[n.history.length-1]}else n.history.push(i);n.historyCallback(i,e)},n.loader=new l(i,{loading:n.options.loading}),n.viewEngine=new r({container:i,transition:e.transition,rootNeeded:!e.initial,serverNavigation:e.serverNavigation,remoteViewURLPrefix:e.root||"",layout:e.layout,loader:n.loader}),n.viewEngine.bind("showStart",function(){n.closeActiveDialogs()}),n.viewEngine.bind(v,function(i){n.trigger(v,i)}),n.viewEngine.bind(p,function(i){n.trigger(p,i)}),n.viewEngine.bind("viewTypeDetermined",function(i){i.remote&&n.options.serverNavigation||n.trigger(h,{url:i.url})}),this._setPortraitWidth(),t.onResize(function(){n._setPortraitWidth()}),n._setupAppLinks()},closeActiveDialogs:function(){var e=this.element.find(n("actionsheet popover modalview")).filter(":visible");e.each(function(){t.widgetInstance(i(this),o).close()})},navigateToInitial:function(){var i=this.options.initial;i&&this.navigate(i)},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,loading:"