@things-factory/meta-ui 6.0.0-alpha.5 → 6.0.0-alpha.7

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 (35) hide show
  1. package/client/actions/main.js +4 -1
  2. package/client/bootstrap.js +6 -2
  3. package/client/index.js +3 -0
  4. package/client/mixin/meta-base-mixin.js +1 -1
  5. package/client/mixin/meta-basic-form-mixin.js +4 -4
  6. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  7. package/client/mixin/meta-button-mixin.js +1 -1
  8. package/client/mixin/meta-service-mixin.js +1 -1
  9. package/client/pages/loading-page.js +3 -3
  10. package/client/pages/menu/dynamic-menu-template.js +34 -178
  11. package/client/pages/menu/dynamic-menu.js +15 -15
  12. package/client/pages/meta-form-element.js +1 -1
  13. package/client/pages/meta-grist-element.js +1 -1
  14. package/client/pages/meta-grist-page.js +1 -1
  15. package/client/pages/terms/config-terminology.js +6 -6
  16. package/client/reducers/main.js +1 -1
  17. package/client/route.js +2 -2
  18. package/client/utils/meta-api.js +1 -1
  19. package/client/utils/meta-crypto.js +1 -1
  20. package/client/utils/meta-ui-util.js +25 -25
  21. package/client/utils/service-util.js +12 -12
  22. package/client/utils/terms-util.js +2 -2
  23. package/client/utils/ui-util.js +1 -1
  24. package/client/utils/value-util.js +1 -1
  25. package/client/viewparts/dynamic-menu-landscape-styles.js +147 -0
  26. package/client/viewparts/dynamic-menu-landscape.js +25 -0
  27. package/client/viewparts/dynamic-menu-part.js +36 -0
  28. package/client/viewparts/dynamic-menu-portrait-styles.js +119 -0
  29. package/client/viewparts/dynamic-menu-portrait.js +18 -0
  30. package/client/viewparts/dynamic-top-menu-bar.js +67 -0
  31. package/dist-server/constants/error-code.js +1 -1
  32. package/dist-server/errors/license-error.js +1 -1
  33. package/dist-server/routes.js +1 -1
  34. package/dist-server/service/meta-secret/meta-resolver.js +1 -1
  35. package/package.json +4 -4
@@ -1 +1,4 @@
1
- const a0_0x5f11f7=a0_0x35ad;function a0_0x35ad(_0x27101c,_0x45038b){const _0x671f6c=a0_0x671f();return a0_0x35ad=function(_0x35ada1,_0x4704e0){_0x35ada1=_0x35ada1-0x154;let _0xc797f4=_0x671f6c[_0x35ada1];return _0xc797f4;},a0_0x35ad(_0x27101c,_0x45038b);}function a0_0x671f(){const _0x39a642=['UPDATE_META_UI','7uDEGVF','55910XlFZcU','5259360ALeoEK','3122238VinQJN','18pyHdAM','5052RrTZLx','4OKYDTa','3399087qIkdAA','2vcIRBS','10855MTKFEI','427604iWcciE','154wRFtOo','5945384vTkixC'];a0_0x671f=function(){return _0x39a642;};return a0_0x671f();}(function(_0x5520af,_0x3da6f3){const _0x3f1e01=a0_0x35ad,_0x311cc2=_0x5520af();while(!![]){try{const _0x7692cc=parseInt(_0x3f1e01(0x155))/0x1*(-parseInt(_0x3f1e01(0x157))/0x2)+parseInt(_0x3f1e01(0x154))/0x3+-parseInt(_0x3f1e01(0x161))/0x4*(parseInt(_0x3f1e01(0x15d))/0x5)+-parseInt(_0x3f1e01(0x15e))/0x6*(parseInt(_0x3f1e01(0x15b))/0x7)+parseInt(_0x3f1e01(0x159))/0x8*(parseInt(_0x3f1e01(0x15f))/0x9)+parseInt(_0x3f1e01(0x15c))/0xa*(-parseInt(_0x3f1e01(0x158))/0xb)+-parseInt(_0x3f1e01(0x160))/0xc*(-parseInt(_0x3f1e01(0x156))/0xd);if(_0x7692cc===_0x3da6f3)break;else _0x311cc2['push'](_0x311cc2['shift']());}catch(_0x46e68c){_0x311cc2['push'](_0x311cc2['shift']());}}}(a0_0x671f,0xd9f73));export const UPDATE_META_UI=a0_0x5f11f7(0x15a);
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})}
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,7 +4,8 @@ import { auth } from '@things-factory/auth-base'
4
4
  import { ADD_MORENDA } from '@things-factory/more-base'
5
5
  import { navigate, store } from '@things-factory/shell'
6
6
  import { navigateWithSilence, UPDATE_MODULES } from '@operato/shell'
7
- import { updateMenuTemplate } from '@things-factory/lite-menu'
7
+ import { updateMenuTemplate } from './actions/main'
8
+
8
9
  import metaUI from './reducers/main'
9
10
 
10
11
  import { TermsUtil } from './utils/terms-util'
