@things-factory/meta-ui 6.1.24 → 6.1.26

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 (88) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +3 -1
  3. package/client/component/filter/filter-form-meta-code-select.js +10 -10
  4. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  5. package/client/component/filter/filter-grist-meta-code-select.js +10 -10
  6. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  7. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  8. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  9. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  10. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  12. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  13. package/client/component/popup/code-input-editor-popup.js +10 -10
  14. package/client/component/popup/meta-object-selector-popup.js +11 -11
  15. package/client/mixin/meta-base-mixin.js +1 -1
  16. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  17. package/client/mixin/meta-button-mixin.js +1 -1
  18. package/client/mixin/meta-form-mixin.js +1 -1
  19. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  20. package/client/mixin/meta-main-tab-mixin.js +1 -1
  21. package/client/mixin/meta-master-detail-mixin.js +1 -1
  22. package/client/mixin/meta-service-mixin.js +1 -1
  23. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  24. package/client/mixin/meta-tab-mixin.js +1 -1
  25. package/client/pages/activity/meta-activity-list-page.js +6 -6
  26. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  27. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  28. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  29. package/client/pages/entity/config-entity.js +29 -29
  30. package/client/pages/entity/main-menu-selector.js +8 -8
  31. package/client/pages/history/history-copy-list-popup.js +5 -5
  32. package/client/pages/history/history-json-list-popup.js +5 -5
  33. package/client/pages/loading-page.js +5 -5
  34. package/client/pages/menu/dynamic-menu-template.js +7 -7
  35. package/client/pages/menu/dynamic-menu.js +15 -15
  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 +5 -5
  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/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +103 -103
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +11 -11
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize.js +1 -1
  76. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  77. package/server/service/meta-activity/meta-activity-query.js +1 -1
  78. package/server/service/meta-activity/meta-activity-type.js +1 -1
  79. package/server/service/meta-secret/meta-resolver.js +1 -1
  80. package/server/service/set-translations/set-translation-resolver.js +1 -1
  81. package/server/service/work-code/work-code-mutation.js +1 -1
  82. package/server/service/work-code/work-code-query.js +1 -1
  83. package/server/service/work-code/work-code-type.js +1 -1
  84. package/server/service/work-code/work-code.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x307fb4=a0_0x2889;(function(_0x2346fe,_0x19c8de){const _0x1f1295=a0_0x2889,_0x161f2e=_0x2346fe();while(!![]){try{const _0x39908b=parseInt(_0x1f1295(0x9d))/0x1*(-parseInt(_0x1f1295(0xa3))/0x2)+parseInt(_0x1f1295(0xbf))/0x3*(parseInt(_0x1f1295(0xbd))/0x4)+parseInt(_0x1f1295(0xc9))/0x5*(parseInt(_0x1f1295(0x9c))/0x6)+-parseInt(_0x1f1295(0xa2))/0x7*(parseInt(_0x1f1295(0x83))/0x8)+-parseInt(_0x1f1295(0x8e))/0x9*(-parseInt(_0x1f1295(0xb0))/0xa)+parseInt(_0x1f1295(0xc4))/0xb+parseInt(_0x1f1295(0xd0))/0xc;if(_0x39908b===_0x19c8de)break;else _0x161f2e['push'](_0x161f2e['shift']());}catch(_0x31fe7f){_0x161f2e['push'](_0x161f2e['shift']());}}}(a0_0x368e,0xd285f));import{css,html,LitElement}from'lit';function a0_0x2889(_0x1f56ed,_0x5b3909){const _0x368e1e=a0_0x368e();return a0_0x2889=function(_0x28898b,_0x328917){_0x28898b=_0x28898b-0x82;let _0x52ae5d=_0x368e1e[_0x28898b];return _0x52ae5d;},a0_0x2889(_0x1f56ed,_0x5b3909);}function a0_0x368e(){const _0x243d7f=['cancel','options','1888QLOPBO','name','object','left','getGristSelectableConfig','entity','filter','keys','handlers','columns','selectRecord','65529WUdrHe','LIST','fetchHandler','query','record','GRID','args','NOTHING_SELECTED','length','search_hidden_fields','nameField','includes','select','string','316164NTzTkY','87602oxFAip','menu','push','info','searchByPagination','47131feYsXH','2wNJSzC','getCodeByScenario','connectedCallback','codes','dispField','showToast','render','scenario','firstUpdated','type','getGristColumnConfig2','codeField','rows','310dDanie','forEach','resource-code-selector','menu_template','clickSelect','sorters','values','grist','gridConfig','align','tButton','search','shadowRoot','16cBUnln','getGristPagination100Config','1270074XJPWVG','selected','meta-','filters','empty','2852718jLmIrT','filterFields','getGristMetaObjectOptions','basicArgs','bind','25yMIJmL','clickCancel','tText','getSelectColumns','meta-code-selector','meta-object-selector','code','1163304daxvvU','confirmCallback','after_set_fields','hidden','#ox-grist','querySelector','queryName','getCodeSelectorData'];a0_0x368e=function(){return _0x243d7f;};return a0_0x368e();}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';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x4c4553=a0_0xa49f;function a0_0xa49f(_0x17aece,_0x59038b){const _0x1410ec=a0_0x1410();return a0_0xa49f=function(_0xa49ff,_0x56f463){_0xa49ff=_0xa49ff-0x163;let _0x5789ce=_0x1410ec[_0xa49ff];return _0x5789ce;},a0_0xa49f(_0x17aece,_0x59038b);}(function(_0x460456,_0x13e72e){const _0x39ceca=a0_0xa49f,_0x3b6fcd=_0x460456();while(!![]){try{const _0x5c5f23=parseInt(_0x39ceca(0x1a5))/0x1+-parseInt(_0x39ceca(0x18b))/0x2*(parseInt(_0x39ceca(0x175))/0x3)+-parseInt(_0x39ceca(0x171))/0x4*(-parseInt(_0x39ceca(0x178))/0x5)+parseInt(_0x39ceca(0x19c))/0x6*(-parseInt(_0x39ceca(0x1b1))/0x7)+-parseInt(_0x39ceca(0x188))/0x8*(-parseInt(_0x39ceca(0x18e))/0x9)+parseInt(_0x39ceca(0x1b4))/0xa+parseInt(_0x39ceca(0x196))/0xb;if(_0x5c5f23===_0x13e72e)break;else _0x3b6fcd['push'](_0x3b6fcd['shift']());}catch(_0x4f0535){_0x3b6fcd['push'](_0x3b6fcd['shift']());}}}(a0_0x1410,0x48e24));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x1410(){const _0x4ff402=['showToast','define','handlers','1060872rjOYGP','object','LIST','resource-code-selector','select-row-toggle','nameField','record','name','querySelector','344396hIMVKp','render','meta-object-selector-popup','after_set_fields','query','startsWith','meta-object-selector','clickSelect','empty','resource-object','length','code','14QDSiUp','isArray','sorters','3680810KVNETr','string','meta-code-selector','filters','getCodeByEntity','meta-','type','codes','hidden','filter','fetchHandler','codeField','clickEmpty','rows','menu_template','selectRecord','getGristColumnConfig2','192VUUbrm','NOTHING_SELECTED','args','filterFields','700863QWzirs','align','confirmCallback','1295XhTfYO','getCodeSelectorData','cancel','basicArgs','firstUpdated','dispField','clickCancel','gql','grist','forEach','keys','push','tButton','getSelectColumns','getGristPagination100Config','select','56vojFcp','search','GRID','2TvRzma','connectedCallback','#ox-grist','109764wBeftK','menu','search_hidden_fields','options','bind','values','left','gridConfig','830456MgHRZh','selected','includes'];a0_0x1410=function(){return _0x4ff402;};return a0_0x1410();}import{ServiceUtil}from'../../utils/service-util';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 ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x307fb4=a0_0x2889;(function(_0x2346fe,_0x19c8de){const _0x1f1295=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x307fb4(0xa5)](){const _0x3fa1ce=a0_0x307fb4;this[_0x3fa1ce(0x97)]=this[_0x3fa1ce(0x82)][_0x3fa1ce(0xc2)]?this[_0x3fa1ce(0x82)]['filters']:this[_0x3fa1ce(0xc7)]&&this['basicArgs']['filters']?this[_0x3fa1ce(0xc7)][_0x3fa1ce(0xc2)]:[];let _0x435d66=this[_0x3fa1ce(0x82)][_0x3fa1ce(0xb5)]?this[_0x3fa1ce(0x82)][_0x3fa1ce(0xb5)]:this[_0x3fa1ce(0xc7)]&&this['basicArgs'][_0x3fa1ce(0xb5)]?this['basicArgs'][_0x3fa1ce(0xb5)]:[],_0x6f3e2a=this[_0x3fa1ce(0x82)][_0x3fa1ce(0xc5)]?this[_0x3fa1ce(0x82)][_0x3fa1ce(0xc5)]:this[_0x3fa1ce(0x82)][_0x3fa1ce(0xb3)]?.[_0x3fa1ce(0xbb)]&&this[_0x3fa1ce(0x82)][_0x3fa1ce(0xb3)]?.['search'][_0x3fa1ce(0x96)]>0x0?this['options'][_0x3fa1ce(0xb3)]['search']:[],_0x2ad06c=this[_0x3fa1ce(0x82)]['select'];if(!_0x6f3e2a||0x0==_0x6f3e2a[_0x3fa1ce(0x96)]){let _0x4e72a4;this['options']['codeField']&&(_0x4e72a4=this['options']['codeField']),this[_0x3fa1ce(0x82)][_0x3fa1ce(0x98)]&&(_0x4e72a4=this[_0x3fa1ce(0x82)][_0x3fa1ce(0x98)]),_0x4e72a4&&_0x6f3e2a[_0x3fa1ce(0x9f)]({'name':_0x4e72a4,'operator':'eq'});}let _0xfbf9ab=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x2ad06c&&_0x2ad06c[_0x3fa1ce(0x96)]>0x0)for(let _0x5013d7=0x0;_0x5013d7<_0x2ad06c[_0x3fa1ce(0x96)];_0x5013d7++){let {type:_0x316c53=_0x3fa1ce(0x9b),name:_0x73232e,hidden:_0x4f25d1=!0x1,record:_0x271f8f={'align':_0x3fa1ce(0x86)},header:_0x170c93,sortable:_0x70cf84=!0x1,width:_0x5cb0aa=0x87,options:_0x51caf8,select_opt:_0x31a5f8,object_opt:_0x530857}=_0x2ad06c[_0x5013d7];if(_0x31a5f8&&(_0x51caf8=_0x31a5f8),_0x530857&&(_0x51caf8=_0x530857),['resource-object',_0x3fa1ce(0x85)][_0x3fa1ce(0x99)](_0x316c53)?_0x316c53=_0x3fa1ce(0xce):[_0x3fa1ce(0xb2)]['includes'](_0x316c53)&&(_0x316c53=_0x3fa1ce(0xcd)),'id'==_0x73232e)_0xfbf9ab[_0x3fa1ce(0x9f)]({'type':_0x3fa1ce(0x9b),'name':_0x73232e,'hidden':!0x0});else{let _0x529c27=MetaApi[_0x3fa1ce(0xad)](_0x316c53,_0x73232e,_0x170c93||_0x73232e,_0x271f8f[_0x3fa1ce(0xb9)]?_0x271f8f[_0x3fa1ce(0xb9)]:_0x3fa1ce(0x86),!0x1,_0x70cf84,_0x5cb0aa);_0x316c53['startsWith'](_0x3fa1ce(0xc1))&&_0x530857&&_0x530857[_0x3fa1ce(0x9e)]&&(_0x51caf8=await MetaUiUtil[_0x3fa1ce(0xc6)](_0x316c53,_0x51caf8)),_0x3fa1ce(0x9a)===_0x316c53?Array['isArray'](_0x51caf8)?_0x529c27[_0x3fa1ce(0x92)][_0x3fa1ce(0x82)]=_0x51caf8:_0x3fa1ce(0xcf)===_0x51caf8['type']?_0x529c27[_0x3fa1ce(0x92)][_0x3fa1ce(0x82)]=await ServiceUtil[_0x3fa1ce(0xd7)](_0x51caf8[_0x3fa1ce(0xb6)]?_0x51caf8['values']:_0x51caf8['name']):_0x3fa1ce(0xaa)===_0x51caf8[_0x3fa1ce(0xac)]?_0x529c27['record'][_0x3fa1ce(0x82)]=await ServiceUtil[_0x3fa1ce(0xa4)](_0x51caf8[_0x3fa1ce(0x84)],_0x51caf8[_0x3fa1ce(0x94)]):_0x3fa1ce(0x88)===_0x51caf8[_0x3fa1ce(0xac)]&&(_0x529c27['record']['options']=await ServiceUtil['getCodeByEntity'](_0x51caf8['args'])):_0x3fa1ce(0xce)===_0x316c53?_0x529c27[_0x3fa1ce(0x92)]['options']={..._0x51caf8}:_0x3fa1ce(0xcd)==_0x316c53&&(_0x51caf8[_0x3fa1ce(0xa7)]&&(_0x51caf8[_0x3fa1ce(0xa6)]=await ServiceUtil['getCodeByEntity'](_0x51caf8)),_0x529c27[_0x3fa1ce(0x92)][_0x3fa1ce(0x82)]={..._0x51caf8}),_0x529c27[_0x3fa1ce(0xd3)]=_0x4f25d1,_0xfbf9ab['push'](_0x529c27);}}else _0xfbf9ab['push'](MetaApi[_0x3fa1ce(0xad)](_0x3fa1ce(0x9b),this[_0x3fa1ce(0x82)][_0x3fa1ce(0xae)],this[_0x3fa1ce(0x82)][_0x3fa1ce(0xae)],'left',!0x1,!0x0,0xb4)),this[_0x3fa1ce(0x82)]['dispField']&&_0xfbf9ab['push'](MetaApi[_0x3fa1ce(0xad)]('string',this[_0x3fa1ce(0x82)][_0x3fa1ce(0xa7)],this[_0x3fa1ce(0x82)][_0x3fa1ce(0xa7)],_0x3fa1ce(0x86),!0x1,!0x0,0x12c));_0xfbf9ab[_0x3fa1ce(0xb1)](_0x23eb21=>{const _0x241518=_0x3fa1ce;let _0x194373=_0x6f3e2a[_0x241518(0x89)](_0x5efe1d=>_0x241518(0x9b)==typeof _0x5efe1d?_0x23eb21[_0x241518(0x84)]==_0x5efe1d:_0x23eb21['name']==_0x5efe1d[_0x241518(0x84)]);_0x194373&&_0x194373[_0x241518(0x96)]>0x0&&(_0x23eb21[_0x241518(0x89)]=_0x241518(0x9b)==typeof _0x194373[0x0]?_0x241518(0xbb):_0x194373[0x0]);});let _0x5bef6a={'rows':MetaApi[_0x3fa1ce(0x87)](!0x1),'pagination':MetaApi[_0x3fa1ce(0xbe)](),'columns':_0xfbf9ab,'sorters':[..._0x435d66]};_0x5bef6a[_0x3fa1ce(0xaf)][_0x3fa1ce(0x8b)]={'click':'select-row-toggle','dblclick':(_0x1b82fd,_0xb4eacf,_0x39f597,_0x43be3f,_0x42006c,_0x4759fb)=>{const _0x4bc752=_0x3fa1ce;this[_0x4bc752(0x8d)](_0x43be3f);}},_0x5bef6a[_0x3fa1ce(0xaf)]['appendable']=!0x1,this['gridConfig']=_0x5bef6a,await super[_0x3fa1ce(0xa5)]();}async['firstUpdated'](){const _0x4c67c9=a0_0x307fb4;await super[_0x4c67c9(0xab)]();}[a0_0x307fb4(0xa9)](){const _0x5bdab9=a0_0x307fb4;return html`
