@things-factory/meta-ui 6.1.51 → 6.1.53

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 (95) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  3. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/menu/export-menu-popup.js +7 -7
  36. package/client/pages/meta-form-element.js +1 -1
  37. package/client/pages/meta-grist-element.js +1 -1
  38. package/client/pages/meta-grist-page.js +1 -1
  39. package/client/pages/meta-grist-tab-element.js +1 -1
  40. package/client/pages/meta-grist-tab-page.js +1 -1
  41. package/client/pages/meta-main-tab-element.js +1 -1
  42. package/client/pages/meta-main-tab-page.js +1 -1
  43. package/client/pages/meta-master-detail-element.js +1 -1
  44. package/client/pages/meta-master-detail-page.js +1 -1
  45. package/client/pages/meta-tab-detail-element.js +1 -1
  46. package/client/pages/meta-tab-detail-page.js +1 -1
  47. package/client/pages/meta-tab-element.js +1 -1
  48. package/client/pages/personalize/personal-column-selector.js +11 -11
  49. package/client/pages/terms/config-terminology.js +6 -6
  50. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  51. package/client/pages/work-code/work-code-page.js +1 -1
  52. package/client/reducers/main.js +1 -1
  53. package/client/utils/grist-default-value.js +1 -1
  54. package/client/utils/meta-api.js +1 -1
  55. package/client/utils/meta-crypto.js +1 -1
  56. package/client/utils/meta-ui-util.js +103 -103
  57. package/client/utils/service-util.js +13 -13
  58. package/client/utils/terms-util.js +2 -2
  59. package/client/utils/ui-util.js +1 -1
  60. package/client/utils/value-util.js +1 -1
  61. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  62. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  63. package/client/viewparts/dynamic-menu-part.js +12 -12
  64. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  65. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  66. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  67. package/package.json +2 -2
  68. package/server/activity/CommonActivity.js +2 -2
  69. package/server/constants/error-code.js +1 -1
  70. package/server/errors/license-error.js +1 -1
  71. package/server/routes.js +1 -1
  72. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  73. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  74. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  76. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  77. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  78. package/server/service/grid-personalize/grid-personalize.js +1 -1
  79. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  80. package/server/service/meta-activity/meta-activity-query.js +1 -1
  81. package/server/service/meta-activity/meta-activity-type.js +1 -1
  82. package/server/service/meta-secret/meta-resolver.js +1 -1
  83. package/server/service/set-translations/set-translation-resolver.js +1 -1
  84. package/server/service/work-code/work-code-mutation.js +1 -1
  85. package/server/service/work-code/work-code-query.js +1 -1
  86. package/server/service/work-code/work-code-type.js +1 -1
  87. package/server/service/work-code/work-code.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  89. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  90. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  91. package/server/service/work-code-detail/work-code-detail.js +1 -1
  92. package/translations/en.json +1 -0
  93. package/translations/ko.json +1 -0
  94. package/translations/ms.json +1 -0
  95. package/translations/zh.json +1 -0
