@things-factory/meta-ui 6.1.25 → 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 (87) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +10 -10
  3. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +7 -7
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +15 -15
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/meta-api.js +1 -1
  53. package/client/utils/meta-crypto.js +1 -1
  54. package/client/utils/meta-ui-util.js +103 -103
  55. package/client/utils/service-util.js +13 -13
  56. package/client/utils/terms-util.js +2 -2
  57. package/client/utils/ui-util.js +1 -1
  58. package/client/utils/value-util.js +1 -1
  59. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  60. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  61. package/client/viewparts/dynamic-menu-part.js +11 -11
  62. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  63. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  64. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  65. package/package.json +2 -2
  66. package/server/activity/CommonActivity.js +2 -2
  67. package/server/constants/error-code.js +1 -1
  68. package/server/errors/license-error.js +1 -1
  69. package/server/routes.js +1 -1
  70. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  71. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize.js +1 -1
  75. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  76. package/server/service/meta-activity/meta-activity-query.js +1 -1
  77. package/server/service/meta-activity/meta-activity-type.js +1 -1
  78. package/server/service/meta-secret/meta-resolver.js +1 -1
  79. package/server/service/set-translations/set-translation-resolver.js +1 -1
  80. package/server/service/work-code/work-code-mutation.js +1 -1
  81. package/server/service/work-code/work-code-query.js +1 -1
  82. package/server/service/work-code/work-code-type.js +1 -1
  83. package/server/service/work-code/work-code.js +1 -1
  84. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x8bcbdb=a0_0x3dbf;(function(_0x1610ea,_0x3fd2c5){const _0x5407dc=a0_0x3dbf,_0x574262=_0x1610ea();while(!![]){try{const _0x4c138b=-parseInt(_0x5407dc(0xf2))/0x1*(-parseInt(_0x5407dc(0xf1))/0x2)+-parseInt(_0x5407dc(0x126))/0x3*(-parseInt(_0x5407dc(0x112))/0x4)+parseInt(_0x5407dc(0x109))/0x5+-parseInt(_0x5407dc(0x122))/0x6*(parseInt(_0x5407dc(0x123))/0x7)+parseInt(_0x5407dc(0x117))/0x8*(-parseInt(_0x5407dc(0x136))/0x9)+parseInt(_0x5407dc(0x10d))/0xa+-parseInt(_0x5407dc(0x108))/0xb*(-parseInt(_0x5407dc(0x10b))/0xc);if(_0x4c138b===_0x3fd2c5)break;else _0x574262['push'](_0x574262['shift']());}catch(_0x2769db){_0x574262['push'](_0x574262['shift']());}}}(a0_0x374b,0x50c51));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x374b(){const _0x3d2a59=['render','20sYQRbz','getCodeSelectorData','getSelectColumns','firstUpdated','info','32KtzyUL','getCodeByScenario','clickEmpty','LIST','appendable','grist','getGristSelectableConfig','select','scenario','length','getGristMetaObjectOptions','150BkYhZX','124859XLYEQf','gridConfig','NOTHING_SELECTED','318258Cgtwoz','sorters','bind','confirmCallback','forEach','#ox-grist','meta-code-selector','align','getGristColumnConfig2','basicArgs','select-row-toggle','includes','gql','push','code','nameField','765639HAWFvh','connectedCallback','empty','resource-code-selector','clickSelect','tText','name','search_hidden_fields','filters','getParams','showToast','query','clickCancel','after_set_fields','options','meta-object-selector-popup','resource-object','60qnlTBH','1201rYTUpt','args','codeField','querySelector','getCodeByEntity','hidden','search','record','entity','meta-object-selector','type','tButton','filter','columns','filterFields','values','left','queryName','styles','menu_template','define','startsWith','1771HlsoLj','110970ZsYYeA','string','25032QdRwEV','rows','1925420QfNMpT','getGristPagination100Config','searchByPagination','dispField'];a0_0x374b=function(){return _0x3d2a59;};return a0_0x374b();}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';function a0_0x3dbf(_0x37489d,_0x237a27){const _0x374b25=a0_0x374b();return a0_0x3dbf=function(_0x3dbff3,_0x1e8775){_0x3dbff3=_0x3dbff3-0xe9;let _0x44bfe5=_0x374b25[_0x3dbff3];return _0x44bfe5;},a0_0x3dbf(_0x37489d,_0x237a27);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x8bcbdb(0x104)]=[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_0x8bcbdb=a0_0x3dbf;(function(_0x1610ea,_0x3fd2c5){const _0x5407dc=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x8bcbdb(0x137)](){const _0x5d16f2=a0_0x8bcbdb;this['search_hidden_fields']=this[_0x5d16f2(0xee)]['filters']?this['options'][_0x5d16f2(0x13e)]:this[_0x5d16f2(0x12f)]&&this[_0x5d16f2(0x12f)][_0x5d16f2(0x13e)]?this['basicArgs'][_0x5d16f2(0x13e)]:[];let _0x12f14f=this[_0x5d16f2(0xee)]['sorters']?this[_0x5d16f2(0xee)][_0x5d16f2(0x127)]:this[_0x5d16f2(0x12f)]&&this[_0x5d16f2(0x12f)][_0x5d16f2(0x127)]?this[_0x5d16f2(0x12f)][_0x5d16f2(0x127)]:[],_0x4ac5dc=this[_0x5d16f2(0xee)][_0x5d16f2(0x100)]?this[_0x5d16f2(0xee)]['filterFields']:this[_0x5d16f2(0xee)][_0x5d16f2(0x105)]?.[_0x5d16f2(0xf8)]&&this[_0x5d16f2(0xee)][_0x5d16f2(0x105)]?.['search'][_0x5d16f2(0x120)]>0x0?this['options'][_0x5d16f2(0x105)]['search']:[],_0x16d596=this['options'][_0x5d16f2(0x11e)];if(!_0x4ac5dc||0x0==_0x4ac5dc[_0x5d16f2(0x120)]){let _0xb4cf7e;this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)]&&(_0xb4cf7e=this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)]),this[_0x5d16f2(0xee)][_0x5d16f2(0x135)]&&(_0xb4cf7e=this[_0x5d16f2(0xee)]['nameField']),_0xb4cf7e&&_0x4ac5dc[_0x5d16f2(0x133)]({'name':_0xb4cf7e,'operator':'eq'});}let _0x4496f0=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x16d596&&_0x16d596['length']>0x0)for(let _0x594507=0x0;_0x594507<_0x16d596[_0x5d16f2(0x120)];_0x594507++){let {type:_0x1ae393='string',name:_0x3612e6,hidden:_0x523088=!0x1,record:_0x3132a4={'align':_0x5d16f2(0x102)},header:_0x44b3d6,sortable:_0x17c37e=!0x1,width:_0x1686c7=0x87,options:_0x442d9f,select_opt:_0x1d83f2,object_opt:_0x2c133b}=_0x16d596[_0x594507];if(_0x1d83f2&&(_0x442d9f=_0x1d83f2),_0x2c133b&&(_0x442d9f=_0x2c133b),[_0x5d16f2(0xf0),'object'][_0x5d16f2(0x131)](_0x1ae393)?_0x1ae393=_0x5d16f2(0xfb):[_0x5d16f2(0x139)][_0x5d16f2(0x131)](_0x1ae393)&&(_0x1ae393=_0x5d16f2(0x12c)),'id'==_0x3612e6)_0x4496f0[_0x5d16f2(0x133)]({'type':_0x5d16f2(0x10a),'name':_0x3612e6,'hidden':!0x0});else{let _0x594228=MetaApi['getGristColumnConfig2'](_0x1ae393,_0x3612e6,_0x44b3d6||_0x3612e6,_0x3132a4[_0x5d16f2(0x12d)]?_0x3132a4[_0x5d16f2(0x12d)]:_0x5d16f2(0x102),!0x1,_0x17c37e,_0x1686c7);_0x1ae393[_0x5d16f2(0x107)]('meta-')&&_0x2c133b&&_0x2c133b['menu']&&(_0x442d9f=await MetaUiUtil[_0x5d16f2(0x121)](_0x1ae393,_0x442d9f)),_0x5d16f2(0x11e)===_0x1ae393?Array['isArray'](_0x442d9f)?_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]=_0x442d9f:_0x5d16f2(0x134)===_0x442d9f[_0x5d16f2(0xfc)]?_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]=await ServiceUtil[_0x5d16f2(0x113)](_0x442d9f[_0x5d16f2(0x101)]?_0x442d9f[_0x5d16f2(0x101)]:_0x442d9f[_0x5d16f2(0x13c)]):_0x5d16f2(0x11f)===_0x442d9f[_0x5d16f2(0xfc)]?_0x594228['record'][_0x5d16f2(0xee)]=await ServiceUtil[_0x5d16f2(0x118)](_0x442d9f['name'],_0x442d9f[_0x5d16f2(0xf3)]):_0x5d16f2(0xfa)===_0x442d9f[_0x5d16f2(0xfc)]&&(_0x594228['record']['options']=await ServiceUtil[_0x5d16f2(0xf6)](_0x442d9f['args'])):_0x5d16f2(0xfb)===_0x1ae393?_0x594228[_0x5d16f2(0xf9)]['options']={..._0x442d9f}:_0x5d16f2(0x12c)==_0x1ae393&&(_0x442d9f[_0x5d16f2(0x110)]&&(_0x442d9f['codes']=await ServiceUtil[_0x5d16f2(0xf6)](_0x442d9f)),_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]={..._0x442d9f}),_0x594228[_0x5d16f2(0xf7)]=_0x523088,_0x4496f0['push'](_0x594228);}}else _0x4496f0['push'](MetaApi['getGristColumnConfig2']('string',this['options'][_0x5d16f2(0xf4)],this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)],_0x5d16f2(0x102),!0x1,!0x0,0xb4)),this['options']['dispField']&&_0x4496f0['push'](MetaApi[_0x5d16f2(0x12e)](_0x5d16f2(0x10a),this[_0x5d16f2(0xee)][_0x5d16f2(0x110)],this[_0x5d16f2(0xee)]['dispField'],_0x5d16f2(0x102),!0x1,!0x0,0x12c));_0x4496f0[_0x5d16f2(0x12a)](_0x344d26=>{const _0x335627=_0x5d16f2;let _0x52179d=_0x4ac5dc[_0x335627(0xfe)](_0x443fd7=>_0x335627(0x10a)==typeof _0x443fd7?_0x344d26[_0x335627(0x13c)]==_0x443fd7:_0x344d26[_0x335627(0x13c)]==_0x443fd7[_0x335627(0x13c)]);_0x52179d&&_0x52179d[_0x335627(0x120)]>0x0&&(_0x344d26[_0x335627(0xfe)]=_0x335627(0x10a)==typeof _0x52179d[0x0]?_0x335627(0xf8):_0x52179d[0x0]);});let _0x290bf0={'rows':MetaApi[_0x5d16f2(0x11d)](!0x1),'pagination':MetaApi[_0x5d16f2(0x10e)](),'columns':_0x4496f0,'sorters':[..._0x12f14f]};_0x290bf0[_0x5d16f2(0x10c)]['handlers']={'click':_0x5d16f2(0x130),'dblclick':(_0x511f46,_0xd43652,_0x4bb0e6,_0x2ca8e9,_0x4153d3,_0x38eec4)=>{this['selectRecord'](_0x2ca8e9);}},_0x290bf0['rows'][_0x5d16f2(0x11b)]=!0x1,this[_0x5d16f2(0x124)]=_0x290bf0,await super[_0x5d16f2(0x137)]();}async['firstUpdated'](){const _0x1cccb2=a0_0x8bcbdb;await super[_0x1cccb2(0x115)]();}[a0_0x8bcbdb(0x111)](){const _0x21977b=a0_0x8bcbdb;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x21977b(0x124)]} .mode=${isMobileDevice()?_0x21977b(0x11a):'GRID'} 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_0x8bcbdb=a0_0x3dbf;(function(_0x1610ea,_0x3fd2c5){const _0x5407dc=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil['tButton'](_0x21977b(0x138))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this['clickEmpty']['bind'](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[_0x21977b(0xfd)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x21977b(0xec)][_0x21977b(0x128)](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[_0x21977b(0xfd)](_0x21977b(0x11e))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x21977b(0x13a)]['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['grist'](){const _0x47d0cd=a0_0x8bcbdb;return this['shadowRoot'][_0x47d0cd(0xf5)](_0x47d0cd(0x12b));}async['fetchHandler']({page:_0x1c46be=0x0,limit:_0x33d59f=0x0,sorters:_0x5af861=[],filters:_0x3ecb11=[]}){const _0x8c2626=a0_0x8bcbdb;let _0xbe98b9=[...this[_0x8c2626(0x13d)]];_0x3ecb11['forEach'](_0x447ee5=>{const _0x5db891=_0x8c2626;let _0x3bca35=_0xbe98b9[_0x5db891(0xfe)](_0x18740b=>_0x447ee5[_0x5db891(0x13c)]==_0x18740b['name']);_0x3bca35&&_0x3bca35[_0x5db891(0x120)]>0x0&&delete _0xbe98b9[_0x447ee5['name']],_0xbe98b9[_0x5db891(0x133)](_0x447ee5);});let _0x763c36=ValueUtil[_0x8c2626(0xe9)](this[_0x8c2626(0xee)][_0x8c2626(0x105)]&&this['options'][_0x8c2626(0x105)][_0x8c2626(0x132)]||{},_0x8c2626(0xeb),_0x8c2626(0xed)),_0xa85943=Object['keys'](_0x763c36||{}),_0x58f0ec=MetaApi[_0x8c2626(0x114)](this['gridConfig'][_0x8c2626(0xff)][_0x8c2626(0xfe)](_0x441467=>!_0xa85943[_0x8c2626(0x131)](_0x441467[_0x8c2626(0x13c)])));return await MetaApi[_0x8c2626(0x10f)](this[_0x8c2626(0xee)][_0x8c2626(0x103)],_0xbe98b9,_0x5af861,_0x1c46be,_0x33d59f,_0x58f0ec);}async[a0_0x8bcbdb(0x119)](_0x38d505){const _0xebac4d=a0_0x8bcbdb;this[_0xebac4d(0x129)]&&this[_0xebac4d(0x129)](null),closePopup(this);}async['clickCancel'](_0x3d6905){closePopup(this);}async[a0_0x8bcbdb(0x13a)](_0x323d99){const _0x4a8ec9=a0_0x8bcbdb;let _0x37167c=this[_0x4a8ec9(0x11c)]['selected'];_0x37167c&&0x0!=_0x37167c[_0x4a8ec9(0x120)]?this['selectRecord'](_0x37167c[0x0]):MetaApi[_0x4a8ec9(0xea)](_0x4a8ec9(0x116),TermsUtil[_0x4a8ec9(0x13b)](_0x4a8ec9(0x125)));}async['selectRecord'](_0x12e2a2){const _0x33aa5c=a0_0x8bcbdb;this[_0x33aa5c(0x129)]&&this['confirmCallback'](_0x12e2a2),closePopup(this);}}customElements[a0_0x8bcbdb(0x106)](a0_0x8bcbdb(0xef),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
- function a0_0x52af(_0x41fab5,_0x169e67){const _0x23b904=a0_0x23b9();return a0_0x52af=function(_0x52af03,_0x40c0a3){_0x52af03=_0x52af03-0x145;let _0x4dd75e=_0x23b904[_0x52af03];return _0x4dd75e;},a0_0x52af(_0x41fab5,_0x169e67);}function a0_0x23b9(){const _0x5d12eb=['isNotEmpty','menuInfo','params','is_popup','143988iMXBVa','body','parseBasicButtonConfigs','is_detail','isEmpty','tagName','fetch','3WsoFBH','getAndParseMenuMeta','field-change','isDetail','parseBasicGridConfigs','active','dataChangeEventHandler','runScenario','210974bBVNvu','properties','etcConfig','188405npqTAd','grist','connectedCallback','532160fsjjBS','executeCallScenarioButtonClick','title','parent_id','286328cspYzJ','split','includes','form-field-change','callScenario','menu','result','parseBasicFormConfigs','fieldChangeHandlers','parseBasicTabConfigs','errors','fetchHandler','965600IYXRzy','dispatchEvent','setParentId','name','etc','parseBasicServiceConfigs','after','142722IDWkHd','openDynamicPopup','getParams','isPopup','data-changed','keys','lifecycle','detail','getMenuMeta'];a0_0x23b9=function(){return _0x5d12eb;};return a0_0x23b9();}const a0_0x21720b=a0_0x52af;(function(_0x1f0278,_0x66d6a5){const _0x31d5e5=a0_0x52af,_0x44e5ef=_0x1f0278();while(!![]){try{const _0x38d366=parseInt(_0x31d5e5(0x161))/0x1+-parseInt(_0x31d5e5(0x15e))/0x2+parseInt(_0x31d5e5(0x156))/0x3*(-parseInt(_0x31d5e5(0x14f))/0x4)+parseInt(_0x31d5e5(0x174))/0x5+-parseInt(_0x31d5e5(0x17b))/0x6+-parseInt(_0x31d5e5(0x168))/0x7+-parseInt(_0x31d5e5(0x164))/0x8;if(_0x38d366===_0x66d6a5)break;else _0x44e5ef['push'](_0x44e5ef['shift']());}catch(_0x41ce4a){_0x44e5ef['push'](_0x44e5ef['shift']());}}}(a0_0x23b9,0x1a91e));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1f790e=>class extends _0x1f790e{static get[a0_0x21720b(0x15f)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xad5fdf=>Boolean(_0xad5fdf)},'is_popup':{'type':Boolean,'converter':_0x164338=>Boolean(_0x164338)},'is_activity':{'type':Boolean,'converter':_0x34c4b5=>Boolean(_0x34c4b5)},'is_readonly':{'type':Boolean,'converter':_0x5b3bee=>Boolean(_0x5b3bee)}};}get['isElement'](){const _0x5d72d7=a0_0x21720b;return!0x0===this[_0x5d72d7(0x152)]||!0x0===this[_0x5d72d7(0x14e)];}get[a0_0x21720b(0x159)](){const _0x38a0d1=a0_0x21720b;return!ValueUtil[_0x38a0d1(0x153)](this[_0x38a0d1(0x152)])&&this[_0x38a0d1(0x152)];}async['dataChangeEventHandler'](_0x21ef31){const _0xf6c1a7=a0_0x21720b;let {after:_0x2fb8e2,before:_0x20404e,column:_0x2e7085,record:_0x2ad8f6,row:_0x9c601b}=_0x21ef31[_0xf6c1a7(0x149)],_0x1427e5=_0x2e7085[_0xf6c1a7(0x177)];if(Object[_0xf6c1a7(0x147)](this[_0xf6c1a7(0x170)]||{})[_0xf6c1a7(0x16a)](_0x1427e5)){let _0x4da859,_0x569623=(await MetaApi[_0xf6c1a7(0x16c)](void 0x0,this[_0xf6c1a7(0x170)][_0x1427e5],{'columnName':_0x1427e5,'column':_0x2e7085,'record':_0x2ad8f6,'after':_0x2fb8e2,'before':_0x20404e,'row':_0x9c601b},!0x1))['data'][_0xf6c1a7(0x15d)]['data'][_0xf6c1a7(0x16e)];if(!_0x569623)return;_0x4da859=this[_0xf6c1a7(0x162)]?this[_0xf6c1a7(0x162)][_0xf6c1a7(0x162)][_0xf6c1a7(0x150)]:this,Object[_0xf6c1a7(0x147)](_0x569623)['forEach'](_0x18d46c=>{const _0x3aa852=_0xf6c1a7;_0x4da859[_0x3aa852(0x175)](new CustomEvent(_0x3aa852(0x158),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x2ad8f6,'row':_0x9c601b,'after':_0x569623[_0x18d46c],'before':_0x2ad8f6[_0x18d46c],'column':{'name':_0x18d46c}}}));});}this[_0xf6c1a7(0x175)](new CustomEvent(_0xf6c1a7(0x146),{'bubbles':!0x0,'composed':!0x0,'detail':_0x21ef31[_0xf6c1a7(0x149)]}));}async['connectedCallback'](){const _0x33a671=a0_0x21720b;super[_0x33a671(0x163)]&&await super[_0x33a671(0x163)](),this[_0x33a671(0x154)]['toLowerCase']()['startsWith']('meta-form-')?this['addEventListener'](_0x33a671(0x16b),async _0x21e963=>{const _0x3cb8e5=_0x33a671;await this[_0x3cb8e5(0x15c)](_0x21e963);}):this['addEventListener'](_0x33a671(0x158),async _0x790cb0=>{await this['dataChangeEventHandler'](_0x790cb0);});}async['pageUpdated'](_0x578c17,_0x58a1a9,_0x4321a0){const _0x4fe71e=a0_0x21720b;let _0x1e9f29=this[_0x4fe71e(0x148)]?.[_0x4fe71e(0x14d)]?this['lifecycle'][_0x4fe71e(0x14d)]:{};this['isPage']&&this[_0x4fe71e(0x15b)]&&0x0==_0x4321a0[_0x4fe71e(0x15b)]&&ValueUtil[_0x4fe71e(0x14b)](_0x1e9f29)&&this[_0x4fe71e(0x155)]();}get[a0_0x21720b(0x145)](){const _0xef9e09=a0_0x21720b;return!ValueUtil[_0xef9e09(0x153)](this[_0xef9e09(0x14e)])&&this[_0xef9e09(0x14e)];}get['isPage'](){const _0x7cda32=a0_0x21720b;return!this[_0x7cda32(0x152)]&&!this[_0x7cda32(0x14e)];}async[a0_0x21720b(0x157)](){const _0x3d0f91=a0_0x21720b;let _0x10cf49=await MetaApi[_0x3d0f91(0x14a)](this);_0x10cf49&&(this[_0x3d0f91(0x14c)]=_0x10cf49[_0x3d0f91(0x16d)],this[_0x3d0f91(0x160)]=_0x10cf49[_0x3d0f91(0x178)],this[_0x3d0f91(0x15a)]&&this['parseBasicGridConfigs'](_0x10cf49),this[_0x3d0f91(0x179)]&&this[_0x3d0f91(0x179)](_0x10cf49),this['parseBasicFormConfigs']&&this[_0x3d0f91(0x16f)](_0x10cf49),this[_0x3d0f91(0x171)]&&this[_0x3d0f91(0x171)](_0x10cf49),this[_0x3d0f91(0x151)]&&this[_0x3d0f91(0x151)](_0x10cf49));}async['fetch'](){const _0xa12ff=a0_0x21720b;ValueUtil[_0xa12ff(0x14b)](this[_0xa12ff(0x162)])?this[_0xa12ff(0x162)][_0xa12ff(0x155)]():(ValueUtil[_0xa12ff(0x14b)](this['filterForm'])||this[_0xa12ff(0x173)])&&await this['fetchHandler']();}async['excuteOpenPopupButtonClick'](_0x2fba18,_0x1eead2,_0x531213){const _0x566ce0=a0_0x21720b;let _0x24d421=TermsUtil['tTitle'](_0x2fba18[_0x566ce0(0x166)]);ValueUtil[_0x566ce0(0x14b)](_0x2fba18['title_detail'])&&(_0x24d421=_0x24d421+'-'+ValueUtil[_0x566ce0(0x17d)](_0x1eead2,..._0x2fba18['title_detail'][_0x566ce0(0x169)]('.'))),MetaApi[_0x566ce0(0x17c)](_0x24d421,_0x2fba18,_0x1eead2,_0x531213);}async[a0_0x21720b(0x165)](_0x4e9940,_0x5bdea7,_0x1d38f7){const _0x44e244=a0_0x21720b;let _0x2801ef=await MetaApi[_0x44e244(0x16c)](_0x4e9940['name'],_0x4e9940[_0x44e244(0x177)],_0x5bdea7);!0x1!==_0x2801ef&&!_0x2801ef[_0x44e244(0x172)]&&ValueUtil[_0x44e244(0x14b)](_0x4e9940[_0x44e244(0x17a)])&&_0x1d38f7();}[a0_0x21720b(0x176)](_0x456f15){const _0x4935ec=a0_0x21720b;this[_0x4935ec(0x167)]=_0x456f15,this['fetch']();}};
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_0x238d7f=a0_0x110e;(function(_0x55fd7c,_0x4a0aa1){const _0x130798=a0_0x110e,_0x4d7c6d=_0x55fd7c();while(!![]){try{const _0x1fa6b7=-parseInt(_0x130798(0x1cd))/0x1*(-parseInt(_0x130798(0x1f8))/0x2)+-parseInt(_0x130798(0x1f3))/0x3*(parseInt(_0x130798(0x1bc))/0x4)+parseInt(_0x130798(0x1ec))/0x5+-parseInt(_0x130798(0x1f1))/0x6+parseInt(_0x130798(0x1ca))/0x7+parseInt(_0x130798(0x1f7))/0x8+parseInt(_0x130798(0x1da))/0x9;if(_0x1fa6b7===_0x4a0aa1)break;else _0x4d7c6d['push'](_0x4d7c6d['shift']());}catch(_0xf2f45c){_0x4d7c6d['push'](_0x4d7c6d['shift']());}}}(a0_0x3e67,0xa13bc));import{html}from'lit';function a0_0x110e(_0x8edf71,_0x476f3f){const _0x3e67a0=a0_0x3e67();return a0_0x110e=function(_0x110e27,_0x1dee80){_0x110e27=_0x110e27-0x1ba;let _0x25a193=_0x3e67a0[_0x110e27];return _0x25a193;},a0_0x110e(_0x8edf71,_0x476f3f);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3e67(){const _0x421a13=['gristConfigSet','isNotEmpty','startsWith','exportableData','import','parseGristConfigs','7579386koRGYB','grid_column','getParams','context','updateMultiple','getSelectedIdList','grid','parseBasicGridConfigs','renderRoot','getContextObject','title','grist','delete','firstUpdated','searchConfig','querySelector','find','search','589750BXkPPx','ox-grist','gristId','dataSet','shadowRoot','7451406XSryMb','parseGridConfigSet','207mMvTWf','getBasicGristHtml','stringify','filterFormId','6680032cXJtKp','34TTCIpp','render','findOne','records','76420UpBfcd','styles','fetch','gridEmphasized','getAndParseMenuMeta','patchesForUpdateMultiple','menuInfo','isPage','save','pageInitialized','data','forEach','export','getBasicGristStyles','3047352UIrsms','parse','keys','58242RPkCUU','filterForm','clear','deleteByIds','activityDataSet','isElement','connectedCallback'];a0_0x3e67=function(){return _0x421a13;};return a0_0x3e67();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x230712=>class extends MetaButtonMixin(_0x230712){static get[a0_0x238d7f(0x1bd)](){const _0x24b2b7=a0_0x238d7f;return MetaApi[_0x24b2b7(0x1c9)]();}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_0x238d7f(0x1e5)](){const _0xce47bc=a0_0x238d7f;return this[_0xce47bc(0x1e2)]?.[_0xce47bc(0x1e9)](this[_0xce47bc(0x1ee)]);}get[a0_0x238d7f(0x1ce)](){const _0x5806b0=a0_0x238d7f;return this[_0x5806b0(0x1f0)]?.[_0x5806b0(0x1e9)](this[_0x5806b0(0x1f6)]);}get[a0_0x238d7f(0x1dd)](){const _0x2f0cb3=a0_0x238d7f;return MetaUiUtil[_0x2f0cb3(0x1e3)](this);}async[a0_0x238d7f(0x1d3)](){const _0x365c75=a0_0x238d7f;this[_0x365c75(0x1ee)]=_0x365c75(0x1ed),this['filterFormId']='ox-filters-form',await this[_0x365c75(0x1c0)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x365c75(0x1d1)]&&(this[_0x365c75(0x1ef)]=this[_0x365c75(0x1d1)]),super['connectedCallback']&&await super[_0x365c75(0x1d3)]();}async[a0_0x238d7f(0x1e7)](){const _0x5af90e=a0_0x238d7f;super[_0x5af90e(0x1e7)]&&await super[_0x5af90e(0x1e7)]();}async[a0_0x238d7f(0x1c5)](){const _0xa1dac8=a0_0x238d7f;this[_0xa1dac8(0x1c3)]&&await this['parseGristConfigs'](),super[_0xa1dac8(0x1c5)]&&await super[_0xa1dac8(0x1c5)]();}[a0_0x238d7f(0x1f9)](){const _0x4fdfe3=a0_0x238d7f;return html`
2
- ${MetaApi[_0x4fdfe3(0x1f4)](this)}
3
- ${this[_0x4fdfe3(0x1c3)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}[a0_0x238d7f(0x1e1)](_0x3067df){const _0x8628eb=a0_0x238d7f;this['gridConfig']=_0x3067df[_0x8628eb(0x1e0)],this['gridColumnConfig']=_0x3067df[_0x8628eb(0x1db)],this[_0x8628eb(0x1e8)]=_0x3067df[_0x8628eb(0x1eb)],this[_0x8628eb(0x1bf)]=_0x3067df[_0x8628eb(0x1bf)];}async[a0_0x238d7f(0x1d9)](){const _0x158bcb=a0_0x238d7f;this[_0x158bcb(0x1d4)]=await MetaApi[_0x158bcb(0x1f2)](this);}async[a0_0x238d7f(0x1be)](){const _0x3abaa4=a0_0x238d7f;await this[_0x3abaa4(0x1e5)][_0x3abaa4(0x1be)]();}async[a0_0x238d7f(0x1c4)](){const _0x43bd8e=a0_0x238d7f;let _0x26e304=MetaApi[_0x43bd8e(0x1c1)](this[_0x43bd8e(0x1e5)]);!!ValueUtil[_0x43bd8e(0x1d5)](_0x26e304)&&await this[_0x43bd8e(0x1de)](_0x26e304)&&this[_0x43bd8e(0x1be)]();}async[a0_0x238d7f(0x1ea)](){const _0x1df5bc=a0_0x238d7f;let _0x5198a3=MetaApi[_0x1df5bc(0x1df)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x5198a3)?await this[_0x1df5bc(0x1ba)](_0x5198a3[0x0]):{};}async[a0_0x238d7f(0x1e6)](){const _0x2fa3a7=a0_0x238d7f;let _0x3639c9=MetaApi[_0x2fa3a7(0x1df)](this[_0x2fa3a7(0x1e5)],!0x0);!!ValueUtil[_0x2fa3a7(0x1d5)](_0x3639c9)&&await this[_0x2fa3a7(0x1d0)](_0x3639c9)&&this[_0x2fa3a7(0x1be)]();}async[a0_0x238d7f(0x1c8)](){const _0x334244=a0_0x238d7f;let _0x59ff2d=TermsUtil['tTitle'](ValueUtil[_0x334244(0x1dc)](this[_0x334244(0x1c2)],_0x334244(0x1e4)));return await MetaApi[_0x334244(0x1d7)](this[_0x334244(0x1d2)],_0x59ff2d,this[_0x334244(0x1e5)]);}async[a0_0x238d7f(0x1d8)](){}async[a0_0x238d7f(0x1cf)](){const _0xa0bde0=a0_0x238d7f;this[_0xa0bde0(0x1e5)]&&(this[_0xa0bde0(0x1e5)][_0xa0bde0(0x1c6)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x260498=a0_0x238d7f;let _0x2384c9=this[_0x260498(0x1e5)]['___data'][_0x260498(0x1bb)];return _0x2384c9=JSON[_0x260498(0x1cb)](JSON[_0x260498(0x1f5)](_0x2384c9)),_0x2384c9[_0x260498(0x1c7)](_0x1195df=>{const _0x2b3c20=_0x260498;Object[_0x2b3c20(0x1cc)](_0x1195df)[_0x2b3c20(0x1c7)](_0x5b58df=>{const _0x2d9806=_0x2b3c20;_0x5b58df[_0x2d9806(0x1d6)]('__')&&delete _0x1195df[_0x5b58df];});}),_0x2384c9;}};
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_0x14b8e1=a0_0x2b40;function a0_0x24ee(){const _0x2de476=['getButtonActionHandler','2052681PPmgHE','isButtonExist','add','gristButtonHandler','231QwOEeP','button','5317056hfYVUM','5PvmMzS','2103858qFJKVy','buttonConfig','8863019xxNGEZ','import','2490572otzwaB','isPage','parseBasicButtonConfigs','getButtonContainer','getContextButtons','5PEfuTi','useButtonImport','363208sbTTLo','useButtonExport','getCustomButtonContainerStyle','getBasicButtonHandler','20GXtnVc','properties','getCustomButtonContainerStyles','customButtonHandler','2866HpiKWn','useButtonAdd'];a0_0x24ee=function(){return _0x2de476;};return a0_0x24ee();}(function(_0x57c773,_0x4af23f){const _0x200eab=a0_0x2b40,_0x322d35=_0x57c773();while(!![]){try{const _0x578189=parseInt(_0x200eab(0x1b7))/0x1*(-parseInt(_0x200eab(0x1ad))/0x2)+-parseInt(_0x200eab(0x1b0))/0x3+parseInt(_0x200eab(0x1bc))/0x4+-parseInt(_0x200eab(0x1a3))/0x5*(-parseInt(_0x200eab(0x1b8))/0x6)+parseInt(_0x200eab(0x1b4))/0x7*(parseInt(_0x200eab(0x1a5))/0x8)+parseInt(_0x200eab(0x1b6))/0x9+parseInt(_0x200eab(0x1a9))/0xa*(-parseInt(_0x200eab(0x1ba))/0xb);if(_0x578189===_0x4af23f)break;else _0x322d35['push'](_0x322d35['shift']());}catch(_0x1a9674){_0x322d35['push'](_0x322d35['shift']());}}}(a0_0x24ee,0xb969d));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2b40(_0x3149c6,_0x359b88){const _0x24ee77=a0_0x24ee();return a0_0x2b40=function(_0x2b4022,_0x5c2193){_0x2b4022=_0x2b4022-0x1a3;let _0x43c1de=_0x24ee77[_0x2b4022];return _0x43c1de;},a0_0x2b40(_0x3149c6,_0x359b88);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x3e16dc=>class extends MetaServiceMixin(_0x3e16dc){static get[a0_0x14b8e1(0x1aa)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x14b8e1(0x1a7)](){const _0x828b81=a0_0x14b8e1;return MetaUiUtil[_0x828b81(0x1ab)]();}[a0_0x14b8e1(0x1c0)](){const _0x2b78e0=a0_0x14b8e1;return MetaUiUtil[_0x2b78e0(0x1c0)](this);}[a0_0x14b8e1(0x1bf)](){const _0x262c8e=a0_0x14b8e1;return this[_0x262c8e(0x1bd)]?html``:MetaUiUtil[_0x262c8e(0x1bf)](this);}async[a0_0x14b8e1(0x1a8)](_0x3a5d4f,_0x4bf457,_0x1e990b){const _0x3b3f96=a0_0x14b8e1;return await MetaUiUtil[_0x3b3f96(0x1af)](this,_0x3a5d4f,_0x4bf457,_0x1e990b);}async['customButtonHandler'](_0x2631cb){const _0x1d959d=a0_0x14b8e1;await MetaUiUtil[_0x1d959d(0x1ac)](this,_0x2631cb);}async[a0_0x14b8e1(0x1b3)](_0x790307,_0x148ae6){const _0x5df825=a0_0x14b8e1;await MetaUiUtil[_0x5df825(0x1b3)](this,_0x790307,_0x148ae6);}[a0_0x14b8e1(0x1be)](_0x535cd3){const _0x25fdd9=a0_0x14b8e1;this[_0x25fdd9(0x1b9)]=_0x535cd3[_0x25fdd9(0x1b5)],this[_0x25fdd9(0x1a4)]=MetaUiUtil[_0x25fdd9(0x1b1)](this[_0x25fdd9(0x1b9)],_0x25fdd9(0x1bb)),this[_0x25fdd9(0x1a6)]=MetaUiUtil[_0x25fdd9(0x1b1)](this[_0x25fdd9(0x1b9)],'export'),this[_0x25fdd9(0x1ae)]=MetaUiUtil[_0x25fdd9(0x1b1)](this['buttonConfig'],_0x25fdd9(0x1b2));}};
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_0x503c2b=a0_0x4828;function a0_0x4828(_0x3410fd,_0x272535){const _0x3b067f=a0_0x3b06();return a0_0x4828=function(_0x4828f0,_0x5f1ba2){_0x4828f0=_0x4828f0-0x19c;let _0x403b5f=_0x3b067f[_0x4828f0];return _0x403b5f;},a0_0x4828(_0x3410fd,_0x272535);}(function(_0x23b905,_0x201a14){const _0x1b0e41=a0_0x4828,_0x31bc20=_0x23b905();while(!![]){try{const _0x38d463=-parseInt(_0x1b0e41(0x1df))/0x1+-parseInt(_0x1b0e41(0x1ed))/0x2*(parseInt(_0x1b0e41(0x1da))/0x3)+-parseInt(_0x1b0e41(0x1ea))/0x4*(-parseInt(_0x1b0e41(0x1a3))/0x5)+parseInt(_0x1b0e41(0x1ae))/0x6+-parseInt(_0x1b0e41(0x1bc))/0x7*(-parseInt(_0x1b0e41(0x1bf))/0x8)+-parseInt(_0x1b0e41(0x1c9))/0x9*(-parseInt(_0x1b0e41(0x1c8))/0xa)+-parseInt(_0x1b0e41(0x1e8))/0xb*(parseInt(_0x1b0e41(0x1b0))/0xc);if(_0x38d463===_0x201a14)break;else _0x31bc20['push'](_0x31bc20['shift']());}catch(_0x129c79){_0x31bc20['push'](_0x31bc20['shift']());}}}(a0_0x3b06,0xb046b));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3b06(){const _0x5406dd=['validation','keydown','styles','fetch','function','11dbGkbJ','map','8ssMAzT','forEach','parseFormConfigSet','129922bVZNHV','cuFlag','removeAttribute','pageInitialized','parent_id','click','isNotEmpty','__origin__','clear','dirtyData','title.info','entries','dispatchEvent','1451735PfeXPK','connectedCallback','true','activityDataSet','updateMultiple','getData','filter','isPage','startsWith','removeGarbageData','patchData','2392524xixQMa','formColumnConfig','6296580aHkAbs','currentData','properties','name','before','parseFormConfigs','parseBasicFormConfigs','renderRoot','getBasicFormStyles','detail','firstUpdated','text.NOTHING_CHANGED','361389sZTVJq','getAndParseMenuMeta','isElement','184vHAsnS','record','getContextObject','grid_column','OX-GRID-FIELD','target','call','isEquals','activity','370FpSWRp','145305rBPMvq','addEventListener','form','button','editing','__dirty__','after','isEmpty','showAlertPopup','is_activity','form-field-change','context','currentTarget','Escape','formConfigSet','keys','focus','66EDLoFG','save','tagName','assign','stopPropagation','88350ZGOUts','column','__dirtyfields__','field-change'];a0_0x3b06=function(){return _0x5406dd;};return a0_0x3b06();}export const MetaFormMixin=_0xef566b=>class extends MetaButtonMixin(_0xef566b){static get[a0_0x503c2b(0x1e5)](){const _0x225000=a0_0x503c2b;return MetaApi[_0x225000(0x1b8)]();}static get[a0_0x503c2b(0x1b2)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x503c2b(0x1d4)](){const _0x3c640e=a0_0x503c2b;return MetaUiUtil[_0x3c640e(0x1c1)](this);}async[a0_0x503c2b(0x1a4)](){const _0x30752c=a0_0x503c2b;await this[_0x30752c(0x1bd)](),this[_0x30752c(0x1be)]&&await this['parseFormConfigs'](),this[_0x30752c(0x1a6)]&&(this['dataSet']=this[_0x30752c(0x1a6)]),!0x0!==this[_0x30752c(0x1d2)]||this[_0x30752c(0x1f1)]||(this[_0x30752c(0x1f1)]=_0x30752c(0x1c7)),super[_0x30752c(0x1a4)]&&await super[_0x30752c(0x1a4)](),this['isElement']&&await this[_0x30752c(0x1e6)](),this[_0x30752c(0x1b7)][_0x30752c(0x1ca)](_0x30752c(0x1e4),_0x3f0be7=>{const _0x2ae5ed=_0x30752c;switch(_0x3f0be7['key']){case'Esc':case _0x2ae5ed(0x1d6):case'Enter':this[_0x2ae5ed(0x1d9)](),this[_0x2ae5ed(0x1d5)]&&this[_0x2ae5ed(0x1d5)]['removeAttribute']('editing'),this['currentTarget']=null;}}),this[_0x30752c(0x1b7)][_0x30752c(0x1ca)](_0x30752c(0x1f2),_0x2d7782=>{const _0x597b1d=_0x30752c;_0x2d7782[_0x597b1d(0x1de)]();let _0x168182=_0x2d7782[_0x597b1d(0x1c4)];if(this[_0x597b1d(0x1d5)]&&(this[_0x597b1d(0x1d9)](),this['currentTarget'][_0x597b1d(0x1ef)](_0x597b1d(0x1cd))),_0x597b1d(0x1c3)!==_0x168182[_0x597b1d(0x1dc)]||!_0x168182[_0x597b1d(0x1e0)]['record']['editable'])return this[_0x597b1d(0x1d9)](),void(this['currentTarget']=null);this[_0x597b1d(0x1d5)]=_0x168182,_0x168182['setAttribute'](_0x597b1d(0x1cd),_0x597b1d(0x1a5));}),this[_0x30752c(0x1ca)](_0x30752c(0x1e2),_0x3f4bca=>{const _0x3e90f4=_0x30752c;var {after:_0x1926b0,before:_0x50b53f,column:_0x163dcb,record:_0x170392,row:_0x20a1a9}=_0x3f4bca[_0x3e90f4(0x1b9)];if(ValueUtil[_0x3e90f4(0x1c6)](_0x1926b0,_0x50b53f))return;var _0x56e6a7=_0x163dcb[_0x3e90f4(0x1e3)];if(_0x56e6a7&&_0x3e90f4(0x1e7)==typeof _0x56e6a7&&!_0x56e6a7[_0x3e90f4(0x1c5)](this,_0x1926b0,_0x50b53f,_0x170392,_0x163dcb))return;let _0x22744b=_0x163dcb['name'];_0x170392[_0x22744b]=_0x1926b0,_0x170392['__dirtyfields__']=_0x170392['__dirtyfields__']||{},_0x170392[_0x3e90f4(0x19d)]=_0x170392['__origin__']||{},_0x170392[_0x3e90f4(0x1e1)][_0x22744b]={'before':_0x170392['__origin__'][_0x22744b],'after':_0x170392[_0x22744b]},ValueUtil[_0x3e90f4(0x1c6)](_0x170392[_0x3e90f4(0x1e1)][_0x22744b][_0x3e90f4(0x1b4)],_0x170392[_0x3e90f4(0x1e1)][_0x22744b][_0x3e90f4(0x1cf)])&&delete _0x170392[_0x3e90f4(0x1e1)][_0x22744b],ValueUtil[_0x3e90f4(0x19c)](_0x170392[_0x3e90f4(0x1e1)])?_0x170392[_0x3e90f4(0x1ce)]='M':_0x170392[_0x3e90f4(0x1ce)]='',this[_0x3e90f4(0x1c0)]={..._0x170392},this[_0x3e90f4(0x1a2)](new CustomEvent(_0x3e90f4(0x1d3),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3f4bca[_0x3e90f4(0x1b9)]}));});}async[a0_0x503c2b(0x1ba)](){const _0x41fd05=a0_0x503c2b;super[_0x41fd05(0x1ba)]&&await super[_0x41fd05(0x1ba)]();}async[a0_0x503c2b(0x1f0)](){const _0x265ab4=a0_0x503c2b;this['isPage']&&await this[_0x265ab4(0x1b5)](),super[_0x265ab4(0x1f0)]&&await super[_0x265ab4(0x1f0)](),this[_0x265ab4(0x1aa)]&&await this[_0x265ab4(0x1e6)]();}['render'](){return MetaApi['getBasicFormHtml'](this);}[a0_0x503c2b(0x1b6)](_0x3bcaae){const _0x1e9fb5=a0_0x503c2b;this[_0x1e9fb5(0x1af)]=_0x3bcaae[_0x1e9fb5(0x1c2)],this['formRenderConfig']=_0x3bcaae[_0x1e9fb5(0x1cb)],_0x3bcaae[_0x1e9fb5(0x1cc)]=_0x3bcaae['button'][_0x1e9fb5(0x1a9)](_0x378937=>_0x1e9fb5(0x1db)==_0x378937[_0x1e9fb5(0x1b3)]);}async[a0_0x503c2b(0x1b5)](){const _0x557e52=a0_0x503c2b;this[_0x557e52(0x1d7)]=await MetaApi[_0x557e52(0x1ec)](this);}get['orgData'](){const _0x3b2c0c=a0_0x503c2b;return this[_0x3b2c0c(0x1ac)](this[_0x3b2c0c(0x1c0)][_0x3b2c0c(0x19d)]);}get[a0_0x503c2b(0x19f)](){const _0x3ea020=a0_0x503c2b;if(ValueUtil[_0x3ea020(0x1d0)](this[_0x3ea020(0x1c0)][_0x3ea020(0x1e1)]))return{};let _0x28b344={};return Object[_0x3ea020(0x1a1)](this[_0x3ea020(0x1c0)][_0x3ea020(0x1e1)])[_0x3ea020(0x1e9)](([_0x3fb418,_0x391b65])=>{const _0x27f6b6=_0x3ea020;0x0==_0x3fb418[_0x27f6b6(0x1ab)]('__')&&(_0x28b344[_0x3fb418]=_0x391b65[_0x27f6b6(0x1cf)]);}),_0x28b344;}get['currentData'](){const _0x105f25=a0_0x503c2b;return this[_0x105f25(0x1ac)](this['record']);}['removeGarbageData'](_0x2a97b7){const _0x142e06=a0_0x503c2b;let _0x2c9f4d={};if(_0x2a97b7)return Object[_0x142e06(0x1a1)](_0x2a97b7)['map'](([_0x2bff53,_0x33f113])=>{const _0x4e63dd=_0x142e06;0x0==_0x2bff53[_0x4e63dd(0x1ab)]('__')&&(_0x2c9f4d[_0x2bff53]=_0x33f113);}),_0x2c9f4d;}get[a0_0x503c2b(0x1ad)](){const _0x3aa4b4=a0_0x503c2b;let _0x4af961=this[_0x3aa4b4(0x19f)],_0x19e38c=this[_0x3aa4b4(0x1c0)];return ValueUtil['isEmpty'](_0x4af961)?[]:(ValueUtil[_0x3aa4b4(0x19c)](_0x19e38c['id'])?(_0x4af961['id']=_0x19e38c['id'],_0x4af961['cuFlag']='M'):_0x4af961[_0x3aa4b4(0x1ee)]='+',Object[_0x3aa4b4(0x1d8)](_0x4af961)[_0x3aa4b4(0x1eb)](_0x3663b0=>{'object'==typeof _0x4af961[_0x3663b0]&&(_0x4af961[_0x3663b0]={'id':_0x4af961[_0x3663b0]['id']});}),[_0x4af961]);}async[a0_0x503c2b(0x1e6)](){const _0x291e8a=a0_0x503c2b;if(ValueUtil[_0x291e8a(0x1d0)](this['parent_id']))return;let _0x6a9acd=await this['findOne'](this[_0x291e8a(0x1f1)]);_0x6a9acd['__seq__']=0x1;let _0x13a27f={};Object[_0x291e8a(0x1dd)](_0x13a27f,_0x6a9acd),_0x6a9acd[_0x291e8a(0x19d)]=_0x13a27f,this[_0x291e8a(0x1c0)]={..._0x6a9acd};}async['save'](){const _0x1ae6b5=a0_0x503c2b;let _0x187ca5=this[_0x1ae6b5(0x1ad)];if(ValueUtil[_0x1ae6b5(0x1d0)](_0x187ca5))return void MetaApi[_0x1ae6b5(0x1d1)](_0x1ae6b5(0x1a0),_0x1ae6b5(0x1bb));let _0x320d3d=await this[_0x1ae6b5(0x1a7)](_0x187ca5);return _0x320d3d&&await this[_0x1ae6b5(0x1e6)](),_0x320d3d;}async[a0_0x503c2b(0x19e)](){const _0x165451=a0_0x503c2b;this[_0x165451(0x1c0)]&&(this[_0x165451(0x1c0)]={});}[a0_0x503c2b(0x1a8)](){const _0x1f1eff=a0_0x503c2b;return this[_0x1f1eff(0x1b1)]||{};}};
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_0x533a7d=a0_0x1251;(function(_0x6fc222,_0x1303eb){const _0x28aecb=a0_0x1251,_0x5c51e3=_0x6fc222();while(!![]){try{const _0x3a486a=-parseInt(_0x28aecb(0xe2))/0x1*(parseInt(_0x28aecb(0xcd))/0x2)+parseInt(_0x28aecb(0xc9))/0x3+parseInt(_0x28aecb(0xdc))/0x4+parseInt(_0x28aecb(0xbe))/0x5+-parseInt(_0x28aecb(0xad))/0x6*(-parseInt(_0x28aecb(0xc8))/0x7)+-parseInt(_0x28aecb(0x9a))/0x8+-parseInt(_0x28aecb(0xe0))/0x9;if(_0x3a486a===_0x1303eb)break;else _0x5c51e3['push'](_0x5c51e3['shift']());}catch(_0x463f96){_0x5c51e3['push'](_0x5c51e3['shift']());}}}(a0_0x3b4a,0x2ef6e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x3b4a(){const _0x4da0b4=['tTitle','shadowRoot','clear','getContextObject','firstUpdated','filterForm','type','1637514pyPsdM','pageInitialized','gridConfig','connectedCallback','detailElement','columns','keys','gristConfigSet','main','meta-tab-element','deleteByIds','find','parseBasicGridConfigs','search','context','getParams','findOne','581045jigCeg','startsWith','isElement','gristId','beforeFetch','updateMultiple','renderRoot','grid','options','grist','7zebpnu','587679pYnbvu','getBasicGristTabStyles','exportableData','ox-grist','28XAUsWh','records','searchFieldValues','ox-filters-form-base','grid_column','map','header','fetch','importable','gridEmphasized','getSelectedIdList','dataSet','isPage','title','getAndParseMenuMeta','846496fqDftg','actions','parseGridConfigSet','operator','3898557KStgvU','isNotEmpty','5509KLlJsn','getGristTabHtml','save','filter','push','menuInfo','value','getData','properties','parse','751840mKegTt','querySelector','parseGristConfigs','render','forEach','useFilterForm','delete','filterFormId','import','#detail','useMasterFilterForm','name'];a0_0x3b4a=function(){return _0x4da0b4;};return a0_0x3b4a();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x1251(_0x248936,_0x4b4f0c){const _0x3b4adc=a0_0x3b4a();return a0_0x1251=function(_0x1251d5,_0xe3180e){_0x1251d5=_0x1251d5-0x97;let _0x510504=_0x3b4adc[_0x1251d5];return _0x510504;},a0_0x1251(_0x248936,_0x4b4f0c);}export const MetaGristTabMixin=_0xb53c5b=>class extends MetaButtonMixin(_0xb53c5b){static get['styles'](){const _0x3b93ad=a0_0x1251;return MetaApi[_0x3b93ad(0xca)]();}static get[a0_0x533a7d(0x98)](){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_0x533a7d(0xc7)](){const _0x108803=a0_0x533a7d;return this[_0x108803(0xc4)][_0x108803(0x9b)](this[_0x108803(0xc1)]);}get[a0_0x533a7d(0xab)](){const _0x5f559d=a0_0x533a7d;return this[_0x5f559d(0xa7)]?.[_0x5f559d(0x9b)](this[_0x5f559d(0xa1)]);}get[a0_0x533a7d(0xb1)](){const _0x4e86b3=a0_0x533a7d;return this[_0x4e86b3(0xa7)]['querySelector'](_0x4e86b3(0xa3));}get[a0_0x533a7d(0xbb)](){const _0x593dc2=a0_0x533a7d;let _0x55f635=MetaUiUtil[_0x593dc2(0xa9)](this);return _0x55f635[_0x593dc2(0xdd)]&&delete _0x55f635[_0x593dc2(0xdd)],_0x55f635['exportable']&&delete _0x55f635['exportable'],_0x55f635[_0x593dc2(0xd5)]&&delete _0x55f635[_0x593dc2(0xd5)],_0x55f635;}async[a0_0x533a7d(0xb0)](){const _0x2e2b67=a0_0x533a7d;this[_0x2e2b67(0xc1)]=_0x2e2b67(0xcc),this['filterFormId']=_0x2e2b67(0xd0),await this[_0x2e2b67(0xdb)](),this[_0x2e2b67(0xc0)]&&await this[_0x2e2b67(0x9c)](),this['activityDataSet']&&(this[_0x2e2b67(0xd8)]=(this['activityDataSet']||{})[_0x2e2b67(0xb5)]),super[_0x2e2b67(0xb0)]&&await super['connectedCallback']();}async[a0_0x533a7d(0xaa)](){const _0x250d55=a0_0x533a7d;super[_0x250d55(0xaa)]&&await super[_0x250d55(0xaa)]();}async[a0_0x533a7d(0xae)](){const _0x175f7a=a0_0x533a7d;this[_0x175f7a(0xd9)]&&await this[_0x175f7a(0x9c)](),super[_0x175f7a(0xae)]&&await super[_0x175f7a(0xae)]();}[a0_0x533a7d(0x9d)](){const _0x46ad96=a0_0x533a7d;return MetaApi[_0x46ad96(0xe3)](this);}[a0_0x533a7d(0xb9)](_0x383f2d){const _0x359b9a=a0_0x533a7d;this[_0x359b9a(0xaf)]=_0x383f2d[_0x359b9a(0xc5)],this['gridColumnConfig']=_0x383f2d[_0x359b9a(0xd1)],this['searchConfig']=_0x383f2d[_0x359b9a(0xba)],this[_0x359b9a(0xd6)]=_0x383f2d[_0x359b9a(0xd6)];}async[a0_0x533a7d(0x9c)](){const _0x4c5cd8=a0_0x533a7d;this[_0x4c5cd8(0xb4)]=await MetaApi[_0x4c5cd8(0xde)](this),this[_0x4c5cd8(0xa4)]=!0x0===this[_0x4c5cd8(0x9f)],this[_0x4c5cd8(0x9f)]=!0x1,this[_0x4c5cd8(0xcf)]=[],this['searchFields']=this['gristConfigSet'][_0x4c5cd8(0xb2)][_0x4c5cd8(0xe5)](_0x3f07a5=>_0x3f07a5['filter'])[_0x4c5cd8(0xd2)](_0x1c4c8c=>{const _0x2d4886=_0x4c5cd8;let _0x228e81={'name':_0x1c4c8c['name'],'type':_0x2d4886(0xba)===_0x1c4c8c[_0x2d4886(0xe5)]['operator']?_0x2d4886(0xba):_0x1c4c8c[_0x2d4886(0xac)],'label':_0x1c4c8c[_0x2d4886(0xd3)],'operator':_0x1c4c8c['filter'][_0x2d4886(0xdf)]?_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xdf)]:'eq'};return _0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xc6)]&&(_0x228e81[_0x2d4886(0xc6)]=_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xc6)]),_0x1c4c8c['record'][_0x2d4886(0xc6)]&&(_0x228e81[_0x2d4886(0xc6)]=_0x1c4c8c['record'][_0x2d4886(0xc6)]),_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xe8)]&&this[_0x2d4886(0xcf)][_0x2d4886(0xe6)]({'name':_0x228e81[_0x2d4886(0xa5)],'operator':_0x228e81['operator'],'value':_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xe8)]}),delete _0x1c4c8c[_0x2d4886(0xe5)],_0x228e81;});}async[a0_0x533a7d(0xd4)](){const _0x148489=a0_0x533a7d;await this[_0x148489(0xc7)][_0x148489(0xd4)]();}async[a0_0x533a7d(0xc2)]({page:_0x5ad7fe=0x0,limit:_0x688615=0x0,sortings:_0x2a6ac2=[],filters:_0x41f9a3=[]}){const _0x171659=a0_0x533a7d;let _0x224db5=this[_0x171659(0xc4)]['querySelector'](_0x171659(0xb6));return await _0x224db5[_0x171659(0xa8)](),!0x0;}async[a0_0x533a7d(0xe4)](){const _0x3eecdc=a0_0x533a7d;let _0x234234=MetaApi['patchesForUpdateMultiple'](this[_0x3eecdc(0xc7)]);!!ValueUtil[_0x3eecdc(0xe1)](_0x234234)&&await this[_0x3eecdc(0xc3)](_0x234234)&&this[_0x3eecdc(0xd4)]();}async[a0_0x533a7d(0xb8)](){const _0x5e994c=a0_0x533a7d;let _0x15bf70=MetaApi[_0x5e994c(0xd7)](this['grist'],!0x0);return ValueUtil[_0x5e994c(0xe1)](_0x15bf70)?await this[_0x5e994c(0xbd)](_0x15bf70[0x0]):{};}async[a0_0x533a7d(0xa0)](){const _0x3ce3ca=a0_0x533a7d;let _0x2ad351=MetaApi['getSelectedIdList'](this[_0x3ce3ca(0xc7)],!0x0);!!ValueUtil['isNotEmpty'](_0x2ad351)&&await this[_0x3ce3ca(0xb7)](_0x2ad351)&&this[_0x3ce3ca(0xd4)]();}async['export'](){const _0x44c1f8=a0_0x533a7d;let _0x4e12a2=TermsUtil[_0x44c1f8(0xa6)](ValueUtil[_0x44c1f8(0xbc)](this[_0x44c1f8(0xe7)],_0x44c1f8(0xda)));return await MetaApi[_0x44c1f8(0xcb)](this['isElement'],_0x4e12a2,this[_0x44c1f8(0xc7)]);}async[a0_0x533a7d(0xa2)](){}[a0_0x533a7d(0x97)](){const _0x328016=a0_0x533a7d;let _0x25b391=this[_0x328016(0xc7)]['___data'][_0x328016(0xce)];return _0x25b391=JSON[_0x328016(0x99)](JSON['stringify'](_0x25b391)),_0x25b391['forEach'](_0x20e198=>{const _0x532059=_0x328016;Object[_0x532059(0xb3)](_0x20e198)[_0x532059(0x9e)](_0x58857f=>{const _0x310931=_0x532059;_0x58857f[_0x310931(0xbf)]('__')&&delete _0x20e198[_0x58857f];});}),{'main':_0x25b391,'detail':this[_0x328016(0xc4)][_0x328016(0x9b)](_0x328016(0xb6))[_0x328016(0x97)]()};}};
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_0xa227ae=a0_0x41f8;(function(_0x13a40a,_0x9cc1d5){const _0x5f3944=a0_0x41f8,_0x56c332=_0x13a40a();while(!![]){try{const _0x5bea01=-parseInt(_0x5f3944(0xfe))/0x1*(parseInt(_0x5f3944(0x101))/0x2)+-parseInt(_0x5f3944(0x109))/0x3+-parseInt(_0x5f3944(0x110))/0x4+-parseInt(_0x5f3944(0xf7))/0x5+parseInt(_0x5f3944(0xee))/0x6+parseInt(_0x5f3944(0xe3))/0x7+parseInt(_0x5f3944(0x108))/0x8*(parseInt(_0x5f3944(0xf5))/0x9);if(_0x5bea01===_0x9cc1d5)break;else _0x56c332['push'](_0x56c332['shift']());}catch(_0x434261){_0x56c332['push'](_0x56c332['shift']());}}}(a0_0x135d,0x86f7b));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x41f8(_0x2860d3,_0x3d56bc){const _0x135de7=a0_0x135d();return a0_0x41f8=function(_0x41f89b,_0x192cdf){_0x41f89b=_0x41f89b-0xd7;let _0x20a9e1=_0x135de7[_0x41f89b];return _0x20a9e1;},a0_0x41f8(_0x2860d3,_0x3d56bc);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x425e61=>class extends MetaButtonMixin(_0x425e61){static get[a0_0xa227ae(0xf1)](){const _0x1a0c47=a0_0xa227ae;return MetaApi[_0x1a0c47(0xf9)]();}static get[a0_0xa227ae(0x10b)](){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_0xa227ae(0x111)](){const _0x353e61=a0_0xa227ae;return this[_0x353e61(0xfc)][_0x353e61(0xe2)]();}get[a0_0xa227ae(0xeb)](){const _0x3663d5=a0_0xa227ae;return this['shadowRoot']?.[_0x3663d5(0xdd)](this['filterFormId']);}get[a0_0xa227ae(0xdf)](){const _0x168106=a0_0xa227ae;let _0xb4032=MetaUiUtil['getContextObject'](this);return _0xb4032['actions']&&delete _0xb4032[_0x168106(0xf3)],_0xb4032[_0x168106(0xe0)]&&delete _0xb4032[_0x168106(0xe0)],_0xb4032[_0x168106(0x102)]&&delete _0xb4032[_0x168106(0x102)],_0xb4032;}async[a0_0xa227ae(0xe9)](){const _0x1ffa08=a0_0xa227ae;this['gristId']=_0x1ffa08(0x105),this['filterFormId']=_0x1ffa08(0xe6),await this[_0x1ffa08(0x10a)](),this[_0x1ffa08(0xfb)]&&await this[_0x1ffa08(0x112)](),this['activityDataSet']&&(this['dataSet']=(this[_0x1ffa08(0x103)]||{})['main']),super[_0x1ffa08(0xe9)]&&await super[_0x1ffa08(0xe9)]();}async['firstUpdated'](){const _0x305677=a0_0xa227ae;super[_0x305677(0xff)]&&await super[_0x305677(0xff)]();}async[a0_0xa227ae(0x10c)](){const _0x46e1fc=a0_0xa227ae;this[_0x46e1fc(0x10d)]&&await this['parseGristConfigs'](),super[_0x46e1fc(0x10c)]&&await super[_0x46e1fc(0x10c)]();}['render'](){const _0x26c6e0=a0_0xa227ae;return MetaApi[_0x26c6e0(0xf0)](this);}[a0_0xa227ae(0xe7)](_0xbaa7){const _0x9e0b8b=a0_0xa227ae;this[_0x9e0b8b(0xf8)]=_0xbaa7[_0x9e0b8b(0xd9)],this['gridColumnConfig']=_0xbaa7[_0x9e0b8b(0x107)],this['searchConfig']=_0xbaa7['search'],this[_0x9e0b8b(0xec)]=_0xbaa7[_0x9e0b8b(0xec)];}async['parseGristConfigs'](){const _0x113501=a0_0xa227ae;this[_0x113501(0x113)]=await MetaApi[_0x113501(0xf4)](this),this[_0x113501(0xda)]=!0x0===this[_0x113501(0xef)],this[_0x113501(0xef)]=!0x1,this[_0x113501(0x10e)]=void 0x0,this['useButtonExport']=!0x1,this[_0x113501(0xea)]=!0x1,this[_0x113501(0x100)]=[],this[_0x113501(0xde)]=this[_0x113501(0x113)][_0x113501(0xd7)][_0x113501(0xfd)](_0xf18928=>_0xf18928[_0x113501(0xfd)])[_0x113501(0xdc)](_0x386b50=>{const _0x3acae2=_0x113501;let _0x44b82a={'name':_0x386b50['name'],'type':_0x3acae2(0xdb)===_0x386b50['filter'][_0x3acae2(0xe1)]?_0x3acae2(0xdb):_0x386b50[_0x3acae2(0xe5)],'label':_0x386b50[_0x3acae2(0xd8)],'operator':_0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xe1)]?_0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xe1)]:'eq'};return _0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xfa)]&&(_0x44b82a['options']=_0x386b50['filter'][_0x3acae2(0xfa)]),_0x386b50[_0x3acae2(0xe4)]['options']&&(_0x44b82a[_0x3acae2(0xfa)]=_0x386b50[_0x3acae2(0xe4)][_0x3acae2(0xfa)]),_0x386b50[_0x3acae2(0xfd)]['value']&&this[_0x3acae2(0x100)][_0x3acae2(0xe8)]({'name':_0x44b82a[_0x3acae2(0xed)],'operator':_0x44b82a[_0x3acae2(0xe1)],'value':_0x386b50['filter'][_0x3acae2(0x106)]}),delete _0x386b50[_0x3acae2(0xfd)],_0x44b82a;});}async[a0_0xa227ae(0xf2)](){const _0x5cb3e9=a0_0xa227ae;await this[_0x5cb3e9(0x111)][_0x5cb3e9(0xf2)]();}async[a0_0xa227ae(0xf6)]({page:_0x19af78=0x0,limit:_0xe445c2=0x0,sortings:_0x4a7733=[],filters:_0x1850f8=[]}){const _0x4e3703=a0_0xa227ae;return this[_0x4e3703(0xfc)]&&this[_0x4e3703(0xfc)]['clear']&&await this[_0x4e3703(0xfc)][_0x4e3703(0x10f)](),!0x0;}[a0_0xa227ae(0x104)](){const _0x4d4df7=a0_0xa227ae;return{'master':this['masterElement'][_0x4d4df7(0x104)]()};}};function a0_0x135d(){const _0x3b5bc1=['302DxgSFI','importable','activityDataSet','getData','ox-grist','value','grid_column','8ZfvqMb','1366347OHiRUD','getAndParseMenuMeta','properties','pageInitialized','isPage','buttonConfig','clear','2093788vpWDmk','grist','parseGristConfigs','gristConfigSet','columns','header','grid','useMasterFilterForm','search','map','querySelector','searchFields','context','exportable','operator','getMainGrist','3259186adgQKW','record','type','ox-filters-form-base','parseBasicGridConfigs','push','connectedCallback','useButtonImport','filterForm','gridEmphasized','name','412536dWHgkc','useFilterForm','getMainTabHtml','styles','fetch','actions','parseGridConfigSet','24474897SWZCzP','beforeFetch','5343435qLJhZc','gridConfig','getBasicMainTabStyles','options','isElement','masterElement','filter','4327PjABZP','firstUpdated','searchFieldValues'];a0_0x135d=function(){return _0x3b5bc1;};return a0_0x135d();}
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_0x2d1ab0=a0_0x27ce;(function(_0x469acb,_0x4201f4){const _0x1d40c4=a0_0x27ce,_0x2f60d3=_0x469acb();while(!![]){try{const _0x176da8=parseInt(_0x1d40c4(0x123))/0x1+-parseInt(_0x1d40c4(0xe9))/0x2+-parseInt(_0x1d40c4(0xf8))/0x3*(-parseInt(_0x1d40c4(0xf7))/0x4)+parseInt(_0x1d40c4(0x10a))/0x5*(-parseInt(_0x1d40c4(0x11d))/0x6)+-parseInt(_0x1d40c4(0x121))/0x7*(-parseInt(_0x1d40c4(0x102))/0x8)+-parseInt(_0x1d40c4(0xf9))/0x9*(-parseInt(_0x1d40c4(0x139))/0xa)+-parseInt(_0x1d40c4(0xe7))/0xb;if(_0x176da8===_0x4201f4)break;else _0x2f60d3['push'](_0x2f60d3['shift']());}catch(_0x5adef2){_0x2f60d3['push'](_0x2f60d3['shift']());}}}(a0_0xa5a7,0xc134a));import{html}from'lit';function a0_0x27ce(_0x250f5b,_0x3a4336){const _0xa5a79f=a0_0xa5a7();return a0_0x27ce=function(_0x27ce3c,_0xa8093){_0x27ce3c=_0x27ce3c-0xe7;let _0x33bd10=_0xa5a79f[_0x27ce3c];return _0x33bd10;},a0_0x27ce(_0x250f5b,_0x3a4336);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xa5a7(){const _0x8b8522=['fetch','gristId','patchesForUpdateMultiple','firstUpdated','options','gridEmphasized','startsWith','ox-grist','dataSet','record','parseGridConfigSet','___data','282nsOKfD','useFilterForm','clear','renderRoot','7ubXQtR','parseBasicGridConfigs','498745HYRuBU','tTitle','parseGristConfigs','find','pageInitialized','searchFields','records','querySelector','getContextObject','importable','actions','filterForm','grist','value','forEach','getData','stringify','title','map','gridColumnConfig','menuInfo','grid','100pBsEnb','search','9960676xZgWgp','getAndParseMenuMeta','2230274kTLLWu','push','delete','getBasicMasterDetailStyles','operator','isElement','detailElement','getMasterDetailHtml','activityDataSet','keys','connectedCallback','import','render','save','224cjXBJC','25230mAhUHr','882873ZuXzdA','gridConfig','parse','searchFieldValues','exportable','type','filter','beforeFetch','isNotEmpty','7437112mpGuQU','getSelectedIdList','exportableData','searchConfig','name','context','updateMultiple','gristConfigSet','7265dXLHys','findOne','properties','columns','useMasterFilterForm','styles','shadowRoot'];a0_0xa5a7=function(){return _0x8b8522;};return a0_0xa5a7();}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=_0x5afe19=>class extends MetaButtonMixin(_0x5afe19){static get[a0_0x2d1ab0(0x10f)](){const _0x5f1fa4=a0_0x2d1ab0;return MetaApi[_0x5f1fa4(0xec)]();}static get[a0_0x2d1ab0(0x10c)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get['grist'](){const _0x34dab7=a0_0x2d1ab0;return this[_0x34dab7(0x120)][_0x34dab7(0x12a)](this[_0x34dab7(0x112)]);}get[a0_0x2d1ab0(0x12e)](){const _0x44ac79=a0_0x2d1ab0;return this[_0x44ac79(0x110)]?.[_0x44ac79(0x12a)](this['filterFormId']);}get[a0_0x2d1ab0(0x107)](){const _0x377f96=a0_0x2d1ab0;let _0x4907bf=MetaUiUtil[_0x377f96(0x12b)](this);return _0x4907bf[_0x377f96(0x12d)]&&delete _0x4907bf[_0x377f96(0x12d)],_0x4907bf[_0x377f96(0xfd)]&&delete _0x4907bf['exportable'],_0x4907bf['importable']&&delete _0x4907bf[_0x377f96(0x12c)],_0x4907bf;}async['connectedCallback'](){const _0x1a6347=a0_0x2d1ab0;this[_0x1a6347(0x112)]=_0x1a6347(0x118),this['filterFormId']='ox-filters-form-base',await this[_0x1a6347(0xe8)](),this['isElement']&&await this[_0x1a6347(0x125)](),this[_0x1a6347(0xf1)]&&(this[_0x1a6347(0x119)]=(this[_0x1a6347(0xf1)]||{})['main']),super[_0x1a6347(0xf3)]&&await super[_0x1a6347(0xf3)]();}async[a0_0x2d1ab0(0x114)](){const _0x23bce4=a0_0x2d1ab0;super['firstUpdated']&&await super[_0x23bce4(0x114)]();}async[a0_0x2d1ab0(0x127)](){const _0xedfb46=a0_0x2d1ab0;this['isPage']&&await this['parseGristConfigs'](),super[_0xedfb46(0x127)]&&await super[_0xedfb46(0x127)]();}[a0_0x2d1ab0(0xf5)](){const _0x573ea3=a0_0x2d1ab0;return MetaApi[_0x573ea3(0xf0)](this);}[a0_0x2d1ab0(0x122)](_0x2f7644){const _0x2dcfe9=a0_0x2d1ab0;this[_0x2dcfe9(0xfa)]=_0x2f7644[_0x2dcfe9(0x138)],this[_0x2dcfe9(0x136)]=_0x2f7644['grid_column'],this[_0x2dcfe9(0x105)]=_0x2f7644[_0x2dcfe9(0x13a)],this[_0x2dcfe9(0x116)]=_0x2f7644[_0x2dcfe9(0x116)];}async['parseGristConfigs'](){const _0x3a91ab=a0_0x2d1ab0;this[_0x3a91ab(0x109)]=await MetaApi[_0x3a91ab(0x11b)](this),this[_0x3a91ab(0x10e)]=!0x0===this['useFilterForm'],this[_0x3a91ab(0x11e)]=!0x1,this[_0x3a91ab(0xfc)]=[],this[_0x3a91ab(0x128)]=this['gristConfigSet'][_0x3a91ab(0x10d)][_0x3a91ab(0xff)](_0x392ac7=>_0x392ac7[_0x3a91ab(0xff)])[_0x3a91ab(0x135)](_0x117d83=>{const _0x2fecd0=_0x3a91ab;let _0x5d23e8={'name':_0x117d83[_0x2fecd0(0x106)],'type':_0x2fecd0(0x13a)===_0x117d83[_0x2fecd0(0xff)]['operator']?_0x2fecd0(0x13a):_0x117d83[_0x2fecd0(0xfe)],'label':_0x117d83['header'],'operator':_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0xed)]?_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0xed)]:'eq'};return _0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0x115)]&&(_0x5d23e8[_0x2fecd0(0x115)]=_0x117d83[_0x2fecd0(0xff)]['options']),_0x117d83[_0x2fecd0(0x11a)][_0x2fecd0(0x115)]&&(_0x5d23e8['options']=_0x117d83[_0x2fecd0(0x11a)][_0x2fecd0(0x115)]),_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0x130)]&&this[_0x2fecd0(0xfc)][_0x2fecd0(0xea)]({'name':_0x5d23e8[_0x2fecd0(0x106)],'operator':_0x5d23e8[_0x2fecd0(0xed)],'value':_0x117d83['filter'][_0x2fecd0(0x130)]}),delete _0x117d83[_0x2fecd0(0xff)],_0x5d23e8;});}async[a0_0x2d1ab0(0x111)](){const _0x46cd5a=a0_0x2d1ab0;await this[_0x46cd5a(0x12f)]['fetch']();}async[a0_0x2d1ab0(0x100)]({page:_0x5e645d=0x0,limit:_0xd82770=0x0,sortings:_0xcc7072=[],filters:_0x2eb0d2=[]}){const _0x5d94d4=a0_0x2d1ab0;return this['detailElement']&&this[_0x5d94d4(0xef)][_0x5d94d4(0x11f)]&&await this['detailElement'][_0x5d94d4(0x11f)](),!0x0;}async[a0_0x2d1ab0(0xf6)](){const _0x44c4d5=a0_0x2d1ab0;let _0x452138=MetaApi[_0x44c4d5(0x113)](this[_0x44c4d5(0x12f)]);!!ValueUtil[_0x44c4d5(0x101)](_0x452138)&&await this[_0x44c4d5(0x108)](_0x452138)&&this[_0x44c4d5(0x111)]();}async[a0_0x2d1ab0(0x126)](){const _0x51f18c=a0_0x2d1ab0;let _0x1db4cf=MetaApi[_0x51f18c(0x103)](this[_0x51f18c(0x12f)],!0x0);return ValueUtil[_0x51f18c(0x101)](_0x1db4cf)?await this[_0x51f18c(0x10b)](_0x1db4cf[0x0]):{};}async[a0_0x2d1ab0(0xeb)](){const _0x2cb9fc=a0_0x2d1ab0;let _0x2803a2=MetaApi[_0x2cb9fc(0x103)](this['grist'],!0x0);!!ValueUtil[_0x2cb9fc(0x101)](_0x2803a2)&&await this['deleteByIds'](_0x2803a2)&&this[_0x2cb9fc(0x111)]();}async['export'](){const _0xe497da=a0_0x2d1ab0;let _0xeb2581=TermsUtil[_0xe497da(0x124)](ValueUtil['getParams'](this[_0xe497da(0x137)],_0xe497da(0x134)));return await MetaApi[_0xe497da(0x104)](this[_0xe497da(0xee)],_0xeb2581,this[_0xe497da(0x12f)]);}async[a0_0x2d1ab0(0xf4)](){}['getData'](){const _0x2d0f33=a0_0x2d1ab0;let _0x4b2dc7=this[_0x2d0f33(0x12f)][_0x2d0f33(0x11c)][_0x2d0f33(0x129)];return _0x4b2dc7=JSON[_0x2d0f33(0xfb)](JSON[_0x2d0f33(0x133)](_0x4b2dc7)),_0x4b2dc7[_0x2d0f33(0x131)](_0x2989a9=>{const _0x2c0811=_0x2d0f33;Object[_0x2c0811(0xf2)](_0x2989a9)[_0x2c0811(0x131)](_0x5edb6e=>{const _0x5f20b2=_0x2c0811;_0x5edb6e[_0x5f20b2(0x117)]('__')&&delete _0x2989a9[_0x5edb6e];});}),{'main':_0x4b2dc7,'detail':this['detailElement'][_0x2d0f33(0x132)]()};}};
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)]()};}};