@things-factory/operato-tools 6.1.37 → 6.1.39

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_0x2373(_0x3d8f6f,_0x2ce8aa){const _0x24b12f=a0_0x24b1();return a0_0x2373=function(_0x237371,_0x356717){_0x237371=_0x237371-0xf3;let _0x4025dd=_0x24b12f[_0x237371];return _0x4025dd;},a0_0x2373(_0x3d8f6f,_0x2ce8aa);}function a0_0x24b1(){const _0x36d0b7=['CARD','216DSTsHq','codeItems','getElementValueById','use_filter_form','grid_term_1000','grid','grid_use_filter','push','GRID_VIEW_MODE','list_view_use','1wBeMfS','multiple_select','card_view_use','setGridConfigTabConfig','132810EGdbmF','grid_pagination','1730196ozTztg','getGridConfigTabValues','grid_use_row_check','name','unuse','desk_mode','setGridConfigTabValues','grid_support_multi_select','unlimited','mobile_mode','1550610ufpDXd','_view_use','638544SaNVTf','option','GRID','row','description','GRID_PAGE_OPTIONS','includes','view_mode','10nrleWb','5302917OxktiI','renderGridConfigTab','pages','8nJecaD','tLabel','grid_row_check_use','grid_mobile_view','length','use','grid_desk_view','LIST','grid_multi_select','70vmfYlU','grid_support_view','toLowerCase','setGridConfigTabDetaultValues','697323PqkUrV','true','203zgRlom','gridViewModes','use_row_checker','viewGridData','grid_term_default','2753818bwbvHm','select-row-toggle','map','grid_term_100'];a0_0x24b1=function(){return _0x36d0b7;};return a0_0x24b1();}const a0_0x5f13b7=a0_0x2373;(function(_0x55f867,_0x4c4823){const _0x57739a=a0_0x2373,_0x259f65=_0x55f867();while(!![]){try{const _0x967efa=-parseInt(_0x57739a(0x11d))/0x1*(parseInt(_0x57739a(0x10e))/0x2)+parseInt(_0x57739a(0x12d))/0x3+-parseInt(_0x57739a(0x12f))/0x4*(parseInt(_0x57739a(0xf6))/0x5)+-parseInt(_0x57739a(0x121))/0x6*(parseInt(_0x57739a(0x109))/0x7)+parseInt(_0x57739a(0xfa))/0x8*(parseInt(_0x57739a(0xf7))/0x9)+parseInt(_0x57739a(0x103))/0xa*(-parseInt(_0x57739a(0x107))/0xb)+-parseInt(_0x57739a(0x113))/0xc*(-parseInt(_0x57739a(0x123))/0xd);if(_0x967efa===_0x4c4823)break;else _0x259f65['push'](_0x259f65['shift']());}catch(_0x14daec){_0x259f65['push'](_0x259f65['shift']());}}}(a0_0x24b1,0xafc14));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=_0x566b52=>class extends _0x566b52{[a0_0x5f13b7(0x129)](_0x2503e8){const _0x6b24ce=a0_0x5f13b7;if(_0x2503e8){var {mobile_mode:_0x93b423='',desk_mode:_0x4b3a01='',pages:_0x114139=[],use_row_checker:_0x252a45=!0x0,view_mode:_0x22f346=[]}=_0x2503e8[_0x6b24ce(0x130)]||{};let _0x242f66=(_0x2503e8[_0x6b24ce(0x132)]||{'multiple_select':!0x1})[_0x6b24ce(0x11e)],_0x5ab613=_0x6b24ce(0x12b)==_0x114139?'grid_term_unlimited':0x0==_0x114139[_0x6b24ce(0xfe)]?'':0x14==_0x114139[0x0]?'grid_term_default':'grid_term_'+_0x114139[0x0];this[_0x6b24ce(0x10c)]={'mobile_mode':_0x93b423,'desk_mode':_0x4b3a01,'use_row_checker':_0x252a45,'pages':_0x5ab613,'view_mode':_0x22f346,'multiple_select':_0x242f66,'use_filter_form':_0x2503e8[_0x6b24ce(0x116)]};}else this[_0x6b24ce(0x106)]();}[a0_0x5f13b7(0x124)](){const _0x38cc97=a0_0x5f13b7;let _0x2740c9={'grid':{'option':{},'row':{'click':_0x38cc97(0x10f)}}},_0x334c93=this[_0x38cc97(0x115)](_0x38cc97(0xfc)),_0x3b88b8=this[_0x38cc97(0x115)](_0x38cc97(0x102)),_0x22b3b4=this[_0x38cc97(0x115)](_0x38cc97(0x100)),_0x4c61ba=this[_0x38cc97(0x115)](_0x38cc97(0xfd)),_0x5bc758=this[_0x38cc97(0x115)](_0x38cc97(0x119)),_0x1ef693=this[_0x38cc97(0x115)]('grid_pagination'),_0x4c41dd=this['getElementValueById']('grid_view_use'),_0x30bb1f=this[_0x38cc97(0x115)](_0x38cc97(0x11c)),_0x535e60=this[_0x38cc97(0x115)](_0x38cc97(0x11f));return _0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x116)]=_0x38cc97(0x108)==_0x5bc758,_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x132)]['multiple_select']=_0x38cc97(0x108)==_0x3b88b8,_0x2740c9[_0x38cc97(0x118)]['option'][_0x38cc97(0x10b)]=_0x38cc97(0x108)==_0x334c93,_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)]['mobile_mode']=_0x4c61ba,_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)][_0x38cc97(0x128)]=_0x22b3b4,_0x38cc97(0x10d)==_0x1ef693?_0x2740c9['grid'][_0x38cc97(0x130)][_0x38cc97(0xf9)]=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x1ef693?_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)][_0x38cc97(0xf9)]=[0x32,0x64,0x1f4,0x3e8]:_0x38cc97(0x111)==_0x1ef693?_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)][_0x38cc97(0xf9)]=[0x64,0x1f4,0x3e8,0x1388]:_0x38cc97(0x117)==_0x1ef693?_0x2740c9['grid'][_0x38cc97(0x130)][_0x38cc97(0xf9)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:'grid_term_unlimited'==_0x1ef693&&(_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)]['pages']=_0x38cc97(0x12b)),_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)][_0x38cc97(0xf5)]=[],_0x38cc97(0x108)==_0x4c41dd&&_0x2740c9['grid'][_0x38cc97(0x130)][_0x38cc97(0xf5)]['push'](_0x38cc97(0x131)),_0x38cc97(0x108)==_0x30bb1f&&_0x2740c9[_0x38cc97(0x118)][_0x38cc97(0x130)][_0x38cc97(0xf5)][_0x38cc97(0x11a)](_0x38cc97(0x101)),'true'==_0x535e60&&_0x2740c9['grid'][_0x38cc97(0x130)][_0x38cc97(0xf5)][_0x38cc97(0x11a)]('CARD'),_0x2740c9;}async[a0_0x5f13b7(0x120)](){const _0x4bbf77=a0_0x5f13b7;let _0x2cff6e=await MetaApi[_0x4bbf77(0x114)](_0x4bbf77(0xf3)),_0x49b1d6=await MetaApi[_0x4bbf77(0x114)](_0x4bbf77(0x11b));this[_0x4bbf77(0x10a)]=_0x49b1d6,this['gridPageOptions']=_0x2cff6e;}[a0_0x5f13b7(0x106)](){const _0x1ab7ee=a0_0x5f13b7;this['viewGridData']||(this['viewGridData']={'mobile_mode':this[_0x1ab7ee(0x10a)]?this[_0x1ab7ee(0x10a)][0x1]:'LIST','desk_mode':this[_0x1ab7ee(0x10a)]?this['gridViewModes'][0x0]:_0x1ab7ee(0x131),'use_row_checker':!0x0,'pages':_0x1ab7ee(0x10d),'view_mode':[...this[_0x1ab7ee(0x10a)]?this[_0x1ab7ee(0x10a)]:[_0x1ab7ee(0x131),_0x1ab7ee(0x101),_0x1ab7ee(0x112)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x5f13b7(0xf8)](){const _0x48dc8a=a0_0x5f13b7;return this[_0x48dc8a(0x106)](),html`
1
+ function a0_0xe4e8(_0x1a6789,_0x14e611){const _0x1599cd=a0_0x1599();return a0_0xe4e8=function(_0xe4e8fd,_0x3c603d){_0xe4e8fd=_0xe4e8fd-0x1db;let _0x234359=_0x1599cd[_0xe4e8fd];return _0x234359;},a0_0xe4e8(_0x1a6789,_0x14e611);}const a0_0x4e7431=a0_0xe4e8;(function(_0xeeda,_0x458d5e){const _0x427f8f=a0_0xe4e8,_0x153759=_0xeeda();while(!![]){try{const _0x5efa08=parseInt(_0x427f8f(0x204))/0x1*(parseInt(_0x427f8f(0x1ea))/0x2)+parseInt(_0x427f8f(0x1fd))/0x3+-parseInt(_0x427f8f(0x1e1))/0x4*(-parseInt(_0x427f8f(0x1eb))/0x5)+-parseInt(_0x427f8f(0x216))/0x6+parseInt(_0x427f8f(0x1ec))/0x7+parseInt(_0x427f8f(0x1f9))/0x8+parseInt(_0x427f8f(0x218))/0x9*(-parseInt(_0x427f8f(0x1ef))/0xa);if(_0x5efa08===_0x458d5e)break;else _0x153759['push'](_0x153759['shift']());}catch(_0x11076f){_0x153759['push'](_0x153759['shift']());}}}(a0_0x1599,0xe8a60));function a0_0x1599(){const _0x3358d3=['renderGridConfigTab','1028872hftbpU','GRID_PAGE_OPTIONS','viewGridData','name','view_mode','setGridConfigTabDetaultValues','select-row-toggle','_view_use','LIST','1807186LgqweI','5LVRcxF','11329430zuhhoo','grid_pagination','desk_mode','15170rXvAbX','CARD','grid_term_unlimited','pages','option','includes','getElementValueById','description','map','grid','10908776KBahvL','unsupport','grid_use_row_check','use_row_checker','1845294gOWwhQ','gridPageOptions','grid_desk_view','mobile_mode','grid_view_use','grid_support_multi_select','grid_multi_select','2LYKupB','true','push','GRID_VIEW_MODE','grid_use_filter','grid_term_50','unlimited','tLabel','setGridConfigTabValues','toLowerCase','gridViewModes','grid_term_default','grid_term_1000','GRID','row','list_view_use','use','length','3731178AoSfSA','grid_support_view','24246pCrLLd','unuse','multiple_select','getGridConfigTabValues','use_filter_form','codeItems'];a0_0x1599=function(){return _0x3358d3;};return a0_0x1599();}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=_0x32b8d7=>class extends _0x32b8d7{[a0_0x4e7431(0x20c)](_0x4526c8){const _0x5f279d=a0_0x4e7431;if(_0x4526c8){var {mobile_mode:_0x2e2677='',desk_mode:_0x4da41f='',pages:_0x3223c8=[],use_row_checker:_0x427c8e=!0x0,view_mode:_0x2b757f=[]}=_0x4526c8[_0x5f279d(0x1f3)]||{};let _0x4889af=(_0x4526c8[_0x5f279d(0x212)]||{'multiple_select':!0x1})[_0x5f279d(0x1dc)],_0x2171e3=_0x5f279d(0x20a)==_0x3223c8?_0x5f279d(0x1f1):0x0==_0x3223c8[_0x5f279d(0x215)]?'':0x14==_0x3223c8[0x0]?_0x5f279d(0x20f):'grid_term_'+_0x3223c8[0x0];this['viewGridData']={'mobile_mode':_0x2e2677,'desk_mode':_0x4da41f,'use_row_checker':_0x427c8e,'pages':_0x2171e3,'view_mode':_0x2b757f,'multiple_select':_0x4889af,'use_filter_form':_0x4526c8[_0x5f279d(0x1de)]};}else this[_0x5f279d(0x1e6)]();}[a0_0x4e7431(0x1dd)](){const _0x413cba=a0_0x4e7431;let _0x22118e={'grid':{'option':{},'row':{'click':_0x413cba(0x1e7)}}},_0x2c1e1b=this[_0x413cba(0x1f5)]('grid_row_check_use'),_0x94fb50=this[_0x413cba(0x1f5)](_0x413cba(0x203)),_0x43b749=this[_0x413cba(0x1f5)](_0x413cba(0x1ff)),_0x162050=this[_0x413cba(0x1f5)]('grid_mobile_view'),_0x3c908b=this[_0x413cba(0x1f5)](_0x413cba(0x208)),_0x1f677d=this[_0x413cba(0x1f5)](_0x413cba(0x1ed)),_0x123e14=this['getElementValueById'](_0x413cba(0x201)),_0x56ea04=this[_0x413cba(0x1f5)](_0x413cba(0x213)),_0x2f32b0=this[_0x413cba(0x1f5)]('card_view_use');return _0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1de)]=_0x413cba(0x205)==_0x3c908b,_0x22118e[_0x413cba(0x1f8)]['row'][_0x413cba(0x1dc)]='true'==_0x94fb50,_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1fc)]='true'==_0x2c1e1b,_0x22118e['grid']['option'][_0x413cba(0x200)]=_0x162050,_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1ee)]=_0x43b749,_0x413cba(0x20f)==_0x1f677d?_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)]['pages']=[0x14,0x1e,0x32,0x64]:_0x413cba(0x209)==_0x1f677d?_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)]['pages']=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x1f677d?_0x22118e['grid'][_0x413cba(0x1f3)][_0x413cba(0x1f2)]=[0x64,0x1f4,0x3e8,0x1388]:_0x413cba(0x210)==_0x1f677d?_0x22118e['grid'][_0x413cba(0x1f3)][_0x413cba(0x1f2)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x413cba(0x1f1)==_0x1f677d&&(_0x22118e[_0x413cba(0x1f8)]['option'][_0x413cba(0x1f2)]=_0x413cba(0x20a)),_0x22118e['grid'][_0x413cba(0x1f3)]['view_mode']=[],'true'==_0x123e14&&_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1e5)][_0x413cba(0x206)](_0x413cba(0x211)),_0x413cba(0x205)==_0x56ea04&&_0x22118e['grid']['option']['view_mode'][_0x413cba(0x206)](_0x413cba(0x1e9)),_0x413cba(0x205)==_0x2f32b0&&_0x22118e[_0x413cba(0x1f8)]['option'][_0x413cba(0x1e5)][_0x413cba(0x206)](_0x413cba(0x1f0)),_0x22118e;}async['setGridConfigTabConfig'](){const _0xb29327=a0_0x4e7431;let _0xd5bd83=await MetaApi[_0xb29327(0x1df)](_0xb29327(0x1e2)),_0xd39827=await MetaApi[_0xb29327(0x1df)](_0xb29327(0x207));this['gridViewModes']=_0xd39827,this[_0xb29327(0x1fe)]=_0xd5bd83;}[a0_0x4e7431(0x1e6)](){const _0x4a88eb=a0_0x4e7431;this[_0x4a88eb(0x1e3)]||(this['viewGridData']={'mobile_mode':this[_0x4a88eb(0x20e)]?this[_0x4a88eb(0x20e)][0x1]:_0x4a88eb(0x1e9),'desk_mode':this['gridViewModes']?this[_0x4a88eb(0x20e)][0x0]:_0x4a88eb(0x211),'use_row_checker':!0x0,'pages':_0x4a88eb(0x20f),'view_mode':[...this[_0x4a88eb(0x20e)]?this[_0x4a88eb(0x20e)]:[_0x4a88eb(0x211),_0x4a88eb(0x1e9),_0x4a88eb(0x1f0)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x4e7431(0x1e0)](){const _0x1f51e6=a0_0x4e7431;return this['setGridConfigTabDetaultValues'](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x48dc8a(0xfb)](_0x48dc8a(0x125))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1fb))}
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[_0x48dc8a(0x10c)]['use_row_checker']}>${TermsUtil['tLabel'](_0x48dc8a(0xff))}</input>
10
+ ?checked=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)]('use')}</input>
11
11
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
12
- ?checked=${!this[_0x48dc8a(0x10c)]['use_row_checker']}>${TermsUtil[_0x48dc8a(0xfb)]('unuse')}</input>
12
+ ?checked=${!this['viewGridData'][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1db))}</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[_0x48dc8a(0xfb)](_0x48dc8a(0x12a))}
18
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x202))}
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[_0x48dc8a(0x10c)]['multiple_select']}>${TermsUtil[_0x48dc8a(0xfb)]('support')}</input>
23
+ ?checked=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel']('support')}</input>
24
24
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
25
- ?checked=${!this['viewGridData'][_0x48dc8a(0x11e)]}>${TermsUtil[_0x48dc8a(0xfb)]('unsupport')}</input>
25
+ ?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1fa))}</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[_0x48dc8a(0xfb)](_0x48dc8a(0x119))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x208))}
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[_0x48dc8a(0x10c)][_0x48dc8a(0x116)]}>${TermsUtil['tLabel'](_0x48dc8a(0xff))}</input>
36
+ ?checked=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil[_0x1f51e6(0x20b)]('use')}</input>
37
37
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
38
- ?checked=${!this[_0x48dc8a(0x10c)][_0x48dc8a(0x116)]}>${TermsUtil[_0x48dc8a(0xfb)](_0x48dc8a(0x127))}</input>
38
+ ?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1db))}</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[_0x48dc8a(0xfb)](_0x48dc8a(0x100))}
45
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1ff))}
46
46
  </h2>
47
47
  <label>
48
48
  <select id="grid_desk_view" name="grid_desk_view">
49
- ${this[_0x48dc8a(0x10a)]?.['map'](_0x40e629=>html`<option value=${_0x40e629['name']} ?selected=${this[_0x48dc8a(0x10c)][_0x48dc8a(0x128)]==_0x40e629[_0x48dc8a(0x126)]}>${_0x40e629['description']}</option>`)}
49
+ ${this[_0x1f51e6(0x20e)]?.['map'](_0x105dd3=>html`<option value=${_0x105dd3[_0x1f51e6(0x1e4)]} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1ee)]==_0x105dd3['name']}>${_0x105dd3[_0x1f51e6(0x1f6)]}</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']('grid_mobile_view')}
55
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)]('grid_mobile_view')}
56
56
  </h2>
