@things-factory/operato-tools 6.1.38 → 6.1.40

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_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`
1
+ const a0_0x22074f=a0_0x5807;(function(_0x3c173a,_0x4b58a2){const _0x2c4659=a0_0x5807,_0x2b6b83=_0x3c173a();while(!![]){try{const _0x5f5096=-parseInt(_0x2c4659(0x1e3))/0x1*(-parseInt(_0x2c4659(0x215))/0x2)+-parseInt(_0x2c4659(0x217))/0x3*(-parseInt(_0x2c4659(0x1e1))/0x4)+parseInt(_0x2c4659(0x1e7))/0x5*(parseInt(_0x2c4659(0x1e5))/0x6)+parseInt(_0x2c4659(0x1f6))/0x7+parseInt(_0x2c4659(0x1e0))/0x8+-parseInt(_0x2c4659(0x1e8))/0x9*(parseInt(_0x2c4659(0x1e2))/0xa)+-parseInt(_0x2c4659(0x213))/0xb;if(_0x5f5096===_0x4b58a2)break;else _0x2b6b83['push'](_0x2b6b83['shift']());}catch(_0xf7b158){_0x2b6b83['push'](_0x2b6b83['shift']());}}}(a0_0x1bbf,0x32a05));function a0_0x1bbf(){const _0x31eba0=['gridPageOptions','codeItems','GRID_PAGE_OPTIONS','grid_use_row_check','true','grid_term_unlimited','map','grid_use_filter','grid_term_','getElementValueById','grid_term_50','toLowerCase','description','grid','desk_mode','grid_pagination','4892459FJvlGf','multiple_select','5426FhUkDw','use','4395yrHeIV','length','getGridConfigTabValues','grid_term_100','list_view_use','unsupport','grid_term_default','492216SxKhWm','508CwWdsd','10EWkVHk','6SJRdur','grid_mobile_view','8310cJirhW','grid_desk_view','1370uckniS','1755873bhFezr','viewGridData','setGridConfigTabDetaultValues','GRID_VIEW_MODE','select-row-toggle','name','setGridConfigTabConfig','support','tLabel','use_filter_form','view_mode','push','CARD','includes','1427167LrKzRv','unuse','unlimited','_view_use','GRID','renderGridConfigTab','use_row_checker','LIST','grid_support_view','option','pages','gridViewModes','mobile_mode'];a0_0x1bbf=function(){return _0x31eba0;};return a0_0x1bbf();}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x5807(_0x357dbd,_0x4f58d7){const _0x1bbf2e=a0_0x1bbf();return a0_0x5807=function(_0x58075e,_0x3116f2){_0x58075e=_0x58075e-0x1e0;let _0x14fd21=_0x1bbf2e[_0x58075e];return _0x14fd21;},a0_0x5807(_0x357dbd,_0x4f58d7);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0xc510b4=>class extends _0xc510b4{['setGridConfigTabValues'](_0x40c322){const _0x136dd2=a0_0x5807;if(_0x40c322){var {mobile_mode:_0x134837='',desk_mode:_0x2fb986='',pages:_0x4cff98=[],use_row_checker:_0x4f4bfa=!0x0,view_mode:_0x58f7a7=[]}=_0x40c322[_0x136dd2(0x1ff)]||{};let _0x152e0e=(_0x40c322['row']||{'multiple_select':!0x1})['multiple_select'],_0x45fc0d='unlimited'==_0x4cff98?'grid_term_unlimited':0x0==_0x4cff98[_0x136dd2(0x218)]?'':0x14==_0x4cff98[0x0]?_0x136dd2(0x21d):_0x136dd2(0x20b)+_0x4cff98[0x0];this[_0x136dd2(0x1e9)]={'mobile_mode':_0x134837,'desk_mode':_0x2fb986,'use_row_checker':_0x4f4bfa,'pages':_0x45fc0d,'view_mode':_0x58f7a7,'multiple_select':_0x152e0e,'use_filter_form':_0x40c322['use_filter_form']};}else this['setGridConfigTabDetaultValues']();}[a0_0x22074f(0x219)](){const _0x2ff0fd=a0_0x22074f;let _0x1336fa={'grid':{'option':{},'row':{'click':_0x2ff0fd(0x1ec)}}},_0x3f9fa7=this['getElementValueById']('grid_row_check_use'),_0xad9d4b=this[_0x2ff0fd(0x20c)]('grid_multi_select'),_0xa3627b=this[_0x2ff0fd(0x20c)](_0x2ff0fd(0x1e6)),_0xdc58d1=this[_0x2ff0fd(0x20c)](_0x2ff0fd(0x1e4)),_0x5e844d=this['getElementValueById']('grid_use_filter'),_0x222b7f=this[_0x2ff0fd(0x20c)](_0x2ff0fd(0x212)),_0x495e81=this[_0x2ff0fd(0x20c)]('grid_view_use'),_0x1e6611=this['getElementValueById'](_0x2ff0fd(0x21b)),_0x33a4b3=this[_0x2ff0fd(0x20c)]('card_view_use');return _0x1336fa['grid'][_0x2ff0fd(0x1f1)]=_0x2ff0fd(0x207)==_0x5e844d,_0x1336fa[_0x2ff0fd(0x210)]['row'][_0x2ff0fd(0x214)]=_0x2ff0fd(0x207)==_0xad9d4b,_0x1336fa[_0x2ff0fd(0x210)]['option'][_0x2ff0fd(0x1fc)]=_0x2ff0fd(0x207)==_0x3f9fa7,_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)][_0x2ff0fd(0x202)]=_0xdc58d1,_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)][_0x2ff0fd(0x211)]=_0xa3627b,_0x2ff0fd(0x21d)==_0x222b7f?_0x1336fa[_0x2ff0fd(0x210)]['option']['pages']=[0x14,0x1e,0x32,0x64]:_0x2ff0fd(0x20d)==_0x222b7f?_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)][_0x2ff0fd(0x200)]=[0x32,0x64,0x1f4,0x3e8]:_0x2ff0fd(0x21a)==_0x222b7f?_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)][_0x2ff0fd(0x200)]=[0x64,0x1f4,0x3e8,0x1388]:'grid_term_1000'==_0x222b7f?_0x1336fa['grid']['option'][_0x2ff0fd(0x200)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x2ff0fd(0x208)==_0x222b7f&&(_0x1336fa[_0x2ff0fd(0x210)]['option']['pages']=_0x2ff0fd(0x1f8)),_0x1336fa['grid'][_0x2ff0fd(0x1ff)]['view_mode']=[],_0x2ff0fd(0x207)==_0x495e81&&_0x1336fa[_0x2ff0fd(0x210)]['option'][_0x2ff0fd(0x1f2)][_0x2ff0fd(0x1f3)](_0x2ff0fd(0x1fa)),_0x2ff0fd(0x207)==_0x1e6611&&_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)]['view_mode'][_0x2ff0fd(0x1f3)](_0x2ff0fd(0x1fd)),'true'==_0x33a4b3&&_0x1336fa[_0x2ff0fd(0x210)][_0x2ff0fd(0x1ff)][_0x2ff0fd(0x1f2)][_0x2ff0fd(0x1f3)](_0x2ff0fd(0x1f4)),_0x1336fa;}async[a0_0x22074f(0x1ee)](){const _0x5a424a=a0_0x22074f;let _0x1ecc30=await MetaApi[_0x5a424a(0x204)](_0x5a424a(0x205)),_0x5c1369=await MetaApi[_0x5a424a(0x204)](_0x5a424a(0x1eb));this[_0x5a424a(0x201)]=_0x5c1369,this[_0x5a424a(0x203)]=_0x1ecc30;}[a0_0x22074f(0x1ea)](){const _0xd55b6d=a0_0x22074f;this[_0xd55b6d(0x1e9)]||(this[_0xd55b6d(0x1e9)]={'mobile_mode':this[_0xd55b6d(0x201)]?this[_0xd55b6d(0x201)][0x1]:_0xd55b6d(0x1fd),'desk_mode':this['gridViewModes']?this[_0xd55b6d(0x201)][0x0]:_0xd55b6d(0x1fa),'use_row_checker':!0x0,'pages':_0xd55b6d(0x21d),'view_mode':[...this['gridViewModes']?this[_0xd55b6d(0x201)]:['GRID',_0xd55b6d(0x1fd),_0xd55b6d(0x1f4)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x22074f(0x1fb)](){const _0x3757c5=a0_0x22074f;return this[_0x3757c5(0x1ea)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1fb))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x206))}
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)]('use')}</input>
10
+ ?checked=${this[_0x3757c5(0x1e9)][_0x3757c5(0x1fc)]}>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x216))}</input>
11
11
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
12
- ?checked=${!this['viewGridData'][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1db))}</input>
12
+ ?checked=${!this[_0x3757c5(0x1e9)]['use_row_checker']}>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x1f7))}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x202))}
18
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel']('grid_support_multi_select')}
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel']('support')}</input>
23
+ ?checked=${this[_0x3757c5(0x1e9)][_0x3757c5(0x214)]}>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x1ef))}</input>
24
24
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
25
- ?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1fa))}</input>
25
+ ?checked=${!this[_0x3757c5(0x1e9)][_0x3757c5(0x214)]}>${TermsUtil['tLabel'](_0x3757c5(0x21c))}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x208))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x20a))}
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil[_0x1f51e6(0x20b)]('use')}</input>
36
+ ?checked=${this['viewGridData'][_0x3757c5(0x1f1)]}>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x216))}</input>
37
37
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
38
- ?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1db))}</input>
38
+ ?checked=${!this['viewGridData'][_0x3757c5(0x1f1)]}>${TermsUtil[_0x3757c5(0x1f0)]('unuse')}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x1ff))}
45
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x1e6))}
46
46
  </h2>
47
47
  <label>
48
48
  <select id="grid_desk_view" name="grid_desk_view">
49
- ${this[_0x1f51e6(0x20e)]?.['map'](_0x105dd3=>html`<option value=${_0x105dd3[_0x1f51e6(0x1e4)]} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1ee)]==_0x105dd3['name']}>${_0x105dd3[_0x1f51e6(0x1f6)]}</option>`)}
49
+ ${this['gridViewModes']?.[_0x3757c5(0x209)](_0x5e4643=>html`<option value=${_0x5e4643[_0x3757c5(0x1ed)]} ?selected=${this[_0x3757c5(0x1e9)][_0x3757c5(0x211)]==_0x5e4643[_0x3757c5(0x1ed)]}>${_0x5e4643[_0x3757c5(0x20f)]}</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[_0x1f51e6(0x20b)]('grid_mobile_view')}
55
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x1e4))}
56
56
  </h2>
