react-ui-mat 5.81.84 → 5.81.86
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/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_0x115dab={};a0_0x115dab['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x115dab),exports['Groupset']=void 0x0;const a0_0x166a3b=require('react/jsx-runtime');function a0_0x1b9830({label:_0x390901,labelClassName:labelClassName='',className:className='',..._0x269e65}){const _0x151aee={};return _0x151aee['className']='mtgrouplabel\x20'+labelClassName,_0x151aee['children']=_0x390901,(0x0,a0_0x166a3b['jsxs'])('fieldset',{'className':'mtgroupset\x20'+className,..._0x269e65,'children':[(0x0,a0_0x166a3b['jsx'])('legend',_0x151aee),_0x269e65['children']]});}function a0_0x230a7a(_0x52ac43){return a0_0x1b9830(_0x52ac43);}exports['Groupset']=a0_0x230a7a;
|
package/dist/Icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x348259={};a0_0x348259['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x348259),exports['WarningIcon']=exports['BoxIcon']=exports['CloseIcon']=exports['UpIcon']=exports['DownIcon']=void 0x0;const a0_0xd880ac=require('react/jsx-runtime');function a0_0x4a5e2a(_0x4f6923){const _0x2ab666={};return _0x2ab666['strokeLinecap']='round',_0x2ab666['strokeLinejoin']='round',_0x2ab666['strokeWidth']='3',_0x2ab666['d']='M19\x209l-7\x207-7-7',(0x0,a0_0xd880ac['jsx'])('svg',{'onClick':_0x4f6923['onClick'],'className':'d-select-fc-down\x20'+_0x4f6923['className'],'width':_0x4f6923['width']||0x13,'height':_0x4f6923['height']||0xe,'strokeWidth':0x3,'fill':'none','stroke':'currentColor','viewBox':'0\x200\x2024\x2024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0xd880ac['jsx'])('path',_0x2ab666)});}exports['DownIcon']=a0_0x4a5e2a;function a0_0x1f9cbe(_0x2f9c84){const _0x5867ab={};_0x5867ab['transform']='rotate(180deg)';const _0x107056={};return _0x107056['strokeLinecap']='round',_0x107056['strokeLinejoin']='round',_0x107056['strokeWidth']='3',_0x107056['d']='M19\x209l-7\x207-7-7',(0x0,a0_0xd880ac['jsx'])('svg',{'onClick':_0x2f9c84['onClick'],'className':'d-select-fc-down\x20'+_0x2f9c84['className'],'width':_0x2f9c84['width']||0x13,'height':_0x2f9c84['height']||0xe,'strokeWidth':0x3,'style':_0x5867ab,'fill':'none','stroke':'currentColor','viewBox':'0\x200\x2024\x2024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0xd880ac['jsx'])('path',_0x107056)});}exports['UpIcon']=a0_0x1f9cbe;function a0_0x72e8aa(_0x2c991d){const _0xac2b40={};return _0xac2b40['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_0xd880ac['jsx'])('svg',{'onClick':_0x2c991d['onClick'],'className':'d-select-fc-close\x20'+_0x2c991d['className'],'width':_0x2c991d['width']||'1em','height':_0x2c991d['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'3','viewBox':'0\x200\x201024\x201024','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0xd880ac['jsx'])('path',_0xac2b40)});}exports['CloseIcon']=a0_0x72e8aa;function a0_0x48cc5d(_0x25cd0b){const _0xfb98ea={};return _0xfb98ea['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_0xd880ac['jsx'])('svg',{'className':'d-box-icon\x20'+_0x25cd0b['className'],'width':_0x25cd0b['width']||'1em','height':_0x25cd0b['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'0','viewBox':'0\x200\x2016\x2016','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0xd880ac['jsx'])('path',_0xfb98ea)});}exports['BoxIcon']=a0_0x48cc5d;function a0_0x2b7b95(_0x3f74a6){const _0x2f0855={};return _0x2f0855['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_0xd880ac['jsx'])('svg',{'className':'d-warning-icon\x20'+_0x3f74a6['className'],'width':_0x3f74a6['width']||'1em','height':_0x3f74a6['height']||'1em','stroke':'currentColor','fill':'currentColor','strokeWidth':'0','viewBox':'0\x200\x20512\x20512','xmlns':'http://www.w3.org/2000/svg','children':(0x0,a0_0xd880ac['jsx'])('path',_0x2f0855)});}exports['WarningIcon']=a0_0x2b7b95;
|
package/dist/IncorrectEntry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x10b98d={};a0_0x10b98d['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x10b98d),exports['IncorrectEntry']=void 0x0;const a0_0x5ad57a=require('react/jsx-runtime');function a0_0x58f113(_0x5d63fe){return(0x0,a0_0x5ad57a['jsx'])(a0_0x5ad57a['Fragment'],{'children':_0x5d63fe['children']&&(0x0,a0_0x5ad57a['jsx'])('div',{'id':_0x5d63fe['id'],'className':'d-incorrect-entry\x20'+(_0x5d63fe['children']?'d-mt-1':''),'children':_0x5d63fe['children']})});}exports['IncorrectEntry']=a0_0x58f113;
|
package/dist/Input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x6c363b=this&&this['__createBinding']||(Object['create']?function(_0x3738e3,_0x1d6b94,_0x29ed7c,_0x31a6f7){if(_0x31a6f7===undefined)_0x31a6f7=_0x29ed7c;var _0x3e4be9=Object['getOwnPropertyDescriptor'](_0x1d6b94,_0x29ed7c);if(!_0x3e4be9||('get'in _0x3e4be9?!_0x1d6b94['__esModule']:_0x3e4be9['writable']||_0x3e4be9['configurable'])){const _0x2b4b86={};_0x2b4b86['enumerable']=!![],_0x2b4b86['get']=function(){return _0x1d6b94[_0x29ed7c];},_0x3e4be9=_0x2b4b86;}Object['defineProperty'](_0x3738e3,_0x31a6f7,_0x3e4be9);}:function(_0x34a4ad,_0x57a49a,_0xe3ff52,_0x2239fd){if(_0x2239fd===undefined)_0x2239fd=_0xe3ff52;_0x34a4ad[_0x2239fd]=_0x57a49a[_0xe3ff52];}),a0_0x4c591a=this&&this['__setModuleDefault']||(Object['create']?function(_0x4c9a69,_0x583dea){const _0x148386={};_0x148386['enumerable']=!![],_0x148386['value']=_0x583dea,Object['defineProperty'](_0x4c9a69,'default',_0x148386);}:function(_0xc631da,_0xcd2ab0){_0xc631da['default']=_0xcd2ab0;}),a0_0x3a7c9e=this&&this['__importStar']||function(_0x25877e){if(_0x25877e&&_0x25877e['__esModule'])return _0x25877e;var _0x3d337a={};if(_0x25877e!=null){for(var _0x11be4c in _0x25877e)if(_0x11be4c!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x25877e,_0x11be4c))a0_0x6c363b(_0x3d337a,_0x25877e,_0x11be4c);}return a0_0x4c591a(_0x3d337a,_0x25877e),_0x3d337a;};const a0_0x364c7d={};a0_0x364c7d['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x364c7d),exports['FileInput']=exports['SearchTextareaInput']=exports['SearchInput']=exports['Input']=void 0x0;const a0_0x51de51=require('react/jsx-runtime'),a0_0x12e459=a0_0x3a7c9e(require('react'));function a0_0x3456ff(_0x472b8c,_0xd67e2a,_0x198851){const _0x4e5863=_0x5a6bb4=>{!_0x472b8c&&(_0x5a6bb4['target']['value']=_0x5a6bb4['target']['value']?.['trimStart']()?.['trimEnd']()),_0xd67e2a&&_0xd67e2a(_0x5a6bb4),_0x198851&&_0x198851(_0x5a6bb4);};return _0x4e5863;}function a0_0x166ffd(_0x199f59){const _0x5b7747={..._0x199f59};return _0x5b7747['value']=_0x199f59['value']||'',(0x0,a0_0x51de51['jsx'])('input',_0x5b7747);}function a0_0x5821ff(_0x48c131){return!_0x48c131['noTrim']?a0_0x166ffd({..._0x48c131,'onBlur':a0_0x3456ff(_0x48c131['noTrim'],_0x48c131['onChange'],_0x48c131['onBlur'])}):a0_0x166ffd(_0x48c131);}exports['Input']=a0_0x5821ff;function a0_0x57472d({value:_0x3a17d8,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x12e459['useRef'](null),..._0x244a6f}){const _0x24efba=a0_0x12e459['useRef'](_0x244a6f['defaultValue']||_0x3a17d8||''),_0x23d017=a0_0x12e459['useRef'](null),_0x439bbd=a0_0x12e459['useRef'](![]),[,_0x3c111a]=a0_0x12e459['useState'](),_0x2368f3=()=>_0x3c111a(new Date()['getTime']());function _0x31d737(_0x55daca,_0x4b938a){_0x439bbd['current']=_0x4b938a,_0x2368f3(),_0x439bbd['current']&&Boolean(_0x244a6f['onFocus'])&&_0x244a6f['onFocus'](_0x55daca);}const _0x3a171b=a0_0x12e459['useCallback'](()=>{if(!_0x23d017['current']){const _0x27958a={};_0x27958a['250']=0x1,_0x27958a['500']=0x1,_0x27958a['1000']=0x1,_0x27958a['1250']=0x1,_0x27958a['2500']=0x1,_0x27958a['3000']=0x1,_0x27958a['5000']=0x1;const _0x38b11e=_0x27958a[idle]?idle:0x4e7;window&&(_0x23d017['current']=setTimeout(()=>{_0x244a6f['onChange']&&_0x244a6f['onChange'](_0x24efba['current']||''),clearTimeout(_0x23d017['current']),_0x23d017['current']=null,_0x2368f3();},_0x38b11e)),_0x2368f3();}},[]);function _0x30d4ad(_0x512f10){_0x24efba['current']=_0x512f10['target']['value']||'',_0x3a171b();}a0_0x12e459['useEffect'](()=>{!_0x23d017['current']&&!_0x439bbd['current']&&(ref['current']['value']=_0x3a17d8||'',_0x2368f3());},[_0x23d017['current'],_0x439bbd['current'],_0x3a17d8]),a0_0x12e459['useEffect'](()=>{return ref['current']['value']=_0x24efba['current']||'',()=>{window&&clearTimeout(_0x23d017['current']);};},[]);const _0x58effc={};_0x58effc['position']='relative';const _0x87af05={};_0x87af05['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 _0xbd4004={};_0xbd4004['position']='absolute',_0xbd4004['right']=0x0,_0xbd4004['top']=0x0,_0xbd4004['bottom']=0x0,_0xbd4004['display']='flex',_0xbd4004['justifyContent']='center',_0xbd4004['alignItems']='center',_0xbd4004['padding']=0x3,_0xbd4004['paddingRight']=0x5;const _0x40c751={};return _0x40c751['fill']=colorOfSearchIcon,_0x40c751['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',_0x40c751['className']='spinner_mtP7sC',(0x0,a0_0x51de51['jsxs'])('div',{'id':'mtsearch','style':_0x58effc,'children':[(0x0,a0_0x51de51['jsx'])('style',_0x87af05),_0x23d017['current']?(0x0,a0_0x51de51['jsx'])('div',{'style':_0xbd4004,'children':(0x0,a0_0x51de51['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x51de51['jsx'])('path',_0x40c751)})}):(0x0,a0_0x51de51['jsx'])(a0_0x51de51['Fragment'],{}),(0x0,a0_0x51de51['jsx'])('input',{..._0x244a6f,'ref':ref,'type':'text','autoComplete':'off','onChange':_0x30d4ad,'onFocus':_0x3d5367=>_0x31d737(_0x3d5367,!![]),'onBlur':_0x374725=>_0x31d737(_0x374725,![])})]});}function a0_0x1849d4({value:_0x3a8569,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x12e459['useRef'](null),..._0x892dc5}){const _0x3ad7f2=a0_0x12e459['useRef'](_0x892dc5['defaultValue']||_0x3a8569||''),_0x216487=a0_0x12e459['useRef'](null),_0x3b9e5a=a0_0x12e459['useRef'](![]),[,_0x5a0d85]=a0_0x12e459['useState'](),_0x12a301=()=>_0x5a0d85(new Date()['getTime']());function _0x11affa(_0x1ae249,_0x543b38){_0x3b9e5a['current']=_0x543b38,_0x12a301(),_0x3b9e5a['current']&&Boolean(_0x892dc5['onFocus'])&&_0x892dc5['onFocus'](_0x1ae249);}const _0x215676=a0_0x12e459['useCallback'](()=>{if(!_0x216487['current']){const _0x1aceab={};_0x1aceab['250']=0x1,_0x1aceab['500']=0x1,_0x1aceab['1000']=0x1,_0x1aceab['1250']=0x1,_0x1aceab['2500']=0x1,_0x1aceab['3000']=0x1,_0x1aceab['5000']=0x1;const _0x4a0938=_0x1aceab[idle]?idle:0x4e7;window&&(_0x216487['current']=setTimeout(()=>{_0x892dc5['onChange']&&_0x892dc5['onChange'](_0x3ad7f2['current']||''),clearTimeout(_0x216487['current']),_0x216487['current']=null,_0x12a301();},_0x4a0938)),_0x12a301();}},[]);function _0x42d303(_0x460f3c){_0x3ad7f2['current']=_0x460f3c['target']['value']||'',_0x215676();}a0_0x12e459['useEffect'](()=>{!_0x216487['current']&&!_0x3b9e5a['current']&&(ref['current']['value']=_0x3a8569||'',_0x12a301());},[_0x216487['current'],_0x3b9e5a['current'],_0x3a8569]),a0_0x12e459['useEffect'](()=>{return ref['current']['value']=_0x3ad7f2['current']||'',()=>{window&&clearTimeout(_0x216487['current']);};},[]);const _0x42252e={};_0x42252e['position']='relative';const _0x2f86fe={};_0x2f86fe['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 _0x43b2ff={};_0x43b2ff['position']='absolute',_0x43b2ff['right']=0x0,_0x43b2ff['top']=0x0,_0x43b2ff['bottom']=0x0,_0x43b2ff['display']='flex',_0x43b2ff['justifyContent']='center',_0x43b2ff['alignItems']='center',_0x43b2ff['padding']=0x3,_0x43b2ff['paddingRight']=0x5;const _0x2b81ac={};return _0x2b81ac['fill']=colorOfSearchIcon,_0x2b81ac['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',_0x2b81ac['className']='spinner_mtP7sC',(0x0,a0_0x51de51['jsxs'])('div',{'id':'mtsearch','style':_0x42252e,'children':[(0x0,a0_0x51de51['jsx'])('style',_0x2f86fe),_0x216487['current']?(0x0,a0_0x51de51['jsx'])('div',{'style':_0x43b2ff,'children':(0x0,a0_0x51de51['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x51de51['jsx'])('path',_0x2b81ac)})}):(0x0,a0_0x51de51['jsx'])(a0_0x51de51['Fragment'],{}),(0x0,a0_0x51de51['jsx'])('textarea',{..._0x892dc5,'className':'d-textarea-h-20\x20'+(_0x892dc5['className']||''),'ref':ref,'autoComplete':'off','onChange':_0x42d303,'onFocus':_0x43cd9a=>_0x11affa(_0x43cd9a,!![]),'onBlur':_0x12604d=>_0x11affa(_0x12604d,![])})]});}function a0_0x50c938({..._0x27d82a}){return a0_0x57472d(_0x27d82a);}exports['SearchInput']=a0_0x50c938;function a0_0x2b1af8({..._0x2f844b}){return a0_0x1849d4(_0x2f844b);}exports['SearchTextareaInput']=a0_0x2b1af8;function a0_0x14286c(_0x10695c){try{return _0x10695c();}catch(_0x3c5b14){return null;}}function a0_0x44a119(_0x3bb5a1){const _0xcf0dd8=a0_0x12e459['useRef'](null),_0x3e0ccf=a0_0x12e459['useRef']([]),_0x3b54c4=a0_0x12e459['useState']();function _0x2242b9(_0x47c07b){_0x3e0ccf['current']=[],a0_0x14286c(()=>{_0x3e0ccf['current']=Array(_0x47c07b['target']['files']['length'])['fill'](null)['map']((_0x468ac6,_0x71ebed)=>{return _0x47c07b['target']['files'][_0x71ebed];});}),a0_0x14286c(()=>{_0x3bb5a1['onChange']&&_0x3bb5a1['onChange'](_0x3e0ccf['current']);}),a0_0x14286c(()=>{_0x3bb5a1['onBlur']&&_0x3bb5a1['onBlur']();}),a0_0x14286c(()=>{_0x3b54c4[0x1](new Date()['getTime']());});}function _0x576515(_0x3ca535){a0_0x14286c(()=>{!_0x3bb5a1['disabled']&&a0_0x14286c(()=>{_0xcf0dd8['current']?.['click']();});});}const _0x246cac={};_0x246cac['width']='100%',_0x246cac['display']='flex',_0x246cac['flexDirection']='row',_0x246cac['alignItems']='center',_0x246cac['position']='relative';const _0x28c05b={};_0x28c05b['paddingRight']=0x9;const _0x173ade={};_0x173ade['height']='32px',_0x173ade['borderLeftWidth']='0px',_0x173ade['borderRadius']='0px',_0x173ade['display']='flex',_0x173ade['justifyContent']='center',_0x173ade['alignItems']='center',_0x173ade['padding']=0x7,_0x173ade['position']='absolute',_0x173ade['right']=0x3,_0x173ade['zIndex']=0x1,_0x173ade['fontSize']=0x11;const _0x2ac077={};return _0x2ac077['children']='📁',(0x0,a0_0x51de51['jsxs'])('div',{'className':_0x3bb5a1['className'],'style':_0x246cac,'onClick':_0x576515,'children':[(0x0,a0_0x51de51['jsx'])('input',{'ref':_0xcf0dd8,'hidden':!![],'multiple':Boolean(_0x3bb5a1['multiple']),'readOnly':!![],'type':'file','accept':_0x3bb5a1['accept'],'onChange':_0x2242b9}),(0x0,a0_0x51de51['jsx'])(a0_0x5821ff,{'readOnly':!![],'noTrim':!![],'value':_0x3e0ccf['current']?.['map'](_0x2b7eba=>_0x2b7eba['name'])['join'](),'placeholder':_0x3bb5a1['placeholder'],'style':_0x28c05b,'disabled':_0x3bb5a1['disabled']}),(0x0,a0_0x51de51['jsx'])('div',{'style':_0x173ade,'children':(0x0,a0_0x51de51['jsx'])('span',_0x2ac077)})]});}function a0_0x30cf39(_0x110b71){return a0_0x44a119(_0x110b71);}exports['FileInput']=a0_0x30cf39;
|
|
1
|
+
'use strict';var a0_0x5463de=this&&this['__createBinding']||(Object['create']?function(_0x32f252,_0xd97070,_0x31b7ac,_0x47185e){if(_0x47185e===undefined)_0x47185e=_0x31b7ac;var _0x192b8f=Object['getOwnPropertyDescriptor'](_0xd97070,_0x31b7ac);if(!_0x192b8f||('get'in _0x192b8f?!_0xd97070['__esModule']:_0x192b8f['writable']||_0x192b8f['configurable'])){const _0x83708b={};_0x83708b['enumerable']=!![],_0x83708b['get']=function(){return _0xd97070[_0x31b7ac];},_0x192b8f=_0x83708b;}Object['defineProperty'](_0x32f252,_0x47185e,_0x192b8f);}:function(_0x308316,_0x34dd36,_0x3ce1ea,_0x2ea24b){if(_0x2ea24b===undefined)_0x2ea24b=_0x3ce1ea;_0x308316[_0x2ea24b]=_0x34dd36[_0x3ce1ea];}),a0_0xf7c538=this&&this['__setModuleDefault']||(Object['create']?function(_0x28ba87,_0x25b36b){const _0x3cf5c1={};_0x3cf5c1['enumerable']=!![],_0x3cf5c1['value']=_0x25b36b,Object['defineProperty'](_0x28ba87,'default',_0x3cf5c1);}:function(_0x2fb794,_0x16e6b9){_0x2fb794['default']=_0x16e6b9;}),a0_0x5b6d25=this&&this['__importStar']||function(_0x39ed1e){if(_0x39ed1e&&_0x39ed1e['__esModule'])return _0x39ed1e;var _0x4fd623={};if(_0x39ed1e!=null){for(var _0x3e5dba in _0x39ed1e)if(_0x3e5dba!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x39ed1e,_0x3e5dba))a0_0x5463de(_0x4fd623,_0x39ed1e,_0x3e5dba);}return a0_0xf7c538(_0x4fd623,_0x39ed1e),_0x4fd623;};const a0_0x4b9aa7={};a0_0x4b9aa7['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x4b9aa7),exports['FileInput']=exports['SearchTextareaInput']=exports['SearchInput']=exports['Input']=void 0x0;const a0_0x5c7920=require('react/jsx-runtime'),a0_0x4097c1=a0_0x5b6d25(require('react'));function a0_0x102097(_0x575b30,_0x282501,_0x1f1095){const _0x271d47=_0x4dcffe=>{!_0x575b30&&(_0x4dcffe['target']['value']=_0x4dcffe['target']['value']?.['trimStart']()?.['trimEnd']()),_0x282501&&_0x282501(_0x4dcffe),_0x1f1095&&_0x1f1095(_0x4dcffe);};return _0x271d47;}function a0_0x11cc05(_0x468ed4){const _0x440f92={..._0x468ed4};return _0x440f92['value']=_0x468ed4['value']||'',(0x0,a0_0x5c7920['jsx'])('input',_0x440f92);}function a0_0xaf37ca(_0x2d7139){return!_0x2d7139['noTrim']?a0_0x11cc05({..._0x2d7139,'onBlur':a0_0x102097(_0x2d7139['noTrim'],_0x2d7139['onChange'],_0x2d7139['onBlur'])}):a0_0x11cc05(_0x2d7139);}exports['Input']=a0_0xaf37ca;function a0_0x4f7c05({value:_0x5e0378,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x4097c1['useRef'](null),..._0x2082fa}){const _0x7df114=a0_0x4097c1['useRef'](_0x2082fa['defaultValue']||_0x5e0378||''),_0x51a63a=a0_0x4097c1['useRef'](null),_0x39c6df=a0_0x4097c1['useRef'](![]),[,_0x5ba963]=a0_0x4097c1['useState'](),_0x13ff39=()=>_0x5ba963(new Date()['getTime']());function _0x2f68e0(_0x3a6836,_0x4ad53b){_0x39c6df['current']=_0x4ad53b,_0x13ff39(),_0x39c6df['current']&&Boolean(_0x2082fa['onFocus'])&&_0x2082fa['onFocus'](_0x3a6836);}const _0x35cb90=a0_0x4097c1['useCallback'](()=>{if(!_0x51a63a['current']){const _0x38a0c4={};_0x38a0c4['250']=0x1,_0x38a0c4['500']=0x1,_0x38a0c4['1000']=0x1,_0x38a0c4['1250']=0x1,_0x38a0c4['2500']=0x1,_0x38a0c4['3000']=0x1,_0x38a0c4['5000']=0x1;const _0x38a7dc=_0x38a0c4[idle]?idle:0x4e7;window&&(_0x51a63a['current']=setTimeout(()=>{_0x2082fa['onChange']&&_0x2082fa['onChange'](_0x7df114['current']||''),clearTimeout(_0x51a63a['current']),_0x51a63a['current']=null,_0x13ff39();},_0x38a7dc)),_0x13ff39();}},[]);function _0x351aac(_0x3fe846){_0x7df114['current']=_0x3fe846['target']['value']||'',_0x35cb90();}a0_0x4097c1['useEffect'](()=>{!_0x51a63a['current']&&!_0x39c6df['current']&&(ref['current']['value']=_0x5e0378||'',_0x13ff39());},[_0x51a63a['current'],_0x39c6df['current'],_0x5e0378]),a0_0x4097c1['useEffect'](()=>{return ref['current']['value']=_0x7df114['current']||'',()=>{window&&clearTimeout(_0x51a63a['current']);};},[]);const _0x5e6028={};_0x5e6028['position']='relative';const _0x3caf47={};_0x3caf47['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 _0x2ca111={};_0x2ca111['position']='absolute',_0x2ca111['right']=0x0,_0x2ca111['top']=0x0,_0x2ca111['bottom']=0x0,_0x2ca111['display']='flex',_0x2ca111['justifyContent']='center',_0x2ca111['alignItems']='center',_0x2ca111['padding']=0x3,_0x2ca111['paddingRight']=0x5;const _0x4e475f={};return _0x4e475f['fill']=colorOfSearchIcon,_0x4e475f['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',_0x4e475f['className']='spinner_mtP7sC',(0x0,a0_0x5c7920['jsxs'])('div',{'id':'mtsearch','style':_0x5e6028,'children':[(0x0,a0_0x5c7920['jsx'])('style',_0x3caf47),_0x51a63a['current']?(0x0,a0_0x5c7920['jsx'])('div',{'style':_0x2ca111,'children':(0x0,a0_0x5c7920['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x5c7920['jsx'])('path',_0x4e475f)})}):(0x0,a0_0x5c7920['jsx'])(a0_0x5c7920['Fragment'],{}),(0x0,a0_0x5c7920['jsx'])('input',{..._0x2082fa,'ref':ref,'type':'text','autoComplete':'off','onChange':_0x351aac,'onFocus':_0x540b7d=>_0x2f68e0(_0x540b7d,!![]),'onBlur':_0x31eba9=>_0x2f68e0(_0x31eba9,![])})]});}function a0_0x4573a1({value:_0x45ae03,sizeOfSearchIcon:sizeOfSearchIcon=0x18,colorOfSearchIcon:colorOfSearchIcon='orange',idle:idle=0x4e2,ref:ref=a0_0x4097c1['useRef'](null),..._0x145e14}){const _0xb3316e=a0_0x4097c1['useRef'](_0x145e14['defaultValue']||_0x45ae03||''),_0x34444c=a0_0x4097c1['useRef'](null),_0x1fdf39=a0_0x4097c1['useRef'](![]),[,_0x2d4972]=a0_0x4097c1['useState'](),_0x596a29=()=>_0x2d4972(new Date()['getTime']());function _0x24c801(_0x2a253d,_0x125eb3){_0x1fdf39['current']=_0x125eb3,_0x596a29(),_0x1fdf39['current']&&Boolean(_0x145e14['onFocus'])&&_0x145e14['onFocus'](_0x2a253d);}const _0x3f615b=a0_0x4097c1['useCallback'](()=>{if(!_0x34444c['current']){const _0x3af2cd={};_0x3af2cd['250']=0x1,_0x3af2cd['500']=0x1,_0x3af2cd['1000']=0x1,_0x3af2cd['1250']=0x1,_0x3af2cd['2500']=0x1,_0x3af2cd['3000']=0x1,_0x3af2cd['5000']=0x1;const _0x32a965=_0x3af2cd[idle]?idle:0x4e7;window&&(_0x34444c['current']=setTimeout(()=>{_0x145e14['onChange']&&_0x145e14['onChange'](_0xb3316e['current']||''),clearTimeout(_0x34444c['current']),_0x34444c['current']=null,_0x596a29();},_0x32a965)),_0x596a29();}},[]);function _0x3bc1bc(_0x207345){_0xb3316e['current']=_0x207345['target']['value']||'',_0x3f615b();}a0_0x4097c1['useEffect'](()=>{!_0x34444c['current']&&!_0x1fdf39['current']&&(ref['current']['value']=_0x45ae03||'',_0x596a29());},[_0x34444c['current'],_0x1fdf39['current'],_0x45ae03]),a0_0x4097c1['useEffect'](()=>{return ref['current']['value']=_0xb3316e['current']||'',()=>{window&&clearTimeout(_0x34444c['current']);};},[]);const _0x14f7a3={};_0x14f7a3['position']='relative';const _0xeb3fa3={};_0xeb3fa3['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 _0x4c7416={};_0x4c7416['position']='absolute',_0x4c7416['right']=0x0,_0x4c7416['top']=0x0,_0x4c7416['bottom']=0x0,_0x4c7416['display']='flex',_0x4c7416['justifyContent']='center',_0x4c7416['alignItems']='center',_0x4c7416['padding']=0x3,_0x4c7416['paddingRight']=0x5;const _0x132b82={};return _0x132b82['fill']=colorOfSearchIcon,_0x132b82['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',_0x132b82['className']='spinner_mtP7sC',(0x0,a0_0x5c7920['jsxs'])('div',{'id':'mtsearch','style':_0x14f7a3,'children':[(0x0,a0_0x5c7920['jsx'])('style',_0xeb3fa3),_0x34444c['current']?(0x0,a0_0x5c7920['jsx'])('div',{'style':_0x4c7416,'children':(0x0,a0_0x5c7920['jsx'])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':sizeOfSearchIcon,'height':sizeOfSearchIcon,'viewBox':'0\x200\x2024\x2024','children':(0x0,a0_0x5c7920['jsx'])('path',_0x132b82)})}):(0x0,a0_0x5c7920['jsx'])(a0_0x5c7920['Fragment'],{}),(0x0,a0_0x5c7920['jsx'])('textarea',{..._0x145e14,'className':'d-textarea-h-20\x20'+(_0x145e14['className']||''),'ref':ref,'autoComplete':'off','onChange':_0x3bc1bc,'onFocus':_0x4a6895=>_0x24c801(_0x4a6895,!![]),'onBlur':_0x2ebd2d=>_0x24c801(_0x2ebd2d,![])})]});}function a0_0xddef89({..._0x33f24c}){return a0_0x4f7c05(_0x33f24c);}exports['SearchInput']=a0_0xddef89;function a0_0xb53d65({..._0x53b79c}){return a0_0x4573a1(_0x53b79c);}exports['SearchTextareaInput']=a0_0xb53d65;function a0_0x12c9e1(_0xa27c25){try{return _0xa27c25();}catch(_0x2643cc){return null;}}function a0_0xdd29db(_0x3735e6){const _0xf11e76=a0_0x4097c1['useRef'](null),_0x5aafe1=a0_0x4097c1['useRef']([]),_0x70875=a0_0x4097c1['useState']();function _0x5e9bef(_0x2467d2){_0x5aafe1['current']=[],a0_0x12c9e1(()=>{_0x5aafe1['current']=Array(_0x2467d2['target']['files']['length'])['fill'](null)['map']((_0x464687,_0x2582bd)=>{return _0x2467d2['target']['files'][_0x2582bd];});}),a0_0x12c9e1(()=>{_0x3735e6['onChange']&&_0x3735e6['onChange'](_0x5aafe1['current']);}),a0_0x12c9e1(()=>{_0x3735e6['onBlur']&&_0x3735e6['onBlur']();}),a0_0x12c9e1(()=>{_0x70875[0x1](new Date()['getTime']());});}function _0x1508ee(_0x426ff0){a0_0x12c9e1(()=>{!_0x3735e6['disabled']&&a0_0x12c9e1(()=>{_0xf11e76['current']?.['click']();});});}const _0x4fb12c={};_0x4fb12c['width']='100%',_0x4fb12c['display']='flex',_0x4fb12c['flexDirection']='row',_0x4fb12c['alignItems']='center',_0x4fb12c['position']='relative';const _0x287362={};_0x287362['paddingRight']=0x9;const _0x29e1dd={};_0x29e1dd['height']='32px',_0x29e1dd['borderLeftWidth']='0px',_0x29e1dd['borderRadius']='0px',_0x29e1dd['display']='flex',_0x29e1dd['justifyContent']='center',_0x29e1dd['alignItems']='center',_0x29e1dd['padding']=0x7,_0x29e1dd['position']='absolute',_0x29e1dd['right']=0x3,_0x29e1dd['zIndex']=0x1,_0x29e1dd['fontSize']=0x11;const _0x1a87fc={};return _0x1a87fc['children']='📁',(0x0,a0_0x5c7920['jsxs'])('div',{'className':_0x3735e6['className'],'style':_0x4fb12c,'onClick':_0x1508ee,'children':[(0x0,a0_0x5c7920['jsx'])('input',{'ref':_0xf11e76,'hidden':!![],'multiple':Boolean(_0x3735e6['multiple']),'readOnly':!![],'type':'file','accept':_0x3735e6['accept'],'onChange':_0x5e9bef}),(0x0,a0_0x5c7920['jsx'])(a0_0xaf37ca,{'readOnly':!![],'noTrim':!![],'value':_0x5aafe1['current']?.['map'](_0x52f37f=>_0x52f37f['name'])['join'](),'placeholder':_0x3735e6['placeholder'],'style':_0x287362,'disabled':_0x3735e6['disabled']}),(0x0,a0_0x5c7920['jsx'])('div',{'style':_0x29e1dd,'children':(0x0,a0_0x5c7920['jsx'])('span',_0x1a87fc)})]});}function a0_0x2333a1(_0x913a86){return a0_0xdd29db(_0x913a86);}exports['FileInput']=a0_0x2333a1;
|
package/dist/InputFields.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x10ff88=this&&this['__createBinding']||(Object['create']?function(_0x1492ac,_0x23baee,_0x358154,_0x1d802d){if(_0x1d802d===undefined)_0x1d802d=_0x358154;var _0x17cd3c=Object['getOwnPropertyDescriptor'](_0x23baee,_0x358154);if(!_0x17cd3c||('get'in _0x17cd3c?!_0x23baee['__esModule']:_0x17cd3c['writable']||_0x17cd3c['configurable'])){var _0xb78100={};_0xb78100['enumerable']=!![],_0xb78100['get']=function(){return _0x23baee[_0x358154];},_0x17cd3c=_0xb78100;}Object['defineProperty'](_0x1492ac,_0x1d802d,_0x17cd3c);}:function(_0x8c9c55,_0xaffb5b,_0x1b5678,_0x52272e){if(_0x52272e===undefined)_0x52272e=_0x1b5678;_0x8c9c55[_0x52272e]=_0xaffb5b[_0x1b5678];}),a0_0xa5b246=this&&this['__setModuleDefault']||(Object['create']?function(_0x207f6c,_0x3ce0b8){var _0x120b35={};_0x120b35['enumerable']=!![],_0x120b35['value']=_0x3ce0b8,Object['defineProperty'](_0x207f6c,'default',_0x120b35);}:function(_0x46f839,_0x3787cc){_0x46f839['default']=_0x3787cc;}),a0_0x26edbe=this&&this['__importStar']||function(_0x4e1761){if(_0x4e1761&&_0x4e1761['__esModule'])return _0x4e1761;var _0x4cb6bd={};if(_0x4e1761!=null){for(var _0x29aee8 in _0x4e1761)if(_0x29aee8!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x4e1761,_0x29aee8))a0_0x10ff88(_0x4cb6bd,_0x4e1761,_0x29aee8);}return a0_0xa5b246(_0x4cb6bd,_0x4e1761),_0x4cb6bd;},a0_0x85eae7={};a0_0x85eae7['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x85eae7),exports['InputFieldLeg']=exports['InputField']=void 0x0;const a0_0x7e205c=require('react/jsx-runtime'),a0_0x230b54=a0_0x26edbe(require('react'));function a0_0x7ff60b(_0x25a644){var _0x406b2e={};_0x406b2e['width']='100%',_0x406b2e['display']='flex',_0x406b2e['flexDirection']='row',_0x406b2e['alignItems']='center',_0x406b2e['marginBottom']='0.15rem';var _0x51de78={};_0x51de78['width']='100%',_0x51de78['fontWeight']=0x1f4,_0x51de78['fontSize']='0.915rem',_0x51de78['paddingLeft']='4px';var _0x5d712b={};return _0x5d712b['width']='100%',(0x0,a0_0x7e205c['jsxs'])('div',{'id':_0x25a644['id'],'className':_0x25a644['className'],'children':[(_0x25a644['label']||_0x25a644['infoIcon'])&&(0x0,a0_0x7e205c['jsxs'])('div',{'style':_0x406b2e,'children':[(0x0,a0_0x7e205c['jsx'])('div',{'style':_0x51de78,'children':_0x25a644['label']}),_0x25a644['infoIcon']]}),_0x25a644['description']?(0x0,a0_0x7e205c['jsx'])('div',{'className':'mt-inputfield-subtitle\x20'+_0x25a644['descriptionClassName'],'children':_0x25a644['description']}):(0x0,a0_0x7e205c['jsx'])(a0_0x7e205c['Fragment'],{}),(0x0,a0_0x7e205c['jsx'])('div',{'className':_0x25a644['childrenClassName'],'style':_0x5d712b,'children':_0x25a644['children']})]});}function a0_0x14fb13(_0x4d9142){return a0_0x7ff60b(_0x4d9142);}exports['InputField']=a0_0x14fb13;function a0_0x43e3d6(_0xe02409){const _0x34aa14=a0_0x230b54['useRef'](null);var _0x2809dc={};_0x2809dc['padding']=0x0,_0x2809dc['borderWidth']=0x1,_0x2809dc['border']='none';var _0x24aea0={};_0x24aea0['width']=_0x34aa14['current']?.['offsetWidth']+0x7,_0x24aea0['marginLeft']='5px',_0x24aea0['position']='relative',_0x24aea0['top']='1px',_0x24aea0['border']='1px\x20solid\x20white',_0x24aea0['zIndex']=0x63;var _0xa2863c={};return _0xa2863c['position']='absolute',_0xa2863c['marginTop']='-11px',_0xa2863c['whiteSpace']='nowrap',_0xa2863c['fontSize']='0.875rem',_0xa2863c['fontWeight']='500',(0x0,a0_0x7e205c['jsxs'])('fieldset',{'id':_0xe02409['id'],'style':_0x2809dc,'className':_0xe02409['className'],'children':[_0xe02409['label']&&(0x0,a0_0x7e205c['jsx'])('legend',{'style':_0x24aea0,'children':(0x0,a0_0x7e205c['jsx'])('div',{'ref':_0x34aa14,'style':_0xa2863c,'children':_0xe02409['label']})}),_0xe02409['description']?(0x0,a0_0x7e205c['jsx'])('div',{'className':'mt-inputfield-subtitle\x20'+_0xe02409['descriptionClassName'],'children':_0xe02409['description']}):(0x0,a0_0x7e205c['jsx'])(a0_0x7e205c['Fragment'],{}),_0xe02409['children']]});}function a0_0x19d43(_0x336a79){return a0_0x43e3d6(_0x336a79);}exports['InputFieldLeg']=a0_0x19d43;
|
package/dist/MKPlayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x5a0dfe=this&&this['__importDefault']||function(_0x3eb55c){return _0x3eb55c&&_0x3eb55c['__esModule']?_0x3eb55c:{'default':_0x3eb55c};};const a0_0x384201={};a0_0x384201['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x384201),exports['MKPlayer']=void 0x0;const a0_0x1d44c0=require('react/jsx-runtime'),a0_0x26623f=a0_0x5a0dfe(require('react')),a0_0x1fbdbb=require('./DateUtil'),a0_0x289e1f=require('./logger'),a0_0x462a16=require('mjstl'),a0_0x331797={};a0_0x331797['1']=0x1,a0_0x331797['2']=0x2,a0_0x331797['3']=0x3,a0_0x331797['5']=0x5,a0_0x331797['10']=0xa,a0_0x331797['25']=0x19;const a0_0x256463=a0_0x331797,a0_0x41e275={};a0_0x41e275['-1']=-0x1,a0_0x41e275['2']=0x2,a0_0x41e275['5']=0x5,a0_0x41e275['10']=0xa,a0_0x41e275['15']=0xf,a0_0x41e275['25']=0x19,a0_0x41e275['50']=0x32,a0_0x41e275['100']=0x64;const a0_0x22a7d4=a0_0x41e275;function a0_0x5cb788(_0x388534,_0x211585,_0x3cdc6a,_0x4e1010){const _0x18f187=_0x3cdc6a-_0x388534,_0x383649=_0x4e1010-_0x211585,_0x2a130d=Math['atan'](_0x18f187/_0x383649);let _0x17e082=_0x2a130d*0xb4/Math['PI'];return _0x17e082=0xb4-_0x17e082,(_0x18f187>0x0&&_0x383649>0x0||_0x18f187<0x0&&_0x383649>0x0)&&(_0x17e082=_0x17e082+0xb4),_0x17e082=_0x17e082+0x5a,_0x17e082;}function a0_0x18a18e({..._0x473f16}){const _0x5ba756=Number(a0_0x22a7d4[_0x473f16['trackSize']])||0x5,_0x58bb09=_0x5ba756<0x0,_0x3a54c1=a0_0x26623f['default']['useRef'](0x0),_0x38e40c=a0_0x26623f['default']['useRef'](0x1),_0x3ab2f7=a0_0x26623f['default']['useRef'](0x0),_0x3cda88=a0_0x26623f['default']['useRef']({}),_0x10998d=a0_0x26623f['default']['useRef']([]),_0x54aab5=a0_0x26623f['default']['useRef'](0x0),_0x59fb53=a0_0x26623f['default']['useRef'](-0x1),_0x2ed4f8=a0_0x26623f['default']['useRef'](null),_0x443a43=a0_0x26623f['default']['useRef'](null),_0x329899=a0_0x26623f['default']['useRef'](null),_0x58d286=a0_0x26623f['default']['useRef'](null),_0x25a7c2=a0_0x26623f['default']['useRef'](null),_0x5a60fd=a0_0x26623f['default']['useRef'](null),_0x13b3e9=a0_0x26623f['default']['useRef'](null),_0x4532e3=a0_0x26623f['default']['useRef'](null),_0x1d868b=a0_0x26623f['default']['useState'](),_0x38f3dc=a0_0x26623f['default']['useRef'](-0x1),_0xb50d51=a0_0x26623f['default']['useRef'](![]),_0x10b397=a0_0x26623f['default']['useRef'](null);function _0x4603e5(){_0x1d868b[0x1](new Date()['getTime']());}function _0x59876a(){const _0xda656=_0x58d286['current']['getBoundingClientRect'](),_0x4b7c83=_0xda656['width'],_0x49101f=_0xda656['height'],_0x39f066=Number(_0x58d286['current']['value']),_0x2e0610=Number(_0x58d286['current']['max']),_0x857ad1=Number(_0x58d286['current']['min']),_0x4e8c0e=_0xda656['left']+_0x4b7c83*(_0x39f066-_0x857ad1)/(_0x2e0610-_0x857ad1),_0x57435b=0x19,_0x1a8265=0x19,_0x1035ec=_0x4e8c0e+_0x57435b/0x2,_0x48301a=_0xda656['top']+_0x49101f/0x2,_0x1271a3={};return _0x1271a3['thumbCenterX']=_0x1035ec,_0x1271a3['thumbCenterY']=_0x48301a,_0x1271a3;}function _0x20389c(){const _0x5879c4=_0x59876a();_0x25a7c2['current']['style']['position']='absolute',_0x25a7c2['current']['style']['left']=_0x5879c4['thumbCenterX']+'px',_0x25a7c2['current']['style']['top']=_0x5879c4['thumbCenterY']+'px',_0x25a7c2['current']['style']['transform']='translateX(-50%)',_0x25a7c2['current']['innerText']=_0x443a43['current']['innerText'];}function _0x129eed(_0x55e54c){try{const _0x484b82=a0_0x462a16['mtl']['Geo']['calcBounds'](_0x55e54c);_0x473f16['onBounds']&&_0x473f16['onBounds'](_0x484b82);}catch(_0x14074a){}}async function _0xc77d1e(){_0xb50d51['current']=!![],_0x54aab5['current']=0x0,_0x59fb53['current']=-0x1,_0x38f3dc['current']=-0x1,_0x58d286['current']['value']='0',_0x3cda88['current']={};const _0x3d7ca0=[];let _0x325280,_0xf3125b;try{_0x325280=a0_0x1fbdbb['DateUtil']['new']()['setDateInputValue'](_0x473f16['startDate']),_0xf3125b=a0_0x1fbdbb['DateUtil']['new']()['setDateInputValue'](_0x473f16['endDate']);const _0x210445=a0_0x1fbdbb['DateUtil']['diffSecs'](_0x473f16['startDate'],_0x473f16['endDate'],!![]),_0x492544=[],_0x570350=[],_0x26661e={};for(let _0x57a325=0x0;_0x57a325<_0x210445;_0x57a325++){_0x26661e[_0x325280['cpy']()['addSecs'](_0x57a325)['startOfSeconds']()['toIsoDate']()]=[];}_0x473f16['data']?.['orders']?.['sfEach'](_0x389ffa=>{const _0x32db9e=_0x389ffa['actionsHistory'][0x0]['time'];let _0x1d4660;for(let _0x34be5b=0x0;_0x34be5b<_0x389ffa['actionsHistory']?.['length'];_0x34be5b++){_0x1d4660=_0x34be5b<_0x389ffa['actionsHistory']['length']-0x1?_0x389ffa['actionsHistory'][_0x34be5b+0x1]['time']:_0xf3125b['toIsoDate']();const _0x5bf1bf=_0x389ffa['actionsHistory'][_0x34be5b],_0x409312={..._0x389ffa,..._0x5bf1bf};_0x409312['toTime']=_0x1d4660,_0x409312['submitDate']=_0x32db9e;const _0x3e5467=_0x409312;if(_0x5bf1bf['status']==='DELIVERED'||_0x5bf1bf['status']==='CANCELLED'||_0x5bf1bf['status']==='DELIVERY_FAILED'){_0x3e5467['toTime']=a0_0x1fbdbb['DateUtil']['new']()['setDate'](new Date(_0x3e5467['time']))['addMins'](0x1)['toDate']()['toISOString'](),_0x492544['push'](_0x3e5467);break;}!(_0x5bf1bf['status']==='CANCELLED'||_0x5bf1bf['status']==='DELIVERY_FAILED')&&_0x492544['push'](_0x3e5467),_0x1d4660=_0x3e5467['time'];}_0x3d7ca0['push'](a0_0x462a16['mtl']['Geo']['mcoord'](_0x389ffa['storeLatitude'],_0x389ffa['storeLongitude']));}),_0x473f16['data']?.['drivers']?.['sfEach'](_0x2969d4=>{if(_0x2969d4['actions']?.['length']){let _0x4c1203;_0x2969d4['actions']?.['sfEach']((_0x428734,_0x9253d)=>{_0x4c1203=_0x9253d<_0x2969d4['actions']['length']-0x1?_0x2969d4['actions'][_0x9253d+0x1]['time']:_0xf3125b['toIsoDate']();const _0x17cca0={};_0x17cca0['driverId']=_0x2969d4['id'],_0x17cca0['firstName']=_0x2969d4['firstName'],_0x17cca0['lastName']=_0x2969d4['lastName'],_0x17cca0['storeChainId']=_0x428734['storeChainId'],_0x17cca0['storeChainName']=_0x428734['storeChainName'],_0x17cca0['driverActionType']=_0x428734['driverActionType'],_0x17cca0['toTime']=_0x4c1203,_0x17cca0['time']=_0x428734['time'];const _0x210129=_0x17cca0;_0x570350['push'](_0x210129);});};if(_0x2969d4['locations']?.['length']){let _0x3131d3=_0x2969d4['locations'][0x0]['time'];_0x2969d4['locations']?.['sfEach']((_0x14331a,_0x4e3856)=>{const _0x217d7c=a0_0x1fbdbb['DateUtil']['new']()['setIsoDate'](_0x14331a['time'])['startOfSeconds'](),_0x26073a={'driverId':_0x2969d4['id'],'firstName':_0x2969d4['firstName'],'lastName':_0x2969d4['lastName'],'lat':_0x14331a['lat'],'lng':_0x14331a['lon'],'preTime':_0x3131d3,'time':_0x217d7c['toTime']()};_0x3131d3=_0x26073a['time'],_0x26661e[_0x217d7c['toIsoDate']()]['push'](_0x26073a),_0x3d7ca0['push'](a0_0x462a16['mtl']['Geo']['mcoord'](_0x14331a['lat'],_0x14331a['lon']));});}});const _0x7e8de=(_0x294a11,_0x40f721,_0x4bf943)=>{const _0x2deddb=new Date(_0x40f721),_0x157263=new Date(_0x4bf943);return _0x2deddb<=_0x294a11&&_0x294a11<_0x157263;};for(let _0x19f87d=0x0;_0x19f87d<_0x210445;_0x19f87d++){const _0x209e6c=_0x325280['cpy']()['addSecs'](_0x19f87d)['startOfSeconds'](),_0x218126=_0x209e6c['toIsoDate'](),_0x5edbf3=_0x492544['sfFilter'](_0x326c8c=>_0x7e8de(_0x209e6c['toTime'](),_0x326c8c['time'],_0x326c8c['toTime'])),_0x3e3d22=_0x570350['sfFilter'](_0x517185=>_0x7e8de(_0x209e6c['toTime'](),_0x517185['time'],_0x517185['toTime'])),_0x27fddc=_0x26661e[_0x218126],_0x47caf4={};_0x47caf4['orders']=_0x5edbf3,_0x47caf4['locations']=_0x27fddc,_0x47caf4['actions']=_0x3e3d22,_0x3cda88['current'][_0x218126]=_0x47caf4;}_0x54aab5['current']=_0x210445,_0x10998d['current']=Object['keys'](_0x3cda88['current']);}catch(_0x1aa41a){a0_0x289e1f['logger']['log']('UNKNOWN');}_0xb50d51['current']=![],_0x2ed4f8['current']['innerText']=_0x325280?_0x325280['strTime']():a0_0x1fbdbb['DateUtil']['new']()['startOfDay']()['strTime'](),_0x443a43['current']['innerText']=_0x325280['cpy']()['strTime'](),_0x329899['current']['innerText']=_0xf3125b?_0xf3125b['strTime']():a0_0x1fbdbb['DateUtil']['new']()['startOfDay']()['strTime'](),_0x20389c(),_0x4603e5(),_0x129eed(_0x3d7ca0);}function _0x35d5ab(_0x505a69,_0x111924){_0x59fb53['current']=_0x505a69-0x1,_0x58d286['current']['value']=_0x505a69-0x1,_0x443a43['current']['innerText']=a0_0x1fbdbb['DateUtil']['new']()['setDateInputValue'](_0x473f16['startDate'])['addSecs'](_0x505a69)['strTime']();const _0x43836c=Number(_0x58d286['current']['value'])/Number(_0x58d286['current']['max'])*0x64;_0x58d286['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x43836c+'%,\x20#ccc\x20'+_0x43836c+'%)';}function _0x57c719(_0x22d928,_0x2af28d,_0x198e25){const _0x584964=_0x3cda88['current'][_0x22d928];_0x473f16['onMove'](_0x584964['orders'],_0x584964['actions'],_0x584964['locations']);}function _0x262fad(_0x13d67d){try{if(_0x59fb53['current']>=_0x54aab5['current']-0x1){_0x3a54c1['current']=0x0,_0x4603e5();return;}const _0x8d8a57=_0x59fb53['current']+0x1;let _0x27b314=_0x59fb53['current']<0x0?0x1:_0x59fb53['current']+0x1+_0x13d67d;_0x27b314=_0x27b314>_0x54aab5['current']-0x1?_0x54aab5['current']:_0x27b314;const _0x313b01=_0x38f3dc['current'];_0x27b314-_0x38f3dc['current']>=_0x5ba756&&(_0x38f3dc['current']=_0x27b314-_0x5ba756);const _0x433ce4=_0x10998d['current']['slice'](_0x8d8a57,_0x27b314),_0x5decb0=_0x10998d['current']['slice'](_0x313b01,_0x38f3dc['current']);_0x35d5ab(_0x27b314,_0x433ce4[0x0]),_0x57c719(_0x433ce4[_0x433ce4['length']-0x1],_0x433ce4,_0x5decb0),_0x20389c();}catch(_0x38e51b){a0_0x289e1f['logger']['log']('UNKNOWN',_0x38e51b);}}function _0x1f50b9(){_0x3a54c1['current']=0x0,_0x58d286['current']['value']='0',_0xb50d51['current']=!![],_0x4603e5(),window?.['clearTimeout'](_0x10b397['current']),_0x10b397['current']=setTimeout(()=>{_0xc77d1e();},0x9c4);}function _0x587cd1(){_0x3a54c1['current']=0x1,_0x59fb53['current']>=_0x54aab5['current']-0x1&&(_0x59fb53['current']=-0x1),_0x59fb53['current']<0x0&&(_0x38f3dc['current']=0x0,_0x473f16['onStartReplay']()),_0x4603e5();}function _0x7542c2(){_0x3a54c1['current']=0x2,_0x4603e5();}function _0x1cacdf(_0x2acca0){_0x38e40c['current']=Number(a0_0x256463[_0x2acca0['target']['value']])||0x1,_0x4603e5();try{_0x473f16['onChangeSpeed']&&_0x473f16['onChangeSpeed'](_0x38e40c['current']);}catch(_0x3924d5){}}function _0x198b51(){_0x3ab2f7['current']=0x1,Boolean(window)&&clearTimeout(_0x13b3e9['current']),_0x4603e5();}function _0x32ee5c(){Boolean(window)&&(_0x13b3e9['current']=setTimeout(()=>{_0x3ab2f7['current']=0x0,clearTimeout(_0x13b3e9['current']);},0x1f4)),_0x4603e5();}function _0x24b7a8(_0x13c535){try{_0x198b51(),_0x58d286['current']['value']=_0x13c535['target']['value'];try{_0x473f16['onChangeRange']&&_0x473f16['onChangeRange']();}catch(_0x2aea64){}Boolean(window)&&(clearTimeout(_0x5a60fd['current']),_0x5a60fd['current']=setTimeout(()=>{const _0x15a94f=Number(_0x58d286['current']['value']),_0x4032de=_0x10998d['current'],_0x53ada5=_0x4032de[_0x15a94f],_0xcc8f54=_0x15a94f;let _0x5dc547=[],_0x558b88=[];if(_0x58bb09)_0x15a94f>_0x59fb53['current']&&(_0x5dc547=_0x4032de['slice'](_0x59fb53['current']+0x1,_0xcc8f54)),_0x15a94f<_0x59fb53['current']&&(_0x558b88=_0x4032de['slice'](_0xcc8f54,_0x59fb53['current']+0x1));else{const _0x598aca=_0x11ee91=>_0x11ee91<0x0?0x0:_0x11ee91,_0x28d887=_0x598aca(_0x38f3dc['current']),_0xde3283=_0x598aca(_0x59fb53['current']+0x1),_0x3ed323=_0x598aca(_0xcc8f54+0x1-_0x5ba756),_0x10163e=_0x598aca(_0xcc8f54+0x1);_0x38f3dc['current']=_0x3ed323;if(_0x28d887<_0x3ed323&&_0x3ed323<_0xde3283)_0x5dc547=_0x4032de['slice'](_0xde3283,_0x10163e),_0x558b88=_0x4032de['slice'](_0x28d887,_0x3ed323);else _0x28d887<_0x10163e&&_0x10163e<_0xde3283?(_0x5dc547=_0x4032de['slice'](_0x3ed323,_0x28d887),_0x558b88=_0x4032de['slice'](_0x10163e,_0xde3283)):(_0x5dc547=_0x4032de['slice'](_0x3ed323,_0x10163e),_0x558b88=_0x4032de['slice'](_0x28d887,_0xde3283));_0x38f3dc['current']=_0x3ed323;}_0x57c719(_0x53ada5,_0x5dc547,_0x558b88),_0x35d5ab(_0x15a94f+0x1,_0x53ada5);},0x1f4));}catch(_0x7d8e73){a0_0x289e1f['logger']['log']('UNKNOWN');}}a0_0x26623f['default']['useEffect'](()=>{_0x1f50b9();},[_0x473f16['updateTime'],_0x5ba756]),a0_0x26623f['default']['useEffect'](()=>{return clearInterval(_0x4532e3['current']),_0x4532e3['current']=setInterval(()=>{_0x3a54c1['current']===0x1&&!_0x3ab2f7['current']&&_0x54aab5['current']&&_0x262fad(0x1);},Math['floor'](0x3e8/_0x38e40c['current'])),()=>{clearInterval(_0x4532e3['current']);};},[_0x38e40c['current']]);const _0x153e29={};_0x153e29['width']='100%',_0x153e29['height']='100%',_0x153e29['display']='flex',_0x153e29['flexDirection']='column';const _0x58baf5={};_0x58baf5['width']='100%',_0x58baf5['height']='100%',_0x58baf5['position']='relative';const _0x21e30b={};_0x21e30b['style']=_0x58baf5,_0x21e30b['children']=_0x473f16['children'];const _0xe3bb7a={};_0xe3bb7a['width']='100%',_0xe3bb7a['display']='flex',_0xe3bb7a['flexDirection']='column',_0xe3bb7a['position']='relative';const _0x2d6d41={};_0x2d6d41['type']='range',_0x2d6d41['className']='muplayer-range-input',_0x2d6d41['ref']=_0x58d286,_0x2d6d41['min']=0x0,_0x2d6d41['max']=_0x54aab5['current']-0x1,_0x2d6d41['onMouseDown']=_0x198b51,_0x2d6d41['onMouseUp']=_0x32ee5c,_0x2d6d41['onBlur']=_0x32ee5c,_0x2d6d41['onChange']=_0x24b7a8,_0x2d6d41['onTouchStart']=_0x198b51,_0x2d6d41['onTouchCancel']=_0x32ee5c;const _0x4387d1={};_0x4387d1['ref']=_0x25a7c2;const _0x3e283f={};_0x3e283f['width']='100%',_0x3e283f['display']='flex',_0x3e283f['flexDirection']='row',_0x3e283f['alignItems']='center',_0x3e283f['gap']='0.25rem';const _0x41beda={};_0x41beda['width']='18px',_0x41beda['height']='18px',_0x41beda['border']='4px\x20solid\x20#ccc',_0x41beda['borderTop']='4px\x20solid\x20#3498db',_0x41beda['borderRadius']='50%',_0x41beda['animation']='spinner-spin-mkplayyer\x201s\x20linear\x20infinite',_0x41beda['margin']='5px\x2010px\x20auto';const _0x4c5834={};_0x4c5834['style']=_0x41beda;const _0x1a4517={};_0x1a4517['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 _0x573fd4={};_0x573fd4['width']='100%',_0x573fd4['display']='flex',_0x573fd4['flexDirection']='row',_0x573fd4['alignItems']='center',_0x573fd4['justifyContent']='space-between',_0x573fd4['flexWrap']='wrap',_0x573fd4['gap']='0.5rem',_0x573fd4['fontSize']='0.875rem',_0x573fd4['lineHeight']='1.25rem';const _0x479601={};_0x479601['display']='flex',_0x479601['flexDirection']='row',_0x479601['alignItems']='center',_0x479601['gap']='0.25rem';const _0x13ef45={};_0x13ef45['fontWeight']='500';const _0x3aeb28={};_0x3aeb28['ref']=_0x443a43,_0x3aeb28['style']=_0x13ef45,_0x3aeb28['children']='00:00:00';const _0x9ae45f={};_0x9ae45f['children']='-';const _0x467189={};_0x467189['ref']=_0x2ed4f8,_0x467189['children']='00:00:00';const _0x54ac42={};_0x54ac42['children']='-';const _0x5cfca3={};_0x5cfca3['ref']=_0x329899,_0x5cfca3['children']='00:10:00';const _0x4941f6={};_0x4941f6['width']='5rem',_0x4941f6['minHeight']=0x21,_0x4941f6['height']=0x21,_0x4941f6['borderRadius']=0x5;const _0x13ee4a={};_0x13ee4a['value']=0x1,_0x13ee4a['children']='x1';const _0x47a285={};_0x47a285['value']=0x2,_0x47a285['children']='x2';const _0x2f210c={};_0x2f210c['value']=0x3,_0x2f210c['children']='x3';const _0x2a10ae={};_0x2a10ae['value']=0x5,_0x2a10ae['children']='x5';const _0x93e3e7={};_0x93e3e7['value']=0xa,_0x93e3e7['children']='10X';const _0x1aa8dc={};return _0x1aa8dc['value']=0x19,_0x1aa8dc['children']='15X',(0x0,a0_0x1d44c0['jsxs'])('div',{'style':_0x153e29,'children':[(0x0,a0_0x1d44c0['jsx'])('div',_0x21e30b),(0x0,a0_0x1d44c0['jsxs'])('div',{'style':_0xe3bb7a,'children':[(0x0,a0_0x1d44c0['jsx'])('input',_0x2d6d41),(0x0,a0_0x1d44c0['jsx'])('span',_0x4387d1),(0x0,a0_0x1d44c0['jsxs'])('div',{'style':_0x3e283f,'children':[_0xb50d51['current']?(0x0,a0_0x1d44c0['jsxs'])('div',{'children':[(0x0,a0_0x1d44c0['jsx'])('div',_0x4c5834),(0x0,a0_0x1d44c0['jsx'])('style',_0x1a4517)]}):(0x0,a0_0x1d44c0['jsx'])(a0_0x1d44c0['Fragment'],{}),(0x0,a0_0x1d44c0['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x3a54c1['current']===0x1||!_0x54aab5['current']||_0xb50d51['current'],'onClick':_0x587cd1,'children':'▶'}),(0x0,a0_0x1d44c0['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x3a54c1['current']===0x0||_0x3a54c1['current']===0x2||_0xb50d51['current'],'onClick':_0x7542c2,'children':'⏸'}),(0x0,a0_0x1d44c0['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x3a54c1['current']===0x0||_0xb50d51['current'],'onClick':_0x1f50b9,'children':'⏹︎'}),(0x0,a0_0x1d44c0['jsx'])('div',{'style':_0x573fd4,'children':(0x0,a0_0x1d44c0['jsxs'])('div',{'style':_0x479601,'children':[(0x0,a0_0x1d44c0['jsx'])('div',_0x3aeb28),(0x0,a0_0x1d44c0['jsx'])('div',_0x9ae45f),'[',(0x0,a0_0x1d44c0['jsx'])('div',_0x467189),(0x0,a0_0x1d44c0['jsx'])('div',_0x54ac42),(0x0,a0_0x1d44c0['jsx'])('div',_0x5cfca3),']']})}),(0x0,a0_0x1d44c0['jsxs'])('select',{'style':_0x4941f6,'value':_0x38e40c['current'],'onChange':_0x1cacdf,'children':[(0x0,a0_0x1d44c0['jsx'])('option',_0x13ee4a),(0x0,a0_0x1d44c0['jsx'])('option',_0x47a285),(0x0,a0_0x1d44c0['jsx'])('option',_0x2f210c),(0x0,a0_0x1d44c0['jsx'])('option',_0x2a10ae),(0x0,a0_0x1d44c0['jsx'])('option',_0x93e3e7),(0x0,a0_0x1d44c0['jsx'])('option',_0x1aa8dc)]})]})]})]});}function a0_0x10ef2f(_0x34b741){return a0_0x18a18e(_0x34b741);}exports['MKPlayer']=a0_0x10ef2f;
|
|
1
|
+
'use strict';var a0_0x2cd317=this&&this['__importDefault']||function(_0x14ae2a){return _0x14ae2a&&_0x14ae2a['__esModule']?_0x14ae2a:{'default':_0x14ae2a};};const a0_0x5b83ce={};a0_0x5b83ce['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5b83ce),exports['MKPlayer']=void 0x0;const a0_0x1f34c9=require('react/jsx-runtime'),a0_0x1e6c05=a0_0x2cd317(require('react')),a0_0x25038d=require('./DateUtil'),a0_0x4b0b8c=require('./logger'),a0_0x2d0bdc=require('mjstl'),a0_0x120e91={};a0_0x120e91['1']=0x1,a0_0x120e91['2']=0x2,a0_0x120e91['3']=0x3,a0_0x120e91['5']=0x5,a0_0x120e91['10']=0xa,a0_0x120e91['25']=0x19;const a0_0x3f5da1=a0_0x120e91,a0_0x334c5d={};a0_0x334c5d['-1']=-0x1,a0_0x334c5d['2']=0x2,a0_0x334c5d['5']=0x5,a0_0x334c5d['10']=0xa,a0_0x334c5d['15']=0xf,a0_0x334c5d['25']=0x19,a0_0x334c5d['50']=0x32,a0_0x334c5d['100']=0x64;const a0_0x323d33=a0_0x334c5d;function a0_0xa130ca(_0x4146dc,_0xedca53,_0x4aa731,_0x5eefb0){const _0x383945=_0x4aa731-_0x4146dc,_0x4e3b30=_0x5eefb0-_0xedca53,_0x33f35a=Math['atan'](_0x383945/_0x4e3b30);let _0x526e63=_0x33f35a*0xb4/Math['PI'];return _0x526e63=0xb4-_0x526e63,(_0x383945>0x0&&_0x4e3b30>0x0||_0x383945<0x0&&_0x4e3b30>0x0)&&(_0x526e63=_0x526e63+0xb4),_0x526e63=_0x526e63+0x5a,_0x526e63;}function a0_0x1f83e6({..._0xf7ba5}){const _0x434ecc=Number(a0_0x323d33[_0xf7ba5['trackSize']])||0x5,_0x551c01=_0x434ecc<0x0,_0x26d906=a0_0x1e6c05['default']['useRef'](0x0),_0xb12078=a0_0x1e6c05['default']['useRef'](0x1),_0x40c0cd=a0_0x1e6c05['default']['useRef'](0x0),_0x6f6437=a0_0x1e6c05['default']['useRef']({}),_0xf6d070=a0_0x1e6c05['default']['useRef']([]),_0x2ce038=a0_0x1e6c05['default']['useRef'](0x0),_0x2a2bc2=a0_0x1e6c05['default']['useRef'](-0x1),_0x44fffa=a0_0x1e6c05['default']['useRef'](null),_0x44a03a=a0_0x1e6c05['default']['useRef'](null),_0x5cbb65=a0_0x1e6c05['default']['useRef'](null),_0x360e8e=a0_0x1e6c05['default']['useRef'](null),_0x33538c=a0_0x1e6c05['default']['useRef'](null),_0x5085ed=a0_0x1e6c05['default']['useRef'](null),_0x1e644c=a0_0x1e6c05['default']['useRef'](null),_0x4bf1d7=a0_0x1e6c05['default']['useRef'](null),_0x3fd8a2=a0_0x1e6c05['default']['useState'](),_0x47b28a=a0_0x1e6c05['default']['useRef'](-0x1),_0x72ccd2=a0_0x1e6c05['default']['useRef'](![]),_0x1bcb88=a0_0x1e6c05['default']['useRef'](null);function _0x31498c(){_0x3fd8a2[0x1](new Date()['getTime']());}function _0x184156(){const _0x3ef354=_0x360e8e['current']['getBoundingClientRect'](),_0x1b0d69=_0x3ef354['width'],_0x573ed6=_0x3ef354['height'],_0xb34aa8=Number(_0x360e8e['current']['value']),_0x400f88=Number(_0x360e8e['current']['max']),_0x1ab4da=Number(_0x360e8e['current']['min']),_0x1b1df7=_0x3ef354['left']+_0x1b0d69*(_0xb34aa8-_0x1ab4da)/(_0x400f88-_0x1ab4da),_0x5705fb=0x19,_0x5555c6=0x19,_0x1d01b3=_0x1b1df7+_0x5705fb/0x2,_0x38383d=_0x3ef354['top']+_0x573ed6/0x2,_0x19bfb3={};return _0x19bfb3['thumbCenterX']=_0x1d01b3,_0x19bfb3['thumbCenterY']=_0x38383d,_0x19bfb3;}function _0x2c22ea(){const _0x4de222=_0x184156();_0x33538c['current']['style']['position']='absolute',_0x33538c['current']['style']['left']=_0x4de222['thumbCenterX']+'px',_0x33538c['current']['style']['top']=_0x4de222['thumbCenterY']+'px',_0x33538c['current']['style']['transform']='translateX(-50%)',_0x33538c['current']['innerText']=_0x44a03a['current']['innerText'];}function _0xa21c98(_0x488955){try{const _0x5677d5=a0_0x2d0bdc['mtl']['Geo']['calcBounds'](_0x488955);_0xf7ba5['onBounds']&&_0xf7ba5['onBounds'](_0x5677d5);}catch(_0x49e80c){}}async function _0x16b8eb(){_0x72ccd2['current']=!![],_0x2ce038['current']=0x0,_0x2a2bc2['current']=-0x1,_0x47b28a['current']=-0x1,_0x360e8e['current']['value']='0',_0x6f6437['current']={};const _0x50e407=[];let _0x5a86bc,_0x37a504;try{_0x5a86bc=a0_0x25038d['DateUtil']['new']()['setDateInputValue'](_0xf7ba5['startDate']),_0x37a504=a0_0x25038d['DateUtil']['new']()['setDateInputValue'](_0xf7ba5['endDate']);const _0x108511=a0_0x25038d['DateUtil']['diffSecs'](_0xf7ba5['startDate'],_0xf7ba5['endDate'],!![]),_0x1f2c6f=[],_0x5a161a=[],_0x30eb8b={};for(let _0x54618a=0x0;_0x54618a<_0x108511;_0x54618a++){_0x30eb8b[_0x5a86bc['cpy']()['addSecs'](_0x54618a)['startOfSeconds']()['toIsoDate']()]=[];}_0xf7ba5['data']?.['orders']?.['sfEach'](_0x438357=>{const _0x5d5380=_0x438357['actionsHistory'][0x0]['time'];let _0xea4d41;for(let _0x2de050=0x0;_0x2de050<_0x438357['actionsHistory']?.['length'];_0x2de050++){_0xea4d41=_0x2de050<_0x438357['actionsHistory']['length']-0x1?_0x438357['actionsHistory'][_0x2de050+0x1]['time']:_0x37a504['toIsoDate']();const _0x512b82=_0x438357['actionsHistory'][_0x2de050],_0x329162={..._0x438357,..._0x512b82};_0x329162['toTime']=_0xea4d41,_0x329162['submitDate']=_0x5d5380;const _0x4e1036=_0x329162;if(_0x512b82['status']==='DELIVERED'||_0x512b82['status']==='CANCELLED'||_0x512b82['status']==='DELIVERY_FAILED'){_0x4e1036['toTime']=a0_0x25038d['DateUtil']['new']()['setDate'](new Date(_0x4e1036['time']))['addMins'](0x1)['toDate']()['toISOString'](),_0x1f2c6f['push'](_0x4e1036);break;}!(_0x512b82['status']==='CANCELLED'||_0x512b82['status']==='DELIVERY_FAILED')&&_0x1f2c6f['push'](_0x4e1036),_0xea4d41=_0x4e1036['time'];}_0x50e407['push'](a0_0x2d0bdc['mtl']['Geo']['mcoord'](_0x438357['storeLatitude'],_0x438357['storeLongitude']));}),_0xf7ba5['data']?.['drivers']?.['sfEach'](_0x23ab7f=>{if(_0x23ab7f['actions']?.['length']){let _0x4f8fe3;_0x23ab7f['actions']?.['sfEach']((_0x9f8bd1,_0x42f56d)=>{_0x4f8fe3=_0x42f56d<_0x23ab7f['actions']['length']-0x1?_0x23ab7f['actions'][_0x42f56d+0x1]['time']:_0x37a504['toIsoDate']();const _0x49cbf2={};_0x49cbf2['driverId']=_0x23ab7f['id'],_0x49cbf2['firstName']=_0x23ab7f['firstName'],_0x49cbf2['lastName']=_0x23ab7f['lastName'],_0x49cbf2['storeChainId']=_0x9f8bd1['storeChainId'],_0x49cbf2['storeChainName']=_0x9f8bd1['storeChainName'],_0x49cbf2['driverActionType']=_0x9f8bd1['driverActionType'],_0x49cbf2['toTime']=_0x4f8fe3,_0x49cbf2['time']=_0x9f8bd1['time'];const _0x311570=_0x49cbf2;_0x5a161a['push'](_0x311570);});};if(_0x23ab7f['locations']?.['length']){let _0x441b70=_0x23ab7f['locations'][0x0]['time'];_0x23ab7f['locations']?.['sfEach']((_0x19f7a2,_0x305ce0)=>{const _0x5d68bf=a0_0x25038d['DateUtil']['new']()['setIsoDate'](_0x19f7a2['time'])['startOfSeconds'](),_0x5a3653={'driverId':_0x23ab7f['id'],'firstName':_0x23ab7f['firstName'],'lastName':_0x23ab7f['lastName'],'lat':_0x19f7a2['lat'],'lng':_0x19f7a2['lon'],'preTime':_0x441b70,'time':_0x5d68bf['toTime']()};_0x441b70=_0x5a3653['time'],_0x30eb8b[_0x5d68bf['toIsoDate']()]['push'](_0x5a3653),_0x50e407['push'](a0_0x2d0bdc['mtl']['Geo']['mcoord'](_0x19f7a2['lat'],_0x19f7a2['lon']));});}});const _0x2cb93e=(_0x38cacf,_0x2cb2e5,_0x4ec8e0)=>{const _0x19193b=new Date(_0x2cb2e5),_0x56c972=new Date(_0x4ec8e0);return _0x19193b<=_0x38cacf&&_0x38cacf<_0x56c972;};for(let _0x4d543b=0x0;_0x4d543b<_0x108511;_0x4d543b++){const _0x32b8d2=_0x5a86bc['cpy']()['addSecs'](_0x4d543b)['startOfSeconds'](),_0x30914a=_0x32b8d2['toIsoDate'](),_0x5ccc03=_0x1f2c6f['sfFilter'](_0x36fd6a=>_0x2cb93e(_0x32b8d2['toTime'](),_0x36fd6a['time'],_0x36fd6a['toTime'])),_0x1807ed=_0x5a161a['sfFilter'](_0x277776=>_0x2cb93e(_0x32b8d2['toTime'](),_0x277776['time'],_0x277776['toTime'])),_0x5630ca=_0x30eb8b[_0x30914a],_0x1a7056={};_0x1a7056['orders']=_0x5ccc03,_0x1a7056['locations']=_0x5630ca,_0x1a7056['actions']=_0x1807ed,_0x6f6437['current'][_0x30914a]=_0x1a7056;}_0x2ce038['current']=_0x108511,_0xf6d070['current']=Object['keys'](_0x6f6437['current']);}catch(_0x5c7119){a0_0x4b0b8c['logger']['log']('UNKNOWN');}_0x72ccd2['current']=![],_0x44fffa['current']['innerText']=_0x5a86bc?_0x5a86bc['strTime']():a0_0x25038d['DateUtil']['new']()['startOfDay']()['strTime'](),_0x44a03a['current']['innerText']=_0x5a86bc['cpy']()['strTime'](),_0x5cbb65['current']['innerText']=_0x37a504?_0x37a504['strTime']():a0_0x25038d['DateUtil']['new']()['startOfDay']()['strTime'](),_0x2c22ea(),_0x31498c(),_0xa21c98(_0x50e407);}function _0x1c52e4(_0x1f2099,_0x33aa3a){_0x2a2bc2['current']=_0x1f2099-0x1,_0x360e8e['current']['value']=_0x1f2099-0x1,_0x44a03a['current']['innerText']=a0_0x25038d['DateUtil']['new']()['setDateInputValue'](_0xf7ba5['startDate'])['addSecs'](_0x1f2099)['strTime']();const _0xf829a8=Number(_0x360e8e['current']['value'])/Number(_0x360e8e['current']['max'])*0x64;_0x360e8e['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0xf829a8+'%,\x20#ccc\x20'+_0xf829a8+'%)';}function _0x3ab35f(_0x5e2fe6,_0x112645,_0x17ff8c){const _0x526ca5=_0x6f6437['current'][_0x5e2fe6];_0xf7ba5['onMove'](_0x526ca5['orders'],_0x526ca5['actions'],_0x526ca5['locations']);}function _0x4c4c25(_0x20d1ad){try{if(_0x2a2bc2['current']>=_0x2ce038['current']-0x1){_0x26d906['current']=0x0,_0x31498c();return;}const _0x4fef24=_0x2a2bc2['current']+0x1;let _0x2c96bf=_0x2a2bc2['current']<0x0?0x1:_0x2a2bc2['current']+0x1+_0x20d1ad;_0x2c96bf=_0x2c96bf>_0x2ce038['current']-0x1?_0x2ce038['current']:_0x2c96bf;const _0x405468=_0x47b28a['current'];_0x2c96bf-_0x47b28a['current']>=_0x434ecc&&(_0x47b28a['current']=_0x2c96bf-_0x434ecc);const _0x58b287=_0xf6d070['current']['slice'](_0x4fef24,_0x2c96bf),_0xcfa0aa=_0xf6d070['current']['slice'](_0x405468,_0x47b28a['current']);_0x1c52e4(_0x2c96bf,_0x58b287[0x0]),_0x3ab35f(_0x58b287[_0x58b287['length']-0x1],_0x58b287,_0xcfa0aa),_0x2c22ea();}catch(_0x254672){a0_0x4b0b8c['logger']['log']('UNKNOWN',_0x254672);}}function _0x8990f7(){_0x26d906['current']=0x0,_0x360e8e['current']['value']='0',_0x72ccd2['current']=!![],_0x31498c(),window?.['clearTimeout'](_0x1bcb88['current']),_0x1bcb88['current']=setTimeout(()=>{_0x16b8eb();},0x9c4);}function _0x440136(){_0x26d906['current']=0x1,_0x2a2bc2['current']>=_0x2ce038['current']-0x1&&(_0x2a2bc2['current']=-0x1),_0x2a2bc2['current']<0x0&&(_0x47b28a['current']=0x0,_0xf7ba5['onStartReplay']()),_0x31498c();}function _0x17cf56(){_0x26d906['current']=0x2,_0x31498c();}function _0x2488f4(_0x5e68d0){_0xb12078['current']=Number(a0_0x3f5da1[_0x5e68d0['target']['value']])||0x1,_0x31498c();try{_0xf7ba5['onChangeSpeed']&&_0xf7ba5['onChangeSpeed'](_0xb12078['current']);}catch(_0x3b8b38){}}function _0x183c89(){_0x40c0cd['current']=0x1,Boolean(window)&&clearTimeout(_0x1e644c['current']),_0x31498c();}function _0x5d218a(){Boolean(window)&&(_0x1e644c['current']=setTimeout(()=>{_0x40c0cd['current']=0x0,clearTimeout(_0x1e644c['current']);},0x1f4)),_0x31498c();}function _0x3fde59(_0x53ac71){try{_0x183c89(),_0x360e8e['current']['value']=_0x53ac71['target']['value'];try{_0xf7ba5['onChangeRange']&&_0xf7ba5['onChangeRange']();}catch(_0x433c4d){}Boolean(window)&&(clearTimeout(_0x5085ed['current']),_0x5085ed['current']=setTimeout(()=>{const _0x440e38=Number(_0x360e8e['current']['value']),_0x904291=_0xf6d070['current'],_0xe27167=_0x904291[_0x440e38],_0x12aad5=_0x440e38;let _0x279b86=[],_0x2a8741=[];if(_0x551c01)_0x440e38>_0x2a2bc2['current']&&(_0x279b86=_0x904291['slice'](_0x2a2bc2['current']+0x1,_0x12aad5)),_0x440e38<_0x2a2bc2['current']&&(_0x2a8741=_0x904291['slice'](_0x12aad5,_0x2a2bc2['current']+0x1));else{const _0x29b7fd=_0x318429=>_0x318429<0x0?0x0:_0x318429,_0x2c41c3=_0x29b7fd(_0x47b28a['current']),_0x2204e2=_0x29b7fd(_0x2a2bc2['current']+0x1),_0x4fde36=_0x29b7fd(_0x12aad5+0x1-_0x434ecc),_0xf068ac=_0x29b7fd(_0x12aad5+0x1);_0x47b28a['current']=_0x4fde36;if(_0x2c41c3<_0x4fde36&&_0x4fde36<_0x2204e2)_0x279b86=_0x904291['slice'](_0x2204e2,_0xf068ac),_0x2a8741=_0x904291['slice'](_0x2c41c3,_0x4fde36);else _0x2c41c3<_0xf068ac&&_0xf068ac<_0x2204e2?(_0x279b86=_0x904291['slice'](_0x4fde36,_0x2c41c3),_0x2a8741=_0x904291['slice'](_0xf068ac,_0x2204e2)):(_0x279b86=_0x904291['slice'](_0x4fde36,_0xf068ac),_0x2a8741=_0x904291['slice'](_0x2c41c3,_0x2204e2));_0x47b28a['current']=_0x4fde36;}_0x3ab35f(_0xe27167,_0x279b86,_0x2a8741),_0x1c52e4(_0x440e38+0x1,_0xe27167);},0x1f4));}catch(_0x1e3af4){a0_0x4b0b8c['logger']['log']('UNKNOWN');}}a0_0x1e6c05['default']['useEffect'](()=>{_0x8990f7();},[_0xf7ba5['updateTime'],_0x434ecc]),a0_0x1e6c05['default']['useEffect'](()=>{return clearInterval(_0x4bf1d7['current']),_0x4bf1d7['current']=setInterval(()=>{_0x26d906['current']===0x1&&!_0x40c0cd['current']&&_0x2ce038['current']&&_0x4c4c25(0x1);},Math['floor'](0x3e8/_0xb12078['current'])),()=>{clearInterval(_0x4bf1d7['current']);};},[_0xb12078['current']]);const _0x4e4792={};_0x4e4792['width']='100%',_0x4e4792['height']='100%',_0x4e4792['display']='flex',_0x4e4792['flexDirection']='column';const _0x179814={};_0x179814['width']='100%',_0x179814['height']='100%',_0x179814['position']='relative';const _0x4b5341={};_0x4b5341['style']=_0x179814,_0x4b5341['children']=_0xf7ba5['children'];const _0x542161={};_0x542161['width']='100%',_0x542161['display']='flex',_0x542161['flexDirection']='column',_0x542161['position']='relative';const _0x2c5fa3={};_0x2c5fa3['type']='range',_0x2c5fa3['className']='muplayer-range-input',_0x2c5fa3['ref']=_0x360e8e,_0x2c5fa3['min']=0x0,_0x2c5fa3['max']=_0x2ce038['current']-0x1,_0x2c5fa3['onMouseDown']=_0x183c89,_0x2c5fa3['onMouseUp']=_0x5d218a,_0x2c5fa3['onBlur']=_0x5d218a,_0x2c5fa3['onChange']=_0x3fde59,_0x2c5fa3['onTouchStart']=_0x183c89,_0x2c5fa3['onTouchCancel']=_0x5d218a;const _0x3c5387={};_0x3c5387['ref']=_0x33538c;const _0x372ffa={};_0x372ffa['width']='100%',_0x372ffa['display']='flex',_0x372ffa['flexDirection']='row',_0x372ffa['alignItems']='center',_0x372ffa['gap']='0.25rem';const _0x5ef30f={};_0x5ef30f['width']='18px',_0x5ef30f['height']='18px',_0x5ef30f['border']='4px\x20solid\x20#ccc',_0x5ef30f['borderTop']='4px\x20solid\x20#3498db',_0x5ef30f['borderRadius']='50%',_0x5ef30f['animation']='spinner-spin-mkplayyer\x201s\x20linear\x20infinite',_0x5ef30f['margin']='5px\x2010px\x20auto';const _0x529193={};_0x529193['style']=_0x5ef30f;const _0x2127ed={};_0x2127ed['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 _0xc5d44c={};_0xc5d44c['width']='100%',_0xc5d44c['display']='flex',_0xc5d44c['flexDirection']='row',_0xc5d44c['alignItems']='center',_0xc5d44c['justifyContent']='space-between',_0xc5d44c['flexWrap']='wrap',_0xc5d44c['gap']='0.5rem',_0xc5d44c['fontSize']='0.875rem',_0xc5d44c['lineHeight']='1.25rem';const _0x52c0e9={};_0x52c0e9['display']='flex',_0x52c0e9['flexDirection']='row',_0x52c0e9['alignItems']='center',_0x52c0e9['gap']='0.25rem';const _0x59fb18={};_0x59fb18['fontWeight']='500';const _0x4d5b3b={};_0x4d5b3b['ref']=_0x44a03a,_0x4d5b3b['style']=_0x59fb18,_0x4d5b3b['children']='00:00:00';const _0x2e6f2f={};_0x2e6f2f['children']='-';const _0x2a54f6={};_0x2a54f6['ref']=_0x44fffa,_0x2a54f6['children']='00:00:00';const _0x3e5bf0={};_0x3e5bf0['children']='-';const _0xece158={};_0xece158['ref']=_0x5cbb65,_0xece158['children']='00:10:00';const _0x5f075b={};_0x5f075b['width']='5rem',_0x5f075b['minHeight']=0x21,_0x5f075b['height']=0x21,_0x5f075b['borderRadius']=0x5;const _0x132295={};_0x132295['value']=0x1,_0x132295['children']='x1';const _0x171b21={};_0x171b21['value']=0x2,_0x171b21['children']='x2';const _0x327495={};_0x327495['value']=0x3,_0x327495['children']='x3';const _0x10d9f5={};_0x10d9f5['value']=0x5,_0x10d9f5['children']='x5';const _0xb2829c={};_0xb2829c['value']=0xa,_0xb2829c['children']='10X';const _0x2528b8={};return _0x2528b8['value']=0x19,_0x2528b8['children']='15X',(0x0,a0_0x1f34c9['jsxs'])('div',{'style':_0x4e4792,'children':[(0x0,a0_0x1f34c9['jsx'])('div',_0x4b5341),(0x0,a0_0x1f34c9['jsxs'])('div',{'style':_0x542161,'children':[(0x0,a0_0x1f34c9['jsx'])('input',_0x2c5fa3),(0x0,a0_0x1f34c9['jsx'])('span',_0x3c5387),(0x0,a0_0x1f34c9['jsxs'])('div',{'style':_0x372ffa,'children':[_0x72ccd2['current']?(0x0,a0_0x1f34c9['jsxs'])('div',{'children':[(0x0,a0_0x1f34c9['jsx'])('div',_0x529193),(0x0,a0_0x1f34c9['jsx'])('style',_0x2127ed)]}):(0x0,a0_0x1f34c9['jsx'])(a0_0x1f34c9['Fragment'],{}),(0x0,a0_0x1f34c9['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x26d906['current']===0x1||!_0x2ce038['current']||_0x72ccd2['current'],'onClick':_0x440136,'children':'▶'}),(0x0,a0_0x1f34c9['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x26d906['current']===0x0||_0x26d906['current']===0x2||_0x72ccd2['current'],'onClick':_0x17cf56,'children':'⏸'}),(0x0,a0_0x1f34c9['jsx'])('button',{'className':'mt-mutbnc','disabled':_0x26d906['current']===0x0||_0x72ccd2['current'],'onClick':_0x8990f7,'children':'⏹︎'}),(0x0,a0_0x1f34c9['jsx'])('div',{'style':_0xc5d44c,'children':(0x0,a0_0x1f34c9['jsxs'])('div',{'style':_0x52c0e9,'children':[(0x0,a0_0x1f34c9['jsx'])('div',_0x4d5b3b),(0x0,a0_0x1f34c9['jsx'])('div',_0x2e6f2f),'[',(0x0,a0_0x1f34c9['jsx'])('div',_0x2a54f6),(0x0,a0_0x1f34c9['jsx'])('div',_0x3e5bf0),(0x0,a0_0x1f34c9['jsx'])('div',_0xece158),']']})}),(0x0,a0_0x1f34c9['jsxs'])('select',{'style':_0x5f075b,'value':_0xb12078['current'],'onChange':_0x2488f4,'children':[(0x0,a0_0x1f34c9['jsx'])('option',_0x132295),(0x0,a0_0x1f34c9['jsx'])('option',_0x171b21),(0x0,a0_0x1f34c9['jsx'])('option',_0x327495),(0x0,a0_0x1f34c9['jsx'])('option',_0x10d9f5),(0x0,a0_0x1f34c9['jsx'])('option',_0xb2829c),(0x0,a0_0x1f34c9['jsx'])('option',_0x2528b8)]})]})]})]});}function a0_0x24fc9b(_0x186420){return a0_0x1f83e6(_0x186420);}exports['MKPlayer']=a0_0x24fc9b;
|
package/dist/MUPlayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x44116d=this&&this['__createBinding']||(Object['create']?function(_0x4dd01c,_0x2ee0be,_0x3107d1,_0x1b66d7){if(_0x1b66d7===undefined)_0x1b66d7=_0x3107d1;var _0x2a1763=Object['getOwnPropertyDescriptor'](_0x2ee0be,_0x3107d1);if(!_0x2a1763||('get'in _0x2a1763?!_0x2ee0be['__esModule']:_0x2a1763['writable']||_0x2a1763['configurable'])){const _0x3b90a5={};_0x3b90a5['enumerable']=!![],_0x3b90a5['get']=function(){return _0x2ee0be[_0x3107d1];},_0x2a1763=_0x3b90a5;}Object['defineProperty'](_0x4dd01c,_0x1b66d7,_0x2a1763);}:function(_0xec044a,_0x1a18a0,_0x3eeddf,_0x36a619){if(_0x36a619===undefined)_0x36a619=_0x3eeddf;_0xec044a[_0x36a619]=_0x1a18a0[_0x3eeddf];}),a0_0x127c59=this&&this['__setModuleDefault']||(Object['create']?function(_0x26dc7c,_0x18fcc1){const _0x2e7abd={};_0x2e7abd['enumerable']=!![],_0x2e7abd['value']=_0x18fcc1,Object['defineProperty'](_0x26dc7c,'default',_0x2e7abd);}:function(_0x1c97d5,_0xa103c5){_0x1c97d5['default']=_0xa103c5;}),a0_0x4f4f37=this&&this['__importStar']||function(_0xd7b316){if(_0xd7b316&&_0xd7b316['__esModule'])return _0xd7b316;var _0x4b0f7={};if(_0xd7b316!=null){for(var _0x3384e2 in _0xd7b316)if(_0x3384e2!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0xd7b316,_0x3384e2))a0_0x44116d(_0x4b0f7,_0xd7b316,_0x3384e2);}return a0_0x127c59(_0x4b0f7,_0xd7b316),_0x4b0f7;};const a0_0x1e075d={};a0_0x1e075d['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1e075d),exports['MUPlayer']=void 0x0;const a0_0xede50f=require('react/jsx-runtime'),a0_0x132c18=a0_0x4f4f37(require('react')),a0_0x1ef24f=require('./DateUtil'),a0_0x553e99=require('./logger'),a0_0x1fd12a={};a0_0x1fd12a['1']=0x1,a0_0x1fd12a['2']=0x2,a0_0x1fd12a['3']=0x3,a0_0x1fd12a['5']=0x5,a0_0x1fd12a['10']=0xa,a0_0x1fd12a['25']=0x19;const a0_0x4868eb=a0_0x1fd12a,a0_0x4b7c9d={};a0_0x4b7c9d['-1']=-0x1,a0_0x4b7c9d['5']=0x5,a0_0x4b7c9d['10']=0xa,a0_0x4b7c9d['15']=0xf,a0_0x4b7c9d['25']=0x19,a0_0x4b7c9d['50']=0x32,a0_0x4b7c9d['100']=0x64;const a0_0x13ad56=a0_0x4b7c9d;function a0_0x46b2e5(_0x5720f1,_0x36b8d8=0x1){return _0x5720f1['toString']()['padStart'](_0x36b8d8,'0');}function a0_0x232b58(_0x5cfe74,_0x1b0d39,_0xccc0b9,_0x439266){const _0x12e1ff=_0xccc0b9-_0x5cfe74,_0x3499e7=_0x439266-_0x1b0d39,_0x2c4b75=Math['atan'](_0x12e1ff/_0x3499e7);let _0x2412b6=_0x2c4b75*0xb4/Math['PI'];return _0x2412b6=0xb4-_0x2412b6,(_0x12e1ff>0x0&&_0x3499e7>0x0||_0x12e1ff<0x0&&_0x3499e7>0x0)&&(_0x2412b6=_0x2412b6+0xb4),_0x2412b6=_0x2412b6+0x5a,_0x2412b6;}function a0_0x59cf63(_0x3d450f){return _0x3d450f*(Math['PI']/0xb4);}function a0_0x3525fc(_0x4813e6,_0x58c1fa,_0xd62e02,_0x5890c5){_0x4813e6=_0x4813e6||0x0,_0x58c1fa=_0x5890c5||0x0,_0xd62e02=_0xd62e02||0x0,_0x5890c5=_0x5890c5||0x0;var _0x27d2cb=0x18e3,_0x5910d2=a0_0x59cf63(_0xd62e02-_0x4813e6),_0x5ae4f6=a0_0x59cf63(_0x5890c5-_0x58c1fa),_0xc7cdb4=Math['sin'](_0x5910d2/0x2)*Math['sin'](_0x5910d2/0x2)+Math['cos'](a0_0x59cf63(_0x4813e6))*Math['cos'](a0_0x59cf63(_0xd62e02))*Math['sin'](_0x5ae4f6/0x2)*Math['sin'](_0x5ae4f6/0x2),_0x1faaa8=0x2*Math['atan2'](Math['sqrt'](_0xc7cdb4),Math['sqrt'](0x1-_0xc7cdb4)),_0x4d025c=_0x27d2cb*_0x1faaa8;return Math['abs'](_0x4d025c);}function a0_0x3ea3a2({track:track='point',..._0x5e8898}){const _0x4900e3=Number(a0_0x13ad56[_0x5e8898['trackSize']])||0x5,_0x5ebb0b=_0x4900e3<0x0,_0x26f57c=a0_0x132c18['useRef'](0x0),_0x4d6c8c=a0_0x132c18['useRef'](0x1),_0x3c0415=a0_0x132c18['useRef'](0x0),_0x3d30eb=a0_0x132c18['useRef']({}),_0x14c34b=a0_0x132c18['useRef']([]),_0x49c4b9=a0_0x132c18['useRef'](0x0),_0x120dd6=a0_0x132c18['useRef'](-0x1),_0x45ad6c=a0_0x132c18['useRef'](null),_0x55c2d6=a0_0x132c18['useRef'](null),_0x199bf6=a0_0x132c18['useRef'](null),_0x44c2bd=a0_0x132c18['useRef'](null),_0x4a032f=a0_0x132c18['useRef'](null),_0x396379=a0_0x132c18['useRef'](null),_0x45f6c1=a0_0x132c18['useRef'](null),_0x157166=a0_0x132c18['useRef'](null),_0x343608=a0_0x132c18['useRef'](null),_0xc1739e=a0_0x132c18['useRef'](null),_0xd747a3=a0_0x132c18['useRef'](null),_0x2c2807=a0_0x132c18['useState'](),_0x43c983=a0_0x132c18['useRef'](-0x1);function _0x31708d(){_0x2c2807[0x1](new Date()['getTime']());}function _0xae7718(){const _0x31fe3d=_0x45f6c1['current']['getBoundingClientRect'](),_0x1e2fbb=_0x31fe3d['width'],_0x44ae34=_0x31fe3d['height'],_0x5af03b=Number(_0x45f6c1['current']['value']),_0x529e16=Number(_0x45f6c1['current']['max']),_0x374f1d=Number(_0x45f6c1['current']['min']),_0x5da37b=_0x31fe3d['left']+_0x1e2fbb*(_0x5af03b-_0x374f1d)/(_0x529e16-_0x374f1d),_0x10e91a=0x19,_0x1cdad6=0x19,_0x56fbf5=_0x5da37b+_0x10e91a/0x2,_0x39ff19=_0x31fe3d['top']+_0x44ae34/0x2,_0x3d6596={};return _0x3d6596['thumbCenterX']=_0x56fbf5,_0x3d6596['thumbCenterY']=_0x39ff19,_0x3d6596;}function _0x5c66f5(){const _0xa6247b=_0xae7718();_0x157166['current']['style']['position']='absolute',_0x157166['current']['style']['left']=_0xa6247b['thumbCenterX']+'px',_0x157166['current']['style']['top']=_0xa6247b['thumbCenterY']+'px',_0x157166['current']['style']['transform']='translateX(-50%)',_0x157166['current']['innerText']=_0x55c2d6['current']['innerText'];}function _0x80210f(){_0x49c4b9['current']=0x0,_0x120dd6['current']=-0x1,_0x43c983['current']=-0x1,_0x45f6c1['current']['value']='0';let _0xa48e28,_0x107bb8;try{if(_0x5e8898['points']['length']){const _0x40c932=_0x5e8898['points']['sort']((_0x5e1891,_0x105d9a)=>new Date(_0x5e1891['time'])['getTime']()>new Date(_0x105d9a['time'])['getTime']()?0x1:0x1);_0x3d30eb['current']={},_0x40c932['sfEach']((_0x55aa0,_0x25577a)=>{const _0x50000d=_0x40c932[_0x25577a],_0x313bc3=_0x40c932[_0x25577a+0x1];_0x313bc3&&(_0x313bc3['from']=_0x50000d,_0x313bc3['distance']=a0_0x3525fc(_0x50000d['lat'],_0x50000d['lng'],_0x313bc3['lat'],_0x313bc3['lng']),_0x40c932[_0x25577a]['angle']=a0_0x232b58(_0x50000d['lat'],_0x50000d['lng'],_0x313bc3['lat'],_0x313bc3['lng'])),_0x3d30eb['current'][new Date(_0x55aa0['time'])['getTime']()]=_0x55aa0;}),_0x49c4b9['current']=Object['values'](_0x3d30eb['current'])['length'],_0x14c34b['current']=Object['keys'](_0x3d30eb['current']),_0xa48e28=_0x40c932[0x0],_0x107bb8=_0x40c932[_0x40c932['length']-0x1];}}catch(_0xdd89cf){a0_0x553e99['logger']['log']('UNKNOWN');}_0x45ad6c['current']['innerText']=_0xa48e28?a0_0x1ef24f['DateUtil']['new']()['setDate'](new Date(_0xa48e28['time']))['strTime']():a0_0x1ef24f['DateUtil']['new']()['startOfDay']()['strTime'](),_0x55c2d6['current']['innerText']=a0_0x1ef24f['DateUtil']['new']()['startOfDay']()['strTime']()['replaceAll']('0','-'),_0x199bf6['current']['innerText']=_0x107bb8?a0_0x1ef24f['DateUtil']['new']()['setDate'](new Date(_0x107bb8['time']))['strTime']():a0_0x1ef24f['DateUtil']['new']()['startOfDay']()['strTime'](),_0x44c2bd['current']['innerText']=a0_0x46b2e5(0x0,0x7),_0x4a032f['current']['innerText']=a0_0x46b2e5(_0x49c4b9['current'],0x7),_0x5c66f5(),_0x31708d();}function _0x33b0a9(_0x58b53e,_0x586352){_0x120dd6['current']=_0x58b53e-0x1,_0x45f6c1['current']['value']=_0x58b53e-0x1,_0x55c2d6['current']['innerText']=a0_0x1ef24f['DateUtil']['new']()['setTime'](Number(_0x586352))['strTime'](),_0x44c2bd['current']['innerText']=a0_0x46b2e5(_0x58b53e,0x7);const _0xae0f5d=Number(_0x45f6c1['current']['value'])/Number(_0x45f6c1['current']['max'])*0x64;_0x45f6c1['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0xae0f5d+'%,\x20#ccc\x20'+_0xae0f5d+'%)';}function _0x247861(_0x346b3e,_0x2f96a1,_0x5387f9){const _0x241347=_0x3d30eb['current'][_0x346b3e],_0x92d834=_0x2f96a1['sfMap'](_0x203440=>_0x3d30eb['current'][_0x203440]),_0x5ad6c1=_0x5387f9['sfMap'](_0x366958=>_0x3d30eb['current'][_0x366958]),_0x1b17ea=_0x92d834['sfMap'](_0x32bcfc=>_0x32bcfc['id']),_0x17a738=_0x5ad6c1['sfMap'](_0x1a31a3=>_0x1a31a3['id']),_0x56574f={};_0x56574f['point']=_0x241347,_0x56574f['adds']=_0x92d834,_0x56574f['rms']=_0x5ad6c1,_0x56574f['addIds']=_0x1b17ea,_0x56574f['rmIds']=_0x17a738,_0x5e8898['onMove'](_0x56574f);if(_0x5e8898['panel']){const _0x3ad7b9={};_0x3ad7b9['point']=_0x241347,_0x3ad7b9['adds']=_0x92d834,_0x3ad7b9['rms']=_0x5ad6c1,_0x3ad7b9['addIds']=_0x1b17ea,_0x3ad7b9['rmIds']=_0x17a738,_0x396379['current']=_0x5e8898['panel'](_0x3ad7b9),_0x31708d();}}function _0x21f3ef(_0x1fff50){try{if(_0x120dd6['current']>=_0x49c4b9['current']-0x1){_0x26f57c['current']=0x0,_0x31708d();return;}const _0x5250f2=_0x120dd6['current']+0x1;let _0x3adb0a=_0x120dd6['current']<0x0?0x1:_0x120dd6['current']+0x1+_0x1fff50;_0x3adb0a=_0x3adb0a>_0x49c4b9['current']-0x1?_0x49c4b9['current']:_0x3adb0a;const _0x1d060e=_0x43c983['current'];_0x3adb0a-_0x43c983['current']>=_0x4900e3&&(_0x43c983['current']=_0x3adb0a-_0x4900e3);const _0x2118a6=_0x14c34b['current']['slice'](_0x5250f2,_0x3adb0a),_0x5b5244=_0x14c34b['current']['slice'](_0x1d060e,_0x43c983['current']);_0x33b0a9(_0x3adb0a,_0x2118a6[0x0]),_0x247861(_0x2118a6[_0x2118a6['length']-0x1],_0x2118a6,_0x5b5244),_0x5c66f5();}catch(_0x364c90){a0_0x553e99['logger']['log']('UNKNOWN',_0x364c90);}}function _0x31803c(){_0x26f57c['current']=0x0,_0x45f6c1['current']['value']='0',_0x80210f(),_0x31708d();}function _0x4b1490(){_0x26f57c['current']=0x1,_0x120dd6['current']>=_0x49c4b9['current']-0x1&&(_0x120dd6['current']=-0x1),_0x120dd6['current']<0x0&&(_0x43c983['current']=0x0,_0x5e8898['onStartReplay'](Object['values'](_0x3d30eb['current']))),_0x31708d();}function _0x4b46cb(){_0x26f57c['current']=0x2,_0x31708d();}function _0x58225a(_0x1b347d){_0x4d6c8c['current']=Number(a0_0x4868eb[_0x1b347d['target']['value']])||0x1,_0x31708d();}function _0x1f23e1(){_0x3c0415['current']=0x1,window&&clearTimeout(_0xc1739e['current']),_0x31708d();}function _0x31fba9(){window&&(_0xc1739e['current']=setTimeout(()=>{_0x3c0415['current']=0x0,clearTimeout(_0xc1739e['current']);},0x1f4)),_0x31708d();}function _0x3aca29(_0x2731e0){try{_0x1f23e1(),_0x45f6c1['current']['value']=_0x2731e0['target']['value'],window&&(clearTimeout(_0x343608['current']),_0x343608['current']=setTimeout(()=>{const _0x477bd9=Number(_0x45f6c1['current']['value']),_0x352642=_0x14c34b['current'],_0x47217d=_0x352642[_0x477bd9],_0x2c0249=_0x477bd9;let _0x5d3793=[],_0x470542=[];if(_0x5ebb0b)_0x477bd9>_0x120dd6['current']&&(_0x5d3793=_0x352642['slice'](_0x120dd6['current']+0x1,_0x2c0249)),_0x477bd9<_0x120dd6['current']&&(_0x470542=_0x352642['slice'](_0x2c0249,_0x120dd6['current']+0x1));else{const _0x335036=_0x3ce45a=>_0x3ce45a<0x0?0x0:_0x3ce45a,_0xb3801c=_0x335036(_0x43c983['current']),_0x18f86b=_0x335036(_0x120dd6['current']+0x1),_0x4c4072=_0x335036(_0x2c0249+0x1-_0x4900e3),_0x3b4d95=_0x335036(_0x2c0249+0x1);_0x43c983['current']=_0x4c4072;if(_0xb3801c<_0x4c4072&&_0x4c4072<_0x18f86b)_0x5d3793=_0x352642['slice'](_0x18f86b,_0x3b4d95),_0x470542=_0x352642['slice'](_0xb3801c,_0x4c4072);else _0xb3801c<_0x3b4d95&&_0x3b4d95<_0x18f86b?(_0x5d3793=_0x352642['slice'](_0x4c4072,_0xb3801c),_0x470542=_0x352642['slice'](_0x3b4d95,_0x18f86b)):(_0x5d3793=_0x352642['slice'](_0x4c4072,_0x3b4d95),_0x470542=_0x352642['slice'](_0xb3801c,_0x18f86b));_0x43c983['current']=_0x4c4072;}_0x247861(_0x47217d,_0x5d3793,_0x470542),_0x33b0a9(_0x477bd9+0x1,_0x47217d);},0x1f4));}catch(_0x360f1d){a0_0x553e99['logger']['log']('UNKNOWN');}}a0_0x132c18['useEffect'](()=>{_0x31803c();},[_0x5e8898['points']['length'],_0x4900e3]),a0_0x132c18['useEffect'](()=>{return clearInterval(_0xd747a3['current']),track==='point'?_0xd747a3['current']=setInterval(()=>{_0x26f57c['current']===0x1&&!_0x3c0415['current']&&_0x49c4b9['current']&&_0x21f3ef(_0x4d6c8c['current']);},0x3e8):_0xd747a3['current']=setInterval(()=>{_0x26f57c['current']===0x1&&!_0x3c0415['current']&&_0x49c4b9['current']&&_0x21f3ef(0x1);},Math['floor'](0x3e8/_0x4d6c8c['current'])),()=>{clearInterval(_0xd747a3['current']);};},[track,_0x4d6c8c['current']]);const _0x5603c7={};_0x5603c7['width']='100%',_0x5603c7['height']='100%',_0x5603c7['display']='flex',_0x5603c7['flexDirection']='column',_0x5603c7['borderWidth']=0x1,_0x5603c7['borderColor']='#e5e7eb',_0x5603c7['overflow']='hidden';const _0x2ea085={};_0x2ea085['width']='100%',_0x2ea085['height']='100%',_0x2ea085['position']='relative';const _0x49f6fd={};_0x49f6fd['style']=_0x2ea085,_0x49f6fd['children']=[_0x5e8898['children'],_0x396379['current']];const _0x48779b={};_0x48779b['width']='100%',_0x48779b['display']='flex',_0x48779b['flexDirection']='column',_0x48779b['position']='relative';const _0x82e625={};_0x82e625['type']='range',_0x82e625['className']='muplayer-range-input',_0x82e625['ref']=_0x45f6c1,_0x82e625['min']=0x0,_0x82e625['max']=_0x49c4b9['current']-0x1,_0x82e625['onMouseDown']=_0x1f23e1,_0x82e625['onMouseUp']=_0x31fba9,_0x82e625['onBlur']=_0x31fba9,_0x82e625['onChange']=_0x3aca29,_0x82e625['onTouchStart']=_0x1f23e1,_0x82e625['onTouchCancel']=_0x31fba9;const _0x4eece5={};_0x4eece5['ref']=_0x157166;const _0x285f73={};_0x285f73['width']='100%',_0x285f73['display']='flex',_0x285f73['flexDirection']='row',_0x285f73['alignItems']='center',_0x285f73['gap']='0.25rem';const _0x449bed={};_0x449bed['className']='mt-mutbnc',_0x449bed['disabled']=_0x26f57c['current']===0x1||!_0x49c4b9['current'],_0x449bed['onClick']=_0x4b1490,_0x449bed['children']='▶';const _0xc55850={};_0xc55850['className']='mt-mutbnc',_0xc55850['disabled']=_0x26f57c['current']===0x0||_0x26f57c['current']===0x2,_0xc55850['onClick']=_0x4b46cb,_0xc55850['children']='⏸';const _0x35deb0={};_0x35deb0['className']='mt-mutbnc',_0x35deb0['disabled']=_0x26f57c['current']===0x0,_0x35deb0['onClick']=_0x31803c,_0x35deb0['children']='⏹︎';const _0x3b778a={};_0x3b778a['width']='100%',_0x3b778a['display']='flex',_0x3b778a['flexDirection']='row',_0x3b778a['alignItems']='center',_0x3b778a['justifyContent']='space-between',_0x3b778a['flexWrap']='wrap',_0x3b778a['gap']='0.5rem',_0x3b778a['fontSize']='0.875rem',_0x3b778a['lineHeight']='1.25rem';const _0x25b2e0={};_0x25b2e0['display']='flex',_0x25b2e0['flexDirection']='row',_0x25b2e0['alignItems']='center',_0x25b2e0['gap']='0.25rem';const _0x5e1b87={};_0x5e1b87['fontWeight']='500';const _0x249cd1={};_0x249cd1['ref']=_0x55c2d6,_0x249cd1['style']=_0x5e1b87,_0x249cd1['children']='00:00:00';const _0x544364={};_0x544364['children']='-';const _0x596e4a={};_0x596e4a['ref']=_0x45ad6c,_0x596e4a['children']='00:00:00';const _0xa33b58={};_0xa33b58['children']='-';const _0x1866fd={};_0x1866fd['ref']=_0x199bf6,_0x1866fd['children']='00:10:00';const _0x51b511={};_0x51b511['display']='flex',_0x51b511['flexDirection']='row',_0x51b511['alignItems']='center',_0x51b511['gap']='0.25rem';const _0x57c621={};_0x57c621['ref']=_0x44c2bd,_0x57c621['children']='00001';const _0x472666={};_0x472666['children']='/';const _0x14db1f={};_0x14db1f['width']='5rem',_0x14db1f['minHeight']=0x21,_0x14db1f['height']=0x21;const _0x21ff38={};_0x21ff38['value']=0x1,_0x21ff38['children']='x1';const _0x3b6575={};_0x3b6575['value']=0x2,_0x3b6575['children']='x2';const _0x3d03e7={};_0x3d03e7['value']=0x3,_0x3d03e7['children']='x3';const _0x22f243={};_0x22f243['value']=0x5,_0x22f243['children']='x5';const _0x29e87b={};_0x29e87b['value']=0xa,_0x29e87b['children']='10X';const _0x3f6855={};return _0x3f6855['value']=0x19,_0x3f6855['children']='15X',(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x5603c7,'children':[(0x0,a0_0xede50f['jsxs'])('div',_0x49f6fd),(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x48779b,'children':[(0x0,a0_0xede50f['jsx'])('input',_0x82e625),(0x0,a0_0xede50f['jsx'])('span',_0x4eece5),(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x285f73,'children':[(0x0,a0_0xede50f['jsx'])('button',_0x449bed),(0x0,a0_0xede50f['jsx'])('button',_0xc55850),(0x0,a0_0xede50f['jsx'])('button',_0x35deb0),(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x3b778a,'children':[(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x25b2e0,'children':[(0x0,a0_0xede50f['jsx'])('div',_0x249cd1),(0x0,a0_0xede50f['jsx'])('div',_0x544364),'[',(0x0,a0_0xede50f['jsx'])('div',_0x596e4a),(0x0,a0_0xede50f['jsx'])('div',_0xa33b58),(0x0,a0_0xede50f['jsx'])('div',_0x1866fd),']']}),(0x0,a0_0xede50f['jsxs'])('div',{'style':_0x51b511,'children':[(0x0,a0_0xede50f['jsx'])('div',_0x57c621),(0x0,a0_0xede50f['jsx'])('div',_0x472666),(0x0,a0_0xede50f['jsx'])('div',{'ref':_0x4a032f,'children':a0_0x46b2e5(_0x49c4b9['current'],0x7)})]})]}),(0x0,a0_0xede50f['jsxs'])('select',{'style':_0x14db1f,'value':_0x4d6c8c['current'],'onChange':_0x58225a,'children':[(0x0,a0_0xede50f['jsx'])('option',_0x21ff38),(0x0,a0_0xede50f['jsx'])('option',_0x3b6575),(0x0,a0_0xede50f['jsx'])('option',_0x3d03e7),(0x0,a0_0xede50f['jsx'])('option',_0x22f243),(0x0,a0_0xede50f['jsx'])('option',_0x29e87b),(0x0,a0_0xede50f['jsx'])('option',_0x3f6855)]})]})]})]});}function a0_0x1dbc80(_0x1a28f6){return a0_0x3ea3a2(_0x1a28f6);}exports['MUPlayer']=a0_0x1dbc80;
|
|
1
|
+
'use strict';var a0_0x1c2630=this&&this['__createBinding']||(Object['create']?function(_0x30042b,_0x43315e,_0x4b3dc1,_0x1be516){if(_0x1be516===undefined)_0x1be516=_0x4b3dc1;var _0x41f527=Object['getOwnPropertyDescriptor'](_0x43315e,_0x4b3dc1);if(!_0x41f527||('get'in _0x41f527?!_0x43315e['__esModule']:_0x41f527['writable']||_0x41f527['configurable'])){const _0x104b70={};_0x104b70['enumerable']=!![],_0x104b70['get']=function(){return _0x43315e[_0x4b3dc1];},_0x41f527=_0x104b70;}Object['defineProperty'](_0x30042b,_0x1be516,_0x41f527);}:function(_0x3f66fb,_0x38a1fc,_0x13ef0a,_0x4ed25c){if(_0x4ed25c===undefined)_0x4ed25c=_0x13ef0a;_0x3f66fb[_0x4ed25c]=_0x38a1fc[_0x13ef0a];}),a0_0x235a18=this&&this['__setModuleDefault']||(Object['create']?function(_0x390127,_0x28133a){const _0x5d98e0={};_0x5d98e0['enumerable']=!![],_0x5d98e0['value']=_0x28133a,Object['defineProperty'](_0x390127,'default',_0x5d98e0);}:function(_0x7f159f,_0x4758d6){_0x7f159f['default']=_0x4758d6;}),a0_0x3148c4=this&&this['__importStar']||function(_0xd1f246){if(_0xd1f246&&_0xd1f246['__esModule'])return _0xd1f246;var _0x3991ef={};if(_0xd1f246!=null){for(var _0x47008a in _0xd1f246)if(_0x47008a!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0xd1f246,_0x47008a))a0_0x1c2630(_0x3991ef,_0xd1f246,_0x47008a);}return a0_0x235a18(_0x3991ef,_0xd1f246),_0x3991ef;};const a0_0x234bf1={};a0_0x234bf1['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x234bf1),exports['MUPlayer']=void 0x0;const a0_0x3dc193=require('react/jsx-runtime'),a0_0x21d197=a0_0x3148c4(require('react')),a0_0x27361c=require('./DateUtil'),a0_0x511103=require('./logger'),a0_0x52bb76={};a0_0x52bb76['1']=0x1,a0_0x52bb76['2']=0x2,a0_0x52bb76['3']=0x3,a0_0x52bb76['5']=0x5,a0_0x52bb76['10']=0xa,a0_0x52bb76['25']=0x19;const a0_0x3789b7=a0_0x52bb76,a0_0x488d79={};a0_0x488d79['-1']=-0x1,a0_0x488d79['5']=0x5,a0_0x488d79['10']=0xa,a0_0x488d79['15']=0xf,a0_0x488d79['25']=0x19,a0_0x488d79['50']=0x32,a0_0x488d79['100']=0x64;const a0_0x572c4f=a0_0x488d79;function a0_0x2cceab(_0x4dc8ec,_0x296348=0x1){return _0x4dc8ec['toString']()['padStart'](_0x296348,'0');}function a0_0xf45734(_0x751595,_0x1e947b,_0xef35b6,_0x9a826e){const _0x24d8bc=_0xef35b6-_0x751595,_0x4a0fb1=_0x9a826e-_0x1e947b,_0x26183f=Math['atan'](_0x24d8bc/_0x4a0fb1);let _0x4641d5=_0x26183f*0xb4/Math['PI'];return _0x4641d5=0xb4-_0x4641d5,(_0x24d8bc>0x0&&_0x4a0fb1>0x0||_0x24d8bc<0x0&&_0x4a0fb1>0x0)&&(_0x4641d5=_0x4641d5+0xb4),_0x4641d5=_0x4641d5+0x5a,_0x4641d5;}function a0_0x430968(_0x1c12e7){return _0x1c12e7*(Math['PI']/0xb4);}function a0_0x1efae8(_0x2981bb,_0x20aae9,_0x663acf,_0xdbd61c){_0x2981bb=_0x2981bb||0x0,_0x20aae9=_0xdbd61c||0x0,_0x663acf=_0x663acf||0x0,_0xdbd61c=_0xdbd61c||0x0;var _0x5aba1d=0x18e3,_0x2787b7=a0_0x430968(_0x663acf-_0x2981bb),_0x3dd718=a0_0x430968(_0xdbd61c-_0x20aae9),_0x339ae0=Math['sin'](_0x2787b7/0x2)*Math['sin'](_0x2787b7/0x2)+Math['cos'](a0_0x430968(_0x2981bb))*Math['cos'](a0_0x430968(_0x663acf))*Math['sin'](_0x3dd718/0x2)*Math['sin'](_0x3dd718/0x2),_0x5ce979=0x2*Math['atan2'](Math['sqrt'](_0x339ae0),Math['sqrt'](0x1-_0x339ae0)),_0x38a5ae=_0x5aba1d*_0x5ce979;return Math['abs'](_0x38a5ae);}function a0_0x18f7ee({track:track='point',..._0x440311}){const _0x18bd16=Number(a0_0x572c4f[_0x440311['trackSize']])||0x5,_0x3b3802=_0x18bd16<0x0,_0x4d6e97=a0_0x21d197['useRef'](0x0),_0x2490b5=a0_0x21d197['useRef'](0x1),_0x260123=a0_0x21d197['useRef'](0x0),_0x5b000a=a0_0x21d197['useRef']({}),_0x55913b=a0_0x21d197['useRef']([]),_0x4d9b1b=a0_0x21d197['useRef'](0x0),_0x16f8a2=a0_0x21d197['useRef'](-0x1),_0x4fb6f9=a0_0x21d197['useRef'](null),_0x5551e0=a0_0x21d197['useRef'](null),_0x1e8e3a=a0_0x21d197['useRef'](null),_0x3ada59=a0_0x21d197['useRef'](null),_0x519098=a0_0x21d197['useRef'](null),_0x350d64=a0_0x21d197['useRef'](null),_0x110118=a0_0x21d197['useRef'](null),_0x447ef4=a0_0x21d197['useRef'](null),_0xe4aaaa=a0_0x21d197['useRef'](null),_0x5d9d0b=a0_0x21d197['useRef'](null),_0x597a9e=a0_0x21d197['useRef'](null),_0x706b34=a0_0x21d197['useState'](),_0x4be473=a0_0x21d197['useRef'](-0x1);function _0x260443(){_0x706b34[0x1](new Date()['getTime']());}function _0x7b79f0(){const _0x1a4fdf=_0x110118['current']['getBoundingClientRect'](),_0x1dc2ab=_0x1a4fdf['width'],_0x74753b=_0x1a4fdf['height'],_0x188f6b=Number(_0x110118['current']['value']),_0x3b08d7=Number(_0x110118['current']['max']),_0x16244c=Number(_0x110118['current']['min']),_0x9371b7=_0x1a4fdf['left']+_0x1dc2ab*(_0x188f6b-_0x16244c)/(_0x3b08d7-_0x16244c),_0x2b47de=0x19,_0xf7ba91=0x19,_0x564ad2=_0x9371b7+_0x2b47de/0x2,_0x174b91=_0x1a4fdf['top']+_0x74753b/0x2,_0x237926={};return _0x237926['thumbCenterX']=_0x564ad2,_0x237926['thumbCenterY']=_0x174b91,_0x237926;}function _0x46342f(){const _0x5d2ac3=_0x7b79f0();_0x447ef4['current']['style']['position']='absolute',_0x447ef4['current']['style']['left']=_0x5d2ac3['thumbCenterX']+'px',_0x447ef4['current']['style']['top']=_0x5d2ac3['thumbCenterY']+'px',_0x447ef4['current']['style']['transform']='translateX(-50%)',_0x447ef4['current']['innerText']=_0x5551e0['current']['innerText'];}function _0x2c0f1c(){_0x4d9b1b['current']=0x0,_0x16f8a2['current']=-0x1,_0x4be473['current']=-0x1,_0x110118['current']['value']='0';let _0x4e244c,_0x5145ba;try{if(_0x440311['points']['length']){const _0x3ea783=_0x440311['points']['sort']((_0x184dcb,_0x18f461)=>new Date(_0x184dcb['time'])['getTime']()>new Date(_0x18f461['time'])['getTime']()?0x1:0x1);_0x5b000a['current']={},_0x3ea783['sfEach']((_0x54eb14,_0x34f5bc)=>{const _0x58154f=_0x3ea783[_0x34f5bc],_0x1743c6=_0x3ea783[_0x34f5bc+0x1];_0x1743c6&&(_0x1743c6['from']=_0x58154f,_0x1743c6['distance']=a0_0x1efae8(_0x58154f['lat'],_0x58154f['lng'],_0x1743c6['lat'],_0x1743c6['lng']),_0x3ea783[_0x34f5bc]['angle']=a0_0xf45734(_0x58154f['lat'],_0x58154f['lng'],_0x1743c6['lat'],_0x1743c6['lng'])),_0x5b000a['current'][new Date(_0x54eb14['time'])['getTime']()]=_0x54eb14;}),_0x4d9b1b['current']=Object['values'](_0x5b000a['current'])['length'],_0x55913b['current']=Object['keys'](_0x5b000a['current']),_0x4e244c=_0x3ea783[0x0],_0x5145ba=_0x3ea783[_0x3ea783['length']-0x1];}}catch(_0x4d7df3){a0_0x511103['logger']['log']('UNKNOWN');}_0x4fb6f9['current']['innerText']=_0x4e244c?a0_0x27361c['DateUtil']['new']()['setDate'](new Date(_0x4e244c['time']))['strTime']():a0_0x27361c['DateUtil']['new']()['startOfDay']()['strTime'](),_0x5551e0['current']['innerText']=a0_0x27361c['DateUtil']['new']()['startOfDay']()['strTime']()['replaceAll']('0','-'),_0x1e8e3a['current']['innerText']=_0x5145ba?a0_0x27361c['DateUtil']['new']()['setDate'](new Date(_0x5145ba['time']))['strTime']():a0_0x27361c['DateUtil']['new']()['startOfDay']()['strTime'](),_0x3ada59['current']['innerText']=a0_0x2cceab(0x0,0x7),_0x519098['current']['innerText']=a0_0x2cceab(_0x4d9b1b['current'],0x7),_0x46342f(),_0x260443();}function _0x3a2795(_0x228a70,_0x2fedf2){_0x16f8a2['current']=_0x228a70-0x1,_0x110118['current']['value']=_0x228a70-0x1,_0x5551e0['current']['innerText']=a0_0x27361c['DateUtil']['new']()['setTime'](Number(_0x2fedf2))['strTime'](),_0x3ada59['current']['innerText']=a0_0x2cceab(_0x228a70,0x7);const _0x2cf0ca=Number(_0x110118['current']['value'])/Number(_0x110118['current']['max'])*0x64;_0x110118['current']['style']['background']='linear-gradient(to\x20right,\x20#f50\x20'+_0x2cf0ca+'%,\x20#ccc\x20'+_0x2cf0ca+'%)';}function _0x4edeb6(_0x8222b9,_0x1d8338,_0x226dfa){const _0x408f48=_0x5b000a['current'][_0x8222b9],_0x3b33d3=_0x1d8338['sfMap'](_0x1e6bdf=>_0x5b000a['current'][_0x1e6bdf]),_0x495f2b=_0x226dfa['sfMap'](_0x3aefac=>_0x5b000a['current'][_0x3aefac]),_0x25f53d=_0x3b33d3['sfMap'](_0x1ec4c0=>_0x1ec4c0['id']),_0x29f178=_0x495f2b['sfMap'](_0x51ad6a=>_0x51ad6a['id']),_0x1c92ec={};_0x1c92ec['point']=_0x408f48,_0x1c92ec['adds']=_0x3b33d3,_0x1c92ec['rms']=_0x495f2b,_0x1c92ec['addIds']=_0x25f53d,_0x1c92ec['rmIds']=_0x29f178,_0x440311['onMove'](_0x1c92ec);if(_0x440311['panel']){const _0x3d3f18={};_0x3d3f18['point']=_0x408f48,_0x3d3f18['adds']=_0x3b33d3,_0x3d3f18['rms']=_0x495f2b,_0x3d3f18['addIds']=_0x25f53d,_0x3d3f18['rmIds']=_0x29f178,_0x350d64['current']=_0x440311['panel'](_0x3d3f18),_0x260443();}}function _0x224d85(_0x368a43){try{if(_0x16f8a2['current']>=_0x4d9b1b['current']-0x1){_0x4d6e97['current']=0x0,_0x260443();return;}const _0x178579=_0x16f8a2['current']+0x1;let _0x55d7fc=_0x16f8a2['current']<0x0?0x1:_0x16f8a2['current']+0x1+_0x368a43;_0x55d7fc=_0x55d7fc>_0x4d9b1b['current']-0x1?_0x4d9b1b['current']:_0x55d7fc;const _0x544dcf=_0x4be473['current'];_0x55d7fc-_0x4be473['current']>=_0x18bd16&&(_0x4be473['current']=_0x55d7fc-_0x18bd16);const _0x44a217=_0x55913b['current']['slice'](_0x178579,_0x55d7fc),_0x212368=_0x55913b['current']['slice'](_0x544dcf,_0x4be473['current']);_0x3a2795(_0x55d7fc,_0x44a217[0x0]),_0x4edeb6(_0x44a217[_0x44a217['length']-0x1],_0x44a217,_0x212368),_0x46342f();}catch(_0x5a7b5f){a0_0x511103['logger']['log']('UNKNOWN',_0x5a7b5f);}}function _0x499964(){_0x4d6e97['current']=0x0,_0x110118['current']['value']='0',_0x2c0f1c(),_0x260443();}function _0x269edb(){_0x4d6e97['current']=0x1,_0x16f8a2['current']>=_0x4d9b1b['current']-0x1&&(_0x16f8a2['current']=-0x1),_0x16f8a2['current']<0x0&&(_0x4be473['current']=0x0,_0x440311['onStartReplay'](Object['values'](_0x5b000a['current']))),_0x260443();}function _0x1993db(){_0x4d6e97['current']=0x2,_0x260443();}function _0x112fd0(_0x400267){_0x2490b5['current']=Number(a0_0x3789b7[_0x400267['target']['value']])||0x1,_0x260443();}function _0x5d57d1(){_0x260123['current']=0x1,window&&clearTimeout(_0x5d9d0b['current']),_0x260443();}function _0x490e08(){window&&(_0x5d9d0b['current']=setTimeout(()=>{_0x260123['current']=0x0,clearTimeout(_0x5d9d0b['current']);},0x1f4)),_0x260443();}function _0x391a5c(_0x38ef40){try{_0x5d57d1(),_0x110118['current']['value']=_0x38ef40['target']['value'],window&&(clearTimeout(_0xe4aaaa['current']),_0xe4aaaa['current']=setTimeout(()=>{const _0x3d329c=Number(_0x110118['current']['value']),_0x8ec51c=_0x55913b['current'],_0x3076a6=_0x8ec51c[_0x3d329c],_0x416122=_0x3d329c;let _0xffe73c=[],_0x2aab6a=[];if(_0x3b3802)_0x3d329c>_0x16f8a2['current']&&(_0xffe73c=_0x8ec51c['slice'](_0x16f8a2['current']+0x1,_0x416122)),_0x3d329c<_0x16f8a2['current']&&(_0x2aab6a=_0x8ec51c['slice'](_0x416122,_0x16f8a2['current']+0x1));else{const _0x4d3c42=_0x5d9be0=>_0x5d9be0<0x0?0x0:_0x5d9be0,_0x31060a=_0x4d3c42(_0x4be473['current']),_0x45328e=_0x4d3c42(_0x16f8a2['current']+0x1),_0x2afdba=_0x4d3c42(_0x416122+0x1-_0x18bd16),_0x53bca0=_0x4d3c42(_0x416122+0x1);_0x4be473['current']=_0x2afdba;if(_0x31060a<_0x2afdba&&_0x2afdba<_0x45328e)_0xffe73c=_0x8ec51c['slice'](_0x45328e,_0x53bca0),_0x2aab6a=_0x8ec51c['slice'](_0x31060a,_0x2afdba);else _0x31060a<_0x53bca0&&_0x53bca0<_0x45328e?(_0xffe73c=_0x8ec51c['slice'](_0x2afdba,_0x31060a),_0x2aab6a=_0x8ec51c['slice'](_0x53bca0,_0x45328e)):(_0xffe73c=_0x8ec51c['slice'](_0x2afdba,_0x53bca0),_0x2aab6a=_0x8ec51c['slice'](_0x31060a,_0x45328e));_0x4be473['current']=_0x2afdba;}_0x4edeb6(_0x3076a6,_0xffe73c,_0x2aab6a),_0x3a2795(_0x3d329c+0x1,_0x3076a6);},0x1f4));}catch(_0x46f688){a0_0x511103['logger']['log']('UNKNOWN');}}a0_0x21d197['useEffect'](()=>{_0x499964();},[_0x440311['points']['length'],_0x18bd16]),a0_0x21d197['useEffect'](()=>{return clearInterval(_0x597a9e['current']),track==='point'?_0x597a9e['current']=setInterval(()=>{_0x4d6e97['current']===0x1&&!_0x260123['current']&&_0x4d9b1b['current']&&_0x224d85(_0x2490b5['current']);},0x3e8):_0x597a9e['current']=setInterval(()=>{_0x4d6e97['current']===0x1&&!_0x260123['current']&&_0x4d9b1b['current']&&_0x224d85(0x1);},Math['floor'](0x3e8/_0x2490b5['current'])),()=>{clearInterval(_0x597a9e['current']);};},[track,_0x2490b5['current']]);const _0x4334c0={};_0x4334c0['width']='100%',_0x4334c0['height']='100%',_0x4334c0['display']='flex',_0x4334c0['flexDirection']='column',_0x4334c0['borderWidth']=0x1,_0x4334c0['borderColor']='#e5e7eb',_0x4334c0['overflow']='hidden';const _0x540804={};_0x540804['width']='100%',_0x540804['height']='100%',_0x540804['position']='relative';const _0x3be30c={};_0x3be30c['style']=_0x540804,_0x3be30c['children']=[_0x440311['children'],_0x350d64['current']];const _0x1b09c8={};_0x1b09c8['width']='100%',_0x1b09c8['display']='flex',_0x1b09c8['flexDirection']='column',_0x1b09c8['position']='relative';const _0x37ed79={};_0x37ed79['type']='range',_0x37ed79['className']='muplayer-range-input',_0x37ed79['ref']=_0x110118,_0x37ed79['min']=0x0,_0x37ed79['max']=_0x4d9b1b['current']-0x1,_0x37ed79['onMouseDown']=_0x5d57d1,_0x37ed79['onMouseUp']=_0x490e08,_0x37ed79['onBlur']=_0x490e08,_0x37ed79['onChange']=_0x391a5c,_0x37ed79['onTouchStart']=_0x5d57d1,_0x37ed79['onTouchCancel']=_0x490e08;const _0x57587e={};_0x57587e['ref']=_0x447ef4;const _0x25f1cd={};_0x25f1cd['width']='100%',_0x25f1cd['display']='flex',_0x25f1cd['flexDirection']='row',_0x25f1cd['alignItems']='center',_0x25f1cd['gap']='0.25rem';const _0x21590e={};_0x21590e['className']='mt-mutbnc',_0x21590e['disabled']=_0x4d6e97['current']===0x1||!_0x4d9b1b['current'],_0x21590e['onClick']=_0x269edb,_0x21590e['children']='▶';const _0x5515a5={};_0x5515a5['className']='mt-mutbnc',_0x5515a5['disabled']=_0x4d6e97['current']===0x0||_0x4d6e97['current']===0x2,_0x5515a5['onClick']=_0x1993db,_0x5515a5['children']='⏸';const _0x25e13d={};_0x25e13d['className']='mt-mutbnc',_0x25e13d['disabled']=_0x4d6e97['current']===0x0,_0x25e13d['onClick']=_0x499964,_0x25e13d['children']='⏹︎';const _0x55efef={};_0x55efef['width']='100%',_0x55efef['display']='flex',_0x55efef['flexDirection']='row',_0x55efef['alignItems']='center',_0x55efef['justifyContent']='space-between',_0x55efef['flexWrap']='wrap',_0x55efef['gap']='0.5rem',_0x55efef['fontSize']='0.875rem',_0x55efef['lineHeight']='1.25rem';const _0x29a01c={};_0x29a01c['display']='flex',_0x29a01c['flexDirection']='row',_0x29a01c['alignItems']='center',_0x29a01c['gap']='0.25rem';const _0x1ba6a4={};_0x1ba6a4['fontWeight']='500';const _0x2d00e9={};_0x2d00e9['ref']=_0x5551e0,_0x2d00e9['style']=_0x1ba6a4,_0x2d00e9['children']='00:00:00';const _0x136891={};_0x136891['children']='-';const _0x289f66={};_0x289f66['ref']=_0x4fb6f9,_0x289f66['children']='00:00:00';const _0xb2574a={};_0xb2574a['children']='-';const _0x46423a={};_0x46423a['ref']=_0x1e8e3a,_0x46423a['children']='00:10:00';const _0xe80e1={};_0xe80e1['display']='flex',_0xe80e1['flexDirection']='row',_0xe80e1['alignItems']='center',_0xe80e1['gap']='0.25rem';const _0x4d682c={};_0x4d682c['ref']=_0x3ada59,_0x4d682c['children']='00001';const _0x2b87ba={};_0x2b87ba['children']='/';const _0x43ad9b={};_0x43ad9b['width']='5rem',_0x43ad9b['minHeight']=0x21,_0x43ad9b['height']=0x21;const _0x4ac66e={};_0x4ac66e['value']=0x1,_0x4ac66e['children']='x1';const _0x597161={};_0x597161['value']=0x2,_0x597161['children']='x2';const _0xd4fb45={};_0xd4fb45['value']=0x3,_0xd4fb45['children']='x3';const _0x735340={};_0x735340['value']=0x5,_0x735340['children']='x5';const _0x16734e={};_0x16734e['value']=0xa,_0x16734e['children']='10X';const _0x38f314={};return _0x38f314['value']=0x19,_0x38f314['children']='15X',(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0x4334c0,'children':[(0x0,a0_0x3dc193['jsxs'])('div',_0x3be30c),(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0x1b09c8,'children':[(0x0,a0_0x3dc193['jsx'])('input',_0x37ed79),(0x0,a0_0x3dc193['jsx'])('span',_0x57587e),(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0x25f1cd,'children':[(0x0,a0_0x3dc193['jsx'])('button',_0x21590e),(0x0,a0_0x3dc193['jsx'])('button',_0x5515a5),(0x0,a0_0x3dc193['jsx'])('button',_0x25e13d),(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0x55efef,'children':[(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0x29a01c,'children':[(0x0,a0_0x3dc193['jsx'])('div',_0x2d00e9),(0x0,a0_0x3dc193['jsx'])('div',_0x136891),'[',(0x0,a0_0x3dc193['jsx'])('div',_0x289f66),(0x0,a0_0x3dc193['jsx'])('div',_0xb2574a),(0x0,a0_0x3dc193['jsx'])('div',_0x46423a),']']}),(0x0,a0_0x3dc193['jsxs'])('div',{'style':_0xe80e1,'children':[(0x0,a0_0x3dc193['jsx'])('div',_0x4d682c),(0x0,a0_0x3dc193['jsx'])('div',_0x2b87ba),(0x0,a0_0x3dc193['jsx'])('div',{'ref':_0x519098,'children':a0_0x2cceab(_0x4d9b1b['current'],0x7)})]})]}),(0x0,a0_0x3dc193['jsxs'])('select',{'style':_0x43ad9b,'value':_0x2490b5['current'],'onChange':_0x112fd0,'children':[(0x0,a0_0x3dc193['jsx'])('option',_0x4ac66e),(0x0,a0_0x3dc193['jsx'])('option',_0x597161),(0x0,a0_0x3dc193['jsx'])('option',_0xd4fb45),(0x0,a0_0x3dc193['jsx'])('option',_0x735340),(0x0,a0_0x3dc193['jsx'])('option',_0x16734e),(0x0,a0_0x3dc193['jsx'])('option',_0x38f314)]})]})]})]});}function a0_0x15c611(_0x59468e){return a0_0x18f7ee(_0x59468e);}exports['MUPlayer']=a0_0x15c611;
|
package/dist/Multiselect.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x229f6e=this&&this['__createBinding']||(Object['create']?function(_0x3351ea,_0x147402,_0x2f5820,_0x5434f1){if(_0x5434f1===undefined)_0x5434f1=_0x2f5820;var _0x5013af=Object['getOwnPropertyDescriptor'](_0x147402,_0x2f5820);if(!_0x5013af||('get'in _0x5013af?!_0x147402['__esModule']:_0x5013af['writable']||_0x5013af['configurable'])){const _0x432be3={};_0x432be3['enumerable']=!![],_0x432be3['get']=function(){return _0x147402[_0x2f5820];},_0x5013af=_0x432be3;}Object['defineProperty'](_0x3351ea,_0x5434f1,_0x5013af);}:function(_0x10eb85,_0x522c5e,_0x2a8929,_0x139b7c){if(_0x139b7c===undefined)_0x139b7c=_0x2a8929;_0x10eb85[_0x139b7c]=_0x522c5e[_0x2a8929];}),a0_0x3f8f0f=this&&this['__setModuleDefault']||(Object['create']?function(_0x533616,_0x24e760){const _0x48710f={};_0x48710f['enumerable']=!![],_0x48710f['value']=_0x24e760,Object['defineProperty'](_0x533616,'default',_0x48710f);}:function(_0x4dc7d6,_0x12035b){_0x4dc7d6['default']=_0x12035b;}),a0_0x1318bf=this&&this['__importStar']||function(_0x35bd58){if(_0x35bd58&&_0x35bd58['__esModule'])return _0x35bd58;var _0x52384a={};if(_0x35bd58!=null){for(var _0x583c58 in _0x35bd58)if(_0x583c58!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x35bd58,_0x583c58))a0_0x229f6e(_0x52384a,_0x35bd58,_0x583c58);}return a0_0x3f8f0f(_0x52384a,_0x35bd58),_0x52384a;};const a0_0x1d66bb={};a0_0x1d66bb['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1d66bb),exports['Multiselect']=void 0x0;const a0_0x23a64f=require('react/jsx-runtime'),a0_0x1bfa1b=a0_0x1318bf(require('react')),a0_0x1d747e=require('./Icons'),a0_0x157ee5=require('./common'),a0_0x1e786d=require('./Checkbox'),a0_0x1c45c0=require('react-dom'),a0_0x55c0f9=require('./Button'),a0_0x2daeae=require('./utils'),a0_0x4ffac9=()=>{};var a0_0x186e8d;(function(_0x4efff1){_0x4efff1['MOUSE_DOWN']='mousedown',_0x4efff1['MOUSE_UP']='mouseup',_0x4efff1['MOUSE_MOVE']='mousemove',_0x4efff1['MOUSE_CLICK']='click',_0x4efff1['FOCUS']='focus';}(a0_0x186e8d||(a0_0x186e8d={})));function a0_0xf65c40(_0x4b9a31){const _0x49ce8b=a0_0x1bfa1b['useCallback'](_0x78e9f4=>{_0x4b9a31['isOpen']&&!_0x4b9a31['referances']['sfMap'](_0x2f6a9a=>_0x2f6a9a['current']?.['contains'](_0x78e9f4['target']))['sfFilter'](_0x22a53f=>_0x22a53f)['length']&&_0x4b9a31['onClickOutside']();},[_0x4b9a31['referances'],_0x4b9a31['isOpen'],_0x4b9a31['onClickOutside']]);return a0_0x1bfa1b['useEffect'](()=>{return window?.['removeEventListener'](a0_0x186e8d['MOUSE_UP'],_0x49ce8b,!![]),window?.['removeEventListener'](a0_0x186e8d['MOUSE_CLICK'],_0x49ce8b,!![]),document?.['removeEventListener'](a0_0x186e8d['FOCUS'],_0x49ce8b,!![]),_0x4b9a31['isOpen']&&(window?.['addEventListener'](a0_0x186e8d['MOUSE_UP'],_0x49ce8b,!![]),window?.['addEventListener'](a0_0x186e8d['MOUSE_CLICK'],_0x49ce8b,!![]),document?.['addEventListener'](a0_0x186e8d['FOCUS'],_0x49ce8b,!![])),()=>{window?.['removeEventListener'](a0_0x186e8d['MOUSE_UP'],_0x49ce8b,!![]),window?.['removeEventListener'](a0_0x186e8d['MOUSE_CLICK'],_0x49ce8b,!![]),document?.['removeEventListener'](a0_0x186e8d['FOCUS'],_0x49ce8b,!![]);};},[_0x49ce8b]),(0x0,a0_0x23a64f['jsx'])(a0_0x23a64f['Fragment'],{'children':_0x4b9a31['render']()});}function a0_0x3b64d8(_0x4cfd07,_0x18ba9e,_0x16307d,_0x4709e4){try{const _0x5aa86f=_0x4709e4?.['getBoundingClientRect']()?.['top'],_0x3dd092=_0x4709e4?.['getBoundingClientRect']()?.['bottom'],_0x1bbe91=_0x4709e4?.['getBoundingClientRect']()?.['left'],_0x3a3802=_0x4709e4?.['getBoundingClientRect']()?.['right'],_0x2b9ccd=_0x5aa86f<=_0x4cfd07&&_0x4cfd07<=_0x3dd092&&_0x1bbe91<=_0x18ba9e&&_0x3a3802>=_0x16307d;return _0x2b9ccd;}catch(_0x1d37c2){}return![];}function a0_0xc8d11b(_0x5442b7){const _0x495a4b=a0_0x1bfa1b['useRef'](_0x5442b7['value']||[]),_0x41fa19=a0_0x1bfa1b['useRef'](null),_0xd53573=a0_0x2daeae['Indexer']['useHook'](),_0x2b42c2=a0_0x1bfa1b['useMemo'](()=>{let _0x57f128=[],_0x1027ce=[],_0x287086=![],_0x3419bb=[];const _0x5f1f90=[..._0x5442b7['data']||[]],_0x445d63=window?.['innerWidth']<0x280;try{_0x57f128=_0x5f1f90['sfFilter'](_0x1606da=>(_0x5442b7['value']||[])['sfFind'](_0x506128=>_0x506128===_0x1606da[_0x5442b7['accessorValue']])),_0x1027ce=_0x57f128['sfMap'](_0x4a54ff=>_0x4a54ff[_0x5442b7['accessorValue']]),_0x287086=_0x1027ce['length']===_0x5f1f90?.['length'];}catch(_0x1b1c9f){}try{let _0x8d4afb=[],_0x390da9=[],_0xa7b119=_0x5442b7['searchText']?!_0x5442b7['search']||_0x5442b7['search']==='anywhere'?_0x5f1f90['sfFilter'](_0x2ae820=>_0x2ae820[_0x5442b7['accessorLabel']]?.['toLocaleLowerCase'](_0x5442b7['code']||a0_0x157ee5['globalConfigs']['countryCode'])['includes'](_0x5442b7['searchText'])):_0x5f1f90['sfFilter'](_0x43f712=>_0x43f712[_0x5442b7['accessorLabel']]?.['toLocaleLowerCase'](_0x5442b7['code']||a0_0x157ee5['globalConfigs']['countryCode'])['startsWith'](_0x5442b7['searchText'])):_0x5f1f90;_0xa7b119['sfEach'](_0xe5b832=>{if(_0x1027ce['sfFind'](_0x2f7bb3=>_0x2f7bb3===_0xe5b832[_0x5442b7['accessorValue']])){const _0x59403c={};_0x59403c['id']=_0xe5b832[_0x5442b7['accessorValue']],_0x59403c['label']=_0xe5b832[_0x5442b7['accessorLabel']],_0x59403c['checked']=!![],_0x8d4afb['push'](_0x59403c);}else{const _0xc21b8c={};_0xc21b8c['id']=_0xe5b832[_0x5442b7['accessorValue']],_0xc21b8c['label']=_0xe5b832[_0x5442b7['accessorLabel']],_0xc21b8c['checked']=![],_0x390da9['push'](_0xc21b8c);}});if(_0x5442b7['sorting']!=='none'){const _0x3bd2bf=(_0x231d1b,_0x28d55a)=>{return _0x231d1b['label']?.['toString']()?.['toLocaleLowerCase'](_0x5442b7['code']||a0_0x157ee5['globalConfigs']['countryCode'])['localeCompare'](_0x28d55a['label']?.['toString']()?.['toLocaleLowerCase'](_0x5442b7['code']||a0_0x157ee5['globalConfigs']['countryCode']));};_0x8d4afb=_0x8d4afb['sort'](_0x3bd2bf),_0x390da9=_0x390da9['sort'](_0x3bd2bf),_0x5442b7['sorting']==='desc'&&(_0x8d4afb=_0x8d4afb['reverse'](),_0x390da9=_0x390da9['reverse']());}_0x3419bb=[..._0x8d4afb,..._0x390da9];}catch(_0x2f4f03){console['warn']('UNKNOWN_ERROR');}const _0x35ca5f=_0x5442b7['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x2891f5={};return _0x2891f5['issm']=_0x445d63,_0x2891f5['ddicss']=_0x35ca5f,_0x2891f5['data']=_0x5f1f90,_0x2891f5['selects']=_0x57f128,_0x2891f5['selectIds']=_0x1027ce,_0x2891f5['isAllSelected']=_0x287086,_0x2891f5['rows']=_0x3419bb,_0x2891f5;},[_0x5442b7['data']?.['length'],_0x5442b7['value'],_0x5442b7['accessorLabel'],_0x5442b7['accessorValue'],_0x5442b7['searchText'],_0x5442b7['sorting']]);function _0x1daebc(_0x405bda,_0xedc376){_0x405bda['preventDefault']();try{let _0x222bfd=_0x2b42c2['selectIds'];_0x222bfd['sfFind'](_0x1e8e0d=>_0x1e8e0d===_0xedc376)?_0x222bfd=_0x222bfd['sfFilter'](_0x48dac0=>_0x48dac0!==_0xedc376):_0x222bfd['push'](_0xedc376);if(_0x5442b7['onChange']){const _0x26396e=_0x2b42c2['selectIds']['length']===_0x2b42c2['data']?.['length'];_0x5442b7['onChange'](_0x222bfd,_0x26396e);}_0x5442b7['refCmb']['current']?.['focus']();}catch(_0x25022b){}}function _0x4988a5(_0x3f737c){_0x3f737c['preventDefault']();try{let _0x3ea789=[];!_0x2b42c2['isAllSelected']&&(_0x3ea789=_0x2b42c2['data']['sfMap'](_0x4636fd=>_0x4636fd[_0x5442b7['accessorValue']])),_0x5442b7['onChange']&&_0x5442b7['onChange'](_0x3ea789,!_0x2b42c2['isAllSelected']),_0x5442b7['refCmb']['current']?.['focus']();}catch(_0x20bb71){}}function _0x4129c7(){_0x5442b7['onClose']();}function _0x456a0a(){_0x5442b7['onChange']&&_0x5442b7['onChange'](_0x495a4b['current'],_0x495a4b['current']['length']===_0x2b42c2['data']?.['length']),_0x5442b7['onClose']();}const _0x22cb4f=a0_0x1bfa1b['useCallback'](_0x26242a=>{try{if(_0x2b42c2['issm'])return;const _0xe8ae34=_0x5442b7['refCmb']['current']?.['getBoundingClientRect']();_0x41fa19['current']&&(_0x41fa19['current']['style']['display']='flex',_0x41fa19['current']['style']['left']=_0xe8ae34?.['left']+'px',_0x41fa19['current']['style']['top']=(_0xe8ae34?.['top']+_0xe8ae34?.['height']+_0x41fa19['current']['offsetHeight']<window?.['innerHeight']?_0xe8ae34?.['top']+_0xe8ae34?.['height']:_0xe8ae34?.['top']-_0x41fa19['current']['offsetHeight'])+'px',_0x41fa19['current']['style']['width']=_0xe8ae34?.['width']+'px'),_0x26242a&&_0x41fa19['current']&&_0x5442b7['refC']['current']?.['contains'](_0x26242a['target'])&&(_0x41fa19['current']['style']['display']=!a0_0x3b64d8(_0xe8ae34['top'],_0xe8ae34['left'],_0xe8ae34['right'],_0x26242a['target'])?'none':'flex');}catch(_0x494ad8){}},[]);a0_0x1bfa1b['useEffect'](()=>{_0x41fa19['current']&&setTimeout(()=>{_0x22cb4f();},0xfa);},[_0x41fa19['current']]),a0_0x1bfa1b['useEffect'](()=>{return window?.['removeEventListener']('scroll',_0x22cb4f,!![]),window?.['removeEventListener']('resize',_0x22cb4f,!![]),window?.['addEventListener']('scroll',_0x22cb4f,!![]),window?.['addEventListener']('resize',_0x22cb4f,!![]),()=>{window?.['removeEventListener']('scroll',_0x22cb4f,!![]),window?.['removeEventListener']('resize',_0x22cb4f,!![]);};},[]),a0_0x1bfa1b['useEffect'](()=>{_0x22cb4f();},[_0x2b42c2['rows']['length'],_0x5442b7['searchText']]),a0_0x1bfa1b['useEffect'](()=>{const _0x37cfa6=window?.['setTimeout'](()=>{_0x5442b7['onSetRefTar'](_0x41fa19);},0x1f4);return()=>{window?.['clearTimeout'](_0x37cfa6);};},[]);const _0x67bec={};_0x67bec['position']='fixed',_0x67bec['left']=0x0,_0x67bec['top']=0x0,_0x67bec['right']=0x0,_0x67bec['bottom']=0x0,_0x67bec['zIndex']=_0xd53573,_0x67bec['display']='flex',_0x67bec['flexDirection']='column',_0x67bec['justifyContent']='center',_0x67bec['backgroundColor']='#17171754',_0x67bec['boxShadow']='0px\x200px\x205px\x20black';const _0x27261b={};_0x27261b['minWidth']='15rem',_0x27261b['maxWidth']='21rem',_0x27261b['display']='flex',_0x27261b['flexDirection']='column',_0x27261b['margin']='auto';const _0x10c665={};_0x10c665['marginBottom']=0x2;const _0x1f1769={};_0x1f1769['minHeight']='15.5rem',_0x1f1769['maxHeight']='15.5rem',_0x1f1769['boxShadow']='rgb(179\x20179\x20179\x20/\x2022%)\x200px\x202px\x201px';const _0x2659c7={};_0x2659c7['btnType']='danger',_0x2659c7['onClick']=_0x456a0a,_0x2659c7['children']='✖';const _0x205bc5={};_0x205bc5['btnType']='success',_0x205bc5['onClick']=_0x4129c7,_0x205bc5['children']='✔';const _0x40ec0a={};return _0x40ec0a['maxHeight']='15.5rem',_0x40ec0a['boxShadow']='rgb(179\x20179\x20179\x20/\x2022%)\x200px\x202px\x201px',_0x40ec0a['zIndex']=_0xd53573,(0x0,a0_0x23a64f['jsx'])('div',{'className':'d-select-sg-container','children':_0x2b42c2['issm']?(0x0,a0_0x1c45c0['createPortal'])((0x0,a0_0x23a64f['jsx'])('div',{'style':_0x67bec,'children':(0x0,a0_0x23a64f['jsxs'])('div',{'style':_0x27261b,'children':[(0x0,a0_0x23a64f['jsx'])('input',{'role':'mssearch','readOnly':![],'autoFocus':![],'disabled':_0x5442b7['disabled'],'type':'text','style':_0x10c665,'placeholder':_0x5442b7['searchholder']||a0_0x157ee5['globalConfigs']['searchholder']||_0x5442b7['placeholder'],'value':_0x5442b7['searchText'],'onChange':_0x2143f6=>_0x5442b7['setSearchText'](_0x2143f6['target']['value']?.['toLowerCase']()),'onBlur':_0x5442b7['onBlur']}),(0x0,a0_0x23a64f['jsx'])('div',{'ref':_0x41fa19,'className':'d-select-sg-list-m','style':_0x1f1769,'children':(0x0,a0_0x23a64f['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x2b42c2['rows']['length']&&_0x5442b7['selectall']?(0x0,a0_0x23a64f['jsxs'])(a0_0x23a64f['Fragment'],{'children':[(0x0,a0_0x23a64f['jsx'])(a0_0x1e786d['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x2b42c2['isAllSelected'],'label':_0x5442b7['selectall'],'value':!![],'onClick':_0x34a97f=>_0x4988a5(_0x34a97f)}),(0x0,a0_0x23a64f['jsx'])('hr',{})]}):(0x0,a0_0x23a64f['jsx'])(a0_0x23a64f['Fragment'],{}),!_0x2b42c2['rows']['length']?(0x0,a0_0x23a64f['jsx'])('h3',{'className':'d-select-empty-list','children':_0x5442b7['emptydata']||a0_0x157ee5['globalConfigs']['emptydata']||''}):(0x0,a0_0x23a64f['jsx'])(a0_0x23a64f['Fragment'],{}),_0x2b42c2['rows']?.['sfMap'](_0x419ad0=>(0x0,a0_0x23a64f['jsx'])(a0_0x1e786d['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x419ad0['checked'],'label':_0x419ad0['label'],'value':_0x419ad0['id'],'onChange':_0x39d3c9=>_0x1daebc(_0x39d3c9,_0x419ad0['id'])},_0x419ad0['id']))]})}),(0x0,a0_0x23a64f['jsxs'])('div',{'className':'d-select-sg-list-mb','children':[(0x0,a0_0x23a64f['jsx'])(a0_0x55c0f9['Button'],_0x2659c7),(0x0,a0_0x23a64f['jsx'])(a0_0x55c0f9['Button'],_0x205bc5)]})]})}),document?.['body']):(0x0,a0_0x1c45c0['createPortal'])((0x0,a0_0x23a64f['jsx'])('div',{'ref':_0x41fa19,'className':'d-select-sg-list','style':_0x40ec0a,'children':(0x0,a0_0x23a64f['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x2b42c2['rows']['length']&&_0x5442b7['selectall']?(0x0,a0_0x23a64f['jsxs'])(a0_0x23a64f['Fragment'],{'children':[(0x0,a0_0x23a64f['jsx'])(a0_0x1e786d['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x2b42c2['isAllSelected'],'label':_0x5442b7['selectall'],'value':!![],'onClick':_0x4d113d=>_0x4988a5(_0x4d113d)}),(0x0,a0_0x23a64f['jsx'])('hr',{})]}):(0x0,a0_0x23a64f['jsx'])(a0_0x23a64f['Fragment'],{}),!_0x2b42c2['rows']['length']?(0x0,a0_0x23a64f['jsx'])('h3',{'className':'d-select-empty-list','children':_0x5442b7['emptydata']||a0_0x157ee5['globalConfigs']['emptydata']||''}):(0x0,a0_0x23a64f['jsx'])(a0_0x23a64f['Fragment'],{}),_0x2b42c2['rows']?.['sfMap'](_0x430808=>(0x0,a0_0x23a64f['jsx'])(a0_0x1e786d['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x430808['checked'],'label':_0x430808['label'],'value':_0x430808['id'],'onChange':_0x367eaa=>_0x1daebc(_0x367eaa,_0x430808['id'])},_0x430808['id']))]})}),document?.['body'])});}function a0_0x7ade40(_0x5bd0c7){const _0x4e855=a0_0x1bfa1b['useRef'](null),_0x343a63=a0_0x1bfa1b['useRef'](null),_0x4e4482=a0_0x1bfa1b['useRef'](null),[_0x313d32,_0x3cecd4]=a0_0x1bfa1b['useState'](![]),[_0x3c0abb,_0x555111]=a0_0x1bfa1b['useState'](''),_0x21a8b6=a0_0x1bfa1b['useMemo'](()=>{let _0x42416c=[],_0x22458c='';const _0x262b06=_0x5bd0c7['data']||[],_0x16b3e9=window?.['innerWidth']<0x280;try{const _0x10f56b=_0x262b06?.['sfFilter'](_0x4d75e0=>(_0x5bd0c7['value']||[])['sfFind'](_0xe37f41=>_0xe37f41===_0x4d75e0[_0x5bd0c7['accessorValue']]));_0x42416c=_0x10f56b['sfMap'](_0x470eca=>_0x470eca[_0x5bd0c7['accessorValue']]),_0x22458c=_0x10f56b['sfMap'](_0x3329d8=>_0x3329d8[_0x5bd0c7['accessorLabel']])['join'](',\x20');}catch(_0x1a9f7e){}const _0x5c3c4c=_0x5bd0c7['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x4b7e88={};return _0x4b7e88['issm']=_0x16b3e9,_0x4b7e88['ddicss']=_0x5c3c4c,_0x4b7e88['selectIds']=_0x42416c,_0x4b7e88['selectLabels']=_0x22458c,_0x4b7e88;},[_0x5bd0c7['data']?.['length'],_0x5bd0c7['value'],_0x5bd0c7['accessorLabel'],_0x5bd0c7['accessorValue']]);function _0x552478(){_0x5bd0c7['onChange']([],![]);}function _0x3b5f5c(){_0x3cecd4(![]),_0x4e4482['current']=null;}return(0x0,a0_0x23a64f['jsx'])(a0_0xf65c40,{'referances':[_0x4e855,_0x4e4482],'isOpen':_0x313d32,'onClickOutside':()=>{if(_0x21a8b6['issm'])return;_0x3cecd4(![]),_0x555111('');},'render':()=>(0x0,a0_0x23a64f['jsxs'])('div',{'id':_0x5bd0c7['id'],'className':'d-w-full','onClick':()=>{!_0x5bd0c7['disabled']&&!_0x21a8b6['issm']&&_0x3cecd4(!![]);},'children':[(0x0,a0_0x23a64f['jsxs'])('div',{'ref':_0x4e855,'className':'d-select-fc','children':[(0x0,a0_0x23a64f['jsx'])('input',{'ref':_0x343a63,'role':'combobox','className':'d-select-fc-input\x20'+(_0x5bd0c7['size']==='sm'?'d-select-fc-input-sm':'')+'\x20'+_0x5bd0c7['className']+'\x20'+(_0x313d32?'text-left-important':''),'readOnly':!_0x313d32,'autoFocus':![],'disabled':_0x5bd0c7['disabled'],'name':_0x5bd0c7['name'],'type':'text','placeholder':_0x313d32?_0x5bd0c7['searchholder']||a0_0x157ee5['globalConfigs']['searchholder']||'':_0x5bd0c7['placeholder'],'value':_0x313d32?_0x3c0abb:_0x21a8b6['selectLabels'],'inputMode':'none','onClick':_0x4d2844=>{try{_0x21a8b6['issm']&&_0x4d2844['preventDefault']();}catch(_0x3569a4){}try{_0x4d2844['stopPropagation']();}catch(_0x4c73d2){}if(_0x5bd0c7['disabled'])return;_0x3cecd4(!![]);},'onChange':_0x458f87=>_0x555111(_0x458f87['target']['value']?.['toLowerCase']()),'onBlur':_0x5bd0c7['onBlur']}),Boolean(_0x21a8b6['selectIds']['length'])&&(0x0,a0_0x23a64f['jsx'])('div',{'className':'d-select-multi-counter\x20multi-counter-blink','children':_0x21a8b6['selectIds']['length']},_0x21a8b6['selectIds']['length']),Boolean(!_0x5bd0c7['noclean']&&_0x21a8b6['selectIds']['length']&&!_0x5bd0c7['disabled'])&&(0x0,a0_0x23a64f['jsx'])(a0_0x1d747e['CloseIcon'],{'className':_0x21a8b6['ddicss'],'onClick':_0x552478}),(0x0,a0_0x23a64f['jsx'])(a0_0x1d747e['DownIcon'],{'className':_0x21a8b6['ddicss']})]}),_0x313d32&&(0x0,a0_0x23a64f['jsx'])(a0_0xc8d11b,{'refC':_0x4e855,'refCmb':_0x343a63,'refTar':_0x4e4482,..._0x5bd0c7,'accessorValue':_0x5bd0c7['accessorValue'],'accessorLabel':_0x5bd0c7['accessorLabel'],'disabled':_0x5bd0c7['disabled'],'placeholder':_0x5bd0c7['placeholder'],'searchholder':_0x5bd0c7['searchholder'],'value':_0x5bd0c7['value'],'searchText':_0x3c0abb,'wcharger':_0x21a8b6,'onSetRefTar':_0x278ea9=>{_0x4e4482['current']=_0x278ea9['current'],_0x3cecd4(_0x3b97f4=>_0x3b97f4);},'setSearchText':_0x2ceeae=>_0x555111(_0x2ceeae),'onBlur':_0x5bd0c7['onBlur'],'onClose':_0x3b5f5c})]})});}function a0_0x28fd6f(_0xbc0c40){return a0_0x7ade40(_0xbc0c40);}exports['Multiselect']=a0_0x28fd6f;
|
|
1
|
+
'use strict';var a0_0x102352=this&&this['__createBinding']||(Object['create']?function(_0x2470cc,_0x68651c,_0x51eb75,_0x443693){if(_0x443693===undefined)_0x443693=_0x51eb75;var _0x589316=Object['getOwnPropertyDescriptor'](_0x68651c,_0x51eb75);if(!_0x589316||('get'in _0x589316?!_0x68651c['__esModule']:_0x589316['writable']||_0x589316['configurable'])){const _0x3b8fb={};_0x3b8fb['enumerable']=!![],_0x3b8fb['get']=function(){return _0x68651c[_0x51eb75];},_0x589316=_0x3b8fb;}Object['defineProperty'](_0x2470cc,_0x443693,_0x589316);}:function(_0x103b88,_0x3755b0,_0xc6f6e0,_0x5c4a65){if(_0x5c4a65===undefined)_0x5c4a65=_0xc6f6e0;_0x103b88[_0x5c4a65]=_0x3755b0[_0xc6f6e0];}),a0_0x1ba73f=this&&this['__setModuleDefault']||(Object['create']?function(_0x501bd0,_0x154df2){const _0x435711={};_0x435711['enumerable']=!![],_0x435711['value']=_0x154df2,Object['defineProperty'](_0x501bd0,'default',_0x435711);}:function(_0x33c040,_0x262a2f){_0x33c040['default']=_0x262a2f;}),a0_0x1385a9=this&&this['__importStar']||function(_0x3b0fa8){if(_0x3b0fa8&&_0x3b0fa8['__esModule'])return _0x3b0fa8;var _0x16cf20={};if(_0x3b0fa8!=null){for(var _0x30a7fe in _0x3b0fa8)if(_0x30a7fe!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x3b0fa8,_0x30a7fe))a0_0x102352(_0x16cf20,_0x3b0fa8,_0x30a7fe);}return a0_0x1ba73f(_0x16cf20,_0x3b0fa8),_0x16cf20;};const a0_0x1661c7={};a0_0x1661c7['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1661c7),exports['Multiselect']=void 0x0;const a0_0x59e0f8=require('react/jsx-runtime'),a0_0x56c479=a0_0x1385a9(require('react')),a0_0x49c951=require('./Icons'),a0_0x52ba1d=require('./common'),a0_0x43b2d5=require('./Checkbox'),a0_0x3482ff=require('react-dom'),a0_0x3031fb=require('./Button'),a0_0x4c6d93=require('./utils'),a0_0x511db9=()=>{};var a0_0x3dc20a;(function(_0xb20fda){_0xb20fda['MOUSE_DOWN']='mousedown',_0xb20fda['MOUSE_UP']='mouseup',_0xb20fda['MOUSE_MOVE']='mousemove',_0xb20fda['MOUSE_CLICK']='click',_0xb20fda['FOCUS']='focus';}(a0_0x3dc20a||(a0_0x3dc20a={})));function a0_0x1e46c9(_0x3358d2){const _0x76a732=a0_0x56c479['useCallback'](_0xbbe35f=>{_0x3358d2['isOpen']&&!_0x3358d2['referances']['sfMap'](_0x2dfe86=>_0x2dfe86['current']?.['contains'](_0xbbe35f['target']))['sfFilter'](_0x101f20=>_0x101f20)['length']&&_0x3358d2['onClickOutside']();},[_0x3358d2['referances'],_0x3358d2['isOpen'],_0x3358d2['onClickOutside']]);return a0_0x56c479['useEffect'](()=>{return window?.['removeEventListener'](a0_0x3dc20a['MOUSE_UP'],_0x76a732,!![]),window?.['removeEventListener'](a0_0x3dc20a['MOUSE_CLICK'],_0x76a732,!![]),document?.['removeEventListener'](a0_0x3dc20a['FOCUS'],_0x76a732,!![]),_0x3358d2['isOpen']&&(window?.['addEventListener'](a0_0x3dc20a['MOUSE_UP'],_0x76a732,!![]),window?.['addEventListener'](a0_0x3dc20a['MOUSE_CLICK'],_0x76a732,!![]),document?.['addEventListener'](a0_0x3dc20a['FOCUS'],_0x76a732,!![])),()=>{window?.['removeEventListener'](a0_0x3dc20a['MOUSE_UP'],_0x76a732,!![]),window?.['removeEventListener'](a0_0x3dc20a['MOUSE_CLICK'],_0x76a732,!![]),document?.['removeEventListener'](a0_0x3dc20a['FOCUS'],_0x76a732,!![]);};},[_0x76a732]),(0x0,a0_0x59e0f8['jsx'])(a0_0x59e0f8['Fragment'],{'children':_0x3358d2['render']()});}function a0_0x4675e3(_0x92634f,_0x59b872,_0x6fac84,_0x5543b6){try{const _0x7910a=_0x5543b6?.['getBoundingClientRect']()?.['top'],_0x3139fe=_0x5543b6?.['getBoundingClientRect']()?.['bottom'],_0x319231=_0x5543b6?.['getBoundingClientRect']()?.['left'],_0x37330e=_0x5543b6?.['getBoundingClientRect']()?.['right'],_0x31281a=_0x7910a<=_0x92634f&&_0x92634f<=_0x3139fe&&_0x319231<=_0x59b872&&_0x37330e>=_0x6fac84;return _0x31281a;}catch(_0x5737f5){}return![];}function a0_0x19d6b8(_0x9731d8){const _0x35493f=a0_0x56c479['useRef'](_0x9731d8['value']||[]),_0x5e15b5=a0_0x56c479['useRef'](null),_0x4419e9=a0_0x4c6d93['Indexer']['useHook'](),_0x534ec6=a0_0x56c479['useMemo'](()=>{let _0x54dc8f=[],_0x460759=[],_0x33f7ff=![],_0x1087c6=[];const _0x5006ac=[..._0x9731d8['data']||[]],_0x3cc378=window?.['innerWidth']<0x280;try{_0x54dc8f=_0x5006ac['sfFilter'](_0x2f606f=>(_0x9731d8['value']||[])['sfFind'](_0x30fa9b=>_0x30fa9b===_0x2f606f[_0x9731d8['accessorValue']])),_0x460759=_0x54dc8f['sfMap'](_0x25c5fe=>_0x25c5fe[_0x9731d8['accessorValue']]),_0x33f7ff=_0x460759['length']===_0x5006ac?.['length'];}catch(_0xbaaf85){}try{let _0xf92154=[],_0x5a52bb=[],_0x153381=_0x9731d8['searchText']?!_0x9731d8['search']||_0x9731d8['search']==='anywhere'?_0x5006ac['sfFilter'](_0x2d1ecc=>_0x2d1ecc[_0x9731d8['accessorLabel']]?.['toLocaleLowerCase'](_0x9731d8['code']||a0_0x52ba1d['globalConfigs']['countryCode'])['includes'](_0x9731d8['searchText'])):_0x5006ac['sfFilter'](_0x14eb14=>_0x14eb14[_0x9731d8['accessorLabel']]?.['toLocaleLowerCase'](_0x9731d8['code']||a0_0x52ba1d['globalConfigs']['countryCode'])['startsWith'](_0x9731d8['searchText'])):_0x5006ac;_0x153381['sfEach'](_0x4240fb=>{if(_0x460759['sfFind'](_0x2cdd4d=>_0x2cdd4d===_0x4240fb[_0x9731d8['accessorValue']])){const _0x181797={};_0x181797['id']=_0x4240fb[_0x9731d8['accessorValue']],_0x181797['label']=_0x4240fb[_0x9731d8['accessorLabel']],_0x181797['checked']=!![],_0xf92154['push'](_0x181797);}else{const _0x493ffc={};_0x493ffc['id']=_0x4240fb[_0x9731d8['accessorValue']],_0x493ffc['label']=_0x4240fb[_0x9731d8['accessorLabel']],_0x493ffc['checked']=![],_0x5a52bb['push'](_0x493ffc);}});if(_0x9731d8['sorting']!=='none'){const _0x2892d6=(_0x4b1023,_0xf82bca)=>{return _0x4b1023['label']?.['toString']()?.['toLocaleLowerCase'](_0x9731d8['code']||a0_0x52ba1d['globalConfigs']['countryCode'])['localeCompare'](_0xf82bca['label']?.['toString']()?.['toLocaleLowerCase'](_0x9731d8['code']||a0_0x52ba1d['globalConfigs']['countryCode']));};_0xf92154=_0xf92154['sort'](_0x2892d6),_0x5a52bb=_0x5a52bb['sort'](_0x2892d6),_0x9731d8['sorting']==='desc'&&(_0xf92154=_0xf92154['reverse'](),_0x5a52bb=_0x5a52bb['reverse']());}_0x1087c6=[..._0xf92154,..._0x5a52bb];}catch(_0x2d8c2e){console['warn']('UNKNOWN_ERROR');}const _0x55861e=_0x9731d8['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0xbe55a7={};return _0xbe55a7['issm']=_0x3cc378,_0xbe55a7['ddicss']=_0x55861e,_0xbe55a7['data']=_0x5006ac,_0xbe55a7['selects']=_0x54dc8f,_0xbe55a7['selectIds']=_0x460759,_0xbe55a7['isAllSelected']=_0x33f7ff,_0xbe55a7['rows']=_0x1087c6,_0xbe55a7;},[_0x9731d8['data']?.['length'],_0x9731d8['value'],_0x9731d8['accessorLabel'],_0x9731d8['accessorValue'],_0x9731d8['searchText'],_0x9731d8['sorting']]);function _0x22f571(_0x1b91d2,_0x23b8f5){_0x1b91d2['preventDefault']();try{let _0x2a5259=_0x534ec6['selectIds'];_0x2a5259['sfFind'](_0x35c94c=>_0x35c94c===_0x23b8f5)?_0x2a5259=_0x2a5259['sfFilter'](_0x875f90=>_0x875f90!==_0x23b8f5):_0x2a5259['push'](_0x23b8f5);if(_0x9731d8['onChange']){const _0x338fd6=_0x534ec6['selectIds']['length']===_0x534ec6['data']?.['length'];_0x9731d8['onChange'](_0x2a5259,_0x338fd6);}_0x9731d8['refCmb']['current']?.['focus']();}catch(_0x129950){}}function _0x3ba3de(_0x336235){_0x336235['preventDefault']();try{let _0x4c3fa0=[];!_0x534ec6['isAllSelected']&&(_0x4c3fa0=_0x534ec6['data']['sfMap'](_0x37d3a6=>_0x37d3a6[_0x9731d8['accessorValue']])),_0x9731d8['onChange']&&_0x9731d8['onChange'](_0x4c3fa0,!_0x534ec6['isAllSelected']),_0x9731d8['refCmb']['current']?.['focus']();}catch(_0x5979bf){}}function _0x3ed7da(){_0x9731d8['onClose']();}function _0x4312c6(){_0x9731d8['onChange']&&_0x9731d8['onChange'](_0x35493f['current'],_0x35493f['current']['length']===_0x534ec6['data']?.['length']),_0x9731d8['onClose']();}const _0xb2b1f2=a0_0x56c479['useCallback'](_0x529895=>{try{if(_0x534ec6['issm'])return;const _0x34ea91=_0x9731d8['refCmb']['current']?.['getBoundingClientRect']();_0x5e15b5['current']&&(_0x5e15b5['current']['style']['display']='flex',_0x5e15b5['current']['style']['left']=_0x34ea91?.['left']+'px',_0x5e15b5['current']['style']['top']=(_0x34ea91?.['top']+_0x34ea91?.['height']+_0x5e15b5['current']['offsetHeight']<window?.['innerHeight']?_0x34ea91?.['top']+_0x34ea91?.['height']:_0x34ea91?.['top']-_0x5e15b5['current']['offsetHeight'])+'px',_0x5e15b5['current']['style']['width']=_0x34ea91?.['width']+'px'),_0x529895&&_0x5e15b5['current']&&_0x9731d8['refC']['current']?.['contains'](_0x529895['target'])&&(_0x5e15b5['current']['style']['display']=!a0_0x4675e3(_0x34ea91['top'],_0x34ea91['left'],_0x34ea91['right'],_0x529895['target'])?'none':'flex');}catch(_0x4fa7f6){}},[]);a0_0x56c479['useEffect'](()=>{_0x5e15b5['current']&&setTimeout(()=>{_0xb2b1f2();},0xfa);},[_0x5e15b5['current']]),a0_0x56c479['useEffect'](()=>{return window?.['removeEventListener']('scroll',_0xb2b1f2,!![]),window?.['removeEventListener']('resize',_0xb2b1f2,!![]),window?.['addEventListener']('scroll',_0xb2b1f2,!![]),window?.['addEventListener']('resize',_0xb2b1f2,!![]),()=>{window?.['removeEventListener']('scroll',_0xb2b1f2,!![]),window?.['removeEventListener']('resize',_0xb2b1f2,!![]);};},[]),a0_0x56c479['useEffect'](()=>{_0xb2b1f2();},[_0x534ec6['rows']['length'],_0x9731d8['searchText']]),a0_0x56c479['useEffect'](()=>{const _0x133fc8=window?.['setTimeout'](()=>{_0x9731d8['onSetRefTar'](_0x5e15b5);},0x1f4);return()=>{window?.['clearTimeout'](_0x133fc8);};},[]);const _0x43014f={};_0x43014f['position']='fixed',_0x43014f['left']=0x0,_0x43014f['top']=0x0,_0x43014f['right']=0x0,_0x43014f['bottom']=0x0,_0x43014f['zIndex']=_0x4419e9,_0x43014f['display']='flex',_0x43014f['flexDirection']='column',_0x43014f['justifyContent']='center',_0x43014f['backgroundColor']='#17171754',_0x43014f['boxShadow']='0px\x200px\x205px\x20black';const _0x1a4866={};_0x1a4866['minWidth']='15rem',_0x1a4866['maxWidth']='21rem',_0x1a4866['display']='flex',_0x1a4866['flexDirection']='column',_0x1a4866['margin']='auto';const _0x1eabca={};_0x1eabca['marginBottom']=0x2;const _0x44ba58={};_0x44ba58['minHeight']='15.5rem',_0x44ba58['maxHeight']='15.5rem',_0x44ba58['boxShadow']='rgb(179\x20179\x20179\x20/\x2022%)\x200px\x202px\x201px';const _0xd30b4f={};_0xd30b4f['btnType']='danger',_0xd30b4f['onClick']=_0x4312c6,_0xd30b4f['children']='✖';const _0x4c62fe={};_0x4c62fe['btnType']='success',_0x4c62fe['onClick']=_0x3ed7da,_0x4c62fe['children']='✔';const _0x2c1767={};return _0x2c1767['maxHeight']='15.5rem',_0x2c1767['boxShadow']='rgb(179\x20179\x20179\x20/\x2022%)\x200px\x202px\x201px',_0x2c1767['zIndex']=_0x4419e9,(0x0,a0_0x59e0f8['jsx'])('div',{'className':'d-select-sg-container','children':_0x534ec6['issm']?(0x0,a0_0x3482ff['createPortal'])((0x0,a0_0x59e0f8['jsx'])('div',{'style':_0x43014f,'children':(0x0,a0_0x59e0f8['jsxs'])('div',{'style':_0x1a4866,'children':[(0x0,a0_0x59e0f8['jsx'])('input',{'role':'mssearch','readOnly':![],'autoFocus':![],'disabled':_0x9731d8['disabled'],'type':'text','style':_0x1eabca,'placeholder':_0x9731d8['searchholder']||a0_0x52ba1d['globalConfigs']['searchholder']||_0x9731d8['placeholder'],'value':_0x9731d8['searchText'],'onChange':_0x14f1ba=>_0x9731d8['setSearchText'](_0x14f1ba['target']['value']?.['toLowerCase']()),'onBlur':_0x9731d8['onBlur']}),(0x0,a0_0x59e0f8['jsx'])('div',{'ref':_0x5e15b5,'className':'d-select-sg-list-m','style':_0x44ba58,'children':(0x0,a0_0x59e0f8['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x534ec6['rows']['length']&&_0x9731d8['selectall']?(0x0,a0_0x59e0f8['jsxs'])(a0_0x59e0f8['Fragment'],{'children':[(0x0,a0_0x59e0f8['jsx'])(a0_0x43b2d5['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x534ec6['isAllSelected'],'label':_0x9731d8['selectall'],'value':!![],'onClick':_0xb645c5=>_0x3ba3de(_0xb645c5)}),(0x0,a0_0x59e0f8['jsx'])('hr',{})]}):(0x0,a0_0x59e0f8['jsx'])(a0_0x59e0f8['Fragment'],{}),!_0x534ec6['rows']['length']?(0x0,a0_0x59e0f8['jsx'])('h3',{'className':'d-select-empty-list','children':_0x9731d8['emptydata']||a0_0x52ba1d['globalConfigs']['emptydata']||''}):(0x0,a0_0x59e0f8['jsx'])(a0_0x59e0f8['Fragment'],{}),_0x534ec6['rows']?.['sfMap'](_0x266fa6=>(0x0,a0_0x59e0f8['jsx'])(a0_0x43b2d5['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x266fa6['checked'],'label':_0x266fa6['label'],'value':_0x266fa6['id'],'onChange':_0x188e1d=>_0x22f571(_0x188e1d,_0x266fa6['id'])},_0x266fa6['id']))]})}),(0x0,a0_0x59e0f8['jsxs'])('div',{'className':'d-select-sg-list-mb','children':[(0x0,a0_0x59e0f8['jsx'])(a0_0x3031fb['Button'],_0xd30b4f),(0x0,a0_0x59e0f8['jsx'])(a0_0x3031fb['Button'],_0x4c62fe)]})]})}),document?.['body']):(0x0,a0_0x3482ff['createPortal'])((0x0,a0_0x59e0f8['jsx'])('div',{'ref':_0x5e15b5,'className':'d-select-sg-list','style':_0x2c1767,'children':(0x0,a0_0x59e0f8['jsxs'])('ul',{'className':'d-select-sg-list-ul\x20d-scrollbar-hide','children':[_0x534ec6['rows']['length']&&_0x9731d8['selectall']?(0x0,a0_0x59e0f8['jsxs'])(a0_0x59e0f8['Fragment'],{'children':[(0x0,a0_0x59e0f8['jsx'])(a0_0x43b2d5['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0x534ec6['isAllSelected'],'label':_0x9731d8['selectall'],'value':!![],'onClick':_0x132442=>_0x3ba3de(_0x132442)}),(0x0,a0_0x59e0f8['jsx'])('hr',{})]}):(0x0,a0_0x59e0f8['jsx'])(a0_0x59e0f8['Fragment'],{}),!_0x534ec6['rows']['length']?(0x0,a0_0x59e0f8['jsx'])('h3',{'className':'d-select-empty-list','children':_0x9731d8['emptydata']||a0_0x52ba1d['globalConfigs']['emptydata']||''}):(0x0,a0_0x59e0f8['jsx'])(a0_0x59e0f8['Fragment'],{}),_0x534ec6['rows']?.['sfMap'](_0xbed0e=>(0x0,a0_0x59e0f8['jsx'])(a0_0x43b2d5['Checkbox'],{'className':'d-select-multi-item\x20d-selct-hover','checked':_0xbed0e['checked'],'label':_0xbed0e['label'],'value':_0xbed0e['id'],'onChange':_0x115013=>_0x22f571(_0x115013,_0xbed0e['id'])},_0xbed0e['id']))]})}),document?.['body'])});}function a0_0x118145(_0x21d050){const _0x12f321=a0_0x56c479['useRef'](null),_0xeed3e=a0_0x56c479['useRef'](null),_0x175f45=a0_0x56c479['useRef'](null),[_0x3af77e,_0x539174]=a0_0x56c479['useState'](![]),[_0x14c41b,_0x233bbd]=a0_0x56c479['useState'](''),_0x280681=a0_0x56c479['useMemo'](()=>{let _0x1747b4=[],_0x5bb511='';const _0x58a851=_0x21d050['data']||[],_0x3af285=window?.['innerWidth']<0x280;try{const _0x3e40c7=_0x58a851?.['sfFilter'](_0x3fada6=>(_0x21d050['value']||[])['sfFind'](_0x586d41=>_0x586d41===_0x3fada6[_0x21d050['accessorValue']]));_0x1747b4=_0x3e40c7['sfMap'](_0x44b6f0=>_0x44b6f0[_0x21d050['accessorValue']]),_0x5bb511=_0x3e40c7['sfMap'](_0x24b986=>_0x24b986[_0x21d050['accessorLabel']])['join'](',\x20');}catch(_0x59e9e3){}const _0xc9e6a7=_0x21d050['disabled']?'d-h-full\x20d-disable-down':'d-h-full',_0x590c09={};return _0x590c09['issm']=_0x3af285,_0x590c09['ddicss']=_0xc9e6a7,_0x590c09['selectIds']=_0x1747b4,_0x590c09['selectLabels']=_0x5bb511,_0x590c09;},[_0x21d050['data']?.['length'],_0x21d050['value'],_0x21d050['accessorLabel'],_0x21d050['accessorValue']]);function _0x4d85e8(){_0x21d050['onChange']([],![]);}function _0x283635(){_0x539174(![]),_0x175f45['current']=null;}return(0x0,a0_0x59e0f8['jsx'])(a0_0x1e46c9,{'referances':[_0x12f321,_0x175f45],'isOpen':_0x3af77e,'onClickOutside':()=>{if(_0x280681['issm'])return;_0x539174(![]),_0x233bbd('');},'render':()=>(0x0,a0_0x59e0f8['jsxs'])('div',{'id':_0x21d050['id'],'className':'d-w-full','onClick':()=>{!_0x21d050['disabled']&&!_0x280681['issm']&&_0x539174(!![]);},'children':[(0x0,a0_0x59e0f8['jsxs'])('div',{'ref':_0x12f321,'className':'d-select-fc','children':[(0x0,a0_0x59e0f8['jsx'])('input',{'ref':_0xeed3e,'role':'combobox','className':'d-select-fc-input\x20'+(_0x21d050['size']==='sm'?'d-select-fc-input-sm':'')+'\x20'+_0x21d050['className']+'\x20'+(_0x3af77e?'text-left-important':''),'readOnly':!_0x3af77e,'autoFocus':![],'disabled':_0x21d050['disabled'],'name':_0x21d050['name'],'type':'text','placeholder':_0x3af77e?_0x21d050['searchholder']||a0_0x52ba1d['globalConfigs']['searchholder']||'':_0x21d050['placeholder'],'value':_0x3af77e?_0x14c41b:_0x280681['selectLabels'],'inputMode':'none','onClick':_0x7dec29=>{try{_0x280681['issm']&&_0x7dec29['preventDefault']();}catch(_0x200ea7){}try{_0x7dec29['stopPropagation']();}catch(_0x81b2b0){}if(_0x21d050['disabled'])return;_0x539174(!![]);},'onChange':_0x4a2963=>_0x233bbd(_0x4a2963['target']['value']?.['toLowerCase']()),'onBlur':_0x21d050['onBlur']}),Boolean(_0x280681['selectIds']['length'])&&(0x0,a0_0x59e0f8['jsx'])('div',{'className':'d-select-multi-counter\x20multi-counter-blink','children':_0x280681['selectIds']['length']},_0x280681['selectIds']['length']),Boolean(!_0x21d050['noclean']&&_0x280681['selectIds']['length']&&!_0x21d050['disabled'])&&(0x0,a0_0x59e0f8['jsx'])(a0_0x49c951['CloseIcon'],{'className':_0x280681['ddicss'],'onClick':_0x4d85e8}),(0x0,a0_0x59e0f8['jsx'])(a0_0x49c951['DownIcon'],{'className':_0x280681['ddicss']})]}),_0x3af77e&&(0x0,a0_0x59e0f8['jsx'])(a0_0x19d6b8,{'refC':_0x12f321,'refCmb':_0xeed3e,'refTar':_0x175f45,..._0x21d050,'accessorValue':_0x21d050['accessorValue'],'accessorLabel':_0x21d050['accessorLabel'],'disabled':_0x21d050['disabled'],'placeholder':_0x21d050['placeholder'],'searchholder':_0x21d050['searchholder'],'value':_0x21d050['value'],'searchText':_0x14c41b,'wcharger':_0x280681,'onSetRefTar':_0x5ee7e4=>{_0x175f45['current']=_0x5ee7e4['current'],_0x539174(_0x178820=>_0x178820);},'setSearchText':_0x3cc03f=>_0x233bbd(_0x3cc03f),'onBlur':_0x21d050['onBlur'],'onClose':_0x283635})]})});}function a0_0x32f53a(_0x15e698){return a0_0x118145(_0x15e698);}exports['Multiselect']=a0_0x32f53a;
|
package/dist/Notes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x3936fa={};a0_0x3936fa['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x3936fa),exports['Note']=void 0x0;const a0_0x491608=require('react/jsx-runtime');function a0_0x54dbbb(_0x264699){const _0x3c338b={};return _0x3c338b['className']='d-notes-panel\x20d-note-'+_0x264699['type']+'\x20'+(_0x264699['className']||''),_0x3c338b['children']=_0x264699['children'],(0x0,a0_0x491608['jsx'])('div',_0x3c338b);}function a0_0x2b7c6b(_0x54ea9e){return a0_0x54dbbb(_0x54ea9e);}exports['Note']=a0_0x2b7c6b;
|
package/dist/Numeral.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x8d4326=this&&this['__createBinding']||(Object['create']?function(_0x5cd139,_0x3a1099,_0x42f843,_0x304ad0){if(_0x304ad0===undefined)_0x304ad0=_0x42f843;var _0x51ba62=Object['getOwnPropertyDescriptor'](_0x3a1099,_0x42f843);if(!_0x51ba62||('get'in _0x51ba62?!_0x3a1099['__esModule']:_0x51ba62['writable']||_0x51ba62['configurable'])){const _0x226a56={};_0x226a56['enumerable']=!![],_0x226a56['get']=function(){return _0x3a1099[_0x42f843];},_0x51ba62=_0x226a56;}Object['defineProperty'](_0x5cd139,_0x304ad0,_0x51ba62);}:function(_0x24cd33,_0xea6582,_0x1c1ef5,_0x5a039b){if(_0x5a039b===undefined)_0x5a039b=_0x1c1ef5;_0x24cd33[_0x5a039b]=_0xea6582[_0x1c1ef5];}),a0_0x5906ee=this&&this['__setModuleDefault']||(Object['create']?function(_0x73f07c,_0x5e3b1f){const _0x2d7d25={};_0x2d7d25['enumerable']=!![],_0x2d7d25['value']=_0x5e3b1f,Object['defineProperty'](_0x73f07c,'default',_0x2d7d25);}:function(_0xa91933,_0x1bbc1e){_0xa91933['default']=_0x1bbc1e;}),a0_0x5e785d=this&&this['__importStar']||function(_0x1fe896){if(_0x1fe896&&_0x1fe896['__esModule'])return _0x1fe896;var _0x3afd58={};if(_0x1fe896!=null){for(var _0x4f4b38 in _0x1fe896)if(_0x4f4b38!=='default'&&Object['prototype']['hasOwnProperty']['call'](_0x1fe896,_0x4f4b38))a0_0x8d4326(_0x3afd58,_0x1fe896,_0x4f4b38);}return a0_0x5906ee(_0x3afd58,_0x1fe896),_0x3afd58;};const a0_0x20fa65={};a0_0x20fa65['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x20fa65),exports['NumeralInput']=exports['NumeralSlot']=exports['CurrencySlot']=exports['numeralUtil']=void 0x0;const a0_0x361d0a=require('react/jsx-runtime'),a0_0x269a2f=a0_0x5e785d(require('react')),a0_0x4358ad=require('./common'),a0_0x572d5b=0x2,a0_0x1cfc51=0x0,a0_0x277b25=_0xd9e1d=>_0xd9e1d==undefined||_0xd9e1d===null,a0_0x371f4a=(_0x4f16ef,_0xfc8c39)=>a0_0x277b25(_0xfc8c39)?_0x4f16ef:_0xfc8c39,a0_0x1e27ab=_0x272fa7=>{const _0x1baf0f=a0_0x371f4a(a0_0x572d5b,_0x272fa7),_0x5da099={};return _0x5da099['minimumFractionDigits']=_0x1baf0f,_0x5da099['maximumFractionDigits']=_0x1baf0f,_0x5da099;},a0_0xf899f6=(_0x5b9d9c,_0x29ee3e)=>_0x29ee3e===0x0?Math['floor'](_0x5b9d9c):_0x5b9d9c;function a0_0x3b6804(_0x2be32c,_0x8edd40){const _0x476277=Number(_0x2be32c);if(!_0x8edd40||_0x2be32c==''||a0_0x277b25(_0x2be32c))return'';const _0x457e1b=Number(_0x8edd40['gte']),_0x691875=Number(_0x8edd40['gt']),_0x1586c8=Number(_0x8edd40['lte']),_0x21e72b=Number(_0x8edd40['lt']);if(!a0_0x277b25(_0x8edd40['gte'])&&_0x476277<_0x457e1b)return'X\x20>=\x20'+_0x457e1b;if(!a0_0x277b25(_0x8edd40['gt'])&&_0x476277<=_0x691875)return'X\x20>\x20'+_0x691875;if(!a0_0x277b25(_0x8edd40['lte'])&&_0x476277>_0x1586c8)return'X\x20<=\x20'+_0x1586c8;if(!a0_0x277b25(_0x8edd40['lt'])&&_0x476277>_0x21e72b)return'X\x20<\x20'+_0x21e72b;return'';}const a0_0x1d52da=((()=>{const _0x200020={};function _0x26b591(_0x1ebebb){if(_0x200020[_0x1ebebb])return _0x200020[_0x1ebebb];const _0x5b451c={};_0x5b451c['style']='decimal';const _0x4e108c=new Intl['NumberFormat'](_0x1ebebb,_0x5b451c)['format'](0x457)['replace'](/\d/g,''),_0x416af9={};_0x416af9['style']='decimal';const _0x2493e7=new Intl['NumberFormat'](_0x1ebebb,_0x416af9)['format'](11.11)['replace'](/\d/g,''),_0x59d5e1={'symbol':a0_0x4358ad['cts'][_0x1ebebb],'spThousand':_0x4e108c,'spDecimal':_0x2493e7,'rgThousand':new RegExp('['+_0x4e108c+']','g'),'rgDecimal':new RegExp('['+_0x2493e7+']','g')};return _0x200020[_0x1ebebb]=_0x59d5e1,_0x59d5e1;}const _0x1cd089={};return _0x1cd089['get']=_0x26b591,_0x1cd089;})());class a0_0x4733de{['countryCode'];['symbol'];['regexThousands'];['regexDecimal'];['fraction'];['thousandSeperator']=![];static['new'](){return new a0_0x4733de();}static['convert'](_0x377140,_0x14bf63){if(a0_0x277b25(_0x14bf63))return Number(_0x377140);return Number(Number(_0x377140)['toFixed'](_0x14bf63));}['init'](_0x56ed8b){this['countryCode']=a0_0x4358ad['stc'][_0x56ed8b]||a0_0x4358ad['cts'][_0x56ed8b]||a0_0x4358ad['globalConfigs']['countryCode'];if(a0_0x4358ad['stc'][_0x56ed8b])this['countryCode']=a0_0x4358ad['stc'][_0x56ed8b];else a0_0x4358ad['cts'][_0x56ed8b]?this['countryCode']=_0x56ed8b:this['countryCode']=a0_0x4358ad['globalConfigs']['countryCode'];const _0x57bc6c=a0_0x1d52da['get'](this['countryCode']);return this['symbol']=_0x57bc6c['symbol'],this['regexThousands']=_0x57bc6c['rgThousand'],this['regexDecimal']=_0x57bc6c['rgDecimal'],this;}['setFraction'](_0x3f0ba2){return this['fraction']=_0x3f0ba2,this;}['setThousandSeperator'](_0x3c3efa=!![]){return this['thousandSeperator']=_0x3c3efa,this;}['format'](_0xa79b63){try{const _0x22fa10=a0_0xf899f6(Number(_0xa79b63),this['fraction']),_0x243cba=a0_0x1e27ab(this['fraction']),_0x1712ef=new Intl['NumberFormat'](this['countryCode'],_0x243cba)['format'](_0x22fa10);return this['thousandSeperator']?_0x1712ef['replace'](this['regexThousands'],''):_0x1712ef;}catch(_0x1d5c21){return'';}}['inputFormat'](_0xdf6ce){try{const _0x173d9f=this['format'](_0xdf6ce);return _0x173d9f['replace'](this['regexThousands'],'');}catch(_0x109e9a){return'';}}['currency'](_0x40c5ab,_0x417092='ltr'){try{const _0x1cade4=this['format'](_0x40c5ab);return _0x417092==='ltr'?''+_0x1cade4+this['symbol']:''+this['symbol']+_0x1cade4;}catch(_0x45e273){return'';}}['parseRawFormat'](_0x545ce0){const _0x4fd024=(_0x545ce0||'')['replace'](this['regexThousands'],'')['replace'](this['regexDecimal'],'.')['replace'](new RegExp('['+this['symbol']+']','g'),''),_0x4e0b3e=a0_0xf899f6(parseFloat(_0x4fd024),this['fraction']);return _0x4fd024?_0x4e0b3e['toFixed'](a0_0x371f4a(a0_0x572d5b,this['fraction'])):_0x4fd024;}}exports['numeralUtil']=((()=>{function _0x4917ac(_0x10295f,_0x5a54ec,_0x2abfa9,_0x117686='ltr'){return a0_0x4733de['new']()['init'](_0x5a54ec)['setThousandSeperator'](_0x2abfa9)['currency'](_0x10295f,_0x117686);}function _0x37936d(_0x3cb850,_0x3b55a1,_0x4e6b6b,_0x42cb5e){return a0_0x4733de['new']()['init'](_0x3b55a1)['setFraction'](_0x42cb5e)['setThousandSeperator'](_0x4e6b6b)['format'](_0x3cb850);}function _0x41ab1b(_0x1d7f63,_0x5f0755,_0x4de1e1){return a0_0x4733de['new']()['init'](_0x5f0755)['setFraction'](_0x4de1e1)['parseRawFormat'](_0x1d7f63);}function _0x213094(_0x12ecdb,_0x40d7ae){return a0_0x4733de['convert'](_0x12ecdb,_0x40d7ae);}function _0x380eef(_0x13bb63,_0x5e12b9=0x2){return a0_0x4733de['convert'](_0x13bb63,_0x5e12b9);}const _0x2a4516={};return _0x2a4516['currency']=_0x4917ac,_0x2a4516['format']=_0x37936d,_0x2a4516['parseRaw']=_0x41ab1b,_0x2a4516['toNumber']=_0x213094,_0x2a4516['toFloat']=_0x380eef,_0x2a4516;})());function a0_0x13ad0b(_0xa280ca){const _0x1473dd=a0_0x269a2f['useMemo'](()=>{return a0_0x4733de['new']()['init'](_0xa280ca['code'])['setFraction'](_0xa280ca['fraction'])['setThousandSeperator'](_0xa280ca['thousandSeperator']);},[_0xa280ca['code'],_0xa280ca['fraction'],_0xa280ca['thousandSeperator']]);return(0x0,a0_0x361d0a['jsx'])(a0_0x361d0a['Fragment'],{'children':_0x1473dd['currency'](_0xa280ca['value'],_0xa280ca['direction'])});}function a0_0x1517b6(_0x27201d){return a0_0x13ad0b(_0x27201d);}exports['CurrencySlot']=a0_0x1517b6;function a0_0xcfc8c0(_0x53373a){const _0xe3c93a=a0_0x269a2f['useMemo'](()=>{return a0_0x4733de['new']()['init'](_0x53373a['code'])['setFraction'](_0x53373a['fraction'])['setThousandSeperator'](_0x53373a['thousandSeperator']);},[_0x53373a['code'],_0x53373a['fraction'],_0x53373a['thousandSeperator']]);return(0x0,a0_0x361d0a['jsx'])(a0_0x361d0a['Fragment'],{'children':_0xe3c93a['format'](_0x53373a['value'])});}function a0_0x2a5fa9(_0x4d4b77){return a0_0xcfc8c0(_0x4d4b77);}exports['NumeralSlot']=a0_0x2a5fa9;function a0_0x59117b({code:_0x2af0e5,showExampleOnfocus:_0x30807d,numeralType:_0x5bc113,thousandSeperator:_0x14e854,..._0x2d4554}){const _0x41a90d=a0_0x269a2f['useRef'](null),[_0x533079,_0x13d751]=a0_0x269a2f['useState'](![]),[_0x4f770d,_0x319528]=a0_0x269a2f['useState'](''),_0x7f2ab4=a0_0x269a2f['useMemo'](()=>{return a0_0x4733de['new']()['init'](_0x2af0e5)['setFraction'](_0x5bc113=='natural'?a0_0x1cfc51:_0x2d4554['fraction'])['setThousandSeperator'](_0x14e854);},[_0x2af0e5,_0x5bc113,_0x14e854]);function _0xe7a3e7(_0x3cd35c){try{_0x13d751(!![]);if(_0x2d4554['value']){const _0x903dd9=_0x7f2ab4['inputFormat'](_0x2d4554['value']);_0x319528(_0x903dd9);}_0x2d4554['onFocus']&&_0x2d4554['onFocus'](_0x3cd35c);}catch(_0x56426b){}}function _0x1980bf(_0x696aa7){try{const _0x47eb6f=_0x7f2ab4['parseRawFormat'](_0x696aa7);if(Number['isNaN'](Number(_0x47eb6f)))_0x2d4554['onChange']('');else{const _0x2c2ed6=a0_0x3b6804(_0x47eb6f,_0x2d4554['validity']);!_0x2c2ed6?_0x2d4554['onChange'](_0x47eb6f):_0x2d4554['onChange'](''),_0x41a90d['current']?.['setCustomValidity'](_0x2c2ed6),_0x41a90d['current']?.['reportValidity']();}}catch(_0x49fba8){}}function _0x46d3f6(_0x417c5f){_0x13d751(![]),_0x1980bf(_0x4f770d),_0x2d4554['onBlur']&&_0x2d4554['onBlur'](_0x417c5f);}function _0x472ca0(_0x2c48e7){const _0x2279ac=_0x2c48e7['target']['value'];_0x319528(_0x2279ac),_0x1980bf(_0x2279ac);}return a0_0x269a2f['useEffect'](()=>{!_0x533079&&_0x319528(_0x2d4554['value']);},[_0x533079,_0x2d4554['value']]),(0x0,a0_0x361d0a['jsx'])('input',{..._0x2d4554,'ref':_0x41a90d,'type':'','value':_0x533079||!_0x4f770d?_0x4f770d:_0x7f2ab4['format'](Number(_0x4f770d)),'placeholder':_0x533079&&_0x30807d?_0x7f2ab4['format'](1357.91):_0x2d4554['placeholder'],'onChange':_0x472ca0,'onFocus':_0xe7a3e7,'onBlur':_0x46d3f6});}function a0_0x432d94(_0x418ebd){return a0_0x59117b(_0x418ebd);}exports['NumeralInput']=a0_0x432d94;
|