react-ui-mat 5.80.95 → 5.80.97
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/dist/Animate.js +1 -1
- package/dist/Appip.js +1 -1
- package/dist/Badges.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/CardSection.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Circular.js +1 -1
- package/dist/Collapse.js +1 -1
- package/dist/Context.js +1 -1
- package/dist/DatePicker.js +1 -1
- package/dist/DateUtil.js +1 -1
- package/dist/Divider.js +1 -1
- package/dist/DraggableModal.js +1 -1
- package/dist/DraggablePanel.js +1 -1
- package/dist/FilterPanel.js +1 -1
- package/dist/Groupset.js +1 -1
- package/dist/Icons.js +1 -1
- package/dist/IncorrectEntry.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/InputFields.js +1 -1
- package/dist/MKPlayer.js +1 -1
- package/dist/MUPlayer.js +1 -1
- package/dist/Multiselect.js +1 -1
- package/dist/Notes.js +1 -1
- package/dist/Numeral.js +1 -1
- package/dist/OvView.js +1 -1
- package/dist/Paginator.js +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/Phone.js +1 -1
- package/dist/Picker.js +1 -1
- package/dist/Progress.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/Rate.js +1 -1
- package/dist/ReceiptCapture.js +1 -1
- package/dist/SearchSelect.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/SortDirection.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/common.js +1 -1
- package/dist/constant.js +1 -1
- package/dist/dummy-sw.js +1 -1
- package/dist/index.js +1 -1
- package/dist/logger.js +1 -1
- package/dist/reactuimat.css +0 -4
- package/dist/types.base.js +1 -1
- package/dist/types.js +1 -1
- package/dist/typesout.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/Groupset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x22ea7f={};a0_0x22ea7f['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x22ea7f),exports['Groupset']=void 0x0;const a0_0x4a24bb=require('react/jsx-runtime');function a0_0x2e69ba({label:_0x306c3b,labelClassName:labelClassName='',className:className='',..._0x466dab}){const _0x5b9ffb={};return _0x5b9ffb['className']='mtgrouplabel\x20'+labelClassName,_0x5b9ffb['children']=_0x306c3b,(0x0,a0_0x4a24bb['jsxs'])('fieldset',{'className':'mtgroupset\x20'+className,..._0x466dab,'children':[(0x0,a0_0x4a24bb['jsx'])('legend',_0x5b9ffb),_0x466dab['children']]});}function a0_0x5b0ce0(_0x54157c){return a0_0x2e69ba(_0x54157c);}exports['Groupset']=a0_0x5b0ce0;
|
package/dist/Icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x2bf160={};a0_0x2bf160['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2bf160),exports['WarningIcon']=exports['BoxIcon']=exports['CloseIcon']=exports['UpIcon']=exports['DownIcon']=void 0x0;const a0_0x171e9c=require('react/jsx-runtime');function a0_0x102b80(_0x4f39dd){const _0x13f28e={};return _0x13f28e['strokeLinecap']='round',_0x13f28e['strokeLinejoin']='round',_0x13f28e['strokeWidth']='3',_0x13f28e['d']='M19\x209l-7\x207-7-7',(0x0,a0_0x171e9c['jsx'])('svg',{'onClick':_0x4f39dd['onClick'],'className':'d-select-fc-down\x20'+_0x4f39dd['className'],'width':_0x4f39dd['width']||0x13,'height':_0x4f39dd['height']||0xe,'strokeWidth':0x3,'fill':'none','stroke':'currentColor','viewBox':'0\x200\x2024\x2024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0x171e9c['jsx'])('path',_0x13f28e)});}exports['DownIcon']=a0_0x102b80;function a0_0x325622(_0x442bca){const _0x36d069={};_0x36d069['transform']='rotate(180deg)';const _0x5b35d4={};return _0x5b35d4['strokeLinecap']='round',_0x5b35d4['strokeLinejoin']='round',_0x5b35d4['strokeWidth']='3',_0x5b35d4['d']='M19\x209l-7\x207-7-7',(0x0,a0_0x171e9c['jsx'])('svg',{'onClick':_0x442bca['onClick'],'className':'d-select-fc-down\x20'+_0x442bca['className'],'width':_0x442bca['width']||0x13,'height':_0x442bca['height']||0xe,'strokeWidth':0x3,'style':_0x36d069,'fill':'none','stroke':'currentColor','viewBox':'0\x200\x2024\x2024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0x171e9c['jsx'])('path',_0x5b35d4)});}exports['UpIcon']=a0_0x325622;function a0_0x2d2c2b(_0x1c9f9b){const _0x32b87a={};return _0x32b87a['d']='M563.8\x20512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7\x200-9.2\x202.1-12.3\x205.7L511.6\x20449.8\x20295.1\x20191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8\x200-10.5\x207.9-6.1\x2013.1L459.4\x20512\x20196.9\x20824.9A7.95\x207.95\x200\x200\x200\x20203\x20838h79.8c4.7\x200\x209.2-2.1\x2012.3-5.7l216.5-258.1\x20216.5\x20258.1c3\x203.6\x207.5\x205.7\x2012.3\x205.7h79.8c6.8\x200\x2010.5-7.9\x206.1-13.1L563.8\x20512z',(0x0,a0_0x171e9c['jsx'])('svg',{'onClick':_0x1c9f9b['onClick'],'className':'d-select-fc-close\x20'+_0x1c9f9b['className'],'width':_0x1c9f9b['width']||'1em','height':_0x1c9f9b['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'3','viewBox':'0\x200\x201024\x201024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0x171e9c['jsx'])('path',_0x32b87a)});}exports['CloseIcon']=a0_0x2d2c2b;function a0_0x382a3c(_0x197b21){const _0x13db14={};return _0x13db14['d']='M4.98\x204a.5.5\x200\x200\x200-.39.188L1.54\x208H6a.5.5\x200\x200\x201\x20.5.5\x201.5\x201.5\x200\x201\x200\x203\x200A.5.5\x200\x200\x201\x2010\x208h4.46l-3.05-3.812A.5.5\x200\x200\x200\x2011.02\x204H4.98zm9.954\x205H10.45a2.5\x202.5\x200\x200\x201-4.9\x200H1.066l.32\x202.562a.5.5\x200\x200\x200\x20.497.438h12.234a.5.5\x200\x200\x200\x20.496-.438L14.933\x209zM3.809\x203.563A1.5\x201.5\x200\x200\x201\x204.981\x203h6.038a1.5\x201.5\x200\x200\x201\x201.172.563l3.7\x204.625a.5.5\x200\x200\x201\x20.105.374l-.39\x203.124A1.5\x201.5\x200\x200\x201\x2014.117\x2013H1.883a1.5\x201.5\x200\x200\x201-1.489-1.314l-.39-3.124a.5.5\x200\x200\x201\x20.106-.374l3.7-4.625z',(0x0,a0_0x171e9c['jsx'])('svg',{'className':'d-box-icon\x20'+_0x197b21['className'],'width':_0x197b21['width']||'1em','height':_0x197b21['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'0','viewBox':'0\x200\x2016\x2016','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0x171e9c['jsx'])('path',_0x13db14)});}exports['BoxIcon']=a0_0x382a3c;function a0_0x2dab8a(_0x2f3509){const _0x49dd0e={};return _0x49dd0e['d']='M228.9\x2079.9L51.8\x20403.1C40.6\x20423.3\x2055.5\x20448\x2078.9\x20448h354.3c23.3\x200\x2038.2-24.7\x2027.1-44.9L283.1\x2079.9c-11.7-21.2-42.5-21.2-54.2\x200zM273.6\x20214L270\x20336h-28l-3.6-122h35.2zM256\x20402.4c-10.7\x200-19.1-8.1-19.1-18.4s8.4-18.4\x2019.1-18.4\x2019.1\x208.1\x2019.1\x2018.4-8.4\x2018.4-19.1\x2018.4z',(0x0,a0_0x171e9c['jsx'])('svg',{'className':'d-warning-icon\x20'+_0x2f3509['className'],'width':_0x2f3509['width']||'1em','height':_0x2f3509['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'0','viewBox':'0\x200\x20512\x20512','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0x171e9c['jsx'])('path',_0x49dd0e)});}exports['WarningIcon']=a0_0x2dab8a;
|
package/dist/IncorrectEntry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x5ddcf0={};a0_0x5ddcf0['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5ddcf0),exports['IncorrectEntry']=void 0x0;const a0_0x1be49a=require('react/jsx-runtime');function a0_0xea45f5(_0x1e939a){return(0x0,a0_0x1be49a['jsx'])(a0_0x1be49a['Fragment'],{'children':_0x1e939a['children']&&(0x0,a0_0x1be49a['jsx'])('div',{'id':_0x1e939a['id'],'className':'d-incorrect-entry\x20'+(_0x1e939a['children']?'d-mt-1':''),'children':_0x1e939a['children']})});}exports['IncorrectEntry']=a0_0xea45f5;
|
package/dist/Input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0xfd6aec=this&&this['__createBinding']||(Object['create']?function(_0x12bcc6,_0x47d869,_0x5d4eb6,_0x48b2ad){if(_0x48b2ad===undefined)_0x48b2ad=_0x5d4eb6;var _0x75da3f=Object['getOwnPropertyDescriptor'](_0x47d869,_0x5d4eb6);if(!_0x75da3f||('get'in _0x75da3f?!_0x47d869['__esModule']:_0x75da3f['writable']||_0x75da3f['configurable'])){const _0x41af1d={};_0x41af1d['enumerable']=!![],_0x41af1d['get']=function(){return _0x47d869[_0x5d4eb6];},_0x75da3f=_0x41af1d;}Object['defineProperty'](_0x12bcc6,_0x48b2ad,_0x75da3f);}:function(_0x4caeea,_0xdef26b,_0xe00012,_0x5fd10a){if(_0x5fd10a===undefined)_0x5fd10a=_0xe00012;_0x4caeea[_0x5fd10a]=_0xdef26b[_0xe00012];}),a0_0x322a85=this&&this['__setModuleDefault']||(Object['create']?function(_0x58966f,_0x1f66d4){const _0x211d5f={};_0x211d5f['enumerable']=!![],_0x211d5f['value']=_0x1f66d4,Object['defineProperty'](_0x58966f,'default',_0x211d5f);}:function(_0x112d7d,_0x357bb2){_0x112d7d['default']=_0x357bb2;}),a0_0x44f0cb=this&&this['__importStar']||function(_0x1d0bcf){if(_0x1d0bcf&&_0x1d0bcf['__esModule'])return _0x1d0bcf;var _0x2f686e={};if(_0x1d0bcf!=null){for(var _0x16808f in _0x1d0bcf)if(_0x16808f!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x1d0bcf,_0x16808f))a0_0xfd6aec(_0x2f686e,_0x1d0bcf,_0x16808f);}return a0_0x322a85(_0x2f686e,_0x1d0bcf),_0x2f686e;};const a0_0x1b2129={};a0_0x1b2129['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1b2129),exports['FileInput']=exports['SearchTextareaInput']=exports['SearchInput']=exports['Input']=void 0x0;const a0_0x30ca18=require('react/jsx-runtime'),a0_0x3b674f=a0_0x44f0cb(require('react'));function a0_0x504bfa(_0x17e594,_0x4176ca,_0x25e4e3){const _0x23b85a=_0x619851=>{!_0x17e594&&(_0x619851['target']['value']=_0x619851['target']['value']?.['trimStart']()?.['trimEnd']()),_0x4176ca&&_0x4176ca(_0x619851),_0x25e4e3&&_0x25e4e3(_0x619851);};return _0x23b85a;}function a0_0x3dfc41(_0x3ba3d6){const _0x46e525={..._0x3ba3d6};return _0x46e525['value']=_0x3ba3d6['value']||'',(0x0,a0_0x30ca18['jsx'])('input',_0x46e525);}function a0_0x2e86b7(_0x2e6e36){return!_0x2e6e36['noTrim']?a0_0x3dfc41({..._0x2e6e36,'onBlur':a0_0x504bfa(_0x2e6e36['noTrim'],_0x2e6e36['onChange'],_0x2e6e36['onBlur'])}):a0_0x3dfc41(_0x2e6e36);}exports['Input']=a0_0x2e86b7;function a0_0x1302b5({value:_0x13a095,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x3b674f['useRef'](null),..._0x208188}){const _0xef96dd=a0_0x3b674f['useRef'](_0x208188['defaultValue']||_0x13a095||''),_0x3e42a4=a0_0x3b674f['useRef'](null),_0x192ccd=a0_0x3b674f['useRef'](![]),[,_0x292417]=a0_0x3b674f['useState'](),_0x3e30c4=()=>_0x292417(new Date()['getTime']());function _0x54db7e(_0x52f365,_0x5ed93d){_0x192ccd['current']=_0x5ed93d,_0x3e30c4(),_0x192ccd['current']&&Boolean(_0x208188['onFocus'])&&_0x208188['onFocus'](_0x52f365);}const _0xd786c3=a0_0x3b674f['useCallback'](()=>{if(!_0x3e42a4['current']){const _0x4ad695={};_0x4ad695['250']=0x1,_0x4ad695['500']=0x1,_0x4ad695['1000']=0x1,_0x4ad695['1250']=0x1,_0x4ad695['2500']=0x1,_0x4ad695['3000']=0x1,_0x4ad695['5000']=0x1;const _0x39af2e=_0x4ad695[idle]?idle:0x4e7;window&&(_0x3e42a4['current']=setTimeout(()=>{_0x208188['onChange']&&_0x208188['onChange'](_0xef96dd['current']||''),clearTimeout(_0x3e42a4['current']),_0x3e42a4['current']=null,_0x3e30c4();},_0x39af2e)),_0x3e30c4();}},[]);function _0xa59ec6(_0x5e3015){_0xef96dd['current']=_0x5e3015['target']['value']||'',_0xd786c3();}a0_0x3b674f['useEffect'](()=>{!_0x3e42a4['current']&&!_0x192ccd['current']&&(ref['current']['value']=_0x13a095||'',_0x3e30c4());},[_0x3e42a4['current'],_0x192ccd['current'],_0x13a095]),a0_0x3b674f['useEffect'](()=>{return ref['current']['value']=_0xef96dd['current']||'',()=>{window&&clearTimeout(_0x3e42a4['current']);};},[]);const _0x259643={};_0x259643['position']='relative';const _0x297f60={};_0x297f60['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner_mtsvv2{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20rotate(360deg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.spinner_mtP7sC\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform-origin:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20spinner_mtsvv2\x20.75s\x20infinite\x20linear;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x1ef12a={};_0x1ef12a['position']='absolute',_0x1ef12a['right']=0x0,_0x1ef12a['top']=0x0,_0x1ef12a['bottom']=0x0,_0x1ef12a['display']='flex',_0x1ef12a['justifyContent']='center',_0x1ef12a['alignItems']='center',_0x1ef12a['padding']=0x3,_0x1ef12a['paddingRight']=0x5;const _0x279d86={};return _0x279d86['fill']=colorOfSearchIcon,_0x279d86['d']='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z',_0x279d86['className']='spinner_mtP7sC',(0x0,a0_0x30ca18['jsxs'])('div',{'id':'mtsearch','style':_0x259643,'children':[(0x0,a0_0x30ca18['jsx'])('style',_0x297f60),_0x3e42a4['current']?(0x0,a0_0x30ca18['jsx'])('div',{'style':_0x1ef12a,'children':(0x0,a0_0x30ca18['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x30ca18['jsx'])('path',_0x279d86)})}):(0x0,a0_0x30ca18['jsx'])(a0_0x30ca18['Fragment'],{}),(0x0,a0_0x30ca18['jsx'])('input',{..._0x208188,'ref':ref,'type':'text','autoComplete':'off','onChange':_0xa59ec6,'onFocus':_0x572da4=>_0x54db7e(_0x572da4,!![]),'onBlur':_0x1d1577=>_0x54db7e(_0x1d1577,![])})]});}function a0_0x34a370({value:_0x17e5f5,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x3b674f['useRef'](null),..._0x560cac}){const _0x3be1eb=a0_0x3b674f['useRef'](_0x560cac['defaultValue']||_0x17e5f5||''),_0x510f17=a0_0x3b674f['useRef'](null),_0x43d365=a0_0x3b674f['useRef'](![]),[,_0x284af5]=a0_0x3b674f['useState'](),_0x1279b7=()=>_0x284af5(new Date()['getTime']());function _0x5301b7(_0x46dee9,_0x50ce6c){_0x43d365['current']=_0x50ce6c,_0x1279b7(),_0x43d365['current']&&Boolean(_0x560cac['onFocus'])&&_0x560cac['onFocus'](_0x46dee9);}const _0x15c669=a0_0x3b674f['useCallback'](()=>{if(!_0x510f17['current']){const _0x234bf0={};_0x234bf0['250']=0x1,_0x234bf0['500']=0x1,_0x234bf0['1000']=0x1,_0x234bf0['1250']=0x1,_0x234bf0['2500']=0x1,_0x234bf0['3000']=0x1,_0x234bf0['5000']=0x1;const _0x4ca0a4=_0x234bf0[idle]?idle:0x4e7;window&&(_0x510f17['current']=setTimeout(()=>{_0x560cac['onChange']&&_0x560cac['onChange'](_0x3be1eb['current']||''),clearTimeout(_0x510f17['current']),_0x510f17['current']=null,_0x1279b7();},_0x4ca0a4)),_0x1279b7();}},[]);function _0x560e19(_0x548e82){_0x3be1eb['current']=_0x548e82['target']['value']||'',_0x15c669();}a0_0x3b674f['useEffect'](()=>{!_0x510f17['current']&&!_0x43d365['current']&&(ref['current']['value']=_0x17e5f5||'',_0x1279b7());},[_0x510f17['current'],_0x43d365['current'],_0x17e5f5]),a0_0x3b674f['useEffect'](()=>{return ref['current']['value']=_0x3be1eb['current']||'',()=>{window&&clearTimeout(_0x510f17['current']);};},[]);const _0xe6a20d={};_0xe6a20d['position']='relative';const _0x26d86b={};_0x26d86b['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner_mtsvv2{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20rotate(360deg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.spinner_mtP7sC\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform-origin:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20spinner_mtsvv2\x20.75s\x20infinite\x20linear;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x4b3498={};_0x4b3498['position']='absolute',_0x4b3498['right']=0x0,_0x4b3498['top']=0x0,_0x4b3498['bottom']=0x0,_0x4b3498['display']='flex',_0x4b3498['justifyContent']='center',_0x4b3498['alignItems']='center',_0x4b3498['padding']=0x3,_0x4b3498['paddingRight']=0x5;const _0x67d8bc={};return _0x67d8bc['fill']=colorOfSearchIcon,_0x67d8bc['d']='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z',_0x67d8bc['className']='spinner_mtP7sC',(0x0,a0_0x30ca18['jsxs'])('div',{'id':'mtsearch','style':_0xe6a20d,'children':[(0x0,a0_0x30ca18['jsx'])('style',_0x26d86b),_0x510f17['current']?(0x0,a0_0x30ca18['jsx'])('div',{'style':_0x4b3498,'children':(0x0,a0_0x30ca18['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x30ca18['jsx'])('path',_0x67d8bc)})}):(0x0,a0_0x30ca18['jsx'])(a0_0x30ca18['Fragment'],{}),(0x0,a0_0x30ca18['jsx'])('textarea',{..._0x560cac,'className':'d-textarea-h-20\x20'+(_0x560cac['className']||''),'ref':ref,'autoComplete':'off','onChange':_0x560e19,'onFocus':_0x12eb13=>_0x5301b7(_0x12eb13,!![]),'onBlur':_0x2fb3ed=>_0x5301b7(_0x2fb3ed,![])})]});}function a0_0x2bc0b0({..._0x5ea1eb}){return a0_0x1302b5(_0x5ea1eb);}exports['SearchInput']=a0_0x2bc0b0;function a0_0x5311f7({..._0xe8ff96}){return a0_0x34a370(_0xe8ff96);}exports['SearchTextareaInput']=a0_0x5311f7;function a0_0x6f0f4d(_0x3c8dc6){try{return _0x3c8dc6();}catch(_0x4d6dbc){return null;}}function a0_0x267585(_0x1e43e5){const _0x58c6bd=a0_0x3b674f['useRef'](null),_0x189183=a0_0x3b674f['useRef']([]),_0x34d53c=a0_0x3b674f['useState']();function _0x232ca1(_0x33023e){_0x189183['current']=[],a0_0x6f0f4d(()=>{_0x189183['current']=Array(_0x33023e['target']['files']['length'])['fill'](null)['map']((_0x2778f9,_0x4cdf73)=>{return _0x33023e['target']['files'][_0x4cdf73];});}),a0_0x6f0f4d(()=>{_0x1e43e5['onChange']&&_0x1e43e5['onChange'](_0x189183['current']);}),a0_0x6f0f4d(()=>{_0x1e43e5['onBlur']&&_0x1e43e5['onBlur']();}),a0_0x6f0f4d(()=>{_0x34d53c[0x1](new Date()['getTime']());});}function _0x3c780f(_0x535e6d){a0_0x6f0f4d(()=>{!_0x1e43e5['disabled']&&a0_0x6f0f4d(()=>{_0x58c6bd['current']?.['click']();});});}const _0x200014={};_0x200014['width']='100%',_0x200014['display']='flex',_0x200014['flexDirection']='row',_0x200014['alignItems']='center',_0x200014['position']='relative';const _0x51a9c8={};_0x51a9c8['paddingRight']=0x9;const _0x34751e={};_0x34751e['height']='32px',_0x34751e['borderLeftWidth']='0px',_0x34751e['borderRadius']='0px',_0x34751e['display']='flex',_0x34751e['justifyContent']='center',_0x34751e['alignItems']='center',_0x34751e['padding']=0x7,_0x34751e['position']='absolute',_0x34751e['right']=0x3,_0x34751e['zIndex']=0x1,_0x34751e['fontSize']=0x11;const _0x2ee2bf={};return _0x2ee2bf['children']='📁',(0x0,a0_0x30ca18['jsxs'])('div',{'className':_0x1e43e5['className'],'style':_0x200014,'onClick':_0x3c780f,'children':[(0x0,a0_0x30ca18['jsx'])('input',{'ref':_0x58c6bd,'hidden':!![],'multiple':Boolean(_0x1e43e5['multiple']),'readOnly':!![],'type':'file','accept':_0x1e43e5['accept'],'onChange':_0x232ca1}),(0x0,a0_0x30ca18['jsx'])(a0_0x2e86b7,{'readOnly':!![],'noTrim':!![],'value':_0x189183['current']?.['map'](_0x595785=>_0x595785['name'])['join'](),'placeholder':_0x1e43e5['placeholder'],'style':_0x51a9c8,'disabled':_0x1e43e5['disabled']}),(0x0,a0_0x30ca18['jsx'])('div',{'style':_0x34751e,'children':(0x0,a0_0x30ca18['jsx'])('span',_0x2ee2bf)})]});}function a0_0x4d6a02(_0x4c85d8){return a0_0x267585(_0x4c85d8);}exports['FileInput']=a0_0x4d6a02;
|
|
1
|
+
'use strict';var a0_0x360773=this&&this['__createBinding']||(Object['create']?function(_0x4db701,_0x13548c,_0x575cce,_0xa79bdf){if(_0xa79bdf===undefined)_0xa79bdf=_0x575cce;var _0x8dc809=Object['getOwnPropertyDescriptor'](_0x13548c,_0x575cce);if(!_0x8dc809||('get'in _0x8dc809?!_0x13548c['__esModule']:_0x8dc809['writable']||_0x8dc809['configurable'])){const _0x23f0f4={};_0x23f0f4['enumerable']=!![],_0x23f0f4['get']=function(){return _0x13548c[_0x575cce];},_0x8dc809=_0x23f0f4;}Object['defineProperty'](_0x4db701,_0xa79bdf,_0x8dc809);}:function(_0x3cfa1d,_0x40e1fa,_0x453fcc,_0x50f3bd){if(_0x50f3bd===undefined)_0x50f3bd=_0x453fcc;_0x3cfa1d[_0x50f3bd]=_0x40e1fa[_0x453fcc];}),a0_0x2eb446=this&&this['__setModuleDefault']||(Object['create']?function(_0x59e72e,_0x3abb92){const _0x1fff31={};_0x1fff31['enumerable']=!![],_0x1fff31['value']=_0x3abb92,Object['defineProperty'](_0x59e72e,'default',_0x1fff31);}:function(_0xb6af4e,_0x59cda8){_0xb6af4e['default']=_0x59cda8;}),a0_0x26ed02=this&&this['__importStar']||function(_0x14f57a){if(_0x14f57a&&_0x14f57a['__esModule'])return _0x14f57a;var _0xad8629={};if(_0x14f57a!=null){for(var _0xa73e22 in _0x14f57a)if(_0xa73e22!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x14f57a,_0xa73e22))a0_0x360773(_0xad8629,_0x14f57a,_0xa73e22);}return a0_0x2eb446(_0xad8629,_0x14f57a),_0xad8629;};const a0_0x22539f={};a0_0x22539f['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x22539f),exports['FileInput']=exports['SearchTextareaInput']=exports['SearchInput']=exports['Input']=void 0x0;const a0_0x2568ff=require('react/jsx-runtime'),a0_0x21893d=a0_0x26ed02(require('react'));function a0_0x2cb7c6(_0x582bb0,_0x34886f,_0x5d8f13){const _0xc2507a=_0x81154e=>{!_0x582bb0&&(_0x81154e['target']['value']=_0x81154e['target']['value']?.['trimStart']()?.['trimEnd']()),_0x34886f&&_0x34886f(_0x81154e),_0x5d8f13&&_0x5d8f13(_0x81154e);};return _0xc2507a;}function a0_0x3eb37f(_0x832535){const _0x509c0f={..._0x832535};return _0x509c0f['value']=_0x832535['value']||'',(0x0,a0_0x2568ff['jsx'])('input',_0x509c0f);}function a0_0x2ba85a(_0x5777e4){return!_0x5777e4['noTrim']?a0_0x3eb37f({..._0x5777e4,'onBlur':a0_0x2cb7c6(_0x5777e4['noTrim'],_0x5777e4['onChange'],_0x5777e4['onBlur'])}):a0_0x3eb37f(_0x5777e4);}exports['Input']=a0_0x2ba85a;function a0_0x2f0f53({value:_0x4f6043,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x21893d['useRef'](null),..._0x4ca6cc}){const _0x1d79d0=a0_0x21893d['useRef'](_0x4ca6cc['defaultValue']||_0x4f6043||''),_0x4fc61f=a0_0x21893d['useRef'](null),_0x236632=a0_0x21893d['useRef'](![]),[,_0x193537]=a0_0x21893d['useState'](),_0x241e45=()=>_0x193537(new Date()['getTime']());function _0x166a6b(_0xa35c0b,_0x8c981){_0x236632['current']=_0x8c981,_0x241e45(),_0x236632['current']&&Boolean(_0x4ca6cc['onFocus'])&&_0x4ca6cc['onFocus'](_0xa35c0b);}const _0x51b410=a0_0x21893d['useCallback'](()=>{if(!_0x4fc61f['current']){const _0x290da7={};_0x290da7['250']=0x1,_0x290da7['500']=0x1,_0x290da7['1000']=0x1,_0x290da7['1250']=0x1,_0x290da7['2500']=0x1,_0x290da7['3000']=0x1,_0x290da7['5000']=0x1;const _0x2eb927=_0x290da7[idle]?idle:0x4e7;window&&(_0x4fc61f['current']=setTimeout(()=>{_0x4ca6cc['onChange']&&_0x4ca6cc['onChange'](_0x1d79d0['current']||''),clearTimeout(_0x4fc61f['current']),_0x4fc61f['current']=null,_0x241e45();},_0x2eb927)),_0x241e45();}},[]);function _0xf3d7f6(_0x4d1ddc){_0x1d79d0['current']=_0x4d1ddc['target']['value']||'',_0x51b410();}a0_0x21893d['useEffect'](()=>{!_0x4fc61f['current']&&!_0x236632['current']&&(ref['current']['value']=_0x4f6043||'',_0x241e45());},[_0x4fc61f['current'],_0x236632['current'],_0x4f6043]),a0_0x21893d['useEffect'](()=>{return ref['current']['value']=_0x1d79d0['current']||'',()=>{window&&clearTimeout(_0x4fc61f['current']);};},[]);const _0x339561={};_0x339561['position']='relative';const _0x1c4f22={};_0x1c4f22['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner_mtsvv2{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20rotate(360deg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.spinner_mtP7sC\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform-origin:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20spinner_mtsvv2\x20.75s\x20infinite\x20linear;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x2bcb97={};_0x2bcb97['position']='absolute',_0x2bcb97['right']=0x0,_0x2bcb97['top']=0x0,_0x2bcb97['bottom']=0x0,_0x2bcb97['display']='flex',_0x2bcb97['justifyContent']='center',_0x2bcb97['alignItems']='center',_0x2bcb97['padding']=0x3,_0x2bcb97['paddingRight']=0x5;const _0x12ff6d={};return _0x12ff6d['fill']=colorOfSearchIcon,_0x12ff6d['d']='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z',_0x12ff6d['className']='spinner_mtP7sC',(0x0,a0_0x2568ff['jsxs'])('div',{'id':'mtsearch','style':_0x339561,'children':[(0x0,a0_0x2568ff['jsx'])('style',_0x1c4f22),_0x4fc61f['current']?(0x0,a0_0x2568ff['jsx'])('div',{'style':_0x2bcb97,'children':(0x0,a0_0x2568ff['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x2568ff['jsx'])('path',_0x12ff6d)})}):(0x0,a0_0x2568ff['jsx'])(a0_0x2568ff['Fragment'],{}),(0x0,a0_0x2568ff['jsx'])('input',{..._0x4ca6cc,'ref':ref,'type':'text','autoComplete':'off','onChange':_0xf3d7f6,'onFocus':_0x48a60f=>_0x166a6b(_0x48a60f,!![]),'onBlur':_0x4e2cb2=>_0x166a6b(_0x4e2cb2,![])})]});}function a0_0xf4d5fe({value:_0xdbb1ec,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x21893d['useRef'](null),..._0x2b9b7a}){const _0x5a9269=a0_0x21893d['useRef'](_0x2b9b7a['defaultValue']||_0xdbb1ec||''),_0xfe1a46=a0_0x21893d['useRef'](null),_0x6f1204=a0_0x21893d['useRef'](![]),[,_0x2efda0]=a0_0x21893d['useState'](),_0x5b4da6=()=>_0x2efda0(new Date()['getTime']());function _0xd69226(_0x5230ba,_0x423f73){_0x6f1204['current']=_0x423f73,_0x5b4da6(),_0x6f1204['current']&&Boolean(_0x2b9b7a['onFocus'])&&_0x2b9b7a['onFocus'](_0x5230ba);}const _0x4b1176=a0_0x21893d['useCallback'](()=>{if(!_0xfe1a46['current']){const _0x1b742b={};_0x1b742b['250']=0x1,_0x1b742b['500']=0x1,_0x1b742b['1000']=0x1,_0x1b742b['1250']=0x1,_0x1b742b['2500']=0x1,_0x1b742b['3000']=0x1,_0x1b742b['5000']=0x1;const _0x2a4300=_0x1b742b[idle]?idle:0x4e7;window&&(_0xfe1a46['current']=setTimeout(()=>{_0x2b9b7a['onChange']&&_0x2b9b7a['onChange'](_0x5a9269['current']||''),clearTimeout(_0xfe1a46['current']),_0xfe1a46['current']=null,_0x5b4da6();},_0x2a4300)),_0x5b4da6();}},[]);function _0x2e83bb(_0x59f1a2){_0x5a9269['current']=_0x59f1a2['target']['value']||'',_0x4b1176();}a0_0x21893d['useEffect'](()=>{!_0xfe1a46['current']&&!_0x6f1204['current']&&(ref['current']['value']=_0xdbb1ec||'',_0x5b4da6());},[_0xfe1a46['current'],_0x6f1204['current'],_0xdbb1ec]),a0_0x21893d['useEffect'](()=>{return ref['current']['value']=_0x5a9269['current']||'',()=>{window&&clearTimeout(_0xfe1a46['current']);};},[]);const _0x2c38b0={};_0x2c38b0['position']='relative';const _0x42a634={};_0x42a634['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner_mtsvv2{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20rotate(360deg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.spinner_mtP7sC\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform-origin:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20animation:\x20spinner_mtsvv2\x20.75s\x20infinite\x20linear;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x39425d={};_0x39425d['position']='absolute',_0x39425d['right']=0x0,_0x39425d['top']=0x0,_0x39425d['bottom']=0x0,_0x39425d['display']='flex',_0x39425d['justifyContent']='center',_0x39425d['alignItems']='center',_0x39425d['padding']=0x3,_0x39425d['paddingRight']=0x5;const _0x540eff={};return _0x540eff['fill']=colorOfSearchIcon,_0x540eff['d']='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z',_0x540eff['className']='spinner_mtP7sC',(0x0,a0_0x2568ff['jsxs'])('div',{'id':'mtsearch','style':_0x2c38b0,'children':[(0x0,a0_0x2568ff['jsx'])('style',_0x42a634),_0xfe1a46['current']?(0x0,a0_0x2568ff['jsx'])('div',{'style':_0x39425d,'children':(0x0,a0_0x2568ff['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x2568ff['jsx'])('path',_0x540eff)})}):(0x0,a0_0x2568ff['jsx'])(a0_0x2568ff['Fragment'],{}),(0x0,a0_0x2568ff['jsx'])('textarea',{..._0x2b9b7a,'className':'d-textarea-h-20\x20'+(_0x2b9b7a['className']||''),'ref':ref,'autoComplete':'off','onChange':_0x2e83bb,'onFocus':_0x53507e=>_0xd69226(_0x53507e,!![]),'onBlur':_0x64c974=>_0xd69226(_0x64c974,![])})]});}function a0_0x46e146({..._0x1d0bf5}){return a0_0x2f0f53(_0x1d0bf5);}exports['SearchInput']=a0_0x46e146;function a0_0x297bef({..._0x3accb6}){return a0_0xf4d5fe(_0x3accb6);}exports['SearchTextareaInput']=a0_0x297bef;function a0_0x288f66(_0x4be415){try{return _0x4be415();}catch(_0x1fee48){return null;}}function a0_0x3fe9a1(_0x1a1b6e){const _0xb4b40d=a0_0x21893d['useRef'](null),_0x4dd291=a0_0x21893d['useRef']([]),_0x985dc1=a0_0x21893d['useState']();function _0x3e6a5e(_0x439859){_0x4dd291['current']=[],a0_0x288f66(()=>{_0x4dd291['current']=Array(_0x439859['target']['files']['length'])['fill'](null)['map']((_0x54e871,_0x5ace08)=>{return _0x439859['target']['files'][_0x5ace08];});}),a0_0x288f66(()=>{_0x1a1b6e['onChange']&&_0x1a1b6e['onChange'](_0x4dd291['current']);}),a0_0x288f66(()=>{_0x1a1b6e['onBlur']&&_0x1a1b6e['onBlur']();}),a0_0x288f66(()=>{_0x985dc1[0x1](new Date()['getTime']());});}function _0x2e2973(_0x5bae84){a0_0x288f66(()=>{!_0x1a1b6e['disabled']&&a0_0x288f66(()=>{_0xb4b40d['current']?.['click']();});});}const _0x33d65c={};_0x33d65c['width']='100%',_0x33d65c['display']='flex',_0x33d65c['flexDirection']='row',_0x33d65c['alignItems']='center',_0x33d65c['position']='relative';const _0x1b4e84={};_0x1b4e84['paddingRight']=0x9;const _0x2f70d1={};_0x2f70d1['height']='32px',_0x2f70d1['borderLeftWidth']='0px',_0x2f70d1['borderRadius']='0px',_0x2f70d1['display']='flex',_0x2f70d1['justifyContent']='center',_0x2f70d1['alignItems']='center',_0x2f70d1['padding']=0x7,_0x2f70d1['position']='absolute',_0x2f70d1['right']=0x3,_0x2f70d1['zIndex']=0x1,_0x2f70d1['fontSize']=0x11;const _0x2f63bd={};return _0x2f63bd['children']='📁',(0x0,a0_0x2568ff['jsxs'])('div',{'className':_0x1a1b6e['className'],'style':_0x33d65c,'onClick':_0x2e2973,'children':[(0x0,a0_0x2568ff['jsx'])('input',{'ref':_0xb4b40d,'hidden':!![],'multiple':Boolean(_0x1a1b6e['multiple']),'readOnly':!![],'type':'file','accept':_0x1a1b6e['accept'],'onChange':_0x3e6a5e}),(0x0,a0_0x2568ff['jsx'])(a0_0x2ba85a,{'readOnly':!![],'noTrim':!![],'value':_0x4dd291['current']?.['map'](_0x4bf4a0=>_0x4bf4a0['name'])['join'](),'placeholder':_0x1a1b6e['placeholder'],'style':_0x1b4e84,'disabled':_0x1a1b6e['disabled']}),(0x0,a0_0x2568ff['jsx'])('div',{'style':_0x2f70d1,'children':(0x0,a0_0x2568ff['jsx'])('span',_0x2f63bd)})]});}function a0_0x381fea(_0x57aed6){return a0_0x3fe9a1(_0x57aed6);}exports['FileInput']=a0_0x381fea;
|
package/dist/InputFields.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x4e2df=this&&this['__createBinding']||(Object['create']?function(_0x4ddd46,_0x155c0d,_0x325a42,_0x35b43b){if(_0x35b43b===undefined)_0x35b43b=_0x325a42;var _0x303fb2=Object['getOwnPropertyDescriptor'](_0x155c0d,_0x325a42);if(!_0x303fb2||('get'in _0x303fb2?!_0x155c0d['__esModule']:_0x303fb2['writable']||_0x303fb2['configurable'])){var _0x20bcfe={};_0x20bcfe['enumerable']=!![],_0x20bcfe['get']=function(){return _0x155c0d[_0x325a42];},_0x303fb2=_0x20bcfe;}Object['defineProperty'](_0x4ddd46,_0x35b43b,_0x303fb2);}:function(_0x3690aa,_0x24882a,_0x2d591a,_0x48bf4f){if(_0x48bf4f===undefined)_0x48bf4f=_0x2d591a;_0x3690aa[_0x48bf4f]=_0x24882a[_0x2d591a];}),a0_0x28d6dc=this&&this['__setModuleDefault']||(Object['create']?function(_0x48bdf4,_0x5b97ae){var _0x16670a={};_0x16670a['enumerable']=!![],_0x16670a['value']=_0x5b97ae,Object['defineProperty'](_0x48bdf4,'default',_0x16670a);}:function(_0x3625d4,_0x2a062e){_0x3625d4['default']=_0x2a062e;}),a0_0x1e9d60=this&&this['__importStar']||function(_0x304227){if(_0x304227&&_0x304227['__esModule'])return _0x304227;var _0x50c41f={};if(_0x304227!=null){for(var _0x225375 in _0x304227)if(_0x225375!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x304227,_0x225375))a0_0x4e2df(_0x50c41f,_0x304227,_0x225375);}return a0_0x28d6dc(_0x50c41f,_0x304227),_0x50c41f;},a0_0x40b73a={};a0_0x40b73a['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x40b73a),exports['InputFieldLeg']=exports['InputField']=void 0x0;const a0_0x19f74f=require('react/jsx-runtime'),a0_0xff0bf9=a0_0x1e9d60(require('react'));function a0_0x3e74dc(_0x385d2f){var _0x35ef0a={};_0x35ef0a['width']='100%',_0x35ef0a['display']='flex',_0x35ef0a['flexDirection']='row',_0x35ef0a['alignItems']='center',_0x35ef0a['marginBottom']='0.15rem';var _0x4bc107={};_0x4bc107['width']='100%',_0x4bc107['fontWeight']=0x1f4,_0x4bc107['fontSize']='0.915rem',_0x4bc107['paddingLeft']='4px';var _0x13b2bc={};return _0x13b2bc['width']='100%',(0x0,a0_0x19f74f['jsxs'])('div',{'id':_0x385d2f['id'],'className':_0x385d2f['className'],'children':[(_0x385d2f['label']||_0x385d2f['infoIcon'])&&(0x0,a0_0x19f74f['jsxs'])('div',{'style':_0x35ef0a,'children':[(0x0,a0_0x19f74f['jsx'])('div',{'style':_0x4bc107,'children':_0x385d2f['label']}),_0x385d2f['infoIcon']]}),_0x385d2f['description']?(0x0,a0_0x19f74f['jsx'])('div',{'className':'mt-inputfield-subtitle\x20'+_0x385d2f['descriptionClassName'],'children':_0x385d2f['description']}):(0x0,a0_0x19f74f['jsx'])(a0_0x19f74f['Fragment'],{}),(0x0,a0_0x19f74f['jsx'])('div',{'className':_0x385d2f['childrenClassName'],'style':_0x13b2bc,'children':_0x385d2f['children']})]});}function a0_0x185f21(_0x301165){return a0_0x3e74dc(_0x301165);}exports['InputField']=a0_0x185f21;function a0_0x39a8ef(_0x43064f){const _0x14bc4c=a0_0xff0bf9['useRef'](null);var _0x4ef1bd={};_0x4ef1bd['padding']=0x0,_0x4ef1bd['borderWidth']=0x1,_0x4ef1bd['border']='none';var _0x271291={};_0x271291['width']=_0x14bc4c['current']?.['offsetWidth']+0x7,_0x271291['marginLeft']='5px',_0x271291['position']='relative',_0x271291['top']='1px',_0x271291['border']='1px\x20solid\x20white',_0x271291['zIndex']=0x63;var _0x58ef02={};return _0x58ef02['position']='absolute',_0x58ef02['marginTop']='-11px',_0x58ef02['whiteSpace']='nowrap',_0x58ef02['fontSize']='0.875rem',_0x58ef02['fontWeight']='500',(0x0,a0_0x19f74f['jsxs'])('fieldset',{'id':_0x43064f['id'],'style':_0x4ef1bd,'className':_0x43064f['className'],'children':[_0x43064f['label']&&(0x0,a0_0x19f74f['jsx'])('legend',{'style':_0x271291,'children':(0x0,a0_0x19f74f['jsx'])('div',{'ref':_0x14bc4c,'style':_0x58ef02,'children':_0x43064f['label']})}),_0x43064f['description']?(0x0,a0_0x19f74f['jsx'])('div',{'className':'mt-inputfield-subtitle\x20'+_0x43064f['descriptionClassName'],'children':_0x43064f['description']}):(0x0,a0_0x19f74f['jsx'])(a0_0x19f74f['Fragment'],{}),_0x43064f['children']]});}function a0_0x4ef68b(_0x36a1cb){return a0_0x39a8ef(_0x36a1cb);}exports['InputFieldLeg']=a0_0x4ef68b;
|
package/dist/MKPlayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x127b99=this&&this['__importDefault']||function(_0x55d047){return _0x55d047&&_0x55d047['__esModule']?_0x55d047:{'default':_0x55d047};};const a0_0x5f5b4e={};a0_0x5f5b4e['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5f5b4e),exports['MKPlayer']=void 0x0;const a0_0x22a361=require('react/jsx-runtime'),a0_0x47e5c2=a0_0x127b99(require('react')),a0_0x391d04=require('./DateUtil'),a0_0x2d4033=require('./logger'),a0_0x2b7ecb=require('mjstl'),a0_0x2fd65f={};a0_0x2fd65f['1']=0x1,a0_0x2fd65f['2']=0x2,a0_0x2fd65f['3']=0x3,a0_0x2fd65f['5']=0x5,a0_0x2fd65f['10']=0xa,a0_0x2fd65f['25']=0x19;const a0_0x37fa4e=a0_0x2fd65f,a0_0x4c37b0={};a0_0x4c37b0['-1']=-0x1,a0_0x4c37b0['2']=0x2,a0_0x4c37b0['5']=0x5,a0_0x4c37b0['10']=0xa,a0_0x4c37b0['15']=0xf,a0_0x4c37b0['25']=0x19,a0_0x4c37b0['50']=0x32,a0_0x4c37b0['100']=0x64;const a0_0x31d770=a0_0x4c37b0;function a0_0x1437ac(_0x5c8ac2,_0x5c7efe,_0x41f1ba,_0x12b288){const _0x331f44=_0x41f1ba-_0x5c8ac2,_0xde7fbd=_0x12b288-_0x5c7efe,_0x17eba1=Math['atan'](_0x331f44/_0xde7fbd);let _0x5a093c=_0x17eba1*0xb4/Math['PI'];return _0x5a093c=0xb4-_0x5a093c,(_0x331f44>0x0&&_0xde7fbd>0x0||_0x331f44<0x0&&_0xde7fbd>0x0)&&(_0x5a093c=_0x5a093c+0xb4),_0x5a093c=_0x5a093c+0x5a,_0x5a093c;}function a0_0xebcd88({..._0x116c4b}){const _0x18348d=Number(a0_0x31d770[_0x116c4b['trackSize']])||0x5,_0x246650=_0x18348d<0x0,_0x2a6539=a0_0x47e5c2['default']['useRef'](0x0),_0x479029=a0_0x47e5c2['default']['useRef'](0x1),_0x262d80=a0_0x47e5c2['default']['useRef'](0x0),_0x5cc681=a0_0x47e5c2['default']['useRef']({}),_0x27ec50=a0_0x47e5c2['default']['useRef']([]),_0xdf66b5=a0_0x47e5c2['default']['useRef'](0x0),_0x4bb1a9=a0_0x47e5c2['default']['useRef'](-0x1),_0x5b4d7c=a0_0x47e5c2['default']['useRef'](null),_0x25fa47=a0_0x47e5c2['default']['useRef'](null),_0x4c2a2a=a0_0x47e5c2['default']['useRef'](null),_0xa28e49=a0_0x47e5c2['default']['useRef'](null),_0xb03525=a0_0x47e5c2['default']['useRef'](null),_0x430a25=a0_0x47e5c2['default']['useRef'](null),_0x14b059=a0_0x47e5c2['default']['useRef'](null),_0x8416fb=a0_0x47e5c2['default']['useRef'](null),_0x10bbf6=a0_0x47e5c2['default']['useState'](),_0x55ff43=a0_0x47e5c2['default']['useRef'](-0x1),_0x5a0f9b=a0_0x47e5c2['default']['useRef'](![]),_0x2327cd=a0_0x47e5c2['default']['useRef'](null);function _0x3fb70d(){_0x10bbf6[0x1](new Date()['getTime']());}function _0x393c0a(){const _0x314f1e=_0xa28e49['current']['getBoundingClientRect'](),_0x523f3e=_0x314f1e['width'],_0x10d249=_0x314f1e['height'],_0x18013f=Number(_0xa28e49['current']['value']),_0x4a1c22=Number(_0xa28e49['current']['max']),_0x53cba6=Number(_0xa28e49['current']['min']),_0x102d1c=_0x314f1e['left']+_0x523f3e*(_0x18013f-_0x53cba6)/(_0x4a1c22-_0x53cba6),_0x5497e0=0x19,_0x17fff3=0x19,_0x4d1005=_0x102d1c+_0x5497e0/0x2,_0x52c26d=_0x314f1e['top']+_0x10d249/0x2,_0x22cdbc={};return _0x22cdbc['thumbCenterX']=_0x4d1005,_0x22cdbc['thumbCenterY']=_0x52c26d,_0x22cdbc;}function _0x126853(){const _0x315dac=_0x393c0a();_0xb03525['current']['style']['position']='absolute',_0xb03525['current']['style']['left']=_0x315dac['thumbCenterX']+'px',_0xb03525['current']['style']['top']=_0x315dac['thumbCenterY']+'px',_0xb03525['current']['style']['transform']='translateX(-50%)',_0xb03525['current']['innerText']=_0x25fa47['current']['innerText'];}function _0x3937fd(_0x56f270){try{const _0x35a411=a0_0x2b7ecb['mtl']['Geo']['calcBounds'](_0x56f270);_0x116c4b['onBounds']&&_0x116c4b['onBounds'](_0x35a411);}catch(_0x43bebb){}}async function _0xe0f2fe(){_0x5a0f9b['current']=!![],_0xdf66b5['current']=0x0,_0x4bb1a9['current']=-0x1,_0x55ff43['current']=-0x1,_0xa28e49['current']['value']='0',_0x5cc681['current']={};const _0x33ce44=[];let _0x1e1803,_0x2b900d;try{_0x1e1803=a0_0x391d04['DateUtil']['new']()['setDateInputValue'](_0x116c4b['startDate']),_0x2b900d=a0_0x391d04['DateUtil']['new']()['setDateInputValue'](_0x116c4b['endDate']);const _0x5dc3a9=a0_0x391d04['DateUtil']['diffSecs'](_0x116c4b['startDate'],_0x116c4b['endDate'],!![]),_0x97e659=[],_0x41c895=[],_0x43dd74={};for(let _0x280bf8=0x0;_0x280bf8<_0x5dc3a9;_0x280bf8++){_0x43dd74[_0x1e1803['cpy']()['addSecs'](_0x280bf8)['startOfSeconds']()['toIsoDate']()]=[];}_0x116c4b['data']?.['orders']?.['sfEach'](_0x18589c=>{const _0x7b06ae=_0x18589c['actionsHistory'][0x0]['time'];let _0x35ccba;for(let _0x4e3f0b=0x0;_0x4e3f0b<_0x18589c['actionsHistory']?.['length'];_0x4e3f0b++){_0x35ccba=_0x4e3f0b<_0x18589c['actionsHistory']['length']-0x1?_0x18589c['actionsHistory'][_0x4e3f0b+0x1]['time']:_0x2b900d['toIsoDate']();const _0x421844=_0x18589c['actionsHistory'][_0x4e3f0b],_0x35b48d={..._0x18589c,..._0x421844};_0x35b48d['toTime']=_0x35ccba,_0x35b48d['submitDate']=_0x7b06ae;const _0x61dc55=_0x35b48d;if(_0x421844['status']==='DELIVERED'||_0x421844['status']==='CANCELLED'||_0x421844['status']==='DELIVERY_FAILED'){_0x61dc55['toTime']=a0_0x391d04['DateUtil']['new']()['setDate'](new Date(_0x61dc55['time']))['addMins'](0x1)['toDate']()['toISOString'](),_0x97e659['push'](_0x61dc55);break;}!(_0x421844['status']==='CANCELLED'||_0x421844['status']==='DELIVERY_FAILED')&&_0x97e659['push'](_0x61dc55),_0x35ccba=_0x61dc55['time'];}_0x33ce44['push'](a0_0x2b7ecb['mtl']['Geo']['mcoord'](_0x18589c['storeLatitude'],_0x18589c['storeLongitude']));}),_0x116c4b['data']?.['drivers']?.['sfEach'](_0x447d26=>{if(_0x447d26['actions']?.['length']){let _0x89872a;_0x447d26['actions']?.['sfEach']((_0x2aa88f,_0xa1747a)=>{_0x89872a=_0xa1747a<_0x447d26['actions']['length']-0x1?_0x447d26['actions'][_0xa1747a+0x1]['time']:_0x2b900d['toIsoDate']();const _0x15a34d={};_0x15a34d['driverId']=_0x447d26['id'],_0x15a34d['firstName']=_0x447d26['firstName'],_0x15a34d['lastName']=_0x447d26['lastName'],_0x15a34d['storeChainId']=_0x2aa88f['storeChainId'],_0x15a34d['storeChainName']=_0x2aa88f['storeChainName'],_0x15a34d['driverActionType']=_0x2aa88f['driverActionType'],_0x15a34d['toTime']=_0x89872a,_0x15a34d['time']=_0x2aa88f['time'];const _0x32df62=_0x15a34d;_0x41c895['push'](_0x32df62);});};if(_0x447d26['locations']?.['length']){let _0x345f18=_0x447d26['locations'][0x0]['time'];_0x447d26['locations']?.['sfEach']((_0x3463d1,_0x120599)=>{const _0x4812b3=a0_0x391d04['DateUtil']['new']()['setIsoDate'](_0x3463d1['time'])['startOfSeconds'](),_0x38ffd6={'driverId':_0x447d26['id'],'firstName':_0x447d26['firstName'],'lastName':_0x447d26['lastName'],'lat':_0x3463d1['lat'],'lng':_0x3463d1['lon'],'preTime':_0x345f18,'time':_0x4812b3['toTime']()};_0x345f18=_0x38ffd6['time'],_0x43dd74[_0x4812b3['toIsoDate']()]['push'](_0x38ffd6),_0x33ce44['push'](a0_0x2b7ecb['mtl']['Geo']['mcoord'](_0x3463d1['lat'],_0x3463d1['lon']));});}});const _0x48dc82=(_0x2e018d,_0x24fcb6,_0x1cefc6)=>{const _0x50fc47=new Date(_0x24fcb6),_0x17ff9=new Date(_0x1cefc6);return _0x50fc47<=_0x2e018d&&_0x2e018d<_0x17ff9;};for(let _0x64e18f=0x0;_0x64e18f<_0x5dc3a9;_0x64e18f++){const _0x2cee64=_0x1e1803['cpy']()['addSecs'](_0x64e18f)['startOfSeconds'](),_0x3f76c9=_0x2cee64['toIsoDate'](),_0x4e7739=_0x97e659['sfFilter'](_0x234076=>_0x48dc82(_0x2cee64['toTime'](),_0x234076['time'],_0x234076['toTime'])),_0x5c2f63=_0x41c895['sfFilter'](_0xfb3a86=>_0x48dc82(_0x2cee64['toTime'](),_0xfb3a86['time'],_0xfb3a86['toTime'])),_0x176736=_0x43dd74[_0x3f76c9],_0x2a5924={};_0x2a5924['orders']=_0x4e7739,_0x2a5924['locations']=_0x176736,_0x2a5924['actions']=_0x5c2f63,_0x5cc681['current'][_0x3f76c9]=_0x2a5924;}_0xdf66b5['current']=_0x5dc3a9,_0x27ec50['current']=Object['keys'](_0x5cc681['current']);}catch(_0x1e54cc){a0_0x2d4033['logger']['log']('UNKNOWN');}_0x5a0f9b['current']=![],_0x5b4d7c['current']['innerText']=_0x1e1803?_0x1e1803['strTime']():a0_0x391d04['DateUtil']['new']()['startOfDay']()['strTime'](),_0x25fa47['current']['innerText']=_0x1e1803['cpy']()['strTime'](),_0x4c2a2a['current']['innerText']=_0x2b900d?_0x2b900d['strTime']():a0_0x391d04['DateUtil']['new']()['startOfDay']()['strTime'](),_0x126853(),_0x3fb70d(),_0x3937fd(_0x33ce44);}function _0x4350f4(_0x56f11d,_0x4f8b5d){_0x4bb1a9['current']=_0x56f11d-0x1,_0xa28e49['current']['value']=_0x56f11d-0x1,_0x25fa47['current']['innerText']=a0_0x391d04['DateUtil']['new']()['setDateInputValue'](_0x116c4b['startDate'])['addSecs'](_0x56f11d)['strTime']();const _0x34c57f=Number(_0xa28e49['current']['value'])/Number(_0xa28e49['current']['max'])*0x64;_0xa28e49['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x34c57f+'%,\x20#ccc\x20'+_0x34c57f+'%)';}function _0x57db6a(_0x5ec788,_0x577666,_0x51cfe0){const _0x47010d=_0x5cc681['current'][_0x5ec788];_0x116c4b['onMove'](_0x47010d['orders'],_0x47010d['actions'],_0x47010d['locations']);}function _0x5c187b(_0x4d2ad6){try{if(_0x4bb1a9['current']>=_0xdf66b5['current']-0x1){_0x2a6539['current']=0x0,_0x3fb70d();return;}const _0x156445=_0x4bb1a9['current']+0x1;let _0x46404b=_0x4bb1a9['current']<0x0?0x1:_0x4bb1a9['current']+0x1+_0x4d2ad6;_0x46404b=_0x46404b>_0xdf66b5['current']-0x1?_0xdf66b5['current']:_0x46404b;const _0x2e2935=_0x55ff43['current'];_0x46404b-_0x55ff43['current']>=_0x18348d&&(_0x55ff43['current']=_0x46404b-_0x18348d);const _0x1e876f=_0x27ec50['current']['slice'](_0x156445,_0x46404b),_0x2948d0=_0x27ec50['current']['slice'](_0x2e2935,_0x55ff43['current']);_0x4350f4(_0x46404b,_0x1e876f[0x0]),_0x57db6a(_0x1e876f[_0x1e876f['length']-0x1],_0x1e876f,_0x2948d0),_0x126853();}catch(_0x5711d0){a0_0x2d4033['logger']['log']('UNKNOWN',_0x5711d0);}}function _0x167777(){_0x2a6539['current']=0x0,_0xa28e49['current']['value']='0',_0x5a0f9b['current']=!![],_0x3fb70d(),window?.['clearTimeout'](_0x2327cd['current']),_0x2327cd['current']=setTimeout(()=>{_0xe0f2fe();},0x9c4);}function _0x3891e3(){_0x2a6539['current']=0x1,_0x4bb1a9['current']>=_0xdf66b5['current']-0x1&&(_0x4bb1a9['current']=-0x1),_0x4bb1a9['current']<0x0&&(_0x55ff43['current']=0x0,_0x116c4b['onStartReplay']()),_0x3fb70d();}function _0x4fd440(){_0x2a6539['current']=0x2,_0x3fb70d();}function _0x5d04f1(_0x1e5a11){_0x479029['current']=Number(a0_0x37fa4e[_0x1e5a11['target']['value']])||0x1,_0x3fb70d();try{_0x116c4b['onChangeSpeed']&&_0x116c4b['onChangeSpeed'](_0x479029['current']);}catch(_0x58956d){}}function _0x189a22(){_0x262d80['current']=0x1,Boolean(window)&&clearTimeout(_0x14b059['current']),_0x3fb70d();}function _0x4efd66(){Boolean(window)&&(_0x14b059['current']=setTimeout(()=>{_0x262d80['current']=0x0,clearTimeout(_0x14b059['current']);},0x1f4)),_0x3fb70d();}function _0x10a81b(_0x22864c){try{_0x189a22(),_0xa28e49['current']['value']=_0x22864c['target']['value'];try{_0x116c4b['onChangeRange']&&_0x116c4b['onChangeRange']();}catch(_0x1a1369){}Boolean(window)&&(clearTimeout(_0x430a25['current']),_0x430a25['current']=setTimeout(()=>{const _0x48facb=Number(_0xa28e49['current']['value']),_0x10be06=_0x27ec50['current'],_0x2e2c97=_0x10be06[_0x48facb],_0x2605c8=_0x48facb;let _0x181350=[],_0x405dee=[];if(_0x246650)_0x48facb>_0x4bb1a9['current']&&(_0x181350=_0x10be06['slice'](_0x4bb1a9['current']+0x1,_0x2605c8)),_0x48facb<_0x4bb1a9['current']&&(_0x405dee=_0x10be06['slice'](_0x2605c8,_0x4bb1a9['current']+0x1));else{const _0x24346e=_0x17dc37=>_0x17dc37<0x0?0x0:_0x17dc37,_0x2882f8=_0x24346e(_0x55ff43['current']),_0x198f3e=_0x24346e(_0x4bb1a9['current']+0x1),_0x4a145c=_0x24346e(_0x2605c8+0x1-_0x18348d),_0xed2b44=_0x24346e(_0x2605c8+0x1);_0x55ff43['current']=_0x4a145c;if(_0x2882f8<_0x4a145c&&_0x4a145c<_0x198f3e)_0x181350=_0x10be06['slice'](_0x198f3e,_0xed2b44),_0x405dee=_0x10be06['slice'](_0x2882f8,_0x4a145c);else _0x2882f8<_0xed2b44&&_0xed2b44<_0x198f3e?(_0x181350=_0x10be06['slice'](_0x4a145c,_0x2882f8),_0x405dee=_0x10be06['slice'](_0xed2b44,_0x198f3e)):(_0x181350=_0x10be06['slice'](_0x4a145c,_0xed2b44),_0x405dee=_0x10be06['slice'](_0x2882f8,_0x198f3e));_0x55ff43['current']=_0x4a145c;}_0x57db6a(_0x2e2c97,_0x181350,_0x405dee),_0x4350f4(_0x48facb+0x1,_0x2e2c97);},0x1f4));}catch(_0x411575){a0_0x2d4033['logger']['log']('UNKNOWN');}}a0_0x47e5c2['default']['useEffect'](()=>{_0x167777();},[_0x116c4b['updateTime'],_0x18348d]),a0_0x47e5c2['default']['useEffect'](()=>{return clearInterval(_0x8416fb['current']),_0x8416fb['current']=setInterval(()=>{_0x2a6539['current']===0x1&&!_0x262d80['current']&&_0xdf66b5['current']&&_0x5c187b(0x1);},Math['floor'](0x3e8/_0x479029['current'])),()=>{clearInterval(_0x8416fb['current']);};},[_0x479029['current']]);const _0x113c23={};_0x113c23['width']='100%',_0x113c23['height']='100%',_0x113c23['display']='flex',_0x113c23['flexDirection']='column';const _0x518454={};_0x518454['width']='100%',_0x518454['height']='100%',_0x518454['position']='relative';const _0x15a849={};_0x15a849['style']=_0x518454,_0x15a849['children']=_0x116c4b['children'];const _0x2ae8e2={};_0x2ae8e2['width']='100%',_0x2ae8e2['display']='flex',_0x2ae8e2['flexDirection']='column',_0x2ae8e2['position']='relative';const _0x11947a={};_0x11947a['type']='range',_0x11947a['className']='muplayer-range-input',_0x11947a['ref']=_0xa28e49,_0x11947a['min']=0x0,_0x11947a['max']=_0xdf66b5['current']-0x1,_0x11947a['onMouseDown']=_0x189a22,_0x11947a['onMouseUp']=_0x4efd66,_0x11947a['onBlur']=_0x4efd66,_0x11947a['onChange']=_0x10a81b,_0x11947a['onTouchStart']=_0x189a22,_0x11947a['onTouchCancel']=_0x4efd66;const _0x55fe65={};_0x55fe65['ref']=_0xb03525;const _0x234766={};_0x234766['width']='100%',_0x234766['display']='flex',_0x234766['flexDirection']='row',_0x234766['alignItems']='center',_0x234766['gap']='0.25rem';const _0x36dd40={};_0x36dd40['width']='18px',_0x36dd40['height']='18px',_0x36dd40['border']='4px\x20solid\x20#ccc',_0x36dd40['borderTop']='4px\x20solid\x20#3498db',_0x36dd40['borderRadius']='50%',_0x36dd40['animation']='spinner-spin-mkplayyer\x201s\x20linear\x20infinite',_0x36dd40['margin']='5px\x2010px\x20auto';const _0x659db3={};_0x659db3['style']=_0x36dd40;const _0x32b1bc={};_0x32b1bc['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner-spin-mkplayyer\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x200%\x20{\x20transform:\x20rotate(0deg);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x20transform:\x20rotate(360deg);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x5e4cd9={};_0x5e4cd9['width']='100%',_0x5e4cd9['display']='flex',_0x5e4cd9['flexDirection']='row',_0x5e4cd9['alignItems']='center',_0x5e4cd9['justifyContent']='space-between',_0x5e4cd9['flexWrap']='wrap',_0x5e4cd9['gap']='0.5rem',_0x5e4cd9['fontSize']='0.875rem',_0x5e4cd9['lineHeight']='1.25rem';const _0x160d51={};_0x160d51['display']='flex',_0x160d51['flexDirection']='row',_0x160d51['alignItems']='center',_0x160d51['gap']='0.25rem';const _0x1b59ad={};_0x1b59ad['fontWeight']='500';const _0x2a15fe={};_0x2a15fe['ref']=_0x25fa47,_0x2a15fe['style']=_0x1b59ad,_0x2a15fe['children']='00:00:00';const _0x254526={};_0x254526['children']='-';const _0x65847={};_0x65847['ref']=_0x5b4d7c,_0x65847['children']='00:00:00';const _0x47112a={};_0x47112a['children']='-';const _0x1586c1={};_0x1586c1['ref']=_0x4c2a2a,_0x1586c1['children']='00:10:00';const _0xbc978={};_0xbc978['width']='5rem',_0xbc978['minHeight']=0x21,_0xbc978['height']=0x21,_0xbc978['borderRadius']=0x5;const _0x4204d4={};_0x4204d4['value']=0x1,_0x4204d4['children']='x1';const _0x1831cd={};_0x1831cd['value']=0x2,_0x1831cd['children']='x2';const _0x49c2f7={};_0x49c2f7['value']=0x3,_0x49c2f7['children']='x3';const _0x3dae0b={};_0x3dae0b['value']=0x5,_0x3dae0b['children']='x5';const _0x5cbc93={};_0x5cbc93['value']=0xa,_0x5cbc93['children']='10X';const _0x5a63e8={};return _0x5a63e8['value']=0x19,_0x5a63e8['children']='15X',(0x0,a0_0x22a361['jsxs'])('div',{'style':_0x113c23,'children':[(0x0,a0_0x22a361['jsx'])('div',_0x15a849),(0x0,a0_0x22a361['jsxs'])('div',{'style':_0x2ae8e2,'children':[(0x0,a0_0x22a361['jsx'])('input',_0x11947a),(0x0,a0_0x22a361['jsx'])('span',_0x55fe65),(0x0,a0_0x22a361['jsxs'])('div',{'style':_0x234766,'children':[_0x5a0f9b['current']?(0x0,a0_0x22a361['jsxs'])('div',{'children':[(0x0,a0_0x22a361['jsx'])('div',_0x659db3),(0x0,a0_0x22a361['jsx'])('style',_0x32b1bc)]}):(0x0,a0_0x22a361['jsx'])(a0_0x22a361['Fragment'],{}),(0x0,a0_0x22a361['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x2a6539['current']===0x1||!_0xdf66b5['current']||_0x5a0f9b['current'],'onClick':_0x3891e3,'children':'▶'}),(0x0,a0_0x22a361['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x2a6539['current']===0x0||_0x2a6539['current']===0x2||_0x5a0f9b['current'],'onClick':_0x4fd440,'children':'⏸'}),(0x0,a0_0x22a361['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x2a6539['current']===0x0||_0x5a0f9b['current'],'onClick':_0x167777,'children':'⏹︎'}),(0x0,a0_0x22a361['jsx'])('div',{'style':_0x5e4cd9,'children':(0x0,a0_0x22a361['jsxs'])('div',{'style':_0x160d51,'children':[(0x0,a0_0x22a361['jsx'])('div',_0x2a15fe),(0x0,a0_0x22a361['jsx'])('div',_0x254526),'[',(0x0,a0_0x22a361['jsx'])('div',_0x65847),(0x0,a0_0x22a361['jsx'])('div',_0x47112a),(0x0,a0_0x22a361['jsx'])('div',_0x1586c1),']']})}),(0x0,a0_0x22a361['jsxs'])('select',{'style':_0xbc978,'value':_0x479029['current'],'onChange':_0x5d04f1,'children':[(0x0,a0_0x22a361['jsx'])('option',_0x4204d4),(0x0,a0_0x22a361['jsx'])('option',_0x1831cd),(0x0,a0_0x22a361['jsx'])('option',_0x49c2f7),(0x0,a0_0x22a361['jsx'])('option',_0x3dae0b),(0x0,a0_0x22a361['jsx'])('option',_0x5cbc93),(0x0,a0_0x22a361['jsx'])('option',_0x5a63e8)]})]})]})]});}function a0_0x29e281(_0x508b30){return a0_0xebcd88(_0x508b30);}exports['MKPlayer']=a0_0x29e281;
|
|
1
|
+
'use strict';var a0_0x2a3c07=this&&this['__importDefault']||function(_0x2f40ea){return _0x2f40ea&&_0x2f40ea['__esModule']?_0x2f40ea:{'default':_0x2f40ea};};const a0_0x398125={};a0_0x398125['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x398125),exports['MKPlayer']=void 0x0;const a0_0x56b6f7=require('react/jsx-runtime'),a0_0x5cbf95=a0_0x2a3c07(require('react')),a0_0x2f2e5d=require('./DateUtil'),a0_0x3def4e=require('./logger'),a0_0x1a4ed1=require('mjstl'),a0_0x4c6209={};a0_0x4c6209['1']=0x1,a0_0x4c6209['2']=0x2,a0_0x4c6209['3']=0x3,a0_0x4c6209['5']=0x5,a0_0x4c6209['10']=0xa,a0_0x4c6209['25']=0x19;const a0_0x29031d=a0_0x4c6209,a0_0x507c91={};a0_0x507c91['-1']=-0x1,a0_0x507c91['2']=0x2,a0_0x507c91['5']=0x5,a0_0x507c91['10']=0xa,a0_0x507c91['15']=0xf,a0_0x507c91['25']=0x19,a0_0x507c91['50']=0x32,a0_0x507c91['100']=0x64;const a0_0x5d049b=a0_0x507c91;function a0_0x29fe30(_0x1800fe,_0x1ee61c,_0x40a293,_0x35cacb){const _0x306262=_0x40a293-_0x1800fe,_0x443d5d=_0x35cacb-_0x1ee61c,_0x520b75=Math['atan'](_0x306262/_0x443d5d);let _0x43c639=_0x520b75*0xb4/Math['PI'];return _0x43c639=0xb4-_0x43c639,(_0x306262>0x0&&_0x443d5d>0x0||_0x306262<0x0&&_0x443d5d>0x0)&&(_0x43c639=_0x43c639+0xb4),_0x43c639=_0x43c639+0x5a,_0x43c639;}function a0_0x2856e1({..._0x19d74b}){const _0x3c8839=Number(a0_0x5d049b[_0x19d74b['trackSize']])||0x5,_0x40db59=_0x3c8839<0x0,_0x4342d7=a0_0x5cbf95['default']['useRef'](0x0),_0xc007a9=a0_0x5cbf95['default']['useRef'](0x1),_0x15109b=a0_0x5cbf95['default']['useRef'](0x0),_0x280bd9=a0_0x5cbf95['default']['useRef']({}),_0x35b9a7=a0_0x5cbf95['default']['useRef']([]),_0x59acb3=a0_0x5cbf95['default']['useRef'](0x0),_0x1bbd3f=a0_0x5cbf95['default']['useRef'](-0x1),_0xb27f9b=a0_0x5cbf95['default']['useRef'](null),_0x2cb85c=a0_0x5cbf95['default']['useRef'](null),_0xff4e6b=a0_0x5cbf95['default']['useRef'](null),_0x334642=a0_0x5cbf95['default']['useRef'](null),_0xb6058b=a0_0x5cbf95['default']['useRef'](null),_0x28da0c=a0_0x5cbf95['default']['useRef'](null),_0x13f131=a0_0x5cbf95['default']['useRef'](null),_0x428797=a0_0x5cbf95['default']['useRef'](null),_0x488297=a0_0x5cbf95['default']['useState'](),_0x5d3178=a0_0x5cbf95['default']['useRef'](-0x1),_0x52d4c4=a0_0x5cbf95['default']['useRef'](![]),_0x5b51e3=a0_0x5cbf95['default']['useRef'](null);function _0x3b04f2(){_0x488297[0x1](new Date()['getTime']());}function _0x11a93d(){const _0x4b736c=_0x334642['current']['getBoundingClientRect'](),_0x2495df=_0x4b736c['width'],_0x5f57bb=_0x4b736c['height'],_0x311717=Number(_0x334642['current']['value']),_0x545d54=Number(_0x334642['current']['max']),_0xe343bf=Number(_0x334642['current']['min']),_0x262d68=_0x4b736c['left']+_0x2495df*(_0x311717-_0xe343bf)/(_0x545d54-_0xe343bf),_0x2a8e5e=0x19,_0x16be57=0x19,_0x113729=_0x262d68+_0x2a8e5e/0x2,_0x31771f=_0x4b736c['top']+_0x5f57bb/0x2,_0x5bdfc5={};return _0x5bdfc5['thumbCenterX']=_0x113729,_0x5bdfc5['thumbCenterY']=_0x31771f,_0x5bdfc5;}function _0x2d304c(){const _0x48b03b=_0x11a93d();_0xb6058b['current']['style']['position']='absolute',_0xb6058b['current']['style']['left']=_0x48b03b['thumbCenterX']+'px',_0xb6058b['current']['style']['top']=_0x48b03b['thumbCenterY']+'px',_0xb6058b['current']['style']['transform']='translateX(-50%)',_0xb6058b['current']['innerText']=_0x2cb85c['current']['innerText'];}function _0x5dea93(_0x411b87){try{const _0x305783=a0_0x1a4ed1['mtl']['Geo']['calcBounds'](_0x411b87);_0x19d74b['onBounds']&&_0x19d74b['onBounds'](_0x305783);}catch(_0x35cb58){}}async function _0x4b3f79(){_0x52d4c4['current']=!![],_0x59acb3['current']=0x0,_0x1bbd3f['current']=-0x1,_0x5d3178['current']=-0x1,_0x334642['current']['value']='0',_0x280bd9['current']={};const _0x219028=[];let _0x360643,_0x3871d4;try{_0x360643=a0_0x2f2e5d['DateUtil']['new']()['setDateInputValue'](_0x19d74b['startDate']),_0x3871d4=a0_0x2f2e5d['DateUtil']['new']()['setDateInputValue'](_0x19d74b['endDate']);const _0x3d83bc=a0_0x2f2e5d['DateUtil']['diffSecs'](_0x19d74b['startDate'],_0x19d74b['endDate'],!![]),_0x17e3de=[],_0x141b55=[],_0xe22e7c={};for(let _0x1602ec=0x0;_0x1602ec<_0x3d83bc;_0x1602ec++){_0xe22e7c[_0x360643['cpy']()['addSecs'](_0x1602ec)['startOfSeconds']()['toIsoDate']()]=[];}_0x19d74b['data']?.['orders']?.['sfEach'](_0x5cfadf=>{const _0xd9376=_0x5cfadf['actionsHistory'][0x0]['time'];let _0x3aa730;for(let _0x1ef55f=0x0;_0x1ef55f<_0x5cfadf['actionsHistory']?.['length'];_0x1ef55f++){_0x3aa730=_0x1ef55f<_0x5cfadf['actionsHistory']['length']-0x1?_0x5cfadf['actionsHistory'][_0x1ef55f+0x1]['time']:_0x3871d4['toIsoDate']();const _0x598c6c=_0x5cfadf['actionsHistory'][_0x1ef55f],_0x5403bd={..._0x5cfadf,..._0x598c6c};_0x5403bd['toTime']=_0x3aa730,_0x5403bd['submitDate']=_0xd9376;const _0x57b288=_0x5403bd;if(_0x598c6c['status']==='DELIVERED'||_0x598c6c['status']==='CANCELLED'||_0x598c6c['status']==='DELIVERY_FAILED'){_0x57b288['toTime']=a0_0x2f2e5d['DateUtil']['new']()['setDate'](new Date(_0x57b288['time']))['addMins'](0x1)['toDate']()['toISOString'](),_0x17e3de['push'](_0x57b288);break;}!(_0x598c6c['status']==='CANCELLED'||_0x598c6c['status']==='DELIVERY_FAILED')&&_0x17e3de['push'](_0x57b288),_0x3aa730=_0x57b288['time'];}_0x219028['push'](a0_0x1a4ed1['mtl']['Geo']['mcoord'](_0x5cfadf['storeLatitude'],_0x5cfadf['storeLongitude']));}),_0x19d74b['data']?.['drivers']?.['sfEach'](_0x1de279=>{if(_0x1de279['actions']?.['length']){let _0x2fdaf6;_0x1de279['actions']?.['sfEach']((_0x202e4d,_0x5efaa1)=>{_0x2fdaf6=_0x5efaa1<_0x1de279['actions']['length']-0x1?_0x1de279['actions'][_0x5efaa1+0x1]['time']:_0x3871d4['toIsoDate']();const _0x217bf8={};_0x217bf8['driverId']=_0x1de279['id'],_0x217bf8['firstName']=_0x1de279['firstName'],_0x217bf8['lastName']=_0x1de279['lastName'],_0x217bf8['storeChainId']=_0x202e4d['storeChainId'],_0x217bf8['storeChainName']=_0x202e4d['storeChainName'],_0x217bf8['driverActionType']=_0x202e4d['driverActionType'],_0x217bf8['toTime']=_0x2fdaf6,_0x217bf8['time']=_0x202e4d['time'];const _0x4d9013=_0x217bf8;_0x141b55['push'](_0x4d9013);});};if(_0x1de279['locations']?.['length']){let _0x23ad91=_0x1de279['locations'][0x0]['time'];_0x1de279['locations']?.['sfEach']((_0x299cbd,_0x1015fe)=>{const _0x7a3a6d=a0_0x2f2e5d['DateUtil']['new']()['setIsoDate'](_0x299cbd['time'])['startOfSeconds'](),_0x3a7501={'driverId':_0x1de279['id'],'firstName':_0x1de279['firstName'],'lastName':_0x1de279['lastName'],'lat':_0x299cbd['lat'],'lng':_0x299cbd['lon'],'preTime':_0x23ad91,'time':_0x7a3a6d['toTime']()};_0x23ad91=_0x3a7501['time'],_0xe22e7c[_0x7a3a6d['toIsoDate']()]['push'](_0x3a7501),_0x219028['push'](a0_0x1a4ed1['mtl']['Geo']['mcoord'](_0x299cbd['lat'],_0x299cbd['lon']));});}});const _0x14f1cf=(_0x33d960,_0x4c280d,_0x1fb778)=>{const _0x52e46c=new Date(_0x4c280d),_0xb1de32=new Date(_0x1fb778);return _0x52e46c<=_0x33d960&&_0x33d960<_0xb1de32;};for(let _0x3216e8=0x0;_0x3216e8<_0x3d83bc;_0x3216e8++){const _0x36dbf4=_0x360643['cpy']()['addSecs'](_0x3216e8)['startOfSeconds'](),_0x37297a=_0x36dbf4['toIsoDate'](),_0x1af5f4=_0x17e3de['sfFilter'](_0x1dd05f=>_0x14f1cf(_0x36dbf4['toTime'](),_0x1dd05f['time'],_0x1dd05f['toTime'])),_0x4c3a1c=_0x141b55['sfFilter'](_0x362b6a=>_0x14f1cf(_0x36dbf4['toTime'](),_0x362b6a['time'],_0x362b6a['toTime'])),_0x34118b=_0xe22e7c[_0x37297a],_0x2762de={};_0x2762de['orders']=_0x1af5f4,_0x2762de['locations']=_0x34118b,_0x2762de['actions']=_0x4c3a1c,_0x280bd9['current'][_0x37297a]=_0x2762de;}_0x59acb3['current']=_0x3d83bc,_0x35b9a7['current']=Object['keys'](_0x280bd9['current']);}catch(_0x6aee8f){a0_0x3def4e['logger']['log']('UNKNOWN');}_0x52d4c4['current']=![],_0xb27f9b['current']['innerText']=_0x360643?_0x360643['strTime']():a0_0x2f2e5d['DateUtil']['new']()['startOfDay']()['strTime'](),_0x2cb85c['current']['innerText']=_0x360643['cpy']()['strTime'](),_0xff4e6b['current']['innerText']=_0x3871d4?_0x3871d4['strTime']():a0_0x2f2e5d['DateUtil']['new']()['startOfDay']()['strTime'](),_0x2d304c(),_0x3b04f2(),_0x5dea93(_0x219028);}function _0x6796d(_0x30810a,_0x2952aa){_0x1bbd3f['current']=_0x30810a-0x1,_0x334642['current']['value']=_0x30810a-0x1,_0x2cb85c['current']['innerText']=a0_0x2f2e5d['DateUtil']['new']()['setDateInputValue'](_0x19d74b['startDate'])['addSecs'](_0x30810a)['strTime']();const _0x2ecd24=Number(_0x334642['current']['value'])/Number(_0x334642['current']['max'])*0x64;_0x334642['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x2ecd24+'%,\x20#ccc\x20'+_0x2ecd24+'%)';}function _0x5a03e6(_0xe07f50,_0x311224,_0x4a85ec){const _0x40b12d=_0x280bd9['current'][_0xe07f50];_0x19d74b['onMove'](_0x40b12d['orders'],_0x40b12d['actions'],_0x40b12d['locations']);}function _0x44a115(_0xd0070d){try{if(_0x1bbd3f['current']>=_0x59acb3['current']-0x1){_0x4342d7['current']=0x0,_0x3b04f2();return;}const _0xa26ccb=_0x1bbd3f['current']+0x1;let _0x373289=_0x1bbd3f['current']<0x0?0x1:_0x1bbd3f['current']+0x1+_0xd0070d;_0x373289=_0x373289>_0x59acb3['current']-0x1?_0x59acb3['current']:_0x373289;const _0x1fbb69=_0x5d3178['current'];_0x373289-_0x5d3178['current']>=_0x3c8839&&(_0x5d3178['current']=_0x373289-_0x3c8839);const _0x5ce230=_0x35b9a7['current']['slice'](_0xa26ccb,_0x373289),_0x100ea2=_0x35b9a7['current']['slice'](_0x1fbb69,_0x5d3178['current']);_0x6796d(_0x373289,_0x5ce230[0x0]),_0x5a03e6(_0x5ce230[_0x5ce230['length']-0x1],_0x5ce230,_0x100ea2),_0x2d304c();}catch(_0x1aa4e6){a0_0x3def4e['logger']['log']('UNKNOWN',_0x1aa4e6);}}function _0x388bfc(){_0x4342d7['current']=0x0,_0x334642['current']['value']='0',_0x52d4c4['current']=!![],_0x3b04f2(),window?.['clearTimeout'](_0x5b51e3['current']),_0x5b51e3['current']=setTimeout(()=>{_0x4b3f79();},0x9c4);}function _0x3aeaea(){_0x4342d7['current']=0x1,_0x1bbd3f['current']>=_0x59acb3['current']-0x1&&(_0x1bbd3f['current']=-0x1),_0x1bbd3f['current']<0x0&&(_0x5d3178['current']=0x0,_0x19d74b['onStartReplay']()),_0x3b04f2();}function _0x7c0146(){_0x4342d7['current']=0x2,_0x3b04f2();}function _0xd163f3(_0x213a09){_0xc007a9['current']=Number(a0_0x29031d[_0x213a09['target']['value']])||0x1,_0x3b04f2();try{_0x19d74b['onChangeSpeed']&&_0x19d74b['onChangeSpeed'](_0xc007a9['current']);}catch(_0x3c0ee2){}}function _0x23ffdf(){_0x15109b['current']=0x1,Boolean(window)&&clearTimeout(_0x13f131['current']),_0x3b04f2();}function _0x1a64c3(){Boolean(window)&&(_0x13f131['current']=setTimeout(()=>{_0x15109b['current']=0x0,clearTimeout(_0x13f131['current']);},0x1f4)),_0x3b04f2();}function _0x443a03(_0x536db3){try{_0x23ffdf(),_0x334642['current']['value']=_0x536db3['target']['value'];try{_0x19d74b['onChangeRange']&&_0x19d74b['onChangeRange']();}catch(_0xc3819b){}Boolean(window)&&(clearTimeout(_0x28da0c['current']),_0x28da0c['current']=setTimeout(()=>{const _0x61a58d=Number(_0x334642['current']['value']),_0x30c164=_0x35b9a7['current'],_0x31a1b9=_0x30c164[_0x61a58d],_0x243465=_0x61a58d;let _0x1fe683=[],_0x25b90a=[];if(_0x40db59)_0x61a58d>_0x1bbd3f['current']&&(_0x1fe683=_0x30c164['slice'](_0x1bbd3f['current']+0x1,_0x243465)),_0x61a58d<_0x1bbd3f['current']&&(_0x25b90a=_0x30c164['slice'](_0x243465,_0x1bbd3f['current']+0x1));else{const _0xfb5c4c=_0x58d910=>_0x58d910<0x0?0x0:_0x58d910,_0x52dd34=_0xfb5c4c(_0x5d3178['current']),_0x44c818=_0xfb5c4c(_0x1bbd3f['current']+0x1),_0x445b46=_0xfb5c4c(_0x243465+0x1-_0x3c8839),_0x250b8c=_0xfb5c4c(_0x243465+0x1);_0x5d3178['current']=_0x445b46;if(_0x52dd34<_0x445b46&&_0x445b46<_0x44c818)_0x1fe683=_0x30c164['slice'](_0x44c818,_0x250b8c),_0x25b90a=_0x30c164['slice'](_0x52dd34,_0x445b46);else _0x52dd34<_0x250b8c&&_0x250b8c<_0x44c818?(_0x1fe683=_0x30c164['slice'](_0x445b46,_0x52dd34),_0x25b90a=_0x30c164['slice'](_0x250b8c,_0x44c818)):(_0x1fe683=_0x30c164['slice'](_0x445b46,_0x250b8c),_0x25b90a=_0x30c164['slice'](_0x52dd34,_0x44c818));_0x5d3178['current']=_0x445b46;}_0x5a03e6(_0x31a1b9,_0x1fe683,_0x25b90a),_0x6796d(_0x61a58d+0x1,_0x31a1b9);},0x1f4));}catch(_0x64e9cc){a0_0x3def4e['logger']['log']('UNKNOWN');}}a0_0x5cbf95['default']['useEffect'](()=>{_0x388bfc();},[_0x19d74b['updateTime'],_0x3c8839]),a0_0x5cbf95['default']['useEffect'](()=>{return clearInterval(_0x428797['current']),_0x428797['current']=setInterval(()=>{_0x4342d7['current']===0x1&&!_0x15109b['current']&&_0x59acb3['current']&&_0x44a115(0x1);},Math['floor'](0x3e8/_0xc007a9['current'])),()=>{clearInterval(_0x428797['current']);};},[_0xc007a9['current']]);const _0x3b247e={};_0x3b247e['width']='100%',_0x3b247e['height']='100%',_0x3b247e['display']='flex',_0x3b247e['flexDirection']='column';const _0x44f7d6={};_0x44f7d6['width']='100%',_0x44f7d6['height']='100%',_0x44f7d6['position']='relative';const _0x5d3c84={};_0x5d3c84['style']=_0x44f7d6,_0x5d3c84['children']=_0x19d74b['children'];const _0x4a405b={};_0x4a405b['width']='100%',_0x4a405b['display']='flex',_0x4a405b['flexDirection']='column',_0x4a405b['position']='relative';const _0x23a428={};_0x23a428['type']='range',_0x23a428['className']='muplayer-range-input',_0x23a428['ref']=_0x334642,_0x23a428['min']=0x0,_0x23a428['max']=_0x59acb3['current']-0x1,_0x23a428['onMouseDown']=_0x23ffdf,_0x23a428['onMouseUp']=_0x1a64c3,_0x23a428['onBlur']=_0x1a64c3,_0x23a428['onChange']=_0x443a03,_0x23a428['onTouchStart']=_0x23ffdf,_0x23a428['onTouchCancel']=_0x1a64c3;const _0x328f7d={};_0x328f7d['ref']=_0xb6058b;const _0x35bdd2={};_0x35bdd2['width']='100%',_0x35bdd2['display']='flex',_0x35bdd2['flexDirection']='row',_0x35bdd2['alignItems']='center',_0x35bdd2['gap']='0.25rem';const _0x3fdebb={};_0x3fdebb['width']='18px',_0x3fdebb['height']='18px',_0x3fdebb['border']='4px\x20solid\x20#ccc',_0x3fdebb['borderTop']='4px\x20solid\x20#3498db',_0x3fdebb['borderRadius']='50%',_0x3fdebb['animation']='spinner-spin-mkplayyer\x201s\x20linear\x20infinite',_0x3fdebb['margin']='5px\x2010px\x20auto';const _0x3b6cae={};_0x3b6cae['style']=_0x3fdebb;const _0x54b54f={};_0x54b54f['children']='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keyframes\x20spinner-spin-mkplayyer\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x200%\x20{\x20transform:\x20rotate(0deg);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x20transform:\x20rotate(360deg);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';const _0x5caa5d={};_0x5caa5d['width']='100%',_0x5caa5d['display']='flex',_0x5caa5d['flexDirection']='row',_0x5caa5d['alignItems']='center',_0x5caa5d['justifyContent']='space-between',_0x5caa5d['flexWrap']='wrap',_0x5caa5d['gap']='0.5rem',_0x5caa5d['fontSize']='0.875rem',_0x5caa5d['lineHeight']='1.25rem';const _0xeef814={};_0xeef814['display']='flex',_0xeef814['flexDirection']='row',_0xeef814['alignItems']='center',_0xeef814['gap']='0.25rem';const _0x5282cf={};_0x5282cf['fontWeight']='500';const _0x21d393={};_0x21d393['ref']=_0x2cb85c,_0x21d393['style']=_0x5282cf,_0x21d393['children']='00:00:00';const _0x4f3b96={};_0x4f3b96['children']='-';const _0x373152={};_0x373152['ref']=_0xb27f9b,_0x373152['children']='00:00:00';const _0x19c340={};_0x19c340['children']='-';const _0x478e24={};_0x478e24['ref']=_0xff4e6b,_0x478e24['children']='00:10:00';const _0x2267d6={};_0x2267d6['width']='5rem',_0x2267d6['minHeight']=0x21,_0x2267d6['height']=0x21,_0x2267d6['borderRadius']=0x5;const _0x5429bb={};_0x5429bb['value']=0x1,_0x5429bb['children']='x1';const _0x2a8e95={};_0x2a8e95['value']=0x2,_0x2a8e95['children']='x2';const _0x2c5171={};_0x2c5171['value']=0x3,_0x2c5171['children']='x3';const _0x18c8c8={};_0x18c8c8['value']=0x5,_0x18c8c8['children']='x5';const _0x43716f={};_0x43716f['value']=0xa,_0x43716f['children']='10X';const _0x2b6bb2={};return _0x2b6bb2['value']=0x19,_0x2b6bb2['children']='15X',(0x0,a0_0x56b6f7['jsxs'])('div',{'style':_0x3b247e,'children':[(0x0,a0_0x56b6f7['jsx'])('div',_0x5d3c84),(0x0,a0_0x56b6f7['jsxs'])('div',{'style':_0x4a405b,'children':[(0x0,a0_0x56b6f7['jsx'])('input',_0x23a428),(0x0,a0_0x56b6f7['jsx'])('span',_0x328f7d),(0x0,a0_0x56b6f7['jsxs'])('div',{'style':_0x35bdd2,'children':[_0x52d4c4['current']?(0x0,a0_0x56b6f7['jsxs'])('div',{'children':[(0x0,a0_0x56b6f7['jsx'])('div',_0x3b6cae),(0x0,a0_0x56b6f7['jsx'])('style',_0x54b54f)]}):(0x0,a0_0x56b6f7['jsx'])(a0_0x56b6f7['Fragment'],{}),(0x0,a0_0x56b6f7['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x4342d7['current']===0x1||!_0x59acb3['current']||_0x52d4c4['current'],'onClick':_0x3aeaea,'children':'▶'}),(0x0,a0_0x56b6f7['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x4342d7['current']===0x0||_0x4342d7['current']===0x2||_0x52d4c4['current'],'onClick':_0x7c0146,'children':'⏸'}),(0x0,a0_0x56b6f7['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x4342d7['current']===0x0||_0x52d4c4['current'],'onClick':_0x388bfc,'children':'⏹︎'}),(0x0,a0_0x56b6f7['jsx'])('div',{'style':_0x5caa5d,'children':(0x0,a0_0x56b6f7['jsxs'])('div',{'style':_0xeef814,'children':[(0x0,a0_0x56b6f7['jsx'])('div',_0x21d393),(0x0,a0_0x56b6f7['jsx'])('div',_0x4f3b96),'[',(0x0,a0_0x56b6f7['jsx'])('div',_0x373152),(0x0,a0_0x56b6f7['jsx'])('div',_0x19c340),(0x0,a0_0x56b6f7['jsx'])('div',_0x478e24),']']})}),(0x0,a0_0x56b6f7['jsxs'])('select',{'style':_0x2267d6,'value':_0xc007a9['current'],'onChange':_0xd163f3,'children':[(0x0,a0_0x56b6f7['jsx'])('option',_0x5429bb),(0x0,a0_0x56b6f7['jsx'])('option',_0x2a8e95),(0x0,a0_0x56b6f7['jsx'])('option',_0x2c5171),(0x0,a0_0x56b6f7['jsx'])('option',_0x18c8c8),(0x0,a0_0x56b6f7['jsx'])('option',_0x43716f),(0x0,a0_0x56b6f7['jsx'])('option',_0x2b6bb2)]})]})]})]});}function a0_0x46abae(_0x1f7817){return a0_0x2856e1(_0x1f7817);}exports['MKPlayer']=a0_0x46abae;
|
package/dist/MUPlayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0xd16def=this&&this['__createBinding']||(Object['create']?function(_0x7c7198,_0x2b7978,_0x258779,_0x5ae112){if(_0x5ae112===undefined)_0x5ae112=_0x258779;var _0x255901=Object['getOwnPropertyDescriptor'](_0x2b7978,_0x258779);if(!_0x255901||('get'in _0x255901?!_0x2b7978['__esModule']:_0x255901['writable']||_0x255901['configurable'])){const _0x3b40c6={};_0x3b40c6['enumerable']=!![],_0x3b40c6['get']=function(){return _0x2b7978[_0x258779];},_0x255901=_0x3b40c6;}Object['defineProperty'](_0x7c7198,_0x5ae112,_0x255901);}:function(_0x127c5b,_0x2ff089,_0x8f0130,_0x9b87bb){if(_0x9b87bb===undefined)_0x9b87bb=_0x8f0130;_0x127c5b[_0x9b87bb]=_0x2ff089[_0x8f0130];}),a0_0x3ce664=this&&this['__setModuleDefault']||(Object['create']?function(_0x4b357f,_0x30b0b0){const _0x1ea018={};_0x1ea018['enumerable']=!![],_0x1ea018['value']=_0x30b0b0,Object['defineProperty'](_0x4b357f,'default',_0x1ea018);}:function(_0x22303b,_0x46bdab){_0x22303b['default']=_0x46bdab;}),a0_0x2b3715=this&&this['__importStar']||function(_0xdd9d12){if(_0xdd9d12&&_0xdd9d12['__esModule'])return _0xdd9d12;var _0x130b67={};if(_0xdd9d12!=null){for(var _0x4200b1 in _0xdd9d12)if(_0x4200b1!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0xdd9d12,_0x4200b1))a0_0xd16def(_0x130b67,_0xdd9d12,_0x4200b1);}return a0_0x3ce664(_0x130b67,_0xdd9d12),_0x130b67;};const a0_0x2c3cf6={};a0_0x2c3cf6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2c3cf6),exports['MUPlayer']=void 0x0;const a0_0x5ddb47=require('react/jsx-runtime'),a0_0x429c88=a0_0x2b3715(require('react')),a0_0x4aa86c=require('./DateUtil'),a0_0x65a7f6=require('./logger'),a0_0x4080aa={};a0_0x4080aa['1']=0x1,a0_0x4080aa['2']=0x2,a0_0x4080aa['3']=0x3,a0_0x4080aa['5']=0x5,a0_0x4080aa['10']=0xa,a0_0x4080aa['25']=0x19;const a0_0x23c089=a0_0x4080aa,a0_0x200deb={};a0_0x200deb['-1']=-0x1,a0_0x200deb['5']=0x5,a0_0x200deb['10']=0xa,a0_0x200deb['15']=0xf,a0_0x200deb['25']=0x19,a0_0x200deb['50']=0x32,a0_0x200deb['100']=0x64;const a0_0x2fef5d=a0_0x200deb;function a0_0x1b9db1(_0x1ef83a,_0x4b2010=0x1){return _0x1ef83a['toString']()['padStart'](_0x4b2010,'0');}function a0_0x495757(_0x1000aa,_0x1c07f5,_0x295d56,_0x1dfbc6){const _0xe28266=_0x295d56-_0x1000aa,_0x5809ad=_0x1dfbc6-_0x1c07f5,_0x4570a3=Math['atan'](_0xe28266/_0x5809ad);let _0x52be39=_0x4570a3*0xb4/Math['PI'];return _0x52be39=0xb4-_0x52be39,(_0xe28266>0x0&&_0x5809ad>0x0||_0xe28266<0x0&&_0x5809ad>0x0)&&(_0x52be39=_0x52be39+0xb4),_0x52be39=_0x52be39+0x5a,_0x52be39;}function a0_0x400c49(_0x44c7a2){return _0x44c7a2*(Math['PI']/0xb4);}function a0_0x3c8411(_0x33b8af,_0x5e26f2,_0x18451c,_0x2fb563){_0x33b8af=_0x33b8af||0x0,_0x5e26f2=_0x2fb563||0x0,_0x18451c=_0x18451c||0x0,_0x2fb563=_0x2fb563||0x0;var _0x4bfc3a=0x18e3,_0x3a1da0=a0_0x400c49(_0x18451c-_0x33b8af),_0x13403b=a0_0x400c49(_0x2fb563-_0x5e26f2),_0x471db1=Math['sin'](_0x3a1da0/0x2)*Math['sin'](_0x3a1da0/0x2)+Math['cos'](a0_0x400c49(_0x33b8af))*Math['cos'](a0_0x400c49(_0x18451c))*Math['sin'](_0x13403b/0x2)*Math['sin'](_0x13403b/0x2),_0x553ba4=0x2*Math['atan2'](Math['sqrt'](_0x471db1),Math['sqrt'](0x1-_0x471db1)),_0x37fc3b=_0x4bfc3a*_0x553ba4;return Math['abs'](_0x37fc3b);}function a0_0x5b8046({track:track='point',..._0x211208}){const _0x2a198b=Number(a0_0x2fef5d[_0x211208['trackSize']])||0x5,_0x54467a=_0x2a198b<0x0,_0x3cc2e0=a0_0x429c88['useRef'](0x0),_0x31e5db=a0_0x429c88['useRef'](0x1),_0x33574f=a0_0x429c88['useRef'](0x0),_0xdba192=a0_0x429c88['useRef']({}),_0x5809a9=a0_0x429c88['useRef']([]),_0x5c2300=a0_0x429c88['useRef'](0x0),_0x322574=a0_0x429c88['useRef'](-0x1),_0x4cd7f0=a0_0x429c88['useRef'](null),_0x4cf93b=a0_0x429c88['useRef'](null),_0x41dc95=a0_0x429c88['useRef'](null),_0x195dec=a0_0x429c88['useRef'](null),_0x432f50=a0_0x429c88['useRef'](null),_0x118346=a0_0x429c88['useRef'](null),_0x435907=a0_0x429c88['useRef'](null),_0x568b46=a0_0x429c88['useRef'](null),_0x5e6005=a0_0x429c88['useRef'](null),_0x30fbf6=a0_0x429c88['useRef'](null),_0xf52ea2=a0_0x429c88['useRef'](null),_0x3c7b2e=a0_0x429c88['useState'](),_0x537a87=a0_0x429c88['useRef'](-0x1);function _0x9518ce(){_0x3c7b2e[0x1](new Date()['getTime']());}function _0x18c312(){const _0x2004d5=_0x435907['current']['getBoundingClientRect'](),_0x25e1fb=_0x2004d5['width'],_0x5a6433=_0x2004d5['height'],_0x26b859=Number(_0x435907['current']['value']),_0x242a88=Number(_0x435907['current']['max']),_0x1d975f=Number(_0x435907['current']['min']),_0x2438c2=_0x2004d5['left']+_0x25e1fb*(_0x26b859-_0x1d975f)/(_0x242a88-_0x1d975f),_0x18eadb=0x19,_0x255705=0x19,_0x2ce6fb=_0x2438c2+_0x18eadb/0x2,_0x43ba7f=_0x2004d5['top']+_0x5a6433/0x2,_0xf78f67={};return _0xf78f67['thumbCenterX']=_0x2ce6fb,_0xf78f67['thumbCenterY']=_0x43ba7f,_0xf78f67;}function _0x185221(){const _0x38caa4=_0x18c312();_0x568b46['current']['style']['position']='absolute',_0x568b46['current']['style']['left']=_0x38caa4['thumbCenterX']+'px',_0x568b46['current']['style']['top']=_0x38caa4['thumbCenterY']+'px',_0x568b46['current']['style']['transform']='translateX(-50%)',_0x568b46['current']['innerText']=_0x4cf93b['current']['innerText'];}function _0x441382(){_0x5c2300['current']=0x0,_0x322574['current']=-0x1,_0x537a87['current']=-0x1,_0x435907['current']['value']='0';let _0x3f724d,_0x4dc6df;try{if(_0x211208['points']['length']){const _0x4840f3=_0x211208['points']['sort']((_0x199624,_0x5c982c)=>new Date(_0x199624['time'])['getTime']()>new Date(_0x5c982c['time'])['getTime']()?0x1:0x1);_0xdba192['current']={},_0x4840f3['sfEach']((_0x40d74c,_0x2c64fe)=>{const _0x53d2a7=_0x4840f3[_0x2c64fe],_0x20556c=_0x4840f3[_0x2c64fe+0x1];_0x20556c&&(_0x20556c['from']=_0x53d2a7,_0x20556c['distance']=a0_0x3c8411(_0x53d2a7['lat'],_0x53d2a7['lng'],_0x20556c['lat'],_0x20556c['lng']),_0x4840f3[_0x2c64fe]['angle']=a0_0x495757(_0x53d2a7['lat'],_0x53d2a7['lng'],_0x20556c['lat'],_0x20556c['lng'])),_0xdba192['current'][new Date(_0x40d74c['time'])['getTime']()]=_0x40d74c;}),_0x5c2300['current']=Object['values'](_0xdba192['current'])['length'],_0x5809a9['current']=Object['keys'](_0xdba192['current']),_0x3f724d=_0x4840f3[0x0],_0x4dc6df=_0x4840f3[_0x4840f3['length']-0x1];}}catch(_0x3a04b1){a0_0x65a7f6['logger']['log']('UNKNOWN');}_0x4cd7f0['current']['innerText']=_0x3f724d?a0_0x4aa86c['DateUtil']['new']()['setDate'](new Date(_0x3f724d['time']))['strTime']():a0_0x4aa86c['DateUtil']['new']()['startOfDay']()['strTime'](),_0x4cf93b['current']['innerText']=a0_0x4aa86c['DateUtil']['new']()['startOfDay']()['strTime']()['replaceAll']('0','-'),_0x41dc95['current']['innerText']=_0x4dc6df?a0_0x4aa86c['DateUtil']['new']()['setDate'](new Date(_0x4dc6df['time']))['strTime']():a0_0x4aa86c['DateUtil']['new']()['startOfDay']()['strTime'](),_0x195dec['current']['innerText']=a0_0x1b9db1(0x0,0x7),_0x432f50['current']['innerText']=a0_0x1b9db1(_0x5c2300['current'],0x7),_0x185221(),_0x9518ce();}function _0xbce2b8(_0x2f3acf,_0x204f6a){_0x322574['current']=_0x2f3acf-0x1,_0x435907['current']['value']=_0x2f3acf-0x1,_0x4cf93b['current']['innerText']=a0_0x4aa86c['DateUtil']['new']()['setTime'](Number(_0x204f6a))['strTime'](),_0x195dec['current']['innerText']=a0_0x1b9db1(_0x2f3acf,0x7);const _0x2acc6b=Number(_0x435907['current']['value'])/Number(_0x435907['current']['max'])*0x64;_0x435907['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x2acc6b+'%,\x20#ccc\x20'+_0x2acc6b+'%)';}function _0x480163(_0x27c88a,_0xc2aff2,_0x33ca19){const _0x36eff9=_0xdba192['current'][_0x27c88a],_0x230a7e=_0xc2aff2['sfMap'](_0x14e9e1=>_0xdba192['current'][_0x14e9e1]),_0x5105f5=_0x33ca19['sfMap'](_0x49786b=>_0xdba192['current'][_0x49786b]),_0x45321a=_0x230a7e['sfMap'](_0x132f70=>_0x132f70['id']),_0x385364=_0x5105f5['sfMap'](_0x48c974=>_0x48c974['id']),_0x42d84c={};_0x42d84c['point']=_0x36eff9,_0x42d84c['adds']=_0x230a7e,_0x42d84c['rms']=_0x5105f5,_0x42d84c['addIds']=_0x45321a,_0x42d84c['rmIds']=_0x385364,_0x211208['onMove'](_0x42d84c);if(_0x211208['panel']){const _0x3369e0={};_0x3369e0['point']=_0x36eff9,_0x3369e0['adds']=_0x230a7e,_0x3369e0['rms']=_0x5105f5,_0x3369e0['addIds']=_0x45321a,_0x3369e0['rmIds']=_0x385364,_0x118346['current']=_0x211208['panel'](_0x3369e0),_0x9518ce();}}function _0x53fe29(_0xd4c840){try{if(_0x322574['current']>=_0x5c2300['current']-0x1){_0x3cc2e0['current']=0x0,_0x9518ce();return;}const _0x573e78=_0x322574['current']+0x1;let _0xa380b2=_0x322574['current']<0x0?0x1:_0x322574['current']+0x1+_0xd4c840;_0xa380b2=_0xa380b2>_0x5c2300['current']-0x1?_0x5c2300['current']:_0xa380b2;const _0x2339da=_0x537a87['current'];_0xa380b2-_0x537a87['current']>=_0x2a198b&&(_0x537a87['current']=_0xa380b2-_0x2a198b);const _0x51c89b=_0x5809a9['current']['slice'](_0x573e78,_0xa380b2),_0x276faf=_0x5809a9['current']['slice'](_0x2339da,_0x537a87['current']);_0xbce2b8(_0xa380b2,_0x51c89b[0x0]),_0x480163(_0x51c89b[_0x51c89b['length']-0x1],_0x51c89b,_0x276faf),_0x185221();}catch(_0x4dfb74){a0_0x65a7f6['logger']['log']('UNKNOWN',_0x4dfb74);}}function _0x5065a0(){_0x3cc2e0['current']=0x0,_0x435907['current']['value']='0',_0x441382(),_0x9518ce();}function _0x196057(){_0x3cc2e0['current']=0x1,_0x322574['current']>=_0x5c2300['current']-0x1&&(_0x322574['current']=-0x1),_0x322574['current']<0x0&&(_0x537a87['current']=0x0,_0x211208['onStartReplay'](Object['values'](_0xdba192['current']))),_0x9518ce();}function _0x28d50d(){_0x3cc2e0['current']=0x2,_0x9518ce();}function _0x35b21d(_0x5acfd5){_0x31e5db['current']=Number(a0_0x23c089[_0x5acfd5['target']['value']])||0x1,_0x9518ce();}function _0x2df787(){_0x33574f['current']=0x1,window&&clearTimeout(_0x30fbf6['current']),_0x9518ce();}function _0x3c5b0f(){window&&(_0x30fbf6['current']=setTimeout(()=>{_0x33574f['current']=0x0,clearTimeout(_0x30fbf6['current']);},0x1f4)),_0x9518ce();}function _0x5d1ece(_0xe5a50c){try{_0x2df787(),_0x435907['current']['value']=_0xe5a50c['target']['value'],window&&(clearTimeout(_0x5e6005['current']),_0x5e6005['current']=setTimeout(()=>{const _0x4eb9a9=Number(_0x435907['current']['value']),_0x3f098f=_0x5809a9['current'],_0x26b758=_0x3f098f[_0x4eb9a9],_0x2b1047=_0x4eb9a9;let _0x39d06e=[],_0x315592=[];if(_0x54467a)_0x4eb9a9>_0x322574['current']&&(_0x39d06e=_0x3f098f['slice'](_0x322574['current']+0x1,_0x2b1047)),_0x4eb9a9<_0x322574['current']&&(_0x315592=_0x3f098f['slice'](_0x2b1047,_0x322574['current']+0x1));else{const _0x101b9d=_0x1ba8c8=>_0x1ba8c8<0x0?0x0:_0x1ba8c8,_0x30233f=_0x101b9d(_0x537a87['current']),_0x3cbb6e=_0x101b9d(_0x322574['current']+0x1),_0x3de4c6=_0x101b9d(_0x2b1047+0x1-_0x2a198b),_0x2c9404=_0x101b9d(_0x2b1047+0x1);_0x537a87['current']=_0x3de4c6;if(_0x30233f<_0x3de4c6&&_0x3de4c6<_0x3cbb6e)_0x39d06e=_0x3f098f['slice'](_0x3cbb6e,_0x2c9404),_0x315592=_0x3f098f['slice'](_0x30233f,_0x3de4c6);else _0x30233f<_0x2c9404&&_0x2c9404<_0x3cbb6e?(_0x39d06e=_0x3f098f['slice'](_0x3de4c6,_0x30233f),_0x315592=_0x3f098f['slice'](_0x2c9404,_0x3cbb6e)):(_0x39d06e=_0x3f098f['slice'](_0x3de4c6,_0x2c9404),_0x315592=_0x3f098f['slice'](_0x30233f,_0x3cbb6e));_0x537a87['current']=_0x3de4c6;}_0x480163(_0x26b758,_0x39d06e,_0x315592),_0xbce2b8(_0x4eb9a9+0x1,_0x26b758);},0x1f4));}catch(_0x491fcc){a0_0x65a7f6['logger']['log']('UNKNOWN');}}a0_0x429c88['useEffect'](()=>{_0x5065a0();},[_0x211208['points']['length'],_0x2a198b]),a0_0x429c88['useEffect'](()=>{return clearInterval(_0xf52ea2['current']),track==='point'?_0xf52ea2['current']=setInterval(()=>{_0x3cc2e0['current']===0x1&&!_0x33574f['current']&&_0x5c2300['current']&&_0x53fe29(_0x31e5db['current']);},0x3e8):_0xf52ea2['current']=setInterval(()=>{_0x3cc2e0['current']===0x1&&!_0x33574f['current']&&_0x5c2300['current']&&_0x53fe29(0x1);},Math['floor'](0x3e8/_0x31e5db['current'])),()=>{clearInterval(_0xf52ea2['current']);};},[track,_0x31e5db['current']]);const _0x137069={};_0x137069['width']='100%',_0x137069['height']='100%',_0x137069['display']='flex',_0x137069['flexDirection']='column',_0x137069['borderWidth']=0x1,_0x137069['borderColor']='#e5e7eb',_0x137069['overflow']='hidden';const _0x1ad043={};_0x1ad043['width']='100%',_0x1ad043['height']='100%',_0x1ad043['position']='relative';const _0x118ed6={};_0x118ed6['style']=_0x1ad043,_0x118ed6['children']=[_0x211208['children'],_0x118346['current']];const _0x5d9b22={};_0x5d9b22['width']='100%',_0x5d9b22['display']='flex',_0x5d9b22['flexDirection']='column',_0x5d9b22['position']='relative';const _0x48566a={};_0x48566a['type']='range',_0x48566a['className']='muplayer-range-input',_0x48566a['ref']=_0x435907,_0x48566a['min']=0x0,_0x48566a['max']=_0x5c2300['current']-0x1,_0x48566a['onMouseDown']=_0x2df787,_0x48566a['onMouseUp']=_0x3c5b0f,_0x48566a['onBlur']=_0x3c5b0f,_0x48566a['onChange']=_0x5d1ece,_0x48566a['onTouchStart']=_0x2df787,_0x48566a['onTouchCancel']=_0x3c5b0f;const _0x124e5b={};_0x124e5b['ref']=_0x568b46;const _0x25796f={};_0x25796f['width']='100%',_0x25796f['display']='flex',_0x25796f['flexDirection']='row',_0x25796f['alignItems']='center',_0x25796f['gap']='0.25rem';const _0x38b9ef={};_0x38b9ef['className']='mt-mutbnc',_0x38b9ef['disabled']=_0x3cc2e0['current']===0x1||!_0x5c2300['current'],_0x38b9ef['onClick']=_0x196057,_0x38b9ef['children']='▶';const _0x4059b9={};_0x4059b9['className']='mt-mutbnc',_0x4059b9['disabled']=_0x3cc2e0['current']===0x0||_0x3cc2e0['current']===0x2,_0x4059b9['onClick']=_0x28d50d,_0x4059b9['children']='⏸';const _0x3b8320={};_0x3b8320['className']='mt-mutbnc',_0x3b8320['disabled']=_0x3cc2e0['current']===0x0,_0x3b8320['onClick']=_0x5065a0,_0x3b8320['children']='⏹︎';const _0x24d0fc={};_0x24d0fc['width']='100%',_0x24d0fc['display']='flex',_0x24d0fc['flexDirection']='row',_0x24d0fc['alignItems']='center',_0x24d0fc['justifyContent']='space-between',_0x24d0fc['flexWrap']='wrap',_0x24d0fc['gap']='0.5rem',_0x24d0fc['fontSize']='0.875rem',_0x24d0fc['lineHeight']='1.25rem';const _0xf7adad={};_0xf7adad['display']='flex',_0xf7adad['flexDirection']='row',_0xf7adad['alignItems']='center',_0xf7adad['gap']='0.25rem';const _0x9daab7={};_0x9daab7['fontWeight']='500';const _0x7237a2={};_0x7237a2['ref']=_0x4cf93b,_0x7237a2['style']=_0x9daab7,_0x7237a2['children']='00:00:00';const _0x14141a={};_0x14141a['children']='-';const _0x4ff113={};_0x4ff113['ref']=_0x4cd7f0,_0x4ff113['children']='00:00:00';const _0x369182={};_0x369182['children']='-';const _0x28e2b0={};_0x28e2b0['ref']=_0x41dc95,_0x28e2b0['children']='00:10:00';const _0x294961={};_0x294961['display']='flex',_0x294961['flexDirection']='row',_0x294961['alignItems']='center',_0x294961['gap']='0.25rem';const _0x35524b={};_0x35524b['ref']=_0x195dec,_0x35524b['children']='00001';const _0x4ab04c={};_0x4ab04c['children']='/';const _0x38af2e={};_0x38af2e['width']='5rem',_0x38af2e['minHeight']=0x21,_0x38af2e['height']=0x21;const _0x5f2d02={};_0x5f2d02['value']=0x1,_0x5f2d02['children']='x1';const _0x15b7cc={};_0x15b7cc['value']=0x2,_0x15b7cc['children']='x2';const _0x5740b5={};_0x5740b5['value']=0x3,_0x5740b5['children']='x3';const _0x95b8ae={};_0x95b8ae['value']=0x5,_0x95b8ae['children']='x5';const _0x5ebe1c={};_0x5ebe1c['value']=0xa,_0x5ebe1c['children']='10X';const _0x55d94b={};return _0x55d94b['value']=0x19,_0x55d94b['children']='15X',(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0x137069,'children':[(0x0,a0_0x5ddb47['jsxs'])('div',_0x118ed6),(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0x5d9b22,'children':[(0x0,a0_0x5ddb47['jsx'])('input',_0x48566a),(0x0,a0_0x5ddb47['jsx'])('span',_0x124e5b),(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0x25796f,'children':[(0x0,a0_0x5ddb47['jsx'])('button',_0x38b9ef),(0x0,a0_0x5ddb47['jsx'])('button',_0x4059b9),(0x0,a0_0x5ddb47['jsx'])('button',_0x3b8320),(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0x24d0fc,'children':[(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0xf7adad,'children':[(0x0,a0_0x5ddb47['jsx'])('div',_0x7237a2),(0x0,a0_0x5ddb47['jsx'])('div',_0x14141a),'[',(0x0,a0_0x5ddb47['jsx'])('div',_0x4ff113),(0x0,a0_0x5ddb47['jsx'])('div',_0x369182),(0x0,a0_0x5ddb47['jsx'])('div',_0x28e2b0),']']}),(0x0,a0_0x5ddb47['jsxs'])('div',{'style':_0x294961,'children':[(0x0,a0_0x5ddb47['jsx'])('div',_0x35524b),(0x0,a0_0x5ddb47['jsx'])('div',_0x4ab04c),(0x0,a0_0x5ddb47['jsx'])('div',{'ref':_0x432f50,'children':a0_0x1b9db1(_0x5c2300['current'],0x7)})]})]}),(0x0,a0_0x5ddb47['jsxs'])('select',{'style':_0x38af2e,'value':_0x31e5db['current'],'onChange':_0x35b21d,'children':[(0x0,a0_0x5ddb47['jsx'])('option',_0x5f2d02),(0x0,a0_0x5ddb47['jsx'])('option',_0x15b7cc),(0x0,a0_0x5ddb47['jsx'])('option',_0x5740b5),(0x0,a0_0x5ddb47['jsx'])('option',_0x95b8ae),(0x0,a0_0x5ddb47['jsx'])('option',_0x5ebe1c),(0x0,a0_0x5ddb47['jsx'])('option',_0x55d94b)]})]})]})]});}function a0_0x28a2e3(_0x4b084c){return a0_0x5b8046(_0x4b084c);}exports['MUPlayer']=a0_0x28a2e3;
|
|
1
|
+
'use strict';var a0_0x4e1712=this&&this['__createBinding']||(Object['create']?function(_0x3b6df4,_0x5e82e5,_0x415c17,_0x408bfa){if(_0x408bfa===undefined)_0x408bfa=_0x415c17;var _0x40e78c=Object['getOwnPropertyDescriptor'](_0x5e82e5,_0x415c17);if(!_0x40e78c||('get'in _0x40e78c?!_0x5e82e5['__esModule']:_0x40e78c['writable']||_0x40e78c['configurable'])){const _0x18b382={};_0x18b382['enumerable']=!![],_0x18b382['get']=function(){return _0x5e82e5[_0x415c17];},_0x40e78c=_0x18b382;}Object['defineProperty'](_0x3b6df4,_0x408bfa,_0x40e78c);}:function(_0x4399e6,_0x2a2f73,_0x27deda,_0x599f26){if(_0x599f26===undefined)_0x599f26=_0x27deda;_0x4399e6[_0x599f26]=_0x2a2f73[_0x27deda];}),a0_0x3c8e56=this&&this['__setModuleDefault']||(Object['create']?function(_0x3efe34,_0x38b0d1){const _0x2d8e94={};_0x2d8e94['enumerable']=!![],_0x2d8e94['value']=_0x38b0d1,Object['defineProperty'](_0x3efe34,'default',_0x2d8e94);}:function(_0x2021ad,_0x31533f){_0x2021ad['default']=_0x31533f;}),a0_0x29e0fa=this&&this['__importStar']||function(_0x45a6c4){if(_0x45a6c4&&_0x45a6c4['__esModule'])return _0x45a6c4;var _0x2b7d54={};if(_0x45a6c4!=null){for(var _0x338682 in _0x45a6c4)if(_0x338682!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x45a6c4,_0x338682))a0_0x4e1712(_0x2b7d54,_0x45a6c4,_0x338682);}return a0_0x3c8e56(_0x2b7d54,_0x45a6c4),_0x2b7d54;};const a0_0x3bf60f={};a0_0x3bf60f['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3bf60f),exports['MUPlayer']=void 0x0;const a0_0x1aed85=require('react/jsx-runtime'),a0_0x2c3830=a0_0x29e0fa(require('react')),a0_0x39c776=require('./DateUtil'),a0_0x4fe865=require('./logger'),a0_0x176e94={};a0_0x176e94['1']=0x1,a0_0x176e94['2']=0x2,a0_0x176e94['3']=0x3,a0_0x176e94['5']=0x5,a0_0x176e94['10']=0xa,a0_0x176e94['25']=0x19;const a0_0x440bd4=a0_0x176e94,a0_0x1f3716={};a0_0x1f3716['-1']=-0x1,a0_0x1f3716['5']=0x5,a0_0x1f3716['10']=0xa,a0_0x1f3716['15']=0xf,a0_0x1f3716['25']=0x19,a0_0x1f3716['50']=0x32,a0_0x1f3716['100']=0x64;const a0_0x30e3a0=a0_0x1f3716;function a0_0x37ddef(_0x367efc,_0x23d399=0x1){return _0x367efc['toString']()['padStart'](_0x23d399,'0');}function a0_0x268669(_0xd32eee,_0x5b81fd,_0x44c5ae,_0x55f659){const _0x40a5d7=_0x44c5ae-_0xd32eee,_0x647e45=_0x55f659-_0x5b81fd,_0x159a9d=Math['atan'](_0x40a5d7/_0x647e45);let _0x10e86e=_0x159a9d*0xb4/Math['PI'];return _0x10e86e=0xb4-_0x10e86e,(_0x40a5d7>0x0&&_0x647e45>0x0||_0x40a5d7<0x0&&_0x647e45>0x0)&&(_0x10e86e=_0x10e86e+0xb4),_0x10e86e=_0x10e86e+0x5a,_0x10e86e;}function a0_0x313441(_0x4835dc){return _0x4835dc*(Math['PI']/0xb4);}function a0_0x1e8b2c(_0x21418e,_0x2f88a0,_0x56ae98,_0x27f1f1){_0x21418e=_0x21418e||0x0,_0x2f88a0=_0x27f1f1||0x0,_0x56ae98=_0x56ae98||0x0,_0x27f1f1=_0x27f1f1||0x0;var _0x33493e=0x18e3,_0x2634b7=a0_0x313441(_0x56ae98-_0x21418e),_0x50281f=a0_0x313441(_0x27f1f1-_0x2f88a0),_0x468f74=Math['sin'](_0x2634b7/0x2)*Math['sin'](_0x2634b7/0x2)+Math['cos'](a0_0x313441(_0x21418e))*Math['cos'](a0_0x313441(_0x56ae98))*Math['sin'](_0x50281f/0x2)*Math['sin'](_0x50281f/0x2),_0xfb3103=0x2*Math['atan2'](Math['sqrt'](_0x468f74),Math['sqrt'](0x1-_0x468f74)),_0x273ad3=_0x33493e*_0xfb3103;return Math['abs'](_0x273ad3);}function a0_0x379370({track:track='point',..._0x2a50e3}){const _0x3b73e1=Number(a0_0x30e3a0[_0x2a50e3['trackSize']])||0x5,_0x83afe0=_0x3b73e1<0x0,_0x585f7d=a0_0x2c3830['useRef'](0x0),_0xc624d4=a0_0x2c3830['useRef'](0x1),_0xec4be7=a0_0x2c3830['useRef'](0x0),_0x35c8e9=a0_0x2c3830['useRef']({}),_0xd399d6=a0_0x2c3830['useRef']([]),_0x13f996=a0_0x2c3830['useRef'](0x0),_0x356876=a0_0x2c3830['useRef'](-0x1),_0x2490f9=a0_0x2c3830['useRef'](null),_0x5495d4=a0_0x2c3830['useRef'](null),_0xfe50ef=a0_0x2c3830['useRef'](null),_0x3cedef=a0_0x2c3830['useRef'](null),_0x1dcca3=a0_0x2c3830['useRef'](null),_0x31e07e=a0_0x2c3830['useRef'](null),_0x440052=a0_0x2c3830['useRef'](null),_0x3b7646=a0_0x2c3830['useRef'](null),_0x3bf602=a0_0x2c3830['useRef'](null),_0x52a4fc=a0_0x2c3830['useRef'](null),_0x6162c=a0_0x2c3830['useRef'](null),_0x3a4903=a0_0x2c3830['useState'](),_0x5359f4=a0_0x2c3830['useRef'](-0x1);function _0x18f80d(){_0x3a4903[0x1](new Date()['getTime']());}function _0x497544(){const _0x3e0c6d=_0x440052['current']['getBoundingClientRect'](),_0x28586d=_0x3e0c6d['width'],_0x1917d4=_0x3e0c6d['height'],_0x1b05a5=Number(_0x440052['current']['value']),_0x4944c2=Number(_0x440052['current']['max']),_0x55239f=Number(_0x440052['current']['min']),_0x57aebd=_0x3e0c6d['left']+_0x28586d*(_0x1b05a5-_0x55239f)/(_0x4944c2-_0x55239f),_0x3f7bba=0x19,_0x1b161e=0x19,_0x345d7b=_0x57aebd+_0x3f7bba/0x2,_0x4709c7=_0x3e0c6d['top']+_0x1917d4/0x2,_0x1d4ac4={};return _0x1d4ac4['thumbCenterX']=_0x345d7b,_0x1d4ac4['thumbCenterY']=_0x4709c7,_0x1d4ac4;}function _0x3479e4(){const _0x27f3e3=_0x497544();_0x3b7646['current']['style']['position']='absolute',_0x3b7646['current']['style']['left']=_0x27f3e3['thumbCenterX']+'px',_0x3b7646['current']['style']['top']=_0x27f3e3['thumbCenterY']+'px',_0x3b7646['current']['style']['transform']='translateX(-50%)',_0x3b7646['current']['innerText']=_0x5495d4['current']['innerText'];}function _0x214173(){_0x13f996['current']=0x0,_0x356876['current']=-0x1,_0x5359f4['current']=-0x1,_0x440052['current']['value']='0';let _0x52c87b,_0x1b00fc;try{if(_0x2a50e3['points']['length']){const _0xa1fb00=_0x2a50e3['points']['sort']((_0x4aed25,_0x27fef3)=>new Date(_0x4aed25['time'])['getTime']()>new Date(_0x27fef3['time'])['getTime']()?0x1:0x1);_0x35c8e9['current']={},_0xa1fb00['sfEach']((_0x173ec5,_0x46c182)=>{const _0x185d03=_0xa1fb00[_0x46c182],_0x243b9c=_0xa1fb00[_0x46c182+0x1];_0x243b9c&&(_0x243b9c['from']=_0x185d03,_0x243b9c['distance']=a0_0x1e8b2c(_0x185d03['lat'],_0x185d03['lng'],_0x243b9c['lat'],_0x243b9c['lng']),_0xa1fb00[_0x46c182]['angle']=a0_0x268669(_0x185d03['lat'],_0x185d03['lng'],_0x243b9c['lat'],_0x243b9c['lng'])),_0x35c8e9['current'][new Date(_0x173ec5['time'])['getTime']()]=_0x173ec5;}),_0x13f996['current']=Object['values'](_0x35c8e9['current'])['length'],_0xd399d6['current']=Object['keys'](_0x35c8e9['current']),_0x52c87b=_0xa1fb00[0x0],_0x1b00fc=_0xa1fb00[_0xa1fb00['length']-0x1];}}catch(_0x3abecc){a0_0x4fe865['logger']['log']('UNKNOWN');}_0x2490f9['current']['innerText']=_0x52c87b?a0_0x39c776['DateUtil']['new']()['setDate'](new Date(_0x52c87b['time']))['strTime']():a0_0x39c776['DateUtil']['new']()['startOfDay']()['strTime'](),_0x5495d4['current']['innerText']=a0_0x39c776['DateUtil']['new']()['startOfDay']()['strTime']()['replaceAll']('0','-'),_0xfe50ef['current']['innerText']=_0x1b00fc?a0_0x39c776['DateUtil']['new']()['setDate'](new Date(_0x1b00fc['time']))['strTime']():a0_0x39c776['DateUtil']['new']()['startOfDay']()['strTime'](),_0x3cedef['current']['innerText']=a0_0x37ddef(0x0,0x7),_0x1dcca3['current']['innerText']=a0_0x37ddef(_0x13f996['current'],0x7),_0x3479e4(),_0x18f80d();}function _0x599dc9(_0x114384,_0x2d6a09){_0x356876['current']=_0x114384-0x1,_0x440052['current']['value']=_0x114384-0x1,_0x5495d4['current']['innerText']=a0_0x39c776['DateUtil']['new']()['setTime'](Number(_0x2d6a09))['strTime'](),_0x3cedef['current']['innerText']=a0_0x37ddef(_0x114384,0x7);const _0x49d231=Number(_0x440052['current']['value'])/Number(_0x440052['current']['max'])*0x64;_0x440052['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x49d231+'%,\x20#ccc\x20'+_0x49d231+'%)';}function _0x42281e(_0x1ad8dc,_0x2f8c5b,_0x516a65){const _0x3103b9=_0x35c8e9['current'][_0x1ad8dc],_0x58dd07=_0x2f8c5b['sfMap'](_0x10afed=>_0x35c8e9['current'][_0x10afed]),_0x1fca1b=_0x516a65['sfMap'](_0x45bbe6=>_0x35c8e9['current'][_0x45bbe6]),_0x182e5c=_0x58dd07['sfMap'](_0xa38a8b=>_0xa38a8b['id']),_0x15ed24=_0x1fca1b['sfMap'](_0x1ec6c0=>_0x1ec6c0['id']),_0x1d825c={};_0x1d825c['point']=_0x3103b9,_0x1d825c['adds']=_0x58dd07,_0x1d825c['rms']=_0x1fca1b,_0x1d825c['addIds']=_0x182e5c,_0x1d825c['rmIds']=_0x15ed24,_0x2a50e3['onMove'](_0x1d825c);if(_0x2a50e3['panel']){const _0x406ca3={};_0x406ca3['point']=_0x3103b9,_0x406ca3['adds']=_0x58dd07,_0x406ca3['rms']=_0x1fca1b,_0x406ca3['addIds']=_0x182e5c,_0x406ca3['rmIds']=_0x15ed24,_0x31e07e['current']=_0x2a50e3['panel'](_0x406ca3),_0x18f80d();}}function _0x2877f2(_0x5a7944){try{if(_0x356876['current']>=_0x13f996['current']-0x1){_0x585f7d['current']=0x0,_0x18f80d();return;}const _0xf2cfa0=_0x356876['current']+0x1;let _0x2371c4=_0x356876['current']<0x0?0x1:_0x356876['current']+0x1+_0x5a7944;_0x2371c4=_0x2371c4>_0x13f996['current']-0x1?_0x13f996['current']:_0x2371c4;const _0x1d8679=_0x5359f4['current'];_0x2371c4-_0x5359f4['current']>=_0x3b73e1&&(_0x5359f4['current']=_0x2371c4-_0x3b73e1);const _0x1d4d29=_0xd399d6['current']['slice'](_0xf2cfa0,_0x2371c4),_0x2a17b8=_0xd399d6['current']['slice'](_0x1d8679,_0x5359f4['current']);_0x599dc9(_0x2371c4,_0x1d4d29[0x0]),_0x42281e(_0x1d4d29[_0x1d4d29['length']-0x1],_0x1d4d29,_0x2a17b8),_0x3479e4();}catch(_0x579696){a0_0x4fe865['logger']['log']('UNKNOWN',_0x579696);}}function _0x86b7a0(){_0x585f7d['current']=0x0,_0x440052['current']['value']='0',_0x214173(),_0x18f80d();}function _0x252108(){_0x585f7d['current']=0x1,_0x356876['current']>=_0x13f996['current']-0x1&&(_0x356876['current']=-0x1),_0x356876['current']<0x0&&(_0x5359f4['current']=0x0,_0x2a50e3['onStartReplay'](Object['values'](_0x35c8e9['current']))),_0x18f80d();}function _0x1fe5fb(){_0x585f7d['current']=0x2,_0x18f80d();}function _0xc773df(_0x25909e){_0xc624d4['current']=Number(a0_0x440bd4[_0x25909e['target']['value']])||0x1,_0x18f80d();}function _0x229657(){_0xec4be7['current']=0x1,window&&clearTimeout(_0x52a4fc['current']),_0x18f80d();}function _0x346bb8(){window&&(_0x52a4fc['current']=setTimeout(()=>{_0xec4be7['current']=0x0,clearTimeout(_0x52a4fc['current']);},0x1f4)),_0x18f80d();}function _0x33a7db(_0xa65177){try{_0x229657(),_0x440052['current']['value']=_0xa65177['target']['value'],window&&(clearTimeout(_0x3bf602['current']),_0x3bf602['current']=setTimeout(()=>{const _0x2c0971=Number(_0x440052['current']['value']),_0xc808b4=_0xd399d6['current'],_0x55385a=_0xc808b4[_0x2c0971],_0x2a6518=_0x2c0971;let _0x4899c1=[],_0x2f5495=[];if(_0x83afe0)_0x2c0971>_0x356876['current']&&(_0x4899c1=_0xc808b4['slice'](_0x356876['current']+0x1,_0x2a6518)),_0x2c0971<_0x356876['current']&&(_0x2f5495=_0xc808b4['slice'](_0x2a6518,_0x356876['current']+0x1));else{const _0x40d233=_0x45a2e7=>_0x45a2e7<0x0?0x0:_0x45a2e7,_0x58418a=_0x40d233(_0x5359f4['current']),_0x1f9f87=_0x40d233(_0x356876['current']+0x1),_0x2b1f57=_0x40d233(_0x2a6518+0x1-_0x3b73e1),_0x42867d=_0x40d233(_0x2a6518+0x1);_0x5359f4['current']=_0x2b1f57;if(_0x58418a<_0x2b1f57&&_0x2b1f57<_0x1f9f87)_0x4899c1=_0xc808b4['slice'](_0x1f9f87,_0x42867d),_0x2f5495=_0xc808b4['slice'](_0x58418a,_0x2b1f57);else _0x58418a<_0x42867d&&_0x42867d<_0x1f9f87?(_0x4899c1=_0xc808b4['slice'](_0x2b1f57,_0x58418a),_0x2f5495=_0xc808b4['slice'](_0x42867d,_0x1f9f87)):(_0x4899c1=_0xc808b4['slice'](_0x2b1f57,_0x42867d),_0x2f5495=_0xc808b4['slice'](_0x58418a,_0x1f9f87));_0x5359f4['current']=_0x2b1f57;}_0x42281e(_0x55385a,_0x4899c1,_0x2f5495),_0x599dc9(_0x2c0971+0x1,_0x55385a);},0x1f4));}catch(_0x277f67){a0_0x4fe865['logger']['log']('UNKNOWN');}}a0_0x2c3830['useEffect'](()=>{_0x86b7a0();},[_0x2a50e3['points']['length'],_0x3b73e1]),a0_0x2c3830['useEffect'](()=>{return clearInterval(_0x6162c['current']),track==='point'?_0x6162c['current']=setInterval(()=>{_0x585f7d['current']===0x1&&!_0xec4be7['current']&&_0x13f996['current']&&_0x2877f2(_0xc624d4['current']);},0x3e8):_0x6162c['current']=setInterval(()=>{_0x585f7d['current']===0x1&&!_0xec4be7['current']&&_0x13f996['current']&&_0x2877f2(0x1);},Math['floor'](0x3e8/_0xc624d4['current'])),()=>{clearInterval(_0x6162c['current']);};},[track,_0xc624d4['current']]);const _0x9d7a17={};_0x9d7a17['width']='100%',_0x9d7a17['height']='100%',_0x9d7a17['display']='flex',_0x9d7a17['flexDirection']='column',_0x9d7a17['borderWidth']=0x1,_0x9d7a17['borderColor']='#e5e7eb',_0x9d7a17['overflow']='hidden';const _0x5eeeb2={};_0x5eeeb2['width']='100%',_0x5eeeb2['height']='100%',_0x5eeeb2['position']='relative';const _0x359450={};_0x359450['style']=_0x5eeeb2,_0x359450['children']=[_0x2a50e3['children'],_0x31e07e['current']];const _0x1378fa={};_0x1378fa['width']='100%',_0x1378fa['display']='flex',_0x1378fa['flexDirection']='column',_0x1378fa['position']='relative';const _0x30d31e={};_0x30d31e['type']='range',_0x30d31e['className']='muplayer-range-input',_0x30d31e['ref']=_0x440052,_0x30d31e['min']=0x0,_0x30d31e['max']=_0x13f996['current']-0x1,_0x30d31e['onMouseDown']=_0x229657,_0x30d31e['onMouseUp']=_0x346bb8,_0x30d31e['onBlur']=_0x346bb8,_0x30d31e['onChange']=_0x33a7db,_0x30d31e['onTouchStart']=_0x229657,_0x30d31e['onTouchCancel']=_0x346bb8;const _0x2bdf77={};_0x2bdf77['ref']=_0x3b7646;const _0x100083={};_0x100083['width']='100%',_0x100083['display']='flex',_0x100083['flexDirection']='row',_0x100083['alignItems']='center',_0x100083['gap']='0.25rem';const _0x47451a={};_0x47451a['className']='mt-mutbnc',_0x47451a['disabled']=_0x585f7d['current']===0x1||!_0x13f996['current'],_0x47451a['onClick']=_0x252108,_0x47451a['children']='▶';const _0xdbb850={};_0xdbb850['className']='mt-mutbnc',_0xdbb850['disabled']=_0x585f7d['current']===0x0||_0x585f7d['current']===0x2,_0xdbb850['onClick']=_0x1fe5fb,_0xdbb850['children']='⏸';const _0x276f8a={};_0x276f8a['className']='mt-mutbnc',_0x276f8a['disabled']=_0x585f7d['current']===0x0,_0x276f8a['onClick']=_0x86b7a0,_0x276f8a['children']='⏹︎';const _0x2d983b={};_0x2d983b['width']='100%',_0x2d983b['display']='flex',_0x2d983b['flexDirection']='row',_0x2d983b['alignItems']='center',_0x2d983b['justifyContent']='space-between',_0x2d983b['flexWrap']='wrap',_0x2d983b['gap']='0.5rem',_0x2d983b['fontSize']='0.875rem',_0x2d983b['lineHeight']='1.25rem';const _0x9fb9eb={};_0x9fb9eb['display']='flex',_0x9fb9eb['flexDirection']='row',_0x9fb9eb['alignItems']='center',_0x9fb9eb['gap']='0.25rem';const _0x505535={};_0x505535['fontWeight']='500';const _0xd882cc={};_0xd882cc['ref']=_0x5495d4,_0xd882cc['style']=_0x505535,_0xd882cc['children']='00:00:00';const _0x4a1562={};_0x4a1562['children']='-';const _0x3785a3={};_0x3785a3['ref']=_0x2490f9,_0x3785a3['children']='00:00:00';const _0x365e1c={};_0x365e1c['children']='-';const _0x1f0bc5={};_0x1f0bc5['ref']=_0xfe50ef,_0x1f0bc5['children']='00:10:00';const _0x47bd61={};_0x47bd61['display']='flex',_0x47bd61['flexDirection']='row',_0x47bd61['alignItems']='center',_0x47bd61['gap']='0.25rem';const _0x2e69e3={};_0x2e69e3['ref']=_0x3cedef,_0x2e69e3['children']='00001';const _0x5489fb={};_0x5489fb['children']='/';const _0x4bebe4={};_0x4bebe4['width']='5rem',_0x4bebe4['minHeight']=0x21,_0x4bebe4['height']=0x21;const _0xfdaa7d={};_0xfdaa7d['value']=0x1,_0xfdaa7d['children']='x1';const _0x6ef4a2={};_0x6ef4a2['value']=0x2,_0x6ef4a2['children']='x2';const _0x570865={};_0x570865['value']=0x3,_0x570865['children']='x3';const _0x232791={};_0x232791['value']=0x5,_0x232791['children']='x5';const _0x26a8e1={};_0x26a8e1['value']=0xa,_0x26a8e1['children']='10X';const _0x4aaa3a={};return _0x4aaa3a['value']=0x19,_0x4aaa3a['children']='15X',(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x9d7a17,'children':[(0x0,a0_0x1aed85['jsxs'])('div',_0x359450),(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x1378fa,'children':[(0x0,a0_0x1aed85['jsx'])('input',_0x30d31e),(0x0,a0_0x1aed85['jsx'])('span',_0x2bdf77),(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x100083,'children':[(0x0,a0_0x1aed85['jsx'])('button',_0x47451a),(0x0,a0_0x1aed85['jsx'])('button',_0xdbb850),(0x0,a0_0x1aed85['jsx'])('button',_0x276f8a),(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x2d983b,'children':[(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x9fb9eb,'children':[(0x0,a0_0x1aed85['jsx'])('div',_0xd882cc),(0x0,a0_0x1aed85['jsx'])('div',_0x4a1562),'[',(0x0,a0_0x1aed85['jsx'])('div',_0x3785a3),(0x0,a0_0x1aed85['jsx'])('div',_0x365e1c),(0x0,a0_0x1aed85['jsx'])('div',_0x1f0bc5),']']}),(0x0,a0_0x1aed85['jsxs'])('div',{'style':_0x47bd61,'children':[(0x0,a0_0x1aed85['jsx'])('div',_0x2e69e3),(0x0,a0_0x1aed85['jsx'])('div',_0x5489fb),(0x0,a0_0x1aed85['jsx'])('div',{'ref':_0x1dcca3,'children':a0_0x37ddef(_0x13f996['current'],0x7)})]})]}),(0x0,a0_0x1aed85['jsxs'])('select',{'style':_0x4bebe4,'value':_0xc624d4['current'],'onChange':_0xc773df,'children':[(0x0,a0_0x1aed85['jsx'])('option',_0xfdaa7d),(0x0,a0_0x1aed85['jsx'])('option',_0x6ef4a2),(0x0,a0_0x1aed85['jsx'])('option',_0x570865),(0x0,a0_0x1aed85['jsx'])('option',_0x232791),(0x0,a0_0x1aed85['jsx'])('option',_0x26a8e1),(0x0,a0_0x1aed85['jsx'])('option',_0x4aaa3a)]})]})]})]});}function a0_0x560e68(_0xae7f5e){return a0_0x379370(_0xae7f5e);}exports['MUPlayer']=a0_0x560e68;
|
package/dist/Multiselect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x1a5bfe=this&&this['__createBinding']||(Object['create']?function(_0x3b86d2,_0x2c15ba,_0x416dfe,_0xf8752f){if(_0xf8752f===undefined)_0xf8752f=_0x416dfe;var _0x2ea775=Object['getOwnPropertyDescriptor'](_0x2c15ba,_0x416dfe);if(!_0x2ea775||('get'in _0x2ea775?!_0x2c15ba['__esModule']:_0x2ea775['writable']||_0x2ea775['configurable'])){const _0x2751bb={};_0x2751bb['enumerable']=!![],_0x2751bb['get']=function(){return _0x2c15ba[_0x416dfe];},_0x2ea775=_0x2751bb;}Object['defineProperty'](_0x3b86d2,_0xf8752f,_0x2ea775);}:function(_0x53a8f8,_0x514f17,_0xf9fa9d,_0x4c39f6){if(_0x4c39f6===undefined)_0x4c39f6=_0xf9fa9d;_0x53a8f8[_0x4c39f6]=_0x514f17[_0xf9fa9d];}),a0_0x1a56fc=this&&this['__setModuleDefault']||(Object['create']?function(_0x2cf345,_0x21eea0){const _0x2f98ed={};_0x2f98ed['enumerable']=!![],_0x2f98ed['value']=_0x21eea0,Object['defineProperty'](_0x2cf345,'default',_0x2f98ed);}:function(_0x575e92,_0x310c68){_0x575e92['default']=_0x310c68;}),a0_0x4cdd1c=this&&this['__importStar']||function(_0x4c1895){if(_0x4c1895&&_0x4c1895['__esModule'])return _0x4c1895;var _0xa7c034={};if(_0x4c1895!=null){for(var _0x32b0ae in _0x4c1895)if(_0x32b0ae!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x4c1895,_0x32b0ae))a0_0x1a5bfe(_0xa7c034,_0x4c1895,_0x32b0ae);}return a0_0x1a56fc(_0xa7c034,_0x4c1895),_0xa7c034;};const a0_0x3dbdfe={};a0_0x3dbdfe['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3dbdfe),exports['Multiselect']=void 0x0;const a0_0x3d9400=require('react/jsx-runtime'),a0_0x34bbc8=a0_0x4cdd1c(require('react')),a0_0x523b0f=require('./Icons'),a0_0x1726bc=require('./common'),a0_0x3b7b2a=require('./Checkbox'),a0_0x1aea7a=require('react-dom'),a0_0xd7c43a=require('./Button'),a0_0x411f03=()=>{};var a0_0x432fc2;(function(_0x5e72ae){_0x5e72ae['MOUSE_DOWN']='mousedown',_0x5e72ae['MOUSE_UP']='mouseup',_0x5e72ae['MOUSE_MOVE']='mousemove',_0x5e72ae['MOUSE_CLICK']='click',_0x5e72ae['FOCUS']='focus';}(a0_0x432fc2||(a0_0x432fc2={})));function a0_0x2d0111(_0x4a1e67){const _0x200854=a0_0x34bbc8['useCallback'](_0x2d3903=>{_0x4a1e67['isOpen']&&!_0x4a1e67['referances']['sfMap'](_0x8c0417=>_0x8c0417['current']?.['contains'](_0x2d3903['target']))['sfFilter'](_0x16c318=>_0x16c318)['length']&&_0x4a1e67['onClickOutside']();},[_0x4a1e67['referances'],_0x4a1e67['isOpen'],_0x4a1e67['onClickOutside']]);return a0_0x34bbc8['useEffect'](()=>{return window?.['removeEventListener'](a0_0x432fc2['MOUSE_UP'],_0x200854,!![]),window?.['removeEventListener'](a0_0x432fc2['MOUSE_CLICK'],_0x200854,!![]),document?.['removeEventListener'](a0_0x432fc2['FOCUS'],_0x200854,!![]),_0x4a1e67['isOpen']&&(window?.['addEventListener'](a0_0x432fc2['MOUSE_UP'],_0x200854,!![]),window?.['addEventListener'](a0_0x432fc2['MOUSE_CLICK'],_0x200854,!![]),document?.['addEventListener'](a0_0x432fc2['FOCUS'],_0x200854,!![])),()=>{window?.['removeEventListener'](a0_0x432fc2['MOUSE_UP'],_0x200854,!![]),window?.['removeEventListener'](a0_0x432fc2['MOUSE_CLICK'],_0x200854,!![]),document?.['removeEventListener'](a0_0x432fc2['FOCUS'],_0x200854,!![]);};},[_0x200854]),(0x0,a0_0x3d9400['jsx'])(a0_0x3d9400['Fragment'],{'children':_0x4a1e67['render']()});}function a0_0x1cffd5(_0x3b974e,_0x573be4,_0x270d81,_0x37ad5c){try{const _0x5c2b0f=_0x37ad5c?.['getBoundingClientRect']()?.['top'],_0x3a140b=_0x37ad5c?.['getBoundingClientRect']()?.['bottom'],_0x29e3b1=_0x37ad5c?.['getBoundingClientRect']()?.['left'],_0x49c1a2=_0x37ad5c?.['getBoundingClientRect']()?.['right'],_0x5cf310=_0x5c2b0f<=_0x3b974e&&_0x3b974e<=_0x3a140b&&_0x29e3b1<=_0x573be4&&_0x49c1a2>=_0x270d81;return _0x5cf310;}catch(_0x229f93){}return![];}function a0_0x354b21(_0x2f9dd6){const _0x1fab2b=a0_0x34bbc8['useRef'](_0x2f9dd6['value']||[]),_0x38d4ba=a0_0x34bbc8['useRef'](null),_0x28ec08=a0_0x34bbc8['useMemo'](()=>{let _0x28430d=[],_0x1aafc3=[],_0x173929=![],_0x46e2ef=[];const _0x92b761=[..._0x2f9dd6['data']||[]],_0x52a7ca=window?.['innerWidth']<0x280;try{_0x28430d=_0x92b761['sfFilter'](_0x530e71=>(_0x2f9dd6['value']||[])['sfFind'](_0x4830d1=>_0x4830d1===_0x530e71[_0x2f9dd6['accessorValue']])),_0x1aafc3=_0x28430d['sfMap'](_0x138dec=>_0x138dec[_0x2f9dd6['accessorValue']]),_0x173929=_0x1aafc3['length']===_0x92b761?.['length'];}catch(_0x13bc18){}try{let _0x3737f7=[],_0x10205e=[],_0x16b1c8=_0x2f9dd6['searchText']?!_0x2f9dd6['search']||_0x2f9dd6['search']==='anywhere'?_0x92b761['sfFilter'](_0x12ef5a=>_0x12ef5a[_0x2f9dd6['accessorLabel']]?.['toLocaleLowerCase'](_0x2f9dd6['code']||a0_0x1726bc['globalConfigs']['countryCode'])['includes'](_0x2f9dd6['searchText'])):_0x92b761['sfFilter'](_0x1b19eb=>_0x1b19eb[_0x2f9dd6['accessorLabel']]?.['toLocaleLowerCase'](_0x2f9dd6['code']||a0_0x1726bc['globalConfigs']['countryCode'])['startsWith'](_0x2f9dd6['searchText'])):_0x92b761;_0x16b1c8['sfEach'](_0x1b015d=>{if(_0x1aafc3['sfFind'](_0x5efdad=>_0x5efdad===_0x1b015d[_0x2f9dd6['accessorValue']])){const _0x5634c7={};_0x5634c7['id']=_0x1b015d[_0x2f9dd6['accessorValue']],_0x5634c7['label']=_0x1b015d[_0x2f9dd6['accessorLabel']],_0x5634c7['checked']=!![],_0x3737f7['push'](_0x5634c7);}else{const _0x176e11={};_0x176e11['id']=_0x1b015d[_0x2f9dd6['accessorValue']],_0x176e11['label']=_0x1b015d[_0x2f9dd6['accessorLabel']],_0x176e11['checked']=![],_0x10205e['push'](_0x176e11);}});if(_0x2f9dd6['sorting']!=='none'){const _0x5e71a7=(_0x3c3cc4,_0x129c2f)=>{return _0x3c3cc4['label']?.['toString']()?.['toLocaleLowerCase'](_0x2f9dd6['code']||a0_0x1726bc['globalConfigs']['countryCode'])['localeCompare'](_0x129c2f['label']?.['toString']()?.['toLocaleLowerCase'](_0x2f9dd6['code']||a0_0x1726bc['globalConfigs']['countryCode']));};_0x3737f7=_0x3737f7['sort'](_0x5e71a7),_0x10205e=_0x10205e['sort'](_0x5e71a7),_0x2f9dd6['sorting']==='desc'&&(_0x3737f7=_0x3737f7['reverse'](),_0x10205e=_0x10205e['reverse']());}_0x46e2ef=[..._0x3737f7,..._0x10205e];}catch(_0x38784c){console['warn']('UNKNOWN_ERROR');}const _0x30960c=_0x2f9dd6['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x54d12a={};return _0x54d12a['issm']=_0x52a7ca,_0x54d12a['ddicss']=_0x30960c,_0x54d12a['data']=_0x92b761,_0x54d12a['selects']=_0x28430d,_0x54d12a['selectIds']=_0x1aafc3,_0x54d12a['isAllSelected']=_0x173929,_0x54d12a['rows']=_0x46e2ef,_0x54d12a;},[_0x2f9dd6['data']?.['length'],_0x2f9dd6['value'],_0x2f9dd6['accessorLabel'],_0x2f9dd6['accessorValue'],_0x2f9dd6['searchText'],_0x2f9dd6['sorting']]);function _0x507e62(_0x1d224d,_0x4ad7d5){_0x1d224d['preventDefault']();try{let _0x590546=_0x28ec08['selectIds'];_0x590546['sfFind'](_0x2e756c=>_0x2e756c===_0x4ad7d5)?_0x590546=_0x590546['sfFilter'](_0x33e823=>_0x33e823!==_0x4ad7d5):_0x590546['push'](_0x4ad7d5);if(_0x2f9dd6['onChange']){const _0x3c82da=_0x28ec08['selectIds']['length']===_0x28ec08['data']?.['length'];_0x2f9dd6['onChange'](_0x590546,_0x3c82da);}_0x2f9dd6['refCmb']['current']?.['focus']();}catch(_0x5cabe3){}}function _0x52bee7(_0x56f638){_0x56f638['preventDefault']();try{let _0x4c5ecc=[];!_0x28ec08['isAllSelected']&&(_0x4c5ecc=_0x28ec08['data']['sfMap'](_0x40b3eb=>_0x40b3eb[_0x2f9dd6['accessorValue']])),_0x2f9dd6['onChange']&&_0x2f9dd6['onChange'](_0x4c5ecc,!_0x28ec08['isAllSelected']),_0x2f9dd6['refCmb']['current']?.['focus']();}catch(_0x28dac5){}}function _0x547425(){_0x2f9dd6['onClose']();}function _0x117dda(){_0x2f9dd6['onChange']&&_0x2f9dd6['onChange'](_0x1fab2b['current'],_0x1fab2b['current']['length']===_0x28ec08['data']?.['length']),_0x2f9dd6['onClose']();}const _0x2d0ad7=a0_0x34bbc8['useCallback'](_0x5ae409=>{try{if(_0x28ec08['issm'])return;const _0x3cbf44=_0x2f9dd6['refCmb']['current']?.['getBoundingClientRect']();_0x38d4ba['current']&&(_0x38d4ba['current']['style']['display']='flex',_0x38d4ba['current']['style']['left']=_0x3cbf44?.['left']+'px',_0x38d4ba['current']['style']['top']=(_0x3cbf44?.['top']+_0x3cbf44?.['height']+_0x38d4ba['current']['offsetHeight']<window?.['innerHeight']?_0x3cbf44?.['top']+_0x3cbf44?.['height']:_0x3cbf44?.['top']-_0x38d4ba['current']['offsetHeight'])+'px',_0x38d4ba['current']['style']['width']=_0x3cbf44?.['width']+'px'),_0x5ae409&&_0x38d4ba['current']&&_0x2f9dd6['refC']['current']?.['contains'](_0x5ae409['target'])&&(_0x38d4ba['current']['style']['display']=!a0_0x1cffd5(_0x3cbf44['top'],_0x3cbf44['left'],_0x3cbf44['right'],_0x5ae409['target'])?'none':'flex');}catch(_0x30be5e){}},[]);a0_0x34bbc8['useEffect'](()=>{_0x38d4ba['current']&&setTimeout(()=>{_0x2d0ad7();},0xfa);},[_0x38d4ba['current']]),a0_0x34bbc8['useEffect'](()=>{return window?.['removeEventListener']('scroll',_0x2d0ad7,!![]),window?.['removeEventListener']('resize',_0x2d0ad7,!![]),window?.['addEventListener']('scroll',_0x2d0ad7,!![]),window?.['addEventListener']('resize',_0x2d0ad7,!![]),()=>{window?.['removeEventListener']('scroll',_0x2d0ad7,!![]),window?.['removeEventListener']('resize',_0x2d0ad7,!![]);};},[]),a0_0x34bbc8['useEffect'](()=>{_0x2d0ad7();},[_0x28ec08['rows']['length'],_0x2f9dd6['searchText']]),a0_0x34bbc8['useEffect'](()=>{const _0x5a1f53=window?.['setTimeout'](()=>{_0x2f9dd6['onSetRefTar'](_0x38d4ba);},0x1f4);return()=>{window?.['clearTimeout'](_0x5a1f53);};},[]);const _0x483d14={};_0x483d14['position']='fixed',_0x483d14['left']=0x0,_0x483d14['top']=0x0,_0x483d14['right']=0x0,_0x483d14['bottom']=0x0,_0x483d14['zIndex']=0xbbd,_0x483d14['display']='flex',_0x483d14['flexDirection']='column',_0x483d14['justifyContent']='center',_0x483d14['backgroundColor']='#17171754',_0x483d14['boxShadow']='0px\x200px\x205px\x20black';const _0x1288ed={};_0x1288ed['minWidth']='15rem',_0x1288ed['maxWidth']='21rem',_0x1288ed['display']='flex',_0x1288ed['flexDirection']='column',_0x1288ed['margin']='auto';const _0xb3b7cd={};_0xb3b7cd['marginBottom']=0x2;const _0x2e4e73={};_0x2e4e73['minHeight']='15.5rem',_0x2e4e73['maxHeight']='15.5rem',_0x2e4e73['boxShadow']='0px\x201px\x207px\x20#b3b3b3';const _0x4e5318={};_0x4e5318['btnType']='danger',_0x4e5318['onClick']=_0x117dda,_0x4e5318['children']='✖';const _0xe4e812={};_0xe4e812['btnType']='success',_0xe4e812['onClick']=_0x547425,_0xe4e812['children']='✔';const _0x4f2f02={};return _0x4f2f02['maxHeight']='15.5rem',_0x4f2f02['boxShadow']='0px\x201px\x207px\x20#b3b3b3',(0x0,a0_0x3d9400['jsx'])('div',{'className':'d-select-sg-container','children':_0x28ec08['issm']?(0x0,a0_0x1aea7a['createPortal'])((0x0,a0_0x3d9400['jsx'])('div',{'style':_0x483d14,'children':(0x0,a0_0x3d9400['jsxs'])('div',{'style':_0x1288ed,'children':[(0x0,a0_0x3d9400['jsx'])('input',{'role':'mssearch','readOnly':![],'autoFocus':![],'disabled':_0x2f9dd6['disabled'],'type':'text','style':_0xb3b7cd,'placeholder':_0x2f9dd6['searchholder']||a0_0x1726bc['globalConfigs']['searchholder']||_0x2f9dd6['placeholder'],'value':_0x2f9dd6['searchText'],'onChange':_0x3e9155=>_0x2f9dd6['setSearchText'](_0x3e9155['target']['value']?.['toLowerCase']()),'onBlur':_0x2f9dd6['onBlur']}),(0x0,a0_0x3d9400['jsx'])('div',{'ref':_0x38d4ba,'className':'d-select-sg-list-m','style':_0x2e4e73,'children':(0x0,a0_0x3d9400['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x28ec08['rows']['length']&&_0x2f9dd6['selectall']?(0x0,a0_0x3d9400['jsxs'])(a0_0x3d9400['Fragment'],{'children':[(0x0,a0_0x3d9400['jsx'])(a0_0x3b7b2a['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x28ec08['isAllSelected'],'label':_0x2f9dd6['selectall'],'value':!![],'onClick':_0x415c5c=>_0x52bee7(_0x415c5c)}),(0x0,a0_0x3d9400['jsx'])('hr',{})]}):(0x0,a0_0x3d9400['jsx'])(a0_0x3d9400['Fragment'],{}),!_0x28ec08['rows']['length']?(0x0,a0_0x3d9400['jsx'])('h3',{'className':'d-select-empty-list','children':_0x2f9dd6['emptydata']||a0_0x1726bc['globalConfigs']['emptydata']||''}):(0x0,a0_0x3d9400['jsx'])(a0_0x3d9400['Fragment'],{}),_0x28ec08['rows']?.['sfMap'](_0x2e8f65=>(0x0,a0_0x3d9400['jsx'])(a0_0x3b7b2a['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x2e8f65['checked'],'label':_0x2e8f65['label'],'value':_0x2e8f65['id'],'onChange':_0x419c48=>_0x507e62(_0x419c48,_0x2e8f65['id'])},_0x2e8f65['id']))]})}),(0x0,a0_0x3d9400['jsxs'])('div',{'className':'d-select-sg-list-mb','children':[(0x0,a0_0x3d9400['jsx'])(a0_0xd7c43a['Button'],_0x4e5318),(0x0,a0_0x3d9400['jsx'])(a0_0xd7c43a['Button'],_0xe4e812)]})]})}),document?.['body']):(0x0,a0_0x1aea7a['createPortal'])((0x0,a0_0x3d9400['jsx'])('div',{'ref':_0x38d4ba,'className':'d-select-sg-list','style':_0x4f2f02,'children':(0x0,a0_0x3d9400['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x28ec08['rows']['length']&&_0x2f9dd6['selectall']?(0x0,a0_0x3d9400['jsxs'])(a0_0x3d9400['Fragment'],{'children':[(0x0,a0_0x3d9400['jsx'])(a0_0x3b7b2a['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x28ec08['isAllSelected'],'label':_0x2f9dd6['selectall'],'value':!![],'onClick':_0x2dd25f=>_0x52bee7(_0x2dd25f)}),(0x0,a0_0x3d9400['jsx'])('hr',{})]}):(0x0,a0_0x3d9400['jsx'])(a0_0x3d9400['Fragment'],{}),!_0x28ec08['rows']['length']?(0x0,a0_0x3d9400['jsx'])('h3',{'className':'d-select-empty-list','children':_0x2f9dd6['emptydata']||a0_0x1726bc['globalConfigs']['emptydata']||''}):(0x0,a0_0x3d9400['jsx'])(a0_0x3d9400['Fragment'],{}),_0x28ec08['rows']?.['sfMap'](_0x5762c8=>(0x0,a0_0x3d9400['jsx'])(a0_0x3b7b2a['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x5762c8['checked'],'label':_0x5762c8['label'],'value':_0x5762c8['id'],'onChange':_0x1f8a26=>_0x507e62(_0x1f8a26,_0x5762c8['id'])},_0x5762c8['id']))]})}),document?.['body'])});}function a0_0x120872(_0x53116e){const _0x574d8f=a0_0x34bbc8['useRef'](null),_0x712282=a0_0x34bbc8['useRef'](null),_0x243de0=a0_0x34bbc8['useRef'](null),[_0x148554,_0x59329d]=a0_0x34bbc8['useState'](![]),[_0x11603e,_0x56ec3d]=a0_0x34bbc8['useState'](''),_0x443954=a0_0x34bbc8['useMemo'](()=>{let _0x5dfd0a=[],_0x7d1252='';const _0x3d429a=_0x53116e['data']||[],_0x3f7714=window?.['innerWidth']<0x280;try{const _0x516c4c=_0x3d429a?.['sfFilter'](_0x13c07e=>(_0x53116e['value']||[])['sfFind'](_0x50c50e=>_0x50c50e===_0x13c07e[_0x53116e['accessorValue']]));_0x5dfd0a=_0x516c4c['sfMap'](_0x23b370=>_0x23b370[_0x53116e['accessorValue']]),_0x7d1252=_0x516c4c['sfMap'](_0xb3b169=>_0xb3b169[_0x53116e['accessorLabel']])['join'](',\x20');}catch(_0x1960a4){}const _0x40c0cf=_0x53116e['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x4183bb={};return _0x4183bb['issm']=_0x3f7714,_0x4183bb['ddicss']=_0x40c0cf,_0x4183bb['selectIds']=_0x5dfd0a,_0x4183bb['selectLabels']=_0x7d1252,_0x4183bb;},[_0x53116e['data']?.['length'],_0x53116e['value'],_0x53116e['accessorLabel'],_0x53116e['accessorValue']]);function _0x26ddbf(){_0x53116e['onChange']([],![]);}function _0x12981e(){_0x59329d(![]),_0x243de0['current']=null;}return(0x0,a0_0x3d9400['jsx'])(a0_0x2d0111,{'referances':[_0x574d8f,_0x243de0],'isOpen':_0x148554,'onClickOutside':()=>{if(_0x443954['issm'])return;_0x59329d(![]),_0x56ec3d('');},'render':()=>(0x0,a0_0x3d9400['jsxs'])('div',{'id':_0x53116e['id'],'className':'d-w-full','onClick':()=>{!_0x53116e['disabled']&&!_0x443954['issm']&&_0x59329d(!![]);},'children':[(0x0,a0_0x3d9400['jsxs'])('div',{'ref':_0x574d8f,'className':'d-select-fc','children':[(0x0,a0_0x3d9400['jsx'])('input',{'ref':_0x712282,'role':'combobox','className':'d-select-fc-input\x20'+(_0x53116e['size']==='sm'?'d-select-fc-input-sm':'')+'\x20'+_0x53116e['className']+'\x20'+(_0x148554?'text-left-important':''),'readOnly':!_0x148554,'autoFocus':![],'disabled':_0x53116e['disabled'],'name':_0x53116e['name'],'type':'text','placeholder':_0x148554?_0x53116e['searchholder']||a0_0x1726bc['globalConfigs']['searchholder']||'':_0x53116e['placeholder'],'value':_0x148554?_0x11603e:_0x443954['selectLabels'],'inputMode':'none','onClick':_0x4b4c54=>{try{_0x443954['issm']&&_0x4b4c54['preventDefault']();}catch(_0x2118bb){}try{_0x4b4c54['stopPropagation']();}catch(_0xabb0fc){}if(_0x53116e['disabled'])return;_0x59329d(!![]);},'onChange':_0x1515de=>_0x56ec3d(_0x1515de['target']['value']?.['toLowerCase']()),'onBlur':_0x53116e['onBlur']}),Boolean(_0x443954['selectIds']['length'])&&(0x0,a0_0x3d9400['jsx'])('div',{'className':'d-select-multi-counter\x20multi-counter-blink','children':_0x443954['selectIds']['length']},_0x443954['selectIds']['length']),Boolean(!_0x53116e['noclean']&&_0x443954['selectIds']['length']&&!_0x53116e['disabled'])&&(0x0,a0_0x3d9400['jsx'])(a0_0x523b0f['CloseIcon'],{'className':_0x443954['ddicss'],'onClick':_0x26ddbf}),(0x0,a0_0x3d9400['jsx'])(a0_0x523b0f['DownIcon'],{'className':_0x443954['ddicss']})]}),_0x148554&&(0x0,a0_0x3d9400['jsx'])(a0_0x354b21,{'refC':_0x574d8f,'refCmb':_0x712282,'refTar':_0x243de0,..._0x53116e,'accessorValue':_0x53116e['accessorValue'],'accessorLabel':_0x53116e['accessorLabel'],'disabled':_0x53116e['disabled'],'placeholder':_0x53116e['placeholder'],'searchholder':_0x53116e['searchholder'],'value':_0x53116e['value'],'searchText':_0x11603e,'wcharger':_0x443954,'onSetRefTar':_0x4cc169=>{_0x243de0['current']=_0x4cc169['current'],_0x59329d(_0x576fab=>_0x576fab);},'setSearchText':_0x558965=>_0x56ec3d(_0x558965),'onBlur':_0x53116e['onBlur'],'onClose':_0x12981e})]})});}function a0_0x115b58(_0x2247ac){return a0_0x120872(_0x2247ac);}exports['Multiselect']=a0_0x115b58;
|
|
1
|
+
'use strict';var a0_0x171be5=this&&this['__createBinding']||(Object['create']?function(_0x2badb3,_0x524919,_0x161744,_0x36279e){if(_0x36279e===undefined)_0x36279e=_0x161744;var _0x2cd56a=Object['getOwnPropertyDescriptor'](_0x524919,_0x161744);if(!_0x2cd56a||('get'in _0x2cd56a?!_0x524919['__esModule']:_0x2cd56a['writable']||_0x2cd56a['configurable'])){const _0x4cf40e={};_0x4cf40e['enumerable']=!![],_0x4cf40e['get']=function(){return _0x524919[_0x161744];},_0x2cd56a=_0x4cf40e;}Object['defineProperty'](_0x2badb3,_0x36279e,_0x2cd56a);}:function(_0x2ffee5,_0x55fcd9,_0x2b1eee,_0x4ccc5f){if(_0x4ccc5f===undefined)_0x4ccc5f=_0x2b1eee;_0x2ffee5[_0x4ccc5f]=_0x55fcd9[_0x2b1eee];}),a0_0x282e19=this&&this['__setModuleDefault']||(Object['create']?function(_0x2de6f9,_0x1f5db6){const _0x4e0ca3={};_0x4e0ca3['enumerable']=!![],_0x4e0ca3['value']=_0x1f5db6,Object['defineProperty'](_0x2de6f9,'default',_0x4e0ca3);}:function(_0x46fc37,_0x18b84d){_0x46fc37['default']=_0x18b84d;}),a0_0x54cba3=this&&this['__importStar']||function(_0x2a423c){if(_0x2a423c&&_0x2a423c['__esModule'])return _0x2a423c;var _0x1aa624={};if(_0x2a423c!=null){for(var _0x34093a in _0x2a423c)if(_0x34093a!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x2a423c,_0x34093a))a0_0x171be5(_0x1aa624,_0x2a423c,_0x34093a);}return a0_0x282e19(_0x1aa624,_0x2a423c),_0x1aa624;};const a0_0x1bd226={};a0_0x1bd226['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1bd226),exports['Multiselect']=void 0x0;const a0_0x33e5fc=require('react/jsx-runtime'),a0_0x3d6f6b=a0_0x54cba3(require('react')),a0_0x1c7939=require('./Icons'),a0_0xdb654d=require('./common'),a0_0x5787f9=require('./Checkbox'),a0_0x3d7eb2=require('react-dom'),a0_0x45d35f=require('./Button'),a0_0x4719ac=()=>{};var a0_0x144296;(function(_0x42fc59){_0x42fc59['MOUSE_DOWN']='mousedown',_0x42fc59['MOUSE_UP']='mouseup',_0x42fc59['MOUSE_MOVE']='mousemove',_0x42fc59['MOUSE_CLICK']='click',_0x42fc59['FOCUS']='focus';}(a0_0x144296||(a0_0x144296={})));function a0_0x1c06ed(_0x54acc0){const _0x5566bf=a0_0x3d6f6b['useCallback'](_0x123903=>{_0x54acc0['isOpen']&&!_0x54acc0['referances']['sfMap'](_0x2f9a38=>_0x2f9a38['current']?.['contains'](_0x123903['target']))['sfFilter'](_0x26661d=>_0x26661d)['length']&&_0x54acc0['onClickOutside']();},[_0x54acc0['referances'],_0x54acc0['isOpen'],_0x54acc0['onClickOutside']]);return a0_0x3d6f6b['useEffect'](()=>{return window?.['removeEventListener'](a0_0x144296['MOUSE_UP'],_0x5566bf,!![]),window?.['removeEventListener'](a0_0x144296['MOUSE_CLICK'],_0x5566bf,!![]),document?.['removeEventListener'](a0_0x144296['FOCUS'],_0x5566bf,!![]),_0x54acc0['isOpen']&&(window?.['addEventListener'](a0_0x144296['MOUSE_UP'],_0x5566bf,!![]),window?.['addEventListener'](a0_0x144296['MOUSE_CLICK'],_0x5566bf,!![]),document?.['addEventListener'](a0_0x144296['FOCUS'],_0x5566bf,!![])),()=>{window?.['removeEventListener'](a0_0x144296['MOUSE_UP'],_0x5566bf,!![]),window?.['removeEventListener'](a0_0x144296['MOUSE_CLICK'],_0x5566bf,!![]),document?.['removeEventListener'](a0_0x144296['FOCUS'],_0x5566bf,!![]);};},[_0x5566bf]),(0x0,a0_0x33e5fc['jsx'])(a0_0x33e5fc['Fragment'],{'children':_0x54acc0['render']()});}function a0_0x356dd0(_0x287612,_0x4c47e7,_0x16a508,_0x34ee0f){try{const _0x64a355=_0x34ee0f?.['getBoundingClientRect']()?.['top'],_0x320299=_0x34ee0f?.['getBoundingClientRect']()?.['bottom'],_0x3604f9=_0x34ee0f?.['getBoundingClientRect']()?.['left'],_0x30bc71=_0x34ee0f?.['getBoundingClientRect']()?.['right'],_0x424e24=_0x64a355<=_0x287612&&_0x287612<=_0x320299&&_0x3604f9<=_0x4c47e7&&_0x30bc71>=_0x16a508;return _0x424e24;}catch(_0x52f29f){}return![];}function a0_0x547036(_0x497fba){const _0x470977=a0_0x3d6f6b['useRef'](_0x497fba['value']||[]),_0x56d5d8=a0_0x3d6f6b['useRef'](null),_0x39856e=a0_0x3d6f6b['useMemo'](()=>{let _0x8aa8c1=[],_0x5783a8=[],_0x54631d=![],_0x548236=[];const _0x1d4261=[..._0x497fba['data']||[]],_0x469c68=window?.['innerWidth']<0x280;try{_0x8aa8c1=_0x1d4261['sfFilter'](_0x30d289=>(_0x497fba['value']||[])['sfFind'](_0x34e0cf=>_0x34e0cf===_0x30d289[_0x497fba['accessorValue']])),_0x5783a8=_0x8aa8c1['sfMap'](_0x5c008b=>_0x5c008b[_0x497fba['accessorValue']]),_0x54631d=_0x5783a8['length']===_0x1d4261?.['length'];}catch(_0x22e7eb){}try{let _0x17b45e=[],_0x25a042=[],_0x20c5d1=_0x497fba['searchText']?!_0x497fba['search']||_0x497fba['search']==='anywhere'?_0x1d4261['sfFilter'](_0x30368c=>_0x30368c[_0x497fba['accessorLabel']]?.['toLocaleLowerCase'](_0x497fba['code']||a0_0xdb654d['globalConfigs']['countryCode'])['includes'](_0x497fba['searchText'])):_0x1d4261['sfFilter'](_0x3e095a=>_0x3e095a[_0x497fba['accessorLabel']]?.['toLocaleLowerCase'](_0x497fba['code']||a0_0xdb654d['globalConfigs']['countryCode'])['startsWith'](_0x497fba['searchText'])):_0x1d4261;_0x20c5d1['sfEach'](_0x88685=>{if(_0x5783a8['sfFind'](_0x33d831=>_0x33d831===_0x88685[_0x497fba['accessorValue']])){const _0x4ba855={};_0x4ba855['id']=_0x88685[_0x497fba['accessorValue']],_0x4ba855['label']=_0x88685[_0x497fba['accessorLabel']],_0x4ba855['checked']=!![],_0x17b45e['push'](_0x4ba855);}else{const _0x247f96={};_0x247f96['id']=_0x88685[_0x497fba['accessorValue']],_0x247f96['label']=_0x88685[_0x497fba['accessorLabel']],_0x247f96['checked']=![],_0x25a042['push'](_0x247f96);}});if(_0x497fba['sorting']!=='none'){const _0x1e8b37=(_0x305baa,_0x396857)=>{return _0x305baa['label']?.['toString']()?.['toLocaleLowerCase'](_0x497fba['code']||a0_0xdb654d['globalConfigs']['countryCode'])['localeCompare'](_0x396857['label']?.['toString']()?.['toLocaleLowerCase'](_0x497fba['code']||a0_0xdb654d['globalConfigs']['countryCode']));};_0x17b45e=_0x17b45e['sort'](_0x1e8b37),_0x25a042=_0x25a042['sort'](_0x1e8b37),_0x497fba['sorting']==='desc'&&(_0x17b45e=_0x17b45e['reverse'](),_0x25a042=_0x25a042['reverse']());}_0x548236=[..._0x17b45e,..._0x25a042];}catch(_0x133758){console['warn']('UNKNOWN_ERROR');}const _0x231a41=_0x497fba['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x4e9610={};return _0x4e9610['issm']=_0x469c68,_0x4e9610['ddicss']=_0x231a41,_0x4e9610['data']=_0x1d4261,_0x4e9610['selects']=_0x8aa8c1,_0x4e9610['selectIds']=_0x5783a8,_0x4e9610['isAllSelected']=_0x54631d,_0x4e9610['rows']=_0x548236,_0x4e9610;},[_0x497fba['data']?.['length'],_0x497fba['value'],_0x497fba['accessorLabel'],_0x497fba['accessorValue'],_0x497fba['searchText'],_0x497fba['sorting']]);function _0xb3d650(_0x35a962,_0x4db30d){_0x35a962['preventDefault']();try{let _0x2e2393=_0x39856e['selectIds'];_0x2e2393['sfFind'](_0x5b21b9=>_0x5b21b9===_0x4db30d)?_0x2e2393=_0x2e2393['sfFilter'](_0x38c9f7=>_0x38c9f7!==_0x4db30d):_0x2e2393['push'](_0x4db30d);if(_0x497fba['onChange']){const _0x1ca9d2=_0x39856e['selectIds']['length']===_0x39856e['data']?.['length'];_0x497fba['onChange'](_0x2e2393,_0x1ca9d2);}_0x497fba['refCmb']['current']?.['focus']();}catch(_0x5b1f97){}}function _0xdef40e(_0x506131){_0x506131['preventDefault']();try{let _0x118338=[];!_0x39856e['isAllSelected']&&(_0x118338=_0x39856e['data']['sfMap'](_0x228127=>_0x228127[_0x497fba['accessorValue']])),_0x497fba['onChange']&&_0x497fba['onChange'](_0x118338,!_0x39856e['isAllSelected']),_0x497fba['refCmb']['current']?.['focus']();}catch(_0x4ed5cf){}}function _0x53cd34(){_0x497fba['onClose']();}function _0x5e516c(){_0x497fba['onChange']&&_0x497fba['onChange'](_0x470977['current'],_0x470977['current']['length']===_0x39856e['data']?.['length']),_0x497fba['onClose']();}const _0x4263d1=a0_0x3d6f6b['useCallback'](_0x19b518=>{try{if(_0x39856e['issm'])return;const _0x24be56=_0x497fba['refCmb']['current']?.['getBoundingClientRect']();_0x56d5d8['current']&&(_0x56d5d8['current']['style']['display']='flex',_0x56d5d8['current']['style']['left']=_0x24be56?.['left']+'px',_0x56d5d8['current']['style']['top']=(_0x24be56?.['top']+_0x24be56?.['height']+_0x56d5d8['current']['offsetHeight']<window?.['innerHeight']?_0x24be56?.['top']+_0x24be56?.['height']:_0x24be56?.['top']-_0x56d5d8['current']['offsetHeight'])+'px',_0x56d5d8['current']['style']['width']=_0x24be56?.['width']+'px'),_0x19b518&&_0x56d5d8['current']&&_0x497fba['refC']['current']?.['contains'](_0x19b518['target'])&&(_0x56d5d8['current']['style']['display']=!a0_0x356dd0(_0x24be56['top'],_0x24be56['left'],_0x24be56['right'],_0x19b518['target'])?'none':'flex');}catch(_0x4cbec6){}},[]);a0_0x3d6f6b['useEffect'](()=>{_0x56d5d8['current']&&setTimeout(()=>{_0x4263d1();},0xfa);},[_0x56d5d8['current']]),a0_0x3d6f6b['useEffect'](()=>{return window?.['removeEventListener']('scroll',_0x4263d1,!![]),window?.['removeEventListener']('resize',_0x4263d1,!![]),window?.['addEventListener']('scroll',_0x4263d1,!![]),window?.['addEventListener']('resize',_0x4263d1,!![]),()=>{window?.['removeEventListener']('scroll',_0x4263d1,!![]),window?.['removeEventListener']('resize',_0x4263d1,!![]);};},[]),a0_0x3d6f6b['useEffect'](()=>{_0x4263d1();},[_0x39856e['rows']['length'],_0x497fba['searchText']]),a0_0x3d6f6b['useEffect'](()=>{const _0x246f9a=window?.['setTimeout'](()=>{_0x497fba['onSetRefTar'](_0x56d5d8);},0x1f4);return()=>{window?.['clearTimeout'](_0x246f9a);};},[]);const _0x57009d={};_0x57009d['position']='fixed',_0x57009d['left']=0x0,_0x57009d['top']=0x0,_0x57009d['right']=0x0,_0x57009d['bottom']=0x0,_0x57009d['zIndex']=0xbbd,_0x57009d['display']='flex',_0x57009d['flexDirection']='column',_0x57009d['justifyContent']='center',_0x57009d['backgroundColor']='#17171754',_0x57009d['boxShadow']='0px\x200px\x205px\x20black';const _0x1d1948={};_0x1d1948['minWidth']='15rem',_0x1d1948['maxWidth']='21rem',_0x1d1948['display']='flex',_0x1d1948['flexDirection']='column',_0x1d1948['margin']='auto';const _0x203bbb={};_0x203bbb['marginBottom']=0x2;const _0x416e25={};_0x416e25['minHeight']='15.5rem',_0x416e25['maxHeight']='15.5rem',_0x416e25['boxShadow']='0px\x201px\x207px\x20#b3b3b3';const _0x32e2a4={};_0x32e2a4['btnType']='danger',_0x32e2a4['onClick']=_0x5e516c,_0x32e2a4['children']='✖';const _0x32d2d5={};_0x32d2d5['btnType']='success',_0x32d2d5['onClick']=_0x53cd34,_0x32d2d5['children']='✔';const _0x1705a2={};return _0x1705a2['maxHeight']='15.5rem',_0x1705a2['boxShadow']='0px\x201px\x207px\x20#b3b3b3',(0x0,a0_0x33e5fc['jsx'])('div',{'className':'d-select-sg-container','children':_0x39856e['issm']?(0x0,a0_0x3d7eb2['createPortal'])((0x0,a0_0x33e5fc['jsx'])('div',{'style':_0x57009d,'children':(0x0,a0_0x33e5fc['jsxs'])('div',{'style':_0x1d1948,'children':[(0x0,a0_0x33e5fc['jsx'])('input',{'role':'mssearch','readOnly':![],'autoFocus':![],'disabled':_0x497fba['disabled'],'type':'text','style':_0x203bbb,'placeholder':_0x497fba['searchholder']||a0_0xdb654d['globalConfigs']['searchholder']||_0x497fba['placeholder'],'value':_0x497fba['searchText'],'onChange':_0x5b4c91=>_0x497fba['setSearchText'](_0x5b4c91['target']['value']?.['toLowerCase']()),'onBlur':_0x497fba['onBlur']}),(0x0,a0_0x33e5fc['jsx'])('div',{'ref':_0x56d5d8,'className':'d-select-sg-list-m','style':_0x416e25,'children':(0x0,a0_0x33e5fc['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x39856e['rows']['length']&&_0x497fba['selectall']?(0x0,a0_0x33e5fc['jsxs'])(a0_0x33e5fc['Fragment'],{'children':[(0x0,a0_0x33e5fc['jsx'])(a0_0x5787f9['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x39856e['isAllSelected'],'label':_0x497fba['selectall'],'value':!![],'onClick':_0x4fe244=>_0xdef40e(_0x4fe244)}),(0x0,a0_0x33e5fc['jsx'])('hr',{})]}):(0x0,a0_0x33e5fc['jsx'])(a0_0x33e5fc['Fragment'],{}),!_0x39856e['rows']['length']?(0x0,a0_0x33e5fc['jsx'])('h3',{'className':'d-select-empty-list','children':_0x497fba['emptydata']||a0_0xdb654d['globalConfigs']['emptydata']||''}):(0x0,a0_0x33e5fc['jsx'])(a0_0x33e5fc['Fragment'],{}),_0x39856e['rows']?.['sfMap'](_0x280778=>(0x0,a0_0x33e5fc['jsx'])(a0_0x5787f9['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x280778['checked'],'label':_0x280778['label'],'value':_0x280778['id'],'onChange':_0x27d07d=>_0xb3d650(_0x27d07d,_0x280778['id'])},_0x280778['id']))]})}),(0x0,a0_0x33e5fc['jsxs'])('div',{'className':'d-select-sg-list-mb','children':[(0x0,a0_0x33e5fc['jsx'])(a0_0x45d35f['Button'],_0x32e2a4),(0x0,a0_0x33e5fc['jsx'])(a0_0x45d35f['Button'],_0x32d2d5)]})]})}),document?.['body']):(0x0,a0_0x3d7eb2['createPortal'])((0x0,a0_0x33e5fc['jsx'])('div',{'ref':_0x56d5d8,'className':'d-select-sg-list','style':_0x1705a2,'children':(0x0,a0_0x33e5fc['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x39856e['rows']['length']&&_0x497fba['selectall']?(0x0,a0_0x33e5fc['jsxs'])(a0_0x33e5fc['Fragment'],{'children':[(0x0,a0_0x33e5fc['jsx'])(a0_0x5787f9['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x39856e['isAllSelected'],'label':_0x497fba['selectall'],'value':!![],'onClick':_0x404476=>_0xdef40e(_0x404476)}),(0x0,a0_0x33e5fc['jsx'])('hr',{})]}):(0x0,a0_0x33e5fc['jsx'])(a0_0x33e5fc['Fragment'],{}),!_0x39856e['rows']['length']?(0x0,a0_0x33e5fc['jsx'])('h3',{'className':'d-select-empty-list','children':_0x497fba['emptydata']||a0_0xdb654d['globalConfigs']['emptydata']||''}):(0x0,a0_0x33e5fc['jsx'])(a0_0x33e5fc['Fragment'],{}),_0x39856e['rows']?.['sfMap'](_0x57abd3=>(0x0,a0_0x33e5fc['jsx'])(a0_0x5787f9['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x57abd3['checked'],'label':_0x57abd3['label'],'value':_0x57abd3['id'],'onChange':_0x4dfd6e=>_0xb3d650(_0x4dfd6e,_0x57abd3['id'])},_0x57abd3['id']))]})}),document?.['body'])});}function a0_0x30d551(_0x7d0b69){const _0x85d583=a0_0x3d6f6b['useRef'](null),_0x5b3cdd=a0_0x3d6f6b['useRef'](null),_0x3d9e1d=a0_0x3d6f6b['useRef'](null),[_0x54b4f2,_0x18aac4]=a0_0x3d6f6b['useState'](![]),[_0x13ef5e,_0x128d41]=a0_0x3d6f6b['useState'](''),_0x730aec=a0_0x3d6f6b['useMemo'](()=>{let _0x1c7c96=[],_0x34d237='';const _0x558893=_0x7d0b69['data']||[],_0x4df9ea=window?.['innerWidth']<0x280;try{const _0x163e5f=_0x558893?.['sfFilter'](_0x5b8bac=>(_0x7d0b69['value']||[])['sfFind'](_0x3a8ae6=>_0x3a8ae6===_0x5b8bac[_0x7d0b69['accessorValue']]));_0x1c7c96=_0x163e5f['sfMap'](_0x5a7281=>_0x5a7281[_0x7d0b69['accessorValue']]),_0x34d237=_0x163e5f['sfMap'](_0x19907c=>_0x19907c[_0x7d0b69['accessorLabel']])['join'](',\x20');}catch(_0x1d235d){}const _0x5e8b42=_0x7d0b69['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x547355={};return _0x547355['issm']=_0x4df9ea,_0x547355['ddicss']=_0x5e8b42,_0x547355['selectIds']=_0x1c7c96,_0x547355['selectLabels']=_0x34d237,_0x547355;},[_0x7d0b69['data']?.['length'],_0x7d0b69['value'],_0x7d0b69['accessorLabel'],_0x7d0b69['accessorValue']]);function _0x319b57(){_0x7d0b69['onChange']([],![]);}function _0x2ad5ea(){_0x18aac4(![]),_0x3d9e1d['current']=null;}return(0x0,a0_0x33e5fc['jsx'])(a0_0x1c06ed,{'referances':[_0x85d583,_0x3d9e1d],'isOpen':_0x54b4f2,'onClickOutside':()=>{if(_0x730aec['issm'])return;_0x18aac4(![]),_0x128d41('');},'render':()=>(0x0,a0_0x33e5fc['jsxs'])('div',{'id':_0x7d0b69['id'],'className':'d-w-full','onClick':()=>{!_0x7d0b69['disabled']&&!_0x730aec['issm']&&_0x18aac4(!![]);},'children':[(0x0,a0_0x33e5fc['jsxs'])('div',{'ref':_0x85d583,'className':'d-select-fc','children':[(0x0,a0_0x33e5fc['jsx'])('input',{'ref':_0x5b3cdd,'role':'combobox','className':'d-select-fc-input\x20'+(_0x7d0b69['size']==='sm'?'d-select-fc-input-sm':'')+'\x20'+_0x7d0b69['className']+'\x20'+(_0x54b4f2?'text-left-important':''),'readOnly':!_0x54b4f2,'autoFocus':![],'disabled':_0x7d0b69['disabled'],'name':_0x7d0b69['name'],'type':'text','placeholder':_0x54b4f2?_0x7d0b69['searchholder']||a0_0xdb654d['globalConfigs']['searchholder']||'':_0x7d0b69['placeholder'],'value':_0x54b4f2?_0x13ef5e:_0x730aec['selectLabels'],'inputMode':'none','onClick':_0x3cca88=>{try{_0x730aec['issm']&&_0x3cca88['preventDefault']();}catch(_0x3418f7){}try{_0x3cca88['stopPropagation']();}catch(_0x41b2d9){}if(_0x7d0b69['disabled'])return;_0x18aac4(!![]);},'onChange':_0x5e19d7=>_0x128d41(_0x5e19d7['target']['value']?.['toLowerCase']()),'onBlur':_0x7d0b69['onBlur']}),Boolean(_0x730aec['selectIds']['length'])&&(0x0,a0_0x33e5fc['jsx'])('div',{'className':'d-select-multi-counter\x20multi-counter-blink','children':_0x730aec['selectIds']['length']},_0x730aec['selectIds']['length']),Boolean(!_0x7d0b69['noclean']&&_0x730aec['selectIds']['length']&&!_0x7d0b69['disabled'])&&(0x0,a0_0x33e5fc['jsx'])(a0_0x1c7939['CloseIcon'],{'className':_0x730aec['ddicss'],'onClick':_0x319b57}),(0x0,a0_0x33e5fc['jsx'])(a0_0x1c7939['DownIcon'],{'className':_0x730aec['ddicss']})]}),_0x54b4f2&&(0x0,a0_0x33e5fc['jsx'])(a0_0x547036,{'refC':_0x85d583,'refCmb':_0x5b3cdd,'refTar':_0x3d9e1d,..._0x7d0b69,'accessorValue':_0x7d0b69['accessorValue'],'accessorLabel':_0x7d0b69['accessorLabel'],'disabled':_0x7d0b69['disabled'],'placeholder':_0x7d0b69['placeholder'],'searchholder':_0x7d0b69['searchholder'],'value':_0x7d0b69['value'],'searchText':_0x13ef5e,'wcharger':_0x730aec,'onSetRefTar':_0x43065f=>{_0x3d9e1d['current']=_0x43065f['current'],_0x18aac4(_0x387a2a=>_0x387a2a);},'setSearchText':_0x4dba51=>_0x128d41(_0x4dba51),'onBlur':_0x7d0b69['onBlur'],'onClose':_0x2ad5ea})]})});}function a0_0x50f24b(_0x17f8f4){return a0_0x30d551(_0x17f8f4);}exports['Multiselect']=a0_0x50f24b;
|
package/dist/Notes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x3cc85d={};a0_0x3cc85d['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3cc85d),exports['Note']=void 0x0;const a0_0x515c1d=require('react/jsx-runtime');function a0_0x15343d(_0xd18457){const _0x31861e={};return _0x31861e['className']='d-notes-panel\x20d-note-'+_0xd18457['type']+'\x20'+(_0xd18457['className']||''),_0x31861e['children']=_0xd18457['children'],(0x0,a0_0x515c1d['jsx'])('div',_0x31861e);}function a0_0x334067(_0x1d048c){return a0_0x15343d(_0x1d048c);}exports['Note']=a0_0x334067;
|
package/dist/Numeral.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x4aa6f8=this&&this['__createBinding']||(Object['create']?function(_0x1d0a2b,_0x5367cd,_0x4f08f5,_0x4215c3){if(_0x4215c3===undefined)_0x4215c3=_0x4f08f5;var _0x29a979=Object['getOwnPropertyDescriptor'](_0x5367cd,_0x4f08f5);if(!_0x29a979||('get'in _0x29a979?!_0x5367cd['__esModule']:_0x29a979['writable']||_0x29a979['configurable'])){const _0x1620cc={};_0x1620cc['enumerable']=!![],_0x1620cc['get']=function(){return _0x5367cd[_0x4f08f5];},_0x29a979=_0x1620cc;}Object['defineProperty'](_0x1d0a2b,_0x4215c3,_0x29a979);}:function(_0x4204f3,_0x231fd3,_0x3d55f3,_0x3fab55){if(_0x3fab55===undefined)_0x3fab55=_0x3d55f3;_0x4204f3[_0x3fab55]=_0x231fd3[_0x3d55f3];}),a0_0x58983d=this&&this['__setModuleDefault']||(Object['create']?function(_0x75a67c,_0x313e45){const _0x44ac0b={};_0x44ac0b['enumerable']=!![],_0x44ac0b['value']=_0x313e45,Object['defineProperty'](_0x75a67c,'default',_0x44ac0b);}:function(_0x506661,_0xbc8572){_0x506661['default']=_0xbc8572;}),a0_0x12d7dd=this&&this['__importStar']||function(_0x61ddfd){if(_0x61ddfd&&_0x61ddfd['__esModule'])return _0x61ddfd;var _0x26e552={};if(_0x61ddfd!=null){for(var _0x5557ad in _0x61ddfd)if(_0x5557ad!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x61ddfd,_0x5557ad))a0_0x4aa6f8(_0x26e552,_0x61ddfd,_0x5557ad);}return a0_0x58983d(_0x26e552,_0x61ddfd),_0x26e552;};const a0_0x44d231={};a0_0x44d231['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x44d231),exports['NumeralInput']=exports['NumeralSlot']=exports['CurrencySlot']=exports['numeralUtil']=void 0x0;const a0_0x5c2f02=require('react/jsx-runtime'),a0_0x8b0acf=a0_0x12d7dd(require('react')),a0_0xe3a544=require('./common'),a0_0x129ebe=0x2,a0_0x5f3b5a=0x0,a0_0x3fb444=_0x1b6014=>_0x1b6014==undefined||_0x1b6014===null,a0_0x2b4697=(_0x4a7ae6,_0x182fe9)=>a0_0x3fb444(_0x182fe9)?_0x4a7ae6:_0x182fe9,a0_0x16817b=_0x17ebf8=>{const _0x1d62b8=a0_0x2b4697(a0_0x129ebe,_0x17ebf8),_0x3e94f3={};return _0x3e94f3['minimumFractionDigits']=_0x1d62b8,_0x3e94f3['maximumFractionDigits']=_0x1d62b8,_0x3e94f3;},a0_0x1742e1=(_0x20aeaa,_0x3ab1ad)=>_0x3ab1ad===0x0?Math['floor'](_0x20aeaa):_0x20aeaa;function a0_0x1e4d24(_0x186017,_0x41483b){const _0x54d197=Number(_0x186017);if(!_0x41483b||_0x186017==''||a0_0x3fb444(_0x186017))return'';const _0x4a44bf=Number(_0x41483b['gte']),_0x5ca0ef=Number(_0x41483b['gt']),_0x517b03=Number(_0x41483b['lte']),_0x473c1e=Number(_0x41483b['lt']);if(!a0_0x3fb444(_0x41483b['gte'])&&_0x54d197<_0x4a44bf)return'X\x20>=\x20'+_0x4a44bf;if(!a0_0x3fb444(_0x41483b['gt'])&&_0x54d197<=_0x5ca0ef)return'X\x20>\x20'+_0x5ca0ef;if(!a0_0x3fb444(_0x41483b['lte'])&&_0x54d197>_0x517b03)return'X\x20<=\x20'+_0x517b03;if(!a0_0x3fb444(_0x41483b['lt'])&&_0x54d197>_0x473c1e)return'X\x20<\x20'+_0x473c1e;return'';}const a0_0x444519=((()=>{const _0x85bef8={};function _0x4c0017(_0x53aa4b){if(_0x85bef8[_0x53aa4b])return _0x85bef8[_0x53aa4b];const _0xd98a3c={};_0xd98a3c['style']='decimal';const _0x3ca520=new Intl['NumberFormat'](_0x53aa4b,_0xd98a3c)['format'](0x457)['replace'](/\d/g,''),_0x224a26={};_0x224a26['style']='decimal';const _0x14430e=new Intl['NumberFormat'](_0x53aa4b,_0x224a26)['format'](11.11)['replace'](/\d/g,''),_0x361e74={'symbol':a0_0xe3a544['cts'][_0x53aa4b],'spThousand':_0x3ca520,'spDecimal':_0x14430e,'rgThousand':new RegExp('['+_0x3ca520+']','g'),'rgDecimal':new RegExp('['+_0x14430e+']','g')};return _0x85bef8[_0x53aa4b]=_0x361e74,_0x361e74;}const _0x2aa9d6={};return _0x2aa9d6['get']=_0x4c0017,_0x2aa9d6;})());class a0_0x2f8678{['countryCode'];['symbol'];['regexThousands'];['regexDecimal'];['fraction'];['thousandSeperator']=![];static['new'](){return new a0_0x2f8678();}static['convert'](_0x152cd8,_0x4a5a23){if(a0_0x3fb444(_0x4a5a23))return Number(_0x152cd8);return Number(Number(_0x152cd8)['toFixed'](_0x4a5a23));}['init'](_0x2bdde0){this['countryCode']=a0_0xe3a544['stc'][_0x2bdde0]||a0_0xe3a544['cts'][_0x2bdde0]||a0_0xe3a544['globalConfigs']['countryCode'];if(a0_0xe3a544['stc'][_0x2bdde0])this['countryCode']=a0_0xe3a544['stc'][_0x2bdde0];else a0_0xe3a544['cts'][_0x2bdde0]?this['countryCode']=_0x2bdde0:this['countryCode']=a0_0xe3a544['globalConfigs']['countryCode'];const _0x5b4c33=a0_0x444519['get'](this['countryCode']);return this['symbol']=_0x5b4c33['symbol'],this['regexThousands']=_0x5b4c33['rgThousand'],this['regexDecimal']=_0x5b4c33['rgDecimal'],this;}['setFraction'](_0x277297){return this['fraction']=_0x277297,this;}['setThousandSeperator'](_0xc6a76e=!![]){return this['thousandSeperator']=_0xc6a76e,this;}['format'](_0x5810d5){try{const _0x252502=a0_0x1742e1(Number(_0x5810d5),this['fraction']),_0x4e5299=a0_0x16817b(this['fraction']),_0x15507a=new Intl['NumberFormat'](this['countryCode'],_0x4e5299)['format'](_0x252502);return this['thousandSeperator']?_0x15507a['replace'](this['regexThousands'],''):_0x15507a;}catch(_0x806781){return'';}}['inputFormat'](_0x505abf){try{const _0x2c83b7=this['format'](_0x505abf);return _0x2c83b7['replace'](this['regexThousands'],'');}catch(_0x4a16ec){return'';}}['currency'](_0x5822a8,_0x15e49e='ltr'){try{const _0x1d8573=this['format'](_0x5822a8);return _0x15e49e==='ltr'?''+_0x1d8573+this['symbol']:''+this['symbol']+_0x1d8573;}catch(_0x22202f){return'';}}['parseRawFormat'](_0xe47479){const _0xafd293=(_0xe47479||'')['replace'](this['regexThousands'],'')['replace'](this['regexDecimal'],'.')['replace'](new RegExp('['+this['symbol']+']','g'),''),_0x2d27af=a0_0x1742e1(parseFloat(_0xafd293),this['fraction']);return _0xafd293?_0x2d27af['toFixed'](a0_0x2b4697(a0_0x129ebe,this['fraction'])):_0xafd293;}}exports['numeralUtil']=((()=>{function _0x2ff470(_0x3b1e42,_0x3662f2,_0x30de02,_0x2cb8e7='ltr'){return a0_0x2f8678['new']()['init'](_0x3662f2)['setThousandSeperator'](_0x30de02)['currency'](_0x3b1e42,_0x2cb8e7);}function _0x42e61a(_0x2c9a65,_0x53c2f8,_0x40919c,_0x18a5f5){return a0_0x2f8678['new']()['init'](_0x53c2f8)['setFraction'](_0x18a5f5)['setThousandSeperator'](_0x40919c)['format'](_0x2c9a65);}function _0x4bb2a2(_0x3a51bd,_0x3849e7,_0x5a94a2){return a0_0x2f8678['new']()['init'](_0x3849e7)['setFraction'](_0x5a94a2)['parseRawFormat'](_0x3a51bd);}function _0x1a767e(_0x20958c,_0x1e567c){return a0_0x2f8678['convert'](_0x20958c,_0x1e567c);}function _0x2892a8(_0x1bb639,_0x4b0e0a=0x2){return a0_0x2f8678['convert'](_0x1bb639,_0x4b0e0a);}const _0x57afc6={};return _0x57afc6['currency']=_0x2ff470,_0x57afc6['format']=_0x42e61a,_0x57afc6['parseRaw']=_0x4bb2a2,_0x57afc6['toNumber']=_0x1a767e,_0x57afc6['toFloat']=_0x2892a8,_0x57afc6;})());function a0_0x2a0d97(_0x3c82bb){const _0x4a6431=a0_0x8b0acf['useMemo'](()=>{return a0_0x2f8678['new']()['init'](_0x3c82bb['code'])['setFraction'](_0x3c82bb['fraction'])['setThousandSeperator'](_0x3c82bb['thousandSeperator']);},[_0x3c82bb['code'],_0x3c82bb['fraction'],_0x3c82bb['thousandSeperator']]);return(0x0,a0_0x5c2f02['jsx'])(a0_0x5c2f02['Fragment'],{'children':_0x4a6431['currency'](_0x3c82bb['value'],_0x3c82bb['direction'])});}function a0_0x518caa(_0xf5824f){return a0_0x2a0d97(_0xf5824f);}exports['CurrencySlot']=a0_0x518caa;function a0_0x1ba7fa(_0x3ca17a){const _0x2799eb=a0_0x8b0acf['useMemo'](()=>{return a0_0x2f8678['new']()['init'](_0x3ca17a['code'])['setFraction'](_0x3ca17a['fraction'])['setThousandSeperator'](_0x3ca17a['thousandSeperator']);},[_0x3ca17a['code'],_0x3ca17a['fraction'],_0x3ca17a['thousandSeperator']]);return(0x0,a0_0x5c2f02['jsx'])(a0_0x5c2f02['Fragment'],{'children':_0x2799eb['format'](_0x3ca17a['value'])});}function a0_0x12b5e4(_0x4daccc){return a0_0x1ba7fa(_0x4daccc);}exports['NumeralSlot']=a0_0x12b5e4;function a0_0x2d8efc({code:_0x79ede8,showExampleOnfocus:_0x132e7e,numeralType:_0x3e4bed,thousandSeperator:_0x499a61,..._0x2c3195}){const _0x8f042e=a0_0x8b0acf['useRef'](null),[_0x18dda6,_0x5e7728]=a0_0x8b0acf['useState'](![]),[_0x5556df,_0x4fc39a]=a0_0x8b0acf['useState'](''),_0x526b0d=a0_0x8b0acf['useMemo'](()=>{return a0_0x2f8678['new']()['init'](_0x79ede8)['setFraction'](_0x3e4bed=='natural'?a0_0x5f3b5a:_0x2c3195['fraction'])['setThousandSeperator'](_0x499a61);},[_0x79ede8,_0x3e4bed,_0x499a61]);function _0x4fb40e(_0x1d4916){try{_0x5e7728(!![]);if(_0x2c3195['value']){const _0x17b5bc=_0x526b0d['inputFormat'](_0x2c3195['value']);_0x4fc39a(_0x17b5bc);}_0x2c3195['onFocus']&&_0x2c3195['onFocus'](_0x1d4916);}catch(_0x39ae5c){}}function _0x4457e3(_0x17461d){try{const _0xb12051=_0x526b0d['parseRawFormat'](_0x17461d);if(Number['isNaN'](Number(_0xb12051)))_0x2c3195['onChange']('');else{const _0x3b1406=a0_0x1e4d24(_0xb12051,_0x2c3195['validity']);!_0x3b1406?_0x2c3195['onChange'](_0xb12051):_0x2c3195['onChange'](''),_0x8f042e['current']?.['setCustomValidity'](_0x3b1406),_0x8f042e['current']?.['reportValidity']();}}catch(_0x57449d){}}function _0x2f8916(_0x1b479f){_0x5e7728(![]),_0x4457e3(_0x5556df),_0x2c3195['onBlur']&&_0x2c3195['onBlur'](_0x1b479f);}function _0x47675a(_0x24d7b9){const _0x48ec1e=_0x24d7b9['target']['value'];_0x4fc39a(_0x48ec1e),_0x4457e3(_0x48ec1e);}return a0_0x8b0acf['useEffect'](()=>{!_0x18dda6&&_0x4fc39a(_0x2c3195['value']);},[_0x18dda6,_0x2c3195['value']]),(0x0,a0_0x5c2f02['jsx'])('input',{..._0x2c3195,'ref':_0x8f042e,'type':'','value':_0x18dda6||!_0x5556df?_0x5556df:_0x526b0d['format'](Number(_0x5556df)),'placeholder':_0x18dda6&&_0x132e7e?_0x526b0d['format'](1357.91):_0x2c3195['placeholder'],'onChange':_0x47675a,'onFocus':_0x4fb40e,'onBlur':_0x2f8916});}function a0_0x55a774(_0x3b5a04){return a0_0x2d8efc(_0x3b5a04);}exports['NumeralInput']=a0_0x55a774;
|