function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function _iterableToArrayLimit(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(r){c=!0,o=r}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function _arrayWithHoles(r){if(Array.isArray(r))return r}(()=>{function r(r,o){var a=_slicedToArray(r,1)[0],i=a.link;function e(r,e,t,n){i.apply(a,[r,e,t,n]),r.$watch(function(){return o.areAllValuesEmpty(r,n)},function(r){e.toggleClass("c8y-schema-form-empty",r)}),r.hasError=function(){return!!r.ngModel&&(r.options&&r.options.pristine&&!1===r.options.pristine.errors||void 0===r.ngModel.$modelValue?r.ngModel.$invalid&&!r.ngModel.$pristine:r.ngModel.$invalid)}}return _.assign(a,{compile:function(){return e}}),r}r.$inject=["$delegate","c8ySchemaFormHelper"],angular.module("c8y.ui").decorator("bootstrapDecoratorDirective",r).decorator("sfDecoratorDirective",r)})();