Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-formly

Package Overview
Dependencies
Maintainers
2
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-formly - npm Package Compare versions

Comparing version 6.26.4 to 6.26.5

4

dist/formly.min.js

@@ -1,4 +0,4 @@

//! angular-formly version 6.26.4 built with ♥ by Astrism <astrisms@gmail.com>, Kent C. Dodds <kent@doddsfamily.us> (ó ì_í)=óò=(ì_í ò)
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("api-check"),require("angular")):"function"==typeof define&&define.amd?define(["api-check","angular"],t):"object"==typeof exports?exports.ngFormly=t(require("api-check"),require("angular")):e.ngFormly=t(e.apiCheck,e.angular)}(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";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(9),i=n(r);t["default"]=i["default"],e.exports=t["default"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(18);n.version||(n=window.angular),t["default"]=n,e.exports=t["default"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]="https://github.com/formly-js/angular-formly/blob/6.26.4/other/ERRORS_AND_WARNINGS.md#",e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,o,n,r){return m["default"].isFunction(t)?t(n,o,e,r):e.$eval(t,m["default"].extend({$viewValue:n,$modelValue:o},r))}function i(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 a(e){return m["default"].forEach(arguments,function(t,o){o&&m["default"].forEach(t,function(t,o){m["default"].isDefined(e[o])?l(e[o],t)&&a(e[o],t):e[o]=m["default"].copy(t)})}),e}function l(e,t){return m["default"].isObject(e)&&m["default"].isObject(t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)}function f(e,t){if(e.prop||(e=m["default"].element(e)),e.prop("nodeName")===t.toUpperCase())return e;for(var o=e.children(),n=0;o&&n<o.length;n++){var r=f(o[n],t);if(r)return r}}function s(e){return e&&!m["default"].isArray(e)?e=[e]:e||(e=[]),e}function u(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];return function(){var e=arguments;t.forEach(function(t){return t.apply(null,e)})}}function p(e,t,o){return o&&(e=e[o],t=t[o]),t&&e?(m["default"].forEach(t,function(t){-1===e.indexOf(t)&&e.push(t)}),e):t?t:e}function d(e,t){return m["default"].isString(e)&&m["default"].isString(t)?e.length>=t.length&&e.substring(0,t.length)===t:!1}Object.defineProperty(t,"__esModule",{value:!0});var c=o(1),m=n(c);t["default"]={formlyEval:r,getFieldId:i,reverseDeepMerge:a,findByNodeName:f,arrayify:s,extendFunction:u,extendArray:p,startsWith:d},e.exports=t["default"]},function(t,o){t.exports=e},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,o,n){function r(e){return e&&a["default"].isFunction(e.then)}return{restrict:"A",require:"ngModel",link:function(i,l,f,s){function u(e,t,o){p(t,o),t=a["default"].isObject(t)?t.expression:t,h?d(t,o,e):c(t,o,e)}function p(e,o){var n=e.message;n&&(y.validation.messages[o]=function(){return t.formlyEval(i,n,s.$modelValue,s.$viewValue)})}function d(n,l,f){var u=!a["default"].isString(n),p=u||f?"$asyncValidators":"$validators";e.extras.explicitAsync&&!f&&(p="$validators"),s[p][l]=function(a,l){var s=t.formlyEval(i,n,a,l);return f?s:u&&!e.extras.explicitAsync?r(s)?(m(n,y),s):s?o.when(s):o.reject(s):s}}function c(e,o,n){var a=void 0;s.$parsers.unshift(function(l){var f=t.formlyEval(i,e,s.$modelValue,l);return n||r(f)?(n||m(e,y),s.$pending=s.$pending||{},s.$pending[o]=!0,a=f,f.then(function(){a===f&&s.$setValidity(o,!0)})["catch"](function(){a===f&&s.$setValidity(o,!1)})["finally"](function(){var e=s.$pending||{};1===Object.keys(e).length?delete s.$pending:delete s.$pending[o]})):s.$setValidity(o,f),l})}function m(e,t){-1===v.indexOf(e)&&(v.push(e),n("validators-returning-promises-should-use-asyncvalidators","Validators returning promises should use asyncValidators instead of validators.",t))}var y=i.options,v=[];y.validation.messages=y.validation.messages||{},a["default"].forEach(y.validation.messages,function(e,o){y.validation.messages[o]=function(){return t.formlyEval(i,e,s.$modelValue,s.$viewValue)}});var h=s.hasOwnProperty("$validators")&&!f.hasOwnProperty("useParsers");a["default"].forEach(y.validators,u.bind(null,!1)),a["default"].forEach(y.asyncValidators,u.bind(null,!0))}}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=n(i);t["default"]=r,r.$inject=["formlyConfig","formlyUtil","$q","formlyWarn"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o,n,i,f,u,d,c,m){function y(e,o,n,r,i){function a(){o(function(){var o=e.options,r=l();s["default"].forEach(o.expressionProperties,function(i,a){var l=n(a).assign,f=t.when(d.formlyEval(e,i,r,r));f.then(function(e){l(o,e)})})})}function l(t){return e.model&&e.options.key?(s["default"].isDefined(t)&&(e.model[e.options.key]=t),e.model[e.options.key]):void 0}function u(t){d.reverseDeepMerge(t,{originalModel:t.model,extras:{},data:{},templateOptions:{},validation:{}}),e.to=e.options.templateOptions,e.formOptions=e.formOptions||{}}function p(){if(s["default"].isFunction(f.extras.getFieldId))e.id=f.extras.getFieldId(e.options,e.model,e);else{var t=e.form&&e.form.$name||e.formId;e.id=d.getFieldId(t,e.options,e.index)}e.options.id=e.id,e.name=e.options.name||e.options.id,e.options.name=e.name}function c(){s["default"].isDefined(e.options.defaultValue)&&!s["default"].isDefined(e.model[e.options.key])&&(e.model[e.options.key]=e.options.defaultValue)}function m(){e.options.initialValue=e.model&&e.model[e.options.key]}function y(e,t){t&&v(e,t.defaultOptions);var o=j(e.optionsTypes).reverse();s["default"].forEach(o,function(t){v(e,f.getType(t,!0,e).defaultOptions)})}function v(t,o){o&&(s["default"].isFunction(o)&&(o=o(t,e)),d.reverseDeepMerge(t,o))}function h(e,t){var o=e.key||t||0;s["default"].extend(e,{key:o,value:e.value||l,runExpressions:a,resetModel:b,updateInitialValue:x})}function b(){e.model[e.options.key]=e.options.initialValue,e.options.formControl&&(s["default"].isArray(e.options.formControl)?s["default"].forEach(e.options.formControl,function(e){O(e,!0)}):O(e.options.formControl))}function O(t,o){o||t.$setViewValue(e.model[e.options.key]),t.$render(),t.$setUntouched(),t.$setPristine(),e.$root.$$phase||e.$digest()}function x(){e.options.initialValue=e.model[e.options.key]}function k(e){e.validation.messages=e.validation.messages||{},s["default"].forEach(i.messages,function(t,o){e.validation.messages[o]||(e.validation.messages[o]=function(e,o,n){return d.formlyEval(n,t,o,e)})})}function A(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];s["default"].forEach([o.controller,t.controller],function(t){t&&r(t,{$scope:e})})}function E(){e.options.options=e.options.options||{},e.options.options.formState=e.formState}if(e.options.fieldGroup)return void E();var w=g(e.options);u(e.options),y(e.options,w),h(e.options,e.index),$(e.options),p(),c(),m(),a(),k(e.options),A(e,e.options,w)}function v(e,n,u,p){function c(){w(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(" "));var o="model";e.options.form=e.form,e.options.key&&(o="model['"+e.options.key+"']"),x('\n <formly-form model="'+o+'"\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 y(){e.options.elementAttributes&&n.attr(e.options.elementAttributes)}function v(){e.options.className&&n.addClass(e.options.className),e.options.type&&n.addClass("formly-field-"+e.options.type)}function x(t){return n.html(h(t)),o(n.contents())(e),t}function A(t){function o(t){var o=/\{\{(.*?)}}/,r=o.exec(t);r&&(t=i(t)(e)),n(t)}function n(t){e.$watch('form["'+t+'"]',function(t){t&&(F>1?(e.options.formControl||(e.options.formControl=[]),e.options.formControl.push(t)):e.options.formControl=t,e.fc=e.options.formControl,y(),u(),p(),c())})}function u(){y=e.$watch(function(){var t=f.extras.errorExistsAndShouldBeVisibleExpression,o=e.options,n=e.fc;if(n.$invalid){if("boolean"==typeof o.validation.show)return o.validation.show;if(t)return d.formlyEval(e,t,n.$modelValue,n.$viewValue);var r=s["default"].isUndefined(n.$touched)&&n.$dirty;return e.fc.$touched||r}return!1},function(t){e.options.validation.errorExistsAndShouldBeVisible=t,e.showError=t})}function p(){m("parsers")}function c(){m("formatters");var t=e.fc,o=e.form.$pristine;e.options.formatters&&!function(){var n=t.$modelValue;t.$formatters.forEach(function(e){n=e(n)}),t.$setViewValue(n),t.$render(),t.$setPristine(),o&&e.form.$setPristine()}()}function m(t){function o(r){if(!r)return[];s["default"].isString(r)&&(r=f.getType(r,!0,e.options));var i=[];return r["extends"]&&(i=d.extendArray(i,o(r["extends"]))),i=d.extendArray(i,l(r,t,[])),i=d.extendArray(i,n(a(r)))}function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=[];return s["default"].forEach(s["default"].copy(j(e)).reverse(),function(e){t=d.extendArray(t,o(e))}),t}function i(t){function o(o){var n=e.options.value();return d.formlyEval(e,t,n,o)}return o[u]=t,o}var u="originalParser";"formatters"===t&&(u="originalFormatter");var p=o(M);p=d.extendArray(p,n(e.options.optionsTypes)),p=d.extendArray(p,e.options[t]),s["default"].forEach(p,function(e,t){p[t]=i(e)});var c=e.fc;s["default"].isArray(c)||(c=[c]),s["default"].forEach(c,function(e){var o;e["$"+t]=(o=e["$"+t]).concat.apply(o,r(p))})}var y=s["default"].noop;if(!e.options.noFormControl){var v=s["default"].element("<div>"+t+"</div>"),h=v[0].querySelectorAll("[ng-model],[data-ng-model]");h.length&&s["default"].forEach(h,function(e){F++,o(e.getAttribute("name"))})}}function E(){M&&M.link&&M.link.apply(_,C),e.options.link&&e.options.link.apply(_,C)}function $(o){return function(n){var r=t.when(n);return s["default"].forEach(o,function(o){r=r.then(function(n){return t.when(o(n,e.options,e)).then(function(e){return s["default"].isString(e)?e:h(e)})})}),r}}if(e.options.fieldGroup)return void c();!p&&e.options.model&&e.$watch("options.model",function(){return e.options.runExpressions()},!0),y(),v();var M=g(e.options),C=arguments,_=this,F=0,T=b(e.options,e.formOptions);O(e.options).then($(T.preWrapper)).then(k(e.options,e.formOptions)).then($(T.postWrapper)).then(x).then(A).then(E)["catch"](function(t){m("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",e.options,t)})}function h(e){var t=s["default"].element("<a></a>");return t.append(e).html()}function g(e){return e.type&&f.getType(e.type)}function b(e,t){function o(e){var t=e||{},o=t.preWrapper,i=void 0===o?[]:o,a=t.postWrapper,l=void 0===a?[]:a;n=n.concat(i),r=r.concat(l)}var n=[],r=[];return o(e.templateManipulators),o(t.templateManipulators),o(f.templateManipulators),{preWrapper:n,postWrapper:r}}function O(e){function t(t,o){return s["default"].isDefined(e[t])?e[t]:o&&s["default"].isDefined(o[t])?o[t]:void 0}var o=f.getType(e.type,!0,e),n=t("template",o),r=t("templateUrl",o);if(s["default"].isUndefined(n)&&!r)throw c.getFieldError("type-type-has-no-template","Type '"+e.type+"' has no template. On element:",e);return x(r||n,s["default"].isUndefined(n),e)}function x(o,r,i){var a=void 0;if(a=s["default"].isFunction(o)?t.when(o(i)):t.when(o),!r)return a;var l=function(){var t={cache:n};return{v:a.then(function(o){return e.get(o,t)}).then(function(e){return e.data})["catch"](function(e){m("problem-loading-template-for-templateurl","Problem loading template for "+o,e)})}}();return"object"==typeof l?l.v:void 0}function k(e,o){var n=E(e,o);return function(o){if(!n.length)return t.when(o);n.forEach(function(t){c.checkWrapper(t,e),t.validateOptions&&t.validateOptions(e),M(t,e)});var r=n.map(function(e){return x(e.template||e.templateUrl,!e.template)});return t.all(r).then(function(e){e.forEach(function(e,t){c.checkWrapperTemplate(e,n[t])}),e.reverse();var t=e.shift();return e.forEach(function(e){t=A(t,e)}),A(t,o)})}}function A(e,t){var o=s["default"].element("<a></a>");o.append(e);var n=o.find("formly-transclude");return n.length||(n=d.findByNodeName(o,"formly-transclude")),n.replaceWith(t),o.html()}function E(e,t){var o=e.wrapper;if(null===o)return[];o=o?j(o).map(f.getWrapper):j(f.getWrapperByType(e.type));var n=f.getType(e.type,!0,e);if(n&&n.wrapper){var r=j(n.wrapper).map(f.getWrapper);o=o.concat(r)}if(t.wrapper){var i=j(t.wrapper).map(f.getWrapper);o=o.concat(i)}var a=f.getWrapper();return a&&o.push(a),o}function $(e){u["throw"](u.formlyFieldOptions,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});var t=e.type&&f.getType(e.type);t&&(t.validateOptions&&t.validateOptions(e),M(t,e,!0)),e.expressionProperties&&e.expressionProperties.hide&&m("dont-use-expressionproperties.hide-use-hideexpression-instead","You have specified `hide` in `expressionProperties`. Use `hideExpression` instead",e)}function w(e){u["throw"](u.fieldGroup,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}function M(e,t,o){var n=e.apiCheck,r=e.apiCheckInstance,i=e.apiCheckFunction,a=e.apiCheckOptions;C(n,r,i,a,t),o&&t.type&&s["default"].forEach(f.getTypeHeritage(t.type),function(e){C(e.apiCheck,e.apiCheckInstance,e.apiCheckFunction,e.apiCheckOptions,t)})}function C(e,t,o,n,r){if(e){var i=t||f.extras.apiCheckInstance||u;if(!i.config.disabled&&!p["default"].globalConfig.disabled){var a=o||"warn";if(s["default"].isFunction(e)){var l=e(i);s["default"].forEach(l,function(e,t){var o=i.shape(e),l=s["default"].extend({prefix:"formly-field type "+r.type+" for property "+t,url:u.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"},n);i[a](o,r[t],l)})}else{var d=i.shape(e),c=n||{prefix:"formly-field type "+r.type,url:u.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"};i[a](d,r,c)}}}}var j=d.arrayify;return y.$inject=["$scope","$timeout","$parse","$controller","formlyValidationMessages"],{restrict:"AE",transclude:!0,require:"?^formlyForm",scope:{options:"=",model:"=",originalModel:"=?",formId:"@",index:"=?",fields:"=?",formState:"=?",formOptions:"=?",form:"=?"},controller:y,link:v}}function a(e){return l(e,"optionsTypes",[])}function l(e,t,o){return e.defaultOptions&&e.defaultOptions[t]||o}Object.defineProperty(t,"__esModule",{value:!0});var f=o(1),s=n(f),u=o(4),p=n(u);t["default"]=i,i.$inject=["$http","$q","$compile","$templateCache","$interpolate","formlyConfig","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"],e.exports=t["default"]},function(e,t){"use strict";function o(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())})}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o,o.$inject=["$timeout","$document"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o,n,i){function l(t,o){function r(){return o.rootEl||"ng-form"}function a(){return o.fieldRootEl||"div"}function l(){return o.hideDirective||n.extras.defaultHideDirective||"ng-if"}function s(){return o.trackBy?"track by "+o.trackBy:""}function u(){var t=h,n=o.bindName;if(n){if(f["default"].version.minor<3)throw e.getFormlyError("bind-name attribute on formly-form not allowed in < angular 1.3");t=i.startSymbol()+"::'formly_' + "+n+i.endSymbol()}return t}function d(){return o.transcludeClass||""}function m(e){var t=["model","form","fields","options","name","role","class","data-model","data-form","data-fields","data-options","data-name"],o=[];return f["default"].forEach(e,function(e){var n=e.nodeName,r=e.value;"undefined"!==n&&-1===t.indexOf(n)&&o.push(p(n)+'="'+r+'"')}),o.join(" ")}var y=r(),v=a(),h="formly_"+c++,g="";return o.hasOwnProperty("isFieldGroup")&&t.parent().parent().hasClass("formly")&&(g=m(t.parent().parent()[0].attributes)),"\n <"+y+' class="formly"\n name="'+u()+'"\n role="form" '+g+">\n <"+v+' formly-field\n ng-repeat="field in fields '+s()+'"\n '+l()+'="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n original-model="model"\n fields="fields"\n form="theFormlyForm"\n form-id="'+u()+'"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </'+v+'>\n <div ng-transclude class="'+d()+'"></div>\n </'+y+">\n "}function s(t,o,i){function l(){f["default"].forEach(t.fields,function(e,o){var n=e.model||t.model;if(e.runExpressions&&e.runExpressions(),e.hideExpression){var r=n[e.key];e.hide=k(e.hideExpression,r,e,o)}e.extras&&e.extras.validateOnModelChange&&e.formControl&&e.formControl.$validate()})}function s(){t.fields=t.fields||[];var o=t.options.fieldTransform||n.extras.fieldTransform;if(o&&(t.fields=o(t.fields,t.model,t.options,t.form),!t.fields))throw e.getFormlyError("fieldTransform must return an array of fields");m(),f["default"].forEach(t.fields,h),f["default"].forEach(t.fields,g)}function u(){o["throw"]([o.formOptionsApi.optional],[t.options],{prefix:"formly-form options check"}),t.options=t.options||{},t.options.formState=t.options.formState||{},f["default"].extend(t.options,{updateInitialValue:p,resetModel:c})}function p(){f["default"].forEach(t.fields,function(e){d(e)&&e.options?e.options.updateInitialValue():e.updateInitialValue()})}function c(){f["default"].forEach(t.fields,function(e){d(e)&&e.options?e.options.resetModel():e.resetModel&&e.resetModel()})}function m(){var e=[t.model];t.options.formState&&e.push(t.options.formState),f["default"].forEach(t.fields,function(o){var n=y(o);o.model&&n&&-1===e.indexOf(o.model)&&(t.$watch(function(){return o.model},l,!0),e.push(o.model))})}function y(o){var n=!0;if(f["default"].isString(o.model)){var r=o.model,i=t.fields.indexOf(o);if(n=!v(r),o.model=k(r,void 0,o,i),!o.model)throw e.getFieldError("field-model-must-be-initialized","Field model must be initialized. When specifying a model as a string for a field, the result of the expression must have been initialized ahead of time.",o)}return n}function v(e){return["model","formState"].some(function(t){return i.startsWith(e,t+".")||i.startsWith(e,t+"[")})}function h(e,t){d(e)||(e.key=e.key||t||0)}function g(o,n){if(!d(o)&&f["default"].isDefined(o.watcher)){var r=o.watcher;f["default"].isArray(r)||(r=[r]),f["default"].forEach(r,function(r){if(!f["default"].isDefined(r.listener))throw e.getFieldError("all-field-watchers-must-have-a-listener","All field watchers must have a listener",o);var i=b(r,o,n),a=O(r,o,n),l=r.type||"$watch";r.stopWatching=t[l](i,a,r.watchDeep)})}}function b(e,t,o){var n=e.expression||"model['"+t.key+"']";return f["default"].isFunction(n)&&!function(){var i=n;n=function(){var t=x.apply(void 0,[e,o].concat(a.call(arguments)));return i.apply(void 0,r(t))},n.displayName="Formly Watch Expression for field for "+t.key}(),n}function O(e,t,o){var n=e.listener;return f["default"].isFunction(n)&&!function(){var i=n;n=function(){var t=x.apply(void 0,[e,o].concat(a.call(arguments)));return i.apply(void 0,r(t))},n.displayName="Formly Watch Listener for field for "+t.key}(),n}function x(e,o){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];return[t.fields[o]].concat(r,[e.stopWatching])}function k(e,o,n,r){var a=A(n,r);return i.formlyEval(t,e,o,o,a)}function A(e,o){return{options:e,index:o,formState:t.options.formState,formId:t.formId}}u(),t.model=t.model||{},s(),t.$watch("model",l,!0),t.options.formState&&t.$watch("options.formState",l,!0)}function u(e,r,i){function a(){var a=i.name;if(e.formId=a,e.theFormlyForm=e[a],i.form){var l=o(i.form),f=l.assign,s=l(e.$parent);s?(e.theFormlyForm=s,e[a]&&e.theFormlyForm.$removeControl(e[a]),r.removeData("$formController")):f(e.$parent,e[a])}e.theFormlyForm||n.disableWarnings||t("formly-form-has-no-formcontroller","Your formly-form does not have a `form` property. Many functions of the form (like validation) may not work",r,e)}function l(){var t=n.extras.removeChromeAutoComplete===!0,o=e.options&&e.options.removeChromeAutoComplete===!1,i=e.options&&e.options.removeChromeAutoComplete===!0;if(t&&!o||i){var a=document.createElement("input");a.setAttribute("autocomplete","address-level4"),a.setAttribute("hidden","true"),r[0].appendChild(a)}}a(),l()}function p(e){return e?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):""}function d(e){return e&&!!e.fieldGroup}var c=1;return s.$inject=["$scope","formlyApiCheck","formlyUtil"],{restrict:"AE",template:l,replace:!0,transclude:!0,scope:{fields:"=",model:"=",form:"=?",options:"=?"},controller:s,link:u}}Object.defineProperty(t,"__esModule",{value:!0});var a=Array.prototype.slice,l=o(1),f=n(l);t["default"]=i,i.$inject=["formlyUsability","formlyWarn","$parse","formlyConfig","$interpolate"],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(1),i=n(r),a=o(10),l=n(a),f=o(2),s=n(f),u=o(12),p=n(u),d=o(11),c=n(d),m=o(13),y=n(m),v=o(16),h=n(v),g=o(17),b=n(g),O=o(5),x=n(O),k=o(6),A=n(k),E=o(7),$=n(E),w=o(8),M=n(w),C=o(15),j=n(C),_=o(14),F=n(_),T="formly";t["default"]=T;var W=i["default"].module(T,[]);W.constant("formlyApiCheck",l["default"]),W.constant("formlyErrorAndWarningsUrlPrefix",s["default"]),W.constant("formlyVersion","6.26.4"),W.provider("formlyUsability",p["default"]),W.provider("formlyConfig",c["default"]),W.factory("formlyValidationMessages",y["default"]),W.factory("formlyUtil",h["default"]),W.factory("formlyWarn",b["default"]),W.directive("formlyCustomValidation",x["default"]),W.directive("formlyField",A["default"]),W.directive("formlyFocus",$["default"]),W.directive("formlyForm",M["default"]),W.run(j["default"]),W.run(F["default"]),e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){function o(o,r,i,a){var l=a&&a.hasOwnProperty(r),f=e.some(function(e){return a&&a.hasOwnProperty(e)});return f||l?l?t(o,r,i,a):void 0:u.utils.getError(r,i,n)}l["default"].isArray(e)||(e=[e]);var n="specified if these are not specified: `"+e.join(", ")+"` (otherwise it's optional)";return o.type=n,u.utils.checkerHelpers.setupChecker(o)}function i(e){return u.oneOfType([u.oneOf([null]),e])}Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=n(a),f=o(4),s=n(f),u=s["default"]({output:{prefix:"angular-formly:",docsBaseUrl:o(2)}}),p=u.oneOfType([u.string,u.func]),d=i(u.typeOrArrayOf(u.string)),c=u.oneOfType([u.func,u.objectOf(u.func)]),m=u.shape.onlyIf("apiCheck",u.func.withProperties({warn:u.func,"throw":u.func,shape:u.func})),y=u.shape.onlyIf("apiCheck",u.oneOf(["throw","warn"])),v=u.shape({name:r("types",u.string).optional,template:u.shape.ifNot("templateUrl",u.string).optional,templateUrl:u.shape.ifNot("template",u.string).optional,types:u.typeOrArrayOf(u.string).optional,overwriteOk:u.bool.optional,validateOptions:u.func.optional,apiCheck:c.optional,apiCheckInstance:m.optional,apiCheckFunction:y.optional,apiCheckOptions:u.object.optional}).strict,h=u.objectOf(u.oneOfType([p,u.shape({expression:p,message:p.optional}).strict])),g=u.oneOfType([u.string,u.object]),b=i(u.shape({preWrapper:i(u.arrayOf(u.func)).optional,postWrapper:i(u.arrayOf(u.func)).optional}).strict),O=u.objectOf(u.oneOfType([p,u.shape({expression:p,message:p.optional}).strict])),x={$$hashKey:u.any.optional,type:u.shape.ifNot(["template","templateUrl"],u.string).optional,template:u.shape.ifNot(["type","templateUrl"],u.oneOfType([u.string,u.func])).optional,templateUrl:u.shape.ifNot(["type","template"],u.oneOfType([u.string,u.func])).optional,key:u.oneOfType([u.string,u.number]).optional,model:g.optional,originalModel:g.optional,className:u.string.optional,id:u.string.optional,name:u.string.optional,expressionProperties:h.optional,extras:u.shape({validateOnModelChange:u.bool.optional,skipNgModelAttrsManipulator:u.oneOfType([u.string,u.bool]).optional}).strict.optional,data:u.object.optional,templateOptions:u.object.optional,wrapper:d.optional,modelOptions:u.shape({updateOn:u.string.optional,debounce:u.oneOfType([u.objectOf(u.number),u.number]).optional,allowInvalid:u.bool.optional,getterSetter:u.bool.optional,timezone:u.string.optional}).optional,watcher:u.typeOrArrayOf(u.shape({expression:p.optional,listener:p})).optional,validators:O.optional,asyncValidators:O.optional,parsers:u.arrayOf(p).optional,formatters:u.arrayOf(p).optional,noFormControl:u.bool.optional,hide:u.bool.optional,hideExpression:p.optional,ngModelElAttrs:u.objectOf(u.string).optional,ngModelAttrs:u.objectOf(u.shape({expression:u.shape.ifNot(["value","attribute","bound","boolean"],u.any).optional,value:u.shape.ifNot("expression",u.any).optional,attribute:u.shape.ifNot("expression",u.any).optional,bound:u.shape.ifNot("expression",u.any).optional,"boolean":u.shape.ifNot("expression",u.any).optional}).strict).optional,elementAttributes:u.objectOf(u.string).optional,optionsTypes:u.typeOrArrayOf(u.string).optional,link:u.func.optional,controller:u.oneOfType([u.string,u.func,u.array]).optional,validation:u.shape({show:i(u.bool).optional,messages:u.objectOf(p).optional,errorExistsAndShouldBeVisible:u.bool.optional}).optional,formControl:u.typeOrArrayOf(u.object).optional,value:u.func.optional,runExpressions:u.func.optional,templateManipulators:b.optional,resetModel:u.func.optional,updateInitialValue:u.func.optional,initialValue:u.any.optional,defaultValue:u.any.optional},k=u.shape(x).strict,A=u.shape({formState:u.object.optional,resetModel:u.func.optional,updateInitialValue:u.func.optional,removeChromeAutoComplete:u.bool.optional,templateManipulators:b.optional,wrapper:d.optional,fieldTransform:u.func.optional,data:u.object.optional}).strict,E=u.shape({$$hashKey:u.any.optional,key:u.oneOfType([u.string,u.number]).optional,fieldGroup:u.arrayOf(u.oneOfType([k,u.object])),className:u.string.optional,options:A.optional,hide:u.bool.optional,hideExpression:p.optional,data:u.object.optional,model:g.optional,form:u.object.optional,elementAttributes:u.objectOf(u.string).optional}).strict,$=l["default"].copy(x);$.key=u.string.optional;var w=u.shape({name:u.string,template:u.shape.ifNot("templateUrl",u.oneOfType([u.string,u.func])).optional,templateUrl:u.shape.ifNot("template",u.oneOfType([u.string,u.func])).optional,controller:u.oneOfType([u.func,u.string,u.array]).optional,link:u.func.optional,defaultOptions:u.oneOfType([u.func,u.shape($)]).optional,"extends":u.string.optional,wrapper:d.optional,data:u.object.optional,validateOptions:u.func.optional,apiCheck:c.optional,apiCheckInstance:m.optional,apiCheckFunction:y.optional,apiCheckOptions:u.object.optional,overwriteOk:u.bool.optional}).strict;l["default"].extend(u,{formlyTypeOptions:w,formlyFieldOptions:k,formlyExpression:p,formlyWrapperType:v,fieldGroup:E,formOptionsApi:A}),t["default"]=u,e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o){function n(e){if(!l["default"].isArray(e)){if(l["default"].isObject(e))return i(e),e["extends"]&&a(e),j[e.name]=e,j[e.name];throw W("You must provide an object or array for setType. You provided: "+JSON.stringify(arguments))}var t=function(){var t=[];return l["default"].forEach(e,function(e){t.push(n(e))}),{v:t}}();return"object"==typeof t?t.v:void 0}function i(e){o["throw"](o.formlyTypeOptions,e,{prefix:"formlyConfig.setType",url:"settype-validation-failed"}),k(e),e.overwriteOk?e.overwriteOk=void 0:x(e.name,j,e,"types")}function a(e){var t=m(e["extends"],!0,e);u(e,t),p(e,t),d(e,t),c(e,t),s["default"].reverseDeepMerge(e,t),f(e,t)}function f(e,t){e.template&&t.templateUrl?delete e.templateUrl:e.templateUrl&&t.template&&delete e.template}function u(e,t){var o=t.controller;if(l["default"].isDefined(o)){var n=e.controller;l["default"].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(l["default"].isDefined(o)){var n=e.link;l["default"].isDefined(n)?e.link=function(){o.apply(void 0,arguments),n.apply(void 0,arguments)}:e.link=o}}function d(e,t){var o=t.validateOptions;if(l["default"].isDefined(o)){var n=e.validateOptions,r=e.defaultOptions;l["default"].isDefined(n)?e.validateOptions=function(e){n(e);var t=l["default"].copy(e),i=r;i&&(l["default"].isFunction(i)&&(i=i(t)),s["default"].reverseDeepMerge(t,i)),o(t)}:e.validateOptions=o}}function c(e,t){var o=t.defaultOptions;if(l["default"].isDefined(o)){var n=e.defaultOptions,r=l["default"].isFunction(n),i=l["default"].isFunction(o);i?e.defaultOptions=function(e,t){var i=o(e,t),a={};s["default"].reverseDeepMerge(a,e,i);var l=n;return r&&(l=l(a,t)),s["default"].reverseDeepMerge(i,l),i}:r&&(e.defaultOptions=function(e,t){var r={};return s["default"].reverseDeepMerge(r,e,o),n(r,t)})}}function m(e,t,o){if(!e)return void 0;var n=j[e];if(n||t!==!0)return n;throw W('There is no type by the name of "'+e+'": '+JSON.stringify(o))}function y(e){var t=[],o=e;for(l["default"].isString(o)&&(o=m(e)),e=o["extends"];e;)o=m(e),t.push(o),e=o["extends"];return t}function v(e,t){for(var o=!0;o;){var n=e,r=t;if(o=!1,l["default"].isArray(n))return n.map(function(e){return v(e)});if(l["default"].isObject(n))return n.types=h(n),n.name=g(n,r),b(n),_[n.name]=n,n;l["default"].isString(n)&&(e={template:n,name:r},t=void 0,o=!0)}}function h(e){return l["default"].isString(e.types)?[e.types]:l["default"].isDefined(e.types)?e.types:[]}function g(e,t){return e.name||t||e.types.join(" ")||F}function b(t){e.checkWrapper(t),t.template&&e.checkWrapperTemplate(t.template,t),k(t),t.overwriteOk?delete t.overwriteOk:x(t.name,_,t,"templateWrappers"),O(t)}function O(e){var t=!l["default"].isArray(e.types)||!e.types.every(l["default"].isString);if(t)throw W("Attempted to create a template wrapper with types that is not a string or an array of strings")}function x(e,t,o,n){t.hasOwnProperty(e)&&M("overwriting-types-or-wrappers",["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 k(e){e.apiCheck&&!l["default"].isFunction(e.apiCheck)&&M("apicheck-as-an-object-deprecated","apiCheck as an object has been deprecated.","Attempted for type: "+e.name,e),e.validateOptions&&M("validateoptions-deprecated","the `validateOptions` property has been deprecated.","Attempted for type: "+e.name,e)}function A(e){return _[e||F]}function E(e){var t=[];for(var o in _)_.hasOwnProperty(o)&&_[o].types&&-1!==_[o].types.indexOf(e)&&t.push(_[o]);return t}function $(e){var t=_[e];return delete _[e],t}function w(e){var t=E(e);return t?l["default"].isArray(t)?(t.forEach(function(e){return $(e.name)}),t):$(t.name):void 0}function M(){if(!T.disableWarnings&&console.warn){var e=Array.prototype.slice.call(arguments),o=e.shift();e.unshift("Formly Warning:"),e.push(""+t+o),console.warn.apply(console,r(e));
//! angular-formly version 6.26.5 built with ♥ by Astrism <astrisms@gmail.com>, Kent C. Dodds <kent@doddsfamily.us> (ó ì_í)=óò=(ì_í ò)
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("api-check"),require("angular")):"function"==typeof define&&define.amd?define(["api-check","angular"],t):"object"==typeof exports?exports.ngFormly=t(require("api-check"),require("angular")):e.ngFormly=t(e.apiCheck,e.angular)}(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";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(9),i=n(r);t["default"]=i["default"],e.exports=t["default"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(18);n.version||(n=window.angular),t["default"]=n,e.exports=t["default"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]="https://github.com/formly-js/angular-formly/blob/6.26.5/other/ERRORS_AND_WARNINGS.md#",e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,o,n,r){return m["default"].isFunction(t)?t(n,o,e,r):e.$eval(t,m["default"].extend({$viewValue:n,$modelValue:o},r))}function i(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 a(e){return m["default"].forEach(arguments,function(t,o){o&&m["default"].forEach(t,function(t,o){m["default"].isDefined(e[o])?l(e[o],t)&&a(e[o],t):e[o]=m["default"].copy(t)})}),e}function l(e,t){return m["default"].isObject(e)&&m["default"].isObject(t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)}function f(e,t){if(e.prop||(e=m["default"].element(e)),e.prop("nodeName")===t.toUpperCase())return e;for(var o=e.children(),n=0;o&&n<o.length;n++){var r=f(o[n],t);if(r)return r}}function s(e){return e&&!m["default"].isArray(e)?e=[e]:e||(e=[]),e}function u(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];return function(){var e=arguments;t.forEach(function(t){return t.apply(null,e)})}}function p(e,t,o){return o&&(e=e[o],t=t[o]),t&&e?(m["default"].forEach(t,function(t){-1===e.indexOf(t)&&e.push(t)}),e):t?t:e}function d(e,t){return m["default"].isString(e)&&m["default"].isString(t)?e.length>=t.length&&e.substring(0,t.length)===t:!1}Object.defineProperty(t,"__esModule",{value:!0});var c=o(1),m=n(c);t["default"]={formlyEval:r,getFieldId:i,reverseDeepMerge:a,findByNodeName:f,arrayify:s,extendFunction:u,extendArray:p,startsWith:d},e.exports=t["default"]},function(t,o){t.exports=e},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,o,n){function r(e){return e&&a["default"].isFunction(e.then)}return{restrict:"A",require:"ngModel",link:function(i,l,f,s){function u(e,t,o){p(t,o),t=a["default"].isObject(t)?t.expression:t,h?d(t,o,e):c(t,o,e)}function p(e,o){var n=e.message;n&&(y.validation.messages[o]=function(){return t.formlyEval(i,n,s.$modelValue,s.$viewValue)})}function d(n,l,f){var u=!a["default"].isString(n),p=u||f?"$asyncValidators":"$validators";e.extras.explicitAsync&&!f&&(p="$validators"),s[p][l]=function(a,l){var s=t.formlyEval(i,n,a,l);return f?s:u&&!e.extras.explicitAsync?r(s)?(m(n,y),s):s?o.when(s):o.reject(s):s}}function c(e,o,n){var a=void 0;s.$parsers.unshift(function(l){var f=t.formlyEval(i,e,s.$modelValue,l);return n||r(f)?(n||m(e,y),s.$pending=s.$pending||{},s.$pending[o]=!0,a=f,f.then(function(){a===f&&s.$setValidity(o,!0)})["catch"](function(){a===f&&s.$setValidity(o,!1)})["finally"](function(){var e=s.$pending||{};1===Object.keys(e).length?delete s.$pending:delete s.$pending[o]})):s.$setValidity(o,f),l})}function m(e,t){-1===v.indexOf(e)&&(v.push(e),n("validators-returning-promises-should-use-asyncvalidators","Validators returning promises should use asyncValidators instead of validators.",t))}var y=i.options,v=[];y.validation.messages=y.validation.messages||{},a["default"].forEach(y.validation.messages,function(e,o){y.validation.messages[o]=function(){return t.formlyEval(i,e,s.$modelValue,s.$viewValue)}});var h=s.hasOwnProperty("$validators")&&!f.hasOwnProperty("useParsers");a["default"].forEach(y.validators,u.bind(null,!1)),a["default"].forEach(y.asyncValidators,u.bind(null,!0))}}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=n(i);t["default"]=r,r.$inject=["formlyConfig","formlyUtil","$q","formlyWarn"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o,n,i,f,u,d,c,m){function y(e,o,n,r,i){function a(){o(function(){var o=e.options,r=l();s["default"].forEach(o.expressionProperties,function(i,a){var l=n(a).assign,f=t.when(d.formlyEval(e,i,r,r));f.then(function(e){l(o,e)})})})}function l(t){return e.model&&e.options.key?(s["default"].isDefined(t)&&(e.model[e.options.key]=t),e.model[e.options.key]):void 0}function u(t){d.reverseDeepMerge(t,{originalModel:t.model,extras:{},data:{},templateOptions:{},validation:{}}),e.to=e.options.templateOptions,e.formOptions=e.formOptions||{}}function p(){if(s["default"].isFunction(f.extras.getFieldId))e.id=f.extras.getFieldId(e.options,e.model,e);else{var t=e.form&&e.form.$name||e.formId;e.id=d.getFieldId(t,e.options,e.index)}e.options.id=e.id,e.name=e.options.name||e.options.id,e.options.name=e.name}function c(){s["default"].isDefined(e.options.defaultValue)&&!s["default"].isDefined(e.model[e.options.key])&&(e.model[e.options.key]=e.options.defaultValue)}function m(){e.options.initialValue=e.model&&e.model[e.options.key]}function y(e,t){t&&v(e,t.defaultOptions);var o=j(e.optionsTypes).reverse();s["default"].forEach(o,function(t){v(e,f.getType(t,!0,e).defaultOptions)})}function v(t,o){o&&(s["default"].isFunction(o)&&(o=o(t,e)),d.reverseDeepMerge(t,o))}function h(e,t){var o=e.key||t||0;s["default"].extend(e,{key:o,value:e.value||l,runExpressions:a,resetModel:b,updateInitialValue:x})}function b(){e.model[e.options.key]=e.options.initialValue,e.options.formControl&&(s["default"].isArray(e.options.formControl)?s["default"].forEach(e.options.formControl,function(e){O(e,!0)}):O(e.options.formControl))}function O(t,o){o||t.$setViewValue(e.model[e.options.key]),t.$render(),t.$setUntouched(),t.$setPristine(),e.$root.$$phase||e.$digest()}function x(){e.options.initialValue=e.model[e.options.key]}function k(e){e.validation.messages=e.validation.messages||{},s["default"].forEach(i.messages,function(t,o){e.validation.messages[o]||(e.validation.messages[o]=function(e,o,n){return d.formlyEval(n,t,o,e)})})}function A(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];s["default"].forEach([o.controller,t.controller],function(t){t&&r(t,{$scope:e})})}function E(){e.options.options=e.options.options||{},e.options.options.formState=e.formState}if(e.options.fieldGroup)return void E();var w=g(e.options);u(e.options),y(e.options,w),h(e.options,e.index),$(e.options),p(),c(),m(),a(),k(e.options),A(e,e.options,w)}function v(e,n,u,p){function c(){w(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(" "));var o="model";e.options.form=e.form,e.options.key&&(o="model['"+e.options.key+"']"),x('\n <formly-form model="'+o+'"\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 y(){e.options.elementAttributes&&n.attr(e.options.elementAttributes)}function v(){e.options.className&&n.addClass(e.options.className),e.options.type&&n.addClass("formly-field-"+e.options.type)}function x(t){return n.html(h(t)),o(n.contents())(e),t}function A(t){function o(t){var o=/\{\{(.*?)}}/,r=o.exec(t);r&&(t=i(t)(e)),n(t)}function n(t){e.$watch('form["'+t+'"]',function(t){t&&(F>1?(e.options.formControl||(e.options.formControl=[]),e.options.formControl.push(t)):e.options.formControl=t,e.fc=e.options.formControl,y(),u(),p(),c())})}function u(){y=e.$watch(function(){var t=f.extras.errorExistsAndShouldBeVisibleExpression,o=e.options,n=e.fc;if(n.$invalid){if("boolean"==typeof o.validation.show)return o.validation.show;if(t)return d.formlyEval(e,t,n.$modelValue,n.$viewValue);var r=s["default"].isUndefined(n.$touched)&&n.$dirty;return e.fc.$touched||r}return!1},function(t){e.options.validation.errorExistsAndShouldBeVisible=t,e.showError=t})}function p(){m("parsers")}function c(){m("formatters");var t=e.fc,o=e.form.$pristine;e.options.formatters&&!function(){var n=t.$modelValue;t.$formatters.forEach(function(e){n=e(n)}),t.$setViewValue(n),t.$render(),t.$setPristine(),o&&e.form.$setPristine()}()}function m(t){function o(r){if(!r)return[];s["default"].isString(r)&&(r=f.getType(r,!0,e.options));var i=[];return r["extends"]&&(i=d.extendArray(i,o(r["extends"]))),i=d.extendArray(i,l(r,t,[])),i=d.extendArray(i,n(a(r)))}function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=[];return s["default"].forEach(s["default"].copy(j(e)).reverse(),function(e){t=d.extendArray(t,o(e))}),t}function i(t){function o(o){var n=e.options.value();return d.formlyEval(e,t,n,o)}return o[u]=t,o}var u="originalParser";"formatters"===t&&(u="originalFormatter");var p=o(M);p=d.extendArray(p,n(e.options.optionsTypes)),p=d.extendArray(p,e.options[t]),s["default"].forEach(p,function(e,t){p[t]=i(e)});var c=e.fc;s["default"].isArray(c)||(c=[c]),s["default"].forEach(c,function(e){var o;e["$"+t]=(o=e["$"+t]).concat.apply(o,r(p))})}var y=s["default"].noop;if(!e.options.noFormControl){var v=s["default"].element("<div>"+t+"</div>"),h=v[0].querySelectorAll("[ng-model],[data-ng-model]");h.length&&s["default"].forEach(h,function(e){F++,o(e.getAttribute("name"))})}}function E(){M&&M.link&&M.link.apply(_,C),e.options.link&&e.options.link.apply(_,C)}function $(o){return function(n){var r=t.when(n);return s["default"].forEach(o,function(o){r=r.then(function(n){return t.when(o(n,e.options,e)).then(function(e){return s["default"].isString(e)?e:h(e)})})}),r}}if(e.options.fieldGroup)return void c();!p&&e.options.model&&e.$watch("options.model",function(){return e.options.runExpressions()},!0),y(),v();var M=g(e.options),C=arguments,_=this,F=0,T=b(e.options,e.formOptions);O(e.options).then($(T.preWrapper)).then(k(e.options,e.formOptions)).then($(T.postWrapper)).then(x).then(A).then(E)["catch"](function(t){m("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",e.options,t)})}function h(e){var t=s["default"].element("<a></a>");return t.append(e).html()}function g(e){return e.type&&f.getType(e.type)}function b(e,t){function o(e){var t=e||{},o=t.preWrapper,i=void 0===o?[]:o,a=t.postWrapper,l=void 0===a?[]:a;n=n.concat(i),r=r.concat(l)}var n=[],r=[];return o(e.templateManipulators),o(t.templateManipulators),o(f.templateManipulators),{preWrapper:n,postWrapper:r}}function O(e){function t(t,o){return s["default"].isDefined(e[t])?e[t]:o&&s["default"].isDefined(o[t])?o[t]:void 0}var o=f.getType(e.type,!0,e),n=t("template",o),r=t("templateUrl",o);if(s["default"].isUndefined(n)&&!r)throw c.getFieldError("type-type-has-no-template","Type '"+e.type+"' has no template. On element:",e);return x(r||n,s["default"].isUndefined(n),e)}function x(o,r,i){var a=void 0;if(a=s["default"].isFunction(o)?t.when(o(i)):t.when(o),!r)return a;var l=function(){var t={cache:n};return{v:a.then(function(o){return e.get(o,t)}).then(function(e){return e.data})["catch"](function(e){m("problem-loading-template-for-templateurl","Problem loading template for "+o,e)})}}();return"object"==typeof l?l.v:void 0}function k(e,o){var n=E(e,o);return function(o){if(!n.length)return t.when(o);n.forEach(function(t){c.checkWrapper(t,e),t.validateOptions&&t.validateOptions(e),M(t,e)});var r=n.map(function(e){return x(e.template||e.templateUrl,!e.template)});return t.all(r).then(function(e){e.forEach(function(e,t){c.checkWrapperTemplate(e,n[t])}),e.reverse();var t=e.shift();return e.forEach(function(e){t=A(t,e)}),A(t,o)})}}function A(e,t){var o=s["default"].element("<a></a>");o.append(e);var n=o.find("formly-transclude");return n.length||(n=d.findByNodeName(o,"formly-transclude")),n.replaceWith(t),o.html()}function E(e,t){var o=e.wrapper;if(null===o)return[];o=o?j(o).map(f.getWrapper):j(f.getWrapperByType(e.type));var n=f.getType(e.type,!0,e);if(n&&n.wrapper){var r=j(n.wrapper).map(f.getWrapper);o=o.concat(r)}if(t.wrapper){var i=j(t.wrapper).map(f.getWrapper);o=o.concat(i)}var a=f.getWrapper();return a&&o.push(a),o}function $(e){u["throw"](u.formlyFieldOptions,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});var t=e.type&&f.getType(e.type);t&&(t.validateOptions&&t.validateOptions(e),M(t,e,!0)),e.expressionProperties&&e.expressionProperties.hide&&m("dont-use-expressionproperties.hide-use-hideexpression-instead","You have specified `hide` in `expressionProperties`. Use `hideExpression` instead",e)}function w(e){u["throw"](u.fieldGroup,e,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}function M(e,t,o){var n=e.apiCheck,r=e.apiCheckInstance,i=e.apiCheckFunction,a=e.apiCheckOptions;C(n,r,i,a,t),o&&t.type&&s["default"].forEach(f.getTypeHeritage(t.type),function(e){C(e.apiCheck,e.apiCheckInstance,e.apiCheckFunction,e.apiCheckOptions,t)})}function C(e,t,o,n,r){if(e){var i=t||f.extras.apiCheckInstance||u;if(!i.config.disabled&&!p["default"].globalConfig.disabled){var a=o||"warn";if(s["default"].isFunction(e)){var l=e(i);s["default"].forEach(l,function(e,t){var o=i.shape(e),l=s["default"].extend({prefix:"formly-field type "+r.type+" for property "+t,url:u.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"},n);i[a](o,r[t],l)})}else{var d=i.shape(e),c=n||{prefix:"formly-field type "+r.type,url:u.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"};i[a](d,r,c)}}}}var j=d.arrayify;return y.$inject=["$scope","$timeout","$parse","$controller","formlyValidationMessages"],{restrict:"AE",transclude:!0,require:"?^formlyForm",scope:{options:"=",model:"=",originalModel:"=?",formId:"@",index:"=?",fields:"=?",formState:"=?",formOptions:"=?",form:"=?"},controller:y,link:v}}function a(e){return l(e,"optionsTypes",[])}function l(e,t,o){return e.defaultOptions&&e.defaultOptions[t]||o}Object.defineProperty(t,"__esModule",{value:!0});var f=o(1),s=n(f),u=o(4),p=n(u);t["default"]=i,i.$inject=["$http","$q","$compile","$templateCache","$interpolate","formlyConfig","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"],e.exports=t["default"]},function(e,t){"use strict";function o(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())})}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o,o.$inject=["$timeout","$document"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o,n,i){function l(t,o){function r(){return o.rootEl||"ng-form"}function a(){return o.fieldRootEl||"div"}function l(){return o.hideDirective||n.extras.defaultHideDirective||"ng-if"}function s(){return o.trackBy?"track by "+o.trackBy:""}function u(){var t=h,n=o.bindName;if(n){if(f["default"].version.minor<3)throw e.getFormlyError("bind-name attribute on formly-form not allowed in < angular 1.3");t=i.startSymbol()+"::'formly_' + "+n+i.endSymbol()}return t}function d(){return o.transcludeClass||""}function m(e){var t=["model","form","fields","options","name","role","class","data-model","data-form","data-fields","data-options","data-name"],o=[];return f["default"].forEach(e,function(e){var n=e.nodeName,r=e.value;"undefined"!==n&&-1===t.indexOf(n)&&o.push(p(n)+'="'+r+'"')}),o.join(" ")}var y=r(),v=a(),h="formly_"+c++,g="";return o.hasOwnProperty("isFieldGroup")&&t.parent().parent().hasClass("formly")&&(g=m(t.parent().parent()[0].attributes)),"\n <"+y+' class="formly"\n name="'+u()+'"\n role="form" '+g+">\n <"+v+' formly-field\n ng-repeat="field in fields '+s()+'"\n '+l()+'="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n original-model="model"\n fields="fields"\n form="theFormlyForm"\n form-id="'+u()+'"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </'+v+'>\n <div ng-transclude class="'+d()+'"></div>\n </'+y+">\n "}function s(t,o,i){function l(){f["default"].forEach(t.fields,function(e,o){var n=e.model||t.model;if(e.runExpressions&&e.runExpressions(),e.hideExpression){var r=n[e.key];e.hide=k(e.hideExpression,r,e,o)}e.extras&&e.extras.validateOnModelChange&&e.formControl&&e.formControl.$validate()})}function s(){t.fields=t.fields||[];var o=t.options.fieldTransform||n.extras.fieldTransform;if(o&&(t.fields=o(t.fields,t.model,t.options,t.form),!t.fields))throw e.getFormlyError("fieldTransform must return an array of fields");m(),f["default"].forEach(t.fields,h),f["default"].forEach(t.fields,g)}function u(){o["throw"]([o.formOptionsApi.optional],[t.options],{prefix:"formly-form options check"}),t.options=t.options||{},t.options.formState=t.options.formState||{},f["default"].extend(t.options,{updateInitialValue:p,resetModel:c})}function p(){f["default"].forEach(t.fields,function(e){d(e)&&e.options?e.options.updateInitialValue():e.updateInitialValue()})}function c(){f["default"].forEach(t.fields,function(e){d(e)&&e.options?e.options.resetModel():e.resetModel&&e.resetModel()})}function m(){var e=[t.model];t.options.formState&&e.push(t.options.formState),f["default"].forEach(t.fields,function(o){var n=y(o);o.model&&n&&-1===e.indexOf(o.model)&&(t.$watch(function(){return o.model},l,!0),e.push(o.model))})}function y(o){var n=!0;if(f["default"].isString(o.model)){var r=o.model,i=t.fields.indexOf(o);if(n=!v(r),o.model=k(r,void 0,o,i),!o.model)throw e.getFieldError("field-model-must-be-initialized","Field model must be initialized. When specifying a model as a string for a field, the result of the expression must have been initialized ahead of time.",o)}return n}function v(e){return["model","formState"].some(function(t){return i.startsWith(e,t+".")||i.startsWith(e,t+"[")})}function h(e,t){d(e)||(e.key=e.key||t||0)}function g(o,n){if(!d(o)&&f["default"].isDefined(o.watcher)){var r=o.watcher;f["default"].isArray(r)||(r=[r]),f["default"].forEach(r,function(r){if(!f["default"].isDefined(r.listener))throw e.getFieldError("all-field-watchers-must-have-a-listener","All field watchers must have a listener",o);var i=b(r,o,n),a=O(r,o,n),l=r.type||"$watch";r.stopWatching=t[l](i,a,r.watchDeep)})}}function b(e,t,o){var n=e.expression||"model['"+t.key+"']";return f["default"].isFunction(n)&&!function(){var i=n;n=function(){var t=x.apply(void 0,[e,o].concat(a.call(arguments)));return i.apply(void 0,r(t))},n.displayName="Formly Watch Expression for field for "+t.key}(),n}function O(e,t,o){var n=e.listener;return f["default"].isFunction(n)&&!function(){var i=n;n=function(){var t=x.apply(void 0,[e,o].concat(a.call(arguments)));return i.apply(void 0,r(t))},n.displayName="Formly Watch Listener for field for "+t.key}(),n}function x(e,o){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];return[t.fields[o]].concat(r,[e.stopWatching])}function k(e,o,n,r){var a=A(n,r);return i.formlyEval(t,e,o,o,a)}function A(e,o){return{options:e,index:o,formState:t.options.formState,formId:t.formId}}u(),t.model=t.model||{},s(),t.$watch("model",l,!0),t.options.formState&&t.$watch("options.formState",l,!0)}function u(e,r,i){function a(){var a=i.name;if(e.formId=a,e.theFormlyForm=e[a],i.form){var l=o(i.form),f=l.assign,s=l(e.$parent);s?(e.theFormlyForm=s,e[a]&&e.theFormlyForm.$removeControl(e[a]),r.removeData("$formController")):f(e.$parent,e[a])}e.theFormlyForm||n.disableWarnings||t("formly-form-has-no-formcontroller","Your formly-form does not have a `form` property. Many functions of the form (like validation) may not work",r,e)}function l(){var t=n.extras.removeChromeAutoComplete===!0,o=e.options&&e.options.removeChromeAutoComplete===!1,i=e.options&&e.options.removeChromeAutoComplete===!0;if(t&&!o||i){var a=document.createElement("input");a.setAttribute("autocomplete","address-level4"),a.setAttribute("hidden","true"),r[0].appendChild(a)}}a(),l()}function p(e){return e?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}):""}function d(e){return e&&!!e.fieldGroup}var c=1;return s.$inject=["$scope","formlyApiCheck","formlyUtil"],{restrict:"AE",template:l,replace:!0,transclude:!0,scope:{fields:"=",model:"=",form:"=?",options:"=?"},controller:s,link:u}}Object.defineProperty(t,"__esModule",{value:!0});var a=Array.prototype.slice,l=o(1),f=n(l);t["default"]=i,i.$inject=["formlyUsability","formlyWarn","$parse","formlyConfig","$interpolate"],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(1),i=n(r),a=o(10),l=n(a),f=o(2),s=n(f),u=o(12),p=n(u),d=o(11),c=n(d),m=o(13),y=n(m),v=o(16),h=n(v),g=o(17),b=n(g),O=o(5),x=n(O),k=o(6),A=n(k),E=o(7),$=n(E),w=o(8),M=n(w),C=o(15),j=n(C),_=o(14),F=n(_),T="formly";t["default"]=T;var W=i["default"].module(T,[]);W.constant("formlyApiCheck",l["default"]),W.constant("formlyErrorAndWarningsUrlPrefix",s["default"]),W.constant("formlyVersion","6.26.5"),W.provider("formlyUsability",p["default"]),W.provider("formlyConfig",c["default"]),W.factory("formlyValidationMessages",y["default"]),W.factory("formlyUtil",h["default"]),W.factory("formlyWarn",b["default"]),W.directive("formlyCustomValidation",x["default"]),W.directive("formlyField",A["default"]),W.directive("formlyFocus",$["default"]),W.directive("formlyForm",M["default"]),W.run(j["default"]),W.run(F["default"]),e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){function o(o,r,i,a){var l=a&&a.hasOwnProperty(r),f=e.some(function(e){return a&&a.hasOwnProperty(e)});return f||l?l?t(o,r,i,a):void 0:u.utils.getError(r,i,n)}l["default"].isArray(e)||(e=[e]);var n="specified if these are not specified: `"+e.join(", ")+"` (otherwise it's optional)";return o.type=n,u.utils.checkerHelpers.setupChecker(o)}function i(e){return u.oneOfType([u.oneOf([null]),e])}Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=n(a),f=o(4),s=n(f),u=s["default"]({output:{prefix:"angular-formly:",docsBaseUrl:o(2)}}),p=u.oneOfType([u.string,u.func]),d=i(u.typeOrArrayOf(u.string)),c=u.oneOfType([u.func,u.objectOf(u.func)]),m=u.shape.onlyIf("apiCheck",u.func.withProperties({warn:u.func,"throw":u.func,shape:u.func})),y=u.shape.onlyIf("apiCheck",u.oneOf(["throw","warn"])),v=u.shape({name:r("types",u.string).optional,template:u.shape.ifNot("templateUrl",u.string).optional,templateUrl:u.shape.ifNot("template",u.string).optional,types:u.typeOrArrayOf(u.string).optional,overwriteOk:u.bool.optional,validateOptions:u.func.optional,apiCheck:c.optional,apiCheckInstance:m.optional,apiCheckFunction:y.optional,apiCheckOptions:u.object.optional}).strict,h=u.objectOf(u.oneOfType([p,u.shape({expression:p,message:p.optional}).strict])),g=u.oneOfType([u.string,u.object]),b=i(u.shape({preWrapper:i(u.arrayOf(u.func)).optional,postWrapper:i(u.arrayOf(u.func)).optional}).strict),O=u.objectOf(u.oneOfType([p,u.shape({expression:p,message:p.optional}).strict])),x={$$hashKey:u.any.optional,type:u.shape.ifNot(["template","templateUrl"],u.string).optional,template:u.shape.ifNot(["type","templateUrl"],u.oneOfType([u.string,u.func])).optional,templateUrl:u.shape.ifNot(["type","template"],u.oneOfType([u.string,u.func])).optional,key:u.oneOfType([u.string,u.number]).optional,model:g.optional,originalModel:g.optional,className:u.string.optional,id:u.string.optional,name:u.string.optional,expressionProperties:h.optional,extras:u.shape({validateOnModelChange:u.bool.optional,skipNgModelAttrsManipulator:u.oneOfType([u.string,u.bool]).optional}).strict.optional,data:u.object.optional,templateOptions:u.object.optional,wrapper:d.optional,modelOptions:u.shape({updateOn:u.string.optional,debounce:u.oneOfType([u.objectOf(u.number),u.number]).optional,allowInvalid:u.bool.optional,getterSetter:u.bool.optional,timezone:u.string.optional}).optional,watcher:u.typeOrArrayOf(u.shape({expression:p.optional,listener:p})).optional,validators:O.optional,asyncValidators:O.optional,parsers:u.arrayOf(p).optional,formatters:u.arrayOf(p).optional,noFormControl:u.bool.optional,hide:u.bool.optional,hideExpression:p.optional,ngModelElAttrs:u.objectOf(u.string).optional,ngModelAttrs:u.objectOf(u.shape({expression:u.shape.ifNot(["value","attribute","bound","boolean"],u.any).optional,value:u.shape.ifNot("expression",u.any).optional,attribute:u.shape.ifNot("expression",u.any).optional,bound:u.shape.ifNot("expression",u.any).optional,"boolean":u.shape.ifNot("expression",u.any).optional}).strict).optional,elementAttributes:u.objectOf(u.string).optional,optionsTypes:u.typeOrArrayOf(u.string).optional,link:u.func.optional,controller:u.oneOfType([u.string,u.func,u.array]).optional,validation:u.shape({show:i(u.bool).optional,messages:u.objectOf(p).optional,errorExistsAndShouldBeVisible:u.bool.optional}).optional,formControl:u.typeOrArrayOf(u.object).optional,value:u.func.optional,runExpressions:u.func.optional,templateManipulators:b.optional,resetModel:u.func.optional,updateInitialValue:u.func.optional,initialValue:u.any.optional,defaultValue:u.any.optional},k=u.shape(x).strict,A=u.shape({formState:u.object.optional,resetModel:u.func.optional,updateInitialValue:u.func.optional,removeChromeAutoComplete:u.bool.optional,templateManipulators:b.optional,wrapper:d.optional,fieldTransform:u.func.optional,data:u.object.optional}).strict,E=u.shape({$$hashKey:u.any.optional,key:u.oneOfType([u.string,u.number]).optional,fieldGroup:u.arrayOf(u.oneOfType([k,u.object])),className:u.string.optional,options:A.optional,hide:u.bool.optional,hideExpression:p.optional,data:u.object.optional,model:g.optional,form:u.object.optional,elementAttributes:u.objectOf(u.string).optional}).strict,$=l["default"].copy(x);$.key=u.string.optional;var w=u.shape({name:u.string,template:u.shape.ifNot("templateUrl",u.oneOfType([u.string,u.func])).optional,templateUrl:u.shape.ifNot("template",u.oneOfType([u.string,u.func])).optional,controller:u.oneOfType([u.func,u.string,u.array]).optional,link:u.func.optional,defaultOptions:u.oneOfType([u.func,u.shape($)]).optional,"extends":u.string.optional,wrapper:d.optional,data:u.object.optional,validateOptions:u.func.optional,apiCheck:c.optional,apiCheckInstance:m.optional,apiCheckFunction:y.optional,apiCheckOptions:u.object.optional,overwriteOk:u.bool.optional}).strict;l["default"].extend(u,{formlyTypeOptions:w,formlyFieldOptions:k,formlyExpression:p,formlyWrapperType:v,fieldGroup:E,formOptionsApi:A}),t["default"]=u,e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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)}function i(e,t,o){function n(e){if(!l["default"].isArray(e)){if(l["default"].isObject(e))return i(e),e["extends"]&&a(e),j[e.name]=e,j[e.name];throw W("You must provide an object or array for setType. You provided: "+JSON.stringify(arguments))}var t=function(){var t=[];return l["default"].forEach(e,function(e){t.push(n(e))}),{v:t}}();return"object"==typeof t?t.v:void 0}function i(e){o["throw"](o.formlyTypeOptions,e,{prefix:"formlyConfig.setType",url:"settype-validation-failed"}),k(e),e.overwriteOk?e.overwriteOk=void 0:x(e.name,j,e,"types")}function a(e){var t=m(e["extends"],!0,e);u(e,t),p(e,t),d(e,t),c(e,t),s["default"].reverseDeepMerge(e,t),f(e,t)}function f(e,t){e.template&&t.templateUrl?delete e.templateUrl:e.templateUrl&&t.template&&delete e.template}function u(e,t){var o=t.controller;if(l["default"].isDefined(o)){var n=e.controller;l["default"].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(l["default"].isDefined(o)){var n=e.link;l["default"].isDefined(n)?e.link=function(){o.apply(void 0,arguments),n.apply(void 0,arguments)}:e.link=o}}function d(e,t){var o=t.validateOptions;if(l["default"].isDefined(o)){var n=e.validateOptions,r=e.defaultOptions;l["default"].isDefined(n)?e.validateOptions=function(e){n(e);var t=l["default"].copy(e),i=r;i&&(l["default"].isFunction(i)&&(i=i(t)),s["default"].reverseDeepMerge(t,i)),o(t)}:e.validateOptions=o}}function c(e,t){var o=t.defaultOptions;if(l["default"].isDefined(o)){var n=e.defaultOptions,r=l["default"].isFunction(n),i=l["default"].isFunction(o);i?e.defaultOptions=function(e,t){var i=o(e,t),a={};s["default"].reverseDeepMerge(a,e,i);var l=n;return r&&(l=l(a,t)),s["default"].reverseDeepMerge(i,l),i}:r&&(e.defaultOptions=function(e,t){var r={};return s["default"].reverseDeepMerge(r,e,o),n(r,t)})}}function m(e,t,o){if(!e)return void 0;var n=j[e];if(n||t!==!0)return n;throw W('There is no type by the name of "'+e+'": '+JSON.stringify(o))}function y(e){var t=[],o=e;for(l["default"].isString(o)&&(o=m(e)),e=o["extends"];e;)o=m(e),t.push(o),e=o["extends"];return t}function v(e,t){for(var o=!0;o;){var n=e,r=t;if(o=!1,l["default"].isArray(n))return n.map(function(e){return v(e)});if(l["default"].isObject(n))return n.types=h(n),n.name=g(n,r),b(n),_[n.name]=n,n;l["default"].isString(n)&&(e={template:n,name:r},t=void 0,o=!0)}}function h(e){return l["default"].isString(e.types)?[e.types]:l["default"].isDefined(e.types)?e.types:[]}function g(e,t){return e.name||t||e.types.join(" ")||F}function b(t){e.checkWrapper(t),t.template&&e.checkWrapperTemplate(t.template,t),k(t),t.overwriteOk?delete t.overwriteOk:x(t.name,_,t,"templateWrappers"),O(t)}function O(e){var t=!l["default"].isArray(e.types)||!e.types.every(l["default"].isString);if(t)throw W("Attempted to create a template wrapper with types that is not a string or an array of strings")}function x(e,t,o,n){t.hasOwnProperty(e)&&M("overwriting-types-or-wrappers",["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 k(e){e.apiCheck&&!l["default"].isFunction(e.apiCheck)&&M("apicheck-as-an-object-deprecated","apiCheck as an object has been deprecated.","Attempted for type: "+e.name,e),e.validateOptions&&M("validateoptions-deprecated","the `validateOptions` property has been deprecated.","Attempted for type: "+e.name,e)}function A(e){return _[e||F]}function E(e){var t=[];for(var o in _)_.hasOwnProperty(o)&&_[o].types&&-1!==_[o].types.indexOf(e)&&t.push(_[o]);return t}function $(e){var t=_[e];return delete _[e],t}function w(e){var t=E(e);return t?l["default"].isArray(t)?(t.forEach(function(e){return $(e.name)}),t):$(t.name):void 0}function M(){if(!T.disableWarnings&&console.warn){var e=Array.prototype.slice.call(arguments),o=e.shift();e.unshift("Formly Warning:"),e.push(""+t+o),console.warn.apply(console,r(e));
}}var C=this,j={},_={},F="default",T=this,W=e.getFormlyError;l["default"].extend(this,{setType:n,getType:m,getTypeHeritage:y,setWrapper:v,getWrapper:A,getWrapperByType:E,removeWrapperByName:$,removeWrappersForType:w,disableWarnings:!1,extras:{disableNgModelAttrsManipulator:!1,ngModelAttrsManipulatorPreferUnbound:!1,removeChromeAutoComplete:!1,defaultHideDirective:"ng-if",getFieldId:null,explicitAsync:!1},templateManipulators:{preWrapper:[],postWrapper:[]},$get:function(){return C}})}Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=n(a),f=o(3),s=n(f);t["default"]=i,i.$inject=["formlyUsabilityProvider","formlyErrorAndWarningsUrlPrefix","formlyApiCheck"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){function o(e,t,o){return arguments.length<3&&(o=t,t=e,e=null),new Error(r(e,t)+(" Field definition: "+a["default"].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 i(t){e["throw"](e.formlyWrapperType,t,{prefix:"formlyConfig.setWrapper",urlSuffix:"setwrapper-validation-failed"})}function l(e,t){var o="<formly-transclude></formly-transclude>";if(-1===e.indexOf(o))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 f=this;a["default"].extend(this,{getFormlyError:n,getFieldError:o,checkWrapper:i,checkWrapperTemplate:l,getErrorMessage:r,$get:function(){return f}})}Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=n(i);t["default"]=r,r.$inject=["formlyApiCheck","formlyErrorAndWarningsUrlPrefix"],e.exports=t["default"]},function(e,t){"use strict";function o(){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}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o,e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(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"];a["default"].forEach(r,function(e){t.createElement(e)})}}()}Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=n(i);t["default"]=r,r.$inject=["$document"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,o){function n(e,o,n){function i(){(a["default"].isDefined(o.validators)||a["default"].isDefined(o.validation.messages))&&p(v,"formly-custom-validation","")}function l(){a["default"].isDefined(o.modelOptions)&&(p(v,"ng-model-options","options.modelOptions"),o.modelOptions.getterSetter&&a["default"].forEach(v,function(e){e.setAttribute("ng-model","options.value")}))}function d(){if(o.templateOptions||o.expressionProperties){var e=o.templateOptions||{},n=o.expressionProperties||{},r=s();a["default"].extend(r,o.ngModelAttrs),a["default"].forEach(r,function(r,i){var l=void 0,f=void 0,s="options.templateOptions['"+i+"']",d=e[i],c=u(n,i),m=a["default"].isDefined(d),y=a["default"].isDefined(c);if(r.value)f=r.value,l=i;else if(r.expression&&m)if(f=r.expression,a["default"].isString(e[i]))l="$eval("+s+")";else{if(!a["default"].isFunction(e[i]))throw new Error("options.templateOptions."+i+" must be a string or function: "+JSON.stringify(o));l=s+"(model[options.key], options, this, $event)"}else r.bound&&y?(f=r.bound,l=s):(r.attribute||r["boolean"])&&y?(f=r.attribute||r["boolean"],l=""+t.startSymbol()+s+t.endSymbol()):r.attribute&&m?(f=r.attribute,l=d):r["boolean"]?m&&!y&&d&&(f=r["boolean"],l=!0):r.bound&&m&&(f=r.bound,l=s);a["default"].isDefined(f)&&a["default"].isDefined(l)&&p(v,f,l)})}}function c(){a["default"].forEach(o.ngModelElAttrs,function(e,t){p(v,t,e)})}var m=document.createElement("div"),y=f(o);if(y===!0)return e;m.innerHTML=e;var v=r(m,y);return v&&v.length?(p(v,"id",n.id),p(v,"name",n.name||n.id),i(),l(),d(),c(),m.innerHTML):e}function r(e,t){var o=a["default"].isString(t)?":not("+t+")":"",n=":not([formly-skip-ng-model-attrs-manipulator])",r="[ng-model]"+o+n+", [data-ng-model]"+o+n;try{return e.querySelectorAll(r)}catch(l){return i(e,t)}}function i(e,t){var o=e.querySelectorAll("[ng-model], [data-ng-model]"),n=[];n.item=function(e){return this[e]};for(var r=0;r<o.length;r++){var i=o[r];i.hasAttribute("formly-skip-ng-model-attrs-manipulator")||a["default"].isString(t)&&l(i,t)||n.push(i)}return n}function l(e,t){var o=document.createElement("div");return o.innerHTML=e.outerHTML,o.querySelector(t)}function f(e){var t=e.extras&&e.extras.skipNgModelAttrsManipulator;return a["default"].isDefined(t)||(t=e.data&&e.data.skipNgModelAttrsManipulator,a["default"].isDefined(t)&&o("skipngmodelattrsmanipulator-moved","The skipNgModelAttrsManipulator property has been moved from the `data` property to the `extras` property",e)),t}function s(){var t={focus:{attribute:"formly-focus"}},o=[],n=["required","disabled"],r=["pattern","minlength"],i=["change","keydown","keyup","keypress","click","focus","blur"],l=["placeholder","min","max","tabindex","type"];return e.extras.ngModelAttrsManipulatorPreferUnbound?r.push("maxlength"):o.push("maxlength"),a["default"].forEach(o,function(e){t[e]={bound:"ng-"+e}}),a["default"].forEach(n,function(e){t[e]={"boolean":e,bound:"ng-"+e}}),a["default"].forEach(r,function(e){t[e]={attribute:e,bound:"ng-"+e}}),a["default"].forEach(i,function(e){var o="on"+e.substr(0,1).toUpperCase()+e.substr(1);t[o]={expression:"ng-"+e}}),a["default"].forEach(l,function(e){t[e]={attribute:e}}),t}function u(e,t){return e["templateOptions."+t]||e["templateOptions['"+t+"']"]||e['templateOptions["'+t+'"]']}function p(e,t,o){a["default"].forEach(e,function(e){e.getAttribute(t)||e.setAttribute(t,o)})}e.extras.disableNgModelAttrsManipulator||e.templateManipulators.preWrapper.push(n)}Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=n(i);t["default"]=r,r.$inject=["formlyConfig","$interpolate","formlyWarn"],e.exports=t["default"]},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(){return a["default"]}Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),a=n(i);t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function o(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)}function n(e,t,n){return function(){if(!e.disableWarnings){var r=Array.prototype.slice.call(arguments),i=r.shift();r.unshift("Formly Warning:"),r.push(""+t+i),n.warn.apply(n,o(r))}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.$inject=["formlyConfig","formlyErrorAndWarningsUrlPrefix","$log"],e.exports=t["default"]},function(e,o){e.exports=t}])});
//# sourceMappingURL=formly.min.js.map
{
"name": "angular-formly",
"version": "6.26.4",
"version": "6.26.5",
"author": "Astrism <astrisms@gmail.com>",

@@ -5,0 +5,0 @@ "contributors": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc