@things-factory/operato-tools 6.0.27 → 6.0.32
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/actions/main.js +1 -1
- package/client/pages/generator/button-config-tab-mixin.js +5 -367
- package/client/pages/generator/column-config-tab-mixin.js +4 -471
- package/client/pages/generator/etc-config-tab-mixin.js +4 -166
- package/client/pages/generator/form-config-tab-mixin.js +4 -210
- package/client/pages/generator/graphql-config-tab-mixin.js +66 -425
- package/client/pages/generator/grid-config-tab-mixin.js +25 -273
- package/client/pages/generator/menu-config-tab-mixin.js +30 -169
- package/client/pages/generator/meta-generator-page.js +32 -524
- package/client/pages/generator/search-config-tab-mixin.js +4 -218
- package/client/pages/generator/tab-config-tab-mixin.js +4 -269
- package/client/pages/main.js +7 -78
- package/client/reducers/main.js +1 -1
- package/package.json +4 -4
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/tool-entity/create-menu.js +1 -1
- package/server/service/tool-entity/create-service.js +1 -1
- package/server/service/tool-secret/tool-permission.js +1 -1
- package/server/service/tool-secret/tool-resolver.js +1 -1
|
@@ -1,195 +1,4 @@
|
|
|
1
|
-
const
|
|
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`
|
|
1
|
+
const a0_0x274070=a0_0x3353;(function(_0x1ebc27,_0x1b18ee){const _0x379047=a0_0x3353,_0x121cc8=_0x1ebc27();while(!![]){try{const _0x2b2954=parseInt(_0x379047(0x17d))/0x1+-parseInt(_0x379047(0x1c5))/0x2+parseInt(_0x379047(0x1e0))/0x3*(parseInt(_0x379047(0x1b8))/0x4)+parseInt(_0x379047(0x1a0))/0x5*(-parseInt(_0x379047(0x197))/0x6)+parseInt(_0x379047(0x1df))/0x7+-parseInt(_0x379047(0x1c7))/0x8+parseInt(_0x379047(0x1ce))/0x9;if(_0x2b2954===_0x1b18ee)break;else _0x121cc8['push'](_0x121cc8['shift']());}catch(_0x5f331f){_0x121cc8['push'](_0x121cc8['shift']());}}}(a0_0x14a8,0xd3717));function a0_0x14a8(){const _0x12d1ad=['enc','select','notify','radio','back','ConfigTabConfig','value','rank','1759838lzotlI','initData','8495032UzZICZ','log','dec','desc','stringify','findOne','grid-','13707189QtOhEN','styles','tab_config','etc','menuId','sortRecordByRank','sorters','setTabData','menu_config','getConfigTab','tagName','dispatchEvent','\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','column','get','sort','name','3010798OxTXxm','348jHQIgS','querySelector','pageInitialized','grid','fields','form','updateMultiple','icon','getState','refresh','1034630sTMZnL','deleteRow','clear','tButton','rep_field','type','graphql_config','data','define','search_config','details','records','keys','push','list','grid_config','tab','backToMenu','dirtyData','active','button_config','length','convertFirstCharUpperCase','save','dataStorage','menu','120DgItjJ','tTitle','shadowRoot','metaTemplate','template','currentTabKey','style','option','parse','397295ORNOWS','menuName','sort_rank','error.invalid\x20license\x20key','bind',':checked','params','options','set','map','filter','meta_generator','ConfigTabValues','error','toUpperCase','render','detail_field','sort_desc','meta-generator-page','form_config','lifecycle','tLabel','getElementValueById','includes','48596ijKIAk','forEach','tabData','slice','toLowerCase'];a0_0x14a8=function(){return _0x12d1ad;};return a0_0x14a8();}import a0_0xc06159 from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x3353(_0x50098a,_0x41ff21){const _0x14a863=a0_0x14a8();return a0_0x3353=function(_0x33531c,_0x2589eb){_0x33531c=_0x33531c-0x17a;let _0x28caa1=_0x14a863[_0x33531c];return _0x28caa1;},a0_0x3353(_0x50098a,_0x41ff21);}import{PageView}from'@things-factory/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';import{GridConfigTabMixin}from'./grid-config-tab-mixin';import{ColumnConfigTabMixin}from'./column-config-tab-mixin';import{GraphQlConfigTabMixin}from'./graphql-config-tab-mixin';import{FormConfigTabMixin}from'./form-config-tab-mixin';import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{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(localize(i18next)(PageView)))))))))){static get[a0_0x274070(0x1cf)](){return[css`
|
|
193
2
|
:host {
|
|
194
3
|
display: flex;
|
|
195
4
|
flex-direction: column;
|
|
@@ -209,14 +18,14 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
|
209
18
|
padding-bottom: var(--grist-title-with-grid-padding);
|
|
210
19
|
border-bottom: var(--subtitle-border-bottom);
|
|
211
20
|
}
|
|
212
|
-
|
|
21
|
+
|
|
213
22
|
h2 mwc-icon {
|
|
214
23
|
vertical-align: middle;
|
|
215
24
|
margin: var(--grist-title-icon-margin);
|
|
216
25
|
font-size: var(--grist-title-icon-size);
|
|
217
26
|
color: var(--grist-title-icon-color);
|
|
218
27
|
}
|
|
219
|
-
|
|
28
|
+
|
|
220
29
|
.tabs {
|
|
221
30
|
display: flex;
|
|
222
31
|
}
|
|
@@ -236,7 +45,7 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
|
236
45
|
box-shadow: 2px -2px 2px 0px rgba(0, 0, 0, 0.15);
|
|
237
46
|
opacity: 1;
|
|
238
47
|
font-weight: bold;
|
|
239
|
-
}
|
|
48
|
+
}
|
|
240
49
|
.content-container {
|
|
241
50
|
flex: 1;
|
|
242
51
|
display: flex;
|
|
@@ -249,8 +58,8 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
|
249
58
|
overflow: auto;
|
|
250
59
|
}
|
|
251
60
|
.tab-contents {
|
|
252
|
-
display:
|
|
253
|
-
flex:
|
|
61
|
+
display:flex;
|
|
62
|
+
flex:1;
|
|
254
63
|
flex-direction: column;
|
|
255
64
|
overflow-x: overlay;
|
|
256
65
|
background-color: var(--main-section-background-color);
|
|
@@ -300,27 +109,27 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
|
300
109
|
label {
|
|
301
110
|
display: flex;
|
|
302
111
|
flex-direction: column;
|
|
303
|
-
|
|
112
|
+
|
|
304
113
|
font: var(--label-font);
|
|
305
114
|
color: var(--label-color);
|
|
115
|
+
}
|
|
116
|
+
input[type=checkbox]{
|
|
117
|
+
min-width:25px
|
|
306
118
|
}
|
|
307
|
-
input[type=
|
|
308
|
-
min-width:
|
|
309
|
-
}
|
|
310
|
-
input[type='radio'] {
|
|
311
|
-
min-width: 25px;
|
|
119
|
+
input[type=radio]{
|
|
120
|
+
min-width:25px
|
|
312
121
|
}
|
|
313
122
|
select {
|
|
314
123
|
flex: 1;
|
|
315
124
|
}
|
|
316
|
-
|
|
125
|
+
|
|
317
126
|
select {
|
|
318
127
|
border: 0;
|
|
319
128
|
border-bottom: var(--border-dark-color);
|
|
320
129
|
padding: var(--input-padding);
|
|
321
130
|
font: var(--input-font);
|
|
322
131
|
color: var(--primary-text-color);
|
|
323
|
-
|
|
132
|
+
|
|
324
133
|
max-height: 35px;
|
|
325
134
|
}
|
|
326
135
|
select:focus {
|
|
@@ -331,326 +140,25 @@ class MetaGeneratorPage extends MenuConfigTabMixin(
|
|
|
331
140
|
overflow-y: auto;
|
|
332
141
|
flex: 1;
|
|
333
142
|
}
|
|
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`
|
|
143
|
+
|
|
144
|
+
`];}static get['properties'](){return{'menuId':String,'menuName':String,'metaTemplate':Object,'currentTabKey':String,'tabData':Object,'dataStorage':Object,'viewMenuData':Object,'afterSetFieldsConfig':Object,'skipFieldsConfig':Object,'viewGraphqlData':Object,'gridPageOptions':Array,'gridViewModes':Array,'viewGridData':Object,'columnTabGridConfig':Object,'viewColumnData':Array,'buttonTabGridConfig':Object,'viewButtonData':Array,'searchTabGridConfig':Object,'viewSearchData':Array};}get['context'](){const _0x2032a3=a0_0x274070;return{'title':TermsUtil[_0x2032a3(0x198)](_0x2032a3(0x1ab)),'actions':[{'title':TermsUtil[_0x2032a3(0x180)](_0x2032a3(0x194)),'action':this[_0x2032a3(0x194)][_0x2032a3(0x1a4)](this),...CommonButtonStyles[_0x2032a3(0x194)]},{'title':TermsUtil[_0x2032a3(0x180)]('back'),'action':this[_0x2032a3(0x18e)][_0x2032a3(0x1a4)](this),...CommonButtonStyles[_0x2032a3(0x1c1)]},{'title':TermsUtil[_0x2032a3(0x180)](_0x2032a3(0x17c)),'action':this[_0x2032a3(0x17c)][_0x2032a3(0x1a4)](this),...CommonButtonStyles[_0x2032a3(0x17c)]}]};}[a0_0x274070(0x17e)](_0x706b19,_0x1c4209){const _0x35a78e=a0_0x274070;let _0x33b245=_0x706b19['dirtyData'];_0x33b245[_0x35a78e(0x188)]=_0x33b245[_0x35a78e(0x188)][_0x35a78e(0x1aa)](_0x1bda6d=>_0x1bda6d['id']!=_0x1c4209['id']),_0x706b19[_0x35a78e(0x184)]=_0x33b245;}async[a0_0x274070(0x194)](){const _0x33d488=a0_0x274070;if(0x0==store[_0x33d488(0x17b)]()['operatoTools']['studioPermission'])return void document[_0x33d488(0x1d9)](new CustomEvent(_0x33d488(0x1bf),{'detail':{'level':_0x33d488(0x1ad),'message':i18next['t'](_0x33d488(0x1a3))}}));if((await client['query']({'query':a0_0xc06159`
|
|
403
145
|
query ($id: String!) {
|
|
404
146
|
studioTemplateIsOverLimit(id: $id)
|
|
405
147
|
}
|
|
406
|
-
`,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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>
|
|
148
|
+
`,'variables':{'id':this[_0x33d488(0x1d2)]}}))['errors'])return;let _0x20e469={},_0x3a2af5={};Object['keys'](this[_0x33d488(0x1ba)])['forEach'](_0x33d9f1=>{const _0x4c7743=_0x33d488;let _0x50a485=this[_0x4c7743(0x193)](_0x33d9f1);_0x20e469[_0x33d9f1]=this[_0x4c7743(0x1dc)+_0x50a485+'ConfigTabValues'](),_0x3a2af5=merge(_0x3a2af5,_0x20e469[_0x33d9f1]);}),console[_0x33d488(0x1c8)](_0x3a2af5),_0x3a2af5=JSON[_0x33d488(0x1cb)](_0x3a2af5),_0x3a2af5=MetaCrypto[_0x33d488(0x1bd)](_0x3a2af5),await MetaApi[_0x33d488(0x1e6)]('updateMultipleMenu',[{'id':this['menuId'],'template':_0x3a2af5,'cuFlag':'M'}])&&await this['initData']();}[a0_0x274070(0x17f)](){const _0x9bdf7b=a0_0x274070;this['setTabData'](),this[_0x9bdf7b(0x195)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{}},Object['keys'](this[_0x9bdf7b(0x1ba)])[_0x9bdf7b(0x1b9)](_0x121437=>{const _0x363729=_0x9bdf7b;let _0x589c43=this['convertFirstCharUpperCase'](_0x121437);if(this['set'+_0x589c43+_0x363729(0x1ac)])return this[_0x363729(0x1a8)+_0x589c43+'ConfigTabValues'](this[_0x363729(0x195)][_0x121437]);});}async[a0_0x274070(0x17c)](){const _0x5a4f31=a0_0x274070;await this[_0x5a4f31(0x1c6)]();}['backToMenu'](){const _0x3a51d6=a0_0x274070;history[_0x3a51d6(0x1c1)]();}async[a0_0x274070(0x1c6)](){const _0x345555=a0_0x274070;var {menuId:_0x8c326b=''}=this['lifecycle']?.['params']?this[_0x345555(0x1b4)][_0x345555(0x1a6)]:{};if(this[_0x345555(0x1d2)]=_0x8c326b,!_0x8c326b||''==_0x8c326b)return void this[_0x345555(0x17f)]();let _0x529423=await MetaApi[_0x345555(0x1cc)](_0x345555(0x196),_0x8c326b,_0x345555(0x1da));if(_0x529423){try{JSON[_0x345555(0x19f)](MetaCrypto[_0x345555(0x1c9)](_0x529423[_0x345555(0x19b)]));}catch(_0x1dc82b){return;}this[_0x345555(0x1a1)]=TermsUtil['tMenu'](_0x529423[_0x345555(0x1de)]),this['metaTemplate']=_0x529423[_0x345555(0x19b)]?JSON[_0x345555(0x19f)](MetaCrypto[_0x345555(0x1c9)](_0x529423[_0x345555(0x19b)])):{};var {menu:_0x104d95={},gql:_0x3d61e6={},button:_0x1285a5=[],grid_column:_0x32877d=[],grid:_0x473aa2={},search:_0x2d6d5d=[],form:_0x546cfc=[],tab:_0x3811fb=[],etc:_0x4deedd={}}=this[_0x345555(0x19a)]?this['metaTemplate']:{};this[_0x345555(0x1d5)](),this['dataStorage']={},this[_0x345555(0x195)]['menu']=_0x104d95,this[_0x345555(0x195)]['graphql']=_0x3d61e6,this[_0x345555(0x195)][_0x345555(0x1e3)]=_0x473aa2,this['dataStorage'][_0x345555(0x1e5)]=_0x546cfc,this[_0x345555(0x195)][_0x345555(0x18d)]=_0x3811fb,this[_0x345555(0x195)][_0x345555(0x1d1)]=_0x4deedd,(_0x473aa2[_0x345555(0x19e)]?.['sorters']||[])[_0x345555(0x1b9)]((_0xd14f81,_0x5664ef)=>{const _0x8a42fc=_0x345555;_0xd14f81[_0x8a42fc(0x1c4)]=0xa*(_0x5664ef+0x1);}),this[_0x345555(0x195)][_0x345555(0x1db)]=_0x32877d[_0x345555(0x1a9)](_0x4d620e=>{const _0x4be8d1=_0x345555;let _0x6a3a6c=(_0x473aa2[_0x4be8d1(0x19e)]?.[_0x4be8d1(0x1d4)]||[])[_0x4be8d1(0x1aa)](_0x295689=>_0x295689[_0x4be8d1(0x1de)]==_0x4d620e['name']);return _0x6a3a6c&&_0x6a3a6c[_0x4be8d1(0x192)]>0x0?(_0x4d620e['sort_rank']=_0x6a3a6c[0x0][_0x4be8d1(0x1c4)],_0x4d620e[_0x4be8d1(0x1b1)]=!!_0x6a3a6c[0x0][_0x4be8d1(0x1ca)]&&_0x6a3a6c[0x0]['desc']):_0x4d620e[_0x4be8d1(0x1a2)]=0x0,_0x4d620e[_0x4be8d1(0x181)]=(_0x473aa2[_0x4be8d1(0x18b)]?.[_0x4be8d1(0x1e4)]||[])[_0x4be8d1(0x1b7)](_0x4d620e[_0x4be8d1(0x1de)]),_0x4d620e[_0x4be8d1(0x1b0)]=(_0x473aa2[_0x4be8d1(0x18b)]?.[_0x4be8d1(0x187)]||[])[_0x4be8d1(0x1b7)](_0x4d620e[_0x4be8d1(0x1de)]),_0x4d620e['thumbnail_field']=_0x473aa2[_0x4be8d1(0x18b)]?.['thumbnail']==_0x4d620e[_0x4be8d1(0x1de)],_0x4d620e;}),_0x2d6d5d[_0x345555(0x18a)](...(_0x3d61e6['query']?.['filters']||[])['map'](_0x3c99c3=>(_0x3c99c3['hidden']=!0x0,_0x3c99c3))),this['dataStorage']['search']=_0x2d6d5d,_0x1285a5[_0x345555(0x18a)](...(_0x473aa2['button']||[])[_0x345555(0x1a9)](_0x50233e=>(_0x50233e['type']=_0x345555(0x1cd)+_0x50233e[_0x345555(0x182)],_0x50233e[_0x345555(0x19d)]=_0x50233e[_0x345555(0x17a)],_0x50233e))),this[_0x345555(0x195)]['button']=_0x1285a5,Object[_0x345555(0x189)](this[_0x345555(0x1ba)])[_0x345555(0x1b9)](_0x57d268=>{const _0x33034b=_0x345555;let _0x16279a=this[_0x33034b(0x193)](_0x57d268);if(this[_0x33034b(0x1a8)+_0x16279a+_0x33034b(0x1ac)])return this['set'+_0x16279a+_0x33034b(0x1ac)](this[_0x33034b(0x195)][_0x57d268]);});}}async[a0_0x274070(0x1e2)](){const _0x237a23=a0_0x274070;this[_0x237a23(0x1d5)]();let _0x14c6a2=Object['keys'](this[_0x237a23(0x1ba)]);for(var _0x257f4b=0x0;_0x257f4b<_0x14c6a2[_0x237a23(0x192)];_0x257f4b++){let _0x20c2de=this['convertFirstCharUpperCase'](_0x14c6a2[_0x257f4b]);this['set'+_0x20c2de+_0x237a23(0x1c2)]&&await this[_0x237a23(0x1a8)+_0x20c2de+_0x237a23(0x1c2)]();}}async['pageUpdated'](_0x4ea76b,_0x559f41,_0x390e75){const _0x54374f=a0_0x274070;this[_0x54374f(0x190)]?(this[_0x54374f(0x1d5)](),await this[_0x54374f(0x1c6)](),this['setTabData']()):this[_0x54374f(0x17f)]();}['setTabData'](){const _0x30204c=a0_0x274070;this['tabData']||(this[_0x30204c(0x1ba)]={'menu':TermsUtil['tLabel'](_0x30204c(0x1d6)),'graphql':TermsUtil['tLabel'](_0x30204c(0x183)),'grid':TermsUtil[_0x30204c(0x1b5)](_0x30204c(0x18c)),'column':TermsUtil[_0x30204c(0x1b5)]('column_config'),'button':TermsUtil['tLabel'](_0x30204c(0x191)),'search':TermsUtil[_0x30204c(0x1b5)](_0x30204c(0x186)),'form':TermsUtil['tLabel'](_0x30204c(0x1b3)),'tab':TermsUtil[_0x30204c(0x1b5)](_0x30204c(0x1d0)),'etc':TermsUtil[_0x30204c(0x1b5)]('etc_config')});}['render'](){const _0x5e03e2=a0_0x274070;this['currentTabKey']||(this['currentTabKey']=_0x5e03e2(0x196)),this['setTabData']();let _0x583c9d=Object[_0x5e03e2(0x189)](this['tabData']);return this['tabData'][this['currentTabKey']]?this[_0x5e03e2(0x19c)]:_0x583c9d[0x0],html`
|
|
149
|
+
<h1>${this[_0x5e03e2(0x1a1)]}</h1>
|
|
150
|
+
<div class="tabs">
|
|
151
|
+
${_0x583c9d[_0x5e03e2(0x1a9)](_0x2e33f9=>{const _0x22f04a=_0x5e03e2;let _0x3aeac8=this[_0x22f04a(0x1ba)][_0x2e33f9];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x2e33f9===this[_0x22f04a(0x19c)]}" @click="${()=>this[_0x22f04a(0x19c)]=_0x2e33f9}">
|
|
153
|
+
<span>${_0x3aeac8}</span>
|
|
154
|
+
</div>
|
|
155
|
+
`;})}
|
|
156
|
+
</div>
|
|
157
|
+
<div class="content-container">
|
|
158
|
+
${_0x583c9d['map'](_0x24c526=>{const _0x39486d=_0x5e03e2;let _0x119016='display:none';return _0x24c526==this[_0x39486d(0x19c)]&&(_0x119016='display:flex'),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x119016}">
|
|
160
|
+
${this[_0x39486d(0x1d7)](_0x24c526)}
|
|
593
161
|
</div>
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
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)
|
|
162
|
+
`;})}
|
|
163
|
+
</div>
|
|
164
|
+
`;}[a0_0x274070(0x1d7)](_0xb00450){const _0x4b4c35=a0_0x274070;let _0x4d3699=this[_0x4b4c35(0x193)](_0xb00450);return this[_0x4b4c35(0x1af)+_0x4d3699+'ConfigTab']?this['render'+_0x4d3699+'ConfigTab']():html``;}['convertFirstCharUpperCase'](_0x334c4e){const _0x18869d=a0_0x274070;return _0x334c4e['charAt'](0x0)[_0x18869d(0x1ae)]()+_0x334c4e[_0x18869d(0x1bb)](0x1);}['getElementById'](_0x24396a){const _0x1e5f26=a0_0x274070;return this[_0x1e5f26(0x199)][_0x1e5f26(0x1e1)]('#'+_0x24396a);}[a0_0x274070(0x1b6)](_0x1dc768){const _0x54af08=a0_0x274070;let _0xe5c6c4=this['shadowRoot'][_0x54af08(0x1e1)]('#'+_0x1dc768);if(!_0xe5c6c4)return;let _0x31a63f='';if(_0x54af08(0x1be)==_0xe5c6c4[_0x54af08(0x1d8)][_0x54af08(0x1bc)]()){if(!_0xe5c6c4['options']||0x0==_0xe5c6c4[_0x54af08(0x1a7)][_0x54af08(0x192)])return;_0x31a63f=_0xe5c6c4['options'][_0xe5c6c4['selectedIndex']][_0x54af08(0x1c3)];}else{if('ox-grist'==_0xe5c6c4[_0x54af08(0x1d8)][_0x54af08(0x1bc)]()){if(!_0xe5c6c4[_0x54af08(0x18f)])return;if(!_0xe5c6c4[_0x54af08(0x18f)]['records'])return;if(0x0==_0xe5c6c4[_0x54af08(0x18f)][_0x54af08(0x188)][_0x54af08(0x192)])return;return _0xe5c6c4[_0x54af08(0x18f)]['records'];}if(_0x54af08(0x1c0)==_0xe5c6c4[_0x54af08(0x182)]['toLowerCase']()){let _0x350fc5=this[_0x54af08(0x199)]['querySelector']('#'+_0x1dc768+_0x54af08(0x1a5));if(!_0x350fc5)return;return _0x350fc5[_0x54af08(0x1c3)];}_0x31a63f=_0xe5c6c4[_0x54af08(0x1c3)];}return _0x31a63f&&''!=_0x31a63f?_0x31a63f:void 0x0;}[a0_0x274070(0x1d3)](_0x2257f0){return _0x2257f0?this['sortRecordByField'](_0x2257f0,'rank'):_0x2257f0;}['sortRecordByField'](_0x512bc8,_0x361bf0){const _0x19f747=a0_0x274070;return _0x512bc8[_0x19f747(0x1dd)]((_0x1b1064,_0x22795b)=>_0x1b1064[_0x361bf0]-_0x22795b[_0x361bf0]),_0x512bc8;}}customElements[a0_0x274070(0x185)](a0_0x274070(0x1b2),MetaGeneratorPage);
|