@things-factory/operato-tools 6.2.52 → 6.2.54

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.
@@ -1,86 +1,86 @@
1
- function a0_0x3835(){const _0xc509b9=['grid_multi_select','use_row_checker','viewGridData','renderGridConfigTab','multiple_select','unsupport','_view_use','13235Zxjmpz','pages','getGridConfigTabValues','578dffPtS','2545250jJiKOt','GRID_PAGE_OPTIONS','grid_term_default','grid_mobile_view','grid_row_check_use','use','list_view_use','toLowerCase','1148DyUBlI','codeItems','description','support','view_mode','option','row','2528001wjDvkT','select-row-toggle','unuse','use_filter_form','map','918qxbzzw','GRID','grid_term_unlimited','getElementValueById','gridViewModes','includes','grid_support_multi_select','13434CDRPLd','setGridConfigTabConfig','grid_support_view','3014374VacRcX','LIST','tLabel','342JWCwXN','length','true','setGridConfigTabDetaultValues','gridPageOptions','desk_mode','240lSgVyA','grid_desk_view','grid_pagination','grid_term_1000','grid','push','mobile_mode','grid_term_','card_view_use','grid_term_50','6032pBbNJn','name','grid_use_filter','CARD','GRID_VIEW_MODE'];a0_0x3835=function(){return _0xc509b9;};return a0_0x3835();}function a0_0x326e(_0x1d3815,_0x347b6c){const _0x383589=a0_0x3835();return a0_0x326e=function(_0x326ecb,_0x4b8bbf){_0x326ecb=_0x326ecb-0x141;let _0x3d72e6=_0x383589[_0x326ecb];return _0x3d72e6;},a0_0x326e(_0x1d3815,_0x347b6c);}const a0_0x472427=a0_0x326e;(function(_0x180498,_0x597f18){const _0x2f7955=a0_0x326e,_0x3bb01c=_0x180498();while(!![]){try{const _0x1091f4=-parseInt(_0x2f7955(0x149))/0x1*(-parseInt(_0x2f7955(0x15e))/0x2)+parseInt(_0x2f7955(0x165))/0x3*(parseInt(_0x2f7955(0x171))/0x4)+-parseInt(_0x2f7955(0x146))/0x5*(parseInt(_0x2f7955(0x16b))/0x6)+parseInt(_0x2f7955(0x152))/0x7*(parseInt(_0x2f7955(0x17b))/0x8)+-parseInt(_0x2f7955(0x159))/0x9+-parseInt(_0x2f7955(0x14a))/0xa+parseInt(_0x2f7955(0x168))/0xb;if(_0x1091f4===_0x597f18)break;else _0x3bb01c['push'](_0x3bb01c['shift']());}catch(_0x122610){_0x3bb01c['push'](_0x3bb01c['shift']());}}}(a0_0x3835,0x3be83));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0xd70faa=>class extends _0xd70faa{['setGridConfigTabValues'](_0x10ecdc){const _0x58f1b9=a0_0x326e;if(_0x10ecdc){var {mobile_mode:_0x81ec28='',desk_mode:_0x34a676='',pages:_0x5ba602=[],use_row_checker:_0x171fac=!0x0,view_mode:_0x1c8c2e=[]}=_0x10ecdc['option']||{};let _0x55f89d=(_0x10ecdc['row']||{'multiple_select':!0x1})[_0x58f1b9(0x143)],_0x52f402='unlimited'==_0x5ba602?_0x58f1b9(0x160):0x0==_0x5ba602[_0x58f1b9(0x16c)]?'':0x14==_0x5ba602[0x0]?_0x58f1b9(0x14c):_0x58f1b9(0x178)+_0x5ba602[0x0];this[_0x58f1b9(0x141)]={'mobile_mode':_0x81ec28,'desk_mode':_0x34a676,'use_row_checker':_0x171fac,'pages':_0x52f402,'view_mode':_0x1c8c2e,'multiple_select':_0x55f89d,'use_filter_form':_0x10ecdc['use_filter_form']};}else this[_0x58f1b9(0x16e)]();}[a0_0x472427(0x148)](){const _0x50312f=a0_0x472427;let _0x452e7b={'grid':{'option':{},'row':{'click':_0x50312f(0x15a)}}},_0x395cea=this['getElementValueById'](_0x50312f(0x14e)),_0x8a7e68=this[_0x50312f(0x161)](_0x50312f(0x180)),_0x406b70=this[_0x50312f(0x161)](_0x50312f(0x172)),_0x4f6d56=this[_0x50312f(0x161)](_0x50312f(0x14d)),_0x1b7cb9=this[_0x50312f(0x161)](_0x50312f(0x17d)),_0x37bdab=this['getElementValueById'](_0x50312f(0x173)),_0x449e0d=this['getElementValueById']('grid_view_use'),_0x4e732a=this[_0x50312f(0x161)](_0x50312f(0x150)),_0x1cf943=this['getElementValueById'](_0x50312f(0x179));return _0x452e7b['grid'][_0x50312f(0x15c)]='true'==_0x1b7cb9,_0x452e7b['grid'][_0x50312f(0x158)][_0x50312f(0x143)]=_0x50312f(0x16d)==_0x8a7e68,_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)]['use_row_checker']='true'==_0x395cea,_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)]['mobile_mode']=_0x4f6d56,_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x170)]=_0x406b70,_0x50312f(0x14c)==_0x37bdab?_0x452e7b['grid']['option'][_0x50312f(0x147)]=[0x14,0x1e,0x32,0x64]:_0x50312f(0x17a)==_0x37bdab?_0x452e7b[_0x50312f(0x175)]['option']['pages']=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x37bdab?_0x452e7b[_0x50312f(0x175)]['option'][_0x50312f(0x147)]=[0x64,0x1f4,0x3e8,0x1388]:_0x50312f(0x174)==_0x37bdab?_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x147)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x50312f(0x160)==_0x37bdab&&(_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x147)]='unlimited'),_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x156)]=[],'true'==_0x449e0d&&_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x156)][_0x50312f(0x176)](_0x50312f(0x15f)),_0x50312f(0x16d)==_0x4e732a&&_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)]['view_mode']['push'](_0x50312f(0x169)),_0x50312f(0x16d)==_0x1cf943&&_0x452e7b[_0x50312f(0x175)][_0x50312f(0x157)][_0x50312f(0x156)][_0x50312f(0x176)](_0x50312f(0x17e)),_0x452e7b;}async[a0_0x472427(0x166)](){const _0x35aa5c=a0_0x472427;let _0xedcb3=await MetaApi['codeItems'](_0x35aa5c(0x14b)),_0x3d006a=await MetaApi[_0x35aa5c(0x153)](_0x35aa5c(0x17f));this['gridViewModes']=_0x3d006a,this[_0x35aa5c(0x16f)]=_0xedcb3;}[a0_0x472427(0x16e)](){const _0x531448=a0_0x472427;this['viewGridData']||(this[_0x531448(0x141)]={'mobile_mode':this[_0x531448(0x162)]?this[_0x531448(0x162)][0x1]:'LIST','desk_mode':this[_0x531448(0x162)]?this[_0x531448(0x162)][0x0]:_0x531448(0x15f),'use_row_checker':!0x0,'pages':'grid_term_default','view_mode':[...this['gridViewModes']?this['gridViewModes']:[_0x531448(0x15f),'LIST',_0x531448(0x17e)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x472427(0x142)](){const _0x2fe424=a0_0x472427;return this[_0x2fe424(0x16e)](),html`
1
+ const a0_0x5c1493=a0_0x2665;function a0_0x2665(_0xfd9f95,_0x3fa85e){const _0x521462=a0_0x5214();return a0_0x2665=function(_0x2665a7,_0x53ae75){_0x2665a7=_0x2665a7-0x182;let _0xd9070b=_0x521462[_0x2665a7];return _0xd9070b;},a0_0x2665(_0xfd9f95,_0x3fa85e);}(function(_0x5c1af4,_0x318d0f){const _0x47ec78=a0_0x2665,_0x2268b7=_0x5c1af4();while(!![]){try{const _0x105d91=-parseInt(_0x47ec78(0x1a1))/0x1+parseInt(_0x47ec78(0x19d))/0x2*(parseInt(_0x47ec78(0x194))/0x3)+parseInt(_0x47ec78(0x198))/0x4*(parseInt(_0x47ec78(0x1af))/0x5)+-parseInt(_0x47ec78(0x1ad))/0x6*(parseInt(_0x47ec78(0x1ac))/0x7)+parseInt(_0x47ec78(0x196))/0x8+parseInt(_0x47ec78(0x1bb))/0x9+-parseInt(_0x47ec78(0x186))/0xa;if(_0x105d91===_0x318d0f)break;else _0x2268b7['push'](_0x2268b7['shift']());}catch(_0x1d1685){_0x2268b7['push'](_0x2268b7['shift']());}}}(a0_0x5214,0x7292f));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x5214(){const _0x34b536=['grid_row_check_use','pages','use','grid_term_1000','grid_support_view','28aYnQYk','765606EkhTJk','grid_support_multi_select','601925bvVelz','desk_mode','grid_view_use','grid_term_','GRID_VIEW_MODE','grid_term_default','multiple_select','codeItems','tLabel','_view_use','setGridConfigTabDetaultValues','toLowerCase','5316813fsoDIs','unuse','setGridConfigTabConfig','unsupport','grid_pagination','use_row_checker','grid','select-row-toggle','11686650tGwohJ','LIST','GRID_PAGE_OPTIONS','grid_term_unlimited','true','map','list_view_use','gridPageOptions','view_mode','card_view_use','grid_use_filter','grid_mobile_view','includes','description','24ejaazi','viewGridData','4864560WUcizl','CARD','28UAwDXn','renderGridConfigTab','gridViewModes','grid_term_100','option','125152YZvOTs','grid_desk_view','row','use_filter_form','393766ulljBD','name','push','GRID','getElementValueById','unlimited'];a0_0x5214=function(){return _0x34b536;};return a0_0x5214();}export const GridConfigTabMixin=_0x24c977=>class extends _0x24c977{['setGridConfigTabValues'](_0x5afef6){const _0x5e176b=a0_0x2665;if(_0x5afef6){var {mobile_mode:_0x163e4f='',desk_mode:_0x3c6e50='',pages:_0x59e5e6=[],use_row_checker:_0x39ad09=!0x0,view_mode:_0x4a7772=[]}=_0x5afef6[_0x5e176b(0x19c)]||{};let _0xd6c943=(_0x5afef6[_0x5e176b(0x19f)]||{'multiple_select':!0x1})[_0x5e176b(0x1b5)],_0x450057=_0x5e176b(0x1a6)==_0x59e5e6?_0x5e176b(0x189):0x0==_0x59e5e6['length']?'':0x14==_0x59e5e6[0x0]?'grid_term_default':_0x5e176b(0x1b2)+_0x59e5e6[0x0];this[_0x5e176b(0x195)]={'mobile_mode':_0x163e4f,'desk_mode':_0x3c6e50,'use_row_checker':_0x39ad09,'pages':_0x450057,'view_mode':_0x4a7772,'multiple_select':_0xd6c943,'use_filter_form':_0x5afef6[_0x5e176b(0x1a0)]};}else this[_0x5e176b(0x1b9)]();}['getGridConfigTabValues'](){const _0x427484=a0_0x2665;let _0x1830ae={'grid':{'option':{},'row':{'click':_0x427484(0x185)}}},_0x127ea6=this[_0x427484(0x1a5)](_0x427484(0x1a7)),_0x5d614c=this[_0x427484(0x1a5)]('grid_multi_select'),_0x991792=this[_0x427484(0x1a5)](_0x427484(0x19e)),_0x487d20=this['getElementValueById'](_0x427484(0x191)),_0x1bc0b7=this[_0x427484(0x1a5)](_0x427484(0x190)),_0x151a36=this[_0x427484(0x1a5)](_0x427484(0x182)),_0x446768=this[_0x427484(0x1a5)](_0x427484(0x1b1)),_0x2c8145=this[_0x427484(0x1a5)](_0x427484(0x18c)),_0x42eea1=this[_0x427484(0x1a5)](_0x427484(0x18f));return _0x1830ae[_0x427484(0x184)]['use_filter_form']='true'==_0x1bc0b7,_0x1830ae[_0x427484(0x184)][_0x427484(0x19f)][_0x427484(0x1b5)]=_0x427484(0x18a)==_0x5d614c,_0x1830ae['grid'][_0x427484(0x19c)][_0x427484(0x183)]=_0x427484(0x18a)==_0x127ea6,_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)]['mobile_mode']=_0x487d20,_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)][_0x427484(0x1b0)]=_0x991792,_0x427484(0x1b4)==_0x151a36?_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)]['pages']=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x151a36?_0x1830ae['grid'][_0x427484(0x19c)][_0x427484(0x1a8)]=[0x32,0x64,0x1f4,0x3e8]:_0x427484(0x19b)==_0x151a36?_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)][_0x427484(0x1a8)]=[0x64,0x1f4,0x3e8,0x1388]:_0x427484(0x1aa)==_0x151a36?_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)]['pages']=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x427484(0x189)==_0x151a36&&(_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)][_0x427484(0x1a8)]='unlimited'),_0x1830ae['grid']['option']['view_mode']=[],_0x427484(0x18a)==_0x446768&&_0x1830ae['grid'][_0x427484(0x19c)]['view_mode'][_0x427484(0x1a3)](_0x427484(0x1a4)),'true'==_0x2c8145&&_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)][_0x427484(0x18e)][_0x427484(0x1a3)](_0x427484(0x187)),'true'==_0x42eea1&&_0x1830ae[_0x427484(0x184)][_0x427484(0x19c)][_0x427484(0x18e)][_0x427484(0x1a3)](_0x427484(0x197)),_0x1830ae;}async[a0_0x5c1493(0x1bd)](){const _0x2964da=a0_0x5c1493;let _0xe65bfb=await MetaApi[_0x2964da(0x1b6)](_0x2964da(0x188)),_0x1a7f04=await MetaApi[_0x2964da(0x1b6)](_0x2964da(0x1b3));this[_0x2964da(0x19a)]=_0x1a7f04,this[_0x2964da(0x18d)]=_0xe65bfb;}['setGridConfigTabDetaultValues'](){const _0x3d370f=a0_0x5c1493;this[_0x3d370f(0x195)]||(this[_0x3d370f(0x195)]={'mobile_mode':this['gridViewModes']?this['gridViewModes'][0x1]:_0x3d370f(0x187),'desk_mode':this[_0x3d370f(0x19a)]?this[_0x3d370f(0x19a)][0x0]:_0x3d370f(0x1a4),'use_row_checker':!0x0,'pages':_0x3d370f(0x1b4),'view_mode':[...this[_0x3d370f(0x19a)]?this[_0x3d370f(0x19a)]:[_0x3d370f(0x1a4),_0x3d370f(0x187),'CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x5c1493(0x199)](){const _0x3b3d1b=a0_0x5c1493;return this['setGridConfigTabDetaultValues'](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2fe424(0x16a)]('grid_use_row_check')}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)]('grid_use_row_check')}
6
6
  </h2>
7
7
  <label>
8
8
  <span>
9
9
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="true"
10
- ?checked=${this['viewGridData'][_0x2fe424(0x181)]}>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x14f))}</input>
10
+ ?checked=${this[_0x3b3d1b(0x195)][_0x3b3d1b(0x183)]}>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1a9))}</input>
11
11
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
12
- ?checked=${!this[_0x2fe424(0x141)][_0x2fe424(0x181)]}>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x15b))}</input>
12
+ ?checked=${!this['viewGridData'][_0x3b3d1b(0x183)]}>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1bc))}</input>
13
13
  </span>
14
14
  </label>
15
15
  </div>
16
16
  <div field>
17
17
  <h2>
18
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x164))}
18
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1ae))}
19
19
  </h2>
20
20
  <label>
21
21
  <span>
22
22
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="true"
23
- ?checked=${this['viewGridData'][_0x2fe424(0x143)]}>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x155))}</input>
23
+ ?checked=${this[_0x3b3d1b(0x195)][_0x3b3d1b(0x1b5)]}>${TermsUtil[_0x3b3d1b(0x1b7)]('support')}</input>
24
24
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
25
- ?checked=${!this[_0x2fe424(0x141)]['multiple_select']}>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x144))}</input>
25
+ ?checked=${!this['viewGridData'][_0x3b3d1b(0x1b5)]}>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1be))}</input>
26
26
  </span>
27
27
  </label>
28
28
  </div>
29
29
  <div field>
30
30
  <h2>
31
- <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x2fe424(0x17d))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x190))}
32
32
  </h2>
33
33
  <label>
34
34
  <span>
35
35
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="true"
36
- ?checked=${this['viewGridData'][_0x2fe424(0x15c)]}>${TermsUtil['tLabel'](_0x2fe424(0x14f))}</input>
36
+ ?checked=${this[_0x3b3d1b(0x195)][_0x3b3d1b(0x1a0)]}>${TermsUtil[_0x3b3d1b(0x1b7)]('use')}</input>
37
37
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
38
- ?checked=${!this[_0x2fe424(0x141)][_0x2fe424(0x15c)]}>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x15b))}</input>
38
+ ?checked=${!this[_0x3b3d1b(0x195)]['use_filter_form']}>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1bc))}</input>
39
39
  </span>
40
40
  </label>
41
41
  </div>
42
42
  <div></div>
43
43
  <div field>
44
44
  <h2>
45
- <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x2fe424(0x172))}
45
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x19e))}
46
46
  </h2>
47
47
  <label>
48
48
  <select id="grid_desk_view" name="grid_desk_view">
49
- ${this[_0x2fe424(0x162)]?.['map'](_0x594974=>html`<option value=${_0x594974[_0x2fe424(0x17c)]} ?selected=${this[_0x2fe424(0x141)][_0x2fe424(0x170)]==_0x594974[_0x2fe424(0x17c)]}>${_0x594974[_0x2fe424(0x154)]}</option>`)}
49
+ ${this[_0x3b3d1b(0x19a)]?.['map'](_0x82a9f7=>html`<option value=${_0x82a9f7[_0x3b3d1b(0x1a2)]} ?selected=${this[_0x3b3d1b(0x195)]['desk_mode']==_0x82a9f7[_0x3b3d1b(0x1a2)]}>${_0x82a9f7['description']}</option>`)}
50
50
  </select>
51
51
  </label>
52
52
  </div>
53
53
  <div field>
54
54
  <h2>
55
- <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x2fe424(0x14d))}
55
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x191))}
56
56
  </h2>
57
57
  <label>
58
58
  <select id="grid_mobile_view" name="grid_mobile_view">
59
- ${this['gridViewModes']?.[_0x2fe424(0x15d)](_0x4615c4=>html`<option value=${_0x4615c4[_0x2fe424(0x17c)]} ?selected=${this[_0x2fe424(0x141)][_0x2fe424(0x177)]==_0x4615c4[_0x2fe424(0x17c)]}>${_0x4615c4[_0x2fe424(0x154)]}</option>`)}
59
+ ${this['gridViewModes']?.[_0x3b3d1b(0x18b)](_0x1f5ec9=>html`<option value=${_0x1f5ec9['name']} ?selected=${this[_0x3b3d1b(0x195)]['mobile_mode']==_0x1f5ec9[_0x3b3d1b(0x1a2)]}>${_0x1f5ec9[_0x3b3d1b(0x193)]}</option>`)}
60
60
  </select>
61
61
  </label>
62
62
  </div>
63
63
  <div field>
64
64
  <h2>
65
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x167))}
65
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1ab))}
66
66
  </h2>
67
67
  <label>
68
- ${this['gridViewModes']?.['map'](_0x14991a=>html`
69
- <span>${_0x14991a[_0x2fe424(0x17c)]}
70
- <input type="radio" name=${_0x14991a[_0x2fe424(0x17c)][_0x2fe424(0x151)]()+_0x2fe424(0x145)} id=${_0x14991a[_0x2fe424(0x17c)][_0x2fe424(0x151)]()+_0x2fe424(0x145)} ?checked=${this[_0x2fe424(0x141)][_0x2fe424(0x156)][_0x2fe424(0x163)](_0x14991a[_0x2fe424(0x17c)])} value="true">${TermsUtil['tLabel']('use')}</input>
71
- <input type="radio" name=${_0x14991a[_0x2fe424(0x17c)][_0x2fe424(0x151)]()+'_view_use'} id=${_0x14991a[_0x2fe424(0x17c)][_0x2fe424(0x151)]()+_0x2fe424(0x145)} ?checked=${!this['viewGridData'][_0x2fe424(0x156)][_0x2fe424(0x163)](_0x14991a[_0x2fe424(0x17c)])} value="false">${TermsUtil[_0x2fe424(0x16a)](_0x2fe424(0x15b))}</input>
68
+ ${this['gridViewModes']?.[_0x3b3d1b(0x18b)](_0x28f5c8=>html`
69
+ <span>${_0x28f5c8[_0x3b3d1b(0x1a2)]}
70
+ <input type="radio" name=${_0x28f5c8[_0x3b3d1b(0x1a2)][_0x3b3d1b(0x1ba)]()+_0x3b3d1b(0x1b8)} id=${_0x28f5c8[_0x3b3d1b(0x1a2)][_0x3b3d1b(0x1ba)]()+_0x3b3d1b(0x1b8)} ?checked=${this['viewGridData'][_0x3b3d1b(0x18e)][_0x3b3d1b(0x192)](_0x28f5c8[_0x3b3d1b(0x1a2)])} value="true">${TermsUtil['tLabel'](_0x3b3d1b(0x1a9))}</input>
71
+ <input type="radio" name=${_0x28f5c8['name'][_0x3b3d1b(0x1ba)]()+'_view_use'} id=${_0x28f5c8[_0x3b3d1b(0x1a2)][_0x3b3d1b(0x1ba)]()+_0x3b3d1b(0x1b8)} ?checked=${!this[_0x3b3d1b(0x195)][_0x3b3d1b(0x18e)][_0x3b3d1b(0x192)](_0x28f5c8[_0x3b3d1b(0x1a2)])} value="false">${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x1bc))}</input>
72
72
  </span>
73
73
  `)}
74
74
  </label>
75
75
  </div>
76
76
  <div field>
77
77
  <h2>
78
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2fe424(0x16a)]('grid_pagination')}
78
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3b3d1b(0x1b7)](_0x3b3d1b(0x182))}
79
79
  </h2>
80
80
  <label>
81
- ${this[_0x2fe424(0x16f)]?.[_0x2fe424(0x15d)](_0x3d48e8=>html`
81
+ ${this[_0x3b3d1b(0x18d)]?.[_0x3b3d1b(0x18b)](_0x572c23=>html`
82
82
  <span>
83
- <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x3d48e8[_0x2fe424(0x17c)]} ?checked=${this['viewGridData'][_0x2fe424(0x147)]==_0x3d48e8[_0x2fe424(0x17c)]}>${TermsUtil['tLabel'](_0x3d48e8['name'])}</input>
83
+ <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x572c23[_0x3b3d1b(0x1a2)]} ?checked=${this[_0x3b3d1b(0x195)][_0x3b3d1b(0x1a8)]==_0x572c23[_0x3b3d1b(0x1a2)]}>${TermsUtil[_0x3b3d1b(0x1b7)](_0x572c23[_0x3b3d1b(0x1a2)])}</input>
84
84
  </span>
85
85
  `)}
86
86
  </label>
@@ -1,18 +1,18 @@
1
- const a0_0x8d2b07=a0_0x562a;function a0_0xe1ac(){const _0x4e2f15=['logic','26dqjvGP','fetchColumnEmphasized','columnEmphasizedConfig','code-input','4758415bduPqE','shadowRoot','4RZyLcv','forEach','integer','grid_column_emphasized_config','right','grid_row_emphasized_config','fontColor','getGristGuttersConfig','rowEmphasizedConfig','37252089IVVJBj','button','rowEmphasizedData','gutter','1384536lAUTZY','emphasizedConfigTabColumnEmphasizedGrist','setGridEmphasizedConfigTabDefaultValues','928818JrIgso','101701VoUOlI','getGristSelectableConfig','fetchRowEmphasized','backgroundColor','tLabel','querySelector','left','columnEmphasizedData','fetch','rank','push','delete','setGridEmphasizedConfigTabConfig','viewEmphasizedData','7447265bxgtyG','background-color','emphasizedConfigTabRowEmphasizedGrist','#row-emphasized-grist','GRID','deleteRow','string','1374102JeVuXD','getGridEmphasizedConfigTabValues','keys','column','map'];a0_0xe1ac=function(){return _0x4e2f15;};return a0_0xe1ac();}(function(_0x203ab3,_0x1b7088){const _0x5289d4=a0_0x562a,_0x2aa6af=_0x203ab3();while(!![]){try{const _0x36a283=parseInt(_0x5289d4(0x133))/0x1*(-parseInt(_0x5289d4(0x11c))/0x2)+-parseInt(_0x5289d4(0x132))/0x3+parseInt(_0x5289d4(0x122))/0x4*(-parseInt(_0x5289d4(0x120))/0x5)+parseInt(_0x5289d4(0x116))/0x6+-parseInt(_0x5289d4(0x141))/0x7+parseInt(_0x5289d4(0x12f))/0x8+parseInt(_0x5289d4(0x12b))/0x9;if(_0x36a283===_0x1b7088)break;else _0x2aa6af['push'](_0x2aa6af['shift']());}catch(_0x1e2b31){_0x2aa6af['push'](_0x2aa6af['shift']());}}}(a0_0xe1ac,0xda3d4));function a0_0x562a(_0xc81339,_0x46d893){const _0xe1acb3=a0_0xe1ac();return a0_0x562a=function(_0x562a32,_0x45f307){_0x562a32=_0x562a32-0x114;let _0x4ab930=_0xe1acb3[_0x562a32];return _0x4ab930;},a0_0x562a(_0xc81339,_0x46d893);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x3c8237=>class extends _0x3c8237{['setGridEmphasizedConfigTabValues'](_0x586934){const _0x206ae7=a0_0x562a;if(_0x586934){this[_0x206ae7(0x140)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x509440=0x1;this[_0x206ae7(0x140)][_0x206ae7(0x12d)]=(_0x586934['row']||[])[_0x206ae7(0x11a)](_0x4e86b7=>({'id':_0x509440,'rank':_0x509440++,'backgroundColor':_0x4e86b7[_0x206ae7(0x136)]||'','fontColor':_0x4e86b7['fontColor']||'','logic':_0x4e86b7['logic']||''})),_0x509440=0x1;let _0x57575b=_0x586934[_0x206ae7(0x119)]||[];Object[_0x206ae7(0x118)](_0x57575b)[_0x206ae7(0x123)](_0xc3bcda=>{let _0x476866=_0x57575b[_0xc3bcda]||[],_0x3bddc8=0x1;_0x476866['forEach'](_0xc04788=>{const _0xead5a1=a0_0x562a;this[_0xead5a1(0x140)][_0xead5a1(0x13a)][_0xead5a1(0x13d)]({'id':_0x509440++,'rank':_0x3bddc8++,'column':_0xc3bcda,'backgroundColor':_0xc04788[_0xead5a1(0x136)]||'','fontColor':_0xc04788[_0xead5a1(0x128)]||'','logic':_0xc04788['logic']||''});});}),this[_0x206ae7(0x130)]?.[_0x206ae7(0x13b)](),this[_0x206ae7(0x143)]?.[_0x206ae7(0x13b)]();}else this[_0x206ae7(0x131)]();}[a0_0x8d2b07(0x117)](){const _0x1787e2=a0_0x8d2b07;let _0x458219=this['getElementValueById']('row-emphasized-grist'),_0x40f89c=this['getElementValueById']('column-emphasized-grist'),_0xe70ea5=[];this['sortRecordByRank'](_0x458219)?.[_0x1787e2(0x123)](_0x4c4de4=>{const _0x4bb8ea=_0x1787e2;_0xe70ea5['push']({'backgroundColor':_0x4c4de4['backgroundColor'],'fontColor':_0x4c4de4[_0x4bb8ea(0x128)],'logic':_0x4c4de4['logic']});});let _0x2da690={};return this['sortRecordByRank'](_0x40f89c)?.[_0x1787e2(0x123)](_0x551d13=>{const _0x2ab4bb=_0x1787e2;_0x2da690[_0x551d13['column']]||(_0x2da690[_0x551d13[_0x2ab4bb(0x119)]]=[]),_0x2da690[_0x551d13['column']][_0x2ab4bb(0x13d)]({'backgroundColor':_0x551d13['backgroundColor'],'fontColor':_0x551d13[_0x2ab4bb(0x128)],'logic':_0x551d13['logic']});}),{'gridEmphasized':{'row':_0xe70ea5||[],'column':_0x2da690||{}}};}get[a0_0x8d2b07(0x143)](){const _0x34b8f3=a0_0x8d2b07;return this[_0x34b8f3(0x121)][_0x34b8f3(0x138)](_0x34b8f3(0x144));}get[a0_0x8d2b07(0x130)](){const _0xc2e7d0=a0_0x8d2b07;return this[_0xc2e7d0(0x121)][_0xc2e7d0(0x138)]('#column-emphasized-grist');}[a0_0x8d2b07(0x13f)](){const _0x273f15=a0_0x8d2b07;this[_0x273f15(0x12a)]={'rows':MetaApi[_0x273f15(0x134)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x273f15(0x129)](!0x1,!0x1),{'type':_0x273f15(0x12e),'gutterName':'button','icon':_0x273f15(0x13e),'handlers':{'click':(_0x75f411,_0x246dbc,_0x8c4554,_0x1e2578,_0x187ecf)=>{const _0x27c4cc=_0x273f15;_0x1e2578['id']&&this[_0x27c4cc(0x114)](this[_0x27c4cc(0x143)],_0x1e2578);}}},{'type':_0x273f15(0x115),'name':'id','hidden':!0x0},{'type':_0x273f15(0x124),'name':_0x273f15(0x13c),'header':TermsUtil[_0x273f15(0x137)](_0x273f15(0x13c)),'sortable':!0x1,'width':0x37,'record':{'align':_0x273f15(0x126),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x273f15(0x136),'header':TermsUtil['tLabel'](_0x273f15(0x142)),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x273f15(0x115),'name':_0x273f15(0x128),'header':TermsUtil[_0x273f15(0x137)]('font-color'),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x273f15(0x11f),'name':_0x273f15(0x11b),'header':TermsUtil[_0x273f15(0x137)](_0x273f15(0x11b)),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x352}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x273f15(0x134)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x273f15(0x129)](!0x1,!0x1),{'type':_0x273f15(0x12e),'gutterName':_0x273f15(0x12c),'icon':_0x273f15(0x13e),'handlers':{'click':(_0x1a26cf,_0x12bb20,_0x530482,_0x1cd7ed,_0x699430)=>{const _0x266fed=_0x273f15;_0x1cd7ed['id']&&this['deleteRow'](this[_0x266fed(0x130)],_0x1cd7ed);}}},{'type':_0x273f15(0x115),'name':'id','hidden':!0x0},{'type':'integer','name':_0x273f15(0x13c),'header':TermsUtil[_0x273f15(0x137)](_0x273f15(0x13c)),'sortable':!0x1,'width':0x37,'record':{'align':_0x273f15(0x126),'editable':!0x0,'mandatory':!0x0}},{'type':_0x273f15(0x115),'name':_0x273f15(0x119),'header':TermsUtil[_0x273f15(0x137)](_0x273f15(0x119)),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x273f15(0x115),'name':'backgroundColor','header':TermsUtil[_0x273f15(0x137)](_0x273f15(0x142)),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x273f15(0x115),'name':'fontColor','header':TermsUtil['tLabel']('font-color'),'record':{'align':_0x273f15(0x139),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x273f15(0x11f),'name':_0x273f15(0x11b),'header':TermsUtil[_0x273f15(0x137)]('logic'),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x2d5}]};}[a0_0x8d2b07(0x131)](){const _0x27651e=a0_0x8d2b07;this[_0x27651e(0x140)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}['renderGridEmphasizedConfigTab'](){const _0x379392=a0_0x8d2b07;return this[_0x379392(0x131)](),html`
1
+ const a0_0x3a4a56=a0_0x182a;(function(_0x25fafd,_0x1b65e3){const _0x55d405=a0_0x182a,_0x4893f4=_0x25fafd();while(!![]){try{const _0x421478=-parseInt(_0x55d405(0x16a))/0x1+-parseInt(_0x55d405(0x17b))/0x2+parseInt(_0x55d405(0x196))/0x3*(parseInt(_0x55d405(0x16e))/0x4)+parseInt(_0x55d405(0x17a))/0x5+parseInt(_0x55d405(0x17f))/0x6+parseInt(_0x55d405(0x168))/0x7*(-parseInt(_0x55d405(0x17c))/0x8)+parseInt(_0x55d405(0x191))/0x9;if(_0x421478===_0x1b65e3)break;else _0x4893f4['push'](_0x4893f4['shift']());}catch(_0x3c507d){_0x4893f4['push'](_0x4893f4['shift']());}}}(a0_0x5487,0xb296a));function a0_0x182a(_0xad4824,_0x54d064){const _0x548783=a0_0x5487();return a0_0x182a=function(_0x182a8c,_0x1e2e7d){_0x182a8c=_0x182a8c-0x160;let _0x31f59f=_0x548783[_0x182a8c];return _0x31f59f;},a0_0x182a(_0xad4824,_0x54d064);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x3fd6b7=>class extends _0x3fd6b7{['setGridEmphasizedConfigTabValues'](_0x110aef){const _0x25f9bc=a0_0x182a;if(_0x110aef){this[_0x25f9bc(0x188)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x26a184=0x1;this['viewEmphasizedData'][_0x25f9bc(0x18f)]=(_0x110aef[_0x25f9bc(0x177)]||[])[_0x25f9bc(0x179)](_0x3533fe=>({'id':_0x26a184,'rank':_0x26a184++,'backgroundColor':_0x3533fe[_0x25f9bc(0x171)]||'','fontColor':_0x3533fe[_0x25f9bc(0x166)]||'','logic':_0x3533fe[_0x25f9bc(0x187)]||''})),_0x26a184=0x1;let _0x51548b=_0x110aef[_0x25f9bc(0x18d)]||[];Object[_0x25f9bc(0x170)](_0x51548b)[_0x25f9bc(0x172)](_0x514979=>{let _0x2c2297=_0x51548b[_0x514979]||[],_0x135f2e=0x1;_0x2c2297['forEach'](_0x10cab9=>{const _0x4fe104=a0_0x182a;this['viewEmphasizedData'][_0x4fe104(0x165)][_0x4fe104(0x164)]({'id':_0x26a184++,'rank':_0x135f2e++,'column':_0x514979,'backgroundColor':_0x10cab9[_0x4fe104(0x171)]||'','fontColor':_0x10cab9['fontColor']||'','logic':_0x10cab9[_0x4fe104(0x187)]||''});});}),this[_0x25f9bc(0x176)]?.[_0x25f9bc(0x195)](),this[_0x25f9bc(0x175)]?.[_0x25f9bc(0x195)]();}else this['setGridEmphasizedConfigTabDefaultValues']();}[a0_0x3a4a56(0x173)](){const _0x1c7356=a0_0x3a4a56;let _0x4982b1=this['getElementValueById'](_0x1c7356(0x194)),_0x4479d2=this[_0x1c7356(0x190)](_0x1c7356(0x17d)),_0x5560c2=[];this['sortRecordByRank'](_0x4982b1)?.[_0x1c7356(0x172)](_0x32478b=>{const _0xee474d=_0x1c7356;_0x5560c2[_0xee474d(0x164)]({'backgroundColor':_0x32478b[_0xee474d(0x171)],'fontColor':_0x32478b[_0xee474d(0x166)],'logic':_0x32478b[_0xee474d(0x187)]});});let _0x222ace={};return this['sortRecordByRank'](_0x4479d2)?.[_0x1c7356(0x172)](_0x3a169a=>{const _0x4f1055=_0x1c7356;_0x222ace[_0x3a169a[_0x4f1055(0x18d)]]||(_0x222ace[_0x3a169a['column']]=[]),_0x222ace[_0x3a169a[_0x4f1055(0x18d)]][_0x4f1055(0x164)]({'backgroundColor':_0x3a169a[_0x4f1055(0x171)],'fontColor':_0x3a169a[_0x4f1055(0x166)],'logic':_0x3a169a[_0x4f1055(0x187)]});}),{'gridEmphasized':{'row':_0x5560c2||[],'column':_0x222ace||{}}};}get[a0_0x3a4a56(0x175)](){const _0x559342=a0_0x3a4a56;return this[_0x559342(0x167)][_0x559342(0x18e)]('#row-emphasized-grist');}get[a0_0x3a4a56(0x176)](){const _0x33aec5=a0_0x3a4a56;return this[_0x33aec5(0x167)][_0x33aec5(0x18e)](_0x33aec5(0x16c));}[a0_0x3a4a56(0x178)](){const _0x539ad0=a0_0x3a4a56;this['rowEmphasizedConfig']={'rows':MetaApi[_0x539ad0(0x169)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x539ad0(0x183)](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x539ad0(0x182),'handlers':{'click':(_0x5985d6,_0x5cba98,_0x544fd5,_0x546ec3,_0x20f11d)=>{const _0x52ae2f=_0x539ad0;_0x546ec3['id']&&this[_0x52ae2f(0x186)](this[_0x52ae2f(0x175)],_0x546ec3);}}},{'type':_0x539ad0(0x161),'name':'id','hidden':!0x0},{'type':'integer','name':_0x539ad0(0x184),'header':TermsUtil['tLabel']('rank'),'sortable':!0x1,'width':0x37,'record':{'align':_0x539ad0(0x16b),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x539ad0(0x171),'header':TermsUtil['tLabel'](_0x539ad0(0x189)),'record':{'align':_0x539ad0(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x539ad0(0x161),'name':'fontColor','header':TermsUtil[_0x539ad0(0x18a)](_0x539ad0(0x185)),'record':{'align':_0x539ad0(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x539ad0(0x174),'name':_0x539ad0(0x187),'header':TermsUtil[_0x539ad0(0x18a)](_0x539ad0(0x187)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x352}]},this[_0x539ad0(0x16f)]={'rows':MetaApi[_0x539ad0(0x169)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x539ad0(0x18b),'gutterName':_0x539ad0(0x160),'icon':_0x539ad0(0x182),'handlers':{'click':(_0x44f821,_0x9115d1,_0x4694a9,_0x5bcc8c,_0x158840)=>{const _0x12f3be=_0x539ad0;_0x5bcc8c['id']&&this[_0x12f3be(0x186)](this['emphasizedConfigTabColumnEmphasizedGrist'],_0x5bcc8c);}}},{'type':_0x539ad0(0x161),'name':'id','hidden':!0x0},{'type':_0x539ad0(0x17e),'name':_0x539ad0(0x184),'header':TermsUtil[_0x539ad0(0x18a)](_0x539ad0(0x184)),'sortable':!0x1,'width':0x37,'record':{'align':_0x539ad0(0x16b),'editable':!0x0,'mandatory':!0x0}},{'type':_0x539ad0(0x161),'name':_0x539ad0(0x18d),'header':TermsUtil[_0x539ad0(0x18a)](_0x539ad0(0x18d)),'record':{'align':_0x539ad0(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x539ad0(0x161),'name':_0x539ad0(0x171),'header':TermsUtil['tLabel']('background-color'),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x539ad0(0x161),'name':_0x539ad0(0x166),'header':TermsUtil[_0x539ad0(0x18a)]('font-color'),'record':{'align':_0x539ad0(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x539ad0(0x174),'name':_0x539ad0(0x187),'header':TermsUtil['tLabel'](_0x539ad0(0x187)),'record':{'align':_0x539ad0(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x2d5}]};}[a0_0x3a4a56(0x163)](){const _0x3788d3=a0_0x3a4a56;this[_0x3788d3(0x188)]||(this[_0x3788d3(0x188)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}['renderGridEmphasizedConfigTab'](){const _0xd662e5=a0_0x3a4a56;return this[_0xd662e5(0x163)](),html`
2
2
  <div style='grid-template-rows: 50% 50%;display:grid;flex:1;'>
3
3
  <div field >
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x379392(0x137)](_0x379392(0x127))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0xd662e5(0x18a)](_0xd662e5(0x162))}
6
6
  </h2>
7
- <ox-grist id="row-emphasized-grist" .config=${this[_0x379392(0x12a)]} .mode=${_0x379392(0x145)} auto-fetch
8
- .fetchHandler=${this[_0x379392(0x135)]['bind'](this)}></ox-grist>
7
+ <ox-grist id="row-emphasized-grist" .config=${this['rowEmphasizedConfig']} .mode=${'GRID'} auto-fetch
8
+ .fetchHandler=${this['fetchRowEmphasized']['bind'](this)}></ox-grist>
9
9
  </div>
10
10
  <div field >
11
11
  <h2>
12
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x379392(0x137)](_0x379392(0x125))}
12
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0xd662e5(0x18c))}
13
13
  </h2>
14
- <ox-grist id="column-emphasized-grist" .config=${this[_0x379392(0x11e)]} .mode=${'GRID'} auto-fetch
15
- .fetchHandler=${this['fetchColumnEmphasized']['bind'](this)}></ox-grist>
14
+ <ox-grist id="column-emphasized-grist" .config=${this[_0xd662e5(0x16f)]} .mode=${_0xd662e5(0x180)} auto-fetch
15
+ .fetchHandler=${this[_0xd662e5(0x192)][_0xd662e5(0x16d)](this)}></ox-grist>
16
16
  </div>
17
17
  </div>
18
- `;}async['fetchRowEmphasized'](){const _0x275906=a0_0x8d2b07;return{'records':this[_0x275906(0x140)][_0x275906(0x12d)],'total':0x0};}async[a0_0x8d2b07(0x11d)](){const _0x1e4fce=a0_0x8d2b07;return{'records':this['viewEmphasizedData'][_0x1e4fce(0x13a)],'total':0x0};}};
18
+ `;}async[a0_0x3a4a56(0x181)](){const _0x35eb68=a0_0x3a4a56;return{'records':this[_0x35eb68(0x188)][_0x35eb68(0x18f)],'total':0x0};}async[a0_0x3a4a56(0x192)](){const _0x18ca6c=a0_0x3a4a56;return{'records':this[_0x18ca6c(0x188)]['columnEmphasizedData'],'total':0x0};}};function a0_0x5487(){const _0x2bceee=['getGristGuttersConfig','rank','font-color','deleteRow','logic','viewEmphasizedData','background-color','tLabel','gutter','grid_column_emphasized_config','column','querySelector','rowEmphasizedData','getElementValueById','14316102fyiLHu','fetchColumnEmphasized','left','row-emphasized-grist','fetch','18951ggnjTp','button','string','grid_row_emphasized_config','setGridEmphasizedConfigTabDefaultValues','push','columnEmphasizedData','fontColor','shadowRoot','3369331aECUaK','getGristSelectableConfig','785600UuepLI','right','#column-emphasized-grist','bind','76oqyHgT','columnEmphasizedConfig','keys','backgroundColor','forEach','getGridEmphasizedConfigTabValues','code-input','emphasizedConfigTabRowEmphasizedGrist','emphasizedConfigTabColumnEmphasizedGrist','row','setGridEmphasizedConfigTabConfig','map','2206615uoyFoZ','637804jPYdiE','8vCREXM','column-emphasized-grist','integer','991854Dobonm','GRID','fetchRowEmphasized','delete'];a0_0x5487=function(){return _0x2bceee;};return a0_0x5487();}
@@ -1,29 +1,29 @@
1
- const a0_0x4b1e4f=a0_0xec57;(function(_0x37519d,_0x32b959){const _0xc3e3b=a0_0xec57,_0x565d52=_0x37519d();while(!![]){try{const _0x2f68ad=parseInt(_0xc3e3b(0x1f1))/0x1*(parseInt(_0xc3e3b(0x1fb))/0x2)+-parseInt(_0xc3e3b(0x206))/0x3*(-parseInt(_0xc3e3b(0x203))/0x4)+-parseInt(_0xc3e3b(0x208))/0x5*(-parseInt(_0xc3e3b(0x1fe))/0x6)+-parseInt(_0xc3e3b(0x1f9))/0x7*(parseInt(_0xc3e3b(0x1f4))/0x8)+-parseInt(_0xc3e3b(0x1ef))/0x9*(parseInt(_0xc3e3b(0x1ff))/0xa)+parseInt(_0xc3e3b(0x1f3))/0xb*(-parseInt(_0xc3e3b(0x201))/0xc)+parseInt(_0xc3e3b(0x202))/0xd;if(_0x2f68ad===_0x32b959)break;else _0x565d52['push'](_0x565d52['shift']());}catch(_0x2f8c18){_0x565d52['push'](_0x565d52['shift']());}}}(a0_0x546c,0x38e14));function a0_0xec57(_0x3d8564,_0x573f62){const _0x546cde=a0_0x546c();return a0_0xec57=function(_0xec57fe,_0x2dad92){_0xec57fe=_0xec57fe-0x1ec;let _0x108230=_0x546cde[_0xec57fe];return _0x108230;},a0_0xec57(_0x3d8564,_0x573f62);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x546c(){const _0x43226c=['5184205stFltU','1020OJEtwO','getElementById','name','4461bqdahG','help','743510AvkQMn','menu','target','display','renderMenuConfigTab','menuTitleChange','28179KodhPd','value','7RQNPSE','getElementValueById','34848lEurBm','8RBghpx','tLabel','desc','setMenuConfigTabDefaultValue','getMenuConfigTabValues','2682939ljlXji','viewMenuData','19820saHxOq','help_doc','tTitle','12nFFuJE','1010PKpiEN','title','804guREJW'];a0_0x546c=function(){return _0x43226c;};return a0_0x546c();}export const MenuConfigTabMixin=_0x477d55=>class extends _0x477d55{['setMenuConfigTabValues'](_0x43ba18){const _0x230250=a0_0xec57;if(_0x43ba18){var {title:_0x2bf2e9='',name:_0x18c8d5='',desc:_0x8f438f='',help:_0x4496a4=''}=_0x43ba18||{};this['viewMenuData']={'title':_0x2bf2e9,'name':_0x18c8d5,'desc':_0x8f438f,'help_doc':_0x4496a4},this[_0x230250(0x204)]('title')[_0x230250(0x1f0)]=_0x2bf2e9,this[_0x230250(0x204)](_0x230250(0x205))['value']=_0x18c8d5,this[_0x230250(0x204)]('desc')[_0x230250(0x1f0)]=_0x8f438f,this[_0x230250(0x204)](_0x230250(0x1fc))[_0x230250(0x1f0)]=_0x4496a4;}else this['setMenuConfigTabDefaultValue']();}[a0_0x4b1e4f(0x1f8)](){const _0x479dcb=a0_0x4b1e4f;let _0x3bc189={'menu':{}},_0x31d485=this[_0x479dcb(0x1f2)](_0x479dcb(0x200)),_0x4ca258=this[_0x479dcb(0x1f2)]('name'),_0x3d69ff=this[_0x479dcb(0x1f2)](_0x479dcb(0x1f6)),_0x467373=this[_0x479dcb(0x1f2)](_0x479dcb(0x1fc));return _0x31d485&&(_0x3bc189['menu'][_0x479dcb(0x200)]=_0x31d485),_0x4ca258&&(_0x3bc189[_0x479dcb(0x209)][_0x479dcb(0x205)]=_0x4ca258),_0x3d69ff&&(_0x3bc189[_0x479dcb(0x209)][_0x479dcb(0x1f6)]=_0x3d69ff),_0x467373&&(_0x3bc189[_0x479dcb(0x209)][_0x479dcb(0x207)]=_0x467373),_0x3bc189;}[a0_0x4b1e4f(0x1f7)](){const _0x199644=a0_0x4b1e4f;this[_0x199644(0x1fa)]||(this[_0x199644(0x1fa)]={'title':'','name':_0x199644(0x205),'desc':'description','help_doc':''});}['menuTitleChange'](_0xf54c6d){const _0x41d472=a0_0x4b1e4f;let _0x1bb1c8=this[_0x41d472(0x204)](_0x41d472(0x1ec));_0x1bb1c8&&(_0x1bb1c8[_0x41d472(0x1f0)]=TermsUtil[_0x41d472(0x1fd)](_0xf54c6d[_0x41d472(0x20a)]['value']));}[a0_0x4b1e4f(0x1ed)](){const _0xfee04c=a0_0x4b1e4f;return this[_0xfee04c(0x1f7)](),html`
1
+ const a0_0x1d0e5c=a0_0x3119;(function(_0xed7471,_0x4637b9){const _0x25ad76=a0_0x3119,_0x62676d=_0xed7471();while(!![]){try{const _0x2076a5=-parseInt(_0x25ad76(0x116))/0x1+parseInt(_0x25ad76(0x114))/0x2+-parseInt(_0x25ad76(0x11e))/0x3+parseInt(_0x25ad76(0x112))/0x4*(parseInt(_0x25ad76(0x11b))/0x5)+parseInt(_0x25ad76(0x11d))/0x6+-parseInt(_0x25ad76(0x122))/0x7+parseInt(_0x25ad76(0x10f))/0x8*(parseInt(_0x25ad76(0x12a))/0x9);if(_0x2076a5===_0x4637b9)break;else _0x62676d['push'](_0x62676d['shift']());}catch(_0x2d0826){_0x62676d['push'](_0x62676d['shift']());}}}(a0_0x4dab,0xdfcf1));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x4dab(){const _0x478075=['577481NzkvJg','target','getElementValueById','getMenuConfigTabValues','getElementById','10eEtINI','setMenuConfigTabDefaultValue','4374330RmbRfR','2474700jBUIqG','desc','renderMenuConfigTab','help_doc','7048888XKUZew','menu_desc_field','tTitle','display','menuTitleChange','title','menu_title','viewMenuData','632943TCXizf','menu','menu_name_field','8tusFzA','tLabel','description','1554516LBNPzj','value','3498892HRXfkJ','name'];a0_0x4dab=function(){return _0x478075;};return a0_0x4dab();}function a0_0x3119(_0x31bea2,_0x22ace7){const _0x4dab4c=a0_0x4dab();return a0_0x3119=function(_0x3119ef,_0x54db57){_0x3119ef=_0x3119ef-0x10e;let _0x3ba17a=_0x4dab4c[_0x3119ef];return _0x3ba17a;},a0_0x3119(_0x31bea2,_0x22ace7);}export const MenuConfigTabMixin=_0x50fc60=>class extends _0x50fc60{['setMenuConfigTabValues'](_0x100bfb){const _0x293d76=a0_0x3119;if(_0x100bfb){var {title:_0x40e5b3='',name:_0x1243a7='',desc:_0x10d814='',help:_0xe5a7ad=''}=_0x100bfb||{};this[_0x293d76(0x129)]={'title':_0x40e5b3,'name':_0x1243a7,'desc':_0x10d814,'help_doc':_0xe5a7ad},this['getElementById'](_0x293d76(0x127))['value']=_0x40e5b3,this['getElementById'](_0x293d76(0x115))['value']=_0x1243a7,this['getElementById'](_0x293d76(0x11f))[_0x293d76(0x113)]=_0x10d814,this[_0x293d76(0x11a)]('help_doc')['value']=_0xe5a7ad;}else this[_0x293d76(0x11c)]();}[a0_0x1d0e5c(0x119)](){const _0x33abee=a0_0x1d0e5c;let _0x4d9621={'menu':{}},_0x27a8f2=this['getElementValueById']('title'),_0x4158bd=this[_0x33abee(0x118)](_0x33abee(0x115)),_0x1c02f8=this[_0x33abee(0x118)](_0x33abee(0x11f)),_0x4aec08=this[_0x33abee(0x118)](_0x33abee(0x121));return _0x27a8f2&&(_0x4d9621['menu'][_0x33abee(0x127)]=_0x27a8f2),_0x4158bd&&(_0x4d9621[_0x33abee(0x12b)][_0x33abee(0x115)]=_0x4158bd),_0x1c02f8&&(_0x4d9621[_0x33abee(0x12b)][_0x33abee(0x11f)]=_0x1c02f8),_0x4aec08&&(_0x4d9621[_0x33abee(0x12b)]['help']=_0x4aec08),_0x4d9621;}['setMenuConfigTabDefaultValue'](){const _0x63f7fd=a0_0x1d0e5c;this[_0x63f7fd(0x129)]||(this[_0x63f7fd(0x129)]={'title':'','name':_0x63f7fd(0x115),'desc':_0x63f7fd(0x111),'help_doc':''});}[a0_0x1d0e5c(0x126)](_0x4b733d){const _0x572ed1=a0_0x1d0e5c;let _0x4bd11a=this[_0x572ed1(0x11a)](_0x572ed1(0x125));_0x4bd11a&&(_0x4bd11a[_0x572ed1(0x113)]=TermsUtil[_0x572ed1(0x124)](_0x4b733d[_0x572ed1(0x117)][_0x572ed1(0x113)]));}[a0_0x1d0e5c(0x120)](){const _0x521593=a0_0x1d0e5c;return this[_0x521593(0x11c)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
- <label>${TermsUtil['tLabel']('menu_title')}
5
- <input id="title" name="title" type="text" value=${this[_0xfee04c(0x1fa)]['title']} @change=${_0x20ca38=>this[_0xfee04c(0x1ee)](_0x20ca38)}/>
4
+ <label>${TermsUtil[_0x521593(0x110)](_0x521593(0x128))}
5
+ <input id="title" name="title" type="text" value=${this[_0x521593(0x129)]['title']} @change=${_0x556923=>this[_0x521593(0x126)](_0x556923)}/>
6
6
  </label>
7
7
  </div>
8
8
  <div field>
9
- <label>${TermsUtil[_0xfee04c(0x1f5)](_0xfee04c(0x1ec))}
10
- <input id="display" name="display" value=${TermsUtil[_0xfee04c(0x1fd)](this[_0xfee04c(0x1fa)]['title'])} type="text" readonly
9
+ <label>${TermsUtil[_0x521593(0x110)]('display')}
10
+ <input id="display" name="display" value=${TermsUtil[_0x521593(0x124)](this[_0x521593(0x129)][_0x521593(0x127)])} type="text" readonly
11
11
  disabled />
12
12
  </label>
13
13
  </div>
14
14
  <div field>
15
- <label>${TermsUtil['tLabel']('menu_name_field')}
16
- <input id="name" name="name" type="text" value=${this[_0xfee04c(0x1fa)][_0xfee04c(0x205)]} />
15
+ <label>${TermsUtil[_0x521593(0x110)](_0x521593(0x10e))}
16
+ <input id="name" name="name" type="text" value=${this['viewMenuData'][_0x521593(0x115)]} />
17
17
  </label>
18
18
  </div>
19
19
  <div field>
20
- <label>${TermsUtil[_0xfee04c(0x1f5)]('menu_desc_field')}
21
- <input id="desc" name="desc" type="text" value=${this['viewMenuData'][_0xfee04c(0x1f6)]} />
20
+ <label>${TermsUtil[_0x521593(0x110)](_0x521593(0x123))}
21
+ <input id="desc" name="desc" type="text" value=${this['viewMenuData'][_0x521593(0x11f)]} />
22
22
  </label>
23
23
  </div>
24
24
  <div field>
25
- <label>${TermsUtil[_0xfee04c(0x1f5)](_0xfee04c(0x1fc))}
26
- <input id="help_doc" name="help_doc" type="text" value=${this[_0xfee04c(0x1fa)][_0xfee04c(0x1fc)]} />
25
+ <label>${TermsUtil[_0x521593(0x110)](_0x521593(0x121))}
26
+ <input id="help_doc" name="help_doc" type="text" value=${this[_0x521593(0x129)][_0x521593(0x121)]} />
27
27
  </label>
28
28
  </div>
29
29
  </div>
@@ -1,4 +1,4 @@
1
- const a0_0x3e0044=a0_0x1079;(function(_0x1c42cc,_0x4b60c1){const _0x5a41bf=a0_0x1079,_0x1ff75c=_0x1c42cc();while(!![]){try{const _0x1b35f9=-parseInt(_0x5a41bf(0x125))/0x1*(parseInt(_0x5a41bf(0x141))/0x2)+parseInt(_0x5a41bf(0x110))/0x3*(parseInt(_0x5a41bf(0x12b))/0x4)+-parseInt(_0x5a41bf(0x171))/0x5*(-parseInt(_0x5a41bf(0x14c))/0x6)+parseInt(_0x5a41bf(0x11a))/0x7+-parseInt(_0x5a41bf(0x175))/0x8+parseInt(_0x5a41bf(0x144))/0x9+-parseInt(_0x5a41bf(0x140))/0xa*(parseInt(_0x5a41bf(0x170))/0xb);if(_0x1b35f9===_0x4b60c1)break;else _0x1ff75c['push'](_0x1ff75c['shift']());}catch(_0x15940a){_0x1ff75c['push'](_0x1ff75c['shift']());}}}(a0_0x1234,0x18a19));import a0_0x1d3f1e from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';import{GridConfigTabMixin}from'./grid-config-tab-mixin';import{ColumnConfigTabMixin}from'./column-config-tab-mixin';import{GraphQlConfigTabMixin}from'./graphql-config-tab-mixin';import{FormConfigTabMixin}from'./form-config-tab-mixin';function a0_0x1079(_0x3f4e56,_0x22c1d8){const _0x1234ff=a0_0x1234();return a0_0x1079=function(_0x107998,_0xcbfca0){_0x107998=_0x107998-0xfc;let _0x10bfa3=_0x1234ff[_0x107998];return _0x10bfa3;},a0_0x1079(_0x3f4e56,_0x22c1d8);}import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{GridEmphasizedConfigTabMixin}from'./grid-emphasized-config-tab-mixin';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{filter,merge}from'lodash';import{MetaCrypto}from'@things-factory/meta-ui/client/utils/meta-crypto';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x3e0044(0x11c)](){return[css`
1
+ const a0_0x9db818=a0_0x8384;(function(_0x5f1770,_0x169a5a){const _0xe1442f=a0_0x8384,_0x4afff0=_0x5f1770();while(!![]){try{const _0x3a5612=-parseInt(_0xe1442f(0x21c))/0x1*(parseInt(_0xe1442f(0x20d))/0x2)+-parseInt(_0xe1442f(0x1ec))/0x3+-parseInt(_0xe1442f(0x239))/0x4+-parseInt(_0xe1442f(0x1e7))/0x5+parseInt(_0xe1442f(0x216))/0x6*(-parseInt(_0xe1442f(0x224))/0x7)+parseInt(_0xe1442f(0x23f))/0x8*(parseInt(_0xe1442f(0x1d8))/0x9)+parseInt(_0xe1442f(0x20e))/0xa;if(_0x3a5612===_0x169a5a)break;else _0x4afff0['push'](_0x4afff0['shift']());}catch(_0x47e8e6){_0x4afff0['push'](_0x4afff0['shift']());}}}(a0_0x55ef,0x9c02d));import{html,css}from'lit-element';import{merge}from'lodash';import a0_0x162102 from'graphql-tag';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';function a0_0x55ef(){const _0x1ce797=['properties','metaTemplate','save','updateMultipleMenu','search','initData','getState','tTitle','convertFirstCharUpperCase','type','gridEmphasized','findOne','meta-generator-page','4011840Rymymz','tMenu','list','tButton','menu','78600huafPE','etc_config','setTabData','getElementById','data','menuName','getConfigTab','operatoTools','render','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20template\x0a\x20\x20\x20\x20','menu_config','display:flex','parse','error.invalid\x20license\x20key','tabData','clear','length','template','ConfigTabConfig','push','dataStorage','style','back','ConfigTab','dispatchEvent','sort','grid-','styles','refresh','value','ox-grist','dec','sortRecordByRank','4zKYgHx','26571980nfgUMZ','getElementValueById','rank','slice','tagName','sorters','option','rep_field','11292ZzkwvS','keys','button','sort_rank','define','desc','261173JboKaF','tab','icon','stringify',':checked','bind','backToMenu','radio','2198leTCFx','select','form_config','params','ConfigTabValues','sortRecordByField','pageInitialized','name','enc','toUpperCase','details','thumbnail','forEach','includes','dirtyData','set','currentTabKey','ox-input-code','shadowRoot','etc','query','4155444UBUqxy','menuId','toLowerCase','lifecycle','display:none','form','592336NthHEj','detail_field','updateMultiple','thumbnail_field','options','map','active','tLabel','filters','grid_emphasized_config','graphql_config','records','117PWHDAR','querySelector'];a0_0x55ef=function(){return _0x1ce797;};return a0_0x55ef();}import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';import{GridConfigTabMixin}from'./grid-config-tab-mixin';import{ColumnConfigTabMixin}from'./column-config-tab-mixin';import{GraphQlConfigTabMixin}from'./graphql-config-tab-mixin';import{FormConfigTabMixin}from'./form-config-tab-mixin';import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{GridEmphasizedConfigTabMixin}from'./grid-emphasized-config-tab-mixin';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x8384(_0x4f1684,_0x33a6c7){const _0x55ef85=a0_0x55ef();return a0_0x8384=function(_0x838477,_0x3a6ac7){_0x838477=_0x838477-0x1d8;let _0x4fcd4a=_0x55ef85[_0x838477];return _0x4fcd4a;},a0_0x8384(_0x4f1684,_0x33a6c7);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{MetaCrypto}from'@things-factory/meta-ui/client/utils/meta-crypto';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x9db818(0x207)](){return[css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -139,26 +139,24 @@ const a0_0x3e0044=a0_0x1079;(function(_0x1c42cc,_0x4b60c1){const _0x5a41bf=a0_0x
139
139
  ox-grist {
140
140
  overflow-y: auto;
141
141
  flex: 1;
142
- }
143
-
144
- `];}static get[a0_0x3e0044(0x176)](){return{'menuId':String,'menuName':String,'metaTemplate':Object,'currentTabKey':String,'tabData':Object,'dataStorage':Object,'viewMenuData':Object,'afterSetFieldsConfig':Object,'skipFieldsConfig':Object,'viewGraphqlData':Object,'gridPageOptions':Array,'gridViewModes':Array,'viewGridData':Object,'columnTabGridConfig':Object,'viewColumnData':Array,'buttonTabGridConfig':Object,'viewButtonData':Array,'searchTabGridConfig':Object,'viewSearchData':Array};}get['context'](){const _0x1736b8=a0_0x3e0044;return{'title':TermsUtil[_0x1736b8(0x173)]('meta_generator'),'actions':[{'title':TermsUtil[_0x1736b8(0x128)](_0x1736b8(0x15a)),'action':this['save'][_0x1736b8(0x13f)](this),...CommonButtonStyles[_0x1736b8(0x15a)]},{'title':TermsUtil['tButton'](_0x1736b8(0x14e)),'action':this[_0x1736b8(0x11b)][_0x1736b8(0x13f)](this),...CommonButtonStyles[_0x1736b8(0x14e)]},{'title':TermsUtil['tButton'](_0x1736b8(0x167)),'action':this[_0x1736b8(0x167)][_0x1736b8(0x13f)](this),...CommonButtonStyles[_0x1736b8(0x167)]}]};}[a0_0x3e0044(0x107)](_0x185bb6,_0x35c36d){const _0x2c8d9c=a0_0x3e0044;let _0x56ec88=_0x185bb6['dirtyData'];_0x56ec88['records']=_0x56ec88['records'][_0x2c8d9c(0xff)](_0x3ef002=>_0x3ef002['id']!=_0x35c36d['id']),_0x185bb6[_0x2c8d9c(0x12a)]=_0x56ec88;}async['save'](){const _0x5efccf=a0_0x3e0044;if(0x0==store[_0x5efccf(0x127)]()[_0x5efccf(0x13b)][_0x5efccf(0x14b)])return void document[_0x5efccf(0x147)](new CustomEvent(_0x5efccf(0x148),{'detail':{'level':_0x5efccf(0x129),'message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client[_0x5efccf(0x16b)]({'query':a0_0x1d3f1e`
142
+ }`];}static get[a0_0x9db818(0x1da)](){return{'menuId':String,'menuName':String,'metaTemplate':Object,'currentTabKey':String,'tabData':Object,'dataStorage':Object,'viewMenuData':Object,'afterSetFieldsConfig':Object,'skipFieldsConfig':Object,'viewGraphqlData':Object,'gridPageOptions':Array,'gridViewModes':Array,'viewGridData':Object,'columnTabGridConfig':Object,'viewColumnData':Array,'buttonTabGridConfig':Object,'viewButtonData':Array,'searchTabGridConfig':Object,'viewSearchData':Array};}get['context'](){const _0x3dea9a=a0_0x9db818;return{'title':TermsUtil[_0x3dea9a(0x1e1)]('meta_generator'),'actions':[{'title':TermsUtil[_0x3dea9a(0x1ea)](_0x3dea9a(0x1dc)),'action':this['save'][_0x3dea9a(0x221)](this),...CommonButtonStyles['save']},{'title':TermsUtil[_0x3dea9a(0x1ea)]('back'),'action':this[_0x3dea9a(0x222)]['bind'](this),...CommonButtonStyles[_0x3dea9a(0x202)]},{'title':TermsUtil[_0x3dea9a(0x1ea)]('refresh'),'action':this[_0x3dea9a(0x208)]['bind'](this),...CommonButtonStyles[_0x3dea9a(0x208)]}]};}['deleteRow'](_0x4b33f1,_0x24f640){const _0x5af84b=a0_0x9db818;let _0x5e9608=_0x4b33f1[_0x5af84b(0x232)];_0x5e9608[_0x5af84b(0x24a)]=_0x5e9608[_0x5af84b(0x24a)]['filter'](_0x23a55=>_0x23a55['id']!=_0x24f640['id']),_0x4b33f1[_0x5af84b(0x1f0)]=_0x5e9608;}async['save'](){const _0x3ac330=a0_0x9db818;if(0x0==store[_0x3ac330(0x1e0)]()[_0x3ac330(0x1f3)]['studioPermission'])return void document[_0x3ac330(0x204)](new CustomEvent('notify',{'detail':{'level':'error','message':i18next['t'](_0x3ac330(0x1f9))}}));if((await client[_0x3ac330(0x238)]({'query':a0_0x162102`
145
143
  query ($id: String!) {
146
144
  studioTemplateIsOverLimit(id: $id)
147
145
  }
148
- `,'variables':{'id':this[_0x5efccf(0x115)]}}))['errors'])return;let _0x564820={},_0x1eb2c4={};Object['keys'](this[_0x5efccf(0x12d)])[_0x5efccf(0x131)](_0x1e88cd=>{const _0x1c99b8=_0x5efccf;let _0x4e60ed=this[_0x1c99b8(0x143)](_0x1e88cd);_0x564820[_0x1e88cd]=this[_0x1c99b8(0x13c)+_0x4e60ed+_0x1c99b8(0x138)](),_0x1eb2c4=merge(_0x1eb2c4,_0x564820[_0x1e88cd]);}),_0x1eb2c4=JSON[_0x5efccf(0x104)](_0x1eb2c4),_0x1eb2c4=MetaCrypto['enc'](_0x1eb2c4),await MetaApi['updateMultiple'](_0x5efccf(0x16a),[{'id':this[_0x5efccf(0x115)],'template':_0x1eb2c4,'cuFlag':'M'}])&&await this[_0x5efccf(0x102)]();}['clear'](){const _0x1a68d7=a0_0x3e0044;this['setTabData'](),this[_0x1a68d7(0x124)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x1a68d7(0x13a)](this['tabData'])['forEach'](_0x3690e3=>{const _0x247374=_0x1a68d7;let _0x1d3bf7=this[_0x247374(0x143)](_0x3690e3);if(this[_0x247374(0x11d)+_0x1d3bf7+_0x247374(0x138)])return this[_0x247374(0x11d)+_0x1d3bf7+_0x247374(0x138)](this['dataStorage'][_0x3690e3]);});}async[a0_0x3e0044(0x167)](){this['clear'](),await this['initData']();}[a0_0x3e0044(0x11b)](){const _0x1d28f9=a0_0x3e0044;history[_0x1d28f9(0x14e)]();}async[a0_0x3e0044(0x102)](){const _0x2f5326=a0_0x3e0044;var {menuId:_0x3cfed4=''}=this[_0x2f5326(0x114)]?.[_0x2f5326(0x16c)]?this['lifecycle'][_0x2f5326(0x16c)]:{};if(this[_0x2f5326(0x115)]=_0x3cfed4,!_0x3cfed4||''==_0x3cfed4)return void this['clear']();let _0x4d0b47=await MetaApi[_0x2f5326(0x10b)](_0x2f5326(0x137),_0x3cfed4,_0x2f5326(0x158));if(_0x4d0b47){try{JSON[_0x2f5326(0x154)](MetaCrypto['dec'](_0x4d0b47[_0x2f5326(0x165)]));}catch(_0x8930bf){return;}this[_0x2f5326(0x10a)]=TermsUtil['tMenu'](_0x4d0b47[_0x2f5326(0x116)]),this[_0x2f5326(0x120)]=_0x4d0b47[_0x2f5326(0x165)]?JSON[_0x2f5326(0x154)](MetaCrypto[_0x2f5326(0x161)](_0x4d0b47['template'])):{};var {menu:_0x218aea={},gql:_0x3b73e6={},button:_0x1f8b1d=[],grid_column:_0x40f89d=[],grid:_0x283f52={},search:_0x9788d3=[],form:_0x39d71d=[],tab:_0x1130d8=[],etc:_0xda6d68={},gridEmphasized:_0x175d20=[]}=this[_0x2f5326(0x120)]?this['metaTemplate']:{};this['setTabData'](),this[_0x2f5326(0x124)]={},this[_0x2f5326(0x124)][_0x2f5326(0x137)]=_0x218aea,this[_0x2f5326(0x124)][_0x2f5326(0x162)]=_0x3b73e6,this[_0x2f5326(0x124)][_0x2f5326(0x174)]=_0x283f52,this[_0x2f5326(0x124)]['form']=_0x39d71d,this[_0x2f5326(0x124)]['tab']=_0x1130d8,this[_0x2f5326(0x124)]['etc']=_0xda6d68,this[_0x2f5326(0x124)][_0x2f5326(0x111)]=_0x175d20,(_0x283f52['option']?.['sorters']||[])[_0x2f5326(0x131)]((_0x2fd6b4,_0x4c6012)=>{const _0x263478=_0x2f5326;_0x2fd6b4[_0x263478(0x156)]=0xa*(_0x4c6012+0x1);}),this['dataStorage'][_0x2f5326(0x123)]=_0x40f89d[_0x2f5326(0x157)](_0x47f82a=>{const _0x29e102=_0x2f5326;let _0x5ac150=(_0x283f52[_0x29e102(0x122)]?.[_0x29e102(0x10d)]||[])[_0x29e102(0xff)](_0x306dc4=>_0x306dc4[_0x29e102(0x116)]==_0x47f82a[_0x29e102(0x116)]);return _0x5ac150&&_0x5ac150[_0x29e102(0x132)]>0x0?(_0x47f82a[_0x29e102(0x12e)]=_0x5ac150[0x0][_0x29e102(0x156)],_0x47f82a['sort_desc']=!!_0x5ac150[0x0][_0x29e102(0x160)]&&_0x5ac150[0x0][_0x29e102(0x160)]):_0x47f82a[_0x29e102(0x12e)]=0x0,_0x47f82a[_0x29e102(0x105)]=(_0x283f52[_0x29e102(0x151)]?.[_0x29e102(0x10f)]||[])[_0x29e102(0x10e)](_0x47f82a['name']),_0x47f82a[_0x29e102(0x139)]=(_0x283f52['list']?.[_0x29e102(0x153)]||[])['includes'](_0x47f82a['name']),_0x47f82a['thumbnail_field']=_0x283f52[_0x29e102(0x151)]?.[_0x29e102(0x163)]==_0x47f82a['name'],_0x47f82a;}),_0x9788d3[_0x2f5326(0x12c)](...(_0x3b73e6['query']?.[_0x2f5326(0x126)]||[])[_0x2f5326(0x157)](_0x5940c4=>(_0x5940c4[_0x2f5326(0x172)]=!0x0,_0x5940c4))),this['dataStorage'][_0x2f5326(0x11e)]=_0x9788d3,_0x1f8b1d[_0x2f5326(0x12c)](...(_0x283f52[_0x2f5326(0x112)]||[])[_0x2f5326(0x157)](_0x13d8bc=>(_0x13d8bc[_0x2f5326(0x168)]='grid-'+_0x13d8bc['type'],_0x13d8bc[_0x2f5326(0x15c)]=_0x13d8bc[_0x2f5326(0x109)],_0x13d8bc))),this[_0x2f5326(0x124)][_0x2f5326(0x112)]=_0x1f8b1d,Object[_0x2f5326(0x13a)](this[_0x2f5326(0x12d)])[_0x2f5326(0x131)](_0x7ceed9=>{const _0x37f078=_0x2f5326;let _0x3707fd=this['convertFirstCharUpperCase'](_0x7ceed9);if(this[_0x37f078(0x11d)+_0x3707fd+_0x37f078(0x138)])return this[_0x37f078(0x11d)+_0x3707fd+_0x37f078(0x138)](this[_0x37f078(0x124)][_0x7ceed9]);});}}async[a0_0x3e0044(0x130)](){const _0x1364ca=a0_0x3e0044;this[_0x1364ca(0x103)]();let _0x1d883d=Object['keys'](this[_0x1364ca(0x12d)]);for(var _0x4c4ef0=0x0;_0x4c4ef0<_0x1d883d[_0x1364ca(0x132)];_0x4c4ef0++){let _0x3b7a49=this[_0x1364ca(0x143)](_0x1d883d[_0x4c4ef0]);this['set'+_0x3b7a49+_0x1364ca(0x15d)]&&await this[_0x1364ca(0x11d)+_0x3b7a49+_0x1364ca(0x15d)]();}}async[a0_0x3e0044(0x169)](_0x12d392,_0x2cfd1e,_0x4f1d24){const _0x66c7c3=a0_0x3e0044;!0x0===this[_0x66c7c3(0x106)]?(this['setTabData'](),await this[_0x66c7c3(0x102)](),this[_0x66c7c3(0x103)]()):(this['clear'](),this[_0x66c7c3(0x113)]());}['setTabData'](){const _0x387de7=a0_0x3e0044;this[_0x387de7(0x12d)]||(this[_0x387de7(0x12d)]={'menu':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x12f)),'graphql':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x121)),'grid':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x14d)),'column':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x142)),'gridEmphasized':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x16d)),'button':TermsUtil['tLabel'](_0x387de7(0x146)),'search':TermsUtil[_0x387de7(0x16f)](_0x387de7(0xfd)),'form':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x10c)),'tab':TermsUtil[_0x387de7(0x16f)](_0x387de7(0x166)),'etc':TermsUtil['tLabel'](_0x387de7(0x155))});}['render'](){const _0x4ff4e3=a0_0x3e0044;this['currentTabKey']||(this[_0x4ff4e3(0x117)]=_0x4ff4e3(0x137)),this[_0x4ff4e3(0x103)]();let _0x18557e=Object[_0x4ff4e3(0x13a)](this[_0x4ff4e3(0x12d)]);return this['tabData'][this[_0x4ff4e3(0x117)]]?this[_0x4ff4e3(0x117)]:_0x18557e[0x0],html`
149
- <h1>${this[_0x4ff4e3(0x10a)]}</h1>
146
+ `,'variables':{'id':this['menuId']}}))['errors'])return;let _0x19c606={},_0x4be5ff={};Object[_0x3ac330(0x217)](this[_0x3ac330(0x1fa)])[_0x3ac330(0x230)](_0x46647c=>{const _0x18cd6c=_0x3ac330;let _0x4863e3=this[_0x18cd6c(0x1e2)](_0x46647c);_0x19c606[_0x46647c]=this['get'+_0x4863e3+'ConfigTabValues'](),_0x4be5ff=merge(_0x4be5ff,_0x19c606[_0x46647c]);}),_0x4be5ff=JSON[_0x3ac330(0x21f)](_0x4be5ff),_0x4be5ff=MetaCrypto[_0x3ac330(0x22c)](_0x4be5ff),await MetaApi[_0x3ac330(0x241)](_0x3ac330(0x1dd),[{'id':this[_0x3ac330(0x23a)],'template':_0x4be5ff,'cuFlag':'M'}])&&await this[_0x3ac330(0x1df)]();}[a0_0x9db818(0x1fb)](){const _0x59265f=a0_0x9db818;this['setTabData'](),this['dataStorage']={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x59265f(0x217)](this[_0x59265f(0x1fa)])[_0x59265f(0x230)](_0x2c07a5=>{const _0x1bf578=_0x59265f;let _0xdda0f8=this[_0x1bf578(0x1e2)](_0x2c07a5);if(this[_0x1bf578(0x233)+_0xdda0f8+_0x1bf578(0x228)])return this[_0x1bf578(0x233)+_0xdda0f8+_0x1bf578(0x228)](this[_0x1bf578(0x200)][_0x2c07a5]);});}async[a0_0x9db818(0x208)](){const _0x53b3a7=a0_0x9db818;this[_0x53b3a7(0x1fb)](),await this[_0x53b3a7(0x1df)]();}[a0_0x9db818(0x222)](){history['back']();}async[a0_0x9db818(0x1df)](){const _0x28bf70=a0_0x9db818;let {menuId:_0x18cd90=''}=this['lifecycle']?.[_0x28bf70(0x227)]?this[_0x28bf70(0x23c)][_0x28bf70(0x227)]:{};if(this['menuId']=_0x18cd90,!_0x18cd90||''==_0x18cd90)return void this[_0x28bf70(0x1fb)]();let _0x11a837=await MetaApi[_0x28bf70(0x1e5)](_0x28bf70(0x1eb),_0x18cd90,_0x28bf70(0x1f5));if(!_0x11a837)return;try{JSON[_0x28bf70(0x1f8)](MetaCrypto[_0x28bf70(0x20b)](_0x11a837['template']));}catch(_0x3602a8){return;}this[_0x28bf70(0x1f1)]=TermsUtil[_0x28bf70(0x1e8)](_0x11a837[_0x28bf70(0x22b)]),this[_0x28bf70(0x1db)]=_0x11a837['template']?JSON[_0x28bf70(0x1f8)](MetaCrypto[_0x28bf70(0x20b)](_0x11a837[_0x28bf70(0x1fd)])):{};let {menu:_0x3b40c9={},gql:_0x576a88={},button:_0x3b7198=[],grid_column:_0x6ca7fa=[],grid:_0x412739={},search:_0x1f4999=[],form:_0x24cefa=[],tab:_0x220dca=[],etc:_0x20092e={},gridEmphasized:_0x128d7a=[]}=this[_0x28bf70(0x1db)]?this[_0x28bf70(0x1db)]:{};this[_0x28bf70(0x1ee)](),this[_0x28bf70(0x200)]={},this[_0x28bf70(0x200)]['menu']=_0x3b40c9,this['dataStorage']['graphql']=_0x576a88,this[_0x28bf70(0x200)]['grid']=_0x412739,this[_0x28bf70(0x200)][_0x28bf70(0x23e)]=_0x24cefa,this['dataStorage'][_0x28bf70(0x21d)]=_0x220dca,this['dataStorage'][_0x28bf70(0x237)]=_0x20092e,this['dataStorage'][_0x28bf70(0x1e4)]=_0x128d7a,(_0x412739[_0x28bf70(0x214)]?.[_0x28bf70(0x213)]||[])[_0x28bf70(0x230)]((_0x1af80b,_0x5ad51c)=>{const _0x1fbfaa=_0x28bf70;_0x1af80b[_0x1fbfaa(0x210)]=0xa*(_0x5ad51c+0x1);}),this[_0x28bf70(0x200)]['column']=_0x6ca7fa[_0x28bf70(0x244)](_0x428d98=>{const _0x49b98e=_0x28bf70;let _0x3a74de=(_0x412739['option']?.['sorters']||[])['filter'](_0x570084=>_0x570084[_0x49b98e(0x22b)]==_0x428d98[_0x49b98e(0x22b)]);return _0x3a74de&&_0x3a74de[_0x49b98e(0x1fc)]>0x0?(_0x428d98[_0x49b98e(0x219)]=_0x3a74de[0x0][_0x49b98e(0x210)],_0x428d98['sort_desc']=!!_0x3a74de[0x0][_0x49b98e(0x21b)]&&_0x3a74de[0x0][_0x49b98e(0x21b)]):_0x428d98[_0x49b98e(0x219)]=0x0,_0x428d98[_0x49b98e(0x215)]=(_0x412739[_0x49b98e(0x1e9)]?.['fields']||[])[_0x49b98e(0x231)](_0x428d98[_0x49b98e(0x22b)]),_0x428d98[_0x49b98e(0x240)]=(_0x412739[_0x49b98e(0x1e9)]?.[_0x49b98e(0x22e)]||[])[_0x49b98e(0x231)](_0x428d98[_0x49b98e(0x22b)]),_0x428d98[_0x49b98e(0x242)]=_0x412739[_0x49b98e(0x1e9)]?.[_0x49b98e(0x22f)]==_0x428d98[_0x49b98e(0x22b)],_0x428d98;}),_0x1f4999[_0x28bf70(0x1ff)](...(_0x576a88[_0x28bf70(0x238)]?.[_0x28bf70(0x247)]||[])[_0x28bf70(0x244)](_0x2b6aa6=>(_0x2b6aa6['hidden']=!0x0,_0x2b6aa6))),this[_0x28bf70(0x200)][_0x28bf70(0x1de)]=_0x1f4999,_0x3b7198[_0x28bf70(0x1ff)](...(_0x412739['button']||[])[_0x28bf70(0x244)](_0x200bff=>(_0x200bff['type']=_0x28bf70(0x206)+_0x200bff['type'],_0x200bff[_0x28bf70(0x201)]=_0x200bff[_0x28bf70(0x21e)],_0x200bff))),this[_0x28bf70(0x200)][_0x28bf70(0x218)]=_0x3b7198,Object['keys'](this[_0x28bf70(0x1fa)])[_0x28bf70(0x230)](_0x2f3abf=>{const _0x4aa1e0=_0x28bf70;let _0x1ef803=this[_0x4aa1e0(0x1e2)](_0x2f3abf);if(this['set'+_0x1ef803+_0x4aa1e0(0x228)])return this[_0x4aa1e0(0x233)+_0x1ef803+_0x4aa1e0(0x228)](this['dataStorage'][_0x2f3abf]);});}async[a0_0x9db818(0x22a)](){const _0xc72572=a0_0x9db818;this['setTabData']();let _0x46976b=Object[_0xc72572(0x217)](this[_0xc72572(0x1fa)]);for(let _0x1b135c=0x0;_0x1b135c<_0x46976b[_0xc72572(0x1fc)];_0x1b135c++){let _0x3c7968=this[_0xc72572(0x1e2)](_0x46976b[_0x1b135c]);this[_0xc72572(0x233)+_0x3c7968+'ConfigTabConfig']&&await this['set'+_0x3c7968+_0xc72572(0x1fe)]();}}async['pageUpdated'](_0x14b1d8,_0x318580,_0x4c9e65){const _0x522d9d=a0_0x9db818;!0x0===this[_0x522d9d(0x245)]?(this[_0x522d9d(0x1ee)](),await this[_0x522d9d(0x1df)](),this[_0x522d9d(0x1ee)]()):(this[_0x522d9d(0x1fb)](),this['remove']());}[a0_0x9db818(0x1ee)](){const _0xe4626=a0_0x9db818;this[_0xe4626(0x1fa)]||(this['tabData']={'menu':TermsUtil[_0xe4626(0x246)](_0xe4626(0x1f6)),'graphql':TermsUtil[_0xe4626(0x246)](_0xe4626(0x249)),'grid':TermsUtil[_0xe4626(0x246)]('grid_config'),'column':TermsUtil[_0xe4626(0x246)]('column_config'),'gridEmphasized':TermsUtil[_0xe4626(0x246)](_0xe4626(0x248)),'button':TermsUtil[_0xe4626(0x246)]('button_config'),'search':TermsUtil[_0xe4626(0x246)]('search_config'),'form':TermsUtil[_0xe4626(0x246)](_0xe4626(0x226)),'tab':TermsUtil[_0xe4626(0x246)]('tab_config'),'etc':TermsUtil[_0xe4626(0x246)](_0xe4626(0x1ed))});}[a0_0x9db818(0x1f4)](){const _0x353065=a0_0x9db818;this[_0x353065(0x234)]||(this[_0x353065(0x234)]=_0x353065(0x1eb)),this[_0x353065(0x1ee)]();let _0x5397b2=Object['keys'](this['tabData']);return this['tabData'][this['currentTabKey']]?this[_0x353065(0x234)]:_0x5397b2[0x0],html`
147
+ <h1>${this[_0x353065(0x1f1)]}</h1>
150
148
  <div class="tabs">
151
- ${_0x18557e['map'](_0x4c56f6=>{const _0x18d730=_0x4ff4e3;let _0x1b4420=this[_0x18d730(0x12d)][_0x4c56f6];return html`
152
- <div class="tab" ?activate="${_0x4c56f6===this[_0x18d730(0x117)]}" @click="${()=>this['currentTabKey']=_0x4c56f6}">
153
- <span>${_0x1b4420}</span>
149
+ ${_0x5397b2[_0x353065(0x244)](_0x59a30c=>{const _0x4caee2=_0x353065;let _0x3aace2=this[_0x4caee2(0x1fa)][_0x59a30c];return html`
150
+ <div class="tab" ?activate="${_0x59a30c===this[_0x4caee2(0x234)]}" @click="${()=>this['currentTabKey']=_0x59a30c}">
151
+ <span>${_0x3aace2}</span>
154
152
  </div>
155
153
  `;})}
156
154
  </div>
157
155
  <div class="content-container">
158
- ${_0x18557e['map'](_0x4856bf=>{const _0x4d6127=_0x4ff4e3;let _0x2ad3c4=_0x4d6127(0x118);return _0x4856bf==this[_0x4d6127(0x117)]&&(_0x2ad3c4=_0x4d6127(0x134)),html`
159
- <div class='tab-contents' style="${_0x2ad3c4}">
160
- ${this[_0x4d6127(0x164)](_0x4856bf)}
161
- </div>
162
- `;})}
156
+ ${_0x5397b2['map'](_0x3f380e=>{const _0x1b697c=_0x353065;let _0x5794ba=_0x1b697c(0x23d);return _0x3f380e==this['currentTabKey']&&(_0x5794ba=_0x1b697c(0x1f7)),html`
157
+ <div class='tab-contents' style="${_0x5794ba}">
158
+ ${this[_0x1b697c(0x1f2)](_0x3f380e)}
159
+ </div>
160
+ `;})}
163
161
  </div>
164
- `;}['getConfigTab'](_0x7bc930){const _0x38375b=a0_0x3e0044;let _0x3f6c72=this[_0x38375b(0x143)](_0x7bc930);return this[_0x38375b(0x149)+_0x3f6c72+'ConfigTab']?this['render'+_0x3f6c72+_0x38375b(0x16e)]():html``;}[a0_0x3e0044(0x143)](_0x250212){const _0x246657=a0_0x3e0044;return _0x250212[_0x246657(0x145)](0x0)[_0x246657(0x14a)]()+_0x250212['slice'](0x1);}[a0_0x3e0044(0x133)](_0x51099b){const _0x889268=a0_0x3e0044;return this[_0x889268(0x15b)][_0x889268(0x135)]('#'+_0x51099b);}[a0_0x3e0044(0x13e)](_0xd91452){const _0x30f3b3=a0_0x3e0044;let _0x87eea9=this['shadowRoot'][_0x30f3b3(0x135)]('#'+_0xd91452);if(!_0x87eea9)return;let _0x27833f='';if('select'==_0x87eea9[_0x30f3b3(0x100)][_0x30f3b3(0x119)]()){if(!_0x87eea9[_0x30f3b3(0x14f)]||0x0==_0x87eea9[_0x30f3b3(0x14f)][_0x30f3b3(0x132)])return;_0x27833f=_0x87eea9[_0x30f3b3(0x14f)][_0x87eea9[_0x30f3b3(0x152)]][_0x30f3b3(0x15e)];}else{if(_0x30f3b3(0x13d)==_0x87eea9[_0x30f3b3(0x100)][_0x30f3b3(0x119)]()){if(!_0x87eea9[_0x30f3b3(0x15f)])return;if(!_0x87eea9[_0x30f3b3(0x15f)][_0x30f3b3(0x11f)])return;if(0x0==_0x87eea9[_0x30f3b3(0x15f)][_0x30f3b3(0x11f)][_0x30f3b3(0x132)])return;return _0x87eea9[_0x30f3b3(0x15f)]['records'];}if('ox-input-code'==_0x87eea9['tagName'][_0x30f3b3(0x119)]())return _0x87eea9['value'];if(_0x30f3b3(0xfe)==_0x87eea9['type'][_0x30f3b3(0x119)]()){let _0x11fb23=this[_0x30f3b3(0x15b)][_0x30f3b3(0x135)]('#'+_0xd91452+_0x30f3b3(0x150));if(!_0x11fb23)return;return _0x11fb23['value'];}_0x27833f=_0x87eea9[_0x30f3b3(0x15e)];}return _0x27833f&&''!=_0x27833f?_0x27833f:void 0x0;}[a0_0x3e0044(0x108)](_0x2ce305){const _0x4c9534=a0_0x3e0044;return _0x2ce305?this[_0x4c9534(0x159)](_0x2ce305,'rank'):_0x2ce305;}['sortRecordByField'](_0x5bd915,_0x5cc8b3){const _0x535b25=a0_0x3e0044;return _0x5bd915[_0x535b25(0xfc)]((_0x369d9b,_0x1bb218)=>_0x369d9b[_0x5cc8b3]-_0x1bb218[_0x5cc8b3]),_0x5bd915;}}customElements[a0_0x3e0044(0x101)](a0_0x3e0044(0x136),MetaGeneratorPage);function a0_0x1234(){const _0x3a97a7=['toUpperCase','studioPermission','7116FuFxeL','grid_config','back','options',':checked','list','selectedIndex','details','parse','etc_config','rank','map','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20template\x0a\x20\x20\x20\x20','sortRecordByField','save','shadowRoot','style','ConfigTabConfig','value','dirtyData','desc','dec','graphql','thumbnail','getConfigTab','template','tab_config','refresh','type','pageUpdated','updateMultipleMenu','query','params','grid_emphasized_config','ConfigTab','tLabel','2264867QCgite','295vlYJFo','hidden','tTitle','grid','147000broYSa','properties','sort','search_config','radio','filter','tagName','define','initData','setTabData','stringify','rep_field','active','deleteRow','sortRecordByRank','icon','menuName','findOne','form_config','sorters','includes','fields','15eOLlGZ','gridEmphasized','button','remove','lifecycle','menuId','name','currentTabKey','display:none','toLowerCase','437801oPhJio','backToMenu','styles','set','search','records','metaTemplate','graphql_config','option','column','dataStorage','12737ytXzVz','filters','getState','tButton','error','data','153484Qiuwov','push','tabData','sort_rank','menu_config','pageInitialized','forEach','length','getElementById','display:flex','querySelector','meta-generator-page','menu','ConfigTabValues','detail_field','keys','operatoTools','get','ox-grist','getElementValueById','bind','10IcuKMo','2VMtfEz','column_config','convertFirstCharUpperCase','121734olyVLe','charAt','button_config','dispatchEvent','notify','render'];a0_0x1234=function(){return _0x3a97a7;};return a0_0x1234();}
162
+ `;}['getConfigTab'](_0x247eac){const _0x537c75=a0_0x9db818;let _0x45e8e4=this['convertFirstCharUpperCase'](_0x247eac);return this['render'+_0x45e8e4+_0x537c75(0x203)]?this[_0x537c75(0x1f4)+_0x45e8e4+_0x537c75(0x203)]():html``;}['convertFirstCharUpperCase'](_0x1f4901){const _0x826819=a0_0x9db818;return _0x1f4901['charAt'](0x0)[_0x826819(0x22d)]()+_0x1f4901[_0x826819(0x211)](0x1);}[a0_0x9db818(0x1ef)](_0x217ff2){const _0x3d34bb=a0_0x9db818;return this[_0x3d34bb(0x236)]['querySelector']('#'+_0x217ff2);}[a0_0x9db818(0x20f)](_0x3bdd19){const _0x3a1d7a=a0_0x9db818;let _0x58dbe0=this['shadowRoot'][_0x3a1d7a(0x1d9)]('#'+_0x3bdd19);if(!_0x58dbe0)return;let _0xffa30f='';if(_0x3a1d7a(0x225)==_0x58dbe0[_0x3a1d7a(0x212)]['toLowerCase']()){if(!_0x58dbe0[_0x3a1d7a(0x243)]||0x0==_0x58dbe0[_0x3a1d7a(0x243)]['length'])return;_0xffa30f=_0x58dbe0[_0x3a1d7a(0x243)][_0x58dbe0['selectedIndex']][_0x3a1d7a(0x209)];}else{if(_0x3a1d7a(0x20a)==_0x58dbe0[_0x3a1d7a(0x212)][_0x3a1d7a(0x23b)]()){if(!_0x58dbe0[_0x3a1d7a(0x232)])return;if(!_0x58dbe0[_0x3a1d7a(0x232)]['records'])return;if(0x0==_0x58dbe0[_0x3a1d7a(0x232)]['records']['length'])return;return _0x58dbe0[_0x3a1d7a(0x232)][_0x3a1d7a(0x24a)];}if(_0x3a1d7a(0x235)==_0x58dbe0[_0x3a1d7a(0x212)][_0x3a1d7a(0x23b)]())return _0x58dbe0[_0x3a1d7a(0x209)];if(_0x3a1d7a(0x223)==_0x58dbe0[_0x3a1d7a(0x1e3)][_0x3a1d7a(0x23b)]()){let _0x876459=this[_0x3a1d7a(0x236)][_0x3a1d7a(0x1d9)]('#'+_0x3bdd19+_0x3a1d7a(0x220));if(!_0x876459)return;return _0x876459[_0x3a1d7a(0x209)];}_0xffa30f=_0x58dbe0[_0x3a1d7a(0x209)];}return _0xffa30f&&''!=_0xffa30f?_0xffa30f:void 0x0;}[a0_0x9db818(0x20c)](_0x14e337){const _0x28b29c=a0_0x9db818;return _0x14e337?this[_0x28b29c(0x229)](_0x14e337,_0x28b29c(0x210)):_0x14e337;}[a0_0x9db818(0x229)](_0x4f1600,_0x1b18f7){const _0x5d8c22=a0_0x9db818;return _0x4f1600[_0x5d8c22(0x205)]((_0x42b016,_0x1b0ad1)=>_0x42b016[_0x1b18f7]-_0x1b0ad1[_0x1b18f7]),_0x4f1600;}}customElements[a0_0x9db818(0x21a)](a0_0x9db818(0x1e6),MetaGeneratorPage);
@@ -1,4 +1,4 @@
1
- const a0_0x2fd5b7=a0_0x1246;(function(_0x5385c4,_0x2718e4){const _0x48bd29=a0_0x1246,_0x1b0b8f=_0x5385c4();while(!![]){try{const _0x15ee3b=parseInt(_0x48bd29(0x8f))/0x1+-parseInt(_0x48bd29(0x97))/0x2+parseInt(_0x48bd29(0x7c))/0x3*(-parseInt(_0x48bd29(0x84))/0x4)+parseInt(_0x48bd29(0x8d))/0x5*(-parseInt(_0x48bd29(0xa3))/0x6)+parseInt(_0x48bd29(0x7d))/0x7*(parseInt(_0x48bd29(0x9f))/0x8)+parseInt(_0x48bd29(0x9d))/0x9*(parseInt(_0x48bd29(0xa4))/0xa)+-parseInt(_0x48bd29(0x94))/0xb*(-parseInt(_0x48bd29(0x83))/0xc);if(_0x15ee3b===_0x2718e4)break;else _0x1b0b8f['push'](_0x1b0b8f['shift']());}catch(_0x30c030){_0x1b0b8f['push'](_0x1b0b8f['shift']());}}}(a0_0x3c70,0xe086b));import{html}from'lit-element';function a0_0x3c70(){const _0x440b5a=['search','push','button','boolean','13353043syYyGy','value','renderSearchConfigTab','3354360knTFRo','right','filters','getGristGuttersConfig','fetch','object','3573JfWyOl','integer','6462304bgDMDq','filter','string','getCodeSelectorData','2897976ePxkLR','20560egmukg','querySelector','sortRecordByRank','FILTER_OPERATORS','name','hidden','map','default_value','getSearchConfigTabValues','gutter','center','assign','tLabel','12LnHedr','7Qebpfo','select','forEach','searchTabGrist','operator','left','24VmcPLh','56380pngtbF','setSearchConfigTabValues','bind','delete','gql','query','rank','search-tab-grid','searchTabGridConfig','15uAXaLp','viewSearchData','50361fHvUAX'];a0_0x3c70=function(){return _0x440b5a;};return a0_0x3c70();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x1246(_0x44c7fc,_0x1ecd80){const _0x3c70f6=a0_0x3c70();return a0_0x1246=function(_0x124655,_0x4a31f7){_0x124655=_0x124655-0x7c;let _0x3d235f=_0x3c70f6[_0x124655];return _0x3d235f;},a0_0x1246(_0x44c7fc,_0x1ecd80);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const SearchConfigTabMixin=_0x4e1b7b=>class extends _0x4e1b7b{[a0_0x2fd5b7(0x85)](_0x29ff55){const _0x2361f6=a0_0x2fd5b7;let _0x498f4c=_0x29ff55?.[_0x2361f6(0xaa)]((_0x199454,_0x19a065)=>{const _0x685dc4=_0x2361f6;let _0x3a294b=_0x19a065+0x1,_0x3fbed5={};return _0x685dc4(0x9c)==typeof _0x199454?Object[_0x685dc4(0xaf)](_0x3fbed5,_0x199454):(_0x3fbed5[_0x685dc4(0xa8)]=_0x199454,_0x3fbed5[_0x685dc4(0x81)]=_0x685dc4(0xa0)),_0x3fbed5[_0x685dc4(0x8a)]=0xa*_0x3a294b,_0x3fbed5['id']=_0x3a294b,_0x3fbed5;});this[_0x2361f6(0x8e)]=_0x498f4c||[],this['searchTabGrist']?.[_0x2361f6(0x9b)]();}[a0_0x2fd5b7(0xac)](){const _0x40b085=a0_0x2fd5b7;let _0x28999f={'search':[],'gql':{'query':{'filters':[]}}},_0x317d65=this['getElementValueById'](_0x40b085(0x8b));return this[_0x40b085(0xa6)](_0x317d65)?.[_0x40b085(0x7f)](_0xa41edb=>{const _0x84a8e9=_0x40b085;var {name:_0x53945f,operator:_0x185ef5='eq',hidden:_0xcfd5f0=!0x1,value:_0x22f677}=_0xa41edb;if(_0x53945f){if(_0x84a8e9(0xa0)==_0x185ef5)_0x28999f[_0x84a8e9(0x90)][_0x84a8e9(0x91)](_0x53945f);else{let _0x1bb352={'name':_0x53945f,'operator':_0x185ef5};0x1==_0xcfd5f0?(_0x1bb352[_0x84a8e9(0x95)]=_0x22f677,_0x28999f[_0x84a8e9(0x88)][_0x84a8e9(0x89)][_0x84a8e9(0x99)][_0x84a8e9(0x91)](_0x1bb352)):(_0x1bb352['value']=_0x22f677,_0x28999f[_0x84a8e9(0x90)][_0x84a8e9(0x91)](_0x1bb352));}}}),_0x28999f;}[a0_0x2fd5b7(0x96)](){const _0x4e2508=a0_0x2fd5b7;return html`
2
- <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x4e2508(0x8c)]} .mode='GRID'
3
- .fetchHandler=${this['fetchSearchTabHandler'][_0x4e2508(0x86)](this)}>
4
- </ox-grist>`;}get['searchTabGrist'](){const _0x1f8a4b=a0_0x2fd5b7;return this['shadowRoot'][_0x1f8a4b(0xa5)]('#search-tab-grid');}async['fetchSearchTabHandler'](){const _0x13693e=a0_0x2fd5b7;return{'total':0x0,'records':this[_0x13693e(0x8e)]||[]};}async['setSearchConfigTabConfig'](){const _0x19a35e=a0_0x2fd5b7;let _0x20ffc8=await MetaApi[_0x19a35e(0xa2)](_0x19a35e(0xa7));this[_0x19a35e(0x8c)]={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x19a35e(0x8a),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x19a35e(0x9a)](!0x1,!0x1),{'type':_0x19a35e(0xad),'gutterName':_0x19a35e(0x92),'icon':_0x19a35e(0x87),'handlers':{'click':(_0x21e0c3,_0x1f11c5,_0x363e20,_0x27ab17,_0x365fae)=>{const _0x117ceb=_0x19a35e;_0x27ab17['id']&&this['deleteRow'](this[_0x117ceb(0x80)],_0x27ab17);}}},{'type':_0x19a35e(0xa1),'name':'id','hidden':!0x0},{'type':_0x19a35e(0x9e),'name':'rank','header':TermsUtil[_0x19a35e(0xb0)]('rank'),'sortable':!0x1,'width':0x32,'record':{'align':_0x19a35e(0x98),'editable':!0x0,'mandatory':!0x0}},{'type':_0x19a35e(0xa1),'name':_0x19a35e(0xa8),'header':TermsUtil[_0x19a35e(0xb0)]('name'),'sortable':!0x1,'width':0xc8,'record':{'align':_0x19a35e(0x82),'editable':!0x0,'mandatory':!0x0}},{'type':_0x19a35e(0x7e),'name':_0x19a35e(0x81),'header':TermsUtil['tLabel']('search_operator'),'sortable':!0x1,'width':0x64,'record':{'align':_0x19a35e(0x82),'editable':!0x0,'mandatory':!0x1,'options':_0x20ffc8}},{'type':_0x19a35e(0x93),'name':_0x19a35e(0xa9),'header':TermsUtil[_0x19a35e(0xb0)](_0x19a35e(0xa9)),'sortable':!0x1,'width':0x37,'record':{'align':_0x19a35e(0xae),'mandatory':!0x1,'editable':!0x0}},{'type':_0x19a35e(0xa1),'name':_0x19a35e(0x95),'header':TermsUtil[_0x19a35e(0xb0)](_0x19a35e(0xab)),'sortable':!0x1,'width':0x2ee,'record':{'align':_0x19a35e(0x82),'editable':!0x0,'mandatory':!0x1}}]};}};
1
+ function a0_0x32cf(_0x40203d,_0x5ed440){const _0x58b377=a0_0x58b3();return a0_0x32cf=function(_0x32cf47,_0x2dabae){_0x32cf47=_0x32cf47-0x16c;let _0x5a79d0=_0x58b377[_0x32cf47];return _0x5a79d0;},a0_0x32cf(_0x40203d,_0x5ed440);}const a0_0x15c9b0=a0_0x32cf;(function(_0x1e2bc1,_0x444bf1){const _0x27feb7=a0_0x32cf,_0x480ffc=_0x1e2bc1();while(!![]){try{const _0x102c5f=-parseInt(_0x27feb7(0x188))/0x1+parseInt(_0x27feb7(0x18f))/0x2*(-parseInt(_0x27feb7(0x180))/0x3)+-parseInt(_0x27feb7(0x179))/0x4+parseInt(_0x27feb7(0x198))/0x5*(parseInt(_0x27feb7(0x190))/0x6)+-parseInt(_0x27feb7(0x17e))/0x7+parseInt(_0x27feb7(0x184))/0x8*(-parseInt(_0x27feb7(0x16c))/0x9)+parseInt(_0x27feb7(0x173))/0xa*(parseInt(_0x27feb7(0x197))/0xb);if(_0x102c5f===_0x444bf1)break;else _0x480ffc['push'](_0x480ffc['shift']());}catch(_0xa5535){_0x480ffc['push'](_0x480ffc['shift']());}}}(a0_0x58b3,0x65034));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x58b3(){const _0x2c039e=['rank','search','deleteRow','integer','11DKhCoO','322165KqVzTd','right','147717SLlVlU','name','assign','tLabel','#search-tab-grid','filter','filters','22731990TWdhsK','getGristSelectableConfig','string','default_value','fetchSearchTabHandler','viewSearchData','3144116YUnvPn','FILTER_OPERATORS','select','gutter','left','697081auIUrr','searchTabGrist','21vLBHUa','fetch','boolean','object','376hWivQZ','setSearchConfigTabValues','search_operator','query','185773SIbLeM','getElementValueById','value','gql','querySelector','push','operator','23168pawmRh','6CyfxFY','shadowRoot','searchTabGridConfig'];a0_0x58b3=function(){return _0x2c039e;};return a0_0x58b3();}export const SearchConfigTabMixin=_0x389c14=>class extends _0x389c14{[a0_0x15c9b0(0x185)](_0x4ae32a){const _0x1b484b=a0_0x15c9b0;let _0x5d793d=_0x4ae32a?.['map']((_0xc17786,_0x3fe129)=>{const _0x5e90eb=a0_0x32cf;let _0x4a4ad7=_0x3fe129+0x1,_0x581d98={};return _0x5e90eb(0x183)==typeof _0xc17786?Object[_0x5e90eb(0x16e)](_0x581d98,_0xc17786):(_0x581d98[_0x5e90eb(0x16d)]=_0xc17786,_0x581d98[_0x5e90eb(0x18e)]=_0x5e90eb(0x171)),_0x581d98[_0x5e90eb(0x193)]=0xa*_0x4a4ad7,_0x581d98['id']=_0x4a4ad7,_0x581d98;});this['viewSearchData']=_0x5d793d||[],this['searchTabGrist']?.[_0x1b484b(0x181)]();}['getSearchConfigTabValues'](){const _0x2c4ab3=a0_0x15c9b0;let _0x54c6b0={'search':[],'gql':{'query':{'filters':[]}}},_0x3cf190=this[_0x2c4ab3(0x189)]('search-tab-grid');return this['sortRecordByRank'](_0x3cf190)?.['forEach'](_0x4e0f40=>{const _0xf73d34=_0x2c4ab3;var {name:_0x238ef3,operator:_0x346fa2='eq',hidden:_0x495b25=!0x1,value:_0x40f7d7}=_0x4e0f40;if(_0x238ef3){if(_0xf73d34(0x171)==_0x346fa2)_0x54c6b0['search'][_0xf73d34(0x18d)](_0x238ef3);else{let _0x465097={'name':_0x238ef3,'operator':_0x346fa2};0x1==_0x495b25?(_0x465097['value']=_0x40f7d7,_0x54c6b0[_0xf73d34(0x18b)][_0xf73d34(0x187)][_0xf73d34(0x172)][_0xf73d34(0x18d)](_0x465097)):(_0x465097[_0xf73d34(0x18a)]=_0x40f7d7,_0x54c6b0[_0xf73d34(0x194)][_0xf73d34(0x18d)](_0x465097));}}}),_0x54c6b0;}['renderSearchConfigTab'](){const _0x371572=a0_0x15c9b0;return html`
2
+ <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x371572(0x192)]} .mode='GRID'
3
+ .fetchHandler=${this[_0x371572(0x177)]['bind'](this)}>
4
+ </ox-grist>`;}get[a0_0x15c9b0(0x17f)](){const _0x5013c3=a0_0x15c9b0;return this[_0x5013c3(0x191)][_0x5013c3(0x18c)](_0x5013c3(0x170));}async[a0_0x15c9b0(0x177)](){const _0x39a350=a0_0x15c9b0;return{'total':0x0,'records':this[_0x39a350(0x178)]||[]};}async['setSearchConfigTabConfig'](){const _0x42ab6e=a0_0x15c9b0;let _0x56682a=await MetaApi['getCodeSelectorData'](_0x42ab6e(0x17a));this[_0x42ab6e(0x192)]={'rows':MetaApi[_0x42ab6e(0x174)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x42ab6e(0x17c),'gutterName':'button','icon':'delete','handlers':{'click':(_0x5dd30b,_0x2d8cfd,_0x32a4b0,_0x6fa7ac,_0x47c363)=>{const _0x3ca2db=_0x42ab6e;_0x6fa7ac['id']&&this[_0x3ca2db(0x195)](this['searchTabGrist'],_0x6fa7ac);}}},{'type':_0x42ab6e(0x175),'name':'id','hidden':!0x0},{'type':_0x42ab6e(0x196),'name':'rank','header':TermsUtil[_0x42ab6e(0x16f)](_0x42ab6e(0x193)),'sortable':!0x1,'width':0x32,'record':{'align':_0x42ab6e(0x199),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x42ab6e(0x16d),'header':TermsUtil['tLabel'](_0x42ab6e(0x16d)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x42ab6e(0x17d),'editable':!0x0,'mandatory':!0x0}},{'type':_0x42ab6e(0x17b),'name':_0x42ab6e(0x18e),'header':TermsUtil['tLabel'](_0x42ab6e(0x186)),'sortable':!0x1,'width':0x64,'record':{'align':_0x42ab6e(0x17d),'editable':!0x0,'mandatory':!0x1,'options':_0x56682a}},{'type':_0x42ab6e(0x182),'name':'hidden','header':TermsUtil[_0x42ab6e(0x16f)]('hidden'),'sortable':!0x1,'width':0x37,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x42ab6e(0x18a),'header':TermsUtil['tLabel'](_0x42ab6e(0x176)),'sortable':!0x1,'width':0x2ee,'record':{'align':_0x42ab6e(0x17d),'editable':!0x0,'mandatory':!0x1}}]};}};
@@ -1,4 +1,4 @@
1
- const a0_0x43d070=a0_0x1eb9;(function(_0x251334,_0x7332aa){const _0x20269e=a0_0x1eb9,_0x5bb2f6=_0x251334();while(!![]){try{const _0x26e400=-parseInt(_0x20269e(0xe5))/0x1+-parseInt(_0x20269e(0xf1))/0x2*(parseInt(_0x20269e(0xec))/0x3)+parseInt(_0x20269e(0xd8))/0x4*(parseInt(_0x20269e(0xf7))/0x5)+-parseInt(_0x20269e(0xe1))/0x6+-parseInt(_0x20269e(0xdb))/0x7*(parseInt(_0x20269e(0x106))/0x8)+parseInt(_0x20269e(0xde))/0x9*(parseInt(_0x20269e(0xda))/0xa)+parseInt(_0x20269e(0xf0))/0xb;if(_0x26e400===_0x7332aa)break;else _0x5bb2f6['push'](_0x5bb2f6['shift']());}catch(_0x34af5f){_0x5bb2f6['push'](_0x5bb2f6['shift']());}}}(a0_0xe63b,0x8f3f8));import{html}from'lit-element';function a0_0x1eb9(_0x30c4e7,_0x27aa5e){const _0xe63b7a=a0_0xe63b();return a0_0x1eb9=function(_0x1eb950,_0x117658){_0x1eb950=_0x1eb950-0xd6;let _0x53bff2=_0xe63b7a[_0x1eb950];return _0x53bff2;},a0_0x1eb9(_0x30c4e7,_0x27aa5e);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const TabConfigTabMixin=_0x34ba04=>class extends _0x34ba04{[a0_0x43d070(0xe2)](_0x47b73f){const _0x15ac72=a0_0x43d070;let _0x56883a=_0x47b73f?.[_0x15ac72(0xee)]((_0x16a490,_0x255c39)=>{const _0x3e51ea=_0x15ac72;let _0x4244ef=_0x255c39+0x1,_0x25c2e3={};return _0x25c2e3[_0x3e51ea(0xe8)]=0xa*_0x4244ef,_0x25c2e3['id']=_0x4244ef,_0x25c2e3[_0x3e51ea(0xd6)]=_0x16a490[_0x3e51ea(0xd6)],_0x25c2e3['display']=_0x16a490[_0x3e51ea(0xe3)],_0x25c2e3[_0x3e51ea(0x101)]=_0x16a490['tagname'],_0x25c2e3[_0x3e51ea(0xf3)]=_0x16a490[_0x3e51ea(0xf3)],_0x25c2e3[_0x3e51ea(0xf2)]=_0x16a490[_0x3e51ea(0xf2)],_0x25c2e3[_0x3e51ea(0xd9)]=_0x16a490[_0x3e51ea(0xd9)],_0x25c2e3[_0x3e51ea(0xfd)]=_0x16a490['param_field'],_0x25c2e3[_0x3e51ea(0xf8)]=_0x16a490[_0x3e51ea(0xf8)],_0x25c2e3;});this[_0x15ac72(0xed)]=_0x56883a||[],this[_0x15ac72(0xe6)]?.[_0x15ac72(0xea)]();}['getTabConfigTabValues'](){const _0x47873c=a0_0x43d070;let _0x557c1e={'tab':[]},_0x58fe02=this[_0x47873c(0xeb)](_0x47873c(0xdd));return this[_0x47873c(0xf9)](_0x58fe02)?.[_0x47873c(0x102)](_0x3785de=>{const _0x328b1f=_0x47873c;var {name:_0x5af231,display:_0x2bc1b2,tagname:_0x2bd263,location:_0x3b7b41,parent_field:_0x4eb347,param_field:_0x5f5b1d,menu:_0x244ba8,icon:_0x2d7ed5}=_0x3785de;_0x5af231&&_0x2bd263&&_0x3b7b41&&_0x244ba8&&(_0x2bc1b2||(_0x2bc1b2=_0x5af231),_0x4eb347||(_0x4eb347='id'),_0x5f5b1d||(_0x5f5b1d='param_field'),_0x557c1e['tab'][_0x328b1f(0xdc)]({'name':_0x5af231,'display':_0x2bc1b2,'tagname':_0x2bd263,'location':_0x3b7b41,'parent_field':_0x4eb347,'param_field':_0x5f5b1d,'menu':_0x244ba8,'icon':_0x2d7ed5}));}),_0x557c1e;}[a0_0x43d070(0x104)](){const _0x37e7a9=a0_0x43d070;return html`
2
- <ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x37e7a9(0x103)]} .mode='GRID'
3
- .fetchHandler=${this[_0x37e7a9(0xe0)]['bind'](this)}>
4
- </ox-grist>`;}get['tabTabGrist'](){const _0x4eecdb=a0_0x43d070;return this[_0x4eecdb(0xdf)]['querySelector']('#tab-tab-grid');}async[a0_0x43d070(0xe0)](){const _0x2d1633=a0_0x43d070;return{'total':0x0,'records':this[_0x2d1633(0xed)]||[]};}async[a0_0x43d070(0xf5)](){const _0x23de13=a0_0x43d070;this['tabTabGridConfig']={'rows':MetaApi[_0x23de13(0x100)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x23de13(0xd7)](!0x1,!0x1),{'type':_0x23de13(0xfa),'gutterName':_0x23de13(0xfc),'icon':_0x23de13(0xf4),'handlers':{'click':(_0x4e307b,_0xac1d3d,_0x13f87e,_0x3bc661,_0x2dff0f)=>{_0x3bc661['id']&&this['deleteRow'](this['tabTabGrist'],_0x3bc661);}}},{'type':_0x23de13(0xe7),'name':'id','hidden':!0x0},{'type':_0x23de13(0xe9),'name':_0x23de13(0xe8),'header':TermsUtil[_0x23de13(0xfe)](_0x23de13(0xe8)),'sortable':!0x1,'width':0x32,'record':{'align':_0x23de13(0xfb),'editable':!0x0,'mandatory':!0x0}},{'type':_0x23de13(0xe7),'name':_0x23de13(0xd6),'header':TermsUtil[_0x23de13(0xfe)]('name'),'sortable':!0x1,'width':0x6e,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x23de13(0xe3),'header':TermsUtil[_0x23de13(0xfe)](_0x23de13(0xe3)),'sortable':!0x1,'width':0x6e,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':_0x23de13(0xe7),'name':'icon','header':TermsUtil['tLabel'](_0x23de13(0xf3)),'sortable':!0x0,'width':0x55,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':_0x23de13(0xe7),'name':_0x23de13(0xf8),'header':TermsUtil[_0x23de13(0xfe)](_0x23de13(0x105)),'sortable':!0x1,'width':0x96,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':_0x23de13(0xe7),'name':_0x23de13(0x101),'header':TermsUtil[_0x23de13(0xfe)](_0x23de13(0xef)),'sortable':!0x1,'width':0x96,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x23de13(0xf2),'header':TermsUtil['tLabel']('page_location'),'sortable':!0x1,'width':0x145,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':_0x23de13(0xe7),'name':_0x23de13(0xd9),'header':TermsUtil[_0x23de13(0xfe)](_0x23de13(0xf6)),'sortable':!0x1,'width':0x64,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x23de13(0xfd),'header':TermsUtil['tLabel'](_0x23de13(0xe4)),'sortable':!0x1,'width':0x5a,'record':{'align':_0x23de13(0xff),'editable':!0x0,'mandatory':!0x0}}]};}};function a0_0xe63b(){const _0x9203ef=['5RRlIPe','menu','sortRecordByRank','gutter','right','button','param_field','tLabel','left','getGristSelectableConfig','tagname','forEach','tabTabGridConfig','renderTabConfigTab','routing','48zLvrnz','name','getGristGuttersConfig','2721316rqfYeZ','parent_field','50gzAXIs','169925fRnPhu','push','tab-tab-grid','1869561AjSCqE','shadowRoot','fetchTabTabHandler','4401414AcXTae','setTabConfigTabValues','display','params','940438cRCCeU','tabTabGrist','string','rank','integer','fetch','getElementValueById','84087ThCrYM','viewTabData','map','tag','12186482lrmgbk','30mRhzmX','location','icon','delete','setTabConfigTabConfig','parent_id'];a0_0xe63b=function(){return _0x9203ef;};return a0_0xe63b();}
1
+ const a0_0x301f78=a0_0x32e0;(function(_0x4d0814,_0x2e0028){const _0x510e34=a0_0x32e0,_0x7ee7d0=_0x4d0814();while(!![]){try{const _0x505dba=parseInt(_0x510e34(0xb1))/0x1+-parseInt(_0x510e34(0x93))/0x2*(parseInt(_0x510e34(0xa7))/0x3)+-parseInt(_0x510e34(0xae))/0x4*(parseInt(_0x510e34(0xa3))/0x5)+-parseInt(_0x510e34(0x96))/0x6*(parseInt(_0x510e34(0xb8))/0x7)+-parseInt(_0x510e34(0xb5))/0x8+parseInt(_0x510e34(0xaa))/0x9*(-parseInt(_0x510e34(0x97))/0xa)+parseInt(_0x510e34(0xb4))/0xb*(parseInt(_0x510e34(0xaf))/0xc);if(_0x505dba===_0x2e0028)break;else _0x7ee7d0['push'](_0x7ee7d0['shift']());}catch(_0x46b30f){_0x7ee7d0['push'](_0x7ee7d0['shift']());}}}(a0_0x38c0,0x85d32));import{html}from'lit-element';function a0_0x32e0(_0x340dba,_0x49038c){const _0x38c09c=a0_0x38c0();return a0_0x32e0=function(_0x32e085,_0x3c048e){_0x32e085=_0x32e085-0x8f;let _0x32c296=_0x38c09c[_0x32e085];return _0x32c296;},a0_0x32e0(_0x340dba,_0x49038c);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x38c0(){const _0x2d8539=['button','tabTabGridConfig','rank','display','map','440RVMXWs','parent_field','icon','369450eRxMMM','40PVVAGk','integer','deleteRow','tLabel','param_field','left','fetchTabTabHandler','tagname','renderTabConfigTab','menu','setTabConfigTabConfig','push','5yGzVaw','forEach','right','routing','14574ahlNJj','tag','name','2637GIvTUb','location','getGristSelectableConfig','gutter','3987548AYDUWK','11282472NKXUYh','sortRecordByRank','743995jrmhqI','shadowRoot','string','44YcAVOE','6744632gLHobq','#tab-tab-grid','viewTabData','119wvniWY','tabTabGrist'];a0_0x38c0=function(){return _0x2d8539;};return a0_0x38c0();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const TabConfigTabMixin=_0x32509f=>class extends _0x32509f{['setTabConfigTabValues'](_0x5ddb50){const _0xb6a30d=a0_0x32e0;let _0x2fd32e=_0x5ddb50?.[_0xb6a30d(0x92)]((_0x3853de,_0x57290a)=>{const _0x31a84a=_0xb6a30d;let _0x38462a=_0x57290a+0x1,_0x426d9c={};return _0x426d9c[_0x31a84a(0x90)]=0xa*_0x38462a,_0x426d9c['id']=_0x38462a,_0x426d9c['name']=_0x3853de[_0x31a84a(0xa9)],_0x426d9c[_0x31a84a(0x91)]=_0x3853de[_0x31a84a(0x91)],_0x426d9c[_0x31a84a(0x9e)]=_0x3853de[_0x31a84a(0x9e)],_0x426d9c[_0x31a84a(0x95)]=_0x3853de['icon'],_0x426d9c[_0x31a84a(0xab)]=_0x3853de[_0x31a84a(0xab)],_0x426d9c[_0x31a84a(0x94)]=_0x3853de[_0x31a84a(0x94)],_0x426d9c['param_field']=_0x3853de[_0x31a84a(0x9b)],_0x426d9c['menu']=_0x3853de[_0x31a84a(0xa0)],_0x426d9c;});this[_0xb6a30d(0xb7)]=_0x2fd32e||[],this[_0xb6a30d(0xb9)]?.['fetch']();}['getTabConfigTabValues'](){const _0x57a512=a0_0x32e0;let _0x452eab={'tab':[]},_0x482664=this['getElementValueById']('tab-tab-grid');return this[_0x57a512(0xb0)](_0x482664)?.[_0x57a512(0xa4)](_0x2dc518=>{const _0x502679=_0x57a512;var {name:_0x32fd0b,display:_0x47cf34,tagname:_0x591c4f,location:_0x5552ba,parent_field:_0x1a8046,param_field:_0x1646d2,menu:_0x118c93,icon:_0x47546b}=_0x2dc518;_0x32fd0b&&_0x591c4f&&_0x5552ba&&_0x118c93&&(_0x47cf34||(_0x47cf34=_0x32fd0b),_0x1a8046||(_0x1a8046='id'),_0x1646d2||(_0x1646d2=_0x502679(0x9b)),_0x452eab['tab'][_0x502679(0xa2)]({'name':_0x32fd0b,'display':_0x47cf34,'tagname':_0x591c4f,'location':_0x5552ba,'parent_field':_0x1a8046,'param_field':_0x1646d2,'menu':_0x118c93,'icon':_0x47546b}));}),_0x452eab;}[a0_0x301f78(0x9f)](){const _0x586b25=a0_0x301f78;return html`
2
+ <ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x586b25(0x8f)]} .mode='GRID'
3
+ .fetchHandler=${this[_0x586b25(0x9d)]['bind'](this)}>
4
+ </ox-grist>`;}get[a0_0x301f78(0xb9)](){const _0x124386=a0_0x301f78;return this[_0x124386(0xb2)]['querySelector'](_0x124386(0xb6));}async[a0_0x301f78(0x9d)](){const _0x15565b=a0_0x301f78;return{'total':0x0,'records':this[_0x15565b(0xb7)]||[]};}async[a0_0x301f78(0xa1)](){const _0x3d3179=a0_0x301f78;this[_0x3d3179(0x8f)]={'rows':MetaApi[_0x3d3179(0xac)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x3d3179(0x90),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x3d3179(0xad),'gutterName':_0x3d3179(0xba),'icon':'delete','handlers':{'click':(_0x58dcf6,_0x5dbd9b,_0x4fec69,_0x226d91,_0x5d6b0e)=>{const _0x25766f=_0x3d3179;_0x226d91['id']&&this[_0x25766f(0x99)](this[_0x25766f(0xb9)],_0x226d91);}}},{'type':_0x3d3179(0xb3),'name':'id','hidden':!0x0},{'type':_0x3d3179(0x98),'name':_0x3d3179(0x90),'header':TermsUtil[_0x3d3179(0x9a)](_0x3d3179(0x90)),'sortable':!0x1,'width':0x32,'record':{'align':_0x3d3179(0xa5),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3d3179(0xa9),'header':TermsUtil[_0x3d3179(0x9a)](_0x3d3179(0xa9)),'sortable':!0x1,'width':0x6e,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}},{'type':_0x3d3179(0xb3),'name':_0x3d3179(0x91),'header':TermsUtil[_0x3d3179(0x9a)]('display'),'sortable':!0x1,'width':0x6e,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3d3179(0x95),'header':TermsUtil[_0x3d3179(0x9a)]('icon'),'sortable':!0x0,'width':0x55,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}},{'type':_0x3d3179(0xb3),'name':_0x3d3179(0xa0),'header':TermsUtil[_0x3d3179(0x9a)](_0x3d3179(0xa6)),'sortable':!0x1,'width':0x96,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}},{'type':_0x3d3179(0xb3),'name':_0x3d3179(0x9e),'header':TermsUtil['tLabel'](_0x3d3179(0xa8)),'sortable':!0x1,'width':0x96,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3d3179(0xab),'header':TermsUtil['tLabel']('page_location'),'sortable':!0x1,'width':0x145,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3d3179(0x94),'header':TermsUtil[_0x3d3179(0x9a)]('parent_id'),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3d3179(0x9b),'header':TermsUtil[_0x3d3179(0x9a)]('params'),'sortable':!0x1,'width':0x5a,'record':{'align':_0x3d3179(0x9c),'editable':!0x0,'mandatory':!0x0}}]};}};