function _slicedToArray(r,t){return _arrayWithHoles(r)||_iterableToArrayLimit(r,t)||_unsupportedIterableToArray(r,t)||_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,t){var e;if(r)return"string"==typeof r?_arrayLikeToArray(r,t):"Map"===(e="Object"===(e={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:e)||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(r,t):void 0}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,a,i,o,l=[],u=!0,c=!1;try{if(i=(e=e.call(r)).next,0===t){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(r){c=!0,a=r}finally{try{if(!u&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}function _arrayWithHoles(r){if(Array.isArray(r))return r}angular.module("c8y.ui").directive("c8yTextOut",function(){return{restrict:"A",scope:{c8yTextOut:"="},link:function(a,r){function e(e,n){a.$apply(function(){var r=_slicedToArray(e.target.files,1)[0],t=n.target.result;a.c8yTextOut={},a.c8yTextOut.data=t,a.c8yTextOut.name=r.name,a.c8yTextOut.type="text/plain",a.c8yTextOut.size=r.size})}r.bind("change",function(r){var t=new FileReader;t.onload=_.partial(e,r),r.target.files[0]?t.readAsText(r.target.files[0]):a.c8yTextOut=null})}}});