Files
luos/workflow/public_html/mobile/build-prod/js/pmDynaform.min.js

15 lines
461 KiB
JavaScript
Raw Permalink Normal View History

2015-05-09 15:20:57 -04:00
if(!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=at.type(e);return"function"===n||at.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(at.isFunction(t))return at.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return at.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ht.test(t))return at.filter(t,e,n);t=at.filter(t,e)}return at.grep(e,function(e){return at.inArray(e,t)>=0!==n})}function a(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=wt[e]={};return at.each(e.match(bt)||[],function(e,n){t[n]=!0}),t}function r(){pt.addEventListener?(pt.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(pt.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(pt.addEventListener||"load"===event.type||"complete"===pt.readyState)&&(r(),at.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Tt,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ct.test(n)?at.parseJSON(n):n}catch(a){}at.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!at.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function d(e,t,n,i){if(at.acceptData(e)){var a,o,r=at.expando,s=e.nodeType,l=s?at.cache:e,u=s?e[r]:e[r]&&r;if(u&&l[u]&&(i||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[r]=Y.pop()||at.guid++:r),l[u]||(l[u]=s?{}:{toJSON:at.noop}),("object"==typeof t||"function"==typeof t)&&(i?l[u]=at.extend(l[u],t):l[u].data=at.extend(l[u].data,t)),o=l[u],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[at.camelCase(t)]=n),"string"==typeof t?(a=o[t],null==a&&(a=o[at.camelCase(t)])):a=o,a}}function c(e,t,n){if(at.acceptData(e)){var i,a,o=e.nodeType,r=o?at.cache:e,s=o?e[at.expando]:at.expando;if(r[s]){if(t&&(i=n?r[s]:r[s].data)){at.isArray(t)?t=t.concat(at.map(t,at.camelCase)):t in i?t=[t]:(t=at.camelCase(t),t=t in i?[t]:t.split(" ")),a=t.length;for(;a--;)delete i[t[a]];if(n?!u(i):!at.isEmptyObject(i))return}(n||(delete r[s].data,u(r[s])))&&(o?at.cleanData([e],!0):nt.deleteExpando||r!=r.window?delete r[s]:r[s]=null)}}}function h(){return!0}function f(){return!1}function p(){try{return pt.activeElement}catch(e){}}function m(e){var t=jt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,i,a=0,o=typeof e.getElementsByTagName!==xt?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==xt?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[a]);a++)!t||at.nodeName(i,t)?o.push(i):at.merge(o,g(i,t));return void 0===t||t&&at.nodeName(e,t)?at.merge([e],o):o}function v(e){St.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return at.nodeName(e,"table")&&at.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==at.find.attr(e,"type"))+"/"+e.type,e}function w(e){var t=Jt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){for(var n,i=0;null!=(n=e[i]);i++)at._data(n,"globalEval",!t||at._data(t[i],"globalEval"))}function D(e,t){if(1===t.nodeType&&at.hasData(e)){var n,i,a,o=at._data(e),r=at._data(t,o),s=o.events;if(s){delete r.handle,r.events={};for(n in s)for(i=0,a=s[n].length;a>i;i++)at.event.add(t,n,s[n][i])}r.data&&(r.data=at.extend({},r.data))}}function x(e,t){var n,i,a;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[at.expando]){a=at._data(t);for(i in a.events)at.removeEvent(t,i,a.handle);t.removeAttribute(at.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,w(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTM
},M=t.compile=function(e,t){var n,i=[],a=[],o=q[e+" "];if(!o){for(t||(t=T(e)),n=t.length;n--;)o=y(t[n]),o[R]?i.push(o):a.push(o);o=q(e,b(a,i)),o.selector=e}return o},P=t.select=function(e,t,n,i){var a,o,r,s,l,u="function"==typeof e&&e,c=!i&&T(e=u.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(r=o[0]).type&&k.getById&&9===t.nodeType&&$&&D.relative[o[1].type]){if(t=(D.find.ID(r.matches[0].replace(kt,Dt),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(a=pt.needsContext.test(e)?0:o.length;a--&&(r=o[a],!D.relative[s=r.type]);)if((l=D.find[s])&&(i=l(r.matches[0].replace(kt,Dt),bt.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(a,1),e=i.length&&h(o),!e)return Z.apply(n,i),n;break}}return(u||M(e,c))(i,t,!$,n,bt.test(e)&&d(t.parentNode)||t),n},k.sortStable=R.split("").sort(W).join("")===R,k.detectDuplicates=!!S,E(),k.sortDetached=a(function(e){return 1&e.compareDocumentPosition(N.createElement("div"))}),a(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&a(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),a(function(e){return null==e.getAttribute("disabled")})||o(nt,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);at.find=ut,at.expr=ut.selectors,at.expr[":"]=at.expr.pseudos,at.unique=ut.uniqueSort,at.text=ut.getText,at.isXMLDoc=ut.isXML,at.contains=ut.contains;var dt=at.expr.match.needsContext,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ht=/^.[^:#\[\.,]*$/;at.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?at.find.matchesSelector(i,e)?[i]:[]:at.find.matches(e,at.grep(t,function(e){return 1===e.nodeType}))},at.fn.extend({find:function(e){var t,n=[],i=this,a=i.length;if("string"!=typeof e)return this.pushStack(at(e).filter(function(){for(t=0;a>t;t++)if(at.contains(i[t],this))return!0}));for(t=0;a>t;t++)at.find(e,i[t],n);return n=this.pushStack(a>1?at.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&dt.test(e)?at(e):e||[],!1).length}});var ft,pt=e.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=at.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:mt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ft).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof at?t[0]:t,at.merge(this,at.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:pt,!0)),ct.test(n[1])&&at.isPlainObject(t))for(n in t)at.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=pt.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return ft.find(e);this.length=1,this[0]=i}return this.context=pt,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):at.isFunction(e)?ft.ready!==void 0?ft.ready(e):e(at):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),at.makeArray(e,this))};gt.prototype=at.fn,ft=at(pt);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};at.extend({dir:function(e,t,n){for(var i=[],a=e[t];a&&9!==a.nodeType&&(void 0===n||1!==a.nodeType||!at(a).is(n));)1===a.nodeType&&i.push(a),a=a[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),at.fn.extend({has:function(e){var t,n=at(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(at.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,a=this.length,o=[],r=dt.test(e)||"string"!=typeof e?at(e,t||this.context):0;a>i;i++)for(n=this[i];n&&n!==t;n=n.pare
return n=n||en(e),r=n?n[t]:void 0,null==r&&s&&s[t]&&(r=s[t]),an.test(r)&&!on.test(t)&&(i=s.left,a=e.runtimeStyle,o=a&&a.left,o&&(a.left=e.currentStyle.left),s.left="fontSize"===t?"1em":r,r=s.pixelLeft+"px",s.left=i,o&&(a.left=o)),void 0===r?r:r+""||"auto"}),!function(){function t(){var t,n,i,a;n=pt.getElementsByTagName("body")[0],n&&n.style&&(t=pt.createElement("div"),i=pt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=r=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,r="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,a=t.appendChild(pt.createElement("div")),a.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",a.style.marginRight=a.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=t.getElementsByTagName("td"),a[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===a[0].offsetHeight,s&&(a[0].style.display="",a[1].style.display="none",s=0===a[0].offsetHeight),n.removeChild(i))}var n,i,a,o,r,s,l;n=pt.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=n.getElementsByTagName("a")[0],(i=a&&a.style)&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,at.extend(nt,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==r&&t(),r},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),at.swap=function(e,t,n,i){var a,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];a=n.apply(e,i||[]);for(o in t)e.style[o]=r[o];return a};var rn=/alpha\([^)]*\)/i,sn=/opacity\s*=\s*([^)]*)/,ln=/^(none|table(?!-c[ea]).+)/,un=RegExp("^("+Mt+")(.*)$","i"),dn=RegExp("^([+-])=("+Mt+")","i"),cn={position:"absolute",visibility:"hidden",display:"block"},hn={letterSpacing:"0",fontWeight:"400"},fn=["Webkit","O","Moz","ms"];at.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tn(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,r,s=at.camelCase(t),l=e.style;if(t=at.cssProps[s]||(at.cssProps[s]=P(l,s)),r=at.cssHooks[t]||at.cssHooks[s],void 0===n)return r&&"get"in r&&void 0!==(a=r.get(e,!1,i))?a:l[t];if(o=typeof n,"string"===o&&(a=dn.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(at.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||at.cssNumber[s]||(n+="px"),nt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(r&&"set"in r&&void 0===(n=r.set(e,n,i)))))try{l[t]=n}catch(u){}}},css:function(e,t,n,i){var a,o,r,s=at.camelCase(t);return t=at.cssProps[s]||(at.cssProps[s]=P(e.style,s)),r=at.cssHooks[t]||at.cssHooks[s],r&&"get"in r&&(o=r.get(e,!0,n)),void 0===o&&(o=tn(e,t,i)),"normal"===o&&t in hn&&(o=hn[t]),""===n||n?(a=parseFloat(o),n===!0||at.isNumeric(a)?a||0:o):o}}),at.each(["height","width"],function(e,t){at.cssHooks[t]={get:function(e,n,i){return n?ln.test(at.css(e,"display"))&&0===e.offsetWidth?at.swap(e,cn,function(){return E(e,t,i)}):E(e,t,i):void 0},set:function(e,n,i){var a=i&&en(e);return _(e,n,i?S(e,t,i,nt.boxSizing&&"border-box"===at.css(e,"boxSizing",!1,a),a):0)}}}),nt.opacity||(at.cssHooks.opacity={get:function(e,t){return sn.test((t&&e.currentStyle?
2015-04-30 21:51:21 -04:00
}})}),at.fn.size=function(){return this.length},at.fn.andSelf=at.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return at});var oi=e.jQuery,ri=e.$;return at.noConflict=function(t){return e.$===at&&(e.$=ri),t&&e.jQuery===at&&(e.jQuery=oi),at},typeof t===xt&&(e.jQuery=e.$=at),at}),"undefined"==typeof jQuery)throw Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one(e.support.transition.end,function(){n=!0});var a=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(a,t),this},e(function(){e.support.transition=t()})}(jQuery),+function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function n(){o.trigger("closed.bs.alert").remove()}var i=e(this),a=i.attr("data-target");a||(a=i.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var o=e(a);t&&t.preventDefault(),o.length||(o=i.hasClass("alert")?i:i.parent()),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one(e.support.transition.end,n).emulateTransitionEnd(150):n())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),a=i.data("bs.alert");a||i.data("bs.alert",a=new n(this)),"string"==typeof t&&a[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),+function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i),this.isLoading=!1};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",i=this.$element,a=i.is("input")?"val":"html",o=i.data();t+="Text",o.resetText||i.data("resetText",i[a]()),i[a](o[t]||this.options[t]),setTimeout(e.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var i=e(this),a=i.data("bs.button"),o="object"==typeof n&&n;a||i.data("bs.button",a=new t(this,o)),"toggle"==n?a.toggle():n&&a.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),t.preventDefault()})}(jQuery),+function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},t.prototype.to=function(t){var n=this,i=this.getActiveIndex();return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("s
2015-05-09 15:20:57 -04:00
}function f(e){var t=M(e),n=t.year||0,i=t.quarter||0,a=t.month||0,o=t.week||0,r=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*u+6e4*l+36e5*s,this._days=+r+7*o,this._months=+a+3*i+12*n,this._data={},this._locale=kt.localeData(),this._bubble()}function p(e,t){for(var i in t)n(t,i)&&(e[i]=t[i]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t){var n,i,a;if(t._isAMomentObject!==void 0&&(e._isAMomentObject=t._isAMomentObject),t._i!==void 0&&(e._i=t._i),t._f!==void 0&&(e._f=t._f),t._l!==void 0&&(e._l=t._l),t._strict!==void 0&&(e._strict=t._strict),t._tzm!==void 0&&(e._tzm=t._tzm),t._isUTC!==void 0&&(e._isUTC=t._isUTC),t._offset!==void 0&&(e._offset=t._offset),t._pf!==void 0&&(e._pf=t._pf),t._locale!==void 0&&(e._locale=t._locale),jt.length>0)for(n in jt)i=jt[n],a=t[i],a!==void 0&&(e[i]=a);return e}function g(e){return 0>e?Math.ceil(e):Math.floor(e)}function v(e,t,n){for(var i=""+Math.abs(e),a=e>=0;t>i.length;)i="0"+i;return(a?n?"+":"":"-")+i}function y(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function b(e,t){var n;return t=A(t,e),e.isBefore(t)?n=y(e,t):(n=y(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function w(e,t){return function(n,i){var a,o;return null===i||isNaN(+i)||(r(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),o=n,n=i,i=o),n="string"==typeof n?+n:n,a=kt.duration(n,i),k(this,a,e),this}}function k(e,t,n,i){var a=t._milliseconds,o=t._days,r=t._months;i=null==i?!0:i,a&&e._d.setTime(+e._d+a*n),o&&mt(e,"Date",pt(e,"Date")+o*n),r&&ft(e,pt(e,"Month")+r*n),i&&kt.updateOffset(e,o||r)}function D(e){return"[object Array]"===Object.prototype.toString.call(e)}function x(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function C(e,t,n){var i,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),r=0;for(i=0;a>i;i++)(n&&e[i]!==t[i]||!n&&F(e[i])!==F(t[i]))&&r++;return r+o}function T(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=hn[e]||fn[t]||t}return e}function M(e){var t,i,a={};for(i in e)n(e,i)&&(t=T(i),t&&(a[t]=e[i]));return a}function P(t){var n,i;if(0===t.indexOf("week"))n=7,i="day";else{if(0!==t.indexOf("month"))return;n=12,i="month"}kt[t]=function(a,o){var r,s,l=kt._locale[t],u=[];if("number"==typeof a&&(o=a,a=e),s=function(e){var t=kt().utc().set(i,e);return l.call(kt._locale,t,a||"")},null!=o)return s(o);for(r=0;n>r;r++)u.push(s(r));return u}}function F(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function _(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function S(e,t,n){return ut(kt([e,11,31+t-n]),t,n).week}function E(e){return N(e)?366:365}function N(e){return 0===e%4&&0!==e%100||0===e%400}function O(e){var t;e._a&&-2===e._pf.overflow&&(t=0>e._a[_t]||e._a[_t]>11?_t:1>e._a[St]||e._a[St]>_(e._a[Ft],e._a[_t])?St:0>e._a[Et]||e._a[Et]>24||24===e._a[Et]&&(0!==e._a[Nt]||0!==e._a[Ot]||0!==e._a[$t])?Et:0>e._a[Nt]||e._a[Nt]>59?Nt:0>e._a[Ot]||e._a[Ot]>59?Ot:0>e._a[$t]||e._a[$t]>999?$t:-1,e._pf._overflowDayOfYear&&(Ft>t||t>St)&&(t=St),e._pf.overflow=t)}function $(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&0>t._pf.overflow&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===e)),t._isValid}function I(e){return e?e.toLowerCase().replace("_","-"):e}function j(e){for(var t,n,i,a,o=0;e.length>o;){for(a=I(e[o]).split("-"),t=a.length,n=I(e[o+1]),n=n?n.split("-"):null;t>0;){if(i=L(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&C(a,n,!0)>=t-1)break;t--}o++}return null}function L(e){var t=null;if(!It[e]&&Lt)try{t=kt.locale(),require("./locale/"+e),kt.locale(t)}catch(n){}return It[e]}function A(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(kt.isMoment(e)||x(e)?+e:+kt(e)
return this.asSeconds()?(0>this.asSeconds()?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(i||a||o?"T":"")+(i?i+"H":"")+(a?a+"M":"")+(o?o+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),kt.duration.fn.toString=kt.duration.fn.toISOString;for(xt in cn)n(cn,xt)&&bt(xt.toLowerCase());kt.duration.fn.asMilliseconds=function(){return this.as("ms")},kt.duration.fn.asSeconds=function(){return this.as("s")},kt.duration.fn.asMinutes=function(){return this.as("m")},kt.duration.fn.asHours=function(){return this.as("h")},kt.duration.fn.asDays=function(){return this.as("d")},kt.duration.fn.asWeeks=function(){return this.as("weeks")},kt.duration.fn.asMonths=function(){return this.as("M")},kt.duration.fn.asYears=function(){return this.as("y")},kt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===F(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),Lt?module.exports=kt:"function"==typeof define&&define.amd?(define(function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(Tt.moment=Dt),kt}),wt(!0)):wt()}.call(this),function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)e(require("jquery"),require("moment"));else{if(!jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if(!moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(e,t){"use strict";if(!t)throw Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var a,o,r,s,l,u={},d=t(),c=d.clone(),h=!0,f=!1,p=!1,m=0,g=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10}],v=["days","months","years"],y=["top","bottom","auto"],b=["left","right","auto"],w=["default","top","bottom"],k=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==r.indexOf("Y");case"M":return-1!==r.indexOf("M");case"d":return-1!==r.toLowerCase().indexOf("d");case"h":case"H":return-1!==r.toLowerCase().indexOf("h");case"m":return-1!==r.indexOf("m");case"s":return-1!==r.indexOf("s");default:return!1}},D=function(){return k("h")||k("m")||k("s")},x=function(){return k("y")||k("M")||k("d")},C=function(){var t=e("<thead>").append(e("<tr>").append(e("<th>").addClass("prev").attr("data-action","previous").append(e("<span>").addClass(i.icons.previous))).append(e("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(e("<th>").addClass("next").attr("data-action","next").append(e("<span>").addClass(i.icons.next)))),n=e("<tbody>").append(e("<tr>").append(e("<td>").attr("colspan",i.calendarWeeks?"8":"7")));return[e("<div>").addClass("datepicker-days").append(e("<table>").addClass("table-condensed").append(t).append(e("<tbody>"))),e("<div>").addClass("datepicker-months").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-years").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone()))]},T=function(){var t=e("<tr>"),n=e("<tr>"),a=e("<tr>");return k("h")&&(t.append(e("<td>").append(e("<a>").attr("href","#").addClass("btn").attr("data-action","incrementHours").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-hour").attr("data-time-component","hours").attr("data-action","showHours"))),a.append(e("<td>").append(e("<a>").attr("href","#").addClass("btn").attr("data-action","decrementHours").append(e("<span>").addClass(i.icons.down))))),k("m")&&(k("h")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),a.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr("href","#").addClass("btn").attr("data-action","incrementMinutes").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").
}),o},x.union=function(){return x.uniq(x.flatten(arguments,!0))},x.intersection=function(e){var t=s.call(arguments,1);return x.filter(x.uniq(e),function(e){return x.every(t,function(t){return x.contains(t,e)})})},x.difference=function(e){var t=l.apply(i,s.call(arguments,1));return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){for(var e=x.max(x.pluck(arguments,"length").concat(0)),t=Array(e),n=0;e>n;n++)t[n]=x.pluck(arguments,""+n);return t},x.object=function(e,t){if(null==e)return{};for(var n={},i=0,a=e.length;a>i;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},x.indexOf=function(e,t,n){if(null==e)return-1;var i=0,a=e.length;if(n){if("number"!=typeof n)return i=x.sortedIndex(e,t),e[i]===t?i:-1;i=0>n?Math.max(0,a+n):n}if(y&&e.indexOf===y)return e.indexOf(t,n);for(;a>i;i++)if(e[i]===t)return i;return-1},x.lastIndexOf=function(e,t,n){if(null==e)return-1;var i=null!=n;if(b&&e.lastIndexOf===b)return i?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var a=i?n:e.length;a--;)if(e[a]===t)return a;return-1},x.range=function(e,t,n){1>=arguments.length&&(t=e||0,e=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((t-e)/n),0),a=0,o=Array(i);i>a;)o[a++]=e,e+=n;return o};var S=function(){};x.bind=function(e,t){var n,i;if(D&&e.bind===D)return D.apply(e,s.call(arguments,1));if(!x.isFunction(e))throw new TypeError;return n=s.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,n.concat(s.call(arguments)));S.prototype=e.prototype;var a=new S;S.prototype=null;var o=e.apply(a,n.concat(s.call(arguments)));return Object(o)===o?o:a}},x.partial=function(e){var t=s.call(arguments,1);return function(){for(var n=0,i=t.slice(),a=0,o=i.length;o>a;a++)i[a]===x&&(i[a]=arguments[n++]);for(;arguments.length>n;)i.push(arguments[n++]);return e.apply(this,i)}},x.bindAll=function(e){var t=s.call(arguments,1);if(0===t.length)throw Error("bindAll must be passed function names");return C(t,function(t){e[t]=x.bind(e[t],e)}),e},x.memoize=function(e,t){var n={};return t||(t=x.identity),function(){var i=t.apply(this,arguments);return x.has(n,i)?n[i]:n[i]=e.apply(this,arguments)}},x.delay=function(e,t){var n=s.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=function(e){return x.delay.apply(x,[e,1].concat(s.call(arguments,1)))},x.throttle=function(e,t,n){var i,a,o,r=null,s=0;n||(n={});var l=function(){s=n.leading===!1?0:x.now(),r=null,o=e.apply(i,a),i=a=null};return function(){var u=x.now();s||n.leading!==!1||(s=u);var d=t-(u-s);return i=this,a=arguments,0>=d?(clearTimeout(r),r=null,s=u,o=e.apply(i,a),i=a=null):r||n.trailing===!1||(r=setTimeout(l,d)),o}},x.debounce=function(e,t,n){var i,a,o,r,s,l=function(){var u=x.now()-r;t>u?i=setTimeout(l,t-u):(i=null,n||(s=e.apply(o,a),o=a=null))};return function(){o=this,a=arguments,r=x.now();var u=n&&!i;return i||(i=setTimeout(l,t)),u&&(s=e.apply(o,a),o=a=null),s}},x.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}},x.wrap=function(e,t){return x.partial(t,e)},x.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},x.after=function(e,t){return function(){return 1>--e?t.apply(this,arguments):void 0}},x.keys=function(e){if(!x.isObject(e))return[];if(k)return k(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return t},x.values=function(e){for(var t=x.keys(e),n=t.length,i=Array(n),a=0;n>a;a++)i[a]=e[t[a]];return i},x.pairs=function(e){for(var t=x.keys(e),n=t.length,i=Array(n),a=0;n>a;a++)i[a]=[t[a],e[t[a]]];return i},x.invert=function(e){for(var t={},n=x.keys(e),i=0,a=n.length;a>i;i++)t[e[n[i]]]=n[i];return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=function(e){return C(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},x.pick=function(e){var t={},n=l.apply(i,s.call(arguments,1));return C(n,function(n){n in e&&(t[n]=e[n])}),t},x.omit=function(e){var t={},n=l.apply(i,s.call(arguments,1));for(var a in e)x.contains(n,a)||(t[a]=e[a]);return t},x.defaults=f
},RestClient.prototype.setOAuth2NeedsAuthorization=function(e){return _.isBoolean(e)&&(this.oauth2NeedsAuthorization=e),this},RestClient.prototype.setDataType=function(e){var t={json:"application/json",plain:"text/plain",form:"application/x-www-form-urlencoded",html:"text/html"};return t[e]&&(this.dataType=e,this.contentType=t[e]),this},RestClient.prototype.setAccessTokenExpiredMessage=function(e){return this.expiredAccessTokenMessage=e,this},RestClient.prototype.getVersion=function(){return this.VERSION},RestClient.prototype.setClient=function(e,t,n){return this.authorization.client_id=e,this.authorization.client_secret=t,this.authorization.client_url="undefined"!==n?n:null,this},RestClient.prototype.setGrantType=function(e,t){return this.authorization.grant_type="undefined"!==this.OAUTH2GrantTypes[e]?this.OAUTH2GrantTypes[e]:null,this.authorization=_.extend(this.authorization,t),this},RestClient.prototype.setAuthorizationServer=function(e){var t,n=!0;return e===void 0||null===e?n=!1:(t=/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,e.match(t)?this.server.rest_auth_uri=e:n=!1),n},RestClient.prototype.setHeader=function(e,t){var n,i=!0;return e&&t?(n=JSON.parse('{"'+e+'" : "'+t+'"}'),this.headers=_.extend(this.headers,n)):i=!1,i},RestClient.prototype.JSONParse=function(e){var t;try{t=e?""===e?"":JSON.parse(e):""}catch(n){t="ERROR_PARSE"}return t},RestClient.prototype.setBasicCredentials=function(e,t){return this.authorization.basic_user=e,this.authorization.basic_password=t,this},RestClient.prototype.setAccessToken=function(e){return"object"==typeof e&&(this.accessToken=e),this},RestClient.prototype.setRestfulBehavior=function(e){return _.isBoolean(e)&&(this.restfulBehavior=e),this},RestClient.prototype.setBackupAjaxUrl=function(e){return this.backupAJAXURL=e,this},RestClient.prototype.toParams=function(e){var t=_.keys(e),n=[];return _.each(t,function(t){n.push(t+"="+e[t])}),n.join("&")},RestClient.prototype.prepareBody=function(e){var t="";return"json"===this.dataType||"jsonp"===this.dataType?"object"==typeof e&&(t=JSON.stringify(e)):t=this.toParams(e),t},RestClient.prototype.createXHR=function(){var e;if(window.XMLHttpRequest)e=new XMLHttpRequest;else try{e=new ActiveXObject("MSXML2.XMLHTTP")}catch(t){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(n){}}return e?e:!1},RestClient.prototype.authorize=function(e){var t,n,i,a,o=this,r=!1,s="create",l=this.RESTMethods[s];t=RCBase64.encode(this.authorization.client_id+":"+this.authorization.client_secret),n=this.createXHR();try{n.open(l,this.server.rest_auth_uri,!1)}catch(u){return e.xhrfailure?e.xhrfailure(u,{}):this.XHRFailure(u,{}),r}if(n.onreadystatechange=function(){if(e.ready?e.ready(n):o.AuthorizeReady(n),4===n.readyState){if(a=o.JSONParse(n.responseText),-1!=o.HTTP_SUCCESS.indexOf(n.status+"")&&"ERROR_PARSE"!==a)if(o.autoStoreAccessToken&&(o.accessToken=a.token||{}),r=!0,e.success)try{e.success(n,a)}catch(t){throw Error(t.message)}else o.AuthorizeSuccess(n,a);else if("ERROR_PARSE"===a&&(a={success:!1,error:{error:o.HTTP_BAD_REQUEST,error_description:"Response is not a valid JSON"}}),e.failure)try{e.failure(n,a)}catch(t){throw Error(t.message)}else o.AuthorizeFailure(n,a);"function"==typeof e.complete&&e.complete(n,a)}},i={},this.authorization.grant_type)switch(i.grant_type=this.authorization.grant_type,this.authorization.grant_type){case"authorization_code":i.code=this.authorization.code;break;case"token":i.token=this.authorization.token;break;case"password":i.username=this.authorization.username,i.password=this.authorization.password;break;case"client_credentials":i.client_id=this.authorization.client_id,i.client_id=this.authorization.client_secret;break;case"refresh_token":i.refresh_token=this.authorization.refresh_token}return this.oauth2NeedsAuthorization&&n.setRequestHeader("Authorization","Basic "+t),n.setRequestHeader("Accept",this.acceptType),n.setRequestHeader("Content-Type",this.contentType),_.each(this.headers,function(e,t){n.setRequestHeader(t,e)}),n.send(this.prepareBody(i)),r},RestClient.prototype.prepareReqFields=f
2025-04-13 15:23:31 +00:00
},e.prototype.setFailureCallback=function(e){return"function"==typeof e&&(this.failureCallback=e),this},e.prototype.setCompleteCallback=function(e){return"function"==typeof e&&(this.completeCallback=e),this},e.prototype.getFullProxyPath=function(){return this.server+"/"+this.keys.apiName+"/"+this.keys.apiVersion+"/"+this.keys.workspace+"/"+"project"+"/"+this.keys.processId+"/"+this.endpoint},e.prototype.setRestProxy=function(){var e=this;return this.restProxy=new PMDynaform.proxy.RestProxy({url:this.url,method:e.method,data:e.data,authorizationOAuth:!0,dataType:this.dataType,success:e.successCallback,failure:e.failureCallback,complete:e.completeCallback}),this.restProxy.setAuthorizationType("oauth2",{access_token:this.keys.accessToken}),this},e.prototype.executeRestProxy=function(){var e={POST:"post",UPDATE:"update",GET:"get",DELETE:"remove"};return this.restProxy[e[this.method]](),this},PMDynaform.extendNamespace("PMDynaform.core.Proxy",e)}(),function(){var e=function(t){this.parentMode=null,this.field=null,this.json=null,this.jsonBuilt=null,e.prototype.init.call(this,t)};e.prototype.init=function(t){var n={parentMode:"edit",field:{},json:{text:e.prototype.text,textarea:e.prototype.textArea,checkbox:e.prototype.checkbox,radio:e.prototype.radio,dropdown:e.prototype.dropdown,button:e.prototype.button,submit:e.prototype.submit,datetime:e.prototype.datetime,suggest:e.prototype.suggest,link:e.prototype.link,file:e.prototype.file,grid:e.prototype.grid}};return jQuery.extend(!0,n,t),this.jsonBuilt=n.field,this.setParentMode(n.parentMode).setField(n.field).setJSONFactory(n.json).buildJSON(),this},e.prototype.setParentMode=function(e){return this.parentMode=e,this},e.prototype.text=function(e){return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:[e.defaultValue||e.value],data:e.data}},e.prototype.textArea=function(e){return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:[e.defaultValue||e.value],data:e.data}},e.prototype.checkbox=function(e){var t,n=[];for(t=0;e.options.length>t;t+=1)e.options[t].selected&&e.options[t].selected===!0&&n.push(e.options[t].label);return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:n,data:e.data}},e.prototype.radio=function(e){var t,n=[];for(t=0;e.options.length>t;t+=1)e.defaultValue&&""+e.options[t].value==""+e.defaultValue&&n.push(e.options[t].label);return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:n,data:e.data}},e.prototype.dropdown=function(e){var t,n=[];for(t=0;e.options.length>t;t+=1)e.defaultValue&&""+e.options[t].value==""+e.defaultValue&&n.push(e.options[t].label);return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:n,data:e.data}},e.prototype.button=function(e){var t=e;return t},e.prototype.submit=function(e){var t=e;return t},e.prototype.datetime=function(e){return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:[e.defaultValue||e.value],data:e.data}},e.prototype.suggest=function(e){var t,n=[];for(t=0;e.options.length>t;t+=1)e.defaultValue&&""+e.options[t].value==""+e.defaultValue&&n.push(e.options[t].label);return{type:"label",colSpan:e.colSpan,label:e.label,fullOptions:n,data:e.data}},e.prototype.link=function(e){return{type:"label",colSpan:e.colSpan,label:e.label,options:[e.value]}},e.prototype.file=function(e){var t=e;return t},e.prototype.grid=function(e){var t=e;return t},e.prototype.setField=function(e){return this.field=e,this},e.prototype.setJSONFactory=function(e){return this.json=e,this},e.prototype.discardViewField=function(e){var t=["button","submit","image","label","title","subtitle"];return 0>$.inArray(e,t)?!0:!1},e.prototype.reviewField=function(e){var t,n,i=e,a=["text","suggest","textarea","datetime"];if(this.json[e.type]&&this.discardViewField(e.type))switch(e.mode){case"disabled":i=e,i.disabled=!0;break;case"parent":e.mode=this.parentMode,i=this.reviewField(e);break;case"view":i=this.json[e.type](e);break;default:i=e}if(i.originalType=e.originalType||e.type,i.var_name=e.var_name||"",i.var_uid=e.var_uid||"",i.options||e.var_accepted_values,e.data)if(i.fullOptions=[],-1!==a.indexOf(i.originalType))i.ful
2015-05-09 15:20:57 -04:00
},e.prototype.submitStep=function(e){var t,n=this.project.formsHandler,i=this.project.dataManager,a=this.project;i.addData(e.dataSubmit),i.addDataLocal(e.dataSubmit),e.dataSubmit&&(null==this.project.typeList?(t=n.getIndexForms(),a.caseID?this.submitCase(e):null==a.caseID&&this.submitCase(e)):this.submitCase(e)),a.showNavBar()},e.prototype.submitNew=function(){var e=(this.project.formsHandler,this.project);return infoCase=this.project.startCase(),"success"==infoCase.state?(this.project.setCaseID(infoCase.caseID),this.project.caseTitle=infoCase.caseTitle,this.project.caseNumber=infoCase.caseNumber,void 0):("internetFail"==infoCase.state&&(this.setToastMessage(e.language.ERROR_NETWORK_SUBMIT_NEW),this.internetFailData()),"unautorized"==infoCase.state&&(this.setToastMessage(e.language.ERROR_NETWORK_SUBMIT_NEW),this.internetFailData()),void 0)},e.prototype.submitCase=function(e){var t=this.project;this.project.formsHandler,e.dataSubmit&&(caseID=this.project.submitFormCase(e.dataSubmit),"success"==caseID.state&&(this.executeTriggerAfter(),this.sendFormData=e,this.project.sendSubmitInformationDevice(),this.setToastMessage(t.language.INFO_PMDYNAFORM_SUBMIT),t.emptyView(),this.advanceStep()||this.submitRoute()),"internetFail"==caseID.state&&(this.setToastMessage(t.language.ERROR_NETWORK_SUBMIT_CASE),this.internetFailData()),"unautorized"==caseID.state&&(this.setToastMessage(t.language.ERROR_NETWORK_SUBMIT_CASE),this.internetFailData()))},e.prototype.submitRoute=function(){var e,t,n=this.project;return this.project.formsHandler,e=this.project.routeCase(),"success"==e.state?(e.data.routing.length>0?(t=e.data.routing[0].userName,t=n.language.INFO_PMDYNAFORM_DERIVATED+"\n Next User:"+t):(t=e.data.routing.message,t="Message:"+t),this.setToastMessage(t),this.closeWebView(),void 0):("internetFail"==e.state&&(this.setToastMessage(n.language.ERROR_NETWORK_ROUTE),this.closeWebViewInternetFailed()),"unautorized"==e.state&&(this.setToastMessage(n.language.ERROR_NETWORK_ROUTE),this.closeWebViewInternetFailed()),void 0)},e.prototype.loadFormfromJson=function(){var e,t=this.project;if(responseDevice=this.getFormDefinitionDevice(),"success"==responseDevice.state)return this.project.loadProject(jsonForm.data),this.project.showNavBar(),void 0;switch(e=this.project.getFormDefinition(),e.state){case"success":this.project.loadProject(e.data),this.project.showNavBar();break;case"internetFail":this.setToastMessage(t.language.INFO_PMDYNAFORM_JSON),this.closeWebViewInternetFailed();break;case"unautorized":this.setToastMessage(t.language.INFO_PMDYNAFORM_JSON),this.closeWebViewInternetFailed();break;default:}},e.prototype.closeWebView=function(){switch(this.project.userAgent){case"android":JsInterface.SubmitFinishedCorrectly();break;default:}},e.prototype.closeWebViewInternetFailed=function(){switch(this.project.userAgent){case"android":JsInterface.submitFailedDueNoInternet();break;default:}},e.prototype.closeWebViewDerivated=function(){switch(this.project.userAgent){case"android":JsInterface.SubmitFinishedCorrectly();break;default:}},e.prototype.internetFail=function(){switch(this.project.userAgent){case"android":JsInterface.submitFailedDueNoInternet();break;default:}},e.prototype.internetFailData=function(){var e,t,n,i,a;return t=this.project.model.attributes,a=this.project.dataManager,i=this.project,a.addDataLocal(i.getDataCustom()),e=a.getDataLocal(),n={json:t,data:e,accessToken:this.project.token.accessToken,refreshToken:this.project.token.refreshToken,formID:this.project.keys.formID},"formslider-android"===navigator.userAgent&&(JsInterface.receiveFormData(JSON.stringify(n)),JsInterface.submitFailedDueNoInternet()),this},e.prototype.getFormDefinitionDevice=function(){var e={state:"internetFail"};switch(this.project.userAgent){case"android":-1==JsInterface.getFormId(this.formID)?e.state="failed":(e.state="success",e.data=JSON.parse(JsInterface.getFormId(this.formID)));break;default:}return e},e.prototype.setToastMessage=function(e){switch(navigator.userAgent){case"formslider-android":JsInterface.showToast(e);break;default:}},e.prototype.setCaseInform
return this.$el.addClass("pmdynaform-container"),$(this.renderTo).append(this.el),this},afterRender:function(){var e;for(e=0;this.views.length>e;e+=1)this.views[e].afterRender();return this}});PMDynaform.extendNamespace("PMDynaform.view.Panel",e)}(),function(){var e=Backbone.View.extend({tagName:"form",content:null,template:null,items:new PMDynaform.util.ArrayList,views:[],templateRow:_.template($("#tpl-row").html()),colSpanLabel:3,colSpanControl:9,project:null,preTargetControl:null,events:{submit:"onSubmit"},onChange:function(){},requireVariableByField:[],checkBinding:function(){this.onChangeCallback(this.model.get("name"),this.previusValue,this.model.get("value")),this.keyPressed||this.render()},setOnChange:function(e){return"function"==typeof e&&(this.onChangeCallback=e),this},onChangeHandler:function(){var e=this;return function(t,n,i){"function"==typeof e.onChange&&e.onChange(t,n,i)}},initialize:function(e){var t={factory:{products:{text:{model:PMDynaform.model.Text,view:PMDynaform.view.Text},textarea:{model:PMDynaform.model.TextArea,view:PMDynaform.view.TextArea},checkbox:{model:PMDynaform.model.Checkbox,view:PMDynaform.view.Checkbox},radio:{model:PMDynaform.model.Radio,view:PMDynaform.view.Radio},dropdown:{model:PMDynaform.model.Dropdown,view:PMDynaform.view.Dropdown},button:{model:PMDynaform.model.Button,view:PMDynaform.view.Button},submit:{model:PMDynaform.model.Submit,view:PMDynaform.view.Submit},datetime:{model:PMDynaform.model.Datetime,view:PMDynaform.view.Datetime},fieldset:{model:PMDynaform.model.Fieldset,view:PMDynaform.view.Fieldset},suggest:{model:PMDynaform.model.Suggest,view:PMDynaform.view.Suggest},link:{model:PMDynaform.model.Link,view:PMDynaform.view.Link},hidden:{model:PMDynaform.model.Hidden,view:PMDynaform.view.Hidden},title:{model:PMDynaform.model.Title,view:PMDynaform.view.Title},subtitle:{model:PMDynaform.model.Title,view:PMDynaform.view.Title},label:{model:PMDynaform.model.Label,view:PMDynaform.view.Label},empty:{model:PMDynaform.model.Empty,view:PMDynaform.view.Empty},file:{model:PMDynaform.model.File,view:PMDynaform.view.File},image:{model:PMDynaform.model.Image,view:PMDynaform.view.Image},geomap:{model:PMDynaform.model.GeoMap,view:PMDynaform.view.GeoMap},grid:{model:PMDynaform.model.GridPanel,view:PMDynaform.view.GridPanel},form:{model:PMDynaform.model.SubForm,view:PMDynaform.view.SubForm},annotation:{model:PMDynaform.model.Annotation,view:PMDynaform.view.Annotation},geomap_mobile:{model:PMDynaform.model.Geomap_mobile,view:PMDynaform.view.Geomap_mobile},qrcode_mobile:{model:PMDynaform.model.Qrcode_mobile,view:PMDynaform.view.Qrcode_mobile},signature_mobile:{model:PMDynaform.model.Signature_mobile,view:PMDynaform.view.Signature_mobile},image_mobile:{model:PMDynaform.model.Image_mobile,view:PMDynaform.view.Image_mobile},audio_mobile:{model:PMDynaform.model.Audio_mobile,view:PMDynaform.view.Audio_mobile},video_mobile:{model:PMDynaform.model.Video_mobile,view:PMDynaform.view.Video_mobile},panel:{model:PMDynaform.model.PanelField,view:PMDynaform.view.PanelField}},defaultProduct:"empty"}};this.items=new PMDynaform.util.ArrayList,e.project&&(this.project=e.project),this.setFactory(t.factory),this.makeItems()},setAction:function(){return this.$el.attr("action",this.model.get("action")),this},setMethod:function(){return this.$el.attr("method",this.model.get("method")),this},setFactory:function(e){return this.factory=e,this},getData:function(){return this.model.getData()},setData:function(e){var t,n,i=e,a=this.items.asArray();if("object"==typeof e)for(t=0;a.length>t;t+=1){for(n in i)a[t].model.attributes.variable&&a[t].model.attributes.variable.var_name===n&&a[t].model.set("value",i[n]);a[t]instanceof PMDynaform.view.SubForm&&a[t].setData(e),a[t]instanceof PMDynaform.view.GridPanel&&a[t].setData(e)}return this},setData2:function(e){var t,n,i,a,o,r,s,l,u,d;for(l=["text","textarea","datetime","radio","link","dropdown"],n=this.items.asArray(),t=0;n.length>t;t+=1){if(void 0!==e[n[t].model.get("name")]){if(r=n[t].model.get("mode"),a=n[t].model.get("type"),"edit"===r||"disabled"===r){if(-1!==l.indexOf(a)
return this.createHTMLContainer(),this.model.setPaginationItems(),this.createHTMLPager(),this.createHTMLTotal(),this},on:function(e,t){var n={remove:"setOnRemoveRowCallback",add:"setOnAddRowCallback",pager:"setOnClickPageCallback"};if(!n[e])throw Error("The event must be a valid event.\n The events available are remove, add and pager");return this[n[e]](t),this},setOnRemoveRowCallback:function(e){if("function"!=typeof e)throw Error("The callback must be a function");return this.onRemoveRowCallback=e,this},setOnAddRowCallback:function(e){if("function"!=typeof e)throw Error("The callback must be a function");return this.onAddRowCallback=e,this},setOnClickPageCallback:function(e){if("function"!=typeof e)throw Error("The callback must be a function");return this.onClickPageCallback=e,this},render:function(){var e,t;return this.$el.html(this.template(this.model.toJSON())),this.createHTMLTitle(),this.renderGridTable(),this.enableTooltip(),"static"===this.model.get("layout")&&(e=this.$el.find(".pmdynaform-grid-thead"),t=this.$el.find(".pmdynaform-grid-tbody"),t.css("overflow","auto"),t.scroll(function(n){e.scrollLeft(t.scrollLeft()),n.stopPropagation()})),this.model.get("addRow")||this.$el.find(".pmdynaform-grid-new").hide(),"responsive"===this.model.get("layout")&&$(window).resize(function(){{$(window).width()}}),this},afterRender:function(){},getData2:function(){var e,t,n,i,a,o;for(e={},t=this.gridtable,n=0;t.length>n;n+=1){for(e[n+1]={},a={},i=0;t[n].length>i;i+=1)"function"==typeof t[n][i].getData&&t[n][i]instanceof PMDynaform.view.Field&&(o=t[n][i].model.getData(),a[o.name]=o.value);e[n+1]=a}return e},setData2:function(e){var t,n,i,a,o,r,s,l,u,d,c,h,f,p;n=this.gridtable;for(t in e)for(parseInt(t,10)>this.gridtable.length&&(u=this.addRow(),this.renderGridTable(),this.onAddRowCallback(u,this)),i=n[parseInt(t,10)-1].length,a=0;i>a;a+=1){r=n[parseInt(t,10)-1][a],o=n[parseInt(t,10)-1][a].model,s=o.get("mode");for(l in e[t])if(o.get("columnName")===l){if("edit"===s||"disabled"===s)if("suggest"===o.get("type")){for(c=0;o.get("localOptions").length>c;c+=1)if(h=o.get("localOptions")[c].value,h===e[t][l]){d=o.get("localOptions")[c].label;break}if(d&&!d.length)for(c=0;o.get("options").length>c;c+=1)if(h=o.get("options")[c].value,h===e[t][l]){d=o.get("options")[c].label;break}$(r.el).find(":input").val(d),o.attributes.value=e[t][l]}else if("checkbox"===o.get("type")){if(f=o.get("options"),"boolean"===o.get("dataType"))e[o.get("name")]===f[0].value?(f[1].selected=!1,f[0].selected=!0):(delete f[0].selected,f[1].selected=!0,f[0].selected=!1);else for(p=0;f.length>p;p+=1)delete f[p].selected,e[t][l].indexOf(f[p])>-1&&(f[p].selected=!0);o.set("options",f),o.initControl(),o.set("value",[e[t][l]])}else o.set("value",e[t][l]);if("view"===s)if("checkbox"===o.get("originalType"))o.set("fullOptions",e[t][l]);else if("dropdown"===o.get("originalType")){for(d=[],c=0;o.get("localOptions").length>c;c+=1)if(h=o.get("localOptions")[c].value,h===e[t][l]){d.push(o.get("localOptions")[c].label),o.set("fullOptions",d);break}if(!d.length)for(c=0;o.get("options").length>c;c+=1)if(h=o.get("options")[c].value,h===e[t][l]){d.push(o.get("options")[c].label),o.set("fullOptions",d);break}}else d=[],d.push(e[t][l]),o.set("fullOptions",d)}}return this}});PMDynaform.extendNamespace("PMDynaform.view.GridPanel",e)}(),function(){var e=Backbone.View.extend({template:_.template($("#tpl-button").html()),events:{keydown:"preventEvents"},initialize:function(){this.model.on("change",this.render,this)},preventEvents:function(e){return 13===e.which&&(e.preventDefault(),e.stopPropagation()),this},on:function(e,t){var n=this;return $(this.$el.find("button")[0]).on(e,function(e){t(e,n),e.stopPropagation()}),this},render:function(){return this.$el.html(this.template(this.model.toJSON())),this}});PMDynaform.extendNamespace("PMDynaform.view.Button",e)}(),function(){var e=PMDynaform.view.Field.extend({events:{"change select":"continueDependentFields","blur select":"validate","keydown select":"preventEvents"},clicked:!1,firstLoad:!0,dirty:!1,previousValue:null,triggerCallback:!1,temp
return this.validator&&(this.validator.$el.remove(),this.$el.removeClass("has-error has-feedback")),this.model.isValid()?(t=!0,console.log("valido")):(this.validator=new PMDynaform.view.Validator({model:this.model.get("validator")}),$(e).parent().append(this.validator.el),this.isIE||(this.validator.el.style.top="-23px"),this.applyStyleError()),t}});PMDynaform.extendNamespace("PMDynaform.view.File",e)}(),function(){var e=PMDynaform.view.Field.extend({item:null,template:_.template($("#tpl-checkbox").html()),previousValue:null,events:{"click input":"onChange","blur input":"validate","keydown input":"preventEvents"},onChangeCallback:function(){},setOnChange:function(e){return"function"==typeof e&&(this.onChangeCallback=e),this},initialize:function(){this.model.on("change",this.checkBinding,this)},checkBinding:function(){var e=this.model.get("form");return"function"==typeof this.onChangeCallback&&this.onChangeCallback(JSON.stringify(this.getValue()),JSON.stringify(this.previousValue)),e&&e.onChangeCallback&&e.onChangeCallback(this.model.get("name"),JSON.stringify(this.model.get("value")),JSON.stringify(this.previousValue)),this.render(),this},preventEvents:function(e){return 13===e.which&&(e.preventDefault(),e.stopPropagation()),this},render:function(){var e,t;return this.$el.html(this.template(this.model.toJSON())),""!==this.model.get("hint")&&this.enableTooltip(),this.setValueToDomain(),"grid"===this.model.get("group")?(e=this.$el.find("input[type = 'hidden']")[0],t=this.model.get("name"),t=t.substring(0,t.length-1).concat("_label]"),e.name=e.id="form"+t):this.$el.find("input[type='hidden']")[0].name="form["+this.model.get("name")+"_label]",this.setValueHideControl(),this.previousValue=this.model.get("value"),0===this.model.get("name").trim().length&&(this.$el.find("input[type='checkbox']").attr("name",""),this.$el.find("input[type='hidden']").attr("name","")),this},validate:function(){return this.model.get("disabled")||(this.model.set({},{validate:!0}),this.validator&&(this.validator.$el.remove(),this.$el.removeClass("has-error has-feedback")),this.model.isValid()||(this.validator=new PMDynaform.view.Validator({model:this.model.get("validator")}),this.$el.find(".pmdynaform-control-checkbox-list").parent().append(this.validator.el),this.applyStyleError())),this},updateValueControl:function(){var e,t=this.$el.find("input");for(e=0;t.length>e;e+=1)t[e].checked&&this.model.setItemChecked({value:t[e].value,checked:!0});return this},onChange:function(e){var t,n={};this.previousValue=this.model.get("value"),$(e.target).val(),t=e.target.checked,this.$el.find("input[type='hidden']").val(JSON.stringify([])),"boolean"===this.model.get("dataType")?(t?(this.$el.find("input[type='checkbox']")[0].checked=!0,this.$el.find("input[type='checkbox']")[1].checked=!1,this.$el.find("input[type='hidden']").val(JSON.stringify([this.model.get("options")[0].value])),n.value=[this.model.get("options")[0].value],n.label=[this.model.get("options")[0].label]):(this.$el.find("input[type='checkbox']")[0].checked=!1,this.$el.find("input[type='checkbox']")[1].checked=!0,this.$el.find("input[type='hidden']").val(JSON.stringify([this.model.get("options")[1].label])),n.value=[this.model.get("options")[1].value],n.label=[this.model.get("options")[1].label]),this.model.attributes.data=n,this.model.setItemChecked({value:e.target.value,checked:t})):(this.model.setItemChecked({value:e.target.value,checked:t}),this.$el.find("input[type='hidden']").val(JSON.stringify(this.model.get("value"))),this.validate())},getHTMLControl:function(){return this.$el.find(".pmdynaform-control-checkbox-list")},setValueHideControl:function(){var e;return e=this.$el.find("input[type='hidden']"),"boolean"===this.model.get("dataType")?jQuery.isArray(this.model.get("data").value)?$(e).val(JSON.stringify(this.model.get("data").value)):$(e).val(this.model.get("data").value):$(e).val(JSON.stringify(this.model.get("data").value)),this}});PMDynaform.extendNamespace("PMDynaform.view.Checkbox",e)}(),function(){var e=PMDynaform.view.Field.extend({template:_.template($("#tpl-text").html()),templa
},onClickButtonAudio:function(){var e;return e={idField:this.model.get("name"),type:"audio"},"formslider-android"==navigator.userAgent&&JsInterface.getAudio(JSON.stringify(e)),"formslider-ios"==navigator.userAgent&&(this.model.attributes.project.setMemoryStack({data:e}),this.model.attributes.project.projectFlow.executeFakeIOS("upload-file")),this},onClickButtonVideo:function(){var e;return e={idField:this.model.get("name"),type:"video"},"formslider-android"==navigator.userAgent&&JsInterface.getVideo(JSON.stringify(e)),"formslider-ios"==navigator.userAgent&&(this.model.attributes.project.setMemoryStack({data:e}),this.model.attributes.project.projectFlow.executeFakeIOS("upload-file")),this},validate:function(){var e=!0;return e},removeItem:function(e){var t=this.model.get("items"),n=$(e.target).data("index");return t.splice(n,1),this.model.set("items",t),this.render(),this},onClosePreview:function(){return this},onPreviewItem:function(e){var t,n,i=document.createElement("div"),a=document.createElement("div"),o=document.createElement("img"),r=$(e.target).data("index"),s=document.createElement("span");return s.className="glyphicon glyphicon-remove",s.title="close",$(s).tooltip().click(function(){$(this).tooltip("toggle")}),heightContainer=document.documentElement.clientHeight,i.className="pmdynaform-file-shadow",i.style.height=heightContainer+"px",a.className="pmdynaform-file-preview-image",a.style.height=heightContainer+"px",a.appendChild(s),$(a).on("click",function(){document.body.removeChild(i),document.body.removeChild(a)}),t=this.model.get("items")[r].file,n=new FileReader,n.onloadend=function(){o.src=n.result},t?n.readAsDataURL(t):o.src="",a.appendChild(o),document.body.appendChild(i),document.body.appendChild(a),this},renderFiles:function(){var e,t=this,n=this.model.get("items");for(e=0;n.length>e;e+=1)t.model.get("preview")?t.createBox(e,n[e].event,n[e].file):t.createListBox(e,n[e].event,n[e].file);return this},createButtonsHTML:function(e){var t=this,n=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div"),o=document.createElement("div"),r=document.createElement("div");return buttonUp=document.createElement("button"),buttonCancel=document.createElement("button"),buttonRemove=document.createElement("button"),buttonView=document.createElement("button"),n.className="btn-group btn-group-justified",i.className="pmdynaform-file-buttonup btn-group",a.className="pmdynaform-file-buttoncancel btn-group",a.style.display="none",o.className="pmdynaform-file-buttonremove btn-group",r.className="pmdynaform-file-buttonview btn-group",buttonUp.className="glyphicon glyphicon-upload btn btn-success btn-sm",buttonCancel.className="glyphicon glyphicon-remove btn btn-danger btn-sm",buttonRemove.className="glyphicon glyphicon-trash btn btn-danger btn-sm",buttonView.className="glyphicon glyphicon-zoom-in btn btn-primary btn-sm",$(buttonUp).data("index",e),$(buttonCancel).data("index",e),$(buttonRemove).data("index",e),$(buttonView).data("index",e),$(buttonUp).on("click",function(e){t.onToggleButtonUpload(e,"up"),t.onUploadItem(e),e.stopPropagation(),e.preventDefault()}),$(buttonCancel).on("click",function(e){t.onToggleButtonUpload(e,"cancel"),t.onCancelUploadItem(e),e.stopPropagation(),e.preventDefault()}),$(buttonRemove).on("click",function(e){t.removeItem(e),e.stopPropagation(),e.preventDefault()}),$(buttonView).on("click",function(e){t.onPreviewItem(e),e.stopPropagation(),e.preventDefault()}),i.appendChild(buttonUp),a.appendChild(buttonCancel),o.appendChild(buttonRemove),r.appendChild(buttonView),n.appendChild(i),n.appendChild(a),n.appendChild(r),n.appendChild(o),n},createBox:function(e,t,n){var i,a=Math.floor(1e5*Math.random()+3),o=(n.name,t.target.result),r=document.createElement("div"),s=document.createElement("div"),l=document.createElement("span"),u=document.createElement("div"),d=document.createElement("img"),c=document.createElement("span"),h=document.createElement("span"),f={video:{"class":"pmdynaform-file-boxpreview-video",icon:"glyphicon glyphicon-facetime-video"},audio:{"class":"pmdynaf
},initControl:function(){var e,t=this.get("options"),n=[],i=[];for(e=0;t.length>e;e+=1){if(!t[e].label)throw Error("The label parameter is necessary for the field");t[e].value||"number"==typeof t[e].value||(t[e].value=t[e].label),this.get("data")&&this.get("data").value&&("boolean"===this.get("dataType")?t[e].selected=this.get("data").value.indexOf(t[e].value)>-1?!0:!1:this.get("data").value.indexOf(t[e].value)>-1&&(t[e].selected=!0)),n.push({label:this.checkHTMLtags(t[e].label),value:this.checkHTMLtags(t[e].value),selected:t[e].selected?!0:!1})}this.set("options",n),this.set("selected",i)},setLocalOptions:function(){return this.set("localOptions",this.get("options")),this},getData:function(){return"grid"==this.get("group")?{name:this.get("columnName")?this.get("columnName"):"",value:"boolean"===this.get("dataType")?this.get("value")[0]:this.get("value")}:{name:this.get("name")?this.get("name"):"",value:"boolean"===this.get("dataType")?this.get("value")[0]:this.get("value")}},validate:function(e){return this.get("validator").set("value",e.selected.length),this.get("options").length&&this.get("validator").set("options",this.attributes.options),this.get("validator").verifyValue(),this.isValid(),this.get("valid")},isValid:function(){return this.attributes.valid=this.get("validator").get("valid"),this.get("valid")},setItemChecked:function(e){var t,n=this.get("options"),i=[];if(n){if("boolean"!==this.get("dataType"))for(t=0;n.length>t;t+=1)""+n[t].value==""+e.value&&(n[t].selected=e.checked);else e.checked?(n[0].selected=!0,n[1].selected=!1):(n[0].selected=!1,n[1].selected=!0);for(this.set("options",n),t=0;n.length>t;t+=1)n[t].selected&&i.push(n[t].value);this.attributes.value=i.length?i:[],this.set("selected",i)}return this},updateItemSelected:function(){var e,t,n=this.get("selected"),i=this.get("options");if("string"==typeof this.attributes.value&&this.attributes.value.length>0&&(n=this.attributes.value.split(/,/g)),$.isArray(this.get("value"))){for(this.set("selected",[]),n=this.get("selected"),e=0;i.length>e;e+=1)i[e].selected=!1;if(this.set("options",i),t=this.get("value"),"boolean"!==this.get("dataType"))for(e=0;t.length>e;e+=1)this.setItemChecked({value:t[e],checked:!0});else this.setItemChecked({value:this.get("options")[0],checked:1===parseInt(""+t)?!0:!1})}else this.setItemChecked({value:this.attributes.value,checked:!0});for(e=0;n.length>e;e+=1)this.setItemChecked({value:n[e].trim?n[e].trim():n[e],checked:!0});return this.attributes.disabled||(this.get("validator").set({valueDomain:this.get("value"),options:this.get("options")}),this.get("validator").set("value",this.get("selected").length),this.get("validator").verifyValue()),this.attributes.data&&(this.attributes.data.value=this.get("value")),this}});PMDynaform.extendNamespace("PMDynaform.model.Checkbox",e)}(),function(){var e=PMDynaform.model.Field.extend({defaults:{colSpan:12,colSpanLabel:3,colSpanControl:9,namespace:"pmdynaform",dataType:"date",group:"form",hint:"",id:"",name:"",placeholder:"",required:!1,validator:null,originalType:null,disabled:!1,format:!1,mode:"edit",data:null,value:"",stepping:1,minDate:!1,maxDate:!1,useCurrent:!1,collapse:!0,defaultDate:!1,disabledDates:[],sideBySide:!1,daysOfWeekDisabled:[],calendarWeeks:!0,viewMode:"days",toolbarPlacement:"default",showTodayButton:!0,showClear:!0,widgetPositioning:{horizontal:"left",vertical:"bottom"},keepOpen:!1,dayViewHeaderFormat:"MMMM YYYY",pickType:"datetime"},getData:function(){return"grid"==this.get("group")?{name:this.get("columnName")?this.get("columnName"):"",value:this.get("value")}:{name:this.get("name")?this.get("name"):"",value:this.get("value")}},initialize:function(e){var t={showClear:!1,useCurrent:!0},n=["year","month","day","hour","minute"],i=["years","months","days"],a={value:"",label:""};return"true"===this.get("useCurrent")&&(this.attributes.useCurrent=JSON.parse(this.get("useCurrent"))),-1===n.indexOf(this.get("useCurrent"))&&(this.attributes.useCurrent=t.useCurrent),"true"===this.get("showClear")&&(this.attributes.showClear=JSON.parse(this.get("showClear"))),"false"===this.get("