@@ -1,4 +1,4 @@
1
- function a0_0x5c8d(_0x3fd69c,_0x40c130){const _0x4c689=a0_0x4c68();return a0_0x5c8d=function(_0x5c8d8d,_0x2fde06){_0x5c8d8d=_0x5c8d8d-0x11c;let _0x42e870=_0x4c689[_0x5c8d8d];return _0x42e870;},a0_0x5c8d(_0x3fd69c,_0x40c130);}const a0_0x3ea86d=a0_0x5c8d;(function(_0x30de8c,_0x1d62e6){const _0x36abca=a0_0x5c8d,_0x2bcdc8=_0x30de8c();while(!![]){try{const _0x374252=-parseInt(_0x36abca(0x170))/0x1+-parseInt(_0x36abca(0x142))/0x2+parseInt(_0x36abca(0x160))/0x3+parseInt(_0x36abca(0x13f))/0x4+-parseInt(_0x36abca(0x143))/0x5*(parseInt(_0x36abca(0x13b))/0x6)+parseInt(_0x36abca(0x155))/0x7+-parseInt(_0x36abca(0x146))/0x8*(-parseInt(_0x36abca(0x154))/0x9);if(_0x374252===_0x1d62e6)break;else _0x2bcdc8['push'](_0x2bcdc8['shift']());}catch(_0x580297){_0x2bcdc8['push'](_0x2bcdc8['shift']());}}}(a0_0x4c68,0x5a6d5));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';function a0_0x4c68(){const _0x329204=['5BLxkYZ','getGristColumnConfig2','scenario','32xNubet','entity','select-row-toggle','getGristPagination100Config','info','select','columns','getGristMetaObjectOptions','isArray','includes','dispField','meta-','shadowRoot','searchByPagination','645363knALkC','2254196yWJiBW','menu_template','define','string','filterFields','filter','GRID','render','connectedCallback','getParams','styles','1938282DIDKaf','args','search','meta-code-selector','filters','search_hidden_fields','menu','codeField','forEach','type','basicArgs','align','getSelectColumns','querySelector','query','handlers','736628vQRLgc','empty','confirmCallback','tButton','clickSelect','push','values','left','gql','record','options','appendable','getGristGuttersConfig','sorters','firstUpdated','meta-object-selector','meta-object-selector-popup','length','bind','queryName','startsWith','clickEmpty','getGristSelectableConfig','gridConfig','selectRecord','grist','resource-code-selector','showToast','fetchHandler','getCodeByEntity','nameField','NOTHING_SELECTED','name','669882vZICua','LIST','clickCancel','#ox-grist','1304860WNvSCD','hidden','object','725002YjmHGJ'];a0_0x4c68=function(){return _0x329204;};return a0_0x4c68();}import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x3ea86d(0x15f)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x146466=a0_0x4ae6;function a0_0x13f4(){const _0x4c4b77=['basicArgs','code','align','28amnTje','1018356AAyPxK','hidden','handlers','args','query','clickSelect','clickEmpty','98uUyNyB','gridConfig','getGristColumnConfig2','left','nameField','searchByPagination','meta-object-selector','18783euNNam','NOTHING_SELECTED','getGristMetaObjectOptions','LIST','keys','getCodeByEntity','dispField','includes','push','forEach','type','tButton','rows','meta-object-selector-popup','128425gInreb','search','getGristSelectableConfig','resource-code-selector','name','select','length','filter','connectedCallback','fetchHandler','getCodeByScenario','2442995KJLtSs','sorters','meta-','grist','record','appendable','shadowRoot','values','#ox-grist','styles','59796RucmiH','704wibFwa','bind','search_hidden_fields','scenario','options','startsWith','object','confirmCallback','querySelector','cancel','menu_template','codeField','getGristPagination100Config','clickCancel','select-row-toggle','21601692hrMbqp','info','menu','columns','190FOHeWD','meta-code-selector','define','firstUpdated','filters','string','4hMgNRq','getCodeSelectorData','698197YCZyyk','isArray','empty','codes','filterFields','selectRecord','resource-object'];a0_0x13f4=function(){return _0x4c4b77;};return a0_0x13f4();}(function(_0x429b27,_0xa61a10){const _0x12c9d3=a0_0x4ae6,_0x2d7a0b=_0x429b27();while(!![]){try{const _0x56f7cf=parseInt(_0x12c9d3(0x180))/0x1+parseInt(_0x12c9d3(0x192))/0x2*(parseInt(_0x12c9d3(0x199))/0x3)+parseInt(_0x12c9d3(0x17e))/0x4*(parseInt(_0x12c9d3(0x1b2))/0x5)+parseInt(_0x12c9d3(0x18b))/0x6*(parseInt(_0x12c9d3(0x18a))/0x7)+parseInt(_0x12c9d3(0x165))/0x8*(parseInt(_0x12c9d3(0x164))/0x9)+parseInt(_0x12c9d3(0x178))/0xa*(-parseInt(_0x12c9d3(0x1a7))/0xb)+-parseInt(_0x12c9d3(0x174))/0xc;if(_0x56f7cf===_0xa61a10)break;else _0x2d7a0b['push'](_0x2d7a0b['shift']());}catch(_0x436f09){_0x2d7a0b['push'](_0x2d7a0b['shift']());}}}(a0_0x13f4,0xb37db));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';function a0_0x4ae6(_0x36b845,_0x4d5eb9){const _0x13f41d=a0_0x13f4();return a0_0x4ae6=function(_0x4ae6b7,_0x1a36b6){_0x4ae6b7=_0x4ae6b7-0x15e;let _0x537b1e=_0x13f41d[_0x4ae6b7];return _0x537b1e;},a0_0x4ae6(_0x36b845,_0x4d5eb9);}import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x146466(0x163)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ function a0_0x5c8d(_0x3fd69c,_0x40c130){const _0x4c689=a0_0x4c68();return a0_0x5
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x3ea86d(0x15d)](){const _0x2cf9ef=a0_0x3ea86d;this[_0x2cf9ef(0x165)]=this[_0x2cf9ef(0x124)][_0x2cf9ef(0x164)]?this['options'][_0x2cf9ef(0x164)]:this[_0x2cf9ef(0x16a)]&&this[_0x2cf9ef(0x16a)][_0x2cf9ef(0x164)]?this[_0x2cf9ef(0x16a)]['filters']:[];let _0x80137b=this['options'][_0x2cf9ef(0x127)]?this[_0x2cf9ef(0x124)][_0x2cf9ef(0x127)]:this['basicArgs']&&this['basicArgs'][_0x2cf9ef(0x127)]?this['basicArgs'][_0x2cf9ef(0x127)]:[],_0x264951=this['options'][_0x2cf9ef(0x159)]?this[_0x2cf9ef(0x124)]['filterFields']:this[_0x2cf9ef(0x124)][_0x2cf9ef(0x156)]?.[_0x2cf9ef(0x162)]&&this[_0x2cf9ef(0x124)][_0x2cf9ef(0x156)]?.[_0x2cf9ef(0x162)][_0x2cf9ef(0x12b)]>0x0?this[_0x2cf9ef(0x124)]['menu_template'][_0x2cf9ef(0x162)]:[],_0x968531=this[_0x2cf9ef(0x124)][_0x2cf9ef(0x14b)];if(!_0x264951||0x0==_0x264951[_0x2cf9ef(0x12b)]){let _0xf07bb5;this['options'][_0x2cf9ef(0x167)]&&(_0xf07bb5=this[_0x2cf9ef(0x124)][_0x2cf9ef(0x167)]),this[_0x2cf9ef(0x124)][_0x2cf9ef(0x138)]&&(_0xf07bb5=this[_0x2cf9ef(0x124)][_0x2cf9ef(0x138)]),_0xf07bb5&&_0x264951['push']({'name':_0xf07bb5,'operator':'eq'});}let _0x5dc355=[...MetaApi[_0x2cf9ef(0x126)](!0x0,!0x1)];if(_0x968531&&_0x968531[_0x2cf9ef(0x12b)]>0x0)for(let _0x77ff6b=0x0;_0x77ff6b<_0x968531['length'];_0x77ff6b++){let {type:_0x5ccaab=_0x2cf9ef(0x158),name:_0x48bbed,hidden:_0xeab1ad=!0x1,record:_0x5b062a={'align':_0x2cf9ef(0x121)},header:_0x2a350e,sortable:_0x56022f=!0x1,width:_0x1959f2=0x87,options:_0x154f36,select_opt:_0x51361c,object_opt:_0x1787f3}=_0x968531[_0x77ff6b];if(_0x51361c&&(_0x154f36=_0x51361c),_0x1787f3&&(_0x154f36=_0x1787f3),['resource-object',_0x2cf9ef(0x141)][_0x2cf9ef(0x14f)](_0x5ccaab)?_0x5ccaab=_0x2cf9ef(0x129):[_0x2cf9ef(0x134)][_0x2cf9ef(0x14f)](_0x5ccaab)&&(_0x5ccaab=_0x2cf9ef(0x163)),'id'==_0x48bbed)_0x5dc355[_0x2cf9ef(0x11f)]({'type':_0x2cf9ef(0x158),'name':_0x48bbed,'hidden':!0x0});else{let _0x49b81d=MetaApi[_0x2cf9ef(0x144)](_0x5ccaab,_0x48bbed,_0x2a350e||_0x48bbed,_0x5b062a[_0x2cf9ef(0x16b)]?_0x5b062a['align']:_0x2cf9ef(0x121),!0x1,_0x56022f,_0x1959f2);_0x5ccaab[_0x2cf9ef(0x12e)](_0x2cf9ef(0x151))&&_0x1787f3&&_0x1787f3[_0x2cf9ef(0x166)]&&(_0x154f36=await MetaUiUtil[_0x2cf9ef(0x14d)](_0x5ccaab,_0x154f36)),'select'===_0x5ccaab?Array[_0x2cf9ef(0x14e)](_0x154f36)?_0x49b81d[_0x2cf9ef(0x123)][_0x2cf9ef(0x124)]=_0x154f36:'code'===_0x154f36['type']?_0x49b81d[_0x2cf9ef(0x123)]['options']=await ServiceUtil['getCodeSelectorData'](_0x154f36[_0x2cf9ef(0x120)]?_0x154f36['values']:_0x154f36[_0x2cf9ef(0x13a)]):_0x2cf9ef(0x145)===_0x154f36['type']?_0x49b81d[_0x2cf9ef(0x123)]['options']=await ServiceUtil['getCodeByScenario'](_0x154f36[_0x2cf9ef(0x13a)],_0x154f36[_0x2cf9ef(0x161)]):_0x2cf9ef(0x147)===_0x154f36[_0x2cf9ef(0x169)]&&(_0x49b81d['record'][_0x2cf9ef(0x124)]=await ServiceUtil[_0x2cf9ef(0x137)](_0x154f36[_0x2cf9ef(0x161)])):_0x2cf9ef(0x129)===_0x5ccaab?_0x49b81d[_0x2cf9ef(0x123)][_0x2cf9ef(0x124)]={..._0x154f36}:'meta-code-selector'==_0x5ccaab&&(_0x154f36['dispField']&&(_0x154f36['codes']=await ServiceUtil[_0x2cf9ef(0x137)](_0x154f36)),_0x49b81d[_0x2cf9ef(0x123)][_0x2cf9ef(0x124)]={..._0x154f36}),_0x49b81d[_0x2cf9ef(0x140)]=_0xeab1ad,_0x5dc355[_0x2cf9ef(0x11f)](_0x49b81d);}}else _0x5dc355[_0x2cf9ef(0x11f)](MetaApi['getGristColumnConfig2'](_0x2cf9ef(0x158),this[_0x2cf9ef(0x124)][_0x2cf9ef(0x167)],this[_0x2cf9ef(0x124)][_0x2cf9ef(0x167)],_0x2cf9ef(0x121),!0x1,!0x0,0xb4)),this['options'][_0x2cf9ef(0x150)]&&_0x5dc355['push'](MetaApi[_0x2cf9ef(0x144)](_0x2cf9ef(0x158),this[_0x2cf9ef(0x124)]['dispField'],this[_0x2cf9ef(0x124)][_0x2cf9ef(0x150)],_0x2cf9ef(0x121),!0x1,!0x0,0x12c));_0x5dc355[_0x2cf9ef(0x168)](_0xed6cef=>{const _0x3ceb91=_0x2cf9ef;let _0x525e88=_0x264951['filter'](_0x616572=>'string'==typeof _0x616572?_0xed6cef[_0x3ceb91(0x13a)]==_0x616572:_0xed6cef['name']==_0x616572[_0x3ceb91(0x13a)]);_0x525e88&&_0x525e88[_0x3ceb91(0x12b)]>0x0&&(_0xed6cef[_0x3ceb91(0x15a)]=_0x3ceb91(0x158)==typeof _0x525e88[0x0]?_0x3ceb91(0x162):_0x525e88[0x0]);});let _0x4013e4={'rows':MetaApi[_0x2cf9ef(0x130)](!0x1),'pagination':MetaApi[_0x2cf9ef(0x149)](),'columns':_0x5dc355,'sorters':[..._0x80137b]};_0x4013e4['rows'][_0x2cf9ef(0x16f)]={'click':_0x2cf9ef(0x148),'dblclick':(_0x540276,_0x219c4e,_0x2d8e9d,_0xbc581f,_0x557843,_0x3e3c39)=>{const _0x37c07e=_0x2cf9ef;this[_0x37c07e(0x132)](_0xbc581f);}},_0x4013e4['rows'][_0x2cf9ef(0x125)]=!0x1,this[_0x2cf9ef(0x131)]=_0x4013e4,await super[_0x2cf9ef(0x15d)]();}async[a0_0x3ea86d(0x128)](){const _0x234ac9=a0_0x3ea86d;await super[_0x234ac9(0x128)]();}[a0_0x3ea86d(0x15c)](){const _0x26b6f1=a0_0x3ea86d;return html`
21
- <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?_0x26b6f1(0x13c):_0x26b6f1(0x15b)} auto-fetch
22
- .fetchHandler=${this[_0x26b6f1(0x136)][_0x26b6f1(0x12c)](this)}>
20
+ `];async[a0_0x146466(0x1af)](){const _0x3a347c=a0_0x146466;this[_0x3a347c(0x167)]=this[_0x3a347c(0x169)][_0x3a347c(0x17c)]?this[_0x3a347c(0x169)][_0x3a347c(0x17c)]:this[_0x3a347c(0x187)]&&this[_0x3a347c(0x187)][_0x3a347c(0x17c)]?this[_0x3a347c(0x187)][_0x3a347c(0x17c)]:[];let _0x22e917=this[_0x3a347c(0x169)][_0x3a347c(0x1b3)]?this[_0x3a347c(0x169)][_0x3a347c(0x1b3)]:this[_0x3a347c(0x187)]&&this['basicArgs'][_0x3a347c(0x1b3)]?this[_0x3a347c(0x187)]['sorters']:[],_0x1eef14=this[_0x3a347c(0x169)][_0x3a347c(0x184)]?this[_0x3a347c(0x169)][_0x3a347c(0x184)]:this[_0x3a347c(0x169)]['menu_template']?.[_0x3a347c(0x1a8)]&&this[_0x3a347c(0x169)][_0x3a347c(0x16f)]?.[_0x3a347c(0x1a8)][_0x3a347c(0x1ad)]>0x0?this[_0x3a347c(0x169)]['menu_template'][_0x3a347c(0x1a8)]:[],_0x3dac48=this[_0x3a347c(0x169)][_0x3a347c(0x1ac)];if(!_0x1eef14||0x0==_0x1eef14[_0x3a347c(0x1ad)]){let _0x4fab25;this[_0x3a347c(0x169)][_0x3a347c(0x170)]&&(_0x4fab25=this[_0x3a347c(0x169)][_0x3a347c(0x170)]),this[_0x3a347c(0x169)][_0x3a347c(0x196)]&&(_0x4fab25=this[_0x3a347c(0x169)][_0x3a347c(0x196)]),_0x4fab25&&_0x1eef14[_0x3a347c(0x1a1)]({'name':_0x4fab25,'operator':'eq'});}let _0x105c6a=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x3dac48&&_0x3dac48[_0x3a347c(0x1ad)]>0x0)for(let _0x407fd2=0x0;_0x407fd2<_0x3dac48['length'];_0x407fd2++){let {type:_0x3e045b='string',name:_0x444fc5,hidden:_0x85afee=!0x1,record:_0x577f09={'align':'left'},header:_0x47b066,sortable:_0x34fd28=!0x1,width:_0x322e22=0x87,options:_0x30b0cd,select_opt:_0x3e1664,object_opt:_0x1f46be}=_0x3dac48[_0x407fd2];if(_0x3e1664&&(_0x30b0cd=_0x3e1664),_0x1f46be&&(_0x30b0cd=_0x1f46be),[_0x3a347c(0x186),_0x3a347c(0x16b)]['includes'](_0x3e045b)?_0x3e045b=_0x3a347c(0x198):[_0x3a347c(0x1aa)][_0x3a347c(0x1a0)](_0x3e045b)&&(_0x3e045b=_0x3a347c(0x179)),'id'==_0x444fc5)_0x105c6a[_0x3a347c(0x1a1)]({'type':_0x3a347c(0x17d),'name':_0x444fc5,'hidden':!0x0});else{let _0x2ef09b=MetaApi['getGristColumnConfig2'](_0x3e045b,_0x444fc5,_0x47b066||_0x444fc5,_0x577f09['align']?_0x577f09[_0x3a347c(0x189)]:'left',!0x1,_0x34fd28,_0x322e22);_0x3e045b[_0x3a347c(0x16a)](_0x3a347c(0x1b4))&&_0x1f46be&&_0x1f46be[_0x3a347c(0x176)]&&(_0x30b0cd=await MetaUiUtil[_0x3a347c(0x19b)](_0x3e045b,_0x30b0cd)),_0x3a347c(0x1ac)===_0x3e045b?Array[_0x3a347c(0x181)](_0x30b0cd)?_0x2ef09b[_0x3a347c(0x15e)]['options']=_0x30b0cd:_0x3a347c(0x188)===_0x30b0cd[_0x3a347c(0x1a3)]?_0x2ef09b[_0x3a347c(0x15e)][_0x3a347c(0x169)]=await ServiceUtil[_0x3a347c(0x17f)](_0x30b0cd[_0x3a347c(0x161)]?_0x30b0cd[_0x3a347c(0x161)]:_0x30b0cd[_0x3a347c(0x1ab)]):_0x3a347c(0x168)===_0x30b0cd[_0x3a347c(0x1a3)]?_0x2ef09b['record']['options']=await ServiceUtil[_0x3a347c(0x1b1)](_0x30b0cd[_0x3a347c(0x1ab)],_0x30b0cd[_0x3a347c(0x18e)]):'entity'===_0x30b0cd['type']&&(_0x2ef09b['record']['options']=await ServiceUtil['getCodeByEntity'](_0x30b0cd['args'])):_0x3a347c(0x198)===_0x3e045b?_0x2ef09b[_0x3a347c(0x15e)][_0x3a347c(0x169)]={..._0x30b0cd}:_0x3a347c(0x179)==_0x3e045b&&(_0x30b0cd[_0x3a347c(0x19f)]&&(_0x30b0cd[_0x3a347c(0x183)]=await ServiceUtil[_0x3a347c(0x19e)](_0x30b0cd)),_0x2ef09b[_0x3a347c(0x15e)][_0x3a347c(0x169)]={..._0x30b0cd}),_0x2ef09b[_0x3a347c(0x18c)]=_0x85afee,_0x105c6a[_0x3a347c(0x1a1)](_0x2ef09b);}}else _0x105c6a['push'](MetaApi['getGristColumnConfig2'](_0x3a347c(0x17d),this[_0x3a347c(0x169)][_0x3a347c(0x170)],this[_0x3a347c(0x169)]['codeField'],_0x3a347c(0x195),!0x1,!0x0,0xb4)),this['options'][_0x3a347c(0x19f)]&&_0x105c6a[_0x3a347c(0x1a1)](MetaApi[_0x3a347c(0x194)](_0x3a347c(0x17d),this['options'][_0x3a347c(0x19f)],this[_0x3a347c(0x169)]['dispField'],'left',!0x1,!0x0,0x12c));_0x105c6a[_0x3a347c(0x1a2)](_0x485add=>{const _0x4dd026=_0x3a347c;let _0x2a9c3d=_0x1eef14[_0x4dd026(0x1ae)](_0x524414=>_0x4dd026(0x17d)==typeof _0x524414?_0x485add[_0x4dd026(0x1ab)]==_0x524414:_0x485add['name']==_0x524414[_0x4dd026(0x1ab)]);_0x2a9c3d&&_0x2a9c3d[_0x4dd026(0x1ad)]>0x0&&(_0x485add[_0x4dd026(0x1ae)]='string'==typeof _0x2a9c3d[0x0]?'search':_0x2a9c3d[0x0]);});let _0x1b860a={'rows':MetaApi[_0x3a347c(0x1a9)](!0x1),'pagination':MetaApi[_0x3a347c(0x171)](),'columns':_0x105c6a,'sorters':[..._0x22e917]};_0x1b860a[_0x3a347c(0x1a5)][_0x3a347c(0x18d)]={'click':_0x3a347c(0x173),'dblclick':(_0x383db1,_0x54617c,_0x448df3,_0x890e37,_0x3d0346,_0x53b0b6)=>{const _0x5233ba=_0x3a347c;this[_0x5233ba(0x185)](_0x890e37);}},_0x1b860a[_0x3a347c(0x1a5)][_0x3a347c(0x15f)]=!0x1,this['gridConfig']=_0x1b860a,await super[_0x3a347c(0x1af)]();}async[a0_0x146466(0x17b)](){const _0xde1d3a=a0_0x146466;await super[_0xde1d3a(0x17b)]();}['render'](){const _0x3bea87=a0_0x146466;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x3bea87(0x193)]} .mode=${isMobileDevice()?_0x3bea87(0x19c):'GRID'} auto-fetch
22
+ .fetchHandler=${this[_0x3bea87(0x1b0)]['bind'](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ function a0_0x5c8d(_0x3fd69c,_0x40c130){const _0x4c689=a0_0x4c68();return a0_0x5
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x26b6f1(0x11d)](_0x26b6f1(0x171))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x26b6f1(0x12f)][_0x26b6f1(0x12c)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x3bea87(0x1a4)](_0x3bea87(0x182))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this['clickEmpty'][_0x3bea87(0x166)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x26b6f1(0x11d)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x26b6f1(0x13d)][_0x26b6f1(0x12c)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x3bea87(0x1a4)](_0x3bea87(0x16e))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x3bea87(0x172)][_0x3bea87(0x166)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x26b6f1(0x11d)](_0x26b6f1(0x14b))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this['clickSelect'][_0x26b6f1(0x12c)](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x3bea87(0x1a4)](_0x3bea87(0x1ac))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x3bea87(0x190)][_0x3bea87(0x166)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x3ea86d(0x133)](){const _0xb9abd8=a0_0x3ea86d;return this[_0xb9abd8(0x152)][_0xb9abd8(0x16d)](_0xb9abd8(0x13e));}async[a0_0x3ea86d(0x136)]({page:_0x264c9c=0x0,limit:_0x509797=0x0,sorters:_0x1d7daa=[],filters:_0x5eb8a1=[]}){const _0x49567d=a0_0x3ea86d;let _0x244037=[...this[_0x49567d(0x165)]];_0x5eb8a1[_0x49567d(0x168)](_0x2db4a3=>{const _0x3f5c42=_0x49567d;let _0x58b326=_0x244037['filter'](_0x470408=>_0x2db4a3[_0x3f5c42(0x13a)]==_0x470408['name']);_0x58b326&&_0x58b326[_0x3f5c42(0x12b)]>0x0&&delete _0x244037[_0x2db4a3['name']],_0x244037['push'](_0x2db4a3);});let _0x23e728=ValueUtil[_0x49567d(0x15e)](this[_0x49567d(0x124)][_0x49567d(0x156)]&&this[_0x49567d(0x124)][_0x49567d(0x156)][_0x49567d(0x122)]||{},_0x49567d(0x16e),'after_set_fields'),_0x4efed6=Object['keys'](_0x23e728||{}),_0x2cc08d=MetaApi[_0x49567d(0x16c)](this[_0x49567d(0x131)][_0x49567d(0x14c)][_0x49567d(0x15a)](_0x4febea=>!_0x4efed6[_0x49567d(0x14f)](_0x4febea[_0x49567d(0x13a)])));return await MetaApi[_0x49567d(0x153)](this[_0x49567d(0x124)][_0x49567d(0x12d)],_0x244037,_0x1d7daa,_0x264c9c,_0x509797,_0x2cc08d);}async[a0_0x3ea86d(0x12f)](_0x3375d3){const _0x19dcdf=a0_0x3ea86d;this[_0x19dcdf(0x11c)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x3ea86d(0x13d)](_0x38db4a){closePopup(this);}async[a0_0x3ea86d(0x11e)](_0x37df07){const _0x27ff07=a0_0x3ea86d;let _0x4fa09a=this['grist']['selected'];_0x4fa09a&&0x0!=_0x4fa09a['length']?this[_0x27ff07(0x132)](_0x4fa09a[0x0]):MetaApi[_0x27ff07(0x135)](_0x27ff07(0x14a),TermsUtil['tText'](_0x27ff07(0x139)));}async[a0_0x3ea86d(0x132)](_0x1158ca){const _0x316412=a0_0x3ea86d;this[_0x316412(0x11c)]&&this[_0x316412(0x11c)](_0x1158ca),closePopup(this);}}customElements[a0_0x3ea86d(0x157)](a0_0x3ea86d(0x12a),MetaObjectSelectorPopup);
40
+ `;}get[a0_0x146466(0x1b5)](){const _0x4234f2=a0_0x146466;return this[_0x4234f2(0x160)][_0x4234f2(0x16d)](_0x4234f2(0x162));}async[a0_0x146466(0x1b0)]({page:_0xc768bf=0x0,limit:_0x2062d9=0x0,sorters:_0x391fb2=[],filters:_0x4cf204=[]}){const _0x4f5202=a0_0x146466;let _0xaa2eb7=[...this[_0x4f5202(0x167)]];_0x4cf204[_0x4f5202(0x1a2)](_0x75792=>{const _0xfba60f=_0x4f5202;let _0x2cee07=_0xaa2eb7[_0xfba60f(0x1ae)](_0x521985=>_0x75792[_0xfba60f(0x1ab)]==_0x521985[_0xfba60f(0x1ab)]);_0x2cee07&&_0x2cee07[_0xfba60f(0x1ad)]>0x0&&delete _0xaa2eb7[_0x75792[_0xfba60f(0x1ab)]],_0xaa2eb7['push'](_0x75792);});let _0x21b998=ValueUtil['getParams'](this[_0x4f5202(0x169)][_0x4f5202(0x16f)]&&this[_0x4f5202(0x169)][_0x4f5202(0x16f)]['gql']||{},_0x4f5202(0x18f),'after_set_fields'),_0x5518df=Object[_0x4f5202(0x19d)](_0x21b998||{}),_0x2b609c=MetaApi['getSelectColumns'](this['gridConfig'][_0x4f5202(0x177)][_0x4f5202(0x1ae)](_0x1a8069=>!_0x5518df[_0x4f5202(0x1a0)](_0x1a8069['name'])));return await MetaApi[_0x4f5202(0x197)](this[_0x4f5202(0x169)]['queryName'],_0xaa2eb7,_0x391fb2,_0xc768bf,_0x2062d9,_0x2b609c);}async[a0_0x146466(0x191)](_0x4edf8a){const _0xf37130=a0_0x146466;this[_0xf37130(0x16c)]&&this[_0xf37130(0x16c)](null),closePopup(this);}async[a0_0x146466(0x172)](_0x4299c2){closePopup(this);}async[a0_0x146466(0x190)](_0x40ce8a){const _0x4b9308=a0_0x146466;let _0x280ce5=this[_0x4b9308(0x1b5)]['selected'];_0x280ce5&&0x0!=_0x280ce5['length']?this[_0x4b9308(0x185)](_0x280ce5[0x0]):MetaApi['showToast'](_0x4b9308(0x175),TermsUtil['tText'](_0x4b9308(0x19a)));}async[a0_0x146466(0x185)](_0x3337cd){const _0x31f2f3=a0_0x146466;this[_0x31f2f3(0x16c)]&&this['confirmCallback'](_0x3337cd),closePopup(this);}}customElements[a0_0x146466(0x17a)](a0_0x146466(0x1a6),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x4a6e93=a0_0x2747;(function(_0x2b9e5f,_0x1f813f){const _0x582fa6=a0_0x2747,_0x24665c=_0x2b9e5f();while(!![]){try{const _0xf64628=-parseInt(_0x582fa6(0x174))/0x1+parseInt(_0x582fa6(0x180))/0x2+-parseInt(_0x582fa6(0x176))/0x3+-parseInt(_0x582fa6(0x17a))/0x4*(-parseInt(_0x582fa6(0x162))/0x5)+-parseInt(_0x582fa6(0x156))/0x6*(parseInt(_0x582fa6(0x153))/0x7)+-parseInt(_0x582fa6(0x170))/0x8+-parseInt(_0x582fa6(0x15e))/0x9*(-parseInt(_0x582fa6(0x16b))/0xa);if(_0xf64628===_0x1f813f)break;else _0x24665c['push'](_0x24665c['shift']());}catch(_0x40d2c0){_0x24665c['push'](_0x24665c['shift']());}}}(a0_0x5101,0x426e8));function a0_0x5101(){const _0x586ddd=['fetch','detail','lifecycle','data-changed','callScenario','parseBasicTabConfigs','isDetail','parseBasicGridConfigs','openDynamicPopup','getParams','dispatchEvent','isEmpty','meta-form-','executeCallScenarioButtonClick','1645nLhrZC','result','body','9828guFiod','runScenario','split','setParentId','fetchHandler','parseBasicServiceConfigs','field-change','after','10809LajYFZ','name','addEventListener','isPage','5IxfNPK','excuteOpenPopupButtonClick','forEach','grist','tagName','filterForm','parseBasicFormConfigs','tTitle','isNotEmpty','3530tBXNeO','getMenuMeta','active','parent_id','parseBasicButtonConfigs','1428720IlFAqW','title_detail','etcConfig','params','251206TfBddr','connectedCallback','603963WQSbLZ','is_detail','menuInfo','data','2067808qCJUcv','is_popup','dataChangeEventHandler','errors','isPopup','etc','694492hICKDo','isElement'];a0_0x5101=function(){return _0x586ddd;};return a0_0x5101();}function a0_0x2747(_0x35ca10,_0x4c0287){const _0x510157=a0_0x5101();return a0_0x2747=function(_0x2747f3,_0xdfbf23){_0x2747f3=_0x2747f3-0x151;let _0x8aeab5=_0x510157[_0x2747f3];return _0x8aeab5;},a0_0x2747(_0x35ca10,_0x4c0287);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x191b72=>class extends _0x191b72{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x382bc8=>Boolean(_0x382bc8)},'is_popup':{'type':Boolean,'converter':_0x1d9812=>Boolean(_0x1d9812)},'is_activity':{'type':Boolean,'converter':_0x239ddc=>Boolean(_0x239ddc)},'is_readonly':{'type':Boolean,'converter':_0x23dd01=>Boolean(_0x23dd01)}};}get[a0_0x4a6e93(0x181)](){const _0x3b4980=a0_0x4a6e93;return!0x0===this[_0x3b4980(0x177)]||!0x0===this[_0x3b4980(0x17b)];}get[a0_0x4a6e93(0x188)](){const _0x2e5b71=a0_0x4a6e93;return!ValueUtil[_0x2e5b71(0x18d)](this[_0x2e5b71(0x177)])&&this[_0x2e5b71(0x177)];}async[a0_0x4a6e93(0x17c)](_0x27ca86){const _0x10ade7=a0_0x4a6e93;let {after:_0x5781b0,before:_0x294f96,column:_0x3f847f,record:_0x395d3a,row:_0x4a775d}=_0x27ca86[_0x10ade7(0x183)],_0x14199c=_0x3f847f[_0x10ade7(0x15f)];if(Object['keys'](this['fieldChangeHandlers']||{})['includes'](_0x14199c)){let _0x47acb0,_0x51336d=(await MetaApi[_0x10ade7(0x186)](void 0x0,this['fieldChangeHandlers'][_0x14199c],{'columnName':_0x14199c,'column':_0x3f847f,'record':_0x395d3a,'after':_0x5781b0,'before':_0x294f96,'row':_0x4a775d,'parentId':this[_0x10ade7(0x16e)]?this[_0x10ade7(0x16e)]:''},!0x1))[_0x10ade7(0x179)][_0x10ade7(0x157)]['data'][_0x10ade7(0x154)];if(!_0x51336d)return;_0x47acb0=this[_0x10ade7(0x165)]?this[_0x10ade7(0x165)][_0x10ade7(0x165)][_0x10ade7(0x155)]:this,Object['keys'](_0x51336d)[_0x10ade7(0x164)](_0x408616=>{const _0x3a00c2=_0x10ade7;_0x47acb0['dispatchEvent'](new CustomEvent(_0x3a00c2(0x15c),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x395d3a,'row':_0x4a775d,'after':_0x51336d[_0x408616],'before':_0x395d3a[_0x408616],'column':{'name':_0x408616}}}));});}this[_0x10ade7(0x18c)](new CustomEvent(_0x10ade7(0x185),{'bubbles':!0x0,'composed':!0x0,'detail':_0x27ca86[_0x10ade7(0x183)]}));}async[a0_0x4a6e93(0x175)](){const _0x1c0633=a0_0x4a6e93;super[_0x1c0633(0x175)]&&await super['connectedCallback'](),this[_0x1c0633(0x166)]['toLowerCase']()['startsWith'](_0x1c0633(0x151))?this[_0x1c0633(0x160)]('form-field-change',async _0xa454b3=>{await this['dataChangeEventHandler'](_0xa454b3);}):this[_0x1c0633(0x160)](_0x1c0633(0x15c),async _0x439857=>{const _0xdba972=_0x1c0633;await this[_0xdba972(0x17c)](_0x439857);});}async['pageUpdated'](_0x37a6f6,_0x4d7171,_0x638f8f){const _0x17f8d9=a0_0x4a6e93;let _0x585cb8=this['lifecycle']?.[_0x17f8d9(0x173)]?this[_0x17f8d9(0x184)][_0x17f8d9(0x173)]:{};this[_0x17f8d9(0x161)]&&this['active']&&0x0==_0x638f8f[_0x17f8d9(0x16d)]&&ValueUtil[_0x17f8d9(0x16a)](_0x585cb8)&&this[_0x17f8d9(0x182)]();}get[a0_0x4a6e93(0x17e)](){const _0x470f08=a0_0x4a6e93;return!ValueUtil[_0x470f08(0x18d)](this['is_popup'])&&this[_0x470f08(0x17b)];}get[a0_0x4a6e93(0x161)](){const _0x57bd27=a0_0x4a6e93;return!this[_0x57bd27(0x177)]&&!this[_0x57bd27(0x17b)];}async['getAndParseMenuMeta'](){const _0xd63359=a0_0x4a6e93;let _0x2b414d=await MetaApi[_0xd63359(0x16c)](this);_0x2b414d&&(this[_0xd63359(0x178)]=_0x2b414d['menu'],this[_0xd63359(0x172)]=_0x2b414d[_0xd63359(0x17f)],this[_0xd63359(0x189)]&&this[_0xd63359(0x189)](_0x2b414d),this[_0xd63359(0x15b)]&&this[_0xd63359(0x15b)](_0x2b414d),this[_0xd63359(0x168)]&&this[_0xd63359(0x168)](_0x2b414d),this['parseBasicTabConfigs']&&this[_0xd63359(0x187)](_0x2b414d),this['parseBasicButtonConfigs']&&this[_0xd63359(0x16f)](_0x2b414d));}async['fetch'](){const _0x3f9ade=a0_0x4a6e93;ValueUtil[_0x3f9ade(0x16a)](this[_0x3f9ade(0x165)])?this['grist']['fetch']():(ValueUtil[_0x3f9ade(0x16a)](this[_0x3f9ade(0x167)])||this[_0x3f9ade(0x15a)])&&await this[_0x3f9ade(0x15a)]();}async[a0_0x4a6e93(0x163)](_0xf4d49c,_0x173691,_0x19fc65){const _0x2fb64f=a0_0x4a6e93;let _0x2b2842=TermsUtil[_0x2fb64f(0x169)](_0xf4d49c['title']);ValueUtil[_0x2fb64f(0x16a)](_0xf4d49c[_0x2fb64f(0x171)])&&(_0x2b2842=_0x2b2842+'-'+ValueUtil[_0x2fb64f(0x18b)](_0x173691,..._0xf4d49c[_0x2fb64f(0x171)][_0x2fb64f(0x158)]('.'))),MetaApi[_0x2fb64f(0x18a)](_0x2b2842,_0xf4d49c,_0x173691,_0x19fc65);}async[a0_0x4a6e93(0x152)](_0x398e59,_0x4ea9dd,_0x156d03){const _0x56eeb4=a0_0x4a6e93;let _0x19d68f=await MetaApi[_0x56eeb4(0x186)](_0x398e59[_0x56eeb4(0x15f)],_0x398e59[_0x56eeb4(0x15f)],_0x4ea9dd);!0x1!==_0x19d68f&&!_0x19d68f[_0x56eeb4(0x17d)]&&ValueUtil[_0x56eeb4(0x16a)](_0x398e59[_0x56eeb4(0x15d)])&&_0x156d03();}[a0_0x4a6e93(0x159)](_0x1579f2){const _0x22edd4=a0_0x4a6e93;this['parent_id']=_0x1579f2,this[_0x22edd4(0x182)]();}};
1
+ const a0_0x397d5b=a0_0x9758;(function(_0xd83d0b,_0x14c8c2){const _0x150152=a0_0x9758,_0x11fc54=_0xd83d0b();while(!![]){try{const _0x679883=-parseInt(_0x150152(0xc1))/0x1+-parseInt(_0x150152(0xa9))/0x2*(-parseInt(_0x150152(0xba))/0x3)+parseInt(_0x150152(0xe3))/0x4+parseInt(_0x150152(0xc0))/0x5*(parseInt(_0x150152(0xcb))/0x6)+-parseInt(_0x150152(0xb5))/0x7*(-parseInt(_0x150152(0xbd))/0x8)+parseInt(_0x150152(0xc8))/0x9+-parseInt(_0x150152(0xd5))/0xa*(parseInt(_0x150152(0xb4))/0xb);if(_0x679883===_0x14c8c2)break;else _0x11fc54['push'](_0x11fc54['shift']());}catch(_0x33238c){_0x11fc54['push'](_0x11fc54['shift']());}}}(a0_0x43cb,0x21096));function a0_0x43cb(){const _0x5aca53=['params','33890LftyVi','openDynamicPopup','parseBasicGridConfigs','etcConfig','data','body','callScenario','active','getParams','result','meta-form-','parseBasicServiceConfigs','is_popup','addEventListener','531264ZeUtKr','is_detail','name','properties','data-changed','fetch','21346UrreNR','parseBasicButtonConfigs','executeCallScenarioButtonClick','isNotEmpty','getMenuMeta','parseBasicTabConfigs','fetchHandler','getAndParseMenuMeta','after','dataChangeEventHandler','tTitle','1562cqSPmb','7aSvajN','includes','isPopup','parseBasicFormConfigs','isElement','33enjBWT','detail','isDetail','1036952TaLYei','grist','menu','63655BqkedD','35670GUKNFD','lifecycle','errors','pageUpdated','connectedCallback','dispatchEvent','title','274491blCeAW','toLowerCase','tagName','114WXnglp','excuteOpenPopupButtonClick','title_detail','filterForm','field-change','setParentId','isEmpty','parent_id','forEach'];a0_0x43cb=function(){return _0x5aca53;};return a0_0x43cb();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x9758(_0x255412,_0x569ee8){const _0x43cbd6=a0_0x43cb();return a0_0x9758=function(_0x9758c5,_0x512864){_0x9758c5=_0x9758c5-0xa6;let _0x2b9646=_0x43cbd6[_0x9758c5];return _0x2b9646;},a0_0x9758(_0x255412,_0x569ee8);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1802c9=>class extends _0x1802c9{static get[a0_0x397d5b(0xa6)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x24ed2f=>Boolean(_0x24ed2f)},'is_popup':{'type':Boolean,'converter':_0x1da207=>Boolean(_0x1da207)},'is_activity':{'type':Boolean,'converter':_0x445125=>Boolean(_0x445125)},'is_readonly':{'type':Boolean,'converter':_0x7b2fcc=>Boolean(_0x7b2fcc)}};}get[a0_0x397d5b(0xb9)](){const _0x573b39=a0_0x397d5b;return!0x0===this[_0x573b39(0xe4)]||!0x0===this[_0x573b39(0xe1)];}get[a0_0x397d5b(0xbc)](){const _0x37e17d=a0_0x397d5b;return!ValueUtil[_0x37e17d(0xd1)](this[_0x37e17d(0xe4)])&&this[_0x37e17d(0xe4)];}async[a0_0x397d5b(0xb2)](_0x36886e){const _0x4fc49e=a0_0x397d5b;let {after:_0x2c1d4d,before:_0xd34dbf,column:_0x52af1f,record:_0x138434,row:_0x55bf6a}=_0x36886e['detail'],_0x256dcf=_0x52af1f[_0x4fc49e(0xe5)];if(Object['keys'](this['fieldChangeHandlers']||{})[_0x4fc49e(0xb6)](_0x256dcf)){let _0x4defa8,_0x40e383=(await MetaApi['callScenario'](void 0x0,this['fieldChangeHandlers'][_0x256dcf],{'columnName':_0x256dcf,'column':_0x52af1f,'record':_0x138434,'after':_0x2c1d4d,'before':_0xd34dbf,'row':_0x55bf6a,'parentId':this[_0x4fc49e(0xd2)]?this[_0x4fc49e(0xd2)]:''},!0x1))[_0x4fc49e(0xd9)]['runScenario'][_0x4fc49e(0xd9)][_0x4fc49e(0xde)];if(!_0x40e383)return;_0x4defa8=this[_0x4fc49e(0xbe)]?this[_0x4fc49e(0xbe)][_0x4fc49e(0xbe)][_0x4fc49e(0xda)]:this,Object['keys'](_0x40e383)[_0x4fc49e(0xd3)](_0x18377a=>{const _0x4db912=_0x4fc49e;_0x4defa8[_0x4db912(0xc6)](new CustomEvent(_0x4db912(0xcf),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x138434,'row':_0x55bf6a,'after':_0x40e383[_0x18377a],'before':_0x138434[_0x18377a],'column':{'name':_0x18377a}}}));});}this['dispatchEvent'](new CustomEvent(_0x4fc49e(0xa7),{'bubbles':!0x0,'composed':!0x0,'detail':_0x36886e[_0x4fc49e(0xbb)]}));}async['connectedCallback'](){const _0x564cf0=a0_0x397d5b;super[_0x564cf0(0xc5)]&&await super[_0x564cf0(0xc5)](),this[_0x564cf0(0xca)][_0x564cf0(0xc9)]()['startsWith'](_0x564cf0(0xdf))?this['addEventListener']('form-field-change',async _0x3cfa18=>{const _0x492dbb=_0x564cf0;await this[_0x492dbb(0xb2)](_0x3cfa18);}):this[_0x564cf0(0xe2)]('field-change',async _0x265f62=>{const _0x49e52e=_0x564cf0;await this[_0x49e52e(0xb2)](_0x265f62);});}async[a0_0x397d5b(0xc4)](_0x1cb142,_0x212337,_0x5d5846){const _0x3d6a91=a0_0x397d5b;let _0x5e7e7c=this[_0x3d6a91(0xc2)]?.[_0x3d6a91(0xd4)]?this['lifecycle'][_0x3d6a91(0xd4)]:{};this['isPage']&&this[_0x3d6a91(0xdc)]&&0x0==_0x5d5846['active']&&ValueUtil['isNotEmpty'](_0x5e7e7c)&&this[_0x3d6a91(0xa8)]();}get[a0_0x397d5b(0xb7)](){const _0xcc49d8=a0_0x397d5b;return!ValueUtil[_0xcc49d8(0xd1)](this[_0xcc49d8(0xe1)])&&this['is_popup'];}get['isPage'](){const _0x4dde5c=a0_0x397d5b;return!this['is_detail']&&!this[_0x4dde5c(0xe1)];}async[a0_0x397d5b(0xb0)](){const _0x4855d6=a0_0x397d5b;let _0x525e54=await MetaApi[_0x4855d6(0xad)](this);_0x525e54&&(this['menuInfo']=_0x525e54[_0x4855d6(0xbf)],this[_0x4855d6(0xd8)]=_0x525e54['etc'],this['parseBasicGridConfigs']&&this[_0x4855d6(0xd7)](_0x525e54),this[_0x4855d6(0xe0)]&&this['parseBasicServiceConfigs'](_0x525e54),this[_0x4855d6(0xb8)]&&this[_0x4855d6(0xb8)](_0x525e54),this['parseBasicTabConfigs']&&this[_0x4855d6(0xae)](_0x525e54),this[_0x4855d6(0xaa)]&&this['parseBasicButtonConfigs'](_0x525e54));}async[a0_0x397d5b(0xa8)](){const _0x37c430=a0_0x397d5b;ValueUtil[_0x37c430(0xac)](this['grist'])?this[_0x37c430(0xbe)][_0x37c430(0xa8)]():(ValueUtil[_0x37c430(0xac)](this[_0x37c430(0xce)])||this[_0x37c430(0xaf)])&&await this[_0x37c430(0xaf)]();}async[a0_0x397d5b(0xcc)](_0xe700d5,_0x568876,_0x870a1d){const _0x41b719=a0_0x397d5b;let _0x261890=TermsUtil[_0x41b719(0xb3)](_0xe700d5[_0x41b719(0xc7)]);ValueUtil[_0x41b719(0xac)](_0xe700d5[_0x41b719(0xcd)])&&(_0x261890=_0x261890+'-'+ValueUtil[_0x41b719(0xdd)](_0x568876,..._0xe700d5[_0x41b719(0xcd)]['split']('.'))),MetaApi[_0x41b719(0xd6)](_0x261890,_0xe700d5,_0x568876,_0x870a1d);}async[a0_0x397d5b(0xab)](_0x5b5c18,_0x511dbd,_0x50309c){const _0x2f258b=a0_0x397d5b;let _0x51a040=await MetaApi[_0x2f258b(0xdb)](_0x5b5c18['name'],_0x5b5c18['name'],_0x511dbd);!0x1!==_0x51a040&&!_0x51a040[_0x2f258b(0xc3)]&&ValueUtil[_0x2f258b(0xac)](_0x5b5c18[_0x2f258b(0xb1)])&&_0x50309c();}[a0_0x397d5b(0xd0)](_0xcc3d06){const _0x483681=a0_0x397d5b;this[_0x483681(0xd2)]=_0xcc3d06,this[_0x483681(0xa8)]();}};
@@ -1,4 +1,4 @@
1
- function a0_0x5757(_0x47239b,_0x2af5f6){const _0x3d45b9=a0_0x3d45();return a0_0x5757=function(_0x57574e,_0x5aee57){_0x57574e=_0x57574e-0x1f2;let _0x3518c1=_0x3d45b9[_0x57574e];return _0x3518c1;},a0_0x5757(_0x47239b,_0x2af5f6);}const a0_0x44a72a=a0_0x5757;(function(_0xb176c,_0xd63954){const _0x1004f7=a0_0x5757,_0x2990fb=_0xb176c();while(!![]){try{const _0x208f23=parseInt(_0x1004f7(0x22b))/0x1+-parseInt(_0x1004f7(0x1f4))/0x2+-parseInt(_0x1004f7(0x213))/0x3*(parseInt(_0x1004f7(0x1f6))/0x4)+-parseInt(_0x1004f7(0x21f))/0x5+parseInt(_0x1004f7(0x1fe))/0x6*(parseInt(_0x1004f7(0x228))/0x7)+parseInt(_0x1004f7(0x206))/0x8*(parseInt(_0x1004f7(0x21c))/0x9)+-parseInt(_0x1004f7(0x227))/0xa*(-parseInt(_0x1004f7(0x22a))/0xb);if(_0x208f23===_0xd63954)break;else _0x2990fb['push'](_0x2990fb['shift']());}catch(_0x590059){_0x2990fb['push'](_0x2990fb['shift']());}}}(a0_0x3d45,0xb81fb));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3d45(){const _0x2df55c=['export','save','getSelectedIdList','records','45819DEJyJX','shadowRoot','renderRoot','5775320GLmhOI','filterFormId','deleteByIds','getData','styles','context','patchesForUpdateMultiple','ox-filters-form','20oqNARH','12908uWKprd','parse','8637277lNzbme','1308018IQxNyM','gristConfigSet','gristId','2665166DdRyVM','keys','37700QAgTfG','isPage','isElement','parseBasicGridConfigs','grist','firstUpdated','gridColumnConfig','getButtonContainer','978hfHeZC','isNotEmpty','grid','activityDataSet','updateMultiple','data','connectedCallback','pageInitialized','232KzvNZZ','getAndParseMenuMeta','search','stringify','getBasicGristHtml','gridEmphasized','fetch','___data','exportableData','parseGristConfigs','menuInfo','clear','parseGridConfigSet','27QBJgaX','gridConfig','forEach','searchConfig','getContextObject'];a0_0x3d45=function(){return _0x2df55c;};return a0_0x3d45();}export const MetaBasicGristMixin=_0x39a361=>class extends MetaButtonMixin(_0x39a361){static get[a0_0x44a72a(0x223)](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x44a72a(0x1fa)](){const _0x377331=a0_0x44a72a;return this[_0x377331(0x21e)]?.['querySelector'](this[_0x377331(0x1f3)]);}get['filterForm'](){const _0x2bbe44=a0_0x44a72a;return this[_0x2bbe44(0x21d)]?.['querySelector'](this[_0x2bbe44(0x220)]);}get[a0_0x44a72a(0x224)](){const _0x3a56d6=a0_0x44a72a;return MetaUiUtil[_0x3a56d6(0x217)](this);}async['connectedCallback'](){const _0x119c31=a0_0x44a72a;this['gristId']='ox-grist',this['filterFormId']=_0x119c31(0x226),await this[_0x119c31(0x207)](),this[_0x119c31(0x1f8)]&&await this[_0x119c31(0x20f)](),this[_0x119c31(0x201)]&&(this['dataSet']=this['activityDataSet']),super[_0x119c31(0x204)]&&await super[_0x119c31(0x204)]();}async[a0_0x44a72a(0x1fb)](){const _0x44df4d=a0_0x44a72a;super[_0x44df4d(0x1fb)]&&await super['firstUpdated']();}async[a0_0x44a72a(0x205)](){const _0x2e21de=a0_0x44a72a;this['isPage']&&await this[_0x2e21de(0x20f)](),super[_0x2e21de(0x205)]&&await super[_0x2e21de(0x205)]();}['render'](){const _0x5a46b6=a0_0x44a72a;return html`
2
- ${MetaApi[_0x5a46b6(0x20a)](this)}
3
- ${this[_0x5a46b6(0x1f7)]?html``:MetaUiUtil[_0x5a46b6(0x1fd)](this)}
4
- `;}[a0_0x44a72a(0x1f9)](_0x1f91e1){const _0x135f90=a0_0x44a72a;this[_0x135f90(0x214)]=_0x1f91e1[_0x135f90(0x200)],this[_0x135f90(0x1fc)]=_0x1f91e1['grid_column'],this[_0x135f90(0x216)]=_0x1f91e1[_0x135f90(0x208)],this[_0x135f90(0x20b)]=_0x1f91e1[_0x135f90(0x20b)];}async[a0_0x44a72a(0x20f)](){const _0x1eee21=a0_0x44a72a;this[_0x1eee21(0x1f2)]=await MetaApi[_0x1eee21(0x212)](this);}async[a0_0x44a72a(0x20c)](){const _0x11edcf=a0_0x44a72a;await this['grist'][_0x11edcf(0x20c)]();}async[a0_0x44a72a(0x219)](){const _0x3f0c1a=a0_0x44a72a;let _0x1a409d=MetaApi[_0x3f0c1a(0x225)](this[_0x3f0c1a(0x1fa)]);!!ValueUtil['isNotEmpty'](_0x1a409d)&&await this[_0x3f0c1a(0x202)](_0x1a409d)&&this[_0x3f0c1a(0x20c)]();}async['find'](){const _0x4e374c=a0_0x44a72a;let _0x3a47ad=MetaApi[_0x4e374c(0x21a)](this[_0x4e374c(0x1fa)],!0x0);return ValueUtil[_0x4e374c(0x1ff)](_0x3a47ad)?await this['findOne'](_0x3a47ad[0x0]):{};}async['delete'](){const _0x4df1de=a0_0x44a72a;let _0x2e32fc=MetaApi[_0x4df1de(0x21a)](this[_0x4df1de(0x1fa)],!0x0);!!ValueUtil[_0x4df1de(0x1ff)](_0x2e32fc)&&await this[_0x4df1de(0x221)](_0x2e32fc)&&this[_0x4df1de(0x20c)]();}async[a0_0x44a72a(0x218)](){const _0xe011e8=a0_0x44a72a;let _0x4e6780=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0xe011e8(0x210)],'title'));return await MetaApi[_0xe011e8(0x20e)](this[_0xe011e8(0x1f8)],_0x4e6780,this[_0xe011e8(0x1fa)]);}async['import'](){}async[a0_0x44a72a(0x211)](){const _0x4b79ca=a0_0x44a72a;this[_0x4b79ca(0x1fa)]&&(this['grist'][_0x4b79ca(0x203)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x44a72a(0x222)](){const _0x15123e=a0_0x44a72a;let _0x49001b=this[_0x15123e(0x1fa)][_0x15123e(0x20d)][_0x15123e(0x21b)];return _0x49001b=JSON[_0x15123e(0x229)](JSON[_0x15123e(0x209)](_0x49001b)),_0x49001b['forEach'](_0x4619c1=>{const _0x24c137=_0x15123e;Object[_0x24c137(0x1f5)](_0x4619c1)[_0x24c137(0x215)](_0xd473c0=>{_0xd473c0['startsWith']('__')&&delete _0x4619c1[_0xd473c0];});}),_0x49001b;}};
1
+ const a0_0x466016=a0_0x4492;function a0_0x2ed6(){const _0x3dd3af=['ox-grist','108Nbahpk','getContextObject','66545cDyxea','isNotEmpty','export','319upqRAF','keys','activityDataSet','forEach','filterFormId','isElement','firstUpdated','filterForm','querySelector','parseGristConfigs','parseGridConfigSet','535464lxfVmS','records','fetch','gridConfig','menuInfo','deleteByIds','renderRoot','delete','grid','gridColumnConfig','isPage','351977cfmOSl','render','connectedCallback','parseBasicGridConfigs','24286PPqpeF','import','grid_column','tTitle','pageInitialized','grist','222130ZeFUBA','find','updateMultiple','styles','300mVAJZZ','424336smNPrC','114oSzESg','getBasicGristStyles','getButtonContainer','gridEmphasized','___data','exportableData','getSelectedIdList','search','context','2205672bcwIob','gristId','getAndParseMenuMeta','getParams','shadowRoot'];a0_0x2ed6=function(){return _0x3dd3af;};return a0_0x2ed6();}(function(_0x24aafb,_0x51b63f){const _0x16b96a=a0_0x4492,_0x383006=_0x24aafb();while(!![]){try{const _0x2114d7=-parseInt(_0x16b96a(0x124))/0x1+-parseInt(_0x16b96a(0x128))/0x2*(-parseInt(_0x16b96a(0x134))/0x3)+-parseInt(_0x16b96a(0x119))/0x4+-parseInt(_0x16b96a(0x145))/0x5*(-parseInt(_0x16b96a(0x132))/0x6)+-parseInt(_0x16b96a(0x13d))/0x7+-parseInt(_0x16b96a(0x133))/0x8*(parseInt(_0x16b96a(0x143))/0x9)+parseInt(_0x16b96a(0x12e))/0xa*(parseInt(_0x16b96a(0x148))/0xb);if(_0x2114d7===_0x51b63f)break;else _0x383006['push'](_0x383006['shift']());}catch(_0x400117){_0x383006['push'](_0x383006['shift']());}}}(a0_0x2ed6,0x51732));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_0x4492(_0x19d3ae,_0xf16351){const _0x2ed64b=a0_0x2ed6();return a0_0x4492=function(_0x449293,_0x4ba970){_0x449293=_0x449293-0x115;let _0xe143d5=_0x2ed64b[_0x449293];return _0xe143d5;},a0_0x4492(_0x19d3ae,_0xf16351);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x3e89a7=>class extends MetaButtonMixin(_0x3e89a7){static get[a0_0x466016(0x131)](){const _0x58305d=a0_0x466016;return MetaApi[_0x58305d(0x135)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x466016(0x12d)](){const _0x1e6d4a=a0_0x466016;return this[_0x1e6d4a(0x11f)]?.[_0x1e6d4a(0x116)](this[_0x1e6d4a(0x13e)]);}get[a0_0x466016(0x115)](){const _0x2229b8=a0_0x466016;return this[_0x2229b8(0x141)]?.[_0x2229b8(0x116)](this[_0x2229b8(0x14c)]);}get[a0_0x466016(0x13c)](){const _0x14b9f4=a0_0x466016;return MetaUiUtil[_0x14b9f4(0x144)](this);}async[a0_0x466016(0x126)](){const _0x50d53d=a0_0x466016;this['gristId']=_0x50d53d(0x142),this[_0x50d53d(0x14c)]='ox-filters-form',await this[_0x50d53d(0x13f)](),this[_0x50d53d(0x14d)]&&await this[_0x50d53d(0x117)](),this[_0x50d53d(0x14a)]&&(this['dataSet']=this[_0x50d53d(0x14a)]),super[_0x50d53d(0x126)]&&await super[_0x50d53d(0x126)]();}async[a0_0x466016(0x14e)](){const _0x24e247=a0_0x466016;super['firstUpdated']&&await super[_0x24e247(0x14e)]();}async['pageInitialized'](){const _0x24916d=a0_0x466016;this[_0x24916d(0x123)]&&await this[_0x24916d(0x117)](),super[_0x24916d(0x12c)]&&await super[_0x24916d(0x12c)]();}[a0_0x466016(0x125)](){const _0x44cdf4=a0_0x466016;return html`
2
+ ${MetaApi['getBasicGristHtml'](this)}
3
+ ${this['isPage']?html``:MetaUiUtil[_0x44cdf4(0x136)](this)}
4
+ `;}[a0_0x466016(0x127)](_0x592fef){const _0x501dc6=a0_0x466016;this[_0x501dc6(0x11c)]=_0x592fef[_0x501dc6(0x121)],this[_0x501dc6(0x122)]=_0x592fef[_0x501dc6(0x12a)],this['searchConfig']=_0x592fef[_0x501dc6(0x13b)],this[_0x501dc6(0x137)]=_0x592fef[_0x501dc6(0x137)];}async[a0_0x466016(0x117)](){const _0x2c4d41=a0_0x466016;this['gristConfigSet']=await MetaApi[_0x2c4d41(0x118)](this);}async[a0_0x466016(0x11b)](){const _0x5d4666=a0_0x466016;await this[_0x5d4666(0x12d)][_0x5d4666(0x11b)]();}async['save'](){const _0x36e879=a0_0x466016;let _0x12481d=MetaApi['patchesForUpdateMultiple'](this[_0x36e879(0x12d)]);!!ValueUtil[_0x36e879(0x146)](_0x12481d)&&await this[_0x36e879(0x130)](_0x12481d)&&this['fetch']();}async[a0_0x466016(0x12f)](){const _0x827fe2=a0_0x466016;let _0x3095f7=MetaApi[_0x827fe2(0x13a)](this[_0x827fe2(0x12d)],!0x0);return ValueUtil[_0x827fe2(0x146)](_0x3095f7)?await this['findOne'](_0x3095f7[0x0]):{};}async[a0_0x466016(0x120)](){const _0x406fca=a0_0x466016;let _0x5a5b6e=MetaApi[_0x406fca(0x13a)](this[_0x406fca(0x12d)],!0x0);!!ValueUtil[_0x406fca(0x146)](_0x5a5b6e)&&await this[_0x406fca(0x11e)](_0x5a5b6e)&&this[_0x406fca(0x11b)]();}async[a0_0x466016(0x147)](){const _0x2e81d0=a0_0x466016;let _0x2aac54=TermsUtil[_0x2e81d0(0x12b)](ValueUtil[_0x2e81d0(0x140)](this[_0x2e81d0(0x11d)],'title'));return await MetaApi[_0x2e81d0(0x139)](this[_0x2e81d0(0x14d)],_0x2aac54,this[_0x2e81d0(0x12d)]);}async[a0_0x466016(0x129)](){}async['clear'](){const _0x1dc2aa=a0_0x466016;this[_0x1dc2aa(0x12d)]&&(this[_0x1dc2aa(0x12d)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x48f625=a0_0x466016;let _0x2e01fc=this[_0x48f625(0x12d)][_0x48f625(0x138)][_0x48f625(0x11a)];return _0x2e01fc=JSON['parse'](JSON['stringify'](_0x2e01fc)),_0x2e01fc[_0x48f625(0x14b)](_0x54cea3=>{const _0x558ad2=_0x48f625;Object[_0x558ad2(0x149)](_0x54cea3)[_0x558ad2(0x14b)](_0x34733c=>{_0x34733c['startsWith']('__')&&delete _0x54cea3[_0x34733c];});}),_0x2e01fc;}};
@@ -1 +1 @@
1
- const a0_0x326668=a0_0xf5af;(function(_0x526149,_0x159ba7){const _0x2a2b8e=a0_0xf5af,_0x1348e5=_0x526149();while(!![]){try{const _0x4f78d3=parseInt(_0x2a2b8e(0x119))/0x1*(-parseInt(_0x2a2b8e(0x129))/0x2)+parseInt(_0x2a2b8e(0x125))/0x3*(-parseInt(_0x2a2b8e(0x121))/0x4)+parseInt(_0x2a2b8e(0x127))/0x5+-parseInt(_0x2a2b8e(0x11a))/0x6*(parseInt(_0x2a2b8e(0x130))/0x7)+-parseInt(_0x2a2b8e(0x116))/0x8+parseInt(_0x2a2b8e(0x12c))/0x9+parseInt(_0x2a2b8e(0x123))/0xa*(parseInt(_0x2a2b8e(0x12e))/0xb);if(_0x4f78d3===_0x159ba7)break;else _0x1348e5['push'](_0x1348e5['shift']());}catch(_0x25b096){_0x1348e5['push'](_0x1348e5['shift']());}}}(a0_0x54b0,0x9e05e));function a0_0xf5af(_0x39826a,_0x5bc6f0){const _0x54b0b7=a0_0x54b0();return a0_0xf5af=function(_0xf5af9c,_0x4ad1a9){_0xf5af9c=_0xf5af9c-0x116;let _0x2a61bf=_0x54b0b7[_0xf5af9c];return _0x2a61bf;},a0_0xf5af(_0x39826a,_0x5bc6f0);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x54b0(){const _0xcafc87=['2LxLpiZ','properties','gristButtonHandler','1440342jSOOxe','getButtonContainer','11LPsCms','isButtonExist','14OWzoeV','4249968PbGPiN','getButtonActionHandler','button','1239779IFZaGh','558462YVklNE','buttonConfig','parseBasicButtonConfigs','useButtonImport','isPage','getCustomButtonContainerStyle','add','4tjvSoO','customButtonHandler','19568580VtWSKr','useButtonAdd','1613916fdfwJN','getCustomButtonContainerStyles','5127585UsPqAl','getContextButtons'];a0_0x54b0=function(){return _0xcafc87;};return a0_0x54b0();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x9f5131=>class extends MetaServiceMixin(_0x9f5131){static get[a0_0x326668(0x12a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x326668(0x11f)](){const _0x3c90fe=a0_0x326668;return MetaUiUtil[_0x3c90fe(0x126)]();}[a0_0x326668(0x128)](){const _0x4a0b51=a0_0x326668;return MetaUiUtil[_0x4a0b51(0x128)](this);}[a0_0x326668(0x12d)](){const _0x3363cb=a0_0x326668;return this[_0x3363cb(0x11e)]?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0x437b01,_0x426f39,_0x9b8adc){const _0xca3ed=a0_0x326668;return await MetaUiUtil[_0xca3ed(0x117)](this,_0x437b01,_0x426f39,_0x9b8adc);}async[a0_0x326668(0x122)](_0x2cfc7d){await MetaUiUtil['customButtonHandler'](this,_0x2cfc7d);}async[a0_0x326668(0x12b)](_0x189a13,_0x1fa2f8){const _0x58f016=a0_0x326668;await MetaUiUtil[_0x58f016(0x12b)](this,_0x189a13,_0x1fa2f8);}[a0_0x326668(0x11c)](_0x3ec965){const _0x3efa91=a0_0x326668;this[_0x3efa91(0x11b)]=_0x3ec965[_0x3efa91(0x118)],this[_0x3efa91(0x11d)]=MetaUiUtil[_0x3efa91(0x12f)](this['buttonConfig'],'import'),this['useButtonExport']=MetaUiUtil[_0x3efa91(0x12f)](this[_0x3efa91(0x11b)],'export'),this[_0x3efa91(0x124)]=MetaUiUtil['isButtonExist'](this[_0x3efa91(0x11b)],_0x3efa91(0x120));}};
1
+ const a0_0x56d292=a0_0x2c54;(function(_0x9bead2,_0x5c356f){const _0x4a8eb9=a0_0x2c54,_0x308632=_0x9bead2();while(!![]){try{const _0x577f25=parseInt(_0x4a8eb9(0x159))/0x1+-parseInt(_0x4a8eb9(0x14f))/0x2*(parseInt(_0x4a8eb9(0x167))/0x3)+parseInt(_0x4a8eb9(0x155))/0x4*(-parseInt(_0x4a8eb9(0x166))/0x5)+-parseInt(_0x4a8eb9(0x151))/0x6*(-parseInt(_0x4a8eb9(0x15f))/0x7)+parseInt(_0x4a8eb9(0x15e))/0x8*(-parseInt(_0x4a8eb9(0x168))/0x9)+-parseInt(_0x4a8eb9(0x165))/0xa*(parseInt(_0x4a8eb9(0x153))/0xb)+parseInt(_0x4a8eb9(0x156))/0xc;if(_0x577f25===_0x5c356f)break;else _0x308632['push'](_0x308632['shift']());}catch(_0x41138f){_0x308632['push'](_0x308632['shift']());}}}(a0_0x265b,0xd5386));function a0_0x2c54(_0x264ea4,_0x349509){const _0x265b5b=a0_0x265b();return a0_0x2c54=function(_0x2c54cf,_0x14cdfd){_0x2c54cf=_0x2c54cf-0x14f;let _0x5ae417=_0x265b5b[_0x2c54cf];return _0x5ae417;},a0_0x2c54(_0x264ea4,_0x349509);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x1691eb=>class extends MetaServiceMixin(_0x1691eb){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x56d292(0x15c)](){const _0x5d3c7a=a0_0x56d292;return MetaUiUtil[_0x5d3c7a(0x152)]();}[a0_0x56d292(0x15a)](){return MetaUiUtil['getContextButtons'](this);}['getButtonContainer'](){const _0x431ff6=a0_0x56d292;return this[_0x431ff6(0x15b)]?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0x4f3fed,_0xfd066b,_0x486308){const _0x41dac7=a0_0x56d292;return await MetaUiUtil[_0x41dac7(0x157)](this,_0x4f3fed,_0xfd066b,_0x486308);}async[a0_0x56d292(0x160)](_0x499836){const _0x3f71c0=a0_0x56d292;await MetaUiUtil[_0x3f71c0(0x160)](this,_0x499836);}async[a0_0x56d292(0x150)](_0x29371b,_0x3e9824){await MetaUiUtil['gristButtonHandler'](this,_0x29371b,_0x3e9824);}['parseBasicButtonConfigs'](_0x1afe07){const _0x53340e=a0_0x56d292;this[_0x53340e(0x154)]=_0x1afe07[_0x53340e(0x158)],this['useButtonImport']=MetaUiUtil[_0x53340e(0x164)](this[_0x53340e(0x154)],_0x53340e(0x163)),this[_0x53340e(0x162)]=MetaUiUtil[_0x53340e(0x164)](this['buttonConfig'],_0x53340e(0x15d)),this['useButtonAdd']=MetaUiUtil[_0x53340e(0x164)](this[_0x53340e(0x154)],_0x53340e(0x161));}};function a0_0x265b(){const _0x4765bd=['add','useButtonExport','import','isButtonExist','8720BDtbUr','790980plZbzI','42jUDiNt','99dSNIlQ','202670aEerle','gristButtonHandler','6872874eXRaki','getCustomButtonContainerStyles','14553ELDBju','buttonConfig','4AjmwXY','41622828aPlOsA','getButtonActionHandler','button','220205IoCGzn','getContextButtons','isPage','getCustomButtonContainerStyle','export','894808YtPZaA','7GZVvOD','customButtonHandler'];a0_0x265b=function(){return _0x4765bd;};return a0_0x265b();}
@@ -1 +1 @@
1
- const a0_0x160e53=a0_0x3134;(function(_0x311e35,_0x1ed337){const _0x3524e2=a0_0x3134,_0x1113b1=_0x311e35();while(!![]){try{const _0x33f829=parseInt(_0x3524e2(0x1a7))/0x1+-parseInt(_0x3524e2(0x1c5))/0x2*(-parseInt(_0x3524e2(0x190))/0x3)+parseInt(_0x3524e2(0x1be))/0x4+-parseInt(_0x3524e2(0x1a5))/0x5*(-parseInt(_0x3524e2(0x185))/0x6)+parseInt(_0x3524e2(0x1cb))/0x7+parseInt(_0x3524e2(0x188))/0x8+parseInt(_0x3524e2(0x1b1))/0x9*(-parseInt(_0x3524e2(0x19b))/0xa);if(_0x33f829===_0x1ed337)break;else _0x1113b1['push'](_0x1113b1['shift']());}catch(_0x18f6b1){_0x1113b1['push'](_0x1113b1['shift']());}}}(a0_0x38d9,0xa21c9));import{MetaApi}from'../utils/meta-api';function a0_0x38d9(){const _0x5dcc29=['grid_column','mandatory','stopPropagation','264231aAjhIA','type','Esc','__seq__','addEventListener','dispatchEvent','dirtyData','__dirty__','showAlertPopup','__origin__','properties','true','renderRoot','1237124gBuWhB','patchData','Enter','formRenderConfig','OX-GRID-FIELD','isPage','updateMultiple','810556jEBhRX','cuFlag','setAttribute','currentTarget','focus','record','2285885HpXPuj','clear','title.info','__dirtyfields__','column','after','orgData','formConfigSet','styles','assign','check-mandatory-field','fetch','currentData','tagName','text.check-mandatory','firstUpdated','button','name','isNotEmpty','isEmpty','848346STZxcC','call','findOne','6753112hrZjge','render','parseBasicFormConfigs','activityDataSet','Escape','tLabel','parent_id','map','9WMhLmU','pageInitialized','validation','startsWith','editable','getContextObject','isEquals','context','formColumnConfig','before','target','1360Zfdavm','includes','filter','keydown','removeAttribute','isElement','removeGarbageData','info','connectedCallback','getAndParseMenuMeta','35BevwWN','form','971287DtBMFy','editing','getData','parseFormConfigs','text.NOTHING_CHANGED','forEach','save'];a0_0x38d9=function(){return _0x5dcc29;};return a0_0x38d9();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';function a0_0x3134(_0x535e6e,_0x116159){const _0x38d90e=a0_0x38d9();return a0_0x3134=function(_0x3134aa,_0x1f9ff1){_0x3134aa=_0x3134aa-0x183;let _0x5d4bf2=_0x38d90e[_0x3134aa];return _0x5d4bf2;},a0_0x3134(_0x535e6e,_0x116159);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x88c3f3=>class extends MetaButtonMixin(_0x88c3f3){static get[a0_0x160e53(0x1d3)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x160e53(0x1bb)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x160e53(0x197)](){const _0x5f3772=a0_0x160e53;return MetaUiUtil[_0x5f3772(0x195)](this);}async[a0_0x160e53(0x1a3)](){const _0x2671cd=a0_0x160e53;await this[_0x2671cd(0x1a4)](),this[_0x2671cd(0x1a0)]&&await this['parseFormConfigs'](),this['activityDataSet']&&(this['dataSet']=this[_0x2671cd(0x18b)]),!0x0!==this['is_activity']||this[_0x2671cd(0x18e)]||(this[_0x2671cd(0x18e)]='activity'),super[_0x2671cd(0x1a3)]&&await super[_0x2671cd(0x1a3)](),this[_0x2671cd(0x1a0)]&&await this['fetch'](),this[_0x2671cd(0x1bd)][_0x2671cd(0x1b5)](_0x2671cd(0x19e),_0x182ec4=>{const _0x175da8=_0x2671cd;switch(_0x182ec4['key']){case _0x175da8(0x1b3):case _0x175da8(0x18c):case _0x175da8(0x1c0):this['focus'](),this['currentTarget']&&this[_0x175da8(0x1c8)]['removeAttribute'](_0x175da8(0x1a8)),this['currentTarget']=null;}}),this[_0x2671cd(0x1bd)][_0x2671cd(0x1b5)]('click',_0x53ceb7=>{const _0x2d39d0=_0x2671cd;_0x53ceb7[_0x2d39d0(0x1b0)]();let _0x18d108=_0x53ceb7[_0x2d39d0(0x19a)];if(this[_0x2d39d0(0x1c8)]&&(this['focus'](),this[_0x2d39d0(0x1c8)][_0x2d39d0(0x19f)]('editing')),_0x2d39d0(0x1c2)!==_0x18d108[_0x2d39d0(0x1d8)]||!_0x18d108[_0x2d39d0(0x1cf)][_0x2d39d0(0x1ca)][_0x2d39d0(0x194)])return this[_0x2d39d0(0x1c9)](),void(this[_0x2d39d0(0x1c8)]=null);this[_0x2d39d0(0x1c8)]=_0x18d108,_0x18d108[_0x2d39d0(0x1c7)](_0x2d39d0(0x1a8),_0x2d39d0(0x1bc));}),this[_0x2671cd(0x1b5)]('field-change',_0x739191=>{const _0x2bb24b=_0x2671cd;var {after:_0x2349c6,before:_0x155c9d,column:_0x203007,record:_0x167704,row:_0x379172}=_0x739191['detail'];if(ValueUtil[_0x2bb24b(0x196)](_0x2349c6,_0x155c9d))return;var _0x3e8891=_0x203007[_0x2bb24b(0x192)];if(_0x3e8891&&'function'==typeof _0x3e8891&&!_0x3e8891[_0x2bb24b(0x186)](this,_0x2349c6,_0x155c9d,_0x167704,_0x203007))return;let _0x4dcf25=_0x203007['name'];_0x167704[_0x4dcf25]=_0x2349c6,_0x167704['__dirtyfields__']=_0x167704[_0x2bb24b(0x1ce)]||{},_0x167704[_0x2bb24b(0x1ba)]=_0x167704[_0x2bb24b(0x1ba)]||{},_0x167704[_0x2bb24b(0x1ce)][_0x4dcf25]={'before':_0x167704[_0x2bb24b(0x1ba)][_0x4dcf25],'after':_0x167704[_0x4dcf25]},ValueUtil['isEquals'](_0x167704['__dirtyfields__'][_0x4dcf25][_0x2bb24b(0x199)],_0x167704[_0x2bb24b(0x1ce)][_0x4dcf25]['after'])&&delete _0x167704[_0x2bb24b(0x1ce)][_0x4dcf25],ValueUtil[_0x2bb24b(0x183)](_0x167704[_0x2bb24b(0x1ce)])?_0x167704[_0x2bb24b(0x1b8)]='M':_0x167704[_0x2bb24b(0x1b8)]='',this[_0x2bb24b(0x1ca)]={..._0x167704},this[_0x2bb24b(0x1b6)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x739191['detail']}));});}async['firstUpdated'](){const _0x58b600=a0_0x160e53;super[_0x58b600(0x1da)]&&await super[_0x58b600(0x1da)]();}async[a0_0x160e53(0x191)](){const _0xbc83ab=a0_0x160e53;this[_0xbc83ab(0x1c3)]&&await this[_0xbc83ab(0x1aa)](),super[_0xbc83ab(0x191)]&&await super[_0xbc83ab(0x191)](),this[_0xbc83ab(0x1c3)]&&await this[_0xbc83ab(0x1d6)]();}[a0_0x160e53(0x189)](){return MetaApi['getBasicFormHtml'](this);}[a0_0x160e53(0x18a)](_0x4cb599){const _0x4457ba=a0_0x160e53;this['formColumnConfig']=_0x4cb599[_0x4457ba(0x1ae)],this[_0x4457ba(0x1c1)]=_0x4cb599[_0x4457ba(0x1a6)],_0x4cb599[_0x4457ba(0x1db)]=_0x4cb599[_0x4457ba(0x1db)][_0x4457ba(0x19d)](_0x4f653d=>_0x4457ba(0x1ad)==_0x4f653d[_0x4457ba(0x1dc)]);}async[a0_0x160e53(0x1aa)](){const _0x189acf=a0_0x160e53;this[_0x189acf(0x1d2)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x160e53(0x1d1)](){const _0x3fec8b=a0_0x160e53;return this['removeGarbageData'](this['record'][_0x3fec8b(0x1ba)]);}get[a0_0x160e53(0x1b7)](){const _0x107eeb=a0_0x160e53;if(ValueUtil['isEmpty']((this[_0x107eeb(0x1ca)]||{})[_0x107eeb(0x1ce)]))return{};let _0x3bbfb1={};return Object['entries'](this['record']['__dirtyfields__'])['map'](([_0x114cd8,_0x3a518c])=>{const _0x145044=_0x107eeb;0x0==_0x114cd8[_0x145044(0x193)]('__')&&(_0x3bbfb1[_0x114cd8]=_0x3a518c[_0x145044(0x1d0)]);}),_0x3bbfb1;}get['currentData'](){const _0x524650=a0_0x160e53;return this[_0x524650(0x1a1)](this[_0x524650(0x1ca)]);}['removeGarbageData'](_0x529976){const _0x35ce97=a0_0x160e53;let _0x2b4ff7={};if(_0x529976)return Object['entries'](_0x529976)[_0x35ce97(0x18f)](([_0x3d154c,_0x18323a])=>{const _0x2a61b7=_0x35ce97;0x0==_0x3d154c[_0x2a61b7(0x193)]('__')&&(_0x2b4ff7[_0x3d154c]=_0x18323a);}),_0x2b4ff7;}get[a0_0x160e53(0x1bf)](){const _0x22ad8a=a0_0x160e53;let _0x2573d4=this[_0x22ad8a(0x1b7)],_0x3e6472=this[_0x22ad8a(0x1ca)],_0x39023c=(this['formColumnConfig']||[])[_0x22ad8a(0x19d)](_0x482764=>'code-input'===_0x482764[_0x22ad8a(0x1b2)])[_0x22ad8a(0x18f)](_0x532af6=>_0x532af6['name']);if(!ValueUtil[_0x22ad8a(0x184)](_0x2573d4))return ValueUtil['isNotEmpty'](_0x3e6472['id'])?(_0x2573d4['id']=_0x3e6472['id'],_0x2573d4[_0x22ad8a(0x1c6)]='M'):_0x2573d4[_0x22ad8a(0x1c6)]='+',Object['keys'](_0x2573d4)[_0x22ad8a(0x1ac)](_0x465256=>{const _0x4ca432=_0x22ad8a;'object'==typeof _0x2573d4[_0x465256]&&0x0==_0x39023c[_0x4ca432(0x19c)](_0x465256)&&(_0x2573d4[_0x465256]={'id':_0x2573d4[_0x465256]['id']});}),[_0x2573d4];}async['fetch'](){const _0x3c9abd=a0_0x160e53;if(ValueUtil['isEmpty'](this[_0x3c9abd(0x18e)]))return;let _0x4ce393=await this[_0x3c9abd(0x187)](this['parent_id']);_0x4ce393[_0x3c9abd(0x1b4)]=0x1;let _0x3a88a4={};Object[_0x3c9abd(0x1d4)](_0x3a88a4,_0x4ce393),_0x4ce393[_0x3c9abd(0x1ba)]=_0x3a88a4,this[_0x3c9abd(0x1ca)]={..._0x4ce393};}async['save'](){const _0xbe3200=a0_0x160e53;let _0x2a5695=this[_0xbe3200(0x1bf)];if(ValueUtil['isEmpty'](_0x2a5695))return void MetaApi[_0xbe3200(0x1b9)](_0xbe3200(0x1cd),_0xbe3200(0x1ab));let _0x74afd9={};(this[_0xbe3200(0x198)]||[])[_0xbe3200(0x19d)](_0x20a59d=>!0x0===_0x20a59d[_0xbe3200(0x1af)])[_0xbe3200(0x1ac)](_0x4e9f37=>{const _0x57f7f6=_0xbe3200;_0x74afd9[_0x4e9f37[_0x57f7f6(0x1dc)]]=_0x4e9f37['header'];});let _0x18cf3c=this[_0xbe3200(0x1d7)];for(let _0xab4aa4 in _0x74afd9)if(void 0x0===_0x18cf3c[_0xab4aa4]||''==_0x18cf3c[_0xab4aa4])return void UiUtil['showAlertPopup'](_0xbe3200(0x1d9),TermsUtil['tText'](_0xbe3200(0x1d5),{'x':TermsUtil[_0xbe3200(0x18d)](_0x74afd9[_0xab4aa4])}),_0xbe3200(0x1a2),'confirm');let _0x307282=await this[_0xbe3200(0x1c4)](_0x2a5695);return _0x307282&&await this['fetch'](),_0x307282;}async[a0_0x160e53(0x1cc)](){const _0x2d9d10=a0_0x160e53;this['record']&&(this[_0x2d9d10(0x1ca)]={});}[a0_0x160e53(0x1a9)](){const _0x58061c=a0_0x160e53;return this[_0x58061c(0x1d7)]||{};}};
1
+ function a0_0x54bc(_0x570524,_0x143ee1){const _0xc7b4a3=a0_0xc7b4();return a0_0x54bc=function(_0x54bcea,_0x28e7be){_0x54bcea=_0x54bcea-0x145;let _0x4a4f43=_0xc7b4a3[_0x54bcea];return _0x4a4f43;},a0_0x54bc(_0x570524,_0x143ee1);}const a0_0x238035=a0_0x54bc;(function(_0x13e4a7,_0x5c017f){const _0x445600=a0_0x54bc,_0x209793=_0x13e4a7();while(!![]){try{const _0x59ce8c=-parseInt(_0x445600(0x17b))/0x1*(parseInt(_0x445600(0x183))/0x2)+-parseInt(_0x445600(0x184))/0x3+-parseInt(_0x445600(0x153))/0x4*(parseInt(_0x445600(0x196))/0x5)+parseInt(_0x445600(0x18f))/0x6+parseInt(_0x445600(0x16e))/0x7*(-parseInt(_0x445600(0x148))/0x8)+-parseInt(_0x445600(0x186))/0x9+parseInt(_0x445600(0x178))/0xa;if(_0x59ce8c===_0x5c017f)break;else _0x209793['push'](_0x209793['shift']());}catch(_0x54cfbb){_0x209793['push'](_0x209793['shift']());}}}(a0_0xc7b4,0x52f73));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xc7b4(){const _0x53d9b8=['getContextObject','dirtyData','getBasicFormHtml','button','881448itYOmI','before','detail','entries','name','Enter','Escape','28580vlwnJu','true','getAndParseMenuMeta','isElement','__origin__','focus','save','dispatchEvent','function','showAlertPopup','__dirtyfields__','10984JgHFLh','call','updateMultiple','isPage','fetch','mandatory','keys','cuFlag','getBasicFormStyles','parent_id','patchData','192UNMYjC','type','info','parseFormConfigSet','is_activity','editable','forEach','formRenderConfig','__dirty__','currentData','renderRoot','startsWith','editing','parseBasicFormConfigs','currentTarget','click','target','confirm','grid_column','activityDataSet','removeAttribute','record','removeGarbageData','form-field-change','isEmpty','formConfigSet','filter','2303HmHavt','orgData','after','validation','assign','tText','field-change','styles','firstUpdated','formColumnConfig','20340110FpBMfI','isEquals','getData','183156ERupjh','header','column','includes','__seq__','addEventListener','check-mandatory-field','map','2nGTZLd','1040208FDzlSG','dataSet','5266035MUbzqJ','tagName','connectedCallback','findOne','pageInitialized'];a0_0xc7b4=function(){return _0x53d9b8;};return a0_0xc7b4();}export const MetaFormMixin=_0x1dece4=>class extends MetaButtonMixin(_0x1dece4){static get[a0_0x238035(0x175)](){const _0x7b22d9=a0_0x238035;return MetaApi[_0x7b22d9(0x150)]();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x16dc2d=a0_0x238035;return MetaUiUtil[_0x16dc2d(0x18b)](this);}async[a0_0x238035(0x188)](){const _0x127fe6=a0_0x238035;await this[_0x127fe6(0x198)](),this[_0x127fe6(0x199)]&&await this['parseFormConfigs'](),this[_0x127fe6(0x166)]&&(this[_0x127fe6(0x185)]=this[_0x127fe6(0x166)]),!0x0!==this[_0x127fe6(0x157)]||this[_0x127fe6(0x151)]||(this[_0x127fe6(0x151)]='activity'),super[_0x127fe6(0x188)]&&await super[_0x127fe6(0x188)](),this[_0x127fe6(0x199)]&&await this[_0x127fe6(0x14c)](),this['renderRoot'][_0x127fe6(0x180)]('keydown',_0x45253f=>{const _0x449702=_0x127fe6;switch(_0x45253f['key']){case'Esc':case _0x449702(0x195):case _0x449702(0x194):this[_0x449702(0x19b)](),this[_0x449702(0x161)]&&this[_0x449702(0x161)][_0x449702(0x167)]('editing'),this[_0x449702(0x161)]=null;}}),this[_0x127fe6(0x15d)][_0x127fe6(0x180)](_0x127fe6(0x162),_0x5986df=>{const _0x3afe40=_0x127fe6;_0x5986df['stopPropagation']();let _0x2a580f=_0x5986df[_0x3afe40(0x163)];if(this[_0x3afe40(0x161)]&&(this['focus'](),this[_0x3afe40(0x161)][_0x3afe40(0x167)](_0x3afe40(0x15f))),'OX-GRID-FIELD'!==_0x2a580f[_0x3afe40(0x187)]||!_0x2a580f[_0x3afe40(0x17d)]['record'][_0x3afe40(0x158)])return this[_0x3afe40(0x19b)](),void(this[_0x3afe40(0x161)]=null);this[_0x3afe40(0x161)]=_0x2a580f,_0x2a580f['setAttribute'](_0x3afe40(0x15f),_0x3afe40(0x197));}),this['addEventListener'](_0x127fe6(0x174),_0x49f651=>{const _0x390ba0=_0x127fe6;var {after:_0x7710e5,before:_0x217950,column:_0x4351f7,record:_0x475b0d,row:_0x57f2c6}=_0x49f651[_0x390ba0(0x191)];if(ValueUtil[_0x390ba0(0x179)](_0x7710e5,_0x217950))return;var _0x36ada1=_0x4351f7[_0x390ba0(0x171)];if(_0x36ada1&&_0x390ba0(0x145)==typeof _0x36ada1&&!_0x36ada1[_0x390ba0(0x149)](this,_0x7710e5,_0x217950,_0x475b0d,_0x4351f7))return;let _0x8733fb=_0x4351f7[_0x390ba0(0x193)];_0x475b0d[_0x8733fb]=_0x7710e5,_0x475b0d[_0x390ba0(0x147)]=_0x475b0d[_0x390ba0(0x147)]||{},_0x475b0d[_0x390ba0(0x19a)]=_0x475b0d[_0x390ba0(0x19a)]||{},_0x475b0d[_0x390ba0(0x147)][_0x8733fb]={'before':_0x475b0d[_0x390ba0(0x19a)][_0x8733fb],'after':_0x475b0d[_0x8733fb]},ValueUtil[_0x390ba0(0x179)](_0x475b0d[_0x390ba0(0x147)][_0x8733fb][_0x390ba0(0x190)],_0x475b0d[_0x390ba0(0x147)][_0x8733fb][_0x390ba0(0x170)])&&delete _0x475b0d[_0x390ba0(0x147)][_0x8733fb],ValueUtil['isNotEmpty'](_0x475b0d['__dirtyfields__'])?_0x475b0d[_0x390ba0(0x15b)]='M':_0x475b0d[_0x390ba0(0x15b)]='',this[_0x390ba0(0x168)]={..._0x475b0d},this[_0x390ba0(0x19d)](new CustomEvent(_0x390ba0(0x16a),{'bubbles':!0x0,'composed':!0x0,'detail':_0x49f651[_0x390ba0(0x191)]}));});}async[a0_0x238035(0x176)](){const _0x4c73d5=a0_0x238035;super['firstUpdated']&&await super[_0x4c73d5(0x176)]();}async[a0_0x238035(0x18a)](){const _0x25679d=a0_0x238035;this[_0x25679d(0x14b)]&&await this['parseFormConfigs'](),super[_0x25679d(0x18a)]&&await super[_0x25679d(0x18a)](),this[_0x25679d(0x14b)]&&await this['fetch']();}['render'](){const _0x4443ff=a0_0x238035;return MetaApi[_0x4443ff(0x18d)](this);}[a0_0x238035(0x160)](_0x13a304){const _0x3b9713=a0_0x238035;this[_0x3b9713(0x177)]=_0x13a304[_0x3b9713(0x165)],this[_0x3b9713(0x15a)]=_0x13a304['form'],_0x13a304[_0x3b9713(0x18e)]=_0x13a304[_0x3b9713(0x18e)][_0x3b9713(0x16d)](_0xfacdc7=>_0x3b9713(0x19c)==_0xfacdc7[_0x3b9713(0x193)]);}async['parseFormConfigs'](){const _0x1275f6=a0_0x238035;this[_0x1275f6(0x16c)]=await MetaApi[_0x1275f6(0x156)](this);}get[a0_0x238035(0x16f)](){const _0x5c6107=a0_0x238035;return this[_0x5c6107(0x169)](this[_0x5c6107(0x168)][_0x5c6107(0x19a)]);}get[a0_0x238035(0x18c)](){const _0x52e584=a0_0x238035;if(ValueUtil[_0x52e584(0x16b)]((this['record']||{})[_0x52e584(0x147)]))return{};let _0x33678b={};return Object[_0x52e584(0x192)](this[_0x52e584(0x168)][_0x52e584(0x147)])[_0x52e584(0x182)](([_0x47a09f,_0x3931d5])=>{const _0x35c481=_0x52e584;0x0==_0x47a09f[_0x35c481(0x15e)]('__')&&(_0x33678b[_0x47a09f]=_0x3931d5[_0x35c481(0x170)]);}),_0x33678b;}get[a0_0x238035(0x15c)](){const _0x517a8d=a0_0x238035;return this[_0x517a8d(0x169)](this['record']);}['removeGarbageData'](_0x3a5211){const _0x3359a5=a0_0x238035;let _0x546b43={};if(_0x3a5211)return Object[_0x3359a5(0x192)](_0x3a5211)['map'](([_0x499b11,_0x2d43cc])=>{const _0x2778ac=_0x3359a5;0x0==_0x499b11[_0x2778ac(0x15e)]('__')&&(_0x546b43[_0x499b11]=_0x2d43cc);}),_0x546b43;}get[a0_0x238035(0x152)](){const _0xa79c7a=a0_0x238035;let _0xd41daf=this['dirtyData'],_0xf65a95=this[_0xa79c7a(0x168)],_0x5dd14e=(this[_0xa79c7a(0x177)]||[])['filter'](_0x104622=>'code-input'===_0x104622[_0xa79c7a(0x154)])[_0xa79c7a(0x182)](_0x3a947d=>_0x3a947d['name']);if(!ValueUtil['isEmpty'](_0xd41daf))return ValueUtil['isNotEmpty'](_0xf65a95['id'])?(_0xd41daf['id']=_0xf65a95['id'],_0xd41daf[_0xa79c7a(0x14f)]='M'):_0xd41daf[_0xa79c7a(0x14f)]='+',Object[_0xa79c7a(0x14e)](_0xd41daf)[_0xa79c7a(0x159)](_0x54303c=>{const _0x539658=_0xa79c7a;'object'==typeof _0xd41daf[_0x54303c]&&0x0==_0x5dd14e[_0x539658(0x17e)](_0x54303c)&&(_0xd41daf[_0x54303c]={'id':_0xd41daf[_0x54303c]['id']});}),[_0xd41daf];}async[a0_0x238035(0x14c)](){const _0x879e4f=a0_0x238035;if(ValueUtil[_0x879e4f(0x16b)](this[_0x879e4f(0x151)]))return;let _0x576db4=await this[_0x879e4f(0x189)](this[_0x879e4f(0x151)]);_0x576db4[_0x879e4f(0x17f)]=0x1;let _0xc8fdbc={};Object[_0x879e4f(0x172)](_0xc8fdbc,_0x576db4),_0x576db4[_0x879e4f(0x19a)]=_0xc8fdbc,this['record']={..._0x576db4};}async[a0_0x238035(0x19c)](){const _0x5534ba=a0_0x238035;let _0x1276f5=this['patchData'];if(ValueUtil[_0x5534ba(0x16b)](_0x1276f5))return void MetaApi[_0x5534ba(0x146)]('title.info','text.NOTHING_CHANGED');let _0x34d076={};(this[_0x5534ba(0x177)]||[])[_0x5534ba(0x16d)](_0x1a70b5=>!0x0===_0x1a70b5[_0x5534ba(0x14d)])[_0x5534ba(0x159)](_0x546cdf=>{const _0x21705e=_0x5534ba;_0x34d076[_0x546cdf[_0x21705e(0x193)]]=_0x546cdf[_0x21705e(0x17c)];});let _0x2c6b2a=this[_0x5534ba(0x15c)];for(let _0x3005c2 in _0x34d076)if(void 0x0===_0x2c6b2a[_0x3005c2]||''==_0x2c6b2a[_0x3005c2])return void UiUtil['showAlertPopup']('text.check-mandatory',TermsUtil[_0x5534ba(0x173)](_0x5534ba(0x181),{'x':TermsUtil['tLabel'](_0x34d076[_0x3005c2])}),_0x5534ba(0x155),_0x5534ba(0x164));let _0x5c0c23=await this[_0x5534ba(0x14a)](_0x1276f5);return _0x5c0c23&&await this[_0x5534ba(0x14c)](),_0x5c0c23;}async['clear'](){const _0x4a2c35=a0_0x238035;this[_0x4a2c35(0x168)]&&(this['record']={});}[a0_0x238035(0x17a)](){const _0xadedc7=a0_0x238035;return this[_0xadedc7(0x15c)]||{};}};
@@ -1 +1 @@
1
- function a0_0x11a6(_0x2bc67a,_0x2151d5){const _0x4e96bd=a0_0x4e96();return a0_0x11a6=function(_0x11a61f,_0x219bc9){_0x11a61f=_0x11a61f-0xdf;let _0x549982=_0x4e96bd[_0x11a61f];return _0x549982;},a0_0x11a6(_0x2bc67a,_0x2151d5);}const a0_0x32286b=a0_0x11a6;(function(_0x2e5a6f,_0x293909){const _0xd42e72=a0_0x11a6,_0x2488ef=_0x2e5a6f();while(!![]){try{const _0x4f0d62=parseInt(_0xd42e72(0x10c))/0x1*(parseInt(_0xd42e72(0x127))/0x2)+parseInt(_0xd42e72(0xe4))/0x3+parseInt(_0xd42e72(0x126))/0x4+parseInt(_0xd42e72(0x101))/0x5+-parseInt(_0xd42e72(0x116))/0x6+parseInt(_0xd42e72(0xe2))/0x7+-parseInt(_0xd42e72(0xfb))/0x8*(parseInt(_0xd42e72(0x108))/0x9);if(_0x4f0d62===_0x293909)break;else _0x2488ef['push'](_0x2488ef['shift']());}catch(_0x5b1f7b){_0x2488ef['push'](_0x2488ef['shift']());}}}(a0_0x4e96,0x4a213));function a0_0x4e96(){const _0x1e18a7=['___data','useFilterForm','actions','gristConfigSet','findOne','exportable','gridColumnConfig','exportableData','gridEmphasized','type','parseGristConfigs','getBasicGristTabStyles','clear','name','export','operator','grid_column','88VBOcXu','searchFieldValues','header','meta-tab-element','patchesForUpdateMultiple','record','293285NBSKQS','updateMultiple','records','shadowRoot','options','searchFields','stringify','337779QPvtAm','beforeFetch','getGristTabHtml','delete','59OXsZCi','firstUpdated','getContextObject','getSelectedIdList','querySelector','filterFormId','filter','fetch','importable','tTitle','271188BMoWPU','properties','useMasterFilterForm','ox-grist','searchConfig','gristId','dataSet','keys','grid','isElement','menuInfo','renderRoot','getAndParseMenuMeta','getParams','startsWith','ox-filters-form-base','426692KMOsPX','6686XFMaqo','getData','filterForm','value','grist','detailElement','deleteByIds','columns','map','parseGridConfigSet','push','isNotEmpty','2417576lHIweh','pageInitialized','161217UkagzN','connectedCallback','main','search','import','forEach'];a0_0x4e96=function(){return _0x1e18a7;};return a0_0x4e96();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x3e240b=>class extends MetaButtonMixin(_0x3e240b){static get['styles'](){const _0x39e4dc=a0_0x11a6;return MetaApi[_0x39e4dc(0xf5)]();}static get[a0_0x32286b(0x117)](){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_0x32286b(0x12b)](){const _0x15fb30=a0_0x32286b;return this[_0x15fb30(0x121)][_0x15fb30(0x110)](this['gristId']);}get[a0_0x32286b(0x129)](){const _0x308315=a0_0x32286b;return this[_0x308315(0x104)]?.[_0x308315(0x110)](this[_0x308315(0x111)]);}get[a0_0x32286b(0x12c)](){const _0x4c134c=a0_0x32286b;return this[_0x4c134c(0x104)][_0x4c134c(0x110)]('#detail');}get['context'](){const _0x1ae8ea=a0_0x32286b;let _0x2ef0af=MetaUiUtil[_0x1ae8ea(0x10e)](this);return _0x2ef0af[_0x1ae8ea(0xec)]&&delete _0x2ef0af['actions'],_0x2ef0af['exportable']&&delete _0x2ef0af[_0x1ae8ea(0xef)],_0x2ef0af[_0x1ae8ea(0x114)]&&delete _0x2ef0af[_0x1ae8ea(0x114)],_0x2ef0af;}async[a0_0x32286b(0xe5)](){const _0xf237aa=a0_0x32286b;this[_0xf237aa(0x11b)]=_0xf237aa(0x119),this['filterFormId']=_0xf237aa(0x125),await this[_0xf237aa(0x122)](),this[_0xf237aa(0x11f)]&&await this[_0xf237aa(0xf4)](),this['activityDataSet']&&(this[_0xf237aa(0x11c)]=(this['activityDataSet']||{})[_0xf237aa(0xe6)]),super[_0xf237aa(0xe5)]&&await super[_0xf237aa(0xe5)]();}async[a0_0x32286b(0x10d)](){const _0xf85581=a0_0x32286b;super[_0xf85581(0x10d)]&&await super[_0xf85581(0x10d)]();}async[a0_0x32286b(0xe3)](){const _0x4b9f00=a0_0x32286b;this['isPage']&&await this['parseGristConfigs'](),super[_0x4b9f00(0xe3)]&&await super['pageInitialized']();}['render'](){const _0x562552=a0_0x32286b;return MetaApi[_0x562552(0x10a)](this);}['parseBasicGridConfigs'](_0x5e597d){const _0x15a788=a0_0x32286b;this['gridConfig']=_0x5e597d[_0x15a788(0x11e)],this[_0x15a788(0xf0)]=_0x5e597d[_0x15a788(0xfa)],this[_0x15a788(0x11a)]=_0x5e597d[_0x15a788(0xe7)],this[_0x15a788(0xf2)]=_0x5e597d[_0x15a788(0xf2)];}async[a0_0x32286b(0xf4)](){const _0x4a7cf5=a0_0x32286b;this[_0x4a7cf5(0xed)]=await MetaApi[_0x4a7cf5(0xdf)](this),this[_0x4a7cf5(0x118)]=!0x0===this[_0x4a7cf5(0xeb)],this[_0x4a7cf5(0xeb)]=!0x1,this[_0x4a7cf5(0xfc)]=[],this[_0x4a7cf5(0x106)]=this[_0x4a7cf5(0xed)][_0x4a7cf5(0x12e)]['filter'](_0x507f9f=>_0x507f9f[_0x4a7cf5(0x112)])[_0x4a7cf5(0x12f)](_0xa15d8=>{const _0x8254d2=_0x4a7cf5;let _0x174cfe={'name':_0xa15d8[_0x8254d2(0xf7)],'type':_0x8254d2(0xe7)===_0xa15d8[_0x8254d2(0x112)][_0x8254d2(0xf9)]?_0x8254d2(0xe7):_0xa15d8[_0x8254d2(0xf3)],'label':_0xa15d8[_0x8254d2(0xfd)],'operator':_0xa15d8['filter'][_0x8254d2(0xf9)]?_0xa15d8[_0x8254d2(0x112)][_0x8254d2(0xf9)]:'eq'};return _0xa15d8[_0x8254d2(0x112)][_0x8254d2(0x105)]&&(_0x174cfe[_0x8254d2(0x105)]=_0xa15d8[_0x8254d2(0x112)]['options']),_0xa15d8[_0x8254d2(0x100)][_0x8254d2(0x105)]&&(_0x174cfe['options']=_0xa15d8['record'][_0x8254d2(0x105)]),_0xa15d8['filter'][_0x8254d2(0x12a)]&&this[_0x8254d2(0xfc)][_0x8254d2(0xe0)]({'name':_0x174cfe[_0x8254d2(0xf7)],'operator':_0x174cfe[_0x8254d2(0xf9)],'value':_0xa15d8['filter'][_0x8254d2(0x12a)]}),delete _0xa15d8['filter'],_0x174cfe;});}async['fetch'](){const _0x22c32e=a0_0x32286b;await this[_0x22c32e(0x12b)][_0x22c32e(0x113)]();}async[a0_0x32286b(0x109)]({page:_0x30891c=0x0,limit:_0x359472=0x0,sortings:_0x341a4c=[],filters:_0x486f52=[]}){const _0x54c573=a0_0x32286b;let _0x527a64=this[_0x54c573(0x121)][_0x54c573(0x110)](_0x54c573(0xfe));return await _0x527a64[_0x54c573(0xf6)](),!0x0;}async['save'](){const _0x45796f=a0_0x32286b;let _0x37157e=MetaApi[_0x45796f(0xff)](this['grist']);!!ValueUtil[_0x45796f(0xe1)](_0x37157e)&&await this[_0x45796f(0x102)](_0x37157e)&&this['fetch']();}async['find'](){const _0x1bf0c6=a0_0x32286b;let _0x46337a=MetaApi[_0x1bf0c6(0x10f)](this[_0x1bf0c6(0x12b)],!0x0);return ValueUtil[_0x1bf0c6(0xe1)](_0x46337a)?await this[_0x1bf0c6(0xee)](_0x46337a[0x0]):{};}async[a0_0x32286b(0x10b)](){const _0x7a133f=a0_0x32286b;let _0x325d08=MetaApi[_0x7a133f(0x10f)](this['grist'],!0x0);!!ValueUtil[_0x7a133f(0xe1)](_0x325d08)&&await this[_0x7a133f(0x12d)](_0x325d08)&&this[_0x7a133f(0x113)]();}async[a0_0x32286b(0xf8)](){const _0x21c33a=a0_0x32286b;let _0x58fe1f=TermsUtil[_0x21c33a(0x115)](ValueUtil[_0x21c33a(0x123)](this[_0x21c33a(0x120)],'title'));return await MetaApi[_0x21c33a(0xf1)](this[_0x21c33a(0x11f)],_0x58fe1f,this['grist']);}async[a0_0x32286b(0xe8)](){}[a0_0x32286b(0x128)](){const _0x42470=a0_0x32286b;let _0x2c3ca8=this[_0x42470(0x12b)][_0x42470(0xea)][_0x42470(0x103)];return _0x2c3ca8=JSON['parse'](JSON[_0x42470(0x107)](_0x2c3ca8)),_0x2c3ca8[_0x42470(0xe9)](_0x3523b0=>{const _0x55485d=_0x42470;Object[_0x55485d(0x11d)](_0x3523b0)[_0x55485d(0xe9)](_0x2df643=>{const _0x52a89b=_0x55485d;_0x2df643[_0x52a89b(0x124)]('__')&&delete _0x3523b0[_0x2df643];});}),{'main':_0x2c3ca8,'detail':this[_0x42470(0x121)][_0x42470(0x110)](_0x42470(0xfe))['getData']()};}};
1
+ const a0_0x3a64dc=a0_0x1fc4;(function(_0x36153e,_0x35ca80){const _0x45f679=a0_0x1fc4,_0x50ddda=_0x36153e();while(!![]){try{const _0x239a06=parseInt(_0x45f679(0x1e8))/0x1*(-parseInt(_0x45f679(0x1c8))/0x2)+-parseInt(_0x45f679(0x1d2))/0x3+parseInt(_0x45f679(0x1dc))/0x4+-parseInt(_0x45f679(0x1c4))/0x5*(parseInt(_0x45f679(0x1dd))/0x6)+-parseInt(_0x45f679(0x1b5))/0x7*(parseInt(_0x45f679(0x1c6))/0x8)+parseInt(_0x45f679(0x1d1))/0x9*(parseInt(_0x45f679(0x1d9))/0xa)+parseInt(_0x45f679(0x1a3))/0xb;if(_0x239a06===_0x35ca80)break;else _0x50ddda['push'](_0x50ddda['shift']());}catch(_0x1cd869){_0x50ddda['push'](_0x50ddda['shift']());}}}(a0_0x5992,0x5f47d));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5992(){const _0x3e425a=['title','parseBasicGridConfigs','grist','dataSet','getSelectedIdList','searchConfig','filter','forEach','find','isElement','isNotEmpty','renderRoot','getContextObject','useMasterFilterForm','7jzhiLM','getData','#detail','operator','activityDataSet','meta-tab-element','options','push','header','firstUpdated','import','parseGridConfigSet','startsWith','isPage','deleteByIds','310YbNWns','importable','4027144LSSYme','gristConfigSet','580876DSaQBn','getGristTabHtml','gristId','searchFields','getBasicGristTabStyles','render','map','getParams','clear','4059XXaEkL','2093952MIWJep','delete','ox-filters-form-base','styles','grid_column','records','actions','2190WtVSJQ','pageInitialized','findOne','1900716eERuHO','41874DXYaRG','record','parseGristConfigs','grid','gridEmphasized','fetch','stringify','value','searchFieldValues','ox-grist','tTitle','2EfChcJ','export','useFilterForm','parse','search','context','filterForm','connectedCallback','querySelector','shadowRoot','22343992bszale','gridColumnConfig','type','exportable'];a0_0x5992=function(){return _0x3e425a;};return a0_0x5992();}import{UiUtil}from'../utils/ui-util';function a0_0x1fc4(_0x149b20,_0x297ba2){const _0x599268=a0_0x5992();return a0_0x1fc4=function(_0x1fc4c2,_0x6bd911){_0x1fc4c2=_0x1fc4c2-0x1a3;let _0x2f9adc=_0x599268[_0x1fc4c2];return _0x2f9adc;},a0_0x1fc4(_0x149b20,_0x297ba2);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x48a1ce=>class extends MetaButtonMixin(_0x48a1ce){static get[a0_0x3a64dc(0x1d5)](){const _0x590d5d=a0_0x3a64dc;return MetaApi[_0x590d5d(0x1cc)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x3a64dc(0x1a9)](){const _0x13600b=a0_0x3a64dc;return this[_0x13600b(0x1b2)][_0x13600b(0x1f0)](this['gristId']);}get[a0_0x3a64dc(0x1ee)](){const _0x1be242=a0_0x3a64dc;return this[_0x1be242(0x1f1)]?.[_0x1be242(0x1f0)](this['filterFormId']);}get['detailElement'](){const _0x28e747=a0_0x3a64dc;return this[_0x28e747(0x1f1)][_0x28e747(0x1f0)](_0x28e747(0x1b7));}get[a0_0x3a64dc(0x1ed)](){const _0x223a3e=a0_0x3a64dc;let _0xcc0f39=MetaUiUtil[_0x223a3e(0x1b3)](this);return _0xcc0f39[_0x223a3e(0x1d8)]&&delete _0xcc0f39[_0x223a3e(0x1d8)],_0xcc0f39[_0x223a3e(0x1a6)]&&delete _0xcc0f39[_0x223a3e(0x1a6)],_0xcc0f39['importable']&&delete _0xcc0f39[_0x223a3e(0x1c5)],_0xcc0f39;}async[a0_0x3a64dc(0x1ef)](){const _0x1516b4=a0_0x3a64dc;this[_0x1516b4(0x1ca)]=_0x1516b4(0x1e6),this['filterFormId']=_0x1516b4(0x1d4),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x1516b4(0x1df)](),this[_0x1516b4(0x1b9)]&&(this[_0x1516b4(0x1aa)]=(this['activityDataSet']||{})['main']),super[_0x1516b4(0x1ef)]&&await super[_0x1516b4(0x1ef)]();}async[a0_0x3a64dc(0x1be)](){const _0x218b90=a0_0x3a64dc;super[_0x218b90(0x1be)]&&await super[_0x218b90(0x1be)]();}async['pageInitialized'](){const _0x277746=a0_0x3a64dc;this[_0x277746(0x1c2)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0x277746(0x1da)]();}[a0_0x3a64dc(0x1cd)](){const _0x5cbae3=a0_0x3a64dc;return MetaApi[_0x5cbae3(0x1c9)](this);}[a0_0x3a64dc(0x1a8)](_0x193061){const _0x23cffb=a0_0x3a64dc;this['gridConfig']=_0x193061[_0x23cffb(0x1e0)],this[_0x23cffb(0x1a4)]=_0x193061[_0x23cffb(0x1d6)],this[_0x23cffb(0x1ac)]=_0x193061[_0x23cffb(0x1ec)],this[_0x23cffb(0x1e1)]=_0x193061[_0x23cffb(0x1e1)];}async[a0_0x3a64dc(0x1df)](){const _0x56ccb2=a0_0x3a64dc;this[_0x56ccb2(0x1c7)]=await MetaApi[_0x56ccb2(0x1c0)](this),this[_0x56ccb2(0x1b4)]=!0x0===this[_0x56ccb2(0x1ea)],this[_0x56ccb2(0x1ea)]=!0x1,this['searchFieldValues']=[],this[_0x56ccb2(0x1cb)]=this['gristConfigSet']['columns'][_0x56ccb2(0x1ad)](_0x27cb8c=>_0x27cb8c['filter'])[_0x56ccb2(0x1ce)](_0x2d1ee1=>{const _0x2b96b3=_0x56ccb2;let _0x2026e6={'name':_0x2d1ee1['name'],'type':'search'===_0x2d1ee1['filter']['operator']?_0x2b96b3(0x1ec):_0x2d1ee1[_0x2b96b3(0x1a5)],'label':_0x2d1ee1[_0x2b96b3(0x1bd)],'operator':_0x2d1ee1[_0x2b96b3(0x1ad)]['operator']?_0x2d1ee1['filter'][_0x2b96b3(0x1b8)]:'eq'};return _0x2d1ee1[_0x2b96b3(0x1ad)]['options']&&(_0x2026e6[_0x2b96b3(0x1bb)]=_0x2d1ee1[_0x2b96b3(0x1ad)][_0x2b96b3(0x1bb)]),_0x2d1ee1[_0x2b96b3(0x1de)]['options']&&(_0x2026e6[_0x2b96b3(0x1bb)]=_0x2d1ee1['record'][_0x2b96b3(0x1bb)]),_0x2d1ee1[_0x2b96b3(0x1ad)][_0x2b96b3(0x1e4)]&&this[_0x2b96b3(0x1e5)][_0x2b96b3(0x1bc)]({'name':_0x2026e6['name'],'operator':_0x2026e6[_0x2b96b3(0x1b8)],'value':_0x2d1ee1['filter'][_0x2b96b3(0x1e4)]}),delete _0x2d1ee1[_0x2b96b3(0x1ad)],_0x2026e6;});}async[a0_0x3a64dc(0x1e2)](){const _0x263632=a0_0x3a64dc;await this[_0x263632(0x1a9)]['fetch']();}async['beforeFetch']({page:_0x417744=0x0,limit:_0x3428e9=0x0,sortings:_0x1cda55=[],filters:_0x5de362=[]}){const _0x26ceb6=a0_0x3a64dc;let _0x3e9082=this[_0x26ceb6(0x1b2)][_0x26ceb6(0x1f0)](_0x26ceb6(0x1ba));return await _0x3e9082[_0x26ceb6(0x1d0)](),!0x0;}async['save'](){const _0x19aeaa=a0_0x3a64dc;let _0x47ea74=MetaApi['patchesForUpdateMultiple'](this[_0x19aeaa(0x1a9)]);!!ValueUtil['isNotEmpty'](_0x47ea74)&&await this['updateMultiple'](_0x47ea74)&&this[_0x19aeaa(0x1e2)]();}async[a0_0x3a64dc(0x1af)](){const _0x5ac60f=a0_0x3a64dc;let _0x3a50f7=MetaApi[_0x5ac60f(0x1ab)](this[_0x5ac60f(0x1a9)],!0x0);return ValueUtil[_0x5ac60f(0x1b1)](_0x3a50f7)?await this[_0x5ac60f(0x1db)](_0x3a50f7[0x0]):{};}async[a0_0x3a64dc(0x1d3)](){const _0x5d5739=a0_0x3a64dc;let _0x1fd158=MetaApi[_0x5d5739(0x1ab)](this['grist'],!0x0);!!ValueUtil[_0x5d5739(0x1b1)](_0x1fd158)&&await this[_0x5d5739(0x1c3)](_0x1fd158)&&this[_0x5d5739(0x1e2)]();}async[a0_0x3a64dc(0x1e9)](){const _0x3fb0ad=a0_0x3a64dc;let _0x45a740=TermsUtil[_0x3fb0ad(0x1e7)](ValueUtil[_0x3fb0ad(0x1cf)](this['menuInfo'],_0x3fb0ad(0x1a7)));return await MetaApi['exportableData'](this[_0x3fb0ad(0x1b0)],_0x45a740,this[_0x3fb0ad(0x1a9)]);}async[a0_0x3a64dc(0x1bf)](){}[a0_0x3a64dc(0x1b6)](){const _0x2a29b5=a0_0x3a64dc;let _0x5c6cd2=this['grist']['___data'][_0x2a29b5(0x1d7)];return _0x5c6cd2=JSON[_0x2a29b5(0x1eb)](JSON[_0x2a29b5(0x1e3)](_0x5c6cd2)),_0x5c6cd2[_0x2a29b5(0x1ae)](_0x33822e=>{const _0x10b81b=_0x2a29b5;Object['keys'](_0x33822e)[_0x10b81b(0x1ae)](_0x38720d=>{const _0x20889b=_0x10b81b;_0x38720d[_0x20889b(0x1c1)]('__')&&delete _0x33822e[_0x38720d];});}),{'main':_0x5c6cd2,'detail':this[_0x2a29b5(0x1b2)][_0x2a29b5(0x1f0)](_0x2a29b5(0x1ba))['getData']()};}};
@@ -1 +1 @@
1
- const a0_0x44a5cc=a0_0x3025;(function(_0x6caf06,_0x1a1429){const _0x51f109=a0_0x3025,_0x5efec5=_0x6caf06();while(!![]){try{const _0x28bb5d=parseInt(_0x51f109(0xf5))/0x1*(parseInt(_0x51f109(0x107))/0x2)+-parseInt(_0x51f109(0xf2))/0x3*(parseInt(_0x51f109(0xee))/0x4)+-parseInt(_0x51f109(0x121))/0x5*(parseInt(_0x51f109(0x111))/0x6)+-parseInt(_0x51f109(0x109))/0x7*(-parseInt(_0x51f109(0x116))/0x8)+-parseInt(_0x51f109(0x112))/0x9*(parseInt(_0x51f109(0x127))/0xa)+parseInt(_0x51f109(0xf1))/0xb*(-parseInt(_0x51f109(0xfa))/0xc)+parseInt(_0x51f109(0xf3))/0xd;if(_0x28bb5d===_0x1a1429)break;else _0x5efec5['push'](_0x5efec5['shift']());}catch(_0x166298){_0x5efec5['push'](_0x5efec5['shift']());}}}(a0_0x438a,0xdffcd));function a0_0x438a(){const _0x2653f4=['gristId','isPage','exportable','parseBasicGridConfigs','1560970ezYBCT','clear','dataSet','actions','fetch','searchFields','ox-grist','render','gristConfigSet','getData','6696uYhqGn','push','grid_column','418SDFjgF','2490novmGR','36547420AnViUR','useButtonExport','46219NktQYQ','useMasterFilterForm','buttonConfig','masterElement','filterFormId','105660Tjzdya','map','operator','name','getContextObject','options','filterForm','importable','search','parseGristConfigs','value','useFilterForm','main','8FmGGzI','searchFieldValues','6013qDjgyx','columns','connectedCallback','getMainTabHtml','firstUpdated','gridConfig','header','gridEmphasized','62742mZfeAM','27OyvpoK','filter','grist','pageInitialized','10504htCefT','useButtonImport','activityDataSet','ox-filters-form-base','type','parseGridConfigSet','shadowRoot','getMainGrist','getBasicMainTabStyles','record','searchConfig','485WOfnDw','gridColumnConfig'];a0_0x438a=function(){return _0x2653f4;};return a0_0x438a();}function a0_0x3025(_0x5cf822,_0x3eb04b){const _0x438ae4=a0_0x438a();return a0_0x3025=function(_0x3025d4,_0x1be8e5){_0x3025d4=_0x3025d4-0xea;let _0xedd403=_0x438ae4[_0x3025d4];return _0xedd403;},a0_0x3025(_0x5cf822,_0x3eb04b);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x36ddcd=>class extends MetaButtonMixin(_0x36ddcd){static get['styles'](){const _0xa6c37b=a0_0x3025;return MetaApi[_0xa6c37b(0x11e)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x44a5cc(0x114)](){const _0x5d9f51=a0_0x44a5cc;return this[_0x5d9f51(0xf8)][_0x5d9f51(0x11d)]();}get[a0_0x44a5cc(0x100)](){const _0x14e1b2=a0_0x44a5cc;return this[_0x14e1b2(0x11c)]?.['querySelector'](this[_0x14e1b2(0xf9)]);}get['context'](){const _0x37093d=a0_0x44a5cc;let _0x53bee6=MetaUiUtil[_0x37093d(0xfe)](this);return _0x53bee6[_0x37093d(0x12a)]&&delete _0x53bee6['actions'],_0x53bee6['exportable']&&delete _0x53bee6[_0x37093d(0x125)],_0x53bee6[_0x37093d(0x101)]&&delete _0x53bee6[_0x37093d(0x101)],_0x53bee6;}async[a0_0x44a5cc(0x10b)](){const _0x5cb840=a0_0x44a5cc;this[_0x5cb840(0x123)]=_0x5cb840(0xea),this['filterFormId']=_0x5cb840(0x119),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x5cb840(0x103)](),this[_0x5cb840(0x118)]&&(this[_0x5cb840(0x129)]=(this[_0x5cb840(0x118)]||{})[_0x5cb840(0x106)]),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x44a5cc(0x10d)](){const _0x1b7fb9=a0_0x44a5cc;super[_0x1b7fb9(0x10d)]&&await super[_0x1b7fb9(0x10d)]();}async['pageInitialized'](){const _0xec6c9a=a0_0x44a5cc;this[_0xec6c9a(0x124)]&&await this[_0xec6c9a(0x103)](),super[_0xec6c9a(0x115)]&&await super[_0xec6c9a(0x115)]();}[a0_0x44a5cc(0xeb)](){const _0x19a4ce=a0_0x44a5cc;return MetaApi[_0x19a4ce(0x10c)](this);}[a0_0x44a5cc(0x126)](_0x518d27){const _0x2c488e=a0_0x44a5cc;this[_0x2c488e(0x10e)]=_0x518d27['grid'],this[_0x2c488e(0x122)]=_0x518d27[_0x2c488e(0xf0)],this[_0x2c488e(0x120)]=_0x518d27[_0x2c488e(0x102)],this[_0x2c488e(0x110)]=_0x518d27[_0x2c488e(0x110)];}async[a0_0x44a5cc(0x103)](){const _0x2f02a2=a0_0x44a5cc;this[_0x2f02a2(0xec)]=await MetaApi[_0x2f02a2(0x11b)](this),this[_0x2f02a2(0xf6)]=!0x0===this['useFilterForm'],this[_0x2f02a2(0x105)]=!0x1,this[_0x2f02a2(0xf7)]=void 0x0,this[_0x2f02a2(0xf4)]=!0x1,this[_0x2f02a2(0x117)]=!0x1,this[_0x2f02a2(0x108)]=[],this[_0x2f02a2(0x12c)]=this[_0x2f02a2(0xec)][_0x2f02a2(0x10a)][_0x2f02a2(0x113)](_0x31d7aa=>_0x31d7aa['filter'])[_0x2f02a2(0xfb)](_0x31155c=>{const _0x4fe2ca=_0x2f02a2;let _0x559aa5={'name':_0x31155c[_0x4fe2ca(0xfd)],'type':'search'===_0x31155c[_0x4fe2ca(0x113)][_0x4fe2ca(0xfc)]?'search':_0x31155c[_0x4fe2ca(0x11a)],'label':_0x31155c[_0x4fe2ca(0x10f)],'operator':_0x31155c['filter']['operator']?_0x31155c[_0x4fe2ca(0x113)][_0x4fe2ca(0xfc)]:'eq'};return _0x31155c[_0x4fe2ca(0x113)][_0x4fe2ca(0xff)]&&(_0x559aa5[_0x4fe2ca(0xff)]=_0x31155c['filter']['options']),_0x31155c[_0x4fe2ca(0x11f)][_0x4fe2ca(0xff)]&&(_0x559aa5[_0x4fe2ca(0xff)]=_0x31155c[_0x4fe2ca(0x11f)]['options']),_0x31155c[_0x4fe2ca(0x113)][_0x4fe2ca(0x104)]&&this['searchFieldValues'][_0x4fe2ca(0xef)]({'name':_0x559aa5[_0x4fe2ca(0xfd)],'operator':_0x559aa5[_0x4fe2ca(0xfc)],'value':_0x31155c[_0x4fe2ca(0x113)]['value']}),delete _0x31155c['filter'],_0x559aa5;});}async[a0_0x44a5cc(0x12b)](){const _0x49c93e=a0_0x44a5cc;await this[_0x49c93e(0x114)][_0x49c93e(0x12b)]();}async['beforeFetch']({page:_0x454f98=0x0,limit:_0x1a9c71=0x0,sortings:_0x419443=[],filters:_0x4119e3=[]}){const _0x1f7b37=a0_0x44a5cc;return this[_0x1f7b37(0xf8)]&&this[_0x1f7b37(0xf8)][_0x1f7b37(0x128)]&&await this[_0x1f7b37(0xf8)][_0x1f7b37(0x128)](),!0x0;}[a0_0x44a5cc(0xed)](){const _0x172b1f=a0_0x44a5cc;return{'master':this[_0x172b1f(0xf8)]['getData']()};}};
1
+ const a0_0x389b98=a0_0x3486;(function(_0x2154d1,_0x4a94b9){const _0x10e47b=a0_0x3486,_0x2393f5=_0x2154d1();while(!![]){try{const _0x39f0a1=-parseInt(_0x10e47b(0x147))/0x1+parseInt(_0x10e47b(0x152))/0x2+parseInt(_0x10e47b(0x14e))/0x3+-parseInt(_0x10e47b(0x157))/0x4+parseInt(_0x10e47b(0x16b))/0x5*(-parseInt(_0x10e47b(0x170))/0x6)+-parseInt(_0x10e47b(0x146))/0x7+-parseInt(_0x10e47b(0x164))/0x8*(-parseInt(_0x10e47b(0x137))/0x9);if(_0x39f0a1===_0x4a94b9)break;else _0x2393f5['push'](_0x2393f5['shift']());}catch(_0x5a7732){_0x2393f5['push'](_0x2393f5['shift']());}}}(a0_0x21c6,0xe73a5));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x21c6(){const _0x358f7d=['getAndParseMenuMeta','22520696oGIWSg','name','shadowRoot','useButtonImport','buttonConfig','parseGristConfigs','filterForm','15BXBpQJ','searchConfig','gridConfig','getBasicMainTabStyles','useButtonExport','2656926NQTKtr','querySelector','ox-filters-form-base','beforeFetch','operator','activityDataSet','9pldqOg','getContextObject','styles','type','clear','record','options','value','gridEmphasized','grid_column','getMainTabHtml','main','push','properties','connectedCallback','12512353joMvyN','1533069uWdFBA','filter','header','gristId','isPage','firstUpdated','gridColumnConfig','4310937IvYEGb','fetch','pageInitialized','searchFieldValues','3553276kMIOZo','ox-grist','useMasterFilterForm','gristConfigSet','render','1730336qUDhuV','exportable','useFilterForm','masterElement','getData','grist','filterFormId','search','isElement','actions','parseBasicGridConfigs','map'];a0_0x21c6=function(){return _0x358f7d;};return a0_0x21c6();}import{TermsUtil}from'../utils/terms-util';function a0_0x3486(_0x3f1ca6,_0xb10bb8){const _0x21c6e2=a0_0x21c6();return a0_0x3486=function(_0x3486f8,_0x4aa4e4){_0x3486f8=_0x3486f8-0x137;let _0x28dd65=_0x21c6e2[_0x3486f8];return _0x28dd65;},a0_0x3486(_0x3f1ca6,_0xb10bb8);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x47bebf=>class extends MetaButtonMixin(_0x47bebf){static get[a0_0x389b98(0x139)](){const _0x4fd0c4=a0_0x389b98;return MetaApi[_0x4fd0c4(0x16e)]();}static get[a0_0x389b98(0x144)](){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_0x389b98(0x15c)](){const _0x276616=a0_0x389b98;return this[_0x276616(0x15a)]['getMainGrist']();}get[a0_0x389b98(0x16a)](){const _0x5a2ba9=a0_0x389b98;return this[_0x5a2ba9(0x166)]?.[_0x5a2ba9(0x171)](this['filterFormId']);}get['context'](){const _0x96da7d=a0_0x389b98;let _0x5123e2=MetaUiUtil[_0x96da7d(0x138)](this);return _0x5123e2[_0x96da7d(0x160)]&&delete _0x5123e2[_0x96da7d(0x160)],_0x5123e2[_0x96da7d(0x158)]&&delete _0x5123e2[_0x96da7d(0x158)],_0x5123e2['importable']&&delete _0x5123e2['importable'],_0x5123e2;}async[a0_0x389b98(0x145)](){const _0x1a28bd=a0_0x389b98;this[_0x1a28bd(0x14a)]=_0x1a28bd(0x153),this[_0x1a28bd(0x15d)]=_0x1a28bd(0x172),await this[_0x1a28bd(0x163)](),this[_0x1a28bd(0x15f)]&&await this[_0x1a28bd(0x169)](),this[_0x1a28bd(0x175)]&&(this['dataSet']=(this[_0x1a28bd(0x175)]||{})[_0x1a28bd(0x142)]),super['connectedCallback']&&await super[_0x1a28bd(0x145)]();}async[a0_0x389b98(0x14c)](){const _0x26115f=a0_0x389b98;super[_0x26115f(0x14c)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x4fbd00=a0_0x389b98;this[_0x4fbd00(0x14b)]&&await this[_0x4fbd00(0x169)](),super['pageInitialized']&&await super[_0x4fbd00(0x150)]();}[a0_0x389b98(0x156)](){const _0x4cb7e7=a0_0x389b98;return MetaApi[_0x4cb7e7(0x141)](this);}[a0_0x389b98(0x161)](_0x2497c5){const _0x206276=a0_0x389b98;this[_0x206276(0x16d)]=_0x2497c5['grid'],this[_0x206276(0x14d)]=_0x2497c5[_0x206276(0x140)],this[_0x206276(0x16c)]=_0x2497c5[_0x206276(0x15e)],this['gridEmphasized']=_0x2497c5[_0x206276(0x13f)];}async[a0_0x389b98(0x169)](){const _0xc701f=a0_0x389b98;this[_0xc701f(0x155)]=await MetaApi['parseGridConfigSet'](this),this[_0xc701f(0x154)]=!0x0===this[_0xc701f(0x159)],this[_0xc701f(0x159)]=!0x1,this[_0xc701f(0x168)]=void 0x0,this[_0xc701f(0x16f)]=!0x1,this[_0xc701f(0x167)]=!0x1,this[_0xc701f(0x151)]=[],this['searchFields']=this['gristConfigSet']['columns'][_0xc701f(0x148)](_0x568733=>_0x568733['filter'])[_0xc701f(0x162)](_0x1d5e3f=>{const _0x2ed537=_0xc701f;let _0x54f20e={'name':_0x1d5e3f['name'],'type':_0x2ed537(0x15e)===_0x1d5e3f['filter'][_0x2ed537(0x174)]?_0x2ed537(0x15e):_0x1d5e3f[_0x2ed537(0x13a)],'label':_0x1d5e3f[_0x2ed537(0x149)],'operator':_0x1d5e3f[_0x2ed537(0x148)]['operator']?_0x1d5e3f[_0x2ed537(0x148)][_0x2ed537(0x174)]:'eq'};return _0x1d5e3f[_0x2ed537(0x148)][_0x2ed537(0x13d)]&&(_0x54f20e['options']=_0x1d5e3f[_0x2ed537(0x148)][_0x2ed537(0x13d)]),_0x1d5e3f[_0x2ed537(0x13c)]['options']&&(_0x54f20e[_0x2ed537(0x13d)]=_0x1d5e3f['record'][_0x2ed537(0x13d)]),_0x1d5e3f[_0x2ed537(0x148)][_0x2ed537(0x13e)]&&this['searchFieldValues'][_0x2ed537(0x143)]({'name':_0x54f20e[_0x2ed537(0x165)],'operator':_0x54f20e['operator'],'value':_0x1d5e3f[_0x2ed537(0x148)]['value']}),delete _0x1d5e3f[_0x2ed537(0x148)],_0x54f20e;});}async[a0_0x389b98(0x14f)](){const _0x46651c=a0_0x389b98;await this[_0x46651c(0x15c)][_0x46651c(0x14f)]();}async[a0_0x389b98(0x173)]({page:_0x5cab35=0x0,limit:_0x51c812=0x0,sortings:_0x3ab009=[],filters:_0xbb4e0f=[]}){const _0x49e1ae=a0_0x389b98;return this[_0x49e1ae(0x15a)]&&this['masterElement'][_0x49e1ae(0x13b)]&&await this[_0x49e1ae(0x15a)][_0x49e1ae(0x13b)](),!0x0;}[a0_0x389b98(0x15b)](){const _0x3b4e33=a0_0x389b98;return{'master':this['masterElement'][_0x3b4e33(0x15b)]()};}};
@@ -1 +1 @@
1
- const a0_0x100755=a0_0x6507;(function(_0x1e3075,_0x504f7a){const _0x3222f8=a0_0x6507,_0x1f51f3=_0x1e3075();while(!![]){try{const _0x18b745=parseInt(_0x3222f8(0x106))/0x1*(-parseInt(_0x3222f8(0xf5))/0x2)+parseInt(_0x3222f8(0x123))/0x3+parseInt(_0x3222f8(0xdf))/0x4*(-parseInt(_0x3222f8(0x10a))/0x5)+-parseInt(_0x3222f8(0x11a))/0x6*(-parseInt(_0x3222f8(0xea))/0x7)+parseInt(_0x3222f8(0x12a))/0x8*(-parseInt(_0x3222f8(0xf0))/0x9)+parseInt(_0x3222f8(0xf7))/0xa+parseInt(_0x3222f8(0x129))/0xb*(parseInt(_0x3222f8(0xe9))/0xc);if(_0x18b745===_0x504f7a)break;else _0x1f51f3['push'](_0x1f51f3['shift']());}catch(_0x17bdbd){_0x1f51f3['push'](_0x1f51f3['shift']());}}}(a0_0x36b5,0x7fc17));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x6507(_0x991272,_0x45730d){const _0x36b570=a0_0x36b5();return a0_0x6507=function(_0x6507ab,_0x271b58){_0x6507ab=_0x6507ab-0xdf;let _0x1e2153=_0x36b570[_0x6507ab];return _0x1e2153;},a0_0x6507(_0x991272,_0x45730d);}function a0_0x36b5(){const _0x49447c=['value','exportable','save','tTitle','4020774IScvsZ','getData','getContextObject','filter','getSelectedIdList','fetch','header','delete','styles','1587933zgKClt','keys','isNotEmpty','exportableData','columns','patchesForUpdateMultiple','77VhXToo','496744SrdWJa','search','parseGristConfigs','4WxBGzQ','forEach','activityDataSet','options','isElement','filterForm','getMasterDetailHtml','___data','find','operator','419304rSTboa','7GGzqQZ','renderRoot','gridEmphasized','import','filterFormId','beforeFetch','27PwYbJW','gridConfig','detailElement','getParams','isPage','1822154qctIdD','ox-filters-form-base','2651640lVpasG','searchFieldValues','searchFields','querySelector','grid_column','ox-grist','useFilterForm','clear','export','record','name','pageInitialized','dataSet','grist','deleteByIds','1kJKjeY','shadowRoot','parseGridConfigSet','gristId','442775AQCcWn','gridColumnConfig','useMasterFilterForm','connectedCallback','firstUpdated','findOne','title','records','importable','stringify','gristConfigSet','getBasicMasterDetailStyles'];a0_0x36b5=function(){return _0x49447c;};return a0_0x36b5();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x3d0822=>class extends MetaButtonMixin(_0x3d0822){static get[a0_0x100755(0x122)](){const _0x28ca8c=a0_0x100755;return MetaApi[_0x28ca8c(0x115)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x100755(0x104)](){const _0x2b1786=a0_0x100755;return this[_0x2b1786(0xeb)][_0x2b1786(0xfa)](this[_0x2b1786(0x109)]);}get[a0_0x100755(0xe4)](){const _0x365f25=a0_0x100755;return this[_0x365f25(0x107)]?.[_0x365f25(0xfa)](this[_0x365f25(0xee)]);}get['context'](){const _0x369ab5=a0_0x100755;let _0x5dcc2a=MetaUiUtil[_0x369ab5(0x11c)](this);return _0x5dcc2a['actions']&&delete _0x5dcc2a['actions'],_0x5dcc2a['exportable']&&delete _0x5dcc2a[_0x369ab5(0x117)],_0x5dcc2a[_0x369ab5(0x112)]&&delete _0x5dcc2a[_0x369ab5(0x112)],_0x5dcc2a;}async[a0_0x100755(0x10d)](){const _0x3775d9=a0_0x100755;this[_0x3775d9(0x109)]=_0x3775d9(0xfc),this['filterFormId']=_0x3775d9(0xf6),await this['getAndParseMenuMeta'](),this[_0x3775d9(0xe3)]&&await this[_0x3775d9(0x12c)](),this['activityDataSet']&&(this[_0x3775d9(0x103)]=(this[_0x3775d9(0xe1)]||{})['main']),super[_0x3775d9(0x10d)]&&await super[_0x3775d9(0x10d)]();}async[a0_0x100755(0x10e)](){const _0x3f443e=a0_0x100755;super[_0x3f443e(0x10e)]&&await super[_0x3f443e(0x10e)]();}async['pageInitialized'](){const _0x12c144=a0_0x100755;this[_0x12c144(0xf4)]&&await this['parseGristConfigs'](),super[_0x12c144(0x102)]&&await super[_0x12c144(0x102)]();}['render'](){const _0xbabcd7=a0_0x100755;return MetaApi[_0xbabcd7(0xe5)](this);}['parseBasicGridConfigs'](_0x309bf9){const _0xba3806=a0_0x100755;this[_0xba3806(0xf1)]=_0x309bf9['grid'],this[_0xba3806(0x10b)]=_0x309bf9[_0xba3806(0xfb)],this['searchConfig']=_0x309bf9[_0xba3806(0x12b)],this[_0xba3806(0xec)]=_0x309bf9[_0xba3806(0xec)];}async[a0_0x100755(0x12c)](){const _0x2c69f1=a0_0x100755;this[_0x2c69f1(0x114)]=await MetaApi[_0x2c69f1(0x108)](this),this[_0x2c69f1(0x10c)]=!0x0===this[_0x2c69f1(0xfd)],this[_0x2c69f1(0xfd)]=!0x1,this[_0x2c69f1(0xf8)]=[],this[_0x2c69f1(0xf9)]=this[_0x2c69f1(0x114)][_0x2c69f1(0x127)]['filter'](_0x349355=>_0x349355[_0x2c69f1(0x11d)])['map'](_0x151b3d=>{const _0x1dd8ab=_0x2c69f1;let _0x51c6d0={'name':_0x151b3d['name'],'type':_0x1dd8ab(0x12b)===_0x151b3d[_0x1dd8ab(0x11d)][_0x1dd8ab(0xe8)]?_0x1dd8ab(0x12b):_0x151b3d['type'],'label':_0x151b3d[_0x1dd8ab(0x120)],'operator':_0x151b3d['filter'][_0x1dd8ab(0xe8)]?_0x151b3d[_0x1dd8ab(0x11d)][_0x1dd8ab(0xe8)]:'eq'};return _0x151b3d[_0x1dd8ab(0x11d)]['options']&&(_0x51c6d0[_0x1dd8ab(0xe2)]=_0x151b3d[_0x1dd8ab(0x11d)][_0x1dd8ab(0xe2)]),_0x151b3d[_0x1dd8ab(0x100)][_0x1dd8ab(0xe2)]&&(_0x51c6d0['options']=_0x151b3d[_0x1dd8ab(0x100)][_0x1dd8ab(0xe2)]),_0x151b3d[_0x1dd8ab(0x11d)]['value']&&this[_0x1dd8ab(0xf8)]['push']({'name':_0x51c6d0[_0x1dd8ab(0x101)],'operator':_0x51c6d0['operator'],'value':_0x151b3d['filter'][_0x1dd8ab(0x116)]}),delete _0x151b3d['filter'],_0x51c6d0;});}async[a0_0x100755(0x11f)](){const _0x38dfc4=a0_0x100755;await this[_0x38dfc4(0x104)][_0x38dfc4(0x11f)]();}async[a0_0x100755(0xef)]({page:_0x511a41=0x0,limit:_0x3bb514=0x0,sortings:_0x6d874d=[],filters:_0x5a1207=[]}){const _0xb193dd=a0_0x100755;return this['detailElement']&&this[_0xb193dd(0xf2)][_0xb193dd(0xfe)]&&await this[_0xb193dd(0xf2)][_0xb193dd(0xfe)](),!0x0;}async[a0_0x100755(0x118)](){const _0x479b18=a0_0x100755;let _0x2e8c96=MetaApi[_0x479b18(0x128)](this[_0x479b18(0x104)]);!!ValueUtil[_0x479b18(0x125)](_0x2e8c96)&&await this['updateMultiple'](_0x2e8c96)&&this[_0x479b18(0x11f)]();}async[a0_0x100755(0xe7)](){const _0x5c079c=a0_0x100755;let _0x3f1865=MetaApi[_0x5c079c(0x11e)](this[_0x5c079c(0x104)],!0x0);return ValueUtil['isNotEmpty'](_0x3f1865)?await this[_0x5c079c(0x10f)](_0x3f1865[0x0]):{};}async[a0_0x100755(0x121)](){const _0x35641c=a0_0x100755;let _0x2e56f=MetaApi[_0x35641c(0x11e)](this[_0x35641c(0x104)],!0x0);!!ValueUtil[_0x35641c(0x125)](_0x2e56f)&&await this[_0x35641c(0x105)](_0x2e56f)&&this[_0x35641c(0x11f)]();}async[a0_0x100755(0xff)](){const _0x402844=a0_0x100755;let _0x531e00=TermsUtil[_0x402844(0x119)](ValueUtil[_0x402844(0xf3)](this['menuInfo'],_0x402844(0x110)));return await MetaApi[_0x402844(0x126)](this[_0x402844(0xe3)],_0x531e00,this['grist']);}async[a0_0x100755(0xed)](){}['getData'](){const _0x3cc9ad=a0_0x100755;let _0x1ea77e=this[_0x3cc9ad(0x104)][_0x3cc9ad(0xe6)][_0x3cc9ad(0x111)];return _0x1ea77e=JSON['parse'](JSON[_0x3cc9ad(0x113)](_0x1ea77e)),_0x1ea77e['forEach'](_0x51246c=>{const _0x484202=_0x3cc9ad;Object[_0x484202(0x124)](_0x51246c)[_0x484202(0xe0)](_0x5c8efe=>{_0x5c8efe['startsWith']('__')&&delete _0x51246c[_0x5c8efe];});}),{'main':_0x1ea77e,'detail':this[_0x3cc9ad(0xf2)][_0x3cc9ad(0x11b)]()};}};
1
+ const a0_0x2bc4b1=a0_0x94a1;(function(_0x8b4f79,_0x2cd8a0){const _0x1c8fc=a0_0x94a1,_0x58b5ae=_0x8b4f79();while(!![]){try{const _0x239577=parseInt(_0x1c8fc(0x198))/0x1+parseInt(_0x1c8fc(0x1b1))/0x2+parseInt(_0x1c8fc(0x1a2))/0x3+parseInt(_0x1c8fc(0x1b9))/0x4+-parseInt(_0x1c8fc(0x1c6))/0x5+-parseInt(_0x1c8fc(0x1bf))/0x6+parseInt(_0x1c8fc(0x18d))/0x7*(-parseInt(_0x1c8fc(0x1aa))/0x8);if(_0x239577===_0x2cd8a0)break;else _0x58b5ae['push'](_0x58b5ae['shift']());}catch(_0x13552b){_0x58b5ae['push'](_0x58b5ae['shift']());}}}(a0_0x5648,0x79009));function a0_0x5648(){const _0x4d3258=['keys','1189730KbfFTs','ox-filters-form-base','actions','stringify','clear','filterFormId','header','options','2392548oRMaMg','operator','detailElement','gristId','exportableData','properties','3307608JQZuJR','pageInitialized','filter','name','import','getContextObject','grist','1611500dPguvj','connectedCallback','exportable','parseBasicGridConfigs','gridConfig','getMasterDetailHtml','firstUpdated','gridEmphasized','useMasterFilterForm','forEach','isNotEmpty','getAndParseMenuMeta','delete','gristConfigSet','find','updateMultiple','deleteByIds','parseGristConfigs','101220uAwufx','push','querySelector','grid_column','importable','patchesForUpdateMultiple','isElement','searchFields','gridColumnConfig','getSelectedIdList','beforeFetch','470490deKFmG','export','ox-grist','render','tTitle','shadowRoot','value','main','styles','title','1719903snFzDk','columns','getParams','fetch','search','parseGridConfigSet','findOne','filterForm','480uJFOxn','___data','useFilterForm','searchFieldValues','records','activityDataSet'];a0_0x5648=function(){return _0x4d3258;};return a0_0x5648();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x94a1(_0xf29526,_0x3417a5){const _0x5648b2=a0_0x5648();return a0_0x94a1=function(_0x94a133,_0x455832){_0x94a133=_0x94a133-0x185;let _0x3e9426=_0x5648b2[_0x94a133];return _0x3e9426;},a0_0x94a1(_0xf29526,_0x3417a5);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x446554=>class extends MetaButtonMixin(_0x446554){static get[a0_0x2bc4b1(0x1a0)](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x2bc4b1(0x1be)](){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,'detailElement':Object};}get['grist'](){const _0x1b11d2=a0_0x2bc4b1;return this['renderRoot']['querySelector'](this[_0x1b11d2(0x1bc)]);}get[a0_0x2bc4b1(0x1a9)](){const _0x32390c=a0_0x2bc4b1;return this[_0x32390c(0x19d)]?.[_0x32390c(0x18f)](this['filterFormId']);}get['context'](){const _0x343427=a0_0x2bc4b1;let _0x68f24=MetaUiUtil[_0x343427(0x1c4)](this);return _0x68f24['actions']&&delete _0x68f24[_0x343427(0x1b3)],_0x68f24[_0x343427(0x1c8)]&&delete _0x68f24['exportable'],_0x68f24[_0x343427(0x191)]&&delete _0x68f24[_0x343427(0x191)],_0x68f24;}async['connectedCallback'](){const _0x5392aa=a0_0x2bc4b1;this[_0x5392aa(0x1bc)]=_0x5392aa(0x19a),this[_0x5392aa(0x1b6)]=_0x5392aa(0x1b2),await this[_0x5392aa(0x186)](),this[_0x5392aa(0x193)]&&await this[_0x5392aa(0x18c)](),this[_0x5392aa(0x1af)]&&(this['dataSet']=(this[_0x5392aa(0x1af)]||{})[_0x5392aa(0x19f)]),super[_0x5392aa(0x1c7)]&&await super[_0x5392aa(0x1c7)]();}async[a0_0x2bc4b1(0x1cc)](){const _0x31fd19=a0_0x2bc4b1;super[_0x31fd19(0x1cc)]&&await super[_0x31fd19(0x1cc)]();}async[a0_0x2bc4b1(0x1c0)](){const _0x54b1d4=a0_0x2bc4b1;this['isPage']&&await this[_0x54b1d4(0x18c)](),super[_0x54b1d4(0x1c0)]&&await super[_0x54b1d4(0x1c0)]();}[a0_0x2bc4b1(0x19b)](){const _0x2dbe95=a0_0x2bc4b1;return MetaApi[_0x2dbe95(0x1cb)](this);}[a0_0x2bc4b1(0x1c9)](_0x5ee492){const _0x367266=a0_0x2bc4b1;this[_0x367266(0x1ca)]=_0x5ee492['grid'],this[_0x367266(0x195)]=_0x5ee492[_0x367266(0x190)],this['searchConfig']=_0x5ee492[_0x367266(0x1a6)],this[_0x367266(0x1cd)]=_0x5ee492[_0x367266(0x1cd)];}async[a0_0x2bc4b1(0x18c)](){const _0x35332e=a0_0x2bc4b1;this[_0x35332e(0x188)]=await MetaApi[_0x35332e(0x1a7)](this),this[_0x35332e(0x1ce)]=!0x0===this[_0x35332e(0x1ac)],this[_0x35332e(0x1ac)]=!0x1,this[_0x35332e(0x1ad)]=[],this[_0x35332e(0x194)]=this[_0x35332e(0x188)][_0x35332e(0x1a3)][_0x35332e(0x1c1)](_0x16d35b=>_0x16d35b[_0x35332e(0x1c1)])['map'](_0x2c3268=>{const _0x28deba=_0x35332e;let _0x2478a7={'name':_0x2c3268[_0x28deba(0x1c2)],'type':'search'===_0x2c3268['filter']['operator']?_0x28deba(0x1a6):_0x2c3268['type'],'label':_0x2c3268[_0x28deba(0x1b7)],'operator':_0x2c3268['filter']['operator']?_0x2c3268[_0x28deba(0x1c1)]['operator']:'eq'};return _0x2c3268[_0x28deba(0x1c1)][_0x28deba(0x1b8)]&&(_0x2478a7[_0x28deba(0x1b8)]=_0x2c3268[_0x28deba(0x1c1)]['options']),_0x2c3268['record'][_0x28deba(0x1b8)]&&(_0x2478a7[_0x28deba(0x1b8)]=_0x2c3268['record'][_0x28deba(0x1b8)]),_0x2c3268[_0x28deba(0x1c1)][_0x28deba(0x19e)]&&this[_0x28deba(0x1ad)][_0x28deba(0x18e)]({'name':_0x2478a7['name'],'operator':_0x2478a7[_0x28deba(0x1ba)],'value':_0x2c3268[_0x28deba(0x1c1)][_0x28deba(0x19e)]}),delete _0x2c3268[_0x28deba(0x1c1)],_0x2478a7;});}async[a0_0x2bc4b1(0x1a5)](){await this['grist']['fetch']();}async[a0_0x2bc4b1(0x197)]({page:_0x20de54=0x0,limit:_0x28e7ac=0x0,sortings:_0x5ccdb7=[],filters:_0x4a0197=[]}){const _0x72ba11=a0_0x2bc4b1;return this['detailElement']&&this[_0x72ba11(0x1bb)][_0x72ba11(0x1b5)]&&await this['detailElement'][_0x72ba11(0x1b5)](),!0x0;}async['save'](){const _0x46aed0=a0_0x2bc4b1;let _0x56008a=MetaApi[_0x46aed0(0x192)](this[_0x46aed0(0x1c5)]);!!ValueUtil[_0x46aed0(0x185)](_0x56008a)&&await this[_0x46aed0(0x18a)](_0x56008a)&&this[_0x46aed0(0x1a5)]();}async[a0_0x2bc4b1(0x189)](){const _0xbee646=a0_0x2bc4b1;let _0x1017e8=MetaApi[_0xbee646(0x196)](this[_0xbee646(0x1c5)],!0x0);return ValueUtil['isNotEmpty'](_0x1017e8)?await this[_0xbee646(0x1a8)](_0x1017e8[0x0]):{};}async[a0_0x2bc4b1(0x187)](){const _0x50d234=a0_0x2bc4b1;let _0x5bcd03=MetaApi[_0x50d234(0x196)](this['grist'],!0x0);!!ValueUtil[_0x50d234(0x185)](_0x5bcd03)&&await this[_0x50d234(0x18b)](_0x5bcd03)&&this[_0x50d234(0x1a5)]();}async[a0_0x2bc4b1(0x199)](){const _0x21e674=a0_0x2bc4b1;let _0x509d88=TermsUtil[_0x21e674(0x19c)](ValueUtil[_0x21e674(0x1a4)](this['menuInfo'],_0x21e674(0x1a1)));return await MetaApi[_0x21e674(0x1bd)](this[_0x21e674(0x193)],_0x509d88,this[_0x21e674(0x1c5)]);}async[a0_0x2bc4b1(0x1c3)](){}['getData'](){const _0x4f0db9=a0_0x2bc4b1;let _0x322c2a=this[_0x4f0db9(0x1c5)][_0x4f0db9(0x1ab)][_0x4f0db9(0x1ae)];return _0x322c2a=JSON['parse'](JSON[_0x4f0db9(0x1b4)](_0x322c2a)),_0x322c2a['forEach'](_0x326135=>{const _0x30b5cd=_0x4f0db9;Object[_0x30b5cd(0x1b0)](_0x326135)[_0x30b5cd(0x1cf)](_0x570e87=>{_0x570e87['startsWith']('__')&&delete _0x326135[_0x570e87];});}),{'main':_0x322c2a,'detail':this[_0x4f0db9(0x1bb)]['getData']()};}};