@things-factory/meta-ui 6.0.0-alpha.19 → 6.0.0-alpha.21

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 (60) hide show
  1. package/assets/images/operato-tools.png +0 -0
  2. package/client/actions/main.js +3 -3
  3. package/client/bootstrap.js +36 -15
  4. package/client/index.js +0 -1
  5. package/client/mixin/meta-base-mixin.js +1 -1
  6. package/client/mixin/meta-basic-form-mixin.js +4 -4
  7. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  8. package/client/mixin/meta-button-mixin.js +1 -1
  9. package/client/mixin/meta-service-mixin.js +1 -1
  10. package/client/pages/entity/config-entity.js +69 -0
  11. package/client/pages/entity/main-menu-selector.js +75 -0
  12. package/client/pages/loading-page.js +6 -6
  13. package/client/pages/menu/dynamic-menu-template.js +7 -7
  14. package/client/pages/menu/dynamic-menu.js +15 -15
  15. package/client/pages/meta-form-element.js +1 -1
  16. package/client/pages/meta-grist-element.js +1 -1
  17. package/client/pages/meta-grist-page.js +1 -1
  18. package/client/pages/terms/config-terminology.js +6 -6
  19. package/client/reducers/main.js +1 -1
  20. package/client/route.js +6 -2
  21. package/client/utils/meta-api.js +1 -1
  22. package/client/utils/meta-crypto.js +1 -1
  23. package/client/utils/meta-ui-util.js +24 -24
  24. package/client/utils/service-util.js +12 -12
  25. package/client/utils/terms-util.js +2 -2
  26. package/client/utils/ui-util.js +1 -1
  27. package/client/utils/value-util.js +1 -1
  28. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  29. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  30. package/client/viewparts/dynamic-menu-part.js +6 -6
  31. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  32. package/client/viewparts/dynamic-menu-portrait.js +10 -10
  33. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  34. package/dist-server/constants/error-code.js +1 -1
  35. package/dist-server/constants/error-code.js.map +1 -1
  36. package/dist-server/controllers/index.js.map +1 -1
  37. package/dist-server/errors/index.js +2 -15
  38. package/dist-server/errors/index.js.map +1 -1
  39. package/dist-server/errors/license-error.js +1 -1
  40. package/dist-server/errors/license-error.js.map +1 -1
  41. package/dist-server/index.js +4 -17
  42. package/dist-server/index.js.map +1 -1
  43. package/dist-server/middlewares/index.js.map +1 -1
  44. package/dist-server/migrations/index.js.map +1 -1
  45. package/dist-server/routes.js +1 -1
  46. package/dist-server/routes.js.map +1 -1
  47. package/dist-server/service/index.js +3 -1
  48. package/dist-server/service/index.js.map +1 -1
  49. package/dist-server/service/meta-secret/index.js.map +1 -1
  50. package/dist-server/service/meta-secret/meta-resolver.js +1 -1
  51. package/dist-server/service/meta-secret/meta-resolver.js.map +1 -1
  52. package/dist-server/service/set-translations/index.js +6 -0
  53. package/dist-server/service/set-translations/index.js.map +1 -0
  54. package/dist-server/service/set-translations/set-translation-resolver.js +1 -0
  55. package/dist-server/service/set-translations/set-translation-resolver.js.map +1 -0
  56. package/package.json +4 -4
  57. package/translations/en.json +33 -3
  58. package/translations/ko.json +33 -3
  59. package/translations/ms.json +33 -3
  60. package/translations/zh.json +33 -3
