@things-factory/operato-tools 6.1.48 → 6.1.49

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
- const a0_0x458dc4=a0_0x1f78;function a0_0x3d93(){const _0x10840c=['use_row_checker','toLowerCase','grid_mobile_view','getElementValueById','unlimited','option','CARD','list_view_use','description','2664660kUQinr','support','mobile_mode','_view_use','2lUmoVt','getGridConfigTabValues','6409400gMYNmy','desk_mode','unsupport','tLabel','GRID_PAGE_OPTIONS','grid_support_view','grid_term_1000','8019ELCJmH','1864ddlQgx','grid_term_default','gridViewModes','push','1911Mujhgq','78826hgGVeX','renderGridConfigTab','pages','grid_desk_view','grid','grid_use_row_check','use_filter_form','map','GRID','setGridConfigTabValues','grid_multi_select','955108luKBcX','grid_term_unlimited','grid_support_multi_select','setGridConfigTabDetaultValues','LIST','grid_pagination','268095FmUPHY','row','length','view_mode','use','GRID_VIEW_MODE','multiple_select','codeItems','unuse','name','viewGridData','true','21110tssuSG','grid_term_100'];a0_0x3d93=function(){return _0x10840c;};return a0_0x3d93();}(function(_0x25584d,_0x24374c){const _0x2de1a8=a0_0x1f78,_0x350129=_0x25584d();while(!![]){try{const _0x4e7447=-parseInt(_0x2de1a8(0xba))/0x1*(-parseInt(_0x2de1a8(0xab))/0x2)+parseInt(_0x2de1a8(0xb9))/0x3*(-parseInt(_0x2de1a8(0xb5))/0x4)+parseInt(_0x2de1a8(0xcb))/0x5+-parseInt(_0x2de1a8(0xa7))/0x6+parseInt(_0x2de1a8(0xc5))/0x7+-parseInt(_0x2de1a8(0xad))/0x8+parseInt(_0x2de1a8(0xb4))/0x9*(parseInt(_0x2de1a8(0xd7))/0xa);if(_0x4e7447===_0x24374c)break;else _0x350129['push'](_0x350129['shift']());}catch(_0x531d4b){_0x350129['push'](_0x350129['shift']());}}}(a0_0x3d93,0x945af));function a0_0x1f78(_0x1d6540,_0x1ad3d1){const _0x3d9355=a0_0x3d93();return a0_0x1f78=function(_0x1f78ce,_0x26b6f2){_0x1f78ce=_0x1f78ce-0xa6;let _0x363c22=_0x3d9355[_0x1f78ce];return _0x363c22;},a0_0x1f78(_0x1d6540,_0x1ad3d1);}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=_0x1790cc=>class extends _0x1790cc{[a0_0x458dc4(0xc3)](_0x165c61){const _0x118655=a0_0x458dc4;if(_0x165c61){var {mobile_mode:_0x2f120b='',desk_mode:_0x2a5078='',pages:_0x5d32e2=[],use_row_checker:_0x2a8291=!0x0,view_mode:_0x2c1326=[]}=_0x165c61[_0x118655(0xde)]||{};let _0x3405a9=(_0x165c61[_0x118655(0xcc)]||{'multiple_select':!0x1})['multiple_select'],_0x3d3529=_0x118655(0xdd)==_0x5d32e2?_0x118655(0xc6):0x0==_0x5d32e2[_0x118655(0xcd)]?'':0x14==_0x5d32e2[0x0]?_0x118655(0xb6):'grid_term_'+_0x5d32e2[0x0];this[_0x118655(0xd5)]={'mobile_mode':_0x2f120b,'desk_mode':_0x2a5078,'use_row_checker':_0x2a8291,'pages':_0x3d3529,'view_mode':_0x2c1326,'multiple_select':_0x3405a9,'use_filter_form':_0x165c61[_0x118655(0xc0)]};}else this[_0x118655(0xc8)]();}[a0_0x458dc4(0xac)](){const _0x2b746a=a0_0x458dc4;let _0x3b02ac={'grid':{'option':{},'row':{'click':'select-row-toggle'}}},_0x32f084=this[_0x2b746a(0xdc)]('grid_row_check_use'),_0x2ccc34=this[_0x2b746a(0xdc)](_0x2b746a(0xc4)),_0x57047d=this[_0x2b746a(0xdc)](_0x2b746a(0xbd)),_0x109613=this[_0x2b746a(0xdc)](_0x2b746a(0xdb)),_0x3311a0=this['getElementValueById']('grid_use_filter'),_0x2690d6=this[_0x2b746a(0xdc)](_0x2b746a(0xca)),_0x26de01=this[_0x2b746a(0xdc)]('grid_view_use'),_0x1b9560=this['getElementValueById'](_0x2b746a(0xe0)),_0x4b6155=this[_0x2b746a(0xdc)]('card_view_use');return _0x3b02ac[_0x2b746a(0xbe)][_0x2b746a(0xc0)]='true'==_0x3311a0,_0x3b02ac[_0x2b746a(0xbe)][_0x2b746a(0xcc)][_0x2b746a(0xd1)]=_0x2b746a(0xd6)==_0x2ccc34,_0x3b02ac['grid'][_0x2b746a(0xde)][_0x2b746a(0xd9)]=_0x2b746a(0xd6)==_0x32f084,_0x3b02ac[_0x2b746a(0xbe)]['option'][_0x2b746a(0xa9)]=_0x109613,_0x3b02ac['grid']['option'][_0x2b746a(0xae)]=_0x57047d,_0x2b746a(0xb6)==_0x2690d6?_0x3b02ac[_0x2b746a(0xbe)]['option']['pages']=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x2690d6?_0x3b02ac[_0x2b746a(0xbe)][_0x2b746a(0xde)][_0x2b746a(0xbc)]=[0x32,0x64,0x1f4,0x3e8]:_0x2b746a(0xd8)==_0x2690d6?_0x3b02ac[_0x2b746a(0xbe)]['option'][_0x2b746a(0xbc)]=[0x64,0x1f4,0x3e8,0x1388]:_0x2b746a(0xb3)==_0x2690d6?_0x3b02ac[_0x2b746a(0xbe)][_0x2b746a(0xde)][_0x2b746a(0xbc)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x2b746a(0xc6)==_0x2690d6&&(_0x3b02ac['grid'][_0x2b746a(0xde)][_0x2b746a(0xbc)]='unlimited'),_0x3b02ac[_0x2b746a(0xbe)][_0x2b746a(0xde)][_0x2b746a(0xce)]=[],_0x2b746a(0xd6)==_0x26de01&&_0x3b02ac['grid'][_0x2b746a(0xde)]['view_mode']['push']('GRID'),'true'==_0x1b9560&&_0x3b02ac[_0x2b746a(0xbe)]['option'][_0x2b746a(0xce)]['push'](_0x2b746a(0xc9)),'true'==_0x4b6155&&_0x3b02ac[_0x2b746a(0xbe)]['option']['view_mode'][_0x2b746a(0xb8)](_0x2b746a(0xdf)),_0x3b02ac;}async['setGridConfigTabConfig'](){const _0x173581=a0_0x458dc4;let _0x2d778f=await MetaApi[_0x173581(0xd2)](_0x173581(0xb1)),_0x42894d=await MetaApi[_0x173581(0xd2)](_0x173581(0xd0));this[_0x173581(0xb7)]=_0x42894d,this['gridPageOptions']=_0x2d778f;}[a0_0x458dc4(0xc8)](){const _0x187683=a0_0x458dc4;this[_0x187683(0xd5)]||(this['viewGridData']={'mobile_mode':this[_0x187683(0xb7)]?this[_0x187683(0xb7)][0x1]:_0x187683(0xc9),'desk_mode':this[_0x187683(0xb7)]?this['gridViewModes'][0x0]:'GRID','use_row_checker':!0x0,'pages':_0x187683(0xb6),'view_mode':[...this[_0x187683(0xb7)]?this['gridViewModes']:[_0x187683(0xc2),_0x187683(0xc9),'CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x458dc4(0xbb)](){const _0x5f0964=a0_0x458dc4;return this['setGridConfigTabDetaultValues'](),html`
1
+ const a0_0x2115a5=a0_0x34fd;(function(_0x458e3f,_0x497121){const _0x434c70=a0_0x34fd,_0x465c53=_0x458e3f();while(!![]){try{const _0x34a3bf=-parseInt(_0x434c70(0x92))/0x1+-parseInt(_0x434c70(0xc8))/0x2+parseInt(_0x434c70(0xbc))/0x3*(parseInt(_0x434c70(0xad))/0x4)+parseInt(_0x434c70(0xa2))/0x5*(-parseInt(_0x434c70(0xb7))/0x6)+-parseInt(_0x434c70(0x8f))/0x7*(-parseInt(_0x434c70(0x97))/0x8)+-parseInt(_0x434c70(0xab))/0x9+-parseInt(_0x434c70(0xa8))/0xa*(-parseInt(_0x434c70(0xaf))/0xb);if(_0x34a3bf===_0x497121)break;else _0x465c53['push'](_0x465c53['shift']());}catch(_0xdbb3b8){_0x465c53['push'](_0x465c53['shift']());}}}(a0_0x353d,0x4acc7));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x34fd(_0x1986e4,_0x115a2f){const _0x353d4a=a0_0x353d();return a0_0x34fd=function(_0x34fd2c,_0x25f3fc){_0x34fd2c=_0x34fd2c-0x8a;let _0x509f98=_0x353d4a[_0x34fd2c];return _0x509f98;},a0_0x34fd(_0x1986e4,_0x115a2f);}export const GridConfigTabMixin=_0xc385a3=>class extends _0xc385a3{[a0_0x2115a5(0xb5)](_0x11d432){const _0x379fb1=a0_0x2115a5;if(_0x11d432){var {mobile_mode:_0x410d10='',desk_mode:_0x54cd25='',pages:_0x42aca2=[],use_row_checker:_0x5b4328=!0x0,view_mode:_0x4e9eed=[]}=_0x11d432[_0x379fb1(0xc6)]||{};let _0x111378=(_0x11d432[_0x379fb1(0x95)]||{'multiple_select':!0x1})['multiple_select'],_0x20053c=_0x379fb1(0xca)==_0x42aca2?'grid_term_unlimited':0x0==_0x42aca2[_0x379fb1(0xbd)]?'':0x14==_0x42aca2[0x0]?_0x379fb1(0xc9):_0x379fb1(0xbe)+_0x42aca2[0x0];this[_0x379fb1(0xb1)]={'mobile_mode':_0x410d10,'desk_mode':_0x54cd25,'use_row_checker':_0x5b4328,'pages':_0x20053c,'view_mode':_0x4e9eed,'multiple_select':_0x111378,'use_filter_form':_0x11d432[_0x379fb1(0xbf)]};}else this[_0x379fb1(0xc4)]();}[a0_0x2115a5(0xb6)](){const _0x3cae14=a0_0x2115a5;let _0x3df151={'grid':{'option':{},'row':{'click':_0x3cae14(0x90)}}},_0x554517=this[_0x3cae14(0x8a)](_0x3cae14(0x8d)),_0x1c3d81=this[_0x3cae14(0x8a)](_0x3cae14(0x94)),_0xee6b69=this[_0x3cae14(0x8a)](_0x3cae14(0xae)),_0x119f66=this[_0x3cae14(0x8a)](_0x3cae14(0x96)),_0x45488f=this[_0x3cae14(0x8a)](_0x3cae14(0xa4)),_0x3b4d08=this[_0x3cae14(0x8a)]('grid_pagination'),_0x5e0598=this[_0x3cae14(0x8a)](_0x3cae14(0x8e)),_0x290acf=this[_0x3cae14(0x8a)]('list_view_use'),_0x1efac0=this[_0x3cae14(0x8a)](_0x3cae14(0xc1));return _0x3df151['grid'][_0x3cae14(0xbf)]=_0x3cae14(0xa3)==_0x45488f,_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0x95)][_0x3cae14(0x8c)]=_0x3cae14(0xa3)==_0x1c3d81,_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)]['use_row_checker']=_0x3cae14(0xa3)==_0x554517,_0x3df151[_0x3cae14(0xb4)]['option']['mobile_mode']=_0x119f66,_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0xbb)]=_0xee6b69,'grid_term_default'==_0x3b4d08?_0x3df151['grid']['option'][_0x3cae14(0x98)]=[0x14,0x1e,0x32,0x64]:_0x3cae14(0xb3)==_0x3b4d08?_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0x98)]=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x3b4d08?_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0x98)]=[0x64,0x1f4,0x3e8,0x1388]:_0x3cae14(0xb0)==_0x3b4d08?_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0x98)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x3cae14(0xb9)==_0x3b4d08&&(_0x3df151['grid'][_0x3cae14(0xc6)][_0x3cae14(0x98)]=_0x3cae14(0xca)),_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0xc3)]=[],'true'==_0x5e0598&&_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)]['view_mode'][_0x3cae14(0x99)](_0x3cae14(0x9e)),'true'==_0x290acf&&_0x3df151[_0x3cae14(0xb4)][_0x3cae14(0xc6)][_0x3cae14(0xc3)][_0x3cae14(0x99)]('LIST'),'true'==_0x1efac0&&_0x3df151['grid'][_0x3cae14(0xc6)]['view_mode'][_0x3cae14(0x99)]('CARD'),_0x3df151;}async[a0_0x2115a5(0x9c)](){const _0x282b88=a0_0x2115a5;let _0x47381e=await MetaApi[_0x282b88(0xa5)](_0x282b88(0xcb)),_0x286f81=await MetaApi['codeItems'](_0x282b88(0xac));this[_0x282b88(0x9b)]=_0x286f81,this[_0x282b88(0xc5)]=_0x47381e;}[a0_0x2115a5(0xc4)](){const _0x6517c7=a0_0x2115a5;this[_0x6517c7(0xb1)]||(this[_0x6517c7(0xb1)]={'mobile_mode':this[_0x6517c7(0x9b)]?this[_0x6517c7(0x9b)][0x1]:_0x6517c7(0xc2),'desk_mode':this[_0x6517c7(0x9b)]?this[_0x6517c7(0x9b)][0x0]:_0x6517c7(0x9e),'use_row_checker':!0x0,'pages':_0x6517c7(0xc9),'view_mode':[...this[_0x6517c7(0x9b)]?this[_0x6517c7(0x9b)]:[_0x6517c7(0x9e),_0x6517c7(0xc2),_0x6517c7(0x9d)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x2115a5(0xa9)](){const _0x45cf4a=a0_0x2115a5;return this['setGridConfigTabDetaultValues'](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xbf))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xcc))}
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[_0x5f0964(0xd5)]['use_row_checker']}>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xcf))}</input>
10
+ ?checked=${this[_0x45cf4a(0xb1)][_0x45cf4a(0xc0)]}>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xb2))}</input>
11
11
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
12
- ?checked=${!this[_0x5f0964(0xd5)][_0x5f0964(0xd9)]}>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xd3))}</input>
12
+ ?checked=${!this[_0x45cf4a(0xb1)][_0x45cf4a(0xc0)]}>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xaa))}</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[_0x5f0964(0xb0)](_0x5f0964(0xc7))}
18
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xba))}
19
19
  </h2>