57
57
  <label>
58
58
  <select id="grid_mobile_view" name="grid_mobile_view">
59
- ${this['gridViewModes']?.[_0x1f51e6(0x1f7)](_0x3515aa=>html`<option value=${_0x3515aa['name']} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x200)]==_0x3515aa[_0x1f51e6(0x1e4)]}>${_0x3515aa[_0x1f51e6(0x1f6)]}</option>`)}
59
+ ${this['gridViewModes']?.[_0x3757c5(0x209)](_0x37750d=>html`<option value=${_0x37750d[_0x3757c5(0x1ed)]} ?selected=${this[_0x3757c5(0x1e9)][_0x3757c5(0x202)]==_0x37750d['name']}>${_0x37750d[_0x3757c5(0x20f)]}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x217))}
65
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x1fe))}
66
66
  </h2>
67
67
  <label>
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>
68
+ ${this['gridViewModes']?.[_0x3757c5(0x209)](_0x44f81f=>html`
69
+ <span>${_0x44f81f[_0x3757c5(0x1ed)]}
70
+ <input type="radio" name=${_0x44f81f['name'][_0x3757c5(0x20e)]()+'_view_use'} id=${_0x44f81f[_0x3757c5(0x1ed)]['toLowerCase']()+_0x3757c5(0x1f9)} ?checked=${this[_0x3757c5(0x1e9)]['view_mode'][_0x3757c5(0x1f5)](_0x44f81f[_0x3757c5(0x1ed)])} value="true">${TermsUtil['tLabel']('use')}</input>
71
+ <input type="radio" name=${_0x44f81f[_0x3757c5(0x1ed)][_0x3757c5(0x20e)]()+_0x3757c5(0x1f9)} id=${_0x44f81f['name'][_0x3757c5(0x20e)]()+_0x3757c5(0x1f9)} ?checked=${!this[_0x3757c5(0x1e9)][_0x3757c5(0x1f2)][_0x3757c5(0x1f5)](_0x44f81f['name'])} value="false">${TermsUtil[_0x3757c5(0x1f0)]('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['tLabel'](_0x1f51e6(0x1ed))}
78
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3757c5(0x1f0)](_0x3757c5(0x212))}
79
79
  </h2>
80
80
  <label>
81
- ${this[_0x1f51e6(0x1fe)]?.[_0x1f51e6(0x1f7)](_0x23b606=>html`
81
+ ${this['gridPageOptions']?.[_0x3757c5(0x209)](_0x246027=>html`
82
82
  <span>
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>
83
+ <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x246027[_0x3757c5(0x1ed)]} ?checked=${this[_0x3757c5(0x1e9)][_0x3757c5(0x200)]==_0x246027[_0x3757c5(0x1ed)]}>${TermsUtil[_0x3757c5(0x1f0)](_0x246027[_0x3757c5(0x1ed)])}</input>
84
84
  </span>
85
85
  `)}
86
86
  </label>
@@ -1,18 +1,18 @@
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`
1
+ const a0_0x562ad3=a0_0x4b15;function a0_0x4b15(_0x3db69f,_0x451863){const _0x4d52a1=a0_0x4d52();return a0_0x4b15=function(_0x4b1505,_0x3048b4){_0x4b1505=_0x4b1505-0x15d;let _0x1ba94a=_0x4d52a1[_0x4b1505];return _0x1ba94a;},a0_0x4b15(_0x3db69f,_0x451863);}(function(_0x32d83d,_0x12cf73){const _0x20eff2=a0_0x4b15,_0xbbfe6a=_0x32d83d();while(!![]){try{const _0xaa57c4=parseInt(_0x20eff2(0x176))/0x1+-parseInt(_0x20eff2(0x181))/0x2*(parseInt(_0x20eff2(0x15d))/0x3)+-parseInt(_0x20eff2(0x180))/0x4*(-parseInt(_0x20eff2(0x17e))/0x5)+parseInt(_0x20eff2(0x16d))/0x6*(-parseInt(_0x20eff2(0x174))/0x7)+parseInt(_0x20eff2(0x188))/0x8*(-parseInt(_0x20eff2(0x189))/0x9)+-parseInt(_0x20eff2(0x15e))/0xa*(parseInt(_0x20eff2(0x199))/0xb)+parseInt(_0x20eff2(0x167))/0xc*(parseInt(_0x20eff2(0x179))/0xd);if(_0xaa57c4===_0x12cf73)break;else _0xbbfe6a['push'](_0xbbfe6a['shift']());}catch(_0x53d924){_0xbbfe6a['push'](_0xbbfe6a['shift']());}}}(a0_0x4d52,0x5f0a3));function a0_0x4d52(){const _0x926b6b=['36IuqlTW','string','setGridEmphasizedConfigTabDefaultValues','bind','tLabel','viewEmphasizedData','2117478qOcXyN','keys','fontColor','row-emphasized-grist','#row-emphasized-grist','font-color','button','7fANMFv','backgroundColor','527426lGYXPb','map','renderGridEmphasizedConfigTab','1802008XrUhhS','emphasizedConfigTabRowEmphasizedGrist','rank','#column-emphasized-grist','left','5WQLSoD','columnEmphasizedData','2288824yERiag','2QoqrAQ','logic','rowEmphasizedConfig','emphasizedConfigTabColumnEmphasizedGrist','code-input','right','querySelector','614648xbsvhG','81gEQokp','delete','column-emphasized-grist','setGridEmphasizedConfigTabConfig','columnEmphasizedConfig','getGridEmphasizedConfigTabValues','sortRecordByRank','fetchColumnEmphasized','column','background-color','GRID','gutter','getGristSelectableConfig','rowEmphasizedData','grid_column_emphasized_config','integer','58553ANPkWY','21849ZXpfeK','140xynzSy','push','fetch','setGridEmphasizedConfigTabValues','forEach','fetchRowEmphasized','getElementValueById','deleteRow','shadowRoot'];a0_0x4d52=function(){return _0x926b6b;};return a0_0x4d52();}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x30edf4=>class extends _0x30edf4{[a0_0x562ad3(0x161)](_0x4e6f56){const _0x35c7ba=a0_0x562ad3;if(_0x4e6f56){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x55c698=0x1;this[_0x35c7ba(0x16c)][_0x35c7ba(0x196)]=(_0x4e6f56['row']||[])[_0x35c7ba(0x177)](_0x184c50=>({'id':_0x55c698,'rank':_0x55c698++,'backgroundColor':_0x184c50[_0x35c7ba(0x175)]||'','fontColor':_0x184c50[_0x35c7ba(0x16f)]||'','logic':_0x184c50[_0x35c7ba(0x182)]||''})),_0x55c698=0x1;let _0x5773f8=_0x4e6f56[_0x35c7ba(0x191)]||[];Object[_0x35c7ba(0x16e)](_0x5773f8)[_0x35c7ba(0x162)](_0x271a53=>{let _0x3ddf5a=_0x5773f8[_0x271a53]||[],_0xb610c2=0x1;_0x3ddf5a['forEach'](_0x1b0a68=>{const _0x4894ef=a0_0x4b15;this['viewEmphasizedData'][_0x4894ef(0x17f)][_0x4894ef(0x15f)]({'id':_0x55c698++,'rank':_0xb610c2++,'column':_0x271a53,'backgroundColor':_0x1b0a68[_0x4894ef(0x175)]||'','fontColor':_0x1b0a68['fontColor']||'','logic':_0x1b0a68['logic']||''});});}),this[_0x35c7ba(0x184)]?.['fetch'](),this[_0x35c7ba(0x17a)]?.[_0x35c7ba(0x160)]();}else this['setGridEmphasizedConfigTabDefaultValues']();}[a0_0x562ad3(0x18e)](){const _0x5afbe0=a0_0x562ad3;let _0x39fe02=this[_0x5afbe0(0x164)](_0x5afbe0(0x170)),_0x51a966=this[_0x5afbe0(0x164)](_0x5afbe0(0x18b)),_0x517f41=[];this[_0x5afbe0(0x18f)](_0x39fe02)?.[_0x5afbe0(0x162)](_0x2026a0=>{const _0xc59153=_0x5afbe0;_0x517f41[_0xc59153(0x15f)]({'backgroundColor':_0x2026a0[_0xc59153(0x175)],'fontColor':_0x2026a0[_0xc59153(0x16f)],'logic':_0x2026a0[_0xc59153(0x182)]});});let _0x32e369={};return this[_0x5afbe0(0x18f)](_0x51a966)?.[_0x5afbe0(0x162)](_0x6e0815=>{const _0x1395b2=_0x5afbe0;_0x32e369[_0x6e0815[_0x1395b2(0x191)]]||(_0x32e369[_0x6e0815['column']]=[]),_0x32e369[_0x6e0815[_0x1395b2(0x191)]][_0x1395b2(0x15f)]({'backgroundColor':_0x6e0815[_0x1395b2(0x175)],'fontColor':_0x6e0815['fontColor'],'logic':_0x6e0815[_0x1395b2(0x182)]});}),{'gridEmphasized':{'row':_0x517f41||[],'column':_0x32e369||{}}};}get[a0_0x562ad3(0x17a)](){const _0x50773d=a0_0x562ad3;return this['shadowRoot'][_0x50773d(0x187)](_0x50773d(0x171));}get[a0_0x562ad3(0x184)](){const _0x395498=a0_0x562ad3;return this[_0x395498(0x166)][_0x395498(0x187)](_0x395498(0x17c));}[a0_0x562ad3(0x18c)](){const _0x86b2f4=a0_0x562ad3;this['rowEmphasizedConfig']={'rows':MetaApi[_0x86b2f4(0x195)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x86b2f4(0x194),'gutterName':'button','icon':'delete','handlers':{'click':(_0x2c5e6e,_0x40fc8c,_0x4db9bb,_0x12dbcb,_0x8b6d1e)=>{const _0xcdfc0c=_0x86b2f4;_0x12dbcb['id']&&this[_0xcdfc0c(0x165)](this[_0xcdfc0c(0x17a)],_0x12dbcb);}}},{'type':_0x86b2f4(0x168),'name':'id','hidden':!0x0},{'type':_0x86b2f4(0x198),'name':_0x86b2f4(0x17b),'header':TermsUtil['tLabel']('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x86b2f4(0x186),'editable':!0x0,'mandatory':!0x0}},{'type':_0x86b2f4(0x168),'name':_0x86b2f4(0x175),'header':TermsUtil[_0x86b2f4(0x16b)]('background-color'),'record':{'align':_0x86b2f4(0x17d),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'string','name':_0x86b2f4(0x16f),'header':TermsUtil[_0x86b2f4(0x16b)]('font-color'),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x86b2f4(0x185),'name':_0x86b2f4(0x182),'header':TermsUtil[_0x86b2f4(0x16b)](_0x86b2f4(0x182)),'record':{'align':_0x86b2f4(0x17d),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x86b2f4(0x195)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x86b2f4(0x194),'gutterName':_0x86b2f4(0x173),'icon':_0x86b2f4(0x18a),'handlers':{'click':(_0x28a767,_0x1b70ea,_0xb1d34d,_0x612dfe,_0x52e893)=>{const _0x49705a=_0x86b2f4;_0x612dfe['id']&&this[_0x49705a(0x165)](this[_0x49705a(0x184)],_0x612dfe);}}},{'type':_0x86b2f4(0x168),'name':'id','hidden':!0x0},{'type':_0x86b2f4(0x168),'name':'column','header':TermsUtil[_0x86b2f4(0x16b)]('column'),'record':{'align':_0x86b2f4(0x17d),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x86b2f4(0x198),'name':_0x86b2f4(0x17b),'header':TermsUtil['tLabel'](_0x86b2f4(0x17b)),'sortable':!0x0,'width':0x41,'record':{'align':_0x86b2f4(0x186),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x86b2f4(0x175),'header':TermsUtil['tLabel'](_0x86b2f4(0x192)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x86b2f4(0x168),'name':_0x86b2f4(0x16f),'header':TermsUtil[_0x86b2f4(0x16b)](_0x86b2f4(0x172)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x86b2f4(0x185),'name':_0x86b2f4(0x182),'header':TermsUtil[_0x86b2f4(0x16b)](_0x86b2f4(0x182)),'record':{'align':_0x86b2f4(0x17d),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}['setGridEmphasizedConfigTabDefaultValues'](){const _0x500fed=a0_0x562ad3;this[_0x500fed(0x16c)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x562ad3(0x178)](){const _0x33c143=a0_0x562ad3;return this[_0x33c143(0x169)](),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[_0x14dc91(0x1fa)]('grid_row_emphasized_config')}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x33c143(0x16b)]('grid_row_emphasized_config')}
6
6
  </h2>
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>
7
+ <ox-grist id="row-emphasized-grist" .config=${this[_0x33c143(0x183)]} .mode=${'GRID'} auto-fetch
8
+ .fetchHandler=${this['fetchRowEmphasized']['bind'](this)}></ox-grist>
9
9
  </div>
10
10
  <div field >
11
11
  <h2>
12
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x14dc91(0x1fa)](_0x14dc91(0x20e))}
12
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x33c143(0x16b)](_0x33c143(0x197))}
13
13
  </h2>
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>
14
+ <ox-grist id="column-emphasized-grist" .config=${this[_0x33c143(0x18d)]} .mode=${_0x33c143(0x193)} auto-fetch
15
+ .fetchHandler=${this[_0x33c143(0x190)][_0x33c143(0x16a)](this)}></ox-grist>
16
16
  </div>
17
17
  </div>
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();}
18
+ `;}async[a0_0x562ad3(0x163)](){const _0x234edf=a0_0x562ad3;return{'records':this[_0x234edf(0x16c)][_0x234edf(0x196)],'total':0x0};}async[a0_0x562ad3(0x190)](){const _0x466ab4=a0_0x562ad3;return{'records':this[_0x466ab4(0x16c)][_0x466ab4(0x17f)],'total':0x0};}};
@@ -1,29 +1,29 @@
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`
1
+ const a0_0x453a38=a0_0x20c8;(function(_0x1f7977,_0x170a41){const _0x15e19b=a0_0x20c8,_0x33b3c6=_0x1f7977();while(!![]){try{const _0x3ef096=-parseInt(_0x15e19b(0x1b8))/0x1*(parseInt(_0x15e19b(0x1cc))/0x2)+parseInt(_0x15e19b(0x1ce))/0x3*(parseInt(_0x15e19b(0x1cf))/0x4)+parseInt(_0x15e19b(0x1d1))/0x5+parseInt(_0x15e19b(0x1c0))/0x6+-parseInt(_0x15e19b(0x1c9))/0x7*(parseInt(_0x15e19b(0x1d0))/0x8)+parseInt(_0x15e19b(0x1c5))/0x9*(parseInt(_0x15e19b(0x1bf))/0xa)+-parseInt(_0x15e19b(0x1bc))/0xb;if(_0x3ef096===_0x170a41)break;else _0x33b3c6['push'](_0x33b3c6['shift']());}catch(_0x7332c0){_0x33b3c6['push'](_0x33b3c6['shift']());}}}(a0_0x1ed6,0x1a828));function a0_0x1ed6(){const _0x335c80=['750lbubFN','317394KFpumJ','menu','menu_name_field','tLabel','name','20187ZXlNtq','viewMenuData','help','tTitle','2037hvVdBg','desc','setMenuConfigTabValues','29506seviwx','getElementById','16302ShdVUN','112hfPLUd','4232KEALFr','902385QMeHYt','description','menuTitleChange','value','menu_desc_field','display','title','7egntAV','renderMenuConfigTab','getElementValueById','setMenuConfigTabDefaultValue','2067549ZZjfug','help_doc','getMenuConfigTabValues'];a0_0x1ed6=function(){return _0x335c80;};return a0_0x1ed6();}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x20c8(_0x18adcb,_0x4f2fab){const _0x1ed656=a0_0x1ed6();return a0_0x20c8=function(_0x20c839,_0x39ae4a){_0x20c839=_0x20c839-0x1b5;let _0x5ec09f=_0x1ed656[_0x20c839];return _0x5ec09f;},a0_0x20c8(_0x18adcb,_0x4f2fab);}export const MenuConfigTabMixin=_0x31662e=>class extends _0x31662e{[a0_0x453a38(0x1cb)](_0x5d5487){const _0x48a22a=a0_0x453a38;if(_0x5d5487){var {title:_0x2e64b6='',name:_0x5c113f='',desc:_0x3137a5='',help:_0x1ab6ea=''}=_0x5d5487||{};this[_0x48a22a(0x1c6)]={'title':_0x2e64b6,'name':_0x5c113f,'desc':_0x3137a5,'help_doc':_0x1ab6ea},this[_0x48a22a(0x1cd)](_0x48a22a(0x1b7))['value']=_0x2e64b6,this[_0x48a22a(0x1cd)]('name')[_0x48a22a(0x1d4)]=_0x5c113f,this[_0x48a22a(0x1cd)](_0x48a22a(0x1ca))[_0x48a22a(0x1d4)]=_0x3137a5,this['getElementById'](_0x48a22a(0x1bd))[_0x48a22a(0x1d4)]=_0x1ab6ea;}else this['setMenuConfigTabDefaultValue']();}[a0_0x453a38(0x1be)](){const _0x3a6cbb=a0_0x453a38;let _0x36bd50={'menu':{}},_0x236107=this[_0x3a6cbb(0x1ba)](_0x3a6cbb(0x1b7)),_0x4819df=this[_0x3a6cbb(0x1ba)](_0x3a6cbb(0x1c4)),_0x1788e2=this['getElementValueById']('desc'),_0x2727e5=this[_0x3a6cbb(0x1ba)](_0x3a6cbb(0x1bd));return _0x236107&&(_0x36bd50[_0x3a6cbb(0x1c1)][_0x3a6cbb(0x1b7)]=_0x236107),_0x4819df&&(_0x36bd50[_0x3a6cbb(0x1c1)]['name']=_0x4819df),_0x1788e2&&(_0x36bd50[_0x3a6cbb(0x1c1)][_0x3a6cbb(0x1ca)]=_0x1788e2),_0x2727e5&&(_0x36bd50[_0x3a6cbb(0x1c1)][_0x3a6cbb(0x1c7)]=_0x2727e5),_0x36bd50;}[a0_0x453a38(0x1bb)](){const _0x381001=a0_0x453a38;this['viewMenuData']||(this[_0x381001(0x1c6)]={'title':'','name':'name','desc':_0x381001(0x1d2),'help_doc':''});}['menuTitleChange'](_0x4b7e32){const _0x2630f2=a0_0x453a38;let _0x1c4ec0=this[_0x2630f2(0x1cd)](_0x2630f2(0x1b6));_0x1c4ec0&&(_0x1c4ec0[_0x2630f2(0x1d4)]=TermsUtil[_0x2630f2(0x1c8)](_0x4b7e32['target'][_0x2630f2(0x1d4)]));}[a0_0x453a38(0x1b9)](){const _0x208cab=a0_0x453a38;return this[_0x208cab(0x1bb)](),html`
2
2
  <div field-2column>
3
3
  <div field>
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)}/>
4
+ <label>${TermsUtil[_0x208cab(0x1c3)]('menu_title')}
5
+ <input id="title" name="title" type="text" value=${this['viewMenuData'][_0x208cab(0x1b7)]} @change=${_0x5e77df=>this[_0x208cab(0x1d3)](_0x5e77df)}/>
6
6
  </label>
7
7
  </div>
8
8
  <div field>
9
- <label>${TermsUtil['tLabel'](_0x2ebf7e(0x1fe))}
10
- <input id="display" name="display" value=${TermsUtil['tTitle'](this['viewMenuData']['title'])} type="text" readonly
9
+ <label>${TermsUtil[_0x208cab(0x1c3)](_0x208cab(0x1b6))}
10
+ <input id="display" name="display" value=${TermsUtil[_0x208cab(0x1c8)](this[_0x208cab(0x1c6)]['title'])} type="text" readonly
11
11
  disabled />
12
12
  </label>
13
13
  </div>
14
14
  <div field>
15
- <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1f3))}
16
- <input id="name" name="name" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1fc)]} />
15
+ <label>${TermsUtil[_0x208cab(0x1c3)](_0x208cab(0x1c2))}
16
+ <input id="name" name="name" type="text" value=${this['viewMenuData'][_0x208cab(0x1c4)]} />
17
17
  </label>
18
18
  </div>
19
19
  <div field>
20
- <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1fd))}
21
- <input id="desc" name="desc" type="text" value=${this['viewMenuData']['desc']} />
20
+ <label>${TermsUtil['tLabel'](_0x208cab(0x1b5))}
21
+ <input id="desc" name="desc" type="text" value=${this[_0x208cab(0x1c6)][_0x208cab(0x1ca)]} />
22
22
  </label>
23
23
  </div>
24
24
  <div field>
25
- <label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1ef))}
26
- <input id="help_doc" name="help_doc" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1ef)]} />
25
+ <label>${TermsUtil[_0x208cab(0x1c3)](_0x208cab(0x1bd))}
26
+ <input id="help_doc" name="help_doc" type="text" value=${this[_0x208cab(0x1c6)]['help_doc']} />
27
27
  </label>
28
28
  </div>
29
29
  </div>
@@ -1,4 +1,4 @@
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`
1
+ const a0_0x166bcd=a0_0x4a7c;(function(_0x6a5df8,_0x324355){const _0x3ca3ac=a0_0x4a7c,_0x3b70cc=_0x6a5df8();while(!![]){try{const _0x3c8090=parseInt(_0x3ca3ac(0xd2))/0x1*(-parseInt(_0x3ca3ac(0x82))/0x2)+parseInt(_0x3ca3ac(0x78))/0x3+parseInt(_0x3ca3ac(0xb7))/0x4*(-parseInt(_0x3ca3ac(0xbe))/0x5)+parseInt(_0x3ca3ac(0xaf))/0x6*(-parseInt(_0x3ca3ac(0x77))/0x7)+parseInt(_0x3ca3ac(0xdb))/0x8*(-parseInt(_0x3ca3ac(0x80))/0x9)+-parseInt(_0x3ca3ac(0x87))/0xa+parseInt(_0x3ca3ac(0xd3))/0xb*(parseInt(_0x3ca3ac(0xa8))/0xc);if(_0x3c8090===_0x324355)break;else _0x3b70cc['push'](_0x3b70cc['shift']());}catch(_0x31a074){_0x3b70cc['push'](_0x3b70cc['shift']());}}}(a0_0xa0cc,0x35dd1));import a0_0x1e51e6 from'graphql-tag';import{html,css}from'lit-element';function a0_0x4a7c(_0xad5bd7,_0x353f56){const _0xa0cccc=a0_0xa0cc();return a0_0x4a7c=function(_0x4a7c10,_0x35137c){_0x4a7c10=_0x4a7c10-0x73;let _0x4dec3c=_0xa0cccc[_0x4a7c10];return _0x4dec3c;},a0_0x4a7c(_0xad5bd7,_0x353f56);}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';function a0_0xa0cc(){const _0x37c5e7=['slice','ConfigTabValues','records','meta_generator','sort_rank','lifecycle','hidden','convertFirstCharUpperCase','160454FTiQRm','500250JlPGOQ','rank','properties','stringify','list','tabData','option','query','63trvnxj','back','108986FcCOSa','dec','display:none','search_config','name','2657380cDVPGT','select','ox-input-code','detail_field','menuId','meta-generator-page','includes','operatoTools','currentTabKey','sort','push','menuName','etc_config','grid_config','toUpperCase','details',':checked','grid-','ConfigTab','graphql','grid_emphasized_config','refresh','tagName','length','querySelector','shadowRoot','error','bind','backToMenu','errors','define','thumbnail','sorters','7347144zfkyCJ','pageInitialized','form_config','studioPermission','gridEmphasized','render','column_config','18vMCSny','tLabel','graphql_config','set','deleteRow','pageUpdated','filter','getElementById','16caBTdJ','charAt','options','map','icon','template','form','68765doLsdQ','updateMultiple','findOne','tButton','error.invalid\x20license\x20key','save','active','remove','desc','forEach','selectedIndex','getConfigTab','column','initData','grid','search','data','radio','keys','dataStorage','2FkJXAK','11GKQiFR','ConfigTabConfig','setTabData','style','parse','button','sortRecordByField','type','68440fFKGVf','filters','menu','enc','toLowerCase','dirtyData','metaTemplate','updateMultipleMenu','clear','value'];a0_0xa0cc=function(){return _0x37c5e7;};return a0_0xa0cc();}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['styles'](){return[css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -141,24 +141,24 @@ function a0_0x575f(_0x4f457f,_0x52640a){const _0xea9484=a0_0xea94();return a0_0x
141
141
  flex: 1;
142
142
  }
143
143
 
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`
144
+ `];}static get[a0_0x166bcd(0x7a)](){return{'menuId':String,'menuName':String,'metaTemplate':Object,'currentTabKey':String,'tabData':Object,'dataStorage':Object,'viewMenuData':Object,'afterSetFieldsConfig':Object,'skipFieldsConfig':Object,'viewGraphqlData':Object,'gridPageOptions':Array,'gridViewModes':Array,'viewGridData':Object,'columnTabGridConfig':Object,'viewColumnData':Array,'buttonTabGridConfig':Object,'viewButtonData':Array,'searchTabGridConfig':Object,'viewSearchData':Array};}get['context'](){const _0x3e8c5b=a0_0x166bcd;return{'title':TermsUtil['tTitle'](_0x3e8c5b(0xe8)),'actions':[{'title':TermsUtil[_0x3e8c5b(0xc1)](_0x3e8c5b(0xc3)),'action':this[_0x3e8c5b(0xc3)]['bind'](this),...CommonButtonStyles[_0x3e8c5b(0xc3)]},{'title':TermsUtil['tButton'](_0x3e8c5b(0x81)),'action':this[_0x3e8c5b(0xa3)][_0x3e8c5b(0xa2)](this),...CommonButtonStyles[_0x3e8c5b(0x81)]},{'title':TermsUtil[_0x3e8c5b(0xc1)]('refresh'),'action':this[_0x3e8c5b(0x9c)][_0x3e8c5b(0xa2)](this),...CommonButtonStyles[_0x3e8c5b(0x9c)]}]};}[a0_0x166bcd(0xb3)](_0x58516c,_0x5b88d3){const _0x55fe06=a0_0x166bcd;let _0x3b5e5b=_0x58516c[_0x55fe06(0xe0)];_0x3b5e5b[_0x55fe06(0xe7)]=_0x3b5e5b['records'][_0x55fe06(0xb5)](_0x32f39c=>_0x32f39c['id']!=_0x5b88d3['id']),_0x58516c[_0x55fe06(0xce)]=_0x3b5e5b;}async[a0_0x166bcd(0xc3)](){const _0xdf7fc2=a0_0x166bcd;if(0x0==store['getState']()[_0xdf7fc2(0x8e)][_0xdf7fc2(0xab)])return void document['dispatchEvent'](new CustomEvent('notify',{'detail':{'level':_0xdf7fc2(0xa1),'message':i18next['t'](_0xdf7fc2(0xc2))}}));if((await client[_0xdf7fc2(0x7f)]({'query':a0_0x1e51e6`
145
145
  query ($id: String!) {
146
146
  studioTemplateIsOverLimit(id: $id)
147
147
  }
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>
148
+ `,'variables':{'id':this[_0xdf7fc2(0x8b)]}}))[_0xdf7fc2(0xa4)])return;let _0x318b50={},_0x47a7aa={};Object['keys'](this[_0xdf7fc2(0x7d)])[_0xdf7fc2(0xc7)](_0x5262b5=>{const _0x16b356=_0xdf7fc2;let _0xd4ae88=this[_0x16b356(0x76)](_0x5262b5);_0x318b50[_0x5262b5]=this['get'+_0xd4ae88+_0x16b356(0xe6)](),_0x47a7aa=merge(_0x47a7aa,_0x318b50[_0x5262b5]);}),_0x47a7aa=JSON[_0xdf7fc2(0x7b)](_0x47a7aa),_0x47a7aa=MetaCrypto[_0xdf7fc2(0xde)](_0x47a7aa),await MetaApi[_0xdf7fc2(0xbf)](_0xdf7fc2(0xe2),[{'id':this[_0xdf7fc2(0x8b)],'template':_0x47a7aa,'cuFlag':'M'}])&&await this[_0xdf7fc2(0xcb)]();}[a0_0x166bcd(0xe3)](){const _0x850fe6=a0_0x166bcd;this[_0x850fe6(0xd5)](),this[_0x850fe6(0xd1)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x850fe6(0xd0)](this['tabData'])[_0x850fe6(0xc7)](_0x482d07=>{const _0x2da9ff=_0x850fe6;let _0x366f5f=this['convertFirstCharUpperCase'](_0x482d07);if(this[_0x2da9ff(0xb2)+_0x366f5f+_0x2da9ff(0xe6)])return this[_0x2da9ff(0xb2)+_0x366f5f+'ConfigTabValues'](this[_0x2da9ff(0xd1)][_0x482d07]);});}async[a0_0x166bcd(0x9c)](){const _0x387547=a0_0x166bcd;this[_0x387547(0xe3)](),await this[_0x387547(0xcb)]();}['backToMenu'](){const _0x27e18e=a0_0x166bcd;history[_0x27e18e(0x81)]();}async[a0_0x166bcd(0xcb)](){const _0x376293=a0_0x166bcd;var {menuId:_0x3845f9=''}=this[_0x376293(0x74)]?.['params']?this[_0x376293(0x74)]['params']:{};if(this[_0x376293(0x8b)]=_0x3845f9,!_0x3845f9||''==_0x3845f9)return void this[_0x376293(0xe3)]();let _0x8c005b=await MetaApi[_0x376293(0xc0)](_0x376293(0xdd),_0x3845f9,'\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(_0x8c005b){try{JSON[_0x376293(0xd7)](MetaCrypto['dec'](_0x8c005b[_0x376293(0xbc)]));}catch(_0x28a37f){return;}this['menuName']=TermsUtil['tMenu'](_0x8c005b[_0x376293(0x86)]),this[_0x376293(0xe1)]=_0x8c005b[_0x376293(0xbc)]?JSON[_0x376293(0xd7)](MetaCrypto[_0x376293(0x83)](_0x8c005b[_0x376293(0xbc)])):{};var {menu:_0x5afee3={},gql:_0x1b4160={},button:_0x2468aa=[],grid_column:_0xd24a5b=[],grid:_0x4fd2f8={},search:_0x86a34d=[],form:_0xbb026f=[],tab:_0x33dbcf=[],etc:_0x683177={},gridEmphasized:_0x38a586=[]}=this[_0x376293(0xe1)]?this[_0x376293(0xe1)]:{};this['setTabData'](),this[_0x376293(0xd1)]={},this['dataStorage'][_0x376293(0xdd)]=_0x5afee3,this[_0x376293(0xd1)][_0x376293(0x9a)]=_0x1b4160,this[_0x376293(0xd1)][_0x376293(0xcc)]=_0x4fd2f8,this['dataStorage'][_0x376293(0xbd)]=_0xbb026f,this[_0x376293(0xd1)]['tab']=_0x33dbcf,this['dataStorage']['etc']=_0x683177,this[_0x376293(0xd1)][_0x376293(0xac)]=_0x38a586,(_0x4fd2f8[_0x376293(0x7e)]?.['sorters']||[])['forEach']((_0x1ebfcf,_0x29c621)=>{const _0xf067bf=_0x376293;_0x1ebfcf[_0xf067bf(0x79)]=0xa*(_0x29c621+0x1);}),this['dataStorage'][_0x376293(0xca)]=_0xd24a5b['map'](_0x47b591=>{const _0xe7ec33=_0x376293;let _0x33c6e4=(_0x4fd2f8[_0xe7ec33(0x7e)]?.[_0xe7ec33(0xa7)]||[])[_0xe7ec33(0xb5)](_0x5258ee=>_0x5258ee['name']==_0x47b591[_0xe7ec33(0x86)]);return _0x33c6e4&&_0x33c6e4[_0xe7ec33(0x9e)]>0x0?(_0x47b591['sort_rank']=_0x33c6e4[0x0][_0xe7ec33(0x79)],_0x47b591['sort_desc']=!!_0x33c6e4[0x0][_0xe7ec33(0xc6)]&&_0x33c6e4[0x0][_0xe7ec33(0xc6)]):_0x47b591[_0xe7ec33(0x73)]=0x0,_0x47b591['rep_field']=(_0x4fd2f8[_0xe7ec33(0x7c)]?.['fields']||[])[_0xe7ec33(0x8d)](_0x47b591['name']),_0x47b591[_0xe7ec33(0x8a)]=(_0x4fd2f8[_0xe7ec33(0x7c)]?.[_0xe7ec33(0x96)]||[])['includes'](_0x47b591['name']),_0x47b591['thumbnail_field']=_0x4fd2f8[_0xe7ec33(0x7c)]?.[_0xe7ec33(0xa6)]==_0x47b591[_0xe7ec33(0x86)],_0x47b591;}),_0x86a34d[_0x376293(0x91)](...(_0x1b4160[_0x376293(0x7f)]?.[_0x376293(0xdc)]||[])['map'](_0x50a012=>(_0x50a012[_0x376293(0x75)]=!0x0,_0x50a012))),this[_0x376293(0xd1)][_0x376293(0xcd)]=_0x86a34d,_0x2468aa['push'](...(_0x4fd2f8[_0x376293(0xd8)]||[])[_0x376293(0xba)](_0x35f6ed=>(_0x35f6ed[_0x376293(0xda)]=_0x376293(0x98)+_0x35f6ed['type'],_0x35f6ed[_0x376293(0xd6)]=_0x35f6ed[_0x376293(0xbb)],_0x35f6ed))),this['dataStorage']['button']=_0x2468aa,Object[_0x376293(0xd0)](this[_0x376293(0x7d)])['forEach'](_0x1b88b2=>{const _0x46836e=_0x376293;let _0x112c8c=this['convertFirstCharUpperCase'](_0x1b88b2);if(this[_0x46836e(0xb2)+_0x112c8c+_0x46836e(0xe6)])return this[_0x46836e(0xb2)+_0x112c8c+_0x46836e(0xe6)](this[_0x46836e(0xd1)][_0x1b88b2]);});}}async[a0_0x166bcd(0xa9)](){const _0x451568=a0_0x166bcd;this['setTabData']();let _0x1e5059=Object[_0x451568(0xd0)](this[_0x451568(0x7d)]);for(var _0xfddb36=0x0;_0xfddb36<_0x1e5059[_0x451568(0x9e)];_0xfddb36++){let _0x905ca7=this['convertFirstCharUpperCase'](_0x1e5059[_0xfddb36]);this['set'+_0x905ca7+_0x451568(0xd4)]&&await this['set'+_0x905ca7+_0x451568(0xd4)]();}}async[a0_0x166bcd(0xb4)](_0x81347,_0x291b6a,_0x31c12d){const _0x100917=a0_0x166bcd;!0x0===this[_0x100917(0xc4)]?(this[_0x100917(0xd5)](),await this[_0x100917(0xcb)](),this[_0x100917(0xd5)]()):(this[_0x100917(0xe3)](),this[_0x100917(0xc5)]());}[a0_0x166bcd(0xd5)](){const _0x50adf2=a0_0x166bcd;this[_0x50adf2(0x7d)]||(this['tabData']={'menu':TermsUtil['tLabel']('menu_config'),'graphql':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0xb1)),'grid':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0x94)),'column':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0xae)),'gridEmphasized':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0x9b)),'button':TermsUtil[_0x50adf2(0xb0)]('button_config'),'search':TermsUtil['tLabel'](_0x50adf2(0x85)),'form':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0xaa)),'tab':TermsUtil[_0x50adf2(0xb0)]('tab_config'),'etc':TermsUtil[_0x50adf2(0xb0)](_0x50adf2(0x93))});}['render'](){const _0x12a32a=a0_0x166bcd;this['currentTabKey']||(this[_0x12a32a(0x8f)]='menu'),this[_0x12a32a(0xd5)]();let _0x5a57d6=Object[_0x12a32a(0xd0)](this['tabData']);return this[_0x12a32a(0x7d)][this['currentTabKey']]?this['currentTabKey']:_0x5a57d6[0x0],html`
149
+ <h1>${this[_0x12a32a(0x92)]}</h1>
150
150
  <div class="tabs">
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>
151
+ ${_0x5a57d6['map'](_0x5ccc56=>{const _0x51143a=_0x12a32a;let _0x2a0b87=this[_0x51143a(0x7d)][_0x5ccc56];return html`
152
+ <div class="tab" ?activate="${_0x5ccc56===this['currentTabKey']}" @click="${()=>this[_0x51143a(0x8f)]=_0x5ccc56}">
153
+ <span>${_0x2a0b87}</span>
154
154
  </div>
155
155
  `;})}
156
156
  </div>
157
157
  <div class="content-container">
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)}
158
+ ${_0x5a57d6[_0x12a32a(0xba)](_0x21305d=>{const _0x174ee3=_0x12a32a;let _0x11273d=_0x174ee3(0x84);return _0x21305d==this[_0x174ee3(0x8f)]&&(_0x11273d='display:flex'),html`
159
+ <div class='tab-contents' style="${_0x11273d}">
160
+ ${this[_0x174ee3(0xc9)](_0x21305d)}
161
161
  </div>
162
162
  `;})}
163
163
  </div>
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);
164
+ `;}[a0_0x166bcd(0xc9)](_0x521c7e){const _0x9fe27c=a0_0x166bcd;let _0x2d4052=this[_0x9fe27c(0x76)](_0x521c7e);return this['render'+_0x2d4052+_0x9fe27c(0x99)]?this[_0x9fe27c(0xad)+_0x2d4052+_0x9fe27c(0x99)]():html``;}['convertFirstCharUpperCase'](_0x2853a2){const _0x243a7d=a0_0x166bcd;return _0x2853a2[_0x243a7d(0xb8)](0x0)[_0x243a7d(0x95)]()+_0x2853a2[_0x243a7d(0xe5)](0x1);}[a0_0x166bcd(0xb6)](_0x5392fa){const _0x204dd0=a0_0x166bcd;return this[_0x204dd0(0xa0)][_0x204dd0(0x9f)]('#'+_0x5392fa);}['getElementValueById'](_0x2d75db){const _0x450231=a0_0x166bcd;let _0x55e2f8=this['shadowRoot'][_0x450231(0x9f)]('#'+_0x2d75db);if(!_0x55e2f8)return;let _0x2e665d='';if(_0x450231(0x88)==_0x55e2f8[_0x450231(0x9d)][_0x450231(0xdf)]()){if(!_0x55e2f8[_0x450231(0xb9)]||0x0==_0x55e2f8['options'][_0x450231(0x9e)])return;_0x2e665d=_0x55e2f8['options'][_0x55e2f8[_0x450231(0xc8)]][_0x450231(0xe4)];}else{if('ox-grist'==_0x55e2f8['tagName'][_0x450231(0xdf)]()){if(!_0x55e2f8[_0x450231(0xe0)])return;if(!_0x55e2f8['dirtyData']['records'])return;if(0x0==_0x55e2f8[_0x450231(0xe0)][_0x450231(0xe7)][_0x450231(0x9e)])return;return _0x55e2f8[_0x450231(0xe0)][_0x450231(0xe7)];}if(_0x450231(0x89)==_0x55e2f8[_0x450231(0x9d)]['toLowerCase']())return _0x55e2f8[_0x450231(0xe4)];if(_0x450231(0xcf)==_0x55e2f8[_0x450231(0xda)][_0x450231(0xdf)]()){let _0x254fbc=this['shadowRoot'][_0x450231(0x9f)]('#'+_0x2d75db+_0x450231(0x97));if(!_0x254fbc)return;return _0x254fbc[_0x450231(0xe4)];}_0x2e665d=_0x55e2f8[_0x450231(0xe4)];}return _0x2e665d&&''!=_0x2e665d?_0x2e665d:void 0x0;}['sortRecordByRank'](_0x5f1062){const _0x19316b=a0_0x166bcd;return _0x5f1062?this[_0x19316b(0xd9)](_0x5f1062,_0x19316b(0x79)):_0x5f1062;}[a0_0x166bcd(0xd9)](_0x41c7f3,_0x51029b){const _0x15ce72=a0_0x166bcd;return _0x41c7f3[_0x15ce72(0x90)]((_0x49524c,_0x590042)=>_0x49524c[_0x51029b]-_0x590042[_0x51029b]),_0x41c7f3;}}customElements[a0_0x166bcd(0xa5)](a0_0x166bcd(0x8c),MetaGeneratorPage);
@@ -1,4 +1,4 @@
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
+ const a0_0x217a23=a0_0x12c8;function a0_0x12c8(_0x129af2,_0x527af9){const _0x3f0461=a0_0x3f04();return a0_0x12c8=function(_0x12c835,_0x1bc757){_0x12c835=_0x12c835-0x1dc;let _0x5e687e=_0x3f0461[_0x12c835];return _0x5e687e;},a0_0x12c8(_0x129af2,_0x527af9);}(function(_0xbdbd6b,_0x3dca37){const _0x57d00c=a0_0x12c8,_0x40d843=_0xbdbd6b();while(!![]){try{const _0x3f34e4=parseInt(_0x57d00c(0x1e1))/0x1*(-parseInt(_0x57d00c(0x1f5))/0x2)+-parseInt(_0x57d00c(0x1e6))/0x3*(-parseInt(_0x57d00c(0x1eb))/0x4)+parseInt(_0x57d00c(0x209))/0x5+-parseInt(_0x57d00c(0x205))/0x6+parseInt(_0x57d00c(0x1ed))/0x7*(-parseInt(_0x57d00c(0x1f2))/0x8)+parseInt(_0x57d00c(0x1de))/0x9+-parseInt(_0x57d00c(0x200))/0xa;if(_0x3f34e4===_0x3dca37)break;else _0x40d843['push'](_0x40d843['shift']());}catch(_0x52a16b){_0x40d843['push'](_0x40d843['shift']());}}}(a0_0x3f04,0x1964a));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_0x3f04(){const _0x304950=['search-tab-grid','select','getGristGuttersConfig','fetchSearchTabHandler','bind','getSearchConfigTabValues','boolean','assign','1098477SHDekK','viewSearchData','search','3BIVDrh','query','name','getGristSelectableConfig','filters','5241BstvDM','querySelector','shadowRoot','forEach','operator','164PGfaVD','fetch','28HPxday','integer','rank','deleteRow','tLabel','62880gKnwpV','searchTabGrist','searchTabGridConfig','27890gExpTc','string','object','hidden','gutter','#search-tab-grid','gql','left','renderSearchConfigTab','map','center','1138850wOXLFO','push','getCodeSelectorData','value','filter','412794XpolrX','setSearchConfigTabValues','search_operator','delete','831445wcSRoq'];a0_0x3f04=function(){return _0x304950;};return a0_0x3f04();}export const SearchConfigTabMixin=_0x3067ed=>class extends _0x3067ed{[a0_0x217a23(0x206)](_0x10e439){const _0x498b6c=a0_0x217a23;let _0x99cdad=_0x10e439?.[_0x498b6c(0x1fe)]((_0x3edffd,_0x59726b)=>{const _0x4abc15=_0x498b6c;let _0x5bf021=_0x59726b+0x1,_0x2bafd7={};return _0x4abc15(0x1f7)==typeof _0x3edffd?Object[_0x4abc15(0x1dd)](_0x2bafd7,_0x3edffd):(_0x2bafd7['name']=_0x3edffd,_0x2bafd7[_0x4abc15(0x1ea)]='filter'),_0x2bafd7[_0x4abc15(0x1ef)]=0xa*_0x5bf021,_0x2bafd7['id']=_0x5bf021,_0x2bafd7;});this['viewSearchData']=_0x99cdad||[],this[_0x498b6c(0x1f3)]?.[_0x498b6c(0x1ec)]();}[a0_0x217a23(0x20f)](){const _0x3c05bf=a0_0x217a23;let _0x1bc8ca={'search':[],'gql':{'query':{'filters':[]}}},_0x45304b=this['getElementValueById'](_0x3c05bf(0x20a));return this['sortRecordByRank'](_0x45304b)?.[_0x3c05bf(0x1e9)](_0x212d56=>{const _0x2eec8c=_0x3c05bf;var {name:_0x4050bc,operator:_0x1c1e4b='eq',hidden:_0x4e3248=!0x1,value:_0x385bdb}=_0x212d56;if(_0x4050bc){if(_0x2eec8c(0x204)==_0x1c1e4b)_0x1bc8ca[_0x2eec8c(0x1e0)][_0x2eec8c(0x201)](_0x4050bc);else{let _0x35a04f={'name':_0x4050bc,'operator':_0x1c1e4b};0x1==_0x4e3248?(_0x35a04f[_0x2eec8c(0x203)]=_0x385bdb,_0x1bc8ca[_0x2eec8c(0x1fb)][_0x2eec8c(0x1e2)][_0x2eec8c(0x1e5)]['push'](_0x35a04f)):(_0x35a04f['value']=_0x385bdb,_0x1bc8ca['search'][_0x2eec8c(0x201)](_0x35a04f));}}}),_0x1bc8ca;}[a0_0x217a23(0x1fd)](){const _0x48d0c7=a0_0x217a23;return html`
2
+ <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x48d0c7(0x1f4)]} .mode='GRID'
3
+ .fetchHandler=${this[_0x48d0c7(0x20d)][_0x48d0c7(0x20e)](this)}>
4
+ </ox-grist>`;}get[a0_0x217a23(0x1f3)](){const _0x383959=a0_0x217a23;return this[_0x383959(0x1e8)][_0x383959(0x1e7)](_0x383959(0x1fa));}async['fetchSearchTabHandler'](){const _0x2cff6b=a0_0x217a23;return{'total':0x0,'records':this[_0x2cff6b(0x1df)]||[]};}async['setSearchConfigTabConfig'](){const _0x5254e3=a0_0x217a23;let _0x44344d=await MetaApi[_0x5254e3(0x202)]('FILTER_OPERATORS');this[_0x5254e3(0x1f4)]={'rows':MetaApi[_0x5254e3(0x1e4)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x5254e3(0x20c)](!0x1,!0x1),{'type':_0x5254e3(0x1f9),'gutterName':'button','icon':_0x5254e3(0x208),'handlers':{'click':(_0x4ddd22,_0x284000,_0x501de8,_0x5d7636,_0x5e853b)=>{const _0x4ef42b=_0x5254e3;_0x5d7636['id']&&this[_0x4ef42b(0x1f0)](this[_0x4ef42b(0x1f3)],_0x5d7636);}}},{'type':_0x5254e3(0x1f6),'name':'id','hidden':!0x0},{'type':_0x5254e3(0x1ee),'name':_0x5254e3(0x1ef),'header':TermsUtil[_0x5254e3(0x1f1)](_0x5254e3(0x1ef)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x5254e3(0x1f6),'name':_0x5254e3(0x1e3),'header':TermsUtil['tLabel'](_0x5254e3(0x1e3)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x5254e3(0x1fc),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5254e3(0x20b),'name':_0x5254e3(0x1ea),'header':TermsUtil[_0x5254e3(0x1f1)](_0x5254e3(0x207)),'sortable':!0x1,'width':0x64,'record':{'align':_0x5254e3(0x1fc),'editable':!0x0,'mandatory':!0x1,'options':_0x44344d}},{'type':_0x5254e3(0x1dc),'name':_0x5254e3(0x1f8),'header':TermsUtil['tLabel'](_0x5254e3(0x1f8)),'sortable':!0x1,'width':0x41,'record':{'align':_0x5254e3(0x1ff),'mandatory':!0x1,'editable':!0x0}},{'type':_0x5254e3(0x1f6),'name':_0x5254e3(0x203),'header':TermsUtil[_0x5254e3(0x1f1)]('default_value'),'sortable':!0x1,'width':0xc8,'record':{'align':_0x5254e3(0x1fc),'editable':!0x0,'mandatory':!0x1}}]};}};
@@ -1,4 +1,4 @@
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}}]};}};
1
+ function a0_0x5a3a(){const _0x560ffe=['43375581BmnRTx','routing','fetch','location','6FntdUB','tLabel','delete','tabTabGridConfig','tabTabGrist','renderTabConfigTab','3ybAxTh','string','setTabConfigTabConfig','display','1784852NxEaOK','tab','3532820ANoCId','getTabConfigTabValues','param_field','fetchTabTabHandler','bind','getGristGuttersConfig','params','querySelector','tagname','getGristSelectableConfig','viewTabData','button','center','left','2301210ieSIoA','897468VPqRpe','setTabConfigTabValues','icon','7877107IqkvFl','menu','gutter','922936LiszgF','integer','parent_field','rank','map','getElementValueById','deleteRow','name','sortRecordByRank'];a0_0x5a3a=function(){return _0x560ffe;};return a0_0x5a3a();}const a0_0x9ed0e8=a0_0x11be;function a0_0x11be(_0x42ef83,_0x280c89){const _0x5a3a31=a0_0x5a3a();return a0_0x11be=function(_0x11be64,_0x348838){_0x11be64=_0x11be64-0x117;let _0x48ca67=_0x5a3a31[_0x11be64];return _0x48ca67;},a0_0x11be(_0x42ef83,_0x280c89);}(function(_0x254df0,_0x2d19cc){const _0x472025=a0_0x11be,_0x56500b=_0x254df0();while(!![]){try{const _0xf02ed8=-parseInt(_0x472025(0x12b))/0x1+-parseInt(_0x472025(0x12a))/0x2+-parseInt(_0x472025(0x144))/0x3*(parseInt(_0x472025(0x11a))/0x4)+parseInt(_0x472025(0x11c))/0x5*(-parseInt(_0x472025(0x13e))/0x6)+-parseInt(_0x472025(0x12e))/0x7+parseInt(_0x472025(0x131))/0x8+parseInt(_0x472025(0x13a))/0x9;if(_0xf02ed8===_0x2d19cc)break;else _0x56500b['push'](_0x56500b['shift']());}catch(_0x487eee){_0x56500b['push'](_0x56500b['shift']());}}}(a0_0x5a3a,0x949d5));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 TabConfigTabMixin=_0x2ac605=>class extends _0x2ac605{[a0_0x9ed0e8(0x12c)](_0x44adb6){const _0x457ec3=a0_0x9ed0e8;let _0x6f2349=_0x44adb6?.[_0x457ec3(0x135)]((_0x1a0d31,_0x4dd2bb)=>{const _0x59a9be=_0x457ec3;let _0x2eaf6a=_0x4dd2bb+0x1,_0x1dffbb={};return _0x1dffbb[_0x59a9be(0x134)]=0xa*_0x2eaf6a,_0x1dffbb['id']=_0x2eaf6a,_0x1dffbb[_0x59a9be(0x138)]=_0x1a0d31['name'],_0x1dffbb[_0x59a9be(0x119)]=_0x1a0d31[_0x59a9be(0x119)],_0x1dffbb[_0x59a9be(0x124)]=_0x1a0d31['tagname'],_0x1dffbb[_0x59a9be(0x12d)]=_0x1a0d31[_0x59a9be(0x12d)],_0x1dffbb['location']=_0x1a0d31['location'],_0x1dffbb[_0x59a9be(0x133)]=_0x1a0d31[_0x59a9be(0x133)],_0x1dffbb[_0x59a9be(0x11e)]=_0x1a0d31['param_field'],_0x1dffbb[_0x59a9be(0x12f)]=_0x1a0d31['menu'],_0x1dffbb;});this[_0x457ec3(0x126)]=_0x6f2349||[],this[_0x457ec3(0x142)]?.[_0x457ec3(0x13c)]();}[a0_0x9ed0e8(0x11d)](){const _0x3fe890=a0_0x9ed0e8;let _0x21ffff={'tab':[]},_0x368a2a=this[_0x3fe890(0x136)]('tab-tab-grid');return this[_0x3fe890(0x139)](_0x368a2a)?.['forEach'](_0x3eeff7=>{const _0x44f00f=_0x3fe890;var {name:_0xbdc72,display:_0x4f057c,tagname:_0x2733f2,location:_0x33e7d5,parent_field:_0x4dceb3,param_field:_0x483b19,menu:_0x5a7ec7,icon:_0x588f5f}=_0x3eeff7;_0xbdc72&&_0x2733f2&&_0x33e7d5&&_0x5a7ec7&&(_0x4f057c||(_0x4f057c=_0xbdc72),_0x4dceb3||(_0x4dceb3='id'),_0x483b19||(_0x483b19=_0x44f00f(0x11e)),_0x21ffff[_0x44f00f(0x11b)]['push']({'name':_0xbdc72,'display':_0x4f057c,'tagname':_0x2733f2,'location':_0x33e7d5,'parent_field':_0x4dceb3,'param_field':_0x483b19,'menu':_0x5a7ec7,'icon':_0x588f5f}));}),_0x21ffff;}[a0_0x9ed0e8(0x143)](){const _0x560fbb=a0_0x9ed0e8;return html`
2
+ <ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x560fbb(0x141)]} .mode='GRID'
3
+ .fetchHandler=${this[_0x560fbb(0x11f)][_0x560fbb(0x120)](this)}>
4
+ </ox-grist>`;}get[a0_0x9ed0e8(0x142)](){const _0x338933=a0_0x9ed0e8;return this['shadowRoot'][_0x338933(0x123)]('#tab-tab-grid');}async[a0_0x9ed0e8(0x11f)](){return{'total':0x0,'records':this['viewTabData']||[]};}async[a0_0x9ed0e8(0x118)](){const _0x1d38b0=a0_0x9ed0e8;this['tabTabGridConfig']={'rows':MetaApi[_0x1d38b0(0x125)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x1d38b0(0x134),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x1d38b0(0x121)](!0x1,!0x1),{'type':_0x1d38b0(0x130),'gutterName':_0x1d38b0(0x127),'icon':_0x1d38b0(0x140),'handlers':{'click':(_0x40e5ed,_0x3e78c4,_0x583578,_0x58681a,_0x4e91af)=>{const _0x2e50d7=_0x1d38b0;_0x58681a['id']&&this[_0x2e50d7(0x137)](this['tabTabGrist'],_0x58681a);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x1d38b0(0x132),'name':'rank','header':TermsUtil[_0x1d38b0(0x13f)](_0x1d38b0(0x134)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x138),'header':TermsUtil[_0x1d38b0(0x13f)]('name'),'sortable':!0x1,'width':0x64,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x119),'header':TermsUtil[_0x1d38b0(0x13f)](_0x1d38b0(0x119)),'sortable':!0x1,'width':0x64,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x12d),'header':TermsUtil['tLabel']('icon'),'sortable':!0x0,'width':0x41,'record':{'align':_0x1d38b0(0x128),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x12f),'header':TermsUtil[_0x1d38b0(0x13f)](_0x1d38b0(0x13b)),'sortable':!0x1,'width':0x64,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':'tagname','header':TermsUtil['tLabel']('tag'),'sortable':!0x1,'width':0x96,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x13d),'header':TermsUtil[_0x1d38b0(0x13f)]('page_location'),'sortable':!0x1,'width':0x12c,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x133),'header':TermsUtil[_0x1d38b0(0x13f)]('parent_id'),'sortable':!0x1,'width':0x64,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1d38b0(0x117),'name':_0x1d38b0(0x11e),'header':TermsUtil[_0x1d38b0(0x13f)](_0x1d38b0(0x122)),'sortable':!0x1,'width':0x64,'record':{'align':_0x1d38b0(0x129),'editable':!0x0,'mandatory':!0x0}}]};}};