@things-factory/meta-ui 6.0.122 → 6.0.124

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.
Files changed (77) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +20 -5
  3. package/client/component/filter/filter-form-resource-code-select.ts +94 -0
  4. package/client/component/filter/filter-grist-resource-code-select.ts +95 -0
  5. package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -0
  6. package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -0
  7. package/client/component/grist/selector/ox-resource-code-selector-popup.js +40 -0
  8. package/client/mixin/meta-base-mixin.js +1 -1
  9. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  10. package/client/mixin/meta-button-mixin.js +1 -1
  11. package/client/mixin/meta-form-mixin.js +1 -1
  12. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  13. package/client/mixin/meta-master-detail-mixin.js +1 -1
  14. package/client/mixin/meta-service-mixin.js +1 -1
  15. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  16. package/client/mixin/meta-tab-mixin.js +1 -1
  17. package/client/pages/activity/meta-activity-list-page.js +6 -6
  18. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  19. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  20. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  21. package/client/pages/entity/config-entity.js +29 -29
  22. package/client/pages/entity/main-menu-selector.js +8 -8
  23. package/client/pages/history/history-copy-list-popup.js +5 -5
  24. package/client/pages/history/history-json-list-popup.js +6 -6
  25. package/client/pages/loading-page.js +5 -5
  26. package/client/pages/menu/dynamic-menu-template.js +7 -7
  27. package/client/pages/menu/dynamic-menu.js +15 -15
  28. package/client/pages/meta-form-element.js +1 -1
  29. package/client/pages/meta-grist-element.js +1 -1
  30. package/client/pages/meta-grist-page.js +1 -1
  31. package/client/pages/meta-grist-tab-element.js +1 -1
  32. package/client/pages/meta-grist-tab-page.js +1 -1
  33. package/client/pages/meta-master-detail-element.js +1 -1
  34. package/client/pages/meta-master-detail-page.js +1 -1
  35. package/client/pages/meta-tab-detail-element.js +1 -1
  36. package/client/pages/meta-tab-detail-page.js +1 -1
  37. package/client/pages/meta-tab-element.js +1 -1
  38. package/client/pages/personalize/personal-column-selector.js +11 -11
  39. package/client/pages/terms/config-terminology.js +6 -6
  40. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  41. package/client/pages/work-code/work-code-page.js +1 -1
  42. package/client/reducers/main.js +1 -1
  43. package/client/utils/meta-api.js +1 -1
  44. package/client/utils/meta-crypto.js +1 -1
  45. package/client/utils/meta-ui-util.js +95 -95
  46. package/client/utils/service-util.js +13 -13
  47. package/client/utils/terms-util.js +2 -2
  48. package/client/utils/ui-util.js +1 -1
  49. package/client/utils/value-util.js +1 -1
  50. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  51. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  52. package/client/viewparts/dynamic-menu-part.js +10 -10
  53. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  54. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  55. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  56. package/package.json +5 -5
  57. package/server/activity/CommonActivity.js +2 -2
  58. package/server/constants/error-code.js +1 -1
  59. package/server/errors/license-error.js +1 -1
  60. package/server/routes.js +1 -1
  61. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  62. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  63. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  64. package/server/service/grid-personalize/grid-personalize.js +1 -1
  65. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  66. package/server/service/meta-activity/meta-activity-query.js +1 -1
  67. package/server/service/meta-activity/meta-activity-type.js +1 -1
  68. package/server/service/meta-secret/meta-resolver.js +1 -1
  69. package/server/service/set-translations/set-translation-resolver.js +1 -1
  70. package/server/service/work-code/work-code-mutation.js +1 -1
  71. package/server/service/work-code/work-code-query.js +1 -1
  72. package/server/service/work-code/work-code-type.js +1 -1
  73. package/server/service/work-code/work-code.js +1 -1
  74. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  75. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  76. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  77. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,7 +1,7 @@