21
- <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?_0x5bdab9(0x8f):_0x5bdab9(0x93)} auto-fetch
22
- .fetchHandler=${this['fetchHandler']['bind'](this)}>
20
+ `];async['connectedCallback'](){const _0x160dc9=a0_0xa49f;this['search_hidden_fields']=this[_0x160dc9(0x191)][_0x160dc9(0x163)]?this[_0x160dc9(0x191)][_0x160dc9(0x163)]:this['basicArgs']&&this[_0x160dc9(0x17b)]['filters']?this[_0x160dc9(0x17b)]['filters']:[];let _0x63d12e=this[_0x160dc9(0x191)]['sorters']?this['options']['sorters']:this[_0x160dc9(0x17b)]&&this[_0x160dc9(0x17b)]['sorters']?this[_0x160dc9(0x17b)][_0x160dc9(0x1b3)]:[],_0x3e3ae3=this['options'][_0x160dc9(0x174)]?this[_0x160dc9(0x191)][_0x160dc9(0x174)]:this[_0x160dc9(0x191)][_0x160dc9(0x16e)]?.[_0x160dc9(0x189)]&&this[_0x160dc9(0x191)][_0x160dc9(0x16e)]?.[_0x160dc9(0x189)][_0x160dc9(0x1af)]>0x0?this[_0x160dc9(0x191)][_0x160dc9(0x16e)][_0x160dc9(0x189)]:[],_0x377b24=this[_0x160dc9(0x191)][_0x160dc9(0x187)];if(!_0x3e3ae3||0x0==_0x3e3ae3['length']){let _0x1a6528;this[_0x160dc9(0x191)][_0x160dc9(0x16b)]&&(_0x1a6528=this[_0x160dc9(0x191)][_0x160dc9(0x16b)]),this['options'][_0x160dc9(0x1a1)]&&(_0x1a6528=this[_0x160dc9(0x191)][_0x160dc9(0x1a1)]),_0x1a6528&&_0x3e3ae3[_0x160dc9(0x183)]({'name':_0x1a6528,'operator':'eq'});}let _0x178962=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x377b24&&_0x377b24['length']>0x0)for(let _0x38d50b=0x0;_0x38d50b<_0x377b24[_0x160dc9(0x1af)];_0x38d50b++){let {type:_0x331ea2=_0x160dc9(0x1b5),name:_0x3714fc,hidden:_0x30e538=!0x1,record:_0x3ff062={'align':_0x160dc9(0x194)},header:_0x442934,sortable:_0x87efa4=!0x1,width:_0x2e2f08=0x87,options:_0x3c6ea1,select_opt:_0x4e5be0,object_opt:_0x4c93e4}=_0x377b24[_0x38d50b];if(_0x4e5be0&&(_0x3c6ea1=_0x4e5be0),_0x4c93e4&&(_0x3c6ea1=_0x4c93e4),[_0x160dc9(0x1ae),_0x160dc9(0x19d)]['includes'](_0x331ea2)?_0x331ea2=_0x160dc9(0x1ab):[_0x160dc9(0x19f)][_0x160dc9(0x198)](_0x331ea2)&&(_0x331ea2=_0x160dc9(0x1b6)),'id'==_0x3714fc)_0x178962['push']({'type':_0x160dc9(0x1b5),'name':_0x3714fc,'hidden':!0x0});else{let _0x4e3e02=MetaApi[_0x160dc9(0x170)](_0x331ea2,_0x3714fc,_0x442934||_0x3714fc,_0x3ff062[_0x160dc9(0x176)]?_0x3ff062['align']:_0x160dc9(0x194),!0x1,_0x87efa4,_0x2e2f08);_0x331ea2[_0x160dc9(0x1aa)](_0x160dc9(0x165))&&_0x4c93e4&&_0x4c93e4[_0x160dc9(0x18f)]&&(_0x3c6ea1=await MetaUiUtil['getGristMetaObjectOptions'](_0x331ea2,_0x3c6ea1)),'select'===_0x331ea2?Array[_0x160dc9(0x1b2)](_0x3c6ea1)?_0x4e3e02[_0x160dc9(0x1a2)][_0x160dc9(0x191)]=_0x3c6ea1:_0x160dc9(0x1b0)===_0x3c6ea1['type']?_0x4e3e02[_0x160dc9(0x1a2)]['options']=await ServiceUtil[_0x160dc9(0x179)](_0x3c6ea1[_0x160dc9(0x193)]?_0x3c6ea1[_0x160dc9(0x193)]:_0x3c6ea1['name']):'scenario'===_0x3c6ea1[_0x160dc9(0x166)]?_0x4e3e02[_0x160dc9(0x1a2)][_0x160dc9(0x191)]=await ServiceUtil['getCodeByScenario'](_0x3c6ea1[_0x160dc9(0x1a3)],_0x3c6ea1[_0x160dc9(0x173)]):'entity'===_0x3c6ea1[_0x160dc9(0x166)]&&(_0x4e3e02[_0x160dc9(0x1a2)][_0x160dc9(0x191)]=await ServiceUtil[_0x160dc9(0x164)](_0x3c6ea1['args'])):_0x160dc9(0x1ab)===_0x331ea2?_0x4e3e02[_0x160dc9(0x1a2)][_0x160dc9(0x191)]={..._0x3c6ea1}:_0x160dc9(0x1b6)==_0x331ea2&&(_0x3c6ea1[_0x160dc9(0x17d)]&&(_0x3c6ea1[_0x160dc9(0x167)]=await ServiceUtil['getCodeByEntity'](_0x3c6ea1)),_0x4e3e02[_0x160dc9(0x1a2)]['options']={..._0x3c6ea1}),_0x4e3e02[_0x160dc9(0x168)]=_0x30e538,_0x178962['push'](_0x4e3e02);}}else _0x178962[_0x160dc9(0x183)](MetaApi[_0x160dc9(0x170)]('string',this[_0x160dc9(0x191)][_0x160dc9(0x16b)],this[_0x160dc9(0x191)][_0x160dc9(0x16b)],_0x160dc9(0x194),!0x1,!0x0,0xb4)),this[_0x160dc9(0x191)][_0x160dc9(0x17d)]&&_0x178962[_0x160dc9(0x183)](MetaApi[_0x160dc9(0x170)](_0x160dc9(0x1b5),this[_0x160dc9(0x191)]['dispField'],this[_0x160dc9(0x191)][_0x160dc9(0x17d)],_0x160dc9(0x194),!0x1,!0x0,0x12c));_0x178962[_0x160dc9(0x181)](_0x59039a=>{const _0x3fa6d5=_0x160dc9;let _0x4cf15b=_0x3e3ae3[_0x3fa6d5(0x169)](_0x10cfca=>_0x3fa6d5(0x1b5)==typeof _0x10cfca?_0x59039a[_0x3fa6d5(0x1a3)]==_0x10cfca:_0x59039a[_0x3fa6d5(0x1a3)]==_0x10cfca[_0x3fa6d5(0x1a3)]);_0x4cf15b&&_0x4cf15b[_0x3fa6d5(0x1af)]>0x0&&(_0x59039a[_0x3fa6d5(0x169)]=_0x3fa6d5(0x1b5)==typeof _0x4cf15b[0x0]?'search':_0x4cf15b[0x0]);});let _0x2b2820={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0x160dc9(0x186)](),'columns':_0x178962,'sorters':[..._0x63d12e]};_0x2b2820[_0x160dc9(0x16d)][_0x160dc9(0x19b)]={'click':_0x160dc9(0x1a0),'dblclick':(_0x2d3e2b,_0xe2b8e8,_0x364b70,_0x4f5489,_0x4cb5ba,_0x5b0ba6)=>{const _0x34c65b=_0x160dc9;this[_0x34c65b(0x16f)](_0x4f5489);}},_0x2b2820[_0x160dc9(0x16d)]['appendable']=!0x1,this[_0x160dc9(0x195)]=_0x2b2820,await super[_0x160dc9(0x18c)]();}async[a0_0x4c4553(0x17c)](){await super['firstUpdated']();}[a0_0x4c4553(0x1a6)](){const _0x5db4d5=a0_0x4c4553;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x5db4d5(0x195)]} .mode=${isMobileDevice()?_0x5db4d5(0x19e):_0x5db4d5(0x18a)} auto-fetch
22
+ .fetchHandler=${this['fetchHandler'][_0x5db4d5(0x192)](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x307fb4=a0_0x2889;(function(_0x2346fe,_0x19c8de){const _0x1f1295=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x5bdab9(0xba)](_0x5bdab9(0xc3))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this['clickEmpty'][_0x5bdab9(0xc8)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x5db4d5(0x184)](_0x5db4d5(0x1ad))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x5db4d5(0x16c)]['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x5bdab9(0xba)](_0x5bdab9(0xd8))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x5bdab9(0xca)][_0x5bdab9(0xc8)](this)}>
33
+ <mwc-button raised label="${TermsUtil['tButton'](_0x5db4d5(0x17a))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x5db4d5(0x17e)][_0x5db4d5(0x192)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x5bdab9(0xba)]('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x5bdab9(0xb4)]['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x5db4d5(0x184)](_0x5db4d5(0x187))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x5db4d5(0x1ac)][_0x5db4d5(0x192)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x307fb4(0xb7)](){const _0x36bb08=a0_0x307fb4;return this[_0x36bb08(0xbc)][_0x36bb08(0xd5)](_0x36bb08(0xd4));}async[a0_0x307fb4(0x90)]({page:_0x33c3dc=0x0,limit:_0x256198=0x0,sorters:_0x5de50e=[],filters:_0x311d0f=[]}){const _0xf4ec64=a0_0x307fb4;let _0x181f04=[...this[_0xf4ec64(0x97)]];_0x311d0f[_0xf4ec64(0xb1)](_0x11032b=>{const _0x20fe9b=_0xf4ec64;let _0x174c2c=_0x181f04[_0x20fe9b(0x89)](_0x29deca=>_0x11032b[_0x20fe9b(0x84)]==_0x29deca[_0x20fe9b(0x84)]);_0x174c2c&&_0x174c2c[_0x20fe9b(0x96)]>0x0&&delete _0x181f04[_0x11032b[_0x20fe9b(0x84)]],_0x181f04[_0x20fe9b(0x9f)](_0x11032b);});let _0xdb72b=ValueUtil['getParams'](this[_0xf4ec64(0x82)][_0xf4ec64(0xb3)]&&this[_0xf4ec64(0x82)][_0xf4ec64(0xb3)]['gql']||{},_0xf4ec64(0x91),_0xf4ec64(0xd2)),_0x4ec456=Object[_0xf4ec64(0x8a)](_0xdb72b||{}),_0xd74171=MetaApi[_0xf4ec64(0xcc)](this[_0xf4ec64(0xb8)][_0xf4ec64(0x8c)][_0xf4ec64(0x89)](_0x259b25=>!_0x4ec456['includes'](_0x259b25['name'])));return await MetaApi[_0xf4ec64(0xa1)](this['options'][_0xf4ec64(0xd6)],_0x181f04,_0x5de50e,_0x33c3dc,_0x256198,_0xd74171);}async['clickEmpty'](_0x2ee4a9){const _0x3ba3df=a0_0x307fb4;this[_0x3ba3df(0xd1)]&&this[_0x3ba3df(0xd1)](null),closePopup(this);}async[a0_0x307fb4(0xca)](_0x3d59d2){closePopup(this);}async[a0_0x307fb4(0xb4)](_0x44d2e7){const _0x38cd3b=a0_0x307fb4;let _0xb9261e=this[_0x38cd3b(0xb7)][_0x38cd3b(0xc0)];_0xb9261e&&0x0!=_0xb9261e[_0x38cd3b(0x96)]?this[_0x38cd3b(0x8d)](_0xb9261e[0x0]):MetaApi[_0x38cd3b(0xa8)](_0x38cd3b(0xa0),TermsUtil[_0x38cd3b(0xcb)](_0x38cd3b(0x95)));}async[a0_0x307fb4(0x8d)](_0x42d6a9){const _0x125518=a0_0x307fb4;this[_0x125518(0xd1)]&&this['confirmCallback'](_0x42d6a9),closePopup(this);}}customElements['define']('meta-object-selector-popup',MetaObjectSelectorPopup);
40
+ `;}get[a0_0x4c4553(0x180)](){const _0x45938b=a0_0x4c4553;return this['shadowRoot'][_0x45938b(0x1a4)](_0x45938b(0x18d));}async[a0_0x4c4553(0x16a)]({page:_0x43007f=0x0,limit:_0x4dc593=0x0,sorters:_0x1c7ffc=[],filters:_0x55d765=[]}){const _0x40a3f6=a0_0x4c4553;let _0x269d29=[...this[_0x40a3f6(0x190)]];_0x55d765['forEach'](_0xdc3f09=>{const _0x58e540=_0x40a3f6;let _0x5589af=_0x269d29[_0x58e540(0x169)](_0x445b66=>_0xdc3f09[_0x58e540(0x1a3)]==_0x445b66[_0x58e540(0x1a3)]);_0x5589af&&_0x5589af[_0x58e540(0x1af)]>0x0&&delete _0x269d29[_0xdc3f09[_0x58e540(0x1a3)]],_0x269d29[_0x58e540(0x183)](_0xdc3f09);});let _0x5bfe23=ValueUtil['getParams'](this['options']['menu_template']&&this[_0x40a3f6(0x191)][_0x40a3f6(0x16e)][_0x40a3f6(0x17f)]||{},_0x40a3f6(0x1a9),_0x40a3f6(0x1a8)),_0x1dd38b=Object[_0x40a3f6(0x182)](_0x5bfe23||{}),_0x162c76=MetaApi[_0x40a3f6(0x185)](this[_0x40a3f6(0x195)]['columns']['filter'](_0xfb0d28=>!_0x1dd38b['includes'](_0xfb0d28[_0x40a3f6(0x1a3)])));return await MetaApi['searchByPagination'](this[_0x40a3f6(0x191)]['queryName'],_0x269d29,_0x1c7ffc,_0x43007f,_0x4dc593,_0x162c76);}async[a0_0x4c4553(0x16c)](_0x28aa33){const _0x4285b1=a0_0x4c4553;this[_0x4285b1(0x177)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x4c4553(0x17e)](_0x564a86){closePopup(this);}async[a0_0x4c4553(0x1ac)](_0x38f1fa){const _0x30dc2b=a0_0x4c4553;let _0x306b06=this['grist'][_0x30dc2b(0x197)];_0x306b06&&0x0!=_0x306b06[_0x30dc2b(0x1af)]?this[_0x30dc2b(0x16f)](_0x306b06[0x0]):MetaApi[_0x30dc2b(0x199)]('info',TermsUtil['tText'](_0x30dc2b(0x172)));}async['selectRecord'](_0x498a88){this['confirmCallback']&&this['confirmCallback'](_0x498a88),closePopup(this);}}customElements[a0_0x4c4553(0x19a)](a0_0x4c4553(0x1a7),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x31cca8=a0_0x2f28;(function(_0x34f2b1,_0x27ada3){const _0x1d413f=a0_0x2f28,_0x3e2484=_0x34f2b1();while(!![]){try{const _0x271215=-parseInt(_0x1d413f(0xf8))/0x1*(-parseInt(_0x1d413f(0xed))/0x2)+parseInt(_0x1d413f(0x120))/0x3*(parseInt(_0x1d413f(0x116))/0x4)+-parseInt(_0x1d413f(0x115))/0x5*(-parseInt(_0x1d413f(0xf2))/0x6)+-parseInt(_0x1d413f(0xfd))/0x7*(-parseInt(_0x1d413f(0x11b))/0x8)+parseInt(_0x1d413f(0x10e))/0x9+-parseInt(_0x1d413f(0xe8))/0xa*(-parseInt(_0x1d413f(0x110))/0xb)+-parseInt(_0x1d413f(0x117))/0xc*(parseInt(_0x1d413f(0x107))/0xd);if(_0x271215===_0x27ada3)break;else _0x3e2484['push'](_0x3e2484['shift']());}catch(_0x42cb41){_0x3e2484['push'](_0x3e2484['shift']());}}}(a0_0x5908,0x9b331));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x2f28(_0xd23a66,_0x2b453d){const _0x590807=a0_0x5908();return a0_0x2f28=function(_0x2f28b7,_0x152e8e){_0x2f28b7=_0x2f28b7-0xe8;let _0x356c6b=_0x590807[_0x2f28b7];return _0x356c6b;},a0_0x2f28(_0xd23a66,_0x2b453d);}import{TermsUtil}from'./../utils/terms-util';function a0_0x5908(){const _0x222aee=['data-changed','parseBasicTabConfigs','title_detail','menu','callScenario','meta-form-','isEmpty','lifecycle','data','21858590BPHyJY','result','isNotEmpty','tTitle','fetch','parseBasicGridConfigs','detail','6378975QWINWu','executeCallScenarioButtonClick','11UwgsrF','title','etc','dispatchEvent','isPage','5XCzVhS','1152ANEVEo','24XzPyDQ','field-change','name','errors','621968dsqziN','forEach','addEventListener','is_detail','connectedCallback','5811kurZDF','params','grist','active','1841990AhPCrV','getParams','isPopup','keys','filterForm','2lUhgLX','getMenuMeta','setParentId','parent_id','parseBasicServiceConfigs','6382986tlPUpj','dataChangeEventHandler','excuteOpenPopupButtonClick','pageUpdated','parseBasicButtonConfigs','tagName','939674gVTgfk','is_popup','fetchHandler','fieldChangeHandlers','parseBasicFormConfigs','49qvkXwS'];a0_0x5908=function(){return _0x222aee;};return a0_0x5908();}export const MetaBaseMixin=_0x48baa0=>class extends _0x48baa0{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x488bd7=>Boolean(_0x488bd7)},'is_popup':{'type':Boolean,'converter':_0x560bd3=>Boolean(_0x560bd3)},'is_activity':{'type':Boolean,'converter':_0x374759=>Boolean(_0x374759)},'is_readonly':{'type':Boolean,'converter':_0x51728c=>Boolean(_0x51728c)}};}get['isElement'](){const _0x1cc697=a0_0x2f28;return!0x0===this['is_detail']||!0x0===this[_0x1cc697(0xf9)];}get['isDetail'](){const _0x5e8f7f=a0_0x2f28;return!ValueUtil[_0x5e8f7f(0x104)](this[_0x5e8f7f(0x11e)])&&this[_0x5e8f7f(0x11e)];}async[a0_0x31cca8(0xf3)](_0x2e5e33){const _0x41da87=a0_0x31cca8;let {after:_0x6fde6b,before:_0x391476,column:_0x5256a7,record:_0x1e5dea,row:_0xdc83b4}=_0x2e5e33['detail'],_0x3950e5=_0x5256a7[_0x41da87(0x119)];if(Object['keys'](this[_0x41da87(0xfb)]||{})['includes'](_0x3950e5)){let _0x13e7cb,_0x339a3f=(await MetaApi['callScenario'](void 0x0,this['fieldChangeHandlers'][_0x3950e5],{'columnName':_0x3950e5,'column':_0x5256a7,'record':_0x1e5dea,'after':_0x6fde6b,'before':_0x391476,'row':_0xdc83b4},!0x1))[_0x41da87(0x106)]['runScenario'][_0x41da87(0x106)][_0x41da87(0x108)];if(!_0x339a3f)return;_0x13e7cb=this[_0x41da87(0x122)]?this[_0x41da87(0x122)][_0x41da87(0x122)]['body']:this,Object[_0x41da87(0xeb)](_0x339a3f)[_0x41da87(0x11c)](_0x249412=>{const _0x1d0a70=_0x41da87;_0x13e7cb[_0x1d0a70(0x113)](new CustomEvent(_0x1d0a70(0x118),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x1e5dea,'row':_0xdc83b4,'after':_0x339a3f[_0x249412],'before':_0x1e5dea[_0x249412],'column':{'name':_0x249412}}}));});}this['dispatchEvent'](new CustomEvent(_0x41da87(0xfe),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2e5e33[_0x41da87(0x10d)]}));}async[a0_0x31cca8(0x11f)](){const _0x531a29=a0_0x31cca8;super[_0x531a29(0x11f)]&&await super['connectedCallback'](),this[_0x531a29(0xf7)]['toLowerCase']()['startsWith'](_0x531a29(0x103))?this[_0x531a29(0x11d)]('form-field-change',async _0x111920=>{await this['dataChangeEventHandler'](_0x111920);}):this[_0x531a29(0x11d)](_0x531a29(0x118),async _0x56fec6=>{const _0x53c958=_0x531a29;await this[_0x53c958(0xf3)](_0x56fec6);});}async[a0_0x31cca8(0xf5)](_0x5807b4,_0x584f53,_0x3ba98f){const _0x3fde34=a0_0x31cca8;let _0x265814=this[_0x3fde34(0x105)]?.['params']?this['lifecycle'][_0x3fde34(0x121)]:{};this[_0x3fde34(0x114)]&&this[_0x3fde34(0x123)]&&0x0==_0x3ba98f[_0x3fde34(0x123)]&&ValueUtil[_0x3fde34(0x109)](_0x265814)&&this[_0x3fde34(0x10b)]();}get[a0_0x31cca8(0xea)](){const _0x2740d0=a0_0x31cca8;return!ValueUtil[_0x2740d0(0x104)](this['is_popup'])&&this[_0x2740d0(0xf9)];}get[a0_0x31cca8(0x114)](){const _0x271c17=a0_0x31cca8;return!this[_0x271c17(0x11e)]&&!this[_0x271c17(0xf9)];}async['getAndParseMenuMeta'](){const _0x5a6cdd=a0_0x31cca8;let _0x2ee4b9=await MetaApi[_0x5a6cdd(0xee)](this);_0x2ee4b9&&(this['menuInfo']=_0x2ee4b9[_0x5a6cdd(0x101)],this['etcConfig']=_0x2ee4b9[_0x5a6cdd(0x112)],this[_0x5a6cdd(0x10c)]&&this[_0x5a6cdd(0x10c)](_0x2ee4b9),this[_0x5a6cdd(0xf1)]&&this[_0x5a6cdd(0xf1)](_0x2ee4b9),this[_0x5a6cdd(0xfc)]&&this[_0x5a6cdd(0xfc)](_0x2ee4b9),this[_0x5a6cdd(0xff)]&&this[_0x5a6cdd(0xff)](_0x2ee4b9),this[_0x5a6cdd(0xf6)]&&this[_0x5a6cdd(0xf6)](_0x2ee4b9));}async[a0_0x31cca8(0x10b)](){const _0x344de2=a0_0x31cca8;ValueUtil['isNotEmpty'](this[_0x344de2(0x122)])?this[_0x344de2(0x122)][_0x344de2(0x10b)]():(ValueUtil[_0x344de2(0x109)](this[_0x344de2(0xec)])||this['fetchHandler'])&&await this[_0x344de2(0xfa)]();}async[a0_0x31cca8(0xf4)](_0x2ffe63,_0x1494b4,_0x32afe7){const _0x2cb81f=a0_0x31cca8;let _0x53b896=TermsUtil[_0x2cb81f(0x10a)](_0x2ffe63[_0x2cb81f(0x111)]);ValueUtil['isNotEmpty'](_0x2ffe63['title_detail'])&&(_0x53b896=_0x53b896+'-'+ValueUtil[_0x2cb81f(0xe9)](_0x1494b4,..._0x2ffe63[_0x2cb81f(0x100)]['split']('.'))),MetaApi['openDynamicPopup'](_0x53b896,_0x2ffe63,_0x1494b4,_0x32afe7);}async[a0_0x31cca8(0x10f)](_0x27a18c,_0x38d24c,_0x3d87ee){const _0x382181=a0_0x31cca8;let _0x53c8ab=await MetaApi[_0x382181(0x102)](_0x27a18c['name'],_0x27a18c['name'],_0x38d24c);!0x1!==_0x53c8ab&&!_0x53c8ab[_0x382181(0x11a)]&&ValueUtil[_0x382181(0x109)](_0x27a18c['after'])&&_0x3d87ee();}[a0_0x31cca8(0xef)](_0x1e7e62){const _0x4f4fc5=a0_0x31cca8;this[_0x4f4fc5(0xf0)]=_0x1e7e62,this[_0x4f4fc5(0x10b)]();}};
1
+ const a0_0xa09bd1=a0_0x18ce;function a0_0x18ce(_0x537327,_0x441f0d){const _0x5c4a80=a0_0x5c4a();return a0_0x18ce=function(_0x18ce23,_0x46570d){_0x18ce23=_0x18ce23-0x157;let _0x2b478a=_0x5c4a80[_0x18ce23];return _0x2b478a;},a0_0x18ce(_0x537327,_0x441f0d);}(function(_0x39685d,_0x576471){const _0x2e6bea=a0_0x18ce,_0x645f45=_0x39685d();while(!![]){try{const _0x164aef=parseInt(_0x2e6bea(0x15d))/0x1*(-parseInt(_0x2e6bea(0x166))/0x2)+-parseInt(_0x2e6bea(0x168))/0x3*(parseInt(_0x2e6bea(0x191))/0x4)+-parseInt(_0x2e6bea(0x179))/0x5*(parseInt(_0x2e6bea(0x16f))/0x6)+-parseInt(_0x2e6bea(0x157))/0x7*(parseInt(_0x2e6bea(0x183))/0x8)+-parseInt(_0x2e6bea(0x15b))/0x9+-parseInt(_0x2e6bea(0x15a))/0xa*(-parseInt(_0x2e6bea(0x165))/0xb)+parseInt(_0x2e6bea(0x16c))/0xc;if(_0x164aef===_0x576471)break;else _0x645f45['push'](_0x645f45['shift']());}catch(_0x2eb812){_0x645f45['push'](_0x645f45['shift']());}}}(a0_0x5c4a,0xefc1b));function a0_0x5c4a(){const _0xff986d=['1970213aKEGkZ','dataChangeEventHandler','title','110WybfEm','15277518oYuCHU','fetchHandler','132347kloViS','forEach','parseBasicGridConfigs','includes','connectedCallback','startsWith','name','properties','51711rXXMIT','8lZZfDZ','addEventListener','4617765PoGLvM','detail','split','isDetail','80542536oIcsPe','data','isPage','63222CtNbXJ','etcConfig','body','callScenario','fieldChangeHandlers','parseBasicFormConfigs','openDynamicPopup','isEmpty','title_detail','etc','155DlcGOQ','lifecycle','pageUpdated','field-change','errors','tagName','is_popup','isNotEmpty','grist','is_detail','48NJeorc','parseBasicTabConfigs','fetch','parseBasicButtonConfigs','parent_id','data-changed','filterForm','runScenario','excuteOpenPopupButtonClick','after','dispatchEvent','getParams','keys','params','4yQylyE','parseBasicServiceConfigs','active'];a0_0x5c4a=function(){return _0xff986d;};return a0_0x5c4a();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1b1560=>class extends _0x1b1560{static get[a0_0xa09bd1(0x164)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x3f51dc=>Boolean(_0x3f51dc)},'is_popup':{'type':Boolean,'converter':_0x237cb6=>Boolean(_0x237cb6)},'is_activity':{'type':Boolean,'converter':_0x54a627=>Boolean(_0x54a627)},'is_readonly':{'type':Boolean,'converter':_0x4ea699=>Boolean(_0x4ea699)}};}get['isElement'](){const _0x3a5681=a0_0xa09bd1;return!0x0===this[_0x3a5681(0x182)]||!0x0===this[_0x3a5681(0x17f)];}get[a0_0xa09bd1(0x16b)](){const _0x2625dc=a0_0xa09bd1;return!ValueUtil[_0x2625dc(0x176)](this[_0x2625dc(0x182)])&&this[_0x2625dc(0x182)];}async[a0_0xa09bd1(0x158)](_0x4d04c5){const _0xc6203=a0_0xa09bd1;let {after:_0x32791b,before:_0x1d8b64,column:_0x422589,record:_0x1ce6dd,row:_0x4f863f}=_0x4d04c5[_0xc6203(0x169)],_0xccb223=_0x422589[_0xc6203(0x163)];if(Object['keys'](this[_0xc6203(0x173)]||{})[_0xc6203(0x160)](_0xccb223)){let _0x499c89,_0x20df81=(await MetaApi[_0xc6203(0x172)](void 0x0,this['fieldChangeHandlers'][_0xccb223],{'columnName':_0xccb223,'column':_0x422589,'record':_0x1ce6dd,'after':_0x32791b,'before':_0x1d8b64,'row':_0x4f863f},!0x1))[_0xc6203(0x16d)][_0xc6203(0x18a)]['data']['result'];if(!_0x20df81)return;_0x499c89=this[_0xc6203(0x181)]?this['grist'][_0xc6203(0x181)][_0xc6203(0x171)]:this,Object[_0xc6203(0x18f)](_0x20df81)[_0xc6203(0x15e)](_0x90c4cb=>{const _0xb661b8=_0xc6203;_0x499c89[_0xb661b8(0x18d)](new CustomEvent(_0xb661b8(0x17c),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x1ce6dd,'row':_0x4f863f,'after':_0x20df81[_0x90c4cb],'before':_0x1ce6dd[_0x90c4cb],'column':{'name':_0x90c4cb}}}));});}this['dispatchEvent'](new CustomEvent(_0xc6203(0x188),{'bubbles':!0x0,'composed':!0x0,'detail':_0x4d04c5[_0xc6203(0x169)]}));}async[a0_0xa09bd1(0x161)](){const _0x174972=a0_0xa09bd1;super['connectedCallback']&&await super[_0x174972(0x161)](),this[_0x174972(0x17e)]['toLowerCase']()[_0x174972(0x162)]('meta-form-')?this[_0x174972(0x167)]('form-field-change',async _0x161934=>{const _0x3355a1=_0x174972;await this[_0x3355a1(0x158)](_0x161934);}):this[_0x174972(0x167)](_0x174972(0x17c),async _0x52fdeb=>{const _0x289184=_0x174972;await this[_0x289184(0x158)](_0x52fdeb);});}async[a0_0xa09bd1(0x17b)](_0x9d1cde,_0x3b75ba,_0x451393){const _0x191218=a0_0xa09bd1;let _0xcf42a4=this['lifecycle']?.['params']?this[_0x191218(0x17a)][_0x191218(0x190)]:{};this[_0x191218(0x16e)]&&this[_0x191218(0x193)]&&0x0==_0x451393['active']&&ValueUtil['isNotEmpty'](_0xcf42a4)&&this[_0x191218(0x185)]();}get['isPopup'](){const _0x1d1ad8=a0_0xa09bd1;return!ValueUtil[_0x1d1ad8(0x176)](this['is_popup'])&&this[_0x1d1ad8(0x17f)];}get['isPage'](){const _0x242b64=a0_0xa09bd1;return!this[_0x242b64(0x182)]&&!this['is_popup'];}async['getAndParseMenuMeta'](){const _0x3ba61d=a0_0xa09bd1;let _0x50b6b7=await MetaApi['getMenuMeta'](this);_0x50b6b7&&(this['menuInfo']=_0x50b6b7['menu'],this[_0x3ba61d(0x170)]=_0x50b6b7[_0x3ba61d(0x178)],this[_0x3ba61d(0x15f)]&&this[_0x3ba61d(0x15f)](_0x50b6b7),this[_0x3ba61d(0x192)]&&this[_0x3ba61d(0x192)](_0x50b6b7),this[_0x3ba61d(0x174)]&&this[_0x3ba61d(0x174)](_0x50b6b7),this[_0x3ba61d(0x184)]&&this['parseBasicTabConfigs'](_0x50b6b7),this[_0x3ba61d(0x186)]&&this[_0x3ba61d(0x186)](_0x50b6b7));}async[a0_0xa09bd1(0x185)](){const _0x2d0cbb=a0_0xa09bd1;ValueUtil[_0x2d0cbb(0x180)](this[_0x2d0cbb(0x181)])?this[_0x2d0cbb(0x181)]['fetch']():(ValueUtil[_0x2d0cbb(0x180)](this[_0x2d0cbb(0x189)])||this['fetchHandler'])&&await this[_0x2d0cbb(0x15c)]();}async[a0_0xa09bd1(0x18b)](_0x54dad4,_0x2c988c,_0x233cfb){const _0x375506=a0_0xa09bd1;let _0x2de0c2=TermsUtil['tTitle'](_0x54dad4[_0x375506(0x159)]);ValueUtil['isNotEmpty'](_0x54dad4[_0x375506(0x177)])&&(_0x2de0c2=_0x2de0c2+'-'+ValueUtil[_0x375506(0x18e)](_0x2c988c,..._0x54dad4[_0x375506(0x177)][_0x375506(0x16a)]('.'))),MetaApi[_0x375506(0x175)](_0x2de0c2,_0x54dad4,_0x2c988c,_0x233cfb);}async['executeCallScenarioButtonClick'](_0x1ce6c2,_0x470170,_0x636d48){const _0x3bd2ea=a0_0xa09bd1;let _0x4a269b=await MetaApi[_0x3bd2ea(0x172)](_0x1ce6c2['name'],_0x1ce6c2['name'],_0x470170);!0x1!==_0x4a269b&&!_0x4a269b[_0x3bd2ea(0x17d)]&&ValueUtil[_0x3bd2ea(0x180)](_0x1ce6c2[_0x3bd2ea(0x18c)])&&_0x636d48();}['setParentId'](_0x4db1c5){const _0x537bd1=a0_0xa09bd1;this[_0x537bd1(0x187)]=_0x4db1c5,this[_0x537bd1(0x185)]();}};
@@ -1,4 +1,4 @@
1
- const a0_0x1feaed=a0_0x35bd;(function(_0x19a77e,_0x3006ad){const _0xffab68=a0_0x35bd,_0x5cedfb=_0x19a77e();while(!![]){try{const _0xaaee7e=-parseInt(_0xffab68(0x160))/0x1+parseInt(_0xffab68(0x177))/0x2+parseInt(_0xffab68(0x16b))/0x3+parseInt(_0xffab68(0x15f))/0x4+-parseInt(_0xffab68(0x17b))/0x5+-parseInt(_0xffab68(0x17a))/0x6+parseInt(_0xffab68(0x172))/0x7;if(_0xaaee7e===_0x3006ad)break;else _0x5cedfb['push'](_0x5cedfb['shift']());}catch(_0x4e7084){_0x5cedfb['push'](_0x5cedfb['shift']());}}}(a0_0x31c5,0x9f039));import{html}from'lit';function a0_0x35bd(_0x30dc73,_0x567185){const _0x31c5b0=a0_0x31c5();return a0_0x35bd=function(_0x35bd5d,_0x2c4816){_0x35bd5d=_0x35bd5d-0x154;let _0x1b05c3=_0x31c5b0[_0x35bd5d];return _0x1b05c3;},a0_0x35bd(_0x30dc73,_0x567185);}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_0x31c5(){const _0x426bc5=['querySelector','searchConfig','getButtonContainer','8868412USXPEz','getAndParseMenuMeta','context','gridEmphasized','grist','2332600oISRSL','delete','findOne','6660816ddpbmy','5778930vQMImJ','export','styles','getSelectedIdList','menuInfo','getContextObject','connectedCallback','deleteByIds','parseGristConfigs','ox-filters-form','renderRoot','getParams','activityDataSet','forEach','firstUpdated','save','getBasicGristStyles','records','isPage','startsWith','patchesForUpdateMultiple','parseBasicGridConfigs','render','gridConfig','gridColumnConfig','1663608GXNXvP','916699dMVCOh','isNotEmpty','filterFormId','properties','___data','grid','exportableData','gristId','getBasicGristHtml','isElement','fetch','2954472DyseVk','parse','tTitle','gristConfigSet'];a0_0x31c5=function(){return _0x426bc5;};return a0_0x31c5();}export const MetaBasicGristMixin=_0x2504e7=>class extends MetaButtonMixin(_0x2504e7){static get[a0_0x1feaed(0x17d)](){const _0x2aa719=a0_0x1feaed;return MetaApi[_0x2aa719(0x156)]();}static get[a0_0x1feaed(0x163)](){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_0x1feaed(0x176)](){const _0x1200a0=a0_0x1feaed;return this[_0x1200a0(0x185)]?.[_0x1200a0(0x16f)](this[_0x1200a0(0x167)]);}get['filterForm'](){return this['shadowRoot']?.['querySelector'](this['filterFormId']);}get[a0_0x1feaed(0x174)](){const _0x4eb045=a0_0x1feaed;return MetaUiUtil[_0x4eb045(0x180)](this);}async[a0_0x1feaed(0x181)](){const _0x43c628=a0_0x1feaed;this[_0x43c628(0x167)]='ox-grist',this[_0x43c628(0x162)]=_0x43c628(0x184),await this[_0x43c628(0x173)](),this['isElement']&&await this[_0x43c628(0x183)](),this[_0x43c628(0x187)]&&(this['dataSet']=this[_0x43c628(0x187)]),super['connectedCallback']&&await super[_0x43c628(0x181)]();}async[a0_0x1feaed(0x154)](){const _0x44f184=a0_0x1feaed;super[_0x44f184(0x154)]&&await super[_0x44f184(0x154)]();}async['pageInitialized'](){const _0x2863fd=a0_0x1feaed;this[_0x2863fd(0x158)]&&await this[_0x2863fd(0x183)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x1feaed(0x15c)](){const _0x7f5ab3=a0_0x1feaed;return html`
2
- ${MetaApi[_0x7f5ab3(0x168)](this)}
3
- ${this[_0x7f5ab3(0x158)]?html``:MetaUiUtil[_0x7f5ab3(0x171)](this)}
4
- `;}[a0_0x1feaed(0x15b)](_0x245081){const _0x243147=a0_0x1feaed;this[_0x243147(0x15d)]=_0x245081[_0x243147(0x165)],this[_0x243147(0x15e)]=_0x245081['grid_column'],this[_0x243147(0x170)]=_0x245081['search'],this[_0x243147(0x175)]=_0x245081[_0x243147(0x175)];}async['parseGristConfigs'](){const _0x1f66dd=a0_0x1feaed;this[_0x1f66dd(0x16e)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x1feaed(0x16a)](){const _0x2d0ba7=a0_0x1feaed;await this['grist'][_0x2d0ba7(0x16a)]();}async[a0_0x1feaed(0x155)](){const _0x4b13b1=a0_0x1feaed;let _0x4a04d1=MetaApi[_0x4b13b1(0x15a)](this[_0x4b13b1(0x176)]);!!ValueUtil[_0x4b13b1(0x161)](_0x4a04d1)&&await this['updateMultiple'](_0x4a04d1)&&this[_0x4b13b1(0x16a)]();}async['find'](){const _0xe290f4=a0_0x1feaed;let _0x4c94c1=MetaApi[_0xe290f4(0x17e)](this[_0xe290f4(0x176)],!0x0);return ValueUtil[_0xe290f4(0x161)](_0x4c94c1)?await this[_0xe290f4(0x179)](_0x4c94c1[0x0]):{};}async[a0_0x1feaed(0x178)](){const _0x40ca7e=a0_0x1feaed;let _0x4f95a7=MetaApi['getSelectedIdList'](this[_0x40ca7e(0x176)],!0x0);!!ValueUtil[_0x40ca7e(0x161)](_0x4f95a7)&&await this[_0x40ca7e(0x182)](_0x4f95a7)&&this['fetch']();}async[a0_0x1feaed(0x17c)](){const _0x138ea0=a0_0x1feaed;let _0x35148c=TermsUtil[_0x138ea0(0x16d)](ValueUtil[_0x138ea0(0x186)](this[_0x138ea0(0x17f)],'title'));return await MetaApi[_0x138ea0(0x166)](this[_0x138ea0(0x169)],_0x35148c,this['grist']);}async['import'](){}async['clear'](){const _0x4231eb=a0_0x1feaed;this[_0x4231eb(0x176)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x5509cf=a0_0x1feaed;let _0x5a7455=this[_0x5509cf(0x176)][_0x5509cf(0x164)][_0x5509cf(0x157)];return _0x5a7455=JSON[_0x5509cf(0x16c)](JSON['stringify'](_0x5a7455)),_0x5a7455[_0x5509cf(0x188)](_0x4f816a=>{const _0x434321=_0x5509cf;Object['keys'](_0x4f816a)[_0x434321(0x188)](_0x33390c=>{const _0x253027=_0x434321;_0x33390c[_0x253027(0x159)]('__')&&delete _0x4f816a[_0x33390c];});}),_0x5a7455;}};
1
+ const a0_0x253491=a0_0x2161;(function(_0x2da381,_0x33aa9d){const _0x5e7d11=a0_0x2161,_0x1e5c5c=_0x2da381();while(!![]){try{const _0x561800=parseInt(_0x5e7d11(0x163))/0x1*(parseInt(_0x5e7d11(0x143))/0x2)+-parseInt(_0x5e7d11(0x15b))/0x3+-parseInt(_0x5e7d11(0x144))/0x4+-parseInt(_0x5e7d11(0x142))/0x5+-parseInt(_0x5e7d11(0x14a))/0x6+-parseInt(_0x5e7d11(0x151))/0x7*(parseInt(_0x5e7d11(0x154))/0x8)+parseInt(_0x5e7d11(0x135))/0x9;if(_0x561800===_0x33aa9d)break;else _0x1e5c5c['push'](_0x1e5c5c['shift']());}catch(_0xc5c0db){_0x1e5c5c['push'](_0x1e5c5c['shift']());}}}(a0_0x5746,0xd5dcc));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x5746(){const _0x3456ed=['gridColumnConfig','render','getBasicGristHtml','1359908zpohHi','properties','data','getSelectedIdList','getBasicGristStyles','export','patchesForUpdateMultiple','save','parse','parseGridConfigSet','getButtonContainer','47496978LwuDuX','filterForm','parseBasicGridConfigs','dataSet','parseGristConfigs','connectedCallback','context','filterFormId','getContextObject','fetch','gristId','isNotEmpty','ox-filters-form','2814635junGdH','2qnTyrz','4109636ayclTc','keys','find','grist','findOne','deleteByIds','9657660FtelMr','isPage','querySelector','grid_column','stringify','startsWith','records','7UJZmbq','updateMultiple','clear','12768768ypVDKa','renderRoot','firstUpdated','activityDataSet','gridConfig','gridEmphasized','pageInitialized','2895984XhDSgs','___data','ox-grist','getParams','forEach'];a0_0x5746=function(){return _0x3456ed;};return a0_0x5746();}function a0_0x2161(_0x1b75d9,_0x4a9cb3){const _0x57469e=a0_0x5746();return a0_0x2161=function(_0x216190,_0x59c22f){_0x216190=_0x216190-0x131;let _0x139c07=_0x57469e[_0x216190];return _0x139c07;},a0_0x2161(_0x1b75d9,_0x4a9cb3);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x22e95c=>class extends MetaButtonMixin(_0x22e95c){static get['styles'](){const _0x200e19=a0_0x2161;return MetaApi[_0x200e19(0x167)]();}static get[a0_0x253491(0x164)](){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_0x253491(0x147)](){const _0x673b69=a0_0x253491;return this[_0x673b69(0x155)]?.[_0x673b69(0x14c)](this['gristId']);}get[a0_0x253491(0x136)](){const _0x1fa92e=a0_0x253491;return this['shadowRoot']?.[_0x1fa92e(0x14c)](this[_0x1fa92e(0x13c)]);}get[a0_0x253491(0x13b)](){const _0x138b53=a0_0x253491;return MetaUiUtil[_0x138b53(0x13d)](this);}async[a0_0x253491(0x13a)](){const _0x20f21f=a0_0x253491;this[_0x20f21f(0x13f)]=_0x20f21f(0x15d),this['filterFormId']=_0x20f21f(0x141),await this['getAndParseMenuMeta'](),this['isElement']&&await this['parseGristConfigs'](),this[_0x20f21f(0x157)]&&(this[_0x20f21f(0x138)]=this['activityDataSet']),super['connectedCallback']&&await super[_0x20f21f(0x13a)]();}async[a0_0x253491(0x156)](){const _0x9022c=a0_0x253491;super[_0x9022c(0x156)]&&await super[_0x9022c(0x156)]();}async[a0_0x253491(0x15a)](){this['isPage']&&await this['parseGristConfigs'](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x253491(0x161)](){const _0x5b8396=a0_0x253491;return html`
2
+ ${MetaApi[_0x5b8396(0x162)](this)}
3
+ ${this[_0x5b8396(0x14b)]?html``:MetaUiUtil[_0x5b8396(0x134)](this)}
4
+ `;}[a0_0x253491(0x137)](_0x155e13){const _0x598c8a=a0_0x253491;this[_0x598c8a(0x158)]=_0x155e13['grid'],this[_0x598c8a(0x160)]=_0x155e13[_0x598c8a(0x14d)],this['searchConfig']=_0x155e13['search'],this['gridEmphasized']=_0x155e13[_0x598c8a(0x159)];}async[a0_0x253491(0x139)](){const _0x110cc6=a0_0x253491;this['gristConfigSet']=await MetaApi[_0x110cc6(0x133)](this);}async[a0_0x253491(0x13e)](){const _0x53c72b=a0_0x253491;await this[_0x53c72b(0x147)]['fetch']();}async[a0_0x253491(0x131)](){const _0x5b27e9=a0_0x253491;let _0x351f71=MetaApi[_0x5b27e9(0x169)](this[_0x5b27e9(0x147)]);!!ValueUtil[_0x5b27e9(0x140)](_0x351f71)&&await this[_0x5b27e9(0x152)](_0x351f71)&&this['fetch']();}async[a0_0x253491(0x146)](){const _0x442cee=a0_0x253491;let _0x4ff787=MetaApi[_0x442cee(0x166)](this['grist'],!0x0);return ValueUtil[_0x442cee(0x140)](_0x4ff787)?await this[_0x442cee(0x148)](_0x4ff787[0x0]):{};}async['delete'](){const _0x2c09f6=a0_0x253491;let _0x40241b=MetaApi[_0x2c09f6(0x166)](this[_0x2c09f6(0x147)],!0x0);!!ValueUtil[_0x2c09f6(0x140)](_0x40241b)&&await this[_0x2c09f6(0x149)](_0x40241b)&&this[_0x2c09f6(0x13e)]();}async[a0_0x253491(0x168)](){const _0x2dcb44=a0_0x253491;let _0x3233bb=TermsUtil['tTitle'](ValueUtil[_0x2dcb44(0x15e)](this['menuInfo'],'title'));return await MetaApi['exportableData'](this['isElement'],_0x3233bb,this[_0x2dcb44(0x147)]);}async['import'](){}async[a0_0x253491(0x153)](){const _0x252e70=a0_0x253491;this[_0x252e70(0x147)]&&(this[_0x252e70(0x147)][_0x252e70(0x165)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x34b677=a0_0x253491;let _0x546070=this[_0x34b677(0x147)][_0x34b677(0x15c)][_0x34b677(0x150)];return _0x546070=JSON[_0x34b677(0x132)](JSON[_0x34b677(0x14e)](_0x546070)),_0x546070[_0x34b677(0x15f)](_0x8b7931=>{const _0x5b4157=_0x34b677;Object[_0x5b4157(0x145)](_0x8b7931)[_0x5b4157(0x15f)](_0xf901fe=>{const _0x47f755=_0x5b4157;_0xf901fe[_0x47f755(0x14f)]('__')&&delete _0x8b7931[_0xf901fe];});}),_0x546070;}};
@@ -1 +1 @@
1
- const a0_0x8e9639=a0_0x4859;(function(_0x2ac328,_0x1cc7f8){const _0x19bdb5=a0_0x4859,_0x48652d=_0x2ac328();while(!![]){try{const _0x54034a=parseInt(_0x19bdb5(0x165))/0x1+-parseInt(_0x19bdb5(0x160))/0x2+parseInt(_0x19bdb5(0x166))/0x3+parseInt(_0x19bdb5(0x15d))/0x4+-parseInt(_0x19bdb5(0x15c))/0x5+parseInt(_0x19bdb5(0x164))/0x6*(-parseInt(_0x19bdb5(0x15e))/0x7)+parseInt(_0x19bdb5(0x168))/0x8;if(_0x54034a===_0x1cc7f8)break;else _0x48652d['push'](_0x48652d['shift']());}catch(_0x56f1f9){_0x48652d['push'](_0x48652d['shift']());}}}(a0_0xa32f,0xa4883));function a0_0xa32f(){const _0x5f1ee7=['2463144praFUn','getContextButtons','isPage','properties','6LLYmNY','1119116okhgns','755994WuHFhX','export','10696752kznVcL','parseBasicButtonConfigs','getCustomButtonContainerStyle','getCustomButtonContainerStyles','isButtonExist','add','useButtonAdd','buttonConfig','gristButtonHandler','customButtonHandler','getButtonContainer','155245qzIutD','2107908SlWLdo','9090487BBVUJw','useButtonImport'];a0_0xa32f=function(){return _0x5f1ee7;};return a0_0xa32f();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x4859(_0x32deb5,_0xf86800){const _0xa32fe0=a0_0xa32f();return a0_0x4859=function(_0x485996,_0xc572c3){_0x485996=_0x485996-0x154;let _0x56780b=_0xa32fe0[_0x485996];return _0x56780b;},a0_0x4859(_0x32deb5,_0xf86800);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0xfc83fc=>class extends MetaServiceMixin(_0xfc83fc){static get[a0_0x8e9639(0x163)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x8e9639(0x16a)](){const _0x19bb0b=a0_0x8e9639;return MetaUiUtil[_0x19bb0b(0x154)]();}['getContextButtons'](){const _0x5488e6=a0_0x8e9639;return MetaUiUtil[_0x5488e6(0x161)](this);}[a0_0x8e9639(0x15b)](){const _0x45510f=a0_0x8e9639;return this[_0x45510f(0x162)]?html``:MetaUiUtil[_0x45510f(0x15b)](this);}async['getBasicButtonHandler'](_0x23cab1,_0xa59ad8,_0x216093){return await MetaUiUtil['getButtonActionHandler'](this,_0x23cab1,_0xa59ad8,_0x216093);}async['customButtonHandler'](_0x1d94d9){const _0x4f617a=a0_0x8e9639;await MetaUiUtil[_0x4f617a(0x15a)](this,_0x1d94d9);}async['gristButtonHandler'](_0x2afaa4,_0x1fa5c3){const _0x78ca96=a0_0x8e9639;await MetaUiUtil[_0x78ca96(0x159)](this,_0x2afaa4,_0x1fa5c3);}[a0_0x8e9639(0x169)](_0x2ad4b0){const _0x3ea80b=a0_0x8e9639;this[_0x3ea80b(0x158)]=_0x2ad4b0['button'],this[_0x3ea80b(0x15f)]=MetaUiUtil['isButtonExist'](this[_0x3ea80b(0x158)],'import'),this['useButtonExport']=MetaUiUtil[_0x3ea80b(0x155)](this[_0x3ea80b(0x158)],_0x3ea80b(0x167)),this[_0x3ea80b(0x157)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x3ea80b(0x156));}};
1
+ const a0_0x285538=a0_0x5e7f;function a0_0x547f(){const _0x2e34ef=['useButtonImport','isButtonExist','buttonConfig','15688710YvBIhz','getContextButtons','useButtonExport','parseBasicButtonConfigs','button','80060sLfLeF','1fAabUP','75175JVjLOQ','getBasicButtonHandler','321678iZGvNW','getCustomButtonContainerStyles','getCustomButtonContainerStyle','80tPGeHx','11872488ojcHjh','getButtonContainer','258BNeINF','add','properties','isPage','9892428IwZKeT','18IJIIhV','1924026FuBsiA','useButtonAdd','44MIFxLa','import','customButtonHandler','gristButtonHandler'];a0_0x547f=function(){return _0x2e34ef;};return a0_0x547f();}function a0_0x5e7f(_0x14a7e1,_0x388b52){const _0x547fe2=a0_0x547f();return a0_0x5e7f=function(_0x5e7fbc,_0x151db5){_0x5e7fbc=_0x5e7fbc-0x1ea;let _0xcf694b=_0x547fe2[_0x5e7fbc];return _0xcf694b;},a0_0x5e7f(_0x14a7e1,_0x388b52);}(function(_0x264421,_0x5bde49){const _0x5fc9f4=a0_0x5e7f,_0x1b1e3b=_0x264421();while(!![]){try{const _0x52c30c=-parseInt(_0x5fc9f4(0x1ec))/0x1*(-parseInt(_0x5fc9f4(0x1fb))/0x2)+-parseInt(_0x5fc9f4(0x1fa))/0x3*(parseInt(_0x5fc9f4(0x1eb))/0x4)+parseInt(_0x5fc9f4(0x1ed))/0x5*(-parseInt(_0x5fc9f4(0x1f5))/0x6)+-parseInt(_0x5fc9f4(0x1f9))/0x7+-parseInt(_0x5fc9f4(0x1f2))/0x8*(parseInt(_0x5fc9f4(0x1ef))/0x9)+-parseInt(_0x5fc9f4(0x204))/0xa+parseInt(_0x5fc9f4(0x1fd))/0xb*(parseInt(_0x5fc9f4(0x1f3))/0xc);if(_0x52c30c===_0x5bde49)break;else _0x1b1e3b['push'](_0x1b1e3b['shift']());}catch(_0x1ecfc1){_0x1b1e3b['push'](_0x1b1e3b['shift']());}}}(a0_0x547f,0xc696b));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x49fe76=>class extends MetaServiceMixin(_0x49fe76){static get[a0_0x285538(0x1f7)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x285538(0x1f1)](){const _0x11a183=a0_0x285538;return MetaUiUtil[_0x11a183(0x1f0)]();}[a0_0x285538(0x205)](){const _0x180b03=a0_0x285538;return MetaUiUtil[_0x180b03(0x205)](this);}[a0_0x285538(0x1f4)](){const _0x17a0a0=a0_0x285538;return this[_0x17a0a0(0x1f8)]?html``:MetaUiUtil[_0x17a0a0(0x1f4)](this);}async[a0_0x285538(0x1ee)](_0x300fa1,_0x2c797b,_0x25f51d){return await MetaUiUtil['getButtonActionHandler'](this,_0x300fa1,_0x2c797b,_0x25f51d);}async[a0_0x285538(0x1ff)](_0x32e391){const _0x44716f=a0_0x285538;await MetaUiUtil[_0x44716f(0x1ff)](this,_0x32e391);}async[a0_0x285538(0x200)](_0x32a9e8,_0x357485){const _0x509210=a0_0x285538;await MetaUiUtil[_0x509210(0x200)](this,_0x32a9e8,_0x357485);}[a0_0x285538(0x207)](_0x2bce1a){const _0x299ca8=a0_0x285538;this[_0x299ca8(0x203)]=_0x2bce1a[_0x299ca8(0x1ea)],this[_0x299ca8(0x201)]=MetaUiUtil['isButtonExist'](this[_0x299ca8(0x203)],_0x299ca8(0x1fe)),this[_0x299ca8(0x206)]=MetaUiUtil[_0x299ca8(0x202)](this[_0x299ca8(0x203)],'export'),this[_0x299ca8(0x1fc)]=MetaUiUtil[_0x299ca8(0x202)](this[_0x299ca8(0x203)],_0x299ca8(0x1f6));}};
@@ -1 +1 @@
1
- const a0_0x2195a8=a0_0x2731;(function(_0x301ef3,_0x42c6be){const _0x58384d=a0_0x2731,_0x1a4a85=_0x301ef3();while(!![]){try{const _0x53558a=parseInt(_0x58384d(0x19f))/0x1+-parseInt(_0x58384d(0x154))/0x2+parseInt(_0x58384d(0x179))/0x3+-parseInt(_0x58384d(0x182))/0x4+parseInt(_0x58384d(0x190))/0x5+-parseInt(_0x58384d(0x155))/0x6+-parseInt(_0x58384d(0x171))/0x7;if(_0x53558a===_0x42c6be)break;else _0x1a4a85['push'](_0x1a4a85['shift']());}catch(_0x41195c){_0x1a4a85['push'](_0x1a4a85['shift']());}}}(a0_0x17eb,0xb5272));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2731(_0x30e9cf,_0x15ebdf){const _0x17eb43=a0_0x17eb();return a0_0x2731=function(_0x2731f1,_0x176942){_0x2731f1=_0x2731f1-0x14f;let _0x2d0270=_0x17eb43[_0x2731f1];return _0x2d0270;},a0_0x2731(_0x30e9cf,_0x15ebdf);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0xe21e08=>class extends MetaButtonMixin(_0xe21e08){static get[a0_0x2195a8(0x165)](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x2195a8(0x177)](){const _0x44374c=a0_0x2195a8;return MetaUiUtil[_0x44374c(0x157)](this);}async['connectedCallback'](){const _0x18dafc=a0_0x2195a8;await this[_0x18dafc(0x14f)](),this[_0x18dafc(0x191)]&&await this[_0x18dafc(0x158)](),this['activityDataSet']&&(this[_0x18dafc(0x18b)]=this[_0x18dafc(0x150)]),!0x0!==this['is_activity']||this[_0x18dafc(0x162)]||(this['parent_id']=_0x18dafc(0x19e)),super[_0x18dafc(0x170)]&&await super[_0x18dafc(0x170)](),this['isElement']&&await this[_0x18dafc(0x17a)](),this['renderRoot']['addEventListener']('keydown',_0x3166eb=>{const _0x383527=_0x18dafc;switch(_0x3166eb[_0x383527(0x184)]){case _0x383527(0x16d):case _0x383527(0x17c):case _0x383527(0x19b):this[_0x383527(0x19c)](),this[_0x383527(0x156)]&&this['currentTarget'][_0x383527(0x16f)]('editing'),this[_0x383527(0x156)]=null;}}),this[_0x18dafc(0x18a)][_0x18dafc(0x15b)](_0x18dafc(0x163),_0x39a139=>{const _0x45847c=_0x18dafc;_0x39a139[_0x45847c(0x164)]();let _0x2c1eb6=_0x39a139[_0x45847c(0x192)];if(this[_0x45847c(0x156)]&&(this['focus'](),this[_0x45847c(0x156)]['removeAttribute']('editing')),_0x45847c(0x183)!==_0x2c1eb6[_0x45847c(0x153)]||!_0x2c1eb6[_0x45847c(0x1a0)][_0x45847c(0x168)][_0x45847c(0x173)])return this[_0x45847c(0x19c)](),void(this[_0x45847c(0x156)]=null);this[_0x45847c(0x156)]=_0x2c1eb6,_0x2c1eb6[_0x45847c(0x199)](_0x45847c(0x17e),_0x45847c(0x198));}),this['addEventListener'](_0x18dafc(0x15e),_0x1f1b9c=>{const _0xb2555a=_0x18dafc;var {after:_0x5a72b4,before:_0x3e9f6c,column:_0x380f81,record:_0x590fe7,row:_0x34af18}=_0x1f1b9c[_0xb2555a(0x17d)];if(ValueUtil['isEquals'](_0x5a72b4,_0x3e9f6c))return;var _0x9f95e7=_0x380f81[_0xb2555a(0x186)];if(_0x9f95e7&&_0xb2555a(0x19d)==typeof _0x9f95e7&&!_0x9f95e7[_0xb2555a(0x15a)](this,_0x5a72b4,_0x3e9f6c,_0x590fe7,_0x380f81))return;let _0x6a39bf=_0x380f81[_0xb2555a(0x194)];_0x590fe7[_0x6a39bf]=_0x5a72b4,_0x590fe7['__dirtyfields__']=_0x590fe7[_0xb2555a(0x151)]||{},_0x590fe7['__origin__']=_0x590fe7[_0xb2555a(0x17f)]||{},_0x590fe7[_0xb2555a(0x151)][_0x6a39bf]={'before':_0x590fe7[_0xb2555a(0x17f)][_0x6a39bf],'after':_0x590fe7[_0x6a39bf]},ValueUtil[_0xb2555a(0x195)](_0x590fe7[_0xb2555a(0x151)][_0x6a39bf][_0xb2555a(0x181)],_0x590fe7['__dirtyfields__'][_0x6a39bf]['after'])&&delete _0x590fe7[_0xb2555a(0x151)][_0x6a39bf],ValueUtil[_0xb2555a(0x187)](_0x590fe7['__dirtyfields__'])?_0x590fe7[_0xb2555a(0x159)]='M':_0x590fe7['__dirty__']='',this[_0xb2555a(0x168)]={..._0x590fe7},this[_0xb2555a(0x185)](new CustomEvent(_0xb2555a(0x169),{'bubbles':!0x0,'composed':!0x0,'detail':_0x1f1b9c['detail']}));});}async[a0_0x2195a8(0x188)](){const _0x5f15cc=a0_0x2195a8;super['firstUpdated']&&await super[_0x5f15cc(0x188)]();}async[a0_0x2195a8(0x15c)](){const _0x422559=a0_0x2195a8;this['isPage']&&await this[_0x422559(0x158)](),super['pageInitialized']&&await super[_0x422559(0x15c)](),this[_0x422559(0x18c)]&&await this['fetch']();}[a0_0x2195a8(0x193)](){const _0x2d79af=a0_0x2195a8;return MetaApi[_0x2d79af(0x189)](this);}['parseBasicFormConfigs'](_0x2b74c6){const _0x555f15=a0_0x2195a8;this[_0x555f15(0x167)]=_0x2b74c6[_0x555f15(0x1a3)],this[_0x555f15(0x1a1)]=_0x2b74c6[_0x555f15(0x19a)],_0x2b74c6[_0x555f15(0x16a)]=_0x2b74c6[_0x555f15(0x16a)][_0x555f15(0x161)](_0x1a43db=>'save'==_0x1a43db[_0x555f15(0x194)]);}async[a0_0x2195a8(0x158)](){const _0x1b0730=a0_0x2195a8;this[_0x1b0730(0x18f)]=await MetaApi[_0x1b0730(0x196)](this);}get['orgData'](){const _0x2cd960=a0_0x2195a8;return this['removeGarbageData'](this[_0x2cd960(0x168)]['__origin__']);}get['dirtyData'](){const _0x591243=a0_0x2195a8;if(ValueUtil[_0x591243(0x197)](this[_0x591243(0x168)][_0x591243(0x151)]))return{};let _0x549d83={};return Object[_0x591243(0x166)](this[_0x591243(0x168)][_0x591243(0x151)])['map'](([_0x4a1390,_0x5b6c2e])=>{const _0x573e9b=_0x591243;0x0==_0x4a1390['startsWith']('__')&&(_0x549d83[_0x4a1390]=_0x5b6c2e[_0x573e9b(0x172)]);}),_0x549d83;}get[a0_0x2195a8(0x16c)](){const _0x50b6f6=a0_0x2195a8;return this[_0x50b6f6(0x17b)](this['record']);}[a0_0x2195a8(0x17b)](_0x32afa4){const _0x39669a=a0_0x2195a8;let _0x384c68={};if(_0x32afa4)return Object[_0x39669a(0x166)](_0x32afa4)[_0x39669a(0x160)](([_0xf9ca3f,_0x36520a])=>{const _0x486d20=_0x39669a;0x0==_0xf9ca3f[_0x486d20(0x18e)]('__')&&(_0x384c68[_0xf9ca3f]=_0x36520a);}),_0x384c68;}get['patchData'](){const _0x47559c=a0_0x2195a8;let _0x524c1e=this[_0x47559c(0x1a4)],_0x597466=this[_0x47559c(0x168)];return ValueUtil['isEmpty'](_0x524c1e)?[]:(ValueUtil['isNotEmpty'](_0x597466['id'])?(_0x524c1e['id']=_0x597466['id'],_0x524c1e[_0x47559c(0x180)]='M'):_0x524c1e[_0x47559c(0x180)]='+',Object[_0x47559c(0x178)](_0x524c1e)[_0x47559c(0x152)](_0x12bdc6=>{const _0x1e275f=_0x47559c;_0x1e275f(0x15d)==typeof _0x524c1e[_0x12bdc6]&&(_0x524c1e[_0x12bdc6]={'id':_0x524c1e[_0x12bdc6]['id']});}),[_0x524c1e]);}async['fetch'](){const _0x1f1d9f=a0_0x2195a8;if(ValueUtil[_0x1f1d9f(0x197)](this['parent_id']))return;let _0x2fcfc8=await this[_0x1f1d9f(0x16b)](this['parent_id']);_0x2fcfc8[_0x1f1d9f(0x1a2)]=0x1;let _0x8a3845={};Object[_0x1f1d9f(0x175)](_0x8a3845,_0x2fcfc8),_0x2fcfc8['__origin__']=_0x8a3845,this[_0x1f1d9f(0x168)]={..._0x2fcfc8};}async[a0_0x2195a8(0x15f)](){const _0x1b8589=a0_0x2195a8;let _0x215606=this[_0x1b8589(0x176)];if(ValueUtil[_0x1b8589(0x197)](_0x215606))return void MetaApi['showAlertPopup']('title.info',_0x1b8589(0x174));let _0x1ebb70=await this[_0x1b8589(0x18d)](_0x215606);return _0x1ebb70&&await this[_0x1b8589(0x17a)](),_0x1ebb70;}async['clear'](){const _0x39e959=a0_0x2195a8;this[_0x39e959(0x168)]&&(this[_0x39e959(0x168)]={});}[a0_0x2195a8(0x16e)](){const _0x5bd7f1=a0_0x2195a8;return this[_0x5bd7f1(0x16c)]||{};}};function a0_0x17eb(){const _0x255d73=['__seq__','grid_column','dirtyData','getAndParseMenuMeta','activityDataSet','__dirtyfields__','forEach','tagName','2200632HqLUol','2208096lLcZLf','currentTarget','getContextObject','parseFormConfigs','__dirty__','call','addEventListener','pageInitialized','object','field-change','save','map','filter','parent_id','click','stopPropagation','styles','entries','formColumnConfig','record','form-field-change','button','findOne','currentData','Esc','getData','removeAttribute','connectedCallback','6205003ifNkPu','after','editable','text.NOTHING_CHANGED','assign','patchData','context','keys','2984511mNDXVZ','fetch','removeGarbageData','Escape','detail','editing','__origin__','cuFlag','before','637536nnfrza','OX-GRID-FIELD','key','dispatchEvent','validation','isNotEmpty','firstUpdated','getBasicFormHtml','renderRoot','dataSet','isPage','updateMultiple','startsWith','formConfigSet','3959865sEEdBB','isElement','target','render','name','isEquals','parseFormConfigSet','isEmpty','true','setAttribute','form','Enter','focus','function','activity','1469337szKque','column','formRenderConfig'];a0_0x17eb=function(){return _0x255d73;};return a0_0x17eb();}
1
+ function a0_0x464e(_0x572de4,_0x1e2714){const _0x2dd864=a0_0x2dd8();return a0_0x464e=function(_0x464ef6,_0x4f2ff0){_0x464ef6=_0x464ef6-0x8e;let _0x28567b=_0x2dd864[_0x464ef6];return _0x28567b;},a0_0x464e(_0x572de4,_0x1e2714);}const a0_0x1c9010=a0_0x464e;(function(_0xa47ab8,_0x301e85){const _0x586cbf=a0_0x464e,_0x32ef8d=_0xa47ab8();while(!![]){try{const _0x339477=parseInt(_0x586cbf(0xaf))/0x1+parseInt(_0x586cbf(0xbc))/0x2+-parseInt(_0x586cbf(0x9c))/0x3*(-parseInt(_0x586cbf(0xac))/0x4)+-parseInt(_0x586cbf(0xae))/0x5+parseInt(_0x586cbf(0xa8))/0x6+parseInt(_0x586cbf(0xca))/0x7+-parseInt(_0x586cbf(0x93))/0x8;if(_0x339477===_0x301e85)break;else _0x32ef8d['push'](_0x32ef8d['shift']());}catch(_0x56e069){_0x32ef8d['push'](_0x32ef8d['shift']());}}}(a0_0x2dd8,0xd7b8d));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x2dd8(){const _0x10b933=['removeGarbageData','__seq__','editable','5257839mYabLB','keys','keydown','OX-GRID-FIELD','patchData','isElement','activityDataSet','tagName','removeAttribute','map','after','isEquals','781302PXsQzD','render','column','formColumnConfig','4yNDYwZ','editing','7268650VxqkYl','796207CeHhgQ','call','formRenderConfig','currentTarget','__dirty__','detail','isEmpty','updateMultiple','text.NOTHING_CHANGED','activity','fetch','stopPropagation','title.info','787456pQKtnr','getContextObject','form-field-change','setAttribute','function','focus','parent_id','addEventListener','orgData','validation','formConfigSet','styles','key','save','6339984RvwVBA','currentData','name','filter','isNotEmpty','entries','showAlertPopup','renderRoot','before','pageInitialized','is_activity','Esc','parseFormConfigs','dirtyData','dataSet','Escape','__origin__','startsWith','object','cuFlag','button','connectedCallback','dispatchEvent','13129200IrloWp','parseFormConfigSet','getBasicFormHtml','firstUpdated','record','__dirtyfields__'];a0_0x2dd8=function(){return _0x10b933;};return a0_0x2dd8();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x3ef2ba=>class extends MetaButtonMixin(_0x3ef2ba){static get[a0_0x1c9010(0xc7)](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x3b883f=a0_0x1c9010;return MetaUiUtil[_0x3b883f(0xbd)](this);}async[a0_0x1c9010(0x91)](){const _0x5582d5=a0_0x1c9010;await this['getAndParseMenuMeta'](),this[_0x5582d5(0xa1)]&&await this['parseFormConfigs'](),this[_0x5582d5(0xa2)]&&(this[_0x5582d5(0xd8)]=this[_0x5582d5(0xa2)]),!0x0!==this[_0x5582d5(0xd4)]||this[_0x5582d5(0xc2)]||(this['parent_id']=_0x5582d5(0xb8)),super[_0x5582d5(0x91)]&&await super[_0x5582d5(0x91)](),this[_0x5582d5(0xa1)]&&await this[_0x5582d5(0xb9)](),this[_0x5582d5(0xd1)][_0x5582d5(0xc3)](_0x5582d5(0x9e),_0x425e94=>{const _0x967520=_0x5582d5;switch(_0x425e94[_0x967520(0xc8)]){case _0x967520(0xd5):case _0x967520(0xd9):case'Enter':this['focus'](),this[_0x967520(0xb2)]&&this['currentTarget'][_0x967520(0xa4)](_0x967520(0xad)),this['currentTarget']=null;}}),this[_0x5582d5(0xd1)]['addEventListener']('click',_0x1714a4=>{const _0x1f3b1f=_0x5582d5;_0x1714a4[_0x1f3b1f(0xba)]();let _0x1e6b1f=_0x1714a4['target'];if(this[_0x1f3b1f(0xb2)]&&(this[_0x1f3b1f(0xc1)](),this[_0x1f3b1f(0xb2)][_0x1f3b1f(0xa4)](_0x1f3b1f(0xad))),_0x1f3b1f(0x9f)!==_0x1e6b1f[_0x1f3b1f(0xa3)]||!_0x1e6b1f[_0x1f3b1f(0xaa)][_0x1f3b1f(0x97)][_0x1f3b1f(0x9b)])return this[_0x1f3b1f(0xc1)](),void(this[_0x1f3b1f(0xb2)]=null);this['currentTarget']=_0x1e6b1f,_0x1e6b1f[_0x1f3b1f(0xbf)](_0x1f3b1f(0xad),'true');}),this[_0x5582d5(0xc3)]('field-change',_0x1f39ee=>{const _0xdd7679=_0x5582d5;var {after:_0x27e2d2,before:_0x5c2c76,column:_0x513c2b,record:_0x121751,row:_0x57f87c}=_0x1f39ee[_0xdd7679(0xb4)];if(ValueUtil[_0xdd7679(0xa7)](_0x27e2d2,_0x5c2c76))return;var _0x1edd7d=_0x513c2b[_0xdd7679(0xc5)];if(_0x1edd7d&&_0xdd7679(0xc0)==typeof _0x1edd7d&&!_0x1edd7d[_0xdd7679(0xb0)](this,_0x27e2d2,_0x5c2c76,_0x121751,_0x513c2b))return;let _0x1e62f5=_0x513c2b[_0xdd7679(0xcc)];_0x121751[_0x1e62f5]=_0x27e2d2,_0x121751[_0xdd7679(0x98)]=_0x121751[_0xdd7679(0x98)]||{},_0x121751[_0xdd7679(0xda)]=_0x121751[_0xdd7679(0xda)]||{},_0x121751[_0xdd7679(0x98)][_0x1e62f5]={'before':_0x121751[_0xdd7679(0xda)][_0x1e62f5],'after':_0x121751[_0x1e62f5]},ValueUtil[_0xdd7679(0xa7)](_0x121751[_0xdd7679(0x98)][_0x1e62f5][_0xdd7679(0xd2)],_0x121751[_0xdd7679(0x98)][_0x1e62f5][_0xdd7679(0xa6)])&&delete _0x121751[_0xdd7679(0x98)][_0x1e62f5],ValueUtil[_0xdd7679(0xce)](_0x121751['__dirtyfields__'])?_0x121751[_0xdd7679(0xb3)]='M':_0x121751[_0xdd7679(0xb3)]='',this[_0xdd7679(0x97)]={..._0x121751},this[_0xdd7679(0x92)](new CustomEvent(_0xdd7679(0xbe),{'bubbles':!0x0,'composed':!0x0,'detail':_0x1f39ee['detail']}));});}async[a0_0x1c9010(0x96)](){const _0x475f8b=a0_0x1c9010;super[_0x475f8b(0x96)]&&await super[_0x475f8b(0x96)]();}async[a0_0x1c9010(0xd3)](){const _0x579095=a0_0x1c9010;this['isPage']&&await this[_0x579095(0xd6)](),super[_0x579095(0xd3)]&&await super[_0x579095(0xd3)](),this['isPage']&&await this[_0x579095(0xb9)]();}[a0_0x1c9010(0xa9)](){const _0x1c14bf=a0_0x1c9010;return MetaApi[_0x1c14bf(0x95)](this);}['parseBasicFormConfigs'](_0x5c1b6d){const _0x5bdd3d=a0_0x1c9010;this[_0x5bdd3d(0xab)]=_0x5c1b6d['grid_column'],this[_0x5bdd3d(0xb1)]=_0x5c1b6d['form'],_0x5c1b6d['button']=_0x5c1b6d[_0x5bdd3d(0x90)][_0x5bdd3d(0xcd)](_0x4113be=>_0x5bdd3d(0xc9)==_0x4113be['name']);}async[a0_0x1c9010(0xd6)](){const _0x48c573=a0_0x1c9010;this[_0x48c573(0xc6)]=await MetaApi[_0x48c573(0x94)](this);}get[a0_0x1c9010(0xc4)](){const _0xfea67f=a0_0x1c9010;return this[_0xfea67f(0x99)](this[_0xfea67f(0x97)][_0xfea67f(0xda)]);}get[a0_0x1c9010(0xd7)](){const _0x3ee2bf=a0_0x1c9010;if(ValueUtil[_0x3ee2bf(0xb5)](this[_0x3ee2bf(0x97)][_0x3ee2bf(0x98)]))return{};let _0x28a963={};return Object[_0x3ee2bf(0xcf)](this[_0x3ee2bf(0x97)][_0x3ee2bf(0x98)])[_0x3ee2bf(0xa5)](([_0x57de05,_0x3093fc])=>{const _0x47c041=_0x3ee2bf;0x0==_0x57de05[_0x47c041(0xdb)]('__')&&(_0x28a963[_0x57de05]=_0x3093fc['after']);}),_0x28a963;}get[a0_0x1c9010(0xcb)](){const _0x4d5127=a0_0x1c9010;return this[_0x4d5127(0x99)](this['record']);}[a0_0x1c9010(0x99)](_0xce75ed){const _0x51cec3=a0_0x1c9010;let _0x5b1c1e={};if(_0xce75ed)return Object[_0x51cec3(0xcf)](_0xce75ed)[_0x51cec3(0xa5)](([_0x3f0fa0,_0x1a8ac2])=>{const _0x4497d4=_0x51cec3;0x0==_0x3f0fa0[_0x4497d4(0xdb)]('__')&&(_0x5b1c1e[_0x3f0fa0]=_0x1a8ac2);}),_0x5b1c1e;}get['patchData'](){const _0x49610f=a0_0x1c9010;let _0x1f26bd=this[_0x49610f(0xd7)],_0xfaafc8=this[_0x49610f(0x97)];return ValueUtil[_0x49610f(0xb5)](_0x1f26bd)?[]:(ValueUtil[_0x49610f(0xce)](_0xfaafc8['id'])?(_0x1f26bd['id']=_0xfaafc8['id'],_0x1f26bd['cuFlag']='M'):_0x1f26bd[_0x49610f(0x8f)]='+',Object[_0x49610f(0x9d)](_0x1f26bd)['forEach'](_0xa6d39=>{const _0x1ab60e=_0x49610f;_0x1ab60e(0x8e)==typeof _0x1f26bd[_0xa6d39]&&(_0x1f26bd[_0xa6d39]={'id':_0x1f26bd[_0xa6d39]['id']});}),[_0x1f26bd]);}async[a0_0x1c9010(0xb9)](){const _0x137dce=a0_0x1c9010;if(ValueUtil['isEmpty'](this[_0x137dce(0xc2)]))return;let _0x39dd6f=await this['findOne'](this[_0x137dce(0xc2)]);_0x39dd6f[_0x137dce(0x9a)]=0x1;let _0x3d9e0f={};Object['assign'](_0x3d9e0f,_0x39dd6f),_0x39dd6f['__origin__']=_0x3d9e0f,this[_0x137dce(0x97)]={..._0x39dd6f};}async['save'](){const _0x4d983f=a0_0x1c9010;let _0x25c41a=this[_0x4d983f(0xa0)];if(ValueUtil[_0x4d983f(0xb5)](_0x25c41a))return void MetaApi[_0x4d983f(0xd0)](_0x4d983f(0xbb),_0x4d983f(0xb7));let _0xafb4ba=await this[_0x4d983f(0xb6)](_0x25c41a);return _0xafb4ba&&await this[_0x4d983f(0xb9)](),_0xafb4ba;}async['clear'](){const _0x385797=a0_0x1c9010;this[_0x385797(0x97)]&&(this[_0x385797(0x97)]={});}['getData'](){return this['currentData']||{};}};
@@ -1 +1 @@
1
- const a0_0x3f0209=a0_0x1b8b;(function(_0x4cf2e1,_0x4478f2){const _0x19dcaa=a0_0x1b8b,_0x50c6d1=_0x4cf2e1();while(!![]){try{const _0x16a095=parseInt(_0x19dcaa(0x1cc))/0x1+-parseInt(_0x19dcaa(0x1ca))/0x2+parseInt(_0x19dcaa(0x1a9))/0x3+-parseInt(_0x19dcaa(0x1a3))/0x4+parseInt(_0x19dcaa(0x1cd))/0x5*(-parseInt(_0x19dcaa(0x1d8))/0x6)+-parseInt(_0x19dcaa(0x1e1))/0x7+parseInt(_0x19dcaa(0x1aa))/0x8;if(_0x16a095===_0x4478f2)break;else _0x50c6d1['push'](_0x50c6d1['shift']());}catch(_0x8ab724){_0x50c6d1['push'](_0x50c6d1['shift']());}}}(a0_0x1786,0x3605a));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x1786(){const _0x2837d2=['options','shadowRoot','1904301NlTBLM','actions','fetch','filterFormId','meta-tab-element','tTitle','useMasterFilterForm','updateMultiple','parseGridConfigSet','activityDataSet','connectedCallback','isElement','beforeFetch','stringify','exportableData','grid_column','351060QXyTjW','render','type','firstUpdated','search','searchConfig','19509yGmdEh','5119928NvCKMK','records','gristConfigSet','parse','isPage','isNotEmpty','getBasicGristTabStyles','#detail','title','importable','gristId','context','gridConfig','gridEmphasized','grist','filterForm','patchesForUpdateMultiple','___data','getContextObject','getGristTabHtml','ox-filters-form-base','record','forEach','getParams','map','pageInitialized','delete','clear','getData','export','querySelector','getSelectedIdList','323768gjQXlJ','operator','425359LZAOmS','126495gCqjlk','menuInfo','gridColumnConfig','value','findOne','useFilterForm','header','grid','searchFieldValues','name','main','78UOEGxM','filter','exportable','dataSet','deleteByIds','parseGristConfigs','startsWith'];a0_0x1786=function(){return _0x2837d2;};return a0_0x1786();}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x1b8b(_0x18bbc3,_0xddb9af){const _0x1786ba=a0_0x1786();return a0_0x1b8b=function(_0x1b8b4b,_0x346d46){_0x1b8b4b=_0x1b8b4b-0x19e;let _0x3efe5d=_0x1786ba[_0x1b8b4b];return _0x3efe5d;},a0_0x1b8b(_0x18bbc3,_0xddb9af);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x5c9cc6=>class extends MetaButtonMixin(_0x5c9cc6){static get['styles'](){const _0x782b53=a0_0x1b8b;return MetaApi[_0x782b53(0x1b0)]();}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['grist'](){return this['renderRoot']['querySelector'](this['gristId']);}get[a0_0x3f0209(0x1b9)](){const _0x4b7860=a0_0x3f0209;return this[_0x4b7860(0x1e0)]?.[_0x4b7860(0x1c8)](this[_0x4b7860(0x1e4)]);}get['detailElement'](){const _0x1121d9=a0_0x3f0209;return this[_0x1121d9(0x1e0)][_0x1121d9(0x1c8)](_0x1121d9(0x1b1));}get[a0_0x3f0209(0x1b5)](){const _0x4ebfed=a0_0x3f0209;let _0x1f0efa=MetaUiUtil[_0x4ebfed(0x1bc)](this);return _0x1f0efa[_0x4ebfed(0x1e2)]&&delete _0x1f0efa['actions'],_0x1f0efa[_0x4ebfed(0x1da)]&&delete _0x1f0efa[_0x4ebfed(0x1da)],_0x1f0efa[_0x4ebfed(0x1b3)]&&delete _0x1f0efa[_0x4ebfed(0x1b3)],_0x1f0efa;}async[a0_0x3f0209(0x1eb)](){const _0x3f9a79=a0_0x3f0209;this[_0x3f9a79(0x1b4)]='ox-grist',this['filterFormId']=_0x3f9a79(0x1be),await this['getAndParseMenuMeta'](),this[_0x3f9a79(0x19e)]&&await this[_0x3f9a79(0x1dd)](),this[_0x3f9a79(0x1ea)]&&(this[_0x3f9a79(0x1db)]=(this[_0x3f9a79(0x1ea)]||{})[_0x3f9a79(0x1d7)]),super['connectedCallback']&&await super['connectedCallback']();}async['firstUpdated'](){const _0x47c7ab=a0_0x3f0209;super[_0x47c7ab(0x1a6)]&&await super[_0x47c7ab(0x1a6)]();}async[a0_0x3f0209(0x1c3)](){const _0x3ea582=a0_0x3f0209;this[_0x3ea582(0x1ae)]&&await this[_0x3ea582(0x1dd)](),super[_0x3ea582(0x1c3)]&&await super['pageInitialized']();}[a0_0x3f0209(0x1a4)](){const _0x29b0c1=a0_0x3f0209;return MetaApi[_0x29b0c1(0x1bd)](this);}['parseBasicGridConfigs'](_0x44a556){const _0x41939d=a0_0x3f0209;this[_0x41939d(0x1b6)]=_0x44a556[_0x41939d(0x1d4)],this[_0x41939d(0x1cf)]=_0x44a556[_0x41939d(0x1a2)],this[_0x41939d(0x1a8)]=_0x44a556[_0x41939d(0x1a7)],this['gridEmphasized']=_0x44a556[_0x41939d(0x1b7)];}async[a0_0x3f0209(0x1dd)](){const _0x15643d=a0_0x3f0209;this[_0x15643d(0x1ac)]=await MetaApi[_0x15643d(0x1e9)](this),this[_0x15643d(0x1e7)]=!0x0===this[_0x15643d(0x1d2)],this[_0x15643d(0x1d2)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this[_0x15643d(0x1ac)]['columns'][_0x15643d(0x1d9)](_0x3fc37f=>_0x3fc37f['filter'])[_0x15643d(0x1c2)](_0x79eda5=>{const _0x171a97=_0x15643d;let _0x528b07={'name':_0x79eda5['name'],'type':_0x171a97(0x1a7)===_0x79eda5[_0x171a97(0x1d9)][_0x171a97(0x1cb)]?_0x171a97(0x1a7):_0x79eda5[_0x171a97(0x1a5)],'label':_0x79eda5[_0x171a97(0x1d3)],'operator':_0x79eda5[_0x171a97(0x1d9)][_0x171a97(0x1cb)]?_0x79eda5[_0x171a97(0x1d9)][_0x171a97(0x1cb)]:'eq'};return _0x79eda5[_0x171a97(0x1d9)]['options']&&(_0x528b07[_0x171a97(0x1df)]=_0x79eda5[_0x171a97(0x1d9)][_0x171a97(0x1df)]),_0x79eda5[_0x171a97(0x1bf)][_0x171a97(0x1df)]&&(_0x528b07[_0x171a97(0x1df)]=_0x79eda5['record']['options']),_0x79eda5['filter'][_0x171a97(0x1d0)]&&this[_0x171a97(0x1d5)]['push']({'name':_0x528b07[_0x171a97(0x1d6)],'operator':_0x528b07[_0x171a97(0x1cb)],'value':_0x79eda5[_0x171a97(0x1d9)][_0x171a97(0x1d0)]}),delete _0x79eda5[_0x171a97(0x1d9)],_0x528b07;});}async[a0_0x3f0209(0x1e3)](){const _0x136fb9=a0_0x3f0209;await this[_0x136fb9(0x1b8)][_0x136fb9(0x1e3)]();}async[a0_0x3f0209(0x19f)]({page:_0x46158d=0x0,limit:_0x242af9=0x0,sortings:_0x3b7d05=[],filters:_0x270d11=[]}){const _0x4b5c9d=a0_0x3f0209;let _0x4daa66=this['renderRoot'][_0x4b5c9d(0x1c8)](_0x4b5c9d(0x1e5));return await _0x4daa66[_0x4b5c9d(0x1c5)](),!0x0;}async['save'](){const _0x1e88e7=a0_0x3f0209;let _0x552931=MetaApi[_0x1e88e7(0x1ba)](this[_0x1e88e7(0x1b8)]);!!ValueUtil[_0x1e88e7(0x1af)](_0x552931)&&await this[_0x1e88e7(0x1e8)](_0x552931)&&this[_0x1e88e7(0x1e3)]();}async['find'](){const _0x1c1ea3=a0_0x3f0209;let _0x58529f=MetaApi[_0x1c1ea3(0x1c9)](this[_0x1c1ea3(0x1b8)],!0x0);return ValueUtil['isNotEmpty'](_0x58529f)?await this[_0x1c1ea3(0x1d1)](_0x58529f[0x0]):{};}async[a0_0x3f0209(0x1c4)](){const _0x2206d0=a0_0x3f0209;let _0x333405=MetaApi['getSelectedIdList'](this[_0x2206d0(0x1b8)],!0x0);!!ValueUtil[_0x2206d0(0x1af)](_0x333405)&&await this[_0x2206d0(0x1dc)](_0x333405)&&this[_0x2206d0(0x1e3)]();}async[a0_0x3f0209(0x1c7)](){const _0x479e13=a0_0x3f0209;let _0x2f194d=TermsUtil[_0x479e13(0x1e6)](ValueUtil[_0x479e13(0x1c1)](this[_0x479e13(0x1ce)],_0x479e13(0x1b2)));return await MetaApi[_0x479e13(0x1a1)](this[_0x479e13(0x19e)],_0x2f194d,this[_0x479e13(0x1b8)]);}async['import'](){}[a0_0x3f0209(0x1c6)](){const _0x28ee9e=a0_0x3f0209;let _0x133ce6=this[_0x28ee9e(0x1b8)][_0x28ee9e(0x1bb)][_0x28ee9e(0x1ab)];return _0x133ce6=JSON[_0x28ee9e(0x1ad)](JSON[_0x28ee9e(0x1a0)](_0x133ce6)),_0x133ce6[_0x28ee9e(0x1c0)](_0x14fd1f=>{const _0x41fa98=_0x28ee9e;Object['keys'](_0x14fd1f)[_0x41fa98(0x1c0)](_0x1c40c4=>{const _0x59a4c4=_0x41fa98;_0x1c40c4[_0x59a4c4(0x1de)]('__')&&delete _0x14fd1f[_0x1c40c4];});}),{'main':_0x133ce6,'detail':this['renderRoot'][_0x28ee9e(0x1c8)](_0x28ee9e(0x1e5))[_0x28ee9e(0x1c6)]()};}};
1
+ const a0_0xeb49fc=a0_0x368e;(function(_0x505b72,_0x21d360){const _0x455e75=a0_0x368e,_0x8985fd=_0x505b72();while(!![]){try{const _0x2a6a9f=-parseInt(_0x455e75(0x1e5))/0x1*(parseInt(_0x455e75(0x1c9))/0x2)+-parseInt(_0x455e75(0x1d1))/0x3+-parseInt(_0x455e75(0x1e8))/0x4+parseInt(_0x455e75(0x1b6))/0x5+-parseInt(_0x455e75(0x1c5))/0x6+parseInt(_0x455e75(0x1af))/0x7+parseInt(_0x455e75(0x1df))/0x8*(parseInt(_0x455e75(0x1d9))/0x9);if(_0x2a6a9f===_0x21d360)break;else _0x8985fd['push'](_0x8985fd['shift']());}catch(_0x36459e){_0x8985fd['push'](_0x8985fd['shift']());}}}(a0_0x8c0f,0xcb5be));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_0x368e(_0xc43662,_0x27d30f){const _0x8c0f2a=a0_0x8c0f();return a0_0x368e=function(_0x368e45,_0x41521c){_0x368e45=_0x368e45-0x19c;let _0xec867=_0x8c0f2a[_0x368e45];return _0xec867;},a0_0x368e(_0xc43662,_0x27d30f);}import{TermsUtil}from'../utils/terms-util';function a0_0x8c0f(){const _0x76a2d5=['659215OdRrtw','getAndParseMenuMeta','patchesForUpdateMultiple','record','shadowRoot','searchFieldValues','forEach','filterFormId','findOne','grid','gristId','#detail','map','grist','stringify','6736974JmWQDo','meta-tab-element','getGristTabHtml','delete','982DLUdVY','dataSet','searchConfig','main','getParams','name','connectedCallback','context','3709500LvAJPc','filter','searchFields','parseGridConfigSet','fetch','parseBasicGridConfigs','filterForm','pageInitialized','594xAXAzO','styles','renderRoot','getSelectedIdList','header','importable','239008BGxaWW','type','isNotEmpty','options','getData','getContextObject','757aCprpB','gridEmphasized','export','712320wqENBP','parse','value','beforeFetch','records','render','operator','find','useFilterForm','querySelector','import','firstUpdated','isElement','push','gristConfigSet','columns','actions','menuInfo','___data','keys','11468765KOHZnJ','useMasterFilterForm','exportable','search','exportableData','deleteByIds','updateMultiple'];a0_0x8c0f=function(){return _0x76a2d5;};return a0_0x8c0f();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x3f5237=>class extends MetaButtonMixin(_0x3f5237){static get[a0_0xeb49fc(0x1da)](){return MetaApi['getBasicGristTabStyles']();}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_0xeb49fc(0x1c3)](){const _0x3af346=a0_0xeb49fc;return this[_0x3af346(0x1db)][_0x3af346(0x1a4)](this[_0x3af346(0x1c0)]);}get[a0_0xeb49fc(0x1d7)](){const _0x2228be=a0_0xeb49fc;return this[_0x2228be(0x1ba)]?.[_0x2228be(0x1a4)](this[_0x2228be(0x1bd)]);}get['detailElement'](){const _0xe9e996=a0_0xeb49fc;return this[_0xe9e996(0x1ba)][_0xe9e996(0x1a4)](_0xe9e996(0x1c1));}get[a0_0xeb49fc(0x1d0)](){const _0x3b6cc6=a0_0xeb49fc;let _0x5078b1=MetaUiUtil[_0x3b6cc6(0x1e4)](this);return _0x5078b1['actions']&&delete _0x5078b1[_0x3b6cc6(0x1ab)],_0x5078b1[_0x3b6cc6(0x1b1)]&&delete _0x5078b1['exportable'],_0x5078b1[_0x3b6cc6(0x1de)]&&delete _0x5078b1[_0x3b6cc6(0x1de)],_0x5078b1;}async['connectedCallback'](){const _0x21962c=a0_0xeb49fc;this[_0x21962c(0x1c0)]='ox-grist',this[_0x21962c(0x1bd)]='ox-filters-form-base',await this[_0x21962c(0x1b7)](),this[_0x21962c(0x1a7)]&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x21962c(0x1ca)]=(this['activityDataSet']||{})[_0x21962c(0x1cc)]),super[_0x21962c(0x1cf)]&&await super['connectedCallback']();}async[a0_0xeb49fc(0x1a6)](){const _0x308527=a0_0xeb49fc;super[_0x308527(0x1a6)]&&await super['firstUpdated']();}async[a0_0xeb49fc(0x1d8)](){const _0x24736e=a0_0xeb49fc;this['isPage']&&await this['parseGristConfigs'](),super[_0x24736e(0x1d8)]&&await super[_0x24736e(0x1d8)]();}[a0_0xeb49fc(0x1a0)](){const _0x35c27b=a0_0xeb49fc;return MetaApi[_0x35c27b(0x1c7)](this);}[a0_0xeb49fc(0x1d6)](_0x41f950){const _0x2b7096=a0_0xeb49fc;this['gridConfig']=_0x41f950[_0x2b7096(0x1bf)],this['gridColumnConfig']=_0x41f950['grid_column'],this[_0x2b7096(0x1cb)]=_0x41f950[_0x2b7096(0x1b2)],this[_0x2b7096(0x1e6)]=_0x41f950[_0x2b7096(0x1e6)];}async['parseGristConfigs'](){const _0x34b588=a0_0xeb49fc;this[_0x34b588(0x1a9)]=await MetaApi[_0x34b588(0x1d4)](this),this[_0x34b588(0x1b0)]=!0x0===this['useFilterForm'],this[_0x34b588(0x1a3)]=!0x1,this[_0x34b588(0x1bb)]=[],this[_0x34b588(0x1d3)]=this[_0x34b588(0x1a9)][_0x34b588(0x1aa)][_0x34b588(0x1d2)](_0x199501=>_0x199501[_0x34b588(0x1d2)])[_0x34b588(0x1c2)](_0x3fb33d=>{const _0x3aa3ff=_0x34b588;let _0x453f3e={'name':_0x3fb33d[_0x3aa3ff(0x1ce)],'type':_0x3aa3ff(0x1b2)===_0x3fb33d['filter'][_0x3aa3ff(0x1a1)]?'search':_0x3fb33d[_0x3aa3ff(0x1e0)],'label':_0x3fb33d[_0x3aa3ff(0x1dd)],'operator':_0x3fb33d['filter'][_0x3aa3ff(0x1a1)]?_0x3fb33d[_0x3aa3ff(0x1d2)][_0x3aa3ff(0x1a1)]:'eq'};return _0x3fb33d[_0x3aa3ff(0x1d2)][_0x3aa3ff(0x1e2)]&&(_0x453f3e['options']=_0x3fb33d[_0x3aa3ff(0x1d2)][_0x3aa3ff(0x1e2)]),_0x3fb33d[_0x3aa3ff(0x1b9)][_0x3aa3ff(0x1e2)]&&(_0x453f3e[_0x3aa3ff(0x1e2)]=_0x3fb33d[_0x3aa3ff(0x1b9)][_0x3aa3ff(0x1e2)]),_0x3fb33d[_0x3aa3ff(0x1d2)]['value']&&this[_0x3aa3ff(0x1bb)][_0x3aa3ff(0x1a8)]({'name':_0x453f3e[_0x3aa3ff(0x1ce)],'operator':_0x453f3e[_0x3aa3ff(0x1a1)],'value':_0x3fb33d[_0x3aa3ff(0x1d2)][_0x3aa3ff(0x19d)]}),delete _0x3fb33d[_0x3aa3ff(0x1d2)],_0x453f3e;});}async[a0_0xeb49fc(0x1d5)](){const _0x1a3fd0=a0_0xeb49fc;await this[_0x1a3fd0(0x1c3)][_0x1a3fd0(0x1d5)]();}async[a0_0xeb49fc(0x19e)]({page:_0x3cdea0=0x0,limit:_0x45736f=0x0,sortings:_0x44cc25=[],filters:_0x522e4d=[]}){const _0x12cb9e=a0_0xeb49fc;let _0x312b26=this['renderRoot'][_0x12cb9e(0x1a4)](_0x12cb9e(0x1c6));return await _0x312b26['clear'](),!0x0;}async['save'](){const _0x48d0b8=a0_0xeb49fc;let _0x150494=MetaApi[_0x48d0b8(0x1b8)](this[_0x48d0b8(0x1c3)]);!!ValueUtil[_0x48d0b8(0x1e1)](_0x150494)&&await this[_0x48d0b8(0x1b5)](_0x150494)&&this[_0x48d0b8(0x1d5)]();}async[a0_0xeb49fc(0x1a2)](){const _0x3e2f38=a0_0xeb49fc;let _0x44ccec=MetaApi[_0x3e2f38(0x1dc)](this[_0x3e2f38(0x1c3)],!0x0);return ValueUtil[_0x3e2f38(0x1e1)](_0x44ccec)?await this[_0x3e2f38(0x1be)](_0x44ccec[0x0]):{};}async[a0_0xeb49fc(0x1c8)](){const _0x3d1bef=a0_0xeb49fc;let _0x5e70d5=MetaApi[_0x3d1bef(0x1dc)](this[_0x3d1bef(0x1c3)],!0x0);!!ValueUtil[_0x3d1bef(0x1e1)](_0x5e70d5)&&await this[_0x3d1bef(0x1b4)](_0x5e70d5)&&this['fetch']();}async[a0_0xeb49fc(0x1e7)](){const _0x32d934=a0_0xeb49fc;let _0xd4d558=TermsUtil['tTitle'](ValueUtil[_0x32d934(0x1cd)](this[_0x32d934(0x1ac)],'title'));return await MetaApi[_0x32d934(0x1b3)](this[_0x32d934(0x1a7)],_0xd4d558,this[_0x32d934(0x1c3)]);}async[a0_0xeb49fc(0x1a5)](){}[a0_0xeb49fc(0x1e3)](){const _0x2ec698=a0_0xeb49fc;let _0x24c083=this[_0x2ec698(0x1c3)][_0x2ec698(0x1ad)][_0x2ec698(0x19f)];return _0x24c083=JSON[_0x2ec698(0x19c)](JSON[_0x2ec698(0x1c4)](_0x24c083)),_0x24c083[_0x2ec698(0x1bc)](_0x3492c1=>{const _0x51dd78=_0x2ec698;Object[_0x51dd78(0x1ae)](_0x3492c1)[_0x51dd78(0x1bc)](_0x4c3635=>{_0x4c3635['startsWith']('__')&&delete _0x3492c1[_0x4c3635];});}),{'main':_0x24c083,'detail':this[_0x2ec698(0x1db)][_0x2ec698(0x1a4)](_0x2ec698(0x1c6))['getData']()};}};
@@ -1 +1 @@
1
- const a0_0x366dc3=a0_0x4466;(function(_0xc3e01d,_0x8141d2){const _0x39f8a0=a0_0x4466,_0x4bf7b8=_0xc3e01d();while(!![]){try{const _0x366e3d=-parseInt(_0x39f8a0(0x18d))/0x1*(parseInt(_0x39f8a0(0x16e))/0x2)+parseInt(_0x39f8a0(0x162))/0x3*(parseInt(_0x39f8a0(0x170))/0x4)+parseInt(_0x39f8a0(0x16d))/0x5+parseInt(_0x39f8a0(0x15e))/0x6*(-parseInt(_0x39f8a0(0x198))/0x7)+parseInt(_0x39f8a0(0x164))/0x8*(parseInt(_0x39f8a0(0x187))/0x9)+parseInt(_0x39f8a0(0x189))/0xa*(-parseInt(_0x39f8a0(0x18c))/0xb)+-parseInt(_0x39f8a0(0x19a))/0xc*(-parseInt(_0x39f8a0(0x161))/0xd);if(_0x366e3d===_0x8141d2)break;else _0x4bf7b8['push'](_0x4bf7b8['shift']());}catch(_0xfd0a70){_0x4bf7b8['push'](_0x4bf7b8['shift']());}}}(a0_0x22b2,0x48387));function a0_0x22b2(){const _0x56f5c3=['connectedCallback','getBasicMainTabStyles','buttonConfig','map','filter','dataSet','beforeFetch','push','getMainGrist','type','search','options','useFilterForm','useButtonImport','filterFormId','filterForm','actions','getMainTabHtml','operator','value','fetch','activityDataSet','9rXMziA','firstUpdated','10xoDiOT','searchFields','record','5800267jEJUTA','140191edxnBu','isPage','exportable','parseGristConfigs','main','grist','styles','getData','importable','masterElement','gridColumnConfig','16989hHKmgs','gridConfig','228GJwVMb','ox-grist','searchFieldValues','querySelector','context','720lNPykc','clear','isElement','427414fdROGk','72KBblKX','shadowRoot','1925608cQpDRZ','pageInitialized','properties','name','grid_column','columns','gristConfigSet','ox-filters-form-base','gridEmphasized','823920NHskyj','2PXFJUA','gristId','37396acepOo'];a0_0x22b2=function(){return _0x56f5c3;};return a0_0x22b2();}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_0x4466(_0x323e20,_0x281d31){const _0x22b20f=a0_0x22b2();return a0_0x4466=function(_0x446609,_0x37a707){_0x446609=_0x446609-0x15b;let _0x1bfd28=_0x22b20f[_0x446609];return _0x1bfd28;},a0_0x4466(_0x323e20,_0x281d31);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x1cd6dd=>class extends MetaButtonMixin(_0x1cd6dd){static get[a0_0x366dc3(0x193)](){const _0x38c1e1=a0_0x366dc3;return MetaApi[_0x38c1e1(0x172)]();}static get[a0_0x366dc3(0x166)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x49e250=a0_0x366dc3;return this[_0x49e250(0x196)][_0x49e250(0x179)]();}get[a0_0x366dc3(0x180)](){const _0x16047d=a0_0x366dc3;return this[_0x16047d(0x163)]?.[_0x16047d(0x15c)](this[_0x16047d(0x17f)]);}get[a0_0x366dc3(0x15d)](){const _0x83e7c5=a0_0x366dc3;let _0x22f9a8=MetaUiUtil['getContextObject'](this);return _0x22f9a8[_0x83e7c5(0x181)]&&delete _0x22f9a8[_0x83e7c5(0x181)],_0x22f9a8[_0x83e7c5(0x18f)]&&delete _0x22f9a8[_0x83e7c5(0x18f)],_0x22f9a8[_0x83e7c5(0x195)]&&delete _0x22f9a8[_0x83e7c5(0x195)],_0x22f9a8;}async[a0_0x366dc3(0x171)](){const _0x3aa940=a0_0x366dc3;this[_0x3aa940(0x16f)]=_0x3aa940(0x19b),this[_0x3aa940(0x17f)]=_0x3aa940(0x16b),await this['getAndParseMenuMeta'](),this[_0x3aa940(0x160)]&&await this[_0x3aa940(0x190)](),this['activityDataSet']&&(this[_0x3aa940(0x176)]=(this[_0x3aa940(0x186)]||{})[_0x3aa940(0x191)]),super[_0x3aa940(0x171)]&&await super[_0x3aa940(0x171)]();}async['firstUpdated'](){const _0x105561=a0_0x366dc3;super[_0x105561(0x188)]&&await super[_0x105561(0x188)]();}async[a0_0x366dc3(0x165)](){const _0x4ec242=a0_0x366dc3;this[_0x4ec242(0x18e)]&&await this['parseGristConfigs'](),super[_0x4ec242(0x165)]&&await super[_0x4ec242(0x165)]();}['render'](){const _0x37dfc7=a0_0x366dc3;return MetaApi[_0x37dfc7(0x182)](this);}['parseBasicGridConfigs'](_0x5b9854){const _0x28a1bf=a0_0x366dc3;this[_0x28a1bf(0x199)]=_0x5b9854['grid'],this[_0x28a1bf(0x197)]=_0x5b9854[_0x28a1bf(0x168)],this['searchConfig']=_0x5b9854[_0x28a1bf(0x17b)],this[_0x28a1bf(0x16c)]=_0x5b9854[_0x28a1bf(0x16c)];}async[a0_0x366dc3(0x190)](){const _0x37c783=a0_0x366dc3;this[_0x37c783(0x16a)]=await MetaApi['parseGridConfigSet'](this),this['useMasterFilterForm']=!0x0===this[_0x37c783(0x17d)],this[_0x37c783(0x17d)]=!0x1,this[_0x37c783(0x173)]=void 0x0,this['useButtonExport']=!0x1,this[_0x37c783(0x17e)]=!0x1,this[_0x37c783(0x15b)]=[],this[_0x37c783(0x18a)]=this[_0x37c783(0x16a)][_0x37c783(0x169)][_0x37c783(0x175)](_0x589962=>_0x589962[_0x37c783(0x175)])[_0x37c783(0x174)](_0x86c149=>{const _0x31ddda=_0x37c783;let _0x1bb95a={'name':_0x86c149['name'],'type':_0x31ddda(0x17b)===_0x86c149[_0x31ddda(0x175)][_0x31ddda(0x183)]?_0x31ddda(0x17b):_0x86c149[_0x31ddda(0x17a)],'label':_0x86c149['header'],'operator':_0x86c149['filter'][_0x31ddda(0x183)]?_0x86c149[_0x31ddda(0x175)][_0x31ddda(0x183)]:'eq'};return _0x86c149['filter'][_0x31ddda(0x17c)]&&(_0x1bb95a[_0x31ddda(0x17c)]=_0x86c149[_0x31ddda(0x175)][_0x31ddda(0x17c)]),_0x86c149[_0x31ddda(0x18b)][_0x31ddda(0x17c)]&&(_0x1bb95a['options']=_0x86c149[_0x31ddda(0x18b)]['options']),_0x86c149[_0x31ddda(0x175)][_0x31ddda(0x184)]&&this[_0x31ddda(0x15b)][_0x31ddda(0x178)]({'name':_0x1bb95a[_0x31ddda(0x167)],'operator':_0x1bb95a[_0x31ddda(0x183)],'value':_0x86c149[_0x31ddda(0x175)][_0x31ddda(0x184)]}),delete _0x86c149[_0x31ddda(0x175)],_0x1bb95a;});}async['fetch'](){const _0x282e19=a0_0x366dc3;await this[_0x282e19(0x192)][_0x282e19(0x185)]();}async[a0_0x366dc3(0x177)]({page:_0x55f91d=0x0,limit:_0x388530=0x0,sortings:_0x3d1d8c=[],filters:_0x2b36a2=[]}){const _0x1ba309=a0_0x366dc3;return this[_0x1ba309(0x196)]&&this[_0x1ba309(0x196)]['clear']&&await this[_0x1ba309(0x196)][_0x1ba309(0x15f)](),!0x0;}[a0_0x366dc3(0x194)](){const _0x5f3525=a0_0x366dc3;return{'master':this[_0x5f3525(0x196)][_0x5f3525(0x194)]()};}};
1
+ const a0_0x3ed8f6=a0_0x5c68;(function(_0x413c93,_0x1e2220){const _0x40dd57=a0_0x5c68,_0x30d8c2=_0x413c93();while(!![]){try{const _0x42100f=parseInt(_0x40dd57(0x18f))/0x1+-parseInt(_0x40dd57(0x197))/0x2+parseInt(_0x40dd57(0x199))/0x3+parseInt(_0x40dd57(0x1b9))/0x4+-parseInt(_0x40dd57(0x1ac))/0x5+-parseInt(_0x40dd57(0x1a9))/0x6*(parseInt(_0x40dd57(0x18c))/0x7)+parseInt(_0x40dd57(0x1b8))/0x8;if(_0x42100f===_0x1e2220)break;else _0x30d8c2['push'](_0x30d8c2['shift']());}catch(_0x469784){_0x30d8c2['push'](_0x30d8c2['shift']());}}}(a0_0x42e6,0xea315));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_0x5c68(_0x3c94aa,_0x53f0bf){const _0x42e613=a0_0x42e6();return a0_0x5c68=function(_0x5c68f0,_0x30f636){_0x5c68f0=_0x5c68f0-0x188;let _0x158581=_0x42e613[_0x5c68f0];return _0x158581;},a0_0x5c68(_0x3c94aa,_0x53f0bf);}import{ValueUtil}from'../utils/value-util';function a0_0x42e6(){const _0x38e4f2=['gristId','3141420uaZAnw','shadowRoot','2164626OSpmqp','beforeFetch','actions','querySelector','context','getMainTabHtml','filter','clear','getData','properties','search','main','parseGridConfigSet','searchFields','pageInitialized','record','66kXZeHN','importable','activityDataSet','8842440pcqqXm','grist','options','push','map','useButtonExport','connectedCallback','isElement','parseBasicGridConfigs','operator','gridConfig','searchFieldValues','9442520COdWOE','6897800TaaIJY','type','fetch','getAndParseMenuMeta','styles','exportable','gristConfigSet','grid','dataSet','gridColumnConfig','firstUpdated','grid_column','getMainGrist','getContextObject','560567eZxRah','gridEmphasized','value','1553035vrCJtC','searchConfig','filterFormId','ox-grist','useButtonImport','masterElement','render'];a0_0x42e6=function(){return _0x38e4f2;};return a0_0x42e6();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x18c45a=>class extends MetaButtonMixin(_0x18c45a){static get[a0_0x3ed8f6(0x1bd)](){return MetaApi['getBasicMainTabStyles']();}static get[a0_0x3ed8f6(0x1a2)](){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_0x3ed8f6(0x1ad)](){const _0x16a394=a0_0x3ed8f6;return this[_0x16a394(0x194)][_0x16a394(0x18a)]();}get['filterForm'](){const _0x5ef5c8=a0_0x3ed8f6;return this[_0x5ef5c8(0x198)]?.[_0x5ef5c8(0x19c)](this[_0x5ef5c8(0x191)]);}get[a0_0x3ed8f6(0x19d)](){const _0x4e73e6=a0_0x3ed8f6;let _0x28c05d=MetaUiUtil[_0x4e73e6(0x18b)](this);return _0x28c05d['actions']&&delete _0x28c05d[_0x4e73e6(0x19b)],_0x28c05d['exportable']&&delete _0x28c05d[_0x4e73e6(0x1be)],_0x28c05d[_0x4e73e6(0x1aa)]&&delete _0x28c05d[_0x4e73e6(0x1aa)],_0x28c05d;}async[a0_0x3ed8f6(0x1b2)](){const _0xa765a9=a0_0x3ed8f6;this[_0xa765a9(0x196)]=_0xa765a9(0x192),this[_0xa765a9(0x191)]='ox-filters-form-base',await this[_0xa765a9(0x1bc)](),this[_0xa765a9(0x1b3)]&&await this['parseGristConfigs'](),this[_0xa765a9(0x1ab)]&&(this[_0xa765a9(0x1c1)]=(this[_0xa765a9(0x1ab)]||{})[_0xa765a9(0x1a4)]),super[_0xa765a9(0x1b2)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x358885=a0_0x3ed8f6;super[_0x358885(0x188)]&&await super[_0x358885(0x188)]();}async['pageInitialized'](){const _0x197641=a0_0x3ed8f6;this['isPage']&&await this['parseGristConfigs'](),super[_0x197641(0x1a7)]&&await super['pageInitialized']();}[a0_0x3ed8f6(0x195)](){const _0x513f71=a0_0x3ed8f6;return MetaApi[_0x513f71(0x19e)](this);}[a0_0x3ed8f6(0x1b4)](_0x2f3439){const _0x26440a=a0_0x3ed8f6;this[_0x26440a(0x1b6)]=_0x2f3439[_0x26440a(0x1c0)],this[_0x26440a(0x1c2)]=_0x2f3439[_0x26440a(0x189)],this[_0x26440a(0x190)]=_0x2f3439[_0x26440a(0x1a3)],this[_0x26440a(0x18d)]=_0x2f3439[_0x26440a(0x18d)];}async['parseGristConfigs'](){const _0x5d16dd=a0_0x3ed8f6;this[_0x5d16dd(0x1bf)]=await MetaApi[_0x5d16dd(0x1a5)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x5d16dd(0x1b1)]=!0x1,this[_0x5d16dd(0x193)]=!0x1,this[_0x5d16dd(0x1b7)]=[],this[_0x5d16dd(0x1a6)]=this[_0x5d16dd(0x1bf)]['columns'][_0x5d16dd(0x19f)](_0x5c0c3d=>_0x5c0c3d[_0x5d16dd(0x19f)])[_0x5d16dd(0x1b0)](_0x4201b9=>{const _0x1124ad=_0x5d16dd;let _0x4e968d={'name':_0x4201b9['name'],'type':_0x1124ad(0x1a3)===_0x4201b9['filter'][_0x1124ad(0x1b5)]?_0x1124ad(0x1a3):_0x4201b9[_0x1124ad(0x1ba)],'label':_0x4201b9['header'],'operator':_0x4201b9[_0x1124ad(0x19f)][_0x1124ad(0x1b5)]?_0x4201b9['filter'][_0x1124ad(0x1b5)]:'eq'};return _0x4201b9[_0x1124ad(0x19f)]['options']&&(_0x4e968d[_0x1124ad(0x1ae)]=_0x4201b9[_0x1124ad(0x19f)]['options']),_0x4201b9[_0x1124ad(0x1a8)]['options']&&(_0x4e968d[_0x1124ad(0x1ae)]=_0x4201b9['record']['options']),_0x4201b9[_0x1124ad(0x19f)][_0x1124ad(0x18e)]&&this['searchFieldValues'][_0x1124ad(0x1af)]({'name':_0x4e968d['name'],'operator':_0x4e968d['operator'],'value':_0x4201b9['filter'][_0x1124ad(0x18e)]}),delete _0x4201b9['filter'],_0x4e968d;});}async[a0_0x3ed8f6(0x1bb)](){const _0x57c5fe=a0_0x3ed8f6;await this['grist'][_0x57c5fe(0x1bb)]();}async[a0_0x3ed8f6(0x19a)]({page:_0x4291f9=0x0,limit:_0x2fc6b4=0x0,sortings:_0x40b475=[],filters:_0x51dae4=[]}){const _0x593435=a0_0x3ed8f6;return this['masterElement']&&this[_0x593435(0x194)][_0x593435(0x1a0)]&&await this[_0x593435(0x194)][_0x593435(0x1a0)](),!0x0;}[a0_0x3ed8f6(0x1a1)](){const _0xf33836=a0_0x3ed8f6;return{'master':this[_0xf33836(0x194)][_0xf33836(0x1a1)]()};}};
@@ -1 +1 @@
1
- const a0_0x19b5c7=a0_0x1ade;(function(_0x4012ce,_0x461121){const _0x5c1f24=a0_0x1ade,_0x2fe8dc=_0x4012ce();while(!![]){try{const _0x35c8c9=-parseInt(_0x5c1f24(0x159))/0x1*(-parseInt(_0x5c1f24(0x14e))/0x2)+parseInt(_0x5c1f24(0x177))/0x3+-parseInt(_0x5c1f24(0x169))/0x4+parseInt(_0x5c1f24(0x160))/0x5+parseInt(_0x5c1f24(0x15d))/0x6*(-parseInt(_0x5c1f24(0x179))/0x7)+parseInt(_0x5c1f24(0x166))/0x8*(-parseInt(_0x5c1f24(0x172))/0x9)+parseInt(_0x5c1f24(0x182))/0xa;if(_0x35c8c9===_0x461121)break;else _0x2fe8dc['push'](_0x2fe8dc['shift']());}catch(_0x22346e){_0x2fe8dc['push'](_0x2fe8dc['shift']());}}}(a0_0xdc2b,0xed7e6));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x1ade(_0x2f5f21,_0x17b8ca){const _0xdc2b71=a0_0xdc2b();return a0_0x1ade=function(_0x1ade84,_0x1063d6){_0x1ade84=_0x1ade84-0x134;let _0x4c3fa7=_0xdc2b71[_0x1ade84];return _0x4c3fa7;},a0_0x1ade(_0x2f5f21,_0x17b8ca);}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=_0x4a0cb4=>class extends MetaButtonMixin(_0x4a0cb4){static get[a0_0x19b5c7(0x15e)](){const _0x451f76=a0_0x19b5c7;return MetaApi[_0x451f76(0x145)]();}static get[a0_0x19b5c7(0x137)](){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_0x19b5c7(0x16b)](){const _0xf1f4db=a0_0x19b5c7;return this['renderRoot']['querySelector'](this[_0xf1f4db(0x16c)]);}get[a0_0x19b5c7(0x176)](){const _0x5de622=a0_0x19b5c7;return this[_0x5de622(0x17e)]?.['querySelector'](this[_0x5de622(0x143)]);}get[a0_0x19b5c7(0x13d)](){const _0x25a8ab=a0_0x19b5c7;let _0x5d1b23=MetaUiUtil[_0x25a8ab(0x13a)](this);return _0x5d1b23[_0x25a8ab(0x13f)]&&delete _0x5d1b23[_0x25a8ab(0x13f)],_0x5d1b23[_0x25a8ab(0x173)]&&delete _0x5d1b23[_0x25a8ab(0x173)],_0x5d1b23[_0x25a8ab(0x17c)]&&delete _0x5d1b23[_0x25a8ab(0x17c)],_0x5d1b23;}async[a0_0x19b5c7(0x144)](){const _0x277ebb=a0_0x19b5c7;this[_0x277ebb(0x16c)]=_0x277ebb(0x146),this['filterFormId']=_0x277ebb(0x14b),await this[_0x277ebb(0x13e)](),this[_0x277ebb(0x134)]&&await this[_0x277ebb(0x154)](),this[_0x277ebb(0x14c)]&&(this[_0x277ebb(0x142)]=(this['activityDataSet']||{})[_0x277ebb(0x14d)]),super[_0x277ebb(0x144)]&&await super[_0x277ebb(0x144)]();}async[a0_0x19b5c7(0x183)](){const _0x3dec67=a0_0x19b5c7;super[_0x3dec67(0x183)]&&await super[_0x3dec67(0x183)]();}async['pageInitialized'](){const _0x2be246=a0_0x19b5c7;this[_0x2be246(0x136)]&&await this[_0x2be246(0x154)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x19b5c7(0x167)](){return MetaApi['getMasterDetailHtml'](this);}[a0_0x19b5c7(0x180)](_0x5d9916){const _0x12b6a8=a0_0x19b5c7;this[_0x12b6a8(0x153)]=_0x5d9916[_0x12b6a8(0x15b)],this[_0x12b6a8(0x135)]=_0x5d9916[_0x12b6a8(0x17d)],this[_0x12b6a8(0x15c)]=_0x5d9916[_0x12b6a8(0x16f)],this[_0x12b6a8(0x141)]=_0x5d9916[_0x12b6a8(0x141)];}async[a0_0x19b5c7(0x154)](){const _0x47e010=a0_0x19b5c7;this[_0x47e010(0x13c)]=await MetaApi[_0x47e010(0x171)](this),this[_0x47e010(0x170)]=!0x0===this[_0x47e010(0x147)],this[_0x47e010(0x147)]=!0x1,this[_0x47e010(0x148)]=[],this['searchFields']=this['gristConfigSet'][_0x47e010(0x181)]['filter'](_0x1e0f3a=>_0x1e0f3a[_0x47e010(0x157)])['map'](_0x29698d=>{const _0x562244=_0x47e010;let _0x4cc321={'name':_0x29698d[_0x562244(0x156)],'type':_0x562244(0x16f)===_0x29698d['filter'][_0x562244(0x16e)]?'search':_0x29698d['type'],'label':_0x29698d[_0x562244(0x161)],'operator':_0x29698d[_0x562244(0x157)][_0x562244(0x16e)]?_0x29698d[_0x562244(0x157)][_0x562244(0x16e)]:'eq'};return _0x29698d['filter']['options']&&(_0x4cc321[_0x562244(0x149)]=_0x29698d['filter'][_0x562244(0x149)]),_0x29698d[_0x562244(0x158)][_0x562244(0x149)]&&(_0x4cc321[_0x562244(0x149)]=_0x29698d[_0x562244(0x158)][_0x562244(0x149)]),_0x29698d[_0x562244(0x157)][_0x562244(0x17f)]&&this[_0x562244(0x148)][_0x562244(0x174)]({'name':_0x4cc321[_0x562244(0x156)],'operator':_0x4cc321['operator'],'value':_0x29698d['filter'][_0x562244(0x17f)]}),delete _0x29698d['filter'],_0x4cc321;});}async[a0_0x19b5c7(0x164)](){const _0x30b29d=a0_0x19b5c7;await this[_0x30b29d(0x16b)][_0x30b29d(0x164)]();}async['beforeFetch']({page:_0x1d44cd=0x0,limit:_0x3e4127=0x0,sortings:_0x17e690=[],filters:_0x4528e0=[]}){const _0x5ed8e4=a0_0x19b5c7;return this['detailElement']&&this[_0x5ed8e4(0x16d)][_0x5ed8e4(0x17b)]&&await this[_0x5ed8e4(0x16d)]['clear'](),!0x0;}async[a0_0x19b5c7(0x15a)](){const _0x24b5a4=a0_0x19b5c7;let _0x5227a2=MetaApi[_0x24b5a4(0x150)](this[_0x24b5a4(0x16b)]);!!ValueUtil[_0x24b5a4(0x138)](_0x5227a2)&&await this[_0x24b5a4(0x13b)](_0x5227a2)&&this[_0x24b5a4(0x164)]();}async['find'](){const _0x269089=a0_0x19b5c7;let _0x133197=MetaApi[_0x269089(0x139)](this[_0x269089(0x16b)],!0x0);return ValueUtil[_0x269089(0x138)](_0x133197)?await this['findOne'](_0x133197[0x0]):{};}async[a0_0x19b5c7(0x152)](){const _0x2f003a=a0_0x19b5c7;let _0x27f609=MetaApi['getSelectedIdList'](this[_0x2f003a(0x16b)],!0x0);!!ValueUtil[_0x2f003a(0x138)](_0x27f609)&&await this[_0x2f003a(0x16a)](_0x27f609)&&this['fetch']();}async[a0_0x19b5c7(0x168)](){const _0x6d5d6b=a0_0x19b5c7;let _0x32c2cc=TermsUtil[_0x6d5d6b(0x162)](ValueUtil['getParams'](this[_0x6d5d6b(0x151)],_0x6d5d6b(0x17a)));return await MetaApi[_0x6d5d6b(0x155)](this['isElement'],_0x32c2cc,this[_0x6d5d6b(0x16b)]);}async[a0_0x19b5c7(0x14f)](){}[a0_0x19b5c7(0x15f)](){const _0x4b3ab9=a0_0x19b5c7;let _0x448dc1=this[_0x4b3ab9(0x16b)][_0x4b3ab9(0x178)]['records'];return _0x448dc1=JSON[_0x4b3ab9(0x14a)](JSON[_0x4b3ab9(0x175)](_0x448dc1)),_0x448dc1[_0x4b3ab9(0x140)](_0x2e8bf1=>{const _0x4c33f0=_0x4b3ab9;Object[_0x4c33f0(0x163)](_0x2e8bf1)['forEach'](_0x26c593=>{const _0x2d1163=_0x4c33f0;_0x26c593[_0x2d1163(0x165)]('__')&&delete _0x2e8bf1[_0x26c593];});}),{'main':_0x448dc1,'detail':this[_0x4b3ab9(0x16d)][_0x4b3ab9(0x15f)]()};}};function a0_0xdc2b(){const _0x44b42e=['dataSet','filterFormId','connectedCallback','getBasicMasterDetailStyles','ox-grist','useFilterForm','searchFieldValues','options','parse','ox-filters-form-base','activityDataSet','main','954VPPwYF','import','patchesForUpdateMultiple','menuInfo','delete','gridConfig','parseGristConfigs','exportableData','name','filter','record','1999pgsudw','save','grid','searchConfig','6wCwfxB','styles','getData','9284075OBNBcR','header','tTitle','keys','fetch','startsWith','1897528WVhmVa','render','export','3160436iehwud','deleteByIds','grist','gristId','detailElement','operator','search','useMasterFilterForm','parseGridConfigSet','63ApthwK','exportable','push','stringify','filterForm','3263022HZngwW','___data','12254746aYrUQV','title','clear','importable','grid_column','shadowRoot','value','parseBasicGridConfigs','columns','12758860LcYvbd','firstUpdated','isElement','gridColumnConfig','isPage','properties','isNotEmpty','getSelectedIdList','getContextObject','updateMultiple','gristConfigSet','context','getAndParseMenuMeta','actions','forEach','gridEmphasized'];a0_0xdc2b=function(){return _0x44b42e;};return a0_0xdc2b();}
1
+ function a0_0x5897(_0x368f5d,_0x3fb0d9){const _0x4bf9b5=a0_0x4bf9();return a0_0x5897=function(_0x58978e,_0x549a67){_0x58978e=_0x58978e-0x131;let _0x148206=_0x4bf9b5[_0x58978e];return _0x148206;},a0_0x5897(_0x368f5d,_0x3fb0d9);}const a0_0x437c30=a0_0x5897;(function(_0x2547fc,_0x2cc7c4){const _0x31a5a2=a0_0x5897,_0x40b3f6=_0x2547fc();while(!![]){try{const _0x3a0465=-parseInt(_0x31a5a2(0x179))/0x1*(-parseInt(_0x31a5a2(0x13d))/0x2)+-parseInt(_0x31a5a2(0x13b))/0x3*(-parseInt(_0x31a5a2(0x171))/0x4)+-parseInt(_0x31a5a2(0x152))/0x5+-parseInt(_0x31a5a2(0x15f))/0x6+parseInt(_0x31a5a2(0x15c))/0x7+-parseInt(_0x31a5a2(0x133))/0x8*(parseInt(_0x31a5a2(0x178))/0x9)+parseInt(_0x31a5a2(0x157))/0xa*(parseInt(_0x31a5a2(0x137))/0xb);if(_0x3a0465===_0x2cc7c4)break;else _0x40b3f6['push'](_0x40b3f6['shift']());}catch(_0x2724ba){_0x40b3f6['push'](_0x40b3f6['shift']());}}}(a0_0x4bf9,0x522fe));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';function a0_0x4bf9(){const _0x524592=['exportable','title','pageInitialized','operator','gridEmphasized','filterFormId','save','getSelectedIdList','30692BdMrmR','ox-grist','gristId','fetch','search','findOne','main','99EWNIKC','2545axEOyj','options','connectedCallback','import','gristConfigSet','updateMultiple','186152eIWGLU','push','records','filter','22nglrTC','searchFieldValues','menuInfo','parseGristConfigs','36taNlro','getMasterDetailHtml','120wUYJhq','getAndParseMenuMeta','beforeFetch','parse','detailElement','grist','parseGridConfigSet','startsWith','gridConfig','useFilterForm','ox-filters-form-base','record','parseBasicGridConfigs','isElement','querySelector','useMasterFilterForm','type','___data','tTitle','grid_column','importable','1004540MqXXzC','getBasicMasterDetailStyles','properties','clear','isPage','1508210nGymiP','firstUpdated','value','isNotEmpty','getContextObject','4174142fZvAXE','header','render','2095314wEqwBo','getData','styles','forEach','activityDataSet','actions','getParams','searchConfig','shadowRoot','filterForm'];a0_0x4bf9=function(){return _0x524592;};return a0_0x4bf9();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x29cb98=>class extends MetaButtonMixin(_0x29cb98){static get[a0_0x437c30(0x161)](){const _0x5d8d79=a0_0x437c30;return MetaApi[_0x5d8d79(0x153)]();}static get[a0_0x437c30(0x154)](){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_0x437c30(0x142)](){const _0xac662=a0_0x437c30;return this['renderRoot'][_0xac662(0x14b)](this[_0xac662(0x173)]);}get[a0_0x437c30(0x168)](){const _0x13af3e=a0_0x437c30;return this[_0x13af3e(0x167)]?.[_0x13af3e(0x14b)](this[_0x13af3e(0x16e)]);}get['context'](){const _0x4a9a43=a0_0x437c30;let _0x578c9e=MetaUiUtil[_0x4a9a43(0x15b)](this);return _0x578c9e[_0x4a9a43(0x164)]&&delete _0x578c9e['actions'],_0x578c9e[_0x4a9a43(0x169)]&&delete _0x578c9e['exportable'],_0x578c9e['importable']&&delete _0x578c9e[_0x4a9a43(0x151)],_0x578c9e;}async[a0_0x437c30(0x17b)](){const _0x3f62d4=a0_0x437c30;this['gristId']=_0x3f62d4(0x172),this[_0x3f62d4(0x16e)]=_0x3f62d4(0x147),await this[_0x3f62d4(0x13e)](),this['isElement']&&await this[_0x3f62d4(0x13a)](),this[_0x3f62d4(0x163)]&&(this['dataSet']=(this[_0x3f62d4(0x163)]||{})[_0x3f62d4(0x177)]),super[_0x3f62d4(0x17b)]&&await super['connectedCallback']();}async[a0_0x437c30(0x158)](){const _0x1c8452=a0_0x437c30;super[_0x1c8452(0x158)]&&await super[_0x1c8452(0x158)]();}async[a0_0x437c30(0x16b)](){const _0x52fb87=a0_0x437c30;this[_0x52fb87(0x156)]&&await this[_0x52fb87(0x13a)](),super[_0x52fb87(0x16b)]&&await super['pageInitialized']();}[a0_0x437c30(0x15e)](){const _0x56fe98=a0_0x437c30;return MetaApi[_0x56fe98(0x13c)](this);}[a0_0x437c30(0x149)](_0x34682d){const _0x5e9212=a0_0x437c30;this[_0x5e9212(0x145)]=_0x34682d['grid'],this['gridColumnConfig']=_0x34682d[_0x5e9212(0x150)],this[_0x5e9212(0x166)]=_0x34682d[_0x5e9212(0x175)],this[_0x5e9212(0x16d)]=_0x34682d['gridEmphasized'];}async[a0_0x437c30(0x13a)](){const _0x3ae6d6=a0_0x437c30;this[_0x3ae6d6(0x131)]=await MetaApi[_0x3ae6d6(0x143)](this),this[_0x3ae6d6(0x14c)]=!0x0===this[_0x3ae6d6(0x146)],this[_0x3ae6d6(0x146)]=!0x1,this[_0x3ae6d6(0x138)]=[],this['searchFields']=this['gristConfigSet']['columns'][_0x3ae6d6(0x136)](_0x3f311c=>_0x3f311c[_0x3ae6d6(0x136)])['map'](_0x5e4beb=>{const _0x170fc1=_0x3ae6d6;let _0x661943={'name':_0x5e4beb['name'],'type':'search'===_0x5e4beb[_0x170fc1(0x136)][_0x170fc1(0x16c)]?_0x170fc1(0x175):_0x5e4beb[_0x170fc1(0x14d)],'label':_0x5e4beb[_0x170fc1(0x15d)],'operator':_0x5e4beb['filter'][_0x170fc1(0x16c)]?_0x5e4beb[_0x170fc1(0x136)][_0x170fc1(0x16c)]:'eq'};return _0x5e4beb['filter'][_0x170fc1(0x17a)]&&(_0x661943[_0x170fc1(0x17a)]=_0x5e4beb[_0x170fc1(0x136)]['options']),_0x5e4beb['record']['options']&&(_0x661943[_0x170fc1(0x17a)]=_0x5e4beb[_0x170fc1(0x148)]['options']),_0x5e4beb[_0x170fc1(0x136)][_0x170fc1(0x159)]&&this[_0x170fc1(0x138)][_0x170fc1(0x134)]({'name':_0x661943['name'],'operator':_0x661943[_0x170fc1(0x16c)],'value':_0x5e4beb[_0x170fc1(0x136)][_0x170fc1(0x159)]}),delete _0x5e4beb['filter'],_0x661943;});}async[a0_0x437c30(0x174)](){const _0x5241ac=a0_0x437c30;await this[_0x5241ac(0x142)]['fetch']();}async[a0_0x437c30(0x13f)]({page:_0x502be1=0x0,limit:_0x373bf7=0x0,sortings:_0x4633fc=[],filters:_0x96fb4f=[]}){const _0x32f448=a0_0x437c30;return this['detailElement']&&this[_0x32f448(0x141)][_0x32f448(0x155)]&&await this['detailElement'][_0x32f448(0x155)](),!0x0;}async[a0_0x437c30(0x16f)](){const _0x41b0e1=a0_0x437c30;let _0x4acf27=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x41b0e1(0x15a)](_0x4acf27)&&await this[_0x41b0e1(0x132)](_0x4acf27)&&this[_0x41b0e1(0x174)]();}async['find'](){const _0x49d326=a0_0x437c30;let _0xa30881=MetaApi['getSelectedIdList'](this[_0x49d326(0x142)],!0x0);return ValueUtil[_0x49d326(0x15a)](_0xa30881)?await this[_0x49d326(0x176)](_0xa30881[0x0]):{};}async['delete'](){const _0xd0de18=a0_0x437c30;let _0x152b07=MetaApi[_0xd0de18(0x170)](this['grist'],!0x0);!!ValueUtil[_0xd0de18(0x15a)](_0x152b07)&&await this['deleteByIds'](_0x152b07)&&this[_0xd0de18(0x174)]();}async['export'](){const _0x3930fd=a0_0x437c30;let _0x2c4302=TermsUtil[_0x3930fd(0x14f)](ValueUtil[_0x3930fd(0x165)](this[_0x3930fd(0x139)],_0x3930fd(0x16a)));return await MetaApi['exportableData'](this[_0x3930fd(0x14a)],_0x2c4302,this['grist']);}async[a0_0x437c30(0x17c)](){}[a0_0x437c30(0x160)](){const _0x2ffbe5=a0_0x437c30;let _0x504383=this[_0x2ffbe5(0x142)][_0x2ffbe5(0x14e)][_0x2ffbe5(0x135)];return _0x504383=JSON[_0x2ffbe5(0x140)](JSON['stringify'](_0x504383)),_0x504383[_0x2ffbe5(0x162)](_0x28fca5=>{const _0x1875d8=_0x2ffbe5;Object['keys'](_0x28fca5)[_0x1875d8(0x162)](_0x15e786=>{const _0x2f9fff=_0x1875d8;_0x15e786[_0x2f9fff(0x144)]('__')&&delete _0x28fca5[_0x15e786];});}),{'main':_0x504383,'detail':this[_0x2ffbe5(0x141)][_0x2ffbe5(0x160)]()};}};
@@ -1 +1 @@
1
- function a0_0x3a8b(){const _0x508781=['36rzDRii','map','parseBasicServiceConfigs','dataSet','filters','split','multiple','is_activity','gqlInfo','lifecycle','columns','parent_id','isElement','length','gristConfigSet','forEach','isNotEmpty','beforeFetch','data','properties','deleteByIds','replace','searchByPagination','updateMultiple','runScenario','568446hGCMAc','getParams','list_func','keys','value','after_set_fields','mutation','getQueryFilters','1176222VdNbYR','callScenario','fetchHandler','delete','push','174118eVMcvN','result','records','120034ACvufL','4612616pBzcHL','getSelectColumns','isEmpty','filter','getPageNavigateParams','51030YPmXRp','formConfigSet','infinityPage','includes','params','findOne','query','1117928iHjIoO','mainFilterForm','func','afterFetch','gql','parse'];a0_0x3a8b=function(){return _0x508781;};return a0_0x3a8b();}const a0_0x5d0ef5=a0_0x5846;function a0_0x5846(_0x234b44,_0x59e27e){const _0x3a8b2d=a0_0x3a8b();return a0_0x5846=function(_0x584654,_0x12dbd7){_0x584654=_0x584654-0x1e6;let _0x40cbba=_0x3a8b2d[_0x584654];return _0x40cbba;},a0_0x5846(_0x234b44,_0x59e27e);}(function(_0x47cf3b,_0x3f3fb6){const _0x13a582=a0_0x5846,_0x5049a7=_0x47cf3b();while(!![]){try{const _0x413c55=parseInt(_0x13a582(0x21a))/0x1+parseInt(_0x13a582(0x21d))/0x2+parseInt(_0x13a582(0x20d))/0x3+-parseInt(_0x13a582(0x1f4))/0x4*(parseInt(_0x13a582(0x1e7))/0x5)+parseInt(_0x13a582(0x215))/0x6+parseInt(_0x13a582(0x1ee))/0x7+-parseInt(_0x13a582(0x21e))/0x8;if(_0x413c55===_0x3f3fb6)break;else _0x5049a7['push'](_0x5049a7['shift']());}catch(_0xfe0a86){_0x5049a7['push'](_0x5049a7['shift']());}}}(a0_0x3a8b,0x1b14f));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0xf1f734=>class extends MetaBaseMixin(_0xf1f734){static get[a0_0x5d0ef5(0x207)](){return{'gqlInfo':Object};}[a0_0x5d0ef5(0x1f6)](_0x16c9f2){const _0x38ed6a=a0_0x5d0ef5;this['gqlInfo']=_0x16c9f2[_0x38ed6a(0x1f2)];}async[a0_0x5d0ef5(0x217)]({page:_0x4462a5=0x0,limit:_0x4adf7e=0x0,sortings:_0x904fdf=[],filters:_0x4dcbe8=[]}){const _0x4e012e=a0_0x5d0ef5;if(this[_0x4e012e(0x1fb)])return{'total':0x0,'records':this[_0x4e012e(0x1f7)]||[]};if(!0x0===this[_0x4e012e(0x1e9)]&&(_0x4462a5=0x0,_0x4adf7e=0x0),this[_0x4e012e(0x205)]&&0x0==await this[_0x4e012e(0x205)]({'page':_0x4462a5,'limit':_0x4adf7e,'sortings':_0x904fdf,'filters':_0x4dcbe8}))return;if(!this[_0x4e012e(0x202)])return{'total':0x0,'records':[]};let _0x39722b=ValueUtil[_0x4e012e(0x220)](_0x4dcbe8)?this[_0x4e012e(0x1ef)]?await this[_0x4e012e(0x1ef)][_0x4e012e(0x214)]()||[]:await this['filterForm']?.[_0x4e012e(0x214)]()||[]:_0x4dcbe8,_0x9ee22e=ValueUtil['getParams'](this[_0x4e012e(0x1fc)],_0x4e012e(0x1ed),_0x4e012e(0x20f)),_0x19578a=ValueUtil['getParams'](this['gqlInfo'],_0x4e012e(0x1ed),_0x4e012e(0x1f8)),_0xd40486=ValueUtil['getParams'](this['gqlInfo'],_0x4e012e(0x1ed),_0x4e012e(0x212));if(ValueUtil['isNotEmpty'](_0x19578a)&&(_0x39722b=adjustFilters(_0x39722b,_0x19578a)),_0x39722b[_0x4e012e(0x219)](...this['getPageNavigateParams']()),this[_0x4e012e(0x200)]&&!this[_0x4e012e(0x1ef)]){let _0x45f924=ValueUtil[_0x4e012e(0x20e)](this[_0x4e012e(0x1fc)],_0x4e012e(0x1ed),'parent_id');if(!ValueUtil[_0x4e012e(0x204)](_0x45f924)||!ValueUtil['isNotEmpty'](this['parent_id']))return{'total':0x0,'records':[]};_0x39722b=adjustFilters(_0x39722b,[{'name':_0x45f924,'operator':'eq','value':this[_0x4e012e(0x1ff)]}]);}let _0x3b8975=Object[_0x4e012e(0x210)](_0xd40486||{}),_0x5d3bb2=MetaApi['getSelectColumns'](this[_0x4e012e(0x202)][_0x4e012e(0x1fe)][_0x4e012e(0x221)](_0x1a8cc8=>!_0x3b8975['includes'](_0x1a8cc8['name']))),_0x1f441f={};if(_0x9ee22e[_0x4e012e(0x1ea)]('$')){let _0x30277a=_0x9ee22e[_0x4e012e(0x209)]('$','');_0x1f441f=(await MetaApi['callScenario'](void 0x0,_0x30277a,{'filters':_0x39722b,'pagination':{'page':_0x4462a5,'limit':_0x4adf7e},'sortings':_0x904fdf},!0x1))[_0x4e012e(0x206)][_0x4e012e(0x20c)]['data']['result'];}else _0x1f441f=await MetaApi[_0x4e012e(0x20a)](_0x9ee22e,_0x39722b,_0x904fdf,_0x4462a5,_0x4adf7e,_0x5d3bb2);if(this[_0x4e012e(0x1f1)]){let _0x5d3e4a=await this['afterFetch']({'page':_0x4462a5,'limit':_0x4adf7e,'sortings':_0x904fdf,'filters':_0x4dcbe8},_0x1f441f);if(_0x5d3e4a)return _0x5d3e4a;}return ValueUtil['isNotEmpty'](_0xd40486)&&ValueUtil['isNotEmpty'](_0x1f441f)&&ValueUtil[_0x4e012e(0x204)](_0x1f441f[_0x4e012e(0x21c)])&&_0x1f441f[_0x4e012e(0x21c)]['map'](_0x23ba51=>(_0x3b8975[_0x4e012e(0x203)](_0x428cd0=>{const _0x5f2213=_0x4e012e;_0x23ba51[_0x428cd0]=ValueUtil[_0x5f2213(0x20e)](_0x23ba51,..._0xd40486[_0x428cd0][_0x5f2213(0x1f9)]('.'));}),_0x23ba51)),_0x1f441f;}[a0_0x5d0ef5(0x1e6)](){const _0x2549d2=a0_0x5d0ef5;if(0x0==this['isPage'])return[];let _0x23b353=this[_0x2549d2(0x1fd)]?.[_0x2549d2(0x1eb)]?this[_0x2549d2(0x1fd)][_0x2549d2(0x1eb)]:{};if(!_0x23b353['pass'])return[];let _0x54253c=_0x23b353['pass'],_0x58ea57=JSON[_0x2549d2(0x1f3)](_0x54253c),_0x8628be=0x1==_0x58ea57[_0x2549d2(0x201)]?'eq':'in',_0x462668={},_0x529b0a=[];return Object['keys'](_0x58ea57[0x0])['forEach'](_0x1b527f=>{_0x462668[_0x1b527f]={'name':_0x1b527f,'operator':_0x8628be,'value':'eq'===_0x8628be?_0x58ea57[0x0][_0x1b527f]:[]};}),_0x58ea57[_0x2549d2(0x201)]>0x1&&_0x58ea57['forEach'](_0x2b0f8a=>{const _0x271d2f=_0x2549d2;Object[_0x271d2f(0x210)](_0x2b0f8a)[_0x271d2f(0x203)](_0x47435f=>{const _0xec086c=_0x271d2f;_0x462668[_0x47435f][_0xec086c(0x211)][_0xec086c(0x219)](_0x2b0f8a[_0x47435f]);});}),Object[_0x2549d2(0x210)](_0x462668)[_0x2549d2(0x203)](_0x356230=>{const _0x179ef3=_0x2549d2;_0x529b0a[_0x179ef3(0x219)](_0x462668[_0x356230]);}),_0x529b0a;}async[a0_0x5d0ef5(0x1ec)](_0x572bf7){const _0x3744ea=a0_0x5d0ef5;if(this[_0x3744ea(0x1fb)])return this[_0x3744ea(0x1f7)]||{};let _0x1389f6=ValueUtil[_0x3744ea(0x20e)](this[_0x3744ea(0x1fc)],'query','find_one_func'),_0xd2f6c5=ValueUtil[_0x3744ea(0x20e)](this['gqlInfo'],_0x3744ea(0x1ed),_0x3744ea(0x212)),_0x2c95ad=Object[_0x3744ea(0x210)](_0xd2f6c5||{}),_0x256d7d=MetaApi[_0x3744ea(0x21f)]((this[_0x3744ea(0x202)]?this[_0x3744ea(0x202)]:{'columns':this[_0x3744ea(0x1e8)]})[_0x3744ea(0x1fe)][_0x3744ea(0x221)](_0x4f80c2=>!_0x2c95ad[_0x3744ea(0x1ea)](_0x4f80c2['name']))),_0x143e30={};if(_0x1389f6[_0x3744ea(0x1ea)]('$')){let _0x532a8f=_0x1389f6[_0x3744ea(0x209)]('$',''),_0x220a34=await MetaApi[_0x3744ea(0x216)](void 0x0,_0x532a8f,{'id':_0x572bf7},!0x1);_0x143e30=_0x220a34['data'][_0x3744ea(0x20c)]['data'][_0x3744ea(0x21b)];}else _0x143e30=await MetaApi['findOne'](_0x1389f6,_0x572bf7,_0x256d7d);return ValueUtil[_0x3744ea(0x204)](_0xd2f6c5)&&ValueUtil[_0x3744ea(0x204)](_0x143e30)&&_0x2c95ad[_0x3744ea(0x203)](_0x425b5e=>{const _0x4b5053=_0x3744ea;_0x143e30[_0x425b5e]=ValueUtil[_0x4b5053(0x20e)](_0x143e30,..._0xd2f6c5[_0x425b5e]['split']('.'));}),_0x143e30;}async[a0_0x5d0ef5(0x208)](_0x10e2a9){const _0x4bd436=a0_0x5d0ef5;let _0x5dffb2=ValueUtil[_0x4bd436(0x20e)](this[_0x4bd436(0x1fc)],_0x4bd436(0x213),_0x4bd436(0x218),_0x4bd436(0x1f0));return await MetaApi['deleteListByIds'](_0x10e2a9,_0x5dffb2);}async[a0_0x5d0ef5(0x20b)](_0x256548){const _0x4ba6f7=a0_0x5d0ef5;let _0x2b6572=ValueUtil['getParams'](this[_0x4ba6f7(0x1fc)],_0x4ba6f7(0x213),_0x4ba6f7(0x1fa),'func'),_0x106ddd=ValueUtil[_0x4ba6f7(0x20e)](this[_0x4ba6f7(0x1fc)],_0x4ba6f7(0x213),_0x4ba6f7(0x1fa),'skip_fields');if(ValueUtil[_0x4ba6f7(0x204)](_0x106ddd)&&(_0x106ddd=_0x106ddd['map'](_0x2d5779=>_0x2d5779[_0x4ba6f7(0x1ea)]('.')?_0x2d5779[_0x4ba6f7(0x1f9)]('.'):_0x2d5779),_0x256548=_0x256548[_0x4ba6f7(0x1f5)](_0x163f64=>(_0x106ddd[_0x4ba6f7(0x203)](_0x339809=>{Array['isArray'](_0x339809)?delete _0x163f64[_0x339809[0x0]][_0x339809[0x1]]:delete _0x163f64[_0x339809];}),_0x163f64))),this[_0x4ba6f7(0x200)]&&ValueUtil[_0x4ba6f7(0x204)](this['parent_id'])){let _0x1c6b9a=ValueUtil['getParams'](this[_0x4ba6f7(0x1fc)],_0x4ba6f7(0x213),_0x4ba6f7(0x1fa),_0x4ba6f7(0x1ff));ValueUtil['isNotEmpty'](_0x1c6b9a)&&_0x256548[_0x4ba6f7(0x203)](_0x7f68e1=>{const _0x369cb5=_0x4ba6f7;if(_0x1c6b9a[_0x369cb5(0x1ea)]('.')){let _0x3cea84=_0x1c6b9a[_0x369cb5(0x1f9)]('.');_0x7f68e1[_0x3cea84[0x0]]={},_0x7f68e1[_0x3cea84[0x0]][_0x3cea84[0x1]]=this[_0x369cb5(0x1ff)];}else _0x7f68e1[_0x1c6b9a]=this[_0x369cb5(0x1ff)];});}return await MetaApi[_0x4ba6f7(0x20b)](_0x2b6572,_0x256548);}};
1
+ function a0_0xffc4(){const _0x51d474=['filter','deleteByIds','replace','pass','9dkfWZw','getPageNavigateParams','24XNeNsp','5184890qFHZMI','fetchHandler','callScenario','2722433nFlUIT','242OvVrGt','isEmpty','parse','getQueryFilters','data','970QIozZX','forEach','isElement','isNotEmpty','find_one_func','query','params','keys','includes','delete','732416KgaEZh','isArray','mainFilterForm','findOne','after_set_fields','updateMultiple','value','push','skip_fields','parent_id','is_activity','5056843tkEnVG','mutation','deleteListByIds','split','2231224zfnEbS','lifecycle','result','func','filters','afterFetch','properties','infinityPage','multiple','records','name','gqlInfo','beforeFetch','map','runScenario','getParams','length','dataSet','parseBasicServiceConfigs','10344IzVlXk','list_func','columns','9JtsXeV','gristConfigSet','3622HPMwOK','getSelectColumns'];a0_0xffc4=function(){return _0x51d474;};return a0_0xffc4();}const a0_0x9b0b50=a0_0x4a62;(function(_0x336bf4,_0xf26814){const _0x384176=a0_0x4a62,_0x4947ac=_0x336bf4();while(!![]){try{const _0x36946b=-parseInt(_0x384176(0x163))/0x1*(parseInt(_0x384176(0x199))/0x2)+parseInt(_0x384176(0x197))/0x3*(-parseInt(_0x384176(0x172))/0x4)+parseInt(_0x384176(0x168))/0x5*(parseInt(_0x384176(0x194))/0x6)+parseInt(_0x384176(0x162))/0x7+parseInt(_0x384176(0x181))/0x8+-parseInt(_0x384176(0x15c))/0x9*(parseInt(_0x384176(0x15f))/0xa)+parseInt(_0x384176(0x17d))/0xb*(parseInt(_0x384176(0x15e))/0xc);if(_0x36946b===_0xf26814)break;else _0x4947ac['push'](_0x4947ac['shift']());}catch(_0x2e6c78){_0x4947ac['push'](_0x4947ac['shift']());}}}(a0_0xffc4,0x65799));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x4a62(_0x21bc0d,_0x39ae12){const _0xffc4bc=a0_0xffc4();return a0_0x4a62=function(_0x4a62c3,_0x40f59c){_0x4a62c3=_0x4a62c3-0x15c;let _0x20fe4a=_0xffc4bc[_0x4a62c3];return _0x20fe4a;},a0_0x4a62(_0x21bc0d,_0x39ae12);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x40bf63=>class extends MetaBaseMixin(_0x40bf63){static get[a0_0x9b0b50(0x187)](){return{'gqlInfo':Object};}[a0_0x9b0b50(0x193)](_0x53dee0){const _0x31cb1d=a0_0x9b0b50;this[_0x31cb1d(0x18c)]=_0x53dee0['gql'];}async[a0_0x9b0b50(0x160)]({page:_0x29989f=0x0,limit:_0x3b592e=0x0,sortings:_0x488f42=[],filters:_0x3170a9=[]}){const _0x4a86a2=a0_0x9b0b50;if(this[_0x4a86a2(0x17c)])return{'total':0x0,'records':this[_0x4a86a2(0x192)]||[]};if(!0x0===this[_0x4a86a2(0x188)]&&(_0x29989f=0x0,_0x3b592e=0x0),this[_0x4a86a2(0x18d)]&&0x0==await this[_0x4a86a2(0x18d)]({'page':_0x29989f,'limit':_0x3b592e,'sortings':_0x488f42,'filters':_0x3170a9}))return;if(!this[_0x4a86a2(0x198)])return{'total':0x0,'records':[]};let _0x2cdb42=ValueUtil[_0x4a86a2(0x164)](_0x3170a9)?this[_0x4a86a2(0x174)]?await this['mainFilterForm']['getQueryFilters']()||[]:await this['filterForm']?.[_0x4a86a2(0x166)]()||[]:_0x3170a9,_0x186e2b=ValueUtil[_0x4a86a2(0x190)](this[_0x4a86a2(0x18c)],_0x4a86a2(0x16d),_0x4a86a2(0x195)),_0x3fcda7=ValueUtil[_0x4a86a2(0x190)](this[_0x4a86a2(0x18c)],'query',_0x4a86a2(0x185)),_0x592e20=ValueUtil[_0x4a86a2(0x190)](this[_0x4a86a2(0x18c)],_0x4a86a2(0x16d),_0x4a86a2(0x176));if(ValueUtil[_0x4a86a2(0x16b)](_0x3fcda7)&&(_0x2cdb42=adjustFilters(_0x2cdb42,_0x3fcda7)),_0x2cdb42[_0x4a86a2(0x179)](...this['getPageNavigateParams']()),this[_0x4a86a2(0x16a)]&&!this[_0x4a86a2(0x174)]){let _0x4b1378=ValueUtil[_0x4a86a2(0x190)](this['gqlInfo'],_0x4a86a2(0x16d),_0x4a86a2(0x17b));if(!ValueUtil[_0x4a86a2(0x16b)](_0x4b1378)||!ValueUtil[_0x4a86a2(0x16b)](this['parent_id']))return{'total':0x0,'records':[]};_0x2cdb42=adjustFilters(_0x2cdb42,[{'name':_0x4b1378,'operator':'eq','value':this['parent_id']}]);}let _0x72e3de=Object[_0x4a86a2(0x16f)](_0x592e20||{}),_0xee7a93=MetaApi['getSelectColumns'](this['gristConfigSet'][_0x4a86a2(0x196)][_0x4a86a2(0x19b)](_0x206085=>!_0x72e3de[_0x4a86a2(0x170)](_0x206085[_0x4a86a2(0x18b)]))),_0x337291={};if(_0x186e2b[_0x4a86a2(0x170)]('$')){let _0x4e220f=_0x186e2b[_0x4a86a2(0x19d)]('$','');_0x337291=(await MetaApi[_0x4a86a2(0x161)](void 0x0,_0x4e220f,{'filters':_0x2cdb42,'pagination':{'page':_0x29989f,'limit':_0x3b592e},'sortings':_0x488f42},!0x1))[_0x4a86a2(0x167)][_0x4a86a2(0x18f)][_0x4a86a2(0x167)][_0x4a86a2(0x183)];}else _0x337291=await MetaApi['searchByPagination'](_0x186e2b,_0x2cdb42,_0x488f42,_0x29989f,_0x3b592e,_0xee7a93);if(this[_0x4a86a2(0x186)]){let _0x2f1aaa=await this['afterFetch']({'page':_0x29989f,'limit':_0x3b592e,'sortings':_0x488f42,'filters':_0x3170a9},_0x337291);if(_0x2f1aaa)return _0x2f1aaa;}return ValueUtil[_0x4a86a2(0x16b)](_0x592e20)&&ValueUtil['isNotEmpty'](_0x337291)&&ValueUtil['isNotEmpty'](_0x337291[_0x4a86a2(0x18a)])&&_0x337291[_0x4a86a2(0x18a)][_0x4a86a2(0x18e)](_0x29d1e6=>(_0x72e3de[_0x4a86a2(0x169)](_0x3721c9=>{const _0x105b88=_0x4a86a2;_0x29d1e6[_0x3721c9]=ValueUtil[_0x105b88(0x190)](_0x29d1e6,..._0x592e20[_0x3721c9][_0x105b88(0x180)]('.'));}),_0x29d1e6)),_0x337291;}[a0_0x9b0b50(0x15d)](){const _0x10dcf6=a0_0x9b0b50;if(0x0==this['isPage'])return[];let _0x195b1f=this[_0x10dcf6(0x182)]?.['params']?this[_0x10dcf6(0x182)][_0x10dcf6(0x16e)]:{};if(!_0x195b1f[_0x10dcf6(0x19e)])return[];let _0x3d101c=_0x195b1f[_0x10dcf6(0x19e)],_0x334e22=JSON[_0x10dcf6(0x165)](_0x3d101c),_0x166597=0x1==_0x334e22['length']?'eq':'in',_0x308760={},_0x3d9c98=[];return Object[_0x10dcf6(0x16f)](_0x334e22[0x0])[_0x10dcf6(0x169)](_0x1e4f17=>{_0x308760[_0x1e4f17]={'name':_0x1e4f17,'operator':_0x166597,'value':'eq'===_0x166597?_0x334e22[0x0][_0x1e4f17]:[]};}),_0x334e22[_0x10dcf6(0x191)]>0x1&&_0x334e22[_0x10dcf6(0x169)](_0x47581f=>{const _0x5de6d6=_0x10dcf6;Object[_0x5de6d6(0x16f)](_0x47581f)[_0x5de6d6(0x169)](_0x2506e0=>{const _0x179175=_0x5de6d6;_0x308760[_0x2506e0][_0x179175(0x178)]['push'](_0x47581f[_0x2506e0]);});}),Object['keys'](_0x308760)[_0x10dcf6(0x169)](_0x5632bc=>{const _0x1d5419=_0x10dcf6;_0x3d9c98[_0x1d5419(0x179)](_0x308760[_0x5632bc]);}),_0x3d9c98;}async[a0_0x9b0b50(0x175)](_0x29c20e){const _0x34009c=a0_0x9b0b50;if(this[_0x34009c(0x17c)])return this[_0x34009c(0x192)]||{};let _0x120662=ValueUtil['getParams'](this[_0x34009c(0x18c)],_0x34009c(0x16d),_0x34009c(0x16c)),_0x1b7f0e=ValueUtil[_0x34009c(0x190)](this[_0x34009c(0x18c)],'query',_0x34009c(0x176)),_0x18c444=Object['keys'](_0x1b7f0e||{}),_0x1f93e7=MetaApi[_0x34009c(0x19a)]((this[_0x34009c(0x198)]?this[_0x34009c(0x198)]:{'columns':this['formConfigSet']})[_0x34009c(0x196)][_0x34009c(0x19b)](_0x95ea20=>!_0x18c444[_0x34009c(0x170)](_0x95ea20['name']))),_0x142cce={};if(_0x120662[_0x34009c(0x170)]('$')){let _0x256d19=_0x120662['replace']('$',''),_0x28095e=await MetaApi['callScenario'](void 0x0,_0x256d19,{'id':_0x29c20e},!0x1);_0x142cce=_0x28095e[_0x34009c(0x167)]['runScenario'][_0x34009c(0x167)]['result'];}else _0x142cce=await MetaApi[_0x34009c(0x175)](_0x120662,_0x29c20e,_0x1f93e7);return ValueUtil['isNotEmpty'](_0x1b7f0e)&&ValueUtil[_0x34009c(0x16b)](_0x142cce)&&_0x18c444[_0x34009c(0x169)](_0x39d9c7=>{const _0x460576=_0x34009c;_0x142cce[_0x39d9c7]=ValueUtil[_0x460576(0x190)](_0x142cce,..._0x1b7f0e[_0x39d9c7][_0x460576(0x180)]('.'));}),_0x142cce;}async[a0_0x9b0b50(0x19c)](_0x209af0){const _0x4cbf1e=a0_0x9b0b50;let _0x2a2744=ValueUtil[_0x4cbf1e(0x190)](this[_0x4cbf1e(0x18c)],_0x4cbf1e(0x17e),_0x4cbf1e(0x171),_0x4cbf1e(0x184));return await MetaApi[_0x4cbf1e(0x17f)](_0x209af0,_0x2a2744);}async[a0_0x9b0b50(0x177)](_0x1b7750){const _0x2975f1=a0_0x9b0b50;let _0x13c894=ValueUtil['getParams'](this['gqlInfo'],_0x2975f1(0x17e),_0x2975f1(0x189),_0x2975f1(0x184)),_0x2e3887=ValueUtil['getParams'](this[_0x2975f1(0x18c)],_0x2975f1(0x17e),_0x2975f1(0x189),_0x2975f1(0x17a));if(ValueUtil[_0x2975f1(0x16b)](_0x2e3887)&&(_0x2e3887=_0x2e3887['map'](_0x1b739f=>_0x1b739f[_0x2975f1(0x170)]('.')?_0x1b739f[_0x2975f1(0x180)]('.'):_0x1b739f),_0x1b7750=_0x1b7750[_0x2975f1(0x18e)](_0x1e7ce4=>(_0x2e3887[_0x2975f1(0x169)](_0x1733ce=>{const _0xb4dc3a=_0x2975f1;Array[_0xb4dc3a(0x173)](_0x1733ce)?delete _0x1e7ce4[_0x1733ce[0x0]][_0x1733ce[0x1]]:delete _0x1e7ce4[_0x1733ce];}),_0x1e7ce4))),this['isElement']&&ValueUtil[_0x2975f1(0x16b)](this[_0x2975f1(0x17b)])){let _0x16a46c=ValueUtil[_0x2975f1(0x190)](this[_0x2975f1(0x18c)],_0x2975f1(0x17e),_0x2975f1(0x189),_0x2975f1(0x17b));ValueUtil['isNotEmpty'](_0x16a46c)&&_0x1b7750[_0x2975f1(0x169)](_0x584312=>{const _0x24a5d9=_0x2975f1;if(_0x16a46c[_0x24a5d9(0x170)]('.')){let _0x4aea2e=_0x16a46c[_0x24a5d9(0x180)]('.');_0x584312[_0x4aea2e[0x0]]={},_0x584312[_0x4aea2e[0x0]][_0x4aea2e[0x1]]=this['parent_id'];}else _0x584312[_0x16a46c]=this[_0x24a5d9(0x17b)];});}return await MetaApi[_0x2975f1(0x177)](_0x13c894,_0x1b7750);}};