(()=>{function t(n,a){var e=[function(t,e){var r=t;if("string"===e.type&&"datetime"===e.format&&(r=n("absoluteDate")(t))===t)return a.getString("not a date");return r},function(t,e){var r=t;"boolean"===e.type&&(r=t?"☑":"☐");return r},function(t,e){if(void 0===t)return t;var r;switch(e.type){case"integer":r=parseInt(t,10);break;case"number":r=parseFloat(t);break;default:r=t}return r}];return function(t,r){return _.reduce(e,function(t,e){return e(t,r)},t||r.default)}}t.$inject=["$filter","gettextCatalog"],angular.module("c8y.ui").filter("formatBySchema",t)})();