text: !function(e){function t(){this.version="1.0.0"}function a(){var t=this;t.get=function(t){var a=e(t).hasClass("checkkbox-selected");return a},t.set=function(t,a){return e(t).hasClass("checkkbox-disabled")?!1:void(a?e(t).removeClass("checkkbox-default").addClass("checkkbox-selected"):e(t).removeClass("checkkbox-selected").addClass("checkkbox-default"))},t.toggle=function(t){return e(t).hasClass("checkkbox-disabled")?!1:void(e(t).hasClass("checkkbox-default")?e(t).removeClass("checkkbox-default").addClass("checkkbox-selected"):e(t).removeClass("checkkbox-selected").addClass("checkkbox-default"))}}function o(){var t=this;t.show=function(t){e(t).animate({left:0},300,"ease-out")},t.hide=function(t){e(t).animate({left:"110%"},300,"ease-out")}}"undefined"==typeof e&&console.error("vpal needs zepto.js"),"undefined"==typeof window.Vpal&&(Vpal={});var n={};n.arrIndexOf=function(e,t){for(var a=0;a<e.length;a++)if(t===e[a])return a;return-1},t.prototype.checkbox=new a,e.checkbox=new a,e('[role="checkbox"]').tap(function(){e.checkbox.toggle(this)}),e("body").on("focus",".v-ipt",function(t){var a=t.target;e(a).siblings(".del").removeClass("hide")}).on("blur",".v-ipt",function(t){var a=t.target;setTimeout(function(){e(a).siblings(".del").addClass("hide")},300)}),e("body").on("input",".v-ipt",function(t){var a=t.target;e(a).siblings(".del").removeClass("hide")}),e("body").on("tap",".del",function(t){var a=t.target;e(a).addClass("hide").siblings(".v-ipt").val("")}),t.prototype.modal=new o,e.fn.modal=function(t){"show"===t?this.animate({left:0},300,"ease-out"):"hide"===t&&(this.animate({left:"110%"},300,"ease-out"),e("body").css("overflow","auto"))},e("body").on("tap","[data-modal]",function(t){var a=t.target,o=e(a).data("modal"),n=e(a).data("action");return""==o?!1:""==n?!1:void("show"===n?e(o).modal("show"):"hide"==n&&e(o).modal("hide"))}),e("body").on("tap",".tab",function(t){var a=t.target,o=e(a).data("tab"),n=e('[data-pannel="left"]'),s=e('[data-pannel="right"]');return void 0===o?!1:(e(a).addClass("active").siblings(".tab").removeClass("active"),void("left"===o?(n.removeClass("hide"),s.addClass("hide")):(n.addClass("hide"),s.removeClass("hide"))))});var s=function(t,a){this.obj=e('<div class="trace">'+t+"</div>"),this.fn=a};s.prototype={show:function(){var e=this.obj;e.appendTo("body").fadeIn(100)},hide:function(){var e=this.fn,t=this.obj;t.appendTo("body").fadeOut(100,function(){t.remove()}),e&&e()}},e.trace=function(e,t,a){a=a||3e3;var o=new s(e,t);o.show();var n=setTimeout(function(){o.hide(),clearTimeout(n)},a)},e.fn.button=function(e){var t="";return"undefined"==typeof e?!1:void(e.disabled?(t=this.text(),this.attr("data-text",t).removeClass("btn-red").addClass("btn-diasbled").text("\u5b89\u5168\u52a0\u8f7d\u4e2d...")):(t=this.data("text"),this.removeClass("btn-diasbled").addClass("btn-red").text(t)))},e.fn.buttonLoading=function(e,t){return"undefined"==typeof e?this.hasClass("btn-animate")&&!this.hasClass("btn-animate-remove")?!0:!1:("show"===e?this.hasClass("btn-animate-remove")?this.removeClass("btn-animate-remove"):this.addClass("btn-animate"):"hide"===e&&this.addClass("btn-animate-remove"),void("function"==typeof t&&t()))};var i=function(){var t='<div class="loading"><div class="loading-holder"><div class="logo"></div><div class="text">\u4e3a\u60a8\u5b89\u5168\u52a0\u8f7d\u4e2d<div class="loading-style"><span></span><span></span><span></span></div></div></div></div>';this.obj=e(t)};i.prototype={show:function(){var e=this.obj;e.appendTo("body").fadeIn(100)},hide:function(){var e=(this.fn,this.obj);e.appendTo("body").fadeOut(100,function(){e.remove()})}};var d=new i;e.loading=function(e){return"undefined"==typeof e?!1:void("show"===e?d.show():"hide"===e&&d.hide())},e("body").on("touchstart","[data-hover]",function(t){e(t.target).addClass("touching")}),e("body").on("touchend","[data-hover]",function(t){e(t.target).removeClass("touching")}),window.vpalmobileui=window.VMU=new t,Vpal.ui=new t}(Zepto);