@opcua/for-node-red
Version:
The Node-RED node to communicate via OPC UA, powered NodeOPCUA and developed by Sterfive's team
47 lines (37 loc) • 46.6 kB
HTML
<style>
.sterfive-combo-box{position:relative;width:100%}.sterfive-online-menu{height:auto;position:fixed;width:auto}.sterfive-input-error{border-color:var(--red-ui-form-input-border-error-color);border-style:solid;border-width:1px}.sterfive-typedInput-options{background:#fff;border-style:solid;border-width:1px;border:1px solid var(--red-ui-primary-border-color);box-sizing:border-box;max-height:350px;overflow-y:auto;position:absolute;white-space:nowrap;z-index:2000}.sterfive-typedInput-options a{align-items:center;border-bottom:1px solid;border-color:var(--red-ui-secondary-border-color);border-style:solid;border-width:1px;color:var(--red-ui-form-text-color);display:flex;font-size:13px;padding:6px 18px 6px 6px;text-decoration:none}.sterfive-typedInput-options a:hover{background:var(--red-ui-workspace-button-background-hover);text-decoration:none}.sterfive-typedInput-options a:focus{outline:none}.sterfive-typedInput-options a:active,.sterfive-typedInput-options a:focus{background:var(--red-ui-workspace-button-background-active);text-decoration:none}.sterfive-typedInput-options a input[type=checkbox]{margin:0 6px 0 0}.sterfive-typedInput-options .sterfive-typedInput-icon{margin-right:6px}.sterfive-typedInput-options .sterfive-typedInput-icon:not(.fa){background-color:var(--red-ui-primary-text-color);height:14px;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;width:12px}.sterfive-combo-box .sterfive-dropdown{background-color:#fff;border:1px solid #ccc;display:none;left:0;max-height:400px;overflow-y:auto;position:absolute;top:100%;width:100%;z-index:1000}.sterfive-combo-box li:before{content:none}.sterfive-tree li.expandable:before,.sterfive-tree li.no-expandable:before{content:"\f0da";cursor:pointer;font-family:FontAwesome;font-size:12pt;font-weight:900;margin-right:5px}.sterfive-tree li.no-expandable:before{opacity:0}.sterfive-tree li.expanded:before{content:"\f0d7";cursor:pointer;font-family:FontAwesome;font-size:12pt;font-weight:900;margin-right:5px}.sterfive-tree li span.selected{border:.5px dotted #33f}.sterfive-tree .fa{color:#333;margin-right:10px}.sterfive-tree ul{list-style:none;padding-inline-start:2%}.sterfive-tree li{cursor:pointer;padding:5px}.sterfive-tree{list-style-type:none}.sterfive-tree,.sterfive-tree ol,.sterfive-tree ul{list-style-type:none;margin:0;padding:0}.sterfive-tree li:hover{background-color:#eee}.sterfive-tree li.loading:before{animation:fa-spin 1s linear infinite;content:"\f110";cursor:pointer;font-family:FontAwesome;font-weight:900;margin-right:5px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.sterfive-tree .spinner{animation:spin .7s linear infinite;border:2px solid transparent;border-radius:50%;border-top-color:#666;display:inline-block;height:16px;width:16px}.sterfive-info{background-color:#fafad2;border-radius:10px;border-style:groove;display:block;font-size:10pt;margin:5px 0;padding:5px}.sterfive-info .ok{color:green}.sterfive-info .warning{color:darkred}.input-wrapper{border:0 solid #ccc;border-radius:5px;padding:0}.sterfive-input-group{border:1px solid #ccc;border-radius:5px;display:flex;overflow:hidden}.sterfive-input-group button,.sterfive-input-group input{border:none;outline:none;padding:10px}.sterfive-input-group input{flex:1}.sterfive-input-group button{background-color:var(--red-ui-form-button-background);color:#7b7a7a;cursor:pointer}.sterfive-input-group button:hover{background-color:var(--red-ui-secondary-background-hover)}.sterfive-info-text{color:#777;font-size:12px;margin-left:10px;margin-top:5px}.custom-checkbox{cursor:pointer;display:inline-block;font-family:FontAwesome;font-size:16px;font-weight:900;margin-right:10px;text-align:center;width:1em}.custom-checkbox.unchecked:before{content:"\f096"}.custom-checkbox.checked:before{content:"\f046"}.validate-cancel-buttons{background-color:#fff;position:sticky;right:0;top:0;z-index:1001}.cancel-button,.validate-button{cursor:pointer;font-size:16px;margin:5px}.sterfive-combo-box .sterfive-dropdown{position:relative}.floating-buttons{position:fixed;z-index:1003}
/*# sourceMappingURL=OpcUa-Client2-Write.css.map */
</style>
<script type="text/javascript">
(function(_0x3fbea8,_0x3c786f){const _0x3e4033=_0x2ce0,_0x4cbb30=_0x3fbea8();while(!![]){try{const _0x33eebf=-parseInt(_0x3e4033(0x244))/0x1*(-parseInt(_0x3e4033(0x1e0))/0x2)+parseInt(_0x3e4033(0x209))/0x3*(-parseInt(_0x3e4033(0x229))/0x4)+-parseInt(_0x3e4033(0x1fc))/0x5+parseInt(_0x3e4033(0x25e))/0x6*(-parseInt(_0x3e4033(0x274))/0x7)+parseInt(_0x3e4033(0x1c6))/0x8+-parseInt(_0x3e4033(0x22d))/0x9*(parseInt(_0x3e4033(0x264))/0xa)+parseInt(_0x3e4033(0x1fd))/0xb*(parseInt(_0x3e4033(0x184))/0xc);if(_0x33eebf===_0x3c786f)break;else _0x4cbb30['push'](_0x4cbb30['shift']());}catch(_0x588cc8){_0x4cbb30['push'](_0x4cbb30['shift']());}}}(_0x1ea4,0xb054c),(function(){'use strict';const _0x165482=_0x2ce0;function _0x22b6c9(_0x5e4f02,_0x14ce27,_0x1bf4ac,_0x2da049){function _0x4e3f27(_0x210128){return _0x210128 instanceof _0x1bf4ac?_0x210128:new _0x1bf4ac(function(_0x5dd4cb){_0x5dd4cb(_0x210128);});}return new(_0x1bf4ac||(_0x1bf4ac=Promise))(function(_0x5ab30b,_0x22ee1e){const _0x59297a=_0x2ce0;function _0x5a160e(_0x43cfe0){try{_0x3f6291(_0x2da049['next'](_0x43cfe0));}catch(_0x376b83){_0x22ee1e(_0x376b83);}}function _0xb7b92f(_0x2b9df9){const _0x267d70=_0x2ce0;try{_0x3f6291(_0x2da049[_0x267d70(0x296)](_0x2b9df9));}catch(_0x563e0e){_0x22ee1e(_0x563e0e);}}function _0x3f6291(_0x4ab5df){const _0x2e2a6b=_0x2ce0;_0x4ab5df[_0x2e2a6b(0x17f)]?_0x5ab30b(_0x4ab5df[_0x2e2a6b(0x240)]):_0x4e3f27(_0x4ab5df['value'])[_0x2e2a6b(0x1c1)](_0x5a160e,_0xb7b92f);}_0x3f6291((_0x2da049=_0x2da049['apply'](_0x5e4f02,_0x14ce27||[]))[_0x59297a(0x202)]());});}typeof SuppressedError===_0x165482(0x238)?SuppressedError:function(_0x46d6d9,_0x4e0b39,_0x2c2749){const _0x1e9790=_0x165482;var _0x3135e0=new Error(_0x2c2749);return _0x3135e0[_0x1e9790(0x249)]='SuppressedError',_0x3135e0[_0x1e9790(0x292)]=_0x46d6d9,_0x3135e0['suppressed']=_0x4e0b39,_0x3135e0;};const _0x523625=_0x165482(0x212),_0x4cdc44=_0x165482(0x199),_0x4b2296=_0x165482(0x276),_0x41ba61=_0x165482(0x1e3),_0x2d1a2f=_0x165482(0x17d),_0x2008dc=_0x165482(0x217),_0xc2d5b3=_0x165482(0x298);var _0x572457;(function(_0x61be44){const _0x92b1e7=_0x165482;_0x61be44[_0x61be44[_0x92b1e7(0x1bd)]=0x0]='Forward',_0x61be44[_0x61be44[_0x92b1e7(0x285)]=0x1]='Inverse',_0x61be44[_0x61be44[_0x92b1e7(0x1d0)]=0x2]='Both',_0x61be44[_0x61be44[_0x92b1e7(0x1db)]=0x3]=_0x92b1e7(0x1db);}(_0x572457||(_0x572457={})));var _0x4394ea;(function(_0x35fdaa){const _0x3da098=_0x165482;_0x35fdaa[_0x35fdaa['Unspecified']=0x0]=_0x3da098(0x271),_0x35fdaa[_0x35fdaa[_0x3da098(0x1f3)]=0x1]=_0x3da098(0x1f3),_0x35fdaa[_0x35fdaa['Variable']=0x2]=_0x3da098(0x1d3),_0x35fdaa[_0x35fdaa[_0x3da098(0x1e7)]=0x4]=_0x3da098(0x1e7),_0x35fdaa[_0x35fdaa[_0x3da098(0x175)]=0x8]='ObjectType',_0x35fdaa[_0x35fdaa[_0x3da098(0x24b)]=0x10]='VariableType',_0x35fdaa[_0x35fdaa[_0x3da098(0x20b)]=0x20]='ReferenceType',_0x35fdaa[_0x35fdaa[_0x3da098(0x28e)]=0x40]=_0x3da098(0x28e),_0x35fdaa[_0x35fdaa[_0x3da098(0x293)]=0x80]=_0x3da098(0x293);}(_0x4394ea||(_0x4394ea={})));var _0x3f5d83;(function(_0x19ab77){const _0x1241ab=_0x165482;_0x19ab77[_0x19ab77['Object']=0x1]=_0x1241ab(0x1f3),_0x19ab77[_0x19ab77[_0x1241ab(0x1d3)]=0x2]=_0x1241ab(0x1d3),_0x19ab77[_0x19ab77[_0x1241ab(0x1e7)]=0x4]=_0x1241ab(0x1e7),_0x19ab77[_0x19ab77[_0x1241ab(0x175)]=0x8]=_0x1241ab(0x175),_0x19ab77[_0x19ab77['VariableType']=0x10]=_0x1241ab(0x24b),_0x19ab77[_0x19ab77[_0x1241ab(0x20b)]=0x20]=_0x1241ab(0x20b),_0x19ab77[_0x19ab77[_0x1241ab(0x28e)]=0x40]=_0x1241ab(0x28e),_0x19ab77[_0x19ab77[_0x1241ab(0x293)]=0x80]=_0x1241ab(0x293);}(_0x3f5d83||(_0x3f5d83={})));var _0x9bb86b;(function(_0x295427){const _0x378535=_0x165482;_0x295427[_0x295427[_0x378535(0x20b)]=0x1]=_0x378535(0x20b),_0x295427[_0x295427[_0x378535(0x1be)]=0x2]=_0x378535(0x1be),_0x295427[_0x295427['NodeClass']=0x4]='NodeClass',_0x295427[_0x295427[_0x378535(0x253)]=0x8]='BrowseName',_0x295427[_0x295427[_0x378535(0x1a3)]=0x10]=_0x378535(0x1a3),_0x295427[_0x295427[_0x378535(0x1e8)]=0x20]='TypeDefinition';}(_0x9bb86b||(_0x9bb86b={})));function _0x2b0c6c(_0x2e4c93){const _0xf95147=_0x165482;switch(_0x2e4c93){case'Organizes':return _0x523625;case _0xf95147(0x1d6):return _0x41ba61;case _0xf95147(0x1c9):return _0x4b2296;case _0xf95147(0x241):return _0x2d1a2f;case _0xf95147(0x270):return _0x2008dc;case _0xf95147(0x18e):return _0xc2d5b3;}}const _0x46264b=_0x530031=>{const _0x2790cf=_0x165482;switch(_0x530031[_0x2790cf(0x1a6)]){case _0x2790cf(0x1f3):if(_0x530031['referenceTypeId']===_0x523625);if(_0x530031[_0x2790cf(0x211)]===_0x4cdc44||_0x530031['referenceTypeId']===_0x2790cf(0x1b5))return{'icon':'fa-folder','color':_0x2790cf(0x252)};return{'icon':_0x2790cf(0x27b),'color':_0x2790cf(0x18a)};case _0x2790cf(0x1d3):if(_0x530031[_0x2790cf(0x1d8)]===_0x4b2296)return{'icon':_0x2790cf(0x22c),'color':'SteelBlue'};else return _0x530031[_0x2790cf(0x1d8)]===_0x41ba61?{'icon':_0x2790cf(0x22c),'color':_0x2790cf(0x27d)}:{'icon':_0x2790cf(0x22c),'color':_0x2790cf(0x198)};case _0x2790cf(0x1e7):return{'icon':_0x2790cf(0x284),'color':_0x2790cf(0x25c)};case _0x2790cf(0x175):return{'icon':_0x2790cf(0x27b),'color':_0x2790cf(0x1f6)};case _0x2790cf(0x24b):return{'icon':_0x2790cf(0x1a5),'color':_0x2790cf(0x1f6)};case'DataType':return{'icon':'fa-text-width','color':_0x2790cf(0x198)};}return{'icon':_0x2790cf(0x1b0),'color':'grey'};},_0x509402=(_0x3d5b8d,_0x542d50,_0x2d3e6b)=>_0x22b6c9(void 0x0,[_0x3d5b8d,_0x542d50,_0x2d3e6b],void 0x0,function*({endpointNode:_0x392068,endpoint:_0x37bcd8,baseUrl:_0x33876b},_0x4d4a42,_0x34d5b4){const _0x204a96=_0x165482,_0x4e18c2=_0x33876b+'/opcua-for-node-red',_0x432c79=_0x4e18c2+'/browse',_0x1cecd7=Object['assign'](Object[_0x204a96(0x194)]({},_0x34d5b4),{'nodeId':_0x4d4a42,'resultMask':0x3f}),_0x22bdf5=yield fetch(_0x432c79,{'method':_0x204a96(0x1cd),'body':JSON[_0x204a96(0x18c)]({'endpointNode':_0x392068,'endpoint':_0x37bcd8,'browseDescription':_0x1cecd7}),'headers':{'Content-Type':_0x204a96(0x248)}});if(_0x22bdf5['status']!==0xc8)return console['log'](_0x204a96(0x177),_0x22bdf5[_0x204a96(0x179)],_0x22bdf5['statusText']),{'references':[]};const _0x8adb54=yield _0x22bdf5[_0x204a96(0x195)](),_0xb5225c=_0x8adb54[_0x204a96(0x19b)][_0x204a96(0x193)]||[];return{'references':_0xb5225c};}),_0x4e4c45={'referenceTypeId':_0x2b0c6c('HasChild'),'includeSubtypes':!![],'browseDirection':_0x572457[_0x165482(0x1bd)],'nodeClassMask':_0x4394ea[_0x165482(0x1d3)]|_0x4394ea[_0x165482(0x1f3)]|_0x4394ea[_0x165482(0x1e7)],'resultMask':0x3f},_0x45c918={'referenceTypeId':_0x2b0c6c(_0x165482(0x1c5)),'includeSubtypes':!![],'browseDirection':_0x572457[_0x165482(0x1bd)],'nodeClassMask':_0x4394ea[_0x165482(0x1d3)]|_0x4394ea[_0x165482(0x1f3)]|_0x4394ea[_0x165482(0x1e7)],'resultMask':0x3f},_0x4cd5be=(_0x42d977,_0x47fb1f)=>_0x22b6c9(void 0x0,[_0x42d977,_0x47fb1f],void 0x0,function*({endpointNode:_0x169183,endpoint:_0x4ce83a,baseUrl:_0x22de74},{nodeId:_0x4a0b53,rootNodeId:_0x2fef5f,isType:_0x1cdc41}){const _0x5a036d=_0x165482,_0x576145=_0x22de74+_0x5a036d(0x26a),_0x3e997f=_0x576145+_0x5a036d(0x24c),_0x4738a1=yield fetch(_0x3e997f,{'method':'POST','body':JSON[_0x5a036d(0x18c)]({'endpointNode':_0x169183,'endpoint':_0x4ce83a,'nodeId':_0x4a0b53,'rootNodeId':_0x2fef5f,'isType':_0x1cdc41}),'headers':{'Content-Type':_0x5a036d(0x248)}});if(_0x4738a1[_0x5a036d(0x179)]!==0xc8)return null;const _0x3dce67=yield _0x4738a1['json']();return _0x3dce67['browsePath'];}),_0x3d22de=(_0x47fefb,_0x2f5d42)=>{const _0x3e807f=_0x165482;if(_0x47fefb['statusCode']!==_0x3e807f(0x231))return _0x47fefb['requestedNodeId'];switch(_0x2f5d42){case _0x3e807f(0x25b):return _0x47fefb[_0x3e807f(0x178)];case _0x3e807f(0x26c):return _0x47fefb['bp_aliased']||_0x47fefb[_0x3e807f(0x178)];case'aliasedNodeId':return _0x47fefb[_0x3e807f(0x21c)]||_0x47fefb['nodeId_nsu'];case'nsuNodeID':return _0x47fefb['nodeId_nsu'];default:case _0x3e807f(0x1a4):return _0x47fefb[_0x3e807f(0x1a4)];}},_0x5508ef=_0x347d95=>{const _0x1939e5=_0x165482;if(_0x347d95['statusCode']!=='Good')return _0x1939e5(0x242)+_0x347d95[_0x1939e5(0x278)];else{let _0x50c163=[];return _0x50c163[_0x1939e5(0x23b)](_0x1939e5(0x1a2)+_0x347d95[_0x1939e5(0x1a4)]),_0x50c163['push']('browse\x20path:\x20'+_0x347d95[_0x1939e5(0x178)]),_0x50c163['push']('node\x20class:\x20'+_0x4394ea[_0x347d95['nodeClass']]),_0x347d95[_0x1939e5(0x24f)]&&_0x50c163[_0x1939e5(0x23b)](_0x1939e5(0x236)+_0x347d95[_0x1939e5(0x24f)]),_0x347d95[_0x1939e5(0x21c)]&&_0x50c163['push'](_0x1939e5(0x295)+_0x347d95[_0x1939e5(0x21c)]),_0x347d95[_0x1939e5(0x178)]&&_0x50c163['push'](_0x1939e5(0x289)+_0x347d95[_0x1939e5(0x1b9)]),_0x50c163[_0x1939e5(0x1d5)]('\x0a');}};function _0x1184b8(_0x5b8838){const _0x3a2d47=_0x165482;if(_0x5b8838['match'](/^nsu=/))return'nsuNodeID';if(_0x5b8838[_0x3a2d47(0x1bf)](/^(ns=.*;)?(i|b|s|g)=/))return'nodeId';if(_0x5b8838[_0x3a2d47(0x1bf)](/^nsa=/))return _0x3a2d47(0x185);if(_0x5b8838['match'](/^(\/|\.)[0-9]+:/))return _0x3a2d47(0x25b);if(_0x5b8838[_0x3a2d47(0x1bf)](/^(\/|\.).*:/))return _0x3a2d47(0x25b);}function _0x549035(_0x5e1a2d){const _0x465956=_0x165482,_0x4edae3=_0x1184b8(_0x5e1a2d);switch(_0x4edae3){case _0x465956(0x1a4):return'n';case _0x465956(0x185):return'na';case'nsuNodeID':return _0x465956(0x174);case'browsePath':return'b';case _0x465956(0x26c):return'ab';default:return't';}}function _0x5f0eb2(_0x40683a){const _0x5b4972=_0x165482;let _0x540d05;switch(_0x40683a){case'n':_0x540d05='nodeId';break;case'na':_0x540d05='aliasedNodeId';break;case'nsu':_0x540d05=_0x5b4972(0x232);break;case'b':_0x540d05=_0x5b4972(0x25b);break;case'ab':_0x540d05='aliasedBrowsePath';break;}return _0x540d05;}function _0x30222c(_0x3c9ef1){const _0x4beea6=_0x165482;switch(_0x3c9ef1){case'nodeId':return'n';case _0x4beea6(0x185):return'na';case _0x4beea6(0x232):return _0x4beea6(0x174);case _0x4beea6(0x25b):return'b';case'aliasedBrowsePath':return'ab';default:return't';}}const _0x45a8e3=(_0x4aae71,_0x40e2a5)=>_0x22b6c9(void 0x0,[_0x4aae71,_0x40e2a5],void 0x0,function*({endpointNode:_0x261f2f,endpoint:_0x40fc1d,baseUrl:_0x4fdc2b},_0x3f9b99){const _0x31a04c=_0x165482,_0x12d85b=_0x4fdc2b+_0x31a04c(0x26a),_0x4d1478=_0x12d85b+_0x31a04c(0x204),_0x4112ff=_0x261f2f['id'],_0x28e5bc=RED['nodes'][_0x31a04c(0x1d4)](_0x4112ff);console[_0x31a04c(0x1c0)](_0x28e5bc[_0x31a04c(0x245)]),_0x28e5bc['namespaceAliases'];const _0x4d28a9=_0x261f2f[_0x31a04c(0x245)],_0x2e40c8=yield fetch(_0x4d1478,{'method':'POST','body':JSON[_0x31a04c(0x18c)]({'endpointNode':_0x261f2f,'endpoint':_0x40fc1d,'nodeId':_0x3f9b99,'namespaceAliases':_0x4d28a9}),'headers':{'Content-Type':_0x31a04c(0x248)}}),_0x2ab47c=yield _0x2e40c8['json']();return{'json':_0x2ab47c,'data':_0x2e40c8};}),_0x5db577=(_0x452f68,_0x1a856a,_0x19eb70,_0x1c16a7)=>_0x22b6c9(void 0x0,[_0x452f68,_0x1a856a,_0x19eb70,_0x1c16a7],void 0x0,function*({endpointNode:_0x356a9a,endpoint:_0x1310dd,baseUrl:_0x1140f1},_0x556c1,_0x2c10bd,_0x40a354){const _0x13495f=_0x165482,_0x1b515f=_0x2c10bd[_0x13495f(0x294)](),{json:_0x4b485d,data:_0x5dcad3}=yield _0x45a8e3({'endpointNode':_0x356a9a,'endpoint':_0x1310dd,'baseUrl':_0x1140f1},_0x1b515f),_0x8ca98b=(_0x1b0bb6,_0x65bc5e)=>{const _0x313d88=_0x13495f;_0x40a354['text'](_0x1b0bb6)[_0x313d88(0x256)](_0x313d88(0x192))[_0x313d88(0x256)](_0x65bc5e),_0x40a354['show'](),setTimeout(()=>{const _0x50dcff=_0x313d88;_0x40a354['removeClass'](_0x65bc5e),_0x40a354[_0x50dcff(0x226)]();},0xbb8);};if(_0x5dcad3[_0x13495f(0x179)]!==0xc8)return _0x8ca98b(_0x13495f(0x257)+_0x1b515f,'failure'),![];else{if(_0x4b485d['statusCode'][_0x13495f(0x1bf)](/Good/)){const _0x39f33a=_0x5508ef(_0x4b485d);_0x2c10bd[_0x13495f(0x1eb)]('title',_0x39f33a);const _0x3c204d=_0x3d22de(_0x4b485d,_0x556c1);return _0x2c10bd[_0x13495f(0x294)](_0x3c204d),_0x2c10bd[_0x13495f(0x18b)]('change'),_0x8ca98b(_0x13495f(0x231),'ok'),!![];}else return _0x2c10bd[_0x13495f(0x294)](''+_0x1b515f),_0x8ca98b(_0x4b485d[_0x13495f(0x278)]+'\x20'+_0x5dcad3[_0x13495f(0x1a0)],'failure'),![];}});function _0x4de5d3(_0x57c9f4,_0x47fcc9){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x3b36c0=_0x2ce0,_0x55eb3b=_0x57c9f4[_0x3b36c0(0x1ca)](_0x3b36c0(0x240)),_0x181347=yield _0x509402(_0x47fcc9,_0x55eb3b,_0x4e4c45),_0x32b3f7=yield _0x509402(_0x47fcc9,_0x55eb3b,_0x45c918);return{'references':[..._0x181347[_0x3b36c0(0x193)],..._0x32b3f7[_0x3b36c0(0x193)]]};});}const _0x484d27={'referenceTypeId':_0x2b0c6c(_0x165482(0x270)),'includeSubtypes':!![],'browseDirection':_0x572457[_0x165482(0x1bd)],'nodeClassMask':_0x4394ea[_0x165482(0x20b)]|_0x4394ea[_0x165482(0x175)]|_0x4394ea[_0x165482(0x28e)]|_0x4394ea[_0x165482(0x24b)],'resultMask':0x3f};function _0x1392f4(_0x1e8457,_0x2e3ded){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x43eb78=_0x2ce0,_0x518e8f=_0x1e8457[_0x43eb78(0x1ca)]('value'),_0x2cc5c4=yield _0x509402(_0x2e3ded,_0x518e8f,_0x484d27);return _0x2cc5c4;});}const _0x4aebb9=_0x4bb2f3=>{const _0x28e3d4=_0x165482;var _0x5b14b4,_0x4c4678,_0x9681ef,_0x3559c9;if(!_0x4bb2f3||!_0x4bb2f3[_0x28e3d4(0x1a4)]){const _0x121cef=$(_0x28e3d4(0x24a));return _0x121cef;}const _0x591547=_0x4bb2f3['nodeId'][_0x28e3d4(0x1e1)](),_0x4d05aa=((_0x5b14b4=_0x4bb2f3[_0x28e3d4(0x210)])===null||_0x5b14b4===void 0x0?void 0x0:_0x5b14b4[_0x28e3d4(0x230)])||((_0x4c4678=_0x4bb2f3[_0x28e3d4(0x24d)])===null||_0x4c4678===void 0x0?void 0x0:_0x4c4678[_0x28e3d4(0x249)])||_0x4bb2f3['nodeId'][_0x28e3d4(0x1e1)](),{icon:_0x414000,color:_0x265936}=_0x46264b(_0x4bb2f3),_0x262e81='('+_0x4bb2f3['nodeId'][_0x28e3d4(0x1e1)]()+')\x20'+(((_0x9681ef=_0x4bb2f3[_0x28e3d4(0x24d)])===null||_0x9681ef===void 0x0?void 0x0:_0x9681ef[_0x28e3d4(0x249)])||((_0x3559c9=_0x4bb2f3[_0x28e3d4(0x210)])===null||_0x3559c9===void 0x0?void 0x0:_0x3559c9[_0x28e3d4(0x230)])||''),_0x591c71=$(_0x28e3d4(0x17e)+_0x4bb2f3[_0x28e3d4(0x1a4)][_0x28e3d4(0x1e1)]()+'\x22}><span\x20class=\x22tree-text\x22\x20title='+_0x262e81+_0x28e3d4(0x25a)+_0x414000+_0x28e3d4(0x18d)+_0x265936+_0x28e3d4(0x215)+_0x4d05aa+_0x28e3d4(0x275));return _0x591c71[_0x28e3d4(0x256)](_0x28e3d4(0x1ef)),_0x591c71[_0x28e3d4(0x1ca)](_0x28e3d4(0x240),_0x591547),_0x591c71['data'](_0x28e3d4(0x1f9),_0x4bb2f3),_0x591c71;},_0x552f4b=(_0x275c05,_0x514ff0)=>{const _0x354609=_0x165482;return _0x514ff0[_0x354609(0x180)](_0x354609(0x220)+_0x275c05+'\x22]');},_0x5b0973=(_0x348869,_0x35e126)=>{const _0x5e7fde=_0x165482;_0x348869['$tree'][_0x5e7fde(0x180)](_0x5e7fde(0x1b6))[_0x5e7fde(0x22b)](_0x5e7fde(0x216)),_0x35e126[_0x5e7fde(0x180)](_0x5e7fde(0x268))['addClass']('selected');},_0x5e72f6=(_0x54694e,_0x130ee2,_0x4d4318)=>_0x22b6c9(void 0x0,void 0x0,void 0x0,function*(){const _0x2edc62=_0x165482;let _0xd34827=_0x4d4318[_0x2edc62(0x26e)](_0x2edc62(0x228));_0x130ee2[_0x2edc62(0x272)][_0x2edc62(0x20f)]||[];const _0x9f9532=_0x130ee2[_0x2edc62(0x22a)]||[];if(_0x9f9532['length']===0x0)return;for(const _0xde3c49 of _0x9f9532){_0xd34827[_0x2edc62(0x28a)]('expandable')&&(yield _0x22b1e6(_0x54694e,_0xd34827));const _0x452f80=_0x552f4b(_0xde3c49,_0xd34827);if(_0x452f80[_0x2edc62(0x263)]===0x0)return;_0xd34827=_0x452f80;}_0x5b0973(_0x54694e,_0xd34827),_0x55d077(_0x54694e['$dropdown'],_0xd34827);});function _0x55d077(_0x30014f,_0x1b19fc){const _0x2cae70=_0x165482,_0x163e10=_0x1b19fc[_0x2cae70(0x250)]()[_0x2cae70(0x1f2)],_0x59aad2=_0x30014f['scrollTop']();if(_0x59aad2==undefined)return;const _0xa0dc2=_0x59aad2+_0x163e10-_0x30014f[_0x2cae70(0x1fa)]()/0x2+_0x1b19fc[_0x2cae70(0x1fa)]()/0x2;_0x30014f[_0x2cae70(0x1c2)]({'scrollTop':_0xa0dc2},0x1f4);}const _0x4f2590=(_0x176148,_0x128646)=>_0x22b6c9(void 0x0,void 0x0,void 0x0,function*(){const _0x34755e=_0x165482,_0x2c0117=_0x176148[_0x34755e(0x207)][_0x34755e(0x294)](),_0x37f5ee={'nodeId':_0x2c0117,'rootNodeId':_0x128646[_0x34755e(0x1a4)],'isType':_0x176148[_0x34755e(0x1ae)]['isTypeRef']||![]},_0x25bc20=_0x1504a5(_0x176148),_0xe408d9=yield _0x4cd5be(_0x25bc20,_0x37f5ee);if(!_0xe408d9)return;yield _0x5e72f6(_0x176148,_0xe408d9,_0x176148[_0x34755e(0x213)]);});function _0x102bd3(_0x3f2971,_0x3791db,_0x24be3d,_0x45d9d4){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x37d0d7=_0x2ce0;if(_0x3791db['hasClass'](_0x37d0d7(0x28c))){console[_0x37d0d7(0x1c0)]('already\x20fetched');return;}if(_0x3791db[_0x37d0d7(0x28a)](_0x37d0d7(0x1b4))){console['log'](_0x37d0d7(0x19a));return;}_0x3791db['addClass'](_0x37d0d7(0x1b4)),_0x3791db['append'](_0x37d0d7(0x27f));try{_0x3791db[_0x37d0d7(0x26e)]('ul')['empty']();const {references:_0x548cc4}=yield _0x24be3d(_0x3791db,_0x45d9d4);_0x548cc4['sort']((_0x44d3a2,_0x3b64e2)=>{const _0x363146=_0x37d0d7;var _0x2d52a2,_0x335b34;return(((_0x2d52a2=_0x44d3a2['browseName'])===null||_0x2d52a2===void 0x0?void 0x0:_0x2d52a2[_0x363146(0x249)])||'')[_0x363146(0x1e6)](((_0x335b34=_0x3b64e2[_0x363146(0x24d)])===null||_0x335b34===void 0x0?void 0x0:_0x335b34[_0x363146(0x249)])||'');});for(const _0x4b2fb5 of _0x548cc4){if(_0x3f2971[_0x37d0d7(0x1ae)][_0x37d0d7(0x1a1)]&&!_0x3f2971[_0x37d0d7(0x1ae)][_0x37d0d7(0x1a1)](_0x4b2fb5))continue;const _0x1d1818=_0x4aebb9(_0x4b2fb5);_0x3791db[_0x37d0d7(0x26e)]('ul')['append'](_0x1d1818);}_0x3791db[_0x37d0d7(0x256)]('fetched');}catch(_0x2d4c7c){_0x3791db['children']('ul')[_0x37d0d7(0x28d)](_0x37d0d7(0x1f5)+_0x2d4c7c[_0x37d0d7(0x243)]+'</li>'),console[_0x37d0d7(0x1c0)](_0x37d0d7(0x280),_0x2d4c7c);}_0x3791db['find']('.spinner')['remove'](),_0x3791db[_0x37d0d7(0x22b)]('loading');});}function _0x1504a5(_0x38fe1c){const _0x51667c=_0x165482,_0x22ddbe={'baseUrl':_0x38fe1c[_0x51667c(0x1ae)][_0x51667c(0x297)],'endpointNode':typeof _0x38fe1c[_0x51667c(0x1ae)]['endpointNode']==='function'?_0x38fe1c[_0x51667c(0x1ae)][_0x51667c(0x1c3)]():_0x38fe1c[_0x51667c(0x1ae)][_0x51667c(0x1c3)],'endpoint':typeof _0x38fe1c[_0x51667c(0x1ae)][_0x51667c(0x1cf)]==='function'?_0x38fe1c['options'][_0x51667c(0x1cf)]():_0x38fe1c[_0x51667c(0x1ae)][_0x51667c(0x1cf)]};return _0x22ddbe;}function _0x22b1e6(_0x4457ad,_0x1e340b){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x52411a=_0x2ce0;if(_0x1e340b[_0x52411a(0x28a)](_0x52411a(0x28c))){_0x1e340b[_0x52411a(0x22b)](_0x52411a(0x1ef))[_0x52411a(0x256)](_0x52411a(0x186)),_0x1e340b['children']('ul')[_0x52411a(0x28f)]();return;}const _0x155bdf=_0x1504a5(_0x4457ad),_0x2f6174=!_0x4457ad['options'][_0x52411a(0x1b2)]?_0x4de5d3:_0x1392f4;try{yield _0x102bd3(_0x4457ad,_0x1e340b,_0x2f6174,_0x155bdf),_0x1e340b[_0x52411a(0x22b)](_0x52411a(0x1ef))[_0x52411a(0x256)]('expanded');}catch(_0x2ebefa){_0x1e340b[_0x52411a(0x22b)]('expandable')[_0x52411a(0x256)](_0x52411a(0x186)),console['log'](_0x52411a(0x292),_0x2ebefa);}});}const _0x1eafdf={'browseName':{'namespaceIndex':0x0,'name':_0x165482(0x233)},'nodeClass':_0x165482(0x1f3),'nodeId':_0x165482(0x1a9),'displayName':{'text':_0x165482(0x233)},'typeDefinition':_0x4cdc44},_0x1aa1b8=()=>{const _0x5416fa=_0x165482;$[_0x5416fa(0x265)](_0x5416fa(0x23f),{'options':{'endpointNode':()=>({'endpoint':_0x5416fa(0x282)}),'endpoint':()=>undefined,'parentNode':()=>_0x1eafdf,'filter':()=>!![],'baseUrl':'','isTypeRef':![]},'resolveParentNode'(){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x1d0d5e=_0x2ce0,_0x15beb6=this;if(_0x15beb6[_0x1d0d5e(0x273)]==undefined){const _0x2db5e2=typeof _0x15beb6[_0x1d0d5e(0x1ae)][_0x1d0d5e(0x181)]==='function'?_0x15beb6['options']['parentNode']['call'](_0x15beb6):_0x15beb6[_0x1d0d5e(0x1ae)][_0x1d0d5e(0x181)];if(_0x2db5e2 instanceof Promise){const _0x6e8938=yield _0x2db5e2;_0x15beb6[_0x1d0d5e(0x273)]=_0x6e8938;}else _0x15beb6[_0x1d0d5e(0x273)]=_0x2db5e2;}return _0x15beb6['__parentNode']||_0x1eafdf;});},'reset'(){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x4e197a=_0x2ce0,_0x5a0684=this,_0x3fa3f7=_0x5a0684;_0x3fa3f7[_0x4e197a(0x273)]=undefined,_0x5a0684['$tree'][_0x4e197a(0x1ee)]();const _0x3832ed=yield this[_0x4e197a(0x251)](),_0x23a81f=_0x4aebb9(_0x3832ed);_0x5a0684[_0x4e197a(0x213)][_0x4e197a(0x28d)](_0x23a81f),_0x5a0684[_0x4e197a(0x214)]=_0x3832ed;});},'verify'(_0xb9afe0){const _0x351e20=_0x5416fa,_0x2725b8=this,_0x328860=_0x1504a5(_0x2725b8);_0x5db577(_0x328860,_0xb9afe0,_0x2725b8[_0x351e20(0x207)],_0x2725b8[_0x351e20(0x1df)])['then'](_0x270c96=>{const _0xe95029=_0x351e20;!_0x270c96?_0x2725b8[_0xe95029(0x189)][_0xe95029(0x256)](_0xe95029(0x23d)):_0x2725b8[_0xe95029(0x189)][_0xe95029(0x22b)](_0xe95029(0x23d));});},'_hideMenu'(_0x16001b){const _0x241fc1=_0x5416fa,_0x3bd49b=this;$(document)[_0x241fc1(0x1fe)]('mousedown.red-ui-typedInput-close-property-select'),_0x16001b[_0x241fc1(0x226)](),_0x16001b['css']({'height':'auto'});if(_0x16001b[_0x241fc1(0x287)][_0x241fc1(0x1e9)]){var _0x2bd8e3=[];_0x16001b[_0x241fc1(0x180)]('input[type=\x22checkbox\x22]')[_0x241fc1(0x205)](function(){const _0xbd2b4f=_0x241fc1;$(this)[_0xbd2b4f(0x1de)](_0xbd2b4f(0x173))&&_0x2bd8e3['push']($(this)[_0xbd2b4f(0x1ca)](_0xbd2b4f(0x240)));}),_0x16001b[_0x241fc1(0x26b)](_0x2bd8e3);}_0x3bd49b[_0x241fc1(0x187)]['is'](_0x241fc1(0x286))?_0x3bd49b[_0x241fc1(0x207)]['trigger']('focus'):_0x3bd49b[_0x241fc1(0x234)][_0x241fc1(0x18b)](_0x241fc1(0x201));},'_createMenu'(_0x11bfce,_0x4373a9,_0x45893a){const _0x330c86=_0x5416fa;var _0x41f023=this;const _0x24318e=$(_0x330c86(0x27c))['addClass']('sterfive-typedInput-options\x20sterfive-online-menu');return _0x24318e[_0x330c86(0x287)]=_0x4373a9,_0x24318e[_0x330c86(0x26b)]=_0x45893a,_0x11bfce[_0x330c86(0x239)](_0x2e4170=>{const _0x24bf90=_0x330c86;typeof _0x2e4170==='string'&&(_0x2e4170={'value':_0x2e4170,'label':_0x2e4170});var _0x5aeb4d=$('<a\x20href=\x22#\x22></a>')[_0x24bf90(0x1eb)]('value',_0x2e4170[_0x24bf90(0x240)])[_0x24bf90(0x196)](_0x24318e);_0x2e4170[_0x24bf90(0x17c)]&&_0x5aeb4d['text'](_0x2e4170['label']);_0x2e4170[_0x24bf90(0x1e5)]&&_0x5aeb4d[_0x24bf90(0x1de)](_0x24bf90(0x1e5),_0x2e4170[_0x24bf90(0x1e5)]);if(_0x2e4170[_0x24bf90(0x20c)]){if(_0x2e4170['icon'][_0x24bf90(0x1e4)]('<')===0x0)$(_0x2e4170['icon'])[_0x24bf90(0x254)](_0x5aeb4d);else _0x2e4170[_0x24bf90(0x20c)]['indexOf']('/')!==-0x1?$(_0x24bf90(0x1bb),{'class':_0x24bf90(0x23e),'style':_0x24bf90(0x23a)+_0x2e4170['icon']+_0x24bf90(0x200)+_0x2e4170[_0x24bf90(0x20c)]+');'})[_0x24bf90(0x254)](_0x5aeb4d):$('<i>',{'class':_0x24bf90(0x19c)+_0x2e4170[_0x24bf90(0x20c)]})[_0x24bf90(0x254)](_0x5aeb4d);}else _0x5aeb4d[_0x24bf90(0x219)]({'paddingLeft':'18px'});!_0x2e4170[_0x24bf90(0x20c)]&&!_0x2e4170['label']&&_0x5aeb4d[_0x24bf90(0x230)](_0x2e4170[_0x24bf90(0x240)]);var _0x5e81e3;_0x4373a9[_0x24bf90(0x1e9)]&&(_0x5e81e3=$(_0x24bf90(0x291))['css'](_0x24bf90(0x1b8),'none')[_0x24bf90(0x1ca)](_0x24bf90(0x240),_0x2e4170[_0x24bf90(0x240)])[_0x24bf90(0x254)](_0x5aeb4d)['on'](_0x24bf90(0x221),function(_0x3dd412){_0x3dd412['preventDefault']();})),_0x5aeb4d['on']('click',function(_0x5c465f){const _0x4fd7a4=_0x24bf90;_0x5c465f[_0x4fd7a4(0x1cc)](),_0x5c465f[_0x4fd7a4(0x1f8)](),!_0x4373a9['multiple']?(_0x45893a(_0x2e4170[_0x4fd7a4(0x240)]),_0x41f023[_0x4fd7a4(0x1b7)](_0x24318e)):_0x5e81e3['prop'](_0x4fd7a4(0x173),!_0x5e81e3['prop'](_0x4fd7a4(0x173)));});}),_0x24318e['css']({'display':_0x330c86(0x237)}),_0x24318e['on'](_0x330c86(0x22e),function(_0x3d58c3){const _0x25800a=_0x330c86;if(_0x3d58c3[_0x25800a(0x283)]===0x28)_0x3d58c3[_0x25800a(0x1cc)](),$(this)[_0x25800a(0x26e)](':focus')[_0x25800a(0x202)]()['trigger'](_0x25800a(0x201));else{if(_0x3d58c3['keyCode']===0x26)_0x3d58c3['preventDefault'](),$(this)[_0x25800a(0x26e)](_0x25800a(0x1c8))[_0x25800a(0x225)]()[_0x25800a(0x18b)](_0x25800a(0x201));else _0x3d58c3[_0x25800a(0x283)]===0x1b&&(_0x3d58c3[_0x25800a(0x1cc)](),_0x41f023[_0x25800a(0x1b7)](_0x24318e));}_0x3d58c3['stopPropagation']();}),_0x24318e;},'disarmClick':![],'_showMenu'(_0x4abe8b,_0x13d54f){const _0x4abcda=_0x5416fa;if(this['disarmClick']){this['disarmClick']=![];return;}var _0x360e88=this,_0x2ced83=_0x13d54f[_0x4abcda(0x203)](),_0x136b29=_0x13d54f[_0x4abcda(0x1fa)](),_0x51c10e=_0x4abe8b[_0x4abcda(0x1fa)](),_0x6a7353=_0x136b29+_0x2ced83[_0x4abcda(0x1f2)];_0x6a7353+_0x51c10e-$(document)['scrollTop']()>$(window)[_0x4abcda(0x1fa)]()&&(_0x6a7353-=_0x6a7353+_0x51c10e-$(window)[_0x4abcda(0x1fa)]()+0x5),_0x6a7353<0x0&&(_0x4abe8b[_0x4abcda(0x1fa)](_0x51c10e+_0x6a7353),_0x6a7353=0x0),_0x4abe8b['css']({'top':_0x6a7353+'px','left':_0x2ced83[_0x4abcda(0x1ed)]+'px'}),_0x4abe8b[_0x4abcda(0x258)](0x64),this[_0x4abcda(0x190)](function(){const _0x3e2291=_0x4abcda;_0x360e88[_0x3e2291(0x24e)]['addClass']('red-ui-typedInput-focus'),$(document)['on'](_0x3e2291(0x1f4),function(_0x3c1df5){const _0x337333=_0x3e2291;!$(_0x3c1df5[_0x337333(0x1ff)])[_0x337333(0x1d2)](_0x4abe8b)[_0x337333(0x263)]&&_0x360e88[_0x337333(0x1b7)](_0x4abe8b),$(_0x3c1df5[_0x337333(0x1ff)])[_0x337333(0x1d2)](_0x13d54f)[_0x337333(0x263)]&&(_0x360e88[_0x337333(0x290)]=!![],_0x3c1df5[_0x337333(0x1cc)]());});});},'_showTypeMenu'(){const _0x298396=_0x5416fa,_0x2b1501=this;this[_0x298396(0x255)](_0x2b1501[_0x298396(0x26d)],_0x2b1501[_0x298396(0x189)]),_0x2b1501[_0x298396(0x26f)]['hide']();const _0x2184e5=_0x2b1501[_0x298396(0x288)];var _0x2e0d9f=_0x2b1501[_0x298396(0x26d)][_0x298396(0x180)](_0x298396(0x1da)+_0x2184e5+'\x27');setTimeout(function(){const _0x45663a=_0x298396;_0x2e0d9f[_0x45663a(0x18b)]('focus');},0x78);},'_initMenu'(){const _0x5e425f=_0x5416fa,_0x455664=this;_0x455664[_0x5e425f(0x234)][_0x5e425f(0x1eb)](_0x5e425f(0x182),-0x1),_0x455664['$selectTrigger']['on'](_0x5e425f(0x1bc),function(_0x209e83){_0x209e83['preventDefault']();});_0x455664[_0x5e425f(0x26d)]&&_0x455664[_0x5e425f(0x26d)][_0x5e425f(0x262)]();const _0x3e44b3=[{'label':_0x5e425f(0x230),'value':'t','title':_0x5e425f(0x1c4),'icon':_0x5e425f(0x279)},{'label':'msg.','value':'msg','title':_0x5e425f(0x27a),'icon':_0x5e425f(0x1f0)},{'label':'NodeId','value':'n','icon':_0x5e425f(0x176)},{'label':'Aliased\x20NodeId','value':'na','icon':'<i\x20class=\x22fa\x20fa-bookmark\x22/> \x20'},{'label':'NodeId\x20with\x20namespace\x20Urn','value':'nsu','icon':_0x5e425f(0x1b1)},{'label':'BrowsePath','value':'b','icon':_0x5e425f(0x1aa)},{'label':_0x5e425f(0x218),'value':'ab','icon':'<i\x20class=\x22fa\x20fa-bookmark\x22/><i\x20class=\x22fa\x20fa-fighter-jet\x22/> '}],_0x344b93=_0x549035(_0x455664[_0x5e425f(0x207)]['val']()),_0x51b5c5=_0x3e44b3[_0x5e425f(0x180)](_0x4fc498=>_0x4fc498[_0x5e425f(0x240)]===_0x344b93);_0x455664[_0x5e425f(0x1af)][_0x5e425f(0x1ee)]()['append'](_0x5e425f(0x1ac)+((_0x51b5c5===null||_0x51b5c5===void 0x0?void 0x0:_0x51b5c5['title'])||'')+_0x5e425f(0x1fb)+((_0x51b5c5===null||_0x51b5c5===void 0x0?void 0x0:_0x51b5c5[_0x5e425f(0x20c)])||'')+_0x5e425f(0x1f7)),_0x455664[_0x5e425f(0x288)]=_0x344b93;const _0x34374f=this;_0x455664['$menu']=this[_0x5e425f(0x1cb)](_0x3e44b3,{},_0x427ba8=>{const _0x3c2bff=_0x5e425f,_0x1c51bf=_0x5f0eb2(_0x427ba8);_0x1c51bf&&_0x34374f[_0x3c2bff(0x23c)](_0x1c51bf);const _0x1e57fb=_0x3e44b3[_0x3c2bff(0x180)](_0x2aefa3=>_0x2aefa3[_0x3c2bff(0x240)]===_0x427ba8);_0x455664[_0x3c2bff(0x288)]=_0x427ba8,_0x455664['$selectLabel']['empty']()['append']('<span\x20title='+((_0x1e57fb===null||_0x1e57fb===void 0x0?void 0x0:_0x1e57fb[_0x3c2bff(0x1e5)])||'')+_0x3c2bff(0x1fb)+((_0x1e57fb===null||_0x1e57fb===void 0x0?void 0x0:_0x1e57fb['icon'])||'')+_0x3c2bff(0x1f7));}),_0x455664['$menu'][_0x5e425f(0x196)](document[_0x5e425f(0x269)]),_0x455664['$menu']['hide'](),_0x455664['$selectTrigger'][_0x5e425f(0x1dd)]();},'mode'(){const _0x18cf4d=this;return _0x5f0eb2(_0x18cf4d['selectedMenuItem']);},'setMode'(_0x34abe1){const _0x48ec68=_0x5416fa,_0x3ea086=this,_0x2efe51=_0x30222c(_0x34abe1);_0x3ea086[_0x48ec68(0x288)]=_0x2efe51;},'_create'(){const _0x11887e=_0x5416fa,_0x3d89d8=this;_0x3d89d8[_0x11887e(0x207)]=this['element'],_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x219)](_0x11887e(0x20e),'none'),_0x3d89d8[_0x11887e(0x187)]=_0x3d89d8[_0x11887e(0x207)]['wrap'](_0x11887e(0x27c))['parent']()['addClass'](_0x11887e(0x18f)),_0x3d89d8[_0x11887e(0x189)]=$('<div/>'),_0x3d89d8[_0x11887e(0x189)]['addClass'](_0x11887e(0x223)),_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x1ce)](_0x3d89d8[_0x11887e(0x189)]),_0x3d89d8[_0x11887e(0x1ba)]=$(_0x11887e(0x19d))[_0x11887e(0x256)](_0x11887e(0x21d)),_0x3d89d8[_0x11887e(0x189)]['append'](_0x3d89d8[_0x11887e(0x1ba)]),_0x3d89d8['$inputGroup'][_0x11887e(0x28d)](_0x3d89d8['$input']),_0x3d89d8[_0x11887e(0x1b3)]=$(_0x11887e(0x1ea)),_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x25d)](_0x3d89d8[_0x11887e(0x1b3)]),_0x3d89d8[_0x11887e(0x1b3)]['on'](_0x11887e(0x277),function(){return _0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x54e8d1=_0x2ce0;var _0x3227e5;let _0x23e094=![],_0x154868;!_0x3d89d8['$dropdown']['is'](_0x54e8d1(0x286))&&(_0x3d89d8[_0x54e8d1(0x1df)][_0x54e8d1(0x226)](),_0x154868=yield _0x3d89d8[_0x54e8d1(0x251)](),(_0x154868!==_0x3d89d8[_0x54e8d1(0x214)]||((_0x3227e5=_0x3d89d8[_0x54e8d1(0x214)])===null||_0x3227e5===void 0x0?void 0x0:_0x3227e5['nodeId'])!==_0x154868[_0x54e8d1(0x1a4)])&&(yield _0x3d89d8[_0x54e8d1(0x27e)]()),_0x23e094=!![]),_0x3d89d8[_0x54e8d1(0x26f)]['toggle'](),_0x23e094&&(yield _0x4f2590(_0x3d89d8,_0x154868));});}),_0x3d89d8[_0x11887e(0x191)]=$(_0x11887e(0x21e)),_0x3d89d8[_0x11887e(0x207)]['after'](_0x3d89d8[_0x11887e(0x191)]),_0x3d89d8['$verifyBtn']['on'](_0x11887e(0x277),()=>{const _0x20ab2a=_0x11887e,_0x2187fc=_0x3d89d8[_0x20ab2a(0x1d1)]();if(!_0x2187fc)return;this['verify'](_0x2187fc);});const _0x340c9f=_0x29e423=>_0x22b6c9(this,void 0x0,void 0x0,function*(){const _0xb68479=_0x11887e,_0xf4cb3a=this;let _0x5795d1=_0xf4cb3a[_0xb68479(0x1d1)]();if(!_0x5795d1)return;const _0x3148bf=_0x1504a5(_0xf4cb3a),{data:_0x3edb2a,json:_0x48c220}=yield _0x45a8e3(_0x3148bf,_0x29e423);if(_0x3edb2a['status']!==0xc8)return;if(_0x48c220[_0xb68479(0x278)]['match'](/Good/)){const _0x1735bc=_0x3d22de(_0x48c220,_0x5795d1);_0xf4cb3a['$input']['val'](_0x1735bc),_0xf4cb3a['$input'][_0xb68479(0x18b)](_0xb68479(0x206));}});{_0x3d89d8[_0x11887e(0x24e)]=$(_0x11887e(0x27c)),_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x1ec)](_0x3d89d8['$uiSelect']),_0x3d89d8['$selectTrigger']=$(_0x11887e(0x21a))[_0x11887e(0x254)](_0x3d89d8[_0x11887e(0x24e)]),$(_0x11887e(0x1dc))['toggle'](!![])[_0x11887e(0x196)](_0x3d89d8[_0x11887e(0x234)]),_0x3d89d8['$selectTrigger']['on'](_0x11887e(0x277),function(_0x56e332){const _0x1586ef=_0x11887e;_0x56e332[_0x1586ef(0x1cc)](),_0x56e332[_0x1586ef(0x1f8)](),_0x3d89d8[_0x1586ef(0x1a8)]();}),_0x3d89d8[_0x11887e(0x234)]['on'](_0x11887e(0x22e),function(_0x4bc9b5){const _0x42925c=_0x11887e;_0x4bc9b5['keyCode']===0x28&&_0x3d89d8[_0x42925c(0x1a8)](),_0x4bc9b5[_0x42925c(0x1f8)]();})['on']('focus',function(){const _0x5e0e65=_0x11887e;_0x3d89d8['$uiSelect']['addClass'](_0x5e0e65(0x21f));})['on'](_0x11887e(0x1ad),function(){const _0x17cea1=_0x11887e;_0x3d89d8[_0x17cea1(0x24e)]['removeClass'](_0x17cea1(0x21f));}),_0x3d89d8['$selectLabel']=$(_0x11887e(0x17a))[_0x11887e(0x196)](_0x3d89d8[_0x11887e(0x234)]);}this[_0x11887e(0x1a7)]();!_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x1eb)]('placeholder')&&_0x3d89d8[_0x11887e(0x207)][_0x11887e(0x1eb)](_0x11887e(0x266),_0x11887e(0x17b));_0x3d89d8[_0x11887e(0x1df)]=$(_0x11887e(0x1d9)),_0x3d89d8[_0x11887e(0x1df)][_0x11887e(0x226)](),_0x3d89d8[_0x11887e(0x189)][_0x11887e(0x28d)](_0x3d89d8[_0x11887e(0x1df)]),_0x3d89d8['$dropdown']=$(_0x11887e(0x19d))[_0x11887e(0x256)](_0x11887e(0x20a))[_0x11887e(0x226)]()[_0x11887e(0x196)](_0x3d89d8[_0x11887e(0x189)]),_0x3d89d8['$tree']=$('<ul\x20class=\x22sterfive-tree\x22></ul>')[_0x11887e(0x196)](_0x3d89d8['$dropdown']),this[_0x11887e(0x27e)]();const _0x45f16c=(_0x59abec,_0x146dee)=>{const _0x12c62b=_0x11887e,_0x370cec=0x14,_0x273855=0x14,_0x1d9f86=_0x59abec[_0x12c62b(0x203)](),_0x3c425f=_0x146dee;if(_0x3c425f[_0x12c62b(0x281)]>=_0x1d9f86[_0x12c62b(0x1ed)]&&_0x3c425f[_0x12c62b(0x281)]<=_0x1d9f86['left']+_0x370cec&&_0x3c425f[_0x12c62b(0x28b)]>=_0x1d9f86['top']&&_0x3c425f['pageY']<=_0x1d9f86[_0x12c62b(0x1f2)]+_0x273855)return!![];return![];},_0x328fce=_0x15400a=>_0x22b6c9(this,void 0x0,void 0x0,function*(){const _0x29b9e7=_0x11887e;if(_0x15400a[_0x29b9e7(0x28a)]('expandable'))_0x22b1e6(_0x3d89d8,_0x15400a);else{if(_0x15400a[_0x29b9e7(0x28a)](_0x29b9e7(0x186)))_0x15400a['children']('ul')[_0x29b9e7(0x28f)](),_0x15400a[_0x29b9e7(0x227)](_0x29b9e7(0x1ab));else{if(_0x15400a[_0x29b9e7(0x26e)]('ul')[_0x29b9e7(0x26e)]()[_0x29b9e7(0x263)]>0x0)_0x15400a['children']('ul')[_0x29b9e7(0x28f)](),_0x15400a[_0x29b9e7(0x227)]('expandable\x20expanded');else;}}});_0x3d89d8[_0x11887e(0x213)]['on']('dblclick','li',function(_0x4cfba9){const _0x904ad6=_0x11887e;var _0x1f9ea7,_0x388fb7;_0x4cfba9['stopPropagation']();let _0x505494=$(this);if(_0x45f16c(_0x505494,_0x4cfba9))_0x328fce(_0x505494);else{const _0x14bd5b=_0x505494['data'](_0x904ad6(0x240)),_0xb7939a=_0x505494[_0x904ad6(0x1ca)](_0x904ad6(0x1f9));if(_0x3d89d8['options'][_0x904ad6(0x25f)]&&!_0x3d89d8[_0x904ad6(0x1ae)][_0x904ad6(0x25f)](_0xb7939a))return;_0x3d89d8['$input']['data'](_0x904ad6(0x1f9),_0xb7939a),((_0x1f9ea7=_0xb7939a[_0x904ad6(0x210)])===null||_0x1f9ea7===void 0x0?void 0x0:_0x1f9ea7[_0x904ad6(0x230)])||((_0x388fb7=_0xb7939a[_0x904ad6(0x24d)])===null||_0x388fb7===void 0x0?void 0x0:_0x388fb7['name'])||_0xb7939a['nodeId'][_0x904ad6(0x1e1)]();let _0x289956=_0x3d89d8['mode']();!_0x289956&&(_0x289956=_0x904ad6(0x1a4),_0x3d89d8[_0x904ad6(0x222)](_0x289956)),_0x340c9f(_0x14bd5b)[_0x904ad6(0x1c1)](()=>{const _0x15f805=_0x904ad6;_0x3d89d8[_0x15f805(0x26f)][_0x15f805(0x226)]();})[_0x904ad6(0x1e2)](_0x4bd8fd=>{const _0x22c839=_0x904ad6;_0x3d89d8[_0x22c839(0x26f)][_0x22c839(0x226)]();});}}),_0x3d89d8[_0x11887e(0x213)]['on']('click','li',function(_0x54b01b){const _0x92a7b0=_0x11887e;_0x54b01b[_0x92a7b0(0x1f8)]();let _0x5ec4a3=$(this);_0x45f16c(_0x5ec4a3,_0x54b01b)&&_0x328fce(_0x5ec4a3),_0x5b0973(_0x3d89d8,_0x5ec4a3);}),$(document)['on'](_0x11887e(0x277),function(_0x52628c){const _0x5bee51=_0x11887e;!$(_0x52628c[_0x5bee51(0x1ff)])[_0x5bee51(0x1d2)](_0x3d89d8['$combo'])['length']&&_0x3d89d8[_0x5bee51(0x26f)][_0x5bee51(0x226)]();});}});},_0xb01499=()=>{const _0x19d552=_0x165482,_0x2b4b15=$(_0x19d552(0x208)),_0x553b8c=_0x2b4b15[_0x19d552(0x294)](),_0x1617f4=RED[_0x19d552(0x1c7)][_0x19d552(0x1d4)](_0x553b8c);if(!_0x1617f4)return undefined;const {endpoint:_0x11dee3,securityMode:_0x1bcf2a,securityPolicy:_0x3df4db,userIdentityType:_0xfa8046,credentials:_0x44eada,namespaceAliases:_0x54749b}=_0x1617f4,_0x2c8fe1={'endpoint':_0x11dee3,'securityMode':_0x1bcf2a,'securityPolicy':_0x3df4db,'userIdentityType':_0xfa8046,'credentials':_0x44eada,'namespaceAliases':_0x54749b};return _0x2c8fe1;},_0x5c445f=()=>{const _0x3c474a=_0x165482,_0x3af4d0=$('#node-input-endpoint'),_0x2ed93c=_0x3af4d0[_0x3c474a(0x294)](),_0x29aa0b=_0xb01499();if(!_0x29aa0b)return undefined;const _0x2ddb57=_0x29aa0b['namespaceAliases'];return Object[_0x3c474a(0x194)]({'namespaceAliases':_0x2ddb57,'id':_0x2ed93c},_0x29aa0b);},_0x1d2d1b=()=>{return{'endpointNode':_0x5c445f};},_0x5d5697=()=>{const _0x3bd5ab=_0x165482,_0x17a19d=$(_0x3bd5ab(0x224));if(_0x17a19d[_0x3bd5ab(0x263)]){const _0x39552d=$(_0x3bd5ab(0x19e),{'src':_0x3bd5ab(0x246),'scrolling':'no','style':_0x3bd5ab(0x259),'allowtransparency':'true','width':_0x3bd5ab(0x260),'height':_0x3bd5ab(0x197)});_0x17a19d[_0x3bd5ab(0x28d)](_0x39552d),_0x39552d[_0x3bd5ab(0x219)]({'position':_0x3bd5ab(0x21b),'right':'20px','bottom':_0x3bd5ab(0x261)});}};RED[_0x165482(0x1c7)][_0x165482(0x188)](_0x165482(0x235),{'category':_0x165482(0x267),'color':'#C0DEED','align':_0x165482(0x1d7),'icon':'../../icons/opcuanodeLogo.png','paletteLabel':'write','defaults':{'inputs':{'value':0x1},'output':{'value':0x4},'name':{'value':''},'endpoint':{'value':'','required':!![],'type':_0x165482(0x22f)},'attributeId':{'value':'Value','required':!![]},'nodeId':{'value':'','required':![]}},'inputs':0x1,'outputs':0x1,'label'(){const _0x4ad798=_0x165482;return this[_0x4ad798(0x249)]||_0x4ad798(0x19f);},'labelStyle'(){const _0x226eea=_0x165482;return this['name']?_0x226eea(0x247):'';},'oneditprepare'(){const _0x54764c=_0x165482,_0x1f4ec8=this;_0x1aa1b8(),_0x5d5697(),_0x1f4ec8[_0x54764c(0x183)]=0x1;const _0x3f975f=$(_0x54764c(0x20d));_0x3f975f[_0x54764c(0x1f1)](Object[_0x54764c(0x194)](Object[_0x54764c(0x194)]({},_0x1d2d1b()),{'isSelectable'(_0x6f103c){const _0x500e7a=_0x54764c;return _0x6f103c[_0x500e7a(0x1a6)]===_0x500e7a(0x1d3);}}));},'oneditsave'(){}});}()));function _0x2ce0(_0x1579c7,_0x1be6b6){const _0x1ea430=_0x1ea4();return _0x2ce0=function(_0x2ce04f,_0x3b6c1f){_0x2ce04f=_0x2ce04f-0x173;let _0x413200=_0x1ea430[_0x2ce04f];return _0x413200;},_0x2ce0(_0x1579c7,_0x1be6b6);}function _0x1ea4(){const _0x9f46bd=['ns=0;i=46','indexOf','title','localeCompare','Method','TypeDefinition','multiple','<button\x20title=\x22open\x20OPCUA\x20AddressSpace\x20Browser\x22><i\x20class=\x22fa\x20fa-sitemap\x22></i></button>','attr','before','left','empty','expandable','<i\x20class=\x22fa\x20fa-envelope-open-o\x22/>','nodeBrowser','top','Object','mousedown.red-ui-typedInput-close-property-select','<li>error\x20','DarkOrange','</span>','stopPropagation','reference','height','> \x20','2532550YUQkhi','341UHtAkR','off','target',');\x20-webkit-mask-image:\x20url(','focus','next','offset','/checkNodeId','each','change','$input','#node-input-endpoint','6cUfHoy','sterfive-dropdown','ReferenceType','icon','#node-input-nodeId','border','elements','displayName','typeDefinition','ns=0;i=35','$tree','currentParent',';\x22></i>\x20','selected','ns=0;i=45','Aliased\x20Browse\x20Path','css','<button\x20type=\x22button\x22\x20tabindex=\x220\x22></button>','absolute','nodeId_aliased','sterfive-input-group','<button\x20title=\x22verify\x20nodeId\x20or\x20browsePath\x22><i\x20class=\x22fa\x20fa-refresh\x22></i></button>','red-ui-typedInput-focus','li[key=\x22','mousedown','setMode','sterfive-combo-box','.red-ui-tray-body','prev','hide','toggleClass',':first','2390904lmLXIY','nodeIds','removeClass','fa-list-alt','10107FREXGe','keydown','OpcUa-Endpoint2','text','Good','nsuNodeID','Objects','$selectTrigger','OpcUa-Client2-Write','nsu\x20nodeId:\x20','none','function','forEach','mask-image:\x20url(','push','verify','sterfive-input-error','red-ui-typedInput-icon','sterfive.nodeBrowser','value','HasChild','statusCode:\x20','message','3YtoHpw','namespaceAliases','/opcua-for-node-red/support-frame.html','node_label_italic','application/json','name','<li><i\x20class=\x22fa\x20fa-error\x22\x20style=\x22color:red;\x22></i>no\x20reference\x20!<ul></ul></li>','VariableType','/walk-backward','browseName','$uiSelect','nodeId_nsu','position','resolveParentNode','rgba(61,\x2060,\x204,\x200.525)','BrowseName','prependTo','_showMenu','addClass','!!failure!!','slideDown','background-color:transparent;overflow:hidden;border:3px','><i\x20class=\x22fa\x20','browsePath','SandyBrown','after','17526hPSoXR','isSelectable','180px','16px','remove','length','12770HYpjhR','widget','placeholder','opcua','.tree-text:first','body','/opcua-for-node-red','callback','aliasedBrowsePath','$menu','children','$dropdown','HasSubtype','Unspecified','relativePath','__parentNode','2107iRQJEf','</span><ul></ul></li>','ns=0;i=47','click','statusCode','<i\x20class=\x22fa\x20fa-font\x22/i>\x20','node\x20id\x20or\x20\x20browse\x20path\x20comes\x20from\x20injected\x20msg\x20parameter','fa-object-group','<div>','DodgerBlue','reset','<div\x20class=\x22spinner\x22></div>','err','pageX','opc.tcp://opcuademo.sterfive.com:26543','keyCode','fa-cog','Inverse',':visible','opts','selectedMenuItem','aliased\x20browsePath:\x20','hasClass','pageY','fetched','append','DataType','toggle','disarmClick','<input\x20type=\x22checkbox\x22>','error','View','val','aliased\x20NodeId:\x20','throw','baseUrl','ns=0;i=40','checked','nsu','ObjectType','<i\x20class=\x22fa\x20fa-tag\x22/>1\x20 \x20','fetching\x20failed\x20with\x20error','bp_indexed','status','<span\x20class=\x22red-ui-typedInput-type-label\x22></span>','enter\x20a\x20nodeId\x20or\x20a\x20browsePath\x20','label','ns=0;i=34','<li\x20key=\x22','done','find','parentNode','tabindex','inputs','1060332ZrVYdS','aliasedNodeId','expanded','$elementDiv','registerType','$combo','SeaGreen','trigger','stringify','\x22\x20style=\x22color:','HasTypeDefinition','main-wrapper','_delay','$verifyBtn','sterfive-info','references','assign','json','appendTo','30px','CadetBlue','ns=0;i=61','already\x20loading','browseResult','red-ui-typedInput-icon\x20','<div/>','<iframe></iframe>','OPCUA\x20Client\x20Write','statusText','filter','nodeId:\x20','DisplayName','nodeId','fa-sliders','nodeClass','_initMenu','_showTypeMenu','ns=0;i=85','<i\x20class=\x22fa\x20fa-tag\x22/><i\x20class=\x22fa\x20fa-fighter-jet\x22/> ','expandable\x20expanded','<span\x20title=','blur','options','$selectLabel','fa-question','<i\x20class=\x22fa\x20fa-id-card\x22/> \x20','isTypeRef','$toggleTreeBtn','loading','i=61','li\x20>\x20.tree-text','_hideMenu','pointer-events','bp_aliased','$inputGroup','<i>','mousedown.red-ui-typedInput-focus-block','Forward','IsForward','match','log','then','animate','endpointNode','Value\x20is\x20not\x20verified','Organizes','8160096govOJn','nodes',':focus','HasComponent','data','_createMenu','preventDefault','POST','replaceWith','endpoint','Both','mode','closest','Variable','node','join','HasProperty','right','referenceTypeId','<div\x20class=\x22sterfive-info-text\x22></div>','[value=\x27','Invalid','<i\x20class=\x22red-ui-typedInput-icon\x20fa\x20fa-caret-down\x22></i>','show','prop','$info','652202QMRoXg','toString','catch'];_0x1ea4=function(){return _0x9f46bd;};return _0x1ea4();}
</script>
<script type="text/x-red" data-template-name="OpcUa-Client2-Write">
<h3>OpcUa Write</h3>
<div class="form-row">
<label for="node-input-name"><i class="icon-tasks"></i>Name</label>
<input type="text" id="node-input-name" placeholder="enter the friendly name of the node" />
</div>
<div class="form-row">
<label for="node-input-endpoint"><i class="icon-tasks"></i> Endpoint</label>
<input type="text" id="node-input-endpoint" placeholder="opc.tcp://localhost:4334" />
</div>
<div class="form-row">
<label for="node-input-attributeId">AttributeId</label>
<select type="text" id="node-input-attributeId" style="width: 72%">
<option selected value="Value">Value</option>
</select>
</div>
<div class="form-row">
<label for="node-input-nodeId" style="width: 100%"><i class="fa fa-tag"></i><span>NodeId</span></label>
<input type="text" id="node-input-nodeId" placeholder="ns=2;s=Variable1 or empty" />
</div>
</script>
<script type="text/markdown" data-help-name="OpcUa-Client2-Write">
perform a Write action on a OpcUA Server
#### Write action
you can either
- Inject your OPC UA address (NodeId) by the `topic` attribute of an Inject node or with a OpcUa-Item.
- Or use the specify nodeId
the value has to be passed as a `payload`
</script>
//# sourceMappingURL=OpcUa-Client2-Write.html.map