1
- const a0_0x3f9b71=a0_0x4186;(function(_0x564824,_0x2979e0){const _0x2338f1=a0_0x4186,_0x5825b2=_0x564824();while(!![]){try{const _0x5787b3=-parseInt(_0x2338f1(0x17f))/0x1+parseInt(_0x2338f1(0x175))/0x2+parseInt(_0x2338f1(0x16c))/0x3+-parseInt(_0x2338f1(0x17a))/0x4*(parseInt(_0x2338f1(0x181))/0x5)+parseInt(_0x2338f1(0x173))/0x6*(parseInt(_0x2338f1(0x170))/0x7)+parseInt(_0x2338f1(0x172))/0x8+-parseInt(_0x2338f1(0x16d))/0x9;if(_0x5787b3===_0x2979e0)break;else _0x5825b2['push'](_0x5825b2['shift']());}catch(_0x1becfb){_0x5825b2['push'](_0x5825b2['shift']());}}}(a0_0x4ac8,0x48756));import'../viewparts/dynamic-menu-part';function a0_0x4ac8(){const _0x90e1dd=['3936bohWTH','query','618794BOJPRi','FRONT_END','portrait','dynamic-menu-part','liteMenus','28516xQBufQ','content','dynamic-menu','meta[name=\x22application-name\x22]','HEADERBAR','277683ZLijLc','UPDATE_META_MENU_TEMPLATE','110mTxBWk','active','dispatch','appName','lite-menu-part','hamburger','UPDATE_META_UI','1019403taZgAi','7702029vWaCnK','items','filter','6118AbkzDM','landscape','2916400kbmyUt'];a0_0x4ac8=function(){return _0x90e1dd;};return a0_0x4ac8();}import'@material/mwc-icon';import a0_0x53cd73 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';function a0_0x4186(_0x19e9f1,_0x10ad55){const _0x4ac877=a0_0x4ac8();return a0_0x4186=function(_0x4186d4,_0x1964a8){_0x4186d4=_0x4186d4-0x169;let _0x2857b0=_0x4ac877[_0x4186d4];return _0x2857b0;},a0_0x4186(_0x19e9f1,_0x10ad55);}import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x3f9b71(0x16b);export const UPDATE_META_MENU_TEMPLATE=a0_0x3f9b71(0x180);var HAMBURGER;export async function setupMenuPart(_0x5c55f2){const _0xcd8669=a0_0x3f9b71;var {hovering:_0x3ff2fd=!!isMobileDevice(),slotTemplate:_0x1b0cd7,portraitSlotTemplate:_0x50fd11,landscapeSlotTemplate:_0x6e52d2,position:_0xbbc367=VIEWPART_POSITION['NAVBAR']}=_0x5c55f2||{};const {hovering:_0x10e705}=(await clientSettingStore['get'](_0xcd8669(0x17c)))?.['value']||{};void 0x0!==_0x10e705&&(_0x3ff2fd=_0x10e705);const _0x328da2=_0xbbc367==VIEWPART_POSITION[_0xcd8669(0x17e)]?_0xcd8669(0x171):_0xcd8669(0x177),_0x1ba207=('landscape'==_0x328da2?_0x6e52d2:_0x50fd11)||_0x1b0cd7||html``;appendViewpart({'name':_0xcd8669(0x169),'viewpart':{'show':!_0x3ff2fd,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x3ff2fd,'template':html`<dynamic-menu-part .orientation=${_0x328da2}>${_0x1ba207}</dynamic-menu-part>`},'position':_0xbbc367}),_0x3ff2fd&&'portrait'==_0x328da2?HAMBURGER||(HAMBURGER={'name':_0xcd8669(0x16a),'template':html`
2
- <mwc-icon @click=${_0x3710da=>toggleOverlay(_0xcd8669(0x178),{'backdrop':!0x0})}
1
+ function a0_0x14ea(){const _0x3f7f04=['landscape','30gvJBli','lite-menu-part','168905xmcyxS','hamburger','1470ygrmZB','filter','items','15DgbxWg','1327953BUOaeD','6732RbMQLo','rank','139886LUdmVI','4804FkaxQt','get','50496YtNtIM','UPDATE_META_UI','FRONT_END','UPDATE_META_MENU_TEMPLATE','appName','portrait','active','6YeOaPK','liteMenus','data','dispatch','dynamic-menu-part','querySelector','162oVIhgh','2737956bISVxe','HEADERBAR'];a0_0x14ea=function(){return _0x3f7f04;};return a0_0x14ea();}const a0_0x1e60c8=a0_0x13ec;(function(_0x33d645,_0x2cbc39){const _0x4f7094=a0_0x13ec,_0x1fb4ae=_0x33d645();while(!![]){try{const _0x2612ae=-parseInt(_0x4f7094(0x132))/0x1+parseInt(_0x4f7094(0x11c))/0x2*(parseInt(_0x4f7094(0x126))/0x3)+-parseInt(_0x4f7094(0x11d))/0x4*(parseInt(_0x4f7094(0x137))/0x5)+-parseInt(_0x4f7094(0x139))/0x6*(-parseInt(_0x4f7094(0x134))/0x7)+-parseInt(_0x4f7094(0x11f))/0x8*(-parseInt(_0x4f7094(0x12c))/0x9)+parseInt(_0x4f7094(0x130))/0xa*(-parseInt(_0x4f7094(0x138))/0xb)+parseInt(_0x4f7094(0x12d))/0xc;if(_0x2612ae===_0x2cbc39)break;else _0x1fb4ae['push'](_0x1fb4ae['shift']());}catch(_0x207661){_0x1fb4ae['push'](_0x1fb4ae['shift']());}}}(a0_0x14ea,0x2c950));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x174d1d from'graphql-tag';function a0_0x13ec(_0x1e95a4,_0x301e45){const _0x14eae2=a0_0x14ea();return a0_0x13ec=function(_0x13ecc9,_0x33214f){_0x13ecc9=_0x13ecc9-0x11c;let _0x41f309=_0x14eae2[_0x13ecc9];return _0x41f309;},a0_0x13ec(_0x1e95a4,_0x301e45);}import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x1e60c8(0x120);export const UPDATE_META_MENU_TEMPLATE=a0_0x1e60c8(0x122);var HAMBURGER;export async function setupMenuPart(_0x467cf6){const _0x10e6ce=a0_0x1e60c8;var {hovering:_0x421200=!!isMobileDevice(),slotTemplate:_0xff5a38,portraitSlotTemplate:_0x430c75,landscapeSlotTemplate:_0x142473,position:_0x1b9445=VIEWPART_POSITION['NAVBAR']}=_0x467cf6||{};const {hovering:_0x8a9364}=(await clientSettingStore[_0x10e6ce(0x11e)]('dynamic-menu'))?.['value']||{};void 0x0!==_0x8a9364&&(_0x421200=_0x8a9364);const _0xb5fae1=_0x1b9445==VIEWPART_POSITION[_0x10e6ce(0x12e)]?'landscape':'portrait',_0x14ba46=(_0x10e6ce(0x12f)==_0xb5fae1?_0x142473:_0x430c75)||_0xff5a38||html``;appendViewpart({'name':_0x10e6ce(0x131),'viewpart':{'show':!_0x421200,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x421200,'template':html`<dynamic-menu-part .orientation=${_0xb5fae1}>${_0x14ba46}</dynamic-menu-part>`},'position':_0x1b9445}),_0x421200&&_0x10e6ce(0x124)==_0xb5fae1?HAMBURGER||(HAMBURGER={'name':_0x10e6ce(0x133),'template':html`
2
+ <mwc-icon @click=${_0x1a4a37=>toggleOverlay(_0x10e6ce(0x12a),{'backdrop':!0x0})}
3
3
  >view_headline</mwc-icon>
4
- `,'position':TOOL_POSITION[_0xcd8669(0x176)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0xcd8669(0x183)]({'type':REMOVE_APP_TOOL,'name':_0xcd8669(0x16a)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x588f92){const _0x1626c3=a0_0x3f9b71;var _0x16c850=document['querySelector'](_0x1626c3(0x17d))?.[_0x1626c3(0x17b)],_0x2124dc=(await client[_0x1626c3(0x174)]({'query':a0_0x53cd73`
4
+ `,'position':TOOL_POSITION[_0x10e6ce(0x121)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x10e6ce(0x129)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x51cbd5){const _0x1664f5=a0_0x1e60c8;var _0x538c64=document[_0x1664f5(0x12b)]('meta[name=\x22application-name\x22]')?.['content'],_0x2b19a6=(await client['query']({'query':a0_0x174d1d`
5
5
  query ($filters: [Filter!], $sortings: [Sorting!]) {
6
6
  liteMenus: liteMenus(filters: $filters
7
7
  sortings: $sortings) {
@@ -20,4 +20,4 @@ const a0_0x3f9b71=a0_0x4186;(function(_0x564824,_0x2979e0){const _0x2338f1=a0_0x
20
20
  total
21
21
  }
22
22
  }
23
- `,'variables':{'filters':[{'name':_0x1626c3(0x182),'operator':'eq','value':!0x0},{'name':_0x1626c3(0x184),'operator':'in','value':['',_0x16c850]}],'sortings':[{'name':'rank','desc':!0x1}]}}))['data'][_0x1626c3(0x179)][_0x1626c3(0x16e)];store[_0x1626c3(0x183)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2124dc[_0x1626c3(0x16f)](_0x2308f4=>!_0x2308f4[_0x1626c3(0x184)]||_0x2308f4[_0x1626c3(0x184)]===_0x16c850),'template':_0x588f92});}
23
+ `,'variables':{'filters':[{'name':_0x1664f5(0x125),'operator':'eq','value':!0x0},{'name':_0x1664f5(0x123),'operator':'in','value':['',_0x538c64]}],'sortings':[{'name':_0x1664f5(0x13a),'desc':!0x1}]}}))[_0x1664f5(0x128)][_0x1664f5(0x127)][_0x1664f5(0x136)];store[_0x1664f5(0x129)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2b19a6[_0x1664f5(0x135)](_0x4d4769=>!_0x4d4769[_0x1664f5(0x123)]||_0x4d4769[_0x1664f5(0x123)]===_0x538c64),'template':_0x51cbd5});}
@@ -5,21 +5,36 @@ import { ADD_MORENDA } from '@things-factory/more-base'
5
5
  import { navigate, store } from '@things-factory/shell'
6
6
  import { navigateWithSilence, UPDATE_MODULES } from '@operato/shell'
7
7
 
8
- import { registerEditor as gristColumnRegisterEditor, registerRenderer as gristColumnRegisterRenderer,
9
- registerFilterRenderer as gristRegisterFilterRenderer, getFilterRenderer as girstGetFilterRenderer} from '@operato/data-grist'
10
- import { registerFilterRenderer as formRegisterFilterRenderer, getFilterRenderer as formGetFilterRenderer} from '@operato/form'
11
-
12
-
13
8
  import { updateMenuTemplate } from './actions/main'
14
9
  import metaUI from './reducers/main'
15
10
  import { TermsUtil } from './utils/terms-util'
16
11
  import { MetaApi } from './utils/meta-api'
17
12
 
13
+ import { registerEditor as gristColumnRegisterEditor,
14
+ registerRenderer as gristColumnRegisterRenderer,
15
+ registerFilterRenderer as gristRegisterFilterRenderer } from '@operato/data-grist'
16
+ import { registerFilterRenderer as formRegisterFilterRenderer } from '@operato/form'
17
+
18
+ import { OxGristRendererResourceCodeSelector } from './component/grist/renderer/ox-grist-renderer-resource-code-selector'
19
+ import { OxGristEditorResourceCodeSelector } from './component/grist/editor/ox-grist-editor-resource-code-selector'
20
+
21
+ import { FilterGristResourceCodeSelect } from './component/filter/filter-grist-resource-code-select'
22
+ import { FilterFormResourceCodeSelect } from './component/filter/filter-form-resource-code-select'
23
+
18
24
 
19
25
  export default function bootstrap() {
20
26
  import(`./pages/activity/meta-activity-writer-element`)
21
27
  import(`./pages/activity/meta-activity-viewer-element`)
22
28
 
29
+ // resource-selector 타입
30
+ gristColumnRegisterRenderer('resource-code-selector',OxGristRendererResourceCodeSelector);
31
+ gristColumnRegisterEditor('resource-code-selector', OxGristEditorResourceCodeSelector);
32
+
33
+ gristRegisterFilterRenderer('resource-code-selector',[FilterGristResourceCodeSelect]);
34
+ formRegisterFilterRenderer('resource-code-selector',[FilterFormResourceCodeSelect]);
35
+
36
+
37
+
23
38
  store.addReducers({
24
39
  metaUI
25
40
  })
@@ -0,0 +1,94 @@
1
+ import '@operato/input/ox-checkbox.js'
2
+ import '../grist/selector/ox-resource-code-selector-popup'
3
+
4
+ import { html } from 'lit-html'
5
+
6
+ import { FilterConfig, FilterSelectRenderer } from '@operato/form'
7
+ import { i18next } from '@operato/i18n'
8
+ import { openPopup } from '@operato/layout'
9
+
10
+ type SelectedCallback = (value: { id: string; name: string; description: string }) => void
11
+
12
+ function openResourceCodeSelector(filter: FilterConfig, value: any, confirmCallback: SelectedCallback) {
13
+ const { queryName, select, list, basicArgs, valueField = 'id' } = filter.options || {}
14
+
15
+ var actualValue
16
+ if (typeof valueField === 'function') {
17
+ actualValue = valueField(value)
18
+ } else {
19
+ actualValue = value?.[valueField]
20
+ }
21
+
22
+ var template = html`
23
+ <ox-resource-code-selector-popup
24
+ .value=${actualValue}
25
+ .confirmCallback=${confirmCallback}
26
+ .queryName=${queryName}
27
+ .select=${select}
28
+ .list=${list}
29
+ .basicArgs=${basicArgs}
30
+ .valueField=${valueField}
31
+ ></ox-resource-code-selector-popup>
32
+ `
33
+
34
+ const popup = openPopup(template, {
35
+ backdrop: true,
36
+ size: 'large',
37
+ title: i18next.t('title.select_item')
38
+ })
39
+ }
40
+
41
+ export const FilterFormResourceCodeSelect: FilterSelectRenderer = (filter, value, owner) => {
42
+ const { name, operator = 'like' } = filter
43
+
44
+ return operator === 'like'
45
+ ? html` <input
46
+ type="text"
47
+ name=${name}
48
+ .value=${value}
49
+ @change=${(e: CustomEvent) => {
50
+ const input = e.target as HTMLInputElement
51
+ input.dispatchEvent(
52
+ new CustomEvent('filter-change', {
53
+ bubbles: true,
54
+ composed: true,
55
+ detail: {
56
+ name,
57
+ operator,
58
+ value: input.value
59
+ }
60
+ })
61
+ )
62
+ }}
63
+ />`
64
+ : operator == 'in'
65
+ ? html``
66
+ : operator === 'eq'
67
+ ? html`
68
+ <input
69
+ style="min-width: 100px; min-height: 24px"
70
+ type="text"
71
+ name=${name}
72
+ .value=${value}
73
+ readonly
74
+ @click=${(e: Event) => {
75
+ e.stopPropagation()
76
+
77
+ const confirmCallback = (selected?: { [field: string]: any }) => {
78
+ var { idField = 'id', nameField = 'name', descriptionField = 'description' } = filter.options || {}
79
+
80
+ owner.dispatchEvent(
81
+ new CustomEvent('filter-change', {
82
+ bubbles: true,
83
+ composed: true,
84
+ detail: selected ? selected[idField] : ''
85
+ })
86
+ )
87
+ }
88
+
89
+ openResourceCodeSelector(filter, value, confirmCallback)
90
+ }}
91
+ />
92
+ `
93
+ : html``
94
+ }
@@ -0,0 +1,95 @@
1
+ import '@operato/input/ox-checkbox.js'
2
+ import '../grist/selector/ox-resource-code-selector-popup'
3
+
4
+ import { html } from 'lit-html'
5
+
6
+ import { ColumnConfig, FilterConfigObject, FilterSelectRenderer } from '@operato/data-grist'
7
+ import { i18next } from '@operato/i18n'
8
+ import { openPopup } from '@operato/layout'
9
+
10
+ type SelectedCallback = (value: { id: string; name: string; description: string }) => void
11
+
12
+ function openResourceCodeSelector(column: ColumnConfig, value: any, confirmCallback: SelectedCallback) {
13
+ const { queryName, select, list, basicArgs, valueField = 'id' } = column.record.options
14
+
15
+ var actualValue
16
+ if (typeof valueField === 'function') {
17
+ actualValue = valueField(value)
18
+ } else {
19
+ actualValue = value?.[valueField]
20
+ }
21
+
22
+ var template = html`
23
+ <ox-resource-code-selector-popup
24
+ .value=${actualValue}
25
+ .confirmCallback=${confirmCallback}
26
+ .queryName=${queryName}
27
+ .select=${select}
28
+ .list=${list}
29
+ .basicArgs=${basicArgs}
30
+ .valueField=${valueField}
31
+ ></ox-resource-code-selector-popup>
32
+ `
33
+
34
+ const popup = openPopup(template, {
35
+ backdrop: true,
36
+ size: 'large',
37
+ title: i18next.t('title.select_item')
38
+ })
39
+ }
40
+
41
+ export const FilterGristResourceCodeSelect: FilterSelectRenderer = (column, value, owner) => {
42
+ const filter = column.filter as FilterConfigObject
43
+ const { operator = 'like' } = filter
44
+
45
+ return operator === 'like'
46
+ ? html` <input
47
+ type="text"
48
+ name=${column.name}
49
+ .value=${value}
50
+ @change=${(e: CustomEvent) => {
51
+ const input = e.target as HTMLInputElement
52
+ input.dispatchEvent(
53
+ new CustomEvent('filter-change', {
54
+ bubbles: true,
55
+ composed: true,
56
+ detail: {
57
+ name: column.name,
58
+ operator,
59
+ value: input.value
60
+ }
61
+ })
62
+ )
63
+ }}
64
+ />`
65
+ : operator == 'in'
66
+ ? html``
67
+ : operator === 'eq'
68
+ ? html`
69
+ <input
70
+ style="min-width: 100px; min-height: 24px"
71
+ type="text"
72
+ name=${column.name}
73
+ .value=${value}
74
+ readonly
75
+ @click=${(e: Event) => {
76
+ e.stopPropagation()
77
+
78
+ const confirmCallback = (selected?: { [field: string]: any }) => {
79
+ var { idField = 'id', nameField = 'name', descriptionField = 'description' } = column.record.options || {}
80
+
81
+ owner.dispatchEvent(
82
+ new CustomEvent('filter-change', {
83
+ bubbles: true,
84
+ composed: true,
85
+ detail: selected ? selected[idField] : ''
86
+ })
87
+ )
88
+ }
89
+
90
+ openResourceCodeSelector(column, value, confirmCallback)
91
+ }}
92
+ />
93
+ `
94
+ : html``
95
+ }
@@ -0,0 +1,9 @@
1
+ const a0_0x26edef=a0_0x5477;(function(_0x242780,_0x3f72f3){const _0x55f505=a0_0x5477,_0x33522b=_0x242780();while(!![]){try{const _0xabe2f8=parseInt(_0x55f505(0x116))/0x1+parseInt(_0x55f505(0x10e))/0x2+-parseInt(_0x55f505(0x108))/0x3+-parseInt(_0x55f505(0x113))/0x4+parseInt(_0x55f505(0x102))/0x5+-parseInt(_0x55f505(0x10c))/0x6+parseInt(_0x55f505(0x11c))/0x7;if(_0xabe2f8===_0x3f72f3)break;else _0x33522b['push'](_0x33522b['shift']());}catch(_0xa9fc6d){_0x33522b['push'](_0x33522b['shift']());}}}(a0_0x339e,0x7c088));import{html}from'lit';function a0_0x5477(_0x2291be,_0x531e5b){const _0x339e2a=a0_0x339e();return a0_0x5477=function(_0x54770c,_0x2adf39){_0x54770c=_0x54770c-0x100;let _0x3711f8=_0x339e2a[_0x54770c];return _0x3711f8;},a0_0x5477(_0x2291be,_0x531e5b);}import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../selector/ox-resource-code-selector-popup';function a0_0x339e(){const _0x3fc0f1=['length','properties','937460aGxVFx','tMenu','Enter','833968pJDmkA','dispatchEvent','column','editorTemplate','firstUpdated','push','3260670iRFueK','options','stopPropagation','codes','openSelector','key','4261725PfuPrN','codeField','row','large','value','filter','2544768TkmWym','record','popup','define','3653736AhCpwt','_onkeydown','94988OntrrI','ox-grist-editor-resource-code-selector','display'];a0_0x339e=function(){return _0x3fc0f1;};return a0_0x339e();}export class OxGristEditorResourceCodeSelector extends OxGristEditor{static get[a0_0x26edef(0x112)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x26edef(0x119)](){const _0xd3ebc0=a0_0x26edef;let _0x4d0cb7,_0x32fdba=this[_0xd3ebc0(0x118)][_0xd3ebc0(0x109)][_0xd3ebc0(0x11d)][_0xd3ebc0(0x11f)]||[];if(this[_0xd3ebc0(0x106)]&&this[_0xd3ebc0(0x106)][_0xd3ebc0(0x111)]>0x0){let _0xd291be=_0x32fdba[_0xd3ebc0(0x107)](_0x267fbc=>_0x267fbc[_0xd3ebc0(0x106)]===this[_0xd3ebc0(0x106)]);_0x4d0cb7=_0xd291be&&_0xd291be[_0xd3ebc0(0x111)]>0x0?_0xd291be[0x0][_0xd3ebc0(0x110)]:'';}return html`
2
+ ${_0x4d0cb7?html` <span tabindex="0" style="flex:1">${_0x4d0cb7}</span> `:html`<span tabindex="0"></span>`}
3
+ `;}async[a0_0x26edef(0x11a)](){const _0x403ce7=a0_0x26edef;super[_0x403ce7(0x11a)]();}['_onclick'](_0x4e2a07){const _0x40248f=a0_0x26edef;_0x4e2a07[_0x40248f(0x11e)](),this[_0x40248f(0x100)]();}[a0_0x26edef(0x10d)](_0x453448){const _0x26085d=a0_0x26edef;_0x26085d(0x115)==_0x453448[_0x26085d(0x101)]&&(_0x453448['stopPropagation'](),this[_0x26085d(0x100)]());}[a0_0x26edef(0x100)](){const _0x9aaf96=a0_0x26edef;this[_0x9aaf96(0x10a)]&&delete this[_0x9aaf96(0x10a)];var {selectorName:_0xfc2ac2=''}=this[_0x9aaf96(0x118)][_0x9aaf96(0x109)][_0x9aaf96(0x11d)]||{},_0xd250db=html`
4
+ <ox-resource-code-selector-popup
5
+ .value=${this[_0x9aaf96(0x106)]}
6
+ .options=${this[_0x9aaf96(0x118)]['record'][_0x9aaf96(0x11d)]}
7
+ .confirmCallback=${(_0x45bed0=>{const _0x193650=_0x9aaf96;let _0xf2f753=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x103)],_0x250e8a=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['dispField'];this[_0x193650(0x118)]['record'][_0x193650(0x11d)][_0x193650(0x11f)]||(this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['codes']=[]);let _0x38e441=this['column'][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x11f)][_0x193650(0x107)](_0x405caa=>_0x405caa['value']==_0x45bed0[_0xf2f753]);_0x38e441&&0x0!=_0x38e441['length']||this[_0x193650(0x118)]['record']['options'][_0x193650(0x11f)][_0x193650(0x11b)]({'value':_0x45bed0[_0xf2f753],'display':_0x45bed0[_0x250e8a]}),this[_0x193650(0x117)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x193650(0x106)],'after':_0x45bed0?_0x45bed0[_0xf2f753]:null,'record':this[_0x193650(0x109)],'column':this['column'],'row':this[_0x193650(0x104)]}}));})['bind'](this)}
8
+ ></ox-resource-code-selector-popup>
9
+ `;this[_0x9aaf96(0x10a)]=openPopup(_0xd250db,{'backdrop':!0x0,'size':_0x9aaf96(0x105),'title':TermsUtil[_0x9aaf96(0x114)](_0xfc2ac2)});}}customElements[a0_0x26edef(0x10b)](a0_0x26edef(0x10f),OxGristEditorResourceCodeSelector);
@@ -0,0 +1 @@
1
+ (function(_0x527692,_0x299b37){const _0xd6dcc8=a0_0x5594,_0xd2d769=_0x527692();while(!![]){try{const _0x564a67=parseInt(_0xd6dcc8(0x80))/0x1*(-parseInt(_0xd6dcc8(0x7f))/0x2)+-parseInt(_0xd6dcc8(0x82))/0x3*(-parseInt(_0xd6dcc8(0x7e))/0x4)+parseInt(_0xd6dcc8(0x7c))/0x5+parseInt(_0xd6dcc8(0x8a))/0x6*(-parseInt(_0xd6dcc8(0x88))/0x7)+-parseInt(_0xd6dcc8(0x81))/0x8*(parseInt(_0xd6dcc8(0x7a))/0x9)+parseInt(_0xd6dcc8(0x7d))/0xa*(parseInt(_0xd6dcc8(0x86))/0xb)+-parseInt(_0xd6dcc8(0x85))/0xc;if(_0x564a67===_0x299b37)break;else _0xd2d769['push'](_0xd2d769['shift']());}catch(_0x22d743){_0xd2d769['push'](_0xd2d769['shift']());}}}(a0_0x3756,0x46aac));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x5594(_0x4e48de,_0x22a82f){const _0x3756bc=a0_0x3756();return a0_0x5594=function(_0x5594de,_0x3b9c49){_0x5594de=_0x5594de-0x78;let _0x38a84a=_0x3756bc[_0x5594de];return _0x38a84a;},a0_0x5594(_0x4e48de,_0x22a82f);}function a0_0x3756(){const _0x1b34d4=['data-tooltip','record','63iAaDAj','target','1526900BMbPrk','110PNKRUe','1516fQRMRj','86620qdinyg','5DTFBQQ','330696fGlXsE','4077kBAzxP','filter','removeAttribute','3443760OOTTnd','326117kdbzVM','length','7FbVIyn','value','385302GlgudK','display'];a0_0x3756=function(){return _0x1b34d4;};return a0_0x3756();}function onmouseover(_0x36b5b8){const _0x4a83cb=a0_0x5594,_0x238b4b=_0x36b5b8[_0x4a83cb(0x7b)];detectOverflow(_0x238b4b)&&_0x238b4b['setAttribute'](_0x4a83cb(0x78),_0x238b4b['textContent']);}function onmouseout(_0x1343c4){const _0x50d637=a0_0x5594;_0x1343c4[_0x50d637(0x7b)][_0x50d637(0x84)]('data-tooltip');}export const OxGristRendererResourceCodeSelector=(_0x56ff61,_0xde5195,_0x10caeb,_0x2be8af,_0x2ef4c9)=>{const _0x1a5dc6=a0_0x5594;let _0x568ad7=_0xde5195[_0x1a5dc6(0x79)]['options']['codes']||[],_0x4959fd='';if(_0x56ff61&&_0x56ff61[_0x1a5dc6(0x87)]>0x0){let _0x5eac51=_0x568ad7[_0x1a5dc6(0x83)](_0x2268a2=>_0x2268a2[_0x1a5dc6(0x89)]===_0x56ff61);_0x4959fd=_0x5eac51&&_0x5eac51[_0x1a5dc6(0x87)]>0x0?_0x5eac51[0x0][_0x1a5dc6(0x8b)]:_0x56ff61;}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x4959fd}</span>`;};
@@ -0,0 +1,40 @@
1
+ const a0_0x41825f=a0_0x26f7;(function(_0x176b78,_0x3b03bd){const _0x252a9e=a0_0x26f7,_0x99d04a=_0x176b78();while(!![]){try{const _0x1cee56=parseInt(_0x252a9e(0x1c5))/0x1+parseInt(_0x252a9e(0x1c4))/0x2+-parseInt(_0x252a9e(0x1cd))/0x3*(parseInt(_0x252a9e(0x201))/0x4)+parseInt(_0x252a9e(0x1d5))/0x5*(-parseInt(_0x252a9e(0x1f0))/0x6)+parseInt(_0x252a9e(0x1f5))/0x7+parseInt(_0x252a9e(0x1fd))/0x8+-parseInt(_0x252a9e(0x1cf))/0x9;if(_0x1cee56===_0x3b03bd)break;else _0x99d04a['push'](_0x99d04a['shift']());}catch(_0x11ccf1){_0x99d04a['push'](_0x99d04a['shift']());}}}(a0_0x2177,0x991a0));import{css,html,LitElement}from'lit';function a0_0x26f7(_0x26ca74,_0x276e60){const _0x217775=a0_0x2177();return a0_0x26f7=function(_0x26f760,_0x368155){_0x26f760=_0x26f760-0x1c2;let _0x4ef1e4=_0x217775[_0x26f760];return _0x4ef1e4;},a0_0x26f7(_0x26ca74,_0x276e60);}function a0_0x2177(){const _0xa33d2c=['name','grist','6312012oojdkT','render','string','filters','selected','header','getGristColumnConfig2','showToast','9902224qNSFjQ','push','queryName','filter','2984YxxuZJ','handlers','filterFields','styles','confirmCallback','getGristGuttersConfig','sorters','select','record','define','isArray','dispField','#ox-grist','scenario','querySelector','2163076KgMkJZ','995139lTMPCi','values','type','entity','gridConfig','columns','selectRecord','resource-object','4350HBVpab','empty','16480269eAnDvx','tButton','getCodeByEntity','cancel','GRID','search_hidden_fields','1690565ejwFEM','clickCancel','forEach','codes','NOTHING_SELECTED','bind','args','ox-resource-code-selector-popup','info','rows','object','tLabel','searchByPagination','clickSelect','left','tText','getSelectColumns','select-row-toggle','connectedCallback','getCodeSelectorData','firstUpdated','getGristPagination100Config','getGristSelectableConfig','code','codeField','options','fetchHandler','12LVJPZH','length','clickEmpty'];a0_0x2177=function(){return _0xa33d2c;};return a0_0x2177();}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../../utils/terms-util';import{ValueUtil}from'../../../utils/value-util';import{ServiceUtil}from'../../../utils/service-util';import{MetaApi}from'../../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class OxResourceCodeSelectorPopup extends LitElement{static [a0_0x41825f(0x204)]=[CommonGristStyles,ButtonContainerStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ background-color: #fff;
7
+
8
+ width: var(--overlay-center-normal-width, 50%);
9
+ height: var(--overlay-center-normal-height, 50%);
10
+ }
11
+
12
+ ox-grist {
13
+ flex: 1;
14
+ }
15
+
16
+ .button-container {
17
+ display: flex;
18
+ margin-left: auto;
19
+ }
20
+ `];async[a0_0x41825f(0x1e7)](){const _0x374d4c=a0_0x41825f;this['search_hidden_fields']=this[_0x374d4c(0x1ee)][_0x374d4c(0x1f8)]||[];let _0x3079b1=[...MetaApi[_0x374d4c(0x206)](!0x0,!0x1)],_0x1f96a1=(this[_0x374d4c(0x1ee)]['filterFields']&&this['options'][_0x374d4c(0x203)][_0x374d4c(0x1f1)]>0x0?this[_0x374d4c(0x1ee)][_0x374d4c(0x203)]:[this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x20c)]])['map'](_0x3cd5b3=>{const _0x4cd269=_0x374d4c;let {name:_0x5c55c7,operator:_0x3d7c85='eq'}=_0x4cd269(0x1df)==typeof _0x3cd5b3?_0x3cd5b3:{'name':_0x3cd5b3};return{'name':_0x5c55c7,'operator':_0x3d7c85};});if(this[_0x374d4c(0x1ee)]['select']&&this[_0x374d4c(0x1ee)][_0x374d4c(0x208)]['length']>0x0)for(let _0x50c309=0x0;_0x50c309<this['options']['select'][_0x374d4c(0x1f1)];_0x50c309++){let {type:_0xa52769=_0x374d4c(0x1f7),name:_0x579afe,hidden:_0x19b574=!0x1,align:_0x4c789c=_0x374d4c(0x1e3),header:_0x297983,sortable:_0x36f30a=!0x1,width:_0x4ba94c=0x87,options:_0x47666b}=this['options']['select'][_0x50c309];if(0x1==_0x19b574)_0x3079b1['push']({'type':_0x374d4c(0x1f7),'name':_0x579afe,'hidden':!0x0});else{let _0x2215aa=MetaApi[_0x374d4c(0x1fb)](_0xa52769,_0x579afe,_0x297983||_0x579afe,_0x4c789c,!0x1,_0x36f30a,_0x4ba94c);_0x374d4c(0x208)===_0xa52769?Array[_0x374d4c(0x20b)](_0x47666b)?_0x2215aa['record'][_0x374d4c(0x1ee)]=_0x47666b:_0x374d4c(0x1ec)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa['record'][_0x374d4c(0x1ee)]=await ServiceUtil[_0x374d4c(0x1e8)](_0x47666b[_0x374d4c(0x1c6)]?_0x47666b[_0x374d4c(0x1c6)]:_0x47666b['name']):_0x374d4c(0x1c2)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=await ServiceUtil['getCodeByScenario'](_0x47666b['name'],_0x47666b['args']):_0x374d4c(0x1c8)===_0x47666b[_0x374d4c(0x1c7)]&&(_0x2215aa[_0x374d4c(0x209)]['options']=await ServiceUtil[_0x374d4c(0x1d1)](_0x47666b[_0x374d4c(0x1db)])):'object'===_0xa52769||_0x374d4c(0x1cc)===_0xa52769?(_0x47666b[_0x374d4c(0x208)]&&_0x47666b['select']['forEach'](_0x4cd075=>{const _0x37ef3e=_0x374d4c;_0x4cd075[_0x37ef3e(0x1fa)]||(_0x4cd075[_0x37ef3e(0x1fa)]=_0x4cd075[_0x37ef3e(0x1f3)]),_0x4cd075['header']=TermsUtil[_0x37ef3e(0x1e0)](_0x4cd075[_0x37ef3e(0x1fa)]);}),_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=_0x47666b):'resource-code-selector'==_0xa52769&&(_0x2215aa['record'][_0x374d4c(0x1ee)]=object_opt,_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)][_0x374d4c(0x1d8)]=await ServiceUtil[_0x374d4c(0x1d1)](object_opt)),_0x3079b1[_0x374d4c(0x1fe)](_0x2215aa);}}else _0x3079b1[_0x374d4c(0x1fe)](MetaApi[_0x374d4c(0x1fb)](_0x374d4c(0x1f7),this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x1ed)],_0x374d4c(0x1e3),!0x1,!0x0,0xb4)),_0x3079b1['push'](MetaApi[_0x374d4c(0x1fb)]('string',this['options'][_0x374d4c(0x20c)],this['options'][_0x374d4c(0x20c)],'left',!0x1,!0x0,0x12c));_0x3079b1[_0x374d4c(0x1d7)](_0x2a5041=>{const _0x47c65c=_0x374d4c;let _0x10e5dd=_0x1f96a1[_0x47c65c(0x200)](_0x5f3559=>_0x2a5041['name']==_0x5f3559[_0x47c65c(0x1f3)]);_0x10e5dd&&_0x10e5dd[_0x47c65c(0x1f1)]>0x0&&(_0x2a5041['filter']=_0x10e5dd);});let _0x3940c4={'rows':MetaApi[_0x374d4c(0x1eb)](!0x1),'pagination':MetaApi[_0x374d4c(0x1ea)](),'appendable':!0x1,'columns':_0x3079b1,'sorters':[...this[_0x374d4c(0x1ee)][_0x374d4c(0x207)]||[]]};_0x3940c4[_0x374d4c(0x1de)][_0x374d4c(0x202)]={'click':_0x374d4c(0x1e6),'dblclick':(_0x3bcf25,_0x2b156a,_0x2ad301,_0x6080e4,_0x5070c6,_0x24f7f4)=>{const _0x5b6b48=_0x374d4c;this[_0x5b6b48(0x1cb)](_0x6080e4);}},this[_0x374d4c(0x1c9)]=_0x3940c4,await super['connectedCallback']();}async[a0_0x41825f(0x1e9)](){const _0x364134=a0_0x41825f;await super[_0x364134(0x1e9)]();}[a0_0x41825f(0x1f6)](){const _0x56d1f3=a0_0x41825f;return html`
21
+ <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':_0x56d1f3(0x1d3)} auto-fetch
22
+ .fetchHandler=${this[_0x56d1f3(0x1ef)][_0x56d1f3(0x1da)](this)}>
23
+ <div slot="headroom">
24
+ <div id="filters">
25
+ <ox-filters-form></ox-filters-form>
26
+ </div>
27
+ </div>
28
+ </ox-grist>
29
+ <div id="button-container" class="button-container">
30
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1ce))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x56d1f3(0x1f2)][_0x56d1f3(0x1da)](this)}>
32
+ </mwc-button>
33
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1d2))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x56d1f3(0x1d6)][_0x56d1f3(0x1da)](this)}>
35
+ </mwc-button>
36
+ <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)]('select')}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x56d1f3(0x1e2)][_0x56d1f3(0x1da)](this)}>
38
+ </mwc-button>
39
+ </div>
40
+ `;}get[a0_0x41825f(0x1f4)](){const _0x1a63c8=a0_0x41825f;return this['shadowRoot'][_0x1a63c8(0x1c3)](_0x1a63c8(0x20d));}async[a0_0x41825f(0x1ef)]({page:_0x319e3c=0x0,limit:_0x2cf1da=0x0,sorters:_0x12f5c9=[],filters:_0x399a37=[]}){const _0x539454=a0_0x41825f;let _0x541a66=[...this[_0x539454(0x1d4)]];_0x399a37['forEach'](_0x20a4b6=>{const _0xb05b50=_0x539454;let _0x51bde4=_0x541a66[_0xb05b50(0x200)](_0x3ee94d=>_0x20a4b6[_0xb05b50(0x1f3)]==_0x3ee94d[_0xb05b50(0x1f3)]);_0x51bde4&&_0x51bde4[_0xb05b50(0x1f1)]>0x0&&delete _0x541a66[_0x20a4b6[_0xb05b50(0x1f3)]],_0x541a66['push'](_0x20a4b6);});let _0x1ec775=MetaApi[_0x539454(0x1e5)](this[_0x539454(0x1c9)][_0x539454(0x1ca)]);return await MetaApi[_0x539454(0x1e1)](this[_0x539454(0x1ee)][_0x539454(0x1ff)],_0x541a66,_0x12f5c9,_0x319e3c,_0x2cf1da,_0x1ec775);}async[a0_0x41825f(0x1f2)](_0x413f0f){const _0x2ee1c7=a0_0x41825f;this['confirmCallback']&&this[_0x2ee1c7(0x205)](null),closePopup(this);}async[a0_0x41825f(0x1d6)](_0x58ee4f){closePopup(this);}async[a0_0x41825f(0x1e2)](_0x154837){const _0x15b821=a0_0x41825f;let _0x1e0978=this['grist'][_0x15b821(0x1f9)];_0x1e0978&&0x0!=_0x1e0978[_0x15b821(0x1f1)]?this['selectRecord'](_0x1e0978[0x0]):MetaApi[_0x15b821(0x1fc)](_0x15b821(0x1dd),TermsUtil[_0x15b821(0x1e4)](_0x15b821(0x1d9)));}async[a0_0x41825f(0x1cb)](_0x562e68){const _0x23f984=a0_0x41825f;this[_0x23f984(0x205)]&&this[_0x23f984(0x205)](_0x562e68),closePopup(this);}}customElements[a0_0x41825f(0x20a)](a0_0x41825f(0x1dc),OxResourceCodeSelectorPopup);
@@ -1 +1 @@
1
- function a0_0x71c6(_0x2656e8,_0x24acaf){const _0x33484a=a0_0x3348();return a0_0x71c6=function(_0x71c666,_0x5c33ce){_0x71c666=_0x71c666-0x170;let _0xb749a4=_0x33484a[_0x71c666];return _0xb749a4;},a0_0x71c6(_0x2656e8,_0x24acaf);}const a0_0x41c602=a0_0x71c6;(function(_0x10d43a,_0x181d85){const _0x208664=a0_0x71c6,_0x300f91=_0x10d43a();while(!![]){try{const _0x2299b0=-parseInt(_0x208664(0x18a))/0x1*(-parseInt(_0x208664(0x184))/0x2)+-parseInt(_0x208664(0x173))/0x3+-parseInt(_0x208664(0x180))/0x4*(-parseInt(_0x208664(0x175))/0x5)+parseInt(_0x208664(0x181))/0x6+-parseInt(_0x208664(0x187))/0x7*(-parseInt(_0x208664(0x17a))/0x8)+parseInt(_0x208664(0x193))/0x9+parseInt(_0x208664(0x178))/0xa*(-parseInt(_0x208664(0x17b))/0xb);if(_0x2299b0===_0x181d85)break;else _0x300f91['push'](_0x300f91['shift']());}catch(_0x502d07){_0x300f91['push'](_0x300f91['shift']());}}}(a0_0x3348,0xb1f89));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x19f2e5=>class extends _0x19f2e5{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x486a33=>Boolean(_0x486a33)},'is_popup':{'type':Boolean,'converter':_0x2988b0=>Boolean(_0x2988b0)},'is_activity':{'type':Boolean,'converter':_0x5a0346=>Boolean(_0x5a0346)},'is_readonly':{'type':Boolean,'converter':_0x3dd1da=>Boolean(_0x3dd1da)}};}get[a0_0x41c602(0x192)](){const _0x2cf40f=a0_0x41c602;return!0x0===this[_0x2cf40f(0x174)]||!0x0===this[_0x2cf40f(0x189)];}get['isDetail'](){const _0x26c568=a0_0x41c602;return!ValueUtil['isEmpty'](this[_0x26c568(0x174)])&&this[_0x26c568(0x174)];}async[a0_0x41c602(0x17f)](_0x24462c,_0x1db3c6,_0x338374){const _0xebd5b3=a0_0x41c602;let _0x4bbe99=this[_0xebd5b3(0x185)]?.[_0xebd5b3(0x190)]?this['lifecycle'][_0xebd5b3(0x190)]:{};this['isPage']&&this['active']&&0x0==_0x338374[_0xebd5b3(0x182)]&&ValueUtil[_0xebd5b3(0x183)](_0x4bbe99)&&this[_0xebd5b3(0x17d)]();}get[a0_0x41c602(0x186)](){const _0xf5e2b8=a0_0x41c602;return!ValueUtil['isEmpty'](this[_0xf5e2b8(0x189)])&&this[_0xf5e2b8(0x189)];}get[a0_0x41c602(0x17e)](){const _0x1cac32=a0_0x41c602;return!this[_0x1cac32(0x174)]&&!this[_0x1cac32(0x189)];}async['getAndParseMenuMeta'](){const _0x1305df=a0_0x41c602;let _0x1fbed6=await MetaApi['getMenuMeta'](this);_0x1fbed6&&(this[_0x1305df(0x170)]=_0x1fbed6['menu'],this[_0x1305df(0x172)]=_0x1fbed6['etc'],this[_0x1305df(0x171)]&&this[_0x1305df(0x171)](_0x1fbed6),this[_0x1305df(0x18f)]&&this[_0x1305df(0x18f)](_0x1fbed6),this[_0x1305df(0x177)]&&this['parseBasicFormConfigs'](_0x1fbed6),this['parseBasicTabConfigs']&&this[_0x1305df(0x196)](_0x1fbed6),this[_0x1305df(0x176)]&&this[_0x1305df(0x176)](_0x1fbed6));}async[a0_0x41c602(0x17d)](){const _0x21d104=a0_0x41c602;ValueUtil['isNotEmpty'](this[_0x21d104(0x17c)])?this['grist']['fetch']():(ValueUtil['isNotEmpty'](this['filterForm'])||this[_0x21d104(0x195)])&&await this[_0x21d104(0x195)]();}async['excuteOpenPopupButtonClick'](_0x460d3b,_0x1de119,_0x2e8904){const _0x3a8fb9=a0_0x41c602;let _0x5a1598=TermsUtil['tTitle'](_0x460d3b[_0x3a8fb9(0x197)]);ValueUtil[_0x3a8fb9(0x183)](_0x460d3b[_0x3a8fb9(0x188)])&&(_0x5a1598=_0x5a1598+'-'+ValueUtil[_0x3a8fb9(0x194)](_0x1de119,..._0x460d3b[_0x3a8fb9(0x188)][_0x3a8fb9(0x179)]('.'))),MetaApi[_0x3a8fb9(0x18d)](_0x5a1598,_0x460d3b,_0x1de119,_0x2e8904);}async[a0_0x41c602(0x191)](_0x5200ef,_0x49398e,_0x1ba75b){const _0x23dc30=a0_0x41c602;let _0x370e5f=await MetaApi['callScenario'](_0x5200ef['name'],_0x5200ef['name'],_0x49398e);!0x1!==_0x370e5f&&!_0x370e5f['errors']&&ValueUtil[_0x23dc30(0x183)](_0x5200ef[_0x23dc30(0x18b)])&&_0x1ba75b();}[a0_0x41c602(0x18e)](_0x5c1266){const _0x237ca5=a0_0x41c602;this[_0x237ca5(0x18c)]=_0x5c1266,this[_0x237ca5(0x17d)]();}};function a0_0x3348(){const _0x26fcef=['getParams','fetchHandler','parseBasicTabConfigs','title','menuInfo','parseBasicGridConfigs','etcConfig','3418521PIKrhe','is_detail','270hgalai','parseBasicButtonConfigs','parseBasicFormConfigs','7470qbHbRa','split','24bsmvnU','31405WiJLXo','grist','fetch','isPage','pageUpdated','107864iZnGym','3364092xtammk','active','isNotEmpty','651044vZSDUr','lifecycle','isPopup','2863847nanLfE','title_detail','is_popup','1jmTwHg','after','parent_id','openDynamicPopup','setParentId','parseBasicServiceConfigs','params','executeCallScenarioButtonClick','isElement','3882870TJmURy'];a0_0x3348=function(){return _0x26fcef;};return a0_0x3348();}
1
+ const a0_0x374e8c=a0_0x195e;(function(_0x2649bf,_0xd7c635){const _0x3fa42f=a0_0x195e,_0x17e7c4=_0x2649bf();while(!![]){try{const _0x2cd2c4=-parseInt(_0x3fa42f(0x121))/0x1*(parseInt(_0x3fa42f(0x124))/0x2)+parseInt(_0x3fa42f(0x13a))/0x3*(parseInt(_0x3fa42f(0x116))/0x4)+-parseInt(_0x3fa42f(0x11f))/0x5*(parseInt(_0x3fa42f(0x11d))/0x6)+parseInt(_0x3fa42f(0x13f))/0x7+parseInt(_0x3fa42f(0x122))/0x8*(parseInt(_0x3fa42f(0x136))/0x9)+-parseInt(_0x3fa42f(0x11a))/0xa*(-parseInt(_0x3fa42f(0x135))/0xb)+-parseInt(_0x3fa42f(0x134))/0xc;if(_0x2cd2c4===_0xd7c635)break;else _0x17e7c4['push'](_0x17e7c4['shift']());}catch(_0x1d445e){_0x17e7c4['push'](_0x17e7c4['shift']());}}}(a0_0xc28d,0xe8883));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0xc28d(){const _0x4a1edd=['parseBasicGridConfigs','is_popup','parent_id','lifecycle','tTitle','openDynamicPopup','isPage','split','properties','parseBasicServiceConfigs','parseBasicTabConfigs','parseBasicButtonConfigs','10185516TmhLXz','284196aBzcAj','53649rHRicb','fetchHandler','isDetail','parseBasicFormConfigs','1624566bLofZq','pageUpdated','getParams','params','isElement','7527912ZNGVyY','isPopup','is_detail','executeCallScenarioButtonClick','fetch','errors','etc','excuteOpenPopupButtonClick','filterForm','grist','8eObBbQ','isNotEmpty','callScenario','getAndParseMenuMeta','80AyvTtp','title_detail','menuInfo','2775774FjMKKZ','after','5OlzKuf','isEmpty','1WPXdob','728OiJVdK','name','1287452ePUQjk','getMenuMeta','etcConfig','setParentId'];a0_0xc28d=function(){return _0x4a1edd;};return a0_0xc28d();}function a0_0x195e(_0xa8df6c,_0x561a95){const _0xc28d64=a0_0xc28d();return a0_0x195e=function(_0x195e3c,_0xd5e125){_0x195e3c=_0x195e3c-0x10e;let _0x113bcf=_0xc28d64[_0x195e3c];return _0x113bcf;},a0_0x195e(_0xa8df6c,_0x561a95);}export const MetaBaseMixin=_0x5746d9=>class extends _0x5746d9{static get[a0_0x374e8c(0x130)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x515f6e=>Boolean(_0x515f6e)},'is_popup':{'type':Boolean,'converter':_0x32e539=>Boolean(_0x32e539)},'is_activity':{'type':Boolean,'converter':_0x31ced7=>Boolean(_0x31ced7)},'is_readonly':{'type':Boolean,'converter':_0x548195=>Boolean(_0x548195)}};}get[a0_0x374e8c(0x13e)](){const _0x50f264=a0_0x374e8c;return!0x0===this[_0x50f264(0x10e)]||!0x0===this[_0x50f264(0x129)];}get[a0_0x374e8c(0x138)](){const _0x1c7da7=a0_0x374e8c;return!ValueUtil[_0x1c7da7(0x120)](this[_0x1c7da7(0x10e)])&&this[_0x1c7da7(0x10e)];}async[a0_0x374e8c(0x13b)](_0x190185,_0x3f52cc,_0x93d787){const _0x1ca130=a0_0x374e8c;let _0x5ad5b6=this['lifecycle']?.['params']?this[_0x1ca130(0x12b)][_0x1ca130(0x13d)]:{};this[_0x1ca130(0x12e)]&&this['active']&&0x0==_0x93d787['active']&&ValueUtil[_0x1ca130(0x117)](_0x5ad5b6)&&this[_0x1ca130(0x110)]();}get[a0_0x374e8c(0x140)](){const _0x17c1da=a0_0x374e8c;return!ValueUtil[_0x17c1da(0x120)](this[_0x17c1da(0x129)])&&this[_0x17c1da(0x129)];}get[a0_0x374e8c(0x12e)](){const _0x2b44b2=a0_0x374e8c;return!this[_0x2b44b2(0x10e)]&&!this[_0x2b44b2(0x129)];}async[a0_0x374e8c(0x119)](){const _0x5e5092=a0_0x374e8c;let _0x2bb103=await MetaApi[_0x5e5092(0x125)](this);_0x2bb103&&(this[_0x5e5092(0x11c)]=_0x2bb103['menu'],this[_0x5e5092(0x126)]=_0x2bb103[_0x5e5092(0x112)],this[_0x5e5092(0x128)]&&this[_0x5e5092(0x128)](_0x2bb103),this['parseBasicServiceConfigs']&&this[_0x5e5092(0x131)](_0x2bb103),this[_0x5e5092(0x139)]&&this[_0x5e5092(0x139)](_0x2bb103),this[_0x5e5092(0x132)]&&this[_0x5e5092(0x132)](_0x2bb103),this[_0x5e5092(0x133)]&&this[_0x5e5092(0x133)](_0x2bb103));}async[a0_0x374e8c(0x110)](){const _0x17fae8=a0_0x374e8c;ValueUtil['isNotEmpty'](this[_0x17fae8(0x115)])?this[_0x17fae8(0x115)][_0x17fae8(0x110)]():(ValueUtil[_0x17fae8(0x117)](this[_0x17fae8(0x114)])||this['fetchHandler'])&&await this[_0x17fae8(0x137)]();}async[a0_0x374e8c(0x113)](_0x16621b,_0x362a58,_0x85c6e8){const _0x1690d8=a0_0x374e8c;let _0x253a5c=TermsUtil[_0x1690d8(0x12c)](_0x16621b['title']);ValueUtil[_0x1690d8(0x117)](_0x16621b[_0x1690d8(0x11b)])&&(_0x253a5c=_0x253a5c+'-'+ValueUtil[_0x1690d8(0x13c)](_0x362a58,..._0x16621b[_0x1690d8(0x11b)][_0x1690d8(0x12f)]('.'))),MetaApi[_0x1690d8(0x12d)](_0x253a5c,_0x16621b,_0x362a58,_0x85c6e8);}async[a0_0x374e8c(0x10f)](_0x3b5c73,_0x310a67,_0x1ab56e){const _0x1d7180=a0_0x374e8c;let _0x48b8b0=await MetaApi[_0x1d7180(0x118)](_0x3b5c73[_0x1d7180(0x123)],_0x3b5c73[_0x1d7180(0x123)],_0x310a67);!0x1!==_0x48b8b0&&!_0x48b8b0[_0x1d7180(0x111)]&&ValueUtil[_0x1d7180(0x117)](_0x3b5c73[_0x1d7180(0x11e)])&&_0x1ab56e();}[a0_0x374e8c(0x127)](_0x299616){const _0x18a4c6=a0_0x374e8c;this[_0x18a4c6(0x12a)]=_0x299616,this['fetch']();}};
@@ -1,4 +1,4 @@
1
- const a0_0x4e4dc3=a0_0x39f9;(function(_0x41be91,_0x3d3d72){const _0x29aef6=a0_0x39f9,_0x431884=_0x41be91();while(!![]){try{const _0x3381c8=-parseInt(_0x29aef6(0x1f4))/0x1+parseInt(_0x29aef6(0x212))/0x2*(parseInt(_0x29aef6(0x215))/0x3)+-parseInt(_0x29aef6(0x1ff))/0x4+-parseInt(_0x29aef6(0x217))/0x5+parseInt(_0x29aef6(0x20b))/0x6+parseInt(_0x29aef6(0x218))/0x7+parseInt(_0x29aef6(0x1fa))/0x8;if(_0x3381c8===_0x3d3d72)break;else _0x431884['push'](_0x431884['shift']());}catch(_0x1a9499){_0x431884['push'](_0x431884['shift']());}}}(a0_0x3c7d,0x4cd6e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x39f9(_0x2b21d1,_0x4c64b8){const _0x3c7dde=a0_0x3c7d();return a0_0x39f9=function(_0x39f99b,_0x385de9){_0x39f99b=_0x39f99b-0x1ed;let _0x3a99cc=_0x3c7dde[_0x39f99b];return _0x3a99cc;},a0_0x39f9(_0x2b21d1,_0x4c64b8);}function a0_0x3c7d(){const _0x1d3b8d=['updateMultiple','forEach','gristConfigSet','activityDataSet','pageInitialized','gridConfig','isElement','firstUpdated','keys','menuInfo','gristId','398341fCAgpg','shadowRoot','render','parseGristConfigs','dataSet','getBasicGristHtml','3122104MJjlsF','properties','search','getBasicGristStyles','exportableData','1593596CJxZVt','data','fetch','parseGridConfigSet','connectedCallback','querySelector','renderRoot','patchesForUpdateMultiple','filterForm','export','clear','isNotEmpty','1226124UqnFue','filterFormId','startsWith','searchConfig','context','grist','ox-grist','744qTIbXa','import','parse','1719Tkhllx','title','738745XdMJdb','3160150UcmFxs','find','tTitle'];a0_0x3c7d=function(){return _0x1d3b8d;};return a0_0x3c7d();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x20937d=>class extends MetaButtonMixin(_0x20937d){static get['styles'](){const _0x291a71=a0_0x39f9;return MetaApi[_0x291a71(0x1fd)]();}static get[a0_0x4e4dc3(0x1fb)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x2fe6c8=a0_0x4e4dc3;return this[_0x2fe6c8(0x205)]?.[_0x2fe6c8(0x204)](this[_0x2fe6c8(0x1f3)]);}get[a0_0x4e4dc3(0x207)](){const _0x39e5cf=a0_0x4e4dc3;return this[_0x39e5cf(0x1f5)]?.[_0x39e5cf(0x204)](this['filterFormId']);}get[a0_0x4e4dc3(0x20f)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x4e4dc3(0x203)](){const _0x23b5cf=a0_0x4e4dc3;this[_0x23b5cf(0x1f3)]=_0x23b5cf(0x211),this[_0x23b5cf(0x20c)]='ox-filters-form',await this['getAndParseMenuMeta'](),this[_0x23b5cf(0x1ef)]&&await this[_0x23b5cf(0x1f7)](),this[_0x23b5cf(0x21e)]&&(this[_0x23b5cf(0x1f8)]=this[_0x23b5cf(0x21e)]),super['connectedCallback']&&await super[_0x23b5cf(0x203)]();}async[a0_0x4e4dc3(0x1f0)](){const _0x48f1a2=a0_0x4e4dc3;super['firstUpdated']&&await super[_0x48f1a2(0x1f0)]();}async[a0_0x4e4dc3(0x1ed)](){const _0x1d45e6=a0_0x4e4dc3;this['isPage']&&await this[_0x1d45e6(0x1f7)](),super['pageInitialized']&&await super[_0x1d45e6(0x1ed)]();}[a0_0x4e4dc3(0x1f6)](){const _0x26daa1=a0_0x4e4dc3;return html`
2
- ${MetaApi[_0x26daa1(0x1f9)](this)}
3
- ${this['isPage']?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}['parseBasicGridConfigs'](_0x4dc716){const _0x55ec11=a0_0x4e4dc3;this[_0x55ec11(0x1ee)]=_0x4dc716['grid'],this['gridColumnConfig']=_0x4dc716['grid_column'],this[_0x55ec11(0x20e)]=_0x4dc716[_0x55ec11(0x1fc)];}async[a0_0x4e4dc3(0x1f7)](){const _0x29f2e0=a0_0x4e4dc3;this[_0x29f2e0(0x21d)]=await MetaApi[_0x29f2e0(0x202)](this);}async[a0_0x4e4dc3(0x201)](){const _0x375369=a0_0x4e4dc3;await this[_0x375369(0x210)]['fetch']();}async['save'](){const _0x21483c=a0_0x4e4dc3;let _0x3f8c94=MetaApi[_0x21483c(0x206)](this[_0x21483c(0x210)]);!!ValueUtil[_0x21483c(0x20a)](_0x3f8c94)&&await this[_0x21483c(0x21b)](_0x3f8c94)&&this[_0x21483c(0x201)]();}async[a0_0x4e4dc3(0x219)](){const _0x308db1=a0_0x4e4dc3;let _0x150e22=MetaApi['getSelectedIdList'](this[_0x308db1(0x210)],!0x0);return ValueUtil['isNotEmpty'](_0x150e22)?await this['findOne'](_0x150e22[0x0]):{};}async['delete'](){const _0x37b205=a0_0x4e4dc3;let _0x249e91=MetaApi['getSelectedIdList'](this[_0x37b205(0x210)],!0x0);!!ValueUtil[_0x37b205(0x20a)](_0x249e91)&&await this['deleteByIds'](_0x249e91)&&this[_0x37b205(0x201)]();}async[a0_0x4e4dc3(0x208)](){const _0x2b01d6=a0_0x4e4dc3;let _0x11ead7=TermsUtil[_0x2b01d6(0x21a)](ValueUtil['getParams'](this[_0x2b01d6(0x1f2)],_0x2b01d6(0x216)));return await MetaApi[_0x2b01d6(0x1fe)](this[_0x2b01d6(0x1ef)],_0x11ead7,this['grist']);}async[a0_0x4e4dc3(0x213)](){}async[a0_0x4e4dc3(0x209)](){const _0x323a3e=a0_0x4e4dc3;this['grist']&&(this[_0x323a3e(0x210)][_0x323a3e(0x200)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x3ecf77=a0_0x4e4dc3;let _0xa9a4c=this[_0x3ecf77(0x210)]['___data']['records'];return _0xa9a4c=JSON[_0x3ecf77(0x214)](JSON['stringify'](_0xa9a4c)),_0xa9a4c['forEach'](_0x320dcd=>{const _0x53dbff=_0x3ecf77;Object[_0x53dbff(0x1f1)](_0x320dcd)[_0x53dbff(0x21c)](_0x6075ab=>{const _0xef11b3=_0x53dbff;_0x6075ab[_0xef11b3(0x20d)]('__')&&delete _0x320dcd[_0x6075ab];});}),_0xa9a4c;}};
1
+ const a0_0x2d4858=a0_0x20a9;(function(_0x6877d1,_0x13e659){const _0x1e05fd=a0_0x20a9,_0x112127=_0x6877d1();while(!![]){try{const _0x51e9b0=-parseInt(_0x1e05fd(0xe5))/0x1+parseInt(_0x1e05fd(0xf5))/0x2*(parseInt(_0x1e05fd(0xd7))/0x3)+parseInt(_0x1e05fd(0xcc))/0x4*(parseInt(_0x1e05fd(0xe4))/0x5)+parseInt(_0x1e05fd(0xd1))/0x6*(parseInt(_0x1e05fd(0xfb))/0x7)+-parseInt(_0x1e05fd(0xf1))/0x8+-parseInt(_0x1e05fd(0xd2))/0x9*(-parseInt(_0x1e05fd(0xcb))/0xa)+-parseInt(_0x1e05fd(0xe0))/0xb*(parseInt(_0x1e05fd(0xdd))/0xc);if(_0x51e9b0===_0x13e659)break;else _0x112127['push'](_0x112127['shift']());}catch(_0xee9f20){_0x112127['push'](_0x112127['shift']());}}}(a0_0x2b2a,0x5e6d1));function a0_0x20a9(_0x3be348,_0x4472b4){const _0x2b2a15=a0_0x2b2a();return a0_0x20a9=function(_0x20a9a5,_0x5c6ec0){_0x20a9a5=_0x20a9a5-0xc4;let _0xe3f49b=_0x2b2a15[_0x20a9a5];return _0xe3f49b;},a0_0x20a9(_0x3be348,_0x4472b4);}function a0_0x2b2a(){const _0x471cd0=['getBasicGristStyles','startsWith','getBasicGristHtml','___data','exportableData','ox-filters-form','1350784frMedk','findOne','getContextObject','connectedCallback','100318ThwKco','grid_column','save','render','export','keys','1494297iseOAd','find','stringify','updateMultiple','firstUpdated','context','filterForm','deleteByIds','fetch','patchesForUpdateMultiple','getButtonContainer','forEach','10qvEJIz','483376EBbLZu','getSelectedIdList','activityDataSet','title','parseGridConfigSet','6xiFUUY','6521301JnhyYa','ox-grist','pageInitialized','data','querySelector','9oamanp','isElement','searchConfig','shadowRoot','grist','dataSet','103308XhPVUo','parseGristConfigs','gristId','121mwElnK','gridColumnConfig','gristConfigSet','filterFormId','5XOsUUF','559065HzrfpT','isNotEmpty','delete','styles','renderRoot','getAndParseMenuMeta'];a0_0x2b2a=function(){return _0x471cd0;};return a0_0x2b2a();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x4e7ff3=>class extends MetaButtonMixin(_0x4e7ff3){static get[a0_0x2d4858(0xe8)](){const _0x30354c=a0_0x2d4858;return MetaApi[_0x30354c(0xeb)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x2d4858(0xdb)](){const _0x12ecb7=a0_0x2d4858;return this[_0x12ecb7(0xe9)]?.[_0x12ecb7(0xd6)](this[_0x12ecb7(0xdf)]);}get[a0_0x2d4858(0xc5)](){const _0xa5377b=a0_0x2d4858;return this[_0xa5377b(0xda)]?.[_0xa5377b(0xd6)](this[_0xa5377b(0xe3)]);}get[a0_0x2d4858(0xc4)](){const _0xc7e9f3=a0_0x2d4858;return MetaUiUtil[_0xc7e9f3(0xf3)](this);}async['connectedCallback'](){const _0x5be39b=a0_0x2d4858;this[_0x5be39b(0xdf)]=_0x5be39b(0xd3),this[_0x5be39b(0xe3)]=_0x5be39b(0xf0),await this[_0x5be39b(0xea)](),this['isElement']&&await this[_0x5be39b(0xde)](),this[_0x5be39b(0xce)]&&(this[_0x5be39b(0xdc)]=this[_0x5be39b(0xce)]),super['connectedCallback']&&await super[_0x5be39b(0xf4)]();}async[a0_0x2d4858(0xff)](){const _0x1456d1=a0_0x2d4858;super['firstUpdated']&&await super[_0x1456d1(0xff)]();}async[a0_0x2d4858(0xd4)](){const _0xa3afb2=a0_0x2d4858;this['isPage']&&await this[_0xa3afb2(0xde)](),super['pageInitialized']&&await super[_0xa3afb2(0xd4)]();}[a0_0x2d4858(0xf8)](){const _0x5d57df=a0_0x2d4858;return html`
2
+ ${MetaApi[_0x5d57df(0xed)](this)}
3
+ ${this['isPage']?html``:MetaUiUtil[_0x5d57df(0xc9)](this)}
4
+ `;}['parseBasicGridConfigs'](_0x4c1b3d){const _0x5acb1b=a0_0x2d4858;this['gridConfig']=_0x4c1b3d['grid'],this[_0x5acb1b(0xe1)]=_0x4c1b3d[_0x5acb1b(0xf6)],this[_0x5acb1b(0xd9)]=_0x4c1b3d['search'];}async[a0_0x2d4858(0xde)](){const _0x3afef5=a0_0x2d4858;this[_0x3afef5(0xe2)]=await MetaApi[_0x3afef5(0xd0)](this);}async[a0_0x2d4858(0xc7)](){const _0x532cbe=a0_0x2d4858;await this['grist'][_0x532cbe(0xc7)]();}async[a0_0x2d4858(0xf7)](){const _0x598b13=a0_0x2d4858;let _0x1844a9=MetaApi[_0x598b13(0xc8)](this[_0x598b13(0xdb)]);!!ValueUtil['isNotEmpty'](_0x1844a9)&&await this[_0x598b13(0xfe)](_0x1844a9)&&this[_0x598b13(0xc7)]();}async[a0_0x2d4858(0xfc)](){const _0x499a2e=a0_0x2d4858;let _0x594e20=MetaApi[_0x499a2e(0xcd)](this[_0x499a2e(0xdb)],!0x0);return ValueUtil[_0x499a2e(0xe6)](_0x594e20)?await this[_0x499a2e(0xf2)](_0x594e20[0x0]):{};}async[a0_0x2d4858(0xe7)](){const _0x278bff=a0_0x2d4858;let _0x1e597e=MetaApi[_0x278bff(0xcd)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x1e597e)&&await this[_0x278bff(0xc6)](_0x1e597e)&&this[_0x278bff(0xc7)]();}async[a0_0x2d4858(0xf9)](){const _0x5150e9=a0_0x2d4858;let _0x56dc88=TermsUtil['tTitle'](ValueUtil['getParams'](this['menuInfo'],_0x5150e9(0xcf)));return await MetaApi[_0x5150e9(0xef)](this[_0x5150e9(0xd8)],_0x56dc88,this['grist']);}async['import'](){}async['clear'](){const _0x4f5924=a0_0x2d4858;this['grist']&&(this[_0x4f5924(0xdb)][_0x4f5924(0xd5)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x552993=a0_0x2d4858;let _0x1bb672=this['grist'][_0x552993(0xee)]['records'];return _0x1bb672=JSON['parse'](JSON[_0x552993(0xfd)](_0x1bb672)),_0x1bb672[_0x552993(0xca)](_0x58f7b8=>{const _0x13dd31=_0x552993;Object[_0x13dd31(0xfa)](_0x58f7b8)['forEach'](_0x148df5=>{const _0x5335dd=_0x13dd31;_0x148df5[_0x5335dd(0xec)]('__')&&delete _0x58f7b8[_0x148df5];});}),_0x1bb672;}};
@@ -1 +1 @@
1
- function a0_0x1e8a(){const _0x2b88f8=['customButtonHandler','255454EAineF','getButtonActionHandler','useButtonImport','3421184lBXZHR','getContextButtons','isPage','getBasicButtonHandler','gristButtonHandler','useButtonAdd','530499CBlVnn','buttonConfig','parseBasicButtonConfigs','139776NbRNKh','getButtonContainer','isButtonExist','getCustomButtonContainerStyles','2359790FqNpsS','getCustomButtonContainerStyle','1241628ZIjyZn','useButtonExport','813648XBQZsW','1Pqkcyb','export'];a0_0x1e8a=function(){return _0x2b88f8;};return a0_0x1e8a();}const a0_0x341700=a0_0x2766;function a0_0x2766(_0x2c6f4b,_0x3a0be0){const _0x1e8adf=a0_0x1e8a();return a0_0x2766=function(_0x276692,_0x19e2ac){_0x276692=_0x276692-0xf3;let _0x503aa9=_0x1e8adf[_0x276692];return _0x503aa9;},a0_0x2766(_0x2c6f4b,_0x3a0be0);}(function(_0x2bc4ab,_0x59b2ae){const _0x568d78=a0_0x2766,_0x588ae1=_0x2bc4ab();while(!![]){try{const _0x44bd87=-parseInt(_0x568d78(0xf6))/0x1*(-parseInt(_0x568d78(0xf9))/0x2)+parseInt(_0x568d78(0x102))/0x3+parseInt(_0x568d78(0xf5))/0x4+-parseInt(_0x568d78(0x109))/0x5+-parseInt(_0x568d78(0xf3))/0x6+-parseInt(_0x568d78(0x105))/0x7+parseInt(_0x568d78(0xfc))/0x8;if(_0x44bd87===_0x59b2ae)break;else _0x588ae1['push'](_0x588ae1['shift']());}catch(_0x48138c){_0x588ae1['push'](_0x588ae1['shift']());}}}(a0_0x1e8a,0x39cd4));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2c3ccd=>class extends MetaServiceMixin(_0x2c3ccd){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x341700(0x10a)](){const _0x16913b=a0_0x341700;return MetaUiUtil[_0x16913b(0x108)]();}[a0_0x341700(0xfd)](){const _0x370f12=a0_0x341700;return MetaUiUtil[_0x370f12(0xfd)](this);}[a0_0x341700(0x106)](){const _0x75bf03=a0_0x341700;return this[_0x75bf03(0xfe)]?html``:MetaUiUtil[_0x75bf03(0x106)](this);}async[a0_0x341700(0xff)](_0x2c9c2c,_0x1cd897,_0x475e66){const _0x1b9532=a0_0x341700;return await MetaUiUtil[_0x1b9532(0xfa)](this,_0x2c9c2c,_0x1cd897,_0x475e66);}async[a0_0x341700(0xf8)](_0x96ea58){const _0x4af98c=a0_0x341700;await MetaUiUtil[_0x4af98c(0xf8)](this,_0x96ea58);}async['gristButtonHandler'](_0x2fd219,_0x3c2d2c){const _0x3817be=a0_0x341700;await MetaUiUtil[_0x3817be(0x100)](this,_0x2fd219,_0x3c2d2c);}[a0_0x341700(0x104)](_0x182126){const _0x2d927b=a0_0x341700;this[_0x2d927b(0x103)]=_0x182126['button'],this[_0x2d927b(0xfb)]=MetaUiUtil[_0x2d927b(0x107)](this[_0x2d927b(0x103)],'import'),this[_0x2d927b(0xf4)]=MetaUiUtil['isButtonExist'](this[_0x2d927b(0x103)],_0x2d927b(0xf7)),this[_0x2d927b(0x101)]=MetaUiUtil[_0x2d927b(0x107)](this[_0x2d927b(0x103)],'add');}};
1
+ const a0_0x582315=a0_0x5791;function a0_0x5791(_0x3c8531,_0x2fee97){const _0xf52831=a0_0xf528();return a0_0x5791=function(_0x57919f,_0x13bd64){_0x57919f=_0x57919f-0x82;let _0x4c43d4=_0xf52831[_0x57919f];return _0x4c43d4;},a0_0x5791(_0x3c8531,_0x2fee97);}(function(_0x5c2784,_0x5da5e8){const _0x49aa1f=a0_0x5791,_0x566a0c=_0x5c2784();while(!![]){try{const _0x38a01e=-parseInt(_0x49aa1f(0x89))/0x1+-parseInt(_0x49aa1f(0x91))/0x2+-parseInt(_0x49aa1f(0x94))/0x3+-parseInt(_0x49aa1f(0x8f))/0x4*(parseInt(_0x49aa1f(0x95))/0x5)+-parseInt(_0x49aa1f(0x85))/0x6+-parseInt(_0x49aa1f(0x82))/0x7+parseInt(_0x49aa1f(0x83))/0x8;if(_0x38a01e===_0x5da5e8)break;else _0x566a0c['push'](_0x566a0c['shift']());}catch(_0x1fb645){_0x566a0c['push'](_0x566a0c['shift']());}}}(a0_0xf528,0x338a7));function a0_0xf528(){const _0x33a305=['13933536TcuJDi','gristButtonHandler','2090646HgothS','button','buttonConfig','add','63544DXrisU','getButtonActionHandler','getCustomButtonContainerStyles','getButtonContainer','useButtonImport','getBasicButtonHandler','12BIpCIB','isPage','687466jbLdMp','getCustomButtonContainerStyle','import','1036104muqcnk','528070PqqleJ','parseBasicButtonConfigs','properties','getContextButtons','customButtonHandler','useButtonAdd','788571vPhiSd'];a0_0xf528=function(){return _0x33a305;};return a0_0xf528();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x234478=>class extends MetaServiceMixin(_0x234478){static get[a0_0x582315(0x97)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x582315(0x92)](){const _0x2f3510=a0_0x582315;return MetaUiUtil[_0x2f3510(0x8b)]();}[a0_0x582315(0x98)](){const _0x51d198=a0_0x582315;return MetaUiUtil[_0x51d198(0x98)](this);}[a0_0x582315(0x8c)](){const _0x1ab539=a0_0x582315;return this[_0x1ab539(0x90)]?html``:MetaUiUtil[_0x1ab539(0x8c)](this);}async[a0_0x582315(0x8e)](_0x3b6792,_0x413df4,_0x68c1ba){const _0x3069a8=a0_0x582315;return await MetaUiUtil[_0x3069a8(0x8a)](this,_0x3b6792,_0x413df4,_0x68c1ba);}async[a0_0x582315(0x99)](_0x25506c){const _0x112423=a0_0x582315;await MetaUiUtil[_0x112423(0x99)](this,_0x25506c);}async[a0_0x582315(0x84)](_0x2cfee6,_0x3cf814){await MetaUiUtil['gristButtonHandler'](this,_0x2cfee6,_0x3cf814);}[a0_0x582315(0x96)](_0x4ec498){const _0x242585=a0_0x582315;this[_0x242585(0x87)]=_0x4ec498[_0x242585(0x86)],this[_0x242585(0x8d)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x93)),this['useButtonExport']=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],'export'),this[_0x242585(0x9a)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x88));}};
@@ -1 +1 @@
1
- const a0_0x57e15a=a0_0xa0d2;(function(_0x567578,_0x3f51e7){const _0x1e8e50=a0_0xa0d2,_0x5516ba=_0x567578();while(!![]){try{const _0x2ac892=-parseInt(_0x1e8e50(0x212))/0x1*(-parseInt(_0x1e8e50(0x1df))/0x2)+parseInt(_0x1e8e50(0x1f6))/0x3+-parseInt(_0x1e8e50(0x202))/0x4*(parseInt(_0x1e8e50(0x209))/0x5)+parseInt(_0x1e8e50(0x1d9))/0x6*(parseInt(_0x1e8e50(0x215))/0x7)+-parseInt(_0x1e8e50(0x210))/0x8+-parseInt(_0x1e8e50(0x214))/0x9+parseInt(_0x1e8e50(0x1f2))/0xa*(-parseInt(_0x1e8e50(0x1e2))/0xb);if(_0x2ac892===_0x3f51e7)break;else _0x5516ba['push'](_0x5516ba['shift']());}catch(_0x506747){_0x5516ba['push'](_0x5516ba['shift']());}}}(a0_0x2992,0xa8f36));import{MetaApi}from'../utils/meta-api';function a0_0xa0d2(_0xb56a06,_0x5bdd1b){const _0x2992f5=a0_0x2992();return a0_0xa0d2=function(_0xa0d27,_0x47bd87){_0xa0d27=_0xa0d27-0x1cd;let _0x245af0=_0x2992f5[_0xa0d27];return _0x245af0;},a0_0xa0d2(_0xb56a06,_0x5bdd1b);}function a0_0x2992(){const _0x25e3b3=['209BrafyT','record','640422uGzpDr','21iyQHNb','Escape','after','orgData','keydown','focus','assign','function','filter','grid_column','__origin__','button','removeGarbageData','context','getAndParseMenuMeta','renderRoot','save','editable','formConfigSet','entries','activityDataSet','activity','column','text.NOTHING_CHANGED','parseFormConfigs','2265204vpWJQn','detail','OX-GRID-FIELD','connectedCallback','editing','dirtyData','11302JNPqmb','__seq__','render','17138396xEPbkw','call','currentTarget','isEquals','Enter','keys','key','addEventListener','firstUpdated','dataSet','setAttribute','isNotEmpty','pageInitialized','removeAttribute','showAlertPopup','parseBasicFormConfigs','10ctYQCI','isPage','currentData','formColumnConfig','3456897XVoWVH','isEmpty','form','validation','true','cuFlag','clear','styles','properties','getBasicFormHtml','startsWith','stopPropagation','927356EYZinN','parent_id','getBasicFormStyles','click','before','fetch','name','5CxvbwA','isElement','__dirtyfields__','findOne','__dirty__','tagName','getData','7303240sfOBLv','formRenderConfig'];a0_0x2992=function(){return _0x25e3b3;};return a0_0x2992();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x29aba3=>class extends MetaButtonMixin(_0x29aba3){static get[a0_0x57e15a(0x1fd)](){const _0x2ea0c3=a0_0x57e15a;return MetaApi[_0x2ea0c3(0x204)]();}static get[a0_0x57e15a(0x1fe)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x57e15a(0x1cd)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x57e15a(0x1dc)](){const _0x3cff3e=a0_0x57e15a;await this[_0x3cff3e(0x1ce)](),this['isElement']&&await this[_0x3cff3e(0x1d8)](),this[_0x3cff3e(0x1d4)]&&(this[_0x3cff3e(0x1eb)]=this[_0x3cff3e(0x1d4)]),!0x0!==this['is_activity']||this[_0x3cff3e(0x203)]||(this['parent_id']=_0x3cff3e(0x1d5)),super['connectedCallback']&&await super['connectedCallback'](),this[_0x3cff3e(0x20a)]&&await this['fetch'](),this[_0x3cff3e(0x1cf)][_0x3cff3e(0x1e9)](_0x3cff3e(0x219),_0x3eb479=>{const _0x1847b4=_0x3cff3e;switch(_0x3eb479[_0x1847b4(0x1e8)]){case'Esc':case _0x1847b4(0x216):case _0x1847b4(0x1e6):this['focus'](),this[_0x1847b4(0x1e4)]&&this[_0x1847b4(0x1e4)]['removeAttribute'](_0x1847b4(0x1dd)),this[_0x1847b4(0x1e4)]=null;}}),this['renderRoot'][_0x3cff3e(0x1e9)](_0x3cff3e(0x205),_0x38a439=>{const _0xfb142=_0x3cff3e;_0x38a439[_0xfb142(0x201)]();let _0x4272f9=_0x38a439['target'];if(this[_0xfb142(0x1e4)]&&(this[_0xfb142(0x21a)](),this['currentTarget'][_0xfb142(0x1ef)]('editing')),_0xfb142(0x1db)!==_0x4272f9[_0xfb142(0x20e)]||!_0x4272f9[_0xfb142(0x1d6)][_0xfb142(0x213)][_0xfb142(0x1d1)])return this[_0xfb142(0x21a)](),void(this[_0xfb142(0x1e4)]=null);this[_0xfb142(0x1e4)]=_0x4272f9,_0x4272f9[_0xfb142(0x1ec)]('editing',_0xfb142(0x1fa));}),this['addEventListener']('field-change',_0x281a6a=>{const _0x552e72=_0x3cff3e;var {after:_0x364a4f,before:_0x599002,column:_0x4c8cc5,record:_0x1d1ad3,row:_0x196cef}=_0x281a6a[_0x552e72(0x1da)];if(ValueUtil[_0x552e72(0x1e5)](_0x364a4f,_0x599002))return;var _0x467472=_0x4c8cc5[_0x552e72(0x1f9)];if(_0x467472&&_0x552e72(0x21c)==typeof _0x467472&&!_0x467472[_0x552e72(0x1e3)](this,_0x364a4f,_0x599002,_0x1d1ad3,_0x4c8cc5))return;let _0x321e4e=_0x4c8cc5[_0x552e72(0x208)];_0x1d1ad3[_0x321e4e]=_0x364a4f,_0x1d1ad3['__dirtyfields__']=_0x1d1ad3[_0x552e72(0x20b)]||{},_0x1d1ad3[_0x552e72(0x21f)]=_0x1d1ad3[_0x552e72(0x21f)]||{},_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e]={'before':_0x1d1ad3[_0x552e72(0x21f)][_0x321e4e],'after':_0x1d1ad3[_0x321e4e]},ValueUtil[_0x552e72(0x1e5)](_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e][_0x552e72(0x206)],_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e]['after'])&&delete _0x1d1ad3[_0x552e72(0x20b)][_0x321e4e],ValueUtil[_0x552e72(0x1ed)](_0x1d1ad3[_0x552e72(0x20b)])?_0x1d1ad3[_0x552e72(0x20d)]='M':_0x1d1ad3[_0x552e72(0x20d)]='',this[_0x552e72(0x213)]={..._0x1d1ad3};});}async[a0_0x57e15a(0x1ea)](){const _0x2a734c=a0_0x57e15a;super['firstUpdated']&&await super[_0x2a734c(0x1ea)]();}async[a0_0x57e15a(0x1ee)](){const _0x42d3fd=a0_0x57e15a;this[_0x42d3fd(0x1f3)]&&await this['parseFormConfigs'](),super[_0x42d3fd(0x1ee)]&&await super[_0x42d3fd(0x1ee)](),this[_0x42d3fd(0x1f3)]&&await this[_0x42d3fd(0x207)]();}[a0_0x57e15a(0x1e1)](){const _0x3a479d=a0_0x57e15a;return MetaApi[_0x3a479d(0x1ff)](this);}[a0_0x57e15a(0x1f1)](_0x395b8e){const _0x1cef9b=a0_0x57e15a;this[_0x1cef9b(0x1f5)]=_0x395b8e[_0x1cef9b(0x21e)],this[_0x1cef9b(0x211)]=_0x395b8e[_0x1cef9b(0x1f8)],_0x395b8e[_0x1cef9b(0x220)]=_0x395b8e['button'][_0x1cef9b(0x21d)](_0x111ef4=>_0x1cef9b(0x1d0)==_0x111ef4[_0x1cef9b(0x208)]);}async[a0_0x57e15a(0x1d8)](){const _0x2c7fd9=a0_0x57e15a;this[_0x2c7fd9(0x1d2)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x57e15a(0x218)](){const _0x54c480=a0_0x57e15a;return this[_0x54c480(0x221)](this[_0x54c480(0x213)]['__origin__']);}get[a0_0x57e15a(0x1de)](){const _0x118657=a0_0x57e15a;if(ValueUtil[_0x118657(0x1f7)](this['record'][_0x118657(0x20b)]))return{};let _0x2b0a4a={};return Object[_0x118657(0x1d3)](this[_0x118657(0x213)]['__dirtyfields__'])['map'](([_0x4fd115,_0x10b5f7])=>{const _0x3d04e2=_0x118657;0x0==_0x4fd115[_0x3d04e2(0x200)]('__')&&(_0x2b0a4a[_0x4fd115]=_0x10b5f7[_0x3d04e2(0x217)]);}),_0x2b0a4a;}get[a0_0x57e15a(0x1f4)](){const _0x5d35c6=a0_0x57e15a;return this[_0x5d35c6(0x221)](this[_0x5d35c6(0x213)]);}['removeGarbageData'](_0x24bcd8){const _0x4065b8=a0_0x57e15a;let _0x12f054={};if(_0x24bcd8)return Object[_0x4065b8(0x1d3)](_0x24bcd8)['map'](([_0x5cce46,_0x273c6c])=>{const _0x256226=_0x4065b8;0x0==_0x5cce46[_0x256226(0x200)]('__')&&(_0x12f054[_0x5cce46]=_0x273c6c);}),_0x12f054;}get['patchData'](){const _0x5637b2=a0_0x57e15a;let _0x10dbaf=this[_0x5637b2(0x1de)],_0x25d9fd=this[_0x5637b2(0x213)];return ValueUtil[_0x5637b2(0x1f7)](_0x10dbaf)?[]:(ValueUtil[_0x5637b2(0x1ed)](_0x25d9fd['id'])?(_0x10dbaf['id']=_0x25d9fd['id'],_0x10dbaf[_0x5637b2(0x1fb)]='M'):_0x10dbaf[_0x5637b2(0x1fb)]='+',Object[_0x5637b2(0x1e7)](_0x10dbaf)['forEach'](_0x24f341=>{'object'==typeof _0x10dbaf[_0x24f341]&&(_0x10dbaf[_0x24f341]={'id':_0x10dbaf[_0x24f341]['id']});}),[_0x10dbaf]);}async[a0_0x57e15a(0x207)](){const _0x5800ab=a0_0x57e15a;if(ValueUtil['isEmpty'](this[_0x5800ab(0x203)]))return;let _0x3c22cd=await this[_0x5800ab(0x20c)](this[_0x5800ab(0x203)]);_0x3c22cd[_0x5800ab(0x1e0)]=0x1;let _0x22769a={};Object[_0x5800ab(0x21b)](_0x22769a,_0x3c22cd),_0x3c22cd[_0x5800ab(0x21f)]=_0x22769a,this['record']={..._0x3c22cd};}async['save'](){const _0x5d1f38=a0_0x57e15a;let _0x41d278=this['patchData'];if(ValueUtil['isEmpty'](_0x41d278))return void MetaApi[_0x5d1f38(0x1f0)]('title.info',_0x5d1f38(0x1d7));let _0x3c82f8=await this['updateMultiple'](_0x41d278);return _0x3c82f8&&await this[_0x5d1f38(0x207)](),_0x3c82f8;}async[a0_0x57e15a(0x1fc)](){const _0x179c3e=a0_0x57e15a;this[_0x179c3e(0x213)]&&(this[_0x179c3e(0x213)]={});}[a0_0x57e15a(0x20f)](){const _0x345606=a0_0x57e15a;return this[_0x345606(0x1f4)]||{};}};
1
+ const a0_0x20f00c=a0_0x3568;(function(_0x1852a5,_0x27733c){const _0x5e4201=a0_0x3568,_0x5e408b=_0x1852a5();while(!![]){try{const _0x1fc94=parseInt(_0x5e4201(0xfe))/0x1*(-parseInt(_0x5e4201(0x131))/0x2)+parseInt(_0x5e4201(0x11b))/0x3*(parseInt(_0x5e4201(0x140))/0x4)+parseInt(_0x5e4201(0x13f))/0x5*(-parseInt(_0x5e4201(0x143))/0x6)+-parseInt(_0x5e4201(0x114))/0x7+parseInt(_0x5e4201(0x141))/0x8*(parseInt(_0x5e4201(0x100))/0x9)+-parseInt(_0x5e4201(0x109))/0xa+parseInt(_0x5e4201(0x145))/0xb;if(_0x1fc94===_0x27733c)break;else _0x5e408b['push'](_0x5e408b['shift']());}catch(_0x3a7a99){_0x5e408b['push'](_0x5e408b['shift']());}}}(a0_0x4a52,0x88db0));function a0_0x4a52(){const _0x45272d=['styles','save','firstUpdated','Esc','formRenderConfig','formConfigSet','1NIDwoc','cuFlag','21690ydeYdw','true','activityDataSet','grid_column','orgData','patchData','call','forEach','formColumnConfig','8787590iKObMt','__dirty__','clear','getBasicFormHtml','parent_id','fetch','tagName','parseBasicFormConfigs','keydown','removeAttribute','__dirtyfields__','1225819utVWTN','isEquals','context','map','getContextObject','object','removeGarbageData','75JehbUP','startsWith','before','properties','column','focus','field-change','isNotEmpty','filter','record','addEventListener','entries','render','name','parseFormConfigSet','editing','detail','isPage','click','button','after','findOne','2082302TNFOXn','getData','OX-GRID-FIELD','target','validation','renderRoot','pageInitialized','connectedCallback','Escape','showAlertPopup','text.NOTHING_CHANGED','dataSet','dirtyData','__seq__','4607415VapNky','14876hFbqcE','2920izkDec','currentTarget','6bmgHbK','function','28648895RvmTUJ','key','isElement','parseFormConfigs','currentData','__origin__','activity','updateMultiple','Enter','stopPropagation','isEmpty'];a0_0x4a52=function(){return _0x45272d;};return a0_0x4a52();}function a0_0x3568(_0x1ea2be,_0x35772c){const _0x4a5216=a0_0x4a52();return a0_0x3568=function(_0x35685c,_0x4deea0){_0x35685c=_0x35685c-0xf6;let _0x17c1e6=_0x4a5216[_0x35685c];return _0x17c1e6;},a0_0x3568(_0x1ea2be,_0x35772c);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2cd920=>class extends MetaButtonMixin(_0x2cd920){static get[a0_0x20f00c(0xf8)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x20f00c(0x11e)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x20f00c(0x116)](){const _0x5f56d8=a0_0x20f00c;return MetaUiUtil[_0x5f56d8(0x118)](this);}async[a0_0x20f00c(0x138)](){const _0x218996=a0_0x20f00c;await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x218996(0x148)](),this[_0x218996(0x102)]&&(this[_0x218996(0x13c)]=this[_0x218996(0x102)]),!0x0!==this['is_activity']||this[_0x218996(0x10d)]||(this[_0x218996(0x10d)]=_0x218996(0x14b)),super[_0x218996(0x138)]&&await super[_0x218996(0x138)](),this[_0x218996(0x147)]&&await this[_0x218996(0x10e)](),this[_0x218996(0x136)][_0x218996(0x125)](_0x218996(0x111),_0xc7a0c3=>{const _0x248129=_0x218996;switch(_0xc7a0c3[_0x248129(0x146)]){case _0x248129(0xfb):case _0x248129(0x139):case _0x248129(0x14d):this[_0x248129(0x120)](),this[_0x248129(0x142)]&&this[_0x248129(0x142)][_0x248129(0x112)]('editing'),this[_0x248129(0x142)]=null;}}),this[_0x218996(0x136)][_0x218996(0x125)](_0x218996(0x12d),_0x142467=>{const _0x3ff38f=_0x218996;_0x142467[_0x3ff38f(0xf6)]();let _0x480a7f=_0x142467[_0x3ff38f(0x134)];if(this[_0x3ff38f(0x142)]&&(this[_0x3ff38f(0x120)](),this[_0x3ff38f(0x142)]['removeAttribute'](_0x3ff38f(0x12a))),_0x3ff38f(0x133)!==_0x480a7f[_0x3ff38f(0x10f)]||!_0x480a7f[_0x3ff38f(0x11f)]['record']['editable'])return this[_0x3ff38f(0x120)](),void(this[_0x3ff38f(0x142)]=null);this[_0x3ff38f(0x142)]=_0x480a7f,_0x480a7f['setAttribute']('editing',_0x3ff38f(0x101));}),this[_0x218996(0x125)](_0x218996(0x121),_0x59bea2=>{const _0x50b4bc=_0x218996;var {after:_0x8de49,before:_0x4d14c5,column:_0x4c30bc,record:_0x4f263a,row:_0x1fc33f}=_0x59bea2[_0x50b4bc(0x12b)];if(ValueUtil[_0x50b4bc(0x115)](_0x8de49,_0x4d14c5))return;var _0xb72426=_0x4c30bc[_0x50b4bc(0x135)];if(_0xb72426&&_0x50b4bc(0x144)==typeof _0xb72426&&!_0xb72426[_0x50b4bc(0x106)](this,_0x8de49,_0x4d14c5,_0x4f263a,_0x4c30bc))return;let _0x39dde9=_0x4c30bc[_0x50b4bc(0x128)];_0x4f263a[_0x39dde9]=_0x8de49,_0x4f263a[_0x50b4bc(0x113)]=_0x4f263a[_0x50b4bc(0x113)]||{},_0x4f263a['__origin__']=_0x4f263a[_0x50b4bc(0x14a)]||{},_0x4f263a[_0x50b4bc(0x113)][_0x39dde9]={'before':_0x4f263a['__origin__'][_0x39dde9],'after':_0x4f263a[_0x39dde9]},ValueUtil['isEquals'](_0x4f263a[_0x50b4bc(0x113)][_0x39dde9][_0x50b4bc(0x11d)],_0x4f263a['__dirtyfields__'][_0x39dde9][_0x50b4bc(0x12f)])&&delete _0x4f263a['__dirtyfields__'][_0x39dde9],ValueUtil[_0x50b4bc(0x122)](_0x4f263a['__dirtyfields__'])?_0x4f263a[_0x50b4bc(0x10a)]='M':_0x4f263a[_0x50b4bc(0x10a)]='',this[_0x50b4bc(0x124)]={..._0x4f263a};});}async['firstUpdated'](){const _0xeb9cd8=a0_0x20f00c;super[_0xeb9cd8(0xfa)]&&await super[_0xeb9cd8(0xfa)]();}async[a0_0x20f00c(0x137)](){const _0x19766a=a0_0x20f00c;this['isPage']&&await this['parseFormConfigs'](),super['pageInitialized']&&await super['pageInitialized'](),this[_0x19766a(0x12c)]&&await this['fetch']();}[a0_0x20f00c(0x127)](){const _0x2cd9bf=a0_0x20f00c;return MetaApi[_0x2cd9bf(0x10c)](this);}[a0_0x20f00c(0x110)](_0x28bfa6){const _0x3de952=a0_0x20f00c;this[_0x3de952(0x108)]=_0x28bfa6[_0x3de952(0x103)],this[_0x3de952(0xfc)]=_0x28bfa6['form'],_0x28bfa6[_0x3de952(0x12e)]=_0x28bfa6[_0x3de952(0x12e)][_0x3de952(0x123)](_0x73be42=>'save'==_0x73be42['name']);}async[a0_0x20f00c(0x148)](){const _0x573c4e=a0_0x20f00c;this[_0x573c4e(0xfd)]=await MetaApi[_0x573c4e(0x129)](this);}get[a0_0x20f00c(0x104)](){const _0x57cc74=a0_0x20f00c;return this[_0x57cc74(0x11a)](this[_0x57cc74(0x124)][_0x57cc74(0x14a)]);}get['dirtyData'](){const _0x22597a=a0_0x20f00c;if(ValueUtil[_0x22597a(0xf7)](this['record'][_0x22597a(0x113)]))return{};let _0x4b2ffe={};return Object[_0x22597a(0x126)](this[_0x22597a(0x124)]['__dirtyfields__'])[_0x22597a(0x117)](([_0x1a8d99,_0x190bd9])=>{const _0x28a791=_0x22597a;0x0==_0x1a8d99[_0x28a791(0x11c)]('__')&&(_0x4b2ffe[_0x1a8d99]=_0x190bd9[_0x28a791(0x12f)]);}),_0x4b2ffe;}get['currentData'](){const _0x5c779f=a0_0x20f00c;return this[_0x5c779f(0x11a)](this['record']);}[a0_0x20f00c(0x11a)](_0x3721fb){const _0x3929a1=a0_0x20f00c;let _0x25a948={};if(_0x3721fb)return Object[_0x3929a1(0x126)](_0x3721fb)[_0x3929a1(0x117)](([_0x64b27d,_0x317291])=>{const _0x48cd3b=_0x3929a1;0x0==_0x64b27d[_0x48cd3b(0x11c)]('__')&&(_0x25a948[_0x64b27d]=_0x317291);}),_0x25a948;}get[a0_0x20f00c(0x105)](){const _0x3f5d5b=a0_0x20f00c;let _0x5b77f9=this[_0x3f5d5b(0x13d)],_0x2a0d2b=this[_0x3f5d5b(0x124)];return ValueUtil[_0x3f5d5b(0xf7)](_0x5b77f9)?[]:(ValueUtil[_0x3f5d5b(0x122)](_0x2a0d2b['id'])?(_0x5b77f9['id']=_0x2a0d2b['id'],_0x5b77f9['cuFlag']='M'):_0x5b77f9[_0x3f5d5b(0xff)]='+',Object['keys'](_0x5b77f9)[_0x3f5d5b(0x107)](_0x3d0c96=>{const _0xc69706=_0x3f5d5b;_0xc69706(0x119)==typeof _0x5b77f9[_0x3d0c96]&&(_0x5b77f9[_0x3d0c96]={'id':_0x5b77f9[_0x3d0c96]['id']});}),[_0x5b77f9]);}async[a0_0x20f00c(0x10e)](){const _0x22ff08=a0_0x20f00c;if(ValueUtil[_0x22ff08(0xf7)](this[_0x22ff08(0x10d)]))return;let _0x5a6fa5=await this[_0x22ff08(0x130)](this[_0x22ff08(0x10d)]);_0x5a6fa5[_0x22ff08(0x13e)]=0x1;let _0x42cbe7={};Object['assign'](_0x42cbe7,_0x5a6fa5),_0x5a6fa5[_0x22ff08(0x14a)]=_0x42cbe7,this['record']={..._0x5a6fa5};}async[a0_0x20f00c(0xf9)](){const _0x1e04ae=a0_0x20f00c;let _0x2768e2=this[_0x1e04ae(0x105)];if(ValueUtil[_0x1e04ae(0xf7)](_0x2768e2))return void MetaApi[_0x1e04ae(0x13a)]('title.info',_0x1e04ae(0x13b));let _0x6359cb=await this[_0x1e04ae(0x14c)](_0x2768e2);return _0x6359cb&&await this[_0x1e04ae(0x10e)](),_0x6359cb;}async[a0_0x20f00c(0x10b)](){const _0x4d6509=a0_0x20f00c;this['record']&&(this[_0x4d6509(0x124)]={});}[a0_0x20f00c(0x132)](){const _0x1feb0f=a0_0x20f00c;return this[_0x1feb0f(0x149)]||{};}};
@@ -1 +1 @@
1
- const a0_0x9dbe31=a0_0x4c52;(function(_0x155601,_0x5c6222){const _0x2df4e2=a0_0x4c52,_0x21510b=_0x155601();while(!![]){try{const _0x5870b9=parseInt(_0x2df4e2(0x9f))/0x1*(parseInt(_0x2df4e2(0xba))/0x2)+-parseInt(_0x2df4e2(0xc9))/0x3+-parseInt(_0x2df4e2(0xbe))/0x4+parseInt(_0x2df4e2(0xb8))/0x5+parseInt(_0x2df4e2(0xa4))/0x6*(parseInt(_0x2df4e2(0xaa))/0x7)+parseInt(_0x2df4e2(0xa5))/0x8+-parseInt(_0x2df4e2(0xc6))/0x9;if(_0x5870b9===_0x5c6222)break;else _0x21510b['push'](_0x21510b['shift']());}catch(_0x4ceb74){_0x21510b['push'](_0x21510b['shift']());}}}(a0_0x4375,0xe6919));import{html}from'lit';function a0_0x4375(){const _0x22f3f7=['searchFieldValues','forEach','record','exportable','gridConfig','actions','deleteByIds','querySelector','filter','type','7677485FZNDvP','search','10SKkDiW','startsWith','importable','records','3904592emwaut','gristId','isNotEmpty','grist','getData','ox-grist','connectedCallback','meta-tab-element','11691711XLOPVV','firstUpdated','gristConfigSet','3943734rATPsh','patchesForUpdateMultiple','searchFields','pageInitialized','properties','filterForm','title','tTitle','dataSet','getSelectedIdList','find','export','main','#detail','clear','parseGridConfigSet','getContextObject','ox-filters-form-base','save','operator','options','parseGristConfigs','isElement','parseBasicGridConfigs','filterFormId','name','keys','shadowRoot','menuInfo','updateMultiple','262623rGbZgx','getAndParseMenuMeta','import','getBasicGristTabStyles','gridColumnConfig','12WppnQl','10621152zLUpcP','value','header','grid_column','delete','1252853ezWIgC','beforeFetch','activityDataSet','fetch'];a0_0x4375=function(){return _0x22f3f7;};return a0_0x4375();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x4c52(_0x133733,_0x5715c3){const _0x43751d=a0_0x4375();return a0_0x4c52=function(_0x4c5284,_0x179040){_0x4c5284=_0x4c5284-0x85;let _0x1da896=_0x43751d[_0x4c5284];return _0x1da896;},a0_0x4c52(_0x133733,_0x5715c3);}export const MetaGristTabMixin=_0x47aee9=>class extends MetaButtonMixin(_0x47aee9){static get['styles'](){const _0x2730e9=a0_0x4c52;return MetaApi[_0x2730e9(0xa2)]();}static get[a0_0x9dbe31(0x85)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x9dbe31(0xc1)](){const _0x172272=a0_0x9dbe31;return this['renderRoot'][_0x172272(0xb5)](this['gristId']);}get[a0_0x9dbe31(0x86)](){const _0xbc4a82=a0_0x9dbe31;return this[_0xbc4a82(0x9c)]?.[_0xbc4a82(0xb5)](this['filterFormId']);}get['detailElement'](){const _0x189dd6=a0_0x9dbe31;return this[_0x189dd6(0x9c)][_0x189dd6(0xb5)](_0x189dd6(0x8e));}get['context'](){const _0x457b9d=a0_0x9dbe31;let _0x12ba02=MetaUiUtil[_0x457b9d(0x91)](this);return _0x12ba02[_0x457b9d(0xb3)]&&delete _0x12ba02['actions'],_0x12ba02[_0x457b9d(0xb1)]&&delete _0x12ba02[_0x457b9d(0xb1)],_0x12ba02[_0x457b9d(0xbc)]&&delete _0x12ba02[_0x457b9d(0xbc)],_0x12ba02;}async[a0_0x9dbe31(0xc4)](){const _0xdec14d=a0_0x9dbe31;this[_0xdec14d(0xbf)]=_0xdec14d(0xc3),this[_0xdec14d(0x99)]=_0xdec14d(0x92),await this[_0xdec14d(0xa0)](),this[_0xdec14d(0x97)]&&await this[_0xdec14d(0x96)](),this[_0xdec14d(0xac)]&&(this[_0xdec14d(0x89)]=(this[_0xdec14d(0xac)]||{})[_0xdec14d(0x8d)]),super[_0xdec14d(0xc4)]&&await super['connectedCallback']();}async[a0_0x9dbe31(0xc7)](){const _0x436e6a=a0_0x9dbe31;super['firstUpdated']&&await super[_0x436e6a(0xc7)]();}async[a0_0x9dbe31(0xcc)](){this['isPage']&&await this['parseGristConfigs'](),super['pageInitialized']&&await super['pageInitialized']();}['render'](){return MetaApi['getGristTabHtml'](this);}[a0_0x9dbe31(0x98)](_0x566237){const _0x10ed80=a0_0x9dbe31;this[_0x10ed80(0xb2)]=_0x566237['grid'],this[_0x10ed80(0xa3)]=_0x566237[_0x10ed80(0xa8)],this['searchConfig']=_0x566237[_0x10ed80(0xb9)];}async[a0_0x9dbe31(0x96)](){const _0x25fbff=a0_0x9dbe31;this['gristConfigSet']=await MetaApi[_0x25fbff(0x90)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x25fbff(0xae)]=[],this[_0x25fbff(0xcb)]=this[_0x25fbff(0xc8)]['columns'][_0x25fbff(0xb6)](_0x1d842e=>_0x1d842e[_0x25fbff(0xb6)])['map'](_0xd5a7df=>{const _0x375edd=_0x25fbff;let _0x568197={'name':_0xd5a7df[_0x375edd(0x9a)],'type':_0xd5a7df[_0x375edd(0xb7)],'label':_0xd5a7df[_0x375edd(0xa7)],'operator':_0xd5a7df['filter'][_0x375edd(0x94)]?_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0x94)]:'eq'};return _0xd5a7df['record'][_0x375edd(0x95)]&&(_0x568197[_0x375edd(0x95)]=_0xd5a7df[_0x375edd(0xb0)][_0x375edd(0x95)]),_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0xa6)]&&this[_0x375edd(0xae)]['push']({'name':_0x568197[_0x375edd(0x9a)],'operator':_0x568197[_0x375edd(0x94)],'value':_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0xa6)]}),_0x568197;});}async[a0_0x9dbe31(0xad)](){const _0x406d6c=a0_0x9dbe31;await this[_0x406d6c(0xc1)][_0x406d6c(0xad)]();}async[a0_0x9dbe31(0xab)]({page:_0x5bdfc9=0x0,limit:_0x5ee683=0x0,sortings:_0x397c0f=[],filters:_0x5740d5=[]}){const _0x4324bc=a0_0x9dbe31;let _0x13cbd1=this['renderRoot'][_0x4324bc(0xb5)]('meta-tab-element');return await _0x13cbd1[_0x4324bc(0x8f)](),!0x0;}async[a0_0x9dbe31(0x93)](){const _0x383f55=a0_0x9dbe31;let _0x114732=MetaApi[_0x383f55(0xca)](this[_0x383f55(0xc1)]);!!ValueUtil[_0x383f55(0xc0)](_0x114732)&&await this[_0x383f55(0x9e)](_0x114732)&&this[_0x383f55(0xad)]();}async[a0_0x9dbe31(0x8b)](){const _0x5c1b89=a0_0x9dbe31;let _0x5506a4=MetaApi[_0x5c1b89(0x8a)](this[_0x5c1b89(0xc1)],!0x0);return ValueUtil['isNotEmpty'](_0x5506a4)?await this['findOne'](_0x5506a4[0x0]):{};}async[a0_0x9dbe31(0xa9)](){const _0x208898=a0_0x9dbe31;let _0x5b2a4a=MetaApi[_0x208898(0x8a)](this[_0x208898(0xc1)],!0x0);!!ValueUtil[_0x208898(0xc0)](_0x5b2a4a)&&await this[_0x208898(0xb4)](_0x5b2a4a)&&this['fetch']();}async[a0_0x9dbe31(0x8c)](){const _0x148a58=a0_0x9dbe31;let _0x343056=TermsUtil[_0x148a58(0x88)](ValueUtil['getParams'](this[_0x148a58(0x9d)],_0x148a58(0x87)));return await MetaApi['exportableData'](this['isElement'],_0x343056,this['grist']);}async[a0_0x9dbe31(0xa1)](){}['getData'](){const _0x2f24eb=a0_0x9dbe31;let _0xa951bb=this[_0x2f24eb(0xc1)]['___data'][_0x2f24eb(0xbd)];return _0xa951bb=JSON['parse'](JSON['stringify'](_0xa951bb)),_0xa951bb[_0x2f24eb(0xaf)](_0x3c3ec0=>{const _0x549cd9=_0x2f24eb;Object[_0x549cd9(0x9b)](_0x3c3ec0)[_0x549cd9(0xaf)](_0x2d5a91=>{const _0x40c811=_0x549cd9;_0x2d5a91[_0x40c811(0xbb)]('__')&&delete _0x3c3ec0[_0x2d5a91];});}),{'main':_0xa951bb,'detail':this['renderRoot']['querySelector'](_0x2f24eb(0xc5))[_0x2f24eb(0xc2)]()};}};
1
+ const a0_0x2aee6a=a0_0x14b2;function a0_0x4010(){const _0x4918ee=['name','properties','header','activityDataSet','dataSet','grid_column','beforeFetch','gridConfig','import','4165158DrfOOP','type','connectedCallback','filter','styles','forEach','actions','isElement','main','detailElement','push','20145420tcUGci','820zdFEny','records','isNotEmpty','gristConfigSet','gridColumnConfig','grid','getData','operator','ox-grist','getAndParseMenuMeta','save','filterFormId','updateMultiple','107019mFiNnw','patchesForUpdateMultiple','findOne','exportableData','firstUpdated','clear','find','28FHCFwf','searchFieldValues','searchFields','gristId','ox-filters-form-base','keys','menuInfo','parse','useFilterForm','33TepCPu','getSelectedIdList','413653JEXlkE','getContextObject','#detail','search','160Dchbbu','map','getParams','context','options','___data','6rVGwhM','value','grist','stringify','importable','getBasicGristTabStyles','filterForm','10428DwncZI','shadowRoot','renderRoot','searchConfig','5799200NFGMon','parseGridConfigSet','useMasterFilterForm','getGristTabHtml','2244174CwNsHd','parseGristConfigs','title','record','meta-tab-element','render','querySelector','pageInitialized','exportable','fetch','tTitle','deleteByIds','columns'];a0_0x4010=function(){return _0x4918ee;};return a0_0x4010();}(function(_0x3c34b0,_0x594299){const _0x5b12a0=a0_0x14b2,_0x15fe61=_0x3c34b0();while(!![]){try{const _0x36be0d=-parseInt(_0x5b12a0(0x110))/0x1*(parseInt(_0x5b12a0(0x11a))/0x2)+-parseInt(_0x5b12a0(0xe5))/0x3+-parseInt(_0x5b12a0(0xc7))/0x4*(parseInt(_0x5b12a0(0xf1))/0x5)+-parseInt(_0x5b12a0(0xcf))/0x6*(parseInt(_0x5b12a0(0x105))/0x7)+-parseInt(_0x5b12a0(0x114))/0x8*(parseInt(_0x5b12a0(0xfe))/0x9)+parseInt(_0x5b12a0(0xcb))/0xa+-parseInt(_0x5b12a0(0x10e))/0xb*(-parseInt(_0x5b12a0(0xf0))/0xc);if(_0x36be0d===_0x594299)break;else _0x15fe61['push'](_0x15fe61['shift']());}catch(_0x2862e6){_0x15fe61['push'](_0x15fe61['shift']());}}}(a0_0x4010,0xc9866));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x14b2(_0xcd1c28,_0x3c32c6){const _0x401040=a0_0x4010();return a0_0x14b2=function(_0x14b2e7,_0x34e38c){_0x14b2e7=_0x14b2e7-0xc5;let _0x2af833=_0x401040[_0x14b2e7];return _0x2af833;},a0_0x14b2(_0xcd1c28,_0x3c32c6);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x2f37ce=>class extends MetaButtonMixin(_0x2f37ce){static get[a0_0x2aee6a(0xe9)](){const _0x5438d8=a0_0x2aee6a;return MetaApi[_0x5438d8(0xc5)]();}static get[a0_0x2aee6a(0xdd)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x2aee6a(0x11c)](){const _0xa32a4e=a0_0x2aee6a;return this['renderRoot'][_0xa32a4e(0xd5)](this['gristId']);}get[a0_0x2aee6a(0xc6)](){const _0x14a73c=a0_0x2aee6a;return this[_0x14a73c(0xc8)]?.[_0x14a73c(0xd5)](this['filterFormId']);}get[a0_0x2aee6a(0xee)](){const _0xb60658=a0_0x2aee6a;return this[_0xb60658(0xc8)][_0xb60658(0xd5)](_0xb60658(0x112));}get[a0_0x2aee6a(0x117)](){const _0x1c7c98=a0_0x2aee6a;let _0x496d56=MetaUiUtil[_0x1c7c98(0x111)](this);return _0x496d56[_0x1c7c98(0xeb)]&&delete _0x496d56[_0x1c7c98(0xeb)],_0x496d56[_0x1c7c98(0xd7)]&&delete _0x496d56['exportable'],_0x496d56[_0x1c7c98(0x11e)]&&delete _0x496d56[_0x1c7c98(0x11e)],_0x496d56;}async[a0_0x2aee6a(0xe7)](){const _0x306465=a0_0x2aee6a;this[_0x306465(0x108)]=_0x306465(0xf9),this[_0x306465(0xfc)]=_0x306465(0x109),await this[_0x306465(0xfa)](),this['isElement']&&await this[_0x306465(0xd0)](),this[_0x306465(0xdf)]&&(this[_0x306465(0xe0)]=(this[_0x306465(0xdf)]||{})[_0x306465(0xed)]),super[_0x306465(0xe7)]&&await super[_0x306465(0xe7)]();}async[a0_0x2aee6a(0x102)](){const _0x13424f=a0_0x2aee6a;super[_0x13424f(0x102)]&&await super[_0x13424f(0x102)]();}async[a0_0x2aee6a(0xd6)](){const _0xf85ba6=a0_0x2aee6a;this['isPage']&&await this['parseGristConfigs'](),super[_0xf85ba6(0xd6)]&&await super[_0xf85ba6(0xd6)]();}[a0_0x2aee6a(0xd4)](){const _0x118433=a0_0x2aee6a;return MetaApi[_0x118433(0xce)](this);}['parseBasicGridConfigs'](_0x3870b5){const _0x51b71c=a0_0x2aee6a;this[_0x51b71c(0xe3)]=_0x3870b5[_0x51b71c(0xf6)],this[_0x51b71c(0xf5)]=_0x3870b5[_0x51b71c(0xe1)],this[_0x51b71c(0xca)]=_0x3870b5[_0x51b71c(0x113)];}async[a0_0x2aee6a(0xd0)](){const _0x3a5003=a0_0x2aee6a;this[_0x3a5003(0xf4)]=await MetaApi[_0x3a5003(0xcc)](this),this[_0x3a5003(0xcd)]=!0x0===this['useFilterForm'],this[_0x3a5003(0x10d)]=!0x1,this[_0x3a5003(0x106)]=[],this[_0x3a5003(0x107)]=this[_0x3a5003(0xf4)][_0x3a5003(0xdb)][_0x3a5003(0xe8)](_0xa04e3b=>_0xa04e3b['filter'])[_0x3a5003(0x115)](_0x21c9c1=>{const _0x48ea4f=_0x3a5003;let _0x80d821={'name':_0x21c9c1[_0x48ea4f(0xdc)],'type':_0x21c9c1[_0x48ea4f(0xe6)],'label':_0x21c9c1[_0x48ea4f(0xde)],'operator':_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0xf8)]?_0x21c9c1[_0x48ea4f(0xe8)]['operator']:'eq'};return _0x21c9c1['record'][_0x48ea4f(0x118)]&&(_0x80d821[_0x48ea4f(0x118)]=_0x21c9c1[_0x48ea4f(0xd2)][_0x48ea4f(0x118)]),_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0x11b)]&&this[_0x48ea4f(0x106)][_0x48ea4f(0xef)]({'name':_0x80d821[_0x48ea4f(0xdc)],'operator':_0x80d821[_0x48ea4f(0xf8)],'value':_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0x11b)]}),_0x80d821;});}async[a0_0x2aee6a(0xd8)](){const _0x304825=a0_0x2aee6a;await this['grist'][_0x304825(0xd8)]();}async[a0_0x2aee6a(0xe2)]({page:_0x4fca55=0x0,limit:_0x14e848=0x0,sortings:_0x31836a=[],filters:_0x2f68fa=[]}){const _0x4fdb62=a0_0x2aee6a;let _0x18ec45=this[_0x4fdb62(0xc9)][_0x4fdb62(0xd5)]('meta-tab-element');return await _0x18ec45[_0x4fdb62(0x103)](),!0x0;}async[a0_0x2aee6a(0xfb)](){const _0x284613=a0_0x2aee6a;let _0x125103=MetaApi[_0x284613(0xff)](this['grist']);!!ValueUtil['isNotEmpty'](_0x125103)&&await this[_0x284613(0xfd)](_0x125103)&&this[_0x284613(0xd8)]();}async[a0_0x2aee6a(0x104)](){const _0xa31299=a0_0x2aee6a;let _0x425e4e=MetaApi[_0xa31299(0x10f)](this[_0xa31299(0x11c)],!0x0);return ValueUtil['isNotEmpty'](_0x425e4e)?await this[_0xa31299(0x100)](_0x425e4e[0x0]):{};}async['delete'](){const _0x65a00f=a0_0x2aee6a;let _0x183cce=MetaApi[_0x65a00f(0x10f)](this[_0x65a00f(0x11c)],!0x0);!!ValueUtil[_0x65a00f(0xf3)](_0x183cce)&&await this[_0x65a00f(0xda)](_0x183cce)&&this[_0x65a00f(0xd8)]();}async['export'](){const _0x4c0f56=a0_0x2aee6a;let _0x450176=TermsUtil[_0x4c0f56(0xd9)](ValueUtil[_0x4c0f56(0x116)](this[_0x4c0f56(0x10b)],_0x4c0f56(0xd1)));return await MetaApi[_0x4c0f56(0x101)](this[_0x4c0f56(0xec)],_0x450176,this['grist']);}async[a0_0x2aee6a(0xe4)](){}[a0_0x2aee6a(0xf7)](){const _0xa5797f=a0_0x2aee6a;let _0x5301d5=this[_0xa5797f(0x11c)][_0xa5797f(0x119)][_0xa5797f(0xf2)];return _0x5301d5=JSON[_0xa5797f(0x10c)](JSON[_0xa5797f(0x11d)](_0x5301d5)),_0x5301d5[_0xa5797f(0xea)](_0x5e82d3=>{const _0x3830c1=_0xa5797f;Object[_0x3830c1(0x10a)](_0x5e82d3)[_0x3830c1(0xea)](_0x5835eb=>{_0x5835eb['startsWith']('__')&&delete _0x5e82d3[_0x5835eb];});}),{'main':_0x5301d5,'detail':this[_0xa5797f(0xc9)][_0xa5797f(0xd5)](_0xa5797f(0xd3))[_0xa5797f(0xf7)]()};}};