var RedNaoDisableConditionProcessor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1057)}({1057:function(e,t,n){"use strict";n.r(t),n.d(t,"DisableConditionProcessor",(function(){return y}));var o=n(243),r=n(5),i=n(2),l=n(240);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(){var e,n;a(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=f(this,(e=d(t)).call.apply(e,[this].concat(r)))).Options=void 0,n.Field=void 0,n}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"Initialize",value:function(e,t){throw Error("Invalid initialization, please use initialize with fields instead")}},{key:"ExecuteFalseAction",value:function(e){var t=this.Options.OptionsToDisable,n=!0,o=!1,r=void 0;try{for(var i,l=t[Symbol.iterator]();!(n=(i=l.next()).done);n=!0){var u=i.value;this.Options.DisableWhenTrue?this.Field.EnableOption(u):this.Field.DisableOption(u)}}catch(e){o=!0,r=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw r}}}},{key:"ExecuteTruAction",value:function(e){var t=this.Options.OptionsToDisable,n=!0,o=!1,r=void 0;try{for(var i,l=t[Symbol.iterator]();!(n=(i=l.next()).done);n=!0){var u=i.value;this.Options.DisableWhenTrue?this.Field.DisableOption(u):this.Field.EnableOption(u)}}catch(e){o=!0,r=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw r}}}},{key:"InitializeWidthFields",value:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.Field=e,s(d(t.prototype),"Initialize",this).call(this,e.FormBuilder,n,o)}}])&&c(n.prototype,o),r&&c(n,r),t}(o.ConditionProcessorBase);i.EventManager.Subscribe(l.InitializeAdditionalCondition,(function(e){if(e.Condition.Type==r.ConditionTypeEnum.DisabledOptions)return(new y).InitializeWidthFields(e.Field,e.Condition,e.chain)}))},2:function(e,t){e.exports=RedNaoSharedCore.default("shared/core/Events/EventManager")},240:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Events/InitializeAdditionalCondition")},243:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Core/Conditions/ConditionProcessorBase")},5:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Fields/Core/ConditionOptions")}});