(()=>{function i(o,e){return{restrict:"A",link:function(c,t){function i(i,n){i&&i!==n&&(n=i,!0!==c.child.config.unsafe&&!_.isUndefined(c.child.config.unsafe)||"lax"===c.child.config.sanitization?n=e.sanitizeString(n):"strict"===c.child.config.sanitization&&_.isUndefined(c.child.config.unsafe)&&(n=e.sanitizeString(n,{})),c.child.config.unsafe&&(c.child.config.unsafe=void 0,c.child.config.sanitization="none"),t.html(n),o(t.contents())(c))}c.$watch("child.config.html",i),c.$watch("child.config.sanitization",function(){i(c.child.config.html)})}}}i.$inject=["$compile","c8ySanitizeHtml"],angular.module("c8y.parts.htmlwidget").directive("c8yHtmlWidget",i)})();