@things-factory/operato-tools 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.
- package/client/pages/generator/button-config-tab-mixin.js +367 -5
- package/client/pages/generator/column-config-tab-mixin.js +471 -4
- package/client/pages/generator/etc-config-tab-mixin.js +166 -4
- package/client/pages/generator/form-config-tab-mixin.js +210 -4
- package/client/pages/generator/graphql-config-tab-mixin.js +425 -66
- package/client/pages/generator/grid-config-tab-mixin.js +264 -16
- package/client/pages/generator/menu-config-tab-mixin.js +169 -30
- package/client/pages/generator/meta-generator-page.js +524 -32
- package/client/pages/generator/search-config-tab-mixin.js +218 -4
- package/client/pages/generator/tab-config-tab-mixin.js +269 -4
- package/client/pages/main.js +78 -7
- package/package.json +3 -3
|
@@ -1,4 +1,195 @@
|
|
|
1
|
-
const a0_0x43554f
|
|
1
|
+
const a0_0x43554f = a0_0x1324
|
|
2
|
+
;(function (_0x520237, _0x115a7f) {
|
|
3
|
+
const _0x1b2521 = a0_0x1324,
|
|
4
|
+
_0x4ed852 = _0x520237()
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
const _0xdf7f4b =
|
|
8
|
+
-parseInt(_0x1b2521(0x166)) / 0x1 +
|
|
9
|
+
(parseInt(_0x1b2521(0xf9)) / 0x2) * (parseInt(_0x1b2521(0x112)) / 0x3) +
|
|
10
|
+
parseInt(_0x1b2521(0x115)) / 0x4 +
|
|
11
|
+
parseInt(_0x1b2521(0x147)) / 0x5 +
|
|
12
|
+
-parseInt(_0x1b2521(0x14e)) / 0x6 +
|
|
13
|
+
(parseInt(_0x1b2521(0x137)) / 0x7) * (-parseInt(_0x1b2521(0x118)) / 0x8) +
|
|
14
|
+
-parseInt(_0x1b2521(0x15f)) / 0x9
|
|
15
|
+
if (_0xdf7f4b === _0x115a7f) break
|
|
16
|
+
else _0x4ed852['push'](_0x4ed852['shift']())
|
|
17
|
+
} catch (_0x155e58) {
|
|
18
|
+
_0x4ed852['push'](_0x4ed852['shift']())
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})(a0_0x51a8, 0x1b48a)
|
|
22
|
+
import a0_0x3d3d25 from 'graphql-tag'
|
|
23
|
+
import { html, css } from 'lit'
|
|
24
|
+
import { client } from '@operato/graphql'
|
|
25
|
+
import { store } from '@operato/shell'
|
|
26
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
27
|
+
import { PageView } from '@things-factory/shell'
|
|
28
|
+
function a0_0x51a8() {
|
|
29
|
+
const _0x487c7a = [
|
|
30
|
+
'bind',
|
|
31
|
+
'dataStorage',
|
|
32
|
+
'toLowerCase',
|
|
33
|
+
'styles',
|
|
34
|
+
'includes',
|
|
35
|
+
'grid',
|
|
36
|
+
'form_config',
|
|
37
|
+
'tMenu',
|
|
38
|
+
'initData',
|
|
39
|
+
'dirtyData',
|
|
40
|
+
'tab',
|
|
41
|
+
'graphql',
|
|
42
|
+
'records',
|
|
43
|
+
'hidden',
|
|
44
|
+
'ox-grist',
|
|
45
|
+
'rep_field',
|
|
46
|
+
'button',
|
|
47
|
+
'keys',
|
|
48
|
+
'menu_config',
|
|
49
|
+
'rank',
|
|
50
|
+
'21pwUmzs',
|
|
51
|
+
'fields',
|
|
52
|
+
'sorters',
|
|
53
|
+
'tagName',
|
|
54
|
+
'meta-generator-page',
|
|
55
|
+
'tButton',
|
|
56
|
+
'search_config',
|
|
57
|
+
'filter',
|
|
58
|
+
'menu',
|
|
59
|
+
'selectedIndex',
|
|
60
|
+
'query',
|
|
61
|
+
'graphql_config',
|
|
62
|
+
'push',
|
|
63
|
+
'getConfigTab',
|
|
64
|
+
'value',
|
|
65
|
+
'tTitle',
|
|
66
|
+
'558785StmBOw',
|
|
67
|
+
'updateMultipleMenu',
|
|
68
|
+
'dec',
|
|
69
|
+
'error.invalid\x20license\x20key',
|
|
70
|
+
'clear',
|
|
71
|
+
'set',
|
|
72
|
+
'radio',
|
|
73
|
+
'396876ypCHqe',
|
|
74
|
+
':checked',
|
|
75
|
+
'properties',
|
|
76
|
+
'slice',
|
|
77
|
+
'options',
|
|
78
|
+
'shadowRoot',
|
|
79
|
+
'getElementById',
|
|
80
|
+
'desc',
|
|
81
|
+
'tabData',
|
|
82
|
+
'back',
|
|
83
|
+
'ConfigTabConfig',
|
|
84
|
+
'context',
|
|
85
|
+
'currentTabKey',
|
|
86
|
+
'operatoTools',
|
|
87
|
+
'save',
|
|
88
|
+
'sortRecordByRank',
|
|
89
|
+
'type',
|
|
90
|
+
'1280187KyJpPI',
|
|
91
|
+
'pageInitialized',
|
|
92
|
+
'deleteRow',
|
|
93
|
+
'refresh',
|
|
94
|
+
'updateMultiple',
|
|
95
|
+
'render',
|
|
96
|
+
'error',
|
|
97
|
+
'126454rZaWBW',
|
|
98
|
+
'display:none',
|
|
99
|
+
'forEach',
|
|
100
|
+
'name',
|
|
101
|
+
'search',
|
|
102
|
+
'list',
|
|
103
|
+
'getElementValueById',
|
|
104
|
+
'get',
|
|
105
|
+
'active',
|
|
106
|
+
'16HBVSss',
|
|
107
|
+
'template',
|
|
108
|
+
'metaTemplate',
|
|
109
|
+
'backToMenu',
|
|
110
|
+
'notify',
|
|
111
|
+
'setTabData',
|
|
112
|
+
'errors',
|
|
113
|
+
'sort_desc',
|
|
114
|
+
'querySelector',
|
|
115
|
+
'thumbnail_field',
|
|
116
|
+
'details',
|
|
117
|
+
'option',
|
|
118
|
+
'ConfigTabValues',
|
|
119
|
+
'define',
|
|
120
|
+
'meta_generator',
|
|
121
|
+
'grid-',
|
|
122
|
+
'ConfigTab',
|
|
123
|
+
'stringify',
|
|
124
|
+
'menuId',
|
|
125
|
+
'parse',
|
|
126
|
+
'map',
|
|
127
|
+
'form',
|
|
128
|
+
'filters',
|
|
129
|
+
'sortRecordByField',
|
|
130
|
+
'menuName',
|
|
131
|
+
'63183mzmzzA',
|
|
132
|
+
'icon',
|
|
133
|
+
'params',
|
|
134
|
+
'797876JnPSVb',
|
|
135
|
+
'length',
|
|
136
|
+
'grid_config',
|
|
137
|
+
'88312VJWXnD',
|
|
138
|
+
'getState',
|
|
139
|
+
'dispatchEvent',
|
|
140
|
+
'thumbnail',
|
|
141
|
+
'tLabel',
|
|
142
|
+
'enc',
|
|
143
|
+
'button_config',
|
|
144
|
+
'sort',
|
|
145
|
+
'sort_rank',
|
|
146
|
+
'lifecycle',
|
|
147
|
+
'convertFirstCharUpperCase'
|
|
148
|
+
]
|
|
149
|
+
a0_0x51a8 = function () {
|
|
150
|
+
return _0x487c7a
|
|
151
|
+
}
|
|
152
|
+
return a0_0x51a8()
|
|
153
|
+
}
|
|
154
|
+
import { CommonButtonStyles } from '@operato/styles'
|
|
155
|
+
function a0_0x1324(_0x1b54ba, _0x36f89f) {
|
|
156
|
+
const _0x51a842 = a0_0x51a8()
|
|
157
|
+
return (
|
|
158
|
+
(a0_0x1324 = function (_0x1324a7, _0x2f9c6f) {
|
|
159
|
+
_0x1324a7 = _0x1324a7 - 0xf5
|
|
160
|
+
let _0x39e5ec = _0x51a842[_0x1324a7]
|
|
161
|
+
return _0x39e5ec
|
|
162
|
+
}),
|
|
163
|
+
a0_0x1324(_0x1b54ba, _0x36f89f)
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
import { ButtonConfigTabMixin } from './button-config-tab-mixin'
|
|
167
|
+
import { MenuConfigTabMixin } from './menu-config-tab-mixin'
|
|
168
|
+
import { SearchConfigTabMixin } from './search-config-tab-mixin'
|
|
169
|
+
import { GridConfigTabMixin } from './grid-config-tab-mixin'
|
|
170
|
+
import { ColumnConfigTabMixin } from './column-config-tab-mixin'
|
|
171
|
+
import { GraphQlConfigTabMixin } from './graphql-config-tab-mixin'
|
|
172
|
+
import { FormConfigTabMixin } from './form-config-tab-mixin'
|
|
173
|
+
import { TabConfigTabMixin } from './tab-config-tab-mixin'
|
|
174
|
+
import { EtcConfigTabMixin } from './etc-config-tab-mixin'
|
|
175
|
+
import { TermsUtil } from '@things-factory/meta-ui/client/utils/terms-util'
|
|
176
|
+
import { MetaApi } from '@things-factory/meta-ui/client/utils/meta-api'
|
|
177
|
+
import { filter, merge } from 'lodash'
|
|
178
|
+
import { MetaCrypto } from '@things-factory/meta-ui/client/utils/meta-crypto'
|
|
179
|
+
class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
180
|
+
GraphQlConfigTabMixin(
|
|
181
|
+
GridConfigTabMixin(
|
|
182
|
+
ColumnConfigTabMixin(
|
|
183
|
+
ButtonConfigTabMixin(
|
|
184
|
+
SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(localize(i18next)(PageView)))))
|
|
185
|
+
)
|
|
186
|
+
)
|
|
187
|
+
)
|
|
188
|
+
)
|
|
189
|
+
) {
|
|
190
|
+
static get [a0_0x43554f(0x126)]() {
|
|
191
|
+
return [
|
|
192
|
+
css`
|
|
2
193
|
:host {
|
|
3
194
|
display: flex;
|
|
4
195
|
flex-direction: column;
|
|
@@ -18,14 +209,14 @@ const a0_0x43554f=a0_0x1324;(function(_0x520237,_0x115a7f){const _0x1b2521=a0_0x
|
|
|
18
209
|
padding-bottom: var(--grist-title-with-grid-padding);
|
|
19
210
|
border-bottom: var(--subtitle-border-bottom);
|
|
20
211
|
}
|
|
21
|
-
|
|
212
|
+
|
|
22
213
|
h2 mwc-icon {
|
|
23
214
|
vertical-align: middle;
|
|
24
215
|
margin: var(--grist-title-icon-margin);
|
|
25
216
|
font-size: var(--grist-title-icon-size);
|
|
26
217
|
color: var(--grist-title-icon-color);
|
|
27
218
|
}
|
|
28
|
-
|
|
219
|
+
|
|
29
220
|
.tabs {
|
|
30
221
|
display: flex;
|
|
31
222
|
}
|
|
@@ -45,7 +236,7 @@ const a0_0x43554f=a0_0x1324;(function(_0x520237,_0x115a7f){const _0x1b2521=a0_0x
|
|
|
45
236
|
box-shadow: 2px -2px 2px 0px rgba(0, 0, 0, 0.15);
|
|
46
237
|
opacity: 1;
|
|
47
238
|
font-weight: bold;
|
|
48
|
-
}
|
|
239
|
+
}
|
|
49
240
|
.content-container {
|
|
50
241
|
flex: 1;
|
|
51
242
|
display: flex;
|
|
@@ -58,8 +249,8 @@ const a0_0x43554f=a0_0x1324;(function(_0x520237,_0x115a7f){const _0x1b2521=a0_0x
|
|
|
58
249
|
overflow: auto;
|
|
59
250
|
}
|
|
60
251
|
.tab-contents {
|
|
61
|
-
display:flex;
|
|
62
|
-
flex:1;
|
|
252
|
+
display: flex;
|
|
253
|
+
flex: 1;
|
|
63
254
|
flex-direction: column;
|
|
64
255
|
overflow-x: overlay;
|
|
65
256
|
background-color: var(--main-section-background-color);
|
|
@@ -109,27 +300,27 @@ const a0_0x43554f=a0_0x1324;(function(_0x520237,_0x115a7f){const _0x1b2521=a0_0x
|
|
|
109
300
|
label {
|
|
110
301
|
display: flex;
|
|
111
302
|
flex-direction: column;
|
|
112
|
-
|
|
303
|
+
|
|
113
304
|
font: var(--label-font);
|
|
114
305
|
color: var(--label-color);
|
|
115
|
-
}
|
|
116
|
-
input[type=checkbox]{
|
|
117
|
-
min-width:25px
|
|
118
306
|
}
|
|
119
|
-
input[type=
|
|
120
|
-
min-width:25px
|
|
307
|
+
input[type='checkbox'] {
|
|
308
|
+
min-width: 25px;
|
|
309
|
+
}
|
|
310
|
+
input[type='radio'] {
|
|
311
|
+
min-width: 25px;
|
|
121
312
|
}
|
|
122
313
|
select {
|
|
123
314
|
flex: 1;
|
|
124
315
|
}
|
|
125
|
-
|
|
316
|
+
|
|
126
317
|
select {
|
|
127
318
|
border: 0;
|
|
128
319
|
border-bottom: var(--border-dark-color);
|
|
129
320
|
padding: var(--input-padding);
|
|
130
321
|
font: var(--input-font);
|
|
131
322
|
color: var(--primary-text-color);
|
|
132
|
-
|
|
323
|
+
|
|
133
324
|
max-height: 35px;
|
|
134
325
|
}
|
|
135
326
|
select:focus {
|
|
@@ -140,25 +331,326 @@ const a0_0x43554f=a0_0x1324;(function(_0x520237,_0x115a7f){const _0x1b2521=a0_0x
|
|
|
140
331
|
overflow-y: auto;
|
|
141
332
|
flex: 1;
|
|
142
333
|
}
|
|
143
|
-
|
|
144
|
-
|
|
334
|
+
`
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
static get [a0_0x43554f(0x150)]() {
|
|
338
|
+
return {
|
|
339
|
+
menuId: String,
|
|
340
|
+
menuName: String,
|
|
341
|
+
metaTemplate: Object,
|
|
342
|
+
currentTabKey: String,
|
|
343
|
+
tabData: Object,
|
|
344
|
+
dataStorage: Object,
|
|
345
|
+
viewMenuData: Object,
|
|
346
|
+
afterSetFieldsConfig: Object,
|
|
347
|
+
skipFieldsConfig: Object,
|
|
348
|
+
viewGraphqlData: Object,
|
|
349
|
+
gridPageOptions: Array,
|
|
350
|
+
gridViewModes: Array,
|
|
351
|
+
viewGridData: Object,
|
|
352
|
+
columnTabGridConfig: Object,
|
|
353
|
+
viewColumnData: Array,
|
|
354
|
+
buttonTabGridConfig: Object,
|
|
355
|
+
viewButtonData: Array,
|
|
356
|
+
searchTabGridConfig: Object,
|
|
357
|
+
viewSearchData: Array
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
get [a0_0x43554f(0x159)]() {
|
|
361
|
+
const _0x2771b0 = a0_0x43554f
|
|
362
|
+
return {
|
|
363
|
+
title: TermsUtil[_0x2771b0(0x146)](_0x2771b0(0x107)),
|
|
364
|
+
actions: [
|
|
365
|
+
{
|
|
366
|
+
title: TermsUtil[_0x2771b0(0x13c)](_0x2771b0(0x15c)),
|
|
367
|
+
action: this[_0x2771b0(0x15c)][_0x2771b0(0x123)](this),
|
|
368
|
+
...CommonButtonStyles[_0x2771b0(0x15c)]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
title: TermsUtil['tButton'](_0x2771b0(0x157)),
|
|
372
|
+
action: this[_0x2771b0(0xfc)][_0x2771b0(0x123)](this),
|
|
373
|
+
...CommonButtonStyles['back']
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
title: TermsUtil[_0x2771b0(0x13c)](_0x2771b0(0x162)),
|
|
377
|
+
action: this['refresh']['bind'](this),
|
|
378
|
+
...CommonButtonStyles['refresh']
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
[a0_0x43554f(0x161)](_0x4ce017, _0x3a2e0f) {
|
|
384
|
+
const _0x13c631 = a0_0x43554f
|
|
385
|
+
let _0x5caf65 = _0x4ce017[_0x13c631(0x12c)]
|
|
386
|
+
;(_0x5caf65['records'] = _0x5caf65[_0x13c631(0x12f)][_0x13c631(0x13e)](
|
|
387
|
+
_0x18e79f => _0x18e79f['id'] != _0x3a2e0f['id']
|
|
388
|
+
)),
|
|
389
|
+
(_0x4ce017['data'] = _0x5caf65)
|
|
390
|
+
}
|
|
391
|
+
async [a0_0x43554f(0x15c)]() {
|
|
392
|
+
const _0x30cd98 = a0_0x43554f
|
|
393
|
+
if (0x0 == store[_0x30cd98(0x119)]()[_0x30cd98(0x15b)]['studioPermission'])
|
|
394
|
+
return void document[_0x30cd98(0x11a)](
|
|
395
|
+
new CustomEvent(_0x30cd98(0xfd), {
|
|
396
|
+
detail: { level: _0x30cd98(0x165), message: i18next['t'](_0x30cd98(0x14a)) }
|
|
397
|
+
})
|
|
398
|
+
)
|
|
399
|
+
if (
|
|
400
|
+
(
|
|
401
|
+
await client[_0x30cd98(0x141)]({
|
|
402
|
+
query: a0_0x3d3d25`
|
|
145
403
|
query ($id: String!) {
|
|
146
404
|
studioTemplateIsOverLimit(id: $id)
|
|
147
405
|
}
|
|
148
|
-
`,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
406
|
+
`,
|
|
407
|
+
variables: { id: this[_0x30cd98(0x10b)] }
|
|
408
|
+
})
|
|
409
|
+
)[_0x30cd98(0xff)]
|
|
410
|
+
)
|
|
411
|
+
return
|
|
412
|
+
let _0xc3621f = {},
|
|
413
|
+
_0x586a26 = {}
|
|
414
|
+
Object[_0x30cd98(0x134)](this[_0x30cd98(0x156)])[_0x30cd98(0x168)](_0x460173 => {
|
|
415
|
+
const _0x475554 = _0x30cd98
|
|
416
|
+
let _0x3c6748 = this[_0x475554(0x122)](_0x460173)
|
|
417
|
+
;(_0xc3621f[_0x460173] = this[_0x475554(0xf7) + _0x3c6748 + 'ConfigTabValues']()),
|
|
418
|
+
(_0x586a26 = merge(_0x586a26, _0xc3621f[_0x460173]))
|
|
419
|
+
}),
|
|
420
|
+
(_0x586a26 = JSON[_0x30cd98(0x10a)](_0x586a26)),
|
|
421
|
+
(_0x586a26 = MetaCrypto[_0x30cd98(0x11d)](_0x586a26)),
|
|
422
|
+
(await MetaApi[_0x30cd98(0x163)](_0x30cd98(0x148), [
|
|
423
|
+
{ id: this[_0x30cd98(0x10b)], template: _0x586a26, cuFlag: 'M' }
|
|
424
|
+
])) && (await this[_0x30cd98(0x12b)]())
|
|
425
|
+
}
|
|
426
|
+
['clear']() {
|
|
427
|
+
const _0x7f3395 = a0_0x43554f
|
|
428
|
+
this[_0x7f3395(0xfe)](),
|
|
429
|
+
(this[_0x7f3395(0x124)] = {
|
|
430
|
+
menu: {},
|
|
431
|
+
graphql: {},
|
|
432
|
+
button: [],
|
|
433
|
+
column: [],
|
|
434
|
+
grid: {},
|
|
435
|
+
search: [],
|
|
436
|
+
form: [],
|
|
437
|
+
tab: [],
|
|
438
|
+
etc: {}
|
|
439
|
+
}),
|
|
440
|
+
Object[_0x7f3395(0x134)](this[_0x7f3395(0x156)])[_0x7f3395(0x168)](_0x5aa740 => {
|
|
441
|
+
const _0x32ea3d = _0x7f3395
|
|
442
|
+
let _0x50cdfa = this[_0x32ea3d(0x122)](_0x5aa740)
|
|
443
|
+
if (this[_0x32ea3d(0x14c) + _0x50cdfa + _0x32ea3d(0x105)])
|
|
444
|
+
return this['set' + _0x50cdfa + 'ConfigTabValues'](this[_0x32ea3d(0x124)][_0x5aa740])
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
async [a0_0x43554f(0x162)]() {
|
|
448
|
+
const _0x3ddc23 = a0_0x43554f
|
|
449
|
+
await this[_0x3ddc23(0x12b)]()
|
|
450
|
+
}
|
|
451
|
+
[a0_0x43554f(0xfc)]() {
|
|
452
|
+
const _0x226736 = a0_0x43554f
|
|
453
|
+
history[_0x226736(0x157)]()
|
|
454
|
+
}
|
|
455
|
+
async [a0_0x43554f(0x12b)]() {
|
|
456
|
+
const _0x799651 = a0_0x43554f
|
|
457
|
+
var { menuId: _0xee112c = '' } = this[_0x799651(0x121)]?.[_0x799651(0x114)]
|
|
458
|
+
? this[_0x799651(0x121)][_0x799651(0x114)]
|
|
459
|
+
: {}
|
|
460
|
+
if (((this[_0x799651(0x10b)] = _0xee112c), !_0xee112c || '' == _0xee112c)) return void this[_0x799651(0x14b)]()
|
|
461
|
+
let _0x55c88c = await MetaApi['findOne'](
|
|
462
|
+
_0x799651(0x13f),
|
|
463
|
+
_0xee112c,
|
|
464
|
+
'\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'
|
|
465
|
+
)
|
|
466
|
+
if (_0x55c88c) {
|
|
467
|
+
try {
|
|
468
|
+
JSON[_0x799651(0x10c)](MetaCrypto[_0x799651(0x149)](_0x55c88c[_0x799651(0xfa)]))
|
|
469
|
+
} catch (_0x5b69b6) {
|
|
470
|
+
return
|
|
471
|
+
}
|
|
472
|
+
;(this[_0x799651(0x111)] = TermsUtil[_0x799651(0x12a)](_0x55c88c['name'])),
|
|
473
|
+
(this[_0x799651(0xfb)] = _0x55c88c[_0x799651(0xfa)]
|
|
474
|
+
? JSON['parse'](MetaCrypto['dec'](_0x55c88c[_0x799651(0xfa)]))
|
|
475
|
+
: {})
|
|
476
|
+
var {
|
|
477
|
+
menu: _0x22775f = {},
|
|
478
|
+
gql: _0x1696e0 = {},
|
|
479
|
+
button: _0x5bfb08 = [],
|
|
480
|
+
grid_column: _0x53edfe = [],
|
|
481
|
+
grid: _0x28c582 = {},
|
|
482
|
+
search: _0x27b2bc = [],
|
|
483
|
+
form: _0x2ab758 = [],
|
|
484
|
+
tab: _0x1de8a1 = [],
|
|
485
|
+
etc: _0x1c2545 = {}
|
|
486
|
+
} = this[_0x799651(0xfb)] ? this['metaTemplate'] : {}
|
|
487
|
+
this[_0x799651(0xfe)](),
|
|
488
|
+
(this['dataStorage'] = {}),
|
|
489
|
+
(this[_0x799651(0x124)][_0x799651(0x13f)] = _0x22775f),
|
|
490
|
+
(this['dataStorage'][_0x799651(0x12e)] = _0x1696e0),
|
|
491
|
+
(this[_0x799651(0x124)][_0x799651(0x128)] = _0x28c582),
|
|
492
|
+
(this['dataStorage'][_0x799651(0x10e)] = _0x2ab758),
|
|
493
|
+
(this[_0x799651(0x124)][_0x799651(0x12d)] = _0x1de8a1),
|
|
494
|
+
(this[_0x799651(0x124)]['etc'] = _0x1c2545),
|
|
495
|
+
(_0x28c582['option']?.[_0x799651(0x139)] || [])[_0x799651(0x168)]((_0x919f99, _0x168426) => {
|
|
496
|
+
const _0x5b458b = _0x799651
|
|
497
|
+
_0x919f99[_0x5b458b(0x136)] = 0xa * (_0x168426 + 0x1)
|
|
498
|
+
}),
|
|
499
|
+
(this['dataStorage']['column'] = _0x53edfe[_0x799651(0x10d)](_0x2afcf1 => {
|
|
500
|
+
const _0x359def = _0x799651
|
|
501
|
+
let _0x436f74 = (_0x28c582[_0x359def(0x104)]?.[_0x359def(0x139)] || [])[_0x359def(0x13e)](
|
|
502
|
+
_0x391aa7 => _0x391aa7[_0x359def(0x169)] == _0x2afcf1[_0x359def(0x169)]
|
|
503
|
+
)
|
|
504
|
+
return (
|
|
505
|
+
_0x436f74 && _0x436f74[_0x359def(0x116)] > 0x0
|
|
506
|
+
? ((_0x2afcf1['sort_rank'] = _0x436f74[0x0][_0x359def(0x136)]),
|
|
507
|
+
(_0x2afcf1[_0x359def(0x100)] = !!_0x436f74[0x0][_0x359def(0x155)] && _0x436f74[0x0][_0x359def(0x155)]))
|
|
508
|
+
: (_0x2afcf1[_0x359def(0x120)] = 0x0),
|
|
509
|
+
(_0x2afcf1[_0x359def(0x132)] = (_0x28c582[_0x359def(0xf5)]?.[_0x359def(0x138)] || [])['includes'](
|
|
510
|
+
_0x2afcf1['name']
|
|
511
|
+
)),
|
|
512
|
+
(_0x2afcf1['detail_field'] = (_0x28c582[_0x359def(0xf5)]?.[_0x359def(0x103)] || [])[_0x359def(0x127)](
|
|
513
|
+
_0x2afcf1[_0x359def(0x169)]
|
|
514
|
+
)),
|
|
515
|
+
(_0x2afcf1[_0x359def(0x102)] = _0x28c582['list']?.[_0x359def(0x11b)] == _0x2afcf1[_0x359def(0x169)]),
|
|
516
|
+
_0x2afcf1
|
|
517
|
+
)
|
|
518
|
+
})),
|
|
519
|
+
_0x27b2bc['push'](
|
|
520
|
+
...(_0x1696e0[_0x799651(0x141)]?.[_0x799651(0x10f)] || [])[_0x799651(0x10d)](
|
|
521
|
+
_0x37c36d => ((_0x37c36d[_0x799651(0x130)] = !0x0), _0x37c36d)
|
|
522
|
+
)
|
|
523
|
+
),
|
|
524
|
+
(this[_0x799651(0x124)][_0x799651(0x16a)] = _0x27b2bc),
|
|
525
|
+
_0x5bfb08[_0x799651(0x143)](
|
|
526
|
+
...(_0x28c582[_0x799651(0x133)] || [])[_0x799651(0x10d)](
|
|
527
|
+
_0x192254 => (
|
|
528
|
+
(_0x192254['type'] = _0x799651(0x108) + _0x192254[_0x799651(0x15e)]),
|
|
529
|
+
(_0x192254['style'] = _0x192254[_0x799651(0x113)]),
|
|
530
|
+
_0x192254
|
|
531
|
+
)
|
|
532
|
+
)
|
|
533
|
+
),
|
|
534
|
+
(this['dataStorage'][_0x799651(0x133)] = _0x5bfb08),
|
|
535
|
+
Object[_0x799651(0x134)](this[_0x799651(0x156)])[_0x799651(0x168)](_0x30ebe3 => {
|
|
536
|
+
const _0x2383f9 = _0x799651
|
|
537
|
+
let _0x230ff2 = this['convertFirstCharUpperCase'](_0x30ebe3)
|
|
538
|
+
if (this[_0x2383f9(0x14c) + _0x230ff2 + 'ConfigTabValues'])
|
|
539
|
+
return this[_0x2383f9(0x14c) + _0x230ff2 + _0x2383f9(0x105)](this[_0x2383f9(0x124)][_0x30ebe3])
|
|
540
|
+
})
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
async [a0_0x43554f(0x160)]() {
|
|
544
|
+
const _0x204ea8 = a0_0x43554f
|
|
545
|
+
this[_0x204ea8(0xfe)]()
|
|
546
|
+
let _0x70545a = Object[_0x204ea8(0x134)](this['tabData'])
|
|
547
|
+
for (var _0x5b2af7 = 0x0; _0x5b2af7 < _0x70545a[_0x204ea8(0x116)]; _0x5b2af7++) {
|
|
548
|
+
let _0x58cc6a = this[_0x204ea8(0x122)](_0x70545a[_0x5b2af7])
|
|
549
|
+
this[_0x204ea8(0x14c) + _0x58cc6a + 'ConfigTabConfig'] &&
|
|
550
|
+
(await this[_0x204ea8(0x14c) + _0x58cc6a + _0x204ea8(0x158)]())
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
async ['pageUpdated'](_0x4c2222, _0x24d425, _0x43827d) {
|
|
554
|
+
const _0x3f8cdd = a0_0x43554f
|
|
555
|
+
this[_0x3f8cdd(0xf8)]
|
|
556
|
+
? (this['setTabData'](), await this[_0x3f8cdd(0x12b)](), this[_0x3f8cdd(0xfe)]())
|
|
557
|
+
: this[_0x3f8cdd(0x14b)]()
|
|
558
|
+
}
|
|
559
|
+
['setTabData']() {
|
|
560
|
+
const _0x384310 = a0_0x43554f
|
|
561
|
+
this[_0x384310(0x156)] ||
|
|
562
|
+
(this[_0x384310(0x156)] = {
|
|
563
|
+
menu: TermsUtil[_0x384310(0x11c)](_0x384310(0x135)),
|
|
564
|
+
graphql: TermsUtil[_0x384310(0x11c)](_0x384310(0x142)),
|
|
565
|
+
grid: TermsUtil[_0x384310(0x11c)](_0x384310(0x117)),
|
|
566
|
+
column: TermsUtil['tLabel']('column_config'),
|
|
567
|
+
button: TermsUtil[_0x384310(0x11c)](_0x384310(0x11e)),
|
|
568
|
+
search: TermsUtil[_0x384310(0x11c)](_0x384310(0x13d)),
|
|
569
|
+
form: TermsUtil[_0x384310(0x11c)](_0x384310(0x129)),
|
|
570
|
+
tab: TermsUtil[_0x384310(0x11c)]('tab_config'),
|
|
571
|
+
etc: TermsUtil[_0x384310(0x11c)]('etc_config')
|
|
572
|
+
})
|
|
573
|
+
}
|
|
574
|
+
['render']() {
|
|
575
|
+
const _0x254ba4 = a0_0x43554f
|
|
576
|
+
this[_0x254ba4(0x15a)] || (this[_0x254ba4(0x15a)] = 'menu'), this[_0x254ba4(0xfe)]()
|
|
577
|
+
let _0x1c9dc5 = Object[_0x254ba4(0x134)](this[_0x254ba4(0x156)])
|
|
578
|
+
return (
|
|
579
|
+
this['tabData'][this[_0x254ba4(0x15a)]] ? this[_0x254ba4(0x15a)] : _0x1c9dc5[0x0],
|
|
580
|
+
html`
|
|
581
|
+
<h1>${this[_0x254ba4(0x111)]}</h1>
|
|
582
|
+
<div class="tabs">
|
|
583
|
+
${_0x1c9dc5[_0x254ba4(0x10d)](_0x5c5a1c => {
|
|
584
|
+
const _0x410670 = _0x254ba4
|
|
585
|
+
let _0x50b9c3 = this[_0x410670(0x156)][_0x5c5a1c]
|
|
586
|
+
return html`
|
|
587
|
+
<div
|
|
588
|
+
class="tab"
|
|
589
|
+
?activate="${_0x5c5a1c === this[_0x410670(0x15a)]}"
|
|
590
|
+
@click="${() => (this[_0x410670(0x15a)] = _0x5c5a1c)}"
|
|
591
|
+
>
|
|
592
|
+
<span>${_0x50b9c3}</span>
|
|
161
593
|
</div>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
594
|
+
`
|
|
595
|
+
})}
|
|
596
|
+
</div>
|
|
597
|
+
<div class="content-container">
|
|
598
|
+
${_0x1c9dc5[_0x254ba4(0x10d)](_0x59b56b => {
|
|
599
|
+
const _0x238fe7 = _0x254ba4
|
|
600
|
+
let _0x1ba7fc = _0x238fe7(0x167)
|
|
601
|
+
return (
|
|
602
|
+
_0x59b56b == this['currentTabKey'] && (_0x1ba7fc = 'display:flex'),
|
|
603
|
+
html` <div class="tab-contents" style="${_0x1ba7fc}">${this[_0x238fe7(0x144)](_0x59b56b)}</div> `
|
|
604
|
+
)
|
|
605
|
+
})}
|
|
606
|
+
</div>
|
|
607
|
+
`
|
|
608
|
+
)
|
|
609
|
+
}
|
|
610
|
+
['getConfigTab'](_0x244c70) {
|
|
611
|
+
const _0x248a4c = a0_0x43554f
|
|
612
|
+
let _0x394fb8 = this[_0x248a4c(0x122)](_0x244c70)
|
|
613
|
+
return this['render' + _0x394fb8 + _0x248a4c(0x109)] ? this[_0x248a4c(0x164) + _0x394fb8 + 'ConfigTab']() : html``
|
|
614
|
+
}
|
|
615
|
+
[a0_0x43554f(0x122)](_0x1a613f) {
|
|
616
|
+
const _0x2c732f = a0_0x43554f
|
|
617
|
+
return _0x1a613f['charAt'](0x0)['toUpperCase']() + _0x1a613f[_0x2c732f(0x151)](0x1)
|
|
618
|
+
}
|
|
619
|
+
[a0_0x43554f(0x154)](_0x57bd1b) {
|
|
620
|
+
const _0x3d22a1 = a0_0x43554f
|
|
621
|
+
return this[_0x3d22a1(0x153)][_0x3d22a1(0x101)]('#' + _0x57bd1b)
|
|
622
|
+
}
|
|
623
|
+
[a0_0x43554f(0xf6)](_0x4f0856) {
|
|
624
|
+
const _0x4a8257 = a0_0x43554f
|
|
625
|
+
let _0x5adf94 = this[_0x4a8257(0x153)][_0x4a8257(0x101)]('#' + _0x4f0856)
|
|
626
|
+
if (!_0x5adf94) return
|
|
627
|
+
let _0x193294 = ''
|
|
628
|
+
if ('select' == _0x5adf94[_0x4a8257(0x13a)]['toLowerCase']()) {
|
|
629
|
+
if (!_0x5adf94[_0x4a8257(0x152)] || 0x0 == _0x5adf94['options']['length']) return
|
|
630
|
+
_0x193294 = _0x5adf94['options'][_0x5adf94[_0x4a8257(0x140)]][_0x4a8257(0x145)]
|
|
631
|
+
} else {
|
|
632
|
+
if (_0x4a8257(0x131) == _0x5adf94[_0x4a8257(0x13a)][_0x4a8257(0x125)]()) {
|
|
633
|
+
if (!_0x5adf94[_0x4a8257(0x12c)]) return
|
|
634
|
+
if (!_0x5adf94[_0x4a8257(0x12c)][_0x4a8257(0x12f)]) return
|
|
635
|
+
if (0x0 == _0x5adf94[_0x4a8257(0x12c)][_0x4a8257(0x12f)]['length']) return
|
|
636
|
+
return _0x5adf94[_0x4a8257(0x12c)]['records']
|
|
637
|
+
}
|
|
638
|
+
if (_0x4a8257(0x14d) == _0x5adf94[_0x4a8257(0x15e)][_0x4a8257(0x125)]()) {
|
|
639
|
+
let _0x31a816 = this[_0x4a8257(0x153)]['querySelector']('#' + _0x4f0856 + _0x4a8257(0x14f))
|
|
640
|
+
if (!_0x31a816) return
|
|
641
|
+
return _0x31a816['value']
|
|
642
|
+
}
|
|
643
|
+
_0x193294 = _0x5adf94[_0x4a8257(0x145)]
|
|
644
|
+
}
|
|
645
|
+
return _0x193294 && '' != _0x193294 ? _0x193294 : void 0x0
|
|
646
|
+
}
|
|
647
|
+
[a0_0x43554f(0x15d)](_0x51466b) {
|
|
648
|
+
const _0x1ce8c9 = a0_0x43554f
|
|
649
|
+
return _0x51466b ? this[_0x1ce8c9(0x110)](_0x51466b, _0x1ce8c9(0x136)) : _0x51466b
|
|
650
|
+
}
|
|
651
|
+
[a0_0x43554f(0x110)](_0x1c7c84, _0x25bb2f) {
|
|
652
|
+
const _0x5ebd8f = a0_0x43554f
|
|
653
|
+
return _0x1c7c84[_0x5ebd8f(0x11f)]((_0x11bf24, _0x11db18) => _0x11bf24[_0x25bb2f] - _0x11db18[_0x25bb2f]), _0x1c7c84
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
customElements[a0_0x43554f(0x106)](a0_0x43554f(0x13b), MetaGeneratorPage)
|