@things-factory/operato-tools 6.1.24 → 6.1.26

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_0x55ea67=a0_0x4f34;(function(_0x211ba7,_0x127ef5){const _0x3fe0ca=a0_0x4f34,_0x54b0b8=_0x211ba7();while(!![]){try{const _0x54412a=-parseInt(_0x3fe0ca(0x207))/0x1+parseInt(_0x3fe0ca(0x20c))/0x2+parseInt(_0x3fe0ca(0x20a))/0x3*(-parseInt(_0x3fe0ca(0x1fe))/0x4)+parseInt(_0x3fe0ca(0x1ff))/0x5+parseInt(_0x3fe0ca(0x1db))/0x6*(parseInt(_0x3fe0ca(0x1d2))/0x7)+parseInt(_0x3fe0ca(0x1f0))/0x8+-parseInt(_0x3fe0ca(0x1fa))/0x9*(parseInt(_0x3fe0ca(0x1d4))/0xa);if(_0x54412a===_0x127ef5)break;else _0x54b0b8['push'](_0x54b0b8['shift']());}catch(_0x8a0c2a){_0x54b0b8['push'](_0x54b0b8['shift']());}}}(a0_0x525d,0xab7c0));import{html}from'lit-element';function a0_0x4f34(_0x576276,_0x4eed7a){const _0x525dbd=a0_0x525d();return a0_0x4f34=function(_0x4f340b,_0x285fb7){_0x4f340b=_0x4f340b-0x1cf;let _0x31ea3f=_0x525dbd[_0x4f340b];return _0x31ea3f;},a0_0x4f34(_0x576276,_0x4eed7a);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x525d(){const _0x51d749=['343301bjeLqc','desk_mode','151220Iladsb','length','LIST','use_row_checker','codeItems','GRID','map','78UiGAGY','view_mode','_view_use','grid','grid_row_check_use','name','setGridConfigTabConfig','grid_term_1000','row','list_view_use','grid_pagination','GRID_VIEW_MODE','use_filter_form','multiple_select','getElementValueById','grid_desk_view','unuse','grid_term_','grid_support_multi_select','grid_term_50','grid_use_row_check','8940080OOhFuK','option','grid_mobile_view','card_view_use','use','grid_term_default','grid_view_use','includes','unlimited','grid_use_filter','513YwjoAM','tLabel','grid_support_view','description','4pYnQKW','2939395PqvLrs','grid_term_unlimited','grid_multi_select','unsupport','gridPageOptions','viewGridData','push','setGridConfigTabDetaultValues','620838rmtsVA','support','true','2774544xlwIxE','pages','1534184KgbNkF','gridViewModes','CARD','toLowerCase'];a0_0x525d=function(){return _0x51d749;};return a0_0x525d();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0x5c3d26=>class extends _0x5c3d26{['setGridConfigTabValues'](_0x3cc28e){const _0x10b315=a0_0x4f34;if(_0x3cc28e){var {mobile_mode:_0x1fd7bd='',desk_mode:_0x42e649='',pages:_0x48cc02=[],use_row_checker:_0x94ff40=!0x0,view_mode:_0x59b763=[]}=_0x3cc28e[_0x10b315(0x1f1)]||{};let _0x16c60c=(_0x3cc28e[_0x10b315(0x1e3)]||{'multiple_select':!0x1})[_0x10b315(0x1e8)],_0x244395=_0x10b315(0x1f8)==_0x48cc02?_0x10b315(0x200):0x0==_0x48cc02[_0x10b315(0x1d5)]?'':0x14==_0x48cc02[0x0]?_0x10b315(0x1f5):_0x10b315(0x1ec)+_0x48cc02[0x0];this[_0x10b315(0x204)]={'mobile_mode':_0x1fd7bd,'desk_mode':_0x42e649,'use_row_checker':_0x94ff40,'pages':_0x244395,'view_mode':_0x59b763,'multiple_select':_0x16c60c,'use_filter_form':_0x3cc28e[_0x10b315(0x1e7)]};}else this[_0x10b315(0x206)]();}['getGridConfigTabValues'](){const _0x2f28da=a0_0x4f34;let _0x2c893f={'grid':{'option':{},'row':{'click':'select-row-toggle'}}},_0x579fd0=this[_0x2f28da(0x1e9)](_0x2f28da(0x1df)),_0x108604=this[_0x2f28da(0x1e9)](_0x2f28da(0x201)),_0x5605e8=this['getElementValueById'](_0x2f28da(0x1ea)),_0x1500b4=this[_0x2f28da(0x1e9)]('grid_mobile_view'),_0x2c212c=this[_0x2f28da(0x1e9)]('grid_use_filter'),_0x36a256=this[_0x2f28da(0x1e9)]('grid_pagination'),_0x138b43=this[_0x2f28da(0x1e9)](_0x2f28da(0x1f6)),_0x272a49=this['getElementValueById'](_0x2f28da(0x1e4)),_0x16a15d=this[_0x2f28da(0x1e9)](_0x2f28da(0x1f3));return _0x2c893f['grid'][_0x2f28da(0x1e7)]=_0x2f28da(0x209)==_0x2c212c,_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1e3)][_0x2f28da(0x1e8)]=_0x2f28da(0x209)==_0x108604,_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x1d7)]=_0x2f28da(0x209)==_0x579fd0,_0x2c893f[_0x2f28da(0x1de)]['option']['mobile_mode']=_0x1500b4,_0x2c893f[_0x2f28da(0x1de)]['option'][_0x2f28da(0x1d3)]=_0x5605e8,_0x2f28da(0x1f5)==_0x36a256?_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x20b)]=[0x14,0x1e,0x32,0x64]:_0x2f28da(0x1ee)==_0x36a256?_0x2c893f['grid'][_0x2f28da(0x1f1)]['pages']=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x36a256?_0x2c893f['grid'][_0x2f28da(0x1f1)][_0x2f28da(0x20b)]=[0x64,0x1f4,0x3e8,0x1388]:_0x2f28da(0x1e2)==_0x36a256?_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x20b)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x2f28da(0x200)==_0x36a256&&(_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x20b)]=_0x2f28da(0x1f8)),_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x1dc)]=[],_0x2f28da(0x209)==_0x138b43&&_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x1dc)][_0x2f28da(0x205)](_0x2f28da(0x1d9)),'true'==_0x272a49&&_0x2c893f['grid'][_0x2f28da(0x1f1)][_0x2f28da(0x1dc)][_0x2f28da(0x205)]('LIST'),'true'==_0x16a15d&&_0x2c893f[_0x2f28da(0x1de)][_0x2f28da(0x1f1)][_0x2f28da(0x1dc)][_0x2f28da(0x205)](_0x2f28da(0x1d0)),_0x2c893f;}async[a0_0x55ea67(0x1e1)](){const _0xebabfa=a0_0x55ea67;let _0x41b506=await MetaApi[_0xebabfa(0x1d8)]('GRID_PAGE_OPTIONS'),_0x27969f=await MetaApi[_0xebabfa(0x1d8)](_0xebabfa(0x1e6));this[_0xebabfa(0x1cf)]=_0x27969f,this[_0xebabfa(0x203)]=_0x41b506;}[a0_0x55ea67(0x206)](){const _0x2df47a=a0_0x55ea67;this[_0x2df47a(0x204)]||(this[_0x2df47a(0x204)]={'mobile_mode':this['gridViewModes']?this[_0x2df47a(0x1cf)][0x1]:_0x2df47a(0x1d6),'desk_mode':this[_0x2df47a(0x1cf)]?this[_0x2df47a(0x1cf)][0x0]:'GRID','use_row_checker':!0x0,'pages':'grid_term_default','view_mode':[...this[_0x2df47a(0x1cf)]?this[_0x2df47a(0x1cf)]:[_0x2df47a(0x1d9),_0x2df47a(0x1d6),_0x2df47a(0x1d0)]],'multiple_select':!0x0,'use_filter_form':!0x0});}['renderGridConfigTab'](){const _0x486f4b=a0_0x55ea67;return this[_0x486f4b(0x206)](),html`
1
+ const a0_0x35b91b=a0_0x3030;(function(_0x48af1d,_0x30b411){const _0x44d64b=a0_0x3030,_0x41fd12=_0x48af1d();while(!![]){try{const _0x5b001f=-parseInt(_0x44d64b(0x1ea))/0x1+parseInt(_0x44d64b(0x1dd))/0x2*(-parseInt(_0x44d64b(0x1dc))/0x3)+-parseInt(_0x44d64b(0x1ee))/0x4+-parseInt(_0x44d64b(0x1ef))/0x5+parseInt(_0x44d64b(0x1b9))/0x6*(parseInt(_0x44d64b(0x1de))/0x7)+-parseInt(_0x44d64b(0x1c2))/0x8+parseInt(_0x44d64b(0x1db))/0x9;if(_0x5b001f===_0x30b411)break;else _0x41fd12['push'](_0x41fd12['shift']());}catch(_0x57d99f){_0x41fd12['push'](_0x41fd12['shift']());}}}(a0_0x2891,0xa94d9));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_0x2891(){const _0x5353da=['list_view_use','grid_term_default','1246576PlqPFP','use_row_checker','row','codeItems','5426784EAvnKe','2962580ysxHPA','name','grid_mobile_view','setGridConfigTabValues','multiple_select','grid_pagination','mobile_mode','push','GRID_VIEW_MODE','14238NrUqOq','toLowerCase','gridPageOptions','grid_term_100','select-row-toggle','_view_use','support','use','grid_term_unlimited','10840920UZaprJ','unsupport','grid_use_filter','grid','view_mode','desk_mode','includes','getGridConfigTabValues','grid_row_check_use','use_filter_form','LIST','grid_term_','grid_term_1000','grid_desk_view','unuse','GRID','pages','map','grid_use_row_check','GRID_PAGE_OPTIONS','unlimited','renderGridConfigTab','grid_support_multi_select','description','setGridConfigTabConfig','36957276sYhMFi','15LqjuVV','50722YflfqJ','3731XPHkUG','setGridConfigTabDetaultValues','viewGridData','tLabel','length','gridViewModes','getElementValueById','CARD','option','true'];a0_0x2891=function(){return _0x5353da;};return a0_0x2891();}function a0_0x3030(_0x25d0a6,_0x4e6411){const _0x289162=a0_0x2891();return a0_0x3030=function(_0x30307b,_0x3ad62e){_0x30307b=_0x30307b-0x1b5;let _0xf31629=_0x289162[_0x30307b];return _0xf31629;},a0_0x3030(_0x25d0a6,_0x4e6411);}export const GridConfigTabMixin=_0x25a362=>class extends _0x25a362{[a0_0x35b91b(0x1f2)](_0x44ef36){const _0x3fea9c=a0_0x35b91b;if(_0x44ef36){var {mobile_mode:_0xe0efb6='',desk_mode:_0x280e5c='',pages:_0x3a3d72=[],use_row_checker:_0xb61c83=!0x0,view_mode:_0xccc380=[]}=_0x44ef36['option']||{};let _0x46697b=(_0x44ef36[_0x3fea9c(0x1ec)]||{'multiple_select':!0x1})[_0x3fea9c(0x1f3)],_0x4c450=_0x3fea9c(0x1d6)==_0x3a3d72?_0x3fea9c(0x1c1):0x0==_0x3a3d72[_0x3fea9c(0x1e2)]?'':0x14==_0x3a3d72[0x0]?'grid_term_default':_0x3fea9c(0x1cd)+_0x3a3d72[0x0];this[_0x3fea9c(0x1e0)]={'mobile_mode':_0xe0efb6,'desk_mode':_0x280e5c,'use_row_checker':_0xb61c83,'pages':_0x4c450,'view_mode':_0xccc380,'multiple_select':_0x46697b,'use_filter_form':_0x44ef36[_0x3fea9c(0x1cb)]};}else this[_0x3fea9c(0x1df)]();}[a0_0x35b91b(0x1c9)](){const _0x4ca84c=a0_0x35b91b;let _0x23a8a5={'grid':{'option':{},'row':{'click':_0x4ca84c(0x1bd)}}},_0x51a0e3=this[_0x4ca84c(0x1e4)](_0x4ca84c(0x1ca)),_0x28d916=this['getElementValueById']('grid_multi_select'),_0x58248b=this[_0x4ca84c(0x1e4)](_0x4ca84c(0x1cf)),_0xf6b36b=this[_0x4ca84c(0x1e4)](_0x4ca84c(0x1f1)),_0x3c5213=this[_0x4ca84c(0x1e4)](_0x4ca84c(0x1c4)),_0x2cf67b=this[_0x4ca84c(0x1e4)]('grid_pagination'),_0x176e29=this[_0x4ca84c(0x1e4)]('grid_view_use'),_0x32472c=this[_0x4ca84c(0x1e4)](_0x4ca84c(0x1e8)),_0x191a8e=this[_0x4ca84c(0x1e4)]('card_view_use');return _0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1cb)]=_0x4ca84c(0x1e7)==_0x3c5213,_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1ec)]['multiple_select']=_0x4ca84c(0x1e7)==_0x28d916,_0x23a8a5['grid'][_0x4ca84c(0x1e6)][_0x4ca84c(0x1eb)]='true'==_0x51a0e3,_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1b6)]=_0xf6b36b,_0x23a8a5['grid'][_0x4ca84c(0x1e6)][_0x4ca84c(0x1c7)]=_0x58248b,_0x4ca84c(0x1e9)==_0x2cf67b?_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1d2)]=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x2cf67b?_0x23a8a5['grid'][_0x4ca84c(0x1e6)][_0x4ca84c(0x1d2)]=[0x32,0x64,0x1f4,0x3e8]:_0x4ca84c(0x1bc)==_0x2cf67b?_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1d2)]=[0x64,0x1f4,0x3e8,0x1388]:_0x4ca84c(0x1ce)==_0x2cf67b?_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1d2)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:'grid_term_unlimited'==_0x2cf67b&&(_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1d2)]='unlimited'),_0x23a8a5['grid'][_0x4ca84c(0x1e6)][_0x4ca84c(0x1c6)]=[],_0x4ca84c(0x1e7)==_0x176e29&&_0x23a8a5[_0x4ca84c(0x1c5)]['option'][_0x4ca84c(0x1c6)]['push'](_0x4ca84c(0x1d1)),'true'==_0x32472c&&_0x23a8a5[_0x4ca84c(0x1c5)][_0x4ca84c(0x1e6)][_0x4ca84c(0x1c6)][_0x4ca84c(0x1b7)](_0x4ca84c(0x1cc)),_0x4ca84c(0x1e7)==_0x191a8e&&_0x23a8a5[_0x4ca84c(0x1c5)]['option'][_0x4ca84c(0x1c6)][_0x4ca84c(0x1b7)](_0x4ca84c(0x1e5)),_0x23a8a5;}async[a0_0x35b91b(0x1da)](){const _0x23b820=a0_0x35b91b;let _0x5ef8bc=await MetaApi[_0x23b820(0x1ed)](_0x23b820(0x1d5)),_0x50e7c6=await MetaApi[_0x23b820(0x1ed)](_0x23b820(0x1b8));this[_0x23b820(0x1e3)]=_0x50e7c6,this['gridPageOptions']=_0x5ef8bc;}[a0_0x35b91b(0x1df)](){const _0x24c098=a0_0x35b91b;this[_0x24c098(0x1e0)]||(this[_0x24c098(0x1e0)]={'mobile_mode':this[_0x24c098(0x1e3)]?this[_0x24c098(0x1e3)][0x1]:_0x24c098(0x1cc),'desk_mode':this['gridViewModes']?this[_0x24c098(0x1e3)][0x0]:'GRID','use_row_checker':!0x0,'pages':_0x24c098(0x1e9),'view_mode':[...this[_0x24c098(0x1e3)]?this[_0x24c098(0x1e3)]:[_0x24c098(0x1d1),_0x24c098(0x1cc),'CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x35b91b(0x1d7)](){const _0x5cd7dc=a0_0x35b91b;return this[_0x5cd7dc(0x1df)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
4
  <h2>
5
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x486f4b(0x1fb)](_0x486f4b(0x1ef))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x5cd7dc(0x1d4))}
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[_0x486f4b(0x204)]['use_row_checker']}>${TermsUtil[_0x486f4b(0x1fb)](_0x486f4b(0x1f4))}</input>
10
+ ?checked=${this[_0x5cd7dc(0x1e0)][_0x5cd7dc(0x1eb)]}>${TermsUtil[_0x5cd7dc(0x1e1)]('use')}</input>
11
11
  <input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
12
- ?checked=${!this['viewGridData'][_0x486f4b(0x1d7)]}>${TermsUtil['tLabel']('unuse')}</input>
12
+ ?checked=${!this['viewGridData']['use_row_checker']}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1d0))}</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[_0x486f4b(0x1fb)](_0x486f4b(0x1ed))}
18
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1d8))}
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[_0x486f4b(0x204)][_0x486f4b(0x1e8)]}>${TermsUtil['tLabel'](_0x486f4b(0x208))}</input>
23
+ ?checked=${this[_0x5cd7dc(0x1e0)][_0x5cd7dc(0x1f3)]}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1bf))}</input>
24
24
  <input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
25
- ?checked=${!this[_0x486f4b(0x204)][_0x486f4b(0x1e8)]}>${TermsUtil[_0x486f4b(0x1fb)](_0x486f4b(0x202))}</input>
25
+ ?checked=${!this[_0x5cd7dc(0x1e0)][_0x5cd7dc(0x1f3)]}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1c3))}</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[_0x486f4b(0x1fb)](_0x486f4b(0x1f9))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x5cd7dc(0x1c4))}
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[_0x486f4b(0x204)][_0x486f4b(0x1e7)]}>${TermsUtil[_0x486f4b(0x1fb)](_0x486f4b(0x1f4))}</input>
36
+ ?checked=${this['viewGridData']['use_filter_form']}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1c0))}</input>
37
37
  <input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
38
- ?checked=${!this[_0x486f4b(0x204)]['use_filter_form']}>${TermsUtil[_0x486f4b(0x1fb)]('unuse')}</input>
38
+ ?checked=${!this['viewGridData'][_0x5cd7dc(0x1cb)]}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1d0))}</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[_0x486f4b(0x1fb)](_0x486f4b(0x1ea))}
45
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x5cd7dc(0x1cf))}
46
46
  </h2>
47
47
  <label>
48
48
  <select id="grid_desk_view" name="grid_desk_view">
49
- ${this[_0x486f4b(0x1cf)]?.[_0x486f4b(0x1da)](_0x1e213c=>html`<option value=${_0x1e213c[_0x486f4b(0x1e0)]} ?selected=${this[_0x486f4b(0x204)][_0x486f4b(0x1d3)]==_0x1e213c['name']}>${_0x1e213c['description']}</option>`)}
49
+ ${this[_0x5cd7dc(0x1e3)]?.['map'](_0x386e9f=>html`<option value=${_0x386e9f['name']} ?selected=${this['viewGridData']['desk_mode']==_0x386e9f['name']}>${_0x386e9f['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[_0x486f4b(0x1fb)](_0x486f4b(0x1f2))}
55
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel']('grid_mobile_view')}
56
56
  </h2>
57
57
  <label>
58
58
  <select id="grid_mobile_view" name="grid_mobile_view">
59
- ${this[_0x486f4b(0x1cf)]?.[_0x486f4b(0x1da)](_0x5e5b96=>html`<option value=${_0x5e5b96[_0x486f4b(0x1e0)]} ?selected=${this[_0x486f4b(0x204)]['mobile_mode']==_0x5e5b96['name']}>${_0x5e5b96[_0x486f4b(0x1fd)]}</option>`)}
59
+ ${this['gridViewModes']?.['map'](_0x484ae7=>html`<option value=${_0x484ae7[_0x5cd7dc(0x1f0)]} ?selected=${this['viewGridData'][_0x5cd7dc(0x1b6)]==_0x484ae7['name']}>${_0x484ae7[_0x5cd7dc(0x1d9)]}</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['tLabel'](_0x486f4b(0x1fc))}
65
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel']('grid_support_view')}
66
66
  </h2>
67
67
  <label>
68
- ${this[_0x486f4b(0x1cf)]?.[_0x486f4b(0x1da)](_0x52da76=>html`
69
- <span>${_0x52da76['name']}
70
- <input type="radio" name=${_0x52da76[_0x486f4b(0x1e0)][_0x486f4b(0x1d1)]()+'_view_use'} id=${_0x52da76['name'][_0x486f4b(0x1d1)]()+_0x486f4b(0x1dd)} ?checked=${this[_0x486f4b(0x204)][_0x486f4b(0x1dc)]['includes'](_0x52da76[_0x486f4b(0x1e0)])} value="true">${TermsUtil[_0x486f4b(0x1fb)](_0x486f4b(0x1f4))}</input>
71
- <input type="radio" name=${_0x52da76['name']['toLowerCase']()+'_view_use'} id=${_0x52da76[_0x486f4b(0x1e0)][_0x486f4b(0x1d1)]()+_0x486f4b(0x1dd)} ?checked=${!this[_0x486f4b(0x204)]['view_mode'][_0x486f4b(0x1f7)](_0x52da76[_0x486f4b(0x1e0)])} value="false">${TermsUtil['tLabel'](_0x486f4b(0x1eb))}</input>
68
+ ${this[_0x5cd7dc(0x1e3)]?.['map'](_0x242d2d=>html`
69
+ <span>${_0x242d2d[_0x5cd7dc(0x1f0)]}
70
+ <input type="radio" name=${_0x242d2d[_0x5cd7dc(0x1f0)][_0x5cd7dc(0x1ba)]()+'_view_use'} id=${_0x242d2d[_0x5cd7dc(0x1f0)]['toLowerCase']()+_0x5cd7dc(0x1be)} ?checked=${this[_0x5cd7dc(0x1e0)]['view_mode'][_0x5cd7dc(0x1c8)](_0x242d2d[_0x5cd7dc(0x1f0)])} value="true">${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1c0))}</input>
71
+ <input type="radio" name=${_0x242d2d[_0x5cd7dc(0x1f0)][_0x5cd7dc(0x1ba)]()+_0x5cd7dc(0x1be)} id=${_0x242d2d[_0x5cd7dc(0x1f0)][_0x5cd7dc(0x1ba)]()+_0x5cd7dc(0x1be)} ?checked=${!this['viewGridData'][_0x5cd7dc(0x1c6)]['includes'](_0x242d2d['name'])} value="false">${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1d0))}</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[_0x486f4b(0x1fb)](_0x486f4b(0x1e5))}
78
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5cd7dc(0x1e1)](_0x5cd7dc(0x1b5))}
79
79
  </h2>
80
80
  <label>
81
- ${this[_0x486f4b(0x203)]?.[_0x486f4b(0x1da)](_0x4ac206=>html`
81
+ ${this[_0x5cd7dc(0x1bb)]?.[_0x5cd7dc(0x1d3)](_0x29bc2a=>html`
82
82
  <span>
83
- <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x4ac206[_0x486f4b(0x1e0)]} ?checked=${this['viewGridData']['pages']==_0x4ac206[_0x486f4b(0x1e0)]}>${TermsUtil[_0x486f4b(0x1fb)](_0x4ac206[_0x486f4b(0x1e0)])}</input>
83
+ <input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x29bc2a['name']} ?checked=${this[_0x5cd7dc(0x1e0)][_0x5cd7dc(0x1d2)]==_0x29bc2a[_0x5cd7dc(0x1f0)]}>${TermsUtil[_0x5cd7dc(0x1e1)](_0x29bc2a['name'])}</input>
84
84
  </span>
85
85
  `)}
86
86
  </label>
@@ -1,18 +1,18 @@
1
- function a0_0x2d98(_0x3cf7f1,_0x407c4c){const _0x3a2950=a0_0x3a29();return a0_0x2d98=function(_0x2d9868,_0xf9c8eb){_0x2d9868=_0x2d9868-0xd0;let _0x2d405f=_0x3a2950[_0x2d9868];return _0x2d405f;},a0_0x2d98(_0x3cf7f1,_0x407c4c);}const a0_0x628d=a0_0x2d98;function a0_0x3a29(){const _0xd068d4=['210CvRsYo','getGristGuttersConfig','1539223eRWZGJ','row-emphasized-grist','string','getElementValueById','rowEmphasizedConfig','fetchColumnEmphasized','72335DWrNBy','getGridEmphasizedConfigTabValues','76680TxFkPY','column-emphasized-grist','querySelector','144PPRbEw','tLabel','logic','columnEmphasizedData','renderGridEmphasizedConfigTab','1HrMWZH','column','viewEmphasizedData','fetchRowEmphasized','shadowRoot','1151777CXJsPD','getGristSelectableConfig','297100lnIuBV','setGridEmphasizedConfigTabValues','bind','keys','map','left','6yOrPAK','deleteRow','emphasizedConfigTabRowEmphasizedGrist','push','grid_row_emphasized_config','delete','integer','GRID','fontColor','120936DVVVvI','button','row','sortRecordByRank','right','#row-emphasized-grist','emphasizedConfigTabColumnEmphasizedGrist','grid_column_emphasized_config','gutter','forEach','backgroundColor','fetch','93177irKMLy','rank','background-color','setGridEmphasizedConfigTabDefaultValues','code-input'];a0_0x3a29=function(){return _0xd068d4;};return a0_0x3a29();}(function(_0x311032,_0xa74ecc){const _0x33b349=a0_0x2d98,_0x2db40f=_0x311032();while(!![]){try{const _0x34e24f=-parseInt(_0x33b349(0xd6))/0x1*(parseInt(_0x33b349(0xdd))/0x2)+parseInt(_0x33b349(0xec))/0x3+parseInt(_0x33b349(0xd1))/0x4*(parseInt(_0x33b349(0x105))/0x5)+-parseInt(_0x33b349(0xe3))/0x6*(parseInt(_0x33b349(0xff))/0x7)+-parseInt(_0x33b349(0x107))/0x8+-parseInt(_0x33b349(0xf8))/0x9*(-parseInt(_0x33b349(0xfd))/0xa)+-parseInt(_0x33b349(0xdb))/0xb;if(_0x34e24f===_0xa74ecc)break;else _0x2db40f['push'](_0x2db40f['shift']());}catch(_0x28ef29){_0x2db40f['push'](_0x2db40f['shift']());}}}(a0_0x3a29,0x4837e));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=_0x53112f=>class extends _0x53112f{[a0_0x628d(0xde)](_0x5cc823){const _0x42810b=a0_0x628d;if(_0x5cc823){this[_0x42810b(0xd8)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x5c4390=0x1;this[_0x42810b(0xd8)]['rowEmphasizedData']=(_0x5cc823[_0x42810b(0xee)]||[])[_0x42810b(0xe1)](_0x4bff31=>({'id':_0x5c4390,'rank':_0x5c4390++,'backgroundColor':_0x4bff31['backgroundColor']||'','fontColor':_0x4bff31[_0x42810b(0xeb)]||'','logic':_0x4bff31['logic']||''})),_0x5c4390=0x1;let _0xe565fd=_0x5cc823[_0x42810b(0xd7)]||[];Object[_0x42810b(0xe0)](_0xe565fd)['forEach'](_0xd755db=>{let _0x52e724=_0xe565fd[_0xd755db]||[],_0x57f02d=0x1;_0x52e724['forEach'](_0x448361=>{const _0x2c9ce2=a0_0x2d98;this[_0x2c9ce2(0xd8)][_0x2c9ce2(0xd4)]['push']({'id':_0x5c4390++,'rank':_0x57f02d++,'column':_0xd755db,'backgroundColor':_0x448361[_0x2c9ce2(0xf6)]||'','fontColor':_0x448361[_0x2c9ce2(0xeb)]||'','logic':_0x448361['logic']||''});});}),this[_0x42810b(0xf2)]?.[_0x42810b(0xf7)](),this[_0x42810b(0xe5)]?.[_0x42810b(0xf7)]();}else this[_0x42810b(0xfb)]();}[a0_0x628d(0x106)](){const _0x37a4f6=a0_0x628d;let _0xe998f1=this[_0x37a4f6(0x102)](_0x37a4f6(0x100)),_0x13593e=this[_0x37a4f6(0x102)](_0x37a4f6(0x108)),_0x4c8638=[];this[_0x37a4f6(0xef)](_0xe998f1)?.[_0x37a4f6(0xf5)](_0x5e402c=>{const _0x114c77=_0x37a4f6;_0x4c8638[_0x114c77(0xe6)]({'backgroundColor':_0x5e402c['backgroundColor'],'fontColor':_0x5e402c[_0x114c77(0xeb)],'logic':_0x5e402c[_0x114c77(0xd3)]});});let _0x4dc528={};return this[_0x37a4f6(0xef)](_0x13593e)?.[_0x37a4f6(0xf5)](_0x4fdd89=>{const _0x369e2c=_0x37a4f6;_0x4dc528[_0x4fdd89[_0x369e2c(0xd7)]]||(_0x4dc528[_0x4fdd89[_0x369e2c(0xd7)]]=[]),_0x4dc528[_0x4fdd89[_0x369e2c(0xd7)]][_0x369e2c(0xe6)]({'backgroundColor':_0x4fdd89['backgroundColor'],'fontColor':_0x4fdd89[_0x369e2c(0xeb)],'logic':_0x4fdd89[_0x369e2c(0xd3)]});}),{'gridEmphasized':{'row':_0x4c8638||[],'column':_0x4dc528||{}}};}get['emphasizedConfigTabRowEmphasizedGrist'](){const _0x129e9a=a0_0x628d;return this['shadowRoot']['querySelector'](_0x129e9a(0xf1));}get[a0_0x628d(0xf2)](){const _0x2a2b3f=a0_0x628d;return this[_0x2a2b3f(0xda)][_0x2a2b3f(0xd0)]('#column-emphasized-grist');}['setGridEmphasizedConfigTabConfig'](){const _0x556cd9=a0_0x628d;this['rowEmphasizedConfig']={'rows':MetaApi[_0x556cd9(0xdc)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x556cd9(0xfe)](!0x1,!0x1),{'type':_0x556cd9(0xf4),'gutterName':'button','icon':'delete','handlers':{'click':(_0xc07c7e,_0x144f9a,_0x56a2cc,_0x20fa85,_0x4ec90d)=>{const _0x1a15be=_0x556cd9;_0x20fa85['id']&&this[_0x1a15be(0xe4)](this[_0x1a15be(0xe5)],_0x20fa85);}}},{'type':_0x556cd9(0x101),'name':'id','hidden':!0x0},{'type':_0x556cd9(0xe9),'name':_0x556cd9(0xf9),'header':TermsUtil[_0x556cd9(0xd2)](_0x556cd9(0xf9)),'sortable':!0x0,'width':0x41,'record':{'align':_0x556cd9(0xf0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x556cd9(0x101),'name':_0x556cd9(0xf6),'header':TermsUtil[_0x556cd9(0xd2)](_0x556cd9(0xfa)),'record':{'align':_0x556cd9(0xe2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x556cd9(0x101),'name':'fontColor','header':TermsUtil[_0x556cd9(0xd2)]('font-color'),'record':{'align':_0x556cd9(0xe2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x556cd9(0xfc),'name':_0x556cd9(0xd3),'header':TermsUtil['tLabel'](_0x556cd9(0xd3)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x556cd9(0xdc)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x556cd9(0xfe)](!0x1,!0x1),{'type':_0x556cd9(0xf4),'gutterName':_0x556cd9(0xed),'icon':_0x556cd9(0xe8),'handlers':{'click':(_0x2bcc01,_0x15e9ce,_0x67c8aa,_0x16ac93,_0x1f6d25)=>{const _0x215af9=_0x556cd9;_0x16ac93['id']&&this[_0x215af9(0xe4)](this[_0x215af9(0xf2)],_0x16ac93);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'string','name':'column','header':TermsUtil['tLabel'](_0x556cd9(0xd7)),'record':{'align':_0x556cd9(0xe2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x556cd9(0xe9),'name':'rank','header':TermsUtil['tLabel']('rank'),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x556cd9(0xf6),'header':TermsUtil['tLabel'](_0x556cd9(0xfa)),'record':{'align':_0x556cd9(0xe2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x556cd9(0x101),'name':_0x556cd9(0xeb),'header':TermsUtil[_0x556cd9(0xd2)]('font-color'),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x556cd9(0xfc),'name':_0x556cd9(0xd3),'header':TermsUtil[_0x556cd9(0xd2)](_0x556cd9(0xd3)),'record':{'align':_0x556cd9(0xe2),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x628d(0xfb)](){const _0x553613=a0_0x628d;this[_0x553613(0xd8)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x628d(0xd5)](){const _0x1090fd=a0_0x628d;return this[_0x1090fd(0xfb)](),html`
1
+ function a0_0x21e5(_0x125070,_0x37773f){const _0x8790a7=a0_0x8790();return a0_0x21e5=function(_0x21e5b3,_0x39a3bc){_0x21e5b3=_0x21e5b3-0x1bd;let _0x2f51d1=_0x8790a7[_0x21e5b3];return _0x2f51d1;},a0_0x21e5(_0x125070,_0x37773f);}function a0_0x8790(){const _0xc62c94=['bind','getElementValueById','backgroundColor','column','keys','columnEmphasizedConfig','4009194lfyAHy','gutter','1938856xtKnve','getGristSelectableConfig','logic','delete','fontColor','viewEmphasizedData','string','left','#row-emphasized-grist','deleteRow','row-emphasized-grist','fetchColumnEmphasized','button','1774630yVqWCL','grid_row_emphasized_config','emphasizedConfigTabRowEmphasizedGrist','forEach','sortRecordByRank','getGridEmphasizedConfigTabValues','setGridEmphasizedConfigTabConfig','right','push','renderGridEmphasizedConfigTab','setGridEmphasizedConfigTabValues','93141pWADWH','getGristGuttersConfig','fetchRowEmphasized','3013110xgwwUM','fetch','181898YOKNlT','119782PgFLPt','emphasizedConfigTabColumnEmphasizedGrist','12dDSgyf','GRID','rowEmphasizedConfig','tLabel','querySelector','code-input','9vekUdY','setGridEmphasizedConfigTabDefaultValues','row','shadowRoot','grid_column_emphasized_config','map','background-color','integer','font-color','rank','rowEmphasizedData'];a0_0x8790=function(){return _0xc62c94;};return a0_0x8790();}const a0_0xdc4ed4=a0_0x21e5;(function(_0x5c6163,_0x535e53){const _0xec2c64=a0_0x21e5,_0x5ec113=_0x5c6163();while(!![]){try{const _0x5a9387=-parseInt(_0xec2c64(0x1e9))/0x1+parseInt(_0xec2c64(0x1ea))/0x2+-parseInt(_0xec2c64(0x1e4))/0x3*(parseInt(_0xec2c64(0x1ec))/0x4)+parseInt(_0xec2c64(0x1d9))/0x5+parseInt(_0xec2c64(0x1e7))/0x6+-parseInt(_0xec2c64(0x1ca))/0x7+-parseInt(_0xec2c64(0x1cc))/0x8*(-parseInt(_0xec2c64(0x1f2))/0x9);if(_0x5a9387===_0x535e53)break;else _0x5ec113['push'](_0x5ec113['shift']());}catch(_0x3f17b1){_0x5ec113['push'](_0x5ec113['shift']());}}}(a0_0x8790,0x4c11a));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=_0x5ab185=>class extends _0x5ab185{[a0_0xdc4ed4(0x1e3)](_0x2e9ea2){const _0x4c0baa=a0_0xdc4ed4;if(_0x2e9ea2){this[_0x4c0baa(0x1d1)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x4efb94=0x1;this['viewEmphasizedData'][_0x4c0baa(0x1c3)]=(_0x2e9ea2[_0x4c0baa(0x1f4)]||[])[_0x4c0baa(0x1be)](_0x2182c5=>({'id':_0x4efb94,'rank':_0x4efb94++,'backgroundColor':_0x2182c5[_0x4c0baa(0x1c6)]||'','fontColor':_0x2182c5[_0x4c0baa(0x1d0)]||'','logic':_0x2182c5[_0x4c0baa(0x1ce)]||''})),_0x4efb94=0x1;let _0x2aff38=_0x2e9ea2[_0x4c0baa(0x1c7)]||[];Object[_0x4c0baa(0x1c8)](_0x2aff38)['forEach'](_0xc028e7=>{const _0x194921=_0x4c0baa;let _0x920606=_0x2aff38[_0xc028e7]||[],_0x34edee=0x1;_0x920606[_0x194921(0x1dc)](_0x55952f=>{const _0x29d3ec=_0x194921;this['viewEmphasizedData']['columnEmphasizedData'][_0x29d3ec(0x1e1)]({'id':_0x4efb94++,'rank':_0x34edee++,'column':_0xc028e7,'backgroundColor':_0x55952f[_0x29d3ec(0x1c6)]||'','fontColor':_0x55952f['fontColor']||'','logic':_0x55952f[_0x29d3ec(0x1ce)]||''});});}),this[_0x4c0baa(0x1eb)]?.[_0x4c0baa(0x1e8)](),this[_0x4c0baa(0x1db)]?.['fetch']();}else this[_0x4c0baa(0x1f3)]();}[a0_0xdc4ed4(0x1de)](){const _0x3b6d05=a0_0xdc4ed4;let _0x4bbbff=this[_0x3b6d05(0x1c5)](_0x3b6d05(0x1d6)),_0x3543e5=this[_0x3b6d05(0x1c5)]('column-emphasized-grist'),_0x1ed361=[];this[_0x3b6d05(0x1dd)](_0x4bbbff)?.[_0x3b6d05(0x1dc)](_0x16bffd=>{const _0x36d306=_0x3b6d05;_0x1ed361[_0x36d306(0x1e1)]({'backgroundColor':_0x16bffd[_0x36d306(0x1c6)],'fontColor':_0x16bffd[_0x36d306(0x1d0)],'logic':_0x16bffd[_0x36d306(0x1ce)]});});let _0x26617c={};return this[_0x3b6d05(0x1dd)](_0x3543e5)?.[_0x3b6d05(0x1dc)](_0x509239=>{const _0x2a7482=_0x3b6d05;_0x26617c[_0x509239[_0x2a7482(0x1c7)]]||(_0x26617c[_0x509239[_0x2a7482(0x1c7)]]=[]),_0x26617c[_0x509239[_0x2a7482(0x1c7)]][_0x2a7482(0x1e1)]({'backgroundColor':_0x509239[_0x2a7482(0x1c6)],'fontColor':_0x509239[_0x2a7482(0x1d0)],'logic':_0x509239[_0x2a7482(0x1ce)]});}),{'gridEmphasized':{'row':_0x1ed361||[],'column':_0x26617c||{}}};}get[a0_0xdc4ed4(0x1db)](){const _0x4b5016=a0_0xdc4ed4;return this[_0x4b5016(0x1f5)][_0x4b5016(0x1f0)](_0x4b5016(0x1d4));}get['emphasizedConfigTabColumnEmphasizedGrist'](){const _0x573122=a0_0xdc4ed4;return this[_0x573122(0x1f5)]['querySelector']('#column-emphasized-grist');}[a0_0xdc4ed4(0x1df)](){const _0xa647fc=a0_0xdc4ed4;this['rowEmphasizedConfig']={'rows':MetaApi[_0xa647fc(0x1cd)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0xa647fc(0x1e5)](!0x1,!0x1),{'type':_0xa647fc(0x1cb),'gutterName':_0xa647fc(0x1d8),'icon':_0xa647fc(0x1cf),'handlers':{'click':(_0x9d3b3e,_0x55d22b,_0x574366,_0x31b53f,_0x21decb)=>{const _0x247fd6=_0xa647fc;_0x31b53f['id']&&this[_0x247fd6(0x1d5)](this[_0x247fd6(0x1db)],_0x31b53f);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0xa647fc(0x1c0),'name':'rank','header':TermsUtil['tLabel'](_0xa647fc(0x1c2)),'sortable':!0x0,'width':0x41,'record':{'align':_0xa647fc(0x1e0),'editable':!0x0,'mandatory':!0x0}},{'type':_0xa647fc(0x1d2),'name':_0xa647fc(0x1c6),'header':TermsUtil[_0xa647fc(0x1ef)](_0xa647fc(0x1bf)),'record':{'align':_0xa647fc(0x1d3),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xa647fc(0x1d2),'name':'fontColor','header':TermsUtil[_0xa647fc(0x1ef)](_0xa647fc(0x1c1)),'record':{'align':_0xa647fc(0x1d3),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'code-input','name':_0xa647fc(0x1ce),'header':TermsUtil[_0xa647fc(0x1ef)](_0xa647fc(0x1ce)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0xa647fc(0x1c9)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0xa647fc(0x1cb),'gutterName':_0xa647fc(0x1d8),'icon':'delete','handlers':{'click':(_0x1103f9,_0x49ccf7,_0xede6ad,_0x261930,_0x19e135)=>{const _0x3b38f3=_0xa647fc;_0x261930['id']&&this[_0x3b38f3(0x1d5)](this[_0x3b38f3(0x1eb)],_0x261930);}}},{'type':_0xa647fc(0x1d2),'name':'id','hidden':!0x0},{'type':'string','name':_0xa647fc(0x1c7),'header':TermsUtil[_0xa647fc(0x1ef)](_0xa647fc(0x1c7)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xa647fc(0x1c0),'name':_0xa647fc(0x1c2),'header':TermsUtil['tLabel'](_0xa647fc(0x1c2)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0xa647fc(0x1d2),'name':_0xa647fc(0x1c6),'header':TermsUtil['tLabel'](_0xa647fc(0x1bf)),'record':{'align':_0xa647fc(0x1d3),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xa647fc(0x1d2),'name':'fontColor','header':TermsUtil['tLabel'](_0xa647fc(0x1c1)),'record':{'align':_0xa647fc(0x1d3),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0xa647fc(0x1f1),'name':_0xa647fc(0x1ce),'header':TermsUtil[_0xa647fc(0x1ef)](_0xa647fc(0x1ce)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}['setGridEmphasizedConfigTabDefaultValues'](){const _0x284a29=a0_0xdc4ed4;this[_0x284a29(0x1d1)]||(this[_0x284a29(0x1d1)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0xdc4ed4(0x1e2)](){const _0x2e07c9=a0_0xdc4ed4;return this[_0x2e07c9(0x1f3)](),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['tLabel'](_0x1090fd(0xe7))}
5
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x2e07c9(0x1da))}
6
6
  </h2>
7
- <ox-grist id="row-emphasized-grist" .config=${this[_0x1090fd(0x103)]} .mode=${_0x1090fd(0xea)} auto-fetch
8
- .fetchHandler=${this[_0x1090fd(0xd9)]['bind'](this)}></ox-grist>
7
+ <ox-grist id="row-emphasized-grist" .config=${this[_0x2e07c9(0x1ee)]} .mode=${_0x2e07c9(0x1ed)} auto-fetch
8
+ .fetchHandler=${this[_0x2e07c9(0x1e6)][_0x2e07c9(0x1c4)](this)}></ox-grist>
9
9
  </div>
10
10
  <div field >
11
11
  <h2>
12
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1090fd(0xd2)](_0x1090fd(0xf3))}
12
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x2e07c9(0x1bd))}
13
13
  </h2>
14
- <ox-grist id="column-emphasized-grist" .config=${this['columnEmphasizedConfig']} .mode=${'GRID'} auto-fetch
15
- .fetchHandler=${this[_0x1090fd(0x104)][_0x1090fd(0xdf)](this)}></ox-grist>
14
+ <ox-grist id="column-emphasized-grist" .config=${this[_0x2e07c9(0x1c9)]} .mode=${_0x2e07c9(0x1ed)} auto-fetch
15
+ .fetchHandler=${this[_0x2e07c9(0x1d7)][_0x2e07c9(0x1c4)](this)}></ox-grist>
16
16
  </div>
17
17
  </div>
18
- `;}async[a0_0x628d(0xd9)](){return{'records':this['viewEmphasizedData']['rowEmphasizedData'],'total':0x0};}async[a0_0x628d(0x104)](){const _0x42f2f5=a0_0x628d;return{'records':this[_0x42f2f5(0xd8)][_0x42f2f5(0xd4)],'total':0x0};}};
18
+ `;}async[a0_0xdc4ed4(0x1e6)](){const _0x577d10=a0_0xdc4ed4;return{'records':this[_0x577d10(0x1d1)][_0x577d10(0x1c3)],'total':0x0};}async[a0_0xdc4ed4(0x1d7)](){const _0x50caa1=a0_0xdc4ed4;return{'records':this[_0x50caa1(0x1d1)]['columnEmphasizedData'],'total':0x0};}};
@@ -1,29 +1,29 @@
1
- const a0_0x5a04dd=a0_0xdcfd;function a0_0x20d7(){const _0x69bc29=['value','name','1510920pbhQeF','tLabel','5334810exnAaP','menu_desc_field','help','getElementValueById','getElementById','2496964UDFTIC','display','target','title','15484917FtxcWo','help_doc','viewMenuData','desc','7190935jYDXgL','description','getMenuConfigTabValues','renderMenuConfigTab','2226266UAqlGs','1197351XXKSjo','setMenuConfigTabDefaultValue','setMenuConfigTabValues','menu'];a0_0x20d7=function(){return _0x69bc29;};return a0_0x20d7();}(function(_0x366c2a,_0x1ad317){const _0x13dad5=a0_0xdcfd,_0x22f7dc=_0x366c2a();while(!![]){try{const _0x424673=-parseInt(_0x13dad5(0x109))/0x1+parseInt(_0x13dad5(0x108))/0x2+parseInt(_0x13dad5(0x10f))/0x3+parseInt(_0x13dad5(0x116))/0x4+-parseInt(_0x13dad5(0x104))/0x5+-parseInt(_0x13dad5(0x111))/0x6+parseInt(_0x13dad5(0x100))/0x7;if(_0x424673===_0x1ad317)break;else _0x22f7dc['push'](_0x22f7dc['shift']());}catch(_0x29b485){_0x22f7dc['push'](_0x22f7dc['shift']());}}}(a0_0x20d7,0xe2ad8));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0xdcfd(_0x21480b,_0x40d9aa){const _0x20d75d=a0_0x20d7();return a0_0xdcfd=function(_0xdcfd21,_0x431eb7){_0xdcfd21=_0xdcfd21-0xfe;let _0xe3a06f=_0x20d75d[_0xdcfd21];return _0xe3a06f;},a0_0xdcfd(_0x21480b,_0x40d9aa);}export const MenuConfigTabMixin=_0x57490c=>class extends _0x57490c{[a0_0x5a04dd(0x10b)](_0x54dbe0){const _0x4230a8=a0_0x5a04dd;if(_0x54dbe0){var {title:_0x195a17='',name:_0x575138='',desc:_0x30af1b='',help:_0x4cfaaa=''}=_0x54dbe0||{};this[_0x4230a8(0x102)]={'title':_0x195a17,'name':_0x575138,'desc':_0x30af1b,'help_doc':_0x4cfaaa},this['getElementById'](_0x4230a8(0xff))[_0x4230a8(0x10d)]=_0x195a17,this['getElementById'](_0x4230a8(0x10e))[_0x4230a8(0x10d)]=_0x575138,this['getElementById']('desc')[_0x4230a8(0x10d)]=_0x30af1b,this[_0x4230a8(0x115)]('help_doc')[_0x4230a8(0x10d)]=_0x4cfaaa;}else this[_0x4230a8(0x10a)]();}[a0_0x5a04dd(0x106)](){const _0xb53826=a0_0x5a04dd;let _0x33fe3d={'menu':{}},_0x407513=this[_0xb53826(0x114)](_0xb53826(0xff)),_0x35d47e=this['getElementValueById']('name'),_0x32b8c5=this[_0xb53826(0x114)](_0xb53826(0x103)),_0x13356c=this['getElementValueById'](_0xb53826(0x101));return _0x407513&&(_0x33fe3d[_0xb53826(0x10c)][_0xb53826(0xff)]=_0x407513),_0x35d47e&&(_0x33fe3d[_0xb53826(0x10c)][_0xb53826(0x10e)]=_0x35d47e),_0x32b8c5&&(_0x33fe3d[_0xb53826(0x10c)][_0xb53826(0x103)]=_0x32b8c5),_0x13356c&&(_0x33fe3d[_0xb53826(0x10c)][_0xb53826(0x113)]=_0x13356c),_0x33fe3d;}[a0_0x5a04dd(0x10a)](){const _0x49afb6=a0_0x5a04dd;this[_0x49afb6(0x102)]||(this[_0x49afb6(0x102)]={'title':'','name':_0x49afb6(0x10e),'desc':_0x49afb6(0x105),'help_doc':''});}['menuTitleChange'](_0x146369){const _0x557858=a0_0x5a04dd;let _0x45c9d7=this[_0x557858(0x115)](_0x557858(0x117));_0x45c9d7&&(_0x45c9d7[_0x557858(0x10d)]=TermsUtil['tTitle'](_0x146369[_0x557858(0xfe)][_0x557858(0x10d)]));}[a0_0x5a04dd(0x107)](){const _0xf471f0=a0_0x5a04dd;return this[_0xf471f0(0x10a)](),html`
1
+ function a0_0x8c8d(_0x116de9,_0x23ca73){const _0x3f7914=a0_0x3f79();return a0_0x8c8d=function(_0x8c8dea,_0x374391){_0x8c8dea=_0x8c8dea-0x13c;let _0x8ecb87=_0x3f7914[_0x8c8dea];return _0x8ecb87;},a0_0x8c8d(_0x116de9,_0x23ca73);}const a0_0x55677f=a0_0x8c8d;(function(_0x3f652d,_0x4da4a8){const _0x57b9bb=a0_0x8c8d,_0xc9c452=_0x3f652d();while(!![]){try{const _0x4989cb=-parseInt(_0x57b9bb(0x159))/0x1*(parseInt(_0x57b9bb(0x144))/0x2)+-parseInt(_0x57b9bb(0x152))/0x3+-parseInt(_0x57b9bb(0x141))/0x4*(parseInt(_0x57b9bb(0x14b))/0x5)+-parseInt(_0x57b9bb(0x153))/0x6*(parseInt(_0x57b9bb(0x147))/0x7)+parseInt(_0x57b9bb(0x151))/0x8+parseInt(_0x57b9bb(0x157))/0x9+-parseInt(_0x57b9bb(0x143))/0xa*(-parseInt(_0x57b9bb(0x14d))/0xb);if(_0x4989cb===_0x4da4a8)break;else _0xc9c452['push'](_0xc9c452['shift']());}catch(_0x187c61){_0xc9c452['push'](_0xc9c452['shift']());}}}(a0_0x3f79,0x470ab));import{html}from'lit-element';function a0_0x3f79(){const _0x523ae3=['menu_desc_field','target','getElementById','tTitle','80AyegJG','value','183010LCtdjF','64290aXqwqr','renderMenuConfigTab','getElementValueById','572537gnwNpg','menu_name_field','setMenuConfigTabValues','menuTitleChange','6280XHABCK','menu','319yrcFOu','help','setMenuConfigTabDefaultValue','getMenuConfigTabValues','1170456ajHfZX','699213xZAtAw','18ZuaddN','desc','tLabel','title','2793465XkRDzh','name','6UyKaew','description','help_doc','viewMenuData','display'];a0_0x3f79=function(){return _0x523ae3;};return a0_0x3f79();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x14dc90=>class extends _0x14dc90{[a0_0x55677f(0x149)](_0x4a0fe4){const _0x2f5e91=a0_0x55677f;if(_0x4a0fe4){var {title:_0x242827='',name:_0x296ab9='',desc:_0x5871e6='',help:_0x415a96=''}=_0x4a0fe4||{};this['viewMenuData']={'title':_0x242827,'name':_0x296ab9,'desc':_0x5871e6,'help_doc':_0x415a96},this['getElementById'](_0x2f5e91(0x156))[_0x2f5e91(0x142)]=_0x242827,this[_0x2f5e91(0x13f)](_0x2f5e91(0x158))[_0x2f5e91(0x142)]=_0x296ab9,this[_0x2f5e91(0x13f)](_0x2f5e91(0x154))[_0x2f5e91(0x142)]=_0x5871e6,this[_0x2f5e91(0x13f)](_0x2f5e91(0x15b))[_0x2f5e91(0x142)]=_0x415a96;}else this[_0x2f5e91(0x14f)]();}[a0_0x55677f(0x150)](){const _0x9ce7ba=a0_0x55677f;let _0x4736c1={'menu':{}},_0x55074e=this['getElementValueById'](_0x9ce7ba(0x156)),_0x569dc9=this[_0x9ce7ba(0x146)](_0x9ce7ba(0x158)),_0x3cba12=this[_0x9ce7ba(0x146)](_0x9ce7ba(0x154)),_0x4c9831=this[_0x9ce7ba(0x146)](_0x9ce7ba(0x15b));return _0x55074e&&(_0x4736c1[_0x9ce7ba(0x14c)][_0x9ce7ba(0x156)]=_0x55074e),_0x569dc9&&(_0x4736c1[_0x9ce7ba(0x14c)][_0x9ce7ba(0x158)]=_0x569dc9),_0x3cba12&&(_0x4736c1[_0x9ce7ba(0x14c)][_0x9ce7ba(0x154)]=_0x3cba12),_0x4c9831&&(_0x4736c1['menu'][_0x9ce7ba(0x14e)]=_0x4c9831),_0x4736c1;}[a0_0x55677f(0x14f)](){const _0x19ded9=a0_0x55677f;this[_0x19ded9(0x15c)]||(this[_0x19ded9(0x15c)]={'title':'','name':'name','desc':_0x19ded9(0x15a),'help_doc':''});}[a0_0x55677f(0x14a)](_0x11ff5c){const _0x18edbd=a0_0x55677f;let _0x3b56aa=this['getElementById'](_0x18edbd(0x13c));_0x3b56aa&&(_0x3b56aa[_0x18edbd(0x142)]=TermsUtil['tTitle'](_0x11ff5c[_0x18edbd(0x13e)][_0x18edbd(0x142)]));}[a0_0x55677f(0x145)](){const _0x493318=a0_0x55677f;return this[_0x493318(0x14f)](),html`
2
2
  <div field-2column>
3
3
  <div field>
4
- <label>${TermsUtil[_0xf471f0(0x110)]('menu_title')}
5
- <input id="title" name="title" type="text" value=${this[_0xf471f0(0x102)][_0xf471f0(0xff)]} @change=${_0x5365fc=>this['menuTitleChange'](_0x5365fc)}/>
4
+ <label>${TermsUtil[_0x493318(0x155)]('menu_title')}
5
+ <input id="title" name="title" type="text" value=${this[_0x493318(0x15c)]['title']} @change=${_0x461112=>this[_0x493318(0x14a)](_0x461112)}/>
6
6
  </label>
7
7
  </div>
8
8
  <div field>
9
- <label>${TermsUtil[_0xf471f0(0x110)](_0xf471f0(0x117))}
10
- <input id="display" name="display" value=${TermsUtil['tTitle'](this['viewMenuData'][_0xf471f0(0xff)])} type="text" readonly
9
+ <label>${TermsUtil[_0x493318(0x155)](_0x493318(0x13c))}
10
+ <input id="display" name="display" value=${TermsUtil[_0x493318(0x140)](this['viewMenuData']['title'])} type="text" readonly
11
11
  disabled />
12
12
  </label>
13
13
  </div>
14
14
  <div field>
15
- <label>${TermsUtil['tLabel']('menu_name_field')}
16
- <input id="name" name="name" type="text" value=${this[_0xf471f0(0x102)]['name']} />
15
+ <label>${TermsUtil[_0x493318(0x155)](_0x493318(0x148))}
16
+ <input id="name" name="name" type="text" value=${this[_0x493318(0x15c)][_0x493318(0x158)]} />
17
17
  </label>
18
18
  </div>
19
19
  <div field>
20
- <label>${TermsUtil[_0xf471f0(0x110)](_0xf471f0(0x112))}
21
- <input id="desc" name="desc" type="text" value=${this[_0xf471f0(0x102)][_0xf471f0(0x103)]} />
20
+ <label>${TermsUtil['tLabel'](_0x493318(0x13d))}
21
+ <input id="desc" name="desc" type="text" value=${this[_0x493318(0x15c)][_0x493318(0x154)]} />
22
22
  </label>
23
23
  </div>
24
24
  <div field>
25
- <label>${TermsUtil['tLabel'](_0xf471f0(0x101))}
26
- <input id="help_doc" name="help_doc" type="text" value=${this[_0xf471f0(0x102)]['help_doc']} />
25
+ <label>${TermsUtil['tLabel'](_0x493318(0x15b))}
26
+ <input id="help_doc" name="help_doc" type="text" value=${this[_0x493318(0x15c)][_0x493318(0x15b)]} />
27
27
  </label>
28
28
  </div>
29
29
  </div>
@@ -1,4 +1,4 @@
1
- const a0_0x5e4c78=a0_0x1671;(function(_0x498927,_0x4c3f0c){const _0x209ac2=a0_0x1671,_0x2bca41=_0x498927();while(!![]){try{const _0x4f92fb=parseInt(_0x209ac2(0xc1))/0x1+-parseInt(_0x209ac2(0xdb))/0x2+parseInt(_0x209ac2(0x8a))/0x3+-parseInt(_0x209ac2(0xb0))/0x4*(-parseInt(_0x209ac2(0x9d))/0x5)+-parseInt(_0x209ac2(0xa0))/0x6+-parseInt(_0x209ac2(0xc0))/0x7+parseInt(_0x209ac2(0x9c))/0x8*(parseInt(_0x209ac2(0xb7))/0x9);if(_0x4f92fb===_0x4c3f0c)break;else _0x2bca41['push'](_0x2bca41['shift']());}catch(_0x59f66c){_0x2bca41['push'](_0x2bca41['shift']());}}}(a0_0x4423,0x938a4));import a0_0x46b323 from'graphql-tag';function a0_0x4423(){const _0x517ac4=['refresh','etc','option','save','meta_generator','length','bind','tab_config','icon','tLabel','style','tab','rank','updateMultiple','1208tbkMTI','185085DOGNim','template','sorters','3795312CupDVx','\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','value','pageInitialized','details','radio','sort_rank','convertFirstCharUpperCase','fields','form','tabData','clear','sortRecordByRank','lifecycle','filters','display:none','84KmYlKM','data','render','ConfigTabValues','keys','getState','currentTabKey','16317RXkIWJ','initData','type','grid-','metaTemplate','backToMenu','tButton','includes','ox-input-code','1277717ZJrlNK','846715ihGzUv','menuId','thumbnail','list','getConfigTab','button','sortRecordByField','ConfigTab','ox-grist','dataStorage','operatoTools','remove','setTabData','sort_desc','graphql','search','toLowerCase','display:flex','set','rep_field','form_config','records','get','tMenu','error.invalid\x20license\x20key','updateMultipleMenu','1223578cnoawX','parse','tagName','shadowRoot','desc','dirtyData','studioPermission','forEach','grid_emphasized_config','enc','options','errors','ConfigTabConfig','filter','querySelector','map','button_config','etc_config','graphql_config','stringify','params','grid','push','properties',':checked','name','back','active','menuName','gridEmphasized','detail_field','thumbnail_field','query','menu_config','define','400083ESdmRf','column','dec','findOne'];a0_0x4423=function(){return _0x517ac4;};return a0_0x4423();}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';function a0_0x1671(_0x43e90e,_0x2bcb5f){const _0x442367=a0_0x4423();return a0_0x1671=function(_0x167170,_0x22d2bd){_0x167170=_0x167170-0x80;let _0x17648f=_0x442367[_0x167170];return _0x17648f;},a0_0x1671(_0x43e90e,_0x2bcb5f);}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['styles'](){return[css`
1
+ const a0_0x5ec330=a0_0x3889;(function(_0x2fe31d,_0x3a85b8){const _0x37faa6=a0_0x3889,_0x402848=_0x2fe31d();while(!![]){try{const _0x48be37=-parseInt(_0x37faa6(0x147))/0x1+parseInt(_0x37faa6(0xf9))/0x2+-parseInt(_0x37faa6(0x124))/0x3+parseInt(_0x37faa6(0x148))/0x4*(parseInt(_0x37faa6(0x129))/0x5)+-parseInt(_0x37faa6(0x11f))/0x6*(-parseInt(_0x37faa6(0x15f))/0x7)+-parseInt(_0x37faa6(0x10c))/0x8*(parseInt(_0x37faa6(0x150))/0x9)+parseInt(_0x37faa6(0x10e))/0xa;if(_0x48be37===_0x3a85b8)break;else _0x402848['push'](_0x402848['shift']());}catch(_0x53971f){_0x402848['push'](_0x402848['shift']());}}}(a0_0xd6e3,0x56c58));import a0_0x3357fe from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';function a0_0x3889(_0x2ae0cb,_0x21c96e){const _0xd6e3d2=a0_0xd6e3();return a0_0x3889=function(_0x388921,_0x241ea9){_0x388921=_0x388921-0xf3;let _0x5a62c8=_0xd6e3d2[_0x388921];return _0x5a62c8;},a0_0x3889(_0x2ae0cb,_0x21c96e);}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';function a0_0xd6e3(){const _0x5e7c7a=['get','dataStorage','query','detail_field','getElementValueById','toUpperCase','currentTabKey','deleteRow','menuId','thumbnail_field','backToMenu','metaTemplate','studioPermission','toLowerCase','icon','tButton','1272068fTUIjU','form','map','refresh','ConfigTab','menu','filter','tLabel','ox-grist','etc','menu_config','sorters','parse','graphql_config','stringify','tabData','menuName','getConfigTab','active','3749192ytoiHc','records','1962870hVDEcK','styles','hidden','options','ConfigTabConfig','getElementById','value','meta_generator','keys','convertFirstCharUpperCase','tMenu','forEach','context','set','querySelector','notify','enc','434574DcjlxA','setTabData','radio','sort_rank','length','358059hjUrRy','rank','option','pageUpdated','tagName','15PFqmcW','bind','define','clear','filters','grid','save','ConfigTabValues','updateMultiple','desc','button','gridEmphasized','type','sort','error.invalid\x20license\x20key','dec','fields','dirtyData','list','includes','push','column','thumbnail','sortRecordByRank','shadowRoot','updateMultipleMenu','search_config','render','tTitle','tab','270917YEyGfA','26492WjiPLE','pageInitialized','template','selectedIndex','sortRecordByField','initData','properties','style','9CJYnHO',':checked','remove','params','data','name','grid_config','back','display:none','lifecycle','details','column_config','meta-generator-page','error','operatoTools','35xIvxmc','errors'];a0_0xd6e3=function(){return _0x5e7c7a;};return a0_0xd6e3();}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_0x5ec330(0x10f)](){return[css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -141,24 +141,24 @@ const a0_0x5e4c78=a0_0x1671;(function(_0x498927,_0x4c3f0c){const _0x209ac2=a0_0x
141
141
  flex: 1;
142
142
  }
143
143
 
144
- `];}static get[a0_0x5e4c78(0xf2)](){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 _0x33a1b3=a0_0x5e4c78;return{'title':TermsUtil['tTitle'](_0x33a1b3(0x92)),'actions':[{'title':TermsUtil[_0x33a1b3(0xbd)]('save'),'action':this[_0x33a1b3(0x91)][_0x33a1b3(0x94)](this),...CommonButtonStyles[_0x33a1b3(0x91)]},{'title':TermsUtil['tButton'](_0x33a1b3(0x81)),'action':this[_0x33a1b3(0xbc)][_0x33a1b3(0x94)](this),...CommonButtonStyles[_0x33a1b3(0x81)]},{'title':TermsUtil[_0x33a1b3(0xbd)]('refresh'),'action':this['refresh'][_0x33a1b3(0x94)](this),...CommonButtonStyles[_0x33a1b3(0x8e)]}]};}['deleteRow'](_0x3c59b7,_0x3f3540){const _0x1391a0=a0_0x5e4c78;let _0x3456c4=_0x3c59b7[_0x1391a0(0xe0)];_0x3456c4[_0x1391a0(0xd6)]=_0x3456c4['records'][_0x1391a0(0xe8)](_0xefc7f5=>_0xefc7f5['id']!=_0x3f3540['id']),_0x3c59b7[_0x1391a0(0xb1)]=_0x3456c4;}async['save'](){const _0x19af82=a0_0x5e4c78;if(0x0==store[_0x19af82(0xb5)]()[_0x19af82(0xcb)][_0x19af82(0xe1)])return void document['dispatchEvent'](new CustomEvent('notify',{'detail':{'level':'error','message':i18next['t'](_0x19af82(0xd9))}}));if((await client['query']({'query':a0_0x46b323`
144
+ `];}static get[a0_0x5ec330(0x14e)](){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_0x5ec330(0x11a)](){const _0xc05402=a0_0x5ec330;return{'title':TermsUtil[_0xc05402(0x145)](_0xc05402(0x115)),'actions':[{'title':TermsUtil[_0xc05402(0xf8)](_0xc05402(0x12f)),'action':this[_0xc05402(0x12f)][_0xc05402(0x12a)](this),...CommonButtonStyles[_0xc05402(0x12f)]},{'title':TermsUtil[_0xc05402(0xf8)](_0xc05402(0x157)),'action':this[_0xc05402(0xf3)][_0xc05402(0x12a)](this),...CommonButtonStyles['back']},{'title':TermsUtil[_0xc05402(0xf8)]('refresh'),'action':this[_0xc05402(0xfc)][_0xc05402(0x12a)](this),...CommonButtonStyles[_0xc05402(0xfc)]}]};}[a0_0x5ec330(0x168)](_0x509467,_0x24eb57){const _0x4470ae=a0_0x5ec330;let _0x3a56a3=_0x509467[_0x4470ae(0x13a)];_0x3a56a3[_0x4470ae(0x10d)]=_0x3a56a3[_0x4470ae(0x10d)][_0x4470ae(0xff)](_0x56e8db=>_0x56e8db['id']!=_0x24eb57['id']),_0x509467[_0x4470ae(0x154)]=_0x3a56a3;}async['save'](){const _0x41bb33=a0_0x5ec330;if(0x0==store['getState']()[_0x41bb33(0x15e)][_0x41bb33(0xf5)])return void document['dispatchEvent'](new CustomEvent(_0x41bb33(0x11d),{'detail':{'level':_0x41bb33(0x15d),'message':i18next['t'](_0x41bb33(0x137))}}));if((await client[_0x41bb33(0x163)]({'query':a0_0x3357fe`
145
145
  query ($id: String!) {
146
146
  studioTemplateIsOverLimit(id: $id)
147
147
  }
148
- `,'variables':{'id':this[_0x19af82(0xc2)]}}))[_0x19af82(0xe6)])return;let _0x4517dc={},_0xcee5cd={};Object[_0x19af82(0xb4)](this[_0x19af82(0xaa)])['forEach'](_0x4dcefe=>{const _0x55d139=_0x19af82;let _0xf01cf7=this[_0x55d139(0xa7)](_0x4dcefe);_0x4517dc[_0x4dcefe]=this[_0x55d139(0xd7)+_0xf01cf7+'ConfigTabValues'](),_0xcee5cd=merge(_0xcee5cd,_0x4517dc[_0x4dcefe]);}),_0xcee5cd=JSON[_0x19af82(0xee)](_0xcee5cd),_0xcee5cd=MetaCrypto[_0x19af82(0xe4)](_0xcee5cd),await MetaApi[_0x19af82(0x9b)](_0x19af82(0xda),[{'id':this['menuId'],'template':_0xcee5cd,'cuFlag':'M'}])&&await this[_0x19af82(0xb8)]();}[a0_0x5e4c78(0xab)](){const _0x3e1128=a0_0x5e4c78;this['setTabData'](),this[_0x3e1128(0xca)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x3e1128(0xb4)](this[_0x3e1128(0xaa)])[_0x3e1128(0xe2)](_0x12ea27=>{const _0xd84564=_0x3e1128;let _0xf22e41=this[_0xd84564(0xa7)](_0x12ea27);if(this['set'+_0xf22e41+_0xd84564(0xb3)])return this[_0xd84564(0xd3)+_0xf22e41+'ConfigTabValues'](this['dataStorage'][_0x12ea27]);});}async['refresh'](){this['clear'](),await this['initData']();}['backToMenu'](){const _0x4746e2=a0_0x5e4c78;history[_0x4746e2(0x81)]();}async['initData'](){const _0x474874=a0_0x5e4c78;var {menuId:_0x5e1f82=''}=this[_0x474874(0xad)]?.['params']?this[_0x474874(0xad)][_0x474874(0xef)]:{};if(this['menuId']=_0x5e1f82,!_0x5e1f82||''==_0x5e1f82)return void this[_0x474874(0xab)]();let _0x153ec1=await MetaApi[_0x474874(0x8d)]('menu',_0x5e1f82,_0x474874(0xa1));if(_0x153ec1){try{JSON[_0x474874(0xdc)](MetaCrypto['dec'](_0x153ec1[_0x474874(0x9e)]));}catch(_0x231cc4){return;}this[_0x474874(0x83)]=TermsUtil[_0x474874(0xd8)](_0x153ec1[_0x474874(0x80)]),this[_0x474874(0xbb)]=_0x153ec1[_0x474874(0x9e)]?JSON[_0x474874(0xdc)](MetaCrypto[_0x474874(0x8c)](_0x153ec1[_0x474874(0x9e)])):{};var {menu:_0x2a9855={},gql:_0x2bfd3c={},button:_0x279129=[],grid_column:_0x33bac7=[],grid:_0x20be50={},search:_0x247018=[],form:_0x4aafc0=[],tab:_0x2dd68d=[],etc:_0x544579={},gridEmphasized:_0x391ac2=[]}=this[_0x474874(0xbb)]?this['metaTemplate']:{};this[_0x474874(0xcd)](),this[_0x474874(0xca)]={},this[_0x474874(0xca)]['menu']=_0x2a9855,this['dataStorage'][_0x474874(0xcf)]=_0x2bfd3c,this[_0x474874(0xca)][_0x474874(0xf0)]=_0x20be50,this[_0x474874(0xca)][_0x474874(0xa9)]=_0x4aafc0,this[_0x474874(0xca)][_0x474874(0x99)]=_0x2dd68d,this[_0x474874(0xca)][_0x474874(0x8f)]=_0x544579,this[_0x474874(0xca)][_0x474874(0x84)]=_0x391ac2,(_0x20be50[_0x474874(0x90)]?.[_0x474874(0x9f)]||[])[_0x474874(0xe2)]((_0xd214f5,_0x3c6bc7)=>{_0xd214f5['rank']=0xa*(_0x3c6bc7+0x1);}),this[_0x474874(0xca)][_0x474874(0x8b)]=_0x33bac7['map'](_0x5925c5=>{const _0x11dad4=_0x474874;let _0x38c3c5=(_0x20be50[_0x11dad4(0x90)]?.[_0x11dad4(0x9f)]||[])['filter'](_0xd7835f=>_0xd7835f[_0x11dad4(0x80)]==_0x5925c5['name']);return _0x38c3c5&&_0x38c3c5[_0x11dad4(0x93)]>0x0?(_0x5925c5[_0x11dad4(0xa6)]=_0x38c3c5[0x0][_0x11dad4(0x9a)],_0x5925c5[_0x11dad4(0xce)]=!!_0x38c3c5[0x0][_0x11dad4(0xdf)]&&_0x38c3c5[0x0][_0x11dad4(0xdf)]):_0x5925c5[_0x11dad4(0xa6)]=0x0,_0x5925c5[_0x11dad4(0xd4)]=(_0x20be50[_0x11dad4(0xc4)]?.[_0x11dad4(0xa8)]||[])['includes'](_0x5925c5[_0x11dad4(0x80)]),_0x5925c5[_0x11dad4(0x85)]=(_0x20be50['list']?.[_0x11dad4(0xa4)]||[])[_0x11dad4(0xbe)](_0x5925c5['name']),_0x5925c5[_0x11dad4(0x86)]=_0x20be50[_0x11dad4(0xc4)]?.[_0x11dad4(0xc3)]==_0x5925c5[_0x11dad4(0x80)],_0x5925c5;}),_0x247018[_0x474874(0xf1)](...(_0x2bfd3c[_0x474874(0x87)]?.[_0x474874(0xae)]||[])['map'](_0xa71dbe=>(_0xa71dbe['hidden']=!0x0,_0xa71dbe))),this[_0x474874(0xca)][_0x474874(0xd0)]=_0x247018,_0x279129['push'](...(_0x20be50[_0x474874(0xc6)]||[])[_0x474874(0xea)](_0x1705cb=>(_0x1705cb['type']=_0x474874(0xba)+_0x1705cb[_0x474874(0xb9)],_0x1705cb[_0x474874(0x98)]=_0x1705cb[_0x474874(0x96)],_0x1705cb))),this[_0x474874(0xca)][_0x474874(0xc6)]=_0x279129,Object['keys'](this[_0x474874(0xaa)])[_0x474874(0xe2)](_0x16c70e=>{const _0xc3f277=_0x474874;let _0x539fb1=this['convertFirstCharUpperCase'](_0x16c70e);if(this[_0xc3f277(0xd3)+_0x539fb1+'ConfigTabValues'])return this['set'+_0x539fb1+_0xc3f277(0xb3)](this[_0xc3f277(0xca)][_0x16c70e]);});}}async[a0_0x5e4c78(0xa3)](){const _0x2469d3=a0_0x5e4c78;this['setTabData']();let _0x23b2c0=Object[_0x2469d3(0xb4)](this[_0x2469d3(0xaa)]);for(var _0x234496=0x0;_0x234496<_0x23b2c0[_0x2469d3(0x93)];_0x234496++){let _0x5dad59=this[_0x2469d3(0xa7)](_0x23b2c0[_0x234496]);this[_0x2469d3(0xd3)+_0x5dad59+_0x2469d3(0xe7)]&&await this[_0x2469d3(0xd3)+_0x5dad59+'ConfigTabConfig']();}}async['pageUpdated'](_0x41ba5a,_0x2a8871,_0x11c97e){const _0x22f62f=a0_0x5e4c78;!0x0===this[_0x22f62f(0x82)]?(this[_0x22f62f(0xcd)](),await this[_0x22f62f(0xb8)](),this['setTabData']()):(this[_0x22f62f(0xab)](),this[_0x22f62f(0xcc)]());}[a0_0x5e4c78(0xcd)](){const _0x59747=a0_0x5e4c78;this[_0x59747(0xaa)]||(this[_0x59747(0xaa)]={'menu':TermsUtil[_0x59747(0x97)](_0x59747(0x88)),'graphql':TermsUtil['tLabel'](_0x59747(0xed)),'grid':TermsUtil[_0x59747(0x97)]('grid_config'),'column':TermsUtil['tLabel']('column_config'),'gridEmphasized':TermsUtil[_0x59747(0x97)](_0x59747(0xe3)),'button':TermsUtil[_0x59747(0x97)](_0x59747(0xeb)),'search':TermsUtil[_0x59747(0x97)]('search_config'),'form':TermsUtil['tLabel'](_0x59747(0xd5)),'tab':TermsUtil['tLabel'](_0x59747(0x95)),'etc':TermsUtil[_0x59747(0x97)](_0x59747(0xec))});}[a0_0x5e4c78(0xb2)](){const _0x2d6330=a0_0x5e4c78;this[_0x2d6330(0xb6)]||(this[_0x2d6330(0xb6)]='menu'),this[_0x2d6330(0xcd)]();let _0xf4a3d3=Object[_0x2d6330(0xb4)](this['tabData']);return this[_0x2d6330(0xaa)][this[_0x2d6330(0xb6)]]?this[_0x2d6330(0xb6)]:_0xf4a3d3[0x0],html`
149
- <h1>${this[_0x2d6330(0x83)]}</h1>
148
+ `,'variables':{'id':this[_0x41bb33(0x169)]}}))[_0x41bb33(0x160)])return;let _0x5a92df={},_0x55466a={};Object['keys'](this[_0x41bb33(0x108)])[_0x41bb33(0x119)](_0x4b31c2=>{const _0x1e7b83=_0x41bb33;let _0x58970e=this[_0x1e7b83(0x117)](_0x4b31c2);_0x5a92df[_0x4b31c2]=this[_0x1e7b83(0x161)+_0x58970e+'ConfigTabValues'](),_0x55466a=merge(_0x55466a,_0x5a92df[_0x4b31c2]);}),_0x55466a=JSON[_0x41bb33(0x107)](_0x55466a),_0x55466a=MetaCrypto[_0x41bb33(0x11e)](_0x55466a),await MetaApi[_0x41bb33(0x131)](_0x41bb33(0x142),[{'id':this[_0x41bb33(0x169)],'template':_0x55466a,'cuFlag':'M'}])&&await this[_0x41bb33(0x14d)]();}[a0_0x5ec330(0x12c)](){const _0x255f9b=a0_0x5ec330;this[_0x255f9b(0x120)](),this[_0x255f9b(0x162)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x255f9b(0x116)](this[_0x255f9b(0x108)])['forEach'](_0x2c1668=>{const _0x32cb63=_0x255f9b;let _0x4a6163=this[_0x32cb63(0x117)](_0x2c1668);if(this['set'+_0x4a6163+'ConfigTabValues'])return this[_0x32cb63(0x11b)+_0x4a6163+_0x32cb63(0x130)](this['dataStorage'][_0x2c1668]);});}async[a0_0x5ec330(0xfc)](){const _0x22ad12=a0_0x5ec330;this[_0x22ad12(0x12c)](),await this[_0x22ad12(0x14d)]();}[a0_0x5ec330(0xf3)](){const _0x12b1cb=a0_0x5ec330;history[_0x12b1cb(0x157)]();}async[a0_0x5ec330(0x14d)](){const _0x3122c3=a0_0x5ec330;var {menuId:_0x12c3d5=''}=this[_0x3122c3(0x159)]?.['params']?this[_0x3122c3(0x159)][_0x3122c3(0x153)]:{};if(this[_0x3122c3(0x169)]=_0x12c3d5,!_0x12c3d5||''==_0x12c3d5)return void this['clear']();let _0x1bc379=await MetaApi['findOne'](_0x3122c3(0xfe),_0x12c3d5,'\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(_0x1bc379){try{JSON['parse'](MetaCrypto[_0x3122c3(0x138)](_0x1bc379['template']));}catch(_0x2f39f8){return;}this[_0x3122c3(0x109)]=TermsUtil[_0x3122c3(0x118)](_0x1bc379['name']),this[_0x3122c3(0xf4)]=_0x1bc379['template']?JSON[_0x3122c3(0x105)](MetaCrypto['dec'](_0x1bc379[_0x3122c3(0x14a)])):{};var {menu:_0x6a7dd0={},gql:_0x307fce={},button:_0x22a0c4=[],grid_column:_0x41b398=[],grid:_0x4700ed={},search:_0x3c1158=[],form:_0x48a4df=[],tab:_0x257f16=[],etc:_0x4fb265={},gridEmphasized:_0x5d9bfc=[]}=this['metaTemplate']?this[_0x3122c3(0xf4)]:{};this[_0x3122c3(0x120)](),this[_0x3122c3(0x162)]={},this['dataStorage'][_0x3122c3(0xfe)]=_0x6a7dd0,this[_0x3122c3(0x162)]['graphql']=_0x307fce,this[_0x3122c3(0x162)][_0x3122c3(0x12e)]=_0x4700ed,this[_0x3122c3(0x162)][_0x3122c3(0xfa)]=_0x48a4df,this[_0x3122c3(0x162)][_0x3122c3(0x146)]=_0x257f16,this[_0x3122c3(0x162)][_0x3122c3(0x102)]=_0x4fb265,this[_0x3122c3(0x162)][_0x3122c3(0x134)]=_0x5d9bfc,(_0x4700ed[_0x3122c3(0x126)]?.[_0x3122c3(0x104)]||[])['forEach']((_0x5779c7,_0x2d6e5a)=>{_0x5779c7['rank']=0xa*(_0x2d6e5a+0x1);}),this[_0x3122c3(0x162)][_0x3122c3(0x13e)]=_0x41b398['map'](_0x115df9=>{const _0x1ee3c5=_0x3122c3;let _0x298b79=(_0x4700ed[_0x1ee3c5(0x126)]?.[_0x1ee3c5(0x104)]||[])['filter'](_0x1665f0=>_0x1665f0['name']==_0x115df9[_0x1ee3c5(0x155)]);return _0x298b79&&_0x298b79[_0x1ee3c5(0x123)]>0x0?(_0x115df9[_0x1ee3c5(0x122)]=_0x298b79[0x0]['rank'],_0x115df9['sort_desc']=!!_0x298b79[0x0][_0x1ee3c5(0x132)]&&_0x298b79[0x0][_0x1ee3c5(0x132)]):_0x115df9['sort_rank']=0x0,_0x115df9['rep_field']=(_0x4700ed[_0x1ee3c5(0x13b)]?.[_0x1ee3c5(0x139)]||[])[_0x1ee3c5(0x13c)](_0x115df9['name']),_0x115df9[_0x1ee3c5(0x164)]=(_0x4700ed[_0x1ee3c5(0x13b)]?.[_0x1ee3c5(0x15a)]||[])['includes'](_0x115df9[_0x1ee3c5(0x155)]),_0x115df9[_0x1ee3c5(0x16a)]=_0x4700ed[_0x1ee3c5(0x13b)]?.[_0x1ee3c5(0x13f)]==_0x115df9[_0x1ee3c5(0x155)],_0x115df9;}),_0x3c1158[_0x3122c3(0x13d)](...(_0x307fce['query']?.[_0x3122c3(0x12d)]||[])[_0x3122c3(0xfb)](_0x574cb9=>(_0x574cb9[_0x3122c3(0x110)]=!0x0,_0x574cb9))),this['dataStorage']['search']=_0x3c1158,_0x22a0c4[_0x3122c3(0x13d)](...(_0x4700ed[_0x3122c3(0x133)]||[])['map'](_0x575f83=>(_0x575f83['type']='grid-'+_0x575f83[_0x3122c3(0x135)],_0x575f83[_0x3122c3(0x14f)]=_0x575f83[_0x3122c3(0xf7)],_0x575f83))),this[_0x3122c3(0x162)][_0x3122c3(0x133)]=_0x22a0c4,Object[_0x3122c3(0x116)](this['tabData'])[_0x3122c3(0x119)](_0x1eb434=>{const _0x37e745=_0x3122c3;let _0x5c0836=this['convertFirstCharUpperCase'](_0x1eb434);if(this[_0x37e745(0x11b)+_0x5c0836+_0x37e745(0x130)])return this['set'+_0x5c0836+_0x37e745(0x130)](this[_0x37e745(0x162)][_0x1eb434]);});}}async[a0_0x5ec330(0x149)](){const _0x48340d=a0_0x5ec330;this[_0x48340d(0x120)]();let _0x128646=Object[_0x48340d(0x116)](this[_0x48340d(0x108)]);for(var _0x3cea71=0x0;_0x3cea71<_0x128646[_0x48340d(0x123)];_0x3cea71++){let _0x38f66c=this[_0x48340d(0x117)](_0x128646[_0x3cea71]);this['set'+_0x38f66c+_0x48340d(0x112)]&&await this[_0x48340d(0x11b)+_0x38f66c+'ConfigTabConfig']();}}async[a0_0x5ec330(0x127)](_0x45b87b,_0x423cb7,_0x56dbca){const _0x2fb782=a0_0x5ec330;!0x0===this[_0x2fb782(0x10b)]?(this[_0x2fb782(0x120)](),await this['initData'](),this[_0x2fb782(0x120)]()):(this[_0x2fb782(0x12c)](),this[_0x2fb782(0x152)]());}[a0_0x5ec330(0x120)](){const _0x22063e=a0_0x5ec330;this[_0x22063e(0x108)]||(this[_0x22063e(0x108)]={'menu':TermsUtil['tLabel'](_0x22063e(0x103)),'graphql':TermsUtil[_0x22063e(0x100)](_0x22063e(0x106)),'grid':TermsUtil[_0x22063e(0x100)](_0x22063e(0x156)),'column':TermsUtil[_0x22063e(0x100)](_0x22063e(0x15b)),'gridEmphasized':TermsUtil[_0x22063e(0x100)]('grid_emphasized_config'),'button':TermsUtil[_0x22063e(0x100)]('button_config'),'search':TermsUtil['tLabel'](_0x22063e(0x143)),'form':TermsUtil[_0x22063e(0x100)]('form_config'),'tab':TermsUtil[_0x22063e(0x100)]('tab_config'),'etc':TermsUtil[_0x22063e(0x100)]('etc_config')});}[a0_0x5ec330(0x144)](){const _0x4b0d0b=a0_0x5ec330;this[_0x4b0d0b(0x167)]||(this[_0x4b0d0b(0x167)]=_0x4b0d0b(0xfe)),this[_0x4b0d0b(0x120)]();let _0x439d71=Object[_0x4b0d0b(0x116)](this[_0x4b0d0b(0x108)]);return this[_0x4b0d0b(0x108)][this[_0x4b0d0b(0x167)]]?this[_0x4b0d0b(0x167)]:_0x439d71[0x0],html`
149
+ <h1>${this['menuName']}</h1>
150
150
  <div class="tabs">
151
- ${_0xf4a3d3[_0x2d6330(0xea)](_0x95f31a=>{let _0x59faa2=this['tabData'][_0x95f31a];return html`
152
- <div class="tab" ?activate="${_0x95f31a===this['currentTabKey']}" @click="${()=>this['currentTabKey']=_0x95f31a}">
153
- <span>${_0x59faa2}</span>
151
+ ${_0x439d71[_0x4b0d0b(0xfb)](_0x5af03f=>{const _0x2461d9=_0x4b0d0b;let _0x5725dc=this['tabData'][_0x5af03f];return html`
152
+ <div class="tab" ?activate="${_0x5af03f===this['currentTabKey']}" @click="${()=>this[_0x2461d9(0x167)]=_0x5af03f}">
153
+ <span>${_0x5725dc}</span>
154
154
  </div>
155
155
  `;})}
156
156
  </div>
157
157
  <div class="content-container">
158
- ${_0xf4a3d3['map'](_0x1fdd84=>{const _0x3ef425=_0x2d6330;let _0x288ea9=_0x3ef425(0xaf);return _0x1fdd84==this[_0x3ef425(0xb6)]&&(_0x288ea9=_0x3ef425(0xd2)),html`
159
- <div class='tab-contents' style="${_0x288ea9}">
160
- ${this[_0x3ef425(0xc5)](_0x1fdd84)}
158
+ ${_0x439d71[_0x4b0d0b(0xfb)](_0x2597fe=>{const _0x42a4dd=_0x4b0d0b;let _0x11b919=_0x42a4dd(0x158);return _0x2597fe==this[_0x42a4dd(0x167)]&&(_0x11b919='display:flex'),html`
159
+ <div class='tab-contents' style="${_0x11b919}">
160
+ ${this['getConfigTab'](_0x2597fe)}
161
161
  </div>
162
162
  `;})}
163
163
  </div>
164
- `;}[a0_0x5e4c78(0xc5)](_0x5b024a){const _0x3e9869=a0_0x5e4c78;let _0x526f27=this['convertFirstCharUpperCase'](_0x5b024a);return this[_0x3e9869(0xb2)+_0x526f27+_0x3e9869(0xc8)]?this[_0x3e9869(0xb2)+_0x526f27+_0x3e9869(0xc8)]():html``;}['convertFirstCharUpperCase'](_0x33bd1f){return _0x33bd1f['charAt'](0x0)['toUpperCase']()+_0x33bd1f['slice'](0x1);}['getElementById'](_0x18e958){const _0xa859cc=a0_0x5e4c78;return this['shadowRoot'][_0xa859cc(0xe9)]('#'+_0x18e958);}['getElementValueById'](_0x31315c){const _0x25dbf8=a0_0x5e4c78;let _0x343005=this['shadowRoot'][_0x25dbf8(0xe9)]('#'+_0x31315c);if(!_0x343005)return;let _0x241919='';if('select'==_0x343005['tagName'][_0x25dbf8(0xd1)]()){if(!_0x343005[_0x25dbf8(0xe5)]||0x0==_0x343005[_0x25dbf8(0xe5)][_0x25dbf8(0x93)])return;_0x241919=_0x343005['options'][_0x343005['selectedIndex']][_0x25dbf8(0xa2)];}else{if(_0x25dbf8(0xc9)==_0x343005[_0x25dbf8(0xdd)]['toLowerCase']()){if(!_0x343005[_0x25dbf8(0xe0)])return;if(!_0x343005['dirtyData']['records'])return;if(0x0==_0x343005[_0x25dbf8(0xe0)]['records']['length'])return;return _0x343005[_0x25dbf8(0xe0)][_0x25dbf8(0xd6)];}if(_0x25dbf8(0xbf)==_0x343005['tagName'][_0x25dbf8(0xd1)]())return _0x343005[_0x25dbf8(0xa2)];if(_0x25dbf8(0xa5)==_0x343005[_0x25dbf8(0xb9)]['toLowerCase']()){let _0x32aba3=this[_0x25dbf8(0xde)][_0x25dbf8(0xe9)]('#'+_0x31315c+_0x25dbf8(0xf3));if(!_0x32aba3)return;return _0x32aba3[_0x25dbf8(0xa2)];}_0x241919=_0x343005[_0x25dbf8(0xa2)];}return _0x241919&&''!=_0x241919?_0x241919:void 0x0;}[a0_0x5e4c78(0xac)](_0x4b198e){const _0x2a487b=a0_0x5e4c78;return _0x4b198e?this[_0x2a487b(0xc7)](_0x4b198e,_0x2a487b(0x9a)):_0x4b198e;}[a0_0x5e4c78(0xc7)](_0x28312b,_0x1250cf){return _0x28312b['sort']((_0xf421dc,_0x4f88e7)=>_0xf421dc[_0x1250cf]-_0x4f88e7[_0x1250cf]),_0x28312b;}}customElements[a0_0x5e4c78(0x89)]('meta-generator-page',MetaGeneratorPage);
164
+ `;}[a0_0x5ec330(0x10a)](_0x300938){const _0x1fd685=a0_0x5ec330;let _0x1089b8=this['convertFirstCharUpperCase'](_0x300938);return this[_0x1fd685(0x144)+_0x1089b8+_0x1fd685(0xfd)]?this[_0x1fd685(0x144)+_0x1089b8+_0x1fd685(0xfd)]():html``;}[a0_0x5ec330(0x117)](_0x54aabe){const _0x4829e0=a0_0x5ec330;return _0x54aabe['charAt'](0x0)[_0x4829e0(0x166)]()+_0x54aabe['slice'](0x1);}[a0_0x5ec330(0x113)](_0x9959c1){const _0x43c505=a0_0x5ec330;return this[_0x43c505(0x141)][_0x43c505(0x11c)]('#'+_0x9959c1);}[a0_0x5ec330(0x165)](_0x4aa410){const _0x176b98=a0_0x5ec330;let _0x432527=this[_0x176b98(0x141)][_0x176b98(0x11c)]('#'+_0x4aa410);if(!_0x432527)return;let _0xf8d08='';if('select'==_0x432527['tagName'][_0x176b98(0xf6)]()){if(!_0x432527[_0x176b98(0x111)]||0x0==_0x432527['options'][_0x176b98(0x123)])return;_0xf8d08=_0x432527[_0x176b98(0x111)][_0x432527[_0x176b98(0x14b)]][_0x176b98(0x114)];}else{if(_0x176b98(0x101)==_0x432527[_0x176b98(0x128)][_0x176b98(0xf6)]()){if(!_0x432527[_0x176b98(0x13a)])return;if(!_0x432527[_0x176b98(0x13a)][_0x176b98(0x10d)])return;if(0x0==_0x432527['dirtyData'][_0x176b98(0x10d)][_0x176b98(0x123)])return;return _0x432527[_0x176b98(0x13a)][_0x176b98(0x10d)];}if('ox-input-code'==_0x432527['tagName'][_0x176b98(0xf6)]())return _0x432527[_0x176b98(0x114)];if(_0x176b98(0x121)==_0x432527[_0x176b98(0x135)][_0x176b98(0xf6)]()){let _0x337161=this[_0x176b98(0x141)]['querySelector']('#'+_0x4aa410+_0x176b98(0x151));if(!_0x337161)return;return _0x337161[_0x176b98(0x114)];}_0xf8d08=_0x432527[_0x176b98(0x114)];}return _0xf8d08&&''!=_0xf8d08?_0xf8d08:void 0x0;}[a0_0x5ec330(0x140)](_0x1c98dd){const _0x4ac666=a0_0x5ec330;return _0x1c98dd?this[_0x4ac666(0x14c)](_0x1c98dd,_0x4ac666(0x125)):_0x1c98dd;}[a0_0x5ec330(0x14c)](_0x503684,_0x459c22){const _0x31602d=a0_0x5ec330;return _0x503684[_0x31602d(0x136)]((_0x88cd0,_0x1b3aea)=>_0x88cd0[_0x459c22]-_0x1b3aea[_0x459c22]),_0x503684;}}customElements[a0_0x5ec330(0x12b)](a0_0x5ec330(0x15c),MetaGeneratorPage);
@@ -1,4 +1,4 @@
1
- const a0_0x460f67=a0_0x3a79;(function(_0x28b09b,_0x4dc25e){const _0x1bf2fe=a0_0x3a79,_0x3fbeb6=_0x28b09b();while(!![]){try{const _0x5dafe8=-parseInt(_0x1bf2fe(0x135))/0x1+-parseInt(_0x1bf2fe(0x128))/0x2+parseInt(_0x1bf2fe(0x13b))/0x3*(parseInt(_0x1bf2fe(0x13a))/0x4)+parseInt(_0x1bf2fe(0x139))/0x5*(parseInt(_0x1bf2fe(0x141))/0x6)+-parseInt(_0x1bf2fe(0x126))/0x7*(-parseInt(_0x1bf2fe(0x13c))/0x8)+parseInt(_0x1bf2fe(0x12b))/0x9*(parseInt(_0x1bf2fe(0x13d))/0xa)+-parseInt(_0x1bf2fe(0x14f))/0xb;if(_0x5dafe8===_0x4dc25e)break;else _0x3fbeb6['push'](_0x3fbeb6['shift']());}catch(_0x11aa0b){_0x3fbeb6['push'](_0x3fbeb6['shift']());}}}(a0_0x260f,0x6f0ad));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_0x3a79(_0x264cf0,_0x4e80c3){const _0x260fef=a0_0x260f();return a0_0x3a79=function(_0x3a7930,_0x4f8715){_0x3a7930=_0x3a7930-0x120;let _0x509d68=_0x260fef[_0x3a7930];return _0x509d68;},a0_0x3a79(_0x264cf0,_0x4e80c3);}function a0_0x260f(){const _0x20855d=['filter','7VKspbO','setSearchConfigTabConfig','1172226AhFWyS','delete','string','54JFIiuY','search-tab-grid','renderSearchConfigTab','shadowRoot','map','sortRecordByRank','fetchSearchTabHandler','viewSearchData','integer','getSearchConfigTabValues','204097WUtzMJ','getElementValueById','right','filters','10JLDgGg','165964ltoXhW','57nFWgnZ','1234736REmord','491980YIMUhS','value','push','searchTabGridConfig','256362ReCoWv','deleteRow','searchTabGrist','FILTER_OPERATORS','tLabel','forEach','name','getGristGuttersConfig','default_value','hidden','#search-tab-grid','rank','left','querySelector','861014zYlJdw','gql','setSearchConfigTabValues','query','gutter','search','select','bind','operator','boolean'];a0_0x260f=function(){return _0x20855d;};return a0_0x260f();}export const SearchConfigTabMixin=_0x3bc823=>class extends _0x3bc823{[a0_0x460f67(0x151)](_0x1033a1){const _0x4e4ed9=a0_0x460f67;let _0x3d9c4d=_0x1033a1?.[_0x4e4ed9(0x12f)]((_0x4b1e88,_0x114901)=>{const _0xe67b8f=_0x4e4ed9;let _0x30bfc8=_0x114901+0x1,_0xdad261={};return'object'==typeof _0x4b1e88?Object['assign'](_0xdad261,_0x4b1e88):(_0xdad261[_0xe67b8f(0x147)]=_0x4b1e88,_0xdad261[_0xe67b8f(0x123)]=_0xe67b8f(0x125)),_0xdad261[_0xe67b8f(0x14c)]=0xa*_0x30bfc8,_0xdad261['id']=_0x30bfc8,_0xdad261;});this[_0x4e4ed9(0x132)]=_0x3d9c4d||[],this['searchTabGrist']?.['fetch']();}[a0_0x460f67(0x134)](){const _0x193e8c=a0_0x460f67;let _0x58dcc2={'search':[],'gql':{'query':{'filters':[]}}},_0x546c1e=this[_0x193e8c(0x136)](_0x193e8c(0x12c));return this[_0x193e8c(0x130)](_0x546c1e)?.[_0x193e8c(0x146)](_0x3ea3d3=>{const _0x706b40=_0x193e8c;var {name:_0x588726,operator:_0x10ea9a='eq',hidden:_0x41b748=!0x1,value:_0x3d8042}=_0x3ea3d3;if(_0x588726){if(_0x706b40(0x125)==_0x10ea9a)_0x58dcc2['search']['push'](_0x588726);else{let _0x30481c={'name':_0x588726,'operator':_0x10ea9a};0x1==_0x41b748?(_0x30481c[_0x706b40(0x13e)]=_0x3d8042,_0x58dcc2[_0x706b40(0x150)][_0x706b40(0x152)][_0x706b40(0x138)][_0x706b40(0x13f)](_0x30481c)):(_0x30481c[_0x706b40(0x13e)]=_0x3d8042,_0x58dcc2[_0x706b40(0x120)][_0x706b40(0x13f)](_0x30481c));}}}),_0x58dcc2;}[a0_0x460f67(0x12d)](){const _0x3e8714=a0_0x460f67;return html`
2
- <ox-grist auto-fetch id="search-tab-grid" .config=${this['searchTabGridConfig']} .mode='GRID'
3
- .fetchHandler=${this[_0x3e8714(0x131)][_0x3e8714(0x122)](this)}>
4
- </ox-grist>`;}get[a0_0x460f67(0x143)](){const _0x10375f=a0_0x460f67;return this[_0x10375f(0x12e)][_0x10375f(0x14e)](_0x10375f(0x14b));}async[a0_0x460f67(0x131)](){const _0x4adf32=a0_0x460f67;return{'total':0x0,'records':this[_0x4adf32(0x132)]||[]};}async[a0_0x460f67(0x127)](){const _0x527a38=a0_0x460f67;let _0x27dc95=await MetaApi['getCodeSelectorData'](_0x527a38(0x144));this[_0x527a38(0x140)]={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x527a38(0x14c),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x527a38(0x148)](!0x1,!0x1),{'type':_0x527a38(0x153),'gutterName':'button','icon':_0x527a38(0x129),'handlers':{'click':(_0xe9d301,_0x4560fd,_0x3bffd6,_0xa15550,_0x301cb3)=>{const _0x3db22f=_0x527a38;_0xa15550['id']&&this[_0x3db22f(0x142)](this[_0x3db22f(0x143)],_0xa15550);}}},{'type':_0x527a38(0x12a),'name':'id','hidden':!0x0},{'type':_0x527a38(0x133),'name':'rank','header':TermsUtil[_0x527a38(0x145)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x527a38(0x137),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'name','header':TermsUtil[_0x527a38(0x145)]('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x527a38(0x14d),'editable':!0x0,'mandatory':!0x0}},{'type':_0x527a38(0x121),'name':_0x527a38(0x123),'header':TermsUtil[_0x527a38(0x145)]('search_operator'),'sortable':!0x1,'width':0x64,'record':{'align':_0x527a38(0x14d),'editable':!0x0,'mandatory':!0x1,'options':_0x27dc95}},{'type':_0x527a38(0x124),'name':_0x527a38(0x14a),'header':TermsUtil['tLabel'](_0x527a38(0x14a)),'sortable':!0x1,'width':0x41,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0x527a38(0x12a),'name':_0x527a38(0x13e),'header':TermsUtil['tLabel'](_0x527a38(0x149)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x527a38(0x14d),'editable':!0x0,'mandatory':!0x1}}]};}};
1
+ const a0_0x20717=a0_0x18cb;(function(_0x53e65f,_0x438676){const _0x20216d=a0_0x18cb,_0x1cb059=_0x53e65f();while(!![]){try{const _0x40310d=-parseInt(_0x20216d(0x12e))/0x1+-parseInt(_0x20216d(0x140))/0x2*(-parseInt(_0x20216d(0x14e))/0x3)+-parseInt(_0x20216d(0x134))/0x4+-parseInt(_0x20216d(0x14a))/0x5+-parseInt(_0x20216d(0x13d))/0x6+parseInt(_0x20216d(0x136))/0x7*(-parseInt(_0x20216d(0x13e))/0x8)+parseInt(_0x20216d(0x159))/0x9*(parseInt(_0x20216d(0x143))/0xa);if(_0x40310d===_0x438676)break;else _0x1cb059['push'](_0x1cb059['shift']());}catch(_0x1b1bd3){_0x1cb059['push'](_0x1cb059['shift']());}}}(a0_0x9e72,0x7ba86));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x9e72(){const _0x5be139=['shadowRoot','string','center','9ITVSDl','searchTabGrist','right','querySelector','FILTER_OPERATORS','forEach','hidden','query','getGristSelectableConfig','map','searchTabGridConfig','9uhJqgL','gutter','delete','gql','operator','left','fetchSearchTabHandler','941576rzdWPX','button','renderSearchConfigTab','setSearchConfigTabConfig','filter','setSearchConfigTabValues','1873524fFBtvF','default_value','7BTtPKW','tLabel','filters','getCodeSelectorData','search-tab-grid','push','search','5252964MAQjfL','1210584uyHBjW','name','502332hFfSZs','bind','value','27651810ouVqbU','sortRecordByRank','#search-tab-grid','viewSearchData','rank','getGristGuttersConfig','getElementValueById','2877015jqOfZI'];a0_0x9e72=function(){return _0x5be139;};return a0_0x9e72();}function a0_0x18cb(_0x3488c3,_0x51d22a){const _0x9e723b=a0_0x9e72();return a0_0x18cb=function(_0x18cb7d,_0x20e3e0){_0x18cb7d=_0x18cb7d-0x12e;let _0x5d0c54=_0x9e723b[_0x18cb7d];return _0x5d0c54;},a0_0x18cb(_0x3488c3,_0x51d22a);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const SearchConfigTabMixin=_0x4fed00=>class extends _0x4fed00{[a0_0x20717(0x133)](_0x3a864d){const _0x1733f8=a0_0x20717;let _0xb48faf=_0x3a864d?.[_0x1733f8(0x157)]((_0x379b57,_0x1e07ae)=>{const _0x284a4a=_0x1733f8;let _0x1d569f=_0x1e07ae+0x1,_0x39818b={};return'object'==typeof _0x379b57?Object['assign'](_0x39818b,_0x379b57):(_0x39818b[_0x284a4a(0x13f)]=_0x379b57,_0x39818b[_0x284a4a(0x15d)]='filter'),_0x39818b[_0x284a4a(0x147)]=0xa*_0x1d569f,_0x39818b['id']=_0x1d569f,_0x39818b;});this['viewSearchData']=_0xb48faf||[],this[_0x1733f8(0x14f)]?.['fetch']();}['getSearchConfigTabValues'](){const _0x3402ae=a0_0x20717;let _0x32c54b={'search':[],'gql':{'query':{'filters':[]}}},_0x17f663=this[_0x3402ae(0x149)](_0x3402ae(0x13a));return this[_0x3402ae(0x144)](_0x17f663)?.[_0x3402ae(0x153)](_0xd1ed88=>{const _0xc9474d=_0x3402ae;var {name:_0x495da9,operator:_0x19a3d4='eq',hidden:_0x1f1bbb=!0x1,value:_0x2103ba}=_0xd1ed88;if(_0x495da9){if(_0xc9474d(0x132)==_0x19a3d4)_0x32c54b[_0xc9474d(0x13c)][_0xc9474d(0x13b)](_0x495da9);else{let _0x1cfc46={'name':_0x495da9,'operator':_0x19a3d4};0x1==_0x1f1bbb?(_0x1cfc46[_0xc9474d(0x142)]=_0x2103ba,_0x32c54b[_0xc9474d(0x15c)][_0xc9474d(0x155)][_0xc9474d(0x138)][_0xc9474d(0x13b)](_0x1cfc46)):(_0x1cfc46[_0xc9474d(0x142)]=_0x2103ba,_0x32c54b[_0xc9474d(0x13c)]['push'](_0x1cfc46));}}}),_0x32c54b;}[a0_0x20717(0x130)](){const _0x2798d4=a0_0x20717;return html`
2
+ <ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x2798d4(0x158)]} .mode='GRID'
3
+ .fetchHandler=${this['fetchSearchTabHandler'][_0x2798d4(0x141)](this)}>
4
+ </ox-grist>`;}get['searchTabGrist'](){const _0x5df9d9=a0_0x20717;return this[_0x5df9d9(0x14b)][_0x5df9d9(0x151)](_0x5df9d9(0x145));}async[a0_0x20717(0x15f)](){const _0x59b719=a0_0x20717;return{'total':0x0,'records':this[_0x59b719(0x146)]||[]};}async[a0_0x20717(0x131)](){const _0x2f3b0c=a0_0x20717;let _0x52745e=await MetaApi[_0x2f3b0c(0x139)](_0x2f3b0c(0x152));this[_0x2f3b0c(0x158)]={'rows':MetaApi[_0x2f3b0c(0x156)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x2f3b0c(0x148)](!0x1,!0x1),{'type':_0x2f3b0c(0x15a),'gutterName':_0x2f3b0c(0x12f),'icon':_0x2f3b0c(0x15b),'handlers':{'click':(_0x12093c,_0x34749e,_0x62537e,_0x333db6,_0x1e771b)=>{const _0x59da16=_0x2f3b0c;_0x333db6['id']&&this['deleteRow'](this[_0x59da16(0x14f)],_0x333db6);}}},{'type':_0x2f3b0c(0x14c),'name':'id','hidden':!0x0},{'type':'integer','name':_0x2f3b0c(0x147),'header':TermsUtil[_0x2f3b0c(0x137)](_0x2f3b0c(0x147)),'sortable':!0x0,'width':0x41,'record':{'align':_0x2f3b0c(0x150),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x2f3b0c(0x13f),'header':TermsUtil['tLabel']('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x2f3b0c(0x15e),'editable':!0x0,'mandatory':!0x0}},{'type':'select','name':'operator','header':TermsUtil[_0x2f3b0c(0x137)]('search_operator'),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x1,'options':_0x52745e}},{'type':'boolean','name':'hidden','header':TermsUtil['tLabel'](_0x2f3b0c(0x154)),'sortable':!0x1,'width':0x41,'record':{'align':_0x2f3b0c(0x14d),'mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x2f3b0c(0x142),'header':TermsUtil['tLabel'](_0x2f3b0c(0x135)),'sortable':!0x1,'width':0xc8,'record':{'align':'left','editable':!0x0,'mandatory':!0x1}}]};}};