@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.
@@ -1 +1 @@
1
- function a0_0x11e9(_0x1da569,_0x2734c9){const _0x291403=a0_0x2914();return a0_0x11e9=function(_0x11e9f9,_0x5b4f41){_0x11e9f9=_0x11e9f9-0x124;let _0x2bdb1c=_0x291403[_0x11e9f9];return _0x2bdb1c;},a0_0x11e9(_0x1da569,_0x2734c9);}const a0_0x53d3fd=a0_0x11e9;function a0_0x2914(){const _0x344491=['UPDATE_OPERATO_TOOLS','207544vcUGES','16ooBjXK','5211620BoXZlU','2mNTFAf','1604763tXpyVH','1736255wvkDwz','11PvCvTF','371356rEJuGs','1207955VYWriF','1268775dRGwzL','6nEHGPk'];a0_0x2914=function(){return _0x344491;};return a0_0x2914();}(function(_0x524179,_0x1e8eda){const _0x30267a=a0_0x11e9,_0x30236e=_0x524179();while(!![]){try{const _0x5c5b39=parseInt(_0x30267a(0x12e))/0x1+-parseInt(_0x30267a(0x12a))/0x2*(parseInt(_0x30267a(0x124))/0x3)+-parseInt(_0x30267a(0x127))/0x4+parseInt(_0x30267a(0x12c))/0x5*(-parseInt(_0x30267a(0x125))/0x6)+-parseInt(_0x30267a(0x12f))/0x7+-parseInt(_0x30267a(0x128))/0x8*(-parseInt(_0x30267a(0x12b))/0x9)+-parseInt(_0x30267a(0x129))/0xa*(-parseInt(_0x30267a(0x12d))/0xb);if(_0x5c5b39===_0x1e8eda)break;else _0x30236e['push'](_0x30236e['shift']());}catch(_0x37badc){_0x30236e['push'](_0x30236e['shift']());}}}(a0_0x2914,0x3e229));export const UPDATE_OPERATO_TOOLS=a0_0x53d3fd(0x126);
1
+ (function(_0x1fd8cb,_0x4b5e1c){const _0x47e46d=a0_0x2695,_0x2fcfff=_0x1fd8cb();while(!![]){try{const _0x5b8dcd=-parseInt(_0x47e46d(0x1f6))/0x1*(-parseInt(_0x47e46d(0x1f8))/0x2)+parseInt(_0x47e46d(0x1f7))/0x3*(parseInt(_0x47e46d(0x1f3))/0x4)+-parseInt(_0x47e46d(0x1ef))/0x5*(parseInt(_0x47e46d(0x1ee))/0x6)+parseInt(_0x47e46d(0x1f1))/0x7+parseInt(_0x47e46d(0x1f2))/0x8+-parseInt(_0x47e46d(0x1f5))/0x9*(parseInt(_0x47e46d(0x1f4))/0xa)+-parseInt(_0x47e46d(0x1f0))/0xb;if(_0x5b8dcd===_0x4b5e1c)break;else _0x2fcfff['push'](_0x2fcfff['shift']());}catch(_0x37396b){_0x2fcfff['push'](_0x2fcfff['shift']());}}}(a0_0x2251,0x814b7));export const UPDATE_OPERATO_TOOLS='UPDATE_OPERATO_TOOLS';function a0_0x2695(_0x2e467b,_0x459ab9){const _0x2251d0=a0_0x2251();return a0_0x2695=function(_0x269597,_0x34b869){_0x269597=_0x269597-0x1ee;let _0x5c4078=_0x2251d0[_0x269597];return _0x5c4078;},a0_0x2695(_0x2e467b,_0x459ab9);}function a0_0x2251(){const _0x5629fb=['2862280ljHPfJ','4684XXnzIf','370WCgyJw','23463DcEdLL','131XlbLIb','1467WrXCIG','5414HNGkSJ','11646WJTKji','115NvYyNZ','8187971kfjmqi','910231urVerd'];a0_0x2251=function(){return _0x5629fb;};return a0_0x2251();}
@@ -1,367 +1,5 @@
1
- const a0_0xea3c2f = a0_0x23a7
2
- ;(function (_0x1e1fdf, _0x56208d) {
3
- const _0x262e19 = a0_0x23a7,
4
- _0x122754 = _0x1e1fdf()
5
- while (!![]) {
6
- try {
7
- const _0x5e7e61 =
8
- parseInt(_0x262e19(0x19f)) / 0x1 +
9
- -parseInt(_0x262e19(0x1ab)) / 0x2 +
10
- (-parseInt(_0x262e19(0x17d)) / 0x3) * (parseInt(_0x262e19(0x19b)) / 0x4) +
11
- (parseInt(_0x262e19(0x186)) / 0x5) * (parseInt(_0x262e19(0x1a7)) / 0x6) +
12
- parseInt(_0x262e19(0x17a)) / 0x7 +
13
- -parseInt(_0x262e19(0x170)) / 0x8 +
14
- -parseInt(_0x262e19(0x192)) / 0x9
15
- if (_0x5e7e61 === _0x56208d) break
16
- else _0x122754['push'](_0x122754['shift']())
17
- } catch (_0x2f8fd3) {
18
- _0x122754['push'](_0x122754['shift']())
19
- }
20
- }
21
- })(a0_0x87f4, 0x5d65d)
22
- import { html } from 'lit'
23
- import { MetaApi } from '@things-factory/meta-ui/client/utils/meta-api'
24
- import { TermsUtil } from '@things-factory/meta-ui/client/utils/terms-util'
25
- import { getRenderer } from '@operato/data-grist'
26
- function a0_0x23a7(_0x127905, _0x14545e) {
27
- const _0x87f48e = a0_0x87f4()
28
- return (
29
- (a0_0x23a7 = function (_0x23a738, _0x2e829d) {
30
- _0x23a738 = _0x23a738 - 0x170
31
- let _0x47bd87 = _0x87f48e[_0x23a738]
32
- return _0x47bd87
33
- }),
34
- a0_0x23a7(_0x127905, _0x14545e)
35
- )
36
- }
37
- function a0_0x87f4() {
38
- const _0x73def2 = [
39
- 'grid-',
40
- 'meta-grist-element',
41
- 'left',
42
- 'setButtonConfigTabValues',
43
- 'shadowRoot',
44
- '18oMhgbJ',
45
- 'form',
46
- 'string',
47
- 'grid',
48
- '863432ZTaRWP',
49
- 'large',
50
- '#button-tab-grid',
51
- 'delete',
52
- 'custom',
53
- '1975792wLhXFN',
54
- 'button',
55
- 'renderButtonConfigTab',
56
- 'label',
57
- 'push',
58
- 'json5',
59
- 'parse',
60
- 'scenario',
61
- 'setButtonConfigTabConfig',
62
- 'getGristSelectableConfig',
63
- '2896236XEFboo',
64
- 'testScenario',
65
- 'tLabel',
66
- '72hPAhbh',
67
- 'basic',
68
- 'icon',
69
- 'title.detail',
70
- '\x22record-view\x22',
71
- 'replaceAll',
72
- 'grist_selected',
73
- 'gutter',
74
- 'popup',
75
- '987815dpJPvC',
76
- 'buttonTabGridConfig',
77
- 'trim',
78
- 'pages/meta-grist-element.js',
79
- 'querySelector',
80
- 'forEach',
81
- 'stringify',
82
- 'deleteRow',
83
- 'getGristGuttersConfig',
84
- 'script',
85
- 'sortRecordByRank',
86
- 'name',
87
- '353682oDNedJ',
88
- 'rank',
89
- 'bind',
90
- 'fetch',
91
- 'grid-custom',
92
- 'fetchButtonConfigTabHandler',
93
- 'buttonTabGrist',
94
- 'startsWith',
95
- 'display',
96
- '17592JWYawD',
97
- 'menu.variables',
98
- 'button-tab-grid',
99
- 'style',
100
- '199660CDVBTu',
101
- 'type',
102
- 'logic'
103
- ]
104
- a0_0x87f4 = function () {
105
- return _0x73def2
106
- }
107
- return a0_0x87f4()
108
- }
109
- export const ButtonConfigTabMixin = _0x1992a4 =>
110
- class extends _0x1992a4 {
111
- [a0_0xea3c2f(0x1a5)](_0x255def) {
112
- const _0x1a7c4c = a0_0xea3c2f
113
- _0x255def?.[_0x1a7c4c(0x18b)]((_0x5b5091, _0x157019) => {
114
- const _0x465ec7 = _0x1a7c4c
115
- let _0x2569a5 = _0x157019 + 0x1
116
- if (
117
- ((_0x5b5091[_0x465ec7(0x193)] = 0xa * _0x2569a5),
118
- (_0x5b5091['id'] = _0x2569a5),
119
- _0x5b5091[_0x465ec7(0x1a1)] && !_0x5b5091[_0x465ec7(0x1a1)][_0x465ec7(0x1a1)])
120
- ) {
121
- let _0x4cd953 = JSON[_0x465ec7(0x18c)](_0x5b5091[_0x465ec7(0x1a1)], null, 0x2)
122
- ;(_0x5b5091['logic'] = {}), (_0x5b5091[_0x465ec7(0x1a1)][_0x465ec7(0x1a1)] = _0x4cd953)
123
- }
124
- _0x5b5091['style'] &&
125
- Array['isArray'](_0x5b5091['style']) &&
126
- (_0x5b5091['style'] = JSON[_0x465ec7(0x18c)](_0x5b5091['style'], null, 0x2))
127
- }),
128
- (this['viewButtonData'] = _0x255def),
129
- this[_0x1a7c4c(0x198)]?.[_0x1a7c4c(0x195)]()
130
- }
131
- ['getButtonConfigTabValues']() {
132
- const _0x29489e = a0_0xea3c2f
133
- let _0x22c352 = { button: [], grid: { button: [] } },
134
- _0x43a144 = this['getElementValueById'](_0x29489e(0x19d))
135
- return (
136
- this[_0x29489e(0x190)](_0x43a144)?.[_0x29489e(0x18b)](_0x580623 => {
137
- const _0x5b47d8 = _0x29489e
138
- var {
139
- name: _0x17233d,
140
- label: _0x1f98ae,
141
- style: _0x1479b9,
142
- type: _0x38de54 = _0x5b47d8(0x17e),
143
- logic: _0xf562d4
144
- } = _0x580623
145
- if (!_0x17233d) return
146
- let _0x1be608 = {
147
- name: _0x17233d,
148
- type: _0x38de54[_0x5b47d8(0x182)](_0x5b47d8(0x1a2), ''),
149
- label: _0x1f98ae || _0x17233d
150
- }
151
- _0xf562d4 &&
152
- (_0x5b47d8(0x1a9) == typeof _0xf562d4 && (_0xf562d4 = JSON[_0x5b47d8(0x176)](_0xf562d4)),
153
- _0xf562d4[_0x5b47d8(0x1a1)] && (_0x1be608['logic'] = JSON[_0x5b47d8(0x176)](_0xf562d4[_0x5b47d8(0x1a1)]))),
154
- _0x38de54[_0x5b47d8(0x199)](_0x5b47d8(0x1aa))
155
- ? (_0x1479b9 &&
156
- ((_0x1479b9 = _0x1479b9[_0x5b47d8(0x188)]())[_0x5b47d8(0x199)]('[') &&
157
- (_0x1479b9 = JSON['parse'](_0x1479b9)),
158
- (_0x1be608[_0x5b47d8(0x17f)] = _0x1479b9)),
159
- _0x22c352[_0x5b47d8(0x1aa)][_0x5b47d8(0x171)]['push'](_0x1be608))
160
- : (_0x1479b9 && (_0x1be608['style'] = _0x1479b9),
161
- _0x22c352[_0x5b47d8(0x171)][_0x5b47d8(0x174)](_0x1be608))
162
- }),
163
- _0x22c352
164
- )
165
- }
166
- [a0_0xea3c2f(0x172)]() {
167
- const _0x3e91b9 = a0_0xea3c2f
168
- return html`
169
- <ox-grist
170
- auto-fetch
171
- id="button-tab-grid"
172
- .config=${this[_0x3e91b9(0x187)]}
173
- .mode="GRID"
174
- .fetchHandler=${this[_0x3e91b9(0x197)][_0x3e91b9(0x194)](this)}
175
- >
176
- </ox-grist>
177
- `
178
- }
179
- get [a0_0xea3c2f(0x198)]() {
180
- const _0x271dde = a0_0xea3c2f
181
- return this[_0x271dde(0x1a6)][_0x271dde(0x18a)](_0x271dde(0x1ad))
182
- }
183
- async [a0_0xea3c2f(0x197)]() {
184
- return { total: 0x0, records: this['viewButtonData'] || [] }
185
- }
186
- [a0_0xea3c2f(0x178)]() {
187
- const _0x541bc1 = a0_0xea3c2f
188
- this['buttonTabGridConfig'] = {
189
- rows: MetaApi[_0x541bc1(0x179)](!0x0),
190
- pagination: { infinite: !0x0 },
191
- sorters: [{ name: _0x541bc1(0x193), desc: !0x1 }],
192
- appendable: !0x0,
193
- columns: [
194
- ...MetaApi[_0x541bc1(0x18e)](!0x1, !0x1),
195
- {
196
- type: _0x541bc1(0x184),
197
- gutterName: _0x541bc1(0x171),
198
- icon: _0x541bc1(0x1ae),
199
- handlers: {
200
- click: (_0x592819, _0x28ea98, _0x2ff7a3, _0x4a7e37, _0x525e07) => {
201
- const _0x52491e = _0x541bc1
202
- _0x4a7e37['id'] && this[_0x52491e(0x18d)](this['buttonTabGrist'], _0x4a7e37)
203
- }
204
- }
205
- },
206
- {
207
- type: 'integer',
208
- name: _0x541bc1(0x193),
209
- header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x193)),
210
- sortable: !0x0,
211
- width: 0x41,
212
- record: { align: 'right', editable: !0x0, mandatory: !0x0 }
213
- },
214
- {
215
- type: _0x541bc1(0x1a9),
216
- name: _0x541bc1(0x191),
217
- header: TermsUtil[_0x541bc1(0x17c)]('name'),
218
- sortable: !0x1,
219
- width: 0x9b,
220
- record: { align: _0x541bc1(0x1a4), editable: !0x0, mandatory: !0x0 }
221
- },
222
- {
223
- type: 'string',
224
- name: _0x541bc1(0x173),
225
- header: TermsUtil['tLabel'](_0x541bc1(0x173)),
226
- sortable: !0x1,
227
- width: 0xaf,
228
- record: { align: 'left', editable: !0x0, mandatory: !0x0 }
229
- },
230
- {
231
- type: 'string',
232
- name: _0x541bc1(0x19a),
233
- header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x19a)),
234
- sortable: !0x1,
235
- width: 0xaf,
236
- record: {
237
- align: _0x541bc1(0x1a4),
238
- editable: !0x1,
239
- mandatory: !0x1,
240
- renderer: (_0x1af892, _0x3e69e3, _0x8d541c, _0x459efb, _0x56977e) =>
241
- _0x8d541c && _0x8d541c[_0x541bc1(0x173)]
242
- ? TermsUtil['t'](_0x8d541c['label'], null, _0x8d541c[_0x541bc1(0x173)])
243
- : _0x8d541c && _0x8d541c[_0x541bc1(0x191)]
244
- ? TermsUtil['tButton'](_0x8d541c[_0x541bc1(0x191)])
245
- : ''
246
- }
247
- },
248
- {
249
- type: 'select',
250
- name: _0x541bc1(0x1a0),
251
- header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x1a0)),
252
- sortable: !0x1,
253
- width: 0x64,
254
- record: {
255
- align: _0x541bc1(0x1a4),
256
- editable: !0x0,
257
- mandatory: !0x0,
258
- options: ['', _0x541bc1(0x17e), _0x541bc1(0x1af), 'grid-basic', _0x541bc1(0x196)]
259
- }
260
- },
261
- {
262
- type: _0x541bc1(0x1a9),
263
- name: 'style',
264
- header: TermsUtil['tLabel'](_0x541bc1(0x19e)),
265
- sortable: !0x1,
266
- width: 0x9b,
267
- record: { align: 'left', editable: !0x0, mandatory: !0x1 }
268
- },
269
- {
270
- type: 'parameters',
271
- name: _0x541bc1(0x1a1),
272
- header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x1a1)),
273
- sortable: !0x1,
274
- width: 0xfa,
275
- record: {
276
- align: 'left',
277
- editable: !0x0,
278
- mandatory: !0x1,
279
- renderer: (_0x2cdc04, _0x25936e, _0x5c380, _0x3d37cc, _0x51834d) => {
280
- const _0x1afebe = _0x541bc1
281
- if (_0x5c380[_0x1afebe(0x1a1)]) _0x1afebe(0x17e) === _0x5c380['type'] && (_0x5c380['logic'] = void 0x0)
282
- else {
283
- if (_0x1afebe(0x17e) === _0x5c380['type']) delete _0x5c380[_0x1afebe(0x1a1)]
284
- else {
285
- if (_0x1afebe(0x1af) === _0x5c380['type']) {
286
- let _0x5cb2c0 = {
287
- logic: JSON[_0x1afebe(0x18c)](
288
- {
289
- open_popup: {
290
- title: _0x1afebe(0x19c),
291
- title_detail: _0x1afebe(0x191),
292
- type: 'popup',
293
- tagname: _0x1afebe(0x1a3),
294
- location: 'pages/meta-grist-element.js',
295
- size: _0x1afebe(0x1ac),
296
- popup_field: 'param_field',
297
- parent_field: 'id',
298
- param: ['filter', 'grist_one', _0x1afebe(0x183)]
299
- },
300
- call_scenario: {
301
- type: _0x1afebe(0x177),
302
- name: _0x1afebe(0x17b),
303
- after: _0x1afebe(0x195),
304
- param: ['filter', 'grist_all', 'grist_selected']
305
- }
306
- },
307
- null,
308
- 0x2
309
- )
310
- }
311
- _0x5c380[_0x1afebe(0x1a1)] = _0x5cb2c0
312
- } else {
313
- if ('grid-basic' === _0x5c380['type']) {
314
- let _0x348080 = { logic: _0x1afebe(0x181) }
315
- _0x5c380[_0x1afebe(0x1a1)] = _0x348080
316
- } else {
317
- if (_0x1afebe(0x196) === _0x5c380[_0x1afebe(0x1a0)]) {
318
- let _0xb73a4 = {
319
- logic: JSON[_0x1afebe(0x18c)](
320
- {
321
- open_popup: {
322
- title: 'menu.variables',
323
- title_detail: _0x1afebe(0x191),
324
- type: _0x1afebe(0x185),
325
- tagname: _0x1afebe(0x1a3),
326
- location: _0x1afebe(0x189),
327
- size: 'large',
328
- popup_field: 'param_field',
329
- parent_field: 'id'
330
- },
331
- open_form_popup: {
332
- type: _0x1afebe(0x1a8),
333
- title: _0x1afebe(0x180),
334
- title_detail: _0x1afebe(0x191),
335
- size: _0x1afebe(0x1ac),
336
- menu: 'operation-master'
337
- },
338
- call_scenario: { type: 'scenario', name: _0x1afebe(0x17b), after: 'fetch' }
339
- },
340
- null,
341
- 0x2
342
- )
343
- }
344
- _0x5c380['logic'] = _0xb73a4
345
- } else _0x5c380['logic'] = void 0x0
346
- }
347
- }
348
- }
349
- }
350
- return getRenderer(_0x1afebe(0x175))(_0x2cdc04, _0x25936e, _0x5c380, _0x3d37cc, _0x51834d)
351
- },
352
- options: (_0x1efa75, _0x25bf44, _0x4167e5, _0x536ede, _0x240f8a) => {
353
- const _0x272ca7 = _0x541bc1
354
- var { name: _0xacafed, help: _0x443ace } = { name: TermsUtil[_0x272ca7(0x17c)]('logic'), help: '' }
355
- return {
356
- name: _0xacafed,
357
- spec: [{ label: _0x272ca7(0x18f), name: 'logic', type: 'textarea' }],
358
- help: _0x443ace,
359
- context: this['buttonTabGrist']
360
- }
361
- }
362
- }
363
- }
364
- ]
365
- }
366
- }
367
- }
1
+ const a0_0x4e820d=a0_0x43a7;(function(_0x50f055,_0x477441){const _0x39e246=a0_0x43a7,_0x589713=_0x50f055();while(!![]){try{const _0x491b81=-parseInt(_0x39e246(0xe6))/0x1*(-parseInt(_0x39e246(0xd0))/0x2)+-parseInt(_0x39e246(0xc7))/0x3*(parseInt(_0x39e246(0xec))/0x4)+parseInt(_0x39e246(0xc1))/0x5+parseInt(_0x39e246(0xbb))/0x6+parseInt(_0x39e246(0xd1))/0x7+-parseInt(_0x39e246(0xb8))/0x8*(parseInt(_0x39e246(0xca))/0x9)+parseInt(_0x39e246(0xc9))/0xa;if(_0x491b81===_0x477441)break;else _0x589713['push'](_0x589713['shift']());}catch(_0x5ebfe8){_0x589713['push'](_0x589713['shift']());}}}(a0_0x1902,0x2c3ce));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{getRenderer}from'@operato/data-grist';function a0_0x43a7(_0x4d9d6e,_0x2df215){const _0x1902d5=a0_0x1902();return a0_0x43a7=function(_0x43a785,_0x3bf1){_0x43a785=_0x43a785-0xaf;let _0x11e383=_0x1902d5[_0x43a785];return _0x11e383;},a0_0x43a7(_0x4d9d6e,_0x2df215);}function a0_0x1902(){const _0x368750=['parse','grist_selected','scenario','forEach','right','style','bind','name','buttonTabGridConfig','string','left','getButtonConfigTabValues','display','rank','grist_all','grist_one','button','fetchButtonConfigTabHandler','gutter','grid-basic','5RhktsW','delete','basic','type','large','icon','220IiHGge','pages/meta-grist-element.js','push','stringify','trim','parameters','\x22record-view\x22','renderButtonConfigTab','startsWith','setButtonConfigTabConfig','16CWYSlI','grid-custom','custom','721698MDinOe','getElementValueById','getGristSelectableConfig','button-tab-grid','json5','viewButtonData','27155QTurMB','param_field','testScenario','label','meta-grist-element','fetch','17799RVImFn','deleteRow','1380220DltixO','1055547XogInK','setButtonConfigTabValues','grid','buttonTabGrist','logic','tLabel','47414MIBKYp','2518656aZNfyj'];a0_0x1902=function(){return _0x368750;};return a0_0x1902();}export const ButtonConfigTabMixin=_0x4deb9e=>class extends _0x4deb9e{[a0_0x4e820d(0xcb)](_0x7d4a8e){const _0x3ff514=a0_0x4e820d;_0x7d4a8e?.['forEach']((_0x50f469,_0x3f649a)=>{const _0x5e8d55=a0_0x43a7;let _0x4eb4a6=_0x3f649a+0x1;if(_0x50f469[_0x5e8d55(0xdf)]=0xa*_0x4eb4a6,_0x50f469['id']=_0x4eb4a6,_0x50f469['logic']&&!_0x50f469[_0x5e8d55(0xce)][_0x5e8d55(0xce)]){let _0x46e669=JSON[_0x5e8d55(0xb1)](_0x50f469[_0x5e8d55(0xce)],null,0x2);_0x50f469[_0x5e8d55(0xce)]={},_0x50f469[_0x5e8d55(0xce)]['logic']=_0x46e669;}_0x50f469[_0x5e8d55(0xd7)]&&Array['isArray'](_0x50f469['style'])&&(_0x50f469['style']=JSON[_0x5e8d55(0xb1)](_0x50f469['style'],null,0x2));}),this[_0x3ff514(0xc0)]=_0x7d4a8e,this[_0x3ff514(0xcd)]?.[_0x3ff514(0xc6)]();}[a0_0x4e820d(0xdd)](){const _0x1150c6=a0_0x4e820d;let _0x3a3900={'button':[],'grid':{'button':[]}},_0x4225c9=this[_0x1150c6(0xbc)](_0x1150c6(0xbe));return this['sortRecordByRank'](_0x4225c9)?.[_0x1150c6(0xd5)](_0x1b9d92=>{const _0x173dcf=_0x1150c6;var {name:_0x496771,label:_0x3b80ed,style:_0x1c1887,type:_0x2c101f='basic',logic:_0xc509fa}=_0x1b9d92;if(!_0x496771)return;let _0x25a130={'name':_0x496771,'type':_0x2c101f['replaceAll']('grid-',''),'label':_0x3b80ed||_0x496771};_0xc509fa&&('string'==typeof _0xc509fa&&(_0xc509fa=JSON[_0x173dcf(0xd2)](_0xc509fa)),_0xc509fa[_0x173dcf(0xce)]&&(_0x25a130[_0x173dcf(0xce)]=JSON['parse'](_0xc509fa[_0x173dcf(0xce)]))),_0x2c101f[_0x173dcf(0xb6)]('grid')?(_0x1c1887&&((_0x1c1887=_0x1c1887[_0x173dcf(0xb2)]())['startsWith']('[')&&(_0x1c1887=JSON['parse'](_0x1c1887)),_0x25a130[_0x173dcf(0xeb)]=_0x1c1887),_0x3a3900[_0x173dcf(0xcc)]['button'][_0x173dcf(0xb0)](_0x25a130)):(_0x1c1887&&(_0x25a130['style']=_0x1c1887),_0x3a3900['button'][_0x173dcf(0xb0)](_0x25a130));}),_0x3a3900;}[a0_0x4e820d(0xb5)](){const _0x6c95c1=a0_0x4e820d;return html`
2
+ <ox-grist auto-fetch id="button-tab-grid" .config=${this[_0x6c95c1(0xda)]} .mode='GRID'
3
+ .fetchHandler=${this['fetchButtonConfigTabHandler'][_0x6c95c1(0xd8)](this)}>
4
+ </ox-grist>
5
+ `;}get[a0_0x4e820d(0xcd)](){return this['shadowRoot']['querySelector']('#button-tab-grid');}async[a0_0x4e820d(0xe3)](){const _0x2027d1=a0_0x4e820d;return{'total':0x0,'records':this[_0x2027d1(0xc0)]||[]};}[a0_0x4e820d(0xb7)](){const _0x5daf97=a0_0x4e820d;this[_0x5daf97(0xda)]={'rows':MetaApi[_0x5daf97(0xbd)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x5daf97(0xdf),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x5daf97(0xe4),'gutterName':_0x5daf97(0xe2),'icon':_0x5daf97(0xe7),'handlers':{'click':(_0xa99d45,_0x2c58bf,_0x23c1f4,_0x52c1e9,_0x4f6ba9)=>{const _0x2dee1e=_0x5daf97;_0x52c1e9['id']&&this[_0x2dee1e(0xc8)](this[_0x2dee1e(0xcd)],_0x52c1e9);}}},{'type':'integer','name':_0x5daf97(0xdf),'header':TermsUtil[_0x5daf97(0xcf)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x5daf97(0xd6),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5daf97(0xdb),'name':'name','header':TermsUtil['tLabel']('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x5daf97(0xdc),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x5daf97(0xc4),'header':TermsUtil[_0x5daf97(0xcf)]('label'),'sortable':!0x1,'width':0xaf,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x5daf97(0xdb),'name':_0x5daf97(0xde),'header':TermsUtil[_0x5daf97(0xcf)](_0x5daf97(0xde)),'sortable':!0x1,'width':0xaf,'record':{'align':_0x5daf97(0xdc),'editable':!0x1,'mandatory':!0x1,'renderer':(_0x135aa0,_0x3bb4d7,_0x25dfe2,_0x37c827,_0x1cd452)=>_0x25dfe2&&_0x25dfe2['label']?TermsUtil['t'](_0x25dfe2['label'],null,_0x25dfe2[_0x5daf97(0xc4)]):_0x25dfe2&&_0x25dfe2['name']?TermsUtil['tButton'](_0x25dfe2['name']):''}},{'type':'select','name':_0x5daf97(0xe9),'header':TermsUtil[_0x5daf97(0xcf)](_0x5daf97(0xe9)),'sortable':!0x1,'width':0x64,'record':{'align':_0x5daf97(0xdc),'editable':!0x0,'mandatory':!0x0,'options':['',_0x5daf97(0xe8),_0x5daf97(0xba),_0x5daf97(0xe5),_0x5daf97(0xb9)]}},{'type':'string','name':_0x5daf97(0xd7),'header':TermsUtil['tLabel'](_0x5daf97(0xd7)),'sortable':!0x1,'width':0x9b,'record':{'align':'left','editable':!0x0,'mandatory':!0x1}},{'type':_0x5daf97(0xb3),'name':_0x5daf97(0xce),'header':TermsUtil[_0x5daf97(0xcf)]('logic'),'sortable':!0x1,'width':0xfa,'record':{'align':_0x5daf97(0xdc),'editable':!0x0,'mandatory':!0x1,'renderer':(_0x6b2c97,_0x5a8182,_0x15b350,_0x1a83c0,_0x491c58)=>{const _0x3a3a9e=_0x5daf97;if(_0x15b350[_0x3a3a9e(0xce)])_0x3a3a9e(0xe8)===_0x15b350['type']&&(_0x15b350['logic']=void 0x0);else{if('basic'===_0x15b350[_0x3a3a9e(0xe9)])delete _0x15b350[_0x3a3a9e(0xce)];else{if(_0x3a3a9e(0xba)===_0x15b350['type']){let _0x37869a={'logic':JSON['stringify']({'open_popup':{'title':'menu.variables','title_detail':_0x3a3a9e(0xd9),'type':'popup','tagname':_0x3a3a9e(0xc5),'location':_0x3a3a9e(0xaf),'size':_0x3a3a9e(0xea),'popup_field':_0x3a3a9e(0xc2),'parent_field':'id','param':['filter',_0x3a3a9e(0xe1),_0x3a3a9e(0xd3)]},'call_scenario':{'type':'scenario','name':_0x3a3a9e(0xc3),'after':_0x3a3a9e(0xc6),'param':['filter',_0x3a3a9e(0xe0),_0x3a3a9e(0xd3)]}},null,0x2)};_0x15b350[_0x3a3a9e(0xce)]=_0x37869a;}else{if('grid-basic'===_0x15b350['type']){let _0x48ec87={'logic':_0x3a3a9e(0xb4)};_0x15b350[_0x3a3a9e(0xce)]=_0x48ec87;}else{if('grid-custom'===_0x15b350['type']){let _0x17f9d6={'logic':JSON['stringify']({'open_popup':{'title':'menu.variables','title_detail':'name','type':'popup','tagname':'meta-grist-element','location':'pages/meta-grist-element.js','size':_0x3a3a9e(0xea),'popup_field':_0x3a3a9e(0xc2),'parent_field':'id'},'open_form_popup':{'type':'form','title':'title.detail','title_detail':'name','size':_0x3a3a9e(0xea),'menu':'operation-master'},'call_scenario':{'type':_0x3a3a9e(0xd4),'name':_0x3a3a9e(0xc3),'after':_0x3a3a9e(0xc6)}},null,0x2)};_0x15b350['logic']=_0x17f9d6;}else _0x15b350[_0x3a3a9e(0xce)]=void 0x0;}}}}return getRenderer(_0x3a3a9e(0xbf))(_0x6b2c97,_0x5a8182,_0x15b350,_0x1a83c0,_0x491c58);},'options':(_0x59ce40,_0x28bef7,_0x234cda,_0x141c3d,_0x480b45)=>{const _0x3cedae=_0x5daf97;var {name:_0x23a0af,help:_0x564269}={'name':TermsUtil[_0x3cedae(0xcf)](_0x3cedae(0xce)),'help':''};return{'name':_0x23a0af,'spec':[{'label':'script','name':_0x3cedae(0xce),'type':'textarea'}],'help':_0x564269,'context':this[_0x3cedae(0xcd)]};}}}]};}};