iobroker.vis-2-widgets-inventwo 0.1.7 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/io-package.json +39 -39
- package/package.json +9 -9
- package/widgets/vis-2-widgets-inventwo/customWidgets.js +1 -1
- package/widgets/vis-2-widgets-inventwo/customWidgets.js.map +1 -1
- package/widgets/vis-2-widgets-inventwo/i18n/de.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/en.json +27 -34
- package/widgets/vis-2-widgets-inventwo/i18n/es.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/fr.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/it.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/nl.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/pl.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/pt.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/ru.json +219 -0
- package/widgets/vis-2-widgets-inventwo/i18n/uk.json +221 -0
- package/widgets/vis-2-widgets-inventwo/i18n/zh-cn.json +219 -0
- package/widgets/vis-2-widgets-inventwo/static/css/{src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.baf23202.chunk.css → src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.f7c0aa07.chunk.css} +1 -1
- package/widgets/vis-2-widgets-inventwo/static/css/src_bootstrap_js-src_assets_inventwo_css.f7c0aa07.chunk.css +2 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoGeneric_jsx-src_lib_iro_min_js-src_assets_inventwo_css.6813ef60.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoGeneric_jsx-src_lib_iro_min_js-src_assets_inventwo_css.6813ef60.chunk.js.LICENSE.txt +6 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.a54cb5de.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.837c8d84.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.93318cd1.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/{src_lib_iro_min_js-node_modules_react_jsx-runtime_js-src_assets_inventwo_css.17ab2e15.chunk.js.LICENSE.txt → src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.93318cd1.chunk.js.LICENSE.txt} +0 -7
- package/widgets/vis-2-widgets-inventwo/static/js/src_i18n_de_json-src_i18n_en_json-src_i18n_es_json-src_i18n_fr_json-src_i18n_it_json-src_i18n-67bb96.a92a5b7a.chunk.js +1 -0
- package/widgets/vis-2-widgets-inventwo/static/js/src_translations_js.b189321b.chunk.js +2 -0
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.0509add6.chunk.js +3 -0
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.0509add6.chunk.js.map +1 -0
- package/widgets/vis-2-widgets-inventwo/static/css/src_bootstrap_js-node_modules_mui_material_colors_index_js-src_assets_inventwo_css.baf23202.chunk.css +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.cf2e823c.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.413ad31d.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.193fa3d0.chunk.js +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/src_lib_iro_min_js-node_modules_react_jsx-runtime_js-src_assets_inventwo_css.17ab2e15.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/src_translations_js.570977d7.chunk.js +0 -2
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.62048684.chunk.js +0 -3
- package/widgets/vis-2-widgets-inventwo/static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.62048684.chunk.js.map +0 -1
- /package/widgets/vis-2-widgets-inventwo/static/js/{src_InventwoWidgetSlider_jsx.cf2e823c.chunk.js.LICENSE.txt → src_InventwoWidgetSlider_jsx.a54cb5de.chunk.js.LICENSE.txt} +0 -0
- /package/widgets/vis-2-widgets-inventwo/static/js/{src_InventwoWidgetSwitch_jsx.413ad31d.chunk.js.LICENSE.txt → src_InventwoWidgetSwitch_jsx.837c8d84.chunk.js.LICENSE.txt} +0 -0
- /package/widgets/vis-2-widgets-inventwo/static/js/{vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.62048684.chunk.js.LICENSE.txt → vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.0509add6.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.0509add6.chunk.js","mappings":";oZAAAA,EAAAC,EAAAC,EAAA,QAEAC,EAAAD,EAAA,OAKAE,EAAAF,EAAA,OAAkD,SAAAG,EAAAC,EAAAC,GAAA,IAAAC,EAAAC,OAAAC,KAAAJ,GAAA,GAAAG,OAAAE,sBAAA,KAAAC,EAAAH,OAAAE,sBAAAL,GAAAC,IAAAK,EAAAA,EAAAC,QAAA,SAAAN,GAAA,OAAAE,OAAAK,yBAAAR,EAAAC,GAAAQ,UAAA,KAAAP,EAAAQ,KAAAC,MAAAT,EAAAI,EAAA,QAAAJ,CAAA,UAAAU,EAAAZ,GAAA,QAAAC,EAAA,EAAAA,EAAAY,UAAAC,OAAAb,IAAA,KAAAC,EAAA,MAAAW,UAAAZ,GAAAY,UAAAZ,GAAA,GAAAA,EAAA,EAAAF,EAAAI,OAAAD,IAAA,GAAAa,SAAA,SAAAd,IAAA,EAAAe,EAAA,SAAAhB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AAQ/D,GAAKA,EAAIA,EAAI,EAC1C,EACgCwC,EAAOD,QAAQG,YAAa,EAAMF,EAAOD,QAAiB,QAAIC,EAAOD,mBCNrG,SAASwB,EAAQ9K,GAGf,OAAQuJ,EAAOD,QAAUwB,EAAU,mBAAqBI,QAAU,iBAAmBA,OAAOC,SAAW,SAAUnL,GAC/G,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBkL,QAAUlL,EAAEoB,cAAgB8J,QAAUlL,IAAMkL,OAAO5J,UAAY,gBAAkBtB,CACpH,EAAGuJ,EAAOD,QAAQG,YAAa,EAAMF,EAAOD,QAAiB,QAAIC,EAAOD,QAAUwB,EAAQ9K,EAC5F,CACAuJ,EAAOD,QAAUwB,EAASvB,EAAOD,QAAQG,YAAa,EAAMF,EAAOD,QAAiB,QAAIC,EAAOD,yBCP/F,IAAI4F,EAAU,EAAQ,KAAR,GACd3F,EAAOD,QAAU4F,EAGjB,IACEC,mBAAqBD,CACvB,CAAE,MAAOE,GACmB,kBAAfC,WACTA,WAAWF,mBAAqBD,EAEhCI,SAAS,IAAK,yBAAdA,CAAwCJ,EAE5C","sources":["../node_modules/@iobroker/vis-2-widgets-react-dev/visRxWidget.jsx","../node_modules/@babel/runtime/helpers/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/asyncToGenerator.js","../node_modules/@babel/runtime/helpers/classCallCheck.js","../node_modules/@babel/runtime/helpers/createClass.js","../node_modules/@babel/runtime/helpers/defineProperty.js","../node_modules/@babel/runtime/helpers/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/inherits.js","../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/regeneratorRuntime.js","../node_modules/@babel/runtime/helpers/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/toPrimitive.js","../node_modules/@babel/runtime/helpers/toPropertyKey.js","../node_modules/@babel/runtime/helpers/typeof.js","../node_modules/@babel/runtime/regenerator/index.js"],"sourcesContent":["import React from 'react';\n\nimport {\n Card,\n CardContent,\n} from '@mui/material';\n\nimport { I18n } from '@iobroker/adapter-react-v5';\n\nconst POSSIBLE_MUI_STYLES = [\n 'background-color',\n 'border',\n 'background',\n 'background-image',\n 'background-position',\n 'background-repeat',\n 'background-size',\n 'background-clip',\n 'background-origin',\n 'color',\n 'box-sizing',\n 'border-width',\n 'border-style',\n 'border-color',\n 'border-radius',\n 'box-shadow',\n 'text-align',\n 'text-shadow',\n 'font-family',\n 'font-size',\n 'font-weight',\n 'line-height',\n 'font-style',\n 'font-variant',\n 'letter-spacing',\n 'word-spacing',\n];\n\nclass visRxWidget extends React.Component {\n static POSSIBLE_MUI_STYLES = POSSIBLE_MUI_STYLES;\n\n constructor(props) {\n super(props);\n this.onStateChanged = this.onStateChanged.bind(this);\n this.state = {\n ...props,\n values: {},\n data: JSON.parse(JSON.stringify(props.data || {})),\n style: JSON.parse(JSON.stringify(props.style || {})),\n rxData: JSON.parse(JSON.stringify(props.data || {})),\n rxStyle: JSON.parse(JSON.stringify(props.style || {})),\n };\n this.linkContext = {\n IDs: [],\n };\n }\n\n static getI18nPrefix() {\n return '';\n }\n\n static getText(text) {\n if (text && typeof text === 'object') {\n return text[I18n.getLanguage()] || text.en;\n }\n return text;\n }\n\n static t(key, ...args) {\n return I18n.t(`${this.getI18nPrefix()}${key}`, ...args);\n }\n\n static getLanguage() {\n return I18n.getLanguage();\n }\n\n // eslint-disable-next-line class-methods-use-this\n renderWidgetBody(props) {\n return null;\n }\n\n // eslint-disable-next-line class-methods-use-this\n // @ts-ignore\n onStateUpdated(id, state) {\n\n }\n\n formatValue(value, round) {\n if (typeof value === 'number') {\n if (round === 0) {\n value = Math.round(value);\n } else {\n value = Math.round(value * 100) / 100;\n }\n if (this.props.context.systemConfig?.common) {\n if (this.props.context.systemConfig.common.isFloatComma) {\n value = value.toString().replace('.', ',');\n }\n }\n }\n\n return value === undefined || value === null ? '' : value.toString();\n }\n\n wrapContent(content, addToHeader, cardContentStyle, headerStyle, onCardClick, components) {\n const MyCard = components?.Card || Card;\n const MyCardContent = components?.CardContent || CardContent;\n\n const style = {\n width: 'calc(100% - 8px)',\n height: 'calc(100% - 8px)',\n margin: 4,\n ...this.props.customSettings?.viewStyle?.visCard,\n };\n // apply style from the element\n Object.keys(this.state.rxStyle).forEach(attr => {\n const value = this.state.rxStyle[attr];\n if (value !== null &&\n value !== undefined &&\n POSSIBLE_MUI_STYLES.includes(attr)\n ) {\n attr = attr.replace(\n /(-\\w)/g,\n text => text[1].toUpperCase(),\n );\n style[attr] = value;\n }\n });\n\n this.wrappedContent = true;\n\n return <MyCard\n className=\"vis_rx_widget_card\"\n style={style}\n onClick={onCardClick}\n >\n <MyCardContent\n className=\"vis_rx_widget_card_content\"\n style={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n height: 'calc(100% - 32px)',\n paddingBottom: 16,\n position: 'relative',\n ...cardContentStyle,\n }}\n >\n {this.state.rxData.widgetTitle ? <div\n className=\"vis_rx_widget_card_name\"\n style={{\n display: 'flex',\n justifyContent: 'space-between',\n width: '100%',\n alignItems: 'center',\n }}\n >\n <div\n className=\"vis_rx_widget_card_name_div\"\n style={{\n fontSize: 24,\n paddingTop: 0,\n paddingBottom: 4,\n ...headerStyle,\n }}\n >\n {this.state.rxData.widgetTitle}\n </div>\n {addToHeader || null}\n </div> : (addToHeader || null)}\n {content}\n </MyCardContent>\n </MyCard>;\n }\n\n getIdSubscribeState = (id, cb) => {\n return this.props.context.socket.getState(id)\n .then(result => {\n cb(id, result);\n return this.props.context.socket.subscribeState(id, (resultId, result) => cb(id, result));\n });\n };\n\n onStateChanged(id, state) {\n if (!state) {\n return;\n }\n const values = JSON.parse(JSON.stringify(this.state.values));\n Object.keys(state).forEach(key =>\n values[`${id}.${key}`] = state[key]);\n\n this.onStateUpdated(id, state);\n\n this.setState({ values });\n }\n\n async componentDidMount() {\n this.getWidgetInfo()?.visAttrs?.forEach(group =>\n group?.fields?.forEach(field => {\n if (field?.type === 'id') {\n Object.keys(this.state.data).forEach(dataKey => {\n // do not use here \\d instead of [0-9] as it will be wrong compiled\n if (dataKey.match(new RegExp(`^${field.name}[0-9]*$`))) {\n const oid = this.state.data[dataKey];\n if (!this.linkContext.IDs.includes(oid)) {\n this.linkContext.IDs.push(oid);\n }\n }\n });\n }\n }));\n\n for (let i = 0; i < this.linkContext.IDs.length; i++) {\n await this.getIdSubscribeState(this.linkContext.IDs[i], this.onStateChanged);\n }\n }\n\n componentWillUnmount() {\n this.linkContext.IDs.forEach(oid =>\n this.props.context.socket.unsubscribeState(oid, this.onStateChanged));\n }\n\n getWidgetView(view, props) {\n return <div style={{ width: '100%', height: '100%' }}>\n DEMO VIEW\n </div>;\n }\n\n getWidgetInWidget(view, wid, options) {\n return null;\n }\n\n render() {\n return <div style={{ width: this.state.style?.width, height: this.state.style?.height }}>\n {this.renderWidgetBody({\n widget: {\n\n },\n })}\n </div>;\n }\n}\n\nexport default visRxWidget;\n","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(t) {\n return (module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _getPrototypeOf(t);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return e;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n i = \"function\" == typeof Symbol ? Symbol : {},\n a = i.iterator || \"@@iterator\",\n c = i.asyncIterator || \"@@asyncIterator\",\n u = i.toStringTag || \"@@toStringTag\";\n function define(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n define({}, \"\");\n } catch (t) {\n define = function define(t, e, r) {\n return t[e] = r;\n };\n }\n function wrap(t, e, r, n) {\n var i = e && e.prototype instanceof Generator ? e : Generator,\n a = Object.create(i.prototype),\n c = new Context(n || []);\n return o(a, \"_invoke\", {\n value: makeInvokeMethod(t, r, c)\n }), a;\n }\n function tryCatch(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = wrap;\n var h = \"suspendedStart\",\n l = \"suspendedYield\",\n f = \"executing\",\n s = \"completed\",\n y = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var p = {};\n define(p, a, function () {\n return this;\n });\n var d = Object.getPrototypeOf,\n v = d && d(d(values([])));\n v && v !== r && n.call(v, a) && (p = v);\n var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);\n function defineIteratorMethods(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n define(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function AsyncIterator(t, e) {\n function invoke(r, o, i, a) {\n var c = tryCatch(t[r], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n h = u.value;\n return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) {\n invoke(\"next\", t, i, a);\n }, function (t) {\n invoke(\"throw\", t, i, a);\n }) : e.resolve(h).then(function (t) {\n u.value = t, i(u);\n }, function (t) {\n return invoke(\"throw\", t, i, a);\n });\n }\n a(c.arg);\n }\n var r;\n o(this, \"_invoke\", {\n value: function value(t, n) {\n function callInvokeWithMethodAndArg() {\n return new e(function (e, r) {\n invoke(t, n, e, r);\n });\n }\n return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(e, r, n) {\n var o = h;\n return function (i, a) {\n if (o === f) throw Error(\"Generator is already running\");\n if (o === s) {\n if (\"throw\" === i) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = i, n.arg = a;;) {\n var c = n.delegate;\n if (c) {\n var u = maybeInvokeDelegate(c, n);\n if (u) {\n if (u === y) continue;\n return u;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (o === h) throw o = s, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n o = f;\n var p = tryCatch(e, r, n);\n if (\"normal\" === p.type) {\n if (o = n.done ? s : l, p.arg === y) continue;\n return {\n value: p.arg,\n done: n.done\n };\n }\n \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg);\n }\n };\n }\n function maybeInvokeDelegate(e, r) {\n var n = r.method,\n o = e.iterator[n];\n if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y;\n var i = tryCatch(o, e.iterator, r.arg);\n if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y;\n var a = i.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y);\n }\n function pushTryEntry(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function resetTryEntry(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function Context(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var o = -1,\n i = function next() {\n for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;\n return next.value = t, next.done = !0, next;\n };\n return i.next = i;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), o(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {\n return this;\n }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {\n void 0 === i && (i = Promise);\n var a = new AsyncIterator(wrap(t, r, n, o), i);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () {\n return this;\n }), define(g, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function next() {\n for (; r.length;) {\n var t = r.pop();\n if (t in e) return next.value = t, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, e.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function stop() {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var r = this;\n function handle(n, o) {\n return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var i = this.tryEntries[o],\n a = i.completion;\n if (\"root\" === i.tryLoc) return handle(\"end\");\n if (i.tryLoc <= this.prev) {\n var c = n.call(i, \"catchLoc\"),\n u = n.call(i, \"finallyLoc\");\n if (c && u) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n } else if (c) {\n if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);\n } else {\n if (!u) throw Error(\"try statement without catch or finally\");\n if (this.prev < i.finallyLoc) return handle(i.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var o = this.tryEntries[r];\n if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) {\n var i = o;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a);\n },\n complete: function complete(t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y;\n },\n finish: function finish(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;\n }\n },\n \"catch\": function _catch(t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var o = n.arg;\n resetTryEntry(r);\n }\n return o;\n }\n }\n throw Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, r, n) {\n return this.delegate = {\n iterator: values(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), y;\n }\n }, e;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(t, e) {\n return (module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n"],"names":["_react","_interopRequireDefault","require","_material","_adapterReactV","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","Boolean","prototype","valueOf","call","POSSIBLE_MUI_STYLES","visRxWidget","_React$Component","props","_this","_classCallCheck2","id","cb","context","socket","getState","then","result","subscribeState","resultId","onStateChanged","bind","state","values","data","JSON","parse","stringify","style","rxData","rxStyle","linkContext","IDs","_inherits2","_createClass2","key","value","round","_this$props$context$s","Math","this","systemConfig","common","isFloatComma","toString","replace","undefined","content","addToHeader","cardContentStyle","headerStyle","onCardClick","components","_this$props$customSet","_this2","MyCard","Card","MyCardContent","CardContent","width","height","margin","customSettings","viewStyle","visCard","attr","includes","text","toUpperCase","wrappedContent","createElement","className","onClick","display","flexDirection","alignItems","paddingBottom","position","widgetTitle","justifyContent","fontSize","paddingTop","concat","onStateUpdated","setState","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","_this$getWidgetInfo","i","_this3","wrap","_context","prev","next","getWidgetInfo","visAttrs","group","_group$fields","fields","field","type","dataKey","match","RegExp","name","oid","getIdSubscribeState","stop","_this4","unsubscribeState","view","wid","options","_this$state$style","_this$state$style2","renderWidgetBody","widget","_typeof2","I18n","getLanguage","en","_len","args","Array","_key","getI18nPrefix","Component","exports","module","ReferenceError","__esModule","asyncGeneratorStep","n","a","c","u","done","Promise","resolve","_next","_throw","TypeError","toPropertyKey","_defineProperties","configurable","writable","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","create","_typeof","assertThisInitialized","_regeneratorRuntime","hasOwnProperty","Symbol","iterator","asyncIterator","toStringTag","define","Generator","Context","makeInvokeMethod","tryCatch","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","v","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","__await","callInvokeWithMethodAndArg","Error","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","awrap","async","reverse","pop","charAt","slice","rval","handle","complete","finish","delegateYield","_setPrototypeOf","toPrimitive","String","Number","runtime","regeneratorRuntime","accidentalStrictMode","globalThis","Function"],"sourceRoot":""}
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSlider_jsx.cf2e823c.chunk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoWidgetSlider_jsx.cf2e823c.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_InventwoWidgetSlider_jsx","node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181"],{52235:(t,e,a)=>{a.r(e),a.d(e,{default:()=>d});a(28437);var r=a(67085),s=a(59797),i=a(32719),l=a(70579);class o extends(window.visRxWidget||s.VisRxWidget){constructor(t){super(t),this.state.sliderValue=0}static getWidgetInfo(){return{id:"tplInventwoWidgetSlider",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"vis_2_widgets_inventwo_widget_slider",visName:"vis_2_widgets_inventwo_widget_slider",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid"},{name:"minValue",type:"number",label:"min_value",default:0},{name:"maxValue",type:"number",label:"max_value",default:100},{name:"step",type:"number",label:"step",default:1},{name:"orientation",type:"select",options:[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}],default:"horizontal",label:"orientation"},{name:"showMinMax",type:"checkbox",label:"show_min_max",default:!0},{type:"delimiter"},{type:"help",text:"steps"},{name:"showSteps",type:"checkbox",label:"show_steps",default:!1},{name:"stepMode",type:"select",options:[{value:"auto",label:"auto"},{value:"custom",label:"custom"}],default:"auto",label:"step_mode",hidden:"!data.showSteps"},{name:"stepDisplay",type:"number",label:"step_display",default:10,hidden:'!data.showSteps || data.stepMode != "auto"'},{name:"customSteps",type:"text",label:"custom_steps",hidden:'!data.showSteps || data.stepMode != "custom"',tooltip:"custom_steps_tooltip"}]},{name:"vis_2_widgets_inventwo_attr_group_css_slider_track",label:"vis_2_widgets_inventwo_attr_group_css_slider_track",fields:[{name:"sliderRailColor",type:"color",default:"rgb(110,110,110)",label:"slider_rail_color"},{name:"sliderRailActiveColor",type:"color",default:"rgb(94,107,63)",label:"slider_rail_active_color"},{name:"trackBarType",type:"select",options:[{value:"normal",label:"normal"},{value:"inverted",label:"inverted"},{value:!1,label:"none"}],default:"normal",label:"track_bar_type"},{name:"trackWidth",type:"slider",min:1,max:50,step:1,default:10,label:"track_width"},{name:"trackBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"track_border_radius"},{type:"delimiter"},{type:"help",text:"track_shadow"},{name:"trackShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"trackShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"trackShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"trackShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"trackShadowColor",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color"}]},{name:"vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb",label:"vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb",fields:[{name:"sliderThumbColor",type:"color",default:"rgba(69, 86, 24, 1)",label:"slider_thumb_color"},{name:"thumbSize",type:"slider",min:1,max:50,step:1,default:16,label:"thumbSize"},{name:"thumbBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"thumb_border_radius"},{type:"delimiter"},{type:"help",text:"thumb_shadow"},{name:"thumbShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"thumbShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"thumbShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"thumbShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"thumbShadowColor",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color"}]}],visDefaultStyle:{width:110,overflow:"visible"},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-slider.png"}}propertiesUpdate(){}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return o.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}onChange(t,e){if(this.props.editMode)return;const a=this.state.rxData.oid;this.props.context.setValue(a,parseFloat(e))}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}renderWidgetBody(t){super.renderWidgetBody(t);const e=this.state.rxData.oid,a=this.getValue(e),s=this.state.rxData.trackBarType,o=parseFloat(this.state.rxData.minValue),d=parseFloat(this.state.rxData.maxValue),n=[];if(this.state.rxData.showMinMax&&(n.push({value:o,label:o}),n.push({value:d,label:d})),this.state.rxData.showSteps)if("auto"===this.state.rxData.stepMode){const t=parseFloat(this.state.rxData.stepDisplay);if(t>0)for(let e=o+t;e<d;e+=t)n.push({value:parseFloat(e.toFixed(2).replace(/[.,]00$/,"")),label:e.toFixed(2).replace(/[.,]00$/,"")})}else{let t=this.state.rxData.customSteps;void 0!==t&&null!==t||(t=""),t=t.split(","),t.forEach((t=>{t=parseInt(t),n.push({value:t,label:t})}))}const u={height:"horizontal"===this.state.rxData.orientation?this.state.rxData.trackWidth:"100%",width:"horizontal"!==this.state.rxData.orientation?this.state.rxData.trackWidth:"100%","& .MuiSlider-thumb":{backgroundColor:this.state.rxData.sliderThumbColor,width:this.state.rxData.thumbSize,height:this.state.rxData.thumbSize,borderRadius:"".concat(this.state.rxData.thumbBorderRadius,"%"),"&:before":{boxShadow:"".concat(this.state.rxData.thumbShadowX,"px ").concat(this.state.rxData.thumbShadowY,"px ").concat(this.state.rxData.thumbShadowBlur,"px ").concat(this.state.rxData.thumbShadowSize,"px ").concat(this.state.rxData.thumbShadowColor)}},"& .MuiSlider-rail":{backgroundColor:"normal"===s?this.state.rxData.sliderRailColor:"inverted"===s?this.state.rxData.sliderRailActiveColor:"",color:"normal"===s?this.state.rxData.sliderRailColor:"inverted"===s?this.state.rxData.sliderRailActiveColor:"",border:"none",borderRadius:this.state.rxData.trackBorderRadius,boxShadow:"".concat(this.state.rxData.trackShadowX,"px ").concat(this.state.rxData.trackShadowY,"px ").concat(this.state.rxData.trackShadowBlur,"px ").concat(this.state.rxData.trackShadowSize,"px ").concat(this.state.rxData.trackShadowColor)},"& .MuiSlider-track":{backgroundColor:"normal"===s?this.state.rxData.sliderRailActiveColor:"inverted"===s?this.state.rxData.sliderRailColor:"",color:"normal"===s?this.state.rxData.sliderRailActiveColor:"inverted"===s?this.state.rxData.sliderRailColor:"",border:"none",borderRadius:this.state.rxData.trackBorderRadius},"& .MuiSlider-mark":{color:this.state.rxData.sliderRailActiveColor},"& .MuiSlider-markLabel":{fontSize:this.state.rxStyle["font-size"]}};"horizontal"===this.state.rxData.orientation?u["& .MuiSlider-markLabel"].top=this.state.rxData.trackWidth+20:u["& .MuiSlider-markLabel"].left=this.state.rxData.trackWidth+20;const h=(0,i.styled)(r.Slider)((()=>u));return(0,l.jsx)(h,{onChangeCommitted:(t,e)=>this.onChange(t,e),min:this.state.rxData.minValue,max:this.state.rxData.maxValue,step:this.state.rxData.step,defaultValue:a,valueLabelDisplay:"auto",track:this.state.rxData.trackBarType,orientation:this.state.rxData.orientation,marks:n})}}const d=o},51153:(t,e,a)=>{var r=a(28437),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function n(t,e,a){var r,i={},n=null,u=null;for(r in void 0!==a&&(n=""+a),void 0!==e.key&&(n=""+e.key),void 0!==e.ref&&(u=e.ref),e)l.call(e,r)&&!d.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:s,type:t,key:n,ref:u,props:i,_owner:o.current}}e.Fragment=i,e.jsx=n,e.jsxs=n},70579:(t,e,a)=>{t.exports=a(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoWidgetSlider_jsx.cf2e823c.chunk.js.map
|
package/widgets/vis-2-widgets-inventwo/static/js/src_InventwoWidgetSwitch_jsx.413ad31d.chunk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_InventwoWidgetSwitch_jsx.413ad31d.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_InventwoWidgetSwitch_jsx","node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181"],{18548:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});a(28437);var r=a(67085),o=a(59797),s=a(32719),i=a(70579);class l extends(window.visRxWidget||o.VisRxWidget){constructor(t){super(t),this.state.sliderValue=0}static getWidgetInfo(){return{id:"tplInventwoWidgetSwitch",visSet:"vis-2-widgets-inventwo",visWidgetLabel:"vis_2_widgets_inventwo_widget_switch",visName:"vis_2_widgets_inventwo_widget_switch",visAttrs:[{name:"common",fields:[{name:"oid",type:"id",label:"oid"},{name:"valueFalse",type:"text",label:"value_false"},{name:"valueTrue",type:"text",label:"value_true"},{name:"textFalse",type:"html",label:"text_false"},{name:"textTrue",type:"html",label:"text_true"},{name:"textPosition",type:"select",options:[{value:"top",label:"top"},{value:"bottom",label:"bottom"},{value:"start",label:"start"},{value:"end",label:"end"}],default:"end",label:"text_position"}]},{name:"vis_2_widgets_inventwo_attr_group_css_track",label:"vis_2_widgets_inventwo_attr_group_css_track",fields:[{name:"trackColor",type:"color",label:"track_color"},{name:"trackColorTrue",type:"color",label:"track_color_true",default:"rgb(143,164,85)"},{name:"trackSize",type:"slider",min:1,max:50,step:1,default:12,label:"track_width"},{name:"trackBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"track_border_radius"},{type:"delimiter"},{type:"help",text:"track_shadow"},{name:"trackShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"trackShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"trackShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"trackShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"trackShadowColor",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color"},{name:"trackShadowColorTrue",type:"color",default:"rgba(0, 0, 0, 1)",label:"shadow_color_true"}]},{name:"vis_2_widgets_inventwo_attr_group_css_thumb",label:"vis_2_widgets_inventwo_attr_group_css_thumb",fields:[{name:"thumbColor",type:"color",label:"thumb_color"},{name:"thumbColorTrue",type:"color",label:"thumb_color_true",default:"rgb(69,86,24)"},{name:"thumbSize",type:"slider",min:1,max:50,step:1,default:16,label:"thumbSize"},{name:"thumbBorderRadius",type:"slider",min:1,max:100,step:1,default:100,label:"thumb_border_radius"},{type:"delimiter"},{type:"help",text:"thumb_shadow"},{name:"thumbShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"thumbShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"thumbShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"thumbShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"},{name:"thumbShadowColor",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color"},{name:"thumbShadowColorTrue",type:"color",default:"rgba(0, 0, 0, 0.5)",label:"shadow_color_true"}]}],visDefaultStyle:{overflow:"visible"},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-switch.png"}}propertiesUpdate(){}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return l.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}onChange(){if(this.props.editMode)return;const t=this.state.rxData.oid;this.getValue(this.state.rxData.oid)===this.convertValue(this.state.rxData.valueTrue)?this.props.context.setValue(t,this.convertValue(this.state.rxData.valueFalse)):this.props.context.setValue(t,this.convertValue(this.state.rxData.valueTrue))}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}convertValue(t){return"true"===t||"false"!==t&&(isNaN(t)?t:parseFloat(t))}renderWidgetBody(t){super.renderWidgetBody(t);const e=this.state.rxData.oid,a=this.getValue(e)===this.convertValue(this.state.rxData.valueTrue);let o=this.state.rxData.thumbShadowColor,l=this.state.rxData.trackShadowColor;a&&(o=this.state.rxData.thumbShadowColorTrue,l=this.state.rxData.trackShadowColorTrue);const n={"&.MuiSwitch-root":{alignItems:"center",height:this.state.rxData.trackSize,width:"34px",boxSizing:"content-box"},"& .MuiSwitch-switchBase":{color:this.state.rxData.thumbColor,top:"unset"},"& .MuiSwitch-thumb":{width:this.state.rxData.thumbSize,height:this.state.rxData.thumbSize,borderRadius:"".concat(this.state.rxData.thumbBorderRadius,"%"),boxShadow:"".concat(this.state.rxData.thumbShadowX,"px ").concat(this.state.rxData.thumbShadowY,"px ").concat(this.state.rxData.thumbShadowBlur,"px ").concat(this.state.rxData.thumbShadowSize,"px ").concat(o)},"& .Mui-checked":{color:this.state.rxData.thumbColorTrue},"& .MuiSwitch-track":{backgroundColor:this.state.rxData.trackColor,borderRadius:"".concat(this.state.rxData.trackBorderRadius/2/100*this.state.rxData.trackSize,"px"),boxShadow:"".concat(this.state.rxData.trackShadowX,"px ").concat(this.state.rxData.trackShadowY,"px ").concat(this.state.rxData.trackShadowBlur,"px ").concat(this.state.rxData.trackShadowSize,"px ").concat(l)},"& .Mui-checked + .MuiSwitch-track":{backgroundColor:this.state.rxData.trackColorTrue}},d=(0,s.styled)(r.Switch)((()=>n));return(0,i.jsx)(r.FormGroup,{children:(0,i.jsx)(r.FormControlLabel,{control:(0,i.jsx)(d,{onClick:()=>this.onChange(),checked:a}),label:a?this.state.rxData.textTrue:this.state.rxData.textFalse,labelPlacement:this.state.rxData.textPosition})})}}const n=l},51153:(t,e,a)=>{var r=a(28437),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function d(t,e,a){var r,s={},d=null,u=null;for(r in void 0!==a&&(d=""+a),void 0!==e.key&&(d=""+e.key),void 0!==e.ref&&(u=e.ref),e)i.call(e,r)&&!n.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===s[r]&&(s[r]=e[r]);return{$$typeof:o,type:t,key:d,ref:u,props:s,_owner:l.current}}e.Fragment=s,e.jsx=d,e.jsxs=d},70579:(t,e,a)=>{t.exports=a(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=src_InventwoWidgetSwitch_jsx.413ad31d.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css"],{52053:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(28437),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_mui_material__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67085),_mui_material__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_mui_material__WEBPACK_IMPORTED_MODULE_1__),_mui_icons_material__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(21839),_mui_icons_material__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_mui_icons_material__WEBPACK_IMPORTED_MODULE_2__),_mui_styles__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(32719),_mui_styles__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_mui_styles__WEBPACK_IMPORTED_MODULE_3__),_iobroker_adapter_react_v5__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(37449),_iobroker_adapter_react_v5__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_iobroker_adapter_react_v5__WEBPACK_IMPORTED_MODULE_4__),_iobroker_vis_2_widgets_react_dev__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(59797),_iobroker_vis_2_widgets_react_dev__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_iobroker_vis_2_widgets_react_dev__WEBPACK_IMPORTED_MODULE_5__),_lib_iro_min__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(82782),_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_lib_iro_min__WEBPACK_IMPORTED_MODULE_6__),_assets_inventwo_css__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(14915),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(70579);const styles=()=>({dialogTitle:{display:"flex",justifyContent:"space-between",alignItems:"center"}});class InventwoWidgetUniversal extends(window.visRxWidget||_iobroker_vis_2_widgets_react_dev__WEBPACK_IMPORTED_MODULE_5__.VisRxWidget){constructor(t){super(t),this.state.currentView=null,this.state.dialogOpen=!1,this.state.showFeedback=!1}static getWidgetInfo(){return{id:"tplInventwoWidgetUniversal",visSet:"vis-2-widgets-inventwo",visSetLabel:"vis_2_widgets_set_inventwo",visWidgetLabel:"vis_2_widgets_inventwo_widget_universal",visName:"vis_2_widgets_inventwo_widget_universal",visSetColor:"rgba(69, 86, 24, 1)",visAttrs:[{name:"common",fields:[{name:"type",type:"select",options:[{value:"switch",label:"switch"},{value:"button",label:"button"},{value:"nav",label:"nav"},{value:"readonly",label:"read_only"},{value:"viewInDialog",label:"view_in_dialog"},{value:"increaseDecreaseValue",label:"increase_decrease_value"},{value:"http",label:"send_http"}],default:"switch",label:"type",tooltip:"tooltip_widget_type"},{name:"mode",type:"select",options:[{value:"singleButton",label:"single_button"},{value:"separatedButtons",label:"separated_buttons"}],default:"singleButton",label:"mode",tooltip:"tooltip_widget_mode"},{name:"direction",type:"select",options:[{value:"row",label:"row"},{value:"column",label:"column"}],default:"row",label:"direction",hidden:'data.mode == "singleButton"'},{name:"oid",type:"id",label:"oid"},{name:"url",type:"text",label:"url",hidden:'data.type != "http"'},{name:"httpType",type:"select",options:[{value:"send",label:"send_request"},{value:"open",label:"open_url"},{value:"openNewTab",label:"open_url_new_tab"}],default:"send",label:"http_type",hidden:'data.type != "http"'},{name:"view",type:"views",label:"view",hidden:'(data.type != "nav" && data.type != "viewInDialog") || data.mode == "separatedButtons"'},{name:"valueFalse",type:"text",label:"value_false",hidden:'data.type != "switch" || data.mode == "separatedButtons"'},{name:"valueTrue",type:"text",label:"value_true",hidden:'data.mode == "separatedButtons" || data.type == "http"'},{name:"buttonSize",type:"slider",min:1,max:200,step:10,default:110,label:"button_size",hidden:'data.mode == "singleButton"'},{name:"btnSpacing",type:"slider",min:0,max:50,step:1,default:10,label:"button_spacing",hidden:'data.mode == "singleButton"'},{name:"countStates",type:"number",default:1,label:"count_states",hidden:"data.countStates > 0"}]},{name:"vis_2_widgets_inventwo_attr_group_type_view_in_dialog",label:"vis_2_widgets_inventwo_attr_group_type_view_in_dialog",hidden:'data.type != "viewInDialog"',fields:[{name:"dialogFullscreen",type:"checkbox",label:"dialog_fullscreen",hidden:'data.type != "viewInDialog"'},{name:"dialogCloseOnClickOutside",type:"checkbox",label:"dialog_close_on_click_outside",hidden:'data.type != "viewInDialog" || data.dialogFullscreen'},{name:"dialogWidth",type:"slider",min:1,max:1e3,step:1,default:500,label:"dialog_width",hidden:"data.dialogFullscreen"},{name:"dialogHeight",type:"slider",min:1,max:1e3,step:1,default:300,label:"dialog_height",hidden:"data.dialogFullscreen"},{name:"dialogPadding",type:"slider",min:0,max:50,step:1,default:10,label:"padding"},{name:"dialogBackground",type:"color",default:"rgb(18, 18, 18)",label:"background"},{type:"delimiter"},{type:"help",text:"Title bar"},{name:"dialogTitle",type:"html",label:"title"},{name:"dialogTitleColor",type:"color",default:"rgb(255,255,255)",label:"color"},{name:"dialogTitleSize",type:"slider",min:0,max:50,step:1,default:20,label:"size"},{type:"delimiter"},{type:"help",text:"Close button"},{name:"dialogCloseButtonBackground",type:"color",default:"rgba(255,255,255,0)",label:"background"},{name:"dialogCloseButtonColor",type:"color",default:"rgba(255,255,255,1)",label:"color"},{name:"dialogCloseButtonSize",type:"slider",min:0,max:50,step:1,default:14,label:"size"},{type:"delimiter"},{type:"help",text:"Border radius"},{name:"dialogBorderRadiusTopLeft",type:"slider",min:0,max:50,step:1,default:12,label:"top_left"},{name:"dialogBorderRadiusTopRight",type:"slider",min:0,max:50,step:1,default:0,label:"top_right"},{name:"dialogBorderRadiusBottomRight",type:"slider",min:0,max:50,step:1,default:12,label:"bottom_right"},{name:"dialogBorderRadiusBottomLeft",type:"slider",min:0,max:50,step:1,default:0,label:"bottom_left"}]},{name:"vis_2_widgets_inventwo_attr_group_click_feedback",label:"vis_2_widgets_inventwo_attr_group_click_feedback",fields:[{name:"feedbackDuration",type:"slider",min:0,max:5e3,step:100,default:0,label:"duration"},{type:"delimiter"},{type:"help",text:"colors"},{name:"contentColorFeedback",type:"color",label:"content_color",hidden:'data.mode == "separatedButtons" || data.contentType != "icon"'},{name:"backgroundFeedback",type:"color",default:"rgba(69, 86, 24, 1)",label:"background"},{name:"textColorFeedback",type:"color",label:"text_color"},{name:"borderColorFeedback",type:"color",label:"border_color"},{name:"outerShadowColorFeedback",type:"color",label:"outer_shadow_color",default:"rgba(0, 0, 0, 1)"},{name:"innerShadowColorFeedback",type:"color",label:"inner_shadow_color"}]},{name:"vis_2_widgets_inventwo_attr_group_state_default",label:"vis_2_widgets_inventwo_attr_group_state_default",fields:[{type:"help",text:"text_and_content"},{name:"text",type:"html",label:"text",hidden:'data.mode == "separatedButtons"'},{name:"icon",type:"icon64",label:"icon",hidden:'data.mode == "separatedButtons" || data.contentType != "icon"'},{name:"image",type:"image",label:"image",hidden:'data.mode == "separatedButtons" || data.contentType != "image"'},{name:"html",type:"html",label:"text_html",hidden:'data.mode == "separatedButtons" || data.contentType != "html"'},{name:"viewInWidget",type:"views",label:"view_in_widget",hidden:'data.mode == "separatedButtons" || data.contentType != "viewInWidget"'},{name:"contentBlinkInterval",type:"slider",min:0,max:2e3,step:100,default:0,label:"content_blink_interval"},{type:"delimiter"},{type:"help",text:"colors"},{name:"contentColor",type:"color",label:"content_color",hidden:'data.mode == "separatedButtons" || data.contentType != "icon"'},{name:"background",type:"color",label:"background"},{name:"textColor",type:"color",label:"text_color"},{name:"borderColor",type:"color",label:"border_color"},{name:"outerShadowColor",type:"color",label:"outer_shadow_color",default:"rgba(0, 0, 0, 1)"},{name:"innerShadowColor",type:"color",label:"inner_shadow_color"}]},{name:"countStates",indexFrom:1,indexTo:"countStates",label:"vis_2_widgets_inventwo_attr_group_states",fields:[{type:"help",text:"condition"},{name:"compareBy",type:"select",options:[{value:"default",label:"compare_by_widget_default"},{value:"value",label:"value"},{value:"view",label:"view"}],default:"default",label:"compare_by",hidden:'data.mode == "separatedButtons"',tooltip:"tooltip_compare_by"},{name:"oid",type:"id",label:"oid",hidden:'data.type == "nav" || data["compareBy" + index] == "view" || data.mode == "separatedButtons"',tooltip:"tooltip_state_oid"},{name:"comparisonOperator",type:"select",options:[{value:"===",label:"equal"},{value:"!=",label:"not_equal"},{value:">",label:"greater"},{value:"<",label:"lower"},{value:">=",label:"greater_equal"},{value:"<=",label:"lower_equal"}],default:"===",label:"comparison_operator",hidden:'data.type == "nav" || data["compareBy" + index] == "view" || data.mode == "separatedButtons"'},{name:"value",type:"text",label:"value",hidden:'data.type == "nav" || data["compareBy" + index] == "view"'},{name:"view",type:"views",label:"view",hidden:'(data.type != "nav" && data["compareBy" + index] != "view")'},{type:"delimiter"},{type:"help",text:"text_and_content"},{name:"text",type:"html",label:"text"},{name:"textTrue",type:"html",label:"text_true",hidden:'data.mode == "singleButton"'},{name:"icon",type:"icon64",label:"icon",hidden:'data.contentType != "icon"'},{name:"iconTrue",type:"icon64",label:"icon_true",hidden:'data.mode == "singleButton" || data.contentType != "icon"'},{name:"image",type:"image",label:"image",hidden:'data.contentType != "image"'},{name:"imageTrue",type:"image",label:"image_true",hidden:'data.mode == "singleButton" || data.contentType != "image"'},{name:"html",type:"html",label:"text_html",hidden:'data.contentType != "html"'},{name:"htmlTrue",type:"html",label:"text_html_true",hidden:'data.mode == "singleButton" || data.contentType != "html"'},{name:"viewInWidget",type:"views",label:"view_in_widget",hidden:'data.contentType != "viewInWidget"'},{name:"viewInWidgetTrue",type:"views",label:"view_in_widget_true",hidden:'data.mode == "singleButton" || data.contentType != "viewInWidget"'},{name:"contentBlinkInterval",type:"slider",min:0,max:2e3,step:100,default:0,label:"content_blink_interval"},{type:"delimiter"},{type:"help",text:"colors"},{name:"contentColor",type:"color",label:"content_color",hidden:'data.contentType != "icon"'},{name:"contentColorTrue",type:"color",label:"content_color_true",hidden:'data.mode == "singleButton" || data.contentType != "icon"'},{name:"background",type:"color",default:"rgb(69,86,24)",label:"background"},{name:"backgroundTrue",type:"color",default:"rgb(69,86,24)",label:"background_true",hidden:'data.mode == "singleButton"'},{name:"textColor",type:"color",label:"text_color"},{name:"textColorTrue",type:"color",label:"text_color_true",hidden:'data.mode == "singleButton"'},{name:"borderColor",type:"color",label:"border_color"},{name:"borderColorTrue",type:"color",label:"border_color_true",hidden:'data.mode == "singleButton"'},{name:"outerShadowColor",type:"color",label:"outer_shadow_color",default:"rgb(0,0,0)"},{name:"outerShadowColorTrue",type:"color",label:"outer_shadow_color_true",hidden:'data.mode == "singleButton"',default:"rgb(0,0,0)"},{name:"innerShadowColor",type:"color",label:"inner_shadow_color"},{name:"innerShadowColorTrue",type:"color",label:"inner_shadow_color_true",hidden:'data.mode == "singleButton"'},{type:"delimiter"},{type:"help",text:"content"},{name:"contentSize",type:"slider",min:0,max:100,step:1,default:0,label:"content_size"}]},{name:"vis_2_widgets_inventwo_attr_content_color_picker",label:"vis_2_widgets_inventwo_attr_content_color_picker",hidden:'data.contentType != "colorPicker"',fields:[{name:"colorPickerColorModel",type:"select",options:[{value:"hex",label:"hex"},{value:"hex8",label:"hex_8"},{value:"rgb",label:"rgb"},{value:"hsl",label:"hsl"},{value:"hsv",label:"hsv"},{value:"cie",label:"cie"}],default:"hex",label:"color_model"},{name:"colorPickerOid",type:"id",hidden:'data.colorPickerColorModel === "rgb" || data.colorPickerColorModel === "hsl" || data.colorPickerColorModel === "hsv"',label:"oid"},{name:"colorPickerOid1",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_1"},{name:"colorPickerOid2",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_2"},{name:"colorPickerOid3",type:"id",hidden:'data.colorPickerColorModel !== "rgb" && data.colorPickerColorModel !== "hsl" && data.colorPickerColorModel !== "hsv"',label:"oid_value_3"},{type:"help",text:"layout_size"},{name:"colorPickerWidth",type:"slider",min:0,max:500,step:1,default:200,label:"width"},{name:"colorPickerHandleSize",type:"slider",min:0,max:20,step:1,default:8,label:"handle_size"},{name:"colorPickerHandleMargin",type:"slider",min:0,max:20,step:1,default:6,label:"handle_margin"},{name:"colorPickerComponentsSpace",type:"slider",min:0,max:50,step:1,default:12,label:"components_space"},{name:"colorPickerDirection",type:"select",options:[{value:"vertical",label:"vertical"},{value:"horizontal",label:"horizontal"}],default:"vertical",label:"direction"},{name:"colorPickerBorderWidth",type:"slider",min:0,max:10,step:1,default:0,label:"border_width"},{name:"colorPickerBorderColor",type:"color",label:"border_color"},{type:"help",text:"components"},{name:"colorPickerShowWheel",type:"checkbox",default:!0,label:"show_wheel"},{name:"colorPickerShowBox",type:"checkbox",label:"show_box"},{name:"colorPickerShowHue",type:"checkbox",label:"show_hue"},{name:"colorPickerShowSaturation",type:"checkbox",default:!0,label:"show_Saturation"},{name:"colorPickerShowValue",type:"checkbox",default:!0,label:"show_value"},{name:"colorPickerShowRed",type:"checkbox",label:"show_red"},{name:"colorPickerShowGreen",type:"checkbox",label:"show_green"},{name:"colorPickerShowBlue",type:"checkbox",label:"show_blue"},{name:"colorPickerShowAlpha",type:"checkbox",label:"show_Alpha"},{name:"colorPickerShowKelvin",type:"checkbox",label:"show_kelvin"}]},{name:"vis_2_widgets_inventwo_attr_group_css_text",label:"vis_2_widgets_inventwo_attr_group_css_text",fields:[{name:"textDecoration",type:"select",options:[{value:"none",label:"none"},{value:"underline",label:"underline"},{value:"overline",label:"overline"},{value:"line-through",label:"line-through"}],default:"none",label:"text_decoration"},{name:"textMarginTop",type:"slider",min:0,max:50,step:1,default:0,label:"margin_top"},{name:"textMarginBottom",type:"slider",min:0,max:50,step:1,default:0,label:"margin_bottom"},{name:"textMarginLeft",type:"slider",min:0,max:50,step:1,default:0,label:"margin_left"},{name:"textMarginRight",type:"slider",min:0,max:50,step:1,default:0,label:"margin_right"}]},{name:"vis_2_widgets_inventwo_attr_group_css_content",label:"vis_2_widgets_inventwo_attr_group_css_content",fields:[{name:"contentType",type:"select",options:[{value:"icon",label:"icon"},{value:"image",label:"image"},{value:"html",label:"text_html"},{value:"viewInWidget",label:"view_in_widget"},{value:"colorPicker",label:"color_picker"}],default:"icon",label:"content_type",tooltip:"tooltip_content_type"},{name:"contentMarginTop",type:"slider",min:0,max:50,step:1,default:0,label:"margin_top"},{name:"contentMarginBottom",type:"slider",min:0,max:50,step:1,default:0,label:"margin_bottom"},{name:"contentMarginLeft",type:"slider",min:0,max:50,step:1,default:0,label:"margin_left"},{name:"contentMarginRight",type:"slider",min:0,max:50,step:1,default:0,label:"margin_right"},{name:"contentSize",type:"slider",min:0,max:100,step:1,default:40,label:"content_size"},{name:"contentRotation",type:"slider",min:-180,max:180,step:1,default:0,label:"rotation"},{name:"contentMirror",type:"checkbox",default:!1,label:"mirror"}]},{name:"vis_2_widgets_inventwo_attr_group_css_alignment",label:"vis_2_widgets_inventwo_attr_group_css_alignment",fields:[{name:"flexDirection",type:"select",options:[{value:"row",label:"row"},{value:"column",label:"column"}],default:"column",label:"direction"},{name:"alignItems",type:"select",options:[{value:"flex-start",label:"start"},{value:"center",label:"center"},{value:"flex-end",label:"end"},{value:"space-between",label:"space between"}],default:"space-between",label:"alignment"},{name:"textAlign",type:"select",options:[{value:"start",label:"start"},{value:"center",label:"center"},{value:"end",label:"end"}],default:"start",label:"text_align"},{name:"contentAlign",type:"select",options:[{value:"start",label:"start"},{value:"center",label:"center"},{value:"end",label:"end"}],default:"center",label:"content_align"},{name:"invertOrder",type:"checkbox",label:"invert_order"}]},{name:"vis_2_widgets_inventwo_attr_group_css_transparency",label:"vis_2_widgets_inventwo_attr_group_css_transparency",fields:[{name:"backgroundOpacity",type:"slider",min:0,max:1,step:.1,default:1,label:"background_opacity"},{name:"contentOpacity",type:"slider",min:0,max:1,step:.1,default:1,label:"content_opacity"}]},{name:"vis_2_widgets_inventwo_attr_group_css_spacing",label:"vis_2_widgets_inventwo_attr_group_css_spacing",fields:[{name:"paddingLeft",type:"slider",min:0,max:50,step:1,default:10,label:"padding_left"},{name:"paddingRight",type:"slider",min:0,max:50,step:1,default:10,label:"padding_right"},{name:"paddingTop",type:"slider",min:0,max:50,step:1,default:10,label:"padding_top"},{name:"paddingBottom",type:"slider",min:0,max:50,step:1,default:10,label:"padding_bottom"}]},{name:"vis_2_widgets_inventwo_attr_group_css_border_radius",label:"vis_2_widgets_inventwo_attr_group_css_border_radius",fields:[{name:"borderRadiusTopLeft",type:"slider",min:0,max:50,step:1,default:12,label:"top_left"},{name:"borderRadiusTopRight",type:"slider",min:0,max:50,step:1,default:0,label:"top_right"},{name:"borderRadiusBottomRight",type:"slider",min:0,max:50,step:1,default:12,label:"bottom_right"},{name:"borderRadiusBottomLeft",type:"slider",min:0,max:50,step:1,default:0,label:"bottom_left"}]},{name:"vis_2_widgets_inventwo_attr_group_css_border",label:"vis_2_widgets_inventwo_attr_group_css_border",fields:[{name:"borderSizeTop",type:"slider",min:0,max:10,step:1,default:0,label:"size_top"},{name:"borderSizeBottom",type:"slider",min:0,max:10,step:1,default:0,label:"size_bottom"},{name:"borderSizeLeft",type:"slider",min:0,max:10,step:1,default:0,label:"size_left"},{name:"borderSizeRight",type:"slider",min:0,max:10,step:1,default:0,label:"size_right"},{name:"borderStyle",type:"select",options:[{value:"none",label:"none"},{value:"dashed",label:"dashed"},{value:"dotted",label:"dotted"},{value:"double",label:"double"},{value:"groove",label:"groove"},{value:"inset",label:"outset"},{value:"ridge",label:"ridge"},{value:"solid",label:"solid"}],default:"none",label:"border_style"}]},{name:"vis_2_widgets_inventwo_attr_group_css_outer_shadow",label:"vis_2_widgets_inventwo_attr_group_css_outer_shadow",fields:[{name:"outerShadowX",type:"slider",min:0,max:50,step:1,default:2,label:"x_offset"},{name:"outerShadowY",type:"slider",min:0,max:50,step:1,default:2,label:"y_offset"},{name:"outerShadowBlur",type:"slider",min:0,max:50,step:1,default:2,label:"blur"},{name:"outerShadowSize",type:"slider",min:0,max:50,step:1,default:1,label:"size"}]},{name:"vis_2_widgets_inventwo_attr_group_css_inner_shadow",label:"vis_2_widgets_inventwo_attr_group_css_inner_shadow",fields:[{name:"innerShadowX",type:"slider",min:0,max:50,step:1,default:0,label:"x_offset"},{name:"innerShadowY",type:"slider",min:0,max:50,step:1,default:0,label:"y_offset"},{name:"innerShadowBlur",type:"slider",min:0,max:50,step:1,default:0,label:"blur"},{name:"innerShadowSize",type:"slider",min:0,max:50,step:1,default:0,label:"size"}]}],visDefaultStyle:{width:110,height:110,position:"absolute",overflow:"visible"},visPrev:"widgets/vis-2-widgets-inventwo/img/vis-widget-inventwo-universal.png"}}propertiesUpdate(){if("colorPicker"===this.state.rxData.contentType){const t=[];this.state.rxData.colorPickerShowWheel&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Wheel,options:{}}),this.state.rxData.colorPickerShowBox&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Box,options:{}}),this.state.rxData.colorPickerShowHue&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"hue"}}),this.state.rxData.colorPickerShowSaturation&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"saturation"}}),this.state.rxData.colorPickerShowValue&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"value"}}),this.state.rxData.colorPickerShowRed&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"red"}}),this.state.rxData.colorPickerShowGreen&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"green"}}),this.state.rxData.colorPickerShowBlue&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"blue"}}),this.state.rxData.colorPickerShowAlpha&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"alpha"}}),this.state.rxData.colorPickerShowKelvin&&t.push({component:_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ui.Slider,options:{sliderType:"kelvin"}});const e=document.querySelector("#".concat(this.props.id," .vis-inventwo-widget-color-picker-wrapper"));e.innerHTML="",this.state.colorPicker=new(_lib_iro_min__WEBPACK_IMPORTED_MODULE_6___default().ColorPicker)(e,{width:this.state.rxData.colorPickerWidth,color:"#ffff00",layout:t,handleRadius:this.state.rxData.colorPickerHandleSize,padding:this.state.rxData.colorPickerHandleMargin,margin:this.state.rxData.colorPickerComponentsSpace,layoutDirection:this.state.rxData.colorPickerDirection,borderWidth:this.state.rxData.colorPickerBorderWidth,borderColor:this.state.rxData.colorPickerBorderColor}),this.state.colorPicker.on("input:change",(t=>{switch(this.state.rxData.colorPickerColorModel){case"hex":this.props.context.setValue(this.state.rxData.colorPickerOid,t.hexString);break;case"hex8":this.props.context.setValue(this.state.rxData.colorPickerOid,t.hex8String);break;case"rgb":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.rgb.r),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.rgb.g),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.rgb.b);break;case"hsl":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.hsl.h),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.hsl.s),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.hsl.l);break;case"hsv":this.props.context.setValue(this.state.rxData.colorPickerOid1,t.hsv.h),this.props.context.setValue(this.state.rxData.colorPickerOid2,t.hsv.s),this.props.context.setValue(this.state.rxData.colorPickerOid3,t.hsv.v)}})),this.setColorPickerColor()}}async setColorPickerColor(){const t=this.state.rxData.colorPickerColorModel,e=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid)).val,a=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid1)).val,o=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid2)).val,i=(await this.props.context.socket.getState(this.state.rxData.colorPickerOid3)).val;switch(t){case"hex":/^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test(e)?this.state.colorPicker.color.hexString=e:this.state.colorPicker.color.hexString="#ffffff";break;case"hex8":/^#([A-Fa-f0-9]{8}$)/.test(e)?this.state.colorPicker.color.hex8String=e:this.state.colorPicker.color.hexString="#ffffffff";break;case"rgb":this.state.colorPicker.color.rgb=void 0!==a&&void 0!==o&&void 0!==i?{r:a,g:o,b:i}:{r:255,g:255,b:255};break;case"hsl":this.state.colorPicker.color.hsl=void 0!==a&&void 0!==o&&void 0!==i?{h:a,s:o,l:i}:{h:330,s:0,l:100};break;case"hsv":this.state.colorPicker.color.hsv=void 0!==a&&void 0!==o&&void 0!==i?{h:a,s:o,v:i}:{h:0,s:0,v:100}}}componentDidMount(){super.componentDidMount(),this.propertiesUpdate()}getWidgetInfo(){return InventwoWidgetUniversal.getWidgetInfo()}onRxDataChanged(){this.propertiesUpdate()}onRxStyleChanged(){}onStateUpdated(t,e){}getValue(t){if(void 0!==t&&""!==t&&"nothing_selected"!==t)return this.state.values["".concat(t,".val")]}eval(value1,value2){let operator=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"===";return isNaN(value1)&&(value1='"'.concat(value1,'"')),isNaN(value2)&&(value2='"'.concat(value2,'"')),eval("".concat(value1," ").concat(operator," ").concat(value2))}compare(t,e){switch(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"==="){case"===":case"==":return t===e;case"<":return t<e;case">":return t>e;case"<=":return t<=e;case">=":return t>=e;case"!=":return t!==e;default:return!1}}validOid(t){return void 0!==t&&null!==t&&"nothing_selected"!==t}getValueData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=null,a=null,o=null;if(null===t)for(let i=1;i<=this.state.rxData.countStates;i++){if(this.state.rxData.countStates>1&&this.validOid(this.state.rxData["oid".concat(i)]))e=this.state.rxData["oid".concat(i)];else{if(!this.validOid(this.state.rxData.oid))continue;e=this.state.rxData.oid}a=this.getValue(e);let t=this.state.rxData["compareBy".concat(i)];void 0!==t&&null!==t||(t="default");let l=this.state.rxData["comparisonOperator".concat(i)];void 0!==l&&null!==l||(l="===");let r=this.state.rxData.valueTrue;if(void 0!==this.state.rxData["value".concat(i)]&&null!==this.state.rxData["value".concat(i)]&&(r=this.state.rxData["value".concat(i)]),r=this.convertValue(r),("default"===t&&("switch"===this.state.rxData.type||"button"===this.state.rxData.type||"readonly"===this.state.rxData.type)||"value"===t)&&this.compare(a,r,l)||("default"===t&&"nav"===this.state.rxData.type||"view"===t)&&"singleButton"===this.state.rxData.mode&&1===this.state.rxData.countStates&&this.state.rxData.view===this.props.view||("default"===t&&"nav"===this.state.rxData.type||"view"===t)&&this.state.rxData.countStates>1&&this.state.rxData["view".concat(i)]===this.props.view){o=this.getStateData(i);break}}else e=this.state.rxData.oid,a=this.getValue(e),o=("switch"===this.state.rxData.type||"button"===this.state.rxData.type||"readonly"===this.state.rxData.type)&&a===this.convertValue(this.state.rxData["value".concat(t)])||"nav"===this.state.rxData.type&&this.state.rxData["view".concat(t)]===this.props.view?this.getStateData(t,!0):this.getStateData(t);return null===o&&(o={background:this.state.rxData.background,icon:this.state.rxData.icon,image:this.state.rxData.image,contentColor:this.state.rxData.contentColor,text:this.state.rxData.text,textColor:this.state.rxData.textColor,outerShadowColor:this.state.rxData.outerShadowColor,innerShadowColor:this.state.rxData.innerShadowColor,borderColor:this.state.rxData.borderColor,html:this.state.rxData.html,viewInWidget:this.state.rxData.viewInWidget,contentBlinkInterval:this.state.rxData.contentBlinkInterval,contentSize:this.state.rxData.contentSize}),this.state.showFeedback&&(o=this.replaceWithClickFeedbackData(o)),o}getStateData(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a={background:this.state.rxData["background".concat(t)],icon:this.state.rxData["icon".concat(t)],image:this.state.rxData["image".concat(t)],contentColor:this.state.rxData["contentColor".concat(t)],text:this.state.rxData["text".concat(t)],textColor:this.state.rxData["textColor".concat(t)],outerShadowColor:this.state.rxData["outerShadowColor".concat(t)],innerShadowColor:this.state.rxData["innerShadowColor".concat(t)],borderColor:this.state.rxData["borderColor".concat(t)],html:this.state.rxData["html".concat(t)],viewInWidget:this.state.rxData["viewInWidget".concat(t)],contentBlinkInterval:this.state.rxData["contentBlinkInterval".concat(t)],contentSize:this.state.rxData["contentSize".concat(t)]>0?this.state.rxData["contentSize".concat(t)]:this.state.rxData.contentSize};return e&&(a.background=this.state.rxData["backgroundTrue".concat(t)],a.icon=this.state.rxData["iconTrue".concat(t)],a.image=this.state.rxData["imageTrue".concat(t)],a.contentColor=this.state.rxData["contentColorTrue".concat(t)],a.text=this.state.rxData["textTrue".concat(t)],a.html=this.state.rxData["htmlTrue".concat(t)],a.viewInWidget=this.state.rxData["viewInWidgetTrue".concat(t)],a.textColor=this.state.rxData["textColorTrue".concat(t)],a.borderColor=this.state.rxData["borderColorTrue".concat(t)],a.outerShadowColor=this.state.rxData["outerShadowColorTrue".concat(t)],a.innerShadowColor=this.state.rxData["innerShadowColorTrue".concat(t)]),a}replaceWithClickFeedbackData(t){return this.validFieldValue(this.state.rxData.backgroundFeedback)&&(t.background=this.state.rxData.backgroundFeedback),this.validFieldValue(this.state.rxData.contentColorFeedback)&&(t.contentColor=this.state.rxData.contentColorFeedback),this.validFieldValue(this.state.rxData.textColorFeedback)&&(t.textColor=this.state.rxData.textColorFeedback),this.validFieldValue(this.state.rxData.outerShadowColorFeedback)&&(t.outerShadowColor=this.state.rxData.outerShadowColorFeedback),this.validFieldValue(this.state.rxData.innerShadowColorFeedback)&&(t.innerShadowColor=this.state.rxData.innerShadowColorFeedback),this.validFieldValue(this.state.rxData.borderColorFeedback)&&(t.borderColor=this.state.rxData.borderColorFeedback),t}validFieldValue(t){return void 0!==t&&null!==t&&""!==t}convertValue(t){return"true"===t||"false"!==t&&(isNaN(t)?t:parseFloat(t))}onClick(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.props.editMode)return;if(null!==e.target.closest(".IroColorPicker"))return;const a=this.state.rxData.oid;if(!e.target.closest(".inventwo-view-in-widget-wrapper, #".concat(this.props.id)).classList.contains("inventwo-view-in-widget-wrapper")&&"readonly"!==this.state.rxData.type)switch(this.setState({showFeedback:!0}),this.state.rxData.type){case"switch":if("singleButton"===this.state.rxData.mode){const t=this.convertValue(this.state.rxData.valueTrue);this.state.values["".concat(a,".val")]===t?this.props.context.setValue(a,this.convertValue(this.state.rxData.valueFalse)):this.props.context.setValue(a,t)}else this.props.context.setValue(a,this.convertValue(this.state.rxData["value".concat(t)]));break;case"button":"singleButton"===this.state.rxData.mode?this.props.context.setValue(a,this.convertValue(this.state.rxData.valueTrue)):this.props.context.setValue(a,this.convertValue(this.state.rxData["value".concat(t)]));break;case"nav":const o=e.target.closest(".inventwo-dialog");if(void 0!==o&&null!==o)return;"singleButton"===this.state.rxData.mode?window.vis.changeView(this.state.rxData.view,this.state.rxData.view):window.vis.changeView(this.state.rxData["view".concat(t)],this.state.rxData["view".concat(t)]);break;case"viewInDialog":this.setState({dialogOpen:!0});break;case"increaseDecreaseValue":let i=this.getValue(a);i+=this.convertValue(this.state.rxData.valueTrue),this.props.context.setValue(a,i);break;case"http":const l=this.state.rxData.httpType,r=this.state.rxData.url;if("send"===l){const t=new XMLHttpRequest;t.open("GET",r),t.send()}else"open"===l?window.open(r,"_self"):"openNewTab"===l&&window.open(r,"_blank")}}renderWidgetBody(t){if(super.renderWidgetBody(t),this.wrappedContent=!0,"w000097"===this.props.id&&console.log(this.state.rxData),this.state.showFeedback){let t=this.state.rxData.feedbackDuration;void 0===t&&(t=0),t>0?setTimeout((()=>{this.setState({showFeedback:!1})}),t):this.setState({showFeedback:!1})}return this.buildWidgetBody()}buildWidgetBody(){const t=[];if("singleButton"===this.state.rxData.mode)t.push(this.getSingleCard());else{const e=[];for(let t=1;t<=this.state.rxData.countStates;t++)e.push(this.getSingleCard(t));t.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.Box,{sx:{display:"flex",height:"100%",overflow:"auto",gap:"".concat(this.state.rxData.btnSpacing,"px"),flexDirection:this.state.rxData.direction,padding:"10px",margin:"-10px"},children:e},"cardWrapper"))}return"viewInDialog"===this.state.rxData.type&&t.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.Dialog,{classes:"inventwo-dialog",open:this.state.dialogOpen,fullScreen:!0,sx:{"& .MuiDialog-container":{"& .MuiDialog-paper":{maxWidth:this.state.rxData.dialogFullscreen?"100%":"".concat(this.state.rxData.dialogWidth,"px"),maxHeight:this.state.rxData.dialogFullscreen?"100%":"".concat(this.state.rxData.dialogHeight,"px"),background:this.state.rxData.dialogBackground,borderRadius:"".concat(this.state.rxData.dialogBorderRadiusTopLeft,"px ").concat(this.state.rxData.dialogBorderRadiusTopRight,"px ").concat(this.state.rxData.dialogBorderRadiusBottomRight,"px ").concat(this.state.rxData.dialogBorderRadiusBottomLeft,"px")},".MuiDialogContent-root":{padding:"".concat(this.state.rxData.dialogPadding,"px")},".MuiDialogTitle-root":{padding:"".concat(this.state.rxData.dialogPadding,"px"),color:this.state.rxData.dialogTitleColor}}},onClose:(t,e)=>{e&&"backdropClick"===e&&this.state.rxData.dialogCloseOnClickOutside||this.setState({dialogOpen:!1})},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.DialogTitle,{className:this.props.classes.dialogTitle,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span",{children:this.state.rxData.dialogTitle}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.IconButton,{onClick:()=>this.setState({dialogOpen:!1}),sx:{background:this.state.rxData.dialogCloseButtonBackground,color:this.state.rxData.dialogCloseButtonColor,"&:hover":{background:this.state.rxData.dialogCloseButtonBackground}},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_icons_material__WEBPACK_IMPORTED_MODULE_2__.Close,{sx:{width:this.state.rxData.dialogCloseButtonSize,height:this.state.rxData.dialogCloseButtonSize}})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.DialogContent,{children:this.buildViewInWidget(this.state.rxData.view)})]},"dialog")),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{style:{overflow:"visible",height:"100%",width:"100%",fontSize:this.state.rxStyle["font-size"],color:this.state.rxStyle.color,textShadow:this.state.rxStyle["text-shadow"],fontFamily:this.state.rxStyle["font-family"],fontStyle:this.state.rxStyle["font-style"],fontVariant:this.state.rxStyle["font-variant"],fontWeight:this.state.rxStyle["font-weight"],lineHeight:this.state.rxStyle["line-height"],letterSpacing:this.state.rxStyle["letter-spacing"],wordSpacing:this.state.rxStyle["word-spacing"]},children:t})}getContentIcon(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===this.getValueData(t).icon?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_iobroker_adapter_react_v5__WEBPACK_IMPORTED_MODULE_4__.Icon,{src:this.getValueData(t).icon,style:{width:this.getValueData(t).contentSize}})}getContentImage(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.getValueData(t).image;return null===e?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_iobroker_adapter_react_v5__WEBPACK_IMPORTED_MODULE_4__.Icon,{src:e,style:{width:this.getValueData(t).contentSize}})}getContentHtml(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{style:{fontSize:"".concat(this.getValueData(t).contentSize,"px")},dangerouslySetInnerHTML:{__html:this.getValueData(t).html}})}getContentViewInWidget(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.getValueData(t).viewInWidget;return this.buildViewInWidget(e)}buildViewInWidget(t){if(t===this.props.view)return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{children:"Cannot use recursive views"});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{style:{position:"relative",overflow:"auto",height:"100%"},className:"inventwo-view-in-widget-wrapper",children:t?this.getWidgetView(t,{style:{}}):null})}getCardContent(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;switch(this.state.rxData.contentType){case"icon":t=this.getContentIcon(e);break;case"image":t=this.getContentImage(e);break;case"html":t=this.getContentHtml(e);break;case"viewInWidget":t=this.getContentViewInWidget(e);break;default:t=""}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{className:"colorPicker"===this.state.rxData.contentType?"vis-inventwo-widget-color-picker-wrapper":"",style:{height:"100%",width:"viewInWidget"===this.state.rxData.contentType?"100%":"",transform:"rotateZ(".concat(this.state.rxData.contentRotation,"deg)"),animation:this.getValueData(e).contentBlinkInterval>0?"blink ".concat(this.getValueData(e).contentBlinkInterval/1e3,"s infinite"):""},children:t})}buildCard(t,e){const a=this.getValueData(t);let o="";return void 0!==a.outerShadowColor&&null!==a.outerShadowColor&&(o+="".concat(this.state.rxData.outerShadowX,"px ").concat(this.state.rxData.outerShadowY,"px ").concat(this.state.rxData.outerShadowBlur,"px ").concat(this.state.rxData.outerShadowSize,"px ").concat(a.outerShadowColor)),void 0!==a.innerShadowColor&&null!==a.innerShadowColor&&(""!==o&&(o+=", "),o+="inset ".concat(this.state.rxData.innerShadowX,"px ").concat(this.state.rxData.innerShadowY,"px ").concat(this.state.rxData.innerShadowBlur,"px ").concat(this.state.rxData.innerShadowSize,"px ").concat(a.innerShadowColor)),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div",{style:{width:null===t?"100%":"",height:null===t?"100%":"",flex:null!==t?"0 0 ".concat(this.state.rxData.buttonSize,"px"):"",position:"relative",border:this.state.rxData.borderRadiusTopLeft,borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px")},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.Card,{className:"vis_rx_widget_card",sx:{background:a.background,borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px"),boxShadow:o,opacity:this.state.rxData.backgroundOpacity,position:"absolute",inset:0,borderColor:a.borderColor,borderTopWidth:"".concat(this.state.rxData.borderSizeTop,"px"),borderBottomWidth:"".concat(this.state.rxData.borderSizeBottom,"px"),borderLeftWidth:"".concat(this.state.rxData.borderSizeLeft,"px"),borderRightWidth:"".concat(this.state.rxData.borderSizeRight,"px"),borderStyle:this.state.rxData.borderStyle}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.Card,{sx:{cursor:"readonly"!==this.state.rxData.type?"pointer":"",background:"transparent",borderRadius:"".concat(this.state.rxData.borderRadiusTopLeft,"px ").concat(this.state.rxData.borderRadiusTopRight,"px ").concat(this.state.rxData.borderRadiusBottomRight,"px ").concat(this.state.rxData.borderRadiusBottomLeft,"px"),opacity:this.state.rxData.contentOpacity,position:"absolute",inset:0,color:"unset",boxShadow:"none"},onClick:e=>this.onClick(t,e),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_mui_material__WEBPACK_IMPORTED_MODULE_1__.CardContent,{sx:{boxSizing:"border-box",width:"100%",height:"100%"},style:{padding:"".concat(this.state.rxData.paddingTop,"px ").concat(this.state.rxData.paddingRight,"px ").concat(this.state.rxData.paddingBottom,"px ").concat(this.state.rxData.paddingLeft,"px")},children:e})})]},null!==t?t:"")}getSingleCard(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=this.getCardContent(t),a=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:this.state.rxData.flexDirection+(this.state.rxData.invertOrder?"-reverse":""),justifyContent:this.state.rxData.invertOrder&&"flex-start"===this.state.rxData.alignItems?"flex-end":this.state.rxData.invertOrder&&"flex-end"===this.state.rxData.alignItems?"flex-start":this.state.rxData.alignItems},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{style:{display:"flex",justifyContent:"column"===this.state.rxData.flexDirection?this.state.rxData.contentAlign:"",alignSelf:"row"===this.state.rxData.flexDirection?this.state.rxData.contentAlign:"",transform:"scaleX(".concat(this.state.rxData.contentMirror?-1:1,")"),height:"viewInWidget"===this.state.rxData.contentType?"100%":"",overflow:"hidden",margin:"".concat(this.state.rxData.contentMarginTop,"px ").concat(this.state.rxData.contentMarginRight,"px ").concat(this.state.rxData.contentMarginBottom,"px ").concat(this.state.rxData.contentMarginLeft,"px")},children:e}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div",{style:{textAlign:"column"===this.state.rxData.flexDirection?this.state.rxData.textAlign:"",alignSelf:"row"===this.state.rxData.flexDirection?this.state.rxData.textAlign:"",textDecoration:this.state.rxData.textDecoration,color:this.getValueData(t).textColor,margin:"".concat(this.state.rxData.textMarginTop,"px ").concat(this.state.rxData.textMarginRight,"px ").concat(this.state.rxData.textMarginBottom,"px ").concat(this.state.rxData.textMarginLeft,"px")},dangerouslySetInnerHTML:{__html:this.getValueData(t).text}})]});return this.buildCard(t,a)}}const __WEBPACK_DEFAULT_EXPORT__=(0,_mui_styles__WEBPACK_IMPORTED_MODULE_3__.withStyles)(styles)(InventwoWidgetUniversal)}}]);
|
|
2
|
-
//# sourceMappingURL=src_InventwoWidgetUniversal_jsx-src_assets_inventwo_css.193fa3d0.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_lib_iro_min_js-node_modules_react_jsx-runtime_js-src_assets_inventwo_css.17ab2e15.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_lib_iro_min_js-node_modules_react_jsx-runtime_js-src_assets_inventwo_css","node_modules_react_jsx-runtime_js-_c9180","node_modules_react_jsx-runtime_js-_c9181"],{82782:function(e){e.exports=function(){"use strict";var e,t,n,r,i,o={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function a(e,t){for(var n in t)e[n]=t[n];return e}function u(e){var t=e.parentNode;t&&t.removeChild(e)}function c(e,t,n){var r,i,o,s,l=arguments;if(t=a({},t),3<arguments.length)for(n=[n],r=3;r<arguments.length;r++)n.push(l[r]);if(null!=n&&(t.children=n),null!=e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===t[i]&&(t[i]=e.defaultProps[i]);return s=t.key,null!=(o=t.ref)&&delete t.ref,null!=s&&delete t.key,h(e,t,s,o)}function h(t,n,r,i){var o={type:t,props:n,key:r,ref:i,n:null,i:null,e:0,o:null,l:null,c:null,constructor:void 0};return e.vnode&&e.vnode(o),o}function d(e){return e.children}function f(e,t){this.props=e,this.context=t}function p(e,t){if(null==t)return e.i?p(e.i,e.i.n.indexOf(e)+1):null;for(var n;t<e.n.length;t++)if(null!=(n=e.n[t])&&null!=n.o)return n.o;return"function"==typeof e.type?p(e):null}function v(e){var t,n;if(null!=(e=e.i)&&null!=e.c){for(e.o=e.c.base=null,t=0;t<e.n.length;t++)if(null!=(n=e.n[t])&&null!=n.o){e.o=e.c.base=n.o;break}return v(e)}}function g(i){(!i.f&&(i.f=!0)&&1===t.push(i)||r!==e.debounceRendering)&&(r=e.debounceRendering,(e.debounceRendering||n)(y))}function y(){var e,n,r,i,o,s,l,u;for(t.sort((function(e,t){return t.d.e-e.d.e}));e=t.pop();)e.f&&(i=r=void 0,s=(o=(n=e).d).o,l=n.p,u=n.u,n.u=!1,l&&(r=[],i=S(l,o,a({},o),n.w,void 0!==l.ownerSVGElement,null,r,u,null==s?p(o):s),E(r,o),i!=s&&v(o)))}function b(e,t,n,r,i,l,a,c,h){var d,f,v,g,y,b,x,w=n&&n.n||s,k=w.length;if(c==o&&(c=null!=l?l[0]:k?p(n,0):null),d=0,t.n=m(t.n,(function(n){if(null!=n){if(n.i=t,n.e=t.e+1,null===(v=w[d])||v&&n.key==v.key&&n.type===v.type)w[d]=void 0;else for(f=0;f<k;f++){if((v=w[f])&&n.key==v.key&&n.type===v.type){w[f]=void 0;break}v=null}if(g=S(e,n,v=v||o,r,i,l,a,null,c,h),(f=n.ref)&&v.ref!=f&&(x=x||[]).push(f,n.c||g,n),null!=g){if(null==b&&(b=g),null!=n.l)g=n.l,n.l=null;else if(l==v||g!=c||null==g.parentNode){e:if(null==c||c.parentNode!==e)e.appendChild(g);else{for(y=c,f=0;(y=y.nextSibling)&&f<k;f+=2)if(y==g)break e;e.insertBefore(g,c)}"option"==t.type&&(e.value="")}c=g.nextSibling,"function"==typeof t.type&&(t.l=g)}}return d++,n})),t.o=b,null!=l&&"function"!=typeof t.type)for(d=l.length;d--;)null!=l[d]&&u(l[d]);for(d=k;d--;)null!=w[d]&&_(w[d],w[d]);if(x)for(d=0;d<x.length;d++)j(x[d],x[++d],x[++d])}function m(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)m(e[r],t,n);else n.push(t?t(function(e){if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return h(null,e,null,null);if(null==e.o&&null==e.c)return e;var t=h(e.type,e.props,e.key,null);return t.o=e.o,t}(e)):e);return n}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===l.test(t)?n+"px":null==n?"":n}function w(e,t,n,r,i){var o,s,l,a,u;if("key"===(t=i?"className"===t?"class":t:"class"===t?"className":t)||"children"===t);else if("style"===t)if(o=e.style,"string"==typeof n)o.cssText=n;else{if("string"==typeof r&&(o.cssText="",r=null),r)for(s in r)n&&s in n||x(o,s,"");if(n)for(l in n)r&&n[l]===r[l]||x(o,l,n[l])}else"o"===t[0]&&"n"===t[1]?(a=t!==(t=t.replace(/Capture$/,"")),t=((u=t.toLowerCase())in e?u:t).slice(2),n?(r||e.addEventListener(t,k,a),(e.t||(e.t={}))[t]=n):e.removeEventListener(t,k,a)):"list"!==t&&"tagName"!==t&&"form"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n))}function k(t){return this.t[t.type](e.event?e.event(t):t)}function S(t,n,r,i,l,u,c,h,p,v){var g,y,x,k,S,E,j,_,O,R,T=n.type;if(void 0!==n.constructor)return null;(g=e.e)&&g(n);try{e:if("function"==typeof T){if(_=n.props,O=(g=T.contextType)&&i[g.c],R=g?O?O.props.value:g.i:i,r.c?j=(y=n.c=r.c).i=y.k:("prototype"in T&&T.prototype.render?n.c=y=new T(_,R):(n.c=y=new f(_,R),y.constructor=T,y.render=C),O&&O.sub(y),y.props=_,y.state||(y.state={}),y.context=R,y.w=i,x=y.f=!0,y.m=[]),null==y.j&&(y.j=y.state),null!=T.getDerivedStateFromProps&&a(y.j==y.state?y.j=a({},y.j):y.j,T.getDerivedStateFromProps(_,y.j)),x)null==T.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&c.push(y);else{if(null==T.getDerivedStateFromProps&&null==h&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(_,R),!h&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(_,y.j,R)){for(y.props=_,y.state=y.j,y.f=!1,(y.d=n).o=null!=p?p!==r.o?p:r.o:null,n.n=r.n,g=0;g<n.n.length;g++)n.n[g]&&(n.n[g].i=n);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(_,y.j,R)}for(k=y.props,S=y.state,y.context=R,y.props=_,y.state=y.j,(g=e.M)&&g(n),y.f=!1,y.d=n,y.p=t,g=y.render(y.props,y.state,y.context),n.n=m(null!=g&&g.type==d&&null==g.key?g.props.children:g),null!=y.getChildContext&&(i=a(a({},i),y.getChildContext())),x||null==y.getSnapshotBeforeUpdate||(E=y.getSnapshotBeforeUpdate(k,S)),b(t,n,r,i,l,u,c,p,v),y.base=n.o;g=y.m.pop();)y.j&&(y.state=y.j),g.call(y);x||null==k||null==y.componentDidUpdate||y.componentDidUpdate(k,S,E),j&&(y.k=y.i=null)}else n.o=function(e,t,n,r,i,l,a,u){var c,h,d,f,p=n.props,v=t.props;if(i="svg"===t.type||i,null==e&&null!=l)for(c=0;c<l.length;c++)if(null!=(h=l[c])&&(null===t.type?3===h.nodeType:h.localName===t.type)){e=h,l[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),l=null}return null===t.type?p!==v&&(null!=l&&(l[l.indexOf(e)]=null),e.data=v):t!==n&&(null!=l&&(l=s.slice.call(e.childNodes)),d=(p=n.props||o).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,u||(f||d)&&(f&&d&&f.O==d.O||(e.innerHTML=f&&f.O||"")),function(e,t,n,r,i){var o;for(o in n)o in t||w(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"value"===o||"checked"===o||n[o]===t[o]||w(e,o,t[o],n[o],r)}(e,v,p,i,u),t.n=t.props.children,f||b(e,t,n,r,"foreignObject"!==t.type&&i,l,a,o,u),u||("value"in v&&void 0!==v.value&&v.value!==e.value&&(e.value=null==v.value?"":v.value),"checked"in v&&void 0!==v.checked&&v.checked!==e.checked&&(e.checked=v.checked))),e}(r.o,n,r,i,l,u,c,v);(g=e.diffed)&&g(n)}catch(t){e.o(t,n,r)}return n.o}function E(t,n){for(var r;r=t.pop();)try{r.componentDidMount()}catch(t){e.o(t,r.d)}e.c&&e.c(n)}function j(t,n,r){try{"function"==typeof t?t(n):t.current=n}catch(t){e.o(t,r)}}function _(t,n,r){var i,o,s;if(e.unmount&&e.unmount(t),(i=t.ref)&&j(i,null,n),r||"function"==typeof t.type||(r=null!=(o=t.o)),t.o=t.l=null,null!=(i=t.c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){e.o(t,n)}i.base=i.p=null}if(i=t.n)for(s=0;s<i.length;s++)i[s]&&_(i[s],n,r);null!=o&&u(o)}function C(e,t,n){return this.constructor(e,n)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(){return(R=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}e={},f.prototype.setState=function(e,t){var n=this.j!==this.state&&this.j||(this.j=a({},this.state));"function"==typeof e&&!(e=e(n,this.props))||a(n,e),null!=e&&this.d&&(this.u=!1,t&&this.m.push(t),g(this))},f.prototype.forceUpdate=function(e){this.d&&(e&&this.m.push(e),this.u=!0,g(this))},f.prototype.render=d,t=[],n="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,r=e.debounceRendering,e.o=function(e,t,n){for(var r;t=t.i;)if((r=t.c)&&!r.i)try{if(r.constructor&&null!=r.constructor.getDerivedStateFromError)r.setState(r.constructor.getDerivedStateFromError(e));else{if(null==r.componentDidCatch)continue;r.componentDidCatch(e)}return g(r.k=r)}catch(t){e=t}throw e},i=o;var T="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",A="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",M="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",I=new RegExp("rgb"+A),P=new RegExp("rgba"+M),D=new RegExp("hsl"+A),N=new RegExp("hsla"+M),H="^(?:#?|0x?)",$="([0-9a-fA-F]{1})",W="([0-9a-fA-F]{2})",L=new RegExp(H+$+$+$+"$"),U=new RegExp(H+$+$+$+$+"$"),z=new RegExp(H+W+W+W+"$"),F=new RegExp(H+W+W+W+W+"$"),B=Math.log,q=Math.round,V=Math.floor;function G(e,t,n){return Math.min(Math.max(e,t),n)}function K(e,t){var n=-1<e.indexOf("%"),r=parseFloat(e);return n?t/100*r:r}function Y(e){return parseInt(e,16)}function X(e){return e.toString(16).padStart(2,"0")}var Z=function(){function e(e,t){this.$={h:0,s:0,v:0,a:1},e&&this.set(e),this.onChange=t,this.initialValue=R({},this.$)}var t=e.prototype;return t.set=function(t){if("string"==typeof t)/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(t)?this.hexString=t:/^rgba?/.test(t)?this.rgbString=t:/^hsla?/.test(t)&&(this.hslString=t);else{if("object"!=typeof t)throw new Error("Invalid color value");t instanceof e?this.hsva=t.hsva:"r"in t&&"g"in t&&"b"in t?this.rgb=t:"h"in t&&"s"in t&&"v"in t?this.hsv=t:"h"in t&&"s"in t&&"l"in t?this.hsl=t:"kelvin"in t&&(this.kelvin=t.kelvin)}},t.setChannel=function(e,t,n){var r;this[e]=R({},this[e],((r={})[t]=n,r))},t.reset=function(){this.hsva=this.initialValue},t.clone=function(){return new e(this)},t.unbind=function(){this.onChange=void 0},e.hsvToRgb=function(e){var t=e.h/60,n=e.s/100,r=e.v/100,i=V(t),o=t-i,s=r*(1-n),l=r*(1-o*n),a=r*(1-(1-o)*n),u=i%6,c=[a,r,r,l,s,s][u],h=[s,s,a,r,r,l][u];return{r:G(255*[r,l,s,s,a,r][u],0,255),g:G(255*c,0,255),b:G(255*h,0,255)}},e.rgbToHsv=function(e){var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),s=i-o,l=0,a=i,u=0===i?0:s/i;switch(i){case o:l=0;break;case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;case r:l=(t-n)/s+4}return{h:60*l%360,s:G(100*u,0,100),v:G(100*a,0,100)}},e.hsvToHsl=function(e){var t=e.s/100,n=e.v/100,r=(2-t)*n,i=r<=1?r:2-r,o=i<1e-9?0:t*n/i;return{h:e.h,s:G(100*o,0,100),l:G(50*r,0,100)}},e.hslToHsv=function(e){var t=2*e.l,n=e.s*(t<=100?t:200-t)/100,r=t+n<1e-9?0:2*n/(t+n);return{h:e.h,s:G(100*r,0,100),v:G((t+n)/2,0,100)}},e.kelvinToRgb=function(e){var t,n,r,i=e/100;return r=i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*B(n),i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*B(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*B(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*B(n),255),{r:G(V(t),0,255),g:G(V(n),0,255),b:G(V(r),0,255)}},e.rgbToKelvin=function(t){for(var n,r=t.r,i=t.b,o=2e3,s=4e4;.4<s-o;){var l=e.kelvinToRgb(n=.5*(s+o));l.b/l.r>=i/r?s=n:o=n}return n},function(e,t,n){t&&O(e.prototype,t),n&&O(e,n)}(e,[{key:"hsv",get:function(){var e=this.$;return{h:e.h,s:e.s,v:e.v}},set:function(e){var t=this.$;if(e=R({},t,e),this.onChange){var n={h:!1,v:!1,s:!1,a:!1};for(var r in t)n[r]=e[r]!=t[r];this.$=e,(n.h||n.s||n.v||n.a)&&this.onChange(this,n)}else this.$=e}},{key:"hsva",get:function(){return R({},this.$)},set:function(e){this.hsv=e}},{key:"hue",get:function(){return this.$.h},set:function(e){this.hsv={h:e}}},{key:"saturation",get:function(){return this.$.s},set:function(e){this.hsv={s:e}}},{key:"value",get:function(){return this.$.v},set:function(e){this.hsv={v:e}}},{key:"alpha",get:function(){return this.$.a},set:function(e){this.hsv=R({},this.hsv,{a:e})}},{key:"kelvin",get:function(){return e.rgbToKelvin(this.rgb)},set:function(t){this.rgb=e.kelvinToRgb(t)}},{key:"red",get:function(){return this.rgb.r},set:function(e){this.rgb=R({},this.rgb,{r:e})}},{key:"green",get:function(){return this.rgb.g},set:function(e){this.rgb=R({},this.rgb,{g:e})}},{key:"blue",get:function(){return this.rgb.b},set:function(e){this.rgb=R({},this.rgb,{b:e})}},{key:"rgb",get:function(){var t=e.hsvToRgb(this.$),n=t.r,r=t.g,i=t.b;return{r:q(n),g:q(r),b:q(i)}},set:function(t){this.hsv=R({},e.rgbToHsv(t),{a:void 0===t.a?1:t.a})}},{key:"rgba",get:function(){return R({},this.rgb,{a:this.alpha})},set:function(e){this.rgb=e}},{key:"hsl",get:function(){var t=e.hsvToHsl(this.$),n=t.h,r=t.s,i=t.l;return{h:q(n),s:q(r),l:q(i)}},set:function(t){this.hsv=R({},e.hslToHsv(t),{a:void 0===t.a?1:t.a})}},{key:"hsla",get:function(){return R({},this.hsl,{a:this.alpha})},set:function(e){this.hsl=e}},{key:"rgbString",get:function(){var e=this.rgb;return"rgb("+e.r+", "+e.g+", "+e.b+")"},set:function(e){var t,n,r,i,o=1;if((t=I.exec(e))?(n=K(t[1],255),r=K(t[2],255),i=K(t[3],255)):(t=P.exec(e))&&(n=K(t[1],255),r=K(t[2],255),i=K(t[3],255),o=K(t[4],1)),!t)throw new Error("Invalid rgb string");this.rgb={r:n,g:r,b:i,a:o}}},{key:"rgbaString",get:function(){var e=this.rgba;return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},set:function(e){this.rgbString=e}},{key:"hexString",get:function(){var e=this.rgb;return"#"+X(e.r)+X(e.g)+X(e.b)},set:function(e){var t,n,r,i,o=255;if((t=L.exec(e))?(n=17*Y(t[1]),r=17*Y(t[2]),i=17*Y(t[3])):(t=U.exec(e))?(n=17*Y(t[1]),r=17*Y(t[2]),i=17*Y(t[3]),o=17*Y(t[4])):(t=z.exec(e))?(n=Y(t[1]),r=Y(t[2]),i=Y(t[3])):(t=F.exec(e))&&(n=Y(t[1]),r=Y(t[2]),i=Y(t[3]),o=Y(t[4])),!t)throw new Error("Invalid hex string");this.rgb={r:n,g:r,b:i,a:o/255}}},{key:"hex8String",get:function(){var e=this.rgba;return"#"+X(e.r)+X(e.g)+X(e.b)+X(V(255*e.a))},set:function(e){this.hexString=e}},{key:"hslString",get:function(){var e=this.hsl;return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},set:function(e){var t,n,r,i,o=1;if((t=D.exec(e))?(n=K(t[1],360),r=K(t[2],100),i=K(t[3],100)):(t=N.exec(e))&&(n=K(t[1],360),r=K(t[2],100),i=K(t[3],100),o=K(t[4],1)),!t)throw new Error("Invalid hsl string");this.hsl={h:n,s:r,l:i,a:o}}},{key:"hslaString",get:function(){var e=this.hsla;return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},set:function(e){this.hslString=e}}]),e}();function J(e){var t,n=e.width,r=e.sliderSize,i=e.borderWidth,o=e.handleRadius,s=e.padding,l=e.sliderShape,a="horizontal"===e.layoutDirection;return r=null!=(t=r)?t:2*s+2*o,"circle"===l?{handleStart:e.padding+e.handleRadius,handleRange:n-2*s-2*o,width:n,height:n,cx:n/2,cy:n/2,radius:n/2-i/2}:{handleStart:r/2,handleRange:n-r,radius:r/2,x:0,y:0,width:a?r:n,height:a?n:r}}function Q(e,t){var n=J(e),r=n.width,i=n.height,o=n.handleRange,s=n.handleStart,l="horizontal"===e.layoutDirection,a=l?r/2:i/2,u=s+function(e,t){var n=t.hsva,r=t.rgb;switch(e.sliderType){case"red":return r.r/2.55;case"green":return r.g/2.55;case"blue":return r.b/2.55;case"alpha":return 100*n.a;case"kelvin":var i=e.minTemperature,o=e.maxTemperature-i,s=(t.kelvin-i)/o*100;return Math.max(0,Math.min(s,100));case"hue":return n.h/=3.6;case"saturation":return n.s;default:return n.v}}(e,t)/100*o;return l&&(u=-1*u+o+2*s),{x:l?a:u,y:l?u:a}}var ee,te=2*Math.PI,ne=function(e,t){return(e%t+t)%t},re=function(e,t){return Math.sqrt(e*e+t*t)};function ie(e){return e.width/2-e.padding-e.handleRadius-e.borderWidth}function oe(e){var t=e.width/2;return{width:e.width,radius:t-e.borderWidth,cx:t,cy:t}}function se(e,t,n){var r=e.wheelAngle,i=e.wheelDirection;return n&&"clockwise"===i?t=r+t:"clockwise"===i?t=360-r+t:n&&"anticlockwise"===i?t=r+180-t:"anticlockwise"===i&&(t=r-t),ne(t,360)}function le(e,t,n){var r=oe(e),i=r.cx,o=r.cy,s=ie(e);t=i-t,n=o-n;var l=se(e,Math.atan2(-n,-t)*(360/te)),a=Math.min(re(t,n),s);return{h:Math.round(l),s:Math.round(100/s*a)}}function ae(e){var t=e.width,n=e.boxHeight;return{width:t,height:null!=n?n:t,radius:e.padding+e.handleRadius}}function ue(e,t,n){var r=ae(e),i=r.width,o=r.height,s=r.radius,l=(t-s)/(i-2*s)*100,a=(n-s)/(o-2*s)*100;return{s:Math.max(0,Math.min(l,100)),v:Math.max(0,Math.min(100-a,100))}}function ce(e,t,n,r){for(var i=0;i<r.length;i++){var o=r[i].x-t,s=r[i].y-n;if(Math.sqrt(o*o+s*s)<e.handleRadius)return i}return null}function he(e){return{boxSizing:"border-box",border:e.borderWidth+"px solid "+e.borderColor}}function de(e,t,n){return e+"-gradient("+t+", "+n.map((function(e){var t=e[0];return e[1]+" "+t+"%"})).join(",")+")"}function fe(e){return"string"==typeof e?e:e+"px"}var pe=["mousemove","touchmove","mouseup","touchend"],ve=function(e){function t(t){e.call(this,t),this.uid=(Math.random()+1).toString(36).substring(5)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.render=function(e){var t=this.handleEvent.bind(this),n={onMouseDown:t,ontouchstart:t},r="horizontal"===e.layoutDirection,i=null===e.margin?e.sliderMargin:e.margin,o={overflow:"visible",display:r?"inline-block":"block"};return 0<e.index&&(o[r?"marginLeft":"marginTop"]=i),c(d,null,e.children(this.uid,n,o))},t.prototype.handleEvent=function(e){var t=this,n=this.props.onInput,r=this.base.getBoundingClientRect();e.preventDefault();var i=e.touches?e.changedTouches[0]:e,o=i.clientX-r.left,s=i.clientY-r.top;switch(e.type){case"mousedown":case"touchstart":!1!==n(o,s,0)&&pe.forEach((function(e){document.addEventListener(e,t,{passive:!1})}));break;case"mousemove":case"touchmove":n(o,s,1);break;case"mouseup":case"touchend":n(o,s,2),pe.forEach((function(e){document.removeEventListener(e,t,{passive:!1})}))}},t}(f);function ge(e){var t=e.r,n=e.url,r=t,i=t;return c("svg",{className:"IroHandle IroHandle--"+e.index+" "+(e.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+fe(e.x)+", "+fe(e.y)+")",willChange:"transform",top:fe(-t),left:fe(-t),width:fe(2*t),height:fe(2*t),position:"absolute",overflow:"visible"}},n&&c("use",Object.assign({xlinkHref:function(e){ee=ee||document.getElementsByTagName("base");var t=window.navigator.userAgent,n=/^((?!chrome|android).)*safari/i.test(t),r=/iPhone|iPod|iPad/i.test(t),i=window.location;return(n||r)&&0<ee.length?i.protocol+"//"+i.host+i.pathname+i.search+e:e}(n)},e.props)),!n&&c("circle",{cx:r,cy:i,r:t,fill:"none","stroke-width":2,stroke:"#000"}),!n&&c("circle",{cx:r,cy:i,r:t-2,fill:e.fill,"stroke-width":2,stroke:"#fff"}))}function ye(e){var t=e.activeIndex,n=void 0!==t&&t<e.colors.length?e.colors[t]:e.color,r=J(e),i=r.width,o=r.height,s=r.radius,l=Q(e,n),a=function(e,t){var n=t.hsv,r=t.rgb;switch(e.sliderType){case"red":return[[0,"rgb(0,"+r.g+","+r.b+")"],[100,"rgb(255,"+r.g+","+r.b+")"]];case"green":return[[0,"rgb("+r.r+",0,"+r.b+")"],[100,"rgb("+r.r+",255,"+r.b+")"]];case"blue":return[[0,"rgb("+r.r+","+r.g+",0)"],[100,"rgb("+r.r+","+r.g+",255)"]];case"alpha":return[[0,"rgba("+r.r+","+r.g+","+r.b+",0)"],[100,"rgb("+r.r+","+r.g+","+r.b+")"]];case"kelvin":for(var i=[],o=e.minTemperature,s=e.maxTemperature,l=s-o,a=o,u=0;a<s;a+=l/8,u+=1){var c=Z.kelvinToRgb(a),h=c.r,d=c.g,f=c.b;i.push([12.5*u,"rgb("+h+","+d+","+f+")"])}return i;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var p=Z.hsvToHsl({h:n.h,s:0,v:n.v}),v=Z.hsvToHsl({h:n.h,s:100,v:n.v});return[[0,"hsl("+p.h+","+p.s+"%,"+p.l+"%)"],[100,"hsl("+v.h+","+v.s+"%,"+v.l+"%)"]];default:var g=Z.hsvToHsl({h:n.h,s:n.s,v:100});return[[0,"#000"],[100,"hsl("+g.h+","+g.s+"%,"+g.l+"%)"]]}}(e,n);return c(ve,Object.assign({},e,{onInput:function(t,r,i){var o=function(e,t,n){var r,i=J(e),o=i.handleRange,s=i.handleStart;r="horizontal"===e.layoutDirection?-1*n+o+s:t-s,r=Math.max(Math.min(r,o),0);var l=Math.round(100/o*r);switch(e.sliderType){case"kelvin":var a=e.minTemperature;return a+l/100*(e.maxTemperature-a);case"alpha":return l/100;case"hue":return 3.6*l;case"red":case"blue":case"green":return 2.55*l;default:return l}}(e,t,r);e.parent.inputActive=!0,n[e.sliderType]=o,e.onInput(i,e.id)}}),(function(t,r,u){return c("div",Object.assign({},r,{className:"IroSlider",style:Object.assign({},{position:"relative",width:fe(i),height:fe(o),borderRadius:fe(s),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},u)}),c("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:fe(s),background:de("linear","horizontal"===e.layoutDirection?"to top":"to right",a)},he(e))}),c(ge,{isActive:!0,index:n.index,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:l.x,y:l.y}))}))}function be(e){var t=ae(e),n=t.width,r=t.height,i=t.radius,o=e.colors,s=e.parent,l=e.activeIndex,a=void 0!==l&&l<e.colors.length?e.colors[l]:e.color,u=function(e,t){return[[[0,"#fff"],[100,"hsl("+t.hue+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}(0,a),h=o.map((function(t){return function(e,t){var n=ae(e),r=n.width,i=n.height,o=n.radius,s=t.hsv,l=o,a=r-2*o,u=i-2*o;return{x:l+s.s/100*a,y:l+(u-s.v/100*u)}}(e,t)}));return c(ve,Object.assign({},e,{onInput:function(t,n,r){if(0===r){var i=ce(e,t,n,h);null!==i?s.setActiveColor(i):(s.inputActive=!0,a.hsv=ue(e,t,n),e.onInput(r,e.id))}else 1===r&&(s.inputActive=!0,a.hsv=ue(e,t,n));e.onInput(r,e.id)}}),(function(t,s,l){return c("div",Object.assign({},s,{className:"IroBox",style:Object.assign({},{width:fe(n),height:fe(r),position:"relative"},l)}),c("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:fe(i)},he(e),{background:de("linear","to bottom",u[1])+","+de("linear","to right",u[0])})}),o.filter((function(e){return e!==a})).map((function(t){return c(ge,{isActive:!1,index:t.index,fill:t.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:h[t.index].x,y:h[t.index].y})})),c(ge,{isActive:!0,index:a.index,fill:a.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:h[a.index].x,y:h[a.index].y}))}))}function me(e){var t=oe(e).width,n=e.colors,r=(e.borderWidth,e.parent),i=e.color,o=i.hsv,s=n.map((function(t){return function(e,t){var n=t.hsv,r=oe(e),i=r.cx,o=r.cy,s=ie(e),l=(180+se(e,n.h,!0))*(te/360),a=n.s/100*s,u="clockwise"===e.wheelDirection?-1:1;return{x:i+a*Math.cos(l)*u,y:o+a*Math.sin(l)*u}}(e,t)})),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};return c(ve,Object.assign({},e,{onInput:function(t,n,o){if(0===o){if(!function(e,t,n){var r=oe(e),i=r.cx,o=r.cy,s=e.width/2;return re(i-t,o-n)<s}(e,t,n))return!1;var l=ce(e,t,n,s);null!==l?r.setActiveColor(l):(r.inputActive=!0,i.hsv=le(e,t,n),e.onInput(o,e.id))}else 1===o&&(r.inputActive=!0,i.hsv=le(e,t,n));e.onInput(o,e.id)}}),(function(r,a,u){return c("div",Object.assign({},a,{className:"IroWheel",style:Object.assign({},{width:fe(t),height:fe(t),position:"relative"},u)}),c("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(e.wheelAngle+90)+"deg)",background:"clockwise"===e.wheelDirection?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)"})}),c("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),e.wheelLightness&&c("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-o.v/100})}),c("div",{className:"IroWheelBorder",style:Object.assign({},l,he(e))}),n.filter((function(e){return e!==i})).map((function(t){return c(ge,{isActive:!1,index:t.index,fill:t.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:s[t.index].x,y:s[t.index].y})})),c(ge,{isActive:!0,index:i.index,fill:i.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:s[i.index].x,y:s[i.index].y}))}))}ge.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}},ye.defaultProps=Object.assign({},{sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3});var xe=function(e){function t(t){var n=this;e.call(this,t),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=t.id,(0<t.colors.length?t.colors:[t.color]).forEach((function(e){return n.addColor(e)})),this.setActiveColor(0),this.state=Object.assign({},t,{color:this.color,colors:this.colors,layout:t.layout})}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.addColor=function(e,t){void 0===t&&(t=this.colors.length);var n=new Z(e,this.onColorChange.bind(this));this.colors.splice(t,0,n),this.colors.forEach((function(e,t){return e.index=t})),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",n)},t.prototype.removeColor=function(e){var t=this.colors.splice(e,1)[0];t.unbind(),this.colors.forEach((function(e,t){return e.index=t})),this.state&&this.setState({colors:this.colors}),t.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",t)},t.prototype.setActiveColor=function(e){this.color=this.colors[e],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},t.prototype.setColors=function(e,t){var n=this;void 0===t&&(t=0),this.colors.forEach((function(e){return e.unbind()})),this.colors=[],e.forEach((function(e){return n.addColor(e)})),this.setActiveColor(t),this.emit("color:setAll",this.colors)},t.prototype.on=function(e,t){var n=this,r=this.events;(Array.isArray(e)?e:[e]).forEach((function(e){(r[e]||(r[e]=[])).push(t),n.deferredEvents[e]&&(n.deferredEvents[e].forEach((function(e){t.apply(null,e)})),n.deferredEvents[e]=[])}))},t.prototype.off=function(e,t){var n=this;(Array.isArray(e)?e:[e]).forEach((function(e){var r=n.events[e];r&&r.splice(r.indexOf(t),1)}))},t.prototype.emit=function(e){for(var t=this,n=[],r=arguments.length-1;0<r--;)n[r]=arguments[r+1];var i=this.activeEvents;i.hasOwnProperty(e)&&i[e]||(i[e]=!0,(this.events[e]||[]).forEach((function(e){return e.apply(t,n)})),i[e]=!1)},t.prototype.deferredEmit=function(e){for(var t,n=[],r=arguments.length-1;0<r--;)n[r]=arguments[r+1];var i=this.deferredEvents;(t=this).emit.apply(t,[e].concat(n)),(i[e]||(i[e]=[])).push(n)},t.prototype.setOptions=function(e){this.setState(e)},t.prototype.resize=function(e){this.setOptions({width:e})},t.prototype.reset=function(){this.colors.forEach((function(e){return e.reset()})),this.setState({colors:this.colors})},t.prototype.onMount=function(e){this.el=e,this.deferredEmit("mount",this)},t.prototype.onColorChange=function(e,t){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",e,t)),this.emit("color:change",e,t)},t.prototype.emitInputEvent=function(e,t){0===e?this.emit("input:start",this.color,t):1===e?this.emit("input:move",this.color,t):2===e&&this.emit("input:end",this.color,t)},t.prototype.render=function(e,t){var n=this,r=t.layout;return Array.isArray(r)||(r=[{component:me},{component:ye}],t.transparency&&r.push({component:ye,options:{sliderType:"alpha"}})),c("div",{class:"IroColorPicker",id:t.id,style:{display:t.display}},r.map((function(e,r){var i=e.component,o=e.options;return c(i,Object.assign({},t,o,{ref:void 0,onInput:n.emitInputEvent.bind(n),parent:n,index:r}))})))},t}(f);xe.defaultProps=Object.assign({},{width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},{colors:[],display:"block",id:null,layout:"default",margin:null});var we,ke,Se,Ee,je=(_e.prototype=(we=xe).prototype,Object.assign(_e,we),_e.I=we,_e);function _e(t,n){var r,l=document.createElement("div");function a(){var e=t instanceof Element?t:document.querySelector(t);e.appendChild(r.base),r.onMount(e)}return function(t,n,r){var l,a,u;e.i&&e.i(t,n),a=(l=r===i)?null:r&&r.n||n.n,t=c(d,null,[t]),u=[],S(n,l?n.n=t:(r||n).n=t,a||o,o,void 0!==n.ownerSVGElement,r&&!l?[r]:a?null:s.slice.call(n.childNodes),u,!1,r||o,l),E(u,t)}(c(we,Object.assign({},{ref:function(e){return r=e}},n)),l),"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a),r}return(Se=ke=ke||{}).version="5.5.2",Se.Color=Z,Se.ColorPicker=je,(Ee=Se.ui||(Se.ui={})).h=c,Ee.ComponentBase=ve,Ee.Handle=ge,Ee.Slider=ye,Ee.Wheel=me,Ee.Box=be,ke}()},51153:(e,t,n)=>{"use strict";var r=n(28437),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!a.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:l.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},70579:(e,t,n)=>{"use strict";e.exports=n(51153)},14915:()=>{}}]);
|
|
3
|
-
//# sourceMappingURL=src_lib_iro_min_js-node_modules_react_jsx-runtime_js-src_assets_inventwo_css.17ab2e15.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["src_translations_js"],{5850:(t,e,o)=>{o.r(e),o.d(e,{default:()=>i});const i={en:o(75553),de:o(46477),ru:o(63715),pt:o(74606),nl:o(86164),fr:o(74554),it:o(66851),es:o(72706),pl:o(23638),"zh-cn":o(80222)}},46477:t=>{t.exports={}},75553:t=>{t.exports=JSON.parse('{"vis_2_widgets_set_inventwo":"inventwo Widgets","vis_2_widgets_template_oid":"Objekt ID","vis_2_widgets_template_private":"Private","vis_2_widgets_template_type":"Type","vis_2_widgets_inventwo_widget_universal":"Universal","vis_2_widgets_inventwo_widget_slider":"Slider","vis_2_widgets_inventwo_widget_switch":"Switch","vis_2_widgets_inventwo_attr_group_css":"inventwo Widget Design","vis_2_widgets_inventwo_attr_group_click_feedback":"Click feedback","vis_2_widgets_inventwo_attr_group_states":"State","vis_2_widgets_inventwo_attr_group_state_default":"Default state","vis_2_widgets_inventwo_attr_group_type_view_in_dialog":"Type - View in dialog","vis_2_widgets_inventwo_attr_content_color_picker":"Widget content - Color picker","vis_2_widgets_inventwo_attr_group_css_text":"inventwo CSS - Text","vis_2_widgets_inventwo_attr_group_css_content":"inventwo CSS - Content","vis_2_widgets_inventwo_attr_group_css_alignment":"inventwo CSS - Alignment","vis_2_widgets_inventwo_attr_group_css_transparency":"inventwo CSS - Transparency","vis_2_widgets_inventwo_attr_group_css_spacing":"inventwo CSS - Spacing","vis_2_widgets_inventwo_attr_group_css_border_radius":"inventwo CSS - Border radius","vis_2_widgets_inventwo_attr_group_css_border":"inventwo CSS - Border","vis_2_widgets_inventwo_attr_group_css_outer_shadow":"inventwo CSS - Outer shadow","vis_2_widgets_inventwo_attr_group_css_inner_shadow":"inventwo CSS - Inner shadow","vis_2_widgets_inventwo_attr_group_css_slider_track":"inventwo CSS - Slider track","vis_2_widgets_inventwo_attr_group_css_slider_slider_thumb":"inventwo CSS - Slider thumb","vis_2_widgets_inventwo_attr_group_css_track":"inventwo CSS - Track","vis_2_widgets_inventwo_attr_group_css_thumb":"inventwo CSS - Thumb","colors":"Colors","oid":"Object ID","min_value":"Min value","max_value":"Max value","step":"Step","horizontal":"Horizontal","vertical":"Vertical","orientation":"Orientation","slider_rail_color":"Slider rail color","slider_rail_active_color":"Slider rail active color","normal":"Normal","inverted":"Inverted","none":"None","track_bar_type":"Track bar type","track_width":"Track width","track_border_radius":"Track border radius","x_offset":"X offset","y_offset":"Y offset","blur":"Blur","size":"Size","shadow_color":"Shadow color","slider_thumb_color":"Slider thumb color","thumbSize":"ThumbSize","thumb_border_radius":"Thumb border radius","switch":"Switch","button":"Button","nav":"Nav","read_only":"Read only","view_in_dialog":"View in dialog","type":"Type","mode":"Mode","row":"Row","column":"Column","direction":"Direction","view":"View","value_false":"Value false","value_true":"Value true","dialog_title":"Dialog title","button_size":"Button size","button_spacing":"Button spacing","count_states":"Count states","dialog_fullscreen":"Dialog fullscreen","dialog_width":"Dialog width","dialog_height":"Dialog height","text":"Text","icon":"Icon","image":"Image","text_html":"Text html","view_in_widget":"View in widget","content_color":"Content color","text_color":"Text color","border_color":"Border color","outer_shadow_color":"Outer shadow color","inner_shadow_color":"Inner shadow color","value":"Value","text_true":"Text true","icon_true":"Icon true","image_true":"Image true","text_html_true":"Text html true","view_in_widget_true":"View in widget true","content_color_true":"Content color true","background color":"Background color","background_true":"Background true","hex":"Hex","hex_8":"Hex 8","rgb":"Rgb","hsl":"Hsl","hsv":"Hsv","cie":"Cie","color_model":"Color model","oid_value_1":"Oid value 1","oid_value_2":"Oid value 2","oid_value_3":"Oid value 3","width":"Width","handle_size":"Handle size","handle_margin":"Handle margin","components_space":"Components space","border_width":"Border width","show_wheel":"Show wheel","show_box":"Show box","show_hue":"Show hue","show_Saturation":"Show Saturation","show_value":"Show value","show_red":"Show red","show_green":"Show green","show_blue":"Show blue","show_Alpha":"Show Alpha","show_kelvin":"Show kelvin","underline":"Underline","overline":"Overline","line-through":"Line-through","text_decoration":"Text decoration","margin_top":"Margin top","margin_bottom":"Margin bottom","margin_left":"Margin left","margin_right":"Margin right","color_picker":"Color picker","content_type":"Content type","content_size":"Content size","rotation":"Rotation","mirror":"Mirror","start":"Start","center":"Center","end":"End","space between":"Space between","alignment":"Alignment","text_align":"Text align","content_align":"Content align","invert_order":"Invert order","background_opacity":"Background opacity","content_opacity":"Content opacity","padding_left":"Padding left","padding_right":"Padding right","padding_top":"Padding top","padding_bottom":"Padding bottom","top_left":"Top left","top_right":"Top right","bottom_right":"Bottom right","bottom_left":"Bottom left","size_top":"Size top","size_bottom":"Size bottom","size_left":"Size left","size_right":"Size right","dashed":"Dashed","dotted":"Dotted","double":"Double","groove":"Groove","outset":"Outset","ridge":"Ridge","solid":"Solid","border_style":"Border style","content_blink_interval":"Content blink interval","text_color_true":"Text color true","border_color_true":"Border color true","outer_shadow_color_true":"Outer shadow color true","inner_shadow_color_true":"Inner shadow color true","background":"Background","show_min_max":"Show min max","vis_2_widgets_inventwo_widget_table":"Table","vis_2_widgets_inventwo_attr_group_columns":"Column","max_rows":"Max rows","show_head":"Show head","key":"Key","title":"Title","prefix":"Prefix","suffix":"Suffix","left":"Left","right":"Right","title_align":"Title align","count_columns":"Count columns","single_button":"Single button","separated_buttons":"Separated buttons","equal":"Equal","not_equal":"Not equal","greater":"Greater","lower":"Lower","greater_equal":"Greater equal","lower_equal":"Lower equal","comparison_operator":"Comparison operator","compare_by_widget_default":"Compare by widget default","compare_by":"Compare by","custom_steps_tooltip":"Define custom steps separated by comma","show_steps":"Show steps","auto":"Auto","custom":"Custom","step_mode":"Step mode","step_display":"Step display","custom_steps":"Custom steps","text_false":"Text false","top":"Top","bottom":"Bottom","text_position":"Text position","track_color":"Track color","track_color_true":"Track color true","shadow_color_true":"Shadow color true","thumb_color":"Thumb color","thumb_color_true":"Thumb color true","text_and_content":"Text & Content","condition":"Condition","increase_decrease_value":"Increase/decrease value","send_http":"Send HTTP request / Open URL","url":"Url","send_request":"Send request","open_url":"Open url","open_url_new_tab":"Open url in new tab","http_type":"Http type","duration":"Duration","dialog_close_on_click_outside":"Close on click outside","padding":"Padding","color":"Color","tooltip_widget_type":"Specify the interaction behaviour","tooltip_widget_mode":"Single button: One button with one ore more states, Separated buttons: Each state as a button (Can be used like the old radiobuttonlist widget)","tooltip_compare_by":"Specify what should be compared","tooltip_state_oid":"If empty and not nav, object id from above will be used","tooltip_content_type":"Specify the content of the widget"}')},72706:t=>{t.exports={}},74554:t=>{t.exports={}},66851:t=>{t.exports={}},86164:t=>{t.exports={}},23638:t=>{t.exports={}},74606:t=>{t.exports={}},63715:t=>{t.exports={}},80222:t=>{t.exports={}}}]);
|
|
2
|
-
//# sourceMappingURL=src_translations_js.570977d7.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.62048684.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkiobroker_vis_2_widgets_inventwo=self.webpackChunkiobroker_vis_2_widgets_inventwo||[]).push([["vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx"],{15647:(t,e,r)=>{"use strict";var n=r(24994);Object.defineProperty(e,"B",{value:!0}),e.A=void 0;var o=n(r(54756)),i=n(r(73738)),a=n(r(29293)),u=n(r(17383)),s=n(r(34579)),c=n(r(28452)),l=n(r(63072)),f=n(r(29511)),p=n(r(43693)),d=n(r(28437)),h=r(67085),y=r(37449);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){(0,p.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function x(t,e,r){return e=(0,l.default)(e),(0,c.default)(t,b()?Reflect.construct(e,r||[],(0,l.default)(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}var m=["background-color","border","background","background-image","background-position","background-repeat","background-size","background-clip","background-origin","color","box-sizing","border-width","border-style","border-color","border-radius","box-shadow","text-align","text-shadow","font-family","font-size","font-weight","line-height","font-style","font-variant","letter-spacing","word-spacing"],w=function(t){function e(t){var r;return(0,u.default)(this,e),r=x(this,e,[t]),(0,p.default)(r,"getIdSubscribeState",(function(t,e){return r.props.context.socket.getState(t).then((function(n){return e(t,n),r.props.context.socket.subscribeState(t,(function(r,n){return e(t,n)}))}))})),r.onStateChanged=r.onStateChanged.bind(r),r.state=g(g({},t),{},{values:{},data:JSON.parse(JSON.stringify(t.data||{})),style:JSON.parse(JSON.stringify(t.style||{})),rxData:JSON.parse(JSON.stringify(t.data||{})),rxStyle:JSON.parse(JSON.stringify(t.style||{}))}),r.linkContext={IDs:[]},r}return(0,f.default)(e,t),(0,s.default)(e,[{key:"renderWidgetBody",value:function(t){return null}},{key:"onStateUpdated",value:function(t,e){}},{key:"formatValue",value:function(t,e){var r;"number"===typeof t&&(t=0===e?Math.round(t):Math.round(100*t)/100,null!==(r=this.props.context.systemConfig)&&void 0!==r&&r.common&&this.props.context.systemConfig.common.isFloatComma&&(t=t.toString().replace(".",",")));return void 0===t||null===t?"":t.toString()}},{key:"wrapContent",value:function(t,e,r,n,o,i){var a,u=this,s=(null===i||void 0===i?void 0:i.Card)||h.Card,c=(null===i||void 0===i?void 0:i.CardContent)||h.CardContent,l=g({width:"calc(100% - 8px)",height:"calc(100% - 8px)",margin:4},null===(a=this.props.customSettings)||void 0===a||null===(a=a.viewStyle)||void 0===a?void 0:a.visCard);return Object.keys(this.state.rxStyle).forEach((function(t){var e=u.state.rxStyle[t];null!==e&&void 0!==e&&m.includes(t)&&(t=t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()})),l[t]=e)})),this.wrappedContent=!0,d.default.createElement(s,{className:"vis_rx_widget_card",style:l,onClick:o},d.default.createElement(c,{className:"vis_rx_widget_card_content",style:g({display:"flex",flexDirection:"column",alignItems:"center",height:"calc(100% - 32px)",paddingBottom:16,position:"relative"},r)},this.state.rxData.widgetTitle?d.default.createElement("div",{className:"vis_rx_widget_card_name",style:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}},d.default.createElement("div",{className:"vis_rx_widget_card_name_div",style:g({fontSize:24,paddingTop:0,paddingBottom:4},n)},this.state.rxData.widgetTitle),e||null):e||null,t))}},{key:"onStateChanged",value:function(t,e){if(e){var r=JSON.parse(JSON.stringify(this.state.values));Object.keys(e).forEach((function(n){return r["".concat(t,".").concat(n)]=e[n]})),this.onStateUpdated(t,e),this.setState({values:r})}}},{key:"componentDidMount",value:function(){var t=(0,a.default)(o.default.mark((function t(){var e,r,n=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(e=this.getWidgetInfo())||void 0===e||null===(e=e.visAttrs)||void 0===e||e.forEach((function(t){var e;return null===t||void 0===t||null===(e=t.fields)||void 0===e?void 0:e.forEach((function(t){"id"===(null===t||void 0===t?void 0:t.type)&&Object.keys(n.state.data).forEach((function(e){if(e.match(new RegExp("^".concat(t.name,"[0-9]*$")))){var r=n.state.data[e];n.linkContext.IDs.includes(r)||n.linkContext.IDs.push(r)}}))}))})),r=0;case 2:if(!(r<this.linkContext.IDs.length)){t.next=8;break}return t.next=5,this.getIdSubscribeState(this.linkContext.IDs[r],this.onStateChanged);case 5:r++,t.next=2;break;case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){var t=this;this.linkContext.IDs.forEach((function(e){return t.props.context.socket.unsubscribeState(e,t.onStateChanged)}))}},{key:"getWidgetView",value:function(t,e){return d.default.createElement("div",{style:{width:"100%",height:"100%"}},"DEMO VIEW")}},{key:"getWidgetInWidget",value:function(t,e,r){return null}},{key:"render",value:function(){var t,e;return d.default.createElement("div",{style:{width:null===(t=this.state.style)||void 0===t?void 0:t.width,height:null===(e=this.state.style)||void 0===e?void 0:e.height}},this.renderWidgetBody({widget:{}}))}}],[{key:"getI18nPrefix",value:function(){return""}},{key:"getText",value:function(t){return t&&"object"===(0,i.default)(t)?t[y.I18n.getLanguage()]||t.en:t}},{key:"t",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return y.I18n.t.apply(y.I18n,["".concat(this.getI18nPrefix()).concat(t)].concat(r))}},{key:"getLanguage",value:function(){return y.I18n.getLanguage()}}])}(d.default.Component);(0,p.default)(w,"POSSIBLE_MUI_STYLES",m);e.A=w},27798:(t,e,r)=>{"use strict";r.r(e),r.d(e,{VisRxWidget:()=>n.A,__esModule:()=>n.B});var n=r(15647)},12475:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},29293:t=>{function e(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(c){return void r(c)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,s,"next",t)}function s(t){e(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},17383:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},34579:(t,e,r)=>{var n=r(77736);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},43693:(t,e,r)=>{var n=r(77736);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},63072:t=>{function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},29511:(t,e,r)=>{var n=r(95636);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},24994:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},28452:(t,e,r)=>{var n=r(73738).default,o=r(12475);t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4633:(t,e,r)=>{var n=r(73738).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(n||[]);return u(i,"_invoke",{value:P(t,r,a)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var y="suspendedStart",v="suspendedYield",g="executing",x="completed",b={};function m(){}function w(){}function _(){}var O={};p(O,c,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(D([])));S&&S!==i&&a.call(S,c)&&(O=S);var E=_.prototype=m.prototype=Object.create(O);function j(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,u,s){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var o;u(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=C(u,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(t,r,n);if("normal"===c.type){if(o=n.done?x:v,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=x,n.method="throw",n.arg=c.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,u(E,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},j(L.prototype),p(L.prototype,l,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(d(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(E),p(E,f,"Generator"),p(E,c,(function(){return this})),p(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=D,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},95636:t=>{function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},89045:(t,e,r)=>{var n=r(73738).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},77736:(t,e,r)=>{var n=r(73738).default,o=r(89045);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},73738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}}]);
|
|
3
|
-
//# sourceMappingURL=vendors-node_modules_iobroker_vis-2-widgets-react-dev_index_jsx.62048684.chunk.js.map
|