You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
163 KiB

6 years ago
/*!
* formBuilder - https://formbuilder.online/
* Version: 2.9.8
* Author: Kevin Chappell <kevin.b.chappell@gmail.com>
*/
var _MathPI=Math.PI,_MathLN=Math.LN2,_Mathsqrt=Math.sqrt,_Mathlog=Math.log,_Mathabs=Math.abs,_Mathpow=Math.pow,_Mathexp=Math.exp,_Mathexpm=Math.expm1,_Mathmax=Math.max,_Mathceil=Math.ceil,_Mathmin=Math.min,_Mathfloor=Math.floor;!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/assets/js/",e(e.s=154)}([function(t,e,n){var r=n(2),o=n(24),i=n(13),u=n(14),a=n(21),c="prototype",s=function(t,e,n){var f,l,p,d,h=t&s.F,v=t&s.G,y=t&s.S,g=t&s.P,b=t&s.B,m=v?r:y?r[e]||(r[e]={}):(r[e]||{})[c],w=v?o:o[e]||(o[e]={}),x=w[c]||(w[c]={});for(f in v&&(n=e),n)l=!h&&m&&void 0!==m[f],p=(l?m:n)[f],d=b&&l?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,m&&u(m,f,p,t&s.U),w[f]!=p&&i(w,f,d),g&&x[f]!=p&&(x[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(74)("wks"),o=n(46),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(19),s=r(c),f=n(29),l=r(f),p=function(){function t(e,n){i(this,t),this.rawConfig=$.extend({},e),e=$.extend({},e),this.preview=n,delete e.isPreview,this.preview&&delete e.required;for(var r=["label","description","subtype","required"],o=r,u=Array.isArray(o),a=0,o=u?o:o[Symbol.iterator]();;){var c;if(u){if(a>=o.length)break;c=o[a++]}else{if(a=o.next(),a.done)break;c=a.value}var s=c;this[s]=e[s],delete e[s]}e.id||(e.name?e.id=e.name:e.id="control-"+_Mathfloor(1e7*Math.random()+1)),this.id=e.id,this.type=e.type,this.description&&(e.title=this.description),t.controlConfig||(t.controlConfig={});var f=this.subtype?this.type+"."+this.subtype:this.type;this.classConfig=$.extend({},t.controlConfig[f]||{}),this.subtype&&(e.type=this.subtype),this.required&&(e.required="required",e["aria-required"]="true"),this.config=e,this.configure()}return t.register=function(e,n,r){var o=r?r+".":"";t.classRegister||(t.classRegister={}),Array.isArray(e)||(e=[e]);for(var i=e,u=Array.isArray(i),a=0,i=u?i:i[Symbol.iterator]();;){var c;if(u){if(a>=i.length)break;c=i[a++]}else{if(a=i.next(),a.done)break;c=a.value}var s=c;-1<s.indexOf(".")?t.error("Ignoring type "+s+". Cannot use the character '.' in a type name."):t.classRegister[o+s]=n}},t.getRegistered=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=Object.keys(t.classRegister);return n.length?n.filter(function(t){return e?-1<t.indexOf(e+"."):-1==t.indexOf(".")}):n},t.getRegisteredSubtypes=function(){var e={}