20
20
  <label>
21
21
  <span>
22
22
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="true"
23
- ?checked=${this['viewGridData'][_0x5f0964(0xd1)]}>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xa8))}</input>
23
+ ?checked=${this[_0x45cf4a(0xb1)][_0x45cf4a(0x8c)]}>${TermsUtil['tLabel'](_0x45cf4a(0xc7))}</input>
24
24
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
25
- ?checked=${!this[_0x5f0964(0xd5)][_0x5f0964(0xd1)]}>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xaf))}</input>
25
+ ?checked=${!this[_0x45cf4a(0xb1)]['multiple_select']}>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0x91))}</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[_0x5f0964(0xb0)]('grid_use_filter')}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xa4))}
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[_0x5f0964(0xd5)][_0x5f0964(0xc0)]}>${TermsUtil['tLabel'](_0x5f0964(0xcf))}</input>
36
+ ?checked=${this[_0x45cf4a(0xb1)][_0x45cf4a(0xbf)]}>${TermsUtil['tLabel']('use')}</input>
37
37
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
38
- ?checked=${!this['viewGridData'][_0x5f0964(0xc0)]}>${TermsUtil['tLabel']('unuse')}</input>
38
+ ?checked=${!this['viewGridData'][_0x45cf4a(0xbf)]}>${TermsUtil['tLabel'](_0x45cf4a(0xaa))}</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[_0x5f0964(0xb0)](_0x5f0964(0xbd))}
45
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xae))}
46
46
  </h2>
47
47
  <label>
48
48
  <select id="grid_desk_view" name="grid_desk_view">
49
- ${this[_0x5f0964(0xb7)]?.[_0x5f0964(0xc1)](_0x2d0629=>html`<option value=${_0x2d0629[_0x5f0964(0xd4)]} ?selected=${this['viewGridData']['desk_mode']==_0x2d0629[_0x5f0964(0xd4)]}>${_0x2d0629[_0x5f0964(0xa6)]}</option>`)}
49
+ ${this[_0x45cf4a(0x9b)]?.[_0x45cf4a(0xa6)](_0x2b8c4c=>html`<option value=${_0x2b8c4c[_0x45cf4a(0xa0)]} ?selected=${this[_0x45cf4a(0xb1)]['desk_mode']==_0x2b8c4c['name']}>${_0x2b8c4c['description']}</option>`)}
50
50
  </select>
51
51
  </label>
52
52
  </div>
53
53
  <div field>
54
54
  <h2>
55
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xdb))}
55
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0x96))}
56
56
  </h2>
57
57
  <label>
58
58
  <select id="grid_mobile_view" name="grid_mobile_view">
59
- ${this[_0x5f0964(0xb7)]?.[_0x5f0964(0xc1)](_0x3e6993=>html`<option value=${_0x3e6993['name']} ?selected=${this[_0x5f0964(0xd5)][_0x5f0964(0xa9)]==_0x3e6993[_0x5f0964(0xd4)]}>${_0x3e6993['description']}</option>`)}
59
+ ${this[_0x45cf4a(0x9b)]?.[_0x45cf4a(0xa6)](_0x5fa032=>html`<option value=${_0x5fa032['name']} ?selected=${this[_0x45cf4a(0xb1)][_0x45cf4a(0x9a)]==_0x5fa032['name']}>${_0x5fa032['description']}</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[_0x5f0964(0xb0)](_0x5f0964(0xb2))}
65
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0x93))}
66
66
  </h2>
67
67
  <label>
68
- ${this[_0x5f0964(0xb7)]?.[_0x5f0964(0xc1)](_0x15dbf2=>html`
69
- <span>${_0x15dbf2['name']}
70
- <input type="radio" name=${_0x15dbf2[_0x5f0964(0xd4)][_0x5f0964(0xda)]()+_0x5f0964(0xaa)} id=${_0x15dbf2['name'][_0x5f0964(0xda)]()+_0x5f0964(0xaa)} ?checked=${this[_0x5f0964(0xd5)][_0x5f0964(0xce)]['includes'](_0x15dbf2[_0x5f0964(0xd4)])} value="true">${TermsUtil['tLabel'](_0x5f0964(0xcf))}</input>
71
- <input type="radio" name=${_0x15dbf2[_0x5f0964(0xd4)]['toLowerCase']()+_0x5f0964(0xaa)} id=${_0x15dbf2['name']['toLowerCase']()+'_view_use'} ?checked=${!this[_0x5f0964(0xd5)][_0x5f0964(0xce)]['includes'](_0x15dbf2[_0x5f0964(0xd4)])} value="false">${TermsUtil[_0x5f0964(0xb0)](_0x5f0964(0xd3))}</input>
68
+ ${this[_0x45cf4a(0x9b)]?.['map'](_0x2b37cb=>html`
69
+ <span>${_0x2b37cb[_0x45cf4a(0xa0)]}
70
+ <input type="radio" name=${_0x2b37cb[_0x45cf4a(0xa0)][_0x45cf4a(0x9f)]()+'_view_use'} id=${_0x2b37cb[_0x45cf4a(0xa0)][_0x45cf4a(0x9f)]()+_0x45cf4a(0x8b)} ?checked=${this[_0x45cf4a(0xb1)][_0x45cf4a(0xc3)]['includes'](_0x2b37cb['name'])} value="true">${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xb2))}</input>
71
+ <input type="radio" name=${_0x2b37cb[_0x45cf4a(0xa0)][_0x45cf4a(0x9f)]()+'_view_use'} id=${_0x2b37cb[_0x45cf4a(0xa0)][_0x45cf4a(0x9f)]()+'_view_use'} ?checked=${!this[_0x45cf4a(0xb1)]['view_mode'][_0x45cf4a(0xb8)](_0x2b37cb[_0x45cf4a(0xa0)])} value="false">${TermsUtil[_0x45cf4a(0xa1)]('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[_0x5f0964(0xb0)](_0x5f0964(0xca))}
78
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x45cf4a(0xa1)](_0x45cf4a(0xa7))}
79
79
  </h2>
80
80
  <label>
81
- ${this['gridPageOptions']?.[_0x5f0964(0xc1)](_0x6403e4=>html`
81
+ ${this['gridPageOptions']?.['map'](_0x1435aa=>html`
82
82
  <span>
83
- <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x6403e4[_0x5f0964(0xd4)]} ?checked=${this[_0x5f0964(0xd5)][_0x5f0964(0xbc)]==_0x6403e4[_0x5f0964(0xd4)]}>${TermsUtil['tLabel'](_0x6403e4['name'])}</input>
83
+ <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x1435aa[_0x45cf4a(0xa0)]} ?checked=${this['viewGridData'][_0x45cf4a(0x98)]==_0x1435aa[_0x45cf4a(0xa0)]}>${TermsUtil[_0x45cf4a(0xa1)](_0x1435aa[_0x45cf4a(0xa0)])}</input>
84
84
  </span>
85
85
  `)}
86
86
  </label>
@@ -88,4 +88,4 @@ const a0_0x458dc4=a0_0x1f78;function a0_0x3d93(){const _0x10840c=['use_row_check
88
88
  </div>
89
89
  </div>
90
90
 
91
- `;}};
91
+ `;}};function a0_0x353d(){const _0x38dca3=['grid_term_','use_filter_form','use_row_checker','card_view_use','LIST','view_mode','setGridConfigTabDetaultValues','gridPageOptions','option','support','425786raFMwh','grid_term_default','unlimited','GRID_PAGE_OPTIONS','grid_use_row_check','getElementValueById','_view_use','multiple_select','grid_row_check_use','grid_view_use','1889552ufXotD','select-row-toggle','unsupport','586817KpvJjN','grid_support_view','grid_multi_select','row','grid_mobile_view','16KzqQrh','pages','push','mobile_mode','gridViewModes','setGridConfigTabConfig','CARD','GRID','toLowerCase','name','tLabel','35ayTkHD','true','grid_use_filter','codeItems','map','grid_pagination','1270WZuHMT','renderGridConfigTab','unuse','1809576zjUABz','GRID_VIEW_MODE','1690324ZNSTRW','grid_desk_view','73557YBLkuI','grid_term_1000','viewGridData','use','grid_term_50','grid','setGridConfigTabValues','getGridConfigTabValues','432474txCoFf','includes','grid_term_unlimited','grid_support_multi_select','desk_mode','3wkEzxh','length'];a0_0x353d=function(){return _0x38dca3;};return a0_0x353d();}
@@ -1,18 +1,18 @@
1
- function a0_0xd4bb(_0x443e99,_0x1ad06f){const _0x52e479=a0_0x52e4();return a0_0xd4bb=function(_0xd4bb08,_0x44f859){_0xd4bb08=_0xd4bb08-0x1c7;let _0x4f3f3c=_0x52e479[_0xd4bb08];return _0x4f3f3c;},a0_0xd4bb(_0x443e99,_0x1ad06f);}function a0_0x52e4(){const _0x29ad61=['516056fWOdBg','GRID','backgroundColor','integer','3898608ZgkbhT','column-emphasized-grist','left','rank','setGridEmphasizedConfigTabConfig','viewEmphasizedData','rowEmphasizedData','columnEmphasizedData','737726ZCSEru','font-color','fetch','#row-emphasized-grist','setGridEmphasizedConfigTabDefaultValues','logic','6782440poUVtV','keys','columnEmphasizedConfig','push','fetchColumnEmphasized','grid_column_emphasized_config','shadowRoot','emphasizedConfigTabColumnEmphasizedGrist','rowEmphasizedConfig','16457616eMrwMf','renderGridEmphasizedConfigTab','code-input','1086720bSUGOz','fontColor','column','tLabel','setGridEmphasizedConfigTabValues','getElementValueById','getGridEmphasizedConfigTabValues','#column-emphasized-grist','emphasizedConfigTabRowEmphasizedGrist','forEach','delete','background-color','getGristSelectableConfig','grid_row_emphasized_config','sortRecordByRank','fetchRowEmphasized','button','getGristGuttersConfig','querySelector','9057PdfcsB','deleteRow','292mEFugY','right','string','map','gutter','bind','row-emphasized-grist'];a0_0x52e4=function(){return _0x29ad61;};return a0_0x52e4();}const a0_0x5617c1=a0_0xd4bb;(function(_0x13066c,_0x12cd15){const _0xa50abb=a0_0xd4bb,_0x265522=_0x13066c();while(!![]){try{const _0x4f4760=parseInt(_0xa50abb(0x1f6))/0x1+parseInt(_0xa50abb(0x1ea))/0x2+parseInt(_0xa50abb(0x1e1))/0x3*(-parseInt(_0xa50abb(0x1e3))/0x4)+parseInt(_0xa50abb(0x1ce))/0x5+parseInt(_0xa50abb(0x1ee))/0x6+parseInt(_0xa50abb(0x1fc))/0x7+-parseInt(_0xa50abb(0x1cb))/0x8;if(_0x4f4760===_0x12cd15)break;else _0x265522['push'](_0x265522['shift']());}catch(_0x366bed){_0x265522['push'](_0x265522['shift']());}}}(a0_0x52e4,0x874d5));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=_0x1145f5=>class extends _0x1145f5{[a0_0x5617c1(0x1d2)](_0x1d09f1){const _0x34bb41=a0_0x5617c1;if(_0x1d09f1){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x1a9cd9=0x1;this['viewEmphasizedData'][_0x34bb41(0x1f4)]=(_0x1d09f1['row']||[])[_0x34bb41(0x1e6)](_0x2fdd54=>({'id':_0x1a9cd9,'rank':_0x1a9cd9++,'backgroundColor':_0x2fdd54[_0x34bb41(0x1ec)]||'','fontColor':_0x2fdd54[_0x34bb41(0x1cf)]||'','logic':_0x2fdd54[_0x34bb41(0x1fb)]||''})),_0x1a9cd9=0x1;let _0xd2d75a=_0x1d09f1[_0x34bb41(0x1d0)]||[];Object[_0x34bb41(0x1fd)](_0xd2d75a)['forEach'](_0x11f8d3=>{const _0x3e4040=_0x34bb41;let _0x523933=_0xd2d75a[_0x11f8d3]||[],_0x29117b=0x1;_0x523933[_0x3e4040(0x1d7)](_0x109d43=>{const _0x2b7589=_0x3e4040;this[_0x2b7589(0x1f3)][_0x2b7589(0x1f5)][_0x2b7589(0x1ff)]({'id':_0x1a9cd9++,'rank':_0x29117b++,'column':_0x11f8d3,'backgroundColor':_0x109d43[_0x2b7589(0x1ec)]||'','fontColor':_0x109d43['fontColor']||'','logic':_0x109d43[_0x2b7589(0x1fb)]||''});});}),this['emphasizedConfigTabColumnEmphasizedGrist']?.[_0x34bb41(0x1f8)](),this[_0x34bb41(0x1d6)]?.[_0x34bb41(0x1f8)]();}else this[_0x34bb41(0x1fa)]();}[a0_0x5617c1(0x1d4)](){const _0x3991ca=a0_0x5617c1;let _0x358974=this['getElementValueById'](_0x3991ca(0x1e9)),_0x1cf756=this[_0x3991ca(0x1d3)](_0x3991ca(0x1ef)),_0x497712=[];this['sortRecordByRank'](_0x358974)?.[_0x3991ca(0x1d7)](_0x8065de=>{const _0xf0bb22=_0x3991ca;_0x497712[_0xf0bb22(0x1ff)]({'backgroundColor':_0x8065de[_0xf0bb22(0x1ec)],'fontColor':_0x8065de[_0xf0bb22(0x1cf)],'logic':_0x8065de[_0xf0bb22(0x1fb)]});});let _0x3d5800={};return this[_0x3991ca(0x1dc)](_0x1cf756)?.['forEach'](_0x40e813=>{const _0x5d28a9=_0x3991ca;_0x3d5800[_0x40e813[_0x5d28a9(0x1d0)]]||(_0x3d5800[_0x40e813[_0x5d28a9(0x1d0)]]=[]),_0x3d5800[_0x40e813[_0x5d28a9(0x1d0)]][_0x5d28a9(0x1ff)]({'backgroundColor':_0x40e813[_0x5d28a9(0x1ec)],'fontColor':_0x40e813[_0x5d28a9(0x1cf)],'logic':_0x40e813[_0x5d28a9(0x1fb)]});}),{'gridEmphasized':{'row':_0x497712||[],'column':_0x3d5800||{}}};}get[a0_0x5617c1(0x1d6)](){const _0x5b08c5=a0_0x5617c1;return this[_0x5b08c5(0x1c8)][_0x5b08c5(0x1e0)](_0x5b08c5(0x1f9));}get['emphasizedConfigTabColumnEmphasizedGrist'](){const _0x54daf2=a0_0x5617c1;return this[_0x54daf2(0x1c8)]['querySelector'](_0x54daf2(0x1d5));}[a0_0x5617c1(0x1f2)](){const _0xc658f7=a0_0x5617c1;this[_0xc658f7(0x1ca)]={'rows':MetaApi[_0xc658f7(0x1da)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0xc658f7(0x1df)](!0x1,!0x1),{'type':'gutter','gutterName':_0xc658f7(0x1de),'icon':'delete','handlers':{'click':(_0x2ab110,_0x31861d,_0x5d1f,_0x2c6c3b,_0x8a7934)=>{const _0x37ef71=_0xc658f7;_0x2c6c3b['id']&&this[_0x37ef71(0x1e2)](this[_0x37ef71(0x1d6)],_0x2c6c3b);}}},{'type':_0xc658f7(0x1e5),'name':'id','hidden':!0x0},{'type':_0xc658f7(0x1ed),'name':_0xc658f7(0x1f1),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1f1)),'sortable':!0x0,'width':0x41,'record':{'align':_0xc658f7(0x1e4),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'backgroundColor','header':TermsUtil['tLabel'](_0xc658f7(0x1d9)),'record':{'align':_0xc658f7(0x1f0),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'string','name':_0xc658f7(0x1cf),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1f7)),'record':{'align':_0xc658f7(0x1f0),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xc658f7(0x1cd),'name':_0xc658f7(0x1fb),'header':TermsUtil['tLabel'](_0xc658f7(0x1fb)),'record':{'align':_0xc658f7(0x1f0),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0xc658f7(0x1fe)]={'rows':MetaApi[_0xc658f7(0x1da)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0xc658f7(0x1df)](!0x1,!0x1),{'type':_0xc658f7(0x1e7),'gutterName':_0xc658f7(0x1de),'icon':_0xc658f7(0x1d8),'handlers':{'click':(_0x212c5f,_0x20d216,_0xebb80c,_0x99299d,_0x2b41af)=>{const _0x298121=_0xc658f7;_0x99299d['id']&&this[_0x298121(0x1e2)](this[_0x298121(0x1c9)],_0x99299d);}}},{'type':_0xc658f7(0x1e5),'name':'id','hidden':!0x0},{'type':_0xc658f7(0x1e5),'name':_0xc658f7(0x1d0),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1d0)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xc658f7(0x1ed),'name':_0xc658f7(0x1f1),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1f1)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0xc658f7(0x1e5),'name':_0xc658f7(0x1ec),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1d9)),'record':{'align':_0xc658f7(0x1f0),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'string','name':'fontColor','header':TermsUtil[_0xc658f7(0x1d1)]('font-color'),'record':{'align':_0xc658f7(0x1f0),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'code-input','name':_0xc658f7(0x1fb),'header':TermsUtil[_0xc658f7(0x1d1)](_0xc658f7(0x1fb)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x5617c1(0x1fa)](){const _0x5df0e6=a0_0x5617c1;this['viewEmphasizedData']||(this[_0x5df0e6(0x1f3)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x5617c1(0x1cc)](){const _0x561940=a0_0x5617c1;return this[_0x561940(0x1fa)](),html`
1
+ const a0_0x2215ab=a0_0x1af0;(function(_0x201e75,_0x581686){const _0x415e5f=a0_0x1af0,_0x524c4d=_0x201e75();while(!![]){try{const _0x1b5871=-parseInt(_0x415e5f(0x12a))/0x1+parseInt(_0x415e5f(0x131))/0x2*(parseInt(_0x415e5f(0x121))/0x3)+-parseInt(_0x415e5f(0x128))/0x4+-parseInt(_0x415e5f(0x115))/0x5*(-parseInt(_0x415e5f(0x104))/0x6)+-parseInt(_0x415e5f(0x122))/0x7*(parseInt(_0x415e5f(0x12b))/0x8)+-parseInt(_0x415e5f(0x114))/0x9*(-parseInt(_0x415e5f(0x102))/0xa)+parseInt(_0x415e5f(0x106))/0xb*(parseInt(_0x415e5f(0x132))/0xc);if(_0x1b5871===_0x581686)break;else _0x524c4d['push'](_0x524c4d['shift']());}catch(_0x34c023){_0x524c4d['push'](_0x524c4d['shift']());}}}(a0_0x339e,0xc7ef7));function a0_0x1af0(_0x5392cb,_0x3d6cf9){const _0x339e93=a0_0x339e();return a0_0x1af0=function(_0x1af007,_0x2ee3a1){_0x1af007=_0x1af007-0xf9;let _0x5006bc=_0x339e93[_0x1af007];return _0x5006bc;},a0_0x1af0(_0x5392cb,_0x3d6cf9);}import{html}from'lit-element';function a0_0x339e(){const _0x4bff19=['emphasizedConfigTabRowEmphasizedGrist','fetchColumnEmphasized','columnEmphasizedConfig','3TbyWbo','978229ViDNWX','#column-emphasized-grist','GRID','forEach','code-input','bind','5512280ZBqAIi','gutter','1283743icetDR','56BBjujo','emphasizedConfigTabColumnEmphasizedGrist','fetchRowEmphasized','renderGridEmphasizedConfigTab','backgroundColor','shadowRoot','2328458EsDZZT','20917836bLdNTL','background-color','column','setGridEmphasizedConfigTabValues','push','fetch','keys','integer','tLabel','querySelector','12117890TDmaTw','getGristSelectableConfig','28716UvluqR','rowEmphasizedConfig','11NvoKsc','font-color','sortRecordByRank','getGridEmphasizedConfigTabValues','getGristGuttersConfig','button','setGridEmphasizedConfigTabDefaultValues','string','rank','fontColor','row-emphasized-grist','left','delete','row','9SMUleA','355dryZcm','#row-emphasized-grist','deleteRow','columnEmphasizedData','logic','column-emphasized-grist','getElementValueById','viewEmphasizedData','map'];a0_0x339e=function(){return _0x4bff19;};return a0_0x339e();}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=_0x51647f=>class extends _0x51647f{[a0_0x2215ab(0xfb)](_0x2f03a1){const _0x540b08=a0_0x2215ab;if(_0x2f03a1){this[_0x540b08(0x11c)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x15087c=0x1;this[_0x540b08(0x11c)]['rowEmphasizedData']=(_0x2f03a1[_0x540b08(0x113)]||[])[_0x540b08(0x11d)](_0x557fd2=>({'id':_0x15087c,'rank':_0x15087c++,'backgroundColor':_0x557fd2[_0x540b08(0x12f)]||'','fontColor':_0x557fd2['fontColor']||'','logic':_0x557fd2['logic']||''})),_0x15087c=0x1;let _0x4b5179=_0x2f03a1[_0x540b08(0xfa)]||[];Object[_0x540b08(0xfe)](_0x4b5179)['forEach'](_0x29fafb=>{let _0x4aff8a=_0x4b5179[_0x29fafb]||[],_0x477a62=0x1;_0x4aff8a['forEach'](_0x5728db=>{const _0x18a2b5=a0_0x1af0;this['viewEmphasizedData']['columnEmphasizedData'][_0x18a2b5(0xfc)]({'id':_0x15087c++,'rank':_0x477a62++,'column':_0x29fafb,'backgroundColor':_0x5728db[_0x18a2b5(0x12f)]||'','fontColor':_0x5728db[_0x18a2b5(0x10f)]||'','logic':_0x5728db['logic']||''});});}),this[_0x540b08(0x12c)]?.[_0x540b08(0xfd)](),this[_0x540b08(0x11e)]?.[_0x540b08(0xfd)]();}else this['setGridEmphasizedConfigTabDefaultValues']();}[a0_0x2215ab(0x109)](){const _0x466b3a=a0_0x2215ab;let _0x8a790c=this[_0x466b3a(0x11b)](_0x466b3a(0x110)),_0x501c1f=this[_0x466b3a(0x11b)](_0x466b3a(0x11a)),_0x8de4c6=[];this[_0x466b3a(0x108)](_0x8a790c)?.[_0x466b3a(0x125)](_0x377018=>{const _0x261eab=_0x466b3a;_0x8de4c6[_0x261eab(0xfc)]({'backgroundColor':_0x377018['backgroundColor'],'fontColor':_0x377018[_0x261eab(0x10f)],'logic':_0x377018[_0x261eab(0x119)]});});let _0x250c89={};return this[_0x466b3a(0x108)](_0x501c1f)?.[_0x466b3a(0x125)](_0x3d55b9=>{const _0x44e083=_0x466b3a;_0x250c89[_0x3d55b9['column']]||(_0x250c89[_0x3d55b9[_0x44e083(0xfa)]]=[]),_0x250c89[_0x3d55b9['column']][_0x44e083(0xfc)]({'backgroundColor':_0x3d55b9[_0x44e083(0x12f)],'fontColor':_0x3d55b9[_0x44e083(0x10f)],'logic':_0x3d55b9['logic']});}),{'gridEmphasized':{'row':_0x8de4c6||[],'column':_0x250c89||{}}};}get[a0_0x2215ab(0x11e)](){const _0x1a5d25=a0_0x2215ab;return this[_0x1a5d25(0x130)][_0x1a5d25(0x101)](_0x1a5d25(0x116));}get[a0_0x2215ab(0x12c)](){const _0x3aae8f=a0_0x2215ab;return this[_0x3aae8f(0x130)][_0x3aae8f(0x101)](_0x3aae8f(0x123));}['setGridEmphasizedConfigTabConfig'](){const _0x161305=a0_0x2215ab;this[_0x161305(0x105)]={'rows':MetaApi[_0x161305(0x103)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x161305(0x10a)](!0x1,!0x1),{'type':_0x161305(0x129),'gutterName':_0x161305(0x10b),'icon':_0x161305(0x112),'handlers':{'click':(_0x21045a,_0x35a150,_0x1e85a3,_0x23261b,_0x18db06)=>{const _0x4da885=_0x161305;_0x23261b['id']&&this[_0x4da885(0x117)](this[_0x4da885(0x11e)],_0x23261b);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x161305(0xff),'name':'rank','header':TermsUtil[_0x161305(0x100)](_0x161305(0x10e)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x161305(0x12f),'header':TermsUtil[_0x161305(0x100)](_0x161305(0xf9)),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x161305(0x10d),'name':_0x161305(0x10f),'header':TermsUtil[_0x161305(0x100)](_0x161305(0x107)),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x161305(0x126),'name':_0x161305(0x119),'header':TermsUtil[_0x161305(0x100)](_0x161305(0x119)),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x161305(0x120)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x161305(0x10a)](!0x1,!0x1),{'type':_0x161305(0x129),'gutterName':_0x161305(0x10b),'icon':'delete','handlers':{'click':(_0x1382e0,_0x48d8c5,_0x37ac1f,_0x961c2e,_0x4b38c5)=>{const _0x38c958=_0x161305;_0x961c2e['id']&&this[_0x38c958(0x117)](this['emphasizedConfigTabColumnEmphasizedGrist'],_0x961c2e);}}},{'type':_0x161305(0x10d),'name':'id','hidden':!0x0},{'type':_0x161305(0x10d),'name':_0x161305(0xfa),'header':TermsUtil['tLabel'](_0x161305(0xfa)),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x161305(0xff),'name':_0x161305(0x10e),'header':TermsUtil[_0x161305(0x100)](_0x161305(0x10e)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x161305(0x10d),'name':_0x161305(0x12f),'header':TermsUtil[_0x161305(0x100)](_0x161305(0xf9)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x161305(0x10d),'name':'fontColor','header':TermsUtil[_0x161305(0x100)](_0x161305(0x107)),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x161305(0x126),'name':_0x161305(0x119),'header':TermsUtil[_0x161305(0x100)]('logic'),'record':{'align':_0x161305(0x111),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x2215ab(0x10c)](){const _0x847b0e=a0_0x2215ab;this[_0x847b0e(0x11c)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x2215ab(0x12e)](){const _0x35ea53=a0_0x2215ab;return this['setGridEmphasizedConfigTabDefaultValues'](),html`
2
2
  <div style='grid-template-rows: 50% 50%;display:grid;flex:1;'>
3
3
  <div field >
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x561940(0x1d1)](_0x561940(0x1db))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x35ea53(0x100)]('grid_row_emphasized_config')}
6
6
  </h2>
7
- <ox-grist id="row-emphasized-grist" .config=${this['rowEmphasizedConfig']} .mode=${_0x561940(0x1eb)} auto-fetch
8
- .fetchHandler=${this[_0x561940(0x1dd)]['bind'](this)}></ox-grist>
7
+ <ox-grist id="row-emphasized-grist" .config=${this['rowEmphasizedConfig']} .mode=${'GRID'} auto-fetch
8
+ .fetchHandler=${this[_0x35ea53(0x12d)][_0x35ea53(0x127)](this)}></ox-grist>
9
9
  </div>
10
10
  <div field >
11
11
  <h2>
12
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x561940(0x1d1)](_0x561940(0x1c7))}
12
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel']('grid_column_emphasized_config')}
13
13
  </h2>
14
- <ox-grist id="column-emphasized-grist" .config=${this['columnEmphasizedConfig']} .mode=${_0x561940(0x1eb)} auto-fetch
15
- .fetchHandler=${this[_0x561940(0x200)][_0x561940(0x1e8)](this)}></ox-grist>
14
+ <ox-grist id="column-emphasized-grist" .config=${this[_0x35ea53(0x120)]} .mode=${_0x35ea53(0x124)} auto-fetch
15
+ .fetchHandler=${this[_0x35ea53(0x11f)][_0x35ea53(0x127)](this)}></ox-grist>
16
16
  </div>
17
17
  </div>
18
- `;}async[a0_0x5617c1(0x1dd)](){return{'records':this['viewEmphasizedData']['rowEmphasizedData'],'total':0x0};}async[a0_0x5617c1(0x200)](){const _0x569e63=a0_0x5617c1;return{'records':this[_0x569e63(0x1f3)][_0x569e63(0x1f5)],'total':0x0};}};
18
+ `;}async['fetchRowEmphasized'](){const _0x3e5dc1=a0_0x2215ab;return{'records':this[_0x3e5dc1(0x11c)]['rowEmphasizedData'],'total':0x0};}async['fetchColumnEmphasized'](){const _0x5608e2=a0_0x2215ab;return{'records':this['viewEmphasizedData'][_0x5608e2(0x118)],'total':0x0};}};
@@ -1,29 +1,29 @@
1
- function a0_0x45ad(_0x11ba31,_0x34d40e){const _0x14a288=a0_0x14a2();return a0_0x45ad=function(_0x45ada8,_0x26010d){_0x45ada8=_0x45ada8-0x7a;let _0x30484b=_0x14a288[_0x45ada8];return _0x30484b;},a0_0x45ad(_0x11ba31,_0x34d40e);}function a0_0x14a2(){const _0x318421=['description','20957lHbHtD','name','1083116AKitld','11emXvCp','264GalSoX','menu_name_field','renderMenuConfigTab','help','menuTitleChange','help_doc','261AYoGPn','getElementById','display','title','viewMenuData','value','menu','4403akqAho','tTitle','10dzaciV','setMenuConfigTabValues','target','29604qaEjDS','getElementValueById','175090lXRBUy','4377336MnqbCd','487482irQgsg','tLabel','menu_desc_field','desc','45TzLTvE','setMenuConfigTabDefaultValue'];a0_0x14a2=function(){return _0x318421;};return a0_0x14a2();}const a0_0x26d940=a0_0x45ad;(function(_0x4f5acc,_0x1522b7){const _0x410456=a0_0x45ad,_0xbc0933=_0x4f5acc();while(!![]){try{const _0x11f834=parseInt(_0x410456(0x88))/0x1*(-parseInt(_0x410456(0x7a))/0x2)+-parseInt(_0x410456(0x81))/0x3+-parseInt(_0x410456(0x8a))/0x4+parseInt(_0x410456(0x85))/0x5*(-parseInt(_0x410456(0x7d))/0x6)+-parseInt(_0x410456(0x99))/0x7*(-parseInt(_0x410456(0x8c))/0x8)+-parseInt(_0x410456(0x92))/0x9*(-parseInt(_0x410456(0x7f))/0xa)+parseInt(_0x410456(0x8b))/0xb*(parseInt(_0x410456(0x80))/0xc);if(_0x11f834===_0x1522b7)break;else _0xbc0933['push'](_0xbc0933['shift']());}catch(_0x167bce){_0xbc0933['push'](_0xbc0933['shift']());}}}(a0_0x14a2,0x4be30));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x4cf68a=>class extends _0x4cf68a{[a0_0x26d940(0x7b)](_0x2aca6a){const _0x1fd605=a0_0x26d940;if(_0x2aca6a){var {title:_0x488570='',name:_0x443e96='',desc:_0x1aad06='',help:_0x8cbf6b=''}=_0x2aca6a||{};this['viewMenuData']={'title':_0x488570,'name':_0x443e96,'desc':_0x1aad06,'help_doc':_0x8cbf6b},this[_0x1fd605(0x93)](_0x1fd605(0x95))[_0x1fd605(0x97)]=_0x488570,this[_0x1fd605(0x93)]('name')[_0x1fd605(0x97)]=_0x443e96,this[_0x1fd605(0x93)](_0x1fd605(0x84))[_0x1fd605(0x97)]=_0x1aad06,this['getElementById']('help_doc')[_0x1fd605(0x97)]=_0x8cbf6b;}else this[_0x1fd605(0x86)]();}['getMenuConfigTabValues'](){const _0x4a2286=a0_0x26d940;let _0x4a1189={'menu':{}},_0x590f1b=this[_0x4a2286(0x7e)](_0x4a2286(0x95)),_0x5941e2=this['getElementValueById'](_0x4a2286(0x89)),_0x3f95eb=this[_0x4a2286(0x7e)](_0x4a2286(0x84)),_0x2c1cdd=this['getElementValueById'](_0x4a2286(0x91));return _0x590f1b&&(_0x4a1189['menu']['title']=_0x590f1b),_0x5941e2&&(_0x4a1189[_0x4a2286(0x98)]['name']=_0x5941e2),_0x3f95eb&&(_0x4a1189[_0x4a2286(0x98)]['desc']=_0x3f95eb),_0x2c1cdd&&(_0x4a1189[_0x4a2286(0x98)][_0x4a2286(0x8f)]=_0x2c1cdd),_0x4a1189;}[a0_0x26d940(0x86)](){const _0x4a7310=a0_0x26d940;this['viewMenuData']||(this[_0x4a7310(0x96)]={'title':'','name':_0x4a7310(0x89),'desc':_0x4a7310(0x87),'help_doc':''});}[a0_0x26d940(0x90)](_0x42ed90){const _0x2e3909=a0_0x26d940;let _0x508da2=this[_0x2e3909(0x93)]('display');_0x508da2&&(_0x508da2['value']=TermsUtil[_0x2e3909(0x9a)](_0x42ed90[_0x2e3909(0x7c)][_0x2e3909(0x97)]));}[a0_0x26d940(0x8e)](){const _0x46a8a8=a0_0x26d940;return this[_0x46a8a8(0x86)](),html`
1
+ const a0_0x25135a=a0_0x3e9b;(function(_0x4cabe5,_0x3918e7){const _0x3abe83=a0_0x3e9b,_0x233490=_0x4cabe5();while(!![]){try{const _0x5dc106=parseInt(_0x3abe83(0x92))/0x1*(-parseInt(_0x3abe83(0x90))/0x2)+parseInt(_0x3abe83(0x8a))/0x3*(parseInt(_0x3abe83(0x8f))/0x4)+-parseInt(_0x3abe83(0x77))/0x5*(parseInt(_0x3abe83(0x8c))/0x6)+parseInt(_0x3abe83(0x80))/0x7*(-parseInt(_0x3abe83(0x73))/0x8)+parseInt(_0x3abe83(0x84))/0x9+parseInt(_0x3abe83(0x88))/0xa*(-parseInt(_0x3abe83(0x7a))/0xb)+parseInt(_0x3abe83(0x7d))/0xc;if(_0x5dc106===_0x3918e7)break;else _0x233490['push'](_0x233490['shift']());}catch(_0x1f9640){_0x233490['push'](_0x233490['shift']());}}}(a0_0x4003,0x33d78));import{html}from'lit-element';function a0_0x4003(){const _0x2d5489=['name','356IhGczs','4CLEokr','help_doc','133442tkGpwr','85096npNZwU','getElementById','viewMenuData','target','238555nogAop','value','title','4553439GWbWJP','renderMenuConfigTab','display','7161156VeYiIZ','desc','menu','259eydQiI','setMenuConfigTabDefaultValue','menu_name_field','description','3637962xHPnjU','menuTitleChange','menu_desc_field','getElementValueById','10umagoi','getMenuConfigTabValues','12849bwZJMY','setMenuConfigTabValues','12ukcSug','tLabel'];a0_0x4003=function(){return _0x2d5489;};return a0_0x4003();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x3e9b(_0x4e2d5a,_0x437194){const _0x4003d7=a0_0x4003();return a0_0x3e9b=function(_0x3e9bbb,_0x12896d){_0x3e9bbb=_0x3e9bbb-0x73;let _0x357c47=_0x4003d7[_0x3e9bbb];return _0x357c47;},a0_0x3e9b(_0x4e2d5a,_0x437194);}export const MenuConfigTabMixin=_0x1bd466=>class extends _0x1bd466{[a0_0x25135a(0x8b)](_0x202a9e){const _0x9ae715=a0_0x25135a;if(_0x202a9e){var {title:_0x40e2f5='',name:_0x4f5bc5='',desc:_0x5a657a='',help:_0x1ded95=''}=_0x202a9e||{};this[_0x9ae715(0x75)]={'title':_0x40e2f5,'name':_0x4f5bc5,'desc':_0x5a657a,'help_doc':_0x1ded95},this[_0x9ae715(0x74)](_0x9ae715(0x79))[_0x9ae715(0x78)]=_0x40e2f5,this[_0x9ae715(0x74)](_0x9ae715(0x8e))[_0x9ae715(0x78)]=_0x4f5bc5,this['getElementById'](_0x9ae715(0x7e))[_0x9ae715(0x78)]=_0x5a657a,this[_0x9ae715(0x74)]('help_doc')[_0x9ae715(0x78)]=_0x1ded95;}else this['setMenuConfigTabDefaultValue']();}[a0_0x25135a(0x89)](){const _0xfb402f=a0_0x25135a;let _0x5a6620={'menu':{}},_0x145301=this[_0xfb402f(0x87)](_0xfb402f(0x79)),_0x10b520=this['getElementValueById'](_0xfb402f(0x8e)),_0x5545ce=this['getElementValueById'](_0xfb402f(0x7e)),_0x15e80d=this[_0xfb402f(0x87)](_0xfb402f(0x91));return _0x145301&&(_0x5a6620['menu'][_0xfb402f(0x79)]=_0x145301),_0x10b520&&(_0x5a6620[_0xfb402f(0x7f)][_0xfb402f(0x8e)]=_0x10b520),_0x5545ce&&(_0x5a6620[_0xfb402f(0x7f)][_0xfb402f(0x7e)]=_0x5545ce),_0x15e80d&&(_0x5a6620[_0xfb402f(0x7f)]['help']=_0x15e80d),_0x5a6620;}['setMenuConfigTabDefaultValue'](){const _0x4730b4=a0_0x25135a;this[_0x4730b4(0x75)]||(this['viewMenuData']={'title':'','name':'name','desc':_0x4730b4(0x83),'help_doc':''});}[a0_0x25135a(0x85)](_0x5a2b02){const _0x24af3f=a0_0x25135a;let _0x4a3f3b=this[_0x24af3f(0x74)](_0x24af3f(0x7c));_0x4a3f3b&&(_0x4a3f3b['value']=TermsUtil['tTitle'](_0x5a2b02[_0x24af3f(0x76)][_0x24af3f(0x78)]));}[a0_0x25135a(0x7b)](){const _0xebc7bb=a0_0x25135a;return this[_0xebc7bb(0x81)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
- <label>${TermsUtil[_0x46a8a8(0x82)]('menu_title')}
5
- <input id="title" name="title" type="text" value=${this[_0x46a8a8(0x96)]['title']} @change=${_0x2d15f6=>this['menuTitleChange'](_0x2d15f6)}/>
4
+ <label>${TermsUtil[_0xebc7bb(0x8d)]('menu_title')}
5
+ <input id="title" name="title" type="text" value=${this['viewMenuData'][_0xebc7bb(0x79)]} @change=${_0x17a325=>this[_0xebc7bb(0x85)](_0x17a325)}/>
6
6
  </label>
7
7
  </div>
8
8
  <div field>
9
- <label>${TermsUtil[_0x46a8a8(0x82)](_0x46a8a8(0x94))}
10
- <input id="display" name="display" value=${TermsUtil[_0x46a8a8(0x9a)](this[_0x46a8a8(0x96)]['title'])} type="text" readonly
9
+ <label>${TermsUtil[_0xebc7bb(0x8d)](_0xebc7bb(0x7c))}
10
+ <input id="display" name="display" value=${TermsUtil['tTitle'](this[_0xebc7bb(0x75)][_0xebc7bb(0x79)])} type="text" readonly
11
11
  disabled />
12
12
  </label>
13
13
  </div>
14
14
  <div field>
15
- <label>${TermsUtil[_0x46a8a8(0x82)](_0x46a8a8(0x8d))}
16
- <input id="name" name="name" type="text" value=${this[_0x46a8a8(0x96)][_0x46a8a8(0x89)]} />
15
+ <label>${TermsUtil[_0xebc7bb(0x8d)](_0xebc7bb(0x82))}
16
+ <input id="name" name="name" type="text" value=${this['viewMenuData'][_0xebc7bb(0x8e)]} />
17
17
  </label>
18
18
  </div>
19
19
  <div field>
20
- <label>${TermsUtil['tLabel'](_0x46a8a8(0x83))}
21
- <input id="desc" name="desc" type="text" value=${this[_0x46a8a8(0x96)]['desc']} />
20
+ <label>${TermsUtil[_0xebc7bb(0x8d)](_0xebc7bb(0x86))}
21
+ <input id="desc" name="desc" type="text" value=${this['viewMenuData'][_0xebc7bb(0x7e)]} />
22
22
  </label>
23
23
  </div>
24
24
  <div field>
25
- <label>${TermsUtil[_0x46a8a8(0x82)](_0x46a8a8(0x91))}
26
- <input id="help_doc" name="help_doc" type="text" value=${this[_0x46a8a8(0x96)][_0x46a8a8(0x91)]} />
25
+ <label>${TermsUtil[_0xebc7bb(0x8d)](_0xebc7bb(0x91))}
26
+ <input id="help_doc" name="help_doc" type="text" value=${this[_0xebc7bb(0x75)][_0xebc7bb(0x91)]} />
27
27
  </label>
28
28
  </div>
29
29
  </div>
@@ -1,4 +1,4 @@
1
- const a0_0x2b151e=a0_0x5637;(function(_0x36f2a7,_0x123678){const _0x50140f=a0_0x5637,_0x408c4d=_0x36f2a7();while(!![]){try{const _0x4149db=parseInt(_0x50140f(0x1e6))/0x1*(parseInt(_0x50140f(0x22a))/0x2)+parseInt(_0x50140f(0x1c5))/0x3+-parseInt(_0x50140f(0x22d))/0x4+parseInt(_0x50140f(0x1db))/0x5+parseInt(_0x50140f(0x210))/0x6+parseInt(_0x50140f(0x1e1))/0x7*(parseInt(_0x50140f(0x1f6))/0x8)+-parseInt(_0x50140f(0x1d1))/0x9;if(_0x4149db===_0x123678)break;else _0x408c4d['push'](_0x408c4d['shift']());}catch(_0x4a41e4){_0x408c4d['push'](_0x408c4d['shift']());}}}(a0_0x5ec2,0xf3f5f));import a0_0x54932b from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';function a0_0x5637(_0x29ef23,_0x224d72){const _0x5ec246=a0_0x5ec2();return a0_0x5637=function(_0x563799,_0x50489e){_0x563799=_0x563799-0x1b7;let _0x49ae42=_0x5ec246[_0x563799];return _0x49ae42;},a0_0x5637(_0x29ef23,_0x224d72);}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_0x5ec2(){const _0x2f76f4=['sorters','ox-input-code','error','name','etc_config','display:none','select','thumbnail','filter','getElementById','grid-','ox-grist','197254xxrDEw','setTabData','gridEmphasized','5969728gOnoqO','detail_field','get','dispatchEvent','tButton','sort_rank','type','form_config','dirtyData','ConfigTabConfig','clear','tLabel','details','findOne','menuId','2858994ZmWkwX','style','toUpperCase','errors','notify','deleteRow','pageUpdated','meta_generator','\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','tab_config','render','shadowRoot','18496566xwarBA','template','column_config','ConfigTab','keys','getElementValueById','length','button_config','menu_config','refresh','4646280ivwATi','includes','hidden','sortRecordByField','sort','getConfigTab','7oyIajm','sort_desc','pageInitialized','tabData','desc','5UYCvRW','getState','lifecycle','query','selectedIndex','save','querySelector','fields','list','styles','convertFirstCharUpperCase','value','records','error.invalid\x20license\x20key','option','icon','14510536jAkKTI','toLowerCase','operatoTools','forEach','currentTabKey','column','etc',':checked','graphql_config','rank','menuName','search','back','initData','map','dataStorage','tab','options','backToMenu','tagName','set','grid_config','updateMultipleMenu','filters','params','menu','2145978BMemQe','meta-generator-page','tTitle','graphql','push','parse','context','charAt','grid_emphasized_config','ConfigTabValues','thumbnail_field','define','bind','data'];a0_0x5ec2=function(){return _0x2f76f4;};return a0_0x5ec2();}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_0x2b151e(0x1ef)](){return[css`
1
+ const a0_0x74b016=a0_0x3277;(function(_0x523577,_0x3b1b8e){const _0x14f431=a0_0x3277,_0x2d5451=_0x523577();while(!![]){try{const _0x2ae3b8=-parseInt(_0x14f431(0x114))/0x1*(-parseInt(_0x14f431(0xf2))/0x2)+parseInt(_0x14f431(0x13f))/0x3*(parseInt(_0x14f431(0x116))/0x4)+-parseInt(_0x14f431(0x14a))/0x5+parseInt(_0x14f431(0x11b))/0x6*(parseInt(_0x14f431(0xfd))/0x7)+parseInt(_0x14f431(0x105))/0x8*(parseInt(_0x14f431(0x15a))/0x9)+parseInt(_0x14f431(0x15c))/0xa*(-parseInt(_0x14f431(0xec))/0xb)+parseInt(_0x14f431(0x130))/0xc*(-parseInt(_0x14f431(0xf0))/0xd);if(_0x2ae3b8===_0x3b1b8e)break;else _0x2d5451['push'](_0x2d5451['shift']());}catch(_0x134bd5){_0x2d5451['push'](_0x2d5451['shift']());}}}(a0_0x37ae,0x61cea));import a0_0x43a73c from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';function a0_0x3277(_0x140122,_0x20bca5){const _0x37ae1a=a0_0x37ae();return a0_0x3277=function(_0x3277db,_0x449785){_0x3277db=_0x3277db-0xea;let _0xa4849f=_0x37ae1a[_0x3277db];return _0xa4849f;},a0_0x3277(_0x140122,_0x20bca5);}import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';function a0_0x37ae(){const _0x5384d2=['forEach','ox-input-code','desc','rank','querySelector','graphql','fields','type','setTabData','initData','studioPermission','toUpperCase','records','meta_generator','9tHUCzx','menu','14090GpXbeY','toLowerCase','tab_config','updateMultiple','data','rep_field','tagName','options','1188QwJjpJ','backToMenu','tTitle','getConfigTab','69043joXeUp','grid_config','62pEBvWl','graphql_config','value','tab','form_config','ConfigTab','getElementById','form','menu_config','define','ConfigTabConfig','230223aAIpbt','dec','details','etc_config','menuName','sortRecordByRank','column','charAt','3869512ufyaHL','select','name','dispatchEvent','ConfigTabValues','selectedIndex','remove','column_config','sorters','dataStorage','metaTemplate','pageInitialized','render','clear','shadowRoot','3394lLnkru','getState','2134684eazMgy','grid','sort_rank','grid_emphasized_config','get','108eRmYYj','tLabel','save','operatoTools','sort','styles','errors','parse','includes','refresh','display:none','display:flex','gridEmphasized','currentTabKey','stringify','etc','search','back','menuId','bind','context','1740hpTXbe','template','convertFirstCharUpperCase','tabData','length','set','keys','dirtyData','enc','ox-grist','query','filter','icon','button','option','3ttqVIo','lifecycle','search_config','map','button_config','slice','push','tButton','list','pageUpdated','style','1958455DNVtZI','hidden'];a0_0x37ae=function(){return _0x5384d2;};return a0_0x37ae();}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_0x74b016(0x120)](){return[css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -141,24 +141,24 @@ const a0_0x2b151e=a0_0x5637;(function(_0x36f2a7,_0x123678){const _0x50140f=a0_0x
141
141
  flex: 1;
142
142
  }
143
143
 
144
- `];}static get['properties'](){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_0x2b151e(0x216)](){const _0x5c5674=a0_0x2b151e;return{'title':TermsUtil[_0x5c5674(0x212)](_0x5c5674(0x1cc)),'actions':[{'title':TermsUtil['tButton'](_0x5c5674(0x1eb)),'action':this[_0x5c5674(0x1eb)]['bind'](this),...CommonButtonStyles['save']},{'title':TermsUtil[_0x5c5674(0x1ba)](_0x5c5674(0x202)),'action':this[_0x5c5674(0x208)]['bind'](this),...CommonButtonStyles['back']},{'title':TermsUtil[_0x5c5674(0x1ba)]('refresh'),'action':this[_0x5c5674(0x1da)][_0x5c5674(0x21c)](this),...CommonButtonStyles[_0x5c5674(0x1da)]}]};}[a0_0x2b151e(0x1ca)](_0x32a160,_0x585cf9){const _0x1d2938=a0_0x2b151e;let _0x5435a3=_0x32a160[_0x1d2938(0x1be)];_0x5435a3['records']=_0x5435a3[_0x1d2938(0x1f2)][_0x1d2938(0x226)](_0x58b157=>_0x58b157['id']!=_0x585cf9['id']),_0x32a160[_0x1d2938(0x21d)]=_0x5435a3;}async[a0_0x2b151e(0x1eb)](){const _0x1975fa=a0_0x2b151e;if(0x0==store[_0x1975fa(0x1e7)]()[_0x1975fa(0x1f8)]['studioPermission'])return void document[_0x1975fa(0x1b9)](new CustomEvent(_0x1975fa(0x1c9),{'detail':{'level':_0x1975fa(0x220),'message':i18next['t'](_0x1975fa(0x1f3))}}));if((await client[_0x1975fa(0x1e9)]({'query':a0_0x54932b`
144
+ `];}static get['properties'](){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_0x74b016(0x12f)](){const _0x4b1087=a0_0x74b016;return{'title':TermsUtil[_0x4b1087(0xee)](_0x4b1087(0x159)),'actions':[{'title':TermsUtil['tButton'](_0x4b1087(0x11d)),'action':this[_0x4b1087(0x11d)][_0x4b1087(0x12e)](this),...CommonButtonStyles['save']},{'title':TermsUtil[_0x4b1087(0x146)](_0x4b1087(0x12c)),'action':this[_0x4b1087(0xed)][_0x4b1087(0x12e)](this),...CommonButtonStyles[_0x4b1087(0x12c)]},{'title':TermsUtil[_0x4b1087(0x146)](_0x4b1087(0x124)),'action':this[_0x4b1087(0x124)]['bind'](this),...CommonButtonStyles[_0x4b1087(0x124)]}]};}['deleteRow'](_0x271432,_0x30cac6){const _0x411a4f=a0_0x74b016;let _0x1bf776=_0x271432['dirtyData'];_0x1bf776[_0x411a4f(0x158)]=_0x1bf776[_0x411a4f(0x158)][_0x411a4f(0x13b)](_0xc581df=>_0xc581df['id']!=_0x30cac6['id']),_0x271432[_0x411a4f(0x160)]=_0x1bf776;}async[a0_0x74b016(0x11d)](){const _0x5e207b=a0_0x74b016;if(0x0==store[_0x5e207b(0x115)]()[_0x5e207b(0x11e)][_0x5e207b(0x156)])return void document[_0x5e207b(0x108)](new CustomEvent('notify',{'detail':{'level':'error','message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client[_0x5e207b(0x13a)]({'query':a0_0x43a73c`
145
145
  query ($id: String!) {
146
146
  studioTemplateIsOverLimit(id: $id)
147
147
  }
148
- `,'variables':{'id':this[_0x1975fa(0x1c4)]}}))[_0x1975fa(0x1c8)])return;let _0x4f9d2d={},_0x40b9cb={};Object['keys'](this[_0x1975fa(0x1e4)])['forEach'](_0x1afda7=>{const _0x3235ad=_0x1975fa;let _0x8b160d=this['convertFirstCharUpperCase'](_0x1afda7);_0x4f9d2d[_0x1afda7]=this[_0x3235ad(0x1b8)+_0x8b160d+_0x3235ad(0x219)](),_0x40b9cb=merge(_0x40b9cb,_0x4f9d2d[_0x1afda7]);}),_0x40b9cb=JSON['stringify'](_0x40b9cb),_0x40b9cb=MetaCrypto['enc'](_0x40b9cb),await MetaApi['updateMultiple'](_0x1975fa(0x20c),[{'id':this[_0x1975fa(0x1c4)],'template':_0x40b9cb,'cuFlag':'M'}])&&await this['initData']();}[a0_0x2b151e(0x1c0)](){const _0x2c4805=a0_0x2b151e;this[_0x2c4805(0x22b)](),this[_0x2c4805(0x205)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this[_0x2c4805(0x1e4)])[_0x2c4805(0x1f9)](_0x2c9bba=>{const _0x2299e3=_0x2c4805;let _0x4be720=this[_0x2299e3(0x1f0)](_0x2c9bba);if(this[_0x2299e3(0x20a)+_0x4be720+_0x2299e3(0x219)])return this[_0x2299e3(0x20a)+_0x4be720+_0x2299e3(0x219)](this[_0x2299e3(0x205)][_0x2c9bba]);});}async[a0_0x2b151e(0x1da)](){const _0x101bfd=a0_0x2b151e;this[_0x101bfd(0x1c0)](),await this[_0x101bfd(0x203)]();}[a0_0x2b151e(0x208)](){history['back']();}async['initData'](){const _0x5c4ac2=a0_0x2b151e;var {menuId:_0x402475=''}=this[_0x5c4ac2(0x1e8)]?.[_0x5c4ac2(0x20e)]?this['lifecycle'][_0x5c4ac2(0x20e)]:{};if(this[_0x5c4ac2(0x1c4)]=_0x402475,!_0x402475||''==_0x402475)return void this['clear']();let _0xd0109d=await MetaApi[_0x5c4ac2(0x1c3)](_0x5c4ac2(0x20f),_0x402475,_0x5c4ac2(0x1cd));if(_0xd0109d){try{JSON[_0x5c4ac2(0x215)](MetaCrypto['dec'](_0xd0109d['template']));}catch(_0x2dd276){return;}this[_0x5c4ac2(0x200)]=TermsUtil['tMenu'](_0xd0109d[_0x5c4ac2(0x221)]),this['metaTemplate']=_0xd0109d[_0x5c4ac2(0x1d2)]?JSON[_0x5c4ac2(0x215)](MetaCrypto['dec'](_0xd0109d[_0x5c4ac2(0x1d2)])):{};var {menu:_0x4d6598={},gql:_0x22bb01={},button:_0x5aa0ef=[],grid_column:_0x4fe1e2=[],grid:_0x4f6af1={},search:_0x307a62=[],form:_0x352eaf=[],tab:_0xa459e6=[],etc:_0x32047a={},gridEmphasized:_0x4ebfa5=[]}=this['metaTemplate']?this['metaTemplate']:{};this[_0x5c4ac2(0x22b)](),this[_0x5c4ac2(0x205)]={},this[_0x5c4ac2(0x205)]['menu']=_0x4d6598,this['dataStorage'][_0x5c4ac2(0x213)]=_0x22bb01,this[_0x5c4ac2(0x205)]['grid']=_0x4f6af1,this[_0x5c4ac2(0x205)]['form']=_0x352eaf,this['dataStorage'][_0x5c4ac2(0x206)]=_0xa459e6,this['dataStorage'][_0x5c4ac2(0x1fc)]=_0x32047a,this['dataStorage'][_0x5c4ac2(0x22c)]=_0x4ebfa5,(_0x4f6af1[_0x5c4ac2(0x1f4)]?.['sorters']||[])[_0x5c4ac2(0x1f9)]((_0x25891d,_0x37c383)=>{const _0x2b48fc=_0x5c4ac2;_0x25891d[_0x2b48fc(0x1ff)]=0xa*(_0x37c383+0x1);}),this[_0x5c4ac2(0x205)][_0x5c4ac2(0x1fb)]=_0x4fe1e2[_0x5c4ac2(0x204)](_0x36bca2=>{const _0x4ac830=_0x5c4ac2;let _0x257292=(_0x4f6af1[_0x4ac830(0x1f4)]?.[_0x4ac830(0x21e)]||[])[_0x4ac830(0x226)](_0x20bb56=>_0x20bb56[_0x4ac830(0x221)]==_0x36bca2['name']);return _0x257292&&_0x257292[_0x4ac830(0x1d7)]>0x0?(_0x36bca2[_0x4ac830(0x1bb)]=_0x257292[0x0][_0x4ac830(0x1ff)],_0x36bca2[_0x4ac830(0x1e2)]=!!_0x257292[0x0]['desc']&&_0x257292[0x0][_0x4ac830(0x1e5)]):_0x36bca2['sort_rank']=0x0,_0x36bca2['rep_field']=(_0x4f6af1[_0x4ac830(0x1ee)]?.[_0x4ac830(0x1ed)]||[])[_0x4ac830(0x1dc)](_0x36bca2[_0x4ac830(0x221)]),_0x36bca2[_0x4ac830(0x1b7)]=(_0x4f6af1[_0x4ac830(0x1ee)]?.[_0x4ac830(0x1c2)]||[])[_0x4ac830(0x1dc)](_0x36bca2['name']),_0x36bca2[_0x4ac830(0x21a)]=_0x4f6af1['list']?.[_0x4ac830(0x225)]==_0x36bca2['name'],_0x36bca2;}),_0x307a62[_0x5c4ac2(0x214)](...(_0x22bb01[_0x5c4ac2(0x1e9)]?.[_0x5c4ac2(0x20d)]||[])[_0x5c4ac2(0x204)](_0x380afa=>(_0x380afa[_0x5c4ac2(0x1dd)]=!0x0,_0x380afa))),this[_0x5c4ac2(0x205)][_0x5c4ac2(0x201)]=_0x307a62,_0x5aa0ef['push'](...(_0x4f6af1['button']||[])[_0x5c4ac2(0x204)](_0x1fe239=>(_0x1fe239['type']=_0x5c4ac2(0x228)+_0x1fe239[_0x5c4ac2(0x1bc)],_0x1fe239[_0x5c4ac2(0x1c6)]=_0x1fe239[_0x5c4ac2(0x1f5)],_0x1fe239))),this[_0x5c4ac2(0x205)]['button']=_0x5aa0ef,Object[_0x5c4ac2(0x1d5)](this[_0x5c4ac2(0x1e4)])[_0x5c4ac2(0x1f9)](_0xc4962c=>{const _0x18409b=_0x5c4ac2;let _0x443702=this[_0x18409b(0x1f0)](_0xc4962c);if(this['set'+_0x443702+_0x18409b(0x219)])return this[_0x18409b(0x20a)+_0x443702+_0x18409b(0x219)](this[_0x18409b(0x205)][_0xc4962c]);});}}async[a0_0x2b151e(0x1e3)](){const _0x55fc24=a0_0x2b151e;this[_0x55fc24(0x22b)]();let _0x5c4cac=Object[_0x55fc24(0x1d5)](this[_0x55fc24(0x1e4)]);for(var _0x4c6612=0x0;_0x4c6612<_0x5c4cac[_0x55fc24(0x1d7)];_0x4c6612++){let _0x11fe72=this[_0x55fc24(0x1f0)](_0x5c4cac[_0x4c6612]);this[_0x55fc24(0x20a)+_0x11fe72+_0x55fc24(0x1bf)]&&await this['set'+_0x11fe72+_0x55fc24(0x1bf)]();}}async[a0_0x2b151e(0x1cb)](_0xfa3d82,_0x5ec31f,_0x29079a){const _0x17ec9e=a0_0x2b151e;!0x0===this['active']?(this[_0x17ec9e(0x22b)](),await this[_0x17ec9e(0x203)](),this[_0x17ec9e(0x22b)]()):(this[_0x17ec9e(0x1c0)](),this['remove']());}['setTabData'](){const _0x469a6c=a0_0x2b151e;this[_0x469a6c(0x1e4)]||(this[_0x469a6c(0x1e4)]={'menu':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1d9)),'graphql':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1fe)),'grid':TermsUtil['tLabel'](_0x469a6c(0x20b)),'column':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1d3)),'gridEmphasized':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x218)),'button':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1d8)),'search':TermsUtil[_0x469a6c(0x1c1)]('search_config'),'form':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1bd)),'tab':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x1ce)),'etc':TermsUtil[_0x469a6c(0x1c1)](_0x469a6c(0x222))});}['render'](){const _0x55f645=a0_0x2b151e;this[_0x55f645(0x1fa)]||(this[_0x55f645(0x1fa)]='menu'),this[_0x55f645(0x22b)]();let _0x1700f8=Object[_0x55f645(0x1d5)](this[_0x55f645(0x1e4)]);return this['tabData'][this[_0x55f645(0x1fa)]]?this['currentTabKey']:_0x1700f8[0x0],html`
149
- <h1>${this[_0x55f645(0x200)]}</h1>
148
+ `,'variables':{'id':this[_0x5e207b(0x12d)]}}))[_0x5e207b(0x121)])return;let _0x2f40f6={},_0x3441c1={};Object[_0x5e207b(0x136)](this[_0x5e207b(0x133)])['forEach'](_0x5aa26b=>{const _0x356247=_0x5e207b;let _0x275804=this[_0x356247(0x132)](_0x5aa26b);_0x2f40f6[_0x5aa26b]=this[_0x356247(0x11a)+_0x275804+_0x356247(0x109)](),_0x3441c1=merge(_0x3441c1,_0x2f40f6[_0x5aa26b]);}),_0x3441c1=JSON[_0x5e207b(0x129)](_0x3441c1),_0x3441c1=MetaCrypto[_0x5e207b(0x138)](_0x3441c1),await MetaApi[_0x5e207b(0x15f)]('updateMultipleMenu',[{'id':this['menuId'],'template':_0x3441c1,'cuFlag':'M'}])&&await this[_0x5e207b(0x155)]();}[a0_0x74b016(0x112)](){const _0x4c9fef=a0_0x74b016;this[_0x4c9fef(0x154)](),this[_0x4c9fef(0x10e)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this[_0x4c9fef(0x133)])[_0x4c9fef(0x14c)](_0x145288=>{const _0x5e87bb=_0x4c9fef;let _0x2d211b=this[_0x5e87bb(0x132)](_0x145288);if(this[_0x5e87bb(0x135)+_0x2d211b+_0x5e87bb(0x109)])return this[_0x5e87bb(0x135)+_0x2d211b+_0x5e87bb(0x109)](this['dataStorage'][_0x145288]);});}async['refresh'](){const _0x12871c=a0_0x74b016;this[_0x12871c(0x112)](),await this[_0x12871c(0x155)]();}[a0_0x74b016(0xed)](){const _0x3340d4=a0_0x74b016;history[_0x3340d4(0x12c)]();}async[a0_0x74b016(0x155)](){const _0x25778d=a0_0x74b016;var {menuId:_0x450817=''}=this[_0x25778d(0x140)]?.['params']?this[_0x25778d(0x140)]['params']:{};if(this[_0x25778d(0x12d)]=_0x450817,!_0x450817||''==_0x450817)return void this[_0x25778d(0x112)]();let _0x1c9711=await MetaApi['findOne'](_0x25778d(0x15b),_0x450817,'\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(_0x1c9711){try{JSON[_0x25778d(0x122)](MetaCrypto[_0x25778d(0xfe)](_0x1c9711['template']));}catch(_0x4bb516){return;}this[_0x25778d(0x101)]=TermsUtil['tMenu'](_0x1c9711['name']),this[_0x25778d(0x10f)]=_0x1c9711[_0x25778d(0x131)]?JSON[_0x25778d(0x122)](MetaCrypto[_0x25778d(0xfe)](_0x1c9711[_0x25778d(0x131)])):{};var {menu:_0x354138={},gql:_0x378392={},button:_0xc4f82b=[],grid_column:_0x5ec000=[],grid:_0x54a650={},search:_0x3df7be=[],form:_0x3755d0=[],tab:_0x298224=[],etc:_0x3529f4={},gridEmphasized:_0x1987c2=[]}=this[_0x25778d(0x10f)]?this['metaTemplate']:{};this[_0x25778d(0x154)](),this['dataStorage']={},this['dataStorage'][_0x25778d(0x15b)]=_0x354138,this[_0x25778d(0x10e)][_0x25778d(0x151)]=_0x378392,this['dataStorage'][_0x25778d(0x117)]=_0x54a650,this['dataStorage'][_0x25778d(0xf9)]=_0x3755d0,this[_0x25778d(0x10e)][_0x25778d(0xf5)]=_0x298224,this[_0x25778d(0x10e)][_0x25778d(0x12a)]=_0x3529f4,this[_0x25778d(0x10e)][_0x25778d(0x127)]=_0x1987c2,(_0x54a650['option']?.[_0x25778d(0x10d)]||[])[_0x25778d(0x14c)]((_0x458c2d,_0x48b8b7)=>{_0x458c2d['rank']=0xa*(_0x48b8b7+0x1);}),this[_0x25778d(0x10e)][_0x25778d(0x103)]=_0x5ec000[_0x25778d(0x142)](_0x3c4464=>{const _0x25235b=_0x25778d;let _0x14f524=(_0x54a650[_0x25235b(0x13e)]?.['sorters']||[])['filter'](_0x4268ca=>_0x4268ca[_0x25235b(0x107)]==_0x3c4464[_0x25235b(0x107)]);return _0x14f524&&_0x14f524[_0x25235b(0x134)]>0x0?(_0x3c4464[_0x25235b(0x118)]=_0x14f524[0x0][_0x25235b(0x14f)],_0x3c4464['sort_desc']=!!_0x14f524[0x0][_0x25235b(0x14e)]&&_0x14f524[0x0][_0x25235b(0x14e)]):_0x3c4464['sort_rank']=0x0,_0x3c4464[_0x25235b(0x161)]=(_0x54a650[_0x25235b(0x147)]?.[_0x25235b(0x152)]||[])[_0x25235b(0x123)](_0x3c4464[_0x25235b(0x107)]),_0x3c4464['detail_field']=(_0x54a650['list']?.[_0x25235b(0xff)]||[])[_0x25235b(0x123)](_0x3c4464['name']),_0x3c4464['thumbnail_field']=_0x54a650[_0x25235b(0x147)]?.['thumbnail']==_0x3c4464['name'],_0x3c4464;}),_0x3df7be['push'](...(_0x378392[_0x25778d(0x13a)]?.['filters']||[])[_0x25778d(0x142)](_0x2f1277=>(_0x2f1277[_0x25778d(0x14b)]=!0x0,_0x2f1277))),this['dataStorage'][_0x25778d(0x12b)]=_0x3df7be,_0xc4f82b[_0x25778d(0x145)](...(_0x54a650[_0x25778d(0x13d)]||[])[_0x25778d(0x142)](_0x5d84f7=>(_0x5d84f7[_0x25778d(0x153)]='grid-'+_0x5d84f7[_0x25778d(0x153)],_0x5d84f7[_0x25778d(0x149)]=_0x5d84f7[_0x25778d(0x13c)],_0x5d84f7))),this[_0x25778d(0x10e)][_0x25778d(0x13d)]=_0xc4f82b,Object[_0x25778d(0x136)](this[_0x25778d(0x133)])[_0x25778d(0x14c)](_0x4c1399=>{const _0x7c7bef=_0x25778d;let _0x2c0f6c=this[_0x7c7bef(0x132)](_0x4c1399);if(this[_0x7c7bef(0x135)+_0x2c0f6c+'ConfigTabValues'])return this[_0x7c7bef(0x135)+_0x2c0f6c+_0x7c7bef(0x109)](this[_0x7c7bef(0x10e)][_0x4c1399]);});}}async[a0_0x74b016(0x110)](){const _0x276f15=a0_0x74b016;this[_0x276f15(0x154)]();let _0x157891=Object['keys'](this[_0x276f15(0x133)]);for(var _0x2a9018=0x0;_0x2a9018<_0x157891[_0x276f15(0x134)];_0x2a9018++){let _0x5c92aa=this['convertFirstCharUpperCase'](_0x157891[_0x2a9018]);this[_0x276f15(0x135)+_0x5c92aa+_0x276f15(0xfc)]&&await this[_0x276f15(0x135)+_0x5c92aa+'ConfigTabConfig']();}}async[a0_0x74b016(0x148)](_0x321473,_0x2e6afa,_0x2caefc){const _0x45ca19=a0_0x74b016;!0x0===this['active']?(this['setTabData'](),await this['initData'](),this[_0x45ca19(0x154)]()):(this[_0x45ca19(0x112)](),this[_0x45ca19(0x10b)]());}[a0_0x74b016(0x154)](){const _0xf911da=a0_0x74b016;this['tabData']||(this[_0xf911da(0x133)]={'menu':TermsUtil[_0xf911da(0x11c)](_0xf911da(0xfa)),'graphql':TermsUtil['tLabel'](_0xf911da(0xf3)),'grid':TermsUtil[_0xf911da(0x11c)](_0xf911da(0xf1)),'column':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x10c)),'gridEmphasized':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x119)),'button':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x143)),'search':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x141)),'form':TermsUtil[_0xf911da(0x11c)](_0xf911da(0xf6)),'tab':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x15e)),'etc':TermsUtil[_0xf911da(0x11c)](_0xf911da(0x100))});}['render'](){const _0x49153f=a0_0x74b016;this[_0x49153f(0x128)]||(this[_0x49153f(0x128)]='menu'),this['setTabData']();let _0x4211b8=Object[_0x49153f(0x136)](this[_0x49153f(0x133)]);return this['tabData'][this[_0x49153f(0x128)]]?this['currentTabKey']:_0x4211b8[0x0],html`
149
+ <h1>${this['menuName']}</h1>
150
150
  <div class="tabs">
151
- ${_0x1700f8[_0x55f645(0x204)](_0x543560=>{const _0x20d0c5=_0x55f645;let _0x148303=this[_0x20d0c5(0x1e4)][_0x543560];return html`
152
- <div class="tab" ?activate="${_0x543560===this[_0x20d0c5(0x1fa)]}" @click="${()=>this[_0x20d0c5(0x1fa)]=_0x543560}">
153
- <span>${_0x148303}</span>
151
+ ${_0x4211b8['map'](_0x3600e=>{const _0x1eeff5=_0x49153f;let _0x51ae14=this[_0x1eeff5(0x133)][_0x3600e];return html`
152
+ <div class="tab" ?activate="${_0x3600e===this[_0x1eeff5(0x128)]}" @click="${()=>this[_0x1eeff5(0x128)]=_0x3600e}">
153
+ <span>${_0x51ae14}</span>
154
154
  </div>
155
155
  `;})}
156
156
  </div>
157
157
  <div class="content-container">
158
- ${_0x1700f8['map'](_0x5c916d=>{const _0x147354=_0x55f645;let _0x25d81e=_0x147354(0x223);return _0x5c916d==this['currentTabKey']&&(_0x25d81e='display:flex'),html`
159
- <div class='tab-contents' style="${_0x25d81e}">
160
- ${this[_0x147354(0x1e0)](_0x5c916d)}
158
+ ${_0x4211b8[_0x49153f(0x142)](_0x1a5cc1=>{const _0x1b315f=_0x49153f;let _0x86aea3=_0x1b315f(0x125);return _0x1a5cc1==this[_0x1b315f(0x128)]&&(_0x86aea3=_0x1b315f(0x126)),html`
159
+ <div class='tab-contents' style="${_0x86aea3}">
160
+ ${this[_0x1b315f(0xef)](_0x1a5cc1)}
161
161
  </div>
162
162
  `;})}
163
163
  </div>
164
- `;}['getConfigTab'](_0x144b29){const _0x174498=a0_0x2b151e;let _0x2a1f97=this['convertFirstCharUpperCase'](_0x144b29);return this[_0x174498(0x1cf)+_0x2a1f97+_0x174498(0x1d4)]?this[_0x174498(0x1cf)+_0x2a1f97+_0x174498(0x1d4)]():html``;}[a0_0x2b151e(0x1f0)](_0x40d791){const _0x5ecf2d=a0_0x2b151e;return _0x40d791[_0x5ecf2d(0x217)](0x0)[_0x5ecf2d(0x1c7)]()+_0x40d791['slice'](0x1);}[a0_0x2b151e(0x227)](_0x48775d){return this['shadowRoot']['querySelector']('#'+_0x48775d);}[a0_0x2b151e(0x1d6)](_0x2519df){const _0x13a5c9=a0_0x2b151e;let _0x329bbc=this['shadowRoot'][_0x13a5c9(0x1ec)]('#'+_0x2519df);if(!_0x329bbc)return;let _0x42d42f='';if(_0x13a5c9(0x224)==_0x329bbc[_0x13a5c9(0x209)]['toLowerCase']()){if(!_0x329bbc[_0x13a5c9(0x207)]||0x0==_0x329bbc['options']['length'])return;_0x42d42f=_0x329bbc['options'][_0x329bbc[_0x13a5c9(0x1ea)]]['value'];}else{if(_0x13a5c9(0x229)==_0x329bbc['tagName'][_0x13a5c9(0x1f7)]()){if(!_0x329bbc['dirtyData'])return;if(!_0x329bbc[_0x13a5c9(0x1be)][_0x13a5c9(0x1f2)])return;if(0x0==_0x329bbc[_0x13a5c9(0x1be)]['records'][_0x13a5c9(0x1d7)])return;return _0x329bbc['dirtyData'][_0x13a5c9(0x1f2)];}if(_0x13a5c9(0x21f)==_0x329bbc['tagName'][_0x13a5c9(0x1f7)]())return _0x329bbc[_0x13a5c9(0x1f1)];if('radio'==_0x329bbc[_0x13a5c9(0x1bc)][_0x13a5c9(0x1f7)]()){let _0x33a24f=this[_0x13a5c9(0x1d0)][_0x13a5c9(0x1ec)]('#'+_0x2519df+_0x13a5c9(0x1fd));if(!_0x33a24f)return;return _0x33a24f['value'];}_0x42d42f=_0x329bbc[_0x13a5c9(0x1f1)];}return _0x42d42f&&''!=_0x42d42f?_0x42d42f:void 0x0;}['sortRecordByRank'](_0x39dd08){const _0x296d8c=a0_0x2b151e;return _0x39dd08?this[_0x296d8c(0x1de)](_0x39dd08,_0x296d8c(0x1ff)):_0x39dd08;}[a0_0x2b151e(0x1de)](_0x54b795,_0x213cd2){const _0xdf232=a0_0x2b151e;return _0x54b795[_0xdf232(0x1df)]((_0xc1db6b,_0x26f7ba)=>_0xc1db6b[_0x213cd2]-_0x26f7ba[_0x213cd2]),_0x54b795;}}customElements[a0_0x2b151e(0x21b)](a0_0x2b151e(0x211),MetaGeneratorPage);
164
+ `;}[a0_0x74b016(0xef)](_0x3c9384){const _0x4dc03e=a0_0x74b016;let _0x5788d2=this[_0x4dc03e(0x132)](_0x3c9384);return this[_0x4dc03e(0x111)+_0x5788d2+_0x4dc03e(0xf7)]?this[_0x4dc03e(0x111)+_0x5788d2+'ConfigTab']():html``;}[a0_0x74b016(0x132)](_0x21b797){const _0x22d629=a0_0x74b016;return _0x21b797[_0x22d629(0x104)](0x0)[_0x22d629(0x157)]()+_0x21b797[_0x22d629(0x144)](0x1);}[a0_0x74b016(0xf8)](_0x3d069b){return this['shadowRoot']['querySelector']('#'+_0x3d069b);}['getElementValueById'](_0x3d8698){const _0x192e21=a0_0x74b016;let _0x43852e=this['shadowRoot'][_0x192e21(0x150)]('#'+_0x3d8698);if(!_0x43852e)return;let _0x19a5ab='';if(_0x192e21(0x106)==_0x43852e[_0x192e21(0xea)][_0x192e21(0x15d)]()){if(!_0x43852e[_0x192e21(0xeb)]||0x0==_0x43852e['options'][_0x192e21(0x134)])return;_0x19a5ab=_0x43852e[_0x192e21(0xeb)][_0x43852e[_0x192e21(0x10a)]][_0x192e21(0xf4)];}else{if(_0x192e21(0x139)==_0x43852e['tagName'][_0x192e21(0x15d)]()){if(!_0x43852e[_0x192e21(0x137)])return;if(!_0x43852e[_0x192e21(0x137)]['records'])return;if(0x0==_0x43852e[_0x192e21(0x137)][_0x192e21(0x158)][_0x192e21(0x134)])return;return _0x43852e[_0x192e21(0x137)][_0x192e21(0x158)];}if(_0x192e21(0x14d)==_0x43852e[_0x192e21(0xea)][_0x192e21(0x15d)]())return _0x43852e[_0x192e21(0xf4)];if('radio'==_0x43852e[_0x192e21(0x153)]['toLowerCase']()){let _0xc32089=this[_0x192e21(0x113)]['querySelector']('#'+_0x3d8698+':checked');if(!_0xc32089)return;return _0xc32089[_0x192e21(0xf4)];}_0x19a5ab=_0x43852e[_0x192e21(0xf4)];}return _0x19a5ab&&''!=_0x19a5ab?_0x19a5ab:void 0x0;}[a0_0x74b016(0x102)](_0x11e421){const _0x2448f4=a0_0x74b016;return _0x11e421?this['sortRecordByField'](_0x11e421,_0x2448f4(0x14f)):_0x11e421;}['sortRecordByField'](_0x45f24a,_0x333e8d){const _0x381484=a0_0x74b016;return _0x45f24a[_0x381484(0x11f)]((_0x46b761,_0x206ee2)=>_0x46b761[_0x333e8d]-_0x206ee2[_0x333e8d]),_0x45f24a;}}customElements[a0_0x74b016(0xfb)]('meta-generator-page',MetaGeneratorPage);
@@ -1,4 +1,4 @@
1
- const a0_0x47dd63=a0_0x5db0;function a0_0x5db0(_0x422da4,_0x3a978a){const _0x14b8d5=a0_0x14b8();return a0_0x5db0=function(_0x5db0e0,_0x1c151a){_0x5db0e0=_0x5db0e0-0x89;let _0x2ee18b=_0x14b8d5[_0x5db0e0];return _0x2ee18b;},a0_0x5db0(_0x422da4,_0x3a978a);}(function(_0x11ace0,_0x454a51){const _0x358f92=a0_0x5db0,_0xe52710=_0x11ace0();while(!![]){try{const _0x393b56=parseInt(_0x358f92(0xae))/0x1+-parseInt(_0x358f92(0x8b))/0x2+-parseInt(_0x358f92(0xa4))/0x3+parseInt(_0x358f92(0xa2))/0x4*(-parseInt(_0x358f92(0x93))/0x5)+-parseInt(_0x358f92(0x8d))/0x6*(-parseInt(_0x358f92(0x8c))/0x7)+-parseInt(_0x358f92(0xb1))/0x8+parseInt(_0x358f92(0x89))/0x9;if(_0x393b56===_0x454a51)break;else _0xe52710['push'](_0xe52710['shift']());}catch(_0x4a00aa){_0xe52710['push'](_0xe52710['shift']());}}}(a0_0x14b8,0x604b3));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=_0xc4fba0=>class extends _0xc4fba0{[a0_0x47dd63(0xa1)](_0x45673c){const _0x4f058b=a0_0x47dd63;let _0x6a00f0=_0x45673c?.[_0x4f058b(0xb9)]((_0x9c4e8c,_0x5f4539)=>{const _0x239937=_0x4f058b;let _0x3f3c14=_0x5f4539+0x1,_0x45b165={};return _0x239937(0x92)==typeof _0x9c4e8c?Object['assign'](_0x45b165,_0x9c4e8c):(_0x45b165[_0x239937(0xa8)]=_0x9c4e8c,_0x45b165[_0x239937(0xaf)]='filter'),_0x45b165[_0x239937(0x9c)]=0xa*_0x3f3c14,_0x45b165['id']=_0x3f3c14,_0x45b165;});this['viewSearchData']=_0x6a00f0||[],this[_0x4f058b(0xb0)]?.[_0x4f058b(0x9e)]();}['getSearchConfigTabValues'](){const _0x453916=a0_0x47dd63;let _0x1c7ec7={'search':[],'gql':{'query':{'filters':[]}}},_0x38806e=this[_0x453916(0x94)](_0x453916(0xad));return this[_0x453916(0x95)](_0x38806e)?.[_0x453916(0xb2)](_0x539481=>{const _0x2e9345=_0x453916;var {name:_0x133119,operator:_0x41b45d='eq',hidden:_0x222268=!0x1,value:_0x1b18ad}=_0x539481;if(_0x133119){if(_0x2e9345(0xab)==_0x41b45d)_0x1c7ec7[_0x2e9345(0x97)][_0x2e9345(0xb7)](_0x133119);else{let _0x47041c={'name':_0x133119,'operator':_0x41b45d};0x1==_0x222268?(_0x47041c[_0x2e9345(0x8f)]=_0x1b18ad,_0x1c7ec7[_0x2e9345(0x91)][_0x2e9345(0xa5)][_0x2e9345(0x9a)][_0x2e9345(0xb7)](_0x47041c)):(_0x47041c[_0x2e9345(0x8f)]=_0x1b18ad,_0x1c7ec7[_0x2e9345(0x97)]['push'](_0x47041c));}}}),_0x1c7ec7;}[a0_0x47dd63(0x8a)](){const _0x3891ef=a0_0x47dd63;return html`
1
+ const a0_0x6ad23b=a0_0x113a;(function(_0x39465a,_0x8b082b){const _0xc28d1e=a0_0x113a,_0x3d7bd0=_0x39465a();while(!![]){try{const _0x33600f=parseInt(_0xc28d1e(0x1cb))/0x1+parseInt(_0xc28d1e(0x1f4))/0x2+parseInt(_0xc28d1e(0x1d1))/0x3*(-parseInt(_0xc28d1e(0x1e0))/0x4)+-parseInt(_0xc28d1e(0x1e2))/0x5+parseInt(_0xc28d1e(0x1ee))/0x6+parseInt(_0xc28d1e(0x1e3))/0x7+parseInt(_0xc28d1e(0x1f5))/0x8*(-parseInt(_0xc28d1e(0x1dd))/0x9);if(_0x33600f===_0x8b082b)break;else _0x3d7bd0['push'](_0x3d7bd0['shift']());}catch(_0x3eb1f2){_0x3d7bd0['push'](_0x3d7bd0['shift']());}}}(a0_0x8bb1,0xa877b));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_0x113a(_0x5d9512,_0x5b3c23){const _0x8bb147=a0_0x8bb1();return a0_0x113a=function(_0x113aac,_0x480b53){_0x113aac=_0x113aac-0x1c1;let _0x3dc1f4=_0x8bb147[_0x113aac];return _0x3dc1f4;},a0_0x113a(_0x5d9512,_0x5b3c23);}export const SearchConfigTabMixin=_0x32c344=>class extends _0x32c344{[a0_0x6ad23b(0x1eb)](_0x204b66){const _0x17313d=a0_0x6ad23b;let _0x2f8bab=_0x204b66?.[_0x17313d(0x1d0)]((_0x48b399,_0x379cb5)=>{const _0x5e4c54=_0x17313d;let _0x996135=_0x379cb5+0x1,_0x12085a={};return'object'==typeof _0x48b399?Object[_0x5e4c54(0x1d7)](_0x12085a,_0x48b399):(_0x12085a['name']=_0x48b399,_0x12085a[_0x5e4c54(0x1cd)]=_0x5e4c54(0x1d9)),_0x12085a['rank']=0xa*_0x996135,_0x12085a['id']=_0x996135,_0x12085a;});this[_0x17313d(0x1df)]=_0x2f8bab||[],this[_0x17313d(0x1e4)]?.['fetch']();}[a0_0x6ad23b(0x1c6)](){const _0xcf8818=a0_0x6ad23b;let _0x208659={'search':[],'gql':{'query':{'filters':[]}}},_0x485a78=this[_0xcf8818(0x1d4)](_0xcf8818(0x1c2));return this[_0xcf8818(0x1e8)](_0x485a78)?.[_0xcf8818(0x1d5)](_0x3beb74=>{const _0x42e6f1=_0xcf8818;var {name:_0x590541,operator:_0x2e4f8a='eq',hidden:_0x147f91=!0x1,value:_0x3b4946}=_0x3beb74;if(_0x590541){if('filter'==_0x2e4f8a)_0x208659['search'][_0x42e6f1(0x1dc)](_0x590541);else{let _0x27322e={'name':_0x590541,'operator':_0x2e4f8a};0x1==_0x147f91?(_0x27322e[_0x42e6f1(0x1d3)]=_0x3b4946,_0x208659[_0x42e6f1(0x1e9)]['query']['filters'][_0x42e6f1(0x1dc)](_0x27322e)):(_0x27322e[_0x42e6f1(0x1d3)]=_0x3b4946,_0x208659[_0x42e6f1(0x1f2)][_0x42e6f1(0x1dc)](_0x27322e));}}}),_0x208659;}[a0_0x6ad23b(0x1c7)](){const _0x4b2125=a0_0x6ad23b;return html`
2
2
  <ox-grist auto-fetch id="search-tab-grid" .config=${this['searchTabGridConfig']} .mode='GRID'
3
- .fetchHandler=${this[_0x3891ef(0x9f)][_0x3891ef(0x9d)](this)}>
4
- </ox-grist>`;}get['searchTabGrist'](){const _0xd1de4=a0_0x47dd63;return this[_0xd1de4(0x8e)][_0xd1de4(0xa6)](_0xd1de4(0xac));}async[a0_0x47dd63(0x9f)](){const _0x302796=a0_0x47dd63;return{'total':0x0,'records':this[_0x302796(0xb8)]||[]};}async[a0_0x47dd63(0x98)](){const _0x4d5559=a0_0x47dd63;let _0x292108=await MetaApi['getCodeSelectorData'](_0x4d5559(0xa9));this['searchTabGridConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x4d5559(0x9c),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x4d5559(0xb3)](!0x1,!0x1),{'type':'gutter','gutterName':_0x4d5559(0xa3),'icon':_0x4d5559(0xb6),'handlers':{'click':(_0x52675e,_0x272537,_0x21c347,_0xd9a74b,_0x517f6b)=>{const _0x4cee03=_0x4d5559;_0xd9a74b['id']&&this[_0x4cee03(0x90)](this['searchTabGrist'],_0xd9a74b);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'integer','name':_0x4d5559(0x9c),'header':TermsUtil[_0x4d5559(0x9b)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x4d5559(0xa8),'header':TermsUtil[_0x4d5559(0x9b)](_0x4d5559(0xa8)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x4d5559(0xb4),'editable':!0x0,'mandatory':!0x0}},{'type':_0x4d5559(0xaa),'name':_0x4d5559(0xaf),'header':TermsUtil[_0x4d5559(0x9b)]('search_operator'),'sortable':!0x1,'width':0x64,'record':{'align':_0x4d5559(0xb4),'editable':!0x0,'mandatory':!0x1,'options':_0x292108}},{'type':_0x4d5559(0xa7),'name':_0x4d5559(0xb5),'header':TermsUtil[_0x4d5559(0x9b)](_0x4d5559(0xb5)),'sortable':!0x1,'width':0x41,'record':{'align':_0x4d5559(0x96),'mandatory':!0x1,'editable':!0x0}},{'type':_0x4d5559(0xa0),'name':_0x4d5559(0x8f),'header':TermsUtil['tLabel'](_0x4d5559(0x99)),'sortable':!0x1,'width':0xc8,'record':{'align':'left','editable':!0x0,'mandatory':!0x1}}]};}};function a0_0x14b8(){const _0xa780da=['button','975471XIOtxK','query','querySelector','boolean','name','FILTER_OPERATORS','select','filter','#search-tab-grid','search-tab-grid','3814cVLyES','operator','searchTabGrist','484976bxKoIU','forEach','getGristGuttersConfig','left','hidden','delete','push','viewSearchData','map','12962700ngLuev','renderSearchConfigTab','1385906LgTUeH','28wboshl','222114CygOvJ','shadowRoot','value','deleteRow','gql','object','5aCzRzD','getElementValueById','sortRecordByRank','center','search','setSearchConfigTabConfig','default_value','filters','tLabel','rank','bind','fetch','fetchSearchTabHandler','string','setSearchConfigTabValues','476156jEuZBF'];a0_0x14b8=function(){return _0xa780da;};return a0_0x14b8();}
3
+ .fetchHandler=${this[_0x4b2125(0x1d2)][_0x4b2125(0x1da)](this)}>
4
+ </ox-grist>`;}get[a0_0x6ad23b(0x1e4)](){const _0xbfcb01=a0_0x6ad23b;return this[_0xbfcb01(0x1ef)][_0xbfcb01(0x1f1)](_0xbfcb01(0x1c9));}async[a0_0x6ad23b(0x1d2)](){const _0x5d172d=a0_0x6ad23b;return{'total':0x0,'records':this[_0x5d172d(0x1df)]||[]};}async[a0_0x6ad23b(0x1e5)](){const _0x4f23ba=a0_0x6ad23b;let _0x28483e=await MetaApi[_0x4f23ba(0x1c8)](_0x4f23ba(0x1c4));this[_0x4f23ba(0x1ca)]={'rows':MetaApi[_0x4f23ba(0x1c5)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x4f23ba(0x1ea),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x4f23ba(0x1ec)](!0x1,!0x1),{'type':'gutter','gutterName':_0x4f23ba(0x1d6),'icon':_0x4f23ba(0x1c3),'handlers':{'click':(_0xb7399,_0xd4d29a,_0xb27afa,_0xccf4ef,_0x45ce97)=>{const _0x45e914=_0x4f23ba;_0xccf4ef['id']&&this[_0x45e914(0x1e7)](this[_0x45e914(0x1e4)],_0xccf4ef);}}},{'type':_0x4f23ba(0x1f0),'name':'id','hidden':!0x0},{'type':_0x4f23ba(0x1c1),'name':_0x4f23ba(0x1ea),'header':TermsUtil[_0x4f23ba(0x1e6)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x4f23ba(0x1ce),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'name','header':TermsUtil['tLabel'](_0x4f23ba(0x1d8)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x4f23ba(0x1ed),'editable':!0x0,'mandatory':!0x0}},{'type':_0x4f23ba(0x1f3),'name':'operator','header':TermsUtil[_0x4f23ba(0x1e6)](_0x4f23ba(0x1cc)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x1,'options':_0x28483e}},{'type':_0x4f23ba(0x1db),'name':_0x4f23ba(0x1de),'header':TermsUtil['tLabel'](_0x4f23ba(0x1de)),'sortable':!0x1,'width':0x41,'record':{'align':_0x4f23ba(0x1e1),'mandatory':!0x1,'editable':!0x0}},{'type':_0x4f23ba(0x1f0),'name':_0x4f23ba(0x1d3),'header':TermsUtil[_0x4f23ba(0x1e6)](_0x4f23ba(0x1cf)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x4f23ba(0x1ed),'editable':!0x0,'mandatory':!0x1}}]};}};function a0_0x8bb1(){const _0x474d6f=['gql','rank','setSearchConfigTabValues','getGristGuttersConfig','left','1677612HvJSqu','shadowRoot','string','querySelector','search','select','1622380YYNlPE','88YJHERG','integer','search-tab-grid','delete','FILTER_OPERATORS','getGristSelectableConfig','getSearchConfigTabValues','renderSearchConfigTab','getCodeSelectorData','#search-tab-grid','searchTabGridConfig','635756VqeQbo','search_operator','operator','right','default_value','map','96MxXPhK','fetchSearchTabHandler','value','getElementValueById','forEach','button','assign','name','filter','bind','boolean','push','330723BvJAxD','hidden','viewSearchData','37732CjQULf','center','6736100sNYcgg','7117516niFjXI','searchTabGrist','setSearchConfigTabConfig','tLabel','deleteRow','sortRecordByRank'];a0_0x8bb1=function(){return _0x474d6f;};return a0_0x8bb1();}