57
57
  <label>
58
58
  <select id="grid_mobile_view" name="grid_mobile_view">
59
- ${this['gridViewModes']?.[_0x48dc8a(0x110)](_0x5491e5=>html`<option value=${_0x5491e5[_0x48dc8a(0x126)]} ?selected=${this[_0x48dc8a(0x10c)][_0x48dc8a(0x12c)]==_0x5491e5[_0x48dc8a(0x126)]}>${_0x5491e5[_0x48dc8a(0x133)]}</option>`)}
59
+ ${this['gridViewModes']?.[_0x1f51e6(0x1f7)](_0x3515aa=>html`<option value=${_0x3515aa['name']} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x200)]==_0x3515aa[_0x1f51e6(0x1e4)]}>${_0x3515aa[_0x1f51e6(0x1f6)]}</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[_0x48dc8a(0xfb)](_0x48dc8a(0x104))}
65
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x217))}
66
66
  </h2>
67
67
  <label>
68
- ${this[_0x48dc8a(0x10a)]?.[_0x48dc8a(0x110)](_0x52414f=>html`
69
- <span>${_0x52414f[_0x48dc8a(0x126)]}
70
- <input type="radio" name=${_0x52414f['name'][_0x48dc8a(0x105)]()+_0x48dc8a(0x12e)} id=${_0x52414f[_0x48dc8a(0x126)][_0x48dc8a(0x105)]()+_0x48dc8a(0x12e)} ?checked=${this[_0x48dc8a(0x10c)]['view_mode'][_0x48dc8a(0xf4)](_0x52414f[_0x48dc8a(0x126)])} value="true">${TermsUtil[_0x48dc8a(0xfb)](_0x48dc8a(0xff))}</input>
71
- <input type="radio" name=${_0x52414f['name'][_0x48dc8a(0x105)]()+_0x48dc8a(0x12e)} id=${_0x52414f[_0x48dc8a(0x126)][_0x48dc8a(0x105)]()+_0x48dc8a(0x12e)} ?checked=${!this[_0x48dc8a(0x10c)]['view_mode']['includes'](_0x52414f[_0x48dc8a(0x126)])} value="false">${TermsUtil['tLabel'](_0x48dc8a(0x127))}</input>
68
+ ${this[_0x1f51e6(0x20e)]?.[_0x1f51e6(0x1f7)](_0x564087=>html`
69
+ <span>${_0x564087[_0x1f51e6(0x1e4)]}
70
+ <input type="radio" name=${_0x564087['name'][_0x1f51e6(0x20d)]()+_0x1f51e6(0x1e8)} id=${_0x564087['name'][_0x1f51e6(0x20d)]()+'_view_use'} ?checked=${this['viewGridData'][_0x1f51e6(0x1e5)][_0x1f51e6(0x1f4)](_0x564087[_0x1f51e6(0x1e4)])} value="true">${TermsUtil['tLabel'](_0x1f51e6(0x214))}</input>
71
+ <input type="radio" name=${_0x564087['name'][_0x1f51e6(0x20d)]()+_0x1f51e6(0x1e8)} id=${_0x564087[_0x1f51e6(0x1e4)][_0x1f51e6(0x20d)]()+'_view_use'} ?checked=${!this[_0x1f51e6(0x1e3)]['view_mode'][_0x1f51e6(0x1f4)](_0x564087[_0x1f51e6(0x1e4)])} value="false">${TermsUtil[_0x1f51e6(0x20b)]('unuse')}</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[_0x48dc8a(0xfb)](_0x48dc8a(0x122))}
78
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x1f51e6(0x1ed))}
79
79
  </h2>
80
80
  <label>
81
- ${this['gridPageOptions']?.[_0x48dc8a(0x110)](_0x371a1c=>html`
81
+ ${this[_0x1f51e6(0x1fe)]?.[_0x1f51e6(0x1f7)](_0x23b606=>html`
82
82
  <span>
83
- <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x371a1c[_0x48dc8a(0x126)]} ?checked=${this['viewGridData']['pages']==_0x371a1c[_0x48dc8a(0x126)]}>${TermsUtil['tLabel'](_0x371a1c['name'])}</input>
83
+ <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x23b606[_0x1f51e6(0x1e4)]} ?checked=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1f2)]==_0x23b606[_0x1f51e6(0x1e4)]}>${TermsUtil[_0x1f51e6(0x20b)](_0x23b606['name'])}</input>
84
84
  </span>
85
85
  `)}
86
86
  </label>
@@ -1,18 +1,18 @@
1
- const a0_0x5c5f2c=a0_0x1f5d;(function(_0x2620d9,_0x2d9b78){const _0x4ecd64=a0_0x1f5d,_0x354467=_0x2620d9();while(!![]){try{const _0x8a5005=parseInt(_0x4ecd64(0x1e2))/0x1*(-parseInt(_0x4ecd64(0x1e3))/0x2)+-parseInt(_0x4ecd64(0x1e9))/0x3+parseInt(_0x4ecd64(0x1c2))/0x4+-parseInt(_0x4ecd64(0x1cc))/0x5+parseInt(_0x4ecd64(0x1e0))/0x6+parseInt(_0x4ecd64(0x1cd))/0x7+-parseInt(_0x4ecd64(0x1ef))/0x8*(-parseInt(_0x4ecd64(0x1d4))/0x9);if(_0x8a5005===_0x2d9b78)break;else _0x354467['push'](_0x354467['shift']());}catch(_0x812b81){_0x354467['push'](_0x354467['shift']());}}}(a0_0xbb69,0xe426c));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0xbb69(){const _0x3dabe9=['rowEmphasizedConfig','row','right','button','font-color','GRID','27wiCsrf','setGridEmphasizedConfigTabDefaultValues','#row-emphasized-grist','column','columnEmphasizedData','getGridEmphasizedConfigTabValues','tLabel','integer','grid_column_emphasized_config','columnEmphasizedConfig','fontColor','grid_row_emphasized_config','9834726znysUQ','fetch','185171sqDFYA','8sfntSq','logic','sortRecordByRank','code-input','viewEmphasizedData','fetchColumnEmphasized','2196375fIUWrA','column-emphasized-grist','emphasizedConfigTabColumnEmphasizedGrist','keys','shadowRoot','delete','4939264PjhOKQ','background-color','gutter','string','emphasizedConfigTabRowEmphasizedGrist','push','row-emphasized-grist','rowEmphasizedData','#column-emphasized-grist','backgroundColor','fetchRowEmphasized','27644CEPuHg','rank','bind','getGristSelectableConfig','map','querySelector','forEach','getGristGuttersConfig','deleteRow','left','7045240BCxWFX','2226763jkPJgn'];a0_0xbb69=function(){return _0x3dabe9;};return a0_0xbb69();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x1f5d(_0x5089ca,_0x552f57){const _0xbb6938=a0_0xbb69();return a0_0x1f5d=function(_0x1f5d83,_0x2691bc){_0x1f5d83=_0x1f5d83-0x1b8;let _0x5e4811=_0xbb6938[_0x1f5d83];return _0x5e4811;},a0_0x1f5d(_0x5089ca,_0x552f57);}export const GridEmphasizedConfigTabMixin=_0x318775=>class extends _0x318775{['setGridEmphasizedConfigTabValues'](_0x209eb9){const _0x3f1f64=a0_0x1f5d;if(_0x209eb9){this[_0x3f1f64(0x1e7)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x1e6803=0x1;this[_0x3f1f64(0x1e7)][_0x3f1f64(0x1be)]=(_0x209eb9[_0x3f1f64(0x1cf)]||[])[_0x3f1f64(0x1c6)](_0x4241d0=>({'id':_0x1e6803,'rank':_0x1e6803++,'backgroundColor':_0x4241d0[_0x3f1f64(0x1c0)]||'','fontColor':_0x4241d0['fontColor']||'','logic':_0x4241d0[_0x3f1f64(0x1e4)]||''})),_0x1e6803=0x1;let _0x37ee8d=_0x209eb9[_0x3f1f64(0x1d7)]||[];Object[_0x3f1f64(0x1ec)](_0x37ee8d)[_0x3f1f64(0x1c8)](_0x203098=>{const _0x188aa1=_0x3f1f64;let _0x454bb2=_0x37ee8d[_0x203098]||[],_0x3008d9=0x1;_0x454bb2[_0x188aa1(0x1c8)](_0x1cac53=>{const _0x5d5ced=_0x188aa1;this[_0x5d5ced(0x1e7)]['columnEmphasizedData'][_0x5d5ced(0x1bc)]({'id':_0x1e6803++,'rank':_0x3008d9++,'column':_0x203098,'backgroundColor':_0x1cac53[_0x5d5ced(0x1c0)]||'','fontColor':_0x1cac53[_0x5d5ced(0x1de)]||'','logic':_0x1cac53[_0x5d5ced(0x1e4)]||''});});}),this[_0x3f1f64(0x1eb)]?.[_0x3f1f64(0x1e1)](),this[_0x3f1f64(0x1bb)]?.[_0x3f1f64(0x1e1)]();}else this[_0x3f1f64(0x1d5)]();}[a0_0x5c5f2c(0x1d9)](){const _0x575b9f=a0_0x5c5f2c;let _0x24e0d4=this['getElementValueById'](_0x575b9f(0x1bd)),_0x5e3ddc=this['getElementValueById'](_0x575b9f(0x1ea)),_0xf34e93=[];this[_0x575b9f(0x1e5)](_0x24e0d4)?.[_0x575b9f(0x1c8)](_0x193dce=>{const _0x4aff90=_0x575b9f;_0xf34e93[_0x4aff90(0x1bc)]({'backgroundColor':_0x193dce['backgroundColor'],'fontColor':_0x193dce[_0x4aff90(0x1de)],'logic':_0x193dce[_0x4aff90(0x1e4)]});});let _0x3f8f34={};return this[_0x575b9f(0x1e5)](_0x5e3ddc)?.['forEach'](_0x40385c=>{const _0x476e72=_0x575b9f;_0x3f8f34[_0x40385c[_0x476e72(0x1d7)]]||(_0x3f8f34[_0x40385c[_0x476e72(0x1d7)]]=[]),_0x3f8f34[_0x40385c[_0x476e72(0x1d7)]][_0x476e72(0x1bc)]({'backgroundColor':_0x40385c[_0x476e72(0x1c0)],'fontColor':_0x40385c[_0x476e72(0x1de)],'logic':_0x40385c[_0x476e72(0x1e4)]});}),{'gridEmphasized':{'row':_0xf34e93||[],'column':_0x3f8f34||{}}};}get[a0_0x5c5f2c(0x1bb)](){const _0x338137=a0_0x5c5f2c;return this[_0x338137(0x1ed)][_0x338137(0x1c7)](_0x338137(0x1d6));}get[a0_0x5c5f2c(0x1eb)](){const _0x7527b7=a0_0x5c5f2c;return this['shadowRoot'][_0x7527b7(0x1c7)](_0x7527b7(0x1bf));}['setGridEmphasizedConfigTabConfig'](){const _0x365562=a0_0x5c5f2c;this[_0x365562(0x1ce)]={'rows':MetaApi[_0x365562(0x1c5)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x365562(0x1b9),'gutterName':_0x365562(0x1d1),'icon':_0x365562(0x1ee),'handlers':{'click':(_0x147967,_0xf5d9eb,_0x14ebdc,_0x22e36c,_0x2496c2)=>{const _0x53875b=_0x365562;_0x22e36c['id']&&this[_0x53875b(0x1ca)](this[_0x53875b(0x1bb)],_0x22e36c);}}},{'type':_0x365562(0x1ba),'name':'id','hidden':!0x0},{'type':'integer','name':_0x365562(0x1c3),'header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1c3)),'sortable':!0x0,'width':0x41,'record':{'align':_0x365562(0x1d0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x365562(0x1ba),'name':_0x365562(0x1c0),'header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1b8)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x365562(0x1ba),'name':_0x365562(0x1de),'header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1d2)),'record':{'align':_0x365562(0x1cb),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x365562(0x1e6),'name':_0x365562(0x1e4),'header':TermsUtil['tLabel'](_0x365562(0x1e4)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x365562(0x1c5)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x365562(0x1c9)](!0x1,!0x1),{'type':_0x365562(0x1b9),'gutterName':_0x365562(0x1d1),'icon':_0x365562(0x1ee),'handlers':{'click':(_0x560293,_0x7161cc,_0xf642a3,_0x2f36ef,_0x1ca744)=>{const _0x2d0aca=_0x365562;_0x2f36ef['id']&&this[_0x2d0aca(0x1ca)](this[_0x2d0aca(0x1eb)],_0x2f36ef);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'string','name':_0x365562(0x1d7),'header':TermsUtil[_0x365562(0x1da)]('column'),'record':{'align':_0x365562(0x1cb),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x365562(0x1db),'name':'rank','header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1c3)),'sortable':!0x0,'width':0x41,'record':{'align':_0x365562(0x1d0),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x365562(0x1c0),'header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1b8)),'record':{'align':_0x365562(0x1cb),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x365562(0x1ba),'name':_0x365562(0x1de),'header':TermsUtil[_0x365562(0x1da)]('font-color'),'record':{'align':_0x365562(0x1cb),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x365562(0x1e6),'name':_0x365562(0x1e4),'header':TermsUtil[_0x365562(0x1da)](_0x365562(0x1e4)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x5c5f2c(0x1d5)](){const _0x11892c=a0_0x5c5f2c;this[_0x11892c(0x1e7)]||(this[_0x11892c(0x1e7)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}['renderGridEmphasizedConfigTab'](){const _0xbe30a8=a0_0x5c5f2c;return this['setGridEmphasizedConfigTabDefaultValues'](),html`
1
+ const a0_0x56f81f=a0_0x3899;(function(_0x3c3479,_0x4aa185){const _0x52dccb=a0_0x3899,_0x1692c8=_0x3c3479();while(!![]){try{const _0x40c7ba=parseInt(_0x52dccb(0x206))/0x1*(-parseInt(_0x52dccb(0x216))/0x2)+parseInt(_0x52dccb(0x229))/0x3*(parseInt(_0x52dccb(0x222))/0x4)+parseInt(_0x52dccb(0x22a))/0x5+-parseInt(_0x52dccb(0x1f9))/0x6*(parseInt(_0x52dccb(0x204))/0x7)+parseInt(_0x52dccb(0x1f1))/0x8+parseInt(_0x52dccb(0x203))/0x9*(-parseInt(_0x52dccb(0x1f5))/0xa)+-parseInt(_0x52dccb(0x213))/0xb*(-parseInt(_0x52dccb(0x21f))/0xc);if(_0x40c7ba===_0x4aa185)break;else _0x1692c8['push'](_0x1692c8['shift']());}catch(_0xe14d21){_0x1692c8['push'](_0x1692c8['shift']());}}}(a0_0x17b1,0xee02a));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x3899(_0x43f272,_0x5939f6){const _0x17b14d=a0_0x17b1();return a0_0x3899=function(_0x389959,_0x28ef4c){_0x389959=_0x389959-0x1f0;let _0x398acd=_0x17b14d[_0x389959];return _0x398acd;},a0_0x3899(_0x43f272,_0x5939f6);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x595663=>class extends _0x595663{[a0_0x56f81f(0x209)](_0xceced3){const _0x10eaa=a0_0x56f81f;if(_0xceced3){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x1ea4fd=0x1;this[_0x10eaa(0x207)][_0x10eaa(0x1f7)]=(_0xceced3[_0x10eaa(0x1fb)]||[])[_0x10eaa(0x211)](_0xfbca1f=>({'id':_0x1ea4fd,'rank':_0x1ea4fd++,'backgroundColor':_0xfbca1f[_0x10eaa(0x1f6)]||'','fontColor':_0xfbca1f['fontColor']||'','logic':_0xfbca1f[_0x10eaa(0x20a)]||''})),_0x1ea4fd=0x1;let _0x209e52=_0xceced3[_0x10eaa(0x226)]||[];Object[_0x10eaa(0x200)](_0x209e52)[_0x10eaa(0x208)](_0xf636e1=>{let _0x1babdc=_0x209e52[_0xf636e1]||[],_0x3db163=0x1;_0x1babdc['forEach'](_0x6b1263=>{const _0x2bc40c=a0_0x3899;this[_0x2bc40c(0x207)]['columnEmphasizedData'][_0x2bc40c(0x215)]({'id':_0x1ea4fd++,'rank':_0x3db163++,'column':_0xf636e1,'backgroundColor':_0x6b1263[_0x2bc40c(0x1f6)]||'','fontColor':_0x6b1263[_0x2bc40c(0x20c)]||'','logic':_0x6b1263[_0x2bc40c(0x20a)]||''});});}),this[_0x10eaa(0x219)]?.[_0x10eaa(0x1f3)](),this['emphasizedConfigTabRowEmphasizedGrist']?.[_0x10eaa(0x1f3)]();}else this[_0x10eaa(0x202)]();}[a0_0x56f81f(0x20d)](){const _0x4a8b95=a0_0x56f81f;let _0xf66de5=this['getElementValueById'](_0x4a8b95(0x227)),_0x11d788=this[_0x4a8b95(0x1fd)](_0x4a8b95(0x221)),_0x5e2689=[];this['sortRecordByRank'](_0xf66de5)?.[_0x4a8b95(0x208)](_0x4b6a33=>{const _0x323ad9=_0x4a8b95;_0x5e2689[_0x323ad9(0x215)]({'backgroundColor':_0x4b6a33[_0x323ad9(0x1f6)],'fontColor':_0x4b6a33['fontColor'],'logic':_0x4b6a33[_0x323ad9(0x20a)]});});let _0x2050f7={};return this[_0x4a8b95(0x21b)](_0x11d788)?.[_0x4a8b95(0x208)](_0x3e6596=>{const _0x54d9b1=_0x4a8b95;_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]]||(_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]]=[]),_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]][_0x54d9b1(0x215)]({'backgroundColor':_0x3e6596[_0x54d9b1(0x1f6)],'fontColor':_0x3e6596[_0x54d9b1(0x20c)],'logic':_0x3e6596[_0x54d9b1(0x20a)]});}),{'gridEmphasized':{'row':_0x5e2689||[],'column':_0x2050f7||{}}};}get[a0_0x56f81f(0x220)](){const _0x10d7d6=a0_0x56f81f;return this[_0x10d7d6(0x218)][_0x10d7d6(0x210)]('#row-emphasized-grist');}get[a0_0x56f81f(0x219)](){const _0x442fd1=a0_0x56f81f;return this[_0x442fd1(0x218)][_0x442fd1(0x210)](_0x442fd1(0x214));}['setGridEmphasizedConfigTabConfig'](){const _0x43c9a9=a0_0x56f81f;this[_0x43c9a9(0x21c)]={'rows':MetaApi[_0x43c9a9(0x224)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x43c9a9(0x217)](!0x1,!0x1),{'type':_0x43c9a9(0x21e),'gutterName':_0x43c9a9(0x228),'icon':_0x43c9a9(0x1f2),'handlers':{'click':(_0x227f5c,_0x11377a,_0x1fdd96,_0x43c5d9,_0xfd742f)=>{const _0x56bb2b=_0x43c9a9;_0x43c5d9['id']&&this[_0x56bb2b(0x225)](this[_0x56bb2b(0x220)],_0x43c5d9);}}},{'type':_0x43c9a9(0x205),'name':'id','hidden':!0x0},{'type':_0x43c9a9(0x21a),'name':_0x43c9a9(0x1fc),'header':TermsUtil[_0x43c9a9(0x1fa)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x1f6),'header':TermsUtil[_0x43c9a9(0x1fa)]('background-color'),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x20c),'header':TermsUtil['tLabel'](_0x43c9a9(0x1ff)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x201),'name':'logic','header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x20a)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x43c9a9(0x1f8)]={'rows':MetaApi[_0x43c9a9(0x224)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x43c9a9(0x217)](!0x1,!0x1),{'type':_0x43c9a9(0x21e),'gutterName':_0x43c9a9(0x228),'icon':_0x43c9a9(0x1f2),'handlers':{'click':(_0x50c7ed,_0x4117d1,_0x3f274c,_0x1f29b5,_0x3a8be9)=>{const _0x4a96ef=_0x43c9a9;_0x1f29b5['id']&&this[_0x4a96ef(0x225)](this[_0x4a96ef(0x219)],_0x1f29b5);}}},{'type':_0x43c9a9(0x205),'name':'id','hidden':!0x0},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x226),'header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x226)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x21a),'name':_0x43c9a9(0x1fc),'header':TermsUtil[_0x43c9a9(0x1fa)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x43c9a9(0x21d),'editable':!0x0,'mandatory':!0x0}},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x1f6),'header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x1f0)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x20c),'header':TermsUtil['tLabel'](_0x43c9a9(0x1ff)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x201),'name':'logic','header':TermsUtil['tLabel'](_0x43c9a9(0x20a)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x56f81f(0x202)](){const _0x32f5a3=a0_0x56f81f;this[_0x32f5a3(0x207)]||(this[_0x32f5a3(0x207)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x56f81f(0x223)](){const _0x14dc91=a0_0x56f81f;return this['setGridEmphasizedConfigTabDefaultValues'](),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[_0xbe30a8(0x1da)](_0xbe30a8(0x1df))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x14dc91(0x1fa)]('grid_row_emphasized_config')}
6
6
  </h2>
7
- <ox-grist id="row-emphasized-grist" .config=${this['rowEmphasizedConfig']} .mode=${_0xbe30a8(0x1d3)} auto-fetch
8
- .fetchHandler=${this['fetchRowEmphasized'][_0xbe30a8(0x1c4)](this)}></ox-grist>
7
+ <ox-grist id="row-emphasized-grist" .config=${this[_0x14dc91(0x21c)]} .mode=${_0x14dc91(0x20b)} auto-fetch
8
+ .fetchHandler=${this['fetchRowEmphasized'][_0x14dc91(0x1fe)](this)}></ox-grist>
9
9
  </div>
10
10
  <div field >
11
11
  <h2>
12
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0xbe30a8(0x1da)](_0xbe30a8(0x1dc))}
12
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x14dc91(0x1fa)](_0x14dc91(0x20e))}
13
13
  </h2>
