6 lines
No EOL
86 KiB
JavaScript
6 lines
No EOL
86 KiB
JavaScript
!function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="/",t(0)}([function(e,t,o){"use strict";o(1),o(6),o(19)},function(e,t,o){"use strict";o(2),o(3),o(5)},function(e,t,o){
|
|
//! api-check version 7.5.5 built with ♥ by Kent C. Dodds <kent@doddsfamily.us> (http://kent.doddsfamily.us) (ó ì_í)=óò=(ì_í ò)
|
|
!function(t,o){e.exports=o()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),i=n(r);t.default=i.default,e.exports=t.default},function(e,t,o){"use strict";function n(){function t(n,i,a){if(t.config.disabled||e.exports.globalConfig.disabled)return{apiTypes:{},argTypes:{},passed:!0,message:"",failed:!1};o(arguments),Array.isArray(n)?i=Array.prototype.slice.call(i):(n=[n],i=[i]);var l=s(n,i);l.length||(l=r(n,i));var p=u(n,i);return p.args=i,l.length?(p.message=t.getErrorMessage(n,i,l,a),p.failed=!0,p.passed=!1):(p.message="",p.failed=!1,p.passed=!0),p}function o(e){var o=e[0],n=e[1],i=Array.isArray(n)||n&&"object"==typeof n&&"number"==typeof n.length;if(Array.isArray(o)&&!i)throw new Error(a(o,[n],["If an array is provided for the api, an array must be provided for the args as well."],{prefix:"apiCheck"}));var l=r(k.checkApiCheckApi,e);if(l.length){var s=t.getErrorMessage(k.checkApiCheckApi,e,l,{prefix:"apiCheck"});t.handleErrorMessage(s,!0)}}function n(e){return function(o,n,r){var i=t(o,n,r);return t.handleErrorMessage(i.message,e),i}}function i(e,t){if(t&&e)throw new Error(e);e&&console.warn(e)}function a(e,o){function n(){var e=s.onlyPrefix;return e||(e=((p.prefix||"")+" "+(s.prefix||"")).trim()),e}function r(){var e=s.onlySuffix;return e||(e=((s.suffix||"")+" "+(p.suffix||"")).trim()),e}function i(){var e=s.url;return e||(e=p.docsBaseUrl&&s.urlSuffix&&(""+p.docsBaseUrl+s.urlSuffix).trim()),e}var a=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],p=t.config.output||{},u=n(),c=r(),f=i(),d="apiCheck failed! "+a.join(", "),m="\n\n"+l(e,o);return(u+" "+d+" "+c+" "+(f||"")+m).trim()}function l(e,t){function o(e){m(e,function(t,n){p.indexOf(t)===-1&&(p.push(t),"object"==typeof t?o(e):"function"==typeof t&&(e[n]=t.displayName||t.name||"anonymous function"))})}function n(e){return e&&e.length?(e&&1===e.length&&(e=e[0]),f(e,null,2)):"nothing"}function r(){var e="\n",o=!0;t&&1===t.length&&(o="object"==typeof t[0]&&null!==t[0]&&!!Object.keys(t[0]).length);var n="type"+(o?"s":""),r=e+e;return"You passed:"+e+c+r+("With the "+n+":"+e+l+r)+("The API calls for:"+e+a)}var i=u(e,t),a=i.apiTypes,l=i.argTypes,s=Array.prototype.slice.call(t||[]),p=[];o(s);var c=n(s);return l=n(l),a=n(a),r()}function u(o,n){o=v(o),n=v(n);var r=o.map(function(o,r){var i=e.exports.globalConfig.hasOwnProperty("verbose");return g(o,{terse:i?!e.exports.globalConfig.verbose:!t.config.verbose,obj:n[r],addHelpers:!0})}),i=n.map(function(e){return p(e,[])});return{argTypes:i,apiTypes:r}}var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];w&&arguments.length&&w.throw(k.getApiCheckInstanceCheckers,arguments,{prefix:"creating an apiCheck instance"});var h={throw:n(!0),warn:n(!1),getErrorMessage:a,handleErrorMessage:i,config:{output:c.output||{prefix:"",suffix:"",docsBaseUrl:""},verbose:c.verbose||!1,disabled:c.disabled||!1},utils:d};m(h,function(e,o){return t[o]=e});var b=t.disabled||e.exports.globalConfig.disabled;return m(O.getCheckers(b),function(e,o){return t[o]=e}),m(y,function(e,o){return t[o]=e}),t}function r(e,t){for(var o=[],n=!1,r=0,i=0,l=void 0,s=void 0,p=void 0,u=void 0,c=void 0,f=void 0,d=void 0;(s=e[r++])&&i<t.length;)l=t[i++],c="Argument "+i+(s.isOptional?" (optional)":""),p=s(l,"value",c),f=y(p),u=r>=e.length,d=r>1&&e[r-1].isOptional,f&&u||f&&!u&&!s.isOptional&&!d?(n=!0,o.push(a(p,s,l))):f&&s.isOptional?i--:o.push(h(c)+" passed");return n?o:[]}function i(e,t,o){var n=O.shape({type:O.string,optional:O.bool}),r=O.func.withProperties({__apiCheckData:n}),a=O.shape({__apiCheckData:n}),l=O.oneOfType([r,a])(e,t,o);return y(l)?l:"function"==typeof e||e.hasOwnProperty(e.__apiCheckData.type)?void 0:x(t,o,i.type)}function a(e,t,o){var n=l(t,o);return n=n?" - "+n:"",e.message+n}function l(e,t){var o=e.help;return o?("function"==typeof o&&(o=o(t)),o):""}function s(e,t){var o=e.filter(function(e){return!e.isOptional});return t.length<o.length?["Not enough arguments specified. Requires `"+o.length+"`, you passed `"+t.length+"`"]:[]}function p(e,t){function o(){return e&&Object.keys(e).length}function n(){return t.indexOf(e)!==-1?"[Circular]":(t.push(e),u(e,t))}var r=e&&e.constructor&&e.constructor.name,i=b(e);if("function"===i){if(o()){var a=f(n());return r+" (with properties: "+a+")"}return r}return null===e?"null":"array"!==i&&"object"!==i?i:o()?n():r}function u(e,t){var o={};return m(e,function(e,n){return o[n]=p(e,t)}),o}function c(){var e=O.string.optional,t=O.func.withProperties({type:O.oneOfType([O.string,i]).optional,displayName:O.string.optional,shortType:O.string.optional,notOptional:O.bool.optional,notRequired:O.bool.optional}),o=[O.shape({output:O.shape({prefix:O.string.optional,suffix:O.string.optional,docsBaseUrl:O.string.optional}).strict.optional,verbose:O.bool.optional,disabled:O.bool.optional}).strict.optional,O.objectOf(t).optional],n=[O.typeOrArrayOf(t),O.any.optional,O.shape({prefix:e,suffix:e,urlSuffix:e,onlyPrefix:e,onlySuffix:e,url:e}).strict.optional];return{checkerFnChecker:t,getApiCheckInstanceCheckers:o,checkApiCheckApi:n}}var f=o(2),d=o(3),m=d.each,y=d.isError,h=d.t,v=d.arrayify,g=d.getCheckerDisplay,b=d.typeOf,x=d.getError,O=o(4),k=c();e.exports=n,e.exports.VERSION="7.5.5",e.exports.utils=d,e.exports.globalConfig={verbose:!1,disabled:!1};var w=n({output:{prefix:"apiCheck"}});e.exports.internalChecker=w,m(O,function(t,o){return e.exports[o]=t}),i.type="function with __apiCheckData property and `${function.type}` property"},function(e,t){function o(e,t){var o=[],r=[];return t=t||function(e,t){return"[Circular "+n(t,o,r)+"]"},function(n,i){var a=i;return"object"==typeof i&&i&&(o.indexOf(i)!==-1?a=t(n,i):(o.push(i),r.push(n))),e&&(a=e(n,a)),a}}function n(e,t,o){var n=t.indexOf(e),r=[o[n]];for(n--;n>=0;n--)t[n][r[0]]===e&&(e=t[n],r.unshift(o[n]));return"~"+r.join(".")}function r(e,t,n,r){return JSON.stringify(e,o(t,r),n)}e.exports=r,r.getSerialize=o},function(e,t,o){"use strict";function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function r(e){var t=i(e),o=void 0;if("array"===t)o=[];else{if("object"!==t)return e;o={}}return p(e,function(e,t){o[t]=e}),o}function i(e){return Array.isArray(e)?"array":e instanceof RegExp?"object":typeof e}function a(e,t){var o=void 0,n=t&&t.short;return o=n&&e.shortType?e.shortType:!n&&"object"==typeof e.type||"function"===e.type?l(e,t):l(e,t)||e.displayName||e.name}function l(e,t){var o=e.type;if("function"==typeof o){var r=o.__apiCheckData,i=o(t);o=n({__apiCheckData:r},r.type,i)}return o}function s(e){return e?Array.isArray(e)?e:[e]:[]}function p(e,t,o){return Array.isArray(e)?c(e,t,o):u(e,t,o)}function u(e,t,o){var n=void 0,r=Object.prototype.hasOwnProperty;for(var i in e)if(r.call(e,i)&&(n=t.call(o,e[i],i,e),n===!1))return n;return!0}function c(e,t,o){for(var n=void 0,r=e.length,i=0;i<r;i++)if(n=t.call(o,e[i],i,e),n===!1)return n;return!0}function f(e){return e instanceof Error}function d(e,t,o){e=s(e);var n=e.slice(),r=n.pop();return 1===n.length&&(t=" "),n.join(t)+(""+(n.length?t+o:"")+r)}function m(e,t,o){"function"==typeof o&&(o=o({short:!0}));var n="object"!=typeof o?o:T(o);return new Error(y(e,t)+" must be "+h(n))}function y(e,t){var o=h(e||"value"),n=t?" at "+h(t):"";return""+o+n}function h(e){return"`"+e+"`"}function v(e){return"undefined"==typeof e}function g(e,t,o){return o&&(e=C(),e.isNoop=!0),"string"==typeof e.type&&(e.shortType=e.type),p(t,function(t,o){return e[o]=t}),e.displayName||(e.displayName="apiCheck "+h(e.shortType||e.type||e.name)+" type checker"),e.notRequired||(e=b(e,o)),e.notNullable||O(e,o),e.notOptional||x(e,o),e}function b(e,t){var o=t?C():function(t,o,n,r){if(v(t)&&!e.isOptional){var i=n?" in "+h(n):"",l=a(e,{short:!0}),s="object"!=typeof l?l:T(l);return new Error("Required "+h(o)+" not specified"+i+". Must be "+h(s))}return e(t,o,n,r)};return w(e,o),o.originalChecker=e,o}function x(e,t){var o=t?C():function(t,o,n,r){if(!v(t))return e(t,o,n,r)};w(e,o),o.isOptional=!0,o.displayName=e.displayName+" (optional)",o.originalChecker=e,e.optional=o,k(e,e.optional)}function O(e,t){var o=t?C():function(t,o,n,r){if(null!==t)return e(t,o,n,r)};w(e,o),o.isNullable=!0,o.displayName=e.displayName+" (nullable)",o.originalChecker=e,e.nullable=o,k(e,e.nullable),e.notOptional||x(e.nullable,t)}function k(e,t){if("object"==typeof t.type)t.type=r(t.type);else{if("function"!=typeof t.type)return void(t.type+=" (optional)");t.type=function(){return e.type.apply(e,arguments)}}t.type.__apiCheckData=r(e.type.__apiCheckData)||{},t.type.__apiCheckData.optional=!0}function w(e,t){p(Object.keys(e),function(o){return t[o]=e[o]})}function E(){}function C(){return function(){}}var T=o(2),_={addOptional:x,getRequiredVersion:b,setupChecker:g,addNullable:O};e.exports={each:p,copy:r,typeOf:i,arrayify:s,getCheckerDisplay:a,isError:f,list:d,getError:m,nAtL:y,t:h,undef:v,checkerHelpers:_,noop:E}},function(e,t,o){"use strict";function n(e){function t(t){var o=t.toLowerCase();return g(function(e,n,r){if(a(e)!==o)return d(n,r,t)},{type:t},e)}function o(){var t="Function",o=g(function(e,o,n){if("function"!==a(e))return d(o,n,t)},{type:t},e);return o.withProperties=function(t){var o=b.objectOf(b.func)(t,"properties","apiCheck.func.withProperties");if(u(o))throw o;var n=b.shape(t,!0);return n.type.__apiCheckData.type="func.withProperties",g(function(e,t,o){var r=b.func(e,t,o);return u(r)?r:n(e,t,o)},{type:n.type,shortType:"func.withProperties"},e)},o}function n(){var t="Object",o="Object (null ok)",n=g(function(e,t,n){if("object"!==a(e))return d(t,n,o)},{type:o},e),r=g(function(e,t,o){if(null===e||u(n(e,t,o)))return d(t,o,r.type)},{type:t,nullOk:n},e);return r}function i(t){return g(function(e,o,n){if(!(e instanceof t))return d(o,n,t.name)},{type:t.name},e)}function h(t){var o={__apiCheckData:{optional:!1,type:"enum"},enum:t},n="oneOf["+t.map(function(e){return r(e)}).join(", ")+"]";return g(function(e,o,r){if(!t.some(function(t){return t===e}))return d(o,r,n)},{type:o,shortType:n},e)}function x(t){function o(e){return e&&e.short?r:t.map(function(t){return p(t,e)})}var n=t.map(function(e){return p(e,{short:!0})}),r="oneOfType["+n.join(", ")+"]";return o.__apiCheckData={optional:!1,type:"oneOfType"},g(function(e,o,n){if(!t.some(function(t){return!u(t(e,o,n))}))return d(o,n,r)},{type:o,shortType:r},e)}function O(t){function o(e){return e&&e.short?r:p(t,e)}var n=p(t,{short:!0}),r="arrayOf["+n+"]";return o.__apiCheckData={optional:!1,type:"arrayOf"},g(function(e,o,n){if(u(b.array(e))||!e.every(function(e){return!u(t(e))}))return d(o,n,r)},{type:o,shortType:r},e)}function k(t){function o(e){return e&&e.short?r:p(t,e)}var n=p(t,{short:!0}),r="objectOf["+n+"]";return o.__apiCheckData={optional:!1,type:"objectOf"},g(function(e,o,n){var i=b.object(e,o,n);if(u(i))return i;var a=l(e,function(e,n){if(u(t(e,n,o)))return!1});return a?void 0:d(o,n,r)},{type:o,shortType:r},e)}function w(t){function o(e){return e&&e.short?r:p(t,e)}var n=p(t,{short:!0}),r="typeOrArrayOf["+n+"]";return o.__apiCheckData={optional:!1,type:"typeOrArrayOf"},g(function(e,o,n,i){if(u(b.oneOfType([t,b.arrayOf(t)])(e,o,n,i)))return d(o,n,r)},{type:o,shortType:r},e)}function E(){function t(t,o){function n(){function e(e,t,o,n,r){function a(o,n,r){"string"==typeof e[t]?e[t]+=r:e[t].__apiCheckData[o]=n}if(o||!r||n.isOptional){if(o){var l=n(i[t],t,null,i);u(l)&&a("error","THIS IS THE PROBLEM: "+l.message," <-- THIS IS THE PROBLEM: "+l.message)}}else{var s="ITEM";n.type&&n.type.__apiCheckData&&(s=n.type.__apiCheckData.type.toUpperCase()),a("missing","MISSING THIS "+s," <-- YOU ARE MISSING THIS")}}var o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n={},r=o.terse,i=o.obj,a=o.addHelpers,s=o.required;return l(t,function(t,o){var l=i&&i.hasOwnProperty(o),u=v(s)?!t.isOptional:s;r&&!l&&t.isOptional||(n[o]=p(t,{terse:r,obj:i&&i[o],required:u,addHelpers:a})),a&&e(n,o,l,t,u)}),n}function r(){return n.apply(void 0,arguments)}var i={};l(t,function(e,t){i[t]=p(e)}),n.__apiCheckData={strict:!1,optional:!1,type:"shape"};var a=g(function(e,n,r){var i=!o&&b.object(e,n,r);if(u(i))return i;var a=void 0;return r=r?r+(n?"/":""):"",n=n||"",l(t,function(t,o){if(e.hasOwnProperty(o)||!t.isOptional)return a=t(e[o],o,""+r+n,e),!u(a)}),u(a)?a:void 0},{type:n,shortType:"shape"},e);return r.__apiCheckData=s(a.type.__apiCheckData),r.__apiCheckData.strict=!0,a.strict=g(function(e,o,n){var r=a(e,o,n);if(u(r))return r;var i=Object.keys(t),l=Object.keys(e).filter(function(e){return i.indexOf(e)===-1});return l.length?new Error(m(o,n)+" cannot have extra properties: "+y(l.join("`, `"))+".It is limited to "+y(i.join("`, `"))):void 0},{type:r,shortType:"strict shape"},e),a}function o(t,o,r){var i=y(o.join(", ")),a="if "+(t?"all of":"at least one of"),l="specified "+a+" these are not specified: "+i+" (otherwise it's optional)",s="requiredIfNot"+(t?".all":"")+"["+o.join(", ")+"}]",p=n(r,l,s);return g(function(e,n,i,a){var l=a&&a.hasOwnProperty(n),s=t?"every":"some",u=o[s](function(e){return a&&a.hasOwnProperty(e)});return u||l?l?r(e,n,i,a):void 0:d(n,i,p)},{type:p,notRequired:!0},e)}function n(e,t,o){function n(t){return t&&t.short?o:p(e)}return n.__apiCheckData={optional:!1,type:"ifNot",description:t},n}return t.ifNot=function(t,o){Array.isArray(t)||(t=[t]);var r=void 0;r=1===t.length?"specified only if "+t[0]+" is not specified":"specified only if none of the following are specified: ["+f(t,", ","and ")+"]";var i="ifNot["+t.join(", ")+"]",a=n(o,r,i);return g(function(e,n,r,i){var l=i&&i.hasOwnProperty(n),s=t.some(function(e){return i&&i.hasOwnProperty(e)});return l===s?d(n,r,a):l?o(e,n,r,i):void 0},{notRequired:!0,type:a,shortType:i},e)},t.onlyIf=function(t,o){t=c(t);var r=void 0;r=1===t.length?"specified only if "+t[0]+" is also specified":"specified only if all of the following are specified: ["+f(t,", ","and ")+"]";var i="onlyIf["+t.join(", ")+"]",a=n(o,r,i);return g(function(e,n,r,i){var l=t.every(function(e){return i.hasOwnProperty(e)});return l?o(e,n,r,i):d(n,r,a)},{type:a,shortType:i},e)},t.requiredIfNot=function(e,t){return Array.isArray(e)||(e=[e]),o(!1,e,t)},t.requiredIfNot.all=function(e,t){if(!Array.isArray(e))throw new Error("requiredIfNot.all must be passed an array");return o(!0,e,t)},t}function C(){var t="function arguments";return g(function(e,o,n){if(Array.isArray(e)||u(b.object(e))||u(b.number(e.length)))return d(o,n,t)},{type:t},e)}function T(){return g(function(){},{type:"any"},e)}function _(){var t="null";return g(function(e,o,n){if(null!==e)return d(o,n,t)},{type:t},e)}function A(t,o){var n="Range ("+t+" - "+o+")";return g(function(e,r,i){if("number"!=typeof e||e<t||e>o)return d(r,i,n)},{type:n},e)}function j(t){var o="lessThan["+t+"]";return g(function(e,n,r){if("number"!=typeof e||e>t)return d(n,r,o)},{type:o},e)}function M(t){var o="greaterThan["+t+"]";return g(function(e,n,r){if("number"!=typeof e||e<t)return d(n,r,o)},{type:o},e)}function S(){var t="empty object";return g(function(e,o,n){if("object"!==a(e)||null===e||Object.keys(e).length)return d(o,n,t)},{type:t},e)}return{array:t("Array"),bool:t("Boolean"),number:t("Number"),string:t("String"),func:o(),object:n(),emptyObject:S(),instanceOf:i,oneOf:h,oneOfType:x,arrayOf:O,objectOf:k,typeOrArrayOf:w,range:A,lessThan:j,greaterThan:M,shape:E(),args:C(),any:T(),null:_()}}var r=o(2),i=o(3),a=i.typeOf,l=i.each,s=i.copy,p=i.getCheckerDisplay,u=i.isError,c=i.arrayify,f=i.list,d=i.getError,m=i.nAtL,y=i.t,h=i.checkerHelpers,v=i.undef,g=h.setupChecker,b=e.exports=n();e.exports.getCheckers=n}])})},function(e,t,o){!function(t,n){e.exports=n(o(2),o(4))}(this,function(e,t){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";var n=function(e){return e&&e.__esModule?e.default:e},r=n(o(1));e.exports=r},function(e,t,o){"use strict";var n=function(e){return e&&e.__esModule?e.default:e},r=n(o(15)),i=n(o(2)),a=n(o(3)),l=n(o(4)),s=n(o(5)),p=n(o(6)),u=n(o(7)),c=n(o(8)),f=n(o(9)),d=n(o(10)),m=n(o(11)),y=n(o(12)),h=n(o(13)),v=n(o(14)),g="formly";e.exports=g;var b=r.module(g,[]);b.constant("formlyApiCheck",i),b.constant("formlyErrorAndWarningsUrlPrefix",a),b.constant("formlyVersion","6.8.2"),b.provider("formlyUsability",l),b.provider("formlyConfig",s),b.factory("formlyValidationMessages",p),b.factory("formlyUtil",u),b.factory("formlyWarn",c),b.directive("formlyCustomValidation",f),b.directive("formlyField",d),b.directive("formlyFocus",m),b.directive("formlyForm",y),b.run(h),b.run(v)},function(e,t,o){"use strict";function n(e,t){function o(o,r,i,l){var s=l&&l.hasOwnProperty(r),p=e.some(function(e){return l&&l.hasOwnProperty(e)});return p||s?s?t(o,r,i,l):void 0:a.utils.getError(r,i,n)}angular.isArray(e)||(e=[e]);var n="specified if these are not specified: `"+e.join(", ")+"` (otherwise it's optional)";return o.type=n,a.utils.checkerHelpers.setupChecker(o)}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(16)),a=i({output:{prefix:"angular-formly:",docsBaseUrl:o(3)}}),l=a.oneOfType([a.string,a.func]),s=a.oneOfType([a.oneOf([null]),a.typeOrArrayOf(a.string)]),p=a.objectOf(a.func),u=a.shape.onlyIf("apiCheck",a.func.withProperties({warn:a.func,throw:a.func,shape:a.func})),c=a.shape.onlyIf("apiCheck",a.oneOf(["throw","warn"])),f=a.shape({name:n("types",a.string).optional,template:a.shape.ifNot("templateUrl",a.string).optional,templateUrl:a.shape.ifNot("template",a.string).optional,types:a.typeOrArrayOf(a.string).optional,overwriteOk:a.bool.optional,validateOptions:a.func.optional,apiCheck:p.optional,apiCheckInstance:u.optional,apiCheckFunction:c.optional,apiCheckOptions:a.object.optional}).strict,d=a.objectOf(a.oneOfType([l,a.shape({expression:l,message:l.optional}).strict])),m=a.oneOfType([a.oneOf(["formState"]),a.object]),y={$$hashKey:a.any.optional,type:a.shape.ifNot(["template","templateUrl"],a.string).optional,template:a.shape.ifNot(["type","templateUrl"],a.oneOfType([a.string,a.func])).optional,templateUrl:a.shape.ifNot(["type","template"],a.oneOfType([a.string,a.func])).optional,key:a.oneOfType([a.string,a.number]).optional,model:m.optional,className:a.string.optional,id:a.string.optional,expressionProperties:d.optional,data:a.object.optional,templateOptions:a.object.optional,wrapper:s.optional,modelOptions:a.shape({updateOn:a.string.optional,debounce:a.oneOfType([a.objectOf(a.number),a.number]).optional,allowInvalid:a.bool.optional,getterSetter:a.bool.optional,timezone:a.string.optional}).optional,watcher:a.typeOrArrayOf(a.shape({expression:l.optional,listener:l})).optional,validators:a.objectOf(a.oneOfType([l,a.shape({expression:l,message:l.optional}).strict])).optional,noFormControl:a.bool.optional,hide:a.bool.optional,hideExpression:l.optional,ngModelAttrs:a.objectOf(a.shape({expression:a.shape.ifNot(["value","attribute","bound"],a.any).optional,value:a.shape.ifNot("expression",a.any).optional,attribute:a.shape.ifNot("expression",a.any).optional,bound:a.shape.ifNot("expression",a.any).optional}).strict).optional,elementAttributes:a.objectOf(a.string).optional,optionsTypes:a.typeOrArrayOf(a.string).optional,link:a.func.optional,controller:a.oneOfType([a.string,a.func,a.array]).optional,validation:a.shape({show:a.oneOfType([a.bool,a.oneOf([null])]).optional,messages:a.objectOf(l).optional,errorExistsAndShouldBeVisible:a.bool.optional}).optional,formControl:a.object.optional,value:a.func.optional,runExpressions:a.func.optional,resetModel:a.func.optional,updateInitialValue:a.func.optional,initialValue:a.any.optional,defaultValue:a.any.optional},h=a.shape(y).strict,v=a.shape({formState:a.object.optional,resetModel:a.func.optional,updateInitialValue:a.func.optional,removeChromeAutoComplete:a.bool.optional}).strict,g=a.shape({$$hashKey:a.any.optional,fieldGroup:a.arrayOf(a.oneOfType([h,a.object])),className:a.string.optional,options:v.optional,hide:a.bool.optional,hideExpression:l.optional,model:m.optional,form:a.object.optional,elementAttributes:a.objectOf(a.string).optional}).strict,b=angular.copy(y);b.key=a.string.optional;var x=a.shape({name:a.string,template:a.shape.ifNot("templateUrl",a.oneOfType([a.string,a.func])).optional,templateUrl:a.shape.ifNot("template",a.oneOfType([a.string,a.func])).optional,controller:a.oneOfType([a.func,a.string,a.array]).optional,link:a.func.optional,defaultOptions:a.oneOfType([a.func,a.shape(b)]).optional,extends:a.string.optional,wrapper:s.optional,data:a.object.optional,validateOptions:a.func.optional,apiCheck:p.optional,apiCheckInstance:u.optional,apiCheckFunction:c.optional,apiCheckOptions:a.object.optional,overwriteOk:a.bool.optional}).strict;angular.extend(a,{formlyTypeOptions:x,formlyFieldOptions:h,formlyExpression:l,formlyWrapperType:f,fieldGroup:g,formOptionsApi:v}),e.exports=a},function(e,t,o){"use strict";e.exports="https://github.com/formly-js/angular-formly/blob/6.8.2/other/ERRORS_AND_WARNINGS.md#"},function(e,t,o){"use strict";function n(e,t){function o(e,t,o){return arguments.length<3&&(o=t,t=e,e=null),new Error(r(e,t)+(" Field definition: "+i.toJson(o)))}function n(e,t){return t||(t=e,e=null),new Error(r(e,t))}function r(e,o){var n="";return null!==e&&(n=""+t+e),"Formly Error: "+o+". "+n}function a(t){e.throw(e.formlyWrapperType,t,{prefix:"formlyConfig.setWrapper",urlSuffix:"setwrapper-validation-failed"})}function l(e,t){var o="<formly-transclude></formly-transclude>";if(e.indexOf(o)===-1)throw n('Template wrapper templates must use "'+o+'" somewhere in them. This one does not have "<formly-transclude></formly-transclude>" in it: '+e+"\nAdditional information: "+JSON.stringify(t))}var s=this;i.extend(this,{getFormlyError:n,getFieldError:o,checkWrapper:a,checkWrapperTemplate:l,$get:function(){return s}})}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(15));e.exports=n,n.$inject=["formlyApiCheck","formlyErrorAndWarningsUrlPrefix"]},function(e,t,o){"use strict";function n(e,t){function o(e){if(i.isArray(e))i.forEach(e,o);else{if(!i.isObject(e))throw j("You must provide an object or array for setType. You provided: "+JSON.stringify(arguments));n(e),e.extends&&r(e),C[e.name]=e}}function n(e){t.throw(t.formlyTypeOptions,e,{prefix:"formlyConfig.setType",url:"settype-validation-failed"}),e.overwriteOk?e.overwriteOk=void 0:g(e.name,C,e,"types")}function r(e){var t=f(e.extends,!0,e);s(e,t),p(e,t),u(e,t),c(e,t),a.reverseDeepMerge(e,t),l(e,t)}function l(e,t){e.template&&t.templateUrl?delete e.templateUrl:e.templateUrl&&t.template&&delete e.template}function s(e,t){var o=t.controller;if(i.isDefined(o)){var n=e.controller;i.isDefined(n)?(e.controller=function(e,t){t(o,{$scope:e}),t(n,{$scope:e})},e.controller.$inject=["$scope","$controller"]):e.controller=o}}function p(e,t){var o=t.link;if(i.isDefined(o)){var n=e.link;i.isDefined(n)?e.link=function(){o.apply(void 0,arguments),n.apply(void 0,arguments)}:e.link=o}}function u(e,t){var o=t.validateOptions;if(i.isDefined(o)){var n=e.validateOptions,r=e.defaultOptions;i.isDefined(n)?e.validateOptions=function(e){n(e);var t=i.copy(e),l=r;l&&(i.isFunction(l)&&(l=l(t)),a.reverseDeepMerge(t,l)),o(t)}:e.validateOptions=o}}function c(e,t){var o=t.defaultOptions;if(i.isDefined(o)){var n=e.defaultOptions,r=i.isFunction(n),l=i.isFunction(o);l?e.defaultOptions=function(e){var t=o(e),i={};a.reverseDeepMerge(i,e,t);var l=n;return r&&(l=l(i)),a.reverseDeepMerge(t,l),t}:r&&(e.defaultOptions=function(e){var t={};return a.reverseDeepMerge(t,e,o),n(t)})}}function f(e,t,o){if(e){var n=C[e];if(n||t!==!0)return n;throw j('There is no type by the name of "'+e+'": '+JSON.stringify(o))}}function d(e,t){for(var o=!0;o;){o=!1;var n=e,r=t;if(i.isArray(n))return n.map(function(e){return d(e)});if(i.isObject(n))return n.types=m(n),n.name=y(n,r),h(n),T[n.name]=n,n;i.isString(n)&&(e={template:n,name:r},o=!0)}}function m(e){return i.isString(e.types)?[e.types]:i.isDefined(e.types)?e.types:[]}function y(e,t){return e.name||t||e.types.join(" ")||_}function h(t){e.checkWrapper(t),t.template&&e.checkWrapperTemplate(t.template,t),t.overwriteOk?delete t.overwriteOk:g(t.name,T,t,"templateWrappers"),v(t)}function v(e){var t=!i.isArray(e.types)||!e.types.every(i.isString);if(t)throw j("Attempted to create a template wrapper with types that is not a string or an array of strings")}function g(e,t,o,n){t.hasOwnProperty(e)&&w(["Attempting to overwrite "+e+" on "+n+" which is currently",""+JSON.stringify(t[e])+" with "+JSON.stringify(o),'To supress this warning, specify the property "overwriteOk: true"'].join(" "))}function b(e){return T[e||_]}function x(e){var t=[];for(var o in T)T.hasOwnProperty(o)&&T[o].types&&T[o].types.indexOf(e)!==-1&&t.push(T[o]);return t}function O(e){var t=T[e];return delete T[e],t}function k(e){var t=x(e);if(t)return i.isArray(t)?(t.forEach(function(e){return O(e.name)}),t):O(t.name)}function w(){A.disableWarnings||console.warn.apply(console,arguments)}var E=this,C={},T={},_="default",A=this,j=e.getFormlyError;i.extend(this,{setType:o,getType:f,setWrapper:d,getWrapper:b,getWrapperByType:x,removeWrapperByName:O,removeWrappersForType:k,disableWarnings:!1,extras:{disableNgModelAttrsManipulator:!1,ngModelAttrsManipulatorPreferUnbound:!1,removeChromeAutoComplete:!1,defaultHideDirective:"ng-if",getFieldId:null},templateManipulators:{preWrapper:[],postWrapper:[]},$get:function(){return E}})}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(15)),a=r(o(18));e.exports=n,n.$inject=["formlyUsabilityProvider","formlyApiCheck"]},function(e,t,o){"use strict";function n(){function e(e,t,r,i,a){n.messages[e]=o(t,r,i,a)}function t(e,t){n.messages[e]=function(){return t}}function o(e,t,o,n){return function(r,i,a){return a.options.templateOptions[e]?""+t+" "+a.options.templateOptions[e]+" "+o:n}}var n={addTemplateOptionValueMessage:e,addStringMessage:t,messages:{}};return n}e.exports=n},function(e,t,o){"use strict";function n(){return i}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(18));e.exports=n},function(e,t,o){"use strict";function n(e,t,o){return function(){if(!e.disableWarnings){var n=Array.prototype.slice.call(arguments),i=n.shift();n.unshift("Formly Warning:"),n.push(""+t+i),o.warn.apply(o,r(n))}}}var r=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)};e.exports=n,n.$inject=["formlyConfig","formlyErrorAndWarningsUrlPrefix","$log"]},function(e,t,o){"use strict";function n(e,t){function o(e){return e&&angular.isFunction(e.then)}function n(e){var t=["expression","message"],o={};if(angular.forEach(e,function(e,n){if(!angular.isString(e)){var r=[];angular.forEach(e,function(e,o){t.indexOf(o)===-1&&r.push(o)}),r.length&&(o[n]=r)}}),Object.keys(o).length)throw new Error(["Validators are only allowed to be functions or objects that have "+t.join(", ")+".","You provided some extra properties: "+JSON.stringify(o)].join(" "))}return{restrict:"A",require:"ngModel",link:function(r,i,a,l){var s=r.options;s.validators&&n(s.validators),s.validation.messages=s.validation.messages||{},angular.forEach(s.validation.messages,function(t,o){s.validation.messages[o]=function(){return e.formlyEval(r,t,l.$modelValue,l.$viewValue)}});var p=l.hasOwnProperty("$validators")&&!a.hasOwnProperty("useParsers");angular.forEach(s.validators,function(n,i){function a(){var a=f?"$asyncValidators":"$validators";l[a][i]=function(i,a){var l=e.formlyEval(r,n,i,a);return f?o(l)?l:l?t.when(l):t.reject(l):l}}function u(){var t=void 0;l.$parsers.unshift(function(a){var s=e.formlyEval(r,n,l.$modelValue,a);return o(s)?(l.$pending=l.$pending||{},l.$pending[i]=!0,t=s,s.then(function(){t===s&&l.$setValidity(i,!0)}).catch(function(){t===s&&l.$setValidity(i,!1)}).finally(function(){1===Object.keys(l.$pending).length?delete l.$pending:delete l.$pending[i]})):l.$setValidity(i,s),a})}var c=n.message;c&&(s.validation.messages[i]=function(){return e.formlyEval(r,c,l.$modelValue,l.$viewValue)}),n=angular.isObject(n)?n.expression:n;var f=!angular.isString(n);p?a():u()})}}}e.exports=n,n.$inject=["formlyUtil","$q"]},function(e,t,o){"use strict";function n(e,t,o,n,r,a,l,s,p,u){function c(e,o,n,l){function p(){o(function(){var o=e.options,r=u();i.forEach(o.expressionProperties,function(i,a){var l=n(a).assign,p=t.when(s.formlyEval(e,i,r));p.then(function(e){l(o,e)})})})}function u(t){if(e.model&&e.options.key)return i.isDefined(t)&&(e.model[e.options.key]=t),e.model[e.options.key]}function c(t){s.reverseDeepMerge(t,{data:{},templateOptions:{},validation:{}}),e.to=e.options.templateOptions}function f(){if(i.isFunction(r.extras.getFieldId))e.id=r.extras.getFieldId(e.options,e.model,e);else{var t=e.form&&e.form.$name||e.formId;e.id=s.getFieldId(t,e.options,e.index)}e.options.id=e.id}function d(){i.isDefined(e.options.defaultValue)&&!i.isDefined(e.model[e.options.key])&&(e.model[e.options.key]=e.options.defaultValue)}function y(){e.options.initialValue=e.model&&e.model[e.options.key]}function h(e,t){t&&v(e,t.defaultOptions);var o=w(e.optionsTypes).reverse();i.forEach(o,function(t){v(e,r.getType(t,!0,e).defaultOptions)})}function v(e,t){t&&(i.isFunction(t)&&(t=t(e)),s.reverseDeepMerge(e,t))}function g(e,t){var o=e.key||t||0;i.extend(e,{key:o,value:u,runExpressions:p,resetModel:O,updateInitialValue:k})}function b(e,t){t.model&&e.$watch("options.model",p,!0)}function O(){e.model[e.options.key]=e.options.initialValue,e.options.formControl&&(e.options.formControl.$setViewValue(e.model[e.options.key]),e.options.formControl.$render(),e.options.formControl.$setUntouched(),e.options.formControl.$setPristine())}function k(){e.options.initialValue=e.model[e.options.key]}function E(e){e.validation.messages=e.validation.messages||{},i.forEach(a.messages,function(t,o){e.validation.messages[o]||(e.validation.messages[o]=function(e,o,n){return s.formlyEval(n,t,o,e)})})}function C(e){var t=void 0===arguments[1]?{}:arguments[1],o=void 0===arguments[2]?{}:arguments[2];i.forEach([o.controller,t.controller],function(t){t&&l(t,{$scope:e})})}function T(){e.options.options=e.options.options||{},e.options.options.formState=e.formState}if(e.options.fieldGroup)return void T();var _=m(e.options);c(e.options),h(e.options,_),g(e.options,e.index),x(e.options),f(),d(),y(),p(),b(e,e.options),E(e.options),C(e,e.options,_)}function f(e,n){function a(){O(e.options),n.addClass("formly-field-group");var t="";e.options.elementAttributes&&(t=Object.keys(e.options.elementAttributes).map(function(t){return""+t+'="'+e.options.elementAttributes[t]+'"'}).join(" ")),c('\n <formly-form model="model"\n fields="options.fieldGroup"\n options="options.options"\n form="options.form"\n class="'+e.options.className+'"\n '+t+"\n is-field-group>\n </formly-form>\n ")}function l(){e.options.elementAttributes&&n.attr(e.options.elementAttributes)}function p(){e.options.className&&n.addClass(e.options.className),e.options.type&&n.addClass("formly-field-"+e.options.type)}function c(t){return n.html(d(t)),o(n.contents())(e),t}function f(t){function o(e){var t=/\{\{(.*?)}}/,o=t.exec(e);o?n(o[1]):a(e)}function n(t){e.$watch(t,function(e){e&&(p(),a(e))})}function a(t){p=e.$watch('form["'+t+'"]',function(t){t&&(e.fc=t,e.options.formControl=t,u(),l())})}function l(){u=e.$watch(function(){var t=r.extras.errorExistsAndShouldBeVisibleExpression,o=e.options,n=e.fc;if(n.$invalid){if("boolean"==typeof o.validation.show)return o.validation.show;if(t)return s.formlyEval(e,t,n.$modelValue,n.$viewValue);var a=i.isUndefined(n.$touched)&&n.$dirty;
|
|
return e.fc.$touched||a}return!1},function(t){e.options.validation.errorExistsAndShouldBeVisible=t,e.showError=t})}var p=i.noop,u=i.noop;if(!e.options.noFormControl){var c=i.element("<div>"+t+"</div>"),f=c[0].querySelector("[ng-model],[data-ng-model]");f&&f.getAttribute("name")&&o(f.getAttribute("name"))}}function h(){b&&b.link&&b.link.apply(k,x),e.options.link&&e.options.link.apply(k,x)}function g(o){return function(n){var r=t.when(n);return i.forEach(o,function(o){r=r.then(function(n){return t.when(o(n,e.options,e)).then(function(e){return i.isString(e)?e:d(e)})})}),r}}if(e.options.fieldGroup)return void a();l(),p();var b=m(e.options),x=arguments,k=this;y(e.options).then(g(r.templateManipulators.preWrapper)).then(v(e.options)).then(g(r.templateManipulators.postWrapper)).then(c).then(f).then(h).catch(function(t){u("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",e.options,t)})}function d(e){var t=i.element("<a></a>");return t.append(e).html()}function m(e){return e.type&&r.getType(e.type)}function y(e){function t(t,o){return i.isDefined(e[t])?e[t]:o&&i.isDefined(o[t])?o[t]:void 0}var o=r.getType(e.type,!0,e),n=t("template",o),a=t("templateUrl",o);if(i.isUndefined(n)&&!a)throw p.getFieldError("type-type-has-no-template","Type '"+e.type+"' has not template. On element:",e);return h(a||n,i.isUndefined(n),e)}function h(o,r,a){var l=void 0;if(l=i.isFunction(o)?t.when(o(a)):t.when(o),!r)return l;var s=function(){var t={cache:n};return{v:l.then(function(o){return e.get(o,t)}).then(function(e){return e.data}).catch(function(e){u("problem-loading-template-for-templateurl","Problem loading template for "+o,e)})}}();return"object"==typeof s?s.v:void 0}function v(e){var o=b(e);return function(n){if(!o.length)return t.when(n);o.forEach(function(t){p.checkWrapper(t,e),t.validateOptions&&t.validateOptions(e),k(t,e)});var r=o.map(function(e){return h(e.template||e.templateUrl,!e.template)});return t.all(r).then(function(e){e.forEach(function(e,t){p.checkWrapperTemplate(e,o[t])}),e.reverse();var t=e.shift();return e.forEach(function(e){t=g(t,e)}),g(t,n)})}}function g(e,t){var o=i.element("<a></a>");o.append(e);var n=o.find("formly-transclude");return n.length||(n=s.findByNodeName(o,"formly-transclude")),n.replaceWith(t),o.html()}function b(e){var t=e.wrapper;if(null===t)return[];t=t?w(t).map(r.getWrapper):w(r.getWrapperByType(e.type));var o=r.getType(e.type,!0,e);if(o&&o.wrapper){var n=w(o.wrapper).map(r.getWrapper);t=t.concat(n)}var i=r.getWrapper();return i&&t.push(i),t}function x(e){l.throw(l.formlyFieldOptions,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});var t=e.type&&r.getType(e.type);t&&(t.validateOptions&&t.validateOptions(e),k(t,e))}function O(e){l.throw(l.fieldGroup,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}function k(e,t){var o=e.apiCheck,n=e.apiCheckInstance,r=e.apiCheckFunction,i=e.apiCheckOptions;if(o){var a=n||l,s=r||"warn",p=a.shape(o);a[s](p,t,i||{prefix:"formly-field "+name,url:l.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"})}}var w=s.arrayify;return c.$inject=["$scope","$timeout","$parse","$controller"],{restrict:"AE",transclude:!0,scope:{options:"=",model:"=",formId:"@",index:"=?",fields:"=?",formState:"=?",form:"=?"},controller:c,link:f}}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(15));e.exports=n,n.$inject=["$http","$q","$compile","$templateCache","formlyConfig","formlyValidationMessages","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"]},function(e,t,o){"use strict";function n(e,t){return{restrict:"A",link:function(o,n,r){var i=null,a=n[0],l=t[0];r.$observe("formlyFocus",function(t){"true"===t?e(function(){i=l.activeElement,a.focus()},~~r.focusWait):"false"===t&&l.activeElement===a&&(a.blur(),r.hasOwnProperty("refocus")&&i&&i.focus())})}}}e.exports=n,n.$inject=["$timeout","$document"]},function(e,t,o){"use strict";function n(e,t,o,n){var r=1;return{restrict:"E",template:function(t,o){function i(){return o.rootEl||"ng-form"}function a(){return o.fieldRootEl||"div"}function s(){return o.hideDirective||n.extras.defaultHideDirective||"ng-if"}function p(){return o.trackBy?"track by "+o.trackBy:""}function u(){var t=y,n=o.bindName;if(n){if(l.version.minor<3)throw e.getFormlyError("bind-name attribute on formly-form not allowed in > angular 1.3");t="{{::'formly_' + "+n+"}}"}return t}function c(e){var t=["model","form","fields","options","name","role","class"],o=[];return l.forEach(e,function(e){var n=e.nodeName,r=e.nodeValue;"undefined"!==n&&t.indexOf(n)===-1&&o.push(""+f(n)+'="'+r+'"')}),o.join(" ")}function f(e){return e?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):""}var d=i(),m=a(),y="formly_"+r++,h="";return o.hasOwnProperty("isFieldGroup")&&t.parent().parent().hasClass("formly")&&(h=c(t.parent().parent()[0].attributes)),"\n <"+d+' class="formly"\n name="'+u()+'"\n role="form" '+h+">\n <"+m+' formly-field\n ng-repeat="field in fields '+p()+'"\n '+s()+'="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n fields="fields"\n form="theFormlyForm"\n form-id="'+u()+'"\n form-state="options.formState"\n index="$index">\n </'+m+">\n <div ng-transclude></div>\n </"+d+">\n "},replace:!0,transclude:!0,scope:{fields:"=",model:"=",form:"=?",options:"=?"},controller:["$scope","formlyUtil",function(t,n){function r(){l.forEach(t.fields,function(e,o){var r=e.model||t.model;if(e.runExpressions&&e.runExpressions(r),e.hideExpression){var i=r[e.key],a={options:e,index:o,formState:t.options.formState,formId:t.formId};e.hide=n.formlyEval(t,e.hideExpression,i,i,a)}})}function s(){o.throw([o.formOptionsApi.optional],[t.options],{prefix:"formly-form options check"}),t.options=t.options||{},t.options.formState=t.options.formState||{},l.extend(t.options,{updateInitialValue:p,resetModel:u})}function p(){l.forEach(t.fields,function(e){v(e)?e.options.updateInitialValue():e.updateInitialValue()})}function u(){l.forEach(t.fields,function(e){v(e)?e.options.resetModel():e.resetModel()})}function c(e){e.model&&"formState"===e.model&&(e.model=t.options.formState)}function f(e,t){v(e)||(e.key=e.key||t||0)}function d(o,n){if(!v(o)&&l.isDefined(o.watcher)){var r=o.watcher;l.isArray(r)||(r=[r]),l.forEach(r,function(r){if(!l.isDefined(r.listener))throw e.getFieldError("all-field-watchers-must-have-a-listener","All field watchers must have a listener",o);var i=m(r,o,n),a=y(r,o,n),s=r.type||"$watch";r.stopWatching=t[s](i,a,r.watchDeep)})}}function m(e,t,o){var n=e.expression||"model['"+t.key+"']";if(l.isFunction(n)){var r=n;n=function(){var t=h.apply(void 0,[e,o].concat(a.call(arguments)));return r.apply(void 0,i(t))},n.displayName="Formly Watch Expression for field for "+t.key}return n}function y(e,t,o){var n=e.listener;if(l.isFunction(n)){var r=n;n=function(){var t=h.apply(void 0,[e,o].concat(a.call(arguments)));return r.apply(void 0,i(t))},n.displayName="Formly Watch Listener for field for "+t.key}return n}function h(e,o){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return[t.fields[o]].concat(r,[e.stopWatching])}function v(e){return e&&!!e.fieldGroup}s(),t.model=t.model||{},t.fields=t.fields||[],l.forEach(t.fields,c),l.forEach(t.fields,f),l.forEach(t.fields,d),t.$watch("model",r,!0),t.options.formState&&t.$watch("options.formState",r,!0)}],link:function(e,o,r){var i=r.name;e.formId=i,e.theFormlyForm=e[i],r.form&&t(r.form).assign(e.$parent,e[i]);var a=n.extras.removeChromeAutoComplete===!0,l=e.options&&e.options.removeChromeAutoComplete===!1,s=e.options&&e.options.removeChromeAutoComplete===!0;if(a&&!l||s){var p=document.createElement("input");p.setAttribute("autocomplete","address-level4"),p.setAttribute("hidden",!0),o[0].appendChild(p)}}}}var r=function(e){return e&&e.__esModule?e.default:e},i=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)},a=Array.prototype.slice,l=r(o(15));e.exports=n,n.$inject=["formlyUsability","$parse","formlyApiCheck","formlyConfig"]},function(e,t,o){"use strict";function n(e){function t(e,t,a){function l(){(i.isDefined(t.validators)||i.isDefined(t.validation.messages))&&r(f,"formly-custom-validation","")}function s(){i.isDefined(t.modelOptions)&&(r(f,"ng-model-options","options.modelOptions"),t.modelOptions.getterSetter&&i.forEach(f,function(e){e.setAttribute("ng-model","options.value")}))}function p(){if(t.templateOptions||t.expressionProperties){var e=t.templateOptions||{},a=t.expressionProperties||{},l=o();i.extend(l,t.ngModelAttrs),i.forEach(l,function(o,l){var s=void 0,p=void 0,u="options.templateOptions['"+l+"']",c=e[l],d=n(a,l),m=i.isDefined(c),y=i.isDefined(d);if(o.value)p=o.value,s=l;else if(o.expression&&m)if(p=o.expression,i.isString(e[l]))s="$eval("+u+")";else{if(!i.isFunction(e[l]))throw new Error("options.templateOptions."+l+" must be a string or function: "+JSON.stringify(t));s=""+u+"(model[options.key], options, this, $event)"}else o.bound&&y?(p=o.bound,s=u):(o.attribute||o.boolean)&&y?(p=o.attribute||o.boolean,s="{{"+u+"}}"):o.attribute&&m?(p=o.attribute,s=c):o.boolean?m&&!y&&c&&(p=o.boolean,s=!0):o.bound&&m&&(p=o.bound,s=u);i.isDefined(p)&&i.isDefined(s)&&r(f,p,s)})}}var u=document.createElement("div"),c=t.data;if(c.skipNgModelAttrsManipulator===!0)return e;u.innerHTML=e;var f=u.querySelectorAll("[ng-model], [data-ng-model]");return f&&f.length?(r(f,"id",a.id),r(f,"name",a.id),l(),s(),p(),u.innerHTML):e}function o(){var t={focus:{attribute:"formly-focus"}},o=[],n=["required","disabled"],r=["pattern","minlength"],a=["change","keydown","keyup","keypress","click","focus","blur"],l=["placeholder","min","max","tabindex","type"];return e.extras.ngModelAttrsManipulatorPreferUnbound?r.push("maxlength"):o.push("maxlength"),i.forEach(o,function(e){t[e]={bound:"ng-"+e}}),i.forEach(n,function(e){t[e]={boolean:e,bound:"ng-"+e}}),i.forEach(r,function(e){t[e]={attribute:e,bound:"ng-"+e}}),i.forEach(a,function(e){var o="on"+e.substr(0,1).toUpperCase()+e.substr(1);t[o]={expression:"ng-"+e}}),i.forEach(l,function(e){t[e]={attribute:e}}),t}function n(e,t){return e["templateOptions."+t]||e["templateOptions['"+t+"']"]||e['templateOptions["'+t+'"]']}function r(e,t,o){i.forEach(e,function(e){e.getAttribute(t)||e.setAttribute(t,o)})}e.extras.disableNgModelAttrsManipulator||e.templateManipulators.preWrapper.push(t)}var r=function(e){return e&&e.__esModule?e.default:e},i=r(o(15));e.exports=n,n.$inject=["formlyConfig"]},function(e,t,o){"use strict";function n(e){e&&e.get&&!function(){var t=e.get(0),o=t.createElement("div");o.innerHTML="<!--[if lt IE 9]><i></i><![endif]-->";var n=1===o.getElementsByTagName("i").length;if(n){var r=["formly-field","formly-form","formly-custom-validation","formly-focus","formly-transpose"];angular.forEach(r,function(e){t.createElement(e)})}}()}e.exports=n,n.$inject=["$document"]},function(e,t,o){"use strict";var n=function(e){return e&&e.__esModule?e.default:e},r=n(o(17));r.version||(r=window.angular),e.exports=r},function(t,o,n){t.exports=e},function(e,o,n){e.exports=t},function(e,t,o){"use strict";function n(e,t,o,n,r){return c.isFunction(t)?t(n,o,e,r):e.$eval(t,c.extend({$viewValue:n,$modelValue:o},r))}function r(e,t,o){if(t.id)return t.id;var n=t.type;return!n&&t.template?n="template":!n&&t.templateUrl&&(n="templateUrl"),[e,n,t.key,o].join("_")}function i(e){c.forEach(arguments,function(t,o){o&&c.forEach(t,function(t,o){c.isDefined(e[o])?a(e[o],t)&&i(e[o],t):e[o]=c.copy(t)})})}function a(e,t){return c.isObject(e)&&c.isObject(t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)}function l(e,t){if(e.prop||(e=c.element(e)),e.prop("nodeName")===t.toUpperCase())return e;for(var o=e.children(),n=0;o&&n<o.length;n++){var r=l(o[n],t);if(r)return r}}function s(e){return e&&!c.isArray(e)?e=[e]:e||(e=[]),e}function p(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(){var e=arguments;t.forEach(function(t){return t.apply(null,e)})}}var u=function(e){return e&&e.__esModule?e.default:e},c=u(o(15));e.exports={formlyEval:n,getFieldId:r,reverseDeepMerge:i,findByNodeName:l,arrayify:s,extendFunction:p}}])})},function(e,t){e.exports=angular},function(e,t,o){!function(t,n){e.exports=n(o(3),o(2),o(4))}(this,function(e,t,o){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";e.exports=o(11)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var n=t;e.setType({name:"multiCheckbox",template:o(21),wrapper:["bootstrapLabel","bootstrapHasError"],apiCheck:{templateOptions:n.shape({options:n.arrayOf(n.object),labelProp:n.string.optional,valueProp:n.string.optional})},defaultOptions:{noFormControl:!1,ngModelAttrs:{required:{attribute:"",bound:""}}},apiCheckInstance:n,controller:["$scope",function(e){function t(t){var o=angular.isArray(e.model[r.key])&&e.model[r.key].length>0&&t;e.fc.$setValidity("required",o)}function o(){e.model[r.key]=[],angular.forEach(e.multiCheckbox.checked,function(t,o){t&&e.model[r.key].push(n.options[o][n.valueProp||"value"])}),e.fc.$setTouched(),t(!0)}var n=e.to,r=e.options;e.multiCheckbox={checked:[],change:o};var i=e.model[r.key];if(angular.isArray(i)&&!function(){var t=n.valueProp||"value";angular.forEach(n.options,function(o,n){e.multiCheckbox.checked[n]=i.indexOf(o[t])!==-1})}(),r.expressionProperties&&r.expressionProperties.required&&e.$watch(e.options.expressionProperties.required,function(e){t(e)}),e.to.required){e.$watch("fc",function(e){e&&t(!0)})}}]})}e.config(t),t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(t,o,n){t.exports=e},function(e,o,n){e.exports=t},function(e,t,o){"use strict";var n=o(8);n.version||(n=window.angular),e.exports=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var n=t;e.setWrapper([{name:"bootstrapLabel",template:o(17),apiCheck:{templateOptions:n.shape({label:n.string,required:n.bool.optional})},apiCheckInstance:n},{name:"bootstrapHasError",template:o(18)}])}e.config(t),t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){o(10)(e),o(1)(e),o(12)(e),o(9)(e),o(13)(e),o(14)(e)},e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(15),i=n(r),a=o(16),l=n(a);t.default=function(e){(0,i.default)(e),(0,l.default)(e)},e.exports=t.default},function(e,t,n){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var n=t;e.setType({name:"radio",template:o(19),wrapper:["bootstrapLabel","bootstrapHasError"],defaultOptions:{noFormControl:!1},apiCheck:{templateOptions:n.shape({options:n.arrayOf(n.object),labelProp:n.string.optional,valueProp:n.string.optional})},apiCheckInstance:n})}e.config(t),t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var n=t;e.setType({name:"checkbox",template:o(20),wrapper:["bootstrapHasError"],apiCheck:{templateOptions:n.shape({label:n.string})},apiCheckInstance:n})}e.config(t),t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="formlyBootstrap",r=o(4),i=r.module(n,[o(2)]);i.constant("formlyBootstrapApiCheck",o(3)({output:{prefix:"angular-formly-bootstrap"}})),i.constant("formlyBootstrapVersion","4.3.2"),o(5)(i),o(6)(i),o(7)(i),t.default=n,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e){e.setType({name:"input",template:'<input class="form-control" ng-model="model[options.key]">',wrapper:["bootstrapLabel","bootstrapHasError"]})}e.config(t),t.$inject=["formlyConfigProvider"]},e.exports=t.default},function(e,t,o){"use strict";function n(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var r=t;e.setType({name:"select",template:o,wrapper:["bootstrapLabel","bootstrapHasError"],defaultOptions:function(e){var t=e.templateOptions.ngOptions||"option[to.valueProp || 'value'] as option[to.labelProp || 'name'] group by option[to.groupProp || 'group'] for option in to.options";return{ngModelAttrs:n({},t,{value:"ng-options"})}},apiCheck:{templateOptions:r.shape({options:r.arrayOf(r.object),labelProp:r.string.optional,valueProp:r.string.optional,groupProp:r.string.optional})},apiCheckInstance:r})}e.config(t);var o='<select class="form-control" ng-model="model[options.key]"></select>';t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var o=t;e.setType({name:"textarea",template:'<textarea class="form-control" ng-model="model[options.key]"></textarea>',wrapper:["bootstrapLabel","bootstrapHasError"],defaultOptions:{ngModelAttrs:{rows:{attribute:"rows"},cols:{attribute:"cols"}}},apiCheck:{templateOptions:o.shape({rows:o.number.optional,cols:o.number.optional})},apiCheckInstance:o})}e.config(t),t.$inject=["formlyConfigProvider","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e,t){var n=o(22),r=t.shape({class:t.string.optional,text:t.string.optional,onClick:t.func.optional}).strict.optional,i=t.shape({templateOptions:t.shape({addonLeft:r,addonRight:r})});e.templateManipulators.preWrapper.push(function(e,o){return o.templateOptions.addonLeft||o.templateOptions.addonRight?(t.warn([i],[o]),n.replace("<formly-transclude></formly-transclude>",e)):e})}e.run(t),t.$inject=["formlyConfig","formlyBootstrapApiCheck"]},e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e){e.templateManipulators.preWrapper.push(function(e,t,o){if(angular.isDefined(t.templateOptions.description)){var n=document.createElement("div");n.appendChild(angular.element(e)[0]),n.appendChild(angular.element('<p id="'+o.id+'_description"class="help-block"ng-if="to.description">{{to.description}}</p>')[0]);var r=angular.element(n.querySelectorAll("[ng-model]"));return r&&r.attr("aria-describedby",o.id+"_description"),n.innerHTML}return e})}e.run(t),t.$inject=["formlyConfig"]},e.exports=t.default},function(e,t,o){e.exports="<div>\n <label for=\"{{id}}\" class=\"control-label\">\n {{to.label}}\n {{to.required ? '*' : ''}}\n </label>\n <formly-transclude></formly-transclude>\n</div>\n"},function(e,t,o){e.exports='<div class="form-group" ng-class="{\'has-error\': showError}">\n <formly-transclude></formly-transclude>\n</div>\n'},function(e,t,o){e.exports='<div class="radio-group">\n <div ng-repeat="(key, option) in to.options" class="radio">\n <label>\n <input type="radio"\n id="{{id + \'_\'+ $index}}"\n tabindex="0"\n ng-value="option[to.valueProp || \'value\']"\n ng-model="model[options.key]">\n {{option[to.labelProp || \'name\']}}\n </label>\n </div>\n</div>\n'},function(e,t,o){e.exports='<div class="checkbox">\n\t<label>\n\t\t<input type="checkbox"\n class="formly-field-checkbox"\n\t\t ng-model="model[options.key]">\n\t\t{{to.label}}\n\t\t{{to.required ? \'*\' : \'\'}}\n\t</label>\n</div>\n'},function(e,t,o){e.exports='<div class="radio-group">\n <div ng-repeat="(key, option) in to.options" class="checkbox">\n <label>\n <input type="checkbox"\n id="{{id + \'_\'+ $index}}"\n ng-model="multiCheckbox.checked[$index]"\n ng-change="multiCheckbox.change()">\n {{option[to.labelProp || \'name\']}}\n </label>\n </div>\n</div>\n'},function(e,t,o){e.exports='<div ng-class="{\'input-group\': to.addonLeft || to.addonRight}">\n <div class="input-group-addon"\n ng-if="to.addonLeft"\n ng-style="{cursor: to.addonLeft.onClick ? \'pointer\' : \'inherit\'}"\n ng-click="to.addonLeft.onClick(options, this)">\n <i class="{{to.addonLeft.class}}" ng-if="to.addonLeft.class"></i>\n <span ng-if="to.addonLeft.text">{{to.addonLeft.text}}</span>\n </div>\n <formly-transclude></formly-transclude>\n <div class="input-group-addon"\n ng-if="to.addonRight"\n ng-style="{cursor: to.addonRight.onClick ? \'pointer\' : \'inherit\'}"\n ng-click="to.addonRight.onClick(options, this)">\n <i class="{{to.addonRight.class}}" ng-if="to.addonRight.class"></i>\n <span ng-if="to.addonRight.text">{{to.addonRight.text}}</span>\n </div>\n</div>\n'}])})},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),i=n(r),a=o(12),l=n(a),s=o(13),p=n(s),u=o(16),c=n(u),f=o(18),d=n(f),m=[i.default.name,l.default.name,p.default.name],y="easyFormViewerVersion",h=d.default.formviewer.version,v="eda.easyFormViewer",g=angular.module(v,m).config(c.default).value(y,h);t.default=g},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),i=n(r),a=o(11),l=n(a),s="edaFormViewerMainModule";t.default=angular.module(s,[]).directive(r.EASY_FORM_VIEWER_DIRECTIVE_NAME,i.default).controller(a.EASY_FORM_VIEWER_CONTROLLER,l.default)},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(t){function o(){return t.vm.model}function n(){return t.edaEasyFormViewerEasyFormGeneratorFieldsModel}function r(){return t.edaEasyFormViewerSubmitButtonText}function i(){return t.edaEasyFormViewerCancelButtonText}function a(){return t.vm.hasJustSumitted}function s(){return t.vm.hasJustCancelled}function p(e){t.vm.fields=h(e)}function u(e,o){e!==o&&(t.vm.submitText=e||"Submit")}function c(e,o){e!==o&&(t.vm.cancelText=e||"Submit")}function f(e){t.edaEasyFormViewerDataModel=e}function d(e){if(e===!0&&angular.isFunction(t.edaEasyFormViewerSubmitFormEvent)){var o=t.vm.model;t.edaEasyFormViewerSubmitFormEvent({dataModelSubmitted:o})}t.vm.hasJustSumitted=!1}function m(e){e===!0&&angular.isFunction(t.edaEasyFormViewerCancelFormEvent)&&t.edaEasyFormViewerCancelFormEvent(),t.vm.hasJustCancelled=!1}function y(){var e=angular.isArray(t.edaEasyFormViewerEasyFormGeneratorFieldsModel)?h(t.edaEasyFormViewerEasyFormGeneratorFieldsModel):{};return e}function h(o){if(angular.isArray(o)){var n=(0,l.returnAttributeConfigurationLinesIfNotEmpty)(o),r=[];return t.configurationLoaded={},e.bindConfigurationLines(t.configurationLoaded,n),e.refreshControlFormlyExpressionProperties(t.configurationLoaded),e.refreshControlFormlyValidators(t.configurationLoaded),e.refreshControlFormlyValidation(t.configurationLoaded),t.configuration=angular.copy(t.configurationLoaded),e.applyConfigurationToformlyModel(t.configurationLoaded,r,t.vm.model),r}}t.vm.model={},t.vm.fields=y(),t.vm.submitText=t.edaEasyFormViewerSubmitButtonText||"Submit",t.vm.cancelText=t.edaEasyFormViewerCancelButtonText||"Cancel",t.$watch(n,p,!0),t.$watch(o,f,!0),t.$watch(r,u),t.$watch(i,c),t.$watch(a,d),t.$watch(s,m)}var o={restrict:"E",scope:{edaEasyFormViewerDataModel:"=?",edaEasyFormViewerEasyFormGeneratorFieldsModel:"=?",edaEasyFormViewerSubmitButtonText:"@?",edaEasyFormViewerCancelButtonText:"@?",edaEasyFormViewerSubmitFormEvent:"&?",edaEasyFormViewerCancelFormEvent:"&?"},replace:!1,controller:s.EASY_FORM_VIEWER_CONTROLLER,controllerAs:s.EASY_FORM_VIEWER_CONTROLLERAS,template:a.default,link:t};return o}Object.defineProperty(t,"__esModule",{value:!0}),t.EASY_FORM_VIEWER_DIRECTIVE_NAME=void 0;var i=o(9),a=n(i),l=o(10),s=o(11),p="edaEasyFormViewer";r.$inject=["$modelsTranslator"],t.default=r,t.EASY_FORM_VIEWER_DIRECTIVE_NAME=p},function(e,t){e.exports='<div class="easyFormViewer">\n\t\n\t<form \tng-submit="vm.onSubmit()"\n\t\t\t\t\tname="vm.form"> \n\t\t<formly-form \tmodel="vm.model" \n\t\t\t\t\t\t\t\t\tfields="vm.fields" \n\t\t\t\t\t\t\t\t\tform="vm.form"> \n\t\t\t\n\t\t\t<div class="pull-right">\n\t\t\t\t<button type="submit" class="btn btn-primary" \n\t\t\t\t\t\t\t\tng-disabled="vm.form.$invalid"\n\t\t\t\t\t\t\t\tng-click="vm.edaSubmitThisDataModel();">{{vm.submitText}}</button>\n\t\t\t\t<button type="button" class="btn btn-primary" \n\t\t\t\t\t\t\t\tng-click="vm.edaCancelEvent();">{{vm.cancelText}}</button>\t\t\t\t\n\t\t\t</div>\t\t\t\t\t\t\n\n\t\t</formly-form> \n\t</form>\n\n</div>'},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}],n=function(){return angular.copy(o)},r=function(e){var t=angular.isArray(e.dataModel)&&e.dataModel.length>0?e.dataModel:[];return t},i=function(e){var t=angular.isArray(e)&&e.length>0?e:n();return t};t.emptyEdaFieldsModel=n,t.returnAttributeDataModelIfNotEmpty=r,t.returnAttributeConfigurationLinesIfNotEmpty=i},function(e,t){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r="edaEasyFormViewerCtrl",i="vm",a=function(){function e(){o(this,e),this.init()}return n(e,[{key:"init",value:function(){this.model={},this.fields={},this.hasJustSumitted=!1,this.hasJustCancelled=!1}},{key:"edaSubmitThisDataModel",value:function(){this.hasJustSumitted=!0}},{key:"edaCancelEvent",value:function(){this.hasJustCancelled=!0}}]),e}();a.$inject=[],t.default=a,t.EASY_FORM_VIEWER_CONTROLLER=r,t.EASY_FORM_VIEWER_CONTROLLERAS=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["textAngular","formly","ngAnimate","formlyBootstrap","ui.bootstrap","nya.bootstrap.select"],n="edaEasyFormViewerCore.module";t.default=angular.module(n,o)},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(14),i=n(r),a="edaFormViewerModelTranslatorModule";t.default=angular.module(a,[]).service(r.MODEL_TRANSLATOR_SERVICE,i.default)},function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.MODEL_TRANSLATOR_SERVICE=void 0;var r=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(15),a="$modelsTranslator",l=function(){function e(){n(this,e)}return r(e,[{key:"initNyaSelect",value:function(e){return(0,i.resetNyaSelect)(e)}},{key:"getControlsDefinition",value:function(){var e={};return(0,i.resetNyaSelect)(e),e}},{key:"refreshControlFormlyExpressionProperties",value:function(e){var t=this;angular.isObject(e)&&angular.forEach(e.lines,function(e){angular.forEach(e.columns,function(e){var o=t.getControlsDefinition();angular.forEach(o.controls,function(t){e.control.type===t.formlyType&&e.control.subtype===t.formlySubtype&&(e.control.formlyExpressionProperties=t.formlyExpressionProperties)})})})}},{key:"refreshControlFormlyValidators",value:function(e){var t=this;angular.isObject(e)&&angular.forEach(e.lines,function(e){angular.forEach(e.columns,function(e){var o=t.getControlsDefinition();angular.forEach(o.controls,function(t){e.control.type===t.formlyType&&e.control.subtype===t.formlySubtype&&(e.control.formlyValidators=t.formlyValidators)})})})}},{key:"refreshControlFormlyValidation",value:function(e){var t=this;angular.isObject(e)&&angular.forEach(e.lines,function(e){angular.forEach(e.columns,function(e){var o=t.getControlsDefinition();angular.forEach(o.controls,function(t){e.control.type===t.formlyType&&e.control.subtype===t.formlySubtype&&(e.control.formlyValidation=t.formlyValidation)})})})}},{key:"bindConfigurationLines",value:function(e,t){if(angular.isArray(t)){var o=(0,i.getEmptyConfigModelResult)();return o.lines=[].concat(t),angular.copy(o,e),(0,i.getMessageObject)("configuration model is bound","lines are bound to configuration model.")}return(0,i.getErrorObject)("lines is not an array","Checks lines type, it is not an array.")}},{key:"applyConfigurationToformlyModel",value:function(e,t,o){(0,i.resetFormlyModel)(t),(0,i.resetDataModel)(o);for(var n=e.lines.length,r=0;r<n;r++)1===e.lines[r].columns.length&&("header"===e.lines[r].columns[0].control.type?(0,i.addOneColumnHeader)(t,e,r):(0,i.addOneColumnControl)(t,e,r)),2===e.lines[r].columns.length&&(0,i.addTwoColumnControl)(t,e,r),3===e.lines[r].columns.length&&(0,i.addThreeColumnControl)(t,e,r)}}]),e}();l.$inject=[],t.default=l,t.MODEL_TRANSLATOR_SERVICE=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t={controls:[{id:"empty",name:"no control",subtitle:"no control",group:"Blank",formlyType:"blank",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Header",name:"Header",subtitle:"no control",group:"Decoration",formlyType:"header",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"Subtitle",name:"Subtitle",subtitle:"no control",group:"Decoration",formlyType:"subTitle",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}},{id:"TextInput",name:"Text input",subtitle:"Text input",group:"input",formlyType:"input",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Text input field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"Password",name:"Password",subtitle:"Password",group:"input",formlyType:"input",formlySubtype:"password",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Password field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"Email",name:"Email",subtitle:"Email",group:"input",formlyType:"input",formlySubtype:"email",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{emailShape:{expression:function(e,t){var o=t||e;return/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/.test(o)},message:"$viewValue + ' is not a valid email'"}},formlyValidation:{messages:{required:function(e,t,o){var n="this Email field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;
|
|
if(o.to.required)return r}}}},{id:"Date",name:"Date",subtitle:"Date",group:"input",formlyType:"datepicker",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],datepickerOptions:{format:"dd-MMMM-yyyy"},formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Date field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"Texarea",name:"Textarea",subtitle:"Textarea",group:"Textarea",formlyType:"textarea",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Textarea field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"RichTextEditor",name:"RichTextEditor",subtitle:"RichTextEditor",group:"Textarea",formlyType:"richEditor",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this RichTextEditor field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"Radio",name:"Radio",subtitle:"Radio",options:[],group:"Radio",formlyType:"radio",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Password field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"Checkbox",name:"Checkbox",subtitle:"Checkbox",group:"Checkbox",formlyType:"checkbox",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Checkbox field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"BasicSelect",name:"Basic select",subtitle:"Basic select",options:[],group:"Select",formlyType:"basicSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Basic select field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}},{id:"GroupedSelect",name:"Grouped Select",subtitle:"Grouped Select",options:[],group:"Select",formlyType:"groupedSelect",formlySubtype:"",formlyLabel:"",formlyRequired:!1,formlyDesciption:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{messages:{required:function(e,t,o){var n="this Grouped Select field is required",r="undefined"!=typeof o.to.label&&""!==o.to.label?o.to.label+" is required":n;return r}}}}],selectedControl:"none",temporyConfig:{selectedControl:"none",formlyLabel:"label",formlyRequired:!1,formlyDesciption:"",formlyPlaceholder:"",formlyOptions:[],formlyExpressionProperties:{},formlyValidators:{},formlyValidation:{}}};return angular.copy(t,e),!0},n=function(){var e={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[{line:1,activeColumn:1,columns:[{numColumn:1,exist:!0,control:{type:"none",key:"none"}}]}]};return e},r=function(){var e={activeLine:1,listConfigStep:["init","first","second","third"],stepIndicators:[!0,!1,!1,!1],configStepCounter:0,submitButtonText:"submit",cancelButtonText:"cancel",lines:[]};return angular.copy(e)},i=function(e){var t={};return angular.copy(t,e),!0},a=function(e,t){var o={noError:!1,title:"",Message:""};return o.noError=!1,o.title=e,o.Message=t,o},l=function(e,t){var o={noError:!1,title:"",Message:""};return o.noError=!0,o.title=e,o.Message=t,o},s=function(e){var t=[];angular.copy(t,e)},p=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.description?e.templateOptions.description:""},u=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.placeholder?e.templateOptions.placeholder:""},c=function(e){return"undefined"!=typeof e.subtype?e.subtype:""},f=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.label?e.templateOptions.label:""},d=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.datepickerOptions?angular.copy(e.templateOptions.datepickerOptions):""},m=function(e){return"undefined"!=typeof e.formlyExpressionProperties?angular.copy(e.formlyExpressionProperties):{}},y=function(e){return"undefined"!=typeof e.formlyValidators?angular.copy(e.formlyValidators):{}},h=function(e){return"undefined"!=typeof e.formlyValidation?angular.copy(e.formlyValidation):{}},v=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.required?e.templateOptions.required:""},g=function(e){return"undefined"!=typeof e.templateOptions&&"undefined"!=typeof e.templateOptions.options?e.templateOptions.options:""},b=function(e,t,o){return e.templateOptions.datepickerOptions=d(t.lines[o].columns[0].control)},x=function(e,t,o){var n='<div class="row"><div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><h2 class="text-center">'+p(t.lines[o].columns[0].control)+"<h2></div></div><hr/>";e.push({template:"undefined"!=typeof t.lines[o].columns[0].control.type&&"header"===t.lines[o].columns[0].control.type?n:"<div></div>"})},O=function(e,t,o){var n={className:"col-xs-12",type:"undefined"!=typeof t.lines[o].columns[0].control.type?"none"===t.lines[o].columns[0].control.type?"blank":t.lines[o].columns[0].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[0].control.key?t.lines[o].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[0].control),label:f(t.lines[o].columns[0].control),required:v(t.lines[o].columns[0].control),placeholder:u(t.lines[o].columns[0].control),description:p(t.lines[o].columns[0].control),options:g(t.lines[o].columns[0].control)},expressionProperties:m(t.lines[o].columns[0].control),validators:y(t.lines[o].columns[0].control),validation:h(t.lines[o].columns[0].control)};"datepicker"===t.lines[o].columns[0].control.type&&b(n,t,o),e.push(n)},k=function(e,t,o){var n={className:"col-xs-6",template:'<div class="row"><div class=""><h2 class="text-center">'+p(t.lines[o].columns[0].control)+"<h2><hr/></div></div>"},r={className:"col-xs-6",template:'<div class="row"><div class=""><h2 class="text-center">'+p(t.lines[o].columns[1].control)+"<h2><hr/></div></div>"},i={className:"col-xs-6",type:"undefined"!=typeof t.lines[o].columns[0].control.type?"none"===t.lines[o].columns[0].control.type?"blank":t.lines[o].columns[0].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[0].control.key?t.lines[o].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[0].control),label:f(t.lines[o].columns[0].control),required:v(t.lines[o].columns[0].control),placeholder:u(t.lines[o].columns[0].control),description:p(t.lines[o].columns[0].control),options:g(t.lines[o].columns[0].control)},expressionProperties:m(t.lines[o].columns[0].control),validators:y(t.lines[o].columns[0].control),validation:h(t.lines[o].columns[0].control)};"datepicker"===t.lines[o].columns[0].control.type&&b(i,t,o);var a={className:"col-xs-6",type:"undefined"!=typeof t.lines[o].columns[1].control.type?"none"===t.lines[o].columns[1].control.type?"blank":t.lines[o].columns[1].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[1].control.key?t.lines[o].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[1].control),label:f(t.lines[o].columns[1].control),required:v(t.lines[o].columns[1].control),placeholder:u(t.lines[o].columns[1].control),description:p(t.lines[o].columns[1].control),options:g(t.lines[o].columns[1].control)},expressionProperties:m(t.lines[o].columns[1].control),validators:y(t.lines[o].columns[1].control),validation:h(t.lines[o].columns[1].control)};"datepicker"===t.lines[o].columns[1].control.type&&b(a,t,o);var l=[];"header"===t.lines[o].columns[0].control.type?l.push(n):l.push(i),"header"===t.lines[o].columns[1].control.type?l.push(r):l.push(a),e.push({className:"row",fieldGroup:l})},w=function(e,t,o){var n={className:"col-xs-4",template:'<div class="row"><div class=""><h2 class="text-center">'+p(t.lines[o].columns[0].control)+"<h2><hr/></div></div>"},r={className:"col-xs-4",template:'<div class="row"><div class=""><h2 class="text-center">'+p(t.lines[o].columns[1].control)+"<h2><hr/></div></div>"},i={className:"col-xs-4",template:'<div class="row"><div class=""><h2 class="text-center">'+p(t.lines[o].columns[2].control)+"<h2><hr/></div></div>"},a={className:"col-xs-4",type:"undefined"!=typeof t.lines[o].columns[0].control.type?"none"===t.lines[o].columns[0].control.type?"blank":t.lines[o].columns[0].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[0].control.key?t.lines[o].columns[0].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[0].control),label:f(t.lines[o].columns[0].control),required:v(t.lines[o].columns[0].control),placeholder:u(t.lines[o].columns[0].control),description:p(t.lines[o].columns[0].control),options:g(t.lines[o].columns[0].control)},expressionProperties:m(t.lines[o].columns[0].control),validators:y(t.lines[o].columns[0].control),validation:h(t.lines[o].columns[0].control)};"datepicker"===t.lines[o].columns[0].control.type&&b(a,t,o);var l={className:"col-xs-4",type:"undefined"!=typeof t.lines[o].columns[1].control.type?"none"===t.lines[o].columns[1].control.type?"blank":t.lines[o].columns[1].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[1].control.key?t.lines[o].columns[1].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[1].control),label:f(t.lines[o].columns[1].control),required:v(t.lines[o].columns[1].control),placeholder:u(t.lines[o].columns[1].control),description:p(t.lines[o].columns[1].control),options:g(t.lines[o].columns[1].control)},expressionProperties:m(t.lines[o].columns[1].control),validators:y(t.lines[o].columns[1].control),validation:h(t.lines[o].columns[1].control)};"datepicker"===t.lines[o].columns[1].control.type&&b(l,t,o);var s={className:"col-xs-4",type:"undefined"!=typeof t.lines[o].columns[2].control.type?"none"===t.lines[o].columns[2].control.type?"blank":t.lines[o].columns[2].control.type:"blank",key:"undefined"!=typeof t.lines[o].columns[2].control.key?t.lines[o].columns[2].control.key:"blank"+Date.now(),templateOptions:{type:c(t.lines[o].columns[2].control),label:f(t.lines[o].columns[2].control),required:v(t.lines[o].columns[2].control),placeholder:u(t.lines[o].columns[2].control),description:p(t.lines[o].columns[2].control),options:g(t.lines[o].columns[2].control)},expressionProperties:m(t.lines[o].columns[2].control),validators:y(t.lines[o].columns[2].control),validation:h(t.lines[o].columns[2].control)};"datepicker"===t.lines[o].columns[2].control.type&&b(s,t,o);var d=[];"header"===t.lines[o].columns[0].control.type?d.push(n):d.push(a),"header"===t.lines[o].columns[1].control.type?d.push(r):d.push(l),"header"===t.lines[o].columns[2].control.type?d.push(i):d.push(s),e.push({className:"row",fieldGroup:d})};t.resetNyaSelect=o,t.getConfigurationModelInit=n,t.getEmptyConfigModelResult=r,t.resetDataModel=i,t.getErrorObject=a,t.getMessageObject=l,t.resetFormlyModel=s,t.addOneColumnHeader=x,t.addOneColumnControl=O,t.addTwoColumnControl=k,t.addThreeColumnControl=w},function(e,t,o){"use strict";function n(e){function t(e){return e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),e.replace(/^([A-Z])/,function(e,t){return t?t.toLowerCase():""})}e.setType({name:"richEditor",template:r.richTextTemplate,wrapper:["bootstrapLabel","bootstrapHasError"]}),e.setType({name:"blank",template:r.blankTemplate}),e.setType({name:"subTitle",template:r.subTitleTemplate}),e.setType({name:"basicSelect",template:r.basicSelectTemplate,wrapper:["bootstrapLabel","bootstrapHasError"]}),e.setType({name:"groupedSelect",template:r.groupedSelectTemplate,wrapper:["bootstrapLabel","bootstrapHasError"]});var o=["date-disabled","custom-class","show-weeks","starting-day","init-date","min-mode","max-mode","format-day","format-month","format-year","format-day-header","format-day-title","format-month-title","year-range","shortcut-propagation","datepicker-popup","show-button-bar","current-text","clear-text","close-text","close-on-date-selection","datepicker-append-to-body"],n=["datepicker-mode","min-date","max-date"],i={};angular.forEach(o,function(e){i[t(e)]={attribute:e}}),angular.forEach(n,function(e){i[t(e)]={bound:e}}),e.setType({name:"datepicker",template:r.datepickerTemplate,defaultOptions:{ngModelAttrs:i,templateOptions:{datepickerOptions:{format:"dd/MM/yyyy",initDate:new Date,showWeeks:!1}}},wrapper:["bootstrapLabel","bootstrapHasError"],controller:["$scope",function(e){e.datepicker={};var t=e.model[e.options.key];"string"==typeof t&&(e.model[e.options.key]=new Date(t)),e.datepicker.opened=!1,e.datepicker.open=function(t){t.preventDefault(),t.stopPropagation(),e.datepicker.opened=!e.datepicker.opened}}]}),e.setWrapper([{template:r.validationTemplate}])}Object.defineProperty(t,"__esModule",{value:!0});var r=o(17);n.$inject=["formlyConfigProvider"],t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o='\n\t<text-angular name="{{id}}"\n\t\tclass="richTextAngular"\n\t\tng-model="model[options.key || index]">\n\t</text-angular>',n="<div></div>",r='\n\t<div class="row">\n\t\t<div class="">\n\t\t\t<h4 class="text-center">\n\t\t\t{{options.templateOptions.placeholder}}\n\t\t\t<h4><hr/>\n\t\t</div>\n\t</div>',i='\n<ol\n\tclass="nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12"\n\tng-model="model[options.key || index]"\n\tid="{{id}}"\n\tdisabled="options.templateOptions.options.length === 0">\n\t<li class="nya-bs-option" nya-bs-option="option in options.templateOptions.options">\n\t\t<a>{{option.name}}</a>\n\t</li>\n</ol>',a='\n\t<ol class="nya-bs-select col-sm-12 col-xs-12 col-md-12 col-lg12"\n\t\tng-model="model[options.key || index]"\n\t\tdata-live-search="true"\n\t\tdisabled="options.templateOptions.options.length === 0">\n\t\t<li nya-bs-option="option in options.templateOptions.options group by option.group">\n\t\t\t<span class="dropdown-header">{{$group}}</span>\n\t\t\t<a>\n\t\t\t\t<span>{{option.name}}</span>\n\t\t\t\t<span class="glyphicon glyphicon-ok check-mark"></span>\n\t\t\t</a>\n\t\t</li>\n\t</ol>',l='\n <p class="input-group">\n <span class="input-group-btn">\n <button\n type="button"\n class="btn btn-default"\n ng-click="formlyDatePicker.open($event)">\n <i class="glyphicon glyphicon-calendar"></i>\n </button>\n </span>\n <input type="text"\n id="{{::id}}"\n name="{{::id}}"\n ng-model="model[options.key]"\n class="form-control"\n ng-click="datepicker.open($event)"\n uib-datepicker-popup="{{to.datepickerOptions.format}}"\n is-open="datepicker.opened"\n datepicker-options="to.datepickerOptions"\n />\n </p>\n ',s='\n\t<div class="formly-template-wrapper form-group"\n\t\t\t\t\t\tng-class="{\'has-error\': options.validation.errorExistsAndShouldBeVisible}">\n\t\t\t\t<formly-transclude></formly-transclude>\n\t\t\t\t<div class="validation"\n\t\t\t\t\t\t\tng-if="options.validation.errorExistsAndShouldBeVisible"\n\t\t\t\t\t\t\tng-messages="options.formControl.$error">\n\t\t\t\t\t<div ng-messages-include="validation.html"></div>\n\t\t\t\t\t<div ng-message="{{::name}}" ng-repeat="(name, message) in ::options.validation.messages">\n\t\t\t\t\t\t{{message(options.formControl.$viewValue, options.formControl.$modelValue, this)}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>';t.richTextTemplate=o,t.blankTemplate=n,t.subTitleTemplate=r,t.basicSelectTemplate=i,t.groupedSelectTemplate=a,t.datepickerTemplate=l,t.validationTemplate=s},function(e,t){e.exports={stepway:{version:"2.0.0"},dragdropway:{version:"2.0.0"},formviewer:{version:"2.0.0"}}},function(e,t,o){var n=o(20);"string"==typeof n&&(n=[[e.id,n,""]]);o(22)(n,{});n.locals&&(e.exports=n.locals)},function(e,t,o){t=e.exports=o(21)(),t.push([e.id,'.ta-hidden-input{width:1px;height:1px;border:none;margin:0;padding:0;position:absolute;top:-10000px;left:-10000px;opacity:0;overflow:hidden}.ta-root.focussed>.ta-scroll-window.form-control{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ta-editor.ta-html,.ta-scroll-window.form-control{min-height:300px;height:auto;overflow:auto;font-family:inherit;font-size:100%}.ta-scroll-window.form-control{position:relative;padding:0}.ta-scroll-window>.ta-bind{height:auto;min-height:300px;padding:6px 12px}.ta-editor:focus{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ta-resizer-handle-overlay{z-index:100;position:absolute;display:none}.ta-resizer-handle-overlay>.ta-resizer-handle-info{position:absolute;bottom:16px;right:16px;border:1px solid #000;background-color:#fff;padding:0 4px;opacity:.7}.ta-resizer-handle-overlay>.ta-resizer-handle-background{position:absolute;bottom:5px;right:5px;left:5px;top:5px;border:1px solid #000;background-color:rgba(0,0,0,.2)}.ta-resizer-handle-overlay>.ta-resizer-handle-corner{width:10px;height:10px;position:absolute}.ta-resizer-handle-overlay>.ta-resizer-handle-corner-tl{top:0;left:0;border-left:1px solid #000;border-top:1px solid #000}.ta-resizer-handle-overlay>.ta-resizer-handle-corner-tr{top:0;right:0;border-right:1px solid #000;border-top:1px solid #000}.ta-resizer-handle-overlay>.ta-resizer-handle-corner-bl{bottom:0;left:0;border-left:1px solid #000;border-bottom:1px solid #000}.ta-resizer-handle-overlay>.ta-resizer-handle-corner-br{bottom:0;right:0;border:1px solid #000;cursor:se-resize;background-color:#fff}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.bottom{margin-top:10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}body{margin:20px;font-family:Roboto,Helvetica Neue,Helvetica,Arial,sans-serif}.ta-scroll-window{margin-bottom:16px}.formly-field{margin-bottom:20px}.validation{position:absolute;font-size:.8em;color:#a94442}.error-messages,.formly-template-wrapper{position:relative}.error-messages,.message,.validation{opacity:1;transition:all .3s linear}.message{font-size:.8em;position:absolute;width:100%;color:#a94442;margin-top:2px}.error-messages.ng-enter.ng-enter-active,.message.ng-enter.ng-enter-active,.validation.ng-enter.ng-enter-active{opacity:1}.error-messages.ng-enter,.message.ng-enter,.validation.ng-enter{opacity:0}.error-messages.ng-leave,.message.ng-leave,.validation.ng-leave{opacity:1}.error-messages.ng-leave-active,.message.ng-leave-active,.validation.ng-leave-active{opacity:0}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var o=this[t];o[2]?e.push("@media "+o[2]+"{"+o[1]+"}"):e.push(o[1])}return e.join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}},function(e,t,o){function n(e,t){for(var o=0;o<e.length;o++){var n=e[o],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(p(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(p(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:a}}}}function r(e){for(var t=[],o={},n=0;n<e.length;n++){var r=e[n],i=r[0],a=r[1],l=r[2],s=r[3],p={css:a,media:l,sourceMap:s};o[i]?o[i].parts.push(p):t.push(o[i]={id:i,parts:[p]})}return t}function i(e,t){var o=h(),n=b[b.length-1];if("top"===e.insertAt)n?n.nextSibling?o.insertBefore(t,n.nextSibling):o.appendChild(t):o.insertBefore(t,o.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");o.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function p(e,t){var o,n,r;if(t.singleton){var i=g++;o=v||(v=l(t)),n=u.bind(null,o,i,!1),r=u.bind(null,o,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=s(t),n=f.bind(null,o),r=function(){a(o),o.href&&URL.revokeObjectURL(o.href)}):(o=l(t),n=c.bind(null,o),r=function(){a(o)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}function u(e,t,o,n){var r=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var o=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}function f(e,t){var o=t.css,n=t.sourceMap;n&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var r=new Blob([o],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var d={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},y=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=m(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,g=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=y()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a<o.length;a++){var l=o[a],s=d[l.id];s.refs--,i.push(s)}if(e){var p=r(e);n(p,t)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete d[s.id]}}}};var x=function(){var e=[];return function(t,o){return e[t]=o,e.filter(Boolean).join("\n")}}()}]);
|
|
//# sourceMappingURL=eda.easyFormViewer.min.js.map
|