@@ -24,9 +25,11 @@ export default function bootstrap() {
24
25
  await TermsUtil.downloadTerminologies(locale);
25
26
 
26
27
  // 2. 메뉴 정보를 서버로 부터 받아서 적용
28
+ // 메뉴 정보를 서버로 부터 받아서 적용
27
29
  let menuRoutes = await MetaApi.myDynamicMenus();
28
30
  let realMenus = menuRoutes.menus;
29
- updateMenuTemplate(realMenus);
31
+
32
+ await updateMenuTemplate(realMenus);
30
33
 
31
34
  // 3. 동적 메뉴 관리 화면 추가
32
35
  store.dispatch({
@@ -83,6 +86,7 @@ export default function bootstrap() {
83
86
  this.routes.forEach(r => {
84
87
  metaUiRoutes.push({ page: r.page, tagname: r.tagname })
85
88
  });
89
+
86
90
  metaUiModule.routes = metaUiRoutes;
87
91
  metaUiModule.route = metaUiRoute;
88
92
 
package/client/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import './viewparts/dynamic-menu-part'
2
+ import './viewparts/dynamic-top-menu-bar'
3
+
1
4
  export * from './actions/main'
2
5
 
3
6
  /** Utilities **/
@@ -1 +1 @@
1
- const a0_0x3b7b29=a0_0x54e1;(function(_0x217990,_0x3cf2cb){const _0x20177e=a0_0x54e1,_0x1afc76=_0x217990();while(!![]){try{const _0x3abb52=parseInt(_0x20177e(0x105))/0x1+-parseInt(_0x20177e(0xf6))/0x2*(-parseInt(_0x20177e(0xff))/0x3)+parseInt(_0x20177e(0x115))/0x4+parseInt(_0x20177e(0xf4))/0x5*(parseInt(_0x20177e(0x103))/0x6)+parseInt(_0x20177e(0x104))/0x7*(-parseInt(_0x20177e(0xf9))/0x8)+-parseInt(_0x20177e(0xfc))/0x9+-parseInt(_0x20177e(0x10d))/0xa;if(_0x3abb52===_0x3cf2cb)break;else _0x1afc76['push'](_0x1afc76['shift']());}catch(_0x491584){_0x1afc76['push'](_0x1afc76['shift']());}}}(a0_0x4059,0x9dc30));function a0_0x4059(){const _0x172963=['menu','parseBasicServiceConfigs','is_popup','isPage','isDetail','parseBasicGridConfigs','13138610KtCtuf','after','isNotEmpty','grist','fetchHandler','callScenario','title_detail','split','3935088ItisLV','isElement','isEmpty','getParams','is_detail','20KIqgTr','parseBasicFormConfigs','2501558UAEWzy','errors','getMenuMeta','8tSfBTj','properties','openDynamicPopup','8971191akAFVu','tTitle','name','3IEEBYD','fetch','excuteOpenPopupButtonClick','parseBasicButtonConfigs','484914tTebLE','1029427CpIkrU','546086YfzOoe','title'];a0_0x4059=function(){return _0x172963;};return a0_0x4059();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x54e1(_0x2a490a,_0x344988){const _0x4059ab=a0_0x4059();return a0_0x54e1=function(_0x54e1fc,_0x3f9bea){_0x54e1fc=_0x54e1fc-0xf2;let _0xe432e9=_0x4059ab[_0x54e1fc];return _0xe432e9;},a0_0x54e1(_0x2a490a,_0x344988);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x4552e6=>class extends _0x4552e6{static get[a0_0x3b7b29(0xfa)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x45aa17=>Boolean(_0x45aa17)},'is_popup':{'type':Boolean,'converter':_0x145dc4=>Boolean(_0x145dc4)}};}get[a0_0x3b7b29(0x116)](){const _0x513672=a0_0x3b7b29;return!0x0===this['is_detail']||!0x0===this[_0x513672(0x109)];}get[a0_0x3b7b29(0x10b)](){const _0x4420f7=a0_0x3b7b29;return!ValueUtil[_0x4420f7(0x117)](this[_0x4420f7(0xf3)])&&this[_0x4420f7(0xf3)];}get['isPopup'](){const _0x3c5545=a0_0x3b7b29;return!ValueUtil['isEmpty'](this[_0x3c5545(0x109)])&&this[_0x3c5545(0x109)];}get[a0_0x3b7b29(0x10a)](){return!this['is_detail']&&!this['is_popup'];}async['getAndParseMenuMeta'](){const _0x3ab01e=a0_0x3b7b29;let _0xcd24c8=await MetaApi[_0x3ab01e(0xf8)](this);_0xcd24c8&&(this['menuInfo']=_0xcd24c8[_0x3ab01e(0x107)],this[_0x3ab01e(0x10c)]&&this[_0x3ab01e(0x10c)](_0xcd24c8),this[_0x3ab01e(0x108)]&&this['parseBasicServiceConfigs'](_0xcd24c8),this[_0x3ab01e(0xf5)]&&this[_0x3ab01e(0xf5)](_0xcd24c8),this['parseBasicButtonConfigs']&&this[_0x3ab01e(0x102)](_0xcd24c8));}async[a0_0x3b7b29(0x100)](){const _0x5f0e92=a0_0x3b7b29;ValueUtil[_0x5f0e92(0x10f)](this[_0x5f0e92(0x110)])?this[_0x5f0e92(0x110)][_0x5f0e92(0x100)]():(ValueUtil[_0x5f0e92(0x10f)](this['filterForm'])||this[_0x5f0e92(0x111)])&&await this[_0x5f0e92(0x111)]();}async[a0_0x3b7b29(0x101)](_0x38e5f2,_0x361a35,_0x2e59cf){const _0xbfb348=a0_0x3b7b29;let _0x59b722=TermsUtil[_0xbfb348(0xfd)](_0x38e5f2[_0xbfb348(0x106)]);ValueUtil['isNotEmpty'](_0x38e5f2[_0xbfb348(0x113)])&&(_0x59b722=_0x59b722+'-'+ValueUtil[_0xbfb348(0xf2)](_0x361a35,..._0x38e5f2[_0xbfb348(0x113)][_0xbfb348(0x114)]('.'))),MetaApi[_0xbfb348(0xfb)](_0x59b722,_0x38e5f2,_0x361a35,_0x2e59cf);}async['executeCallScenarioButtonClick'](_0x376195,_0x53c126,_0x4fd12d){const _0x44744c=a0_0x3b7b29;let _0x3b9e8e=await MetaApi[_0x44744c(0x112)](_0x376195[_0x44744c(0xfe)],_0x376195[_0x44744c(0xfe)],_0x53c126);!0x1!==_0x3b9e8e&&!_0x3b9e8e[_0x44744c(0xf7)]&&ValueUtil[_0x44744c(0x10f)](_0x376195[_0x44744c(0x10e)])&&_0x4fd12d();}};
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,4 +1,4 @@
1
- const a0_0x205010=a0_0x2ec6;(function(_0x230aa5,_0x17cf4b){const _0x21cbf7=a0_0x2ec6,_0x307b69=_0x230aa5();while(!![]){try{const _0x67a47=parseInt(_0x21cbf7(0xc6))/0x1*(-parseInt(_0x21cbf7(0xa6))/0x2)+parseInt(_0x21cbf7(0x98))/0x3+parseInt(_0x21cbf7(0xb5))/0x4+-parseInt(_0x21cbf7(0xb1))/0x5*(parseInt(_0x21cbf7(0x89))/0x6)+parseInt(_0x21cbf7(0x92))/0x7*(-parseInt(_0x21cbf7(0x90))/0x8)+parseInt(_0x21cbf7(0x9d))/0x9*(-parseInt(_0x21cbf7(0xa0))/0xa)+parseInt(_0x21cbf7(0x8c))/0xb;if(_0x67a47===_0x17cf4b)break;else _0x307b69['push'](_0x307b69['shift']());}catch(_0x460a26){_0x307b69['push'](_0x307b69['shift']());}}}(a0_0x20be,0x5fa96));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_0x2ec6(_0x1d753c,_0x9099ee){const _0x20bea9=a0_0x20be();return a0_0x2ec6=function(_0x2ec6c8,_0x3543e4){_0x2ec6c8=_0x2ec6c8-0x88;let _0x5a144f=_0x20bea9[_0x2ec6c8];return _0x5a144f;},a0_0x2ec6(_0x1d753c,_0x9099ee);}function a0_0x20be(){const _0x175b49=['formBodyId','save','querySelector','context','__origin__','record','forEach','styles','detail','validation','getBasicFormHtml','search','connectedCallback','65784nJUUZU','call','872778FOUTpC','render','formConfigSet','12928223hfrcpu','firstUpdated','getBasicFormStyles','renderRoot','570824hBtHBe','text.NOTHING_CHANGED','14ESVRix','findOne','isEmpty','button','contextPath','name','771012PIYEXh','isPage','__dirtyfields__','attributeChangedCallback','parent_id','1193832HyJpUU','fetch','after','40xjmMUp','field-change','form_column','updateMultiple','context-path','pageInitialized','8vZSqvX','getContextObject','getAndParseMenuMeta','grid_column','parseFormConfigs','__seq__','formColumnConfig','isElement','ox-record-view-body','addEventListener','function','5drYixp','isEquals','properties','isNotEmpty','165720FjPENH','__dirty__','viewBody','keys'];a0_0x20be=function(){return _0x175b49;};return a0_0x20be();}import{MetaButtonMixin}from'./meta-button-mixin';import{ServiceUtil}from'../utils/service-util';export const MetaBasicFormMixin=_0x586d04=>class extends MetaButtonMixin(_0x586d04){static get[a0_0x205010(0xc0)](){const _0x3f45f5=a0_0x205010;return MetaApi[_0x3f45f5(0x8e)]();}static get[a0_0x205010(0xb3)](){return{'formBodyId':String,'formColumnConfig':Array,'formConfigSet':Object};}get[a0_0x205010(0xb7)](){const _0x55481e=a0_0x205010;return this[_0x55481e(0x8f)][_0x55481e(0xbb)](this[_0x55481e(0xb9)]);}get[a0_0x205010(0xbc)](){const _0x6f9635=a0_0x205010;return MetaUiUtil[_0x6f9635(0xa7)](this);}async[a0_0x205010(0xc5)](){const _0x10813b=a0_0x205010;await this[_0x10813b(0xa8)](),this[_0x10813b(0xad)]&&await this[_0x10813b(0xaa)](),this[_0x10813b(0xaf)](_0x10813b(0xa1),_0x55ef3a=>{const _0x539638=_0x10813b;var {after:_0x2e82a8,before:_0x37f886,column:_0x5b7b0c,record:_0x2638fa,row:_0x195da2}=_0x55ef3a[_0x539638(0xc1)];if(ValueUtil[_0x539638(0xb2)](_0x2e82a8,_0x37f886))return;var _0x588a8f=_0x5b7b0c[_0x539638(0xc2)];if(_0x588a8f&&_0x539638(0xb0)==typeof _0x588a8f&&!_0x588a8f[_0x539638(0x88)](this,_0x2e82a8,_0x37f886,_0x2638fa,_0x5b7b0c))return;let _0x4e093a=_0x5b7b0c[_0x539638(0x97)];_0x2638fa[_0x4e093a]=_0x2e82a8,_0x2638fa[_0x539638(0x9a)]=_0x2638fa['__dirtyfields__']||{},_0x2638fa[_0x539638(0x9a)][_0x4e093a]={'before':_0x2638fa[_0x539638(0xbd)][_0x4e093a],'after':_0x2638fa[_0x4e093a]},ValueUtil[_0x539638(0xb2)](_0x2638fa[_0x539638(0x9a)][_0x4e093a]['before'],_0x2638fa[_0x539638(0x9a)][_0x4e093a]['after'])&&delete _0x2638fa[_0x539638(0x9a)][_0x4e093a],ValueUtil[_0x539638(0xb4)](_0x2638fa[_0x539638(0x9a)])?_0x2638fa['__dirty__']='M':_0x2638fa[_0x539638(0xb6)]='',this[_0x539638(0xb7)][_0x539638(0xbe)]={..._0x2638fa};}),super['connectedCallback']&&await super[_0x10813b(0xc5)](),this['isElement']&&await this[_0x10813b(0x9e)]();}async[a0_0x205010(0x8d)](){const _0x8ee576=a0_0x205010;super[_0x8ee576(0x8d)]&&await super[_0x8ee576(0x8d)]();}async['pageInitialized'](){const _0x26c713=a0_0x205010;this[_0x26c713(0x99)]&&await this[_0x26c713(0xaa)](),super[_0x26c713(0xa5)]&&await super[_0x26c713(0xa5)](),this[_0x26c713(0x99)]&&await this['fetch']();}[a0_0x205010(0x8a)](){const _0x5f40e2=a0_0x205010;return html`
2
- ${MetaApi[_0x5f40e2(0xc3)](this)}
3
- ${this[_0x5f40e2(0x99)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}[a0_0x205010(0x9b)](_0x5c873c,_0xb86b72,_0x38998e){const _0x3f92c6=a0_0x205010;if(super['attributeChangedCallback'](_0x5c873c,_0xb86b72,_0x38998e),_0x3f92c6(0xa4)===_0x5c873c&&!0x0===this['active']&&ValueUtil[_0x3f92c6(0xb4)](this[_0x3f92c6(0x96)])){const _0x2f7794=new URLSearchParams(window['location'][_0x3f92c6(0xc4)]);ValueUtil['isNotEmpty'](_0x2f7794)&&(_0x2f7794[_0x3f92c6(0xbf)]((_0x9fff82,_0x53b669)=>{MetaApi['setSearchFormEditorValue'](_0x53b669,_0x9fff82);}),this[_0x3f92c6(0x9e)]());}}['parseBasicFormConfigs'](_0x1fa93d){const _0x2f8784=a0_0x205010;this[_0x2f8784(0xb9)]=_0x2f8784(0xae),this[_0x2f8784(0xac)]=_0x1fa93d[_0x2f8784(0xa2)],ValueUtil[_0x2f8784(0x94)](this[_0x2f8784(0xac)])&&(this[_0x2f8784(0xac)]=_0x1fa93d[_0x2f8784(0xa9)]),_0x1fa93d['button']=_0x1fa93d[_0x2f8784(0x95)]['filter'](_0x148c8a=>'save'==_0x148c8a[_0x2f8784(0x97)]);}async[a0_0x205010(0xaa)](){const _0x204ce3=a0_0x205010;this[_0x204ce3(0x8b)]=await MetaApi['parseFormConfigSet'](this);}async[a0_0x205010(0x9e)](){const _0x24001b=a0_0x205010;if(ValueUtil[_0x24001b(0x94)](this[_0x24001b(0x9c)]))return;let _0x5e09ab=await this[_0x24001b(0x93)](this[_0x24001b(0x9c)]);_0x5e09ab[_0x24001b(0xab)]=0x1;let _0x5a5e89={};Object['assign'](_0x5a5e89,_0x5e09ab),_0x5e09ab[_0x24001b(0xbd)]=_0x5a5e89,this[_0x24001b(0xb7)][_0x24001b(0xbe)]={..._0x5e09ab};}async[a0_0x205010(0xba)](){const _0x1deac6=a0_0x205010;let _0x55a7a2=this[_0x1deac6(0xb7)]['record'];if(ValueUtil[_0x1deac6(0x94)](_0x55a7a2[_0x1deac6(0xb6)]))return void MetaApi['showAlertPopup']('title.info',_0x1deac6(0x91));let _0x3f6774=_0x55a7a2[_0x1deac6(0x9a)],_0x283c6b={};ValueUtil[_0x1deac6(0xb4)](_0x55a7a2['id'])&&(_0x283c6b['id']=_0x55a7a2['id']),Object[_0x1deac6(0xb8)](_0x3f6774)[_0x1deac6(0xbf)](_0x5972c6=>{const _0x4ef0ea=_0x1deac6;_0x283c6b[_0x5972c6]=_0x3f6774[_0x5972c6][_0x4ef0ea(0x9f)];});let _0x548773=[{..._0x283c6b,'cuFlag':_0x55a7a2[_0x1deac6(0xb6)]}];return await this[_0x1deac6(0xa3)](_0x548773)&&await this[_0x1deac6(0x9e)](),!0x0;}};
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,4 +1,4 @@
1
- const a0_0x330eb6=a0_0x3f21;(function(_0x43c1c4,_0x2b3ef2){const _0x10dfed=a0_0x3f21,_0x386c0c=_0x43c1c4();while(!![]){try{const _0x1235ae=-parseInt(_0x10dfed(0x139))/0x1+parseInt(_0x10dfed(0x149))/0x2*(-parseInt(_0x10dfed(0x11e))/0x3)+parseInt(_0x10dfed(0x141))/0x4+-parseInt(_0x10dfed(0x147))/0x5+parseInt(_0x10dfed(0x11f))/0x6+parseInt(_0x10dfed(0x143))/0x7+-parseInt(_0x10dfed(0x122))/0x8;if(_0x1235ae===_0x2b3ef2)break;else _0x386c0c['push'](_0x386c0c['shift']());}catch(_0x10fa57){_0x386c0c['push'](_0x386c0c['shift']());}}}(a0_0x4fa5,0xb014d));import{html}from'lit';function a0_0x4fa5(){const _0x56c171=['render','getBasicGristStyles','isNotEmpty','105826tdGpFo','grid_column','delete','getBasicGristHtml','parseGristConfigs','patchesForUpdateMultiple','filterForm','parseGridConfigSet','5550844VYwidP','exportableData','7717206UJckbX','isPage','gridConfig','connectedCallback','1273215sznQBD','save','2lOrVDk','getContextObject','setSearchFormEditorValue','updateMultiple','context','search','attributeChangedCallback','context-path','menuInfo','searchConfig','pageInitialized','parseBasicGridConfigs','ox-filters-form','1758573EUqbLm','5382198CZOhHu','properties','deleteByIds','13754504MmpOpn','find','gristId','firstUpdated','getSelectedIdList','gristConfigSet','tTitle','grist','renderRoot','location','getButtonContainer','getParams','filterFormId','active','export','fetch','getAndParseMenuMeta','forEach','grid','isElement'];a0_0x4fa5=function(){return _0x56c171;};return a0_0x4fa5();}import{MetaApi}from'../utils/meta-api';function a0_0x3f21(_0x706fd9,_0x55e099){const _0x4fa540=a0_0x4fa5();return a0_0x3f21=function(_0x3f2134,_0x2662e9){_0x3f2134=_0x3f2134-0x118;let _0x4d3369=_0x4fa540[_0x3f2134];return _0x4d3369;},a0_0x3f21(_0x706fd9,_0x55e099);}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=_0x10ad86=>class extends MetaButtonMixin(_0x10ad86){static get['styles'](){const _0x123f0c=a0_0x3f21;return MetaApi[_0x123f0c(0x137)]();}static get[a0_0x330eb6(0x120)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x3eb28b=a0_0x330eb6;return this[_0x3eb28b(0x12a)]['querySelector'](this[_0x3eb28b(0x124)]);}get[a0_0x330eb6(0x13f)](){const _0x26e7f3=a0_0x330eb6;return this['shadowRoot']?.['querySelector'](this[_0x26e7f3(0x12e)]);}get[a0_0x330eb6(0x14d)](){const _0x43f457=a0_0x330eb6;return MetaUiUtil[_0x43f457(0x14a)](this);}async[a0_0x330eb6(0x146)](){const _0x587567=a0_0x330eb6;this['gristId']='ox-grist',this[_0x587567(0x12e)]=_0x587567(0x11d),await this[_0x587567(0x132)](),this[_0x587567(0x135)]&&await this['parseGristConfigs'](),super[_0x587567(0x146)]&&await super[_0x587567(0x146)]();}async['firstUpdated'](){const _0xf42824=a0_0x330eb6;super[_0xf42824(0x125)]&&await super[_0xf42824(0x125)]();}async[a0_0x330eb6(0x11b)](){const _0x312077=a0_0x330eb6;this['isPage']&&await this[_0x312077(0x13d)](),super[_0x312077(0x11b)]&&await super[_0x312077(0x11b)]();}[a0_0x330eb6(0x136)](){const _0x68532e=a0_0x330eb6;return html`
2
- ${MetaApi[_0x68532e(0x13c)](this)}
3
- ${this[_0x68532e(0x144)]?html``:MetaUiUtil[_0x68532e(0x12c)](this)}
4
- `;}[a0_0x330eb6(0x14f)](_0x41921a,_0x53ac54,_0x2dfd64){const _0x47c3a0=a0_0x330eb6;if(super[_0x47c3a0(0x14f)](_0x41921a,_0x53ac54,_0x2dfd64),_0x47c3a0(0x118)===_0x41921a&&!0x0===this[_0x47c3a0(0x12f)]&&ValueUtil[_0x47c3a0(0x138)](this['contextPath'])){const _0x465e1f=new URLSearchParams(window[_0x47c3a0(0x12b)][_0x47c3a0(0x14e)]);ValueUtil['isNotEmpty'](_0x465e1f)&&(_0x465e1f[_0x47c3a0(0x133)]((_0x15290f,_0x41a859)=>{const _0xb9afe8=_0x47c3a0;MetaApi[_0xb9afe8(0x14b)](_0x41a859,_0x15290f);}),this[_0x47c3a0(0x131)]());}}[a0_0x330eb6(0x11c)](_0x5cbf17){const _0x518d86=a0_0x330eb6;this[_0x518d86(0x145)]=_0x5cbf17[_0x518d86(0x134)],this['gridColumnConfig']=_0x5cbf17[_0x518d86(0x13a)],this[_0x518d86(0x11a)]=_0x5cbf17[_0x518d86(0x14e)];}async[a0_0x330eb6(0x13d)](){const _0x272894=a0_0x330eb6;this[_0x272894(0x127)]=await MetaApi[_0x272894(0x140)](this);}async[a0_0x330eb6(0x131)](){const _0x32e62e=a0_0x330eb6;await this[_0x32e62e(0x129)][_0x32e62e(0x131)]();}async[a0_0x330eb6(0x148)](){const _0x18aaca=a0_0x330eb6;let _0x57d7c3=MetaApi[_0x18aaca(0x13e)](this[_0x18aaca(0x129)]);!!ValueUtil[_0x18aaca(0x138)](_0x57d7c3)&&await this[_0x18aaca(0x14c)](_0x57d7c3)&&this['fetch']();}async[a0_0x330eb6(0x123)](){const _0x320d2d=a0_0x330eb6;let _0x378ce5=MetaApi['getSelectedIdList'](this[_0x320d2d(0x129)],!0x0);return ValueUtil[_0x320d2d(0x138)](_0x378ce5)?await this['findOne'](_0x378ce5[0x0]):{};}async[a0_0x330eb6(0x13b)](){const _0x3dbd51=a0_0x330eb6;let _0x1af1cf=MetaApi[_0x3dbd51(0x126)](this[_0x3dbd51(0x129)],!0x0);!!ValueUtil[_0x3dbd51(0x138)](_0x1af1cf)&&await this[_0x3dbd51(0x121)](_0x1af1cf)&&this[_0x3dbd51(0x131)]();}async[a0_0x330eb6(0x130)](){const _0x3cda60=a0_0x330eb6;let _0x4d642b=TermsUtil[_0x3cda60(0x128)](ValueUtil[_0x3cda60(0x12d)](this[_0x3cda60(0x119)],'title'));return await MetaApi[_0x3cda60(0x142)](this[_0x3cda60(0x135)],_0x4d642b,this['grist']);}async['import'](){}};
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 +1 @@
1
- const a0_0x1424fc=a0_0x3adf;function a0_0x3adf(_0x466f16,_0x367c74){const _0x511e1f=a0_0x511e();return a0_0x3adf=function(_0x3adf14,_0x7ac2d2){_0x3adf14=_0x3adf14-0x6d;let _0x1b5416=_0x511e1f[_0x3adf14];return _0x1b5416;},a0_0x3adf(_0x466f16,_0x367c74);}(function(_0x512018,_0x294d3a){const _0x2beea3=a0_0x3adf,_0x559b01=_0x512018();while(!![]){try{const _0x4409eb=-parseInt(_0x2beea3(0x82))/0x1*(parseInt(_0x2beea3(0x72))/0x2)+parseInt(_0x2beea3(0x70))/0x3+parseInt(_0x2beea3(0x7c))/0x4*(parseInt(_0x2beea3(0x74))/0x5)+parseInt(_0x2beea3(0x76))/0x6*(-parseInt(_0x2beea3(0x88))/0x7)+parseInt(_0x2beea3(0x6e))/0x8*(-parseInt(_0x2beea3(0x8a))/0x9)+parseInt(_0x2beea3(0x81))/0xa+parseInt(_0x2beea3(0x79))/0xb;if(_0x4409eb===_0x294d3a)break;else _0x559b01['push'](_0x559b01['shift']());}catch(_0x37fac3){_0x559b01['push'](_0x559b01['shift']());}}}(a0_0x511e,0xc033e));import{html}from'lit';function a0_0x511e(){const _0x48f5cb=['5ccrthC','getCustomButtonContainerStyles','816uRjFju','customButtonHandler','button','23329801JYsuSR','properties','add','50132DQFnmJ','getButtonContainer','import','getButtonActionHandler','useButtonImport','12906340brOywy','23UVSALb','isPage','isButtonExist','buttonConfig','export','getCustomButtonContainerStyle','50498mDgcML','getContextButtons','9WdiYij','gristButtonHandler','10264016oQkJAF','getBasicButtonHandler','2976873BbzszJ','useButtonAdd','118694Plvvxx','useButtonExport'];a0_0x511e=function(){return _0x48f5cb;};return a0_0x511e();}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x1b6840=>class extends MetaServiceMixin(_0x1b6840){static get[a0_0x1424fc(0x7a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1424fc(0x87)](){const _0x26bdad=a0_0x1424fc;return MetaUiUtil[_0x26bdad(0x75)]();}[a0_0x1424fc(0x89)](){const _0x422582=a0_0x1424fc;return MetaUiUtil[_0x422582(0x89)](this);}[a0_0x1424fc(0x7d)](){const _0x4bd98f=a0_0x1424fc;return this[_0x4bd98f(0x83)]?html``:MetaUiUtil[_0x4bd98f(0x7d)](this);}async[a0_0x1424fc(0x6f)](_0x1922b8,_0x3749b7,_0x26607a){const _0x41f4ba=a0_0x1424fc;return await MetaUiUtil[_0x41f4ba(0x7f)](this,_0x1922b8,_0x3749b7,_0x26607a);}async[a0_0x1424fc(0x77)](_0x1c0cb0){await MetaUiUtil['customButtonHandler'](this,_0x1c0cb0);}async[a0_0x1424fc(0x6d)](_0x2b7f75,_0x4eb025){await MetaUiUtil['gristButtonHandler'](this,_0x2b7f75,_0x4eb025);}['parseBasicButtonConfigs'](_0x352adc){const _0x286d86=a0_0x1424fc;this[_0x286d86(0x85)]=_0x352adc[_0x286d86(0x78)],this[_0x286d86(0x80)]=MetaUiUtil[_0x286d86(0x84)](this[_0x286d86(0x85)],_0x286d86(0x7e)),this[_0x286d86(0x73)]=MetaUiUtil[_0x286d86(0x84)](this[_0x286d86(0x85)],_0x286d86(0x86)),this[_0x286d86(0x71)]=MetaUiUtil['isButtonExist'](this[_0x286d86(0x85)],_0x286d86(0x7b));}};
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 +1 @@
1
- const a0_0xdcdee2=a0_0x2fa8;(function(_0x303db3,_0x5a2345){const _0x212a85=a0_0x2fa8,_0x3e04f2=_0x303db3();while(!![]){try{const _0x4944c0=-parseInt(_0x212a85(0xaa))/0x1*(-parseInt(_0x212a85(0x9c))/0x2)+-parseInt(_0x212a85(0xa7))/0x3+parseInt(_0x212a85(0x9d))/0x4+-parseInt(_0x212a85(0xbf))/0x5*(-parseInt(_0x212a85(0xbe))/0x6)+parseInt(_0x212a85(0xaf))/0x7*(parseInt(_0x212a85(0x99))/0x8)+parseInt(_0x212a85(0x95))/0x9+-parseInt(_0x212a85(0xbb))/0xa*(parseInt(_0x212a85(0xb2))/0xb);if(_0x4944c0===_0x5a2345)break;else _0x3e04f2['push'](_0x3e04f2['shift']());}catch(_0x3814b4){_0x3e04f2['push'](_0x3e04f2['shift']());}}}(a0_0x255e,0x9fd5e));function a0_0x2fa8(_0x1b91c1,_0x72c56c){const _0x255e2e=a0_0x255e();return a0_0x2fa8=function(_0x2fa81f,_0x5b81b1){_0x2fa81f=_0x2fa81f-0x91;let _0x3b698c=_0x255e2e[_0x2fa81f];return _0x3b698c;},a0_0x2fa8(_0x1b91c1,_0x72c56c);}import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';function a0_0x255e(){const _0x2850db=['query','2430162vpWozc','parent_id','isEmpty','11AscEDl','name','gql','updateMultiple','filters','560DvDAlA','deleteListByIds','isNotEmpty','323939phTCsl','columns','mutation','records','searchByPagination','filter','parseBasicServiceConfigs','findOne','forEach','460vKeSbC','isElement','multiple','2238JiEfSy','12440UNRPtk','getSelectColumns','gristConfigSet','func','skip_fields','gqlInfo','3500613wrgTLo','formConfigSet','keys','map','32624tYSMfP','find_one_func','filterForm','109032NtODMl','2305988IjlqGM','isArray','after_set_fields','includes','delete','getParams','fetchHandler','split','getQueryFilters'];a0_0x255e=function(){return _0x2850db;};return a0_0x255e();}import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x3714de=>class extends MetaBaseMixin(_0x3714de){static get['properties'](){return{'gqlInfo':Object};}[a0_0xdcdee2(0xb8)](_0x5ae54a){const _0x3563b6=a0_0xdcdee2;this[_0x3563b6(0x94)]=_0x5ae54a[_0x3563b6(0xac)];}async[a0_0xdcdee2(0xa3)]({page:_0x53baad=0x0,limit:_0xd40753=0x0,sortings:_0x42590f=[],filters:_0x5b4b72=[]}){const _0x8c0fd7=a0_0xdcdee2;if(!this[_0x8c0fd7(0x91)])return{'total':0x0,'records':[]};let _0x35392c=ValueUtil[_0x8c0fd7(0xa9)](_0x5b4b72)?await this[_0x8c0fd7(0x9b)]?.[_0x8c0fd7(0xa5)]()||[]:_0x5b4b72,_0x5059fc=ValueUtil['getParams'](this['gqlInfo'],_0x8c0fd7(0xa6),'list_func'),_0x3f85ad=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0xae)),_0x592883=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0x9f));if(ValueUtil[_0x8c0fd7(0xb1)](_0x3f85ad)&&(_0x35392c=adjustFilters(_0x35392c,_0x3f85ad)),this[_0x8c0fd7(0xbc)]){let _0x32d88b=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0xa8));ValueUtil[_0x8c0fd7(0xb1)](_0x32d88b)&&ValueUtil[_0x8c0fd7(0xb1)](this['parent_id'])&&(_0x35392c=adjustFilters(_0x35392c,[{'name':_0x32d88b,'operator':'eq','value':this[_0x8c0fd7(0xa8)]}]));}let _0x5df80c=Object['keys'](_0x592883||{}),_0x1dc214=MetaApi[_0x8c0fd7(0xc0)](this[_0x8c0fd7(0x91)][_0x8c0fd7(0xb3)][_0x8c0fd7(0xb7)](_0x3f08f9=>!_0x5df80c[_0x8c0fd7(0xa0)](_0x3f08f9[_0x8c0fd7(0xab)]))),_0x36b52a=await MetaApi[_0x8c0fd7(0xb6)](_0x5059fc,_0x35392c,_0x42590f,_0x53baad,_0xd40753,_0x1dc214);return ValueUtil['isNotEmpty'](_0x592883)&&ValueUtil['isNotEmpty'](_0x36b52a)&&ValueUtil[_0x8c0fd7(0xb1)](_0x36b52a[_0x8c0fd7(0xb5)])&&_0x36b52a[_0x8c0fd7(0xb5)][_0x8c0fd7(0x98)](_0x4a748b=>(_0x5df80c[_0x8c0fd7(0xba)](_0xde19f0=>{const _0x37bfce=_0x8c0fd7;_0x4a748b[_0xde19f0]=ValueUtil[_0x37bfce(0xa2)](_0x4a748b,..._0x592883[_0xde19f0]['split']('.'));}),_0x4a748b)),_0x36b52a;}async[a0_0xdcdee2(0xb9)](_0x3f6544){const _0x63f1a4=a0_0xdcdee2;let _0x569cba=ValueUtil[_0x63f1a4(0xa2)](this[_0x63f1a4(0x94)],'query',_0x63f1a4(0x9a)),_0x147b65=ValueUtil[_0x63f1a4(0xa2)](this[_0x63f1a4(0x94)],_0x63f1a4(0xa6),_0x63f1a4(0x9f)),_0x531510=Object[_0x63f1a4(0x97)](_0x147b65||{}),_0x1308f1=MetaApi['getSelectColumns']((this[_0x63f1a4(0x91)]?this['gristConfigSet']:{'columns':this[_0x63f1a4(0x96)]})[_0x63f1a4(0xb3)][_0x63f1a4(0xb7)](_0xb3b2a4=>!_0x531510[_0x63f1a4(0xa0)](_0xb3b2a4[_0x63f1a4(0xab)]))),_0x5543cd=await MetaApi[_0x63f1a4(0xb9)](_0x569cba,_0x3f6544,_0x1308f1);return ValueUtil[_0x63f1a4(0xb1)](_0x147b65)&&ValueUtil[_0x63f1a4(0xb1)](_0x5543cd)&&_0x531510[_0x63f1a4(0xba)](_0x43f9f2=>{const _0x5d23ca=_0x63f1a4;_0x5543cd[_0x43f9f2]=ValueUtil[_0x5d23ca(0xa2)](_0x5543cd,..._0x147b65[_0x43f9f2][_0x5d23ca(0xa4)]('.'));}),_0x5543cd;}async['deleteByIds'](_0x492d02){const _0x26b3e4=a0_0xdcdee2;let _0x520b04=ValueUtil[_0x26b3e4(0xa2)](this[_0x26b3e4(0x94)],_0x26b3e4(0xb4),_0x26b3e4(0xa1),_0x26b3e4(0x92));return await MetaApi[_0x26b3e4(0xb0)](_0x492d02,_0x520b04);}async[a0_0xdcdee2(0xad)](_0x30e02f){const _0x5d79b8=a0_0xdcdee2;let _0x5afc7e=ValueUtil[_0x5d79b8(0xa2)](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0x92)),_0x286ea8=ValueUtil['getParams'](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0x93));if(ValueUtil[_0x5d79b8(0xb1)](_0x286ea8)&&(_0x286ea8=_0x286ea8['map'](_0x4880a2=>_0x4880a2[_0x5d79b8(0xa0)]('.')?_0x4880a2[_0x5d79b8(0xa4)]('.'):_0x4880a2),_0x30e02f=_0x30e02f[_0x5d79b8(0x98)](_0x302793=>(_0x286ea8[_0x5d79b8(0xba)](_0x469ab9=>{const _0x57b1b2=_0x5d79b8;Array[_0x57b1b2(0x9e)](_0x469ab9)?delete _0x302793[_0x469ab9[0x0]][_0x469ab9[0x1]]:delete _0x302793[_0x469ab9];}),_0x302793))),this['isElement']&&ValueUtil['isNotEmpty'](this['parent_id'])){let _0x1c0f5f=ValueUtil[_0x5d79b8(0xa2)](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0xa8));ValueUtil[_0x5d79b8(0xb1)](_0x1c0f5f)&&_0x30e02f[_0x5d79b8(0xba)](_0x157ce1=>{const _0x5c5c39=_0x5d79b8;if(_0x1c0f5f[_0x5c5c39(0xa0)]('.')){let _0x5b79c9=_0x1c0f5f[_0x5c5c39(0xa4)]('.');_0x157ce1[_0x5b79c9[0x0]]={},_0x157ce1[_0x5b79c9[0x0]][_0x5b79c9[0x1]]=this[_0x5c5c39(0xa8)];}else _0x157ce1[_0x1c0f5f]=this[_0x5c5c39(0xa8)];});}return await MetaApi[_0x5d79b8(0xad)](_0x5afc7e,_0x30e02f);}};
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,4 +1,4 @@
1
- function a0_0x2a1e(){var _0x4407da=['870HIbkdz','8217360eZpZWH','1221818QMLiEv','4675530jMuPTX','21ibCIDi','render','517804uxATdc','10fhrcxh','316054tlNPNa','10763154ttAMyl','loading-page','19985KJdsDy','context','styles','customElements','define'];a0_0x2a1e=function(){return _0x4407da;};return a0_0x2a1e();}var a0_0x3fbc35=a0_0x53e2;(function(_0x3b5a85,_0x18f0da){var _0x32fdb3=a0_0x53e2,_0x171560=_0x3b5a85();while(!![]){try{var _0x44ac48=-parseInt(_0x32fdb3(0x104))/0x1+parseInt(_0x32fdb3(0xfe))/0x2+-parseInt(_0x32fdb3(0x100))/0x3*(parseInt(_0x32fdb3(0x102))/0x4)+parseInt(_0x32fdb3(0xff))/0x5+-parseInt(_0x32fdb3(0xfc))/0x6*(-parseInt(_0x32fdb3(0x107))/0x7)+parseInt(_0x32fdb3(0xfd))/0x8+parseInt(_0x32fdb3(0x105))/0x9*(-parseInt(_0x32fdb3(0x103))/0xa);if(_0x44ac48===_0x18f0da)break;else _0x171560['push'](_0x171560['shift']());}catch(_0x46cfe9){_0x171560['push'](_0x171560['shift']());}}}(a0_0x2a1e,0x8aed3));function a0_0x53e2(_0x4a7426,_0x250215){var _0x2a1e77=a0_0x2a1e();return a0_0x53e2=function(_0x53e24d,_0x5408b8){_0x53e24d=_0x53e24d-0xfb;var _0x57f211=_0x2a1e77[_0x53e24d];return _0x57f211;},a0_0x53e2(_0x4a7426,_0x250215);}import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x3fbc35(0x109)](){return[css`
1
+ var a0_0x4bd7be=a0_0x38ce;function a0_0x4c13(){var _0x431467=['501ljTkWF','define','34928720zTJChf','942522hvYNnO','4089495gwZQwX','690947GieIbi','context','customElements','1209880XgpDel','20804AiiKlR','loading-page','7ONjZMz','Loading\x20...','7588376UXlBur','9CXJiUO'];a0_0x4c13=function(){return _0x431467;};return a0_0x4c13();}(function(_0x515799,_0x1d871a){var _0x1e0091=a0_0x38ce,_0x207c2c=_0x515799();while(!![]){try{var _0x2dacf2=-parseInt(_0x1e0091(0x8b))/0x1+parseInt(_0x1e0091(0x8e))/0x2+parseInt(_0x1e0091(0x86))/0x3*(-parseInt(_0x1e0091(0x8f))/0x4)+-parseInt(_0x1e0091(0x8a))/0x5+parseInt(_0x1e0091(0x89))/0x6*(parseInt(_0x1e0091(0x91))/0x7)+parseInt(_0x1e0091(0x84))/0x8*(-parseInt(_0x1e0091(0x85))/0x9)+parseInt(_0x1e0091(0x88))/0xa;if(_0x2dacf2===_0x1d871a)break;else _0x207c2c['push'](_0x207c2c['shift']());}catch(_0x4144ae){_0x207c2c['push'](_0x207c2c['shift']());}}}(a0_0x4c13,0xe2cab));import{css,html}from'lit-element';function a0_0x38ce(_0xcc3c56,_0x59bd7b){var _0x4c13b5=a0_0x4c13();return a0_0x38ce=function(_0x38cecf,_0x260e14){_0x38cecf=_0x38cecf-0x84;var _0x45a55e=_0x4c13b5[_0x38cecf];return _0x45a55e;},a0_0x38ce(_0xcc3c56,_0x59bd7b);}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';class LoadingPage extends localize(i18next)(PageView){static get['styles'](){return[css`
2
2
  :host {
3
3
  display: block;
4
4
  background-color: var(--main-section-background-color);
@@ -41,11 +41,11 @@ function a0_0x2a1e(){var _0x4407da=['870HIbkdz','8217360eZpZWH','1221818QMLiEv',
41
41
  display: none;
42
42
  }
43
43
  }
44
- `];}get[a0_0x3fbc35(0x108)](){return{'title':'Loading\x20...','actions':[]};}[a0_0x3fbc35(0x101)](){return html`
44
+ `];}get[a0_0x4bd7be(0x8c)](){var _0x5cb37a=a0_0x4bd7be;return{'title':_0x5cb37a(0x92),'actions':[]};}['render'](){return html`
45
45
  <h2>페이지 로딩 중 입니다.</h2>
46
46
  <p page-description>
47
47
  잠시만 기다려주세요...
48
48
  </p>
49
49
 
50
50
  <img src="/assets/images/loading-page.png" />
51
- `;}}window[a0_0x3fbc35(0x10a)][a0_0x3fbc35(0xfb)](a0_0x3fbc35(0x106),LoadingPage);
51
+ `;}}window[a0_0x4bd7be(0x8d)][a0_0x4bd7be(0x87)](a0_0x4bd7be(0x90),LoadingPage);
@@ -1,182 +1,38 @@
1
- import '@operato/input/ox-input-code.js'
2
-
3
- import a0_0x53d61b from 'graphql-tag'
4
- import { css, html, LitElement } from 'lit-element'
5
-
6
- import { client } from '@operato/graphql'
7
- import { i18next, localize } from '@operato/i18n'
8
- import { store } from '@operato/shell'
9
- import { ScrollbarStyles } from '@operato/styles'
10
-
11
- import { MetaApi } from '../../utils/meta-api'
12
- import { TermsUtil } from '../../utils/terms-util'
13
-
14
- const a0_0x573980 = a0_0x23f8
15
- function a0_0x23f8(_0x1e2e87, _0x853c04) {
16
- const _0x1fd978 = a0_0x1fd9()
17
- return (
18
- (a0_0x23f8 = function (_0x23f8fa, _0x5d825b) {
19
- _0x23f8fa = _0x23f8fa - 0xa8
20
- let _0x979a51 = _0x1fd978[_0x23f8fa]
21
- return _0x979a51
22
- }),
23
- a0_0x23f8(_0x1e2e87, _0x853c04)
24
- )
25
- }
26
- ;(function (_0x8b84b1, _0x34d874) {
27
- const _0x4cf92c = a0_0x23f8,
28
- _0x120176 = _0x8b84b1()
29
- while (!![]) {
30
- try {
31
- const _0x420ce6 =
32
- (parseInt(_0x4cf92c(0xa9)) / 0x1) * (parseInt(_0x4cf92c(0xc0)) / 0x2) +
33
- -parseInt(_0x4cf92c(0xc6)) / 0x3 +
34
- -parseInt(_0x4cf92c(0xb5)) / 0x4 +
35
- (parseInt(_0x4cf92c(0xb0)) / 0x5) * (parseInt(_0x4cf92c(0xc1)) / 0x6) +
36
- (-parseInt(_0x4cf92c(0xba)) / 0x7) * (-parseInt(_0x4cf92c(0xb3)) / 0x8) +
37
- -parseInt(_0x4cf92c(0xbb)) / 0x9 +
38
- (parseInt(_0x4cf92c(0xc9)) / 0xa) * (parseInt(_0x4cf92c(0xcc)) / 0xb)
39
- if (_0x420ce6 === _0x34d874) break
40
- else _0x120176['push'](_0x120176['shift']())
41
- } catch (_0x41ce8d) {
42
- _0x120176['push'](_0x120176['shift']())
43
- }
44
- }
45
- })(a0_0x1fd9, 0x4d026)
46
-
47
- function a0_0x1fd9() {
48
- const _0xc49ba3 = [
49
- 'dynamic-menu-template',
50
- 'info',
51
- '914046uoTLqa',
52
- 'text.there_is_nothing_to_save',
53
- 'getState',
54
- '795560wBVqZv',
55
- 'showAlertPopup',
56
- 'dispatchEvent',
57
- '11yFFMzv',
58
- 'recordId',
59
- 'properties',
60
- 'error',
61
- '28507KCaVzI',
62
- 'error.invalid\x20license\x20key',
63
- 'metaUI',
64
- 'query',
65
- 'template',
66
- 'findOne',
67
- 'value',
68
- '10gRbEqA',
69
- 'codeValueNew',
70
- 'studioPermission',
71
- '430792iUSTxY',
72
- 'bind',
73
- '2011024gfpTIy',
74
- 'updateMultiple',
75
- 'text.nothing_changed',
76
- 'firstUpdated',
77
- 'codeEditor',
78
- '14MKcwYe',
79
- '692748VCXwjI',
80
- 'render',
81
- 'save',
82
- 'querySelector',
83
- 'menu',
84
- '32KLHuyu',
85
- '1669422iJTUUa',
86
- 'title',
87
- 'orgValue'
88
- ]
89
- a0_0x1fd9 = function () {
90
- return _0xc49ba3
91
- }
92
- return a0_0x1fd9()
93
- }
94
-
95
- class DynamicMenuTemplate extends localize(i18next)(LitElement) {
96
- static get [a0_0x573980(0xce)]() {
97
- return { title: String, recordId: String }
98
- }
99
- static get ['styles']() {
100
- return [
101
- ScrollbarStyles,
102
- css`
103
- :host {
104
- display: flex;
105
- flex-direction: column;
106
- overflow-x: overlay;
107
- background-color: var(--main-section-background-color);
108
- }
109
- legend {
110
- margin: 10px;
111
- text-transform: capitalize;
112
- padding: var(--legend-padding);
113
- font: var(--legend-font);
114
- color: var(--legend-text-color);
115
- border-bottom: var(--legend-border-bottom);
116
- }
117
- ox-input-code {
118
- margin: 10px;
119
- overflow-y: auto;
120
- flex: 1;
121
- }
122
- .button-container {
123
- padding: var(--button-container-padding);
124
- margin: var(--button-container-margin);
125
- text-align: var(--button-container-align);
126
- background-color: var(--button-container-background);
127
- height: var(--button-container-height);
128
- text-align: right;
129
- padding-right: 12px;
130
- }
131
- `
132
- ]
133
- }
134
- async ['firstUpdated']() {
135
- const _0x403ed7 = a0_0x573980
136
- super[_0x403ed7(0xb8)] && (await super[_0x403ed7(0xb8)]())
137
- let _0x5b0752 = await MetaApi[_0x403ed7(0xae)](_0x403ed7(0xbf), this['recordId'], _0x403ed7(0xad)),
138
- _0x1ddb10 = (_0x5b0752 && _0x5b0752[_0x403ed7(0xad)]) || ''
139
- ;(this[_0x403ed7(0xb9)][_0x403ed7(0xaf)] = _0x1ddb10),
140
- (this[_0x403ed7(0xb9)][_0x403ed7(0xc3)] = this[_0x403ed7(0xb9)][_0x403ed7(0xaf)])
141
- }
142
- [a0_0x573980(0xbc)]() {
143
- const _0x54c4ee = a0_0x573980
144
- return html` <legend>${this[_0x54c4ee(0xc2)]}</legend>
145
- <ox-input-code mode="javascript" value=${this[_0x54c4ee(0xb1)]} tab-size="2" tab-as-space="true"></ox-input-code>
1
+ const a0_0x5c43cd=a0_0x29e8;(function(_0x550d6b,_0x2a11d0){const _0x2e7cf8=a0_0x29e8,_0x3b98fa=_0x550d6b();while(!![]){try{const _0x217cb2=-parseInt(_0x2e7cf8(0x1c4))/0x1*(parseInt(_0x2e7cf8(0x1be))/0x2)+-parseInt(_0x2e7cf8(0x1cd))/0x3*(-parseInt(_0x2e7cf8(0x1da))/0x4)+parseInt(_0x2e7cf8(0x1d3))/0x5*(parseInt(_0x2e7cf8(0x1cb))/0x6)+parseInt(_0x2e7cf8(0x1cc))/0x7+parseInt(_0x2e7cf8(0x1e3))/0x8*(parseInt(_0x2e7cf8(0x1ce))/0x9)+parseInt(_0x2e7cf8(0x1df))/0xa+-parseInt(_0x2e7cf8(0x1d4))/0xb;if(_0x217cb2===_0x2a11d0)break;else _0x3b98fa['push'](_0x3b98fa['shift']());}catch(_0x2905e9){_0x3b98fa['push'](_0x3b98fa['shift']());}}}(a0_0x502a,0x7857e));import a0_0x4cbe32 from'graphql-tag';function a0_0x29e8(_0xdec726,_0x5c51b5){const _0x502a1b=a0_0x502a();return a0_0x29e8=function(_0x29e80d,_0x465c9a){_0x29e80d=_0x29e80d-0x1ba;let _0x59f76f=_0x502a1b[_0x29e80d];return _0x59f76f;},a0_0x29e8(_0xdec726,_0x5c51b5);}import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@operato/i18n';import{ScrollbarStyles}from'@operato/styles';import'@operato/input/ox-input-code.js';import{TermsUtil}from'./../../utils/terms-util';function a0_0x502a(){const _0x5d9c6d=['recordId','styles','104242TwSBrn','codeValueNew','info','orgValue','shadowRoot','updateMultiple','1rJjhgV','template','error','updateMultipleMenu','save','bind','render','438VdOgRM','2383423YURuxQ','12jwTNTh','4614453tuqvsN','codeEditor','tButton','error.invalid\x20license\x20key','firstUpdated','36280gPtnQO','28408644hadGVB','title','define','querySelector','back','menu','935440TJvPsZ','metaUI','errors','value','getState','8093170TJJbDZ','notify','dispatchEvent','dynamic-menu-template','8bTSYlT','query','studioPermission','findOne'];a0_0x502a=function(){return _0x5d9c6d;};return a0_0x502a();}import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get['properties'](){return{'title':String,'recordId':String};}static get[a0_0x5c43cd(0x1bd)](){return[ScrollbarStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: overlay;
6
+ background-color: var(--main-section-background-color);
7
+ }
8
+ legend {
9
+ margin:10px;
10
+ text-transform: capitalize;
11
+ padding: var(--legend-padding);
12
+ font: var(--legend-font);
13
+ color: var(--legend-text-color);
14
+ border-bottom: var(--legend-border-bottom);
15
+ }
16
+ ox-input-code {
17
+ margin:10px;
18
+ overflow-y: auto;
19
+ flex: 1;
20
+ }
21
+ .button-container {
22
+ padding: var(--button-container-padding);
23
+ margin: var(--button-container-margin);
24
+ text-align: var(--button-container-align);
25
+ background-color: var(--button-container-background);
26
+ height: var(--button-container-height);
27
+ text-align: right;
28
+ padding-right: 12px;
29
+ }`];}async[a0_0x5c43cd(0x1d2)](){const _0x13418a=a0_0x5c43cd;super['firstUpdated']&&await super[_0x13418a(0x1d2)]();let _0x2805db=await MetaApi[_0x13418a(0x1bb)](_0x13418a(0x1d9),this[_0x13418a(0x1bc)],_0x13418a(0x1c5)),_0x3558ef=_0x2805db&&_0x2805db[_0x13418a(0x1c5)]||'';this[_0x13418a(0x1cf)][_0x13418a(0x1dd)]=_0x3558ef,this[_0x13418a(0x1cf)]['orgValue']=this['codeEditor'][_0x13418a(0x1dd)];}[a0_0x5c43cd(0x1ca)](){const _0x2e80ed=a0_0x5c43cd;return html`
30
+ <legend>${this[_0x2e80ed(0x1d5)]}</legend>
31
+ <ox-input-code mode="javascript" value=${this[_0x2e80ed(0x1bf)]} tab-size="2" tab-as-space="true"></ox-input-code>
146
32
  <div id="button-container" class="button-container">
147
- <!-- <mwc-button raised label="${TermsUtil['tButton'](_0x54c4ee(0xbd))}" @click=${this['save'][_0x54c4ee(0xb4)](
148
- this
149
- )}></mwc-button> -->
150
- </div>`
151
- }
152
- get ['codeEditor']() {
153
- const _0x2434a0 = a0_0x573980
154
- return this['shadowRoot'][_0x2434a0(0xbe)]('ox-input-code')
155
- }
156
- async [a0_0x573980(0xbd)]() {
157
- const _0x185e33 = a0_0x573980
158
- if (this[_0x185e33(0xb9)][_0x185e33(0xc3)] == this[_0x185e33(0xb9)]['value'])
159
- return void MetaApi[_0x185e33(0xca)](_0x185e33(0xb7), _0x185e33(0xc7), _0x185e33(0xc5), 'confirm')
160
- if (0x0 == store[_0x185e33(0xc8)]()[_0x185e33(0xab)][_0x185e33(0xb2)])
161
- return void document[_0x185e33(0xcb)](
162
- new CustomEvent('notify', { detail: { level: _0x185e33(0xa8), message: i18next['t'](_0x185e33(0xaa)) } })
163
- )
164
- if (
165
- (
166
- await client[_0x185e33(0xac)]({
167
- query: a0_0x53d61b`
33
+ <!-- <mwc-button raised label="${TermsUtil[_0x2e80ed(0x1d0)](_0x2e80ed(0x1c8))}" @click=${this[_0x2e80ed(0x1c8)][_0x2e80ed(0x1c9)](this)}></mwc-button> -->
34
+ </div>`;}get[a0_0x5c43cd(0x1cf)](){const _0x1517b2=a0_0x5c43cd;return this[_0x1517b2(0x1c2)][_0x1517b2(0x1d7)]('ox-input-code');}async['save'](){const _0x16c05e=a0_0x5c43cd;if(this[_0x16c05e(0x1cf)][_0x16c05e(0x1c1)]==this['codeEditor'][_0x16c05e(0x1dd)])return void MetaApi['showAlertPopup']('text.nothing_changed','text.there_is_nothing_to_save',_0x16c05e(0x1c0),'confirm');if(0x0==store[_0x16c05e(0x1de)]()[_0x16c05e(0x1db)][_0x16c05e(0x1ba)])return void document[_0x16c05e(0x1e1)](new CustomEvent(_0x16c05e(0x1e0),{'detail':{'level':_0x16c05e(0x1c6),'message':i18next['t'](_0x16c05e(0x1d1))}}));if((await client[_0x16c05e(0x1e4)]({'query':a0_0x4cbe32`
168
35
  query ($id: String!) {
169
36
  metaUITemplateIsOverLimit(id: $id)
170
37
  }
171
- `,
172
- variables: { id: this[_0x185e33(0xcd)] }
173
- })
174
- )['errors']
175
- )
176
- return
177
- let _0x2abe55 = this[_0x185e33(0xb9)]['value'],
178
- _0x558860 = [{ id: this[_0x185e33(0xcd)], template: _0x2abe55, cuFlag: 'M' }]
179
- ;(await MetaApi[_0x185e33(0xb6)]('updateMultipleMenu', _0x558860)) && history['back']()
180
- }
181
- }
182
- customElements['define'](a0_0x573980(0xc4), DynamicMenuTemplate)
38
+ `,'variables':{'id':this[_0x16c05e(0x1bc)]}}))[_0x16c05e(0x1dc)])return;let _0x326ccd=this[_0x16c05e(0x1cf)][_0x16c05e(0x1dd)],_0x2ec5c8=[{'id':this[_0x16c05e(0x1bc)],'template':_0x326ccd,'cuFlag':'M'}];await MetaApi[_0x16c05e(0x1c3)](_0x16c05e(0x1c7),_0x2ec5c8)&&history[_0x16c05e(0x1d8)]();}}customElements[a0_0x5c43cd(0x1d6)](a0_0x5c43cd(0x1e2),DynamicMenuTemplate);