UNPKG

react-ui-mat

Version:

- ANIMATE - BADGES ( success, danger, info, light, primary, green ) - BEHAVIOR - BUTTONS - CHECKBOX - COLLAPSE - CONTEXT PANEL - DATE PICKER - DATEPICKER - DATEUTIL - DIVIDER - DRAGABLE MODAL - INCORRECT_ENTRY - INPUT - INPUT_FIELDS - MULTISELECT - MUPLAY

1 lines 9.15 kB
'use strict';var a0_0x41337c=this&&this['__createBinding']||(Object['create']?function(_0x4e1fcd,_0x8812fd,_0x23e338,_0xa158a8){if(_0xa158a8===undefined)_0xa158a8=_0x23e338;var _0x24f150=Object['getOwnPropertyDescriptor'](_0x8812fd,_0x23e338);if(!_0x24f150||('get'in _0x24f150?!_0x8812fd['__esModule']:_0x24f150['writable']||_0x24f150['configurable'])){const _0x46c90d={};_0x46c90d['enumerable']=!![],_0x46c90d['get']=function(){return _0x8812fd[_0x23e338];},_0x24f150=_0x46c90d;}Object['defineProperty'](_0x4e1fcd,_0xa158a8,_0x24f150);}:function(_0x9fc6c6,_0x474eaf,_0x1fc995,_0x91294){if(_0x91294===undefined)_0x91294=_0x1fc995;_0x9fc6c6[_0x91294]=_0x474eaf[_0x1fc995];}),a0_0xb6d945=this&&this['__setModuleDefault']||(Object['create']?function(_0x26c08f,_0x2df98f){const _0x7bc097={};_0x7bc097['enumerable']=!![],_0x7bc097['value']=_0x2df98f,Object['defineProperty'](_0x26c08f,'default',_0x7bc097);}:function(_0x32614f,_0x5b2243){_0x32614f['default']=_0x5b2243;}),a0_0x4f0623=this&&this['__importStar']||function(_0x2a446f){if(_0x2a446f&&_0x2a446f['__esModule'])return _0x2a446f;var _0x4add7f={};if(_0x2a446f!=null){for(var _0x324293 in _0x2a446f)if(_0x324293!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x2a446f,_0x324293))a0_0x41337c(_0x4add7f,_0x2a446f,_0x324293);}return a0_0xb6d945(_0x4add7f,_0x2a446f),_0x4add7f;},a0_0x2b0b66=this&&this['__importDefault']||function(_0x4da63b){return _0x4da63b&&_0x4da63b['__esModule']?_0x4da63b:{'default':_0x4da63b};};const a0_0x5c7c19={};a0_0x5c7c19['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5c7c19),exports['TooltipIcon']=exports['Tooltip']=void 0x0;const a0_0x7d6ed4=require('react/jsx-runtime'),a0_0x22f5cf=a0_0x4f0623(require('react')),a0_0x364c8b=a0_0x2b0b66(require('react-dom/client'));function a0_0x9e1908(_0x3a0aca){try{return _0x3a0aca();}catch(_0x5d1f6e){return null;}}const a0_0x3027b0=((()=>{let _0x43b370=0x1869f,_0x35a3e9;const _0xa62e1={},_0x291f27={},_0x221aca={};function _0xa54e1d(){if(_0x35a3e9)return _0x35a3e9;if(document){for(let _0x1fd071=0x0;_0x1fd071<document['body']['children']['length'];_0x1fd071++){const _0x2e182c=document['body']['children']['item'](_0x1fd071);if(_0x2e182c['id']==='matt')return _0x2e182c;}const _0x4df3a9=document['createElement']('div');_0x4df3a9['id']='matt',document['body']['appendChild'](_0x4df3a9);}return _0xa54e1d();}const _0x3dc70e={};_0x3dc70e['direction']='bottom';function _0x7429b8(_0x3551bc,_0xc2c48e=_0x3dc70e){const _0x5b4d65={};return _0x5b4d65['targetRef']=_0x3551bc,_0x5b4d65['single']=_0xc2c48e?.['single']||'',_0x5b4d65['direction']=_0xc2c48e?.['direction']||'bottom',_0x5b4d65['message']=_0xc2c48e?.['message']||'',_0x5b4d65['description']=_0xc2c48e?.['description']||'',_0x5b4d65['className']=_0xc2c48e?.['className']||'',_0x5b4d65['children']=_0xc2c48e?.['children'],_0x5b4d65['norw']=_0xc2c48e?.['norw']||![],_0x5b4d65['noStrMaxWidth']=_0xc2c48e?.['noStrMaxWidth']||![],_0x5b4d65;}function _0x57f68d(_0x2ff148){a0_0x9e1908(()=>_0xa62e1[_0x2ff148]['unmount']()),a0_0x9e1908(()=>_0x291f27[_0x2ff148]['remove']()),a0_0x9e1908(()=>_0x221aca[_0x2ff148]()),a0_0x9e1908(()=>{delete _0xa62e1[_0x2ff148],delete _0x291f27[_0x2ff148],delete _0x221aca[_0x2ff148];});}const _0x1d6522=()=>{const _0x4dee73=a0_0x22f5cf['useState'](),_0x48d1b3=a0_0x22f5cf['useRef'](null);function _0x6efa92(){window&&clearTimeout(_0x48d1b3['current']);}function _0x5e64df(){window&&(clearTimeout(_0x48d1b3['current']),_0x48d1b3['current']=setTimeout(()=>{_0x4dee73[0x1](new Date()['getTime']()),_0x48d1b3['current']=null;},0x22b));}const _0x196e23={};return _0x196e23['update']=_0x5e64df,_0x196e23['clear']=_0x6efa92,_0x196e23;};function _0xd96240(_0x1e1c34){const _0x105504=a0_0x22f5cf['useRef'](null),_0x4949d9=_0x1e1c34['targetRef'],_0x2ab651=_0x1d6522();function _0x523375(){const _0x148a56=_0x4949d9['getBoundingClientRect'](),_0x4485e9=_0x105504['current']?.['getBoundingClientRect'](),_0x55b9d4={};_0x55b9d4['position']='absolute',_0x55b9d4['zIndex']=_0x43b370+_0x1e1c34['index'],_0x55b9d4['display']='unset',_0x55b9d4['opacity']=0x1,_0x55b9d4['textAlign']=typeof _0x1e1c34['message']==='string'?'center':undefined,_0x55b9d4['maxWidth']=typeof _0x1e1c34['message']==='string'&&!_0x1e1c34['noStrMaxWidth']?'23rem':undefined;const _0x9f2fa8=_0x55b9d4;if(_0x1e1c34['direction']=='left')_0x9f2fa8['top']=_0x148a56['top']+_0x148a56['height']/0x2,_0x9f2fa8['right']=_0x148a56['left']-0x2,_0x9f2fa8['transform']='translateY(-50%)';else{if(_0x1e1c34['direction']=='top')_0x9f2fa8['bottom']=window?.['innerHeight']-_0x148a56['top']+0x2,_0x9f2fa8['left']=_0x148a56['left']+_0x148a56['width']/0x2,_0x9f2fa8['transform']='translateX(-50%)';else{if(_0x1e1c34['direction']=='right')_0x9f2fa8['top']=_0x148a56['top']+_0x148a56['height']/0x2,_0x9f2fa8['left']=_0x148a56['right']+0x2,_0x9f2fa8['transform']='translateY(-50%)';else _0x1e1c34['direction']=='bottom'&&(_0x9f2fa8['top']=_0x148a56['bottom']+0x2,_0x9f2fa8['left']=_0x148a56['left']+_0x148a56['width']/0x2,_0x9f2fa8['transform']='translateX(-50%)');}}return _0x4485e9&&(_0x4485e9['left']<0x0&&(_0x9f2fa8['left']=0x2+_0x4485e9['width']/0x2,_0x9f2fa8['right']=undefined),_0x4485e9['top']<0x0&&(_0x9f2fa8['top']=0x2+_0x4485e9['height']/0x2,_0x9f2fa8['bottom']=undefined),_0x4485e9['right']>window?.['innerWidth']&&(_0x9f2fa8['left']=undefined,_0x9f2fa8['right']=0x2,_0x9f2fa8['transform']=undefined),_0x4485e9['bottom']>window?.['innerHeight']&&(_0x9f2fa8['top']=undefined,_0x9f2fa8['bottom']=0x2+_0x4485e9['height']/0x2)),_0x9f2fa8;}return a0_0x22f5cf['useEffect'](()=>{return _0x2ab651['update'](),()=>{_0x2ab651['clear']();};},[_0x1e1c34]),(0x0,a0_0x7d6ed4['jsx'])('div',{'ref':_0x105504,'className':_0x1e1c34['className']+'\x20d-tooltiptext','style':_0x523375(),'children':_0x1e1c34['message']});}function _0x4d05ee(_0x40b2ec,_0x59df1a){const _0x552f31=_0x59df1a['single'],_0x3f0868=Object['keys'](_0xa62e1)['length'];!_0x3f0868&&document?.['getElementById']('matt')&&(a0_0x9e1908(()=>document?.['getElementById']('matt')['childNodes']['forEach'](_0x5579ba=>_0x5579ba['remove']())),a0_0x9e1908(()=>_0xa54e1d()['childNodes']['forEach'](_0x760b29=>_0x760b29['remove']())));const _0x2a8c64=_0xa54e1d();_0x57f68d(_0x552f31);const _0x1aec4a=_0x7429b8(_0x40b2ec,_0x59df1a);_0x1aec4a['index']=_0x3f0868,_0x1aec4a['uniqueId']=String(_0x552f31||new Date()['toISOString']());const _0x216e0d=document?.['createElement']('div');_0x2a8c64['appendChild'](_0x216e0d);const _0x3b0ed5=a0_0x364c8b['default']['createRoot'](_0x216e0d);return _0x3b0ed5['render'](a0_0x22f5cf['createElement'](_0xd96240,_0x1aec4a)),_0xa62e1[_0x1aec4a['uniqueId']]=_0x3b0ed5,_0x291f27[_0x1aec4a['uniqueId']]=_0x216e0d,_0x1aec4a['uniqueId'];}function _0x462dc3(_0x1a4c51,_0x379375){return a0_0x9e1908(()=>_0x4d05ee(_0x1a4c51,_0x379375));}function _0x474d48(){a0_0x9e1908(()=>{Object['keys'](_0xa62e1)['forEach'](_0x1035a6=>{_0x57f68d(_0x1035a6);}),Object['keys'](_0x291f27)['forEach'](_0x50ba7c=>{_0x57f68d(_0x50ba7c);});});}function _0x3a20bd(_0x5fd3aa,_0x45dd93){return _0x462dc3(_0x5fd3aa,_0x45dd93);}function _0x47a64e(_0xcfaa49){_0x57f68d(_0xcfaa49);}function _0x3f9410(){_0x474d48();}function _0x5001e5(_0x228209){return Number['isInteger'](_0x228209)&&_0x228209>0x0&&(_0x43b370=_0x228209),_0x43b370;}const _0x49c69f={};return _0x49c69f['showMTooltip']=_0x3a20bd,_0x49c69f['closeMTooltip']=_0x47a64e,_0x49c69f;})());function a0_0x2a2f53(_0x3e3d55){const _0x1df8fa=a0_0x22f5cf['useRef']('');function _0x2d4de9(){a0_0x9e1908(()=>{_0x3e3d55['onActive']&&_0x3e3d55['onActive']();});}function _0xf6bea9(){a0_0x9e1908(()=>{window&&setTimeout(()=>{a0_0x9e1908(()=>{_0x3e3d55['onDeactive']&&_0x3e3d55['onDeactive']();});},0x1f4);});}function _0x5c6f90(_0x280bac){a0_0x9e1908(()=>a0_0x3027b0['closeMTooltip'](_0x1df8fa['current'])),a0_0x9e1908(()=>{_0x1df8fa['current']=a0_0x3027b0['showMTooltip'](_0x280bac['currentTarget'],_0x3e3d55);}),_0x2d4de9();}function _0x17edd5(_0x164e00){a0_0x9e1908(()=>a0_0x3027b0['closeMTooltip'](_0x1df8fa['current'])),a0_0x9e1908(()=>{_0x1df8fa['current']=a0_0x3027b0['showMTooltip'](_0x164e00['currentTarget'],_0x3e3d55);}),_0x2d4de9();}function _0x3fc469(){a0_0x9e1908(()=>a0_0x3027b0['closeMTooltip'](_0x1df8fa['current'])),_0xf6bea9();}a0_0x22f5cf['useEffect'](()=>{return()=>{a0_0x9e1908(()=>a0_0x3027b0['closeMTooltip'](_0x1df8fa['current']));};},[]);const _0x418381={};return _0x418381['className']=_0x3e3d55['containerClassName']+'\x20'+(_0x3e3d55['norw']===!![]?'':'d-tooltip'),_0x418381['onMouseEnter']=_0x5c6f90,_0x418381['onMouseLeave']=_0x3fc469,_0x418381['onTouchStart']=_0x17edd5,_0x418381['onTouchEnd']=_0x3fc469,_0x418381['children']=_0x3e3d55['children'],(0x0,a0_0x7d6ed4['jsx'])('div',_0x418381);}function a0_0x4a2cc8(_0x50e0bd){return a0_0x2a2f53(_0x50e0bd);}exports['Tooltip']=a0_0x4a2cc8;function a0_0x423d0a(_0x4006f5){const _0x4a5eb6={};_0x4a5eb6['cursor']='help';const _0x3c5dc1={};return _0x3c5dc1['style']=_0x4a5eb6,_0x3c5dc1['children']='ℹ️',(0x0,a0_0x7d6ed4['jsx'])(a0_0x4a2cc8,{..._0x4006f5,'children':(0x0,a0_0x7d6ed4['jsx'])('span',_0x3c5dc1)});}function a0_0x5cf967(_0x29817a){return a0_0x423d0a(_0x29817a);}exports['TooltipIcon']=a0_0x5cf967;