Binary file
@@ -1,4 +1,4 @@
1
- function a0_0x35bb(_0x45656f,_0x567441){const _0x4f02de=a0_0x4f02();return a0_0x35bb=function(_0x35bb3a,_0x1ae3c1){_0x35bb3a=_0x35bb3a-0x163;let _0x3c547b=_0x4f02de[_0x35bb3a];return _0x3c547b;},a0_0x35bb(_0x45656f,_0x567441);}const a0_0x52d530=a0_0x35bb;(function(_0x20be5f,_0x29d178){const _0x124b00=a0_0x35bb,_0x272cef=_0x20be5f();while(!![]){try{const _0x26fb80=parseInt(_0x124b00(0x16f))/0x1+parseInt(_0x124b00(0x168))/0x2*(parseInt(_0x124b00(0x176))/0x3)+parseInt(_0x124b00(0x16e))/0x4+parseInt(_0x124b00(0x16b))/0x5+parseInt(_0x124b00(0x16a))/0x6+-parseInt(_0x124b00(0x174))/0x7*(parseInt(_0x124b00(0x171))/0x8)+-parseInt(_0x124b00(0x16d))/0x9;if(_0x26fb80===_0x29d178)break;else _0x272cef['push'](_0x272cef['shift']());}catch(_0x25e741){_0x272cef['push'](_0x272cef['shift']());}}}(a0_0x4f02,0x81a39));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import{html}from'lit';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_0x52d530(0x170);export const UPDATE_META_MENU_TEMPLATE=a0_0x52d530(0x169);function a0_0x4f02(){const _0x452612=['UPDATE_META_UI','4184ILdQdv','dispatch','dynamic-menu','5173kBDCog','hamburger','659733jfklBS','FRONT_END','dynamic-menu-part','landscape','NAVBAR','get','6UZFjpp','UPDATE_META_MENU_TEMPLATE','3954972uTtEoY','2517760MJYnCP','HEADERBAR','16156566TIIsUr','2960168nQQKEP','150183imhQeL'];a0_0x4f02=function(){return _0x452612;};return a0_0x4f02();}var HAMBURGER;export async function setupMenuPart(_0x1b68a4){const _0x27f04c=a0_0x52d530;var {hovering:_0x311d63=!!isMobileDevice(),slotTemplate:_0x41268b,portraitSlotTemplate:_0x5eaee8,landscapeSlotTemplate:_0xac5b5b,position:_0x63c17c=VIEWPART_POSITION[_0x27f04c(0x166)]}=_0x1b68a4||{};const {hovering:_0x2ddbcb}=(await clientSettingStore[_0x27f04c(0x167)](_0x27f04c(0x173)))?.['value']||{};void 0x0!==_0x2ddbcb&&(_0x311d63=_0x2ddbcb);const _0x13077a=_0x63c17c==VIEWPART_POSITION[_0x27f04c(0x16c)]?_0x27f04c(0x165):'portrait',_0x51a0c9=(_0x27f04c(0x165)==_0x13077a?_0xac5b5b:_0x5eaee8)||_0x41268b||html``;appendViewpart({'name':'lite-menu-part','viewpart':{'show':!_0x311d63,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x311d63,'template':html`<dynamic-menu-part .orientation=${_0x13077a}>${_0x51a0c9}</dynamic-menu-part>`},'position':_0x63c17c}),_0x311d63&&'portrait'==_0x13077a?HAMBURGER||(HAMBURGER={'name':_0x27f04c(0x175),'template':html`
2
- <mwc-icon @click=${_0xaf7e4b=>toggleOverlay(_0x27f04c(0x164),{'backdrop':!0x0})}
1
+ (function(_0x4f5c32,_0x5e7f31){const _0x9d0275=a0_0x4e89,_0x4c6d13=_0x4f5c32();while(!![]){try{const _0x5a8ece=-parseInt(_0x9d0275(0x1db))/0x1+parseInt(_0x9d0275(0x1dd))/0x2*(-parseInt(_0x9d0275(0x1d1))/0x3)+parseInt(_0x9d0275(0x1df))/0x4+parseInt(_0x9d0275(0x1dc))/0x5*(-parseInt(_0x9d0275(0x1d5))/0x6)+parseInt(_0x9d0275(0x1cd))/0x7+parseInt(_0x9d0275(0x1d2))/0x8*(-parseInt(_0x9d0275(0x1d4))/0x9)+-parseInt(_0x9d0275(0x1de))/0xa*(-parseInt(_0x9d0275(0x1d3))/0xb);if(_0x5a8ece===_0x5e7f31)break;else _0x4c6d13['push'](_0x4c6d13['shift']());}catch(_0x2077c0){_0x4c6d13['push'](_0x4c6d13['shift']());}}}(a0_0x50e3,0x5d447));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import{html}from'lit';function a0_0x50e3(){const _0x47c786=['FRONT_END','343861HckHui','85VljkJB','6UxThPx','2328010KhSSkJ','2677944iMtsRt','dynamic-menu','dispatch','lite-menu-part','5305489TQVXqw','hamburger','portrait','dynamic-menu-part','605964sFNyWy','52496Wwukkq','33WEahtP','1035frnNHq','13884lwLyYV','landscape','NAVBAR','get','value'];a0_0x50e3=function(){return _0x47c786;};return a0_0x50e3();}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='UPDATE_META_UI';function a0_0x4e89(_0x482a5c,_0x24f258){const _0x50e3bf=a0_0x50e3();return a0_0x4e89=function(_0x4e8970,_0x267c76){_0x4e8970=_0x4e8970-0x1cd;let _0x19e508=_0x50e3bf[_0x4e8970];return _0x19e508;},a0_0x4e89(_0x482a5c,_0x24f258);}export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;export async function setupMenuPart(_0x584c1c){const _0x2ff59f=a0_0x4e89;var {hovering:_0x79d8f=!!isMobileDevice(),slotTemplate:_0x1fd0b1,portraitSlotTemplate:_0x1cdf1a,landscapeSlotTemplate:_0x348289,position:_0x563e6f=VIEWPART_POSITION[_0x2ff59f(0x1d7)]}=_0x584c1c||{};const {hovering:_0x21586a}=(await clientSettingStore[_0x2ff59f(0x1d8)](_0x2ff59f(0x1e0)))?.[_0x2ff59f(0x1d9)]||{};void 0x0!==_0x21586a&&(_0x79d8f=_0x21586a);const _0x42776f=_0x563e6f==VIEWPART_POSITION['HEADERBAR']?'landscape':_0x2ff59f(0x1cf),_0x1225fb=(_0x2ff59f(0x1d6)==_0x42776f?_0x348289:_0x1cdf1a)||_0x1fd0b1||html``;appendViewpart({'name':_0x2ff59f(0x1e2),'viewpart':{'show':!_0x79d8f,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x79d8f,'template':html`<dynamic-menu-part .orientation=${_0x42776f}>${_0x1225fb}</dynamic-menu-part>`},'position':_0x563e6f}),_0x79d8f&&_0x2ff59f(0x1cf)==_0x42776f?HAMBURGER||(HAMBURGER={'name':_0x2ff59f(0x1ce),'template':html`
2
+ <mwc-icon @click=${_0x19ca49=>toggleOverlay(_0x2ff59f(0x1d0),{'backdrop':!0x0})}
3
3
  >view_headline</mwc-icon>
4
- `,'position':TOOL_POSITION[_0x27f04c(0x163)]},store[_0x27f04c(0x172)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x27f04c(0x172)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0xb71cfc){const _0x32bad1=a0_0x52d530;store[_0x32bad1(0x172)]({'type':UPDATE_META_MENU_TEMPLATE,'template':_0xb71cfc});}
4
+ `,'position':TOOL_POSITION[_0x2ff59f(0x1da)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':_0x2ff59f(0x1ce)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x35fc26){const _0x4def4e=a0_0x4e89;store[_0x4def4e(0x1e1)]({'type':UPDATE_META_MENU_TEMPLATE,'template':_0x35fc26});}
@@ -1,5 +1,3 @@
1
- import '@operato/i18n/ox-i18n.js'
2
-
3
1
  import { html } from 'lit-html'
4
2
 
5
3
  import { auth } from '@things-factory/auth-base'
@@ -22,21 +20,18 @@ export default function bootstrap() {
22
20
  // 1. 용어 다운로드
23
21
  let locale = MetaApi.currentLocale()
24
22
  if (locale == 'ko') locale = 'ko-KR'
25
-
26
23
  await TermsUtil.downloadTerminologies(locale)
27
24
 
28
25
  // 2. 메뉴 정보를 서버로 부터 받아서 적용
29
- // 메뉴 정보를 서버로 부터 받아서 적용
30
26
  let menuRoutes = await MetaApi.myDynamicMenus()
31
27
  let realMenus = menuRoutes.menus
32
-
33
28
  await updateMenuTemplate(realMenus)
34
29
 
35
30
  // 3. 동적 메뉴 관리 화면 추가
36
31
  store.dispatch({
37
32
  type: ADD_MORENDA,
38
33
  morenda: {
39
- icon: html`<mwc-icon>menu</mwc-icon>`,
34
+ icon: html`<mwc-icon>auto_fix_high</mwc-icon>`,
40
35
  name: html`<ox-i18n msgid="title.dynamic_menu"></ox-i18n>`,
41
36
  action: () => {
42
37
  navigate('dynamic-menu')
@@ -44,7 +39,19 @@ export default function bootstrap() {
44
39
  }
45
40
  })
46
41
 
47
- // 4. 용어 관리 화면 추가
42
+ // 4. 엔티티 관리 화면 추가
43
+ store.dispatch({
44
+ type: ADD_MORENDA,
45
+ morenda: {
46
+ icon: html`<mwc-icon>filter_tilt_shift</mwc-icon>`,
47
+ name: html`<ox-i18n msgid="title.entity"></ox-i18n>`,
48
+ action: () => {
49
+ navigate('config-entity')
50
+ }
51
+ }
52
+ })
53
+
54
+ // 5. 용어 관리 화면 추가
48
55
  store.dispatch({
49
56
  type: ADD_MORENDA,
50
57
  morenda: {
@@ -56,25 +63,37 @@ export default function bootstrap() {
56
63
  }
57
64
  })
58
65
 
59
- // 5. 모든 routes 정보 추출
66
+ // 시스템 설정 화면
67
+ store.dispatch({
68
+ type: ADD_MORENDA,
69
+ morenda: {
70
+ icon: html` <mwc-icon>settings</mwc-icon> `,
71
+ name: html` <ox-i18n msgid="title.system_settings"></ox-i18n> `,
72
+ action: () => {
73
+ navigate('settings')
74
+ }
75
+ }
76
+ })
77
+
78
+ // 6. 모든 routes 정보 추출
60
79
  let allRoutes = menuRoutes.routes
61
80
 
62
- // 6. store의 모듈 정보 조회 & 마지막 application 모듈 정보를 추출
81
+ // 7. store의 모듈 정보 조회 & 마지막 application 모듈 정보를 추출
63
82
  let modules = store.getState().app.modules
64
83
  let allModules = Object.assign([], modules)
65
84
  let appModule = allModules[allModules.length - 1]
66
85
 
67
- // 7. 최종 애플리케이션 모듈의 routes 정보 교체
86
+ // 8. 최종 애플리케이션 모듈의 routes 정보 교체
68
87
  appModule.routes = allRoutes.filter(r => {
69
88
  return r.template && !r.template.startsWith('@things-factory')
70
89
  })
71
90
 
72
- // 8. meta-ui 모듈 추출
91
+ // 9. meta-ui 모듈 추출
73
92
  let metaUiModule = allModules.find(m => {
74
93
  return m.name == '@things-factory/meta-ui'
75
94
  })
76
95
 
77
- // 9. meta-ui의 routes 정보 교체
96
+ // 10. meta-ui의 routes 정보 교체
78
97
  let metaUiRoutes = allRoutes.filter(r => {
79
98
  let isMetaUiRoute = r.template && r.template.startsWith('@things-factory/meta-ui')
80
99
  if (isMetaUiRoute) {
@@ -87,17 +106,16 @@ export default function bootstrap() {
87
106
  this.routes.forEach(r => {
88
107
  metaUiRoutes.push({ page: r.page, tagname: r.tagname })
89
108
  })
90
-
91
109
  metaUiModule.routes = metaUiRoutes
92
110
  metaUiModule.route = metaUiRoute
93
111
 
94
- // 10. store에 모듈 업데이트
112
+ // 11. store에 모듈 업데이트
95
113
  store.dispatch({
96
114
  type: UPDATE_MODULES,
97
115
  modules: allModules
98
116
  })
99
117
 
100
- // 11. 첫 페이지를 리로딩 처리 (shell/app.js에서 리로딩 처리시에는 라우팅 정보가 없어서 처리를 못하므로 여기서 다시 한번 해줌...)
118
+ // 12. 첫 페이지를 리로딩 처리 (shell/app.js에서 리로딩 처리시에는 라우팅 정보가 없어서 처리를 못하므로 여기서 다시 한번 해줌...)
101
119
  store.dispatch(navigateWithSilence(location))
102
120
  })
103
121
  }
@@ -115,6 +133,9 @@ function metaUiRoute(page) {
115
133
  } else if (page == 'config-terminology') {
116
134
  import('./pages/terms/config-terminology')
117
135
  return page
136
+ } else if (page == 'config-entity') {
137
+ import('./pages/entity/config-entity')
138
+ return page
118
139
  } else if (page == 'loading-page') {
119
140
  import('./pages/loading-page')
120
141
  return page
package/client/index.js CHANGED
@@ -18,6 +18,5 @@ export * from './mixin/meta-basic-grist-mixin'
18
18
 
19
19
  /** Page **/
20
20
  export * from './pages/meta-grist-page'
21
-
22
21
  export * from './pages/meta-grist-element'
23
22
  export * from './pages/meta-form-element'
@@ -1 +1 @@
1
- const a0_0x18418a=a0_0x284b;(function(_0x118968,_0x217c53){const _0x4f39f8=a0_0x284b,_0xa9a7f1=_0x118968();while(!![]){try{const _0x5ea86a=-parseInt(_0x4f39f8(0xfe))/0x1+-parseInt(_0x4f39f8(0xea))/0x2+parseInt(_0x4f39f8(0xfd))/0x3*(parseInt(_0x4f39f8(0x100))/0x4)+-parseInt(_0x4f39f8(0xe9))/0x5*(-parseInt(_0x4f39f8(0x106))/0x6)+parseInt(_0x4f39f8(0xf1))/0x7*(-parseInt(_0x4f39f8(0xfa))/0x8)+-parseInt(_0x4f39f8(0xfb))/0x9*(parseInt(_0x4f39f8(0xe7))/0xa)+parseInt(_0x4f39f8(0xf5))/0xb*(parseInt(_0x4f39f8(0xee))/0xc);if(_0x5ea86a===_0x217c53)break;else _0xa9a7f1['push'](_0xa9a7f1['shift']());}catch(_0x398327){_0xa9a7f1['push'](_0xa9a7f1['shift']());}}}(a0_0x19a5,0xb0ded));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x513892=>class extends _0x513892{static get[a0_0x18418a(0xff)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x448da6=>Boolean(_0x448da6)},'is_popup':{'type':Boolean,'converter':_0x9e931c=>Boolean(_0x9e931c)}};}get[a0_0x18418a(0xf3)](){const _0x21eac3=a0_0x18418a;return!0x0===this[_0x21eac3(0xf7)]||!0x0===this[_0x21eac3(0xeb)];}get['isDetail'](){const _0x5beb0d=a0_0x18418a;return!ValueUtil[_0x5beb0d(0x103)](this[_0x5beb0d(0xf7)])&&this[_0x5beb0d(0xf7)];}get[a0_0x18418a(0x105)](){const _0x331242=a0_0x18418a;return!ValueUtil[_0x331242(0x103)](this[_0x331242(0xeb)])&&this[_0x331242(0xeb)];}get[a0_0x18418a(0xf8)](){const _0x51cb3a=a0_0x18418a;return!this[_0x51cb3a(0xf7)]&&!this[_0x51cb3a(0xeb)];}async['getAndParseMenuMeta'](){const _0x202ba3=a0_0x18418a;let _0x3affad=await MetaApi[_0x202ba3(0x102)](this);_0x3affad&&(this[_0x202ba3(0x108)]=_0x3affad[_0x202ba3(0xf9)],this['parseBasicGridConfigs']&&this[_0x202ba3(0x104)](_0x3affad),this[_0x202ba3(0xf6)]&&this[_0x202ba3(0xf6)](_0x3affad),this[_0x202ba3(0xfc)]&&this[_0x202ba3(0xfc)](_0x3affad),this['parseBasicButtonConfigs']&&this['parseBasicButtonConfigs'](_0x3affad));}async[a0_0x18418a(0xf2)](){const _0x66cc1d=a0_0x18418a;ValueUtil[_0x66cc1d(0x107)](this[_0x66cc1d(0xe6)])?this['grist'][_0x66cc1d(0xf2)]():(ValueUtil[_0x66cc1d(0x107)](this[_0x66cc1d(0xec)])||this[_0x66cc1d(0xef)])&&await this[_0x66cc1d(0xef)]();}async['excuteOpenPopupButtonClick'](_0x455b66,_0x51b9bd,_0x320efa){const _0x58bc31=a0_0x18418a;let _0x8ac8f0=TermsUtil['tTitle'](_0x455b66[_0x58bc31(0x101)]);ValueUtil[_0x58bc31(0x107)](_0x455b66[_0x58bc31(0xed)])&&(_0x8ac8f0=_0x8ac8f0+'-'+ValueUtil[_0x58bc31(0xe8)](_0x51b9bd,..._0x455b66['title_detail'][_0x58bc31(0xf0)]('.'))),MetaApi['openDynamicPopup'](_0x8ac8f0,_0x455b66,_0x51b9bd,_0x320efa);}async['executeCallScenarioButtonClick'](_0x239b57,_0x294e49,_0x3dfe7b){const _0x1f00d6=a0_0x18418a;let _0x4bcdad=await MetaApi[_0x1f00d6(0xf4)](_0x239b57['name'],_0x239b57['name'],_0x294e49);!0x1!==_0x4bcdad&&!_0x4bcdad['errors']&&ValueUtil[_0x1f00d6(0x107)](_0x239b57['after'])&&_0x3dfe7b();}};function a0_0x284b(_0x376cf5,_0x368163){const _0x19a5f7=a0_0x19a5();return a0_0x284b=function(_0x284ba0,_0x25451d){_0x284ba0=_0x284ba0-0xe6;let _0x5de15b=_0x19a5f7[_0x284ba0];return _0x5de15b;},a0_0x284b(_0x376cf5,_0x368163);}function a0_0x19a5(){const _0x5652ec=['is_detail','isPage','menu','10448856opyzaD','10339191CxABRa','parseBasicFormConfigs','193917JXkggj','778525QyTAbC','properties','68TKQMnY','title','getMenuMeta','isEmpty','parseBasicGridConfigs','isPopup','102jpRIhA','isNotEmpty','menuInfo','grist','10qMIEBr','getParams','4270PMwlUE','659280ihlPzM','is_popup','filterForm','title_detail','369804IjaCFA','fetchHandler','split','7KdPBUK','fetch','isElement','callScenario','1133qGjvZe','parseBasicServiceConfigs'];a0_0x19a5=function(){return _0x5652ec;};return a0_0x19a5();}
1
+ function a0_0x548c(){const _0x470804=['menuInfo','parseBasicButtonConfigs','excuteOpenPopupButtonClick','parseBasicFormConfigs','18522TjvxQy','split','9717883RUeUIq','2507928BoGnne','25587cqxFtM','tTitle','filterForm','menu','getMenuMeta','parseBasicGridConfigs','780UHkFON','title_detail','properties','getAndParseMenuMeta','8UxjSyJ','3119500dFfmtT','1730658CtKEEs','openDynamicPopup','11XXNLuK','is_detail','executeCallScenarioButtonClick','callScenario','fetch','isPage','isNotEmpty','76ISzPLr','grist','title','is_popup','name','fetchHandler','10951EdTyzk','2390rLHQhf','isEmpty','getParams'];a0_0x548c=function(){return _0x470804;};return a0_0x548c();}const a0_0x213538=a0_0x3150;function a0_0x3150(_0x6b5d01,_0x132569){const _0x548c31=a0_0x548c();return a0_0x3150=function(_0x3150fa,_0x4215d0){_0x3150fa=_0x3150fa-0x1d9;let _0x2dafa2=_0x548c31[_0x3150fa];return _0x2dafa2;},a0_0x3150(_0x6b5d01,_0x132569);}(function(_0xcc512b,_0x612d91){const _0xa09b26=a0_0x3150,_0x53d0b6=_0xcc512b();while(!![]){try{const _0x5a73e8=-parseInt(_0xa09b26(0x1e0))/0x1*(parseInt(_0xa09b26(0x1da))/0x2)+-parseInt(_0xa09b26(0x1f8))/0x3+parseInt(_0xa09b26(0x1f7))/0x4+-parseInt(_0xa09b26(0x1f2))/0x5*(-parseInt(_0xa09b26(0x1e8))/0x6)+-parseInt(_0xa09b26(0x1ea))/0x7*(-parseInt(_0xa09b26(0x1f6))/0x8)+parseInt(_0xa09b26(0x1ec))/0x9*(-parseInt(_0xa09b26(0x1e1))/0xa)+parseInt(_0xa09b26(0x1fa))/0xb*(-parseInt(_0xa09b26(0x1eb))/0xc);if(_0x5a73e8===_0x612d91)break;else _0x53d0b6['push'](_0x53d0b6['shift']());}catch(_0xdfd977){_0x53d0b6['push'](_0x53d0b6['shift']());}}}(a0_0x548c,0xbb8dd));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0xfceaf1=>class extends _0xfceaf1{static get[a0_0x213538(0x1f4)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x315f22=>Boolean(_0x315f22)},'is_popup':{'type':Boolean,'converter':_0x3c4dff=>Boolean(_0x3c4dff)}};}get['isElement'](){const _0x595662=a0_0x213538;return!0x0===this[_0x595662(0x1fb)]||!0x0===this['is_popup'];}get['isDetail'](){const _0xfaaee3=a0_0x213538;return!ValueUtil[_0xfaaee3(0x1e2)](this[_0xfaaee3(0x1fb)])&&this[_0xfaaee3(0x1fb)];}get['isPopup'](){const _0x3dc4ad=a0_0x213538;return!ValueUtil[_0x3dc4ad(0x1e2)](this[_0x3dc4ad(0x1dd)])&&this[_0x3dc4ad(0x1dd)];}get[a0_0x213538(0x1ff)](){const _0x2e68a3=a0_0x213538;return!this[_0x2e68a3(0x1fb)]&&!this[_0x2e68a3(0x1dd)];}async[a0_0x213538(0x1f5)](){const _0x4383b4=a0_0x213538;let _0x24826d=await MetaApi[_0x4383b4(0x1f0)](this);_0x24826d&&(this[_0x4383b4(0x1e4)]=_0x24826d[_0x4383b4(0x1ef)],this['parseBasicGridConfigs']&&this[_0x4383b4(0x1f1)](_0x24826d),this['parseBasicServiceConfigs']&&this['parseBasicServiceConfigs'](_0x24826d),this[_0x4383b4(0x1e7)]&&this[_0x4383b4(0x1e7)](_0x24826d),this['parseBasicButtonConfigs']&&this[_0x4383b4(0x1e5)](_0x24826d));}async[a0_0x213538(0x1fe)](){const _0x1a55a0=a0_0x213538;ValueUtil[_0x1a55a0(0x1d9)](this[_0x1a55a0(0x1db)])?this[_0x1a55a0(0x1db)][_0x1a55a0(0x1fe)]():(ValueUtil[_0x1a55a0(0x1d9)](this[_0x1a55a0(0x1ee)])||this[_0x1a55a0(0x1df)])&&await this[_0x1a55a0(0x1df)]();}async[a0_0x213538(0x1e6)](_0x20889a,_0x1a8606,_0x37a6b9){const _0x523536=a0_0x213538;let _0x4cb224=TermsUtil[_0x523536(0x1ed)](_0x20889a[_0x523536(0x1dc)]);ValueUtil[_0x523536(0x1d9)](_0x20889a[_0x523536(0x1f3)])&&(_0x4cb224=_0x4cb224+'-'+ValueUtil[_0x523536(0x1e3)](_0x1a8606,..._0x20889a[_0x523536(0x1f3)][_0x523536(0x1e9)]('.'))),MetaApi[_0x523536(0x1f9)](_0x4cb224,_0x20889a,_0x1a8606,_0x37a6b9);}async[a0_0x213538(0x1fc)](_0x5448de,_0x3fdd7a,_0x56bb56){const _0x4a72f6=a0_0x213538;let _0x5d7ff1=await MetaApi[_0x4a72f6(0x1fd)](_0x5448de[_0x4a72f6(0x1de)],_0x5448de[_0x4a72f6(0x1de)],_0x3fdd7a);!0x1!==_0x5d7ff1&&!_0x5d7ff1['errors']&&ValueUtil[_0x4a72f6(0x1d9)](_0x5448de['after'])&&_0x56bb56();}};
@@ -1,4 +1,4 @@
1
- const a0_0x48be60=a0_0x1a0c;(function(_0x122db4,_0x9daaef){const _0x387f3d=a0_0x1a0c,_0x2db2f9=_0x122db4();while(!![]){try{const _0x437367=parseInt(_0x387f3d(0x153))/0x1*(-parseInt(_0x387f3d(0x173))/0x2)+parseInt(_0x387f3d(0x152))/0x3+parseInt(_0x387f3d(0x156))/0x4+parseInt(_0x387f3d(0x15c))/0x5*(-parseInt(_0x387f3d(0x177))/0x6)+-parseInt(_0x387f3d(0x15d))/0x7*(parseInt(_0x387f3d(0x17d))/0x8)+parseInt(_0x387f3d(0x15b))/0x9+parseInt(_0x387f3d(0x165))/0xa*(parseInt(_0x387f3d(0x189))/0xb);if(_0x437367===_0x9daaef)break;else _0x2db2f9['push'](_0x2db2f9['shift']());}catch(_0x197aa9){_0x2db2f9['push'](_0x2db2f9['shift']());}}}(a0_0xc7ed,0x6a1bf));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_0x1a0c(_0x5c3873,_0x455be7){const _0xc7ed40=a0_0xc7ed();return a0_0x1a0c=function(_0x1a0cc4,_0x5a09cd){_0x1a0cc4=_0x1a0cc4-0x150;let _0x5ee57d=_0xc7ed40[_0x1a0cc4];return _0x5ee57d;},a0_0x1a0c(_0x5c3873,_0x455be7);}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xc7ed(){const _0x15090b=['__dirtyfields__','119478hKdqeW','__origin__','pageInitialized','isPage','context','active','2061440nAPQYW','renderRoot','form_column','querySelector','parseBasicFormConfigs','connectedCallback','formColumnConfig','getBasicFormHtml','findOne','text.NOTHING_CHANGED','title.info','forEach','22BqVWXG','isNotEmpty','fetch','getContextObject','name','context-path','button','1448484OZmgOu','1XJRMuM','location','formConfigSet','441056yhxhtX','parseFormConfigSet','isEmpty','getButtonContainer','__seq__','1365201JNuYQX','170tonBdh','7eoCNcR','__dirty__','formBodyId','validation','isElement','record','attributeChangedCallback','getBasicFormStyles','4400830uVjSwk','addEventListener','call','before','isEquals','detail','parent_id','ox-record-view-body','viewBody','properties','parseFormConfigs','after','filter','save','511204pPAdvR','showAlertPopup','contextPath'];a0_0xc7ed=function(){return _0x15090b;};return a0_0xc7ed();}import{ServiceUtil}from'../utils/service-util';export const MetaBasicFormMixin=_0x50ceb6=>class extends MetaButtonMixin(_0x50ceb6){static get['styles'](){const _0x2fecb1=a0_0x1a0c;return MetaApi[_0x2fecb1(0x164)]();}static get[a0_0x48be60(0x16e)](){return{'formBodyId':String,'formColumnConfig':Array,'formConfigSet':Object};}get[a0_0x48be60(0x16d)](){const _0x5b9e05=a0_0x48be60;return this[_0x5b9e05(0x17e)][_0x5b9e05(0x180)](this[_0x5b9e05(0x15f)]);}get[a0_0x48be60(0x17b)](){const _0x558e16=a0_0x48be60;return MetaUiUtil[_0x558e16(0x18c)](this);}async[a0_0x48be60(0x182)](){const _0x1ab01e=a0_0x48be60;await this['getAndParseMenuMeta'](),this[_0x1ab01e(0x161)]&&await this['parseFormConfigs'](),this[_0x1ab01e(0x166)]('field-change',_0x12b401=>{const _0x4f3d87=_0x1ab01e;var {after:_0x41e829,before:_0x22852a,column:_0x14700f,record:_0x5bc659,row:_0x3b072c}=_0x12b401[_0x4f3d87(0x16a)];if(ValueUtil['isEquals'](_0x41e829,_0x22852a))return;var _0x470f9b=_0x14700f[_0x4f3d87(0x160)];if(_0x470f9b&&'function'==typeof _0x470f9b&&!_0x470f9b[_0x4f3d87(0x167)](this,_0x41e829,_0x22852a,_0x5bc659,_0x14700f))return;let _0x77944f=_0x14700f[_0x4f3d87(0x18d)];_0x5bc659[_0x77944f]=_0x41e829,_0x5bc659[_0x4f3d87(0x176)]=_0x5bc659[_0x4f3d87(0x176)]||{},_0x5bc659[_0x4f3d87(0x176)][_0x77944f]={'before':_0x5bc659[_0x4f3d87(0x178)][_0x77944f],'after':_0x5bc659[_0x77944f]},ValueUtil[_0x4f3d87(0x169)](_0x5bc659['__dirtyfields__'][_0x77944f][_0x4f3d87(0x168)],_0x5bc659[_0x4f3d87(0x176)][_0x77944f][_0x4f3d87(0x170)])&&delete _0x5bc659[_0x4f3d87(0x176)][_0x77944f],ValueUtil[_0x4f3d87(0x18a)](_0x5bc659[_0x4f3d87(0x176)])?_0x5bc659[_0x4f3d87(0x15e)]='M':_0x5bc659[_0x4f3d87(0x15e)]='',this[_0x4f3d87(0x16d)][_0x4f3d87(0x162)]={..._0x5bc659};}),super['connectedCallback']&&await super[_0x1ab01e(0x182)](),this[_0x1ab01e(0x161)]&&await this[_0x1ab01e(0x18b)]();}async['firstUpdated'](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x48be60(0x179)](){const _0x420855=a0_0x48be60;this[_0x420855(0x17a)]&&await this[_0x420855(0x16f)](),super[_0x420855(0x179)]&&await super[_0x420855(0x179)](),this[_0x420855(0x17a)]&&await this[_0x420855(0x18b)]();}['render'](){const _0x2619ea=a0_0x48be60;return html`
2
- ${MetaApi[_0x2619ea(0x184)](this)}
3
- ${this[_0x2619ea(0x17a)]?html``:MetaUiUtil[_0x2619ea(0x159)](this)}
4
- `;}[a0_0x48be60(0x163)](_0x15d975,_0xa86fcc,_0x2d0a3e){const _0x574d1b=a0_0x48be60;if(super[_0x574d1b(0x163)](_0x15d975,_0xa86fcc,_0x2d0a3e),_0x574d1b(0x150)===_0x15d975&&!0x0===this[_0x574d1b(0x17c)]&&ValueUtil[_0x574d1b(0x18a)](this[_0x574d1b(0x175)])){const _0x13583d=new URLSearchParams(window[_0x574d1b(0x154)]['search']);ValueUtil[_0x574d1b(0x18a)](_0x13583d)&&(_0x13583d['forEach']((_0x4053e4,_0x1b89df)=>{MetaApi['setSearchFormEditorValue'](_0x1b89df,_0x4053e4);}),this['fetch']());}}[a0_0x48be60(0x181)](_0x5379df){const _0x1f915e=a0_0x48be60;this[_0x1f915e(0x15f)]=_0x1f915e(0x16c),this['formColumnConfig']=_0x5379df[_0x1f915e(0x17f)],ValueUtil[_0x1f915e(0x158)](this['formColumnConfig'])&&(this[_0x1f915e(0x183)]=_0x5379df['grid_column']),_0x5379df[_0x1f915e(0x151)]=_0x5379df[_0x1f915e(0x151)][_0x1f915e(0x171)](_0x4d427b=>_0x1f915e(0x172)==_0x4d427b[_0x1f915e(0x18d)]);}async['parseFormConfigs'](){const _0x566b76=a0_0x48be60;this[_0x566b76(0x155)]=await MetaApi[_0x566b76(0x157)](this);}async['fetch'](){const _0x49d6e8=a0_0x48be60;if(ValueUtil[_0x49d6e8(0x158)](this['parent_id']))return;let _0x4b838f=await this[_0x49d6e8(0x185)](this[_0x49d6e8(0x16b)]);_0x4b838f[_0x49d6e8(0x15a)]=0x1;let _0x59ae02={};Object['assign'](_0x59ae02,_0x4b838f),_0x4b838f['__origin__']=_0x59ae02,this[_0x49d6e8(0x16d)]['record']={..._0x4b838f};}async[a0_0x48be60(0x172)](){const _0x2581a0=a0_0x48be60;let _0x2cf36d=this[_0x2581a0(0x16d)][_0x2581a0(0x162)];if(ValueUtil['isEmpty'](_0x2cf36d[_0x2581a0(0x15e)]))return void MetaApi[_0x2581a0(0x174)](_0x2581a0(0x187),_0x2581a0(0x186));let _0x28357a=_0x2cf36d['__dirtyfields__'],_0xa7d871={};ValueUtil[_0x2581a0(0x18a)](_0x2cf36d['id'])&&(_0xa7d871['id']=_0x2cf36d['id']),Object['keys'](_0x28357a)[_0x2581a0(0x188)](_0x572d0b=>{_0xa7d871[_0x572d0b]=_0x28357a[_0x572d0b]['after'];});let _0x4a780e=[{..._0xa7d871,'cuFlag':_0x2cf36d[_0x2581a0(0x15e)]}];return await this['updateMultiple'](_0x4a780e)&&await this[_0x2581a0(0x18b)](),!0x0;}};
1
+ const a0_0x34223d=a0_0x26db;(function(_0x27950a,_0x330210){const _0x237cc7=a0_0x26db,_0x455ded=_0x27950a();while(!![]){try{const _0x50c9f4=-parseInt(_0x237cc7(0x1d8))/0x1*(parseInt(_0x237cc7(0x1bb))/0x2)+-parseInt(_0x237cc7(0x1bd))/0x3*(parseInt(_0x237cc7(0x1c9))/0x4)+parseInt(_0x237cc7(0x1d5))/0x5+parseInt(_0x237cc7(0x1cf))/0x6+parseInt(_0x237cc7(0x1c2))/0x7+parseInt(_0x237cc7(0x1dd))/0x8+parseInt(_0x237cc7(0x1c5))/0x9*(parseInt(_0x237cc7(0x1dc))/0xa);if(_0x50c9f4===_0x330210)break;else _0x455ded['push'](_0x455ded['shift']());}catch(_0x4ae58d){_0x455ded['push'](_0x455ded['shift']());}}}(a0_0x8132,0xdcbfd));import{html}from'lit';function a0_0x8132(){const _0x41197b=['render','50648YQtAwz','properties','grid_column','pageInitialized','getContextObject','after','9364062ufxwsy','parseFormConfigSet','findOne','name','showAlertPopup','__dirtyfields__','4631565KGDvaj','isElement','__dirty__','42919eEUZlr','querySelector','form_column','isEmpty','32530RtVXLL','1447056HnYZhX','forEach','validation','__origin__','parent_id','connectedCallback','before','function','addEventListener','attributeChangedCallback','getButtonContainer','__seq__','isEquals','renderRoot','button','updateMultiple','isPage','record','firstUpdated','fetch','viewBody','context','isNotEmpty','contextPath','setSearchFormEditorValue','filter','74lUWgct','keys','234JKMdyR','getAndParseMenuMeta','getBasicFormStyles','active','assign','4385745CQtzzb','context-path','title.info','513vXOZLl','formColumnConfig','parseFormConfigs'];a0_0x8132=function(){return _0x41197b;};return a0_0x8132();}import{MetaApi}from'../utils/meta-api';function a0_0x26db(_0x15d5b9,_0x4818be){const _0x8132b6=a0_0x8132();return a0_0x26db=function(_0x26dbc6,_0x542c10){_0x26dbc6=_0x26dbc6-0x1bb;let _0x3f13f4=_0x8132b6[_0x26dbc6];return _0x3f13f4;},a0_0x26db(_0x15d5b9,_0x4818be);}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';import{ServiceUtil}from'../utils/service-util';export const MetaBasicFormMixin=_0x150538=>class extends MetaButtonMixin(_0x150538){static get['styles'](){const _0xb43b5f=a0_0x26db;return MetaApi[_0xb43b5f(0x1bf)]();}static get[a0_0x34223d(0x1ca)](){return{'formBodyId':String,'formColumnConfig':Array,'formConfigSet':Object};}get['viewBody'](){const _0x1ec8f0=a0_0x34223d;return this[_0x1ec8f0(0x1ea)][_0x1ec8f0(0x1d9)](this['formBodyId']);}get[a0_0x34223d(0x1f2)](){const _0xdcc56=a0_0x34223d;return MetaUiUtil[_0xdcc56(0x1cd)](this);}async[a0_0x34223d(0x1e2)](){const _0x652d2=a0_0x34223d;await this[_0x652d2(0x1be)](),this[_0x652d2(0x1d6)]&&await this[_0x652d2(0x1c7)](),this[_0x652d2(0x1e5)]('field-change',_0x5e1f88=>{const _0x262828=_0x652d2;var {after:_0x386977,before:_0x36c08f,column:_0x40789b,record:_0x51dffd,row:_0x1f5a87}=_0x5e1f88['detail'];if(ValueUtil[_0x262828(0x1e9)](_0x386977,_0x36c08f))return;var _0x4a2063=_0x40789b[_0x262828(0x1df)];if(_0x4a2063&&_0x262828(0x1e4)==typeof _0x4a2063&&!_0x4a2063['call'](this,_0x386977,_0x36c08f,_0x51dffd,_0x40789b))return;let _0x5203e6=_0x40789b[_0x262828(0x1d2)];_0x51dffd[_0x5203e6]=_0x386977,_0x51dffd[_0x262828(0x1d4)]=_0x51dffd['__dirtyfields__']||{},_0x51dffd['__dirtyfields__'][_0x5203e6]={'before':_0x51dffd['__origin__'][_0x5203e6],'after':_0x51dffd[_0x5203e6]},ValueUtil[_0x262828(0x1e9)](_0x51dffd[_0x262828(0x1d4)][_0x5203e6][_0x262828(0x1e3)],_0x51dffd[_0x262828(0x1d4)][_0x5203e6][_0x262828(0x1ce)])&&delete _0x51dffd[_0x262828(0x1d4)][_0x5203e6],ValueUtil['isNotEmpty'](_0x51dffd[_0x262828(0x1d4)])?_0x51dffd['__dirty__']='M':_0x51dffd[_0x262828(0x1d7)]='',this[_0x262828(0x1f1)]['record']={..._0x51dffd};}),super[_0x652d2(0x1e2)]&&await super[_0x652d2(0x1e2)](),this[_0x652d2(0x1d6)]&&await this[_0x652d2(0x1f0)]();}async[a0_0x34223d(0x1ef)](){const _0xa1ddf2=a0_0x34223d;super[_0xa1ddf2(0x1ef)]&&await super[_0xa1ddf2(0x1ef)]();}async[a0_0x34223d(0x1cc)](){const _0x1c6ea3=a0_0x34223d;this[_0x1c6ea3(0x1ed)]&&await this['parseFormConfigs'](),super[_0x1c6ea3(0x1cc)]&&await super[_0x1c6ea3(0x1cc)](),this[_0x1c6ea3(0x1ed)]&&await this[_0x1c6ea3(0x1f0)]();}[a0_0x34223d(0x1c8)](){const _0x676d86=a0_0x34223d;return html`
2
+ ${MetaApi['getBasicFormHtml'](this)}
3
+ ${this[_0x676d86(0x1ed)]?html``:MetaUiUtil[_0x676d86(0x1e7)](this)}
4
+ `;}[a0_0x34223d(0x1e6)](_0xec6a60,_0x510e70,_0x4f497c){const _0x128d25=a0_0x34223d;if(super['attributeChangedCallback'](_0xec6a60,_0x510e70,_0x4f497c),_0x128d25(0x1c3)===_0xec6a60&&!0x0===this[_0x128d25(0x1c0)]&&ValueUtil['isNotEmpty'](this[_0x128d25(0x1f4)])){const _0x216b43=new URLSearchParams(window['location']['search']);ValueUtil[_0x128d25(0x1f3)](_0x216b43)&&(_0x216b43[_0x128d25(0x1de)]((_0x54c020,_0x431d08)=>{const _0x4c6423=_0x128d25;MetaApi[_0x4c6423(0x1f5)](_0x431d08,_0x54c020);}),this[_0x128d25(0x1f0)]());}}['parseBasicFormConfigs'](_0x43e56b){const _0x507ef1=a0_0x34223d;this['formBodyId']='ox-record-view-body',this[_0x507ef1(0x1c6)]=_0x43e56b[_0x507ef1(0x1da)],ValueUtil[_0x507ef1(0x1db)](this[_0x507ef1(0x1c6)])&&(this[_0x507ef1(0x1c6)]=_0x43e56b[_0x507ef1(0x1cb)]),_0x43e56b[_0x507ef1(0x1eb)]=_0x43e56b['button'][_0x507ef1(0x1f6)](_0x103556=>'save'==_0x103556[_0x507ef1(0x1d2)]);}async[a0_0x34223d(0x1c7)](){const _0x476dbf=a0_0x34223d;this['formConfigSet']=await MetaApi[_0x476dbf(0x1d0)](this);}async[a0_0x34223d(0x1f0)](){const _0x3d6d50=a0_0x34223d;if(ValueUtil[_0x3d6d50(0x1db)](this[_0x3d6d50(0x1e1)]))return;let _0x201eb6=await this[_0x3d6d50(0x1d1)](this['parent_id']);_0x201eb6[_0x3d6d50(0x1e8)]=0x1;let _0x1ec1fc={};Object[_0x3d6d50(0x1c1)](_0x1ec1fc,_0x201eb6),_0x201eb6[_0x3d6d50(0x1e0)]=_0x1ec1fc,this[_0x3d6d50(0x1f1)][_0x3d6d50(0x1ee)]={..._0x201eb6};}async['save'](){const _0x2715f6=a0_0x34223d;let _0x212807=this['viewBody']['record'];if(ValueUtil[_0x2715f6(0x1db)](_0x212807[_0x2715f6(0x1d7)]))return void MetaApi[_0x2715f6(0x1d3)](_0x2715f6(0x1c4),'text.NOTHING_CHANGED');let _0x27d46d=_0x212807[_0x2715f6(0x1d4)],_0xd7ca38={};ValueUtil[_0x2715f6(0x1f3)](_0x212807['id'])&&(_0xd7ca38['id']=_0x212807['id']),Object[_0x2715f6(0x1bc)](_0x27d46d)[_0x2715f6(0x1de)](_0x1de679=>{const _0x223a0f=_0x2715f6;_0xd7ca38[_0x1de679]=_0x27d46d[_0x1de679][_0x223a0f(0x1ce)];});let _0x5ee3aa=[{..._0xd7ca38,'cuFlag':_0x212807[_0x2715f6(0x1d7)]}];return await this[_0x2715f6(0x1ec)](_0x5ee3aa)&&await this['fetch'](),!0x0;}};
@@ -1,4 +1,4 @@
1
- const a0_0x1263b9=a0_0x4c3d;(function(_0x275590,_0x222281){const _0x245e4c=a0_0x4c3d,_0x1da158=_0x275590();while(!![]){try{const _0x366f0f=parseInt(_0x245e4c(0x92))/0x1+parseInt(_0x245e4c(0xa2))/0x2+-parseInt(_0x245e4c(0xaf))/0x3+parseInt(_0x245e4c(0xa4))/0x4*(-parseInt(_0x245e4c(0xb7))/0x5)+parseInt(_0x245e4c(0x9a))/0x6+parseInt(_0x245e4c(0xbb))/0x7*(parseInt(_0x245e4c(0xb8))/0x8)+parseInt(_0x245e4c(0x96))/0x9*(-parseInt(_0x245e4c(0x99))/0xa);if(_0x366f0f===_0x222281)break;else _0x1da158['push'](_0x1da158['shift']());}catch(_0x4a033d){_0x1da158['push'](_0x1da158['shift']());}}}(a0_0x2c6f,0x68b73));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x2c6f(){const _0x3feb05=['56qJRvGF','getBasicGristHtml','getButtonContainer','getBasicGristStyles','querySelector','deleteByIds','parseBasicGridConfigs','getParams','pageInitialized','isNotEmpty','updateMultiple','parseGristConfigs','isElement','patchesForUpdateMultiple','filterForm','grid_column','ox-grist','render','exportableData','289170CRUnSj','gridColumnConfig','active','find','2727KaDiSh','searchConfig','connectedCallback','10620WSOOQj','1332174LdOGOc','findOne','ox-filters-form','renderRoot','setSearchFormEditorValue','grid','location','grist','842758tNxVsD','isPage','358652tfkblo','search','save','styles','context-path','filterFormId','tTitle','getSelectedIdList','firstUpdated','fetch','parseGridConfigSet','2293314cocuZu','forEach','attributeChangedCallback','menuInfo','title','contextPath','properties','getContextObject','5eeClXw','672224zWxCKS','gristId','context'];a0_0x2c6f=function(){return _0x3feb05;};return a0_0x2c6f();}function a0_0x4c3d(_0x562eae,_0xd6c537){const _0x2c6f2e=a0_0x2c6f();return a0_0x4c3d=function(_0x4c3de5,_0x23bf5d){_0x4c3de5=_0x4c3de5-0x91;let _0x403606=_0x2c6f2e[_0x4c3de5];return _0x403606;},a0_0x4c3d(_0x562eae,_0xd6c537);}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=_0x515dae=>class extends MetaButtonMixin(_0x515dae){static get[a0_0x1263b9(0xa7)](){const _0x3be862=a0_0x1263b9;return MetaApi[_0x3be862(0xbe)]();}static get[a0_0x1263b9(0xb5)](){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_0x1263b9(0xa1)](){const _0x59a5a2=a0_0x1263b9;return this[_0x59a5a2(0x9d)][_0x59a5a2(0xbf)](this[_0x59a5a2(0xb9)]);}get[a0_0x1263b9(0xc9)](){const _0x402b43=a0_0x1263b9;return this['shadowRoot']?.[_0x402b43(0xbf)](this[_0x402b43(0xa9)]);}get[a0_0x1263b9(0xba)](){const _0x52142e=a0_0x1263b9;return MetaUiUtil[_0x52142e(0xb6)](this);}async[a0_0x1263b9(0x98)](){const _0x36c570=a0_0x1263b9;this[_0x36c570(0xb9)]=_0x36c570(0xcb),this['filterFormId']=_0x36c570(0x9c),await this['getAndParseMenuMeta'](),this[_0x36c570(0xc7)]&&await this[_0x36c570(0xc6)](),super['connectedCallback']&&await super[_0x36c570(0x98)]();}async[a0_0x1263b9(0xac)](){const _0x30be3b=a0_0x1263b9;super[_0x30be3b(0xac)]&&await super[_0x30be3b(0xac)]();}async[a0_0x1263b9(0xc3)](){const _0x561294=a0_0x1263b9;this[_0x561294(0xa3)]&&await this[_0x561294(0xc6)](),super['pageInitialized']&&await super[_0x561294(0xc3)]();}[a0_0x1263b9(0xcc)](){const _0x44bf30=a0_0x1263b9;return html`
2
- ${MetaApi[_0x44bf30(0xbc)](this)}
3
- ${this['isPage']?html``:MetaUiUtil[_0x44bf30(0xbd)](this)}
4
- `;}[a0_0x1263b9(0xb1)](_0x2bb054,_0x5ce63a,_0x3564cf){const _0x3bf6ee=a0_0x1263b9;if(super[_0x3bf6ee(0xb1)](_0x2bb054,_0x5ce63a,_0x3564cf),_0x3bf6ee(0xa8)===_0x2bb054&&!0x0===this[_0x3bf6ee(0x94)]&&ValueUtil[_0x3bf6ee(0xc4)](this[_0x3bf6ee(0xb4)])){const _0x4ab9cd=new URLSearchParams(window[_0x3bf6ee(0xa0)][_0x3bf6ee(0xa5)]);ValueUtil[_0x3bf6ee(0xc4)](_0x4ab9cd)&&(_0x4ab9cd[_0x3bf6ee(0xb0)]((_0xe63897,_0x3303a8)=>{const _0x40ee32=_0x3bf6ee;MetaApi[_0x40ee32(0x9e)](_0x3303a8,_0xe63897);}),this[_0x3bf6ee(0xad)]());}}[a0_0x1263b9(0xc1)](_0x4b6a35){const _0x2b7e58=a0_0x1263b9;this['gridConfig']=_0x4b6a35[_0x2b7e58(0x9f)],this[_0x2b7e58(0x93)]=_0x4b6a35[_0x2b7e58(0xca)],this[_0x2b7e58(0x97)]=_0x4b6a35[_0x2b7e58(0xa5)];}async['parseGristConfigs'](){const _0x5e2837=a0_0x1263b9;this['gristConfigSet']=await MetaApi[_0x5e2837(0xae)](this);}async[a0_0x1263b9(0xad)](){const _0xcfc380=a0_0x1263b9;await this[_0xcfc380(0xa1)]['fetch']();}async[a0_0x1263b9(0xa6)](){const _0x4386e4=a0_0x1263b9;let _0x575c04=MetaApi[_0x4386e4(0xc8)](this[_0x4386e4(0xa1)]);!!ValueUtil[_0x4386e4(0xc4)](_0x575c04)&&await this[_0x4386e4(0xc5)](_0x575c04)&&this[_0x4386e4(0xad)]();}async[a0_0x1263b9(0x95)](){const _0x3f3a17=a0_0x1263b9;let _0x28675a=MetaApi['getSelectedIdList'](this[_0x3f3a17(0xa1)],!0x0);return ValueUtil[_0x3f3a17(0xc4)](_0x28675a)?await this[_0x3f3a17(0x9b)](_0x28675a[0x0]):{};}async['delete'](){const _0xcd201=a0_0x1263b9;let _0x592209=MetaApi[_0xcd201(0xab)](this[_0xcd201(0xa1)],!0x0);!!ValueUtil[_0xcd201(0xc4)](_0x592209)&&await this[_0xcd201(0xc0)](_0x592209)&&this['fetch']();}async['export'](){const _0x252409=a0_0x1263b9;let _0x92e29e=TermsUtil[_0x252409(0xaa)](ValueUtil[_0x252409(0xc2)](this[_0x252409(0xb2)],_0x252409(0xb3)));return await MetaApi[_0x252409(0x91)](this[_0x252409(0xc7)],_0x92e29e,this[_0x252409(0xa1)]);}async['import'](){}};
1
+ const a0_0x3363cd=a0_0x4df7;(function(_0x2e0035,_0xb7008d){const _0xe4d409=a0_0x4df7,_0x45e661=_0x2e0035();while(!![]){try{const _0x3ce4cd=parseInt(_0xe4d409(0x140))/0x1*(parseInt(_0xe4d409(0x138))/0x2)+-parseInt(_0xe4d409(0x133))/0x3*(-parseInt(_0xe4d409(0x141))/0x4)+parseInt(_0xe4d409(0x151))/0x5+parseInt(_0xe4d409(0x160))/0x6+-parseInt(_0xe4d409(0x152))/0x7+parseInt(_0xe4d409(0x143))/0x8+-parseInt(_0xe4d409(0x15e))/0x9*(parseInt(_0xe4d409(0x130))/0xa);if(_0x3ce4cd===_0xb7008d)break;else _0x45e661['push'](_0x45e661['shift']());}catch(_0x45139c){_0x45e661['push'](_0x45e661['shift']());}}}(a0_0x510c,0x1b04b));function a0_0x510c(){const _0x233003=['exportableData','search','grist','title','tTitle','styles','getBasicGristHtml','patchesForUpdateMultiple','725370kCHLMb','226569tcPKLO','isPage','connectedCallback','setSearchFormEditorValue','parseGristConfigs','import','menuInfo','filterFormId','gristConfigSet','renderRoot','active','ox-filters-form','96777Oowzcf','gristId','1129728WEaevw','contextPath','getSelectedIdList','ox-grist','isElement','310Vhpjcy','isNotEmpty','getAndParseMenuMeta','81iMFFuN','getButtonContainer','location','find','render','7694vmFYiz','properties','grid_column','fetch','findOne','attributeChangedCallback','searchConfig','gridConfig','5BFVqlH','10828ZljdUl','pageInitialized','405528ZCIVEX','updateMultiple','context','shadowRoot','context-path','firstUpdated'];a0_0x510c=function(){return _0x233003;};return a0_0x510c();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x4df7(_0x56935c,_0x44ee5a){const _0x510c24=a0_0x510c();return a0_0x4df7=function(_0x4df7ba,_0x34621a){_0x4df7ba=_0x4df7ba-0x12d;let _0x249340=_0x510c24[_0x4df7ba];return _0x249340;},a0_0x4df7(_0x56935c,_0x44ee5a);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x22a0b6=>class extends MetaButtonMixin(_0x22a0b6){static get[a0_0x3363cd(0x14e)](){return MetaApi['getBasicGristStyles']();}static get[a0_0x3363cd(0x139)](){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_0x3363cd(0x14b)](){const _0x390a4f=a0_0x3363cd;return this[_0x390a4f(0x15b)]['querySelector'](this[_0x390a4f(0x15f)]);}get['filterForm'](){const _0x5a9e41=a0_0x3363cd;return this[_0x5a9e41(0x146)]?.['querySelector'](this[_0x5a9e41(0x159)]);}get[a0_0x3363cd(0x145)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x3363cd(0x154)](){const _0x1daa94=a0_0x3363cd;this['gristId']=_0x1daa94(0x12e),this[_0x1daa94(0x159)]=_0x1daa94(0x15d),await this[_0x1daa94(0x132)](),this[_0x1daa94(0x12f)]&&await this[_0x1daa94(0x156)](),super['connectedCallback']&&await super['connectedCallback']();}async['firstUpdated'](){const _0xaa845f=a0_0x3363cd;super[_0xaa845f(0x148)]&&await super['firstUpdated']();}async[a0_0x3363cd(0x142)](){const _0x3a7d49=a0_0x3363cd;this[_0x3a7d49(0x153)]&&await this['parseGristConfigs'](),super[_0x3a7d49(0x142)]&&await super['pageInitialized']();}[a0_0x3363cd(0x137)](){const _0x44050d=a0_0x3363cd;return html`
2
+ ${MetaApi[_0x44050d(0x14f)](this)}
3
+ ${this[_0x44050d(0x153)]?html``:MetaUiUtil[_0x44050d(0x134)](this)}
4
+ `;}[a0_0x3363cd(0x13d)](_0x340ce1,_0x460cfd,_0x47ee48){const _0x16c845=a0_0x3363cd;if(super[_0x16c845(0x13d)](_0x340ce1,_0x460cfd,_0x47ee48),_0x16c845(0x147)===_0x340ce1&&!0x0===this[_0x16c845(0x15c)]&&ValueUtil['isNotEmpty'](this[_0x16c845(0x161)])){const _0x398a51=new URLSearchParams(window[_0x16c845(0x135)][_0x16c845(0x14a)]);ValueUtil[_0x16c845(0x131)](_0x398a51)&&(_0x398a51['forEach']((_0x3bc950,_0x1e73d0)=>{const _0x339f39=_0x16c845;MetaApi[_0x339f39(0x155)](_0x1e73d0,_0x3bc950);}),this[_0x16c845(0x13b)]());}}['parseBasicGridConfigs'](_0x15060c){const _0x26692c=a0_0x3363cd;this[_0x26692c(0x13f)]=_0x15060c['grid'],this['gridColumnConfig']=_0x15060c[_0x26692c(0x13a)],this[_0x26692c(0x13e)]=_0x15060c[_0x26692c(0x14a)];}async['parseGristConfigs'](){const _0x1c21f7=a0_0x3363cd;this[_0x1c21f7(0x15a)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x3363cd(0x13b)](){const _0x2e2a3d=a0_0x3363cd;await this['grist'][_0x2e2a3d(0x13b)]();}async['save'](){const _0x24c92f=a0_0x3363cd;let _0x1e6b90=MetaApi[_0x24c92f(0x150)](this['grist']);!!ValueUtil[_0x24c92f(0x131)](_0x1e6b90)&&await this[_0x24c92f(0x144)](_0x1e6b90)&&this[_0x24c92f(0x13b)]();}async[a0_0x3363cd(0x136)](){const _0x3a883f=a0_0x3363cd;let _0x19f81d=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x3a883f(0x131)](_0x19f81d)?await this[_0x3a883f(0x13c)](_0x19f81d[0x0]):{};}async['delete'](){const _0x341fbb=a0_0x3363cd;let _0x25ca70=MetaApi[_0x341fbb(0x12d)](this[_0x341fbb(0x14b)],!0x0);!!ValueUtil[_0x341fbb(0x131)](_0x25ca70)&&await this['deleteByIds'](_0x25ca70)&&this['fetch']();}async['export'](){const _0x4aef11=a0_0x3363cd;let _0x2de402=TermsUtil[_0x4aef11(0x14d)](ValueUtil['getParams'](this[_0x4aef11(0x158)],_0x4aef11(0x14c)));return await MetaApi[_0x4aef11(0x149)](this[_0x4aef11(0x12f)],_0x2de402,this[_0x4aef11(0x14b)]);}async[a0_0x3363cd(0x157)](){}};
@@ -1 +1 @@
1
- const a0_0x311cc2=a0_0x20e2;function a0_0x20e2(_0x5b656a,_0x130030){const _0x7b76d4=a0_0x7b76();return a0_0x20e2=function(_0x20e201,_0x3b0839){_0x20e201=_0x20e201-0x12d;let _0x4b4f43=_0x7b76d4[_0x20e201];return _0x4b4f43;},a0_0x20e2(_0x5b656a,_0x130030);}(function(_0x1deeb9,_0x3cd88a){const _0x2c1abb=a0_0x20e2,_0x5b6936=_0x1deeb9();while(!![]){try{const _0x109b81=parseInt(_0x2c1abb(0x12d))/0x1+-parseInt(_0x2c1abb(0x146))/0x2+-parseInt(_0x2c1abb(0x147))/0x3+-parseInt(_0x2c1abb(0x145))/0x4+parseInt(_0x2c1abb(0x138))/0x5+parseInt(_0x2c1abb(0x132))/0x6*(parseInt(_0x2c1abb(0x12f))/0x7)+-parseInt(_0x2c1abb(0x135))/0x8*(-parseInt(_0x2c1abb(0x139))/0x9);if(_0x109b81===_0x3cd88a)break;else _0x5b6936['push'](_0x5b6936['shift']());}catch(_0xced44a){_0x5b6936['push'](_0x5b6936['shift']());}}}(a0_0x7b76,0xe6784));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x7b76(){const _0xfd7ba7=['getCustomButtonContainerStyle','customButtonHandler','import','getButtonActionHandler','export','isPage','getButtonContainer','add','isButtonExist','3933728vNWbRL','173112qOwwpc','5487819jzLzRh','152319ZqpZUF','getCustomButtonContainerStyles','2933OjcZmi','getContextButtons','useButtonImport','5868KKzZAa','parseBasicButtonConfigs','gristButtonHandler','12555824gmeNsg','useButtonExport','useButtonAdd','711040EbQJyS','18qFOSoK','properties','buttonConfig'];a0_0x7b76=function(){return _0xfd7ba7;};return a0_0x7b76();}export const MetaButtonMixin=_0x3c4655=>class extends MetaServiceMixin(_0x3c4655){static get[a0_0x311cc2(0x13a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x311cc2(0x13c)](){const _0x2b91c0=a0_0x311cc2;return MetaUiUtil[_0x2b91c0(0x12e)]();}[a0_0x311cc2(0x130)](){const _0x2cbbc2=a0_0x311cc2;return MetaUiUtil[_0x2cbbc2(0x130)](this);}[a0_0x311cc2(0x142)](){const _0x527dec=a0_0x311cc2;return this[_0x527dec(0x141)]?html``:MetaUiUtil[_0x527dec(0x142)](this);}async['getBasicButtonHandler'](_0x47bfac,_0x5591c0,_0xe06feb){const _0x2ee77c=a0_0x311cc2;return await MetaUiUtil[_0x2ee77c(0x13f)](this,_0x47bfac,_0x5591c0,_0xe06feb);}async[a0_0x311cc2(0x13d)](_0x8a471f){await MetaUiUtil['customButtonHandler'](this,_0x8a471f);}async[a0_0x311cc2(0x134)](_0xe5ba82,_0x1f93ee){const _0x2c8d1b=a0_0x311cc2;await MetaUiUtil[_0x2c8d1b(0x134)](this,_0xe5ba82,_0x1f93ee);}[a0_0x311cc2(0x133)](_0x4bc996){const _0x4d412c=a0_0x311cc2;this['buttonConfig']=_0x4bc996['button'],this[_0x4d412c(0x131)]=MetaUiUtil['isButtonExist'](this[_0x4d412c(0x13b)],_0x4d412c(0x13e)),this[_0x4d412c(0x136)]=MetaUiUtil[_0x4d412c(0x144)](this['buttonConfig'],_0x4d412c(0x140)),this[_0x4d412c(0x137)]=MetaUiUtil[_0x4d412c(0x144)](this[_0x4d412c(0x13b)],_0x4d412c(0x143));}};
1
+ function a0_0x4443(){const _0x38de90=['2565DORnAU','add','27eBzksW','isPage','useButtonAdd','538520ABfxCr','parseBasicButtonConfigs','getButtonContainer','getContextButtons','import','buttonConfig','properties','2671971DIKRHe','isButtonExist','useButtonExport','7AJLdNn','26018784NVDQwQ','78qXBWsJ','8204zzStWf','gristButtonHandler','1366352zDWZkc','getBasicButtonHandler','customButtonHandler','40788iPBRWA','getButtonActionHandler','useButtonImport','getCustomButtonContainerStyle','3048afwOXU'];a0_0x4443=function(){return _0x38de90;};return a0_0x4443();}const a0_0x1f1fb8=a0_0x5d3e;(function(_0x53c106,_0x19c3bb){const _0x45a51c=a0_0x5d3e,_0x1e5df4=_0x53c106();while(!![]){try{const _0x4ffdce=parseInt(_0x45a51c(0xf0))/0x1*(parseInt(_0x45a51c(0xe6))/0x2)+-parseInt(_0x45a51c(0xe1))/0x3+-parseInt(_0x45a51c(0xe7))/0x4*(parseInt(_0x45a51c(0xf1))/0x5)+parseInt(_0x45a51c(0xec))/0x6*(-parseInt(_0x45a51c(0xe4))/0x7)+parseInt(_0x45a51c(0xe9))/0x8+parseInt(_0x45a51c(0xf3))/0x9*(-parseInt(_0x45a51c(0xf6))/0xa)+parseInt(_0x45a51c(0xe5))/0xb;if(_0x4ffdce===_0x19c3bb)break;else _0x1e5df4['push'](_0x1e5df4['shift']());}catch(_0x347e3d){_0x1e5df4['push'](_0x1e5df4['shift']());}}}(a0_0x4443,0x84c5c));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5d3e(_0x54ab2e,_0x5ba353){const _0x444374=a0_0x4443();return a0_0x5d3e=function(_0x5d3e56,_0x4dd66c){_0x5d3e56=_0x5d3e56-0xe0;let _0x2900d4=_0x444374[_0x5d3e56];return _0x2900d4;},a0_0x5d3e(_0x54ab2e,_0x5ba353);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x5606d1=>class extends MetaServiceMixin(_0x5606d1){static get[a0_0x1f1fb8(0xe0)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1f1fb8(0xef)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x1f1fb8(0xf9)](){const _0x4297b7=a0_0x1f1fb8;return MetaUiUtil[_0x4297b7(0xf9)](this);}[a0_0x1f1fb8(0xf8)](){const _0x471df4=a0_0x1f1fb8;return this[_0x471df4(0xf4)]?html``:MetaUiUtil[_0x471df4(0xf8)](this);}async[a0_0x1f1fb8(0xea)](_0x468b72,_0x298233,_0x31954d){const _0x26bc94=a0_0x1f1fb8;return await MetaUiUtil[_0x26bc94(0xed)](this,_0x468b72,_0x298233,_0x31954d);}async[a0_0x1f1fb8(0xeb)](_0x1227d6){const _0x3a831e=a0_0x1f1fb8;await MetaUiUtil[_0x3a831e(0xeb)](this,_0x1227d6);}async[a0_0x1f1fb8(0xe8)](_0x4ff6e3,_0x3030c2){const _0x5a0e2e=a0_0x1f1fb8;await MetaUiUtil[_0x5a0e2e(0xe8)](this,_0x4ff6e3,_0x3030c2);}[a0_0x1f1fb8(0xf7)](_0x46f0d0){const _0x5765dc=a0_0x1f1fb8;this['buttonConfig']=_0x46f0d0['button'],this[_0x5765dc(0xee)]=MetaUiUtil['isButtonExist'](this[_0x5765dc(0xfb)],_0x5765dc(0xfa)),this[_0x5765dc(0xe3)]=MetaUiUtil[_0x5765dc(0xe2)](this[_0x5765dc(0xfb)],'export'),this[_0x5765dc(0xf5)]=MetaUiUtil[_0x5765dc(0xe2)](this[_0x5765dc(0xfb)],_0x5765dc(0xf2));}};
@@ -1 +1 @@
1
- const a0_0x2bcd42=a0_0x13a1;(function(_0x32824f,_0x55838c){const _0x3ead8d=a0_0x13a1,_0x5d8389=_0x32824f();while(!![]){try{const _0x145bf1=parseInt(_0x3ead8d(0x15f))/0x1+parseInt(_0x3ead8d(0x15c))/0x2+parseInt(_0x3ead8d(0x143))/0x3*(-parseInt(_0x3ead8d(0x144))/0x4)+parseInt(_0x3ead8d(0x149))/0x5+parseInt(_0x3ead8d(0x165))/0x6*(-parseInt(_0x3ead8d(0x16a))/0x7)+parseInt(_0x3ead8d(0x14f))/0x8*(-parseInt(_0x3ead8d(0x168))/0x9)+parseInt(_0x3ead8d(0x150))/0xa*(parseInt(_0x3ead8d(0x15a))/0xb);if(_0x145bf1===_0x55838c)break;else _0x5d8389['push'](_0x5d8389['shift']());}catch(_0x5b2fb5){_0x5d8389['push'](_0x5d8389['shift']());}}}(a0_0x4ab8,0x7b2f4));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x4ab8(){const _0x5b16a2=['split','isEmpty','searchByPagination','6JRQwHx','isArray','name','9dqWOva','deleteListByIds','6441029eHlzMP','fetchHandler','deleteByIds','gql','forEach','skip_fields','getQueryFilters','func','114207BlGyrQ','8koJOpt','findOne','columns','records','getSelectColumns','2660405UzapSk','filter','parent_id','includes','isElement','after_set_fields','738376zBwsGt','110IzAqrs','parseBasicServiceConfigs','isNotEmpty','multiple','gristConfigSet','filterForm','map','filters','query','formConfigSet','229911YwLluE','updateMultiple','778440nizhSK','mutation','delete','441934assjoW','getParams','gqlInfo'];a0_0x4ab8=function(){return _0x5b16a2;};return a0_0x4ab8();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x13a1(_0x5454ac,_0x52ed25){const _0x4ab8d9=a0_0x4ab8();return a0_0x13a1=function(_0x13a1d7,_0xf1f5ad){_0x13a1d7=_0x13a1d7-0x13d;let _0xaeac3d=_0x4ab8d9[_0x13a1d7];return _0xaeac3d;},a0_0x13a1(_0x5454ac,_0x52ed25);}export const MetaServiceMixin=_0x5646de=>class extends MetaBaseMixin(_0x5646de){static get['properties'](){return{'gqlInfo':Object};}[a0_0x2bcd42(0x151)](_0x264c9f){const _0x310408=a0_0x2bcd42;this['gqlInfo']=_0x264c9f[_0x310408(0x13e)];}async[a0_0x2bcd42(0x16b)]({page:_0x42eee5=0x0,limit:_0x5ba088=0x0,sortings:_0xb3306e=[],filters:_0x21e6c5=[]}){const _0x15fb9c=a0_0x2bcd42;if(!this[_0x15fb9c(0x154)])return{'total':0x0,'records':[]};let _0x25c1c5=ValueUtil[_0x15fb9c(0x163)](_0x21e6c5)?await this[_0x15fb9c(0x155)]?.[_0x15fb9c(0x141)]()||[]:_0x21e6c5,_0x302114=ValueUtil[_0x15fb9c(0x160)](this[_0x15fb9c(0x161)],'query','list_func'),_0x31d084=ValueUtil[_0x15fb9c(0x160)](this['gqlInfo'],'query',_0x15fb9c(0x157)),_0x5c6b7f=ValueUtil['getParams'](this[_0x15fb9c(0x161)],'query',_0x15fb9c(0x14e));if(ValueUtil['isNotEmpty'](_0x31d084)&&(_0x25c1c5=adjustFilters(_0x25c1c5,_0x31d084)),this[_0x15fb9c(0x14d)]){let _0x217153=ValueUtil[_0x15fb9c(0x160)](this[_0x15fb9c(0x161)],_0x15fb9c(0x158),_0x15fb9c(0x14b));ValueUtil['isNotEmpty'](_0x217153)&&ValueUtil[_0x15fb9c(0x152)](this[_0x15fb9c(0x14b)])&&(_0x25c1c5=adjustFilters(_0x25c1c5,[{'name':_0x217153,'operator':'eq','value':this['parent_id']}]));}let _0x3cf2de=Object['keys'](_0x5c6b7f||{}),_0x29de88=MetaApi[_0x15fb9c(0x148)](this['gristConfigSet'][_0x15fb9c(0x146)]['filter'](_0x530263=>!_0x3cf2de['includes'](_0x530263[_0x15fb9c(0x167)]))),_0x440949=await MetaApi[_0x15fb9c(0x164)](_0x302114,_0x25c1c5,_0xb3306e,_0x42eee5,_0x5ba088,_0x29de88);return ValueUtil[_0x15fb9c(0x152)](_0x5c6b7f)&&ValueUtil['isNotEmpty'](_0x440949)&&ValueUtil[_0x15fb9c(0x152)](_0x440949[_0x15fb9c(0x147)])&&_0x440949[_0x15fb9c(0x147)][_0x15fb9c(0x156)](_0x57dff0=>(_0x3cf2de[_0x15fb9c(0x13f)](_0x1649d5=>{const _0x4420e9=_0x15fb9c;_0x57dff0[_0x1649d5]=ValueUtil[_0x4420e9(0x160)](_0x57dff0,..._0x5c6b7f[_0x1649d5][_0x4420e9(0x162)]('.'));}),_0x57dff0)),_0x440949;}async[a0_0x2bcd42(0x145)](_0x1e0da6){const _0x1d26fb=a0_0x2bcd42;let _0x24ea66=ValueUtil[_0x1d26fb(0x160)](this[_0x1d26fb(0x161)],_0x1d26fb(0x158),'find_one_func'),_0x51b914=ValueUtil[_0x1d26fb(0x160)](this[_0x1d26fb(0x161)],'query',_0x1d26fb(0x14e)),_0x4164c0=Object['keys'](_0x51b914||{}),_0x2bb71f=MetaApi[_0x1d26fb(0x148)]((this[_0x1d26fb(0x154)]?this['gristConfigSet']:{'columns':this[_0x1d26fb(0x159)]})[_0x1d26fb(0x146)][_0x1d26fb(0x14a)](_0x5d678c=>!_0x4164c0[_0x1d26fb(0x14c)](_0x5d678c['name']))),_0x496c9f=await MetaApi[_0x1d26fb(0x145)](_0x24ea66,_0x1e0da6,_0x2bb71f);return ValueUtil[_0x1d26fb(0x152)](_0x51b914)&&ValueUtil[_0x1d26fb(0x152)](_0x496c9f)&&_0x4164c0[_0x1d26fb(0x13f)](_0x5e2745=>{const _0x1a8f86=_0x1d26fb;_0x496c9f[_0x5e2745]=ValueUtil[_0x1a8f86(0x160)](_0x496c9f,..._0x51b914[_0x5e2745][_0x1a8f86(0x162)]('.'));}),_0x496c9f;}async[a0_0x2bcd42(0x13d)](_0x1292a4){const _0x535c71=a0_0x2bcd42;let _0x38ecf1=ValueUtil[_0x535c71(0x160)](this['gqlInfo'],_0x535c71(0x15d),_0x535c71(0x15e),_0x535c71(0x142));return await MetaApi[_0x535c71(0x169)](_0x1292a4,_0x38ecf1);}async[a0_0x2bcd42(0x15b)](_0x1f8884){const _0x27a227=a0_0x2bcd42;let _0x3f8fe1=ValueUtil[_0x27a227(0x160)](this[_0x27a227(0x161)],'mutation',_0x27a227(0x153),'func'),_0x24b553=ValueUtil[_0x27a227(0x160)](this[_0x27a227(0x161)],'mutation',_0x27a227(0x153),_0x27a227(0x140));if(ValueUtil[_0x27a227(0x152)](_0x24b553)&&(_0x24b553=_0x24b553['map'](_0x12717a=>_0x12717a['includes']('.')?_0x12717a['split']('.'):_0x12717a),_0x1f8884=_0x1f8884[_0x27a227(0x156)](_0x45a5c1=>(_0x24b553[_0x27a227(0x13f)](_0x281ddb=>{const _0x1c22e2=_0x27a227;Array[_0x1c22e2(0x166)](_0x281ddb)?delete _0x45a5c1[_0x281ddb[0x0]][_0x281ddb[0x1]]:delete _0x45a5c1[_0x281ddb];}),_0x45a5c1))),this[_0x27a227(0x14d)]&&ValueUtil['isNotEmpty'](this['parent_id'])){let _0x2e40d8=ValueUtil['getParams'](this[_0x27a227(0x161)],'mutation','multiple',_0x27a227(0x14b));ValueUtil[_0x27a227(0x152)](_0x2e40d8)&&_0x1f8884[_0x27a227(0x13f)](_0x908502=>{const _0x231ef8=_0x27a227;if(_0x2e40d8[_0x231ef8(0x14c)]('.')){let _0x1dfd84=_0x2e40d8[_0x231ef8(0x162)]('.');_0x908502[_0x1dfd84[0x0]]={},_0x908502[_0x1dfd84[0x0]][_0x1dfd84[0x1]]=this[_0x231ef8(0x14b)];}else _0x908502[_0x2e40d8]=this[_0x231ef8(0x14b)];});}return await MetaApi[_0x27a227(0x15b)](_0x3f8fe1,_0x1f8884);}};
1
+ function a0_0x1498(_0x387e1,_0xfebd06){const _0x56b628=a0_0x56b6();return a0_0x1498=function(_0x14983f,_0x42d8f3){_0x14983f=_0x14983f-0x100;let _0x4eb7b8=_0x56b628[_0x14983f];return _0x4eb7b8;},a0_0x1498(_0x387e1,_0xfebd06);}const a0_0x1ab88d=a0_0x1498;(function(_0x22d07e,_0x4b3f77){const _0x4d42d8=a0_0x1498,_0x2a6cd0=_0x22d07e();while(!![]){try{const _0x53f3e1=-parseInt(_0x4d42d8(0x105))/0x1*(-parseInt(_0x4d42d8(0x121))/0x2)+-parseInt(_0x4d42d8(0x117))/0x3*(-parseInt(_0x4d42d8(0x11e))/0x4)+parseInt(_0x4d42d8(0x11c))/0x5+parseInt(_0x4d42d8(0x12c))/0x6*(-parseInt(_0x4d42d8(0x103))/0x7)+parseInt(_0x4d42d8(0x11f))/0x8*(parseInt(_0x4d42d8(0x106))/0x9)+parseInt(_0x4d42d8(0x122))/0xa+parseInt(_0x4d42d8(0x124))/0xb*(-parseInt(_0x4d42d8(0x108))/0xc);if(_0x53f3e1===_0x4b3f77)break;else _0x2a6cd0['push'](_0x2a6cd0['shift']());}catch(_0x3dae16){_0x2a6cd0['push'](_0x2a6cd0['shift']());}}}(a0_0x56b6,0xa9a5a));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x56b6(){const _0x19e6eb=['1184860SwGTiV','skip_fields','144lKMaQk','104eIrYfE','forEach','172DVLWCX','606010lEJKfK','columns','154vTaMUz','includes','properties','fetchHandler','isNotEmpty','name','filter','mutation','6xXEnHS','deleteListByIds','getParams','find_one_func','query','updateMultiple','2002399rszqPr','isEmpty','15257PUBads','41238GrhnSd','getQueryFilters','981804LuUmjy','getSelectColumns','formConfigSet','gqlInfo','gristConfigSet','split','parent_id','searchByPagination','isElement','keys','map','deleteByIds','multiple','delete','func','38094TMXwUA','records','after_set_fields','filters','findOne'];a0_0x56b6=function(){return _0x19e6eb;};return a0_0x56b6();}export const MetaServiceMixin=_0x426471=>class extends MetaBaseMixin(_0x426471){static get[a0_0x1ab88d(0x126)](){return{'gqlInfo':Object};}['parseBasicServiceConfigs'](_0x2af324){const _0x47a564=a0_0x1ab88d;this[_0x47a564(0x10b)]=_0x2af324['gql'];}async[a0_0x1ab88d(0x127)]({page:_0x54385f=0x0,limit:_0xe2fde=0x0,sortings:_0x45881b=[],filters:_0x217c65=[]}){const _0x2f02f0=a0_0x1ab88d;if(!this[_0x2f02f0(0x10c)])return{'total':0x0,'records':[]};let _0x5598dd=ValueUtil[_0x2f02f0(0x104)](_0x217c65)?await this['filterForm']?.[_0x2f02f0(0x107)]()||[]:_0x217c65,_0x198dc6=ValueUtil['getParams'](this[_0x2f02f0(0x10b)],'query','list_func'),_0x992f87=ValueUtil['getParams'](this[_0x2f02f0(0x10b)],_0x2f02f0(0x101),_0x2f02f0(0x11a)),_0x197b2d=ValueUtil[_0x2f02f0(0x12e)](this[_0x2f02f0(0x10b)],_0x2f02f0(0x101),_0x2f02f0(0x119));if(ValueUtil[_0x2f02f0(0x128)](_0x992f87)&&(_0x5598dd=adjustFilters(_0x5598dd,_0x992f87)),this['isElement']){let _0x542b64=ValueUtil['getParams'](this[_0x2f02f0(0x10b)],_0x2f02f0(0x101),'parent_id');ValueUtil['isNotEmpty'](_0x542b64)&&ValueUtil[_0x2f02f0(0x128)](this[_0x2f02f0(0x10e)])&&(_0x5598dd=adjustFilters(_0x5598dd,[{'name':_0x542b64,'operator':'eq','value':this['parent_id']}]));}let _0x4f97b4=Object[_0x2f02f0(0x111)](_0x197b2d||{}),_0x19a394=MetaApi[_0x2f02f0(0x109)](this[_0x2f02f0(0x10c)][_0x2f02f0(0x123)]['filter'](_0xe616da=>!_0x4f97b4[_0x2f02f0(0x125)](_0xe616da[_0x2f02f0(0x129)]))),_0xbd0e2d=await MetaApi[_0x2f02f0(0x10f)](_0x198dc6,_0x5598dd,_0x45881b,_0x54385f,_0xe2fde,_0x19a394);return ValueUtil[_0x2f02f0(0x128)](_0x197b2d)&&ValueUtil[_0x2f02f0(0x128)](_0xbd0e2d)&&ValueUtil[_0x2f02f0(0x128)](_0xbd0e2d[_0x2f02f0(0x118)])&&_0xbd0e2d[_0x2f02f0(0x118)]['map'](_0x21dcc9=>(_0x4f97b4[_0x2f02f0(0x120)](_0x4360c3=>{const _0x42f78d=_0x2f02f0;_0x21dcc9[_0x4360c3]=ValueUtil[_0x42f78d(0x12e)](_0x21dcc9,..._0x197b2d[_0x4360c3][_0x42f78d(0x10d)]('.'));}),_0x21dcc9)),_0xbd0e2d;}async['findOne'](_0x8d99ee){const _0x7e620b=a0_0x1ab88d;let _0x24236b=ValueUtil['getParams'](this[_0x7e620b(0x10b)],_0x7e620b(0x101),_0x7e620b(0x100)),_0x557ea6=ValueUtil[_0x7e620b(0x12e)](this[_0x7e620b(0x10b)],_0x7e620b(0x101),_0x7e620b(0x119)),_0x23bebb=Object['keys'](_0x557ea6||{}),_0x5b73fb=MetaApi[_0x7e620b(0x109)]((this['gristConfigSet']?this[_0x7e620b(0x10c)]:{'columns':this[_0x7e620b(0x10a)]})[_0x7e620b(0x123)][_0x7e620b(0x12a)](_0x252c77=>!_0x23bebb[_0x7e620b(0x125)](_0x252c77[_0x7e620b(0x129)]))),_0x337543=await MetaApi[_0x7e620b(0x11b)](_0x24236b,_0x8d99ee,_0x5b73fb);return ValueUtil[_0x7e620b(0x128)](_0x557ea6)&&ValueUtil['isNotEmpty'](_0x337543)&&_0x23bebb['forEach'](_0x5ea047=>{const _0x57864c=_0x7e620b;_0x337543[_0x5ea047]=ValueUtil[_0x57864c(0x12e)](_0x337543,..._0x557ea6[_0x5ea047][_0x57864c(0x10d)]('.'));}),_0x337543;}async[a0_0x1ab88d(0x113)](_0x3a7cf3){const _0x1b735b=a0_0x1ab88d;let _0x2d6b09=ValueUtil['getParams'](this[_0x1b735b(0x10b)],_0x1b735b(0x12b),_0x1b735b(0x115),_0x1b735b(0x116));return await MetaApi[_0x1b735b(0x12d)](_0x3a7cf3,_0x2d6b09);}async[a0_0x1ab88d(0x102)](_0x13f9a0){const _0x310544=a0_0x1ab88d;let _0x2a768a=ValueUtil[_0x310544(0x12e)](this[_0x310544(0x10b)],_0x310544(0x12b),'multiple',_0x310544(0x116)),_0x11e743=ValueUtil[_0x310544(0x12e)](this['gqlInfo'],_0x310544(0x12b),_0x310544(0x114),_0x310544(0x11d));if(ValueUtil[_0x310544(0x128)](_0x11e743)&&(_0x11e743=_0x11e743[_0x310544(0x112)](_0x56ed69=>_0x56ed69[_0x310544(0x125)]('.')?_0x56ed69['split']('.'):_0x56ed69),_0x13f9a0=_0x13f9a0['map'](_0x340717=>(_0x11e743['forEach'](_0xd73110=>{Array['isArray'](_0xd73110)?delete _0x340717[_0xd73110[0x0]][_0xd73110[0x1]]:delete _0x340717[_0xd73110];}),_0x340717))),this[_0x310544(0x110)]&&ValueUtil[_0x310544(0x128)](this[_0x310544(0x10e)])){let _0x1ee878=ValueUtil[_0x310544(0x12e)](this[_0x310544(0x10b)],_0x310544(0x12b),_0x310544(0x114),_0x310544(0x10e));ValueUtil[_0x310544(0x128)](_0x1ee878)&&_0x13f9a0[_0x310544(0x120)](_0x3e1d49=>{const _0x5c1708=_0x310544;if(_0x1ee878[_0x5c1708(0x125)]('.')){let _0x4f58ed=_0x1ee878['split']('.');_0x3e1d49[_0x4f58ed[0x0]]={},_0x3e1d49[_0x4f58ed[0x0]][_0x4f58ed[0x1]]=this[_0x5c1708(0x10e)];}else _0x3e1d49[_0x1ee878]=this[_0x5c1708(0x10e)];});}return await MetaApi[_0x310544(0x102)](_0x2a768a,_0x13f9a0);}};
@@ -0,0 +1,69 @@
1
+ const a0_0x5ccf24=a0_0x2081;(function(_0x2eaa70,_0x2d12be){const _0x16f20c=a0_0x2081,_0x980232=_0x2eaa70();while(!![]){try{const _0xcba940=parseInt(_0x16f20c(0x26e))/0x1*(-parseInt(_0x16f20c(0x230))/0x2)+parseInt(_0x16f20c(0x210))/0x3+-parseInt(_0x16f20c(0x228))/0x4*(parseInt(_0x16f20c(0x24b))/0x5)+parseInt(_0x16f20c(0x270))/0x6*(parseInt(_0x16f20c(0x256))/0x7)+parseInt(_0x16f20c(0x242))/0x8*(-parseInt(_0x16f20c(0x21b))/0x9)+parseInt(_0x16f20c(0x25f))/0xa+parseInt(_0x16f20c(0x245))/0xb;if(_0xcba940===_0x2d12be)break;else _0x980232['push'](_0x980232['shift']());}catch(_0x38f199){_0x980232['push'](_0x980232['shift']());}}}(a0_0x2b2d,0x4e40d));function a0_0x2b2d(){const _0x176d61=['delete','findIndex','grid_rank','1294PeNhzc','currentTarget','66MRpcOw','bind','checkEntityColumns','create-menu','back','importConfig','cancel','button.create-menu','query','importXlsxFile','xlsx','onload','medium','edit','value','render','rank','entityColumns','ENTITY_GRIST_COLUMN_TYPES','getGristColumnConfig','styles','search_oper','search_rank','timestamp','hidden','entityId','deleteListByGristSelected','__selected__','length','updater','uniqRank','getGristCodeSelectorColumnConfig','GRIST_COLUMN_TYPES','label.','gridEditor','importHandler','input','size','boolean','entity','creator_id','masterGrist','left-right','split','col_type','getGristSelectableConfig','setAttribute','button','FILTER_OPERATORS','updateMultipleEntityColumn','colSize','entity-column','ref_name','body','record','createMenu','errors','question','filter','detailGrist','large','domain_id','getQueryFilters','createElement','info','define','success\x20to\x20register\x20terms','files','updateMultipleEntity','deleteEntities','ENTITY_COLUMN_TYPES','LIST','#detail-grist','deleteEntityColumns','pageInitialized','gridRank','searchEntityColumns','domain','data','appendChild','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','table_name','reduce','center','colType','fetch','updated_at','shadowRoot','isNotEmpty','saveEntityColumns','push','imex','grid_width','uniq_rank','createMenuTo','check-columns','text.are_you_sure','createUnregisteredTerms','create-service','showToast','createService','importEntityColumns','success\x20to\x20process','patchesForUpdateMultiple','ref_type','refName','1102794GpwwWm','type','error','addEventListener','GRID','querySelector','properties','text.no_data','left','fetchEntities','isMobileEnv','8847rycVFA','result','searchForm','openMainMenuSelectorPopup','gutter','export','toBoolean','save','description','confirm','target','key','getGristGuttersConfig','52RhlFOZ','BUNDLE','selectedEntity','gridWidth','string','forEach','main-menu-selector','tTitle','678PbZwbt','records','_config','map','tText','tableName','showAlertPopup','context','fetchEntityColumns','tLabel','readAsArrayBuffer','searchByPagination','nullable','file','sequence','searchRank','searchFields','deleteMasters','2840gciSvK','name','dispatch','4758710vBAfmA','updateMultiple','detailConfig','right','pop','tButton','168205tcJtGX','created_at','term','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20','ox-filters-form-base','createCustomElement','COLUMN_REF_TYPE','refType','getGristSearchColumnConfig','import','button.create-service','194719EjaUjD','integer','saveMasters','columns','i_like','entities','bundle','masterConfig','getBasicMasterDetailGristStyle','4392940wcrPZY','exportEntityColumns','select','openPopupByElement','grid_editor','message','change','creator','#master-grist','accept','text.nothing_selected','getGristColumnConfig2'];a0_0x2b2d=function(){return _0x176d61;};return a0_0x2b2d();}import{html}from'lit-element';import a0_0x4e2ae1 from'graphql-tag';import{client,gqlContext}from'@operato/graphql';function a0_0x2081(_0x57b320,_0x3b3ed0){const _0x2b2dfe=a0_0x2b2d();return a0_0x2081=function(_0x2081ad,_0xf1f728){_0x2081ad=_0x2081ad-0x1eb;let _0x32af2b=_0x2b2dfe[_0x2081ad];return _0x32af2b;},a0_0x2081(_0x57b320,_0x3b3ed0);}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x5ccf24(0x216)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x5ccf24(0x284)](){const _0xf4d713=a0_0x5ccf24;return MetaApi[_0xf4d713(0x25e)](_0xf4d713(0x29a));}get[a0_0x5ccf24(0x237)](){const _0x1ea872=a0_0x5ccf24;return{'title':TermsUtil[_0x1ea872(0x22f)](_0x1ea872(0x297))};}get[a0_0x5ccf24(0x21d)](){const _0x51a395=a0_0x5ccf24;return this[_0x51a395(0x1fd)]['querySelector'](_0x51a395(0x24f));}get[a0_0x5ccf24(0x299)](){const _0x38d797=a0_0x5ccf24;return this[_0x38d797(0x1fd)]['querySelector'](_0x38d797(0x267));}get['detailGrist'](){const _0x45c01b=a0_0x5ccf24;return this[_0x45c01b(0x1fd)][_0x45c01b(0x215)](_0x45c01b(0x1ee));}async['fetchEntities']({page:_0x45fc4e,limit:_0x48a44e,sorters:_0xf940ef=[{'name':a0_0x5ccf24(0x25c)},{'name':'name'}]}){const _0x3f3458=a0_0x5ccf24;this[_0x3f3458(0x289)]=null,this[_0x3f3458(0x22a)]=null,this['detailGrist']&&this[_0x3f3458(0x2ab)][_0x3f3458(0x1f4)]&&(this['detailGrist'][_0x3f3458(0x1f4)]={});let _0x2d5061=[...await this[_0x3f3458(0x21d)][_0x3f3458(0x2ae)]()];return await MetaApi['searchByPagination'](_0x3f3458(0x25b),_0x2d5061,_0xf940ef,_0x45fc4e,_0x48a44e,_0x3f3458(0x1f6));}async[a0_0x5ccf24(0x238)]({page:_0x1c1150,limit:_0x4a575a,sorters:_0x3dff02=[{'name':a0_0x5ccf24(0x280)}]}){const _0x37b32e=a0_0x5ccf24;if(this[_0x37b32e(0x289)]){let _0x326c41=[{'name':'entityId','operator':'eq','value':this[_0x37b32e(0x289)]}],_0x54bbb0=_0x37b32e(0x24e);return await MetaApi[_0x37b32e(0x23b)](_0x37b32e(0x281),_0x326c41,_0x3dff02,_0x1c1150,_0x4a575a,_0x54bbb0);}}async[a0_0x5ccf24(0x1f2)](_0x1abe8b){const _0x160380=a0_0x5ccf24;this[_0x160380(0x289)]=_0x1abe8b['id'],this[_0x160380(0x22a)]=_0x1abe8b,await this[_0x160380(0x2ab)][_0x160380(0x1fb)]();}async[a0_0x5ccf24(0x21e)](){const _0x1a9329=a0_0x5ccf24;let _0x1691e9=MetaApi[_0x1a9329(0x250)](_0x1a9329(0x22e),_0x1a9329(0x22e));_0x1691e9['selectCallback']=this[_0x1a9329(0x204)]['bind'](this),await MetaApi[_0x1a9329(0x262)](TermsUtil['tButton'](_0x1a9329(0x273)),_0x1a9329(0x27c),_0x1691e9,!0x0);}async[a0_0x5ccf24(0x258)](){const _0x508fe4=a0_0x5ccf24;let _0x827281=MetaApi[_0x508fe4(0x20d)](this[_0x508fe4(0x299)]);ValueUtil[_0x508fe4(0x1fe)](_0x827281)&&(await MetaApi[_0x508fe4(0x246)](_0x508fe4(0x2b4),_0x827281)&&this['masterGrist']['fetch']());}async[a0_0x5ccf24(0x241)](){const _0x5b20e7=a0_0x5ccf24;await MetaApi[_0x5b20e7(0x28a)](this[_0x5b20e7(0x299)],_0x5b20e7(0x1eb));}async[a0_0x5ccf24(0x1ff)](){const _0x1626a9=a0_0x5ccf24;if(this[_0x1626a9(0x289)]){let _0x2bbe73=MetaApi[_0x1626a9(0x20d)](this[_0x1626a9(0x2ab)]);if(ValueUtil['isNotEmpty'](_0x2bbe73)){let _0xa556f7=0x0;_0x2bbe73['forEach'](_0x1b53d0=>{const _0x6a4197=_0x1626a9;_0xa556f7+=0xa,_0x1b53d0[_0x6a4197(0x297)]={'id':this[_0x6a4197(0x289)]},_0x1b53d0[_0x6a4197(0x23c)]=void 0x0!==_0x1b53d0[_0x6a4197(0x23c)]&&null!=_0x1b53d0[_0x6a4197(0x23c)]&&_0x1b53d0['nullable'],_0x1b53d0['rank']=_0x1b53d0[_0x6a4197(0x280)]&&0x0!=_0x1b53d0[_0x6a4197(0x280)]?_0x1b53d0[_0x6a4197(0x280)]:_0xa556f7,_0x1b53d0[_0x6a4197(0x1f1)]=_0x1b53d0['gridRank']?_0x1b53d0[_0x6a4197(0x1f1)]:_0x1b53d0[_0x6a4197(0x280)],_0x1b53d0[_0x6a4197(0x24d)]=_0x1b53d0[_0x6a4197(0x24d)]?_0x1b53d0[_0x6a4197(0x24d)]:_0x6a4197(0x291)+_0x1b53d0[_0x6a4197(0x243)],_0x1b53d0['colType']=_0x1b53d0[_0x6a4197(0x1fa)]?_0x1b53d0[_0x6a4197(0x1fa)]:_0x6a4197(0x22c),_0x1b53d0[_0x6a4197(0x2a2)]=_0x6a4197(0x22c)!=_0x1b53d0['colType']||_0x1b53d0[_0x6a4197(0x2a2)]?_0x1b53d0[_0x6a4197(0x2a2)]:0x32;}),await MetaApi['updateMultiple'](_0x1626a9(0x2a1),_0x2bbe73)&&this[_0x1626a9(0x2ab)][_0x1626a9(0x1fb)]();}}}async[a0_0x5ccf24(0x1ef)](){const _0x1c0904=a0_0x5ccf24;await MetaApi[_0x1c0904(0x28a)](this[_0x1c0904(0x2ab)],'deleteEntityColumns');}async[a0_0x5ccf24(0x20a)](){const _0x596d2c=a0_0x5ccf24;if((await MetaApi[_0x596d2c(0x236)](_0x596d2c(0x255),_0x596d2c(0x206),_0x596d2c(0x2a9),_0x596d2c(0x224),_0x596d2c(0x276)))['value']){let _0x3c5e6e=MetaApi['getSelectedIdList'](this[_0x596d2c(0x299)],!0x0);if(_0x3c5e6e){let _0x24ed44=_0x3c5e6e[0x0];const _0x2acbb5=await client[_0x596d2c(0x278)]({'query':a0_0x4e2ae1`
2
+ query ($id: String!) {
3
+ toolCreateService(id: $id)
4
+ }
5
+ `,'variables':{'id':_0x24ed44},'context':gqlContext()});_0x2acbb5&&_0x2acbb5[_0x596d2c(0x1f4)]&&_0x2acbb5['data']['toolCreateService']&&MetaApi['showToast'](_0x596d2c(0x2b0),TermsUtil[_0x596d2c(0x234)](_0x596d2c(0x20c)));}}}async[a0_0x5ccf24(0x2a7)](){const _0xf22a05=a0_0x5ccf24;if(this[_0xf22a05(0x289)])(await MetaApi[_0xf22a05(0x236)](_0xf22a05(0x277),_0xf22a05(0x206),_0xf22a05(0x2a9),_0xf22a05(0x224),_0xf22a05(0x276)))[_0xf22a05(0x27e)]&&MetaApi['getSelectedIdList'](this[_0xf22a05(0x299)],!0x0)&&await this[_0xf22a05(0x21e)]();else MetaApi[_0xf22a05(0x236)]('text.nothing_selected',_0xf22a05(0x269),_0xf22a05(0x2b0),_0xf22a05(0x224));}async[a0_0x5ccf24(0x204)](_0x5749cf){const _0x4de6c3=a0_0x5ccf24,_0x28a724=await client['query']({'query':a0_0x4e2ae1`
6
+ mutation($id: String!, $parent_menu_id: String!) {
7
+ toolCreateMenu(id: $id, parent_menu_id: $parent_menu_id)
8
+ }
9
+ `,'variables':{'id':this['entityId'],'parent_menu_id':_0x5749cf},'context':gqlContext()});return _0x28a724&&_0x28a724[_0x4de6c3(0x1f4)]&&_0x28a724['data']['toolCreateMenu']?(MetaApi[_0x4de6c3(0x209)](_0x4de6c3(0x2b0),TermsUtil[_0x4de6c3(0x234)](_0x4de6c3(0x20c))),{'success':!0x0}):{'success':!0x1};}async['createUnregisteredTerms'](){const _0x2fec1e=a0_0x5ccf24;try{if(this[_0x2fec1e(0x289)]){const _0x3583fc=this[_0x2fec1e(0x2ab)][_0x2fec1e(0x1f4)]['records']['filter'](_0x2779d0=>TermsUtil[_0x2fec1e(0x239)](_0x2779d0[_0x2fec1e(0x24d)])===_0x2779d0['term'])[_0x2fec1e(0x233)](_0xf0e4de=>_0x2fec1e(0x291)+_0xf0e4de[_0x2fec1e(0x24d)]),_0x4cd4a7=this[_0x2fec1e(0x22a)][_0x2fec1e(0x25c)];_0x3583fc[_0x2fec1e(0x28c)]&&((await client[_0x2fec1e(0x278)]({'query':a0_0x4e2ae1`
10
+ query setTranslations($bundle: String!, $terms: [String!]!) {
11
+ setTranslations(bundle: $bundle, terms: $terms)
12
+ }
13
+ `,'variables':{'bundle':_0x4cd4a7,'terms':_0x3583fc}}))[_0x2fec1e(0x2a8)]||MetaApi['showToast'](_0x2fec1e(0x2b0),TermsUtil[_0x2fec1e(0x234)](_0x2fec1e(0x2b2))));}}catch(_0x42b175){MetaApi[_0x2fec1e(0x209)](_0x2fec1e(0x212),_0x42b175[_0x2fec1e(0x264)]);}}async[a0_0x5ccf24(0x260)](){const _0x32ea1c=a0_0x5ccf24;let _0x701d5e=this[_0x32ea1c(0x2ab)][_0x32ea1c(0x232)][_0x32ea1c(0x259)][_0x32ea1c(0x2aa)](_0x20d65e=>'gutter'!==_0x20d65e[_0x32ea1c(0x211)]&&void 0x0!==_0x20d65e['record']&&void 0x0!==_0x20d65e[_0x32ea1c(0x201)])[_0x32ea1c(0x233)](_0x13d820=>_0x13d820['imex']),_0x1e7954=this[_0x32ea1c(0x2ab)][_0x32ea1c(0x1f4)]['records']['map'](_0x167864=>({'id':_0x167864['id'],...this['detailGrist'][_0x32ea1c(0x232)]['columns'][_0x32ea1c(0x2aa)](_0x13c916=>'gutter'!==_0x13c916['type']&&void 0x0!==_0x13c916[_0x32ea1c(0x2a6)]&&void 0x0!==_0x13c916[_0x32ea1c(0x201)])[_0x32ea1c(0x1f8)]((_0x375eb6,_0x42261a)=>(_0x375eb6[_0x42261a[_0x32ea1c(0x201)][_0x32ea1c(0x226)]]=_0x42261a[_0x32ea1c(0x201)][_0x32ea1c(0x226)]['split']('.')[_0x32ea1c(0x1f8)]((_0x3b49e7,_0x1384b3)=>_0x3b49e7&&'undefined'!==_0x3b49e7[_0x1384b3]?_0x3b49e7[_0x1384b3]:void 0x0,_0x167864),_0x375eb6),{})}));store[_0x32ea1c(0x244)]({'type':EXPORT,'exportable':{'extension':_0x32ea1c(0x27a),'name':TermsUtil['tTitle'](_0x32ea1c(0x2a3))+'-'+this[_0x32ea1c(0x22a)]['name'],'data':{'header':_0x701d5e,'data':_0x1e7954}}});}async[a0_0x5ccf24(0x279)](){const _0x246a26=a0_0x5ccf24;let _0x994838=this;const _0x4620d5=document[_0x246a26(0x2af)](_0x246a26(0x294));_0x4620d5[_0x246a26(0x29e)]('type',_0x246a26(0x23d)),_0x4620d5[_0x246a26(0x29e)](_0x246a26(0x268),[_0x246a26(0x27a)]),_0x4620d5[_0x246a26(0x288)]=!0x0,_0x4620d5[_0x246a26(0x213)](_0x246a26(0x265),_0x4150ac=>{const _0xdb801d=_0x246a26,_0xea8d6e=_0x4150ac[_0xdb801d(0x26f)][_0xdb801d(0x2b3)][0x0],_0x4beb6d=_0xea8d6e[_0xdb801d(0x243)][_0xdb801d(0x29b)]('.')[_0xdb801d(0x249)](),_0x4ddb34=new FileReader();_0x4ddb34[_0xdb801d(0x27b)]=function(_0xc2720b){const _0x1beaae=_0xdb801d,_0x3518fe=_0xc2720b[_0x1beaae(0x225)][_0x1beaae(0x21c)];store[_0x1beaae(0x244)]({'type':IMPORT,'importable':{'extension':_0x4beb6d,'handler':_0x994838[_0x1beaae(0x20b)][_0x1beaae(0x271)](_0x994838)},'data':_0x3518fe});},_0x4ddb34[_0xdb801d(0x23a)](_0xea8d6e);}),document[_0x246a26(0x2a5)][_0x246a26(0x1f5)](_0x4620d5),_0x4620d5['click']();}[a0_0x5ccf24(0x20b)](_0x2097bf){const _0x136bdb=a0_0x5ccf24;let _0x52d37b=_0x2097bf['header']?_0x2097bf[_0x136bdb(0x1f4)]:_0x2097bf;if(_0x52d37b&&_0x52d37b[_0x136bdb(0x28c)]>0x0){_0x52d37b['forEach'](_0x40af66=>{const _0x15f33e=_0x136bdb;_0x40af66[_0x15f33e(0x28b)]=!0x0;});let _0x2e647d=this[_0x136bdb(0x275)]['columns'][_0x136bdb(0x2aa)](_0xd75909=>!!_0xd75909['imex']);setTimeout(()=>{const _0x57e72c=_0x136bdb;MetaApi['openPopupByElement'](TermsUtil['tTitle'](_0x57e72c(0x254)),_0x57e72c(0x2ac),html`
14
+ <import-pop-up
15
+ .records=${_0x52d37b}
16
+ .config=${{'rows':_0x52d37b,'columns':[{'type':_0x57e72c(0x21f),'gutterName':_0x57e72c(0x23e)},..._0x2e647d]}}
17
+ .importHandler="${this['importHandler'][_0x57e72c(0x271)](this)}">
18
+ </import-pop-up>`);},0x1f4);}}async[a0_0x5ccf24(0x293)](_0x183a1f){const _0x493dc6=a0_0x5ccf24;if(_0x183a1f&&0x0!=_0x183a1f[_0x493dc6(0x28c)]){let _0xdc9f4=0x0;_0x183a1f[_0x493dc6(0x22d)](_0x48c2f7=>{const _0x4abda6=_0x493dc6;_0xdc9f4+=0xa,_0x48c2f7[_0x4abda6(0x2a2)]=ValueUtil['isNotEmpty'](_0x48c2f7[_0x4abda6(0x2a2)])?ValueUtil['toInteger'](_0x48c2f7['colSize']):'string'==_0x48c2f7[_0x4abda6(0x1fa)]?0x32:0x0,_0x48c2f7[_0x4abda6(0x280)]=ValueUtil['toInteger'](_0x48c2f7['rank'],0x0),_0x48c2f7[_0x4abda6(0x28e)]=ValueUtil['toInteger'](_0x48c2f7[_0x4abda6(0x28e)],0x0),_0x48c2f7[_0x4abda6(0x23f)]=ValueUtil['toInteger'](_0x48c2f7[_0x4abda6(0x23f)],0x0),_0x48c2f7[_0x4abda6(0x1f1)]=ValueUtil['toInteger'](_0x48c2f7[_0x4abda6(0x1f1)],0x0),_0x48c2f7['gridWidth']=ValueUtil['toInteger'](_0x48c2f7['gridWidth'],0x0),_0x48c2f7[_0x4abda6(0x297)]={'id':this[_0x4abda6(0x289)]},_0x48c2f7['nullable']=ValueUtil[_0x4abda6(0x221)](_0x48c2f7[_0x4abda6(0x23c)]),_0x48c2f7[_0x4abda6(0x24d)]=_0x48c2f7[_0x4abda6(0x24d)]?_0x48c2f7['term']:_0x4abda6(0x291)+_0x48c2f7[_0x4abda6(0x243)],_0x48c2f7['colType']=_0x48c2f7[_0x4abda6(0x1fa)]?_0x48c2f7[_0x4abda6(0x1fa)]:_0x4abda6(0x22c),delete _0x48c2f7[_0x4abda6(0x22c)];}),await MetaApi[_0x493dc6(0x246)]('updateMultipleEntityColumn',_0x183a1f)&&(this['detailGrist'][_0x493dc6(0x1fb)](),history[_0x493dc6(0x274)]());}else MetaApi['showToast'](_0x493dc6(0x2b0),_0x493dc6(0x217)),history[_0x493dc6(0x274)]();}async[a0_0x5ccf24(0x272)](){const _0x333bba=a0_0x5ccf24;if(this[_0x333bba(0x289)]){let _0x2d5787=this[_0x333bba(0x2ab)][_0x333bba(0x1f4)][_0x333bba(0x231)],_0x10b4b6=_0x2d5787&&_0x2d5787[_0x333bba(0x28c)]?0xa*_0x2d5787[_0x333bba(0x28c)]:0x0,_0x4368ab=!0x1,_0x32767c=!0x1,_0x250ccb=!0x1,_0x3bb60a=!0x1,_0x192866=!0x1,_0x534df7=!0x1;_0x2d5787&&_0x2d5787[_0x333bba(0x28c)]>0x0&&(_0x4368ab=_0x2d5787[_0x333bba(0x26c)](_0x302277=>'id'==_0x302277[_0x333bba(0x243)])>=0x0,_0x32767c=_0x2d5787[_0x333bba(0x26c)](_0x283d04=>_0x333bba(0x2ad)==_0x283d04[_0x333bba(0x243)])>=0x0,_0x250ccb=_0x2d5787[_0x333bba(0x26c)](_0x3b5456=>'created_at'==_0x3b5456[_0x333bba(0x243)])>=0x0,_0x3bb60a=_0x2d5787[_0x333bba(0x26c)](_0x283544=>_0x333bba(0x1fc)==_0x283544[_0x333bba(0x243)])>=0x0,_0x192866=_0x2d5787[_0x333bba(0x26c)](_0x333d1a=>_0x333bba(0x298)==_0x333d1a[_0x333bba(0x243)])>=0x0,_0x534df7=_0x2d5787[_0x333bba(0x26c)](_0x4f90d1=>'updater_id'==_0x4f90d1[_0x333bba(0x243)])>=0x0);let _0xea0ef1=[];_0x4368ab||(_0x10b4b6+=0xa,_0xea0ef1[_0x333bba(0x200)]({'entity':{'id':this[_0x333bba(0x289)]},'name':'id','colType':'string','colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x10b4b6,'cuFlag':'+'})),_0x32767c||(_0x10b4b6+=0xa,_0xea0ef1['push']({'entity':{'id':this[_0x333bba(0x289)]},'name':_0x333bba(0x2ad),'colType':_0x333bba(0x22c),'colSize':0x0,'nullable':!0x1,'term':_0x333bba(0x1f3),'rank':_0x10b4b6,'cuFlag':'+'})),_0x250ccb||(_0x10b4b6+=0xa,_0xea0ef1[_0x333bba(0x200)]({'entity':{'id':this[_0x333bba(0x289)]},'name':_0x333bba(0x24c),'colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x333bba(0x24c),'rank':_0x10b4b6,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x3bb60a||(_0x10b4b6+=0xa,_0xea0ef1[_0x333bba(0x200)]({'entity':{'id':this[_0x333bba(0x289)]},'name':_0x333bba(0x1fc),'colType':_0x333bba(0x287),'colSize':0x0,'nullable':!0x0,'term':_0x333bba(0x1fc),'rank':_0x10b4b6,'gridRank':_0x10b4b6,'gridWidth':0x8c,'cuFlag':'+'})),_0x192866||(_0x10b4b6+=0xa,_0xea0ef1['push']({'entity':{'id':this[_0x333bba(0x289)]},'name':_0x333bba(0x298),'colType':_0x333bba(0x22c),'colSize':0x28,'nullable':!0x0,'term':_0x333bba(0x266),'rank':_0x10b4b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x534df7||(_0x10b4b6+=0xa,_0xea0ef1[_0x333bba(0x200)]({'entity':{'id':this['entityId']},'name':'updater_id','colType':'string','colSize':0x28,'nullable':!0x0,'term':_0x333bba(0x28d),'rank':_0x10b4b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi['updateMultiple']('updateMultipleEntityColumn',_0xea0ef1)&&this[_0x333bba(0x2ab)][_0x333bba(0x1fb)]();}}async[a0_0x5ccf24(0x1f0)](){const _0x244d0d=a0_0x5ccf24;this[_0x244d0d(0x240)]=[MetaApi[_0x244d0d(0x253)](_0x244d0d(0x243),'string',_0x244d0d(0x243),_0x244d0d(0x25a)),MetaApi['getGristSearchColumnConfig'](_0x244d0d(0x1f7),_0x244d0d(0x22c),_0x244d0d(0x1f7),'i_like'),await MetaApi['getGristSearchCodeColumnConfig']('bundle',_0x244d0d(0x261),_0x244d0d(0x25c),'eq',_0x244d0d(0x229))],this[_0x244d0d(0x25d)]={'rows':MetaApi[_0x244d0d(0x29d)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x244d0d(0x227)](!0x0,!0x1),{'type':'gutter','gutterName':_0x244d0d(0x29f),'icon':_0x244d0d(0x27d),'handlers':{'click':(_0x5bf8ce,_0xa8e160,_0x49f82f,_0x3e49b6,_0xb526ac)=>{const _0x190015=_0x244d0d;_0x3e49b6['id']&&this[_0x190015(0x1f2)](_0x3e49b6);}}},await MetaApi[_0x244d0d(0x28f)](_0x244d0d(0x25c),_0x244d0d(0x25c),_0x244d0d(0x218),!0x1,0x73,!0x0,_0x244d0d(0x229)),MetaApi[_0x244d0d(0x283)]('string',_0x244d0d(0x243),'left',!0x0,!0x1,0x7d),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x22c),_0x244d0d(0x235),_0x244d0d(0x1f7),_0x244d0d(0x218),!0x0,!0x1,0x7d),MetaApi['getGristColumnConfig'](_0x244d0d(0x22c),_0x244d0d(0x223),_0x244d0d(0x218),!0x0,!0x1,0x96)]},this[_0x244d0d(0x247)]={'rows':MetaApi[_0x244d0d(0x29d)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x244d0d(0x227)](!0x0,!0x0),MetaApi[_0x244d0d(0x283)](_0x244d0d(0x257),_0x244d0d(0x280),'center',!0x0,!0x1,0x32),MetaApi[_0x244d0d(0x283)]('string',_0x244d0d(0x243),_0x244d0d(0x218),!0x0,!0x1,0x73),{'type':'string','name':_0x244d0d(0x24d),'header':TermsUtil[_0x244d0d(0x239)](_0x244d0d(0x24d)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x244d0d(0x218),'renderer':(_0x315ef3,_0x118ad9,_0x3ab659,_0x1b60e2,_0x15af9e)=>_0x3ab659[_0x244d0d(0x24d)]?TermsUtil[_0x244d0d(0x239)](_0x3ab659[_0x244d0d(0x24d)],null,_0x3ab659['term']):''}},await MetaApi[_0x244d0d(0x28f)](_0x244d0d(0x1fa),_0x244d0d(0x29c),_0x244d0d(0x218),!0x1,0x4b,!0x0,_0x244d0d(0x1ec)),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x2a2),_0x244d0d(0x295),'right',!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig2']('boolean','nullable',_0x244d0d(0x23c),'center',!0x0,!0x1,0x46),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x28e),_0x244d0d(0x203),_0x244d0d(0x248),!0x0,!0x1,0x46),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x22c),_0x244d0d(0x223),'description',_0x244d0d(0x218),!0x0,!0x1,0x87),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x23f),_0x244d0d(0x286),_0x244d0d(0x248),!0x0,!0x1,0x46),await MetaApi[_0x244d0d(0x28f)]('string','search_oper',_0x244d0d(0x218),!0x1,0x55,!0x0,_0x244d0d(0x2a0)),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x1f1),_0x244d0d(0x26d),'right',!0x0,!0x1,0x50),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x22b),_0x244d0d(0x202),_0x244d0d(0x248),!0x0,!0x1,0x4b),await MetaApi[_0x244d0d(0x28f)]('gridEditor',_0x244d0d(0x263),'left',!0x1,0x5a,!0x0,_0x244d0d(0x282)),await MetaApi[_0x244d0d(0x28f)]('refType',_0x244d0d(0x20e),_0x244d0d(0x218),!0x1,0x55,!0x0,_0x244d0d(0x251)),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x22c),_0x244d0d(0x20f),'ref_name',_0x244d0d(0x218),!0x0,!0x1,0x64)]},this[_0x244d0d(0x275)]={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x0),MetaApi[_0x244d0d(0x283)](_0x244d0d(0x257),_0x244d0d(0x280),_0x244d0d(0x1f9),!0x0,!0x1,0x32),MetaApi[_0x244d0d(0x283)](_0x244d0d(0x22c),_0x244d0d(0x243),'left',!0x0,!0x1,0x73),{'type':_0x244d0d(0x22c),'name':_0x244d0d(0x24d),'header':TermsUtil[_0x244d0d(0x239)](_0x244d0d(0x24d)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x244d0d(0x218),'renderer':(_0x4b64f5,_0x4a301b,_0xbecd42,_0x4dc644,_0x43f766)=>_0xbecd42[_0x244d0d(0x24d)]?TermsUtil[_0x244d0d(0x239)](_0xbecd42[_0x244d0d(0x24d)],null,_0xbecd42[_0x244d0d(0x24d)]):''}},await MetaApi[_0x244d0d(0x28f)](_0x244d0d(0x1fa),_0x244d0d(0x29c),_0x244d0d(0x218),!0x1,0x4b,!0x0,_0x244d0d(0x1ec)),MetaApi[_0x244d0d(0x26a)]('integer',_0x244d0d(0x2a2),_0x244d0d(0x295),_0x244d0d(0x248),!0x0,!0x1,0x3c),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x296),_0x244d0d(0x23c),_0x244d0d(0x23c),'center',!0x0,!0x1,0x46),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x257),_0x244d0d(0x28e),_0x244d0d(0x203),_0x244d0d(0x248),!0x0,!0x1,0x46),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x22c),_0x244d0d(0x223),'description',_0x244d0d(0x218),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x244d0d(0x257),'searchRank',_0x244d0d(0x286),'right',!0x0,!0x1,0x46),await MetaApi['getGristCodeSelectorColumnConfig']('string',_0x244d0d(0x285),_0x244d0d(0x218),!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi['getGristColumnConfig2']('integer',_0x244d0d(0x1f1),_0x244d0d(0x26d),_0x244d0d(0x248),!0x0,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x244d0d(0x257),_0x244d0d(0x22b),_0x244d0d(0x202),_0x244d0d(0x248),!0x0,!0x1,0x4b),await MetaApi[_0x244d0d(0x28f)](_0x244d0d(0x292),'grid_editor',_0x244d0d(0x218),!0x1,0x5a,!0x0,_0x244d0d(0x290)),await MetaApi[_0x244d0d(0x28f)](_0x244d0d(0x252),_0x244d0d(0x20e),_0x244d0d(0x218),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x244d0d(0x26a)](_0x244d0d(0x22c),_0x244d0d(0x20f),_0x244d0d(0x2a4),_0x244d0d(0x218),!0x0,!0x1,0x64)]};}[a0_0x5ccf24(0x27f)](){const _0x165770=a0_0x5ccf24;return html`
19
+ <div slot="headroom">
20
+ <div id="filters">
21
+ <ox-filters-form-base
22
+ .filters=${this[_0x165770(0x240)]}
23
+ @filters-change=${_0x422747=>{const _0x1dc206=_0x165770;this[_0x1dc206(0x299)]?.[_0x1dc206(0x1fb)]();}}
24
+ ></ox-filters-form-base>
25
+ </div>
26
+ </div>
27
+
28
+ <div class='container' style='grid-template-columns: 37% 63%'>
29
+ <div class="container_detail">
30
+ <h2>
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](_0x165770(0x297))}
32
+ </h2>
33
+ <ox-grist
34
+ id="master-grist"
35
+ .config=${this[_0x165770(0x25d)]}
36
+ .mode=${MetaApi[_0x165770(0x21a)]()?_0x165770(0x1ed):_0x165770(0x214)}
37
+ auto-fetch
38
+ .fetchHandler=${this[_0x165770(0x219)]['bind'](this)}>
39
+ </ox-grist>
40
+ <div id="button-container" class="button-container">
41
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x208))}" @click=${_0x591958=>this['createService']()}></mwc-button>
42
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x273))}" @click=${_0xa751e6=>this['createMenu']()}></mwc-button>
43
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x222))}" @click=${_0x562c08=>this[_0x165770(0x258)]()}></mwc-button>
44
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x26b))}" @click=${_0x114a28=>this[_0x165770(0x241)]()}></mwc-button>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="container_detail">
49
+ <h2>
50
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x165770(0x22f)](_0x165770(0x2a3))}
51
+ </h2>
52
+ <ox-grist
53
+ id="detail-grist"
54
+ .config=${this[_0x165770(0x247)]}
55
+ .mode=${MetaApi[_0x165770(0x21a)]()?_0x165770(0x1ed):_0x165770(0x214)}
56
+ explcit-fetch
57
+ .fetchHandler=${this['fetchEntityColumns'][_0x165770(0x271)](this)}>
58
+ </ox-grist>
59
+ <div id="button-container" class="button-container">
60
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x220))}" @click=${_0x68a672=>this[_0x165770(0x260)]()}></mwc-button>
61
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x254))}" @click=${_0x22ee9f=>this[_0x165770(0x279)]()}></mwc-button>
62
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x205))}" @click=${_0x2285c4=>this[_0x165770(0x272)]()}></mwc-button>
63
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)]('register-terms')}" @click=${_0xaf96c1=>this[_0x165770(0x207)]()}></mwc-button>
64
+ <mwc-button raised label="${TermsUtil[_0x165770(0x24a)](_0x165770(0x222))}" @click=${_0x197d24=>this[_0x165770(0x1ff)]()}></mwc-button>
65
+ <mwc-button raised label="${TermsUtil['tButton']('delete')}" @click=${_0x2750b4=>this[_0x165770(0x1ef)]()}></mwc-button>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ `;}}customElements[a0_0x5ccf24(0x2b1)]('config-entity',ConfigEntity);
@@ -0,0 +1,75 @@
1
+ const a0_0x4ed900=a0_0x353e;function a0_0x5cfe(){const _0x15c96a=['info','2416850GHnXAq','define','back','GRID','length','35589uFJeyf','3455096XpaThN','#ox-grist','string','selectMainMenu','render','getGristGuttersConfig','bind','MENU_TYPE','parentId','searchByPagination','menuType','create-menu','316ZgnjGN','connectedCallback','rank','1174915xOHGDr','252321UOBBhh','tMenu','total','integer','title.info','tButton','gridConfig','getGristColumnConfig','grist','fetchMainMenus','getGristSelectableConfig','330470YUIQJA','is_null','left','tLabel','shadowRoot','7337808xwFLdX','success','main-menu-selector','querySelector','title','name','4gvWdSA','selectCallback','button.confirm','items','54IakLZw'];a0_0x5cfe=function(){return _0x15c96a;};return a0_0x5cfe();}(function(_0x7ba022,_0x5ea9f8){const _0x3e3ff5=a0_0x353e,_0x5308ef=_0x7ba022();while(!![]){try{const _0x14479c=parseInt(_0x3e3ff5(0x134))/0x1*(parseInt(_0x3e3ff5(0x118))/0x2)+parseInt(_0x3e3ff5(0x123))/0x3*(-parseInt(_0x3e3ff5(0x130))/0x4)+-parseInt(_0x3e3ff5(0x10d))/0x5*(-parseInt(_0x3e3ff5(0x11c))/0x6)+parseInt(_0x3e3ff5(0x133))/0x7+-parseInt(_0x3e3ff5(0x124))/0x8+parseInt(_0x3e3ff5(0x112))/0x9+-parseInt(_0x3e3ff5(0x11e))/0xa;if(_0x14479c===_0x5ea9f8)break;else _0x5308ef['push'](_0x5308ef['shift']());}catch(_0x2cdd4c){_0x5308ef['push'](_0x5308ef['shift']());}}}(a0_0x5cfe,0x73358));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x353e(_0x392e3e,_0x4c7b6d){const _0x5cfed3=a0_0x5cfe();return a0_0x353e=function(_0x353eae,_0x2ca540){_0x353eae=_0x353eae-0x106;let _0x766479=_0x5cfed3[_0x353eae];return _0x766479;},a0_0x353e(_0x392e3e,_0x4c7b6d);}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ .container {
8
+ flex: 1;
9
+ display: grid;
10
+ overflow: hidden;
11
+ }
12
+ .container_detail {
13
+ background-color: var(--main-section-background-color);
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex: 1;
17
+ overflow-y: auto;
18
+ }
19
+
20
+ h2 {
21
+ padding: var(--subtitle-padding);
22
+ font: var(--subtitle-font);
23
+ color: var(--subtitle-text-color);
24
+ border-bottom: var(--subtitle-border-bottom);
25
+ }
26
+
27
+ .container_detail h2 {
28
+ margin: var(--grist-title-margin);
29
+ border: var(--grist-title-border);
30
+ font: var(--grist-title-font);
31
+ color: var(--secondary-color);
32
+ }
33
+
34
+ .container_detail h2 mwc-icon {
35
+ vertical-align: middle;
36
+ margin: var(--grist-title-icon-margin);
37
+ font-size: var(--grist-title-icon-size);
38
+ color: var(--grist-title-icon-color);
39
+ }
40
+
41
+ h2 {
42
+ padding-bottom: var(--grist-title-with-grid-padding);
43
+ }
44
+ ox-grist {
45
+ overflow-y: auto;
46
+ flex: 1;
47
+ }
48
+ search-form {
49
+ overflow: visible;
50
+ }
51
+
52
+ .button-container {
53
+ padding: var(--button-container-padding);
54
+ margin: var(--button-container-margin);
55
+ text-align: var(--button-container-align);
56
+ background-color: var(--button-container-background);
57
+ height: var(--button-container-height);
58
+ text-align: right;
59
+ padding-right: 12px;
60
+ }`];}static get['properties'](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async['connectedCallback'](){const _0x411a5c=a0_0x353e;this[_0x411a5c(0x108)]={'rows':MetaApi[_0x411a5c(0x10c)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x411a5c(0x129)](!0x0,!0x1),MetaApi[_0x411a5c(0x109)](_0x411a5c(0x137),_0x411a5c(0x132),'center',!0x0,!0x1,0x3c),MetaApi[_0x411a5c(0x109)]('string','name','left',!0x0,!0x1,0xb9),{'type':_0x411a5c(0x126),'name':_0x411a5c(0x116),'header':TermsUtil[_0x411a5c(0x110)](_0x411a5c(0x116)),'record':{'editable':!0x1,'align':_0x411a5c(0x10f),'renderer':(_0x54b9eb,_0x744c4f,_0x444b0d,_0x1df107,_0x393f2a)=>_0x444b0d[_0x411a5c(0x117)]?TermsUtil[_0x411a5c(0x135)](_0x444b0d[_0x411a5c(0x117)]):''},'sortable':!0x1,'width':0x113},await MetaApi['getGristCodeSelectorColumnConfig'](_0x411a5c(0x12e),'menu_type',_0x411a5c(0x10f),!0x1,0x64,!0x0,_0x411a5c(0x12b))]},super[_0x411a5c(0x131)]&&await super['connectedCallback']();}[a0_0x4ed900(0x128)](){const _0x2ce68b=a0_0x4ed900;return html`
61
+ <div id="container" class="container">
62
+ <div class="container_detail">
63
+ <ox-grist
64
+ id="ox-grist"
65
+ .config=${this[_0x2ce68b(0x108)]}
66
+ .mode=${_0x2ce68b(0x121)} auto-fetch
67
+ .fetchHandler=${this['fetchMainMenus'][_0x2ce68b(0x12a)](this)}>
68
+ </ox-grist>
69
+ <div id="button-container" class="button-container">
70
+ <mwc-button raised hidden id="receive" label="${TermsUtil[_0x2ce68b(0x107)](_0x2ce68b(0x12f))}"
71
+ style="margin-left:7px;margin-top:7px;" @click=${this[_0x2ce68b(0x127)][_0x2ce68b(0x12a)](this)}>
72
+ </mwc-button>
73
+ </div>
74
+ </div>
75
+ </div>`;}get['grist'](){const _0x3f3b47=a0_0x4ed900;return this[_0x3f3b47(0x111)][_0x3f3b47(0x115)](_0x3f3b47(0x125));}async[a0_0x4ed900(0x10b)](){const _0x2ad276=a0_0x4ed900;let _0x35b37c=await MetaApi[_0x2ad276(0x12d)]('menus',[{'name':_0x2ad276(0x12c),'operator':_0x2ad276(0x10e),'value':''}],[{'name':'rank'}],0x0,0x0,'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20');return this['items']=_0x35b37c['records'],this[_0x2ad276(0x136)]=_0x35b37c[_0x2ad276(0x136)],{'total':this[_0x2ad276(0x136)],'records':this[_0x2ad276(0x11b)]};}async[a0_0x4ed900(0x127)](_0x25bb10){const _0x25d349=a0_0x4ed900,_0x491881=this[_0x25d349(0x10a)]['selected'];if(_0x491881&&0x0!=_0x491881[_0x25d349(0x122)])this[_0x25d349(0x119)]&&((await this[_0x25d349(0x119)](_0x491881[0x0]['id']))[_0x25d349(0x113)]&&history[_0x25d349(0x120)]());else UiUtil['showCustomAlert'](_0x25d349(0x106),'text.NOTHING_SELECTED',_0x25d349(0x11d),_0x25d349(0x11a));}}customElements[a0_0x4ed900(0x11f)](a0_0x4ed900(0x114),MainMenuSelector);