@things-factory/meta-ui 6.0.25 → 6.0.27

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,69 +1,1044 @@
1
- const a0_0x554f97=a0_0x13b1;(function(_0x37927a,_0x27195f){const _0x802f3f=a0_0x13b1,_0x524500=_0x37927a();while(!![]){try{const _0x2369fc=parseInt(_0x802f3f(0xc9))/0x1*(parseInt(_0x802f3f(0x15d))/0x2)+parseInt(_0x802f3f(0x10f))/0x3+parseInt(_0x802f3f(0x168))/0x4+parseInt(_0x802f3f(0x143))/0x5*(parseInt(_0x802f3f(0x138))/0x6)+-parseInt(_0x802f3f(0x141))/0x7*(-parseInt(_0x802f3f(0xe8))/0x8)+-parseInt(_0x802f3f(0x156))/0x9*(parseInt(_0x802f3f(0x101))/0xa)+-parseInt(_0x802f3f(0x13c))/0xb;if(_0x2369fc===_0x27195f)break;else _0x524500['push'](_0x524500['shift']());}catch(_0x153f11){_0x524500['push'](_0x524500['shift']());}}}(a0_0x166e,0xa3364));import{html}from'lit-element';import a0_0x5a5606 from'graphql-tag';import{client,gqlContext}from'@operato/graphql';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';function a0_0x166e(){const _0x5270db=['pop','fetchEntityColumns','create-service','records','searchByPagination','fetchEntities','imex','success\x20to\x20process','LIST','GRID','large','gridWidth','i_like','rank','export','entityColumns','#master-grist','searchFields','timestamp','createUnregisteredTerms','success\x20to\x20register\x20terms','split','getGristColumnConfig2','tButton','getBasicMasterDetailGristStyle','186TFPwDL','nullable','string','error','14946052qWxOkF','deleteEntityColumns','getGristGuttersConfig','accept','button.create-service','3101qrINDr','config-entity','6485NwbEpw','exportEntityColumns','import','createCustomElement','dispatch','updated_at','selectCallback','confirm','refType','delete','#detail-grist','value','ref_type','GRIST_COLUMN_TYPES','FILTER_OPERATORS','medium','size','deleteMasters','importConfig','675vCBIXI','saveEntityColumns','info','label.','gridEditor','BUNDLE','getGristSelectableConfig','19476dxETuZ','checkEntityColumns','search_rank','data','getGristSearchCodeColumnConfig','masterConfig','render','errors','check-columns','length','bind','3998656ZeKzsW','properties','term','select','click','xlsx','createService','bundle','entityId','result','creator_id','setAttribute','domain_id','files','description','message','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20','openPopupByElement','integer','toolCreateMenu','created_at','forEach','selectedEntity','button.create-menu','text.nothing_selected','target','shadowRoot','getQueryFilters','_config','grid_editor','edit','getGristSearchColumnConfig','detailConfig','query','isNotEmpty','importEntityColumns','importXlsxFile','center','toBoolean','showAlertPopup','findIndex','left-right','57XYhvNp','colSize','context','updateMultiple','header','detailGrist','uniqRank','reduce','domain','fetch','searchForm','searchRank','createElement','entity-column','map','search_oper','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','filter','grid_rank','getGristColumnConfig','text.no_data','push','question','sequence','type','col_type','record','createMenuTo','input','name','back','6576oZUWPl','key','boolean','updater_id','getGristCodeSelectorColumnConfig','gutter','importHandler','text.are_you_sure','file','__selected__','change','ref_name','left','button','gridRank','pageInitialized','updateMultipleEntity','isMobileEnv','deleteListByGristSelected','refName','deleteEntities','getSelectedIdList','main-menu-selector','querySelector','openMainMenuSelectorPopup','70450UqlmXD','tLabel','creator','patchesForUpdateMultiple','appendChild','entity','colType','tText','saveMasters','toInteger','masterGrist','grid_width','styles','uniq_rank','1789620xdQJFp','showToast','right','updateMultipleEntityColumn','createMenu','currentTarget','cancel','readAsArrayBuffer','searchEntityColumns','save','table_name','hidden','tTitle','tableName','ox-filters-form-base','columns'];a0_0x166e=function(){return _0x5270db;};return a0_0x166e();}import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{MetaApi}from'../../utils/meta-api';function a0_0x13b1(_0x437019,_0x584c19){const _0x166ef9=a0_0x166e();return a0_0x13b1=function(_0x13b114,_0x11c3db){_0x13b114=_0x13b114-0xc6;let _0x63f8=_0x166ef9[_0x13b114];return _0x63f8;},a0_0x13b1(_0x437019,_0x584c19);}import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x554f97(0x169)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x554f97(0x10d)](){const _0x600e1d=a0_0x554f97;return MetaApi[_0x600e1d(0x137)](_0x600e1d(0xc8));}get[a0_0x554f97(0xcb)](){const _0x551032=a0_0x554f97;return{'title':TermsUtil[_0x551032(0x11b)]('entity')};}get[a0_0x554f97(0xd3)](){const _0x3fc530=a0_0x554f97;return this[_0x3fc530(0x182)][_0x3fc530(0xff)](_0x3fc530(0x11d));}get[a0_0x554f97(0x10b)](){const _0x2377fe=a0_0x554f97;return this['shadowRoot']['querySelector'](_0x2377fe(0x12f));}get[a0_0x554f97(0xce)](){const _0x30971e=a0_0x554f97;return this[_0x30971e(0x182)]['querySelector'](_0x30971e(0x14d));}async[a0_0x554f97(0x124)]({page:_0x369443,limit:_0x5a1699,sorters:_0x363185=[{'name':a0_0x554f97(0x16f)},{'name':a0_0x554f97(0xe6)}]}){const _0x17d8e8=a0_0x554f97;this[_0x17d8e8(0x170)]=null,this[_0x17d8e8(0x17e)]=null,this[_0x17d8e8(0xce)]&&this[_0x17d8e8(0xce)][_0x17d8e8(0x160)]&&(this[_0x17d8e8(0xce)]['data']={});let _0x9f7c26=[...await this[_0x17d8e8(0xd3)][_0x17d8e8(0x183)]()];return await MetaApi[_0x17d8e8(0x123)]('entities',_0x9f7c26,_0x363185,_0x369443,_0x5a1699,_0x17d8e8(0xd9));}async[a0_0x554f97(0x120)]({page:_0x24090a,limit:_0x3d6f69,sorters:_0x2dec83=[{'name':a0_0x554f97(0x12c)}]}){const _0x518238=a0_0x554f97;if(this[_0x518238(0x170)]){let _0x4fa48f=[{'name':'entityId','operator':'eq','value':this[_0x518238(0x170)]}],_0x1bb865=_0x518238(0x178);return await MetaApi[_0x518238(0x123)](_0x518238(0x12e),_0x4fa48f,_0x2dec83,_0x24090a,_0x3d6f69,_0x1bb865);}}async[a0_0x554f97(0x117)](_0x581ac9){const _0x3f79ac=a0_0x554f97;this['entityId']=_0x581ac9['id'],this[_0x3f79ac(0x17e)]=_0x581ac9,await this[_0x3f79ac(0xce)]['fetch']();}async[a0_0x554f97(0x100)](){const _0x24fbb2=a0_0x554f97;let _0xcf0c23=MetaApi[_0x24fbb2(0x146)]('main-menu-selector',_0x24fbb2(0xfe));_0xcf0c23[_0x24fbb2(0x149)]=this[_0x24fbb2(0xe4)][_0x24fbb2(0x167)](this),await MetaApi[_0x24fbb2(0x179)](TermsUtil['tButton']('create-menu'),_0x24fbb2(0x152),_0xcf0c23,!0x0);}async[a0_0x554f97(0x109)](){const _0x3805ec=a0_0x554f97;let _0x2528bc=MetaApi[_0x3805ec(0x104)](this[_0x3805ec(0x10b)]);ValueUtil[_0x3805ec(0x18a)](_0x2528bc)&&(await MetaApi[_0x3805ec(0xcc)](_0x3805ec(0xf8),_0x2528bc)&&this[_0x3805ec(0x10b)][_0x3805ec(0xd2)]());}async[a0_0x554f97(0x154)](){const _0x44f64c=a0_0x554f97;await MetaApi[_0x44f64c(0xfa)](this[_0x44f64c(0x10b)],_0x44f64c(0xfc));}async[a0_0x554f97(0x157)](){const _0x118872=a0_0x554f97;if(this[_0x118872(0x170)]){let _0x5a9e56=MetaApi[_0x118872(0x104)](this[_0x118872(0xce)]);if(ValueUtil[_0x118872(0x18a)](_0x5a9e56)){let _0x253d8d=0x0;_0x5a9e56['forEach'](_0x158742=>{const _0x58ae65=_0x118872;_0x253d8d+=0xa,_0x158742['entity']={'id':this[_0x58ae65(0x170)]},_0x158742['nullable']=void 0x0!==_0x158742[_0x58ae65(0x139)]&&null!=_0x158742[_0x58ae65(0x139)]&&_0x158742['nullable'],_0x158742[_0x58ae65(0x12c)]=_0x158742[_0x58ae65(0x12c)]&&0x0!=_0x158742['rank']?_0x158742[_0x58ae65(0x12c)]:_0x253d8d,_0x158742['gridRank']=_0x158742[_0x58ae65(0xf6)]?_0x158742[_0x58ae65(0xf6)]:0x0,_0x158742[_0x58ae65(0x16a)]=_0x158742['term']?_0x158742[_0x58ae65(0x16a)]:_0x158742[_0x58ae65(0xe6)],_0x158742[_0x58ae65(0x107)]=_0x158742['colType']?_0x158742['colType']:_0x58ae65(0x13a),_0x158742['colSize']=_0x58ae65(0x13a)!=_0x158742[_0x58ae65(0x107)]||_0x158742[_0x58ae65(0xca)]?_0x158742[_0x58ae65(0xca)]:0x32;}),await MetaApi[_0x118872(0xcc)](_0x118872(0x112),_0x5a9e56)&&this['detailGrist'][_0x118872(0xd2)]();}}}async[a0_0x554f97(0x13d)](){const _0x423849=a0_0x554f97;await MetaApi[_0x423849(0xfa)](this[_0x423849(0xce)],_0x423849(0x13d));}async[a0_0x554f97(0x16e)](){const _0x54cdaa=a0_0x554f97;if((await MetaApi['showAlertPopup'](_0x54cdaa(0x140),_0x54cdaa(0xef),_0x54cdaa(0xdf),_0x54cdaa(0x14a),_0x54cdaa(0x115)))[_0x54cdaa(0x14e)]){let _0x193838=MetaApi[_0x54cdaa(0xfd)](this['masterGrist'],!0x0);if(_0x193838){let _0x5a4607=_0x193838[0x0];const _0x139014=await client[_0x54cdaa(0x189)]({'query':a0_0x5a5606`
1
+ const a0_0x554f97 = a0_0x13b1
2
+ ;(function (_0x37927a, _0x27195f) {
3
+ const _0x802f3f = a0_0x13b1,
4
+ _0x524500 = _0x37927a()
5
+ while (!![]) {
6
+ try {
7
+ const _0x2369fc =
8
+ (parseInt(_0x802f3f(0xc9)) / 0x1) * (parseInt(_0x802f3f(0x15d)) / 0x2) +
9
+ parseInt(_0x802f3f(0x10f)) / 0x3 +
10
+ parseInt(_0x802f3f(0x168)) / 0x4 +
11
+ (parseInt(_0x802f3f(0x143)) / 0x5) * (parseInt(_0x802f3f(0x138)) / 0x6) +
12
+ (-parseInt(_0x802f3f(0x141)) / 0x7) * (-parseInt(_0x802f3f(0xe8)) / 0x8) +
13
+ (-parseInt(_0x802f3f(0x156)) / 0x9) * (parseInt(_0x802f3f(0x101)) / 0xa) +
14
+ -parseInt(_0x802f3f(0x13c)) / 0xb
15
+ if (_0x2369fc === _0x27195f) break
16
+ else _0x524500['push'](_0x524500['shift']())
17
+ } catch (_0x153f11) {
18
+ _0x524500['push'](_0x524500['shift']())
19
+ }
20
+ }
21
+ })(a0_0x166e, 0xa3364)
22
+ import { html } from 'lit'
23
+ import a0_0x5a5606 from 'graphql-tag'
24
+ import { client, gqlContext } from '@operato/graphql'
25
+ import { i18next, localize } from '@things-factory/i18n-base'
26
+ import { PageView } from '@things-factory/shell'
27
+ import { store } from '@operato/shell'
28
+ function a0_0x166e() {
29
+ const _0x5270db = [
30
+ 'pop',
31
+ 'fetchEntityColumns',
32
+ 'create-service',
33
+ 'records',
34
+ 'searchByPagination',
35
+ 'fetchEntities',
36
+ 'imex',
37
+ 'success\x20to\x20process',
38
+ 'LIST',
39
+ 'GRID',
40
+ 'large',
41
+ 'gridWidth',
42
+ 'i_like',
43
+ 'rank',
44
+ 'export',
45
+ 'entityColumns',
46
+ '#master-grist',
47
+ 'searchFields',
48
+ 'timestamp',
49
+ 'createUnregisteredTerms',
50
+ 'success\x20to\x20register\x20terms',
51
+ 'split',
52
+ 'getGristColumnConfig2',
53
+ 'tButton',
54
+ 'getBasicMasterDetailGristStyle',
55
+ '186TFPwDL',
56
+ 'nullable',
57
+ 'string',
58
+ 'error',
59
+ '14946052qWxOkF',
60
+ 'deleteEntityColumns',
61
+ 'getGristGuttersConfig',
62
+ 'accept',
63
+ 'button.create-service',
64
+ '3101qrINDr',
65
+ 'config-entity',
66
+ '6485NwbEpw',
67
+ 'exportEntityColumns',
68
+ 'import',
69
+ 'createCustomElement',
70
+ 'dispatch',
71
+ 'updated_at',
72
+ 'selectCallback',
73
+ 'confirm',
74
+ 'refType',
75
+ 'delete',
76
+ '#detail-grist',
77
+ 'value',
78
+ 'ref_type',
79
+ 'GRIST_COLUMN_TYPES',
80
+ 'FILTER_OPERATORS',
81
+ 'medium',
82
+ 'size',
83
+ 'deleteMasters',
84
+ 'importConfig',
85
+ '675vCBIXI',
86
+ 'saveEntityColumns',
87
+ 'info',
88
+ 'label.',
89
+ 'gridEditor',
90
+ 'BUNDLE',
91
+ 'getGristSelectableConfig',
92
+ '19476dxETuZ',
93
+ 'checkEntityColumns',
94
+ 'search_rank',
95
+ 'data',
96
+ 'getGristSearchCodeColumnConfig',
97
+ 'masterConfig',
98
+ 'render',
99
+ 'errors',
100
+ 'check-columns',
101
+ 'length',
102
+ 'bind',
103
+ '3998656ZeKzsW',
104
+ 'properties',
105
+ 'term',
106
+ 'select',
107
+ 'click',
108
+ 'xlsx',
109
+ 'createService',
110
+ 'bundle',
111
+ 'entityId',
112
+ 'result',
113
+ 'creator_id',
114
+ 'setAttribute',
115
+ 'domain_id',
116
+ 'files',
117
+ 'description',
118
+ 'message',
119
+ '\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20',
120
+ 'openPopupByElement',
121
+ 'integer',
122
+ 'toolCreateMenu',
123
+ 'created_at',
124
+ 'forEach',
125
+ 'selectedEntity',
126
+ 'button.create-menu',
127
+ 'text.nothing_selected',
128
+ 'target',
129
+ 'shadowRoot',
130
+ 'getQueryFilters',
131
+ '_config',
132
+ 'grid_editor',
133
+ 'edit',
134
+ 'getGristSearchColumnConfig',
135
+ 'detailConfig',
136
+ 'query',
137
+ 'isNotEmpty',
138
+ 'importEntityColumns',
139
+ 'importXlsxFile',
140
+ 'center',
141
+ 'toBoolean',
142
+ 'showAlertPopup',
143
+ 'findIndex',
144
+ 'left-right',
145
+ '57XYhvNp',
146
+ 'colSize',
147
+ 'context',
148
+ 'updateMultiple',
149
+ 'header',
150
+ 'detailGrist',
151
+ 'uniqRank',
152
+ 'reduce',
153
+ 'domain',
154
+ 'fetch',
155
+ 'searchForm',
156
+ 'searchRank',
157
+ 'createElement',
158
+ 'entity-column',
159
+ 'map',
160
+ 'search_oper',
161
+ '\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20',
162
+ 'filter',
163
+ 'grid_rank',
164
+ 'getGristColumnConfig',
165
+ 'text.no_data',
166
+ 'push',
167
+ 'question',
168
+ 'sequence',
169
+ 'type',
170
+ 'col_type',
171
+ 'record',
172
+ 'createMenuTo',
173
+ 'input',
174
+ 'name',
175
+ 'back',
176
+ '6576oZUWPl',
177
+ 'key',
178
+ 'boolean',
179
+ 'updater_id',
180
+ 'getGristCodeSelectorColumnConfig',
181
+ 'gutter',
182
+ 'importHandler',
183
+ 'text.are_you_sure',
184
+ 'file',
185
+ '__selected__',
186
+ 'change',
187
+ 'ref_name',
188
+ 'left',
189
+ 'button',
190
+ 'gridRank',
191
+ 'pageInitialized',
192
+ 'updateMultipleEntity',
193
+ 'isMobileEnv',
194
+ 'deleteListByGristSelected',
195
+ 'refName',
196
+ 'deleteEntities',
197
+ 'getSelectedIdList',
198
+ 'main-menu-selector',
199
+ 'querySelector',
200
+ 'openMainMenuSelectorPopup',
201
+ '70450UqlmXD',
202
+ 'tLabel',
203
+ 'creator',
204
+ 'patchesForUpdateMultiple',
205
+ 'appendChild',
206
+ 'entity',
207
+ 'colType',
208
+ 'tText',
209
+ 'saveMasters',
210
+ 'toInteger',
211
+ 'masterGrist',
212
+ 'grid_width',
213
+ 'styles',
214
+ 'uniq_rank',
215
+ '1789620xdQJFp',
216
+ 'showToast',
217
+ 'right',
218
+ 'updateMultipleEntityColumn',
219
+ 'createMenu',
220
+ 'currentTarget',
221
+ 'cancel',
222
+ 'readAsArrayBuffer',
223
+ 'searchEntityColumns',
224
+ 'save',
225
+ 'table_name',
226
+ 'hidden',
227
+ 'tTitle',
228
+ 'tableName',
229
+ 'ox-filters-form-base',
230
+ 'columns'
231
+ ]
232
+ a0_0x166e = function () {
233
+ return _0x5270db
234
+ }
235
+ return a0_0x166e()
236
+ }
237
+ import { EXPORT } from '@things-factory/export-base'
238
+ import { IMPORT } from '@things-factory/import-base'
239
+ import '@things-factory/form-ui'
240
+ import '@things-factory/grist-ui'
241
+ import '@things-factory/import-ui'
242
+ import { TermsUtil } from './../../utils/terms-util'
243
+ import { ValueUtil } from '../../utils/value-util'
244
+ import { MetaApi } from '../../utils/meta-api'
245
+ function a0_0x13b1(_0x437019, _0x584c19) {
246
+ const _0x166ef9 = a0_0x166e()
247
+ return (
248
+ (a0_0x13b1 = function (_0x13b114, _0x11c3db) {
249
+ _0x13b114 = _0x13b114 - 0xc6
250
+ let _0x63f8 = _0x166ef9[_0x13b114]
251
+ return _0x63f8
252
+ }),
253
+ a0_0x13b1(_0x437019, _0x584c19)
254
+ )
255
+ }
256
+ import './main-menu-selector'
257
+ class ConfigEntity extends localize(i18next)(PageView) {
258
+ static get [a0_0x554f97(0x169)]() {
259
+ return {
260
+ searchFields: Array,
261
+ masterConfig: Object,
262
+ detailConfig: Object,
263
+ importConfig: Object,
264
+ entityId: String,
265
+ selectedEntity: Object
266
+ }
267
+ }
268
+ static get [a0_0x554f97(0x10d)]() {
269
+ const _0x600e1d = a0_0x554f97
270
+ return MetaApi[_0x600e1d(0x137)](_0x600e1d(0xc8))
271
+ }
272
+ get [a0_0x554f97(0xcb)]() {
273
+ const _0x551032 = a0_0x554f97
274
+ return { title: TermsUtil[_0x551032(0x11b)]('entity') }
275
+ }
276
+ get [a0_0x554f97(0xd3)]() {
277
+ const _0x3fc530 = a0_0x554f97
278
+ return this[_0x3fc530(0x182)][_0x3fc530(0xff)](_0x3fc530(0x11d))
279
+ }
280
+ get [a0_0x554f97(0x10b)]() {
281
+ const _0x2377fe = a0_0x554f97
282
+ return this['shadowRoot']['querySelector'](_0x2377fe(0x12f))
283
+ }
284
+ get [a0_0x554f97(0xce)]() {
285
+ const _0x30971e = a0_0x554f97
286
+ return this[_0x30971e(0x182)]['querySelector'](_0x30971e(0x14d))
287
+ }
288
+ async [a0_0x554f97(0x124)]({
289
+ page: _0x369443,
290
+ limit: _0x5a1699,
291
+ sorters: _0x363185 = [{ name: a0_0x554f97(0x16f) }, { name: a0_0x554f97(0xe6) }]
292
+ }) {
293
+ const _0x17d8e8 = a0_0x554f97
294
+ ;(this[_0x17d8e8(0x170)] = null),
295
+ (this[_0x17d8e8(0x17e)] = null),
296
+ this[_0x17d8e8(0xce)] && this[_0x17d8e8(0xce)][_0x17d8e8(0x160)] && (this[_0x17d8e8(0xce)]['data'] = {})
297
+ let _0x9f7c26 = [...(await this[_0x17d8e8(0xd3)][_0x17d8e8(0x183)]())]
298
+ return await MetaApi[_0x17d8e8(0x123)]('entities', _0x9f7c26, _0x363185, _0x369443, _0x5a1699, _0x17d8e8(0xd9))
299
+ }
300
+ async [a0_0x554f97(0x120)]({
301
+ page: _0x24090a,
302
+ limit: _0x3d6f69,
303
+ sorters: _0x2dec83 = [{ name: a0_0x554f97(0x12c) }]
304
+ }) {
305
+ const _0x518238 = a0_0x554f97
306
+ if (this[_0x518238(0x170)]) {
307
+ let _0x4fa48f = [{ name: 'entityId', operator: 'eq', value: this[_0x518238(0x170)] }],
308
+ _0x1bb865 = _0x518238(0x178)
309
+ return await MetaApi[_0x518238(0x123)](_0x518238(0x12e), _0x4fa48f, _0x2dec83, _0x24090a, _0x3d6f69, _0x1bb865)
310
+ }
311
+ }
312
+ async [a0_0x554f97(0x117)](_0x581ac9) {
313
+ const _0x3f79ac = a0_0x554f97
314
+ ;(this['entityId'] = _0x581ac9['id']), (this[_0x3f79ac(0x17e)] = _0x581ac9), await this[_0x3f79ac(0xce)]['fetch']()
315
+ }
316
+ async [a0_0x554f97(0x100)]() {
317
+ const _0x24fbb2 = a0_0x554f97
318
+ let _0xcf0c23 = MetaApi[_0x24fbb2(0x146)]('main-menu-selector', _0x24fbb2(0xfe))
319
+ ;(_0xcf0c23[_0x24fbb2(0x149)] = this[_0x24fbb2(0xe4)][_0x24fbb2(0x167)](this)),
320
+ await MetaApi[_0x24fbb2(0x179)](TermsUtil['tButton']('create-menu'), _0x24fbb2(0x152), _0xcf0c23, !0x0)
321
+ }
322
+ async [a0_0x554f97(0x109)]() {
323
+ const _0x3805ec = a0_0x554f97
324
+ let _0x2528bc = MetaApi[_0x3805ec(0x104)](this[_0x3805ec(0x10b)])
325
+ ValueUtil[_0x3805ec(0x18a)](_0x2528bc) &&
326
+ (await MetaApi[_0x3805ec(0xcc)](_0x3805ec(0xf8), _0x2528bc)) &&
327
+ this[_0x3805ec(0x10b)][_0x3805ec(0xd2)]()
328
+ }
329
+ async [a0_0x554f97(0x154)]() {
330
+ const _0x44f64c = a0_0x554f97
331
+ await MetaApi[_0x44f64c(0xfa)](this[_0x44f64c(0x10b)], _0x44f64c(0xfc))
332
+ }
333
+ async [a0_0x554f97(0x157)]() {
334
+ const _0x118872 = a0_0x554f97
335
+ if (this[_0x118872(0x170)]) {
336
+ let _0x5a9e56 = MetaApi[_0x118872(0x104)](this[_0x118872(0xce)])
337
+ if (ValueUtil[_0x118872(0x18a)](_0x5a9e56)) {
338
+ let _0x253d8d = 0x0
339
+ _0x5a9e56['forEach'](_0x158742 => {
340
+ const _0x58ae65 = _0x118872
341
+ ;(_0x253d8d += 0xa),
342
+ (_0x158742['entity'] = { id: this[_0x58ae65(0x170)] }),
343
+ (_0x158742['nullable'] =
344
+ void 0x0 !== _0x158742[_0x58ae65(0x139)] && null != _0x158742[_0x58ae65(0x139)] && _0x158742['nullable']),
345
+ (_0x158742[_0x58ae65(0x12c)] =
346
+ _0x158742[_0x58ae65(0x12c)] && 0x0 != _0x158742['rank'] ? _0x158742[_0x58ae65(0x12c)] : _0x253d8d),
347
+ (_0x158742['gridRank'] = _0x158742[_0x58ae65(0xf6)] ? _0x158742[_0x58ae65(0xf6)] : 0x0),
348
+ (_0x158742[_0x58ae65(0x16a)] = _0x158742['term']
349
+ ? _0x158742[_0x58ae65(0x16a)]
350
+ : _0x158742[_0x58ae65(0xe6)]),
351
+ (_0x158742[_0x58ae65(0x107)] = _0x158742['colType'] ? _0x158742['colType'] : _0x58ae65(0x13a)),
352
+ (_0x158742['colSize'] =
353
+ _0x58ae65(0x13a) != _0x158742[_0x58ae65(0x107)] || _0x158742[_0x58ae65(0xca)]
354
+ ? _0x158742[_0x58ae65(0xca)]
355
+ : 0x32)
356
+ }),
357
+ (await MetaApi[_0x118872(0xcc)](_0x118872(0x112), _0x5a9e56)) && this['detailGrist'][_0x118872(0xd2)]()
358
+ }
359
+ }
360
+ }
361
+ async [a0_0x554f97(0x13d)]() {
362
+ const _0x423849 = a0_0x554f97
363
+ await MetaApi[_0x423849(0xfa)](this[_0x423849(0xce)], _0x423849(0x13d))
364
+ }
365
+ async [a0_0x554f97(0x16e)]() {
366
+ const _0x54cdaa = a0_0x554f97
367
+ if (
368
+ (
369
+ await MetaApi['showAlertPopup'](
370
+ _0x54cdaa(0x140),
371
+ _0x54cdaa(0xef),
372
+ _0x54cdaa(0xdf),
373
+ _0x54cdaa(0x14a),
374
+ _0x54cdaa(0x115)
375
+ )
376
+ )[_0x54cdaa(0x14e)]
377
+ ) {
378
+ let _0x193838 = MetaApi[_0x54cdaa(0xfd)](this['masterGrist'], !0x0)
379
+ if (_0x193838) {
380
+ let _0x5a4607 = _0x193838[0x0]
381
+ const _0x139014 = await client[_0x54cdaa(0x189)]({
382
+ query: a0_0x5a5606`
2
383
  query ($id: String!) {
3
384
  toolCreateService(id: $id)
4
385
  }
5
- `,'variables':{'id':_0x5a4607},'context':gqlContext()});_0x139014&&_0x139014[_0x54cdaa(0x160)]&&_0x139014[_0x54cdaa(0x160)]['toolCreateService']&&MetaApi[_0x54cdaa(0x110)](_0x54cdaa(0x158),TermsUtil[_0x54cdaa(0x108)](_0x54cdaa(0x126)));}}}async[a0_0x554f97(0x113)](){const _0x875585=a0_0x554f97;if(this[_0x875585(0x170)])(await MetaApi['showAlertPopup'](_0x875585(0x17f),_0x875585(0xef),_0x875585(0xdf),_0x875585(0x14a),_0x875585(0x115)))[_0x875585(0x14e)]&&MetaApi['getSelectedIdList'](this[_0x875585(0x10b)],!0x0)&&await this[_0x875585(0x100)]();else MetaApi[_0x875585(0xc6)](_0x875585(0x180),'text.nothing_selected',_0x875585(0x158),_0x875585(0x14a));}async[a0_0x554f97(0xe4)](_0x507dd6){const _0x5b6d83=a0_0x554f97,_0xa78959=await client[_0x5b6d83(0x189)]({'query':a0_0x5a5606`
386
+ `,
387
+ variables: { id: _0x5a4607 },
388
+ context: gqlContext()
389
+ })
390
+ _0x139014 &&
391
+ _0x139014[_0x54cdaa(0x160)] &&
392
+ _0x139014[_0x54cdaa(0x160)]['toolCreateService'] &&
393
+ MetaApi[_0x54cdaa(0x110)](_0x54cdaa(0x158), TermsUtil[_0x54cdaa(0x108)](_0x54cdaa(0x126)))
394
+ }
395
+ }
396
+ }
397
+ async [a0_0x554f97(0x113)]() {
398
+ const _0x875585 = a0_0x554f97
399
+ if (this[_0x875585(0x170)])
400
+ (
401
+ await MetaApi['showAlertPopup'](
402
+ _0x875585(0x17f),
403
+ _0x875585(0xef),
404
+ _0x875585(0xdf),
405
+ _0x875585(0x14a),
406
+ _0x875585(0x115)
407
+ )
408
+ )[_0x875585(0x14e)] &&
409
+ MetaApi['getSelectedIdList'](this[_0x875585(0x10b)], !0x0) &&
410
+ (await this[_0x875585(0x100)]())
411
+ else MetaApi[_0x875585(0xc6)](_0x875585(0x180), 'text.nothing_selected', _0x875585(0x158), _0x875585(0x14a))
412
+ }
413
+ async [a0_0x554f97(0xe4)](_0x507dd6) {
414
+ const _0x5b6d83 = a0_0x554f97,
415
+ _0xa78959 = await client[_0x5b6d83(0x189)]({
416
+ query: a0_0x5a5606`
6
417
  mutation($id: String!, $parent_menu_id: String!) {
7
418
  toolCreateMenu(id: $id, parent_menu_id: $parent_menu_id)
8
419
  }
9
- `,'variables':{'id':this[_0x5b6d83(0x170)],'parent_menu_id':_0x507dd6},'context':gqlContext()});return _0xa78959&&_0xa78959[_0x5b6d83(0x160)]&&_0xa78959[_0x5b6d83(0x160)][_0x5b6d83(0x17b)]?(MetaApi[_0x5b6d83(0x110)](_0x5b6d83(0x158),TermsUtil[_0x5b6d83(0x108)](_0x5b6d83(0x126))),{'success':!0x0}):{'success':!0x1};}async[a0_0x554f97(0x132)](){const _0x2a1072=a0_0x554f97;try{if(this[_0x2a1072(0x170)]){const _0x48e67b=this['detailGrist'][_0x2a1072(0x160)][_0x2a1072(0x122)][_0x2a1072(0xda)](_0x69e668=>TermsUtil['tLabel'](_0x69e668[_0x2a1072(0x16a)])===_0x69e668['term'])[_0x2a1072(0xd7)](_0x450d2d=>_0x2a1072(0x159)+_0x450d2d['term']),_0x42ce05=this[_0x2a1072(0x17e)][_0x2a1072(0x16f)];_0x48e67b[_0x2a1072(0x166)]&&((await client[_0x2a1072(0x189)]({'query':a0_0x5a5606`
420
+ `,
421
+ variables: { id: this[_0x5b6d83(0x170)], parent_menu_id: _0x507dd6 },
422
+ context: gqlContext()
423
+ })
424
+ return _0xa78959 && _0xa78959[_0x5b6d83(0x160)] && _0xa78959[_0x5b6d83(0x160)][_0x5b6d83(0x17b)]
425
+ ? (MetaApi[_0x5b6d83(0x110)](_0x5b6d83(0x158), TermsUtil[_0x5b6d83(0x108)](_0x5b6d83(0x126))), { success: !0x0 })
426
+ : { success: !0x1 }
427
+ }
428
+ async [a0_0x554f97(0x132)]() {
429
+ const _0x2a1072 = a0_0x554f97
430
+ try {
431
+ if (this[_0x2a1072(0x170)]) {
432
+ const _0x48e67b = this['detailGrist'][_0x2a1072(0x160)][_0x2a1072(0x122)]
433
+ [_0x2a1072(0xda)](_0x69e668 => TermsUtil['tLabel'](_0x69e668[_0x2a1072(0x16a)]) === _0x69e668['term'])
434
+ [_0x2a1072(0xd7)](_0x450d2d => _0x2a1072(0x159) + _0x450d2d['term']),
435
+ _0x42ce05 = this[_0x2a1072(0x17e)][_0x2a1072(0x16f)]
436
+ _0x48e67b[_0x2a1072(0x166)] &&
437
+ ((
438
+ await client[_0x2a1072(0x189)]({
439
+ query: a0_0x5a5606`
10
440
  query setTranslations($bundle: String!, $terms: [String!]!) {
11
441
  setTranslations(bundle: $bundle, terms: $terms)
12
442
  }
13
- `,'variables':{'bundle':_0x42ce05,'terms':_0x48e67b}}))[_0x2a1072(0x164)]||MetaApi[_0x2a1072(0x110)](_0x2a1072(0x158),TermsUtil[_0x2a1072(0x108)](_0x2a1072(0x133))));}}catch(_0x5df3cf){MetaApi[_0x2a1072(0x110)](_0x2a1072(0x13b),_0x5df3cf[_0x2a1072(0x177)]);}}async[a0_0x554f97(0x144)](){const _0x289521=a0_0x554f97;let _0x2d5a9e=this['detailGrist'][_0x289521(0x184)][_0x289521(0x11e)][_0x289521(0xda)](_0x1cf8c9=>_0x289521(0xed)!==_0x1cf8c9['type']&&void 0x0!==_0x1cf8c9[_0x289521(0xe3)]&&void 0x0!==_0x1cf8c9[_0x289521(0x125)])[_0x289521(0xd7)](_0x25a704=>_0x25a704['imex']),_0x35f3df=this[_0x289521(0xce)]['data'][_0x289521(0x122)][_0x289521(0xd7)](_0x4d20ed=>({'id':_0x4d20ed['id'],...this['detailGrist']['_config'][_0x289521(0x11e)][_0x289521(0xda)](_0x55ca1b=>_0x289521(0xed)!==_0x55ca1b[_0x289521(0xe1)]&&void 0x0!==_0x55ca1b[_0x289521(0xe3)]&&void 0x0!==_0x55ca1b[_0x289521(0x125)])[_0x289521(0xd0)]((_0x472d4f,_0x284701)=>(_0x472d4f[_0x284701[_0x289521(0x125)][_0x289521(0xe9)]]=_0x284701[_0x289521(0x125)][_0x289521(0xe9)][_0x289521(0x134)]('.')[_0x289521(0xd0)]((_0x2add39,_0x359c0e)=>_0x2add39&&'undefined'!==_0x2add39[_0x359c0e]?_0x2add39[_0x359c0e]:void 0x0,_0x4d20ed),_0x472d4f),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':TermsUtil[_0x289521(0x11b)]('entity-column')+'-'+this['selectedEntity'][_0x289521(0xe6)],'data':{'header':_0x2d5a9e,'data':_0x35f3df}}});}async[a0_0x554f97(0x18c)](){const _0x2f2ffe=a0_0x554f97;let _0x4cede0=this;const _0x3e4651=document[_0x2f2ffe(0xd5)](_0x2f2ffe(0xe5));_0x3e4651[_0x2f2ffe(0x173)](_0x2f2ffe(0xe1),_0x2f2ffe(0xf0)),_0x3e4651['setAttribute'](_0x2f2ffe(0x13f),[_0x2f2ffe(0x16d)]),_0x3e4651[_0x2f2ffe(0x11a)]=!0x0,_0x3e4651['addEventListener'](_0x2f2ffe(0xf2),_0x40ee42=>{const _0x244abd=_0x2f2ffe,_0x581338=_0x40ee42[_0x244abd(0x114)][_0x244abd(0x175)][0x0],_0x147856=_0x581338[_0x244abd(0xe6)]['split']('.')[_0x244abd(0x11f)](),_0x3e799c=new FileReader();_0x3e799c['onload']=function(_0x118625){const _0x48a807=_0x244abd,_0x58c4cb=_0x118625[_0x48a807(0x181)][_0x48a807(0x171)];store[_0x48a807(0x147)]({'type':IMPORT,'importable':{'extension':_0x147856,'handler':_0x4cede0['importEntityColumns'][_0x48a807(0x167)](_0x4cede0)},'data':_0x58c4cb});},_0x3e799c[_0x244abd(0x116)](_0x581338);}),document['body'][_0x2f2ffe(0x105)](_0x3e4651),_0x3e4651[_0x2f2ffe(0x16c)]();}[a0_0x554f97(0x18b)](_0x32e876){const _0x59f57b=a0_0x554f97;let _0x1d34f6=_0x32e876[_0x59f57b(0xcd)]?_0x32e876['data']:_0x32e876;if(_0x1d34f6&&_0x1d34f6[_0x59f57b(0x166)]>0x0){_0x1d34f6[_0x59f57b(0x17d)](_0x1f6053=>{const _0x40569b=_0x59f57b;_0x1f6053[_0x40569b(0xf1)]=!0x0;});let _0x501f43=this[_0x59f57b(0x155)][_0x59f57b(0x11e)]['filter'](_0x7aeae9=>!!_0x7aeae9[_0x59f57b(0x125)]);setTimeout(()=>{const _0xcbb82c=_0x59f57b;MetaApi[_0xcbb82c(0x179)](TermsUtil[_0xcbb82c(0x11b)]('import'),_0xcbb82c(0x129),html`
14
- <import-pop-up
15
- .records=${_0x1d34f6}
16
- .config=${{'rows':_0x1d34f6,'columns':[{'type':_0xcbb82c(0xed),'gutterName':_0xcbb82c(0xe0)},..._0x501f43]}}
17
- .importHandler="${this[_0xcbb82c(0xee)][_0xcbb82c(0x167)](this)}">
18
- </import-pop-up>`);},0x1f4);}}async[a0_0x554f97(0xee)](_0x1d6ca0){const _0x10c890=a0_0x554f97;if(_0x1d6ca0&&0x0!=_0x1d6ca0[_0x10c890(0x166)]){let _0x212245=0x0;_0x1d6ca0[_0x10c890(0x17d)](_0x5f2ea1=>{const _0xa5e174=_0x10c890;_0x212245+=0xa,_0x5f2ea1['colSize']=ValueUtil[_0xa5e174(0x18a)](_0x5f2ea1[_0xa5e174(0xca)])?ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['colSize']):_0xa5e174(0x13a)==_0x5f2ea1['colType']?0x32:0x0,_0x5f2ea1[_0xa5e174(0x12c)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12c)],0x0),_0x5f2ea1[_0xa5e174(0xcf)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['uniqRank'],0x0),_0x5f2ea1[_0xa5e174(0xd4)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0xd4)],0x0),_0x5f2ea1[_0xa5e174(0xf6)]=ValueUtil['toInteger'](_0x5f2ea1[_0xa5e174(0xf6)],0x0),_0x5f2ea1[_0xa5e174(0x12a)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12a)],0x0),_0x5f2ea1[_0xa5e174(0x106)]={'id':this[_0xa5e174(0x170)]},_0x5f2ea1['nullable']=ValueUtil[_0xa5e174(0x18e)](_0x5f2ea1[_0xa5e174(0x139)]),_0x5f2ea1[_0xa5e174(0x16a)]=_0x5f2ea1[_0xa5e174(0x16a)]?_0x5f2ea1['term']:_0x5f2ea1[_0xa5e174(0xe6)],_0x5f2ea1['colType']=_0x5f2ea1[_0xa5e174(0x107)]?_0x5f2ea1[_0xa5e174(0x107)]:_0xa5e174(0x13a),delete _0x5f2ea1[_0xa5e174(0x13a)];}),await MetaApi[_0x10c890(0xcc)](_0x10c890(0x112),_0x1d6ca0)&&(this[_0x10c890(0xce)][_0x10c890(0xd2)](),history[_0x10c890(0xe7)]());}else MetaApi[_0x10c890(0x110)]('info',_0x10c890(0xdd)),history[_0x10c890(0xe7)]();}async[a0_0x554f97(0x15e)](){const _0x2f3999=a0_0x554f97;if(this[_0x2f3999(0x170)]){let _0x46ca0a=this['detailGrist'][_0x2f3999(0x160)][_0x2f3999(0x122)],_0x5a75b6=_0x46ca0a&&_0x46ca0a[_0x2f3999(0x166)]?0xa*_0x46ca0a[_0x2f3999(0x166)]:0x0,_0x18deff=!0x1,_0x266d02=!0x1,_0x339ba4=!0x1,_0x13d0bc=!0x1,_0x49383f=!0x1,_0xfb1b0f=!0x1;_0x46ca0a&&_0x46ca0a['length']>0x0&&(_0x18deff=_0x46ca0a['findIndex'](_0x193385=>'id'==_0x193385[_0x2f3999(0xe6)])>=0x0,_0x266d02=_0x46ca0a[_0x2f3999(0xc7)](_0x16653e=>_0x2f3999(0x174)==_0x16653e[_0x2f3999(0xe6)])>=0x0,_0x339ba4=_0x46ca0a['findIndex'](_0x2f1a46=>'created_at'==_0x2f1a46[_0x2f3999(0xe6)])>=0x0,_0x13d0bc=_0x46ca0a[_0x2f3999(0xc7)](_0x4e0188=>'updated_at'==_0x4e0188[_0x2f3999(0xe6)])>=0x0,_0x49383f=_0x46ca0a['findIndex'](_0x578781=>_0x2f3999(0x172)==_0x578781['name'])>=0x0,_0xfb1b0f=_0x46ca0a[_0x2f3999(0xc7)](_0x4b6bba=>_0x2f3999(0xeb)==_0x4b6bba[_0x2f3999(0xe6)])>=0x0);let _0x5c0838=[];_0x18deff||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':'id','colType':_0x2f3999(0x13a),'colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x5a75b6,'cuFlag':'+'})),_0x266d02||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x174),'colType':_0x2f3999(0x13a),'colSize':0x0,'nullable':!0x1,'term':_0x2f3999(0xd1),'rank':_0x5a75b6,'cuFlag':'+'})),_0x339ba4||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x17c),'colType':_0x2f3999(0x131),'colSize':0x0,'nullable':!0x0,'term':_0x2f3999(0x17c),'rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x13d0bc||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x148),'colType':_0x2f3999(0x131),'colSize':0x0,'nullable':!0x0,'term':_0x2f3999(0x148),'rank':_0x5a75b6,'gridRank':_0x5a75b6,'gridWidth':0x8c,'cuFlag':'+'})),_0x49383f||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x172),'colType':_0x2f3999(0x13a),'colSize':0x28,'nullable':!0x0,'term':_0x2f3999(0x103),'rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0xfb1b0f||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0xeb),'colType':'string','colSize':0x28,'nullable':!0x0,'term':'updater','rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x2f3999(0xcc)]('updateMultipleEntityColumn',_0x5c0838)&&this[_0x2f3999(0xce)][_0x2f3999(0xd2)]();}}async[a0_0x554f97(0xf7)](){const _0x48c5cf=a0_0x554f97;this[_0x48c5cf(0x130)]=[MetaApi[_0x48c5cf(0x187)](_0x48c5cf(0xe6),_0x48c5cf(0x13a),_0x48c5cf(0xe6),_0x48c5cf(0x12b)),MetaApi[_0x48c5cf(0x187)]('table_name',_0x48c5cf(0x13a),'table_name','i_like'),await MetaApi[_0x48c5cf(0x161)](_0x48c5cf(0x16f),_0x48c5cf(0x16b),'bundle','eq',_0x48c5cf(0x15b))],this[_0x48c5cf(0x162)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x48c5cf(0x13e)](!0x0,!0x1),{'type':'gutter','gutterName':_0x48c5cf(0xf5),'icon':_0x48c5cf(0x186),'handlers':{'click':(_0xbcc498,_0x29320f,_0x529fbb,_0x48529d,_0x2eee2e)=>{const _0x2cf37e=_0x48c5cf;_0x48529d['id']&&this[_0x2cf37e(0x117)](_0x48529d);}}},await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x16f),_0x48c5cf(0x16f),_0x48c5cf(0xf4),!0x1,0x73,!0x0,'BUNDLE'),MetaApi['getGristColumnConfig'](_0x48c5cf(0x13a),_0x48c5cf(0xe6),_0x48c5cf(0xf4),!0x0,!0x1,0x7d),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a),_0x48c5cf(0x11c),_0x48c5cf(0x119),_0x48c5cf(0xf4),!0x0,!0x1,0x7d),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a),_0x48c5cf(0x176),_0x48c5cf(0xf4),!0x0,!0x1,0x96)]},this[_0x48c5cf(0x188)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x48c5cf(0x13e)](!0x0,!0x0),MetaApi['getGristColumnConfig'](_0x48c5cf(0x17a),_0x48c5cf(0x12c),_0x48c5cf(0x18d),!0x0,!0x1,0x32),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a),'name',_0x48c5cf(0xf4),!0x0,!0x1,0x73),{'type':_0x48c5cf(0x13a),'name':_0x48c5cf(0x16a),'header':TermsUtil[_0x48c5cf(0x102)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x48c5cf(0xf4),'renderer':(_0x325268,_0x5479a9,_0x1ac1f1,_0x3effdc,_0x356c3f)=>_0x1ac1f1[_0x48c5cf(0x16a)]?TermsUtil[_0x48c5cf(0x102)](_0x1ac1f1['term'],null,_0x1ac1f1[_0x48c5cf(0x16a)]):''}},await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x107),_0x48c5cf(0xe2),_0x48c5cf(0xf4),!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xca),_0x48c5cf(0x153),_0x48c5cf(0x111),!0x0,!0x1,0x3c),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0xea),_0x48c5cf(0x139),_0x48c5cf(0x139),_0x48c5cf(0x18d),!0x0,!0x1,0x46),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xcf),_0x48c5cf(0x10e),_0x48c5cf(0x111),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a),'description',_0x48c5cf(0x176),'left',!0x0,!0x1,0x87),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),'searchRank',_0x48c5cf(0x15f),_0x48c5cf(0x111),!0x0,!0x1,0x46),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x13a),_0x48c5cf(0xd8),_0x48c5cf(0xf4),!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi[_0x48c5cf(0x135)]('integer',_0x48c5cf(0xf6),'grid_rank',_0x48c5cf(0x111),!0x0,!0x1,0x50),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0x12a),_0x48c5cf(0x10c),_0x48c5cf(0x111),!0x0,!0x1,0x4b),await MetaApi[_0x48c5cf(0xec)]('gridEditor',_0x48c5cf(0x185),_0x48c5cf(0xf4),!0x1,0x5a,!0x0,'ENTITY_GRIST_COLUMN_TYPES'),await MetaApi['getGristCodeSelectorColumnConfig'](_0x48c5cf(0x14b),_0x48c5cf(0x14f),_0x48c5cf(0xf4),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0xfb),_0x48c5cf(0xf3),'left',!0x0,!0x1,0x64)]},this[_0x48c5cf(0x155)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x0),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x17a),_0x48c5cf(0x12c),_0x48c5cf(0x18d),!0x0,!0x1,0x32),MetaApi[_0x48c5cf(0xdc)]('string','name',_0x48c5cf(0xf4),!0x0,!0x1,0x73),{'type':'string','name':_0x48c5cf(0x16a),'header':TermsUtil[_0x48c5cf(0x102)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':'left','renderer':(_0x38a34b,_0x1aedb1,_0x5a2bb8,_0x4b7759,_0x3fe4d9)=>_0x5a2bb8[_0x48c5cf(0x16a)]?TermsUtil['tLabel'](_0x5a2bb8['term'],null,_0x5a2bb8[_0x48c5cf(0x16a)]):''}},await MetaApi[_0x48c5cf(0xec)]('colType',_0x48c5cf(0xe2),'left',!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi[_0x48c5cf(0x135)]('integer',_0x48c5cf(0xca),_0x48c5cf(0x153),_0x48c5cf(0x111),!0x0,!0x1,0x3c),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0xea),_0x48c5cf(0x139),_0x48c5cf(0x139),_0x48c5cf(0x18d),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x17a),_0x48c5cf(0xcf),_0x48c5cf(0x10e),_0x48c5cf(0x111),!0x0,!0x1,0x46),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0x176),'description',_0x48c5cf(0xf4),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x17a),_0x48c5cf(0xd4),_0x48c5cf(0x15f),_0x48c5cf(0x111),!0x0,!0x1,0x46),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x13a),'search_oper',_0x48c5cf(0xf4),!0x1,0x55,!0x0,_0x48c5cf(0x151)),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xf6),_0x48c5cf(0xdb),_0x48c5cf(0x111),!0x0,!0x1,0x50),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0x12a),_0x48c5cf(0x10c),_0x48c5cf(0x111),!0x0,!0x1,0x4b),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x15a),_0x48c5cf(0x185),'left',!0x1,0x5a,!0x0,_0x48c5cf(0x150)),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x14b),'ref_type',_0x48c5cf(0xf4),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0xfb),'ref_name',_0x48c5cf(0xf4),!0x0,!0x1,0x64)]};}[a0_0x554f97(0x163)](){const _0x1ca032=a0_0x554f97;return html`
443
+ `,
444
+ variables: { bundle: _0x42ce05, terms: _0x48e67b }
445
+ })
446
+ )[_0x2a1072(0x164)] ||
447
+ MetaApi[_0x2a1072(0x110)](_0x2a1072(0x158), TermsUtil[_0x2a1072(0x108)](_0x2a1072(0x133))))
448
+ }
449
+ } catch (_0x5df3cf) {
450
+ MetaApi[_0x2a1072(0x110)](_0x2a1072(0x13b), _0x5df3cf[_0x2a1072(0x177)])
451
+ }
452
+ }
453
+ async [a0_0x554f97(0x144)]() {
454
+ const _0x289521 = a0_0x554f97
455
+ let _0x2d5a9e = this['detailGrist'][_0x289521(0x184)][_0x289521(0x11e)]
456
+ [_0x289521(0xda)](
457
+ _0x1cf8c9 =>
458
+ _0x289521(0xed) !== _0x1cf8c9['type'] &&
459
+ void 0x0 !== _0x1cf8c9[_0x289521(0xe3)] &&
460
+ void 0x0 !== _0x1cf8c9[_0x289521(0x125)]
461
+ )
462
+ [_0x289521(0xd7)](_0x25a704 => _0x25a704['imex']),
463
+ _0x35f3df = this[_0x289521(0xce)]['data'][_0x289521(0x122)][_0x289521(0xd7)](_0x4d20ed => ({
464
+ id: _0x4d20ed['id'],
465
+ ...this['detailGrist']['_config'][_0x289521(0x11e)]
466
+ [_0x289521(0xda)](
467
+ _0x55ca1b =>
468
+ _0x289521(0xed) !== _0x55ca1b[_0x289521(0xe1)] &&
469
+ void 0x0 !== _0x55ca1b[_0x289521(0xe3)] &&
470
+ void 0x0 !== _0x55ca1b[_0x289521(0x125)]
471
+ )
472
+ [_0x289521(0xd0)](
473
+ (_0x472d4f, _0x284701) => (
474
+ (_0x472d4f[_0x284701[_0x289521(0x125)][_0x289521(0xe9)]] = _0x284701[_0x289521(0x125)][_0x289521(0xe9)]
475
+ [_0x289521(0x134)]('.')
476
+ [_0x289521(0xd0)](
477
+ (_0x2add39, _0x359c0e) =>
478
+ _0x2add39 && 'undefined' !== _0x2add39[_0x359c0e] ? _0x2add39[_0x359c0e] : void 0x0,
479
+ _0x4d20ed
480
+ )),
481
+ _0x472d4f
482
+ ),
483
+ {}
484
+ )
485
+ }))
486
+ store['dispatch']({
487
+ type: EXPORT,
488
+ exportable: {
489
+ extension: 'xlsx',
490
+ name: TermsUtil[_0x289521(0x11b)]('entity-column') + '-' + this['selectedEntity'][_0x289521(0xe6)],
491
+ data: { header: _0x2d5a9e, data: _0x35f3df }
492
+ }
493
+ })
494
+ }
495
+ async [a0_0x554f97(0x18c)]() {
496
+ const _0x2f2ffe = a0_0x554f97
497
+ let _0x4cede0 = this
498
+ const _0x3e4651 = document[_0x2f2ffe(0xd5)](_0x2f2ffe(0xe5))
499
+ _0x3e4651[_0x2f2ffe(0x173)](_0x2f2ffe(0xe1), _0x2f2ffe(0xf0)),
500
+ _0x3e4651['setAttribute'](_0x2f2ffe(0x13f), [_0x2f2ffe(0x16d)]),
501
+ (_0x3e4651[_0x2f2ffe(0x11a)] = !0x0),
502
+ _0x3e4651['addEventListener'](_0x2f2ffe(0xf2), _0x40ee42 => {
503
+ const _0x244abd = _0x2f2ffe,
504
+ _0x581338 = _0x40ee42[_0x244abd(0x114)][_0x244abd(0x175)][0x0],
505
+ _0x147856 = _0x581338[_0x244abd(0xe6)]['split']('.')[_0x244abd(0x11f)](),
506
+ _0x3e799c = new FileReader()
507
+ ;(_0x3e799c['onload'] = function (_0x118625) {
508
+ const _0x48a807 = _0x244abd,
509
+ _0x58c4cb = _0x118625[_0x48a807(0x181)][_0x48a807(0x171)]
510
+ store[_0x48a807(0x147)]({
511
+ type: IMPORT,
512
+ importable: {
513
+ extension: _0x147856,
514
+ handler: _0x4cede0['importEntityColumns'][_0x48a807(0x167)](_0x4cede0)
515
+ },
516
+ data: _0x58c4cb
517
+ })
518
+ }),
519
+ _0x3e799c[_0x244abd(0x116)](_0x581338)
520
+ }),
521
+ document['body'][_0x2f2ffe(0x105)](_0x3e4651),
522
+ _0x3e4651[_0x2f2ffe(0x16c)]()
523
+ }
524
+ [a0_0x554f97(0x18b)](_0x32e876) {
525
+ const _0x59f57b = a0_0x554f97
526
+ let _0x1d34f6 = _0x32e876[_0x59f57b(0xcd)] ? _0x32e876['data'] : _0x32e876
527
+ if (_0x1d34f6 && _0x1d34f6[_0x59f57b(0x166)] > 0x0) {
528
+ _0x1d34f6[_0x59f57b(0x17d)](_0x1f6053 => {
529
+ const _0x40569b = _0x59f57b
530
+ _0x1f6053[_0x40569b(0xf1)] = !0x0
531
+ })
532
+ let _0x501f43 = this[_0x59f57b(0x155)][_0x59f57b(0x11e)]['filter'](_0x7aeae9 => !!_0x7aeae9[_0x59f57b(0x125)])
533
+ setTimeout(() => {
534
+ const _0xcbb82c = _0x59f57b
535
+ MetaApi[_0xcbb82c(0x179)](
536
+ TermsUtil[_0xcbb82c(0x11b)]('import'),
537
+ _0xcbb82c(0x129),
538
+ html` <import-pop-up
539
+ .records=${_0x1d34f6}
540
+ .config=${{
541
+ rows: _0x1d34f6,
542
+ columns: [{ type: _0xcbb82c(0xed), gutterName: _0xcbb82c(0xe0) }, ..._0x501f43]
543
+ }}
544
+ .importHandler="${this[_0xcbb82c(0xee)][_0xcbb82c(0x167)](this)}"
545
+ >
546
+ </import-pop-up>`
547
+ )
548
+ }, 0x1f4)
549
+ }
550
+ }
551
+ async [a0_0x554f97(0xee)](_0x1d6ca0) {
552
+ const _0x10c890 = a0_0x554f97
553
+ if (_0x1d6ca0 && 0x0 != _0x1d6ca0[_0x10c890(0x166)]) {
554
+ let _0x212245 = 0x0
555
+ _0x1d6ca0[_0x10c890(0x17d)](_0x5f2ea1 => {
556
+ const _0xa5e174 = _0x10c890
557
+ ;(_0x212245 += 0xa),
558
+ (_0x5f2ea1['colSize'] = ValueUtil[_0xa5e174(0x18a)](_0x5f2ea1[_0xa5e174(0xca)])
559
+ ? ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['colSize'])
560
+ : _0xa5e174(0x13a) == _0x5f2ea1['colType']
561
+ ? 0x32
562
+ : 0x0),
563
+ (_0x5f2ea1[_0xa5e174(0x12c)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12c)], 0x0)),
564
+ (_0x5f2ea1[_0xa5e174(0xcf)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['uniqRank'], 0x0)),
565
+ (_0x5f2ea1[_0xa5e174(0xd4)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0xd4)], 0x0)),
566
+ (_0x5f2ea1[_0xa5e174(0xf6)] = ValueUtil['toInteger'](_0x5f2ea1[_0xa5e174(0xf6)], 0x0)),
567
+ (_0x5f2ea1[_0xa5e174(0x12a)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12a)], 0x0)),
568
+ (_0x5f2ea1[_0xa5e174(0x106)] = { id: this[_0xa5e174(0x170)] }),
569
+ (_0x5f2ea1['nullable'] = ValueUtil[_0xa5e174(0x18e)](_0x5f2ea1[_0xa5e174(0x139)])),
570
+ (_0x5f2ea1[_0xa5e174(0x16a)] = _0x5f2ea1[_0xa5e174(0x16a)] ? _0x5f2ea1['term'] : _0x5f2ea1[_0xa5e174(0xe6)]),
571
+ (_0x5f2ea1['colType'] = _0x5f2ea1[_0xa5e174(0x107)] ? _0x5f2ea1[_0xa5e174(0x107)] : _0xa5e174(0x13a)),
572
+ delete _0x5f2ea1[_0xa5e174(0x13a)]
573
+ }),
574
+ (await MetaApi[_0x10c890(0xcc)](_0x10c890(0x112), _0x1d6ca0)) &&
575
+ (this[_0x10c890(0xce)][_0x10c890(0xd2)](), history[_0x10c890(0xe7)]())
576
+ } else MetaApi[_0x10c890(0x110)]('info', _0x10c890(0xdd)), history[_0x10c890(0xe7)]()
577
+ }
578
+ async [a0_0x554f97(0x15e)]() {
579
+ const _0x2f3999 = a0_0x554f97
580
+ if (this[_0x2f3999(0x170)]) {
581
+ let _0x46ca0a = this['detailGrist'][_0x2f3999(0x160)][_0x2f3999(0x122)],
582
+ _0x5a75b6 = _0x46ca0a && _0x46ca0a[_0x2f3999(0x166)] ? 0xa * _0x46ca0a[_0x2f3999(0x166)] : 0x0,
583
+ _0x18deff = !0x1,
584
+ _0x266d02 = !0x1,
585
+ _0x339ba4 = !0x1,
586
+ _0x13d0bc = !0x1,
587
+ _0x49383f = !0x1,
588
+ _0xfb1b0f = !0x1
589
+ _0x46ca0a &&
590
+ _0x46ca0a['length'] > 0x0 &&
591
+ ((_0x18deff = _0x46ca0a['findIndex'](_0x193385 => 'id' == _0x193385[_0x2f3999(0xe6)]) >= 0x0),
592
+ (_0x266d02 = _0x46ca0a[_0x2f3999(0xc7)](_0x16653e => _0x2f3999(0x174) == _0x16653e[_0x2f3999(0xe6)]) >= 0x0),
593
+ (_0x339ba4 = _0x46ca0a['findIndex'](_0x2f1a46 => 'created_at' == _0x2f1a46[_0x2f3999(0xe6)]) >= 0x0),
594
+ (_0x13d0bc = _0x46ca0a[_0x2f3999(0xc7)](_0x4e0188 => 'updated_at' == _0x4e0188[_0x2f3999(0xe6)]) >= 0x0),
595
+ (_0x49383f = _0x46ca0a['findIndex'](_0x578781 => _0x2f3999(0x172) == _0x578781['name']) >= 0x0),
596
+ (_0xfb1b0f = _0x46ca0a[_0x2f3999(0xc7)](_0x4b6bba => _0x2f3999(0xeb) == _0x4b6bba[_0x2f3999(0xe6)]) >= 0x0))
597
+ let _0x5c0838 = []
598
+ _0x18deff ||
599
+ ((_0x5a75b6 += 0xa),
600
+ _0x5c0838[_0x2f3999(0xde)]({
601
+ entity: { id: this[_0x2f3999(0x170)] },
602
+ name: 'id',
603
+ colType: _0x2f3999(0x13a),
604
+ colSize: 0x0,
605
+ nullable: !0x1,
606
+ term: 'id',
607
+ rank: _0x5a75b6,
608
+ cuFlag: '+'
609
+ })),
610
+ _0x266d02 ||
611
+ ((_0x5a75b6 += 0xa),
612
+ _0x5c0838[_0x2f3999(0xde)]({
613
+ entity: { id: this[_0x2f3999(0x170)] },
614
+ name: _0x2f3999(0x174),
615
+ colType: _0x2f3999(0x13a),
616
+ colSize: 0x0,
617
+ nullable: !0x1,
618
+ term: _0x2f3999(0xd1),
619
+ rank: _0x5a75b6,
620
+ cuFlag: '+'
621
+ })),
622
+ _0x339ba4 ||
623
+ ((_0x5a75b6 += 0xa),
624
+ _0x5c0838[_0x2f3999(0xde)]({
625
+ entity: { id: this[_0x2f3999(0x170)] },
626
+ name: _0x2f3999(0x17c),
627
+ colType: _0x2f3999(0x131),
628
+ colSize: 0x0,
629
+ nullable: !0x0,
630
+ term: _0x2f3999(0x17c),
631
+ rank: _0x5a75b6,
632
+ gridRank: 0x0,
633
+ gridWidth: 0x8c,
634
+ cuFlag: '+'
635
+ })),
636
+ _0x13d0bc ||
637
+ ((_0x5a75b6 += 0xa),
638
+ _0x5c0838[_0x2f3999(0xde)]({
639
+ entity: { id: this[_0x2f3999(0x170)] },
640
+ name: _0x2f3999(0x148),
641
+ colType: _0x2f3999(0x131),
642
+ colSize: 0x0,
643
+ nullable: !0x0,
644
+ term: _0x2f3999(0x148),
645
+ rank: _0x5a75b6,
646
+ gridRank: _0x5a75b6,
647
+ gridWidth: 0x8c,
648
+ cuFlag: '+'
649
+ })),
650
+ _0x49383f ||
651
+ ((_0x5a75b6 += 0xa),
652
+ _0x5c0838[_0x2f3999(0xde)]({
653
+ entity: { id: this[_0x2f3999(0x170)] },
654
+ name: _0x2f3999(0x172),
655
+ colType: _0x2f3999(0x13a),
656
+ colSize: 0x28,
657
+ nullable: !0x0,
658
+ term: _0x2f3999(0x103),
659
+ rank: _0x5a75b6,
660
+ gridRank: 0x0,
661
+ gridWidth: 0x64,
662
+ cuFlag: '+'
663
+ })),
664
+ _0xfb1b0f ||
665
+ ((_0x5a75b6 += 0xa),
666
+ _0x5c0838[_0x2f3999(0xde)]({
667
+ entity: { id: this[_0x2f3999(0x170)] },
668
+ name: _0x2f3999(0xeb),
669
+ colType: 'string',
670
+ colSize: 0x28,
671
+ nullable: !0x0,
672
+ term: 'updater',
673
+ rank: _0x5a75b6,
674
+ gridRank: 0x0,
675
+ gridWidth: 0x64,
676
+ cuFlag: '+'
677
+ })),
678
+ (await MetaApi[_0x2f3999(0xcc)]('updateMultipleEntityColumn', _0x5c0838)) &&
679
+ this[_0x2f3999(0xce)][_0x2f3999(0xd2)]()
680
+ }
681
+ }
682
+ async [a0_0x554f97(0xf7)]() {
683
+ const _0x48c5cf = a0_0x554f97
684
+ ;(this[_0x48c5cf(0x130)] = [
685
+ MetaApi[_0x48c5cf(0x187)](_0x48c5cf(0xe6), _0x48c5cf(0x13a), _0x48c5cf(0xe6), _0x48c5cf(0x12b)),
686
+ MetaApi[_0x48c5cf(0x187)]('table_name', _0x48c5cf(0x13a), 'table_name', 'i_like'),
687
+ await MetaApi[_0x48c5cf(0x161)](_0x48c5cf(0x16f), _0x48c5cf(0x16b), 'bundle', 'eq', _0x48c5cf(0x15b))
688
+ ]),
689
+ (this[_0x48c5cf(0x162)] = {
690
+ rows: MetaApi[_0x48c5cf(0x15c)](!0x1),
691
+ pagination: { pages: [0x3e8] },
692
+ appendable: !0x0,
693
+ columns: [
694
+ ...MetaApi[_0x48c5cf(0x13e)](!0x0, !0x1),
695
+ {
696
+ type: 'gutter',
697
+ gutterName: _0x48c5cf(0xf5),
698
+ icon: _0x48c5cf(0x186),
699
+ handlers: {
700
+ click: (_0xbcc498, _0x29320f, _0x529fbb, _0x48529d, _0x2eee2e) => {
701
+ const _0x2cf37e = _0x48c5cf
702
+ _0x48529d['id'] && this[_0x2cf37e(0x117)](_0x48529d)
703
+ }
704
+ }
705
+ },
706
+ await MetaApi[_0x48c5cf(0xec)](
707
+ _0x48c5cf(0x16f),
708
+ _0x48c5cf(0x16f),
709
+ _0x48c5cf(0xf4),
710
+ !0x1,
711
+ 0x73,
712
+ !0x0,
713
+ 'BUNDLE'
714
+ ),
715
+ MetaApi['getGristColumnConfig'](_0x48c5cf(0x13a), _0x48c5cf(0xe6), _0x48c5cf(0xf4), !0x0, !0x1, 0x7d),
716
+ MetaApi['getGristColumnConfig2'](
717
+ _0x48c5cf(0x13a),
718
+ _0x48c5cf(0x11c),
719
+ _0x48c5cf(0x119),
720
+ _0x48c5cf(0xf4),
721
+ !0x0,
722
+ !0x1,
723
+ 0x7d
724
+ ),
725
+ MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a), _0x48c5cf(0x176), _0x48c5cf(0xf4), !0x0, !0x1, 0x96)
726
+ ]
727
+ }),
728
+ (this[_0x48c5cf(0x188)] = {
729
+ rows: MetaApi[_0x48c5cf(0x15c)](!0x0),
730
+ pagination: { pages: [0x3e8] },
731
+ appendable: !0x0,
732
+ columns: [
733
+ ...MetaApi[_0x48c5cf(0x13e)](!0x0, !0x0),
734
+ MetaApi['getGristColumnConfig'](_0x48c5cf(0x17a), _0x48c5cf(0x12c), _0x48c5cf(0x18d), !0x0, !0x1, 0x32),
735
+ MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a), 'name', _0x48c5cf(0xf4), !0x0, !0x1, 0x73),
736
+ {
737
+ type: _0x48c5cf(0x13a),
738
+ name: _0x48c5cf(0x16a),
739
+ header: TermsUtil[_0x48c5cf(0x102)]('term'),
740
+ sortable: !0x1,
741
+ width: 0x87,
742
+ record: {
743
+ editable: !0x0,
744
+ align: _0x48c5cf(0xf4),
745
+ renderer: (_0x325268, _0x5479a9, _0x1ac1f1, _0x3effdc, _0x356c3f) =>
746
+ _0x1ac1f1[_0x48c5cf(0x16a)]
747
+ ? TermsUtil[_0x48c5cf(0x102)](_0x1ac1f1['term'], null, _0x1ac1f1[_0x48c5cf(0x16a)])
748
+ : ''
749
+ }
750
+ },
751
+ await MetaApi[_0x48c5cf(0xec)](
752
+ _0x48c5cf(0x107),
753
+ _0x48c5cf(0xe2),
754
+ _0x48c5cf(0xf4),
755
+ !0x1,
756
+ 0x4b,
757
+ !0x0,
758
+ 'ENTITY_COLUMN_TYPES'
759
+ ),
760
+ MetaApi[_0x48c5cf(0x135)](
761
+ _0x48c5cf(0x17a),
762
+ _0x48c5cf(0xca),
763
+ _0x48c5cf(0x153),
764
+ _0x48c5cf(0x111),
765
+ !0x0,
766
+ !0x1,
767
+ 0x3c
768
+ ),
769
+ MetaApi[_0x48c5cf(0x135)](
770
+ _0x48c5cf(0xea),
771
+ _0x48c5cf(0x139),
772
+ _0x48c5cf(0x139),
773
+ _0x48c5cf(0x18d),
774
+ !0x0,
775
+ !0x1,
776
+ 0x46
777
+ ),
778
+ MetaApi[_0x48c5cf(0x135)](
779
+ _0x48c5cf(0x17a),
780
+ _0x48c5cf(0xcf),
781
+ _0x48c5cf(0x10e),
782
+ _0x48c5cf(0x111),
783
+ !0x0,
784
+ !0x1,
785
+ 0x46
786
+ ),
787
+ MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a), 'description', _0x48c5cf(0x176), 'left', !0x0, !0x1, 0x87),
788
+ MetaApi[_0x48c5cf(0x135)](
789
+ _0x48c5cf(0x17a),
790
+ 'searchRank',
791
+ _0x48c5cf(0x15f),
792
+ _0x48c5cf(0x111),
793
+ !0x0,
794
+ !0x1,
795
+ 0x46
796
+ ),
797
+ await MetaApi[_0x48c5cf(0xec)](
798
+ _0x48c5cf(0x13a),
799
+ _0x48c5cf(0xd8),
800
+ _0x48c5cf(0xf4),
801
+ !0x1,
802
+ 0x55,
803
+ !0x0,
804
+ 'FILTER_OPERATORS'
805
+ ),
806
+ MetaApi[_0x48c5cf(0x135)]('integer', _0x48c5cf(0xf6), 'grid_rank', _0x48c5cf(0x111), !0x0, !0x1, 0x50),
807
+ MetaApi[_0x48c5cf(0x135)](
808
+ _0x48c5cf(0x17a),
809
+ _0x48c5cf(0x12a),
810
+ _0x48c5cf(0x10c),
811
+ _0x48c5cf(0x111),
812
+ !0x0,
813
+ !0x1,
814
+ 0x4b
815
+ ),
816
+ await MetaApi[_0x48c5cf(0xec)](
817
+ 'gridEditor',
818
+ _0x48c5cf(0x185),
819
+ _0x48c5cf(0xf4),
820
+ !0x1,
821
+ 0x5a,
822
+ !0x0,
823
+ 'ENTITY_GRIST_COLUMN_TYPES'
824
+ ),
825
+ await MetaApi['getGristCodeSelectorColumnConfig'](
826
+ _0x48c5cf(0x14b),
827
+ _0x48c5cf(0x14f),
828
+ _0x48c5cf(0xf4),
829
+ !0x1,
830
+ 0x55,
831
+ !0x0,
832
+ 'COLUMN_REF_TYPE'
833
+ ),
834
+ MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a), _0x48c5cf(0xfb), _0x48c5cf(0xf3), 'left', !0x0, !0x1, 0x64)
835
+ ]
836
+ }),
837
+ (this[_0x48c5cf(0x155)] = {
838
+ rows: MetaApi[_0x48c5cf(0x15c)](!0x0),
839
+ pagination: { pages: [0x3e8] },
840
+ appendable: !0x0,
841
+ columns: [
842
+ ...MetaApi['getGristGuttersConfig'](!0x0, !0x0),
843
+ MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x17a), _0x48c5cf(0x12c), _0x48c5cf(0x18d), !0x0, !0x1, 0x32),
844
+ MetaApi[_0x48c5cf(0xdc)]('string', 'name', _0x48c5cf(0xf4), !0x0, !0x1, 0x73),
845
+ {
846
+ type: 'string',
847
+ name: _0x48c5cf(0x16a),
848
+ header: TermsUtil[_0x48c5cf(0x102)]('term'),
849
+ sortable: !0x1,
850
+ width: 0x87,
851
+ record: {
852
+ editable: !0x1,
853
+ align: 'left',
854
+ renderer: (_0x38a34b, _0x1aedb1, _0x5a2bb8, _0x4b7759, _0x3fe4d9) =>
855
+ _0x5a2bb8[_0x48c5cf(0x16a)]
856
+ ? TermsUtil['tLabel'](_0x5a2bb8['term'], null, _0x5a2bb8[_0x48c5cf(0x16a)])
857
+ : ''
858
+ }
859
+ },
860
+ await MetaApi[_0x48c5cf(0xec)]('colType', _0x48c5cf(0xe2), 'left', !0x1, 0x4b, !0x0, 'ENTITY_COLUMN_TYPES'),
861
+ MetaApi[_0x48c5cf(0x135)]('integer', _0x48c5cf(0xca), _0x48c5cf(0x153), _0x48c5cf(0x111), !0x0, !0x1, 0x3c),
862
+ MetaApi[_0x48c5cf(0x135)](
863
+ _0x48c5cf(0xea),
864
+ _0x48c5cf(0x139),
865
+ _0x48c5cf(0x139),
866
+ _0x48c5cf(0x18d),
867
+ !0x0,
868
+ !0x1,
869
+ 0x46
870
+ ),
871
+ MetaApi['getGristColumnConfig2'](
872
+ _0x48c5cf(0x17a),
873
+ _0x48c5cf(0xcf),
874
+ _0x48c5cf(0x10e),
875
+ _0x48c5cf(0x111),
876
+ !0x0,
877
+ !0x1,
878
+ 0x46
879
+ ),
880
+ MetaApi[_0x48c5cf(0x135)](
881
+ _0x48c5cf(0x13a),
882
+ _0x48c5cf(0x176),
883
+ 'description',
884
+ _0x48c5cf(0xf4),
885
+ !0x0,
886
+ !0x1,
887
+ 0x87
888
+ ),
889
+ MetaApi['getGristColumnConfig2'](
890
+ _0x48c5cf(0x17a),
891
+ _0x48c5cf(0xd4),
892
+ _0x48c5cf(0x15f),
893
+ _0x48c5cf(0x111),
894
+ !0x0,
895
+ !0x1,
896
+ 0x46
897
+ ),
898
+ await MetaApi[_0x48c5cf(0xec)](
899
+ _0x48c5cf(0x13a),
900
+ 'search_oper',
901
+ _0x48c5cf(0xf4),
902
+ !0x1,
903
+ 0x55,
904
+ !0x0,
905
+ _0x48c5cf(0x151)
906
+ ),
907
+ MetaApi[_0x48c5cf(0x135)](
908
+ _0x48c5cf(0x17a),
909
+ _0x48c5cf(0xf6),
910
+ _0x48c5cf(0xdb),
911
+ _0x48c5cf(0x111),
912
+ !0x0,
913
+ !0x1,
914
+ 0x50
915
+ ),
916
+ MetaApi[_0x48c5cf(0x135)](
917
+ _0x48c5cf(0x17a),
918
+ _0x48c5cf(0x12a),
919
+ _0x48c5cf(0x10c),
920
+ _0x48c5cf(0x111),
921
+ !0x0,
922
+ !0x1,
923
+ 0x4b
924
+ ),
925
+ await MetaApi[_0x48c5cf(0xec)](
926
+ _0x48c5cf(0x15a),
927
+ _0x48c5cf(0x185),
928
+ 'left',
929
+ !0x1,
930
+ 0x5a,
931
+ !0x0,
932
+ _0x48c5cf(0x150)
933
+ ),
934
+ await MetaApi[_0x48c5cf(0xec)](
935
+ _0x48c5cf(0x14b),
936
+ 'ref_type',
937
+ _0x48c5cf(0xf4),
938
+ !0x1,
939
+ 0x55,
940
+ !0x0,
941
+ 'COLUMN_REF_TYPE'
942
+ ),
943
+ MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a), _0x48c5cf(0xfb), 'ref_name', _0x48c5cf(0xf4), !0x0, !0x1, 0x64)
944
+ ]
945
+ })
946
+ }
947
+ [a0_0x554f97(0x163)]() {
948
+ const _0x1ca032 = a0_0x554f97
949
+ return html`
19
950
  <div slot="headroom">
20
951
  <div id="filters">
21
- <ox-filters-form-base
22
- .filters=${this[_0x1ca032(0x130)]||[]}
23
- @filters-change=${_0xfc65d5=>{const _0x1ad8d6=_0x1ca032;this[_0x1ad8d6(0x10b)]?.[_0x1ad8d6(0xd2)]();}}
952
+ <ox-filters-form-base
953
+ .filters=${this[_0x1ca032(0x130)] || []}
954
+ @filters-change=${_0xfc65d5 => {
955
+ const _0x1ad8d6 = _0x1ca032
956
+ this[_0x1ad8d6(0x10b)]?.[_0x1ad8d6(0xd2)]()
957
+ }}
24
958
  ></ox-filters-form-base>
25
959
  </div>
26
960
  </div>
27
961
 
28
- <div class='container' style='grid-template-columns: 37% 63%'>
962
+ <div class="container" style="grid-template-columns: 37% 63%">
29
963
  <div class="container_detail">
30
- <h2>
31
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ca032(0x11b)](_0x1ca032(0x106))}
32
- </h2>
33
- <ox-grist
34
- id="master-grist"
35
- .config=${this[_0x1ca032(0x162)]}
36
- .mode=${MetaApi[_0x1ca032(0xf9)]()?_0x1ca032(0x127):_0x1ca032(0x128)}
964
+ <h2><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ca032(0x11b)](_0x1ca032(0x106))}</h2>
965
+ <ox-grist
966
+ id="master-grist"
967
+ .config=${this[_0x1ca032(0x162)]}
968
+ .mode=${MetaApi[_0x1ca032(0xf9)]() ? _0x1ca032(0x127) : _0x1ca032(0x128)}
37
969
  auto-fetch
38
- .fetchHandler=${this[_0x1ca032(0x124)][_0x1ca032(0x167)](this)}>
970
+ .fetchHandler=${this[_0x1ca032(0x124)][_0x1ca032(0x167)](this)}
971
+ >
39
972
  </ox-grist>
40
973
  <div id="button-container" class="button-container">
41
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x121))}" @click=${_0x21bd05=>this['createService']()}></mwc-button>
42
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('create-menu')}" @click=${_0x691152=>this['createMenu']()}></mwc-button>
43
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x118))}" @click=${_0x4ded60=>this['saveMasters']()}></mwc-button>
44
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x14c))}" @click=${_0x1642de=>this['deleteMasters']()}></mwc-button>
974
+ <mwc-button
975
+ raised
976
+ label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x121))}"
977
+ @click=${_0x21bd05 => this['createService']()}
978
+ ></mwc-button>
979
+ <mwc-button
980
+ raised
981
+ label="${TermsUtil[_0x1ca032(0x136)]('create-menu')}"
982
+ @click=${_0x691152 => this['createMenu']()}
983
+ ></mwc-button>
984
+ <mwc-button
985
+ raised
986
+ label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x118))}"
987
+ @click=${_0x4ded60 => this['saveMasters']()}
988
+ ></mwc-button>
989
+ <mwc-button
990
+ raised
991
+ label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x14c))}"
992
+ @click=${_0x1642de => this['deleteMasters']()}
993
+ ></mwc-button>
45
994
  </div>
