@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.
- package/client/pages/entity/config-entity.js +1015 -40
- package/client/pages/entity/main-menu-selector.js +257 -69
- package/client/pages/loading-page.js +83 -7
- package/client/pages/menu/dynamic-menu-template.js +174 -33
- package/client/pages/menu/dynamic-menu.js +472 -23
- package/client/pages/personalize/personal-column-selector.js +274 -72
- package/package.json +5 -5
|
@@ -1,75 +1,263 @@
|
|
|
1
|
-
const a0_0xa07f05
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
const a0_0xa07f05 = a0_0x129a
|
|
2
|
+
;(function (_0x9585f, _0x25d9b8) {
|
|
3
|
+
const _0xa51234 = a0_0x129a,
|
|
4
|
+
_0x4c5911 = _0x9585f()
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
const _0x4fff4e =
|
|
8
|
+
(parseInt(_0xa51234(0x88)) / 0x1) * (-parseInt(_0xa51234(0x98)) / 0x2) +
|
|
9
|
+
(parseInt(_0xa51234(0x87)) / 0x3) * (parseInt(_0xa51234(0xa0)) / 0x4) +
|
|
10
|
+
(parseInt(_0xa51234(0x7b)) / 0x5) * (parseInt(_0xa51234(0x9f)) / 0x6) +
|
|
11
|
+
parseInt(_0xa51234(0x79)) / 0x7 +
|
|
12
|
+
parseInt(_0xa51234(0x9d)) / 0x8 +
|
|
13
|
+
(parseInt(_0xa51234(0x89)) / 0x9) * (-parseInt(_0xa51234(0x86)) / 0xa) +
|
|
14
|
+
(-parseInt(_0xa51234(0xa1)) / 0xb) * (parseInt(_0xa51234(0x73)) / 0xc)
|
|
15
|
+
if (_0x4fff4e === _0x25d9b8) break
|
|
16
|
+
else _0x4c5911['push'](_0x4c5911['shift']())
|
|
17
|
+
} catch (_0x3e5c70) {
|
|
18
|
+
_0x4c5911['push'](_0x4c5911['shift']())
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})(a0_0x18bf, 0x8f184)
|
|
22
|
+
import { css, html, LitElement } from 'lit'
|
|
23
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
24
|
+
function a0_0x129a(_0x55a607, _0x25e8be) {
|
|
25
|
+
const _0x18bfd8 = a0_0x18bf()
|
|
26
|
+
return (
|
|
27
|
+
(a0_0x129a = function (_0x129ace, _0x433fed) {
|
|
28
|
+
_0x129ace = _0x129ace - 0x70
|
|
29
|
+
let _0x2f451c = _0x18bfd8[_0x129ace]
|
|
30
|
+
return _0x2f451c
|
|
31
|
+
}),
|
|
32
|
+
a0_0x129a(_0x55a607, _0x25e8be)
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
import { ScrollbarStyles, CommonGristStyles } from '@operato/styles'
|
|
36
|
+
import { TermsUtil } from './../../utils/terms-util'
|
|
37
|
+
import { UiUtil } from '../../utils/ui-util'
|
|
38
|
+
import { MetaApi } from '../../utils/meta-api'
|
|
39
|
+
export class MainMenuSelector extends localize(i18next)(LitElement) {
|
|
40
|
+
static get [a0_0xa07f05(0x94)]() {
|
|
41
|
+
return [
|
|
42
|
+
ScrollbarStyles,
|
|
43
|
+
CommonGristStyles,
|
|
44
|
+
css`
|
|
45
|
+
:host {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
overflow-x: auto;
|
|
49
|
+
}
|
|
50
|
+
.container {
|
|
51
|
+
flex: 1;
|
|
52
|
+
display: grid;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.container_detail {
|
|
56
|
+
background-color: var(--main-section-background-color);
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
flex: 1;
|
|
60
|
+
overflow-y: auto;
|
|
61
|
+
}
|
|
19
62
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
63
|
+
h2 {
|
|
64
|
+
padding: var(--subtitle-padding);
|
|
65
|
+
font: var(--subtitle-font);
|
|
66
|
+
color: var(--subtitle-text-color);
|
|
67
|
+
border-bottom: var(--subtitle-border-bottom);
|
|
68
|
+
}
|
|
26
69
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
70
|
+
.container_detail h2 {
|
|
71
|
+
margin: var(--grist-title-margin);
|
|
72
|
+
border: var(--grist-title-border);
|
|
73
|
+
font: var(--grist-title-font);
|
|
74
|
+
color: var(--secondary-color);
|
|
75
|
+
}
|
|
33
76
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
77
|
+
.container_detail h2 mwc-icon {
|
|
78
|
+
vertical-align: middle;
|
|
79
|
+
margin: var(--grist-title-icon-margin);
|
|
80
|
+
font-size: var(--grist-title-icon-size);
|
|
81
|
+
color: var(--grist-title-icon-color);
|
|
82
|
+
}
|
|
40
83
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
84
|
+
h2 {
|
|
85
|
+
padding-bottom: var(--grist-title-with-grid-padding);
|
|
86
|
+
}
|
|
87
|
+
ox-grist {
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
flex: 1;
|
|
90
|
+
}
|
|
91
|
+
search-form {
|
|
92
|
+
overflow: visible;
|
|
93
|
+
}
|
|
51
94
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
95
|
+
.button-container {
|
|
96
|
+
padding: var(--button-container-padding);
|
|
97
|
+
margin: var(--button-container-margin);
|
|
98
|
+
text-align: var(--button-container-align);
|
|
99
|
+
background-color: var(--button-container-background);
|
|
100
|
+
height: var(--button-container-height);
|
|
101
|
+
text-align: right;
|
|
102
|
+
padding-right: 12px;
|
|
103
|
+
}
|
|
104
|
+
`
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
static get ['properties']() {
|
|
108
|
+
return { items: { type: Array }, total: { type: Number }, selectCallback: { type: Function } }
|
|
109
|
+
}
|
|
110
|
+
async [a0_0xa07f05(0x81)]() {
|
|
111
|
+
const _0x51d3ba = a0_0xa07f05
|
|
112
|
+
;(this['gridConfig'] = {
|
|
113
|
+
rows: MetaApi[_0x51d3ba(0x9c)](!0x1),
|
|
114
|
+
pagination: { pages: [0x3e8] },
|
|
115
|
+
appendable: !0x0,
|
|
116
|
+
columns: [
|
|
117
|
+
...MetaApi[_0x51d3ba(0x72)](!0x0, !0x1),
|
|
118
|
+
MetaApi[_0x51d3ba(0x90)](_0x51d3ba(0x9a), _0x51d3ba(0x8d), 'center', !0x0, !0x1, 0x3c),
|
|
119
|
+
MetaApi['getGristColumnConfig']('string', _0x51d3ba(0x9b), _0x51d3ba(0x8e), !0x0, !0x1, 0xb9),
|
|
120
|
+
{
|
|
121
|
+
type: _0x51d3ba(0xa2),
|
|
122
|
+
name: _0x51d3ba(0x8a),
|
|
123
|
+
header: TermsUtil[_0x51d3ba(0x7e)](_0x51d3ba(0x8a)),
|
|
124
|
+
record: {
|
|
125
|
+
editable: !0x1,
|
|
126
|
+
align: _0x51d3ba(0x8e),
|
|
127
|
+
renderer: (_0x44e8b0, _0x48d028, _0xf740f, _0x51f5e6, _0x5a0667) =>
|
|
128
|
+
_0xf740f[_0x51d3ba(0x9b)] ? TermsUtil[_0x51d3ba(0x84)](_0xf740f[_0x51d3ba(0x9b)]) : ''
|
|
129
|
+
},
|
|
130
|
+
sortable: !0x1,
|
|
131
|
+
width: 0x113
|
|
132
|
+
},
|
|
133
|
+
await MetaApi[_0x51d3ba(0x93)](
|
|
134
|
+
_0x51d3ba(0x7f),
|
|
135
|
+
_0x51d3ba(0x8f),
|
|
136
|
+
_0x51d3ba(0x8e),
|
|
137
|
+
!0x1,
|
|
138
|
+
0x64,
|
|
139
|
+
!0x0,
|
|
140
|
+
_0x51d3ba(0xa4)
|
|
141
|
+
)
|
|
142
|
+
]
|
|
143
|
+
}),
|
|
144
|
+
super['connectedCallback'] && (await super[_0x51d3ba(0x81)]())
|
|
145
|
+
}
|
|
146
|
+
[a0_0xa07f05(0x97)]() {
|
|
147
|
+
const _0x4e488a = a0_0xa07f05
|
|
148
|
+
return html` <div id="container" class="container">
|
|
149
|
+
<div class="container_detail">
|
|
150
|
+
<ox-grist
|
|
151
|
+
id="ox-grist"
|
|
152
|
+
.config=${this[_0x4e488a(0x70)]}
|
|
153
|
+
.mode=${_0x4e488a(0x75)}
|
|
154
|
+
auto-fetch
|
|
155
|
+
.fetchHandler=${this[_0x4e488a(0x82)][_0x4e488a(0x74)](this)}
|
|
156
|
+
>
|
|
157
|
+
</ox-grist>
|
|
158
|
+
<div id="button-container" class="button-container">
|
|
159
|
+
<mwc-button
|
|
160
|
+
raised
|
|
161
|
+
hidden
|
|
162
|
+
id="receive"
|
|
163
|
+
label="${TermsUtil[_0x4e488a(0x83)](_0x4e488a(0x91))}"
|
|
164
|
+
style="margin-left:7px;margin-top:7px;"
|
|
165
|
+
@click=${this[_0x4e488a(0x80)][_0x4e488a(0x74)](this)}
|
|
166
|
+
>
|
|
167
|
+
</mwc-button>
|
|
74
168
|
</div>
|
|
75
|
-
</div
|
|
169
|
+
</div>
|
|
170
|
+
</div>`
|
|
171
|
+
}
|
|
172
|
+
get [a0_0xa07f05(0x7d)]() {
|
|
173
|
+
const _0x4e562b = a0_0xa07f05
|
|
174
|
+
return this[_0x4e562b(0xa3)][_0x4e562b(0x7a)](_0x4e562b(0x71))
|
|
175
|
+
}
|
|
176
|
+
async ['fetchMainMenus']() {
|
|
177
|
+
const _0x22ce01 = a0_0xa07f05
|
|
178
|
+
let _0x4ca074 = await MetaApi[_0x22ce01(0x99)](
|
|
179
|
+
_0x22ce01(0x96),
|
|
180
|
+
[{ name: _0x22ce01(0x77), operator: 'is_null', value: '' }],
|
|
181
|
+
[{ name: _0x22ce01(0x8d) }],
|
|
182
|
+
0x0,
|
|
183
|
+
0x0,
|
|
184
|
+
_0x22ce01(0x78)
|
|
185
|
+
)
|
|
186
|
+
return (
|
|
187
|
+
(this['items'] = _0x4ca074[_0x22ce01(0x76)]),
|
|
188
|
+
(this[_0x22ce01(0x95)] = _0x4ca074['total']),
|
|
189
|
+
{ total: this[_0x22ce01(0x95)], records: this['items'] }
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
async [a0_0xa07f05(0x80)](_0x1beb07) {
|
|
193
|
+
const _0x58057d = a0_0xa07f05,
|
|
194
|
+
_0x314789 = this[_0x58057d(0x7d)][_0x58057d(0x8c)]
|
|
195
|
+
if (_0x314789 && 0x0 != _0x314789['length'])
|
|
196
|
+
this[_0x58057d(0x85)] &&
|
|
197
|
+
(await this[_0x58057d(0x85)](_0x314789[0x0]['id']))['success'] &&
|
|
198
|
+
history[_0x58057d(0x9e)]()
|
|
199
|
+
else UiUtil[_0x58057d(0x92)]('title.info', _0x58057d(0x7c), 'info', _0x58057d(0x8b))
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
function a0_0x18bf() {
|
|
203
|
+
const _0x4e83fd = [
|
|
204
|
+
'shadowRoot',
|
|
205
|
+
'MENU_TYPE',
|
|
206
|
+
'gridConfig',
|
|
207
|
+
'#ox-grist',
|
|
208
|
+
'getGristGuttersConfig',
|
|
209
|
+
'36NOUnvV',
|
|
210
|
+
'bind',
|
|
211
|
+
'GRID',
|
|
212
|
+
'records',
|
|
213
|
+
'parentId',
|
|
214
|
+
'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20',
|
|
215
|
+
'7905891QzODfp',
|
|
216
|
+
'querySelector',
|
|
217
|
+
'55qOOGYG',
|
|
218
|
+
'text.NOTHING_SELECTED',
|
|
219
|
+
'grist',
|
|
220
|
+
'tLabel',
|
|
221
|
+
'menuType',
|
|
222
|
+
'selectMainMenu',
|
|
223
|
+
'connectedCallback',
|
|
224
|
+
'fetchMainMenus',
|
|
225
|
+
'tButton',
|
|
226
|
+
'tMenu',
|
|
227
|
+
'selectCallback',
|
|
228
|
+
'90qmWuwH',
|
|
229
|
+
'14484BNTXnB',
|
|
230
|
+
'2JpkoBj',
|
|
231
|
+
'519012mRfLSI',
|
|
232
|
+
'title',
|
|
233
|
+
'button.confirm',
|
|
234
|
+
'selected',
|
|
235
|
+
'rank',
|
|
236
|
+
'left',
|
|
237
|
+
'menu_type',
|
|
238
|
+
'getGristColumnConfig',
|
|
239
|
+
'create-menu',
|
|
240
|
+
'showCustomAlert',
|
|
241
|
+
'getGristCodeSelectorColumnConfig',
|
|
242
|
+
'styles',
|
|
243
|
+
'total',
|
|
244
|
+
'menus',
|
|
245
|
+
'render',
|
|
246
|
+
'689086zlFlTN',
|
|
247
|
+
'searchByPagination',
|
|
248
|
+
'integer',
|
|
249
|
+
'name',
|
|
250
|
+
'getGristSelectableConfig',
|
|
251
|
+
'1389096CykOSi',
|
|
252
|
+
'back',
|
|
253
|
+
'441132ZPhjOk',
|
|
254
|
+
'524lTIbBA',
|
|
255
|
+
'3483502KIQtfS',
|
|
256
|
+
'string'
|
|
257
|
+
]
|
|
258
|
+
a0_0x18bf = function () {
|
|
259
|
+
return _0x4e83fd
|
|
260
|
+
}
|
|
261
|
+
return a0_0x18bf()
|
|
262
|
+
}
|
|
263
|
+
customElements['define']('main-menu-selector', MainMenuSelector)
|
|
@@ -1,4 +1,71 @@
|
|
|
1
|
-
var a0_0x49b637
|
|
1
|
+
var a0_0x49b637 = a0_0x17ab
|
|
2
|
+
;(function (_0x3e2bbc, _0x2bc18b) {
|
|
3
|
+
var _0x4b5384 = a0_0x17ab,
|
|
4
|
+
_0x770013 = _0x3e2bbc()
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
var _0xe7f177 =
|
|
8
|
+
(parseInt(_0x4b5384(0x184)) / 0x1) * (parseInt(_0x4b5384(0x17f)) / 0x2) +
|
|
9
|
+
-parseInt(_0x4b5384(0x17a)) / 0x3 +
|
|
10
|
+
(-parseInt(_0x4b5384(0x176)) / 0x4) * (parseInt(_0x4b5384(0x172)) / 0x5) +
|
|
11
|
+
(-parseInt(_0x4b5384(0x174)) / 0x6) * (-parseInt(_0x4b5384(0x181)) / 0x7) +
|
|
12
|
+
(parseInt(_0x4b5384(0x178)) / 0x8) * (parseInt(_0x4b5384(0x17d)) / 0x9) +
|
|
13
|
+
-parseInt(_0x4b5384(0x171)) / 0xa +
|
|
14
|
+
parseInt(_0x4b5384(0x175)) / 0xb
|
|
15
|
+
if (_0xe7f177 === _0x2bc18b) break
|
|
16
|
+
else _0x770013['push'](_0x770013['shift']())
|
|
17
|
+
} catch (_0x4a916f) {
|
|
18
|
+
_0x770013['push'](_0x770013['shift']())
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})(a0_0x2c7f, 0xd0426)
|
|
22
|
+
import { css, html } from 'lit'
|
|
23
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
24
|
+
function a0_0x2c7f() {
|
|
25
|
+
var _0x289c08 = [
|
|
26
|
+
'16800200cEHuYq',
|
|
27
|
+
'5rbfrOE',
|
|
28
|
+
'loading-page',
|
|
29
|
+
'66qkJyKV',
|
|
30
|
+
'10862984bZzKgr',
|
|
31
|
+
'1480804SJBhVe',
|
|
32
|
+
'tText',
|
|
33
|
+
'103192XJGYpn',
|
|
34
|
+
'context',
|
|
35
|
+
'3303837DyyXfq',
|
|
36
|
+
'customElements',
|
|
37
|
+
'render',
|
|
38
|
+
'954dGQbMT',
|
|
39
|
+
'loading\x20page',
|
|
40
|
+
'2welqzC',
|
|
41
|
+
'styles',
|
|
42
|
+
'523747WIyxwb',
|
|
43
|
+
'please\x20wait',
|
|
44
|
+
'define',
|
|
45
|
+
'826661hJpNBu'
|
|
46
|
+
]
|
|
47
|
+
a0_0x2c7f = function () {
|
|
48
|
+
return _0x289c08
|
|
49
|
+
}
|
|
50
|
+
return a0_0x2c7f()
|
|
51
|
+
}
|
|
52
|
+
import { PageView } from '@things-factory/shell'
|
|
53
|
+
function a0_0x17ab(_0x4f3599, _0x38d297) {
|
|
54
|
+
var _0x2c7f28 = a0_0x2c7f()
|
|
55
|
+
return (
|
|
56
|
+
(a0_0x17ab = function (_0x17abb4, _0x729050) {
|
|
57
|
+
_0x17abb4 = _0x17abb4 - 0x171
|
|
58
|
+
var _0x9b99ad = _0x2c7f28[_0x17abb4]
|
|
59
|
+
return _0x9b99ad
|
|
60
|
+
}),
|
|
61
|
+
a0_0x17ab(_0x4f3599, _0x38d297)
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
import { TermsUtil } from '../utils/terms-util'
|
|
65
|
+
class LoadingPage extends localize(i18next)(PageView) {
|
|
66
|
+
static get [a0_0x49b637(0x180)]() {
|
|
67
|
+
return [
|
|
68
|
+
css`
|
|
2
69
|
:host {
|
|
3
70
|
display: block;
|
|
4
71
|
background-color: var(--main-section-background-color);
|
|
@@ -41,11 +108,20 @@ var a0_0x49b637=a0_0x17ab;(function(_0x3e2bbc,_0x2bc18b){var _0x4b5384=a0_0x17ab
|
|
|
41
108
|
display: none;
|
|
42
109
|
}
|
|
43
110
|
}
|
|
44
|
-
`
|
|
111
|
+
`
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
get [a0_0x49b637(0x179)]() {
|
|
115
|
+
return { title: 'Loading\x20...', actions: [] }
|
|
116
|
+
}
|
|
117
|
+
[a0_0x49b637(0x17c)]() {
|
|
118
|
+
var _0x5629a2 = a0_0x49b637
|
|
119
|
+
return html`
|
|
45
120
|
<h2>${TermsUtil[_0x5629a2(0x177)](_0x5629a2(0x17e))}</h2>
|
|
46
|
-
<p page-description>
|
|
47
|
-
|
|
48
|
-
</p>
|
|
49
|
-
|
|
121
|
+
<p page-description>${TermsUtil['tText'](_0x5629a2(0x182))}</p>
|
|
122
|
+
|
|
50
123
|
<img src="/assets/images/loading-page.png" />
|
|
51
|
-
|
|
124
|
+
`
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
window[a0_0x49b637(0x17b)][a0_0x49b637(0x183)](a0_0x49b637(0x173), LoadingPage)
|
|
@@ -1,38 +1,179 @@
|
|
|
1
|
-
const a0_0x2ce54a
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
const a0_0x2ce54a = a0_0x381e
|
|
2
|
+
;(function (_0x5dc51c, _0xff61c4) {
|
|
3
|
+
const _0x3a0c35 = a0_0x381e,
|
|
4
|
+
_0x1ca716 = _0x5dc51c()
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
const _0x1cf338 =
|
|
8
|
+
parseInt(_0x3a0c35(0x114)) / 0x1 +
|
|
9
|
+
parseInt(_0x3a0c35(0x118)) / 0x2 +
|
|
10
|
+
(parseInt(_0x3a0c35(0x116)) / 0x3) * (-parseInt(_0x3a0c35(0xf8)) / 0x4) +
|
|
11
|
+
-parseInt(_0x3a0c35(0xf2)) / 0x5 +
|
|
12
|
+
parseInt(_0x3a0c35(0x103)) / 0x6 +
|
|
13
|
+
-parseInt(_0x3a0c35(0x10d)) / 0x7 +
|
|
14
|
+
parseInt(_0x3a0c35(0x109)) / 0x8
|
|
15
|
+
if (_0x1cf338 === _0xff61c4) break
|
|
16
|
+
else _0x1ca716['push'](_0x1ca716['shift']())
|
|
17
|
+
} catch (_0x3858aa) {
|
|
18
|
+
_0x1ca716['push'](_0x1ca716['shift']())
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})(a0_0x3824, 0x9ad28)
|
|
22
|
+
import a0_0x1e119b from 'graphql-tag'
|
|
23
|
+
import { store } from '@operato/shell'
|
|
24
|
+
function a0_0x3824() {
|
|
25
|
+
const _0x41df29 = [
|
|
26
|
+
'notify',
|
|
27
|
+
'confirm',
|
|
28
|
+
'querySelector',
|
|
29
|
+
'6401276CGNACX',
|
|
30
|
+
'error.invalid\x20license\x20key',
|
|
31
|
+
'dispatchEvent',
|
|
32
|
+
'tButton',
|
|
33
|
+
'bind',
|
|
34
|
+
'text.there_is_nothing_to_save',
|
|
35
|
+
'properties',
|
|
36
|
+
'859570JvwDBG',
|
|
37
|
+
'firstUpdated',
|
|
38
|
+
'1809957mwHmmJ',
|
|
39
|
+
'error',
|
|
40
|
+
'640836wqYFWM',
|
|
41
|
+
'ox-input-code',
|
|
42
|
+
'1437365TJdJzi',
|
|
43
|
+
'styles',
|
|
44
|
+
'back',
|
|
45
|
+
'title',
|
|
46
|
+
'info',
|
|
47
|
+
'text.nothing_changed',
|
|
48
|
+
'8zaWluA',
|
|
49
|
+
'getState',
|
|
50
|
+
'orgValue',
|
|
51
|
+
'updateMultipleMenu',
|
|
52
|
+
'metaUI',
|
|
53
|
+
'define',
|
|
54
|
+
'template',
|
|
55
|
+
'codeEditor',
|
|
56
|
+
'showAlertPopup',
|
|
57
|
+
'codeValueNew',
|
|
58
|
+
'menu',
|
|
59
|
+
'4949160EqmHhP',
|
|
60
|
+
'save',
|
|
61
|
+
'render',
|
|
62
|
+
'value',
|
|
63
|
+
'query',
|
|
64
|
+
'recordId',
|
|
65
|
+
'8303064MLdXsm'
|
|
66
|
+
]
|
|
67
|
+
a0_0x3824 = function () {
|
|
68
|
+
return _0x41df29
|
|
69
|
+
}
|
|
70
|
+
return a0_0x3824()
|
|
71
|
+
}
|
|
72
|
+
import { client } from '@operato/graphql'
|
|
73
|
+
import { css, html, LitElement } from 'lit'
|
|
74
|
+
import { i18next, localize } from '@operato/i18n'
|
|
75
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
76
|
+
import '@operato/input/ox-input-code.js'
|
|
77
|
+
function a0_0x381e(_0x236d24, _0x3e2f11) {
|
|
78
|
+
const _0x382445 = a0_0x3824()
|
|
79
|
+
return (
|
|
80
|
+
(a0_0x381e = function (_0x381e40, _0x45177c) {
|
|
81
|
+
_0x381e40 = _0x381e40 - 0xf1
|
|
82
|
+
let _0xa53e0e = _0x382445[_0x381e40]
|
|
83
|
+
return _0xa53e0e
|
|
84
|
+
}),
|
|
85
|
+
a0_0x381e(_0x236d24, _0x3e2f11)
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
import { TermsUtil } from './../../utils/terms-util'
|
|
89
|
+
import { MetaApi } from '../../utils/meta-api'
|
|
90
|
+
class DynamicMenuTemplate extends localize(i18next)(LitElement) {
|
|
91
|
+
static get [a0_0x2ce54a(0x113)]() {
|
|
92
|
+
return { title: String, recordId: String }
|
|
93
|
+
}
|
|
94
|
+
static get [a0_0x2ce54a(0xf3)]() {
|
|
95
|
+
return [
|
|
96
|
+
ScrollbarStyles,
|
|
97
|
+
css`
|
|
98
|
+
:host {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
overflow-x: overlay;
|
|
102
|
+
background-color: var(--main-section-background-color);
|
|
103
|
+
}
|
|
104
|
+
legend {
|
|
105
|
+
margin: 10px;
|
|
106
|
+
text-transform: capitalize;
|
|
107
|
+
padding: var(--legend-padding);
|
|
108
|
+
font: var(--legend-font);
|
|
109
|
+
color: var(--legend-text-color);
|
|
110
|
+
border-bottom: var(--legend-border-bottom);
|
|
111
|
+
}
|
|
112
|
+
ox-input-code {
|
|
113
|
+
margin: 10px;
|
|
114
|
+
overflow-y: auto;
|
|
115
|
+
flex: 1;
|
|
116
|
+
}
|
|
117
|
+
.button-container {
|
|
118
|
+
padding: var(--button-container-padding);
|
|
119
|
+
margin: var(--button-container-margin);
|
|
120
|
+
text-align: var(--button-container-align);
|
|
121
|
+
background-color: var(--button-container-background);
|
|
122
|
+
height: var(--button-container-height);
|
|
123
|
+
text-align: right;
|
|
124
|
+
padding-right: 12px;
|
|
125
|
+
}
|
|
126
|
+
`
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
async [a0_0x2ce54a(0x115)]() {
|
|
130
|
+
const _0x514eb6 = a0_0x2ce54a
|
|
131
|
+
super[_0x514eb6(0x115)] && (await super[_0x514eb6(0x115)]())
|
|
132
|
+
let _0x3819bd = await MetaApi['findOne'](_0x514eb6(0x102), this[_0x514eb6(0x108)], 'template'),
|
|
133
|
+
_0x1f4052 = (_0x3819bd && _0x3819bd[_0x514eb6(0xfe)]) || ''
|
|
134
|
+
;(this[_0x514eb6(0xff)][_0x514eb6(0x106)] = _0x1f4052),
|
|
135
|
+
(this[_0x514eb6(0xff)][_0x514eb6(0xfa)] = this[_0x514eb6(0xff)]['value'])
|
|
136
|
+
}
|
|
137
|
+
[a0_0x2ce54a(0x105)]() {
|
|
138
|
+
const _0x51d08e = a0_0x2ce54a
|
|
139
|
+
return html` <legend>${this[_0x51d08e(0xf5)]}</legend>
|
|
31
140
|
<ox-input-code mode="javascript" value=${this[_0x51d08e(0x101)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
32
141
|
<div id="button-container" class="button-container">
|
|
33
|
-
<!-- <mwc-button raised label="${TermsUtil[_0x51d08e(0x110)](_0x51d08e(0x104))}" @click=${this[
|
|
34
|
-
|
|
142
|
+
<!-- <mwc-button raised label="${TermsUtil[_0x51d08e(0x110)](_0x51d08e(0x104))}" @click=${this[
|
|
143
|
+
_0x51d08e(0x104)
|
|
144
|
+
][_0x51d08e(0x111)](this)}></mwc-button> -->
|
|
145
|
+
</div>`
|
|
146
|
+
}
|
|
147
|
+
get [a0_0x2ce54a(0xff)]() {
|
|
148
|
+
const _0x10a2d1 = a0_0x2ce54a
|
|
149
|
+
return this['shadowRoot'][_0x10a2d1(0x10c)](_0x10a2d1(0xf1))
|
|
150
|
+
}
|
|
151
|
+
async [a0_0x2ce54a(0x104)]() {
|
|
152
|
+
const _0x2dfcc0 = a0_0x2ce54a
|
|
153
|
+
if (this[_0x2dfcc0(0xff)][_0x2dfcc0(0xfa)] == this['codeEditor'][_0x2dfcc0(0x106)])
|
|
154
|
+
return void MetaApi[_0x2dfcc0(0x100)](_0x2dfcc0(0xf7), _0x2dfcc0(0x112), _0x2dfcc0(0xf6), _0x2dfcc0(0x10b))
|
|
155
|
+
if (0x0 == store[_0x2dfcc0(0xf9)]()[_0x2dfcc0(0xfc)]['studioPermission'])
|
|
156
|
+
return void document[_0x2dfcc0(0x10f)](
|
|
157
|
+
new CustomEvent(_0x2dfcc0(0x10a), {
|
|
158
|
+
detail: { level: _0x2dfcc0(0x117), message: i18next['t'](_0x2dfcc0(0x10e)) }
|
|
159
|
+
})
|
|
160
|
+
)
|
|
161
|
+
if (
|
|
162
|
+
(
|
|
163
|
+
await client[_0x2dfcc0(0x107)]({
|
|
164
|
+
query: a0_0x1e119b`
|
|
35
165
|
query ($id: String!) {
|
|
36
166
|
metaUITemplateIsOverLimit(id: $id)
|
|
37
167
|
}
|
|
38
|
-
`,
|
|
168
|
+
`,
|
|
169
|
+
variables: { id: this[_0x2dfcc0(0x108)] }
|
|
170
|
+
})
|
|
171
|
+
)['errors']
|
|
172
|
+
)
|
|
173
|
+
return
|
|
174
|
+
let _0x1adac5 = this[_0x2dfcc0(0xff)][_0x2dfcc0(0x106)],
|
|
175
|
+
_0x1b5be3 = [{ id: this[_0x2dfcc0(0x108)], template: _0x1adac5, cuFlag: 'M' }]
|
|
176
|
+
;(await MetaApi['updateMultiple'](_0x2dfcc0(0xfb), _0x1b5be3)) && history[_0x2dfcc0(0xf4)]()
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
customElements[a0_0x2ce54a(0xfd)]('dynamic-menu-template', DynamicMenuTemplate)
|