text: module.exports=function(a){"use strict";var e=require("node-atbrightness"),t="Not Support";a.nodes.registerType("Brightness data get",function(o){function n(){return e.getbrightnessmax()}function s(){return e.getbrightnessmin()}function r(){return e.getbrightnessvalue()}function i(){var a=e.checkautobrightness();return 50===a&&(a=t),a}a.nodes.createNode(this,o);var d=this;({}).payload={},setTimeout(()=>{var a={};a.payload={},a.payload.Max=n(),a.payload.Min=s(),a.payload.Value=r(),a.payload.Auto=i(),50===a.payload.Auto&&(a.payload.Auto=t),d.send(a)},1e3),this.on("input",a=>{a.payload.Max&&(a.payload.Max=n()),a.payload.Min&&(a.payload.Min=s()),a.payload.Value&&(a.payload.Value=r()),a.payload.Auto&&(a.payload.Auto=i()),d.send(a)})}),a.nodes.registerType("Brightness data set",function(o){a.nodes.createNode(this,o);var n=this;this.on("input",a=>{var o=a.payload;null!==o&&(Number.isInteger(parseInt(o,10))&&o>=0?50===e.setbrightnessvalue(o)?a.payload=t:a.payload=e.getbrightnessvalue():"boolean"==typeof o&&(50===e.setautobrightness(o)?a.payload=t:a.payload=e.checkautobrightness())),n.send(a)})})};
  