46
995
  </div>
47
996
 
48
997
  <div class="container_detail">
49
- <h2>
50
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ca032(0x11b)](_0x1ca032(0xd6))}
51
- </h2>
52
- <ox-grist
53
- id="detail-grist"
54
- .config=${this['detailConfig']}
55
- .mode=${MetaApi[_0x1ca032(0xf9)]()?_0x1ca032(0x127):_0x1ca032(0x128)}
998
+ <h2><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ca032(0x11b)](_0x1ca032(0xd6))}</h2>
999
+ <ox-grist
1000
+ id="detail-grist"
1001
+ .config=${this['detailConfig']}
1002
+ .mode=${MetaApi[_0x1ca032(0xf9)]() ? _0x1ca032(0x127) : _0x1ca032(0x128)}
56
1003
  explcit-fetch
57
- .fetchHandler=${this[_0x1ca032(0x120)][_0x1ca032(0x167)](this)}>
1004
+ .fetchHandler=${this[_0x1ca032(0x120)][_0x1ca032(0x167)](this)}
1005
+ >
58
1006
  </ox-grist>
59
1007
  <div id="button-container" class="button-container">
60
- <mwc-button raised label="${TermsUtil['tButton'](_0x1ca032(0x12d))}" @click=${_0x20098e=>this[_0x1ca032(0x144)]()}></mwc-button>
61
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x145))}" @click=${_0x4b52a9=>this['importXlsxFile']()}></mwc-button>
62
- <mwc-button raised label="${TermsUtil['tButton'](_0x1ca032(0x165))}" @click=${_0x59f0ac=>this[_0x1ca032(0x15e)]()}></mwc-button>
63
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('register-terms')}" @click=${_0x2886c4=>this['createUnregisteredTerms']()}></mwc-button>
64
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('save')}" @click=${_0x55df18=>this[_0x1ca032(0x157)]()}></mwc-button>
65
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('delete')}" @click=${_0x40f486=>this[_0x1ca032(0x13d)]()}></mwc-button>
1008
+ <mwc-button
1009
+ raised
1010
+ label="${TermsUtil['tButton'](_0x1ca032(0x12d))}"
1011
+ @click=${_0x20098e => this[_0x1ca032(0x144)]()}
1012
+ ></mwc-button>
1013
+ <mwc-button
1014
+ raised
1015
+ label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x145))}"
1016
+ @click=${_0x4b52a9 => this['importXlsxFile']()}
1017
+ ></mwc-button>
1018
+ <mwc-button
1019
+ raised
1020
+ label="${TermsUtil['tButton'](_0x1ca032(0x165))}"
1021
+ @click=${_0x59f0ac => this[_0x1ca032(0x15e)]()}
1022
+ ></mwc-button>
1023
+ <mwc-button
1024
+ raised
1025
+ label="${TermsUtil[_0x1ca032(0x136)]('register-terms')}"
1026
+ @click=${_0x2886c4 => this['createUnregisteredTerms']()}
1027
+ ></mwc-button>
1028
+ <mwc-button
1029
+ raised
1030
+ label="${TermsUtil[_0x1ca032(0x136)]('save')}"
1031
+ @click=${_0x55df18 => this[_0x1ca032(0x157)]()}
1032
+ ></mwc-button>
1033
+ <mwc-button
1034
+ raised
1035
+ label="${TermsUtil[_0x1ca032(0x136)]('delete')}"
1036
+ @click=${_0x40f486 => this[_0x1ca032(0x13d)]()}
1037
+ ></mwc-button>
66
1038
  </div>
67
1039
  </div>
68
1040
  </div>
69
- `;}}customElements['define'](a0_0x554f97(0x142),ConfigEntity);
1041
+ `
1042
+ }
1043
+ }
1044
+ customElements['define'](a0_0x554f97(0x142), ConfigEntity)