14
- <ox-grist id="column-emphasized-grist" .config=${this[_0xbe30a8(0x1dd)]} .mode=${_0xbe30a8(0x1d3)} auto-fetch
15
- .fetchHandler=${this[_0xbe30a8(0x1e8)]['bind'](this)}></ox-grist>
14
+ <ox-grist id="column-emphasized-grist" .config=${this[_0x14dc91(0x1f8)]} .mode=${_0x14dc91(0x20b)} auto-fetch
15
+ .fetchHandler=${this[_0x14dc91(0x20f)][_0x14dc91(0x1fe)](this)}></ox-grist>
16
16
  </div>
17
17
  </div>
18
- `;}async[a0_0x5c5f2c(0x1c1)](){const _0x2479c9=a0_0x5c5f2c;return{'records':this[_0x2479c9(0x1e7)][_0x2479c9(0x1be)],'total':0x0};}async[a0_0x5c5f2c(0x1e8)](){const _0x2c39e6=a0_0x5c5f2c;return{'records':this[_0x2c39e6(0x1e7)][_0x2c39e6(0x1d8)],'total':0x0};}};
18
+ `;}async[a0_0x56f81f(0x212)](){const _0x1ad0a0=a0_0x56f81f;return{'records':this['viewEmphasizedData'][_0x1ad0a0(0x1f7)],'total':0x0};}async[a0_0x56f81f(0x20f)](){return{'records':this['viewEmphasizedData']['columnEmphasizedData'],'total':0x0};}};function a0_0x17b1(){const _0x43dbcb=['font-color','keys','code-input','setGridEmphasizedConfigTabDefaultValues','2010942pVZcBG','35OiYRDF','string','10XSDMYp','viewEmphasizedData','forEach','setGridEmphasizedConfigTabValues','logic','GRID','fontColor','getGridEmphasizedConfigTabValues','grid_column_emphasized_config','fetchColumnEmphasized','querySelector','map','fetchRowEmphasized','7211853bgXFnh','#column-emphasized-grist','push','264274rwljlT','getGristGuttersConfig','shadowRoot','emphasizedConfigTabColumnEmphasizedGrist','integer','sortRecordByRank','rowEmphasizedConfig','right','gutter','12phOVLc','emphasizedConfigTabRowEmphasizedGrist','column-emphasized-grist','4dueDzm','renderGridEmphasizedConfigTab','getGristSelectableConfig','deleteRow','column','row-emphasized-grist','button','4087221DsDCqb','6735675uknWjB','background-color','10119008LaZoqv','delete','fetch','left','20ImmYGs','backgroundColor','rowEmphasizedData','columnEmphasizedConfig','2264286MUaIcQ','tLabel','row','rank','getElementValueById','bind'];a0_0x17b1=function(){return _0x43dbcb;};return a0_0x17b1();}
@@ -1,29 +1,29 @@
1
- const a0_0x40e5d4=a0_0x3bd5;function a0_0x8a83(){const _0x316698=['target','419128TdLyfL','697977xgoCQP','getMenuConfigTabValues','description','3mPZbRP','getElementValueById','help','getElementById','desc','6WXtiSH','menuTitleChange','display','11bPPIma','1533302NkytOh','8872930IbXFSC','13404276qFYOQS','162DuEWbF','title','4580716mMTiDn','name','setMenuConfigTabDefaultValue','3200218lRsfdT','menu_title','setMenuConfigTabValues','tLabel','menu','viewMenuData','help_doc','5AuRgVA','value'];a0_0x8a83=function(){return _0x316698;};return a0_0x8a83();}(function(_0x3c32a6,_0x2cb939){const _0x52d63c=a0_0x3bd5,_0x10553b=_0x3c32a6();while(!![]){try{const _0x507f8a=-parseInt(_0x52d63c(0x169))/0x1+-parseInt(_0x52d63c(0x156))/0x2*(-parseInt(_0x52d63c(0x14d))/0x3)+parseInt(_0x52d63c(0x15b))/0x4*(parseInt(_0x52d63c(0x165))/0x5)+-parseInt(_0x52d63c(0x152))/0x6*(-parseInt(_0x52d63c(0x15e))/0x7)+-parseInt(_0x52d63c(0x168))/0x8*(-parseInt(_0x52d63c(0x159))/0x9)+-parseInt(_0x52d63c(0x157))/0xa+parseInt(_0x52d63c(0x155))/0xb*(-parseInt(_0x52d63c(0x158))/0xc);if(_0x507f8a===_0x2cb939)break;else _0x10553b['push'](_0x10553b['shift']());}catch(_0x44d3c7){_0x10553b['push'](_0x10553b['shift']());}}}(a0_0x8a83,0x94dd5));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x3bd5(_0x531423,_0x589574){const _0x8a8319=a0_0x8a83();return a0_0x3bd5=function(_0x3bd5f0,_0x4b93ef){_0x3bd5f0=_0x3bd5f0-0x14c;let _0x2c2a66=_0x8a8319[_0x3bd5f0];return _0x2c2a66;},a0_0x3bd5(_0x531423,_0x589574);}export const MenuConfigTabMixin=_0x49a96e=>class extends _0x49a96e{[a0_0x40e5d4(0x160)](_0x3170e2){const _0xd630e7=a0_0x40e5d4;if(_0x3170e2){var {title:_0x390844='',name:_0x145b8='',desc:_0x4ab12a='',help:_0x21889d=''}=_0x3170e2||{};this[_0xd630e7(0x163)]={'title':_0x390844,'name':_0x145b8,'desc':_0x4ab12a,'help_doc':_0x21889d},this[_0xd630e7(0x150)]('title')[_0xd630e7(0x166)]=_0x390844,this[_0xd630e7(0x150)](_0xd630e7(0x15c))['value']=_0x145b8,this['getElementById']('desc')[_0xd630e7(0x166)]=_0x4ab12a,this[_0xd630e7(0x150)](_0xd630e7(0x164))[_0xd630e7(0x166)]=_0x21889d;}else this[_0xd630e7(0x15d)]();}[a0_0x40e5d4(0x16a)](){const _0x10ca09=a0_0x40e5d4;let _0x561172={'menu':{}},_0x4f4de9=this[_0x10ca09(0x14e)]('title'),_0x565115=this[_0x10ca09(0x14e)]('name'),_0x4c5725=this['getElementValueById'](_0x10ca09(0x151)),_0x32662d=this[_0x10ca09(0x14e)](_0x10ca09(0x164));return _0x4f4de9&&(_0x561172['menu'][_0x10ca09(0x15a)]=_0x4f4de9),_0x565115&&(_0x561172[_0x10ca09(0x162)][_0x10ca09(0x15c)]=_0x565115),_0x4c5725&&(_0x561172[_0x10ca09(0x162)][_0x10ca09(0x151)]=_0x4c5725),_0x32662d&&(_0x561172['menu'][_0x10ca09(0x14f)]=_0x32662d),_0x561172;}[a0_0x40e5d4(0x15d)](){const _0x43da43=a0_0x40e5d4;this[_0x43da43(0x163)]||(this[_0x43da43(0x163)]={'title':'','name':_0x43da43(0x15c),'desc':_0x43da43(0x14c),'help_doc':''});}[a0_0x40e5d4(0x153)](_0x56d8e7){const _0x54bef4=a0_0x40e5d4;let _0x4f8d9b=this['getElementById'](_0x54bef4(0x154));_0x4f8d9b&&(_0x4f8d9b['value']=TermsUtil['tTitle'](_0x56d8e7[_0x54bef4(0x167)][_0x54bef4(0x166)]));}['renderMenuConfigTab'](){const _0x49984b=a0_0x40e5d4;return this[_0x49984b(0x15d)](),html`
1
+ const a0_0xf30da3=a0_0x54be;function a0_0x35bf(){const _0x4d8a01=['6117636zNVPaO','2268978CarANG','12470930iDlszx','title','15daCXra','target','11lHGyDk','getElementValueById','value','help_doc','48jAtZTr','help','getMenuConfigTabValues','menu_name_field','description','desc','6294612pxKivh','getElementById','2527624LogbKA','menuTitleChange','setMenuConfigTabDefaultValue','1RHxler','name','menu_desc_field','display','menu','viewMenuData','tLabel','1082664eKrzOE','1687293qWxrbu'];a0_0x35bf=function(){return _0x4d8a01;};return a0_0x35bf();}(function(_0x12787a,_0x19ebe5){const _0x52ed22=a0_0x54be,_0x2d1bc4=_0x12787a();while(!![]){try{const _0x46934c=-parseInt(_0x52ed22(0x1fb))/0x1*(parseInt(_0x52ed22(0x1f8))/0x2)+-parseInt(_0x52ed22(0x205))/0x3+parseInt(_0x52ed22(0x1f6))/0x4+parseInt(_0x52ed22(0x1ea))/0x5*(parseInt(_0x52ed22(0x202))/0x6)+parseInt(_0x52ed22(0x204))/0x7+parseInt(_0x52ed22(0x1f0))/0x8*(parseInt(_0x52ed22(0x203))/0x9)+-parseInt(_0x52ed22(0x206))/0xa*(parseInt(_0x52ed22(0x1ec))/0xb);if(_0x46934c===_0x19ebe5)break;else _0x2d1bc4['push'](_0x2d1bc4['shift']());}catch(_0x3a650a){_0x2d1bc4['push'](_0x2d1bc4['shift']());}}}(a0_0x35bf,0xceae4));function a0_0x54be(_0x577e29,_0x5ba796){const _0x35bff0=a0_0x35bf();return a0_0x54be=function(_0x54be74,_0x30f1ae){_0x54be74=_0x54be74-0x1ea;let _0x55527e=_0x35bff0[_0x54be74];return _0x55527e;},a0_0x54be(_0x577e29,_0x5ba796);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x49e8e6=>class extends _0x49e8e6{['setMenuConfigTabValues'](_0x41bd0c){const _0x3b039f=a0_0x54be;if(_0x41bd0c){var {title:_0xe56c0f='',name:_0x4258dd='',desc:_0x2ebf09='',help:_0x20d146=''}=_0x41bd0c||{};this[_0x3b039f(0x200)]={'title':_0xe56c0f,'name':_0x4258dd,'desc':_0x2ebf09,'help_doc':_0x20d146},this[_0x3b039f(0x1f7)](_0x3b039f(0x207))[_0x3b039f(0x1ee)]=_0xe56c0f,this[_0x3b039f(0x1f7)]('name')[_0x3b039f(0x1ee)]=_0x4258dd,this[_0x3b039f(0x1f7)](_0x3b039f(0x1f5))[_0x3b039f(0x1ee)]=_0x2ebf09,this[_0x3b039f(0x1f7)](_0x3b039f(0x1ef))[_0x3b039f(0x1ee)]=_0x20d146;}else this[_0x3b039f(0x1fa)]();}[a0_0xf30da3(0x1f2)](){const _0x345610=a0_0xf30da3;let _0x273411={'menu':{}},_0x60dbe4=this[_0x345610(0x1ed)](_0x345610(0x207)),_0x59aac8=this[_0x345610(0x1ed)](_0x345610(0x1fc)),_0xbe16a3=this[_0x345610(0x1ed)]('desc'),_0x121763=this[_0x345610(0x1ed)](_0x345610(0x1ef));return _0x60dbe4&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x207)]=_0x60dbe4),_0x59aac8&&(_0x273411[_0x345610(0x1ff)]['name']=_0x59aac8),_0xbe16a3&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x1f5)]=_0xbe16a3),_0x121763&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x1f1)]=_0x121763),_0x273411;}[a0_0xf30da3(0x1fa)](){const _0x384ae0=a0_0xf30da3;this['viewMenuData']||(this[_0x384ae0(0x200)]={'title':'','name':_0x384ae0(0x1fc),'desc':_0x384ae0(0x1f4),'help_doc':''});}[a0_0xf30da3(0x1f9)](_0x566052){const _0x432ef4=a0_0xf30da3;let _0x17be95=this[_0x432ef4(0x1f7)](_0x432ef4(0x1fe));_0x17be95&&(_0x17be95[_0x432ef4(0x1ee)]=TermsUtil['tTitle'](_0x566052[_0x432ef4(0x1eb)][_0x432ef4(0x1ee)]));}['renderMenuConfigTab'](){const _0x2ebf7e=a0_0xf30da3;return this[_0x2ebf7e(0x1fa)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
- <label>${TermsUtil[_0x49984b(0x161)](_0x49984b(0x15f))}
5
- <input id="title" name="title" type="text" value=${this['viewMenuData'][_0x49984b(0x15a)]} @change=${_0x1476d0=>this[_0x49984b(0x153)](_0x1476d0)}/>
4
+ <label>${TermsUtil[_0x2ebf7e(0x201)]('menu_title')}
5
+ <input id="title" name="title" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x207)]} @change=${_0x4c1e61=>this['menuTitleChange'](_0x4c1e61)}/>
6
6
  </label>
7
7
  </div>
8
8
  <div field>
9
- <label>${TermsUtil[_0x49984b(0x161)](_0x49984b(0x154))}
10
- <input id="display" name="display" value=${TermsUtil['tTitle'](this[_0x49984b(0x163)][_0x49984b(0x15a)])} type="text" readonly
9
+ <label>${TermsUtil['tLabel'](_0x2ebf7e(0x1fe))}
10
+ <input id="display" name="display" value=${TermsUtil['tTitle'](this['viewMenuData']['title'])} type="text" readonly
11
11
  disabled />
12
12
  </label>
13
13
  </div>
14
14
  <div field>
15
- <label>${TermsUtil[_0x49984b(0x161)]('menu_name_field')}
16
- <input id="name" name="name" type="text" value=${this[_0x49984b(0x163)][_0x49984b(0x15c)]} />
15
+ <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1f3))}
16
+ <input id="name" name="name" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1fc)]} />
17
17
  </label>
18
18
  </div>
19
19
  <div field>
20
- <label>${TermsUtil[_0x49984b(0x161)]('menu_desc_field')}
21
- <input id="desc" name="desc" type="text" value=${this[_0x49984b(0x163)]['desc']} />
20
+ <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1fd))}
21
+ <input id="desc" name="desc" type="text" value=${this['viewMenuData']['desc']} />
22
22
  </label>
23
23
  </div>
24
24
  <div field>
25
- <label>${TermsUtil[_0x49984b(0x161)](_0x49984b(0x164))}
26
- <input id="help_doc" name="help_doc" type="text" value=${this[_0x49984b(0x163)][_0x49984b(0x164)]} />
25
+ <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1ef))}
26
+ <input id="help_doc" name="help_doc" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1ef)]} />
27
27
  </label>
28
28
  </div>
29
29
  </div>
@@ -1,4 +1,4 @@
1
- const a0_0x3a86c6=a0_0x1fc4;(function(_0x1771d0,_0x4ae7ab){const _0x43558d=a0_0x1fc4,_0x4edf35=_0x1771d0();while(!![]){try{const _0x272f31=parseInt(_0x43558d(0x16a))/0x1+-parseInt(_0x43558d(0x1b7))/0x2*(parseInt(_0x43558d(0x195))/0x3)+parseInt(_0x43558d(0x1cb))/0x4+parseInt(_0x43558d(0x1d5))/0x5+-parseInt(_0x43558d(0x1c3))/0x6+-parseInt(_0x43558d(0x1c4))/0x7+-parseInt(_0x43558d(0x190))/0x8*(-parseInt(_0x43558d(0x16d))/0x9);if(_0x272f31===_0x4ae7ab)break;else _0x4edf35['push'](_0x4edf35['shift']());}catch(_0x1edb3c){_0x4edf35['push'](_0x4edf35['shift']());}}}(a0_0x2df3,0x51327));import a0_0x7100fa from'graphql-tag';function a0_0x2df3(){const _0x1d6655=['length','parse','data','menuId','list','select','options','errors','636267PtRLaJ','getConfigTab','pageUpdated','527445DGlmBE','sortRecordByRank','sort_rank','search_config','bind','updateMultiple','render','grid_emphasized_config','forEach','rank','name','includes','button','menu_config','type','dec','menu','display:flex','search','query','thumbnail_field','grid','tLabel','ConfigTabConfig','params','save','form','sortRecordByField','notify','querySelector','display:none','button_config','selectedIndex','error','context','64TMbSSv','tabData','refresh','define','convertFirstCharUpperCase','3aSqige','enc','styles','set','slice','lifecycle','meta_generator','setTabData','hidden','operatoTools','sorters','remove','charAt','dataStorage','ox-grist','stringify','graphql','form_config','filters','details','push','fields','etc','menuName','etc_config','map','template','option','toLowerCase','properties','ConfigTab','back','filter','detail_field','853276LnVPte','\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','toUpperCase','shadowRoot','dispatchEvent','ConfigTabValues','column_config','radio','tTitle','findOne','backToMenu','currentTabKey','1973826cJBYPG','2729986PyKBXq',':checked','updateMultipleMenu','tButton','rep_field','column','tab_config','1081056VCasUe','sort','clear','tMenu','get','grid-','keys','records','initData','dirtyData','514095PbKcox','tagName','error.invalid\x20license\x20key','style','value'];a0_0x2df3=function(){return _0x1d6655;};return a0_0x2df3();}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_0x1fc4(_0x313dde,_0x47fba7){const _0x2df306=a0_0x2df3();return a0_0x1fc4=function(_0x1fc420,_0x3a69fb){_0x1fc420=_0x1fc420-0x161;let _0x26e66f=_0x2df306[_0x1fc420];return _0x26e66f;},a0_0x1fc4(_0x313dde,_0x47fba7);}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_0x3a86c6(0x197)](){return[css`
1
+ function a0_0x575f(_0x4f457f,_0x52640a){const _0xea9484=a0_0xea94();return a0_0x575f=function(_0x575ff9,_0x45c08e){_0x575ff9=_0x575ff9-0x83;let _0x3b0147=_0xea9484[_0x575ff9];return _0x3b0147;},a0_0x575f(_0x4f457f,_0x52640a);}const a0_0x19c321=a0_0x575f;(function(_0x18a2eb,_0x3b792d){const _0x52cf44=a0_0x575f,_0x930642=_0x18a2eb();while(!![]){try{const _0x1974a4=parseInt(_0x52cf44(0xb0))/0x1+parseInt(_0x52cf44(0xe9))/0x2*(parseInt(_0x52cf44(0xe2))/0x3)+-parseInt(_0x52cf44(0x91))/0x4+parseInt(_0x52cf44(0xd1))/0x5*(-parseInt(_0x52cf44(0x9e))/0x6)+-parseInt(_0x52cf44(0xa7))/0x7+parseInt(_0x52cf44(0x8a))/0x8+parseInt(_0x52cf44(0xa8))/0x9;if(_0x1974a4===_0x3b792d)break;else _0x930642['push'](_0x930642['shift']());}catch(_0x5e2772){_0x930642['push'](_0x930642['shift']());}}}(a0_0xea94,0x4ac11));import a0_0x2d96bc from'graphql-tag';function a0_0xea94(){const _0x55a523=['define','error.invalid\x20license\x20key','toLowerCase','rep_field','radio','context','grid_emphasized_config','findOne','convertFirstCharUpperCase','querySelector','sortRecordByField','3WKfoIG','clear','dataStorage','deleteRow','gridEmphasized','forEach','active','882254hsFfgc','currentTabKey','tagName','etc_config','studioPermission','tab_config','ConfigTabConfig','styles',':checked','button_config','data','lifecycle','menu','tMenu','parse','getElementValueById','push','option','render','template','get','query','grid','backToMenu','sort_rank','form','graphql_config','ConfigTabValues','map','1700288BKCbir','stringify','style','menuId','params','display:none','keys','2238092auJtFO','shadowRoot','meta-generator-page','back','fields','toUpperCase','getConfigTab','desc','filter','set','slice','updateMultiple','properties','30KuhZge','dispatchEvent','column','selectedIndex','length','icon','meta_generator','options','sort_desc','910756imeHCz','4368879aAPEmc','value','name','bind','tabData','refresh','ConfigTab','ox-grist','254260xsOpzF','enc','includes','setTabData','sort','initData','tButton','thumbnail_field','tTitle','updateMultipleMenu','select','graphql','metaTemplate','column_config','thumbnail','errors','button','error','form_config','tab','menuName','charAt','grid-','search_config','sorters','records','detail_field','type','tLabel','dirtyData','pageInitialized','notify','rank','397530HdfLXb','list','search','save','dec','menu_config'];a0_0xea94=function(){return _0x55a523;};return a0_0xea94();}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';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_0x19c321(0xf0)](){return[css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -141,24 +141,24 @@ const a0_0x3a86c6=a0_0x1fc4;(function(_0x1771d0,_0x4ae7ab){const _0x43558d=a0_0x
141
141
  flex: 1;
142
142
  }
143
143
 
144
- `];}static get[a0_0x3a86c6(0x1b2)](){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[a0_0x3a86c6(0x18f)](){const _0x59661e=a0_0x3a86c6;return{'title':TermsUtil[_0x59661e(0x1bf)](_0x59661e(0x19b)),'actions':[{'title':TermsUtil[_0x59661e(0x1c7)](_0x59661e(0x186)),'action':this['save']['bind'](this),...CommonButtonStyles[_0x59661e(0x186)]},{'title':TermsUtil[_0x59661e(0x1c7)](_0x59661e(0x1b4)),'action':this['backToMenu']['bind'](this),...CommonButtonStyles['back']},{'title':TermsUtil['tButton'](_0x59661e(0x192)),'action':this['refresh'][_0x59661e(0x171)](this),...CommonButtonStyles[_0x59661e(0x192)]}]};}['deleteRow'](_0x5d2ecc,_0x2bf1e4){const _0x287b0c=a0_0x3a86c6;let _0x2d4094=_0x5d2ecc[_0x287b0c(0x1d4)];_0x2d4094[_0x287b0c(0x1d2)]=_0x2d4094[_0x287b0c(0x1d2)][_0x287b0c(0x1b5)](_0x585721=>_0x585721['id']!=_0x2bf1e4['id']),_0x5d2ecc[_0x287b0c(0x164)]=_0x2d4094;}async[a0_0x3a86c6(0x186)](){const _0x5b8ce2=a0_0x3a86c6;if(0x0==store['getState']()[_0x5b8ce2(0x19e)]['studioPermission'])return void document[_0x5b8ce2(0x1bb)](new CustomEvent(_0x5b8ce2(0x189),{'detail':{'level':_0x5b8ce2(0x18e),'message':i18next['t'](_0x5b8ce2(0x1d7))}}));if((await client[_0x5b8ce2(0x180)]({'query':a0_0x7100fa`
144
+ `];}static get[a0_0x19c321(0x9d)](){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[a0_0x19c321(0xdc)](){const _0x40dcb3=a0_0x19c321;return{'title':TermsUtil[_0x40dcb3(0xb8)](_0x40dcb3(0xa4)),'actions':[{'title':TermsUtil[_0x40dcb3(0xb6)](_0x40dcb3(0xd4)),'action':this[_0x40dcb3(0xd4)][_0x40dcb3(0xab)](this),...CommonButtonStyles[_0x40dcb3(0xd4)]},{'title':TermsUtil[_0x40dcb3(0xb6)](_0x40dcb3(0x94)),'action':this[_0x40dcb3(0x84)]['bind'](this),...CommonButtonStyles[_0x40dcb3(0x94)]},{'title':TermsUtil[_0x40dcb3(0xb6)]('refresh'),'action':this[_0x40dcb3(0xad)][_0x40dcb3(0xab)](this),...CommonButtonStyles[_0x40dcb3(0xad)]}]};}[a0_0x19c321(0xe5)](_0x73b2a3,_0x23430c){const _0x47d2ec=a0_0x19c321;let _0x83a98a=_0x73b2a3[_0x47d2ec(0xcd)];_0x83a98a['records']=_0x83a98a['records'][_0x47d2ec(0x99)](_0x32785a=>_0x32785a['id']!=_0x23430c['id']),_0x73b2a3[_0x47d2ec(0xf3)]=_0x83a98a;}async[a0_0x19c321(0xd4)](){const _0x304d4f=a0_0x19c321;if(0x0==store['getState']()['operatoTools'][_0x304d4f(0xed)])return void document[_0x304d4f(0x9f)](new CustomEvent(_0x304d4f(0xcf),{'detail':{'level':_0x304d4f(0xc1),'message':i18next['t'](_0x304d4f(0xd8))}}));if((await client[_0x304d4f(0xfe)]({'query':a0_0x2d96bc`
145
145
  query ($id: String!) {
146
146
  studioTemplateIsOverLimit(id: $id)
147
147
  }
148
- `,'variables':{'id':this[_0x5b8ce2(0x165)]}}))[_0x5b8ce2(0x169)])return;let _0x546b32={},_0x1c5099={};Object[_0x5b8ce2(0x1d1)](this['tabData'])[_0x5b8ce2(0x175)](_0x3c0a4f=>{const _0x2bc0bd=_0x5b8ce2;let _0x1e0ef8=this['convertFirstCharUpperCase'](_0x3c0a4f);_0x546b32[_0x3c0a4f]=this[_0x2bc0bd(0x1cf)+_0x1e0ef8+_0x2bc0bd(0x1bc)](),_0x1c5099=merge(_0x1c5099,_0x546b32[_0x3c0a4f]);}),_0x1c5099=JSON[_0x5b8ce2(0x1a4)](_0x1c5099),_0x1c5099=MetaCrypto[_0x5b8ce2(0x196)](_0x1c5099),await MetaApi[_0x5b8ce2(0x172)](_0x5b8ce2(0x1c6),[{'id':this[_0x5b8ce2(0x165)],'template':_0x1c5099,'cuFlag':'M'}])&&await this[_0x5b8ce2(0x1d3)]();}['clear'](){const _0x5d74d9=a0_0x3a86c6;this['setTabData'](),this[_0x5d74d9(0x1a2)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x5d74d9(0x1d1)](this[_0x5d74d9(0x191)])[_0x5d74d9(0x175)](_0xaa2f55=>{const _0x3f5ea8=_0x5d74d9;let _0x1d1ca6=this[_0x3f5ea8(0x194)](_0xaa2f55);if(this['set'+_0x1d1ca6+_0x3f5ea8(0x1bc)])return this[_0x3f5ea8(0x198)+_0x1d1ca6+_0x3f5ea8(0x1bc)](this[_0x3f5ea8(0x1a2)][_0xaa2f55]);});}async['refresh'](){const _0xff1ade=a0_0x3a86c6;this[_0xff1ade(0x1cd)](),await this[_0xff1ade(0x1d3)]();}[a0_0x3a86c6(0x1c1)](){const _0x31dd0a=a0_0x3a86c6;history[_0x31dd0a(0x1b4)]();}async[a0_0x3a86c6(0x1d3)](){const _0x430414=a0_0x3a86c6;var {menuId:_0x5a9071=''}=this[_0x430414(0x19a)]?.[_0x430414(0x185)]?this['lifecycle'][_0x430414(0x185)]:{};if(this[_0x430414(0x165)]=_0x5a9071,!_0x5a9071||''==_0x5a9071)return void this[_0x430414(0x1cd)]();let _0x56ae41=await MetaApi[_0x430414(0x1c0)]('menu',_0x5a9071,_0x430414(0x1b8));if(_0x56ae41){try{JSON[_0x430414(0x163)](MetaCrypto[_0x430414(0x17c)](_0x56ae41['template']));}catch(_0x3413fb){return;}this[_0x430414(0x1ac)]=TermsUtil[_0x430414(0x1ce)](_0x56ae41['name']),this['metaTemplate']=_0x56ae41[_0x430414(0x1af)]?JSON[_0x430414(0x163)](MetaCrypto[_0x430414(0x17c)](_0x56ae41[_0x430414(0x1af)])):{};var {menu:_0x350534={},gql:_0x388f11={},button:_0xe33249=[],grid_column:_0x2fbcf4=[],grid:_0x2035d0={},search:_0x4afe0d=[],form:_0x40be15=[],tab:_0x2b8e69=[],etc:_0x5dbe49={},gridEmphasized:_0x34bd90=[]}=this['metaTemplate']?this['metaTemplate']:{};this[_0x430414(0x19c)](),this['dataStorage']={},this[_0x430414(0x1a2)][_0x430414(0x17d)]=_0x350534,this['dataStorage'][_0x430414(0x1a5)]=_0x388f11,this[_0x430414(0x1a2)][_0x430414(0x182)]=_0x2035d0,this['dataStorage'][_0x430414(0x187)]=_0x40be15,this[_0x430414(0x1a2)]['tab']=_0x2b8e69,this[_0x430414(0x1a2)][_0x430414(0x1ab)]=_0x5dbe49,this['dataStorage']['gridEmphasized']=_0x34bd90,(_0x2035d0['option']?.[_0x430414(0x19f)]||[])[_0x430414(0x175)]((_0x1576de,_0x539d6d)=>{const _0x50d359=_0x430414;_0x1576de[_0x50d359(0x176)]=0xa*(_0x539d6d+0x1);}),this['dataStorage'][_0x430414(0x1c9)]=_0x2fbcf4[_0x430414(0x1ae)](_0x34682f=>{const _0x10a0ce=_0x430414;let _0x12cae5=(_0x2035d0[_0x10a0ce(0x1b0)]?.['sorters']||[])['filter'](_0x2f3f90=>_0x2f3f90[_0x10a0ce(0x177)]==_0x34682f[_0x10a0ce(0x177)]);return _0x12cae5&&_0x12cae5[_0x10a0ce(0x162)]>0x0?(_0x34682f[_0x10a0ce(0x16f)]=_0x12cae5[0x0][_0x10a0ce(0x176)],_0x34682f['sort_desc']=!!_0x12cae5[0x0]['desc']&&_0x12cae5[0x0]['desc']):_0x34682f[_0x10a0ce(0x16f)]=0x0,_0x34682f[_0x10a0ce(0x1c8)]=(_0x2035d0[_0x10a0ce(0x166)]?.[_0x10a0ce(0x1aa)]||[])[_0x10a0ce(0x178)](_0x34682f[_0x10a0ce(0x177)]),_0x34682f[_0x10a0ce(0x1b6)]=(_0x2035d0['list']?.[_0x10a0ce(0x1a8)]||[])[_0x10a0ce(0x178)](_0x34682f['name']),_0x34682f[_0x10a0ce(0x181)]=_0x2035d0[_0x10a0ce(0x166)]?.['thumbnail']==_0x34682f[_0x10a0ce(0x177)],_0x34682f;}),_0x4afe0d[_0x430414(0x1a9)](...(_0x388f11[_0x430414(0x180)]?.[_0x430414(0x1a7)]||[])[_0x430414(0x1ae)](_0x3ce5f2=>(_0x3ce5f2[_0x430414(0x19d)]=!0x0,_0x3ce5f2))),this['dataStorage'][_0x430414(0x17f)]=_0x4afe0d,_0xe33249[_0x430414(0x1a9)](...(_0x2035d0[_0x430414(0x179)]||[])[_0x430414(0x1ae)](_0x3eecc8=>(_0x3eecc8['type']=_0x430414(0x1d0)+_0x3eecc8[_0x430414(0x17b)],_0x3eecc8[_0x430414(0x1d8)]=_0x3eecc8['icon'],_0x3eecc8))),this[_0x430414(0x1a2)]['button']=_0xe33249,Object[_0x430414(0x1d1)](this['tabData'])[_0x430414(0x175)](_0xd68b78=>{const _0x54a7b4=_0x430414;let _0x151edb=this[_0x54a7b4(0x194)](_0xd68b78);if(this[_0x54a7b4(0x198)+_0x151edb+_0x54a7b4(0x1bc)])return this[_0x54a7b4(0x198)+_0x151edb+'ConfigTabValues'](this[_0x54a7b4(0x1a2)][_0xd68b78]);});}}async['pageInitialized'](){const _0x24fb1e=a0_0x3a86c6;this[_0x24fb1e(0x19c)]();let _0x43cc7a=Object[_0x24fb1e(0x1d1)](this[_0x24fb1e(0x191)]);for(var _0x1c6407=0x0;_0x1c6407<_0x43cc7a[_0x24fb1e(0x162)];_0x1c6407++){let _0x57f039=this[_0x24fb1e(0x194)](_0x43cc7a[_0x1c6407]);this[_0x24fb1e(0x198)+_0x57f039+_0x24fb1e(0x184)]&&await this[_0x24fb1e(0x198)+_0x57f039+'ConfigTabConfig']();}}async[a0_0x3a86c6(0x16c)](_0x3031c8,_0x31b28b,_0x85e0d0){const _0x546315=a0_0x3a86c6;!0x0===this['active']?(this[_0x546315(0x19c)](),await this[_0x546315(0x1d3)](),this[_0x546315(0x19c)]()):(this['clear'](),this[_0x546315(0x1a0)]());}[a0_0x3a86c6(0x19c)](){const _0x5b89cc=a0_0x3a86c6;this['tabData']||(this[_0x5b89cc(0x191)]={'menu':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x17a)),'graphql':TermsUtil[_0x5b89cc(0x183)]('graphql_config'),'grid':TermsUtil['tLabel']('grid_config'),'column':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x1bd)),'gridEmphasized':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x174)),'button':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x18c)),'search':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x170)),'form':TermsUtil['tLabel'](_0x5b89cc(0x1a6)),'tab':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x1ca)),'etc':TermsUtil[_0x5b89cc(0x183)](_0x5b89cc(0x1ad))});}[a0_0x3a86c6(0x173)](){const _0x23ca56=a0_0x3a86c6;this[_0x23ca56(0x1c2)]||(this['currentTabKey']=_0x23ca56(0x17d)),this[_0x23ca56(0x19c)]();let _0x43e90e=Object[_0x23ca56(0x1d1)](this[_0x23ca56(0x191)]);return this[_0x23ca56(0x191)][this[_0x23ca56(0x1c2)]]?this[_0x23ca56(0x1c2)]:_0x43e90e[0x0],html`
149
- <h1>${this['menuName']}</h1>
148
+ `,'variables':{'id':this['menuId']}}))[_0x304d4f(0xbf)])return;let _0x3596c3={},_0x3c5c96={};Object[_0x304d4f(0x90)](this['tabData'])['forEach'](_0xf206ed=>{const _0x26d851=_0x304d4f;let _0x47a088=this[_0x26d851(0xdf)](_0xf206ed);_0x3596c3[_0xf206ed]=this[_0x26d851(0xfd)+_0x47a088+_0x26d851(0x88)](),_0x3c5c96=merge(_0x3c5c96,_0x3596c3[_0xf206ed]);}),_0x3c5c96=JSON[_0x304d4f(0x8b)](_0x3c5c96),_0x3c5c96=MetaCrypto[_0x304d4f(0xb1)](_0x3c5c96),await MetaApi[_0x304d4f(0x9c)](_0x304d4f(0xb9),[{'id':this[_0x304d4f(0x8d)],'template':_0x3c5c96,'cuFlag':'M'}])&&await this['initData']();}[a0_0x19c321(0xe3)](){const _0x33c4a1=a0_0x19c321;this[_0x33c4a1(0xb3)](),this[_0x33c4a1(0xe4)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this[_0x33c4a1(0xac)])['forEach'](_0x2ca920=>{const _0x3e048e=_0x33c4a1;let _0x5959e4=this[_0x3e048e(0xdf)](_0x2ca920);if(this[_0x3e048e(0x9a)+_0x5959e4+'ConfigTabValues'])return this[_0x3e048e(0x9a)+_0x5959e4+_0x3e048e(0x88)](this[_0x3e048e(0xe4)][_0x2ca920]);});}async[a0_0x19c321(0xad)](){this['clear'](),await this['initData']();}[a0_0x19c321(0x84)](){const _0x3f08c6=a0_0x19c321;history[_0x3f08c6(0x94)]();}async[a0_0x19c321(0xb5)](){const _0x316d42=a0_0x19c321;var {menuId:_0x37029b=''}=this[_0x316d42(0xf4)]?.[_0x316d42(0x8e)]?this[_0x316d42(0xf4)]['params']:{};if(this[_0x316d42(0x8d)]=_0x37029b,!_0x37029b||''==_0x37029b)return void this[_0x316d42(0xe3)]();let _0x1b1f4f=await MetaApi[_0x316d42(0xde)]('menu',_0x37029b,'\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');if(_0x1b1f4f){try{JSON[_0x316d42(0xf7)](MetaCrypto[_0x316d42(0xd5)](_0x1b1f4f[_0x316d42(0xfc)]));}catch(_0x453849){return;}this[_0x316d42(0xc4)]=TermsUtil[_0x316d42(0xf6)](_0x1b1f4f[_0x316d42(0xaa)]),this[_0x316d42(0xbc)]=_0x1b1f4f[_0x316d42(0xfc)]?JSON['parse'](MetaCrypto[_0x316d42(0xd5)](_0x1b1f4f[_0x316d42(0xfc)])):{};var {menu:_0x1a304c={},gql:_0x27cd37={},button:_0x5d6976=[],grid_column:_0x452490=[],grid:_0x32570d={},search:_0x4f848f=[],form:_0x2ea714=[],tab:_0x1f00d9=[],etc:_0x9c32e7={},gridEmphasized:_0x49d7df=[]}=this['metaTemplate']?this['metaTemplate']:{};this['setTabData'](),this['dataStorage']={},this['dataStorage'][_0x316d42(0xf5)]=_0x1a304c,this[_0x316d42(0xe4)][_0x316d42(0xbb)]=_0x27cd37,this[_0x316d42(0xe4)][_0x316d42(0x83)]=_0x32570d,this[_0x316d42(0xe4)][_0x316d42(0x86)]=_0x2ea714,this['dataStorage'][_0x316d42(0xc3)]=_0x1f00d9,this[_0x316d42(0xe4)]['etc']=_0x9c32e7,this['dataStorage'][_0x316d42(0xe6)]=_0x49d7df,(_0x32570d[_0x316d42(0xfa)]?.['sorters']||[])[_0x316d42(0xe7)]((_0xece0b6,_0x3aca48)=>{const _0x54b7bb=_0x316d42;_0xece0b6[_0x54b7bb(0xd0)]=0xa*(_0x3aca48+0x1);}),this[_0x316d42(0xe4)][_0x316d42(0xa0)]=_0x452490['map'](_0x37f585=>{const _0x4b0a49=_0x316d42;let _0x137bf8=(_0x32570d['option']?.[_0x4b0a49(0xc8)]||[])[_0x4b0a49(0x99)](_0xb10c39=>_0xb10c39[_0x4b0a49(0xaa)]==_0x37f585[_0x4b0a49(0xaa)]);return _0x137bf8&&_0x137bf8[_0x4b0a49(0xa2)]>0x0?(_0x37f585[_0x4b0a49(0x85)]=_0x137bf8[0x0][_0x4b0a49(0xd0)],_0x37f585[_0x4b0a49(0xa6)]=!!_0x137bf8[0x0][_0x4b0a49(0x98)]&&_0x137bf8[0x0]['desc']):_0x37f585[_0x4b0a49(0x85)]=0x0,_0x37f585[_0x4b0a49(0xda)]=(_0x32570d[_0x4b0a49(0xd2)]?.[_0x4b0a49(0x95)]||[])[_0x4b0a49(0xb2)](_0x37f585[_0x4b0a49(0xaa)]),_0x37f585[_0x4b0a49(0xca)]=(_0x32570d[_0x4b0a49(0xd2)]?.['details']||[])[_0x4b0a49(0xb2)](_0x37f585[_0x4b0a49(0xaa)]),_0x37f585[_0x4b0a49(0xb7)]=_0x32570d['list']?.[_0x4b0a49(0xbe)]==_0x37f585[_0x4b0a49(0xaa)],_0x37f585;}),_0x4f848f[_0x316d42(0xf9)](...(_0x27cd37[_0x316d42(0xfe)]?.['filters']||[])[_0x316d42(0x89)](_0x2eb67a=>(_0x2eb67a['hidden']=!0x0,_0x2eb67a))),this[_0x316d42(0xe4)][_0x316d42(0xd3)]=_0x4f848f,_0x5d6976[_0x316d42(0xf9)](...(_0x32570d['button']||[])[_0x316d42(0x89)](_0x595dc0=>(_0x595dc0[_0x316d42(0xcb)]=_0x316d42(0xc6)+_0x595dc0[_0x316d42(0xcb)],_0x595dc0[_0x316d42(0x8c)]=_0x595dc0[_0x316d42(0xa3)],_0x595dc0))),this[_0x316d42(0xe4)][_0x316d42(0xc0)]=_0x5d6976,Object[_0x316d42(0x90)](this[_0x316d42(0xac)])[_0x316d42(0xe7)](_0x20ff6c=>{const _0x222ffc=_0x316d42;let _0x4f6461=this['convertFirstCharUpperCase'](_0x20ff6c);if(this[_0x222ffc(0x9a)+_0x4f6461+_0x222ffc(0x88)])return this[_0x222ffc(0x9a)+_0x4f6461+_0x222ffc(0x88)](this[_0x222ffc(0xe4)][_0x20ff6c]);});}}async[a0_0x19c321(0xce)](){const _0x537f25=a0_0x19c321;this[_0x537f25(0xb3)]();let _0x106910=Object[_0x537f25(0x90)](this[_0x537f25(0xac)]);for(var _0x1935b1=0x0;_0x1935b1<_0x106910[_0x537f25(0xa2)];_0x1935b1++){let _0x514cc3=this[_0x537f25(0xdf)](_0x106910[_0x1935b1]);this[_0x537f25(0x9a)+_0x514cc3+_0x537f25(0xef)]&&await this[_0x537f25(0x9a)+_0x514cc3+_0x537f25(0xef)]();}}async['pageUpdated'](_0x1b21c7,_0x1c789a,_0x485899){const _0x46ffe1=a0_0x19c321;!0x0===this[_0x46ffe1(0xe8)]?(this[_0x46ffe1(0xb3)](),await this['initData'](),this[_0x46ffe1(0xb3)]()):(this[_0x46ffe1(0xe3)](),this['remove']());}['setTabData'](){const _0x3c6137=a0_0x19c321;this[_0x3c6137(0xac)]||(this[_0x3c6137(0xac)]={'menu':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xd6)),'graphql':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0x87)),'grid':TermsUtil[_0x3c6137(0xcc)]('grid_config'),'column':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xbd)),'gridEmphasized':TermsUtil['tLabel'](_0x3c6137(0xdd)),'button':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xf2)),'search':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xc7)),'form':TermsUtil['tLabel'](_0x3c6137(0xc2)),'tab':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xee)),'etc':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xec))});}['render'](){const _0x17990e=a0_0x19c321;this['currentTabKey']||(this['currentTabKey']=_0x17990e(0xf5)),this[_0x17990e(0xb3)]();let _0x19ab6a=Object['keys'](this[_0x17990e(0xac)]);return this[_0x17990e(0xac)][this[_0x17990e(0xea)]]?this[_0x17990e(0xea)]:_0x19ab6a[0x0],html`
149
+ <h1>${this[_0x17990e(0xc4)]}</h1>
150
150
  <div class="tabs">
151
- ${_0x43e90e['map'](_0x1bc7d4=>{const _0x336063=_0x23ca56;let _0x33ee22=this['tabData'][_0x1bc7d4];return html`
152
- <div class="tab" ?activate="${_0x1bc7d4===this[_0x336063(0x1c2)]}" @click="${()=>this['currentTabKey']=_0x1bc7d4}">
153
- <span>${_0x33ee22}</span>
151
+ ${_0x19ab6a['map'](_0x5e6c3c=>{const _0x35c072=_0x17990e;let _0x29e875=this[_0x35c072(0xac)][_0x5e6c3c];return html`
152
+ <div class="tab" ?activate="${_0x5e6c3c===this[_0x35c072(0xea)]}" @click="${()=>this[_0x35c072(0xea)]=_0x5e6c3c}">
153
+ <span>${_0x29e875}</span>
154
154
  </div>
155
155
  `;})}
156
156
  </div>
157
157
  <div class="content-container">
158
- ${_0x43e90e[_0x23ca56(0x1ae)](_0x24d4d4=>{const _0x555acc=_0x23ca56;let _0x463b43=_0x555acc(0x18b);return _0x24d4d4==this[_0x555acc(0x1c2)]&&(_0x463b43=_0x555acc(0x17e)),html`
159
- <div class='tab-contents' style="${_0x463b43}">
160
- ${this[_0x555acc(0x16b)](_0x24d4d4)}
158
+ ${_0x19ab6a['map'](_0x5a7249=>{const _0x1f9a80=_0x17990e;let _0x526f54=_0x1f9a80(0x8f);return _0x5a7249==this[_0x1f9a80(0xea)]&&(_0x526f54='display:flex'),html`
159
+ <div class='tab-contents' style="${_0x526f54}">
160
+ ${this[_0x1f9a80(0x97)](_0x5a7249)}
161
161
  </div>
162
162
  `;})}
163
163
  </div>
164
- `;}[a0_0x3a86c6(0x16b)](_0x42091f){const _0xd035c2=a0_0x3a86c6;let _0x5f062f=this[_0xd035c2(0x194)](_0x42091f);return this['render'+_0x5f062f+'ConfigTab']?this[_0xd035c2(0x173)+_0x5f062f+_0xd035c2(0x1b3)]():html``;}['convertFirstCharUpperCase'](_0x1d254e){const _0x3e97c8=a0_0x3a86c6;return _0x1d254e[_0x3e97c8(0x1a1)](0x0)[_0x3e97c8(0x1b9)]()+_0x1d254e[_0x3e97c8(0x199)](0x1);}['getElementById'](_0x7c98fd){const _0x59de23=a0_0x3a86c6;return this[_0x59de23(0x1ba)]['querySelector']('#'+_0x7c98fd);}['getElementValueById'](_0x53b01b){const _0x3f24f3=a0_0x3a86c6;let _0x389234=this[_0x3f24f3(0x1ba)][_0x3f24f3(0x18a)]('#'+_0x53b01b);if(!_0x389234)return;let _0x13c379='';if(_0x3f24f3(0x167)==_0x389234[_0x3f24f3(0x1d6)][_0x3f24f3(0x1b1)]()){if(!_0x389234[_0x3f24f3(0x168)]||0x0==_0x389234[_0x3f24f3(0x168)][_0x3f24f3(0x162)])return;_0x13c379=_0x389234[_0x3f24f3(0x168)][_0x389234[_0x3f24f3(0x18d)]]['value'];}else{if(_0x3f24f3(0x1a3)==_0x389234['tagName'][_0x3f24f3(0x1b1)]()){if(!_0x389234['dirtyData'])return;if(!_0x389234[_0x3f24f3(0x1d4)][_0x3f24f3(0x1d2)])return;if(0x0==_0x389234[_0x3f24f3(0x1d4)][_0x3f24f3(0x1d2)][_0x3f24f3(0x162)])return;return _0x389234[_0x3f24f3(0x1d4)][_0x3f24f3(0x1d2)];}if('ox-input-code'==_0x389234['tagName'][_0x3f24f3(0x1b1)]())return _0x389234['value'];if(_0x3f24f3(0x1be)==_0x389234[_0x3f24f3(0x17b)][_0x3f24f3(0x1b1)]()){let _0xe7301a=this[_0x3f24f3(0x1ba)][_0x3f24f3(0x18a)]('#'+_0x53b01b+_0x3f24f3(0x1c5));if(!_0xe7301a)return;return _0xe7301a[_0x3f24f3(0x161)];}_0x13c379=_0x389234[_0x3f24f3(0x161)];}return _0x13c379&&''!=_0x13c379?_0x13c379:void 0x0;}[a0_0x3a86c6(0x16e)](_0x57abba){const _0xaa17f6=a0_0x3a86c6;return _0x57abba?this[_0xaa17f6(0x188)](_0x57abba,_0xaa17f6(0x176)):_0x57abba;}[a0_0x3a86c6(0x188)](_0x5633fd,_0x6ba3e0){const _0x58aae0=a0_0x3a86c6;return _0x5633fd[_0x58aae0(0x1cc)]((_0x192306,_0x5b3c64)=>_0x192306[_0x6ba3e0]-_0x5b3c64[_0x6ba3e0]),_0x5633fd;}}customElements[a0_0x3a86c6(0x193)]('meta-generator-page',MetaGeneratorPage);
164
+ `;}['getConfigTab'](_0x2e56e3){const _0x36e467=a0_0x19c321;let _0x56bf5d=this['convertFirstCharUpperCase'](_0x2e56e3);return this[_0x36e467(0xfb)+_0x56bf5d+_0x36e467(0xae)]?this[_0x36e467(0xfb)+_0x56bf5d+_0x36e467(0xae)]():html``;}[a0_0x19c321(0xdf)](_0x206150){const _0x3522b7=a0_0x19c321;return _0x206150[_0x3522b7(0xc5)](0x0)[_0x3522b7(0x96)]()+_0x206150[_0x3522b7(0x9b)](0x1);}['getElementById'](_0x3109e5){const _0x54ccae=a0_0x19c321;return this[_0x54ccae(0x92)][_0x54ccae(0xe0)]('#'+_0x3109e5);}[a0_0x19c321(0xf8)](_0x7be27a){const _0x2bb99e=a0_0x19c321;let _0x33dbd2=this['shadowRoot']['querySelector']('#'+_0x7be27a);if(!_0x33dbd2)return;let _0x552366='';if(_0x2bb99e(0xba)==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]()){if(!_0x33dbd2[_0x2bb99e(0xa5)]||0x0==_0x33dbd2[_0x2bb99e(0xa5)][_0x2bb99e(0xa2)])return;_0x552366=_0x33dbd2[_0x2bb99e(0xa5)][_0x33dbd2[_0x2bb99e(0xa1)]]['value'];}else{if(_0x2bb99e(0xaf)==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]()){if(!_0x33dbd2['dirtyData'])return;if(!_0x33dbd2[_0x2bb99e(0xcd)][_0x2bb99e(0xc9)])return;if(0x0==_0x33dbd2['dirtyData']['records'][_0x2bb99e(0xa2)])return;return _0x33dbd2['dirtyData'][_0x2bb99e(0xc9)];}if('ox-input-code'==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]())return _0x33dbd2['value'];if(_0x2bb99e(0xdb)==_0x33dbd2[_0x2bb99e(0xcb)][_0x2bb99e(0xd9)]()){let _0x4a0759=this['shadowRoot'][_0x2bb99e(0xe0)]('#'+_0x7be27a+_0x2bb99e(0xf1));if(!_0x4a0759)return;return _0x4a0759['value'];}_0x552366=_0x33dbd2[_0x2bb99e(0xa9)];}return _0x552366&&''!=_0x552366?_0x552366:void 0x0;}['sortRecordByRank'](_0x5a2911){const _0x3989a0=a0_0x19c321;return _0x5a2911?this[_0x3989a0(0xe1)](_0x5a2911,_0x3989a0(0xd0)):_0x5a2911;}['sortRecordByField'](_0x4eaede,_0x583cc8){const _0x10c88f=a0_0x19c321;return _0x4eaede[_0x10c88f(0xb4)]((_0x3a41b0,_0x1165d8)=>_0x3a41b0[_0x583cc8]-_0x1165d8[_0x583cc8]),_0x4eaede;}}customElements[a0_0x19c321(0xd7)](a0_0x19c321(0x93),MetaGeneratorPage);
@@ -1,4 +1,4 @@
1
- const a0_0x44feb9=a0_0x20dc;(function(_0x4c6bbf,_0x5eba83){const _0x1b5317=a0_0x20dc,_0x4a429d=_0x4c6bbf();while(!![]){try{const _0x5cc35f=-parseInt(_0x1b5317(0x156))/0x1+parseInt(_0x1b5317(0x154))/0x2*(parseInt(_0x1b5317(0x13e))/0x3)+parseInt(_0x1b5317(0x144))/0x4*(parseInt(_0x1b5317(0x139))/0x5)+parseInt(_0x1b5317(0x160))/0x6+parseInt(_0x1b5317(0x14d))/0x7+-parseInt(_0x1b5317(0x143))/0x8*(-parseInt(_0x1b5317(0x167))/0x9)+-parseInt(_0x1b5317(0x15c))/0xa;if(_0x5cc35f===_0x5eba83)break;else _0x4a429d['push'](_0x4a429d['shift']());}catch(_0x84834b){_0x4a429d['push'](_0x4a429d['shift']());}}}(a0_0x53ac,0xa2429));function a0_0x20dc(_0x5b2221,_0x516800){const _0x53acc5=a0_0x53ac();return a0_0x20dc=function(_0x20dc52,_0x25583f){_0x20dc52=_0x20dc52-0x139;let _0x4e0a04=_0x53acc5[_0x20dc52];return _0x4e0a04;},a0_0x20dc(_0x5b2221,_0x516800);}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';export const SearchConfigTabMixin=_0x2b2c73=>class extends _0x2b2c73{[a0_0x44feb9(0x13b)](_0x434cc8){const _0x121dee=a0_0x44feb9;let _0x3a8e1b=_0x434cc8?.[_0x121dee(0x158)]((_0x136bc9,_0x93b4ce)=>{const _0x1de6e9=_0x121dee;let _0x584259=_0x93b4ce+0x1,_0x58c908={};return'object'==typeof _0x136bc9?Object[_0x1de6e9(0x159)](_0x58c908,_0x136bc9):(_0x58c908['name']=_0x136bc9,_0x58c908[_0x1de6e9(0x14e)]=_0x1de6e9(0x164)),_0x58c908[_0x1de6e9(0x168)]=0xa*_0x584259,_0x58c908['id']=_0x584259,_0x58c908;});this[_0x121dee(0x166)]=_0x3a8e1b||[],this['searchTabGrist']?.['fetch']();}['getSearchConfigTabValues'](){const _0x1bc8bc=a0_0x44feb9;let _0x28ace5={'search':[],'gql':{'query':{'filters':[]}}},_0x584f3f=this[_0x1bc8bc(0x151)](_0x1bc8bc(0x13a));return this['sortRecordByRank'](_0x584f3f)?.['forEach'](_0x9386d0=>{const _0x2f063a=_0x1bc8bc;var {name:_0x2d631c,operator:_0x7e8b32='eq',hidden:_0x486f0e=!0x1,value:_0x44b8dc}=_0x9386d0;if(_0x2d631c){if(_0x2f063a(0x164)==_0x7e8b32)_0x28ace5[_0x2f063a(0x157)][_0x2f063a(0x147)](_0x2d631c);else{let _0x552bd5={'name':_0x2d631c,'operator':_0x7e8b32};0x1==_0x486f0e?(_0x552bd5[_0x2f063a(0x145)]=_0x44b8dc,_0x28ace5[_0x2f063a(0x14f)][_0x2f063a(0x149)]['filters'][_0x2f063a(0x147)](_0x552bd5)):(_0x552bd5[_0x2f063a(0x145)]=_0x44b8dc,_0x28ace5['search']['push'](_0x552bd5));}}}),_0x28ace5;}[a0_0x44feb9(0x15d)](){const _0x4c94ca=a0_0x44feb9;return html`
2
- <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x4c94ca(0x14c)]} .mode='GRID'
3
- .fetchHandler=${this[_0x4c94ca(0x165)][_0x4c94ca(0x141)](this)}>
4
- </ox-grist>`;}get[a0_0x44feb9(0x146)](){const _0xb13271=a0_0x44feb9;return this[_0xb13271(0x15f)][_0xb13271(0x148)](_0xb13271(0x150));}async[a0_0x44feb9(0x165)](){const _0x18c5dd=a0_0x44feb9;return{'total':0x0,'records':this[_0x18c5dd(0x166)]||[]};}async['setSearchConfigTabConfig'](){const _0x4bcd0a=a0_0x44feb9;let _0x33fa25=await MetaApi[_0x4bcd0a(0x162)](_0x4bcd0a(0x155));this['searchTabGridConfig']={'rows':MetaApi[_0x4bcd0a(0x13f)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x4bcd0a(0x168),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x4bcd0a(0x14b)](!0x1,!0x1),{'type':_0x4bcd0a(0x15e),'gutterName':_0x4bcd0a(0x153),'icon':_0x4bcd0a(0x163),'handlers':{'click':(_0x3d598a,_0x2bbabd,_0x3c9582,_0x2681cd,_0x5a990d)=>{const _0x250381=_0x4bcd0a;_0x2681cd['id']&&this[_0x250381(0x152)](this[_0x250381(0x146)],_0x2681cd);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'integer','name':'rank','header':TermsUtil[_0x4bcd0a(0x15a)](_0x4bcd0a(0x168)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x4bcd0a(0x14a),'name':_0x4bcd0a(0x13c),'header':TermsUtil[_0x4bcd0a(0x15a)]('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x4bcd0a(0x161),'editable':!0x0,'mandatory':!0x0}},{'type':'select','name':_0x4bcd0a(0x14e),'header':TermsUtil[_0x4bcd0a(0x15a)](_0x4bcd0a(0x142)),'sortable':!0x1,'width':0x64,'record':{'align':_0x4bcd0a(0x161),'editable':!0x0,'mandatory':!0x1,'options':_0x33fa25}},{'type':_0x4bcd0a(0x140),'name':_0x4bcd0a(0x15b),'header':TermsUtil[_0x4bcd0a(0x15a)]('hidden'),'sortable':!0x1,'width':0x41,'record':{'align':_0x4bcd0a(0x13d),'mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x4bcd0a(0x145),'header':TermsUtil[_0x4bcd0a(0x15a)]('default_value'),'sortable':!0x1,'width':0xc8,'record':{'align':_0x4bcd0a(0x161),'editable':!0x0,'mandatory':!0x1}}]};}};function a0_0x53ac(){const _0x5aacfb=['name','center','19146HuFHJz','getGristSelectableConfig','boolean','bind','search_operator','214128BwrDKq','37844BTTWbk','value','searchTabGrist','push','querySelector','query','string','getGristGuttersConfig','searchTabGridConfig','8319066kSIicG','operator','gql','#search-tab-grid','getElementValueById','deleteRow','button','356vkOjYN','FILTER_OPERATORS','1164123OjJyYZ','search','map','assign','tLabel','hidden','26945970oXHAir','renderSearchConfigTab','gutter','shadowRoot','7164048nIXiXW','left','getCodeSelectorData','delete','filter','fetchSearchTabHandler','viewSearchData','252TRQtuw','rank','135jQZxZF','search-tab-grid','setSearchConfigTabValues'];a0_0x53ac=function(){return _0x5aacfb;};return a0_0x53ac();}
1
+ function a0_0x1466(){const _0x59b360=['1749896yTvmom','querySelector','string','integer','deleteRow','search','center','left','renderSearchConfigTab','object','push','boolean','799245qDiBgs','filters','2375710RSHWxR','operator','2iGWctg','getSearchConfigTabValues','searchTabGridConfig','fetchSearchTabHandler','query','#search-tab-grid','setSearchConfigTabValues','name','489042RSYSBn','searchTabGrist','viewSearchData','search_operator','value','button','getElementValueById','map','4oAVTdU','fetch','1723047uWsSzy','getGristGuttersConfig','shadowRoot','setSearchConfigTabConfig','FILTER_OPERATORS','default_value','search-tab-grid','tLabel','gutter','130dgmzMA','getCodeSelectorData','forEach','388381pzjqZr','delete','select','getGristSelectableConfig','assign','rank','5061762GFMJmI','right','filter','hidden','gql'];a0_0x1466=function(){return _0x59b360;};return a0_0x1466();}function a0_0x3dc9(_0x28a0cb,_0x11aa67){const _0x1466ba=a0_0x1466();return a0_0x3dc9=function(_0x3dc9a1,_0x3049d1){_0x3dc9a1=_0x3dc9a1-0x1ce;let _0x1c32a5=_0x1466ba[_0x3dc9a1];return _0x1c32a5;},a0_0x3dc9(_0x28a0cb,_0x11aa67);}const a0_0x2fbbe7=a0_0x3dc9;(function(_0x3ccf27,_0x188ab8){const _0x5df27c=a0_0x3dc9,_0x10e68b=_0x3ccf27();while(!![]){try{const _0xacb6ef=parseInt(_0x5df27c(0x1ef))/0x1*(parseInt(_0x5df27c(0x1f3))/0x2)+parseInt(_0x5df27c(0x205))/0x3+parseInt(_0x5df27c(0x203))/0x4*(-parseInt(_0x5df27c(0x1f1))/0x5)+-parseInt(_0x5df27c(0x1de))/0x6+parseInt(_0x5df27c(0x1d8))/0x7+-parseInt(_0x5df27c(0x1e3))/0x8+parseInt(_0x5df27c(0x1fb))/0x9*(parseInt(_0x5df27c(0x1d5))/0xa);if(_0xacb6ef===_0x188ab8)break;else _0x10e68b['push'](_0x10e68b['shift']());}catch(_0x447a0d){_0x10e68b['push'](_0x10e68b['shift']());}}}(a0_0x1466,0x91fcd));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';export const SearchConfigTabMixin=_0x3bb87f=>class extends _0x3bb87f{[a0_0x2fbbe7(0x1f9)](_0x28f485){const _0x27bbef=a0_0x2fbbe7;let _0x18ba02=_0x28f485?.[_0x27bbef(0x202)]((_0x57f03e,_0x138aa3)=>{const _0x1a86e0=_0x27bbef;let _0x350f30=_0x138aa3+0x1,_0x21fc00={};return _0x1a86e0(0x1ec)==typeof _0x57f03e?Object[_0x1a86e0(0x1dc)](_0x21fc00,_0x57f03e):(_0x21fc00[_0x1a86e0(0x1fa)]=_0x57f03e,_0x21fc00[_0x1a86e0(0x1f2)]=_0x1a86e0(0x1e0)),_0x21fc00[_0x1a86e0(0x1dd)]=0xa*_0x350f30,_0x21fc00['id']=_0x350f30,_0x21fc00;});this['viewSearchData']=_0x18ba02||[],this[_0x27bbef(0x1fc)]?.[_0x27bbef(0x204)]();}[a0_0x2fbbe7(0x1f4)](){const _0x27b375=a0_0x2fbbe7;let _0x208af2={'search':[],'gql':{'query':{'filters':[]}}},_0x435438=this[_0x27b375(0x201)](_0x27b375(0x1d2));return this['sortRecordByRank'](_0x435438)?.[_0x27b375(0x1d7)](_0x14960a=>{const _0x3d0866=_0x27b375;var {name:_0x169495,operator:_0x2fdbcf='eq',hidden:_0x5800b6=!0x1,value:_0x120d5b}=_0x14960a;if(_0x169495){if(_0x3d0866(0x1e0)==_0x2fdbcf)_0x208af2[_0x3d0866(0x1e8)][_0x3d0866(0x1ed)](_0x169495);else{let _0x3b0469={'name':_0x169495,'operator':_0x2fdbcf};0x1==_0x5800b6?(_0x3b0469[_0x3d0866(0x1ff)]=_0x120d5b,_0x208af2[_0x3d0866(0x1e2)][_0x3d0866(0x1f7)][_0x3d0866(0x1f0)][_0x3d0866(0x1ed)](_0x3b0469)):(_0x3b0469[_0x3d0866(0x1ff)]=_0x120d5b,_0x208af2[_0x3d0866(0x1e8)][_0x3d0866(0x1ed)](_0x3b0469));}}}),_0x208af2;}[a0_0x2fbbe7(0x1eb)](){const _0x5bbae7=a0_0x2fbbe7;return html`
2
+ <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x5bbae7(0x1f5)]} .mode='GRID'
3
+ .fetchHandler=${this[_0x5bbae7(0x1f6)]['bind'](this)}>
4
+ </ox-grist>`;}get[a0_0x2fbbe7(0x1fc)](){const _0x3f5f75=a0_0x2fbbe7;return this[_0x3f5f75(0x1ce)][_0x3f5f75(0x1e4)](_0x3f5f75(0x1f8));}async[a0_0x2fbbe7(0x1f6)](){const _0x2fd372=a0_0x2fbbe7;return{'total':0x0,'records':this[_0x2fd372(0x1fd)]||[]};}async[a0_0x2fbbe7(0x1cf)](){const _0x5c88d9=a0_0x2fbbe7;let _0x12494f=await MetaApi[_0x5c88d9(0x1d6)](_0x5c88d9(0x1d0));this[_0x5c88d9(0x1f5)]={'rows':MetaApi[_0x5c88d9(0x1db)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x5c88d9(0x206)](!0x1,!0x1),{'type':_0x5c88d9(0x1d4),'gutterName':_0x5c88d9(0x200),'icon':_0x5c88d9(0x1d9),'handlers':{'click':(_0x3cd5d0,_0x215c52,_0xe000bf,_0x366df2,_0x37925a)=>{const _0x4b5e96=_0x5c88d9;_0x366df2['id']&&this[_0x4b5e96(0x1e7)](this['searchTabGrist'],_0x366df2);}}},{'type':_0x5c88d9(0x1e5),'name':'id','hidden':!0x0},{'type':_0x5c88d9(0x1e6),'name':_0x5c88d9(0x1dd),'header':TermsUtil[_0x5c88d9(0x1d3)](_0x5c88d9(0x1dd)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5c88d9(0x1df),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'name','header':TermsUtil[_0x5c88d9(0x1d3)]('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x5c88d9(0x1ea),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5c88d9(0x1da),'name':_0x5c88d9(0x1f2),'header':TermsUtil['tLabel'](_0x5c88d9(0x1fe)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x1,'options':_0x12494f}},{'type':_0x5c88d9(0x1ee),'name':_0x5c88d9(0x1e1),'header':TermsUtil['tLabel'](_0x5c88d9(0x1e1)),'sortable':!0x1,'width':0x41,'record':{'align':_0x5c88d9(0x1e9),'mandatory':!0x1,'editable':!0x0}},{'type':_0x5c88d9(0x1e5),'name':_0x5c88d9(0x1ff),'header':TermsUtil['tLabel'](_0x5c88d9(0x1d1)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x5c88d9(0x1ea),'editable':!0x0,'mandatory':!0x1}}]};}};
@@ -1,4 +1,4 @@
1
- const a0_0x1f7002=a0_0x2752;(function(_0x40ae4f,_0x3ada45){const _0x3287cc=a0_0x2752,_0x3259bc=_0x40ae4f();while(!![]){try{const _0x1908f7=-parseInt(_0x3287cc(0x99))/0x1*(parseInt(_0x3287cc(0xa5))/0x2)+-parseInt(_0x3287cc(0x95))/0x3+-parseInt(_0x3287cc(0xa4))/0x4+parseInt(_0x3287cc(0xbd))/0x5*(-parseInt(_0x3287cc(0xb2))/0x6)+parseInt(_0x3287cc(0xb1))/0x7*(-parseInt(_0x3287cc(0x9d))/0x8)+parseInt(_0x3287cc(0xa7))/0x9+parseInt(_0x3287cc(0xbb))/0xa;if(_0x1908f7===_0x3ada45)break;else _0x3259bc['push'](_0x3259bc['shift']());}catch(_0x21de59){_0x3259bc['push'](_0x3259bc['shift']());}}}(a0_0x2fa0,0xbc17a));function a0_0x2752(_0x38318e,_0x3a26ff){const _0x2fa0cf=a0_0x2fa0();return a0_0x2752=function(_0x2752e9,_0xfed61d){_0x2752e9=_0x2752e9-0x91;let _0x5528be=_0x2fa0cf[_0x2752e9];return _0x5528be;},a0_0x2752(_0x38318e,_0x3a26ff);}import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x2fa0(){const _0x386042=['bind','renderTabConfigTab','delete','viewTabData','param_field','integer','button','2073743quAcvM','12QcJwrs','left','parent_field','parent_id','right','#tab-tab-grid','params','page_location','tag','49260050JqmBdh','forEach','927925Niauwf','fetchTabTabHandler','tab','rank','getGristGuttersConfig','3565362PtNYQA','name','display','routing','360233kuBhBb','tLabel','string','tabTabGridConfig','40IhZwhS','menu','tabTabGrist','icon','shadowRoot','getGristSelectableConfig','tagname','3694600OUAsyF','2AlVPnS','setTabConfigTabValues','1522557rNzmNj','center','location'];a0_0x2fa0=function(){return _0x386042;};return a0_0x2fa0();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const TabConfigTabMixin=_0x661acc=>class extends _0x661acc{[a0_0x1f7002(0xa6)](_0x33f0e1){const _0x1140ce=a0_0x1f7002;let _0x5a519a=_0x33f0e1?.['map']((_0x2e1b6e,_0x49a1ad)=>{const _0x4e1722=a0_0x2752;let _0x5408f6=_0x49a1ad+0x1,_0x8a8d36={};return _0x8a8d36[_0x4e1722(0x93)]=0xa*_0x5408f6,_0x8a8d36['id']=_0x5408f6,_0x8a8d36[_0x4e1722(0x96)]=_0x2e1b6e[_0x4e1722(0x96)],_0x8a8d36[_0x4e1722(0x97)]=_0x2e1b6e[_0x4e1722(0x97)],_0x8a8d36[_0x4e1722(0xa3)]=_0x2e1b6e[_0x4e1722(0xa3)],_0x8a8d36['icon']=_0x2e1b6e[_0x4e1722(0xa0)],_0x8a8d36[_0x4e1722(0xa9)]=_0x2e1b6e['location'],_0x8a8d36['parent_field']=_0x2e1b6e[_0x4e1722(0xb4)],_0x8a8d36['param_field']=_0x2e1b6e['param_field'],_0x8a8d36[_0x4e1722(0x9e)]=_0x2e1b6e[_0x4e1722(0x9e)],_0x8a8d36;});this[_0x1140ce(0xad)]=_0x5a519a||[],this[_0x1140ce(0x9f)]?.['fetch']();}['getTabConfigTabValues'](){const _0x58b9cd=a0_0x1f7002;let _0x2447d7={'tab':[]},_0x322e93=this['getElementValueById']('tab-tab-grid');return this['sortRecordByRank'](_0x322e93)?.[_0x58b9cd(0xbc)](_0x4e894e=>{const _0x5ace2f=_0x58b9cd;var {name:_0x263f7e,display:_0x756bab,tagname:_0x48b2ec,location:_0x1cea53,parent_field:_0x2ef7e5,param_field:_0x5bfb42,menu:_0x4eabb9,icon:_0x4232a2}=_0x4e894e;_0x263f7e&&_0x48b2ec&&_0x1cea53&&_0x4eabb9&&(_0x756bab||(_0x756bab=_0x263f7e),_0x2ef7e5||(_0x2ef7e5='id'),_0x5bfb42||(_0x5bfb42=_0x5ace2f(0xae)),_0x2447d7[_0x5ace2f(0x92)]['push']({'name':_0x263f7e,'display':_0x756bab,'tagname':_0x48b2ec,'location':_0x1cea53,'parent_field':_0x2ef7e5,'param_field':_0x5bfb42,'menu':_0x4eabb9,'icon':_0x4232a2}));}),_0x2447d7;}[a0_0x1f7002(0xab)](){const _0x3b43bf=a0_0x1f7002;return html`
2
- <ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x3b43bf(0x9c)]} .mode='GRID'
3
- .fetchHandler=${this[_0x3b43bf(0x91)][_0x3b43bf(0xaa)](this)}>
4
- </ox-grist>`;}get[a0_0x1f7002(0x9f)](){const _0x46643d=a0_0x1f7002;return this[_0x46643d(0xa1)]['querySelector'](_0x46643d(0xb7));}async[a0_0x1f7002(0x91)](){return{'total':0x0,'records':this['viewTabData']||[]};}async['setTabConfigTabConfig'](){const _0x573832=a0_0x1f7002;this[_0x573832(0x9c)]={'rows':MetaApi[_0x573832(0xa2)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x573832(0x94)](!0x1,!0x1),{'type':'gutter','gutterName':_0x573832(0xb0),'icon':_0x573832(0xac),'handlers':{'click':(_0x5a7a8b,_0x1624e5,_0x338822,_0x1de45b,_0x12f5a7)=>{const _0x5d1d2a=_0x573832;_0x1de45b['id']&&this['deleteRow'](this[_0x5d1d2a(0x9f)],_0x1de45b);}}},{'type':_0x573832(0x9b),'name':'id','hidden':!0x0},{'type':_0x573832(0xaf),'name':_0x573832(0x93),'header':TermsUtil[_0x573832(0x9a)](_0x573832(0x93)),'sortable':!0x0,'width':0x41,'record':{'align':_0x573832(0xb6),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'name','header':TermsUtil[_0x573832(0x9a)](_0x573832(0x96)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':'display','header':TermsUtil[_0x573832(0x9a)]('display'),'sortable':!0x1,'width':0x64,'record':{'align':_0x573832(0xb3),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x573832(0xa0),'header':TermsUtil['tLabel'](_0x573832(0xa0)),'sortable':!0x0,'width':0x41,'record':{'align':_0x573832(0xa8),'editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':_0x573832(0x9e),'header':TermsUtil[_0x573832(0x9a)](_0x573832(0x98)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':'tagname','header':TermsUtil[_0x573832(0x9a)](_0x573832(0xba)),'sortable':!0x1,'width':0x96,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':'location','header':TermsUtil['tLabel'](_0x573832(0xb9)),'sortable':!0x1,'width':0x12c,'record':{'align':_0x573832(0xb3),'editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':'parent_field','header':TermsUtil['tLabel'](_0x573832(0xb5)),'sortable':!0x1,'width':0x64,'record':{'align':_0x573832(0xb3),'editable':!0x0,'mandatory':!0x0}},{'type':_0x573832(0x9b),'name':'param_field','header':TermsUtil['tLabel'](_0x573832(0xb8)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}}]};}};
1
+ const a0_0x55b01d=a0_0x17f2;function a0_0x17f2(_0xf1c12a,_0x44264b){const _0x33ff4f=a0_0x33ff();return a0_0x17f2=function(_0x17f2a5,_0x539a5a){_0x17f2a5=_0x17f2a5-0x1b4;let _0x2dbcc6=_0x33ff4f[_0x17f2a5];return _0x2dbcc6;},a0_0x17f2(_0xf1c12a,_0x44264b);}(function(_0x3a887b,_0x1d4287){const _0x5e4042=a0_0x17f2,_0x23a910=_0x3a887b();while(!![]){try{const _0x2974d5=parseInt(_0x5e4042(0x1b5))/0x1+parseInt(_0x5e4042(0x1d4))/0x2+parseInt(_0x5e4042(0x1bd))/0x3*(-parseInt(_0x5e4042(0x1b9))/0x4)+-parseInt(_0x5e4042(0x1c4))/0x5+parseInt(_0x5e4042(0x1cf))/0x6+parseInt(_0x5e4042(0x1be))/0x7+parseInt(_0x5e4042(0x1dc))/0x8*(-parseInt(_0x5e4042(0x1d3))/0x9);if(_0x2974d5===_0x1d4287)break;else _0x23a910['push'](_0x23a910['shift']());}catch(_0x15617d){_0x23a910['push'](_0x23a910['shift']());}}}(a0_0x33ff,0xe0b70));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_0x33ff(){const _0x1c07bf=['icon','rank','2388860leiGgb','param_field','integer','tLabel','parent_id','display','tagname','bind','#tab-tab-grid','querySelector','setTabConfigTabConfig','9180660chbsHc','right','tab','forEach','83880WpTanE','600726rMNNtb','map','tab-tab-grid','page_location','location','center','shadowRoot','tabTabGrist','1808YcqWIK','menu','setTabConfigTabValues','push','1725388eYIkJs','string','deleteRow','tabTabGridConfig','433996ZnxetM','gutter','fetchTabTabHandler','delete','39YfBTfi','9514050elAeFS','parent_field','name','left'];a0_0x33ff=function(){return _0x1c07bf;};return a0_0x33ff();}export const TabConfigTabMixin=_0x539c77=>class extends _0x539c77{[a0_0x55b01d(0x1de)](_0x1edab4){const _0x192e1e=a0_0x55b01d;let _0x5e80d4=_0x1edab4?.[_0x192e1e(0x1d5)]((_0x211cb3,_0x3ba36a)=>{const _0x1a7fef=_0x192e1e;let _0x187bfd=_0x3ba36a+0x1,_0x2ccf78={};return _0x2ccf78['rank']=0xa*_0x187bfd,_0x2ccf78['id']=_0x187bfd,_0x2ccf78[_0x1a7fef(0x1c0)]=_0x211cb3[_0x1a7fef(0x1c0)],_0x2ccf78['display']=_0x211cb3['display'],_0x2ccf78[_0x1a7fef(0x1ca)]=_0x211cb3[_0x1a7fef(0x1ca)],_0x2ccf78[_0x1a7fef(0x1c2)]=_0x211cb3['icon'],_0x2ccf78[_0x1a7fef(0x1d8)]=_0x211cb3[_0x1a7fef(0x1d8)],_0x2ccf78[_0x1a7fef(0x1bf)]=_0x211cb3[_0x1a7fef(0x1bf)],_0x2ccf78['param_field']=_0x211cb3['param_field'],_0x2ccf78[_0x1a7fef(0x1dd)]=_0x211cb3[_0x1a7fef(0x1dd)],_0x2ccf78;});this['viewTabData']=_0x5e80d4||[],this['tabTabGrist']?.['fetch']();}['getTabConfigTabValues'](){const _0x238355=a0_0x55b01d;let _0x21f42b={'tab':[]},_0xa63e42=this['getElementValueById'](_0x238355(0x1d6));return this['sortRecordByRank'](_0xa63e42)?.[_0x238355(0x1d2)](_0x1aee89=>{const _0x330f66=_0x238355;var {name:_0xb14948,display:_0x1fdc39,tagname:_0x5f0526,location:_0x240bf8,parent_field:_0x1134ac,param_field:_0x218dfe,menu:_0x37de7,icon:_0x1af91f}=_0x1aee89;_0xb14948&&_0x5f0526&&_0x240bf8&&_0x37de7&&(_0x1fdc39||(_0x1fdc39=_0xb14948),_0x1134ac||(_0x1134ac='id'),_0x218dfe||(_0x218dfe=_0x330f66(0x1c5)),_0x21f42b[_0x330f66(0x1d1)][_0x330f66(0x1b4)]({'name':_0xb14948,'display':_0x1fdc39,'tagname':_0x5f0526,'location':_0x240bf8,'parent_field':_0x1134ac,'param_field':_0x218dfe,'menu':_0x37de7,'icon':_0x1af91f}));}),_0x21f42b;}['renderTabConfigTab'](){const _0x3d128b=a0_0x55b01d;return html`
2
+ <ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x3d128b(0x1b8)]} .mode='GRID'
3
+ .fetchHandler=${this['fetchTabTabHandler'][_0x3d128b(0x1cb)](this)}>
4
+ </ox-grist>`;}get[a0_0x55b01d(0x1db)](){const _0xf7a626=a0_0x55b01d;return this[_0xf7a626(0x1da)][_0xf7a626(0x1cd)](_0xf7a626(0x1cc));}async[a0_0x55b01d(0x1bb)](){return{'total':0x0,'records':this['viewTabData']||[]};}async[a0_0x55b01d(0x1ce)](){const _0x354b87=a0_0x55b01d;this['tabTabGridConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x354b87(0x1ba),'gutterName':'button','icon':_0x354b87(0x1bc),'handlers':{'click':(_0x1e9d83,_0x4f9863,_0x4b689e,_0x186cbe,_0x45632d)=>{const _0x12987e=_0x354b87;_0x186cbe['id']&&this[_0x12987e(0x1b7)](this[_0x12987e(0x1db)],_0x186cbe);}}},{'type':_0x354b87(0x1b6),'name':'id','hidden':!0x0},{'type':_0x354b87(0x1c6),'name':'rank','header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c3)),'sortable':!0x0,'width':0x41,'record':{'align':_0x354b87(0x1d0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':'name','header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c0)),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1c9),'header':TermsUtil['tLabel'](_0x354b87(0x1c9)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1c2),'header':TermsUtil[_0x354b87(0x1c7)]('icon'),'sortable':!0x0,'width':0x41,'record':{'align':_0x354b87(0x1d9),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':'menu','header':TermsUtil[_0x354b87(0x1c7)]('routing'),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1ca),'header':TermsUtil[_0x354b87(0x1c7)]('tag'),'sortable':!0x1,'width':0x96,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1d8),'header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1d7)),'sortable':!0x1,'width':0x12c,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1bf),'header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c8)),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1c5),'header':TermsUtil[_0x354b87(0x1c7)]('params'),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}}]};}};